hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
4
247
max_forks_repo_name
stringlengths
4
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
ee3e0c75593f9036757cd44575f1b1d05525a5f7
466
py
Python
complex_numbers_demo.py
agolla0440/my_python_workbook
3595037467e89e0950d0c356b2ba087e574e2bd9
[ "Apache-2.0" ]
null
null
null
complex_numbers_demo.py
agolla0440/my_python_workbook
3595037467e89e0950d0c356b2ba087e574e2bd9
[ "Apache-2.0" ]
null
null
null
complex_numbers_demo.py
agolla0440/my_python_workbook
3595037467e89e0950d0c356b2ba087e574e2bd9
[ "Apache-2.0" ]
null
null
null
# Python code to demonstrate the working of # complex(), real() and imag() # importing "cmath" for complex number operations import cmath # Initializing real numbers x = 5 y = 3 # converting x and y into complex number z = complex(x, y); s = 5 + 3j # printing real and imaginary part of complex number print("The real...
22.190476
59
0.706009
# Python code to demonstrate the working of # complex(), real() and imag() # importing "cmath" for complex number operations import cmath # Initializing real numbers x = 5 y = 3 # converting x and y into complex number z = complex(x, y); s = 5 + 3j # printing real and imaginary part of complex number print("The real...
0
0
0
ca7f062c5c06ccd07dbef5425465baf6b16d51dc
1,860
py
Python
actions/Gesticulate.py
GAIA-GMU/PAR
4a19c119c0e6537b98c948cc48960e8f17c2eccd
[ "Apache-2.0" ]
4
2019-01-03T08:45:59.000Z
2022-02-04T16:04:03.000Z
actions/Gesticulate.py
GAIA-GMU/PAR
4a19c119c0e6537b98c948cc48960e8f17c2eccd
[ "Apache-2.0" ]
3
2015-10-21T16:57:56.000Z
2018-04-08T13:40:36.000Z
actions/Gesticulate.py
GAIA-GMU/PAR
4a19c119c0e6537b98c948cc48960e8f17c2eccd
[ "Apache-2.0" ]
2
2016-04-14T08:40:34.000Z
2016-05-25T17:10:08.000Z
#jiggle.v.01 #Body_movement #This frame contains words for motions or actions an Agent p #erforms using some part of his/her body. A number of word #s in this frame occur as blends with Communication, in whic #h the action has an Addressee. For example, 'Pat nodded #at Kim.' These examples differ from Communicat...
35.769231
125
0.734946
#jiggle.v.01 #Body_movement #This frame contains words for motions or actions an Agent p #erforms using some part of his/her body. A number of word #s in this frame occur as blends with Communication, in whic #h the action has an Addressee. For example, 'Pat nodded #at Kim.' These examples differ from Communicat...
1,061
0
92
762ecaaa1aa4b6aacfa3ef56be0e34fa5e92bb98
5,841
py
Python
src/data/preprocessing/rescale_videos.py
HochulHwang/gc_test
c42e9ec3392bc02eef5e3943ec3bf79456e91bf9
[ "MIT" ]
null
null
null
src/data/preprocessing/rescale_videos.py
HochulHwang/gc_test
c42e9ec3392bc02eef5e3943ec3bf79456e91bf9
[ "MIT" ]
null
null
null
src/data/preprocessing/rescale_videos.py
HochulHwang/gc_test
c42e9ec3392bc02eef5e3943ec3bf79456e91bf9
[ "MIT" ]
null
null
null
import argparse import os import subprocess import time import sys import ipdb import pickle from utils.meter import * def get_duration(file): """Get the duration of a super_video using ffprobe. -> https://stackoverflow.com/questions/31024968/using-ffmpeg-to-obtain-super_video-durations-in-python""" cmd = 'f...
38.176471
161
0.610854
import argparse import os import subprocess import time import sys import ipdb import pickle from utils.meter import * def main(args): # Parameters from the args dir, h, w, fps, common_suffix = args.dir, args.height, args.width, args.fps, args.common_suffix # avi dir dir_split = dir.split('/') av...
2,105
0
23
ae17f01f41142d0d022b976b2202c39fb0209bae
1,258
py
Python
convertjson2xml.py
uhellstr/convertjson2xml
4638b22c36a8167328f4ba0c147f5efc2ba26a79
[ "CC0-1.0" ]
null
null
null
convertjson2xml.py
uhellstr/convertjson2xml
4638b22c36a8167328f4ba0c147f5efc2ba26a79
[ "CC0-1.0" ]
null
null
null
convertjson2xml.py
uhellstr/convertjson2xml
4638b22c36a8167328f4ba0c147f5efc2ba26a79
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # coding: UTF-8 """ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Simple Python routine to convert JSON to XML Example: python convertjson2xml.py /home/hellsulf/orascript/json2xml/JSON/2020_8_f1.json Note: Requires json2xml pip install json...
27.955556
92
0.511924
#!/usr/bin/env python # coding: UTF-8 """ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Simple Python routine to convert JSON to XML Example: python convertjson2xml.py /home/hellsulf/orascript/json2xml/JSON/2020_8_f1.json Note: Requires json2xml pip install json...
429
0
45
8fa49839a7459895664b9b7ab7501369560d80bf
17,843
py
Python
neural_network_lyapunov/examples/quadrotor2d/train_quadrotor_2d_demo.py
hongkai-dai/neural-network-lyapunov-1
8843c13f69f7f39cbb939ab250413e76f61843f6
[ "MIT" ]
58
2021-06-21T08:59:52.000Z
2022-03-31T14:35:23.000Z
neural_network_lyapunov/examples/quadrotor2d/train_quadrotor_2d_demo.py
StanfordASL/neural-network-lyapunov
9e5db1c7f91b42df729026c9aa8575bc126f66b6
[ "MIT" ]
8
2021-08-22T05:31:23.000Z
2022-03-29T03:47:07.000Z
neural_network_lyapunov/examples/quadrotor2d/train_quadrotor_2d_demo.py
StanfordASL/neural-network-lyapunov
9e5db1c7f91b42df729026c9aa8575bc126f66b6
[ "MIT" ]
11
2021-06-21T04:29:59.000Z
2022-03-30T05:54:43.000Z
import neural_network_lyapunov.examples.quadrotor2d.quadrotor_2d as\ quadrotor_2d import neural_network_lyapunov.relu_system as relu_system import neural_network_lyapunov.lyapunov as lyapunov import neural_network_lyapunov.feedback_system as feedback_system import neural_network_lyapunov.train_lyapunov as train_lya...
43.625917
79
0.584935
import neural_network_lyapunov.examples.quadrotor2d.quadrotor_2d as\ quadrotor_2d import neural_network_lyapunov.relu_system as relu_system import neural_network_lyapunov.lyapunov as lyapunov import neural_network_lyapunov.feedback_system as feedback_system import neural_network_lyapunov.train_lyapunov as train_lya...
4,763
0
142
a61174aa8ea4039c43ac95247e50a51800ae7406
1,492
py
Python
pmem-mariadb/storage/tokudb/PerconaFT/src/tests/hotindexer-undo-do-tests/prov-2.py
wc222/pmdk-examples
64aadc3a70471c469ac8e214eb1e04ff47cf18ff
[ "BSD-3-Clause" ]
11
2017-10-28T08:41:08.000Z
2021-06-24T07:24:21.000Z
pmem-mariadb/storage/tokudb/PerconaFT/src/tests/hotindexer-undo-do-tests/prov-2.py
WSCWDA/pmdk-examples
c3d079e52cd18b0e14836ef42bad9a995336bf90
[ "BSD-3-Clause" ]
1
2021-02-24T05:26:44.000Z
2021-02-24T05:26:44.000Z
pmem-mariadb/storage/tokudb/PerconaFT/src/tests/hotindexer-undo-do-tests/prov-2.py
isabella232/pmdk-examples
be7a5a18ba7bb8931e512f6d552eadf820fa2235
[ "BSD-3-Clause" ]
4
2017-09-07T09:33:26.000Z
2021-02-19T07:45:08.000Z
#!/usr/bin/env python # generate hotindexing undo provisional tests with 2 nested transactions import sys sys.exit(main())
32.434783
90
0.50134
#!/usr/bin/env python # generate hotindexing undo provisional tests with 2 nested transactions import sys def print_tr(fp, tr, trstack): trtype = tr[0] xid = tr[1:] if trtype == 'i': print >>fp, "insert", trstack, xid, "v"+xid if trtype == 'd': print >>fp, "delete", trstack, xid if...
1,298
0
69
ac6f08962c7a70d7904e36c675cdea6f01d2cc93
6,228
py
Python
bin/initialize_docker.py
ace-ecosystem/ACE
d17b5ef4bccf923ec6be5115fabe40f0627dab2d
[ "Apache-2.0" ]
24
2019-09-21T21:09:45.000Z
2022-03-15T19:48:13.000Z
bin/initialize_docker.py
ace-ecosystem/ACE
d17b5ef4bccf923ec6be5115fabe40f0627dab2d
[ "Apache-2.0" ]
54
2019-09-16T20:06:30.000Z
2021-08-18T22:22:08.000Z
bin/initialize_docker.py
ace-ecosystem/ACE
d17b5ef4bccf923ec6be5115fabe40f0627dab2d
[ "Apache-2.0" ]
9
2019-09-08T13:35:55.000Z
2021-01-03T15:23:37.000Z
#!/usr/bin/env python3 # # initializes your docker development environment by creating # random passwords for the database connections # and then updating the configuration files with those passwords # import os import os.path import random import re import shutil import string if __name__ == '__main__': main()
37.071429
100
0.60806
#!/usr/bin/env python3 # # initializes your docker development environment by creating # random passwords for the database connections # and then updating the configuration files with those passwords # import os import os.path import random import re import shutil import string def generate_password() -> str: ret...
5,862
0
47
831d72cbe7bfa22d7ef93930daa94f0581dad49a
7,485
py
Python
src/trolling_detection/feature_extraction.py
rafaharo/trolling_detection
e919fa3fc6d8cd8251050fd2355fdff51ac0bbdc
[ "Apache-2.0" ]
20
2015-11-18T22:26:54.000Z
2021-04-15T13:29:30.000Z
src/trolling_detection/feature_extraction.py
rafaharo/trolling_detection
e919fa3fc6d8cd8251050fd2355fdff51ac0bbdc
[ "Apache-2.0" ]
7
2021-06-08T22:35:59.000Z
2022-03-12T00:49:51.000Z
src/trolling_detection/feature_extraction.py
rafaharo/trolling_detection
e919fa3fc6d8cd8251050fd2355fdff51ac0bbdc
[ "Apache-2.0" ]
7
2015-11-22T11:15:32.000Z
2020-11-16T13:12:46.000Z
import spacy import numpy as np from sklearn.base import BaseEstimator nlp = spacy.load("en_core_web_sm")
37.613065
111
0.593454
import spacy import numpy as np from sklearn.base import BaseEstimator nlp = spacy.load("en_core_web_sm") def corpus_stats(collection): import nltk import pprint words = tokenize_collection(collection, lowercase=True, stopwords='english', min_length=3) text = nltk.Text(word.lower() for word in words) ...
7,012
18
341
f004d8abe5ec61c30e086dac9027353b1073addb
1,496
py
Python
151-200/155.py
yshshadow/Leetcode
5097f69bb0050d963c784d6bc0e88a7e871568ed
[ "MIT" ]
null
null
null
151-200/155.py
yshshadow/Leetcode
5097f69bb0050d963c784d6bc0e88a7e871568ed
[ "MIT" ]
null
null
null
151-200/155.py
yshshadow/Leetcode
5097f69bb0050d963c784d6bc0e88a7e871568ed
[ "MIT" ]
null
null
null
# Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. # # push(x) -- Push element x onto stack. # pop() -- Removes the element on top of the stack. # top() -- Get the top element. # getMin() -- Retrieve the minimum element in the stack. # Example: # MinStack minStack = new ...
22.666667
99
0.504679
# Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. # # push(x) -- Push element x onto stack. # pop() -- Removes the element on top of the stack. # top() -- Get the top element. # getMin() -- Retrieve the minimum element in the stack. # Example: # MinStack minStack = new ...
0
944
23
9e790b41d67e3b79d268959431651479f543e943
37,289
py
Python
bot.py
GrishakV/Discord
475b83dbe434758e3601e25c998b35cee41243f7
[ "MIT" ]
null
null
null
bot.py
GrishakV/Discord
475b83dbe434758e3601e25c998b35cee41243f7
[ "MIT" ]
null
null
null
bot.py
GrishakV/Discord
475b83dbe434758e3601e25c998b35cee41243f7
[ "MIT" ]
null
null
null
import discord import math client = discord.Client() @client.event @client.event # Здесь должен быть токен client.run('token')
52.006974
120
0.544745
import discord import math client = discord.Client() @client.event async def on_ready(): print('We have logged in as {0.user}'.format(client)) await client.change_presence(status=discord.Status.online, activity=discord.Game('!!помощь/!!help developed \ by Hustle Castle RU')) @client.event async def on...
38,522
0
44
d842d5a47e9434e11582d47c8d0b60516db1fcd3
3,632
py
Python
src/video_transcoding/tests/test_transcoding.py
esupoff/django-video-transcoding
83a1c415c0ea28e98313be597cf3212ed1578b1d
[ "MIT" ]
null
null
null
src/video_transcoding/tests/test_transcoding.py
esupoff/django-video-transcoding
83a1c415c0ea28e98313be597cf3212ed1578b1d
[ "MIT" ]
null
null
null
src/video_transcoding/tests/test_transcoding.py
esupoff/django-video-transcoding
83a1c415c0ea28e98313be597cf3212ed1578b1d
[ "MIT" ]
null
null
null
import subprocess from unittest import mock import pymediainfo from fffw.wrapper import ensure_binary from video_transcoding import transcoding from video_transcoding.tests.base import BaseTestCase class TranscodingTestCase(BaseTestCase): """ Video file transcoding tests.""" # Minimal mediainfo output temp...
30.779661
76
0.621421
import subprocess from unittest import mock import pymediainfo from fffw.wrapper import ensure_binary from video_transcoding import transcoding from video_transcoding.tests.base import BaseTestCase class TranscodingTestCase(BaseTestCase): """ Video file transcoding tests.""" # Minimal mediainfo output temp...
1,096
0
54
21c0ae89d848708782516431fc95bc67d765e4b8
1,668
py
Python
egnyte/tests/test_comments.py
matthiaspeplow/python-egnyte
2403ad97c9049e6fefc91fe124b9f592d41ec86b
[ "MIT" ]
18
2015-09-09T13:26:40.000Z
2022-03-09T16:22:09.000Z
egnyte/tests/test_comments.py
matthiaspeplow/python-egnyte
2403ad97c9049e6fefc91fe124b9f592d41ec86b
[ "MIT" ]
23
2015-03-02T18:30:39.000Z
2022-03-18T01:32:22.000Z
egnyte/tests/test_comments.py
matthiaspeplow/python-egnyte
2403ad97c9049e6fefc91fe124b9f592d41ec86b
[ "MIT" ]
30
2015-02-06T19:26:43.000Z
2022-03-13T18:09:39.000Z
from egnyte.tests.config import EgnyteTestCase from egnyte.tests.helpers import upload_file EGNYTE_FILE_NAME = '/sample.png' FILE_NAME = 'FILE1.png' COMMENT = 'test comment'
29.785714
74
0.694844
from egnyte.tests.config import EgnyteTestCase from egnyte.tests.helpers import upload_file EGNYTE_FILE_NAME = '/sample.png' FILE_NAME = 'FILE1.png' COMMENT = 'test comment' class TestComments(EgnyteTestCase): def setUp(self): super(TestComments, self).setUp() self.filepath = self.root_folder.pat...
1,348
14
130
45ab567ab3f140ddd79d624993dab68a74b6348a
767
py
Python
setup.py
timotheecour/ncluster
24baf049c2690505bf4dd63ec7d8822edb81b5a9
[ "MIT" ]
34
2019-05-19T02:49:02.000Z
2021-11-04T18:49:48.000Z
setup.py
timotheecour/ncluster
24baf049c2690505bf4dd63ec7d8822edb81b5a9
[ "MIT" ]
66
2019-05-19T18:46:53.000Z
2019-09-16T00:48:25.000Z
setup.py
timotheecour/ncluster
24baf049c2690505bf4dd63ec7d8822edb81b5a9
[ "MIT" ]
6
2019-10-01T07:28:52.000Z
2022-02-05T02:45:18.000Z
from setuptools import setup import re requirements = [] for line in open('requirements.txt'): req = line.split('#', 1)[0] # strip comments requirements.append(req.strip()) # follow https://stackoverflow.com/a/7071358/419116 VERSIONFILE = "ncluster/_version.py" verstrline = open(VERSIONFILE, "rt").read() VSRE = ...
29.5
77
0.650587
from setuptools import setup import re requirements = [] for line in open('requirements.txt'): req = line.split('#', 1)[0] # strip comments requirements.append(req.strip()) # follow https://stackoverflow.com/a/7071358/419116 VERSIONFILE = "ncluster/_version.py" verstrline = open(VERSIONFILE, "rt").read() VSRE = ...
0
0
0
d298e53254ad61b92a2db01c75972330584def3d
5,571
py
Python
launch_testing_ros/test/examples/talker_listener_launch_test.py
zmichaels11/launch_ros
c5e2aa2bf0eb60d61c66dbe0a6da365230b3387d
[ "Apache-2.0" ]
null
null
null
launch_testing_ros/test/examples/talker_listener_launch_test.py
zmichaels11/launch_ros
c5e2aa2bf0eb60d61c66dbe0a6da365230b3387d
[ "Apache-2.0" ]
null
null
null
launch_testing_ros/test/examples/talker_listener_launch_test.py
zmichaels11/launch_ros
c5e2aa2bf0eb60d61c66dbe0a6da365230b3387d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Apex.AI, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
33.560241
92
0.613714
# Copyright 2019 Apex.AI, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
4,604
27
126
301d7958969dbd90f1d78d08b2ac915a77c3f34d
14,629
py
Python
k8sv1/models/v1_service_spec.py
pearsontechnology/k8sv1
f9df106a4f2492d35af63b6bb2b1da4ed2b84579
[ "Apache-2.0" ]
1
2016-08-10T15:06:53.000Z
2016-08-10T15:06:53.000Z
k8sv1/models/v1_service_spec.py
pearsontechnology/k8sv1
f9df106a4f2492d35af63b6bb2b1da4ed2b84579
[ "Apache-2.0" ]
null
null
null
k8sv1/models/v1_service_spec.py
pearsontechnology/k8sv1
f9df106a4f2492d35af63b6bb2b1da4ed2b84579
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may not use ...
43.930931
494
0.672568
# coding: utf-8 """ No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may not use ...
0
0
0
dabdaa68ff6a6375976c6f121eebc12be4cfb29a
15,909
py
Python
third_party/python-peachpy/peachpy/x86_64/__init__.py
gautamkmr/caffe2
cde7f21d1e34ec714bc08dbfab945a1ad30e92ff
[ "MIT" ]
40
2021-06-01T07:37:59.000Z
2022-03-25T01:42:09.000Z
third_party/python-peachpy/peachpy/x86_64/__init__.py
gautamkmr/caffe2
cde7f21d1e34ec714bc08dbfab945a1ad30e92ff
[ "MIT" ]
14
2021-06-01T11:52:46.000Z
2022-03-25T02:13:08.000Z
third_party/python-peachpy/peachpy/x86_64/__init__.py
gautamkmr/caffe2
cde7f21d1e34ec714bc08dbfab945a1ad30e92ff
[ "MIT" ]
7
2021-07-20T19:34:26.000Z
2022-03-13T21:07:36.000Z
# This file is part of PeachPy package and is licensed under the Simplified BSD license. # See license.rst for the full text of the license. import peachpy.x86_64.abi import peachpy.x86_64.uarch import peachpy.x86_64.isa from peachpy.x86_64.registers import GeneralPurposeRegister, \ GeneralPurposeRegister8, ...
42.997297
117
0.680747
# This file is part of PeachPy package and is licensed under the Simplified BSD license. # See license.rst for the full text of the license. import peachpy.x86_64.abi import peachpy.x86_64.uarch import peachpy.x86_64.isa from peachpy.x86_64.registers import GeneralPurposeRegister, \ GeneralPurposeRegister8, ...
0
0
0
7bc5d190441e40498ea28034c4d1a5cdf3ac25e5
100
py
Python
.ignore/old/test.py
souvikdas95/SDN_VideoStreaming
a75a77a1d2a087c96102b2c02f5a67d3a90f1fa2
[ "Apache-2.0" ]
4
2018-04-26T20:33:15.000Z
2022-01-20T22:43:08.000Z
.ignore/old/test.py
souvikdas95/SDN_VideoStreaming
a75a77a1d2a087c96102b2c02f5a67d3a90f1fa2
[ "Apache-2.0" ]
null
null
null
.ignore/old/test.py
souvikdas95/SDN_VideoStreaming
a75a77a1d2a087c96102b2c02f5a67d3a90f1fa2
[ "Apache-2.0" ]
3
2019-05-02T08:51:20.000Z
2021-04-02T15:29:52.000Z
#!/usr/bin/python import os dir_path = os.path.dirname(os.path.realpath(__file__)) print(dir_path)
16.666667
54
0.76
#!/usr/bin/python import os dir_path = os.path.dirname(os.path.realpath(__file__)) print(dir_path)
0
0
0
0dd775f1314244f942526763de97ccd0c4f8d7b7
650
py
Python
setup.py
danilocgsilva/fast-docker-web
0ff607a77ab227463d0b97005692570a61ff5380
[ "MIT" ]
null
null
null
setup.py
danilocgsilva/fast-docker-web
0ff607a77ab227463d0b97005692570a61ff5380
[ "MIT" ]
null
null
null
setup.py
danilocgsilva/fast-docker-web
0ff607a77ab227463d0b97005692570a61ff5380
[ "MIT" ]
null
null
null
from setuptools import setup VERSION = "0.0.1" setup( name="fast_docker_web", version=VERSION, description="Wrapps the php web code with Docker environment", long_description_content_type="text/markdown", long_description=readme(), keywords="Docker web php development", url="https://github...
27.083333
81
0.706154
from setuptools import setup VERSION = "0.0.1" def readme(): with open("README.md") as f: return f.read() setup( name="fast_docker_web", version=VERSION, description="Wrapps the php web code with Docker environment", long_description_content_type="text/markdown", long_description=read...
49
0
23
dc7fd28eb18f185c7fecf2b691f9351acaecb42f
1,125
py
Python
backup/sql_queries.py
andela/waitress
55d4b99d2e5263a11609b18d478b2e514d79a7e8
[ "MIT" ]
2
2018-03-13T13:43:32.000Z
2019-07-30T02:56:48.000Z
backup/sql_queries.py
waitress-andela/waitress
55d4b99d2e5263a11609b18d478b2e514d79a7e8
[ "MIT" ]
16
2016-07-31T16:53:01.000Z
2020-02-14T00:00:27.000Z
backup/sql_queries.py
andela-osule/waitress
55d4b99d2e5263a11609b18d478b2e514d79a7e8
[ "MIT" ]
2
2017-01-15T03:25:00.000Z
2018-10-29T15:19:27.000Z
from datetime import date CURRENT_DATE = date.today().strftime("%Y-%m-%e") # FETCH_MEAL_RECORDS = 'SELECT * FROM app_slackuser;' FETCH_MEAL_RECORDS = f""" SELECT to_char(app_mealservice.date, 'DD-MM-YYYY'), app_mealservice.date_modified, app_mealservice.user_id, app_slackuser.firstname, app_slacku...
18.145161
53
0.718222
from datetime import date CURRENT_DATE = date.today().strftime("%Y-%m-%e") # FETCH_MEAL_RECORDS = 'SELECT * FROM app_slackuser;' FETCH_MEAL_RECORDS = f""" SELECT to_char(app_mealservice.date, 'DD-MM-YYYY'), app_mealservice.date_modified, app_mealservice.user_id, app_slackuser.firstname, app_slacku...
0
0
0
11a323460158d3aa3bb1cedd9f7de6d9705e2f8c
3,061
py
Python
src/scraper_suno.py
mawippel/b3-news-scraper
17bc8b2e7b5f9fb044ee5d3a91d5232be2873cd3
[ "MIT" ]
null
null
null
src/scraper_suno.py
mawippel/b3-news-scraper
17bc8b2e7b5f9fb044ee5d3a91d5232be2873cd3
[ "MIT" ]
null
null
null
src/scraper_suno.py
mawippel/b3-news-scraper
17bc8b2e7b5f9fb044ee5d3a91d5232be2873cd3
[ "MIT" ]
null
null
null
import requests import pytz from datetime import datetime, timedelta from bs4 import BeautifulSoup from model.news import News from database import Database import locale from urllib.request import Request, urlopen from utils.paragraph_utils import ParagraphUtils from utils.anchor_utils import AnchorUtils from utils.lo...
28.607477
119
0.679516
import requests import pytz from datetime import datetime, timedelta from bs4 import BeautifulSoup from model.news import News from database import Database import locale from urllib.request import Request, urlopen from utils.paragraph_utils import ParagraphUtils from utils.anchor_utils import AnchorUtils from utils.lo...
1,721
0
161
12668b0662a655240742d07e7000fb3f6eab4258
1,053
py
Python
code/ch02/ch02-02.py
takseki/python-machine-learning-book
d7c7a2e0845c6bab153d65a0b945e6d1cc5f61cb
[ "MIT" ]
2
2019-05-21T09:37:21.000Z
2021-06-01T15:08:57.000Z
code/ch02/ch02-02.py
takseki/python-machine-learning-book
d7c7a2e0845c6bab153d65a0b945e6d1cc5f61cb
[ "MIT" ]
null
null
null
code/ch02/ch02-02.py
takseki/python-machine-learning-book
d7c7a2e0845c6bab153d65a0b945e6d1cc5f61cb
[ "MIT" ]
null
null
null
from adaline_gd import * import matplotlib.pyplot as plt import numpy as np # ### Reading-in the Iris data import pandas as pd df = pd.read_csv('https://archive.ics.uci.edu/ml/' 'machine-learning-databases/iris/iris.data', header=None) df.tail() # select setosa and versicolor y = df.iloc[0:100, 4].values y =...
27.710526
75
0.681861
from adaline_gd import * import matplotlib.pyplot as plt import numpy as np # ### Reading-in the Iris data import pandas as pd df = pd.read_csv('https://archive.ics.uci.edu/ml/' 'machine-learning-databases/iris/iris.data', header=None) df.tail() # select setosa and versicolor y = df.iloc[0:100, 4].values y =...
0
0
0
180556b0a5845cd8102334b46c035498dfe38f9a
1,077
py
Python
cv/about/templatetags/about_extras.py
Trianglium/artist-cv
5a742a3998ba8778b2b6ddde2c3f88ff3cc85124
[ "MIT" ]
2
2022-01-29T00:45:58.000Z
2022-01-30T22:05:18.000Z
cv/about/templatetags/about_extras.py
Trianglium/artist-cv
5a742a3998ba8778b2b6ddde2c3f88ff3cc85124
[ "MIT" ]
14
2022-01-30T17:58:46.000Z
2022-02-23T14:42:10.000Z
cv/about/templatetags/about_extras.py
Trianglium/artist-cv
5a742a3998ba8778b2b6ddde2c3f88ff3cc85124
[ "MIT" ]
null
null
null
from django import template from django.utils.html import escape from django.utils.safestring import mark_safe from django.utils.html import format_html register = template.Library() # Rows @register.simple_tag @register.simple_tag # Columns @register.simple_tag @register.simple_tag # Container @register.simple...
26.268293
91
0.689879
from django import template from django.utils.html import escape from django.utils.safestring import mark_safe from django.utils.html import format_html register = template.Library() # Rows @register.simple_tag def row(extra_classes='', align=''): if align == '': return format_html('<div class="row {} m-...
599
0
132
2f682a3c15fc664243d30116747325721bbfa21e
3,050
py
Python
autoperf/harpy/har.py
mingyuchoo/django_study
608e6bddb37b03329a24a334184143a9881b3676
[ "MIT" ]
null
null
null
autoperf/harpy/har.py
mingyuchoo/django_study
608e6bddb37b03329a24a334184143a9881b3676
[ "MIT" ]
7
2019-12-04T23:52:28.000Z
2022-02-10T09:23:02.000Z
autoperf/harpy/har.py
mingyuchoo/django_study
608e6bddb37b03329a24a334184143a9881b3676
[ "MIT" ]
null
null
null
import json import chardet import codecs import os.path from . import page from . import entry
30.808081
78
0.516066
import json import chardet import codecs import os.path from . import page from . import entry class Har(object): def __init__(self, f): if not isinstance(f, dict): if not os.path.isfile(f): raise IOError("%s does not exist." % f) bytes = min(32, os.path.getsize(f)...
2,771
159
23
7dbee70ee3448453d8037574e32b443a6283b9ae
408
py
Python
sales/migrations/0016_sale_sale_date.py
destodasoftware/kately_api
89e4e80a93ebf8e5d2f2981d108ce5efde75d0dd
[ "MIT" ]
null
null
null
sales/migrations/0016_sale_sale_date.py
destodasoftware/kately_api
89e4e80a93ebf8e5d2f2981d108ce5efde75d0dd
[ "MIT" ]
10
2019-12-04T23:52:31.000Z
2022-02-10T08:34:15.000Z
sales/migrations/0016_sale_sale_date.py
destodasoftware/kately_api
89e4e80a93ebf8e5d2f2981d108ce5efde75d0dd
[ "MIT" ]
null
null
null
# Generated by Django 2.2.3 on 2019-08-07 16:56 from django.db import migrations, models
21.473684
65
0.612745
# Generated by Django 2.2.3 on 2019-08-07 16:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sales', '0015_remove_saleitem_verify_stock'), ] operations = [ migrations.AddField( model_name='sale', name='sale_da...
0
294
23
613d93c21a48e8f81e6befea30c6642e340cd035
93
py
Python
connectomics/io/__init__.py
donglaiw/pytorch_connectomics
c79a3cc82f853a86e98930475f6355d0022916dd
[ "MIT" ]
1
2020-05-17T08:01:56.000Z
2020-05-17T08:01:56.000Z
connectomics/io/__init__.py
donglaiw/pytorch_connectomics
c79a3cc82f853a86e98930475f6355d0022916dd
[ "MIT" ]
null
null
null
connectomics/io/__init__.py
donglaiw/pytorch_connectomics
c79a3cc82f853a86e98930475f6355d0022916dd
[ "MIT" ]
3
2020-03-31T21:40:12.000Z
2021-06-09T02:26:43.000Z
from .io_file import * from .io_data import * from .io_model import * from .io_args import *
18.6
23
0.741935
from .io_file import * from .io_data import * from .io_model import * from .io_args import *
0
0
0
56ea62f1e40bd437cb50bed3e119a8472d5b0982
354
py
Python
base/admin.py
mistadrumma/HeapBackends
a51c59078c93af78131da11ab043466518c1f032
[ "MIT" ]
null
null
null
base/admin.py
mistadrumma/HeapBackends
a51c59078c93af78131da11ab043466518c1f032
[ "MIT" ]
null
null
null
base/admin.py
mistadrumma/HeapBackends
a51c59078c93af78131da11ab043466518c1f032
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Menu admin.site.register(Menu, BaseAdmin)
16.857143
73
0.632768
from django.contrib import admin # Register your models here. from .models import Menu class BaseAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['name']}), ('Дополнительная информация', {'fields': ['link', 'css_class']}), ] list_display = ('name', 'link', 'css_class') admin...
0
222
23
0098a03af8aa0e1736b191e8a95b3bd060a1c890
1,066
py
Python
09/puzzle.py
lauriechanlam/AdventOfCode2020
6bb49e52fa01d4100401a2fb34a7f5e87b27bd9e
[ "MIT" ]
1
2021-11-20T23:49:00.000Z
2021-11-20T23:49:00.000Z
09/puzzle.py
lauriechanlam/AdventOfCode2020
6bb49e52fa01d4100401a2fb34a7f5e87b27bd9e
[ "MIT" ]
null
null
null
09/puzzle.py
lauriechanlam/AdventOfCode2020
6bb49e52fa01d4100401a2fb34a7f5e87b27bd9e
[ "MIT" ]
null
null
null
import copy import utils
29.611111
100
0.570356
import copy import utils def read_input(filename): lines = utils.read(filename, 'array') # string, array, json return [int(line) for line in lines] class Part1(utils.Part): def __init__(self): super().__init__(127) def run(self, input, is_test): previous_count = 5 if is_test else 2...
857
6
175
9ea94a27923ac2f381b246542f2eed7496ebe8cf
1,929
py
Python
demo/demo_onnx.py
jmu201521121021/ssd.pytorch
dd85eda6241495ea36b7d2cbdbdfabe52cbfd12e
[ "MIT" ]
2
2020-01-27T11:27:36.000Z
2021-03-22T08:57:38.000Z
demo/demo_onnx.py
jmu201521121021/ssd.pytorch
dd85eda6241495ea36b7d2cbdbdfabe52cbfd12e
[ "MIT" ]
null
null
null
demo/demo_onnx.py
jmu201521121021/ssd.pytorch
dd85eda6241495ea36b7d2cbdbdfabe52cbfd12e
[ "MIT" ]
null
null
null
import numpy as np import onnx import onnxruntime from layers import * from data import voc, coco import torch import cv2 if __name__ == '__main__': from data import VOC_CLASSES as labels num_classes = 21 cfg = voc priorbox = PriorBox(cfg) with torch.no_grad(): priors = prior...
31.622951
79
0.553655
import numpy as np import onnx import onnxruntime from layers import * from data import voc, coco import torch import cv2 if __name__ == '__main__': from data import VOC_CLASSES as labels num_classes = 21 cfg = voc priorbox = PriorBox(cfg) with torch.no_grad(): priors = prior...
0
0
0
dc9f3ba8792ce072f8fb57b0718f1ecd05f31553
36,977
py
Python
Devialet/CallMeMaybe/GeneratorOptions_pb2.py
fwestenberg/devialet
4760fafa612e08a97c67301e4086fe4a00311894
[ "MIT" ]
2
2021-03-13T19:27:07.000Z
2021-12-23T17:31:58.000Z
Devialet/CallMeMaybe/GeneratorOptions_pb2.py
fwestenberg/devialet
4760fafa612e08a97c67301e4086fe4a00311894
[ "MIT" ]
1
2021-08-05T08:21:15.000Z
2022-01-26T14:18:32.000Z
Devialet/CallMeMaybe/GeneratorOptions_pb2.py
fwestenberg/devialet
4760fafa612e08a97c67301e4086fe4a00311894
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: Devialet/CallMeMaybe/GeneratorOptions.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protob...
43.247953
4,166
0.78254
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: Devialet/CallMeMaybe/GeneratorOptions.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protob...
0
0
0
ffa28338164025a6fe39a6c24280b2f0e184ee96
1,514
py
Python
tests/test_auth_refresh_response.py
s0b0lev/mythx-models
0fc14fef9e41a68a7d97e0bb170fd0eca5693d9a
[ "MIT" ]
null
null
null
tests/test_auth_refresh_response.py
s0b0lev/mythx-models
0fc14fef9e41a68a7d97e0bb170fd0eca5693d9a
[ "MIT" ]
null
null
null
tests/test_auth_refresh_response.py
s0b0lev/mythx-models
0fc14fef9e41a68a7d97e0bb170fd0eca5693d9a
[ "MIT" ]
null
null
null
import json import pytest from mythx_models.exceptions import ValidationError from mythx_models.response import AuthRefreshResponse from . import common as testdata ACCESS_TOKEN = "my_fancy_access_token" REFRESH_TOKEN = "my_fancy_refresh_token" AUTH_REFRESH = {"access": ACCESS_TOKEN, "refresh": REFRESH_TOKEN} AUTH_...
29.115385
87
0.807133
import json import pytest from mythx_models.exceptions import ValidationError from mythx_models.response import AuthRefreshResponse from . import common as testdata ACCESS_TOKEN = "my_fancy_access_token" REFRESH_TOKEN = "my_fancy_refresh_token" AUTH_REFRESH = {"access": ACCESS_TOKEN, "refresh": REFRESH_TOKEN} AUTH_...
925
0
161
3318326c02c4b7cd5f1a87c02ef0b02e32a779c5
4,101
py
Python
Kaggle/Playgroud/RiskPrediction/Home-Credit-Default-Risk-master/py/trash/024_dup_only_giba.py
hehuanlin123/DeepLearning
6b7feabbbde9ac9489f76da4c06eeb6703fb165a
[ "MIT" ]
1
2020-02-28T12:03:39.000Z
2020-02-28T12:03:39.000Z
Kaggle/Playgroud/RiskPrediction/Home-Credit-Default-Risk-master/py/trash/024_dup_only_giba.py
hehuanlin123/DeepLearning
6b7feabbbde9ac9489f76da4c06eeb6703fb165a
[ "MIT" ]
null
null
null
Kaggle/Playgroud/RiskPrediction/Home-Credit-Default-Risk-master/py/trash/024_dup_only_giba.py
hehuanlin123/DeepLearning
6b7feabbbde9ac9489f76da4c06eeb6703fb165a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Aug 27 02:08:31 2018 @author: Kazuki """ import pandas as pd import numpy as np import utils, os #utils.start(__file__) #============================================================================== PREF = 'f024_' path_user_id = '../data/user_id_v5.c...
29.292857
106
0.592295
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Aug 27 02:08:31 2018 @author: Kazuki """ import pandas as pd import numpy as np import utils, os #utils.start(__file__) #============================================================================== PREF = 'f024_' path_user_id = '../data/user_id_v5.c...
0
0
0
db470b8bd3d3617ed948f0a33bc5422cf38e9e81
8,057
py
Python
Flash_No_Flash/net.py
mshafiei/DifferentiableSolver
9978faf98ee467739761608e524747da5ef672a4
[ "MIT" ]
null
null
null
Flash_No_Flash/net.py
mshafiei/DifferentiableSolver
9978faf98ee467739761608e524747da5ef672a4
[ "MIT" ]
null
null
null
Flash_No_Flash/net.py
mshafiei/DifferentiableSolver
9978faf98ee467739761608e524747da5ef672a4
[ "MIT" ]
null
null
null
from collections import OrderedDict import numpy as np import tensorflow as tf import deepfnf_utils.tf_utils as tfu
37.300926
78
0.555294
from collections import OrderedDict import numpy as np import tensorflow as tf import deepfnf_utils.tf_utils as tfu class Net: def __init__(self, num_basis=90, ksz=15, burst_length=2): self.weights = {} self.activations = OrderedDict() self.num_basis = num_basis self.ksz = ksz ...
1,987
5,928
23
136581993935c66a2d54b7d45358ba7131ab5982
2,352
py
Python
02_neural_XOR_opt.py
lepesa/Tensorflow
9040cc6910923b02a58c95431ed2fff4a8aca27e
[ "MIT" ]
null
null
null
02_neural_XOR_opt.py
lepesa/Tensorflow
9040cc6910923b02a58c95431ed2fff4a8aca27e
[ "MIT" ]
null
null
null
02_neural_XOR_opt.py
lepesa/Tensorflow
9040cc6910923b02a58c95431ed2fff4a8aca27e
[ "MIT" ]
null
null
null
# Sama kuin 01_neural.xor, paitsi eri syntaksi ja parempi SGD optimoija import numpy as np import tensorflow as tf # Parametrit: 2-4-1 verkko learning_rate = 0.01 n_hidden1 = 4 n_input = 2 n_ouput = 1 inputs = tf.placeholder("float", [None, n_input]) desired_outputs = tf.placeholder("float", [None, n_ouput]) # Ve...
39.864407
111
0.680272
# Sama kuin 01_neural.xor, paitsi eri syntaksi ja parempi SGD optimoija import numpy as np import tensorflow as tf # Parametrit: 2-4-1 verkko learning_rate = 0.01 n_hidden1 = 4 n_input = 2 n_ouput = 1 inputs = tf.placeholder("float", [None, n_input]) desired_outputs = tf.placeholder("float", [None, n_ouput]) # Ve...
0
0
0
26bec054061eedfe2e51c978b8b983e699dc1235
4,110
py
Python
src/easy_ftp/easy_ftp.py
mogproject/easy-ftp
843fd113a0e78e710f551d3669acf850dd79ffa5
[ "Apache-2.0" ]
null
null
null
src/easy_ftp/easy_ftp.py
mogproject/easy-ftp
843fd113a0e78e710f551d3669acf850dd79ffa5
[ "Apache-2.0" ]
null
null
null
src/easy_ftp/easy_ftp.py
mogproject/easy-ftp
843fd113a0e78e710f551d3669acf850dd79ffa5
[ "Apache-2.0" ]
null
null
null
import sys import click from pathlib import Path from easy_ftp.setting import Setting from easy_ftp import _print_version, VERSION_HELP, _command_wrapper @click.group() @click.option('--version', is_flag=True, callback=_print_version, expose_value=False, is_eager=True, help=VERSION_HELP) def main(): """ Super...
37.363636
119
0.70073
import sys import click from pathlib import Path from easy_ftp.setting import Setting from easy_ftp import _print_version, VERSION_HELP, _command_wrapper @click.group() @click.option('--version', is_flag=True, callback=_print_version, expose_value=False, is_eager=True, help=VERSION_HELP) def main(): """ Super...
1,113
0
69
223e111167d6f4b9b8b9d688e6d2bc1d4a386a52
2,093
py
Python
tests/unit/cli_test.py
steenzout/python-viivakoodi
78716f6fc8403abca1867be66fd94e74fbf4b187
[ "MIT" ]
6
2016-08-29T17:11:57.000Z
2020-09-30T11:33:51.000Z
tests/unit/cli_test.py
steenzout/python-viivakoodi
78716f6fc8403abca1867be66fd94e74fbf4b187
[ "MIT" ]
3
2016-11-03T17:43:28.000Z
2017-05-23T13:42:48.000Z
tests/unit/cli_test.py
steenzout/python-viivakoodi
78716f6fc8403abca1867be66fd94e74fbf4b187
[ "MIT" ]
3
2017-09-12T23:55:33.000Z
2018-12-03T16:39:12.000Z
# -*- coding: utf-8 -*- """Test cases for the steenzout.barcode.cli package.""" import abc import pytest import unittest from click.testing import CliRunner from steenzout import barcode from steenzout.barcode import cli @pytest.fixture class ClickTestCase(unittest.TestCase): """Abstract class to be used to ...
27.181818
84
0.606307
# -*- coding: utf-8 -*- """Test cases for the steenzout.barcode.cli package.""" import abc import pytest import unittest from click.testing import CliRunner from steenzout import barcode from steenzout.barcode import cli @pytest.fixture def runner(): return CliRunner() class ClickTestCase(unittest.TestCase):...
1,272
0
211
4c2f8fd022b49ae1a3d66285dda0ba5430514969
103
py
Python
imagersite/imagerprofile/admin.py
HeyIamJames/django-imager
645bf0d689a70cc6a39adff23bf6aa8627c381b2
[ "MIT" ]
null
null
null
imagersite/imagerprofile/admin.py
HeyIamJames/django-imager
645bf0d689a70cc6a39adff23bf6aa8627c381b2
[ "MIT" ]
11
2018-05-01T01:01:28.000Z
2018-05-17T15:45:15.000Z
imagersite/imagerprofile/admin.py
HeyIamJames/django-imager
645bf0d689a70cc6a39adff23bf6aa8627c381b2
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import ImagerProfile admin.site.register(ImagerProfile)
20.6
34
0.84466
from django.contrib import admin from .models import ImagerProfile admin.site.register(ImagerProfile)
0
0
0
d1720682932894bb8c7780155188f0dbc87e512f
1,131
py
Python
tests/tests_with_server_and_cached_results/model_tests_with_server/test_inventory_on_server/test_download_file_from_upload.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
5
2019-01-21T11:12:05.000Z
2020-03-05T20:52:14.000Z
tests/tests_with_server_and_cached_results/model_tests_with_server/test_inventory_on_server/test_download_file_from_upload.py
aquariumbio/pydent
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
28
2020-11-18T02:07:09.000Z
2021-06-08T15:49:41.000Z
tests/tests_with_server_and_cached_results/model_tests_with_server/test_inventory_on_server/test_download_file_from_upload.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
2
2021-02-27T19:23:45.000Z
2021-09-14T10:29:07.000Z
import time from os.path import isfile from os.path import join from uuid import uuid4 import pytest @pytest.mark.recode("no") def test_download(session, tmpdir): """Expect a new file to be created from the 'download' method.""" upload = session.Upload.one() path = tmpdir.mkdir("trident_test_downloads")...
25.133333
76
0.69496
import time from os.path import isfile from os.path import join from uuid import uuid4 import pytest @pytest.mark.recode("no") def test_download(session, tmpdir): """Expect a new file to be created from the 'download' method.""" upload = session.Upload.one() path = tmpdir.mkdir("trident_test_downloads")...
656
0
44
ef2717063f3d41efb4474d32eee83f77f000df49
2,524
py
Python
enum__examples.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
enum__examples.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
enum__examples.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # https://docs.python.org/3.5/library/enum.html from enum import Enum, IntEnum, unique print(Animal.ANT == Animal.BEE) # False print(Animal.ANT == Animal.ANT) # True print(Animal.ANT is Animal.ANT) # True print(Animal.ANT == 1) # False pri...
20.859504
91
0.604992
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # https://docs.python.org/3.5/library/enum.html from enum import Enum, IntEnum, unique class Animal(Enum): ANT = 1 BEE = 2 CAT = 3 DOG = 4 print(Animal.ANT == Animal.BEE) # False print(Animal.ANT == Animal.ANT) # True print(...
241
507
113
e5d1f115486040d8e3ec1867ddcefb66be333198
4,720
py
Python
quadratic_saudzi/quadeq.py
saudzi/quadratic-equation-saudzi
2ddf7f7494d64d1518d4b9fab69e95118d95cd16
[ "MIT" ]
1
2021-01-25T11:57:49.000Z
2021-01-25T11:57:49.000Z
quadratic_saudzi/quadeq.py
saudzi/quadratic-equation-saudzi
2ddf7f7494d64d1518d4b9fab69e95118d95cd16
[ "MIT" ]
null
null
null
quadratic_saudzi/quadeq.py
saudzi/quadratic-equation-saudzi
2ddf7f7494d64d1518d4b9fab69e95118d95cd16
[ "MIT" ]
1
2021-01-25T11:56:57.000Z
2021-01-25T11:56:57.000Z
# finds solutions to quadratic equations like # ax2 + bx + c = 0, where # a, b and c are real numbers and # a ≠ 0 import cmath import tkinter as tk
26.666667
110
0.562076
# finds solutions to quadratic equations like # ax2 + bx + c = 0, where # a, b and c are real numbers and # a ≠ 0 import cmath import tkinter as tk def quadeqinput(): # cycles until a valid number is given to input and then places it in a # fills variables a , b and c required for solving the equation...
4,493
0
69
4c7b4a37bad21cbcd165bcff4a7071fa9c5b5ff4
970
py
Python
rl/policies/egreedy.py
gpldecha/rl-concepts
384581632671d43e3225d922b0a8ced415fd147e
[ "MIT" ]
null
null
null
rl/policies/egreedy.py
gpldecha/rl-concepts
384581632671d43e3225d922b0a8ced415fd147e
[ "MIT" ]
null
null
null
rl/policies/egreedy.py
gpldecha/rl-concepts
384581632671d43e3225d922b0a8ced415fd147e
[ "MIT" ]
null
null
null
import numpy as np
29.393939
70
0.523711
import numpy as np class Egreedy: def __init__(self,Q,epsilon=0.5): """ epsilon-greedy action-selection policy Args: Q (numpy.ndarray) : Q-value table (states,actions) temp (int) : temperature """ if len(Q.shape) == 2: self._num_state...
0
928
23
6c2ecf57a21033e67b083b66817aec1ceee502d4
7,823
py
Python
crawler/fangchenggang_whg.py
zixinzeng-jennifer/public-culture-activity
abe908cb10407e7e4753ef541476e4267d24a1b8
[ "CC0-1.0" ]
null
null
null
crawler/fangchenggang_whg.py
zixinzeng-jennifer/public-culture-activity
abe908cb10407e7e4753ef541476e4267d24a1b8
[ "CC0-1.0" ]
null
null
null
crawler/fangchenggang_whg.py
zixinzeng-jennifer/public-culture-activity
abe908cb10407e7e4753ef541476e4267d24a1b8
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy from bs4 import BeautifulSoup from cultureBigdata.items import CultureEventItem, CultureNewsItem, CultureBasicItem import re from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.options import Options from selenium.we...
47.126506
123
0.488687
# -*- coding: utf-8 -*- import scrapy from bs4 import BeautifulSoup from cultureBigdata.items import CultureEventItem, CultureNewsItem, CultureBasicItem import re from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.options import Options from selenium.we...
6,895
838
24
fc7eedf54060d822e051eaffec7b768b277096fd
106
py
Python
refactorings/move_method.py
armingh2000/CodART
4a097ef97a927553dcecddeca757c52e2c834db6
[ "MIT" ]
null
null
null
refactorings/move_method.py
armingh2000/CodART
4a097ef97a927553dcecddeca757c52e2c834db6
[ "MIT" ]
null
null
null
refactorings/move_method.py
armingh2000/CodART
4a097ef97a927553dcecddeca757c52e2c834db6
[ "MIT" ]
1
2021-01-30T09:28:54.000Z
2021-01-30T09:28:54.000Z
from gen.java9 import Java9_v2Listener
15.142857
54
0.830189
from gen.java9 import Java9_v2Listener class MoveMethodRefactoringListener(Java9_v2Listener): pass
0
42
23
c483ce5e2c4f9be6eb9d8c61ea94c0ad1dbc30f9
4,472
py
Python
coinbase_commerce/client.py
nkoshell/coinbase-commerce-python
94dc57951ac897ffbc7861dc909f413028d6a0b9
[ "Apache-2.0" ]
1
2019-08-19T16:09:20.000Z
2019-08-19T16:09:20.000Z
coinbase_commerce/client.py
fakeNetflix/coinbase-repo-coinbase-commerce-python
61992c31bf1ac2f0be87aab05724f964e584daf4
[ "Apache-2.0" ]
null
null
null
coinbase_commerce/client.py
fakeNetflix/coinbase-repo-coinbase-commerce-python
61992c31bf1ac2f0be87aab05724f964e584daf4
[ "Apache-2.0" ]
null
null
null
import textwrap import requests from coinbase_commerce.api_resources.charge import Charge from coinbase_commerce.api_resources.checkout import Checkout from coinbase_commerce.api_resources.event import Event from coinbase_commerce.auth import APIAuth from coinbase_commerce.compat import quote from coinbase_commerce.c...
35.776
81
0.645572
import textwrap import requests from coinbase_commerce.api_resources.charge import Charge from coinbase_commerce.api_resources.checkout import Checkout from coinbase_commerce.api_resources.event import Event from coinbase_commerce.auth import APIAuth from coinbase_commerce.compat import quote from coinbase_commerce.c...
2,280
0
402
58a608f13a8c50bb5d5eb93285247e0297077fad
643
py
Python
pyexlatex/logic/format/eq.py
whoopnip/py-ex-latex
66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6
[ "MIT" ]
4
2020-06-08T07:17:12.000Z
2021-11-04T21:39:52.000Z
pyexlatex/logic/format/eq.py
nickderobertis/py-ex-latex
66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6
[ "MIT" ]
24
2020-02-17T17:20:44.000Z
2021-12-20T00:10:19.000Z
pyexlatex/logic/format/eq.py
nickderobertis/py-ex-latex
66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6
[ "MIT" ]
null
null
null
from sympy import Eq, Expr, Symbol from sympy import latex
24.730769
99
0.604977
from sympy import Eq, Expr, Symbol from sympy import latex def inline(eq: str) -> str: return f'${eq}$' def offset(eq: str) -> str: return f'\\begin{{equation}}\n\t{eq}\n\\end{{equation}}' def offset_no_numbering(eq: str) -> str: return f'\n$${eq}$$\n' def latex_partial(expr: Expr, eq_symbol: Symbol...
488
0
92
359b315778eda2bd6fd639b93b7eac52053de488
384
py
Python
bin/tests/galaxies.py
amoradinejad/boss_sbi
882afc5892c00530d74f40e94df6473e5067cf9d
[ "MIT" ]
1
2022-03-15T18:13:02.000Z
2022-03-15T18:13:02.000Z
bin/tests/galaxies.py
amoradinejad/boss_sbi
882afc5892c00530d74f40e94df6473e5067cf9d
[ "MIT" ]
11
2020-12-16T18:26:31.000Z
2021-04-02T14:58:37.000Z
bin/tests/galaxies.py
amoradinejad/boss_sbi
882afc5892c00530d74f40e94df6473e5067cf9d
[ "MIT" ]
2
2020-12-01T23:50:39.000Z
2020-12-07T13:43:53.000Z
#!/bin/env/python ''' test boss_sbi.galaxies ''' import numpy as np from boss_sbi.halos import Quijote_LHC_HR from boss_sbi import galaxies as Galaxies # read in halo catalog halos = Quijote_LHC_HR(1, z=0.5) # get LOWZ HOD parameters theta_hod = Galaxies.thetahod_lowz_ngc() # apply HOD gals = Galaxies.hodGalaxi...
19.2
54
0.75
#!/bin/env/python ''' test boss_sbi.galaxies ''' import numpy as np from boss_sbi.halos import Quijote_LHC_HR from boss_sbi import galaxies as Galaxies # read in halo catalog halos = Quijote_LHC_HR(1, z=0.5) # get LOWZ HOD parameters theta_hod = Galaxies.thetahod_lowz_ngc() # apply HOD gals = Galaxies.hodGalaxi...
0
0
0
51b96f6450de4baf97966c5214e280ff1a9ba13f
332
py
Python
commands/cmd_dice.py
robinstechprojects/RobinsDiscordAssistant
4658ebf928421f80fdc20758e6db712eeaf4726b
[ "MIT" ]
1
2021-02-14T23:22:03.000Z
2021-02-14T23:22:03.000Z
commands/cmd_dice.py
robinstechprojects/RobinsDiscordAssistant
4658ebf928421f80fdc20758e6db712eeaf4726b
[ "MIT" ]
17
2018-07-14T17:34:43.000Z
2018-08-24T19:30:19.000Z
commands/cmd_dice.py
robinstechprojects/RobinsDiscordAssistant
4658ebf928421f80fdc20758e6db712eeaf4726b
[ "MIT" ]
null
null
null
from random import randint
27.666667
89
0.641566
from random import randint def ex(args, message, client, invoke): args_out = "" if len(args) > 0: args_out = "\n\n*Attatched arguments %s*" % args.__str__()[1:-1].replace("'", "") psolution = randint(1, 6) solution = str(psolution) yield from client.send_message(message.channel, solution ...
281
0
23
b467956f05f61949ac0bbd75a4501c9017829cc6
4,516
py
Python
2012/AB_alt_Alex.py
Valchris/IEEEXtreme_WorkingAsIntended
c3e04633ce6d9c1a1582081767e8f2090adffa28
[ "MIT" ]
null
null
null
2012/AB_alt_Alex.py
Valchris/IEEEXtreme_WorkingAsIntended
c3e04633ce6d9c1a1582081767e8f2090adffa28
[ "MIT" ]
null
null
null
2012/AB_alt_Alex.py
Valchris/IEEEXtreme_WorkingAsIntended
c3e04633ce6d9c1a1582081767e8f2090adffa28
[ "MIT" ]
null
null
null
import sys, math input = sys.stdin.readline() x1 = int(input.split(',')[0].split('.')[0]) y1 = int(input.split(',')[0].split('.')[1]) x2 = int(input.split(',')[1].split('.')[0]) y2 = int(input.split(',')[1].split('.')[1]) if(x1 == x2 and y1 == y2): print str(0) exit(0) graph = dict() grid_size = 12 # Cover...
33.451852
113
0.544951
import sys, math def dijkstra(graph, source, dest): dist = dict() previous = dict() for node in graph: dist[node] = float('inf') dist[source] = 0 Q = graph.keys() # List of all nodes in the graph while len(Q) > 0: shortest_dist_node = None shortest_dist = float('i...
2,074
0
46
b379439a5cc72f4f7aad44cee9cb672fd509c35d
2,333
py
Python
example/example2_etl.py
elau1004/ETLite
8d3eff4963e98029636f76476ff028f16736b17e
[ "MIT" ]
1
2020-02-06T04:35:31.000Z
2020-02-06T04:35:31.000Z
example/example2_etl.py
elau1004/ETLite
8d3eff4963e98029636f76476ff028f16736b17e
[ "MIT" ]
20
2019-12-16T05:20:24.000Z
2021-06-02T00:54:51.000Z
example/example2_etl.py
elau1004/ETLite
8d3eff4963e98029636f76476ff028f16736b17e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2019 Edward Lau <elau1004@netscape.net> # Licensed under the MIT License. # import os import sys sys.path = [os.getcwd()] + sys.path # VS Code debugger needs it because it default cwd to {workspace}/example. from aiohttp import ClientResponse from etlite.common imp...
22.650485
110
0.632662
# -*- coding: utf-8 -*- # # Copyright (C) 2019 Edward Lau <elau1004@netscape.net> # Licensed under the MIT License. # import os import sys sys.path = [os.getcwd()] + sys.path # VS Code debugger needs it because it default cwd to {workspace}/example. from aiohttp import ClientResponse from etlite.common imp...
863
986
23
71d90a5ecb1180871549e4e5c7151a726bfda93e
1,012
py
Python
optimizer/scripts/compress_graph_branches.py
NestLakerJasonLIN/pipedream
f50827f2e28cbdbd82a4ea686c0498272b1460d6
[ "MIT" ]
273
2019-08-31T14:12:11.000Z
2022-03-05T13:34:25.000Z
optimizer/scripts/compress_graph_branches.py
albertsh10/pipedream
cad624f79a71f44ba79099f0c38321347b13e5c2
[ "MIT" ]
67
2019-09-19T15:36:59.000Z
2022-01-13T09:11:54.000Z
optimizer/scripts/compress_graph_branches.py
albertsh10/pipedream
cad624f79a71f44ba79099f0c38321347b13e5c2
[ "MIT" ]
100
2019-09-16T20:59:14.000Z
2022-03-23T12:56:56.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import sys sys.path.append("..") sys.path.append("../..") import graph if __name__ == '__main__': output_directory = "compressed_graphs" convert_graph("../baselines/profiles/inception_v3/graph.txt", output_directory, 'inceptio...
38.923077
101
0.736166
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import sys sys.path.append("..") sys.path.append("../..") import graph def convert_graph(graph_filename, output_directory, arch): print("Processing %s..." % graph_filename) gr = graph.Graph.from_str(open(graph_filename, 'r').re...
460
0
23
eb17933d0ce390acdfc2f778b0dd0289d6256b30
348
py
Python
products/choices.py
NewtonHead/e-commerce_project
5ed448b033cd3771fc63f62022fe84ac8e17442d
[ "MIT" ]
null
null
null
products/choices.py
NewtonHead/e-commerce_project
5ed448b033cd3771fc63f62022fe84ac8e17442d
[ "MIT" ]
null
null
null
products/choices.py
NewtonHead/e-commerce_project
5ed448b033cd3771fc63f62022fe84ac8e17442d
[ "MIT" ]
null
null
null
PREVIEW_CHOICES = [ ('slider', 'Slider'), ('pre-order', 'Pre-order'), ('new', 'New'), ('offer', 'Offer'), ('hidden', 'Hidden'), ] CATEGORY_CHOICES = [ ('accesory', 'Accesory'), ('bottom', 'Bottoms'), ('hoodie', 'Hoodies'), ('outerwear', 'Outerwears'), ('sneaker', 'Sneakers'), ...
21.75
32
0.505747
PREVIEW_CHOICES = [ ('slider', 'Slider'), ('pre-order', 'Pre-order'), ('new', 'New'), ('offer', 'Offer'), ('hidden', 'Hidden'), ] CATEGORY_CHOICES = [ ('accesory', 'Accesory'), ('bottom', 'Bottoms'), ('hoodie', 'Hoodies'), ('outerwear', 'Outerwears'), ('sneaker', 'Sneakers'), ...
0
0
0
ca1770de9a8c3fd90c376c41bc3a42bac719fcac
2,311
py
Python
tests/test_bernoulli.py
vishalbelsare/cgpm
56a481829448bddc9cdfebd42f65023287d5b7c7
[ "Apache-2.0" ]
26
2016-12-17T10:39:30.000Z
2020-10-28T14:16:42.000Z
tests/test_bernoulli.py
vishalbelsare/cgpm
56a481829448bddc9cdfebd42f65023287d5b7c7
[ "Apache-2.0" ]
120
2016-09-05T20:53:20.000Z
2021-11-24T18:32:27.000Z
tests/test_bernoulli.py
vishalbelsare/cgpm
56a481829448bddc9cdfebd42f65023287d5b7c7
[ "Apache-2.0" ]
8
2017-08-02T23:12:50.000Z
2021-11-16T07:20:24.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015-2016 MIT Probabilistic Computing Project # 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 # Unles...
36.109375
78
0.715707
# -*- coding: utf-8 -*- # Copyright (c) 2015-2016 MIT Probabilistic Computing Project # 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 # Unles...
1,481
0
23
e8920a733e7d2b1e3a5245b91bfd4ef3e171a3ce
987
py
Python
example/tests/db/utils.py
unitedstack/BoneDragon
497516133e1f7739de6157cd5d7811e82b3ea6e0
[ "Apache-2.0" ]
2
2015-09-17T06:43:08.000Z
2016-05-31T15:04:50.000Z
example/tests/db/utils.py
unitedstack/BoneDragon
497516133e1f7739de6157cd5d7811e82b3ea6e0
[ "Apache-2.0" ]
null
null
null
example/tests/db/utils.py
unitedstack/BoneDragon
497516133e1f7739de6157cd5d7811e82b3ea6e0
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 UnitedStack Inc. # 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...
34.034483
78
0.660588
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 UnitedStack Inc. # 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...
288
0
23
c364658a739246e17cfe468d318105b9164de221
1,890
py
Python
1 - Tabular Data Classification/Tabular Data Classification with AutoML.py
matthewrenze/ai-developers-toolk
743800ae8227d79c33c5610a64f60873d50186ec
[ "BSD-3-Clause" ]
10
2021-07-04T08:01:32.000Z
2022-03-23T05:16:51.000Z
1 - Tabular Data Classification/Tabular Data Classification with AutoML.py
matthewrenze/ai-developers-toolk
743800ae8227d79c33c5610a64f60873d50186ec
[ "BSD-3-Clause" ]
null
null
null
1 - Tabular Data Classification/Tabular Data Classification with AutoML.py
matthewrenze/ai-developers-toolk
743800ae8227d79c33c5610a64f60873d50186ec
[ "BSD-3-Clause" ]
4
2021-03-21T00:35:43.000Z
2022-03-23T05:16:50.000Z
# Tabular Data Classification with AutoML # Import libraries import pandas as pd import tensorflow as tf import autokeras as ak from sklearn.model_selection import train_test_split # Set logging level to hide warnings tf.get_logger().setLevel('ERROR') # Set folder path file_path = "C:/Demos/1 - Tabular Data Classifi...
20.106383
66
0.644444
# Tabular Data Classification with AutoML # Import libraries import pandas as pd import tensorflow as tf import autokeras as ak from sklearn.model_selection import train_test_split # Set logging level to hide warnings tf.get_logger().setLevel('ERROR') # Set folder path file_path = "C:/Demos/1 - Tabular Data Classifi...
0
0
0
e0946747cad0eca6b8e81c725fc12701528df85f
1,951
py
Python
studyPython2/io/test_io.py
fairylyk/studyPy
b227b92ac5707fba665942adbaba6943940819fd
[ "Apache-2.0" ]
null
null
null
studyPython2/io/test_io.py
fairylyk/studyPy
b227b92ac5707fba665942adbaba6943940819fd
[ "Apache-2.0" ]
1
2021-03-25T22:44:19.000Z
2021-03-25T22:44:19.000Z
studyPython2/io/test_io.py
fairylyk/studyPy
b227b92ac5707fba665942adbaba6943940819fd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # vim: set fileencoding=utf-8 : import os import codecs
25.671053
89
0.517171
#!/usr/bin/python # vim: set fileencoding=utf-8 : import os import codecs class TestIo(object): def test_open_read(self): # 获取当前目录os.getcwd(), 拼接文件路径 test_io.py path = os.path.join(os.getcwd(), 'test_io.py') File = open(path, "w") pdfgen_log_contents="" File.write(pdfg...
1,675
414
23
485498b6077fa0394c8ac385abd367cf876d0d57
3,509
py
Python
numba/cuda/tests/cudadrv/test_streams.py
luk-f-a/numba
3a682bd827e416335e3574bc7b10f0ec69adb701
[ "BSD-2-Clause", "BSD-3-Clause" ]
10
2019-04-27T08:45:34.000Z
2021-06-21T22:08:54.000Z
numba/cuda/tests/cudadrv/test_streams.py
luk-f-a/numba
3a682bd827e416335e3574bc7b10f0ec69adb701
[ "BSD-2-Clause", "BSD-3-Clause" ]
108
2020-08-17T22:38:26.000Z
2021-12-06T09:44:14.000Z
numba/cuda/tests/cudadrv/test_streams.py
luk-f-a/numba
3a682bd827e416335e3574bc7b10f0ec69adb701
[ "BSD-2-Clause", "BSD-3-Clause" ]
10
2019-07-20T02:16:10.000Z
2021-06-22T06:56:23.000Z
import asyncio import functools import threading import numpy as np from numba import cuda from numba.core import utils from numba.cuda.testing import unittest, CUDATestCase, skip_on_cudasim asyncio_create_task = asyncio.create_task if utils.PYVERSION >= (3, 7) \ else asyncio.ensure_future @skip_on_cudasim('CU...
33.419048
79
0.658022
import asyncio import functools import threading import numpy as np from numba import cuda from numba.core import utils from numba.cuda.testing import unittest, CUDATestCase, skip_on_cudasim def with_asyncio_loop(f): @functools.wraps(f) def runner(*args, **kwds): loop = asyncio.new_event_loop() ...
2,145
816
67
487c69b04b53a7e54070653782575d7e688fa444
3,988
py
Python
tests/unit/states/rvm_test.py
mitsuhiko/salt
3b211f87e307936f43c937edc62207dd1b887e19
[ "Apache-2.0" ]
4
2015-10-06T22:20:27.000Z
2017-09-04T08:03:44.000Z
tests/unit/states/rvm_test.py
mitsuhiko/salt
3b211f87e307936f43c937edc62207dd1b887e19
[ "Apache-2.0" ]
null
null
null
tests/unit/states/rvm_test.py
mitsuhiko/salt
3b211f87e307936f43c937edc62207dd1b887e19
[ "Apache-2.0" ]
null
null
null
import sys import os sys.path.insert( 0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) from saltunittest import TestCase, TestLoader, TextTestRunner, skipIf try: from mock import MagicMock, patch has_mock = True except ImportError: has_mock = False import salt.states.rvm as rvm...
41.978947
77
0.533852
import sys import os sys.path.insert( 0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) from saltunittest import TestCase, TestLoader, TextTestRunner, skipIf try: from mock import MagicMock, patch has_mock = True except ImportError: has_mock = False import salt.states.rvm as rvm...
3,234
8
157
8a2207d06a595ead74796c43ed339541739f2fa8
4,035
py
Python
prodj/network/packets_dump.py
beauburrows/python-prodj-link
1cc6b6c19e38ac09fadb91420e45adbe2c9691bb
[ "Apache-2.0" ]
66
2018-01-16T09:25:30.000Z
2022-03-24T14:58:44.000Z
prodj/network/packets_dump.py
beauburrows/python-prodj-link
1cc6b6c19e38ac09fadb91420e45adbe2c9691bb
[ "Apache-2.0" ]
25
2018-05-16T12:17:11.000Z
2021-02-06T11:09:03.000Z
prodj/network/packets_dump.py
beauburrows/python-prodj-link
1cc6b6c19e38ac09fadb91420e45adbe2c9691bb
[ "Apache-2.0" ]
18
2018-03-15T13:54:40.000Z
2022-03-24T20:49:43.000Z
import logging # dump functions for debugging
61.136364
129
0.692441
import logging # dump functions for debugging def dump_keepalive_packet(packet): if logging.getLogger().getEffectiveLevel() > 5: return if packet.subtype == "stype_status": logging.log(5, "keepalive {} model {} ({}) player {} ip {} mac {} devcnt {} u2 {} u3 {}".format( packet.subtype, packet.model, p...
3,897
0
91
9158cbcb8bab374fcf647e59f24ef09c04e55246
1,470
py
Python
examples/computing/1_single_set_of_inputs.py
nikhil-garg-rram/badcrossbar
52e1dd9f9db9858444a088344bea5ee7f7be52bb
[ "MIT" ]
5
2020-09-21T19:18:33.000Z
2022-03-12T10:24:22.000Z
examples/computing/1_single_set_of_inputs.py
nikhil-garg-rram/badcrossbar
52e1dd9f9db9858444a088344bea5ee7f7be52bb
[ "MIT" ]
null
null
null
examples/computing/1_single_set_of_inputs.py
nikhil-garg-rram/badcrossbar
52e1dd9f9db9858444a088344bea5ee7f7be52bb
[ "MIT" ]
5
2020-08-30T19:23:14.000Z
2021-11-27T02:35:15.000Z
import badcrossbar # Applied voltages in volts. # 2D arrays must be used to avoid ambiguity. applied_voltages = [[1.5], [2.3], [1.7]] # Device resistances in ohms. resistances = [[345, 903, 755, 257, 646], [652, 401, 508, 166, 454], [442, 874, 190,...
38.684211
79
0.695918
import badcrossbar # Applied voltages in volts. # 2D arrays must be used to avoid ambiguity. applied_voltages = [[1.5], [2.3], [1.7]] # Device resistances in ohms. resistances = [[345, 903, 755, 257, 646], [652, 401, 508, 166, 454], [442, 874, 190,...
0
0
0
cff92b0943bce083a781dec262c289344dcc28f6
1,778
py
Python
ltron/dataset/part_usage.py
aaronwalsman/ltron
ac82055687e74084a6e42da5c12725c523c5c63c
[ "CC-BY-2.0", "MIT" ]
15
2021-06-20T20:37:47.000Z
2022-03-01T00:50:38.000Z
ltron/dataset/part_usage.py
aaronwalsman/ltron
ac82055687e74084a6e42da5c12725c523c5c63c
[ "CC-BY-2.0", "MIT" ]
null
null
null
ltron/dataset/part_usage.py
aaronwalsman/ltron
ac82055687e74084a6e42da5c12725c523c5c63c
[ "CC-BY-2.0", "MIT" ]
1
2021-11-22T03:49:28.000Z
2021-11-22T03:49:28.000Z
#!/usr/bin/env python import os import json import numpy import tqdm import ltron.settings as settings from ltron.bricks.brick_scene import BrickScene omr_ldraw_directory = os.path.join(settings.paths['omr'], 'ldraw') file_names = list(sorted(os.listdir(omr_ldraw_directory))) path_data = {} for file_name in tqdm...
31.192982
76
0.685039
#!/usr/bin/env python import os import json import numpy import tqdm import ltron.settings as settings from ltron.bricks.brick_scene import BrickScene omr_ldraw_directory = os.path.join(settings.paths['omr'], 'ldraw') file_names = list(sorted(os.listdir(omr_ldraw_directory))) path_data = {} for file_name in tqdm...
0
0
0
36812a23e4d5c78e47f2df3b1260580f24cce52f
1,737
py
Python
mysite/myuser/urls.py
nessalc/django-basics
f29d892c06c7fed979ec104e908802b84bdc0691
[ "MIT" ]
null
null
null
mysite/myuser/urls.py
nessalc/django-basics
f29d892c06c7fed979ec104e908802b84bdc0691
[ "MIT" ]
null
null
null
mysite/myuser/urls.py
nessalc/django-basics
f29d892c06c7fed979ec104e908802b84bdc0691
[ "MIT" ]
null
null
null
from django.conf.urls import include,url,static from django.contrib.auth import views as auth_views from django.urls import reverse_lazy from . import views app_name='myuser' urlpatterns = [ url(r'^login/$', auth_views.login, {'template_name':'myuser/login.html'}, name='login'), url(r'^logout/$', auth_views.l...
86.85
300
0.780656
from django.conf.urls import include,url,static from django.contrib.auth import views as auth_views from django.urls import reverse_lazy from . import views app_name='myuser' urlpatterns = [ url(r'^login/$', auth_views.login, {'template_name':'myuser/login.html'}, name='login'), url(r'^logout/$', auth_views.l...
0
0
0
77d3ead09dbd34cf03aff54dd74801e8b1691692
1,027
py
Python
mqtt_ical/mqttnode.py
sourcesimian/mqtt-ical
6e87ec1f1c973692e4ca921c5f9fa6d244a20df3
[ "MIT" ]
4
2022-01-18T13:55:06.000Z
2022-01-29T19:45:20.000Z
mqtt_ical/mqttnode.py
sourcesimian/mqtt-ical
6e87ec1f1c973692e4ca921c5f9fa6d244a20df3
[ "MIT" ]
null
null
null
mqtt_ical/mqttnode.py
sourcesimian/mqtt-ical
6e87ec1f1c973692e4ca921c5f9fa6d244a20df3
[ "MIT" ]
null
null
null
import logging # def status(self, payload): # if not self._status_path: # return # if not isinstance(payload, str): # payload = json.dumps(payload, sort_keys=True) # self._mqtt.publish(self._status_path, payload=payload, qos=0, retain=True)
32.09375
95
0.647517
import logging class MqttNode: def __init__(self, mqtt, state_path, retain, qos, mode_path, on_mode=None): self._mqtt = mqtt self._state_path = state_path self._mode_path = mode_path self._retain = retain self._qos = qos self._on_mode = on_mode if mode_path...
634
-6
103
bd3658f14e70f5ff1e7abd079e6b0a0c2f266e88
2,613
py
Python
shaman_project/bbo/heuristics/genetic_algorithm/crossover.py
ValentinGaut/shaman
754e9eef3c097f3e58b0f06e7c08716bc1b11edd
[ "Apache-2.0" ]
null
null
null
shaman_project/bbo/heuristics/genetic_algorithm/crossover.py
ValentinGaut/shaman
754e9eef3c097f3e58b0f06e7c08716bc1b11edd
[ "Apache-2.0" ]
null
null
null
shaman_project/bbo/heuristics/genetic_algorithm/crossover.py
ValentinGaut/shaman
754e9eef3c097f3e58b0f06e7c08716bc1b11edd
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 BULL SAS All rights reserved """This module contains different functions to perform crossover using two chromosomes, i.e. building a child chromosome given two parents.""" # Ignore unused argument kwargs # pylint: disable=unused-argument import numpy as np def single_point_crossover(parent_1, paren...
35.794521
76
0.675086
# Copyright 2020 BULL SAS All rights reserved """This module contains different functions to perform crossover using two chromosomes, i.e. building a child chromosome given two parents.""" # Ignore unused argument kwargs # pylint: disable=unused-argument import numpy as np def single_point_crossover(parent_1, paren...
0
0
0
60d87214243952cad52138da25e7f3e509ad4c64
1,308
py
Python
mhctools/common.py
denklewer/mhctools
1aed7e8b975253349a0c504f7d42e7051139e459
[ "Apache-2.0" ]
47
2018-01-25T16:16:22.000Z
2022-03-21T13:59:52.000Z
mhctools/common.py
denklewer/mhctools
1aed7e8b975253349a0c504f7d42e7051139e459
[ "Apache-2.0" ]
117
2015-03-30T21:34:38.000Z
2017-12-04T18:45:42.000Z
mhctools/common.py
denklewer/mhctools
1aed7e8b975253349a0c504f7d42e7051139e459
[ "Apache-2.0" ]
11
2018-12-04T22:39:16.000Z
2021-11-11T16:02:43.000Z
# Copyright (c) 2014-2019. Mount Sinai School of Medicine # # 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 applicabl...
35.351351
74
0.724006
# Copyright (c) 2014-2019. Mount Sinai School of Medicine # # 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 applicabl...
208
0
23
05183e2b2aec2ed40cce4ab321bbe66589fe5951
381
py
Python
app/cli/message.py
michalwilk123/elliot-chat-client
4256dc78a514b93ef7a325d7ba5ad2674963d74f
[ "MIT" ]
null
null
null
app/cli/message.py
michalwilk123/elliot-chat-client
4256dc78a514b93ef7a325d7ba5ad2674963d74f
[ "MIT" ]
null
null
null
app/cli/message.py
michalwilk123/elliot-chat-client
4256dc78a514b93ef7a325d7ba5ad2674963d74f
[ "MIT" ]
null
null
null
class Message: """ Informations needed by the end user to read a message. Think about this structure as a DTO in something like java """ __slots__ = "sender", "time_stamp", "body"
25.4
64
0.624672
class Message: """ Informations needed by the end user to read a message. Think about this structure as a DTO in something like java """ __slots__ = "sender", "time_stamp", "body" def __init__(self, sender: str, time_stamp: str, body: str): self.sender: str = sender sel...
145
0
27
a978d9fa58c33e91a74b381c95b3193b52a769c0
1,110
py
Python
web_service/app.py
MEKTOUBI95/Bayan-NLP-
a2b77efc160c3f9afc9df13dcf119323622e536e
[ "MIT" ]
2
2021-02-23T10:25:29.000Z
2021-02-23T10:25:41.000Z
web_service/app.py
MEKTOUBI95/NLP_Project
a2b77efc160c3f9afc9df13dcf119323622e536e
[ "MIT" ]
1
2021-08-23T20:42:08.000Z
2021-08-23T20:42:08.000Z
web_service/app.py
MEKTOUBI95/NLP_Project
a2b77efc160c3f9afc9df13dcf119323622e536e
[ "MIT" ]
null
null
null
#!flask/bin/python from flask import Flask,request,send_from_directory,jsonify,Response import json import sys sys.path.append('modules/') import predict as pre import preprocessing as pro import diacritize as dia app = Flask(__name__) @app.route('/text_classification', methods=['GET']) @app.route('/', metho...
29.210526
118
0.718919
#!flask/bin/python from flask import Flask,request,send_from_directory,jsonify,Response import json import sys sys.path.append('modules/') import predict as pre import preprocessing as pro import diacritize as dia app = Flask(__name__) @app.route('/text_classification', methods=['GET']) def get_tasks(): url_t...
616
0
66
3f811da42ee7d646db7c66c72d9bd2352030470c
1,384
py
Python
tests/riscv/APIs/api_genVAforPA_alias_force.py
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
null
null
null
tests/riscv/APIs/api_genVAforPA_alias_force.py
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
null
null
null
tests/riscv/APIs/api_genVAforPA_alias_force.py
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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 # # THIS SOFTWARE IS PRO...
33.756098
92
0.689306
# # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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 # # THIS SOFTWARE IS PRO...
509
8
49
8d1f61f8a47fe90fdc112d9a83f7088991766cef
618
py
Python
vanir/core/blockchain/urls.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
1
2022-01-19T07:11:05.000Z
2022-01-19T07:11:05.000Z
vanir/core/blockchain/urls.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
10
2021-11-07T14:17:07.000Z
2022-03-30T18:24:48.000Z
vanir/core/blockchain/urls.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import ( BlockchainCreateView, BlockchainDeleteView, BlockchainDetailView, BlockchainListView, BlockchainUpdateView, ) app_name = "blockchain" urlpatterns = [ path("", BlockchainListView.as_view(), name="blockchain_list"), path("add/", BlockchainCre...
32.526316
87
0.720065
from django.urls import path from .views import ( BlockchainCreateView, BlockchainDeleteView, BlockchainDetailView, BlockchainListView, BlockchainUpdateView, ) app_name = "blockchain" urlpatterns = [ path("", BlockchainListView.as_view(), name="blockchain_list"), path("add/", BlockchainCre...
0
0
0
5eda9215b7d8087faace8752562568bc791575f8
1,045
py
Python
biochallenge/mixins.py
coolmaksat/biochallenge
792e5ad6d4e2d51017219df67c3f4eb7174e8eb6
[ "BSD-2-Clause" ]
4
2018-12-09T07:48:28.000Z
2020-08-05T11:53:56.000Z
biochallenge/mixins.py
coolmaksat/biochallenge
792e5ad6d4e2d51017219df67c3f4eb7174e8eb6
[ "BSD-2-Clause" ]
55
2017-11-02T10:58:09.000Z
2022-02-17T14:12:33.000Z
biochallenge/mixins.py
coolmaksat/biochallenge
792e5ad6d4e2d51017219df67c3f4eb7174e8eb6
[ "BSD-2-Clause" ]
4
2018-12-09T07:48:31.000Z
2019-09-26T13:58:44.000Z
import re from django.http import ( Http404, HttpResponseRedirect, HttpResponse) ACTION_RE = re.compile(r'\w+') class ActionMixin(object): """Mixin for managing actions """
27.5
79
0.630622
import re from django.http import ( Http404, HttpResponseRedirect, HttpResponse) ACTION_RE = re.compile(r'\w+') class FormRequestMixin(object): def get_form_kwargs(self, *args, **kwargs): kwargs = super(FormRequestMixin, self).get_form_kwargs(*args, **kwargs) kwargs['request'] = self...
757
10
77
dca210d86a120ef3202fb9b8c075aa83be825b88
4,092
py
Python
linepy/util.py/util.py
warettt/new
10131509ce137cee87d580bde037ecc5c078cadb
[ "BSD-2-Clause" ]
null
null
null
linepy/util.py/util.py
warettt/new
10131509ce137cee87d580bde037ecc5c078cadb
[ "BSD-2-Clause" ]
null
null
null
linepy/util.py/util.py
warettt/new
10131509ce137cee87d580bde037ecc5c078cadb
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import random import re import string import sys import threading import traceback import six from six import string_types # Python3 queue support. try: import Queue except ImportError: import queue as Queue import logging logger = logging.getLogger(__name__) thread_local = threadin...
31.72093
117
0.591153
# -*- coding: utf-8 -*- import random import re import string import sys import threading import traceback import six from six import string_types # Python3 queue support. try: import Queue except ImportError: import queue as Queue import logging logger = logging.getLogger(__name__) thread_local = threadin...
2,829
216
208
631f9015ec232d96ca6093352397f215c4607279
5,326
py
Python
Stax.py
scskwirl/Stax
aa598c80202f34283c9154974872be030aa74f23
[ "MIT" ]
null
null
null
Stax.py
scskwirl/Stax
aa598c80202f34283c9154974872be030aa74f23
[ "MIT" ]
null
null
null
Stax.py
scskwirl/Stax
aa598c80202f34283c9154974872be030aa74f23
[ "MIT" ]
null
null
null
#! /usr/bin/env python # File Docstring """STAX Copyright (c) 2010 by Santo Ciaravino""" print __doc__ print # Initialize Psyco try: import psyco psyco.full() except ImportError: print "NOTICE: 'Psyco' could not be initialized!" # Import Python Standard Libraries import __init__ # Directory Import impo...
33.080745
88
0.626737
#! /usr/bin/env python # File Docstring """STAX Copyright (c) 2010 by Santo Ciaravino""" print __doc__ print # Initialize Psyco try: import psyco psyco.full() except ImportError: print "NOTICE: 'Psyco' could not be initialized!" # Import Python Standard Libraries import __init__ # Directory Import impo...
28
0
26
06d26eba565fb4ed4af2f1f7fb92f5561cf711d4
17,850
py
Python
grammar/triggerExpressions.py
mouton5000/DiscreteEventApplicationEditor
4a4272fd9b0a7f3f228fee1e9e7b351e4a21cd33
[ "MIT" ]
null
null
null
grammar/triggerExpressions.py
mouton5000/DiscreteEventApplicationEditor
4a4272fd9b0a7f3f228fee1e9e7b351e4a21cd33
[ "MIT" ]
null
null
null
grammar/triggerExpressions.py
mouton5000/DiscreteEventApplicationEditor
4a4272fd9b0a7f3f228fee1e9e7b351e4a21cd33
[ "MIT" ]
null
null
null
import abc from random import randint from itertools import chain from utils.dictSet import DictContainer from database import Variable, \ Property, Event, \ SpriteProperty, TextProperty, LineProperty, \ OvalProperty, RectProperty, PolygonProperty, \ UNDEFINED_PARAMETER, KEYWORD_ID ...
28.514377
122
0.583249
import abc from random import randint from itertools import chain from utils.dictSet import DictContainer from database import Variable, \ Property, Event, \ SpriteProperty, TextProperty, LineProperty, \ OvalProperty, RectProperty, PolygonProperty, \ UNDEFINED_PARAMETER, KEYWORD_ID class BExpression(...
13,256
665
3,597
8d21db6a92031dde9efad2ebe1cddfa5989b0a55
4,142
py
Python
tutorials_mdfp/ex1_lig_preparation/gen_3d_structure_from_SMILES.py
greglandrum/mdfptools
672551cda817308f89254106dad84060747279be
[ "MIT" ]
22
2020-08-13T00:30:33.000Z
2021-12-13T09:28:05.000Z
tutorials_mdfp/ex1_lig_preparation/gen_3d_structure_from_SMILES.py
greglandrum/mdfptools
672551cda817308f89254106dad84060747279be
[ "MIT" ]
8
2020-07-08T11:42:57.000Z
2021-11-19T14:43:51.000Z
tutorials_mdfp/ex1_lig_preparation/gen_3d_structure_from_SMILES.py
greglandrum/mdfptools
672551cda817308f89254106dad84060747279be
[ "MIT" ]
6
2020-05-10T12:11:06.000Z
2021-11-14T11:10:16.000Z
############################# # DESCRIPTION # The gen_3d_structure scripts use the EmbedMolecule function of RDKit to generate the 3D structure of compounds, which is then minimized using MM force field within RDKit. # The ChemAxon majorms function is used to determined the protonation state at a pH of 7. # The l...
55.972973
544
0.649928
############################# # DESCRIPTION # The gen_3d_structure scripts use the EmbedMolecule function of RDKit to generate the 3D structure of compounds, which is then minimized using MM force field within RDKit. # The ChemAxon majorms function is used to determined the protonation state at a pH of 7. # The l...
0
0
0
8d44577a479d5c6fbc997391573f9180c53ad3ed
2,302
py
Python
cogs/errorhandler.py
jeraldlyh/horizon
8898019d79ed168b991a649c1f84b7d1ec4c433d
[ "Apache-2.0" ]
2
2021-07-06T10:42:02.000Z
2021-07-06T11:16:53.000Z
cogs/errorhandler.py
jeraldlyh/horizon
8898019d79ed168b991a649c1f84b7d1ec4c433d
[ "Apache-2.0" ]
null
null
null
cogs/errorhandler.py
jeraldlyh/horizon
8898019d79ed168b991a649c1f84b7d1ec4c433d
[ "Apache-2.0" ]
null
null
null
import discord import cogs.utils.checks from discord.ext import commands from cogs.utils.embed import (passembed, errorembed) # Adding the cog to main script
50.043478
180
0.667246
import discord import cogs.utils.checks from discord.ext import commands from cogs.utils.embed import (passembed, errorembed) class ErrorHandler(commands.Cog): def __init__(self, bot): self.bot = bot @commands.Cog.listener() async def on_command_error(self, ctx, error, bypass=False): ...
1,993
104
45
4906c53bbab667847c262725b176ed284a6facd7
909
py
Python
account_bank_statement_import_ofx2/__manifest__.py
ogecko/odoo_sale_addons
1ef6babcb25f9c05644f0718ab2ee2b9886de446
[ "MIT" ]
3
2019-09-06T02:15:30.000Z
2022-02-26T04:08:59.000Z
account_bank_statement_import_ofx2/__manifest__.py
ogecko/odoo_sale_addons
1ef6babcb25f9c05644f0718ab2ee2b9886de446
[ "MIT" ]
null
null
null
account_bank_statement_import_ofx2/__manifest__.py
ogecko/odoo_sale_addons
1ef6babcb25f9c05644f0718ab2ee2b9886de446
[ "MIT" ]
5
2020-04-19T02:12:25.000Z
2022-02-26T04:09:02.000Z
# -*- coding: utf-8 -*- { 'name': 'Import OFX2 Bank Statement', 'summary': "Imports Bank Statements using OFX format from banks like CBA, St George etc", 'description': """ This module adds support for the import of bank statements in `OFX format <https://en.wikipedia.org/wiki/Open_Financial_Excha...
31.344828
140
0.634763
# -*- coding: utf-8 -*- { 'name': 'Import OFX2 Bank Statement', 'summary': "Imports Bank Statements using OFX format from banks like CBA, St George etc", 'description': """ This module adds support for the import of bank statements in `OFX format <https://en.wikipedia.org/wiki/Open_Financial_Excha...
0
0
0
7cbd6bce4e62d1c21c8f141406b3b8edd7b8dce1
5,079
py
Python
biosaur2/search.py
levitsky/biosaur2
5cc8474906408c58ff043af722607c1452aa444f
[ "Apache-2.0" ]
null
null
null
biosaur2/search.py
levitsky/biosaur2
5cc8474906408c58ff043af722607c1452aa444f
[ "Apache-2.0" ]
null
null
null
biosaur2/search.py
levitsky/biosaur2
5cc8474906408c58ff043af722607c1452aa444f
[ "Apache-2.0" ]
1
2022-02-15T13:13:46.000Z
2022-02-15T13:13:46.000Z
from . import main, main_dia import argparse from copy import deepcopy import logging if __name__ == '__main__': run()
62.703704
176
0.680055
from . import main, main_dia import argparse from copy import deepcopy import logging def run(): parser = argparse.ArgumentParser( description='A feature detection LC-MS1 spectra', epilog=''' Example usage ------------- $ biosaur2 input.mzML ------------- ''', formatter...
4,932
0
23
161a0b247d44c4d1e30208a77dcc14199804298c
810
py
Python
exercises/concept/guidos-gorgeous-lasagna/lasagna.py
tamireinhorn/python
027e94759dd3281b0633c82171e377a28dc5a92e
[ "MIT" ]
1,177
2017-06-21T20:24:06.000Z
2022-03-29T02:30:55.000Z
exercises/concept/guidos-gorgeous-lasagna/lasagna.py
tamireinhorn/python
027e94759dd3281b0633c82171e377a28dc5a92e
[ "MIT" ]
1,890
2017-06-18T20:06:10.000Z
2022-03-31T18:35:51.000Z
exercises/concept/guidos-gorgeous-lasagna/lasagna.py
stigjb-forks/exercism-python
cfb620d1603eb9b08511f96f00f872c67cac0d05
[ "MIT" ]
1,095
2017-06-26T23:06:19.000Z
2022-03-29T03:25:38.000Z
# TODO: define the 'EXPECTED_BAKE_TIME' constant # TODO: consider defining the 'PREPARATION_TIME' constant # equal to the time it takes to prepare a single layer # TODO: define the 'bake_time_remaining()' function def bake_time_remaining(): """Calculate the bake time remaining. :param elapsed_bake_time...
33.75
78
0.745679
# TODO: define the 'EXPECTED_BAKE_TIME' constant # TODO: consider defining the 'PREPARATION_TIME' constant # equal to the time it takes to prepare a single layer # TODO: define the 'bake_time_remaining()' function def bake_time_remaining(): """Calculate the bake time remaining. :param elapsed_bake_time...
0
0
0
08980a63a65188c9f6c3f0bd7308b9fab977990a
3,010
py
Python
src/lib_learning/logistics_learning.py
landbroken/MyPaper
e77581262aac210e6273c3647d091f7cf53eae4a
[ "Apache-2.0" ]
null
null
null
src/lib_learning/logistics_learning.py
landbroken/MyPaper
e77581262aac210e6273c3647d091f7cf53eae4a
[ "Apache-2.0" ]
null
null
null
src/lib_learning/logistics_learning.py
landbroken/MyPaper
e77581262aac210e6273c3647d091f7cf53eae4a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3.9 # -*- coding: utf-8 -*- # # Copyright (C) 2022 LinYulong. All Rights Reserved # # @Time : 2022/2/7 # @Author : LinYulong # @Description: 逻辑斯蒂回归模型Logistics regression # https://blog.csdn.net/u013421629/article/details/78470020 import pandas as pd import numpy as np from sklearn.metrics import ...
32.021277
120
0.765781
#!/usr/bin/python3.9 # -*- coding: utf-8 -*- # # Copyright (C) 2022 LinYulong. All Rights Reserved # # @Time : 2022/2/7 # @Author : LinYulong # @Description: 逻辑斯蒂回归模型Logistics regression # https://blog.csdn.net/u013421629/article/details/78470020 import pandas as pd import numpy as np from sklearn.metrics import ...
0
0
0
6f258db693c29f43cc4cd1a8b19c06237502ad69
5,779
py
Python
components/server/src/data_model/sources/gitlab.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
33
2016-01-20T07:35:48.000Z
2022-03-14T09:20:51.000Z
components/server/src/data_model/sources/gitlab.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
2,410
2016-01-22T18:13:01.000Z
2022-03-31T16:57:34.000Z
components/server/src/data_model/sources/gitlab.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
21
2016-01-16T11:49:23.000Z
2022-01-14T21:53:22.000Z
"""GitLab source.""" from ..meta.entity import Color, EntityAttributeType from ..meta.source import Source from ..parameters import ( Branch, BranchesToIgnore, Days, FailureType, MergeRequestState, MultipleChoiceParameter, MultipleChoiceWithAdditionParameter, Upvotes, PrivateToken, ...
38.019737
113
0.601142
"""GitLab source.""" from ..meta.entity import Color, EntityAttributeType from ..meta.source import Source from ..parameters import ( Branch, BranchesToIgnore, Days, FailureType, MergeRequestState, MultipleChoiceParameter, MultipleChoiceWithAdditionParameter, Upvotes, PrivateToken, ...
0
0
0
074bd2ec67f9275164dd7cd4c3804631eac7cca3
897
py
Python
tusclient/storage/interface.py
bgardiner/tus-py-client
6dd06e2284071a84e223577d1cb1123062c6b666
[ "MIT" ]
105
2017-03-27T09:07:56.000Z
2022-03-10T01:50:48.000Z
tusclient/storage/interface.py
bgardiner/tus-py-client
6dd06e2284071a84e223577d1cb1123062c6b666
[ "MIT" ]
44
2017-04-12T20:49:27.000Z
2022-03-23T18:01:32.000Z
tusclient/storage/interface.py
bgardiner/tus-py-client
6dd06e2284071a84e223577d1cb1123062c6b666
[ "MIT" ]
35
2017-04-12T16:57:27.000Z
2022-03-22T09:10:05.000Z
""" Interface module defining a url storage API. """ import abc import six @six.add_metaclass(abc.ABCMeta)
23.605263
92
0.575251
""" Interface module defining a url storage API. """ import abc import six @six.add_metaclass(abc.ABCMeta) class Storage(object): @abc.abstractmethod def get_item(self, key): """ Return the tus url of a file, identified by the key specified. :Args: - key[str]: The unique i...
0
766
22
6f6c4530a9f351d64e3690a5b3953f002c1d9734
174
py
Python
roundup/anypy/__init__.py
jerrykan/herder
381f51198f21d232cc05d7c458638d78c0f25366
[ "MIT" ]
20
2016-06-16T15:34:21.000Z
2021-11-17T10:02:09.000Z
roundup/anypy/__init__.py
jerrykan/herder
381f51198f21d232cc05d7c458638d78c0f25366
[ "MIT" ]
2
2018-12-02T01:32:22.000Z
2021-12-09T20:30:04.000Z
roundup/anypy/__init__.py
jerrykan/herder
381f51198f21d232cc05d7c458638d78c0f25366
[ "MIT" ]
8
2016-12-08T09:21:05.000Z
2021-02-04T05:13:14.000Z
""" roundup.anypy - compatibility layer for any Python 2.3+ """ VERSION = '.'.join(map(str, (0, 3, )))
21.75
55
0.362069
""" roundup.anypy - compatibility layer for any Python 2.3+ """ VERSION = '.'.join(map(str, (0, 3, )))
0
0
0
d0324619dae863ab97477bac94c6a3e7377dbb16
2,311
py
Python
modules/encoder.py
shindoji0708/Fortnite-LobbyBot-v2
02ec934b3a11fe7717332708be59c89081354daa
[ "MIT" ]
21
2021-01-17T02:34:51.000Z
2022-03-17T10:23:23.000Z
modules/encoder.py
namakemono-san/Fortnite-LobbyBot-v2
ea37b1b193cd80bbf6499cca51764dd642670d85
[ "MIT" ]
4
2021-05-01T20:35:08.000Z
2022-03-27T13:59:10.000Z
modules/encoder.py
namakemono-san/Fortnite-LobbyBot-v2
ea37b1b193cd80bbf6499cca51764dd642670d85
[ "MIT" ]
31
2021-01-21T21:14:25.000Z
2022-02-03T09:59:45.000Z
# -*- coding: utf-8 -*- import importlib from json.encoder import (_make_iterencode, JSONEncoder, encode_basestring_ascii, INFINITY, encode_basestring) discord = importlib.import_module('discord') fortnitepy = importlib.import_module('fortnitepy')
34.492537
89
0.553007
# -*- coding: utf-8 -*- import importlib from json.encoder import (_make_iterencode, JSONEncoder, encode_basestring_ascii, INFINITY, encode_basestring) discord = importlib.import_module('discord') fortnitepy = importlib.import_module('fortnitepy') class M...
1,878
12
110
591f451e31fcbf0511c1ae7905c3c96f3f3aac64
5,235
py
Python
scripts/aws-inventory/res/db.py
vagnerd/stack-mapping
af57b9813a7e5a0a8de9d21741f7d992c3ae5d51
[ "Apache-2.0" ]
null
null
null
scripts/aws-inventory/res/db.py
vagnerd/stack-mapping
af57b9813a7e5a0a8de9d21741f7d992c3ae5d51
[ "Apache-2.0" ]
null
null
null
scripts/aws-inventory/res/db.py
vagnerd/stack-mapping
af57b9813a7e5a0a8de9d21741f7d992c3ae5d51
[ "Apache-2.0" ]
null
null
null
import boto3 import botocore import json import config import res.utils as utils import res.glob as glob # ======================================================================================================================= # # Supported services : RDS, DynamoDB, ElastiCache, Neptune, Amazon Redshift # Unsuppo...
25.168269
121
0.492264
import boto3 import botocore import json import config import res.utils as utils import res.glob as glob # ======================================================================================================================= # # Supported services : RDS, DynamoDB, ElastiCache, Neptune, Amazon Redshift # Unsuppo...
0
0
0
d81794039f86752f1a995659ba478766ba3350a4
830
py
Python
Main.py
iamskab/Diffie-Hellman
38752d458c214cf1777b7e925d37735ff5268d35
[ "Apache-2.0" ]
null
null
null
Main.py
iamskab/Diffie-Hellman
38752d458c214cf1777b7e925d37735ff5268d35
[ "Apache-2.0" ]
null
null
null
Main.py
iamskab/Diffie-Hellman
38752d458c214cf1777b7e925d37735ff5268d35
[ "Apache-2.0" ]
null
null
null
from Sockets import Client from Sockets import Server from argparse import ArgumentParser if __name__ == '__main__': parser = ArgumentParser() parser.add_argument("-m", "--mode", dest="mode", type=str, required=True, help="CLIENT to start a client or SERVER to start a server" ...
28.62069
80
0.614458
from Sockets import Client from Sockets import Server from argparse import ArgumentParser if __name__ == '__main__': parser = ArgumentParser() parser.add_argument("-m", "--mode", dest="mode", type=str, required=True, help="CLIENT to start a client or SERVER to start a server" ...
0
0
0
4c5e248e41915a9b1f5fc53af07ee4fe92114045
346
py
Python
python_modules/libraries/dagster-celery/dagster_celery/app.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
4,606
2018-06-21T17:45:20.000Z
2022-03-31T23:39:42.000Z
python_modules/libraries/dagster-celery/dagster_celery/app.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
6,221
2018-06-12T04:36:01.000Z
2022-03-31T21:43:05.000Z
python_modules/libraries/dagster-celery/dagster_celery/app.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
619
2018-08-22T22:43:09.000Z
2022-03-31T22:48:06.000Z
# The celery CLI points to a module (via the -A argument) # to find tasks. This file exists to be a target for that argument. # Examples: # - See `worker_start_command` in dagster_celery.cli # - deployment-flower.yaml helm chart from .make_app import make_app from .tasks import create_task app = make_app() execut...
28.833333
67
0.754335
# The celery CLI points to a module (via the -A argument) # to find tasks. This file exists to be a target for that argument. # Examples: # - See `worker_start_command` in dagster_celery.cli # - deployment-flower.yaml helm chart from .make_app import make_app from .tasks import create_task app = make_app() execut...
0
0
0
6d3bab736c213a596fb3228f82800c8b44ac3901
3,863
py
Python
geonorge_download.py
osmno/ssr2_to_osm
c7be01006dcb3a83ae2f9bd18b6d1382d8b8dbd4
[ "WTFPL" ]
1
2018-04-02T13:04:43.000Z
2018-04-02T13:04:43.000Z
geonorge_download.py
obtitus/ssr2_to_osm
3674b3d78666e79306af237630782d6892986853
[ "WTFPL" ]
2
2021-12-20T15:30:24.000Z
2022-01-31T08:45:08.000Z
geonorge_download.py
osmno/ssr2_to_osm
c7be01006dcb3a83ae2f9bd18b6d1382d8b8dbd4
[ "WTFPL" ]
null
null
null
# standard python imports import re import time import random import zipfile import logging logger = logging.getLogger('utility_to_osm.ssr2') # third party imports from bs4 import BeautifulSoup # shared helper library import utility_to_osm.gentle_requests as gentle_requests def get_geonorge_url_dct(url='https://nedl...
34.801802
495
0.664509
# standard python imports import re import time import random import zipfile import logging logger = logging.getLogger('utility_to_osm.ssr2') # third party imports from bs4 import BeautifulSoup # shared helper library import utility_to_osm.gentle_requests as gentle_requests def get_geonorge_url_dct(url='https://nedl...
2,255
0
69
f3a1c3a75465fa329296c630a8d0d6d3af988e34
513
py
Python
desktop/core/src/desktop/migrations/0008_auto_20191031_0704.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/src/desktop/migrations/0008_auto_20191031_0704.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/src/desktop/migrations/0008_auto_20191031_0704.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-10-31 14:04 from __future__ import unicode_literals from django.db import migrations, models
24.428571
104
0.635478
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-10-31 14:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('desktop', '0007_initial'), ] operations = [ migrations.AlterField( ...
0
333
23
f11406cb02497a357a6c6048ca9a0fdbf31a5ac0
1,106
py
Python
python_api/tests/test_projection_settings.py
berkerdemoglu/My3DEngine
86edd838563a1d0691c1a267f5af62e184db33f5
[ "CC0-1.0" ]
1
2021-05-10T08:50:45.000Z
2021-05-10T08:50:45.000Z
python_api/tests/test_projection_settings.py
berkerdemoglu/My3DEngine
86edd838563a1d0691c1a267f5af62e184db33f5
[ "CC0-1.0" ]
4
2021-05-10T10:46:04.000Z
2021-05-11T11:10:36.000Z
python_api/tests/test_projection_settings.py
berkerdemoglu/My3DEngine
86edd838563a1d0691c1a267f5af62e184db33f5
[ "CC0-1.0" ]
null
null
null
import unittest from src.api import Settings from src.api.geom import ProjectionSettings class ProjectionSettingsTestCase(unittest.TestCase): """Tests the ProjectionSettings class.""" def test_as_dict(self): """Test the as_dict() method of the ProjectionSettings class.""" d = self.ps.as_dict() self.assertE...
26.333333
76
0.725136
import unittest from src.api import Settings from src.api.geom import ProjectionSettings class ProjectionSettingsTestCase(unittest.TestCase): """Tests the ProjectionSettings class.""" def setUp(self): self.ps = ProjectionSettings( Settings(1900, 1080, 30, "CS:GO") , 90, 0.1, 1000 ) def test_as_dict(sel...
98
0
48
d418e81e09b364ac76ab6e495d61ed3f1103947d
3,878
py
Python
rubin_sim/utils/CodeUtilities.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
rubin_sim/utils/CodeUtilities.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
rubin_sim/utils/CodeUtilities.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
import numpy as np import numbers import gc def sims_clean_up(): """ This method will clean up data caches created by the sims software stack. Any time a cache is added to the sims software stack, it can be added to the list sims_clean_up.targets. When sims_clean_up() is called, it will loop thro...
32.864407
93
0.592573
import numpy as np import numbers import gc def sims_clean_up(): """ This method will clean up data caches created by the sims software stack. Any time a cache is added to the sims software stack, it can be added to the list sims_clean_up.targets. When sims_clean_up() is called, it will loop thro...
0
0
0
917abbb7194504097bd70f049e7bdb79b894ed64
411
py
Python
keras_model.py
DiptoChakrabarty/special-octo-computing-machine
26306e7d9780e7ebc92e7e0129a877c919d18760
[ "MIT" ]
null
null
null
keras_model.py
DiptoChakrabarty/special-octo-computing-machine
26306e7d9780e7ebc92e7e0129a877c919d18760
[ "MIT" ]
null
null
null
keras_model.py
DiptoChakrabarty/special-octo-computing-machine
26306e7d9780e7ebc92e7e0129a877c919d18760
[ "MIT" ]
1
2019-12-15T04:02:51.000Z
2019-12-15T04:02:51.000Z
import pandas as pd from sklearn.model_selection import train_test_split from keras_text_summarization.library.utility.plot_utils import plot_and_save_history from keras_text_summarization.library.seq2seq import Seq2SeqSummarizer from keras_text_summarization.library.applications.fake_news_loader import fit_text impor...
41.1
85
0.875912
import pandas as pd from sklearn.model_selection import train_test_split from keras_text_summarization.library.utility.plot_utils import plot_and_save_history from keras_text_summarization.library.seq2seq import Seq2SeqSummarizer from keras_text_summarization.library.applications.fake_news_loader import fit_text impor...
0
0
0
54c703bb1b42529db6b8ecde9b7364c0daaf9d72
34,157
py
Python
bin/MutationCalling.py
bio-apps/covid-outcome
9c465ce631717861bbc71c4041993480a9e6bde7
[ "BSD-2-Clause" ]
null
null
null
bin/MutationCalling.py
bio-apps/covid-outcome
9c465ce631717861bbc71c4041993480a9e6bde7
[ "BSD-2-Clause" ]
null
null
null
bin/MutationCalling.py
bio-apps/covid-outcome
9c465ce631717861bbc71c4041993480a9e6bde7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*-coding: utf8 -*- """ Library for multiple alignment and mutation calling in hCov-19 analysis. Copyright 2021 by Regina Kalcsevszki (kalcsevszkiregi@gmail.com), Balázs Ligeti (obalasz@gmail.com). All rights reserved. """ import os from os.path import join from Bio import SeqIO import re imp...
43.960103
171
0.608192
#!/usr/bin/env python # -*-coding: utf8 -*- """ Library for multiple alignment and mutation calling in hCov-19 analysis. Copyright 2021 by Regina Kalcsevszki (kalcsevszkiregi@gmail.com), Balázs Ligeti (obalasz@gmail.com). All rights reserved. """ import os from os.path import join from Bio import SeqIO import re imp...
31,806
0
602
ef2fa7483bb42173fadb004a2a74bbcec6cc6415
1,096
py
Python
app/server/server.py
pf-core/pf-core
0caf8abde968b959be2284518f7dc951ba680202
[ "MIT" ]
null
null
null
app/server/server.py
pf-core/pf-core
0caf8abde968b959be2284518f7dc951ba680202
[ "MIT" ]
null
null
null
app/server/server.py
pf-core/pf-core
0caf8abde968b959be2284518f7dc951ba680202
[ "MIT" ]
1
2019-09-20T01:12:13.000Z
2019-09-20T01:12:13.000Z
import logging from mongoengine import connect from flask import Flask from flask_socketio import SocketIO, emit DEBUG = True app = Flask(__name__) app.config.from_object(__name__) socketio = SocketIO(app, host='0.0.0.0', port=5000) logging.basicConfig( level=logging.INFO, format="[%(asctime)s] %(message...
19.927273
64
0.665146
import logging from mongoengine import connect from flask import Flask from flask_socketio import SocketIO, emit DEBUG = True app = Flask(__name__) app.config.from_object(__name__) socketio = SocketIO(app, host='0.0.0.0', port=5000) logging.basicConfig( level=logging.INFO, format="[%(asctime)s] %(message...
461
0
44
c7391409ad6a081f54201650ef74c171e5a54d23
513
py
Python
tests/hydra_wandb_test.py
AlexeyVatolin/lightning-hydra-template
7e9cf910a512297dfb1f8f219227822fe7786f22
[ "MIT" ]
1
2021-12-03T02:33:29.000Z
2021-12-03T02:33:29.000Z
tests/hydra_wandb_test.py
AlexeyVatolin/lightning-hydra-template
7e9cf910a512297dfb1f8f219227822fe7786f22
[ "MIT" ]
null
null
null
tests/hydra_wandb_test.py
AlexeyVatolin/lightning-hydra-template
7e9cf910a512297dfb1f8f219227822fe7786f22
[ "MIT" ]
null
null
null
##################################################### # export WANDB_START_METHOD=thread # python hydra_wandb_test.py -m +some_param=1,2,3,4 ##################################################### # import os, sys # sys.path.insert(1, os.path.join(sys.path[0], "..")) # print(os.path.abspath(os.curdir)) import hydra i...
21.375
65
0.54386
##################################################### # export WANDB_START_METHOD=thread # python hydra_wandb_test.py -m +some_param=1,2,3,4 ##################################################### # import os, sys # sys.path.insert(1, os.path.join(sys.path[0], "..")) # print(os.path.abspath(os.curdir)) import hydra i...
51
0
22
afe1d194391f4679b169de83918cd27319d4c890
5,646
py
Python
manifast.py
speters-github/cs-tech-primer
d87e4b8b90464df01839653f070a30f1a91c00c0
[ "Apache-2.0" ]
4
2021-09-01T16:54:41.000Z
2021-10-01T01:05:08.000Z
manifast.py
speters-github/cs-tech-primer
d87e4b8b90464df01839653f070a30f1a91c00c0
[ "Apache-2.0" ]
24
2021-09-07T14:56:00.000Z
2022-02-01T14:14:44.000Z
manifast.py
speters-github/cs-tech-primer
d87e4b8b90464df01839653f070a30f1a91c00c0
[ "Apache-2.0" ]
4
2021-09-01T01:06:41.000Z
2022-03-18T23:39:22.000Z
""" Generate the manifest.json file by recursively reading through the docs/ directory. All sub-directories will be interpreted as modules All image files will be interpreted have type resource All other files will have type topic To modify type, name, or to ignore a file, add it to the .mfconfig file in the root dir...
28.953846
121
0.557032
""" Generate the manifest.json file by recursively reading through the docs/ directory. All sub-directories will be interpreted as modules All image files will be interpreted have type resource All other files will have type topic To modify type, name, or to ignore a file, add it to the .mfconfig file in the root dir...
4,495
-4
141
d732cb82533ed969d0a6f6a93927c033b75a5910
5,147
py
Python
pseas/data/configuration_time_loader.py
Theomat/MPSEAS
91f9c991e2061a7d230e491210d2c93005fd2236
[ "MIT" ]
null
null
null
pseas/data/configuration_time_loader.py
Theomat/MPSEAS
91f9c991e2061a7d230e491210d2c93005fd2236
[ "MIT" ]
null
null
null
pseas/data/configuration_time_loader.py
Theomat/MPSEAS
91f9c991e2061a7d230e491210d2c93005fd2236
[ "MIT" ]
null
null
null
import csv import os from typing import Dict, Tuple import numpy as np from ConfigSpace.read_and_write.pcs import read as read_pcs import ConfigSpace import ConfigSpace.util def load_configuration_data(path: str) -> Tuple[np.ndarray, Dict[int,np.ndarray], Dict[int,np.ndarray]]: """ reads the files in the give...
47.657407
155
0.62891
import csv import os from typing import Dict, Tuple import numpy as np from ConfigSpace.read_and_write.pcs import read as read_pcs import ConfigSpace import ConfigSpace.util def load_configuration_data(path: str) -> Tuple[np.ndarray, Dict[int,np.ndarray], Dict[int,np.ndarray]]: """ reads the files in the give...
0
0
0
04c0dd72576035e625684ad9d6aab7682f308473
29,715
py
Python
training/training_loop_video.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
training/training_loop_video.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
training/training_loop_video.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and re...
52.59292
175
0.614403
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and re...
28,483
0
69
f7ec3d1a92a03c5c0a365c1fbe26e455540eab0f
45,430
py
Python
deepvariant/labeler/haplotype_labeler.py
zyxue/deepvariant
ea4301049539d0b16263d08a62b97442427ada7c
[ "BSD-3-Clause" ]
1
2018-10-24T01:18:56.000Z
2018-10-24T01:18:56.000Z
deepvariant/labeler/haplotype_labeler.py
CNaibon/deepvariant
ea4301049539d0b16263d08a62b97442427ada7c
[ "BSD-3-Clause" ]
null
null
null
deepvariant/labeler/haplotype_labeler.py
CNaibon/deepvariant
ea4301049539d0b16263d08a62b97442427ada7c
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 Google Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # #...
41.640697
80
0.716641
# Copyright 2017 Google Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # #...
5,137
0
249
ea6a2d713aaafd0ee14eba159c4281f5ca10d9bd
3,609
py
Python
quicksim/strategies/bollinger.py
elxavicio/QSTK
4981506c37227a72404229d5e1e0887f797a5d57
[ "BSD-3-Clause" ]
339
2015-01-01T10:06:49.000Z
2022-03-23T23:32:24.000Z
Legacy/quicksim/strategies/bollinger.py
jenniyanjie/QuantSoftwareToolkit
0eb2c7a776c259a087fdcac1d3ff883eb0b5516c
[ "BSD-3-Clause" ]
19
2015-01-04T13:12:33.000Z
2021-07-19T11:13:47.000Z
Legacy/quicksim/strategies/bollinger.py
jenniyanjie/QuantSoftwareToolkit
0eb2c7a776c259a087fdcac1d3ff883eb0b5516c
[ "BSD-3-Clause" ]
154
2015-01-30T09:41:15.000Z
2022-03-19T02:27:59.000Z
''' (c) 2011, 2012 Georgia Tech Research Corporation This source code is released under the New BSD license. Please see http://wiki.quantsoftware.org/index.php?title=QSTK_License for license details. Created on Jan 1, 2011 @author:Drew Bratcher @contact: dbratcher@gatech.edu @summary: Contains tutorial for backteste...
30.327731
129
0.727625
''' (c) 2011, 2012 Georgia Tech Research Corporation This source code is released under the New BSD license. Please see http://wiki.quantsoftware.org/index.php?title=QSTK_License for license details. Created on Jan 1, 2011 @author:Drew Bratcher @contact: dbratcher@gatech.edu @summary: Contains tutorial for backteste...
1,616
0
66
451744a3c27a98c7d611278e67e04acbb6116f79
861
py
Python
query_flight/migrations/0007_auto_20180603_1313.py
eskemojoe007/sw_web_app
92e9b6cd3fedcbbeefc9275cdc49db2fdefaa09e
[ "MIT" ]
null
null
null
query_flight/migrations/0007_auto_20180603_1313.py
eskemojoe007/sw_web_app
92e9b6cd3fedcbbeefc9275cdc49db2fdefaa09e
[ "MIT" ]
17
2018-06-04T16:02:51.000Z
2021-06-10T20:26:45.000Z
query_flight/migrations/0007_auto_20180603_1313.py
eskemojoe007/sw_web_app
92e9b6cd3fedcbbeefc9275cdc49db2fdefaa09e
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-06-03 17:13 import django.core.validators from django.db import migrations, models
28.7
137
0.615563
# Generated by Django 2.0.5 on 2018-06-03 17:13 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('query_flight', '0006_auto_20180519_0952'), ] operations = [ migrations.AlterField( model_name='fli...
0
717
23
f7f222d919220408fa3405df325da11c9a3e60f8
5,966
py
Python
eutester/testcases/images/load_hvm_image.py
nephomaniac/eutester
cc71456dd37930096cb8d0a6cac8b42fc8479543
[ "BSD-2-Clause" ]
null
null
null
eutester/testcases/images/load_hvm_image.py
nephomaniac/eutester
cc71456dd37930096cb8d0a6cac8b42fc8479543
[ "BSD-2-Clause" ]
null
null
null
eutester/testcases/images/load_hvm_image.py
nephomaniac/eutester
cc71456dd37930096cb8d0a6cac8b42fc8479543
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Software License Agreement (BSD License) # # Copyright (c) 2009-2011, Eucalyptus Systems, Inc. # All rights reserved. # # Redistribution and use of this software in source and binary forms, with or # without modification, are permitted provided that the following conditions #...
61.505155
180
0.752598
#!/usr/bin/python # -*- coding: utf-8 -*- # Software License Agreement (BSD License) # # Copyright (c) 2009-2011, Eucalyptus Systems, Inc. # All rights reserved. # # Redistribution and use of this software in source and binary forms, with or # without modification, are permitted provided that the following conditions #...
222
0
23
41b1d74579c650475d89ad1672fc209e863ff1d3
288
py
Python
app/core/models/pydantic/author.py
muhis/publications-server
8a958676d4a733b1ddd64112bc2baa9492a065fb
[ "MIT" ]
1
2021-08-23T21:13:09.000Z
2021-08-23T21:13:09.000Z
app/core/models/pydantic/author.py
muhis/publications-server
8a958676d4a733b1ddd64112bc2baa9492a065fb
[ "MIT" ]
null
null
null
app/core/models/pydantic/author.py
muhis/publications-server
8a958676d4a733b1ddd64112bc2baa9492a065fb
[ "MIT" ]
null
null
null
from pydantic import BaseModel from pydantic.types import PositiveInt from tortoise.contrib.pydantic.creator import pydantic_model_creator from app.core.models.tortoise.author import Author AuthorOut = pydantic_model_creator(Author)
26.181818
68
0.822917
from pydantic import BaseModel from pydantic.types import PositiveInt from tortoise.contrib.pydantic.creator import pydantic_model_creator from app.core.models.tortoise.author import Author AuthorOut = pydantic_model_creator(Author) class AuthorIn(BaseModel): name: str id: int
0
31
23