repo_name
stringlengths
7
111
__id__
int64
16.6k
19,705B
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
151
content_id
stringlengths
40
40
detected_licenses
list
license_type
stringclasses
2 values
repo_url
stringlengths
26
130
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
42
visit_date
timestamp[ns]
revision_date
timestamp[ns]
committer_date
timestamp[ns]
github_id
int64
14.6k
687M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
12 values
gha_fork
bool
2 classes
gha_event_created_at
timestamp[ns]
gha_created_at
timestamp[ns]
gha_updated_at
timestamp[ns]
gha_pushed_at
timestamp[ns]
gha_size
int64
0
10.2M
gha_stargazers_count
int32
0
178k
gha_forks_count
int32
0
88.9k
gha_open_issues_count
int32
0
2.72k
gha_language
stringlengths
1
16
gha_archived
bool
1 class
gha_disabled
bool
1 class
content
stringlengths
10
2.95M
src_encoding
stringclasses
5 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
10
2.95M
extension
stringclasses
19 values
num_repo_files
int64
1
202k
filename
stringlengths
4
112
num_lang_files
int64
1
202k
alphanum_fraction
float64
0.26
0.89
alpha_fraction
float64
0.2
0.89
hex_fraction
float64
0
0.09
num_lines
int32
1
93.6k
avg_line_length
float64
4.57
103
max_line_length
int64
7
931
Dumebiz/ciscodevnet
13,125,420,084,938
47e63455dd76a3d9cc1bbb9849f947c34bed96fd
c6137f69c56956458326f221153ac204ff63ac01
/add_device.py
c1f846e5bb1e10f214b405e8992e69257a10b051
[]
no_license
https://github.com/Dumebiz/ciscodevnet
0dbd0ed776f1acdeaab2e65cdc4e5a886b790984
8332792860e8e59a49a97ca175f2acbc3cf5fef8
refs/heads/main
2023-02-14T18:10:42.522006
2021-01-11T18:27:19
2021-01-11T18:27:19
328,751,059
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python """ Author: Dumebi Umezinne Purpose: Demonstrate Python "requests" to get an access token from Cisco DNA Center using the REST API. """ import requests from auth_token import get_token import time import json from pprint import pprint as pprint new_device_dict = { "ipAddress": ["172.20.20.2...
UTF-8
Python
false
false
2,704
py
4
add_device.py
3
0.597263
0.586169
0
95
27.463158
91
yunkb/fibrosis
19,619,410,641,870
538679ac0bb8f19ae13ee71ac82c7c54f835ee6c
6db8915ad6a58462fe577afbdbaab1c2935fd470
/source/solvers/ns_steady/nsestimator.py
6a002182b3ecff23ef0ea4b3d67c1e75ac390bbf
[]
no_license
https://github.com/yunkb/fibrosis
89a2f91b66e8837a4308d534b772c48b2cb151eb
7a86e4a6a26aa3248fd7f3d46547c264842953d9
refs/heads/master
2020-03-21T03:33:38.368166
2017-09-04T13:09:26
2017-09-04T13:09:26
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Steady Navier-Stokes estimator module Author: David Nolte (dnolte@dim.uchile.cl) Date: 20-09-2016 ''' # TODO: Throw away bctype option?? from dolfin import * from functions import inout import numpy as np import matplotlib.pyplot as plt from scipy.optimize import minimize, brute from nsproblem import NSProblem f...
UTF-8
Python
false
false
31,764
py
170
nsestimator.py
81
0.534851
0.527925
0
971
31.712667
79
hack4impact/vision-zero-philly
12,043,088,313,703
4fdb163f12ea089f35be7650100da428119dabad
6485b0cc51a8b449cd12ffb042968e7456c98974
/app/reports/forms.py
d06bc0d90e4ae79af6f46ae5ea54defd9acbf64c
[ "MIT" ]
permissive
https://github.com/hack4impact/vision-zero-philly
0a82dc63b2e1953be8324dff12c23891ace5b7a4
c81c8cc8fa8168dcc77fe1e132c1b4649a936d14
refs/heads/master
2020-05-26T12:25:58.159744
2017-08-23T01:53:48
2017-08-23T01:53:48
82,479,005
7
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import datetime as datetime from flask_wtf import Form from flask_wtf.file import FileField, FileAllowed from wtforms.fields import ( SelectField, StringField, SubmitField, IntegerField, TextAreaField, HiddenField, DateField, RadioField, FieldList, BooleanField ) from wtforms_co...
UTF-8
Python
false
false
4,075
py
40
forms.py
21
0.574479
0.568834
0
149
26.348993
95
TushaarGVS/SC_Lab
4,355,096,843,014
e217e6d86eb38ab5524a3ff1c4d258f97ab8e01e
ee03fb09a9855ab32348c1a4a85769badebca541
/Lab3/K_Means_Clustering.py
1ec22e88ce73f8737bf0d12c3525b59c66233b18
[]
no_license
https://github.com/TushaarGVS/SC_Lab
4990867249623b51b729719100cf8578d9840335
07536d6eb04e6f724a1709e8c6ed4c318eee9e58
refs/heads/master
2021-07-24T05:40:05.060513
2017-11-06T04:56:56
2017-11-06T04:56:56
109,649,530
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from csv import reader from math import sqrt from random import randrange def load_csv(filename): dataset = list() check = 0 with open(filename, 'r') as file: csv_reader = reader(file) for row in csv_reader: if not row: continue if check != 0: ...
UTF-8
Python
false
false
3,639
py
3
K_Means_Clustering.py
3
0.62792
0.616653
0
107
33.018692
121
Xav83/Python
11,596,411,746,174
ed227feb6f84c8d2b623e23ea440be9542d06e8f
1db70b1fa7fc99a4c824998036cc6abe2016412a
/roboc/tst/test_Robot.py
66344a9dcdd11ca7242c6f04f047cb48914971ff
[]
no_license
https://github.com/Xav83/Python
9e7672261b20b3bedfd8cc80515fcf36e228e887
397cb9f6bb1c3a9aeda038e515364130db228f08
HEAD
2016-08-12T09:39:01.394235
2016-03-14T23:12:40
2016-04-03T17:24:11
53,791,092
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest from src import robot class TestRobot(unittest.TestCase): pass
UTF-8
Python
false
false
84
py
15
test_Robot.py
14
0.785714
0.785714
0
5
15.8
35
cuplv/verivita
10,273,561,812,047
aaeff97796f9d7780e0b7136de45d7ac93d399a2
4d7a7698f74cfa730598b24524d7d17d135daf5b
/cbverifier/traces/__init__.py
a5a6f72760ab6603e3da69d3f48f8b37776b18ab
[]
no_license
https://github.com/cuplv/verivita
010b5d913fa25600d72980b3f9e4b45992b248b0
04e97a8bf582db10186b73a476fbecff1861e526
refs/heads/master
2021-03-27T14:19:54.315993
2018-09-10T16:10:20
2018-09-10T16:10:20
61,602,554
1
1
null
false
2018-11-11T19:53:29
2016-06-21T04:36:40
2018-09-10T16:10:26
2018-11-11T19:53:28
576,078
1
0
42
Python
false
null
# package cbverifier.traces
UTF-8
Python
false
false
28
py
659
__init__.py
76
0.821429
0.821429
0
1
27
27
romin991/rocketSales
4,861,903,010,596
d6f8d1bc316935cae91137fc8c9f6d394fb4ddc2
3c3dc45d0fec06f7e4bc4c3477f3eaa66ad68bb7
/devices/serializers.py
fe5c0cf34b4b748c22ffcd566159d5d28ad29144
[]
no_license
https://github.com/romin991/rocketSales
eb23c5a7bee0b7f07fe86d7fb0892f3a4d455030
f3e7407a8dfbfbfeb6b01a6b13e09652e66e1532
refs/heads/master
2021-01-22T22:03:34.967308
2017-05-29T15:52:31
2017-05-29T15:52:31
92,754,001
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from rest_framework import serializers from devices.models import * class DeviceSerializer(serializers.ModelSerializer): class Meta: model = Device
UTF-8
Python
false
false
161
py
120
serializers.py
115
0.770186
0.770186
0
7
22.142857
52
PrincessGods/deco3801
9,509,057,605,346
2b622b0379b0bfa2655841a029121a2ec8a4691c
920b17bf3600daa3d6a8cb6a4005bad7c006f20b
/application/main/routes.py
e3848f3fedff034bca5e44c4bed4b28f5cff4665
[]
no_license
https://github.com/PrincessGods/deco3801
b076fc8f1ead67654e6d4aa0d172fe5bbe6a1973
160435c80d61b0642098daecda65183d74304c18
refs/heads/master
2020-03-27T08:26:25.074661
2018-10-26T01:09:52
2018-10-26T01:09:52
146,254,345
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import render_template, request, Blueprint, flash, redirect, url_for from application.models import User, Sample_Information, Sample_Location, Search_Results from application import db, bcrypt from application.main.forms import HomeSearchForm from flask_login import current_user main = Blueprint('main', __n...
UTF-8
Python
false
false
1,848
py
32
routes.py
17
0.655303
0.655303
0
46
39.043478
90
nwrocketman64/sales-tax-calculator
16,776,142,302,279
d8a0a1f9f09d44b4c39787d3f2986de5be54b248
66ff40f03f3f4a8f1291ac0f683a514e1b272e71
/app.py
0d8ef92e9ba060ebab7dcd4cb3c3fb25b68dcb14
[ "MIT" ]
permissive
https://github.com/nwrocketman64/sales-tax-calculator
7742c4c2ac192bc156e3a2d5f341131ac3dc570f
c188c64f744830b204fa6ca204b261ec7279eccc
refs/heads/main
2023-05-04T18:26:08.596351
2021-05-20T19:57:14
2021-05-20T19:57:14
369,110,545
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Import the needed librarys from flask and sessions. from flask import Flask, render_template, request, session, redirect, url_for from flask_session import Session # Create the web app in flask. app = Flask(__name__) # Configure the sessions in the web app. app.config["SESSION_PERMANENT"] = False app.config["SESSIO...
UTF-8
Python
false
false
2,173
py
3
app.py
1
0.623562
0.607455
0.005062
59
35.847458
106
akangupt/a-fiery-vengeance
3,959,959,868,514
a1e8135462cd20b641ebcf99b4d163a17103341b
c9eb1f47b4a3a696fcad44f8158752c42b5582d2
/source code/hero_exit.py
15ab52c127751f9e282efe025be196db8a891362
[]
no_license
https://github.com/akangupt/a-fiery-vengeance
318662ffc72b72ad73f2b37076de7029dea497b0
30d529c5dacdffbaf9c964d43ebcad28a41a0876
refs/heads/master
2021-01-10T14:23:02.893165
2015-10-30T12:58:09
2015-10-30T12:58:09
45,248,020
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import os import math import cPickle as pk import pygame import random try: import _path except: pass import tiledtmxloader # checks if hero collides to a portal # if it does then returns the index of the portal # otherwise returns -1 def exit_map(hero,portal): plen=len(portal)...
UTF-8
Python
false
false
2,917
py
59
hero_exit.py
33
0.541995
0.516627
0
88
31.147727
86
feyfree/Summary
4,990,752,043,863
6277df950f8afe26d414faf03cb786b3ac889649
b36b7b71693113e248c8391a871cb10df9acb1a0
/DataStructure/sort/select_sort.py
45aeca2dae7c4439e861fde5889ff4e1c60dd44a
[]
no_license
https://github.com/feyfree/Summary
81e24838de96f9e073d0a5d60ba93913dabeb05b
67f72f882a6c00f472cb4f5219b87a2cf0243017
refs/heads/master
2020-04-07T11:46:41.478087
2019-02-14T06:49:14
2019-02-14T06:49:14
158,340,544
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
def select_sort(nums): n = len(nums) for i in range(n): k = i for j in range(i, n): if nums[j] < nums[k]: k = j if i != k: nums[i], nums[k] = nums[k], nums[i] return nums nums = [1,3,6,7,2,4] print(select_sort(nums))
UTF-8
Python
false
false
237
py
96
select_sort.py
69
0.544304
0.518987
0
13
17.307692
38
QuailAutomation/yahoo_fantasy_bot
9,053,791,090,267
f61098052211ca8cc78a524b76d9c99abe610355
04796f68651ae33a498454437804ea94e0a3f8ba
/yahoo_fantasy_bot/nhl.py
32a76db85b182382d5dd423b8d3e3a52d595b222
[ "MIT" ]
permissive
https://github.com/QuailAutomation/yahoo_fantasy_bot
56b4d18575efd0d800c89f39d95d158a3759a778
9d3b4205f971babe20faa242ab515b2818083fc2
refs/heads/master
2020-09-13T13:05:28.067751
2019-11-17T21:15:21
2019-11-17T21:15:21
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import pandas as pd import numpy as np from nhl_scraper import nhl import logging import datetime logger = logging.getLogger() class Builder: """Class that constructs prediction datasets for hockey players. The datasets it generates are fully populated with projected stats taken from...
UTF-8
Python
false
false
7,936
py
15
nhl.py
11
0.496472
0.488785
0
215
35.911628
78
wax911/anime-meta
17,557,826,308,111
e0c5ae475cf2c3b8e407c24e86bd3c05be443033
c6b719f46b52535c991fbf4ef8270fd4e290e29d
/di/__init__.py
d2575e17b16f7faa105818e949c9ec3eb333f7b5
[ "Apache-2.0" ]
permissive
https://github.com/wax911/anime-meta
2d143845b999ada949de497ab2adcdab1a2ed988
5a707a75b277a9c0dc5b9d9447cea44a73d2f83c
refs/heads/main
2023-06-17T02:12:34.599542
2021-07-15T09:37:20
2021-07-15T09:37:20
355,594,879
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .dependencies import LocalSourceProvider, \ RemoteSourceProvider, \ RepositoryProvider, \ UseCaseProvider, \ UtilityClientScopeProvider, \ MapperScopeProvider, \ SourceUtilityProvider
UTF-8
Python
false
false
213
py
47
__init__.py
44
0.751174
0.751174
0
7
29.428571
48
rishabmamgai/PCA
19,628,000,550,606
222fb27c789d1d469c2ef7f3ad6feeead7f70635
02f26085369cecbb55c2f61e4143bc99f52c8cf9
/main.py
bbda05b2a9480106b02c2c6a6e21072a40b8584e
[]
no_license
https://github.com/rishabmamgai/PCA
24a36faa0d97f7b088c0b612ef1f73c0cd326cde
43ce54abd0ffac07b22b8805a62de65f47040984
refs/heads/main
2023-07-11T12:27:45.231336
2021-08-13T15:10:35
2021-08-13T15:10:35
395,694,484
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from matplotlib.pyplot import plot from model import pca, find_k import numpy as np import functions # Loading data and plotting faces X = functions.load_data(r'D:\ML\PCA\faces.mat') functions.plot_faces(X) # Normalizing data X_normalized = X / 255 # Running PCA U, S, V = pca(X_normalized) # Plot...
UTF-8
Python
false
false
740
py
3
main.py
3
0.685135
0.667568
0
37
18
51
kamau96/Binary-Tree
11,209,864,690,019
236caed1aa685441641c5e23bd1f4f4b6a3399c8
61fd592afee1c7606f7c1afabc82150914bffe38
/main.py
e7cfe22f5fed827bb270de067ac7e8cc1ec8de7e
[]
no_license
https://github.com/kamau96/Binary-Tree
6eadffd5804e205b90d5ed8c4621e9d30e7cdb2f
890b3f6b62b6c350cfabc1d557e9fe6fb9287994
refs/heads/master
2022-12-28T04:44:19.243167
2020-10-15T02:05:35
2020-10-15T02:05:35
304,183,442
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Node: def __init__(self,data): self.left=None self.right=None self.data=data def inorder(temp): if (not temp): return inorder(temp.left) print(temp.key,end = " ") inorder(temp.right) def insert(temp, key): if not temp: root= Node(key) return queue=[] queue.append(temp) ...
UTF-8
Python
false
false
1,470
py
2
main.py
1
0.597279
0.594558
0
74
18.878378
42
juiyangchang/LeetCoding
7,636,451,892,843
034810de3a5718b8cdde54dc14bade2dfd505d42
a357fa6608a03f86a9511fac7f7678a94120b366
/python/166_Fraction_to_Recurring_Decimal.py
eb1dfadf2e4d1c953fbb1533ca09a721d122c081
[]
no_license
https://github.com/juiyangchang/LeetCoding
e33e52b256c54da9a7bf007272c891fe11f8da24
d9590bf791ece34e391bca0055c8536ee2c8061e
refs/heads/master
2021-09-09T11:43:24.371160
2018-03-15T19:10:52
2018-03-15T19:10:52
110,507,013
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def fractionToDecimal(self, numerator, denominator): """ :type numerator: int :type denominator: int :rtype: str """ if numerator == 0: return "0" if (numerator < 0) != (denominator < 0): sgn = True else...
UTF-8
Python
false
false
1,306
py
64
166_Fraction_to_Recurring_Decimal.py
63
0.491577
0.484686
0
37
34.324324
123
desingdeveloperdayday/PickedUpMole_ForEarthForUs
635,655,196,055
0922cc651fa73eb9c0a4241206d9dc65f1d7816a
8de379a6efeb54ee6df94109feb258e9839f4ab2
/backend/ForEarthForUs_backend/api/models/category_models.py
158e6bd31c87f5168b27834cf22032b50e547fc8
[]
no_license
https://github.com/desingdeveloperdayday/PickedUpMole_ForEarthForUs
b8c557037846b4863f985f6b21aaa4cd5495f9b4
85e5ab4ab3f5e7011aa6ede983cc66ece6e489bd
refs/heads/master
2022-12-12T15:19:42.553227
2019-09-30T08:28:47
2019-09-30T08:28:47
181,449,109
6
3
null
false
2022-12-08T05:04:07
2019-04-15T08:54:55
2022-04-06T15:21:15
2022-12-08T05:04:06
45,501
6
2
16
Kotlin
false
false
from django.db import models from django.db.models.signals import post_delete from api.utils.media_clean import file_cleanup class Category(models.Model): categoryId = models.IntegerField(primary_key=True, unique=True) image = models.FileField(null=False, upload_to='images/category/') completeMessage = mod...
UTF-8
Python
false
false
566
py
249
category_models.py
44
0.736749
0.731449
0
15
36.733333
88
kozakusek/ipp-2020-testy
12,850,542,185,002
b3cb8d168c990f1c3209c1b19652dc126fde4dc3
ca75f7099b93d8083d5b2e9c6db2e8821e63f83b
/z2/part2/interactive/jm/random_fuzzy_arrows_1/753097229.py
a747d802b452446032d933bc6ad307ea5b7daecc
[ "MIT" ]
permissive
https://github.com/kozakusek/ipp-2020-testy
210ed201eaea3c86933266bd57ee284c9fbc1b96
09aa008fa53d159672cc7cbf969a6b237e15a7b8
refs/heads/master
2022-10-04T18:55:37.875713
2020-06-09T21:15:37
2020-06-09T21:15:37
262,290,632
0
0
MIT
true
2020-06-09T21:15:38
2020-05-08T10:10:47
2020-05-12T20:07:47
2020-06-09T21:15:38
218,753
0
0
0
C
false
false
from part1 import ( gamma_board, gamma_busy_fields, gamma_delete, gamma_free_fields, gamma_golden_move, gamma_golden_possible, gamma_move, gamma_new, ) """ scenario: test_random_actions uuid: 753097229 """ """ random actions, total chaos """ board = gamma_new(4, 6, 6, 3) assert board is...
UTF-8
Python
false
false
4,058
py
1,183
753097229.py
278
0.630606
0.537457
0
123
31.99187
46
LuckyGan/LeetCode
3,521,873,218,548
d8fe165a5b592f50e37291b4db34f2b8e8834e63
ebba35952f5499d273168658505a17dc717354a6
/Python/066.Plus One/Solution.py
a6c0955fd3b90a3ef8075964a6544ef47f318741
[]
no_license
https://github.com/LuckyGan/LeetCode
3aaa3ea69776b060ece6dc7380b2dee8b1b2a07f
bdd2808db9d629e84523e203f55b4493c3fc286f
refs/heads/master
2018-12-24T15:34:37.817690
2018-11-09T08:30:21
2018-11-09T08:30:21
108,117,709
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding=utf-8 class Solution: def plusOne(self, digits): """ :type digits: List[int] :rtype: List[int] """ for idx in range(len(digits) - 1, -1, -1): if digits[idx] != 9: digits[idx] += 1 break else: dig...
UTF-8
Python
false
false
566
py
333
Solution.py
332
0.45053
0.418728
0
23
23.652174
50
jacksonyoudi/smt
12,704,513,271,349
7542637f49a8de6c745b172702949f4ec062070e
fa27204c5822091039eed29cf6180a631f0d949e
/controller/lib/csv_handle.py
36ee95fd10be76c01aa6be201e4d948b08f5b37d
[]
no_license
https://github.com/jacksonyoudi/smt
d1040e6455e0519214843865c33ce9bb9e379182
3f240da266bb1735e3ec2c9007569c46ed9458b2
refs/heads/master
2022-12-05T06:19:16.112029
2020-08-31T15:04:04
2020-08-31T15:04:04
282,649,914
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import csv import datetime import time def table(data): import sqlite3 con = sqlite3.connect('/Users/changyouliang/project/others/smt/first.db') cur = con.cursor() sql = "insert into acv_tab (wo_no,time,c3 ,c4 ,R70 ,c6 ,C158 ,c8 ,R69 ,c10 ,R3 ,c12 ,IC8 ,c14 ,IC3 ,c16 ,D11 ,c1...
UTF-8
Python
false
false
2,447
py
12
csv_handle.py
10
0.465599
0.422761
0
98
22.581633
287
MakerSpaceLeiden/AccesSystem
15,496,242,013,734
64889a76dfc429fc85d1d8d7df95eb2c0a39b63d
b38c5eb548636af44b4c82fc2b57e3103114f2e0
/lib-python/DrumbeatNode.py
fe98878e705f09201be08927adfacf384daa53f2
[ "LicenseRef-scancode-other-permissive", "MIT", "NTP", "LicenseRef-scancode-rsa-1990", "LicenseRef-scancode-rsa-md4", "Beerware", "RSA-MD", "HPND-sell-variant", "Spencer-94", "LicenseRef-scancode-zeusbench", "metamail", "Apache-2.0" ]
permissive
https://github.com/MakerSpaceLeiden/AccesSystem
e652a343c86ac904de8a1a08adc13bbc3ee6de7d
5e39572f51fafca71750660fcf5f737670f17d54
refs/heads/master
2023-05-27T01:44:57.893580
2023-05-16T11:27:48
2023-05-16T11:27:48
54,308,309
4
4
Apache-2.0
false
2022-02-21T22:37:34
2016-03-20T08:46:08
2021-12-16T21:13:13
2022-02-21T22:37:33
18,697
4
6
1
C++
false
false
#!/usr/bin/env python3.4 import os import sys import time import hmac import hashlib sys.path.append('../lib') import ACNode class DrumbeatNode(ACNode.ACNode): # import SharedSecret # class DrumbeatNode(SharedSecret.SharedSecret): default_interval = 60 default_node = "drumbeat" def parseArguments(self): se...
UTF-8
Python
false
false
1,041
py
172
DrumbeatNode.py
127
0.667627
0.661864
0
43
23.186047
101
takuseno/d3rlpy
1,013,612,322,672
13ba43e853eed6fc8455cc68984f18f56b26ab1d
c3ca0bcea4d1b4013a0891f014928922fc81fe7a
/tests/logging/test_logger.py
55ca4443c89926bbd134af8e7bf8317832b9f761
[ "MIT" ]
permissive
https://github.com/takuseno/d3rlpy
47894b17fc21fab570eca39fe8e6925a7b5d7d6f
4ba297fc6cd62201f7cd4edb7759138182e4ce04
refs/heads/master
2023-08-23T12:27:45.305758
2023-08-14T12:07:03
2023-08-14T12:07:03
266,369,147
1,048
222
MIT
false
2023-09-02T08:12:48
2020-05-23T15:51:51
2023-09-01T07:59:50
2023-09-02T08:12:47
21,748
1,042
194
47
Python
false
false
from typing import Any, Dict import pytest from d3rlpy.logging import D3RLPyLogger from d3rlpy.logging.logger import SaveProtocol class StubLoggerAdapter: def __init__(self, experiment_name: str): self.experiment_name = experiment_name self.is_write_params_called = False self.is_before_w...
UTF-8
Python
false
false
2,779
py
233
test_logger.py
187
0.6819
0.678302
0
89
30.224719
77
pyvista/pyvista
16,561,393,909,929
2caaf84a7b41af9341a35362708346aaa21cc127
2d6d5424e881252898b898fbfbc47fe1487371cf
/examples_trame/advanced/contour.py
a3d129d0c74b6efd9c6542eb0d434ed4d8edc78a
[ "MIT" ]
permissive
https://github.com/pyvista/pyvista
333e55bfaa6b8bcdb47e2df04c823d35f05db364
1b450b23340f367315fc914075d551e0a4df8cc3
refs/heads/main
2023-08-20T08:04:27.146062
2023-08-20T01:14:03
2023-08-20T01:14:03
92,974,124
1,885
389
MIT
false
2023-09-14T21:09:28
2017-05-31T18:01:42
2023-09-14T07:45:35
2023-09-14T21:09:28
239,155
1,956
365
377
Python
false
false
from trame.app import get_server from trame.ui.vuetify import SinglePageLayout from trame.widgets import vuetify from vtkmodules.vtkFiltersCore import vtkContourFilter import pyvista as pv from pyvista import examples from pyvista.trame.ui import plotter_ui # ----------------------------------------------------------...
UTF-8
Python
false
false
3,062
py
488
contour.py
358
0.483018
0.477792
0
106
27.886792
79
sharathghosh/Python-Intro
14,594,298,886,934
c4c64dd560975926abcc44f72fa49d0841b4e755
054696b547808b89ea11c34aa30107ef232b4819
/tutorial_python_basics.py
f3f8e3fda03ac1e03faf9e802385b5742180acfb
[]
no_license
https://github.com/sharathghosh/Python-Intro
d3c746d41997ff0c8b28d45706e63bfaa12aab9b
30d5ece2fcc882f467f0bff432c0b89617194e17
refs/heads/master
2020-07-05T18:36:19.507514
2016-11-17T03:29:27
2016-11-17T03:29:27
73,986,643
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Nov 16 14:26:46 2016 @author: sharath """ # Variables # a,b,c are integer variables a = 5 # assignment operator b = 6 c = -8 # d,e,f are floating point variables d = 5.6 e = 9.0000e-4 f = -1.4 # Find out the type of a variable print type(a) print type(e) ...
UTF-8
Python
false
false
7,203
py
5
tutorial_python_basics.py
4
0.66028
0.641955
0
313
21
83
Nyumat/Pathfinding-Algorithm-Tool
8,761,733,325,406
d73f46cf55fd463a821374e470236b2a706f01be
203025acaac82b5ba2d135dac704f290ea814ab5
/astar/astar.py
04b4a4cd592d500c9d70a3d46d22b29c2762d3df
[ "MIT" ]
permissive
https://github.com/Nyumat/Pathfinding-Algorithm-Tool
d4ce9184996732348d6ecf2f680691097704211b
164a94c68ece4e990dcb154ff7a21f5d0f1efcbb
refs/heads/master
2023-03-17T23:22:19.861676
2023-03-06T08:01:03
2023-03-06T08:01:03
286,133,872
3
0
MIT
false
2020-09-11T06:44:49
2020-08-08T23:20:08
2020-09-11T01:15:31
2020-09-11T06:44:48
39
2
0
0
Python
false
false
import pygame import math from queue import PriorityQueue # RGB Colors RED = (255, 0, 0) GREEN = (0, 255, 0) BLUE = (0, 0, 255) YELLOW = (255, 255, 0) WHITE = (255, 255, 255) BLACK = (0, 0, 0) PURPLE = (128, 0, 128) ORANGE = (255, 165 ,0) GREY = (128, 128, 128) TURQUOISE = (64, 224, 208) # Node class, which contains ...
UTF-8
Python
false
false
6,926
py
2
astar.py
1
0.659111
0.643806
0
250
26.688
120
Coburn37/NASS-Search
8,787,503,115,780
cfc7a44dbeaa54b823eb1c652403c9ccffa28a96
cbba218ea18839f221595c8466838c87b2b1d9cd
/nassAPI/nassGlobal.py
c739c54727aec76208b00663d80e5cb09a80ae5f
[]
no_license
https://github.com/Coburn37/NASS-Search
f1d86ca4dcd4366d481e5cdf6b4712f4c283bfe9
c6db7dea4c9e79e0f9dc9e1caa2ba1e273a1fc70
refs/heads/master
2021-01-17T09:18:20.294506
2018-10-21T01:05:11
2018-10-21T01:05:11
35,383,516
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" NASS Search Tool Global Preferences and Data This module holds the global preferences and data structures. All prefs & data should be read from nassGlobal.prefs and nassGlobal.data. """ import os.path import json #DummyReadOnlyDict - A dict that once read will call init() but only once across all instances #Only...
UTF-8
Python
false
false
5,412
py
26
nassGlobal.py
17
0.66833
0.66833
0
148
35.574324
133
vramana30/newSnia
9,887,014,732,928
5e833be53867aedc38cbe6e5c02bc273fc73a516
f6a20ee677ece1d60741d525b22541510754ab06
/api_emulator/redfish/templates/Subscription.py
baca607c6e1308695327d9356e834e666bef4744
[ "BSD-3-Clause" ]
permissive
https://github.com/vramana30/newSnia
99a100c8d0275421f68f279fad2dead213775fdf
720a96a54d4e4177856ab57977388f7aa1f00643
refs/heads/master
2020-03-24T22:49:01.502670
2018-08-14T07:17:39
2018-08-14T07:17:39
143,104,272
0
2
null
true
2018-08-01T04:34:22
2018-08-01T04:34:22
2018-07-11T04:59:26
2018-07-11T04:59:24
2,450
0
0
0
null
false
null
# Copyright Notice: # Copyright 2017 Distributed Management Task Force, Inc. All rights reserved. # License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Interface-Emulator/LICENSE.md # Example Resoruce Template import copy import strgen _TEMPLATE = \ { "@Redfish.Copyright":"Copyr...
UTF-8
Python
false
false
1,334
py
110
Subscription.py
59
0.663418
0.651424
0
41
31.536585
118
cocofile/mango-explorer
6,966,436,996,631
399113eb584129a19a3c9ec430b22e6f02a75bb4
9f47af1548446fa09d947498f3416d6c88dfffdc
/mango/logmessages.py
d429aecad4a8b9d1015737e2605de6e0dd78202b
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
https://github.com/cocofile/mango-explorer
281a831647b4d589510dff397b06869774899661
2560994b4e2014bdf0c899d833b8f45076619498
refs/heads/main
2023-08-27T18:49:47.507309
2021-11-14T01:39:11
2021-11-14T01:39:11
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # ⚠ Warning # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT # LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIA...
UTF-8
Python
false
false
1,620
py
60
logmessages.py
50
0.683591
0.682353
0
37
42.648649
104
SplashTheBatya/netologia_homeworks
9,242,769,622,265
c27bbf87b9c6e565f72086b6f23a6a31624fa5e3
24dc6ad7cbbb697f5ac3be26be90c6efa761c081
/databases_2/m2m-relations/articles/admin.py
47c4cca99bcc61cab668f2886eb13bf4474f3dd9
[]
no_license
https://github.com/SplashTheBatya/netologia_homeworks
a1c2694f17bd31229d14c016d09d6ca4375c04e2
11bf6482285783a33685ae0053ae80ae5098f074
refs/heads/master
2023-03-26T10:57:33.193559
2021-03-19T22:06:46
2021-03-19T22:06:46
334,151,258
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from django.core.exceptions import ValidationError from django.forms import BaseInlineFormSet from .models import Article, Thematics, ArticleThematics class ArticleThematicsInlineFormset(BaseInlineFormSet): def clean(self): counter = 0 for form in self.forms: ...
UTF-8
Python
false
false
1,005
py
23
admin.py
19
0.715344
0.708995
0
35
26
73
grillzwitu/alx-higher_level_programming
2,576,980,423,377
2f1043ff921d72c2aa3d3d6073bba411cb5a9795
c8a243e0ee7ac36d9a046e0ca3a8a2454deb1f91
/0x01-python-if_else_loops_functions/1-last_digit.py
89db842fc6b123a3111b88adc3617b9759c9dae0
[]
no_license
https://github.com/grillzwitu/alx-higher_level_programming
3dbcdc0205e09334f648ebbdb5a4000fd9666b3b
30db6c6796ca8540cc73a2b6055c3eee42d529f9
refs/heads/main
2023-08-11T13:00:39.220136
2021-09-23T06:57:57
2021-09-23T06:57:57
361,830,326
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 import random number = random.randint(-10000, 10000) if number < 0: lastDigit = (int(repr(-number)[-1])) * -1 else: lastDigit = int(repr(number)[-1]) if lastDigit > 5: print("Last digit of {} is {} and is greater than 5" .format(number, lastDigit)) elif lastDigit == 0: pri...
UTF-8
Python
false
false
527
py
48
1-last_digit.py
45
0.611006
0.567362
0
18
28.277778
63
DesignInformaticsLab/adversarial_challenge
13,889,924,272,470
4ddbb9fd6627c0bcd7bc3e656ea143b2fc79bf5c
32613645e7e14eaa53ce0906d57c6ffd4a111ef5
/imagenet_sample_code/centerloss.py
72e37ae7101fcc38ec600488dc65423c534031ec
[]
no_license
https://github.com/DesignInformaticsLab/adversarial_challenge
a880be7d0f8a1bb8552d3ce7464cef6e9ab8d458
139baceaae81f1d61c523231390212792947a5c0
refs/heads/master
2020-03-28T00:51:47.532432
2018-10-10T10:56:05
2018-10-10T10:56:05
147,455,430
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
LAMBDA = 1e-1 CENTER_LOSS_ALPHA = 0.5 NUM_CLASSES = 200 batch_size = 128 import os import numpy as np import tensorflow as tf import tflearn slim = tf.contrib.slim os.environ['CUDA_VISIBLE_DEVICES'] = '0' with tf.name_scope('input'): input_images = tf.placeholder(tf.float32, shape=(batch_size,64,64,3), name='i...
UTF-8
Python
false
false
8,427
py
22
centerloss.py
4
0.659553
0.629649
0
194
39.319588
130
Laleee/poke-gan
13,907,104,150,789
47067030c3a78561ad0556c206cfd9bdb26ad1af
bc18a8177b584c2c3b15520b0486d4ee3538a062
/training.py
f83dc914f243431baf9956b329f4b58d878d24e1
[ "MIT" ]
permissive
https://github.com/Laleee/poke-gan
a0b2ad3de8e98c48b3627601672fbb25687b1293
d93506d249ac37fc971ca6504053a9d3461ebf84
refs/heads/main
2023-07-24T11:23:03.147461
2021-08-31T14:14:44
2021-08-31T15:06:48
392,968,909
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch import wandb from Trainer import Trainer MAX_SUMMARY_IMAGES = 4 DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu') assert torch.cuda.is_available() # LR = 2e-4 EPOCHS = 100 # BATCH_SIZE = 64 NUM_WORKERS = 4 # LAMBDA_L1 = 100 sweep_config = { 'method': 'bayes', # grid, random ...
UTF-8
Python
false
false
1,232
py
9
training.py
6
0.530844
0.497565
0
54
21.814815
69
arXiv-research/DevLab-III-1
10,436,770,535,820
d0da01e52b4047ee3f2debee6a8a8d4f7fc3074d
35f9def6e6d327d3a4a4f2959024eab96f199f09
/developer/lab/tools/NVIDIA/FasterTransformer/sample/tensorflow/tensorflow_bert/ckpt_quantization.py
56a42063cf6c906980119a8c016c48d34fb17f9b
[ "Apache-2.0", "CAL-1.0-Combined-Work-Exception", "CAL-1.0", "MIT", "CC-BY-SA-4.0", "LicenseRef-scancode-free-unknown" ]
permissive
https://github.com/arXiv-research/DevLab-III-1
ec10aef27e1ca75f206fea11014da8784752e454
c50cd2b9154c83c3db5e4a11b9e8874f7fb8afa2
refs/heads/main
2023-04-16T19:24:58.758519
2021-04-28T20:21:23
2021-04-28T20:21:23
362,599,929
2
0
MIT
true
2021-04-28T20:36:11
2021-04-28T20:36:11
2021-04-28T20:35:45
2021-04-28T20:23:46
560,071
0
0
0
null
false
false
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
UTF-8
Python
false
false
14,605
py
1,491
ckpt_quantization.py
957
0.516535
0.502568
0
276
51.916667
178
dengjunchao/ks_orders
9,577,777,085,888
34fd1ba3ec1befd5cc6b19fcdae2e3ef2a957a0d
7b23b30f67455249681da56d9bee45cb386a2585
/libs/query_orders.py
1a1698f52a866d33fc230fbf7761bd5db88f6864
[]
no_license
https://github.com/dengjunchao/ks_orders
829454ac4676498bd025c6ccda3314eb721be970
f5e07d119f56bc2c801676b2505d4377a2bfdda9
refs/heads/master
2022-12-09T17:39:59.059285
2020-03-04T17:55:47
2020-03-04T17:55:47
244,966,718
2
0
null
false
2022-12-08T06:19:08
2020-03-04T17:49:53
2020-03-04T18:01:36
2022-12-08T06:19:08
114
1
0
7
Python
false
false
""" 订单退订模块 """ from flask import request from config import Status from flask_restful import Resource from ky_omm.common.query_order import QueryOrder class QueryOrders(Resource): def post(self): """ 查询订单号 业务逻辑:判断是否符合视频id和订单id长度 条件成立:执行QueryOrder.query_order() 获取查询结果,然...
UTF-8
Python
false
false
1,119
py
25
query_orders.py
19
0.59171
0.589637
0
34
27.382353
87
ncfeo/mystie
7,816,840,494,725
635f1354bfcc8b52df9aae134430c4b7b43d97e0
aa25e9abeb99d499a57024a3e604187b6d89faf7
/blog/migrations/0003_blogcomment.py
211e2bc71fb5a9a4fc94c51f1bb19a68e84fb3b6
[]
no_license
https://github.com/ncfeo/mystie
4daa2a483808ce0a45f65280d28e7b3056a41ceb
1f7d295a8a97fae65a680a3a5db236a35a15cb33
refs/heads/master
2016-09-24T00:03:27.499958
2016-09-13T16:29:46
2016-09-13T16:29:46
68,126,256
0
0
null
false
2016-09-21T05:26:33
2016-09-13T16:28:17
2016-09-13T16:34:00
2016-09-21T05:26:33
455
0
0
1
JavaScript
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-08-31 14:42 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('blog', '0002_auto_20160830_0732'), ] operations = [...
UTF-8
Python
false
false
1,318
py
7
0003_blogcomment.py
5
0.632018
0.543247
0.059181
27
47.814815
201
dzintars2/mongoDB_sample
6,760,278,547,128
5205ce115cd8f74b5c5ffbabb222ffc6e59df6e8
954123b7360d9671f843e854d41aef19288b75a7
/MD3.py
dca7167c448fbbc6e6feb4dd79d62224368486f3
[]
no_license
https://github.com/dzintars2/mongoDB_sample
122044e9662235c25a4a076c6732734db080afff
df39cf6905e202e591b9e219b57d5c4c07b471d6
refs/heads/master
2020-04-16T08:19:58.853081
2019-01-12T18:21:15
2019-01-12T18:21:15
165,420,921
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#MongoDB import os, sys, json, pymongo, random from json import dumps from flask import Flask, g, Response, request, render_template from pathlib import Path from dateutil import parser import sampleData from faker import Faker #nejaušu datu ģerenators app = Flask(__name__) app.debug = True #DB MongoDB Atlas client ...
UTF-8
Python
false
false
12,747
py
4
MD3.py
2
0.619262
0.60749
0
322
38.304348
206
Bojanovski/ChessANN
3,006,477,112,209
f8a221702b659cec01321f4c6f681ab6bbc33f82
72bf677ee746546f08cc9b65430443dd0d67d2e5
/Code/dependencies/chess/polyglot.py
9cb06fde1184fd7925208c495b737634beae6665
[ "MIT" ]
permissive
https://github.com/Bojanovski/ChessANN
e9cb63800958d37ebeca7c1868d810f96a1754cd
0181c80c36031f95925f2649c91343664ee00c67
refs/heads/master
2020-06-13T22:07:47.918890
2017-07-22T16:05:31
2017-07-22T16:05:31
75,547,719
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # # This file is part of the python-chess library. # Copyright (C) 2012-2016 Niklas Fiekas <niklas.fiekas@backscattering.de> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundat...
UTF-8
Python
false
false
7,227
py
14
polyglot.py
9
0.580047
0.569531
0
235
29.753191
107
VovaStasiuk/PostApplication
6,279,242,194,694
c744535bfa5a093b3ec767d45e7e6553708505a7
b6f00dce0ad7c56bf3b4806150b638bb03d56f18
/apps/accounts/models.py
d476ce1dda11e5802a5e9cb9300a7af29c318de5
[]
no_license
https://github.com/VovaStasiuk/PostApplication
3a9b8a369e0e968944bd565591484d8c5d1bdfdc
55c6eccf714eb1c2623fe246ec745f1df338dd92
refs/heads/master
2022-12-13T01:18:09.379451
2020-03-09T18:48:06
2020-03-09T18:48:49
246,096,840
0
0
null
false
2022-12-08T03:46:10
2020-03-09T17:15:38
2020-03-09T18:49:00
2022-12-08T03:46:09
19
0
0
5
Python
false
false
from django.db import models from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin from .managers import CustomUserManager class Profile(AbstractBaseUser, PermissionsMixin): email = models.CharField(max_length=128, unique=True) date_joined = models.DateTimeField(auto_now_add=True) firs...
UTF-8
Python
false
false
759
py
19
models.py
15
0.740448
0.729908
0
20
36.95
73
lucy74310/PythonPracticeProjects
11,630,771,479,623
b5fce16f3779433e8977710e059f1143f8a50b11
a8cd585753283b31d1ad38da89e75e12f569ae66
/practice01/prac04.py
888b2a8ec14310bbf8a87ff05481f857489536f2
[]
no_license
https://github.com/lucy74310/PythonPracticeProjects
efe3084e4412649bca41f274fa6d8ac4c1f56624
a233f371adecee68fa0cc8f71c46f69b9acdccf7
refs/heads/master
2020-06-05T06:19:52.810826
2019-06-17T12:29:23
2019-06-17T12:29:23
192,342,793
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 문제4. # 다음과 같은 출력이 되도록 구구단을 작성하세요. (이중 for~in) for dan in range(1, 10): for gob in range(1, 10): print(dan, 'x', gob, '=', dan * gob, end='\t') print()
UTF-8
Python
false
false
217
py
21
prac04.py
21
0.526627
0.485207
0
7
23.285714
54
mpses/AtCoder
10,350,871,204,481
240402afa8130d13d32708e9f9dce77d1d27d194
2caa47f0bdb2f03469a847c3ba39496de315d992
/Contest/ABC077/c/main.py
cf7153bbeb6f6096d7529a44f021c3d6ece8882d
[ "CC0-1.0" ]
permissive
https://github.com/mpses/AtCoder
9023e44885dc67c4131762281193c24b69d3b6da
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
refs/heads/master
2023-03-23T17:00:11.646508
2021-03-20T12:21:19
2021-03-20T12:21:19
287,489,233
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 from bisect import* (n,), a, b, c = [sorted(map(int, o.split())) for o in open(0)] print(sum(bisect_left(a, i) * (n - bisect(c, i)) for i in b))
UTF-8
Python
false
false
167
py
540
main.py
488
0.60479
0.592814
0
4
41
62
hughfeehan353/conformal-cooling
16,853,451,701,784
ec462eda14ee459f2a063125d4377e5eedb07338
a0930595ef925309c3ecccd9444f9dca14552911
/Testing/test_paccman.py
39fb0ebe662b4dc845b9629d8bcaa984e79b40c1
[]
no_license
https://github.com/hughfeehan353/conformal-cooling
2f0a4deb001708406be9e0318193fd90dff6ec97
9d87f50cea0365daafcf89e0b3ab4a69bf2dccaa
refs/heads/main
2023-03-13T08:44:11.786500
2021-07-29T18:20:24
2021-07-29T18:20:24
309,420,775
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from math import isclose from _pytest.monkeypatch import MonkeyPatch def test_input(monkeypatch): monkeypatch.setattr('builtins.input', lambda _: "M") test_input(MonkeyPatch()) testTC = 15. #coolant temperature celsius testPP = 980. #density of plastic part kg/m^3 testCP = 1300. #specific heat capacity of plastic...
UTF-8
Python
false
false
5,136
py
14
test_paccman.py
6
0.714369
0.5919
0
143
34.902098
137
shsingh/secureCodeBox
11,201,274,726,209
f5d8b928fadf8f0d32baaa312c6e44a57a1ea9e9
a02d2ab626e3485add173176efd4613c8f50320b
/scanners/zap-advanced/scanner/tests/test_zap_context.py
1e0162239d42f44f92597dc9e71001ba97a3f199
[ "Apache-2.0" ]
permissive
https://github.com/shsingh/secureCodeBox
401fae49ba8e49d8bf1c12b3b89b71965cfc7453
f8364d46493ce2ff03c3df3f8640ab7cda3b8d0b
refs/heads/master
2023-01-28T19:34:55.719040
2023-01-11T17:04:21
2023-01-12T14:31:02
163,702,909
0
0
Apache-2.0
true
2018-12-31T23:30:12
2018-12-31T23:30:12
2018-12-28T09:03:13
2018-12-19T15:57:38
5,401
0
0
0
null
false
null
#!/usr/bin/env python # SPDX-FileCopyrightText: the secureCodeBox authors # # SPDX-License-Identifier: Apache-2.0 # -*- coding: utf-8 -*- import pytest from unittest.mock import MagicMock, Mock, patch from unittest import TestCase from zapv2 import ZAPv2 from zapclient.configuration import ZapConfiguration from z...
UTF-8
Python
false
false
758
py
496
test_zap_context.py
154
0.729551
0.721636
0
30
24.266667
69
JacekPierzchlewski/fsCS-repro
8,057,358,657,136
f571d409d2d24cc4f6dbe72fef723abd406ba07c
22779033a9176d1f96485dcb82100effb12daad5
/RxCS-15Jan2015/rxcs/ana/SNR.py
2fcb0b1bb8cfe7da46c285d3bd8d5e5b86717d8d
[ "BSD-2-Clause" ]
permissive
https://github.com/JacekPierzchlewski/fsCS-repro
4101a6e72062c0e06e06fb2c3fc87b77b087968e
9a90e61edb73433a847d63b2b69f6327b71a73c5
refs/heads/master
2016-08-05T04:37:58.266461
2015-01-16T15:17:42
2015-01-16T15:17:42
29,351,869
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" This module contains SNR evaluation function of the reconstructed signals. |br| *Author*: Jacek Pierzchlewski, Aalborg University, Denmark. <jap@es.aau.dk> *Version*: 0.1 | 20-MAY-2014 : * Initial version. |br| 0.2 | 21-MAY-2014 : * Success Ratio computation is added. |br| 0.3 | 21-MAY-2014 : ...
UTF-8
Python
false
false
8,591
py
46
SNR.py
32
0.542195
0.534396
0
253
32.956522
79
eddie-dunn/test-selection
12,249,246,773,711
f95a08e2a0cbca1ddc7be2326d6bce6de1a2776e
6a8d6c3dd81b7220d56429c4e26fe6dabefc4670
/scripts/correlation_parser.py
7280a82f4f34df903738d21609c0f39be6c87e65
[]
no_license
https://github.com/eddie-dunn/test-selection
81be0fc9302abb26dda0efb1b7dc3b00b709abbf
05a216e50e41eaa18d1b5b9855ed394b4e1c08d5
refs/heads/master
2016-12-13T01:07:43.609479
2016-04-18T11:23:31
2016-04-18T11:24:10
37,119,829
0
0
null
false
2016-01-29T17:24:58
2015-06-09T08:24:22
2015-09-24T14:00:51
2016-01-29T17:24:57
56
0
0
0
Python
null
null
#!/usr/bin/env python3 """Correlation parser Query correlation file with a package name and get recommended tests to run. Written for Python3 but should support Python2 as well. """ from collections import defaultdict import argparse import json import sys import operator MAX_NBR_OF_TESTS = 1203 MODE_CHOICES = ['W...
UTF-8
Python
false
false
5,779
py
27
correlation_parser.py
21
0.593701
0.588164
0
193
28.943005
81
pankajkhatiwada/Sen_Machine_Deep_Learning
4,011,499,465,660
49c8590eaff0a64d772eef12300f35bb0523944f
84d3368a4536d9a1b3cd7548b298ebc28f6b1e81
/Regression.py
80a6a9b4700268017d60da355f90bb33f59a1811
[]
no_license
https://github.com/pankajkhatiwada/Sen_Machine_Deep_Learning
306ed6158707af9eea12bb18227e190cea7f1e2e
86f9d284d9538c6a4e845cdf991ecdea8dc0c748
refs/heads/master
2022-12-11T08:38:16.490245
2020-09-10T13:18:46
2020-09-10T13:18:46
294,118,706
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import math import quandl df = quandl.get("WIKI/GOOGL") df = df[["Adj. Open", "Adj. High", "Adj. Low", "Adj. Close", "Adj. Volume"]] df["HCL_PCT"] = (df["Adj. High"] - df["Adj. Close"]) / df["Adj. Close"] * 100 df["PCT_change"] = (df["Adj. Close"] - df["Adj. Open"]) / df["Adj. Open"] * 100 df = df...
UTF-8
Python
false
false
552
py
1
Regression.py
1
0.608696
0.585145
0
19
28.105263
79
vandemaelefelix/sudoku_solver
1,065,151,892,797
f820cc020cdf338f9d09aff0bfe344db8389daae
682e2b36cda6df4e046b7006a9c5b731e2692d41
/python code/extract_sudoku.py
508618193118f387b04c7e8593f3843f06984d1a
[]
no_license
https://github.com/vandemaelefelix/sudoku_solver
410637dd681fe6506807fbf2a027cb9b48984222
862ed6881de6ad3993a102d639d7e4423f9734cc
refs/heads/master
2022-07-09T22:40:54.265131
2020-05-20T11:15:02
2020-05-20T11:15:02
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import numpy as np import matplotlib.pyplot as plt import tkinter as tk from tkinter import filedialog import glob, os import time import operator def preprocess_image(image): # Make image grayscale to remove colors processed_img = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) # Blur image so lines...
UTF-8
Python
false
false
3,137
py
16
extract_sudoku.py
10
0.67815
0.644657
0
103
29.446602
119
jtokaz/checkio-mission-univocalic-davasaan
5,299,989,646,147
e5992a4eaaa7cbed403c2cc3b03205548366f161
9b0eac9a0f264a1e4968cfd40f7daa203948dba3
/verification/tests.py
4dc73f34ed38802a0295a7c2402f42b76d850c20
[]
no_license
https://github.com/jtokaz/checkio-mission-univocalic-davasaan
bba35d00bd1b2b0d6f0f999d8bc7f984712481cb
997de1894e11f757cf1f68fbbb48f1d395e66878
refs/heads/master
2021-01-23T14:05:25.984848
2015-09-02T12:13:22
2015-09-02T12:13:22
41,778,812
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import random TESTS = {"Basic": [ {"input": 0, "answer": 0}, {"input": 9, "answer": 0}, {"input": 41, "answer": 4}, {"input": 65, "answer": 6}, {"input": 79, "answer": 7}, ]} for x in random.sample(range(0,1000),10): TESTS["Basic"].append({"input": x, "answer": x//10}) R = range(0,2000000001)...
UTF-8
Python
false
false
426
py
3
tests.py
1
0.551643
0.438967
0
16
25.625
56
rohit-devops-test/python_training
14,156,212,229,762
207033c22b1d59cce57db3ba689b36d00350040d
d01954425c95f59e96b0abae335e2c06ad400ae6
/day_01/labs/lab_04.py
ca2d2b9aff4c575d5a2e0dca01ffcb524c9e4915
[]
no_license
https://github.com/rohit-devops-test/python_training
2ec20f1a03ea8df75d4706b024670822232d4786
d65ebed4f2c7ef5724614a35bc111bdf5d473d26
refs/heads/master
2023-02-18T22:06:13.367733
2021-01-21T07:56:20
2021-01-21T07:56:20
291,370,991
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Program to filter the 2 digit numbers whose sum of individual # digits is some value say 10 # [100 random numbers] # [filtered values] # 64 => 6 + 4 = 10 # 33 => X # 73 => & + 3 = 10 import random # Input RN = [] for i in range(100): RN.append(random.randint(10, 99)) print(RN) print('_'*60)...
UTF-8
Python
false
false
463
py
64
lab_04.py
57
0.531317
0.457883
0
31
12.548387
63
JoaoMFachinetto/servicedrivenapplication
19,207,093,785,393
99e733cbe67f78ed43329a1b9c13e802c71a66b7
8ca8fc63e9db0916a4fec4a54da9888ef9f2fc2e
/flaskr/modules/__init__.py
8025758ebe25a1be351535b970a2de8f7b499097
[]
no_license
https://github.com/JoaoMFachinetto/servicedrivenapplication
3d3465de64a3d118a31611d50dac61810d4ed21e
0b370166c4198bdb8a6d5b689b0da233cda5d6c4
refs/heads/master
2021-05-28T06:23:27.505496
2015-01-14T13:10:09
2015-01-14T13:10:09
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys sys.path.append('/modules')
UTF-8
Python
false
false
39
py
27
__init__.py
24
0.74359
0.74359
0
2
18.5
27
supernnova/SuperNNova
9,526,237,485,474
bd22ee37d99aeb642b0ab6399e9cddc87e628beb
13b7614d34150fcaa2f4cd7d379bf4769a2e4423
/supernnova/utils/experiment_settings.py
6b98247767d59c8583fdd9a6ca1b7c7d2b6ab755
[ "MIT" ]
permissive
https://github.com/supernnova/SuperNNova
4b06395a21b6e6fb7117b54527cbcec52cf49968
fcf8584b64974ef7a238eac718e01be4ed637a1d
refs/heads/master
2023-06-21T21:56:07.052935
2023-06-13T09:22:53
2023-06-13T09:22:53
179,472,905
31
11
MIT
false
2023-06-13T09:22:55
2019-04-04T10:08:22
2023-05-18T19:17:04
2023-06-13T09:22:54
5,347
27
7
11
Python
false
false
import os import json import h5py import itertools import numpy as np from pathlib import Path from collections import OrderedDict class ExperimentSettings: """Mother class to control experiment parameters This class is responsible for the following - Defining paths and model names - Choosing the de...
UTF-8
Python
false
false
10,612
py
78
experiment_settings.py
42
0.516491
0.513004
0
306
33.679739
88
i-DAT-Qualia/Card-Backend
1,090,921,734,428
45572a6b73969b0546193b5381c5007f09f84d7c
ba6c71bc21319a190165b7c2969745c99b3cd6d4
/cards/management/commands/updateScans.py
3d1d725b3bb6133e3c812dbf51c7a2117b474ccc
[ "Apache-2.0" ]
permissive
https://github.com/i-DAT-Qualia/Card-Backend
7926277712d6f6151c00352a77ded80f8ca6dd1d
ad11c4bdecc20f7f8c386c8f3f452cbfd9c9aa73
refs/heads/master
2021-01-01T18:22:22.586576
2014-10-06T05:07:30
2014-10-06T05:07:30
17,941,329
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.core.management.base import BaseCommand, CommandError from cards.models import * import datetime, math, time from decimal import Decimal def updater(reader_id,start_date,end_date,reader_location_id): scans = Scan.objects.filter(readerLocation__reader__id = reader_id) scans = scans.filter(added__ra...
UTF-8
Python
false
false
816
py
17
updateScans.py
12
0.678922
0.656863
0
29
27.103448
75
Sparsh239/Python-Decision-Analysis
13,872,744,398,923
86a144b7c97369cdf96cdd1b74349a125764dc8c
593a3ead56f15b0a9fa2601e8c6f961d07f5e98b
/Decision_Tree_Analysis.py
3708f932af983252199775da46c483fc8e916eb0
[]
no_license
https://github.com/Sparsh239/Python-Decision-Analysis
309fe74e0c99a88f17e90cf28218b4ddc85c7595
38e9431017d188be4b0f330d9a730d2b09514a1f
refs/heads/master
2021-04-03T19:17:43.438997
2020-03-20T23:45:20
2020-03-20T23:45:20
248,389,379
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Mar 3 17:59:17 2020 @author: skans """ # -*- coding: utf-8 -*- """ Created on Sat Feb 22 11:39:33 2020 @author: skans """ import json from operator import itemgetter class Node: def __init__(self,node_name,node_type,parent_name,cost,benefits, probability): sel...
UTF-8
Python
false
false
7,594
py
1
Decision_Tree_Analysis.py
1
0.537135
0.526468
0
189
39.185185
151
lilium513/competition_programing
4,801,773,457,621
4494e468b47b66e9f68ec790d3bec855c0534fb0
eee647635af1583d9b1150b7cd3195336291e1d2
/74ABC/c.py
d89d46ed774a494c67cc84bac8828f0540821447
[]
no_license
https://github.com/lilium513/competition_programing
42f69222290b09b491477b8a2b9c2d4513ebe301
45082bf542224b667e753ad357cf145f683fde54
refs/heads/master
2020-06-22T03:16:34.510906
2019-07-31T18:22:31
2019-07-31T18:22:31
197,619,005
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import itertools import math LIM = 50 def do(): ans = 0 A,B,C,D,E,F= list(map(int,input().split(" "))) waters = [] for i in range(31): for j in range(31): water = A*i* 100+B*j* 100 if water <= F and water != 0: waters.append(water) solts = [] f...
UTF-8
Python
false
false
923
py
250
c.py
248
0.445287
0.4052
0
43
20.488372
79
alexweav/Deep-Learning
3,942,779,995,766
a40c85b29c1dd2e409a51bdb7c24b0a5d9c98de8
171fe9df8b2b257fe5898a344e85a51a518c4e0b
/main.py
8be46c0c64964fb2c9eb8354fae38afefb5dc9dd
[ "MIT" ]
permissive
https://github.com/alexweav/Deep-Learning
1d7f68501295a6732e77c2689fca64ec507b0976
50263de4d472a5e5918d1d6a73c3d3f6eeda58ac
refs/heads/master
2016-09-14T12:43:58.432584
2016-05-22T23:19:54
2016-05-22T23:19:54
58,339,101
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri May 06 17:56:07 2016 @author: Alexander Weaver """ import numpy as np import LearnyMcLearnface as lml def main(): d = lml.layers.DropoutLayer(10, 1) opts = { 'input_dim' : 700, 'init_scheme' : 'xavier' } nn = lml.NeuralNetw...
UTF-8
Python
false
false
1,240
py
4
main.py
3
0.539516
0.506452
0
56
21.160714
72
stuartarchibald/awkward-1.0
8,418,135,901,958
12751a0712946692288b30f2834fe70d3a7d66ed
c85ba56fb347f0ae42c2113c6af4653d888cb649
/tests/test_0331-pandas-indexedarray.py
539b2e8a5e164f3161c6938a44a2832cd632456f
[ "BSD-3-Clause" ]
permissive
https://github.com/stuartarchibald/awkward-1.0
96887e4e5327679dcaf856cfaf2218e131daacb6
0a378a1dd8fe93bf82859437116b21225844d365
refs/heads/master
2023-01-10T18:29:39.866273
2020-11-10T20:25:07
2020-11-10T20:25:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/master/LICENSE from __future__ import absolute_import import sys import pytest import numpy import awkward1 pandas = pytest.importorskip("pandas") def test(): simple = awkward1.Array([0.0, 1.1, 2.2, 3.3, 4.4, 5.5]) assert awkward1...
UTF-8
Python
false
false
5,185
py
22
test_0331-pandas-indexedarray.py
20
0.603086
0.524012
0
91
55.978022
290
elvincalex/Assignment1
17,961,553,266,997
da9be0a6f69bcdce02e1a14d2a922e5983b506d1
0c2d0d4afeb1adb7546a3bb187d07f3e8840bd74
/main.py
b7deff4db8852742f89d46668b15c58d92284f95
[]
no_license
https://github.com/elvincalex/Assignment1
a53cd901425cb13e5c5f722957fbd7e713891499
9e18af2a4e049fd4c1bbb24b5a812036a5948bbc
refs/heads/master
2023-07-28T17:56:30.436422
2021-09-11T10:20:10
2021-09-11T10:20:10
404,648,507
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import sys history = {0:''} choices_dict = {"r": "Rock", "p": "Paper", "s": "Scissors"} beats = {'r': 'p', 's': 'r', 'p': 's'} choices = ["r", "p", "s"] def play_again(): while True: print("\n\nPlay another game?\nEnter y for Yes or n for No") print("\n--------------------------------"...
UTF-8
Python
false
false
4,254
py
2
main.py
1
0.5315
0.522332
0
95
43.778947
183
harimohanraj/neural-network-reference
1,958,505,102,947
8a26dc4245dee6bf8cbdc3595108794935d88a56
101a060b2521ec451984128f2056666077cc010f
/networks.py
da13ed424bb2853b3f988c5e5f713e5f2cfeaedd
[]
no_license
https://github.com/harimohanraj/neural-network-reference
9c8c75c9f38ed56c5f21b4e3d1c36d28a19a4a9b
c946c825fb703675ad4af982dcd85c911d1d4421
refs/heads/master
2021-01-09T21:42:45.879330
2016-03-09T20:57:27
2016-03-09T20:57:27
49,536,393
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jan 14 17:37:32 2016 @author: Hari """ import numpy as np from layers import * from optimizations import * from costs import * class Network(): def __init__(self, name, optimizer, cost): self.name = name self.layers = [] self.optimizer = op...
UTF-8
Python
false
false
4,662
py
5
networks.py
4
0.556628
0.5429
0
121
37.520661
102
kp258/gitrepo
17,179,886,986
51b1896030fe9ede6b386aaf632c736ae1c459e6
9432e9c485c2055b0bd0559e3ef8ffee2e3af9d0
/package/alerts.py
15e4d0dffee265468914db1199a0271c19af4344
[]
no_license
https://github.com/kp258/gitrepo
4b9abd62bcf1f1af22e6bda0c29127b1e2a7d1d8
caa4cbf52489ff957ebbb4477aa23882cda00b62
refs/heads/master
2016-09-19T08:12:16.137000
2016-09-08T12:28:03
2016-09-08T12:28:03
67,767,036
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def get_alert_level(obj_package): """ determines the alert level basis the current location vs the destination of the given package if the package is at its destination, the level is L1, else, L2 """ if (obj_package.get('cn', '') in obj_package.cs.get('sl', '') and (obj_package.get('cn'...
UTF-8
Python
false
false
411
py
1,103
alerts.py
744
0.588808
0.579075
0
13
30.615385
76
aarjavjain1/Team-Website
5,592,047,459,049
6f957e9579f63f9fab43897b00a60ab74248062c
4754e61096d32950a06be9c77f44bb15fca43d68
/WebApp/urls.py
26217e172dbb7adddaaa086501bcf3a72b28df48
[ "Apache-2.0" ]
permissive
https://github.com/aarjavjain1/Team-Website
c94e173de68a43cd8986534d8bf9b351f762dd34
e74e10a95d1ffad89eaebb8cc530f3df1280e691
refs/heads/master
2020-06-10T03:17:58.222249
2019-06-24T19:36:16
2019-06-24T19:36:16
193,565,760
0
0
Apache-2.0
true
2019-06-24T19:23:44
2019-06-24T19:23:43
2019-06-23T22:16:44
2019-06-23T22:16:42
20,126
0
0
0
null
false
false
from django.urls import path from . import views app_name = 'webapp' urlpatterns = [ path('', views.index, name='index'), path('timeline/', views.timeline, name='timeline'), ]
UTF-8
Python
false
false
186
py
9
urls.py
3
0.66129
0.66129
0
9
19.666667
55
dmarcos1982/Felicidades_Miguel_Telegram
2,353,642,104,277
4e007161004928b5194676160cef5690ad02dce3
8828c6ea2cbc7ccbb3210a38ea13855f016b1f49
/game_NoToken.py
85592b40aceb5dbb5576cf87ad4f45accf4eb92a
[]
no_license
https://github.com/dmarcos1982/Felicidades_Miguel_Telegram
4d15855b39ed57e82cc87d6dc128bc3f0a41e5a7
f44321737032640287f30cb465e309954c494668
refs/heads/master
2020-03-19T16:32:19.156314
2018-06-10T08:46:37
2018-06-10T08:46:37
136,718,772
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python2.7 # -*- coding: utf-8 -*- # Importamos el mapa import World.map as map # Librería de la API del bot import telebot # Tipos para la API del bot from telebot import types # Librería para hacer que el programa que controla el bot no se acabe. import time # Libreria para los temporizadores from threadi...
UTF-8
Python
false
false
36,808
py
2
game_NoToken.py
2
0.649844
0.642951
0
634
56.664038
846
flashlightli/math_question
12,008,728,584,284
761e6434328825d75e3b72f40a9ec562a70fe756
ff1ab60460bc1102c1dc2a540fad92b4e562ff54
/leetcode_question/easy_question/83_Remove_Duplicates_from_Sorted_List.py
424dcd73d4edb4666bc516e70cb62885fd5a9734
[]
no_license
https://github.com/flashlightli/math_question
0009e707c43f36b8bbbfa98725191e8810e70126
9a4a5fc02821f0570170b3c18ef79ec4ad29a56d
refs/heads/master
2023-05-25T07:12:57.571498
2022-04-17T01:43:53
2022-04-17T01:43:53
214,326,799
0
0
null
false
2023-05-22T22:44:56
2019-10-11T02:33:57
2021-10-08T16:41:19
2023-05-22T22:44:56
185
0
0
4
Python
false
false
""" 给定一个排序链表,删除所有重复的元素,使得每个元素只出现一次。 示例 1: 输入: 1->1->2 输出: 1->2 示例 2: 输入: 1->1->2->3->3 输出: 1->2->3 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list """ # Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = Non...
UTF-8
Python
false
false
1,000
py
141
83_Remove_Duplicates_from_Sorted_List.py
139
0.587444
0.561659
0
50
16.86
70
HttpRunner/HttpRunner
1,331,439,889,983
d166c5ad4feccc34ab43b5c658e96191be8387a8
6cb37fa9be336090eb1a8e1c10c417bc4634be0c
/httprunner/loader.py
d7f51502df20d3a380db194d6ecdc54d40292fd9
[ "MIT" ]
permissive
https://github.com/HttpRunner/HttpRunner
a1bea86db1a2ecba1b98201b02192ad6653fd98f
67c49d0cbe604c73aff538b2785518600209b673
refs/heads/master
2018-10-22T15:04:55.622867
2018-10-10T12:49:27
2018-10-10T12:49:27
94,166,852
1,246
486
null
null
null
null
null
null
null
null
null
null
null
null
null
import collections import csv import importlib import io import json import os import sys import yaml from httprunner import built_in, exceptions, logger, parser, utils, validator from httprunner.compat import OrderedDict ############################################################################### ## file loade...
UTF-8
Python
false
false
29,564
py
9
loader.py
9
0.523204
0.51786
0
967
29.572906
105
maximoskp/mel_ble_examples_ICMNC2019
5,970,004,590,026
cb164d758af1627e26cec593222bc68cf5c3fedf
9d270a42a5bd4b6259560215734bc883a4203556
/MelVis_styles_N_blends.py
28456a9faa4ba8cda4dd4679b5d47b75bd3281b2
[]
no_license
https://github.com/maximoskp/mel_ble_examples_ICMNC2019
212b30f2fea267c1f5900d11f6ad863451bd4585
720c00038f3fe789a3838ea051dc65e5823b3c17
refs/heads/master
2020-04-21T16:58:19.239860
2019-02-11T12:38:19
2019-02-11T12:38:19
169,720,459
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Dec 4 06:43:32 2018 @author: maximoskaliakatsos-papakostas """ import os cwd = os.getcwd() import glob import music21 as m21 import numpy as np from sklearn.decomposition import PCA import MBL_melody_features_functions as mff import CM_user_output_fun...
UTF-8
Python
false
false
11,142
py
21
MelVis_styles_N_blends.py
5
0.613445
0.590558
0
239
45.623431
156
poojirules180/Python-Learning-
4,131,758,547,239
4c89fc41abb848fe2df555c209c38af0aaf197e6
f49498ec6b53221f8cfdfcc1a33aa614d6441f4b
/Data points.py
56e5c1fd75bf79566359497576b6539e79cb4168
[]
no_license
https://github.com/poojirules180/Python-Learning-
460a97847d32af6f08854c9b15fdc4203f5972ad
c3ae8ada8a8a9c590e49fd13827e0d5568b6625f
refs/heads/master
2022-11-02T09:45:43.390577
2020-06-19T05:06:16
2020-06-19T05:06:16
270,888,898
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Opening file readFile = open("poojith.txt", "r") #number of words data = readFile.read() #using data.split, It will help me dissect each word in the file. words = data.split() numberofWord = ('Number of words in text file :', str(len(words))) print(numberofWord) #code for number of lines lines = 0 with open("poojith...
UTF-8
Python
false
false
1,472
py
18
Data points.py
15
0.718071
0.711957
0
38
37.684211
151
uw-it-cte/uw-restclients
19,688,130,107,599
a2523a18061ff12518edb568489e0df70db02fb7
551dc5c9b361ee2ca2f41c762e101980983f8523
/restclients/canvas/courses.py
407fd51c939698d3ee6b143f8bcfecfd9cccaafa
[ "Apache-2.0" ]
permissive
https://github.com/uw-it-cte/uw-restclients
d20fe667bea13d0b146af90764579c4cf665ed72
2b09348bf066e5508304401f93f281805e965af5
refs/heads/master
2021-01-17T05:59:19.818654
2017-01-10T23:01:39
2017-01-10T23:01:39
26,886,439
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from restclients.canvas import Canvas from restclients.models.canvas import CanvasCourse, CanvasTerm import re class Courses(Canvas): def get_course(self, course_id, params={}): """ Return course resource for given canvas course id. https://canvas.instructure.com/doc/api/courses.html#meth...
UTF-8
Python
false
false
4,911
py
87
courses.py
80
0.583181
0.581959
0
138
34.586957
88
liamattard/Language_model-1.0.
7,395,933,698,088
86770e62429c797de7c720bab30d4769cb6a45c8
6d74a3665181f78defe9b8ccf44c64c22e202c9f
/language_model/probabilityCalc.py
49a0177c7be14c617d7a9516cdeaaa5bac97460a
[]
no_license
https://github.com/liamattard/Language_model-1.0.
62f067cfe9180ca44da3562539d3b35c26da2ee5
d22cdfa7c0c8d7c0fb1eeefe6a98f34cf95ee013
refs/heads/master
2022-04-22T23:55:26.943656
2020-04-16T08:11:30
2020-04-16T08:11:30
256,150,601
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import numpy as np from collections import Counter def calculateProbabilityFromUnigram(unigram,sentence,word): return unigram[word] def calculateProbabilityFromBigram(bigram,sentence,word): if (sentence[-1],word) in bigram: return bigram[sentence[-1],word] else: return 0 de...
UTF-8
Python
false
false
2,264
py
17
probabilityCalc.py
7
0.72659
0.707155
0
55
40.163636
129
olse/faq
12,687,333,426,614
3e965c3b4d50571084b5cedb88491cfde9c4e57c
49572f3e1beb5cbdf97262c772251743783a1274
/faq/admin.py
00ec6f0b055b826e9c7b2b8c31a58be5d6b57ca3
[]
no_license
https://github.com/olse/faq
fac1eeef09a1007e1de3dfb5d5a85cf93dfff740
c4ae87c38e5f719f3b8beb27beae22a515ec8c24
refs/heads/master
2015-07-31T17:38:09.731216
2012-07-17T16:16:39
2012-07-17T16:16:39
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from faq.models import Language class LanguageAdmin(admin.ModelAdmin): list_display= ['name','code'] admin.site.register(Language,LanguageAdmin)
UTF-8
Python
false
false
183
py
35
admin.py
15
0.79235
0.79235
0
5
35.4
43
Festus254/commentsprediction
13,520,557,091,926
e3c1ec07af8fcf75af35de176ce419c9d1c25ddb
f55ce0cf1573c95db6b7c07098d6bb6c2ecb113e
/app.py
c6b4ffc9d84c5f9919335a8f7d585cfc6bc56be5
[]
no_license
https://github.com/Festus254/commentsprediction
9abe6e8678e245744dc1eadf7f64e8d53cd13a73
fc6bf88369381503229c73a7ce6ad40698696bd5
refs/heads/main
2023-05-02T09:56:59.004484
2021-05-24T14:55:13
2021-05-24T14:55:13
345,622,505
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import streamlit as st import pandas as pd import numpy as np import nltk import re import string import pickle import joblib import timeit #from sklearn import #from prob_svm import LinearSVC_proba nltk.download('popular') stopwords = nltk.corpus.stopwords.words('english') ps = nltk.PorterStemmer() wn = nltk.WordNe...
UTF-8
Python
false
false
4,765
py
7
app.py
1
0.682057
0.675761
0
120
38.708333
192
poeks/twitterbelle
19,292,993,118,772
8e7ec29ee1a5c318a97412a8de534cdb02c52ac6
f3c0ec2252db6a5f9ec1418a56ab67bee5e75c55
/lib/parser.py
0b4f87ef323c12a4fd60e5671238fa3db26fd242
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
https://github.com/poeks/twitterbelle
b10d8cd78019dc88e5953ab881d609488fcb3f95
48d7de8bbfa089391607b3089890128446447056
refs/heads/master
2021-01-25T00:16:29.496568
2010-10-18T14:35:45
2010-10-18T14:35:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from lib.BeautifulSoup import BeautifulSoup import urllib2 from django.conf import settings import re from lib.exception import PoeksException from lib.BeautifulSoup import BeautifulSoup import urllib2 class Parser: def __init__(self): pass def open_url(self, page): try: this_url = "%s%s" % (self.url, pa...
UTF-8
Python
false
false
1,539
py
31
parser.py
15
0.65822
0.654971
0
67
21.955224
107
sdsubhajitdas/Algorithm-Collection
18,717,467,491,332
c364989c97265f02feb3694f53af8a9e106e2e7b
b87387634f2ab0497210513a727addb94a06b1a0
/Data Structures/Stack/Stack.py
75aa795171e93a56408514c3fda3baa6a0e50075
[]
no_license
https://github.com/sdsubhajitdas/Algorithm-Collection
93036fa3f08bed26dc87bf727a65e99a61e05b4b
85d644cd4f3737bfdf2ff115d2d56b7d01f7bbb3
refs/heads/master
2020-05-30T06:50:21.641213
2019-07-13T18:11:11
2019-07-13T18:11:11
189,586,819
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
class Stack(): def __init__(self,length): self.length = length self.stack = [None]*length self.pointer = -1 def push(self, element): if self.pointer >=self.length-1: print("Stack Overflow") return self.pointer+=1 self.stack[self.pointe...
UTF-8
Python
false
false
937
py
37
Stack.py
37
0.545358
0.531483
0
39
23.051282
70
openstack/cloudkitty-dashboard
8,160,437,880,606
e85dcc92430f21c97ecb2e54fe1659cabe9f837b
f18df31d4ba8569b420219f5d52da311a32581d6
/cloudkittydashboard/dashboards/admin/modules/forms.py
dd0388810d497c6c71a8159d3db8829c2cd83498
[ "Apache-2.0" ]
permissive
https://github.com/openstack/cloudkitty-dashboard
418b54a59a93201c79e422ee4571c9f24b6234e5
4ed8863c1b15d489a2a78e767b737402647bc4da
refs/heads/master
2023-08-23T06:09:10.473334
2023-07-12T15:40:17
2023-07-12T15:40:17
23,157,716
25
14
Apache-2.0
false
2022-01-18T10:16:11
2014-08-20T17:35:14
2021-12-28T21:37:49
2022-01-18T10:15:37
525
46
15
0
Python
false
false
# Copyright 2017 Objectif Libre # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
UTF-8
Python
false
false
1,407
py
53
forms.py
26
0.677328
0.671642
0
37
37.027027
79
lrutl/nudgebc.com
6,562,710,032,845
d8bcafcdeccd5ff2b0275517c8236bc77bace9d8
3b6042325da6dbf24fdbed8e1f35fcadf2c34140
/nudgeproject/urls.py
101db6d589f8687eca6e6dd315a84daef66e01f1
[]
no_license
https://github.com/lrutl/nudgebc.com
45c731f8340b8a4d24a1255f59b0a253f3850768
710eb94e72070bb01b734e85d32d8a7fa31db907
refs/heads/master
2023-08-25T18:10:01.941857
2021-10-28T20:51:54
2021-10-28T20:51:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from django.urls import include, path from django.conf.urls import include, url from django.views import generic from material.frontend import urls as frontend_urls from django.conf import settings from django.conf.urls.static import static urlpatterns =[ url(r'', include(frontend_...
UTF-8
Python
false
false
523
py
21
urls.py
8
0.782027
0.782027
0
14
36.357143
78
pyfibot/pyfibot3
11,613,591,585,495
39a7926d82f32bc9b3318b8a5fa669c42cde9ffb
d17863f84626328917c36ad36622e4ef4ce26bb4
/pyfibot/plugins/available/posti.py
5ddff43102396e61988942112e3bd61a1c5f4368
[]
no_license
https://github.com/pyfibot/pyfibot3
48b479e7b099e6743b23c62e0d9670a8066ddcad
75b63e60f17735150fdcdb1a72c181efbef9ca08
refs/heads/master
2021-01-20T19:34:34.014768
2018-12-28T12:33:30
2018-12-28T12:33:30
63,968,611
0
0
null
false
2019-03-06T07:56:34
2016-07-22T16:42:20
2018-12-28T12:33:42
2018-12-28T12:33:40
124
0
0
6
Python
false
null
""" Get shipment tracking info from Posti """ from pyfibot.plugin import Plugin from pyfibot.url import URL from pyfibot.utils import parse_datetime, get_relative_time_string from urllib.parse import quote_plus class Posti(Plugin): def init(self): self.lang = self.config.get('language', 'en') @Plugi...
UTF-8
Python
false
false
1,662
py
42
posti.py
34
0.643201
0.633574
0
43
37.651163
128
New-arkssac/dwm
2,027,224,574,870
9e3df0d0c84e91baf236f74e9365429034b5962e
41331559f499fdcefaec97a31abbfaceff42e43a
/statusbar/bar/vol.py
2e84c8e9dcc165c0825fe3cfa09262c22c62a68e
[ "MIT" ]
permissive
https://github.com/New-arkssac/dwm
967cfdf387d3acaab9c62eb4b1b25a42b75f7cef
d2ee335a6730c46873cd13cdfe30a631a339258f
refs/heads/master
2023-03-15T15:16:52.743029
2023-02-28T12:25:03
2023-02-28T12:25:03
580,392,527
0
0
MIT
true
2022-12-20T12:58:40
2022-12-20T12:58:39
2022-12-19T17:11:37
2022-12-15T04:10:42
21,485
0
0
0
null
false
false
#!/bin/python3 import os import subprocess import re class MyVol: def __init__(self, *args) -> None: self.this = "vol" self.dwm = os.environ["DWM"] self.s2d_reset = "^d^" # self.color = "^c#1A1A1A^^b#516FAB^" self.color = "^c#babbf1^^b#1a1b26^" self.signal = f"^s{s...
UTF-8
Python
false
false
3,878
py
14
vol.py
10
0.417486
0.406622
0
126
29.68254
133
arivolispark/datastructuresandalgorithms
14,001,593,420,932
351f109958fb7c9c118e4b5acaa3185639d20b1f
9a5ad43ce6add59f266074c463c402f4ff717dc5
/leetcode/30_day_leetcoding_challenge/202004/20200423_bitwise_AND_of_numbers_range/bitwise_AND_of_numbers_range.py
c264df0e5e67c2a936282a3b72f630884411ba39
[]
no_license
https://github.com/arivolispark/datastructuresandalgorithms
9cb1cd66f61ab22471d7378fce51f29fcf0ef553
57534898c17d058ef1dba2b1cb8cdcd8d1d2a41c
refs/heads/master
2021-06-24T15:51:04.438627
2021-01-12T05:14:37
2021-01-12T05:14:37
84,909,655
0
1
null
false
2021-01-12T05:14:38
2017-03-14T05:38:16
2021-01-05T10:18:42
2021-01-12T05:14:38
2,529
0
1
0
Python
false
false
""" Title: Bitwise AND of Numbers Range Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. Example 1: Input: [5,7] Output: 4 Example 2: Input: [0,1] Output: 0 """ class Solution: def rangeBitwiseAnd(self, m: int, n: int) -> int: re...
UTF-8
Python
false
false
1,889
py
370
bitwise_AND_of_numbers_range.py
265
0.499206
0.451032
0
106
16.820755
60
Fritas/destroyer-airplanes
12,094,627,945,867
9a75523ff021b40476f9d5d78adef40240309692
dba9dc48a6d97ac4fdce93ffc89fdfe689773d1d
/model/objeto_aeronave.py
566bfaa36eee44435cc759da737c17afcfabba99
[]
no_license
https://github.com/Fritas/destroyer-airplanes
569679f5df0007e6f54b15e634662d9a5fdc4bf5
628279541d7f89adb2e9c5eb24e05dfd884146b0
refs/heads/master
2020-03-28T00:09:44.831421
2018-10-23T19:16:00
2018-10-23T19:16:00
147,380,524
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Created on jun de 2017 @author: Adriano @author: Andrei @author: Joao """ from .objeto import Objeto class ObjetoAeronave(Objeto): """ Objeto base para aeronaves do jogo """ def __init__(self, ambiente, img_aeronave, img_projetil, dano, resistencia, vida, velocidade_tiro, velocidade, pos_x=0,...
UTF-8
Python
false
false
2,364
py
17
objeto_aeronave.py
17
0.612521
0.608714
0
76
30.105263
133
collinwat/doku
16,028,817,982,602
a97d26c54b9660b1f690f9a0a31a725b508b9ceb
910564164b1dccfec90ebcbbf427472fd0e1fd7c
/doku/sudoku/game.py
b81db36f8a7694d7a898d9131e64563cc3c9116c
[ "MIT" ]
permissive
https://github.com/collinwat/doku
4d6465108c58c0c10d5840881423f38f990af302
77da5a2c71db187c32f765681df08efdc0f47d6c
refs/heads/master
2021-01-25T05:15:21.684140
2013-04-19T21:08:58
2013-04-19T21:08:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import doku.utils as utils import solve import parse class Board(object): def __init__(self, board, size=None): board = board.strip() if size is None: size = utils.box_size(len(board)) if not size: msg = 'Size not specified and board string is not a perfect squar...
UTF-8
Python
false
false
2,747
py
17
game.py
12
0.517292
0.511467
0
101
26.19802
79
dllm-pk/ETI_Team02_assignment1
12,163,347,400,245
c53a2d3a9f2322f8d92b3c7a3beecb7f456aad2e
8f3031b2ec53e9c4f728156e9986faadfb20e6a3
/code/movement.py
d31a01bd4f1faddf53d6989ed13b6cf25d24b8a6
[]
no_license
https://github.com/dllm-pk/ETI_Team02_assignment1
b452d75a8bafcf48196c0ac2f7d4bd498097ed6c
e515dc72ee334310f7d98ca07173e656f0df8402
refs/heads/main
2023-03-04T20:37:55.470642
2021-02-19T04:35:46
2021-02-19T04:35:46
312,141,726
0
0
null
false
2021-02-19T04:25:17
2020-11-12T02:06:05
2021-02-19T04:18:51
2021-02-19T04:24:57
7,201
0
0
18
HTML
false
false
from new_save_exit_game import * from map import * #User inputs move def get_move(): moves = [W, A, S, D] while True: s = " "+W+ " = up; " + A+ " = left; " + S+ " = down; " + D+ " = right" print(s) prompt="Enter move: " move = input(prompt).upper() if move in moves:...
UTF-8
Python
false
false
1,396
py
26
movement.py
17
0.44341
0.43553
0
59
22.677966
78
tkincaid/tkincaid.github.com
4,466,766,020,246
3712de82e2fc9912d170ca7b5b9a67983494a736
7b7c81e39169b7769d2b14618b7fb8f3ef5ea1dc
/tests/ModelingMachine/test_Numeric_impute.py
b69de47b9de19c3f8205fa577498c24986b4ac26
[]
no_license
https://github.com/tkincaid/tkincaid.github.com
cf349c143056b847c8281d8d363b686a679f6499
8a9ab9ea4a061573328b5fcca6706536062e3be5
refs/heads/master
2016-09-05T09:24:48.325828
2014-09-24T16:49:14
2014-09-24T16:49:14
21,217,649
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
######################################################### # # Unit Test for Numeric_impute_arbitrary Task # # Author: Sergey Yurgenson # # Copyright DataRobot, Inc. 2014 # ######################################################## import unittest import pandas as pd import numpy as np import os import ...
UTF-8
Python
false
false
3,293
py
394
test_Numeric_impute.py
319
0.478895
0.419982
0
94
34.031915
77
hima03/log-decorator
11,244,224,410,100
1a7bef81653059f354d5b777b44fe0bfc1d25917
9a935990abcadf94abbc2ce32ab693a0ebb6a87a
/log-decorators/calculator.py
4304451c6a64f43ea8e9fa95f6e68979715febcb
[]
no_license
https://github.com/hima03/log-decorator
d0aabefe74dce4ab920fcad62323b1f9899c9921
63697d914a5cd423a16dd74fb3cf774498da7197
refs/heads/master
2023-05-03T06:33:22.897743
2020-08-28T10:30:26
2020-08-28T10:30:26
290,425,444
21
12
null
false
2023-02-18T07:02:39
2020-08-26T07:21:07
2022-09-02T14:01:28
2021-05-28T14:15:36
9
18
9
1
Python
false
false
import log_decorator import log class Calculator(): def __init__(self, first=0, second=0, log_file_name='', log_file_dir=''): self.first = first self.second = second #log file name and directory which we want to keep self.log_file_name = log_file_name self.log_file_dir = log...
UTF-8
Python
false
false
1,226
py
3
calculator.py
2
0.627243
0.620718
0
34
35.058824
105
Sentinel-One/jenkinsapi
12,902,081,799,300
f8d38d1ff8dbcb205d41d09f3f6af4fc5c38176d
fefd3cc9ae20245ca53c05bec40bac00ce1172ac
/examples/how_to/search_artifacts.py
fcd745170f08da2c38a3117efbb6a67fe4be003a
[ "MIT" ]
permissive
https://github.com/Sentinel-One/jenkinsapi
800254c1fbb31af987daebbf9d7cf48097bbdfc1
deaaef56dc582bd32d31a54b873c8eda5ffdce9c
refs/heads/master
2021-01-18T10:01:13.555912
2015-04-19T12:21:06
2015-04-19T12:21:06
34,204,081
0
0
null
true
2015-04-19T11:30:23
2015-04-19T11:30:23
2015-04-18T23:21:50
2015-04-18T23:21:50
2,661
0
0
0
null
null
null
from __future__ import print_function from jenkinsapi.api import search_artifacts jenkinsurl = "http://localhost:8080" jobid = "foo" artifact_ids = ["test1.txt", "test2.txt"] # I need a build that contains all of these result = search_artifacts(jenkinsurl, jobid, artifact_ids) print((repr(result)))
UTF-8
Python
false
false
302
py
1
search_artifacts.py
1
0.741722
0.721854
0
8
36.75
86
ashutosh-narkar/LeetCode
2,937,757,664,406
efcd4539b7975db77d19cb84380a811191726603
aa49120740b051eed9b7199340b371a9831c3050
/level_order_zigzag.py
6d52246e70c27e8e4b98b2d57a9c6acb5f899fe1
[]
no_license
https://github.com/ashutosh-narkar/LeetCode
cd8d75389e1ab730b34ecd860b317b331b1dfa97
b62862b90886f85c33271b881ac1365871731dcc
refs/heads/master
2021-05-07T08:37:42.536436
2017-11-22T05:18:23
2017-11-22T05:18:23
109,366,819
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python """ Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between). For example: Given binary tree {3,9,20,#,#,15,7}, 3 / \ 9 20 / \ 15 7 return its zigzag level order tra...
UTF-8
Python
false
false
2,100
py
418
level_order_zigzag.py
414
0.655172
0.639847
0
115
17.130435
91
Dom88Finch/recipe-scraper
1,099,511,643,777
7491904374bb38a6dab77f51e8f53ecbb2faeed5
4eaa0a86ab8dcd96584afa5d37f36824e4212f5d
/migrations/versions/5e78cc772642_.py
1a540557a8f0b56cd624877296fd14d1e52515ef
[ "MIT" ]
permissive
https://github.com/Dom88Finch/recipe-scraper
55c72f4513f500fccef0b6e583b1c5b824a08835
9a41c3db75fd28ebd57d442ed9a12635605cd810
refs/heads/master
2023-04-22T14:36:00.126343
2021-04-30T06:01:27
2021-04-30T06:01:27
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""empty message Revision ID: 5e78cc772642 Revises: ec21bd75ea92 Create Date: 2020-07-22 22:44:45.754328 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5e78cc772642' down_revision = 'ec21bd75ea92' branch_labels = None depends_on = None def upgrade(): # ...
UTF-8
Python
false
false
3,487
py
41
5e78cc772642_.py
10
0.652423
0.632922
0
82
41.52439
82
Alex-zhai/learn_practise
704,374,662,115
145dd011f88daf202f084c88dd8755815936bfb2
07604219235be913dc4deccfdba454a4a2e12456
/kaggle_prac/Titanic/pred_xgboost1.py
8f45826d2324477bf1a9f527abf47a80ae97a617
[]
no_license
https://github.com/Alex-zhai/learn_practise
e5a9fc1f9d2791d450f76c4087a74713a5359251
994630abd67c1403893f9a027855abca736dfcd1
refs/heads/master
2020-12-01T17:01:46.128171
2019-12-29T05:15:00
2019-12-29T05:15:00
230,705,620
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding:utf-8 -*- import numpy as np import pandas as pd from sklearn.feature_extraction import DictVectorizer from xgboost import XGBClassifier from sklearn.model_selection import GridSearchCV train = pd.read_csv("train.csv") test = pd.read_csv("test.csv") # print(train.info()) # print(test.info()) ...
UTF-8
Python
false
false
1,788
py
131
pred_xgboost1.py
128
0.683215
0.667849
0
53
29.962264
132
Cottonwood-Technology/ValidX
13,288,628,863,751
539d5d00855bed491e93f3bbc285e09ee83af71e
3f388bf0cfcc9f6cc6e0554ba839abe0b35f17af
/tests/unittests/test_containers.py
64ec98c76eda69f014e6de623abda7869e364b59
[ "BSD-2-Clause" ]
permissive
https://github.com/Cottonwood-Technology/ValidX
179e75e8d6d93be0f532b36ecee844e7a60b3bfd
4798c3ce8ed462c1f16253e9b238e2b5b518e036
refs/heads/master
2023-08-09T09:26:47.269971
2023-07-20T17:48:27
2023-07-20T17:48:27
206,943,401
23
5
null
null
null
null
null
null
null
null
null
null
null
null
null
import pickle from collections import OrderedDict, defaultdict, deque from collections.abc import Sequence, Mapping, Iterable import pytest from webob.multidict import MultiDict as WebObMultiDict from werkzeug.datastructures import MultiDict as WerkzeugMultiDict from multidict import MultiDict from validx import exc...
UTF-8
Python
false
false
22,973
py
90
test_containers.py
56
0.566143
0.539764
0
704
31.632102
85
Pandinosaurus/ensae_teaching_cs
5,360,119,189,138
3e1363227ef5ce33e2e1e818a3dabe043b367a1d
7bfbc82845f91a0bf9e56bf4226ea0d445a4e4f8
/src/ensae_teaching_cs/special/tsp_bresenham.py
d4fe63357d17017fe8769a23f365628d29f7526e
[ "MIT" ]
permissive
https://github.com/Pandinosaurus/ensae_teaching_cs
d79daa2654b97ea94e9c7e98121d0c6f56cbd8a0
2abbc7a20c7437f9ab91d1ec83a6aecdefceb028
refs/heads/master
2023-04-29T10:13:00.636012
2023-04-21T11:37:18
2023-04-21T11:37:18
160,346,838
1
0
MIT
true
2023-04-21T16:47:24
2018-12-04T11:27:27
2022-01-11T03:09:41
2023-04-21T16:47:22
302,512
0
0
0
Jupyter Notebook
false
false
# -*- coding: utf-8 -*- """ @file @brief Ce module contient la fonction trace_ligne qui retourne l'ensemble des pixels concernés par le tracé d'une ligne en 8-connexité entre deux pixels. """ def trace_ligne_simple(x1, y1, x2, y2): """ Trace une ligne entre les points de coordonnées *(x1,y1)* et *(x2,y2)*, ...
UTF-8
Python
false
false
4,242
py
1,174
tsp_bresenham.py
368
0.47758
0.443179
0
158
25.677215
84
kshitjtyagi814/registration
8,169,027,820,117
9688ed0fa8ccc5cc81e98d9c6a3f572f17cf1522
ff87c3a54713f29cc179ac606db275391fd86b0f
/upload/migrations/0002_auto_20200820_0958.py
7c64b130096a0915427d763e7d084603890f4aef
[]
no_license
https://github.com/kshitjtyagi814/registration
b52c5033c883f2ce7272b7eaf47a03a5e46049fa
ffa79cfb5028bc579a9feedaee61dd0504a8810b
refs/heads/main
2023-04-14T09:09:14.063949
2021-04-17T11:07:24
2021-04-17T11:07:24
301,374,710
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.0.2 on 2020-08-20 09:58 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('upload', '0001_initial'), ] operations = [ migrations.RenameField( model_name='document', old_name='description', ...
UTF-8
Python
false
false
356
py
9
0002_auto_20200820_0958.py
6
0.564607
0.511236
0
18
18.777778
47
DistributedSystemsGroup/zoe-applications
3,633,542,339,297
9b363cbc498a47bab118c70ace02e48ef4f15f50
fa5b4e6ccbfdbe0c9a9411216dfbcf2cc6fd1ccb
/applications/tensorflow/tf-google.py
f3be6173fd9f6af3b9c7e6631d9d8176232f69f3
[ "Apache-2.0" ]
permissive
https://github.com/DistributedSystemsGroup/zoe-applications
6360f579c38ca55feb69a4809d2943d71429c148
04a2be2602a9037afbf7f107c0be3b6fc396b9ad
refs/heads/master
2017-10-16T13:03:25.931550
2017-07-11T11:23:28
2017-07-11T11:23:28
55,168,985
3
3
null
false
2017-03-06T10:39:28
2016-03-31T17:14:24
2017-01-12T14:26:43
2017-03-06T10:39:28
17,783
2
3
0
Python
null
null
import json import sys sys.path.append('../..') import applications.app_base def tf_batch_service(mem_limit, image): """ :type mem_limit: int :type image: str :rtype: dict """ service = { 'name': "tensorflow", 'docker_image': image, 'monitor': True, 'required_res...
UTF-8
Python
false
false
1,607
py
75
tf-google.py
49
0.508401
0.492844
0
61
25.327869
77
inventree/InvenTree
13,520,557,053,422
56d67561858ea517483ad47f76c4b85a1913e0ba
a902290fb3b911676358ae4d93f83061a6c2bd0f
/InvenTree/plugin/samples/integration/custom_panel_sample.py
0ef2086029dd9857881d1155653fc0e06b727286
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/inventree/InvenTree
a15e54182c9bfafdf5348cc9a66da1004e23e760
e88a8e99a5f0b201c67a95cba097c729f090d5e2
refs/heads/master
2023-09-03T19:32:35.438375
2023-08-30T00:25:40
2023-08-30T00:25:40
85,894,461
3,077
549
MIT
false
2023-09-14T14:21:01
2017-03-23T01:44:10
2023-09-14T11:33:37
2023-09-14T14:21:01
114,453
3,026
504
190
Python
false
false
"""Sample plugin which renders custom panels on certain pages.""" from part.views import PartDetail from plugin import InvenTreePlugin from plugin.mixins import PanelMixin, SettingsMixin from stock.views import StockLocationDetail class CustomPanelSample(PanelMixin, SettingsMixin, InvenTreePlugin): """A sample p...
UTF-8
Python
false
false
4,420
py
1,334
custom_panel_sample.py
743
0.547964
0.547511
0
119
36.142857
138
theromis/mlpiper
13,185,549,624,802
85aa93c6f8c7d5cdb84ff824aea036f42110d245
6e423cddd8698bc662bcc3208eb7a8fdb2eb0d72
/mlcomp/parallelm/components/spark_data_component.py
ea16b845c2ed020a8c1a026fbccbfde8fa2e90ec
[ "Apache-2.0" ]
permissive
https://github.com/theromis/mlpiper
7d435343af7b739767f662b97a988c2ccc7665ed
738356ce6d5e691a5d813acafa3f0ff730e76136
refs/heads/master
2020-05-05T04:44:00.494105
2019-04-03T19:53:01
2019-04-03T22:02:53
179,722,926
0
0
Apache-2.0
true
2019-04-05T17:06:02
2019-04-05T17:06:01
2019-04-03T22:02:57
2019-04-05T17:02:52
14,857
0
0
0
null
false
false
import abc from pyspark.sql import DataFrame from parallelm.common.mlcomp_exception import MLCompException from parallelm.components.spark_session_component import SparkSessionComponent import traceback class SparkDataComponent(SparkSessionComponent): def __init__(self, ml_engine): super(SparkDataComponen...
UTF-8
Python
false
false
941
py
712
spark_data_component.py
323
0.678002
0.678002
0
27
33.851852
90
obligate/python3-king
10,179,072,540,897
31fb639c772f975c34c3909ef6cdd23800bf5ae5
271dbb5f0c23ae40f19a8df7dd3f15a44fbe5ae1
/it-king/day07-面向对象进阶/lib/aa.py
e13ef81b73e297781abd494c1247b1060f8e1180
[]
no_license
https://github.com/obligate/python3-king
a4d1c5c145c3b1c42efe059cf2bbd797d0b3c528
2b31400468c7a2621f29f24f82e682eb07c0e17d
refs/heads/master
2020-05-02T11:45:16.218771
2019-03-27T08:05:39
2019-03-27T08:05:39
177,938,256
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = "Peter" class C: def __init__(self): self.name = 'peter'
UTF-8
Python
false
false
92
py
164
aa.py
124
0.445652
0.445652
0
7
11.142857
27
T-K-233/k-load
14,886,356,672,928
b22ecb2b0e67c61d38c11365694808f6ca70806d
fed565ae2aa4c33e239661f2c42994ecb3466259
/build/lib/k_load/downloaders.py
374907e23a7145f2f4b2582c40eebd15655fd63d
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
https://github.com/T-K-233/k-load
6a0810cb61844a1509148df43df3f4dab263186c
6a1cdcfb4a1890779eadb4701cde2d3c44ac3c7e
refs/heads/master
2020-03-28T21:16:13.882597
2018-09-22T06:40:41
2018-09-22T06:40:41
149,143,002
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import re import json import datetime import requests class Downloader: def log_info(self): print('='*36) print('= K-Load ') print('='*36) print('= Name:\t', self.name) print('= Type:\t', self.platform) print('= URL:\t', self.url) print('= Format:\t', self....
UTF-8
Python
false
false
1,396
py
9
downloaders.py
6
0.53741
0.532374
0
42
32.095238
115
Veeresh-Hiremath/project20_07042021
6,554,120,130,352
ac5c53481b3b5860596eb0e6649411eaa44ee07b
f403e829d8d193a2b032f026bcf0e8b5f0c81b0d
/app1/urls.py
ce9aeb113bfb1fe1c65091f4cf625e02caee5de5
[]
no_license
https://github.com/Veeresh-Hiremath/project20_07042021
11857c71ce2c6e760e266e05a278d722ac671302
00ac48121bd8331ce7d34d2c0a2ac67621edd1a0
refs/heads/main
2023-04-06T21:47:22.547473
2021-04-07T03:47:37
2021-04-07T03:47:37
355,401,261
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from app1 import views app_mame="app1" urlpatterns = [ path("",views.samp1, name="samp1") ]
UTF-8
Python
false
false
125
py
6
urls.py
6
0.704
0.672
0
6
19.833333
38
hitandaway100/caba
996,432,415,821
e2f4a1cda8d145dfa4fcdd20a501e12a3fde942b
d83118503614bb83ad8edb72dda7f449a1226f8b
/src/dprj/platinumegg/app/cabaret/management/commands/orig_migrate.py
c18bc0faee939f9c763f1446d5b8efb9f9d5fb7c
[]
no_license
https://github.com/hitandaway100/caba
686fe4390e182e158cd9714c90024a082deb8c69
492bf477ac00c380f2b2758c86b46aa7e58bbad9
refs/heads/master
2021-08-23T05:59:28.910129
2017-12-03T19:03:15
2017-12-03T19:03:15
112,512,044
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 import os import glob from django.db import connection from django.db import connections from django.core.management.base import BaseCommand import settings import settings_sub from platinumegg.app.cabaret.models import sql class Command(BaseCommand): """マイグレーション用. django の 1.4 に既存のテーブルに対しての...
UTF-8
Python
false
false
2,602
py
1,590
orig_migrate.py
1,029
0.527361
0.512798
0
53
41.754717
105
fwq777/siut
4,544,075,414,878
11282218a6588f67ef3215c2c407b74c0fe422f1
6d9876c5d6d8650afd3ca4574d64db5c2f603a06
/SIUT/train_G.py
764a2159be3f20ebabd1420275b3fc0562b46643
[]
no_license
https://github.com/fwq777/siut
cdc34075d5a940dfc9ae1a64ac10462666dcabef
71c1dfefed010adba860dc87ca70548a1cbf62f5
refs/heads/master
2020-06-12T10:05:25.323223
2019-06-28T12:04:52
2019-06-28T12:04:52
194,266,746
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import os import numpy as np from torch.utils import data as data_ from tqdm import tqdm from utils.config import opt from data.datasetG import Dataset from utils.vis_tool import Visualizer from model.DeviceAdapt_Net import Gtrainer def test_model(dataloader, model, epoch, ifsave=False, test_num=100000): ...
UTF-8
Python
false
false
3,311
py
10
train_G.py
10
0.529749
0.514648
0
91
35.373626
102
iamaaditya/advent_of_code
16,913,581,246,716
707e2a32e8955879ddac30f4e417bd505785c85e
18b7e4d3833b61377ac7219778a73d32353f4a7a
/day14.py
6f94f91edd7888738dae5f72a627a4ce3c0407a9
[]
no_license
https://github.com/iamaaditya/advent_of_code
3fb7bcdd25d15456709876ef0257793221432ba8
9f77ea45d95c0921b69178b5592e235dbcf5db50
refs/heads/master
2021-01-10T10:16:16.134709
2015-12-21T06:54:04
2015-12-21T06:54:04
47,854,069
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import re from itertools import repeat input = open('./input_data/input14.txt').read().splitlines() regex = r'(\w+) can fly (\d+) km/s for (\d+) seconds, but then must rest for (\d+) seconds.' data = [(name, int(speed),int(fly),int(sleep)) for ip in input for name,speed,fly,sleep in re.findall(regex, ip)] distance ...
UTF-8
Python
false
false
998
py
21
day14.py
21
0.568136
0.548096
0
38
25.184211
113
maayan20-meet/meet2018y1lab5
283,467,866,611
d55babf4ce00cb728bcb0a3b4548ef16cd2a7611
a3f381360745d146ca9a98c480b7d00db0d263a3
/fruit_sorter.py
1426cf10650bca239b3db2d9e868e7a57c2e4a4c
[ "MIT" ]
permissive
https://github.com/maayan20-meet/meet2018y1lab5
f6bd44f7606fca1ca2aa7cedb8d3737af5521130
18e9d8c9947c9d568f61f32545ba4b246a36ad3f
refs/heads/master
2020-03-22T13:26:08.852159
2018-08-15T13:59:45
2018-08-15T13:59:45
140,107,870
0
0
null
true
2018-07-07T18:21:53
2018-07-07T18:21:53
2018-06-23T22:48:38
2018-06-23T22:48:37
1
0
0
0
null
false
null
u_fruit = input('What fruit am I sorting') if u_fruit == apples or u_fruit == Apples: print('Bin 1 (Apples)') elif u_fruit == oranges or u_fruit == Oranges: print('Bin 2 (Oranges)') elif u_fruit == olives or u_fruit == Olives: print('Bin 3 (Olives)') else: print('dont know that fruit')
UTF-8
Python
false
false
307
py
26
fruit_sorter.py
26
0.625407
0.615635
0
13
22.615385
46
vicky12348/avil1245
7,232,724,960,317
f3e7970cd85399bcaf51b3f2768591c4f5c85ff2
bb07f2f846e96b3a354466f061798139289465fc
/MOv.py
bb9f42727b8ee290a719217c9063548298eaede0
[]
no_license
https://github.com/vicky12348/avil1245
b62feb3753dd445875d88147bd0eddcb8ea12bfe
a80d8a60e9ec5905b95256c2ba3ea496af1a0ffa
refs/heads/master
2022-12-17T22:38:19.186375
2020-08-30T06:13:04
2020-08-30T06:13:04
291,409,008
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class parent(): def fees(self): print("fees paying") class child(parent): a="movies" def fees(self): print("movies") c=child() c.fees() print("this is a variable",c.a)
UTF-8
Python
false
false
201
py
10
MOv.py
9
0.572139
0.572139
0
10
18.6
31
excess30/CompetitiveProgramming
5,497,558,147,766
83de3a611f7e48c28524cb557ecd58131d07a9fb
7d34183fc38360631bd67def135e48be43f0a2f3
/possiblePaths.py
a01125e521f3fe6d7bbe3da47c4bc5a07a91ba47
[]
no_license
https://github.com/excess30/CompetitiveProgramming
4703ff49d6bb5cecd052a3c18bb70c72eb712e25
30dec16e5434fd024919572bba570b168608a62f
refs/heads/master
2020-11-24T01:33:36.549023
2019-12-13T19:09:47
2019-12-13T19:09:47
227,905,509
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# function to return count of possible paths # to reach cell at row number m and column # number n from the topmost leftmost # cell (cell at 1, 1) def numberOfPaths(m, n): # If either given row number is first # or given column number is first if(m == 1 or n == 1): return 1 # If diagonal movements a...
UTF-8
Python
false
false
485
py
7
possiblePaths.py
7
0.678351
0.659794
0
20
23.3
56
atulvidyarthi29/BlueTech
6,528,350,319,203
4f3686b58bfa376548f0982cae5387ef57feb783
021a37a1b948d017975566613219cd287d713038
/BlueTech/Users/views.py
a554f7d5dd825853ba0d8acbd0d6be2b739d7884
[]
no_license
https://github.com/atulvidyarthi29/BlueTech
23efd89ae5a68e8dfa5d27635809fc22a82d4838
a837a3c851b6f80ece4faac3e2d47b2806364f75
refs/heads/master
2022-12-10T11:00:46.118588
2020-10-27T20:02:55
2020-10-27T20:02:55
209,316,140
3
2
null
false
2022-12-08T11:42:45
2019-09-18T13:30:46
2022-10-26T12:11:56
2022-12-08T11:42:44
37,794
1
2
7
JavaScript
false
false
from django.contrib.auth import login, authenticate from django.contrib.auth.decorators import login_required from django.contrib.sites.shortcuts import get_current_site from django.core.mail import EmailMessage from django.http import HttpResponse from django.shortcuts import render, redirect, get_object_or_404 ...
UTF-8
Python
false
false
14,218
py
93
views.py
32
0.589323
0.585174
0
352
38.392045
118