hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
6cd0485e420b2912077f2730bc13e9cd67a6e4c6
171
py
Python
src/msxsecurity/__init__.py
mtsizis/python-msx-security
baf57c5e2284a100eccc80d17f062c9baf081ca7
[ "MIT" ]
null
null
null
src/msxsecurity/__init__.py
mtsizis/python-msx-security
baf57c5e2284a100eccc80d17f062c9baf081ca7
[ "MIT" ]
null
null
null
src/msxsecurity/__init__.py
mtsizis/python-msx-security
baf57c5e2284a100eccc80d17f062c9baf081ca7
[ "MIT" ]
1
2022-01-18T00:31:22.000Z
2022-01-18T00:31:22.000Z
# # Copyright (c) 2021 Cisco Systems, Inc and its affiliates # All rights reserved # from msxsecurity.msxsecurity import MSXSecurity, MSXSecurityConfig, MSXSecurityContext
34.2
86
0.818713
1eb43ac7d35e54535263ec7bf6e7cbd7f61a3b55
12,547
py
Python
venv/lib/python3.9/site-packages/cattr/gen.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.9/site-packages/cattr/gen.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.9/site-packages/cattr/gen.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
null
null
null
import re from dataclasses import is_dataclass from typing import Any, Optional, Type, TypeVar import attr from attr import NOTHING, resolve_types from ._compat import adapted_fields, get_args, get_origin, is_generic @attr.s(slots=True, frozen=True) class AttributeOverride(object): omit_if_default: Optional[boo...
31.446115
123
0.590101
0262d8e4b8d339790550a3e22146d127121b1755
2,538
py
Python
downstage/utils.py
streamsets/adls-gen2-python
15d1fd968db67b832ebd8bff0aef376a5bf7edcc
[ "Apache-2.0" ]
1
2020-04-14T03:01:55.000Z
2020-04-14T03:01:55.000Z
downstage/utils.py
streamsets/adls-gen2-python
15d1fd968db67b832ebd8bff0aef376a5bf7edcc
[ "Apache-2.0" ]
2
2019-06-11T20:45:55.000Z
2019-07-09T17:50:05.000Z
downstage/utils.py
streamsets/adls-gen2-python
15d1fd968db67b832ebd8bff0aef376a5bf7edcc
[ "Apache-2.0" ]
2
2019-09-14T08:31:33.000Z
2021-03-15T05:17:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # 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 ...
40.935484
112
0.676911
270b632e8444fa261020deeba2308874b5afef9c
2,458
py
Python
tests/test_project/settings.py
rlconsult/behave-django
74041166bb106dead789eb70f88c0fee61e88dce
[ "MIT" ]
null
null
null
tests/test_project/settings.py
rlconsult/behave-django
74041166bb106dead789eb70f88c0fee61e88dce
[ "MIT" ]
null
null
null
tests/test_project/settings.py
rlconsult/behave-django
74041166bb106dead789eb70f88c0fee61e88dce
[ "MIT" ]
1
2021-11-12T16:08:17.000Z
2021-11-12T16:08:17.000Z
""" Django settings for test_project project. For more information on this file, see https://docs.djangoproject.com/en/stable/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/stable/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_D...
24.828283
74
0.698129
2021b10d45a6231ccc2914795a3d79a7930e786b
524
py
Python
basic_usage.py
allenai/learning-curve
6a56f9ea6adb398b342fe188e40cf53484e82c59
[ "Apache-2.0" ]
6
2021-06-07T06:16:44.000Z
2022-03-18T18:00:03.000Z
basic_usage.py
allenai/learning-curve
6a56f9ea6adb398b342fe188e40cf53484e82c59
[ "Apache-2.0" ]
null
null
null
basic_usage.py
allenai/learning-curve
6a56f9ea6adb398b342fe188e40cf53484e82c59
[ "Apache-2.0" ]
null
null
null
from lc.measurements import CurveMeasurements from lc.curve import LearningCurveEstimator from omegaconf import OmegaConf import matplotlib import matplotlib.pyplot as plt # Load error measurements curvems = CurveMeasurements() curvems.load_from_json('data/no_pretr_ft.json') # Load config cfg = OmegaConf.load('lc/con...
24.952381
56
0.814885
5d7df6636081dbc231b153c13db008bd1169f2da
121
py
Python
vchamtools/__init__.py
oh-fv/vchamtools
80ca39931b47db00cb9ed70e04687fabade20610
[ "MIT" ]
null
null
null
vchamtools/__init__.py
oh-fv/vchamtools
80ca39931b47db00cb9ed70e04687fabade20610
[ "MIT" ]
null
null
null
vchamtools/__init__.py
oh-fv/vchamtools
80ca39931b47db00cb9ed70e04687fabade20610
[ "MIT" ]
1
2021-01-06T22:02:56.000Z
2021-01-06T22:02:56.000Z
#!/usr/bin/env python3 # from .molecule import * # from .scan import * # from .sqlitedb import * # from .vcham import *
17.285714
25
0.669421
cd0c48bfe7214f99297abf43feb9e41d1f320cd3
5,166
py
Python
preprocessing/notebook/tcga/tcga_create_epigen_data_slurm.py
primasanjaya/muat-github
4603c6c960188643fb38d8dba82e0dcc1ba00b40
[ "Apache-2.0" ]
null
null
null
preprocessing/notebook/tcga/tcga_create_epigen_data_slurm.py
primasanjaya/muat-github
4603c6c960188643fb38d8dba82e0dcc1ba00b40
[ "Apache-2.0" ]
null
null
null
preprocessing/notebook/tcga/tcga_create_epigen_data_slurm.py
primasanjaya/muat-github
4603c6c960188643fb38d8dba82e0dcc1ba00b40
[ "Apache-2.0" ]
1
2022-03-22T15:35:57.000Z
2022-03-22T15:35:57.000Z
import numpy as np import pandas as pd import pdb import os import math import argparse ''' how to run ex: python3 /users/primasan/projects/muat/preprocessing/notebook/tcga/tcga_create_epigen_data_slurm.py --class-name 'HNSC' --sample-file 'TCGA-CN-4739-01A-02D-1512-08.csv' --muat-dir '/users/primasan/projects/muat/' ...
45.315789
459
0.68583
f3001e58c90be57bf86441d1bbf16ea6b893679d
3,436
py
Python
reflector.py
generic-user1/py-enigma
6d310fc6d54c0bf598259c7f14aa20fb0bf3d5c5
[ "MIT" ]
1
2021-09-02T22:04:56.000Z
2021-09-02T22:04:56.000Z
reflector.py
generic-user1/py-enigma
6d310fc6d54c0bf598259c7f14aa20fb0bf3d5c5
[ "MIT" ]
null
null
null
reflector.py
generic-user1/py-enigma
6d310fc6d54c0bf598259c7f14aa20fb0bf3d5c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from letterswitcher import LetterSwitcher from enum import Enum #define an enumeration for the different types of Reflector #that are currently supported #TODO: support thin reflectors class ReflectorType(Enum): B = 0 C = 1 #class for an Enigma reflector #reflectors are used to 'ref...
39.045455
269
0.627765
0823c42cbb8d6f7102c20abb6c1a7b1d7f22eefd
109,521
py
Python
pyroSAR/drivers.py
tyler-c2s/pyroSAR
7bffbdda781aad35ef92967df8738566886b449f
[ "MIT" ]
null
null
null
pyroSAR/drivers.py
tyler-c2s/pyroSAR
7bffbdda781aad35ef92967df8738566886b449f
[ "MIT" ]
null
null
null
pyroSAR/drivers.py
tyler-c2s/pyroSAR
7bffbdda781aad35ef92967df8738566886b449f
[ "MIT" ]
null
null
null
############################################################################### # Reading and Organizing system for SAR images # Copyright (c) 2016-2021, the pyroSAR Developers. # This file is part of the pyroSAR Project. It is subject to the # license terms in the LICENSE.txt file found in the top-level # directory o...
39.811341
147
0.546224
84996afff2650222789e0dd81257a5f540242653
1,178
py
Python
examples/custom_op_via_python.py
anttisaukko/tensorflow-onnx
1341bdf476df6023b75bc6b3c6e4cda00cc58a29
[ "MIT" ]
1
2021-07-15T06:30:19.000Z
2021-07-15T06:30:19.000Z
examples/custom_op_via_python.py
Roshrini/tensorflow-onnx
80d8fe8c5645a22f59bdf919143d1807ba220907
[ "MIT" ]
null
null
null
examples/custom_op_via_python.py
Roshrini/tensorflow-onnx
80d8fe8c5645a22f59bdf919143d1807ba220907
[ "MIT" ]
null
null
null
""" A simple example how to map a custom op in python. """ import tensorflow as tf import tf2onnx from onnx import helper _TENSORFLOW_DOMAIN = "ai.onnx.converters.tensorflow" def print_handler(ctx, node, name, args): # replace tf.Print() with Identity # T output = Print(T input, data, @list(type) U, @strin...
34.647059
106
0.594228
33ffa2854eb1c0ace632654b1a200ea459875e0d
13,515
py
Python
exchangelib/extended_properties.py
ifour92/exchangelib
eb86f2ab9f9a16e07f0d19e0dcf69065b02d9f8a
[ "BSD-2-Clause" ]
null
null
null
exchangelib/extended_properties.py
ifour92/exchangelib
eb86f2ab9f9a16e07f0d19e0dcf69065b02d9f8a
[ "BSD-2-Clause" ]
null
null
null
exchangelib/extended_properties.py
ifour92/exchangelib
eb86f2ab9f9a16e07f0d19e0dcf69065b02d9f8a
[ "BSD-2-Clause" ]
null
null
null
import base64 import logging from decimal import Decimal from .ewsdatetime import EWSDateTime from .properties import EWSElement from .util import create_element, add_xml_child, get_xml_attrs, get_xml_attr, set_xml_value, value_to_xml_text, \ xml_text_to_value, is_iterable, safe_b64decode, TNS log = logging.getLo...
42.904762
120
0.630781
11c43c68aa4d1dbac01076416ef623e15cd11056
180
py
Python
opal/test_settings.py
cs4p/opal
8c01814a66e03a4481d3fc06375d097866485bc6
[ "CC0-1.0" ]
null
null
null
opal/test_settings.py
cs4p/opal
8c01814a66e03a4481d3fc06375d097866485bc6
[ "CC0-1.0" ]
1
2022-01-05T19:41:20.000Z
2022-01-05T19:41:20.000Z
opal/test_settings.py
cs4p/opal
8c01814a66e03a4481d3fc06375d097866485bc6
[ "CC0-1.0" ]
null
null
null
from opal.settings import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, DB_NAME), } }
25.714286
92
0.533333
f51474af18f80c64c7af277ea833cc8e9c953b61
3,357
py
Python
mitglieder/tests/test_views.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
src/mitglieder/tests/test_views.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
src/mitglieder/tests/test_views.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from django.test import TestCase, Client from django.urls import reverse, resolve from django.contrib.auth import get_user_model import json from mitglieder.models import Mitglied, MitgliedAmt, MitgliedMail class TestViews(TestCase): def setUp(self): self.client = Client() # Hinzufügen von Admin...
36.096774
90
0.661901
deb8e12fc555a9e30878f0a80a560d8959a3ec9a
678
py
Python
conductor/app/db/session.py
PHT-EU/central-conductor
59e394128be1385664064f62400914b98a2e9104
[ "MIT" ]
null
null
null
conductor/app/db/session.py
PHT-EU/central-conductor
59e394128be1385664064f62400914b98a2e9104
[ "MIT" ]
null
null
null
conductor/app/db/session.py
PHT-EU/central-conductor
59e394128be1385664064f62400914b98a2e9104
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker import os # SQLALCHEMY_DATABASE_URL = "sqlite:///./app.db" if os.getenv("CONDUCTOR_DB"): SQLALCHEMY_DATABASE_URL = os.getenv("CONDUCTOR_DB") print("Connecting to DB specified in...
35.684211
89
0.784661
b6ccfe611a2c532ff2590ee583e406ea45f0a791
15,187
py
Python
sample_pose.py
swipswaps/mediapipe-python
00700129ced41dcdab174cd46454f5e7e3d9e25b
[ "Apache-2.0" ]
92
2021-03-09T08:27:17.000Z
2022-03-09T08:20:48.000Z
sample_pose.py
swipswaps/mediapipe-python
00700129ced41dcdab174cd46454f5e7e3d9e25b
[ "Apache-2.0" ]
1
2021-12-23T05:15:26.000Z
2022-02-21T20:35:21.000Z
sample_pose.py
swipswaps/mediapipe-python
00700129ced41dcdab174cd46454f5e7e3d9e25b
[ "Apache-2.0" ]
46
2021-03-08T10:24:54.000Z
2021-12-20T07:12:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import copy import argparse import cv2 as cv import numpy as np import mediapipe as mp from utils import CvFpsCalc def get_args(): parser = argparse.ArgumentParser() parser.add_argument("--device", type=int, default=0) parser.add_argument("--width", help='c...
41.837466
78
0.519984
067b31f48040fed98726988f9fef844e8e685817
476
py
Python
ModelEngines/NIC_Engine.py
zyj0021200/simpleImageCaptionZoo
9efbccf28d755e3efc53f0d955f8e3aaf1437e09
[ "MIT" ]
11
2020-06-23T18:22:01.000Z
2022-03-30T09:42:11.000Z
ModelEngines/NIC_Engine.py
zyj0021200/simpleImageCaptionZoo
9efbccf28d755e3efc53f0d955f8e3aaf1437e09
[ "MIT" ]
2
2022-03-15T14:41:11.000Z
2022-03-30T12:12:54.000Z
ModelEngines/NIC_Engine.py
zyj0021200/simpleImageCaptionZoo
9efbccf28d755e3efc53f0d955f8e3aaf1437e09
[ "MIT" ]
2
2020-06-24T10:30:02.000Z
2021-04-22T18:29:50.000Z
from Engine import Engine class NIC_Eng(Engine): def get_model_params(self): cnn_extractor_params = list(filter(lambda p: p.requires_grad, self.model.encoder.feature_extractor.parameters())) captioner_params = list(self.model.encoder.img_embedding.parameters()) + \ list(s...
52.888889
121
0.672269
eee66d1c5f45a89c0d49bc99dd3a921920050b50
539
py
Python
project_euler/101.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
project_euler/101.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
project_euler/101.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
from __future__ import division def u(n): ret = 0 for i in xrange(0, 11): ret += (-1)**i * n**i return ret def solve(k): a = [] for n in xrange(1, k+1): x = [n**x for x in xrange(0, k)] x.append(u(n)) a.append(x) for j in xrange(0, k): for i in xrange(0, k): if i == j: continue ...
19.25
38
0.493506
22b260a1f6b97632fcd80e8f4cc2f09a3eefe772
3,099
py
Python
src/core/tests/test_models.py
nickho6617/threecows
beef82251a1f8a41216a1c59f5c3162ddf18ce9d
[ "MIT" ]
null
null
null
src/core/tests/test_models.py
nickho6617/threecows
beef82251a1f8a41216a1c59f5c3162ddf18ce9d
[ "MIT" ]
null
null
null
src/core/tests/test_models.py
nickho6617/threecows
beef82251a1f8a41216a1c59f5c3162ddf18ce9d
[ "MIT" ]
null
null
null
import datetime from django.test import TestCase from unittest.mock import patch from django.contrib.auth import get_user_model from core import models # helper for logins def sample_user(email='test@example.com', password='testpass'): """Create a sample user""" return get_user_model().objects.cre...
31.948454
70
0.605034
06163abd10e835d6d5d3677f9d3a82e3d7971178
842
py
Python
test_chunker.py
donama/phraseengine
de35cb54268aabe44a3c538823ce2141cc1be9ea
[ "Apache-2.0" ]
null
null
null
test_chunker.py
donama/phraseengine
de35cb54268aabe44a3c538823ce2141cc1be9ea
[ "Apache-2.0" ]
null
null
null
test_chunker.py
donama/phraseengine
de35cb54268aabe44a3c538823ce2141cc1be9ea
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from nltk.corpus import conll2000 from chunker import * if __name__ == '__main__': # Test the unigram chunker using the coll2000 dataset test_sents = conll2000.chunked_sents('test.txt',chunk_types=['NP']) train_sents = conll2000.chunked_sents('train.txt',chunk_types=['NP']) ...
31.185185
73
0.728029
bb25d973835290e3a9d15827d5c440d8f719c955
13,862
py
Python
GCode_NCP.py
mauderliEmbotech/robodk_postprocessors
32f47272bc28dc8d2bfd95c2237b945de009b0e5
[ "Apache-2.0" ]
41
2017-03-07T11:00:23.000Z
2022-03-01T19:05:04.000Z
GCode_NCP.py
mauderliEmbotech/robodk_postprocessors
32f47272bc28dc8d2bfd95c2237b945de009b0e5
[ "Apache-2.0" ]
7
2017-05-11T09:31:24.000Z
2021-07-24T16:16:43.000Z
GCode_NCP.py
mauderliEmbotech/robodk_postprocessors
32f47272bc28dc8d2bfd95c2237b945de009b0e5
[ "Apache-2.0" ]
33
2017-04-28T03:23:15.000Z
2022-03-21T21:41:09.000Z
# Copyright 2017 - RoboDK Software S.L. - http://www.robodk.com/ # 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 applicabl...
45.153094
171
0.559443
797744a712c8baa51d740abeaad63d5bb5a004fe
24,952
py
Python
data/transcoder_evaluation_gfg/python/ROW_WISE_COMMON_ELEMENTS_TWO_DIAGONALS_SQUARE_MATRIX.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/ROW_WISE_COMMON_ELEMENTS_TWO_DIAGONALS_SQUARE_MATRIX.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/ROW_WISE_COMMON_ELEMENTS_TWO_DIAGONALS_SQUARE_MATRIX.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( mat , n ) : res = 0 for i in range ( n ) : if mat [ i ] [ i ] == mat [ i ] [ n - i - 1 ] : ...
733.882353
9,524
0.423052
e4f9101426fe627b27f6436ceb1b93d692829685
474
py
Python
miner/misc/logger.py
PranayAnchuri/probgraphminer
93ac615b4a83d5ca34ce7437eeb430cd123c11d3
[ "MIT" ]
null
null
null
miner/misc/logger.py
PranayAnchuri/probgraphminer
93ac615b4a83d5ca34ce7437eeb430cd123c11d3
[ "MIT" ]
null
null
null
miner/misc/logger.py
PranayAnchuri/probgraphminer
93ac615b4a83d5ca34ce7437eeb430cd123c11d3
[ "MIT" ]
1
2022-03-07T12:04:31.000Z
2022-03-07T12:04:31.000Z
__author__ = 'Pranay Anchuri' import logging def get_logger(name=None): if not name: name = "__main__" formatter = logging.Formatter('%(levelname)s: %(funcName)s(%(lineno)d) -- %(message)s', datefmt='%Y-%m-%d %H:%M:%S') logger = logging.getLogger(name) fh = lo...
29.625
91
0.605485
e295e9829b5e335c184d7c2221bead5a997dfbef
48
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/python_Built-in_Modules.txt.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
5
2021-06-02T23:44:25.000Z
2021-12-27T16:21:57.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/python_Built-in_Modules.txt.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
22
2021-05-31T01:33:25.000Z
2021-10-18T18:32:39.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/python_Built-in_Modules.txt.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
3
2021-06-19T03:37:47.000Z
2021-08-31T00:49:51.000Z
import platform x = platform.system() print(x)
9.6
21
0.729167
b1d3a6e1fc92155b5d8566a43ee3e6cd35c271a7
2,880
py
Python
selenium/python-example/test_litecart_window_add_to_cart.py
gennadykr/selenium-training
4c6ab9b9a152e2a385558d89eebd4d60c78950ff
[ "Apache-2.0" ]
null
null
null
selenium/python-example/test_litecart_window_add_to_cart.py
gennadykr/selenium-training
4c6ab9b9a152e2a385558d89eebd4d60c78950ff
[ "Apache-2.0" ]
null
null
null
selenium/python-example/test_litecart_window_add_to_cart.py
gennadykr/selenium-training
4c6ab9b9a152e2a385558d89eebd4d60c78950ff
[ "Apache-2.0" ]
null
null
null
import pytest from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.support.select import Select from selenium.webdriver.common.keys import Keys import ...
41.73913
124
0.709028
1282ae2965a30a9dbf04343d9980d6c027a67ca7
3,091
py
Python
tests/supervisors/test_reload.py
OakNorthAI/uvicorn
226b15e1f41692ba1c992dc1d8a9d6502d0df226
[ "BSD-3-Clause" ]
null
null
null
tests/supervisors/test_reload.py
OakNorthAI/uvicorn
226b15e1f41692ba1c992dc1d8a9d6502d0df226
[ "BSD-3-Clause" ]
null
null
null
tests/supervisors/test_reload.py
OakNorthAI/uvicorn
226b15e1f41692ba1c992dc1d8a9d6502d0df226
[ "BSD-3-Clause" ]
null
null
null
import signal from pathlib import Path from time import sleep import pytest from uvicorn.config import Config from uvicorn.supervisors import WatchmanReload from uvicorn.supervisors.basereload import BaseReload from uvicorn.supervisors.statreload import StatReload from uvicorn.supervisors.watchgodreload import WatchG...
30.91
88
0.663863
40349725016c129057409dfc8f0c04ad65750178
10,201
py
Python
unittests.py
hurxx018/tv_script_generation
321d4a6ec4cc3bc9b0e4ae7ac2c9e7771ba890bc
[ "MIT" ]
null
null
null
unittests.py
hurxx018/tv_script_generation
321d4a6ec4cc3bc9b0e4ae7ac2c9e7771ba890bc
[ "MIT" ]
null
null
null
unittests.py
hurxx018/tv_script_generation
321d4a6ec4cc3bc9b0e4ae7ac2c9e7771ba890bc
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock, patch import numpy as np import torch class _TestNN(torch.nn.Module): def __init__(self, input_size, output_size): super(_TestNN, self).__init__() self.decoder = torch.nn.Linear(input_size, output_size) self.forward_called = False def forward(self...
36.694245
142
0.681208
ed471f1aca076c04da10d477160abd501c9aa5ce
3,172
py
Python
zerver/management/commands/import.py
Rishabh570/zulip
0600646fbfdcfb20c0c0d47950690a6efac873aa
[ "Apache-2.0" ]
null
null
null
zerver/management/commands/import.py
Rishabh570/zulip
0600646fbfdcfb20c0c0d47950690a6efac873aa
[ "Apache-2.0" ]
11
2021-02-08T20:59:55.000Z
2022-03-12T00:51:41.000Z
zerver/management/commands/import.py
usmanmuhd/zulip
0600646fbfdcfb20c0c0d47950690a6efac873aa
[ "Apache-2.0" ]
null
null
null
from django.core.management import call_command from django.core.management.base import BaseCommand, CommandParser from django.conf import settings from zerver.models import Realm, Stream, UserProfile, Recipient, Subscription, \ Message, UserMessage, Huddle, DefaultStream, RealmDomain, RealmFilter, Client from ze...
41.194805
112
0.609395
db3b5a744d085adeb77b3077157d413bf5d388ee
2,606
py
Python
operatorcourier/push.py
aravindhp/operator-courier
4d1a25d2c8d52f7de6297ec18d8afd6521236aa2
[ "Apache-2.0" ]
1
2020-01-18T08:30:08.000Z
2020-01-18T08:30:08.000Z
operatorcourier/push.py
aneeshkp/operator-courier
f28a7813bab7bc3e26c3c86d6e36014f72801435
[ "Apache-2.0" ]
null
null
null
operatorcourier/push.py
aneeshkp/operator-courier
f28a7813bab7bc3e26c3c86d6e36014f72801435
[ "Apache-2.0" ]
null
null
null
import os import base64 import requests import tarfile import logging from tempfile import TemporaryDirectory from operatorcourier.errors import ( OpCourierQuayCommunicationError, OpCourierQuayErrorResponse ) logger = logging.getLogger(__name__) class PushCmd(): name = 'push' def __init__(self): ...
37.768116
89
0.644666
146fbb31d34df68509b1af9afb9fce4d6a32530a
11,978
py
Python
sympy/assumptions/refine.py
nerdishhomosapein/sympy
2ead5bfe4716c36e1c0839c25aa6dc87cd85b0f2
[ "BSD-3-Clause" ]
1
2021-09-21T11:50:43.000Z
2021-09-21T11:50:43.000Z
sympy/assumptions/refine.py
Nbede/sympy
2ead5bfe4716c36e1c0839c25aa6dc87cd85b0f2
[ "BSD-3-Clause" ]
null
null
null
sympy/assumptions/refine.py
Nbede/sympy
2ead5bfe4716c36e1c0839c25aa6dc87cd85b0f2
[ "BSD-3-Clause" ]
null
null
null
from typing import Dict, Callable from sympy.core import S, Add, Expr, Basic, Mul from sympy.logic.boolalg import Boolean from sympy.assumptions import ask, Q # type: ignore def refine(expr, assumptions=True): """ Simplify an expression using assumptions. Explanation =========== Unlike :func:...
29.429975
85
0.556771
d0626ebf089a0c4d5ea9aa2c53851d3effcae93e
51
py
Python
sentry_mailagain/__init__.py
simonpercivall/sentry-mailagain
6d044d8fe048841227f0cd11b802f836f80d098f
[ "BSD-2-Clause" ]
4
2017-02-22T10:48:53.000Z
2018-06-19T16:24:26.000Z
sentry_mailagain/__init__.py
simonpercivall/sentry-mailagain
6d044d8fe048841227f0cd11b802f836f80d098f
[ "BSD-2-Clause" ]
null
null
null
sentry_mailagain/__init__.py
simonpercivall/sentry-mailagain
6d044d8fe048841227f0cd11b802f836f80d098f
[ "BSD-2-Clause" ]
null
null
null
__version__ = "1.0" __author__ = "Simon Percivall"
17
30
0.72549
6975aea127ac41b776b2cb12297618304b499129
128
py
Python
data/studio21_generated/interview/0402/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/interview/0402/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/interview/0402/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
class Solution: def isEscapePossible(self, blocked: List[List[int]], source: List[int], target: List[int]) -> bool:
42.666667
103
0.65625
a791cc4295836a26b2cb16ff40e823b94c354ed3
2,389
py
Python
nltk/tag/util.py
dmcc/nltk
33c193d2de3876ca89fb08140557e16f01c79c6f
[ "Apache-2.0" ]
1
2015-01-25T19:20:11.000Z
2015-01-25T19:20:11.000Z
nltk/tag/util.py
dmcc/nltk
33c193d2de3876ca89fb08140557e16f01c79c6f
[ "Apache-2.0" ]
null
null
null
nltk/tag/util.py
dmcc/nltk
33c193d2de3876ca89fb08140557e16f01c79c6f
[ "Apache-2.0" ]
null
null
null
# Natural Language Toolkit: Tagger Utilities # # Copyright (C) 2001-2015 NLTK Project # Author: Edward Loper <edloper@gmail.com> # Steven Bird <stevenbird1@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT def str2tuple(s, sep='/'): """ Given the string representation of a...
31.434211
69
0.631645
56c934fc36328ad23f5c0c0bf3d2b7389159cc23
6,278
py
Python
client/commands/incremental.py
s-pace/pyre-check
2b71dcf22e4672567cfe0dfef356f11646d66244
[ "MIT" ]
null
null
null
client/commands/incremental.py
s-pace/pyre-check
2b71dcf22e4672567cfe0dfef356f11646d66244
[ "MIT" ]
null
null
null
client/commands/incremental.py
s-pace/pyre-check
2b71dcf22e4672567cfe0dfef356f11646d66244
[ "MIT" ]
null
null
null
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import atexit import json import logging import os import subprocess from logging import Logger from typing import IO, List, Optiona...
36.289017
88
0.632686
9a7c7fdf111ee0dd371b32b37fede1175e327182
1,054
py
Python
modules/fits_hdr.py
mwanakijiji/lbti_altair_fizeau
f9fbc5c42b3a19f3d5062552126a8750052cc25b
[ "MIT" ]
null
null
null
modules/fits_hdr.py
mwanakijiji/lbti_altair_fizeau
f9fbc5c42b3a19f3d5062552126a8750052cc25b
[ "MIT" ]
3
2019-11-05T18:31:46.000Z
2020-03-09T17:53:14.000Z
modules/fits_hdr.py
mwanakijiji/lbti_altair_fizeau
f9fbc5c42b3a19f3d5062552126a8750052cc25b
[ "MIT" ]
null
null
null
import pandas as pd from modules import * class FitsHdr: ''' Reads in a .csv file of meta-data from the FITS file headers, as written out manually with a Jupyter Notebook ''' def __init__(self, config_data=config): self.config_data = config_data # initialize absolute meta data fi...
24.511628
85
0.639469
322f5e2ba7b135fda1950304c2ab5d4b22709d2e
4,230
py
Python
code/scraper/auto_scrape.py
jaredwelch1/CapstoneI
d200aa75c4149ab35fe042a8a67a6e34e7f30c4c
[ "MIT" ]
2
2017-03-01T01:25:47.000Z
2017-05-31T14:38:30.000Z
code/scraper/auto_scrape.py
jaredwelch1/CapstoneI
d200aa75c4149ab35fe042a8a67a6e34e7f30c4c
[ "MIT" ]
5
2017-02-23T01:59:34.000Z
2017-11-29T18:53:32.000Z
code/scraper/auto_scrape.py
jaredwelch1/CapstoneI
d200aa75c4149ab35fe042a8a67a6e34e7f30c4c
[ "MIT" ]
3
2017-02-21T04:26:45.000Z
2017-12-04T06:37:09.000Z
import newspaper import sqlalchemy from sqlalchemy import create_engine from sqlalchemy import func import nltk from random import randint from time import sleep, time import json import sys, os from custom_logging import get_logger def is_valid_url( url ): invalid_urls = ['be', 'br', 'ca', 'ch', 'cn', 'de', 'dk...
33.84
110
0.602364
b7fbf89e59aa6400138e8ed691d74968a5551450
16,309
py
Python
tutorials/autotvm/tune_relay_mobile_gpu.py
adelbertc/incubator-tvm
616bad2249ff083e2a041442d83b857dd616dab9
[ "Apache-2.0" ]
2
2019-11-13T01:17:41.000Z
2020-05-15T19:06:52.000Z
tutorials/autotvm/tune_relay_mobile_gpu.py
adelbertc/incubator-tvm
616bad2249ff083e2a041442d83b857dd616dab9
[ "Apache-2.0" ]
null
null
null
tutorials/autotvm/tune_relay_mobile_gpu.py
adelbertc/incubator-tvm
616bad2249ff083e2a041442d83b857dd616dab9
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.374118
102
0.633025
24e6b9b5683be24ee8b05259174334445845eaa8
7,021
py
Python
pqaut/client.py
MattyO/pqaut
3bdbe08c24cc832cf9e18e1a8b95f42c80761148
[ "MIT" ]
11
2015-02-04T10:26:33.000Z
2020-02-04T12:01:57.000Z
pqaut/client.py
MattyO/pqaut
3bdbe08c24cc832cf9e18e1a8b95f42c80761148
[ "MIT" ]
null
null
null
pqaut/client.py
MattyO/pqaut
3bdbe08c24cc832cf9e18e1a8b95f42c80761148
[ "MIT" ]
1
2022-03-14T16:02:27.000Z
2022-03-14T16:02:27.000Z
from __future__ import unicode_literals import os import time import json import logging import requests from nose.tools import assert_equals, assert_true, assert_is_not_none, assert_is_none, assert_false RETRIES=100 TIMEOUT=3 def wait_for_automation_server(): logger.info('waiting for automation server') co...
42.551515
167
0.674975
a2188ba37cefdeaaef0fa7ee5ac42ffee99025bd
368
py
Python
portxpress/users/urls.py
zoeinola/PortXpress
c69d9071e36a87942c3bba63a3ef079d06fe7baf
[ "MIT" ]
null
null
null
portxpress/users/urls.py
zoeinola/PortXpress
c69d9071e36a87942c3bba63a3ef079d06fe7baf
[ "MIT" ]
null
null
null
portxpress/users/urls.py
zoeinola/PortXpress
c69d9071e36a87942c3bba63a3ef079d06fe7baf
[ "MIT" ]
null
null
null
from django.urls import path from portxpress.users.views import ( user_detail_view, user_redirect_view, user_update_view, ) app_name = "users" urlpatterns = [ path("~redirect/", view=user_redirect_view, name="redirect"), path("~update/", view=user_update_view, name="update"), path("<str:userna...
24.533333
66
0.703804
fb7f11690acad022410552786358fb8055f81392
1,628
py
Python
disco.py
the-rectifier/SQL-Disconizer
87e933be06159978c04edd588728d6cc32cb38a8
[ "MIT" ]
null
null
null
disco.py
the-rectifier/SQL-Disconizer
87e933be06159978c04edd588728d6cc32cb38a8
[ "MIT" ]
null
null
null
disco.py
the-rectifier/SQL-Disconizer
87e933be06159978c04edd588728d6cc32cb38a8
[ "MIT" ]
null
null
null
#!/usr/bin/python # Author: Stavrou Odysseas - canopus # Descr: Takes your SQL code for a discodance # Run: python ./disco.py [SQL file to disconize] import sys import random BYPASS = set(list('( ).*0123456789:=')) def get_rand(): return bool(random.getrandbits(1)) def flip(ch:str): if ch.isupper(): ...
22
73
0.494472
2f4924118deb007d40cf1e743fd44e6584a22561
20,208
py
Python
Output/Group.py
parente/clique
e0a36e592d194a822f0078781d08a2d1aa63c9e4
[ "BSD-3-Clause" ]
3
2015-05-02T10:00:50.000Z
2018-10-26T02:42:13.000Z
Output/Group.py
parente/clique
e0a36e592d194a822f0078781d08a2d1aa63c9e4
[ "BSD-3-Clause" ]
null
null
null
Output/Group.py
parente/clique
e0a36e592d194a822f0078781d08a2d1aa63c9e4
[ "BSD-3-Clause" ]
1
2018-10-26T02:42:14.000Z
2018-10-26T02:42:14.000Z
''' Defines classes that determine what audio is played when and by which speaker or speakers. @author: Peter Parente <parente@cs.unc.edu> @copyright: Copyright (c) 2008 Peter Parente @license: BSD License All rights reserved. This program and the accompanying materials are made available under the terms of The BSD L...
32.593548
80
0.66157
972d60570c6cee53197b4a882db14335177a6f27
27,396
py
Python
tests/rest/admin/test_media.py
rhetenor/synapse
5154afc00d841c7685a97700be3cd1398e633e05
[ "Apache-2.0" ]
7
2020-07-03T13:51:31.000Z
2022-03-10T01:26:18.000Z
tests/rest/admin/test_media.py
rhetenor/synapse
5154afc00d841c7685a97700be3cd1398e633e05
[ "Apache-2.0" ]
69
2019-09-09T13:54:30.000Z
2022-03-23T10:45:15.000Z
tests/rest/admin/test_media.py
rhetenor/synapse
5154afc00d841c7685a97700be3cd1398e633e05
[ "Apache-2.0" ]
7
2020-04-24T17:04:40.000Z
2021-07-29T23:06:25.000Z
# Copyright 2020 Dirk Klimpel # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
34.590909
90
0.618338
733325c25ee9929e7a9792fd004bdb843e6f88fc
14,299
py
Python
simulating.py
zhanglabtools/scHi-CSim
fc4fffec939ea24ec963d61e19c1008e42dd0b06
[ "MIT" ]
null
null
null
simulating.py
zhanglabtools/scHi-CSim
fc4fffec939ea24ec963d61e19c1008e42dd0b06
[ "MIT" ]
null
null
null
simulating.py
zhanglabtools/scHi-CSim
fc4fffec939ea24ec963d61e19c1008e42dd0b06
[ "MIT" ]
2
2021-09-03T08:02:30.000Z
2021-12-16T12:25:20.000Z
import warnings warnings.simplefilter(action='ignore',category=FutureWarning) warnings.filterwarnings('ignore') import os import time from subprocess import call import numpy as np import pandas as pd import seaborn as sns from scipy import stats import seaborn as sns # import matplotlib.pyplot as plt ...
60.079832
194
0.710889
f04c0cb26ca0a1d23e1f4a95ebec01fd7ca35b36
4,716
py
Python
cloud.py
francesliang/Chatistics
2db6d2a4d8b8c61862ded08fdf0ef17ebfbd3485
[ "MIT" ]
null
null
null
cloud.py
francesliang/Chatistics
2db6d2a4d8b8c61862ded08fdf0ef17ebfbd3485
[ "MIT" ]
null
null
null
cloud.py
francesliang/Chatistics
2db6d2a4d8b8c61862ded08fdf0ef17ebfbd3485
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import re import time import json import argparse import numpy as np import matplotlib.pyplot as plt import pandas as pd from wordcloud import WordCloud, ImageColorGenerator from scipy.misc import imread def parse_arguments(): parser = argparse.ArgumentParser() parser.add_arg...
38.032258
120
0.651824
2bcffbc6573a23425c05954c054cf0c86bb85e13
46,466
py
Python
python_modules/dagster/dagster/core/execution/plan/plan.py
soyelherein/dagster
f969a3b24e66e61f91e3a7beaedbd2a87f86f85d
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/plan/plan.py
soyelherein/dagster
f969a3b24e66e61f91e3a7beaedbd2a87f86f85d
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/plan/plan.py
soyelherein/dagster
f969a3b24e66e61f91e3a7beaedbd2a87f86f85d
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict, defaultdict from typing import ( TYPE_CHECKING, Callable, Dict, FrozenSet, List, NamedTuple, Optional, Set, Union, cast, ) from dagster import check from dagster.core.definitions import ( GraphDefinition, IPipeline, InputDefinitio...
39.344623
119
0.646128
cdd4146f8d58e06956c20e859ad0d911d8e14f80
1,125
py
Python
Lib/objc/_DuetActivityScheduler.py
kanishpatel/Pyto
feec7a1a54f635a6375fa7ede074ff35afbfbb95
[ "MIT" ]
null
null
null
Lib/objc/_DuetActivityScheduler.py
kanishpatel/Pyto
feec7a1a54f635a6375fa7ede074ff35afbfbb95
[ "MIT" ]
null
null
null
Lib/objc/_DuetActivityScheduler.py
kanishpatel/Pyto
feec7a1a54f635a6375fa7ede074ff35afbfbb95
[ "MIT" ]
null
null
null
''' Classes from the 'DuetActivityScheduler' framework. ''' try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None _DASFileProtection = _Class('_DASFileProtec...
31.25
65
0.792
74328b2d7758ef17e9b4f76a0257f8945ebc089d
135,804
py
Python
test/test_application.py
uktrade/jupyterhub-data-auth-admin
91544f376209a201531f4dbfb8faad1b8ada18c9
[ "MIT" ]
1
2019-06-10T08:22:56.000Z
2019-06-10T08:22:56.000Z
test/test_application.py
uktrade/jupyterhub-data-auth-admin
91544f376209a201531f4dbfb8faad1b8ada18c9
[ "MIT" ]
2
2019-05-17T13:10:42.000Z
2019-06-17T10:48:46.000Z
test/test_application.py
uktrade/jupyterhub-data-auth-admin
91544f376209a201531f4dbfb8faad1b8ada18c9
[ "MIT" ]
null
null
null
import asyncio import csv import io import json import os import re import signal import textwrap import unittest import uuid import aiohttp import elasticsearch from aiohttp import web import aiopg import aioredis import mohawk from django.conf import settings from elasticsearch import AsyncElasticsearch, helpers fr...
36.437886
124
0.609584
e8fa1cfa28d910843fe41fe1c114700fffdfb342
14,983
py
Python
tensorflow/python/kernel_tests/logging_ops_test.py
wenming2014/tensorflow
a102a6a71844e194f3946f6318768c5367f1f16b
[ "Apache-2.0" ]
5
2018-07-04T22:14:02.000Z
2018-07-04T22:21:43.000Z
tensorflow/python/kernel_tests/logging_ops_test.py
wenming2014/tensorflow
a102a6a71844e194f3946f6318768c5367f1f16b
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/logging_ops_test.py
wenming2014/tensorflow
a102a6a71844e194f3946f6318768c5367f1f16b
[ "Apache-2.0" ]
2
2019-02-26T16:21:15.000Z
2020-12-04T17:48:17.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.740554
80
0.649536
9cf197fdb42c7b00f7634e1ecb5d74fc96b3225b
5,807
py
Python
estimateSensitivity_textclas.py
m-hahn/fairseq
8508699326640a6a7a83ed4de17ac986e6213bbe
[ "MIT" ]
null
null
null
estimateSensitivity_textclas.py
m-hahn/fairseq
8508699326640a6a7a83ed4de17ac986e6213bbe
[ "MIT" ]
null
null
null
estimateSensitivity_textclas.py
m-hahn/fairseq
8508699326640a6a7a83ed4de17ac986e6213bbe
[ "MIT" ]
null
null
null
import math import sys import torch task = sys.argv[1] assert task in ["cr", "mr", "mpqa", "subj"] #, "trec"] def mean(values): return sum(values)/len(values) sensitivityHistogram = [0 for _ in range(40)] def variance(values): values = values.exp() values = 2*values-1 # make probabilities rescale to [-1, ...
34.981928
128
0.688479
47c87b8e4ccda10140742a0752f78e704cb79aed
2,692
py
Python
moppy/bridge.py
meltzg/FDDOrgan
bd340ced16543036fb4f5c9106b64b62b344faba
[ "MIT" ]
1
2021-02-07T15:25:33.000Z
2021-02-07T15:25:33.000Z
moppy/bridge.py
meltzg/FDDOrgan
bd340ced16543036fb4f5c9106b64b62b344faba
[ "MIT" ]
null
null
null
moppy/bridge.py
meltzg/FDDOrgan
bd340ced16543036fb4f5c9106b64b62b344faba
[ "MIT" ]
null
null
null
import logging from time import sleep from serial import Serial import moppy.protocol as p logger = logging.getLogger(__name__) class MoppySerialBridge(object): def __init__(self, ser: Serial) -> None: self.ser = ser self.wait_for_startup() def wait_for_startup(self, timeout: int = 10) -> ...
34.961039
89
0.660847
fff0864a13848eb034b17bb063e830231b573556
9,042
py
Python
setup.py
JOKER-7X/HackerMode
7deeb941d4692a95dbc412d66fc86faed6cb7184
[ "MIT" ]
1
2021-06-26T22:23:11.000Z
2021-06-26T22:23:11.000Z
setup.py
u0a377/HackerMode
07f1fec678b1ba000b61ce6cd39a62208e67d841
[ "MIT" ]
null
null
null
setup.py
u0a377/HackerMode
07f1fec678b1ba000b61ce6cd39a62208e67d841
[ "MIT" ]
1
2021-07-03T18:47:27.000Z
2021-07-03T18:47:27.000Z
import os import shutil from base.system import System from base.config import Config PACKAGES = { 'apt': { 'termux':['apt --fix-broken install'], 'linux':['sudo apt --fix-broken install'], }, # ----------------------------------- 'pip3': { 'termux': [ 'pkg install ...
34.776923
163
0.526764
a4872031ab05991e6a972ec7244aad2d15a1b066
1,465
py
Python
typewise_alert.test.py
clean-code-craft-tcq-2/coverage-in-py-Venkatesha-Iyengar
2d5aab207653139af4e791d42f841d91651ccc37
[ "MIT" ]
null
null
null
typewise_alert.test.py
clean-code-craft-tcq-2/coverage-in-py-Venkatesha-Iyengar
2d5aab207653139af4e791d42f841d91651ccc37
[ "MIT" ]
null
null
null
typewise_alert.test.py
clean-code-craft-tcq-2/coverage-in-py-Venkatesha-Iyengar
2d5aab207653139af4e791d42f841d91651ccc37
[ "MIT" ]
null
null
null
import unittest import typewise_alert import random global CoolingTypes CoolingTypes = { 'PASSIVE_COOLING' :[0,35], 'HI_ACTIVE_COOLING' : [0,45], 'MED_ACTIVE_COOLING' : [0,40] } class TypewiseTest(unittest.TestCase): def test_infers_breach_as_per_limits(self): global CoolingTypes for cooling_type in...
45.78125
141
0.771331
09311a1239a9973cb1f5265094afd5a4588167ed
2,453
py
Python
.leetcode/384.shuffle-an-array.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/384.shuffle-an-array.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/384.shuffle-an-array.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=384 lang=python3 # # [384] Shuffle an Array # # https://leetcode.com/problems/shuffle-an-array/description/ # # algorithms # Medium (55.24%) # Likes: 375 # Dislikes: 402 # Total Accepted: 207K # Total Submissions: 374.4K # Testcase Example: '["Solution","shuffle","reset","shuffle"]\n[[[1,2,...
21.901786
85
0.606196
f3254249c854065e187a32c2341062e1cb52641a
1,082
py
Python
clients/keto/python/test/test_ory_access_control_policies.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
clients/keto/python/test/test_ory_access_control_policies.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
clients/keto/python/test/test_ory_access_control_policies.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ ORY Keto A cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs. # noqa: E501 The version of the OpenAPI document: v0.0.0-alpha.1 Contact: hi@ory.sh Generated by: https://openapi-generator...
26.390244
161
0.730129
75cf441500d1ed73da1448dc33c97a82daf65ab6
990
py
Python
tests/test_cli.py
bitranox/lib_parameter
f02389665b6aa54868fa140b3c0c2d091c927def
[ "MIT" ]
null
null
null
tests/test_cli.py
bitranox/lib_parameter
f02389665b6aa54868fa140b3c0c2d091c927def
[ "MIT" ]
null
null
null
tests/test_cli.py
bitranox/lib_parameter
f02389665b6aa54868fa140b3c0c2d091c927def
[ "MIT" ]
null
null
null
# STDLIB import logging import pathlib import subprocess import sys logger = logging.getLogger() package_dir = "lib_parameter" cli_filename = "lib_parameter_cli.py" path_cli_command = pathlib.Path(__file__).resolve().parent.parent / package_dir / cli_filename def call_cli_command(commandline_args: str = "") -> bool...
31.935484
105
0.706061
c0888ac2ab83a00254b06b9d5f8a1d1d76c272f3
147
py
Python
tasks/admin.py
r-aliev/advanced-to-do-app
a082ff22ebf52dcd8bb41999a71b6669e9d59238
[ "MIT" ]
1
2021-02-16T07:29:24.000Z
2021-02-16T07:29:24.000Z
tasks/admin.py
r-aliev/advanced-to-do-app
a082ff22ebf52dcd8bb41999a71b6669e9d59238
[ "MIT" ]
null
null
null
tasks/admin.py
r-aliev/advanced-to-do-app
a082ff22ebf52dcd8bb41999a71b6669e9d59238
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * admin.site.register(Task) admin.site.register(Comment) admin.site.register(TaskPermission)
21
35
0.816327
bec0e49492b26fb5352a94f54195932a09d52594
650
py
Python
angrmanagement/utils/block_objects.py
DennyDai/angr-management
8a4ba5dafbf2f4d2ba558528a0d1ae099a199a04
[ "BSD-2-Clause" ]
474
2015-08-10T17:47:15.000Z
2022-03-31T21:10:55.000Z
angrmanagement/utils/block_objects.py
DennyDai/angr-management
8a4ba5dafbf2f4d2ba558528a0d1ae099a199a04
[ "BSD-2-Clause" ]
355
2015-08-17T09:35:53.000Z
2022-03-31T21:29:52.000Z
angrmanagement/utils/block_objects.py
DennyDai/angr-management
8a4ba5dafbf2f4d2ba558528a0d1ae099a199a04
[ "BSD-2-Clause" ]
95
2015-08-11T14:36:12.000Z
2022-03-31T23:01:01.000Z
class FunctionHeader: __slots__ = ('name', 'prototype', 'args', ) def __init__(self, name, prototype=None, args=None): self.name = name self.prototype = prototype self.args = args class Variables: __slots__ = ['variables'] def __init__(self, variables): self.varia...
17.567568
56
0.613846
5182d39dada2fc078eaa34003a0416da5913d3f9
10,612
py
Python
src/haploqa/finalreportimport.py
TheJacksonLaboratory/haploqa
1351f1e16ccffee56fcceba57e15ac8bd4de0db5
[ "MIT" ]
3
2018-08-28T12:16:22.000Z
2021-09-28T16:33:40.000Z
src/haploqa/finalreportimport.py
TheJacksonLaboratory/haploqa
1351f1e16ccffee56fcceba57e15ac8bd4de0db5
[ "MIT" ]
null
null
null
src/haploqa/finalreportimport.py
TheJacksonLaboratory/haploqa
1351f1e16ccffee56fcceba57e15ac8bd4de0db5
[ "MIT" ]
null
null
null
import argparse import csv from os.path import splitext, basename import sys import time import haploqa.mongods as mds import haploqa.sampleannoimport as sai from pymongo.errors import DuplicateKeyError header_tag = '[header]' data_tag = '[data]' tags = {header_tag, data_tag} snp_name_col_hdr = 'SNP Name' x_col_hdr...
42.963563
132
0.507162
adf445bfd68fa790b474a198a61829b6e11434f3
715
py
Python
web_scraping/more-from-mitchell/selenium_test1.py
macloo/python-beginners
1124922cd57d3f647eacafa0b82948587514d4bd
[ "MIT" ]
42
2018-03-25T22:41:57.000Z
2022-01-08T21:23:02.000Z
web_scraping/more-from-mitchell/selenium_test1.py
pavanpatil45/python-beginners
1124922cd57d3f647eacafa0b82948587514d4bd
[ "MIT" ]
null
null
null
web_scraping/more-from-mitchell/selenium_test1.py
pavanpatil45/python-beginners
1124922cd57d3f647eacafa0b82948587514d4bd
[ "MIT" ]
17
2018-03-20T00:56:57.000Z
2022-01-12T06:36:18.000Z
# from https://sites.google.com/a/chromium.org/chromedriver/getting-started # This requires Selenium to be installed in your virtualenv # And you need to download and install chromedriver as explained here: # http://bit.ly/selenium-intro import time from selenium import webdriver # driver = webdriver.Chrome('/path/to...
35.75
75
0.777622
2f4d34eab752b32064da92c0cb4fd36a8c2a731e
7,616
py
Python
pyxllib/prog/newbie.py
XLPRUtils/pyxllib
7d559d0fc1f87ea26bdf44545c16417c9cf76318
[ "Apache-2.0" ]
15
2020-06-09T07:03:07.000Z
2022-02-25T06:59:34.000Z
pyxllib/prog/newbie.py
XLPRUtils/pyxllib
7d559d0fc1f87ea26bdf44545c16417c9cf76318
[ "Apache-2.0" ]
5
2020-08-08T07:11:21.000Z
2020-08-08T07:11:24.000Z
pyxllib/prog/newbie.py
XLPRUtils/pyxllib
7d559d0fc1f87ea26bdf44545c16417c9cf76318
[ "Apache-2.0" ]
2
2020-06-09T07:03:26.000Z
2020-12-31T06:50:37.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Author : 陈坤泽 # @Email : 877362867@qq.com # @Date : 2021/06/06 10:51 def typename(c): """ 简化输出的type类型 >>> typename(123) 'int' """ return str(type(c))[8:-2] class SingletonForEveryClass(type): _instances = {} def __call__(cls, *args, *...
24.727273
97
0.594013
337c9cd90ac4d6404240a1d0e23963f3fcf445c3
224
py
Python
media_management/media_management/doctype/film_colour/test_film_colour.py
ashish-greycube/media_management
1f295b8ca3c54c51f3be2b48d1976c94455767b0
[ "MIT" ]
null
null
null
media_management/media_management/doctype/film_colour/test_film_colour.py
ashish-greycube/media_management
1f295b8ca3c54c51f3be2b48d1976c94455767b0
[ "MIT" ]
null
null
null
media_management/media_management/doctype/film_colour/test_film_colour.py
ashish-greycube/media_management
1f295b8ca3c54c51f3be2b48d1976c94455767b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, GreyCube Technologies and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestFilmColour(unittest.TestCase): pass
20.363636
60
0.772321
d4e02df7014be1fbee6f2431573328332a471699
3,669
py
Python
examples/automated_deep_compression/adc_controlled_envs.py
vkoriukina/distiller
5463ddf2b0b0e6c53a475e412c048de9be411e50
[ "Apache-2.0" ]
2
2019-04-30T12:31:32.000Z
2019-11-25T16:39:07.000Z
examples/automated_deep_compression/adc_controlled_envs.py
vkoriukina/distiller
5463ddf2b0b0e6c53a475e412c048de9be411e50
[ "Apache-2.0" ]
4
2020-09-26T00:53:47.000Z
2022-02-10T01:23:34.000Z
code/examples/automated_deep_compression/adc_controlled_envs.py
sinreq-learn/sinreq-learn.code
a205d3fa22a41d5f4fc1ef1e5698c4f1dbb11e6a
[ "BSD-4-Clause-UC" ]
4
2019-12-05T06:26:57.000Z
2021-12-16T05:17:39.000Z
"""This file contains a couple of environments used for debugging ADC reproduction. """ import random import numpy as np from scipy.stats import truncnorm class RandomADCActionSpace(object): def __init__(self, low, high, std): self.clip_low = low self.clip_high = high self.layer = 0 ...
50.260274
146
0.549741
af01022ae8111ede3ac135ee056c1366d2ef8644
43,349
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_12_01_preview/operations/_connected_registries_operations.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_12_01_preview/operations/_connected_registries_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_12_01_preview/operations/_connected_registries_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
45.678609
259
0.677663
b2512fae143c81950c7c58485b1857a943edda5f
2,140
py
Python
football/players.py
EEdwardsA/DS-OOP-Review
2352866c5d0ea6a09802c29c17366450f35c75ae
[ "MIT" ]
null
null
null
football/players.py
EEdwardsA/DS-OOP-Review
2352866c5d0ea6a09802c29c17366450f35c75ae
[ "MIT" ]
null
null
null
football/players.py
EEdwardsA/DS-OOP-Review
2352866c5d0ea6a09802c29c17366450f35c75ae
[ "MIT" ]
null
null
null
'''Player class to record stats for individual players ''' class Player: '''Dosctring TODO THIS IS NOT A VERY GENERALIZABLE MODEL IF YOU KNOW THINGS ABOUT FOOTBALL and that's okay ''' def __init__(self, name=None, yards=120, touchdowns=5, safety=1, interceptions=0, field_goals=3):...
35.666667
79
0.621495
981fb2c74058a85834309257ce44ceab96b09869
1,992
py
Python
brax/tests/sac_test.py
taesiri/brax
40990932cab304833d6af97f89713a48e18c54e3
[ "Apache-2.0" ]
null
null
null
brax/tests/sac_test.py
taesiri/brax
40990932cab304833d6af97f89713a48e18c54e3
[ "Apache-2.0" ]
null
null
null
brax/tests/sac_test.py
taesiri/brax
40990932cab304833d6af97f89713a48e18c54e3
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Brax 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 wri...
30.181818
74
0.705823
7f307ce35c01b9f2759f4340e417ce12c445108e
685
py
Python
apps/servers/serializers.py
asenattime/devops_backend
687cb747339d414b974b8c140736314a84fbd77d
[ "MIT" ]
53
2021-07-14T03:11:39.000Z
2021-09-23T10:39:14.000Z
apps/servers/serializers.py
asenattime/devops_backend
687cb747339d414b974b8c140736314a84fbd77d
[ "MIT" ]
null
null
null
apps/servers/serializers.py
asenattime/devops_backend
687cb747339d414b974b8c140736314a84fbd77d
[ "MIT" ]
10
2021-07-14T06:29:14.000Z
2021-09-23T00:25:35.000Z
from rest_framework import serializers from .models import Server class ServerSerializer(serializers.ModelSerializer): """ Server serializer class for a model. """ last_check = serializers.DateTimeField(format="%Y-%m-%d %H:%M:%S", read_only=True, help_text="检查时间") last_time = serializers.DateT...
31.136364
104
0.664234
a41a1e43ea514d3cb72b388be12094b57fc3f892
582
py
Python
test.py
qazmichaelgw/sinaweibopy
ab88f0c76651113180fb0ea57134017166301ff1
[ "Apache-2.0" ]
null
null
null
test.py
qazmichaelgw/sinaweibopy
ab88f0c76651113180fb0ea57134017166301ff1
[ "Apache-2.0" ]
null
null
null
test.py
qazmichaelgw/sinaweibopy
ab88f0c76651113180fb0ea57134017166301ff1
[ "Apache-2.0" ]
null
null
null
from weibo import APIClient APP_KEY = '1948434100' APP_SECRET = '2800c7396e4df96e11e2f3ff5f747309' CALLBACK_URL = 'https://api.weibo.com/oauth2/default.html' client = APIClient(app_key=APP_KEY, app_secret=APP_SECRET, redirect_uri=CALLBACK_URL) url = client.get_authorize_url() print url code = raw_input("input the code...
34.235294
85
0.817869
cd6c8d983843e76f54459e3375181c467b9ad930
626
py
Python
tomato-autoclicker.py
DomatesGames/basic-autoclicker
1daf81cc94e36587eb868298a495d286ffe20006
[ "MIT" ]
null
null
null
tomato-autoclicker.py
DomatesGames/basic-autoclicker
1daf81cc94e36587eb868298a495d286ffe20006
[ "MIT" ]
null
null
null
tomato-autoclicker.py
DomatesGames/basic-autoclicker
1daf81cc94e36587eb868298a495d286ffe20006
[ "MIT" ]
null
null
null
from pynput.mouse import Button, Controller import time import keyboard mouse = Controller() print("by DomatesGames (Github username.)") startkey = input("Start Autoclick on which key is pressed? ") stopkey = input("Stop Autoclick on which key is pressed?") print("Started, please press " + startkey + " for start...
36.823529
108
0.645367
9eb74aa85f6810191096f61a1c308af725083ce3
957
py
Python
scripts/pyinstaller/sign.py
NigelVanHattum/dvc
356f9355fd5156595cfd4c786231ce2f04a5e046
[ "Apache-2.0" ]
null
null
null
scripts/pyinstaller/sign.py
NigelVanHattum/dvc
356f9355fd5156595cfd4c786231ce2f04a5e046
[ "Apache-2.0" ]
null
null
null
scripts/pyinstaller/sign.py
NigelVanHattum/dvc
356f9355fd5156595cfd4c786231ce2f04a5e046
[ "Apache-2.0" ]
null
null
null
import argparse import os import pathlib import sys from subprocess import STDOUT, check_call if sys.platform != "darwin": raise NotImplementedError parser = argparse.ArgumentParser() parser.add_argument( "--application-id", required=True, help="Certificate ID (should be added to the keychain).", ) ar...
23.925
61
0.525601
6c7478c100551b71ba0e902a68e0359a53f103a1
21,096
py
Python
app/main/fpq_views.py
bvbgrad/fpq02
4bd4017913dd2bcb0d39e24002f5ddbe4cde3c09
[ "MIT" ]
null
null
null
app/main/fpq_views.py
bvbgrad/fpq02
4bd4017913dd2bcb0d39e24002f5ddbe4cde3c09
[ "MIT" ]
null
null
null
app/main/fpq_views.py
bvbgrad/fpq02
4bd4017913dd2bcb0d39e24002f5ddbe4cde3c09
[ "MIT" ]
null
null
null
import random from pathlib import Path import json from flask import render_template, request, redirect, url_for, flash from flask_login import current_user, login_required from app.main import bp from app.models import Photo, Person from .personDAO import get_all_persons_count, get_person_gen_data, get_bad_answers ...
37.806452
108
0.656523
988f42c8d16e4707c18bb9b4f8f57266e0d82864
2,852
py
Python
capture/noworkflow/now/persistence/content/plain_engine.py
raffaelfoidl/noworkflow
aa4ca189df24fec6c7abd32bcca6a097b21fdf31
[ "MIT" ]
108
2015-02-04T14:16:51.000Z
2022-03-06T13:52:45.000Z
capture/noworkflow/now/persistence/content/plain_engine.py
raffaelfoidl/noworkflow
aa4ca189df24fec6c7abd32bcca6a097b21fdf31
[ "MIT" ]
92
2015-01-19T14:58:06.000Z
2021-04-19T17:28:50.000Z
capture/noworkflow/now/persistence/content/plain_engine.py
raffaelfoidl/noworkflow
aa4ca189df24fec6c7abd32bcca6a097b21fdf31
[ "MIT" ]
31
2015-03-03T23:53:59.000Z
2021-11-11T04:23:44.000Z
import hashlib import os from os.path import join, isdir, isfile from .base import ContentDatabaseEngine from .parallel import create_distributed, create_pool, create_threading from . import safeopen STANDARD_DATABASE_DIR = 'content' class PlainEngine(ContentDatabaseEngine): def __init__(self, config): ...
36.101266
87
0.662693
d5deff63584499959ca1b32e3727a8162c816c21
424
py
Python
misc/hgg_test.py
CSCI4850/S20-team0-project
ea6962360b19f3aaf557a0f2aa4a0ec60d7ad950
[ "MIT" ]
null
null
null
misc/hgg_test.py
CSCI4850/S20-team0-project
ea6962360b19f3aaf557a0f2aa4a0ec60d7ad950
[ "MIT" ]
9
2020-11-13T17:45:35.000Z
2022-03-12T00:27:19.000Z
misc/hgg_test.py
CSCI4850/S20-team0-project
ea6962360b19f3aaf557a0f2aa4a0ec60d7ad950
[ "MIT" ]
2
2020-08-23T16:58:53.000Z
2021-04-12T00:34:08.000Z
from utils import hgg_utils from utils import normalize_data_utils as norm import numpy as np import nibabel as nib import pathlib from tqdm import tqdm if __name__ == "__main__": volume_data = hgg_utils.get_patient_data_at_index(0) hgg_utils.display_slice(volume_data, 75, 'flair') norm_data = no...
24.941176
59
0.754717
191138090b124936ebb8b116cb8be09bb3fc0c79
3,837
py
Python
Mini-Project-Deployment/Credit-Card_Default_Prediction_Web_App/app.py
vvHacker007/TECHNOCOLABS
2b57b336c346808c9d5fb25cb1280070ba688c7c
[ "Apache-2.0" ]
null
null
null
Mini-Project-Deployment/Credit-Card_Default_Prediction_Web_App/app.py
vvHacker007/TECHNOCOLABS
2b57b336c346808c9d5fb25cb1280070ba688c7c
[ "Apache-2.0" ]
null
null
null
Mini-Project-Deployment/Credit-Card_Default_Prediction_Web_App/app.py
vvHacker007/TECHNOCOLABS
2b57b336c346808c9d5fb25cb1280070ba688c7c
[ "Apache-2.0" ]
null
null
null
import streamlit as st import pickle import numpy as np import pandas as pd model=pickle.load(open('model.pkl','rb')) def predict_prob(LIMIT_BAL,EDUCATION,MARRIAGE,AGE,PAY_1,BILL_AMT1,BILL_AMT2,BILL_AMT3,BILL_AMT4,BILL_AMT5,BILL_AMT6,PAY_AMT1,PAY_AMT2,PAY_AMT3,PAY_AMT4,PAY_AMT5,PAY_AMT6): input_data=np.array([[L...
50.486842
461
0.705499
56a7348ac3b5b85d7133216708e18ff33c01daaa
528
py
Python
Kai/scripts/crab_status_all.py
NJManganelli/FourTopNAOD
9743d5b49bdbad27a74abb7b2d5b7295f678a0e3
[ "Apache-2.0" ]
1
2022-01-17T17:29:38.000Z
2022-01-17T17:29:38.000Z
Kai/scripts/crab_status_all.py
NJManganelli/FourTopNAOD
9743d5b49bdbad27a74abb7b2d5b7295f678a0e3
[ "Apache-2.0" ]
null
null
null
Kai/scripts/crab_status_all.py
NJManganelli/FourTopNAOD
9743d5b49bdbad27a74abb7b2d5b7295f678a0e3
[ "Apache-2.0" ]
1
2021-12-15T10:56:50.000Z
2021-12-15T10:56:50.000Z
#!/usr/bin/env python import os, sys, datetime, subprocess from glob import glob dirs = glob("./crab_*") dirs = [f.replace("./", "") for f in dirs if "." not in f.replace("./", "")] for f in dirs: cmd = "crab status -d {0:s} > status_{1:s}.log".format(f.replace("./", ""), f.replace("crab_", "")) print(cmd) ...
48
110
0.621212
8473cccf97434b8ad5199f90714d2d6a89b0e973
9,027
py
Python
themes/qutebrowser/themes/default/base16-summercamp.config.py
base16-fork/base16-fork
79856b7e6195dde0874a9e6d191101ac6c5c74f5
[ "MIT" ]
95
2018-05-28T18:06:48.000Z
2022-03-14T21:36:05.000Z
themes/qutebrowser/themes/default/base16-summercamp.config.py
base16-fork/base16-fork
79856b7e6195dde0874a9e6d191101ac6c5c74f5
[ "MIT" ]
18
2018-08-26T00:57:20.000Z
2022-02-19T08:29:29.000Z
themes/qutebrowser/themes/default/base16-summercamp.config.py
base16-fork/base16-fork
79856b7e6195dde0874a9e6d191101ac6c5c74f5
[ "MIT" ]
20
2018-06-21T12:41:47.000Z
2022-03-04T22:06:20.000Z
# base16-qutebrowser (https://github.com/theova/base16-qutebrowser) # Base16 qutebrowser template by theova # summercamp scheme by zoe firi (zoefiri.github.io) base00 = "#1c1810" base01 = "#2a261c" base02 = "#3a3527" base03 = "#504b38" base04 = "#5f5b45" base05 = "#736e55" base06 = "#bab696" base07 = "#f8f5de" base08 ...
29.990033
95
0.771574
4127d4868088ad9807ee444ec49ab996f5428f7c
1,174
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble_adafruit/humidity_service.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble_adafruit/humidity_service.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble_adafruit/humidity_service.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2020 Dan Halbert for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_ble_adafruit.humidity_service` ================================================================================ BLE access to humidity data. * Author(s): Dan Halbert """ __version__ = "1.2.3" __repo__ =...
32.611111
81
0.720613
0849044bde2a3c7f80dafe425b70bfeecdcc28dd
391
py
Python
adminmgr/media/code/python/map2/BD_256_1126_1333_1347_mapper.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
9
2019-11-08T02:05:27.000Z
2021-12-13T12:06:35.000Z
adminmgr/media/code/python/map2/BD_256_1126_1333_1347_mapper.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
6
2019-11-27T03:23:16.000Z
2021-06-10T19:15:13.000Z
adminmgr/media/code/python/map2/BD_256_1126_1333_1347_mapper.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
4
2019-11-26T17:04:27.000Z
2021-12-13T11:57:03.000Z
#!/usr/bin/python3 #"""mapper.py""" import sys out = 1 dictmapper={} # input comes from STDIN (standard input) for line in sys.stdin: line = line.strip() line = line.split(",") if line[0] == "ball": batsman = line[4] bowler = line[6] runs = line[7] extra = line[8] key = batsman+','+bowler print('%s,%...
17.772727
44
0.595908
c26a20bc8acef34326c2d0c054585bb3f8673251
264
py
Python
erpnext_oralcare/erpnext_oralcare/doctype/denture_bearing_areas/denture_bearing_areas.py
techlift-tech/erpnext-oralcare
e10a787118c64dcedb7f9d0aedb1fe6c5a00e19e
[ "MIT" ]
null
null
null
erpnext_oralcare/erpnext_oralcare/doctype/denture_bearing_areas/denture_bearing_areas.py
techlift-tech/erpnext-oralcare
e10a787118c64dcedb7f9d0aedb1fe6c5a00e19e
[ "MIT" ]
165
2019-04-25T12:08:17.000Z
2019-08-09T13:26:03.000Z
erpnext_oralcare/erpnext_oralcare/doctype/denture_bearing_areas/denture_bearing_areas.py
techlift-tech/erpnext-oralcare
e10a787118c64dcedb7f9d0aedb1fe6c5a00e19e
[ "MIT" ]
2
2019-09-10T16:49:11.000Z
2021-12-03T22:54:21.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, Techlift and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class DentureBearingAreas(Document): pass
24
49
0.787879
b9ae514a4fd4a84f487a9f943bf26a046d670fc7
1,361
py
Python
apps/employee/migrations/0002_auto_20190820_1127.py
victtorvpb/employee-manager
fa0ea41a80e38378feef1fcbc071d9615f1d5b54
[ "Apache-2.0" ]
null
null
null
apps/employee/migrations/0002_auto_20190820_1127.py
victtorvpb/employee-manager
fa0ea41a80e38378feef1fcbc071d9615f1d5b54
[ "Apache-2.0" ]
15
2019-08-18T17:20:23.000Z
2021-06-09T18:15:40.000Z
apps/employee/migrations/0002_auto_20190820_1127.py
victtorvpb/employee-manager
fa0ea41a80e38378feef1fcbc071d9615f1d5b54
[ "Apache-2.0" ]
1
2019-08-20T00:47:04.000Z
2019-08-20T00:47:04.000Z
# Generated by Django 2.2.4 on 2019-08-20 11:27 from django.db import migrations default_data = [ { "name": "Arnaldo Pereira", "email": "arnaldo@email.com", "department": "Architecture", }, { "name": "Renato Pedigoni", "email": "renato@email.com", "departmen...
26.173077
78
0.622337
8fdf43d31fb2d5ad7a8dd14cfbb298fb80ee2bdb
8,762
py
Python
nova/objects/numa.py
bopopescu/Trusted-Platform-Module-nova
20d28ef29daf6fd7a67b37b87ec2561c34b4230b
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/objects/numa.py
bopopescu/Trusted-Platform-Module-nova
20d28ef29daf6fd7a67b37b87ec2561c34b4230b
[ "Apache-2.0" ]
null
null
null
nova/objects/numa.py
bopopescu/Trusted-Platform-Module-nova
20d28ef29daf6fd7a67b37b87ec2561c34b4230b
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2014 Red Hat Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
33.830116
78
0.608993
9d8a45fb95d0b2eb3183ddfdd78834d7c4207b45
170
gyp
Python
test/binding.gyp
fpauser/ref-wchar
6f5bb13efb0edc775dc07ee2ca4df98b69cd596b
[ "Unlicense", "MIT" ]
14
2015-06-04T09:33:23.000Z
2021-07-26T21:17:58.000Z
test/binding.gyp
fpauser/ref-wchar
6f5bb13efb0edc775dc07ee2ca4df98b69cd596b
[ "Unlicense", "MIT" ]
8
2015-11-14T10:01:11.000Z
2020-12-29T03:30:25.000Z
test/binding.gyp
fpauser/ref-wchar
6f5bb13efb0edc775dc07ee2ca4df98b69cd596b
[ "Unlicense", "MIT" ]
16
2015-10-03T02:19:55.000Z
2021-07-20T09:29:06.000Z
{ 'targets': [ { 'target_name': 'test', 'sources': [ 'test.cc' ], 'include_dirs': [ '<!(node -e "require(\'nan\')")' ], } ] }
14.166667
40
0.364706
444e68331e4f9a37c69b5d04181b0d4cf96ecae8
8,158
py
Python
typeclasses/wearable/wieldable.py
LeBulldoge/arxcode
c12ca5076b5e37fda1b0aa02946570974a348ce6
[ "MIT" ]
null
null
null
typeclasses/wearable/wieldable.py
LeBulldoge/arxcode
c12ca5076b5e37fda1b0aa02946570974a348ce6
[ "MIT" ]
null
null
null
typeclasses/wearable/wieldable.py
LeBulldoge/arxcode
c12ca5076b5e37fda1b0aa02946570974a348ce6
[ "MIT" ]
null
null
null
""" wieldable objects. Weapons. While worn, wieldable objects are considered 'sheathed' unless specified otherwise """ from typeclasses.exceptions import EquipError from typeclasses.wearable.cmdset_wieldable import WeaponCmdSet from typeclasses.wearable.wearable import Wearable from world.crafting.craft_data_handlers i...
32.632
86
0.638147
95f6966edb490671603ff8bfbbdf46bd75072b5f
11,694
py
Python
kevlar/varmap.py
johnsmith2077/kevlar
3ed06dae62479e89ccd200391728c416d4df8052
[ "MIT" ]
24
2016-12-07T07:59:09.000Z
2019-03-11T02:05:36.000Z
kevlar/varmap.py
johnsmith2077/kevlar
3ed06dae62479e89ccd200391728c416d4df8052
[ "MIT" ]
325
2016-12-07T07:37:17.000Z
2019-03-12T19:01:40.000Z
kevlar/varmap.py
standage/kevlar
622d1869266550422e91a60119ddc7261eea434a
[ "MIT" ]
8
2017-08-17T01:37:39.000Z
2019-03-01T16:17:44.000Z
#!/usr/bin/env python # # ----------------------------------------------------------------------------- # Copyright (c) 2018 The Regents of the University of California # # This file is part of kevlar (http://github.com/dib-lab/kevlar) and is # licensed under the MIT license: see LICENSE. # ----------------------------...
35.329305
79
0.55986
c1e84a4e3b4ca1896ecc0b5e98d5017aef58696f
2,554
py
Python
pylayers/mobility/ban/dist.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
143
2015-01-09T07:50:20.000Z
2022-03-02T11:26:53.000Z
pylayers/mobility/ban/dist.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
148
2015-01-13T04:19:34.000Z
2022-03-11T23:48:25.000Z
pylayers/mobility/ban/dist.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
95
2015-05-01T13:22:42.000Z
2022-03-15T11:22:28.000Z
import numpy as np import scipy as sp import matplotlib.pyplot as plt import scipy.linalg as la def dist(A,B,C,D,alpha,beta): """ Parameters ---------- A B C D alpha beta Return ------ f g """ AC=C-A CD=D-C BA=A-B u0 = np.dot(AC,AC) u4 = ...
15.765432
114
0.536805
cf6f074674d8fed42ce149c961a0ade2e75e7ef9
2,214
py
Python
venues/views.py
SaidAbdullahi/virtualmasjid-api
fbd6ea64b64a5868b65c46f8ec469bd0f52ad921
[ "Apache-2.0" ]
null
null
null
venues/views.py
SaidAbdullahi/virtualmasjid-api
fbd6ea64b64a5868b65c46f8ec469bd0f52ad921
[ "Apache-2.0" ]
6
2021-02-08T21:01:09.000Z
2021-06-04T23:11:13.000Z
venues/views.py
SaidAbdullahi/virtualmasjid-api
fbd6ea64b64a5868b65c46f8ec469bd0f52ad921
[ "Apache-2.0" ]
null
null
null
from django.utils.decorators import method_decorator from django.views.decorators.cache import cache_page from rest_framework.exceptions import NotFound from rest_framework.viewsets import ModelViewSet from rest_framework.permissions import IsAdminUser from rest_framework.decorators import action from rest_framework.re...
35.709677
77
0.672087
ae4ae05fdba56790729d5e25bc7d438e576b4bb0
19,209
py
Python
monai/transforms/utility/array.py
JZK00/MONAI
49e693c4e7df83dc1f8ab87349373de9263188a9
[ "Apache-2.0" ]
3
2020-10-12T02:13:27.000Z
2021-04-14T11:46:21.000Z
monai/transforms/utility/array.py
JZK00/MONAI
49e693c4e7df83dc1f8ab87349373de9263188a9
[ "Apache-2.0" ]
1
2020-09-17T12:41:51.000Z
2020-09-29T15:20:37.000Z
monai/transforms/utility/array.py
JZK00/MONAI
49e693c4e7df83dc1f8ab87349373de9263188a9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, s...
38.113095
113
0.645895
63b7f3f67bc8482ac9ad915aeac2904412a14614
2,751
py
Python
khl/command/parser.py
omoidesu/khl.py
feb19191bb2a1cfb3e3225900f5816c723587f56
[ "MIT" ]
null
null
null
khl/command/parser.py
omoidesu/khl.py
feb19191bb2a1cfb3e3225900f5816c723587f56
[ "MIT" ]
null
null
null
khl/command/parser.py
omoidesu/khl.py
feb19191bb2a1cfb3e3225900f5816c723587f56
[ "MIT" ]
null
null
null
import asyncio import copy import inspect import logging from typing import Dict, Any, Callable, List log = logging.getLogger(__name__) class Parser: """ deal with a list of tokens made from Lexer, convert their type to match the command.handler """ _parse_funcs: Dict[Any, Callable] = { str: ...
31.988372
98
0.615049
793809fadfb19677f5bedc975fe4aa1fb9f86f60
2,450
py
Python
peeringdb_server/migrations/0044_ixlan_ixf_fields.py
egfrank/peeringdb
5ccb44c2955e29e9d9217f1a984dcb90a661ec62
[ "BSD-2-Clause" ]
1
2021-01-29T04:08:52.000Z
2021-01-29T04:08:52.000Z
peeringdb_server/migrations/0044_ixlan_ixf_fields.py
egfrank/peeringdb
5ccb44c2955e29e9d9217f1a984dcb90a661ec62
[ "BSD-2-Clause" ]
7
2021-04-06T18:42:16.000Z
2021-09-08T03:01:50.000Z
peeringdb_server/migrations/0044_ixlan_ixf_fields.py
invictus80/peeringdb
dddbb4e34af444b8403fa9ccf9b72279bd7719eb
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2.13 on 2020-07-13 07:17 from django.db import migrations, models from django.conf import settings from django_namespace_perms.constants import PERM_CRUD, PERM_READ def add_permissions(apps, schema_editor): Group = apps.get_model("auth", "Group") Organization = apps.get_model("peering...
31.410256
81
0.601633
a6e7db701824f73b84728854d2910c3df9e4d106
22
py
Python
src/osparc_control/__init__.py
elisabettai/osparc-control
024990336dc330c9a872a57bc8812cc228cff7be
[ "MIT" ]
null
null
null
src/osparc_control/__init__.py
elisabettai/osparc-control
024990336dc330c9a872a57bc8812cc228cff7be
[ "MIT" ]
null
null
null
src/osparc_control/__init__.py
elisabettai/osparc-control
024990336dc330c9a872a57bc8812cc228cff7be
[ "MIT" ]
null
null
null
"""Osparc Control."""
11
21
0.590909
214879810b61d70eaffa7280ba9930e5104ada7d
1,171
py
Python
cube_appeals/check_appeal.py
KristN1/cube_appeals
f81503ee665d6a69f3a5b06a69bddb020194f713
[ "MIT" ]
null
null
null
cube_appeals/check_appeal.py
KristN1/cube_appeals
f81503ee665d6a69f3a5b06a69bddb020194f713
[ "MIT" ]
null
null
null
cube_appeals/check_appeal.py
KristN1/cube_appeals
f81503ee665d6a69f3a5b06a69bddb020194f713
[ "MIT" ]
null
null
null
from cube_appeals import driver_gen, exceptions from selenium.webdriver.common.by import By def java(ign): driver = driver_gen.new() with driver: driver.get(f"https://appeals.cubecraft.net/find_appeals/{ign}/JAVA") try: if "Current infractions" in driver.find_element(By.CLASS_NAME, "card-...
27.880952
93
0.632792
4ee5365db1ebd76a45bf51dca37e9ecd3a67eea6
3,031
py
Python
csp/tetris_csp.py
JacobChen258/AI-Constraints-Satisfaction
9b01cfce447e40678eb2e426413b4e2e437257f0
[ "MIT" ]
null
null
null
csp/tetris_csp.py
JacobChen258/AI-Constraints-Satisfaction
9b01cfce447e40678eb2e426413b4e2e437257f0
[ "MIT" ]
null
null
null
csp/tetris_csp.py
JacobChen258/AI-Constraints-Satisfaction
9b01cfce447e40678eb2e426413b4e2e437257f0
[ "MIT" ]
null
null
null
from .csp import CSP from .tetromino_puzzle_constraint import TetrominoPuzzleConstraint from tetris import TetrominoUtil class TetrisCSP(CSP): def __init__(self, grid): super().__init__() self.update_grid(grid) self.add_constraint(TetrominoPuzzleConstraint(grid)) def update_grid(self, ...
45.238806
113
0.524909
569898dba4312d7778d8ee2772eaba4021e88ced
792
py
Python
examples/attributes/goto_url.py
DaAwesomeP/ARENA-py
876a6b0c6800d7c2b1a592fd5f25529b9c140efc
[ "BSD-3-Clause" ]
4
2021-01-22T23:49:52.000Z
2022-03-04T06:01:18.000Z
examples/attributes/goto_url.py
DaAwesomeP/ARENA-py
876a6b0c6800d7c2b1a592fd5f25529b9c140efc
[ "BSD-3-Clause" ]
50
2020-08-14T22:24:36.000Z
2022-03-18T20:41:12.000Z
examples/attributes/goto_url.py
DaAwesomeP/ARENA-py
876a6b0c6800d7c2b1a592fd5f25529b9c140efc
[ "BSD-3-Clause" ]
10
2019-10-28T20:15:18.000Z
2021-06-29T18:02:06.000Z
# url.py # from arena import * scene = Scene(host="arenaxr.org", scene="example") print("Three clickable URL boxs targetted to different windows" ) popup = Box( position=(-3, 0, -5), color=(255,0,0), clickable=True, goto_url=GotoUrl(dest="popup", on="mousedown", url="https://www.conix.io/") ) newtab...
20.307692
84
0.640152
308c52248d58f47cc9f8b2d8182cd6ced3c5d067
21,213
py
Python
IMSurReal/main.py
EggplantElf/IMSurReal
71d84f2c7016cee05657c9e780b855cad445e54e
[ "MIT" ]
6
2019-11-20T14:12:25.000Z
2021-01-04T13:23:30.000Z
IMSurReal/main.py
EggplantElf/IMSurReal
71d84f2c7016cee05657c9e780b855cad445e54e
[ "MIT" ]
2
2020-02-17T21:24:40.000Z
2020-07-21T11:24:07.000Z
IMSurReal/main.py
EggplantElf/IMSurReal
71d84f2c7016cee05657c9e780b855cad445e54e
[ "MIT" ]
null
null
null
import sys from data import * from utils import * import dynet as dy import dynet_modules as dm import numpy as np from argparse import ArgumentParser import gzip, pickle from time import time import re from collections import defaultdict import Levenshtein import random import json from modules.feat_encoder import Fe...
42.682093
173
0.564889
e35af40d258e8c8aabdb5af9ec294f047de79e05
3,960
py
Python
suitcase/nxstxm/device_names.py
bluesky/suitcase-nxstxm
0c554c9cef286f29f40150d67a6ce3440943a427
[ "BSD-3-Clause" ]
null
null
null
suitcase/nxstxm/device_names.py
bluesky/suitcase-nxstxm
0c554c9cef286f29f40150d67a6ce3440943a427
[ "BSD-3-Clause" ]
5
2020-04-23T15:17:20.000Z
2020-12-02T16:40:43.000Z
suitcase/nxstxm/device_names.py
bluesky/suitcase-nxstxm
0c554c9cef286f29f40150d67a6ce3440943a427
[ "BSD-3-Clause" ]
2
2019-09-16T07:28:19.000Z
2020-04-01T16:01:33.000Z
''' Created on Jan 11, 2019 @author: bergr The names defined here are to be used to refer to the main object dict devices and positioners ''' DNM_FINE_X = 'FineX' DNM_FINE_Y = 'FineY' DNM_FINE_ZX = 'FineZX' DNM_FINE_ZY = 'FineZY' DNM_SAMPLE_FINE_X = 'SampleFineX' DNM_SAMPLE_FINE_Y = 'SampleFineY' DNM_COARSE_X = 'Co...
30.9375
94
0.750758
e4de69c3ce85989b1ecd7742da7b1151ec0bd688
6,141
py
Python
homeassistant/components/calendar/__init__.py
loraxx753/skynet
86a1b0a6c6a3f81bc92d4f61de6a9a6b9f964543
[ "Apache-2.0" ]
1
2017-01-25T15:31:20.000Z
2017-01-25T15:31:20.000Z
homeassistant/components/calendar/__init__.py
bytebility/home-assistant
6015274ee2486f797fd6ee8f5f2074a601953e03
[ "MIT" ]
1
2017-03-10T22:17:06.000Z
2017-03-10T22:17:06.000Z
homeassistant/components/calendar/__init__.py
bytebility/home-assistant
6015274ee2486f797fd6ee8f5f2074a601953e03
[ "MIT" ]
2
2018-10-22T17:05:47.000Z
2021-09-22T10:52:31.000Z
""" Support for Google Calendar event device sensors. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/calendar/ """ import logging from datetime import timedelta import re from homeassistant.components.google import (CONF_OFFSET, ...
32.839572
78
0.574825
6f236eeaf03036c2d6ea3c73f2ec4541a4e24179
2,239
py
Python
pyfinmod/ev.py
smirnov-am/pyfinmod
00381012d5f7332a277d7f4f5c184fdbb99b4ac8
[ "MIT" ]
23
2019-04-27T22:49:33.000Z
2020-08-19T11:56:54.000Z
pyfinmod/ev.py
TechnicalConsultant123/pyfinmod
00381012d5f7332a277d7f4f5c184fdbb99b4ac8
[ "MIT" ]
9
2020-08-20T07:58:10.000Z
2020-09-19T11:15:28.000Z
pyfinmod/ev.py
smirnov-am/pyfinmod
00381012d5f7332a277d7f4f5c184fdbb99b4ac8
[ "MIT" ]
16
2019-04-27T22:49:33.000Z
2020-08-19T11:56:37.000Z
from math import sqrt import pandas as pd from pyfinmod.basic import npv def enterprise_value(balance_sheet): nvc = net_working_capital(balance_sheet) nc_assets = balance_sheet.loc["Total non-current assets"] other_assets = balance_sheet.loc["Other Assets"] return nvc + nc_assets + other_assets def ...
31.985714
80
0.713265
e47cda28a96655b6293e4b3068476455c19f2dbf
13,730
py
Python
dataprofiler/profilers/order_column_profile.py
YWaller/DataProfiler
31bc81767f65155ddb837551b6d8a9f1493d037a
[ "Apache-2.0" ]
null
null
null
dataprofiler/profilers/order_column_profile.py
YWaller/DataProfiler
31bc81767f65155ddb837551b6d8a9f1493d037a
[ "Apache-2.0" ]
2
2022-03-21T18:10:20.000Z
2022-03-21T18:10:22.000Z
dataprofiler/profilers/order_column_profile.py
YWaller/DataProfiler
31bc81767f65155ddb837551b6d8a9f1493d037a
[ "Apache-2.0" ]
null
null
null
from . import BaseColumnProfiler from . import utils from .profiler_options import OrderOptions class OrderColumn(BaseColumnProfiler): """ Index column profile subclass of BaseColumnProfiler. Represents a column in the dataset which is an index column. """ type = "order" def __init__(self, na...
38.459384
89
0.606191
97a01131a99e5dc3e6a7e6172f7b5e65b4d14769
2,955
py
Python
v1.0.0.test/toontown/town/TownBattleAttackPanel.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v1.0.0.test/toontown/town/TownBattleAttackPanel.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v1.0.0.test/toontown/town/TownBattleAttackPanel.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from panda3d.core import * from direct.directnotify import DirectNotifyGlobal import string from direct.fsm import StateData from toontown.toontowngui.TeaserPanel import TeaserPanel from toontown.toonbase.ToontownBattleGlobals import gagIsPaidOnly AttackPanelHidden = 0 def hideAttackPanel(flag): global AttackPanel...
34.360465
104
0.656514
5554cf8bd7c79a37b3cf831ea77550ac438d9cd4
37,454
py
Python
sdks/python/bjr4py/api/jobs_api.py
barryw/bjr
de56f22198b34a9d303ee43ac01134b5cf1ce863
[ "BSD-3-Clause" ]
2
2020-06-04T03:04:15.000Z
2020-06-13T12:53:58.000Z
sdks/python/bjr4py/api/jobs_api.py
barryw/bjr
de56f22198b34a9d303ee43ac01134b5cf1ce863
[ "BSD-3-Clause" ]
6
2020-05-24T12:56:25.000Z
2022-02-26T07:13:17.000Z
sdks/python/bjr4py/api/jobs_api.py
barryw/bjr
de56f22198b34a9d303ee43ac01134b5cf1ce863
[ "BSD-3-Clause" ]
null
null
null
""" BJR API V1 API specification for the BJR job server. # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from bjr4py.api_client import ApiClient, Endpoint as _Endpoint from bjr4py.model_utils imp...
35.003738
88
0.43245
fb53c2f1f2b0a396ba48f3642d6a22896d659270
5,659
py
Python
usaspending_api/agency/v2/views/agency_base.py
beboplove/usaspending-api
ee4fb35e2d5bcdc68f6c0d4240871ea298e532d9
[ "CC0-1.0" ]
null
null
null
usaspending_api/agency/v2/views/agency_base.py
beboplove/usaspending-api
ee4fb35e2d5bcdc68f6c0d4240871ea298e532d9
[ "CC0-1.0" ]
null
null
null
usaspending_api/agency/v2/views/agency_base.py
beboplove/usaspending-api
ee4fb35e2d5bcdc68f6c0d4240871ea298e532d9
[ "CC0-1.0" ]
null
null
null
import logging import json from django.conf import settings from django.utils.functional import cached_property from re import fullmatch from rest_framework.exceptions import NotFound from rest_framework.views import APIView from usaspending_api.common.data_classes import Pagination from usaspending_api.common.except...
43.530769
129
0.699417
b6dbd36b5bc5c35f79519de683f04751dea6b925
212
py
Python
handlers/pingpong_handler.py
Args-Engine/rb-distributed-helloworld
57f06488e57e0cde9cad7e459bf5608f99ba4e96
[ "MIT" ]
null
null
null
handlers/pingpong_handler.py
Args-Engine/rb-distributed-helloworld
57f06488e57e0cde9cad7e459bf5608f99ba4e96
[ "MIT" ]
null
null
null
handlers/pingpong_handler.py
Args-Engine/rb-distributed-helloworld
57f06488e57e0cde9cad7e459bf5608f99ba4e96
[ "MIT" ]
null
null
null
import socket import messages.pingpong as ping class PingPongHandler: @staticmethod def handle(client: socket, _, success: bool): if success: client.send(ping.Ping().to_sendable())
19.272727
50
0.674528