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
299b966824b5085d6b7928fd3418271c42c97f65
1,529
py
Python
pyproct/postprocess/postprocessingDriver.py
victor-gil-sepulveda/pyProCT
2777c73efb48d5ca6543c69a31719421c4d54694
[ "MIT" ]
10
2015-03-07T09:00:06.000Z
2019-01-25T15:00:59.000Z
pyproct/postprocess/postprocessingDriver.py
victor-gil-sepulveda/pyProCT
2777c73efb48d5ca6543c69a31719421c4d54694
[ "MIT" ]
6
2015-01-08T11:17:14.000Z
2018-10-08T15:17:32.000Z
pyproct/postprocess/postprocessingDriver.py
victor-gil-sepulveda/pyProCT
2777c73efb48d5ca6543c69a31719421c4d54694
[ "MIT" ]
11
2015-03-02T11:13:24.000Z
2022-02-22T16:21:56.000Z
""" Created on 16/07/2014 @author: victor """
47.78125
144
0.502289
""" Created on 16/07/2014 @author: victor """ import traceback from pyproct.tools.plugins import PluginHandler class PostprocessingDriver(object): def __init__(self): pass def run(self, clustering, postprocessing_parameters, data_handler, workspace_handler, matrix_handler, generated_files): ...
0
0
0
1,394
0
0
0
21
68
07de41066643b6fe935e88041c3268b9ccf9103e
14,918
py
Python
rcnn/lib/python3.6/site-packages/tensorflow/contrib/tensorboard/plugins/trace/trace_info_pb2.py
dreamingweaver/making_passportImage
68f23411780ff82abe934dfae5fc04acb80f2c49
[ "MIT" ]
1
2019-01-12T13:17:32.000Z
2019-01-12T13:17:32.000Z
rcnn/lib/python3.6/site-packages/tensorflow/contrib/tensorboard/plugins/trace/trace_info_pb2.py
dreamingweaver/making_passportImage
68f23411780ff82abe934dfae5fc04acb80f2c49
[ "MIT" ]
null
null
null
rcnn/lib/python3.6/site-packages/tensorflow/contrib/tensorboard/plugins/trace/trace_info_pb2.py
dreamingweaver/making_passportImage
68f23411780ff82abe934dfae5fc04acb80f2c49
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow/contrib/tensorboard/plugins/trace/trace_info.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message ...
41.096419
1,307
0.754324
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow/contrib/tensorboard/plugins/trace/trace_info.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message ...
0
0
0
0
0
0
0
0
0
3ac2db0dcc5147bc0f16993d7b54a84ec979d8ad
7,717
py
Python
tests/test_resources.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
null
null
null
tests/test_resources.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
null
null
null
tests/test_resources.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Python 2 and 3 from __future__ import unicode_literals
31.497959
81
0.595957
# -*- coding: utf-8 -*- # Python 2 and 3 from __future__ import unicode_literals import datetime import sys from unittest import TestCase from mock import patch from gapipy.client import Client from gapipy.query import Query from gapipy.models import DATE_FORMAT, AccommodationRoom from gapipy.resources import ( ...
0
2,698
0
4,362
0
0
0
206
365
15c1a781740aaec1e5ada344928c8df50506a3a2
185
py
Python
exxer/make/windows/windows.py
prismaB/xfeezer
b738b4f51cddf5b54a0783fc617a6300a924e6aa
[ "Unlicense" ]
3
2021-10-01T20:56:52.000Z
2021-10-01T21:00:20.000Z
exxer/make/windows/windows.py
prismaB/xfeezer
b738b4f51cddf5b54a0783fc617a6300a924e6aa
[ "Unlicense" ]
null
null
null
exxer/make/windows/windows.py
prismaB/xfeezer
b738b4f51cddf5b54a0783fc617a6300a924e6aa
[ "Unlicense" ]
null
null
null
import sys if __name__ == '__main__': try: uppermethod().cmdloop() except KeyboardInterrupt: sys.exit()
20.555556
31
0.643243
import cmd import sys class uppermethod(cmd.Cmd): print("usage") if __name__ == '__main__': try: uppermethod().cmdloop() except KeyboardInterrupt: sys.exit()
0
0
0
25
0
0
0
-11
44
34b8376f732b740c151e600ee84e77753c29e9a0
7,633
py
Python
benchmark.py
xywms/covert-channel
a784356a2a5bc9cce98b11ab6e80700f06aca867
[ "MIT" ]
5
2020-07-22T21:55:05.000Z
2021-12-24T12:20:05.000Z
benchmark.py
xywms/covert-channel
a784356a2a5bc9cce98b11ab6e80700f06aca867
[ "MIT" ]
1
2020-06-02T06:20:07.000Z
2020-06-02T17:55:20.000Z
benchmark.py
xywms/covert-channel
a784356a2a5bc9cce98b11ab6e80700f06aca867
[ "MIT" ]
3
2019-06-19T11:56:33.000Z
2021-09-29T19:51:07.000Z
#! /usr/bin/env /usr/bin/python3 import os if __name__ == '__main__': data = map( lambda s: {"interval":s[0], "primeTime":s[1], "accessTime":s[2]}, [# interval, primeTime, accessTime (2000000, 800000, 800000), (1000000, 400000, 400000) ][0:2]) base_dir = os.path.dirn...
36.521531
80
0.49024
#! /usr/bin/env /usr/bin/python3 import subprocess from time import sleep import shutil import os import numpy import json class channel_benchmark(): def __init__(self, tests, runsPerTest=10, timeBetweenRuns=1, senderCore=0, readerCore=2, channelArgs=["interval", "primeTime", "ac...
0
0
0
6,422
0
0
0
-30
134
5416073e44e30d15bb3a4e10a03592fb3c66612f
2,542
py
Python
corpus_generation_scripts/create_mc4.py
NbAiLab/notram
0c90d6b28008df514c4ac847e4c9d68f4709a181
[ "Apache-2.0" ]
7
2021-12-22T14:36:33.000Z
2022-03-16T09:34:05.000Z
corpus_generation_scripts/create_mc4.py
NbAiLab/notram
0c90d6b28008df514c4ac847e4c9d68f4709a181
[ "Apache-2.0" ]
1
2021-12-30T08:54:52.000Z
2021-12-30T10:35:07.000Z
corpus_generation_scripts/create_mc4.py
NbAiLab/notram
0c90d6b28008df514c4ac847e4c9d68f4709a181
[ "Apache-2.0" ]
1
2021-12-30T09:58:12.000Z
2021-12-30T09:58:12.000Z
#!/opt/anaconda3/bin/python if __name__ == "__main__": args = parse_args() main(args)
34.821918
146
0.564123
#!/opt/anaconda3/bin/python import requests import ftfy import glob import argparse import os import jsonlines from tqdm import tqdm from datetime import datetime from slugify import slugify import json def main(args): # Create the new file. Overwrite if it exits f = open(args.output_file, "w+") f.close()...
0
0
0
0
0
2,223
0
-45
267
d94a22679c1f16ecb7b70e1c503b89db6702fedf
1,187
py
Python
src/model/config.py
tengyu-liu/Part-GPNN
d2092917edeee835fc1888101dddf42ad76ec5e5
[ "MIT" ]
null
null
null
src/model/config.py
tengyu-liu/Part-GPNN
d2092917edeee835fc1888101dddf42ad76ec5e5
[ "MIT" ]
null
null
null
src/model/config.py
tengyu-liu/Part-GPNN
d2092917edeee835fc1888101dddf42ad76ec5e5
[ "MIT" ]
null
null
null
import tensorflow as tf tf.flags.DEFINE_string('name', 'exp', '') tf.flags.DEFINE_integer('restore_epoch', -1, '') tf.flags.DEFINE_integer('n_jobs', 16, '') tf.flags.DEFINE_integer('epochs', 100, '') tf.flags.DEFINE_integer('batch_size', 1, '') tf.flags.DEFINE_integer('node_num', 517, '') # 517 for global max, 43...
35.969697
138
0.713564
import tensorflow as tf tf.flags.DEFINE_string('name', 'exp', '') tf.flags.DEFINE_integer('restore_epoch', -1, '') tf.flags.DEFINE_integer('n_jobs', 16, '') tf.flags.DEFINE_integer('epochs', 100, '') tf.flags.DEFINE_integer('batch_size', 1, '') tf.flags.DEFINE_integer('node_num', 517, '') # 517 for global max, 43...
0
0
0
0
0
0
0
0
0
11748d8037b9e995ffbeaa663293fa38434121ba
1,657
py
Python
brent_search/_optimize.py
Horta/brent-search
2bb5d0fba23ef039a44a6382313f5c13c2adcce0
[ "MIT" ]
null
null
null
brent_search/_optimize.py
Horta/brent-search
2bb5d0fba23ef039a44a6382313f5c13c2adcce0
[ "MIT" ]
null
null
null
brent_search/_optimize.py
Horta/brent-search
2bb5d0fba23ef039a44a6382313f5c13c2adcce0
[ "MIT" ]
null
null
null
from __future__ import division from ._bracket import bracket from ._brent import brent inf = float("inf") _eps = 1.4902e-08 def minimize( f, x0=None, x1=None, a=-inf, b=+inf, gfactor=2, rtol=_eps, atol=_eps, maxiter=500 ): r"""Function minimization. Applies :func:`brent_search.bracket` to find a brac...
23.338028
85
0.576946
from __future__ import division from ._bracket import bracket from ._brent import brent inf = float("inf") _eps = 1.4902e-08 def minimize( f, x0=None, x1=None, a=-inf, b=+inf, gfactor=2, rtol=_eps, atol=_eps, maxiter=500 ): r"""Function minimization. Applies :func:`brent_search.bracket` to find a brac...
0
0
0
0
0
34
0
0
27
731b9804dc0b671dfcea4107f6527a61a5ca8944
1,375
py
Python
functions/opencast-op-counts.py
harvard-dce/zoom-ingester
ef5c8910e35e84d33f1c612cfb4643309c52040d
[ "Apache-2.0" ]
18
2018-02-05T20:03:30.000Z
2022-01-19T00:58:00.000Z
functions/opencast-op-counts.py
harvard-dce/zoom-ingester
ef5c8910e35e84d33f1c612cfb4643309c52040d
[ "Apache-2.0" ]
31
2018-01-19T14:21:03.000Z
2021-09-07T02:04:40.000Z
functions/opencast-op-counts.py
harvard-dce/zoom-ingester
ef5c8910e35e84d33f1c612cfb4643309c52040d
[ "Apache-2.0" ]
5
2019-12-04T17:44:10.000Z
2021-02-23T03:14:24.000Z
from os import getenv as env import logging logger = logging.getLogger() OPENCAST_DB_URL = env("OPENCAST_DB_URL") OPENCAST_RUNNING_JOB_STATUS = 2
23.706897
78
0.608
import mysql.connector from os import getenv as env import urllib.parse as urlparse import logging from utils import setup_logging logger = logging.getLogger() OPENCAST_DB_URL = env("OPENCAST_DB_URL") OPENCAST_RUNNING_JOB_STATUS = 2 def parse_db_url(): db_url = urlparse.urlparse(OPENCAST_DB_URL) return { ...
0
857
0
0
0
234
0
21
112
b37752114338274ff1dc744bbb12cf6cd3508244
815
py
Python
pandas.py
AkanAhmet/Python-calismalarim
756c251cbec24f76c2c2b756f05cbf1f8ee3ded8
[ "MIT" ]
null
null
null
pandas.py
AkanAhmet/Python-calismalarim
756c251cbec24f76c2c2b756f05cbf1f8ee3ded8
[ "MIT" ]
null
null
null
pandas.py
AkanAhmet/Python-calismalarim
756c251cbec24f76c2c2b756f05cbf1f8ee3ded8
[ "MIT" ]
null
null
null
import pandas as pd data = { 'ages': [14, 18, 24, 42], 'heights': [165, 180, 176, 184] } print(data) df = pd.DataFrame(data, index=['ahmet',"akan","burak","duman"]) print(df) print(df.loc["ahmet"]) print() print(df.iloc[0]) print("------------------ READING DATA FROM CSV------------------------------") df2 =...
27.166667
79
0.625767
import pandas as pd data = { 'ages': [14, 18, 24, 42], 'heights': [165, 180, 176, 184] } print(data) df = pd.DataFrame(data, index=['ahmet',"akan","burak","duman"]) print(df) print(df.loc["ahmet"]) print() print(df.iloc[0]) print("------------------ READING DATA FROM CSV------------------------------") df2 =...
10
0
0
0
0
0
0
0
0
738995891de22e982744048dedd7cc80164cfc59
8,663
py
Python
src/model_tuning.py
miyer26/airbnb_popularity_prediction
a88ba6b803cca35dba1948ed400754bd47f270df
[ "MIT" ]
null
null
null
src/model_tuning.py
miyer26/airbnb_popularity_prediction
a88ba6b803cca35dba1948ed400754bd47f270df
[ "MIT" ]
null
null
null
src/model_tuning.py
miyer26/airbnb_popularity_prediction
a88ba6b803cca35dba1948ed400754bd47f270df
[ "MIT" ]
null
null
null
# author: Mukund Iyer # date: 12/29/21 """ This script will carry out cross-validation and hyperparameter optimization for different models of the data. Usage: model_tuning.py --processed_data_path=<processed_data_path> --results_folder_path=<results_path> Options: --processed_data_path=<processed_data_path> The...
26.820433
104
0.672515
# author: Mukund Iyer # date: 12/29/21 """ This script will carry out cross-validation and hyperparameter optimization for different models of the data. Usage: model_tuning.py --processed_data_path=<processed_data_path> --results_folder_path=<results_path> Options: --processed_data_path=<processed_data_path> The...
0
0
0
0
0
5,968
0
358
645
2e9589ad7a4b08998031a20b182efefaed40afc2
1,225
py
Python
MarketData/createMKinit.py
yirencaifu/pyWindMongoDB
df1bf3d0bfe6872a5d18fa2f72beccafd7c93b73
[ "MIT" ]
null
null
null
MarketData/createMKinit.py
yirencaifu/pyWindMongoDB
df1bf3d0bfe6872a5d18fa2f72beccafd7c93b73
[ "MIT" ]
null
null
null
MarketData/createMKinit.py
yirencaifu/pyWindMongoDB
df1bf3d0bfe6872a5d18fa2f72beccafd7c93b73
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Nov 18 22:56:28 2014 @author: space_000 """ from scipy.io import loadmat import numpy as np import pymongo as mg client=mg.MongoClient() db=client['MKD'] colMKInit=db['marketInit'] #%% Create market trading days d=loadmat('E:\\Code Laboratory\\MFpy\\MongoPy\\MarketData\\wtda...
27.840909
67
0.668571
# -*- coding: utf-8 -*- """ Created on Tue Nov 18 22:56:28 2014 @author: space_000 """ from scipy.io import loadmat import numpy as np import pymongo as mg client=mg.MongoClient() db=client['MKD'] colMKInit=db['marketInit'] #%% Create market trading days d=loadmat('E:\\Code Laboratory\\MFpy\\MongoPy\\MarketData\\wtda...
114
0
0
0
0
0
0
0
0
589c5749c65b9b6c9c1bc5f5d95c1df37e2f3b11
7,410
py
Python
src/crosswalk/post_analysis.py
jiaweih/CrossWalk
434664ce72cd8ccdf80ced89c8fb109cc0e4417f
[ "MIT" ]
1
2020-06-25T21:51:20.000Z
2020-06-25T21:51:20.000Z
src/crosswalk/post_analysis.py
jiaweih/CrossWalk
434664ce72cd8ccdf80ced89c8fb109cc0e4417f
[ "MIT" ]
null
null
null
src/crosswalk/post_analysis.py
jiaweih/CrossWalk
434664ce72cd8ccdf80ced89c8fb109cc0e4417f
[ "MIT" ]
2
2020-06-16T23:35:05.000Z
2020-06-25T21:51:22.000Z
""" Post analysis module """
38.195876
97
0.591363
""" Post analysis module """ from typing import Tuple import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.stats import norm from crosswalk import CWData, CWModel from crosswalk.scorelator import Scorelator class PostAnalysis: def __init__(self, model: CWModel, ...
0
68
0
6,965
0
93
0
53
200
f2bb825ca0685923f95a3c6d3dec8d4a1e69e28d
671
py
Python
jmetal/operator/__init__.py
LuckysonKhaidem/ProjectAlpha
e4b4779a8968a83f1e8add3490a4d2c4ad145d55
[ "MIT" ]
1
2020-05-26T18:57:31.000Z
2020-05-26T18:57:31.000Z
jmetal/operator/__init__.py
LuckysonKhaidem/ProjectAlpha
e4b4779a8968a83f1e8add3490a4d2c4ad145d55
[ "MIT" ]
null
null
null
jmetal/operator/__init__.py
LuckysonKhaidem/ProjectAlpha
e4b4779a8968a83f1e8add3490a4d2c4ad145d55
[ "MIT" ]
2
2019-01-08T11:52:52.000Z
2020-05-25T13:21:26.000Z
from .crossover import NullCrossover, SBX, SP from .mutation import NullMutation, BitFlip, Polynomial, IntegerPolynomial, Uniform, SimpleRandom from .selection import BestSolutionSelection, BinaryTournamentSelection, BinaryTournament2Selection, RandomSolutionSelection, NaryRandomSolutionSelection, RankingAndCrowdingDis...
55.916667
114
0.80924
from .crossover import NullCrossover, SBX, SP from .mutation import NullMutation, BitFlip, Polynomial, IntegerPolynomial, Uniform, SimpleRandom from .selection import BestSolutionSelection, BinaryTournamentSelection, BinaryTournament2Selection, \ RandomSolutionSelection, NaryRandomSolutionSelection, RankingAndCrowd...
0
0
0
0
0
0
0
6
0
3244a61f064844e94077efbb1d30f17b660fb773
6,670
py
Python
nanoscint/maintext/Figure2/expt_design_analysis.py
charlesrc/nanoscint
092de9706e280661d30540b5f5da7e61feaae42d
[ "MIT" ]
1
2022-03-18T02:11:54.000Z
2022-03-18T02:11:54.000Z
nanoscint/maintext/Figure2/expt_design_analysis.py
charlesrc/nanoscint
092de9706e280661d30540b5f5da7e61feaae42d
[ "MIT" ]
1
2022-01-23T20:58:55.000Z
2022-01-23T20:58:55.000Z
nanoscint/maintext/Figure2/expt_design_analysis.py
charlesrc/nanoscint
092de9706e280661d30540b5f5da7e61feaae42d
[ "MIT" ]
1
2022-03-18T02:20:18.000Z
2022-03-18T02:20:18.000Z
# Packages import numpy as np import sys sys.path.append('../') import filters # Filters function used for topology optimization import grcwa # Python RCWA Library. See downloading instructions at https://github.com/weiliangjinca/grcwa args = {} params = {} ## Define variables args['nG'] = 51 # Always check conver...
45.684932
221
0.656672
# Packages import numpy as np import sys sys.path.append('../') import filters # Filters function used for topology optimization import grcwa # Python RCWA Library. See downloading instructions at https://github.com/weiliangjinca/grcwa args = {} params = {} ## Define variables args['nG'] = 51 # Always check conver...
0
0
0
0
0
0
0
0
0
e671d8f1b6548dc26e750eaed5e53367641f285b
2,323
py
Python
tensor2tensor/rl/envs/in_graph_batch_env.py
sivaramakrishna7/tensor2tensor
eb0118d3f459913133e3d68a96944480a928bff1
[ "Apache-2.0" ]
null
null
null
tensor2tensor/rl/envs/in_graph_batch_env.py
sivaramakrishna7/tensor2tensor
eb0118d3f459913133e3d68a96944480a928bff1
[ "Apache-2.0" ]
null
null
null
tensor2tensor/rl/envs/in_graph_batch_env.py
sivaramakrishna7/tensor2tensor
eb0118d3f459913133e3d68a96944480a928bff1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
28.679012
85
0.723633
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
0
95
0
1,282
0
0
0
0
23
8686a1b2f79b4cd50562d5c16c25d640fc3bd1bc
9,978
py
Python
sqlhild/relational_algebra.py
willemt/sqlhild
13815095cc38b0b72479891640a8b385d8db46d5
[ "BSD-3-Clause" ]
null
null
null
sqlhild/relational_algebra.py
willemt/sqlhild
13815095cc38b0b72479891640a8b385d8db46d5
[ "BSD-3-Clause" ]
null
null
null
sqlhild/relational_algebra.py
willemt/sqlhild
13815095cc38b0b72479891640a8b385d8db46d5
[ "BSD-3-Clause" ]
null
null
null
"""Relational algebra operators. Used to represent a query plan before it is converted into a series of iterators. References: * https://www.cs.rochester.edu/~nelson/courses/csc_173/relations/algebra.html * http://www.databasteknik.se/webbkursen/relalg-lecture/ * https://en.wikipedia.org/wiki/Relational_a...
20.658385
112
0.589597
"""Relational algebra operators. Used to represent a query plan before it is converted into a series of iterators. References: * https://www.cs.rochester.edu/~nelson/courses/csc_173/relations/algebra.html * http://www.databasteknik.se/webbkursen/relalg-lecture/ * https://en.wikipedia.org/wiki/Relational_a...
42
250
0
5,963
0
1,805
0
15
1,286
a7e532bdb223b9d4bb0b9de5bac123e5d588d5d3
7,366
py
Python
scripts/PLPCOPallet.py
agrc/roads.utah.gov
b2187b90501709d908ad2a21694e18a76c6cf979
[ "MIT" ]
2
2017-05-26T15:08:22.000Z
2019-11-25T07:20:02.000Z
scripts/PLPCOPallet.py
agrc/roads.utah.gov
b2187b90501709d908ad2a21694e18a76c6cf979
[ "MIT" ]
40
2016-10-19T16:16:09.000Z
2020-06-01T15:54:17.000Z
scripts/PLPCOPallet.py
agrc/roads.utah.gov
b2187b90501709d908ad2a21694e18a76c6cf979
[ "MIT" ]
null
null
null
''' PLPCOPallet.py Pulls fresh data from PLPCO SDE database for dissolved roads and photos. Creates optimized data for sherlock widget by combining Class B & D dissolved data into a single feature class for each county. ''' counties = ['Beaver', 'BoxElder', 'Carbon', 'Daggett', ...
40.472527
152
0.613494
''' PLPCOPallet.py Pulls fresh data from PLPCO SDE database for dissolved roads and photos. Creates optimized data for sherlock widget by combining Class B & D dissolved data into a single feature class for each county. ''' from os.path import basename, join import arcpy from forklift.models import Pallet counties ...
0
0
0
6,219
0
0
0
17
160
f8633a9e20218193ccdb070fbcf1b2fde11d208f
739
py
Python
modules/pyPCloud/uploadtransfer.py
licface-django/licshop
ad15782fd32a970b6c0818b91f652197422a8c2a
[ "Apache-2.0" ]
null
null
null
modules/pyPCloud/uploadtransfer.py
licface-django/licshop
ad15782fd32a970b6c0818b91f652197422a8c2a
[ "Apache-2.0" ]
null
null
null
modules/pyPCloud/uploadtransfer.py
licface-django/licshop
ad15782fd32a970b6c0818b91f652197422a8c2a
[ "Apache-2.0" ]
null
null
null
from pcloud import pcloud import cmdw if __name__ == '__main__': p = uploadtransfer() sendermail = "todut001@gmail.com" receivermails = "cumulus13@gmail.com" print p.uploadtransfer(sendermail, receivermails)
32.130435
89
0.633288
from pcloud import pcloud import cmdw class uploadtransfer(pcloud): def __init__(self): pcloud.__init__(self) def uploadtransfer(self, sendermail, receivermails): url = self.MASTER_URL + "uploadtransfer" login = self.login() print "login =", login auth = login.g...
0
0
0
488
0
0
0
0
23
256ce9809f0dc1a180e4dfcc3ec0d24529bfebfb
5,717
py
Python
sickbeard/sickbeard/ui.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
sickbeard/sickbeard/ui.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
sickbeard/sickbeard/ui.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of t...
31.585635
136
0.615882
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of t...
0
560
0
4,069
0
0
0
-17
224
c7cde0f2da71d10b8d205343976ae4c679c36658
1,622
py
Python
coevolution_transformer/model/model.py
microsoft/Protein-Folding
f534b2dd1e3f192fbcdadf234f25828c7f458a58
[ "MIT" ]
1
2021-11-12T03:00:28.000Z
2021-11-12T03:00:28.000Z
coevolution_transformer/model/model.py
microsoft/Protein-Folding
f534b2dd1e3f192fbcdadf234f25828c7f458a58
[ "MIT" ]
1
2022-01-11T17:09:26.000Z
2022-01-11T17:09:26.000Z
coevolution_transformer/model/model.py
microsoft/Protein-Folding
f534b2dd1e3f192fbcdadf234f25828c7f458a58
[ "MIT" ]
2
2021-11-10T11:42:11.000Z
2021-12-09T05:37:09.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License.
31.803922
87
0.590629
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import math import torch from torch import nn import torch.nn.functional as F from tqdm import tqdm from .base_model import BaseModel from .msa_embeddings import MSAEmbeddings from .attention import ZBlock, YBlock, YAggregator, ZRefiner from .di...
0
0
0
1,236
0
0
0
89
223
1ca79f15b75eb499cd0192cc0e74117bac196a06
5,847
py
Python
sudoku-generator.py
shashankaryan/sudoku-generator
3d71c6f1e75bc924c41a5e1e8a15f03584267a02
[ "MIT" ]
null
null
null
sudoku-generator.py
shashankaryan/sudoku-generator
3d71c6f1e75bc924c41a5e1e8a15f03584267a02
[ "MIT" ]
null
null
null
sudoku-generator.py
shashankaryan/sudoku-generator
3d71c6f1e75bc924c41a5e1e8a15f03584267a02
[ "MIT" ]
null
null
null
import multiprocessing from colorama import init if __name__ == "__main__": import argparse parser = argparse.ArgumentParser(description='It takes number as optional argument.') parser.add_argument('-c',dest='concurrent', action="store_true", help='For implementing concurrency') parser.add_argumen...
34.597633
149
0.564905
import numpy as np import math import random import os import multiprocessing from colorama import init, Fore, Back, Style class SudokuGenerator(object) : """ Generate unique sudoku solutions everytime for n*n grids. """ def __init__(self, num): self.num = num def generate_grid(self): "...
0
0
0
4,804
0
0
0
-25
161
8a6e7b9e492b04a0f36ecd796105443fa94814fe
7,394
py
Python
database/scripts/populate.py
AlessandroZanatta/DatabaseProject
891143899c7f037213ba6142e16552efe92428a1
[ "MIT" ]
null
null
null
database/scripts/populate.py
AlessandroZanatta/DatabaseProject
891143899c7f037213ba6142e16552efe92428a1
[ "MIT" ]
null
null
null
database/scripts/populate.py
AlessandroZanatta/DatabaseProject
891143899c7f037213ba6142e16552efe92428a1
[ "MIT" ]
1
2021-04-15T12:48:39.000Z
2021-04-15T12:48:39.000Z
#!/usr/bin/env python # Imports import os import random from helpers import InsertQuery from faker import Faker # Quantity N_DRIVERS = 75 N_AUTOBUS = 100 N_CUSTOMERS = 7500 N_SUBSCRIPTIONS = 100000 N_RIDES = 450 * 365 N_LINES = 15 N_SERVED = 90 N_STOPS = 225 N_USED = 12000 # Fixed seed random.seed(0) Faker.seed(0) ...
31.598291
132
0.588044
#!/usr/bin/env python # Imports import os import random from helpers import InsertQuery from faker import Faker # Quantity N_DRIVERS = 75 N_AUTOBUS = 100 N_CUSTOMERS = 7500 N_SUBSCRIPTIONS = 100000 N_RIDES = 450 * 365 N_LINES = 15 N_SERVED = 90 N_STOPS = 225 N_USED = 12000 # Fixed seed random.seed(0) Faker.seed(0) ...
0
0
0
0
0
0
0
0
0
37f0e8ff632bd828cfa0d1e23f45a130d05855ad
8,959
py
Python
vendors/rez-2.23.1-py2.7/rez/tests/test_config.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
4
2019-01-11T03:41:28.000Z
2019-09-12T06:57:17.000Z
vendors/rez-2.23.1-py2.7/rez/tests/test_config.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
null
null
null
vendors/rez-2.23.1-py2.7/rez/tests/test_config.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
2
2019-01-10T05:00:18.000Z
2020-02-15T16:32:56.000Z
""" test configuration settings """ import rez.vendor.unittest2 as unittest import os if __name__ == '__main__': unittest.main() # Copyright 2013-2016 Allan Johns. # # This library is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as publish...
36.125
83
0.629758
""" test configuration settings """ import rez.vendor.unittest2 as unittest from rez.tests.util import TestBase from rez.exceptions import ConfigurationError from rez.config import Config, get_module_root_config, _replace_config from rez.system import system from rez.utils.data_utils import RO_AttrDictWrapper from rez....
0
280
0
7,528
0
0
0
144
177
6b8977af1d9c468c2526ada5b88b3152bc747801
6,997
py
Python
objec_detection/camera_yolo.py
DataCowboy30/MCSODS
4e32c4c6c8b4c9aa0d15ff8d3b47c758a737fec8
[ "MIT" ]
null
null
null
objec_detection/camera_yolo.py
DataCowboy30/MCSODS
4e32c4c6c8b4c9aa0d15ff8d3b47c758a737fec8
[ "MIT" ]
null
null
null
objec_detection/camera_yolo.py
DataCowboy30/MCSODS
4e32c4c6c8b4c9aa0d15ff8d3b47c758a737fec8
[ "MIT" ]
null
null
null
from __future__ import division, print_function, absolute_import import warnings warnings.filterwarnings('ignore')
42.92638
148
0.542804
from __future__ import division, print_function, absolute_import import cv2 from base_camera import BaseCamera import warnings import numpy as np from PIL import Image from yolo import YOLO from deep_sort import preprocessing from deep_sort.detection import Detection from deep_sort.detection_yolo import Detection_YOL...
0
6,380
0
152
0
0
0
81
266
413f972cef4afb1666329938b3dcae0922197f0e
12,517
py
Python
LS_DS_Unit_4_Sprint_Challenge_4.py
Hira63S/DS-Unit-4-Sprint-3-Deep-Learning
b895448ac8600655a3136e1f0b23415ea57cef53
[ "MIT" ]
null
null
null
LS_DS_Unit_4_Sprint_Challenge_4.py
Hira63S/DS-Unit-4-Sprint-3-Deep-Learning
b895448ac8600655a3136e1f0b23415ea57cef53
[ "MIT" ]
null
null
null
LS_DS_Unit_4_Sprint_Challenge_4.py
Hira63S/DS-Unit-4-Sprint-3-Deep-Learning
b895448ac8600655a3136e1f0b23415ea57cef53
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # <img align="left" src="https://lever-client-logos.s3.amazonaws.com/864372b1-534c-480e-acd5-9711f850815c-1524247202159.png" width=200> # <br></br> # <br></br> # # # Major Neural Network Architectures Challenge # ## *Data Science Unit 4 Sprint 3 Challenge* # # In this sprint cha...
44.073944
890
0.729168
#!/usr/bin/env python # coding: utf-8 # <img align="left" src="https://lever-client-logos.s3.amazonaws.com/864372b1-534c-480e-acd5-9711f850815c-1524247202159.png" width=200> # <br></br> # <br></br> # # # Major Neural Network Architectures Challenge # ## *Data Science Unit 4 Sprint 3 Challenge* # # In this sprint cha...
0
0
0
0
0
435
0
145
203
7369c384a6e4df61deed4546cab09ec35a5f333a
2,534
py
Python
pre_request/filters/simple/length_filter.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
86
2017-08-17T12:41:52.000Z
2022-02-24T12:17:47.000Z
pre_request/filters/simple/length_filter.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
10
2020-03-30T03:24:46.000Z
2022-02-23T01:34:53.000Z
pre_request/filters/simple/length_filter.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
7
2017-08-18T03:40:35.000Z
2020-05-19T04:09:10.000Z
# !/usr/local/python/bin/python # -*- coding: utf-8 -*- # (C) Wu Dong, 2019 # All rights reserved # @Author: 'Wu Dong <wudong@eastwu.cn>' # @Time: '2020-03-17 15:37'
29.811765
113
0.593133
# !/usr/local/python/bin/python # -*- coding: utf-8 -*- # (C) Wu Dong, 2019 # All rights reserved # @Author: 'Wu Dong <wudong@eastwu.cn>' # @Time: '2020-03-17 15:37' from pre_request.exception import ParamsValueError from pre_request.filters.base import BaseFilter class LengthFilter(BaseFilter): """ 判断字符串长度的过...
123
0
0
2,204
0
0
0
55
67
f87c78efb09dea742c890a2d09b2dc5d3a389258
1,697
py
Python
pipeline/command.py
gsi-upm/nerdy
62d2a6df730e30bc1c05c91557fcfd2236b742b8
[ "Apache-2.0" ]
2
2017-10-26T19:40:51.000Z
2018-03-07T12:10:49.000Z
pipeline/command.py
gsi-upm/nerdy
62d2a6df730e30bc1c05c91557fcfd2236b742b8
[ "Apache-2.0" ]
null
null
null
pipeline/command.py
gsi-upm/nerdy
62d2a6df730e30bc1c05c91557fcfd2236b742b8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """command.py: Interface to command line executables.""" from optparse import OptionParser import logging __author__ = "Rami Al-Rfou" __email__ = "rmyeid gmail" LOG_FORMAT = "%(asctime).19s %(levelname)s %(filename)s: %(lineno)s %(message)s" if __name__ == "__main__": ...
29.258621
80
0.688273
#!/usr/bin/env python # -*- coding: utf-8 -*- """command.py: Interface to command line executables.""" from optparse import OptionParser import logging from os import path from subprocess import PIPE, Popen from time import time __author__ = "Rami Al-Rfou" __email__ = "rmyeid gmail" LOG_FORMAT = "%(asctime).19s %(l...
0
121
0
680
0
10
0
11
158
22bcd0b2aa51adeb622ef085f8af0e085dfaad78
10,535
py
Python
pymatgen/io/tests/test_pwscf.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
1
2022-01-16T20:32:39.000Z
2022-01-16T20:32:39.000Z
pymatgen/io/tests/test_pwscf.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
null
null
null
pymatgen/io/tests/test_pwscf.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
null
null
null
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest if __name__ == "__main__": unittest.main()
31.636637
109
0.576839
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import unittest import numpy as np from pymatgen.io.pwscf import PWInput, PWInputError, PWOutput from pymatgen.util.testing import PymatgenTest from pymatgen.core import Lattice, Structure class PWInputTest(Pymat...
0
0
0
10,143
0
0
0
73
159
b0b7927485544fac4d1cc06eaf5222892dfcacfe
448
py
Python
contact/admin.py
lbacon17/lb-fitness
16f78841c834ca0e45317285b6c3b05ad97501f6
[ "W3C" ]
null
null
null
contact/admin.py
lbacon17/lb-fitness
16f78841c834ca0e45317285b6c3b05ad97501f6
[ "W3C" ]
null
null
null
contact/admin.py
lbacon17/lb-fitness
16f78841c834ca0e45317285b6c3b05ad97501f6
[ "W3C" ]
1
2021-03-31T10:55:51.000Z
2021-03-31T10:55:51.000Z
from django.contrib import admin from .models import Contact admin.site.register(Contact, ContactAdmin)
19.478261
50
0.627232
from django.contrib import admin from .models import Contact class ContactAdmin(admin.ModelAdmin): list_display = ( 'created_on', 'user', 'name', 'email_address', 'subject', 'message', ) ordering = ('created_on',) actions = ['mark_as_answered'] de...
0
0
0
319
0
0
0
0
23
72ca124132b6be919a6d2223e50dd2ffab100336
413
py
Python
ae_waiting_time/core/migrations/0003_auto_20190526_0208.py
howawong/ae-waiting-time-dashboard-api
91aab20eb3c014145f4e806bc23b45b20617d961
[ "MIT" ]
null
null
null
ae_waiting_time/core/migrations/0003_auto_20190526_0208.py
howawong/ae-waiting-time-dashboard-api
91aab20eb3c014145f4e806bc23b45b20617d961
[ "MIT" ]
2
2020-02-12T00:07:23.000Z
2020-06-05T20:32:17.000Z
ae_waiting_time/core/migrations/0003_auto_20190526_0208.py
howawong/ae-waiting-time-dashboard-api
91aab20eb3c014145f4e806bc23b45b20617d961
[ "MIT" ]
3
2019-05-11T18:27:33.000Z
2019-05-25T12:46:18.000Z
# Generated by Django 2.0 on 2019-05-26 02:08
21.736842
71
0.619855
# Generated by Django 2.0 on 2019-05-26 02:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0002_auto_20190526_0201'), ] operations = [ migrations.AlterField( model_name='waitingtime', name='waiting_tim...
0
0
0
301
0
0
0
19
46
7e880353be808d6dfa88d857e9b38058e7707ec6
8,792
py
Python
pandapower/topology/graph_searches.py
lucassm/cigre-montecarlo
fd354b9c3ade460b46687ba312f51212dad17151
[ "MIT" ]
null
null
null
pandapower/topology/graph_searches.py
lucassm/cigre-montecarlo
fd354b9c3ade460b46687ba312f51212dad17151
[ "MIT" ]
null
null
null
pandapower/topology/graph_searches.py
lucassm/cigre-montecarlo
fd354b9c3ade460b46687ba312f51212dad17151
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2016 by University of Kassel and Fraunhofer Institute for Wind Energy and Energy # System Technology (IWES), Kassel. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. import networkx as nx import pan...
33.429658
101
0.540264
# -*- coding: utf-8 -*- # Copyright (c) 2016 by University of Kassel and Fraunhofer Institute for Wind Energy and Energy # System Technology (IWES), Kassel. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. import networkx as nx import pan...
0
0
0
0
2,579
1,683
0
0
104
e6dd24213e8849445302890e3ae44f05104e1ef6
5,090
py
Python
spoken_time/__init__.py
dnknth/spoken_time
03ce7cf2ca5849bd4a8f834f8c8020834581e0ad
[ "MIT" ]
null
null
null
spoken_time/__init__.py
dnknth/spoken_time
03ce7cf2ca5849bd4a8f834f8c8020834581e0ad
[ "MIT" ]
null
null
null
spoken_time/__init__.py
dnknth/spoken_time
03ce7cf2ca5849bd4a8f834f8c8020834581e0ad
[ "MIT" ]
null
null
null
from datetime import datetime from num2words import num2words import gettext as gettext_module, locale, os __all__ = ('spoken_time', 'absolute_spoken_date', 'relative_spoken_date') # Reset locale for day & month names locale.setlocale( locale.LC_ALL, '') # Load translations for current locale _language, _encoding ...
35.347222
91
0.612574
from datetime import datetime from num2words import num2words import gettext as gettext_module, locale, os __all__ = ('spoken_time', 'absolute_spoken_date', 'relative_spoken_date') # Reset locale for day & month names locale.setlocale( locale.LC_ALL, '') # Load translations for current locale _language, _encoding ...
0
0
0
0
0
87
0
0
23
c6c256c7d2e38f76b9bc5b0a1a1243958da84af3
1,950
py
Python
designing-restful-apis/Lesson_4/13_BargainMart/Starter Code/views.py
robinl3680/udacity-course
308daf62479f9bf6f4256eb19313631f1bb4c5da
[ "MIT" ]
68
2016-07-28T07:24:57.000Z
2021-10-09T19:28:48.000Z
designing-restful-apis/Lesson_4/13_BargainMart/Starter Code/views.py
robinl3680/udacity-course
308daf62479f9bf6f4256eb19313631f1bb4c5da
[ "MIT" ]
1
2022-03-12T01:01:42.000Z
2022-03-12T01:01:42.000Z
designing-restful-apis/Lesson_4/13_BargainMart/Starter Code/views.py
robinl3680/udacity-course
308daf62479f9bf6f4256eb19313631f1bb4c5da
[ "MIT" ]
105
2016-10-19T03:56:33.000Z
2022-03-15T02:12:08.000Z
from flask import Flask from models import Base from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine engine = create_engine('sqlite:///bargainMart.db') Base.metadata.bind = engine DBSession = sessionmaker(bind=engine) session = DBSession() app = Flask(__name__) app = Flask(__name__) #ADD...
34.210526
192
0.695385
from redis import Redis import time from functools import update_wrapper from flask import request, g from flask import Flask, jsonify from models import Base, Item from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, sessionmaker from sqlalchemy import create_engine impo...
0
1,235
0
0
0
0
0
67
157
a3e3cf24cc7ef4954279e2183651357b813e7d64
6,824
py
Python
app/dao/provider_details_dao.py
uk-gov-mirror/alphagov.notifications-api
38af26cc784e63e6830b45c1bdfe9e8b72722e19
[ "MIT" ]
51
2016-04-03T23:36:17.000Z
2022-03-21T20:04:52.000Z
app/dao/provider_details_dao.py
uk-gov-mirror/alphagov.notifications-api
38af26cc784e63e6830b45c1bdfe9e8b72722e19
[ "MIT" ]
1,335
2015-12-15T14:28:50.000Z
2022-03-30T16:24:27.000Z
app/dao/provider_details_dao.py
uk-gov-mirror/alphagov.notifications-api
38af26cc784e63e6830b45c1bdfe9e8b72722e19
[ "MIT" ]
30
2016-01-08T19:05:32.000Z
2021-12-20T16:37:23.000Z
from datetime import datetime from flask import current_app from app import db from app.models import (ProviderDetails, ProviderDetailsHistory) def _get_sms_providers_for_update(time_threshold): """ Returns a list of providers, while holding a for_update lock on the provider details table, guaranteeing...
35.727749
119
0.748388
from datetime import datetime, timedelta from flask import current_app from notifications_utils.timezones import convert_utc_to_bst from sqlalchemy import asc, desc, func from app import db from app.dao.dao_utils import autocommit from app.models import ( SMS_TYPE, FactBilling, ProviderDetails, Provid...
0
2,036
0
0
0
2,804
0
138
296
b11a302f53a38192c5dd68e4767ae96d3e146ef3
301
py
Python
run.py
Prakash2403/ultron
7d1067eb98ef52f6a88299534ea204e7ae45d7a7
[ "MIT" ]
13
2017-08-15T15:50:13.000Z
2019-06-03T10:24:50.000Z
run.py
Prakash2403/ultron
7d1067eb98ef52f6a88299534ea204e7ae45d7a7
[ "MIT" ]
3
2017-08-29T16:35:04.000Z
2021-06-01T23:49:16.000Z
run.py
Prakash2403/ultron
7d1067eb98ef52f6a88299534ea204e7ae45d7a7
[ "MIT" ]
4
2017-08-16T09:33:59.000Z
2019-06-05T07:25:30.000Z
#! /usr/bin/python3 from default_settings import default_settings from ultron_cli import UltronCLI if __name__ == '__main__': default_settings() try: UltronCLI().cmdloop() except KeyboardInterrupt: print("\nInterrupted by user.") print("Goodbye") exit(0)
23.153846
45
0.664452
#! /usr/bin/python3 from default_settings import default_settings from ultron_cli import UltronCLI if __name__ == '__main__': default_settings() try: UltronCLI().cmdloop() except KeyboardInterrupt: print("\nInterrupted by user.") print("Goodbye") exit(0)
0
0
0
0
0
0
0
0
0
f1c684baf0130db947aa5d2c1d7a841cabb9d48f
2,590
py
Python
push_tester/__init__.py
DBeath/push-tester
1851e28f5bdadc4d0f94ab2f88b0d39660196e02
[ "MIT" ]
null
null
null
push_tester/__init__.py
DBeath/push-tester
1851e28f5bdadc4d0f94ab2f88b0d39660196e02
[ "MIT" ]
null
null
null
push_tester/__init__.py
DBeath/push-tester
1851e28f5bdadc4d0f94ab2f88b0d39660196e02
[ "MIT" ]
null
null
null
from flask_mail import Mail mail = Mail() # Admin interface
28.152174
78
0.748649
from flask import Flask from flask.ext.login import current_user from flask.ext.security import Security, SQLAlchemyUserDatastore from flask_mail import Mail from flask_debugtoolbar import DebugToolbarExtension from werkzeug.contrib.fixers import ProxyFix from flask.ext.admin import Admin, AdminIndexView from flask.ext...
0
0
0
188
0
1,630
0
308
399
9c44599437d73357f859a35a9a90690186183b72
277
py
Python
3.7.2/solution.py
luxnlex/stepic-python
92a4b25391f76935c3c2a70fb8552e7f93928d9b
[ "MIT" ]
1
2021-05-07T18:20:51.000Z
2021-05-07T18:20:51.000Z
3.7.2/solution.py
luxnlex/stepic-python
92a4b25391f76935c3c2a70fb8552e7f93928d9b
[ "MIT" ]
null
null
null
3.7.2/solution.py
luxnlex/stepic-python
92a4b25391f76935c3c2a70fb8552e7f93928d9b
[ "MIT" ]
2
2017-12-27T07:51:57.000Z
2020-08-03T22:10:55.000Z
known = set() unknown = set() for _ in range(int(input())): known.add(input().strip().lower()) for _ in range(int(input())): for word in input().strip().lower().split(): if word not in known: unknown.add(word) for word in unknown: print(word)
21.307692
48
0.588448
known = set() unknown = set() for _ in range(int(input())): known.add(input().strip().lower()) for _ in range(int(input())): for word in input().strip().lower().split(): if word not in known: unknown.add(word) for word in unknown: print(word)
0
0
0
0
0
0
0
0
0
747d3f750d3822cb89b4ca14242df24daedde520
1,368
py
Python
filter_plugins/fcoe_boot_args.py
ArdanaCLM/osconfig-ansible
5934cf8716aa5dc9cce05398a0cde31b4ef335d2
[ "Apache-2.0" ]
null
null
null
filter_plugins/fcoe_boot_args.py
ArdanaCLM/osconfig-ansible
5934cf8716aa5dc9cce05398a0cde31b4ef335d2
[ "Apache-2.0" ]
1
2018-06-05T12:48:20.000Z
2018-06-05T13:19:58.000Z
filter_plugins/fcoe_boot_args.py
cmurphy/osconfig-ansible
a6c308317c090de4aa2539f6f89e4b5c1fb26a48
[ "Apache-2.0" ]
4
2018-03-14T13:10:51.000Z
2019-09-30T19:05:50.000Z
# # (c) Copyright 2016 Hewlett Packard Enterprise Development LP # (c) Copyright 2017 SUSE LLC # # 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 #...
31.090909
75
0.698099
# # (c) Copyright 2016 Hewlett Packard Enterprise Development LP # (c) Copyright 2017 SUSE LLC # # 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
0
0
103
0
476
0
24
69
492c2da1fef28c7ca6a402cce56a9d3c5d313a2f
3,100
py
Python
data_visualization.py
GouldGroup/SAXSpy
329ffcf567a77ec2e889b0e62bd4a20077149d81
[ "MIT" ]
1
2021-09-22T14:26:39.000Z
2021-09-22T14:26:39.000Z
data_visualization.py
GouldGroup/SAXSpy
329ffcf567a77ec2e889b0e62bd4a20077149d81
[ "MIT" ]
null
null
null
data_visualization.py
GouldGroup/SAXSpy
329ffcf567a77ec2e889b0e62bd4a20077149d81
[ "MIT" ]
1
2021-09-23T12:19:39.000Z
2021-09-23T12:19:39.000Z
if __name__ == '__main__': Phase = 'lamellar' d1, d3, exp_data, q = load_data('lamellar') plot_saxs_umap(d1,exp_data) plot_saxs_tsne(d1,exp_data) plot_saxs_pca(d1,exp_data) plot_saxs(d1[0],q) plot_saxs_featuremap(d3[0],q)
32.978723
113
0.67871
from cProfile import label import matplotlib.pyplot as plt import numpy as np from sklearn.decomposition import PCA from sklearn.manifold import TSNE import pickle import random from saxspy import debyeWaller as dwf from scipy.interpolate import CubicSpline from tqdm import tqdm import saxspy import umap def load_dat...
0
0
0
0
0
2,388
0
42
402
36b3ed2d7bdc7403e669f04fd7a1dddad4c3779c
2,014
py
Python
code/python/FactSetOwnership/v1/setup.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/FactSetOwnership/v1/setup.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/FactSetOwnership/v1/setup.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet Ownership API FactSets Fund Ownership API gives access to both **Holdings** and **Holders** data.<p> Factset's Holdings endpoints gives access to all the underlying securities and their position detils held within a given fund. Fund Types supported include Open-End Mutual Funds, Closed-end Mutual F...
41.958333
860
0.741807
""" FactSet Ownership API FactSet’s Fund Ownership API gives access to both **Holdings** and **Holders** data.<p> Factset's Holdings endpoints gives access to all the underlying securities and their position detils held within a given fund. Fund Types supported include Open-End Mutual Funds, Closed-end Mutual ...
3
0
0
0
0
70
0
-12
45
f0295029d79a670f5e9ff14c46c6c1e6e194ec1e
9,447
py
Python
third_party/chromite/cros_bisect/common_unittest.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/chromite/cros_bisect/common_unittest.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/chromite/cros_bisect/common_unittest.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# -*- coding: utf-8 -*- # Copyright 2017 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Test common module.""" from __future__ import print_function
35.118959
79
0.68625
# -*- coding: utf-8 -*- # Copyright 2017 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Test common module.""" from __future__ import print_function from chromite.cros_bisect import common from chromite.lib import...
0
333
0
8,659
0
0
0
35
160
0ce24b379702377db9666f3aea9f64e2c3ac3318
2,180
py
Python
pytheus/collector.py
grilo/pytheus
a825bdfece22962ee8e91613c2fd38f00b2dfa40
[ "MIT" ]
null
null
null
pytheus/collector.py
grilo/pytheus
a825bdfece22962ee8e91613c2fd38f00b2dfa40
[ "MIT" ]
null
null
null
pytheus/collector.py
grilo/pytheus
a825bdfece22962ee8e91613c2fd38f00b2dfa40
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Inspired by: https://stackoverflow.com/questions/2829329
33.030303
88
0.558257
#!/usr/bin/env python import logging import collections import traceback import Queue import threading # Inspired by: https://stackoverflow.com/questions/2829329 class ExceptionThread(threading.Thread): def __init__(self, *args, **kwargs): threading.Thread.__init__(self, *args, **kwargs) def run(sel...
0
292
0
1,677
0
0
0
-29
156
91255470a07fe2dc93a0df608ba2c50701fb0485
6,494
py
Python
mando/tests/test_core.py
mollypi/mando
8e28ada5654693cf51f05ccd74fd3bfce2984e02
[ "MIT" ]
46
2015-01-03T16:06:17.000Z
2022-03-31T12:50:34.000Z
mando/tests/test_core.py
mollypi/mando
8e28ada5654693cf51f05ccd74fd3bfce2984e02
[ "MIT" ]
40
2015-01-03T16:32:22.000Z
2022-03-05T19:51:09.000Z
mando/tests/test_core.py
mollypi/mando
8e28ada5654693cf51f05ccd74fd3bfce2984e02
[ "MIT" ]
15
2015-01-20T03:08:21.000Z
2021-12-15T07:43:34.000Z
import pytest from mando import Program program = Program('example.py', '1.0.10') program.option( "-f", "--foo", dest='foo', default='bar', completer=NoopCompleter, help="Real programmers don't comment their code. \ If it was hard to write, it should be hard to read." ) program.add_subprog('sub'...
25.367188
79
0.573452
from contextlib import contextmanager import pytest from mando import Program program = Program('example.py', '1.0.10') def NoopCompleter(prefix, **kwd): return [] program.option( "-f", "--foo", dest='foo', default='bar', completer=NoopCompleter, help="Real programmers don't comment their code. \ ...
0
2,971
0
0
0
26
0
16
482
049d9ad4ca2402feea328d86129e85652cac6d8f
12,625
py
Python
rgd/geodata/models/common.py
venkatabhishek/ResonantGeoData
4e946e25c194874c22f4ba2ab49d6f0cf803e673
[ "Apache-2.0" ]
null
null
null
rgd/geodata/models/common.py
venkatabhishek/ResonantGeoData
4e946e25c194874c22f4ba2ab49d6f0cf803e673
[ "Apache-2.0" ]
null
null
null
rgd/geodata/models/common.py
venkatabhishek/ResonantGeoData
4e946e25c194874c22f4ba2ab49d6f0cf803e673
[ "Apache-2.0" ]
null
null
null
import logging # from django.contrib.auth import get_user_model # from .. import tasks logger = logging.getLogger(__name__)
34.972299
145
0.620277
import contextlib import logging import os from urllib.error import URLError from urllib.parse import urlencode, urlparse # from django.contrib.auth import get_user_model from django.contrib.gis.db import models from django.core.exceptions import ObjectDoesNotExist from django.utils import timezone from girder_utils.f...
0
892
0
10,736
0
0
0
417
447
7e16de0aa3cf48c1190b720bbb78c8f0c466d307
298
py
Python
ProyectoFinal/usuarios/forms.py
PredadorAkrid/IS-2020-2-La-Orden-De-Turing
cc292723a7bc4e4c1f848d00484f62ac75e7ad20
[ "Apache-2.0" ]
null
null
null
ProyectoFinal/usuarios/forms.py
PredadorAkrid/IS-2020-2-La-Orden-De-Turing
cc292723a7bc4e4c1f848d00484f62ac75e7ad20
[ "Apache-2.0" ]
null
null
null
ProyectoFinal/usuarios/forms.py
PredadorAkrid/IS-2020-2-La-Orden-De-Turing
cc292723a7bc4e4c1f848d00484f62ac75e7ad20
[ "Apache-2.0" ]
null
null
null
"""Users forms.""" # Django from django.contrib.auth.forms import AuthenticationForm
29.8
74
0.822148
"""Users forms.""" # Django from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth import authenticate from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from .models import *
0
0
0
0
0
0
0
101
111
e52ef64aa93903e8fe0e6fd02b45411a68393dd3
1,557
py
Python
examples/maoyan_comments.py
alphardex/looter
2be094576e31fd13123719ca94e42cb31475dffa
[ "MIT" ]
145
2018-02-25T13:59:52.000Z
2021-12-11T17:13:36.000Z
examples/maoyan_comments.py
alphardex/crawltools
2be094576e31fd13123719ca94e42cb31475dffa
[ "MIT" ]
7
2018-03-26T01:53:44.000Z
2021-03-31T18:59:12.000Z
examples/maoyan_comments.py
alphardex/crawltools
2be094576e31fd13123719ca94e42cb31475dffa
[ "MIT" ]
25
2018-03-26T14:16:53.000Z
2021-10-14T12:32:21.000Z
""" 4url """ import looter as lt from pathlib import Path from concurrent import futures domain = 'http://m.maoyan.com' movie_id = '248172' # 4 total_timestamps = [] total_items = [] if __name__ == '__main__': get_timestamps() start_times = Path('maoyan_comment_timestamps.txt').read_text().split('\n') ...
33.12766
116
0.675658
""" 猫眼电影影评,以复联4为例,先把时间节点都爬下来,再组合成url用线程池爬,这样效率更高 """ import arrow import requests import looter as lt from pprint import pprint from pathlib import Path from concurrent import futures domain = 'http://m.maoyan.com' movie_id = '248172' # 复仇者联盟4 total_timestamps = [] total_items = [] def get_timestamps(): start_t...
177
0
0
0
0
800
0
-11
112
17cc95892cb3b5d781ec86c8b5d5211b62136d86
4,702
py
Python
version0.1 220618/mainWindow.py
grey-wings/dynamic_desktop
a58ef6109112bd89fde24e0ca7bf7ecefc51cc8d
[ "MIT" ]
null
null
null
version0.1 220618/mainWindow.py
grey-wings/dynamic_desktop
a58ef6109112bd89fde24e0ca7bf7ecefc51cc8d
[ "MIT" ]
null
null
null
version0.1 220618/mainWindow.py
grey-wings/dynamic_desktop
a58ef6109112bd89fde24e0ca7bf7ecefc51cc8d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainWindow.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing.
53.431818
140
0.700553
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainWindow.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import...
36
0
0
4,264
0
0
0
50
73
31c3bebf030c53139de2d6d2e0e1ef312f7947bd
2,388
py
Python
net/client/examples/apod.py
juandesant/astrometry.net
47849f0443b890c4a875360f881d2e60d1cba630
[ "Net-SNMP", "Xnet" ]
460
2015-01-06T13:20:04.000Z
2022-03-29T00:37:55.000Z
net/client/examples/apod.py
juandesant/astrometry.net
47849f0443b890c4a875360f881d2e60d1cba630
[ "Net-SNMP", "Xnet" ]
208
2015-01-08T20:26:38.000Z
2022-03-25T15:21:34.000Z
net/client/examples/apod.py
juandesant/astrometry.net
47849f0443b890c4a875360f881d2e60d1cba630
[ "Net-SNMP", "Xnet" ]
173
2015-01-08T18:01:54.000Z
2022-03-27T07:27:04.000Z
# Copyright 2011 David W. Hogg. # All rights reserved. # BUGS: # - Brittle code; must be run from directory client/examples; dies if APOD reformats urls or html. # - Runs client using os.system() instead of importing client and executing it; see if False block at end. from __future__ import print_function import os im...
35.641791
125
0.597152
# Copyright 2011 David W. Hogg. # All rights reserved. # BUGS: # - Brittle code; must be run from directory client/examples; dies if APOD reformats urls or html. # - Runs client using os.system() instead of importing client and executing it; see if False block at end. from __future__ import print_function import re i...
0
0
0
0
0
380
0
-13
114
c55d1f130e3125cda04302fb71d6ebf4e4c2944f
1,841
py
Python
Project_Tuples/listOfAllKeys.py
zacandcheese/Keyboard-Biometric-Project
0cdc0fef65b34624e80a5e96e2457c9cf958fb6d
[ "MIT" ]
1
2017-10-03T14:40:09.000Z
2017-10-03T14:40:09.000Z
Project_Tuples/listOfAllKeys.py
zacandcheese/Keyboard-Biometric-Project
0cdc0fef65b34624e80a5e96e2457c9cf958fb6d
[ "MIT" ]
null
null
null
Project_Tuples/listOfAllKeys.py
zacandcheese/Keyboard-Biometric-Project
0cdc0fef65b34624e80a5e96e2457c9cf958fb6d
[ "MIT" ]
2
2019-02-20T02:28:13.000Z
2021-12-01T19:50:19.000Z
#[port, char] nameDict = dict([(65, 'A'),(66, 'B'),(67, 'C'),(68, 'D'), (69, 'E'), (70, 'F'),(71, 'G'), (72, 'H'),(73, 'I'),(74, 'J'),(75, 'K'),(76, 'L'), (77, 'M'),(78, 'N'),(79, 'O'),(80, 'P'),(81, 'Q'),(82, 'R'),(83, 'S'),(84, 'T'),(85, 'U'),(86, 'V'),(87, 'W'),(88, 'X'),(89, 'Y'),(90, 'Z'), (97, 'a'),(98, 'b'),(99,...
108.294118
158
0.380771
#[port, char] nameDict = dict([(65, 'A'),(66, 'B'),(67, 'C'),(68, 'D'), (69, 'E'), (70, 'F'),(71, 'G'), (72, 'H'),(73, 'I'),(74, 'J'),(75, 'K'),(76, 'L'), (77, 'M'),(78, 'N'),(79, 'O'),(80, 'P'),(81, 'Q'),(82, 'R'),(83, 'S'),(84, 'T'),(85, 'U'),(86, 'V'),(87, 'W'),(88, 'X'),(89, 'Y'),(90, 'Z'), (97, 'a'),(98, 'b'),(99,...
0
0
0
0
0
0
0
0
0
0c63b787a42f93b6ef7034c610e36d7d8c1b3163
6,970
py
Python
get-metrics-insights.py
sbecker11/RetrievePowerAndPerformanceMetricsAndLogInsights
78b83bb75065165d1687de67441c9c19804c57e1
[ "MIT" ]
null
null
null
get-metrics-insights.py
sbecker11/RetrievePowerAndPerformanceMetricsAndLogInsights
78b83bb75065165d1687de67441c9c19804c57e1
[ "MIT" ]
null
null
null
get-metrics-insights.py
sbecker11/RetrievePowerAndPerformanceMetricsAndLogInsights
78b83bb75065165d1687de67441c9c19804c57e1
[ "MIT" ]
null
null
null
""" See README.md for help configuring and running this script. """ import os import sys import datetime import json import jwt from dotenv import load_dotenv ######## # KEY CONFIGURATION - Put your API Key info here # added on 2021-12-08 by shawn.becker@angel.com load_dotenv() ISSUER_ID = os.environ.get('ISSUER_ID'...
33.671498
114
0.595265
""" See README.md for help configuring and running this script. """ import os import sys import datetime from urllib.parse import urlparse import http.client import json import jwt from dotenv import load_dotenv ######## # KEY CONFIGURATION - Put your API Key info here # added on 2021-12-08 by shawn.becker@angel.com...
0
0
0
0
0
1,048
0
9
158
543db429674f347f446e727454c481cff4c34a5c
5,331
py
Python
src/service/user.py
Cassianokunsch/unfollow-app-graphene
ebea586ec1a971f08aa060b1daf51a4f916066d2
[ "MIT" ]
null
null
null
src/service/user.py
Cassianokunsch/unfollow-app-graphene
ebea586ec1a971f08aa060b1daf51a4f916066d2
[ "MIT" ]
12
2020-05-01T15:32:46.000Z
2022-03-12T00:14:30.000Z
src/service/user.py
Cassianokunsch/unfollow-app-graphene
ebea586ec1a971f08aa060b1daf51a4f916066d2
[ "MIT" ]
null
null
null
MESSAGE_ERROR = 'Please wait a few minutes before you try again.'
29.949438
123
0.633089
from graphql import GraphQLError from shared.messages import UNKNOW_ERROR, TOO_MANY_REQUESTS, UNFOLLOW_SUCCESS, UNFOLLOW_ERROR, FOLLOW_SUCCESS, FOLLOW_ERROR from resolvers.types.user_info import UserInfo from resolvers.types.picture import Picture from resolvers.types.feed import Feed from storage.session import get_se...
0
0
0
0
0
4,722
0
194
339
a06b9193506ca5bc580e08e2b908b1f7b82a1349
2,496
py
Python
rewrite/commands/owner/reload.py
VoxelPrismatic/prizai
632a5dfed23807d78064d292d474ac4cc8988b12
[ "Unlicense" ]
2
2019-11-08T21:34:44.000Z
2020-07-05T15:31:19.000Z
rewrite/commands/owner/reload.py
VoxelPrismatic/prizai
632a5dfed23807d78064d292d474ac4cc8988b12
[ "Unlicense" ]
null
null
null
rewrite/commands/owner/reload.py
VoxelPrismatic/prizai
632a5dfed23807d78064d292d474ac4cc8988b12
[ "Unlicense" ]
2
2020-07-05T15:39:51.000Z
2020-07-05T16:15:47.000Z
info = { "name": "reload", "type": 1, "description": "Reloads a command", "id": "reload", "options": [ { "name": "command", "description": "Command name", "type": 3, "required": True }, { "name": "send", ...
29.714286
138
0.437099
import importlib import traceback info = { "name": "reload", "type": 1, "description": "Reloads a command", "id": "reload", "options": [ { "name": "command", "description": "Command name", "type": 3, "required": True }, { ...
0
0
1,974
0
0
0
0
-10
67
378a83320711e490f8b9c743f8de3a53cb5956fa
1,329
py
Python
21.py
smahs/euler-py
d8855d8db7336ebcdb38e8841aab6a379b766f0d
[ "MIT" ]
null
null
null
21.py
smahs/euler-py
d8855d8db7336ebcdb38e8841aab6a379b766f0d
[ "MIT" ]
null
null
null
21.py
smahs/euler-py
d8855d8db7336ebcdb38e8841aab6a379b766f0d
[ "MIT" ]
null
null
null
#!/usr/bin/python2 """ Statement: Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a != b, then a and b are an amicable pair and each of a and b are called amicable numbers. For example, the proper divisors of 220 are 1, 2, 4, 5,...
23.732143
68
0.617005
#!/usr/bin/python2 """ Statement: Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a != b, then a and b are an amicable pair and each of a and b are called amicable numbers. For example, the proper divisors of 220 are 1, 2, 4, 5,...
0
0
0
667
0
0
0
14
68
6f9bdc4f72a08cdb667640b7246292f6f915e44c
358
py
Python
naughty.py
santa-shares/santa-shares-server
b3edd1e486337bc9fd0f853fca89db4280473f6c
[ "MIT" ]
null
null
null
naughty.py
santa-shares/santa-shares-server
b3edd1e486337bc9fd0f853fca89db4280473f6c
[ "MIT" ]
1
2019-12-13T23:06:50.000Z
2019-12-13T23:06:50.000Z
naughty.py
santa-shares/santa-shares-server
b3edd1e486337bc9fd0f853fca89db4280473f6c
[ "MIT" ]
3
2019-12-13T22:47:00.000Z
2019-12-22T11:42:29.000Z
from extensions import db from app import app from models import User with app.app_context(): jon = User.query.filter_by(id=7).first() jon.balance += 1800_00 storage = User.query.filter_by(id=11).first() storage.balance -= 10000_00 alasdair = User.query.filter_by(id=10).first() alasdair.balan...
23.866667
50
0.698324
from extensions import db from app import app from models import User with app.app_context(): jon = User.query.filter_by(id=7).first() jon.balance += 1800_00 storage = User.query.filter_by(id=11).first() storage.balance -= 10000_00 alasdair = User.query.filter_by(id=10).first() alasdair.balan...
0
0
0
0
0
0
0
0
0
5b9cd648c24496759f334168440276de21ee1b24
3,218
py
Python
fitfast/layer_optimizer.py
aayux/fitfast
f14e0ef3e5e8acd961957c6b537f89961b0f6b40
[ "Apache-2.0" ]
null
null
null
fitfast/layer_optimizer.py
aayux/fitfast
f14e0ef3e5e8acd961957c6b537f89961b0f6b40
[ "Apache-2.0" ]
null
null
null
fitfast/layer_optimizer.py
aayux/fitfast
f14e0ef3e5e8acd961957c6b537f89961b0f6b40
[ "Apache-2.0" ]
null
null
null
# why is this different?
34.234043
80
0.60752
from .imports import * from .utils.core import * from .utils.extras import * def optimizer_params(params, lr, wd): return {'params': chain_params(params), 'lr': lr, 'wd': wd} class LayerOptimizer(object): def __init__(self, optimizer, layer_groups, lrs, wds=None): if not isins...
0
212
0
2,182
0
581
0
11
203
f89498ebc16d22aa8c39567fe526726358d57c6d
117
py
Python
urwid/__init__.py
mingz2013/terminal-ui-demo
0737b03ce49a4e50227795305a93b186386ba754
[ "Apache-2.0" ]
null
null
null
urwid/__init__.py
mingz2013/terminal-ui-demo
0737b03ce49a4e50227795305a93b186386ba754
[ "Apache-2.0" ]
null
null
null
urwid/__init__.py
mingz2013/terminal-ui-demo
0737b03ce49a4e50227795305a93b186386ba754
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @FileName: __init__.py @Time: 2020/7/18 11:10 @Author: zhaojm Module Description """
9.75
23
0.615385
# -*- coding: utf-8 -*- """ @FileName: __init__.py @Time: 2020/7/18 11:10 @Author: zhaojm Module Description """
0
0
0
0
0
0
0
0
0
63662d1c60805cc30b7e149d591a72e43856916b
22,171
py
Python
src/firebolt_cli/engine.py
firebolt-db/firebolt-cli
6ca12722646d2a7a0f0abb1664d5eb48076354ed
[ "Apache-2.0" ]
1
2022-03-09T18:57:43.000Z
2022-03-09T18:57:43.000Z
src/firebolt_cli/engine.py
firebolt-db/firebolt-cli
6ca12722646d2a7a0f0abb1664d5eb48076354ed
[ "Apache-2.0" ]
23
2022-02-15T09:49:38.000Z
2022-03-21T13:20:18.000Z
src/firebolt_cli/engine.py
firebolt-db/firebolt-cli
6ca12722646d2a7a0f0abb1664d5eb48076354ed
[ "Apache-2.0" ]
1
2022-03-18T08:37:35.000Z
2022-03-18T08:37:35.000Z
from datetime import timedelta from typing import Callable, Optional from click import (Choice, IntRange, echo, option) from firebolt.common.exception import FireboltError from firebolt.model.engine import Engine from firebolt.service.manager import ResourceManager from firebolt.service.types import (EngineType, Warmu...
30.665284
88
0.641108
import os import sys from datetime import timedelta from typing import Callable, Optional from click import ( Choice, IntRange, argument, command, confirm, echo, group, option, ) from firebolt.common.exception import FireboltError from firebolt.model.engine import Engine from firebolt.s...
0
13,466
0
0
0
1,713
0
327
370
dcc52f260bab6ad846a1b57a5a7c627824d7a1e2
1,178
py
Python
app/config/settings/staging.py
dxw/nhx-website
88344c7602823e0b371d3c6f933aa24aeb57db16
[ "MIT" ]
50
2019-04-04T17:50:00.000Z
2021-08-05T15:08:37.000Z
app/config/settings/staging.py
dxw/nhx-website
88344c7602823e0b371d3c6f933aa24aeb57db16
[ "MIT" ]
434
2019-04-04T18:25:32.000Z
2022-03-31T18:23:37.000Z
app/config/settings/staging.py
nhsx-mirror/nhsx-website
2133b4e275ca35ff77f7d6874e809f139ec4bf86
[ "MIT" ]
23
2019-04-04T09:52:07.000Z
2021-04-11T07:41:47.000Z
import os from .base import MEDIA_ROOT, BASE_DIR # NOQA DEBUG = False WAGTAIL_CACHE = False BASE_URL = "https://web.staging.nhsx-website.dalmatian.dxw.net" MIDDLEWARE += ["baipw.middleware.BasicAuthIPWhitelistMiddleware"] BASIC_AUTH_LOGIN = os.environ.get("BASIC_AUTH_LOGIN", "") BASIC_AUTH_PASSWORD = os.environ.get...
36.8125
100
0.503396
import os from .remote import * # NOQA from .base import MEDIA_ROOT, BASE_DIR # NOQA DEBUG = False WAGTAIL_CACHE = False BASE_URL = "https://web.staging.nhsx-website.dalmatian.dxw.net" MIDDLEWARE += ["baipw.middleware.BasicAuthIPWhitelistMiddleware"] BASIC_AUTH_LOGIN = os.environ.get("BASIC_AUTH_LOGIN", "") BASIC_...
0
0
0
0
0
0
0
0
30
ce3f4d54a285714fddc11227ffc83bf10e6dcf6b
21,862
py
Python
src/kolibri_daemon/application.py
endlessm/kolibri-installer-gnome
2cc0800269a998774a60abb71455a72eb360b18c
[ "MIT" ]
null
null
null
src/kolibri_daemon/application.py
endlessm/kolibri-installer-gnome
2cc0800269a998774a60abb71455a72eb360b18c
[ "MIT" ]
2
2021-12-23T14:54:16.000Z
2022-03-22T00:36:06.000Z
src/kolibri_daemon/application.py
endlessm/kolibri-installer-gnome
2cc0800269a998774a60abb71455a72eb360b18c
[ "MIT" ]
null
null
null
from __future__ import annotations INACTIVITY_TIMEOUT_MS = 30 * 1000 # 30 seconds in milliseconds DEFAULT_STOP_KOLIBRI_TIMEOUT_SECONDS = 60 # 1 minute in seconds
34.756757
88
0.682463
from __future__ import annotations import time import typing from concurrent.futures import Future from functools import partial from uuid import uuid4 from gi.repository import Gio from gi.repository import GLib from gi.repository import KolibriDaemonDBus from kolibri_app.config import DAEMON_APPLICATION_ID from kol...
0
533
0
20,332
0
0
0
311
514
c280fa57467d137ac3c7ee8ddcdb4f4bca41c869
22,559
py
Python
networking_brocade/vdx/ml2driver/nos/nctemplates.py
dariko/networking-brocade
c5f3fd8cd0a88e01eeea6228646a72d0b12fa9d5
[ "Apache-2.0" ]
null
null
null
networking_brocade/vdx/ml2driver/nos/nctemplates.py
dariko/networking-brocade
c5f3fd8cd0a88e01eeea6228646a72d0b12fa9d5
[ "Apache-2.0" ]
null
null
null
networking_brocade/vdx/ml2driver/nos/nctemplates.py
dariko/networking-brocade
c5f3fd8cd0a88e01eeea6228646a72d0b12fa9d5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Brocade Communications Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
36.210273
86
0.534421
# Copyright (c) 2014 Brocade Communications Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
0
0
0
0
0
0
0
0
0
68bd39af2f1c0550c544c64c3cf6b11db56420ba
1,182
py
Python
src/calculators/test/data/Iterpose_Fit_CA/Iterpose_Fit_CA.py
LongxingCao/pyRMSD
856b72a0dddd579430b2e87bdb026d71fbf9d250
[ "MIT" ]
1
2021-02-18T19:15:58.000Z
2021-02-18T19:15:58.000Z
src/calculators/test/data/Iterpose_Fit_CA/Iterpose_Fit_CA.py
LongxingCao/pyRMSD
856b72a0dddd579430b2e87bdb026d71fbf9d250
[ "MIT" ]
null
null
null
src/calculators/test/data/Iterpose_Fit_CA/Iterpose_Fit_CA.py
LongxingCao/pyRMSD
856b72a0dddd579430b2e87bdb026d71fbf9d250
[ "MIT" ]
2
2020-12-11T14:57:48.000Z
2021-08-03T12:22:44.000Z
import prody import numpy pdb_data = prody.parsePDB("../Models/prot_stretching/stretching_trajectory_offset_ligand.pdb") pdb_trajectory = prody.PDBEnsemble("iterposed_CA") # Write the initial coordsets prot = pdb_data.select("name CA") prody.writePDB("stretching_trajectory_offset_ligand.iterposed_all.pdb", prot) with...
42.214286
94
0.78934
import prody import numpy pdb_data = prody.parsePDB("../Models/prot_stretching/stretching_trajectory_offset_ligand.pdb") pdb_trajectory = prody.PDBEnsemble("iterposed_CA") # Write the initial coordsets prot = pdb_data.select("name CA") prody.writePDB("stretching_trajectory_offset_ligand.iterposed_all.pdb", prot) with...
0
0
0
0
0
0
0
0
0
bf4a7fd0ea942fa85823c7159145fc1fffbab324
1,994
py
Python
djauth/bin/student_staff.py
carthagecollege/django-djauth
3ef7b7ad80ff0361a3eff662bfd15f356df65ad2
[ "BSD-3-Clause" ]
null
null
null
djauth/bin/student_staff.py
carthagecollege/django-djauth
3ef7b7ad80ff0361a3eff662bfd15f356df65ad2
[ "BSD-3-Clause" ]
8
2020-06-05T19:21:15.000Z
2022-01-25T16:42:01.000Z
djauth/bin/student_staff.py
carthagecollege/django-djauth
3ef7b7ad80ff0361a3eff662bfd15f356df65ad2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import django import os import sys # env sys.path.append('/usr/lib/python2.7/dist-packages/') sys.path.append('/usr/lib/python2.7/') sys.path.append('/usr/local/lib/python2.7/dist-packages/') sys.path.append('/data2/django_1.9/') sys.path.append('/data2/django_projects/') sys.pat...
26.945946
75
0.597292
# -*- coding: utf-8 -*- import datetime import django import os import sys # env sys.path.append('/usr/lib/python2.7/dist-packages/') sys.path.append('/usr/lib/python2.7/') sys.path.append('/usr/local/lib/python2.7/dist-packages/') sys.path.append('/data2/django_1.9/') sys.path.append('/data2/django_projects/') sys.pat...
0
0
0
0
0
0
0
0
0
60c3ecf6777c2824a4d9a06a69f903e82df8c94b
726
py
Python
00_Code/01_LeetCode/389_FindtheDifference.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
1
2017-06-11T04:57:07.000Z
2017-06-11T04:57:07.000Z
00_Code/01_LeetCode/389_FindtheDifference.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
null
null
null
00_Code/01_LeetCode/389_FindtheDifference.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
null
null
null
""" Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at a random position. Find the letter that was added in t. Example: Input: s = "abcd" t = "abcde" Output: e Explanation: 'e' is the letter that was added. Your ru...
16.883721
101
0.581267
""" Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at a random position. Find the letter that was added in t. Example: Input: s = "abcd" t = "abcde" Output: e Explanation: 'e' is the letter that was added. Your ru...
0
0
0
335
0
0
0
0
23
b7236de46421cb3772f9bb9212a50a79f2bbe26c
2,896
py
Python
tests/test_parser_params.py
bitranox/Arpeggio
62151cb8ef2cfe5113a4388da09892e7714c5e96
[ "MIT" ]
null
null
null
tests/test_parser_params.py
bitranox/Arpeggio
62151cb8ef2cfe5113a4388da09892e7714c5e96
[ "MIT" ]
null
null
null
tests/test_parser_params.py
bitranox/Arpeggio
62151cb8ef2cfe5113a4388da09892e7714c5e96
[ "MIT" ]
null
null
null
####################################################################### # Name: test_parser_params # Purpose: Test for parser parameters. # Author: Igor R. Dejanovi <igor DOT dejanovic AT gmail DOT com> # Copyright: (c) 2014 Igor R. Dejanovi <igor DOT dejanovic AT gmail DOT com> # License: MIT License #################...
26.327273
77
0.604972
####################################################################### # Name: test_parser_params # Purpose: Test for parser parameters. # Author: Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com> # Copyright: (c) 2014 Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com> # License: MIT License ###############...
4
0
0
0
0
128
0
1
129
021f7eb949236e09c177c7cdea7d98aa2700bf88
1,835
py
Python
tests/acceptance/test_project_overview.py
boblail/sentry
71127331e58791d4651e480b65dd66f06cadc1c8
[ "BSD-3-Clause" ]
1
2019-08-28T11:03:13.000Z
2019-08-28T11:03:13.000Z
tests/acceptance/test_project_overview.py
boblail/sentry
71127331e58791d4651e480b65dd66f06cadc1c8
[ "BSD-3-Clause" ]
1
2022-01-15T02:36:18.000Z
2022-01-15T02:36:18.000Z
tests/acceptance/test_project_overview.py
gaybro8777/sentry
4594f479db9a079d7f1ed41a9e07d8f36953319f
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import
33.981481
74
0.633243
from __future__ import absolute_import import pytz from datetime import datetime from django.utils import timezone from mock import patch from sentry.testutils import AcceptanceTestCase, SnubaTestCase class ProjectOverviewTest(AcceptanceTestCase, SnubaTestCase): def setUp(self): super(ProjectOverviewTe...
0
607
0
1,000
0
0
0
52
136
2f1ecab50b0fb1982a33388d254e0f9ca4138167
235
py
Python
src/ch08/219.py
thejit/pycote
6ac66e7ade78e146d46f650a00447dd055d44584
[ "MIT" ]
null
null
null
src/ch08/219.py
thejit/pycote
6ac66e7ade78e146d46f650a00447dd055d44584
[ "MIT" ]
null
null
null
src/ch08/219.py
thejit/pycote
6ac66e7ade78e146d46f650a00447dd055d44584
[ "MIT" ]
null
null
null
#1 x=26 d = [0] * 30001 for i in range(2, x+1): d[i]=d[i-1]+1 if i%2 == 0: d[i]=min(d[i],d[i//2]+1) if i%3 == 0: d[i]=min(d[i],d[i//3]+1) if i%5 ==0: d[i]=min(d[i],d[i//5]+1) print(d[x])
14.6875
32
0.382979
#1로 만들기 x=26 d = [0] * 30001 for i in range(2, x+1): d[i]=d[i-1]+1 if i%2 == 0: d[i]=min(d[i],d[i//2]+1) if i%3 == 0: d[i]=min(d[i],d[i//3]+1) if i%5 ==0: d[i]=min(d[i],d[i//5]+1) print(d[x])
12
0
0
0
0
0
0
0
0
6910f32ba6ef90d6481e6afd17defefb855ebd1f
275
py
Python
kelner/__init__.py
lunardog/kelner
6a3cc5bfaaf2d0933234460e7a2736c3e3fa391b
[ "MIT" ]
24
2018-02-21T06:57:05.000Z
2022-03-31T07:12:10.000Z
kelner/__init__.py
lunardog/kelner
6a3cc5bfaaf2d0933234460e7a2736c3e3fa391b
[ "MIT" ]
2
2018-07-11T07:13:34.000Z
2018-08-29T06:18:22.000Z
kelner/__init__.py
lunardog/kelner
6a3cc5bfaaf2d0933234460e7a2736c3e3fa391b
[ "MIT" ]
5
2018-03-27T07:53:42.000Z
2018-11-21T15:57:31.000Z
from . import server def serve(kelner_model, host="127.0.0.1", port=server.KELNER_PORT): """ Serves the loaded kelner_model """ k_server = server.KelnerServer(kelner_model) return k_server.serve_http(host, port)
22.916667
67
0.709091
from . import server from . import client from . import model def serve(kelner_model, host="127.0.0.1", port=server.KELNER_PORT): """ Serves the loaded kelner_model """ k_server = server.KelnerServer(kelner_model) return k_server.serve_http(host, port)
0
0
0
0
0
0
0
-3
44
adfe0fe10e83303e0cafb5e26e30f2d067a55ac3
123
py
Python
setup.py
sumerc/pycalltrak
ab3417fd0a161a42476558181f0eb4981065f8ec
[ "MIT" ]
3
2019-10-20T17:13:55.000Z
2020-09-09T00:25:59.000Z
setup.py
sumerc/pycalltrak
ab3417fd0a161a42476558181f0eb4981065f8ec
[ "MIT" ]
null
null
null
setup.py
sumerc/pycalltrak
ab3417fd0a161a42476558181f0eb4981065f8ec
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='calltrak', version='1.0', py_modules = ['calltrak'], )
20.5
43
0.666667
from setuptools import setup, find_packages setup(name='calltrak', version='1.0', py_modules = ['calltrak'], )
0
0
0
0
0
0
0
15
0
ef5cad86f36be03857a3e8460855b7a2fdf076d3
3,609
py
Python
pyresearch/plot_animation_from_csv.py
tetsuzawa/research-tools
0c6a820469dbf143fefe5898b01346f493af8a1e
[ "MIT" ]
1
2020-06-17T09:40:33.000Z
2020-06-17T09:40:33.000Z
pyresearch/plot_animation_from_csv.py
tetsuzawa/research-tools
0c6a820469dbf143fefe5898b01346f493af8a1e
[ "MIT" ]
6
2020-03-24T18:02:56.000Z
2021-12-13T20:30:52.000Z
pyresearch/plot_animation_from_csv.py
tetsuzawa/research-tools
0c6a820469dbf143fefe5898b01346f493af8a1e
[ "MIT" ]
2
2020-02-19T04:28:31.000Z
2020-06-17T09:40:34.000Z
# encoding: utf-8 import matplotlib.pyplot as plt plt.rcParams['font.family'] = 'IPAPGothic' plt.rcParams['font.size'] = 11 plt.rcParams['xtick.direction'] = 'in' plt.rcParams['ytick.direction'] = 'in' plt.rcParams['xtick.top'] = True plt.rcParams['ytick.right'] = True plt.rcParams['xtick.major.width'] = 1.0 plt.rcPa...
32.513514
111
0.541424
# encoding: utf-8 import argparse import pathlib import matplotlib.pyplot as plt import pandas as pd from matplotlib import animation plt.rcParams['font.family'] = 'IPAPGothic' plt.rcParams['font.size'] = 11 plt.rcParams['xtick.direction'] = 'in' plt.rcParams['ytick.direction'] = 'in' plt.rcParams['xtick.top'] = Tru...
0
0
0
0
0
2,886
0
-4
135
e6bb52429434cf404ed3bea2ee98f19ec9bab6ca
1,648
py
Python
src/flask_easy/scripts/resources/repository.py
Josephmaclean/flask-easy
64cb647b0dbcd031cb8d27cc60889e50c959e1ca
[ "MIT" ]
1
2021-12-30T12:25:05.000Z
2021-12-30T12:25:05.000Z
src/flask_easy/scripts/resources/repository.py
Josephmaclean/flask-easy
64cb647b0dbcd031cb8d27cc60889e50c959e1ca
[ "MIT" ]
null
null
null
src/flask_easy/scripts/resources/repository.py
Josephmaclean/flask-easy
64cb647b0dbcd031cb8d27cc60889e50c959e1ca
[ "MIT" ]
null
null
null
""" repository.py Author: Joseph Maclean Arhin """ import os import click from jinja2 import Template from .utils import convert_to_camelcase, remove_suffix, add_to_init def create_repository(path, name, is_sql=True): """ This method creates a repository in the rootdir/repositories directory with the na...
25.75
83
0.685073
""" repository.py Author: Joseph Maclean Arhin """ import os import click from jinja2 import Template from .utils import convert_to_camelcase, remove_suffix, add_to_init def create_repository(path, name, is_sql=True): """ This method creates a repository in the rootdir/repositories directory with the na...
0
0
0
0
0
0
0
0
0
47fec1d6ad3ac9d70d08c7f31a23745de5abc2d1
2,413
py
Python
bandeco/utils.py
drakenation/bandeco
417fbb4efc98c5e36ff08d28bed6b2edf7158a1e
[ "MIT" ]
1
2017-05-15T19:21:31.000Z
2017-05-15T19:21:31.000Z
bandeco/utils.py
drakenation/bandeco
417fbb4efc98c5e36ff08d28bed6b2edf7158a1e
[ "MIT" ]
null
null
null
bandeco/utils.py
drakenation/bandeco
417fbb4efc98c5e36ff08d28bed6b2edf7158a1e
[ "MIT" ]
null
null
null
""" Module with helpful functions for general use. """ # Core imports from datetime import date from re import sub as regex_sub from sys import stdout from sys import stderr # Project imports from . import constants def parse_date(date_string): """ Parses a date from a string in DD/MM/YYYY format. :para...
29.072289
100
0.66639
""" Module with helpful functions for general use. """ # Core imports from datetime import date from re import sub as regex_sub from sys import stdout from sys import stderr # Project imports from . import constants def parse_date(date_string): """ Parses a date from a string in DD/MM/YYYY format. :para...
0
0
0
0
0
0
0
0
0
751698c06a8bca29798aee0d826921e9e325160f
705
py
Python
application/routes/appointment.py
tafowocedric/icarehealthcenterapi
f9c74adc3db1b9b0e2bb0e66d1f7fb2bfffef512
[ "MIT" ]
null
null
null
application/routes/appointment.py
tafowocedric/icarehealthcenterapi
f9c74adc3db1b9b0e2bb0e66d1f7fb2bfffef512
[ "MIT" ]
null
null
null
application/routes/appointment.py
tafowocedric/icarehealthcenterapi
f9c74adc3db1b9b0e2bb0e66d1f7fb2bfffef512
[ "MIT" ]
null
null
null
from fastapi import APIRouter router = APIRouter(prefix='/appointments', tags=['appointments'])
39.166667
85
0.831206
from fastapi import APIRouter from application.controller import appointment as AppointmentController from application.models.schema import appointment as AppointmentSchema from application.models.schema.utils import SuccessResponse router = APIRouter(prefix='/appointments', tags=['appointments']) @router.post("/cr...
0
356
0
0
0
0
0
137
113
7074a4f61eddfc8efc87e14d0d62f6e4be3166d5
2,137
py
Python
rdr_service/alembic/versions/6079f2fae734_changing_module_to_not_nullable.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/alembic/versions/6079f2fae734_changing_module_to_not_nullable.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/alembic/versions/6079f2fae734_changing_module_to_not_nullable.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
"""changing module to not nullable Revision ID: 6079f2fae734 Revises: 6de7e8a83d66, 1db87855f77c Create Date: 2021-06-10 17:32:53.546706 """ # revision identifiers, used by Alembic. revision = '6079f2fae734' down_revision = ('6de7e8a83d66', '1db87855f77c') branch_labels = None depends_on = None
32.876923
125
0.755732
"""changing module to not nullable Revision ID: 6079f2fae734 Revises: 6de7e8a83d66, 1db87855f77c Create Date: 2021-06-10 17:32:53.546706 """ from alembic import op import sqlalchemy as sa import rdr_service.model.utils from sqlalchemy.dialects import mysql from rdr_service.participant_enums import PhysicalMeasuremen...
0
0
0
0
0
815
0
612
403
a37584b6e0616669d74728658e2f12ceea936f38
6,366
py
Python
scrapydm/scrapydm/utils.py
gitduk/web_craw
0d3d5c3de91bb1a1c83845464b7279069d5a66f5
[ "MIT" ]
null
null
null
scrapydm/scrapydm/utils.py
gitduk/web_craw
0d3d5c3de91bb1a1c83845464b7279069d5a66f5
[ "MIT" ]
null
null
null
scrapydm/scrapydm/utils.py
gitduk/web_craw
0d3d5c3de91bb1a1c83845464b7279069d5a66f5
[ "MIT" ]
2
2021-04-30T06:14:59.000Z
2022-01-20T07:16:14.000Z
from mplus.moduls.response import Selector import re as _re def re(response, regex, replace_entities=False, flags=_re.S): """ @summary: <a class='page-numbers'... <a class="page-numbers" <a class="(.*?)" html --------- @param regex: re.compile @param flags: re.S ... @pa...
28.80543
110
0.631794
import webbrowser from mplus.moduls.response import Selector from mplus.utils.data import search import re as _re def is_html(response): content_type = response.headers.get("Content-Type", "") if "text/html" in content_type: return True else: return False def extract(selector): retur...
720
0
0
0
0
4,395
0
10
573
b9818ea0e35be55df7e8533d0798e10e3d2f1c68
4,817
py
Python
hgext/factotum.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
hgext/factotum.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
hgext/factotum.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# factotum.py - Plan 9 factotum integration for Mercurial # # Copyright (C) 2012 Steven Stallion <sstallion@gmail.com> # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2 of the L...
32.328859
78
0.662861
# factotum.py - Plan 9 factotum integration for Mercurial # # Copyright (C) 2012 Steven Stallion <sstallion@gmail.com> # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2 of the L...
0
850
0
0
0
1,482
0
41
160
3c05781fb25fe2d4a277c3a5c42b9a0339539847
3,714
py
Python
src/marker_pose_estimation_videos.py
takuya-ki/aruco-camera-calibration
b8974320ef2bc940793609c358dbd4edbfc10fe5
[ "MIT" ]
1
2021-10-31T04:52:46.000Z
2021-10-31T04:52:46.000Z
src/marker_pose_estimation_videos.py
takuya-ki/aruco-camera-calibration
b8974320ef2bc940793609c358dbd4edbfc10fe5
[ "MIT" ]
null
null
null
src/marker_pose_estimation_videos.py
takuya-ki/aruco-camera-calibration
b8974320ef2bc940793609c358dbd4edbfc10fe5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import cv2 import pickle import os.path as osp import utils aruco = cv2.aruco def pose_esitmation( frame, dictionary, marker_length, camera_matrix, dist_coeffs): """Estimates poses of detected markers in the frame.""" gray = cv2.cvtC...
29.951613
79
0.609855
#!/usr/bin/env python3 import os import cv2 import pickle import os.path as osp import utils aruco = cv2.aruco def pose_esitmation( frame, dictionary, marker_length, camera_matrix, dist_coeffs): """Estimates poses of detected markers in the frame.""" gray = cv2.cvtC...
0
0
0
0
0
0
0
0
0
24d6e6191887eace6131548ab2cc8344ae05a359
848
py
Python
mfi_customization/mfi/patch/migrate_patch.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/patch/migrate_patch.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/patch/migrate_patch.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
# bench execute mfi_customization.mfi.patch.migrate_patch.get_custom_role_permission # bench execute mfi_customization.mfi.patch.migrate_patch.set_custom_role_permission
35.333333
104
0.65684
import frappe import os import json import sys # bench execute mfi_customization.mfi.patch.migrate_patch.get_custom_role_permission def get_custom_role_permission(site=None): if sys.argv[2]=='--site': os.system("bench --site {0} export-fixtures".format(sys.argv[3])) else: os.system("bench ex...
0
0
0
0
0
579
0
-41
132
b71910efe5888311570a4b40f1ae9de9d971539e
10,101
py
Python
data_processing/download_repo_text.py
ndrpnt/gpt-code-clippy
72e0c2798c7ecc7dd1633576d402a9ded1b8b24d
[ "Apache-2.0" ]
435
2021-08-09T17:36:29.000Z
2022-03-31T20:12:32.000Z
data_processing/download_repo_text.py
ndrpnt/gpt-code-clippy
72e0c2798c7ecc7dd1633576d402a9ded1b8b24d
[ "Apache-2.0" ]
23
2021-08-09T17:24:28.000Z
2022-03-05T06:15:31.000Z
data_processing/download_repo_text.py
Daasin/codepy-lot
6341c2f2e44ab25ec4a0ef1490c4ee8be1e80d72
[ "Apache-2.0" ]
46
2021-08-11T11:38:35.000Z
2022-03-26T08:18:59.000Z
# Copyright maintained by EleutherAI. Originally from https://github.com/EleutherAI/github-downloader import magic import lm_dataformat as lmd import os import random import csv import json from multiprocessing import cpu_count, Pool from tqdm import tqdm import subprocess from itertools import repeat bad_extensions =...
29.535088
119
0.570043
# Copyright maintained by EleutherAI. Originally from https://github.com/EleutherAI/github-downloader import chardet import magic import lm_dataformat as lmd import os import random import sys import traceback import shutil import csv import json from multiprocessing import cpu_count, Pool from tqdm import tqdm import...
0
0
0
18
0
6,545
0
-37
387
5ed077b7fe7d9508bd124319c204f958af93f5bf
824
py
Python
automatic_navigation.py
Ulzahk/Practica-Selenium-Python
f2d0f215afb8ebba019544b3eb60cf2f7f23ddbf
[ "MIT" ]
null
null
null
automatic_navigation.py
Ulzahk/Practica-Selenium-Python
f2d0f215afb8ebba019544b3eb60cf2f7f23ddbf
[ "MIT" ]
null
null
null
automatic_navigation.py
Ulzahk/Practica-Selenium-Python
f2d0f215afb8ebba019544b3eb60cf2f7f23ddbf
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main(verbosity = 2)
22.27027
79
0.631068
import unittest from selenium import webdriver from time import sleep class NavigationTest(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome(executable_path = r'./chromedriver.exe') driver = self.driver driver.implicitly_wait(30) driver.maximize_window() d...
0
0
0
669
0
0
0
10
67
8a13148b6786d6dc15034578e09513803ef7a95b
3,008
py
Python
tests/test_pdal.py
readthedocs-assistant/adaptivefiltering
4c2a2a116869f7a931befb9aa9a5b658aed3e497
[ "MIT" ]
2
2022-02-11T08:31:11.000Z
2022-03-21T10:19:16.000Z
tests/test_pdal.py
readthedocs-assistant/adaptivefiltering
4c2a2a116869f7a931befb9aa9a5b658aed3e497
[ "MIT" ]
187
2021-06-21T19:46:15.000Z
2022-03-21T12:14:47.000Z
tests/test_pdal.py
readthedocs-assistant/adaptivefiltering
4c2a2a116869f7a931befb9aa9a5b658aed3e497
[ "MIT" ]
3
2022-01-19T20:06:57.000Z
2022-03-21T09:27:17.000Z
_pdal_filter_list = [ "filters.csf", "filters.elm", "filters.outlier", "filters.pmf", "filters.skewnessbalancing", "filters.smrf", ]
29.782178
71
0.729721
from adaptivefiltering.pdal import * from adaptivefiltering.paths import get_temporary_filename from . import dataset, minimal_dataset import jsonschema import os import pyrsistent import pytest _pdal_filter_list = [ "filters.csf", "filters.elm", "filters.outlier", "filters.pmf", "filters.skewne...
0
1,273
0
0
0
1,259
0
41
271
999fce8f0bea1b1525bff898be3be301c22e4333
3,179
py
Python
appCore/apps/replica/contrib/micro/migrations/0001_initial.py
jadedgamer/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
4
2017-04-22T11:03:01.000Z
2018-01-16T22:28:15.000Z
appCore/apps/replica/contrib/micro/migrations/0001_initial.py
alifewellplayed/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
10
2017-04-06T19:54:42.000Z
2017-11-07T06:53:10.000Z
appCore/apps/replica/contrib/micro/migrations/0001_initial.py
alifewellplayed/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
1
2017-12-14T12:49:40.000Z
2017-12-14T12:49:40.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-07 14:31 from __future__ import unicode_literals
42.959459
144
0.584146
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-07 14:31 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ...
0
0
0
2,922
0
0
0
31
112
b93585d9fb0440c4823519a42db042ee5afd40b6
4,799
py
Python
badger/admin.py
Mozilla-GitHub-Standards/32f019951cddad4b74a875d0f0cc472e0a12b7e2230cfb89db5a8cf6398a735b
b22fd24974b443e064db04eae67ef8627c1938a8
[ "BSD-3-Clause" ]
37
2015-04-01T00:08:27.000Z
2021-04-08T06:51:39.000Z
badger/admin.py
Mozilla-GitHub-Standards/32f019951cddad4b74a875d0f0cc472e0a12b7e2230cfb89db5a8cf6398a735b
b22fd24974b443e064db04eae67ef8627c1938a8
[ "BSD-3-Clause" ]
10
2015-02-27T22:36:16.000Z
2019-03-28T12:33:42.000Z
badger/admin.py
Mozilla-GitHub-Standards/32f019951cddad4b74a875d0f0cc472e0a12b7e2230cfb89db5a8cf6398a735b
b22fd24974b443e064db04eae67ef8627c1938a8
[ "BSD-3-Clause" ]
20
2015-02-11T11:20:12.000Z
2021-04-30T21:27:19.000Z
from urlparse import urljoin from django.conf import settings from django.contrib import admin try: from funfactory.urlresolvers import reverse except ImportError: from .models import (Badge, Award, Nomination, Progress, DeferredAward) UPLOADS_URL = getattr(settings, 'BADGER_MEDIA_URL', urljoin(getattr(set...
32.425676
87
0.653469
from urlparse import urljoin from django.conf import settings from django.contrib import admin from django import forms from django.db import models try: from funfactory.urlresolvers import reverse except ImportError: from django.core.urlresolvers import reverse from .models import (Badge, Award, Nomination...
0
0
0
1,946
0
1,318
0
33
370
d7cf100798aec83db3fde67ef48c14dd605cf6a7
3,466
py
Python
src/backend/partaj/core/migrations/0016_add_referral_activity.py
MTES-MCT/partaj
0025c17a96d9212430d18ec36f6a2474c4609738
[ "MIT" ]
2
2020-10-15T11:28:26.000Z
2021-06-25T15:24:33.000Z
src/backend/partaj/core/migrations/0016_add_referral_activity.py
MTES-MCT/partaj
0025c17a96d9212430d18ec36f6a2474c4609738
[ "MIT" ]
7
2020-10-01T14:49:51.000Z
2022-01-24T09:44:10.000Z
src/backend/partaj/core/migrations/0016_add_referral_activity.py
MTES-MCT/partaj
0025c17a96d9212430d18ec36f6a2474c4609738
[ "MIT" ]
3
2020-03-18T15:53:26.000Z
2021-09-16T14:39:27.000Z
# Generated by Django 3.0.5 on 2020-05-20 13:05
35.731959
88
0.401327
# Generated by Django 3.0.5 on 2020-05-20 13:05 import uuid import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("contenttypes", "0002_remove_content_type_name"), migrations.swappable_...
0
0
0
3,273
0
0
0
31
113
96ec1dae57eb5324ac21642918daf7767612348f
407
py
Python
CursoPython/Python_Mundo_1/Exercicio004.py
XiaoNaihe/Python
5ba12ae8beff325b069d13210d34116373de2f5d
[ "MIT" ]
null
null
null
CursoPython/Python_Mundo_1/Exercicio004.py
XiaoNaihe/Python
5ba12ae8beff325b069d13210d34116373de2f5d
[ "MIT" ]
null
null
null
CursoPython/Python_Mundo_1/Exercicio004.py
XiaoNaihe/Python
5ba12ae8beff325b069d13210d34116373de2f5d
[ "MIT" ]
null
null
null
a = input('Digite Algo: ') print(f'O tipo primitivo desse valor : ', type(a)) print(f'S tem espaos? {a.isspace()} ') print(f'Isso um numero? {a.isnumeric()} ') print(f'Isso Alfabtico? {a.isalpha()} ') print(f'Isso Alfanumerico? {a.isnumeric()} ') print(f'Est em letras maisculas? {a.isupper()} ') print(f'Est em let...
40.7
51
0.665848
a = input('Digite Algo: ') print(f'O tipo primitivo desse valor é: ', type(a)) print(f'Só tem espaços? {a.isspace()} ') print(f'Isso é um numero? {a.isnumeric()} ') print(f'Isso é Alfabético? {a.isalpha()} ') print(f'Isso é Alfanumerico? {a.isnumeric()} ') print(f'Está em letras maiúsculas? {a.isupper()} ') print(f'E...
24
0
0
0
0
0
0
0
0
93f23a3303fb19dfac6551a5840e78b56cc9c590
2,969
py
Python
prepare_dataset.py
talolard/BibSample
4bdffcce720a60f5b2e2786b73654710541cec9a
[ "MIT" ]
null
null
null
prepare_dataset.py
talolard/BibSample
4bdffcce720a60f5b2e2786b73654710541cec9a
[ "MIT" ]
null
null
null
prepare_dataset.py
talolard/BibSample
4bdffcce720a60f5b2e2786b73654710541cec9a
[ "MIT" ]
null
null
null
import tensorflow as tf from preppy import BibPreppy def expand(x): ''' Hack. Because padded_batch doesn't play nice with scalars, so we expand the scalar to a vector of length 1 :param x: :return: ''' x['length'] = tf.expand_dims(tf.convert_to_tensor(x['length']), 0) x['book_id'] = tf.ex...
41.816901
114
0.701246
import tensorflow as tf from preppy import BibPreppy def expand(x): ''' Hack. Because padded_batch doesn't play nice with scalars, so we expand the scalar to a vector of length 1 :param x: :return: ''' x['length'] = tf.expand_dims(tf.convert_to_tensor(x['length']), 0) x['book_id'] = tf.ex...
0
0
0
0
0
862
0
0
23
fbf7beb34f3b61e70f16d18032efeb4007e7fb0d
4,248
py
Python
speech-to-text/augmentation.py
huseinzol05/Bahasa-NLP-Tensorflow
4e6427230e36c2d79ec951c7f2c3501bf75f9a8a
[ "MIT" ]
31
2019-05-02T20:47:35.000Z
2021-11-01T06:05:55.000Z
speech-to-text/augmentation.py
mesolitica/Bahasa-NLP-Tensorflow
4e6427230e36c2d79ec951c7f2c3501bf75f9a8a
[ "MIT" ]
2
2019-05-30T22:10:40.000Z
2020-02-17T08:07:20.000Z
speech-to-text/augmentation.py
mesolitica/Bahasa-NLP-Tensorflow
4e6427230e36c2d79ec951c7f2c3501bf75f9a8a
[ "MIT" ]
15
2019-05-02T10:30:34.000Z
2022-03-04T08:21:14.000Z
import librosa import os import scipy import json with open('train-test.json') as fopen: wavs = json.load(fopen)['train'] if not os.path.exists('augment'): os.makedirs('augment') for no, wav in enumerate(wavs): try: root, ext = os.path.splitext(wav) if (no + 1) % 100 == 0: ...
27.947368
76
0.552966
import numpy as np import librosa import os import scipy import json def change_pitch_speech(samples): y_pitch_speed = samples.copy() length_change = np.random.uniform(low = 0.8, high = 1) speed_fac = 1.0 / length_change tmp = np.interp( np.arange(0, len(y_pitch_speed), speed_fac), np....
0
0
0
0
0
2,329
0
-3
160
5b91fcd37d97a25c8fdb4dbd92cd1de3a55bad48
2,098
py
Python
src/datafactory/azext_datafactory/manual/custom.py
sanmishra18/azure-cli-extensions
05499b7931a1fe4cd4536a6b83fa4f8f13663996
[ "MIT" ]
1
2021-04-22T09:20:58.000Z
2021-04-22T09:20:58.000Z
src/datafactory/azext_datafactory/manual/custom.py
sanmishra18/azure-cli-extensions
05499b7931a1fe4cd4536a6b83fa4f8f13663996
[ "MIT" ]
null
null
null
src/datafactory/azext_datafactory/manual/custom.py
sanmishra18/azure-cli-extensions
05499b7931a1fe4cd4536a6b83fa4f8f13663996
[ "MIT" ]
1
2020-11-09T17:17:42.000Z
2020-11-09T17:17:42.000Z
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incor...
51.170732
116
0.551478
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incor...
0
0
0
0
0
1,583
0
10
46
074ec71ad27a728fcb92493cee08ad244a062f16
2,471
py
Python
curve_fit_peak_finder_wf.py
fwk446/pyhon-course
09d68aa7a97ed09783feed11950d05a8a8c7c01a
[ "Apache-2.0" ]
null
null
null
curve_fit_peak_finder_wf.py
fwk446/pyhon-course
09d68aa7a97ed09783feed11950d05a8a8c7c01a
[ "Apache-2.0" ]
null
null
null
curve_fit_peak_finder_wf.py
fwk446/pyhon-course
09d68aa7a97ed09783feed11950d05a8a8c7c01a
[ "Apache-2.0" ]
null
null
null
# import necessary libraries import numpy as np from scipy.signal import find_peaks import matplotlib.pyplot as plt import csv # global variable definition n=100 # number of sample points deg1 = 30 # polynomial order for fit xs=np.linspace(0,1,n) # spacing for data x= np.arange(0, n, 1) # input data generat...
27.153846
124
0.673007
# import necessary libraries import numpy as np import pandas as pd from scipy.signal import find_peaks import matplotlib.pyplot as plt import csv # global variable definition n=100 # number of sample points deg1 = 30 # polynomial order for fit xs=np.linspace(0,1,n) # spacing for data x= np.arange(0, n, 1) ...
0
0
0
0
0
0
0
-2
22
b99efa096e6db920ad2bf404249b919bf8559e20
10,617
py
Python
update_data/temp_download.py
louieh/Course-Search
eeaedaf9fb9895f4855fc86b1700f27c8223339b
[ "MIT" ]
3
2018-12-14T18:30:52.000Z
2021-06-13T06:51:30.000Z
update_data/temp_download.py
louieh/Course-Search
eeaedaf9fb9895f4855fc86b1700f27c8223339b
[ "MIT" ]
2
2021-03-31T19:07:33.000Z
2021-03-31T19:22:48.000Z
update_data/temp_download.py
louieh/Course-Search
eeaedaf9fb9895f4855fc86b1700f27c8223339b
[ "MIT" ]
1
2019-02-15T06:11:34.000Z
2019-02-15T06:11:34.000Z
# 1.coursebook # 2.coursebook reportmonkey # 3.coursebookreportmonkey keycoursebook reportmonkey # TODO # TODO if __name__ == "__main__": coursebook_spider = CouseBookSpider() coursebook_spider.run()
47.397321
149
0.554959
import json import requests from lxml import html import redis from pymongo import MongoClient import datetime # 1.直接下载coursebook入库 # 2.直接下载coursebook reportmonkey入库 # 3.下载coursebook获取reportmonkey key然后下载coursebook reportmonkey入库 # TODO 三个解析器 # TODO 两个下载器 class CouseBookSpider(object): def __init__(self): ...
96
0
0
10,235
0
0
0
-21
155
96b2f7271816c3dd408d741193f53a71ba9c33b5
2,493
py
Python
skyfield/api.py
xmichaelx/python-skyfield
a30a3e53a0973336ae1ac19db7d09ba0d5cb0b73
[ "MIT" ]
null
null
null
skyfield/api.py
xmichaelx/python-skyfield
a30a3e53a0973336ae1ac19db7d09ba0d5cb0b73
[ "MIT" ]
null
null
null
skyfield/api.py
xmichaelx/python-skyfield
a30a3e53a0973336ae1ac19db7d09ba0d5cb0b73
[ "MIT" ]
null
null
null
"""Top-level objects and functions offered by the Skyfield library. Importing this library is not always the fastest way to use a Skyfield feature, since importing this module involves importing almost the entirety of Skyfield and its dependencies, but is the most convenient way for most users to use Skyfield's main f...
37.208955
85
0.727236
"""Top-level objects and functions offered by the Skyfield library. Importing this library is not always the fastest way to use a Skyfield feature, since importing this module involves importing almost the entirety of Skyfield and its dependencies, but is the most convenient way for most users to use Skyfield's main f...
0
0
0
174
0
830
0
21
68
cb90ad239d840f8a7013fa2ed15a6dfd9e99d018
615
py
Python
gui_client/ui/error_page.py
Mozzo1000/virgo
30f0b8606d5ad5d651f7d628d231e0bb99928626
[ "Apache-2.0" ]
null
null
null
gui_client/ui/error_page.py
Mozzo1000/virgo
30f0b8606d5ad5d651f7d628d231e0bb99928626
[ "Apache-2.0" ]
null
null
null
gui_client/ui/error_page.py
Mozzo1000/virgo
30f0b8606d5ad5d651f7d628d231e0bb99928626
[ "Apache-2.0" ]
null
null
null
general_error = """ <html> <head> <style> body { height: 100%; width: 100%; background-color: #9E9E9E; } .box { border: 1px solid green ; background...
25.625
47
0.326829
general_error = """ <html> <head> <style> body { height: 100%; width: 100%; background-color: #9E9E9E; } .box { border: 1px solid green ; background...
0
0
0
0
0
0
0
0
0
8d0fb7a19087c5bcf20447d2a08fd40d0de7a91a
2,251
py
Python
build-support/bin/check_pants_pex_abi.py
CMLivingston/pants
4395289966d6ec4a9525367c82629c35fb461b2a
[ "Apache-2.0" ]
null
null
null
build-support/bin/check_pants_pex_abi.py
CMLivingston/pants
4395289966d6ec4a9525367c82629c35fb461b2a
[ "Apache-2.0" ]
null
null
null
build-support/bin/check_pants_pex_abi.py
CMLivingston/pants
4395289966d6ec4a9525367c82629c35fb461b2a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2.7 # coding=utf-8 # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). # Check that the ./pants.pex was built using the passed abi specification. from __future__ import absolute_import, division, print_function, unicod...
33.102941
96
0.698801
#!/usr/bin/env python2.7 # coding=utf-8 # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). # Check that the ./pants.pex was built using the passed abi specification. from __future__ import absolute_import, division, print_function, unicod...
0
0
0
0
0
1,379
0
-30
181
bc008f3024eb12032e2d5cb7e1905325ff319524
7,107
py
Python
copyright_updater/find.py
swasun/copyright-updater
750ced32ee9738e4d65189bc0e917e0581a59668
[ "MIT" ]
null
null
null
copyright_updater/find.py
swasun/copyright-updater
750ced32ee9738e4d65189bc0e917e0581a59668
[ "MIT" ]
null
null
null
copyright_updater/find.py
swasun/copyright-updater
750ced32ee9738e4d65189bc0e917e0581a59668
[ "MIT" ]
null
null
null
##################################################################################### # MIT License # # # # Copyright (C) 2018 Charly Lamothe ...
50.404255
123
0.596032
##################################################################################### # MIT License # # # # Copyright (C) 2018 Charly Lamothe ...
12
0
0
0
0
4,759
0
55
113
4b3a7ad920c98694ed0aea0af1508c987caccd19
2,032
py
Python
popong_models/bill.py
teampopong/popong-models
9919a323204592b49c95ee46632e1c2df1cf35fa
[ "BSD-3-Clause" ]
1
2016-02-28T13:58:14.000Z
2016-02-28T13:58:14.000Z
popong_models/bill.py
teampopong/popong-models
9919a323204592b49c95ee46632e1c2df1cf35fa
[ "BSD-3-Clause" ]
null
null
null
popong_models/bill.py
teampopong/popong-models
9919a323204592b49c95ee46632e1c2df1cf35fa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from sqlalchemy import func, select from sqlalchemy.orm import relationship from .bill_status import BillStatus bill_and_status = select([func.row_number().over().label('status_order'), func.unnest(Bill.status_ids).label('bill_status_id'), Bill...
33.311475
90
0.668307
# -*- coding: utf-8 -*- from sqlalchemy import Boolean, Column, Date, func, Integer, select, String, Text, Unicode from sqlalchemy.dialects.postgresql import ARRAY from sqlalchemy.orm import column_property, relationship from .api_model import ApiModel from .base import Base from .bill_keyword import bill_keyword fro...
0
0
0
1,109
0
0
0
127
112
1ef773ad49612de7de1bea49df0cf9955363f50e
664
py
Python
student_fee_payments/urls.py
Cent-Luc/University_Portal
82bf40a1c0d98111ffe8a184d16b543a3feec072
[ "MIT" ]
null
null
null
student_fee_payments/urls.py
Cent-Luc/University_Portal
82bf40a1c0d98111ffe8a184d16b543a3feec072
[ "MIT" ]
1
2021-03-18T22:00:32.000Z
2021-03-18T22:00:32.000Z
student_fee_payments/urls.py
c3n7/university-portal
82bf40a1c0d98111ffe8a184d16b543a3feec072
[ "MIT" ]
3
2019-11-14T08:50:15.000Z
2019-11-15T15:36:45.000Z
from django.urls import path from .views import (StudentFeePaymentCreateView, StudentFeePaymentListView, StudentFeePaymentUpdateView) urlpatterns = [ path( 'add/', StudentFeePaymentCreateView.as_view(), name='StudentFeePayment_add'), path( '<int:pk>/edit/', StudentFeePa...
24.592593
48
0.644578
from django.urls import path from .views import ( StudentFeePaymentCreateView, StudentFeePaymentListView, StudentFeePaymentDetailView, StudentFeePaymentUpdateView, ) urlpatterns = [ path( 'add/', StudentFeePaymentCreateView.as_view(), name='StudentFeePayment_add'), path...
0
0
0
0
0
0
0
48
0
c728add72ed6a3c7e7a22d0dd5c2d28795629874
70,636
py
Python
paddlenlp/transformers/albert/modeling.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/albert/modeling.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/albert/modeling.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # Copyright 2018 Google AI, Google Brain and the HuggingFace Inc. team. # # 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 # # ...
38.305857
140
0.597641
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # Copyright 2018 Google AI, Google Brain and the HuggingFace Inc. team. # # 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 # # ...
0
14,376
0
53,796
0
291
0
6
459
6d0decd079fd831d9b0aff23781e67f9fdb25d77
3,805
py
Python
am_driver_safe/src/pose_RK4_Enc.py
boffomarco/hrp
7017d358b8b53c289d0859f7dc61ca0d134843ed
[ "MIT" ]
null
null
null
am_driver_safe/src/pose_RK4_Enc.py
boffomarco/hrp
7017d358b8b53c289d0859f7dc61ca0d134843ed
[ "MIT" ]
null
null
null
am_driver_safe/src/pose_RK4_Enc.py
boffomarco/hrp
7017d358b8b53c289d0859f7dc61ca0d134843ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import rospy if __name__ == '__main__': try: poseEncCheckRK4 = PoseEncCheckRK4() rospy.spin() #odomCheck.run() except rospy.ROSInterruptException: pass
31.188525
108
0.602365
#!/usr/bin/env python3 import math from math import sin, cos, pi import rospy import tf from geometry_msgs.msg import Point, Pose, Quaternion, Twist, Vector3 from am_driver.msg import WheelEncoder class PoseEncCheckRK4(): def __init__(self): print("Initialising PoseEncCheckRK4") rospy.init_nod...
0
0
0
3,394
0
0
0
51
135
7fe69dace35df00eeb68f20bfddab05632d8f9f5
6,525
py
Python
cvnets/models/video_classification/__init__.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
209
2021-10-30T08:32:10.000Z
2022-03-31T16:18:03.000Z
cvnets/models/video_classification/__init__.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
12
2021-12-04T10:47:11.000Z
2022-03-31T15:39:40.000Z
cvnets/models/video_classification/__init__.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
50
2021-11-01T08:15:02.000Z
2022-03-29T08:17:34.000Z
# # For licensing see accompanying LICENSE file. # Copyright (C) 2022 Apple Inc. All Rights Reserved. # import os import importlib CLS_MODEL_REGISTRY = {} # automatically import the models models_dir = os.path.dirname(__file__) for file in os.listdir(models_dir): path = os.path.join(models_dir, file) if...
32.625
112
0.64613
# # For licensing see accompanying LICENSE file. # Copyright (C) 2022 Apple Inc. All Rights Reserved. # import os import importlib import argparse from utils import logger from utils.common_utils import check_frozen_norm_layer from utils.ddp_utils import is_master, is_start_rank_node from utils.download_utils import ...
0
0
0
0
0
5,438
0
164
270
9d26ac9d80cb1da7816cd03b7d011e0e56f963db
2,684
py
Python
image_processing_course/sw_s01e11.py
PUTvision/ImageProcessingCourse
9ef6cf6f65eec3703c3a70e1bef4d8a39669e540
[ "MIT" ]
1
2019-02-12T18:13:20.000Z
2019-02-12T18:13:20.000Z
image_processing_course/sw_s01e11.py
PUTvision/ImageProcessingCourse
9ef6cf6f65eec3703c3a70e1bef4d8a39669e540
[ "MIT" ]
null
null
null
image_processing_course/sw_s01e11.py
PUTvision/ImageProcessingCourse
9ef6cf6f65eec3703c3a70e1bef4d8a39669e540
[ "MIT" ]
2
2020-06-07T11:01:49.000Z
2021-01-07T08:38:35.000Z
if __name__ == '__main__': ex_1() ex_2() ex_3()
32.731707
99
0.688152
import cv2 import numpy as np def ex_1(): img_left = cv2.imread('_data/sw_s01e11/Rocks1/view1.png', cv2.IMREAD_COLOR) img_right = cv2.imread('_data/sw_s01e11/Rocks1/view5.png', cv2.IMREAD_COLOR) cv2.imshow('img_right', img_right) cv2.imshow('img_left', img_left) cv2.waitKey(0) b_left, g_left...
0
0
0
0
0
2,520
0
-14
113