hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
2665879f29151dd4bf50f5357e2d4d3726e90112
391
py
Python
Google Drive/Learning/Python/DataScience/Classes/Dog.py
mobiusworkspace/mobiuswebsite
73eef1bd4fc07ea318aad431de09eac10fc4da3a
[ "CC-BY-3.0" ]
null
null
null
Google Drive/Learning/Python/DataScience/Classes/Dog.py
mobiusworkspace/mobiuswebsite
73eef1bd4fc07ea318aad431de09eac10fc4da3a
[ "CC-BY-3.0" ]
null
null
null
Google Drive/Learning/Python/DataScience/Classes/Dog.py
mobiusworkspace/mobiuswebsite
73eef1bd4fc07ea318aad431de09eac10fc4da3a
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 17 01:08:13 2020 @author: OAdeoye """ class Dog: def __init__(self, name): self.name = name def respond_to_command(self, command): if (command == self.name): print(self.name + " is Barking!!!") bingo = Dog("Bingo") bingo.respond_to_c...
19.55
47
0.618926
191
0.488491
0
0
0
0
0
0
128
0.327366
26665c848e7389ad3807abd7e96f3f0161f6a4ff
704
py
Python
tests/test_query.py
tikazyq/google-analytics-api-wrapper
91ffc1d6b4cb810aea20541153d64730873903b9
[ "MIT" ]
6
2015-03-11T01:38:54.000Z
2021-07-09T21:40:12.000Z
tests/test_query.py
QPC-database/google-analytics-api-wrapper
91ffc1d6b4cb810aea20541153d64730873903b9
[ "MIT" ]
null
null
null
tests/test_query.py
QPC-database/google-analytics-api-wrapper
91ffc1d6b4cb810aea20541153d64730873903b9
[ "MIT" ]
1
2021-07-09T21:40:13.000Z
2021-07-09T21:40:13.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import unittest from datetime import datetime, timedelta from analytics_query import analytics_query as aq START_DATE = (datetime.now() - timedelta(7)).strftime('%Y-%m-%d') END_DATE = (datetime.now() - timedelta(1)).strftime('%Y-%m-%d') start_date = '2015-03-03' end_date = '...
24.275862
92
0.674716
0
0
0
0
0
0
0
0
236
0.335227
2669475d57fe48eb8f470f059b2de2b3e28b5b3e
2,864
py
Python
GameManager.py
redxdev/Matching
6d65933a64bf0f22a18a27c675cb8e95f4161e08
[ "MIT" ]
1
2016-05-06T10:23:24.000Z
2016-05-06T10:23:24.000Z
GameManager.py
redxdev/Matching
6d65933a64bf0f22a18a27c675cb8e95f4161e08
[ "MIT" ]
null
null
null
GameManager.py
redxdev/Matching
6d65933a64bf0f22a18a27c675cb8e95f4161e08
[ "MIT" ]
null
null
null
from WordList import WordList, WordCard import pygame class GameManager: def __init__(self): self.wordList = WordList() self.cards = [] self.badCards = (None, None) self.goodCards = (None, None) self.timer = 0 def startGame(self, pairCount): self.cards = self.w...
28.929293
94
0.50419
2,808
0.980447
0
0
0
0
0
0
0
0
266b073ce320af6c6412a8f34133f369b56ae914
1,687
py
Python
src/main.py
ekim1919/TDAGo
014db546dae3dedb4f7206288333756fc358ed8a
[ "MIT" ]
null
null
null
src/main.py
ekim1919/TDAGo
014db546dae3dedb4f7206288333756fc358ed8a
[ "MIT" ]
null
null
null
src/main.py
ekim1919/TDAGo
014db546dae3dedb4f7206288333756fc358ed8a
[ "MIT" ]
null
null
null
from plot import * from experiments import * import warnings warnings.filterwarnings("ignore") #Ignore warnings for now import sys import os import argparse def main(): parser = argparse.ArgumentParser(description='Analysis of Go Games') parser.add_argument('dir',nargs='*') parser.add_argument('--conn',...
35.145833
212
0.740368
0
0
0
0
0
0
0
0
982
0.582098
266b7396a2ed1939667431e7fe0b116000780021
1,358
py
Python
script/python3/util/env.py
setminami/IrControl
bcdd44b7f6aeca75226cdcfc611dc63032c38949
[ "MIT" ]
null
null
null
script/python3/util/env.py
setminami/IrControl
bcdd44b7f6aeca75226cdcfc611dc63032c38949
[ "MIT" ]
2
2018-09-21T11:53:28.000Z
2018-12-30T03:37:23.000Z
script/python3/util/env.py
setminami/IrControl
bcdd44b7f6aeca75226cdcfc611dc63032c38949
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # this made for python3 from os import environ def expand_env(params, verbose=False): """ dotenv like function, but not dotenv """ for key, val in params.items(): _print('try %s, %s'%(key, val), verbose) if isinstance(val, dict): _print('ORDEREDDICT', verbos...
39.941176
122
0.54271
0
0
0
0
0
0
0
0
348
0.256259
266c5f9566178c353cbde59b14658db79e486f2e
236
py
Python
script/pipeline/setup/setup.py
cpuabuse/py-deployment-automation
aea0c48ac4c5a81f2e027c984ab65f911ad29d0d
[ "0BSD" ]
1
2020-02-23T22:35:28.000Z
2020-02-23T22:35:28.000Z
script/pipeline/setup/setup.py
cpuabuse/py-deployment-automation
aea0c48ac4c5a81f2e027c984ab65f911ad29d0d
[ "0BSD" ]
null
null
null
script/pipeline/setup/setup.py
cpuabuse/py-deployment-automation
aea0c48ac4c5a81f2e027c984ab65f911ad29d0d
[ "0BSD" ]
null
null
null
""" A file for setup. """ # Metadata __author__ = "cpuabuse.com" __copyright__ = "cpuabuse.com 2019" __license__ = "ISC" __version__ = "0.0.1" __email__ = "cpuabuse@gmail.com" __status__ = "Development" # Minimum python version is 3.6
18.153846
35
0.711864
0
0
0
0
0
0
0
0
144
0.610169
266efdf5f618ad871cc4108d4a51b575ba968601
6,392
py
Python
Kinkajou/python/admin/opencode.py
app858216291-github/Kinkajou-shop
ee1e841e26407b1dcbd14601e5fe34b6422eba29
[ "MIT" ]
null
null
null
Kinkajou/python/admin/opencode.py
app858216291-github/Kinkajou-shop
ee1e841e26407b1dcbd14601e5fe34b6422eba29
[ "MIT" ]
null
null
null
Kinkajou/python/admin/opencode.py
app858216291-github/Kinkajou-shop
ee1e841e26407b1dcbd14601e5fe34b6422eba29
[ "MIT" ]
null
null
null
from admin.upload import FileUploadField, ImageUploadField from flask_babelex import Babel from flask_admin._compat import urljoin from flask import redirect from flask_admin._compat import quote from flask_admin.contrib.fileadmin import FileAdmin from flask_admin import Admin, BaseView, expose from flask_admin....
37.380117
184
0.571339
5,181
0.810544
0
0
2,991
0.467929
0
0
1,497
0.234199
267010ecd5efb0c3498de085c2712903abc79773
4,137
py
Python
liminal/runners/airflow/operators/kubernetes_pod_operator_with_input_output.py
aviemzur/incubator-liminal
88174a6fe519f9a6052f6e5d366a37a88a915ee4
[ "Apache-2.0" ]
1
2021-03-24T08:23:03.000Z
2021-03-24T08:23:03.000Z
liminal/runners/airflow/operators/kubernetes_pod_operator_with_input_output.py
liorsav/incubator-liminal
88174a6fe519f9a6052f6e5d366a37a88a915ee4
[ "Apache-2.0" ]
null
null
null
liminal/runners/airflow/operators/kubernetes_pod_operator_with_input_output.py
liorsav/incubator-liminal
88174a6fe519f9a6052f6e5d366a37a88a915ee4
[ "Apache-2.0" ]
null
null
null
import json from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator def _split_list(seq, num): k, m = divmod(len(seq), num) return list( (seq[i * k + min(i, m):(i + 1) * k + min(i + 1, m)] for i in range(num)) ) _IS_SPLIT_KEY = 'is_split' class PrepareInputOperator...
28.93007
87
0.555958
3,839
0.927967
0
0
0
0
0
0
596
0.144066
2670f782ce4049f02c248c80f13a94aafff1be8d
1,440
py
Python
game/content/ghplots/__init__.py
AmkG/gearhead-caramel
0238378295a09b4b33adb2ec0854fa06b0ad7b1b
[ "Apache-2.0" ]
null
null
null
game/content/ghplots/__init__.py
AmkG/gearhead-caramel
0238378295a09b4b33adb2ec0854fa06b0ad7b1b
[ "Apache-2.0" ]
null
null
null
game/content/ghplots/__init__.py
AmkG/gearhead-caramel
0238378295a09b4b33adb2ec0854fa06b0ad7b1b
[ "Apache-2.0" ]
null
null
null
import inspect from . import actionscenes from . import dd_combatmission from . import dd_customobjectives from . import dd_distanttown from . import dd_homebase from . import dd_intro from . import dd_lancedev from . import dd_main from . import dd_roadedge from . import dd_roadedge_propp from . import dd_roadstops f...
26.181818
110
0.758333
0
0
0
0
0
0
0
0
18
0.0125
2671a284c0ed4b2cd6f0faa0d1f0db0edd38447c
27,696
py
Python
reV/handlers/collection.py
pjstanle/reV
c22c620749747022a65d2a98a99beef804849ee6
[ "BSD-3-Clause" ]
37
2020-03-04T05:24:23.000Z
2022-02-24T14:39:49.000Z
reV/handlers/collection.py
pjstanle/reV
c22c620749747022a65d2a98a99beef804849ee6
[ "BSD-3-Clause" ]
174
2020-03-03T18:18:53.000Z
2022-03-08T22:00:40.000Z
reV/handlers/collection.py
pjstanle/reV
c22c620749747022a65d2a98a99beef804849ee6
[ "BSD-3-Clause" ]
16
2020-08-10T13:43:36.000Z
2021-11-19T22:43:36.000Z
# -*- coding: utf-8 -*- """ Base class to handle collection of profiles and means across multiple .h5 files """ import logging import numpy as np import os import sys import psutil import pandas as pd import time import shutil from warnings import warn from reV.handlers.outputs import Outputs from reV.utilities.except...
35.326531
79
0.55239
27,096
0.978336
0
0
13,541
0.488915
0
0
12,417
0.448332
267391fe6f529c4f578f96fdbf6f647ec6e040d3
964
py
Python
utility/templatetags/to_price.py
hosseinmoghimi/waiter
9f5f332b6f252a29aa14f67655b423fd9c40fba3
[ "MIT" ]
1
2021-12-02T11:16:53.000Z
2021-12-02T11:16:53.000Z
utility/templatetags/to_price.py
hosseinmoghimi/waiter
9f5f332b6f252a29aa14f67655b423fd9c40fba3
[ "MIT" ]
null
null
null
utility/templatetags/to_price.py
hosseinmoghimi/waiter
9f5f332b6f252a29aa14f67655b423fd9c40fba3
[ "MIT" ]
null
null
null
from core.errors import LEO_ERRORS from django import template register = template.Library() from utility.currency import to_price as to_price_origin from utility.num import to_horuf as to_horuf_num,to_tartib as to_tartib_ @register.filter def to_price(value): return to_price_origin(value=value) @register.filter...
18.538462
72
0.65249
0
0
0
0
516
0.53527
0
0
86
0.089212
2674b3c10e1e9d8ebf4b7b0491fb0687920f7025
3,119
py
Python
Python/maximal-rectangle.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2022-01-30T06:55:28.000Z
2022-01-30T06:55:28.000Z
Python/maximal-rectangle.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
null
null
null
Python/maximal-rectangle.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2021-12-31T03:56:39.000Z
2021-12-31T03:56:39.000Z
# Time: O(m*n) # Space: O(n) # 85 # Given a 2D binary matrix filled with 0's and 1's, # find the largest rectangle containing all ones and return its area. # Ascending stack solution. class Solution(object): def maximalRectangle(self, matrix): # USE THIS """ :type matrix: List[List[str]] ...
31.505051
91
0.430907
2,765
0.867043
0
0
0
0
0
0
766
0.240201
2676b926254be1cabd4bc81bb9a3da1c42ddb39a
299
py
Python
Maximum_Increase.py
Milon34/Python_Learning
b24efbba4751ed51758bf6b907e71f384415a9d5
[ "MIT" ]
null
null
null
Maximum_Increase.py
Milon34/Python_Learning
b24efbba4751ed51758bf6b907e71f384415a9d5
[ "MIT" ]
null
null
null
Maximum_Increase.py
Milon34/Python_Learning
b24efbba4751ed51758bf6b907e71f384415a9d5
[ "MIT" ]
null
null
null
n=int(input()) a = [int(s) for s in input().split(' ')] increment=1 max_increment=1 for i in range(1,n): if a[i]>a[i-1]: increment=increment+1 else: max_increment=max(max_increment,increment) increment=1 max_increment=max(max_increment,increment) print(max_increment)
24.916667
50
0.672241
0
0
0
0
0
0
0
0
3
0.010033
2676fe4e4181d8ea15429d8939404231084cca25
8,869
py
Python
makechart.py
preeve9534/signalk-sensor-log
7f6afd188b1ed95dad0b4d798f66d145a1f10978
[ "Apache-2.0" ]
null
null
null
makechart.py
preeve9534/signalk-sensor-log
7f6afd188b1ed95dad0b4d798f66d145a1f10978
[ "Apache-2.0" ]
null
null
null
makechart.py
preeve9534/signalk-sensor-log
7f6afd188b1ed95dad0b4d798f66d145a1f10978
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from SocketServer import TCPServer, StreamRequestHandler import socket from subprocess import call import datetime import json import re import sys import os CONF = {} RRDTOOL = '/usr/bin/rrdtool' PERIODS = [] CHART_BACKGROUNDCOLOR = '#000000' CHART_CANVASCOLOR = '#000000' CHART_DIRECTORY = '/tmp/'...
49.272222
209
0.560379
915
0.103168
0
0
0
0
0
0
2,558
0.28842
267701db0df3dc5669a6ef8609e548969a09888e
410
py
Python
way/python/exercises/various/turtle_draws/turtle_spiral_name.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
way/python/exercises/various/turtle_draws/turtle_spiral_name.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
way/python/exercises/various/turtle_draws/turtle_spiral_name.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
# цветная спираль из имени пользователя import turtle t = turtle.Pen() turtle.bgcolor("black") colors = ["red", "yellow", "blue", "green"] # gui text input name = turtle.textinput("Введи своё имя", "Как тебя зовут?") for x in range(100): t.pencolor(colors[x%4]) t.penup() t.forward(x*4) ...
22.777778
61
0.592683
0
0
0
0
0
0
0
0
193
0.413276
26796efa4885d9b90f7bb3e4e595ebd4603db189
1,537
py
Python
config/base_config.py
xuyouze/DropNet
edbaeb72075b819b96e1ca66e966999a40d3645e
[ "Apache-2.0" ]
1
2021-06-28T06:27:06.000Z
2021-06-28T06:27:06.000Z
config/base_config.py
xuyouze/DropNet
edbaeb72075b819b96e1ca66e966999a40d3645e
[ "Apache-2.0" ]
null
null
null
config/base_config.py
xuyouze/DropNet
edbaeb72075b819b96e1ca66e966999a40d3645e
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 # @Time : 2019/5/15 # @Author : xuyouze # @File Name : base_config.py import importlib import os import sys import torch import logging from .dataset_config import build_dataset_config from .logger_config import config __all__ = ["BaseConfig"] class BaseConfig(object): def __init...
23.646154
91
0.709824
1,253
0.815224
0
0
0
0
0
0
641
0.417046
267b0451a5289dfdcefad895acd9541e3d77721e
814
py
Python
test/test_utils.py
fact-project/ratescan
69a2eb8b2c66024f10e59d6dbf15c84c9b12ede4
[ "MIT" ]
null
null
null
test/test_utils.py
fact-project/ratescan
69a2eb8b2c66024f10e59d6dbf15c84c9b12ede4
[ "MIT" ]
null
null
null
test/test_utils.py
fact-project/ratescan
69a2eb8b2c66024f10e59d6dbf15c84c9b12ede4
[ "MIT" ]
null
null
null
from fact.io import read_data def test_sumupCountsOfRun(): from ratescan.utils import sumupCountsOfRun df = read_data("test/test.hdf5", key="ratescan") df_summed = sumupCountsOfRun(df) assert df_summed.run_id.unique() == 182 assert len(df_summed.ratescan_trigger_thresholds) == 1000 ...
29.071429
96
0.701474
0
0
0
0
0
0
0
0
288
0.353808
267b7ae665db4a183786b0a16f0d7887f1bbb20e
4,080
py
Python
rbac/cli/cli_test_auth.py
shawnmckinney/py-fortress
ead12bf9b7e37e923c42ccdadd8fd3c5adf027cf
[ "Apache-2.0" ]
16
2018-03-19T02:19:01.000Z
2021-12-30T15:24:40.000Z
rbac/cli/cli_test_auth.py
shawnmckinney/py-fortress
ead12bf9b7e37e923c42ccdadd8fd3c5adf027cf
[ "Apache-2.0" ]
1
2021-12-18T16:46:04.000Z
2021-12-18T16:46:04.000Z
rbac/cli/cli_test_auth.py
shawnmckinney/py-fortress
ead12bf9b7e37e923c42ccdadd8fd3c5adf027cf
[ "Apache-2.0" ]
2
2018-03-14T21:48:43.000Z
2018-03-19T03:25:40.000Z
''' @copyright: 2022 - Symas Corporation ''' import sys import pickle import argparse from rbac.util import global_ids from rbac.model import Perm, User from rbac import access from rbac.util import RbacError from ..cli.utils import print_user, print_entity from rbac.cli.utils import ( load_entity, add_args, ADD,...
34.576271
132
0.554412
0
0
0
0
0
0
0
0
547
0.134069
267b9ff6b529eb0367e6acbbd247f37b5d0c7a4d
1,678
py
Python
httprider/presenters/utility_functions_presenter.py
iSWORD/http-rider
5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9
[ "MIT" ]
27
2019-12-20T00:10:28.000Z
2022-03-09T18:04:23.000Z
httprider/presenters/utility_functions_presenter.py
iSWORD/http-rider
5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9
[ "MIT" ]
6
2019-10-13T08:50:21.000Z
2020-06-05T12:23:08.000Z
httprider/presenters/utility_functions_presenter.py
iSWORD/http-rider
5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9
[ "MIT" ]
7
2019-08-10T01:38:31.000Z
2021-08-23T05:28:46.000Z
from httprider.core.generators import utility_func_map class UtilityFunctionsPresenter: def __init__(self, view, parent): self.view = view self.parent = parent # update list of functions for f in utility_func_map.keys(): self.view.function_selector.addItem(f) ...
34.958333
78
0.6764
1,620
0.965435
0
0
0
0
0
0
146
0.087008
267d4a279fad22068d75718ec410431f6a3cbe63
12,745
py
Python
ensembling_sgd.py
suswei/RLCT
e9e04ca5e64250dfbb94134ec5283286dcdc4358
[ "MIT" ]
null
null
null
ensembling_sgd.py
suswei/RLCT
e9e04ca5e64250dfbb94134ec5283286dcdc4358
[ "MIT" ]
null
null
null
ensembling_sgd.py
suswei/RLCT
e9e04ca5e64250dfbb94134ec5283286dcdc4358
[ "MIT" ]
null
null
null
import argparse import numpy as np import os from numpy.linalg import inv import torch import torch.nn as nn from torch.utils.data import TensorDataset import torch.optim as optim from torch.distributions.multivariate_normal import MultivariateNormal from torch.distributions.uniform import Uniform from torch.distribut...
42.342193
175
0.612475
714
0.056022
0
0
0
0
0
0
4,307
0.337936
2681adb86e53921fccea1f698b21e0752d4e5ac6
1,764
py
Python
edge_server/script_server.py
Dspatharakis/alphabot-ppl
1f234548bf3fc7d447663f94cfa49591724563b0
[ "MIT" ]
null
null
null
edge_server/script_server.py
Dspatharakis/alphabot-ppl
1f234548bf3fc7d447663f94cfa49591724563b0
[ "MIT" ]
null
null
null
edge_server/script_server.py
Dspatharakis/alphabot-ppl
1f234548bf3fc7d447663f94cfa49591724563b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import requests import json import time import sys import subprocess import csv import json import numpy as np def main(): start_time = time.time() post_url = "http://0.0.0.0:8000/cpu" mean_cpu = 0 counter = 0 s = 0.75 container_name = subprocess.check_output(["d...
34.588235
196
0.549887
0
0
0
0
0
0
0
0
405
0.229592
2683c81a292c3d694af782d7d6d9714cc7c5d078
5,264
py
Python
madic/tests/test_io.py
dcroote/madic
fb00f312f5abc9f5a0bfc4a00a5a2e6e1c4ee563
[ "BSD-3-Clause" ]
2
2017-12-08T03:24:22.000Z
2017-12-13T10:22:09.000Z
madic/tests/test_io.py
dcroote/madic
fb00f312f5abc9f5a0bfc4a00a5a2e6e1c4ee563
[ "BSD-3-Clause" ]
null
null
null
madic/tests/test_io.py
dcroote/madic
fb00f312f5abc9f5a0bfc4a00a5a2e6e1c4ee563
[ "BSD-3-Clause" ]
null
null
null
import os import pandas as pd import numpy as np from pandas.testing import assert_series_equal from madic import io class TestChromatogramExpansion(object): def setup_method(self): # two rows of comma separated intensity chromatograms self.df = pd.DataFrame([['1,2,3,4,5,6,5,4,3,2,1'], ...
37.6
79
0.510448
2,066
0.392477
0
0
0
0
0
0
1,047
0.198898
2688264518d4b814e3d6dda29397dc244b099dd8
226
py
Python
plot.py
arthtyagi/makefile
d64c38ddad63c7f90dd23c26e3f398229aa7dfa4
[ "MIT" ]
null
null
null
plot.py
arthtyagi/makefile
d64c38ddad63c7f90dd23c26e3f398229aa7dfa4
[ "MIT" ]
null
null
null
plot.py
arthtyagi/makefile
d64c38ddad63c7f90dd23c26e3f398229aa7dfa4
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt x = [] y = [] with open('points') as f: for point in map(lambda x: x.split(), f.readlines()): x.append(int(point[0])) y.append(int(point[1])) plt.scatter(x, y) plt.show()
17.384615
57
0.588496
0
0
0
0
0
0
0
0
8
0.035398
2689410c8429db9fcdde4ffcfbc17820cb6d3055
509
py
Python
pos_debranding/__manifest__.py
jromeroarg/itpp-labs_pos-addons
ec688a1b06999dc2fa408623a79e93356bf900b3
[ "MIT" ]
null
null
null
pos_debranding/__manifest__.py
jromeroarg/itpp-labs_pos-addons
ec688a1b06999dc2fa408623a79e93356bf900b3
[ "MIT" ]
null
null
null
pos_debranding/__manifest__.py
jromeroarg/itpp-labs_pos-addons
ec688a1b06999dc2fa408623a79e93356bf900b3
[ "MIT" ]
1
2020-08-20T04:21:42.000Z
2020-08-20T04:21:42.000Z
# Copyright 2015-2018,2020 Ivan Yelizariev # License MIT (https://opensource.org/licenses/MIT). { "name": "POS debranding", "version": "13.0.1.0.0", "author": "IT-Projects LLC, Ivan Yelizariev", "license": "Other OSI approved licence", # MIT "category": "Debranding", "support": "help@itpp.dev",...
31.8125
52
0.624754
0
0
0
0
0
0
0
0
403
0.791749
268a1a32773db807fdd5256fd06cf225b0146c23
335
py
Python
drafts/vanish_explode_gradients/freeze_lower_layers.py
quanhua92/deeplearning_tutorials
32fec492ca21c248dd1fb234db0a95a532df3469
[ "MIT" ]
1
2017-07-06T13:00:36.000Z
2017-07-06T13:00:36.000Z
drafts/vanish_explode_gradients/freeze_lower_layers.py
quanhua92/deeplearning_tutorials
32fec492ca21c248dd1fb234db0a95a532df3469
[ "MIT" ]
null
null
null
drafts/vanish_explode_gradients/freeze_lower_layers.py
quanhua92/deeplearning_tutorials
32fec492ca21c248dd1fb234db0a95a532df3469
[ "MIT" ]
null
null
null
import tensorflow as tf # We will train all layers except hidden[12]. Therefore, Layers 1 and 2 are frozen train_vars = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope="hidden[34]|outputs") loss = None # Your loss is here train_op = tf.train.GradientDescentOptimizer(learning_rate=0.01).minimize(loss, var_l...
47.857143
100
0.79403
0
0
0
0
0
0
0
0
121
0.361194
268c51ed50d4a8d0b92613024c9ad4e9c61f0c83
371
py
Python
Statistics/PopulationMean.py
cadibemma/Statistical-Calculator
4135487577af9e17b51317e72d7b07c09390f3f6
[ "MIT" ]
1
2020-06-27T22:14:11.000Z
2020-06-27T22:14:11.000Z
Statistics/PopulationMean.py
cadibemma/Statistical-Calculator
4135487577af9e17b51317e72d7b07c09390f3f6
[ "MIT" ]
28
2020-06-28T15:03:56.000Z
2020-07-07T16:29:27.000Z
Statistics/PopulationMean.py
cadibemma/Statistical-Calculator
4135487577af9e17b51317e72d7b07c09390f3f6
[ "MIT" ]
1
2020-06-27T14:33:20.000Z
2020-06-27T14:33:20.000Z
# from Calculator.Addition import addition from Calculator.Division import division def populationmean(num): try: num_values = len(num) total = sum(num) return division(total, num_values) except ZeroDivisionError: print("Error: Enter values greater than 0") except ValueErro...
28.538462
51
0.684636
0
0
0
0
0
0
0
0
111
0.299191
268d50e291169e0e5fc4a8c8469d8e4d8109bcce
585
py
Python
code/app/configuration/configuration.py
WesleyAdriann/discord_bot_dota
8a2921ee548f2fc6066bf15e7aed6688037dd434
[ "MIT" ]
null
null
null
code/app/configuration/configuration.py
WesleyAdriann/discord_bot_dota
8a2921ee548f2fc6066bf15e7aed6688037dd434
[ "MIT" ]
null
null
null
code/app/configuration/configuration.py
WesleyAdriann/discord_bot_dota
8a2921ee548f2fc6066bf15e7aed6688037dd434
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os class Configuration: def __init__(self): self.DOTA_BUFF_BASE_URL = 'https://pt.dotabuff.com' self.HEROES = f'{self.DOTA_BUFF_BASE_URL}/heroes' self.HERO_COUNTERS = '/counters' self.HERO_COUNTERS_FULL = f'{self.DOTA_BUFF_BASE_URL}/hero-name/{self.H...
34.411765
93
0.676923
547
0.935043
0
0
0
0
0
0
221
0.377778
268f327d0be7b5ea3314ce2aea07749bbbce81aa
908
py
Python
grpc_examples/sending_image/client.py
iwmq/coding_notes
8e406124bcd2dbf3228e945701e952c3a12025c6
[ "MIT" ]
null
null
null
grpc_examples/sending_image/client.py
iwmq/coding_notes
8e406124bcd2dbf3228e945701e952c3a12025c6
[ "MIT" ]
null
null
null
grpc_examples/sending_image/client.py
iwmq/coding_notes
8e406124bcd2dbf3228e945701e952c3a12025c6
[ "MIT" ]
null
null
null
""" The Python implementation of the GRPC image client. Modified from grpc/examples/python/helloworld/greeting_client.py. """ from __future__ import print_function import logging from io import BytesIO from PIL import Image import grpc import image_pb2 import image_pb2_grpc def run(): # NOTE(gRPC Python Team)...
25.222222
78
0.718062
0
0
0
0
0
0
0
0
362
0.398678
26931376c81cc95ed098daf30d28fcc4518c0ee9
1,842
py
Python
bot/NFQ.py
cyber-meow/Robotic_state_repr_learning
d74fe372bea0b1cf42107450a8c3344a99279e91
[ "MIT" ]
null
null
null
bot/NFQ.py
cyber-meow/Robotic_state_repr_learning
d74fe372bea0b1cf42107450a8c3344a99279e91
[ "MIT" ]
null
null
null
bot/NFQ.py
cyber-meow/Robotic_state_repr_learning
d74fe372bea0b1cf42107450a8c3344a99279e91
[ "MIT" ]
null
null
null
import numpy as np from sklearn.neural_network import MLPRegressor from sklearn.exceptions import NotFittedError from inter.interfaces import QLearning from utility import set_all_args class NFQ(QLearning): gamma = 0.9 beta = 0.8 def __init__(self, **kwargs): self.mlp = MLPRegressor( ...
29.238095
76
0.58089
1,649
0.895223
0
0
0
0
0
0
65
0.035288
26941f15190450548abb826ab5e7dae30c53951d
1,062
py
Python
database/chemprop/endpoint_acceptable_parameters.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/chemprop/endpoint_acceptable_parameters.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/chemprop/endpoint_acceptable_parameters.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
import datetime from database.chemprop.endpoints import Endpoints from database.chemprop.parameters import Parameters from database.database_schemas import Schemas from sqlalchemy import Column, Integer, String, DateTime, ForeignKey from sqlalchemy.orm import relationship from database.base import Base class Endpoi...
37.928571
80
0.785311
753
0.70904
0
0
0
0
0
0
136
0.12806
13fa947a98ef38378e4092dccc8d0f5bf6aced03
2,009
py
Python
label_mapping.py
YoushaaMurhij/CenterPoint_Segmentation_Head
0610c1da18994f494a8609d983ffa21d62d7d876
[ "MIT" ]
null
null
null
label_mapping.py
YoushaaMurhij/CenterPoint_Segmentation_Head
0610c1da18994f494a8609d983ffa21d62d7d876
[ "MIT" ]
null
null
null
label_mapping.py
YoushaaMurhij/CenterPoint_Segmentation_Head
0610c1da18994f494a8609d983ffa21d62d7d876
[ "MIT" ]
null
null
null
label_name_mapping = { 0: "unlabeled", 1: "outlier", 10: "car", 11: "bicycle", 13: "bus", 15: "motorcycle", 16: "on-rails", 18: "truck", 20: "other-vehicle", 30: "person", 31: "bicyclist", 32: "motorcyclist", 40: "road", 44: "parking", 48: "sidewalk", 49: ...
14.992537
31
0.442509
0
0
0
0
0
0
0
0
623
0.310105
13fb266bbbe1b42018ffaaf4a8dc92668ab6d95f
137
py
Python
src/__init__.py
gitlabbin/zookeeper-kazoo-barrier-snippet
2ab88fa3735b61dd9a94e0e0294e88a12c458ee3
[ "MIT" ]
null
null
null
src/__init__.py
gitlabbin/zookeeper-kazoo-barrier-snippet
2ab88fa3735b61dd9a94e0e0294e88a12c458ee3
[ "MIT" ]
null
null
null
src/__init__.py
gitlabbin/zookeeper-kazoo-barrier-snippet
2ab88fa3735b61dd9a94e0e0294e88a12c458ee3
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import def main(): import src.barrier if __name__ == '__main__': main()
13.7
38
0.693431
0
0
0
0
0
0
0
0
31
0.226277
13fca46c746999501de84f40b50ef047a4b2c610
295
py
Python
archives/02/tootle/tests/test_state.py
asmodehn/caerbannog
47bb1138190748041a4c0d02e522c0924a9af962
[ "MIT" ]
1
2019-01-22T20:57:45.000Z
2019-01-22T20:57:45.000Z
archives/03/footle/tests/test_state.py
asmodehn/functional-python
47bb1138190748041a4c0d02e522c0924a9af962
[ "MIT" ]
3
2019-03-14T17:33:39.000Z
2019-03-14T18:09:42.000Z
archives/03/footle/tests/test_state.py
asmodehn/caerbannog
47bb1138190748041a4c0d02e522c0924a9af962
[ "MIT" ]
null
null
null
from state import TurtleState # TODO : improve... but with useful things for illustrating the point... def test_move(distance): s = TurtleState() s.move(distance) def test_turn(angle): s = TurtleState() s.turn(angle) def test_random_path(): s = TurtleState # TODO
15.526316
72
0.671186
0
0
0
0
0
0
0
0
78
0.264407
13fe23236e035adcc7cad3112d9cc94bfc4481fa
66,843
py
Python
TransitionListener/transitionFinder.py
tasicarl/TransitionListerner_public
b231467e731f51521a85dd962cc08da07eca8226
[ "MIT" ]
null
null
null
TransitionListener/transitionFinder.py
tasicarl/TransitionListerner_public
b231467e731f51521a85dd962cc08da07eca8226
[ "MIT" ]
null
null
null
TransitionListener/transitionFinder.py
tasicarl/TransitionListerner_public
b231467e731f51521a85dd962cc08da07eca8226
[ "MIT" ]
1
2021-11-04T08:12:10.000Z
2021-11-04T08:12:10.000Z
""" The transitionFinder module is used to calculate finite temperature cosmological phase transitions: it contains functions to find the phase structure as a function of temperature, and functions to find the transition (bubble nucleation) temperature for each phase. In contrast, :mod:`.pathDefomration` is useful for ...
40.412938
222
0.585536
3,100
0.046377
0
0
0
0
0
0
29,901
0.447332
13fecb8c46693f75faf20fe0071fb2ddb03a2ed2
3,720
py
Python
red-scare/instance-generators/make-words.py
Sebastian-ba/DoDoBing
6edcc18de22ad76505d2c13ac6a207a2c274cc95
[ "MIT" ]
3
2017-09-25T11:59:20.000Z
2017-11-20T12:55:21.000Z
red-scare/instance-generators/make-words.py
ITU-2019/DoDoBing
6edcc18de22ad76505d2c13ac6a207a2c274cc95
[ "MIT" ]
6
2017-09-25T12:04:51.000Z
2017-11-13T07:51:40.000Z
red-scare/instance-generators/make-words.py
ITU-2019/DoDoBing
6edcc18de22ad76505d2c13ac6a207a2c274cc95
[ "MIT" ]
null
null
null
import sys import random import networkx as nx from write_nx_graph import write_graph uncommons = set() # Everything except the 3300 common words in SGB f = open ('data/words.txt','r') words = [] for line in f: if len(line)>0 and line[0] == '*': continue word = line.strip()[:5] words.append(wo...
36.116505
109
0.470968
1,177
0.316398
0
0
0
0
0
0
376
0.101075
13ff78cbd83636d6edec29d58b60fdaa0be4d91a
7,490
py
Python
scripts/strelka-2.9.2.centos6_x86_64/share/scoringModelTraining/somatic/bin/vcf_to_feature_csv.py
dongxuemin666/RNA-combine
13e178aae585e16a9a8eda8151d0f34316de0475
[ "Apache-2.0" ]
7
2021-09-03T09:11:00.000Z
2022-02-14T15:02:12.000Z
scripts/strelka-2.9.2.centos6_x86_64/share/scoringModelTraining/somatic/bin/vcf_to_feature_csv.py
dongxuemin666/RNA-combine
13e178aae585e16a9a8eda8151d0f34316de0475
[ "Apache-2.0" ]
null
null
null
scripts/strelka-2.9.2.centos6_x86_64/share/scoringModelTraining/somatic/bin/vcf_to_feature_csv.py
dongxuemin666/RNA-combine
13e178aae585e16a9a8eda8151d0f34316de0475
[ "Apache-2.0" ]
2
2022-01-10T13:07:29.000Z
2022-01-11T22:14:11.000Z
#!/usr/bin/env python2 # # Strelka - Small Variant Caller # Copyright (c) 2009-2018 Illumina, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # at your...
41.153846
192
0.633111
0
0
0
0
0
0
0
0
3,189
0.425768
cd0344b2d15b20e60fd3ab647958bb726ead940c
2,750
py
Python
qiskit_neko/backend_plugin.py
garrison/qiskit-neko
50c6f0f6975425c7ff86417cedc094e984dc5d1c
[ "Apache-2.0" ]
5
2022-01-11T16:07:48.000Z
2022-02-01T22:05:34.000Z
qiskit_neko/backend_plugin.py
garrison/qiskit-neko
50c6f0f6975425c7ff86417cedc094e984dc5d1c
[ "Apache-2.0" ]
1
2022-02-03T14:10:57.000Z
2022-02-03T14:10:57.000Z
qiskit_neko/backend_plugin.py
garrison/qiskit-neko
50c6f0f6975425c7ff86417cedc094e984dc5d1c
[ "Apache-2.0" ]
1
2022-03-07T15:06:21.000Z
2022-03-07T15:06:21.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
36.184211
87
0.704
2,121
0.771273
0
0
858
0.312
0
0
1,916
0.696727
cd037892f04f2a0ec86c850579b001591ee90f88
1,381
py
Python
libkol/request/clan_rumpus.py
danheath/pykol-lib
bdc9aa8dbae64ead07e7dbc36f9d6ba802f65ddc
[ "BSD-3-Clause" ]
6
2019-06-11T19:25:32.000Z
2022-01-21T17:05:01.000Z
libkol/request/clan_rumpus.py
danheath/pykol-lib
bdc9aa8dbae64ead07e7dbc36f9d6ba802f65ddc
[ "BSD-3-Clause" ]
8
2019-06-17T11:41:14.000Z
2019-08-07T17:28:50.000Z
libkol/request/clan_rumpus.py
python-kol/pykollib
bdc9aa8dbae64ead07e7dbc36f9d6ba802f65ddc
[ "BSD-3-Clause" ]
9
2019-06-09T22:23:06.000Z
2021-07-10T00:49:00.000Z
import re from enum import Enum from typing import List import libkol from .request import Request class Furniture(Enum): Nail = (1, 0) GirlsCalendar = (1, 1) BoyCalendar = (1, 2) Painting = (1, 3) MeatOrchid = (1, 4) Bookshelf = (2, 0) ArcaneTomes = (2, 1) SportsMemorabilia = (2, 2)...
23.40678
85
0.569153
1,212
0.877625
0
0
405
0.293266
288
0.208545
60
0.043447
cd03952161db20fd79bc08d5412273256911f00a
2,155
py
Python
utils/utils.py
ZhenqiSong/OCR_Pytorch
df4e8c53353b6c515509241d4c9af3b153224a10
[ "MIT" ]
null
null
null
utils/utils.py
ZhenqiSong/OCR_Pytorch
df4e8c53353b6c515509241d4c9af3b153224a10
[ "MIT" ]
null
null
null
utils/utils.py
ZhenqiSong/OCR_Pytorch
df4e8c53353b6c515509241d4c9af3b153224a10
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # __author__:Song Zhenqi # 2021-01-20 import os import sys import yaml import logging import functools logger_initialized = set() def get_img_list(img_file): img_lists = [] if img_file is None or not os.path.exists(img_file): raise FileNotFoundError("file path: {} is not exis...
27.278481
91
0.645476
0
0
0
0
1,226
0.523708
0
0
669
0.285775
cd0601891b2dad5746ac7c08ac9655b6e8d13ab9
2,130
py
Python
monitoring/uss_qualifier/webapp/tasks.py
interuss/InterUSS-Platform
099abaa1159c4c143f8f1fde6b88956c86608281
[ "Apache-2.0" ]
null
null
null
monitoring/uss_qualifier/webapp/tasks.py
interuss/InterUSS-Platform
099abaa1159c4c143f8f1fde6b88956c86608281
[ "Apache-2.0" ]
1
2021-11-29T21:53:39.000Z
2021-11-29T21:53:39.000Z
monitoring/uss_qualifier/webapp/tasks.py
interuss/InterUSS-Platform
099abaa1159c4c143f8f1fde6b88956c86608281
[ "Apache-2.0" ]
null
null
null
from monitoring.uss_qualifier.test_data import test_report from monitoring.uss_qualifier.utils import USSQualifierTestConfiguration from monitoring.uss_qualifier.main import uss_test_executor from monitoring.uss_qualifier.rid.simulator import flight_state_from_kml from monitoring.uss_qualifier.rid.utils import FullFlig...
30.869565
88
0.746948
0
0
0
0
0
0
0
0
35
0.016432
cd06e20fb3a5b8f7301bbddc6604a232ac3d8294
11,853
py
Python
grenades_services/modules/basket.py
Parveen3300/Reans
6dfce046b01099284a8c945a04600ed83e5099a4
[ "Apache-2.0" ]
null
null
null
grenades_services/modules/basket.py
Parveen3300/Reans
6dfce046b01099284a8c945a04600ed83e5099a4
[ "Apache-2.0" ]
null
null
null
grenades_services/modules/basket.py
Parveen3300/Reans
6dfce046b01099284a8c945a04600ed83e5099a4
[ "Apache-2.0" ]
null
null
null
""" BasketManagementRelated modules """ # import basket models from basket.models import Basket from basket.models import BasketProductLine # import configuration models from grenades_services.all_configuration_data import get_currency_instance from grenades_services.all_configuration_data import get_customer_instance...
40.731959
114
0.651312
11,229
0.947355
0
0
1,883
0.158863
0
0
3,884
0.327681
cd08e29c15d2756e6bc4a870585c434ad2c07d7a
2,935
py
Python
plots.py
klowrey/speed_arch
edb002b6d57915fa5e2024b36eb66acf30a7130a
[ "MIT" ]
null
null
null
plots.py
klowrey/speed_arch
edb002b6d57915fa5e2024b36eb66acf30a7130a
[ "MIT" ]
null
null
null
plots.py
klowrey/speed_arch
edb002b6d57915fa5e2024b36eb66acf30a7130a
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt acc = np.array([7.95549917, 7.46641684, 8.16141701, 8.80025005, 7.29208231, 7.73391724, 8.16333294, 9.02033329, 7.60566664, 7.88175011, 7.77574968, 8.79116631, 8.24524975, 8.98549938, 7.3717494 , 7.32324982, 8.14583302, 8.53608322, 9.301250...
56.442308
79
0.65247
0
0
0
0
0
0
0
0
0
0
cd08e9d07146abb0712c59ab83d9a3d247ba38c2
27
py
Python
tool/klint/bpf/__init__.py
kylerky/klint
77be216ec3f4315a835b7bcdaef1b66ed3144603
[ "MIT" ]
2
2022-03-08T16:10:27.000Z
2022-03-11T14:14:04.000Z
tool/klint/bpf/__init__.py
kylerky/klint
77be216ec3f4315a835b7bcdaef1b66ed3144603
[ "MIT" ]
null
null
null
tool/klint/bpf/__init__.py
kylerky/klint
77be216ec3f4315a835b7bcdaef1b66ed3144603
[ "MIT" ]
1
2022-03-24T09:27:41.000Z
2022-03-24T09:27:41.000Z
""" BPF-related stuff. """
6.75
18
0.555556
0
0
0
0
0
0
0
0
26
0.962963
cd094ee5dcfd76a9bf766f06eb8cdcb0b8027094
4,485
py
Python
tests/test_geojson.py
geographika/mappyfile-geojson
9525bb840ae243a0f5072730f6432bf98dcacbe9
[ "MIT" ]
8
2018-08-08T06:47:38.000Z
2022-01-30T13:25:35.000Z
tests/test_geojson.py
geographika/mappyfile-geojson
9525bb840ae243a0f5072730f6432bf98dcacbe9
[ "MIT" ]
4
2020-09-24T05:28:19.000Z
2022-03-29T22:18:13.000Z
tests/test_geojson.py
geographika/mappyfile-geojson
9525bb840ae243a0f5072730f6432bf98dcacbe9
[ "MIT" ]
1
2018-08-08T06:47:42.000Z
2018-08-08T06:47:42.000Z
import os import json import geojson import mappyfile_geojson import mappyfile import pytest def get_geojson(fn): tests = os.path.dirname(os.path.realpath(__file__)) fn = os.path.join(tests, fn) with open(fn) as f: gj = geojson.load(f) return gj def test_point(): gj ...
19.933333
68
0.515942
0
0
0
0
0
0
0
0
2,733
0.609365
cd0b619e6db23ae007998ba9f088e9c319778c9d
517
py
Python
230.py
BYOUINZAKA/LeetCodeNotes
48e1b4522c1f769eeec4944cfbd57abf1281d09a
[ "MIT" ]
null
null
null
230.py
BYOUINZAKA/LeetCodeNotes
48e1b4522c1f769eeec4944cfbd57abf1281d09a
[ "MIT" ]
null
null
null
230.py
BYOUINZAKA/LeetCodeNotes
48e1b4522c1f769eeec4944cfbd57abf1281d09a
[ "MIT" ]
null
null
null
''' @Author: Hata @Date: 2020-05-24 15:30:19 @LastEditors: Hata @LastEditTime: 2020-05-24 15:32:04 @FilePath: \LeetCode\230.py @Description: https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst/ ''' class Solution: def kthSmallest(self, root, k): def gen(r): if r is not None: ...
22.478261
77
0.558994
305
0.589942
285
0.551257
0
0
0
0
208
0.402321
cd0c0c186a507173da38fb9c91812fd94be9043a
3,430
py
Python
Scripts/TestParsers/PyUnittestTestParser.py
davidbrownell/v3-Common_Environment
8f42f256e573cbd83cbf9813db9958025ddf12f2
[ "BSL-1.0" ]
null
null
null
Scripts/TestParsers/PyUnittestTestParser.py
davidbrownell/v3-Common_Environment
8f42f256e573cbd83cbf9813db9958025ddf12f2
[ "BSL-1.0" ]
1
2018-06-08T06:45:16.000Z
2018-06-08T06:45:16.000Z
Scripts/TestParsers/PyUnittestTestParser.py
davidbrownell/v3-Common_Environment
8f42f256e573cbd83cbf9813db9958025ddf12f2
[ "BSL-1.0" ]
1
2018-06-08T04:15:17.000Z
2018-06-08T04:15:17.000Z
# ---------------------------------------------------------------------- # | # | PythonUnittestTestParser.py # | # | David Brownell <db@DavidBrownell.com> # | 2018-05-22 07:59:46 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2018-22. # | ...
38.539326
159
0.473178
2,285
0.666181
0
0
2,301
0.670845
0
0
1,536
0.447813
cd0c8d9af792a61f23cb21cb4b226023ec5c2f1f
7,116
py
Python
fairseq/models/transformer_xlm_iwslt_decoder.py
jm-glowienke/fairseq
ca45353322f92776e34a7308bf3fab75af9c1d50
[ "MIT" ]
null
null
null
fairseq/models/transformer_xlm_iwslt_decoder.py
jm-glowienke/fairseq
ca45353322f92776e34a7308bf3fab75af9c1d50
[ "MIT" ]
null
null
null
fairseq/models/transformer_xlm_iwslt_decoder.py
jm-glowienke/fairseq
ca45353322f92776e34a7308bf3fab75af9c1d50
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os from typing import Any, Dict from fairseq import checkpoint_utils from fairseq.data.legacy.masked_lm_dictionary import MaskedLMDict...
40.662857
82
0.647274
3,201
0.449831
0
0
3,075
0.432125
0
0
3,035
0.426504
cd0d1977c612b5942005c2d4eceddb8039516a10
7,249
py
Python
test/unit/mysql_db_admin/process_request.py
mjpernot/mysql-mysql-db-admin
4821d6923155a48362869a6f2bf8c69fe3e533d4
[ "MIT" ]
null
null
null
test/unit/mysql_db_admin/process_request.py
mjpernot/mysql-mysql-db-admin
4821d6923155a48362869a6f2bf8c69fe3e533d4
[ "MIT" ]
null
null
null
test/unit/mysql_db_admin/process_request.py
mjpernot/mysql-mysql-db-admin
4821d6923155a48362869a6f2bf8c69fe3e533d4
[ "MIT" ]
null
null
null
#!/usr/bin/python # Classification (U) """Program: process_request.py Description: Unit testing of process_request in mysql_db_admin.py. Usage: test/unit/mysql_db_admin/process_request.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version_info < ...
26.36
76
0.646986
6,347
0.875569
0
0
5,252
0.724514
0
0
2,992
0.412747
cd0e89b4b693cd65319eaacf6298dcfed09dbd78
594
py
Python
fsttest/__init__.py
eddieantonio/fsttest
8ff71a9aa41a70a30832fa219b72e7478872c16f
[ "MIT" ]
null
null
null
fsttest/__init__.py
eddieantonio/fsttest
8ff71a9aa41a70a30832fa219b72e7478872c16f
[ "MIT" ]
1
2020-01-27T21:43:04.000Z
2020-01-28T15:57:05.000Z
fsttest/__init__.py
eddieantonio/fsttest
8ff71a9aa41a70a30832fa219b72e7478872c16f
[ "MIT" ]
1
2021-04-26T17:46:19.000Z
2021-04-26T17:46:19.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- """ FST test -- test your Foma finite-state transducers! """ from .__version__ import VERSION as __version__ from ._fst import FST from ._results import FailedTestResult, PassedTestResult, TestResults from ._run import execute_test_case, run_tests from ._test_case import...
22.846154
69
0.725589
0
0
0
0
0
0
0
0
238
0.400673
cd0ff0154f3a2ed2059c34dae1964cf271d9a2e1
3,674
py
Python
analysis/sharpness.py
sanketvmehta/lifelong-learning-pretraining-and-sam
2fee18a4b13c918f6005f88c19089b86f4a8aae2
[ "Apache-2.0" ]
null
null
null
analysis/sharpness.py
sanketvmehta/lifelong-learning-pretraining-and-sam
2fee18a4b13c918f6005f88c19089b86f4a8aae2
[ "Apache-2.0" ]
null
null
null
analysis/sharpness.py
sanketvmehta/lifelong-learning-pretraining-and-sam
2fee18a4b13c918f6005f88c19089b86f4a8aae2
[ "Apache-2.0" ]
null
null
null
import copy import numpy as np import torch from scipy import optimize import logging def sharpness(model, criterion_fn, A, epsilon=1e-3, p=0, bounds=None): """Computes sharpness metric according to https://arxiv.org/abs/1609.04836. Args: model: Model on which to compute sharpness criterion_...
32.803571
80
0.631464
0
0
0
0
0
0
0
0
1,292
0.35166
cd10ef939588bc49c75df0d3a2c4ba2f987aa04b
1,164
py
Python
benchmark_runner.py
mamrehn/simplification
cb43ccadcbe011b89845142910d844b0bf7ca510
[ "MIT" ]
null
null
null
benchmark_runner.py
mamrehn/simplification
cb43ccadcbe011b89845142910d844b0bf7ca510
[ "MIT" ]
null
null
null
benchmark_runner.py
mamrehn/simplification
cb43ccadcbe011b89845142910d844b0bf7ca510
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Standalone benchmark runner """ import cProfile import pstats import profile import numpy as np print("Running Rust + Cython benchmarks") # calibrate pr = profile.Profile() calibration = np.mean([pr.calibrate(100000) for x in xrange(5)]) # add the bias profile.Profil...
35.272727
135
0.803265
0
0
0
0
0
0
0
0
671
0.57646
cd13a01142ccf63d717a89caf8e588ed9c337f8d
850
py
Python
D_QuickS.py
rut999/Algo
9180f66452597a758a31073cb2b8fa4a3e6a93fe
[ "MIT" ]
null
null
null
D_QuickS.py
rut999/Algo
9180f66452597a758a31073cb2b8fa4a3e6a93fe
[ "MIT" ]
null
null
null
D_QuickS.py
rut999/Algo
9180f66452597a758a31073cb2b8fa4a3e6a93fe
[ "MIT" ]
null
null
null
import time from random import randint def random_int(x): value = [] for i in range(x): value.append(randint(0, x)) return value def Quick_sort(list1): N = len(list1) if N <=1: return list1 pivot = list1.pop() # mid = len(list1)//2 Left_H = [] Right_H = [] for i...
22.368421
74
0.583529
0
0
0
0
0
0
0
0
240
0.282353
cd18f52d3cd9d807fe305ade001766cc89245405
1,929
py
Python
cride/circles/views/circles.py
LhernerRemon/Rider
30783cf58513698d23730f5fa477dfeddda8ee6b
[ "MIT" ]
null
null
null
cride/circles/views/circles.py
LhernerRemon/Rider
30783cf58513698d23730f5fa477dfeddda8ee6b
[ "MIT" ]
null
null
null
cride/circles/views/circles.py
LhernerRemon/Rider
30783cf58513698d23730f5fa477dfeddda8ee6b
[ "MIT" ]
null
null
null
#REST from rest_framework import viewsets,mixins from rest_framework.permissions import IsAuthenticated #Filters from rest_framework.filters import SearchFilter,OrderingFilter from django_filters.rest_framework import DjangoFilterBackend #Models, serializers from cride.circles.models import Circle,Membership from cri...
32.694915
83
0.690513
1,491
0.772939
0
0
0
0
0
0
377
0.195438
cd18f82e759c1f805c2c156a96b2d6d4fe352c3d
780
py
Python
api/service/cidades_atendimento_service.py
FinotelliCarlos/ewipesimple-adminweb-python
3bf779250efeb9f85b4283ffbf210bf227aa8e8c
[ "MIT" ]
1
2021-06-17T06:13:33.000Z
2021-06-17T06:13:33.000Z
api/service/cidades_atendimento_service.py
FinotelliCarlos/ewipesimple-adminweb-python
3bf779250efeb9f85b4283ffbf210bf227aa8e8c
[ "MIT" ]
null
null
null
api/service/cidades_atendimento_service.py
FinotelliCarlos/ewipesimple-adminweb-python
3bf779250efeb9f85b4283ffbf210bf227aa8e8c
[ "MIT" ]
null
null
null
from adminweb.services import cep_service from adminweb.models import Profissional from rest_framework import serializers import json def listar_profissionais_cidade(cep): codigo_ibge = buscar_cidade_cep(cep)['ibge'] try: profissionais = Profissional.objects.filter(codigo_ibge=codigo_ibge).order_by('i...
32.5
91
0.75
0
0
0
0
0
0
0
0
88
0.112532
cd190e09b3c36d0f4700cf8693b8dfde027f164e
6,680
py
Python
초보를 위한 셀레니움/#1 Google Screenshots Scrapping/main.py
donddog/Nomad_Academy_Online_Course_Codes
391fde26052a67f7b533219ab0de6096830697b6
[ "MIT" ]
1
2021-02-11T16:45:22.000Z
2021-02-11T16:45:22.000Z
초보를 위한 셀레니움/#1 Google Screenshots Scrapping/main.py
donddog/Nomad_Academy_Online_Course_Codes
391fde26052a67f7b533219ab0de6096830697b6
[ "MIT" ]
null
null
null
초보를 위한 셀레니움/#1 Google Screenshots Scrapping/main.py
donddog/Nomad_Academy_Online_Course_Codes
391fde26052a67f7b533219ab0de6096830697b6
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait import shutil import os class GoogleKeywordScreenshooter: def __init__(...
38.171429
107
0.572156
6,107
0.914222
0
0
0
0
0
0
2,065
0.309132
cd1a66acf2cfd6c3c481c4c94e53d436215cbbe7
9,414
py
Python
omicron/core/numpy_extensions.py
evimacs/omicron
abe77fd25a93cf3d0d17661ae957373474724535
[ "MIT" ]
4
2020-11-09T02:23:51.000Z
2021-01-24T00:45:21.000Z
omicron/core/numpy_extensions.py
evimacs/omicron
abe77fd25a93cf3d0d17661ae957373474724535
[ "MIT" ]
14
2020-11-09T02:31:34.000Z
2021-12-22T10:15:47.000Z
omicron/core/numpy_extensions.py
evimacs/omicron
abe77fd25a93cf3d0d17661ae957373474724535
[ "MIT" ]
2
2021-01-24T00:45:25.000Z
2021-12-24T06:18:37.000Z
"""Extension function related to numpy """ from __future__ import annotations from typing import List, Tuple import numpy as np import pandas from numpy.typing import ArrayLike def dict_to_numpy_array(d: dict, dtype: List[Tuple]) -> np.array: """convert dictionary to numpy array Examples: >>> d = {"aa...
26.222841
161
0.546633
0
0
0
0
0
0
0
0
6,242
0.613766
cd1bfaec0e66cc493fec447100454ceabadeff14
838
py
Python
pepy/domain/read_model.py
daghan/pepy
11e15e0a7af922cf72647dde95b6cc26760ee8ab
[ "MIT" ]
null
null
null
pepy/domain/read_model.py
daghan/pepy
11e15e0a7af922cf72647dde95b6cc26760ee8ab
[ "MIT" ]
null
null
null
pepy/domain/read_model.py
daghan/pepy
11e15e0a7af922cf72647dde95b6cc26760ee8ab
[ "MIT" ]
null
null
null
from datetime import date from typing import List from attr import attrs, attrib @attrs() class ProjectListProjection: name: str = attrib() total_downloads: int = attrib() @attrs() class DownloadProjection: date: date = attrib() downloads: int = attrib() @attrs() class ProjectProjection: name...
22.052632
85
0.657518
720
0.859189
0
0
747
0.891408
0
0
28
0.033413
cd1c390db89d68211aa13e58ba3a2a89676c5247
3,039
py
Python
finetuning/pretrain_scripts/create_sentiment_mask.py
tatsu-lab/mlm_inductive_bias
2d99e2477293036949ba356c88513729244dc1f9
[ "MIT" ]
10
2021-04-14T22:06:19.000Z
2022-01-12T19:41:12.000Z
finetuning/pretrain_scripts/create_sentiment_mask.py
tatsu-lab/mlm_inductive_bias
2d99e2477293036949ba356c88513729244dc1f9
[ "MIT" ]
null
null
null
finetuning/pretrain_scripts/create_sentiment_mask.py
tatsu-lab/mlm_inductive_bias
2d99e2477293036949ba356c88513729244dc1f9
[ "MIT" ]
3
2021-06-06T09:43:14.000Z
2022-02-20T00:40:42.000Z
""" This script computes word masks based on sentiment lexicons """ import os import torch import argparse from tqdm import tqdm from transformers import AutoTokenizer from transformers import GlueDataTrainingArguments as DataTrainingArguments from transformers import GlueDataset as Dataset parser = argparse.Argumen...
37.518519
136
0.66535
0
0
0
0
0
0
0
0
882
0.290227
cd1f80834765c75ab8a5bfc49335f1d5e1f2a008
456
py
Python
Leetcode/443. String Compression/solution2.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/443. String Compression/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/443. String Compression/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
class Solution: def compress(self, chars: List[str]) -> int: l = 0 while l < len(chars): r = l + 1 while r < len(chars) and chars[l] == chars[r]: r += 1 num = r - l for k in range(r - l, 1, -1): chars.pop(l) if num > 1: for ...
32.571429
75
0.41886
455
0.997807
0
0
0
0
0
0
0
0
cd26104c6eb130ab45214eda4f1934869ef8a4f2
3,524
py
Python
src/data_reader.py
jazzsewera/mops-projekt
75924546eb73c266ba81e8e22c68ad939dea19d6
[ "MIT" ]
null
null
null
src/data_reader.py
jazzsewera/mops-projekt
75924546eb73c266ba81e8e22c68ad939dea19d6
[ "MIT" ]
null
null
null
src/data_reader.py
jazzsewera/mops-projekt
75924546eb73c266ba81e8e22c68ad939dea19d6
[ "MIT" ]
null
null
null
from logger import Logger from numpy import average log = Logger(None) def show_queue_length_average(number_of_packets): timestamps = [] vals = [] if len(number_of_packets) == 0: log.info(f"Average number of packets: NO DATA") return 0 for k, v in number_of_packets.items(): ...
24.136986
86
0.638763
0
0
0
0
0
0
0
0
487
0.138195
cd2798a9ad4d90fcc9bb40c5df39c9d1117edd80
5,946
py
Python
fetch.py
kirillvarn/grocerycomparator-stat
861f90a2d5b4c2b52d89b6cdb574b722eae2327d
[ "MIT" ]
null
null
null
fetch.py
kirillvarn/grocerycomparator-stat
861f90a2d5b4c2b52d89b6cdb574b722eae2327d
[ "MIT" ]
null
null
null
fetch.py
kirillvarn/grocerycomparator-stat
861f90a2d5b4c2b52d89b6cdb574b722eae2327d
[ "MIT" ]
null
null
null
import repo import export.csv as csv # CONSTANTS milk_q = "SELECT * FROM \"%s\" WHERE price != 0 AND discount = false AND (name ILIKE '%%1l%%' OR name ILIKE '%%1 l%%') AND (name ILIKE '%%piim %%' OR name ILIKE '%%piim,%%') AND name NOT ILIKE '%%juust%%' AND name NOT ILIKE '%%kohupiim%%' AND name NOT ILIKE '%%laktoos%%...
58.871287
365
0.601245
0
0
0
0
0
0
0
0
4,205
0.705537
cd27a3a7d166518d8d7678101792de0e23b578ef
1,755
py
Python
code1.py
roshangol/executed-path-visualize
1759c12b0048fe117205990b151d2f5f57ad9616
[ "MIT" ]
null
null
null
code1.py
roshangol/executed-path-visualize
1759c12b0048fe117205990b151d2f5f57ad9616
[ "MIT" ]
null
null
null
code1.py
roshangol/executed-path-visualize
1759c12b0048fe117205990b151d2f5f57ad9616
[ "MIT" ]
null
null
null
# EX1 # if x < y: # y = 0 # x = x + 1 # else: # x = y def max(a, b, c): if a > b and a > c: print(a,' is maximum among all') elif b > a and b > c: print(b, ' is maximum among all') else: print(c, ' is maximum among all') max(30, 28, 18) # def triangleType(a, b, c): # ...
16.25
66
0.4
0
0
0
0
0
0
0
0
1,506
0.85812
cd28f531641b97aa10ded06e3c6b7fdb2de0d2e7
1,193
py
Python
GameProject/dice.py
CreativeUsernameThatWontInsultAnyone/GameProject
998274e4587d93ff0564af174f4fc1e3a3e60174
[ "CC0-1.0" ]
1
2021-11-13T17:14:03.000Z
2021-11-13T17:14:03.000Z
GameProject/dice.py
CreativeUsernameThatWontInsultAnyone/GameProject
998274e4587d93ff0564af174f4fc1e3a3e60174
[ "CC0-1.0" ]
null
null
null
GameProject/dice.py
CreativeUsernameThatWontInsultAnyone/GameProject
998274e4587d93ff0564af174f4fc1e3a3e60174
[ "CC0-1.0" ]
null
null
null
import random import time while (1): def clear(): ##Placeholder code time.sleep(1) clearConsole = lambda: print('\n' * 150) ## clearConsole() wmsg = "Good morning!" events = { 1 : "calm", 2 : "calm", 3...
28.404762
105
0.506287
0
0
0
0
0
0
0
0
460
0.385583
cd2c1598eaae27b2b8504f6e96bc81711b260dde
774
py
Python
multivision/oa_image_io.py
olaals/tpktools
50416ca554809e3d2f364b25531c78cf4751311c
[ "MIT" ]
null
null
null
multivision/oa_image_io.py
olaals/tpktools
50416ca554809e3d2f364b25531c78cf4751311c
[ "MIT" ]
null
null
null
multivision/oa_image_io.py
olaals/tpktools
50416ca554809e3d2f364b25531c78cf4751311c
[ "MIT" ]
null
null
null
import numpy as np import OpenEXR as exr import cv2 import Imath import matplotlib.pyplot as plt def readEXR(filename): exrfile = exr.InputFile(filename) header = exrfile.header() dw = header['dataWindow'] isize = (dw.max.y - dw.min.y + 1, dw.max.x - dw.min.x + 1) channelData = dict() # conver...
29.769231
90
0.630491
0
0
0
0
0
0
0
0
107
0.138243
cd314573d937025d1a50953b27cb47b89f485e85
2,972
py
Python
yggdrasil/serialize/FunctionalSerialize.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
22
2019-02-05T15:20:07.000Z
2022-02-25T09:00:40.000Z
yggdrasil/serialize/FunctionalSerialize.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
48
2019-02-15T20:41:24.000Z
2022-03-16T20:52:02.000Z
yggdrasil/serialize/FunctionalSerialize.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
16
2019-04-27T03:36:40.000Z
2021-12-02T09:47:06.000Z
from yggdrasil.serialize.SerializeBase import SerializeBase class FunctionalSerialize(SerializeBase): r"""Class for serializing/deserializing a Python object into/from a bytes message using defined functions. Args: encoded_datatype (schema, optional): JSON schema describing the type t...
43.072464
84
0.654778
2,909
0.978802
0
0
341
0.114738
0
0
2,033
0.684051
cd3156dd0e4a0a15e50945d8d1d506c7eefae69c
2,046
py
Python
wordy_chat.py
thecodingchannel/wordy-discord-bot-tutorial
be70d237abcb302b6516f985ae900c61b598296a
[ "Apache-2.0" ]
null
null
null
wordy_chat.py
thecodingchannel/wordy-discord-bot-tutorial
be70d237abcb302b6516f985ae900c61b598296a
[ "Apache-2.0" ]
null
null
null
wordy_chat.py
thecodingchannel/wordy-discord-bot-tutorial
be70d237abcb302b6516f985ae900c61b598296a
[ "Apache-2.0" ]
1
2022-03-09T04:55:56.000Z
2022-03-09T04:55:56.000Z
''' This file is the glue between the Discord bot and the game logic. ''' from wordle_logic import evaluate_guess, generate_new_word from wordy_types import ActiveGame, EndResult, LetterState def begin_game() -> ActiveGame: """ Begin a game for a user. """ # Select a word answer = ge...
26.230769
86
0.608504
0
0
0
0
0
0
0
0
1,053
0.501429
cd318b68f4231a08be74b1a2c64d0b4969b29c51
2,422
py
Python
NNet/utils/readNNet.py
noyahoch/Marabou
03eb551498287e5372d462e3c2ad4fcc3210a5fa
[ "BSD-3-Clause" ]
7
2020-01-27T21:25:49.000Z
2022-01-07T04:37:37.000Z
NNet/utils/readNNet.py
noyahoch/Marabou
03eb551498287e5372d462e3c2ad4fcc3210a5fa
[ "BSD-3-Clause" ]
1
2022-01-25T17:41:54.000Z
2022-01-26T02:27:51.000Z
NNet/utils/readNNet.py
noyahoch/Marabou
03eb551498287e5372d462e3c2ad4fcc3210a5fa
[ "BSD-3-Clause" ]
3
2020-03-14T17:12:17.000Z
2022-03-16T09:50:46.000Z
import numpy as np def readNNet(nnetFile, withNorm=False): ''' Read a .nnet file and return list of weight matrices and bias vectors Inputs: nnetFile: (string) .nnet file to read withNorm: (bool) If true, return normalization parameters Returns: weights: List of ...
27.83908
103
0.562758
0
0
0
0
0
0
0
0
707
0.291908
cd336f08882633e139c7b8cf8e6bbf9503123d24
13,668
py
Python
models/model.py
hearai/hearai
2f2bc2923fa2bb170d9ed895c3f638e99811442f
[ "MIT" ]
16
2021-12-16T20:19:31.000Z
2022-03-19T15:59:23.000Z
models/model.py
hearai/hearai
2f2bc2923fa2bb170d9ed895c3f638e99811442f
[ "MIT" ]
34
2021-12-21T19:33:31.000Z
2022-03-31T19:04:39.000Z
models/model.py
hearai/hearai
2f2bc2923fa2bb170d9ed895c3f638e99811442f
[ "MIT" ]
5
2021-12-18T22:35:20.000Z
2022-02-20T12:26:39.000Z
from typing import Dict import neptune.new as neptune import numpy as np import pytorch_lightning as pl import torch import torch.nn as nn from config import NEPTUNE_API_TOKEN, NEPTUNE_PROJECT_NAME from sklearn.metrics import classification_report, f1_score from utils.summary_loss import SummaryLoss from math import c...
41.92638
136
0.592479
12,701
0.929251
0
0
0
0
0
0
3,339
0.244293
cd33abe036b992ac7ac194a0541c5439617437c4
2,305
py
Python
solutions/day09/solution.py
dbjohnson/advent-of-code-2021
2ed1d30362afa0a73c890730cea46de3291be21f
[ "MIT" ]
null
null
null
solutions/day09/solution.py
dbjohnson/advent-of-code-2021
2ed1d30362afa0a73c890730cea46de3291be21f
[ "MIT" ]
null
null
null
solutions/day09/solution.py
dbjohnson/advent-of-code-2021
2ed1d30362afa0a73c890730cea46de3291be21f
[ "MIT" ]
null
null
null
from functools import lru_cache from collections import defaultdict import pandas as pd import numpy as np with open('input.txt') as fh: depthmap = pd.DataFrame([{ 'row': row, 'col': col, 'height': int(d) } for row, line in enumerate(fh) for col, d in enumerate(line.str...
21.342593
67
0.516269
0
0
0
0
527
0.228633
0
0
371
0.160954
cd3470135bfe7a2b8866c6a268c9e629dad7a8b7
3,467
py
Python
docs/conf.py
ocefpaf/pystac-client
ddf0e0566b2b1783a4d32d3d77f9f51b80270df3
[ "Apache-2.0" ]
52
2021-04-15T23:24:12.000Z
2022-03-09T23:02:27.000Z
docs/conf.py
ocefpaf/pystac-client
ddf0e0566b2b1783a4d32d3d77f9f51b80270df3
[ "Apache-2.0" ]
119
2021-04-13T11:42:01.000Z
2022-02-24T10:02:35.000Z
docs/conf.py
ocefpaf/pystac-client
ddf0e0566b2b1783a4d32d3d77f9f51b80270df3
[ "Apache-2.0" ]
14
2021-04-13T19:00:19.000Z
2022-02-23T09:17:30.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html import re import subprocess import sys from pathlib import Path # -- Path setup ------...
33.660194
97
0.654168
0
0
0
0
0
0
0
0
2,527
0.728872
cd358b914861d3a881968cfd805aae9c0f7bed42
1,345
py
Python
modules/lexer/token.py
DavidMacDonald11/sea-to-c-transpiler-python-based
20c41931346b13d4bf2a12e96037f44b1add8145
[ "MIT" ]
null
null
null
modules/lexer/token.py
DavidMacDonald11/sea-to-c-transpiler-python-based
20c41931346b13d4bf2a12e96037f44b1add8145
[ "MIT" ]
11
2021-04-22T13:09:34.000Z
2022-01-29T22:53:58.000Z
modules/lexer/token.py
DavidMacDonald11/sea-to-c-transpiler-python-based
20c41931346b13d4bf2a12e96037f44b1add8145
[ "MIT" ]
null
null
null
from .token_types import TT from .token_types import BadTT from .position import Position from .keywords import is_keyword from .keywords import keyword_declared_type from ..lexer import errors class Token: def __init__(self, token_type, value = None, position = None): self.type = token_type self.v...
33.625
80
0.665428
1,149
0.854275
0
0
534
0.397026
0
0
32
0.023792
cd36eb6513428b0c0f981f91eaea0aa21154992a
689
py
Python
cb_scripts/nums_square_cube.py
christopher-burke/python-scripts
bdbea2456130e0958b6a6ab8d138f4f19b39b934
[ "MIT" ]
1
2022-02-05T06:39:05.000Z
2022-02-05T06:39:05.000Z
cb_scripts/nums_square_cube.py
christopher-burke/python-scripts
bdbea2456130e0958b6a6ab8d138f4f19b39b934
[ "MIT" ]
null
null
null
cb_scripts/nums_square_cube.py
christopher-burke/python-scripts
bdbea2456130e0958b6a6ab8d138f4f19b39b934
[ "MIT" ]
1
2021-06-10T22:04:35.000Z
2021-06-10T22:04:35.000Z
#!/usr/bin/env python3 """Squares and Cubes for a range of numbers. Given a start and end, calucate the Square x**2 and the Cube x**3 for all numbers. Example of generator and functools.partial. """ from functools import partial def power(base, exponent): """Raise a base to the exponent.""" return base *...
20.264706
63
0.651669
0
0
155
0.224964
0
0
0
0
337
0.489115
cd36ecd76329e8d74ce6fdd1bc24ac05a02cc921
101
py
Python
Darlington/phase2/LIST/day 41 solution/qtn2.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Darlington/phase2/LIST/day 41 solution/qtn2.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Darlington/phase2/LIST/day 41 solution/qtn2.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
#program to find the index of an item in a specified list. num =[10, 30, 4, -6] print(num.index(30))
25.25
58
0.683168
0
0
0
0
0
0
0
0
58
0.574257
cd36fd075f7cd95707b64e346e7a7db96e365eac
1,748
py
Python
mozdns/txt/tests.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
22
2015-01-16T01:36:32.000Z
2020-06-08T00:46:18.000Z
mozdns/txt/tests.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
8
2015-12-28T18:56:19.000Z
2019-04-01T17:33:48.000Z
mozdns/txt/tests.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
13
2015-01-13T20:56:22.000Z
2022-02-23T06:01:17.000Z
from django.test import TestCase from django.core.exceptions import ValidationError from mozdns.txt.models import TXT from mozdns.domain.models import Domain class TXTTests(TestCase): def setUp(self): self.o = Domain(name="org") self.o.save() self.o_e = Domain(name="oregonstate.org") ...
29.627119
69
0.587529
1,586
0.907323
0
0
0
0
0
0
211
0.120709
cd39f1397ad328542fed8bb62d6c47dc4c191597
6,698
py
Python
xtesting/tests/unit/core/test_behaveframework.py
collivier/functest-xtesting
17739d718901a10f7ec0aaf9a6d53141294a347d
[ "Apache-2.0" ]
1
2020-05-15T12:58:58.000Z
2020-05-15T12:58:58.000Z
xtesting/tests/unit/core/test_behaveframework.py
collivier/functest-xtesting
17739d718901a10f7ec0aaf9a6d53141294a347d
[ "Apache-2.0" ]
null
null
null
xtesting/tests/unit/core/test_behaveframework.py
collivier/functest-xtesting
17739d718901a10f7ec0aaf9a6d53141294a347d
[ "Apache-2.0" ]
3
2018-02-28T15:55:14.000Z
2022-02-24T15:46:12.000Z
#!/usr/bin/env python # Copyright (c) 2019 Orange and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 """Define t...
37.418994
77
0.640042
6,067
0.905793
0
0
4,260
0.636011
0
0
1,770
0.264258
cd3a28ba018f4c08dd5b0ec2fb2ba69c859e803c
963
py
Python
data/test/python/cd3a28ba018f4c08dd5b0ec2fb2ba69c859e803cdjango.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/test/python/cd3a28ba018f4c08dd5b0ec2fb2ba69c859e803cdjango.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/test/python/cd3a28ba018f4c08dd5b0ec2fb2ba69c859e803cdjango.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
# coding=utf-8 from fabric.api import env, run COMMAND_COLLECTSTATIC = 'collectstatic' COMMAND_SYNCDB = 'syncdb' COMMAND_MIGRATE = 'migrate' _default_command = '{python} {manage} {command}' _commands_list = { COMMAND_COLLECTSTATIC: 'yes yes | {python} {manage} {command}', COMMAND_MIGRATE: '{python} {manage} ...
24.075
67
0.677051
0
0
0
0
0
0
0
0
170
0.176532
cd3da08c421072d75aa5562437930fcd09889489
8,820
py
Python
commercialoperator/components/bookings/utils.py
wilsonc86/ledger
a60a681e547f37e4ac81cb93dffaf90aea8c8151
[ "Apache-2.0" ]
null
null
null
commercialoperator/components/bookings/utils.py
wilsonc86/ledger
a60a681e547f37e4ac81cb93dffaf90aea8c8151
[ "Apache-2.0" ]
null
null
null
commercialoperator/components/bookings/utils.py
wilsonc86/ledger
a60a681e547f37e4ac81cb93dffaf90aea8c8151
[ "Apache-2.0" ]
null
null
null
from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from django.conf import settings from django.core.exceptions import ValidationError from datetime import datetime, timedelta from commercialoperator.components.main.models import Park from commercialoperator.components.proposals....
40.090909
175
0.675057
0
0
0
0
0
0
0
0
2,898
0.328571
cd3eb5a68afae376fb0cdba9c6455dc19c74e74f
3,552
py
Python
src/application/models.py
Chitrank-Dixit/WikiG
74d99a16afc635a991c17de8d237eb4f6eccbe86
[ "CNRI-Python" ]
1
2015-11-05T03:51:44.000Z
2015-11-05T03:51:44.000Z
src/application/models.py
Chitrank-Dixit/WikiG
74d99a16afc635a991c17de8d237eb4f6eccbe86
[ "CNRI-Python" ]
null
null
null
src/application/models.py
Chitrank-Dixit/WikiG
74d99a16afc635a991c17de8d237eb4f6eccbe86
[ "CNRI-Python" ]
null
null
null
""" models.py App Engine datastore models Documentation: https://developers.google.com/appengine/docs/python/ndb/entities """ from google.appengine.ext import ndb from google.appengine.ext import blobstore from google.appengine.api import users import functools import flask from flaskext import login from flaskex...
23.368421
155
0.677928
2,249
0.633164
0
0
143
0.040259
0
0
575
0.161881
cd3ebb35376a9ad6bb35907b043a70f74ff3d06d
2,488
py
Python
driver.py
Nobregaigor/Robot-path-tracking-and-obstacle-avoidance-simulation
23ab060316c5978724b3f109d851ea33206d0e10
[ "MIT" ]
6
2020-05-01T23:33:13.000Z
2021-12-18T08:13:50.000Z
driver.py
Nobregaigor/Robot-path-tracking-and-obstacle-avoidance-simulation--Python
23ab060316c5978724b3f109d851ea33206d0e10
[ "MIT" ]
null
null
null
driver.py
Nobregaigor/Robot-path-tracking-and-obstacle-avoidance-simulation--Python
23ab060316c5978724b3f109d851ea33206d0e10
[ "MIT" ]
2
2020-05-06T11:54:10.000Z
2020-07-30T01:58:06.000Z
import pygame import math import path_planning as pp class Driver(): def __init__(self, vehicle, path, settings): """ Driver """ #_______main objects references_______ #reference to driver vehicle object: self.vehicle = vehicle #creating a plan object: self.plan = p...
35.542857
123
0.63545
2,432
0.977492
0
0
0
0
0
0
658
0.264469
cd423af6c5271daa0eac7f6a8ca5e2cf87ffc2fe
2,752
py
Python
test/test_api_v1_module.py
feizhihui/deepnlp
cc6647d65ec39aadd35e4a4748da92df5b79bd48
[ "MIT" ]
null
null
null
test/test_api_v1_module.py
feizhihui/deepnlp
cc6647d65ec39aadd35e4a4748da92df5b79bd48
[ "MIT" ]
null
null
null
test/test_api_v1_module.py
feizhihui/deepnlp
cc6647d65ec39aadd35e4a4748da92df5b79bd48
[ "MIT" ]
1
2019-05-13T14:24:15.000Z
2019-05-13T14:24:15.000Z
#coding:utf-8 ''' Demo for calling API of deepnlp.org web service Anonymous user of this package have limited access on the number of API calling 100/day Please Register and Login Your Account to deepnlp.org to get unlimited access to fully support api_service API module, now supports both windows and linux platforms. ...
38.222222
133
0.682776
0
0
0
0
0
0
0
0
1,371
0.495662
cd448e3854b74fee56a6672cdae1ce1e148e593d
1,195
py
Python
spring_cloud/commons/client/loadbalancer/round_robin.py
haribo0915/Spring-Cloud-in-Python
0bcd7093869c797df14428bf2d1b0a779f96e573
[ "Apache-2.0" ]
5
2020-10-06T09:48:23.000Z
2020-10-07T13:19:46.000Z
spring_cloud/commons/client/loadbalancer/round_robin.py
haribo0915/Spring-Cloud-in-Python
0bcd7093869c797df14428bf2d1b0a779f96e573
[ "Apache-2.0" ]
5
2020-10-05T09:57:01.000Z
2020-10-12T19:52:48.000Z
spring_cloud/commons/client/loadbalancer/round_robin.py
haribo0915/Spring-Cloud-in-Python
0bcd7093869c797df14428bf2d1b0a779f96e573
[ "Apache-2.0" ]
8
2020-10-05T06:34:49.000Z
2020-10-07T13:19:46.000Z
# -*- coding: utf-8 -*- """ The built-in Round-Robin algorithm. """ # standard library from typing import Union # scip plugin from spring_cloud.commons.client.service_instance import ServiceInstance from spring_cloud.utils.atomic import AtomicInteger from .loadbalancer import LoadBalancer from .supplier import Servi...
30.641026
88
0.738075
771
0.645188
0
0
75
0.062762
0
0
264
0.220921
cd46541bba89d45678808a7b911ed3c9f61dd510
4,245
py
Python
utils/dataset_utils.py
dpaiton/DeepSparseCoding
5ea01fa8770794df5e13743aa3f2d85297c27eb1
[ "MIT" ]
12
2017-04-27T17:19:31.000Z
2021-11-07T03:37:59.000Z
utils/dataset_utils.py
dpaiton/DeepSparseCoding
5ea01fa8770794df5e13743aa3f2d85297c27eb1
[ "MIT" ]
12
2018-03-21T01:16:25.000Z
2022-02-10T00:21:58.000Z
utils/dataset_utils.py
dpaiton/DeepSparseCoding
5ea01fa8770794df5e13743aa3f2d85297c27eb1
[ "MIT" ]
12
2017-02-01T19:49:57.000Z
2021-12-08T03:16:58.000Z
import os import sys import numpy as np import torch from torchvision import datasets, transforms ROOT_DIR = os.path.dirname(os.getcwd()) if ROOT_DIR not in sys.path: sys.path.append(ROOT_DIR) import DeepSparseCoding.utils.data_processing as dp import DeepSparseCoding.datasets.synthetic as synthetic class CustomTe...
42.878788
107
0.660306
291
0.068551
0
0
0
0
0
0
465
0.109541
cd4856841cf209c6c31d8cf4b1d4a02e1669fe87
1,051
py
Python
adi_study_watch/nrf5_sdk_15.2.0/adi_study_watch/cli/m2m2/inc/master_definitions/led_interface.py
ArrowElectronics/Vital-Signs-Monitoring
ba43fe9a116d94170561433910fd7bffba5726e7
[ "Unlicense" ]
5
2021-06-13T17:11:19.000Z
2021-12-01T18:20:38.000Z
adi_study_watch/nrf5_sdk_15.2.0/adi_study_watch/cli/m2m2/inc/master_definitions/led_interface.py
ArrowElectronics/Vital-Signs-Monitoring
ba43fe9a116d94170561433910fd7bffba5726e7
[ "Unlicense" ]
null
null
null
adi_study_watch/nrf5_sdk_15.2.0/adi_study_watch/cli/m2m2/inc/master_definitions/led_interface.py
ArrowElectronics/Vital-Signs-Monitoring
ba43fe9a116d94170561433910fd7bffba5726e7
[ "Unlicense" ]
1
2022-01-08T15:01:44.000Z
2022-01-08T15:01:44.000Z
#!/usr/bin/env python3 from ctypes import * import m2m2_core class M2M2_LED_COMMAND_ENUM_t(c_uint8): M2M2_LED_COMMAND_GET = 0x0 M2M2_LED_COMMAND_SET = 0x1 class M2M2_LED_PATTERN_ENUM_t(c_uint8): M2M2_LED_PATTERN_OFF = 0x0 M2M2_LED_PATTERN_SLOW_BLINK_DC_12 = 0x1 M2M2_LED_PATTERN_SLOW_BLINK_DC_12_...
30.028571
53
0.726927
980
0.932445
0
0
0
0
0
0
74
0.070409
cd485ea8847607e1b8262b17b33a7d95c7b05c48
2,327
py
Python
src/empirical_study.py
arshajithwolverine/Recommentation-System_KGNN-LS
82ad10633a56794bbc38dc7e6c40a3636c7d570a
[ "MIT" ]
133
2019-06-20T08:38:04.000Z
2022-03-30T07:57:14.000Z
src/empirical_study.py
piaofu110/KGNN-LS
3afd76361b623e9e38b822861c79bcd61dae41aa
[ "MIT" ]
10
2019-07-06T12:53:01.000Z
2021-11-10T12:58:50.000Z
src/empirical_study.py
piaofu110/KGNN-LS
3afd76361b623e9e38b822861c79bcd61dae41aa
[ "MIT" ]
40
2019-08-07T06:02:31.000Z
2022-01-05T15:19:29.000Z
import networkx as nx import numpy as np import argparse if __name__ == '__main__': np.random.seed(555) NUM = 10000 parser = argparse.ArgumentParser() parser.add_argument('-d', type=str, default='music') args = parser.parse_args() DATASET = args.d kg_np = np.load('../data/' + DATASET + '...
36.359375
104
0.621401
0
0
0
0
0
0
0
0
123
0.052858
cd48bacc37dd1b8304c3c30daa2f346ee7aa4309
6,317
py
Python
Survival_Pygame/data.py
Lily-Li828/effective-octo-fiesta
4dbfeaec6158141bb03005aa25240dd337694ee3
[ "Apache-2.0" ]
null
null
null
Survival_Pygame/data.py
Lily-Li828/effective-octo-fiesta
4dbfeaec6158141bb03005aa25240dd337694ee3
[ "Apache-2.0" ]
null
null
null
Survival_Pygame/data.py
Lily-Li828/effective-octo-fiesta
4dbfeaec6158141bb03005aa25240dd337694ee3
[ "Apache-2.0" ]
null
null
null
import pygame from pygame.locals import* from pygame import mixer pygame.init() # loading in background image backgroundClassic_image=pygame.image.load('image/WallPaper.png') backgroundAncient_image=pygame.image.load('image/WallPaper2.png') # loading in player image player_imageClassic=pygame.image....
54.930435
114
0.625139
0
0
0
0
0
0
0
0
1,544
0.24442
cd4c852bd50c3ecb65653b4479673255f18bc5fa
8,170
py
Python
test/filters_iso_test.py
todofixthis/filters-iso
da6052b49a2f71a3b3d6b66e2633debbb64f5b16
[ "MIT" ]
null
null
null
test/filters_iso_test.py
todofixthis/filters-iso
da6052b49a2f71a3b3d6b66e2633debbb64f5b16
[ "MIT" ]
null
null
null
test/filters_iso_test.py
todofixthis/filters-iso
da6052b49a2f71a3b3d6b66e2633debbb64f5b16
[ "MIT" ]
null
null
null
import filters as f from filters.test import BaseFilterTestCase # noinspection PyProtectedMember from iso3166 import Country, countries_by_alpha3 from language_tags import tags from language_tags.Tag import Tag from moneyed import Currency, get_currency class CountryTestCase(BaseFilterTestCase): filter_type = f.e...
31.914063
75
0.623745
7,907
0.967809
0
0
0
0
0
0
3,607
0.441493
cd4d5dd7883050a254679a4b1f93de18a8465561
1,179
py
Python
datacamp-master/22-introduction-to-time-series-analysis-in-python/04-moving-average-ma-and-arma-models/08-equivalance-of-ar(1)-and-ma(infinity).py
vitthal10/datacamp
522d2b192656f7f6563bf6fc33471b048f1cf029
[ "MIT" ]
1
2020-06-11T01:32:36.000Z
2020-06-11T01:32:36.000Z
22-introduction-to-time-series-analysis-in-python/04-moving-average-ma-and-arma-models/08-equivalance-of-ar(1)-and-ma(infinity).py
AndreasFerox/DataCamp
41525d7252f574111f4929158da1498ee1e73a84
[ "MIT" ]
null
null
null
22-introduction-to-time-series-analysis-in-python/04-moving-average-ma-and-arma-models/08-equivalance-of-ar(1)-and-ma(infinity).py
AndreasFerox/DataCamp
41525d7252f574111f4929158da1498ee1e73a84
[ "MIT" ]
1
2021-08-08T05:09:52.000Z
2021-08-08T05:09:52.000Z
''' Equivalence of AR(1) and MA(infinity) To better understand the relationship between MA models and AR models, you will demonstrate that an AR(1) model is equivalent to an MA(∞ ∞ ) model with the appropriate parameters. You will simulate an MA model with parameters 0.8,0.82,0.83,… 0.8 , 0.8 2 , 0.8 3 , … for a lar...
19.983051
136
0.74894
0
0
0
0
0
0
0
0
892
0.747695
cd4e4c3a86cc4a31b024c46ddddde1fa3e66e93b
3,752
py
Python
imutils.py
shimoda-uec/ssdd
564c3e08fae7a158516cdbd9f3599a74dc748aff
[ "MIT" ]
33
2019-11-05T07:15:36.000Z
2021-04-27T06:33:47.000Z
imutils.py
shimoda-uec/ssdd
564c3e08fae7a158516cdbd9f3599a74dc748aff
[ "MIT" ]
1
2019-11-18T13:02:40.000Z
2019-11-18T13:02:54.000Z
imutils.py
shimoda-uec/ssdd
564c3e08fae7a158516cdbd9f3599a74dc748aff
[ "MIT" ]
3
2019-11-25T11:00:39.000Z
2021-03-27T06:53:21.000Z
import PIL.Image import random import numpy as np import cv2 class RandomHorizontalFlip(): def __init__(self): return def __call__(self, inputs): if bool(random.getrandbits(1)): outputs=[] for inp in inputs: out = np.fliplr(inp).copy() ou...
32.068376
91
0.567697
3,053
0.813699
0
0
0
0
0
0
211
0.056237
cd503144da89b34c7f7e0c6f7d30f63249106454
398
py
Python
dfmt/svg/run.py
wangrl2016/coding
fd6cd342cade42379c4a0447d83e17c6596fd3a3
[ "MIT" ]
4
2021-02-20T03:47:48.000Z
2021-11-09T17:25:43.000Z
dfmt/svg/run.py
wangrl2016/coding
fd6cd342cade42379c4a0447d83e17c6596fd3a3
[ "MIT" ]
null
null
null
dfmt/svg/run.py
wangrl2016/coding
fd6cd342cade42379c4a0447d83e17c6596fd3a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import subprocess if __name__ == '__main__': out_dir = 'out' if not os.path.exists(out_dir): os.mkdir(out_dir) subprocess.run(['cargo', 'build', '--release']) exe = 'target/release/svg' subprocess.run([exe, '-i', 'test/simple-text.svg', '-o', 'out/simple-t...
26.533333
93
0.585427
0
0
0
0
0
0
0
0
174
0.437186
cd517441104b9bb84c95422e46c5a618c55415fc
79
py
Python
project/enums/string_types_enum.py
vinibiavatti1/PythonFlaskCms
e43a4db84d1f77a5f66b1f8fcb9dc96e05e6c023
[ "MIT" ]
null
null
null
project/enums/string_types_enum.py
vinibiavatti1/PythonFlaskCms
e43a4db84d1f77a5f66b1f8fcb9dc96e05e6c023
[ "MIT" ]
null
null
null
project/enums/string_types_enum.py
vinibiavatti1/PythonFlaskCms
e43a4db84d1f77a5f66b1f8fcb9dc96e05e6c023
[ "MIT" ]
null
null
null
""" String format type value enumeration. """ TRUE = '1' FALSE = '0' NONE = ''
11.285714
37
0.594937
0
0
0
0
0
0
0
0
53
0.670886
cd52a473787d5199c37a49a98543ea8b45caa074
90
py
Python
LTA/museums/admin.py
valeriimartsyshyn/lviv_tourist_adviser
e8ce0c7ba97262b2d181e3373eb806f4dcc9bbf1
[ "MIT" ]
null
null
null
LTA/museums/admin.py
valeriimartsyshyn/lviv_tourist_adviser
e8ce0c7ba97262b2d181e3373eb806f4dcc9bbf1
[ "MIT" ]
1
2021-09-27T06:33:26.000Z
2021-09-27T06:33:26.000Z
LTA/museums/admin.py
valeriimartsyshyn/lviv_tourist_adviser
e8ce0c7ba97262b2d181e3373eb806f4dcc9bbf1
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Museums admin.site.register(Museums)
22.5
32
0.833333
0
0
0
0
0
0
0
0
0
0
cd537e30b909d9612963bfa8b8f1c4d920b60f98
1,584
py
Python
grailapp-osc-6a60f9376f69/setup.py
yuan7407/TD_OpenCV_PythonOSC
f4424b1f7155f7942397212b97183cb749612f50
[ "MIT" ]
20
2018-12-06T21:35:10.000Z
2022-02-08T23:22:35.000Z
grailapp-osc-6a60f9376f69/setup.py
phoebezhung/TD_OpenCV_PythonOSC
f4424b1f7155f7942397212b97183cb749612f50
[ "MIT" ]
null
null
null
grailapp-osc-6a60f9376f69/setup.py
phoebezhung/TD_OpenCV_PythonOSC
f4424b1f7155f7942397212b97183cb749612f50
[ "MIT" ]
4
2019-02-27T08:13:45.000Z
2021-11-02T15:14:41.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ setup ~~~~~ Setup Script Run the build process by running the command 'python setup.py build' :copyright: (c) 2018 by Oleksii Lytvyn. :license: MIT, see LICENSE for more details. """ import osc.osc as osc try: from setuptools import setup...
31.058824
92
0.621212
0
0
0
0
0
0
0
0
1,037
0.654672
cd5534b9b393b4ca6ad72c44a3438fcc6e74b3d0
2,501
py
Python
socketshark/utils.py
Play2Live/socketshark
9b1e40654bf629c593079fb44c548911d4c864af
[ "MIT" ]
null
null
null
socketshark/utils.py
Play2Live/socketshark
9b1e40654bf629c593079fb44c548911d4c864af
[ "MIT" ]
null
null
null
socketshark/utils.py
Play2Live/socketshark
9b1e40654bf629c593079fb44c548911d4c864af
[ "MIT" ]
null
null
null
import asyncio import ssl import aiohttp from . import constants as c def _get_rate_limit_wait(log, resp, opts): """ Returns the number of seconds we should wait given a 429 HTTP response and HTTP options. """ max_wait = 3600 wait = opts['wait'] header_name = opts['rate_limit_reset_he...
35.225352
78
0.551779
0
0
0
0
0
0
1,389
0.555378
469
0.187525
cd592812165ebec71f40378868573e5f9eda72b9
252
py
Python
download_and_create_reference_datasets/v02/create_ht__clinvar.py
NLSVTN/hail-elasticsearch-pipelines
8b895a2e46a33d347dd2a1024101a6d515027a03
[ "MIT" ]
15
2017-11-22T14:48:04.000Z
2020-10-05T18:22:24.000Z
download_and_create_reference_datasets/v02/create_ht__clinvar.py
NLSVTN/hail-elasticsearch-pipelines
8b895a2e46a33d347dd2a1024101a6d515027a03
[ "MIT" ]
94
2020-10-21T17:37:57.000Z
2022-03-29T14:59:46.000Z
download_and_create_reference_datasets/v02/create_ht__clinvar.py
NLSVTN/hail-elasticsearch-pipelines
8b895a2e46a33d347dd2a1024101a6d515027a03
[ "MIT" ]
7
2019-01-29T09:08:10.000Z
2020-02-25T16:22:57.000Z
#!/usr/bin/env python3 from kubernetes.shell_utils import simple_run as run run(( "python3 gcloud_dataproc/v02/run_script.py " "--cluster create-ht-clinvar " "download_and_create_reference_datasets/v02/hail_scripts/write_clinvar_ht.py"))
28
83
0.77381
0
0
0
0
0
0
0
0
173
0.686508
cd597b04327e251c7079f983fdc1e98e38cf4a8a
4,324
py
Python
cogs/member_.py
himo1101/NFlegel
7621f5d71b41b71faaf44d142f3b903b0471873a
[ "MIT" ]
null
null
null
cogs/member_.py
himo1101/NFlegel
7621f5d71b41b71faaf44d142f3b903b0471873a
[ "MIT" ]
null
null
null
cogs/member_.py
himo1101/NFlegel
7621f5d71b41b71faaf44d142f3b903b0471873a
[ "MIT" ]
null
null
null
from discord.ext import commands from flegelapi.pg import default, server from distutils.util import strtobool import discord member_table= """ member_( id serial PRIMARY KEY, server_id interger NOT NULL, role_ld interger, channel_id interger, custom_mes character varying DEFAULT が入出しました。, on_o...
32.757576
102
0.56568
4,104
0.89607
0
0
3,916
0.855022
3,791
0.827729
1,142
0.249345
cd59d9b93bd906d8d50478926274bfcb5696cb98
4,388
py
Python
old/policy_grads2.py
DarkElement75/cartpole-policy-gradients
ca6b7fb826fa023e2d845408d3d16d8032b07508
[ "MIT" ]
null
null
null
old/policy_grads2.py
DarkElement75/cartpole-policy-gradients
ca6b7fb826fa023e2d845408d3d16d8032b07508
[ "MIT" ]
null
null
null
old/policy_grads2.py
DarkElement75/cartpole-policy-gradients
ca6b7fb826fa023e2d845408d3d16d8032b07508
[ "MIT" ]
null
null
null
import gym import numpy as np import sys import theano import theano.tensor as T import layers from layers import FullyConnectedLayer, SoftmaxLayer env = gym.make('CartPole-v0') #Number of actions action_n = env.action_space.n #Number of features observed feature_n = env.observation_space.shape[0] epochs = 100 min...
26.756098
120
0.635369
0
0
0
0
0
0
0
0
1,337
0.304695
cd5a19f0cbafdf639c273ea9eebb620d7cbc509e
7,720
py
Python
client.py
andreidorin13/cs544-messaging-protocol
40d26cb20234a4ad58095150795946aceaf9e4d4
[ "MIT" ]
null
null
null
client.py
andreidorin13/cs544-messaging-protocol
40d26cb20234a4ad58095150795946aceaf9e4d4
[ "MIT" ]
null
null
null
client.py
andreidorin13/cs544-messaging-protocol
40d26cb20234a4ad58095150795946aceaf9e4d4
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Andrei Dorin 06/10/2018 User interface for WISP chat implementation ''' import argparse import logging import signal import sys import time import queue import select import getpass from wisp_client import WispClient from wisp_common import State, WispRequest, WispResponse, WispMessage, WISP_DEF...
32.166667
116
0.584197
6,178
0.800259
0
0
725
0.093912
0
0
2,244
0.290674
cd5a2073c9ceff87b49af728a52895c0f1961f0b
61
py
Python
newpy/loggers/__init__.py
janithPet/newpy
feb264f4e3da371c3f2ddc7633f3fdd5a25db661
[ "MIT" ]
null
null
null
newpy/loggers/__init__.py
janithPet/newpy
feb264f4e3da371c3f2ddc7633f3fdd5a25db661
[ "MIT" ]
4
2021-09-03T06:18:29.000Z
2021-09-03T08:36:25.000Z
newpy/loggers/__init__.py
janithPet/newpy
feb264f4e3da371c3f2ddc7633f3fdd5a25db661
[ "MIT" ]
null
null
null
from newpy.loggers.colored_formatter import ColoredFormatter
30.5
60
0.901639
0
0
0
0
0
0
0
0
0
0
cd5d8710df3d01c40879c8b39d50c6ffb79da254
181
py
Python
putao/source/__init__.py
ongyx/putao
e901402308b9b4c3c9acf8dae15eb4781ddfcede
[ "MIT" ]
7
2021-06-29T00:50:46.000Z
2021-10-14T23:31:12.000Z
putao/source/__init__.py
ongyx/putao
e901402308b9b4c3c9acf8dae15eb4781ddfcede
[ "MIT" ]
2
2021-08-28T05:34:01.000Z
2021-08-29T05:03:34.000Z
putao/source/__init__.py
ongyx/putao
e901402308b9b4c3c9acf8dae15eb4781ddfcede
[ "MIT" ]
null
null
null
# coding: utf8 """Sources provide an abstraction between a source of music notes and putao projects.""" from . import mml # noqa from .reg import formats, loads, register # noqa
30.166667
88
0.734807
0
0
0
0
0
0
0
0
114
0.629834
cd5dd7dda160122dc7f0149e4f5abf4d8e95ebe4
206
py
Python
parser/src/test/test-data/math_csc.py
luciansmith/sedml-script
d891645d0b3f89ff190fc7e719659c8e229c07da
[ "MIT" ]
null
null
null
parser/src/test/test-data/math_csc.py
luciansmith/sedml-script
d891645d0b3f89ff190fc7e719659c8e229c07da
[ "MIT" ]
null
null
null
parser/src/test/test-data/math_csc.py
luciansmith/sedml-script
d891645d0b3f89ff190fc7e719659c8e229c07da
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created by libsedmlscript v0.0.1 """ from sed_roadrunner import model, task, plot from mpmath import csc #---------------------------------------------- csc(0.5)
15.846154
48
0.475728
0
0
0
0
0
0
0
0
116
0.563107