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
16d3ec3e811f8bcbbda9b2661b2d5c5bfcb3f496
5,089
py
Python
test/test_pool.py
nrempel/von_anchor
db6ae077e7161d7e333371583c26615a7d47fbe5
[ "Apache-2.0" ]
null
null
null
test/test_pool.py
nrempel/von_anchor
db6ae077e7161d7e333371583c26615a7d47fbe5
[ "Apache-2.0" ]
null
null
null
test/test_pool.py
nrempel/von_anchor
db6ae077e7161d7e333371583c26615a7d47fbe5
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017-2019 Government of Canada - Public Services and Procurement Canada - buyandsell.gc.ca 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 ...
35.838028
111
0.694635
""" Copyright 2017-2019 Government of Canada - Public Services and Procurement Canada - buyandsell.gc.ca 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 ...
0
4,117
0
0
0
0
0
135
204
e9f2de1dbade07150ca64b6ce29e9bd28863da2d
814
py
Python
Python tripartite framework/Tornado/code/code/异步-2.py
Ljazz/studyspace
b235e7d16fecf93dd64ad785833d4de5bb17db64
[ "MIT" ]
null
null
null
Python tripartite framework/Tornado/code/code/异步-2.py
Ljazz/studyspace
b235e7d16fecf93dd64ad785833d4de5bb17db64
[ "MIT" ]
null
null
null
Python tripartite framework/Tornado/code/code/异步-2.py
Ljazz/studyspace
b235e7d16fecf93dd64ad785833d4de5bb17db64
[ "MIT" ]
null
null
null
gen = None # long_io if __name__ == "__main__": main()
15.358491
45
0.554054
import time import threading gen = None # 全局生成器,共long_io使用 def gen_coroutine(f): def wrapper(*args, **kwargs): global gen gen = f() gen.next() return wrapper() def long_io(): def fun(): print("开始执行IO操作") global gen time.sleep(5) try: ...
171
103
0
0
0
442
0
-15
159
e3c79c6cc38a2d75171473115198af45390ac167
2,146
py
Python
rfiLib/plot_max_peak.py
ska-telescope/ska-rfi-monitoring-processing
7f8e76b1a82238e148da73dea27db46b2824e711
[ "BSD-3-Clause" ]
null
null
null
rfiLib/plot_max_peak.py
ska-telescope/ska-rfi-monitoring-processing
7f8e76b1a82238e148da73dea27db46b2824e711
[ "BSD-3-Clause" ]
null
null
null
rfiLib/plot_max_peak.py
ska-telescope/ska-rfi-monitoring-processing
7f8e76b1a82238e148da73dea27db46b2824e711
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 11 12:18:58 2019 @author: f.divruno """ #%% # A class that will downsample the data and recompute when zoomed in a figure. # The function plot_max_peak() should be used to plot very big amounts of data.
32.029851
79
0.616962
# -*- coding: utf-8 -*- """ Created on Thu Apr 11 12:18:58 2019 @author: f.divruno """ import numpy as np import matplotlib.pyplot as plt #%% # A class that will downsample the data and recompute when zoomed in a figure. # The function plot_max_peak() should be used to plot very big amounts of data. class DataDi...
0
0
0
1,385
0
409
0
7
94
eab9a3344a2fffa328757b4b7a7de111a946d823
1,951
py
Python
cassandra/type_codes.py
clohfink/python-driver
30a0e27cd1b8999267c146f0a93adf962a50790b
[ "Apache-2.0" ]
1,163
2015-01-01T03:02:05.000Z
2022-03-22T13:04:00.000Z
cassandra/type_codes.py
clohfink/python-driver
30a0e27cd1b8999267c146f0a93adf962a50790b
[ "Apache-2.0" ]
556
2015-01-05T16:39:29.000Z
2022-03-26T20:51:36.000Z
cassandra/type_codes.py
clohfink/python-driver
30a0e27cd1b8999267c146f0a93adf962a50790b
[ "Apache-2.0" ]
449
2015-01-05T10:28:59.000Z
2022-03-14T23:15:32.000Z
""" Module with constants for Cassandra type codes. These constants are useful for a) mapping messages to cqltypes (cassandra/cqltypes.py) b) optimized dispatching for (de)serialization (cassandra/encoding.py) Type codes are repeated here from the Cassandra binary protocol specification: ...
28.691176
83
0.605331
""" Module with constants for Cassandra type codes. These constants are useful for a) mapping messages to cqltypes (cassandra/cqltypes.py) b) optimized dispatching for (de)serialization (cassandra/encoding.py) Type codes are repeated here from the Cassandra binary protocol specification: ...
0
0
0
0
0
0
0
0
0
e72f1c5a7a07c8e7eb16128661007ab5fcee8f85
336
py
Python
crawling/geoInfo.py
debjyoti385/dartnews
139105caa30da45215ccbc1eceed72d83632faa1
[ "BSD-2-Clause" ]
null
null
null
crawling/geoInfo.py
debjyoti385/dartnews
139105caa30da45215ccbc1eceed72d83632faa1
[ "BSD-2-Clause" ]
null
null
null
crawling/geoInfo.py
debjyoti385/dartnews
139105caa30da45215ccbc1eceed72d83632faa1
[ "BSD-2-Clause" ]
null
null
null
import urllib2 baseUrl="http://maps.googleapis.com/maps/api/geocode/json?latlng=%s,%s&sensor=false" geoInfo=open("geoInfoFile","w") lat=28.412593 while(lat<=28.881338): lng=76.83806899999999 while(lng<=77.3484579): url=baseUrl%(lat,lng) print lat,lng geoInfo.write(urllib2.urlopen(url).read()+"\n") lng+=0.001...
21
84
0.71131
import urllib2 baseUrl="http://maps.googleapis.com/maps/api/geocode/json?latlng=%s,%s&sensor=false" geoInfo=open("geoInfoFile","w") lat=28.412593 while(lat<=28.881338): lng=76.83806899999999 while(lng<=77.3484579): url=baseUrl%(lat,lng) print lat,lng geoInfo.write(urllib2.urlopen(url).read()+"\n") lng+=0.001...
0
0
0
0
0
0
0
0
0
f9142db5396cb7230b6df0ea86576872b95161b6
1,520
py
Python
main.py
MaferMazu/memory-manager-simulator-in-python
f05d5ba35a02d3f86c4cb5de43cace2e59cf47af
[ "MIT" ]
null
null
null
main.py
MaferMazu/memory-manager-simulator-in-python
f05d5ba35a02d3f86c4cb5de43cace2e59cf47af
[ "MIT" ]
null
null
null
main.py
MaferMazu/memory-manager-simulator-in-python
f05d5ba35a02d3f86c4cb5de43cace2e59cf47af
[ "MIT" ]
null
null
null
from sys import argv def print_help(): """ Print help for user """ response="""RESERVAR <nombre> <cantidad> Representa una reserva de espacio de <cantidad> bloques, asociados al identificador <nombre>. LIBERAR <nombre> Representa una liberacin del espacio que contiene el ...
27.142857
75
0.601316
from sys import exit,argv from memory_manager import MemoryManager def main(num): print("*"*30) print("""Welcome to this memory manager simulator :D Happy coding\n""") my_manager=MemoryManager(num) while True: my_input=input(">> ") my_input=my_input.upper() elems=my_input.split...
14
0
0
0
0
620
0
24
45
622af96effe69faef1298a1285b296eb040caa59
247
py
Python
src/training_utils/time_tracker.py
subhadarship/GermEval2021
c131b88a90bbb236afb57cff6302f7a2afd99346
[ "MIT" ]
1
2021-09-12T10:11:39.000Z
2021-09-12T10:11:39.000Z
src/training_utils/time_tracker.py
subhadarship/GermEval2021
c131b88a90bbb236afb57cff6302f7a2afd99346
[ "MIT" ]
null
null
null
src/training_utils/time_tracker.py
subhadarship/GermEval2021
c131b88a90bbb236afb57cff6302f7a2afd99346
[ "MIT" ]
1
2022-01-17T15:36:44.000Z
2022-01-17T15:36:44.000Z
def epoch_time(start_time, end_time): """Compute epoch time""" elapsed_time = end_time - start_time elapsed_mins = int(elapsed_time / 60) elapsed_secs = int(elapsed_time - (elapsed_mins * 60)) return elapsed_mins, elapsed_secs
35.285714
58
0.716599
def epoch_time(start_time, end_time): """Compute epoch time""" elapsed_time = end_time - start_time elapsed_mins = int(elapsed_time / 60) elapsed_secs = int(elapsed_time - (elapsed_mins * 60)) return elapsed_mins, elapsed_secs
0
0
0
0
0
0
0
0
0
eb7b28580a861e37711fc19dc0aa42dadc01f1be
2,432
py
Python
archivist_samples/door_entry/main.py
jitsuin-inc/archivist-samples
26940fd1659aa9a1cd8b7aade668c107780ceadd
[ "MIT" ]
2
2021-05-27T09:29:41.000Z
2022-03-25T13:31:08.000Z
archivist_samples/door_entry/main.py
jitsuin-inc/archivist-samples
26940fd1659aa9a1cd8b7aade668c107780ceadd
[ "MIT" ]
14
2021-05-26T07:12:49.000Z
2022-01-25T17:25:17.000Z
archivist_samples/door_entry/main.py
jitsuin-inc/archivist-samples
26940fd1659aa9a1cd8b7aade668c107780ceadd
[ "MIT" ]
1
2021-05-26T16:05:19.000Z
2021-05-26T16:05:19.000Z
# Copyright 2020 Jitsuin, inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
26.725275
85
0.626645
# Copyright 2020 Jitsuin, inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
0
0
0
0
0
1,484
0
69
136
345dff77f44732945ca67bd1fef57e267144e906
4,363
py
Python
app/request.py
Amwata-Albert/News-Highlight
33aad6240a5d1fd999c2ef1cf0c5b1a748300112
[ "MIT" ]
1
2019-06-28T21:09:38.000Z
2019-06-28T21:09:38.000Z
app/request.py
JamesMutahi/News-Highlight
158138ec54d3b4ca41ca95c23eaad1bcf3d23839
[ "MIT" ]
null
null
null
app/request.py
JamesMutahi/News-Highlight
158138ec54d3b4ca41ca95c23eaad1bcf3d23839
[ "MIT" ]
null
null
null
#import the module that will help create a connection to the API URL and send a request #import json modules that will format the JSON response to a dict import urllib.request, json from .models import Source, Top_Headlines, Everything #get the api key api_key = None #get the source base url base_url = None #get t...
31.846715
107
0.760715
#import the module that will help create a connection to the API URL and send a request #import json modules that will format the JSON response to a dict import urllib.request, json from .models import Source,Top_Headlines,Everything #get the api key api_key = None #get the source base url base_url = None #get the...
0
0
0
0
0
770
0
-2
46
3141f469639ce092b6b6e0f50bbc280aa58df271
2,981
py
Python
scripts/zip_tools.py
RoberWare/Ex-menes-Selectividad-PAU-Andaluc-a
3544b2f9fa56dc05a3911a9121c290687d6ad09c
[ "MIT" ]
null
null
null
scripts/zip_tools.py
RoberWare/Ex-menes-Selectividad-PAU-Andaluc-a
3544b2f9fa56dc05a3911a9121c290687d6ad09c
[ "MIT" ]
null
null
null
scripts/zip_tools.py
RoberWare/Ex-menes-Selectividad-PAU-Andaluc-a
3544b2f9fa56dc05a3911a9121c290687d6ad09c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- dev = 0 def force_to_unicode(text): "If text is unicode, it is returned as is. If it's str, convert it to Unicode using UTF-8 encoding" return text if isinstance(text, unicode) else text.decode('utf8') if dev ==1: zips=[u'../tmp/sel_2015_fisica.zip', u'../tmp...
32.402174
119
0.539752
#!/usr/bin/env python # -*- coding: utf-8 -*- import zipfile,os import pdf_tools dev = 0 def force_to_unicode(text): "If text is unicode, it is returned as is. If it's str, convert it to Unicode using UTF-8 encoding" return text if isinstance(text, unicode) else text.decode('utf8') def try_to_rename(myfile...
2
0
0
0
0
2,038
0
-9
92
b189f2255ebc4603a918887683fab1405e840c18
3,983
py
Python
tests/unit/cli/test_sponsors.py
fairhopeweb/warehouse
7d8ef742e8fe6b401190c28ce56761848041c89f
[ "Apache-2.0" ]
3,103
2015-01-30T00:24:10.000Z
2022-03-31T23:21:39.000Z
tests/unit/cli/test_sponsors.py
fairhopeweb/warehouse
7d8ef742e8fe6b401190c28ce56761848041c89f
[ "Apache-2.0" ]
6,709
2015-01-05T01:23:20.000Z
2022-03-31T14:49:46.000Z
tests/unit/cli/test_sponsors.py
fairhopeweb/warehouse
7d8ef742e8fe6b401190c28ce56761848041c89f
[ "Apache-2.0" ]
959
2015-01-12T22:22:40.000Z
2022-03-31T22:21:51.000Z
# 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 # distributed under the Li...
40.232323
88
0.71303
# 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 # distributed under the Li...
0
0
0
0
0
3,153
0
33
159
e1e610c2b810359185ed3d8b3620dc1a9a67ffbd
330
py
Python
setup.py
dh-trier/coleto
4edf0a06edb6ec38251d3fc204d7431cbbdf66be
[ "MIT" ]
5
2021-05-21T11:59:13.000Z
2021-12-15T22:01:53.000Z
setup.py
dh-trier/coleto
4edf0a06edb6ec38251d3fc204d7431cbbdf66be
[ "MIT" ]
20
2021-01-20T16:16:27.000Z
2021-11-30T19:14:27.000Z
setup.py
dh-trier/coleto
4edf0a06edb6ec38251d3fc204d7431cbbdf66be
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='coleto', version='0.1.0dev', date="2021-02-07", author="Christof Schch" author_email="c.schoech@gmail.com" description="Tool for text comparison." programming_language="Python3" license='MIT Licence', long_description=open('README.md').r...
23.571429
46
0.678788
from distutils.core import setup setup( name='coleto', version='0.1.0dev', date="2021-02-07", author="Christof Schöch" author_email="c.schoech@gmail.com" description="Tool for text comparison." programming_language="Python3" license='MIT Licence', long_description=open('README.md')....
2
0
0
0
0
0
0
0
0
b8dc7f2843386557d1ced89b70adfdc6da5cfe16
7,186
py
Python
lib/utils/tables/columns.py
arkanister/minitickets
e74dd03f1bcaadf2b196a1ce69c7c959dc8925fd
[ "Apache-2.0" ]
null
null
null
lib/utils/tables/columns.py
arkanister/minitickets
e74dd03f1bcaadf2b196a1ce69c7c959dc8925fd
[ "Apache-2.0" ]
2
2015-03-13T19:37:21.000Z
2018-06-20T23:06:41.000Z
lib/utils/tables/columns.py
arkanister/minitickets
e74dd03f1bcaadf2b196a1ce69c7c959dc8925fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from ..html import AttributeDict def merge_attrs(base_attrs, attrs): """ Merge attrs based in attribute dict. """ td = AttributeDict(base_attrs.get('td', {})) th = AttributeDict(base_attrs.get('th', {})) # merge td for key, value in attrs.get('td', {}).items(): ...
33.115207
110
0.601308
# -*- coding: utf-8 -*- from django.template import loader from django.utils import formats from django.utils.text import Truncator import django_tables2 as tables from django.utils.safestring import mark_safe from django.utils.translation import ugettext as _ from ..html import AttributeDict, Icon def merge_attrs...
6
690
0
5,536
0
0
0
111
364
a709f5db0686c1d93f45f0a50a60478152c5b785
1,139
py
Python
h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oparse_setup.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
6,098
2015-05-22T02:46:12.000Z
2022-03-31T16:54:51.000Z
h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oparse_setup.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2,517
2015-05-23T02:10:54.000Z
2022-03-30T17:03:39.000Z
h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oparse_setup.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2,199
2015-05-22T04:09:55.000Z
2022-03-28T22:20:45.000Z
from __future__ import print_function import sys sys.path.insert(1,"../../../") from tests import pyunit_utils import h2o from h2o.utils.typechecks import assert_is_type from h2o.backend.connection import H2OResponse def h2oparse_setup(): """ Python API test: h2o.parse_setup(raw_frames, destination_frame=None,...
40.678571
117
0.717296
from __future__ import print_function import sys sys.path.insert(1,"../../../") from tests import pyunit_utils import h2o from h2o.utils.typechecks import assert_is_type from h2o.backend.connection import H2OResponse def h2oparse_setup(): """ Python API test: h2o.parse_setup(raw_frames, destination_frame=None,...
0
0
0
0
0
0
0
0
0
7eff7d7e4fcb74debcfb8f35e19f145b304c3f7d
31,984
py
Python
utils/tf_util.py
paul007pl/Point-Atrous-Convolution
f45b189f9f4f6a25c1a3b85e58736dcc8b976371
[ "MIT" ]
25
2019-09-16T02:09:47.000Z
2021-07-12T16:21:51.000Z
utils/tf_util.py
pldeqiushui/Point-Atrous-Convolution
f45b189f9f4f6a25c1a3b85e58736dcc8b976371
[ "MIT" ]
1
2020-06-15T09:46:29.000Z
2020-06-15T13:02:34.000Z
utils/tf_util.py
pldeqiushui/Point-Atrous-Convolution
f45b189f9f4f6a25c1a3b85e58736dcc8b976371
[ "MIT" ]
3
2020-03-17T16:50:24.000Z
2022-02-17T11:08:06.000Z
""" Wrapper functions for TensorFlow layers. Author: Charles R. Qi Date: November 2016 Upadted by Yue Wang and Yongbin Sun Further improved by Liang PAN """ import tensorflow as tf import sys import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) sys.path.append(os.path.join(BASE_...
31.418468
110
0.713357
""" Wrapper functions for TensorFlow layers. Author: Charles R. Qi Date: November 2016 Upadted by Yue Wang and Yongbin Sun Further improved by Liang PAN """ import numpy as np import tensorflow as tf import sys import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) sys.path.appen...
0
0
0
0
0
1,290
0
12
167
2f81429a61b782c0efdfc9ecc41118499c29a129
2,239
py
Python
aWaifu/web.py
git-akihakune/aWaifu-web
bc6774d96b9f3b2ffe673f960786d93c827685a3
[ "MIT" ]
null
null
null
aWaifu/web.py
git-akihakune/aWaifu-web
bc6774d96b9f3b2ffe673f960786d93c827685a3
[ "MIT" ]
null
null
null
aWaifu/web.py
git-akihakune/aWaifu-web
bc6774d96b9f3b2ffe673f960786d93c827685a3
[ "MIT" ]
null
null
null
from flask import Flask from flask_cors import CORS app = Flask(__name__, static_url_path='', static_folder='static', template_folder='templates') CORS(app) # A small Easter Egg
31.985714
119
0.645824
from flask import Flask, render_template, request, redirect, url_for, flash, jsonify from flask_cors import CORS from utils import waifugen from utils.security import apiKeyIsValid from utils.config import domainName app = Flask(__name__, static_url_path='', static_folder='static', ...
0
1,740
0
0
0
0
0
99
180
b3ae1419b741fcb4a4f3843f227336b11b5f6951
1,771
py
Python
tests_scripts/QuickTest/Projects_Test.py
vineethreddyramasa/uno-community-partnership
694886b7ad7fa98f6dbb24b03476962cfadebc70
[ "MIT" ]
13
2018-08-30T16:03:18.000Z
2019-11-25T07:08:43.000Z
tests_scripts/QuickTest/Projects_Test.py
vineethreddyramasa/uno-community-partnership
694886b7ad7fa98f6dbb24b03476962cfadebc70
[ "MIT" ]
814
2018-08-30T02:28:55.000Z
2022-03-11T23:31:45.000Z
tests_scripts/QuickTest/Projects_Test.py
vineethreddyramasa/uno-community-partnership
694886b7ad7fa98f6dbb24b03476962cfadebc70
[ "MIT" ]
6
2018-09-16T05:35:49.000Z
2019-10-17T02:44:19.000Z
from UnoCPI import sqlfiles # Initializing the sql files sql = sqlfiles
32.796296
93
0.541502
import unittest import psycopg2 from UnoCPI import sqlfiles, settings # Initializing the sql files sql = sqlfiles class TestReports(unittest.TestCase): def test_reports(self): global connection global cursor try: # CAT STAGING connection = psycopg2.connect(user=...
0
0
0
1,632
0
0
0
-2
67
26c74a706c9bdf77dc0594cca48c521e80059858
1,152
py
Python
tp_screening/tests/in_eligible_subject_form_validator.py
MoffatMore/tp-screening
20a98ba6fc57118968e507bdf5861cbdcada1848
[ "MIT" ]
null
null
null
tp_screening/tests/in_eligible_subject_form_validator.py
MoffatMore/tp-screening
20a98ba6fc57118968e507bdf5861cbdcada1848
[ "MIT" ]
null
null
null
tp_screening/tests/in_eligible_subject_form_validator.py
MoffatMore/tp-screening
20a98ba6fc57118968e507bdf5861cbdcada1848
[ "MIT" ]
null
null
null
''' Created on Jun 22, 2018 @author: moffat '''
34.909091
69
0.723958
''' Created on Jun 22, 2018 @author: moffat ''' from django.test import TestCase, tag from django.core.exceptions import ValidationError from django.utils import timezone from ..forms import IneligibleSubjectFormValidator @tag('T') class TestInEligibleFormValidator(TestCase): def setUp(self): self.optio...
0
906
0
0
0
0
0
86
111
415f6ef271c264b2db240f8024027a1d98b197ff
4,484
py
Python
smorest_sfs/modules/roles/resources.py
ssfdust/smorest-sfs
139f6817989ab041c81761d183169de20a26597e
[ "Apache-2.0" ]
8
2020-05-11T07:11:03.000Z
2022-03-25T01:58:18.000Z
smorest_sfs/modules/roles/resources.py
ssfdust/smorest-sfs
139f6817989ab041c81761d183169de20a26597e
[ "Apache-2.0" ]
null
null
null
smorest_sfs/modules/roles/resources.py
ssfdust/smorest-sfs
139f6817989ab041c81761d183169de20a26597e
[ "Apache-2.0" ]
2
2020-05-11T03:53:38.000Z
2021-03-25T01:11:15.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright # Author: # # 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 ap...
29.5
87
0.662132
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright # Author: # # 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 ap...
330
2,908
0
0
0
0
0
304
268
9085ef09b90040a93c78cdeace7b4ba35316f5e1
3,162
py
Python
src/main.py
esgario/chlestimator
fba4f7feab9a964a303611a39d3835db400a15f4
[ "MIT" ]
null
null
null
src/main.py
esgario/chlestimator
fba4f7feab9a964a303611a39d3835db400a15f4
[ "MIT" ]
null
null
null
src/main.py
esgario/chlestimator
fba4f7feab9a964a303611a39d3835db400a15f4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Guilherme Esgario """ import os import pandas as pd from utils.measures import ChlMeasures from utils.plot import plot_multiple_indices import warnings warnings.filterwarnings("ignore") IMG_SIZE = (512, 512) PATH = 'dataset' BACKGROUND = 'natural_bg' # natural_bg or white_bg CSV_...
31.939394
108
0.672676
# -*- coding: utf-8 -*- """ @author: Guilherme Esgario """ import os import sys import imageio import matplotlib import matplotlib.pyplot as plt import numpy as np import pandas as pd from skimage.transform import resize from utils.measures import ChlMeasures from utils.plot import plot_multiple_indices from utils.seg...
0
0
0
0
0
1,474
0
21
177
28911bb17091de8774a3594d604836abb64398d2
8,555
py
Python
sss/sss.py
Kvn11/MITRE-eCTF-UCONN
50f6b7a0d915dec517e621d3247bdfe1119067e5
[ "Apache-2.0" ]
null
null
null
sss/sss.py
Kvn11/MITRE-eCTF-UCONN
50f6b7a0d915dec517e621d3247bdfe1119067e5
[ "Apache-2.0" ]
null
null
null
sss/sss.py
Kvn11/MITRE-eCTF-UCONN
50f6b7a0d915dec517e621d3247bdfe1119067e5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # 2021 Collegiate eCTF # SCEWL Security Server # Ben Janis # # (c) 2021 The MITRE Corporation # # This source file is part of an example system for MITRE's 2021 Embedded System CTF (eCTF). # This code is being provided only for educational purposes for the 2021 MITRE eCTF competition, # and may not ...
33.814229
147
0.59135
#!/usr/bin/python3 # 2021 Collegiate eCTF # SCEWL Security Server # Ben Janis # # (c) 2021 The MITRE Corporation # # This source file is part of an example system for MITRE's 2021 Embedded System CTF (eCTF). # This code is being provided only for educational purposes for the 2021 MITRE eCTF competition, # and may not ...
0
138
0
6,457
0
721
0
-26
360
382c7a955e4f2049358ebe6cac80900c46d12c12
2,424
py
Python
src/pca.py
joshua-matt/Go-Variance
b9cb090d6e28dae52dd6563a2d82070714b465c2
[ "MIT" ]
1
2021-12-02T03:40:38.000Z
2021-12-02T03:40:38.000Z
src/pca.py
joshua-matt/Go-Variance
b9cb090d6e28dae52dd6563a2d82070714b465c2
[ "MIT" ]
null
null
null
src/pca.py
joshua-matt/Go-Variance
b9cb090d6e28dae52dd6563a2d82070714b465c2
[ "MIT" ]
null
null
null
import pandas as pd # Open .csv files import os # Path tools dir = os.getcwd() + "..\\data\\" """ get_cov ------- Returns the covariance matrix for a folder .csv files Parameters: - folder: The name (not the whole file path!) of the child folder of games to process. Preconditions: - All .c...
30.683544
106
0.636964
import numpy as np # Matrix operations import numpy.linalg as la # Get principal components import pandas as pd # Open .csv files import os # Path tools dir = os.getcwd() + "..\\data\\" """ get_cov ------- Returns the covariance matrix for a folder .csv files Parameters: - folder: The name (not the ...
0
0
0
0
0
877
0
1
162
3105055bae8d93c1a27634d7765d2a07bd17f0f5
2,502
py
Python
docs/cornell CS class/lesson 20. Classes/demos/point.py
LizzieDeng/kalman_fliter_analysis
50e728f32c496c3fcbb8ca3ee00857b999b88d99
[ "MIT" ]
null
null
null
docs/cornell CS class/lesson 20. Classes/demos/point.py
LizzieDeng/kalman_fliter_analysis
50e728f32c496c3fcbb8ca3ee00857b999b88d99
[ "MIT" ]
null
null
null
docs/cornell CS class/lesson 20. Classes/demos/point.py
LizzieDeng/kalman_fliter_analysis
50e728f32c496c3fcbb8ca3ee00857b999b88d99
[ "MIT" ]
null
null
null
""" A module with a simple Point class. This module has a simpler version of the Point class than what we saw in previous labs. It shows off the minimum that we need to get started with a class. Author: Walker M. White (wmw2) Date: October 1, 2017 (Python 3 Version) """
28.11236
76
0.589928
""" A module with a simple Point class. This module has a simpler version of the Point class than what we saw in previous labs. It shows off the minimum that we need to get started with a class. Author: Walker M. White (wmw2) Date: October 1, 2017 (Python 3 Version) """ import math class Point(object): """ ...
0
0
0
2,190
0
0
0
-10
45
8283fc1bc4d6daddfd8d7edfc44f5fcc24e7120e
4,523
py
Python
DianpingSpider/spiders/dianping.py
tensorchen/DianpingSpider
97da2190f96d0a39449d750351a94c57fd987a6e
[ "Apache-2.0" ]
3
2016-08-22T08:53:34.000Z
2018-07-22T12:36:03.000Z
DianpingSpider/spiders/dianping.py
tensorchen/DianpingSpider
97da2190f96d0a39449d750351a94c57fd987a6e
[ "Apache-2.0" ]
null
null
null
DianpingSpider/spiders/dianping.py
tensorchen/DianpingSpider
97da2190f96d0a39449d750351a94c57fd987a6e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*-
35.896825
133
0.54654
# -*- coding: utf-8 -*- import scrapy import urllib2 import json import errno from DianpingSpider.items import Restaurant, Food, User, Preference from socket import error as SocketError class DianpingSpider(scrapy.Spider): name = "dianping" #allowed_domains = ["www.dingping.com"] start_urls = [ ...
0
0
0
4,307
0
0
0
32
157
60c41cc02041c260a41bf25c875c53c362e5fdf7
4,212
py
Python
samples/TokenManagement/PaymentInstrument/create-payment-instrument-bank-account.py
snavinch/cybersource-rest-samples-python
adb7a6b4b55dff6ac833295192d6677b53003c16
[ "MIT" ]
21
2019-01-22T17:48:32.000Z
2022-02-07T17:40:58.000Z
samples/TokenManagement/PaymentInstrument/create-payment-instrument-bank-account.py
broadpay/cybersource-rest-samples-python
f7af6f58c70ea3bf725d34929b40ee4b5fd4d77c
[ "MIT" ]
10
2018-12-03T22:45:17.000Z
2021-04-19T20:40:14.000Z
samples/TokenManagement/PaymentInstrument/create-payment-instrument-bank-account.py
broadpay/cybersource-rest-samples-python
f7af6f58c70ea3bf725d34929b40ee4b5fd4d77c
[ "MIT" ]
29
2018-11-09T11:44:53.000Z
2022-03-18T08:56:46.000Z
import os from importlib.machinery import SourceFileLoader config_file = os.path.join(os.getcwd(), "data", "Configuration.py") configuration = SourceFileLoader("module.name", config_file).load_module() # To delete None values in Input Request Json body if __name__ == "__main__": create_payment_instrument_bank_ac...
36.626087
134
0.748575
from CyberSource import * import os import json from importlib.machinery import SourceFileLoader config_file = os.path.join(os.getcwd(), "data", "Configuration.py") configuration = SourceFileLoader("module.name", config_file).load_module() # To delete None values in Input Request Json body def del_none(d): for ke...
0
0
0
0
0
3,801
0
-6
89
74e1f2586ae1de8cfa160aee8ff04eb903ec92d9
981
py
Python
modules/dbnd/src/dbnd/api/shared_schemas/job_schema.py
kalebinn/dbnd
89b6ac3537f861784be73ffe8989bf63fca7401c
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/api/shared_schemas/job_schema.py
kalebinn/dbnd
89b6ac3537f861784be73ffe8989bf63fca7401c
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/api/shared_schemas/job_schema.py
kalebinn/dbnd
89b6ac3537f861784be73ffe8989bf63fca7401c
[ "Apache-2.0" ]
null
null
null
jobs_set_archive_schema = JobsSetArchiveSchema()
28.028571
87
0.727829
from dbnd._core.tracking.schemas.base import ApiObjectSchema from dbnd._vendor.marshmallow import fields, validate class JobSchemaV2(ApiObjectSchema): id = fields.Int() name = fields.Str() user = fields.Str() is_archived = fields.Boolean() ui_hidden = fields.Boolean() is_airflow_synced = field...
0
0
0
767
0
0
0
71
90
22ed1f2124434872b64425b449291c72b63fc900
1,607
py
Python
restclients/dao_implementation/kws.py
uw-it-cte/uw-restclients
2b09348bf066e5508304401f93f281805e965af5
[ "Apache-2.0" ]
null
null
null
restclients/dao_implementation/kws.py
uw-it-cte/uw-restclients
2b09348bf066e5508304401f93f281805e965af5
[ "Apache-2.0" ]
null
null
null
restclients/dao_implementation/kws.py
uw-it-cte/uw-restclients
2b09348bf066e5508304401f93f281805e965af5
[ "Apache-2.0" ]
null
null
null
""" Contains KWS DAO implementations. """ KWS_MAX_POOL_SIZE = 10
34.191489
75
0.646546
""" Contains KWS DAO implementations. """ from django.conf import settings from restclients.mock_http import MockHTTP from restclients.dao_implementation import get_timeout from restclients.dao_implementation.live import get_con_pool, get_live_url from restclients.dao_implementation.mock import get_mockdata_url KWS_...
0
0
0
1,220
0
0
0
161
157
1eebf8a1b87ee711983ceca22804ab32d915aa01
193
py
Python
wikienv/bin/django-admin.py
anbellouzi/makewiki
3f3a2ef3a8d9f7c34efd66229e52d4c665f2a258
[ "MIT" ]
null
null
null
wikienv/bin/django-admin.py
anbellouzi/makewiki
3f3a2ef3a8d9f7c34efd66229e52d4c665f2a258
[ "MIT" ]
7
2020-06-06T00:28:08.000Z
2022-02-10T11:43:03.000Z
wikienv/bin/django-admin.py
anbellouzi/makewiki
3f3a2ef3a8d9f7c34efd66229e52d4c665f2a258
[ "MIT" ]
null
null
null
#!/Users/Anas/Desktop/MakeSchool/Term_2/BEW1.2/projects/makewiki/wikienv/bin/python3.7 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
32.166667
86
0.797927
#!/Users/Anas/Desktop/MakeSchool/Term_2/BEW1.2/projects/makewiki/wikienv/bin/python3.7 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
0
0
0
0
0
0
0
0
0
a267e749ac40dba2412fbdc9705504366b8193a1
182
py
Python
tests/default.py
dudesof708/wikipedia-speedrun
6bfb562528be1747a9a416136496cc22b03bb100
[ "MIT" ]
null
null
null
tests/default.py
dudesof708/wikipedia-speedrun
6bfb562528be1747a9a416136496cc22b03bb100
[ "MIT" ]
1
2020-07-31T04:46:14.000Z
2020-09-30T08:21:04.000Z
tests/default.py
dudesof708/wikipedia-speedrun
6bfb562528be1747a9a416136496cc22b03bb100
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
22.75
56
0.648352
import unittest class Tester(unittest.TestCase): def test_default(self): self.assertEqual(sum([1, 2, 3]), 6, "Sum is 6.") if __name__ == '__main__': unittest.main()
0
0
0
96
0
0
0
0
23
828eb32829a6b15f8fbe7e885a9d6aad92c8265e
1,875
py
Python
featureflags/config.py
meghamathur03/ff-python-server-sdk
33b599aea44c0fe0854836f271642b23c96b7bb2
[ "Apache-2.0" ]
1
2021-04-29T17:42:31.000Z
2021-04-29T17:42:31.000Z
featureflags/config.py
meghamathur03/ff-python-server-sdk
33b599aea44c0fe0854836f271642b23c96b7bb2
[ "Apache-2.0" ]
5
2022-01-05T13:11:38.000Z
2022-03-11T14:31:13.000Z
featureflags/config.py
meghamathur03/ff-python-server-sdk
33b599aea44c0fe0854836f271642b23c96b7bb2
[ "Apache-2.0" ]
2
2021-03-15T10:09:22.000Z
2021-10-01T01:38:43.000Z
"""Configuration is a base class that has default values that you can change during the instance of the client class""" BASE_URL = "https://config.ff.harness.io/api/1.0" EVENTS_URL = "https://events.ff.harness.io/api/1.0" MINUTE = 60 PULL_INTERVAL = 1 * MINUTE PERSIST_INTERVAL = 1 * MINUTE EVENTS_SYNC_INTERVAL = 1 * M...
26.041667
76
0.673067
"""Configuration is a base class that has default values that you can change during the instance of the client class""" from typing import Callable from .interface import Cache from .lru_cache import LRUCache BASE_URL = "https://config.ff.harness.io/api/1.0" EVENTS_URL = "https://events.ff.harness.io/api/1.0" MINUTE...
0
0
0
828
0
482
0
23
183
f040aa3543677470b10a293c1a1f21fc599020b7
189
py
Python
real-estate-linux/lenv/bin/django-admin.py
tienduy-nguyen/django-web
4b4078042b9c388dd00907a09d10e2a7889f4dea
[ "MIT" ]
null
null
null
real-estate-linux/lenv/bin/django-admin.py
tienduy-nguyen/django-web
4b4078042b9c388dd00907a09d10e2a7889f4dea
[ "MIT" ]
6
2021-04-08T20:20:47.000Z
2022-02-13T20:21:29.000Z
real-estate-linux/lenv/bin/django-admin.py
tienduy-nguyen/django-web
4b4078042b9c388dd00907a09d10e2a7889f4dea
[ "MIT" ]
null
null
null
#!/mnt/workspace/00-GITHUB/05-Python/django-web/real-estate-linux/lenv/bin/python3 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
31.5
82
0.78836
#!/mnt/workspace/00-GITHUB/05-Python/django-web/real-estate-linux/lenv/bin/python3 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
0
0
0
0
0
0
0
0
0
219e14b49ff84619f8c9a270a93bc5f4f50f58d3
1,029
py
Python
setton/Pygame/others.py
RafaelSetton/setton
14e28c392851aa0f95794cb780c1970182c96f46
[ "MIT" ]
null
null
null
setton/Pygame/others.py
RafaelSetton/setton
14e28c392851aa0f95794cb780c1970182c96f46
[ "MIT" ]
null
null
null
setton/Pygame/others.py
RafaelSetton/setton
14e28c392851aa0f95794cb780c1970182c96f46
[ "MIT" ]
null
null
null
import pygame as pg pg.init()
38.111111
103
0.607386
import pygame as pg pg.init() def grafico_de_linha(surface: pg.Surface, values: list[int, float], cor: tuple[int, int, int], top_left: tuple[int], size: tuple[int], max_value: int = 100): coords = list() height = size[1] / max_value width = size[0] / (len(values) - 1) for index, ...
0
0
0
0
0
951
0
0
46
4d99d58e450f578ccd7820c2805f8da2a6d77a17
3,259
py
Python
ytelapi/models/body_63.py
Ytel-Inc/YtelAPI-Python
139dc02d93e74c78b6c3d91e3002ae98e2270223
[ "MIT" ]
null
null
null
ytelapi/models/body_63.py
Ytel-Inc/YtelAPI-Python
139dc02d93e74c78b6c3d91e3002ae98e2270223
[ "MIT" ]
null
null
null
ytelapi/models/body_63.py
Ytel-Inc/YtelAPI-Python
139dc02d93e74c78b6c3d91e3002ae98e2270223
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ytelapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """
34.670213
84
0.609389
# -*- coding: utf-8 -*- """ ytelapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ class Body63(object): """Implementation of the 'body_63' model. TODO: type model description here. Attributes: shortcode (string): List of valid shor...
0
1,165
0
1,927
0
0
0
0
24
9cfc0ebd31270e89f9ff6267b5dc1c2577092813
986
py
Python
Codepass/codepass.py
jwasham/IPSender
e1f0e6c72d1559274b9c7f4064c5cccf3923832f
[ "MIT" ]
13
2016-10-16T18:07:16.000Z
2021-04-10T09:18:41.000Z
Codepass/codepass.py
jwasham/IPSender
e1f0e6c72d1559274b9c7f4064c5cccf3923832f
[ "MIT" ]
null
null
null
Codepass/codepass.py
jwasham/IPSender
e1f0e6c72d1559274b9c7f4064c5cccf3923832f
[ "MIT" ]
9
2016-11-14T00:54:15.000Z
2021-11-29T08:47:12.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- import json LANGUAGE = "en" with open('language.json') as json_file: data = json.load(json_file, encoding="utf-8") root = Tk() root.title('Codepass') root.iconbitmap('key.ico') Label(text=data[LANGUAGE]['label']).pack(side=TOP,padx=10,pady=10) entry = Entry(root, widt...
24.65
90
0.71501
#! /usr/bin/env python # -*- coding: utf-8 -*- from Tkinter import * from base64 import b64encode import json def encode(): passwd = entry.get() passwd = b64encode(passwd) entry.delete(0,END) entry.insert(0,passwd) def clean(): entry.delete(0,END) def cpclipboard(): root.clipboard_clear() root.clipboard_ap...
0
0
0
0
0
156
0
7
116
034f3a3102c41a6fbc7bd4e61e089259622b5966
738
py
Python
Aula05.py
katiareis/Programacao-Curso-em-Video
f3ee9ab8fbe65018ae00f892b807c2a438fdf556
[ "MIT" ]
null
null
null
Aula05.py
katiareis/Programacao-Curso-em-Video
f3ee9ab8fbe65018ae00f892b807c2a438fdf556
[ "MIT" ]
null
null
null
Aula05.py
katiareis/Programacao-Curso-em-Video
f3ee9ab8fbe65018ae00f892b807c2a438fdf556
[ "MIT" ]
null
null
null
""" Formatando Valores com modificadores - Aula 5 :s - Texto (strings) :d - Inteiros (int) :f - Nmeros de pronto flutuante (float) :.(NMERO) Quantidade de casas decimais (float) :(cARACTERE) (< ou > ou ^) (QUANTIDADE) (TIPO - s,d, ou f) > - Esquerda < - Direita ^- Centro # num1 = input('Digite um numer...
28.384615
143
0.662602
""" Formatando Valores com modificadores - Aula 5 :s - Texto (strings) :d - Inteiros (int) :f - Números de pronto flutuante (float) :.(NÚMERO) Quantidade de casas decimais (float) :(cARACTERE) (< ou > ou ^) (QUANTIDADE) (TIPO - s,d, ou f) > - Esquerda < - Direita ^- Centro # num1 = input('Digite um num...
14
0
0
0
0
0
0
0
0
d206faeee3e9a74a28c82bd772a66a6dad330ef4
660
py
Python
testcurl.py
svtdanny/AntiSpam
48465331c080d54807f34e61051ae3ee6d1d236e
[ "MIT" ]
null
null
null
testcurl.py
svtdanny/AntiSpam
48465331c080d54807f34e61051ae3ee6d1d236e
[ "MIT" ]
null
null
null
testcurl.py
svtdanny/AntiSpam
48465331c080d54807f34e61051ae3ee6d1d236e
[ "MIT" ]
null
null
null
import requests res = requests.post('http://127.0.0.1:8000/rest-auth/login/', data={'username':'ddd', 'password':'ddd'}) key = res.json()['key'] # res = requests.post('http://127.0.0.1:8000/profile/sys_mail_lists/', headers={'Authorization': 'Token ' + key}, data={'username':"antispam"}) data = {'username': 'ddd', 'l...
47.142857
143
0.665152
import requests res = requests.post('http://127.0.0.1:8000/rest-auth/login/', data={'username':'ddd', 'password':'ddd'}) key = res.json()['key'] # res = requests.post('http://127.0.0.1:8000/profile/sys_mail_lists/', headers={'Authorization': 'Token ' + key}, data={'username':"antispam"}) data = {'username': 'ddd', 'l...
0
0
0
0
0
0
0
0
0
5deeab7db18c5486a3fef401d4ec7b8c50a9e2ba
2,385
py
Python
application/todo_list/models.py
Seennt/github
e09ae30f2b35a8dd54406d99174d957150379a4f
[ "MIT" ]
null
null
null
application/todo_list/models.py
Seennt/github
e09ae30f2b35a8dd54406d99174d957150379a4f
[ "MIT" ]
null
null
null
application/todo_list/models.py
Seennt/github
e09ae30f2b35a8dd54406d99174d957150379a4f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Module: models as part of: todo_list Created by: Reinier on 22-10-2017. A model is the single, definitive source of information about your data. It contains the essential fields and behaviors of the data youre storing. Generally, each model maps to a single database table. ...
35.597015
113
0.69979
# -*- coding: utf-8 -*- """ Module: models as part of: todo_list Created by: Reinier on 22-10-2017. A model is the single, definitive source of information about your data. It contains the essential fields and behaviors of the data you’re storing. Generally, each model maps to a single database table. ...
3
0
0
1,882
0
0
0
17
89
60f453a26fd4df3648b3b36a24612b920d6550c1
2,064
py
Python
build/android/generate_xwalk_core_library_aar.py
tiwanek/crosswalk
62164187f7923f14abe303a47454220de886feff
[ "BSD-3-Clause" ]
null
null
null
build/android/generate_xwalk_core_library_aar.py
tiwanek/crosswalk
62164187f7923f14abe303a47454220de886feff
[ "BSD-3-Clause" ]
null
null
null
build/android/generate_xwalk_core_library_aar.py
tiwanek/crosswalk
62164187f7923f14abe303a47454220de886feff
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2014 Intel Corporation. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys if __name__ == '__main__': sys.exit(main())
32.25
79
0.651163
#!/usr/bin/env python # # Copyright (c) 2014 Intel Corporation. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import optparse import os import sys import zipfile def main(): option_parser = optparse.OptionParser() option_parser.add_opti...
0
0
0
0
0
1,752
0
-25
90
b7891a71114252a300c19445bf5a424c6873c3b9
1,632
py
Python
demo/lib/bigiq.py
mkmrah/tmos-cloudinit
714f73cfbab42bf128a29273a2c7ab8fd8aaf4e2
[ "Apache-2.0" ]
null
null
null
demo/lib/bigiq.py
mkmrah/tmos-cloudinit
714f73cfbab42bf128a29273a2c7ab8fd8aaf4e2
[ "Apache-2.0" ]
null
null
null
demo/lib/bigiq.py
mkmrah/tmos-cloudinit
714f73cfbab42bf128a29273a2c7ab8fd8aaf4e2
[ "Apache-2.0" ]
1
2020-09-13T13:39:53.000Z
2020-09-13T13:39:53.000Z
import requests CONNECT_TIMEOUT = 30 def get_bigiq_session(host, username, password): ''' Creates a Requests Session to the BIG-IQ host configured ''' if requests.__version__ < '2.9.1': requests.packages.urllib3.disable_warnings() # pylint: disable=no-member bigiq = requests.Session() bigiq...
33.306122
81
0.632353
import os import sys import time import datetime import threading from urlparse import urlparse import requests CONNECT_TIMEOUT = 30 def get_bigiq_session(host, username, password): ''' Creates a Requests Session to the BIG-IQ host configured ''' if requests.__version__ < '2.9.1': requests.packages...
0
0
0
0
0
423
0
-36
156
136ceb792d943bb92431f9af10140b8dfe94bb9e
493
py
Python
apps/classes/urls.py
cloudartisan/dojomaster
9d5efa0345c659636f8d8b556302d0d7bb2055a8
[ "MIT" ]
1
2019-02-21T14:47:31.000Z
2019-02-21T14:47:31.000Z
apps/classes/urls.py
cloudartisan/dojomaster
9d5efa0345c659636f8d8b556302d0d7bb2055a8
[ "MIT" ]
null
null
null
apps/classes/urls.py
cloudartisan/dojomaster
9d5efa0345c659636f8d8b556302d0d7bb2055a8
[ "MIT" ]
null
null
null
from django.conf.urls import url import views urlpatterns = [ url(r'^$', views.ListClassView.as_view(), name='classes-list',), url(r'^(?P<class_pk>[\d]+)/$', views.DetailClassView.as_view(), name='class-detail',), url(r'^(?P<class_pk>[\d]+)/edit$', views.UpdateClassView.as_view(), name='class-update',), ...
41.083333
96
0.649087
from django.conf.urls import url import views urlpatterns = [ url(r'^$', views.ListClassView.as_view(), name='classes-list',), url(r'^(?P<class_pk>[\d]+)/$', views.DetailClassView.as_view(), name='class-detail',), url(r'^(?P<class_pk>[\d]+)/edit$', views.UpdateClassView.as_view(), name='class-update',), ...
0
0
0
0
0
0
0
0
0
773154d50d9e44c065b443cc16c01dfb24a76d9b
6,927
py
Python
AAMAS-experiments/simulator.py
lucasosouza/oraclia-research
4ce6a7d8925c51b57bfeb4de988c1516ac6ff165
[ "MIT" ]
1
2021-11-24T06:22:51.000Z
2021-11-24T06:22:51.000Z
ENIAC-experiments/simulator.py
lucasosouza/oraclia-research
4ce6a7d8925c51b57bfeb4de988c1516ac6ff165
[ "MIT" ]
null
null
null
ENIAC-experiments/simulator.py
lucasosouza/oraclia-research
4ce6a7d8925c51b57bfeb4de988c1516ac6ff165
[ "MIT" ]
1
2021-11-24T06:24:32.000Z
2021-11-24T06:24:32.000Z
""" # 'realistic version'. buy and sell prices are the opening prices for the next day, not the closing price. don't have access to adjusted open value def buy(self, day, symbol): span, _, _ = self.strategy analyst = next(filter(lambda a:a.symbol == symbol, self.analysts)) next...
39.357955
151
0.580482
import quandl import pandas_datareader.data as web import datetime import pandas as pd import sklearn import numpy as np import scipy as sp from operator import methodcaller import time class Operation(): def __init__(self, symbol, price, qty, start_date, span, end_date=None): self.symbol = symbol ...
0
0
0
4,827
0
0
0
-12
283
743d8017f1645399b1847901bf11808e445f2689
688
py
Python
plots/sml_paper/accuracy_train_val_10000_random_500_clusters.py
siavash-khodadadeh/MetaLearning-TF2.0
de852bd3b2ff46f8d390cebf561add3a166ee855
[ "Apache-2.0" ]
102
2019-09-26T15:44:08.000Z
2022-03-31T07:18:36.000Z
plots/sml_paper/accuracy_train_val_10000_random_500_clusters.py
siavash-khodadadeh/MetaLearning-TF2.0
de852bd3b2ff46f8d390cebf561add3a166ee855
[ "Apache-2.0" ]
8
2020-01-07T09:29:22.000Z
2021-08-11T14:45:32.000Z
plots/sml_paper/accuracy_train_val_10000_random_500_clusters.py
siavash-khodadadeh/MetaLearning-TF2.0
de852bd3b2ff46f8d390cebf561add3a166ee855
[ "Apache-2.0" ]
22
2019-12-13T03:12:32.000Z
2021-10-05T10:31:37.000Z
from plots.plot_utils import plot import os if __name__ == '__main__': base_address = '../plots_data/sml' accuracy = os.path.join( base_address, 'run-sml_model-MiniImagenetModel_mbs-4_n-5_k-1_stp-5_mini_imagenet_model_feature_10000_clusters_500_logs_train-tag-Accuracy.json' ) accuracy_...
27.52
137
0.681686
from plots.plot_utils import plot import os if __name__ == '__main__': base_address = '../plots_data/sml' accuracy = os.path.join( base_address, 'run-sml_model-MiniImagenetModel_mbs-4_n-5_k-1_stp-5_mini_imagenet_model_feature_10000_clusters_500_logs_train-tag-Accuracy.json' ) accuracy_...
0
0
0
0
0
0
0
0
0
0f99c8133e1bb20b0629d6a4b63d0e9dc0f5d0d8
2,130
py
Python
DigitsClassification/draw.py
zhongqin0820/SPL
38ad431ad90174494f4e5e876aa3490ed9e5906f
[ "MIT" ]
null
null
null
DigitsClassification/draw.py
zhongqin0820/SPL
38ad431ad90174494f4e5e876aa3490ed9e5906f
[ "MIT" ]
5
2018-07-29T14:13:03.000Z
2018-10-03T09:14:22.000Z
DigitsClassification/draw.py
zhongqin0820/Misc-Algorithm-Implement
38ad431ad90174494f4e5e876aa3490ed9e5906f
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator def loadfile(filename): """ load training data file :param filename: resolute path correspond to this file :return: x: itration, y: train accurrency """ data = open(filename,'r') x = [] y = [] for line in ...
32.769231
88
0.661972
import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator def loadfile(filename): """ load training data file :param filename: resolute path correspond to this file :return: x: itration, y: train accurrency """ data = open(filename,'r') x = [] y = [] for line in ...
0
0
0
0
0
0
0
0
0
b0a43c03598107f65326fd13643e73d386dddacb
1,338
py
Python
userbot/plugins/divertente.py
Fregiant16/fregiantuserbot
6cb23022a1dfa66551c5ded1928d9fded16e0684
[ "MIT" ]
1
2020-04-14T15:19:47.000Z
2020-04-14T15:19:47.000Z
userbot/plugins/divertente.py
Fregiant16/fregiantuserbot
6cb23022a1dfa66551c5ded1928d9fded16e0684
[ "MIT" ]
null
null
null
userbot/plugins/divertente.py
Fregiant16/fregiantuserbot
6cb23022a1dfa66551c5ded1928d9fded16e0684
[ "MIT" ]
2
2020-12-01T02:27:27.000Z
2022-02-16T08:32:11.000Z
"""Emoji Available Commands: .emoji shrug .emoji apple .emoji :/ .emoji -_-"""
20.272727
61
0.579223
"""Emoji Available Commands: .emoji shrug .emoji apple .emoji :/ .emoji -_-""" from telethon import events from userbot.utils import admin_cmd import asyncio @borg.on(admin_cmd(pattern="puta")) @borg.on(events.NewMessage(pattern=r"\.(.*)", outgoing=True)) async def _(event): if event.fwd_from: return ...
152
1,092
0
0
0
0
0
13
113
d341ef3bcd0045883d122cb656c4ed25e2bd5978
1,378
py
Python
2020/6/6b.py
sishtiaq/aoc
1c200ebed048bbd8ad6a684aaef8921d826f3d1b
[ "Apache-2.0" ]
null
null
null
2020/6/6b.py
sishtiaq/aoc
1c200ebed048bbd8ad6a684aaef8921d826f3d1b
[ "Apache-2.0" ]
null
null
null
2020/6/6b.py
sishtiaq/aoc
1c200ebed048bbd8ad6a684aaef8921d826f3d1b
[ "Apache-2.0" ]
null
null
null
# returns a list of (group_size, dict_of_questions_answered)
22.225806
60
0.475327
from input import test,actual def lex(input): # use empty line to put records together rr = [] acc = '' for i in input: if i == '': rr.append(acc) # print('r is {}'.format(r)) acc = '' else: acc = acc + ' ' + i # last acc rr.append...
0
0
0
0
0
1,193
0
8
114
6d773588d23abb4a0e05aeb22d3136cbf93a8a68
1,101
py
Python
aging/processing/heart_processing.py
Deep-Learning-and-Aging/Scalars-based-models-and-XWAS-pipeline
f6913ce4ec1f6aed358ba27fdf575257f712c132
[ "MIT" ]
null
null
null
aging/processing/heart_processing.py
Deep-Learning-and-Aging/Scalars-based-models-and-XWAS-pipeline
f6913ce4ec1f6aed358ba27fdf575257f712c132
[ "MIT" ]
null
null
null
aging/processing/heart_processing.py
Deep-Learning-and-Aging/Scalars-based-models-and-XWAS-pipeline
f6913ce4ec1f6aed358ba27fdf575257f712c132
[ "MIT" ]
null
null
null
""" Features used : 133 - Left ventricular size and function : 22420, 22421, 22422, 22423, 22424, 22425, 22426, 22427 128 - Pulse wave analysis : 12673, 12674, 12675, 12676, 12677, 12678, 12679, 12680, 12681, 12682, 12683, 12684, 12686, 12687, 12697, 12698, 12699 """
44.04
146
0.73297
from .base_processing import read_data, read_data_and_merge_temporal_features """ Features used : 133 - Left ventricular size and function : 22420, 22421, 22422, 22423, 22424, 22425, 22426, 22427 128 - Pulse wave analysis : 12673, 12674, 12675, 12676, 12677, 12678, 12679, 12680, 12681, 12682, 12683, 12684, 12686,...
0
0
0
0
0
680
0
56
91
f606ff515b5483de796e6c47de892a81d8eb67ae
362
py
Python
Projetos/mdc.py
anderson-br-ti/python
d65d851f0934267dff9256dfdac09b100efb3b45
[ "MIT" ]
null
null
null
Projetos/mdc.py
anderson-br-ti/python
d65d851f0934267dff9256dfdac09b100efb3b45
[ "MIT" ]
null
null
null
Projetos/mdc.py
anderson-br-ti/python
d65d851f0934267dff9256dfdac09b100efb3b45
[ "MIT" ]
null
null
null
#mdc segundo o algoritmo de Euclides # a b a%b # 21 15 6 (15 % 21 = 15) # 15 6 3 menor maior resto # 6 3 0 #a lgica a, b = b, a%b #repito at que a%b seja 0 #quando a%b for zero mdc o b a = int(input('a: ')) b = int(input('b: ')) while...
22.625
58
0.436464
#mdc segundo o algoritmo de Euclides # a b a%b # 21 15 6 (15 % 21 = 15) # 15 6 3 menor maior resto # 6 3 0 #a lógica a, b = b, a%b #repito até que a%b seja 0 #quando a%b for zero mdc é o b a = int(input('a: ')) b = int(input('b: ')) wh...
6
0
0
0
0
0
0
0
0
fe02a1177918ebe146ebf80a3795bcd027cb5399
7,612
py
Python
examples/infer_image.py
indie/ngraph-bridge
a702ee8294d0f24593ad0e9f63fe270a82d9c8b2
[ "Apache-2.0" ]
1
2019-10-10T06:03:52.000Z
2019-10-10T06:03:52.000Z
examples/infer_image.py
indie/ngraph-bridge
a702ee8294d0f24593ad0e9f63fe270a82d9c8b2
[ "Apache-2.0" ]
null
null
null
examples/infer_image.py
indie/ngraph-bridge
a702ee8294d0f24593ad0e9f63fe270a82d9c8b2
[ "Apache-2.0" ]
1
2019-10-10T06:03:40.000Z
2019-10-10T06:03:40.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.951456
126
0.649369
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
0
0
0
0
0
2,472
0
-1
158
00722141baeeb7e74f21cc855bf244ccbbd96213
1,239
py
Python
setup.py
monicadlewis97/parsl
57038b7cc92ce26b8f5a45c193180a9452fd6320
[ "Apache-2.0" ]
null
null
null
setup.py
monicadlewis97/parsl
57038b7cc92ce26b8f5a45c193180a9452fd6320
[ "Apache-2.0" ]
null
null
null
setup.py
monicadlewis97/parsl
57038b7cc92ce26b8f5a45c193180a9452fd6320
[ "Apache-2.0" ]
null
null
null
from setuptools import setup from parsl.version import VERSION install_requires = [ 'ipyparallel' ] tests_require = [ 'ipyparallel', 'mock>=1.0.0', 'nose', 'pytest' ] setup( name='parsl', version=VERSION, description='Simple data dependent workflows in Python', long_descri...
28.813953
82
0.640032
from setuptools import setup from parsl.version import VERSION install_requires = [ 'ipyparallel' ] tests_require = [ 'ipyparallel', 'mock>=1.0.0', 'nose', 'pytest' ] setup( name='parsl', version=VERSION, description='Simple data dependent workflows in Python', long_descri...
0
0
0
0
0
0
0
0
0
94a916d71fe0a4c6db487f7aa461edd5295f339f
409
py
Python
userapi/api/v1/models.py
pankaj-opteamix/user-api
b7ffe7e03d05da047ac9a07b027a6f87a7457c1e
[ "Apache-2.0" ]
null
null
null
userapi/api/v1/models.py
pankaj-opteamix/user-api
b7ffe7e03d05da047ac9a07b027a6f87a7457c1e
[ "Apache-2.0" ]
null
null
null
userapi/api/v1/models.py
pankaj-opteamix/user-api
b7ffe7e03d05da047ac9a07b027a6f87a7457c1e
[ "Apache-2.0" ]
null
null
null
from django.db import models # Create your models here.
25.5625
54
0.731051
from django.db import models # Create your models here. from django.db import models class Users(models.Model): name = models.CharField(max_length=50) email = models.CharField(max_length=50) password = models.CharField(max_length=50) created = models.DateTimeField(auto_now_add=True) updated = m...
0
0
0
299
0
0
0
7
45
d437eba713926e5a9b164f459aae7af75c0b72a1
3,169
py
Python
py-s3.py
linsijay/py-aws
0e7fec80f568d29f8efc775769a2de5bd2d3281b
[ "BSD-2-Clause" ]
null
null
null
py-s3.py
linsijay/py-aws
0e7fec80f568d29f8efc775769a2de5bd2d3281b
[ "BSD-2-Clause" ]
null
null
null
py-s3.py
linsijay/py-aws
0e7fec80f568d29f8efc775769a2de5bd2d3281b
[ "BSD-2-Clause" ]
null
null
null
""" simple sample to access S3 service """ import os import config as cfg from boto3 import client from boto3.s3.transfer import S3Transfer from flask import Flask # create a S3 service client client = client('s3', aws_access_key_id = cfg.AWS_ACCESS_ID, aws_secret_access_key=cfg.AWS_A...
33.357895
94
0.669612
""" simple sample to access S3 service """ import os, botocore import config as cfg from boto3 import client from boto3.s3.transfer import S3Transfer from flask import Flask, request, render_template, redirect, url_for, send_file, make_response from werkzeug import secure_filename # create a S3 service client client =...
0
1,668
0
0
0
0
0
96
91
1308bcca43dbacdb44390148e5dcd1433995cdcb
1,282
py
Python
neptune_helper.py
jroimartin/graph-notebook-docker
3909c301b15e0866b1262f3b30a06f9563900370
[ "MIT" ]
1
2021-08-11T19:03:25.000Z
2021-08-11T19:03:25.000Z
neptune_helper.py
jroimartin/graph-notebook-docker
3909c301b15e0866b1262f3b30a06f9563900370
[ "MIT" ]
2
2021-08-09T11:09:11.000Z
2021-08-12T07:32:26.000Z
neptune_helper.py
jroimartin/graph-notebook-docker
3909c301b15e0866b1262f3b30a06f9563900370
[ "MIT" ]
2
2021-08-08T13:04:55.000Z
2021-12-15T14:04:11.000Z
from os import getenv from neptune_python_utils.gremlin_utils import GremlinUtils from neptune_python_utils.endpoints import Endpoints def get_neptune_iam_connection(neptune_host, neptune_port=8182): """Returns a Neptune connection using IAM authentication. It expects valid AWS credentials and the environmen...
29.813953
78
0.711388
from os import getenv from neptune_python_utils.gremlin_utils import GremlinUtils from neptune_python_utils.endpoints import Endpoints def get_neptune_iam_connection(neptune_host, neptune_port=8182): """Returns a Neptune connection using IAM authentication. It expects valid AWS credentials and the environmen...
0
0
0
306
0
0
0
0
23
8438f3b5c4b645e4235c0715a9301f408c51f5a7
828
py
Python
Greengraph/runGreengraph.py
samstern/Assignment1
7b1bf0dc59fda5b31630b3084c62c8ea734bc2aa
[ "MIT" ]
null
null
null
Greengraph/runGreengraph.py
samstern/Assignment1
7b1bf0dc59fda5b31630b3084c62c8ea734bc2aa
[ "MIT" ]
null
null
null
Greengraph/runGreengraph.py
samstern/Assignment1
7b1bf0dc59fda5b31630b3084c62c8ea734bc2aa
[ "MIT" ]
null
null
null
if __name__ == "__main__": runIt()
43.578947
148
0.728261
from Greengraph.greengraph import Greengraph import matplotlib.pyplot as plt from argparse import ArgumentParser def runIt(): parser = ArgumentParser(description = "Plot the proportion of green pixels in the series of Google Maps satellite images between two locations") parser.add_argument('--start', '-s', de...
0
0
0
0
0
653
0
47
89
75eb552f11d983d5c1976a7b5fce81f9565a24f0
377
py
Python
simple_converge/tf_regularizers/regularizers_collection.py
EytanKats/dl_framework
3ea9422476e4328f750496e596b23f2b29748b37
[ "MIT" ]
1
2020-12-25T23:18:28.000Z
2020-12-25T23:18:28.000Z
simple_converge/tf_regularizers/regularizers_collection.py
EytanKats/dl_framework
3ea9422476e4328f750496e596b23f2b29748b37
[ "MIT" ]
16
2020-07-21T18:25:31.000Z
2021-11-15T14:18:22.000Z
simple_converge/tf_regularizers/regularizers_collection.py
EytanKats/dl_framework
3ea9422476e4328f750496e596b23f2b29748b37
[ "MIT" ]
null
null
null
from simple_converge.tf_regularizers.L1Regularizer import L1Regularizer from simple_converge.tf_regularizers.L2Regularizer import L2Regularizer from simple_converge.tf_regularizers.L1L2Regularizer import L1L2Regularizer regularizers_collection = { "l1_regularizer": L1Regularizer, "l2_regularizer": L2Re...
34.272727
76
0.824934
from simple_converge.tf_regularizers.L1Regularizer import L1Regularizer from simple_converge.tf_regularizers.L2Regularizer import L2Regularizer from simple_converge.tf_regularizers.L1L2Regularizer import L1L2Regularizer regularizers_collection = { "l1_regularizer": L1Regularizer, "l2_regularizer": L2Re...
0
0
0
0
0
0
0
0
0
9476c6b7ec7bbbe6ada26754d1f9d40d083539a5
1,668
py
Python
Misc/lng_prepare.py
sorinAche23/Psafe
d23aa0c8b58a8f6e55284083978e865ae13b4c8f
[ "Artistic-2.0" ]
578
2015-08-18T19:43:05.000Z
2022-03-27T11:57:07.000Z
Misc/lng_prepare.py
sorinAche23/Psafe
d23aa0c8b58a8f6e55284083978e865ae13b4c8f
[ "Artistic-2.0" ]
521
2015-08-27T18:39:33.000Z
2022-03-24T09:48:00.000Z
Misc/lng_prepare.py
sorinAche23/Psafe
d23aa0c8b58a8f6e55284083978e865ae13b4c8f
[ "Artistic-2.0" ]
160
2015-08-18T19:46:09.000Z
2022-01-31T12:08:24.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- __version__ = '$Id$' # author: Micha Niklas, michal.niklas@wp.pl USAGE = """change "TRANSLATION" into "en:English text" for untranslated texts \tusage: \t\tlng_prepare.py [file_name] \t\t\t-coverts selected file and creates .lng2 file \t\tlng_prepare.py \t\t\t-coverts p...
20.85
77
0.639089
#!/usr/bin/env python # -*- coding: utf8 -*- __version__ = '$Id$' # author: Michał Niklas, michal.niklas@wp.pl USAGE = """change "TRANSLATION" into "en:English text" for untranslated texts \tusage: \t\tlng_prepare.py [file_name] \t\t\t-coverts selected file and creates .lng2 file \t\tlng_prepare.py \t\t\t-coverts ...
2
0
0
0
0
641
0
0
23
fa7f25df24e9185c932224f3fa770e24c416cc43
1,021
py
Python
mdn/yari/deployer/src/deployer/speedcurve.py
private-face/webextensions-docset
9743056dbb3d3ccd8a20a665fcb0f98d388819a6
[ "MIT" ]
1
2021-11-22T20:01:26.000Z
2021-11-22T20:01:26.000Z
mdn/yari/deployer/src/deployer/speedcurve.py
Kapeli/mdn-offline-build
e700fcc597be32dde7a2cdadeaa56343ccf0a678
[ "MIT" ]
1
2021-07-02T18:35:07.000Z
2021-07-02T18:35:07.000Z
mdn/yari/deployer/src/deployer/speedcurve.py
Kapeli/mdn-offline-build
e700fcc597be32dde7a2cdadeaa56343ccf0a678
[ "MIT" ]
2
2021-06-21T12:09:37.000Z
2021-07-02T12:15:52.000Z
import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry from .utils import log POST_URL = "https://api.speedcurve.com/v1/deploys" def deploy_ping( api_key: str, site_id: str, note: str, detail: str, dry_run: bool = False ): """Based on https://api.spe...
26.179487
86
0.613124
import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry from .utils import log POST_URL = "https://api.speedcurve.com/v1/deploys" def deploy_ping( api_key: str, site_id: str, note: str, detail: str, dry_run: bool = False ): """Based on https://api.spe...
0
0
0
0
0
0
0
0
0
428bf3d85aa21bdb068cdbe0cee000cb0c9ef217
8,428
py
Python
mdx_wikilink_plus/test.py
peterkaminski/mdx_wikilink_plus
8bd0e7b7b167249c818bb262eb3b66703c2391c8
[ "BSD-3-Clause" ]
13
2018-10-26T15:36:53.000Z
2021-08-23T11:04:37.000Z
mdx_wikilink_plus/test.py
peterkaminski/mdx_wikilink_plus
8bd0e7b7b167249c818bb262eb3b66703c2391c8
[ "BSD-3-Clause" ]
6
2019-11-19T22:05:03.000Z
2022-03-23T17:47:33.000Z
mdx_wikilink_plus/test.py
peterkaminski/mdx_wikilink_plus
8bd0e7b7b167249c818bb262eb3b66703c2391c8
[ "BSD-3-Clause" ]
6
2019-11-20T19:44:05.000Z
2022-03-23T10:01:55.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals import unittest unittest.TestLoader.sortTestMethodsUsing = None meta_text = """ wiki_base_url: /local wiki_url_whitespace: _ wiki_url_case: lowercase wiki_label_case: capitalize wiki_html_class: wiki-lnk wiki_image...
45.069519
103
0.634077
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals import unittest import markdown from markdown.extensions.meta import MetaExtension from mdx_wikilink_plus.mdx_wikilink_plus import WikiLinkPlusExtension unittest.TestLoader.sortTestMethodsUsing = None def build_url...
0
0
0
6,412
0
63
0
71
112
0a5894a307444464369d247e7550e0eb2202cf80
4,149
py
Python
autocalibration/lib/python2.7/site-packages/matplotlib/tests/test_arrow_patches.py
prcalopa/reactable-autocalibration
eb67a5b5ee0e50f1effa773f6f3f934b5fda6fcf
[ "MIT" ]
5
2017-11-15T10:33:42.000Z
2021-11-16T02:21:31.000Z
matplotlib/tests/test_arrow_patches.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2017-10-28T03:30:26.000Z
2017-10-28T03:31:00.000Z
matplotlib/tests/test_arrow_patches.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
6
2017-11-30T00:34:20.000Z
2021-05-20T02:58:02.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import matplotlib.pyplot as plt import matplotlib.patches as mpatches def __prepare_fancyarrow_dpi_cor_test(): """ Convenience function that prepares and returns a FancyArrowPatch. It aims at b...
34.008197
79
0.579899
from __future__ import (absolute_import, division, print_function, unicode_literals) import matplotlib.pyplot as plt from matplotlib.testing.decorators import image_comparison import matplotlib.patches as mpatches def draw_arrow(ax, t, r): ax.annotate('', xy=(0.5, 0.5 + r), xytext=(0.5, 0...
0
2,920
0
0
0
166
0
37
160
0432b2d70cf3871881a79731113be00136f6eff0
762
py
Python
ros947d_vmarker/scripts/vmarker_publisher_node.py
hyaguchi947d/ros947d
525882146114bc1e182ec37461f36e8e835f347d
[ "MIT" ]
null
null
null
ros947d_vmarker/scripts/vmarker_publisher_node.py
hyaguchi947d/ros947d
525882146114bc1e182ec37461f36e8e835f347d
[ "MIT" ]
null
null
null
ros947d_vmarker/scripts/vmarker_publisher_node.py
hyaguchi947d/ros947d
525882146114bc1e182ec37461f36e8e835f347d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- if __name__ == '__main__': main()
24.580645
62
0.686352
#!/usr/bin/env python # -*- encoding: utf-8 -*- import rospy from std_msgs.msg import Header, ColorRGBA from geometry_msgs.msg import Pose, Point, Quaternion, Vector3 from visualization_msgs.msg import Marker, MarkerArray from ros947d_vmarker import create_marker def main(): rospy.init_node('vmarker_publisher_nod...
0
0
0
0
0
436
0
106
136
c5c1194d5b0bb69aa290197ca3869e96e7e50840
3,826
py
Python
extensions/rng.py
VinPer/DiscordBot
f809b12e0f8b4e07db2c00af3632c1822aaef895
[ "MIT" ]
null
null
null
extensions/rng.py
VinPer/DiscordBot
f809b12e0f8b4e07db2c00af3632c1822aaef895
[ "MIT" ]
null
null
null
extensions/rng.py
VinPer/DiscordBot
f809b12e0f8b4e07db2c00af3632c1822aaef895
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This extension implements basic commands based upon the use of randomly generated numbers or choices, just to add some interactivity to the bot. """
34.160714
77
0.522739
# -*- coding: utf-8 -*- import discord import random import math from discord.ext import commands """ This extension implements basic commands based upon the use of randomly generated numbers or choices, just to add some interactivity to the bot. """ class RNG: def __init__(self, client): self.client =...
0
2,818
0
677
0
29
0
-14
136
427392bbc2d2a397e012e6c6a44eea50d0daae65
145
py
Python
health_check/__init__.py
failedguidedog/django-health-check
4759596101bb944eef1d22e5f89798395619436f
[ "MIT" ]
null
null
null
health_check/__init__.py
failedguidedog/django-health-check
4759596101bb944eef1d22e5f89798395619436f
[ "MIT" ]
null
null
null
health_check/__init__.py
failedguidedog/django-health-check
4759596101bb944eef1d22e5f89798395619436f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Used by setup.py, so minimize top-level imports. VERSION = (2, 2, 0) __version__ = ".".join(str(i) for i in VERSION)
20.714286
50
0.62069
# -*- coding: utf-8 -*- # Used by setup.py, so minimize top-level imports. VERSION = (2, 2, 0) __version__ = ".".join(str(i) for i in VERSION)
0
0
0
0
0
0
0
0
0
1fe8ccffc473d32de4e60087bdb2722554ec8413
517
py
Python
Services/NetworkRequests.py
jbzdarkid/TwitchLink
c7bae13b46c7e6af7dc74539fdbca9cbb01f4778
[ "MIT" ]
26
2021-02-04T00:29:21.000Z
2022-03-25T17:14:43.000Z
Services/NetworkRequests.py
jbzdarkid/TwitchLink
c7bae13b46c7e6af7dc74539fdbca9cbb01f4778
[ "MIT" ]
19
2021-02-04T01:27:07.000Z
2022-03-19T16:22:46.000Z
Services/NetworkRequests.py
jbzdarkid/TwitchLink
c7bae13b46c7e6af7dc74539fdbca9cbb01f4778
[ "MIT" ]
10
2021-06-08T17:41:40.000Z
2022-03-28T22:38:40.000Z
import requests requests.Response.text = Response.text requests.Response.json = Response.json requests.Response.getData = Response.getData
21.541667
44
0.609284
import requests import json class Response(requests.Response): @property def text(self): return self.content.decode("utf-8") def json(self): return json.loads(self.content) def getData(self): try: return self.json() except: try: ...
0
52
0
290
0
0
0
-10
45
a9127198867f7467bb2b6b92ebdf70dedc3695df
1,238
py
Python
bloomberg/2sum.py
prondubuisi/code-interview-prep
d296bea753ab22daed3ec6479568ee9613b9f0fa
[ "MIT" ]
null
null
null
bloomberg/2sum.py
prondubuisi/code-interview-prep
d296bea753ab22daed3ec6479568ee9613b9f0fa
[ "MIT" ]
null
null
null
bloomberg/2sum.py
prondubuisi/code-interview-prep
d296bea753ab22daed3ec6479568ee9613b9f0fa
[ "MIT" ]
null
null
null
# 2 sum intends to see if 2 numbers in an array can sum up to a target number # Constraints. no element is repeated # brute force # Algorithm # Start from beginning of array # add numbers from beginning + 1 till the end looking for match(sum) # if match is found return current start and index of match # if match ...
21.719298
77
0.64378
# 2 sum intends to see if 2 numbers in an array can sum up to a target number # Constraints. no element is repeated # brute force # Algorithm # Start from beginning of array # add numbers from beginning + 1 till the end looking for match(sum) # if match is found return current start and index of match # if match ...
0
0
0
0
0
428
0
0
46
db7a86667b6cd1cbe5bc686de1344032b67bd58a
3,196
py
Python
imagepy/menus/Image/resize_plg.py
dada1437903138/imagepy
65d9ce088894eef587054e04018f9d34ff65084f
[ "BSD-4-Clause" ]
1,178
2017-05-25T06:59:01.000Z
2022-03-31T11:38:53.000Z
imagepy/menus/Image/resize_plg.py
TomisTony/imagepy
3c378ebaf72762b94f0826a410897757ebafe689
[ "BSD-4-Clause" ]
76
2017-06-10T17:01:50.000Z
2021-12-23T08:13:29.000Z
imagepy/menus/Image/resize_plg.py
TomisTony/imagepy
3c378ebaf72762b94f0826a410897757ebafe689
[ "BSD-4-Clause" ]
315
2017-05-25T12:59:53.000Z
2022-03-07T22:52:21.000Z
# -*- coding: utf-8 -*- """ Created on Wed Dec 7 23:03:28 2016 @author: yxl """
38.506024
101
0.456195
# -*- coding: utf-8 -*- """ Created on Wed Dec 7 23:03:28 2016 @author: yxl """ from sciapp.action import Simple import scipy.ndimage as ndimg import numpy as np class Plugin(Simple): title = 'Resize' note = ['all'] para = {'kx':0.5, 'ky':0.5, 'kz':1,'order':3} view = [(float, 'kx', (0.1,10), 2,...
0
0
0
3,010
0
0
0
16
90
502551cf562e9a825e40b9f7f281211f05013fab
2,073
py
Python
Django/translate/sample/views.py
sug5806/TIL
2309d8a270e4a7b8961268a40b6492c5db317e37
[ "MIT" ]
null
null
null
Django/translate/sample/views.py
sug5806/TIL
2309d8a270e4a7b8961268a40b6492c5db317e37
[ "MIT" ]
102
2020-02-12T00:10:33.000Z
2022-03-11T23:58:41.000Z
Django/translate/sample/views.py
sug5806/TIL
2309d8a270e4a7b8961268a40b6492c5db317e37
[ "MIT" ]
null
null
null
# Create your views here. # # 1) url named group language code # 2) language code # 3)
28.39726
76
0.730342
# Create your views here. from django.shortcuts import render from django.http import HttpResponse from django.utils import translation from django.utils.translation import ugettext_lazy as _ from django.utils.translation import pgettext_lazy as __ def index(request): msg = _('안녕하세요요요') # "구어"는 구분자 이다(아무거나 해...
288
0
0
0
0
1,472
0
124
268
292ce37cd44db919b43e68b15ed7d110a334b879
15,432
py
Python
plotting.py
marcottelab/infer_complexes
45ee1fb948f48fcf7fa97289c67d098e533116e4
[ "MIT" ]
1
2017-10-04T05:17:22.000Z
2017-10-04T05:17:22.000Z
plotting.py
marcottelab/infer_complexes
45ee1fb948f48fcf7fa97289c67d098e533116e4
[ "MIT" ]
null
null
null
plotting.py
marcottelab/infer_complexes
45ee1fb948f48fcf7fa97289c67d098e533116e4
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np import scipy import pylab import random import itertools import cv from Struct import Struct import utils as ut import pairdict as pd import pandas as pa import ppi_utils as pu #COLORS = ['#4571A8', 'black', '#A8423F', '#89A64E', '#6E548D', '#3D96AE', #'#D...
37.096154
135
0.603357
from __future__ import division import numpy as np import scipy import pylab from pylab import * import random import itertools import cv from Struct import Struct import utils as ut import pairdict as pd import pandas as pa import ppi_utils as pu #COLORS = ['#4571A8', 'black', '#A8423F', '#89A64E', '#6E548D', '#3D96...
0
0
0
0
794
8,826
0
-2
551
502b385982f5498d5b226d7dea9fb000e5af84ab
7,847
py
Python
ansible/venv/lib/python2.7/site-packages/ansible_test/_internal/provider/layout/__init__.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/venv/lib/python2.7/site-packages/ansible_test/_internal/provider/layout/__init__.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/venv/lib/python2.7/site-packages/ansible_test/_internal/provider/layout/__init__.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
"""Code for finding content.""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os from ... import types as t from .. import (PathProvider) def paths_to_tree(paths): # type: (t.List[str]) -> t.Tuple(t.Dict[str, t.Any], t.List[str]) """Return a filesystem tree...
33.678112
152
0.596534
"""Code for finding content.""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type import abc import collections import os from ... import types as t from ...util import ( ANSIBLE_SOURCE_ROOT, ) from .. import ( PathProvider, ) class Layout: """Description of conte...
0
1,269
0
5,336
0
0
0
20
183
e46f742a7791d13aad1bdc51bf553b560a17ee34
744
py
Python
engine/log/saver.py
jsk1107/UDK_labeler
cd9071c775658dbb6056d3c65bcbc626a18f1f02
[ "Apache-2.0" ]
6
2021-03-08T02:29:05.000Z
2022-02-18T13:04:51.000Z
engine/log/saver.py
7eta/udk_labeler
8cd8a86bc1a78647c0aaf81ca78e6e518fb86ceb
[ "Apache-2.0" ]
6
2021-03-03T14:18:46.000Z
2022-03-08T06:55:57.000Z
engine/log/saver.py
7eta/udk_labeler
8cd8a86bc1a78647c0aaf81ca78e6e518fb86ceb
[ "Apache-2.0" ]
1
2021-03-08T02:29:07.000Z
2021-03-08T02:29:07.000Z
from datetime import datetime TODAY = datetime.today().strftime('%Y%m%d')
28.615385
91
0.647849
import torch import os from datetime import datetime TODAY = datetime.today().strftime('%Y%m%d') class Saver(object): """ Log, Tensorboard, Checkpoint 저장을 위한 Code 1번 실행 할 때마다 실행된 날짜를 기준으로 폴더가 생성되며 해당 폴더 내부에는, Log파일, Checkpoint파일, Tensorboard파일이 생성되게 된다. """ def __init__(self, conf...
150
0
0
573
0
0
0
-21
67
eabbe54b114d4a523dcbbf26e8dcd80dc185d5ef
9,131
py
Python
queryCmp.py
Dexterzhao/envir_data_guides
27145fc66b19c1b14cc22e6c57e5fd0f49f4cc80
[ "MIT" ]
null
null
null
queryCmp.py
Dexterzhao/envir_data_guides
27145fc66b19c1b14cc22e6c57e5fd0f49f4cc80
[ "MIT" ]
null
null
null
queryCmp.py
Dexterzhao/envir_data_guides
27145fc66b19c1b14cc22e6c57e5fd0f49f4cc80
[ "MIT" ]
1
2021-01-22T19:19:02.000Z
2021-01-22T19:19:02.000Z
#!/usr/bin/python import psycopg2 import logging import matplotlib.ticker as ticker logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) time_total = 0 cmpStats = {} # MyLoggingCursor simply sets self.timestamp at start of each query # MyLogging Connection: # a) calls MyLoggingCursor rath...
35.948819
268
0.585259
#!/usr/bin/python from configparser import ConfigParser from osgeo import ogr import psycopg2 import psycopg2.extensions from psycopg2.extras import LoggingConnection, LoggingCursor import logging import time import pandas as pd import os import linecache import sys import csv import matplotlib.pyplot as plt import mat...
0
0
0
821
0
7,384
0
4
468
1005e040f673b0599020664f7647bd8ba7a97b8f
1,098
py
Python
backend/foodapp/migrations/0010_auto_20180428_1554.py
RaitzeR/FinnBros
a2d7e3e755af7bb22bb2ce779ea1f36c6bed961b
[ "MIT" ]
null
null
null
backend/foodapp/migrations/0010_auto_20180428_1554.py
RaitzeR/FinnBros
a2d7e3e755af7bb22bb2ce779ea1f36c6bed961b
[ "MIT" ]
10
2020-06-05T18:08:03.000Z
2022-03-11T23:19:52.000Z
backend/foodapp/migrations/0010_auto_20180428_1554.py
RaitzeR/FinnBros
a2d7e3e755af7bb22bb2ce779ea1f36c6bed961b
[ "MIT" ]
null
null
null
# Generated by Django 2.0.4 on 2018-04-28 15:54
31.371429
153
0.611111
# Generated by Django 2.0.4 on 2018-04-28 15:54 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('foodapp', '0009_auto_20180428_1126'), ] operations = [ migrations.AddField( model_name='food', ...
0
0
0
951
0
0
0
30
68
c37e8d02f985cf03b365cb9224a41621d32e0610
4,230
py
Python
speech/server/app.py
OthmaneJ/deep-tts
93059d568c5b458d3f0d80eb294d397ecace8731
[ "MIT" ]
213
2020-05-21T12:37:37.000Z
2022-03-28T16:36:07.000Z
speech/server/app.py
OthmaneJ/deep-tts
93059d568c5b458d3f0d80eb294d397ecace8731
[ "MIT" ]
36
2020-08-14T08:23:34.000Z
2022-02-07T11:26:17.000Z
speech/server/app.py
OthmaneJ/deep-tts
93059d568c5b458d3f0d80eb294d397ecace8731
[ "MIT" ]
38
2020-05-21T20:03:30.000Z
2022-01-19T16:31:15.000Z
import sys, os from flask import Flask # insert python path to allow imports from parent dirs #sys.path.append(os.path.dirname(__file__)) sys.path.append(os.getcwd()) # SpeedySpeech imports from functional import mask app = Flask(__name__) app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0 args = get_args() speedyspeec...
33.307087
91
0.663357
import sys, os, argparse from io import BytesIO import torch import numpy as np from scipy.io.wavfile import write from flask import Flask, render_template, request, make_response # insert python path to allow imports from parent dirs #sys.path.append(os.path.dirname(__file__)) sys.path.append(os.getcwd()) # SpeedyS...
0
430
0
2,257
0
637
0
143
314
faa25151c82fc62e8446efa2d9604ea4928681c0
5,176
py
Python
tunnistamo/utils.py
charn/tunnistamo
fed2722280600ff04b9966273c7a49584adca6e8
[ "MIT" ]
8
2018-11-13T06:05:07.000Z
2021-09-18T22:01:52.000Z
tunnistamo/utils.py
charn/tunnistamo
fed2722280600ff04b9966273c7a49584adca6e8
[ "MIT" ]
185
2017-06-08T12:48:47.000Z
2022-03-22T08:26:36.000Z
tunnistamo/utils.py
charn/tunnistamo
fed2722280600ff04b9966273c7a49584adca6e8
[ "MIT" ]
19
2017-06-08T13:02:37.000Z
2021-02-15T13:10:35.000Z
# copy-pasted from https://github.com/City-of-Helsinki/kerrokantasi/blob/2c26bf3ee9ac4fdc88aefabd7d0c4e73f4d3707d/democracy/views/utils.py#L257 # noqa
41.079365
151
0.647411
from collections import OrderedDict from django.conf import settings from django.utils.translation import gettext_lazy as _ from rest_framework import serializers from rest_framework.exceptions import ValidationError # copy-pasted from https://github.com/City-of-Helsinki/kerrokantasi/blob/2c26bf3ee9ac4fdc88aefabd7d0...
0
0
0
4,647
0
111
0
107
156
215dc9d840093086147939e7eb2204a1a4f5fb6c
6,345
py
Python
src/xorencryption/xor.py
GuptaAyush19/xorencryption
aad8602afeb78eaf41ce4ff3f9eef5038b4b3cab
[ "MIT" ]
2
2021-09-23T19:26:06.000Z
2021-09-27T03:13:50.000Z
src/xorencryption/xor.py
GuptaAyush19/xorencryption
aad8602afeb78eaf41ce4ff3f9eef5038b4b3cab
[ "MIT" ]
1
2021-04-21T11:17:33.000Z
2021-04-22T02:02:44.000Z
src/xorencryption/xor.py
GuptaAyush19/xorencryption
aad8602afeb78eaf41ce4ff3f9eef5038b4b3cab
[ "MIT" ]
2
2021-04-21T03:47:48.000Z
2021-09-23T19:26:08.000Z
""" Module: xor.py Created by alvif@usagi on 20/04/21 """
26.885593
83
0.533964
""" Module: xor.py Created by alvif@usagi on 20/04/21 """ class XOREncryption: def __init__(self, plaintext="", key="", ciphertext=""): self.__plaintext = plaintext self.__ciphertext = ciphertext self.__key = key def set_plaintext(self, plaintext: str): """ Set plain te...
0
2,706
0
3,558
0
0
0
0
22
14c9b4e861ed5f48d139647844a7176fb3725629
2,423
py
Python
test/fixtures/goldstandard/benchmark_confirm.py
nachogentile/PatentsProcessor
43ae7a727d3368811c828eeca6d6e484af8cb2f6
[ "BSD-2-Clause" ]
53
2015-01-19T17:46:40.000Z
2022-03-28T21:15:42.000Z
test/fixtures/goldstandard/benchmark_confirm.py
kwanghui/patents
fa124bbfbc5950885757a738367dc4d1c6e7fa89
[ "BSD-2-Clause" ]
4
2015-05-11T14:59:13.000Z
2019-03-05T19:12:46.000Z
test/fixtures/goldstandard/benchmark_confirm.py
kwanghui/patents
fa124bbfbc5950885757a738367dc4d1c6e7fa89
[ "BSD-2-Clause" ]
40
2015-02-10T04:28:49.000Z
2022-01-04T21:53:27.000Z
import sqlite3 as sql import os import sys import logging # bmVerify(['final_r7', 'final_r8'], filepath="/home/ysun/disambig/newcode/all/", outdir = "/home/ayu/results_v2/") # Text Files txt_file = 'patentlist.txt' opened_file = open(txt_file, 'U') log_file = 'benchmark_results.log' # Logging logging.basicC...
26.922222
128
0.63021
import sqlite3 as sql import os import sys import logging # bmVerify(['final_r7', 'final_r8'], filepath="/home/ysun/disambig/newcode/all/", outdir = "/home/ayu/results_v2/") # Text Files txt_file = 'patentlist.txt' opened_file = open(txt_file, 'U') log_file = 'benchmark_results.log' # Logging logging.basicC...
0
0
0
0
0
0
0
0
0
9001a77719a8d5278dac2c2af69643fda5034185
8,536
py
Python
vendor-local/lib/python/silme/diff/package.py
Acidburn0zzz/pontoon
069d4c7732ace9d4ef39c0b81d0cd33b51b64811
[ "BSD-3-Clause" ]
null
null
null
vendor-local/lib/python/silme/diff/package.py
Acidburn0zzz/pontoon
069d4c7732ace9d4ef39c0b81d0cd33b51b64811
[ "BSD-3-Clause" ]
null
null
null
vendor-local/lib/python/silme/diff/package.py
Acidburn0zzz/pontoon
069d4c7732ace9d4ef39c0b81d0cd33b51b64811
[ "BSD-3-Clause" ]
null
null
null
from ..core import Package Package.diff = l10npackage_diff Package.apply_diff = l10npackage_apply_diff
39.518519
131
0.590909
from ..core import Blob, Structure, Comment, Package def intersect(a, b): return list(set(a) & set(b)) class PackageDiff(object): def __init__(self): self._packages = {} self._structures = {} self.id = None self.uri = None def __len__(self): return len(self._packag...
0
0
0
5,705
0
2,608
0
26
92
9299a6fedbbd1af613d324fda1681ddd4627723a
2,740
py
Python
Project_1/Task3.py
puneetjain-iclp/data_structure_and_algorithm_udacity
7e7cb0c2618cbc6276cfdeafa36d4da606b779c1
[ "Apache-2.0" ]
null
null
null
Project_1/Task3.py
puneetjain-iclp/data_structure_and_algorithm_udacity
7e7cb0c2618cbc6276cfdeafa36d4da606b779c1
[ "Apache-2.0" ]
null
null
null
Project_1/Task3.py
puneetjain-iclp/data_structure_and_algorithm_udacity
7e7cb0c2618cbc6276cfdeafa36d4da606b779c1
[ "Apache-2.0" ]
null
null
null
""" Read file into texts and calls. It's ok if you don't understand how to read files. """ import csv with open('texts.csv', 'r') as f: reader = csv.reader(f) texts = list(reader) with open('calls.csv', 'r') as f: reader = csv.reader(f) calls = list(reader) """ TASK 3: (080) is the area code for fixe...
33.012048
155
0.69562
""" Read file into texts and calls. It's ok if you don't understand how to read files. """ import csv with open('texts.csv', 'r') as f: reader = csv.reader(f) texts = list(reader) with open('calls.csv', 'r') as f: reader = csv.reader(f) calls = list(reader) """ TASK 3: (080) is the area code for fixe...
0
0
0
0
0
0
0
0
0
02a49b6ee4b92baba4ba6c25239d3cc37d8f391e
656
py
Python
httpie_f5_auth.py
imecimore/httpie-f5-auth
18e66fb634257bc5d99ba7e6356fb838392454b8
[ "MIT" ]
null
null
null
httpie_f5_auth.py
imecimore/httpie-f5-auth
18e66fb634257bc5d99ba7e6356fb838392454b8
[ "MIT" ]
1
2022-03-08T21:09:04.000Z
2022-03-08T21:09:04.000Z
httpie_f5_auth.py
imecimore/httpie-f5-auth
18e66fb634257bc5d99ba7e6356fb838392454b8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ F5 BIG-IQ auth plugin for HTTPie. """ __version__ = '0.0.6' __author__ = 'ivan mecimore' __license__ = 'MIT'
24.296296
74
0.669207
# -*- coding: utf-8 -*- """ F5 BIG-IQ auth plugin for HTTPie. """ import requests from requests_f5auth import XF5Auth from httpie.plugins import AuthPlugin __version__ = '0.0.6' __author__ = 'ivan mecimore' __license__ = 'MIT' class F5AuthPlugin(AuthPlugin): """Plugin registration""" name = 'X-F5-Auth-Token...
0
0
0
404
0
0
0
24
89
85f485e89f2b3fb0bb755a5175b1eb3fb4beeae9
4,219
py
Python
src/fuck_yinxiang.py
LeiHaoa/fuckYinxiang
2c54292ab8ea07aba8eb97c5f4ce83dfaed2e899
[ "Apache-2.0", "BSD-2-Clause" ]
4
2021-08-04T04:22:30.000Z
2022-03-27T04:47:04.000Z
src/fuck_yinxiang.py
LeiHaoa/fuckYinxiang
2c54292ab8ea07aba8eb97c5f4ce83dfaed2e899
[ "Apache-2.0", "BSD-2-Clause" ]
null
null
null
src/fuck_yinxiang.py
LeiHaoa/fuckYinxiang
2c54292ab8ea07aba8eb97c5f4ce83dfaed2e899
[ "Apache-2.0", "BSD-2-Clause" ]
null
null
null
# # A simple Evernote API demo script that lists all notebooks in the user's # account and creates a simple test note in the default notebook. # # Before running this sample, you must fill in your Evernote developer token. # # To run (Unix): # export PYTHONPATH=../../lib; python EDAMTest.py # import os os.environ['P...
34.581967
116
0.694714
# # A simple Evernote API demo script that lists all notebooks in the user's # account and creates a simple test note in the default notebook. # # Before running this sample, you must fill in your Evernote developer token. # # To run (Unix): # export PYTHONPATH=../../lib; python EDAMTest.py # import os os.environ['P...
0
0
0
2,933
0
0
0
81
267
bc5ee619aaaf7d6755bb8998410d2e1bed7270b7
300
py
Python
pacman-termux/test/pacman/tests/epoch011.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/epoch011.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/epoch011.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "usbutils case study: force stays, epoch now in local db" sp = pmpkg("usbutils", "1:002-1") self.addpkg2db("sync", sp) lp = pmpkg("usbutils", "1:001-1") self.addpkg2db("local", lp) self.args = "-Su" self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_VERSION=usbutils|1:002-1")
23.076923
76
0.696667
self.description = "usbutils case study: force stays, epoch now in local db" sp = pmpkg("usbutils", "1:002-1") self.addpkg2db("sync", sp) lp = pmpkg("usbutils", "1:001-1") self.addpkg2db("local", lp) self.args = "-Su" self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_VERSION=usbutils|1:002-1")
0
0
0
0
0
0
0
0
0
17abf30d60abec871fc7903d83ee7e22f4dd9475
1,253
py
Python
src/main.py
oluiscabral/stockopedia-scraper
1050206d7a534f0e57eee84a5187615dc0af6bd9
[ "MIT" ]
null
null
null
src/main.py
oluiscabral/stockopedia-scraper
1050206d7a534f0e57eee84a5187615dc0af6bd9
[ "MIT" ]
null
null
null
src/main.py
oluiscabral/stockopedia-scraper
1050206d7a534f0e57eee84a5187615dc0af6bd9
[ "MIT" ]
null
null
null
''' @author: oluiscabral ''' from builders.simple_builder import SimpleBuilder if __name__ == '__main__': builder = SimpleBuilder() main(builder)
29.833333
85
0.701516
''' @author: oluiscabral ''' from builders.simple_builder import SimpleBuilder from scrapers.interfaces.scraper_component import ScraperComponent from data_structure.data_ref import DataRef from helpers.config import Config from typing import Set from data_structure.data import Data def main(builder): # build app...
0
0
0
0
0
863
0
95
133
eb369ebcfb65b6bc1ddf71c76ca0ba37234a0510
236
py
Python
apps/common/order.py
panla/kesousou
df6751b0a2e8eeec5122418cd29fe1f99e23f39e
[ "MIT" ]
1
2021-04-27T01:18:45.000Z
2021-04-27T01:18:45.000Z
apps/common/order.py
panla/kesousou
df6751b0a2e8eeec5122418cd29fe1f99e23f39e
[ "MIT" ]
5
2020-08-26T14:47:47.000Z
2021-03-22T08:56:43.000Z
apps/common/order.py
panla/kesousou
df6751b0a2e8eeec5122418cd29fe1f99e23f39e
[ "MIT" ]
null
null
null
""" id id -id id """ from drf_yasg import openapi order_param = openapi.Parameter( name='order', in_=openapi.IN_QUERY, description='order by', type=openapi.TYPE_STRING ) order_params = [ order_param ]
13.882353
52
0.694915
""" 排序参数, id 根据 id 来升序 -id 根据 id 来降序 """ from drf_yasg import openapi order_param = openapi.Parameter( name='order', in_=openapi.IN_QUERY, description='order by', type=openapi.TYPE_STRING ) order_params = [ order_param ]
45
0
0
0
0
0
0
0
0
c3048e5eefb71fac08ebd3322cdd936b56ed120d
410
py
Python
month02/day04 os模块 正则表达式/文件处理函数.py
chaofan-zheng/python_leanring_code
0af44ff39b9ded2c1d2cc96c6d356d21170ac04d
[ "Apache-2.0" ]
4
2021-01-07T14:25:10.000Z
2021-02-01T10:36:01.000Z
month02/day04 os模块 正则表达式/文件处理函数.py
chaofan-zheng/python_leanring_code
0af44ff39b9ded2c1d2cc96c6d356d21170ac04d
[ "Apache-2.0" ]
null
null
null
month02/day04 os模块 正则表达式/文件处理函数.py
chaofan-zheng/python_leanring_code
0af44ff39b9ded2c1d2cc96c6d356d21170ac04d
[ "Apache-2.0" ]
null
null
null
""" """ import os print("", os.path.getsize("../day03 data/my.log")) print("", os.path.getsize("../..")) print("", os.listdir("..")) print("", os.path.exists("../day03 data/my.log")) print("", os.path.isfile("../day03 data/my.log")) # 299 # 448 # ['.DS_Store', 'day03 data', 'day02_Linux', 'day01 Linux', '', '...
24.117647
93
0.621951
""" 文件处理函数 """ import os print("文件大小", os.path.getsize("../day03 data/my.log")) print("文件大小", os.path.getsize("../..")) print("文件列表", os.listdir("..")) print("文件是否存在", os.path.exists("../day03 data/my.log")) print("文件类型", os.path.isfile("../day03 data/my.log")) # 文件大小 299 # 文件大小 448 # 文件列表 ['.DS_Store', 'day03 da...
186
0
0
0
0
0
0
0
0
0a5631c33f4aecf19e8c10c6293f36e3873e6f0a
1,811
py
Python
venv/Lib/site-packages/openpyxl/worksheet/pagebreak.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
26
2021-01-22T08:40:45.000Z
2022-03-19T12:09:39.000Z
venv/Lib/site-packages/openpyxl/worksheet/pagebreak.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
5
2021-08-06T09:41:32.000Z
2021-08-17T08:37:47.000Z
venv/Lib/site-packages/openpyxl/worksheet/pagebreak.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
12
2021-04-06T02:32:20.000Z
2022-03-21T16:30:29.000Z
# Copyright (c) 2010-2021 openpyxl PageBreak = RowBreak
19.063158
58
0.560464
# Copyright (c) 2010-2021 openpyxl from openpyxl.descriptors.serialisable import Serialisable from openpyxl.descriptors import ( Integer, Bool, Sequence, ) class Break(Serialisable): tagname = "brk" id = Integer(allow_none=True) min = Integer(allow_none=True) max = Integer(allow_none=Tr...
0
79
0
1,468
0
0
0
89
114
af53a2789955bbd22dff07f6d39ea599dc3506f2
1,343
py
Python
thresholding_test.py
zharfi/Cidar
626b37291786108d7eed21c4f700556116f15288
[ "MIT" ]
null
null
null
thresholding_test.py
zharfi/Cidar
626b37291786108d7eed21c4f700556116f15288
[ "MIT" ]
null
null
null
thresholding_test.py
zharfi/Cidar
626b37291786108d7eed21c4f700556116f15288
[ "MIT" ]
null
null
null
# Thresholding Test import cv2 img = cv2.imread('gradient.png',0)
46.310345
87
0.763961
# Thresholding Test import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('gradient.png',0) def ambangCitraGlobal(self, citraH, citraS, citraV): tPlasmaH = 130 tPlasmaS = 27 tPlasmaV = 62 tIntiS = 149 ambangPlasmaH = cv2.threshold(citraH, tPlasmaH, 255,...
0
0
0
0
0
1,164
0
12
95
74df7cfcfb4616d3af682757d4cf8b6e64d8e99f
1,444
py
Python
src/Itemizers.py
mkhl/haskell.sugar
f1d08a57d64f10fbab882d3cdcb30d45201c11d2
[ "MIT" ]
4
2016-01-27T10:50:08.000Z
2018-11-19T06:31:58.000Z
src/Itemizers.py
mkhl/haskell.sugar
f1d08a57d64f10fbab882d3cdcb30d45201c11d2
[ "MIT" ]
null
null
null
src/Itemizers.py
mkhl/haskell.sugar
f1d08a57d64f10fbab882d3cdcb30d45201c11d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from Foundation import NSBundle from AppKit import NSImage haskellBundleIdentifier = 'org.purl.net.mkhl.haskell' def iconForName(name): """Return the NSImage instance representing a `name` item.""" bundle = NSBundle.bundleWithIdentifier_(haskellBundleIdentifier) ...
24.896552
68
0.661357
#!/usr/bin/env python # -*- coding: utf-8 -*- from Foundation import objc from Foundation import NSBundle from AppKit import NSImage haskellBundleIdentifier = 'org.purl.net.mkhl.haskell' def iconForName(name): """Return the NSImage instance representing a `name` item.""" bundle = NSBundle.bundleWithIdentifie...
3
0
0
768
0
0
0
6
115
0921858f9aa24acab48e9a80e49699d92d4d77b6
4,993
py
Python
verySimple16-25.py
QuirinoC/Python
988b3a5c78fbcf96a16d10f6da31d99f62b10598
[ "Apache-2.0" ]
null
null
null
verySimple16-25.py
QuirinoC/Python
988b3a5c78fbcf96a16d10f6da31d99f62b10598
[ "Apache-2.0" ]
null
null
null
verySimple16-25.py
QuirinoC/Python
988b3a5c78fbcf96a16d10f6da31d99f62b10598
[ "Apache-2.0" ]
null
null
null
from pprint import pprint alphabet = {"a":0,"b":0,"c":0,"d":0,"e":0,"f":0,"g":0,"h":0,"i":0,"j":0,\ "k":0,"l":0,"m":0,"n":0,"o":0,"p":0,"q":0,"r":0,"s":0,"t":0,"u":0,"v":0,\ "w":0,"x":0,"y":0,"z":0} alphaFrecuency = {"a":0,"b":0,"c":0,"d":0,"e":0,"f":0,"g":0,"h":0,"i":0,"j":0,\ "k":0,"l":0,"m":0,"n":0,"o":0,"p":0,"q":...
27.585635
97
0.535149
from pprint import pprint alphabet = {"a":0,"b":0,"c":0,"d":0,"e":0,"f":0,"g":0,"h":0,"i":0,"j":0,\ "k":0,"l":0,"m":0,"n":0,"o":0,"p":0,"q":0,"r":0,"s":0,"t":0,"u":0,"v":0,\ "w":0,"x":0,"y":0,"z":0} alphaFrecuency = {"a":0,"b":0,"c":0,"d":0,"e":0,"f":0,"g":0,"h":0,"i":0,"j":0,\ "k":0,"l":0,"m":0,"n":0,"o":0,"p":0,"q":...
2
0
0
0
0
2,535
0
0
223
68df7990d35767f18abfcd05bdabc6d7df863372
3,870
py
Python
tests/test_turn_time.py
TechnoJays/robot2020
549d7915e3ad892b975ccbee3835e57252486a47
[ "MIT" ]
null
null
null
tests/test_turn_time.py
TechnoJays/robot2020
549d7915e3ad892b975ccbee3835e57252486a47
[ "MIT" ]
null
null
null
tests/test_turn_time.py
TechnoJays/robot2020
549d7915e3ad892b975ccbee3835e57252486a47
[ "MIT" ]
null
null
null
""" hal_data['pwm'] looks like this: [{ 'zero_latch': False, 'initialized': False, 'raw_value': 0, 'value': 0, 'period_scale': None, 'type': None }, { 'zero_latch': True, 'initialized': True, 'raw_value': 1011, 'value': 0.0, 'period_scale': 0, 'type': 'talon' },...] """...
30.472441
116
0.686305
import pytest from commands.turn_time import TurnTime from subsystems.drivetrain import Drivetrain from util.stopwatch import Stopwatch """ hal_data['pwm'] looks like this: [{ 'zero_latch': False, 'initialized': False, 'raw_value': 0, 'value': 0, 'period_scale': None, 'type': None }, { 'ze...
0
1,878
0
0
0
1,271
0
48
341
d9ac700242e1e067b4dd2d6580f1233b425d67f3
117
py
Python
uniluganobot/__main__.py
ilredeitopi/uniluganobot
637469b6976703a0baa70b3592970e60f7412f09
[ "MIT" ]
null
null
null
uniluganobot/__main__.py
ilredeitopi/uniluganobot
637469b6976703a0baa70b3592970e60f7412f09
[ "MIT" ]
null
null
null
uniluganobot/__main__.py
ilredeitopi/uniluganobot
637469b6976703a0baa70b3592970e60f7412f09
[ "MIT" ]
null
null
null
from interfaces.telegram.usibot import UsiBot try: UsiBot.run() except KeyboardInterrupt: print('Quitting')
16.714286
45
0.752137
from interfaces.telegram.usibot import UsiBot try: UsiBot.run() except KeyboardInterrupt: print('Quitting')
0
0
0
0
0
0
0
0
0
6ff3b777ee1040d7414f79e2e72261871681b59b
16,765
py
Python
src/dosertools/file_handling/folder.py
rlearsch/dosertools
9cd3784dabdcea3f8c54e9e2236025755493e0fd
[ "MIT" ]
1
2022-03-10T18:37:31.000Z
2022-03-10T18:37:31.000Z
src/dosertools/file_handling/folder.py
rlearsch/dosertools
9cd3784dabdcea3f8c54e9e2236025755493e0fd
[ "MIT" ]
2
2022-03-07T22:36:23.000Z
2022-03-29T23:49:42.000Z
src/dosertools/file_handling/folder.py
rlearsch/dosertools
9cd3784dabdcea3f8c54e9e2236025755493e0fd
[ "MIT" ]
null
null
null
import os import typing import warnings import glob from . import tags as tags from ..data_processing import integration as integration def make_destination_folders(save_location: typing.Union[str, bytes, os.PathLike], optional_settings: dict = {}) -> typing.Tuple[bool,bool,bool]: """ Creates destination fold...
39.170561
178
0.668774
import os import typing import warnings import glob from . import tags as tags from ..data_processing import integration as integration def make_destination_folders(save_location: typing.Union[str, bytes, os.PathLike], optional_settings: dict = {}) -> typing.Tuple[bool,bool,bool]: """ Creates destination fold...
0
0
0
0
0
0
0
0
0
20b231fda4eb8c4b40b0b53b75e46757c4de87da
2,541
py
Python
KarmaBoi/cache.py
tylarb/KarmaBoi-PCF
f5f79ca26a87364343fd0d49b7049fe43245d520
[ "MIT" ]
null
null
null
KarmaBoi/cache.py
tylarb/KarmaBoi-PCF
f5f79ca26a87364343fd0d49b7049fe43245d520
[ "MIT" ]
2
2018-10-17T15:07:11.000Z
2018-10-19T20:44:33.000Z
KarmaBoi/cache.py
tylarb/KarmaBoi-PCF
f5f79ca26a87364343fd0d49b7049fe43245d520
[ "MIT" ]
1
2018-10-18T20:17:45.000Z
2018-10-18T20:17:45.000Z
''' Creates a cache with timekeeping in order to prevent vote spam Released under MIT license, copyright 2018 Tyler Ramer ''' import logging logger = logging.getLogger(__name__)
30.614458
79
0.589532
''' Creates a cache with timekeeping in order to prevent vote spam Released under MIT license, copyright 2018 Tyler Ramer ''' import logging import time logger = logging.getLogger(__name__) class TimedCache: """ Timed cache to reduce upvote/downvote spam. [user] cannot vote [target] before VOTE_DELAY s...
0
42
0
2,282
0
0
0
-10
45
b8cce52ce17313ed9bf64e4d131a0c82dd28fc45
540
py
Python
cli/utils/services/user.py
DopplerMarket/dvm
a42b261acc0dfe9a04b084636de2d50c1361b6af
[ "Apache-2.0" ]
null
null
null
cli/utils/services/user.py
DopplerMarket/dvm
a42b261acc0dfe9a04b084636de2d50c1361b6af
[ "Apache-2.0" ]
20
2017-11-27T08:27:49.000Z
2018-04-07T22:36:27.000Z
cli/utils/services/user.py
DopplerFoundation/dvm
a42b261acc0dfe9a04b084636de2d50c1361b6af
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import
24.545455
55
0.618519
from __future__ import absolute_import from cli.utils.services import * from cli.utils.models.user import User class UserService(BaseService): @classmethod def register(cls, name, email, password, wallet): request = Request( method = "post", endpoint = "/v1/users/create", data = { ...
0
370
0
10
0
0
0
28
94
bf34b49c7acc05ff60a6dd0ab31a6e248a569e32
3,114
py
Python
Analysis_Origine_Wine/linear_svc_sklearn.py
ShisatoYano/PythonPrograms
de1ff42bde6d6361ff5242b50ac8df676d62a125
[ "MIT" ]
null
null
null
Analysis_Origine_Wine/linear_svc_sklearn.py
ShisatoYano/PythonPrograms
de1ff42bde6d6361ff5242b50ac8df676d62a125
[ "MIT" ]
null
null
null
Analysis_Origine_Wine/linear_svc_sklearn.py
ShisatoYano/PythonPrograms
de1ff42bde6d6361ff5242b50ac8df676d62a125
[ "MIT" ]
1
2021-11-20T04:53:22.000Z
2021-11-20T04:53:22.000Z
# -*- coding: utf-8 -*- """ create model and predict label of origine wine using Linear SVC(SVM Classification) of Scikit Learn """ from sklearn.cross_validation import train_test_split from sklearn import preprocessing def normalize_split_data(data_frame, normalize_mode): '''Normalize and split sample data ...
40.973684
137
0.726076
# -*- coding: utf-8 -*- """ create model and predict label of origine wine using Linear SVC(SVM Classification) of Scikit Learn """ import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.svm import LinearSVC from sklearn.cross_validation import train_test_split from sklearn import preproc...
0
0
0
0
0
1,091
0
55
134
bf058301df610720aa61687e9141240cb8420399
21,408
py
Python
warp3d2exii/feconv/readers.py
maranGit/warp3d
59dc665146c7cd40a9b604a1267178bfe2b1c147
[ "NCSA" ]
null
null
null
warp3d2exii/feconv/readers.py
maranGit/warp3d
59dc665146c7cd40a9b604a1267178bfe2b1c147
[ "NCSA" ]
null
null
null
warp3d2exii/feconv/readers.py
maranGit/warp3d
59dc665146c7cd40a9b604a1267178bfe2b1c147
[ "NCSA" ]
null
null
null
# Print progress every wo packets of patran neutral file wo = 1000 # Primary reader methods are: # node_iterator: returns (in file order) the coordinates of each node # elem_iterator: returns (in file order) the connectivities and type of each # element
26.660025
92
0.654568
import collections import itertools import os.path import numpy as np import scipy as sp import scipy.io as sio from patran import * # Print progress every wo packets of patran neutral file wo = 1000 # Primary reader methods are: # node_iterator: returns (in file order) the coordinates of each node # elem_iterator:...
0
1,005
0
19,894
0
0
0
-21
271
f94404935481cf6af02612dba39e7a4089f43a6f
968
py
Python
Lyft-Dental/virtual_dental_clinc/vdc/doc_patient/migrations/0027_auto_20200604_0651.py
Abhik1998/Lyft-sample_project
3f9a79fb86c7abee713ae37245f5e7971be09139
[ "MIT" ]
1
2021-01-09T08:42:24.000Z
2021-01-09T08:42:24.000Z
Lyft-Dental/virtual_dental_clinc/vdc/doc_patient/migrations/0027_auto_20200604_0651.py
Abhik1998/Lyft-sample_project
3f9a79fb86c7abee713ae37245f5e7971be09139
[ "MIT" ]
null
null
null
Lyft-Dental/virtual_dental_clinc/vdc/doc_patient/migrations/0027_auto_20200604_0651.py
Abhik1998/Lyft-sample_project
3f9a79fb86c7abee713ae37245f5e7971be09139
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-06-04 06:51
30.25
133
0.633264
# Generated by Django 3.0.4 on 2020-06-04 06:51 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('doc_patient', '0026_noti...
0
0
0
788
0
0
0
41
90
92b8ace727f859c8e2019b31b78e361a40a58e7a
5,199
py
Python
testing/get_attach_list.py
CESNET/GRIP
1892b28fb437d806a9d2a006639201752cb3db2a
[ "BSD-3-Clause" ]
null
null
null
testing/get_attach_list.py
CESNET/GRIP
1892b28fb437d806a9d2a006639201752cb3db2a
[ "BSD-3-Clause" ]
null
null
null
testing/get_attach_list.py
CESNET/GRIP
1892b28fb437d806a9d2a006639201752cb3db2a
[ "BSD-3-Clause" ]
null
null
null
import ast import json import operator import settings true = True ################################################################################################## ################################################################################################## file_write = open(settings.PWD + 'count_of_attach...
41.927419
129
0.52664
import ast import datetime import json import operator import settings true = True ################################################################################################## ################################################################################################## file_write = open(settings.PWD + ...
0
0
0
0
0
0
0
-6
22
60f3a935158b7de6adc5ad2223934d4e26434df3
12,838
py
Python
mmtbx/validation/utils.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/validation/utils.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/validation/utils.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
1
2020-02-04T15:39:06.000Z
2020-02-04T15:39:06.000Z
from __future__ import absolute_import, division, print_function import math from six.moves import range def export_ramachandran_distribution(n_dim_table, scale_factor=0.25): """ Convert a MolProbity Ramachandran distribution to a format suitable for display using matplotlib (see wxtbx.plots). """ import nu...
34.234667
80
0.624474
from __future__ import absolute_import, division, print_function from libtbx import easy_pickle from libtbx import group_args from libtbx.utils import Sorry from collections import defaultdict import os.path import math import sys from six.moves import range def export_ramachandran_distribution(n_dim_table, scale_fac...
0
0
0
0
0
10,366
0
22
361
49d4920837e533b93c58167168d8ebcf3a356e6b
625
py
Python
ashbee/helpers.py
sunhoww/ashbee
65e863bb3336fe450a7c7d0e26e0243ecc632601
[ "MIT" ]
null
null
null
ashbee/helpers.py
sunhoww/ashbee
65e863bb3336fe450a7c7d0e26e0243ecc632601
[ "MIT" ]
null
null
null
ashbee/helpers.py
sunhoww/ashbee
65e863bb3336fe450a7c7d0e26e0243ecc632601
[ "MIT" ]
null
null
null
from frappe import _ def new_column(label, fieldname, fieldtype, width, options=None): """ Create a report column :param label: :param fieldname: :param fieldtype: :param width: :param options: :return: """ column = {"label": _(label), "fieldname": fieldname, "fieldtype": field...
22.321429
96
0.616
from frappe import _ def new_column(label, fieldname, fieldtype, width, options=None): """ Create a report column :param label: :param fieldname: :param fieldtype: :param width: :param options: :return: """ column = {"label": _(label), "fieldname": fieldname, "fieldtype": field...
0
0
0
0
0
161
0
0
23
845cfe45c89ee653abde9b3907d967ca12ce67f4
1,324
py
Python
read_pickled_files.py
DimitraSt/Neural_Machine_Translation
cbb4bfa1eb400d664d1bfb3e5c99fad1d26d6952
[ "MIT" ]
null
null
null
read_pickled_files.py
DimitraSt/Neural_Machine_Translation
cbb4bfa1eb400d664d1bfb3e5c99fad1d26d6952
[ "MIT" ]
null
null
null
read_pickled_files.py
DimitraSt/Neural_Machine_Translation
cbb4bfa1eb400d664d1bfb3e5c99fad1d26d6952
[ "MIT" ]
null
null
null
import argparse def get_args(): """ Defines training-specific hyper-parameters. """ parser = argparse.ArgumentParser('Sequence to Sequence Model') parser.add_argument('--cuda', default=False, help='Use a GPU') # Add data arguments parser.add_argument('--data', default='prepared_data', help='path to data directory...
33.948718
100
0.76435
import pickle import os import argparse import pandas as pd import seaborn as sns import matplotlib as mpl import matplotlib.pyplot as plt import torch from torch.serialization import default_restore_location from seq2seq import models, utils from seq2seq.data.dictionary import Dictionary from seq2seq.data.dataset im...
0
0
0
0
0
393
0
133
311
7927deb059ba9ae683348a0de90c0e0afbb023f6
484
py
Python
riemann_approximator.py
NicoEssi/Scientific_Python
78315b4fade592ed40f61e57498d26337675be9d
[ "MIT" ]
null
null
null
riemann_approximator.py
NicoEssi/Scientific_Python
78315b4fade592ed40f61e57498d26337675be9d
[ "MIT" ]
null
null
null
riemann_approximator.py
NicoEssi/Scientific_Python
78315b4fade592ed40f61e57498d26337675be9d
[ "MIT" ]
null
null
null
print(riemann(sqrd, 1, 9, 1000)) print(riemann(tripsqrd, 3, 6, 10000)) print(riemann(weirdf, 2, 7, 100000))
13.828571
39
0.479339
def riemann(f, a, b, n): if (a < b) == False: print("a < b is not satisfied") return s = 0 leng = b - a step = leng/n i = a while i <= b: s += f(i)*step i += step return s def sqrd(x): return x*x def tripsqrd(x): return x*x*x d...
0
0
0
0
0
278
0
0
91
92e86b6e93f9e0432917eaa6b976f4c1d573139d
8,121
py
Python
ribopy/merge.py
himanshur-dev/ribopy
78846e4140a7aa7b4dc995f39606577efaaf0831
[ "MIT" ]
4
2020-01-14T01:01:36.000Z
2022-03-21T16:30:24.000Z
ribopy/merge.py
himanshur-dev/ribopy
78846e4140a7aa7b4dc995f39606577efaaf0831
[ "MIT" ]
9
2019-12-17T20:45:08.000Z
2021-12-15T22:34:06.000Z
ribopy/merge.py
himanshur-dev/ribopy
78846e4140a7aa7b4dc995f39606577efaaf0831
[ "MIT" ]
3
2019-12-14T17:51:53.000Z
2022-01-12T16:09:45.000Z
# -*- coding: utf-8 -*- import time import h5py import yaml ########################################################## ##################################################################### #### C O M P A T I B I L I T Y F U N C T I O N S ##################################################################### de...
32.484
78
0.625169
# -*- coding: utf-8 -*- from collections import OrderedDict import time import h5py import pandas as pd import numpy as np import yaml from .settings import * from .core.get_gadgets import * from .core.metagene import * from ._version import __format_version__, __version__ ###########################################...
0
0
0
0
0
305
0
60
178