hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
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
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
6e7a923dc0921797520d19486862dbb22cc5d8c8
13,249
py
Python
concourse/pipelines/gen_pipeline.py
tvar/gpdb
58e5ca05fefb0aa17e76017013f8ffc938dd92db
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
concourse/pipelines/gen_pipeline.py
tvar/gpdb
58e5ca05fefb0aa17e76017013f8ffc938dd92db
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
concourse/pipelines/gen_pipeline.py
tvar/gpdb
58e5ca05fefb0aa17e76017013f8ffc938dd92db
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # ---------------------------------------------------------------------- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF li...
32.794554
151
0.628953
0f1ee587bd890177eda3d710d9285cf832fb53e3
282
py
Python
Curso de Cisco/Actividades/Algunas funciones simples - Serie Fibonacci.py
tomasfriz/Curso-de-Cisco
a50ee5fa96bd86d468403e29ccdc3565a181af60
[ "MIT" ]
null
null
null
Curso de Cisco/Actividades/Algunas funciones simples - Serie Fibonacci.py
tomasfriz/Curso-de-Cisco
a50ee5fa96bd86d468403e29ccdc3565a181af60
[ "MIT" ]
null
null
null
Curso de Cisco/Actividades/Algunas funciones simples - Serie Fibonacci.py
tomasfriz/Curso-de-Cisco
a50ee5fa96bd86d468403e29ccdc3565a181af60
[ "MIT" ]
null
null
null
def fib(n): if n < 1: return None if n < 3: return 1 elem1 = elem2 = 1 sum = 0 for i in range(3, n + 1): sum = elem1 + elem2 elem1, elem2 = elem2, sum return sum for n in range(1, 10): # probando print(n, "->", fib(n))
18.8
33
0.471631
86cd9198c6422c92be4d85c0d1616de7b7a1a94d
17,581
py
Python
coco_dataset_generator/gui/segment.py
tommyfuu/COCO-Style-Dataset-Generator-GUI
48807d995c9c076985874eb6962443ec07c643ff
[ "Apache-2.0" ]
null
null
null
coco_dataset_generator/gui/segment.py
tommyfuu/COCO-Style-Dataset-Generator-GUI
48807d995c9c076985874eb6962443ec07c643ff
[ "Apache-2.0" ]
null
null
null
coco_dataset_generator/gui/segment.py
tommyfuu/COCO-Style-Dataset-Generator-GUI
48807d995c9c076985874eb6962443ec07c643ff
[ "Apache-2.0" ]
null
null
null
from matplotlib import pyplot as plt from matplotlib.collections import PatchCollection from matplotlib.patches import Polygon from matplotlib.widgets import RadioButtons from matplotlib.path import Path from PIL import Image import matplotlib import argparse import numpy as np import glob import os from matplotlib....
35.73374
120
0.547466
755f9df2466b8a05680e02b692f5890f79dc33a6
3,539
py
Python
bindings/python/ensmallen/datasets/string/neosartoryafischeri.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/neosartoryafischeri.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/neosartoryafischeri.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Neosartorya fischeri. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protein a...
32.768519
223
0.676745
4ac88e8e108f600ef5bd2afb5e9e96bc5266be6c
666
py
Python
djongo_test/djongo_test/djongo_app/manage.py
shyamyadati/django-mongo
d44e5b9e40a6fbab0de795a430593dd2430de8ba
[ "MIT" ]
null
null
null
djongo_test/djongo_test/djongo_app/manage.py
shyamyadati/django-mongo
d44e5b9e40a6fbab0de795a430593dd2430de8ba
[ "MIT" ]
null
null
null
djongo_test/djongo_test/djongo_app/manage.py
shyamyadati/django-mongo
d44e5b9e40a6fbab0de795a430593dd2430de8ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djongo_app.settings') try: from django.core.management import execute_from_command_line except I...
28.956522
74
0.68018
9b3a4854c29f8a96c9cdf5ea08fd07a4429876bc
3,786
py
Python
scripts/figure4/preprocessing_omranian.py
jiawu/Roller
a70e350905a59c2254dcefda7ab23c6417cf8f7d
[ "MIT" ]
null
null
null
scripts/figure4/preprocessing_omranian.py
jiawu/Roller
a70e350905a59c2254dcefda7ab23c6417cf8f7d
[ "MIT" ]
2
2015-07-13T18:51:22.000Z
2015-07-16T15:35:24.000Z
scripts/figure4/preprocessing_omranian.py
jiawu/Roller
a70e350905a59c2254dcefda7ab23c6417cf8f7d
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import matplotlib from scipy.interpolate import interp1d import sys from datetime import datetime import numpy as np sys.path.append("../pipelines") import Swing.util.lag_identification as lag_id from Swing.util.Evaluator import Evaluator import pdb def create_df(...
33.210526
200
0.721078
fb2202d6890b8e057a0c950fbb185c4d9cbcfac5
10,260
py
Python
tl_algs/tnb.py
raijin0704/tl_algs
1f9b4329a96eae93610a49aac04f1cc9e1d6ca4f
[ "MIT" ]
19
2017-09-03T05:01:30.000Z
2021-02-14T02:41:34.000Z
tl_algs/tnb.py
raijin0704/tl_algs
1f9b4329a96eae93610a49aac04f1cc9e1d6ca4f
[ "MIT" ]
1
2018-09-22T15:09:14.000Z
2018-09-22T23:10:16.000Z
tl_algs/tnb.py
raijin0704/tl_algs
1f9b4329a96eae93610a49aac04f1cc9e1d6ca4f
[ "MIT" ]
7
2017-09-06T08:22:15.000Z
2022-02-07T02:49:57.000Z
import numpy as np import pandas as pd import json from tl_algs import tl_alg def sim_minmax(column): """Similarity score using the range between min and max for a value Args: column: a given feature column Returns: tuple: A tuple of the form (min, max) """ return min(column), m...
36.774194
95
0.589864
a67c4928ab631edb9ab93cbdbc9659406d80a04a
6,291
py
Python
panda_gym/envs/robots/panda.py
quenting44/panda-gym
68c87420fa1ced96a52bae3eef2dd596fd4d820c
[ "MIT" ]
null
null
null
panda_gym/envs/robots/panda.py
quenting44/panda-gym
68c87420fa1ced96a52bae3eef2dd596fd4d820c
[ "MIT" ]
null
null
null
panda_gym/envs/robots/panda.py
quenting44/panda-gym
68c87420fa1ced96a52bae3eef2dd596fd4d820c
[ "MIT" ]
null
null
null
from typing import Optional import numpy as np from gym import spaces from panda_gym.envs.core import PyBulletRobot from panda_gym.pybullet import PyBullet class Panda(PyBulletRobot): """Panda robot in PyBullet. Args: sim (PyBullet): Simulation instance. block_gripper (bool, optional): Whet...
44.617021
123
0.658401
4281b1c239e6fdb3f3dc29bb3295b28c7b471597
2,637
py
Python
serverless-functions/mltraining-numbers/numbers.py
OwenG88/taxinomitis
3ab71d708bdc10301495eb8d689a1e1ef8ed22cd
[ "Apache-2.0" ]
101
2018-06-29T07:39:25.000Z
2022-01-07T23:44:27.000Z
serverless-functions/mltraining-numbers/numbers.py
yuzaishi/taxinomitis
ccc40b80cd8c52f9d710a84a82e6934d4af8846d
[ "Apache-2.0" ]
254
2018-06-26T22:35:42.000Z
2022-03-25T22:55:02.000Z
serverless-functions/mltraining-numbers/numbers.py
yuzaishi/taxinomitis
ccc40b80cd8c52f9d710a84a82e6934d4af8846d
[ "Apache-2.0" ]
127
2018-06-27T15:08:39.000Z
2022-03-30T06:37:26.000Z
#!/usr/bin/env python # reading the action input import sys import json # building the decision tree from sklearn.feature_extraction import DictVectorizer from sklearn import tree # visualising the decision tree from pydotplus import graph_from_dot_data # preparing the output for returning from io import BytesIO from ...
31.392857
73
0.644293
cd87e2ae473dde9acc22859dd18e08ad1eebd019
4,175
py
Python
kite-exp/ml/web-content/sources/data-pipeline/so_dumps_processor/parse_dumps.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
17
2022-01-10T11:01:50.000Z
2022-03-25T03:21:08.000Z
kite-exp/ml/web-content/sources/data-pipeline/so_dumps_processor/parse_dumps.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
1
2022-01-13T14:28:47.000Z
2022-01-13T14:28:47.000Z
kite-exp/ml/web-content/sources/data-pipeline/so_dumps_processor/parse_dumps.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
7
2022-01-07T03:58:10.000Z
2022-03-24T07:38:20.000Z
import xml.sax from xml.sax import ContentHandler import json import os from datetime import date, datetime class SOPostHandler(ContentHandler): def __init__(self): self.python_posts = {} self.counter = 0 self.python_counter = 0 def startElement(self, name, attrs): self.count...
34.791667
137
0.643353
8f513b1637995603f5024e5bf33503f2c5a8c57b
5,175
py
Python
laygo/generators/splash/BagModules/adc_sar_templates_fdsoi/adc_retimer_slice.py
tinapiao/Software-IC-Automation
74b23cd94aa6e4658b110e93b5deb635e014f3a6
[ "BSD-3-Clause" ]
26
2017-07-07T08:06:31.000Z
2021-11-25T06:41:24.000Z
laygo/generators/splash/BagModules/adc_sar_templates_fdsoi/adc_retimer_slice.py
tinapiao/Software-IC-Automation
74b23cd94aa6e4658b110e93b5deb635e014f3a6
[ "BSD-3-Clause" ]
9
2016-12-28T03:08:29.000Z
2019-01-30T16:00:28.000Z
laygo/generators/splash/BagModules/adc_sar_templates_fdsoi/adc_retimer_slice.py
tinapiao/Software-IC-Automation
74b23cd94aa6e4658b110e93b5deb635e014f3a6
[ "BSD-3-Clause" ]
10
2018-07-14T01:31:28.000Z
2021-08-21T10:18:30.000Z
# -*- coding: utf-8 -*- ######################################################################################################################## # # Copyright (c) 2014, Regents of the University of California # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are...
43.487395
120
0.635169
80daff00ebec19bca41f9037bcf2dfccb434c8b2
8,089
py
Python
sdk/python/setup.py
vas28r13/feast
1ba86fb0cc7f2e86b8c70477462faa68075f99cd
[ "Apache-2.0" ]
null
null
null
sdk/python/setup.py
vas28r13/feast
1ba86fb0cc7f2e86b8c70477462faa68075f99cd
[ "Apache-2.0" ]
null
null
null
sdk/python/setup.py
vas28r13/feast
1ba86fb0cc7f2e86b8c70477462faa68075f99cd
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Feast 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
29.414545
118
0.611324
86f8ca1b13eda43e23f2dfdcb9df9eb0bc89759f
9,153
py
Python
scripts/cyp2e1/hg38/bin/sv_modules.py
SBIMB/StellarPGx
42d4a34a26d2b4716a77aa889092f3a8fdb8a722
[ "MIT" ]
9
2021-01-28T08:32:37.000Z
2022-01-19T22:55:13.000Z
scripts/cyp2e1/hg38/bin/sv_modules.py
SBIMB/CypGen
7746066f7f29d1339d67b6327ea92ca0cd1d45f4
[ "MIT" ]
11
2021-05-10T11:27:32.000Z
2022-03-31T18:38:12.000Z
scripts/cyp2e1/hg38/bin/sv_modules.py
SBIMB/CypGen
7746066f7f29d1339d67b6327ea92ca0cd1d45f4
[ "MIT" ]
3
2021-06-29T12:25:52.000Z
2021-10-05T21:41:17.000Z
#!/usr/bin/env python3 import os import sys import math def get_total_CN(cov_file): all_reg =[] for line in open(cov_file, "r"): line = line.strip().split() all_reg.append(line) av_2e1_cov = float(all_reg[0][3])/(float(all_reg[0][2]) - float(all_reg[0][1])) av_vdr_cov = floa...
27.569277
161
0.575112
d4b1c025d92ba032c7c675ca3f35f6ae44a9993e
363
py
Python
app/pokemon/migrations/0008_auto_20201115_0031.py
innacroft/PokemonService
3dade01c3fe5d5bc56ff631f69a5548fafe4d076
[ "MIT" ]
null
null
null
app/pokemon/migrations/0008_auto_20201115_0031.py
innacroft/PokemonService
3dade01c3fe5d5bc56ff631f69a5548fafe4d076
[ "MIT" ]
null
null
null
app/pokemon/migrations/0008_auto_20201115_0031.py
innacroft/PokemonService
3dade01c3fe5d5bc56ff631f69a5548fafe4d076
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-11-15 00:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('pokemon', '0007_auto_20201115_0028'), ] operations = [ migrations.RenameField( model_name='pokemon', old_name='width', ...
19.105263
47
0.584022
64753d5bb822515cbaaafe3388e0a9298e02baca
4,989
py
Python
testscripts/RDKB/component/CMHAL/TS_CMHAL_GetConfigFileName.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/CMHAL/TS_CMHAL_GetConfigFileName.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/CMHAL/TS_CMHAL_GetConfigFileName.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2016 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not...
43.763158
165
0.707958
61c598c13b636a8c209aab715a75e43fc4d1e886
793
py
Python
data_structures/python/dp/coin_exchange_dp.py
minicloudsky/leetcode_solutions
c9c1a87a61c2867bd1f7015f0ebc4acedde3a469
[ "MIT" ]
null
null
null
data_structures/python/dp/coin_exchange_dp.py
minicloudsky/leetcode_solutions
c9c1a87a61c2867bd1f7015f0ebc4acedde3a469
[ "MIT" ]
null
null
null
data_structures/python/dp/coin_exchange_dp.py
minicloudsky/leetcode_solutions
c9c1a87a61c2867bd1f7015f0ebc4acedde3a469
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ 给定 amount 金额和coins数组的硬币, 求凑成amount金额的钱,最少需要多少枚硬币 eg. amount = 11 coins = [1,2,5] 输出 3 (5元 *2 + 1元 *1) """ def exchange(amount,coins): """初始化每个值为 amount+1,这样当最终求得的 dp[amount] 为 amount+1时候,说明无解. dp数组表示 i 元钱最少需要 dp[i]个硬币 """ dp = [amount+1 for x in range(a...
22.657143
55
0.558638
5f1ba596e7c80dfd44da7d100715320f2dcb3fed
45,104
py
Python
learning.py
mikksillaste/aima-python
cf7b90bccf10e682f073bb5dbdc2056be6f4eb40
[ "MIT" ]
null
null
null
learning.py
mikksillaste/aima-python
cf7b90bccf10e682f073bb5dbdc2056be6f4eb40
[ "MIT" ]
null
null
null
learning.py
mikksillaste/aima-python
cf7b90bccf10e682f073bb5dbdc2056be6f4eb40
[ "MIT" ]
null
null
null
"""Learn to estimate functions from examples. (Chapters 18, 20)""" from utils import ( removeall, unique, product, mode, argmax, argmax_random_tie, isclose, gaussian, dotproduct, vector_add, scalar_vector_product, weighted_sample_with_replacement, weighted_sampler, num_or_str, normalize, clip, sigmoid, pri...
36.819592
100
0.612606
8e03122ff4141e66cffe787365bad709bac022f8
2,750
py
Python
nikola/plugins/task/posts.py
pellenilsson/nikola
67a944a40b35584525a1bb363b3abd85582704cb
[ "MIT" ]
null
null
null
nikola/plugins/task/posts.py
pellenilsson/nikola
67a944a40b35584525a1bb363b3abd85582704cb
[ "MIT" ]
null
null
null
nikola/plugins/task/posts.py
pellenilsson/nikola
67a944a40b35584525a1bb363b3abd85582704cb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2012-2014 Roberto Alsina and others. # Permission is hereby granted, free of charge, to any # person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the # Software without restriction, including without limitation # the rights t...
35.714286
83
0.629818
52136baf903bab2ed17becc1a8332d03f84bd536
1,183
py
Python
arviz/plots/backends/matplotlib/parallelplot.py
aseyboldt/arviz
1fb40ff442f5ba4b8d11ceeaef27e6c339eb1685
[ "Apache-2.0" ]
1
2020-08-09T00:16:00.000Z
2020-08-09T00:16:00.000Z
arviz/plots/backends/matplotlib/parallelplot.py
aseyboldt/arviz
1fb40ff442f5ba4b8d11ceeaef27e6c339eb1685
[ "Apache-2.0" ]
null
null
null
arviz/plots/backends/matplotlib/parallelplot.py
aseyboldt/arviz
1fb40ff442f5ba4b8d11ceeaef27e6c339eb1685
[ "Apache-2.0" ]
null
null
null
"""Matplotlib Parallel coordinates plot.""" import matplotlib.pyplot as plt import numpy as np from . import backend_kwarg_defaults, backend_show def plot_parallel( ax, colornd, colord, shadend, diverging_mask, _posterior, textsize, var_names, xt_labelsize, legend, figsize...
22.320755
73
0.64328
0cbf9f752e1abacad54f558aeddb386f76357a92
24,084
py
Python
python/ccxt/async/bitfinex.py
ddcash/ccxt
ea85be932071891fbf0bb2001dee3b1c2be941e3
[ "MIT" ]
3
2018-01-16T02:03:26.000Z
2018-01-16T16:05:48.000Z
python/ccxt/async/bitfinex.py
snugghash/ccxt
ea85be932071891fbf0bb2001dee3b1c2be941e3
[ "MIT" ]
null
null
null
python/ccxt/async/bitfinex.py
snugghash/ccxt
ea85be932071891fbf0bb2001dee3b1c2be941e3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ccxt.async.base.exchange import Exchange import base64 import hashlib import math import json from ccxt.base.errors import ExchangeError from ccxt.base.errors import NotSupported from ccxt.base.errors import InsufficientFunds from ccxt.base.errors import InvalidOrder from ccxt.base.errors ...
37.281734
127
0.443365
c450ff4a7ec6c7014b3eaa26b957c9b1fa68b591
11,028
py
Python
grama/dfply/base.py
OscarDeGar/py_grama
0a02c291326b394a8d0c127dad4c58121e568777
[ "MIT" ]
13
2020-02-24T16:51:51.000Z
2022-03-30T18:56:55.000Z
grama/dfply/base.py
OscarDeGar/py_grama
0a02c291326b394a8d0c127dad4c58121e568777
[ "MIT" ]
78
2019-12-30T19:13:21.000Z
2022-02-23T18:17:54.000Z
grama/dfply/base.py
OscarDeGar/py_grama
0a02c291326b394a8d0c127dad4c58121e568777
[ "MIT" ]
7
2020-10-19T17:49:25.000Z
2021-08-15T20:46:52.000Z
__all__ = [ "Intention", "dfdelegate", "make_symbolic", "symbolic_evaluation", "group_delegation", "flatten" ] import warnings from .. import pipe, add_pipe # Use grama pipe to preserve metadata from functools import partial, wraps from numpy import zeros, array from pandas import Series, Inde...
26.76699
87
0.599837
696ebbc1f7fd623bd5664e38210fe206c81536e6
747
py
Python
mbpo/models/perturbed_env.py
anyboby/ConstrainedMBPO
036f4ffefc464e676a287c35c92cc5c0b8925fcf
[ "MIT" ]
5
2020-02-12T17:09:09.000Z
2021-09-29T16:06:40.000Z
mbpo/models/perturbed_env.py
anyboby/ConstrainedMBPO
036f4ffefc464e676a287c35c92cc5c0b8925fcf
[ "MIT" ]
10
2020-08-31T02:50:02.000Z
2022-02-09T23:36:43.000Z
mbpo/models/perturbed_env.py
anyboby/ConstrainedMBPO
036f4ffefc464e676a287c35c92cc5c0b8925fcf
[ "MIT" ]
2
2022-03-15T01:45:26.000Z
2022-03-15T06:46:47.000Z
import safety_gym import gym import numpy as np class PerturbedEnv: def __init__(self, env, std_inc=0.02): self.std_inc = std_inc self.env = env self.rollouts = 1 def step(self, act): next_obs, rewards, terminals, info = self.env.step(act) next_obs = next_obs + np.random...
31.125
96
0.643909
964123fd644bc3abdadfc3853dae47d1b50729ae
2,691
py
Python
chatbot/util/utils.py
mphe/pychatbot
66d994e8e96d699b19083b25ee0fe80b8874c42b
[ "MIT" ]
1
2020-05-28T18:26:11.000Z
2020-05-28T18:26:11.000Z
chatbot/util/utils.py
mphe/pychatbot
66d994e8e96d699b19083b25ee0fe80b8874c42b
[ "MIT" ]
null
null
null
chatbot/util/utils.py
mphe/pychatbot
66d994e8e96d699b19083b25ee0fe80b8874c42b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import asyncio from concurrent.futures import ThreadPoolExecutor from chatbot import api from typing import Callable, List def merge_dicts(srcdict: dict, mergedict: dict, overwrite=False): """Recursively merges `mergedict` into `srcdict` and returns `srcdict`. Makes sh...
28.935484
99
0.638424
bdbba0fd8c040ced67990520ee3f025e627f4232
248
py
Python
reskit/solarpower/__init__.py
r-beer/RESKit
1e8fe6c8176f995a53ca584450beb566fd40b4cb
[ "MIT" ]
null
null
null
reskit/solarpower/__init__.py
r-beer/RESKit
1e8fe6c8176f995a53ca584450beb566fd40b4cb
[ "MIT" ]
null
null
null
reskit/solarpower/__init__.py
r-beer/RESKit
1e8fe6c8176f995a53ca584450beb566fd40b4cb
[ "MIT" ]
null
null
null
from ._pv import SolarLibrary, simulatePVModule, locToTilt, frankCorrectionFactors, simulatePVModuleDistribution from ._score import scoreOpenfieldPVLocation from ._workflow import workflowOpenFieldFixed, workflowOpenFieldTracking, workflowRooftop
62
112
0.891129
2e6be13f738986f60604f8d96ca64f89cccc6756
5,476
py
Python
app/api/v1/schema/devicedetailsupdate.py
Fozia-Zafar/Device-Registration-Subsystem
7854dd314c2f5cb09d722d16ca0114c4cd9907b6
[ "BSD-3-Clause-Clear" ]
null
null
null
app/api/v1/schema/devicedetailsupdate.py
Fozia-Zafar/Device-Registration-Subsystem
7854dd314c2f5cb09d722d16ca0114c4cd9907b6
[ "BSD-3-Clause-Clear" ]
null
null
null
app/api/v1/schema/devicedetailsupdate.py
Fozia-Zafar/Device-Registration-Subsystem
7854dd314c2f5cb09d722d16ca0114c4cd9907b6
[ "BSD-3-Clause-Clear" ]
null
null
null
""" DRS Registration device update schema package. Copyright (c) 2018 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: *...
47.617391
118
0.708912
fb142d7bee45fe9be7f7b52cd2e51fbdf86124a4
354
py
Python
server.py
IllDepence/sirtetris.com_rebuild
68f7645ec69e6dd826a9414aad0238c14335f4f3
[ "WTFPL" ]
null
null
null
server.py
IllDepence/sirtetris.com_rebuild
68f7645ec69e6dd826a9414aad0238c14335f4f3
[ "WTFPL" ]
null
null
null
server.py
IllDepence/sirtetris.com_rebuild
68f7645ec69e6dd826a9414aad0238c14335f4f3
[ "WTFPL" ]
1
2015-01-11T18:36:16.000Z
2015-01-11T18:36:16.000Z
#!/usr/bin/env python import CGIHTTPServer import BaseHTTPServer # - - - for local testing - - - if __name__ == "__main__": server = BaseHTTPServer.HTTPServer handler = CGIHTTPServer.CGIHTTPRequestHandler server_address = ("", 8001) handler.cgi_directories = ["/"] httpd = server(server_address, h...
23.6
49
0.700565
9701066fe21722108896c779261004e70661cd83
75,888
py
Python
dist/weewx-3.9.2/bin/weewx/restx.py
v0rts/docker-weewx
70b2f252051dfead4fcb74e74662b297831e6342
[ "Apache-2.0" ]
10
2017-01-05T17:30:48.000Z
2021-09-18T15:04:20.000Z
dist/weewx-3.9.2/bin/weewx/restx.py
v0rts/docker-weewx
70b2f252051dfead4fcb74e74662b297831e6342
[ "Apache-2.0" ]
2
2019-07-21T10:48:42.000Z
2022-02-16T20:36:45.000Z
dist/weewx-3.9.2/bin/weewx/restx.py
v0rts/docker-weewx
70b2f252051dfead4fcb74e74662b297831e6342
[ "Apache-2.0" ]
12
2017-01-05T18:50:30.000Z
2021-10-05T07:35:45.000Z
# # Copyright (c) 2009-2015 Tom Keffer <tkeffer@gmail.com> # # See the file LICENSE.txt for your full rights. # """Publish weather data to RESTful sites such as the Weather Underground. GENERAL ARCHITECTURE Each protocol uses two classes: o A weewx service, that runs in the main th...
41.696703
171
0.565017
62abc6e722ab3048b766b8a62e31c6a3ff721910
30,481
py
Python
datalad/interface/base.py
andycon/datalad
47614e0b75cefc0ba59b2efe579c5ce540ebdcd9
[ "MIT" ]
null
null
null
datalad/interface/base.py
andycon/datalad
47614e0b75cefc0ba59b2efe579c5ce540ebdcd9
[ "MIT" ]
21
2015-03-12T11:48:18.000Z
2020-08-31T09:28:05.000Z
datalad/interface/base.py
bpoldrack/datalad
6d871f8e7ce033f5d79a1aee63ab4e2761028ff6
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
35.650292
97
0.590007
6fe7e78c4aa5cbccb77d8ae2905f4cd7bb1205ae
876
py
Python
commandHandler.py
Dadaskis/DadaskisBot
a09f3651fd5c33423ed21ab17e18419a2e4b9e42
[ "MIT" ]
9
2019-08-21T04:52:26.000Z
2020-07-20T08:09:38.000Z
commandHandler.py
Dadaskis/DadaskisBot
a09f3651fd5c33423ed21ab17e18419a2e4b9e42
[ "MIT" ]
null
null
null
commandHandler.py
Dadaskis/DadaskisBot
a09f3651fd5c33423ed21ab17e18419a2e4b9e42
[ "MIT" ]
null
null
null
from chainCommandHandler import ChainCommandHandler from lvlUpHandler import LvlUpHandler from questsHandler import QuestsHandler from rpCommands import RPCommands class ChatUserInfo: def __init__(self): self.chatName = "" self.chatID = 0 self.userName = "" self.userID = 0 self.platform = "" self.reply = ...
25.028571
92
0.712329
115b114b089fce5ef9e590856a223217d3c5e807
2,082
py
Python
diofant/matrices/__init__.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
57
2016-09-13T23:16:26.000Z
2022-03-29T06:45:51.000Z
diofant/matrices/__init__.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
402
2016-05-11T11:11:47.000Z
2022-03-31T14:27:02.000Z
diofant/matrices/__init__.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
20
2016-05-11T08:17:37.000Z
2021-09-10T09:15:51.000Z
"""A module that handles matrices. Includes functions for fast creating matrices like zero, one/eye, random matrix, etc. """ from .dense import (GramSchmidt, MutableDenseMatrix, MutableMatrix, casoratian, diag, eye, hessian, jordan_cell, list2numpy, matrix2numpy, matrix_multiply...
53.384615
79
0.641691
a1602e8e7f2214abb01a66c35cae005238b0333e
5,706
py
Python
cirq-core/cirq/protocols/json_test_data/spec.py
kevinsung/Cirq
5ee7ff62428d7242ff041d00305116fc78d9f784
[ "Apache-2.0" ]
1
2021-12-18T00:12:12.000Z
2021-12-18T00:12:12.000Z
cirq-core/cirq/protocols/json_test_data/spec.py
kevinsung/Cirq
5ee7ff62428d7242ff041d00305116fc78d9f784
[ "Apache-2.0" ]
1
2021-03-11T21:05:42.000Z
2021-03-17T19:44:34.000Z
cirq-core/cirq/protocols/json_test_data/spec.py
kevinsung/Cirq
5ee7ff62428d7242ff041d00305116fc78d9f784
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
30.190476
79
0.622503
c4b5b2936e878a9744c193e6212a0e8184b67908
3,228
py
Python
qtopic/pyqtopics.py
Quora-Users/pyQTopic
7285eda5db218a629eaea58382536a2d6a786ff2
[ "MIT" ]
9
2015-10-27T05:47:08.000Z
2022-01-04T22:58:04.000Z
qtopic/pyqtopics.py
Quora-Users/pyQTopic
7285eda5db218a629eaea58382536a2d6a786ff2
[ "MIT" ]
2
2015-11-02T01:31:19.000Z
2015-11-05T01:46:21.000Z
qtopic/pyqtopics.py
Quora-Users/pyQTopic
7285eda5db218a629eaea58382536a2d6a786ff2
[ "MIT" ]
2
2015-10-30T16:11:07.000Z
2020-06-14T19:29:12.000Z
import urllib2 from bs4 import BeautifulSoup import feedparser #################################################################### # API #################################################################### class QTopic: @staticmethod def get_follower_count(topic): url = "https://www.quora.com/" + t...
31.647059
74
0.525713
1591b5056facef54ddbe9145e2c54fe7f646aca1
86,298
py
Python
sphinx/writers/latex.py
mseng10/sphinx
d635d94eebbca0ebb1a5402aa07ed58c0464c6d3
[ "BSD-2-Clause" ]
null
null
null
sphinx/writers/latex.py
mseng10/sphinx
d635d94eebbca0ebb1a5402aa07ed58c0464c6d3
[ "BSD-2-Clause" ]
null
null
null
sphinx/writers/latex.py
mseng10/sphinx
d635d94eebbca0ebb1a5402aa07ed58c0464c6d3
[ "BSD-2-Clause" ]
null
null
null
""" sphinx.writers.latex ~~~~~~~~~~~~~~~~~~~~ Custom docutils writer for LaTeX. Much of this code is adapted from Dave Kuhlman's "docpy" writer from his docutils sandbox. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import r...
39.971283
109
0.562307
3087101bbdbbe4cb8b65614c34b259415a5e1602
33
py
Python
sendlog.py
NavonLab/power-check
95299d4a937c472aa7259543232a749609e12f09
[ "MIT" ]
null
null
null
sendlog.py
NavonLab/power-check
95299d4a937c472aa7259543232a749609e12f09
[ "MIT" ]
null
null
null
sendlog.py
NavonLab/power-check
95299d4a937c472aa7259543232a749609e12f09
[ "MIT" ]
null
null
null
from mail import update update()
11
23
0.787879
5603530be56d6ab8ab704076505be572415798a3
1,047
py
Python
build_data.py
janarthanan-rajendran/l2l-from-related-tasks
ce80e21cb21a7bb9a9b44f54d288caa2fa0453ed
[ "MIT" ]
134
2017-06-22T19:13:37.000Z
2022-02-07T12:32:35.000Z
build_data.py
janarthanan-rajendran/l2l-from-related-tasks
ce80e21cb21a7bb9a9b44f54d288caa2fa0453ed
[ "MIT" ]
12
2017-07-31T05:39:21.000Z
2021-08-28T10:18:14.000Z
build_data.py
janarthanan-rajendran/l2l-from-related-tasks
ce80e21cb21a7bb9a9b44f54d288caa2fa0453ed
[ "MIT" ]
43
2017-06-27T01:37:02.000Z
2021-06-22T16:03:38.000Z
import os import requests import shutil def download(url, path, fname): print('downloading ' + fname) outfile = os.path.join(path, fname) with requests.Session() as session: response = session.get(url, stream=True) CHUNK_SIZE = 32768 with open(outfile, 'wb') as f: for c...
30.794118
110
0.638013
06ff9eceb8444dbcfa16673d5338742f35cf0524
22,267
py
Python
contrib/devtools/copyright_header.py
hiphopcoin24/hiphopcoin24
09b780546ba9e28b452a8641863aafa90def40d1
[ "MIT" ]
null
null
null
contrib/devtools/copyright_header.py
hiphopcoin24/hiphopcoin24
09b780546ba9e28b452a8641863aafa90def40d1
[ "MIT" ]
null
null
null
contrib/devtools/copyright_header.py
hiphopcoin24/hiphopcoin24
09b780546ba9e28b452a8641863aafa90def40d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2020 The Hiphopcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import re import fnmatch import sys import subprocess import datetime import os #####################...
36.68369
121
0.601698
415276611c57e53bb77f4dc661884a5223cdc6e6
748
py
Python
var/spack/repos/builtin/packages/py-vine/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/py-vine/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/py-vine/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyVine(PythonPackage): """Promises, promises, promises.""" homepage = "https://pypi.o...
37.4
95
0.754011
c857573acf32f712e8dc607f4650617fbacca7fa
925
py
Python
dlkit/records/assessment/fbw/assessment_taken_records.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
dlkit/records/assessment/fbw/assessment_taken_records.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
dlkit/records/assessment/fbw/assessment_taken_records.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
""" records.assessment.fbw.assessment_taken_records.py """ from ...osid.base_records import QueryInitRecord,\ ObjectInitRecord class AdvancedQueryAssessmentTakenRecord(ObjectInitRecord): """No new methods on the taken record""" _implemented_record_type_identifiers = [ 'advanced-query' ] clas...
27.205882
80
0.705946
01d2232405aa5d4ae2d3719d48330d929246c2ac
23,894
py
Python
wavenet_skeleton/model.py
Luna86/tensorflow-wavenet_ssp
b0b9b55b16284f3810c7ac7f6d7eb0d637a3200d
[ "MIT" ]
null
null
null
wavenet_skeleton/model.py
Luna86/tensorflow-wavenet_ssp
b0b9b55b16284f3810c7ac7f6d7eb0d637a3200d
[ "MIT" ]
null
null
null
wavenet_skeleton/model.py
Luna86/tensorflow-wavenet_ssp
b0b9b55b16284f3810c7ac7f6d7eb0d637a3200d
[ "MIT" ]
null
null
null
import tensorflow as tf from .ops import causal_conv def create_variable(name, shape): '''Create a convolution filter variable with the specified name and shape, and initialize it using Xavier initialition.''' initializer = tf.contrib.layers.xavier_initializer_conv2d() variable = tf.Variable(initiali...
43.761905
111
0.556918
9679d8e647cc90d957826e45d7cf74d56dd61ea7
941
py
Python
pygp_retina/tests_interactive/show_average.py
SimLeek/pglsl-neural
8daaffded197cf7be4432754bc5941f1bca3239c
[ "MIT" ]
5
2018-03-25T23:43:32.000Z
2019-05-18T10:35:21.000Z
pygp_retina/tests_interactive/show_average.py
PyGPAI/PyGPNeural
8daaffded197cf7be4432754bc5941f1bca3239c
[ "MIT" ]
11
2017-12-24T20:03:16.000Z
2017-12-26T00:18:34.000Z
pygp_retina/tests_interactive/show_average.py
SimLeek/PyGPNeural
8daaffded197cf7be4432754bc5941f1bca3239c
[ "MIT" ]
null
null
null
from cv_pubsubs import webcam_pub as camp from cv_pubsubs import window_sub as win from pygp_retina.simple_average import avg_total_color if False: from typing import Tuple def display_average(cam, request_size=(1280, 720), # type: Tuple[int, int] fps_limit=60, # type: float ...
32.448276
81
0.600425
20ba36560d32edf12087e68ad900c6c2e4eca069
1,015
py
Python
test/file/test_file_util.py
Future-Walkers/python-mod
b472f7dc6636f5d5cc634906b09a51b29a435a87
[ "MIT" ]
null
null
null
test/file/test_file_util.py
Future-Walkers/python-mod
b472f7dc6636f5d5cc634906b09a51b29a435a87
[ "MIT" ]
null
null
null
test/file/test_file_util.py
Future-Walkers/python-mod
b472f7dc6636f5d5cc634906b09a51b29a435a87
[ "MIT" ]
3
2021-08-17T07:23:16.000Z
2021-08-17T07:31:03.000Z
# !/usr/bin/env python3 # -*-coding:utf-8 -*- """ # File : test_file_util.py # Time :2020/8/19 15:53 # Author :Rodney Cheung """ import os import unittest from test.testdata.test_util import TestUtil from wisbec.file.file import FileUtil class TestFileUtil(unittest.TestCase): @classmethod de...
29
105
0.682759
f64446ce6c783ef845f3e77e7c7f2763fd8c2263
167
py
Python
sample/config.py
YuMurata/ParameterOptimizer
60b172a7a9d3f54213ac3d59e15ebb4d707475c3
[ "MIT" ]
null
null
null
sample/config.py
YuMurata/ParameterOptimizer
60b172a7a9d3f54213ac3d59e15ebb4d707475c3
[ "MIT" ]
null
null
null
sample/config.py
YuMurata/ParameterOptimizer
60b172a7a9d3f54213ac3d59e15ebb4d707475c3
[ "MIT" ]
null
null
null
class TargetValue: MAX = 100 MIN = 0 @classmethod def normalize(cls, x: int) -> float: return x * (cls.MAX - cls.MIN) / (2**50 - 1) + cls.MIN
20.875
62
0.538922
0ae40b8b691455b9e22e989a785e19b6d5311515
11,920
py
Python
pydefect/tests/cli/vasp/test_main.py
KazMorita/pydefect
681e4bfe92c53edfe8b50cb72768114b28daabc9
[ "MIT" ]
1
2021-09-10T05:07:39.000Z
2021-09-10T05:07:39.000Z
pydefect/tests/cli/vasp/test_main.py
obaica/pydefect-1
31e5ad774845f436554ef15000b8eba3b168a65c
[ "MIT" ]
null
null
null
pydefect/tests/cli/vasp/test_main.py
obaica/pydefect-1
31e5ad774845f436554ef15000b8eba3b168a65c
[ "MIT" ]
1
2022-01-07T10:14:16.000Z
2022-01-07T10:14:16.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020. Distributed under the terms of the MIT License. from argparse import Namespace from pathlib import Path from pydefect.analyzer.calc_results import CalcResults from pydefect.analyzer.unitcell import Unitcell from pydefect.chem_pot_diag.chem_pot_diag import ChemPotDiag from...
34.550725
78
0.592701
9d3448b0e6a35eae42034adaa84f70e0e4db5370
72
py
Python
spotdl/metadata/embedders/__init__.py
khjxiaogu/spotify-downloader
a8dcb8d998da0769bbe210f2808d16b346453c23
[ "MIT" ]
4,698
2017-06-20T22:37:10.000Z
2022-03-28T13:38:07.000Z
spotdl/metadata/embedders/__init__.py
Delgan/spotify-downloader
8adf3e8d6b98269b1538dd91c9a44ed345c77545
[ "MIT" ]
690
2017-06-20T20:08:42.000Z
2022-02-26T23:36:07.000Z
spotdl/metadata/embedders/__init__.py
Delgan/spotify-downloader
8adf3e8d6b98269b1538dd91c9a44ed345c77545
[ "MIT" ]
741
2017-06-21T23:32:51.000Z
2022-03-07T12:11:54.000Z
from spotdl.metadata.embedders.default_embedder import EmbedderDefault
24
70
0.888889
7e198302ffe33fbc3fed3bd0a31229c658da07f9
500
py
Python
cryptoblotter/trades/__init__.py
PAV-Laboratory/cryptoblotter
f573592a3638fbc6cae24d76305de36b932949c6
[ "MIT" ]
1
2021-08-01T19:16:02.000Z
2021-08-01T19:16:02.000Z
cryptoblotter/trades/__init__.py
PAV-Laboratory/cryptoblotter
f573592a3638fbc6cae24d76305de36b932949c6
[ "MIT" ]
null
null
null
cryptoblotter/trades/__init__.py
PAV-Laboratory/cryptoblotter
f573592a3638fbc6cae24d76305de36b932949c6
[ "MIT" ]
null
null
null
from .candles import CandleCallback from .firestore import FirestoreTradeCallback from .gcppubsub import GCPPubSubTradeCallback from .thresh import ThreshCallback from .trades import ( NonSequentialIntegerTradeCallback, SequentialIntegerTradeCallback, TradeCallback, ) __all__ = [ "FirestoreTradeCallbac...
25
45
0.78
de3a26f4ebe4d3a6c55742ddf002e1e5a7531af6
3,123
py
Python
app/app/settings.py
samueltcsantos/recipe-app-api
aea5f1349dada1700b59b16346d3daedd67bb7e4
[ "MIT" ]
null
null
null
app/app/settings.py
samueltcsantos/recipe-app-api
aea5f1349dada1700b59b16346d3daedd67bb7e4
[ "MIT" ]
null
null
null
app/app/settings.py
samueltcsantos/recipe-app-api
aea5f1349dada1700b59b16346d3daedd67bb7e4
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
25.185484
91
0.693884
4df205db387336eeb7a1fb7d3d14ec7d648acf05
2,745
py
Python
Applications/ImageSegment/ImgSegCode.py
abefrandsen/numerical_computing
90559f7c4f387885eb44ea7b1fa19bb602f496cb
[ "CC-BY-3.0" ]
null
null
null
Applications/ImageSegment/ImgSegCode.py
abefrandsen/numerical_computing
90559f7c4f387885eb44ea7b1fa19bb602f496cb
[ "CC-BY-3.0" ]
null
null
null
Applications/ImageSegment/ImgSegCode.py
abefrandsen/numerical_computing
90559f7c4f387885eb44ea7b1fa19bb602f496cb
[ "CC-BY-3.0" ]
null
null
null
#Applications: Image Segmentation def imgAdj(img,radius, sigmaI, sigmaX): nodes = img.flatten() height,width=img.shape W = spar.lil_matrix((nodes.size, nodes.size), dtype=float) #Here we generate the values that go into the adjacency matrix W. For the most part we don't have to worry to #muc...
40.970149
126
0.494718
ac6d9c8dc689c6d9960400ef2c0fda5c90663c9b
567
py
Python
cogs/music.py
TKLProjects/TravBot.py
b09114a0f5e6b3b5caef75305818780b38027dbe
[ "Apache-2.0" ]
null
null
null
cogs/music.py
TKLProjects/TravBot.py
b09114a0f5e6b3b5caef75305818780b38027dbe
[ "Apache-2.0" ]
3
2020-05-11T14:59:34.000Z
2020-05-23T10:13:02.000Z
cogs/music.py
TKLProjects/TravBot.py
b09114a0f5e6b3b5caef75305818780b38027dbe
[ "Apache-2.0" ]
null
null
null
# Basic imports: import discord from discord.ext import commands # Cog class: class Music(commands.Cog): # Forgot what this does, add it: def __init__(self, client): self.client = client # This is an event: # @commands.Cog.listener() # async def on_ready(self): # print('This will be p...
23.625
55
0.657848
0a8c44e88d882f3febaac34f458268324a1148d8
1,152
py
Python
setup.py
lfigueirasfdc/sfdclib
a772ee925adf222d7205ca824a685d08e238b31a
[ "MIT" ]
null
null
null
setup.py
lfigueirasfdc/sfdclib
a772ee925adf222d7205ca824a685d08e238b31a
[ "MIT" ]
null
null
null
setup.py
lfigueirasfdc/sfdclib
a772ee925adf222d7205ca824a685d08e238b31a
[ "MIT" ]
null
null
null
"""sfdclib_alt package setup""" import textwrap from setuptools import setup setup( name='sfdclib_alt', version='0.1', author='Luis Figueira', author_email='lfigueira@salesforce.com', packages=['sfdclib_alt'], url='https://github.com/lfigueirasfdc/sfdclib', license='MIT', description=(...
33.882353
117
0.642361
51fac2904f9fcbfac5e589ad47c42fe57f13b3c1
150
py
Python
saas/system/api/resource/backend-framework/webpy/urls.py
iuskye/SREWorks
a2a7446767d97ec5f6d15bd00189c42150d6c894
[ "Apache-2.0" ]
407
2022-03-16T08:09:38.000Z
2022-03-31T12:27:10.000Z
saas/system/api/resource/backend-framework/webpy/urls.py
Kwafoor/SREWorks
37a64a0a84b29c65cf6b77424bd2acd0c7b42e2b
[ "Apache-2.0" ]
25
2022-03-22T04:27:31.000Z
2022-03-30T08:47:28.000Z
saas/system/api/resource/backend-framework/webpy/urls.py
Kwafoor/SREWorks
37a64a0a84b29c65cf6b77424bd2acd0c7b42e2b
[ "Apache-2.0" ]
109
2022-03-21T17:30:44.000Z
2022-03-31T09:36:28.000Z
#!/usr/bin/env python # encoding: utf-8 """ 可以在handler中使用app_route来动态注册路由,也可以使用老模式在urls.py里面显式声明 """ urls = ( r'/demo/(.+)', "DemoHandler" )
15
56
0.646667
8d641db3dd0be4f3405b083cff4fea14eba6704c
1,476
py
Python
packages/monomanage/src/monomanage/docs/api.py
0mars/graphx
8f58df3979b5fd96e4183811c9d8339c92367d00
[ "Apache-2.0" ]
null
null
null
packages/monomanage/src/monomanage/docs/api.py
0mars/graphx
8f58df3979b5fd96e4183811c9d8339c92367d00
[ "Apache-2.0" ]
null
null
null
packages/monomanage/src/monomanage/docs/api.py
0mars/graphx
8f58df3979b5fd96e4183811c9d8339c92367d00
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 Simon Biggs # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version (the "AGPL-3.0+"). # This progr...
36.9
74
0.754065
cdc7219b6c1b7039e26d7da65de1be083c5a17a4
15,833
py
Python
pymc3/distributions/transforms.py
katosh/pymc3
38fa415c15b0c0469fbd9cad3a3b9ba974fc8733
[ "Apache-2.0" ]
1
2019-10-31T11:45:13.000Z
2019-10-31T11:45:13.000Z
pymc3/distributions/transforms.py
katosh/pymc3
38fa415c15b0c0469fbd9cad3a3b9ba974fc8733
[ "Apache-2.0" ]
null
null
null
pymc3/distributions/transforms.py
katosh/pymc3
38fa415c15b0c0469fbd9cad3a3b9ba974fc8733
[ "Apache-2.0" ]
null
null
null
import theano import theano.tensor as tt from ..model import FreeRV from ..theanof import gradient, floatX from . import distribution from ..math import logit, invlogit from .distribution import draw_values import numpy as np from scipy.special import logit as nplogit from scipy.special import expit __all__ = [ ...
26.041118
121
0.557064
d1a669486b2869af6eb05154caf4428f672a9ae8
12,936
py
Python
tests/test_agents.py
DaoyiG/aima-python
446963c1047a1c1139cd33c03fb3ebf0d677750d
[ "MIT" ]
6,946
2016-02-27T19:28:07.000Z
2022-03-31T21:21:35.000Z
tests/test_agents.py
indhumathi1422/aima-python
9ea91c1d3a644fdb007e8dd0870202dcd9d078b6
[ "MIT" ]
733
2016-02-29T20:12:12.000Z
2022-02-19T11:56:13.000Z
tests/test_agents.py
indhumathi1422/aima-python
9ea91c1d3a644fdb007e8dd0870202dcd9d078b6
[ "MIT" ]
3,880
2016-02-24T21:13:35.000Z
2022-03-31T17:09:57.000Z
import random import pytest from agents import (ReflexVacuumAgent, ModelBasedVacuumAgent, TrivialVacuumEnvironment, compare_agents, RandomVacuumAgent, TableDrivenVacuumAgent, TableDrivenAgentProgram, RandomAgentProgram, SimpleReflexAgentProgram, ModelBasedReflexAgentProgram, Wa...
33.340206
119
0.65453
23d98df36096dbca926a47492e63e84234dd522e
340
py
Python
python/cursoemvideo/060.1.py
Gustavo-Martins/learning
a2167b894ab3a4bac5e3d7d4ac6671e1ee89e155
[ "Unlicense" ]
null
null
null
python/cursoemvideo/060.1.py
Gustavo-Martins/learning
a2167b894ab3a4bac5e3d7d4ac6671e1ee89e155
[ "Unlicense" ]
null
null
null
python/cursoemvideo/060.1.py
Gustavo-Martins/learning
a2167b894ab3a4bac5e3d7d4ac6671e1ee89e155
[ "Unlicense" ]
null
null
null
# Factorial calculator n = int(input('Digite um número para calcular seu fatorial: ')) counter = n f = 1 # Prevents multiplication by zero print('Calculando {}! = '.format(n), end='') while counter > 0: print('{}'.format(counter), end='') print(' x ' if counter > 1 else ' = ', end='') f *= counter counter -= 1 pr...
24.285714
63
0.626471
b7c78e775f1b922b7940e23bd23fa059c3501a77
1,342
py
Python
pipeline/reach-es-extractor/refparse/utils/exact_match.py
wellcometrust/reach
1aa42c7d8aaf0a91d033af8448a33f37563b0365
[ "MIT" ]
11
2019-11-04T08:24:00.000Z
2021-12-16T23:11:47.000Z
split_reach/extracter/refparse/utils/exact_match.py
AzizIlyosov/reach
9cd8e9ab11231cc3f761bff58df1c78d355e4d78
[ "MIT" ]
274
2019-10-30T15:37:17.000Z
2021-03-25T16:13:36.000Z
split_reach/extracter/refparse/utils/exact_match.py
AzizIlyosov/reach
9cd8e9ab11231cc3f761bff58df1c78d355e4d78
[ "MIT" ]
3
2019-11-12T13:38:14.000Z
2020-04-16T07:49:04.000Z
import re class ExactMatcher: def __init__(self, sectioned_documents, title_length_threshold): self.texts = [ (doc.id, self.clean_text(doc.section)) for doc in sectioned_documents ] self.title_length_threshold = title_length_threshold def clean_text(self, string): """ Input: -A...
26.313725
87
0.645306
ac4b2945dbd71a90b0ad2ab26f60561186dade66
3,443
py
Python
satchmo/payment/modules/protx/views.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
1
2016-05-09T12:21:04.000Z
2016-05-09T12:21:04.000Z
satchmo/payment/modules/protx/views.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
null
null
null
satchmo/payment/modules/protx/views.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
null
null
null
"""Protx checkout custom views""" from django.utils.translation import ugettext as _ from satchmo.configuration import config_get_group from satchmo.payment.views import payship, confirm import logging log = logging.getLogger('protx.views') def pay_ship_info(request): return payship.credit_pay_ship_info(requ...
45.302632
132
0.680511
1053020e8d1b9b1dd6c966a8064dd37fb89b37a5
5,620
py
Python
currencies/management/commands/currencies.py
zdanozdan/django-currencies
bf31996427eab55b2012597708d910d5dc67f454
[ "BSD-3-Clause" ]
null
null
null
currencies/management/commands/currencies.py
zdanozdan/django-currencies
bf31996427eab55b2012597708d910d5dc67f454
[ "BSD-3-Clause" ]
null
null
null
currencies/management/commands/currencies.py
zdanozdan/django-currencies
bf31996427eab55b2012597708d910d5dc67f454
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import logging from collections import OrderedDict from importlib import import_module from django.conf import settings from django.core.management.base import BaseCommand from ...models import Currency # The list of available backend currency sources sources = OrderedDict([ # oxr must rem...
36.732026
114
0.569751
5ab04aff758c57df0615c5e483bd620d7bbb9323
2,168
py
Python
aiida/backends/tests/control/test_computer_ctrl.py
iriberri/aiida_core
c4a1ec5dac92ee62c59d39ca580bde449f3abf73
[ "BSD-2-Clause" ]
null
null
null
aiida/backends/tests/control/test_computer_ctrl.py
iriberri/aiida_core
c4a1ec5dac92ee62c59d39ca580bde449f3abf73
[ "BSD-2-Clause" ]
null
null
null
aiida/backends/tests/control/test_computer_ctrl.py
iriberri/aiida_core
c4a1ec5dac92ee62c59d39ca580bde449f3abf73
[ "BSD-2-Clause" ]
1
2018-12-21T11:10:09.000Z
2018-12-21T11:10:09.000Z
"""Computer control module unit tests.""" from aiida.backends.testbase import AiidaTestCase from aiida.control.computer import ComputerBuilder, configure_computer class TestComputerControl(AiidaTestCase): def setUp(self): """Prepare current user and computer builder with common properties.""" fro...
41.692308
122
0.692804
bff51a1b14c6f1ba323999bf61e98fadc525464d
2,353
py
Python
multitiers/__main__.py
tresoldi/multitiers
e6ee43043e8655b170df18ca158212fd82ca1fa0
[ "MIT" ]
null
null
null
multitiers/__main__.py
tresoldi/multitiers
e6ee43043e8655b170df18ca158212fd82ca1fa0
[ "MIT" ]
null
null
null
multitiers/__main__.py
tresoldi/multitiers
e6ee43043e8655b170df18ca158212fd82ca1fa0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ __main__.py """ # Import Python standard libraries import argparse # Import our library import multitiers def parse_arguments(): """ Parse arguments and return a namespace. """ # TODO: add clts repos parser = argparse.ArgumentParser() parser.add_argument("filenam...
23.068627
87
0.554186
1a6de1b2293592acf3a4120cd54b9126f5e250a8
945
py
Python
numpy1.py
rwik/python_practice
e489988bf95c1781f22a1830cd4c136932405bed
[ "MIT" ]
null
null
null
numpy1.py
rwik/python_practice
e489988bf95c1781f22a1830cd4c136932405bed
[ "MIT" ]
null
null
null
numpy1.py
rwik/python_practice
e489988bf95c1781f22a1830cd4c136932405bed
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np import matplotlib.pyplot as plt from PIL import Image my_2nd_array = np.array([[1,2],[3,4]]) print(my_2nd_array) print(my_2nd_array.itemsize) print(my_2nd_array.dtype) #to optimize space used you may specify data type a = np.array([[1,2],[3,4]], dtype='int16') print(a.item...
21.976744
55
0.71746
d37a396be9582e190940a78184cee8c3891d9a90
1,231
py
Python
test/test_quota_reports.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
test/test_quota_reports.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
test/test_quota_reports.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 l...
25.122449
75
0.726239
97afe008e6495116860015c6417ff21e197ea792
1,356
py
Python
python_basics/9.data_types/python_lists.py
edilsonmatola/Python_Master
cef88a19e641f6454944bab358841b380c64699e
[ "MIT" ]
2
2022-03-12T07:53:23.000Z
2022-03-14T16:09:06.000Z
python_basics/9.data_types/python_lists.py
edilsonmatola/Python_Master
cef88a19e641f6454944bab358841b380c64699e
[ "MIT" ]
18
2022-03-13T19:45:48.000Z
2022-03-31T06:04:12.000Z
python_basics/9.data_types/python_lists.py
edilsonmatola/Python_Master
cef88a19e641f6454944bab358841b380c64699e
[ "MIT" ]
null
null
null
# Lists are one of the most versatile data types that allow us to work with multiple elements. # A list is created by placing items(elements) inside square brackets[], separated by commas. For example, # empty list list1 = [] print(list1) # Output: [] # list of integers numbers = [1, 2, 3] print(numbers) # Outp...
20.861538
106
0.696903
1b8d06059de57dd247504fa4e3a0f6e2bc87ecaf
48,107
bzl
Python
tensorflow/workspace.bzl
EmilWine/tensorflow
fe0e121bb8231307700114bf29b5ffa52d9a4f19
[ "Apache-2.0" ]
null
null
null
tensorflow/workspace.bzl
EmilWine/tensorflow
fe0e121bb8231307700114bf29b5ffa52d9a4f19
[ "Apache-2.0" ]
null
null
null
tensorflow/workspace.bzl
EmilWine/tensorflow
fe0e121bb8231307700114bf29b5ffa52d9a4f19
[ "Apache-2.0" ]
null
null
null
# TensorFlow external dependencies that can be loaded in WORKSPACE files. load("//third_party/gpus:cuda_configure.bzl", "cuda_configure") load("//third_party/gpus:rocm_configure.bzl", "rocm_configure") load("//third_party/tensorrt:tensorrt_configure.bzl", "tensorrt_configure") load("//third_party/nccl:nccl_configure.b...
46.979492
203
0.683331
f3cb10f8fcc951be6abb06293e4e7c66135d270b
2,630
py
Python
analysis/scripts/.ipynb_checkpoints/project_functions-checkpoint.py
data301-2020-winter2/course-project-group_1040
d5214ff361e210996618b5c2edd4f3f882d3df07
[ "MIT" ]
null
null
null
analysis/scripts/.ipynb_checkpoints/project_functions-checkpoint.py
data301-2020-winter2/course-project-group_1040
d5214ff361e210996618b5c2edd4f3f882d3df07
[ "MIT" ]
1
2021-03-24T08:27:48.000Z
2021-03-30T16:56:01.000Z
analysis/scripts/project_functions.py
data301-2020-winter2/course-project-group_1040
d5214ff361e210996618b5c2edd4f3f882d3df07
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import csv def load_and_process(address): #Method Chain #1: Load Data, clean out missing df1 = ( pd.read_csv(address) .rename(columns={"team1" : "home_team", "team2" : "away_team", "elo1_pre" : "home_...
47.818182
242
0.471863
3a64126a2e69e85a7e7f9e1720246bba1f5c8fc5
1,861
py
Python
RRMaps/RRMapDownload.py
ferdn4ndo/rrmaps
54e96144b9a3956d4570bd8c2414634bf673d472
[ "MIT" ]
null
null
null
RRMaps/RRMapDownload.py
ferdn4ndo/rrmaps
54e96144b9a3956d4570bd8c2414634bf673d472
[ "MIT" ]
null
null
null
RRMaps/RRMapDownload.py
ferdn4ndo/rrmaps
54e96144b9a3956d4570bd8c2414634bf673d472
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ## ## Tile downloading ## import os, sys, urllib2, time, random from PIL import Image class RRMapDownload(): def __init__(self): pass # self.DownloadTile(); def SetParams(self, TileX = 0, TileY = 0, Zoom = 10, Lyrs = 's'): self.TileX = T...
26.585714
150
0.497582
1494be16c40609d0444c2f9668f0d63a12878f4c
887
py
Python
BackendServer/handlers/BaseHandler.py
valiro21/mlc
428719b8589b3ca9922ae0c6fa527f47f8a98690
[ "MIT" ]
null
null
null
BackendServer/handlers/BaseHandler.py
valiro21/mlc
428719b8589b3ca9922ae0c6fa527f47f8a98690
[ "MIT" ]
null
null
null
BackendServer/handlers/BaseHandler.py
valiro21/mlc
428719b8589b3ca9922ae0c6fa527f47f8a98690
[ "MIT" ]
null
null
null
"""BaseHandler for BackendServer.""" # Copyright © 2017 Alexandru Miron <mironalex96@gmail.com> # Copyright © 2017 Valentin Rosca <rosca.valentin2012@gmail.com> # Copyright © 2017 Cosmin Pascaru <cosmin.pascaru2@gmail.com> import tornado.web from DB import session_factory class BaseHandler(tornado.web.RequestHandle...
29.566667
72
0.691094
e9abd93b8e50a4acf3a1459f5a8cf9f78c20fdd9
879
py
Python
Program Files/Python/getgeorefinfo.py
mariannecowherd/SnowPALM
17eaca86590c2b2da8cd53a6ca687c20dac41f56
[ "MIT" ]
null
null
null
Program Files/Python/getgeorefinfo.py
mariannecowherd/SnowPALM
17eaca86590c2b2da8cd53a6ca687c20dac41f56
[ "MIT" ]
null
null
null
Program Files/Python/getgeorefinfo.py
mariannecowherd/SnowPALM
17eaca86590c2b2da8cd53a6ca687c20dac41f56
[ "MIT" ]
1
2022-02-16T19:26:52.000Z
2022-02-16T19:26:52.000Z
import sys,os import gdal from gdalconst import * # Get georeferencing information from a raster file and print to text file src = sys.argv[1] fname_out = sys.argv[2] ds = gdal.Open(src, GA_ReadOnly) if ds is None: print('Content-Type: text/html\n') print('Could not open ' + src) sys.exit(1) # Get the g...
24.416667
85
0.700796
143913569192476050cc1b13722ece41aef16963
6,603
py
Python
incognitosdk/Response.py
abduramann/incognitosdk-python
67d6e4467567798a3104c203374543ecb17c775f
[ "MIT" ]
1
2021-05-03T00:41:40.000Z
2021-05-03T00:41:40.000Z
incognitosdk/Response.py
abduramann/incognitosdk-python
67d6e4467567798a3104c203374543ecb17c775f
[ "MIT" ]
1
2020-12-20T12:08:14.000Z
2020-12-20T12:08:14.000Z
incognitosdk/Response.py
abduramann/incognitosdk-python
67d6e4467567798a3104c203374543ecb17c775f
[ "MIT" ]
1
2020-11-27T00:44:11.000Z
2020-11-27T00:44:11.000Z
import json import re import logging class Response: def __init__(self, response, more_info=None): self.response = response self.more_info = more_info if more_info is not None: logging.debug(more_info) logging.debug(self.__str__()) def __str__(self): return...
30.150685
110
0.629259
b24a9299278ae69bd8c63c36613ccc8aaf0dd0de
2,141
py
Python
cnn/unet_model/unet.py
SoonerRobotics/igvc_software_2021
31d2f65fa9876cc7f9b2eb3c72a82817ef7a177c
[ "MIT" ]
4
2020-07-07T14:56:56.000Z
2021-08-13T23:31:07.000Z
cnn/unet_model/unet.py
pradumn203/igvc-winners-2021
658233609054eafac59603a77b2a092dc002e145
[ "MIT" ]
4
2020-09-22T01:53:48.000Z
2021-07-17T01:02:31.000Z
cnn/unet_model/unet.py
pradumn203/igvc-winners-2021
658233609054eafac59603a77b2a092dc002e145
[ "MIT" ]
3
2021-06-29T05:21:18.000Z
2021-08-23T05:03:27.000Z
import tensorflow as tf from tensorflow import keras from tensorflow.keras import datasets, layers, models def SCRUNet(): inp = layers.Input(shape=(256, 256, 3)) # Convolution layers to help learn some basic kernels pre_conv = layers.Conv2D(8, (3, 3), strides=(1, 1), padding='same', activation='relu')(inp...
48.659091
122
0.692667
bcd38b4d7ae190ff1c3f222bc2c26ae8de3bd766
9,516
py
Python
res/scripts/client/gui/mods/gambiter/flash.py
chipsi007/GUIFlash
78d711d336cf55d73e62d0ab996fc18bbfbd893f
[ "MIT" ]
5
2017-12-24T13:04:11.000Z
2020-11-16T09:02:01.000Z
res/scripts/client/gui/mods/gambiter/flash.py
chipsi007/GUIFlash
78d711d336cf55d73e62d0ab996fc18bbfbd893f
[ "MIT" ]
null
null
null
res/scripts/client/gui/mods/gambiter/flash.py
chipsi007/GUIFlash
78d711d336cf55d73e62d0ab996fc18bbfbd893f
[ "MIT" ]
2
2017-12-25T23:01:46.000Z
2021-05-25T20:36:36.000Z
# -*- coding: utf-8 -*- __all__ = ['COMPONENT_TYPE', 'COMPONENT_ALIGN', 'COMPONENT_EVENT'] import Event import BattleReplay import json, codecs from gui.app_loader import g_appLoader from gui.app_loader.settings import GUI_GLOBAL_SPACE_ID as SPACE_ID from gui.shared import g_eventBus, events, EVENT_BUS_SCOPE from gu...
29.924528
119
0.656263
3890e8628d3618c460d7317002d62cf12b3c5e0c
592
py
Python
setup.py
fmalina/emails
9bb467433e9ad8c8109d76edc894eaaaa309466d
[ "BSD-3-Clause" ]
4
2015-04-02T11:59:32.000Z
2017-07-08T21:33:11.000Z
setup.py
fmalina/django-emails
66f22c10e433620693d4fee67b5a49f0aecb7ea1
[ "BSD-3-Clause" ]
null
null
null
setup.py
fmalina/django-emails
66f22c10e433620693d4fee67b5a49f0aecb7ea1
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages import emails setup( name='emails', version=emails.__version__, description='Mailing and processing for high volume senders and recipients.', long_description=open('README.rst').read(), license='BSD License', platforms=['OS Independent'], keywords...
31.157895
81
0.717905
b3233141dae445b78877b25ad51adeea65a91865
1,400
py
Python
xl2code/writers/java_writer.py
youlanhai/ExcelToCode
d160c75b9b7a305f4b3367d85ee0550572869d3e
[ "MIT" ]
47
2017-06-23T07:47:50.000Z
2022-03-07T22:36:19.000Z
xl2code/writers/java_writer.py
twjitm/ExcelToCode
d160c75b9b7a305f4b3367d85ee0550572869d3e
[ "MIT" ]
1
2019-03-12T06:12:50.000Z
2019-04-03T00:50:01.000Z
xl2code/writers/java_writer.py
twjitm/ExcelToCode
d160c75b9b7a305f4b3367d85ee0550572869d3e
[ "MIT" ]
23
2017-05-12T07:46:07.000Z
2022-01-22T03:19:50.000Z
# -*- coding: utf-8 -*- from copy import copy from json_writer import JsonWriter import util # 当前Writer的功能是生成java专用的json格式,而不是java代码 # json格式: # 整体是一个字典,包含两个元素,header和body # header有两行: # 第一行是表头 # 第二行是列名 # body是一个二维数组: # 对应了excel的各个单元 class JavaWriter(JsonWriter): def begin_write(self): sup...
20.588235
56
0.69
d74eb42e1b80dce77792a325ffce3f2aa0eb34a9
2,145
py
Python
runtest.py
daxm/yfinance
e57ef355f827766f678cbf9c75fc81ec33709c91
[ "Apache-2.0" ]
null
null
null
runtest.py
daxm/yfinance
e57ef355f827766f678cbf9c75fc81ec33709c91
[ "Apache-2.0" ]
null
null
null
runtest.py
daxm/yfinance
e57ef355f827766f678cbf9c75fc81ec33709c91
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # # Yahoo! Finance market data downloader (+fix for Pandas Datareader) # https://github.com/ranaroussi/yfinance """ Sanity check for most common library uses all working - Stock: Microsoft - ETF: Russell 2000 Growth - Mutual fund: Vanguard 500 Index fund - Index: S&P500 -...
32.014925
88
0.670396
e4a12d3f1ae69f02d18c532deb42ff5e7c374daf
274
py
Python
tests/conftest.py
unt-libraries/aubrey-transcription
0383d67a0ed3f3ddaa306edfb09b2da1364e4178
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
unt-libraries/aubrey-transcription
0383d67a0ed3f3ddaa306edfb09b2da1364e4178
[ "BSD-3-Clause" ]
8
2018-08-22T19:14:38.000Z
2019-11-22T17:12:56.000Z
tests/conftest.py
unt-libraries/aubrey-transcription
0383d67a0ed3f3ddaa306edfb09b2da1364e4178
[ "BSD-3-Clause" ]
null
null
null
import pytest from aubrey_transcription import create_app @pytest.fixture def app(): app = create_app({'TESTING': True}) yield app @pytest.fixture def client(app): return app.test_client() @pytest.fixture def runner(app): return app.test_cli_runner()
13.7
43
0.718978
7211ad9c3265f996c1b54e4160f286df0f05c9b6
3,142
py
Python
app/users.py
viraajpunia/Mini-Amazon
666417ce697c745f25c3ce978161483943a66ae0
[ "MIT" ]
null
null
null
app/users.py
viraajpunia/Mini-Amazon
666417ce697c745f25c3ce978161483943a66ae0
[ "MIT" ]
1
2021-12-08T23:16:38.000Z
2021-12-08T23:16:38.000Z
app/users.py
viraajpunia/Mini-Amazon
666417ce697c745f25c3ce978161483943a66ae0
[ "MIT" ]
null
null
null
from flask import render_template, redirect, url_for, flash, request from werkzeug.urls import url_parse from flask_login import login_user, logout_user, current_user from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField from wtforms.validators import ValidationError,...
38.790123
81
0.662954
b4324cc08178e72b775618e3b83e8f7cb8d94ae8
1,061
py
Python
aoc2021/aoc/day15/dijkstras.py
e-jameson/aoc
f26196d5564a9ac8027532c276af00aaf3718c6e
[ "MIT" ]
null
null
null
aoc2021/aoc/day15/dijkstras.py
e-jameson/aoc
f26196d5564a9ac8027532c276af00aaf3718c6e
[ "MIT" ]
null
null
null
aoc2021/aoc/day15/dijkstras.py
e-jameson/aoc
f26196d5564a9ac8027532c276af00aaf3718c6e
[ "MIT" ]
null
null
null
from collections import defaultdict class Graph: def __init__(self): self.nodes = set() self.edges = defaultdict(list) self.distances = {} def add_node(self, value): self.nodes.add(value) def add_edge(self, from_node, to_node, distance): self.edges[from_node].append(to_node) self.edges[...
23.577778
65
0.651272
ea292e44581a61cc7068f9e0abb7fd0d929f3d72
1,020
py
Python
tests/sparseml/onnx/sparsification/test_info.py
clementpoiret/sparseml
8442a6ef8ba11fb02f5e51472dd68b72438539b9
[ "Apache-2.0" ]
922
2021-02-04T17:51:54.000Z
2022-03-31T20:49:26.000Z
tests/sparseml/onnx/sparsification/test_info.py
clementpoiret/sparseml
8442a6ef8ba11fb02f5e51472dd68b72438539b9
[ "Apache-2.0" ]
197
2021-02-04T22:17:21.000Z
2022-03-31T13:58:55.000Z
tests/sparseml/onnx/sparsification/test_info.py
clementpoiret/sparseml
8442a6ef8ba11fb02f5e51472dd68b72438539b9
[ "Apache-2.0" ]
80
2021-02-04T22:20:14.000Z
2022-03-30T19:36:15.000Z
# Copyright (c) 2021 - present / Neuralmagic, 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 # # Unless required b...
39.230769
83
0.776471
363674ab097633c206abddc6c3e8ca5e7fa79235
4,689
py
Python
scripts/retrieve_analytics.py
Carberra/analytics
3ad7206778c2ef36c6bb46075ba7d6f4dabd7a56
[ "BSD-3-Clause" ]
null
null
null
scripts/retrieve_analytics.py
Carberra/analytics
3ad7206778c2ef36c6bb46075ba7d6f4dabd7a56
[ "BSD-3-Clause" ]
2
2021-01-17T20:57:09.000Z
2021-01-17T23:35:19.000Z
scripts/retrieve_analytics.py
Carberra/analytics
3ad7206778c2ef36c6bb46075ba7d6f4dabd7a56
[ "BSD-3-Clause" ]
1
2022-01-12T12:11:04.000Z
2022-01-12T12:11:04.000Z
import argparse import datetime as dt import json import os from pathlib import Path import google.oauth2.credentials import google_auth_oauthlib.flow import pandas as pd from google_auth_oauthlib.flow import InstalledAppFlow from googleapiclient.discovery import build from googleapiclient.errors import HttpError DAT...
29.124224
128
0.653231
75f2b4c5cdd10db0663c8b9a0682675df75f9532
80,180
py
Python
app.py
Cooops/ABUpower
ec84f8f0177b09a09195a974357d328376df7efc
[ "MIT" ]
2
2018-10-09T01:17:21.000Z
2019-05-17T11:01:46.000Z
app.py
Cooops/ABUpower
ec84f8f0177b09a09195a974357d328376df7efc
[ "MIT" ]
null
null
null
app.py
Cooops/ABUpower
ec84f8f0177b09a09195a974357d328376df7efc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Flask, jsonify, request, render_template, make_response, redirect, url_for from flask_restful import Resource, Api from jinja2 import Template import json import requests from utils.gen_utils import * from model.build_dataframes import * from model.build_models import * ###...
62.591725
275
0.724944
00b8a754caae0a4b841a5cbf2c724b6541742ab9
7,289
py
Python
diofant/calculus/optimization.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
null
null
null
diofant/calculus/optimization.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
null
null
null
diofant/calculus/optimization.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
null
null
null
from ..core import Integer, Lt, diff, nan, oo, sympify from ..core.compatibility import is_sequence from ..functions import Min from ..matrices import eye, zeros from ..series import limit from ..sets import Interval from ..solvers import reduce_inequalities, solve from ..solvers.inequalities import canonicalize_inequa...
27.714829
74
0.516532
be10d5005166bb8a864df1bff8dac18dbb5c986f
68,280
py
Python
cde-root/usr/lib64/python2.4/site-packages/numpy/core/numeric.py
NirBenTalLab/proorigami-cde-package
273379075830a9b94d3f2884661a54f853777ff6
[ "MIT" ]
1
2017-02-08T12:46:18.000Z
2017-02-08T12:46:18.000Z
cde-root/usr/lib64/python2.4/site-packages/numpy/core/numeric.py
NirBenTalLab/proorigami-cde-package
273379075830a9b94d3f2884661a54f853777ff6
[ "MIT" ]
null
null
null
cde-root/usr/lib64/python2.4/site-packages/numpy/core/numeric.py
NirBenTalLab/proorigami-cde-package
273379075830a9b94d3f2884661a54f853777ff6
[ "MIT" ]
null
null
null
__all__ = ['newaxis', 'ndarray', 'flatiter', 'ufunc', 'arange', 'array', 'zeros', 'empty', 'broadcast', 'dtype', 'fromstring', 'fromfile', 'frombuffer','newbuffer', 'getbuffer', 'int_asbuffer', 'where', 'argwhere', 'concatenate', 'fastCopyAndTranspose', 'lexsort', ...
28.45
83
0.573828
fc208edfc6e7384f66d605747a5e9c22d3602282
298
py
Python
src2/utils/torch_utils.py
LIV4D/RetinalSurgeryRecognition
06621e8078b4ee60ed77ba2db0d0c209429e90b8
[ "MIT" ]
null
null
null
src2/utils/torch_utils.py
LIV4D/RetinalSurgeryRecognition
06621e8078b4ee60ed77ba2db0d0c209429e90b8
[ "MIT" ]
null
null
null
src2/utils/torch_utils.py
LIV4D/RetinalSurgeryRecognition
06621e8078b4ee60ed77ba2db0d0c209429e90b8
[ "MIT" ]
null
null
null
from torch import nn class DataParallel(nn.DataParallel): """ Allow nn.DataParallel to call model's attributes. """ def __getattr__(self, name): try: return super().__getattr__(name) except AttributeError: return getattr(self.module, name)
22.923077
53
0.627517
ea2428b4316bc70b25fabf26d12a83fb7d2b0f7e
1,535
py
Python
setup.py
zeroday0619/user_agent
03b0154d7019ddc8e4323a07f106a383cbd8af22
[ "MIT" ]
null
null
null
setup.py
zeroday0619/user_agent
03b0154d7019ddc8e4323a07f106a383cbd8af22
[ "MIT" ]
null
null
null
setup.py
zeroday0619/user_agent
03b0154d7019ddc8e4323a07f106a383cbd8af22
[ "MIT" ]
null
null
null
import os from setuptools import setup ROOT = os.path.dirname(os.path.realpath(__file__)) setup( # Meta data name='user_agent', version='0.1.9', author="Gregory Petukhov", author_email='lorien@lorien.name', maintainer="Gregory Petukhov", maintainer_email='lorien@lorien.name', url='ht...
31.979167
71
0.621498
629602a088ec1ac93de8071a6317ea21260e5298
1,305
py
Python
src/globus_cli/commands/task/generate_submission_id.py
sirosen/temp-cli-test
416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6
[ "Apache-2.0" ]
47
2016-04-21T19:51:17.000Z
2022-02-25T14:13:30.000Z
src/globus_cli/commands/task/generate_submission_id.py
sirosen/temp-cli-test
416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6
[ "Apache-2.0" ]
421
2016-04-20T18:45:24.000Z
2022-03-14T14:50:41.000Z
src/globus_cli/commands/task/generate_submission_id.py
sirosen/temp-cli-test
416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6
[ "Apache-2.0" ]
20
2016-09-10T20:25:27.000Z
2021-10-06T16:02:47.000Z
from globus_cli.login_manager import LoginManager from globus_cli.parsing import command from globus_cli.termio import FORMAT_TEXT_RAW, formatted_print @command( "generate-submission-id", short_help="Get a task submission ID", adoc_output=( "When text output is requested, the generated 'UUID' is t...
35.27027
88
0.739464
aec7b94b2a09918ac03c0e5a036f63f3b7c85783
9,527
py
Python
flashexpander/src/flashexpander.py
Mariusz1970/enigma2-plugins-1
126d31d075c156f32b09d4321ebe1a17f93a5bd6
[ "OLDAP-2.3" ]
2
2020-09-02T18:25:39.000Z
2020-09-02T18:39:07.000Z
flashexpander/src/flashexpander.py
Mariusz1970/enigma2-plugins-1
126d31d075c156f32b09d4321ebe1a17f93a5bd6
[ "OLDAP-2.3" ]
null
null
null
flashexpander/src/flashexpander.py
Mariusz1970/enigma2-plugins-1
126d31d075c156f32b09d4321ebe1a17f93a5bd6
[ "OLDAP-2.3" ]
11
2015-02-26T20:59:14.000Z
2021-09-20T08:23:03.000Z
# -*- coding: utf-8 -*- # code by GeminiTeam from Screens.Screen import Screen from Screens.ChoiceBox import ChoiceBox from Screens.MessageBox import MessageBox from Components.ActionMap import ActionMap from Components.MenuList import MenuList from Components.Harddisk import harddiskmanager, Harddisk from Components...
31.546358
217
0.653826
e62a0759b9120de8114c5bec45f44eeea2c41e3c
5,518
py
Python
Tests/test_SCOP_Scop.py
erpeg/biopython
296b6b451ce7161fdace2fd36d0817722491d733
[ "BSD-3-Clause" ]
2
2020-06-25T12:52:03.000Z
2020-07-11T09:47:34.000Z
Tests/test_SCOP_Scop.py
cosign070128/biopython
2f02e34ba76306e9c27eec9e051809bec2cece9b
[ "BSD-3-Clause" ]
9
2020-05-05T00:54:23.000Z
2020-06-09T17:10:45.000Z
Tests/test_SCOP_Scop.py
cosign070128/biopython
2f02e34ba76306e9c27eec9e051809bec2cece9b
[ "BSD-3-Clause" ]
3
2020-06-29T13:07:46.000Z
2021-06-14T20:11:55.000Z
# Copyright 2001 by Gavin E. Crooks. All rights reserved. # Modifications Copyright 2010 Jeffrey Finkelstein. All rights reserved. # # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Unit test for ...
34.704403
87
0.615259
cacc5f492b569659f7f73e4b9ea1de827e9b0134
1,721
py
Python
tests/test_qft.py
AGaliciaMartinez/qutip-qip
73411ae884d117f05ff0ecb920ca055940fc76dd
[ "BSD-3-Clause" ]
36
2020-05-22T10:51:13.000Z
2022-03-07T05:41:08.000Z
tests/test_qft.py
AGaliciaMartinez/qutip-qip
73411ae884d117f05ff0ecb920ca055940fc76dd
[ "BSD-3-Clause" ]
73
2020-07-14T07:26:48.000Z
2022-03-25T08:00:43.000Z
tests/test_qft.py
AGaliciaMartinez/qutip-qip
73411ae884d117f05ff0ecb920ca055940fc76dd
[ "BSD-3-Clause" ]
24
2020-06-18T22:59:20.000Z
2022-03-12T05:11:59.000Z
from numpy.testing import assert_, assert_equal, assert_string_equal, run_module_suite from qutip_qip.algorithms.qft import qft, qft_steps, qft_gate_sequence from qutip_qip.operations import gate_sequence_product class TestQFT: """ A test class for the QuTiP functions for QFT """ def testQFTCompariso...
31.290909
86
0.583963
29a2fe16a4e4e250675dc31fa497a6e6dcfa7422
1,352
py
Python
data/p2DJ/New/program/pyquil/startPyquil383.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/pyquil/startPyquil383.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/pyquil/startPyquil383.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=20 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 pr...
23.310345
64
0.590976
5f128179b1655b7d231a72c72acfd828e5e20904
893
py
Python
src/syft/ast/util.py
chinmayshah99/PySyft
c26c7c9478df37da7d0327a67a5987c2dfd91cbe
[ "MIT" ]
1
2020-12-22T17:22:13.000Z
2020-12-22T17:22:13.000Z
src/syft/ast/util.py
chinmayshah99/PySyft
c26c7c9478df37da7d0327a67a5987c2dfd91cbe
[ "MIT" ]
null
null
null
src/syft/ast/util.py
chinmayshah99/PySyft
c26c7c9478df37da7d0327a67a5987c2dfd91cbe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This is a skeleton file that can serve as a starting point for a Python console script. To run this script uncomment the following lines in the [options.entry_points] section in setup.cfg: console_scripts = fibonacci = syft.skeleton:run Then run `python setup.py install` which...
28.806452
77
0.74692
28e95173f9ce666869a5ebc79ce293ebf114d125
13,669
py
Python
py3status/modules/lm_sensors.py
cstruck/py3status
102ad92d54226ad874e8792827b6f91f7346f9f1
[ "BSD-3-Clause" ]
null
null
null
py3status/modules/lm_sensors.py
cstruck/py3status
102ad92d54226ad874e8792827b6f91f7346f9f1
[ "BSD-3-Clause" ]
null
null
null
py3status/modules/lm_sensors.py
cstruck/py3status
102ad92d54226ad874e8792827b6f91f7346f9f1
[ "BSD-3-Clause" ]
null
null
null
r""" Display temperatures, voltages, fans, and more from hardware sensors. Configuration parameters: cache_timeout: refresh interval for this module (default 10) chips: specify a list of chips to use (default []) format: display format for this module (default '{format_chip}') format_chip: display form...
39.62029
88
0.543639
2c29c84a7fa18ade1c9b21879610b016c84aaaea
575
py
Python
apps/predict/src/dsp.py
kikei/btc-bot-ai
cb118fa1809ebef472a2025be697c9050e948009
[ "Apache-2.0" ]
1
2020-02-02T13:53:21.000Z
2020-02-02T13:53:21.000Z
apps/predict/src/dsp.py
kikei/btc-bot-ai
cb118fa1809ebef472a2025be697c9050e948009
[ "Apache-2.0" ]
null
null
null
apps/predict/src/dsp.py
kikei/btc-bot-ai
cb118fa1809ebef472a2025be697c9050e948009
[ "Apache-2.0" ]
null
null
null
import numpy as np def lpfilter(size): return np.full(size, 1.0 / size) def crosszero(v, thres=0., ud=+1.0, du=-1.0): w = np.zeros(v.shape) iud = idu = None for i in range(1, len(v)): if v[i-1] > 0. > v[i]: if -thres > v[i]: w[i] = du else: idu = i elif v[i-1] > -thres > v[...
21.296296
52
0.469565
b5b35b653a2ace33dcf5b3e05131d4f3a6af1531
1,011
py
Python
betty/cropper/storage.py
theonion/betty-cropper
bb0e570c1eb0ddb2f39d109f996edd1d417d1fe4
[ "MIT" ]
14
2015-01-13T21:24:30.000Z
2020-12-18T23:39:35.000Z
betty/cropper/storage.py
theonion/betty-cropper
bb0e570c1eb0ddb2f39d109f996edd1d417d1fe4
[ "MIT" ]
39
2015-06-08T20:56:35.000Z
2017-06-09T03:20:08.000Z
betty/cropper/storage.py
theonion/betty-cropper
bb0e570c1eb0ddb2f39d109f996edd1d417d1fe4
[ "MIT" ]
5
2015-12-04T20:22:08.000Z
2018-03-05T19:17:43.000Z
from storages.backends.s3boto import S3BotoStorage from betty.conf.app import settings logger = __import__('logging').getLogger(__name__) class MigratedS3BotoStorage(S3BotoStorage): """Workaround for allowing using 2 different storage systems in parallel during migration to S3 storage. Use this st...
36.107143
99
0.709199
41c3b5c6d3a6b00d82718308dbf5ba1d4904e8d9
4,794
py
Python
dnnv/nn/operations/patterns.py
samysweb/dnnv
58fb95b7300914d9da28eed86c39eca473b1aaef
[ "MIT" ]
5
2022-01-28T20:30:34.000Z
2022-03-17T09:26:52.000Z
dnnv/nn/operations/patterns.py
samysweb/dnnv
58fb95b7300914d9da28eed86c39eca473b1aaef
[ "MIT" ]
9
2022-01-27T03:50:28.000Z
2022-02-08T18:42:17.000Z
dnnv/nn/operations/patterns.py
samysweb/dnnv
58fb95b7300914d9da28eed86c39eca473b1aaef
[ "MIT" ]
2
2022-02-03T17:32:43.000Z
2022-03-24T16:38:49.000Z
from abc import ABC, abstractmethod from typing import Optional, Sequence, Union, TYPE_CHECKING if TYPE_CHECKING: from .base import Op, Operation OpPatternType = Union["Op", "OperationPattern"] class OperationPattern(ABC): @abstractmethod def match(self, operations: Sequence["Operation"]): raise ...
33.291667
76
0.605966
25ff8e3528609950271e7509c2f7821beadf4143
31,917
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/_policy_set_definitions_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2021-06-02T08:01:35.000Z
2021-06-02T08:01:35.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/_policy_set_definitions_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/_policy_set_definitions_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # 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 ...
46.867841
212
0.680578
b7fa1c8d58fd027320dd0b9eaf71e218106cea09
98
py
Python
flask_app/twitoff/__init__.py
1aaronscott/DS-Unit-3-Sprint-3-Productization-and-Cloud
fcd06800f25b277195a4ec5117faa750afba96cb
[ "MIT" ]
null
null
null
flask_app/twitoff/__init__.py
1aaronscott/DS-Unit-3-Sprint-3-Productization-and-Cloud
fcd06800f25b277195a4ec5117faa750afba96cb
[ "MIT" ]
null
null
null
flask_app/twitoff/__init__.py
1aaronscott/DS-Unit-3-Sprint-3-Productization-and-Cloud
fcd06800f25b277195a4ec5117faa750afba96cb
[ "MIT" ]
null
null
null
""" Entry point for TwitOff flask application """ from .app import create_app APP = create_app()
14
41
0.734694
017dfcecbe7812d7fca1e51abb1906e5594ec13b
1,200
py
Python
cmp_changefile.py
YnkDK/dynAlg14
120a49cb385246afb92aea89920200d3b3db2835
[ "MIT" ]
null
null
null
cmp_changefile.py
YnkDK/dynAlg14
120a49cb385246afb92aea89920200d3b3db2835
[ "MIT" ]
null
null
null
cmp_changefile.py
YnkDK/dynAlg14
120a49cb385246afb92aea89920200d3b3db2835
[ "MIT" ]
null
null
null
#!/usr/bin/python2 # -*- coding: utf-8 -*- from os.path import abspath, join from filecmp import cmp as diff from itertools import combinations from math import ceil from utils import get_test_cases, get_test_case_and_alg # Define path to output folder OUTPUT_PATH = abspath(join(".", "output")) # Holds the test cases, ...
27.272727
75
0.670833
effce1c6c2425fd38b0da11cf4338f3619377a97
1,919
py
Python
shop/migrations/0001_initial.py
TerminalBen/shop
dcdae0ea80c767d4ddbaff493724bf49484dbeef
[ "MIT" ]
1
2022-02-11T18:09:58.000Z
2022-02-11T18:09:58.000Z
shop/migrations/0001_initial.py
TerminalBen/shop
dcdae0ea80c767d4ddbaff493724bf49484dbeef
[ "MIT" ]
null
null
null
shop/migrations/0001_initial.py
TerminalBen/shop
dcdae0ea80c767d4ddbaff493724bf49484dbeef
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-10 19:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
39.163265
138
0.550808
60354ea64469cc423690332aa3267c100e97b5db
3,481
py
Python
ponzi/color/space.py
pyramidscheme/ponzi
5fe1651c22974b91370b21ac50f2b09a67397b91
[ "MIT" ]
null
null
null
ponzi/color/space.py
pyramidscheme/ponzi
5fe1651c22974b91370b21ac50f2b09a67397b91
[ "MIT" ]
null
null
null
ponzi/color/space.py
pyramidscheme/ponzi
5fe1651c22974b91370b21ac50f2b09a67397b91
[ "MIT" ]
null
null
null
from math import atan2, cos, degrees, sin, sqrt, radians from typing import Callable, NamedTuple from . import linear class RGB(NamedTuple): """ RGB is an sRGB color. """ r: float # [0-1] g: float # [0-1] b: float # [0-1] @property def valid(self) -> bool: return 0.0 <= s...
22.901316
85
0.527722
7f39caec5a0c7898f2b7957b4d619c24149d01fe
1,992
py
Python
ltpylib/timing.py
lancethomps/lt-pylib
fb1f3b0b62e70d950db84119facbdf481e3b5e4d
[ "MIT" ]
null
null
null
ltpylib/timing.py
lancethomps/lt-pylib
fb1f3b0b62e70d950db84119facbdf481e3b5e4d
[ "MIT" ]
null
null
null
ltpylib/timing.py
lancethomps/lt-pylib
fb1f3b0b62e70d950db84119facbdf481e3b5e4d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging import time from typing import Callable, SupportsFloat def format_seconds(frac_seconds): hours, rem = divmod(float(frac_seconds), 3600) minutes, seconds = divmod(rem, 60) return "{0:0>2}:{1:0>2}:{2:06.3f}".format(int(hours), int(minutes), seconds) def format_millis(millis)...
28.869565
133
0.724398
de6f6005195abaaf117c10c81673baa72d8ee55e
224
py
Python
src/config.py
vieenrose/Gender-Recognition-by-Voice
d7c57a0229e8fc8fcfe48712f19bf0b57e464e0f
[ "MIT" ]
11
2020-08-03T22:05:20.000Z
2022-02-28T07:50:21.000Z
src/config.py
vieenrose/Gender-Recognition-by-Voice
d7c57a0229e8fc8fcfe48712f19bf0b57e464e0f
[ "MIT" ]
null
null
null
src/config.py
vieenrose/Gender-Recognition-by-Voice
d7c57a0229e8fc8fcfe48712f19bf0b57e464e0f
[ "MIT" ]
5
2020-09-26T03:28:13.000Z
2021-07-09T06:21:10.000Z
EPOCHS = 20 TRAIN_BATCH_SIZE = 20 VALID_BATCH_SIZE = 20 DATA_PATH = '../dataset/cv-valid-train.csv' TEST_DATA_PATH = '../dataset/cv-valid-test.csv' SCALAR_PATH = 'results/scaler.pkl' MODEL_PATH = 'results/final_model.model'
28
47
0.758929