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
353bb0db8607a6842f81b42d90314c743ed67327
936
py
Python
PackageGen.py
Qudix/Buffout4
4ac65dca4854dfcea860cd6f3e2f9b7cf35701c0
[ "MIT" ]
null
null
null
PackageGen.py
Qudix/Buffout4
4ac65dca4854dfcea860cd6f3e2f9b7cf35701c0
[ "MIT" ]
null
null
null
PackageGen.py
Qudix/Buffout4
4ac65dca4854dfcea860cd6f3e2f9b7cf35701c0
[ "MIT" ]
null
null
null
import os import zipfile import zlib def make_rel_archive(a_parent, a_name): archive = zipfile.ZipFile("release/" + a_name + ".zip", "w", zipfile.ZIP_DEFLATED) def do_write(a_relative): archive.write(a_parent + a_relative, a_relative) do_write("F4SE/Plugins/" + a_name + ".dll") do_write("F4SE/Plugins/" + a_name...
29.25
92
0.701923
0
0
0
0
0
0
0
0
184
0.196581
353cbfa860da0589e9ef54e5529ecb9742d22ebd
8,246
py
Python
scripts/extract-traj.py
KeithLabPitt/scripts
a6631736ea2fbcd5ef85d93d793602f746f7277d
[ "MIT" ]
null
null
null
scripts/extract-traj.py
KeithLabPitt/scripts
a6631736ea2fbcd5ef85d93d793602f746f7277d
[ "MIT" ]
null
null
null
scripts/extract-traj.py
KeithLabPitt/scripts
a6631736ea2fbcd5ef85d93d793602f746f7277d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020, Alex M. Maldonado # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the right...
35.69697
82
0.576643
0
0
0
0
0
0
0
0
4,601
0.557967
353d49fb2aa341e74610eef072c9aede1a4b9a62
3,553
py
Python
examples/M4_competition/evaluate_prophet.py
LeoTafti/darts
210605fafb730de564e3d723ab3919ed94da42b9
[ "Apache-2.0" ]
1
2021-07-15T11:12:05.000Z
2021-07-15T11:12:05.000Z
examples/M4_competition/evaluate_prophet.py
LeoTafti/darts
210605fafb730de564e3d723ab3919ed94da42b9
[ "Apache-2.0" ]
1
2021-02-02T11:22:36.000Z
2021-02-02T11:22:36.000Z
examples/M4_competition/evaluate_prophet.py
LeoTafti/darts
210605fafb730de564e3d723ab3919ed94da42b9
[ "Apache-2.0" ]
null
null
null
"""Evaluating Prophet model on M4 timeseries """ from darts.models import Prophet from darts.utils.statistics import check_seasonality from darts.utils import _build_tqdm_iterator import numpy as np import pandas as pd import pickle as pkl from M4_metrics import owa_m4, mase_m4, smape_m4 if __name__ == "__main__"...
41.313953
97
0.504363
0
0
0
0
0
0
0
0
609
0.171404
353d634a1acddc64d1cd7c68b17cf48d708bb09b
1,100
py
Python
preprocess/step4/count.py
moore3930/dependency-based-w2v
03edc3e89c4af939a1eae50abc395e5dc53f886c
[ "MIT" ]
11
2017-12-28T12:00:37.000Z
2022-01-18T05:45:12.000Z
preprocess/step4/count.py
njirene/dependency-based-w2v
0b55147e32a856759f7922e1690771c316c5b8e7
[ "MIT" ]
3
2018-07-29T13:42:53.000Z
2018-11-22T07:33:07.000Z
preprocess/step4/count.py
njirene/dependency-based-w2v
0b55147e32a856759f7922e1690771c316c5b8e7
[ "MIT" ]
2
2019-07-27T05:10:22.000Z
2019-10-03T11:33:37.000Z
import codecs import sys import argparse parser = argparse.ArgumentParser(description='manual to this script') parser.add_argument('--file', type=str, default = None) parser.add_argument('--quantity', type=int, default=5785) args = parser.parse_args() output = codecs.open('weightcn.txt', 'w', 'utf-8') dic = {} i = 0 f...
27.5
69
0.516364
0
0
0
0
0
0
0
0
93
0.084545
353e4f8031534b9754c44cd582947dcb265760b5
16,619
py
Python
pyannote/audio/applications/pyannote_audio.py
kan-cloud/pyannote-audio
5bcc57782849ecfc746e0404e480c262410b38cd
[ "MIT" ]
1
2020-12-01T07:03:01.000Z
2020-12-01T07:03:01.000Z
pyannote/audio/applications/pyannote_audio.py
kan-cloud/pyannote-audio
5bcc57782849ecfc746e0404e480c262410b38cd
[ "MIT" ]
null
null
null
pyannote/audio/applications/pyannote_audio.py
kan-cloud/pyannote-audio
5bcc57782849ecfc746e0404e480c262410b38cd
[ "MIT" ]
5
2020-06-06T23:56:06.000Z
2022-02-21T10:43:10.000Z
#!/usr/bin/env python # encoding: utf-8 # The MIT License (MIT) # Copyright (c) 2019-2020 CNRS # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limita...
37.599548
103
0.609363
0
0
0
0
0
0
0
0
12,408
0.74657
353e538978effe724514576a6a13f995049887e9
1,352
py
Python
convert_data_to_tfrecords.py
richiesui/Deep-Association-Learning
70157b79f6ffb73aa7115e2a5a641c0cc09dd550
[ "MIT" ]
70
2018-08-23T01:54:37.000Z
2021-09-11T12:54:35.000Z
convert_data_to_tfrecords.py
richiesui/Deep-Association-Learning
70157b79f6ffb73aa7115e2a5a641c0cc09dd550
[ "MIT" ]
1
2019-01-20T14:58:46.000Z
2019-01-21T08:12:36.000Z
convert_data_to_tfrecords.py
yanbeic/Deep-Association-Learning
70157b79f6ffb73aa7115e2a5a641c0cc09dd550
[ "MIT" ]
32
2018-08-24T09:32:38.000Z
2022-02-05T05:59:50.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf import os from datasets import convert_data FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_string('data_type', None, 'The type of the dataset to convert, ne...
34.666667
102
0.638314
0
0
0
0
0
0
0
0
406
0.300296
353e59f2bd97a83046f221148d98e2324a9d87dd
1,933
py
Python
vispy/geometry/tests/test_generation.py
chongxi/vispy
3683ea1f58e43b4aa1b32a3e69656bead8a31e99
[ "BSD-3-Clause" ]
3
2018-05-09T17:55:53.000Z
2019-07-22T09:14:41.000Z
vispy/geometry/tests/test_generation.py
chongxi/vispy
3683ea1f58e43b4aa1b32a3e69656bead8a31e99
[ "BSD-3-Clause" ]
9
2017-04-07T01:44:15.000Z
2018-12-16T20:47:08.000Z
graphViz/vispy/geometry/tests/test_generation.py
onecklam/ethereum-graphviz
6993accf0cb85e23013bf7ae6b04145724a6dbd2
[ "Apache-2.0" ]
1
2021-09-15T08:52:26.000Z
2021-09-15T08:52:26.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. import numpy as np from numpy.testing import assert_array_equal, assert_allclose from vispy.testing import run_tests_if_main from vispy.geometry import (create_box, create_cub...
35.796296
76
0.689602
0
0
0
0
0
0
0
0
288
0.148991
353f5e1b21c175277d0414b42c4543aa99713967
3,990
py
Python
bico/utils/BICONode.py
gallmerci/bico
b87cee155f64d40118817e888fd783084f04b013
[ "MIT" ]
39
2017-01-02T01:02:58.000Z
2022-02-22T13:58:14.000Z
bico/utils/BICONode.py
gallmerci/bico
b87cee155f64d40118817e888fd783084f04b013
[ "MIT" ]
2
2017-01-06T18:40:42.000Z
2017-01-12T21:49:46.000Z
bico/utils/BICONode.py
gallmerci/bico
b87cee155f64d40118817e888fd783084f04b013
[ "MIT" ]
10
2017-01-02T17:52:02.000Z
2022-02-22T14:07:24.000Z
import logging import numpy as np from bico.geometry.point import Point from bico.nearest_neighbor.base import NearestNeighbor from bico.utils.ClusteringFeature import ClusteringFeature from datetime import datetime from typing import Callable, TextIO, List logger = logging.getLogger(__name__) class BICONode: de...
42.903226
114
0.582206
3,691
0.925063
0
0
0
0
0
0
508
0.127318
354187da39692ce916dbf65d6fc9ecbdceb76905
239
py
Python
pythonScript.py
qinenergy/QinBox
9047d1fc6b7f1796820f13aabc1d7fe20cf8f34d
[ "MIT" ]
null
null
null
pythonScript.py
qinenergy/QinBox
9047d1fc6b7f1796820f13aabc1d7fe20cf8f34d
[ "MIT" ]
null
null
null
pythonScript.py
qinenergy/QinBox
9047d1fc6b7f1796820f13aabc1d7fe20cf8f34d
[ "MIT" ]
null
null
null
""" Lite install NLTK resource """ import nltk dler = nltk.downloader.Downloader() dler._update_index() dler._status_cache['panlex_lite'] = 'installed' # Trick the index to treat panlex_lite as it's already installed. dler.download('all')
26.555556
113
0.761506
0
0
0
0
0
0
0
0
128
0.535565
3542ab8dbb20886a361a27ff5789ccca3ada3441
1,224
py
Python
py2450/misc.py
sveinrou/py2450
195a649efd282b15b60ee0e3184d096afce5e311
[ "MIT" ]
null
null
null
py2450/misc.py
sveinrou/py2450
195a649efd282b15b60ee0e3184d096afce5e311
[ "MIT" ]
null
null
null
py2450/misc.py
sveinrou/py2450
195a649efd282b15b60ee0e3184d096afce5e311
[ "MIT" ]
null
null
null
import pyvisa def find_instruments(): rm = pyvisa.ResourceManager() instruments = rm.list_resources() return {'usb':[i for i in instruments if 'USB' in i], 'gpib':[i for i in instruments if 'GPIB' in i], 'serial':[i for i in instruments if 'ASRL' in i]} def play_star_wars(smu): ...
22.666667
114
0.377451
0
0
0
0
0
0
0
0
83
0.06781
3543867a3c8172578aa9304ce724339a82b0436c
5,406
py
Python
LinkedList/test XOR.py
ikaushikpal/DS-450-python
9466f77fb9db9e6a5bb3f20aa89ba6332f49e848
[ "MIT" ]
3
2021-06-28T12:04:19.000Z
2021-09-07T07:23:41.000Z
LinkedList/test XOR.py
SupriyoDam/DS-450-python
5dc21ce61b3279e9bd9d6ef3ad236667227ca283
[ "MIT" ]
null
null
null
LinkedList/test XOR.py
SupriyoDam/DS-450-python
5dc21ce61b3279e9bd9d6ef3ad236667227ca283
[ "MIT" ]
1
2021-06-28T15:42:55.000Z
2021-06-28T15:42:55.000Z
# import required module import ctypes # create node class class Node: def __init__(self, value): self.value = value self.npx = 0 # create linked list class class XorLinkedList: # constructor def __init__(self): self.head = None self.tail = None self.__nodes = [] # method to insert no...
24.026667
81
0.63744
4,304
0.796152
0
0
0
0
0
0
2,056
0.380318
3544ad58108f77d2815d664fdbba023d8958f9ac
354
py
Python
opticmedian/utils/file_reader.py
QuicqDev/OpticRescue
f857e3b770f43958f1d687f164ea896aa5390482
[ "MIT" ]
2
2021-08-09T01:35:06.000Z
2021-08-09T01:37:05.000Z
opticmedian/utils/file_reader.py
QuicqDev/OpticRescue
f857e3b770f43958f1d687f164ea896aa5390482
[ "MIT" ]
8
2021-08-07T15:27:48.000Z
2021-09-05T18:24:29.000Z
opticmedian/utils/file_reader.py
ASH1998/OpticRescue
f857e3b770f43958f1d687f164ea896aa5390482
[ "MIT" ]
1
2021-08-09T01:37:23.000Z
2021-08-09T01:37:23.000Z
""" class to read files in specific ways """ import glob import random class Filer: """ read files """ def __init__(self, file_path): self.path = file_path def get_random_iter(self): """ get file contents in random """ nb_files = sum(1 for _ in glob.iglob(self.path)) file_iter = glob.glob(self.path...
13.615385
50
0.677966
278
0.785311
0
0
0
0
0
0
103
0.29096
35459007a7ac1087649915a526d0359cf8ca1114
6,335
py
Python
pypiv/velofilter.py
jr7/pypiv
e43f33a905434f57cc7a7d448a63cdab10f4a8e6
[ "BSD-3-Clause" ]
7
2017-04-01T11:13:58.000Z
2020-06-11T19:42:11.000Z
pypiv/velofilter.py
jruebsam/pypiv
e43f33a905434f57cc7a7d448a63cdab10f4a8e6
[ "BSD-3-Clause" ]
2
2019-11-18T17:42:11.000Z
2019-11-26T14:55:41.000Z
pypiv/velofilter.py
jruebsam/pypiv
e43f33a905434f57cc7a7d448a63cdab10f4a8e6
[ "BSD-3-Clause" ]
2
2017-03-21T10:37:06.000Z
2020-06-22T13:29:57.000Z
import numpy as np from scipy.stats import linregress as li from math import exp def calc_factor(field,stepsize=0.01): """ Function for calculation of the summed binning. The returned result is an integral over the binning of the velocities. It is done for the negative and positive half separately. ...
35.391061
100
0.63015
0
0
0
0
0
0
0
0
1,881
0.296922
354591beed6d1616f9cdab23d48fdf510319c266
4,347
py
Python
lib/floppy.py
FlorianPoot/Floppy
1b62e5ffce7c45ab82ced3b17172a37431b5c395
[ "MIT" ]
null
null
null
lib/floppy.py
FlorianPoot/Floppy
1b62e5ffce7c45ab82ced3b17172a37431b5c395
[ "MIT" ]
null
null
null
lib/floppy.py
FlorianPoot/Floppy
1b62e5ffce7c45ab82ced3b17172a37431b5c395
[ "MIT" ]
null
null
null
from machine import Pin, UART from grip import Grip import time class Floppy: AXIS_POS_LIMIT = (0, 5, 5) AXIS_NEG_LIMIT = (-7.5, 0, -5) def __init__(self): # region Attributes self._speed = 20 self._buffer = 0 self._pos_tracker = [0.0, 0.0, 0.0] # endregion ...
25.273256
106
0.501035
4,259
0.979756
0
0
287
0.066023
0
0
537
0.123533
35468d2fd3afa4235fa24ef45b8d2a4fc954d35d
891
py
Python
WeatherStationSensorsReader/controllers/wind_measurement_controller.py
weather-station-project/weather-station-sensors-reader
cda7902ee382248b41d14b9a2c0543817decbb4a
[ "MIT" ]
null
null
null
WeatherStationSensorsReader/controllers/wind_measurement_controller.py
weather-station-project/weather-station-sensors-reader
cda7902ee382248b41d14b9a2c0543817decbb4a
[ "MIT" ]
null
null
null
WeatherStationSensorsReader/controllers/wind_measurement_controller.py
weather-station-project/weather-station-sensors-reader
cda7902ee382248b41d14b9a2c0543817decbb4a
[ "MIT" ]
null
null
null
from controllers.controller import Controller from dao.wind_measurement_dao import WindMeasurementDao from sensors.wind_measurement_sensor import WindMeasurementSensor class WindMeasurementController(Controller): """ Represents the controller with the wind measurement sensor and DAO """ def __init__(self, an...
59.4
132
0.560045
720
0.808081
0
0
0
0
0
0
74
0.083053
3546d98d4dfa60c74b37af1f19933322143ce069
750
py
Python
Alignment/CommonAlignmentProducer/python/ALCARECOTkAlMinBias_Output_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Alignment/CommonAlignmentProducer/python/ALCARECOTkAlMinBias_Output_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Alignment/CommonAlignmentProducer/python/ALCARECOTkAlMinBias_Output_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # AlCaReco for track based alignment using MinBias events OutALCARECOTkAlMinBias_noDrop = cms.PSet( SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('pathALCARECOTkAlMinBias') ), outputCommands = cms.untracked.vstring( 'keep *_ALCARECOTk...
35.714286
69
0.729333
0
0
0
0
0
0
0
0
332
0.442667
3547f355d42e86cac54a2fa19887cfc08f3e0eb5
984
py
Python
dashboard/migrations/0005_usercacherefreshtime.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
32
2016-03-25T01:03:13.000Z
2022-01-15T19:35:42.000Z
dashboard/migrations/0005_usercacherefreshtime.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
4,858
2016-03-03T13:48:30.000Z
2022-03-29T22:09:51.000Z
dashboard/migrations/0005_usercacherefreshtime.py
umarmughal824/micromasters
ea92d3bcea9be4601150fc497302ddacc1161622
[ "BSD-3-Clause" ]
20
2016-08-18T22:07:44.000Z
2021-11-15T13:35:35.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2016-11-04 21:12 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
33.931034
118
0.644309
760
0.772358
0
0
0
0
0
0
181
0.183943
35481960fa84aa0d7d74f4ec46b633eb060d28fb
1,282
py
Python
easy/836-Rectangle Overlap.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
2
2020-05-08T02:17:17.000Z
2020-05-17T04:55:56.000Z
easy/836-Rectangle Overlap.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
easy/836-Rectangle Overlap.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
""" https://leetcode.com/problems/rectangle-overlap/ A rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) are the coordinates of its bottom-left corner, and (x2, y2) are the coordinates of its top-right corner. Two rectangles overlap if the area of their intersection is positive. To be clear, two rec...
35.611111
174
0.675507
474
0.369735
0
0
0
0
0
0
925
0.721529
35481fe584384c36a89d37bc77fef6fadfaeafc5
69
py
Python
src/vaccinebot_token.py
DPS0340/vaccine-dispenser
d43f2313de26a5e0a6d15621ffda3d9c505a664c
[ "MIT" ]
2
2021-08-07T17:28:49.000Z
2021-08-08T05:40:06.000Z
src/vaccinebot_token.py
DPS0340/vaccine-dispenser
d43f2313de26a5e0a6d15621ffda3d9c505a664c
[ "MIT" ]
null
null
null
src/vaccinebot_token.py
DPS0340/vaccine-dispenser
d43f2313de26a5e0a6d15621ffda3d9c505a664c
[ "MIT" ]
null
null
null
import os def get_token(): return os.environ['VACCINEBOT_TOKEN']
17.25
41
0.73913
0
0
0
0
0
0
0
0
18
0.26087
35489b42960c3642fb09f7d87e33db297be3e58b
2,651
py
Python
fluiddb/scripts/testing.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
3
2021-05-10T14:41:30.000Z
2021-12-16T05:53:30.000Z
fluiddb/scripts/testing.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
null
null
null
fluiddb/scripts/testing.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
2
2018-01-24T09:03:21.000Z
2021-06-25T08:34:54.000Z
import logging from fluiddb.data.store import getMainStore from fluiddb.exceptions import FeatureError from fluiddb.model.namespace import NamespaceAPI from fluiddb.model.tag import TagAPI from fluiddb.model.user import UserAPI, getUser TESTING_DATA = { u'users': [ u'testuser1', u'testuser2'], ...
33.987179
78
0.629951
0
0
0
0
0
0
0
0
1,056
0.39834
3548f9938f3a5d5177badd45e2cdec5c57b3903f
6,752
py
Python
prediction/main_ml.py
Anukriti12/OptumStratethon2.0
b66dba07735bfa47d99e9907eb8bccdd3b77075c
[ "MIT" ]
1
2021-03-04T05:49:01.000Z
2021-03-04T05:49:01.000Z
prediction/main_ml.py
ankitpriyarup/optum_carewheel
f6c66f293b2980501e8bca8ab7e26ebd3b26cdd1
[ "Apache-2.0" ]
null
null
null
prediction/main_ml.py
ankitpriyarup/optum_carewheel
f6c66f293b2980501e8bca8ab7e26ebd3b26cdd1
[ "Apache-2.0" ]
1
2020-09-13T11:50:49.000Z
2020-09-13T11:50:49.000Z
import urllib3 import pandas as pd import numpy as np import zipfile import copy import pickle import os from esig import tosig from tqdm import tqdm from multiprocessing import Pool from functools import partial from os import listdir from os.path import isfile, join from sklearn.ensemble import RandomForestClassifier...
26.687747
109
0.618928
0
0
0
0
0
0
0
0
862
0.127666
3549ef84efc1cdf33ac92611c87fc798eee128a4
7,254
py
Python
NeuralNetworkRef/create_pics.py
cmt-qo/cm-flakes
c11f37b50b088cf5c876ef8a6161b7d8d775e99b
[ "MIT" ]
6
2019-11-04T07:04:24.000Z
2021-02-10T21:35:00.000Z
NeuralNetworkRef/create_pics.py
cmt-qo/cm-flakes
c11f37b50b088cf5c876ef8a6161b7d8d775e99b
[ "MIT" ]
null
null
null
NeuralNetworkRef/create_pics.py
cmt-qo/cm-flakes
c11f37b50b088cf5c876ef8a6161b7d8d775e99b
[ "MIT" ]
2
2020-08-07T09:29:41.000Z
2021-02-10T21:35:05.000Z
#------------------------------------------------------------------------------- # Filename: create_pics.py # Description: creates square pictures out of a picture which is mostly empty # for training a neural network later. # The parameters to fool around with include: # factor: scaled down image for faster imag...
38.178947
104
0.553763
0
0
0
0
0
0
0
0
2,372
0.326992
354a546386259b039381e2eef2517c0b0f0d4c22
150
py
Python
pyomt5/api/__init__.py
paulorodriguesxv/pyomt5
9287395f9f72b049c945e625e3b75c491ae50407
[ "MIT" ]
8
2019-09-06T02:44:04.000Z
2021-07-08T04:10:11.000Z
pyomt5/api/__init__.py
dausech/pyomt5
691dbf7b9732728425e57a7b9055d971838c5c4d
[ "MIT" ]
null
null
null
pyomt5/api/__init__.py
dausech/pyomt5
691dbf7b9732728425e57a7b9055d971838c5c4d
[ "MIT" ]
2
2019-09-10T16:41:16.000Z
2020-10-14T13:49:33.000Z
from .metatradercom import (MetatraderCom, ConnectionTimeoutError, DataNotFoundError) from .timeframe import MT5TimeFrame
37.5
66
0.706667
0
0
0
0
0
0
0
0
0
0
101e55aaa1d141b7b14f9e29fcdf1c97452cd043
2,600
py
Python
driverapp/models.py
gabyxbinnaeah/Bus-Booking
51d2a521f890986e4e7e17775708cec3cd71d2b4
[ "MIT" ]
null
null
null
driverapp/models.py
gabyxbinnaeah/Bus-Booking
51d2a521f890986e4e7e17775708cec3cd71d2b4
[ "MIT" ]
null
null
null
driverapp/models.py
gabyxbinnaeah/Bus-Booking
51d2a521f890986e4e7e17775708cec3cd71d2b4
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here. class Driver(models.Model): name = models.CharField(max_length=30) password = models.CharField(max_length=30) email = models.EmailField() Contact = models.CharField(max_length=10) def s...
29.545455
102
0.682308
2,472
0.950769
0
0
369
0.141923
0
0
59
0.022692
101ea49bb93a3f7ed00d033876886b5bfdafa971
1,870
py
Python
tests/helper.py
MSLNZ/MSL-IO
0b7a1f6ddacc936a98f134fd67f209840a500030
[ "MIT" ]
6
2021-06-27T00:26:09.000Z
2022-02-11T06:04:23.000Z
tests/helper.py
MSLNZ/MSL-IO
0b7a1f6ddacc936a98f134fd67f209840a500030
[ "MIT" ]
null
null
null
tests/helper.py
MSLNZ/MSL-IO
0b7a1f6ddacc936a98f134fd67f209840a500030
[ "MIT" ]
1
2018-03-01T03:11:00.000Z
2018-03-01T03:11:00.000Z
""" Helper functions for the tests """ import os import numpy as np from msl.io import read def read_sample(filename, **kwargs): """Read a file in the 'samples' directory. Parameters ---------- filename : str The name of the file in the samples/ directory Returns ------- A root...
27.5
87
0.617647
0
0
0
0
0
0
0
0
433
0.231551
101f9a1a4f2942de9319c207e8d75011f9f74070
1,019
py
Python
imagepy/tools/Draw/floodfill_tol.py
adines/imagepy
d7cdf3273d25e06046626ef2ef9200b1846ea49a
[ "BSD-4-Clause" ]
1
2019-02-22T03:09:24.000Z
2019-02-22T03:09:24.000Z
imagepy/tools/Draw/floodfill_tol.py
adines/imagepy
d7cdf3273d25e06046626ef2ef9200b1846ea49a
[ "BSD-4-Clause" ]
null
null
null
imagepy/tools/Draw/floodfill_tol.py
adines/imagepy
d7cdf3273d25e06046626ef2ef9200b1846ea49a
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 19 17:35:09 2016 @author: yxl """ from imagepy.core.engine import Tool import numpy as np from imagepy.core.manager import ColorManager from imagepy.core.draw.fill import floodfill class Plugin(Tool): title = 'Flood Fill' para = {'tor':10, 'con':'8-connect'} ...
26.815789
87
0.557409
786
0.771344
0
0
0
0
0
0
223
0.218842
10204734fd1c1eef0317965dd5d5dbfb049ba8d9
953
py
Python
authors/apps/articles/signals.py
andela/ah-backend-summer
f842a3e02f8418f123dc5de36809ad67557b1c1d
[ "BSD-3-Clause" ]
1
2019-03-11T12:45:24.000Z
2019-03-11T12:45:24.000Z
authors/apps/articles/signals.py
andela/ah-backend-summer
f842a3e02f8418f123dc5de36809ad67557b1c1d
[ "BSD-3-Clause" ]
53
2019-01-29T08:02:23.000Z
2022-03-11T23:39:37.000Z
authors/apps/articles/signals.py
andela/ah-backend-summer
f842a3e02f8418f123dc5de36809ad67557b1c1d
[ "BSD-3-Clause" ]
5
2019-10-04T07:02:38.000Z
2020-06-11T12:39:22.000Z
"""Signal dispatchers and handlers for the articles module""" from django.db.models.signals import post_save from django.dispatch import receiver, Signal from authors.apps.articles.models import Article # our custom signal that will be sent when a new article is published # we could have stuck to using the post_save ...
36.653846
75
0.736621
36
0.037775
0
0
367
0.3851
0
0
474
0.497377
1021bc2651a4687c5f86fe5d2e96514c84207cfb
4,923
py
Python
benchmarks/roberta/benchmark_tft.py
legacyai/tf-transformers
65a5f9a4bcb3236483daa598a37b91673f56cb97
[ "Apache-2.0" ]
116
2021-03-15T09:48:41.000Z
2022-03-24T05:15:51.000Z
benchmarks/roberta/benchmark_tft.py
legacyai/tf-transformers
65a5f9a4bcb3236483daa598a37b91673f56cb97
[ "Apache-2.0" ]
4
2021-03-20T11:20:57.000Z
2022-01-05T04:59:07.000Z
benchmarks/roberta/benchmark_tft.py
legacyai/tf-transformers
65a5f9a4bcb3236483daa598a37b91673f56cb97
[ "Apache-2.0" ]
9
2021-03-17T04:14:48.000Z
2021-09-13T07:15:31.000Z
"""TFTBechmark scripts""" import shutil import tempfile import time import tensorflow as tf import tqdm from datasets import load_dataset from transformers import RobertaTokenizerFast from tf_transformers.models import Classification_Model from tf_transformers.models import RobertaModel as Model _ALLOWED_DECODER_TYP...
31.967532
114
0.655495
4,564
0.927077
0
0
0
0
0
0
882
0.179159
102307b53d88ad118e69555cc2a3d59eca3bcc56
393
py
Python
Linear Structures/LinkedList/Single Linkedlist/LinkedList Traversal.py
Ash515/PyDataStructures
e8bd4f8866a85482f43a7db11c0db40f1c1151bc
[ "MIT" ]
7
2020-11-24T12:27:11.000Z
2021-09-28T14:51:35.000Z
Linear Structures/LinkedList/Single Linkedlist/LinkedList Traversal.py
Ash515/PyDataStructures
e8bd4f8866a85482f43a7db11c0db40f1c1151bc
[ "MIT" ]
null
null
null
Linear Structures/LinkedList/Single Linkedlist/LinkedList Traversal.py
Ash515/PyDataStructures
e8bd4f8866a85482f43a7db11c0db40f1c1151bc
[ "MIT" ]
null
null
null
class Node(): def __init__(self,data): self.data=data self.ref=None class LinkedList(): def __init__(self): self.head=None def Print_ll(self): n=self.head if n is None: print("LinkedList is empty") else: while n is not None: ...
21.833333
40
0.519084
361
0.918575
0
0
0
0
0
0
21
0.053435
10241faf582974a58757a74fbc6ec5ed03a8cff3
170
py
Python
devlivery/ext/migrate/__init__.py
wlsouza/flasklivery
564c6135d29493ae5efe074488cb0df7f811d889
[ "Unlicense" ]
null
null
null
devlivery/ext/migrate/__init__.py
wlsouza/flasklivery
564c6135d29493ae5efe074488cb0df7f811d889
[ "Unlicense" ]
null
null
null
devlivery/ext/migrate/__init__.py
wlsouza/flasklivery
564c6135d29493ae5efe074488cb0df7f811d889
[ "Unlicense" ]
null
null
null
from flask import Flask from flask_migrate import Migrate from devlivery.ext.db import db migrate = Migrate() def init_app(app: Flask): migrate.init_app(app, db)
15.454545
33
0.758824
0
0
0
0
0
0
0
0
0
0
1024a19ea737a54eb4b1646afd282457a464d5aa
1,027
py
Python
src/query_planner/storage_plan.py
alilakda/Eva
e3d447f81e1e47172e21758c059ad6f5ee21ffa4
[ "Apache-2.0" ]
null
null
null
src/query_planner/storage_plan.py
alilakda/Eva
e3d447f81e1e47172e21758c059ad6f5ee21ffa4
[ "Apache-2.0" ]
null
null
null
src/query_planner/storage_plan.py
alilakda/Eva
e3d447f81e1e47172e21758c059ad6f5ee21ffa4
[ "Apache-2.0" ]
1
2020-02-19T02:11:39.000Z
2020-02-19T02:11:39.000Z
from src.models.catalog.video_info import VideoMetaInfo from src.query_planner.abstract_plan import AbstractPlan from src.query_planner.types import PlanNodeType class StoragePlan(AbstractPlan): """ This is the plan used for retrieving the frames from the storage and and returning to the higher levels. ...
25.675
78
0.665044
862
0.839338
0
0
309
0.300876
0
0
124
0.12074
1025728984eda2735c08a9884289c0228f56f366
34
py
Python
env/lib/python3.6/base64.py
xianjunzhengbackup/Cloud-Native-Python
0b74303b444a74210bc2e95f13d17771f6f71583
[ "MIT" ]
2
2020-09-22T14:38:24.000Z
2020-10-30T03:11:36.000Z
SDK/Example/Linkage_demo/work_with_AlwaysAI/pedestrian_tracking_demo/venv/lib/python3.6/base64.py
EyecloudAi/OpenNCC-SDK
efeebfe385a900280de6f46d80bd6fff0416aba3
[ "Apache-2.0" ]
null
null
null
SDK/Example/Linkage_demo/work_with_AlwaysAI/pedestrian_tracking_demo/venv/lib/python3.6/base64.py
EyecloudAi/OpenNCC-SDK
efeebfe385a900280de6f46d80bd6fff0416aba3
[ "Apache-2.0" ]
1
2019-11-21T12:23:41.000Z
2019-11-21T12:23:41.000Z
/usr/local/lib/python3.6/base64.py
34
34
0.794118
0
0
0
0
0
0
0
0
0
0
10284f0ef7e85d673663fac1fed0f6fb76403071
2,802
py
Python
python-scripts/3nPlus1.py
leo237/scripts
6e530ba4afd89a9747e62f1bd63eb2310791091c
[ "MIT" ]
null
null
null
python-scripts/3nPlus1.py
leo237/scripts
6e530ba4afd89a9747e62f1bd63eb2310791091c
[ "MIT" ]
null
null
null
python-scripts/3nPlus1.py
leo237/scripts
6e530ba4afd89a9747e62f1bd63eb2310791091c
[ "MIT" ]
null
null
null
import logging import matplotlib.pyplot as plt import argparse from typing import List from enum import Enum from enum import Enum class Constants: class PlotType(Enum): HAILSTONE = 'HAILSTONE' PEAK = 'PEAK' STOPPING_TIMES = 'STOPPING_TIMES' class Stats: def __init__(self, num : int, total_stopping_time : int...
23.35
147
0.692363
341
0.121699
0
0
0
0
0
0
445
0.158815
102bacad1f71192a75efa312e5576727d5d197a4
2,894
py
Python
test/functional/tests/initialize/test_clean_reboot.py
Ostrokrzew/open-cas-linux
35eb5682c9aae13ee7b44da5acc2dd0b593a0b10
[ "BSD-3-Clause-Clear" ]
139
2019-03-29T08:01:40.000Z
2022-03-19T01:01:44.000Z
test/functional/tests/initialize/test_clean_reboot.py
Ostrokrzew/open-cas-linux
35eb5682c9aae13ee7b44da5acc2dd0b593a0b10
[ "BSD-3-Clause-Clear" ]
604
2019-04-12T14:18:59.000Z
2022-03-31T18:19:56.000Z
test/functional/tests/initialize/test_clean_reboot.py
Ostrokrzew/open-cas-linux
35eb5682c9aae13ee7b44da5acc2dd0b593a0b10
[ "BSD-3-Clause-Clear" ]
64
2019-03-29T08:44:01.000Z
2022-03-30T09:11:30.000Z
# # Copyright(c) 2020-2021 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause-Clear # import os import pytest from api.cas import casadm from api.cas.cache_config import CacheMode from core.test_run import TestRun from storage_devices.disk import DiskTypeSet, DiskType, DiskTypeLowerThan from test_tools.dd impo...
36.175
87
0.685211
0
0
0
0
2,343
0.809606
0
0
737
0.254665
102d40488d0cca4d36fca9f9b896d9f118df7173
393
py
Python
4/state/ResultState.py
ytyaru/Pygame.GameState.201707251432
c2a67c9f0c6ff9ee5c495be02d8c775b897f16d2
[ "CC0-1.0" ]
null
null
null
4/state/ResultState.py
ytyaru/Pygame.GameState.201707251432
c2a67c9f0c6ff9ee5c495be02d8c775b897f16d2
[ "CC0-1.0" ]
null
null
null
4/state/ResultState.py
ytyaru/Pygame.GameState.201707251432
c2a67c9f0c6ff9ee5c495be02d8c775b897f16d2
[ "CC0-1.0" ]
null
null
null
import pygame from pygame.locals import * from .GameState import GameState class ResultState(GameState): def __init__(self, stateSwitcher): super().__init__(stateSwitcher) def Event(self, event): if event.type == KEYDOWN: if event.key == K_RETURN or event.key == K_SPACE or event.key == K_z:...
35.727273
102
0.692112
316
0.804071
0
0
0
0
0
0
0
0
102e04336b537dbf112a2ddd7fae2de699b6b707
7,093
py
Python
bindgen.py
fitzgen/wasmtime-py
02a2af5e012a44af77690d59fd97df4d3caba962
[ "Apache-2.0" ]
null
null
null
bindgen.py
fitzgen/wasmtime-py
02a2af5e012a44af77690d59fd97df4d3caba962
[ "Apache-2.0" ]
null
null
null
bindgen.py
fitzgen/wasmtime-py
02a2af5e012a44af77690d59fd97df4d3caba962
[ "Apache-2.0" ]
null
null
null
# type: ignore # This is a small script to parse the header files from wasmtime and generate # appropriate function definitions in Python for each exported function. This # also reflects types into Python with `ctypes`. While there's at least one # other generate that does this already it seemed to not quite fit our p...
34.100962
93
0.549556
3,690
0.520231
0
0
0
0
0
0
2,201
0.310306
102e1e5c55ff01d3808c58b77752bddaea6f8b94
1,115
py
Python
Chapter38.ManagedAttributes/3-desc-state-inst.py
mindnhand/Learning-Python-5th
3dc1b28d6e048d512bf851de6c7f6445edfe7b84
[ "MIT" ]
null
null
null
Chapter38.ManagedAttributes/3-desc-state-inst.py
mindnhand/Learning-Python-5th
3dc1b28d6e048d512bf851de6c7f6445edfe7b84
[ "MIT" ]
null
null
null
Chapter38.ManagedAttributes/3-desc-state-inst.py
mindnhand/Learning-Python-5th
3dc1b28d6e048d512bf851de6c7f6445edfe7b84
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #encoding=utf-8 #------------------------------------------------ # Usage: python3 3-desc-state-inst.py # Description: descriptor for attribute intercept #------------------------------------------------ class InstState: # Using instance state, (object) in 2.X def __get__(self, inst...
28.589744
63
0.556951
488
0.437668
0
0
0
0
0
0
542
0.486099
102f51bc17643b398143c26098d6f0bd199096fd
342
py
Python
src/property_app/app_info.py
almostprod/property-app
2e9dc6c64e7fd91d287fc95e513fa3ab1079fa54
[ "Apache-2.0" ]
2
2020-03-03T16:52:31.000Z
2020-03-17T21:35:30.000Z
src/property_app/app_info.py
amcclosky/property-app
9afb0210739955ff19bfcb477acdbd07521ce851
[ "Apache-2.0" ]
1
2021-05-11T16:54:56.000Z
2021-05-11T16:54:56.000Z
src/property_app/app_info.py
amcclosky/property-app
9afb0210739955ff19bfcb477acdbd07521ce851
[ "Apache-2.0" ]
1
2020-05-04T06:39:35.000Z
2020-05-04T06:39:35.000Z
import time from dataclasses import dataclass from datetime import date, datetime from property_app.config import get_config config = get_config() @dataclass class AppInfo: project: str = config.ASGI_APP commit_hash: str = config.APP_BUILD_HASH build_date: date = datetime.today() build_epoch_sec: i...
20.117647
44
0.75731
179
0.523392
0
0
190
0.555556
0
0
0
0
1030df14c1adf08ce6691dd030b83b86e5a978e4
133
py
Python
services/explorer/config/gunicorn/config.py
cheperuiz/elasticskill
41d9e72a59468ee2676538a584448d16d59a7c51
[ "MIT" ]
null
null
null
services/explorer/config/gunicorn/config.py
cheperuiz/elasticskill
41d9e72a59468ee2676538a584448d16d59a7c51
[ "MIT" ]
2
2020-09-11T15:10:35.000Z
2022-01-22T10:29:45.000Z
services/explorer/config/gunicorn/config.py
cheperuiz/elasticskill
41d9e72a59468ee2676538a584448d16d59a7c51
[ "MIT" ]
null
null
null
bind = "0.0.0.0:5000" backlog = 2048 workers = 1 worker_class = "sync" threads = 16 spew = False reload = True loglevel = "debug"
11.083333
21
0.661654
0
0
0
0
0
0
0
0
27
0.203008
103175058f2fa208dcde4dafb16a9cb6d6a48a58
723
py
Python
Boot2Root/hackthebox/Tenten/files/exploit.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
21
2016-02-06T14:30:01.000Z
2020-09-11T05:39:17.000Z
Boot2Root/hackthebox/Tenten/files/exploit.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
null
null
null
Boot2Root/hackthebox/Tenten/files/exploit.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
7
2017-02-02T16:27:02.000Z
2021-04-30T17:14:53.000Z
import requests print """ CVE-2015-6668 Title: CV filename disclosure on Job-Manager WP Plugin Author: Evangelos Mourikis Blog: https://vagmour.eu Plugin URL: http://www.wp-jobmanager.com Versions: <=0.7.25 """ website = raw_input('Enter a vulnerable website: ') filename = raw_input('Enter a file nam...
30.125
124
0.593361
0
0
0
0
0
0
0
0
336
0.46473
10318f66a573c70a9037cd72320a499bd6bc01f7
1,129
py
Python
setup.py
iomintz/sql-remove-comma
503bb90c1fd3346ea783ef826247a5e44dc7c743
[ "BSD-2-Clause-Patent" ]
null
null
null
setup.py
iomintz/sql-remove-comma
503bb90c1fd3346ea783ef826247a5e44dc7c743
[ "BSD-2-Clause-Patent" ]
null
null
null
setup.py
iomintz/sql-remove-comma
503bb90c1fd3346ea783ef826247a5e44dc7c743
[ "BSD-2-Clause-Patent" ]
null
null
null
#!/usr/bin/env python3 import setuptools setuptools.setup( name='sql-remove-comma', description='remove illegal trailing commas from your SQL code', use_scm_version=True, author='Io Mintz', author_email='io@mintz.cc', long_description=open('README.md').read(), long_description_content_type='text/markdown', li...
26.255814
65
0.672276
0
0
0
0
0
0
0
0
737
0.65279
1032c536542b9f2909cde345955741bac4143f87
418
py
Python
RQ1and2/code/results/test_all.py
CESEL/BatchBuilderResearch
0a1e3ee095e568fdf2f7ab1ce864efc9b490af6e
[ "MIT" ]
null
null
null
RQ1and2/code/results/test_all.py
CESEL/BatchBuilderResearch
0a1e3ee095e568fdf2f7ab1ce864efc9b490af6e
[ "MIT" ]
null
null
null
RQ1and2/code/results/test_all.py
CESEL/BatchBuilderResearch
0a1e3ee095e568fdf2f7ab1ce864efc9b490af6e
[ "MIT" ]
null
null
null
from utils import project_list from learning import IncrementalLearningModel def get_testing_dataset_size(prj): l = IncrementalLearningModel(prj['name'], 'RF', 30, 1) y_proba, y_test = l.get_predicted_data() return len(y_test) def main(): for idx, prj in enumerate(project_list): print(prj['...
19.904762
58
0.696172
0
0
0
0
0
0
0
0
42
0.100478
1033ffe67b91f750cd6a18292a63c21167fe56d7
228
py
Python
src/zebra_refresh.py
r0x73/alfred-zebra
fe802044fdc34172811c77433967bce46f084ed1
[ "MIT" ]
3
2017-08-10T12:54:03.000Z
2018-01-17T08:42:47.000Z
src/zebra_refresh.py
r0x73/alfred-zebra
fe802044fdc34172811c77433967bce46f084ed1
[ "MIT" ]
4
2016-08-03T09:41:06.000Z
2016-09-01T06:34:12.000Z
src/zebra_refresh.py
r0x73/alfred-zebra
fe802044fdc34172811c77433967bce46f084ed1
[ "MIT" ]
null
null
null
import zebra from workflow import Workflow if __name === '__main__': wf = Workflow() wf.cache_data('zebra_all_projects', zebra.get_all_projects()) wf.cache_data('zebra_aliased_activities', zebra.get_aliased_activities())
28.5
75
0.776316
0
0
0
0
0
0
0
0
56
0.245614
103416f9713f35181916b130993432d39011fa96
10,729
py
Python
car_core/car.py
edwardyehuang/CAR
a9f179ebd9ac38516c9827ca95f1f38a28aa317f
[ "MIT" ]
6
2022-03-15T03:32:35.000Z
2022-03-31T13:43:33.000Z
car_core/car.py
edwardyehuang/CAR
a9f179ebd9ac38516c9827ca95f1f38a28aa317f
[ "MIT" ]
null
null
null
car_core/car.py
edwardyehuang/CAR
a9f179ebd9ac38516c9827ca95f1f38a28aa317f
[ "MIT" ]
1
2022-03-31T13:43:37.000Z
2022-03-31T13:43:37.000Z
# ================================================================ # MIT License # Copyright (c) 2022 edwardyehuang (https://github.com/edwardyehuang) # ================================================================ import tensorflow as tf from iseg.layers.normalizations import normalization from iseg.utils.attent...
37.383275
144
0.637245
10,045
0.936248
0
0
0
0
0
0
2,090
0.194799
1034d4fa21e4a774fdb7001458be9aa8431d220c
2,009
py
Python
packs/orion/actions/list_sdk_verb_args.py
prajwal222/prajwal
ce1431858a9b54ae2a9546e9afab9f4b722bd210
[ "Apache-2.0" ]
null
null
null
packs/orion/actions/list_sdk_verb_args.py
prajwal222/prajwal
ce1431858a9b54ae2a9546e9afab9f4b722bd210
[ "Apache-2.0" ]
1
2022-03-08T17:03:46.000Z
2022-03-08T17:03:46.000Z
packs/orion/actions/list_sdk_verb_args.py
isabella232/st2contrib
182af2fb6e26a1d002954b19a5cc7afc73307872
[ "Apache-2.0" ]
1
2019-07-10T21:23:49.000Z
2019-07-10T21:23:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
36.527273
74
0.648084
1,186
0.590343
0
0
0
0
0
0
1,470
0.731707
103601948f6165db5db865f0b5d72730ec02f8bd
5,979
py
Python
Ui_share.py
Mochongli/lanzou-gui
0da48c627c70d7be4662e3312d135b28acdc1b57
[ "MIT" ]
2
2020-09-17T14:27:07.000Z
2021-06-28T08:44:35.000Z
Ui_share.py
Mochongli/lanzou-gui
0da48c627c70d7be4662e3312d135b28acdc1b57
[ "MIT" ]
null
null
null
Ui_share.py
Mochongli/lanzou-gui
0da48c627c70d7be4662e3312d135b28acdc1b57
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/rach/Documents/lanzou-gui/share.ui' # # Created by: PyQt5 UI code generator 5.13.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, D...
46.710938
95
0.68657
5,772
0.954839
0
0
0
0
0
0
677
0.111993
10360d23deea826893e597ec11b95b8d2db92420
129
py
Python
codeforces/anirudhak47/1335/A.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
3
2020-07-09T16:15:42.000Z
2020-07-17T13:19:42.000Z
codeforces/anirudhak47/1335/A.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
null
null
null
codeforces/anirudhak47/1335/A.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
1
2020-07-17T13:19:48.000Z
2020-07-17T13:19:48.000Z
for t in range(int(input())): n=int(input()) if n%2==0: print(int(n/2-1)) else: print(int(n//2))
21.5
30
0.449612
0
0
0
0
0
0
0
0
0
0
1037e099e65b884fd19f0953fbf98c040598fcd6
6,959
py
Python
imageclassification/training/session.py
aisosalo/CIFAR-10
8747ba2404bbe7043268dc8afa722938dc3db058
[ "MIT" ]
4
2019-03-01T21:47:40.000Z
2020-11-23T17:53:26.000Z
imageclassification/training/session.py
aisosalo/CIFAR-10
8747ba2404bbe7043268dc8afa722938dc3db058
[ "MIT" ]
null
null
null
imageclassification/training/session.py
aisosalo/CIFAR-10
8747ba2404bbe7043268dc8afa722938dc3db058
[ "MIT" ]
5
2019-11-28T13:31:50.000Z
2022-03-31T21:04:16.000Z
import sys import os import time import random import numpy as np from termcolor import colored from functools import partial from tensorboardX import SummaryWriter import torch from torch.utils.data import DataLoader from torchvision import transforms as tv_transforms import solt.transforms as slt import solt.c...
36.626316
132
0.620348
0
0
0
0
0
0
0
0
963
0.138382
10387d5bca747ed2fb01a238f98496c602127cb4
293
py
Python
remotelogin/oper_sys/busybox/__init__.py
filintod/pyremotelogin
e2a4df7fd69d21eccdf1aec55c33a839de9157f1
[ "MIT" ]
1
2018-11-20T17:45:20.000Z
2018-11-20T17:45:20.000Z
remotelogin/oper_sys/busybox/__init__.py
filintod/pyremotelogin
e2a4df7fd69d21eccdf1aec55c33a839de9157f1
[ "MIT" ]
3
2018-10-16T18:07:50.000Z
2018-10-16T18:10:06.000Z
remotelogin/oper_sys/busybox/__init__.py
filintod/pyremotelogin
e2a4df7fd69d21eccdf1aec55c33a839de9157f1
[ "MIT" ]
null
null
null
from . import shellcommands from ..linux import LinuxOS __author__ = 'Filinto Duran (duranto@gmail.com)' # TODO: break unix/linux to a bare and expand from there class BusyBoxOS(LinuxOS): """ Embedded Linux device """ name = 'busybox' cmd = shellcommands.get_instance()
20.928571
56
0.696246
127
0.433447
0
0
0
0
0
0
137
0.467577
1038f2cc4542c018a0f73531e58b1bd026455441
11,988
py
Python
DIP/src/utils/utils.py
Jay-Lewis/phase_retrieval
799cef92852c53e62e2a548f605652923e979456
[ "MIT" ]
4
2019-01-27T11:46:11.000Z
2020-12-17T12:23:15.000Z
DIP/src/utils/utils.py
Jay-Lewis/phase_retrieval
799cef92852c53e62e2a548f605652923e979456
[ "MIT" ]
null
null
null
DIP/src/utils/utils.py
Jay-Lewis/phase_retrieval
799cef92852c53e62e2a548f605652923e979456
[ "MIT" ]
1
2020-10-15T02:53:12.000Z
2020-10-15T02:53:12.000Z
import math import numpy as np import os.path import urllib.request as urllib import gzip import pickle import pandas as pd from scipy.misc import imsave from src.utils.download import * import src.utils.image_load_helpers as image_load_helpers import glob def CelebA_load(label_data = None, image_paths = None, batch_...
31.464567
120
0.611445
0
0
2,536
0.211545
0
0
0
0
1,272
0.106106
1039b022c5fb3fa4258162d12d3e7a230a204279
282
py
Python
2. Conditional and Repetitive Execution/2.2. Even or Odd.py
ahmetutkuozkan/my_ceng240_exercises_solutions
167bb9938515870ec1f01853933edc3b55937bff
[ "MIT" ]
null
null
null
2. Conditional and Repetitive Execution/2.2. Even or Odd.py
ahmetutkuozkan/my_ceng240_exercises_solutions
167bb9938515870ec1f01853933edc3b55937bff
[ "MIT" ]
null
null
null
2. Conditional and Repetitive Execution/2.2. Even or Odd.py
ahmetutkuozkan/my_ceng240_exercises_solutions
167bb9938515870ec1f01853933edc3b55937bff
[ "MIT" ]
null
null
null
value1 = int(input()); value2 = value1//100 if value1 % 2==0 and value2 % 2==0: print("Even") elif value1 % 2==0 and value2 % 2==1: print("Even Odd") elif value1 % 2==1 and value2 % 2==1: print("Odd") elif value1 % 2==1 and value2 % 2==0: print("Odd Even")
28.2
44
0.567376
0
0
0
0
0
0
0
0
31
0.109929
103b74338ebd3a256125530370b8d63b824deb3c
339
py
Python
First_course/ex2_2.py
laetrid/learning
b28312c34db2118fb7d5691834b8f7e628117642
[ "Apache-2.0" ]
null
null
null
First_course/ex2_2.py
laetrid/learning
b28312c34db2118fb7d5691834b8f7e628117642
[ "Apache-2.0" ]
null
null
null
First_course/ex2_2.py
laetrid/learning
b28312c34db2118fb7d5691834b8f7e628117642
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python column1 = "NETWORK_NUMBER" column2 = "FIRST_OCTET_BINARY" column3 = "FIRST_OCTET_HEX" ip_addr = '88.19.107.0' formatter = '%-20s%-20s%-20s' octets = ip_addr.split('.') a = bin(int(octets[0])) b = hex(int(octets[0])) print "" print formatter % (column1, column2, column3) print formatter % (ip_ad...
19.941176
45
0.678466
0
0
0
0
0
0
0
0
111
0.327434
103c0a4ba3c0768fdcf0d8428f050d11782bc6b9
511
py
Python
serendipity/set_and_map/singly_linked_list_set.py
globotree/serendipity
8380635a4760a5393330460bb625834ffe02967c
[ "Unlicense" ]
3
2019-03-12T10:00:53.000Z
2019-05-29T10:40:28.000Z
serendipity/set_and_map/singly_linked_list_set.py
globotree/serendipity
8380635a4760a5393330460bb625834ffe02967c
[ "Unlicense" ]
12
2018-12-17T13:31:19.000Z
2019-02-13T10:25:01.000Z
serendipity/set_and_map/singly_linked_list_set.py
globotree/serendipity
8380635a4760a5393330460bb625834ffe02967c
[ "Unlicense" ]
1
2020-01-24T00:48:57.000Z
2020-01-24T00:48:57.000Z
from serendipity.linear_structures.singly_linked_list import LinkedList class Set: def __init__(self): self._list = LinkedList() def get_size(self): return self._list.get_size() def is_empty(self): return self._list.is_empty() def contains(self, e): return self._list...
21.291667
71
0.614481
476
0.863884
0
0
0
0
0
0
104
0.188748
103ddecd77ffe2029b07f7ee212a250ddb0a808d
1,546
py
Python
settings.py
gaomugong/flask-demo
83bfb04634355565456cc16a5e98421338e3f562
[ "MIT" ]
12
2017-12-24T13:58:17.000Z
2021-04-06T16:21:00.000Z
settings.py
gaomugong/flask-demo
83bfb04634355565456cc16a5e98421338e3f562
[ "MIT" ]
null
null
null
settings.py
gaomugong/flask-demo
83bfb04634355565456cc16a5e98421338e3f562
[ "MIT" ]
1
2021-10-17T14:45:44.000Z
2021-10-17T14:45:44.000Z
# -*- coding: utf-8 -*- """ settings = conf.default.py + settings_{env}.py """ # import os # import importlib from conf.default import * # ======================================================================================== # IMPORT ENV SETTINGS # =================================...
39.641026
107
0.493532
0
0
0
0
0
0
0
0
980
0.633894
103ee262884abe730921725155217f60f63708d4
7,958
py
Python
scripts/elitech_device.py
grvstick/elitech-datareader
21b778066477a9ba81624c883b7ab7f13302edec
[ "MIT" ]
58
2015-06-16T06:08:11.000Z
2022-01-14T21:06:00.000Z
scripts/elitech_device.py
grvstick/elitech-datareader
21b778066477a9ba81624c883b7ab7f13302edec
[ "MIT" ]
29
2015-11-20T14:38:32.000Z
2022-02-16T20:26:05.000Z
scripts/elitech_device.py
grvstick/elitech-datareader
21b778066477a9ba81624c883b7ab7f13302edec
[ "MIT" ]
16
2016-05-18T20:56:36.000Z
2021-07-29T09:03:32.000Z
#!/usr/bin/env python # coding: utf-8 import argparse import elitech import datetime from elitech.msg import ( StopButton, ToneSet, AlarmSetting, TemperatureUnit, ) from elitech.msg import _bin import six import os def main(): args = parse_args() if (args.command == 'simple-set'): com...
35.846847
135
0.641995
0
0
0
0
0
0
0
0
1,187
0.149158
103f2a791154bb415c83bcbe5d49dfe926f934f8
295
py
Python
Assignment 1/task3/map.py
JeetKamdar/Big-Data-Assignments
54760de4b2f815168f61539eb9e79ff5e1bd7266
[ "MIT" ]
null
null
null
Assignment 1/task3/map.py
JeetKamdar/Big-Data-Assignments
54760de4b2f815168f61539eb9e79ff5e1bd7266
[ "MIT" ]
null
null
null
Assignment 1/task3/map.py
JeetKamdar/Big-Data-Assignments
54760de4b2f815168f61539eb9e79ff5e1bd7266
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import string import re for line in sys.stdin: if '"' in line: entry = re.split(''',(?=(?:[^'"]|'[^']*'|"[^"]*")*$)''', line) else: entry = line.split(",") licence_type = entry[2] amount_due = entry[-6] print("%s\t%s" % (licence_type, amount_due))
16.388889
64
0.566102
0
0
0
0
0
0
0
0
73
0.247458
103fc50711d0b0de84f01f2724705c3318868eda
273
py
Python
src/aijack/attack/inversion/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:44.000Z
2022-03-17T21:17:44.000Z
src/aijack/attack/inversion/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
null
null
null
src/aijack/attack/inversion/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:46.000Z
2022-03-17T21:17:46.000Z
from .gan_attack import GAN_Attack # noqa: F401 from .generator_attack import Generator_Attack # noqa: F401 from .gradientinversion import GradientInversion_Attack # noqa: F401 from .mi_face import MI_FACE # noqa: F401 from .utils import DataRepExtractor # noqa: F401
45.5
69
0.798535
0
0
0
0
0
0
0
0
60
0.21978
104022f80f0cfe30ed3aab519ac4eeadac303cfa
867
py
Python
INBa/2015/ZORIN_D_I/task_4_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/ZORIN_D_I/task_4_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/ZORIN_D_I/task_4_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 7. # Напишите программу, которая выводит имя, под которым скрывается Мария Луиза Чеччарелли. Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). Для хранения всех не...
43.35
443
0.7797
0
0
0
0
0
0
0
0
1,236
0.877841
10402fdf566c301bcd9dcb713ba61afdb6b551f7
676
py
Python
backend/api/models/request.py
haroldadmin/transportation-analytics-platform
366891dc422d3a72287b3224fbf5b0daf3d14751
[ "Apache-2.0" ]
null
null
null
backend/api/models/request.py
haroldadmin/transportation-analytics-platform
366891dc422d3a72287b3224fbf5b0daf3d14751
[ "Apache-2.0" ]
null
null
null
backend/api/models/request.py
haroldadmin/transportation-analytics-platform
366891dc422d3a72287b3224fbf5b0daf3d14751
[ "Apache-2.0" ]
null
null
null
from flask_restplus import fields, Model def add_models_to_namespace(namespace): namespace.models[route_request_model.name] = route_request_model route_request_model = Model("Represents a Route Request", { "id": fields.Integer(description="Unique identifier for the ride"), "start_point_lat": fields.Floa...
45.066667
99
0.778107
0
0
0
0
0
0
0
0
316
0.467456
10413843e688dfdc69f4f93d1b633fcb197a316d
4,554
py
Python
uitester/ui/main_window.py
IfengAutomation/uitester
6f9c78c86965b05efea875d38dbd9587386977fa
[ "Apache-2.0" ]
4
2016-07-12T09:01:52.000Z
2016-12-07T03:11:02.000Z
uitester/ui/main_window.py
IfengAutomation/uitester
6f9c78c86965b05efea875d38dbd9587386977fa
[ "Apache-2.0" ]
null
null
null
uitester/ui/main_window.py
IfengAutomation/uitester
6f9c78c86965b05efea875d38dbd9587386977fa
[ "Apache-2.0" ]
3
2016-11-29T02:13:17.000Z
2019-10-16T06:25:20.000Z
# @Time : 2016/8/17 10:56 # @Author : lixintong import logging import os import sys from PyQt5 import uic from PyQt5.QtCore import pyqtSignal, Qt from PyQt5.QtWidgets import QMainWindow, QApplication, QDesktopWidget, QMessageBox from uitester.test_manager.tester import Tester from uitester.ui.case_manager.case_ed...
35.030769
113
0.647343
3,708
0.812089
0
0
0
0
0
0
817
0.178931
1041fae3393c3977b85dd8a7c05c2822f0550318
13,034
py
Python
demos/DPSRGAN/dpsrmodels/basicblock.py
hduba/MDF
62eb2a1a5b8274206aae71903da2c2ad33ce687d
[ "BSD-3-Clause" ]
1
2021-05-18T06:20:49.000Z
2021-05-18T06:20:49.000Z
demos/DPSRGAN/dpsrmodels/basicblock.py
hduba/MDF
62eb2a1a5b8274206aae71903da2c2ad33ce687d
[ "BSD-3-Clause" ]
null
null
null
demos/DPSRGAN/dpsrmodels/basicblock.py
hduba/MDF
62eb2a1a5b8274206aae71903da2c2ad33ce687d
[ "BSD-3-Clause" ]
2
2021-09-09T19:07:57.000Z
2021-10-02T15:56:59.000Z
from collections import OrderedDict import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import Module ''' # =================================== # Advanced nn.Sequential # reform nn.Sequentials and nn.Modules # to a single nn.Sequential # =================================== ''' def sequen...
38.448378
160
0.529155
5,055
0.387832
0
0
0
0
0
0
3,586
0.275127
1042258a2c6461db6839a5ffc457fce5341726df
8,251
py
Python
ml-models-analyses/readahead-mixed-workload/kmlparsing.py
drewscottt/kernel-ml
713fd825e3681d2d7d5250120c992cb19b662351
[ "Apache-2.0" ]
167
2021-11-23T04:10:12.000Z
2022-03-19T21:31:22.000Z
ml-models-analyses/readahead-mixed-workload/kmlparsing.py
drewscottt/kernel-ml
713fd825e3681d2d7d5250120c992cb19b662351
[ "Apache-2.0" ]
null
null
null
ml-models-analyses/readahead-mixed-workload/kmlparsing.py
drewscottt/kernel-ml
713fd825e3681d2d7d5250120c992cb19b662351
[ "Apache-2.0" ]
9
2021-11-24T18:03:25.000Z
2022-02-06T01:30:23.000Z
# # Copyright (c) 2019-2021 Ibrahim Umit Akgun # Copyright (c) 2021-2021 Andrew Burford # Copyright (c) 2021-2021 Mike McNeill # Copyright (c) 2021-2021 Michael Arkhangelskiy # Copyright (c) 2020-2021 Aadil Shaikh # Copyright (c) 2020-2021 Lukas Velikov # Copyright (c) 2019-2021 Erez Zadok # Copyright (c) 2019-2021 Sto...
39.104265
119
0.533026
0
0
0
0
0
0
0
0
1,741
0.211005
10425f3043aed2d9ee265e0c0950ea8c8e237a9e
6,374
py
Python
src/py_dss_tools/secondary/Circuit.py
eniovianna/py_dss_tools
3057fb0b74facd05a362e4e4a588f79f70aa9dd7
[ "MIT" ]
3
2021-05-29T00:40:10.000Z
2021-09-30T17:56:14.000Z
src/py_dss_tools/secondary/Circuit.py
eniovianna/py_dss_tools
3057fb0b74facd05a362e4e4a588f79f70aa9dd7
[ "MIT" ]
null
null
null
src/py_dss_tools/secondary/Circuit.py
eniovianna/py_dss_tools
3057fb0b74facd05a362e4e4a588f79f70aa9dd7
[ "MIT" ]
3
2021-05-29T00:40:46.000Z
2022-01-13T22:04:49.000Z
# -*- encoding: utf-8 -*- """ Created by Ênio Viana at 01/09/2021 at 19:51:44 Project: py_dss_tools [set, 2021] """ import attr import pandas as pd from py_dss_tools.model.other import VSource from py_dss_tools.utils import Utils @attr.s class Circuit(VSource): _name = attr.ib(validator=attr.validators.instanc...
32.191919
119
0.588798
6,133
0.961587
0
0
6,141
0.962841
0
0
4,016
0.629664
1045970cd8dff036939d1d34b09329c2cb8a87e3
1,270
py
Python
day2.py
cjfuller/adventofcode2015
1fbe75e29def156dbe1dc1336ff857945a6a365c
[ "MIT" ]
null
null
null
day2.py
cjfuller/adventofcode2015
1fbe75e29def156dbe1dc1336ff857945a6a365c
[ "MIT" ]
null
null
null
day2.py
cjfuller/adventofcode2015
1fbe75e29def156dbe1dc1336ff857945a6a365c
[ "MIT" ]
null
null
null
from dataclasses import dataclass from util import load_input, bear_init box_specs = load_input(2) @bear_init @dataclass class Box: l: int w: int h: int @classmethod def from_str(cls, s: str) -> "Box": l, w, h = tuple(map(int, s.split("x"))) return Box(l, w, h) @property ...
22.280702
84
0.588189
898
0.707087
0
0
920
0.724409
0
0
218
0.171654
1047517a8fc519c2245e3ae4ac28ca41f0c16f09
7,928
py
Python
todo/commands/complete.py
Kuro-Rui/JojoCogs
57b86694e29462c5f5b561bc4a060ed04cfb8deb
[ "MIT" ]
null
null
null
todo/commands/complete.py
Kuro-Rui/JojoCogs
57b86694e29462c5f5b561bc4a060ed04cfb8deb
[ "MIT" ]
null
null
null
todo/commands/complete.py
Kuro-Rui/JojoCogs
57b86694e29462c5f5b561bc4a060ed04cfb8deb
[ "MIT" ]
null
null
null
# Copyright (c) 2021 - Jojo#7791 # Licensed under MIT import asyncio from contextlib import suppress from typing import List import discord from redbot.core import commands from redbot.core.utils.chat_formatting import pagify from redbot.core.utils.predicates import MessagePredicate from ..abc import TodoMixin from ...
41.507853
129
0.621342
7,495
0.945383
0
0
7,240
0.913219
6,781
0.855323
2,533
0.319501
10485a191600110454b70bb7ff198f1ba032639d
544
py
Python
network/demo_espat_ap_test.py
708yamaguchi/MaixPy_scripts
5f1774e739fb7eecab344d619c0cd63a71ff3d4f
[ "MIT" ]
485
2019-03-18T10:53:59.000Z
2022-03-27T09:02:08.000Z
network/demo_espat_ap_test.py
708yamaguchi/MaixPy_scripts
5f1774e739fb7eecab344d619c0cd63a71ff3d4f
[ "MIT" ]
110
2019-04-04T09:07:39.000Z
2022-03-03T08:08:19.000Z
network/demo_espat_ap_test.py
708yamaguchi/MaixPy_scripts
5f1774e739fb7eecab344d619c0cd63a71ff3d4f
[ "MIT" ]
379
2019-03-18T04:48:46.000Z
2022-03-30T00:29:29.000Z
# This file is part of MaixPY # Copyright (c) sipeed.com # # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license.php # from network_espat import wifi wifi.reset() print(wifi.at_cmd("AT\r\n")) print(wifi.at_cmd("AT+GMR\r\n")) ''' >>> reset... b'\r\n\r\nOK\r\n' b'AT version:1.1.0.0(May 1...
24.727273
121
0.696691
0
0
0
0
0
0
0
0
448
0.823529
10491ce24b3f4d1202dbbd3d0299d988fc347ec0
1,513
py
Python
scripts/plot_pca.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
scripts/plot_pca.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
scripts/plot_pca.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
from preprocessing.dataset import SVHNDataset import numpy as np import configparser as cp from datetime import datetime as dt import os from sklearn.decomposition import PCA import pandas as pd import seaborn as sns import matplotlib.pyplot as plt if __name__ == "__main__": config = cp.ConfigParser() config.r...
36.902439
119
0.634501
0
0
0
0
0
0
0
0
269
0.177792
104941aa6110b4212489737e4b75dd284643d08f
4,117
py
Python
DoodleParser.py
luigiberducci/turni-biblioteca
ae1c65dd768734de4795d38859f23eb655434ad7
[ "MIT" ]
null
null
null
DoodleParser.py
luigiberducci/turni-biblioteca
ae1c65dd768734de4795d38859f23eb655434ad7
[ "MIT" ]
null
null
null
DoodleParser.py
luigiberducci/turni-biblioteca
ae1c65dd768734de4795d38859f23eb655434ad7
[ "MIT" ]
null
null
null
# File: DoodleParser.py # # Author: Luigi Berducci # Date: 2018-11-30 import sys import datetime import requests import json class DoodleParser: """ Retrieves poll data from doodle.com and fill data structure for participants, options and preferences. """ pollID = "" participan...
32.936
98
0.549915
3,553
0.863007
0
0
0
0
0
0
2,094
0.508623
104a38928902816c83edccd5d37dfdec68ddd38c
381
py
Python
bot-stopots/configuracao.py
leosantosx/bot-stopots
b3de1610247ed6e64aba4313f087e7f373365502
[ "MIT" ]
2
2020-10-08T23:44:47.000Z
2022-03-30T17:17:44.000Z
bot-stopots/configuracao.py
leosantosx/bot-stopots
b3de1610247ed6e64aba4313f087e7f373365502
[ "MIT" ]
null
null
null
bot-stopots/configuracao.py
leosantosx/bot-stopots
b3de1610247ed6e64aba4313f087e7f373365502
[ "MIT" ]
2
2020-10-01T08:10:08.000Z
2022-02-23T20:27:09.000Z
""" VARIÁVEIS DE CONFIGURAÇÃO DO BOT True PARA ATIVAR E False PARA DESATIVAR """ escrever_nos_campos = True # PREENCHE OS CAMPOS COM AS RESPOSTAS modo_de_aprendizado = False # APRENDE NOVAS RESPOSTAS SALVANDO AS RESPOSTAS DOS OUTROS JOGADORES clica_botao_avaliar_respostas = True # CLICA NO BOTÃO "AVALIAR" clic...
22.411765
96
0.784777
0
0
0
0
0
0
0
0
252
0.65285
104bea37e718643afefd50f43683a9a85ce8b8b1
1,164
py
Python
InterpolLagrange.py
davidfotsa/Numerical_Methods_With_Python
78ed749f9c1f0005efa1b5ae1f529356a4057462
[ "MIT" ]
1
2021-09-18T18:32:40.000Z
2021-09-18T18:32:40.000Z
InterpolLagrange.py
davidfotsa/Numerical_Methods_With_Python
78ed749f9c1f0005efa1b5ae1f529356a4057462
[ "MIT" ]
null
null
null
InterpolLagrange.py
davidfotsa/Numerical_Methods_With_Python
78ed749f9c1f0005efa1b5ae1f529356a4057462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- def a(i,x,X,Y): rep=1 for j in range(min(len(X),len(Y))): if (i!=j): rep*=(x-X[j])/(X[i]-X[j]) return (rep) def P(x,X,Y): rep=0 for i in range(min(len(X),len(Y))): rep+=a(i,x,X,Y)*Y[i] return (rep) X=[-2,0,1,2] Y=[49,5,7,49] #x=float(input(" Vous voulez estimer...
21.163636
58
0.495704
0
0
0
0
0
0
0
0
214
0.183533
104c94905568b06f91f4a7f0d3ab448f5f6b6e7d
990
py
Python
stockroom_bot/stock_products.py
amjadmajid/rosbook
20d4ab94d910adc62c4aecb471ceac13b5cef5ad
[ "Apache-2.0" ]
442
2015-12-11T02:59:16.000Z
2022-03-31T22:10:25.000Z
stockroom_bot/stock_products.py
amjadmajid/rosbook
20d4ab94d910adc62c4aecb471ceac13b5cef5ad
[ "Apache-2.0" ]
41
2016-01-07T19:15:29.000Z
2021-12-03T01:52:58.000Z
stockroom_bot/stock_products.py
amjadmajid/rosbook
20d4ab94d910adc62c4aecb471ceac13b5cef5ad
[ "Apache-2.0" ]
249
2015-11-27T10:22:33.000Z
2022-03-28T09:52:05.000Z
#!/usr/bin/env python import rospy, tf from gazebo_msgs.srv import * from geometry_msgs.msg import * if __name__ == '__main__': rospy.init_node("stock_products") rospy.wait_for_service("gazebo/delete_model") # <1> rospy.wait_for_service("gazebo/spawn_sdf_model") delete_model = rospy.ServiceProxy("gazebo/delete...
41.25
73
0.692929
0
0
0
0
0
0
0
0
237
0.239394
104fe8a69a8815914b9402756fc0c531d5a4a9ad
846
py
Python
code/GC_mass_evolv.py
EnthalpyBill/GC-formation
143a8cb464bd621e77092a010c9011ef056da400
[ "MIT" ]
null
null
null
code/GC_mass_evolv.py
EnthalpyBill/GC-formation
143a8cb464bd621e77092a010c9011ef056da400
[ "MIT" ]
null
null
null
code/GC_mass_evolv.py
EnthalpyBill/GC-formation
143a8cb464bd621e77092a010c9011ef056da400
[ "MIT" ]
null
null
null
''' Mass evolution of GC Created Apr. 2020 Last Edit Apr. 2020 By Bill Chen ''' import numpy as np # Note: all times in [Gyr] # ***** Dynamic evolution of GC in Choksi & Gnedin (2018) ***** def t_tid_cg18(m): # Tidally-limited disruption timescale in Choksi & Gnedin (2018) P = 0.5 return 5 * ((m/2e5)*...
22.263158
68
0.625296
0
0
0
0
0
0
0
0
491
0.580378
104fe95906a89882b90ee817c831630744acea53
355
py
Python
tests/test_deploy.py
NCAR/marbl-solutions
0840e2a594d49218b1510cd8cb95d9d058495a8a
[ "MIT" ]
null
null
null
tests/test_deploy.py
NCAR/marbl-solutions
0840e2a594d49218b1510cd8cb95d9d058495a8a
[ "MIT" ]
1
2022-02-11T22:53:37.000Z
2022-02-11T22:53:37.000Z
tests/test_deploy.py
NCAR/marbl-solutions
0840e2a594d49218b1510cd8cb95d9d058495a8a
[ "MIT" ]
null
null
null
import solutions def test_deploy_config(): deploy_config = solutions.config.deploy_config assert deploy_config['reference_case'] == 'ref_case' assert type(deploy_config['reference_case_path']) == list assert deploy_config['reference_case_file_format'] == 'history' assert deploy_config['case_to_com...
35.5
71
0.766197
0
0
0
0
0
0
0
0
125
0.352113
10521ee81224fcf01be655be4e17446c05559c19
148
py
Python
backend/home/models.py
crowdbotics-apps/test-29106
34df3fa66e798f61d9189fa248f21cabb9bca0e1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/models.py
crowdbotics-apps/test-29106
34df3fa66e798f61d9189fa248f21cabb9bca0e1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/models.py
crowdbotics-apps/test-29106
34df3fa66e798f61d9189fa248f21cabb9bca0e1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.conf import settings from django.db import models class Tasks(models.Model): "Generated Model" task_name = models.TextField()
18.5
34
0.75
83
0.560811
0
0
0
0
0
0
17
0.114865
10527d2aa82328718d79fcf72f8bc5b68e57039d
405
py
Python
tests/urls.py
xiu1/django-rest
3ba381a8f8be8a27af464839dcdd5677857043ba
[ "MIT" ]
null
null
null
tests/urls.py
xiu1/django-rest
3ba381a8f8be8a27af464839dcdd5677857043ba
[ "MIT" ]
null
null
null
tests/urls.py
xiu1/django-rest
3ba381a8f8be8a27af464839dcdd5677857043ba
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin from rest.views import TestRestView, TestAuthHeaderView, TestAuthUrlView urlpatterns = [ url('^rest/$', TestRestView.as_view(), name='rest'), url('^auth_header_rest/$', TestAuthHeaderView.as_view(), name='rest_auth_header'), url('^a...
40.5
93
0.735802
0
0
0
0
0
0
0
0
103
0.254321
1052c3a88b2dcf7166396c893200f90ad073a780
16,625
py
Python
services/controllers/thruster_controller.py
gizmo-cda/g2x-submarine-v2
2f4be8ad7234ab59fc6e98b8353a40195dd08ffb
[ "BSD-3-Clause" ]
1
2017-05-05T04:32:11.000Z
2017-05-05T04:32:11.000Z
services/controllers/thruster_controller.py
gizmo-cda/g2x-submarine-v2
2f4be8ad7234ab59fc6e98b8353a40195dd08ffb
[ "BSD-3-Clause" ]
26
2017-05-08T02:06:47.000Z
2017-06-02T02:50:18.000Z
services/controllers/thruster_controller.py
gizmo-cda/g2x-submarine-v2
2f4be8ad7234ab59fc6e98b8353a40195dd08ffb
[ "BSD-3-Clause" ]
1
2018-06-25T19:00:20.000Z
2018-06-25T19:00:20.000Z
import os import json from vector2d import Vector2D from interpolator import Interpolator from utils import map_range # Each game controller axis returns a value in the closed interval [-1, 1]. We # limit the number of decimal places we use with the PRECISION constant. This is # done for a few reasons: 1) it makes th...
45.925414
92
0.639759
14,416
0.867128
0
0
0
0
0
0
8,002
0.481323
1052f3c21d56f16c74fe435dcc9d878c1ebb23e3
2,387
py
Python
montagem/models.py
Glaysonvisgueira/agendamento-de-servico
a7715f45914f361830303241916c0b85cd3bdfdf
[ "MIT" ]
null
null
null
montagem/models.py
Glaysonvisgueira/agendamento-de-servico
a7715f45914f361830303241916c0b85cd3bdfdf
[ "MIT" ]
null
null
null
montagem/models.py
Glaysonvisgueira/agendamento-de-servico
a7715f45914f361830303241916c0b85cd3bdfdf
[ "MIT" ]
null
null
null
from django.db import models LOJAS = ( ('TES', 'TES'), ('TEU', 'TEU'), ('TMA', 'TMA'), ('TPI', 'TPI'), ('TMO', 'TMO'), ('TEZ', 'TEZ'), ('TED', 'TED'), ('TPP', 'TPP'), ('TIM', 'TIM'), ('TEC', 'TEC'), ('RTT', 'RTT'), ...
27.755814
138
0.56682
1,368
0.573104
0
0
0
0
0
0
643
0.269376
1053671d2efb3bcbff0f12731c2f9a421bb4da2e
7,377
py
Python
em/src/dataset/metrics.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
em/src/dataset/metrics.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
15
2019-06-17T16:13:39.000Z
2022-02-27T05:23:59.000Z
em/src/dataset/metrics.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
import numpy as np from scipy.optimize import linear_sum_assignment def intersection_over_union(segmented_map, gt_map): s_array = segmented_map.getEmMap().data() gt_array = gt_map.getEmMap().data() labels = np.unique(gt_array) if s_array.shape != gt_array.shape: return ValueError("Arrays must h...
37.830769
128
0.623153
0
0
0
0
0
0
0
0
340
0.046089
10549d50d1cb53a2fb1a2551fb8532427ebf65e9
1,554
py
Python
asq/test/test_pre_scan.py
SlamJam/asq
e6e49a5ace421cb4f84f0bded5dbe5a2108b0cce
[ "MIT" ]
3
2015-03-13T23:02:29.000Z
2015-07-19T15:29:23.000Z
asq/test/test_pre_scan.py
SlamJam/asq
e6e49a5ace421cb4f84f0bded5dbe5a2108b0cce
[ "MIT" ]
null
null
null
asq/test/test_pre_scan.py
SlamJam/asq
e6e49a5ace421cb4f84f0bded5dbe5a2108b0cce
[ "MIT" ]
1
2020-12-19T07:57:20.000Z
2020-12-19T07:57:20.000Z
import operator import unittest from asq.queryables import Queryable __author__ = "Robert Smallshire" class TestPreScan(unittest.TestCase): def test_pre_scan_empty_default(self): a = [] b = Queryable(a).pre_scan().to_list() c = [] self.assertEqual(b, c) def test...
29.884615
92
0.557915
1,440
0.926641
0
0
0
0
0
0
33
0.021236
105586dba443dd6bd6a2f0bfc1884ab1e9b6d1f5
504
py
Python
magicmethod__str__.py
maahi07m/OOPS
1faa5168dc66c3597adfc0703af5e4c84c52117a
[ "MIT" ]
1
2022-02-28T17:00:03.000Z
2022-02-28T17:00:03.000Z
magicmethod__str__.py
maahi07m/OOPS
1faa5168dc66c3597adfc0703af5e4c84c52117a
[ "MIT" ]
null
null
null
magicmethod__str__.py
maahi07m/OOPS
1faa5168dc66c3597adfc0703af5e4c84c52117a
[ "MIT" ]
4
2020-04-22T10:26:35.000Z
2020-05-15T16:27:36.000Z
class ComplexNumber: # TODO: write your code here def __init__(self,real=0, imag=0): self.real_part = real self.imaginary_part = imag def __str__(self): return f"{self.real_part}{self.imaginary_part:+}i" if __name__ == "__main__": import json input_args = list(json.loads(inp...
22.909091
58
0.642857
239
0.474206
0
0
0
0
0
0
116
0.230159
10568ffdcff6c9ac4346c98dc2826ddaf3950010
1,853
py
Python
src/form/panel/ParamAdvancePanel.py
miu200521358/pmx_tailor
7f40ffd596f548d4c04f14b22d8796861056fdb5
[ "MIT" ]
4
2021-11-10T03:04:07.000Z
2022-01-11T09:02:02.000Z
src/form/panel/ParamAdvancePanel.py
miu200521358/pmx_tailor
7f40ffd596f548d4c04f14b22d8796861056fdb5
[ "MIT" ]
1
2022-01-05T01:23:18.000Z
2022-01-08T16:23:42.000Z
src/form/panel/ParamAdvancePanel.py
miu200521358/pmx_tailor
7f40ffd596f548d4c04f14b22d8796861056fdb5
[ "MIT" ]
3
2021-11-05T16:55:35.000Z
2021-12-04T16:28:21.000Z
# -*- coding: utf-8 -*- # import wx from form.panel.BasePanel import BasePanel from utils.MLogger import MLogger # noqa logger = MLogger(__name__) class ParamAdvancePanel(BasePanel): def __init__(self, frame: wx.Frame, export: wx.Notebook, tab_idx: int): super().__init__(frame, export, tab_idx)...
38.604167
161
0.680518
1,844
0.923385
0
0
0
0
0
0
259
0.129695
1057b731456147b4b92c8df8a2606e402b2c86e3
10,830
py
Python
hexrd/ui/calibration/powder_calibration.py
bnmajor/hexrdgui
d19f7cf4a4469b0d3b6978f2f65c5e8a6bd81785
[ "BSD-3-Clause" ]
null
null
null
hexrd/ui/calibration/powder_calibration.py
bnmajor/hexrdgui
d19f7cf4a4469b0d3b6978f2f65c5e8a6bd81785
[ "BSD-3-Clause" ]
1
2020-10-29T14:34:42.000Z
2020-10-29T15:30:20.000Z
hexrd/ui/calibration/powder_calibration.py
cjh1/hexrdgui
eb8968ba763cebbffce61164f1bda1e2cc622461
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from scipy.optimize import leastsq, least_squares from hexrd import instrument from hexrd.matrixutil import findDuplicateVectors from hexrd.fitting import fitpeak from hexrd.ui.hexrd_config import HexrdConfig from hexrd.ui.utils import convert_tilt_convention class InstrumentCalibrator(object): ...
33.119266
79
0.570175
7,999
0.738596
0
0
958
0.088458
0
0
2,813
0.259741
1059338d2378b261aba08fb200894418dd9de4d1
503
py
Python
covid-tweets/process-tweets-2.py
kadams4/NLPCoronavirus
15936240adb6cd9d7a616c381980d17c03cdc8fd
[ "MIT" ]
1
2020-05-02T23:26:56.000Z
2020-05-02T23:26:56.000Z
covid-tweets/process-tweets-2.py
kadams4/NLPCoronavirus
15936240adb6cd9d7a616c381980d17c03cdc8fd
[ "MIT" ]
null
null
null
covid-tweets/process-tweets-2.py
kadams4/NLPCoronavirus
15936240adb6cd9d7a616c381980d17c03cdc8fd
[ "MIT" ]
null
null
null
import pandas as pd root = "Split/" types = ["train-70", "test-30"] for type in types: filenames = ["2020-03-"+str(i)+"-Labels-"+type for i in range(12, 29)] for suffix in ["pos", "neg", "neu"]: data = [] for filename in filenames: path = root + filename data += li...
22.863636
82
0.528827
0
0
0
0
0
0
0
0
98
0.194831
105a1021873de5967ff4229ce3f7cb97d8adb0d8
1,638
py
Python
sample/crawler/login.py
xuegangliu/Python-Learning
43e8c57debf6ec186d093dcc0e83c1a628982715
[ "MIT" ]
null
null
null
sample/crawler/login.py
xuegangliu/Python-Learning
43e8c57debf6ec186d093dcc0e83c1a628982715
[ "MIT" ]
null
null
null
sample/crawler/login.py
xuegangliu/Python-Learning
43e8c57debf6ec186d093dcc0e83c1a628982715
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- """ @Project: python @Date: 8/30/2018 9:53 PM @Author: xuegangliu @Description: login """ import urllib.request import http.cookiejar import urllib.parse def getOpener(header): '''构造文件头''' # 设置一个cookie处理器,它负责从服务器下载cookie到本地,并且在发送请求时带上本地的cookie coo...
27.762712
133
0.627595
0
0
0
0
0
0
0
0
815
0.456327
105a2a73f5eecce7fac87dc8417f55ba6d3a6da8
1,277
py
Python
djangocms_comments/widgets.py
Nekmo/djangocms-comments-module
591138db28d5341fd7809fc75f3fa4d91b5d3ef8
[ "MIT" ]
11
2016-04-13T14:04:42.000Z
2020-06-21T10:48:37.000Z
djangocms_comments/widgets.py
Nekmo/djangocms-comments-module
591138db28d5341fd7809fc75f3fa4d91b5d3ef8
[ "MIT" ]
14
2016-04-14T10:09:20.000Z
2021-05-22T08:20:10.000Z
djangocms_comments/widgets.py
Nekmo/djangocms-comments-module
591138db28d5341fd7809fc75f3fa4d91b5d3ef8
[ "MIT" ]
11
2016-04-14T09:48:48.000Z
2021-04-11T03:43:08.000Z
from django.core.exceptions import SuspiciousOperation from django.core.signing import Signer, BadSignature from django.forms import HiddenInput signer = Signer() class SignedHiddenInput(HiddenInput): def __init__(self, include_field_name=True, attrs=None): self.include_field_name = include_field_name ...
34.513514
85
0.657009
1,111
0.870008
0
0
0
0
0
0
11
0.008614
105b04f24aada022dca8226b67acae586bf9c15f
738
py
Python
860-lemonade-change.py
Iciclelz/leetcode
e4b698e0161033922851641885fdc6e47f9ce270
[ "Apache-2.0" ]
null
null
null
860-lemonade-change.py
Iciclelz/leetcode
e4b698e0161033922851641885fdc6e47f9ce270
[ "Apache-2.0" ]
null
null
null
860-lemonade-change.py
Iciclelz/leetcode
e4b698e0161033922851641885fdc6e47f9ce270
[ "Apache-2.0" ]
null
null
null
class Solution: def lemonadeChange(self, bills: List[int]) -> bool: money = [0, 0, 0] for x in bills: if x == 5: money[0] += 1 if x == 10: if money[0] >= 1: money[1] += 1 money[0] -= 1 ...
29.52
55
0.295393
738
1
0
0
0
0
0
0
0
0
105bb82bfc7b6f71c79e0e15226b493dbe1a9ea9
3,684
py
Python
openspeech/search/beam_search_ctc.py
techthiyanes/openspeech
71d28bae1232420da1d6f357f52ff1a607dc983f
[ "Apache-2.0", "MIT" ]
207
2021-07-22T02:04:47.000Z
2022-03-31T07:24:12.000Z
openspeech/search/beam_search_ctc.py
tqslj2/openspeech
10307587f08615224df5a868fb5249c68c70b12d
[ "Apache-2.0", "MIT" ]
81
2021-07-21T16:52:22.000Z
2022-03-31T14:56:54.000Z
openspeech/search/beam_search_ctc.py
tqslj2/openspeech
10307587f08615224df5a868fb5249c68c70b12d
[ "Apache-2.0", "MIT" ]
43
2021-07-21T16:33:27.000Z
2022-03-23T09:43:49.000Z
# MIT License # # Copyright (c) 2021 Soohwan Kim and Sangchun Ha and Soyoung Cho # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights...
43.341176
119
0.678882
2,468
0.669924
0
0
0
0
0
0
2,624
0.712269
105c2eb00700830d7030c477994f8f358f536d08
1,231
py
Python
Software/Services/__init__.py
Hackin7/BlockComPi
36938e219b42c5d220db0a64e4718e95720c4850
[ "X11" ]
null
null
null
Software/Services/__init__.py
Hackin7/BlockComPi
36938e219b42c5d220db0a64e4718e95720c4850
[ "X11" ]
null
null
null
Software/Services/__init__.py
Hackin7/BlockComPi
36938e219b42c5d220db0a64e4718e95720c4850
[ "X11" ]
null
null
null
#Do Not Edit #colors R G B white = (255, 255, 255) red = (255, 0, 0) green = ( 0, 255, 0) blue = ( 0, 0, 255) black = ( 0, 0, 0) cyan = ( 50, 255, 255) magenta = (255, 0, 255) yellow = (255, 255, 0) orange = (255, 127, 0) #The Service/Notifications List # L...
24.62
122
0.57108
0
0
0
0
0
0
0
0
406
0.329813
105d5ca23ac6dfb590f2af5c0e2d2ba6bb4c09a3
324
py
Python
src/ml_fastapi/routers.py
sebastianschramm/ml_fastapi
719f332b573f1ae021f4753b25a940da040c9ea3
[ "MIT" ]
2
2020-05-08T11:15:43.000Z
2020-05-08T11:29:52.000Z
src/ml_fastapi/routers.py
sebastianschramm/ml_fastapi
719f332b573f1ae021f4753b25a940da040c9ea3
[ "MIT" ]
null
null
null
src/ml_fastapi/routers.py
sebastianschramm/ml_fastapi
719f332b573f1ae021f4753b25a940da040c9ea3
[ "MIT" ]
null
null
null
from fastapi import APIRouter from starlette.requests import Request router = APIRouter() @router.get('/') async def read_root(request: Request): return "ML serving with fastapi" @router.get('api/predict') async def predict_number(request: Request): model = request.app.ml_model return model.predict('bla...
20.25
43
0.740741
0
0
0
0
227
0.700617
183
0.564815
46
0.141975
105dc9a0c2abe995709581929119eb84a98260a9
1,902
py
Python
spinoffs/inference_gym/inference_gym/targets/eight_schools_test.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
3,670
2018-02-14T03:29:40.000Z
2022-03-30T01:19:52.000Z
spinoffs/inference_gym/inference_gym/targets/eight_schools_test.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
1,395
2018-02-24T02:28:49.000Z
2022-03-31T16:12:06.000Z
spinoffs/inference_gym/inference_gym/targets/eight_schools_test.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
1,135
2018-02-14T01:51:10.000Z
2022-03-28T02:24:11.000Z
# Copyright 2020 The TensorFlow Probability Authors. # # 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 o...
34.581818
78
0.699264
923
0.485279
0
0
994
0.522608
0
0
939
0.493691
105f337c3b2cee574054705ec45a67cc94c84757
788
py
Python
ch01/dictionaries.py
PacktPublishing/Python-Networking-Cookbook
26945c781a51fe72cc01409df6b5c5fa7df53f4c
[ "MIT" ]
5
2021-06-11T11:24:04.000Z
2022-03-22T03:22:57.000Z
ch01/dictionaries.py
PacktPublishing/Python-Networking-Cookbook
26945c781a51fe72cc01409df6b5c5fa7df53f4c
[ "MIT" ]
null
null
null
ch01/dictionaries.py
PacktPublishing/Python-Networking-Cookbook
26945c781a51fe72cc01409df6b5c5fa7df53f4c
[ "MIT" ]
10
2021-04-18T12:31:14.000Z
2022-03-28T07:21:16.000Z
config = {} with open("config.txt", "r") as f: lines = f.readlines() for line in lines: key, value = line.split("=") value = value.replace("\n", "") config[key] = value print(f"Added key {key} with value {value}") user_key = input("Which key would you like to see? ") if user_ke...
30.307692
55
0.555838
0
0
0
0
0
0
0
0
260
0.329949
105f6e89e6b0c9427d9b4f9d438c31c6041b503d
414
py
Python
letra_m/extensions.py
frotacaio/tutorial_flask
6b454bddfc32e384b765d831025fc54a22fc79c7
[ "MIT" ]
null
null
null
letra_m/extensions.py
frotacaio/tutorial_flask
6b454bddfc32e384b765d831025fc54a22fc79c7
[ "MIT" ]
null
null
null
letra_m/extensions.py
frotacaio/tutorial_flask
6b454bddfc32e384b765d831025fc54a22fc79c7
[ "MIT" ]
null
null
null
""" Extensões populares Flask Mail - Fornece uma interface SMTP para o aplicativo Flask Flask WTF - Adicione renderização e validação de WTForms Flask SQLAlchemy - Adicionando suporte SQLAlchemy para o aplicativo Flask Flask Sijax-Sijax - biblioteca de interface-Python/jQuery para tornar o AJAX fácil de usar em apl...
24.352941
108
0.806763
0
0
0
0
0
0
0
0
345
0.817536
106251ef07afcc86c70965ff744410c8564d5727
1,128
py
Python
File/Common/directory.py
nikminer/HomeCloud
7571e8002ef0919b382c3802d680421bd094d866
[ "MIT" ]
null
null
null
File/Common/directory.py
nikminer/HomeCloud
7571e8002ef0919b382c3802d680421bd094d866
[ "MIT" ]
null
null
null
File/Common/directory.py
nikminer/HomeCloud
7571e8002ef0919b382c3802d680421bd094d866
[ "MIT" ]
null
null
null
import os from django.http import HttpResponse from django.contrib.auth.decorators import login_required def isAccess(path): try: os.listdir(path) return True except PermissionError: return False @login_required def isExist(request): return HttpResponse(os.path.exists(os.path.abspat...
25.066667
78
0.583333
39
0.034574
0
0
116
0.102837
0
0
26
0.02305
10632756b8a9faccc6b0059f4333f70590921702
1,887
py
Python
plasmapy/examples/plot_distribution.py
techieashish/PlasmaPy
b1e4ea269e59011dcafd5bf3f658b43e683af645
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
1
2020-02-05T18:40:50.000Z
2020-02-05T18:40:50.000Z
plasmapy/examples/plot_distribution.py
techieashish/PlasmaPy
b1e4ea269e59011dcafd5bf3f658b43e683af645
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plasmapy/examples/plot_distribution.py
techieashish/PlasmaPy
b1e4ea269e59011dcafd5bf3f658b43e683af645
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" 1D Maxwellian distribution function =================================== We import the usual modules, and the hero of this notebook, the Maxwellian 1D distribution: """ import numpy as np from astropy import units as u import matplotlib.pyplot as plt from astropy.constants import (m_e, k_B) from plasmapy.formula...
28.164179
72
0.54796
0
0
0
0
0
0
0
0
1,063
0.563328
1064936a6b00c876007e8bb9831e079b131672ea
50
py
Python
models/__init__.py
yoshikawat64m/kalman-variational-auto-encoder
7d7d0ed170746267f26cc869a8645b2c93da350d
[ "MIT" ]
null
null
null
models/__init__.py
yoshikawat64m/kalman-variational-auto-encoder
7d7d0ed170746267f26cc869a8645b2c93da350d
[ "MIT" ]
null
null
null
models/__init__.py
yoshikawat64m/kalman-variational-auto-encoder
7d7d0ed170746267f26cc869a8645b2c93da350d
[ "MIT" ]
null
null
null
from .kvae import KVAE __all__ = ( 'KVAE', )
8.333333
22
0.58
0
0
0
0
0
0
0
0
6
0.12
1065d659f9d77981c8c0c3a93121ee6395bb47c1
1,603
py
Python
get_color_wordcloud.py
Joe606/scrape_sportshoes
dde27cfd97bae3212a2fc35c6fef822667799761
[ "MIT" ]
null
null
null
get_color_wordcloud.py
Joe606/scrape_sportshoes
dde27cfd97bae3212a2fc35c6fef822667799761
[ "MIT" ]
null
null
null
get_color_wordcloud.py
Joe606/scrape_sportshoes
dde27cfd97bae3212a2fc35c6fef822667799761
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pymysql import time import os import matplotlib.pyplot as plt print(os.getcwd()) db = pymysql.connect( host='localhost', user='root', passwd='xxxx', database='男运动鞋' ) cur = db.cursor() cur.execute('select productSize from all_comments;') all_size...
17.423913
58
0.617592
0
0
0
0
0
0
0
0
352
0.218227
1065da3e4283e981e05c9ad525d6d52a88a2a890
3,769
py
Python
Lesson05_Strings/DNAExtravaganzaSOLUTION.py
WomensCodingCircle/CodingCirclePython
703aff89ffa0a3933baa02881f325d62087eb0af
[ "MIT" ]
4
2017-02-09T20:05:04.000Z
2018-12-06T13:13:35.000Z
Lesson05_Strings/DNAExtravaganzaSOLUTION.py
WomensCodingCircle/CodingCirclePython
703aff89ffa0a3933baa02881f325d62087eb0af
[ "MIT" ]
null
null
null
Lesson05_Strings/DNAExtravaganzaSOLUTION.py
WomensCodingCircle/CodingCirclePython
703aff89ffa0a3933baa02881f325d62087eb0af
[ "MIT" ]
12
2015-12-07T17:22:01.000Z
2021-12-29T02:50:15.000Z
# A little bit of molecular biology # Codons are non-overlapping triplets of nucleotides. # ATG CCC CTG GTA ... - this corresponds to four codons; spaces added for emphasis # The start codon is 'ATG' # Stop codons can be 'TGA' , 'TAA', or 'TAG', but they must be 'in frame' with the start codon. The first stop codon ...
39.673684
654
0.718493
0
0
0
0
0
0
0
0
2,300
0.610241
1065f40c6cc9ffeddf508a5f723541790f0616f0
528
py
Python
backend/radio/views.py
dtcooper/jewpizza
374b79c887c46560066e2e01e981a68d1acbd20f
[ "MIT" ]
5
2021-12-15T06:33:03.000Z
2022-03-04T00:46:59.000Z
backend/radio/views.py
dtcooper/jewpizza
374b79c887c46560066e2e01e981a68d1acbd20f
[ "MIT" ]
2
2021-10-11T17:58:17.000Z
2022-03-09T07:13:19.000Z
backend/radio/views.py
dtcooper/jewpizza
374b79c887c46560066e2e01e981a68d1acbd20f
[ "MIT" ]
null
null
null
from django.conf import settings from django.core.exceptions import PermissionDenied from django.views.generic import TemplateView class LiquidsoapScriptView(TemplateView): content_type = "text/plain" template_name = "radio/radio.liq" def dispatch(self, request, *args, **kwargs): secret_key = req...
33
63
0.706439
394
0.746212
0
0
0
0
0
0
43
0.081439
106647c6640c0372a460301a5b4d20903e8a43b6
2,601
py
Python
torcharc/module/merge.py
kengz/torcharc
e17043391c718a161956b4da98f9a7810efe62a2
[ "MIT" ]
1
2020-06-12T09:55:25.000Z
2020-06-12T09:55:25.000Z
torcharc/module/merge.py
kengz/torcharc
e17043391c718a161956b4da98f9a7810efe62a2
[ "MIT" ]
5
2021-06-26T18:25:39.000Z
2021-12-31T22:43:22.000Z
torcharc/module/merge.py
kengz/torcharc
e17043391c718a161956b4da98f9a7810efe62a2
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from torch import nn from typing import Dict, List import torch class Merge(ABC, nn.Module): '''A Merge module merges a dict of tensors into one tensor''' @abstractmethod def forward(self, xs: dict) -> torch.Tensor: # pragma: no cover raise NotImplementedError...
49.075472
205
0.721646
2,492
0.958093
0
0
581
0.223376
0
0
957
0.367935
1067f500bc63c5208908d4836e04b87c0d12fba5
6,919
py
Python
tests/milvus_benchmark/local_runner.py
NeatNerdPrime/milvus
98de0f87e99cd1ff86d8e63b91c76589b195abe1
[ "Apache-2.0" ]
1
2020-05-31T00:34:00.000Z
2020-05-31T00:34:00.000Z
tests/milvus_benchmark/local_runner.py
NeatNerdPrime/milvus
98de0f87e99cd1ff86d8e63b91c76589b195abe1
[ "Apache-2.0" ]
1
2021-03-25T23:23:50.000Z
2021-03-25T23:23:50.000Z
tests/milvus_benchmark/local_runner.py
flydragon2018/milvus
fa1effdb91d9fd9710ff5a9ae519bd538e79b0b0
[ "Apache-2.0" ]
1
2021-05-23T15:04:01.000Z
2021-05-23T15:04:01.000Z
import os import logging import pdb import time import random from multiprocessing import Process import numpy as np from client import MilvusClient import utils import parser from runner import Runner logger = logging.getLogger("milvus_benchmark.local_runner") class LocalRunner(Runner): """run local mode""" ...
52.022556
148
0.483162
6,653
0.961555
0
0
0
0
0
0
1,263
0.182541