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
70e52df4dc9953cd6ed3848558c135eb3f637b16
1,984
py
Python
nbpkg/pkginspect/nbpkgdescr.py
kiaderouiche/nbpkgquery
17c996398fad922276c2dc250392959e7bfc31f0
[ "MIT" ]
1
2017-05-27T13:30:41.000Z
2017-05-27T13:30:41.000Z
nbpkg/pkginspect/nbpkgdescr.py
kiaderouiche/nbpkgquery
17c996398fad922276c2dc250392959e7bfc31f0
[ "MIT" ]
null
null
null
nbpkg/pkginspect/nbpkgdescr.py
kiaderouiche/nbpkgquery
17c996398fad922276c2dc250392959e7bfc31f0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' nbpkg defspec ''' NBPKG_MAGIC_NUMBER = b'\x1f\x8b' NBPKG_HEADER_MAGIC_NUMBER = '\037\213' NBPKGINFO_MIN_NUMBER = 1000 NBPKGINFO_MAX_NUMBER = 1146 # data types definition NBPKG_DATA_TYPE_NULL = 0 NBPKG_DATA_TYPE_CHAR = 1 NBPKG_DATA_TYPE_INT8 = 2 NBPKG_DATA_TYPE_INT16 = 3 NBPKG_DATA_TYPE_IN...
25.435897
48
0.703629
0
0
0
0
0
0
0
0
281
0.141633
70e5936d22684ae5af27f5e2945439d629f68c79
15,699
py
Python
utils/speakerid.py
JaejinCho/espnet
a52bdebb08558b63df23564d6e67dfcba8a41d78
[ "Apache-2.0" ]
4
2020-10-28T00:34:21.000Z
2021-08-02T05:43:59.000Z
utils/speakerid.py
JaejinCho/espnet_spkidtts
a52bdebb08558b63df23564d6e67dfcba8a41d78
[ "Apache-2.0" ]
null
null
null
utils/speakerid.py
JaejinCho/espnet_spkidtts
a52bdebb08558b63df23564d6e67dfcba8a41d78
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import math import torch.utils.model_zoo as model_zoo import numpy as np from scipy.fftpack import dct, idct from scipy import linalg as la import torch.nn.functional as F import logging def conv3x3(in_planes, out_planes, stride=1): """3x3 convolution with padding""" return n...
39.946565
195
0.607873
9,451
0.602013
0
0
0
0
0
0
3,015
0.19205
70e60e00a82583d2b84159dd671f305b0d950716
642
py
Python
import_data.py
plug8955/python-mysql-excel
96bc11104fc2c488c8825b2c19a086a50f50153f
[ "MIT" ]
null
null
null
import_data.py
plug8955/python-mysql-excel
96bc11104fc2c488c8825b2c19a086a50f50153f
[ "MIT" ]
null
null
null
import_data.py
plug8955/python-mysql-excel
96bc11104fc2c488c8825b2c19a086a50f50153f
[ "MIT" ]
1
2022-02-14T12:41:19.000Z
2022-02-14T12:41:19.000Z
from openpyxl import load_workbook import mysql.connector # Excel workbook = load_workbook('imported.xlsx') sheet = workbook.active values = [] for row in sheet.iter_rows(min_row=2, values_only=True): print(row) values.append(row) # Database db = mysql.connector.connect( host='localhost', port=3306,...
19.454545
58
0.680685
0
0
0
0
0
0
0
0
227
0.333824
70e6640bc54f7fa74215cf2923affbdce6cc10d3
7,492
py
Python
pytorch_pfn_extras/nn/modules/lazy.py
kmaehashi/pytorch-pfn-extras
70b5db0dad8a8e342cc231e8a18c6f32ce250d1c
[ "MIT" ]
null
null
null
pytorch_pfn_extras/nn/modules/lazy.py
kmaehashi/pytorch-pfn-extras
70b5db0dad8a8e342cc231e8a18c6f32ce250d1c
[ "MIT" ]
null
null
null
pytorch_pfn_extras/nn/modules/lazy.py
kmaehashi/pytorch-pfn-extras
70b5db0dad8a8e342cc231e8a18c6f32ce250d1c
[ "MIT" ]
null
null
null
# mypy: ignore-errors import inspect from typing import Tuple import warnings import torch class LazyInitializationMixin: """A mixin for modules that lazily initialize buffers and parameters. Unlike regular modules, subclasses of this module can initialize buffers and parameters outside of the constru...
43.306358
102
0.654031
7,393
0.986786
0
0
1,098
0.146556
0
0
4,188
0.558996
70e6d36077cbded389cedfadb9bbd0925029daf4
7,286
py
Python
tensorflow/python/keras/distribute/mnist_multi_worker.py
6paklata/tensorflow
d6464431256192d2cf1c9b20271792309af7a354
[ "Apache-2.0" ]
2
2019-05-08T10:02:57.000Z
2019-05-08T10:02:59.000Z
tensorflow/python/keras/distribute/mnist_multi_worker.py
gurkangokdemir/tensorflow
2e6446f8a9be31c59080b643d04f9b463c4201cf
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/distribute/mnist_multi_worker.py
gurkangokdemir/tensorflow
2e6446f8a9be31c59080b643d04f9b463c4201cf
[ "Apache-2.0" ]
2
2020-03-25T12:52:20.000Z
2020-08-11T09:31:43.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.79798
94
0.734971
0
0
0
0
0
0
0
0
2,663
0.365495
70e79659cfe4792e70e9f358e5ca24377633a170
12,404
py
Python
src/misc/decorator.py
JunManYuanLong/PyComs
5df8b35048e5db4a8edf53e6703ef6d2ffd15cc6
[ "MIT" ]
null
null
null
src/misc/decorator.py
JunManYuanLong/PyComs
5df8b35048e5db4a8edf53e6703ef6d2ffd15cc6
[ "MIT" ]
null
null
null
src/misc/decorator.py
JunManYuanLong/PyComs
5df8b35048e5db4a8edf53e6703ef6d2ffd15cc6
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from copy import deepcopy from functools import wraps from flask import request from src.misc.render import json_detail_render from config.settings import YML_JSON, logger import datetime,json def transfer(column): def dec(func): @wraps(func) ...
36.482353
128
0.411238
0
0
0
0
9,442
0.755602
0
0
768
0.06146
70e99c7d827bb0c5ae82899785cbc3e22a7d8060
3,303
py
Python
modules/tools/open_space_visualization/open_space_roi_visualizer.py
jzjonah/apollo
bc534789dc0548bf2d27f8d72fe255d5c5e4f951
[ "Apache-2.0" ]
22,688
2017-07-04T23:17:19.000Z
2022-03-31T18:56:48.000Z
modules/tools/open_space_visualization/open_space_roi_visualizer.py
Songjiarui3313/apollo
df9113ae656e28e5374db32529d68e59455058a0
[ "Apache-2.0" ]
4,804
2017-07-04T22:30:12.000Z
2022-03-31T12:58:21.000Z
modules/tools/open_space_visualization/open_space_roi_visualizer.py
Songjiarui3313/apollo
df9113ae656e28e5374db32529d68e59455058a0
[ "Apache-2.0" ]
9,985
2017-07-04T22:01:17.000Z
2022-03-31T14:18:16.000Z
#!/usr/bin/env python3 ############################################################################### # Copyright 2018 The Apollo 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...
37.534091
113
0.719043
0
0
0
0
0
0
0
0
1,054
0.319104
70ea7b65b45e04018fd11eba650c698a19bfac5d
556
py
Python
build.py
MolGL/MolGL
e83b3a1edc83844368a8515b1324498aed418c7a
[ "Apache-2.0" ]
2
2016-11-15T17:06:55.000Z
2017-02-16T20:31:02.000Z
build.py
MolGL/MolGL
e83b3a1edc83844368a8515b1324498aed418c7a
[ "Apache-2.0" ]
8
2016-11-04T05:51:51.000Z
2016-11-18T06:44:30.000Z
build.py
MolGL/MolGL
e83b3a1edc83844368a8515b1324498aed418c7a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # ———————————————————————————————————————————————————————————————————————————— # Copyright © 2014 - 2016, Sequømics Research, All rights reserved. # Copyright © 2014 - 2016, Sequømics Corporation. All rights reserved. # —————————————————————————————————————————————————————...
50.545455
78
0.413669
0
0
0
0
0
0
0
0
1,006
0.990157
70eb8ef9456f695c6b3ab84cff23848ef3f71a4b
7,767
py
Python
adapted_network.py
Hong-Ming/Adaptive_Network_Slimming
17f2e56d7bc41070d02799845af3bc353a76d766
[ "MIT" ]
null
null
null
adapted_network.py
Hong-Ming/Adaptive_Network_Slimming
17f2e56d7bc41070d02799845af3bc353a76d766
[ "MIT" ]
null
null
null
adapted_network.py
Hong-Ming/Adaptive_Network_Slimming
17f2e56d7bc41070d02799845af3bc353a76d766
[ "MIT" ]
null
null
null
import sys sys.path.append('./train_model') import torch import torch.nn as nn import torch.nn.functional as F import torchvision import torchvision.transforms as transforms import numpy as np import os import argparse parser = argparse.ArgumentParser(description='Adaptive Network Slimming') parser.add_argument('-n...
35.958333
108
0.557744
0
0
0
0
0
0
0
0
1,454
0.187202
70ecb14bd53988ce2d1a7a1d376ec3db5fa8d456
2,370
py
Python
mcetl/user/access.py
materials-commons/pymcetl
b4311ba50bb35bc36527b9d313a91778f9550a92
[ "MIT" ]
null
null
null
mcetl/user/access.py
materials-commons/pymcetl
b4311ba50bb35bc36527b9d313a91778f9550a92
[ "MIT" ]
null
null
null
mcetl/user/access.py
materials-commons/pymcetl
b4311ba50bb35bc36527b9d313a91778f9550a92
[ "MIT" ]
null
null
null
from flask import request from ..utils.mcexceptions import AccessNotAllowedException from . import apikeydb from ..database.DB import DbConnection _user_access_matrix = {} _admins = [] def check(user, owner, project_id="Unknown"): if not allowed(user, owner, project_id): raise AccessNotAllowedException(p...
23.465347
68
0.654008
0
0
0
0
0
0
0
0
73
0.030802
70ecc3bb253029a64b550829a901f26d30203690
31
py
Python
arxivtimes_indicator/server/__init__.py
chakki-works/arXivTimesIndicator
501413571dc0024b5a9d0bc2e9f17f805de92690
[ "Apache-2.0" ]
34
2017-08-02T07:01:13.000Z
2019-01-06T10:35:57.000Z
arxivtimes_indicator/server/__init__.py
arXivTimes/arXivTimesIndicator
501413571dc0024b5a9d0bc2e9f17f805de92690
[ "Apache-2.0" ]
4
2017-08-09T06:47:26.000Z
2017-10-13T01:47:01.000Z
arxivtimes_indicator/server/__init__.py
arXivTimes/arXivTimesIndicator
501413571dc0024b5a9d0bc2e9f17f805de92690
[ "Apache-2.0" ]
2
2020-10-21T12:31:02.000Z
2021-11-05T05:26:15.000Z
from .server import Application
31
31
0.870968
0
0
0
0
0
0
0
0
0
0
70eea58422fe48ef43948fed2ecd47c6729bad81
5,056
py
Python
national-rail/stations_and_services_scraper/config/aws_config.py
weizhi-luo/commute
a1d3e412df11971bb26db6316cf43bda29274dea
[ "MIT" ]
null
null
null
national-rail/stations_and_services_scraper/config/aws_config.py
weizhi-luo/commute
a1d3e412df11971bb26db6316cf43bda29274dea
[ "MIT" ]
null
null
null
national-rail/stations_and_services_scraper/config/aws_config.py
weizhi-luo/commute
a1d3e412df11971bb26db6316cf43bda29274dea
[ "MIT" ]
null
null
null
"""Represent AWS config settings""" import json from typing import Iterable, Mapping import boto3 from datetime import datetime, timedelta from data_model import OriginAndCallingPointNames from .config import ConfigSettings class AwsAppConfigSettings(ConfigSettings): """Represent a collection of config settings...
39.811024
77
0.668315
4,555
0.90091
0
0
0
0
0
0
1,343
0.265625
70ef08ce99b2902cbf44d027970fd4e38a0d4f18
712
py
Python
src/tests/test_loading.py
danmysak/ipa-parser
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
[ "MIT" ]
null
null
null
src/tests/test_loading.py
danmysak/ipa-parser
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
[ "MIT" ]
null
null
null
src/tests/test_loading.py
danmysak/ipa-parser
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
[ "MIT" ]
null
null
null
from timeit import timeit from unittest import TestCase from ..ipaparser import IPA, load __all__ = [ 'TestLoading', ] FACTOR = 10.0 def is_much_larger(a: float, b: float) -> bool: return a > b * FACTOR def are_roughly_equal(a: float, b: float) -> bool: return not is_much_larger(a, b) and not is_much...
25.428571
69
0.688202
375
0.526685
0
0
0
0
0
0
27
0.037921
70ef510161655a6820dfbc438830cb203101745d
142
py
Python
src/v2/log.py
Strangemother/project-conceptnet-graphing
3fd1b3188088090c71c95b1a660770482123ce22
[ "MIT" ]
null
null
null
src/v2/log.py
Strangemother/project-conceptnet-graphing
3fd1b3188088090c71c95b1a660770482123ce22
[ "MIT" ]
null
null
null
src/v2/log.py
Strangemother/project-conceptnet-graphing
3fd1b3188088090c71c95b1a660770482123ce22
[ "MIT" ]
null
null
null
import logging logging.basicConfig(level=logging.DEBUG) def log(*a): logging.info(' '.join(map(str, a))) warn = logging.warn
14.2
41
0.647887
0
0
0
0
0
0
0
0
3
0.021127
70efcdc28513f6b7a89674d1c7aad0fab1e49771
511
py
Python
Newbies/namedtuple.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
1
2021-12-17T11:03:13.000Z
2021-12-17T11:03:13.000Z
Newbies/namedtuple.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
1
2020-02-05T00:14:43.000Z
2020-02-06T09:22:49.000Z
Newbies/namedtuple.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Named tuple example.""" from collections import namedtuple Car = namedtuple('Car', 'color mileage') # Our new "Car" class works as expected: MY_CAR = Car('red', 3812.4) print(MY_CAR.color) print(MY_CAR.mileage) # We get a nice string repr for free: print(MY_CAR) try: MY_CAR.color = 'bl...
22.217391
53
0.690802
0
0
0
0
0
0
0
0
221
0.432485
70efd770aa4920709c5661af3d95528fefd02946
6,750
py
Python
tests/components/blebox/test_config_flow.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
tests/components/blebox/test_config_flow.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
tests/components/blebox/test_config_flow.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""Test Open Peer Power config flow for BleBox devices.""" from unittest.mock import DEFAULT, AsyncMock, PropertyMock, patch import blebox_uniapi import pytest from openpeerpower import config_entries, data_entry_flow from openpeerpower.components.blebox import config_flow from openpeerpower.setup import async_setup...
34.974093
81
0.707556
0
0
232
0.03437
672
0.099556
4,729
0.700593
1,343
0.198963
70f08443e2af2ec2ef573ac21c7eed5de4719665
3,521
py
Python
train.py
turbohiro/IDCard_detection
c7c4949bdbe00cb759a41bf8d7c6f4ddfe704213
[ "MIT" ]
null
null
null
train.py
turbohiro/IDCard_detection
c7c4949bdbe00cb759a41bf8d7c6f4ddfe704213
[ "MIT" ]
null
null
null
train.py
turbohiro/IDCard_detection
c7c4949bdbe00cb759a41bf8d7c6f4ddfe704213
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import os import cv2 import glob import seaborn as sns from PIL import Image import glob import tensorflow as tf import model os.environ['CUDA_VISIBLE_DEVICES']='0' dataDir = '/data/jupyter/libin713/sample_IDCard' def read_and_decode(filename,batch_size): # 读入dog_tr...
39.561798
112
0.648963
0
0
0
0
0
0
0
0
717
0.19878
70f12857a34e97687f3b8515a3ecdf1b8631fbee
779
py
Python
zeus/brewery/models.py
sdivakarrajesh/Zeus
7a6ddd3d0375f3a2f131f6fa46539faafbd73766
[ "MIT" ]
null
null
null
zeus/brewery/models.py
sdivakarrajesh/Zeus
7a6ddd3d0375f3a2f131f6fa46539faafbd73766
[ "MIT" ]
5
2021-03-19T01:10:37.000Z
2021-09-22T18:47:10.000Z
zeus/brewery/models.py
sdivakarrajesh/Zeus
7a6ddd3d0375f3a2f131f6fa46539faafbd73766
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class DrinkType(models.Model): created = models.DateTimeField(auto_now_add=True, blank=True, null=True) updated = models.DateTimeField(auto_now=True, blank=True, null=True) title = models.CharField(max_length=100, null=True, blank=True) def __s...
32.458333
76
0.722721
720
0.924262
0
0
0
0
0
0
30
0.038511
70f1ae00dfc2656288e9dc5e008f66a0f5c57eeb
18,127
py
Python
src/IntraCodec.py
Joao-Nogueira-gh/video-compressin
92429f85333d16b0e192532e520653dd5e8936e3
[ "MIT" ]
null
null
null
src/IntraCodec.py
Joao-Nogueira-gh/video-compressin
92429f85333d16b0e192532e520653dd5e8936e3
[ "MIT" ]
null
null
null
src/IntraCodec.py
Joao-Nogueira-gh/video-compressin
92429f85333d16b0e192532e520653dd5e8936e3
[ "MIT" ]
1
2020-01-01T07:20:04.000Z
2020-01-01T07:20:04.000Z
## @class IntraCodec # Module designed for encoding and decoding YUV videos using the intra-frame method # That is considering adjacent pixels in the same frame and encoding their errors # @author Tiago Melo 89005 # @author João Nogueira 89262 import numpy as np import math from Golomb import * from Bitstream import ...
38.242616
169
0.579964
17,802
0.982017
0
0
0
0
0
0
6,160
0.339806
70f1cf6cbe1d0d3ea9ded5e933650823891cd848
1,015
py
Python
main.py
kylecorry31/lifx_effects
ea97e3274233fb844c416d4d5a95d06a8a1c7cde
[ "MIT" ]
null
null
null
main.py
kylecorry31/lifx_effects
ea97e3274233fb844c416d4d5a95d06a8a1c7cde
[ "MIT" ]
1
2021-11-13T20:35:21.000Z
2021-11-13T20:35:21.000Z
main.py
kylecorry31/lifx_effects
ea97e3274233fb844c416d4d5a95d06a8a1c7cde
[ "MIT" ]
null
null
null
from effects.keyboard_effect import KeyboardEffect from utils.lights import get_lights from effects.candle_effect import CandleEffect from effects.phasma_hunt_effect import PhasmaHuntEffect from effects.audio_spectrum_effect import AudioSpectrumEffect from effects.audio_amplitude_effect import AudioAmplitudeEffect from...
37.592593
89
0.727094
0
0
0
0
0
0
0
0
397
0.391133
70f6a101e87e43f1c6e0155f7b03c05850afb19f
250
py
Python
arts_localisation/beam_models/__init__.py
loostrum/arts_localisation
e3f3d1c8c0f4ee66d731634294b7b126ee28be1c
[ "Apache-2.0" ]
1
2020-08-19T11:52:04.000Z
2020-08-19T11:52:04.000Z
arts_localisation/beam_models/__init__.py
loostrum/arts_localisation
e3f3d1c8c0f4ee66d731634294b7b126ee28be1c
[ "Apache-2.0" ]
10
2021-02-03T08:52:51.000Z
2022-03-04T10:03:56.000Z
arts_localisation/beam_models/__init__.py
loostrum/arts_localisation
e3f3d1c8c0f4ee66d731634294b7b126ee28be1c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from .beamformer import BeamFormer from .compound_beam import CompoundBeam from .sb_generator import SBGenerator from .simulate_sb_pattern import SBPattern __all__ = ['BeamFormer', 'CompoundBeam', 'SBPattern', 'SBGenerator']
25
68
0.8
0
0
0
0
0
0
0
0
71
0.284
70f6b613f46f9572a127a9da271c9e2dc28fc894
3,090
py
Python
gfauto/gfauto/test_util.py
KishkinJ10/graphicsfuzz
673f9bba2b02608b26edef786095007949c00675
[ "Apache-2.0" ]
519
2018-09-25T12:55:31.000Z
2022-03-30T17:26:53.000Z
gfauto/gfauto/test_util.py
KishkinJ10/graphicsfuzz
673f9bba2b02608b26edef786095007949c00675
[ "Apache-2.0" ]
544
2018-09-25T08:54:28.000Z
2022-03-07T16:04:51.000Z
gfauto/gfauto/test_util.py
KishkinJ10/graphicsfuzz
673f9bba2b02608b26edef786095007949c00675
[ "Apache-2.0" ]
139
2018-09-26T05:11:20.000Z
2022-02-15T09:14:27.000Z
# -*- coding: utf-8 -*- # Copyright 2019 The GraphicsFuzz Project Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
32.1875
119
0.772168
0
0
0
0
0
0
0
0
1,009
0.326537
70f70a663eddf66eb95d76cfae9e8ce1ca181a38
2,266
py
Python
core.py
iBug/OmniAE
dcaa3c671a36aeef1c7ffff79a859daaa6352fa0
[ "MIT" ]
null
null
null
core.py
iBug/OmniAE
dcaa3c671a36aeef1c7ffff79a859daaa6352fa0
[ "MIT" ]
5
2019-10-28T21:16:50.000Z
2020-06-08T21:13:06.000Z
core.py
iBug/OmniAE
dcaa3c671a36aeef1c7ffff79a859daaa6352fa0
[ "MIT" ]
null
null
null
# LOL. Hope you're not fooled by the name of this file import sys import os from configparser import ConfigParser # Note: All classes here have N801 (CapWords naming convention) disabled. # They're intended to be singletons class Object(object): def __init__(self, _default=None, **kwargs): self.__dict...
24.901099
87
0.643425
1,053
0.464695
0
0
0
0
0
0
513
0.22639
70f8bfd61dc80c47f58e8869a7a7e8ed2cf2c065
379
py
Python
tests/test_transforms.py
KIT-MBS/nnicotine
3681391d05d0a2d92e16431f5bc985cd6ff606fd
[ "MIT" ]
2
2021-03-28T02:02:30.000Z
2021-09-09T23:27:39.000Z
tests/test_transforms.py
KIT-MBS/nnicotine
3681391d05d0a2d92e16431f5bc985cd6ff606fd
[ "MIT" ]
null
null
null
tests/test_transforms.py
KIT-MBS/nnicotine
3681391d05d0a2d92e16431f5bc985cd6ff606fd
[ "MIT" ]
null
null
null
from collections import OrderedDict from pytest import approx def test_RandomDrop(): sample = None raise def test_TrimToTarget(): raise def test_ComputeCouplings(): raise def test_ToCategorical(): raise def test_ToTensor_sample(): raise def test_ToTensor_label(): raise def test_ToDis...
13.068966
35
0.722955
0
0
0
0
0
0
0
0
0
0
70faefbfea80d8e2843638eff582f5d8fefdfc7c
1,512
py
Python
table_creation/queryinfo.py
ashleyeah/spotifyu
d709c6b4833b8a745fbe141ff967f2234cf5e0da
[ "MIT" ]
null
null
null
table_creation/queryinfo.py
ashleyeah/spotifyu
d709c6b4833b8a745fbe141ff967f2234cf5e0da
[ "MIT" ]
null
null
null
table_creation/queryinfo.py
ashleyeah/spotifyu
d709c6b4833b8a745fbe141ff967f2234cf5e0da
[ "MIT" ]
null
null
null
import spotipy from spotipy.oauth2 import SpotifyClientCredentials import mysql.connector auth_manager = SpotifyClientCredentials('f3dc4f3802254be091c8d8576961bc9d', 'b51d135ad7104add8f71933197e9cc14') sp = spotipy.Spotify(auth_manager=auth_manager) cnx = mysql.connector.connect(user='root', password='1234', ...
31.5
111
0.576058
0
0
0
0
0
0
0
0
491
0.324735
70fdb66b9ded98ccf160a5d4bab704860540ae69
1,414
py
Python
tests/data23/recipe-491264.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-05T08:53:26.000Z
2020-06-05T08:53:26.000Z
tests/data23/recipe-491264.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-04T13:47:19.000Z
2020-06-04T13:47:57.000Z
tests/data23/recipe-491264.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-11-07T17:02:46.000Z
2020-11-07T17:02:46.000Z
import socket class DNSQuery: def __init__(self, data): self.data=data self.dominio='' tipo = (ord(data[2]) >> 3) & 15 # Opcode bits if tipo == 0: # Standard query ini=12 lon=ord(data[ini]) while lon != 0: self.dominio+=data[ini+1:ini+lon+1]+'.' ...
32.136364
125
0.548091
966
0.683168
0
0
0
0
0
0
374
0.264498
70fe2c4951a1b415e80a8ca06456e10fa1d52d75
5,007
py
Python
calculator.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
calculator.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
calculator.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
import os import logging from pathlib import Path from operations import catalogue from parsers import XMLSpecParser class ExpressionCalculator: """ Processes all expression files with given extension in source directory Assumes that all files with given extension are expression files """ __slots...
39.738095
107
0.633513
4,886
0.975834
0
0
0
0
0
0
2,078
0.415019
70fe4c8b56bc3406c72affab4486d1a1d17c77b3
13,239
py
Python
tinkup.py
jeromedontdev/tinkup
ebaa0a3289e54130447cd02a70201eae8f01c012
[ "BSD-3-Clause" ]
2
2022-01-22T07:19:29.000Z
2022-02-01T05:39:11.000Z
tinkup.py
jeromedontdev/tinkup
ebaa0a3289e54130447cd02a70201eae8f01c012
[ "BSD-3-Clause" ]
null
null
null
tinkup.py
jeromedontdev/tinkup
ebaa0a3289e54130447cd02a70201eae8f01c012
[ "BSD-3-Clause" ]
null
null
null
from cgitb import text import queue from random import seed import serial import serial.tools.list_ports from signal import signal, SIGINT import sys import threading import time import tkinter from tkinter import END, W, PhotoImage, filedialog as fd, scrolledtext as sd global fw_filename fw_filename = "" COM_OVERRID...
32.688889
111
0.502304
10,602
0.800816
0
0
0
0
0
0
2,251
0.170028
70fed1aa735bf095ea4ea44b9f449fbb2dd1b487
128
py
Python
backend/src/analytics/admin.py
codingforentrepreneurs/Geolocator-2
d4c2410301aa2497816e7ed2ec1890bc9be2e8fd
[ "MIT" ]
34
2017-04-27T20:22:08.000Z
2021-11-08T13:01:43.000Z
backend/src/analytics/admin.py
hercules261188/Geolocator-2
d4c2410301aa2497816e7ed2ec1890bc9be2e8fd
[ "MIT" ]
null
null
null
backend/src/analytics/admin.py
hercules261188/Geolocator-2
d4c2410301aa2497816e7ed2ec1890bc9be2e8fd
[ "MIT" ]
34
2017-05-18T23:23:01.000Z
2022-03-02T21:08:54.000Z
from django.contrib import admin # Register your models here. from .models import UserSession admin.site.register(UserSession)
21.333333
32
0.820313
0
0
0
0
0
0
0
0
28
0.21875
cb013ff854838f109743a88faf31b41b4d2a4d6d
5,588
py
Python
calculators/loan_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
2
2021-01-08T04:26:54.000Z
2022-02-04T22:22:27.000Z
calculators/loan_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
null
null
null
calculators/loan_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
2
2019-06-06T19:36:17.000Z
2020-05-20T12:37:08.000Z
from math import ceil from numpy_financial import nper, pmt, rate from typing import List, Tuple from .calculator import Calculator # noinspection PyTypeChecker class LoanCalculator(Calculator): def __init__(self, **kwargs): super(LoanCalculator, self).__init__(**kwargs) self.loan = ...
31.75
79
0.46403
5,414
0.968862
0
0
0
0
0
0
95
0.017001
cb01a78dea1ba413678bdaa15b5fb376d5cfbcae
168
py
Python
pydundas/tests/rest/test_project.py
autonopy/pydundas
66fa46d593d3a2f9f3da7a0220f8a7dc495e2758
[ "MIT" ]
4
2019-04-09T05:30:10.000Z
2022-01-26T14:45:52.000Z
pydundas/tests/rest/test_project.py
autonopy/pydundas
66fa46d593d3a2f9f3da7a0220f8a7dc495e2758
[ "MIT" ]
4
2019-04-08T13:00:56.000Z
2022-01-27T06:46:33.000Z
pydundas/tests/rest/test_project.py
autonopy/pydundas
66fa46d593d3a2f9f3da7a0220f8a7dc495e2758
[ "MIT" ]
3
2019-04-08T07:07:12.000Z
2022-01-26T14:46:00.000Z
import unittest from pydundas import Api class TestProject(unittest.TestCase): def test_no_syntax_error(self): self.assertIsNotNone(Api(None).project())
18.666667
49
0.755952
124
0.738095
0
0
0
0
0
0
0
0
cb0302f31a96c3dde5eb9872c52023093a2d18f1
516
py
Python
odoo/custom/src/private/nxpo_budget_revision_monitoring_project/report/budget_monitor_revision_report.py
Saran440/nxpo
769bbebc0df2e12acbf5b1e398e34b3405d53c50
[ "BSL-1.0" ]
null
null
null
odoo/custom/src/private/nxpo_budget_revision_monitoring_project/report/budget_monitor_revision_report.py
Saran440/nxpo
769bbebc0df2e12acbf5b1e398e34b3405d53c50
[ "BSL-1.0" ]
null
null
null
odoo/custom/src/private/nxpo_budget_revision_monitoring_project/report/budget_monitor_revision_report.py
Saran440/nxpo
769bbebc0df2e12acbf5b1e398e34b3405d53c50
[ "BSL-1.0" ]
null
null
null
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class BudgetMonitorRevisionReport(models.Model): _inherit = "budget.monitor.revision.report" project_id = fields.Many2one(comodel_name="res.project") ...
32.25
78
0.722868
358
0.693798
0
0
0
0
0
0
183
0.354651
cb0378636f9363b9345438112d17636d553ee87d
1,975
py
Python
src/ClusterManager/cluster_manager.py
nautilusshell/QianJiangYuan
262a88ca559f62d6e8633b1596481515d32f7907
[ "MIT" ]
null
null
null
src/ClusterManager/cluster_manager.py
nautilusshell/QianJiangYuan
262a88ca559f62d6e8633b1596481515d32f7907
[ "MIT" ]
null
null
null
src/ClusterManager/cluster_manager.py
nautilusshell/QianJiangYuan
262a88ca559f62d6e8633b1596481515d32f7907
[ "MIT" ]
1
2019-12-27T07:57:48.000Z
2019-12-27T07:57:48.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*- import json import os import time import argparse import uuid import subprocess import sys import datetime import yaml from jinja2 import Environment, FileSystemLoader, Template import base64 import re import thread import threading import random import textwrap import lo...
21.236559
85
0.691646
0
0
0
0
0
0
0
0
554
0.280506
cb0468927dd370e4c6e76788301b7d52a85a268f
611
py
Python
netmiko/ssh_exception.py
dalekirkman1/netmiko
a82ae784f4f1ef75e864ac972c088b8c963f77ff
[ "MIT" ]
1
2020-12-11T00:48:09.000Z
2020-12-11T00:48:09.000Z
netmiko/ssh_exception.py
rockenwind/netmiko
24291029d0cdd5af660475ac1093a2dcd1c08af2
[ "MIT" ]
null
null
null
netmiko/ssh_exception.py
rockenwind/netmiko
24291029d0cdd5af660475ac1093a2dcd1c08af2
[ "MIT" ]
null
null
null
from paramiko.ssh_exception import SSHException from paramiko.ssh_exception import AuthenticationException class NetmikoTimeoutException(SSHException): """SSH session timed trying to connect to the device.""" pass class NetmikoAuthenticationException(AuthenticationException): """SSH authentication exce...
24.44
81
0.813421
379
0.620295
0
0
0
0
0
0
188
0.307692
cb04d915b9d325336f938cf593f891e0a7292b7e
5,793
py
Python
src/REUTER.py
Qinaty/POA-spiders
95e1c2cb59877d360806736bc995069885d34591
[ "MIT" ]
null
null
null
src/REUTER.py
Qinaty/POA-spiders
95e1c2cb59877d360806736bc995069885d34591
[ "MIT" ]
null
null
null
src/REUTER.py
Qinaty/POA-spiders
95e1c2cb59877d360806736bc995069885d34591
[ "MIT" ]
null
null
null
import time from bs4 import BeautifulSoup from base import * from db_info import * # 构建映射url->article _url2atc = dict() month = dict({'Jan':1, 'Feb':2, 'Mar':3, 'Apr':4, 'May':5, 'Jun':6, 'Jul':7, 'Aug':8, 'Sep':9, 'Oct':10, 'Nov':11, 'Dec':12}) class REUTERURLManager(BaseURLManager): ...
37.134615
191
0.461419
5,422
0.918827
0
0
0
0
0
0
1,347
0.228266
cb0781103336b3ed4a0d2565011f61861afb533b
2,770
py
Python
core/management_utils.py
crydotsnake/djangogirls
0e764294085d6d7d3c4f61a7fe36f91640abedcd
[ "BSD-3-Clause" ]
446
2015-01-04T20:58:26.000Z
2022-03-30T23:08:26.000Z
core/management_utils.py
serenasensini/TheRedCode_Docker-per-Django-e-Postgres
78a2ca1f09ab956a6936d14a5fd99336ff39f472
[ "BSD-3-Clause" ]
649
2015-01-09T23:42:14.000Z
2022-03-31T17:27:19.000Z
core/management_utils.py
serenasensini/TheRedCode_Docker-per-Django-e-Postgres
78a2ca1f09ab956a6936d14a5fd99336ff39f472
[ "BSD-3-Clause" ]
319
2015-01-06T20:58:42.000Z
2022-03-30T06:29:04.000Z
import djclick as click from django.conf import settings from django.utils.translation import gettext_lazy as _ from .forms import AddOrganizerForm from .slack_client import slack # "Get organizers info" functions used in 'new_event' and 'copy_event' management commands. def get_main_organizer(): """ We're ...
31.123596
98
0.604693
0
0
0
0
0
0
0
0
1,188
0.428881
cb0840d5bc91aaecbc980279a62bae916478d2ee
58
py
Python
conference/forms/__init__.py
zevaverbach/epcon
8352c030ee0d4197f559cdb58a54ee45c7a4471a
[ "BSD-2-Clause" ]
null
null
null
conference/forms/__init__.py
zevaverbach/epcon
8352c030ee0d4197f559cdb58a54ee45c7a4471a
[ "BSD-2-Clause" ]
null
null
null
conference/forms/__init__.py
zevaverbach/epcon
8352c030ee0d4197f559cdb58a54ee45c7a4471a
[ "BSD-2-Clause" ]
null
null
null
from .forms import * # noqa from .talks import * # noqa
19.333333
28
0.655172
0
0
0
0
0
0
0
0
12
0.206897
cb08ea8fba01c9694bba7e015a61763f76ce96c2
8,235
py
Python
siggregator/siggregator.py
packmad/Siggregator
70ff7432e715b7a25a82098320c351ddb78daa7d
[ "Apache-2.0" ]
3
2021-03-16T15:28:00.000Z
2021-07-23T09:07:54.000Z
siggregator/siggregator.py
packmad/Siggregator
70ff7432e715b7a25a82098320c351ddb78daa7d
[ "Apache-2.0" ]
null
null
null
siggregator/siggregator.py
packmad/Siggregator
70ff7432e715b7a25a82098320c351ddb78daa7d
[ "Apache-2.0" ]
1
2022-03-29T21:57:36.000Z
2022-03-29T21:57:36.000Z
#!/usr/bin/env python3 import hashlib import json import magic import os import re import subprocess import sys import yara import ordlookup import pefile import ssdeep import tlsh from multiprocessing import Pool from os.path import isdir, isfile, join, basename, abspath, dirname, realpath from pathlib import Path f...
32.678571
106
0.560291
0
0
0
0
0
0
0
0
1,086
0.131876
cb093c072ef7f389a955ddcff40785b65302fce1
272
py
Python
rakesh_factorial.py
vinaymavi/alivenet-python-training-
f565dc1c19590815dbb17a3dcd012b02149dd804
[ "MIT" ]
null
null
null
rakesh_factorial.py
vinaymavi/alivenet-python-training-
f565dc1c19590815dbb17a3dcd012b02149dd804
[ "MIT" ]
1
2018-07-17T17:58:46.000Z
2018-07-17T17:58:46.000Z
rakesh_factorial.py
vinaymavi/alivenet-python-training-
f565dc1c19590815dbb17a3dcd012b02149dd804
[ "MIT" ]
9
2018-07-17T13:38:18.000Z
2018-08-01T10:36:22.000Z
#Write a program which can compute the factorial of a given numbers. #The results should be printed in a comma-separated sequence on a single line number=int(input("Please Enter factorial Number: ")) j=1 fact = 1 for i in range(number,0,-1): fact =fact*i print(fact)
27.2
77
0.742647
0
0
0
0
0
0
0
0
178
0.654412
cb098d10db1cb0c02e29f039ccbde0db55766abe
5,598
py
Python
.old/core/conf/_settings.py
Zadigo/Emails
c8577c56749fedc87c72cb19d1a764b2684da94a
[ "MIT" ]
null
null
null
.old/core/conf/_settings.py
Zadigo/Emails
c8577c56749fedc87c72cb19d1a764b2684da94a
[ "MIT" ]
null
null
null
.old/core/conf/_settings.py
Zadigo/Emails
c8577c56749fedc87c72cb19d1a764b2684da94a
[ "MIT" ]
null
null
null
import datetime import json import os import secrets from importlib import import_module # PATH = 'C:\\Users\\Zadigo\\Documents\\Apps\\zemailer\\app\\core\\settings.json' PATH = os.path.join(os.getcwd(), 'app', 'core', 'conf', 'settings.json') def deserialize(func): """A decorator that deserializes objects store...
33.927273
94
0.590389
3,990
0.712755
0
0
718
0.12826
0
0
2,220
0.39657
cb0b42243a5f1619da2be629a939fedeb68fb530
3,510
py
Python
tools/Vitis-AI-Quantizer/vai_q_tensorflow2.x/setup.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tools/Vitis-AI-Quantizer/vai_q_tensorflow2.x/setup.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tools/Vitis-AI-Quantizer/vai_q_tensorflow2.x/setup.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.454545
80
0.703989
154
0.043875
0
0
0
0
0
0
2,261
0.64416
cb0d83bca9047c82889cf5995c31524e13285dd4
39
py
Python
perses/samplers/__init__.py
schallerdavid/perses
58bd6e626e027879e136f56e175683893e016f8c
[ "MIT" ]
99
2016-01-19T18:10:37.000Z
2022-03-26T02:43:08.000Z
perses/samplers/__init__.py
schallerdavid/perses
58bd6e626e027879e136f56e175683893e016f8c
[ "MIT" ]
878
2015-09-18T19:25:30.000Z
2022-03-31T02:33:04.000Z
perses/samplers/__init__.py
schallerdavid/perses
58bd6e626e027879e136f56e175683893e016f8c
[ "MIT" ]
30
2015-09-21T15:26:35.000Z
2022-01-10T20:07:24.000Z
from perses.samplers.samplers import *
19.5
38
0.820513
0
0
0
0
0
0
0
0
0
0
cb0d9532ba61a5b5829e720211165c49e69be279
5,272
py
Python
main.py
ROHITH-Singh/DataScience-Scrappping
201b5e62e8d12c71628398d42ac40ef8d8ceb198
[ "Apache-2.0" ]
null
null
null
main.py
ROHITH-Singh/DataScience-Scrappping
201b5e62e8d12c71628398d42ac40ef8d8ceb198
[ "Apache-2.0" ]
null
null
null
main.py
ROHITH-Singh/DataScience-Scrappping
201b5e62e8d12c71628398d42ac40ef8d8ceb198
[ "Apache-2.0" ]
null
null
null
import requests import pymongo from pymongo import MongoClient import json from bs4 import BeautifulSoup cluster= MongoClient("mongodb+srv://admin:Rohit91138@cluster0.d4cq9.mongodb.net/Novelore?retryWrites=true&w=majority") db=cluster["Novelore"] collection=db["mangadex-scrap"] url="https://mangadex.org" dat...
36.109589
119
0.612291
0
0
0
0
0
0
0
0
2,150
0.407815
cb0dc5cb2397b2b17050683d98107fc206b4c8db
476
py
Python
Leetcode/Stacks,_Queues/1_-_Easy/933._Number_of_Recent_Calls.py
Khalid-Sultan/Algorithms-Prep
7773c5bc0448d8677bf324bd1d9bdc43b813fcd5
[ "MIT" ]
1
2020-09-21T10:01:26.000Z
2020-09-21T10:01:26.000Z
Leetcode/Stacks,_Queues/1_-_Easy/933._Number_of_Recent_Calls.py
Khalid-Sultan/Algorithms-Prep
7773c5bc0448d8677bf324bd1d9bdc43b813fcd5
[ "MIT" ]
null
null
null
Leetcode/Stacks,_Queues/1_-_Easy/933._Number_of_Recent_Calls.py
Khalid-Sultan/Algorithms-Prep
7773c5bc0448d8677bf324bd1d9bdc43b813fcd5
[ "MIT" ]
2
2020-09-01T12:33:55.000Z
2020-11-30T13:23:50.000Z
from collections import deque class RecentCounter: def __init__(self): self.buffer = deque() def ping(self, t: int) -> int: while self.buffer and self.buffer[-1]<t-3000: self.buffer.pop() self.buffer.appendleft(t) return len(self.buffer) #Your RecentCounter object wi...
31.733333
68
0.676471
259
0.544118
0
0
0
0
0
0
181
0.380252
cb0f3976b580dfbacb713d7e37ea1985da4c916a
3,524
py
Python
ssqueezepy/viz_toolkit.py
hydrogeoscience/ssqueezepy
fa7654dfad58eda86b5866140625d6976733bdfa
[ "MIT" ]
3
2021-01-08T16:44:40.000Z
2021-01-11T06:59:55.000Z
ssqueezepy/viz_toolkit.py
hydrogeoscience/ssqueezepy
fa7654dfad58eda86b5866140625d6976733bdfa
[ "MIT" ]
null
null
null
ssqueezepy/viz_toolkit.py
hydrogeoscience/ssqueezepy
fa7654dfad58eda86b5866140625d6976733bdfa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Convenience visual methods""" import numpy as np import matplotlib.pyplot as plt def imshow(data, title=None, show=1, cmap=None, norm=None, complex=None, abs=0, w=None, h=None, ridge=0, ticks=1, yticks=None, aspect='auto', **kw): kw['interpolation'] = kw.get('interpolation', ...
30.643478
79
0.530363
0
0
0
0
0
0
0
0
190
0.053916
cb0f58e18b94913a907849c50579e695ec74ed20
1,674
py
Python
tests/tests.py
mghorbani2357/Necrypt
7191c8b29c94bf0c2550ab28b2226f64553981fe
[ "MIT" ]
1
2021-02-05T20:42:26.000Z
2021-02-05T20:42:26.000Z
tests/tests.py
mghorbani2357/Necrypt
7191c8b29c94bf0c2550ab28b2226f64553981fe
[ "MIT" ]
null
null
null
tests/tests.py
mghorbani2357/Necrypt
7191c8b29c94bf0c2550ab28b2226f64553981fe
[ "MIT" ]
null
null
null
from unittest import TestCase from necrypt import Necrypt import os class TestNecrypt(TestCase): def test_unique_encryption(self): n = Necrypt(1024) plain = 'Text' self.assertNotEqual(n.encrypt(plain), n.encrypt(plain)) def test_encrypt_decrypt(self): n = Necrypt(1024) ...
26.15625
73
0.635603
1,603
0.957587
0
0
0
0
0
0
202
0.120669
cb0f869553f8c04f78839e888e57fd4c53f3e6c9
555
py
Python
days/01-03-datetimes/code/calc_dts.py
greywidget/100daysofcode-with-python-course
4deeb6c52f9f9ae6c415b9997f817b3565582083
[ "MIT" ]
null
null
null
days/01-03-datetimes/code/calc_dts.py
greywidget/100daysofcode-with-python-course
4deeb6c52f9f9ae6c415b9997f817b3565582083
[ "MIT" ]
null
null
null
days/01-03-datetimes/code/calc_dts.py
greywidget/100daysofcode-with-python-course
4deeb6c52f9f9ae6c415b9997f817b3565582083
[ "MIT" ]
null
null
null
from datetime import date, timedelta start_100days = date(2017, 3, 30) pybites_founded = date(2016, 12, 19) pycon_date = date(2018, 5, 8) def get_hundred_days_end_date(): """Return a string of yyyy-mm-dd""" end_date = start_100days + timedelta(days=100) return str(end_date) def get_days_between_pb_star...
25.227273
56
0.735135
0
0
0
0
0
0
0
0
80
0.144144
cb1217616e7d5b0f03ecc1384f9bca660edef2b8
9,312
py
Python
openprocurement/audit/monitoring/views/monitoring.py
ProzorroUKR/openprocurement.audit.api
a17836e29bca28d9151c091e1d2e42de9f70b949
[ "Apache-2.0" ]
1
2018-05-21T08:14:55.000Z
2018-05-21T08:14:55.000Z
openprocurement/audit/monitoring/views/monitoring.py
ProzorroUKR/openprocurement.audit.api
a17836e29bca28d9151c091e1d2e42de9f70b949
[ "Apache-2.0" ]
59
2018-05-18T02:09:47.000Z
2019-05-29T12:10:06.000Z
openprocurement/audit/monitoring/views/monitoring.py
ProzorroUKR/openprocurement.audit.api
a17836e29bca28d9151c091e1d2e42de9f70b949
[ "Apache-2.0" ]
1
2020-06-15T11:04:25.000Z
2020-06-15T11:04:25.000Z
from logging import getLogger from pyramid.security import ACLAllowed from openprocurement.audit.api.constants import ( MONITORING_TIME, ELIMINATION_PERIOD_TIME, ELIMINATION_PERIOD_NO_VIOLATIONS_TIME, DRAFT_STATUS, ACTIVE_STATUS, ADDRESSED_STATUS, DECLINED_STATUS, STOPPED_STATUS, C...
42.520548
117
0.708655
6,556
0.704038
0
0
6,901
0.741087
0
0
1,048
0.112543
cb12a882c75f649d122a95115a98ac8b3e9de7de
1,224
py
Python
tests/utilities/test_spectrum_utils.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
1
2018-09-04T19:06:44.000Z
2018-09-04T19:06:44.000Z
tests/utilities/test_spectrum_utils.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
85
2017-03-25T22:37:02.000Z
2022-03-01T16:49:14.000Z
tests/utilities/test_spectrum_utils.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
1
2017-08-18T10:56:39.000Z
2017-08-18T10:56:39.000Z
import os import numpy as np import pytest from spectrum_overload import Spectrum from mingle.utilities.spectrum_utils import load_spectrum, select_observation @pytest.mark.parametrize("fname", ["HD30501-1-mixavg-tellcorr_1.fits", "HD30501-1-mixavg-h2otellcorr_1.fits"]) def test_load_spectrum(fname): fname = os...
27.818182
110
0.710784
0
0
0
0
924
0.754902
0
0
230
0.187908
cb1307c481c9beb955137f8e7e42252585de4aba
574
py
Python
bots/raspador_template/raspador_template_pilot.py
xyla-io/raspador
4e77234239d44a83faf5c1d3a6d022a9e3861f25
[ "MIT" ]
null
null
null
bots/raspador_template/raspador_template_pilot.py
xyla-io/raspador
4e77234239d44a83faf5c1d3a6d022a9e3861f25
[ "MIT" ]
null
null
null
bots/raspador_template/raspador_template_pilot.py
xyla-io/raspador
4e77234239d44a83faf5c1d3a6d022a9e3861f25
[ "MIT" ]
null
null
null
from raspador import Pilot, UserInteractor, BrowserInteractor from typing import Dict, List class RaspadorTemplatePilot(Pilot): config: Dict[str, any] sign_in_wait = 3.0 def __init__(self, config: Dict[str, any], user: UserInteractor, browser: BrowserInteractor): self.config = config super().__init__(us...
26.090909
95
0.709059
481
0.837979
0
0
213
0.37108
0
0
27
0.047038
cb16e92c91411943f9ef0b61014572ffa31aed21
9,480
py
Python
umychart_python/umychart_complier_testcase.py
tokenchain/HQChart
6d29839cfda853a6a0efe7f085af0cd9db8a549f
[ "Apache-2.0" ]
4
2019-09-30T15:37:50.000Z
2022-03-28T19:44:46.000Z
umychart_python/umychart_complier_testcase.py
tokenchain/HQChart
6d29839cfda853a6a0efe7f085af0cd9db8a549f
[ "Apache-2.0" ]
null
null
null
umychart_python/umychart_complier_testcase.py
tokenchain/HQChart
6d29839cfda853a6a0efe7f085af0cd9db8a549f
[ "Apache-2.0" ]
2
2020-09-21T04:55:45.000Z
2021-01-05T03:01:02.000Z
# 开源项目 https://github.com/jones2000/HQChart import sys import codecs import webbrowser from umychart_complier_jscomplier import JSComplier, SymbolOption, HQ_DATA_TYPE from umychart_complier_jscomplier import ScriptIndexConsole, ScriptIndexItem, SymbolOption, RequestOption, HQ_DATA_TYPE, ArgumentItem from umycha...
27.719298
134
0.523945
353
0.036332
0
0
0
0
0
0
3,678
0.378551
cb189bfc70c1ffe56009041687c4ff42f81f4d14
2,778
py
Python
einguteswerkzeug/helpers/__init__.py
s3h10r/einguteswerkzeug
fe22afc3a6a16802d503dc4485c49d5f3eb8a53d
[ "MIT" ]
6
2019-07-27T16:48:11.000Z
2022-03-12T20:54:57.000Z
einguteswerkzeug/helpers/__init__.py
s3h10r/einguteswerkzeug
fe22afc3a6a16802d503dc4485c49d5f3eb8a53d
[ "MIT" ]
20
2019-07-27T17:08:29.000Z
2022-01-13T01:27:24.000Z
einguteswerkzeug/helpers/__init__.py
s3h10r/einguteswerkzeug
fe22afc3a6a16802d503dc4485c49d5f3eb8a53d
[ "MIT" ]
2
2021-03-24T12:26:35.000Z
2021-08-30T17:48:03.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ some helper funcs """ import json import logging import os import site import subprocess import sys import tempfile import exifread from PIL import Image PACKAGE_NAME = "einguteswerkzeug" # --- configure logging log = logging.getLogger(__name__) log.setLevel(logging...
26.457143
85
0.61915
0
0
0
0
0
0
0
0
1,258
0.452844
cb19b5b9cfd192e1f6514f052406927f390c4881
2,357
py
Python
ParadoxTrading/EngineExt/Futures/InterDayOnlineMarketSupply.py
gsamarakoon/ParadoxTrading
2c4024e60b14bf630fd141ccd4c77f197b7c901a
[ "MIT" ]
95
2018-01-14T14:35:35.000Z
2021-03-17T02:10:24.000Z
ParadoxTrading/EngineExt/Futures/InterDayOnlineMarketSupply.py
yutiansut/ParadoxTrading
b915d1491663443bedbb048017abeed3f7dcd4e2
[ "MIT" ]
2
2018-01-14T14:35:51.000Z
2018-07-06T02:57:49.000Z
ParadoxTrading/EngineExt/Futures/InterDayOnlineMarketSupply.py
yutiansut/ParadoxTrading
b915d1491663443bedbb048017abeed3f7dcd4e2
[ "MIT" ]
25
2018-01-14T14:38:08.000Z
2020-07-15T16:03:04.000Z
import logging import typing from datetime import datetime from ParadoxTrading.Engine import MarketSupplyAbstract, ReturnMarket, ReturnSettlement from ParadoxTrading.Fetch import FetchAbstract from ParadoxTrading.Utils import DataStruct class InterDayOnlineMarketSupply(MarketSupplyAbstract): def __init__( ...
31.426667
86
0.573186
2,116
0.897751
0
0
0
0
0
0
206
0.087399
cb1e226e79e09f241ae2edae33072edf44edd04c
2,301
py
Python
bdd/contact_stepts.py
SvetlanaPopova/python_1
5acc26e3d3746d7fcf48603d9ca9064e39c248ca
[ "Apache-2.0" ]
null
null
null
bdd/contact_stepts.py
SvetlanaPopova/python_1
5acc26e3d3746d7fcf48603d9ca9064e39c248ca
[ "Apache-2.0" ]
null
null
null
bdd/contact_stepts.py
SvetlanaPopova/python_1
5acc26e3d3746d7fcf48603d9ca9064e39c248ca
[ "Apache-2.0" ]
null
null
null
__author__ = 'User' from pytest_bdd import given, when, then from model.contact import Contact import random @given('a contact list') def contact_list(db): return db.get_contact_list() @given('a contact with <firstname>, <lastname>, <address> and <mobilephone>') def new_contact(firstname, lastname, address, mobi...
41.836364
100
0.788787
0
0
0
0
2,171
0.943503
0
0
502
0.218166
cb1eb4ad097f558852c6e842a35ce159078ca10c
1,235
py
Python
tests/models/input/types/test_file_input.py
TheLabbingProject/django_analyses
08cac40a32754a265b37524f08ec6160c69ebea8
[ "Apache-2.0" ]
1
2020-12-30T12:43:34.000Z
2020-12-30T12:43:34.000Z
tests/models/input/types/test_file_input.py
TheLabbingProject/django_analyses
08cac40a32754a265b37524f08ec6160c69ebea8
[ "Apache-2.0" ]
59
2019-12-25T13:14:56.000Z
2021-07-22T12:24:46.000Z
tests/models/input/types/test_file_input.py
TheLabbingProject/django_analyses
08cac40a32754a265b37524f08ec6160c69ebea8
[ "Apache-2.0" ]
2
2020-05-24T06:44:27.000Z
2020-07-09T15:47:31.000Z
from django.core.exceptions import ValidationError from django.test import TestCase from django_analyses.models.input.types.input_types import InputTypes from tests.factories.input.types.file_input import FileInputFactory class FileInputTestCase(TestCase): """ Tests for the :class:`~django_analyses.models.inp...
30.121951
90
0.678543
1,010
0.817814
0
0
0
0
0
0
348
0.281781
cb1fb8da536670946ce9d23e583964d60207cf34
8,052
py
Python
videoarchiver.py
yannisHD/StreamRecorder
90bccee236730fff6e148d24c26aa3e3104d3ca2
[ "MIT" ]
null
null
null
videoarchiver.py
yannisHD/StreamRecorder
90bccee236730fff6e148d24c26aa3e3104d3ca2
[ "MIT" ]
null
null
null
videoarchiver.py
yannisHD/StreamRecorder
90bccee236730fff6e148d24c26aa3e3104d3ca2
[ "MIT" ]
null
null
null
#!/usr/bin/python """A concise tool for archiving video as it is recorded. """ import os, time, argparse import subprocess32 as subprocess from socket import gethostname import dvrutils def read_archive_config(fName): with open(fName, 'r') as f: flines = f.readlines() streams = [] # [{...
62.418605
237
0.615872
4,898
0.608296
0
0
0
0
0
0
3,512
0.436165
cb207174c9db151c0797349e4b3c26422a817936
5,416
py
Python
test_nlp_util.py
kenttw/2021-bitbrain-shopee
f63975babc17f03718209432013e325b6eb5e39e
[ "Apache-2.0" ]
null
null
null
test_nlp_util.py
kenttw/2021-bitbrain-shopee
f63975babc17f03718209432013e325b6eb5e39e
[ "Apache-2.0" ]
null
null
null
test_nlp_util.py
kenttw/2021-bitbrain-shopee
f63975babc17f03718209432013e325b6eb5e39e
[ "Apache-2.0" ]
null
null
null
import nlp_util def testGC(): raw_address = 'isn s.h. & rekan, somba opu 76' result = nlp_util.genCC(raw_address) print(result) assert result def test_getPair(): # label, raw = "hanief sembilan mtr -h", "kuripan hanief semb mtr -h, gajah mada, 58112" # print(getPair(label, raw)) raw = " ...
37.351724
145
0.64051
0
0
0
0
0
0
0
0
1,862
0.343796
cb210538262eb886c5121655f0c6de13883af94c
2,433
py
Python
mlprimitives/adapters/keras.py
Hector-hedb12/MLPrimitives
82e4826a83ca27e0c2e764625a0d862fc8b95af2
[ "MIT" ]
null
null
null
mlprimitives/adapters/keras.py
Hector-hedb12/MLPrimitives
82e4826a83ca27e0c2e764625a0d862fc8b95af2
[ "MIT" ]
null
null
null
mlprimitives/adapters/keras.py
Hector-hedb12/MLPrimitives
82e4826a83ca27e0c2e764625a0d862fc8b95af2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import tempfile import keras import numpy as np from mlprimitives.utils import import_object LOGGER = logging.getLogger(__name__) class Sequential(object): """A Wrapper around Sequential Keras models with a simpler interface.""" def __getstate__(self): state...
28.290698
87
0.618167
2,257
0.927661
0
0
0
0
0
0
178
0.073161
cb214db88b78d4f30ed19cb317af575bf87c3f7d
686
py
Python
src/django_perf_rec/settings.py
adamchainz/django-perf-rec
f543053d9de5bc7f52f5761fc914d342c78e37a1
[ "MIT" ]
147
2018-08-21T14:18:27.000Z
2022-03-31T23:16:58.000Z
src/django_perf_rec/settings.py
adamchainz/django-perf-rec
f543053d9de5bc7f52f5761fc914d342c78e37a1
[ "MIT" ]
48
2018-07-15T11:07:08.000Z
2022-03-26T16:00:22.000Z
src/django_perf_rec/settings.py
adamchainz/django-perf-rec
f543053d9de5bc7f52f5761fc914d342c78e37a1
[ "MIT" ]
11
2018-07-13T10:09:44.000Z
2021-02-13T18:15:12.000Z
import sys from typing import Any from django.conf import settings if sys.version_info >= (3, 8): from typing import Literal ModeType = Literal["once", "none", "all"] else: ModeType = str class Settings: defaults = {"HIDE_COLUMNS": True, "MODE": "once"} def get_setting(self, key: str) -> Any:...
20.176471
53
0.635569
447
0.651603
0
0
174
0.253644
0
0
63
0.091837
cb21a8094269bad0f82713f212cba8533460c4c0
3,026
py
Python
server_parse/server_parse.py
MrFlynn/mc-playerstat-webhook
ffacae4eeeb5baafc21d2bf9076c1472fd3fb06b
[ "MIT" ]
null
null
null
server_parse/server_parse.py
MrFlynn/mc-playerstat-webhook
ffacae4eeeb5baafc21d2bf9076c1472fd3fb06b
[ "MIT" ]
null
null
null
server_parse/server_parse.py
MrFlynn/mc-playerstat-webhook
ffacae4eeeb5baafc21d2bf9076c1472fd3fb06b
[ "MIT" ]
null
null
null
import os import json class ServerParse: def __init__(self, directory: str) -> None: """Initializes class. Stores root directory to server and loads whitelist and server name. :param directory: directory containing all server files (configurations saves, etc.). :return...
34.781609
79
0.609385
3,001
0.991738
0
0
0
0
0
0
1,681
0.555519
cb224d882dc0ed19d5bdb03ccaf29d2bdc6ffef3
2,402
py
Python
mpst_ts/codegen/generator/node/node_v2/node_strategy.py
stscript-cgo/STScript
d2ab2a05b997e9487fd3057a38dcec67feb20e53
[ "Apache-2.0" ]
null
null
null
mpst_ts/codegen/generator/node/node_v2/node_strategy.py
stscript-cgo/STScript
d2ab2a05b997e9487fd3057a38dcec67feb20e53
[ "Apache-2.0" ]
null
null
null
mpst_ts/codegen/generator/node/node_v2/node_strategy.py
stscript-cgo/STScript
d2ab2a05b997e9487fd3057a38dcec67feb20e53
[ "Apache-2.0" ]
null
null
null
import os from ...utils import CodeGenerationStrategy from ....endpoint import Endpoint from .....utils import TemplateGenerator class NodeStrategy(CodeGenerationStrategy, target='node'): def __init__(self): super().__init__() self.output_dir = 'sandbox/node' dirname =...
39.377049
86
0.517485
2,271
0.945462
0
0
0
0
0
0
530
0.220649
cb229d6175600c19fd97b95e24ba4adaaf6eb1d6
2,208
py
Python
dump-pkg/src/dumpshmamp/collectors/docker.py
sha1n/macos-devenv-dump-poc
be439ad4a0c0ac265fe62d44bded73eab1a0c31d
[ "MIT" ]
null
null
null
dump-pkg/src/dumpshmamp/collectors/docker.py
sha1n/macos-devenv-dump-poc
be439ad4a0c0ac265fe62d44bded73eab1a0c31d
[ "MIT" ]
null
null
null
dump-pkg/src/dumpshmamp/collectors/docker.py
sha1n/macos-devenv-dump-poc
be439ad4a0c0ac265fe62d44bded73eab1a0c31d
[ "MIT" ]
null
null
null
from dumpshmamp.collectors.files import try_copyfile, file_path, mkdir from shminspector.util.cmd import try_capture_output, is_command def collect_docker_files(user_home_dir_path, target_dir_path, ctx): if is_command("docker"): ctx.logger.info("Collecting Docker information...") mkdir(target_dir...
43.294118
120
0.714674
0
0
0
0
0
0
0
0
406
0.183877
cb239cecbad0a6d1b7d8d21689a46f10325162cb
1,185
py
Python
itamar/find_box.py
ijda3/TrabalhoVisaoEquipe2
242209688badafc5ddbbdccaf4f18d38d51ec6f9
[ "MIT" ]
null
null
null
itamar/find_box.py
ijda3/TrabalhoVisaoEquipe2
242209688badafc5ddbbdccaf4f18d38d51ec6f9
[ "MIT" ]
null
null
null
itamar/find_box.py
ijda3/TrabalhoVisaoEquipe2
242209688badafc5ddbbdccaf4f18d38d51ec6f9
[ "MIT" ]
1
2019-09-17T10:03:18.000Z
2019-09-17T10:03:18.000Z
import cv2 import numpy as np # Normal routines img = cv2.imread('image3.png') scale_percent = 30 # percent of original size width = int(img.shape[1] * scale_percent / 100) height = int(img.shape[0] * scale_percent / 100) dim = (width, height) # resize image img = cv2.resize(img, dim, interpolation = cv2.INTER_AREA...
28.214286
83
0.667511
0
0
0
0
0
0
0
0
352
0.297046
cb24335794dfb74e005ddf509d5b53a427be39f3
749
py
Python
P0023.py
sebastianaldi17/ProjectEuler
19562fba3456ec904bcc264fb786a92610e42622
[ "MIT" ]
null
null
null
P0023.py
sebastianaldi17/ProjectEuler
19562fba3456ec904bcc264fb786a92610e42622
[ "MIT" ]
null
null
null
P0023.py
sebastianaldi17/ProjectEuler
19562fba3456ec904bcc264fb786a92610e42622
[ "MIT" ]
null
null
null
# Non-abundant sums # https://projecteuler.net/problem=23 # This actually took 5 seconds to process. # Maybe a faster solution is present? from math import sqrt from collections import defaultdict def divisors(n): div = 0 for i in range(1, int(sqrt(n)) + 1): if n%i == 0: if i*i == n or n/...
24.16129
46
0.595461
0
0
0
0
0
0
0
0
199
0.265688
cb24beb92beb674d28a67267a6db323918c01739
1,665
py
Python
api/scpca_portal/config/production.py
AlexsLemonade/scpca-portal
d60d6db5abe892ed58764128269df936778c6fd7
[ "BSD-3-Clause" ]
null
null
null
api/scpca_portal/config/production.py
AlexsLemonade/scpca-portal
d60d6db5abe892ed58764128269df936778c6fd7
[ "BSD-3-Clause" ]
85
2021-07-27T14:33:55.000Z
2022-03-28T20:18:41.000Z
api/scpca_portal/config/production.py
AlexsLemonade/scpca-portal
d60d6db5abe892ed58764128269df936778c6fd7
[ "BSD-3-Clause" ]
null
null
null
import os import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration from scpca_portal.config.common import Common class Production(Common): INSTALLED_APPS = Common.INSTALLED_APPS SECRET_KEY = os.getenv("DJANGO_SECRET_KEY") # Site # https://docs.djangoproject.com/en/2.0/ref/setti...
32.019231
121
0.655856
1,525
0.915916
0
0
0
0
0
0
795
0.477477
cb25b7a3a87d4948f644a33014449a6de3b01732
1,057
py
Python
CPP-PyTorch-Ext/test_validation.py
AmirOfir/GCK3x3ConvLayer
adf6ddefb01888fb247edaa0d87e2da546781584
[ "BSD-3-Clause" ]
null
null
null
CPP-PyTorch-Ext/test_validation.py
AmirOfir/GCK3x3ConvLayer
adf6ddefb01888fb247edaa0d87e2da546781584
[ "BSD-3-Clause" ]
null
null
null
CPP-PyTorch-Ext/test_validation.py
AmirOfir/GCK3x3ConvLayer
adf6ddefb01888fb247edaa0d87e2da546781584
[ "BSD-3-Clause" ]
null
null
null
import gc import math import numpy as np import torch import torch.nn.functional as F import timeit import time from gck_layer import GCK3x3Layer kernel_dim = 3 def tensors_equal(a,b): b = torch.allclose(a, b, atol=0.01) if (b): print('same: True') else: print('Same: False (diff:', ((a-b)....
27.102564
102
0.685904
0
0
0
0
0
0
0
0
35
0.033113
cb277323c3dc4f94fa2e361b8e6832bfbfd523a1
1,009
py
Python
now_playing_graph/stats.py
macbre/now-playing-graph
2c211ef5544a6892e8e5fc2556ffcc6b7ca7ab84
[ "MIT" ]
null
null
null
now_playing_graph/stats.py
macbre/now-playing-graph
2c211ef5544a6892e8e5fc2556ffcc6b7ca7ab84
[ "MIT" ]
3
2019-02-07T17:46:04.000Z
2019-02-15T14:27:09.000Z
now_playing_graph/stats.py
macbre/now-playing-graph
2c211ef5544a6892e8e5fc2556ffcc6b7ca7ab84
[ "MIT" ]
null
null
null
""" Prepare some stats from timelines """ # https://docs.python.org/3.7/library/collections.html#collections.Counter from collections import Counter def get_timeline_stats(timeline): """ :type timeline list[now_playing_graph.timeline.TimelineEntry] :rtype: dict """ top_artists = Counter() top_...
30.575758
85
0.697721
0
0
0
0
0
0
0
0
261
0.258672
cb279012d1ad198dad56cddf7894586685f1a73f
10,197
py
Python
limnoria-plugins/SupportNotifications/plugin.py
chevah/ircbot-plugins
b3d7d274600c85ab856880b4ec693ee913c25c8a
[ "MIT" ]
null
null
null
limnoria-plugins/SupportNotifications/plugin.py
chevah/ircbot-plugins
b3d7d274600c85ab856880b4ec693ee913c25c8a
[ "MIT" ]
2
2017-05-24T10:39:28.000Z
2019-11-21T12:45:20.000Z
limnoria-plugins/SupportNotifications/plugin.py
chevah/ircbot-plugins
b3d7d274600c85ab856880b4ec693ee913c25c8a
[ "MIT" ]
null
null
null
""" Use GMail API to check an Inbox for new emails. To generate the initial credentials you will need to execute this module from python with first argument to a patch containing your API client details and the second argument to the file where to store the credentials. It uses the `historyID` configuration option to...
30.9
79
0.577229
8,919
0.874669
0
0
0
0
0
0
3,085
0.30254
cb27ec0e5739de15db5126410f025e93999f0c1d
435
py
Python
qusetta/_version.py
qcware/qusetta
cf4c1e47d819679a8b4d683326bd6d005686a285
[ "MIT" ]
3
2020-07-15T15:59:41.000Z
2022-02-05T15:06:16.000Z
qusetta/_version.py
qcware/qusetta
cf4c1e47d819679a8b4d683326bd6d005686a285
[ "MIT" ]
2
2021-01-21T12:03:24.000Z
2021-01-26T18:07:27.000Z
qusetta/_version.py
qcware/qusetta
cf4c1e47d819679a8b4d683326bd6d005686a285
[ "MIT" ]
3
2020-07-15T15:59:47.000Z
2022-02-07T15:09:51.000Z
"""Defines the version number and details of ``qusetta``.""" __all__ = ( '__version__', '__author__', '__authoremail__', '__license__', '__sourceurl__', '__description__' ) __version__ = "0.0.0" __author__ = "Joseph T. Iosue" __authoremail__ = "joe.iosue@qcware.com" __license__ = "MIT License" __sourceurl__ ...
29
76
0.731034
0
0
0
0
0
0
0
0
299
0.687356
cb27ec17609d44f92920d957068c2736f843142c
777
py
Python
LobbyService/test/test_get_lobbies.py
Devin0xFFFFFF/singed-feathers
747eef56fb3ba2a73cb7ba851462894efeddd00b
[ "BSD-3-Clause" ]
1
2017-06-20T15:19:40.000Z
2017-06-20T15:19:40.000Z
LobbyService/test/test_get_lobbies.py
Devin0xFFFFFF/singed-feathers
747eef56fb3ba2a73cb7ba851462894efeddd00b
[ "BSD-3-Clause" ]
3
2019-02-13T16:05:25.000Z
2019-02-15T03:31:06.000Z
LobbyService/test/test_get_lobbies.py
Devin0xFFFFFF/singed-feathers
747eef56fb3ba2a73cb7ba851462894efeddd00b
[ "BSD-3-Clause" ]
null
null
null
import pytest from mock import Mock, patch from service import get_lobbies @patch('service.lobby_service_common.get_public_lobbies') def test_get_lobbies(get_public_lobbies_mock): get_public_lobbies_mock.return_value = {} response = get_lobbies.lambda_handler({}, None) valid_response = {'statusCode': 2...
29.884615
116
0.759331
0
0
0
0
695
0.894466
0
0
192
0.247104
cb283b303e7b53a68315f74dab085b92d21f9186
1,031
py
Python
truncande/cli.py
Ricyteach/truncande
b7c529cb141b6c534833b4f9536ea6910412d637
[ "MIT" ]
null
null
null
truncande/cli.py
Ricyteach/truncande
b7c529cb141b6c534833b4f9536ea6910412d637
[ "MIT" ]
null
null
null
truncande/cli.py
Ricyteach/truncande
b7c529cb141b6c534833b4f9536ea6910412d637
[ "MIT" ]
null
null
null
import pathlib import click from . import candeout @click.group() @click.argument("ifile", type=click.Path(exists=True, dir_okay=False), required=True) @click.argument( "ofile", type=click.Path(exists=False, dir_okay=False, writable=True), required=False, ) @click.pass_context def main(ctx, ifile, ofile...
25.775
88
0.676043
0
0
0
0
969
0.939864
0
0
103
0.099903
cb2a679f6bf1c9fc3be6603b4c524bc925b318db
756
py
Python
conference/decorators.py
ethancarlsson/epcon
10ae259ad75271651506d44cc5e71cf089349ea3
[ "BSD-2-Clause" ]
40
2015-03-03T22:14:58.000Z
2022-02-15T22:27:48.000Z
conference/decorators.py
ethancarlsson/epcon
10ae259ad75271651506d44cc5e71cf089349ea3
[ "BSD-2-Clause" ]
699
2015-01-21T10:13:29.000Z
2022-02-08T09:26:36.000Z
conference/decorators.py
ethancarlsson/epcon
10ae259ad75271651506d44cc5e71cf089349ea3
[ "BSD-2-Clause" ]
96
2015-01-22T11:03:13.000Z
2022-01-31T05:35:34.000Z
import functools from django.contrib import messages from django.urls import reverse from django.shortcuts import redirect def full_profile_required(func): @functools.wraps(func) def wrapper(request, *args, **kwargs): if (request.user and request.user.id # FIXME test mocks mess with ...
31.5
109
0.661376
0
0
0
0
573
0.757937
0
0
171
0.22619
cb2b37553000857b2471180fda8b3f952f6a125d
3,642
py
Python
flaskdynamo_v1_completeWithCardsTwoPage_API_Version_json_req_type (copy)/2paginator.py
A9K5/Python_Flask
6e63c80fff1073e4b2a7dbb4e75a15363a9fe432
[ "MIT" ]
null
null
null
flaskdynamo_v1_completeWithCardsTwoPage_API_Version_json_req_type (copy)/2paginator.py
A9K5/Python_Flask
6e63c80fff1073e4b2a7dbb4e75a15363a9fe432
[ "MIT" ]
null
null
null
flaskdynamo_v1_completeWithCardsTwoPage_API_Version_json_req_type (copy)/2paginator.py
A9K5/Python_Flask
6e63c80fff1073e4b2a7dbb4e75a15363a9fe432
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect, jsonify from flask_cors import CORS, cross_origin from datetime import datetime from flask import Blueprint from flask_paginate import Pagination, get_page_parameter import botocore import boto3 import decimal import logging import time import argparse impo...
30.35
104
0.594728
0
0
0
0
2,863
0.786107
0
0
1,564
0.429434
cb2b648795be23b41ff6ba13bc051d25b71eee73
1,279
py
Python
snap_scripts/old_scripts/tem_iem_older_scripts_april2018/tem_inputs_iem/min_max_deltas_tem_iem.py
ua-snap/downscale
3fe8ea1774cf82149d19561ce5f19b25e6cba6fb
[ "MIT" ]
5
2020-06-24T21:55:12.000Z
2022-03-23T16:32:54.000Z
snap_scripts/old_scripts/tem_iem_older_scripts_april2018/tem_inputs_iem/min_max_deltas_tem_iem.py
ua-snap/downscale
3fe8ea1774cf82149d19561ce5f19b25e6cba6fb
[ "MIT" ]
17
2016-01-04T23:37:47.000Z
2017-04-17T20:57:02.000Z
snap_scripts/old_scripts/tem_iem_older_scripts_april2018/tem_inputs_iem/min_max_deltas_tem_iem.py
ua-snap/downscale
3fe8ea1774cf82149d19561ce5f19b25e6cba6fb
[ "MIT" ]
3
2020-09-16T04:48:57.000Z
2021-05-25T03:46:00.000Z
from downscale import DeltaDownscale class DeltaDownscaleMM( DeltaDownscale ): def _calc_anomalies( self ): print('calculating anomalies') def downscale( self, *args, **kwargs ): print( 'downscaling...' ) # FOR RUN OF THE MIN / MAX TAS DATA: # 1. COMPUTE DELTAS FIRST ANND WRITE TO NETCDF # 2. USE `DeltaDownsc...
33.657895
145
0.762314
174
0.136044
0
0
0
0
0
0
642
0.501955
cb2cbf8ad2d571d45d6c4cf03720870a2ec15b6b
13,552
py
Python
mldftdat/dft/utils.py
mir-group/CiderPress
bf2b3536e6bd7432645c18dce5a745d63bc9df59
[ "MIT" ]
10
2021-09-09T06:51:57.000Z
2021-12-17T09:48:41.000Z
mldftdat/dft/utils.py
mir-group/CiderPress
bf2b3536e6bd7432645c18dce5a745d63bc9df59
[ "MIT" ]
null
null
null
mldftdat/dft/utils.py
mir-group/CiderPress
bf2b3536e6bd7432645c18dce5a745d63bc9df59
[ "MIT" ]
null
null
null
import numpy as np from mldftdat.pyscf_utils import * from mldftdat.workflow_utils import safe_mem_cap_mb from pyscf.dft.numint import eval_ao, make_mask from mldftdat.density import LDA_FACTOR,\ contract21_deriv, contract21, GG_AMIN def dtauw(rho_data): return - get_gradient_magnitud...
35.018088
87
0.472845
0
0
0
0
0
0
0
0
2,565
0.189271
cb2cc7212e69c1cafb5036e456b7f734ca0ecc36
146
py
Python
api/apps/boxes/apps.py
polart/vagrant-registry
47fa53a93d506f2501f333a256ccf36e49970789
[ "MIT" ]
8
2020-03-16T21:41:08.000Z
2021-12-16T05:44:04.000Z
api/apps/boxes/apps.py
polart/vagrant-registry
47fa53a93d506f2501f333a256ccf36e49970789
[ "MIT" ]
6
2020-03-21T11:23:18.000Z
2022-02-27T01:16:18.000Z
api/apps/boxes/apps.py
polart/vagrant-registry
47fa53a93d506f2501f333a256ccf36e49970789
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BoxesConfig(AppConfig): name = 'apps.boxes' def ready(self): import apps.boxes.signals
16.222222
33
0.691781
109
0.746575
0
0
0
0
0
0
12
0.082192
cb2db5b3ea07e66e233815cd31fd91213e31f66f
728
py
Python
generalexercise/05.py
haxuyennt38/python-learning
c5fcfc0abfd4aebf4ce58e2f23d378703bd48430
[ "MIT" ]
null
null
null
generalexercise/05.py
haxuyennt38/python-learning
c5fcfc0abfd4aebf4ce58e2f23d378703bd48430
[ "MIT" ]
null
null
null
generalexercise/05.py
haxuyennt38/python-learning
c5fcfc0abfd4aebf4ce58e2f23d378703bd48430
[ "MIT" ]
null
null
null
##Write a program to input from the input file a familiar greeting of any length, each word on a line. Output the greeting file you just received on a single line, the words separated by a space #Mo file voi mode='r' de doc file with open('05_ip.txt', 'r') as fileInp: #Dung ham read() doc toan bo du lieu tu file F...
36.4
194
0.737637
0
0
0
0
0
0
0
0
496
0.681319
cb2f7039474202ce1d528910f710e53fb8291923
15,642
py
Python
pyzem/dvid/dvidio.py
janelia-flyem/pyzem
c8e82e2fea880ef7f597ff5e4c685668ed0a4caa
[ "BSD-3-Clause" ]
2
2018-11-02T07:38:46.000Z
2019-11-09T02:26:23.000Z
pyzem/dvid/dvidio.py
janelia-flyem/pyzem
c8e82e2fea880ef7f597ff5e4c685668ed0a4caa
[ "BSD-3-Clause" ]
null
null
null
pyzem/dvid/dvidio.py
janelia-flyem/pyzem
c8e82e2fea880ef7f597ff5e4c685668ed0a4caa
[ "BSD-3-Clause" ]
2
2017-12-26T16:15:34.000Z
2020-04-15T12:18:38.000Z
from __future__ import print_function from __future__ import absolute_import import os import sys from optparse import OptionParser import json import requests from pyzem.dvid import dvidenv import datetime def compute_age(d): age = -1 if 'timestamp' in d: t = datetime.datetime.strptime(d['timestamp']...
37.510791
196
0.609385
12,571
0.80367
0
0
0
0
0
0
3,282
0.20982
cb2f8c67b0e2ca2a922fcafb3a06a1e2018da4f3
3,970
py
Python
tf src/app_tf.py
aj-naik/Emotion-Recognistion
65068c357b8594ef486da2056e91c9cc83a1c1fe
[ "MIT" ]
null
null
null
tf src/app_tf.py
aj-naik/Emotion-Recognistion
65068c357b8594ef486da2056e91c9cc83a1c1fe
[ "MIT" ]
null
null
null
tf src/app_tf.py
aj-naik/Emotion-Recognistion
65068c357b8594ef486da2056e91c9cc83a1c1fe
[ "MIT" ]
1
2021-06-23T20:07:47.000Z
2021-06-23T20:07:47.000Z
import tkinter as tk from tkinter import * import cv2 from PIL import Image, ImageTk import numpy as np import tensorflow as tf from tensorflow.keras import layers from tensorflow import keras emotion_model = keras.Sequential( [ layers.Conv2D(32, kernel_size=(3,3), activation='relu', input_shape = (48,48,...
35.446429
145
0.623174
0
0
0
0
0
0
0
0
463
0.116625
cb31d3dbb2f45257182e33ad028503ef96676702
14,032
py
Python
ostap/logger/mute.py
TatianaOvsiannikova/ostap
a005a78b4e2860ac8f4b618e94b4b563b2eddcf1
[ "BSD-3-Clause" ]
14
2017-03-24T12:38:08.000Z
2022-02-21T05:00:57.000Z
ostap/logger/mute.py
TatianaOvsiannikova/ostap
a005a78b4e2860ac8f4b618e94b4b563b2eddcf1
[ "BSD-3-Clause" ]
10
2019-03-08T18:48:42.000Z
2022-03-22T11:59:48.000Z
ostap/logger/mute.py
TatianaOvsiannikova/ostap
a005a78b4e2860ac8f4b618e94b4b563b2eddcf1
[ "BSD-3-Clause" ]
11
2017-03-23T15:29:58.000Z
2022-02-21T05:03:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================= ## @file # Module with some simple but useful utilities # - suppression of stdout/stderr # @author Vanya BELYAEV Ivan.Belyaev@itep.ru # @date 2013-02-10 # # ===========================...
34.141119
98
0.503278
7,062
0.503278
0
0
0
0
0
0
8,365
0.596137
cb321935a3fe0e9c8f187816524cd352184e7a6b
629
py
Python
day_1/day1.py
mickeelm/aoc2019
7fd532d2237e1cf0686c9b331a2b97515ee94c03
[ "Unlicense" ]
1
2021-02-02T08:32:36.000Z
2021-02-02T08:32:36.000Z
day_1/day1.py
mickeelm/aoc2019
7fd532d2237e1cf0686c9b331a2b97515ee94c03
[ "Unlicense" ]
null
null
null
day_1/day1.py
mickeelm/aoc2019
7fd532d2237e1cf0686c9b331a2b97515ee94c03
[ "Unlicense" ]
null
null
null
def fuel_required_single_module(mass): fuel = int(mass / 3) - 2 return fuel if fuel > 0 else 0 def fuel_required_multiple_modules(masses): total_fuel = 0 for mass in masses: total_fuel += fuel_required_single_module(mass) return total_fuel def recursive_fuel_required_single_module(mass):...
25.16
65
0.72814
0
0
0
0
0
0
0
0
0
0
cb36446e17dc2a78bb119a8682ef3d02f6e62079
22,403
py
Python
saascs_sschoreo/feature_choreo/task_helper.py
muraligo/featuretimeline
24c4f619079380dbe43cb8efae9455ae80de3ae0
[ "MIT" ]
null
null
null
saascs_sschoreo/feature_choreo/task_helper.py
muraligo/featuretimeline
24c4f619079380dbe43cb8efae9455ae80de3ae0
[ "MIT" ]
null
null
null
saascs_sschoreo/feature_choreo/task_helper.py
muraligo/featuretimeline
24c4f619079380dbe43cb8efae9455ae80de3ae0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Mar 09 15:44:40 2020 @author: mugopala Helper functions for tasks """ import os import stat import json import threading import time import queue as stdq import csv from io import StringIO from .helpers import file_reader from . import task_consts, co...
44.187377
244
0.599339
5,484
0.244789
0
0
1,095
0.048877
0
0
5,098
0.227559
cb3862c145315bab55381d425ba7e7e14a856cfa
819
py
Python
media.py
DojoZheng/Udacity-Movies-Website
e59d294b555e1abb9db7ecb46a51c9a72b9b8dcf
[ "MIT" ]
null
null
null
media.py
DojoZheng/Udacity-Movies-Website
e59d294b555e1abb9db7ecb46a51c9a72b9b8dcf
[ "MIT" ]
null
null
null
media.py
DojoZheng/Udacity-Movies-Website
e59d294b555e1abb9db7ecb46a51c9a72b9b8dcf
[ "MIT" ]
null
null
null
import webbrowser class Movie(): """ This class provides a way to store movie related information """ # Class Variable: These are the Movies Ratings # G: General Audiences. All ages admitted. # PG: Parental Guidance Suggested. Some material may not be suitable for children. # PG-13: Parents Strongly Cautioned....
37.227273
95
0.752137
800
0.976801
0
0
0
0
0
0
481
0.587302
cb397006da0e1fab13bd9fe5696085b9a41dee97
1,365
py
Python
converter.py
Supercip971/convertisseur-python
5e8e6c150fcc3c79e4902971ffd6227b32253450
[ "MIT" ]
null
null
null
converter.py
Supercip971/convertisseur-python
5e8e6c150fcc3c79e4902971ffd6227b32253450
[ "MIT" ]
null
null
null
converter.py
Supercip971/convertisseur-python
5e8e6c150fcc3c79e4902971ffd6227b32253450
[ "MIT" ]
null
null
null
str_xdigits = [ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", ] def convert_digit(value: int, base: int) -> str: return str_xdigits[value % base] def convert_to_val(value: int, base: int) -> str: if value == No...
17.727273
69
0.570696
0
0
0
0
0
0
0
0
92
0.067399
cb3c3f1580ef22e37e0c06b778c777c3a92768d2
13,914
py
Python
backend/test/test_api.py
solevis/pixyship2
15a592a1961e4286a344a0d1664cfb491439bf09
[ "MIT" ]
8
2021-04-04T17:10:35.000Z
2021-12-04T06:56:56.000Z
backend/test/test_api.py
solevis/pixyship2
15a592a1961e4286a344a0d1664cfb491439bf09
[ "MIT" ]
56
2021-02-18T14:50:32.000Z
2022-03-28T14:03:30.000Z
backend/test/test_api.py
solevis/pixyship2
15a592a1961e4286a344a0d1664cfb491439bf09
[ "MIT" ]
2
2021-09-28T00:57:00.000Z
2022-01-21T07:47:15.000Z
from pixelstarshipsapi import PixelStarshipsApi from run import push_context def test_login(): pixel_starships_api = PixelStarshipsApi() device_key, device_checksum = pixel_starships_api.generate_device() token = pixel_starships_api.get_device_token(device_key, device_checksum) assert isinstance(tok...
28.280488
78
0.720425
0
0
0
0
0
0
0
0
3,875
0.278496
cb3c41b02dde05dedca749f977bedf28e7616d9a
2,776
py
Python
tests/test_io.py
crindt/geofeather
5cf339de6a6db894493c2ed0515a8947620276c7
[ "MIT" ]
60
2019-10-04T14:06:14.000Z
2021-06-29T16:15:49.000Z
tests/test_io.py
crindt/geofeather
5cf339de6a6db894493c2ed0515a8947620276c7
[ "MIT" ]
5
2019-10-07T01:48:15.000Z
2020-06-25T02:48:11.000Z
tests/test_io.py
brendan-ward/geofeather
412db7e410e44de14d9c408d91ea116f699ffe01
[ "MIT" ]
null
null
null
import os from geofeather import to_geofeather, from_geofeather from pandas.testing import assert_frame_equal import pytest def test_points_geofeather(tmpdir, points_wgs84): """Confirm that we can round-trip points to / from feather file""" filename = tmpdir / "points_wgs84.feather" to_geofeather(points...
31.191011
107
0.736671
0
0
0
0
0
0
0
0
757
0.272695
cb3cff9fc2f6aa6821bff72a0e29830eff5b0e64
4,133
py
Python
pilmoji/helpers.py
solfisher/miq-fedi
2eb7137410ce099ba995b96623191f8b391e446b
[ "MIT" ]
8
2022-01-18T11:45:36.000Z
2022-02-23T12:54:50.000Z
pilmoji/helpers.py
solfisher/miq-fedi
2eb7137410ce099ba995b96623191f8b391e446b
[ "MIT" ]
2
2022-01-21T12:34:50.000Z
2022-01-23T03:18:34.000Z
pilmoji/helpers.py
solfisher/miq-fedi
2eb7137410ce099ba995b96623191f8b391e446b
[ "MIT" ]
1
2022-01-22T19:53:08.000Z
2022-01-22T19:53:08.000Z
from __future__ import annotations import re from enum import Enum from emoji import EMOJI_UNICODE from PIL import ImageFont from typing import Final, List, NamedTuple, TYPE_CHECKING if TYPE_CHECKING: from .core import FontT # This is actually way faster than it seems _UNICODE_EMOJI_REGEX = '|'.join(map(re.es...
24.169591
120
0.571256
786
0.186831
0
0
0
0
0
0
1,829
0.434752
cb3d02f01e83a74d7111454d080e99724759677b
53,276
py
Python
networking_arista/ml2/mechanism_arista.py
sapcc/networking-arista
c274dac96e88c764decf2821c90c6866b868e1d6
[ "Apache-2.0" ]
null
null
null
networking_arista/ml2/mechanism_arista.py
sapcc/networking-arista
c274dac96e88c764decf2821c90c6866b868e1d6
[ "Apache-2.0" ]
8
2018-03-28T07:55:54.000Z
2020-05-29T05:36:38.000Z
networking_arista/ml2/mechanism_arista.py
sapcc/networking-arista
c274dac96e88c764decf2821c90c6866b868e1d6
[ "Apache-2.0" ]
1
2017-01-18T14:59:48.000Z
2017-01-18T14:59:48.000Z
# Copyright (c) 2013 OpenStack Foundation # # 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 ...
43.138462
81
0.578028
47,209
0.886121
0
0
1,513
0.028399
0
0
13,534
0.254036
cb3d6a46bfe63becf40c12dca772072e068d92b3
4,524
py
Python
yamlfred/alfred_object.py
uchida/yamlfred
bbd3ff1c875aef095556aaa6b5838e1f2a3ec01e
[ "CC0-1.0" ]
null
null
null
yamlfred/alfred_object.py
uchida/yamlfred
bbd3ff1c875aef095556aaa6b5838e1f2a3ec01e
[ "CC0-1.0" ]
null
null
null
yamlfred/alfred_object.py
uchida/yamlfred
bbd3ff1c875aef095556aaa6b5838e1f2a3ec01e
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import os.path import uuid from yamlfred.utils import remove_default, merge_dicts from yamlfred.utils import Include defaults = { 'alfred.workflow.output.notification': { 'config': {'removeextension': False, 'output': 0, 'las...
34.015038
148
0.552387
1,133
0.250442
0
0
0
0
0
0
2,087
0.461317
cb3d6e4db58133f9a78f2d8575a0e3cd280dbefc
8,231
py
Python
project2/main.py
DroogieDroog/python
98ab243638b10270bbce5c38c60abea8823fa9ab
[ "MIT" ]
null
null
null
project2/main.py
DroogieDroog/python
98ab243638b10270bbce5c38c60abea8823fa9ab
[ "MIT" ]
null
null
null
project2/main.py
DroogieDroog/python
98ab243638b10270bbce5c38c60abea8823fa9ab
[ "MIT" ]
null
null
null
""" pirple/python/project2/main.py Project #2 Create a hangman game """ from os import system, name from time import sleep from random import randint import string def clear_screen(): # for windows if name == 'nt': _ = system('cls') # for mac and linux(here, os.name is 'posix') else: ...
29.187943
134
0.556312
0
0
0
0
0
0
0
0
1,570
0.190742
cb3f41020f501bc2a6867a921cdc8450a62111fc
5,533
py
Python
deepnlpf/core/plugin_manager.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
3
2020-04-11T14:12:45.000Z
2020-05-30T16:31:06.000Z
deepnlpf/core/plugin_manager.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
34
2020-03-20T19:36:40.000Z
2022-03-20T13:00:32.000Z
deepnlpf/core/plugin_manager.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
1
2020-09-05T06:44:15.000Z
2020-09-05T06:44:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import deepnlpf.log as log from deepnlpf.core.util import Util class PluginManager: def __init__(self): self.HOME = os.environ["HOME"] self.PLUGIN_SERVER = "https://github.com/deepnlpf/" self.PLUGIN_PATH = self.HOME + "/d...
33.533333
88
0.566962
5,415
0.975676
0
0
0
0
0
0
1,128
0.203243
cb419d792f99a890b09abc5b89a8052227391ccc
2,628
py
Python
features/steps/config.py
wooga/karajan
b0952f156d69206fdcb1d71bd42c227077da6fd2
[ "MIT" ]
null
null
null
features/steps/config.py
wooga/karajan
b0952f156d69206fdcb1d71bd42c227077da6fd2
[ "MIT" ]
null
null
null
features/steps/config.py
wooga/karajan
b0952f156d69206fdcb1d71bd42c227077da6fd2
[ "MIT" ]
2
2018-02-01T14:00:07.000Z
2022-03-26T18:09:14.000Z
# # Copyright 2017 Wooga GmbH # # 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, distribute...
29.863636
88
0.603881
0
0
0
0
0
0
0
0
1,482
0.563927
cb448d0916ea853ce729b12d6f5c70de1ea2acee
2,786
py
Python
hexa/plugins/connector_postgresql/tests/test_models.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
4
2021-07-19T12:53:21.000Z
2022-01-26T17:45:02.000Z
hexa/plugins/connector_postgresql/tests/test_models.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
20
2021-05-17T12:27:06.000Z
2022-03-30T11:35:26.000Z
hexa/plugins/connector_postgresql/tests/test_models.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
2
2021-09-07T04:19:59.000Z
2022-02-08T15:33:29.000Z
from django import test from hexa.user_management.models import Membership, Team, User from ..models import Database, DatabasePermission, Table class PermissionTest(test.TestCase): @classmethod def setUpTestData(cls): cls.DB1 = Database.objects.create( hostname="host", username="user", p...
32.776471
82
0.524049
2,637
0.946518
0
0
1,143
0.410266
0
0
580
0.208184
cb4660aba1977432913e68e5b117b91b0389ccfc
1,932
py
Python
bcs-ui/backend/tests/components/test_bcs_api.py
kayinli/bk-bcs
93a0856175f7b066ef835921572c1cac590dbd8e
[ "Apache-2.0" ]
1
2021-11-16T08:15:13.000Z
2021-11-16T08:15:13.000Z
bcs-ui/backend/tests/components/test_bcs_api.py
kayinli/bk-bcs
93a0856175f7b066ef835921572c1cac590dbd8e
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/tests/components/test_bcs_api.py
kayinli/bk-bcs
93a0856175f7b066ef835921572c1cac590dbd8e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
40.25
115
0.745859
898
0.460513
0
0
103
0.052821
0
0
1,015
0.520513
cb469fd0baa70b22ad941da8c2a72d0f0b52a829
236
py
Python
myproject/myproject/apps/sample/urls.py
gabfl/sample-django
e71e37d58f24c86001d4c11b8e0f9a9202313811
[ "MIT" ]
1
2018-03-27T07:09:50.000Z
2018-03-27T07:09:50.000Z
myproject/myproject/apps/sample/urls.py
gabfl/sample-django
e71e37d58f24c86001d4c11b8e0f9a9202313811
[ "MIT" ]
null
null
null
myproject/myproject/apps/sample/urls.py
gabfl/sample-django
e71e37d58f24c86001d4c11b8e0f9a9202313811
[ "MIT" ]
1
2018-03-27T07:09:51.000Z
2018-03-27T07:09:51.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.index), path('hello', views.hello), path('world', views.world), path('users', views.users), path('user/<int:user_id>', views.user), ]
19.666667
43
0.627119
0
0
0
0
0
0
0
0
43
0.182203
cb49e1326cd56c6448e56f7f68971d7cbde7addb
760
py
Python
CPGAN/options.py
xiangsheng1325/CPGAN
f05d7183a28601d5af849229766ddaf1e4c5cba8
[ "MIT" ]
null
null
null
CPGAN/options.py
xiangsheng1325/CPGAN
f05d7183a28601d5af849229766ddaf1e4c5cba8
[ "MIT" ]
null
null
null
CPGAN/options.py
xiangsheng1325/CPGAN
f05d7183a28601d5af849229766ddaf1e4c5cba8
[ "MIT" ]
null
null
null
class SimpleOpt(): def __init__(self): self.method = 'cpgan' self.max_epochs = 100 self.graph_type = 'ENZYMES' self.data_dir = './data/facebook.graphs' self.gpu = '2' self.lr = 0.003 self.encode_size = 16 self.decode_size = 16 self.pool_size = ...
25.333333
48
0.565789
756
0.994737
0
0
128
0.168421
0
0
80
0.105263
cb4b06a0daa733982a8585a802efc451954cfd95
1,764
py
Python
ops/data_utils.py
lunasara/learning3d
6ddf529a1a69b780519688dd458aa4c75472ed92
[ "MIT" ]
null
null
null
ops/data_utils.py
lunasara/learning3d
6ddf529a1a69b780519688dd458aa4c75472ed92
[ "MIT" ]
null
null
null
ops/data_utils.py
lunasara/learning3d
6ddf529a1a69b780519688dd458aa4c75472ed92
[ "MIT" ]
null
null
null
import torch def mean_shift(template, source, p0_zero_mean, p1_zero_mean): template_mean = torch.eye(3).view(1, 3, 3).expand(template.size(0), 3, 3).to(template) # [B, 3, 3] source_mean = torch.eye(3).view(1, 3, 3).expand(source.size(0), 3, 3).to(source) # [B, 3, 3] if p0_zero_mean: p0_m = template.mean(di...
38.347826
115
0.638889
0
0
0
0
0
0
0
0
358
0.202948
cb4b79bd2a64b669c02e75a4cc2d59b49df0e3ce
12,449
py
Python
test/test_igp_shortcuts.py
tim-fiola/network_traffic_modeler_py3
d2bd7287ea86fb22ec41c2522164d5761fc225dd
[ "Apache-2.0" ]
102
2018-09-16T00:14:05.000Z
2022-03-24T09:07:37.000Z
test/test_igp_shortcuts.py
tim-fiola/network_traffic_modeler_py3
d2bd7287ea86fb22ec41c2522164d5761fc225dd
[ "Apache-2.0" ]
17
2019-01-17T14:00:50.000Z
2021-05-05T14:59:36.000Z
test/test_igp_shortcuts.py
tim-fiola/network_traffic_modeler_py3
d2bd7287ea86fb22ec41c2522164d5761fc225dd
[ "Apache-2.0" ]
10
2019-08-14T20:57:34.000Z
2022-03-24T09:07:42.000Z
import unittest from pyNTM import FlexModel from pyNTM import ModelException from pyNTM import PerformanceModel class TestIGPShortcuts(unittest.TestCase): def test_traffic_on_shortcut_lsps(self): """ Verify Interface and LSP traffic when IGP shortcuts enabled in baseline model. """...
40.288026
101
0.662383
12,334
0.990762
0
0
0
0
0
0
2,910
0.233754
cb4d4cf11ac360c8c881c5f2263fff2c5582e3f9
299
py
Python
Cracking the Coding Interview/ctci-solutions-master/ch-06-math-and-logic-puzzles/07-the-apocalypse.py
nikku1234/Code-Practise
94eb6680ea36efd10856c377000219285f77e5a4
[ "Apache-2.0" ]
9
2020-07-02T06:06:17.000Z
2022-02-26T11:08:09.000Z
Cracking the Coding Interview/ctci-solutions-master/ch-06-math-and-logic-puzzles/07-the-apocalypse.py
nikku1234/Code-Practise
94eb6680ea36efd10856c377000219285f77e5a4
[ "Apache-2.0" ]
1
2021-11-04T17:26:36.000Z
2021-11-04T17:26:36.000Z
Cracking the Coding Interview/ctci-solutions-master/ch-06-math-and-logic-puzzles/07-the-apocalypse.py
nikku1234/Code-Practise
94eb6680ea36efd10856c377000219285f77e5a4
[ "Apache-2.0" ]
8
2021-01-31T10:31:12.000Z
2022-03-13T09:15:55.000Z
# What will the gender ratio be after every family stops having children after # after they have a girl and not until then. def birth_ratio(): # Everytime a child is born, there is a 0.5 chance of the baby being male # and 0.5 chance of the baby being a girl. So the ratio is 1:1. return 1
33.222222
78
0.725753
0
0
0
0
0
0
0
0
259
0.866221
cb4daf0e2bd9267bcf8579574005098133b4355c
376
py
Python
tests/test_transform_identity.py
dlshriver/Queryable
0975f2687213958121ea4ac7efbaee9030193917
[ "MIT" ]
5
2016-04-04T16:49:11.000Z
2020-10-12T13:00:06.000Z
tests/test_transform_identity.py
dlshriver/Queryable
0975f2687213958121ea4ac7efbaee9030193917
[ "MIT" ]
3
2016-04-08T16:13:54.000Z
2022-02-03T15:23:48.000Z
tests/test_transform_identity.py
dlshriver/pinq
0975f2687213958121ea4ac7efbaee9030193917
[ "MIT" ]
null
null
null
import unittest from pinq.transforms import identity class predicate_true_tests(unittest.TestCase): def test_identity_int(self): self.assertEqual(identity(123), 123) def test_identity_str(self): self.assertEqual(identity("apple"), "apple") def test_identity_list(self): self.asse...
25.066667
72
0.710106
320
0.851064
0
0
0
0
0
0
28
0.074468