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
a3c289b2ddb7ec4ef9412f5ae94e7553200e0202
4,668
py
Python
mojoco trivial/mujocoSim/UR5/simple_example/Mujoco_py_example.py
garlicbutter/Jonathan-Tom
c1696f0a94da46911b3566a3d4f49791e877373f
[ "MIT" ]
2
2021-10-05T04:31:19.000Z
2021-10-05T04:31:26.000Z
mojoco trivial/mujocoSim/UR5/simple_example/Mujoco_py_example.py
garlicbutter/Tom-Jonathan
c1696f0a94da46911b3566a3d4f49791e877373f
[ "MIT" ]
null
null
null
mojoco trivial/mujocoSim/UR5/simple_example/Mujoco_py_example.py
garlicbutter/Tom-Jonathan
c1696f0a94da46911b3566a3d4f49791e877373f
[ "MIT" ]
null
null
null
import numpy as np import mujoco_py as mj from mujoco_py_renderer import SimulationError, XMLError, MujocoPyRenderer from mujoco_py import (MjSim, load_model_from_xml,functions, load_model_from_path, MjSimState, ignore_mujoco_warnings, load_model_from...
29.923077
105
0.610111
0
0
0
0
0
0
0
0
2,184
0.467866
a3c2ca7e8eeb8a5b7daf690508f0da4c87ebd47d
3,323
py
Python
evaluation/wordpress/pull_docker_images_from_private_registry.py
seveirbian/gear-old
8d3529a9bf42e652a9d7475c9d14e9a6afc69a76
[ "Apache-2.0" ]
null
null
null
evaluation/wordpress/pull_docker_images_from_private_registry.py
seveirbian/gear-old
8d3529a9bf42e652a9d7475c9d14e9a6afc69a76
[ "Apache-2.0" ]
null
null
null
evaluation/wordpress/pull_docker_images_from_private_registry.py
seveirbian/gear-old
8d3529a9bf42e652a9d7475c9d14e9a6afc69a76
[ "Apache-2.0" ]
null
null
null
import sys # package need to be installed, pip install docker import docker import time import yaml import os import xlwt auto = False private_registry = "202.114.10.146:9999/" # result result = [["tag", "finishTime", "size", "data"], ] class Puller: def __init__(self, images): self.images_to_pull =...
27.46281
101
0.550707
2,223
0.668974
0
0
0
0
0
0
674
0.202829
a3c4634520b2ba72e01bed684e08b442a5657f9b
385
py
Python
jiminy/envs/vnc_wog.py
sibeshkar/jiminy
7754f86fb0f246e7d039ea0cbfd9950fcae4adfb
[ "MIT" ]
3
2020-03-16T13:50:40.000Z
2021-06-09T05:26:13.000Z
jiminy/envs/vnc_wog.py
sibeshkar/jiminy
7754f86fb0f246e7d039ea0cbfd9950fcae4adfb
[ "MIT" ]
null
null
null
jiminy/envs/vnc_wog.py
sibeshkar/jiminy
7754f86fb0f246e7d039ea0cbfd9950fcae4adfb
[ "MIT" ]
null
null
null
from jiminy.envs import vnc_env from jiminy.spaces import VNCActionSpace class WorldOfGooEnv(vnc_env.VNCEnv): def __init__(self): super(WorldOfGooEnv, self).__init__() # TODO: set action space screen shape to match # HACK: empty keys list fails for some weird reason, give it an 'a' ...
35
75
0.703896
309
0.802597
0
0
0
0
0
0
116
0.301299
a3c726cfaf4ab3b53d1df8bd6d6c24aef693e3ab
5,066
py
Python
fedml_api/standalone/federated_sgan/fedssgan_api.py
arj119/FedML
5b7c098659f3e61f9e44583965300d8d0829f7a8
[ "Apache-2.0" ]
null
null
null
fedml_api/standalone/federated_sgan/fedssgan_api.py
arj119/FedML
5b7c098659f3e61f9e44583965300d8d0829f7a8
[ "Apache-2.0" ]
null
null
null
fedml_api/standalone/federated_sgan/fedssgan_api.py
arj119/FedML
5b7c098659f3e61f9e44583965300d8d0829f7a8
[ "Apache-2.0" ]
null
null
null
import copy import logging import random from typing import List, Tuple import numpy as np import torch import wandb from torch.utils.data import ConcatDataset from fedml_api.standalone.fedavg.my_model_trainer import MyModelTrainer from fedml_api.standalone.federated_sgan.ac_gan_model_trainer import ACGANModelTrainer...
44.831858
129
0.627319
4,484
0.885116
0
0
0
0
0
0
1,644
0.324516
a3c78b4ed55d10de069695bce6f3d899ee02cc99
20,932
py
Python
pytorch-word2vec-master/csv.py
arjun-sai-krishnan/tamil-morpho-embeddings
a33bcb427d635dba3b1857f26ea7ab287e1a44c5
[ "MIT" ]
2
2021-04-11T18:25:16.000Z
2022-03-16T03:48:52.000Z
pytorch-word2vec-master/csv.py
arjun-sai-krishnan/tamil-morpho-embeddings
a33bcb427d635dba3b1857f26ea7ab287e1a44c5
[ "MIT" ]
null
null
null
pytorch-word2vec-master/csv.py
arjun-sai-krishnan/tamil-morpho-embeddings
a33bcb427d635dba3b1857f26ea7ab287e1a44c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse from collections import Counter import pdb import pickle import re import sys import time import numpy as np import torch import torch.nn as nn from torch.autograd import Variable from torch import optim import torch.nn.functional as F import torch.multiprocessing as mp import ...
40.487427
250
0.591821
3,156
0.150774
409
0.019539
0
0
0
0
3,814
0.182209
a3c8721ad82d9b0c4f4bbb5e4ea027824401f22d
339
py
Python
Ogrenciler/Varol/buyuksayi.py
ProEgitim/Python-Dersleri-BEM
b25e9fdb1fa3026925a46b2fcbcba348726b775c
[ "MIT" ]
1
2021-04-18T17:35:22.000Z
2021-04-18T17:35:22.000Z
Ogrenciler/Varol/buyuksayi.py
waroi/Python-Dersleri-BEM
b25e9fdb1fa3026925a46b2fcbcba348726b775c
[ "MIT" ]
null
null
null
Ogrenciler/Varol/buyuksayi.py
waroi/Python-Dersleri-BEM
b25e9fdb1fa3026925a46b2fcbcba348726b775c
[ "MIT" ]
2
2021-04-18T18:22:26.000Z
2021-04-24T17:16:19.000Z
sayi1 = int(input("1. Sayı: ")) sayi2 = int(input("2. Sayı: ")) sayi3 = int(input("3. Sayı: ")) sayi4 = int(input("4. Sayı: ")) sayi5 = int(input("5. Sayı: ")) sayilar=[]; sayilar.append(sayi1) sayilar.append(sayi2) sayilar.append(sayi3) sayilar.append(sayi4) sayilar.append(sayi5) sayilar.sort() print("En büyük sayimiz...
21.1875
39
0.663717
0
0
0
0
0
0
0
0
82
0.236994
a3c959da81854ccd184aefdeb715f7df8413b8b8
8,899
py
Python
baselines/deepq/build_graph_mfec.py
MouseHu/emdqn
ba907e959f21dd0b5a17117accccae9c82a79a3b
[ "MIT" ]
null
null
null
baselines/deepq/build_graph_mfec.py
MouseHu/emdqn
ba907e959f21dd0b5a17117accccae9c82a79a3b
[ "MIT" ]
null
null
null
baselines/deepq/build_graph_mfec.py
MouseHu/emdqn
ba907e959f21dd0b5a17117accccae9c82a79a3b
[ "MIT" ]
1
2021-04-26T13:55:47.000Z
2021-04-26T13:55:47.000Z
"""Deep Q learning graph The functions in this file can are used to create the following functions: ======= act ======== Function to chose an action given an observation Parameters ---------- observation: object Observation that can be feed into the output of make_obs_ph stochastic: bool...
42.37619
127
0.618047
0
0
0
0
0
0
0
0
4,465
0.501742
a3c978469e28670107c4646aa77b54f6269dda05
2,244
py
Python
tests/test_prior.py
frodre/LMR
4c00d3f9db96447e69bd3f426d59524f7b5f3ef5
[ "BSD-3-Clause" ]
17
2018-08-27T18:50:36.000Z
2021-03-17T22:48:55.000Z
tests/test_prior.py
mingsongli/LMR
4c00d3f9db96447e69bd3f426d59524f7b5f3ef5
[ "BSD-3-Clause" ]
5
2018-10-15T22:13:27.000Z
2019-04-26T11:45:58.000Z
tests/test_prior.py
mingsongli/LMR
4c00d3f9db96447e69bd3f426d59524f7b5f3ef5
[ "BSD-3-Clause" ]
11
2018-10-11T19:35:34.000Z
2021-08-17T12:08:11.000Z
import sys sys.path.append('../') import LMR_config as cfg import LMR_prior import numpy as np import pytest def test_prior_seed(): cfg_obj = cfg.Config(**{'core':{'seed': 2}}) prior_cfg = cfg_obj.prior prior_source = '20cr' datadir_prior = 'data' datafile_prior = '[vardef_template]_gridded_dat....
24.933333
60
0.685829
0
0
0
0
0
0
0
0
214
0.095365
a3cadf1c1469dc28d63f965c32ff3b98b7eb9d52
8,719
py
Python
src/salgan_dhf1k/train_bce.py
juanjo3ns/SalGAN2
ac52af743b94961cdb44c5d89774b72fc8acfd3e
[ "MIT" ]
null
null
null
src/salgan_dhf1k/train_bce.py
juanjo3ns/SalGAN2
ac52af743b94961cdb44c5d89774b72fc8acfd3e
[ "MIT" ]
null
null
null
src/salgan_dhf1k/train_bce.py
juanjo3ns/SalGAN2
ac52af743b94961cdb44c5d89774b72fc8acfd3e
[ "MIT" ]
null
null
null
import os from dataloader.datasetDHF1K import DHF1K from torch.utils.data import DataLoader from utils.salgan_utils import save_model, get_lr_optimizer from utils.sendTelegram import send from utils.printer import param_print from utils.salgan_generator import create_model, add_bn from evaluation.fast_evaluation impor...
31.139286
112
0.686661
0
0
0
0
0
0
0
0
3,975
0.455901
a3cae716974e2bebe27ab17e3253013ab6b42f7b
782
py
Python
dragontail/content/models/basicpage.py
tracon/dragontail
aae860acb5fe400015557f659b6d4221b939747a
[ "MIT" ]
null
null
null
dragontail/content/models/basicpage.py
tracon/dragontail
aae860acb5fe400015557f659b6d4221b939747a
[ "MIT" ]
null
null
null
dragontail/content/models/basicpage.py
tracon/dragontail
aae860acb5fe400015557f659b6d4221b939747a
[ "MIT" ]
null
null
null
# encoding: utf-8 from django.db import models from wagtail.wagtailcore.models import Page from wagtail.wagtailcore.fields import StreamField from wagtail.wagtailcore import blocks from wagtail.wagtailadmin.edit_handlers import FieldPanel, StreamFieldPanel from wagtail.wagtailimages.blocks import ImageChooserBlock ...
28.962963
75
0.742967
460
0.588235
0
0
0
0
0
0
41
0.05243
a3cc11867421204e587bf63f6a7dd58a6716ea01
2,030
py
Python
infapy/v3/agentService.py
infapy/infapy
0cb11310130be70ce1b647aa5ede929c1eb9b2ce
[ "Apache-2.0" ]
null
null
null
infapy/v3/agentService.py
infapy/infapy
0cb11310130be70ce1b647aa5ede929c1eb9b2ce
[ "Apache-2.0" ]
null
null
null
infapy/v3/agentService.py
infapy/infapy
0cb11310130be70ce1b647aa5ede929c1eb9b2ce
[ "Apache-2.0" ]
1
2021-09-23T10:31:56.000Z
2021-09-23T10:31:56.000Z
# Copyright (c) 2021-Present (Prashanth Pradeep) # 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...
38.301887
120
0.634975
1,347
0.663547
0
0
0
0
0
0
822
0.404926
a3cd937793e2d0c588285b6a5f1e77f851ebcc85
5,703
py
Python
home_application/views.py
pengwow/test-demo
9d5c460b534d93d84f39ae24db82aa101027d199
[ "Apache-2.0" ]
null
null
null
home_application/views.py
pengwow/test-demo
9d5c460b534d93d84f39ae24db82aa101027d199
[ "Apache-2.0" ]
4
2020-02-12T01:47:04.000Z
2021-06-10T21:34:36.000Z
home_application/views.py
pengwow/test-demo
9d5c460b534d93d84f39ae24db82aa101027d199
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云(BlueKing) available. Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obt...
30.015789
115
0.627389
0
0
0
0
396
0.067221
0
0
2,054
0.348667
a3cdf292bfc1d114fbf7d5d60cd7d8fcf12221e7
455
py
Python
Chapter 6/09 - The built-in multiprocessing module/basic_multiprocessing.py
moseskim/Expert-Python-Programming-Fourth-Edition
5160f974deb2365597b7be9cc032f24bfa13471a
[ "MIT" ]
null
null
null
Chapter 6/09 - The built-in multiprocessing module/basic_multiprocessing.py
moseskim/Expert-Python-Programming-Fourth-Edition
5160f974deb2365597b7be9cc032f24bfa13471a
[ "MIT" ]
null
null
null
Chapter 6/09 - The built-in multiprocessing module/basic_multiprocessing.py
moseskim/Expert-Python-Programming-Fourth-Edition
5160f974deb2365597b7be9cc032f24bfa13471a
[ "MIT" ]
null
null
null
""" "멀티프로세싱"절 예시 `multiprocessing` 모듈을 이용해 새로운 프로세스들을 생성하는 방법을 설명한다. """ from multiprocessing import Process import os def work(identifier): print(f'Hey, I am the process ' f'{identifier}, pid: {os.getpid()}') def main(): processes = [Process(target=work, args=(number,)) for number in range(5)] for proc...
18.2
77
0.650549
0
0
0
0
0
0
0
0
212
0.40381
a3ce427e7608fff21718948d99c9396b801b2425
670
py
Python
sweeper/cloud/localhost/manager.py
dominoFire/sweeper
26c5497b81c8d0c50671f8ab75c1cf5c4c8191c9
[ "MIT" ]
null
null
null
sweeper/cloud/localhost/manager.py
dominoFire/sweeper
26c5497b81c8d0c50671f8ab75c1cf5c4c8191c9
[ "MIT" ]
null
null
null
sweeper/cloud/localhost/manager.py
dominoFire/sweeper
26c5497b81c8d0c50671f8ab75c1cf5c4c8191c9
[ "MIT" ]
null
null
null
__author__ = '@dominofire' import os from sweeper.cloud import resource_config_combinations from sweeper.cloud.localhost import resource_config_factory as config_factory from sweeper.resource import Resource def possible_configs(num): configs = config_factory.list_configs() combs = resource_config_combinati...
23.928571
77
0.773134
0
0
0
0
0
0
0
0
54
0.080597
a3ced405166d997be98745f69fe1f51cd0fcd9c9
3,193
py
Python
tfx/orchestration/experimental/core/service_jobs_test.py
BACtaki/tfx
29db845200beccbb0ffa1e1e1a091e314a3a470f
[ "Apache-2.0" ]
1,813
2019-02-04T17:17:30.000Z
2022-03-29T13:39:30.000Z
tfx/orchestration/experimental/core/service_jobs_test.py
BACtaki/tfx
29db845200beccbb0ffa1e1e1a091e314a3a470f
[ "Apache-2.0" ]
2,710
2019-02-14T00:41:00.000Z
2022-03-31T07:23:00.000Z
tfx/orchestration/experimental/core/service_jobs_test.py
BACtaki/tfx
29db845200beccbb0ffa1e1e1a091e314a3a470f
[ "Apache-2.0" ]
731
2019-02-04T17:59:18.000Z
2022-03-31T06:45:51.000Z
# Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
46.275362
83
0.777639
2,298
0.719699
0
0
0
0
0
0
766
0.2399
a3d03f04854e2e542f97a3c9c4b2caeaa5e05045
17,041
py
Python
dragonn/models.py
kundajelab/dragonn
431e7c6b94a82972ac0fc3ef76d76e9ce8ba67fc
[ "MIT" ]
251
2016-06-20T20:18:27.000Z
2022-03-03T23:31:38.000Z
dragonn/models.py
kundajelab/dragonn
431e7c6b94a82972ac0fc3ef76d76e9ce8ba67fc
[ "MIT" ]
39
2016-07-01T20:40:59.000Z
2022-02-09T23:30:24.000Z
dragonn/models.py
kundajelab/dragonn
431e7c6b94a82972ac0fc3ef76d76e9ce8ba67fc
[ "MIT" ]
89
2016-06-09T17:59:21.000Z
2021-12-20T03:00:09.000Z
from __future__ import absolute_import, division, print_function import matplotlib import numpy as np import os import subprocess import sys import tempfile matplotlib.use('pdf') import matplotlib.pyplot as plt from abc import abstractmethod, ABCMeta from dragonn.metrics import ClassificationResult from sklearn.svm imp...
41.261501
101
0.607007
15,780
0.926002
0
0
3,595
0.210962
0
0
2,352
0.13802
a3d04895a38a041247e2747afe97c42331c17ee1
3,866
py
Python
src/mpass/mpass/migrations/0001_initial.py
haltu/velmu-mpass-demo
19eb0e14fa6710e4aee5d47c898cf570bf7621e5
[ "MIT" ]
null
null
null
src/mpass/mpass/migrations/0001_initial.py
haltu/velmu-mpass-demo
19eb0e14fa6710e4aee5d47c898cf570bf7621e5
[ "MIT" ]
11
2018-08-16T12:09:57.000Z
2018-08-22T14:26:15.000Z
src/mpass/mpass/migrations/0001_initial.py
haltu/velmu-mpass-demosp
31b609d1413ab1bd9f833f42eac30366a6d3e6d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-03-20 08:34 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import parler.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ ...
42.483516
180
0.58148
3,653
0.944904
0
0
0
0
0
0
914
0.23642
a3d07703df62a187a4037e7b46931b65c218c987
3,921
py
Python
dgt/inference/forward_inference.py
fractalego/dgt
6781b9445d93c4a1680ab3d5636803c81062cc67
[ "MIT" ]
3
2021-07-26T02:07:15.000Z
2021-12-21T22:36:15.000Z
dgt/inference/forward_inference.py
fractalego/dgt
6781b9445d93c4a1680ab3d5636803c81062cc67
[ "MIT" ]
null
null
null
dgt/inference/forward_inference.py
fractalego/dgt
6781b9445d93c4a1680ab3d5636803c81062cc67
[ "MIT" ]
null
null
null
import logging import random from dgt.graph.graph_matcher import GraphWeightedMatch from dgt.utils import graph_iterations _logger = logging.getLogger(__name__) def find_weight_between(s, first, last): try: start = s.index(first) + len(first) end = s.index(last, start) return s[start:end...
30.632813
95
0.579444
3,173
0.809232
0
0
0
0
0
0
291
0.074216
a3d0a689ffb0010c1b8ab3fafb0b2e1dd2c2562d
1,528
py
Python
serverPythonClient/client.py
ikekilinc/dnnSuperBinoculars
b0fc584b1d449961bdbab37cf9d72c0b466f197f
[ "MIT" ]
null
null
null
serverPythonClient/client.py
ikekilinc/dnnSuperBinoculars
b0fc584b1d449961bdbab37cf9d72c0b466f197f
[ "MIT" ]
null
null
null
serverPythonClient/client.py
ikekilinc/dnnSuperBinoculars
b0fc584b1d449961bdbab37cf9d72c0b466f197f
[ "MIT" ]
null
null
null
import argparse import cv2 import common # from .utils.cropAtCenter import cropImageCenter # from cropAtCenter import cropImageCenter from gabriel_client.websocket_client import WebsocketClient from gabriel_client.opencv_adapter import OpencvAdapter DEFAULT_SERVER_HOST = '128.2.212.50' DEFAULT_ZOOM_FACTOR = 10 def ...
25.898305
78
0.719241
0
0
0
0
0
0
0
0
180
0.117801
a3d10c9654ae4266e8db0dc3b63e312a5537bc75
719
py
Python
src/DeepCard.API/batch.py
SharsDela/BankCardRecognize
ce80589bc5a5afaba2b97b1ccab35354fb99b548
[ "Apache-2.0" ]
7
2019-09-01T13:36:52.000Z
2021-05-20T19:38:40.000Z
src/DeepCard.API/batch.py
SharsDela/BankCardRecognize
ce80589bc5a5afaba2b97b1ccab35354fb99b548
[ "Apache-2.0" ]
1
2019-09-01T13:37:50.000Z
2020-09-18T10:35:20.000Z
src/DeepCard.API/batch.py
SharsDela/BankCardRecognize
ce80589bc5a5afaba2b97b1ccab35354fb99b548
[ "Apache-2.0" ]
2
2020-02-03T01:57:36.000Z
2020-03-05T11:19:14.000Z
from api import get_result import os import shutil from glob import glob from PIL import Image if __name__ == '__main__': image_files = glob('./test_images/*.*') result_dir = './test_results' if os.path.exists(result_dir): shutil.rmtree(result_dir) os.mkdir(result_dir) txt_file = os.path.j...
28.76
82
0.623088
0
0
0
0
0
0
0
0
102
0.141864
a3d15d48b5db9739108b6ecc4d1923cf6d0d654b
4,106
py
Python
CIM14/ENTSOE/Equipment/Core/Curve.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
58
2015-04-22T10:41:03.000Z
2022-03-29T16:04:34.000Z
CIM14/ENTSOE/Equipment/Core/Curve.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
12
2015-08-26T03:57:23.000Z
2020-12-11T20:14:42.000Z
CIM14/ENTSOE/Equipment/Core/Curve.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
35
2015-01-10T12:21:03.000Z
2020-09-09T08:18:16.000Z
# Copyright (C) 2010-2011 Richard Lincoln # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish...
52.641026
277
0.614467
2,929
0.713346
0
0
0
0
0
0
2,928
0.713103
a3d2324b7f134c8871f8f82a96cc6abc0a30b3ea
2,432
py
Python
fluent/syntax/errors.py
unclenachoduh/python-fluent
1d15bdc94a37ecb488a80aefcdd37b8cb5535f73
[ "Apache-2.0" ]
null
null
null
fluent/syntax/errors.py
unclenachoduh/python-fluent
1d15bdc94a37ecb488a80aefcdd37b8cb5535f73
[ "Apache-2.0" ]
null
null
null
fluent/syntax/errors.py
unclenachoduh/python-fluent
1d15bdc94a37ecb488a80aefcdd37b8cb5535f73
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals class ParseError(Exception): def __init__(self, code, *args): self.code = code self.args = args self.message = get_error_message(code, args) def get_error_message(code, args): if code == 'E00001': return 'Generic error' if code == '...
36.298507
76
0.60773
168
0.069079
0
0
0
0
0
0
1,178
0.484375
a3d28839e9a9ab62ac7936ca858e4cb438e092b3
16,562
py
Python
tests/test_mag.py
jdddog/mag-archiver
079e735e610d6b81b3ac8dc479d4f93bb0aacb11
[ "Apache-2.0" ]
null
null
null
tests/test_mag.py
jdddog/mag-archiver
079e735e610d6b81b3ac8dc479d4f93bb0aacb11
[ "Apache-2.0" ]
null
null
null
tests/test_mag.py
jdddog/mag-archiver
079e735e610d6b81b3ac8dc479d4f93bb0aacb11
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Curtin University # # 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 writi...
45.128065
112
0.676368
13,993
0.844886
0
0
5,643
0.34072
0
0
3,619
0.218512
a3d2e1e0e46f7f6e0817c75f138edaf65c103137
14,084
py
Python
twitterinfrastructure/CH-Data-Public.py
jacob-heglund/socialsensing-jh
fd6d2d749f40fee46bee749ff868212bf117a747
[ "BSD-2-Clause", "MIT" ]
null
null
null
twitterinfrastructure/CH-Data-Public.py
jacob-heglund/socialsensing-jh
fd6d2d749f40fee46bee749ff868212bf117a747
[ "BSD-2-Clause", "MIT" ]
null
null
null
twitterinfrastructure/CH-Data-Public.py
jacob-heglund/socialsensing-jh
fd6d2d749f40fee46bee749ff868212bf117a747
[ "BSD-2-Clause", "MIT" ]
null
null
null
''' Created on Mar 22, 2018 Edited on Jan 11, 2019 @author: npvance2 @author: curtisd2 Variables that will need to be edited/personalized: monitorID in Variables() (line 27) projectStartDate in Variables() (line 28) projectEndDate in Variables() (line 29) authToken in getAuthToken() (...
47.103679
360
0.510934
0
0
0
0
0
0
0
0
4,016
0.285146
a3d3652391aca6bc7ecc488069329c58736eb71f
1,286
py
Python
roles/slurm/files/startnode.py
danhnguyen48/slurm-elastic-computing
0793cf23677169a6d9dceea0793118bc00c0913e
[ "MIT" ]
null
null
null
roles/slurm/files/startnode.py
danhnguyen48/slurm-elastic-computing
0793cf23677169a6d9dceea0793118bc00c0913e
[ "MIT" ]
null
null
null
roles/slurm/files/startnode.py
danhnguyen48/slurm-elastic-computing
0793cf23677169a6d9dceea0793118bc00c0913e
[ "MIT" ]
null
null
null
#! /opt/cloud_sdk/bin/python import asyncio import logging import subprocess import sys import citc_cloud def handle_exception(exc_type, exc_value, exc_traceback): if issubclass(exc_type, KeyboardInterrupt): sys.__excepthook__(exc_type, exc_value, exc_traceback) return log.critical("Uncaugh...
26.244898
122
0.694401
0
0
0
0
0
0
430
0.33437
210
0.163297
a3d474d2b653dcd5a9578ce3979ff7a04e191213
2,300
py
Python
tests/pyre/components/component_class_registration_model.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
tests/pyre/components/component_class_registration_model.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
tests/pyre/components/component_class_registration_model.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2018 all rights reserved # """ Verify that component registration interacts correctly with the pyre configurator model """ # access # print(" -- importing pyre") import pyre # print(" -- done") def declare(): # dec...
22.772277
87
0.59913
540
0.234579
0
0
151
0.065595
0
0
1,111
0.482624
a3d5083187f3606549524985d8222291ba30b943
4,199
py
Python
tests/unit/transport/plugins/asyncssh/test_asyncssh_transport.py
carlmontanari/nssh
fa2277ea0b8fdb81de3064e1d48bad9264f0cd64
[ "MIT" ]
1
2020-02-09T17:43:43.000Z
2020-02-09T17:43:43.000Z
tests/unit/transport/plugins/asyncssh/test_asyncssh_transport.py
carlmontanari/nssh
fa2277ea0b8fdb81de3064e1d48bad9264f0cd64
[ "MIT" ]
null
null
null
tests/unit/transport/plugins/asyncssh/test_asyncssh_transport.py
carlmontanari/nssh
fa2277ea0b8fdb81de3064e1d48bad9264f0cd64
[ "MIT" ]
null
null
null
import asyncio from io import BytesIO import pytest from asyncssh.connection import SSHClientConnection from asyncssh.stream import SSHReader from scrapli.exceptions import ScrapliConnectionNotOpened, ScrapliTimeout class DumbContainer: def __init__(self): self.preferred_auth = () def __getattr__(s...
28.958621
96
0.740414
221
0.052632
0
0
0
0
1,043
0.248392
801
0.19076
a3d571f1fc3a63903055bc9efe42eada3f2c5310
3,699
py
Python
apps/ignite/views.py
Mozilla-GitHub-Standards/93f18f14efcf5fdfc0e04f9bf247f66baf46663f37b1d2087ab8d850abc90803
4e374b4d52dfb9039ebe543e7f27682189022307
[ "BSD-3-Clause" ]
2
2015-04-06T15:20:29.000Z
2016-12-30T12:25:11.000Z
apps/ignite/views.py
Mozilla-GitHub-Standards/93f18f14efcf5fdfc0e04f9bf247f66baf46663f37b1d2087ab8d850abc90803
4e374b4d52dfb9039ebe543e7f27682189022307
[ "BSD-3-Clause" ]
2
2019-02-17T17:38:02.000Z
2019-03-28T03:49:16.000Z
apps/ignite/views.py
Mozilla-GitHub-Standards/93f18f14efcf5fdfc0e04f9bf247f66baf46663f37b1d2087ab8d850abc90803
4e374b4d52dfb9039ebe543e7f27682189022307
[ "BSD-3-Clause" ]
1
2019-03-28T03:49:18.000Z
2019-03-28T03:49:18.000Z
from django.shortcuts import get_object_or_404 import jingo import waffle from django.contrib.auth.models import User from challenges.models import Submission, Category from projects.models import Project from blogs.models import BlogEntry from events.models import Event def splash(request, project, slug, template_n...
36.99
104
0.638821
0
0
0
0
0
0
0
0
772
0.208705
a3d593a4708a16249302174780a07f2fdc88109b
664
py
Python
dataPresenter.py
thebouv/IUS-Hacktoberfest
084634ec2feff3e81862d85b3938e1ae2c5aadff
[ "MIT" ]
3
2019-09-30T18:25:12.000Z
2019-10-01T21:47:41.000Z
dataPresenter.py
thebouv/IUS-Hacktoberfest
084634ec2feff3e81862d85b3938e1ae2c5aadff
[ "MIT" ]
3
2019-09-27T22:44:34.000Z
2019-10-09T17:00:37.000Z
dataPresenter.py
thebouv/IUS-Hacktoberfest
084634ec2feff3e81862d85b3938e1ae2c5aadff
[ "MIT" ]
6
2019-09-28T04:17:16.000Z
2019-10-08T18:47:26.000Z
from plotly.subplots import make_subplots import plotly.graph_objects as go import plotly.io as pio from dataProcessor import parseLabels, parseLangs import plotly.io as pio import os years = parseLabels() langs = parseLangs() #make the plotly results fig = make_subplots( rows=1, cols=2, specs=[[{"type": "x...
22.133333
89
0.680723
0
0
0
0
0
0
0
0
60
0.090361
a3d6b9ef2efd18b552dbe05895fafd84b7430c25
17,209
py
Python
bdlb/diabetic_retinopathy_diagnosis/benchmark.py
Sairam954/bdl-benchmarks
6fbc855ca51403ad8f64b6be30ed92f6118c6cae
[ "Apache-2.0" ]
666
2019-06-14T17:14:05.000Z
2022-03-24T10:48:47.000Z
bdlb/diabetic_retinopathy_diagnosis/benchmark.py
Sairam954/bdl-benchmarks
6fbc855ca51403ad8f64b6be30ed92f6118c6cae
[ "Apache-2.0" ]
12
2019-06-26T16:54:14.000Z
2020-08-18T13:16:01.000Z
bdlb/diabetic_retinopathy_diagnosis/benchmark.py
Sairam954/bdl-benchmarks
6fbc855ca51403ad8f64b6be30ed92f6118c6cae
[ "Apache-2.0" ]
97
2019-06-14T20:30:39.000Z
2022-02-05T08:33:49.000Z
# Copyright 2019 BDL Benchmarks 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...
34.625755
92
0.658609
15,686
0.9115
0
0
14,452
0.839793
0
0
6,868
0.399093
a3d6f97d9d98a31dc4f2829ae746920be2ea8e17
4,902
py
Python
pysnmp-with-texts/CXConsoleDriver-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CXConsoleDriver-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CXConsoleDriver-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CXConsoleDriver-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CXConsoleDriver-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:32:28 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
158.129032
856
0.786006
0
0
0
0
0
0
0
0
2,670
0.544676
a3d7408e9bd4e19d03c2fd8dc2282dcab222a6b8
2,782
py
Python
db/redis_db.py
Lifeistrange/WeiboSpider
8aa3465487ef64bb6e9bb4bd503f182a1b38c292
[ "MIT" ]
1
2018-07-23T03:58:53.000Z
2018-07-23T03:58:53.000Z
db/redis_db.py
545314690/WeiboSpider-1.6.4
d29cc9b926da5790768ddebdfdf9bf6c617a0e03
[ "MIT" ]
null
null
null
db/redis_db.py
545314690/WeiboSpider-1.6.4
d29cc9b926da5790768ddebdfdf9bf6c617a0e03
[ "MIT" ]
2
2018-06-25T09:21:24.000Z
2018-07-23T03:59:31.000Z
# coding:utf-8 import datetime import json import re import redis from config.conf import get_redis_args redis_args = get_redis_args() class Cookies(object): rd_con = redis.StrictRedis(host=redis_args.get('host'), port=redis_args.get('port'), password=redis_args.get('password'), d...
36.12987
103
0.611431
2,744
0.949481
0
0
1,880
0.650519
0
0
508
0.175779
a3d75ce424bf88d4d06c99b804df0f846b952cac
1,873
py
Python
vivisect/storage/mpfile.py
vEpiphyte/vivisect
14947a53c6781175f0aa83d49cc16c524a2e23a3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
vivisect/storage/mpfile.py
vEpiphyte/vivisect
14947a53c6781175f0aa83d49cc16c524a2e23a3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
vivisect/storage/mpfile.py
vEpiphyte/vivisect
14947a53c6781175f0aa83d49cc16c524a2e23a3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import base64 import logging import msgpack logger = logging.getLogger(__name__) loadargs = {'use_list': False, 'raw': False} if msgpack.version < (1, 0, 0): loadargs['encoding'] = 'utf-8' else: loadargs['strict_map_key'] = False VSIG = b'MSGVIV'.ljust(8, b'\x00') def vivEventsAppendFile(filename, events)...
28.815385
81
0.599573
0
0
0
0
0
0
0
0
113
0.060331
a3d771361889efe007b26f62c7cd92ffc6f656a2
3,832
py
Python
pytest_pgsql/plugin.py
mathiasose/pytest-pgsql
5e076db146699c3b683b49e4a31323c4c23054de
[ "BSD-3-Clause" ]
null
null
null
pytest_pgsql/plugin.py
mathiasose/pytest-pgsql
5e076db146699c3b683b49e4a31323c4c23054de
[ "BSD-3-Clause" ]
null
null
null
pytest_pgsql/plugin.py
mathiasose/pytest-pgsql
5e076db146699c3b683b49e4a31323c4c23054de
[ "BSD-3-Clause" ]
null
null
null
"""This forms the core of the pytest plugin.""" import pytest import testing.postgresql from pytest_pgsql import database from pytest_pgsql import ext def pytest_addoption(parser): """Add configuration options for pytest_pgsql.""" parser.addoption( '--pg-extensions', action='store', default='', ...
35.813084
85
0.675626
0
0
1,352
0.352818
1,760
0.45929
0
0
2,340
0.610647
a3d816c8c07445ebc9580d3703129a46fcf2cc64
737
py
Python
power_data_to_sat_passes/date_utils.py
abrahamneben/orbcomm_beam_mapping
71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004
[ "MIT" ]
1
2019-04-10T02:50:19.000Z
2019-04-10T02:50:19.000Z
power_data_to_sat_passes/date_utils.py
abrahamneben/orbcomm_beam_mapping
71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004
[ "MIT" ]
null
null
null
power_data_to_sat_passes/date_utils.py
abrahamneben/orbcomm_beam_mapping
71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004
[ "MIT" ]
null
null
null
# written by abraham on aug 24 def dyear2date(dyear): year = int(dyear) month_lengths = [31,28,31,30,31,30,31,31,30,31,30,31] days_before_months = [0,31,59,90,120,151,181,212,243,273,304,334] days_into_year_f = (dyear-year)*365 days_into_year_i = int(days_into_year_f) for i in range(12): if days_before_mo...
27.296296
89
0.72863
0
0
0
0
0
0
0
0
59
0.080054
a3d8391391013bac7dd77afd2eebf78925078f05
752
py
Python
app/base/count_lines.py
sourcery-ai-bot/personal-expenses-accounting
55e76744a06fd502d119f57427cd7a0bfaf68fe1
[ "MIT" ]
5
2020-02-21T16:26:21.000Z
2021-08-05T09:34:28.000Z
app/base/count_lines.py
sourcery-ai-bot/personal-expenses-accounting
55e76744a06fd502d119f57427cd7a0bfaf68fe1
[ "MIT" ]
11
2020-06-26T09:05:04.000Z
2022-01-24T20:35:07.000Z
app/base/count_lines.py
sourcery-ai-bot/personal-expenses-accounting
55e76744a06fd502d119f57427cd7a0bfaf68fe1
[ "MIT" ]
1
2021-06-25T09:42:08.000Z
2021-06-25T09:42:08.000Z
import glob from os import walk exclude_folders = [ 'node_modules', 'ios', 'android', '__pycache__' ] exclude_files = [ 'json', 'txt', 'traineddata', 'lstmf', 'yml', 'md' 'log', 'env', 'gitignore', 'dockerignore' ] # get all files in directory dirr = '/home/vik...
19.282051
86
0.625
0
0
0
0
0
0
0
0
316
0.420213
a3d86cad8d3203300d44bd218c5b17bca9639482
409
py
Python
data/contacts.py
rgurevych/python_for_testers
04023a5d6ea480f7828aa56e8a4094b744e05721
[ "Apache-2.0" ]
null
null
null
data/contacts.py
rgurevych/python_for_testers
04023a5d6ea480f7828aa56e8a4094b744e05721
[ "Apache-2.0" ]
null
null
null
data/contacts.py
rgurevych/python_for_testers
04023a5d6ea480f7828aa56e8a4094b744e05721
[ "Apache-2.0" ]
null
null
null
from models.contact import Contact testdata = [Contact(first_name="Firstname", last_name="Lastname", mobile_phone="+12345678", work_phone="12345", home_phone="67890", fax="55443322", email_1="email_1@email.com", email_2="email_2@email.com", email_3="emai...
51.125
116
0.577017
0
0
0
0
0
0
0
0
143
0.349633
a3d89936d8b1b9966571e7248379800a7bb8190c
17,617
py
Python
charmhelpers/contrib/charmsupport/nrpe.py
nobuto-m/charm-helpers
4cffc05ace43234d34b040cccdde3460f68cb673
[ "Apache-2.0" ]
null
null
null
charmhelpers/contrib/charmsupport/nrpe.py
nobuto-m/charm-helpers
4cffc05ace43234d34b040cccdde3460f68cb673
[ "Apache-2.0" ]
1
2019-09-04T12:17:17.000Z
2019-09-04T12:17:17.000Z
charmhelpers/contrib/charmsupport/nrpe.py
nobuto-m/charm-helpers
4cffc05ace43234d34b040cccdde3460f68cb673
[ "Apache-2.0" ]
null
null
null
# Copyright 2014-2015 Canonical Limited. # # 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 ...
36.174538
90
0.605097
9,339
0.530113
0
0
0
0
0
0
7,453
0.423057
a3d9e6ada4265efd73113dc71c68649cc06c25fa
13,250
py
Python
venv/Lib/site-packages/proglog/proglog.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
83
2017-08-14T02:20:38.000Z
2022-03-01T20:32:03.000Z
venv/lib/python3.7/site-packages/proglog/proglog.py
haideraltahan/CropMe
75a111b9d3b2c50c6f2a9a36d21432053f02284d
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
venv/lib/python3.7/site-packages/proglog/proglog.py
haideraltahan/CropMe
75a111b9d3b2c50c6f2a9a36d21432053f02284d
[ "MIT" ]
6
2018-10-23T08:12:26.000Z
2021-02-14T13:53:13.000Z
"""Implements the generic progress logger class, and the ProgressBar class. """ from tqdm import tqdm, tqdm_notebook from collections import OrderedDict import time SETTINGS = { 'notebook': False } def notebook(turn='on'): SETTINGS['notebook'] = True if (turn == 'on') else False def troncate_string(s, max_l...
33.80102
79
0.568981
12,328
0.930415
1,899
0.143321
108
0.008151
0
0
4,406
0.332528
a3d9f04c9618b248a5e94c0c7319362fccd10a9f
665
py
Python
gdsfactory/tests/test_component_from_yaml_bezier.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
42
2020-05-25T09:33:45.000Z
2022-03-29T03:41:19.000Z
gdsfactory/tests/test_component_from_yaml_bezier.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
133
2020-05-28T18:29:04.000Z
2022-03-31T22:21:42.000Z
gdsfactory/tests/test_component_from_yaml_bezier.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
17
2020-06-30T07:07:50.000Z
2022-03-17T15:45:27.000Z
import gdsfactory as gf from gdsfactory.component import Component yaml = """ name: test_component_yaml_without_cell instances: mmi: component: mmi1x2 bend: component: bend_s connections: bend,o1: mmi,o2 """ def test_component_from_yaml_without_cell() -> Component: """bezier does n...
20.151515
68
0.682707
0
0
0
0
0
0
0
0
239
0.359398
a3da86d4ce645eeb7110c2f1c12a4c42e43e9f77
2,681
py
Python
cats/types.py
AdamBrianBright/cats-python
163cbde06c0d56520c217c0d66ddca34c7e0f63b
[ "MIT" ]
2
2021-10-04T05:39:03.000Z
2021-10-07T06:44:19.000Z
cats/types.py
AdamBrianBright/cats-python
163cbde06c0d56520c217c0d66ddca34c7e0f63b
[ "MIT" ]
7
2021-08-17T17:50:23.000Z
2021-08-31T08:44:13.000Z
cats/types.py
AdamBrianBright/cats-python
163cbde06c0d56520c217c0d66ddca34c7e0f63b
[ "MIT" ]
2
2021-10-01T20:58:25.000Z
2021-10-04T05:40:35.000Z
from pathlib import Path from types import GeneratorType from typing import AsyncIterable, Iterable, TypeAlias import ujson from cats.errors import MalformedHeadersError try: from django.db.models import QuerySet, Model except ImportError: QuerySet = type('QuerySet', (list,), {}) Model = type('Model', (l...
25.056075
98
0.631481
1,696
0.6326
0
0
471
0.175681
0
0
298
0.111153
a3dad87fce4f18faf3a3d29b5cefbd7b89d614d5
384
py
Python
raven/utils/urlparse.py
MyCollege/raven
9447f3a55ae7703afe84c3493625e3c3fb700700
[ "BSD-3-Clause" ]
null
null
null
raven/utils/urlparse.py
MyCollege/raven
9447f3a55ae7703afe84c3493625e3c3fb700700
[ "BSD-3-Clause" ]
null
null
null
raven/utils/urlparse.py
MyCollege/raven
9447f3a55ae7703afe84c3493625e3c3fb700700
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import try: import urlparse as _urlparse except ImportError: from urllib import parse as _urlparse def register_scheme(scheme): for method in filter(lambda s: s.startswith('uses_'), dir(_urlparse)): uses = getattr(_urlparse, method) if scheme not in uses: ...
22.588235
74
0.708333
0
0
0
0
0
0
0
0
7
0.018229
a3db35b8c7d191b6f652e750b697cd40a1dc6c0c
516
py
Python
setup.py
stjordanis/MONeT-1
98a5c7d149ca19c8c64069dbd8f27ce7f97bf3af
[ "MIT" ]
161
2020-10-28T02:21:50.000Z
2022-03-11T05:06:16.000Z
setup.py
stjordanis/MONeT-1
98a5c7d149ca19c8c64069dbd8f27ce7f97bf3af
[ "MIT" ]
4
2020-10-28T02:27:43.000Z
2021-03-31T00:04:43.000Z
setup.py
stjordanis/MONeT-1
98a5c7d149ca19c8c64069dbd8f27ce7f97bf3af
[ "MIT" ]
15
2020-10-28T02:32:12.000Z
2021-12-23T13:20:23.000Z
import setuptools setuptools.setup( name="monet_memory_optimized_training", version="0.0.1", description="Memory Optimized Network Training Framework", url="https://github.com/philkr/lowrank_conv", packages=setuptools.find_packages(include = ['monet', 'monet.*', 'models', 'checkmate', 'gist']), ...
32.25
101
0.655039
0
0
0
0
0
0
0
0
286
0.554264
a3db4ad6c588be26e30297068925d6bff9a900d1
5,616
py
Python
Tests/Methods/Machine/test_Magnet_Type_11_meth.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
2
2020-06-29T13:48:37.000Z
2021-06-15T07:34:05.000Z
Tests/Methods/Machine/test_Magnet_Type_11_meth.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
Tests/Methods/Machine/test_Magnet_Type_11_meth.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @date Created on Thu Dec 18 13:56:33 2014 @copyright (C) 2014-2015 EOMYS ENGINEERING. @author pierre_b """ from unittest import TestCase from ddt import ddt, data from pyleecan.Classes.Arc1 import Arc1 from pyleecan.Classes.Segment import Segment from pyleecan.Classes.MagnetType11 import...
33.035294
87
0.579238
4,228
0.752849
0
0
4,233
0.753739
0
0
881
0.156873
a3db7f4c59462c81c92a9534466aa08adc11bb16
4,600
py
Python
tomo_encoders/tasks/void_mapping.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
tomo_encoders/tasks/void_mapping.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
tomo_encoders/tasks/void_mapping.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ """ from operator import mod from tomo_encoders.misc.voxel_processing import modified_autocontrast, TimerGPU from tomo_encoders.reconstruction.recon import recon_patches_3d import cupy as cp import numpy as np from skimage.filters import threshold_otsu from tomo_en...
35.384615
122
0.62087
0
0
0
0
0
0
0
0
1,248
0.271304
a3dc8e80c4d30f101894ef231d725a510807944b
833
py
Python
handypackages/subscribe/migrations/0001_initial.py
roundium/handypackages
b8a0e4952644144b31168f9a4ac8e743933d87c7
[ "MIT" ]
1
2019-07-31T11:40:06.000Z
2019-07-31T11:40:06.000Z
handypackages/subscribe/migrations/0001_initial.py
roundium/handypackages
b8a0e4952644144b31168f9a4ac8e743933d87c7
[ "MIT" ]
10
2020-02-12T01:16:25.000Z
2021-06-10T18:42:24.000Z
handypackages/subscribe/migrations/0001_initial.py
roundium/handypackages
b8a0e4952644144b31168f9a4ac8e743933d87c7
[ "MIT" ]
1
2019-07-31T11:40:18.000Z
2019-07-31T11:40:18.000Z
# Generated by Django 2.2.1 on 2019-06-22 11:03 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='SubscribeModel', fields=[ ('id', models.Aut...
29.75
114
0.57503
740
0.888355
0
0
0
0
0
0
194
0.232893
a3dd7fa87a5a13e38a56d66d0de7938491e30d3e
793
py
Python
TuShare/view/sh_margins.py
lwh2015/TuShare
f244e05e5cf208e18e6237d3b81f71f0d3c1394a
[ "MIT" ]
1
2018-09-26T08:34:02.000Z
2018-09-26T08:34:02.000Z
TuShare/view/sh_margins.py
lwh2015/TuShare
f244e05e5cf208e18e6237d3b81f71f0d3c1394a
[ "MIT" ]
null
null
null
TuShare/view/sh_margins.py
lwh2015/TuShare
f244e05e5cf208e18e6237d3b81f71f0d3c1394a
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import json from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt import tushare as ts from .publiceClass import DateEncoder @csrf_exempt def sh_margins(request): try: start = request.POST.get('start','')#选填 end = request.POST.get('end','...
26.433333
76
0.596469
0
0
0
0
716
0.79116
0
0
264
0.291713
a3de1f30f9f2a9d6efbf703fb8df76e65a62d871
1,181
py
Python
intermediate/classes/camera.py
robertob45/learning-python
7407f7d9e513792150eb2b65ebc644b5f8632c56
[ "MIT" ]
null
null
null
intermediate/classes/camera.py
robertob45/learning-python
7407f7d9e513792150eb2b65ebc644b5f8632c56
[ "MIT" ]
null
null
null
intermediate/classes/camera.py
robertob45/learning-python
7407f7d9e513792150eb2b65ebc644b5f8632c56
[ "MIT" ]
null
null
null
class Camera: """docstring for .""" def __init__(self, brand, sensor, lens, battery): self.brand = brand self.sensor = sensor self.lens = lens self.battery = battery def __str__(self): return self.brand + ' ' + self.sensor + ' ' + self.lens + ' ' + self.battery ...
27.465116
84
0.531753
1,180
0.999153
0
0
0
0
0
0
244
0.206605
a3de3ec0c21d41a610e2d90e04c28f83ca0ba4c2
7,332
py
Python
dbaas/tsuru/tests/test_service_add.py
didindinn/database-as-a-service
747de31ff8546f7874ddd654af860e130afd17a0
[ "BSD-3-Clause" ]
null
null
null
dbaas/tsuru/tests/test_service_add.py
didindinn/database-as-a-service
747de31ff8546f7874ddd654af860e130afd17a0
[ "BSD-3-Clause" ]
null
null
null
dbaas/tsuru/tests/test_service_add.py
didindinn/database-as-a-service
747de31ff8546f7874ddd654af860e130afd17a0
[ "BSD-3-Clause" ]
null
null
null
from mock import patch, MagicMock from django.contrib.auth.models import User from django.test import TestCase from django.core.urlresolvers import reverse from django.utils.datastructures import MultiValueDictKeyError from account.models import Role, Team, Organization from physical.tests.factory import EnvironmentF...
30.17284
76
0.524686
6,956
0.948718
0
0
2,143
0.29228
0
0
1,369
0.186716
a3dff7c9e786003c054a9ad079320e1b77c72f5f
439
py
Python
Main/migrations/0072_auto_20210506_0016.py
Muhammet-Yildiz/Ecommerce_Website-HepsiOrada
91935014ccc37e0ea57c8cbd2c4891941dcbb917
[ "MIT" ]
10
2021-06-01T19:30:00.000Z
2021-06-28T16:16:20.000Z
Main/migrations/0072_auto_20210506_0016.py
Muhammet-Yildiz/HepsiOrada
91935014ccc37e0ea57c8cbd2c4891941dcbb917
[ "MIT" ]
null
null
null
Main/migrations/0072_auto_20210506_0016.py
Muhammet-Yildiz/HepsiOrada
91935014ccc37e0ea57c8cbd2c4891941dcbb917
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-05-05 21:16 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Main', '0071_auto_20210506_0004'), ] operations = [ migrations.RemoveField( model_name='product', name='chooseColor', ...
19.954545
47
0.567198
354
0.806378
0
0
0
0
0
0
121
0.275626
a3e04f191bacc2a7d80fcd1ad9bb0b6bdef01714
788
py
Python
1.py
zweed4u/dailycodingproblem
6e40eaad347e283f86a11adeff01c6426211a0be
[ "MIT" ]
null
null
null
1.py
zweed4u/dailycodingproblem
6e40eaad347e283f86a11adeff01c6426211a0be
[ "MIT" ]
null
null
null
1.py
zweed4u/dailycodingproblem
6e40eaad347e283f86a11adeff01c6426211a0be
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Good morning! Here's your coding interview problem for today. This problem was recently asked by Google. Given a list of numbers and a number k, return whether any two numbers from the list add up to k. For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17. Bonus: Can ...
26.266667
97
0.593909
0
0
0
0
0
0
0
0
440
0.558376
a3e06ae8cd6e0aabca5915c1a17ae312a2a03a30
734
py
Python
gryphon/data/template_scaffolding/template/setup.py
ow-gryphon/gryphon
0b34f2f61a50af46b9d1ec1d3c15d53cf4055dd5
[ "MIT" ]
null
null
null
gryphon/data/template_scaffolding/template/setup.py
ow-gryphon/gryphon
0b34f2f61a50af46b9d1ec1d3c15d53cf4055dd5
[ "MIT" ]
1
2022-03-08T14:54:26.000Z
2022-03-08T15:02:52.000Z
gryphon/data/template_scaffolding/template/setup.py
ow-gryphon/gryphon
0b34f2f61a50af46b9d1ec1d3c15d53cf4055dd5
[ "MIT" ]
null
null
null
import json import setuptools with open("template/README.md", "r") as fh: long_description = fh.read() with open('requirements.txt') as fr: requirements = fr.read().strip().split('\n') with open('metadata.json') as fr: metadata = json.load(fr) setuptools.setup( name="", # Name of the repository ...
28.230769
59
0.688011
0
0
0
0
0
0
0
0
204
0.277929
a3e0ad9312af3accd64fc327daefc5bf89405ae4
6,558
py
Python
train_base3.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
2
2019-01-10T03:44:03.000Z
2019-05-24T08:50:14.000Z
train_base3.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
null
null
null
train_base3.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
null
null
null
""" @Time : 201/21/19 10:41 @Author : TaylorMei @Email : mhy845879017@gmail.com @Project : iccv @File : train_base3.py @Function: """ import datetime import os import torch from torch import nn from torch import optim from torch.autograd import Variable from torch.backends import cudnn from torch.ut...
34.15625
119
0.617261
0
0
0
0
0
0
0
0
1,063
0.162092
a3e0c5f65be532d1c0caf49217af9908f82568d1
574
py
Python
tests/test_comment.py
uwase-diane/min_pitch
514ab5da150244e900fd51b6563173a905ef4f29
[ "Unlicense" ]
1
2020-11-29T16:18:50.000Z
2020-11-29T16:18:50.000Z
tests/test_comment.py
uwase-diane/min_pitch
514ab5da150244e900fd51b6563173a905ef4f29
[ "Unlicense" ]
null
null
null
tests/test_comment.py
uwase-diane/min_pitch
514ab5da150244e900fd51b6563173a905ef4f29
[ "Unlicense" ]
null
null
null
import unittest from app.models import Comment, Pitch from app import db class TestPitchComment(unittest.TestCase): def setUp(self): self.new_pitch = Pitch(post = "doit", category='Quotes') self.new_comment = Comment(comment = "good comment", pitch=self.new_pitch) def test_instance(se...
33.764706
82
0.716028
500
0.87108
0
0
0
0
0
0
49
0.085366
a3e11b8d66ab1bd3a621bca6d89f7a077e4198d7
3,584
py
Python
teacher/views.py
itteamforslp/safelife_project
53af23dec0d19acf7227a43a16d7aedad443e90d
[ "MIT" ]
null
null
null
teacher/views.py
itteamforslp/safelife_project
53af23dec0d19acf7227a43a16d7aedad443e90d
[ "MIT" ]
4
2021-04-08T20:11:37.000Z
2021-09-22T19:37:57.000Z
safelife/safelife_project/teacher/views.py
CSUS-Scrumbags/safelife
2de7f83f637fae930b1176af796f4cc6f0519c86
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required from django.views.decorators.csrf import csrf_exempt from django.template import loader from django.db import connection from django.http import HttpResponseRedirect import datetime from dj...
44.8
154
0.595145
0
0
0
0
2,803
0.782087
0
0
1,060
0.295759
a3e19235aa28103e4d3ebb91450083d6b6b9fdab
5,898
py
Python
botstory/middlewares/text/text_test.py
botstory/bot-story
9c5b2fc7f7a14dbd467d70f60d5ba855ef89dac3
[ "MIT" ]
5
2017-01-14T13:42:13.000Z
2021-07-27T21:52:04.000Z
botstory/middlewares/text/text_test.py
botstory/bot-story
9c5b2fc7f7a14dbd467d70f60d5ba855ef89dac3
[ "MIT" ]
235
2016-11-07T23:33:28.000Z
2018-03-13T11:27:33.000Z
botstory/middlewares/text/text_test.py
hyzhak/bot-story
9c5b2fc7f7a14dbd467d70f60d5ba855ef89dac3
[ "MIT" ]
5
2017-01-14T13:42:14.000Z
2020-11-06T08:33:20.000Z
import logging import pytest import re from . import text from ... import matchers from ...utils import answer, SimpleTrigger logger = logging.getLogger(__name__) @pytest.mark.asyncio async def test_should_run_story_on_equal_message(): trigger = SimpleTrigger() with answer.Talk() as talk: story = ta...
25.755459
77
0.623432
0
0
0
0
4,629
0.784842
4,440
0.752798
359
0.060868
a3e2215b6ec560d3033ce187558d53690b59cd03
33,955
py
Python
pywikibot/site/_datasite.py
xqt/pwb
9a4fe27138f32952e533256195849d05855df0b0
[ "MIT" ]
null
null
null
pywikibot/site/_datasite.py
xqt/pwb
9a4fe27138f32952e533256195849d05855df0b0
[ "MIT" ]
1
2021-12-08T16:29:41.000Z
2021-12-08T16:29:41.000Z
pywikibot/site/_datasite.py
xqt/pwb
9a4fe27138f32952e533256195849d05855df0b0
[ "MIT" ]
2
2022-01-04T04:10:38.000Z
2022-01-04T04:18:18.000Z
"""Objects representing API interface to Wikibase site.""" # # (C) Pywikibot team, 2012-2022 # # Distributed under the terms of the MIT license. # import datetime import json import uuid from contextlib import suppress from typing import Optional from warnings import warn import pywikibot from pywikibot.data import ap...
36.160809
79
0.560389
33,255
0.979384
2,012
0.059255
23,907
0.704079
0
0
15,047
0.443145
a3e3eb5e33cc147796a90e6e65542a513c75576b
1,210
py
Python
app.py
MisaelVillaverde/fourier-calculator
fd50cd292e333c1a9d75e93962a0aaa0985ecef9
[ "MIT" ]
null
null
null
app.py
MisaelVillaverde/fourier-calculator
fd50cd292e333c1a9d75e93962a0aaa0985ecef9
[ "MIT" ]
1
2021-11-07T04:40:13.000Z
2021-11-07T04:40:13.000Z
app.py
MisaelVillaverde/fourier-calculator
fd50cd292e333c1a9d75e93962a0aaa0985ecef9
[ "MIT" ]
null
null
null
from flask import Flask from flask import render_template, request from flask import jsonify import requests import json app = Flask(__name__) @app.route("/symbo",methods=['POST']) def symbo(): #import pdb; pdb.set_trace() session = requests.session() token = session.get("https://es.symbolab.com/solver/s...
41.724138
349
0.717355
0
0
0
0
1,041
0.860331
0
0
688
0.568595
a3e55a939b6d954bcaed4fd506083967468d2eb3
1,584
py
Python
my_code/Chapter_2.py
kalona/Spark-The-Definitive-Guide
0b495c4710b2030aa59d5a7f4053ee0a8345d0d8
[ "Apache-2.0" ]
2
2022-01-02T14:24:29.000Z
2022-01-02T15:54:47.000Z
my_code/Chapter_2.py
kalona/Spark-The-Definitive-Guide
0b495c4710b2030aa59d5a7f4053ee0a8345d0d8
[ "Apache-2.0" ]
null
null
null
my_code/Chapter_2.py
kalona/Spark-The-Definitive-Guide
0b495c4710b2030aa59d5a7f4053ee0a8345d0d8
[ "Apache-2.0" ]
null
null
null
from pyspark.sql import SparkSession # spark = SparkSession.builder.master("local[*]").getOrCreate() spark = SparkSession.builder.getOrCreate() file_path = "C:\home_work\local_github\Spark-The-Definitive-Guide\data\/flight-data\csv\/2015-summary.csv" # COMMAND ---------- # COMMAND ---------- flightData2015 = spa...
18.418605
106
0.680556
0
0
0
0
0
0
0
0
846
0.534091
a3e58f9e7062eea97241b4b05b8e709ab53b50c3
7,508
py
Python
tests/test_intake_postgres.py
ContinuumIO/intake-postgres
fda7f7b2b6255544ea7ffd365a4ac8b2655fd226
[ "BSD-2-Clause" ]
2
2018-11-26T00:14:10.000Z
2018-12-21T01:52:44.000Z
tests/test_intake_postgres.py
ContinuumIO/intake-postgres
fda7f7b2b6255544ea7ffd365a4ac8b2655fd226
[ "BSD-2-Clause" ]
1
2018-12-20T08:41:05.000Z
2018-12-21T15:00:08.000Z
tests/test_intake_postgres.py
ContinuumIO/intake-postgres
fda7f7b2b6255544ea7ffd365a4ac8b2655fd226
[ "BSD-2-Clause" ]
3
2018-12-19T08:34:14.000Z
2019-01-24T07:58:32.000Z
import os import pickle import pytest import pandas as pd from shapely import wkt from intake_postgres import PostgresSource from intake import open_catalog from .util import verify_datasource_interface TEST_DATA_DIR = 'tests' TEST_DATA = [ ('sample1', 'sample1.csv'), ('sample2_1', 'sample2_1.csv'), ('sa...
31.546218
78
0.678876
0
0
1,033
0.137587
6,100
0.812467
0
0
1,450
0.193127
a3e6e2cb9c18b7306bf960a8fcbaf212c1159394
351
py
Python
Module_3/testImage.py
dks1018/CoffeeShopCoding
13ac1700673c86c601eb2758570920620a956e4c
[ "ADSL" ]
null
null
null
Module_3/testImage.py
dks1018/CoffeeShopCoding
13ac1700673c86c601eb2758570920620a956e4c
[ "ADSL" ]
null
null
null
Module_3/testImage.py
dks1018/CoffeeShopCoding
13ac1700673c86c601eb2758570920620a956e4c
[ "ADSL" ]
null
null
null
# file = open('C:\\Users\\dks10\\OneDrive\\Desktop\\Projects\\Code\\Python\\PythonCrypto\\Module_3\\eye.png', 'rb') file = open('encrypt_eye.png', 'rb') image = file.read() file.close() image = bytearray(image) key = 48 for index, value in enumerate(image): image[index] = value^key file = open('2eye.png','wb') ...
21.9375
115
0.675214
0
0
0
0
0
0
0
0
150
0.42735
a3e8a92c23b5ddc471c49e37f3c8dc3fb274d2ab
1,702
py
Python
ledfxcontroller/effects/temporal.py
Aircoookie/LedFx
95628fc237497dd89aaf30fdbf88f780f3330166
[ "MIT" ]
17
2018-08-31T05:51:09.000Z
2022-02-12T15:41:33.000Z
ledfxcontroller/effects/temporal.py
Aircoookie/LedFx
95628fc237497dd89aaf30fdbf88f780f3330166
[ "MIT" ]
null
null
null
ledfxcontroller/effects/temporal.py
Aircoookie/LedFx
95628fc237497dd89aaf30fdbf88f780f3330166
[ "MIT" ]
5
2019-07-15T22:12:45.000Z
2022-02-05T10:50:44.000Z
import time import logging from ledfxcontroller.effects import Effect from threading import Thread import voluptuous as vol _LOGGER = logging.getLogger(__name__) DEFAULT_RATE = 1.0 / 60.0 @Effect.no_registration class TemporalEffect(Effect): _thread_active = False _thread = None CONFIG_SCHEMA = vol.Schem...
28.847458
93
0.621622
1,487
0.873678
0
0
1,511
0.887779
0
0
365
0.214454
a3eb6e2df01a9295d0fd4c9d2d237ab568ea9c17
62
py
Python
07/c/3 - Square Census.py
Surferlul/csc-python-solutions
bea99e5e1e344d17fb2cb29d8bcbc6b108e24cee
[ "MIT" ]
null
null
null
07/c/3 - Square Census.py
Surferlul/csc-python-solutions
bea99e5e1e344d17fb2cb29d8bcbc6b108e24cee
[ "MIT" ]
null
null
null
07/c/3 - Square Census.py
Surferlul/csc-python-solutions
bea99e5e1e344d17fb2cb29d8bcbc6b108e24cee
[ "MIT" ]
null
null
null
n=int(input()) c = 1 while c**2 < n: print(c**2) c += 1
10.333333
15
0.451613
0
0
0
0
0
0
0
0
0
0
a3ec4aae5421f3c1473f18af462a1b949c04b4de
1,796
py
Python
utils.py
LuChang-CS/sherbet
d1061aca108eab8e0ccbd2202460e25261fdf1d5
[ "Apache-2.0" ]
2
2022-01-26T05:38:04.000Z
2022-03-20T08:54:18.000Z
utils.py
LuChang-CS/sherbet
d1061aca108eab8e0ccbd2202460e25261fdf1d5
[ "Apache-2.0" ]
null
null
null
utils.py
LuChang-CS/sherbet
d1061aca108eab8e0ccbd2202460e25261fdf1d5
[ "Apache-2.0" ]
null
null
null
import numpy as np class DataGenerator: def __init__(self, inputs, shuffle=True, batch_size=32): assert len(inputs) > 0 self.inputs = inputs self.idx = np.arange(len(inputs[0])) self.shuffle = shuffle self.batch_size = batch_size self.on_epoch_end() def data_le...
28.967742
72
0.577394
917
0.510579
0
0
0
0
0
0
0
0
a3ec779913e7a7957725c231bcea5cdaa55dcfbf
810
py
Python
Version1_STI.py
sudhanshu55/Speech_to_Image
7a047725b3167cfcb7a68004b3c35b2ece75fde4
[ "MIT" ]
null
null
null
Version1_STI.py
sudhanshu55/Speech_to_Image
7a047725b3167cfcb7a68004b3c35b2ece75fde4
[ "MIT" ]
null
null
null
Version1_STI.py
sudhanshu55/Speech_to_Image
7a047725b3167cfcb7a68004b3c35b2ece75fde4
[ "MIT" ]
null
null
null
from nltk.tokenize import sent_tokenize, word_tokenize from nltk.corpus import stopwords import speech_recognition as sr import nltk from google_images_download import google_images_download response = google_images_download.googleimagesdownload() r = sr.Recognizer() with sr.Microphone() as source: print("Say some...
32.4
94
0.769136
0
0
0
0
0
0
0
0
126
0.155556
a3ee75515f2face15871213c79bd272768d90d2f
231
py
Python
src/models.py
jonathanlloyd/scratchstack-httpserver
72f9bb5b1673b132786d94c017dbf2d370886b79
[ "MIT" ]
null
null
null
src/models.py
jonathanlloyd/scratchstack-httpserver
72f9bb5b1673b132786d94c017dbf2d370886b79
[ "MIT" ]
null
null
null
src/models.py
jonathanlloyd/scratchstack-httpserver
72f9bb5b1673b132786d94c017dbf2d370886b79
[ "MIT" ]
null
null
null
from dataclasses import dataclass @dataclass class Request: method: str path: str headers: dict body: bytes @dataclass class Response: status_code: int reason_phrase: str headers: dict body: bytes
14.4375
33
0.688312
171
0.74026
0
0
193
0.835498
0
0
0
0
a3ee8470edc038ce5afdd46d3446170b34e86c08
6,596
py
Python
hoomd/communicator.py
EdwardZX/hoomd-blue
c87ac3f136534e8a80359a2faceeb730f445da21
[ "BSD-3-Clause" ]
204
2018-11-26T21:15:14.000Z
2022-03-31T17:17:21.000Z
hoomd/communicator.py
EdwardZX/hoomd-blue
c87ac3f136534e8a80359a2faceeb730f445da21
[ "BSD-3-Clause" ]
769
2019-02-15T08:58:04.000Z
2022-03-31T17:36:48.000Z
hoomd/communicator.py
YMWani/hoomd-blue
e574b49f0c2c6df3a1eac9cbb86fe612f1ee4c18
[ "BSD-3-Clause" ]
91
2018-10-04T21:07:46.000Z
2022-03-26T02:44:11.000Z
# Copyright (c) 2009-2021 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause # License. """MPI communicator.""" from hoomd import _hoomd import hoomd import contextlib class Communicator(object): """MPI communicator. Args: mpi_c...
34.715789
80
0.632656
6,098
0.9245
846
0.12826
2,441
0.370073
0
0
3,736
0.566404
a3f0553d759d16377520becb3fec3c845edf0c9f
464
py
Python
src/affinity-propagation/generate_data.py
dominc8/affinity-propagation
b91b18b52eb68a7eafaadf0ceac39fe10955dcf2
[ "MIT" ]
1
2020-10-22T18:11:53.000Z
2020-10-22T18:11:53.000Z
src/affinity-propagation/generate_data.py
dominc8/affinity-propagation
b91b18b52eb68a7eafaadf0ceac39fe10955dcf2
[ "MIT" ]
null
null
null
src/affinity-propagation/generate_data.py
dominc8/affinity-propagation
b91b18b52eb68a7eafaadf0ceac39fe10955dcf2
[ "MIT" ]
null
null
null
from config import DataGeneratorCfg from sklearn.datasets.samples_generator import make_blobs import numpy as np def generate(): data, true_labels = make_blobs(n_samples=DataGeneratorCfg.n_samples, centers=DataGeneratorCfg.centers, cluster_std=DataGeneratorCfg.cluster_std, random_state=DataGeneratorCfg.random_stat...
38.666667
192
0.799569
0
0
0
0
0
0
0
0
59
0.127155
a3f0b2c627b66a9afed0141c901b2c8dc3a62a08
1,265
py
Python
peon/tests/test_project/test_file/test_function_def/test_functions/test_reflection_at_line.py
roch1990/peon
0e9e40956c05138c0820fe380b354fdd1fe95e01
[ "MIT" ]
32
2020-05-18T14:02:59.000Z
2022-02-06T15:00:12.000Z
peon/tests/test_project/test_file/test_function_def/test_functions/test_reflection_at_line.py
roch1990/peon
0e9e40956c05138c0820fe380b354fdd1fe95e01
[ "MIT" ]
42
2020-05-22T20:29:08.000Z
2021-03-10T21:24:23.000Z
peon/tests/test_project/test_file/test_function_def/test_functions/test_reflection_at_line.py
roch1990/peon
0e9e40956c05138c0820fe380b354fdd1fe95e01
[ "MIT" ]
4
2020-07-02T06:32:42.000Z
2022-01-24T22:46:02.000Z
import _ast from peon.src.project.file.function_def.function import FunctionLint class ReflectionAtLineFixture: empty_node = _ast.Pass is_instance_at_first_lvl = _ast.FunctionDef(id='isinstance', lineno=1) type_at_first_lvl = _ast.FunctionDef(id='type', lineno=1) is_instance_at_second_lvl = _ast.Func...
30.119048
103
0.746245
389
0.30751
0
0
0
0
0
0
36
0.028458
a3f0f192476289dad6988d88e198337f911d4da1
4,419
py
Python
db2_funcs.py
Nama/A.T.S.P.-Website
658db78da1b12c01ef9ead2dc44d1ecd97b178d8
[ "MIT" ]
4
2015-10-18T18:46:13.000Z
2019-11-16T02:34:05.000Z
db2_funcs.py
Adventure-Terraria-Server-Project/A.T.S.P.-Website
658db78da1b12c01ef9ead2dc44d1ecd97b178d8
[ "MIT" ]
null
null
null
db2_funcs.py
Adventure-Terraria-Server-Project/A.T.S.P.-Website
658db78da1b12c01ef9ead2dc44d1ecd97b178d8
[ "MIT" ]
2
2015-09-30T21:53:19.000Z
2019-03-22T07:59:49.000Z
############################################################################### # # '''Website Database-connection-related features''' # # # ...
33.992308
90
0.296673
0
0
0
0
0
0
0
0
2,398
0.542657
a3f15add28c75465b292cc3d301905a5d66f9500
1,169
py
Python
nlp/handler.py
rgschmitz1/tcss702
b0fdd7b6107401dc297b467c9e63773dfb8fd487
[ "MIT" ]
null
null
null
nlp/handler.py
rgschmitz1/tcss702
b0fdd7b6107401dc297b467c9e63773dfb8fd487
[ "MIT" ]
null
null
null
nlp/handler.py
rgschmitz1/tcss702
b0fdd7b6107401dc297b467c9e63773dfb8fd487
[ "MIT" ]
null
null
null
from minio import Minio import json import os from .Inspector import Inspector from .topic_model import topic_model #def handle(event): def handle(event, context): with open("/var/openfaas/secrets/minio-access-key") as f: access_key = f.read() with open("/var/openfaas/secrets/minio-secret-key") as f: ...
24.87234
74
0.622754
0
0
0
0
0
0
0
0
352
0.301112
a3f1d6f2fedc4710e7669c09fd2ad1b4f7d2b866
803
py
Python
src/pve_exporter/cli.py
jmangs/prometheus-pve-exporter
2947a1247d854791114eb5ed348a250739540708
[ "Apache-2.0" ]
null
null
null
src/pve_exporter/cli.py
jmangs/prometheus-pve-exporter
2947a1247d854791114eb5ed348a250739540708
[ "Apache-2.0" ]
null
null
null
src/pve_exporter/cli.py
jmangs/prometheus-pve-exporter
2947a1247d854791114eb5ed348a250739540708
[ "Apache-2.0" ]
null
null
null
""" Proxmox VE exporter for the Prometheus monitoring system. """ import sys from argparse import ArgumentParser from pve_exporter.http import start_http_server def main(args=None): """ Main entry point. """ parser = ArgumentParser() parser.add_argument('config', nargs='?', default='pve.yml', ...
32.12
78
0.646326
0
0
0
0
0
0
0
0
274
0.34122
a3f41aa5108b3692f20a54704fcb143543339d31
12,692
py
Python
workers/repo_info_worker/repo_info_worker.py
vinodkahuja/augur
a7688af262c2f971767962d4a20110daf4b1179a
[ "MIT" ]
2
2020-08-27T17:34:38.000Z
2020-11-05T20:31:35.000Z
workers/repo_info_worker/repo_info_worker.py
BenjaminChilson/augur
8346be0b757c907e9b67ba870a9ace32a1b87b11
[ "MIT" ]
9
2021-04-16T23:42:53.000Z
2021-05-04T04:26:55.000Z
workers/repo_info_worker/repo_info_worker.py
BenjaminChilson/augur
8346be0b757c907e9b67ba870a9ace32a1b87b11
[ "MIT" ]
7
2019-03-25T13:26:42.000Z
2020-12-30T18:43:42.000Z
#SPDX-License-Identifier: MIT import logging, os, sys, time, requests, json from datetime import datetime from multiprocessing import Process, Queue import pandas as pd import sqlalchemy as s from workers.worker_base import Worker # NOTE: This worker primarily inserts rows into the REPO_INFO table, which serves the pr...
41.75
183
0.554365
11,842
0.933029
0
0
0
0
0
0
6,163
0.485581
a3f5451025cc5163c68a3eea15dfa30712bf9362
17,929
py
Python
benchmark/my_argparser.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
2
2019-03-20T09:05:02.000Z
2019-03-20T15:23:44.000Z
benchmark/my_argparser.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
null
null
null
benchmark/my_argparser.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import print_function from __future__ import division from __future__ import absolute_import from __future__ import unicode_literals import argparse def parse_args_tolerance(): parser = argparse.ArgumentParser(description='just for tolerance') parser.add_argument("--tolerance"...
46.81201
116
0.593787
0
0
0
0
0
0
0
0
6,757
0.376875
a3f6015f3b9c537d076933e65004a8315446ca82
11,482
py
Python
src/main/python/main.py
SarthakJariwala/Shockley-Queisser-Calculator
5f9cfd4c97b8141e8b4ee8d15fa5f3cccfe25b7e
[ "MIT" ]
1
2020-04-08T06:33:47.000Z
2020-04-08T06:33:47.000Z
src/main/python/main.py
SarthakJariwala/Schokley-Queisser-Calculator
5f9cfd4c97b8141e8b4ee8d15fa5f3cccfe25b7e
[ "MIT" ]
null
null
null
src/main/python/main.py
SarthakJariwala/Schokley-Queisser-Calculator
5f9cfd4c97b8141e8b4ee8d15fa5f3cccfe25b7e
[ "MIT" ]
2
2020-05-31T02:57:55.000Z
2020-07-30T13:24:22.000Z
from fbs_runtime.application_context.PyQt5 import ApplicationContext, cached_property from fbs_runtime.platform import is_windows, is_mac # system imports import sys # module imports from PyQt5 import uic, QtWidgets from PyQt5.QtWidgets import QMessageBox import numpy as np import matplotlib.pyplot as plt import matp...
38.659933
222
0.592406
10,628
0.925623
0
0
105
0.009145
0
0
2,150
0.18725
a3f604410a10116c403796e4d6e056235535c4f9
9,832
py
Python
helpus/core.py
tov101/HelpUs
6b53d9651cf45c191774be2f70b70b130251d2a6
[ "MIT" ]
null
null
null
helpus/core.py
tov101/HelpUs
6b53d9651cf45c191774be2f70b70b130251d2a6
[ "MIT" ]
null
null
null
helpus/core.py
tov101/HelpUs
6b53d9651cf45c191774be2f70b70b130251d2a6
[ "MIT" ]
null
null
null
import io import logging import os import sys from PyQt5 import QtGui, QtCore, QtWidgets from helpus import icon_file_path from helpus import __version__ LOGGER = logging.getLogger('HelpUs') LOGGER.setLevel(logging.DEBUG) class XStream(QtCore.QObject): _stdout = None _stderr = None messageWritten = QtCo...
31.015773
111
0.610151
8,497
0.864219
0
0
442
0.044955
0
0
1,260
0.128153
a3f6dd9ede6bbc22ab1ea49e8e955647bc30a83d
2,206
py
Python
biothings/hub/dataindex/indexer_schedule.py
newgene/biothings.api
e3278695ac15a55fe420aa49c464946f81ec019d
[ "Apache-2.0" ]
30
2017-07-23T14:50:29.000Z
2022-02-08T08:08:16.000Z
biothings/hub/dataindex/indexer_schedule.py
kevinxin90/biothings.api
8ff3bbaecd72d04db4933ff944898ee7b7c0e04a
[ "Apache-2.0" ]
163
2017-10-24T18:45:40.000Z
2022-03-28T03:46:26.000Z
biothings/hub/dataindex/indexer_schedule.py
newgene/biothings.api
e3278695ac15a55fe420aa49c464946f81ec019d
[ "Apache-2.0" ]
22
2017-06-12T18:30:15.000Z
2022-03-01T18:10:47.000Z
import math class Schedule(): def __init__(self, total, batch_size): self._batch_size = batch_size self._state = "" self.total = total self.scheduled = 0 self.finished = 0 @property def _batch(self): return math.ceil(self.scheduled / self._batch_size) ...
24.241758
87
0.56165
1,552
0.703536
0
0
310
0.140526
0
0
298
0.135086
a3f7032251ab8fdd92446dda433cb7125e3c866d
447
py
Python
examples/py/async-basic.py
voBits/ccxt
edd2dd92053bd06232769a63465a43912b21eda0
[ "MIT" ]
73
2018-05-15T00:53:50.000Z
2022-03-07T14:45:11.000Z
examples/py/async-basic.py
voBits/ccxt
edd2dd92053bd06232769a63465a43912b21eda0
[ "MIT" ]
46
2020-01-06T07:32:19.000Z
2021-07-26T06:33:33.000Z
examples/py/async-basic.py
voBits/ccxt
edd2dd92053bd06232769a63465a43912b21eda0
[ "MIT" ]
11
2018-05-15T00:09:30.000Z
2022-03-07T14:45:27.000Z
# -*- coding: utf-8 -*- import asyncio import os import sys root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(root + '/python') import ccxt.async as ccxt # noqa: E402 async def test_gdax(): gdax = ccxt.gdax() markets = await gdax.load_markets() await g...
21.285714
83
0.695749
0
0
0
0
0
0
127
0.284116
54
0.120805
a3f8263738f1248425bd621ee69178be5e83cbe4
19
py
Python
pymclevel/test/__init__.py
bennettdc/MCEdit-Unified
90abfb170c65b877ac67193e717fa3a3ded635dd
[ "0BSD" ]
673
2015-01-02T02:08:13.000Z
2022-03-24T19:38:14.000Z
pymclevel/test/__init__.py
bennettdc/MCEdit-Unified
90abfb170c65b877ac67193e717fa3a3ded635dd
[ "0BSD" ]
551
2015-01-01T02:36:53.000Z
2018-02-01T00:03:12.000Z
pymclevel/test/__init__.py
bennettdc/MCEdit-Unified
90abfb170c65b877ac67193e717fa3a3ded635dd
[ "0BSD" ]
231
2015-01-01T16:47:30.000Z
2022-03-31T21:51:55.000Z
__author__ = 'Rio'
9.5
18
0.684211
0
0
0
0
0
0
0
0
5
0.263158
a3f86c1b680627a4f18d2261e3c26090baebd672
261
py
Python
xview/datasets/wrapper.py
ethz-asl/modular_semantic_segmentation
7c950f24df11540a7ddae4ff806d5b31934a3210
[ "BSD-3-Clause" ]
20
2018-08-01T15:02:59.000Z
2021-04-19T07:22:17.000Z
xview/datasets/wrapper.py
davesean/modular_semantic_segmentation
5f9e34243915b862e8fef5e6195f1e29f4cebf50
[ "BSD-3-Clause" ]
null
null
null
xview/datasets/wrapper.py
davesean/modular_semantic_segmentation
5f9e34243915b862e8fef5e6195f1e29f4cebf50
[ "BSD-3-Clause" ]
9
2018-08-01T15:03:03.000Z
2019-12-17T05:12:48.000Z
from abc import ABCMeta, abstractmethod class DataWrapper: """Interface for access to datasets.""" __metaclass__ = ABCMeta @abstractmethod def next(self): """Returns next minibatch for training.""" return NotImplementedError
20.076923
50
0.685824
218
0.835249
0
0
121
0.463602
0
0
81
0.310345
a3f937683bc5952ca13a05b1c4f5742ed9f21027
2,307
py
Python
partd/core.py
jrbourbeau/partd
74016a296a760de9c7a0e0d4b012a3478c9a0831
[ "BSD-3-Clause" ]
2
2018-12-29T13:47:40.000Z
2018-12-29T13:47:49.000Z
partd/core.py
jrbourbeau/partd
74016a296a760de9c7a0e0d4b012a3478c9a0831
[ "BSD-3-Clause" ]
2
2021-05-11T16:00:55.000Z
2021-08-23T20:45:22.000Z
partd/core.py
jrbourbeau/partd
74016a296a760de9c7a0e0d4b012a3478c9a0831
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import os import shutil import locket import string from toolz import memoize from contextlib import contextmanager from .utils import nested_get, flatten # http://stackoverflow.com/questions/295135/turn-a-string-into-a-valid-filename-in-python valid_chars = "-_.() " + string....
24.806452
89
0.604681
1,358
0.588643
0
0
0
0
0
0
334
0.144777
a3f93f71de692d828156d343cfeb58d0babb5f0e
1,248
py
Python
pretraining/model_ensemble.py
VITA-Group/Adv-SS-Pretraining
4ffbebea582f858ec6165f082f52ded1fc9b817d
[ "MIT" ]
32
2020-08-31T01:28:29.000Z
2022-03-19T05:40:05.000Z
pretraining/model_ensemble.py
VITA-Group/Adv-SS-Pretraining
4ffbebea582f858ec6165f082f52ded1fc9b817d
[ "MIT" ]
null
null
null
pretraining/model_ensemble.py
VITA-Group/Adv-SS-Pretraining
4ffbebea582f858ec6165f082f52ded1fc9b817d
[ "MIT" ]
7
2020-09-19T14:03:47.000Z
2020-12-10T00:42:08.000Z
''' model ensemble for cifar10 // input size(32,32) ''' import torch import torchvision import copy import torch.nn as nn from resnetv2 import ResNet50 as resnet50v2 def split_resnet50(model): return nn.Sequential( model.conv1, model.layer1, model.layer2, mode...
23.54717
54
0.604167
905
0.72516
0
0
0
0
0
0
58
0.046474
a3fa8d70909c40648b30be357bd41df712b21d5f
1,519
py
Python
scripts/ccdf.py
glciampaglia/HoaxyBots
db8d2b7d9927d5d4d94ded125f9785590dace906
[ "MIT" ]
null
null
null
scripts/ccdf.py
glciampaglia/HoaxyBots
db8d2b7d9927d5d4d94ded125f9785590dace906
[ "MIT" ]
null
null
null
scripts/ccdf.py
glciampaglia/HoaxyBots
db8d2b7d9927d5d4d94ded125f9785590dace906
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Function that implement Complement the Complementary Cumulative Distribution Function (CCDF). """ # # written by Chengcheng Shao <sccotte@gmail.com> import numpy as np import pandas as pd def ccdf(s): """ Parameters: `s`, series, the values of s should be variable to be ha...
25.745763
72
0.601712
0
0
0
0
0
0
0
0
613
0.403555
a3fac0d6ce92c1972de436f2ce748bbe19017407
5,335
py
Python
lifelines/fitters/kaplan_meier_fitter.py
eliracho37/lifelines
b1c6c2732d1ccfc2ae08f7178371d0f95ae3027b
[ "MIT" ]
null
null
null
lifelines/fitters/kaplan_meier_fitter.py
eliracho37/lifelines
b1c6c2732d1ccfc2ae08f7178371d0f95ae3027b
[ "MIT" ]
null
null
null
lifelines/fitters/kaplan_meier_fitter.py
eliracho37/lifelines
b1c6c2732d1ccfc2ae08f7178371d0f95ae3027b
[ "MIT" ]
1
2020-05-06T14:46:25.000Z
2020-05-06T14:46:25.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import numpy as np import pandas as pd from lifelines.fitters import UnivariateFitter from lifelines.utils import _preprocess_inputs, _additive_estimate, StatError, inv_normal_cdf,\ median_survival_times from lifelines.plotting import plot_loglogs cla...
51.298077
171
0.662418
5,017
0.940394
0
0
0
0
0
0
2,296
0.430366
a3fad8e543716f6089f3ea4419938d3d14b1b941
8,498
py
Python
pydmfet/qcwrap/pyscf_rhf.py
fishjojo/pydmfe
93cfc655314933d3531b5733521a1f95a044f6cb
[ "MIT" ]
3
2021-02-26T06:26:00.000Z
2022-02-20T08:58:20.000Z
pydmfet/qcwrap/pyscf_rhf.py
fishjojo/pydmfet
93cfc655314933d3531b5733521a1f95a044f6cb
[ "MIT" ]
null
null
null
pydmfet/qcwrap/pyscf_rhf.py
fishjojo/pydmfet
93cfc655314933d3531b5733521a1f95a044f6cb
[ "MIT" ]
null
null
null
import numpy as np from pydmfet import tools from .fermi import find_efermi, entropy_corr from pyscf import ao2mo, gto, scf, dft, lib from pydmfet.qcwrap import fermi import time from functools import reduce def scf_oei( OEI, Norb, Nelec, smear_sigma = 0.0): OEI = 0.5*(OEI.T + OEI) eigenvals, eigenvecs = np.l...
27.324759
120
0.567075
2,198
0.258649
0
0
0
0
0
0
2,751
0.323723
a3fb5ed7db5f1e3f6fa910bcda6e0eacb2e1cb30
2,470
py
Python
backends/fortify/summarize-fortify.py
tautschnig/one-line-scan
24e1deedd595e3406eb8d5c69ff9629c5a87d0aa
[ "Apache-2.0" ]
16
2018-05-21T09:53:01.000Z
2022-02-15T08:48:11.000Z
backends/fortify/summarize-fortify.py
tautschnig/one-line-scan
24e1deedd595e3406eb8d5c69ff9629c5a87d0aa
[ "Apache-2.0" ]
6
2018-07-09T06:13:05.000Z
2020-11-11T14:49:35.000Z
backends/fortify/summarize-fortify.py
tautschnig/one-line-scan
24e1deedd595e3406eb8d5c69ff9629c5a87d0aa
[ "Apache-2.0" ]
5
2019-05-27T19:51:48.000Z
2021-12-14T13:04:49.000Z
#!/usr/bin/env python # # Copyright Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENS...
33.835616
77
0.681781
0
0
0
0
0
0
0
0
1,402
0.567611
a3fc78d36ccfb5728f04880a3739b99e0d64d7a7
91,209
py
Python
angr/procedures/definitions/win32_wsmsvc.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_wsmsvc.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_wsmsvc.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
1,036.465909
6,433
0.744082
0
0
0
0
0
0
0
0
28,165
0.308796
a3fc7e9736f8ff7c6e4924c0d8a73afdf2dd7f02
81
py
Python
aiolookin/__init__.py
bachya/aiolookin
553731047b6910b1cb74667fbb343faf9b8656ac
[ "MIT" ]
null
null
null
aiolookin/__init__.py
bachya/aiolookin
553731047b6910b1cb74667fbb343faf9b8656ac
[ "MIT" ]
3
2021-08-16T21:32:30.000Z
2021-10-05T00:30:03.000Z
aiolookin/__init__.py
bachya/aiolookin
553731047b6910b1cb74667fbb343faf9b8656ac
[ "MIT" ]
null
null
null
"""Define the aiolookin package.""" from .device import async_get_device # noqa
27
44
0.753086
0
0
0
0
0
0
0
0
41
0.506173
a3fcab0b445701487209c1560ead48389dc4c643
2,067
py
Python
odepy/collision_space.py
yuemingl/ode-python-1
a9a12d9d3b7e611874a8d30f6a5c0b83b6087f86
[ "MIT" ]
9
2020-05-31T09:22:40.000Z
2021-09-15T18:15:15.000Z
odepy/collision_space.py
yuemingl/ode-python-1
a9a12d9d3b7e611874a8d30f6a5c0b83b6087f86
[ "MIT" ]
1
2020-11-15T11:38:45.000Z
2020-11-15T11:38:45.000Z
odepy/collision_space.py
yuemingl/ode-python-1
a9a12d9d3b7e611874a8d30f6a5c0b83b6087f86
[ "MIT" ]
2
2020-11-14T21:47:01.000Z
2021-08-03T02:28:10.000Z
# -*- coding: utf-8 -*- from .common import loadOde from .common import dGeomID from .common import dSpaceID from .common import dVector3 from ctypes import POINTER from ctypes import CFUNCTYPE from ctypes import c_void_p from ctypes import c_int32 dNearCallback = CFUNCTYPE(None, c_void_p, dGeomID, dGeomID) def dSi...
45.933333
104
0.786164
0
0
0
0
0
0
0
0
428
0.207063
a3fcd7848a2f35d426c874d1ab768f72fe615409
1,563
py
Python
bst.py
phildavis17/DS_A
2d950a62b1ea36dff5dcd2c17266ddf088719472
[ "MIT" ]
null
null
null
bst.py
phildavis17/DS_A
2d950a62b1ea36dff5dcd2c17266ddf088719472
[ "MIT" ]
null
null
null
bst.py
phildavis17/DS_A
2d950a62b1ea36dff5dcd2c17266ddf088719472
[ "MIT" ]
null
null
null
class BSTNode: def __init__(self, data = None) -> None: self.data = data self.left = None self.right = None def __repr__(self) -> str: return(f"BSTNode({self.data})") def __str__(self) -> str: return str(self.data) def __eq__(self, o: object) -> ...
20.565789
66
0.525912
1,559
0.997441
0
0
0
0
0
0
397
0.253999
a3fdeb4319b73c8b5241edc4f4a1fca818eec403
4,279
py
Python
pctest/test_publish.py
DaveWK/pyth-client
4332ef3287f584be46ec38ddd800cae8d4e7b792
[ "Apache-2.0" ]
null
null
null
pctest/test_publish.py
DaveWK/pyth-client
4332ef3287f584be46ec38ddd800cae8d4e7b792
[ "Apache-2.0" ]
null
null
null
pctest/test_publish.py
DaveWK/pyth-client
4332ef3287f584be46ec38ddd800cae8d4e7b792
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # pip3 install websockets import asyncio import websockets import json import datetime import sys class test_publish: idnum = 1 def __init__( self, sym, price, spread ): self.symbol = sym self.pidnum = test_publish.idnum test_publish.idnum += 1 self.sidnum = test_publish.idnum ...
28.151316
77
0.597803
2,522
0.58939
0
0
0
0
2,315
0.541014
1,280
0.299135
a3fdf673713dab6653653e81925c27451e5f5544
1,866
py
Python
Python/other/merge_interval.py
TechSpiritSS/NeoAlgo
08f559b56081a191db6c6b1339ef37311da9e986
[ "MIT" ]
897
2020-06-25T00:12:52.000Z
2022-03-24T00:49:31.000Z
Python/other/merge_interval.py
AnshikaAgrawal5501/NeoAlgo
d66d0915d8392c2573ba05d5528e00af52b0b996
[ "MIT" ]
5,707
2020-06-24T17:53:28.000Z
2022-01-22T05:03:15.000Z
Python/other/merge_interval.py
AnshikaAgrawal5501/NeoAlgo
d66d0915d8392c2573ba05d5528e00af52b0b996
[ "MIT" ]
1,817
2020-06-25T03:51:05.000Z
2022-03-29T05:14:07.000Z
''' Given an array of intervals, merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input. Input: intervals = [[1,3],[2,6],[8,10],[15,18]] Output: [[1,6],[8,10],[15,18]] Explanation: Since intervals [1,3] and [2,6] overlaps, merge them into [1,6]....
29.619048
95
0.659164
0
0
0
0
0
0
0
0
1,079
0.578242
a3fe08a8aed62efc53ccd8e1fe4f7bf8c6183509
9,708
py
Python
tests/test_all.py
InnovativeTravel/humilis-lambdautils
344e13efb68d19f61f0be8178eb6cc2219913fb0
[ "MIT" ]
null
null
null
tests/test_all.py
InnovativeTravel/humilis-lambdautils
344e13efb68d19f61f0be8178eb6cc2219913fb0
[ "MIT" ]
null
null
null
tests/test_all.py
InnovativeTravel/humilis-lambdautils
344e13efb68d19f61f0be8178eb6cc2219913fb0
[ "MIT" ]
null
null
null
"""Unit tests.""" import inspect import json from mock import Mock import os import sys import uuid import pytest # Add the lambda directory to the python library search path lambda_dir = os.path.join( os.path.dirname(inspect.getfile(inspect.currentframe())), '..') sys.path.append(lambda_dir) import lambdautils...
41.844828
79
0.642872
42
0.004326
0
0
6,857
0.706325
0
0
2,733
0.28152
a3ff284c249c767a8e6d1b66a73bf03b2d790a9e
366
py
Python
packages/starcheck/post_regress.py
sot/ska_testr
dd84b89d0b5ebf6158c6cda4c1df432138044e20
[ "MIT" ]
null
null
null
packages/starcheck/post_regress.py
sot/ska_testr
dd84b89d0b5ebf6158c6cda4c1df432138044e20
[ "MIT" ]
27
2016-10-19T19:39:46.000Z
2022-03-04T14:56:40.000Z
packages/starcheck/post_regress.py
sot/ska_testr
dd84b89d0b5ebf6158c6cda4c1df432138044e20
[ "MIT" ]
null
null
null
import os from testr.packages import make_regress_files regress_files = ['starcheck.txt', 'starcheck/pcad_att_check.txt'] clean = {'starcheck.txt': [(r'\s*Run on.*[\n\r]*', ''), (os.environ['SKA'], '')], 'starcheck/pcad_att_check.txt': [(os.environ['SKA'], '')]} m...
30.5
67
0.592896
0
0
0
0
0
0
0
0
127
0.346995
430006e2469bed3f7e4c977ba2de4f246799468c
1,714
py
Python
testsite/wsgi.py
stungkit/djaodjin-saas
93c8631509ffd5b0fb91283cd4a4aeaf9826e97e
[ "BSD-2-Clause" ]
null
null
null
testsite/wsgi.py
stungkit/djaodjin-saas
93c8631509ffd5b0fb91283cd4a4aeaf9826e97e
[ "BSD-2-Clause" ]
null
null
null
testsite/wsgi.py
stungkit/djaodjin-saas
93c8631509ffd5b0fb91283cd4a4aeaf9826e97e
[ "BSD-2-Clause" ]
null
null
null
""" WSGI config for testsite project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION``...
34.979592
80
0.748541
0
0
0
0
0
0
0
0
1,149
0.670362
4300329d7c7ed5214d1d6d7a95fd6dd634fbc6d1
11,269
py
Python
authserver/maildaemons/forwarder/server.py
jdelic/authserver
e800664436b252fcdf224a9af46a1122c87be3ca
[ "MIT" ]
8
2017-07-04T10:07:32.000Z
2022-01-02T10:31:43.000Z
authserver/maildaemons/forwarder/server.py
jdelic/authserver
e800664436b252fcdf224a9af46a1122c87be3ca
[ "MIT" ]
14
2020-02-11T21:42:38.000Z
2022-03-28T16:00:55.000Z
authserver/maildaemons/forwarder/server.py
jdelic/authserver
e800664436b252fcdf224a9af46a1122c87be3ca
[ "MIT" ]
1
2020-03-01T10:39:28.000Z
2020-03-01T10:39:28.000Z
#!/usr/bin/env python3 -u # -* encoding: utf-8 *- import argparse import asyncore import json import logging import signal import sys import os from types import FrameType from typing import Tuple, Sequence, Any, Union, Optional, List, Dict from concurrent.futures import ThreadPoolExecutor as Pool import daemon from...
45.623482
119
0.604401
6,406
0.568462
0
0
0
0
0
0
3,390
0.300825
430070d2630f84dfb573574ae265484cbf0ee429
2,074
py
Python
services/backend/project/api/sites.py
kzkaneoka/custom-job-search
ca6054aee979cb1eff701dc5ba0cf56fb92baf44
[ "MIT" ]
null
null
null
services/backend/project/api/sites.py
kzkaneoka/custom-job-search
ca6054aee979cb1eff701dc5ba0cf56fb92baf44
[ "MIT" ]
1
2021-06-02T00:51:06.000Z
2021-06-02T00:51:06.000Z
services/backend/project/api/sites.py
kzkaneoka/custom-job-search
ca6054aee979cb1eff701dc5ba0cf56fb92baf44
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup, element class Indeed: def __init__(self, words, location, offset): self.url = "https://www.indeed.com/jobs?as_and={}&l={}&sort=date&start={}".format( "+".join(set(d.strip().lower() for d in words.split(",") if d)), "+".join(list(d.lowe...
38.407407
90
0.450338
2,016
0.972035
0
0
0
0
0
0
298
0.143684
4301cf37bd9ece6b54456c22562dfc5aa8e8a7cb
748
py
Python
product_details/utils.py
gene1wood/django-product-details
53f245d76fa11d073ba686e0ece7b0293ec21942
[ "BSD-3-Clause" ]
null
null
null
product_details/utils.py
gene1wood/django-product-details
53f245d76fa11d073ba686e0ece7b0293ec21942
[ "BSD-3-Clause" ]
null
null
null
product_details/utils.py
gene1wood/django-product-details
53f245d76fa11d073ba686e0ece7b0293ec21942
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.core.exceptions import ImproperlyConfigured from product_details import settings_defaults def settings_fallback(key): """Grab user-defined settings, or fall back to default.""" try: return getattr(settings, key) except (AttributeError, ImportError, Imp...
29.92
63
0.720588
0
0
0
0
0
0
0
0
124
0.165775
4302245408f7928b493623fbaac5ca5daff6a97c
229
py
Python
kattis/Soda Slurper.py
jaredliw/python-question-bank
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2021-04-08T07:49:15.000Z
2021-04-08T07:49:15.000Z
kattis/Soda Slurper.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
null
null
null
kattis/Soda Slurper.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2022-01-23T02:12:24.000Z
2022-01-23T02:12:24.000Z
# CPU: 0.06 s possessed, found, condition = map(int, input().split()) possessed += found count = 0 while possessed >= condition: div, mod = divmod(possessed, condition) count += div possessed = div + mod print(count)
22.9
55
0.663755
0
0
0
0
0
0
0
0
13
0.056769
430328989c54e456016360148c864a60ebe10a5f
6,405
py
Python
efficientdet/dataset/csv_.py
HyunjiEllenPak/automl
fedf04adf12c5fd11045ea06e2f5c11a5a5490c4
[ "Apache-2.0" ]
null
null
null
efficientdet/dataset/csv_.py
HyunjiEllenPak/automl
fedf04adf12c5fd11045ea06e2f5c11a5a5490c4
[ "Apache-2.0" ]
null
null
null
efficientdet/dataset/csv_.py
HyunjiEllenPak/automl
fedf04adf12c5fd11045ea06e2f5c11a5a5490c4
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017-2018 yhenon (https://github.com/yhenon/) Copyright 2017-2018 Fizyr (https://fizyr.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-...
37.023121
119
0.577518
0
0
0
0
0
0
0
0
3,079
0.480718