hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
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
130
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
130
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.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
600e214504ee1a81a112be83452958bb2542ebd5
2,117
py
Python
intake/cli/bootstrap.py
gramhagen/intake
de4cbb5df78881dc166b1f02743d22067f2bbd78
[ "BSD-2-Clause" ]
578
2019-02-22T11:45:28.000Z
2022-03-31T08:32:22.000Z
intake/cli/bootstrap.py
gramhagen/intake
de4cbb5df78881dc166b1f02743d22067f2bbd78
[ "BSD-2-Clause" ]
336
2019-02-21T16:24:33.000Z
2022-03-30T09:23:53.000Z
intake/cli/bootstrap.py
gramhagen/intake
de4cbb5df78881dc166b1f02743d22067f2bbd78
[ "BSD-2-Clause" ]
99
2019-02-22T18:31:09.000Z
2022-03-22T03:27:54.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2018, Anaconda, Inc. and Intake contributors # All rights reserved. # # The full license is in the LICENSE file, distributed with this software. #------------------------------------------------------------------------...
30.242857
98
0.512518
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2018, Anaconda, Inc. and Intake contributors # All rights reserved. # # The full license is in the LICENSE file, distributed with this software. #------------------------------------------------------------------------...
0
0
0
0
0
0
0
0
0
4af96fc1ae5139effbf1471a3d5a99c044bf84e9
1,828
py
Python
solutions/0242-valid-anagram/valid-anagram.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
solutions/0242-valid-anagram/valid-anagram.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
solutions/0242-valid-anagram/valid-anagram.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
# Given two strings s and t, write a function to determine if t is an anagram of s. # # Example 1: # # # Input: s = "anagram", t = "nagaram" # Output: true # # # Example 2: # # # Input: s = "rat", t = "car" # Output: false # # # Note: # You may assume the string contains only lowercase alphabets. # # Follow up...
19.869565
97
0.571116
# Given two strings s and t , write a function to determine if t is an anagram of s. # # Example 1: # # # Input: s = "anagram", t = "nagaram" # Output: true # # # Example 2: # # # Input: s = "rat", t = "car" # Output: false # # # Note: # You may assume the string contains only lowercase alphabets. # # Follow u...
4
0
0
671
0
0
0
0
23
5b3660b9d00705aa230281fe180336f75f2007d3
3,568
py
Python
interpreter/theRealLiner.py
Crain-32/Liner
4656d086425877fbd50f23f383222cf85220012f
[ "Apache-2.0" ]
1
2021-08-04T00:59:43.000Z
2021-08-04T00:59:43.000Z
interpreter/theRealLiner.py
Crain-32/Liner
4656d086425877fbd50f23f383222cf85220012f
[ "Apache-2.0" ]
null
null
null
interpreter/theRealLiner.py
Crain-32/Liner
4656d086425877fbd50f23f383222cf85220012f
[ "Apache-2.0" ]
null
null
null
""" *`prin` Prints the results of all the following function, and the numeric value of any namespace. *`let` converts an integer into its Unicode character. *`if` returns the highest number of two different namespaces/function *`set` override the numeric value of a namespace, and replaces the original in duplicate cas...
33.037037
95
0.60454
""" *`prin` Prints the results of all the following function, and the numeric value of any namespace. *`let` converts an integer into its Unicode character. *`if` returns the highest number of two different namespaces/function *`set` override the numeric value of a namespace, and replaces the original in duplicate cas...
0
0
0
3,028
0
0
0
0
22
8be2210037ef9e111391e66eb0f8edd82c0e78a5
1,095
py
Python
recognition/recongitions.py
HermasTV/uol_face_detection_recognition
7622fb23c31651cb25fc995bcdaabffd8f24a1a1
[ "MIT" ]
null
null
null
recognition/recongitions.py
HermasTV/uol_face_detection_recognition
7622fb23c31651cb25fc995bcdaabffd8f24a1a1
[ "MIT" ]
null
null
null
recognition/recongitions.py
HermasTV/uol_face_detection_recognition
7622fb23c31651cb25fc995bcdaabffd8f24a1a1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """detectors.py: contains face detectors modules.""" __author__ = "Ahmed Hermas" __copyright__ = "Copyright 2022, UOL " __license__ = "MIT" __version__ = "0.0.1" __email__ = "a7medhermas@gmail.com"
28.076923
82
0.673059
#!/usr/bin/env python3 """detectors.py: contains face detectors modules.""" __author__ = "Ahmed Hermas" __copyright__ = "Copyright 2022, © UOL " __license__ = "MIT" __version__ = "0.0.1" __email__ = "a7medhermas@gmail.com" import os import torch from cv2 import cv2 import utils import numpy as np from Siamese_resnet1...
2
0
0
733
0
0
0
-19
155
ae0166d5856fe574d19d0263006e54665d49d87a
2,825
py
Python
examples/ciq_identity.py
saegel/python-stix
a777aafa2573d5e66233e29b1909ce178f643891
[ "BSD-3-Clause" ]
194
2015-02-20T17:52:06.000Z
2022-03-06T07:29:08.000Z
examples/ciq_identity.py
saegel/python-stix
a777aafa2573d5e66233e29b1909ce178f643891
[ "BSD-3-Clause" ]
136
2015-01-12T05:33:35.000Z
2022-03-12T07:41:42.000Z
examples/ciq_identity.py
saegel/python-stix
a777aafa2573d5e66233e29b1909ce178f643891
[ "BSD-3-Clause" ]
82
2015-01-05T14:46:16.000Z
2022-03-30T06:00:45.000Z
#!/usr/bin/env python # Copyright (c) 2017, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. """ Description: An example of how to add CIQ Identity information to a STIX Indicator. """ # stdlib # python-cybox # python-stix import stix.utils as utils if __name__ == '__main__': m...
31.043956
78
0.722478
#!/usr/bin/env python # Copyright (c) 2017, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. """ Description: An example of how to add CIQ Identity information to a STIX Indicator. """ # stdlib from pprint import pprint # python-cybox from cybox.objects.file_object import File # pyth...
0
0
0
0
0
2,263
0
103
133
27682f03712aaa784ac0638f01a7479a671b0930
1,465
py
Python
src/s3_transfer.py
rkaahean/weather-scrape
b85a22151e19429e83e71531943bc6766b20304e
[ "Apache-2.0" ]
null
null
null
src/s3_transfer.py
rkaahean/weather-scrape
b85a22151e19429e83e71531943bc6766b20304e
[ "Apache-2.0" ]
4
2020-05-07T09:31:24.000Z
2020-05-08T06:46:13.000Z
src/s3_transfer.py
rkaahean/weather-scrape
b85a22151e19429e83e71531943bc6766b20304e
[ "Apache-2.0" ]
null
null
null
import boto3 import configparser import logging from datetime import datetime from botocore.exceptions import NoCredentialsError import os import sys from pathlib import Path sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from src.constants import FILE_NAME """ Setting up s3 destination structure. ...
22.19697
94
0.711263
import boto3 import configparser import logging from datetime import datetime from botocore.exceptions import NoCredentialsError import os import sys from pathlib import Path sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from src.constants import FILE_NAME """ Setting up s3 destination structure. ...
0
0
0
0
0
0
0
0
0
b484bf03eff33ef8a88973fb7e0988e315bc3613
591
py
Python
learning/01-pattern/00-recursion-backtracking/07-fibonacci.py
tienduy-nguyen/ds-algorithms
5c211393f19a97215beb061ed826362fadf83326
[ "MIT" ]
null
null
null
learning/01-pattern/00-recursion-backtracking/07-fibonacci.py
tienduy-nguyen/ds-algorithms
5c211393f19a97215beb061ed826362fadf83326
[ "MIT" ]
null
null
null
learning/01-pattern/00-recursion-backtracking/07-fibonacci.py
tienduy-nguyen/ds-algorithms
5c211393f19a97215beb061ed826362fadf83326
[ "MIT" ]
null
null
null
# not good # Dynamic programing
17.382353
66
0.529611
def factorial(n): if n == 0: return 1 else: return n * factorial(n - 1) # not good def fibonacci_recursion(n): if n < 2: return n return fibonacci_recursion(n - 1) + fibonacci_recursion(n - 2) def fibonacci(n): if n <= 1: return n fib = [0, 1] for i in ran...
0
0
0
0
0
465
0
0
89
e7f77c402f926f2c0f88139332f635d977b294bd
65,367
py
Python
run_simulation_woggm.py
Wang518hongyu/PyGEMwangtest
f6ff507681b45599d0ecce5be2e5292e94fd09f7
[ "MIT" ]
null
null
null
run_simulation_woggm.py
Wang518hongyu/PyGEMwangtest
f6ff507681b45599d0ecce5be2e5292e94fd09f7
[ "MIT" ]
null
null
null
run_simulation_woggm.py
Wang518hongyu/PyGEMwangtest
f6ff507681b45599d0ecce5be2e5292e94fd09f7
[ "MIT" ]
null
null
null
"""Run a model simulation.""" # Default climate data is ERA-Interim; specify CMIP5 by specifying a filename to the argument: # (Command line) python run_simulation_list_multiprocess.py -gcm_list_fn=C:\...\gcm_rcpXX_filenames.txt # - Default is running ERA-Interim in parallel with five processors. # (Spyd...
57.59207
122
0.599354
"""Run a model simulation.""" # Default climate data is ERA-Interim; specify CMIP5 by specifying a filename to the argument: # (Command line) python run_simulation_list_multiprocess.py -gcm_list_fn=C:\...\gcm_rcpXX_filenames.txt # - Default is running ERA-Interim in parallel with five processors. # (Spyd...
0
0
0
0
0
0
0
-2
23
90b763967161ada45c58e7d2a7c5158c9e848ee0
6,276
py
Python
sopel_modules/SpiceBot/Translate.py
deathbybandaid/Sopel-SpiceBotSERV
816dddc88943b9194f3f0aa6558759eedd585343
[ "EFL-2.0" ]
2
2018-07-24T14:04:36.000Z
2019-01-11T21:41:50.000Z
sopel_modules/SpiceBot/Translate.py
deathbybandaid/Sopel-SpiceBotSERV
816dddc88943b9194f3f0aa6558759eedd585343
[ "EFL-2.0" ]
947
2018-07-24T01:50:29.000Z
2019-04-14T22:40:57.000Z
sopel_modules/SpiceBot/Translate.py
deathbybandaid/Sopel-SpiceBotSERV
816dddc88943b9194f3f0aa6558759eedd585343
[ "EFL-2.0" ]
6
2019-04-12T17:09:07.000Z
2019-09-30T05:56:15.000Z
# coding=utf8 from __future__ import unicode_literals, absolute_import, division, print_function translate = Translate()
32.020408
155
0.497291
# coding=utf8 from __future__ import unicode_literals, absolute_import, division, print_function from sopel_modules.spicemanip import spicemanip import re from num2words import num2words class Translate(): def __init__(self): self.dict = {} def bot_translate_process(self, totranslate, translationt...
0
0
0
6,037
0
0
0
24
91
7e168a33fd90d6bac2118972d179f010ae072f3f
1,688
py
Python
scripts/strelka-2.9.2.centos6_x86_64/share/scoringModelTraining/somatic/lib/evs/features/__init__.py
dongxuemin666/RNA-combine
13e178aae585e16a9a8eda8151d0f34316de0475
[ "Apache-2.0" ]
7
2021-09-03T09:11:00.000Z
2022-02-14T15:02:12.000Z
scripts/strelka-2.9.2.centos6_x86_64/share/scoringModelTraining/somatic/lib/evs/features/__init__.py
dongxuemin666/RNA-combine
13e178aae585e16a9a8eda8151d0f34316de0475
[ "Apache-2.0" ]
null
null
null
scripts/strelka-2.9.2.centos6_x86_64/share/scoringModelTraining/somatic/lib/evs/features/__init__.py
dongxuemin666/RNA-combine
13e178aae585e16a9a8eda8151d0f34316de0475
[ "Apache-2.0" ]
2
2022-01-10T13:07:29.000Z
2022-01-11T22:14:11.000Z
# # Strelka - Small Variant Caller # Copyright (c) 2009-2018 Illumina, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # at your option) any later vers...
27.225806
88
0.673578
# # Strelka - Small Variant Caller # Copyright (c) 2009-2018 Illumina, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # at your option) any later vers...
0
595
0
256
0
0
0
-18
138
c98f6322ac2340652aaaf45eb747da841ba74e6d
2,815
py
Python
simulation/utils/geometry/test/test_frame.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
13
2020-06-30T17:18:28.000Z
2021-07-20T16:55:35.000Z
simulation/utils/geometry/test/test_frame.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
1
2020-11-10T20:15:42.000Z
2020-12-25T18:27:56.000Z
simulation/utils/geometry/test/test_frame.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
3
2020-07-20T09:09:08.000Z
2021-07-20T17:00:37.000Z
import unittest if __name__ == "__main__": unittest.main()
31.988636
83
0.630906
import math import unittest from simulation.utils.geometry.frame import Frame, validate_and_maintain_frames from simulation.utils.geometry.transform import Transform from simulation.utils.geometry.vector import Vector class ModuleTest(unittest.TestCase): def test_connecting_frames(self): """Test if frame...
0
84
0
2,439
0
0
0
114
112
bdeac31fc404c7ca4aa58750eff8f810ef925d2f
990
py
Python
tests/window/WINDOW_SET_ICON.py
theblacklion/pyglet
5fd5c7d581e376946b7a94fac9582c09ad65bcd2
[ "BSD-3-Clause" ]
1
2016-07-19T16:56:46.000Z
2016-07-19T16:56:46.000Z
tests/window/WINDOW_SET_ICON.py
theblacklion/pyglet
5fd5c7d581e376946b7a94fac9582c09ad65bcd2
[ "BSD-3-Clause" ]
1
2018-08-27T22:31:16.000Z
2018-08-27T22:31:16.000Z
tests/window/WINDOW_SET_ICON.py
theblacklion/pyglet
5fd5c7d581e376946b7a94fac9582c09ad65bcd2
[ "BSD-3-Clause" ]
1
2019-09-06T03:05:35.000Z
2019-09-06T03:05:35.000Z
#!/usr/bin/env python '''Test that window icon can be set. Expected behaviour: One window will be opened. It will have an icon depicting a yellow "A". Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: WINDOW_SET_MOUSE_CURSOR.py 717 2007-03-03 07:...
25.384615
87
0.674747
#!/usr/bin/env python '''Test that window icon can be set. Expected behaviour: One window will be opened. It will have an icon depicting a yellow "A". Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: WINDOW_SET_MOUSE_CURSOR.py 717 2007-03-03 07:...
0
0
0
369
0
0
0
17
112
d299f91d21993de099da6d5c3ffc6a6c7b0fdbe5
3,824
py
Python
upnpc/client.py
hamsteruser/upnpc_py
c2409ad262ea1fa48c847837d8141bd1851af193
[ "MIT" ]
null
null
null
upnpc/client.py
hamsteruser/upnpc_py
c2409ad262ea1fa48c847837d8141bd1851af193
[ "MIT" ]
null
null
null
upnpc/client.py
hamsteruser/upnpc_py
c2409ad262ea1fa48c847837d8141bd1851af193
[ "MIT" ]
null
null
null
if __name__ == "__main__": pm = port_manager() print(pm.discover()) (result, port) = pm.mapport() print(result, port) print(pm.used_ports()) print(pm.unmapport(int(port))) print(pm.used_ports()) print(pm.unmap_ports(closeall=True))
35.082569
119
0.558316
import miniupnpc import random import itertools import ipaddress class port_manager(): def __init__(self): ''' initialize a uPnP ''' try: self.upnp = miniupnpc.UPnP() self.discover() except Exception as err: print(err) raise ValueError("uPnP ...
0
0
0
3,470
0
0
0
-23
111
86b06fba764b1a4406ad0f6948dbaa2789f40664
8,989
py
Python
python/stepspy-current/demo/demo_powerflow.py
changgang/steps
9b8ea474581885129d1c1a1c3ad40bc8058a7e0a
[ "MIT" ]
29
2019-10-30T07:04:10.000Z
2022-02-22T06:34:32.000Z
python/stepspy-current/demo/demo_powerflow.py
cuihantao/steps
60327bf42299cb7117ed5907a931583d7cdf590d
[ "MIT" ]
1
2021-09-25T15:29:59.000Z
2022-01-05T14:04:18.000Z
python/stepspy-current/demo/demo_powerflow.py
changgang/steps
9b8ea474581885129d1c1a1c3ad40bc8058a7e0a
[ "MIT" ]
8
2019-12-20T16:13:46.000Z
2022-03-20T14:58:23.000Z
#coding = utf-8 ''' Here is a demo of showing how to slove powerflow with stepspy. Changgang Li, 2019/08/25 ''' from stepspy import STEPS # import the class 'STEPS' simulator = STEPS(is_default=True) # create a STEPS simulator instance simulator.info() powerflow_data_file = 'IEEE9.raw' # file name of powerflow data...
45.39899
180
0.766047
#coding = utf-8 ''' Here is a demo of showing how to slove powerflow with stepspy. Changgang Li, 2019/08/25 ''' from stepspy import STEPS # import the class 'STEPS' simulator = STEPS(is_default=True) # create a STEPS simulator instance simulator.info() powerflow_data_file = 'IEEE9.raw' # file name of powerflow data...
0
0
0
0
0
0
0
0
0
c62690b142f347c026178eead428488587719c22
9,918
py
Python
scripts/ckpt_processor/read_fti_ckpts.py
Knoxort/fti
c784a535aae17ec4df28d025b1d589bd6a71948d
[ "BSD-3-Clause" ]
34
2015-03-16T03:04:37.000Z
2022-02-28T19:59:57.000Z
scripts/ckpt_processor/read_fti_ckpts.py
Knoxort/fti
c784a535aae17ec4df28d025b1d589bd6a71948d
[ "BSD-3-Clause" ]
155
2015-12-07T23:12:16.000Z
2022-01-15T19:14:34.000Z
scripts/ckpt_processor/read_fti_ckpts.py
Knoxort/fti
c784a535aae17ec4df28d025b1d589bd6a71948d
[ "BSD-3-Clause" ]
29
2015-03-20T02:16:35.000Z
2021-11-11T16:10:17.000Z
# This module initiates the checkpoint # processing of FTI files. import os # variables used for input validation fti_levels = (1, 2, 3, 4) output_formats = ('CSV', 'HDF5', 'data') # runtime variables of FTI (ckpt and meta) config_file = "" ckpt_dir = "" meta_dir = "" global_dir = "" group_size = 0 nbHeads = 0 node...
31.993548
109
0.619681
# This module initiates the checkpoint # processing of FTI files. import os import glob import os.path import time from fnmatch import fnmatch import configparser import posix_read_ckpts import subprocess import sys # variables used for input validation fti_levels = (1, 2, 3, 4) output_formats = ('CSV', 'HDF5', 'dat...
0
0
0
0
0
8,326
0
-36
352
b15a0e4cd2f7f657e116c512dee66346dc5c3c3d
10,882
py
Python
tests/test_projectcounts/test_weekly_aggregation.py
wikimedia/analytics-aggregator
e07c0dc2d3102a591e5e968a7e4c49499770fe39
[ "Apache-2.0" ]
1
2018-01-09T07:49:21.000Z
2018-01-09T07:49:21.000Z
tests/test_projectcounts/test_weekly_aggregation.py
wikimedia/analytics-aggregator
e07c0dc2d3102a591e5e968a7e4c49499770fe39
[ "Apache-2.0" ]
null
null
null
tests/test_projectcounts/test_weekly_aggregation.py
wikimedia/analytics-aggregator
e07c0dc2d3102a591e5e968a7e4c49499770fe39
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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, software #...
36.516779
76
0.529314
# -*- coding: utf-8 -*- # 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, software #...
0
0
0
10,029
0
0
0
-27
112
4dfca50f1b3f1df35c4e5dbc925eb02663bd476e
608
py
Python
python/2542 - Iu-Di-Oh!.py
kaiosatiro/URIjudge_beecrowd
e646c771384e77e6b6e38d88f58aa8c61f0a3cb7
[ "MIT" ]
null
null
null
python/2542 - Iu-Di-Oh!.py
kaiosatiro/URIjudge_beecrowd
e646c771384e77e6b6e38d88f58aa8c61f0a3cb7
[ "MIT" ]
null
null
null
python/2542 - Iu-Di-Oh!.py
kaiosatiro/URIjudge_beecrowd
e646c771384e77e6b6e38d88f58aa8c61f0a3cb7
[ "MIT" ]
null
null
null
while True: try: n = int(input()) m,l = map(int, input().split(' ')) m_dic = {} l_dic = {} for i in range(1, m+1): m_dic[i] = list(map(int, input().split(' '))) for i in range(1, l+1): l_dic[i] = list(map(int, input().split(' '))) cm...
23.384615
57
0.404605
while True: try: n = int(input()) m,l = map(int, input().split(' ')) m_dic = {} l_dic = {} for i in range(1, m+1): m_dic[i] = list(map(int, input().split(' '))) for i in range(1, l+1): l_dic[i] = list(map(int, input().split(' '))) cm...
0
0
0
0
0
0
0
0
0
4eb9be9e5bdd2a42932ae0913e83fcaa9ef5590a
2,403
py
Python
graph_sampler/reject_to_uniform.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
graph_sampler/reject_to_uniform.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
graph_sampler/reject_to_uniform.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
32.917808
76
0.718685
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
0
0
0
0
0
1,107
0
34
68
131cadd4426c23dcd44f31279f6c1992ea0649c5
47,673
py
Python
reana_client/cli/workflow.py
VMois/reana-client
206a7fb5762ac28a97095ad774e88054af53b2f7
[ "MIT" ]
null
null
null
reana_client/cli/workflow.py
VMois/reana-client
206a7fb5762ac28a97095ad774e88054af53b2f7
[ "MIT" ]
null
null
null
reana_client/cli/workflow.py
VMois/reana-client
206a7fb5762ac28a97095ad774e88054af53b2f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2017, 2018 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """REANA client workflow related commands."""
34.772429
193
0.592683
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2017, 2018 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """REANA client workflow related commands.""" import json import logging import os impor...
0
45,808
0
0
0
0
0
827
745
f55121917310571bd99506aae23fcb3e38f91bbb
12,863
py
Python
buildtest/config.py
shahzebsiddiqui/buildtest-1
6c47424b82ec1e92ce0930f99be4ba10da62515c
[ "MIT" ]
null
null
null
buildtest/config.py
shahzebsiddiqui/buildtest-1
6c47424b82ec1e92ce0930f99be4ba10da62515c
[ "MIT" ]
42
2021-04-20T11:11:06.000Z
2022-03-30T16:54:24.000Z
buildtest/config.py
shahzebsiddiqui/buildtest-1
6c47424b82ec1e92ce0930f99be4ba10da62515c
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__)
38.169139
189
0.566042
import json import logging import re from buildtest.defaults import ( DEFAULT_SETTINGS_FILE, DEFAULT_SETTINGS_SCHEMA, USER_SETTINGS_FILE, ) from buildtest.exceptions import ConfigurationError from buildtest.schemas.defaults import custom_validator from buildtest.schemas.utils import load_recipe, load_schem...
0
77
0
12,199
0
0
0
289
244
756d20aa02f85429376fdfee0f98ca46c91f170f
11,781
py
Python
libraries/graphite2-1.3.12/tests/graphite.py
myzhang1029/zmymingw
4c6b6088fb8a03248a1e6d9d6126dfaf225ffa56
[ "CC0-1.0" ]
null
null
null
libraries/graphite2-1.3.12/tests/graphite.py
myzhang1029/zmymingw
4c6b6088fb8a03248a1e6d9d6126dfaf225ffa56
[ "CC0-1.0" ]
null
null
null
libraries/graphite2-1.3.12/tests/graphite.py
myzhang1029/zmymingw
4c6b6088fb8a03248a1e6d9d6126dfaf225ffa56
[ "CC0-1.0" ]
null
null
null
# Copyright 2012, SIL International # All rights reserved. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation; either version 2.1 of License, or # (at your option) any lat...
32.454545
163
0.678975
# Copyright 2012, SIL International # All rights reserved. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation; either version 2.1 of License, or # (at your option) any lat...
0
1,855
0
4,531
0
312
0
14
298
58dd7ca0dc1e5f7d4f6f08f327033b0d25f35645
2,139
py
Python
tests/test_mpdtoxml.py
wreszelewski/python-mpegdash
a0f83810e479711f2f40dd8c44b5a903438a0dcc
[ "MIT" ]
39
2019-10-12T13:41:01.000Z
2022-03-30T19:58:45.000Z
tests/test_mpdtoxml.py
fox0618/python-mpegdash
9cdcafd3395d99ad211ea1010eac7aef516ecae4
[ "MIT" ]
24
2019-09-22T08:56:27.000Z
2022-03-05T01:21:19.000Z
tests/test_mpdtoxml.py
fox0618/python-mpegdash
9cdcafd3395d99ad211ea1010eac7aef516ecae4
[ "MIT" ]
22
2019-10-14T12:24:21.000Z
2022-03-03T18:50:30.000Z
try: import unittest except ImportError:
36.254237
85
0.619916
try: import unittest except ImportError: import unittest2 as unittest from sys import version_info from mpegdash.parser import MPEGDASHParser class MPD2XMLTestCase(unittest.TestCase): def test_mpd2xml(self): mpd = MPEGDASHParser.parse('./tests/mpd-samples/sample-001.mpd') MPEGDASHParser.w...
0
0
0
1,964
0
0
0
35
94
0bc05b0077b727e62fea7fe23cb0e20ab099fdea
9,796
py
Python
samples/Python/common_samples/common.py
holgafx/gehtsoft
7bb1dfc23d3b5b45793a85e162bbed2ca963d3ed
[ "Apache-2.0" ]
null
null
null
samples/Python/common_samples/common.py
holgafx/gehtsoft
7bb1dfc23d3b5b45793a85e162bbed2ca963d3ed
[ "Apache-2.0" ]
null
null
null
samples/Python/common_samples/common.py
holgafx/gehtsoft
7bb1dfc23d3b5b45793a85e162bbed2ca963d3ed
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Gehtsoft USA LLC # Licensed under the license derived from 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://fxcodebase.com/licenses/open-source/license.html # Unless required by ap...
44.527273
113
0.5441
# Copyright 2018 Gehtsoft USA LLC # Licensed under the license derived from 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://fxcodebase.com/licenses/open-source/license.html # Unless required by ap...
0
0
0
0
0
8,377
0
-5
410
0f586d06f7f6008b5af6b8a12581096e18f21c4a
416
py
Python
ps4you/ps4you/urls.py
bogomaz1987/ps4you
7222425fb469dd966ba33de11405b9aa5e37ba67
[ "Apache-2.0" ]
null
null
null
ps4you/ps4you/urls.py
bogomaz1987/ps4you
7222425fb469dd966ba33de11405b9aa5e37ba67
[ "Apache-2.0" ]
2
2020-06-05T17:41:58.000Z
2021-06-01T22:00:29.000Z
ps4you/ps4you/urls.py
bogomaz1987/ps4you
7222425fb469dd966ba33de11405b9aa5e37ba67
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import include from django.contrib import admin from django.urls import path urlpatterns = [ path('admin/', admin.site.urls), # path('searchableselect/', include('searchableselect.urls')), path('', include('page.urls')), path('game/', include('game.urls')), path('client/', i...
26
68
0.670673
from django.conf.urls import include from django.contrib import admin from django.urls import path urlpatterns = [ path('admin/', admin.site.urls), # path('searchableselect/', include('searchableselect.urls')), path('', include('page.urls')), path('game/', include('game.urls')), path('client/', i...
0
0
0
0
0
0
0
0
0
c376f410b1597c029143f8b2507b3a11656225d2
44,416
py
Python
syft/core/frameworks/torch/tensor.py
codevedas/PySyft
8017b7f04434e797d0721e34488f637bf4865385
[ "Apache-2.0" ]
null
null
null
syft/core/frameworks/torch/tensor.py
codevedas/PySyft
8017b7f04434e797d0721e34488f637bf4865385
[ "Apache-2.0" ]
null
null
null
syft/core/frameworks/torch/tensor.py
codevedas/PySyft
8017b7f04434e797d0721e34488f637bf4865385
[ "Apache-2.0" ]
null
null
null
from ... import utils
40.014414
134
0.579431
import json import re import torch import random import syft as sy from ... import utils from . import utils as torch_utils import logging import numpy as np class _SyftTensor(object): """ Super class for all Syft tensors, that contains all the specific syft functions """ def __init__(self, child=Non...
0
19,436
0
24,629
0
0
0
-40
360
cc9dd8cf46ccc1eb841121a757ce978bd638c1e7
2,209
py
Python
backend/src/jobs/flaskGetSpecJobHistory.py
frost917/customer-manager
d7d4c16f99e1548989bff85c20c307a844711eda
[ "Apache-2.0" ]
null
null
null
backend/src/jobs/flaskGetSpecJobHistory.py
frost917/customer-manager
d7d4c16f99e1548989bff85c20c307a844711eda
[ "Apache-2.0" ]
1
2021-09-18T05:56:45.000Z
2021-09-18T05:56:45.000Z
backend/src/jobs/flaskGetSpecJobHistory.py
frost917/customer-manager
d7d4c16f99e1548989bff85c20c307a844711eda
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint manager = Blueprint('getSpecJobHistory', __name__, url_prefix='/jobs') #
35.063492
124
0.67904
from dataCheck import customerDataCheck import json from auth.flaskAuthVerify import tokenVerify from flask import Blueprint, Response, g from postgres.databaseConnection import PostgresControll manager = Blueprint('getSpecJobHistory', __name__, url_prefix='/jobs') # 특정 고객의 모든 시술 기록을 불러옴 @manager.route('/customer/<...
90
1,880
0
0
0
0
0
79
111
ecbd1a9534534abe593e2f4947ba9fa64382adf4
12,996
py
Python
SVM/svm.py
Younes-SadatNejad/SIP_Temp
d38f4255283a2fb6f2bdc2c7d8a27e9462bd9727
[ "MIT" ]
null
null
null
SVM/svm.py
Younes-SadatNejad/SIP_Temp
d38f4255283a2fb6f2bdc2c7d8a27e9462bd9727
[ "MIT" ]
null
null
null
SVM/svm.py
Younes-SadatNejad/SIP_Temp
d38f4255283a2fb6f2bdc2c7d8a27e9462bd9727
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jan 4 18:45:05 2021. @author: mahdi """ import numpy as np import matplotlib.pyplot as plt from sklearn import svm from sklearn.datasets import make_blobs from sklearn.preprocessing import StandardScaler from sklearn.neighbors import NearestCentroid import math...
29.336343
80
0.623115
# -*- coding: utf-8 -*- """ Created on Mon Jan 4 18:45:05 2021. @author: mahdi """ import numpy as np import matplotlib.pyplot as plt from sklearn import svm, datasets from sklearn.datasets import make_blobs from sklearn.preprocessing import StandardScaler from sklearn.neighbors import NearestCentroid i...
6
0
0
0
0
0
0
21
69
86d698c9a546a498b829518be815313ee7a80870
8,941
py
Python
Week 11/Lab_5.py
aash7871/PHYS-3210
7820e85259b5fbc2845feaa1068ef12afc13db77
[ "MIT" ]
null
null
null
Week 11/Lab_5.py
aash7871/PHYS-3210
7820e85259b5fbc2845feaa1068ef12afc13db77
[ "MIT" ]
null
null
null
Week 11/Lab_5.py
aash7871/PHYS-3210
7820e85259b5fbc2845feaa1068ef12afc13db77
[ "MIT" ]
1
2020-01-17T01:58:14.000Z
2020-01-17T01:58:14.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 29 19:02:02 2019 @author: amandaash """ import numpy as np import matplotlib.pyplot as plt """ dt = 0.0001 mass = 1 p_value = 2 k_constant = 100 v_initial = 0 x_initial = 1 t_initial = 0 t_final = 10 static_coeff = 0.45 kinetic_coeff = 0.35 viscous...
29.411184
162
0.621071
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 29 19:02:02 2019 @author: amandaash """ import numpy as np import matplotlib.pyplot as plt def harmonic_oscillator_friction_beta(p,k,v0,x0,m,time_step,t0,tf, mu_s, mu_k, b): g = 9.81 v = v0 x = x0 x_val = [] v_val = [] time...
0
0
0
0
0
3,353
0
0
92
4cbf5d37297872ed7437ada33f59af00dbf496c6
201
py
Python
Labs/5/FormatStrings/LocalShortRead/Exploit.py
Opty-MISCE/SS
2010a7f93fdcaa50f835d827e531dc636abfe299
[ "MIT" ]
null
null
null
Labs/5/FormatStrings/LocalShortRead/Exploit.py
Opty-MISCE/SS
2010a7f93fdcaa50f835d827e531dc636abfe299
[ "MIT" ]
null
null
null
Labs/5/FormatStrings/LocalShortRead/Exploit.py
Opty-MISCE/SS
2010a7f93fdcaa50f835d827e531dc636abfe299
[ "MIT" ]
null
null
null
#!/usr/bin/env python SERVER = "mustard.stt.rnl.tecnico.ulisboa.pt" PORT = 10091 POS = 7 s = remote(SERVER, PORT) s.sendline("%{}$s".format(POS)) print(s.recvuntil("}")) s.close()
15.461538
45
0.661692
#!/usr/bin/env python from pwn import * SERVER = "mustard.stt.rnl.tecnico.ulisboa.pt" PORT = 10091 POS = 7 s = remote(SERVER, PORT) s.sendline("%{}$s".format(POS)) print(s.recvuntil("}")) s.close()
0
0
0
0
0
0
0
-4
22
530d719ea9df225dbaff8e8de68097186795f2d1
33,600
py
Python
plugin/OscamStatus.py
rdamas/oscam-skyde-status
68a34b7c55aa7ffa405cd0fe3c74473ea9f70c67
[ "MIT" ]
null
null
null
plugin/OscamStatus.py
rdamas/oscam-skyde-status
68a34b7c55aa7ffa405cd0fe3c74473ea9f70c67
[ "MIT" ]
1
2016-10-09T15:57:10.000Z
2016-10-09T15:58:16.000Z
plugin/OscamStatus.py
rdamas/oscam-skyde-status
68a34b7c55aa7ffa405cd0fe3c74473ea9f70c67
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
37.837838
205
0.521577
# -*- coding: utf-8 -*- import base64 import ConfigParser import fileinput import json import os import re import requests from enigma import eTimer, getDesktop, iServiceInformation from Components.ActionMap import ActionMap from Components.Label import Label from Components.Sources.List import List from Screens.Messa...
26
0
0
33,055
0
0
0
68
429
0a5b73243a48019d002b8f2fb808eb1f41ab86fc
2,486
py
Python
app/__init__.py
cletuzz00/insuranceclaimfraud
9723781ec6368f19cacc2d537ce5ebc3652ce812
[ "MIT" ]
23
2019-11-29T19:53:50.000Z
2022-03-11T16:47:21.000Z
app/__init__.py
cletuzz00/insuranceclaimfraud
9723781ec6368f19cacc2d537ce5ebc3652ce812
[ "MIT" ]
15
2020-03-21T20:43:05.000Z
2020-11-09T22:15:37.000Z
app/__init__.py
cletuzz00/insuranceclaimfraud
9723781ec6368f19cacc2d537ce5ebc3652ce812
[ "MIT" ]
11
2019-12-05T12:25:53.000Z
2020-10-20T15:25:19.000Z
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ from flask_login import LoginManager from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() login_manager = LoginManager() def apply_themes(app): """ Add support for themes. If DEFAULT_THEME is set then all calls to...
29.247059
82
0.672566
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ from flask import Flask, url_for from flask_login import LoginManager from flask_sqlalchemy import SQLAlchemy from importlib import import_module from logging import basicConfig, DEBUG, getLogger, StreamHandler from os import path ...
0
211
0
0
0
1,187
0
66
311
a1c4e4caa2cf815e38d5be1495a90e5c6321be82
8,968
py
Python
bcs-ui/backend/templatesets/legacy_apps/configuration/yaml_mode/views.py
kayinli/bk-bcs
93a0856175f7b066ef835921572c1cac590dbd8e
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/templatesets/legacy_apps/configuration/yaml_mode/views.py
kayinli/bk-bcs
93a0856175f7b066ef835921572c1cac590dbd8e
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/templatesets/legacy_apps/configuration/yaml_mode/views.py
kayinli/bk-bcs
93a0856175f7b066ef835921572c1cac590dbd8e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making PaaS (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance ...
39.857778
125
0.674286
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
51
698
0
6,412
0
0
0
610
446
cea3ca7316f3a8d6ec3256b07e5e310104ec5ec4
2,581
py
Python
analyses/TestAnalyzer.py
ThinkNaive/Matrix-Vector-Multiplication
9a00ba9e4d0d298ce4ff3bfae092f49571a56605
[ "MIT" ]
null
null
null
analyses/TestAnalyzer.py
ThinkNaive/Matrix-Vector-Multiplication
9a00ba9e4d0d298ce4ff3bfae092f49571a56605
[ "MIT" ]
null
null
null
analyses/TestAnalyzer.py
ThinkNaive/Matrix-Vector-Multiplication
9a00ba9e4d0d298ce4ff3bfae092f49571a56605
[ "MIT" ]
null
null
null
# coding=utf-8 import numpy as np if __name__ == '__main__': # master row = 10000 col = 10000 iteration = 10 param = {'id': '3', 'strategy': 'lt', 'p': 10, 'c': 0.03, 'delta': 0.5, 'alpha': 2.0} params = [{'key': 'client-a'}, {'key': 'client-b'}, {'key': 'client-c'}, ...
40.968254
119
0.515304
# coding=utf-8 import matplotlib.pyplot as plt import numpy as np if __name__ == '__main__': # 由master生成的测试参数 row = 10000 col = 10000 iteration = 10 param = {'id': '3', 'strategy': 'lt', 'p': 10, 'c': 0.03, 'delta': 0.5, 'alpha': 2.0} params = [{'key': 'client-a'}, {'key': 'client-...
57
0
0
0
0
0
0
10
22
b25c3ee2eacc5ec3f4d8e4d31557ea457f8037a6
8,096
py
Python
code/feature_extraction/audio_utils.py
jonepatr/lets_face_it
fefba5e82d236f89703449bd517cfa5867fda09f
[ "MIT" ]
11
2020-10-21T09:58:53.000Z
2022-01-22T08:31:57.000Z
code/feature_extraction/audio_utils.py
jonepatr/lets_face_it
fefba5e82d236f89703449bd517cfa5867fda09f
[ "MIT" ]
3
2021-05-05T07:15:45.000Z
2021-12-14T14:43:42.000Z
code/feature_extraction/audio_utils.py
jonepatr/lets_face_it
fefba5e82d236f89703449bd517cfa5867fda09f
[ "MIT" ]
4
2020-10-21T09:46:22.000Z
2021-12-16T11:41:03.000Z
import librosa import numpy as np import scipy.io.wavfile as wav import scipy.signal as sig from pydub import AudioSegment from scipy.signal._savitzky_golay import savgol_filter def derivative(x, f): """ Calculate numerical derivative (by FDM) of a 1d array Args: x: input space x f: Function...
29.985185
88
0.644392
import shutil import tempfile from pathlib import Path import librosa import numpy as np import parselmouth as pm import scipy.io.wavfile as wav import scipy.signal as sig import soundfile from misc.shared import DATA_DIR, DATASET_DIR from pydub import AudioSegment from python_speech_features import mfcc from scipy.si...
0
0
0
0
0
4,779
0
64
337
deeb4aa4c9389421b410b823b599dee2b492e6f4
916
py
Python
MyWork/OldFiles/Beginner/FunctionsWithOutput.py/FunctionsWithOutputs.py
minefarmer/100-Days-Python
b80b28d299342b490082ac301a0d8b176419f8f9
[ "Unlicense" ]
null
null
null
MyWork/OldFiles/Beginner/FunctionsWithOutput.py/FunctionsWithOutputs.py
minefarmer/100-Days-Python
b80b28d299342b490082ac301a0d8b176419f8f9
[ "Unlicense" ]
null
null
null
MyWork/OldFiles/Beginner/FunctionsWithOutput.py/FunctionsWithOutputs.py
minefarmer/100-Days-Python
b80b28d299342b490082ac301a0d8b176419f8f9
[ "Unlicense" ]
null
null
null
''' Functions with output def my_function(something): #Do this with something #Then do this #finally do this def my_function(): return 3 * 2 # result ''' # def format_name(f_name, l_name): # print(f_name.title()) # print(l_name.title()) # format_name("rich", "MATSON") # Rich ...
21.302326
69
0.651747
''' Functions with output def my_function(something): #Do this with something #Then do this #finally do this def my_function(): return 3 * 2 # result ''' # def format_name(f_name, l_name): # print(f_name.title()) # print(l_name.title()) # format_name("rich", "MATSON") # Rich ...
0
0
0
0
0
136
0
0
23
1d5caf304ff7c630a8244058d57493b0771b5dfa
1,987
py
Python
annotation_process/onset.py
marl/GuitarSet
462f414a3a5fed6477ee1c589acd776ef3262b41
[ "MIT" ]
81
2018-05-04T19:53:45.000Z
2022-01-27T15:17:42.000Z
annotation_process/onset.py
funkfuzz/GuitarSet
462f414a3a5fed6477ee1c589acd776ef3262b41
[ "MIT" ]
4
2019-03-12T19:50:44.000Z
2020-05-15T13:38:56.000Z
annotation_process/onset.py
funkfuzz/GuitarSet
462f414a3a5fed6477ee1c589acd776ef3262b41
[ "MIT" ]
12
2018-05-04T19:54:08.000Z
2022-01-19T17:37:52.000Z
import argparse if __name__ == '__main__': parser = argparse.ArgumentParser( description='analyze whole stems.') parser.add_argument( 'inpath', type=str, help='path to the stem of interest') parser.add_argument( 'outpath', type=str, help='path to the stem of interest') ...
30.569231
97
0.621037
import vamp import librosa import numpy as np import pretty_midi import jams import os import argparse def rough_midi(args): # gets a rough midi trasncription using pYin Note from inpath.wav to outpath.mid if os.path.exists(args.outpath): print('file already exist') return 0 #check if o...
0
0
0
0
0
1,501
0
-45
178
2247560231332cd3b4dc8cbf8ea9235b791cb557
403
py
Python
uopbmoh_hub/urls.py
westerncapelabs/uopboh-hub
10c36026e5588d1490dfa3396745db5b9a94e875
[ "BSD-3-Clause" ]
null
null
null
uopbmoh_hub/urls.py
westerncapelabs/uopboh-hub
10c36026e5588d1490dfa3396745db5b9a94e875
[ "BSD-3-Clause" ]
2
2016-01-18T16:23:53.000Z
2016-02-22T08:50:56.000Z
uopbmoh_hub/urls.py
westerncapelabs/uopboh-hub
10c36026e5588d1490dfa3396745db5b9a94e875
[ "BSD-3-Clause" ]
null
null
null
import os from django.conf.urls import patterns, include, url from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns admin.site.site_header = os.environ.get('UOPBMOH_HUB_TITLE', 'UoPBMoH Admin') urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls...
26.866667
77
0.744417
import os from django.conf.urls import patterns, include, url from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns admin.site.site_header = os.environ.get('UOPBMOH_HUB_TITLE', 'UoPBMoH Admin') urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls...
0
0
0
0
0
0
0
0
0
90623213d36080058235d77137f677569c026eb7
1,397
py
Python
rummikub/predict.py
ronikobrosly/rummikub_AI
4cce795d8cd6c54270d12ae14a7b2b6afa53ca2f
[ "MIT" ]
null
null
null
rummikub/predict.py
ronikobrosly/rummikub_AI
4cce795d8cd6c54270d12ae14a7b2b6afa53ca2f
[ "MIT" ]
null
null
null
rummikub/predict.py
ronikobrosly/rummikub_AI
4cce795d8cd6c54270d12ae14a7b2b6afa53ca2f
[ "MIT" ]
null
null
null
from os.path import expanduser import cv2 from keras.models import load_model import numpy as np # Create kernel for cv2 dilation method KERNEL = np.ones((5,5),np.uint8) # Import the model model = load_model('big_model') # Read input image img = cv2.imread(expanduser('~/Desktop/rummikub/images/prediction_test/p...
29.723404
125
0.759485
from os.path import expanduser import cv2 from keras.models import load_model from matplotlib import pyplot as plt import numpy as np # Create kernel for cv2 dilation method KERNEL = np.ones((5,5),np.uint8) # Import the model model = load_model('big_model') # Read input image img = cv2.imread(expanduser('~/Desk...
0
0
0
0
0
0
0
15
22
a5c8abe1c65669f643bb9cbb0eb349888db744a9
1,311
py
Python
src/lib/config.py
RonaldHiemstra/BronartsmeiH
1ad3838b43abfe9a1f3416334439c8056aa50dde
[ "MIT" ]
null
null
null
src/lib/config.py
RonaldHiemstra/BronartsmeiH
1ad3838b43abfe9a1f3416334439c8056aa50dde
[ "MIT" ]
3
2021-03-17T16:05:01.000Z
2021-05-01T18:47:43.000Z
src/lib/config.py
RonaldHiemstra/BronartsmeiH
1ad3838b43abfe9a1f3416334439c8056aa50dde
[ "MIT" ]
null
null
null
"""Support file to handle configuration files."""
31.214286
97
0.540809
"""Support file to handle configuration files.""" import json import os class Config(): """Class for serializing configuration items.""" def __init__(self, filename): self.filename = filename try: with open(self.filename) as file: self.__config = json.load(file) ...
0
0
0
1,215
0
0
0
-22
67
f2992e31d0f58be982aab9d0bf92129cdc5b1c9e
1,038
py
Python
python-jwt.py
HTTP101/sturdy-octo-barnacle
843df5bf3f65ab0617a2794b28ecaffef271d2ec
[ "MIT" ]
null
null
null
python-jwt.py
HTTP101/sturdy-octo-barnacle
843df5bf3f65ab0617a2794b28ecaffef271d2ec
[ "MIT" ]
null
null
null
python-jwt.py
HTTP101/sturdy-octo-barnacle
843df5bf3f65ab0617a2794b28ecaffef271d2ec
[ "MIT" ]
null
null
null
from flask_jwt_extended import JWTManager from application import app from application.config.config import Config conf = Config() app.config['JWT_SECRET_KEY'] = conf.JWT_SECRET_KEY app.config['PROPAGATE_EXCEPTIONS'] = True jwt = JWTManager(app=app)
23.066667
68
0.701349
from flask_jwt_extended import create_access_token,JWTManager from flask import jsonify from application import app from application.models.UserMaster import UserMaster from application.config.config import Config conf = Config() app.config['JWT_SECRET_KEY'] = conf.JWT_SECRET_KEY app.config['PROPAGATE_EXCEPTIONS'] = T...
0
611
0
0
0
0
0
55
113
31a685b4046ff71a9304718c2fbced073961b530
6,496
py
Python
test/test_user_otp.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
395
2015-01-12T19:20:13.000Z
2022-03-30T05:40:40.000Z
test/test_user_otp.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
2,388
2015-01-01T20:09:19.000Z
2022-03-29T16:49:14.000Z
test/test_user_otp.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
177
2015-01-04T14:47:00.000Z
2022-03-25T09:01:51.000Z
# -*- coding: utf-8 -*-
33.484536
99
0.68319
# -*- coding: utf-8 -*- import pytest from girder.exceptions import AccessException from girder.models.setting import Setting from girder.models.user import User from girder.settings import SettingKey from pytest_girder.assertions import assertStatus, assertStatusOk def testInitializeOtp(user): # The logic for t...
0
0
0
0
0
6,060
0
111
294
cf1fe7a14625d2db9b7aa3fc34ffda13a4a03d1f
6,549
py
Python
rl_safety_algorithms/algs/pdo/pdo.py
liuzuxin/RL-Safety-Algorithms
2575225b1ea8ce12e1e13f7a81f8dda7b4189708
[ "MIT" ]
4
2021-09-05T17:49:02.000Z
2021-12-22T03:13:39.000Z
rl_safety_algorithms/algs/pdo/pdo.py
liuzuxin/RL-Safety-Algorithms
2575225b1ea8ce12e1e13f7a81f8dda7b4189708
[ "MIT" ]
null
null
null
rl_safety_algorithms/algs/pdo/pdo.py
liuzuxin/RL-Safety-Algorithms
2575225b1ea8ce12e1e13f7a81f8dda7b4189708
[ "MIT" ]
2
2021-09-05T17:49:07.000Z
2021-11-30T17:36:30.000Z
""" PyTorch implementation of the Primal Dual Optimization (PDO) algorithm. Author: Sven Gronauer (sven.gronauer@tum.de) Created: 28.10.2020 Updated: -- inspired by: Joshua Achiam, David Held, Aviv Tamar, Peter Abbeel Constrained Policy Optimization ICML 2017 also see: Yinlam Chow, Mohammad...
38.523529
85
0.626661
""" PyTorch implementation of the Primal Dual Optimization (PDO) algorithm. Author: Sven Gronauer (sven.gronauer@tum.de) Created: 28.10.2020 Updated: -- inspired by: Joshua Achiam, David Held, Aviv Tamar, Peter Abbeel Constrained Policy Optimization ICML 2017 also see: Yinlam Chow, Mohammad...
0
0
0
5,120
0
404
0
224
267
00a9e5f58342a9bccd8e67ac41aec89b1b16e559
1,048
py
Python
AmazonProductReviewScraping/reviews/spiders/productReviews.py
pranav0904/Amazon-Product-Review
76a39c667642c98f2c4f240fda5fcf92a7fa5cf8
[ "MIT" ]
1
2021-12-14T08:39:16.000Z
2021-12-14T08:39:16.000Z
AmazonProductReviewScraping/reviews/spiders/productReviews.py
pranav0904/Amazon-Product-Review
76a39c667642c98f2c4f240fda5fcf92a7fa5cf8
[ "MIT" ]
null
null
null
AmazonProductReviewScraping/reviews/spiders/productReviews.py
pranav0904/Amazon-Product-Review
76a39c667642c98f2c4f240fda5fcf92a7fa5cf8
[ "MIT" ]
1
2021-12-02T16:51:34.000Z
2021-12-02T16:51:34.000Z
review_url = 'https://www.amazon.com/product-reviews/{}' asin_list = ['B08CVSL4K5'] #Roborock
33.806452
116
0.59542
import scrapy from scrapy import Request import scraper_helper as sh from scrapy.selector import Selector review_url = 'https://www.amazon.com/product-reviews/{}' asin_list = ['B08CVSL4K5'] #Roborock class ProductreviewsSpider(scrapy.Spider): name = 'productReviews' def start_requests(self): fo...
0
0
0
822
0
0
0
18
111
a193ad0ca2236f916cfc3ad918e5d50bc9873323
3,485
py
Python
mayan/apps/metadata/links.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
2
2021-09-12T19:41:19.000Z
2021-09-12T19:41:20.000Z
mayan/apps/metadata/links.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
37
2021-09-13T01:00:12.000Z
2021-10-02T03:54:30.000Z
mayan/apps/metadata/links.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
1
2021-09-22T13:17:30.000Z
2021-09-22T13:17:30.000Z
from django.utils.translation import ugettext_lazy as _ from mayan.apps.documents.permissions import permission_document_type_edit from mayan.apps.navigation.classes import Link from .icons import (icon_document_metadata_add, icon_document_metadata_edit, icon_document_metadata_remove, icon_document_metadata_view...
41.488095
88
0.781636
from django.utils.translation import ugettext_lazy as _ from mayan.apps.documents.permissions import permission_document_type_edit from mayan.apps.navigation.classes import Link from .icons import ( icon_document_metadata_add, icon_document_metadata_edit, icon_document_metadata_remove, icon_document_me...
0
0
0
0
0
0
0
51
0
4e5a5ed27eea5e994d2324b6c0408176e8371053
15,744
py
Python
citrees/scorers.py
m0hashi/citrees
e7d4866109ce357d5d67cffa450604567f7b469e
[ "MIT" ]
null
null
null
citrees/scorers.py
m0hashi/citrees
e7d4866109ce357d5d67cffa450604567f7b469e
[ "MIT" ]
null
null
null
citrees/scorers.py
m0hashi/citrees
e7d4866109ce357d5d67cffa450604567f7b469e
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import ctypes import numpy as np import pandas as pd from scipy.stats import rankdata as rank from sklearn.feature_selection import mutual_info_classif # from externals.six.moves import range ####################### """CREATE C WRAPPERS""" ############...
23.085044
83
0.523565
from __future__ import absolute_import, division, print_function import ctypes from numba import njit import numpy as np from os.path import dirname, join import pandas as pd from scipy.stats import rankdata as rank from sklearn.feature_selection import mutual_info_classif # from externals.six.moves import range ###...
0
8,755
0
0
0
0
0
13
228
1c67f80426cccc03d5222dfecfea87a636eddca5
1,044
py
Python
models.py
ServerChef/serverchef-system-helpers
fee45b06902d0887767fb430ade31af8052f4ff3
[ "MIT" ]
null
null
null
models.py
ServerChef/serverchef-system-helpers
fee45b06902d0887767fb430ade31af8052f4ff3
[ "MIT" ]
null
null
null
models.py
ServerChef/serverchef-system-helpers
fee45b06902d0887767fb430ade31af8052f4ff3
[ "MIT" ]
null
null
null
__all__ = ['SystemdUnitStatus', 'Use']
22.695652
70
0.599617
import json import psutil __all__ = ['SystemdUnitStatus', 'Use'] class BaseModel(object): def to_dict(self): return {name: getattr(self, name) for name in self.get_keys()} def get_keys(self): return [name for name in dir(self) if not name.startswith('__') and not call...
0
205
0
702
0
0
0
-18
113
ab587aac8ba41bf3e5ff1adc3b5bef4b37c4a250
3,911
py
Python
sdks/python/apache_beam/utils/processes.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
3
2020-08-28T17:47:26.000Z
2021-08-17T06:38:58.000Z
sdks/python/apache_beam/utils/processes.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
80
2020-01-16T09:55:09.000Z
2020-10-03T13:43:07.000Z
sdks/python/apache_beam/utils/processes.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
1
2020-03-24T08:34:38.000Z
2020-03-24T08:34:38.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
35.554545
77
0.676042
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
0
0
0
0
0
2,275
0
0
100
fb2e165b9cab12205cb49a14697d29f1f446e88a
636
py
Python
bship/events.py
UTDS16/battleship
0244dd350fd628baf0928762ea49352ab418660c
[ "MIT" ]
null
null
null
bship/events.py
UTDS16/battleship
0244dd350fd628baf0928762ea49352ab418660c
[ "MIT" ]
6
2016-12-08T17:33:32.000Z
2016-12-15T02:24:42.000Z
bship/events.py
UTDS16/battleship
0244dd350fd628baf0928762ea49352ab418660c
[ "MIT" ]
null
null
null
import pygame # It seems that up to USEREVENT + 3 are already taken. # Anyway, an event for server announces. # It's about time for the server to advertise its presence. E_ANNOUNCE = pygame.USEREVENT + 4 # A state change has occurred. E_STATE = pygame.USEREVENT + 5 # Player in the lobby. S_LOBBY = 0 # Player creatin...
23.555556
59
0.738994
import pygame # It seems that up to USEREVENT + 3 are already taken. # Anyway, an event for server announces. # It's about time for the server to advertise its presence. E_ANNOUNCE = pygame.USEREVENT + 4 # A state change has occurred. E_STATE = pygame.USEREVENT + 5 # Player in the lobby. S_LOBBY = 0 # Player creatin...
0
0
0
0
0
0
0
0
0
0918669d246dee92735957bcb29fa3a26b3a47f8
4,036
py
Python
LSTM/code/model.py
ayush1997/DLG
99b030eb68a2f5e7f30b0213249eb03d11bcceef
[ "Apache-2.0" ]
null
null
null
LSTM/code/model.py
ayush1997/DLG
99b030eb68a2f5e7f30b0213249eb03d11bcceef
[ "Apache-2.0" ]
null
null
null
LSTM/code/model.py
ayush1997/DLG
99b030eb68a2f5e7f30b0213249eb03d11bcceef
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from keras.models import Sequential from keras.layers.core import Dense, Activation, Dropout from keras.layers.recurrent import LSTM import numpy as np import random import sys import os if __name__ == "__main__": all_folders = "../levels_transposed/" result_path = "../...
33.081967
131
0.601338
from __future__ import print_function from keras.models import Sequential from keras.layers.core import Dense, Activation, Dropout from keras.layers.recurrent import LSTM from keras.utils.data_utils import get_file import numpy as np import random import sys import os if __name__ == "__main__": all_folders = "....
0
0
0
0
0
215
0
22
49
281b2bb040823d5ed05354eed9b4ed54853060af
691
py
Python
abcli/__init__.py
john5f35/abcli
fa696cf6bcc2f26fbd754e01952553ce09e5e006
[ "MIT" ]
3
2019-10-19T15:07:34.000Z
2022-01-07T01:49:24.000Z
abcli/__init__.py
john5f35/abcli
fa696cf6bcc2f26fbd754e01952553ce09e5e006
[ "MIT" ]
null
null
null
abcli/__init__.py
john5f35/abcli
fa696cf6bcc2f26fbd754e01952553ce09e5e006
[ "MIT" ]
1
2022-03-12T03:22:29.000Z
2022-03-12T03:22:29.000Z
# CLI # # Commands: # - transactions import <json> # - transaction show (?) # - account show [name] [date-from] [date-to] [aggregation:week|fortnight|*month*|quarter|year] # Shows balance, average in aggregation method, between two dates # - account graph [name] [date-from] [date-to] [aggregation:...] # ...
36.368421
97
0.681621
# CLI # # Commands: # - transactions import <json> # - transaction show (?) # - account show [name] [date-from] [date-to] [aggregation:week|fortnight|*month*|quarter|year] # Shows balance, average in aggregation method, between two dates # - account graph [name] [date-from] [date-to] [aggregation:...] # ...
0
0
0
0
0
0
0
0
0
07ea35374229480bf2eea63ea423ff927d92c861
5,564
py
Python
application.py
naimaier/kindle-notes
47efaf8c314211e57754db836c1c17243543cfc0
[ "MIT" ]
null
null
null
application.py
naimaier/kindle-notes
47efaf8c314211e57754db836c1c17243543cfc0
[ "MIT" ]
null
null
null
application.py
naimaier/kindle-notes
47efaf8c314211e57754db836c1c17243543cfc0
[ "MIT" ]
null
null
null
# Generate main window root = Tk() gui = Application(root) # Necessary for winfo_width and winfo_heigh to work properly root.update() """ Centering the window on the screen """ # https://yagisanatode.com/2018/02/24/how-to-center-the-main-window-on-the-screen-in-tkinter-with-python-3/ # Changed winfo_reqwidth and ...
30.571429
107
0.614845
from tkinter import * from tkinter import ttk from functools import partial class MyClippings(): clippings = [] def append(self, element): self.clippings.append(element) def getBookNames(self): distinctBookNames = set() for clipping in self.clippings: distinctBookNam...
0
0
0
4,627
0
0
0
10
112
4f3fd3a39f6f8344f7edaf6e766a2be377b027be
1,561
py
Python
ooobuild/lo/animations/animation_transform_type.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/animations/animation_transform_type.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/animations/animation_transform_type.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
26.913793
153
0.696989
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
0
0
0
758
0
0
0
0
23
4493ab87a277ae9aeceaa08ea8afc483f266aa67
1,709
py
Python
algorithm_analysis/highest_value_palindrome/benchmarking.py
gshaikov/python-uprojects
79b92d600ecfb71e78731982894238fd12fcd348
[ "MIT" ]
null
null
null
algorithm_analysis/highest_value_palindrome/benchmarking.py
gshaikov/python-uprojects
79b92d600ecfb71e78731982894238fd12fcd348
[ "MIT" ]
null
null
null
algorithm_analysis/highest_value_palindrome/benchmarking.py
gshaikov/python-uprojects
79b92d600ecfb71e78731982894238fd12fcd348
[ "MIT" ]
null
null
null
import random from pathlib import Path TEST_DIR = Path(__file__).parent random.seed(13) def run(data_length): """ *data_length* is n in O(n) Exmaple output: Loops: 500, time per loop: 0.470337 ms """ big_number_str = str(random.randrange(data_length, data_length * 10)) big_number_...
29.465517
79
0.697484
import random import timeit import time import re from pathlib import Path from typing import Tuple from solution import ( highest_value_palindrome_suboptimal, highest_value_palindrome_optimal, ) TEST_DIR = Path(__file__).parent random.seed(13) def benchmark(benched_function, number=None) -> Tuple[int, in...
0
0
0
0
0
1,090
0
55
184
eb5d5d1319eb1558645cba95437f6f3e36e1bc65
3,117
py
Python
lib/utils.py
SudeepSarkar/equilibrium-propagation
ba6d9ee5426445e9ad91c96c816fa5287ff97258
[ "MIT" ]
18
2020-01-07T11:25:45.000Z
2022-01-24T18:25:13.000Z
lib/utils.py
SudeepSarkar/equilibrium-propagation
ba6d9ee5426445e9ad91c96c816fa5287ff97258
[ "MIT" ]
null
null
null
lib/utils.py
SudeepSarkar/equilibrium-propagation
ba6d9ee5426445e9ad91c96c816fa5287ff97258
[ "MIT" ]
5
2020-06-26T23:37:22.000Z
2021-09-04T12:22:49.000Z
# MIT License # Copyright (c) 2020 Simon Schug, Joo Sacramento # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, m...
33.159574
80
0.68367
# MIT License # Copyright (c) 2020 Simon Schug, João Sacramento # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, ...
2
0
0
0
0
68
0
0
60
53eab20428f2bfc80ff63f633f203e5206010ba6
8,558
py
Python
Lib/glyphsLib/writer.py
jenskutilek/glyphsLib
9271c32e5135dbaebfb852c3d40246967fbe232d
[ "Apache-2.0" ]
80
2019-04-17T19:30:16.000Z
2022-03-25T17:00:48.000Z
Lib/glyphsLib/writer.py
jenskutilek/glyphsLib
9271c32e5135dbaebfb852c3d40246967fbe232d
[ "Apache-2.0" ]
227
2019-04-19T07:03:21.000Z
2022-03-26T21:06:25.000Z
Lib/glyphsLib/writer.py
jenskutilek/glyphsLib
9271c32e5135dbaebfb852c3d40246967fbe232d
[ "Apache-2.0" ]
22
2019-05-15T15:13:24.000Z
2022-03-17T09:12:16.000Z
# Copyright 2016 Georg Seifert. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: #www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
23.255435
86
0.534704
# Copyright 2016 Georg Seifert. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: #www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
0
0
0
4,906
0
720
0
32
158
9d08b2f99ac10d617f01d45314d7e6c4e254f812
1,890
py
Python
main.py
mallocc/PythonRPG
6f8ae053f61d1b5070706276b850e96a27a10fe3
[ "Apache-2.0" ]
1
2019-11-11T10:01:59.000Z
2019-11-11T10:01:59.000Z
main.py
mallocc/PythonRPG
6f8ae053f61d1b5070706276b850e96a27a10fe3
[ "Apache-2.0" ]
null
null
null
main.py
mallocc/PythonRPG
6f8ae053f61d1b5070706276b850e96a27a10fe3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import pygame import sys game = Game() game.addEntity(NPC((0, 0), game.context.imageManager.getAnimationDup( "greenSprite"), False, True)) game.addEntity( NPC((0, 0), game.context.imageManager.getAnimationDup("redSprite"), False)) ### Main loop ### while True: for event in pygame.event...
25.540541
79
0.592063
#!/usr/bin/python import pygame import sys import os from pygame.locals import * from context import * from imagemanager import * from sprite import * from animation import * from entity import * from player import * from npc import * from random import randint class Game: def __init__(self): self.contex...
0
0
0
1,185
0
0
0
-1
244
c9f228e98789ae2415e7a262bb24aaee24aa5133
602
py
Python
kisensum/openadr/openadr/vtn/migrations/0047_auto_20171122_1739.py
ChargePoint/volttron-applications
8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b
[ "BSD-3-Clause" ]
null
null
null
kisensum/openadr/openadr/vtn/migrations/0047_auto_20171122_1739.py
ChargePoint/volttron-applications
8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b
[ "BSD-3-Clause" ]
4
2021-03-19T23:36:34.000Z
2021-12-13T19:45:54.000Z
kisensum/openadr/openadr/vtn/migrations/0047_auto_20171122_1739.py
ChargePoint/volttron-applications
8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b
[ "BSD-3-Clause" ]
1
2020-05-25T05:03:55.000Z
2020-05-25T05:03:55.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-11-22 17:39 from __future__ import unicode_literals
25.083333
89
0.61794
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-11-22 17:39 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('vtn', '0046_remove_site_reporting_status'), ] operations = [ migrations.AlterModelO...
0
0
0
431
0
0
0
11
46
d71492cb94fa7ad72d79c38a0e0a8119462e9e42
5,464
py
Python
data_processing/src/data_processor.py
BarrySunderland/HackZurich2021
860b3a9ad1c1ec59343429d9489edc3d4a2b09b0
[ "MIT" ]
null
null
null
data_processing/src/data_processor.py
BarrySunderland/HackZurich2021
860b3a9ad1c1ec59343429d9489edc3d4a2b09b0
[ "MIT" ]
null
null
null
data_processing/src/data_processor.py
BarrySunderland/HackZurich2021
860b3a9ad1c1ec59343429d9489edc3d4a2b09b0
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
33.521472
98
0.57284
import pandas as pd import tqdm from paths import PATHS import os class DataProcessor: @staticmethod def gen_proc_file_name(file_name): return os.path.join(PATHS.data, "processed", file_name) @staticmethod def add_rssi_fields_to_disruptions(save: bool = True): """This methods perform ...
0
4,599
0
-1
0
578
0
-22
268
1aff004c20676f19d8e2025960660d5b01dc9a38
6,688
py
Python
lib/kb_escher/kb_escher_utils.py
janakagithub/kb_escher
023c9d4d8c74d70a419e0e8dc9ed264b8cc731e4
[ "MIT" ]
null
null
null
lib/kb_escher/kb_escher_utils.py
janakagithub/kb_escher
023c9d4d8c74d70a419e0e8dc9ed264b8cc731e4
[ "MIT" ]
null
null
null
lib/kb_escher/kb_escher_utils.py
janakagithub/kb_escher
023c9d4d8c74d70a419e0e8dc9ed264b8cc731e4
[ "MIT" ]
null
null
null
#{'workspace_id': 37534, 'map_ids': ['dfsdfsdf'], 'grid_x': '1', 'grid_y': '1', 'model_objects': [{'object_ids': ['37534/91/1'], 'model_id': '37534/90/3'}, {'object_ids': ['37534/92/1'], 'model_id': '37534/89/1'}], 'report_height': '800', 'workspace_name': 'filipeliu:narrative_1580723870549', 'model_ids': ['37534/90/3'...
38.217143
336
0.619767
import json import escher import modelseed_escher import cobrakbase from cobrakbase.core.converters import KBaseFBAModelToCobraBuilder from modelseed_escher.convert_utils import move_to_compartment #{'workspace_id': 37534, 'map_ids': ['dfsdfsdf'], 'grid_x': '1', 'grid_y': '1', 'model_objects': [{'object_ids': ['37534/9...
0
0
0
0
0
5,965
0
66
317
2e36b8ccbbb6c24b6057bc58fbc6eff45f8d865c
892
py
Python
examples/most_shared.py
fossabot/pynytimes
96aeb5878f45a3ca9e8528980d3022de2f3c8bc4
[ "MIT" ]
22
2020-02-08T22:10:02.000Z
2022-01-25T02:07:46.000Z
examples/most_shared.py
fossabot/pynytimes
96aeb5878f45a3ca9e8528980d3022de2f3c8bc4
[ "MIT" ]
6
2020-02-21T16:36:42.000Z
2022-01-06T04:02:39.000Z
examples/most_shared.py
fossabot/pynytimes
96aeb5878f45a3ca9e8528980d3022de2f3c8bc4
[ "MIT" ]
10
2020-03-25T08:44:11.000Z
2022-02-11T11:03:37.000Z
from pynytimes import NYTAPI # Make sure to set parse dates to True so that the dates # are parsed into datetime.datetime or datetime.date objects nyt = NYTAPI( key="Your API Key", # Get your API Key at https://developer.nytimes.com parse_dates=True, ) # Get most shared articles of today most_shared = nyt.mo...
34.307692
77
0.773543
from pynytimes import NYTAPI # Make sure to set parse dates to True so that the dates # are parsed into datetime.datetime or datetime.date objects nyt = NYTAPI( key="Your API Key", # Get your API Key at https://developer.nytimes.com parse_dates=True, ) # Get most shared articles of today most_shared = nyt.mo...
0
0
0
0
0
0
0
0
0
ddd6dac3f6edac94995420fbf926471fcc3bdbf8
998
py
Python
getStockRecommendations.py
armstjc/stock_self_deployment
61abdeca948542679b9bdb7956125d255b828790
[ "MIT" ]
null
null
null
getStockRecommendations.py
armstjc/stock_self_deployment
61abdeca948542679b9bdb7956125d255b828790
[ "MIT" ]
null
null
null
getStockRecommendations.py
armstjc/stock_self_deployment
61abdeca948542679b9bdb7956125d255b828790
[ "MIT" ]
null
null
null
import pandas as pd #from tqdm import tqdm stockList = pd.read_csv('Stock_List.csv') stockListLen = len(stockList) if __name__ == "__main__": main()
24.95
97
0.628257
import pandas as pd import yfinance as yf #from tqdm import tqdm from RefreshStockAbv import getStockList from datetime import datetime stockList = pd.read_csv('Stock_List.csv') stockListLen = len(stockList) def getStockRecommendations(): print('') arr = stockList['Symbol'].to_numpy() start = datetime.now...
0
0
0
0
0
704
0
27
112
9c1dd96ad54821d861f87d1cbea67c4e7ab318bb
961
py
Python
django-celery-progress-sample/data/models.py
radugaf/converter
ff6339e602d9dd4e9edf3f21cd485062c8dafd96
[ "MIT" ]
null
null
null
django-celery-progress-sample/data/models.py
radugaf/converter
ff6339e602d9dd4e9edf3f21cd485062c8dafd96
[ "MIT" ]
null
null
null
django-celery-progress-sample/data/models.py
radugaf/converter
ff6339e602d9dd4e9edf3f21cd485062c8dafd96
[ "MIT" ]
null
null
null
# Create your models here. PRODUCT_NAME = ( ("Product-A", "Product A"), ("Product-B", "Product B"), ("Product-C", "Product C"), )
25.972973
81
0.644121
from django.db import models from multiselectfield import MultiSelectField # Create your models here. PRODUCT_NAME = ( ("Product-A", "Product A"), ("Product-B", "Product B"), ("Product-C", "Product C"), ) class FileInfo(models.Model): file = models.FileField() status = models.CharField( m...
0
0
0
695
0
0
0
31
90
24f89f9fcfd6e5f2a71560ee2214cab1b66e740b
7,262
py
Python
run_train.py
mr4msm/ai_edge_seg
0917d58603eae0290e41ccfe307f25cb8180e57c
[ "MIT" ]
null
null
null
run_train.py
mr4msm/ai_edge_seg
0917d58603eae0290e41ccfe307f25cb8180e57c
[ "MIT" ]
null
null
null
run_train.py
mr4msm/ai_edge_seg
0917d58603eae0290e41ccfe307f25cb8180e57c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- if __name__ == '__main__': main()
33.009091
79
0.610025
# -*- coding: utf-8 -*- import multiprocessing as mp import os import sys from argparse import ArgumentParser from chainer import optimizers as optims from chainer import serializers as S from chainer.optimizer import GradientClipping, WeightDecay from batch_generator import BatchGenerator from loss import Loss from...
0
0
0
0
0
6,805
0
102
290
e799cc0ae12f93dcc95fc13743f0d32a689d7492
9,606
py
Python
testcases/testcase.py
Superalvin1123/wcs-python3-sdk
a18fb6194707935e7e9fb28c662a62dcd341cf02
[ "MIT" ]
null
null
null
testcases/testcase.py
Superalvin1123/wcs-python3-sdk
a18fb6194707935e7e9fb28c662a62dcd341cf02
[ "MIT" ]
null
null
null
testcases/testcase.py
Superalvin1123/wcs-python3-sdk
a18fb6194707935e7e9fb28c662a62dcd341cf02
[ "MIT" ]
1
2022-02-07T09:26:19.000Z
2022-02-07T09:26:19.000Z
#!/usr/bin/python # -*-coding:utf-8-*- import os, sys import unittest from os.path import expanduser sys.path.append('../') print (sys.version) config_file = os.path.join(expanduser("~"), ".wcscfg") if __name__ == '__main__': suite = unittest.TestSuite() suite.addTest(WcsTestCases("test_image_detect")) ru...
34.6787
124
0.630127
#!/usr/bin/python # -*-coding:utf-8-*- import os,sys import unittest from os.path import expanduser sys.path.append('../') from wcs.commons.config import Config from wcs.services.client import Client from wcs.commons.putpolicy import PutPolicy from wcs.commons.logme import debug from wcs.commons.util import urlsafe_ba...
531
0
0
8,824
0
0
0
97
133
537fe9ec1b4225b677ace32d53e56f0672156914
1,854
py
Python
httprunner2jmeter/ext/har2case/__init__.py
BSTester/httprunner2jmeter
b7f18dbb6b6b36719ce8952239f6d0c1dfc75e4a
[ "Apache-2.0" ]
null
null
null
httprunner2jmeter/ext/har2case/__init__.py
BSTester/httprunner2jmeter
b7f18dbb6b6b36719ce8952239f6d0c1dfc75e4a
[ "Apache-2.0" ]
null
null
null
httprunner2jmeter/ext/har2case/__init__.py
BSTester/httprunner2jmeter
b7f18dbb6b6b36719ce8952239f6d0c1dfc75e4a
[ "Apache-2.0" ]
null
null
null
""" Convert HAR (HTTP Archive) to YAML/JSON testcase for HttpRunner. Usage: # convert to JSON format testcase $ hrun har2case demo.har # convert to YAML format testcase $ hrun har2case demo.har -2y """ def init_har2case_parser(subparsers): """ HAR converter: parse command line options and run c...
28.090909
94
0.651564
""" Convert HAR (HTTP Archive) to YAML/JSON testcase for HttpRunner. Usage: # convert to JSON format testcase $ hrun har2case demo.har # convert to YAML format testcase $ hrun har2case demo.har -2y """ from httprunner2jmeter.ext.har2case.core import HarParser from sentry_sdk import capture_message ...
0
0
0
0
0
361
0
53
68
2db77b940ee672a4b9d7248883e87d6c60a6f824
15,317
py
Python
tests/beos_plugin_tests/beos_test_utils/beosnode.py
terradacs/beos-core
31e19170bcad573b1d498811284e62babd478f92
[ "MIT" ]
9
2019-04-04T18:46:14.000Z
2022-03-03T16:22:56.000Z
tests/beos_plugin_tests/beos_test_utils/beosnode.py
terradacs/beos-core
31e19170bcad573b1d498811284e62babd478f92
[ "MIT" ]
null
null
null
tests/beos_plugin_tests/beos_test_utils/beosnode.py
terradacs/beos-core
31e19170bcad573b1d498811284e62babd478f92
[ "MIT" ]
3
2019-03-19T17:45:08.000Z
2021-03-22T21:45:35.000Z
import os import sys try: except Exception as _ex: print("Faild to import run.py script. Please make sure that run ./deploy.py --build-beos. Aborting.") exit(1) sys.path.append(os.path.dirname(os.path.abspath(__file__)))
47.421053
178
0.643729
import os import sys import time import random import string import datetime import collections try: from beos_test_utils import run except Exception as _ex: print("Faild to import run.py script. Please make sure that run ./deploy.py --build-beos. Aborting.") exit(1) import beos_test_utils.beosactionpatt...
0
0
0
14,563
0
0
0
205
316
719709584da1e07e58c9bd58392d0adc1bb2c4ee
1,658
py
Python
sct_custom/unit_testing/test_utils.py
nidebroux/lumbosacral_segmentation
3217960c6f0f5c3886dfdf46e1286ad2f737f4aa
[ "Unlicense", "MIT" ]
1
2021-09-07T08:52:21.000Z
2021-09-07T08:52:21.000Z
sct_custom/unit_testing/test_utils.py
nidebroux/lumbosacral_segmentation
3217960c6f0f5c3886dfdf46e1286ad2f737f4aa
[ "Unlicense", "MIT" ]
null
null
null
sct_custom/unit_testing/test_utils.py
nidebroux/lumbosacral_segmentation
3217960c6f0f5c3886dfdf46e1286ad2f737f4aa
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 # pytest unit tests for utils import pytest from spinalcordtoolbox import utils def test_sct_argument_parser(capsys): """Test extra argparse functionality added by SCTArgumentParser subclass.""" # Check that new defaults can still be overridden (setting add_help vi...
36.844444
119
0.702654
#!/usr/bin/env python # -*- coding: utf-8 # pytest unit tests for utils import pytest from spinalcordtoolbox import utils def test_parse_num_list_inv(): assert utils.parse_num_list_inv([1, 2, 3, 5, 6, 9]) == '1:3;5:6;9' assert utils.parse_num_list_inv([3, 2, 1, 5]) == '1:3;5' assert utils.parse_num_list...
0
0
0
0
0
187
0
0
23
fe045c5343a727ea1cacb5fd6253239d05f5337b
5,336
py
Python
functions/metrics.py
cainmagi/MDNT
4affd8a83698ce6786c04dddacdcf7415f8c5f90
[ "MIT" ]
14
2019-09-24T07:33:13.000Z
2021-03-04T16:27:29.000Z
functions/metrics.py
cainmagi/MDNT
4affd8a83698ce6786c04dddacdcf7415f8c5f90
[ "MIT" ]
1
2020-02-28T04:24:09.000Z
2020-03-03T08:55:31.000Z
functions/metrics.py
cainmagi/MDNT
4affd8a83698ce6786c04dddacdcf7415f8c5f90
[ "MIT" ]
6
2020-08-24T03:35:41.000Z
2021-02-10T08:02:16.000Z
''' ################################################################ # Functions - Metrics # @ Modern Deep Network Toolkits for Tensorflow-Keras # Yuchen Jin @ cainmagi@gmail.com # Requirements: (Pay attention to version) # python 3.6+ # tensorflow r1.13+ # Extend metrics. These functions should not be used as trai...
52.313725
123
0.701462
''' ################################################################ # Functions - Metrics # @ Modern Deep Network Toolkits for Tensorflow-Keras # Yuchen Jin @ cainmagi@gmail.com # Requirements: (Pay attention to version) # python 3.6+ # tensorflow r1.13+ # Extend metrics. These functions should not be used as trai...
0
0
0
0
0
0
0
0
0
e84a278c0eeb538e35f49840e27139eb36c6438e
12,236
py
Python
examples/lorenz.py
josephbakarji/deep-delay-autoencoder
eed23447f930aac140b0f37b888ccab688aa6294
[ "MIT" ]
2
2022-03-08T20:26:07.000Z
2022-03-28T21:22:00.000Z
examples/lorenz.py
josephbakarji/deep-delay-autoencoder
eed23447f930aac140b0f37b888ccab688aa6294
[ "MIT" ]
null
null
null
examples/lorenz.py
josephbakarji/deep-delay-autoencoder
eed23447f930aac140b0f37b888ccab688aa6294
[ "MIT" ]
1
2022-03-28T21:22:23.000Z
2022-03-28T21:22:23.000Z
import sys sys.path.append('../src') ################################# ################################ ################################ ###### FROM example_lorenz_delay.py (NOT FIXED) #########3 # def get_lorenz_data_withDelaysAsz(n_training_ics, n_validation_ics, n_test_ics, n_delays): # t = np.arange(0, 10,...
40.923077
143
0.538003
import numpy as np from scipy.integrate import odeint from scipy.special import legendre, chebyt import sys sys.path.append('../src') from sindy_utils import library_size from data_manage import DataStruct import pdb class Lorenz: def __init__(self, option='delay', coefficients=[10, 8/3,...
0
0
0
9,569
0
0
0
48
155
43a61b412fd3f3362900d8f61060bf01a5c105a7
5,142
py
Python
autoyt/images.py
JacobHP/AutoYT
da87773bdd2eea1d688a8c003d61d31888dbf3e5
[ "MIT" ]
1
2022-02-03T13:21:48.000Z
2022-02-03T13:21:48.000Z
autoyt/images.py
JacobHP/AutoYT
da87773bdd2eea1d688a8c003d61d31888dbf3e5
[ "MIT" ]
null
null
null
autoyt/images.py
JacobHP/AutoYT
da87773bdd2eea1d688a8c003d61d31888dbf3e5
[ "MIT" ]
null
null
null
''' Author: Jacob Howard-Parker Functions for writing on images. Text args should be layed out as specified in data/templates/image_configuration.json ''' from PIL import Image from PIL import ImageFont from PIL import ImageDraw import textwrap import re def create_base_image(background=(26,26,27), size=(1920, 1080...
32.544304
79
0.570012
''' Author: Jacob Howard-Parker Functions for writing on images. Text args should be layed out as specified in data/templates/image_configuration.json ''' from PIL import Image from PIL import ImageFont from PIL import ImageDraw import textwrap import re import pandas as pd def create_base_image(background=(26,26,2...
0
0
0
0
0
0
0
-2
22
229ecd07ca05535989bc2af6b068986d3e701d65
6,476
py
Python
tests/db/test_client.py
Veritaris/fastapi_contrib
081670603917b1b7e9646c75fba5614b09823a3e
[ "MIT" ]
504
2019-08-26T18:14:03.000Z
2022-03-25T13:49:50.000Z
tests/db/test_client.py
Veritaris/fastapi_contrib
081670603917b1b7e9646c75fba5614b09823a3e
[ "MIT" ]
100
2019-08-23T07:52:30.000Z
2022-03-20T06:13:10.000Z
tests/db/test_client.py
identixone/fastapi_contrib
e61ecaa3fc114aebb89f4ced28b75bb6dfd21f05
[ "MIT" ]
32
2019-10-01T12:46:14.000Z
2022-02-01T13:44:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from fastapi import FastAPI from tests.mock import MongoDBMock app = FastAPI() app.mongodb = MongoDBMock()
27.913793
76
0.683138
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest from fastapi import FastAPI from fastapi_contrib.db.client import MongoDBClient from fastapi_contrib.db.models import MongoDBModel, MongoDBTimeStampedModel from tests.mock import MongoDBMock from tests.utils import override_settings, AsyncMock, AsyncIterator...
0
5,711
0
55
0
0
0
132
410
ba827c49e3526517c097653d7d372a40097b7233
3,402
py
Python
demo.py
MostafaGazar/temperature_scaling
a474b23f6958be9629b70341a85f5b53fcfb0ec8
[ "MIT" ]
724
2017-08-03T14:35:06.000Z
2022-03-30T20:58:39.000Z
demo.py
MostafaGazar/temperature_scaling
a474b23f6958be9629b70341a85f5b53fcfb0ec8
[ "MIT" ]
28
2017-08-04T15:01:04.000Z
2022-03-16T22:44:11.000Z
demo.py
MostafaGazar/temperature_scaling
a474b23f6958be9629b70341a85f5b53fcfb0ec8
[ "MIT" ]
121
2017-12-08T02:19:35.000Z
2022-03-09T07:37:39.000Z
import fire import os import torch import torchvision as tv from torch.utils.data.sampler import SubsetRandomSampler from models import DenseNet from temperature_scaling import ModelWithTemperature def demo(data, save, depth=40, growth_rate=12, batch_size=256): """ Applies temperature scaling to a trained mod...
38.659091
97
0.708113
import fire import os import torch import torchvision as tv from torch.utils.data.sampler import SubsetRandomSampler from models import DenseNet from temperature_scaling import ModelWithTemperature def demo(data, save, depth=40, growth_rate=12, batch_size=256): """ Applies temperature scaling to a trained mod...
0
0
0
0
0
0
0
0
0
f9758037fff13223db9d17907e8825f9598c281c
2,269
py
Python
Spy/SpyPipe/SpyPipeServer.py
Cesare-TT/Svt_py_vif
98f05857c65ea13b065d41119ffb2e256e237be1
[ "Apache-2.0" ]
2
2021-04-08T12:51:06.000Z
2021-04-24T10:08:19.000Z
Spy/SpyPipe/SpyPipeServer.py
Cesare-TT/svt_py_vif
98f05857c65ea13b065d41119ffb2e256e237be1
[ "Apache-2.0" ]
null
null
null
Spy/SpyPipe/SpyPipeServer.py
Cesare-TT/svt_py_vif
98f05857c65ea13b065d41119ffb2e256e237be1
[ "Apache-2.0" ]
null
null
null
from . import SpyPipeGRPC_pb2 as proto_pb2 if __name__ == '__main__': # server = serve() # server.stop(grace=None) print('python server started.') server = SpyPipeServer('test') server.start() #server.stop() # def serve(): # queue_rpc2storage = Queue(100) # server = grpc.serve...
28.3625
101
0.639048
import time from concurrent import futures from multiprocessing import Queue,Process from threading import Event import grpc from . import SpyPipeGRPC_pb2 as proto_pb2 from . import SpyPipeGRPC_pb2_grpc as proto_pb2_grpc class RemoteStorage(proto_pb2_grpc.SpyPipeGRPCServicer): def __init__(self...
0
0
0
1,310
0
0
0
46
206
960abd72c3af48754c70915c9583f00167061f89
900
py
Python
stubs/ev3_pybricks_v1_0_0/umqtt/simple.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/ev3_pybricks_v1_0_0/umqtt/simple.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/ev3_pybricks_v1_0_0/umqtt/simple.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
""" Module: 'umqtt.simple' on LEGO EV3 v1.0.0 """ # MCU: sysname=ev3, nodename=ev3, release=('v1.0.0',), version=('0.0.0',), machine=ev3 # Stubber: 1.3.2 - updated socket = None struct = None
16.071429
86
0.546667
""" Module: 'umqtt.simple' on LEGO EV3 v1.0.0 """ # MCU: sysname=ev3, nodename=ev3, release=('v1.0.0',), version=('0.0.0',), machine=ev3 # Stubber: 1.3.2 - updated from typing import Any class MQTTClient: """""" def _recv_len(self, *argv) -> Any: pass def _send_str(self, *argv) -> Any: p...
0
0
0
609
0
2
0
1
91
285d269052487416104191179ac4d238b0511c2b
1,333
py
Python
references/test_code/test_source/scripts/test.py
qoopen0815/ADS-AutomaticDartScorer-
9c287aa2b2db71ac7e15085d88dff4cf83c3a7c9
[ "Apache-2.0" ]
null
null
null
references/test_code/test_source/scripts/test.py
qoopen0815/ADS-AutomaticDartScorer-
9c287aa2b2db71ac7e15085d88dff4cf83c3a7c9
[ "Apache-2.0" ]
1
2020-09-26T05:55:21.000Z
2020-09-26T05:55:21.000Z
references/test_code/test_source/scripts/test.py
calm0815/ADS-AutomaticDartScorer-
9c287aa2b2db71ac7e15085d88dff4cf83c3a7c9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import cv2 # RGB # # img = cv2.imread("../../../../resources/capture_l_plane.png", 1) img = cv2.imread("../../../../resources/result.png", 1) # img = cv2.resize(img , (int(img.shape[1]*0.5), int(img.shape[0]*0.5))) # cv2.namedWindow("img", cv2.WINDOW_NORMAL) # cv2.createTrackbar("R_min", "...
35.078947
99
0.663916
# -*- coding: utf-8 -*- import cv2 # トラックバーの値を変更する度にRGBを出力する def changeColor(val): r_min = cv2.getTrackbarPos("R_min", "img") r_max = cv2.getTrackbarPos("R_max", "img") g_min = cv2.getTrackbarPos("G_min", "img") g_max = cv2.getTrackbarPos("G_max", "img") b_min = cv2.getTrackbarPos("B_min", "img") ...
264
0
0
0
0
461
0
0
22
ec2992cf74bd952128a373125505ff1e8aab1f87
126,215
py
Python
pysnmp-with-texts/DLSW-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/DLSW-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/DLSW-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module DLSW-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DLSW-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:07:01 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1...
178.269774
9,756
0.788575
# # PySNMP MIB module DLSW-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DLSW-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:07:01 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1...
0
0
0
4,211
0
0
0
0
158
1967d13c3f768e829c80718e3dba109dbd9aa06d
4,522
py
Python
src/WikiDetector.py
bharat-suri/ComplexEmbeddings
f9fd76dd22ab5f4fcccc31e61b6a9a86e6de9ff0
[ "MIT" ]
1
2018-05-09T09:28:15.000Z
2018-05-09T09:28:15.000Z
src/WikiDetector.py
tramplingWillow/ComplexEmbeddings
f9fd76dd22ab5f4fcccc31e61b6a9a86e6de9ff0
[ "MIT" ]
4
2021-03-18T20:33:00.000Z
2022-01-13T00:46:20.000Z
src/WikiDetector.py
bharat-suri/ComplexEmbeddings
f9fd76dd22ab5f4fcccc31e61b6a9a86e6de9ff0
[ "MIT" ]
null
null
null
import os import re import sys import time import tempfile from joblib import Parallel, delayed from urllib.parse import unquote from collections import Counter def upcase_first_letter(s): """ Capitalize the string. """ return s[0].upper() + s[1:] def replaceAnchorText(filename): """ Given the input file, th...
27.077844
136
0.639982
import os import re import sys import time import tempfile from joblib import Parallel, delayed from urllib.parse import unquote from collections import Counter def upcase_first_letter(s): """ Capitalize the string. """ return s[0].upper() + s[1:] def replaceAnchorText(filename): """ Given the input file, th...
0
0
0
0
0
0
0
0
0
3aab30f84514f366abf8ccb4ddb25329d9e6ab4f
778
py
Python
python_learning/basic_learning/lesson01.py
suncht/sun-python
b02cba75c142adc44438192577cae171cb4837d4
[ "Apache-2.0" ]
null
null
null
python_learning/basic_learning/lesson01.py
suncht/sun-python
b02cba75c142adc44438192577cae171cb4837d4
[ "Apache-2.0" ]
null
null
null
python_learning/basic_learning/lesson01.py
suncht/sun-python
b02cba75c142adc44438192577cae171cb4837d4
[ "Apache-2.0" ]
null
null
null
words = ['car', 'window', 'ddd'] print('------------------') for w in words[1:-1]: print(w, len(w)) print('------1------------') for index, w in enumerate(words): print(index, w) print('------2------------') for index, w in enumerate(words, start=1): print(index, w) maps = {'10': 'sun', '11': 'li', '1...
19.948718
47
0.484576
words = ['car', 'window', 'ddd'] print('------一般遍历------------') for w in words[1:-1]: print(w, len(w)) print('------带索引的遍历1------------') for index, w in enumerate(words): print(index, w) print('------带索引的遍历2------------') for index, w in enumerate(words, start=1): print(index, w) maps = {'10': 'sun'...
84
0
0
0
0
0
0
0
0
8283124bb8ae178fd38985032f44e4cce556c9a5
3,720
py
Python
data_prep.py
AlexTheM8/keras-frcnn
2e70679865385dcd861b4be8cac1a6c8ad0e3455
[ "Apache-2.0" ]
null
null
null
data_prep.py
AlexTheM8/keras-frcnn
2e70679865385dcd861b4be8cac1a6c8ad0e3455
[ "Apache-2.0" ]
1
2022-01-17T21:42:03.000Z
2022-01-17T21:42:03.000Z
data_prep.py
AlexTheM8/keras-frcnn
2e70679865385dcd861b4be8cac1a6c8ad0e3455
[ "Apache-2.0" ]
null
null
null
import argparse import os import cv2 # initialize the list of reference points refPt = [] r = None # construct the argument parser and parse the arguments ap = argparse.ArgumentParser() ap.add_argument("-p", "--path", required=True, help="Path to the images") ap.add_argument("-a", "--annotate", required=False, h...
35.769231
119
0.541398
import argparse import os import cv2 # initialize the list of reference points refPt = [] r = None def ResizeWithAspectRatio(image, width=None, height=None, inter=cv2.INTER_AREA): dim = None (h, w) = image.shape[:2] global r if width is None and height is None: return image if width is N...
0
0
0
0
0
1,080
0
0
69
b798273ce1f1b9a4a531453f3e36c04301dc8cc3
1,454
py
Python
util/manual_checks.py
RealA10N/wikiquote
c8daddd38d6d59744309f60a2bf911262e46988d
[ "MIT" ]
55
2015-02-06T11:06:01.000Z
2018-04-19T19:09:30.000Z
util/manual_checks.py
RealA10N/wikiquote
c8daddd38d6d59744309f60a2bf911262e46988d
[ "MIT" ]
17
2015-02-14T19:07:57.000Z
2018-04-27T03:06:30.000Z
util/manual_checks.py
RealA10N/wikiquote
c8daddd38d6d59744309f60a2bf911262e46988d
[ "MIT" ]
24
2015-02-08T04:15:38.000Z
2018-09-09T14:48:29.000Z
import wikiquote # manual_checks.py # A short script to manually test wikiquote's functionality MAX_QUOTE_LEN = 70 articles = [ 'Barack Obama', 'Albert Einstein', 'Ada Lovelace', 'Leonard Cohen' ] for lang in wikiquote.supported_languages(): print('\n---------------------------------------------...
28.509804
79
0.462173
import wikiquote # manual_checks.py # A short script to manually test wikiquote's functionality MAX_QUOTE_LEN = 70 articles = [ 'Barack Obama', 'Albert Einstein', 'Ada Lovelace', 'Leonard Cohen' ] for lang in wikiquote.supported_languages(): print('\n---------------------------------------------...
0
0
0
0
0
0
0
0
0
8da94531cabea94207c2a7225f8dc11dfe2a2af3
1,133
py
Python
src/Modules/Web/web_configMenu.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2016-09-21T19:30:21.000Z
2016-09-21T19:30:21.000Z
src/Modules/Web/web_configMenu.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
null
null
null
src/Modules/Web/web_configMenu.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2020-07-23T11:13:36.000Z
2020-07-23T11:13:36.000Z
""" -*- test-case-name: PyHouse.src.Modules.Web.test.test_web_configMenu -*- @name: PyHouse/src/Modules/Web/web_configMenu.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2015-2015 by D. Brian Kimmel @license: MIT License @note: Created on Aug 23, 2015 @Summary: ...
27.634146
87
0.701677
""" -*- test-case-name: PyHouse.src.Modules.Web.test.test_web_configMenu -*- @name: PyHouse/src/Modules/Web/web_configMenu.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2015-2015 by D. Brian Kimmel @license: MIT License @note: Created on Aug 23, 2015 @Summary: ...
0
0
0
371
0
0
0
7
71
800995b599b0b3eb588f67b3f508e080f4b132b3
647
py
Python
Minor Projects/record_sound.py
AMARTYA2020/nppy
7f750534bb5faa4e661447ca132077de0ce0a0ed
[ "MIT" ]
4
2020-12-07T10:15:08.000Z
2021-11-17T11:21:07.000Z
Minor Projects/record_sound.py
AMARTYA2020/nppy
7f750534bb5faa4e661447ca132077de0ce0a0ed
[ "MIT" ]
null
null
null
Minor Projects/record_sound.py
AMARTYA2020/nppy
7f750534bb5faa4e661447ca132077de0ce0a0ed
[ "MIT" ]
1
2021-02-17T07:53:13.000Z
2021-02-17T07:53:13.000Z
if __name__ == '__main__': record = Record_Sound() record.record_sound()
30.809524
129
0.616692
import soundfile import sounddevice class Record_Sound: def __init__(self, name='Reocrd.wav', rate=40000, duration=60): self.name = name # .wav (extension) self.rate = rate # Hertz self.duration = duration # Seconds def record_sound(self): '''R...
0
0
0
495
0
0
0
-8
70
f8f7d1c2e739391af520fbdd2477c31b86272739
18,741
py
Python
boxsdk/object/search.py
bipsterbot/box-python-sdk
a55cbc6d8e2af6d51c30b795ad240bf8e45e922d
[ "Apache-2.0" ]
367
2015-02-10T05:55:45.000Z
2022-03-16T23:39:58.000Z
boxsdk/object/search.py
bipsterbot/box-python-sdk
a55cbc6d8e2af6d51c30b795ad240bf8e45e922d
[ "Apache-2.0" ]
686
2015-02-10T01:21:28.000Z
2022-03-31T11:40:22.000Z
boxsdk/object/search.py
bipsterbot/box-python-sdk
a55cbc6d8e2af6d51c30b795ad240bf8e45e922d
[ "Apache-2.0" ]
260
2015-02-16T17:35:06.000Z
2022-03-20T17:45:28.000Z
# coding: utf-8 from __future__ import unicode_literals, absolute_import
35.629278
134
0.588496
# coding: utf-8 from __future__ import unicode_literals, absolute_import import json from .base_endpoint import BaseEndpoint from ..pagination.limit_offset_based_object_collection import LimitOffsetBasedObjectCollection from ..pagination.marker_based_object_collection import MarkerBasedObjectCollection from ..util.a...
0
14,280
0
3,949
0
0
0
184
249
c3f525a433e2a6d4ca2d9c1ef91bbd4e3b476655
17,629
py
Python
toast_planck/preproc_modules/taudeconvolve.py
planck-npipe/toast-npipe
ca3e92ea3a81a6146e246ec1d0c5bdcaea3b49f2
[ "BSD-2-Clause" ]
1
2021-04-20T08:09:35.000Z
2021-04-20T08:09:35.000Z
toast_planck/preproc_modules/taudeconvolve.py
planck-npipe/toast-npipe
ca3e92ea3a81a6146e246ec1d0c5bdcaea3b49f2
[ "BSD-2-Clause" ]
null
null
null
toast_planck/preproc_modules/taudeconvolve.py
planck-npipe/toast-npipe
ca3e92ea3a81a6146e246ec1d0c5bdcaea3b49f2
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2015-2018 by the parties listed in the AUTHORS file. # All rights reserved. Use of this source code is governed by # a BSD-style license that can be found in the LICENSE file. import toast.timing as timing
42.997561
201
0.512054
# Copyright (c) 2015-2018 by the parties listed in the AUTHORS file. # All rights reserved. Use of this source code is governed by # a BSD-style license that can be found in the LICENSE file. from scipy import optimize from scipy.signal import fftconvolve from toast.mpi import MPI import numpy as np import toast.tim...
0
0
0
17,236
0
0
0
33
136
dcaa38dffec7b18b21d57d14b209e0915d096ecf
10,860
py
Python
workshop_material/tools.py
nrupatunga/pyimageconf2018
2f4c83a78206106b50835730749028a03fbbc565
[ "BSL-1.0" ]
106
2018-08-30T01:45:38.000Z
2021-06-03T11:05:15.000Z
workshop_material/tools.py
nrupatunga/pyimageconf2018
2f4c83a78206106b50835730749028a03fbbc565
[ "BSL-1.0" ]
3
2019-04-12T02:03:25.000Z
2019-05-07T00:16:55.000Z
workshop_material/tools.py
nrupatunga/pyimageconf2018
2f4c83a78206106b50835730749028a03fbbc565
[ "BSL-1.0" ]
36
2018-08-30T04:08:31.000Z
2021-05-18T07:02:10.000Z
from math import sqrt ########################################################################################### ########################################################################################### ########################################################################################### ###############...
35.032258
117
0.53628
import numpy as np from math import pi,cos,sin,sqrt from dlib import point, get_rect, center import dlib ########################################################################################### class hough_transform: def __init__(self, size): self.size = size def perform_generic_hough_transform(s...
0
0
0
1,201
0
8,085
0
117
273
89654d5c3e8a017c193c6680270df4ae459a11ff
4,099
py
Python
main.py
kishorepv/Neural-Calculator
196cc95aa0ddb43893aebd989340db4bed916653
[ "Apache-2.0" ]
3
2019-06-25T08:16:33.000Z
2020-01-30T05:10:59.000Z
main.py
kishorepv/Neural-Calculator
196cc95aa0ddb43893aebd989340db4bed916653
[ "Apache-2.0" ]
null
null
null
main.py
kishorepv/Neural-Calculator
196cc95aa0ddb43893aebd989340db4bed916653
[ "Apache-2.0" ]
null
null
null
import os from flask import Flask import os.path #from flask_json import FlaskJSON, JsonError, json_response, as_json app = Flask(__name__) #FlaskJSON(app) number=list() data=list() exp=None if __name__ == "__main__": app.secret_key = os.urandom(12) app.run(debug=False, host='0.0.0.0', port=31456)
26.967105
116
0.645035
import os from flask import Flask, flash, redirect, render_template, request, session, abort, url_for, make_response, Response import sys import yaml import os.path import base64 from predict_digit import * from matplotlib import image as mplimg import cv2 import numpy as np #from flask_json import FlaskJSON, JsonError...
0
1,080
0
0
0
2,220
0
97
389
7d115feb5a97142ac2b56cded232bdf84bcc2ff0
2,317
py
Python
src/lamplib/src/genny/tasks/genny_runner.py
jordist/genny
6a8cdbb98eea3c35b2a67e3627bece5d1efee733
[ "Apache-2.0" ]
30
2019-01-30T17:21:44.000Z
2022-01-21T00:05:33.000Z
src/lamplib/src/genny/tasks/genny_runner.py
jordist/genny
6a8cdbb98eea3c35b2a67e3627bece5d1efee733
[ "Apache-2.0" ]
358
2019-01-15T21:51:57.000Z
2022-03-30T16:10:42.000Z
src/lamplib/src/genny/tasks/genny_runner.py
jordist/genny
6a8cdbb98eea3c35b2a67e3627bece5d1efee733
[ "Apache-2.0" ]
50
2019-01-15T20:01:15.000Z
2022-03-24T16:19:52.000Z
from typing import List import structlog import os from genny.cmd_runner import run_command from genny.curator import poplar_grpc from genny.tasks import preprocess SLOG = structlog.get_logger(__name__) def main_genny_runner( genny_args: List[str], genny_repo_root: str, cleanup_metrics: bool, works...
31.310811
94
0.596893
from typing import List import structlog import tempfile import shutil import os from genny.cmd_runner import run_command from genny.curator import poplar_grpc from genny.tasks import preprocess SLOG = structlog.get_logger(__name__) def main_genny_runner( genny_args: List[str], genny_repo_root: str, cl...
0
0
0
0
0
0
0
-14
44
1626418bf281d9d52bb39d181c8430b2beca0bad
2,374
py
Python
telesurvideos/cms_plugins.py
dreglad/telesurvideos
626ac2e4e1a158b50e847fe6753485f1d9c72fcf
[ "MIT" ]
null
null
null
telesurvideos/cms_plugins.py
dreglad/telesurvideos
626ac2e4e1a158b50e847fe6753485f1d9c72fcf
[ "MIT" ]
null
null
null
telesurvideos/cms_plugins.py
dreglad/telesurvideos
626ac2e4e1a158b50e847fe6753485f1d9c72fcf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # """telesurvideos CMS plugins""" from __future__ import unicode_literals from cms.plugin_pool import plugin_pool plugin_pool.register_plugin(ProgramaListaPlugin) plugin_pool.register_plugin(ClipsListaPlugin)
29.675
92
0.545914
# -*- coding: utf-8 -*- # """telesurvideos CMS plugins""" from __future__ import unicode_literals from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext_lazy as _ from .models import ProgramaListPluginModel, VideoListPluginModel class Programa...
4
0
0
1,924
0
0
0
98
114
1c4e3d57f90816dbc19b8d30bb28fc13d0e022c9
2,793
py
Python
test_cmd_app/test_polishing.py
ntnguyen63/ares
a09ca91ed43007946f489c48b8c22f3a80d8a069
[ "MIT" ]
null
null
null
test_cmd_app/test_polishing.py
ntnguyen63/ares
a09ca91ed43007946f489c48b8c22f3a80d8a069
[ "MIT" ]
null
null
null
test_cmd_app/test_polishing.py
ntnguyen63/ares
a09ca91ed43007946f489c48b8c22f3a80d8a069
[ "MIT" ]
null
null
null
from pathlib import Path from ..lib.polisher import (PolishPipeline) draft = Path("test_data/drafts/assembly.fasta") r1, r2 = ["test_data/r1.fastq", "test_data/r2.fastq"] long_reads = "test_data/long.fastq" busco_lineage = "fungi_odb10" threads = 30 pipeline = PolishPipeline( root_dir="polishing", drafts=[P...
25.162162
65
0.694952
import os import shutil import subprocess from pathlib import Path from ..lib.polisher import ( PolishPipeline, create_sorted_aln, pilon, ShortReadPolishRunner, ) draft = Path("test_data/drafts/assembly.fasta") r1, r2 = ["test_data/r1.fastq", "test_data/r2.fastq"] long_reads = "test_data/long.fastq" ...
0
0
0
0
0
2,079
0
44
227
30f427df8e935168a3306f6e515597316050143a
219
py
Python
Emmanuel ANENE/Phase 1/Python Basic 1/Day5/task7.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Emmanuel ANENE/Phase 1/Python Basic 1/Day5/task7.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Emmanuel ANENE/Phase 1/Python Basic 1/Day5/task7.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
fname = input("Enter your first name: ") lname = input("Enter your last name: ") age = int(input("Enter your age: ")) print('''First name: {0} Last name: {1} Age: {2}'''.format(fname.capitalize(), lname.upper(), age))
27.375
59
0.639269
fname = input("Enter your first name: ") lname = input("Enter your last name: ") age = int(input("Enter your age: ")) print('''First name: {0} Last name: {1} Age: {2}'''.format(fname.capitalize(), lname.upper(), age))
0
0
0
0
0
0
0
0
0
4802b03aa9efe968b78419bc86c831ac9abff6b0
2,104
py
Python
tests/b017.py
cricalix/flake8-bugbear
752a60df73f98e60231d4877e2a33fa3b9931ca1
[ "MIT" ]
null
null
null
tests/b017.py
cricalix/flake8-bugbear
752a60df73f98e60231d4877e2a33fa3b9931ca1
[ "MIT" ]
null
null
null
tests/b017.py
cricalix/flake8-bugbear
752a60df73f98e60231d4877e2a33fa3b9931ca1
[ "MIT" ]
null
null
null
""" Should emit: B017 - on lines 15, 20, 25 All tests are valid unittest syntax, and will work if this code is executed. """ import unittest # None of these should trigger the With visitor. CONSTANT = True # This may trigger the visitor, but it shouldn't match the filters with Foo() as a: print(a) if __n...
29.633803
75
0.672053
""" Should emit: B017 - on lines 15, 20, 25 All tests are valid unittest syntax, and will work if this code is executed. """ import asyncio import unittest class AssertRaisesThatShouldTrigger(unittest.TestCase): def test_bare_Exception(self) -> None: """The use of Exception like this will catch everythin...
0
0
0
1,587
0
49
0
-7
114
ac83689e53eaa3778b0752aa47228c1d884d7453
1,451
py
Python
setup.py
NiklasHoltmeyer/sentiment-analysis
705c3a5ebe75fd89b2fe9c38c9611cae3695c8db
[ "MIT" ]
null
null
null
setup.py
NiklasHoltmeyer/sentiment-analysis
705c3a5ebe75fd89b2fe9c38c9611cae3695c8db
[ "MIT" ]
null
null
null
setup.py
NiklasHoltmeyer/sentiment-analysis
705c3a5ebe75fd89b2fe9c38c9611cae3695c8db
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('LICENSE') as f: license = f.read() #with open('README.rst') as f: #readme = f.read() setup( name='DeepSentiment', version='0.1.0', description='Deep Learning for Sentiment Analysis', #long_description=read...
28.45098
64
0.562371
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('LICENSE') as f: license = f.read() #with open('README.rst') as f: #readme = f.read() setup( name='DeepSentiment', version='0.1.0', description='Deep Learning for Sentiment Analysis', #long_description=read...
0
0
0
0
0
0
0
0
0
b45d40200f29a502282da356feff14ba69526f79
435
py
Python
dash/admin.py
CMPUT404W17T00/CMPUT404-project
870e1844885906f8b48eac9a888e4874d28b3745
[ "Apache-2.0" ]
2
2017-03-02T01:46:36.000Z
2018-11-01T20:36:58.000Z
dash/admin.py
CMPUT404W17T00/CMPUT404-project
870e1844885906f8b48eac9a888e4874d28b3745
[ "Apache-2.0" ]
47
2017-01-23T00:00:17.000Z
2017-04-12T21:22:23.000Z
dash/admin.py
CMPUT404W17T00/CMPUT404-project
870e1844885906f8b48eac9a888e4874d28b3745
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import Post, Comment, Author, Category, CanSee, FriendRequest, Follow, RemoteCommentAuthor # Register your models here. admin.site.register(Author) admin.site.register(RemoteCommentAuthor) admin.site.register(Post) admin.site.register(Comment) admin.site.register(Category...
29
77
0.781609
from django.contrib import admin from .models import Post, Comment, Author, Category, CanSee, FriendRequest, \ Follow, RemoteCommentAuthor # Register your models here. admin.site.register(Author) admin.site.register(RemoteCommentAuthor) admin.site.register(Post) admin.site.register(Comment) admin....
0
0
0
0
0
0
0
22
0
471a5abbb901cd7e4469624d81045db786180f14
143
py
Python
botaclan/player/__init__.py
bataclanofficial/botaclan
93f8ccab4f29c50a395a588b7779431eab8625e8
[ "Apache-2.0" ]
null
null
null
botaclan/player/__init__.py
bataclanofficial/botaclan
93f8ccab4f29c50a395a588b7779431eab8625e8
[ "Apache-2.0" ]
null
null
null
botaclan/player/__init__.py
bataclanofficial/botaclan
93f8ccab4f29c50a395a588b7779431eab8625e8
[ "Apache-2.0" ]
null
null
null
# This package had a lot of inspiration and snippes from the following Gist # https://gist.github.com/vbe0201/ade9b80f2d3b64643d854938d40a0a2d
47.666667
75
0.825175
# This package had a lot of inspiration and snippes from the following Gist # https://gist.github.com/vbe0201/ade9b80f2d3b64643d854938d40a0a2d
0
0
0
0
0
0
0
0
0
e81dbd23afaf25d2cb8a21092aedb2236f38b279
17,573
py
Python
lib/matplotlib/tests/test_colors.py
yuvallanger/matplotlib
e0020d318a9a9685594c6bff4631f74599321459
[ "MIT", "BSD-3-Clause" ]
8
2017-04-11T08:55:30.000Z
2022-03-25T04:31:26.000Z
lib/matplotlib/tests/test_colors.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/matplotlib/tests/test_colors.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
14
2015-10-05T04:15:46.000Z
2020-06-11T18:06:02.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import itertools import numpy as np from numpy.testing.utils import assert_array_equal, assert_array_almost_equal import matplotlib.colors as mcolors import matplotlib.cm as cm import matplotlib.cbook as cbook...
39.051111
79
0.521937
from __future__ import (absolute_import, division, print_function, unicode_literals) import six import itertools from distutils.version import LooseVersion as V from nose.tools import assert_raises import numpy as np from numpy.testing.utils import assert_array_equal, assert_array_almost_equa...
0
7,595
0
0
0
4,410
0
147
392
0f358cfd4138a54754752990868e328e80ac937b
442
py
Python
examples/migrations/0005_advancedfields_file_field_two.py
sayanjap/DynamicForms
071707de36d109fe3a17ae5df239240ea5ba707f
[ "BSD-3-Clause" ]
42
2018-01-18T14:50:05.000Z
2022-03-24T18:34:19.000Z
examples/migrations/0005_advancedfields_file_field_two.py
sayanjap/DynamicForms
071707de36d109fe3a17ae5df239240ea5ba707f
[ "BSD-3-Clause" ]
14
2018-12-05T21:39:23.000Z
2022-02-27T06:43:48.000Z
examples/migrations/0005_advancedfields_file_field_two.py
sayanjap/DynamicForms
071707de36d109fe3a17ae5df239240ea5ba707f
[ "BSD-3-Clause" ]
5
2018-01-18T16:32:20.000Z
2021-06-07T10:15:18.000Z
# Generated by Django 3.0.10 on 2020-09-15 07:07
23.263158
82
0.628959
# Generated by Django 3.0.10 on 2020-09-15 07:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('examples', '0004_basicfields_password_field'), ] operations = [ migrations.AddField( model_name='advancedfields', n...
0
0
0
327
0
0
0
19
46
6ccf625c3351d592e09c1eca0c6a727ba7e80593
19,012
py
Python
website/ctrl/forum.py
Kapzy9r/wwmmo
67038053613d714a50653001ddd05021a13b6949
[ "MIT" ]
1
2020-04-14T11:32:58.000Z
2020-04-14T11:32:58.000Z
website/ctrl/forum.py
Kapzy9r/wwmmo
67038053613d714a50653001ddd05021a13b6949
[ "MIT" ]
null
null
null
website/ctrl/forum.py
Kapzy9r/wwmmo
67038053613d714a50653001ddd05021a13b6949
[ "MIT" ]
null
null
null
import datetime import logging from google.appengine.api import memcache from google.appengine.api import mail from google.appengine.api import search from google.appengine.ext import db from google.appengine.ext import deferred import ctrl import ctrl.tmpl import ctrl.profile import model.forum def getForums()...
34.504537
152
0.688828
import datetime import re import logging import random from google.appengine.api import memcache from google.appengine.api import mail from google.appengine.api import search from google.appengine.api import users from google.appengine.ext import db from google.appengine.ext import deferred import ctrl import ctr...
0
0
0
0
0
3,860
0
-3
274
cce48155feb12e9de28b4f26e2575e40dcc0f875
2,408
py
Python
modules/animals.py
jvicu2001/alexis-bot
6b10377e3ec61aaa6051220ae9684b2f8f73b36e
[ "MIT" ]
7
2017-05-01T01:06:02.000Z
2017-09-07T18:58:37.000Z
modules/animals.py
jvicu2001/alexis-bot
6b10377e3ec61aaa6051220ae9684b2f8f73b36e
[ "MIT" ]
67
2017-12-03T21:38:00.000Z
2022-03-11T23:14:11.000Z
modules/animals.py
jvicu2001/alexis-bot
6b10377e3ec61aaa6051220ae9684b2f8f73b36e
[ "MIT" ]
8
2017-05-01T01:06:07.000Z
2017-09-16T10:34:19.000Z
url_settings = { 'cat': ['http://aws.random.cat/meow', ['gato', 'gatito', 'neko'], 'file'], 'dog': ['https://dog.ceo/api/breeds/image/random', ['perro', 'perrito', 'doggo'], 'message'], 'shiba': ['http://shibe.online/api/shibes', ['shibe', 'shibainu'], 0], 'fox': ['https://randomfox.ca/floof/', ['foxxo...
37.046154
120
0.519934
import random from bot import Command, utils, categories url_settings = { 'cat': ['http://aws.random.cat/meow', ['gato', 'gatito', 'neko'], 'file'], 'dog': ['https://dog.ceo/api/breeds/image/random', ['perro', 'perrito', 'doggo'], 'message'], 'shiba': ['http://shibe.online/api/shibes', ['shibe', 'shibainu...
0
0
1,360
287
0
0
0
13
68
e8adfc21f8912426bbba47effb9094816853c2f0
1,837
py
Python
website/server/codenames/generators/connector.py
mderijk/codenames
7133a8e85243550dddf4a64e90c9550f3b9e2cb4
[ "MIT" ]
2
2021-06-10T20:53:06.000Z
2021-06-11T10:45:16.000Z
website/server/codenames/generators/connector.py
mderijk/codenames
7133a8e85243550dddf4a64e90c9550f3b9e2cb4
[ "MIT" ]
null
null
null
website/server/codenames/generators/connector.py
mderijk/codenames
7133a8e85243550dddf4a64e90c9550f3b9e2cb4
[ "MIT" ]
1
2021-07-26T07:05:38.000Z
2021-07-26T07:05:38.000Z
import socket # a small hack to make the listener support non-blocking and timeout mode # Connector class
25.513889
100
0.722918
import multiprocessing.connection import os import socket import sys import socket from .protocol import Protocol # a small hack to make the listener support non-blocking and timeout mode class Listener(multiprocessing.connection.Listener): def accept(self, *args, timeout=None, **kwargs): if timeout: self._lis...
0
0
0
1,583
0
0
0
-10
156
43829f8e584c907fdf6af75c4560e9e3478ef2a0
10,836
py
Python
scripts/run_tests.py
JorisHerbots/aioquic
a3d95020078939d7ec7d5768e06db9fa53cbf287
[ "BSD-3-Clause" ]
1
2022-01-08T03:07:40.000Z
2022-01-08T03:07:40.000Z
scripts/run_tests.py
JorisHerbots/aioquic
a3d95020078939d7ec7d5768e06db9fa53cbf287
[ "BSD-3-Clause" ]
null
null
null
scripts/run_tests.py
JorisHerbots/aioquic
a3d95020078939d7ec7d5768e06db9fa53cbf287
[ "BSD-3-Clause" ]
1
2020-04-30T21:00:00.000Z
2020-04-30T21:00:00.000Z
import subprocess # need to run setup.py first to make sure all our changes are compiled before running # if you didn't make changes to aioquic, you can comment this step out # need to run this from inside the root dir # so do python3 scripts/run_tests.py print("Compiling...") process = subprocess.run("{}".format("...
55.85567
272
0.66842
import subprocess # need to run setup.py first to make sure all our changes are compiled before running # if you didn't make changes to aioquic, you can comment this step out # need to run this from inside the root dir # so do python3 scripts/run_tests.py print("Compiling...") process = subprocess.run("{}".format("...
0
0
0
77
0
1,805
0
0
138