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
c896cf21816f76cd01ad1bacb6b82f675af14297
12,510
py
Python
services/core-api/tests/now_submissions/resources/test_application_resource.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
25
2018-07-09T19:04:37.000Z
2022-03-15T17:27:10.000Z
services/core-api/tests/now_submissions/resources/test_application_resource.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
983
2018-04-25T20:08:07.000Z
2022-03-31T21:45:20.000Z
services/core-api/tests/now_submissions/resources/test_application_resource.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
58
2018-05-15T22:35:50.000Z
2021-11-29T19:40:52.000Z
import json from tests.factories import (NOWSubmissionFactory, MineFactory, NOWClientFactory, NOWApplicationIdentityFactory) class TestGetApplicationResource: """GET /now-submissions/applications/{application_guid}""" def test_get_now_submission_by_guid_success(self, test_client,...
55.110132
97
0.681455
12,352
0.98737
0
0
0
0
0
0
2,836
0.226699
c89c4416cb922696e6077b691fa44b4a364a4846
447
py
Python
output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_enumeration_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_enumeration_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_enumeration_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.non_positive_integer.schema_instance.nistschema_sv_iv_list_non_positive_integer_enumeration_2_xsd.nistschema_sv_iv_list_non_positive_integer_enumeration_2 import ( NistschemaSvIvListNonPositiveIntegerEnumeration2, NistschemaSvIvListNonPositiveIntegerEnumeration2Type, ) __a...
44.7
201
0.888143
0
0
0
0
0
0
0
0
104
0.232662
c89d84cb20f102af7452f0c152beca85a101d946
386
py
Python
cache-basic.py
kurapikats/python-basics
7b81e5e8de44186b573b74f05c78b56894df0ed7
[ "MIT" ]
null
null
null
cache-basic.py
kurapikats/python-basics
7b81e5e8de44186b573b74f05c78b56894df0ed7
[ "MIT" ]
null
null
null
cache-basic.py
kurapikats/python-basics
7b81e5e8de44186b573b74f05c78b56894df0ed7
[ "MIT" ]
null
null
null
import time def compute(a, b): time.sleep(2) return a + b cache = {} def cache_compute(a, b): if (a, b) in cache.keys(): return cache[a, b] else: new = compute(a, b) cache[a, b] = new return new print(cache_compute(1, 2)) print(cache_compute(3, 5)) print(cache_com...
14.846154
30
0.585492
0
0
0
0
0
0
0
0
0
0
c8a19d3ee1214101499b5145f53a93867a82f056
675
py
Python
dl/src/CookieManager.py
PatrykCholewa/PI_Stored
4ff4d72fe56281b76ddf7b759c19aabbce3c9899
[ "MIT" ]
null
null
null
dl/src/CookieManager.py
PatrykCholewa/PI_Stored
4ff4d72fe56281b76ddf7b759c19aabbce3c9899
[ "MIT" ]
null
null
null
dl/src/CookieManager.py
PatrykCholewa/PI_Stored
4ff4d72fe56281b76ddf7b759c19aabbce3c9899
[ "MIT" ]
null
null
null
from datetime import datetime import jwt from src import ConfigManager secret = ConfigManager.get_config("DL_COOKIE_SECRET_KEY") secure = ConfigManager.get_config("APP_SECURE") def validate_user_jwt(token, username): token = jwt.decode(token, secret, "HS256") expire = token['exp'] if username != token[...
23.275862
58
0.708148
0
0
0
0
0
0
0
0
75
0.111111
c8a2956bd7fb979e05d6c1af9814b3f364a7b696
2,403
py
Python
printing/Spooler.py
mrlinqu/intsa_term_client
596335da6dbdf7eb543b1dcf2c33bcc222aa3321
[ "MIT" ]
null
null
null
printing/Spooler.py
mrlinqu/intsa_term_client
596335da6dbdf7eb543b1dcf2c33bcc222aa3321
[ "MIT" ]
1
2020-11-07T12:44:56.000Z
2020-11-07T12:46:52.000Z
printing/Spooler.py
mrlinqu/intsa_term_client
596335da6dbdf7eb543b1dcf2c33bcc222aa3321
[ "MIT" ]
null
null
null
# Copyright 2020 by Roman Khuramshin <mr.linqu@gmail.com>. # All rights reserved. # This file is part of the Intsa Term Client - X2Go terminal client for Windows, # and is released under the "MIT License Agreement". Please see the LICENSE # file that should have been included as part of this package. import logging i...
28.607143
168
0.61881
1,997
0.831045
0
0
388
0.161465
0
0
409
0.170204
c8a3493cfeb4dfbb80acc4a2be0aae2d1cb8c74f
1,264
py
Python
mytests/test_SimpleCalc.py
KishoreParihar/DemoPythonTest
f9dadbf6cfcd4e6877e31ca65851882f73234307
[ "MIT" ]
null
null
null
mytests/test_SimpleCalc.py
KishoreParihar/DemoPythonTest
f9dadbf6cfcd4e6877e31ca65851882f73234307
[ "MIT" ]
null
null
null
mytests/test_SimpleCalc.py
KishoreParihar/DemoPythonTest
f9dadbf6cfcd4e6877e31ca65851882f73234307
[ "MIT" ]
null
null
null
import unittest import sys sys.path.append(".") sys.path.insert(0, '..\\') from calculator.simplecalculator import Calculator class TestSimpleCalc(unittest.TestCase): @classmethod def setUpClass(cls): print ("In setupclass() method") cls.cal = Calculator(4, 3) @classmethod def tearDow...
23.849057
58
0.606013
1,088
0.860759
0
0
217
0.171677
0
0
111
0.087816
c8a47ee8db41845109ebaa2bf272e65a01b66623
2,683
py
Python
argos/countdown.9s.py
solettitiger/countdown
c5df89c7d67984171de08508ef4433ea9d6fbbd1
[ "MIT" ]
null
null
null
argos/countdown.9s.py
solettitiger/countdown
c5df89c7d67984171de08508ef4433ea9d6fbbd1
[ "MIT" ]
null
null
null
argos/countdown.9s.py
solettitiger/countdown
c5df89c7d67984171de08508ef4433ea9d6fbbd1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import datetime import sys import subprocess import os from playsound import playsound # ****************************************************************** # Definitionen # ****************************************************************** filename = 'countdown.txt' audiof...
26.83
151
0.561685
0
0
0
0
0
0
0
0
885
0.329486
c8a59080304794abe4b7a5451fd69be502c0aee2
1,392
py
Python
restapi/v1/serializers.py
asntech/jaspar
ae86731e8f197d6830e6d778835f218d4eb1b9e8
[ "BSD-3-Clause" ]
3
2017-11-20T23:03:20.000Z
2020-02-15T19:32:23.000Z
restapi/v1/serializers.py
asntech/jaspar
ae86731e8f197d6830e6d778835f218d4eb1b9e8
[ "BSD-3-Clause" ]
3
2019-12-12T09:26:55.000Z
2021-06-10T19:24:19.000Z
restapi/v1/serializers.py
asntech/jaspar
ae86731e8f197d6830e6d778835f218d4eb1b9e8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ## Author: Aziz Khan ## License: GPL v3 ## Copyright © 2017 Aziz Khan <azez.khan__AT__gmail.com> from rest_framework import serializers from portal.models import Matrix, MatrixAnnotation from django.http import HttpRequest class MatrixAnnotationSerializer(serializers.HyperlinkedModelSerializ...
29
90
0.733477
1,137
0.816224
0
0
0
0
0
0
460
0.330223
c8a8f855a2d0fbd314903aae2f023f9e8c19884d
5,043
py
Python
multimodal_models/StackGAN_V2_PyTorch/models.py
kumayu0108/model-zoo
4285779f6ff51fa1efb0625d67b428e90c343c0c
[ "MIT" ]
43
2020-05-16T21:05:34.000Z
2022-02-08T11:33:29.000Z
multimodal_models/StackGAN_V2_PyTorch/models.py
kumayu0108/model-zoo
4285779f6ff51fa1efb0625d67b428e90c343c0c
[ "MIT" ]
52
2020-05-14T16:18:08.000Z
2021-11-02T19:13:47.000Z
multimodal_models/StackGAN_V2_PyTorch/models.py
kumayu0108/model-zoo
4285779f6ff51fa1efb0625d67b428e90c343c0c
[ "MIT" ]
69
2020-05-14T13:39:23.000Z
2021-07-30T00:51:27.000Z
import torch import torch.nn as nn from generator_model import G1, G2 from helper_functions.Blocks import downBlock, Block3x3_leakRelu from helper_functions.ret_image import Interpolate, condAugmentation from helper_functions.initial_weights import weights_init from helper_functions.losses import KLloss, custom_loss fr...
39.093023
78
0.615507
4,614
0.914932
0
0
0
0
0
0
0
0
c8a9475637b6493e4ff65f91b1c3dca0e1d6f885
382
py
Python
utils/agro_utils.py
TiagoMarta/data_fusion_Vineyard-Segmentation
de54e149d36027bb314b5890ea4a1e71ba472d17
[ "Unlicense", "MIT" ]
3
2021-08-04T08:03:50.000Z
2022-03-25T11:22:09.000Z
utils/agro_utils.py
TiagoMarta/data_fusion_Vineyard-Segmentation
de54e149d36027bb314b5890ea4a1e71ba472d17
[ "Unlicense", "MIT" ]
null
null
null
utils/agro_utils.py
TiagoMarta/data_fusion_Vineyard-Segmentation
de54e149d36027bb314b5890ea4a1e71ba472d17
[ "Unlicense", "MIT" ]
null
null
null
import numpy as np def NDVI(nir,red): ''' # https://eos.com/make-an-analysis/ndvi/ Inputs: nxm numpy arrays NIR – reflection in the near-infrared spectrum RED – reflection in the red range of the spectrum ''' num = nir-red dom = nir+red ndvi = np.divide(num,dom) ndvi[...
25.466667
57
0.609948
0
0
0
0
0
0
0
0
225
0.582902
c8a98f7aadc1b3bec71524384698aed558c36091
3,805
py
Python
generator/api/routes.py
horvathandris/phenoflow
d0109f3702bc180954051170a56e017af52636fb
[ "MIT" ]
null
null
null
generator/api/routes.py
horvathandris/phenoflow
d0109f3702bc180954051170a56e017af52636fb
[ "MIT" ]
null
null
null
generator/api/routes.py
horvathandris/phenoflow
d0109f3702bc180954051170a56e017af52636fb
[ "MIT" ]
null
null
null
from starlette.applications import Starlette from starlette.responses import JSONResponse from api import workflow import oyaml as yaml app = Starlette(debug=True) def generateWorkflow(steps, nested=False): generatedWorkflow = workflow.initWorkflow(); generatedWorkflowInputs = {}; generatedSteps = []; if (n...
57.651515
252
0.70276
0
0
0
0
476
0.125099
434
0.11406
1,259
0.33088
c8abec201704fed99560906ddf5c95d5088bad9f
840
py
Python
heap/maxSlidingWindow.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
heap/maxSlidingWindow.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
heap/maxSlidingWindow.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
class Solution(object): def maxSlidingWindow(self, nums, k): """ :type nums: List[int] :type k: int :rtype: List[int] """ res = [] tmp = [] # tmp[0] always save the current windows max for i in xrange(len(nums)): if i < k-1: # first k-1 num...
31.111111
85
0.42381
770
0.916667
0
0
0
0
0
0
234
0.278571
c8adae8d9f3f33704f82f32bb3e323260ea0ba97
29,151
py
Python
tccli/services/tsf/v20180326/help.py
zyh911/tencentcloud-cli
dfc5dbd660d4c60d265921c4edc630091478fc41
[ "Apache-2.0" ]
null
null
null
tccli/services/tsf/v20180326/help.py
zyh911/tencentcloud-cli
dfc5dbd660d4c60d265921c4edc630091478fc41
[ "Apache-2.0" ]
null
null
null
tccli/services/tsf/v20180326/help.py
zyh911/tencentcloud-cli
dfc5dbd660d4c60d265921c4edc630091478fc41
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- DESC = "tsf-2018-03-26" INFO = { "DeletePublicConfig": { "params": [ { "name": "ConfigId", "desc": "配置项ID" } ], "desc": "删除公共配置项" }, "DescribeSimpleGroups": { "params": [ { "name": "GroupIdList", "desc": "部署组ID列表,不填写时查询全量" ...
18.567516
165
0.392028
0
0
0
0
0
0
0
0
21,311
0.597667
c8b067f63a4c14a9b78ac5bf7aace3e8420c7a16
1,729
py
Python
workflow_scripts/test_models.py
jcwchen/models
2fd86acdd51037570e1daefa03873237b76bd5a6
[ "MIT" ]
1
2020-12-19T14:46:23.000Z
2020-12-19T14:46:23.000Z
workflow_scripts/test_models.py
sumit6597/models
2fd86acdd51037570e1daefa03873237b76bd5a6
[ "MIT" ]
null
null
null
workflow_scripts/test_models.py
sumit6597/models
2fd86acdd51037570e1daefa03873237b76bd5a6
[ "MIT" ]
1
2021-08-08T11:47:35.000Z
2021-08-08T11:47:35.000Z
import onnx from pathlib import Path import subprocess import sys def run_lfs_install(): result = subprocess.run(['git', 'lfs', 'install'], cwd=cwd_path, stdout=subprocess.PIPE, stderr=subprocess.PIPE) print("Git LFS install completed with return code=" + str(result.returncode)) def pull_lfs_file(file_name): re...
35.285714
156
0.707924
0
0
0
0
0
0
0
0
550
0.318103
c8b4dfd0fac657e7ac7e488ed975872bacfb263c
25
py
Python
manager/__init__.py
monocleface/viewer
8ab47a9e846bd2716fe0208c34f33565513fc3f6
[ "Apache-2.0" ]
6
2020-02-28T21:18:16.000Z
2020-03-13T16:45:57.000Z
manager/__init__.py
monocleface/viewer
8ab47a9e846bd2716fe0208c34f33565513fc3f6
[ "Apache-2.0" ]
6
2020-02-28T12:42:52.000Z
2020-03-16T03:49:09.000Z
manager/__init__.py
monocleface/viewer
8ab47a9e846bd2716fe0208c34f33565513fc3f6
[ "Apache-2.0" ]
6
2020-03-05T13:04:25.000Z
2020-03-13T16:46:03.000Z
from .utils import Config
25
25
0.84
0
0
0
0
0
0
0
0
0
0
c8b5d127b254896268904720f95e3739d411d338
1,374
py
Python
src/classifier/utils/create_data.py
maxscheijen/dutch-sentiment-classifier
6b3149d906710fadc0b104a9f79ca389a7f5cba3
[ "Apache-2.0" ]
null
null
null
src/classifier/utils/create_data.py
maxscheijen/dutch-sentiment-classifier
6b3149d906710fadc0b104a9f79ca389a7f5cba3
[ "Apache-2.0" ]
null
null
null
src/classifier/utils/create_data.py
maxscheijen/dutch-sentiment-classifier
6b3149d906710fadc0b104a9f79ca389a7f5cba3
[ "Apache-2.0" ]
null
null
null
import glob import pandas as pd from tqdm import tqdm from classifier import config class Dataset: """Create dataset class""" def __init__(self): # Get all txt files self.paths = sorted(glob.glob("data/*/*/*.txt")) self.dataframe = None def load_data(self): dfs = [] # i...
28.625
68
0.54294
1,286
0.935953
0
0
0
0
0
0
289
0.210335
c8b602b1d86d1edc850b44d842ce6f3bb89f273d
642
py
Python
pip/setup.py
siphr/urdu-digit
133fcea917ce4584c2f98b470f9e3063f9f03c99
[ "MIT" ]
null
null
null
pip/setup.py
siphr/urdu-digit
133fcea917ce4584c2f98b470f9e3063f9f03c99
[ "MIT" ]
null
null
null
pip/setup.py
siphr/urdu-digit
133fcea917ce4584c2f98b470f9e3063f9f03c99
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="urdu_digit", version="0.0.17", keywords=["urdu", "numeric", "digit", "converter"], description="English to Urdu numeric digit converter.", long_description=open('README.md').read(), project_urls={ 'Homepag...
25.68
74
0.641745
0
0
0
0
0
0
0
0
330
0.514019
c8b68cb341dae475cc25f2d74d8dcd06d0f58623
1,682
py
Python
algorithms/intervals.py
calebperkins/algorithms
9f4a029261160e6b12b8bedd53f0a0ebf541237a
[ "MIT" ]
null
null
null
algorithms/intervals.py
calebperkins/algorithms
9f4a029261160e6b12b8bedd53f0a0ebf541237a
[ "MIT" ]
null
null
null
algorithms/intervals.py
calebperkins/algorithms
9f4a029261160e6b12b8bedd53f0a0ebf541237a
[ "MIT" ]
null
null
null
import collections Interval = collections.namedtuple("Interval", "start, end") class AugmentedTree: """ An augmented tree for querying intervals. The nodes are ordered by the start interval. The high attribute is the maximum end interval of the node and any of its children. This tree could become im...
29
116
0.521998
1,599
0.950654
385
0.228894
0
0
0
0
365
0.217004
c8bd12730bd20c4875906f949b15caeb99026f0f
4,874
py
Python
utils/visualization.py
yigitozgumus/Polimi_Thesis
711c1edcf1fdb92fc6c15bf5ab1be141c13995c3
[ "MIT" ]
3
2019-07-27T14:00:42.000Z
2020-01-17T17:07:51.000Z
utils/visualization.py
yigitozgumus/Polimi_Thesis
711c1edcf1fdb92fc6c15bf5ab1be141c13995c3
[ "MIT" ]
null
null
null
utils/visualization.py
yigitozgumus/Polimi_Thesis
711c1edcf1fdb92fc6c15bf5ab1be141c13995c3
[ "MIT" ]
4
2019-10-22T02:58:26.000Z
2020-10-06T09:59:26.000Z
import numpy as np import matplotlib.pyplot as plt def show_anomalies(patch_array): num_figs = len(patch_array) fig = plt.figure(figsize=(num_figs * 30, 30)) plt.tight_layout() for i in range(len(patch_array)): plt.subplot(num_figs, 1, i + 1) plt.imshow(patch_array[i]) plt.axis...
34.083916
100
0.55437
0
0
0
0
0
0
0
0
453
0.092942
c8c0726d584812a525a610e545b5c0960badaf74
18,223
py
Python
tests/unit/core/tensorrt_loaders.py
ParikhKadam/NeMo
ee11f7c4666d410d91f9da33c61f4819ea625013
[ "Apache-2.0" ]
10
2020-03-17T08:32:06.000Z
2021-04-19T19:03:50.000Z
tests/unit/core/tensorrt_loaders.py
dcmartin/NeMo
d2120a40bf23d3e38ff5677c2685c712f297e6b1
[ "Apache-2.0" ]
1
2020-06-11T00:54:42.000Z
2020-06-11T00:54:42.000Z
tests/unit/core/tensorrt_loaders.py
dcmartin/NeMo
d2120a40bf23d3e38ff5677c2685c712f297e6b1
[ "Apache-2.0" ]
3
2020-03-10T05:10:07.000Z
2020-12-08T01:33:35.000Z
# ! /usr/bin/python # -*- coding: utf-8 -*- # ============================================================================= # Copyright 2020 NVIDIA. 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 obta...
43.70024
548
0.610492
16,690
0.915876
0
0
0
0
0
0
6,482
0.355704
c8c0d558d52b83f545c1d622f249b8f8181f6952
420
py
Python
vstreamer_server/application/VideoStreamerServerApplication.py
artudi54/video-streamer
66e5e722ed66abe5877488f177c0ac4f13325382
[ "MIT" ]
2
2019-10-08T10:49:52.000Z
2021-10-01T11:26:31.000Z
vstreamer_server/application/VideoStreamerServerApplication.py
artudi54/video-streamer
66e5e722ed66abe5877488f177c0ac4f13325382
[ "MIT" ]
1
2019-05-16T13:48:29.000Z
2019-05-16T13:48:49.000Z
vstreamer_server/application/VideoStreamerServerApplication.py
artudi54/video-streamer
66e5e722ed66abe5877488f177c0ac4f13325382
[ "MIT" ]
1
2019-10-08T10:49:56.000Z
2019-10-08T10:49:56.000Z
import logging import signal from PySide2 import QtCore import vstreamer_utils class VideoStreamerServerApplication(QtCore.QCoreApplication): def __init__(self, argv): super().__init__(argv) self.setApplicationName("video_streamer_server") self.logger = vstreamer_utils.make_logger() ...
28
62
0.754762
338
0.804762
0
0
0
0
0
0
51
0.121429
c8c12c77067e0a8b65aeb31d29a9acc363766542
2,345
py
Python
serial_scripts/reset_config/test_reset_config.py
vkolli/5.0_contrail-test
1793f169a94100400a1b2fafbad21daf5aa4d48a
[ "Apache-2.0" ]
1
2017-06-13T04:42:34.000Z
2017-06-13T04:42:34.000Z
serial_scripts/reset_config/test_reset_config.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
1
2021-06-01T22:18:29.000Z
2021-06-01T22:18:29.000Z
serial_scripts/reset_config/test_reset_config.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
null
null
null
#Define environment variable FABRIC_UTILS_PATH and provide path to fabric_utils before running import time import os from contrail_fixtures import * import testtools from tcutils.commands import * from fabric.context_managers import settings from tcutils.wrappers import preposttest_wrapper from tcutils.util import * fr...
40.431034
94
0.690405
1,862
0.79403
0
0
1,655
0.705757
0
0
688
0.29339
c8c174e66db5ae93829e5da36ac5e18a48241662
15,382
py
Python
server/services/wiki/pages/overview_service.py
hotosm/oeg-reporter
f0c3da80ba380df907a818db224e9ca2ae0018b3
[ "BSD-2-Clause" ]
1
2021-02-03T13:37:48.000Z
2021-02-03T13:37:48.000Z
server/services/wiki/pages/overview_service.py
hotosm/oeg-reporter
f0c3da80ba380df907a818db224e9ca2ae0018b3
[ "BSD-2-Clause" ]
8
2020-07-16T23:17:51.000Z
2020-10-14T20:40:00.000Z
server/services/wiki/pages/overview_service.py
hotosm/oeg-reporter
f0c3da80ba380df907a818db224e9ca2ae0018b3
[ "BSD-2-Clause" ]
null
null
null
from server.services.wiki.pages.templates import OverviewPageTemplates from server.services.wiki.pages.page_service import PageService from server.services.wiki.mediawiki_service import MediaWikiService from server.services.wiki.wiki_text_service import WikiTextService from server.services.wiki.wiki_table_service impor...
39.64433
88
0.594981
14,901
0.96873
0
0
0
0
0
0
3,046
0.198024
c8c21cc5ec4a4f6297ac9cc8b0615e326672a6bb
414
py
Python
App/migrations/0011_playlist_preferences.py
dlanghorne0428/StudioMusicPlayer
54dabab896b96d90b68d6435edfd52fe6a866bc2
[ "MIT" ]
null
null
null
App/migrations/0011_playlist_preferences.py
dlanghorne0428/StudioMusicPlayer
54dabab896b96d90b68d6435edfd52fe6a866bc2
[ "MIT" ]
44
2022-01-21T01:33:59.000Z
2022-03-26T23:35:25.000Z
App/migrations/0011_playlist_preferences.py
dlanghorne0428/StudioMusicPlayer
54dabab896b96d90b68d6435edfd52fe6a866bc2
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2022-03-06 02:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('App', '0010_remove_user_percentage_preferences_user_preferences'), ] operations = [ migrations.AddField( model_name='playlist', ...
21.789474
76
0.628019
323
0.780193
0
0
0
0
0
0
131
0.316425
c8c3d449685f28e78f767aafb617c4bfc465febb
2,779
py
Python
emerald/database_operations.py
femmerling/EmeraldBox
68f5776577f0c929ca1f5ba23f1dfe480f813037
[ "MIT" ]
17
2015-01-15T21:41:16.000Z
2021-01-10T15:34:09.000Z
emerald/database_operations.py
femmerling/EmeraldBox
68f5776577f0c929ca1f5ba23f1dfe480f813037
[ "MIT" ]
null
null
null
emerald/database_operations.py
femmerling/EmeraldBox
68f5776577f0c929ca1f5ba23f1dfe480f813037
[ "MIT" ]
5
2015-02-07T02:41:18.000Z
2016-11-11T02:50:21.000Z
import imp import os.path from app import db from migrate.versioning import api from config import SQLALCHEMY_DATABASE_URI from config import SQLALCHEMY_MIGRATE_REPO def db_create(): # This creates the new database. db.create_all() # If no repo existed, the creation will prepare for the first migration....
41.477612
144
0.77366
0
0
0
0
0
0
0
0
812
0.292191
c8c574de241b0c8199ec3be2586cfc5532691047
5,253
py
Python
xmuda/eval_sem_pcd.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
xmuda/eval_sem_pcd.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
xmuda/eval_sem_pcd.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
from xmuda.models.SSC2d_proj3d2d import SSC2dProj3d2d from xmuda.data.NYU.nyu_dm import NYUDataModule from xmuda.data.semantic_kitti.kitti_dm import KittiDataModule from xmuda.common.utils.sscMetrics import SSCMetrics from xmuda.data.NYU.params import class_relation_freqs as NYU_class_relation_freqs, class_freq_1_4 as ...
44.897436
234
0.663811
0
0
0
0
0
0
0
0
1,744
0.332001
c8c6f7ca2165cf621b2f2448c66168d6e16e7af2
9,695
py
Python
hnn/src/apps/dataparallel.py
anlewy/mt-dnn
eeb6f01ce0630e61a52b8c9c6f7537cd34978e45
[ "MIT" ]
2,075
2019-02-25T08:54:38.000Z
2022-03-31T10:44:50.000Z
hnn/src/apps/dataparallel.py
anlewy/mt-dnn
eeb6f01ce0630e61a52b8c9c6f7537cd34978e45
[ "MIT" ]
176
2019-03-12T02:58:42.000Z
2022-03-22T20:17:23.000Z
hnn/src/apps/dataparallel.py
anlewy/mt-dnn
eeb6f01ce0630e61a52b8c9c6f7537cd34978e45
[ "MIT" ]
437
2019-03-11T21:36:21.000Z
2022-03-29T02:40:53.000Z
# Author: penhe@microsoft.com # Date: 05/30/2019 # """ Data parallel module """ from collections import OrderedDict import numpy as np import torch from torch.cuda.comm import broadcast_coalesced from torch.cuda.comm import reduce_add_coalesced from torch.nn.parallel import parallel_apply from torch.nn.parallel.scatte...
35.643382
139
0.664569
5,691
0.587004
0
0
0
0
0
0
417
0.043012
c8c808427fd949238223a24b72518b4c7f83bcd8
1,190
py
Python
mall/serializers.py
turing0/mallProject
cc56d25c51fa03584f99a633a6f606622cfb1e5d
[ "MIT" ]
null
null
null
mall/serializers.py
turing0/mallProject
cc56d25c51fa03584f99a633a6f606622cfb1e5d
[ "MIT" ]
null
null
null
mall/serializers.py
turing0/mallProject
cc56d25c51fa03584f99a633a6f606622cfb1e5d
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import User from .models import Product from django.contrib.auth import get_user_model class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('id', 'username', 'password', 'balance') class ProductSerializer(serial...
36.060606
92
0.657143
1,057
0.879368
0
0
0
0
0
0
745
0.6198
c8ca44f18c6c1244335778442d0b31143cb496f7
811
py
Python
ch02/multiSinal_button.py
you-know-who-2017/pythonQT
a713bfacbb53c5f23e9d7f61dc44592335a24423
[ "MIT" ]
null
null
null
ch02/multiSinal_button.py
you-know-who-2017/pythonQT
a713bfacbb53c5f23e9d7f61dc44592335a24423
[ "MIT" ]
null
null
null
ch02/multiSinal_button.py
you-know-who-2017/pythonQT
a713bfacbb53c5f23e9d7f61dc44592335a24423
[ "MIT" ]
null
null
null
''' Author: geekli Date: 2020-12-27 10:38:46 LastEditTime: 2020-12-27 10:40:44 LastEditors: your name Description: FilePath: \pythonQT\ch02\multiSinal_button.py ''' import sys from PyQt5.QtWidgets import QApplication, QWidget, QPushButton class Demo(QWidget): def __init__(self): super(Demo, self).__init_...
25.34375
62
0.630086
451
0.553374
0
0
0
0
0
0
218
0.267485
c8cbd8c6d4128ec1fba81659c9414d125347bfa3
105
py
Python
archive/2021-03-7/results/notebooks/advb_article/get_hmod_sample.py
CambridgeSemiticsLab/BH_time_collocations
2d1864b6e9cd26624c769ee1e970d69d19da7fbf
[ "CC-BY-4.0" ]
5
2019-06-19T19:42:21.000Z
2021-04-20T22:43:45.000Z
archive/2021-03-7/results/notebooks/advb_article/get_hmod_sample.py
CambridgeSemiticsLab/BHTenseAndAspect
2d1864b6e9cd26624c769ee1e970d69d19da7fbf
[ "CC-BY-4.0" ]
2
2020-02-25T10:19:40.000Z
2020-03-13T15:29:01.000Z
archive/2021-03-7/results/notebooks/advb_article/get_hmod_sample.py
CambridgeSemiticsLab/BHTenseAndAspect
2d1864b6e9cd26624c769ee1e970d69d19da7fbf
[ "CC-BY-4.0" ]
null
null
null
from __main__ import * hm_df = functs_df[~((functs_df.head_type == 'prep') & (functs_df.suffix))].copy()
35
81
0.695238
0
0
0
0
0
0
0
0
6
0.057143
c8cc6707f00bfb68eb5be0a694507e862c881eb3
1,123
py
Python
autodc/components/hpo_optimizer/hpo_optimizer_builder.py
dingdian110/AutoDC
f5ccca6bea993bcff3e804fb859e8b25ae020b5c
[ "MIT" ]
null
null
null
autodc/components/hpo_optimizer/hpo_optimizer_builder.py
dingdian110/AutoDC
f5ccca6bea993bcff3e804fb859e8b25ae020b5c
[ "MIT" ]
null
null
null
autodc/components/hpo_optimizer/hpo_optimizer_builder.py
dingdian110/AutoDC
f5ccca6bea993bcff3e804fb859e8b25ae020b5c
[ "MIT" ]
null
null
null
from autodc.components.hpo_optimizer.smac_optimizer import SMACOptimizer from autodc.components.hpo_optimizer.mfse_optimizer import MfseOptimizer from autodc.components.hpo_optimizer.bohb_optimizer import BohbOptimizer from autodc.components.hpo_optimizer.tpe_optimizer import TPEOptimizer def build_hpo_optimizer(eval...
46.791667
86
0.688335
0
0
0
0
0
0
0
0
71
0.063224
c8ccf268808a95f71f44af0d1f8a0dcac8ac8aa6
835
py
Python
record_voice.py
y1255018/voice-printer
cea33ae978a0709346bdbaf009f4fa07a97c7463
[ "MIT" ]
null
null
null
record_voice.py
y1255018/voice-printer
cea33ae978a0709346bdbaf009f4fa07a97c7463
[ "MIT" ]
1
2020-05-10T12:57:46.000Z
2020-05-10T12:59:27.000Z
record_voice.py
y1255018/voice-printer
cea33ae978a0709346bdbaf009f4fa07a97c7463
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys, select, termios,tty import os def getKey(): fd = sys.stdin.fileno() old = termios.tcgetattr(fd) new = termios.tcgetattr(fd) new[3] &= ~termios.ICANON new[3] &= ~termios.ECHO try: termios.tcsetattr(fd, termios.TCSANOW, new) ch = sys.stdin.read(1) finally: ...
19.880952
50
0.568862
0
0
0
0
0
0
0
0
151
0.179548
c8cd1764a3562bbf6dce2fed67c34407e35a1349
1,516
py
Python
findpeak.py
BartMassey/pdx-cs-sound
52f671f155f71eb75a635d9b125f9324889dd329
[ "MIT" ]
null
null
null
findpeak.py
BartMassey/pdx-cs-sound
52f671f155f71eb75a635d9b125f9324889dd329
[ "MIT" ]
null
null
null
findpeak.py
BartMassey/pdx-cs-sound
52f671f155f71eb75a635d9b125f9324889dd329
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Copyright (c) 2019 Bart Massey # [This program is licensed under the "MIT License"] # Please see the file LICENSE in the source # distribution of this software for license terms. # Find maximum and minimum sample in an audio file. import sys import wave as wav # Get the signal file. wavfile = wa...
25.694915
56
0.638522
0
0
0
0
0
0
0
0
534
0.352243
c8ce16cc98ba530c9d0d89640e062797670ba6af
275
py
Python
thywill_apps/src/thywill_apps/test/proof_of_concept/__init__.py
exratione/thywill-python
2078d6f6fc12034eac60a7cc30bf2bc0d27a8732
[ "MIT" ]
1
2015-04-26T19:49:35.000Z
2015-04-26T19:49:35.000Z
thywill_apps/src/thywill_apps/test/proof_of_concept/__init__.py
exratione/thywill-python
2078d6f6fc12034eac60a7cc30bf2bc0d27a8732
[ "MIT" ]
null
null
null
thywill_apps/src/thywill_apps/test/proof_of_concept/__init__.py
exratione/thywill-python
2078d6f6fc12034eac60a7cc30bf2bc0d27a8732
[ "MIT" ]
null
null
null
''' A very simple test application to exercise a round trip of messages through the thywill system. This also illustrates the bare, bare minimum implementation of the 'thywill_interface.py' module - all it does is echo back incoming messages to the client who sent them. '''
45.833333
98
0.789091
0
0
0
0
0
0
0
0
275
1
c8ce9069c002bb7867b82767bde341a14df75d08
104
py
Python
integration/tests/error_assert_variable.py
youhavethewrong/hurl
91cc14882a5f1ef7fa86be09a9f5581cef680559
[ "Apache-2.0" ]
1,013
2020-08-27T12:38:48.000Z
2022-03-31T23:12:23.000Z
integration/tests/error_assert_variable.py
youhavethewrong/hurl
91cc14882a5f1ef7fa86be09a9f5581cef680559
[ "Apache-2.0" ]
217
2020-08-31T11:18:10.000Z
2022-03-30T17:50:30.000Z
integration/tests/error_assert_variable.py
youhavethewrong/hurl
91cc14882a5f1ef7fa86be09a9f5581cef680559
[ "Apache-2.0" ]
54
2020-09-02T09:41:06.000Z
2022-03-19T15:33:05.000Z
from tests import app @app.route("/error-assert-variable") def error_assert_variable(): return ''
14.857143
36
0.721154
0
0
0
0
79
0.759615
0
0
26
0.25
c8d09ce36295ecfe93aeeecfaa8a003ce925b428
6,979
py
Python
src/jk_sysinfo/get_proc_cpu_info.py
jkpubsrc/python-module-jk-sysinfo
583c9e5d10f64a722ffa794d081aaf94354ba4fb
[ "Apache-1.1" ]
null
null
null
src/jk_sysinfo/get_proc_cpu_info.py
jkpubsrc/python-module-jk-sysinfo
583c9e5d10f64a722ffa794d081aaf94354ba4fb
[ "Apache-1.1" ]
null
null
null
src/jk_sysinfo/get_proc_cpu_info.py
jkpubsrc/python-module-jk-sysinfo
583c9e5d10f64a722ffa794d081aaf94354ba4fb
[ "Apache-1.1" ]
null
null
null
import typing from jk_cachefunccalls import cacheCalls from jk_cmdoutputparsinghelper import ValueParser_ByteWithUnit from .parsing_utils import * from .invoke_utils import run #import jk_json _parserColonKVP = ParseAtFirstDelimiter(delimiter=":", valueCanBeWrappedInDoubleQuotes=False, keysReplaceSpacesWithUnders...
29.572034
612
0.71271
0
0
0
0
208
0.029804
0
0
5,230
0.749391
c8d14c78402ef6d14f3e0943706f524623b640ce
900
py
Python
src/telegram/telegram.py
timepieces141/refactored-telegram
02dce4b1273afb5fd8b80cbdc64a560dc75dbeec
[ "MIT" ]
null
null
null
src/telegram/telegram.py
timepieces141/refactored-telegram
02dce4b1273afb5fd8b80cbdc64a560dc75dbeec
[ "MIT" ]
null
null
null
src/telegram/telegram.py
timepieces141/refactored-telegram
02dce4b1273afb5fd8b80cbdc64a560dc75dbeec
[ "MIT" ]
null
null
null
''' This module provides the Telegram. ''' class Telegram: ''' Telegram encapsulates the pieces and parts of a telegram. ''' def __init__(self, sender, recipient, message): ''' Constructs a Telegram instance. :param sender: The sender of the telegram :param recipi...
20.930233
61
0.564444
854
0.948889
0
0
368
0.408889
0
0
486
0.54
c8d1af14aa978ccc8ecf4f4ebec0ffa36d951d1c
345
py
Python
test/test_report.py
aymatveev/testing_framework
3e522d23b46ddb27b3b389210c244aaee5c3370e
[ "MIT" ]
null
null
null
test/test_report.py
aymatveev/testing_framework
3e522d23b46ddb27b3b389210c244aaee5c3370e
[ "MIT" ]
null
null
null
test/test_report.py
aymatveev/testing_framework
3e522d23b46ddb27b3b389210c244aaee5c3370e
[ "MIT" ]
null
null
null
from testing_framework.report import report from typing import Tuple import html def test_report(): result = report(("test_report", "second line")) expected_result = f""" <!DOCTYPE html> <html> <body> <div>test_report</div><div>second line</div> </body> </html> """ assert html.escape(expected_resul...
23
62
0.695652
0
0
0
0
0
0
0
0
133
0.385507
c8d1c681c7ce88bcb176a7a0b8c693c830a7bc65
160
py
Python
Python/mixedfractions/mixedfractions.py
rvrheenen/OpenKattis
7fd59fcb54e86cdf10f56c580c218c62e584f391
[ "MIT" ]
12
2016-10-03T20:43:43.000Z
2021-06-12T17:18:42.000Z
Python/mixedfractions/mixedfractions.py
rvrheenen/OpenKattis
7fd59fcb54e86cdf10f56c580c218c62e584f391
[ "MIT" ]
null
null
null
Python/mixedfractions/mixedfractions.py
rvrheenen/OpenKattis
7fd59fcb54e86cdf10f56c580c218c62e584f391
[ "MIT" ]
10
2017-11-14T19:56:37.000Z
2021-02-02T07:39:57.000Z
while(True): inp = [int(x) for x in input().split()] if inp[0] == 0 and inp[1] == 0: break print(inp[0]//inp[1], inp[0]%inp[1], "/", inp[1])
32
53
0.48125
0
0
0
0
0
0
0
0
3
0.01875
c8d23bd00fcfedf98199c38fb1e64ea94cbde637
4,480
py
Python
qr_rover_lost_comms/src/qr_rover_lost_comms/qr_rover_lost_comms.py
QuantumRoboticsURC/qrteam
bb28f4ad82eab6fb0706be13f8571e0b3261641e
[ "MIT" ]
null
null
null
qr_rover_lost_comms/src/qr_rover_lost_comms/qr_rover_lost_comms.py
QuantumRoboticsURC/qrteam
bb28f4ad82eab6fb0706be13f8571e0b3261641e
[ "MIT" ]
null
null
null
qr_rover_lost_comms/src/qr_rover_lost_comms/qr_rover_lost_comms.py
QuantumRoboticsURC/qrteam
bb28f4ad82eab6fb0706be13f8571e0b3261641e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import time import rospy import subprocess import actionlib from std_msgs.msg import Float32 from sensor_msgs.msg import Joy from geometry_msgs.msg import Twist, PoseWithCovarianceStamped from actionlib_msgs.msg import GoalStatus, GoalStatusArray from move_base_msgs.msg import MoveBase...
39.646018
99
0.59375
3,320
0.741071
0
0
0
0
0
0
615
0.137277
c8d264727c0faf5a872f18da939f483862ce785c
108
py
Python
backend/application/contracts/schemas/__init__.py
uesleicarvalhoo/Ecommerce
1d8d0f0c522dcd27fd90e315989b6fa93caf62b8
[ "MIT" ]
null
null
null
backend/application/contracts/schemas/__init__.py
uesleicarvalhoo/Ecommerce
1d8d0f0c522dcd27fd90e315989b6fa93caf62b8
[ "MIT" ]
null
null
null
backend/application/contracts/schemas/__init__.py
uesleicarvalhoo/Ecommerce
1d8d0f0c522dcd27fd90e315989b6fa93caf62b8
[ "MIT" ]
null
null
null
from backend.domain.contracts import NewClient, NewOrder, NewOrderItem from .new_product import NewProduct
27
70
0.851852
0
0
0
0
0
0
0
0
0
0
c8d5d6f27303f0d53ce075025843560499c32f81
508
py
Python
backend/swagger_server/helpers/_add_audit_entry.py
Lend88/libresign
9537f39a696fa5f3433052406329d77d528b6cf9
[ "MIT" ]
6
2019-01-29T05:58:37.000Z
2021-11-02T22:47:02.000Z
backend/swagger_server/helpers/_add_audit_entry.py
Lend88/libresign
9537f39a696fa5f3433052406329d77d528b6cf9
[ "MIT" ]
9
2020-09-09T04:53:01.000Z
2022-03-08T22:52:18.000Z
backend/swagger_server/helpers/_add_audit_entry.py
Lend88/libresign
9537f39a696fa5f3433052406329d77d528b6cf9
[ "MIT" ]
4
2019-01-29T07:38:55.000Z
2021-10-16T21:06:42.000Z
from uuid import UUID import json from ..mappings import * def add_doc_audit_entry(session, doc_id, status, data): """"Add an audit entry, requires that a commit be run on the session afterwards """ if not isinstance(doc_id, UUID): raise ValueError("Expecting UUID") if not isinstanc...
22.086957
55
0.65748
0
0
0
0
0
0
0
0
127
0.25
c8d758a027414f97b213413022804a7b0f68fe28
523
py
Python
version.py
Jin-Tao-208/web_science_coursework
bb4ab2226b70e7b0f7bbef40ceb002900e757a31
[ "MIT" ]
null
null
null
version.py
Jin-Tao-208/web_science_coursework
bb4ab2226b70e7b0f7bbef40ceb002900e757a31
[ "MIT" ]
null
null
null
version.py
Jin-Tao-208/web_science_coursework
bb4ab2226b70e7b0f7bbef40ceb002900e757a31
[ "MIT" ]
null
null
null
# versions of libraries used import sys import tweepy import numpy as np import pymongo import emoji import nltk.tokenize import requests print("Python version:{}".format(sys.version)) print("tweepy version:{}".format(tweepy.__version__)) print("pymongo version:{}".format(pymongo.__version__)) print("emoji...
29.055556
58
0.745698
0
0
0
0
0
0
0
0
161
0.307839
c8d9772ef30de66f59d67a0dc784ccc67d52e59f
94
py
Python
python3/binary.py
eiadshahtout/Python
b2406b0806bc55a9d8f5482a304a8d6968249018
[ "MIT" ]
null
null
null
python3/binary.py
eiadshahtout/Python
b2406b0806bc55a9d8f5482a304a8d6968249018
[ "MIT" ]
null
null
null
python3/binary.py
eiadshahtout/Python
b2406b0806bc55a9d8f5482a304a8d6968249018
[ "MIT" ]
null
null
null
def count_ones(num): binary = str(bin(num))[2:] print(binary) return binary count_ones(20)
15.666667
27
0.712766
0
0
0
0
0
0
0
0
0
0
c8d9edb95baf53d14122148e741bd4d9e71e6992
6,968
py
Python
adaboost.py
xxxzhi/AdaBoostClassifier
e5161cad03bdeb1c353b1c06dc32752a34c160d3
[ "Apache-2.0" ]
1
2019-03-15T03:10:08.000Z
2019-03-15T03:10:08.000Z
adaboost.py
xxxzhi/AdaBoostClassifier
e5161cad03bdeb1c353b1c06dc32752a34c160d3
[ "Apache-2.0" ]
null
null
null
adaboost.py
xxxzhi/AdaBoostClassifier
e5161cad03bdeb1c353b1c06dc32752a34c160d3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import dbm from sklearn.datasets import load_iris from classifer.base import BaseClassifier from classifer.decision_tree import DecisionTreeClassifier import numpy as np class AbsAdaBoostClassifier(BaseClassifier): def __init__(self, num_rounds): super(AbsAdaB...
28.325203
104
0.550373
5,023
0.720867
0
0
286
0.041045
0
0
1,118
0.160448
c8da9080a11e6c113c5b2a18202d6e7d74fba286
4,942
py
Python
bioinfo/assembly/overlap.py
sohyongsheng/sequence_assembly
f2dea763da447f09f49de8fbf3ceaad8ed3e0559
[ "MIT" ]
1
2022-02-02T07:49:58.000Z
2022-02-02T07:49:58.000Z
bioinfo/assembly/overlap.py
sohyongsheng/sequence_assembly
f2dea763da447f09f49de8fbf3ceaad8ed3e0559
[ "MIT" ]
null
null
null
bioinfo/assembly/overlap.py
sohyongsheng/sequence_assembly
f2dea763da447f09f49de8fbf3ceaad8ed3e0559
[ "MIT" ]
null
null
null
import numpy as np from bioinfo.assembly.errors import InvalidPair from bioinfo.molecules.sequence import Sequence class LargestOverlapFinder: def __init__(self): pass # Get indices a, b, c, d of longest substrings first, # such that substring == first[a: b] == second[c: d]. # Also returns le...
31.679487
68
0.474909
4,820
0.975314
397
0.080332
0
0
0
0
776
0.157021
c8dab9e9589a6e0d7ec3775c63cd68cd42f91ee4
857
py
Python
models/operations.py
NikolayXHD/tinkoff-api-python
4a4b71f7af1d752b8566299c058b712b513fa92f
[ "MIT" ]
null
null
null
models/operations.py
NikolayXHD/tinkoff-api-python
4a4b71f7af1d752b8566299c058b712b513fa92f
[ "MIT" ]
null
null
null
models/operations.py
NikolayXHD/tinkoff-api-python
4a4b71f7af1d752b8566299c058b712b513fa92f
[ "MIT" ]
null
null
null
from __future__ import annotations from . import _base class Operations(_base.Model): swagger_types: dict[str, str] = {'operations': 'list[Operation]'} attribute_map: dict[str, str] = {'operations': 'operations'} def __init__(self, operations=None): self._operations = None self.discrimi...
25.205882
69
0.611435
798
0.931155
0
0
475
0.554259
0
0
256
0.298716
c8dad2fb3e34935d8ee2d55f042a5e204873fdf4
187
py
Python
tests/IT/fixtures/test_fixture_nested.py
testandconquer/pytest-conquer
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
[ "MIT" ]
null
null
null
tests/IT/fixtures/test_fixture_nested.py
testandconquer/pytest-conquer
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
[ "MIT" ]
5
2018-12-27T02:52:01.000Z
2019-01-02T01:52:55.000Z
tests/IT/fixtures/test_fixture_nested.py
testandconquer/pytest-conquer
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def fixture1(): return 1 @pytest.fixture def fixture2(fixture1): return fixture1 + 1 def test_with_fixture(fixture2): assert fixture2 == 2
11.6875
32
0.71123
0
0
0
0
107
0.572193
0
0
0
0
c8dbf09302e48945dea0b1250add3f9a59269652
827
py
Python
app/api/utils/remoteImageMapper.py
nurely/lxdui
8cb31dc1117719b140f440f8a705282781db7b35
[ "Apache-2.0" ]
589
2017-10-22T04:11:08.000Z
2022-03-26T22:50:30.000Z
app/api/utils/remoteImageMapper.py
nurely/lxdui
8cb31dc1117719b140f440f8a705282781db7b35
[ "Apache-2.0" ]
134
2017-11-14T02:52:03.000Z
2022-03-22T12:51:09.000Z
app/api/utils/remoteImageMapper.py
nurely/lxdui
8cb31dc1117719b140f440f8a705282781db7b35
[ "Apache-2.0" ]
170
2017-10-06T06:22:43.000Z
2022-03-15T02:12:34.000Z
def remoteImagesList(images): response = [] aliasesProcessed = [] aliases = [alias[20:] for alias in images['metadata']] for alias in aliases: strippedAlias = alias.replace('/default','') if strippedAlias not in aliasesProcessed: aliasesDetails = alias.split('/') ...
30.62963
76
0.628779
0
0
0
0
0
0
0
0
66
0.079807
c8e095e4b5a713605e60ac5cfbe8f9beb652c2f1
390
py
Python
search.py
kanttouchthis/clip-search
463c3f2849a6f5ae7ebc6bfe7a932ec82f2ab0c1
[ "MIT" ]
1
2021-10-12T12:15:00.000Z
2021-10-12T12:15:00.000Z
search.py
kanttouchthis/clip-search
463c3f2849a6f5ae7ebc6bfe7a932ec82f2ab0c1
[ "MIT" ]
null
null
null
search.py
kanttouchthis/clip-search
463c3f2849a6f5ae7ebc6bfe7a932ec82f2ab0c1
[ "MIT" ]
1
2021-11-20T14:51:11.000Z
2021-11-20T14:51:11.000Z
from searcher import CLIPSearcher from utils import get_args if __name__ == "__main__": args = get_args() cs = CLIPSearcher(device=args.device, store_path=args.store_path) cs.load_dir(args.dir, save_every=args.save_every, recursive=args.recursive, load_new=(not args.dont_load_new)) cs.search(texts=args...
43.333333
114
0.769231
0
0
0
0
0
0
0
0
10
0.025641
c8e2a3f8d1524fcc6efb93afc74fa20ef2432c75
2,049
py
Python
gemd/entity/template/has_property_templates.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
7
2020-04-02T11:11:09.000Z
2022-02-05T23:19:51.000Z
gemd/entity/template/has_property_templates.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
24
2020-04-22T16:55:09.000Z
2022-03-30T20:44:39.000Z
gemd/entity/template/has_property_templates.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
3
2020-05-08T00:50:02.000Z
2020-12-19T00:48:56.000Z
"""For entities that have a property template.""" from gemd.entity.link_by_uid import LinkByUID from gemd.entity.setters import validate_list from gemd.entity.template.base_template import BaseTemplate from gemd.entity.template.property_template import PropertyTemplate from gemd.entity.bounds.base_bounds import BaseBou...
32.52381
84
0.625671
1,694
0.826745
0
0
1,245
0.607613
0
0
1,026
0.500732
c8e3e5f641575e46034c6e7d21d6b9a28bd02474
1,547
py
Python
app/main/forms.py
james-muriithi/blog
e653f2fbb3c1e5a873c393b4985cc12d726e451c
[ "Unlicense" ]
null
null
null
app/main/forms.py
james-muriithi/blog
e653f2fbb3c1e5a873c393b4985cc12d726e451c
[ "Unlicense" ]
null
null
null
app/main/forms.py
james-muriithi/blog
e653f2fbb3c1e5a873c393b4985cc12d726e451c
[ "Unlicense" ]
null
null
null
from app.models import Subscriber from flask_wtf import FlaskForm from wtforms import TextAreaField, StringField, IntegerField, EmailField from wtforms.validators import InputRequired, ValidationError from flask import flash class BlogForm(FlaskForm): title = StringField('Title', validators=[InputRequired()]) ...
40.710526
76
0.728507
1,279
0.826761
0
0
0
0
0
0
228
0.147382
c8e4d42dd8ef4d4d14c2794784ca0f4e4747b37c
278
py
Python
miner/config.py
czhang-nbai/swan
03a6ade93d9b8b193bd05bf851779784eb2ffde5
[ "MIT" ]
6
2021-02-19T02:36:06.000Z
2021-03-20T09:38:17.000Z
miner/config.py
czhang-nbai/swan
03a6ade93d9b8b193bd05bf851779784eb2ffde5
[ "MIT" ]
27
2021-01-13T06:43:44.000Z
2021-05-12T04:55:28.000Z
miner/config.py
czhang-nbai/swan
03a6ade93d9b8b193bd05bf851779784eb2ffde5
[ "MIT" ]
7
2021-01-26T04:50:11.000Z
2021-03-04T22:26:59.000Z
import toml def read_config(_config_path=None): if _config_path is None: _config_path = './config.toml' # script_dir = os.path.dirname(__file__) # file_path = os.path.join(script_dir, config_path) _config = toml.load(_config_path) return _config
21.384615
55
0.694245
0
0
0
0
0
0
0
0
106
0.381295
c8e6c52bd4d19fdf314e6096b12ca3b0f03e5a63
3,214
py
Python
godaddy_dns.py
JohnMcSpedon/GoDaddy_DNS_migrator
e7439616f64a446254e4df05db115aaa0206691e
[ "MIT" ]
4
2021-03-01T18:28:34.000Z
2021-03-11T12:20:16.000Z
godaddy_dns.py
JohnMcSpedon/GoDaddy_DNS_migrator
e7439616f64a446254e4df05db115aaa0206691e
[ "MIT" ]
null
null
null
godaddy_dns.py
JohnMcSpedon/GoDaddy_DNS_migrator
e7439616f64a446254e4df05db115aaa0206691e
[ "MIT" ]
null
null
null
""" Retrieve GoDaddy DNS settings via their developer API See also: https://developer.godaddy.com/doc/endpoint/domains#/ """ import os import time from pprint import pprint from typing import List import requests import credential_loaders BASE_URL = "https://api.godaddy.com" # You can easily replace these with...
32.795918
120
0.671749
0
0
0
0
0
0
0
0
1,843
0.573429
c8e80bc7bd958f10a7a1f279ed0d99283b77f722
1,184
py
Python
preprocessing.py
Alloooshe/facelib_modular_face_recognition_pipline
0313214b6f919e49e84235c1a6a4a4838b813e73
[ "MIT" ]
10
2019-12-29T13:38:56.000Z
2021-03-15T07:21:52.000Z
preprocessing.py
Alloooshe/facelib_modular_face_recognition_pipline
0313214b6f919e49e84235c1a6a4a4838b813e73
[ "MIT" ]
1
2021-03-15T07:45:45.000Z
2021-03-17T11:10:53.000Z
preprocessing.py
Alloooshe/facelib_modular_face_recognition_pipline
0313214b6f919e49e84235c1a6a4a4838b813e73
[ "MIT" ]
2
2020-05-03T08:33:39.000Z
2021-02-06T16:49:54.000Z
import cv2 import numpy as np class preprocessing: def process_image(self,image, rescale, recolor): if rescale['req']: image= self.rescale(image,rescale['width'], rescale['height']) if recolor['req']: image = self.rgb2gray(image) return image def rescale (self,image,wid...
28.878049
71
0.579392
1,138
0.961149
0
0
0
0
0
0
25
0.021115
c8e8ef9bc1df23fffd3b87a416935aa12a7c1e19
214
py
Python
app/database/pronto_soccorso.py
nyxgear/PSD-e-service-pronto-soccorso
92eb0586c2cfb12a844a106b71911c80e8e3e57b
[ "MIT" ]
null
null
null
app/database/pronto_soccorso.py
nyxgear/PSD-e-service-pronto-soccorso
92eb0586c2cfb12a844a106b71911c80e8e3e57b
[ "MIT" ]
null
null
null
app/database/pronto_soccorso.py
nyxgear/PSD-e-service-pronto-soccorso
92eb0586c2cfb12a844a106b71911c80e8e3e57b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .tables.pronto_soccorsi import table class ProntoSoccorso: _table = table def __init__(self, ps_dict): # entity dict self.e_d = ps_dict def to_dict(self): return self.e_d
14.266667
41
0.696262
144
0.672897
0
0
0
0
0
0
36
0.168224
c8ea55c5455ae4d69b07f53ce37792d7f4a82837
132
py
Python
3_binary_tree/__init__.py
freshklauser/LeeCodeSummary
d9d776ddfc44fee844123b848d43a78e9ba4117e
[ "MIT" ]
null
null
null
3_binary_tree/__init__.py
freshklauser/LeeCodeSummary
d9d776ddfc44fee844123b848d43a78e9ba4117e
[ "MIT" ]
null
null
null
3_binary_tree/__init__.py
freshklauser/LeeCodeSummary
d9d776ddfc44fee844123b848d43a78e9ba4117e
[ "MIT" ]
1
2021-11-18T01:58:29.000Z
2021-11-18T01:58:29.000Z
# -*- coding: utf-8 -*- # @Author : Administrator # @DateTime : 2021/10/17 20:40 # @FileName : __init__.py # @SoftWare : PyCharm
18.857143
30
0.621212
0
0
0
0
0
0
0
0
126
0.954545
c8ebd9a417dcbfc90f2665cef2e143f107c15986
497
py
Python
covid_19_stat.py
pavelkalinchuk/api
3b2eccbb09b012ac2c841dd30c44a285a8f5bdc2
[ "Apache-2.0" ]
null
null
null
covid_19_stat.py
pavelkalinchuk/api
3b2eccbb09b012ac2c841dd30c44a285a8f5bdc2
[ "Apache-2.0" ]
null
null
null
covid_19_stat.py
pavelkalinchuk/api
3b2eccbb09b012ac2c841dd30c44a285a8f5bdc2
[ "Apache-2.0" ]
null
null
null
import requests from datetime import date, timedelta today = date.today() yesterday = today - timedelta(days=1) country = "Russia" endpoint = f"https://api.covid19api.com/country/{country}/status/confirmed" params = {"from": str(yesterday), "to": str(today)} response = requests.get(endpoint, params=params).json() tot...
29.235294
76
0.724346
0
0
0
0
0
0
0
0
158
0.317907
c8ec940438930475725da4b1624b8e42cb723947
157
py
Python
core/models/__init__.py
Brain-Engine/ImageNet
893a8008e0e8e373bc66a7cbb40813db8495426a
[ "Apache-2.0" ]
1
2021-05-17T11:49:12.000Z
2021-05-17T11:49:12.000Z
core/models/__init__.py
Brain-Engine/ImageNet
893a8008e0e8e373bc66a7cbb40813db8495426a
[ "Apache-2.0" ]
null
null
null
core/models/__init__.py
Brain-Engine/ImageNet
893a8008e0e8e373bc66a7cbb40813db8495426a
[ "Apache-2.0" ]
1
2021-05-17T11:49:22.000Z
2021-05-17T11:49:22.000Z
# import models from torchvision from torchvision.models import * # import models from efficientnet from .efficientnet import b0, b1, b2, b3, b4, b5, b6, b7
31.4
56
0.764331
0
0
0
0
0
0
0
0
65
0.414013
c8ee532a04ed15373dc8d2091c28d0c7dca10643
2,834
py
Python
MPI/py/plot_mpi_timing.py
mlxd/myscripts
b8b7d6b270ef24b06028e21f066c2bb587f94cef
[ "MIT" ]
null
null
null
MPI/py/plot_mpi_timing.py
mlxd/myscripts
b8b7d6b270ef24b06028e21f066c2bb587f94cef
[ "MIT" ]
null
null
null
MPI/py/plot_mpi_timing.py
mlxd/myscripts
b8b7d6b270ef24b06028e21f066c2bb587f94cef
[ "MIT" ]
null
null
null
#This file plots the results from the MPI timing runs import sys import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import matplotlib.markers as mkr plt_style='ggplot' plt.rcParams['font.size'] = 11 plt.rcParams['font.family'] = 'serif' plt.rcParams['axes.labelsize'] = 11 plt.rc...
38.821918
155
0.61856
0
0
0
0
0
0
0
0
960
0.338744
c8efd5f50e23a88b242e0e5832ddd548e4a5108c
1,809
py
Python
src/entitykb/pipeline/filterers.py
genomoncology/entitykb
61cf346a24f52fd8c1edea8827a816284ed6ecaf
[ "MIT" ]
25
2020-06-30T16:46:43.000Z
2022-01-04T15:27:49.000Z
src/entitykb/pipeline/filterers.py
genomoncology/entitykb
61cf346a24f52fd8c1edea8827a816284ed6ecaf
[ "MIT" ]
3
2020-11-25T15:09:33.000Z
2021-05-08T11:25:14.000Z
src/entitykb/pipeline/filterers.py
genomoncology/entitykb
61cf346a24f52fd8c1edea8827a816284ed6ecaf
[ "MIT" ]
2
2021-06-17T11:21:49.000Z
2021-12-02T13:07:15.000Z
from typing import Iterator from entitykb import Span, interfaces, Doc class KeepExactNameOnly(interfaces.IFilterer): """ Only keep spans that are an exact match. """ def is_keep(self, span: Span): return span.name == span.text class RemoveInexactSynonyms(interfaces.IFilterer): """ Remove if n...
27.409091
73
0.63571
1,722
0.951907
0
0
184
0.101714
0
0
239
0.132117
c8effc674c65f81f1f4c9fdac1c750120b3d16ef
716
py
Python
octavia-cli/unit_tests/test_entrypoint.py
pluralsh/airbyte
9b1ed03fe482f5154f6c1843b1be76de87f3605d
[ "MIT" ]
1
2022-01-27T22:29:38.000Z
2022-01-27T22:29:38.000Z
octavia-cli/unit_tests/test_entrypoint.py
pluralsh/airbyte
9b1ed03fe482f5154f6c1843b1be76de87f3605d
[ "MIT" ]
null
null
null
octavia-cli/unit_tests/test_entrypoint.py
pluralsh/airbyte
9b1ed03fe482f5154f6c1843b1be76de87f3605d
[ "MIT" ]
null
null
null
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import pytest from click.testing import CliRunner from octavia_cli import entrypoint def test_octavia(): runner = CliRunner() result = runner.invoke(entrypoint.octavia) assert result.exit_code == 0 assert result.output.startswith("Usage: oc...
27.538462
116
0.734637
0
0
0
0
357
0.498603
0
0
135
0.188547
c8f2a4e3254c600092c6d8f19d958953e7b804a3
5,261
py
Python
src/device/eltako/fsr61_actor.py
rosenloecher-it/enocean-mqtt-bridge
d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c
[ "MIT" ]
1
2020-12-01T17:10:14.000Z
2020-12-01T17:10:14.000Z
src/device/eltako/fsr61_actor.py
rosenloecher-it/enocean-mqtt-bridge
d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c
[ "MIT" ]
1
2021-09-19T13:38:02.000Z
2021-09-19T13:38:02.000Z
src/device/eltako/fsr61_actor.py
rosenloecher-it/enocean-mqtt-bridge
d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c
[ "MIT" ]
null
null
null
import json import logging import random from datetime import datetime from typing import Optional from paho.mqtt.client import MQTTMessage from enocean.protocol.constants import PACKET from enocean.protocol.packet import RadioPacket from src.command.switch_command import SwitchCommand from src.common.json_attributes...
40.469231
117
0.698536
4,443
0.844516
0
0
150
0.028512
0
0
463
0.088006
c8f361858524234ea8e385c43bd790d28e9507fd
1,960
py
Python
neuroml/arraymorph_load_time_benchmark.py
NeuralEnsemble/libNeuroML
75d1630a0c6354a3997c4068dc8cdc447491b6f8
[ "BSD-3-Clause" ]
20
2015-03-11T11:21:32.000Z
2021-10-11T16:03:27.000Z
neuroml/arraymorph_load_time_benchmark.py
NeuralEnsemble/libNeuroML
75d1630a0c6354a3997c4068dc8cdc447491b6f8
[ "BSD-3-Clause" ]
48
2015-01-15T18:41:01.000Z
2022-01-05T13:53:58.000Z
neuroml/arraymorph_load_time_benchmark.py
NeuralEnsemble/libNeuroML
75d1630a0c6354a3997c4068dc8cdc447491b6f8
[ "BSD-3-Clause" ]
16
2015-01-14T21:53:46.000Z
2019-09-04T23:05:27.000Z
import numpy as np import neuroml import neuroml.arraymorph as am class Benchmark: def __init__(self, num_segments): self.num_segments = num_segments def set_up(self): num_segments = int(1e4) # Per cell num_vertices = num_segments + 1 x = np.linspace(0, 10, num_vertices) ...
31.612903
67
0.656122
1,891
0.964796
0
0
0
0
0
0
66
0.033673
c8f400891a861906013fd78e255d4aff2e9b28fa
5,840
py
Python
extractexamples.py
afcarl/contra
a82d14342b242cba7a8298d54aa0dabd9d77269d
[ "0BSD" ]
1
2019-04-22T16:56:07.000Z
2019-04-22T16:56:07.000Z
extractexamples.py
afcarl/contra
a82d14342b242cba7a8298d54aa0dabd9d77269d
[ "0BSD" ]
null
null
null
extractexamples.py
afcarl/contra
a82d14342b242cba7a8298d54aa0dabd9d77269d
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # Extracts examples of given strings with context in a TAB-separated # field format from given text documents. from __future__ import with_statement import sys import re from os import path options = None def argparser(): import argparse ap=argparse.ArgumentParser(description="Extract...
37.677419
175
0.55976
0
0
0
0
0
0
0
0
1,715
0.293664
c8f61ba84ff26314734e24f05cd833da5e3ee801
2,813
py
Python
pymtl/tools/translation/verilog_bug_test.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
206
2015-01-05T21:53:56.000Z
2022-03-14T08:04:49.000Z
pymtl/tools/translation/verilog_bug_test.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
84
2015-01-25T19:57:33.000Z
2021-05-11T15:46:56.000Z
pymtl/tools/translation/verilog_bug_test.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
99
2015-02-17T17:43:44.000Z
2022-02-14T17:58:18.000Z
#======================================================================= # verilog_bug_test.py #======================================================================= import pytest from pymtl import * from exceptions import VerilatorCompileError pytestmark = requires_verilator #-------------------------------...
29
72
0.460363
974
0.34625
0
0
1,333
0.473871
0
0
1,079
0.383576
c8f667d55a6083981558407ab139318c270d5ca3
436
py
Python
library/TraverseDirectory-M2.py
remytanx/python3-created-in-github
83b3dd0f36da6fc4df7c1cc37cac12f178f985a3
[ "MIT" ]
null
null
null
library/TraverseDirectory-M2.py
remytanx/python3-created-in-github
83b3dd0f36da6fc4df7c1cc37cac12f178f985a3
[ "MIT" ]
null
null
null
library/TraverseDirectory-M2.py
remytanx/python3-created-in-github
83b3dd0f36da6fc4df7c1cc37cac12f178f985a3
[ "MIT" ]
null
null
null
import os # Get the list of all files with a specific extension # In this example, we will take a path of a directory and try to # list all the files, with a specific extension .py here, # in the directory and its sub-directories recursively. path = r'C:\Users\10900225\Documents\Witch\BTX\Workspaces\Library' for r...
33.538462
66
0.733945
0
0
0
0
0
0
0
0
295
0.676606
c8f71840564fdc1ff2e1787b21b4d5173407d801
1,509
py
Python
Modules/carlosma7/wizard/create_appointment.py
Carlosma7/Odoo
c234fcc18d15d4d8369e237286bee610fd76ceee
[ "CC0-1.0" ]
null
null
null
Modules/carlosma7/wizard/create_appointment.py
Carlosma7/Odoo
c234fcc18d15d4d8369e237286bee610fd76ceee
[ "CC0-1.0" ]
null
null
null
Modules/carlosma7/wizard/create_appointment.py
Carlosma7/Odoo
c234fcc18d15d4d8369e237286bee610fd76ceee
[ "CC0-1.0" ]
null
null
null
#-*- coding: utf-8-*- from odoo import api, fields, models, _ # Wizard class class CreateAppointmentWizard(models.TransientModel): _name = "create.appointment.wizard" _description = "Create Appointment Wizard" date_appointment = fields.Date(string='Date', required=False) patient_id = fields.Many2one('hospital.pa...
29.019231
97
0.686547
1,430
0.947647
0
0
0
0
0
0
876
0.580517
c8f838e818d81e237d9d5d8fa11595a921a6fae3
4,731
py
Python
groups.py
davidmehren/udm_group_matrix
ae71feef4bf299588aa473c95e9073c7d2f5f23e
[ "MIT" ]
null
null
null
groups.py
davidmehren/udm_group_matrix
ae71feef4bf299588aa473c95e9073c7d2f5f23e
[ "MIT" ]
null
null
null
groups.py
davidmehren/udm_group_matrix
ae71feef4bf299588aa473c95e9073c7d2f5f23e
[ "MIT" ]
1
2019-12-06T14:59:39.000Z
2019-12-06T14:59:39.000Z
#!/bin/env python3 import re from typing import List import numpy as np import matplotlib.pyplot as plt filtered_users = ["join-backup", "join-slave", "ucs-sso"] filtered_groups = ["computers", "dc backup hosts", "dc slave hosts"] class LDAPUser: name: str def __init__(self, name): self.name = name ...
31.125
106
0.581484
2,375
0.502008
0
0
0
0
0
0
495
0.104629
c8f87a26e0ea3211d6cafee5a76cf221fb9382c8
107,098
py
Python
src/dbobjects.py
211tbc/synthesis
55b4dcb85b7a2ed5fbc46b1740c8ca0ab80248a4
[ "Unlicense" ]
null
null
null
src/dbobjects.py
211tbc/synthesis
55b4dcb85b7a2ed5fbc46b1740c8ca0ab80248a4
[ "Unlicense" ]
7
2016-08-12T15:12:43.000Z
2020-06-07T03:19:13.000Z
src/dbobjects.py
211tbc/synthesis
55b4dcb85b7a2ed5fbc46b1740c8ca0ab80248a4
[ "Unlicense" ]
null
null
null
from sqlalchemy import create_engine, Column, Integer, BigInteger, String, Boolean, MetaData, ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, relationship from sqlalchemy.types import DateTime, Date, Interval from sqlalchemy.pool import NullPool from .conf imp...
49.789865
176
0.757755
104,305
0.973921
0
0
0
0
0
0
8,931
0.083391
c8f8cdcd902d01952d5a7b8a680f7b6b5e1cd1d5
3,154
py
Python
ImageAnalysis/ImageAnalysis/python/references/bead-designer-test/beads.py
mikebourbeauart/PerlerPrinter
8c5023de6bb9b3cbe2bc28c1c823030dfd708db4
[ "MIT" ]
null
null
null
ImageAnalysis/ImageAnalysis/python/references/bead-designer-test/beads.py
mikebourbeauart/PerlerPrinter
8c5023de6bb9b3cbe2bc28c1c823030dfd708db4
[ "MIT" ]
2
2021-09-07T23:43:53.000Z
2022-01-13T00:39:55.000Z
ImageAnalysis/ImageAnalysis/python/references/bead-designer-test/beads.py
mikebourbeauart/PerlerPrinter
8c5023de6bb9b3cbe2bc28c1c823030dfd708db4
[ "MIT" ]
1
2019-10-21T17:12:07.000Z
2019-10-21T17:12:07.000Z
import Image from ImageColor import getrgb from reportlab.pdfgen import canvas from reportlab.lib.units import mm from reportlab.lib.pagesizes import A4 import uuid BEAD_RADIUS = 1.75*mm BEAD_THICKNESS = 1*mm BOARD_SPACING = 4.85*mm BOARD_BORDER = 4*mm #A4 60x43 = 2580 #A3 86x60 = 5160 #A2 86x120 = 10,320 #MARQUEE A4...
28.414414
84
0.616677
1,156
0.366519
0
0
0
0
0
0
617
0.195625
c8f8f117d6dace7d4b6c578a60f491f9e6393f0d
1,836
py
Python
common_tools/report_dialog.py
jamiecook/AequilibraE
b1013d59cbeaf6fc4e1a944cf31f20460a2a4156
[ "MIT" ]
null
null
null
common_tools/report_dialog.py
jamiecook/AequilibraE
b1013d59cbeaf6fc4e1a944cf31f20460a2a4156
[ "MIT" ]
null
null
null
common_tools/report_dialog.py
jamiecook/AequilibraE
b1013d59cbeaf6fc4e1a944cf31f20460a2a4156
[ "MIT" ]
null
null
null
""" ----------------------------------------------------------------------------------------------------------- Package: AequilibraE Name: Report dialog Purpose: Dialog for showing the report from algorithm runs Original Author: Pedro Camargo (c@margo.co) Contributors: Last edited by: Pedro Camarg...
30.6
108
0.56427
946
0.515251
0
0
0
0
0
0
706
0.384532
c8f9b47386e455dd9e70d1f591e4c141b1b8e828
21,580
py
Python
gui/robot_data_visualizer.py
wh1210/robot-data-visualizer
ebb59687233a8d09c8ed327c66ed1d69c4623136
[ "MIT" ]
null
null
null
gui/robot_data_visualizer.py
wh1210/robot-data-visualizer
ebb59687233a8d09c8ed327c66ed1d69c4623136
[ "MIT" ]
13
2018-11-20T22:55:39.000Z
2022-03-11T23:36:18.000Z
gui/robot_data_visualizer.py
wh1210/robot-data-visualizer
ebb59687233a8d09c8ed327c66ed1d69c4623136
[ "MIT" ]
2
2018-11-09T01:48:07.000Z
2018-12-29T23:10:53.000Z
import os import sys sys.path.append('.') sys.path.append('..') import warnings warnings.filterwarnings("ignore") from datetime import datetime import matplotlib matplotlib.use("TkAgg") import matplotlib.lines as lines import matplotlib.image as mpimg from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg f...
34.091627
117
0.580445
20,885
0.967794
0
0
0
0
0
0
6,058
0.280723
c8fa3bb594a67f398ad5e9f8e305ca9da2fda5ed
1,780
py
Python
day10/day10.py
BroderickCarlin/AdventOfCode
52d12d16f3d291a51984e6d85dbe97e604abc005
[ "MIT" ]
null
null
null
day10/day10.py
BroderickCarlin/AdventOfCode
52d12d16f3d291a51984e6d85dbe97e604abc005
[ "MIT" ]
null
null
null
day10/day10.py
BroderickCarlin/AdventOfCode
52d12d16f3d291a51984e6d85dbe97e604abc005
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- lengths = "187,254,0,81,169,219,1,190,19,102,255,56,46,32,2,216" suffix = [17, 31, 73, 47, 23] num_rounds = 64 def puzzle1(): knot = range(256) skip_size = 0 idx1 = 0 for l in [int(a) for a in lengths.split(",")]: idx2 = idx1 + l k = [] ...
24.383562
64
0.455056
0
0
0
0
0
0
0
0
134
0.075281
c8fc7cc35ebc665797970c840fc5d039b1988b5c
1,914
py
Python
17tensorflow/tf2/2my_model.py
cheerfulwang/python-tutorial
d0f7348e1da4ff954e3add66e1aae55d599283ee
[ "Apache-2.0" ]
2
2021-01-04T10:44:44.000Z
2022-02-13T07:53:41.000Z
17tensorflow/tf2/2my_model.py
zm79287/python-tutorial
d0f7348e1da4ff954e3add66e1aae55d599283ee
[ "Apache-2.0" ]
null
null
null
17tensorflow/tf2/2my_model.py
zm79287/python-tutorial
d0f7348e1da4ff954e3add66e1aae55d599283ee
[ "Apache-2.0" ]
2
2020-11-23T08:58:51.000Z
2022-02-13T07:53:42.000Z
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import tensorflow as tf import tensorflow.keras as keras import tensorflow.keras.layers as layers # 超参 num_words = 2000 num_tags = 12 num_departments = 4 # 输入 body_input = keras.Input(shape=(None,), name='body') title_input = keras.Input(...
29.446154
98
0.719436
0
0
0
0
0
0
0
0
408
0.206687
c8ff0f334dbba342f0a95112a0a41bb1cc0f4aaf
3,937
py
Python
src/genie/libs/parser/nxos/tests/ShowIpOspf/cli/equal/golden_output_2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/nxos/tests/ShowIpOspf/cli/equal/golden_output_2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/nxos/tests/ShowIpOspf/cli/equal/golden_output_2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { 'vrf': {'default': {'address_family': {'ipv4': {'instance': {'1': {'areas': {'0.0.0.0': {'area_id': '0.0.0.0', ...
49.2125
73
0.216916
0
0
0
0
0
0
0
0
928
0.235712
c8ffacba13563fc63e94eff5bc851a3e548d81b6
4,566
py
Python
rain/cloud/system/system.py
SuPerCxyz/rain
578b6d125f535414d3ea3fcfee4015b70fed560c
[ "Apache-2.0" ]
2
2018-12-20T01:38:56.000Z
2018-12-29T14:49:36.000Z
rain/cloud/system/system.py
SuPerCxyz/rain
578b6d125f535414d3ea3fcfee4015b70fed560c
[ "Apache-2.0" ]
null
null
null
rain/cloud/system/system.py
SuPerCxyz/rain
578b6d125f535414d3ea3fcfee4015b70fed560c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import json import platform import time from getdevinfo import getdevinfo import psutil from rain.common import rain_log from rain.common import utils from rain.common.utils import async_call logger = rain_log.logg(__name__) class SystemInfo(object): """system info...
33.328467
75
0.592641
4,289
0.939334
0
0
296
0.064827
0
0
1,034
0.226456
c8ffe69de767e55075d5f9e090d7f69a2c93dd80
7,517
py
Python
models.py
rudrasohan/Trust-Region-Policy-Optimization
bbaadf37aa3ea4ccc35907038eea4add9e5e050c
[ "MIT" ]
3
2019-11-16T15:40:14.000Z
2021-12-28T14:26:36.000Z
models.py
rudrasohan/Trust-Region-Policy-Optimization
bbaadf37aa3ea4ccc35907038eea4add9e5e050c
[ "MIT" ]
null
null
null
models.py
rudrasohan/Trust-Region-Policy-Optimization
bbaadf37aa3ea4ccc35907038eea4add9e5e050c
[ "MIT" ]
null
null
null
"""Model Definations for trpo.""" import gym import numpy as np import torch import time import scipy.optimize import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from distributions import DiagonalGaussian from helpers import get_flat_params, set_flat_params, get_flat_grads #from ...
33.261062
119
0.600905
6,435
0.85606
0
0
0
0
0
0
1,783
0.237196
7400b5e2ffa5344609e346cb8a0ec6ea5d60b0b6
148
py
Python
sample_1/admin.py
JordanEC/django-rest-and-angular
571eb2a7d966c2b7f1f520a764420207387709cd
[ "MIT" ]
null
null
null
sample_1/admin.py
JordanEC/django-rest-and-angular
571eb2a7d966c2b7f1f520a764420207387709cd
[ "MIT" ]
null
null
null
sample_1/admin.py
JordanEC/django-rest-and-angular
571eb2a7d966c2b7f1f520a764420207387709cd
[ "MIT" ]
null
null
null
from django.contrib import admin from sample_1.models import * # Register your models here. admin.site.register(Author) admin.site.register(Book)
18.5
32
0.797297
0
0
0
0
0
0
0
0
28
0.189189
740167bc86931d3454e29781523554e25235165c
2,217
py
Python
irs_lqr/dynamical_system.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
6
2021-11-20T19:05:06.000Z
2022-01-31T00:10:41.000Z
irs_lqr/dynamical_system.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
10
2021-07-24T19:50:36.000Z
2021-11-20T19:06:40.000Z
irs_lqr/dynamical_system.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
1
2021-12-15T22:09:31.000Z
2021-12-15T22:09:31.000Z
class DynamicalSystem: def __init__(self): """ Base virtual dynamical systems class. Any dynamics as an input to the system must inherit from this class. TODO(terry-suh): Consider using ABC? """ self.h = 0 self.dim_x = 0 self.dim_u = 0 def dynam...
33.089552
76
0.57014
2,216
0.999549
0
0
0
0
0
0
1,761
0.794317
740438f708cbfe346a44823a28bc4994e0b1022b
196
py
Python
uuid1/models.py
charlesDavid009/Uuid
7553843c0112e7f0e248cd5692eccca72553e720
[ "MIT" ]
1
2021-05-24T18:52:53.000Z
2021-05-24T18:52:53.000Z
uuid1/models.py
charlesDavid009/Uuid
7553843c0112e7f0e248cd5692eccca72553e720
[ "MIT" ]
null
null
null
uuid1/models.py
charlesDavid009/Uuid
7553843c0112e7f0e248cd5692eccca72553e720
[ "MIT" ]
null
null
null
from django.db import models import uuid # Create your models here. class Uuid(models.Model): uuids = models.CharField(max_length=225) created = models.DateTimeField(auto_now_add=True)
19.6
53
0.760204
124
0.632653
0
0
0
0
0
0
26
0.132653
74043e623f8ec052206750dba77f648adab74816
1,660
py
Python
comedy-org.py
qedpi/file-organizer
07bdc6fd8e752aae03078529dfefe4838f4f4c4e
[ "MIT" ]
2
2020-11-23T16:32:11.000Z
2021-05-14T00:35:16.000Z
comedy-org.py
qedpi/file-organizer
07bdc6fd8e752aae03078529dfefe4838f4f4c4e
[ "MIT" ]
null
null
null
comedy-org.py
qedpi/file-organizer
07bdc6fd8e752aae03078529dfefe4838f4f4c4e
[ "MIT" ]
null
null
null
import os from shutil import move, rmtree from itertools import chain from genres import genre_of, DOWNLOAD_DIR, DST_DIRS, VIDEO_EXTENSIONS print(genre_of) print(f'moving files from {DOWNLOAD_DIR}: \n' # f'with keywords: {COMEDY_TAGS} \n' # f'with extensions: {VIDEO_EXTENSIONS} \n' ) files_moved =...
37.727273
92
0.638554
0
0
0
0
0
0
0
0
596
0.359036
7405313149ad1d453f1faa1ff9ea0b0aec012d46
3,572
py
Python
keeper/v2api/projects.py
lsst-sqre/ltd-keeper
c658bcce726764e7416a8a386b418e83912b0f32
[ "Apache-2.0", "MIT" ]
5
2016-05-16T18:46:26.000Z
2019-07-08T15:16:41.000Z
keeper/v2api/projects.py
lsst-sqre/ltd-keeper
c658bcce726764e7416a8a386b418e83912b0f32
[ "Apache-2.0", "MIT" ]
46
2016-02-18T16:54:36.000Z
2022-03-25T19:43:45.000Z
keeper/v2api/projects.py
lsst-sqre/ltd-keeper
c658bcce726764e7416a8a386b418e83912b0f32
[ "Apache-2.0", "MIT" ]
4
2016-08-20T23:10:07.000Z
2022-03-25T19:52:09.000Z
"""Handlers for project-related APIs.""" from __future__ import annotations from typing import Dict, Tuple from flask import request from flask_accept import accept_fallback from keeper.auth import token_auth from keeper.logutils import log_route from keeper.models import Organization, Product, db from keeper.servi...
28.349206
77
0.676932
0
0
0
0
2,837
0.794233
0
0
244
0.068309
7405685566287cf4e859fe85e98cb0c021c50b86
2,237
py
Python
plugins/markdown_extensions/katex.py
raabrp/rraabblog
a1d47ede918f4838ac3bbcff9ef4e7c67f851c32
[ "MIT" ]
null
null
null
plugins/markdown_extensions/katex.py
raabrp/rraabblog
a1d47ede918f4838ac3bbcff9ef4e7c67f851c32
[ "MIT" ]
null
null
null
plugins/markdown_extensions/katex.py
raabrp/rraabblog
a1d47ede918f4838ac3bbcff9ef4e7c67f851c32
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Allow server-side KaTeX rendering for Markdown through node.js The markdown extension adds regex patterns for `$` and `$$` in the source `.md` file, and applies KaTeX to the intermediate text with a `python-bond` call to node.js requires * node * npm * katex (npm install katex) * python-b...
24.053763
97
0.565042
1,396
0.62405
0
0
0
0
0
0
1,104
0.493518
7407dcd338f0c898023c04aaa216c45c15fae02b
247
py
Python
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/05_While-Loop/00.Book-Exercises-7.1-Complex-Loops-02-Numbers-N-to-1.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/05_While-Loop/00.Book-Exercises-7.1-Complex-Loops-02-Numbers-N-to-1.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/05_While-Loop/00.Book-Exercises-7.1-Complex-Loops-02-Numbers-N-to-1.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
# числата от N до 1 в обратен ред # Да се напише програма, която отпечатва числата от n до 1 в обратен ред (стъпка -1). # Например, ако n = 100, то резултатът ще е: 100, 99, 98, …, 3, 2, 1. n = int(input()) for i in range(n, 0, -1): print(i)
30.875
85
0.631579
0
0
0
0
0
0
0
0
297
0.831933
7408452dfdbed6f56d0e2243de45d1e90b286cdf
1,490
py
Python
simpleclassroom/urls.py
cbetheridge/simpleclassroom
9e99262ffdb4efc0e27566855866dfc26244bf26
[ "MIT" ]
null
null
null
simpleclassroom/urls.py
cbetheridge/simpleclassroom
9e99262ffdb4efc0e27566855866dfc26244bf26
[ "MIT" ]
null
null
null
simpleclassroom/urls.py
cbetheridge/simpleclassroom
9e99262ffdb4efc0e27566855866dfc26244bf26
[ "MIT" ]
null
null
null
"""simpleclassroom URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') C...
42.571429
80
0.713423
0
0
0
0
0
0
0
0
951
0.638255
cd9d087613da3991818c9538bda9aacfcb7b2302
714
py
Python
Mechanize/checkWords.py
rpvnwnkl/DailyWriter
7934d636219e46b9875f31e327bf52993e15e517
[ "MIT" ]
null
null
null
Mechanize/checkWords.py
rpvnwnkl/DailyWriter
7934d636219e46b9875f31e327bf52993e15e517
[ "MIT" ]
null
null
null
Mechanize/checkWords.py
rpvnwnkl/DailyWriter
7934d636219e46b9875f31e327bf52993e15e517
[ "MIT" ]
null
null
null
#!usr/bin/env python import sys, logging import re import mechanize logger = logging.getLogger('mechanize') logger.addHandler(logging.StreamHandler(sys.stdout)) logger.setLevel(logging.DEBUG) br = mechanize.Browser() br.set_debug_http(True) br.set_debug_responses(True) br.set_debug_redirects(True) br.open("https://...
23.032258
52
0.752101
0
0
0
0
0
0
0
0
173
0.242297
cd9ec9af338573f552a9119ee09d53bff7f7cebd
4,939
py
Python
simplereg/data_writer.py
gift-surg/SimpleReg
9d9a774f5b7823c2256844c9d0260395604fb396
[ "BSD-3-Clause" ]
18
2017-11-10T15:09:41.000Z
2021-01-12T07:48:46.000Z
simplereg/data_writer.py
gift-surg/SimpleReg
9d9a774f5b7823c2256844c9d0260395604fb396
[ "BSD-3-Clause" ]
null
null
null
simplereg/data_writer.py
gift-surg/SimpleReg
9d9a774f5b7823c2256844c9d0260395604fb396
[ "BSD-3-Clause" ]
3
2019-03-20T14:13:03.000Z
2020-01-15T01:32:51.000Z
# \file DataWriter.py # \brief Class to read data # # \author Michael Ebner (michael.ebner.14@ucl.ac.uk) # \date June 2018 import os import sys import numpy as np import nibabel as nib import SimpleITK as sitk import pysitk.python_helper as ph import pysitk.simple_itk_helper as sitkh from simplereg.definitions i...
40.154472
78
0.578255
4,423
0.895525
0
0
4,370
0.884794
0
0
707
0.143146
cd9f005c2266883ac0727dd4f11b65c0cc61acbf
3,881
py
Python
configman/datetime_util.py
peterbe/configman
724d80b25a0ebbb2e75ad69e92a6611494cd68b4
[ "BSD-3-Clause" ]
null
null
null
configman/datetime_util.py
peterbe/configman
724d80b25a0ebbb2e75ad69e92a6611494cd68b4
[ "BSD-3-Clause" ]
null
null
null
configman/datetime_util.py
peterbe/configman
724d80b25a0ebbb2e75ad69e92a6611494cd68b4
[ "BSD-3-Clause" ]
null
null
null
# ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (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.mozilla.org/MPL/ # # Softwa...
34.651786
79
0.67328
0
0
0
0
0
0
0
0
2,337
0.602164
cda50a569978706c9bec0db5233be29def4df294
2,952
py
Python
src/tests/voluntario/test_api.py
Akijunior/Atados
255c9c9137e48aa82fdea63f9d6d65a3720c3f92
[ "MIT" ]
null
null
null
src/tests/voluntario/test_api.py
Akijunior/Atados
255c9c9137e48aa82fdea63f9d6d65a3720c3f92
[ "MIT" ]
null
null
null
src/tests/voluntario/test_api.py
Akijunior/Atados
255c9c9137e48aa82fdea63f9d6d65a3720c3f92
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.contrib.auth.models import User from rest_framework.authtoken.models import Token from rest_framework.test import APITestCase, APIClient from rest_framework.views import status from voluntario.models import Voluntario class BaseViewTest(APITestCase): de...
42.782609
87
0.686992
2,671
0.90481
0
0
0
0
0
0
389
0.131775
cda678a982b6a913bc586a56ae657d42e29745b5
508
py
Python
main.py
ki-ljl/Scaffold-Federated-Learning
12e04217df3af2c326ea90fef6cff47beaaec485
[ "MIT" ]
9
2022-03-02T13:58:29.000Z
2022-03-31T06:45:40.000Z
main.py
ki-ljl/Scaffold-Federated-Learning
12e04217df3af2c326ea90fef6cff47beaaec485
[ "MIT" ]
null
null
null
main.py
ki-ljl/Scaffold-Federated-Learning
12e04217df3af2c326ea90fef6cff47beaaec485
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ @Time:2022/05/05 12:57 @Author:KI @File:main.py @Motto:Hungry And Humble """ from data_process import clients_wind from server import Scaffold def main(): K, C, E, B, r = 10, 0.5, 30, 50, 10 input_dim = 28 lr = 0.08 options = {'K': K, 'C': C, 'E': E, 'B': B, 'r': r, 'clients...
20.32
79
0.582677
0
0
0
0
0
0
0
0
159
0.30814
cda77d54e2daf57e2851f4a131c3a29a3329d0d5
464
py
Python
reddit/files/setup_cassandra.py
mitodl/reddit-formula
68c597f5391b8bf960de3d701225de2fc45d04e4
[ "BSD-3-Clause" ]
null
null
null
reddit/files/setup_cassandra.py
mitodl/reddit-formula
68c597f5391b8bf960de3d701225de2fc45d04e4
[ "BSD-3-Clause" ]
4
2017-09-29T18:34:06.000Z
2018-05-23T19:07:17.000Z
reddit/files/setup_cassandra.py
mitodl/reddit-formula
68c597f5391b8bf960de3d701225de2fc45d04e4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import pycassa sys = pycassa.SystemManager("cassandra.service.consul:9160") if "reddit" not in sys.list_keyspaces(): print "creating keyspace 'reddit'" sys.create_keyspace("reddit", "SimpleStrategy", {"replication_factor": "3"}) print "done" if "permacache" not in sys.get_keyspace_c...
30.933333
80
0.726293
0
0
0
0
0
0
0
0
224
0.482759
cda9eb07b967369dac4f17bb21af05cd80acf296
1,472
py
Python
Data Analysis with Pandas Intermediate/Pandas Internals_ Series-145.py
vipmunot/Data-Analysis-using-Python
34586d8cbbc336508c4a7a68abe14944f1096252
[ "MIT" ]
null
null
null
Data Analysis with Pandas Intermediate/Pandas Internals_ Series-145.py
vipmunot/Data-Analysis-using-Python
34586d8cbbc336508c4a7a68abe14944f1096252
[ "MIT" ]
null
null
null
Data Analysis with Pandas Intermediate/Pandas Internals_ Series-145.py
vipmunot/Data-Analysis-using-Python
34586d8cbbc336508c4a7a68abe14944f1096252
[ "MIT" ]
null
null
null
## 1. Data Structures ## import pandas as pd fandango = pd.read_csv('fandango_score_comparison.csv') print(fandango.head(2)) ## 2. Integer Indexes ## fandango = pd.read_csv('fandango_score_comparison.csv') series_film = fandango['FILM'] series_rt = fandango['RottenTomatoes'] print(series_film[:5]) print(series_rt[:5...
25.37931
81
0.754076
0
0
0
0
0
0
0
0
452
0.307065
cdad55a9ce2a49755ae4b294972c1f2e61c115f9
425
py
Python
problem/01000~09999/01058/1058.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-19T16:37:44.000Z
2019-04-19T16:37:44.000Z
problem/01000~09999/01058/1058.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-20T11:42:44.000Z
2019-04-20T11:42:44.000Z
problem/01000~09999/01058/1058.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
3
2019-04-19T16:37:47.000Z
2021-10-25T00:45:00.000Z
n=int(input()) link=[[100]*n for i in range(n)] for i in range(n): x=input() for j in range(n): if x[j]=='Y': link[i][j]=1 for i in range(n): for j in range(n): for k in range(n): if link[j][i]+link[i][k]<link[j][k]: link[j][k]=link[j][i]+link[i][k] link[k][j]=link[j][k] ans=0 for ...
20.238095
42
0.52
0
0
0
0
0
0
0
0
3
0.007059
cdae861a30ba2bb3bd941147a704995ddbb3e7b8
4,894
py
Python
pytest_ipynb/plugin.py
kevingerman/pytest-ipynb
04b5fed4f280983f64254b01e3b24b7733e99224
[ "BSD-3-Clause" ]
104
2015-01-21T16:10:46.000Z
2021-05-31T06:53:35.000Z
pytest_ipynb/plugin.py
kevingerman/pytest-ipynb
04b5fed4f280983f64254b01e3b24b7733e99224
[ "BSD-3-Clause" ]
26
2015-04-09T04:12:48.000Z
2018-12-22T18:41:33.000Z
pytest_ipynb/plugin.py
kevingerman/pytest-ipynb
04b5fed4f280983f64254b01e3b24b7733e99224
[ "BSD-3-Clause" ]
21
2015-02-06T10:07:28.000Z
2021-04-19T21:31:48.000Z
import pytest import os,sys import warnings try: from exceptions import Exception, TypeError, ImportError except: pass from runipy.notebook_runner import NotebookRunner wrapped_stdin = sys.stdin sys.stdin = sys.__stdin__ sys.stdin = wrapped_stdin try: from Queue import Empty except: from queue import ...
32.845638
122
0.599918
3,379
0.690437
534
0.109113
0
0
0
0
842
0.172047
cdaf411884a90226584098d678014eeaecc826d5
90
py
Python
test.py
stpwin/fb-groub-sentiment
0c0c860bf7b405e7cc4a7fac5a337b751dddb910
[ "bzip2-1.0.6" ]
null
null
null
test.py
stpwin/fb-groub-sentiment
0c0c860bf7b405e7cc4a7fac5a337b751dddb910
[ "bzip2-1.0.6" ]
7
2019-08-25T01:53:14.000Z
2022-03-11T23:57:08.000Z
test.py
stpwin/fb-groub-sentiment
0c0c860bf7b405e7cc4a7fac5a337b751dddb910
[ "bzip2-1.0.6" ]
null
null
null
items = {"a": True, "b": False} b = [v for k, v in items.items() if v == True] print(b)
15
46
0.533333
0
0
0
0
0
0
0
0
6
0.066667
cdb4d928fe81a97440ce0c56dea2317a5512f228
2,258
py
Python
setup.py
vbrinnel/ztflc
b1ccab67e5e0e385d8406f179c1ad0c346afa129
[ "Apache-2.0" ]
1
2020-04-07T14:36:49.000Z
2020-04-07T14:36:49.000Z
setup.py
vbrinnel/ztflc
b1ccab67e5e0e385d8406f179c1ad0c346afa129
[ "Apache-2.0" ]
3
2020-01-16T18:25:46.000Z
2021-05-19T20:51:52.000Z
setup.py
vbrinnel/ztflc
b1ccab67e5e0e385d8406f179c1ad0c346afa129
[ "Apache-2.0" ]
1
2021-03-31T19:47:33.000Z
2021-03-31T19:47:33.000Z
#! /usr/bin/env python # DESCRIPTION = "ztflc: Force photometry lc fitter" LONG_DESCRIPTION = """ Force photometry lc fitter""" DISTNAME = "ztflc" AUTHOR = "Mickael Rigault" MAINTAINER = "Mickael Rigault" MAINTAINER_EMAIL = "m.rigault@ipnl.in2p3.fr" URL = "https://github.com/MickaelRigault/ztflc/" LICENSE = "BSD (3-c...
26.880952
68
0.637733
0
0
0
0
0
0
0
0
847
0.375111
cdb4fa7248d3772a040373832306d9f403d71783
311
py
Python
ibm1.py
thovo/ibm1
df00eca56827e294642d503972f29ab3e139caf0
[ "MIT" ]
null
null
null
ibm1.py
thovo/ibm1
df00eca56827e294642d503972f29ab3e139caf0
[ "MIT" ]
null
null
null
ibm1.py
thovo/ibm1
df00eca56827e294642d503972f29ab3e139caf0
[ "MIT" ]
null
null
null
#!/usr/bin/python __author__ = 'thovo' import sys def ibm1(): #Check for arguments args_length = len(sys.argv) print "The number of arguments: "+str(args_length) i = 0 while i < args_length: print "The argument number " + str(i) + " is " + str(sys.argv[i]) i += 1 ibm1()
18.294118
73
0.59164
0
0
0
0
0
0
0
0
99
0.318328
cdb6e8d6090040ad0dc31239d89e99153192bd44
1,927
py
Python
wordfinds/raw.py
GrandMoff100/WordFinds
4b56532f399178e5f2b18b246084644061c5bfc2
[ "MIT" ]
2
2021-05-22T19:19:56.000Z
2021-08-16T11:34:11.000Z
wordfinds/raw.py
GrandMoff100/WordFinds
4b56532f399178e5f2b18b246084644061c5bfc2
[ "MIT" ]
null
null
null
wordfinds/raw.py
GrandMoff100/WordFinds
4b56532f399178e5f2b18b246084644061c5bfc2
[ "MIT" ]
1
2021-11-09T13:55:43.000Z
2021-11-09T13:55:43.000Z
import random from .utils import filler from .array import RawWordFindArray, WordArray class RawWordFind(RawWordFindArray): def __init__(self, size, wordbank): super().__init__(size, wordbank) for word in wordbank.words: if not self.valid_word_length(word): raise ValueE...
32.661017
120
0.511676
1,833
0.95122
379
0.196679
0
0
0
0
181
0.093928
cdb7047c417fa314c5e02129e1672265cc3318ba
2,969
py
Python
src/neon/frontend/aeon_shim.py
MUTTERSCHIFF/ngraph-neon
762e8ea639cdc671311ee4929bd1ee8cdf83e8bb
[ "Apache-2.0" ]
13
2018-03-17T00:27:18.000Z
2020-06-18T01:36:34.000Z
src/neon/frontend/aeon_shim.py
MUTTERSCHIFF/ngraph-neon
762e8ea639cdc671311ee4929bd1ee8cdf83e8bb
[ "Apache-2.0" ]
20
2018-03-17T14:49:04.000Z
2018-04-19T17:47:38.000Z
src/neon/frontend/aeon_shim.py
NervanaSystems/ngraph-neon
8988ab90ee81c8b219ea5c374702e56d7f383302
[ "Apache-2.0" ]
5
2018-03-23T22:47:17.000Z
2020-10-21T16:15:02.000Z
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # 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.apa...
35.345238
88
0.583025
1,440
0.485012
0
0
0
0
0
0
1,118
0.376558