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
04dc2b56346a0029e3867882b541bc4c488cd002
12,578
py
Python
script.module.saltsrd.shared/lib/kodi.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:37:15.000Z
2019-03-05T09:37:15.000Z
script.module.saltsrd.shared/lib/kodi.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
script.module.saltsrd.shared/lib/kodi.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
""" Salts RD Lite shared module Copyright (C) 2016 creits -2- tknorris This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any...
35.430986
139
0.63134
5,956
0.473525
0
0
0
0
0
0
1,635
0.129989
04dc6f790341edc14815fce9aa1146cef3491bdc
11,554
py
Python
data/aicharacter.py
kennethsinder/exit-dash-hyperion
d44ea77ef5e8a6ce9490e3f802636da5b44e6e74
[ "MIT" ]
2
2018-01-29T14:34:51.000Z
2020-10-20T23:30:26.000Z
data/aicharacter.py
kennethsinder/exit-dash-hyperion
d44ea77ef5e8a6ce9490e3f802636da5b44e6e74
[ "MIT" ]
null
null
null
data/aicharacter.py
kennethsinder/exit-dash-hyperion
d44ea77ef5e8a6ce9490e3f802636da5b44e6e74
[ "MIT" ]
null
null
null
# coding=utf-8 from random import randint import pygame, math from character import * class AICharacter(Character): def __init__(self, x, y, Vx, Vy, properties=('slime', -1, -1)): # Properties should be a tuple of the form (STRING mobName, INT leftLimit, # INT rightLimit) where leftLimit ...
49.587983
131
0.552017
11,461
0.991951
0
0
111
0.009607
0
0
2,251
0.194824
04dd4054cf822a4ba24699d6faff9a798c1077f5
360
py
Python
py_elasticinfra/metrics/cpu_load.py
NullConvergence/py_metrics
fa58959591a1a4ee90cb4145acd4ed5f9f6c3b8a
[ "MIT" ]
null
null
null
py_elasticinfra/metrics/cpu_load.py
NullConvergence/py_metrics
fa58959591a1a4ee90cb4145acd4ed5f9f6c3b8a
[ "MIT" ]
null
null
null
py_elasticinfra/metrics/cpu_load.py
NullConvergence/py_metrics
fa58959591a1a4ee90cb4145acd4ed5f9f6c3b8a
[ "MIT" ]
null
null
null
import psutil from .base import BaseMetric class CpuLoad(BaseMetric): def __init__(self): pass def measure(self): load = psutil.cpu_percent() cpu_threads = psutil.cpu_percent(percpu=True) return {'cpu_load_average': load, 'cpu_load_threads': cpu_threads} d...
21.176471
53
0.630556
314
0.872222
0
0
0
0
0
0
41
0.113889
04df5ace15ecf002b804beff354c72b4b1d3aca6
6,157
py
Python
Basics_DataTypes/Sets.py
sudipkrk/Python_from_Scratch
2b414fd3d8c9694db50c61baaf424e945fbe35aa
[ "MIT" ]
1
2021-07-19T10:07:59.000Z
2021-07-19T10:07:59.000Z
Basics_DataTypes/Sets.py
sudipkrk/Python_from_Scratch
2b414fd3d8c9694db50c61baaf424e945fbe35aa
[ "MIT" ]
null
null
null
Basics_DataTypes/Sets.py
sudipkrk/Python_from_Scratch
2b414fd3d8c9694db50c61baaf424e945fbe35aa
[ "MIT" ]
null
null
null
#@ Sets : used to store multiple items in a single variable. #@ These are immutable, unordered and unindexed. And duplicates are not allowed in sets. #@ Use the curly brackets -> {} to create a set #@ set can be of any data type #@ Examples myset = {'apple', 'banana', 'orange'} # Cre...
66.204301
160
0.436414
0
0
0
0
0
0
0
0
2,890
0.469384
04e078577ead750421a7020ed8aeebb5726ef2c5
2,181
py
Python
HotPotato/hot_potato.py
caternuson/CircuitPython-Demos
cffb226750614caed5368d7ca31c06be321f54d8
[ "MIT" ]
null
null
null
HotPotato/hot_potato.py
caternuson/CircuitPython-Demos
cffb226750614caed5368d7ca31c06be321f54d8
[ "MIT" ]
null
null
null
HotPotato/hot_potato.py
caternuson/CircuitPython-Demos
cffb226750614caed5368d7ca31c06be321f54d8
[ "MIT" ]
null
null
null
# Circuit Playground Express Hot Potato # # Author: Carter Nelson # MIT License (https://opensource.org/licenses/MIT) import time import random import math import board from analogio import AnalogIn from adafruit_circuitplayground.express import cpx # This brings in the song to play import melody number_of_notes = len...
23.967033
76
0.600642
0
0
0
0
0
0
0
0
502
0.23017
04e099a4d954a7885dde4b77c5a8e0d2e91b8314
1,107
py
Python
optuna/pruners/__init__.py
captain-pool/optuna
2ae8c17afea54362460320870304c763e91c0596
[ "MIT" ]
4,950
2019-11-15T07:35:51.000Z
2022-03-31T10:32:42.000Z
optuna/pruners/__init__.py
SCUTJcfeng/optuna
9331374a2460da067a6922e4ea09dd4706f3d950
[ "MIT" ]
2,490
2019-11-15T07:06:20.000Z
2022-03-31T23:52:45.000Z
optuna/pruners/__init__.py
SCUTJcfeng/optuna
9331374a2460da067a6922e4ea09dd4706f3d950
[ "MIT" ]
621
2019-11-15T11:26:57.000Z
2022-03-28T11:46:34.000Z
from typing import TYPE_CHECKING from optuna.pruners._base import BasePruner from optuna.pruners._hyperband import HyperbandPruner from optuna.pruners._median import MedianPruner from optuna.pruners._nop import NopPruner from optuna.pruners._patient import PatientPruner from optuna.pruners._percentile import Percentil...
29.918919
88
0.766034
0
0
0
0
0
0
0
0
225
0.203252
04e0b45d4a2c91bb016d8c40ce99ce0942e046b2
7,728
py
Python
evaluator/design_table.py
vita-epfl/Trajectory-Transformer
922e17741c532678fd34b041257395acfaecec04
[ "MIT" ]
null
null
null
evaluator/design_table.py
vita-epfl/Trajectory-Transformer
922e17741c532678fd34b041257395acfaecec04
[ "MIT" ]
null
null
null
evaluator/design_table.py
vita-epfl/Trajectory-Transformer
922e17741c532678fd34b041257395acfaecec04
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties from collections import OrderedDict import pandas as pd from evaluator.evaluator_helpers import Categories, Sub_categories, Metrics class Table(object): """docstring for Table""" def __init__(self, arg=None)...
43.41573
158
0.566511
7,486
0.968685
0
0
0
0
0
0
1,304
0.168737
04e1d79de3ac3f1998a9096e9d35c2880a417cdc
4,667
py
Python
bench/sample.py
MustardForBreakfast/safetywrap
170f836e12df455aed9b6dce5e7c634f6b9e8f87
[ "Apache-2.0" ]
21
2019-10-31T17:43:18.000Z
2022-03-19T13:46:05.000Z
bench/sample.py
MustardForBreakfast/safetywrap
170f836e12df455aed9b6dce5e7c634f6b9e8f87
[ "Apache-2.0" ]
null
null
null
bench/sample.py
MustardForBreakfast/safetywrap
170f836e12df455aed9b6dce5e7c634f6b9e8f87
[ "Apache-2.0" ]
3
2019-11-01T17:50:07.000Z
2021-12-15T07:23:21.000Z
"""A benchmark to be run externally. Executes a program that might make heavy use of Result/Option types in one of two ways: classically, with exceptions, or using result types. The program checks several data stores (in memory to minimize interference from slow IO &c.) in order for a key. If it finds it, it gets the...
29.916667
77
0.543604
3,569
0.764731
0
0
0
0
0
0
1,096
0.23484
04e2062fcfd90b0198e33c8160f2903fd4069e92
583
py
Python
library/packages/admin.py
thermokarst-forks/library
2d13e85a5b2c2992e024769158bcd6885ffcce9e
[ "BSD-3-Clause" ]
1
2018-08-16T22:34:04.000Z
2018-08-16T22:34:04.000Z
library/packages/admin.py
thermokarst-forks/library
2d13e85a5b2c2992e024769158bcd6885ffcce9e
[ "BSD-3-Clause" ]
null
null
null
library/packages/admin.py
thermokarst-forks/library
2d13e85a5b2c2992e024769158bcd6885ffcce9e
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import Package, PackageBuild class PackageBuildInline(admin.TabularInline): model = PackageBuild readonly_fields = ('package', 'github_run_id', 'version') extra = 0 can_delete = False class PackageAdmin(admin.ModelAdmin): readonly_fields = ('name', ...
24.291667
61
0.747856
400
0.686106
0
0
0
0
0
0
91
0.156089
04e23249464eb1af09688cb5261f0910c0a92916
1,775
py
Python
schemato/validationresult.py
emmett9001/schema.to
cfb5eb128faee391e1ac5c69093776b2d2cfd6b6
[ "Apache-2.0" ]
38
2015-01-16T11:28:12.000Z
2017-10-26T07:24:32.000Z
schemato/validationresult.py
emmett9001/schema.to
cfb5eb128faee391e1ac5c69093776b2d2cfd6b6
[ "Apache-2.0" ]
11
2015-03-20T13:54:49.000Z
2016-10-05T18:38:38.000Z
schemato/validationresult.py
emmett9001/schema.to
cfb5eb128faee391e1ac5c69093776b2d2cfd6b6
[ "Apache-2.0" ]
5
2015-02-17T18:08:35.000Z
2021-12-02T12:33:07.000Z
import json class ValidationResult(object): ERROR = 1 WARNING = 2 def __init__(self, namespace, classname): super(ValidationResult, self).__init__() self.warnings = [] self.errors = [] self.namespace = namespace self.classname = classname def add_error(self, w...
28.629032
74
0.593239
1,757
0.989859
0
0
0
0
0
0
100
0.056338
04e2eacd84c84c864a83a13c251d959ab593d0a5
2,049
py
Python
robosuite/scripts/playback_demonstrations_from_hdf5.py
gsp-27/robosuite
642065ebba4ea0c2c1f3ae6e96a8f14262146019
[ "MIT" ]
1
2021-12-22T13:10:46.000Z
2021-12-22T13:10:46.000Z
robosuite/scripts/playback_demonstrations_from_hdf5.py
gsp-27/robosuite
642065ebba4ea0c2c1f3ae6e96a8f14262146019
[ "MIT" ]
null
null
null
robosuite/scripts/playback_demonstrations_from_hdf5.py
gsp-27/robosuite
642065ebba4ea0c2c1f3ae6e96a8f14262146019
[ "MIT" ]
1
2020-12-29T01:38:01.000Z
2020-12-29T01:38:01.000Z
""" A convenience script to playback random demonstrations from a set of demonstrations stored in a hdf5 file. Example: $ python playback_demonstrations_from_hdf5.py --folder ../models/assets/demonstrations/SawyerPickPlace/ """ import os import h5py import argparse import random import numpy as np import robosuit...
28.068493
107
0.644705
0
0
0
0
0
0
0
0
656
0.320156
04e54898e0b86a46980499b94c96db2931de15a5
113
py
Python
theseus/base/metrics/__init__.py
kaylode/Custom-Template
b2f11bfacf2b03b793476a19781f9046fab6fd82
[ "MIT" ]
2
2022-02-18T04:41:29.000Z
2022-03-12T09:04:14.000Z
theseus/base/metrics/__init__.py
kaylode/mediaeval21-vsa
8c5e7d612393d511331124931843c2ed07192c1b
[ "MIT" ]
8
2022-02-16T17:01:28.000Z
2022-03-28T02:53:45.000Z
theseus/base/metrics/__init__.py
lannguyen0910/theseus
5c08fb2f4a9c7ffa395788e6a0ade43780e8bd7d
[ "MIT" ]
3
2022-02-13T05:00:13.000Z
2022-03-02T00:11:27.000Z
from theseus.registry import Registry from .metric_template import Metric METRIC_REGISTRY = Registry('METRIC')
18.833333
37
0.823009
0
0
0
0
0
0
0
0
8
0.070796
04e56c9e1ac441e2b6c321a2b4209ef7f3040dfc
1,562
py
Python
merch_week.py
m-paulus/merch_calendar
1b5065828c91685b92135f892ef4054082013fb1
[ "MIT" ]
null
null
null
merch_week.py
m-paulus/merch_calendar
1b5065828c91685b92135f892ef4054082013fb1
[ "MIT" ]
null
null
null
merch_week.py
m-paulus/merch_calendar
1b5065828c91685b92135f892ef4054082013fb1
[ "MIT" ]
null
null
null
import merch_calendar from datetime import date, timedelta import calendar class MerchWeek: def __init__(self, year, month, week): try: self._date = merch_calendar.start_of_week(year, month, week) except: raise @classmethod def from_date(cls, date): year = ...
26.033333
92
0.65493
1,484
0.950064
0
0
1,127
0.721511
0
0
57
0.036492
04e5f68f42ca705a8b76e3ac11e3a69fe8883a0f
26,352
py
Python
test/test_md007.py
jackdewinter/pymarkdown
7ae408ba0b24506fa07552ffe520750bbff38c53
[ "MIT" ]
20
2021-01-14T17:39:09.000Z
2022-03-14T08:35:22.000Z
test/test_md007.py
jackdewinter/pymarkdown
7ae408ba0b24506fa07552ffe520750bbff38c53
[ "MIT" ]
304
2020-08-15T23:24:00.000Z
2022-03-31T23:34:03.000Z
test/test_md007.py
jackdewinter/pymarkdown
7ae408ba0b24506fa07552ffe520750bbff38c53
[ "MIT" ]
3
2021-08-11T10:26:26.000Z
2021-11-02T20:41:27.000Z
""" Module to provide tests related to the MD007 rule. """ from test.markdown_scanner import MarkdownScanner import pytest @pytest.mark.rules def test_md007_bad_configuration_indent(): """ Test to verify that a configuration error is thrown when supplying the indent value with a string that is not an int...
27.53605
109
0.68769
0
0
0
0
26,135
0.991765
0
0
11,670
0.442851
04e7154f348934cac78d204904e5d27232571945
18,168
py
Python
tests/ticketing/test_transactions.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
1
2021-03-14T11:56:47.000Z
2021-03-14T11:56:47.000Z
tests/ticketing/test_transactions.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
180
2019-09-15T19:52:46.000Z
2021-11-06T23:48:01.000Z
tests/ticketing/test_transactions.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
null
null
null
import copy from mock import patch, Mock import urllib from django.core.files import File from django.core.exceptions import PermissionDenied from django.shortcuts import get_object_or_404 from django.urls import reverse from ticketing.models import ( TicketingEvents, BrownPaperSettings, EventbriteSettings,...
44.638821
83
0.641292
16,943
0.932574
0
0
10,270
0.56528
0
0
1,960
0.107882
04e8053cd909a8f30dd024e9c4b9845248ff59fe
1,518
py
Python
awacs/xray.py
mprince/awacs
f6a16af326ac7fd11e2e2be3a48180475f150611
[ "BSD-2-Clause" ]
null
null
null
awacs/xray.py
mprince/awacs
f6a16af326ac7fd11e2e2be3a48180475f150611
[ "BSD-2-Clause" ]
null
null
null
awacs/xray.py
mprince/awacs
f6a16af326ac7fd11e2e2be3a48180475f150611
[ "BSD-2-Clause" ]
1
2020-04-03T06:37:42.000Z
2020-04-03T06:37:42.000Z
# Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from aws import Action as BaseAction from aws import BaseARN service_name = 'AWS XRay' prefix = 'xray' class Action(BaseAction): def __init__(self, action=None): sup = super(Action, self) ...
33
73
0.763505
352
0.231884
0
0
0
0
0
0
502
0.330698
04e9345c467b4cd556b5bf96877b1b7bbf75e2df
235
py
Python
setup.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
15
2020-10-14T14:15:54.000Z
2022-03-31T17:55:36.000Z
setup.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
145
2020-10-01T13:32:20.000Z
2022-03-31T08:31:47.000Z
setup.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
3
2021-03-03T10:57:05.000Z
2021-05-24T09:11:49.000Z
"""The setup script.""" from setuptools import setup, find_packages import versioneer setup( version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), packages=find_packages(), include_package_data=True )
19.583333
43
0.748936
0
0
0
0
0
0
0
0
23
0.097872
04e9b558edc86055533277471959d45abdfff936
74
py
Python
wsgi.py
rogerdahl/acme-notifications
fa877af7361847ca70acc00fc8cb9adc9ab3dc45
[ "MIT" ]
null
null
null
wsgi.py
rogerdahl/acme-notifications
fa877af7361847ca70acc00fc8cb9adc9ab3dc45
[ "MIT" ]
null
null
null
wsgi.py
rogerdahl/acme-notifications
fa877af7361847ca70acc00fc8cb9adc9ab3dc45
[ "MIT" ]
null
null
null
import acme_notifications.init application = acme_notifications.init.app
18.5
41
0.864865
0
0
0
0
0
0
0
0
0
0
04eacbed2960320b74f280d23dd6e09fb5dbbb17
6,839
py
Python
cmake/CMakeBuild/bin/pyhhi/cmbuild/bjambld.py
myfan/VTM-1.1_sKLT
adf549a14e630167fe22f9b8c73a307174160d7c
[ "BSD-3-Clause" ]
null
null
null
cmake/CMakeBuild/bin/pyhhi/cmbuild/bjambld.py
myfan/VTM-1.1_sKLT
adf549a14e630167fe22f9b8c73a307174160d7c
[ "BSD-3-Clause" ]
null
null
null
cmake/CMakeBuild/bin/pyhhi/cmbuild/bjambld.py
myfan/VTM-1.1_sKLT
adf549a14e630167fe22f9b8c73a307174160d7c
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import os import shutil import subprocess import logging import pyhhi.build.common.ver as ver import pyhhi.build.common.bldtools as bldtools from pyhhi.build.common.system import SystemInfo class BjamBuilder(object): """The BjamBuilder class supports building a new bjam exe...
39.531792
146
0.607106
6,603
0.965492
0
0
0
0
0
0
1,611
0.235561
04ebbba0f5550d29b2188709fea832733cf15cb6
2,773
py
Python
Exercise 2-3.py
Falli0o/linear_regression
b21a682bae9e4a3d5aa8aa6223233aa6dea8749c
[ "Apache-2.0" ]
null
null
null
Exercise 2-3.py
Falli0o/linear_regression
b21a682bae9e4a3d5aa8aa6223233aa6dea8749c
[ "Apache-2.0" ]
null
null
null
Exercise 2-3.py
Falli0o/linear_regression
b21a682bae9e4a3d5aa8aa6223233aa6dea8749c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # In[ ]: from __future__ import division get_ipython().magic(u'matplotlib inline') import numpy as np import matplotlib.pyplot as plt import math import multivarlinreg import rmse # In[ ]: #Linear regression red_train = np.loadtxt('redwine_training.txt') red_test = np.loadtxt('redwine_testing.tx...
25.440367
106
0.728814
0
0
0
0
0
0
0
0
1,637
0.590335
04ed3a31ba03c3f597496c93d4309dbd599f0a3e
1,915
py
Python
untitled/precaritorazor/models.py
NDI-ICE-2019/NDI-main-subject-backend
5628e36b414599e75eace6acea6536131c4126fa
[ "MIT" ]
null
null
null
untitled/precaritorazor/models.py
NDI-ICE-2019/NDI-main-subject-backend
5628e36b414599e75eace6acea6536131c4126fa
[ "MIT" ]
null
null
null
untitled/precaritorazor/models.py
NDI-ICE-2019/NDI-main-subject-backend
5628e36b414599e75eace6acea6536131c4126fa
[ "MIT" ]
null
null
null
from django.db import models class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): question = models.ForeignKey(Question, on_delete=models.CASCADE) choice_text = models.CharField(max_length=200) ...
27.357143
76
0.721671
1,862
0.972324
0
0
0
0
0
0
167
0.087206
04ed512b72b29125fda2c468f7c24dac5e1e16b7
1,027
py
Python
centernet_lightning/datasets/__init__.py
gau-nernst/CenterNet
bd6a21813a63310e3b1c77cefe24077b72d1092a
[ "MIT" ]
47
2021-08-10T09:30:53.000Z
2022-03-29T07:53:43.000Z
centernet_lightning/datasets/__init__.py
gau-nernst/CenterNet
bd6a21813a63310e3b1c77cefe24077b72d1092a
[ "MIT" ]
1
2021-08-07T13:46:49.000Z
2021-08-07T13:46:49.000Z
centernet_lightning/datasets/__init__.py
gau-nernst/CenterNet
bd6a21813a63310e3b1c77cefe24077b72d1092a
[ "MIT" ]
6
2021-08-12T02:40:43.000Z
2022-01-31T16:12:40.000Z
# from .utils import ( # IMAGENET_MEAN, IMAGENET_STD, CollateDetection, CollateTracking, # get_default_transforms, get_default_detection_transforms, get_default_tracking_transforms # ) # from .coco import COCODataset # from .voc import VOCDataset # from .crowdhuman import CrowdHumanDataset # from .mot import MO...
46.681818
102
0.787731
0
0
0
0
0
0
0
0
1,006
0.979552
04ee4a305162e4e3bdcb164213ede6ebc3c2c03c
3,260
py
Python
Sketches/JL/IRC/Translator.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/JL/IRC/Translator.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/JL/IRC/Translator.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
# -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Version 2.0 (the "Lice...
34.315789
112
0.607975
1,831
0.561656
1,010
0.309816
0
0
0
0
1,089
0.334049
04ef6f0e489ba56bb79c74e9f8745f375bebe0bc
3,840
py
Python
hybmc/models/DeterministicModel.py
sschlenkrich/HybridMonteCarlo
72f54aa4bcd742430462b27b72d70369c01f9ac4
[ "MIT" ]
3
2021-08-18T18:34:41.000Z
2021-12-24T07:05:19.000Z
hybmc/models/DeterministicModel.py
sschlenkrich/HybridMonteCarlo
72f54aa4bcd742430462b27b72d70369c01f9ac4
[ "MIT" ]
null
null
null
hybmc/models/DeterministicModel.py
sschlenkrich/HybridMonteCarlo
72f54aa4bcd742430462b27b72d70369c01f9ac4
[ "MIT" ]
3
2021-01-31T11:41:19.000Z
2022-03-25T19:51:20.000Z
#!/usr/bin/python import numpy as np from hybmc.models.StochasticProcess import StochasticProcess class DeterministicModel(StochasticProcess): # Python constructor def __init__(self, domAlias, # name of our domestic (numeraire) currency domCurve, ...
35.88785
110
0.610938
3,630
0.945313
0
0
0
0
0
0
1,279
0.333073
04efafcb6db1afd7a3030ec016d52f31b51e110e
11,926
py
Python
ClientSide2.py
MatthewGong/DiffractionClassification
68be6cf3960f09388253c79bab13cbd9dc07edbb
[ "MIT" ]
7
2019-08-14T18:14:06.000Z
2021-01-14T01:43:50.000Z
ClientSide2.py
MatthewGong/DiffractionClassification
68be6cf3960f09388253c79bab13cbd9dc07edbb
[ "MIT" ]
null
null
null
ClientSide2.py
MatthewGong/DiffractionClassification
68be6cf3960f09388253c79bab13cbd9dc07edbb
[ "MIT" ]
2
2019-11-06T20:19:23.000Z
2020-08-04T21:06:36.000Z
from __future__ import print_function from __future__ import division from Notation import SpaceGroupsDict as spgs SpGr = spgs.spacegroups() notation_dictionary = spgs.spacegroups() import PeakFinding2 as pfnd #custom library to handle the functions behind Find_Peaks import UniversalLoader2 as uvll #custom library ...
32.673973
124
0.606322
0
0
0
0
0
0
0
0
5,144
0.431327
04efee032a0d44425bb27f5c80f9f0aee01d3ab5
465
py
Python
tests/utils.py
kurtbrose/ufork
4674abc5a27a2e3076e28756685512359e8e809f
[ "BSD-3-Clause" ]
5
2016-09-13T05:12:42.000Z
2021-08-31T11:15:59.000Z
tests/utils.py
skhortiuk/ufork
aa96ae8e903c0e95b0b307e8c738e8455ab477f4
[ "MIT" ]
7
2016-10-13T01:08:01.000Z
2021-06-24T19:09:29.000Z
tests/utils.py
skhortiuk/ufork
aa96ae8e903c0e95b0b307e8c738e8455ab477f4
[ "MIT" ]
4
2017-04-11T20:29:41.000Z
2020-10-12T15:22:33.000Z
from __future__ import absolute_import import os import signal def check_leaked_workers(arbiter): leaked_workers = [] for worker in arbiter.workers.values(): try: # check if process still exists os.kill(worker.pid, signal.SIGKILL) leaked_workers.append(worker.pid) exce...
29.0625
71
0.670968
0
0
0
0
0
0
0
0
68
0.146237
04f023bee1d7ff03aceebf8ab92a9d06c9bdc3a1
802
py
Python
examples/application_commands/choices.py
freepizzas-dev/nextcord
58dd18d4d60d50a0462e87b2400db980e73da72c
[ "MIT" ]
null
null
null
examples/application_commands/choices.py
freepizzas-dev/nextcord
58dd18d4d60d50a0462e87b2400db980e73da72c
[ "MIT" ]
null
null
null
examples/application_commands/choices.py
freepizzas-dev/nextcord
58dd18d4d60d50a0462e87b2400db980e73da72c
[ "MIT" ]
null
null
null
import nextcord from nextcord import SlashOption from nextcord.interactions import Interaction client = nextcord.Client() @client.slash_command(guild_ids=[...]) # Limits the guildes async def choose_a_number( interaction: Interaction, number: str = SlashOption( name="picker", description="Th...
27.655172
99
0.699501
0
0
0
0
651
0.811721
512
0.638404
207
0.258105
04f0e3299aae2df07132187459eead6effe98308
16
py
Python
pyvcdr/__init__.py
EtlamGit/pyvcdr
abb475d1389b069e6b8ae53d50329e64c3f0e261
[ "MIT" ]
null
null
null
pyvcdr/__init__.py
EtlamGit/pyvcdr
abb475d1389b069e6b8ae53d50329e64c3f0e261
[ "MIT" ]
null
null
null
pyvcdr/__init__.py
EtlamGit/pyvcdr
abb475d1389b069e6b8ae53d50329e64c3f0e261
[ "MIT" ]
null
null
null
name = "pyvcdr"
8
15
0.625
0
0
0
0
0
0
0
0
8
0.5
04f24dbabf997234bb3f9394b5d4778cde915e92
729
py
Python
debug/testUSB.py
sgoadhouse/dcps-visa
3021168bb15bb66fdd74d2a235d4dc3e0e3a4733
[ "MIT" ]
2
2019-10-30T08:23:14.000Z
2021-09-15T14:20:53.000Z
debug/testUSB.py
sgoadhouse/dcps-visa
3021168bb15bb66fdd74d2a235d4dc3e0e3a4733
[ "MIT" ]
null
null
null
debug/testUSB.py
sgoadhouse/dcps-visa
3021168bb15bb66fdd74d2a235d4dc3e0e3a4733
[ "MIT" ]
6
2019-10-11T18:52:40.000Z
2022-03-28T10:14:38.000Z
import usb.core import usb.util import sys # got these using the command lsusb -vv VENDOR_ID = 0x1AB1 PRODUCT_ID = 0x0E11 DATA_SIZE = 1 device = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID) #@@@#print(device.is_kernel_driver_active(0)) # was it found? if device is None: raise ValueError('USB Device ...
22.78125
64
0.728395
0
0
0
0
0
0
0
0
293
0.40192
04f30aaa86b0d421b2d40dfdaa3750bdc67bcc4e
809
py
Python
test_ruge_stuben_solver.py
CoderMoray/AMG-for-finity-element
1f4194eb3d1b8b6007733cb1122bdab7d67424bc
[ "MIT" ]
null
null
null
test_ruge_stuben_solver.py
CoderMoray/AMG-for-finity-element
1f4194eb3d1b8b6007733cb1122bdab7d67424bc
[ "MIT" ]
null
null
null
test_ruge_stuben_solver.py
CoderMoray/AMG-for-finity-element
1f4194eb3d1b8b6007733cb1122bdab7d67424bc
[ "MIT" ]
null
null
null
import pyamg import numpy as np import time from prettytable import PrettyTable A = pyamg.gallery.poisson((500,500), format='csr') # 2D Poisson problem on 500x500 grid # print('A : ', A ) ml = pyamg.ruge_stuben_solver(A) b = np.random.rand(A.shape[0]) # pick a random right hand side # t0= ...
28.892857
88
0.608158
0
0
0
0
0
0
0
0
215
0.26576
04f33c7544bbc8ed87639ae554a4185b880e29cc
7,467
py
Python
app/telegram_handler.py
badgateway666/Telegram2MQTT
387709bae98e99f1c5a83a27981ebd2172ad356b
[ "MIT" ]
1
2020-05-22T17:00:27.000Z
2020-05-22T17:00:27.000Z
app/telegram_handler.py
badgateway666/Telegram2MQTT
387709bae98e99f1c5a83a27981ebd2172ad356b
[ "MIT" ]
null
null
null
app/telegram_handler.py
badgateway666/Telegram2MQTT
387709bae98e99f1c5a83a27981ebd2172ad356b
[ "MIT" ]
null
null
null
import logging import re from queue import SimpleQueue from telegram.bot import Bot as Telegram_Bot from telegram.ext import Updater, CommandHandler, Filters class TelegramHandler(object): def __init__(self, bot_token, allowed_telegram_user_ids): self.logger = logging.getLogger("telegram2mqtt.bot") ...
38.096939
109
0.583367
7,305
0.978305
0
0
0
0
0
0
2,434
0.325968
04f340fbe83331013ceb88840a2f5fe6d9acebc2
1,273
py
Python
tests/python/pycasbin_test_suite.py
lezli01/casbin-cpp
24d43cee747a514a63bcad1aae4953e981e484c3
[ "Apache-2.0" ]
null
null
null
tests/python/pycasbin_test_suite.py
lezli01/casbin-cpp
24d43cee747a514a63bcad1aae4953e981e484c3
[ "Apache-2.0" ]
null
null
null
tests/python/pycasbin_test_suite.py
lezli01/casbin-cpp
24d43cee747a514a63bcad1aae4953e981e484c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The casbin 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 applic...
29.604651
75
0.743126
0
0
0
0
0
0
0
0
657
0.516104
04f40581777dd72ef62292b53638cb5d976a365c
1,574
py
Python
forcefield_utilities/utils.py
mosdef-hub/forcefield-utilities
6424f9c8c2935399171ee7056a0d6b408cabda81
[ "MIT" ]
1
2022-03-15T15:14:02.000Z
2022-03-15T15:14:02.000Z
forcefield_utilities/utils.py
mosdef-hub/forcefield-utilities
6424f9c8c2935399171ee7056a0d6b408cabda81
[ "MIT" ]
5
2021-11-12T01:35:55.000Z
2022-03-23T15:45:29.000Z
forcefield_utilities/utils.py
mosdef-hub/forcefield-utilities
6424f9c8c2935399171ee7056a0d6b408cabda81
[ "MIT" ]
2
2022-03-15T15:14:06.000Z
2022-03-23T00:11:24.000Z
import functools import warnings def call_on_import(func): """Declare a decorator that will run `func` when imported.""" func() def get_package_file_path(from_package, relative_path): """Use source of a python package to locate and cache the address of a file.""" from pkg_resources import resource_f...
29.698113
87
0.656925
0
0
0
0
184
0.1169
0
0
436
0.277001
04f45b90500ae631520f30af9f99758d2ff28520
889
py
Python
decbin.py
faisalkhan91/Dec2Bin
623f1640aa6a4b619d95fad9df869c4901cd4c96
[ "MIT" ]
null
null
null
decbin.py
faisalkhan91/Dec2Bin
623f1640aa6a4b619d95fad9df869c4901cd4c96
[ "MIT" ]
null
null
null
decbin.py
faisalkhan91/Dec2Bin
623f1640aa6a4b619d95fad9df869c4901cd4c96
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 decimal = input("Please enter a real number: ") index = 0 while index < len(decimal) and decimal[index] != ".": index += 1 if index == 10: intpart = decimal[:] fracpart = "" else : intpart = decimal[:index] fracpart = decimal[index+1:] # print("int len = ", len(intpart), "int part = "...
18.914894
115
0.590551
0
0
0
0
0
0
0
0
221
0.248594
04f50ce80dd5255194e1fa6d4b1af8eddf9cb9d6
4,003
py
Python
tests/operators/vector/test_cos_001.py
laekov/akg
5316b8cb2340bbf71bdc724dc9d81513a67b3104
[ "Apache-2.0" ]
1
2020-08-31T02:43:43.000Z
2020-08-31T02:43:43.000Z
tests/operators/vector/test_cos_001.py
laekov/akg
5316b8cb2340bbf71bdc724dc9d81513a67b3104
[ "Apache-2.0" ]
null
null
null
tests/operators/vector/test_cos_001.py
laekov/akg
5316b8cb2340bbf71bdc724dc9d81513a67b3104
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # 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.51087
104
0.572071
3,264
0.815388
0
0
242
0.060455
0
0
2,787
0.696228
04f5f1b977e5486329255efbf34e12d42bdcf0a3
2,716
py
Python
src/installer/src/tortuga/db/nicsDbHandler.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/installer/src/tortuga/db/nicsDbHandler.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/installer/src/tortuga/db/nicsDbHandler.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
28.893617
74
0.626657
1,719
0.632916
0
0
0
0
0
0
1,034
0.380707
04f9c470ab4651b45902a20abeeb4edab7d93d0c
1,068
py
Python
test/utils/devices/ph_probe_mock_test.py
kieransukachevin/AlkalinityTitrator
09b642ee1368278b7b4fc180bed50ff538a0938a
[ "MIT" ]
null
null
null
test/utils/devices/ph_probe_mock_test.py
kieransukachevin/AlkalinityTitrator
09b642ee1368278b7b4fc180bed50ff538a0938a
[ "MIT" ]
31
2021-06-29T17:53:56.000Z
2021-08-19T21:59:03.000Z
test/utils/devices/ph_probe_mock_test.py
kieransukachevin/AlkalinityTitrator
09b642ee1368278b7b4fc180bed50ff538a0938a
[ "MIT" ]
4
2021-02-12T23:21:17.000Z
2021-11-15T16:55:38.000Z
import pytest import titration.utils.devices.board_mock as board_mock import titration.utils.devices.ph_probe_mock as ph_probe_mock def test_ph_create(): ph = ph_probe_mock.pH_Probe(board_mock.SCL, board_mock.SDA) assert ph is not None def test_ph_create_null(): ph = ph_probe_mock.pH_Probe(None, None) ...
23.217391
63
0.700375
0
0
0
0
0
0
0
0
0
0
04fa50f216dce4da7cb555026a335c1664fdf05b
516
py
Python
topCoder/srms/300s/srm378/div2/two_rotation_cypher.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-09-30T19:53:08.000Z
2020-09-30T19:53:08.000Z
topCoder/srms/300s/srm378/div2/two_rotation_cypher.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
null
null
null
topCoder/srms/300s/srm378/div2/two_rotation_cypher.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-10-15T09:10:57.000Z
2020-10-15T09:10:57.000Z
from string import ascii_lowercase class TwoRotationCypher: def encrypt(self, firstSize, firstRotate, secondRotate, message): f, s, r = ascii_lowercase[:firstSize], ascii_lowercase[firstSize:], '' for e in message: if e == ' ': r += e elif e in f: ...
36.857143
88
0.52907
479
0.928295
0
0
0
0
0
0
5
0.00969
04faa5333b2d83edb78730a93736b95eddd63ea2
5,675
py
Python
src/CoRe.py
SkBlaz/core
2833191021ddf7113d375daeb9e9740faa068957
[ "BSD-3-Clause" ]
null
null
null
src/CoRe.py
SkBlaz/core
2833191021ddf7113d375daeb9e9740faa068957
[ "BSD-3-Clause" ]
null
null
null
src/CoRe.py
SkBlaz/core
2833191021ddf7113d375daeb9e9740faa068957
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from class_neural import GenericAutoencoder from class_clustering_reduction import ReductionCluster from class_subspace_reduction import ReductionSubspace try: import umap except Exception as es: print(f"UMAP unavailable. {es}") from sklearn.decomposition import TruncatedSVD from sklearn.man...
32.994186
84
0.622379
4,835
0.851982
0
0
0
0
0
0
488
0.085991
04fb5d0dbcd3e4b473928d99c92155cb381bc3e9
5,632
py
Python
autograd/container_types.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
autograd/container_types.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
autograd/container_types.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from autograd.core import (primitive, Node, VSpace, register_node, vspace, register_vspace, SparseObject) from builtins import zip from future.utils import iteritems from functools import partial import autograd.numpy as np class SequenceNode(Node): ...
34.552147
91
0.649148
2,753
0.488814
0
0
1,032
0.183239
0
0
0
0
04fccb1478ce692e14caa6ca3962aae84ed836d8
1,771
py
Python
p314_Binary_Tree_Vertical_Order_Traversal.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p314_Binary_Tree_Vertical_Order_Traversal.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p314_Binary_Tree_Vertical_Order_Traversal.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
''' - Leetcode problem: 314 - Difficulty: Medium - Brief problem description: Given a binary tree, return the vertical order traversal of its nodes' values. (ie, from top to bottom, column by column). If two nodes are in the same row and column, the order should be from left to right. Examples 1: Input: [3,9,20,n...
15.8125
122
0.512705
679
0.383399
0
0
0
0
0
0
1,064
0.600791
04feec89ef011be3222eac2c8a548d3c3d472132
2,548
py
Python
tests/pterradactyl/commands/test_lookup.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
2
2022-03-31T09:02:49.000Z
2022-03-31T18:56:52.000Z
tests/pterradactyl/commands/test_lookup.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
4
2021-12-20T18:31:47.000Z
2022-03-14T16:31:49.000Z
tests/pterradactyl/commands/test_lookup.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
null
null
null
import unittest from pterradactyl.commands.lookup import LookupCommand from mock import patch import os import argparse import pytest class TestLookupCommands(unittest.TestCase): def setUp(self) -> None: self.base_path = os.path.dirname(os.path.abspath(__file__)) self.config = os.path.join(os.get...
49
145
0.637363
2,411
0.946232
0
0
0
0
0
0
396
0.155416
ca0012763ebde5a8a825cd260de95730a4c414f2
926
py
Python
Stack/stackusinglinkedlist.py
shaurtoonetwork/Data-Structures-Implemented-In-Python
31f770165d535547e6ab3973ca92944cd4d93e11
[ "Unlicense" ]
null
null
null
Stack/stackusinglinkedlist.py
shaurtoonetwork/Data-Structures-Implemented-In-Python
31f770165d535547e6ab3973ca92944cd4d93e11
[ "Unlicense" ]
null
null
null
Stack/stackusinglinkedlist.py
shaurtoonetwork/Data-Structures-Implemented-In-Python
31f770165d535547e6ab3973ca92944cd4d93e11
[ "Unlicense" ]
null
null
null
class Node: def __init__(self,data): self.data=data self.next=None class Stack(): def __init__(self): self.head=None def push(self,data): new_node=Node(data) new_node.next=self.head self.head=new_node def pop(self): cur_node=self.head se...
15.694915
37
0.541037
814
0.87905
0
0
0
0
0
0
24
0.025918
b6b8dd05f5f7cbaff9802e64ef9b63bb934698fe
10,059
py
Python
emailhandler.py
wcascades/Simple_Slack_Bot
b674909d5e02d8f15918fb4dee9f2cb1bcf1079a
[ "MIT" ]
null
null
null
emailhandler.py
wcascades/Simple_Slack_Bot
b674909d5e02d8f15918fb4dee9f2cb1bcf1079a
[ "MIT" ]
3
2021-08-05T14:56:04.000Z
2022-03-06T18:43:58.000Z
emailhandler.py
wcascades/Simple_Slack_Bot
b674909d5e02d8f15918fb4dee9f2cb1bcf1079a
[ "MIT" ]
null
null
null
# don't use 3.9, currently using 3.7 import mysecrets import re import email import logging import slackhandler import my_parser from exchangelib import Credentials, Account, DELEGATE, Configuration, FaultTolerance, Message from imapclient import IMAPClient from collections import deque class emailhandler: def _...
42.987179
117
0.571429
7,489
0.744507
0
0
0
0
0
0
2,685
0.266925
b6b8e6b112b5f5a0738910a049da1d3ae0235a6c
1,698
py
Python
notebooks/jetlatcalcs.py
afahadabdullah/cmip6hack-emergentconstraints
287044e7bfb76bc318856d9b25b9e5e2b52ed477
[ "MIT" ]
1
2019-11-21T02:36:59.000Z
2019-11-21T02:36:59.000Z
notebooks/jetlatcalcs.py
afahadabdullah/cmip6hack-emergentconstraints
287044e7bfb76bc318856d9b25b9e5e2b52ed477
[ "MIT" ]
null
null
null
notebooks/jetlatcalcs.py
afahadabdullah/cmip6hack-emergentconstraints
287044e7bfb76bc318856d9b25b9e5e2b52ed477
[ "MIT" ]
6
2019-10-15T20:17:21.000Z
2019-10-18T22:20:12.000Z
print( "you have successfully imported the jet latitude calculation subroutines" ) import numpy as np def getzonalmeanonplev( xdatin, plev ): # -----calculates zonal mean and picks out a pressure level----- # input: xdatin = xarray data array (plev,nlat,nlon) # : plev = desired pressure level (hPa) # oudput: xda...
38.590909
92
0.65371
0
0
0
0
0
0
0
0
887
0.522379
b6b9caeebc32813369795932495c71aeac2c4847
244
py
Python
statuscheck/services/sentry.py
amureki/statuscheck
caff92ef211f1fd2bf6c8a18ba8243eb434bc0df
[ "Apache-2.0" ]
35
2018-10-22T06:04:55.000Z
2022-02-01T10:20:00.000Z
statuscheck/services/sentry.py
amureki/statuscheck
caff92ef211f1fd2bf6c8a18ba8243eb434bc0df
[ "Apache-2.0" ]
209
2018-10-22T11:44:57.000Z
2022-03-31T04:02:37.000Z
statuscheck/services/sentry.py
amureki/statuscheck
caff92ef211f1fd2bf6c8a18ba8243eb434bc0df
[ "Apache-2.0" ]
2
2020-06-05T02:41:19.000Z
2020-09-03T07:03:46.000Z
from statuscheck.services.bases._statuspageio import BaseStatusPageAPI class ServiceAPI(BaseStatusPageAPI): name = "Sentry" domain_id = "t687h3m0nh65" status_url = "https://status.sentry.io" service_url = "https://sentry.io/"
27.111111
70
0.737705
170
0.696721
0
0
0
0
0
0
68
0.278689
b6ba87cd65c4a5ebab94e9028834ee5c431dddfa
4,145
py
Python
DQM/HLTEvF/test/hlt_jetmet_test_dqm_fromfile_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/HLTEvF/test/hlt_jetmet_test_dqm_fromfile_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/HLTEvF/test/hlt_jetmet_test_dqm_fromfile_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("DQM") process.load("DQM.HLTEvF.HLTMonitor_cff") process.load("DQMServices.Core.DQM_cfg") process.load("DQMServices.Components.DQMEnvironment_cfi") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) ) process.source = cms.Sourc...
62.80303
145
0.785766
0
0
0
0
0
0
0
0
3,004
0.724729
b6ba96554a84cae2263637750307f51ca135bde3
1,488
py
Python
TournamentReminder.py
0ffkilter/StunfiskBot
5ec1fd27b875ede1845747f22bf5b1fafe81caff
[ "MIT" ]
1
2019-05-10T00:29:15.000Z
2019-05-10T00:29:15.000Z
TournamentReminder.py
0ffkilter/StunfiskBot
5ec1fd27b875ede1845747f22bf5b1fafe81caff
[ "MIT" ]
null
null
null
TournamentReminder.py
0ffkilter/StunfiskBot
5ec1fd27b875ede1845747f22bf5b1fafe81caff
[ "MIT" ]
null
null
null
import praw, sys, os user_agent = "Tournament Reminder by /u/0ffkilter" config_file = open('%s%s' %(os.getcwd(), '/Config.txt'), 'r') config = config_file.read().split('\n') config_file.close() reddit = praw.Reddit(user_agent = user_agent) reddit.login('stunfiskhelperbot', config[1]) part_file = open('%s%s' %(os.g...
33.818182
118
0.670699
0
0
0
0
0
0
0
0
900
0.604839
b6baabf4be70eeed58c26930ea96749e16e4205c
1,699
py
Python
NGG_NEW.py
Antrix9/NUMBER_GUESSING_GAME
b5fcd5aca17b52dcec1bdbb5f661e20b82cc768b
[ "MIT" ]
null
null
null
NGG_NEW.py
Antrix9/NUMBER_GUESSING_GAME
b5fcd5aca17b52dcec1bdbb5f661e20b82cc768b
[ "MIT" ]
null
null
null
NGG_NEW.py
Antrix9/NUMBER_GUESSING_GAME
b5fcd5aca17b52dcec1bdbb5f661e20b82cc768b
[ "MIT" ]
1
2021-03-27T16:28:33.000Z
2021-03-27T16:28:33.000Z
import random while True: random_list = random.sample((3, 4, 5), 2) #print(random_list) random_number = random.randint(1, 1000) #print(random_number) start_range = random_number - random_list[0] end_range = random_number + random_list[1] print(f'Range Hint: The Number...
26.138462
76
0.540906
0
0
0
0
0
0
0
0
576
0.339023
b6bc65524aa9146a7d999087ba23c1ddab175047
284
py
Python
2048test.py
zhangzhibo123/2048game
2bd573fdcff61b47bcdafc6aa498c6cd9e5b55a7
[ "Apache-2.0" ]
null
null
null
2048test.py
zhangzhibo123/2048game
2bd573fdcff61b47bcdafc6aa498c6cd9e5b55a7
[ "Apache-2.0" ]
null
null
null
2048test.py
zhangzhibo123/2048game
2bd573fdcff61b47bcdafc6aa498c6cd9e5b55a7
[ "Apache-2.0" ]
null
null
null
# map = [[0 for i in range(4)] for j in range(4)] # print(map) map = [[2, 0, 0, 0], [0, 0, 0, 4], [8, 0, 0, 0], [4, 0, 0, 2]] # ma = [[map[c][r] for c in range(4)] for r in reversed(range(4))] # print(ma) ma = [[map[c][r] for r in reversed(range(4))] for c in range(4)] print(ma)
23.666667
66
0.517606
0
0
0
0
0
0
0
0
138
0.485915
b6bf51d40278ce4e1770aa55c0402ddffbaac7d1
4,876
py
Python
module/platform_node.py
doudoudzj/python-learn
ccb2210e986288f7b0e34c16f55e5a2851e80cf7
[ "BSD-3-Clause" ]
null
null
null
module/platform_node.py
doudoudzj/python-learn
ccb2210e986288f7b0e34c16f55e5a2851e80cf7
[ "BSD-3-Clause" ]
null
null
null
module/platform_node.py
doudoudzj/python-learn
ccb2210e986288f7b0e34c16f55e5a2851e80cf7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # platform_node.py # https://www.cnblogs.com/hongten/p/hongten_python_platform.html import platform ''' python中,platform模块给我们提供了很多方法去获取操作系统的信息 如: import platform platform.platform() #获取操作系统名称及版本号,'Linux-3.13.0-46-generic-i686-with-Deepin-2014.2-trus...
25.798942
150
0.65566
0
0
0
0
0
0
0
0
2,964
0.539891
b6c2400ffbeca603e01ee66e01e65345a49b8317
3,110
py
Python
scripts/generate_result.py
XinYao1994/HOPE
99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68
[ "Apache-2.0" ]
108
2020-04-23T19:06:51.000Z
2022-02-23T20:05:09.000Z
scripts/generate_result.py
XinYao1994/HOPE
99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68
[ "Apache-2.0" ]
1
2021-07-07T05:58:57.000Z
2021-07-07T05:58:57.000Z
scripts/generate_result.py
XinYao1994/HOPE
99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68
[ "Apache-2.0" ]
11
2020-04-24T01:53:50.000Z
2022-01-21T07:36:14.000Z
import sys import os import numpy as np RESULT_DIR = 'results/' PREFIX = ['ART', 'btree', 'prefixbtree', 'hot', 'microbench/cpr_latency', 'SuRF'] TYPE = ['point', 'range'] DATASETS = ['email', 'url', 'wiki'] VAR = ['cpr','x','height', 'fpr', 'lat', 'insertlat', 'lookuplat', 'mem', 'stats'] BT_OUTFILE = "../results/micr...
30.194175
86
0.50418
0
0
0
0
0
0
0
0
533
0.171383
b6c2d0dc24c606298c21d99b5fb317a520be4673
2,139
py
Python
configuracion/migrations/0001_initial.py
ErickMurillo/aprocacaho
eecd216103e6b06e3ece174c89d911f27b50585a
[ "MIT" ]
null
null
null
configuracion/migrations/0001_initial.py
ErickMurillo/aprocacaho
eecd216103e6b06e3ece174c89d911f27b50585a
[ "MIT" ]
7
2020-06-05T17:11:32.000Z
2022-03-11T23:14:00.000Z
configuracion/migrations/0001_initial.py
ErickMurillo/aprocacaho
eecd216103e6b06e3ece174c89d911f27b50585a
[ "MIT" ]
1
2016-07-04T18:38:14.000Z
2016-07-04T18:38:14.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-09 22:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Actuali...
31.925373
114
0.510986
1,982
0.926601
0
0
0
0
0
0
430
0.201029
b6c2e06c318572e03e24661769d9fadacecffe3d
1,647
py
Python
raspberryPi/control.py
djvolz/CarlLights
7e0f9d16f2a93c9fcdbd7c4caa3438d39685c498
[ "Beerware" ]
null
null
null
raspberryPi/control.py
djvolz/CarlLights
7e0f9d16f2a93c9fcdbd7c4caa3438d39685c498
[ "Beerware" ]
null
null
null
raspberryPi/control.py
djvolz/CarlLights
7e0f9d16f2a93c9fcdbd7c4caa3438d39685c498
[ "Beerware" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: djvolz # @Date: 2016-11-14 17:03:11 # @Last Modified by: djvolz # @Last Modified time: 2016-11-15 01:13:28 import time import json # import json library to parse messages import boto3 # import boto library that handles queuing functions import lightSequence as ls class Contro...
28.894737
75
0.604129
1,338
0.812386
0
0
0
0
0
0
685
0.415908
b6c56b5f68188582cabf5cbccf6cc782f9460133
22,361
py
Python
textboard/board.py
iMalinois/TextBoard
ca8c61ae1969c0a0c0863226771cd06cc13fcb43
[ "MIT" ]
3
2019-05-21T22:56:58.000Z
2020-07-29T12:01:48.000Z
textboard/board.py
iMalinois/TextBoard
ca8c61ae1969c0a0c0863226771cd06cc13fcb43
[ "MIT" ]
6
2019-05-21T07:26:04.000Z
2019-05-24T13:10:05.000Z
textboard/board.py
iMalinois/TextBoard
ca8c61ae1969c0a0c0863226771cd06cc13fcb43
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function from copy import copy from collections import OrderedDict from abc import ABCMeta, abstractmethod, abstractproperty from textboard.ansi import ANSI LOG_BOARD_DEFAULT_LINES_COUNT = 20 LOG_BOARD_SECTOR_DEFAULT_LINES_COUNT = 4 def _validate_id_property(cls...
35.663477
162
0.618398
21,110
0.944054
0
0
5,185
0.231877
0
0
10,069
0.450293
b6c60ff992939fb96343007441d2c3b3c58baf13
41
py
Python
adobe_sign_api/__init__.py
lingthio/adobe_sign_api
a82cb13587fa8414f67263d5354c7413edfc44ac
[ "MIT" ]
6
2019-09-10T03:34:20.000Z
2021-08-08T14:42:00.000Z
adobe_sign_api/__init__.py
lingthio/adobe_sign_api
a82cb13587fa8414f67263d5354c7413edfc44ac
[ "MIT" ]
null
null
null
adobe_sign_api/__init__.py
lingthio/adobe_sign_api
a82cb13587fa8414f67263d5354c7413edfc44ac
[ "MIT" ]
1
2019-09-06T23:05:27.000Z
2019-09-06T23:05:27.000Z
from .adobe_sign_api import AdobeSignAPI
20.5
40
0.878049
0
0
0
0
0
0
0
0
0
0
b6c7c7680b4ba76a99f84c48fad447e0e2a46a23
2,350
py
Python
measurements/tasks/cleanup.py
nat64check/zaphod_backend
b92191950825e1a4fd8c34207c8491d587cfb61f
[ "BSD-3-Clause" ]
1
2017-11-14T16:22:38.000Z
2017-11-14T16:22:38.000Z
measurements/tasks/cleanup.py
sjm-steffann/nat64check_zaphod_backend
b92191950825e1a4fd8c34207c8491d587cfb61f
[ "BSD-3-Clause" ]
5
2019-12-03T05:36:07.000Z
2021-06-25T15:20:04.000Z
measurements/tasks/cleanup.py
sjm-steffann/nat64check_zaphod_backend
b92191950825e1a4fd8c34207c8491d587cfb61f
[ "BSD-3-Clause" ]
null
null
null
# •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• # Copyright (c) 2018, S.J.M. Steffann. This software is licensed under the BSD # 3-Clause License. Please see the LICENSE file in the project root directory. # •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••...
32.638889
115
0.580426
0
0
0
0
1,801
0.676559
0
0
1,117
0.419609
b6c82c22096c001538617e60b4c65e0821866b31
6,593
py
Python
script/prepare_active_learning.py
oliverwatts/snickery
6d7e0b48cbb21760089bbbe85f6d7bd206f89821
[ "Apache-2.0" ]
28
2018-06-26T02:57:45.000Z
2021-12-01T01:07:23.000Z
script/prepare_active_learning.py
oliverwatts/snickery
6d7e0b48cbb21760089bbbe85f6d7bd206f89821
[ "Apache-2.0" ]
1
2018-11-02T09:29:29.000Z
2018-11-02T10:20:28.000Z
script/prepare_active_learning.py
oliverwatts/snickery
6d7e0b48cbb21760089bbbe85f6d7bd206f89821
[ "Apache-2.0" ]
5
2018-12-21T08:05:06.000Z
2021-01-16T16:43:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ## Project: ## Contact: Oliver Watts - owatts@staffmail.ed.ac.uk import sys import os import glob import os import fileinput from argparse import ArgumentParser import shelve import h5py import numpy import numpy as np from train_halfphone import get_data_dump_name fr...
26.162698
115
0.609586
0
0
0
0
0
0
0
0
2,455
0.372365
b6c876e63b43d2613e35e9f8be781edcaf28ef29
1,268
py
Python
filter_dict/core.py
daddinuz/filter_dict
5e4df5489a04eb0a97251197a45dfd8a56e88874
[ "MIT" ]
null
null
null
filter_dict/core.py
daddinuz/filter_dict
5e4df5489a04eb0a97251197a45dfd8a56e88874
[ "MIT" ]
1
2018-12-02T15:37:11.000Z
2018-12-04T04:59:50.000Z
filter_dict/core.py
daddinuz/filter_dict
5e4df5489a04eb0a97251197a45dfd8a56e88874
[ "MIT" ]
null
null
null
import typing import chainable_iterator K = typing.TypeVar('K') V = typing.TypeVar('V') P = typing.List[K] Predicate = typing.Callable[[P, K, V], bool] _Node = typing.NamedTuple('_Node', (('path', P), ('data', typing.Mapping))) def match_all(_kp: P, _k: K, _v: V) -> bool: return True def _decompose_dict(predi...
30.926829
94
0.614353
0
0
500
0.394322
0
0
0
0
25
0.019716
b6c8ac2b3828724efc5a4b1a174acc6003af0ab7
2,549
py
Python
src/marlb.py
bennett-nguyen/marlb
f169fa814c7454dce54fd6d0ce8e0821280345b2
[ "MIT" ]
4
2021-12-15T14:41:43.000Z
2021-12-27T18:57:13.000Z
src/marlb.py
bennett-nguyen/marlb
f169fa814c7454dce54fd6d0ce8e0821280345b2
[ "MIT" ]
null
null
null
src/marlb.py
bennett-nguyen/marlb
f169fa814c7454dce54fd6d0ce8e0821280345b2
[ "MIT" ]
null
null
null
import argparse import os import re from utils import interpret parser = argparse.ArgumentParser() parser.add_argument("-m", "--mode", choices=["interpret", "debug"], required=True, help="Mode to interpret your file") parser.add_argument("-f", "--file", required=True, help="File to interpret, pass in either file name...
31.085366
175
0.532366
0
0
0
0
0
0
0
0
731
0.286779
b6cb847d557da703ed48e69c2c1a9916ef360141
598
py
Python
capella_console_client/cli/sanitize.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
23
2021-07-28T19:32:25.000Z
2022-03-19T07:57:36.000Z
capella_console_client/cli/sanitize.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
6
2021-07-16T22:31:56.000Z
2022-03-11T21:09:40.000Z
capella_console_client/cli/sanitize.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
1
2022-01-05T18:38:46.000Z
2022-01-05T18:38:46.000Z
import json from uuid import UUID from pathlib import Path from typing import List, Dict, Any, Iterable class SafeEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, UUID): # if the obj is uuid, we simply return the value of uuid return obj.hex return json...
26
68
0.670569
245
0.409699
0
0
0
0
0
0
56
0.093645
b6cbfc1847ede598c7c1e4c45f5ef9f8cdf47c97
1,165
py
Python
portal/libs/scripts/snapshots.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/libs/scripts/snapshots.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/libs/scripts/snapshots.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
#!/usr/bin/python # -*- coding utf-8 -*- import os import subprocess def make_snapshot(filename, page=0): output = filename.replace('.pdf', '.jpg') if os.path.exists(output): return None # os.unlink(output) print filename args = ['convert', '%s[%i]' % (filename, page), output] stde...
27.093023
81
0.556223
0
0
0
0
0
0
0
0
139
0.119313
b6cc07d04501634b38a9132db0f8a13778e8d948
1,333
py
Python
almatsurat_data_compiler.py
IMuslim-org/Al-Matsurat-Internalisation
ad92da6c623911801af23d2d96335e8dedbcd148
[ "BSD-2-Clause" ]
null
null
null
almatsurat_data_compiler.py
IMuslim-org/Al-Matsurat-Internalisation
ad92da6c623911801af23d2d96335e8dedbcd148
[ "BSD-2-Clause" ]
null
null
null
almatsurat_data_compiler.py
IMuslim-org/Al-Matsurat-Internalisation
ad92da6c623911801af23d2d96335e8dedbcd148
[ "BSD-2-Clause" ]
null
null
null
import csv import json import os import argparse parser = argparse.ArgumentParser() parser.add_argument("--dzikir_type", dest="dzikir_type", type=str, help="Please Add Al Matsurat Type") args = parser.parse_args() dzikir_type = args.dzikir_type if dzikir_type == None: dzikir_type = "sugro" __dir__ = os.path.d...
24.236364
102
0.651913
0
0
0
0
0
0
0
0
280
0.210053
b6cc4aeb99e1db488430dfb0021b28e612cd980b
3,642
py
Python
prometheus_api_client/metric_range_df.py
chauhankaranraj/prometheus-api-client-python
5c09c7f3d5b9b2f16dc3aa19c84e9a45c6e23327
[ "MIT" ]
118
2019-03-31T14:43:25.000Z
2022-03-20T02:35:42.000Z
prometheus_api_client/metric_range_df.py
chauhankaranraj/prometheus-api-client-python
5c09c7f3d5b9b2f16dc3aa19c84e9a45c6e23327
[ "MIT" ]
225
2019-03-22T19:31:51.000Z
2022-03-29T15:38:20.000Z
prometheus_api_client/metric_range_df.py
chauhankaranraj/prometheus-api-client-python
5c09c7f3d5b9b2f16dc3aa19c84e9a45c6e23327
[ "MIT" ]
67
2019-03-21T19:00:52.000Z
2022-03-31T12:01:14.000Z
"""A pandas.DataFrame subclass for Prometheus range vector responses.""" from pandas import DataFrame from pandas._typing import Axes, Dtype from typing import Optional, Sequence class MetricRangeDataFrame(DataFrame): """Subclass to format and represent Prometheus query response as pandas.DataFrame. Assumes ...
46.692308
107
0.547227
3,460
0.950027
0
0
0
0
0
0
2,727
0.748764
b6cdb079c562be783ee1672f61ed3ddde8daade9
408
py
Python
testing/testing-xarray-pydap.py
jenfly/atmos-read
0d7315b3ae12b649af298c43bbedbfc5b519afaa
[ "MIT" ]
3
2018-03-30T20:39:52.000Z
2019-01-02T19:16:08.000Z
testing/testing-xarray-pydap.py
jenfly/atmos-read
0d7315b3ae12b649af298c43bbedbfc5b519afaa
[ "MIT" ]
null
null
null
testing/testing-xarray-pydap.py
jenfly/atmos-read
0d7315b3ae12b649af298c43bbedbfc5b519afaa
[ "MIT" ]
null
null
null
import sys sys.path.append('/home/jwalker/dynamics/python/atmos-tools') sys.path.append('/home/jwalker/dynamics/python/atmos-read') import os import xarray as xray import pydap import numpy as np import collections import atmos as atm url = 'http://iridl.ldeo.columbia.edu/SOURCES/.OSU/.PRISM/.monthly/dods' ds = xray...
25.5
72
0.77451
0
0
0
0
0
0
0
0
158
0.387255
b6ce2aec2391ea0b9093ac93109f9105c5b3043c
1,076
py
Python
projects/PointsColletion/pointscollection/layers/emd/modules/emd.py
li-haoran/detectron2
84aebaaed19b07cce9dfd579f98b09ad4ed22e90
[ "Apache-2.0" ]
null
null
null
projects/PointsColletion/pointscollection/layers/emd/modules/emd.py
li-haoran/detectron2
84aebaaed19b07cce9dfd579f98b09ad4ed22e90
[ "Apache-2.0" ]
null
null
null
projects/PointsColletion/pointscollection/layers/emd/modules/emd.py
li-haoran/detectron2
84aebaaed19b07cce9dfd579f98b09ad4ed22e90
[ "Apache-2.0" ]
null
null
null
# EMD approximation module (based on auction algorithm) # memory complexity: O(n) # time complexity: O(n^2 * iter) # author: Minghua Liu # input: # p1, p2: [#batch, #points, 3] # where p1 is the predicted point cloud and p2 is the ground truth point cloud # two point clouds should have same size and be normalized to...
30.742857
91
0.715613
185
0.171933
0
0
0
0
0
0
783
0.727695
b6ce85f9e35e48f81120db106f1180d6d1703043
437
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_google_map/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_google_map/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_google_map/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Website Google Map', 'category': 'Website', 'summary': '', 'version': '1.0', 'description': """ Odoo Website Google Map ========================== """, 'depends': ['base_geoloca...
23
74
0.540046
0
0
0
0
0
0
0
0
342
0.782609
b6d182de999f2b8dda4a0f8767443a13245f8b9e
710
py
Python
nmtpytorch/layers/pw/embedding.py
toshohirasawa/nmtpytorch-emb-pred
3b2d60990967c391aa32ce1e1a9e5cef6229c705
[ "MIT" ]
4
2019-05-22T00:17:28.000Z
2020-08-26T02:03:33.000Z
nmtpytorch/layers/pw/embedding.py
toshohirasawa/nmtpytorch-emb-pred
3b2d60990967c391aa32ce1e1a9e5cef6229c705
[ "MIT" ]
3
2019-07-14T09:17:11.000Z
2022-01-13T01:15:10.000Z
nmtpytorch/layers/pw/embedding.py
toshohirasawa/nmtpytorch-emb-pred
3b2d60990967c391aa32ce1e1a9e5cef6229c705
[ "MIT" ]
null
null
null
from torch import nn import torch class EmbeddingOutput(nn.Module): def __init__(self, n_vocab, emb_size, weight=None): super().__init__() self.n_vocab, self.emb_size = n_vocab, emb_size if weight == None: weight = torch.randn(n_vocab, emb_size) # travarse matrix for ...
29.583333
65
0.650704
674
0.949296
0
0
0
0
0
0
155
0.21831
b6d40c0b4675da86701d6ce4d065ffec39bc4d25
8,216
py
Python
cdApi/discount.py
renqiukai/cd_api
4f1f641adaf031252b097db03249a2581268cc11
[ "MIT" ]
null
null
null
cdApi/discount.py
renqiukai/cd_api
4f1f641adaf031252b097db03249a2581268cc11
[ "MIT" ]
null
null
null
cdApi/discount.py
renqiukai/cd_api
4f1f641adaf031252b097db03249a2581268cc11
[ "MIT" ]
null
null
null
''' @说明 :满减送接口。 @时间 :2020/2/13 下午4:28:26 @作者 :任秋锴 @版本 :1.0 ''' from .base import base from .product import product from .store import store class discount(base): def __init__(self, token): super().__init__(token) def list(self, state=None, name=None, ...
29.985401
66
0.443403
8,452
0.977562
0
0
0
0
0
0
2,378
0.27504
b6d4d24a9d02c1d338914db5f0e973ea12ab7e75
1,793
py
Python
login.py
2oYC/Monopoly
c039cddadb38326bc4ce1ddd36c3a51887e9fbe2
[ "MIT" ]
null
null
null
login.py
2oYC/Monopoly
c039cddadb38326bc4ce1ddd36c3a51887e9fbe2
[ "MIT" ]
null
null
null
login.py
2oYC/Monopoly
c039cddadb38326bc4ce1ddd36c3a51887e9fbe2
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time usernameStr = 'user_teamj' passwordStr = 'aad@123' def login(quesno,diff): # diff = 0 # # difficulty ...
27.166667
89
0.662019
0
0
0
0
0
0
0
0
718
0.400446
b6d550ad2ae06f4375b0baa41ab881e26142f3e6
589
py
Python
blanc_basic_pages/migrations/0002_page_hero_image.py
src-r-r/blanc-basic-pages
2714567e054cafeaaefd533a1786cdef43369f9d
[ "BSD-3-Clause" ]
1
2020-01-11T12:48:38.000Z
2020-01-11T12:48:38.000Z
blanc_basic_pages/migrations/0002_page_hero_image.py
src-r-r/blanc-basic-pages
2714567e054cafeaaefd533a1786cdef43369f9d
[ "BSD-3-Clause" ]
1
2017-05-02T21:41:35.000Z
2017-05-02T21:41:35.000Z
blanc_basic_pages/migrations/0002_page_hero_image.py
src-r-r/blanc-basic-pages
2714567e054cafeaaefd533a1786cdef43369f9d
[ "BSD-3-Clause" ]
2
2020-01-11T12:49:03.000Z
2020-10-17T00:34:29.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import blanc_basic_assets.fields import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('assets', '0001_initial'), ('pages', '0001_initial'), ] ope...
25.608696
148
0.657046
414
0.702886
0
0
0
0
0
0
98
0.166384
b6d62cb0d58d04d2fb59cddbe5dfdb15bc52ce89
4,538
py
Python
src/app/beer_garden/metrics.py
ExpressHermes/beer-garden
2ea0944d7528a8127bc1b79d16d8fdc668f1c8e4
[ "MIT" ]
null
null
null
src/app/beer_garden/metrics.py
ExpressHermes/beer-garden
2ea0944d7528a8127bc1b79d16d8fdc668f1c8e4
[ "MIT" ]
null
null
null
src/app/beer_garden/metrics.py
ExpressHermes/beer-garden
2ea0944d7528a8127bc1b79d16d8fdc668f1c8e4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Metrics Service The metrics service manages: * Connectivity to the Prometheus Server * Creating default summary views in Prometheus * Publishing `Request` metrics """ import datetime import logging from http.server import ThreadingHTTPServer from brewtils.models import Request from brewti...
28.721519
86
0.694579
947
0.208682
0
0
0
0
0
0
1,536
0.338475
b6d923de7666600e544be448396f3fd26e44e836
2,368
py
Python
sendmail/__init__.py
hmif-itb/hmif-send-mail
628e283d7de06b132fe72af97b76104ea5ff8c88
[ "MIT" ]
null
null
null
sendmail/__init__.py
hmif-itb/hmif-send-mail
628e283d7de06b132fe72af97b76104ea5ff8c88
[ "MIT" ]
null
null
null
sendmail/__init__.py
hmif-itb/hmif-send-mail
628e283d7de06b132fe72af97b76104ea5ff8c88
[ "MIT" ]
null
null
null
import argparse from .helpers import yaml_parser from .mailer import Mailer from .utils import csv_to_recipients from .exceptions import TemplateNotFoundException from .exceptions import TemplateAndCSVNotMatchException def main(): parser = argparse.ArgumentParser() parser.add_argument("--config", help="yaml ...
37
82
0.600084
0
0
0
0
0
0
0
0
420
0.177365
b6d95e9d197de4562be8336500d24a19ca05a815
1,540
py
Python
aquascope/tests/aquascope/webserver/data_access/db/dummy_uploads.py
MicroscopeIT/aquascope_backend
6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24
[ "MIT" ]
null
null
null
aquascope/tests/aquascope/webserver/data_access/db/dummy_uploads.py
MicroscopeIT/aquascope_backend
6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24
[ "MIT" ]
3
2021-06-08T19:50:36.000Z
2021-09-08T01:15:33.000Z
aquascope/tests/aquascope/webserver/data_access/db/dummy_uploads.py
MicroscopeIT/aquascope_backend
6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24
[ "MIT" ]
2
2019-05-15T13:30:42.000Z
2020-06-12T02:42:49.000Z
import copy from bson import ObjectId from aquascope.webserver.data_access.db.upload import Upload, DEFAULT_UPLOAD_PROJECTION from aquascope.webserver.data_access.db.util import project_dict _DUMMY_UPLOADS = [ { '_id': ObjectId('000000000000000000001000'), 'filename': 'dummy0', 'state': '...
27.017544
103
0.587013
0
0
0
0
0
0
0
0
605
0.392857
b6d96dd49a13b9761c39ef2d1c9b9e38d768bfea
1,855
py
Python
setup.py
boryana-ilieva/soepy_dev
98655bb1d7012c5554201a8dcfb728eeeaadf5bf
[ "MIT" ]
null
null
null
setup.py
boryana-ilieva/soepy_dev
98655bb1d7012c5554201a8dcfb728eeeaadf5bf
[ "MIT" ]
null
null
null
setup.py
boryana-ilieva/soepy_dev
98655bb1d7012c5554201a8dcfb728eeeaadf5bf
[ "MIT" ]
null
null
null
import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-data. NAME = "soepy" DESCRIPTION = ( "soepy is an open-source Python package for the simulation and estimation of a " "dynamic model of human capital accumulation tailored to the German Socio-Eco...
24.733333
87
0.654987
833
0.447609
0
0
114
0.061257
0
0
724
0.389038
b6dae59c813a21c1bae77174eb41e6d55a7c96e9
1,833
py
Python
Sort/IndexMinPQ.py
sywh/algorithms
8df353aa6716f2ed83e9167a27ceb6d3384891da
[ "MIT" ]
null
null
null
Sort/IndexMinPQ.py
sywh/algorithms
8df353aa6716f2ed83e9167a27ceb6d3384891da
[ "MIT" ]
null
null
null
Sort/IndexMinPQ.py
sywh/algorithms
8df353aa6716f2ed83e9167a27ceb6d3384891da
[ "MIT" ]
null
null
null
class IndexMinPQ: # refer to https://www.cnblogs.com/nullzx/p/6624731.html def __init__(self, max): # how about resize? self.pq = [None] * (max + 1) self.qp = [None] * (max + 1) # inverse of pq: qp[pq[i]] = pq[qp[i]] = i self.keys = [None] * (max + 1) # keys[i] = priority of i se...
25.458333
80
0.454446
1,832
0.999454
0
0
0
0
0
0
164
0.089471
b6ddbe7c2cabd5e9f6c3a2acc63484a224906441
702
py
Python
careapi/models.py
Framinus/transgendercare
3c5fc53774fb5e808a5f33faa1f7a288d9f33d56
[ "MIT" ]
null
null
null
careapi/models.py
Framinus/transgendercare
3c5fc53774fb5e808a5f33faa1f7a288d9f33d56
[ "MIT" ]
null
null
null
careapi/models.py
Framinus/transgendercare
3c5fc53774fb5e808a5f33faa1f7a288d9f33d56
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Office(models.Model): name = models.CharField(max_length=200) staff_rating = models.IntegerField(default=0) forms_language = models.IntegerField(default=0) class Provider(models.Model): name = models.CharField(max_length=200) zip_code =...
30.521739
52
0.716524
641
0.913105
0
0
0
0
0
0
26
0.037037
b6dea75ac1d892435b1297a25c34723e9ed2ad4b
4,961
py
Python
Features/OCR.py
JosephLteif/Smart-Assistant
6f428288da3abf21e83d64e7db63a41eba9c496c
[ "MIT" ]
null
null
null
Features/OCR.py
JosephLteif/Smart-Assistant
6f428288da3abf21e83d64e7db63a41eba9c496c
[ "MIT" ]
null
null
null
Features/OCR.py
JosephLteif/Smart-Assistant
6f428288da3abf21e83d64e7db63a41eba9c496c
[ "MIT" ]
null
null
null
# Import required packages import os import time import cv2 import imutils import numpy as np import pytesseract from autocorrect import Speller from PIL import Image def VideoOn(): video = cv2.VideoCapture(0, cv2.CAP_DSHOW) while True: # check returns true if python can actually read and frame is n...
29.011696
100
0.642209
0
0
0
0
0
0
0
0
1,741
0.350937
b6dff72d70ac2ad0638bfd3497907c8deb6f393f
167
py
Python
CursoEmVideo/Aula07/ex013.py
lucashsouza/Desafios-Python
abb5b11ebdfd4c232b4f0427ef41fd96013f2802
[ "MIT" ]
null
null
null
CursoEmVideo/Aula07/ex013.py
lucashsouza/Desafios-Python
abb5b11ebdfd4c232b4f0427ef41fd96013f2802
[ "MIT" ]
null
null
null
CursoEmVideo/Aula07/ex013.py
lucashsouza/Desafios-Python
abb5b11ebdfd4c232b4f0427ef41fd96013f2802
[ "MIT" ]
null
null
null
sal = float(input('Digite seu salario: R$')) aum = sal * 0.15 print('Parabens, você ganhou um aumento de 15%') print('Seu novo salario é de R${}'.format(sal + aum))
41.75
53
0.658683
0
0
0
0
0
0
0
0
95
0.56213
b6e01231f6ddaed17eabf22f2cf909de2da3fd64
8,289
py
Python
tests/test_backend.py
pbaehr/django-cas-ng
470fc9ab4d6110cf39cc434c8317097546aa4ced
[ "MIT" ]
null
null
null
tests/test_backend.py
pbaehr/django-cas-ng
470fc9ab4d6110cf39cc434c8317097546aa4ced
[ "MIT" ]
1
2017-07-17T12:31:28.000Z
2017-07-31T08:59:35.000Z
tests/test_backend.py
WernerRaath/django-cas-ng
2999648af76e888ea0122c8f727451396cf9f724
[ "MIT" ]
1
2019-03-06T09:44:08.000Z
2019-03-06T09:44:08.000Z
from __future__ import absolute_import import sys import pytest from django.test import RequestFactory from django_cas_ng import backends @pytest.mark.django_db def test_backend_authentication_creating_a_user(monkeypatch, django_user_model): """ Test the case where CAS authentication is creating a new user....
31.51711
93
0.694414
116
0.013994
0
0
7,061
0.851852
0
0
2,859
0.344915
b6e017a707606aa130c9e5c3bc33df054392f69e
4,208
py
Python
gunnery/core/migrations/0005_auto__add_serverauthentication__add_field_server_method.py
timgates42/gunnery
733a261cae6243a11883a40e18b14f57cf6e47b2
[ "Apache-2.0" ]
314
2015-01-01T06:17:34.000Z
2022-03-10T03:34:02.000Z
gunnery/core/migrations/0005_auto__add_serverauthentication__add_field_server_method.py
timgates42/gunnery
733a261cae6243a11883a40e18b14f57cf6e47b2
[ "Apache-2.0" ]
20
2015-04-03T13:34:59.000Z
2021-06-10T20:37:25.000Z
gunnery/core/migrations/0005_auto__add_serverauthentication__add_field_server_method.py
pkucmus/gunnery
30fce7f3fd74947621da6e91c1e872f383fc1e71
[ "Apache-2.0" ]
57
2015-01-07T05:41:34.000Z
2021-10-31T19:56:50.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'ServerAuthentication' db.create_table(u'core_serverauthen...
56.106667
165
0.57557
4,041
0.960314
0
0
0
0
0
0
2,612
0.620722
b6e0c18e1b0c4376c070fbdb4d419c07ae32956c
3,160
py
Python
t1_extract_data_from_db.py
AuthEceSoftEng/MiningSOAnswerEdits
3353db1dabf592df5e4c569f6ebb6e1a752a4a24
[ "Apache-2.0" ]
1
2020-11-06T03:45:56.000Z
2020-11-06T03:45:56.000Z
t1_extract_data_from_db.py
AuthEceSoftEng/MiningSOAnswerEdits
3353db1dabf592df5e4c569f6ebb6e1a752a4a24
[ "Apache-2.0" ]
null
null
null
t1_extract_data_from_db.py
AuthEceSoftEng/MiningSOAnswerEdits
3353db1dabf592df5e4c569f6ebb6e1a752a4a24
[ "Apache-2.0" ]
2
2020-11-02T08:16:06.000Z
2020-12-09T04:01:18.000Z
from pandas import DataFrame import mysql.connector as mc from properties import user, password, host, port, database, data_path cnx = mc.connect(user=user, password=password, host=host, port=port, database=database) cursor = cnx.cursor() # Find answer(with code block which has changed at least once) ids sql1...
39.5
184
0.774684
0
0
0
0
0
0
0
0
2,528
0.8
b6e1e6d3adbca60b66dd0941ce9aa4bd443a43a2
278
py
Python
qcow2tool/sub_scan.py
nishemon/qcow2tool
4db1516488e598baae9d2e64ba5c0fbea3a68d7b
[ "MIT" ]
2
2018-02-27T07:00:47.000Z
2020-05-20T09:51:17.000Z
qcow2tool/sub_scan.py
nishemon/qcow2tool
4db1516488e598baae9d2e64ba5c0fbea3a68d7b
[ "MIT" ]
null
null
null
qcow2tool/sub_scan.py
nishemon/qcow2tool
4db1516488e598baae9d2e64ba5c0fbea3a68d7b
[ "MIT" ]
1
2019-11-27T09:56:17.000Z
2019-11-27T09:56:17.000Z
import argparse def scan(conf, args): pass def setup_subcmd(subparsers): scan_parser = subparsers.add_parser('scan', help='scan qcow2 image dir') scan_parser.add_argument('srcdir', type=argparse.FileType('r'), nargs=1) scan_parser.set_defaults(handler=scan)
23.166667
76
0.733813
0
0
0
0
0
0
0
0
39
0.140288
b6e1ea932d8c5cacb20dcd319573741e59522077
4,395
py
Python
scrapy/tests/test_contrib_exp_crawlspider_reqgen.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scrapy/tests/test_contrib_exp_crawlspider_reqgen.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scrapy/tests/test_contrib_exp_crawlspider_reqgen.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
from twisted.internet import defer from twisted.trial import unittest from scrapy.http import Request from scrapy.http import HtmlResponse from scrapy.utils.python import equal_attributes from scrapy.contrib_exp.crawlspider.reqext import SgmlRequestExtractor from scrapy.contrib_exp.crawlspider.reqgen import RequestGe...
35.16
81
0.598635
3,799
0.864391
0
0
0
0
0
0
842
0.191581
b6e323612c27f1c648a39e77bf266f1f8b1edb1c
5,891
py
Python
scripts/train_agents.py
Silviatulli/minmax_transparency_project
45f93870d4366c8a1d0d5a43cf270ec92bc7a63b
[ "MIT" ]
1
2021-07-13T02:55:16.000Z
2021-07-13T02:55:16.000Z
scripts/train_agents.py
Silviatulli/minmax_transparency_project
45f93870d4366c8a1d0d5a43cf270ec92bc7a63b
[ "MIT" ]
1
2020-07-06T08:44:28.000Z
2020-07-06T08:44:28.000Z
scripts/train_agents.py
Silviatulli/minmax_transparency_project
45f93870d4366c8a1d0d5a43cf270ec92bc7a63b
[ "MIT" ]
1
2020-03-15T15:53:40.000Z
2020-03-15T15:53:40.000Z
import tensorflow as tf import json from sklearn.model_selection import KFold import jsonpickle import numpy as np from minmax.game_model import GameState def load_data(file_name): with open(file_name, "r") as file: data = json.load(file) data_decoded = jsonpickle.decode(data) states = list(...
33.282486
79
0.654728
0
0
0
0
0
0
0
0
1,184
0.200985
b6e3ed186797b0db9105b6d4c93d6db5f25cd9a2
447
py
Python
blockapi/test/api/test_tronscan.py
jendis/blockapi
c886cef954a504fc926c132b30acddc71abe5f12
[ "MIT" ]
null
null
null
blockapi/test/api/test_tronscan.py
jendis/blockapi
c886cef954a504fc926c132b30acddc71abe5f12
[ "MIT" ]
null
null
null
blockapi/test/api/test_tronscan.py
jendis/blockapi
c886cef954a504fc926c132b30acddc71abe5f12
[ "MIT" ]
null
null
null
from pytest import mark from blockapi.api.tronscan import TronscanAPI from blockapi.test_init import test_addresses class TestTronscanAPI: ADDRESS = test_addresses['TRX'][0] @mark.vcr() def test_get_balance(self): api = TronscanAPI(address=self.ADDRESS) result = api.get_balance() ...
24.833333
78
0.655481
327
0.731544
0
0
260
0.581655
0
0
26
0.058166
b6e731b3f53ab367c89ef0ea8e1cbffb0d990775
429
py
Python
kornia/feature/loftr/backbone/__init__.py
Ishticode/kornia
974abb43ec72d12dbd244a2fb247bbbab8498de0
[ "ECL-2.0", "Apache-2.0" ]
4,894
2019-10-24T15:51:39.000Z
2022-03-30T22:58:33.000Z
kornia/feature/loftr/backbone/__init__.py
Ishticode/kornia
974abb43ec72d12dbd244a2fb247bbbab8498de0
[ "ECL-2.0", "Apache-2.0" ]
912
2019-10-24T16:08:42.000Z
2022-03-31T19:07:09.000Z
kornia/feature/loftr/backbone/__init__.py
Ishticode/kornia
974abb43ec72d12dbd244a2fb247bbbab8498de0
[ "ECL-2.0", "Apache-2.0" ]
557
2019-10-24T16:02:43.000Z
2022-03-28T07:33:33.000Z
from .resnet_fpn import ResNetFPN_8_2, ResNetFPN_16_4 def build_backbone(config): if config['backbone_type'] == 'ResNetFPN': if config['resolution'] == (8, 2): return ResNetFPN_8_2(config['resnetfpn']) elif config['resolution'] == (16, 4): return ResNetFPN_16_4(config['resn...
35.75
89
0.655012
0
0
0
0
0
0
0
0
135
0.314685
b6e9c145098ed95681098c525d8b180ef7ee86d5
554
py
Python
itaizi/list.py
kaheiseki/itaizi
cb52672475ce074b57bd4244f7d5d1f83b541921
[ "MIT" ]
null
null
null
itaizi/list.py
kaheiseki/itaizi
cb52672475ce074b57bd4244f7d5d1f83b541921
[ "MIT" ]
1
2022-03-19T08:51:08.000Z
2022-03-19T08:51:08.000Z
itaizi/list.py
kaheiseki/itaizi
cb52672475ce074b57bd4244f7d5d1f83b541921
[ "MIT" ]
null
null
null
itaizi_list = { "亞":"亜", "啞":"唖", "瘂":"唖", "惡":"悪", "蘆":"芦", "鰺":"鯵", "壓":"圧", "葊":"庵", "菴":"庵", "桉":"案", "圍":"囲", "爲":"為", "醫":"医", "毓":"育", "弌":"一", "壹":"壱", "稻":"稲", "囙":"因", "婣":"姻", "飮":"飲", "滛":"淫", "婬":"淫", "隱":"隠", "阴":"陰", "隂":"陰", "夘":"卯", "丒":"丑", "噓":"...
10.45283
15
0.196751
0
0
0
0
0
0
0
0
485
0.650134
b6e9e820b7afe09d1d292ddb58ac088c11338fa6
5,298
py
Python
bitsoapi/Client.py
oxsoftdev/bitsoapi
daa15c8921f4e49e07f1a958e8837d3548db329d
[ "MIT" ]
null
null
null
bitsoapi/Client.py
oxsoftdev/bitsoapi
daa15c8921f4e49e07f1a958e8837d3548db329d
[ "MIT" ]
null
null
null
bitsoapi/Client.py
oxsoftdev/bitsoapi
daa15c8921f4e49e07f1a958e8837d3548db329d
[ "MIT" ]
null
null
null
from .errors import (ApiError, ApiClientError) from .mixins import ApiClientMixin from .models.public import ( AvailableBooks , Ticker , OrderBook , Trade ) class Client(ApiClientMixin): def __init__(self, key=None, secret=None): self.base_url = 'https://bitso.com/api/v3' self.key...
34.855263
114
0.597206
5,121
0.966591
0
0
0
0
0
0
886
0.167233
b6ea62493bb53238356a18063f57e6e79423b5be
328
py
Python
vgrocery/main.py
ViniciusMadureira/ifsp-oop2-exercise001
c66727bfde82ee96b10b81a84f6b52bbcb62f68b
[ "CC0-1.0" ]
null
null
null
vgrocery/main.py
ViniciusMadureira/ifsp-oop2-exercise001
c66727bfde82ee96b10b81a84f6b52bbcb62f68b
[ "CC0-1.0" ]
null
null
null
vgrocery/main.py
ViniciusMadureira/ifsp-oop2-exercise001
c66727bfde82ee96b10b81a84f6b52bbcb62f68b
[ "CC0-1.0" ]
null
null
null
# This Python file uses the following encoding: utf-8 from PyQt5 import QtCore, QtGui, QtWidgets from view.productsview import ProductsView if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) pv = ProductsView() #pv.pte_product_value.installEventFilter(self) sys.exit(app.e...
27.333333
53
0.740854
0
0
0
0
0
0
0
0
109
0.332317
b6ec13e7e4ba96b5a332cf789b0ce2b80b637f18
880
py
Python
proxion/util/common.py
WhiteOnBlackCode/proxion
6c6fda6f3017ad28f917a0d6d18b0b18aabb248b
[ "MIT" ]
4
2018-09-08T18:41:09.000Z
2019-07-18T03:20:53.000Z
proxion/util/common.py
codeswhite/proxion
6c6fda6f3017ad28f917a0d6d18b0b18aabb248b
[ "MIT" ]
9
2021-06-26T07:44:08.000Z
2021-07-10T05:32:22.000Z
proxion/util/common.py
WhiteOnBlackCode/proxion
6c6fda6f3017ad28f917a0d6d18b0b18aabb248b
[ "MIT" ]
null
null
null
from site import USER_BASE from ipaddress import AddressValueError, IPv4Address from pathlib import Path from random import choice from termcolor import cprint from interutils import clear class InvalidProxyFormatError(Exception): pass def is_ip_address(ip_addr: str) -> bool: try: IPv4Address(ip_ad...
20.465116
81
0.657955
50
0.056818
0
0
0
0
0
0
80
0.090909
b6ec2598a56faa62709a6fdad2b2f7f1d84fc242
3,256
py
Python
pycryptoki/mechanism/des.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
pycryptoki/mechanism/des.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
pycryptoki/mechanism/des.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
""" DES3-specific mechanism implementations. """ import logging from ctypes import c_void_p, cast, pointer, sizeof, POINTER from . import Mechanism from ..attributes import to_byte_array from ..conversions import from_bytestring from ..cryptoki import CK_ULONG, CK_BYTE, CK_BYTE_PTR, CK_DES_CTR_PARAMS, \ CK_KEY_DE...
36.58427
77
0.677211
2,842
0.87285
0
0
0
0
0
0
1,176
0.361179
b6ed12c39143d84b5ad92a9fccf364f6029a375d
3,850
py
Python
tw2/core/jsonify.py
atbinf/tw2.core
51b124d62954a3d3cd9a89c78d48e534297c9c35
[ "MIT" ]
6
2015-01-20T13:45:24.000Z
2022-01-04T18:41:55.000Z
tw2/core/jsonify.py
atbinf/tw2.core
51b124d62954a3d3cd9a89c78d48e534297c9c35
[ "MIT" ]
14
2015-07-13T20:20:41.000Z
2021-10-11T23:59:01.000Z
tw2/core/jsonify.py
atbinf/tw2.core
51b124d62954a3d3cd9a89c78d48e534297c9c35
[ "MIT" ]
5
2015-06-10T06:44:56.000Z
2018-05-16T17:36:07.000Z
""" Copyright (c) 2005-2009 Ben Bangert, James Gardner, Philip Jenvey and contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must reta...
42.777778
79
0.749091
0
0
0
0
0
0
0
0
3,361
0.872987
b6ee407db83d6ab01037c334c2bf8e1bea1a5bf8
685
py
Python
mail/views.py
lxdiyun/mail_sender
fda1cbb413f8647c2ab5be858ec0aaa32a0fbfac
[ "BSD-3-Clause" ]
null
null
null
mail/views.py
lxdiyun/mail_sender
fda1cbb413f8647c2ab5be858ec0aaa32a0fbfac
[ "BSD-3-Clause" ]
null
null
null
mail/views.py
lxdiyun/mail_sender
fda1cbb413f8647c2ab5be858ec0aaa32a0fbfac
[ "BSD-3-Clause" ]
null
null
null
""" mail app views""" from django.http import Http404 from django.http import HttpResponse from mail.models import Receiver, Mail, generate_mail_conent def mail_demo_view(request, mail_id, receiver_id): """ final mail demo """ if mail_id: try: mail = Mail.objects.get(pk=mail_id) ...
25.37037
65
0.649635
0
0
0
0
0
0
0
0
72
0.105109
b6ef7292ee095b344a1e27bdac06d5abb78f801f
4,772
py
Python
main.py
hollow-earth/handwritten-latex
077ecc09edd94d9cda10700886c74bb93f0f6121
[ "MIT" ]
null
null
null
main.py
hollow-earth/handwritten-latex
077ecc09edd94d9cda10700886c74bb93f0f6121
[ "MIT" ]
null
null
null
main.py
hollow-earth/handwritten-latex
077ecc09edd94d9cda10700886c74bb93f0f6121
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter.filedialog import askopenfilename from tkinter import scrolledtext from PIL import ImageTk,Image import execute def updateText(text): text_widget["state"] = tk.NORMAL text_widget.insert(tk.INSERT, text) text_widget["state"] = tk.DISABLED def getFile(): global filenam...
40.440678
132
0.67917
0
0
0
0
0
0
0
0
694
0.145432
b6f0097f2059d2d9b097d5fd295d4ac7fbf4e17b
1,067
py
Python
game/spaceship/module.py
shycoldii/asteroids
3e06e68dff6e5a4ec87444ae94bd40c77e31515b
[ "MIT" ]
null
null
null
game/spaceship/module.py
shycoldii/asteroids
3e06e68dff6e5a4ec87444ae94bd40c77e31515b
[ "MIT" ]
null
null
null
game/spaceship/module.py
shycoldii/asteroids
3e06e68dff6e5a4ec87444ae94bd40c77e31515b
[ "MIT" ]
null
null
null
from pygame.math import Vector2 from game.base.base import BasicObject class AbstractModule(BasicObject): """Абстрактный модуль, гаджет, навес для spaceship""" def __init__(self, display, space_pos, space_size, space_head): super().__init__(display) self._space_size = space_size self...
24.813953
67
0.63074
1,172
0.939856
0
0
135
0.10826
0
0
448
0.359262
b6f0188653bb2ee871af6055822ae4236aad3138
1,681
py
Python
aaem/components/ashp_base/config.py
gina-alaska/alaska_affordable_energy_model
96fed0137152985ce280ea37e0affec131e3087f
[ "MIT-feh" ]
1
2022-01-23T07:18:36.000Z
2022-01-23T07:18:36.000Z
aaem/components/ashp_base/config.py
gina-alaska/alaska_affordable_energy_model
96fed0137152985ce280ea37e0affec131e3087f
[ "MIT-feh" ]
5
2017-07-14T21:56:46.000Z
2017-07-14T21:59:15.000Z
aaem/components/ashp_base/config.py
gina-alaska/alaska_affordable_energy_model
96fed0137152985ce280ea37e0affec131e3087f
[ "MIT-feh" ]
2
2020-04-28T18:12:55.000Z
2021-01-13T01:56:57.000Z
""" Air Sorce Heat Pump Base Configuration -------------------------------------- Contains Air Sorce Heat Pump Base configuration info for community data yaml file, and other set-up requirements """ from aaem.components import definitions from pandas import DataFrame COMPONENT_NAME = "air source heat pumps b...
27.112903
161
0.603807
0
0
0
0
0
0
0
0
1,074
0.638905
b6f042d82082418eff06a31d2338a1f484ffdb28
1,481
py
Python
tkRAD/xml/rad_xml_attributes_dict.py
eblade/telegram
fffdcdad501a672130ea5b970c5bfc6bd554d826
[ "MIT" ]
1
2015-02-22T16:33:35.000Z
2015-02-22T16:33:35.000Z
tkRAD/xml/rad_xml_attributes_dict.py
eblade/telegram
fffdcdad501a672130ea5b970c5bfc6bd554d826
[ "MIT" ]
null
null
null
tkRAD/xml/rad_xml_attributes_dict.py
eblade/telegram
fffdcdad501a672130ea5b970c5bfc6bd554d826
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ tkRAD - tkinter Rapid Application Development library (c) 2013+ Raphaël SEBAN <motus@laposte.net> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free S...
29.62
71
0.679271
537
0.362348
0
0
0
0
0
0
1,127
0.760459
b6f087683a1ffd2178d9ae0471c0a084774f2ca3
2,256
py
Python
analysis_tools/PYTHON_RICARDO/rpl/tools/ray_tracing/test_bsp.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
analysis_tools/PYTHON_RICARDO/rpl/tools/ray_tracing/test_bsp.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
analysis_tools/PYTHON_RICARDO/rpl/tools/ray_tracing/test_bsp.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
import numpy as np from math import sqrt import time from rpl.tools.geometry.surface_io import open_geom from bsp_tree_poly import BSP_Tree import logging ## Get rid of any existing handlers (e.g. if running interactively in ipython) logging.getLogger().handlers = [] ## Main logging goes to a file logging....
23.257732
114
0.628103
0
0
0
0
0
0
0
0
345
0.152926
b6f0f2ae0437a7438574c9999baa6648a2c77f76
6,080
py
Python
noogle/models.py
mtik00/gcal_nest
eb54e0cdefa8747f3173a91df131092286b83e09
[ "MIT" ]
1
2019-08-14T01:51:22.000Z
2019-08-14T01:51:22.000Z
noogle/models.py
mtik00/noogle
eb54e0cdefa8747f3173a91df131092286b83e09
[ "MIT" ]
null
null
null
noogle/models.py
mtik00/noogle
eb54e0cdefa8747f3173a91df131092286b83e09
[ "MIT" ]
null
null
null
import enum from sqlalchemy import Integer, String, Column, Enum, UniqueConstraint from sqlalchemy.sql import exists, and_ from sqlalchemy_utils import ArrowType from sqlalchemy.exc import IntegrityError from .db import Base, session import arrow from .settings import settings from .utils import get_scheduled_date fro...
29.371981
88
0.587171
5,717
0.940296
0
0
3,138
0.516118
0
0
820
0.134868