hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
c7300e0d4920ea9bf3233fb48ec01feb851a08ad
4,125
py
Python
code/network/__init__.py
michalochman/complex-networks
49337376e32fac253d8de9919d5acd00a9b566bb
[ "MIT" ]
null
null
null
code/network/__init__.py
michalochman/complex-networks
49337376e32fac253d8de9919d5acd00a9b566bb
[ "MIT" ]
null
null
null
code/network/__init__.py
michalochman/complex-networks
49337376e32fac253d8de9919d5acd00a9b566bb
[ "MIT" ]
null
null
null
import fractions class Network(object): def __init__(self, network): self.network = network def degree(self, link_type, key): return len(self.network.get(link_type).get(key)) def average_degree(self, link_type): degree = 0 for link in self.network.get(link_type).itervalue...
42.96875
109
0.615758
4,105
0.995152
0
0
0
0
0
0
35
0.008485
c730483de9837a25bc1e629091819a776f0b1ff3
3,055
py
Python
invoke_ansible.py
samvarankashyap/ansible_api_usage
d03c67b4606d2e101ef7341bd31161b4db39cd5b
[ "Apache-2.0" ]
null
null
null
invoke_ansible.py
samvarankashyap/ansible_api_usage
d03c67b4606d2e101ef7341bd31161b4db39cd5b
[ "Apache-2.0" ]
null
null
null
invoke_ansible.py
samvarankashyap/ansible_api_usage
d03c67b4606d2e101ef7341bd31161b4db39cd5b
[ "Apache-2.0" ]
null
null
null
import ansible import pprint from ansible import utils from jinja2 import Environment, PackageLoader from collections import namedtuple from ansible import utils from ansible.parsing.dataloader import DataLoader from ansible.vars import VariableManager from ansible.inventory import Inventory from ansible.executor.playb...
40.197368
89
0.466776
0
0
0
0
0
0
0
0
294
0.096236
c733c87e85c1c4f5626af759efe7bb3290f415c6
2,336
py
Python
bin/python/csv2es.py
reid-wagner/proteomics-pipelines
2214c2ad4c14fabcb50a3c0800e9d383ce73df3d
[ "MIT" ]
2
2018-09-06T14:05:59.000Z
2022-02-18T10:09:06.000Z
bin/python/csv2es.py
reid-wagner/proteomics-pipelines
2214c2ad4c14fabcb50a3c0800e9d383ce73df3d
[ "MIT" ]
7
2018-09-30T00:49:04.000Z
2022-01-27T07:55:26.000Z
bin/python/csv2es.py
reid-wagner/proteomics-pipelines
2214c2ad4c14fabcb50a3c0800e9d383ce73df3d
[ "MIT" ]
3
2019-10-29T12:20:45.000Z
2021-10-06T14:38:43.000Z
#!/usr/bin/env python3 import itertools import string from elasticsearch import Elasticsearch,helpers import sys import os from glob import glob import pandas as pd import json host = sys.argv[1] port = int(sys.argv[2]) alias = sys.argv[3] print(host) print(port) print(alias) es = Elasticsearch([{'host':...
28.144578
99
0.644264
0
0
0
0
0
0
0
0
445
0.190497
c7345842917a4fbe78846b66040cbcd50b2fa112
45
py
Python
main/src/preparation/parsers/tree-sitter-python/examples/crlf-line-endings.py
jason424217/Artificial-Code-Gen
a6e2c097c5ffe8cb0929e6703035b526f477e514
[ "MIT" ]
null
null
null
main/src/preparation/parsers/tree-sitter-python/examples/crlf-line-endings.py
jason424217/Artificial-Code-Gen
a6e2c097c5ffe8cb0929e6703035b526f477e514
[ "MIT" ]
null
null
null
main/src/preparation/parsers/tree-sitter-python/examples/crlf-line-endings.py
jason424217/Artificial-Code-Gen
a6e2c097c5ffe8cb0929e6703035b526f477e514
[ "MIT" ]
null
null
null
print a if b: if c: d e
6.428571
9
0.311111
0
0
0
0
0
0
0
0
0
0
c7349ec685ce1af0110178abaaf2eb1878a5bd71
106
py
Python
Src/main.py
DukeA/DAT02X-19-03-MachineLearning-Starcraft2
ade31deb4cf6cacd0c411c39310aeb1300561936
[ "MIT" ]
null
null
null
Src/main.py
DukeA/DAT02X-19-03-MachineLearning-Starcraft2
ade31deb4cf6cacd0c411c39310aeb1300561936
[ "MIT" ]
null
null
null
Src/main.py
DukeA/DAT02X-19-03-MachineLearning-Starcraft2
ade31deb4cf6cacd0c411c39310aeb1300561936
[ "MIT" ]
null
null
null
from absl import app from mainLoop import main if __name__ == '__main__': app.run(main)
13.25
27
0.632075
0
0
0
0
0
0
0
0
10
0.09434
c735745b02553eb9e477617ad9c63df5e4730b1c
3,793
py
Python
bos_sarcat_scraper/__main__.py
hysds/bos_sarcat_scraper
1bf3612e7d8fad80c8704a909087be19cc3e1db2
[ "Apache-2.0" ]
1
2020-06-24T00:25:30.000Z
2020-06-24T00:25:30.000Z
bos_sarcat_scraper/__main__.py
aria-jpl/bos_sarcat_scraper
1bf3612e7d8fad80c8704a909087be19cc3e1db2
[ "Apache-2.0" ]
null
null
null
bos_sarcat_scraper/__main__.py
aria-jpl/bos_sarcat_scraper
1bf3612e7d8fad80c8704a909087be19cc3e1db2
[ "Apache-2.0" ]
1
2019-05-08T17:15:00.000Z
2019-05-08T17:15:00.000Z
from __future__ import absolute_import from builtins import str from builtins import input import sys import argparse from . import bosart_scrape import datetime import json def valid_date(s): try: try: date = datetime.datetime.strptime(s, "%Y-%m-%dT%H:%M:%S.%fZ") except: d...
39.926316
240
0.675718
0
0
0
0
0
0
0
0
1,627
0.428948
c73803a506dad8312572b3d3624ec1ddd2985a19
23,181
py
Python
vgm2electron.py
simondotm/vgm2electron
38e340d2baeaa3e5722ac982c82e58fb9858f9d9
[ "MIT" ]
2
2021-03-08T13:55:02.000Z
2021-05-02T12:50:38.000Z
vgm2electron.py
simondotm/vgm2electron
38e340d2baeaa3e5722ac982c82e58fb9858f9d9
[ "MIT" ]
null
null
null
vgm2electron.py
simondotm/vgm2electron
38e340d2baeaa3e5722ac982c82e58fb9858f9d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # vgm2electron.py # Tool for converting SN76489-based PSG VGM data to Acorn Electron # By Simon Morris (https://github.com/simondotm/) # See https://github.com/simondotm/vgm-packer # # Copyright (c) 2019 Simon Morris. All rights reserved. # # "MIT License": # Permission is hereby granted, free of ...
31.798354
230
0.60981
18,054
0.778827
0
0
0
0
0
0
10,514
0.453561
c739f9c426d2980ab50d3acc428d5d636d5dd280
14,198
py
Python
twitter_sent.py
rthorst/TwitterSentiment
b719feffbfed1dfe9028db0900b3158d19322284
[ "MIT" ]
6
2020-02-21T15:50:34.000Z
2021-11-09T19:45:50.000Z
twitter_sent.py
rthorst/TwitterSentiment
b719feffbfed1dfe9028db0900b3158d19322284
[ "MIT" ]
null
null
null
twitter_sent.py
rthorst/TwitterSentiment
b719feffbfed1dfe9028db0900b3158d19322284
[ "MIT" ]
null
null
null
import webapp2 import tweepy import json import csv import os import statistics import bokeh from bokeh.io import show, output_file from bokeh.plotting import figure from bokeh.models import HoverTool, ColumnDataSource from bokeh.embed import components, json_item from bokeh.resources import INLINE from bokeh.models.gl...
33.885442
120
0.623257
4,656
0.327934
0
0
0
0
0
0
7,355
0.518031
c73a657eabaaa5580cd95fd8f430b160b1e8e216
8,956
py
Python
tests/testcgatools.py
ereide/pyga-camcal
fd25748ddb11c5b05ef24a2deca2689e0d899875
[ "MIT" ]
5
2018-05-22T09:11:31.000Z
2022-03-11T02:32:01.000Z
tests/testcgatools.py
ereide/pyga-camcal
fd25748ddb11c5b05ef24a2deca2689e0d899875
[ "MIT" ]
null
null
null
tests/testcgatools.py
ereide/pyga-camcal
fd25748ddb11c5b05ef24a2deca2689e0d899875
[ "MIT" ]
null
null
null
import unittest import clifford as cl from clifford import g3c from numpy import pi, e import numpy as np from scipy.sparse.linalg.matfuncs import _sinch as sinch from clifford import MultiVector from pygacal.common.cgatools import ( Sandwich, Dilator, Translator, Reflector, inversion, Ro...
33.17037
125
0.546226
7,571
0.845355
0
0
0
0
0
0
1,861
0.207794
c73c3d02ecdfac6eb2c791e1853c9f4bcf52f552
6,909
py
Python
router/posts.py
DiegoLing33/prestij.xyz-api
69a11a2c93dd98975f9becbc4b8f596e4941a05f
[ "MIT" ]
null
null
null
router/posts.py
DiegoLing33/prestij.xyz-api
69a11a2c93dd98975f9becbc4b8f596e4941a05f
[ "MIT" ]
null
null
null
router/posts.py
DiegoLing33/prestij.xyz-api
69a11a2c93dd98975f9becbc4b8f596e4941a05f
[ "MIT" ]
null
null
null
# ██╗░░░░░██╗███╗░░██╗░██████╗░░░░██████╗░██╗░░░░░░█████╗░░█████╗░██╗░░██╗ # ██║░░░░░██║████╗░██║██╔════╝░░░░██╔══██╗██║░░░░░██╔══██╗██╔══██╗██║░██╔╝ # ██║░░░░░██║██╔██╗██║██║░░██╗░░░░██████╦╝██║░░░░░███████║██║░░╚═╝█████═╝░ # ██║░░░░░██║██║╚████║██║░░╚██╗░░░██╔══██╗██║░░░░░██╔══██║██║░░██╗██╔═██╗░ # ███████╗██║██...
25.876404
118
0.568823
317
0.03655
0
0
4,813
0.554941
0
0
3,981
0.459011
c73c5c8e9b60dd28827b865f9cd0c2682cc0cd16
3,216
py
Python
toontown/catalog/CatalogChatBalloon.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
toontown/catalog/CatalogChatBalloon.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/catalog/CatalogChatBalloon.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
from pandac.PandaModules import * class CatalogChatBalloon: TEXT_SHIFT = (0.1, -0.05, 1.1) TEXT_SHIFT_REVERSED = -0.05 TEXT_SHIFT_PROP = 0.08 NATIVE_WIDTH = 10.0 MIN_WIDTH = 2.5 MIN_HEIGHT = 1 BUBBLE_PADDING = 0.3 BUBBLE_PADDING_PROP = 0.05 BUTTON_SCALE = 6 BUTTON_SHIFT = (-0.2,...
34.212766
81
0.589552
3,180
0.988806
0
0
0
0
0
0
689
0.214241
c73c9cd86a4a585bb09b4cbd3f15cf16c3ddc42d
831
py
Python
TTS/vocoder/tf/utils/io.py
mightmay/Mien-TTS
8a22ff0a79558b3cf4981ce1b63f4d1485ea6338
[ "MIT" ]
null
null
null
TTS/vocoder/tf/utils/io.py
mightmay/Mien-TTS
8a22ff0a79558b3cf4981ce1b63f4d1485ea6338
[ "MIT" ]
null
null
null
TTS/vocoder/tf/utils/io.py
mightmay/Mien-TTS
8a22ff0a79558b3cf4981ce1b63f4d1485ea6338
[ "MIT" ]
1
2021-04-28T17:30:03.000Z
2021-04-28T17:30:03.000Z
import datetime import pickle import tensorflow as tf def save_checkpoint(model, current_step, epoch, output_path, **kwargs): """ Save TF Vocoder model """ state = { 'model': model.weights, 'step': current_step, 'epoch': epoch, 'date': datetime.date.today().strftime("%B %d, %Y"...
29.678571
74
0.65704
0
0
0
0
0
0
0
0
110
0.132371
c73caaa0e2719e60ad785aecaaee84cf63518c02
1,497
py
Python
tests/test_path_choice.py
jataware/flee
67c00c4572e71dd2bbfb390d7d7ede13ffb9594e
[ "BSD-3-Clause" ]
3
2021-05-24T14:07:48.000Z
2022-01-10T03:20:36.000Z
tests/test_path_choice.py
jataware/flee
67c00c4572e71dd2bbfb390d7d7ede13ffb9594e
[ "BSD-3-Clause" ]
15
2020-06-05T11:42:23.000Z
2022-03-09T20:17:29.000Z
tests/test_path_choice.py
jataware/flee
67c00c4572e71dd2bbfb390d7d7ede13ffb9594e
[ "BSD-3-Clause" ]
3
2020-05-29T15:10:28.000Z
2022-03-09T19:51:41.000Z
from flee import flee """ Generation 1 code. Incorporates only distance, travel always takes one day. """ def test_path_choice(): print("Testing basic data handling and simulation kernel.") flee.SimulationSettings.MinMoveSpeed = 5000.0 flee.SimulationSettings.MaxMoveSpeed = 5000.0 flee.SimulationSet...
33.266667
75
0.663327
0
0
0
0
0
0
0
0
514
0.343353
c73dae2399d233b79b4e4ba84ebee8f7d71a6c22
10,463
py
Python
archive/old_plots/plot_supplemental_divergence_correlations.py
garudlab/mother_infant
98a27c83bf5ece9497d5a030c6c9396a8c514781
[ "BSD-2-Clause" ]
2
2020-08-09T06:19:11.000Z
2021-08-18T17:12:23.000Z
archive/old_plots/plot_supplemental_divergence_correlations.py
garudlab/mother_infant
98a27c83bf5ece9497d5a030c6c9396a8c514781
[ "BSD-2-Clause" ]
null
null
null
archive/old_plots/plot_supplemental_divergence_correlations.py
garudlab/mother_infant
98a27c83bf5ece9497d5a030c6c9396a8c514781
[ "BSD-2-Clause" ]
8
2019-02-20T22:21:55.000Z
2021-02-13T00:55:40.000Z
import matplotlib matplotlib.use('Agg') import config import parse_midas_data import parse_HMP_data import os.path import pylab import sys import numpy import diversity_utils import gene_diversity_utils import calculate_substitution_rates import stats_utils import matplotlib.colors as colors import matplotlib.cm a...
38.047273
203
0.750454
0
0
0
0
0
0
0
0
2,482
0.237217
c73e6e9b07e0e5afa67a521f170e1521081ec4b3
34,246
py
Python
multivis/plotFeatures.py
brettChapman/cimcb_vis
b373ed426b24ece1dcc20febd7c8023921b024d6
[ "MIT" ]
1
2021-06-27T23:52:40.000Z
2021-06-27T23:52:40.000Z
multivis/plotFeatures.py
brettChapman/cimcb_vis
b373ed426b24ece1dcc20febd7c8023921b024d6
[ "MIT" ]
null
null
null
multivis/plotFeatures.py
brettChapman/cimcb_vis
b373ed426b24ece1dcc20febd7c8023921b024d6
[ "MIT" ]
2
2021-06-27T23:53:03.000Z
2021-07-12T12:59:23.000Z
import sys import copy import matplotlib import matplotlib.pyplot as plt import seaborn as sns from collections import Counter from .utils import * import numpy as np import pandas as pd class plotFeatures: usage = """Produces different feature plots given a data table and peak table. Initial_Paramete...
52.605223
586
0.5464
34,058
0.99451
0
0
0
0
0
0
7,936
0.231735
c73eca01ba5620a706110aaabb7ea66ae754f7f0
1,183
py
Python
core/data/DataWriter.py
berendkleinhaneveld/Registrationshop
0d6f3ee5324865cdcb419369139f37c39dfe9a1c
[ "MIT" ]
25
2015-11-08T16:36:54.000Z
2022-01-20T16:03:28.000Z
core/data/DataWriter.py
berendkleinhaneveld/Registrationshop
0d6f3ee5324865cdcb419369139f37c39dfe9a1c
[ "MIT" ]
2
2016-12-01T23:13:08.000Z
2017-07-25T02:40:49.000Z
core/data/DataWriter.py
berendkleinhaneveld/Registrationshop
0d6f3ee5324865cdcb419369139f37c39dfe9a1c
[ "MIT" ]
10
2016-07-05T14:39:16.000Z
2022-01-01T02:05:55.000Z
""" DataWriter.py """ from DataController import DataController from DataReader import DataReader from vtk import vtkMetaImageWriter from vtk import vtkXMLImageDataWriter class DataWriter(DataController): """ DataWriter writes an image data object to disk using the provided format. """ def __init__(self): sup...
27.511628
76
0.752325
1,008
0.852071
0
0
0
0
0
0
147
0.12426
c73ff4534e3b71c1974b4bf7835f8ec9472d9d62
7,483
py
Python
parkings/models/permit.py
klemmari1/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
12
2016-11-29T15:13:10.000Z
2021-06-12T06:45:38.000Z
parkings/models/permit.py
niuzhipeng123/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
154
2016-11-30T09:07:58.000Z
2022-02-12T08:29:36.000Z
parkings/models/permit.py
niuzhipeng123/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
15
2016-11-29T19:32:48.000Z
2022-01-05T11:31:39.000Z
from itertools import chain from django.conf import settings from django.contrib.gis.db import models as gis_models from django.db import models, router, transaction from django.utils import timezone from django.utils.translation import gettext_lazy as _ from ..fields import CleaningJsonField from ..validators import...
37.415
103
0.667379
6,939
0.927302
736
0.098356
204
0.027262
0
0
628
0.083924
c744286930e6918cebec7544521adbaf000c03cc
4,265
py
Python
poi_mining/biz/LSA/logEntropy.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
1
2019-09-29T13:36:29.000Z
2019-09-29T13:36:29.000Z
poi_mining/biz/LSA/logEntropy.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
poi_mining/biz/LSA/logEntropy.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding:utf-8 # ############################################################################## # The MIT License (MIT) # # Copyright (c) [2015] [baidu.com] # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (th...
35.541667
100
0.557562
2,759
0.633525
0
0
0
0
0
0
2,487
0.571068
c7465ff1ea985cda2b457c6697cd774f312adad2
40
py
Python
Python/swap_numbers.py
saurabhcommand/Hello-world
647bad9da901a52d455f05ecc37c6823c22dc77e
[ "MIT" ]
1,428
2018-10-03T15:15:17.000Z
2019-03-31T18:38:36.000Z
Python/swap_numbers.py
saurabhcommand/Hello-world
647bad9da901a52d455f05ecc37c6823c22dc77e
[ "MIT" ]
1,162
2018-10-03T15:05:49.000Z
2018-10-18T14:17:52.000Z
Python/swap_numbers.py
saurabhcommand/Hello-world
647bad9da901a52d455f05ecc37c6823c22dc77e
[ "MIT" ]
3,909
2018-10-03T15:07:19.000Z
2019-03-31T18:39:08.000Z
a = 5 b = 7 a,b = b,a print a print b
5
9
0.5
0
0
0
0
0
0
0
0
0
0
c746b2ee9cd86b479c95bc6e51b1c40a08b1d7da
2,162
py
Python
algorithms/tests/test_unionfind.py
tommyod/PythonAlgorithms
f0a0f67be069fc9e9fa3027ed83942d6401223fe
[ "MIT" ]
1
2021-08-23T17:15:06.000Z
2021-08-23T17:15:06.000Z
algorithms/tests/test_unionfind.py
tommyod/PythonAlgorithms
f0a0f67be069fc9e9fa3027ed83942d6401223fe
[ "MIT" ]
1
2018-05-02T17:29:42.000Z
2018-05-02T17:31:18.000Z
algorithms/tests/test_unionfind.py
tommyod/PythonAlgorithms
f0a0f67be069fc9e9fa3027ed83942d6401223fe
[ "MIT" ]
1
2018-05-02T12:31:52.000Z
2018-05-02T12:31:52.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Tests for the union find data structure. """ try: from ..unionfind import UnionFind except ValueError: pass def test_unionfind_basics(): """ Test the basic properties of unionfind. """ u = UnionFind([1, 2, 3]) assert u.in_same_set(1,...
21.62
68
0.584181
0
0
0
0
0
0
0
0
547
0.253006
c746ec91b306e818609b2388a6f07e590b53157d
10,961
py
Python
a3/ga.py
mishless/LearningSystems
635d9af9d00ae0360d7ca8571bf47f782fdcdfe9
[ "MIT" ]
1
2021-08-01T03:30:49.000Z
2021-08-01T03:30:49.000Z
a3/ga.py
mishless/LearningSystems
635d9af9d00ae0360d7ca8571bf47f782fdcdfe9
[ "MIT" ]
null
null
null
a3/ga.py
mishless/LearningSystems
635d9af9d00ae0360d7ca8571bf47f782fdcdfe9
[ "MIT" ]
null
null
null
# Genetic Algorithm for solving the Traveling Salesman problem # Authors: Mihaela Stoycheva, Vukan Turkulov # Includes import configparser import math import matplotlib.pyplot as plt import numpy import random import sys from operator import itemgetter #Global variables(yay!) # Configuration variables(read from co...
26.159905
77
0.624487
0
0
0
0
0
0
0
0
1,666
0.151993
c7477304b232543e959b4e41d7f4db3d8d55814b
334
py
Python
products/migrations/0010_remove_product_updated_at.py
UB-ES-2021-A1/wannasell-backend
84360b2985fc28971867601373697f39303e396b
[ "Unlicense" ]
null
null
null
products/migrations/0010_remove_product_updated_at.py
UB-ES-2021-A1/wannasell-backend
84360b2985fc28971867601373697f39303e396b
[ "Unlicense" ]
62
2021-11-22T21:52:44.000Z
2021-12-17T15:07:02.000Z
products/migrations/0010_remove_product_updated_at.py
UB-ES-2021-A1/wannasell-backend
84360b2985fc28971867601373697f39303e396b
[ "Unlicense" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-25 17:50 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('products', '0009_auto_20211125_1846'), ] operations = [ migrations.RemoveField( model_name='product', name='updated_at', ...
18.555556
48
0.598802
249
0.745509
0
0
0
0
0
0
103
0.308383
c74852ff0006431dcf627c07119eece06aae36cb
160
py
Python
ResumeAnalyser/apps.py
samyakj2307/recruitai_resume_backend
52f8eda63d479b28fc19fe2d7149ab9ee9be122f
[ "MIT" ]
null
null
null
ResumeAnalyser/apps.py
samyakj2307/recruitai_resume_backend
52f8eda63d479b28fc19fe2d7149ab9ee9be122f
[ "MIT" ]
null
null
null
ResumeAnalyser/apps.py
samyakj2307/recruitai_resume_backend
52f8eda63d479b28fc19fe2d7149ab9ee9be122f
[ "MIT" ]
1
2021-06-03T13:56:53.000Z
2021-06-03T13:56:53.000Z
from django.apps import AppConfig class ResumeanalyserConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'ResumeAnalyser'
22.857143
56
0.78125
123
0.76875
0
0
0
0
0
0
47
0.29375
c748ba40f4f42a2340be17f0209db3df304f6bd7
196
py
Python
plugins/core/player_manager_plugin/__init__.py
StarryPy/StarryPy-Historic
b9dbd552b8c4631a5a8e9dda98b7ba447eca59da
[ "WTFPL" ]
38
2015-02-12T11:57:59.000Z
2018-11-15T16:03:45.000Z
plugins/core/player_manager_plugin/__init__.py
StarryPy/StarryPy-Historic
b9dbd552b8c4631a5a8e9dda98b7ba447eca59da
[ "WTFPL" ]
68
2015-02-05T23:29:47.000Z
2017-12-27T08:26:25.000Z
plugins/core/player_manager_plugin/__init__.py
StarryPy/StarryPy-Historic
b9dbd552b8c4631a5a8e9dda98b7ba447eca59da
[ "WTFPL" ]
21
2015-02-06T18:58:21.000Z
2017-12-24T20:08:59.000Z
from plugins.core.player_manager_plugin.plugin import PlayerManagerPlugin from plugins.core.player_manager_plugin.manager import ( Banned, UserLevels, permissions, PlayerManager )
24.5
73
0.795918
0
0
0
0
0
0
0
0
0
0
c74916514901ff1d3dbfb832b264c70329520805
3,063
py
Python
src/config/svc-monitor/svc_monitor/services/loadbalancer/drivers/ha_proxy/custom_attributes/haproxy_validator.py
jnpr-pranav/contrail-controller
428eee37c28c31830fd764315794e1a6e52720c1
[ "Apache-2.0" ]
37
2020-09-21T10:42:26.000Z
2022-01-09T10:16:40.000Z
src/config/svc-monitor/svc_monitor/services/loadbalancer/drivers/ha_proxy/custom_attributes/haproxy_validator.py
jnpr-pranav/contrail-controller
428eee37c28c31830fd764315794e1a6e52720c1
[ "Apache-2.0" ]
null
null
null
src/config/svc-monitor/svc_monitor/services/loadbalancer/drivers/ha_proxy/custom_attributes/haproxy_validator.py
jnpr-pranav/contrail-controller
428eee37c28c31830fd764315794e1a6e52720c1
[ "Apache-2.0" ]
21
2020-08-25T12:48:42.000Z
2022-03-22T04:32:18.000Z
from builtins import str from builtins import range from builtins import object import logging import inspect import os class CustomAttr(object): """This type handles non-flat data-types like int, str, bool. """ def __init__(self, key, value): self._value = value self._key = key ...
39.269231
79
0.479595
524
0.171074
0
0
0
0
0
0
369
0.12047
c74949362f59fa0673a80dd80fbdd7f5a0af70d8
1,405
py
Python
python/janitor/typecache.py
monkeyman79/janitor
a41187c1b58b736a5de2b0b30eb51d85a65b17c3
[ "MIT" ]
2
2018-11-06T13:02:27.000Z
2021-02-22T19:07:22.000Z
python/janitor/typecache.py
monkeyman79/janitor
a41187c1b58b736a5de2b0b30eb51d85a65b17c3
[ "MIT" ]
1
2016-09-28T12:24:43.000Z
2016-09-28T13:47:35.000Z
python/janitor/typecache.py
monkeyman79/janitor
a41187c1b58b736a5de2b0b30eb51d85a65b17c3
[ "MIT" ]
null
null
null
import gdb class TypeCache(object): def __init__(self): self.cache = {} self.intptr_type = False def clear(self): self.cache = {} self.intptr_type = False def get_type(self, typename): if typename in self.cache: return self.cache[typename] ...
26.509434
59
0.540925
1,366
0.972242
0
0
0
0
0
0
50
0.035587
c74a04a139575fe8c546ea452d0215d058b4fa6f
805
py
Python
key_phrase.py
Santara/autoSLR
8c524b8a0023d1434cb7be4e110103605d0d2cab
[ "MIT" ]
1
2020-08-12T23:17:38.000Z
2020-08-12T23:17:38.000Z
key_phrase.py
Santara/autoSLR
8c524b8a0023d1434cb7be4e110103605d0d2cab
[ "MIT" ]
null
null
null
key_phrase.py
Santara/autoSLR
8c524b8a0023d1434cb7be4e110103605d0d2cab
[ "MIT" ]
1
2019-08-29T09:36:46.000Z
2019-08-29T09:36:46.000Z
import os import sys directory = sys.argv[1] outfile = open("key_phrases.csv","w") files = {} for filename in os.listdir(directory): text=[] with open(os.path.join(directory, filename)) as f: text=[l.strip() for l in f if len(l.strip())>2] data='' for t in text: if len(t.split()) > 1: data = data+'. '+t.s...
25.15625
105
0.695652
0
0
0
0
0
0
0
0
167
0.207453
c74ab0b0f80631d9cb06c8040217e1f860dd10c2
1,127
py
Python
tests/test_utils.py
aced-differentiate/dft-input-gen
14bee323517714c433682bad2dcb897b223dd5ec
[ "Apache-2.0" ]
1
2021-04-15T09:54:52.000Z
2021-04-15T09:54:52.000Z
tests/test_utils.py
CitrineInformatics/dft-input-gen
14bee323517714c433682bad2dcb897b223dd5ec
[ "Apache-2.0" ]
1
2021-01-28T22:12:07.000Z
2021-01-28T22:12:07.000Z
tests/test_utils.py
aced-differentiate/dft-input-gen
14bee323517714c433682bad2dcb897b223dd5ec
[ "Apache-2.0" ]
2
2020-12-08T18:14:13.000Z
2020-12-18T19:01:11.000Z
"""Unit tests for helper utilities in :mod:`dftinputgen.utils`.""" import os import pytest from ase import io as ase_io from dftinputgen.utils import get_elem_symbol from dftinputgen.utils import read_crystal_structure from dftinputgen.utils import get_kpoint_grid_from_spacing from dftinputgen.utils import DftInputG...
28.897436
75
0.754215
0
0
0
0
0
0
0
0
215
0.190772
c74b3631946b737bd9c4684c29b89101e0d8c544
6,044
py
Python
core/models.py
nforesperance/Django-Channels-ChatApp
b244954206214f7dc1b8793291d957a5bf80f0e2
[ "MIT" ]
2
2020-07-18T05:19:36.000Z
2020-07-18T05:19:38.000Z
core/models.py
nforesperance/Django-Channels-ChatApp
b244954206214f7dc1b8793291d957a5bf80f0e2
[ "MIT" ]
4
2021-03-19T02:37:45.000Z
2021-06-04T23:02:41.000Z
core/models.py
nforesperance/Django-Channels-ChatApp
b244954206214f7dc1b8793291d957a5bf80f0e2
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db.models import (Model, TextField, DateTimeField, ForeignKey, CASCADE) from asgiref.sync import async_to_sync from channels.layers import get_channel_layer from django.db import models import json class MessageModel(Model): ""...
32.67027
93
0.603077
5,752
0.951688
0
0
0
0
0
0
1,342
0.222038
c74bed1c84a21dce43450d469d8869b0372e61e0
15,798
py
Python
backup/model.py
jsikyoon/ASNP-RMR
ddd3e586b01ba3a7f8b3721582aca7403649400e
[ "MIT" ]
8
2020-07-21T02:49:54.000Z
2021-09-28T02:22:37.000Z
backup/model.py
jsikyoon/ASNP-RMR
ddd3e586b01ba3a7f8b3721582aca7403649400e
[ "MIT" ]
null
null
null
backup/model.py
jsikyoon/ASNP-RMR
ddd3e586b01ba3a7f8b3721582aca7403649400e
[ "MIT" ]
1
2020-09-02T06:39:49.000Z
2020-09-02T06:39:49.000Z
import tensorflow as tf import numpy as np # utility methods def batch_mlp(input, output_sizes, variable_scope): """Apply MLP to the final axis of a 3D tensor (reusing already defined MLPs). Args: input: input tensor of shape [B,n,d_in]. output_sizes: An iterable containing the output sizes of the MLP a...
36.068493
81
0.660653
11,330
0.717179
0
0
0
0
0
0
8,469
0.536081
c74e4682a52e8afc4e35ad4f69f1a64dccbd1416
3,520
py
Python
minotaur/_minotaur.py
giannitedesco/minotaur
1a043818775e14054cc3467ba6d1c07cbf128c6b
[ "Apache-2.0" ]
172
2020-08-24T14:34:00.000Z
2021-12-29T21:56:33.000Z
minotaur/_minotaur.py
giannitedesco/minotaur
1a043818775e14054cc3467ba6d1c07cbf128c6b
[ "Apache-2.0" ]
3
2020-08-25T13:46:30.000Z
2021-02-27T01:25:38.000Z
minotaur/_minotaur.py
giannitedesco/minotaur
1a043818775e14054cc3467ba6d1c07cbf128c6b
[ "Apache-2.0" ]
4
2020-08-24T17:21:18.000Z
2021-12-29T21:57:42.000Z
from typing import Dict, Tuple, Optional from pathlib import Path import asyncio from ._mask import Mask from ._event import Event from ._base import InotifyBase __all__ = ('Minotaur',) class Notification: __slots__ = ( '_path', '_type', '_isdir', '_unmount', '_qoverflow...
26.268657
75
0.559659
3,325
0.944602
0
0
552
0.156818
250
0.071023
651
0.184943
c7508c28b649dccba896625618759517bbe0fd13
161
py
Python
pyclustering/container/examples/__init__.py
JosephChataignon/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
1,013
2015-01-26T19:50:14.000Z
2022-03-31T07:38:48.000Z
pyclustering/container/examples/__init__.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
542
2015-01-20T16:44:32.000Z
2022-01-29T14:57:20.000Z
pyclustering/container/examples/__init__.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
262
2015-03-19T07:28:12.000Z
2022-03-30T07:28:24.000Z
"""! @brief Collection of examples devoted to containers. @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause """
17.888889
53
0.714286
0
0
0
0
0
0
0
0
161
1
c751066d68d4e91afb71f1ee11d13e9bcbb998a8
8,802
py
Python
novelty-detection/train_wood_vgg19.py
matherm/python-data-science
bdb49b18c5ef6044f8a9e6f95c81d5f7bb1d511f
[ "MIT" ]
1
2020-03-24T09:22:04.000Z
2020-03-24T09:22:04.000Z
novelty-detection/train_wood_vgg19.py
matherm/python-data-science
bdb49b18c5ef6044f8a9e6f95c81d5f7bb1d511f
[ "MIT" ]
1
2020-06-16T14:42:29.000Z
2020-06-16T14:42:29.000Z
novelty-detection/train_wood_vgg19.py
matherm/python-data-science
bdb49b18c5ef6044f8a9e6f95c81d5f7bb1d511f
[ "MIT" ]
null
null
null
import argparse import sys import torch import numpy as np import torch.nn as nn from torch.utils.data import DataLoader from torchvision.datasets import MNIST from torchvision.datasets import CIFAR10 import torchvision.transforms as transforms import matplotlib.pyplot as plt parser = argparse.ArgumentParser(descripti...
34.249027
213
0.546353
464
0.052715
0
0
0
0
0
0
1,888
0.214497
c7511256bf0b0f8d7c0f1ccc084e2e9144ad8ab3
2,948
py
Python
sample_architectures/cnn.py
hvarS/PyTorch-Refer
020445e3ae1f3627f39e1ab957cdff44a2127289
[ "MIT" ]
null
null
null
sample_architectures/cnn.py
hvarS/PyTorch-Refer
020445e3ae1f3627f39e1ab957cdff44a2127289
[ "MIT" ]
null
null
null
sample_architectures/cnn.py
hvarS/PyTorch-Refer
020445e3ae1f3627f39e1ab957cdff44a2127289
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """CNN.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1Tq6HUya2PrC0SmyOIFo2c_eVtguRED2q """ import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.utils.data import DataL...
28.07619
128
0.700136
701
0.237788
0
0
0
0
0
0
497
0.168589
c7551a216f55773fcf2668fcef4ad367660f3169
21,599
py
Python
aispace/layers/callbacks/qa_evaluators.py
SmileGoat/AiSpace
35fc120667e4263c99b300815e0bf018f5064a40
[ "Apache-2.0" ]
32
2020-01-16T07:59:03.000Z
2022-03-31T09:24:00.000Z
aispace/layers/callbacks/qa_evaluators.py
SmileGoat/AiSpace
35fc120667e4263c99b300815e0bf018f5064a40
[ "Apache-2.0" ]
9
2020-06-05T03:27:06.000Z
2022-03-12T01:00:17.000Z
aispace/layers/callbacks/qa_evaluators.py
SmileGoat/AiSpace
35fc120667e4263c99b300815e0bf018f5064a40
[ "Apache-2.0" ]
3
2020-06-09T02:22:50.000Z
2021-07-19T06:07:07.000Z
# -*- coding: utf-8 -*- # @Time : 2020-07-30 15:06 # @Author : yingyuankai # @Email : yingyuankai@aliyun.com # @File : qa_evaluators.py import os import logging import numpy as np import tensorflow as tf import json from pprint import pprint from collections import defaultdict from aispace.utils.eval_utils ...
44.997917
146
0.570582
20,969
0.970832
0
0
0
0
0
0
3,931
0.181999
c75685d19bc8be9c76eb30777f9bd2a54b73db11
682
py
Python
tests/conftest.py
junjunjunk/torchgpipe
3db11e1da0fc432eb3f3807ddcb22967973c8b28
[ "Apache-2.0" ]
532
2019-05-27T09:23:04.000Z
2022-03-31T04:07:55.000Z
tests/conftest.py
junjunjunk/torchgpipe
3db11e1da0fc432eb3f3807ddcb22967973c8b28
[ "Apache-2.0" ]
29
2019-07-01T19:49:54.000Z
2021-11-28T00:51:00.000Z
tests/conftest.py
junjunjunk/torchgpipe
3db11e1da0fc432eb3f3807ddcb22967973c8b28
[ "Apache-2.0" ]
68
2019-05-27T09:27:32.000Z
2022-03-27T13:52:18.000Z
import pytest import torch @pytest.fixture(autouse=True) def manual_seed_zero(): torch.manual_seed(0) @pytest.fixture(scope='session') def cuda_sleep(): # Warm-up CUDA. torch.empty(1, device='cuda') # From test/test_cuda.py in PyTorch. start = torch.cuda.Event(enable_timing=True) end = torc...
22
62
0.696481
0
0
0
0
578
0.847507
0
0
95
0.139296
c756e2f724651746fcaf020b50f3e0f2bdeb6442
54,090
py
Python
lib/python/treadmill/scheduler/__init__.py
drienyov/treadmill
ce21537cd9a2fdb0567ac2aa3de1afcb2f6861de
[ "Apache-2.0" ]
null
null
null
lib/python/treadmill/scheduler/__init__.py
drienyov/treadmill
ce21537cd9a2fdb0567ac2aa3de1afcb2f6861de
[ "Apache-2.0" ]
null
null
null
lib/python/treadmill/scheduler/__init__.py
drienyov/treadmill
ce21537cd9a2fdb0567ac2aa3de1afcb2f6861de
[ "Apache-2.0" ]
null
null
null
"""Treadmill hierarchical scheduler. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import abc import collections import datetime import heapq import itertools import logging import operator import sys import tim...
30.016648
79
0.578203
49,666
0.91821
4,322
0.079904
956
0.017674
0
0
13,729
0.253818
c758c753c3644ae1a4c381597cfe0cc82c7e378b
1,260
py
Python
banners/bannerRan.py
gothyyy/AIDungeon
c198371c34d914e9d996559ef850c87a76f572c4
[ "MIT" ]
1
2019-12-30T21:45:06.000Z
2019-12-30T21:45:06.000Z
banners/bannerRan.py
gothyyy/AIDungeon
c198371c34d914e9d996559ef850c87a76f572c4
[ "MIT" ]
null
null
null
banners/bannerRan.py
gothyyy/AIDungeon
c198371c34d914e9d996559ef850c87a76f572c4
[ "MIT" ]
null
null
null
import random import sys import time import json import os import warnings import numpy as np import glob, os stat_mini = 1 stat_max = 0 listBanners = [] #HOW TO USE IT: #1 copy the opening.txt #2 remove the graphic (but do keep top logo for consistency) #3 add ASCII art that is 78 or less characters in widt...
14.823529
86
0.640476
157
0.124603
0
0
0
0
0
0
366
0.290476
c758e049e83a8786ae62f5c9ab2545ec4624de3e
511
py
Python
BondMarket/app/theme_lib.py
Meith0717/BondMarket
83d99bd5930758e73b4fe74a92e706c7bc0eadb6
[ "Apache-2.0" ]
null
null
null
BondMarket/app/theme_lib.py
Meith0717/BondMarket
83d99bd5930758e73b4fe74a92e706c7bc0eadb6
[ "Apache-2.0" ]
null
null
null
BondMarket/app/theme_lib.py
Meith0717/BondMarket
83d99bd5930758e73b4fe74a92e706c7bc0eadb6
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass @dataclass class theme: name : str bg_color : str fg_color : str lb_color : str ttk_theme : str LIGHT = theme( name='LIGHT', bg_color=None, fg_color='black', lb_color='#f0f0f0', ttk_them...
19.653846
35
0.485323
127
0.248532
0
0
139
0.272016
0
0
71
0.138943
c7592054e40573b08b4d8a7a1efd9326b5695f4f
3,877
py
Python
run.py
rimijoker/CA-MTL
068e25e0860a8ec81462018126eace4c004bacd4
[ "MIT" ]
1
2021-08-03T03:54:02.000Z
2021-08-03T03:54:02.000Z
run.py
rimijoker/CA-MTL
068e25e0860a8ec81462018126eace4c004bacd4
[ "MIT" ]
null
null
null
run.py
rimijoker/CA-MTL
068e25e0860a8ec81462018126eace4c004bacd4
[ "MIT" ]
1
2021-07-31T09:44:00.000Z
2021-07-31T09:44:00.000Z
import os import sys import re import json import logging import torch from transformers import ( HfArgumentParser, set_seed, AutoTokenizer, AutoConfig, EvalPrediction, ) from src.model.ca_mtl import CaMtl, CaMtlArguments from src.utils.misc import MultiTaskDataArguments, Split from src.mtl_traine...
26.923611
98
0.660562
0
0
0
0
0
0
0
0
348
0.08976
c75af988694e7b9961b260a9f014fab177797bfa
1,033
py
Python
examples/readWebsocket.py
uadlq/PhyPiDAQ-PiOS11
fc6060551be2cc0143a157081341bf3c338d9fbd
[ "BSD-2-Clause" ]
null
null
null
examples/readWebsocket.py
uadlq/PhyPiDAQ-PiOS11
fc6060551be2cc0143a157081341bf3c338d9fbd
[ "BSD-2-Clause" ]
null
null
null
examples/readWebsocket.py
uadlq/PhyPiDAQ-PiOS11
fc6060551be2cc0143a157081341bf3c338d9fbd
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 """Read data in CSV format from websocket """ import sys import asyncio import websockets # read url from command line if len(sys.argv) >= 2: uri = sys.argv[1] else: # host url and port uri = "ws://localhost:8314" print("*==* ", sys.argv[0], " Lese Daten von url ", uri) async def ...
25.195122
72
0.580833
0
0
0
0
0
0
648
0.627299
372
0.360116
c75b6da97a2671884ced55ad3cbef590baf2e5c6
2,187
py
Python
settings/__init__.py
arcana261/python-grpc-boilerplate
dd20767ad5540a49e1db802ce578c7b8e416ccbb
[ "Unlicense" ]
null
null
null
settings/__init__.py
arcana261/python-grpc-boilerplate
dd20767ad5540a49e1db802ce578c7b8e416ccbb
[ "Unlicense" ]
null
null
null
settings/__init__.py
arcana261/python-grpc-boilerplate
dd20767ad5540a49e1db802ce578c7b8e416ccbb
[ "Unlicense" ]
null
null
null
import os import sys import itertools import json _NONE = object() class SettingManager: _sentry = object() def __init__(self): self.env = os.getenv('ENV', 'prd') try: self._default = __import__('settings.default', fromlist=['*']) except ModuleNotFoundError: ...
27.683544
99
0.577503
2,073
0.947874
0
0
0
0
0
0
82
0.037494
c75c60f75fce7285b991ad22486e1b1b13a02fed
1,990
py
Python
roblox/partials/partialgroup.py
speer-kinjo/ro.py
2d5b80aec8fd143b11101fbbfdf3b557f798a27f
[ "MIT" ]
28
2021-11-04T11:13:38.000Z
2022-03-11T05:00:16.000Z
roblox/partials/partialgroup.py
speer-kinjo/ro.py
2d5b80aec8fd143b11101fbbfdf3b557f798a27f
[ "MIT" ]
12
2021-11-24T06:25:24.000Z
2022-03-18T14:37:01.000Z
roblox/partials/partialgroup.py
speer-kinjo/ro.py
2d5b80aec8fd143b11101fbbfdf3b557f798a27f
[ "MIT" ]
21
2021-10-20T16:36:55.000Z
2022-03-27T21:43:53.000Z
""" This file contains partial objects related to Roblox groups. """ from __future__ import annotations from typing import TYPE_CHECKING from ..bases.basegroup import BaseGroup from ..bases.baseuser import BaseUser if TYPE_CHECKING: from ..client import Client class AssetPartialGroup(BaseGroup): """ R...
28.028169
91
0.628643
1,715
0.861809
0
0
0
0
0
0
1,141
0.573367
c75d41f3ecd90250dc9544657aba89378f5765d0
2,150
py
Python
services/UserService.py
erginbalta/FarmChain
a542d19212f176b7b5d12806078459da105e5afa
[ "Apache-2.0" ]
1
2021-01-16T14:38:21.000Z
2021-01-16T14:38:21.000Z
services/UserService.py
erginbalta/FarmChain
a542d19212f176b7b5d12806078459da105e5afa
[ "Apache-2.0" ]
null
null
null
services/UserService.py
erginbalta/FarmChain
a542d19212f176b7b5d12806078459da105e5afa
[ "Apache-2.0" ]
1
2020-07-23T04:00:07.000Z
2020-07-23T04:00:07.000Z
import mysql.connector import socket from contextlib import closing import json import random packetType= ["INF","TRN","USR"] database = mysql.connector.connect( host="localhost", user="root", port="3307", passwd="ergin00000", database="farmchain" ) def userIdCreator(): data = [] numericId...
26.875
119
0.676744
0
0
0
0
0
0
0
0
137
0.063721
c75e39b34cd2c6335e68141ae306111fa4b684be
10,238
py
Python
tests/blackbox/access_settings/test_bb_access_settings.py
csanders-git/waflz
ec8fc7c845f20a2a8c757d13845ba22a6d7c5b28
[ "Apache-2.0" ]
1
2019-03-16T09:02:58.000Z
2019-03-16T09:02:58.000Z
tests/blackbox/access_settings/test_bb_access_settings.py
csanders-git/waflz
ec8fc7c845f20a2a8c757d13845ba22a6d7c5b28
[ "Apache-2.0" ]
null
null
null
tests/blackbox/access_settings/test_bb_access_settings.py
csanders-git/waflz
ec8fc7c845f20a2a8c757d13845ba22a6d7c5b28
[ "Apache-2.0" ]
1
2021-04-22T09:43:46.000Z
2021-04-22T09:43:46.000Z
#!/usr/bin/python '''Test WAF Access settings''' #TODO: make so waflz_server only runs once and then can post to it # ------------------------------------------------------------------------------ # Imports # ------------------------------------------------------------------------------ import pytest import subprocess...
49.458937
117
0.511428
0
0
0
0
1,097
0.10715
0
0
5,441
0.531451
c75ec65b0817a875da33fd517bd4f04f459ffba4
2,852
py
Python
cosmosis/runtime/analytics.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
1
2021-09-15T10:10:26.000Z
2021-09-15T10:10:26.000Z
cosmosis/runtime/analytics.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
null
null
null
cosmosis/runtime/analytics.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
1
2021-06-11T15:29:43.000Z
2021-06-11T15:29:43.000Z
#coding: utf-8 from __future__ import print_function from builtins import zip from builtins import object from cosmosis import output as output_module import numpy as np import sys import os class Analytics(object): def __init__(self, params, pool=None): self.params = params self.pool = pool ...
31.688889
73
0.543829
2,657
0.931627
0
0
0
0
0
0
371
0.130084
c76014b2a087d9f2456ffc8e8847fb9b397481a4
8,148
py
Python
sdcc2elf.py
Vector35/llil_transpiler
6f6f368d34cb872460ad1634ddcbc4207276feb6
[ "MIT" ]
14
2019-08-23T13:49:07.000Z
2021-12-24T20:09:57.000Z
sdcc2elf.py
Vector35/llil_transpiler
6f6f368d34cb872460ad1634ddcbc4207276feb6
[ "MIT" ]
null
null
null
sdcc2elf.py
Vector35/llil_transpiler
6f6f368d34cb872460ad1634ddcbc4207276feb6
[ "MIT" ]
1
2021-12-24T20:10:00.000Z
2021-12-24T20:10:00.000Z
#!/usr/bin/env python # # convert SDCC .rel files to 32-bit ELF relocatable # # resulting file is simple: # # ------------------------ # ELF header # ------------------------ # .text section # .shstrtab section # .strtab section # .symtab section # ------------------------ # NULL elf32_shdr # .text elf32_shdr # .shstrt...
27.714286
88
0.567624
0
0
0
0
0
0
0
0
2,850
0.349779
c760d11b6bcb337986c7f02b8372675729e8a684
3,743
py
Python
eval.py
nikinsta/deep-siamese-text-similarity-on-python-3
80fffd86da1d9f6bc0cb154a9415ff767d944777
[ "MIT" ]
null
null
null
eval.py
nikinsta/deep-siamese-text-similarity-on-python-3
80fffd86da1d9f6bc0cb154a9415ff767d944777
[ "MIT" ]
null
null
null
eval.py
nikinsta/deep-siamese-text-similarity-on-python-3
80fffd86da1d9f6bc0cb154a9415ff767d944777
[ "MIT" ]
null
null
null
#! /usr/bin/env python import tensorflow as tf import numpy as np import os import time import datetime from tensorflow.contrib import learn from input_helpers import InputHelper # Parameters # ================================================== # Eval Parameters tf.flags.DEFINE_integer("batch_size", 64, "Batch Size (...
42.05618
167
0.696767
0
0
0
0
0
0
0
0
1,240
0.331285
c76173ed74a504071f1116fc3a7dc17a1c832c39
4,626
py
Python
accounts/views.py
nikhiljohn10/django-auth
01d97e8173436c3446f039cfa6472ece3cd9f96a
[ "MIT" ]
null
null
null
accounts/views.py
nikhiljohn10/django-auth
01d97e8173436c3446f039cfa6472ece3cd9f96a
[ "MIT" ]
null
null
null
accounts/views.py
nikhiljohn10/django-auth
01d97e8173436c3446f039cfa6472ece3cd9f96a
[ "MIT" ]
null
null
null
from django.urls import reverse from django.conf import settings from django.contrib import messages from django.shortcuts import render, redirect from django.core.mail import send_mail from django.contrib.auth import login, logout, views, authenticate from django.views.generic.edit import CreateView from django.contri...
31.684932
78
0.671422
1,152
0.249027
0
0
2,291
0.495244
0
0
734
0.158668
c7651286d18c5a48356115767024669710aad666
29
py
Python
python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationTupleType.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationTupleType.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationTupleType.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
v<caret>ar = (1, 'foo', None)
29
29
0.551724
0
0
0
0
0
0
0
0
5
0.172414
c7655b5b6676c78858c562c5f53a9ea086d6bb5c
228
py
Python
bot/venv/lib/python3.7/site-packages/scipy/version.py
manaccac/sc2_bot
3aa8b3711378b71fd0a44662cdd7148846e39530
[ "MIT" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
bot/venv/lib/python3.7/site-packages/scipy/version.py
manaccac/sc2_bot
3aa8b3711378b71fd0a44662cdd7148846e39530
[ "MIT" ]
37
2020-10-20T08:30:53.000Z
2020-12-22T13:15:45.000Z
bot/venv/lib/python3.7/site-packages/scipy/version.py
manaccac/sc2_bot
3aa8b3711378b71fd0a44662cdd7148846e39530
[ "MIT" ]
15
2020-11-30T22:12:22.000Z
2020-12-09T01:32:48.000Z
# THIS FILE IS GENERATED FROM SCIPY SETUP.PY short_version = '1.5.4' version = '1.5.4' full_version = '1.5.4' git_revision = '19acfed431060aafaa963f7e530c95e70cd4b85c' release = True if not release: version = full_version
20.727273
57
0.745614
0
0
0
0
0
0
0
0
107
0.469298
c765b8fb3017f33809adece1e8c0d5771ccc24b7
356
py
Python
emrichen/input/__init__.py
jbek7/emrichen
b6b8327e35cb2b9f3da49519110ecc766a9ad741
[ "MIT" ]
null
null
null
emrichen/input/__init__.py
jbek7/emrichen
b6b8327e35cb2b9f3da49519110ecc766a9ad741
[ "MIT" ]
null
null
null
emrichen/input/__init__.py
jbek7/emrichen
b6b8327e35cb2b9f3da49519110ecc766a9ad741
[ "MIT" ]
null
null
null
from typing import TextIO, Union from .json import load_json from .yaml import load_yaml PARSERS = { 'yaml': load_yaml, 'json': load_json, } def parse(data: Union[TextIO, str], format: str): if format in PARSERS: return PARSERS[format](data) else: raise ValueError('No parser for form...
20.941176
79
0.676966
0
0
0
0
0
0
0
0
43
0.120787
c7675ba7953da5231174f58bf3d8e9f9039a7d72
5,668
py
Python
sdk/python/pulumi_aws_native/workspaces/get_workspace.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/workspaces/get_workspace.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/workspaces/get_workspace.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
41.985185
211
0.711009
3,904
0.688779
512
0.090332
3,611
0.637085
0
0
1,336
0.235709
c768daaabaf9920391bc3d2ee09b1a53e4d2788c
24
py
Python
testtools/__init__.py
afy2103/spambayes-9-10-Frozen
383db71e3b7b2141975cf66e6d223bb437511776
[ "PSF-2.0" ]
null
null
null
testtools/__init__.py
afy2103/spambayes-9-10-Frozen
383db71e3b7b2141975cf66e6d223bb437511776
[ "PSF-2.0" ]
null
null
null
testtools/__init__.py
afy2103/spambayes-9-10-Frozen
383db71e3b7b2141975cf66e6d223bb437511776
[ "PSF-2.0" ]
null
null
null
__author__ = 'AlexYang'
12
23
0.75
0
0
0
0
0
0
0
0
10
0.416667
c768fa044e6b10f72fbfbfa85435ada393a83af3
673
py
Python
tests/test_distance.py
mkclairhong/quail
a6d6502746c853518a670d542222eb5fc2b05542
[ "MIT" ]
1
2018-05-30T15:33:26.000Z
2018-05-30T15:33:26.000Z
tests/test_distance.py
mkclairhong/quail
a6d6502746c853518a670d542222eb5fc2b05542
[ "MIT" ]
null
null
null
tests/test_distance.py
mkclairhong/quail
a6d6502746c853518a670d542222eb5fc2b05542
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from quail.distance import * import numpy as np import pytest from scipy.spatial.distance import cdist def test_match(): a = 'A' b = 'B' assert np.equal(match(a, b), 1) def test_euclidean_list(): a = [0, 1, 0] b = [0, 1, 0] assert np.equal(euclidean(a, b), 0) def test...
21.03125
41
0.580981
0
0
0
0
0
0
0
0
29
0.043091
c769abd3fe7f81479f81afe9e3156873d7f5b0e2
17,050
py
Python
utils/manisfestManager.py
ovitrac/pizza3
0f4dc6e362fd8665c72ec13328df05f9119dfbc3
[ "MIT" ]
1
2022-02-07T14:10:10.000Z
2022-02-07T14:10:10.000Z
utils/manisfestManager.py
ovitrac/Pizza3
0f4dc6e362fd8665c72ec13328df05f9119dfbc3
[ "MIT" ]
null
null
null
utils/manisfestManager.py
ovitrac/Pizza3
0f4dc6e362fd8665c72ec13328df05f9119dfbc3
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # # # manifestManager.py # # ...
44.285714
130
0.436716
12,937
0.758768
0
0
0
0
0
0
6,275
0.368035
c76b9236e24c24d26fa468bcec0fccac39b536c2
27,999
py
Python
pysnmp/ZYXEL-AclV2-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/ZYXEL-AclV2-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/ZYXEL-AclV2-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ZYXEL-AclV2-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZYXEL-AclV2-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:43:03 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
144.324742
5,641
0.792314
0
0
0
0
0
0
0
0
3,564
0.12729
c76c70c2e310ab6dd7d23270c230a7b48cbff5cf
729
py
Python
temperature.py
rhwlr/TEST_PRELIM_SKILLS_EXAM
a776ab7631fac8bed1aea0470918e6250752ce8e
[ "MIT" ]
null
null
null
temperature.py
rhwlr/TEST_PRELIM_SKILLS_EXAM
a776ab7631fac8bed1aea0470918e6250752ce8e
[ "MIT" ]
null
null
null
temperature.py
rhwlr/TEST_PRELIM_SKILLS_EXAM
a776ab7631fac8bed1aea0470918e6250752ce8e
[ "MIT" ]
null
null
null
class Temperature: def __init__(self, kelvin=None, celsius=None, fahrenheit=None): values = [x for x in [kelvin, celsius, fahrenheit] if x] if len(values) < 1: raise ValueError('Need argument') if len(values) > 1: raise ValueError('Only one argument') if ce...
29.16
72
0.562414
706
0.96845
0
0
0
0
0
0
114
0.156379
c76ca1375282328ef3e6038f93b1edf1d46d7f49
1,728
py
Python
af/shovel/test_canning.py
mimi89999/pipeline
3e9eaf74c0966df907a230fbe89407c2bbc3d930
[ "BSD-3-Clause" ]
null
null
null
af/shovel/test_canning.py
mimi89999/pipeline
3e9eaf74c0966df907a230fbe89407c2bbc3d930
[ "BSD-3-Clause" ]
null
null
null
af/shovel/test_canning.py
mimi89999/pipeline
3e9eaf74c0966df907a230fbe89407c2bbc3d930
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2.7 import unittest import canning class TestNop(unittest.TestCase): def test_nop(self): canning.NopTeeFd.write("asdf") class TestSlice(unittest.TestCase): REPORT = "20130505T065614Z-VN-AS24173-dns_consistency-no_report_id-0.1.0-probe.yaml" @staticmethod def rpt(year)...
30.315789
100
0.609375
1,615
0.934606
0
0
188
0.108796
0
0
273
0.157986
c76d58f2d02929d5eb4690fddd86e4d2f3a6dc3d
244
py
Python
Exercicios/ex061.py
jlsmirandela/Curso_Python
2419b68d335a2a42beb3e98fb93552aca1264cae
[ "MIT" ]
null
null
null
Exercicios/ex061.py
jlsmirandela/Curso_Python
2419b68d335a2a42beb3e98fb93552aca1264cae
[ "MIT" ]
null
null
null
Exercicios/ex061.py
jlsmirandela/Curso_Python
2419b68d335a2a42beb3e98fb93552aca1264cae
[ "MIT" ]
null
null
null
print('-+-' *10) print(' GERADOR DE PA') print('+-+' * 10) c = 1 ter = int(input('Insira o primeiro termo - ')) rz = int(input('Insira a razão - ')) while c <= 10: print(ter, ' → ', end=' ') ter += rz c += 1 print('FIM')
14.352941
46
0.487705
0
0
0
0
0
0
0
0
95
0.384615
c76e7fcaeb2193c977b2c4ee81febf00b7763cee
2,175
py
Python
gpytorch/models/approximate_gp.py
phumm/gpytorch
4e8042bcecda049956f8f9e823d82ba6340766d5
[ "MIT" ]
1
2019-09-30T06:51:03.000Z
2019-09-30T06:51:03.000Z
gpytorch/models/approximate_gp.py
phumm/gpytorch
4e8042bcecda049956f8f9e823d82ba6340766d5
[ "MIT" ]
null
null
null
gpytorch/models/approximate_gp.py
phumm/gpytorch
4e8042bcecda049956f8f9e823d82ba6340766d5
[ "MIT" ]
1
2020-09-16T16:35:27.000Z
2020-09-16T16:35:27.000Z
#!/usr/bin/env python3 from .gp import GP from .pyro import _PyroMixin # This will only contain functions if Pyro is installed class ApproximateGP(GP, _PyroMixin): def __init__(self, variational_strategy): super().__init__() self.variational_strategy = variational_strategy def forward(self,...
38.157895
114
0.593563
2,043
0.93931
0
0
0
0
0
0
1,406
0.646437
c76ec369645b0f101be129ffedbb1f290be5f94b
510
py
Python
tests/test_ping.py
d-wysocki/flask-resty
2a5e7d7ea7e2130dce44b8f50625df72ad0dcd19
[ "MIT" ]
86
2015-11-25T07:09:10.000Z
2022-02-15T19:40:30.000Z
tests/test_ping.py
d-wysocki/flask-resty
2a5e7d7ea7e2130dce44b8f50625df72ad0dcd19
[ "MIT" ]
180
2015-11-24T23:02:53.000Z
2022-03-31T04:05:38.000Z
tests/test_ping.py
d-wysocki/flask-resty
2a5e7d7ea7e2130dce44b8f50625df72ad0dcd19
[ "MIT" ]
17
2015-12-28T11:05:47.000Z
2022-03-15T12:10:02.000Z
import pytest from flask_resty import Api from flask_resty.testing import assert_response # ----------------------------------------------------------------------------- @pytest.fixture(autouse=True) def routes(app): api = Api(app, "/api") api.add_ping("/ping") # ------------------------------------------...
23.181818
79
0.490196
0
0
0
0
99
0.194118
0
0
180
0.352941
c76f8dffc967eba49049f65ff4df98887b137c0d
1,476
py
Python
tests/test_vetters.py
pllim/exovetter
75c6ca609331c04a55c0a6b4c858be71a4dfdfea
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/test_vetters.py
pllim/exovetter
75c6ca609331c04a55c0a6b4c858be71a4dfdfea
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/test_vetters.py
pllim/exovetter
75c6ca609331c04a55c0a6b4c858be71a4dfdfea
[ "MIT", "BSD-3-Clause" ]
null
null
null
from numpy.testing import assert_allclose from astropy.io import ascii from astropy import units as u import lightkurve as lk from exovetter import const as exo_const from exovetter import vetters from exovetter.tce import Tce from astropy.utils.data import get_pkg_data_filename def get_wasp18_tce(): tce = Tce...
25.894737
71
0.638889
0
0
0
0
0
0
0
0
109
0.073848
c770f106a56c64793bd9f4e329f2b5bb1fbfddef
4,270
py
Python
pyqtgraph/dockarea/DockDrop.py
hishizuka/pyqtgraph
4820625d93ffb41f324431d0d29b395cf91f339e
[ "MIT" ]
2,762
2015-01-02T14:34:10.000Z
2022-03-30T14:06:07.000Z
pyqtgraph/dockarea/DockDrop.py
hishizuka/pyqtgraph
4820625d93ffb41f324431d0d29b395cf91f339e
[ "MIT" ]
1,901
2015-01-12T03:20:30.000Z
2022-03-31T16:33:36.000Z
pyqtgraph/dockarea/DockDrop.py
hishizuka/pyqtgraph
4820625d93ffb41f324431d0d29b395cf91f339e
[ "MIT" ]
1,038
2015-01-01T04:05:49.000Z
2022-03-31T11:57:51.000Z
# -*- coding: utf-8 -*- from ..Qt import QtCore, QtGui class DockDrop(object): """Provides dock-dropping methods""" def __init__(self, allowedAreas=None): object.__init__(self) if allowedAreas is None: allowedAreas = ['center', 'right', 'left', 'top', 'bottom'] self.allowedA...
32.348485
91
0.525527
4,201
0.983841
0
0
0
0
0
0
667
0.156206
c7723eb15222900f00b69a2e3a6fb1a9708b8d3e
871
py
Python
data/download.py
pyaf/google-ai-open-images-object-detection-track
3dd19aeeca5eea07de341ade59d1513fda4597ee
[ "MIT" ]
null
null
null
data/download.py
pyaf/google-ai-open-images-object-detection-track
3dd19aeeca5eea07de341ade59d1513fda4597ee
[ "MIT" ]
null
null
null
data/download.py
pyaf/google-ai-open-images-object-detection-track
3dd19aeeca5eea07de341ade59d1513fda4597ee
[ "MIT" ]
null
null
null
import os from subprocess import call files = ['000002b66c9c498e.jpg', '000002b97e5471a0.jpg', '000002c707c9895e.jpg', '0000048549557964.jpg', '000004f4400f6ec5.jpg', '0000071d71a0a6f6.jpg', '000013ba71c12506.jpg', '000018acd19b4ad3.jpg', '00001bc2c4027449.jpg', '00001bcc92282a38.jpg', '0000201cd362f303.jpg', '0000207...
67
560
0.712974
0
0
0
0
0
0
0
0
610
0.700344
c773836d5d08ecba5ffb7e86e3b25bdc07e2351a
3,927
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/SNMP_FRAMEWORK_MIB.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/SNMP_FRAMEWORK_MIB.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/SNMP_FRAMEWORK_MIB.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
1
2020-07-22T04:04:44.000Z
2020-07-22T04:04:44.000Z
""" SNMP_FRAMEWORK_MIB """ from collections import OrderedDict from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64 from ydk.filters import YFilter from ydk.errors import YError, YModelError from ydk.errors.error_handler import handle_type_er...
28.456522
158
0.595111
3,573
0.909855
0
0
0
0
0
0
1,518
0.386555
c773cb05d9fdb9aa7ea5543ac5440822be912b9e
2,941
py
Python
handlers/redirects.py
Bainky/Ventify
638486dc5f265a4907a5a193ea2a7c9b44e8e943
[ "MIT" ]
6
2021-03-11T11:43:17.000Z
2021-12-08T05:26:20.000Z
handlers/redirects.py
Bainky/Ventify
638486dc5f265a4907a5a193ea2a7c9b44e8e943
[ "MIT" ]
null
null
null
handlers/redirects.py
Bainky/Ventify
638486dc5f265a4907a5a193ea2a7c9b44e8e943
[ "MIT" ]
2
2021-03-24T05:31:12.000Z
2021-04-13T22:03:11.000Z
from aiogram.utils.markdown import hide_link from aiogram.types import CallbackQuery from loader import dp from utils import ( get_object, get_attributes_of_object ) from keyboards import ( anime_choose_safe_category, anime_sfw_categories, anime_nsfw_categories, animals_categories, ...
23.717742
61
0.598776
0
0
0
0
2,554
0.86459
2,347
0.794516
782
0.264726
c774024668ea75381f4aedf887a584aaa227cbf7
320
py
Python
1stRound/Medium/322-Coin Change/DP.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
2
2020-04-24T18:36:52.000Z
2020-04-25T00:15:57.000Z
1stRound/Medium/322-Coin Change/DP.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
1stRound/Medium/322-Coin Change/DP.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
class Solution: def coinChange(self, coins: List[int], amount: int) -> int: M = float('inf') # dynamic programming dp = [0] + [M] * amount for i in range(1, amount+1): dp[i] = 1 + min([dp[i-c] for c in coins if i >= c] or [M]) return dp[-1] if dp[-1] < M else -1
32
70
0.496875
319
0.996875
0
0
0
0
0
0
26
0.08125
c77456702d5939c9da605c3d65de2f70c1b95b26
8,695
py
Python
segmentation_test/Scripts/medpy_graphcut_voxel.py
rominashirazi/SpineSegmentation
fb08122ac6d9a598b60aecb4f1a1a2a31fba96ab
[ "MIT" ]
null
null
null
segmentation_test/Scripts/medpy_graphcut_voxel.py
rominashirazi/SpineSegmentation
fb08122ac6d9a598b60aecb4f1a1a2a31fba96ab
[ "MIT" ]
null
null
null
segmentation_test/Scripts/medpy_graphcut_voxel.py
rominashirazi/SpineSegmentation
fb08122ac6d9a598b60aecb4f1a1a2a31fba96ab
[ "MIT" ]
null
null
null
#!c:\users\hooma\documents\github\spinesegmentation\segmentation_test\scripts\python.exe """ Execute a graph cut on a voxel image based on some foreground and background markers. Copyright (C) 2013 Oskar Maier This program is free software: you can redistribute it and/or modify it under the terms of the GNU General ...
47.513661
328
0.692237
0
0
0
0
0
0
0
0
4,848
0.557562
c774862e87bf8aaea6f4bb5796d15dd56dc9ae0b
2,968
py
Python
_notes/book/conf.py
AstroMatt/astronaut-training-en
6250af8e10358016dcebee54bb9ad5bc40cfe4d1
[ "MIT" ]
1
2020-08-08T00:37:28.000Z
2020-08-08T00:37:28.000Z
_notes/book/conf.py
AstroMatt/astronaut-training-en
6250af8e10358016dcebee54bb9ad5bc40cfe4d1
[ "MIT" ]
null
null
null
_notes/book/conf.py
AstroMatt/astronaut-training-en
6250af8e10358016dcebee54bb9ad5bc40cfe4d1
[ "MIT" ]
null
null
null
author = 'Matt Harasymczuk' email = 'matt@astrotech.io' project = 'Astronaut Training Program' description = 'Astronaut Training Program' extensions = [ 'sphinx.ext.todo', 'sphinx.ext.imgmath', ] todo_emit_warnings = False todo_include_todos = True exclude_patterns = [] # ------------------------------------...
24.130081
128
0.624326
0
0
0
0
0
0
0
0
1,379
0.464623
c774cc70f7362fd8daf5037ff3abf0db4ccef896
221
py
Python
tutorial_application/forms.py
yamasakih/django_rdkit_tutorial
9ac591963976da38cae962de2b98702bbb919cf4
[ "MIT" ]
2
2018-12-04T00:01:26.000Z
2021-03-25T08:28:06.000Z
tutorial_application/forms.py
yamasakih/django-rdkit-tutorial
9ac591963976da38cae962de2b98702bbb919cf4
[ "MIT" ]
null
null
null
tutorial_application/forms.py
yamasakih/django-rdkit-tutorial
9ac591963976da38cae962de2b98702bbb919cf4
[ "MIT" ]
null
null
null
from django_rdkit import models from django.forms.models import ModelForm from .models import Compound class SubstructureSearchForm(ModelForm): class Meta: model = Compound fields = ('molecule', )
18.416667
41
0.723982
113
0.511312
0
0
0
0
0
0
10
0.045249
c775a30ea8b55f2cd0df98a3a7cc00417a074bda
18,286
py
Python
data_structures/trees/tree.py
onyonkaclifford/data-structures-and-algorithms
e0ca4bfa878273d06bf22c303e47762b8ec3870b
[ "MIT" ]
null
null
null
data_structures/trees/tree.py
onyonkaclifford/data-structures-and-algorithms
e0ca4bfa878273d06bf22c303e47762b8ec3870b
[ "MIT" ]
null
null
null
data_structures/trees/tree.py
onyonkaclifford/data-structures-and-algorithms
e0ca4bfa878273d06bf22c303e47762b8ec3870b
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import Any, Generator, Iterable, List, Union class Empty(Exception): pass class Tree(ABC): """A tree is a hierarchical collection of nodes containing items, with each node having a unique parent and zero, one or many children items. The topmost element in ...
39.240343
119
0.626107
18,187
0.994586
3,393
0.185552
1,137
0.062179
0
0
8,669
0.474079
c775ae8fda6ca73f18c286d16c2c597ac2a87d30
6,857
py
Python
nodes/audio.py
sddhrthrt/COVFEFE
bc74ff0b5ee4d675482928110dda81443d4bec63
[ "Apache-2.0" ]
null
null
null
nodes/audio.py
sddhrthrt/COVFEFE
bc74ff0b5ee4d675482928110dda81443d4bec63
[ "Apache-2.0" ]
null
null
null
nodes/audio.py
sddhrthrt/COVFEFE
bc74ff0b5ee4d675482928110dda81443d4bec63
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod import os import logging from nodes.helper import FileOutputNode from utils import file_utils from utils import signal_processing as sp from utils.shell_run import shell_run from config import OPENSMILE_HOME class Mp3ToWav(FileOutputNode): def run(self, mp3_file): self...
36.865591
147
0.624763
6,590
0.961062
0
0
0
0
0
0
2,068
0.30159
c776010ff719981072eef5b7305ecf5eee272758
12,914
py
Python
texar/torch/modules/pretrained/gpt2.py
VegB/VLN-Transformer
da1fa71e419d8d05c96749445230a77338edba09
[ "Apache-2.0" ]
19
2020-07-29T15:25:45.000Z
2022-01-19T17:49:42.000Z
texar/torch/modules/pretrained/gpt2.py
VegB/VLN-Transformer
da1fa71e419d8d05c96749445230a77338edba09
[ "Apache-2.0" ]
3
2021-02-16T10:26:23.000Z
2021-06-08T16:50:40.000Z
texar/torch/modules/pretrained/gpt2.py
VegB/VLN-Transformer
da1fa71e419d8d05c96749445230a77338edba09
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Texar Authors. 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 applicable ...
40.73817
80
0.533065
11,833
0.916292
0
0
0
0
0
0
4,553
0.352563
c77641557884ec300d6f17e14694ed49328569cf
4,930
py
Python
Image classifier/train.py
anirudha-bs/Farm_assist
f824b7594befdb1132da2a5c03500a1885c6f036
[ "MIT" ]
null
null
null
Image classifier/train.py
anirudha-bs/Farm_assist
f824b7594befdb1132da2a5c03500a1885c6f036
[ "MIT" ]
null
null
null
Image classifier/train.py
anirudha-bs/Farm_assist
f824b7594befdb1132da2a5c03500a1885c6f036
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf from keras import regularizers from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Conv2D, Flatten, Dropout, MaxPooling2D from tensorflow.keras.preprocessing.image import Ima...
29.878788
130
0.683773
0
0
0
0
0
0
0
0
737
0.149493
c776c16efce7e570422a5d1752b829a85d1dbe4b
686
py
Python
questions/q118_linked_list_loop_removal/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
questions/q118_linked_list_loop_removal/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
1
2021-05-15T07:56:51.000Z
2021-05-15T07:56:51.000Z
questions/q118_linked_list_loop_removal/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
def removeLoop(head): ptr = head ptr2 = head while True : if ptr is None or ptr2 is None or ptr2.next is None : return ptr = ptr.next ptr2 = ptr2.next.next if ptr is ptr2 : loopNode = ptr break ptr = loopNode.next count = ...
19.055556
61
0.478134
0
0
0
0
0
0
0
0
0
0
c779118332635de2c8ae2f98f07d435f86ed8e76
2,361
py
Python
fastrunner/httprunner3/report/html/gen_report.py
Chankee/AutoTestRunner
5f329b0dfac91ccd3541aabf46cc997cc4f01da3
[ "MIT" ]
1
2020-04-30T08:41:19.000Z
2020-04-30T08:41:19.000Z
httprunner/report/html/gen_report.py
Barronliu/httprunner
463b8c68cbd413fd2bb66852752149bc1609e98d
[ "Apache-2.0" ]
null
null
null
httprunner/report/html/gen_report.py
Barronliu/httprunner
463b8c68cbd413fd2bb66852752149bc1609e98d
[ "Apache-2.0" ]
null
null
null
import io import os from datetime import datetime from jinja2 import Template from loguru import logger from httprunner.exceptions import SummaryEmpty def gen_html_report(summary, report_template=None, report_dir=None, report_file=None): """ render html report with specified report name and template Args: ...
36.323077
110
0.674714
0
0
0
0
0
0
0
0
838
0.354934
c779400f9f454e7ffcd25d7cea5b32ebe4fe996a
730
py
Python
SD/lab1/client.py
matheuscr30/UFU
e947e5a4ccd5c025cb8ef6e00b42ea1160742712
[ "MIT" ]
null
null
null
SD/lab1/client.py
matheuscr30/UFU
e947e5a4ccd5c025cb8ef6e00b42ea1160742712
[ "MIT" ]
11
2020-01-28T22:59:24.000Z
2022-03-11T23:59:04.000Z
SD/lab1/client.py
matheuscr30/UFU
e947e5a4ccd5c025cb8ef6e00b42ea1160742712
[ "MIT" ]
null
null
null
#client.py #!/usr/bin/python # This is client.py file import socket # Import socket module s = socket.socket() # Create a socket object host = socket.gethostname() # Get local machine name port = 12352 ...
27.037037
82
0.536986
0
0
0
0
0
0
0
0
300
0.410959
c77943cb74b84356ac52ea818e7a35cca299778c
4,040
py
Python
tests/helpers.py
ws4/TopCTFd
3b1e25df1318e86ff163a0b546f6e9b7f8305a5a
[ "Apache-2.0" ]
1
2019-06-25T09:24:29.000Z
2019-06-25T09:24:29.000Z
tests/helpers.py
ws4/TopCTFd
3b1e25df1318e86ff163a0b546f6e9b7f8305a5a
[ "Apache-2.0" ]
null
null
null
tests/helpers.py
ws4/TopCTFd
3b1e25df1318e86ff163a0b546f6e9b7f8305a5a
[ "Apache-2.0" ]
null
null
null
from CTFd import create_app from CTFd.models import * from sqlalchemy_utils import database_exists, create_database, drop_database from sqlalchemy.engine.url import make_url import datetime import six if six.PY2: text_type = unicode binary_type = str else: text_type = str binary_type = bytes def crea...
27.297297
117
0.592574
0
0
0
0
0
0
0
0
512
0.126733
c77b3c34564c716c04ed2a2e2297c397f73e511f
1,741
py
Python
homeassistant/components/kaiterra/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/kaiterra/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/kaiterra/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Consts for Kaiterra integration.""" from datetime import timedelta from homeassistant.const import ( CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, CONCENTRATION_MILLIGRAMS_PER_CUBIC_METER, CONCENTRATION_PARTS_PER_BILLION, CONCENTRATION_PARTS_PER_MILLION, PERCENTAGE, Platform, ) DOMAIN = "kaite...
22.907895
51
0.649627
0
0
0
0
0
0
0
0
499
0.286617
c77bfcd69447b6d8753b518a3930aaea586d8856
440
py
Python
support/views.py
bhagirath1312/ich_bau
d37fe7aa3379f312a4d8b5f3d4715dd334b9adb0
[ "Apache-2.0" ]
1
2021-11-25T19:37:01.000Z
2021-11-25T19:37:01.000Z
support/views.py
bhagirath1312/ich_bau
d37fe7aa3379f312a4d8b5f3d4715dd334b9adb0
[ "Apache-2.0" ]
197
2017-09-06T22:54:20.000Z
2022-02-05T00:04:13.000Z
support/views.py
bhagirath1312/ich_bau
d37fe7aa3379f312a4d8b5f3d4715dd334b9adb0
[ "Apache-2.0" ]
2
2017-11-08T02:13:03.000Z
2020-09-30T19:48:12.000Z
from django.shortcuts import render, redirect from django.http import HttpResponseRedirect from .models import SupportProject # Create your views here. def index( request ): sp = SupportProject.objects.all() if sp.count() == 1: return HttpResponseRedirect( sp.first().project.get_absolute_url() )...
27.5
76
0.688636
0
0
0
0
0
0
0
0
50
0.113636
c77bfffe662ca6c238ec477ceec482de486d7271
2,931
py
Python
timeline/models.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
1
2019-06-29T15:24:24.000Z
2019-06-29T15:24:24.000Z
timeline/models.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
2
2020-01-12T17:47:33.000Z
2020-01-12T17:47:45.000Z
timeline/models.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
2
2019-06-29T15:24:26.000Z
2020-01-08T15:15:03.000Z
# Bep Marketplace ELE # Copyright (c) 2016-2021 Kolibri Solutions # License: See LICENSE file or https://github.com/KolibriSolutions/BepMarketplace/blob/master/LICENSE # from datetime import datetime from django.core.exceptions import ValidationError from django.db import models class TimeSlot(models.Model): ...
38.565789
119
0.643125
2,641
0.901058
0
0
0
0
0
0
984
0.335722
c77d8ee927213d5c37d334a8dc0c0e3d7493a2cf
2,221
py
Python
app/api/user_routes.py
nappernick/envelope
af4f574c04c51293b90ee2e09d0f95d12ca36d2c
[ "MIT" ]
2
2021-01-13T22:52:16.000Z
2021-01-29T18:37:51.000Z
app/api/user_routes.py
nappernick/envelope
af4f574c04c51293b90ee2e09d0f95d12ca36d2c
[ "MIT" ]
32
2021-01-08T19:05:33.000Z
2021-04-07T22:01:54.000Z
app/api/user_routes.py
nappernick/envelope
af4f574c04c51293b90ee2e09d0f95d12ca36d2c
[ "MIT" ]
null
null
null
from datetime import datetime from werkzeug.security import generate_password_hash from flask import Blueprint, jsonify, request from sqlalchemy.orm import joinedload from flask_login import login_required from app.models import db, User, Type from app.forms import UpdateUserForm from .auth_routes import authenticate, ...
30.013514
74
0.692031
0
0
0
0
1,804
0.812247
0
0
243
0.10941
c77e4ddc9f8fe255a8511d43e707cc1ce8c44d20
19,717
py
Python
timeflux/nodes/ml.py
OpenMindInnovation/timeflux
fd27ea6706df80fa52fb73ea3dba65e14ccd088c
[ "MIT" ]
null
null
null
timeflux/nodes/ml.py
OpenMindInnovation/timeflux
fd27ea6706df80fa52fb73ea3dba65e14ccd088c
[ "MIT" ]
null
null
null
timeflux/nodes/ml.py
OpenMindInnovation/timeflux
fd27ea6706df80fa52fb73ea3dba65e14ccd088c
[ "MIT" ]
null
null
null
"""Machine Learning""" import importlib import numpy as np import pandas as pd import json from jsonschema import validate from sklearn.pipeline import make_pipeline from timeflux.core.node import Node from timeflux.core.exceptions import ValidationError, WorkerInterrupt from timeflux.helpers.background import Task fr...
39.121032
103
0.502054
19,208
0.974185
0
0
0
0
0
0
3,857
0.195618
c780e591cbad3129663e73ce7d7f50fa3fb44f8f
3,675
py
Python
cms/migrations/0006_auto_20170122_1545.py
josemlp91/django-landingcms
9d9270204369e9663ff15eb0bd4c4093b3727c6c
[ "Apache-2.0" ]
null
null
null
cms/migrations/0006_auto_20170122_1545.py
josemlp91/django-landingcms
9d9270204369e9663ff15eb0bd4c4093b3727c6c
[ "Apache-2.0" ]
null
null
null
cms/migrations/0006_auto_20170122_1545.py
josemlp91/django-landingcms
9d9270204369e9663ff15eb0bd4c4093b3727c6c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-22 15:45 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('content', '0002_auto_20170122_1509'), ('cms', '0005...
47.115385
164
0.653605
3,484
0.948027
0
0
0
0
0
0
891
0.242449
c781463cac684dcc8d5bd7e224347018ce45563c
3,641
py
Python
1-lab-lambdaDynamoDB/source/cdk/app.py
donnieprakoso/workshop-buildingRESTAPIwithAWS
b3287d5749b65648710dde4e736ba55b73371c6b
[ "Apache-2.0" ]
23
2021-04-24T06:32:58.000Z
2022-03-27T11:04:57.000Z
1-lab-lambdaDynamoDB/source/cdk/app.py
ivandi1980/workshop-restAPI
b3287d5749b65648710dde4e736ba55b73371c6b
[ "Apache-2.0" ]
null
null
null
1-lab-lambdaDynamoDB/source/cdk/app.py
ivandi1980/workshop-restAPI
b3287d5749b65648710dde4e736ba55b73371c6b
[ "Apache-2.0" ]
5
2021-04-24T12:10:02.000Z
2021-11-18T13:34:33.000Z
#!/usr/bin/env python3 from aws_cdk import aws_iam as _iam from aws_cdk import aws_lambda as _lambda from aws_cdk import aws_dynamodb as _ddb from aws_cdk import core class CdkStack(core.Stack): def __init__(self, scope: core.Construct, id: str, stack_prefix:str, **kwargs) -> None: super().__init__(scope...
44.950617
177
0.682505
3,288
0.903049
0
0
0
0
0
0
730
0.200494
c7821ff30782af7bc27dc24920e0c07f5856c1a5
326
py
Python
module_6_lets_make_a_web_app/webapp/yield.py
JCarlos831/python_getting_started_-pluralsight-
5059a1019c46eb8174fc86989fab7cc0c4caffd4
[ "MIT" ]
null
null
null
module_6_lets_make_a_web_app/webapp/yield.py
JCarlos831/python_getting_started_-pluralsight-
5059a1019c46eb8174fc86989fab7cc0c4caffd4
[ "MIT" ]
null
null
null
module_6_lets_make_a_web_app/webapp/yield.py
JCarlos831/python_getting_started_-pluralsight-
5059a1019c46eb8174fc86989fab7cc0c4caffd4
[ "MIT" ]
null
null
null
students = [] def read_file(): try: f = open("students.txt", "r") for student in read_students(f): students.append(student) f.close() except Exception: print("Could not read file") def read_students(f): for line in f: yield line read_file() print(stu...
16.3
40
0.57362
0
0
59
0.180982
0
0
0
0
38
0.116564
c782a4a5ddbb4061270df891d7584a13d55d2191
6,325
py
Python
paul_analysis/Python/labird/gamma.py
lzkelley/arepo-mbh-sims_analysis
f14519552cedd39a040b53e6d7cc538b5b8f38a3
[ "MIT" ]
null
null
null
paul_analysis/Python/labird/gamma.py
lzkelley/arepo-mbh-sims_analysis
f14519552cedd39a040b53e6d7cc538b5b8f38a3
[ "MIT" ]
null
null
null
paul_analysis/Python/labird/gamma.py
lzkelley/arepo-mbh-sims_analysis
f14519552cedd39a040b53e6d7cc538b5b8f38a3
[ "MIT" ]
null
null
null
"""Module for finding an effective equation of state for in the Lyman-alpha forest from a snapshot. Ported to python from Matteo Viel's IDL script.""" import h5py import math import numpy as np def read_gamma(num,base): """Reads in an HDF5 snapshot from the NE gadget version, fits a power law to the equation ...
32.772021
192
0.552727
0
0
0
0
0
0
0
0
2,734
0.432253
c782edc67d9a2546d01dc48945d663005d17b20d
10,490
py
Python
evogym/envs/change_shape.py
federico-camerota/evogym
fb3a792f93a61be15c9715a036da3721f99d2d42
[ "MIT" ]
78
2022-01-30T18:59:39.000Z
2022-03-31T00:26:41.000Z
evogym/envs/change_shape.py
Yuxing-Wang-THU/evogym
da3a0508fa6c5d3fcf589194778844b15a387ece
[ "MIT" ]
6
2022-01-31T02:37:49.000Z
2022-03-30T18:52:13.000Z
evogym/envs/change_shape.py
Yuxing-Wang-THU/evogym
da3a0508fa6c5d3fcf589194778844b15a387ece
[ "MIT" ]
6
2022-01-31T08:11:33.000Z
2022-02-22T01:49:50.000Z
import gym from gym import error, spaces from gym import utils from gym.utils import seeding from evogym import * from evogym.envs import BenchmarkBase import random from math import * import numpy as np import os class ShapeBase(BenchmarkBase): def __init__(self, world): super().__init__(world) ...
33.196203
121
0.6102
10,262
0.978265
0
0
0
0
0
0
2,078
0.198093
c7852c56539dc442622c1969bd3081ad523df76c
29,214
py
Python
pybind/slxos/v16r_1_00b/mpls_state/ldp/fec/ldp_fec_prefixes/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/mpls_state/ldp/fec/ldp_fec_prefixes/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/mpls_state/ldp/fec/ldp_fec_prefixes/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
73.772727
744
0.742726
28,795
0.985658
0
0
0
0
0
0
15,018
0.514069
c78545f3c73bfddebce8e778857a5662b6cdc383
610
py
Python
pug/dj/miner/model_mixin.py
hobson/pug-dj
55678b08755a55366ce18e7d3b8ea8fa4491ab04
[ "MIT" ]
null
null
null
pug/dj/miner/model_mixin.py
hobson/pug-dj
55678b08755a55366ce18e7d3b8ea8fa4491ab04
[ "MIT" ]
5
2021-09-07T23:53:24.000Z
2022-03-11T23:22:04.000Z
pug/dj/miner/model_mixin.py
hobson/pug-dj
55678b08755a55366ce18e7d3b8ea8fa4491ab04
[ "MIT" ]
1
2015-04-23T14:45:04.000Z
2015-04-23T14:45:04.000Z
from pug.nlp.db import representation from django.db import models class RepresentationMixin(models.Model): """Produce a meaningful string representation of a model with `str(model.objects.all[0])`.""" __unicode__ = representation class Meta: abstract = True class DateMixin(models.Model): ""...
32.105263
150
0.727869
538
0.881967
0
0
0
0
0
0
239
0.391803
c785e70d66977d68cd692ad4e28b80dae9e1f5c0
4,255
py
Python
custom_components/kodi_media_sensors/config_flow.py
JurajNyiri/kodi-media-sensors
055065e52b34555df95a905fc556d3086626deee
[ "MIT" ]
5
2021-03-20T23:32:58.000Z
2022-03-12T02:01:39.000Z
custom_components/kodi_media_sensors/config_flow.py
JurajNyiri/kodi-media-sensors
055065e52b34555df95a905fc556d3086626deee
[ "MIT" ]
11
2021-02-09T16:40:34.000Z
2022-03-20T11:43:06.000Z
custom_components/kodi_media_sensors/config_flow.py
JurajNyiri/kodi-media-sensors
055065e52b34555df95a905fc556d3086626deee
[ "MIT" ]
3
2021-02-09T17:01:25.000Z
2022-02-23T22:21:16.000Z
import logging from typing import Any, Dict, Optional from homeassistant import config_entries from homeassistant.components.kodi.const import DOMAIN as KODI_DOMAIN from homeassistant.core import callback import voluptuous as vol from .const import ( OPTION_HIDE_WATCHED, OPTION_USE_AUTH_URL, OPTION_SEARCH...
36.681034
88
0.624207
3,678
0.864395
0
0
174
0.040893
3,150
0.740306
371
0.087192
c785fce89075a58bb84f43684cf4f43e70fff95c
3,561
py
Python
MySite/MainApp/views.py
tananyan/siteee
f90c4ed56122d1af2f3795a0f16c3f294b785ad3
[ "MIT" ]
1
2021-11-29T14:50:09.000Z
2021-11-29T14:50:09.000Z
MySite/MainApp/views.py
tananyan/siteee
f90c4ed56122d1af2f3795a0f16c3f294b785ad3
[ "MIT" ]
null
null
null
MySite/MainApp/views.py
tananyan/siteee
f90c4ed56122d1af2f3795a0f16c3f294b785ad3
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views.generic.edit import FormView from django.views.generic.edit import View from . import forms # Опять же, спасибо django за готовую форму аутентификации. from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth import logout from django...
33.914286
134
0.686043
4,099
0.897919
0
0
0
0
0
0
2,532
0.554655
c787795efbca79aae84c0943ac98820495ba5ee9
4,057
py
Python
imagetagger/imagetagger/settings_base.py
jbargu/imagetagger
216ac5e73902abadc1880321e285e68c55bdfd3d
[ "MIT" ]
1
2019-12-26T09:14:59.000Z
2019-12-26T09:14:59.000Z
imagetagger/imagetagger/settings_base.py
jbargu/imagetagger
216ac5e73902abadc1880321e285e68c55bdfd3d
[ "MIT" ]
4
2021-03-19T15:46:34.000Z
2022-01-13T03:33:04.000Z
imagetagger/imagetagger/settings_base.py
jbargu/imagetagger
216ac5e73902abadc1880321e285e68c55bdfd3d
[ "MIT" ]
2
2020-09-03T09:22:18.000Z
2020-09-09T15:13:35.000Z
""" Django settings for imagetagger project. Generated by 'django-admin startproject' using Django 1.10.3. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ impor...
26.51634
99
0.709884
0
0
0
0
0
0
0
0
2,750
0.677841
c7879b591e4a17bc5cbafd6cd291d2d73183569a
23,794
py
Python
apps/project/views/issue.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
349
2020-08-04T10:21:01.000Z
2022-03-23T08:31:29.000Z
apps/project/views/issue.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
2
2021-01-07T06:17:05.000Z
2021-04-01T06:01:30.000Z
apps/project/views/issue.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
70
2020-08-24T06:46:14.000Z
2022-03-25T13:23:27.000Z
from flask import request from apps.auth.auth_require import required from apps.project.business.issue import IssueBusiness, IssueRecordBusiness, IssueDashBoardBusiness from apps.project.extentions import parse_json_form, validation, parse_list_args2 from library.api.render import json_detail_render, json_list_render2...
29.159314
114
0.504329
0
0
0
0
23,967
0.956919
0
0
19,325
0.77158
c787d4b85054cce4a273d4cda061e7e65933333a
3,351
py
Python
PhysicsTools/PythonAnalysis/python/ParticleDecayDrawer.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
PhysicsTools/PythonAnalysis/python/ParticleDecayDrawer.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
PhysicsTools/PythonAnalysis/python/ParticleDecayDrawer.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
# Benedikt Hegner, DESY # benedikt.hegner@cern.ch # # this tool is based on Luca Lista's tree drawer module class ParticleDecayDrawer(object): """Draws particle decay tree """ def __init__(self): print "Init particleDecayDrawer" # booleans: printP4 printPtEtaPhi printVertex ...
33.848485
81
0.497165
3,235
0.965383
0
0
0
0
0
0
383
0.114294
c788076445fbf7d0da81cc5cf12ab9482e59b110
357
py
Python
translator.py
liuprestin/pyninjaTUT-translator
903642ff56f573ed9c58b6f7db4e6fbb4e722c8d
[ "MIT" ]
null
null
null
translator.py
liuprestin/pyninjaTUT-translator
903642ff56f573ed9c58b6f7db4e6fbb4e722c8d
[ "MIT" ]
null
null
null
translator.py
liuprestin/pyninjaTUT-translator
903642ff56f573ed9c58b6f7db4e6fbb4e722c8d
[ "MIT" ]
null
null
null
from translate import Translator translator = Translator(to_lang="zh") try: with open('./example.md', mode='r') as in_file: text = in_file.read() with open('./example-tranlated.md', mode='w') as trans_file: trans_file.write(translator.translate(text)) except FileNotFoundError as...
27.461538
64
0.661064
0
0
0
0
0
0
0
0
70
0.196078
c788d246174ead31e98e8d4b7639bcc5eb1a1074
580
py
Python
reddit2telegram/channels/news/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
187
2016-09-20T09:15:54.000Z
2022-03-29T12:22:33.000Z
reddit2telegram/channels/news/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
84
2016-09-22T14:25:07.000Z
2022-03-19T01:26:17.000Z
reddit2telegram/channels/news/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
172
2016-09-21T15:39:39.000Z
2022-03-16T15:15:58.000Z
#encoding:utf-8 from utils import weighted_random_subreddit t_channel = '@news756' subreddit = weighted_random_subreddit({ 'politics': 0.5, 'news': 0.5 }) def send_post(submission, r2t): return r2t.send_simple(submission, text='{title}\n\n{self_text}\n\n/r/{subreddit_name}\n{short_link}', ...
27.619048
75
0.653448
0
0
0
0
0
0
0
0
302
0.52069
c78915846f029ced4be55e06e50f81dcf24cc440
21,941
py
Python
xcbgen/xtypes.py
tizenorg/framework.uifw.xorg.xcb.xcb-proto
d5ce7205c9bdd3e28d96d162617e32de1c126f8b
[ "X11" ]
1
2022-03-21T15:39:01.000Z
2022-03-21T15:39:01.000Z
targetfs/XSGX/lib/python2.6/site-packages/xcbgen/xtypes.py
jhofstee/Graphics_SDK
805bd44f347ed40699a84979bc9f3e8eb085fd9e
[ "Fair", "Unlicense" ]
null
null
null
targetfs/XSGX/lib/python2.6/site-packages/xcbgen/xtypes.py
jhofstee/Graphics_SDK
805bd44f347ed40699a84979bc9f3e8eb085fd9e
[ "Fair", "Unlicense" ]
null
null
null
''' This module contains the classes which represent XCB data types. ''' from xcbgen.expr import Field, Expression import __main__ class Type(object): ''' Abstract base class for all XCB data types. Contains default fields, and some abstract methods. ''' def __init__(self, name): ''' ...
34.661927
112
0.593182
21,160
0.964405
0
0
0
0
0
0
6,809
0.310332
c78a85d9115e200586e2ed2d790dc6b616c4151d
3,769
py
Python
BioKlustering-Website/mlmodel/parser/kmeans.py
solislemuslab/mycovirus-website
bc8d3d5f9a9472c35e40334f19e90bbf782f7a1b
[ "MIT" ]
1
2021-11-23T15:07:58.000Z
2021-11-23T15:07:58.000Z
BioKlustering-Website/mlmodel/parser/kmeans.py
solislemuslab/mycovirus-website
bc8d3d5f9a9472c35e40334f19e90bbf782f7a1b
[ "MIT" ]
2
2020-10-23T15:40:49.000Z
2020-10-28T13:21:16.000Z
BioKlustering-Website/mlmodel/parser/kmeans.py
solislemuslab/bioklustering
bc8d3d5f9a9472c35e40334f19e90bbf782f7a1b
[ "MIT" ]
2
2021-11-04T20:01:36.000Z
2021-11-23T15:13:34.000Z
# Copyright 2020 by Luke Selberg, Solis-Lemus Lab, WID. # All rights reserved. # This file is part of the BioKlustering Website. import pandas as pd from Bio import SeqIO from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.cluster import KMeans from sklearn.decomposition import PCA from sklearn.cl...
37.316832
113
0.717166
0
0
0
0
0
0
0
0
421
0.111701