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
1d8ed691bc1e2cfc66de444bb1d05af62280c187
1,787
py
Python
src/models/operations/densenet.py
takedarts/skipresnet
d6f1e16042f8433a287355009e17e4e5768ad319
[ "MIT" ]
3
2022-02-03T13:25:12.000Z
2022-02-04T16:12:23.000Z
src/models/operations/densenet.py
takedarts/skipresnet
d6f1e16042f8433a287355009e17e4e5768ad319
[ "MIT" ]
null
null
null
src/models/operations/densenet.py
takedarts/skipresnet
d6f1e16042f8433a287355009e17e4e5768ad319
[ "MIT" ]
1
2022-02-04T12:28:02.000Z
2022-02-04T12:28:02.000Z
import collections from typing import Callable import torch.nn as nn from ..modules import DropBlock class DenseNetOperation(nn.Sequential): ''' Operation class for DenseNets. ''' def __init__( self, in_channels: int, out_channels: int, stride: int, growth: i...
35.039216
73
0.521544
1,681
0.940683
0
0
0
0
0
0
127
0.071069
1d92af4b43cb3e937840bf4564f0bebb96606407
1,664
py
Python
src/de_direct/ipfs_utils.py
tubleronchik/drone_passport_agent
e85bbc8b4777b2c93c3564c22336cb13bb93bf5f
[ "BSD-3-Clause" ]
null
null
null
src/de_direct/ipfs_utils.py
tubleronchik/drone_passport_agent
e85bbc8b4777b2c93c3564c22336cb13bb93bf5f
[ "BSD-3-Clause" ]
null
null
null
src/de_direct/ipfs_utils.py
tubleronchik/drone_passport_agent
e85bbc8b4777b2c93c3564c22336cb13bb93bf5f
[ "BSD-3-Clause" ]
null
null
null
import os import rospy from shutil import move from tempfile import gettempdir, NamedTemporaryFile from ipfshttpclient import connect from rosbag import Bag def ipfs_download_txt_file(ipfs_hash: str) -> str: temp_log = NamedTemporaryFile(delete=False) ipfs_download_file(connect(), ipfs_hash, temp_log.name) ...
30.254545
120
0.672476
0
0
0
0
0
0
0
0
240
0.144231
1d934a395a0830ed466a1f51cf7e9b44cbf3358d
240
py
Python
7_adapter&facade/adapter/turkey_adapter.py
hypersport/Head-First-Design-Patterns-Python
0c8b831ae89ebbbef8b203b96508deb7e3063590
[ "MIT" ]
null
null
null
7_adapter&facade/adapter/turkey_adapter.py
hypersport/Head-First-Design-Patterns-Python
0c8b831ae89ebbbef8b203b96508deb7e3063590
[ "MIT" ]
null
null
null
7_adapter&facade/adapter/turkey_adapter.py
hypersport/Head-First-Design-Patterns-Python
0c8b831ae89ebbbef8b203b96508deb7e3063590
[ "MIT" ]
null
null
null
from duck import Duck class TurkeyAdapter(Duck): def __init__(self, turkey): self.turkey = turkey def quack(self): self.turkey.gobble() def fly(self): for _ in range(5): self.turkey.fly()
17.142857
31
0.583333
215
0.895833
0
0
0
0
0
0
0
0
1d9360fea8ca609279982587a765a834decd39e6
475
py
Python
test_jsonldification.py
khelm/nidm
f182aedfc025a3e29afc9579dc2a4199a3d789a6
[ "Apache-2.0" ]
14
2018-02-19T07:45:48.000Z
2021-06-18T12:31:08.000Z
test_jsonldification.py
khelm/nidm
f182aedfc025a3e29afc9579dc2a4199a3d789a6
[ "Apache-2.0" ]
39
2018-02-05T15:19:37.000Z
2022-03-24T15:52:40.000Z
test_jsonldification.py
khelm/nidm
f182aedfc025a3e29afc9579dc2a4199a3d789a6
[ "Apache-2.0" ]
7
2019-06-06T11:45:26.000Z
2021-09-03T13:42:02.000Z
import rdflib as rl import pyld as ld import json g = rl.ConjunctiveGraph() g.parse(('https://raw.githubusercontent.com/incf-nidash/nidm-specs/master/nidm/nidm-results' '/spm/example001/example001_spm_results.ttl'), format='turtle') g2 = g.serialize(format='json-ld') context = { "@context": "https://...
36.538462
106
0.730526
0
0
0
0
0
0
0
0
234
0.492632
1d940c228fcfb56c1a9c74a6eb7e2d65108a4597
207
py
Python
__tests__/utils/time.py
celestinosalim/dialog-engine
17c7d6e06df05aa24cfb611e91ef4790ffc80cb6
[ "MIT" ]
4
2020-04-17T15:50:33.000Z
2020-04-17T16:49:00.000Z
__tests__/utils/time.py
celestinosalim/dialog-engine
17c7d6e06df05aa24cfb611e91ef4790ffc80cb6
[ "MIT" ]
6
2020-06-18T16:17:27.000Z
2020-08-24T13:21:56.000Z
__tests__/utils/time.py
esl-works/dialog-engine
f29ab486a6f193edce5bbcd2bf3b86b8ad9ceaa9
[ "MIT" ]
3
2020-04-17T16:11:35.000Z
2020-05-21T11:38:05.000Z
import datetime def get_timestamp_min_in_past(min_ago: int) -> datetime.datetime: dt = datetime.datetime.now() - datetime.timedelta(minutes=min_ago) return dt.replace(tzinfo=datetime.timezone.utc)
29.571429
70
0.772947
0
0
0
0
0
0
0
0
0
0
1d9436580093cf984b1f304dba129117ecc40d0b
13,571
py
Python
src/competitions.py
Matin-Ardestani/Type-online-app
1803ab005d0cc8d38c51f334f987db712de732a2
[ "MIT" ]
13
2021-11-03T18:41:31.000Z
2022-03-29T05:21:29.000Z
src/competitions.py
Matin-Ardestani/Typing-online-app
1803ab005d0cc8d38c51f334f987db712de732a2
[ "MIT" ]
1
2021-11-10T17:44:47.000Z
2021-11-10T17:52:50.000Z
src/competitions.py
Matin-Ardestani/Typing-online-app
1803ab005d0cc8d38c51f334f987db712de732a2
[ "MIT" ]
1
2021-11-12T16:10:05.000Z
2021-11-12T16:10:05.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'competition.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, ...
49.710623
109
0.681822
13,181
0.971262
0
0
0
0
0
0
1,996
0.147078
1d94415ab82731c0dda5e02646e86a001b75c57f
5,200
py
Python
AutoBookTKB/AutoBookTKB.py
heyfey/AutoBookseatTKB
9d0b27a3227e7ca5975a6b1fd3749f5b2ed6aa75
[ "MIT" ]
2
2019-07-09T08:32:35.000Z
2019-09-30T19:02:35.000Z
AutoBookTKB/AutoBookTKB.py
heyfey/AutoBookTKB
9d0b27a3227e7ca5975a6b1fd3749f5b2ed6aa75
[ "MIT" ]
1
2018-08-22T03:52:13.000Z
2018-08-22T03:52:13.000Z
AutoBookTKB/AutoBookTKB.py
heyfey/AutoBookTKB
9d0b27a3227e7ca5975a6b1fd3749f5b2ed6aa75
[ "MIT" ]
null
null
null
# !/usr/bin/python # -*-coding:utf-8 -*- from selenium import webdriver from selenium.webdriver.support.ui import Select from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC class AutoBookTKB: def __in...
32.704403
94
0.600962
4,851
0.925763
0
0
0
0
0
0
898
0.171374
1d948a5ce7cab52797ed2b3841127205cc07364e
3,019
py
Python
mripy/tests/test_afni.py
herrlich10/mripy
df9a8e57a21163579af49c59a9dcd2da279cb9fa
[ "MIT" ]
3
2020-08-05T10:18:59.000Z
2022-01-19T08:28:16.000Z
mripy/tests/test_afni.py
herrlich10/mripy
df9a8e57a21163579af49c59a9dcd2da279cb9fa
[ "MIT" ]
null
null
null
mripy/tests/test_afni.py
herrlich10/mripy
df9a8e57a21163579af49c59a9dcd2da279cb9fa
[ "MIT" ]
4
2020-08-19T05:06:16.000Z
2021-02-03T09:53:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals import unittest import numpy as np from mripy import afni, math class test_afni(unittest.TestCase): def test_get_prefix(self): # 3d dset self.assertEqual(afni.get_prefix...
59.196078
138
0.655846
2,775
0.919179
0
0
0
0
0
0
845
0.279894
1d957ac7f202a3c53e2756d95e0827c954759d24
1,245
py
Python
scale/storage/migrations/0016_populate_data_type_tags.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
121
2015-11-18T18:15:33.000Z
2022-03-10T01:55:00.000Z
scale/storage/migrations/0016_populate_data_type_tags.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
1,415
2015-12-23T23:36:04.000Z
2022-01-07T14:10:09.000Z
scale/storage/migrations/0016_populate_data_type_tags.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
66
2015-12-03T20:38:56.000Z
2020-07-27T15:28:11.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import connection, migrations def populate_data_type_tags(apps, schema_editor): # Go through all of the ScaleFile models and convert the data_type string into an array of tags update = 'UPDATE scale_file SET data_type_tags = string...
32.763158
110
0.683534
250
0.200803
0
0
0
0
0
0
433
0.347791
1d962125141716820a534fa0d7a319931e5f5fd8
30,750
py
Python
analyze_epitope_privacy.py
shanavas33/tcr-dist
f9304fa9b7ba05f9f776aa3f60822e2e08023151
[ "MIT" ]
1
2018-10-26T10:59:46.000Z
2018-10-26T10:59:46.000Z
analyze_epitope_privacy.py
joshuabhk/tcr-dist
5ea156bae9216cf1205a7e54a45aa6ffbccac7c9
[ "MIT" ]
null
null
null
analyze_epitope_privacy.py
joshuabhk/tcr-dist
5ea156bae9216cf1205a7e54a45aa6ffbccac7c9
[ "MIT" ]
null
null
null
import sys from basic import * import tcr_distances import parse_tsv import numpy as np from scipy.cluster import hierarchy from scipy.spatial import distance import util import html_colors from all_genes import all_genes with Parser(locals()) as p: #p.str('args').unspecified_default().multiple().required() p...
44.759825
537
0.570179
0
0
0
0
0
0
0
0
8,471
0.27548
1d96409b70dfd29939216befd660664abf857a96
135
py
Python
src/fintrist_ds/__init__.py
tristanbrown/fintrist
38875e4f2c3ab4db31195c798c4262a2f51e4a22
[ "MIT" ]
null
null
null
src/fintrist_ds/__init__.py
tristanbrown/fintrist
38875e4f2c3ab4db31195c798c4262a2f51e4a22
[ "MIT" ]
null
null
null
src/fintrist_ds/__init__.py
tristanbrown/fintrist
38875e4f2c3ab4db31195c798c4262a2f51e4a22
[ "MIT" ]
1
2022-01-21T21:10:38.000Z
2022-01-21T21:10:38.000Z
""" Import all of the processing functions. """ from .engine import * from .manage import * from .services import * from .viz import *
16.875
39
0.711111
0
0
0
0
0
0
0
0
47
0.348148
1d96e779fc8d314da75088210a5bba32a3719d6f
43
py
Python
tests/tasks/secrets/__init__.py
concreted/prefect
dd732f5990ee2b0f3d816adb285168fd63b239e4
[ "Apache-2.0" ]
8,633
2019-03-23T17:51:03.000Z
2022-03-31T22:17:42.000Z
tests/tasks/secrets/__init__.py
concreted/prefect
dd732f5990ee2b0f3d816adb285168fd63b239e4
[ "Apache-2.0" ]
3,903
2019-03-23T19:11:21.000Z
2022-03-31T23:21:23.000Z
tests/tasks/secrets/__init__.py
concreted/prefect
dd732f5990ee2b0f3d816adb285168fd63b239e4
[ "Apache-2.0" ]
937
2019-03-23T18:49:44.000Z
2022-03-31T21:45:13.000Z
import pytest pytest.importorskip("hvac")
10.75
27
0.790698
0
0
0
0
0
0
0
0
6
0.139535
1d9b1fa7fc8c23b3d41158678831aba2fa1fcc52
1,436
py
Python
cybereason_consts.py
splunk-soar-connectors/cybereason
f53892478b9bd75415d0b3eb984d5818bce9185c
[ "Apache-2.0" ]
null
null
null
cybereason_consts.py
splunk-soar-connectors/cybereason
f53892478b9bd75415d0b3eb984d5818bce9185c
[ "Apache-2.0" ]
2
2021-11-09T20:46:34.000Z
2021-11-25T01:20:52.000Z
cybereason_consts.py
splunk-soar-connectors/cybereason
f53892478b9bd75415d0b3eb984d5818bce9185c
[ "Apache-2.0" ]
1
2021-11-12T09:55:02.000Z
2021-11-12T09:55:02.000Z
# File: cybereason_consts.py # # 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 writing, ...
42.235294
112
0.770891
0
0
0
0
0
0
0
0
1,138
0.792479
1d9bc600cb86c39242efe33e2263b3b50c5a51bf
230
py
Python
apps/tg_bot/urls.py
VladimirLazor/Lohika
a36407feeb2e3ade4f8c689030f343d88ff47a92
[ "Apache-2.0" ]
null
null
null
apps/tg_bot/urls.py
VladimirLazor/Lohika
a36407feeb2e3ade4f8c689030f343d88ff47a92
[ "Apache-2.0" ]
9
2021-03-19T15:59:10.000Z
2022-03-12T00:57:56.000Z
apps/tg_bot/urls.py
VladimirLazor/Lohika
a36407feeb2e3ade4f8c689030f343d88ff47a92
[ "Apache-2.0" ]
null
null
null
from django.urls import path from django.views.decorators.csrf import csrf_exempt from config.settings import TG_WEB_HOOK_URL from .views import tg_web_hook urlpatterns = [ path(TG_WEB_HOOK_URL, csrf_exempt(tg_web_hook)), ]
23
52
0.813043
0
0
0
0
0
0
0
0
0
0
1d9c32db10f13bc5f70c8f9104956589288f639d
4,242
py
Python
creme/compose/union.py
IFV/creme
a7393b534489422ba156f2d2e83fb777afbd2efb
[ "BSD-3-Clause" ]
null
null
null
creme/compose/union.py
IFV/creme
a7393b534489422ba156f2d2e83fb777afbd2efb
[ "BSD-3-Clause" ]
1
2022-02-10T06:24:42.000Z
2022-02-10T06:24:42.000Z
creme/compose/union.py
igorol/creme
60977c4accfdca08cfd76a162095ff738ef87281
[ "BSD-3-Clause" ]
1
2021-04-16T08:27:14.000Z
2021-04-16T08:27:14.000Z
import collections import types try: import graphviz GRAPHVIZ_INSTALLED = True except ImportError: GRAPHVIZ_INSTALLED = False from .. import base from . import func __all__ = ['TransformerUnion'] class TransformerUnion(collections.UserDict, base.Transformer): """Packs multiple transformers into a...
30.517986
86
0.558934
4,026
0.949081
0
0
117
0.027581
0
0
2,378
0.560585
1d9d5c2fd8fb2fa4769b60940901fb851de328f1
30,740
py
Python
app.py
mattmallencode/republic
ce7c634fab048e2734f999d56edcf444b71d28ff
[ "CC-BY-4.0" ]
null
null
null
app.py
mattmallencode/republic
ce7c634fab048e2734f999d56edcf444b71d28ff
[ "CC-BY-4.0" ]
null
null
null
app.py
mattmallencode/republic
ce7c634fab048e2734f999d56edcf444b71d28ff
[ "CC-BY-4.0" ]
null
null
null
""" Attribution: 1. Fire SVG made by made by Deepak K Vijayan (2xsamurai). Available from: https://codepen.io/2xsamurai/pen/EKpYM". Logo animation and form animation were made by me. 2. "round_up" function wirtten by Priyankur Sarkar. AVailable from: https://www.knowledgehut.com/blog/programming/py...
54.310954
252
0.640468
0
0
0
0
26,254
0.854066
0
0
17,584
0.572023
1d9d86c211fc1d58055ad9b788bab3c0e20dbabd
1,398
py
Python
test/test_earthdata.py
matthewhanson/modis-ingestor
c8b903b8ce671a93a40f563103a9ca5264658815
[ "MIT" ]
13
2017-01-31T16:37:56.000Z
2020-06-23T19:55:55.000Z
test/test_earthdata.py
matthewhanson/modis-ingestor
c8b903b8ce671a93a40f563103a9ca5264658815
[ "MIT" ]
22
2017-01-12T19:42:32.000Z
2021-05-20T16:03:08.000Z
test/test_earthdata.py
matthewhanson/modis-ingestor
c8b903b8ce671a93a40f563103a9ca5264658815
[ "MIT" ]
2
2018-03-29T23:41:59.000Z
2019-11-09T00:33:38.000Z
import os from dateutil.parser import parse import unittest from modispds.earthdata import query, download_granule class TestCMR(unittest.TestCase): """ Test query and downloading from CMR """ date1 = parse('2016-01-01').date() date2 = parse('2016-01-02').date() date3 = parse('2016-01-30').date() ...
31.066667
125
0.610873
1,280
0.915594
0
0
137
0.097997
0
0
365
0.261087
1d9ed538d4bd36bf0a9f2ecf1ac6d7673e34504f
1,787
py
Python
apps/tests/SerialRecvTest/pingpong-serial.py
zxpower/MansOS
1130f54357649eb25020951951d9a5963e755c66
[ "MIT" ]
10
2015-10-14T12:35:50.000Z
2022-02-20T12:24:36.000Z
apps/tests/SerialRecvTest/pingpong-serial.py
zxpower/MansOS
1130f54357649eb25020951951d9a5963e755c66
[ "MIT" ]
13
2015-11-24T03:25:08.000Z
2017-02-08T09:15:45.000Z
apps/tests/SerialRecvTest/pingpong-serial.py
zxpower/MansOS
1130f54357649eb25020951951d9a5963e755c66
[ "MIT" ]
7
2015-10-15T07:53:52.000Z
2020-12-15T00:15:49.000Z
#!/usr/bin/python # use serial python lib included in MansOS import sys sys.path.append('../../../mos/make/scripts') import serial import threading import random import time baudRate = 38400 try: ser = serial.Serial( port='/dev/ttyUSB0', baudrate=baudRate, parity=serial.PARITY_NONE, ...
20.77907
86
0.579183
0
0
0
0
0
0
0
0
461
0.257974
1d9ef948608abb5888f2c512e8ac676a5c5b356c
137
py
Python
scripts-for-manuscript/figure4/src/h5-mean.py
Clinical-Genomics/d4-format
b36b441f652b1caa3d8ce49b880a0dc853547de3
[ "MIT" ]
116
2020-05-14T19:16:47.000Z
2022-03-19T21:50:19.000Z
scripts-for-manuscript/figure4/src/h5-mean.py
Clinical-Genomics/d4-format
b36b441f652b1caa3d8ce49b880a0dc853547de3
[ "MIT" ]
40
2020-08-27T17:27:31.000Z
2022-03-19T08:41:06.000Z
scripts-for-manuscript/figure4/src/h5-mean.py
Clinical-Genomics/d4-format
b36b441f652b1caa3d8ce49b880a0dc853547de3
[ "MIT" ]
11
2020-09-18T13:03:42.000Z
2022-02-18T17:27:48.000Z
import h5py import sys file = h5py.File(sys.argv[1], "r") for chr in file.keys(): data = file[chr][:] print(chr, data.mean())
13.7
34
0.605839
0
0
0
0
0
0
0
0
3
0.021898
1d9f22247e6067874f38821b8ef5cf39fb2b0283
1,205
py
Python
setup.py
stanislavlevin/k5test
9f4e490d93c92e1b92d23ff82fb605c297515e3f
[ "0BSD" ]
null
null
null
setup.py
stanislavlevin/k5test
9f4e490d93c92e1b92d23ff82fb605c297515e3f
[ "0BSD" ]
null
null
null
setup.py
stanislavlevin/k5test
9f4e490d93c92e1b92d23ff82fb605c297515e3f
[ "0BSD" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( name='k5test', version='0.10.0', author='The Python GSSAPI Team', author_email='sross@redhat.com', packages=['k5test'], description='A library for testing Python applications in ' 'self-contained Kerberos 5 environments'...
32.567568
70
0.60083
0
0
0
0
0
0
0
0
744
0.617427
1da049a2d7118c28d4f3ac2b476676bdb4c8aff1
2,677
py
Python
src/__init__.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
2
2018-11-07T07:54:34.000Z
2022-01-13T13:06:06.000Z
src/__init__.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
null
null
null
src/__init__.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
null
null
null
from src.dmri import (run_spm_fsl_dti_preprocessing, run_dti_artifact_correction, correct_dwi_space_atlas, get_con_matrix_matlab, run_dtk_tractography, ) from src.interfaces import (CanICAInterface, ...
38.797101
54
0.393351
0
0
0
0
0
0
0
0
0
0
1da1ec4541fe6c8f195889f5b3381ab3a7789467
1,062
py
Python
nuage_neutron/vsdclient/common/cms_id_helper.py
jbemmel/nuage-openstack-neutron
e356c017f7e1600b72cfc26abb588c7cf636e925
[ "Apache-2.0" ]
14
2015-06-24T18:35:25.000Z
2020-09-21T07:14:06.000Z
nuage_neutron/vsdclient/common/cms_id_helper.py
jbemmel/nuage-openstack-neutron
e356c017f7e1600b72cfc26abb588c7cf636e925
[ "Apache-2.0" ]
7
2016-01-20T18:20:28.000Z
2020-11-18T16:04:14.000Z
nuage_neutron/vsdclient/common/cms_id_helper.py
jbemmel/nuage-openstack-neutron
e356c017f7e1600b72cfc26abb588c7cf636e925
[ "Apache-2.0" ]
43
2015-04-07T09:02:35.000Z
2021-02-12T07:50:19.000Z
# Copyright 2016 NOKIA # # 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.702703
78
0.699623
0
0
0
0
0
0
0
0
667
0.62806
1da378ba7833b27f03503c506a22364e42c3cfd3
4,195
py
Python
Interface.py
Angel2298/PyCakeSwapBot
e92ed52006a7aa6f94a3c88a5a70e7f4098096c9
[ "BSD-3-Clause" ]
null
null
null
Interface.py
Angel2298/PyCakeSwapBot
e92ed52006a7aa6f94a3c88a5a70e7f4098096c9
[ "BSD-3-Clause" ]
null
null
null
Interface.py
Angel2298/PyCakeSwapBot
e92ed52006a7aa6f94a3c88a5a70e7f4098096c9
[ "BSD-3-Clause" ]
null
null
null
####################################################### CREATE INTERFACE GUI ########################################### import os from tkinter import * import time window = Tk() window.title("DEX PancakeBot") window.minsize(width=500, height= 600) window.config(padx=20, pady=20) # Title Title = Label(text...
32.269231
121
0.591657
0
0
0
0
0
0
0
0
1,769
0.421692
1da4d87ac0986d231201bd1bb6e4a0fc6fc8d019
211
py
Python
watchmate_v1/watchlist_app/urls.py
rroy11705/Rest_API_With_Django
6a75db2e2c3913ec9afc1cbfef67a5c9fd655e60
[ "CNRI-Python" ]
null
null
null
watchmate_v1/watchlist_app/urls.py
rroy11705/Rest_API_With_Django
6a75db2e2c3913ec9afc1cbfef67a5c9fd655e60
[ "CNRI-Python" ]
null
null
null
watchmate_v1/watchlist_app/urls.py
rroy11705/Rest_API_With_Django
6a75db2e2c3913ec9afc1cbfef67a5c9fd655e60
[ "CNRI-Python" ]
null
null
null
from .views import movie_details, movie_list from django.urls import path, include urlpatterns = [ path('all/', movie_list, name="movie-list"), path('<int:pk>/', movie_details, name="movie-details"), ]
26.375
59
0.701422
0
0
0
0
0
0
0
0
44
0.208531
1da5b23d36add3ad28179cc6dbffebac84bcc231
280
py
Python
music_review/graphql/performer/types.py
wmalarski/music-reviews
7190a2fc489965d951b3879ef89bfdf7893b2456
[ "MIT" ]
null
null
null
music_review/graphql/performer/types.py
wmalarski/music-reviews
7190a2fc489965d951b3879ef89bfdf7893b2456
[ "MIT" ]
80
2020-09-22T19:26:24.000Z
2021-09-22T19:44:09.000Z
music_review/graphql/performer/types.py
wmalarski/music-reviews
7190a2fc489965d951b3879ef89bfdf7893b2456
[ "MIT" ]
null
null
null
from graphene import relay from graphene_django import DjangoObjectType from graphene_federation import key from ...reviews.models import Performer @key("mbid") class PerformerType(DjangoObjectType): class Meta: model = Performer interfaces = (relay.Node,)
21.538462
44
0.753571
115
0.410714
0
0
128
0.457143
0
0
6
0.021429
1da5bba78f1767ef9835d4c40a24376f9193ae1b
3,550
py
Python
tests/test_python_dev_tools.py
Joeyt1008/python-dev-tools
95b08b03dc62afdc2ffb2198cccb3e34291353ba
[ "BSD-3-Clause" ]
11
2019-02-24T16:44:41.000Z
2020-12-14T13:03:21.000Z
tests/test_python_dev_tools.py
Joeyt1008/python-dev-tools
95b08b03dc62afdc2ffb2198cccb3e34291353ba
[ "BSD-3-Clause" ]
291
2019-03-22T17:21:53.000Z
2022-03-31T04:13:44.000Z
tests/test_python_dev_tools.py
Joeyt1008/python-dev-tools
95b08b03dc62afdc2ffb2198cccb3e34291353ba
[ "BSD-3-Clause" ]
10
2019-03-22T15:45:14.000Z
2021-12-20T14:00:25.000Z
"""Tests for `python_dev_tools` package.""" import sys from pathlib import Path from textwrap import dedent import python_dev_tools.whataformatter import python_dev_tools.whatalinter from python_dev_tools.whataformatter import main as main_formatter from python_dev_tools.whatalinter import lint, main as main_linter ...
27.099237
95
0.589577
0
0
0
0
0
0
0
0
2,006
0.56507
1da6ecd7cf81d6949311f2c3cbbf6ad20aecc35c
164
py
Python
deepa2/metrics/__init__.py
debatelab/deepa2
1a9e8c357d7e3924808c703ec9f4a6611a4b5f93
[ "Apache-2.0" ]
null
null
null
deepa2/metrics/__init__.py
debatelab/deepa2
1a9e8c357d7e3924808c703ec9f4a6611a4b5f93
[ "Apache-2.0" ]
null
null
null
deepa2/metrics/__init__.py
debatelab/deepa2
1a9e8c357d7e3924808c703ec9f4a6611a4b5f93
[ "Apache-2.0" ]
null
null
null
"""Classes for evaluating generated DeepA2 records""" # flake8: noqa # pylint: skip-file from deepa2.metrics.metric_handler import ( DA2PredictionEvaluator, )
20.5
53
0.762195
0
0
0
0
0
0
0
0
86
0.52439
1da7670cb3265bca373b14be3b2d7200397286df
1,664
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/dark_lang/models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/dark_lang/models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/dark_lang/models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Models for the dark-launching languages """ from config_models.models import ConfigurationModel from django.db import models class DarkLangConfig(ConfigurationModel): """ Configuration for the dark_lang django app. .. no_pii: """ released_languages = models.TextField( blank=True, ...
27.278689
104
0.622596
1,530
0.919471
0
0
844
0.507212
0
0
674
0.405048
1da7c48b6acd120f6e2b6e67aae76c191dc3fd53
548
py
Python
scrummy/__version__.py
mas-4/scrummy
3ff921c40b65413c5de39c20aa3f9feb8f0a6332
[ "MIT" ]
null
null
null
scrummy/__version__.py
mas-4/scrummy
3ff921c40b65413c5de39c20aa3f9feb8f0a6332
[ "MIT" ]
1
2022-01-10T22:59:36.000Z
2022-01-10T22:59:36.000Z
scrummy/__version__.py
mas-4/scrummy
3ff921c40b65413c5de39c20aa3f9feb8f0a6332
[ "MIT" ]
null
null
null
# ___ ___ _ __ _ _ _ __ ___ _ __ ___ _ _ # / __|/ __| '__| | | | '_ ` _ \| '_ ` _ \| | | | # \__ \ (__| | | |_| | | | | | | | | | | | |_| | # |___/\___|_| \__,_|_| |_| |_|_| |_| |_|\__, | # |___/ __title__ = 'scrummy' __description__ = 'Plaintext Scrum-like Todo and ...
39.142857
70
0.534672
0
0
0
0
0
0
0
0
419
0.764599
1da8215721de36398c957e99a911b088c52928ea
3,210
py
Python
refnx/reflect/_jax_reflect.py
dcortie/refnx
037434fa0a64755f72c540d75063986bd517ab10
[ "BSD-3-Clause" ]
32
2016-04-18T15:29:59.000Z
2022-03-27T08:35:29.000Z
refnx/reflect/_jax_reflect.py
dcortie/refnx
037434fa0a64755f72c540d75063986bd517ab10
[ "BSD-3-Clause" ]
116
2015-10-27T04:33:09.000Z
2022-02-22T02:02:47.000Z
refnx/reflect/_jax_reflect.py
dcortie/refnx
037434fa0a64755f72c540d75063986bd517ab10
[ "BSD-3-Clause" ]
22
2015-09-29T23:21:15.000Z
2022-02-27T18:12:18.000Z
""" *Calculates the specular (Neutron or X-ray) reflectivity from a stratified series of layers. The refnx code is distributed under the following license: Copyright (c) 2015 A. R. J. Nelson, ANSTO Permission to use and redistribute the source code or binary forms of this software and its documentation, with or with...
30
79
0.62648
0
0
0
0
0
0
0
0
1,416
0.441121
1da9f37084416d4890228bbc62b4a8fea137f0a1
7,015
py
Python
ModelFinder/model_finder.py
Sparab16/CreditCardPrediction
70c26664d747e0cfcae5256609097ab2e9434b67
[ "MIT" ]
null
null
null
ModelFinder/model_finder.py
Sparab16/CreditCardPrediction
70c26664d747e0cfcae5256609097ab2e9434b67
[ "MIT" ]
null
null
null
ModelFinder/model_finder.py
Sparab16/CreditCardPrediction
70c26664d747e0cfcae5256609097ab2e9434b67
[ "MIT" ]
null
null
null
from sklearn.model_selection import GridSearchCV from sklearn.metrics import roc_auc_score, accuracy_score from sklearn.naive_bayes import GaussianNB from xgboost import XGBClassifier import os from Logger import AppLogger class ModelFinder: ''' This class shall be used to find the model with best acc...
45.258065
142
0.609123
6,784
0.967071
0
0
0
0
0
0
2,831
0.403564
d5179e30e12ae21f90a025392fe8828ab8591a1d
2,547
py
Python
migrations/versions/8778f6b803ae_.py
anngle/school
5ca6f784a78b08fa9b43c8429de48ebffc4d26ca
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/8778f6b803ae_.py
anngle/school
5ca6f784a78b08fa9b43c8429de48ebffc4d26ca
[ "BSD-3-Clause" ]
6
2020-06-05T18:11:49.000Z
2022-03-11T23:20:50.000Z
migrations/versions/8778f6b803ae_.py
anaf007/school
5ca6f784a78b08fa9b43c8429de48ebffc4d26ca
[ "BSD-3-Clause" ]
1
2019-05-30T06:00:30.000Z
2019-05-30T06:00:30.000Z
"""empty message Revision ID: 8778f6b803ae Revises: 309f6ca2a8ec Create Date: 2018-03-04 18:11:47.289975 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = '8778f6b803ae' down_revision = '309f6ca2a8ec' branch_labels = None depe...
48.056604
125
0.711818
0
0
0
0
0
0
0
0
1,145
0.449548
d517c4f09ba04347c87fe273db685ea053682476
7,248
py
Python
barbican-8.0.0/barbican/plugin/util/translations.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
barbican-8.0.0/barbican/plugin/util/translations.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
barbican-8.0.0/barbican/plugin/util/translations.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# 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 writing, software # distributed under the...
35.356098
77
0.717991
0
0
0
0
0
0
0
0
2,145
0.295944
d5188b939478073039307a3d9b9b3d9126626f3a
35,539
py
Python
mars/worker/execution.py
immortalFrogJiang/mars
93c786e38bdc0fbb483282d7792379db0345a3b6
[ "Apache-2.0" ]
1
2019-02-01T07:41:48.000Z
2019-02-01T07:41:48.000Z
mars/worker/execution.py
immortalFrogJiang/mars
93c786e38bdc0fbb483282d7792379db0345a3b6
[ "Apache-2.0" ]
null
null
null
mars/worker/execution.py
immortalFrogJiang/mars
93c786e38bdc0fbb483282d7792379db0345a3b6
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2018 Alibaba Group Holding 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 a...
43.552696
117
0.63533
34,333
0.966065
0
0
22,733
0.639663
0
0
6,698
0.188469
d51a3e8b7e251050ecd8235bb18dc9a527dfd0c7
5,574
py
Python
models/text2text/encoder.py
aasseman/mi-prometheus
c655c88cc6aec4d0724c19ea95209f1c2dd6770d
[ "Apache-2.0" ]
null
null
null
models/text2text/encoder.py
aasseman/mi-prometheus
c655c88cc6aec4d0724c19ea95209f1c2dd6770d
[ "Apache-2.0" ]
null
null
null
models/text2text/encoder.py
aasseman/mi-prometheus
c655c88cc6aec4d0724c19ea95209f1c2dd6770d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # The MIT License (MIT) # # Copyright (c) 2017 Sean Robertson # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including...
41.909774
182
0.685863
3,382
0.606746
0
0
0
0
0
0
4,176
0.749193
d51acf3bcb18e8d4e1684a55450fc3e9b95ebb72
6,200
py
Python
TSSystem/apps/edu_reform/models.py
LittleBai0606/TeachingSecretarySystem
c9067b83f8e1edaf06974db73b7cc47a5b49e0d4
[ "MIT" ]
null
null
null
TSSystem/apps/edu_reform/models.py
LittleBai0606/TeachingSecretarySystem
c9067b83f8e1edaf06974db73b7cc47a5b49e0d4
[ "MIT" ]
5
2020-06-05T18:13:28.000Z
2022-02-11T03:39:14.000Z
TSSystem/apps/edu_reform/models.py
WhiteBrownBottle/TeachingSecretarySystem
c9067b83f8e1edaf06974db73b7cc47a5b49e0d4
[ "MIT" ]
null
null
null
from django.db import models import datetime, time import django.utils.timezone as timezone from student.models import Student from teacher.models import Teacher from utils.customfilefield.storage import FileStorage # Create your models here. class EduProject(models.Model): #教改/教研/教材项目数据模型 TYPE_CHOIC...
43.661972
143
0.669677
6,684
0.960621
0
0
0
0
0
0
1,538
0.221041
d51b548c1f46b703f923d309ace739d11c94c086
2,374
py
Python
iexfinance/tests/stocks/test_prices.py
jto-d/iexfinance
8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4
[ "Apache-2.0" ]
653
2018-01-02T21:03:49.000Z
2022-03-24T06:37:10.000Z
iexfinance/tests/stocks/test_prices.py
jto-d/iexfinance
8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4
[ "Apache-2.0" ]
219
2017-12-09T21:44:43.000Z
2022-03-23T20:21:46.000Z
iexfinance/tests/stocks/test_prices.py
jto-d/iexfinance
8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4
[ "Apache-2.0" ]
155
2018-02-07T17:08:18.000Z
2022-03-13T23:36:57.000Z
import pandas as pd import pytest from iexfinance.stocks import Stock from iexfinance.utils.exceptions import IEXQueryError class TestStockPrices(object): def setup_class(self): self.a = Stock("AAPL") self.b = Stock(["AAPL", "TSLA"]) self.c = Stock("SVXY") self.d = Stock(["AAPL", ...
25.255319
53
0.642797
2,246
0.946083
0
0
0
0
0
0
77
0.032435
d51cb89eb6deb0955d26dd78296fd7fa6bebba2b
3,855
py
Python
gatlin/infra/excel.py
kokomal/GATLIN
20102e6d926a3a805d1cb30c8d6ec45b492ac507
[ "BSD-3-Clause" ]
1
2019-08-05T13:01:04.000Z
2019-08-05T13:01:04.000Z
gatlin/infra/excel.py
kokomal/GATLIN
20102e6d926a3a805d1cb30c8d6ec45b492ac507
[ "BSD-3-Clause" ]
null
null
null
gatlin/infra/excel.py
kokomal/GATLIN
20102e6d926a3a805d1cb30c8d6ec45b492ac507
[ "BSD-3-Clause" ]
null
null
null
# coding = utf-8 # -*- coding: utf-8 -*- import json from openpyxl import load_workbook # 读取某一个region,从此之下读取两列拼装成map def read_region_below_map(fn, sheet_name, region_name): mp = {} wb = load_workbook(fn) ws = wb[sheet_name] region = ws[region_name] next_row = region.row + 1 column = region.co...
32.669492
89
0.629572
1,413
0.354402
0
0
0
0
0
0
412
0.103336
d51db870e2b3ba60a86f83ec6d2144b9f9d6cde6
42,562
py
Python
Assets/Python/Screens/CvForeignAdvisor.py
Imperator-Knoedel/Sunset
19c95f4844586b96341f3474b58e0dacaae485b9
[ "MIT" ]
1
2019-08-05T18:36:14.000Z
2019-08-05T18:36:14.000Z
Assets/Python/Screens/CvForeignAdvisor.py
Imperator-Knoedel/Sunset
19c95f4844586b96341f3474b58e0dacaae485b9
[ "MIT" ]
null
null
null
Assets/Python/Screens/CvForeignAdvisor.py
Imperator-Knoedel/Sunset
19c95f4844586b96341f3474b58e0dacaae485b9
[ "MIT" ]
null
null
null
## Sid Meier's Civilization 4 ## Copyright Firaxis Games 2005 from CvPythonExtensions import * import CvUtil import ScreenInput import CvScreenEnums import math # globals gc = CyGlobalContext() ArtFileMgr = CyArtFileMgr() localText = CyTranslator() # this class is shared by both the resource and technology foreign ad...
56.298942
378
0.728725
42,098
0.989098
0
0
0
0
0
0
6,727
0.158052
d51e26d1b13d097b4892231545aad4dd6145adfc
6,300
py
Python
Examples/ApiExamples/ex_hyphenation.py
alex-dudin/Aspose.Words-for-Python-via-.NET
02b257df8da9892fcce671c473c2ef27b68b5087
[ "MIT" ]
3
2021-12-04T22:17:28.000Z
2022-02-22T03:30:01.000Z
Examples/ApiExamples/ex_hyphenation.py
alex-dudin/Aspose.Words-for-Python-via-.NET
02b257df8da9892fcce671c473c2ef27b68b5087
[ "MIT" ]
4
2021-11-26T10:01:06.000Z
2021-12-14T15:01:11.000Z
Examples/ApiExamples/ex_hyphenation.py
alex-dudin/Aspose.Words-for-Python-via-.NET
02b257df8da9892fcce671c473c2ef27b68b5087
[ "MIT" ]
2
2021-10-20T18:06:22.000Z
2021-10-29T20:59:18.000Z
# Copyright (c) 2001-2022 Aspose Pty Ltd. All Rights Reserved. # # This file is part of Aspose.Words. The source code in this file # is only intended as a supplement to the documentation, and is provided # "as is", without warranty of any kind, either expressed or implied. import aspose.words as aw from api_example_b...
47.727273
125
0.685714
5,929
0.941111
0
0
0
0
0
0
5,033
0.798889
d51f3ce171cefeb4ce9612bb83acf0f40ea9f6ff
3,036
py
Python
PreprocessData/all_class_files/PriceSpecification.py
wkid-neu/Schema
4854720a15894dd814691a55e03329ecbbb6f558
[ "MIT" ]
3
2021-11-06T12:29:05.000Z
2022-03-22T12:48:55.000Z
PreprocessData/all_class_files/PriceSpecification.py
DylanNEU/Schema
4854720a15894dd814691a55e03329ecbbb6f558
[ "MIT" ]
null
null
null
PreprocessData/all_class_files/PriceSpecification.py
DylanNEU/Schema
4854720a15894dd814691a55e03329ecbbb6f558
[ "MIT" ]
1
2021-11-06T12:29:12.000Z
2021-11-06T12:29:12.000Z
from PreprocessData.all_class_files.StructuredValue import StructuredValue import global_data class PriceSpecification(StructuredValue): def __init__(self, additionalType=None, alternateName=None, description=None, disambiguatingDescription=None, identifier=None, image=None, mainEntityOfPage=None, name=None,...
37.02439
403
0.704216
2,942
0.966491
0
0
0
0
0
0
34
0.01117
d52046c063e104480fca192e02774204fb6af2fe
43,682
py
Python
sim/python/theory_control.py
wpisailbot/boat
7c053d67422d21af95e350c4c9d31425e5760df8
[ "Apache-2.0" ]
4
2017-04-12T19:33:17.000Z
2019-01-29T07:44:52.000Z
sim/python/theory_control.py
wpisailbot/boat
7c053d67422d21af95e350c4c9d31425e5760df8
[ "Apache-2.0" ]
17
2017-12-05T01:43:14.000Z
2019-02-01T00:48:11.000Z
sim/python/theory_control.py
wpisailbot/boat
7c053d67422d21af95e350c4c9d31425e5760df8
[ "Apache-2.0" ]
2
2017-02-19T22:40:12.000Z
2018-09-07T11:14:24.000Z
#!/usr/bin/python3 import numpy as np from numpy import matlib from numpy import random import sys import copy import scipy.signal import scipy.stats.stats from matplotlib import pyplot as plt import unittest def Norm(t): while t > np.pi: t -= 2 * np.pi while t < -np.pi: t += 2 * np.pi return t def Sign...
34.395276
117
0.596836
28,142
0.644247
0
0
0
0
0
0
10,753
0.246165
d5215f9109908924a1a6af979e4f67e4558759f2
671
py
Python
leetcode/1018_binary_prefix_divisible_by_5/1018_binary_prefix_divisible_by_5.py
ryangillard/misc
d1f9919400636e6b988fa933493b94829a73331e
[ "Apache-2.0" ]
null
null
null
leetcode/1018_binary_prefix_divisible_by_5/1018_binary_prefix_divisible_by_5.py
ryangillard/misc
d1f9919400636e6b988fa933493b94829a73331e
[ "Apache-2.0" ]
null
null
null
leetcode/1018_binary_prefix_divisible_by_5/1018_binary_prefix_divisible_by_5.py
ryangillard/misc
d1f9919400636e6b988fa933493b94829a73331e
[ "Apache-2.0" ]
null
null
null
class Solution(object): def prefixesDivBy5(self, A): """ :type A: List[int] :rtype: List[bool] """ return self.prefixMod(A) def forLoop(self, A): A = "".join([str(x) for x in A]) ret = [False] * len(A) for i in range(len(A)): if int(A[...
24.851852
66
0.432191
671
1
0
0
0
0
0
0
73
0.108793
d521ab84f8b14d9b5f58fe4cba2c88a22ff8f98f
1,105
py
Python
evechem_api/security/definitions.py
mylesgallagher/evechemapi
d096a2d13b84c3ac15fedf9795177c619f96a36d
[ "MIT" ]
null
null
null
evechem_api/security/definitions.py
mylesgallagher/evechemapi
d096a2d13b84c3ac15fedf9795177c619f96a36d
[ "MIT" ]
null
null
null
evechem_api/security/definitions.py
mylesgallagher/evechemapi
d096a2d13b84c3ac15fedf9795177c619f96a36d
[ "MIT" ]
null
null
null
from .base import BaseKey, BaseKeyControl from .exceptions import KeyNotFound from evechem_api.maps import application_map from evechem_api.models import Error class APIKey(BaseKey): valid_permissions = [ 'master', 'director', 'manager', 'auditor', 'customer'] def __init__(self, value, operation_id, perm...
24.555556
63
0.730317
940
0.850679
0
0
437
0.395475
0
0
127
0.114932
d522254b8c4c695805f12c63573f2dacd4d1ded5
293
py
Python
notebooks/_solutions/case2_biodiversity_analysis16.py
rprops/Python_DS-WS
b2fc449a74be0c82863e5fcf1ddbe7d64976d530
[ "BSD-3-Clause" ]
65
2017-03-21T09:15:40.000Z
2022-02-01T23:43:08.000Z
notebooks/_solutions/case2_biodiversity_analysis16.py
rprops/Python_DS-WS
b2fc449a74be0c82863e5fcf1ddbe7d64976d530
[ "BSD-3-Clause" ]
100
2016-12-15T03:44:06.000Z
2022-03-07T08:14:07.000Z
notebooks/_solutions/case2_biodiversity_analysis16.py
rprops/Python_DS-WS
b2fc449a74be0c82863e5fcf1ddbe7d64976d530
[ "BSD-3-Clause" ]
52
2016-12-19T07:48:52.000Z
2022-02-19T17:53:48.000Z
heatmap_prep_plotnine = survey_data.groupby([survey_data['eventDate'].dt.year, survey_data['eventDate'].dt.month]).size() heatmap_prep_plotnine.index.names = ["year", "month"] heatmap_prep_plotnine = heatmap_prep_plotnine.reset_index(name='count')
73.25
87
0.675768
0
0
0
0
0
0
0
0
42
0.143345
d523f8e13f2c1d72d705469d378a9e0c260a200c
248
py
Python
SistemaWebAuditorias/Apps/Colaborativo/urls.py
diegoquirozramirez/Sistema-Web-Auditorias
d070a7c85a9dad1740dea5bc397fd3cfb3735ba8
[ "MIT" ]
null
null
null
SistemaWebAuditorias/Apps/Colaborativo/urls.py
diegoquirozramirez/Sistema-Web-Auditorias
d070a7c85a9dad1740dea5bc397fd3cfb3735ba8
[ "MIT" ]
null
null
null
SistemaWebAuditorias/Apps/Colaborativo/urls.py
diegoquirozramirez/Sistema-Web-Auditorias
d070a7c85a9dad1740dea5bc397fd3cfb3735ba8
[ "MIT" ]
null
null
null
from django.urls import path from Apps.Colaborativo import views app_name = 'Colaborativo' urlpatterns = [ path('', views.goEspacioColaborativo, name="colaboracion"), path('update/<int:ida>', views.updateInfoAuditoria, name="update"), ]
24.8
70
0.733871
0
0
0
0
0
0
0
0
56
0.225806
d524800f52609686d464ccbebfdd2ca500a958bf
3,200
py
Python
App/models.py
steve-njuguna-k/Django-Instragram-Clone
0947849c415ab4b1729998d69d2c27f5a0a35c57
[ "MIT" ]
2
2022-02-08T08:05:17.000Z
2022-02-15T03:03:24.000Z
App/models.py
steve-njuguna-k/Django-Instagram-Clone
0947849c415ab4b1729998d69d2c27f5a0a35c57
[ "MIT" ]
null
null
null
App/models.py
steve-njuguna-k/Django-Instagram-Clone
0947849c415ab4b1729998d69d2c27f5a0a35c57
[ "MIT" ]
null
null
null
from pyexpat import model from django.db import models from django.contrib.auth.models import User from cloudinary.models import CloudinaryField # Create your models here. class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE, verbose_name='User') bio = models.TextField(max_le...
36.363636
122
0.711563
3,019
0.943438
0
0
223
0.069688
0
0
279
0.087188
d5266761905d745a4881f9899734f3b37cdf85bc
1,261
py
Python
AndroidPythonScripting/andrdPostalCode.py
CamDavidsonPilon/Playground
874a883dae34452db0cc51400a6e06a307b8646d
[ "MIT" ]
2
2017-12-13T18:48:08.000Z
2018-12-06T10:12:55.000Z
AndroidPythonScripting/andrdPostalCode.py
CamDavidsonPilon/Playground
874a883dae34452db0cc51400a6e06a307b8646d
[ "MIT" ]
null
null
null
AndroidPythonScripting/andrdPostalCode.py
CamDavidsonPilon/Playground
874a883dae34452db0cc51400a6e06a307b8646d
[ "MIT" ]
1
2018-11-08T13:30:19.000Z
2018-11-08T13:30:19.000Z
# script to record my location. from time import sleep import csv import android i=0 documentCount = 0 droid = android.Android() while 1: try: sleep(5) droid.startLocating(30,5) sleep(5) location = droid.readLocation().result droid.stopLocating() if hasatt...
27.413043
126
0.538462
0
0
0
0
0
0
0
0
196
0.155432
d526c2e9d5952d53cc0f0d0f50944fa61a1fa5cc
2,123
py
Python
setup.py
hartym/django-includes
95b2454c182c149963ca751c1b32aa1bc462f4cd
[ "Apache-2.0" ]
2
2017-03-14T10:19:28.000Z
2018-03-28T20:54:22.000Z
setup.py
hartym/django-includes
95b2454c182c149963ca751c1b32aa1bc462f4cd
[ "Apache-2.0" ]
8
2020-01-02T08:01:20.000Z
2021-09-22T17:43:29.000Z
setup.py
hartym/django-includes
95b2454c182c149963ca751c1b32aa1bc462f4cd
[ "Apache-2.0" ]
2
2016-08-06T15:48:51.000Z
2020-01-27T09:34:22.000Z
# Generated by Medikit 0.7.5 on 2020-05-19. # All changes will be overriden. # Edit Projectfile and run “make update” (or “medikit update”) to regenerate. from codecs import open from os import path from setuptools import find_packages, setup here = path.abspath(path.dirname(__file__)) # Py3 compatibility hacks, bo...
30.328571
110
0.663212
0
0
0
0
0
0
0
0
905
0.424683
d526df5a2127ccb12862e8d089efd56dff94d881
3,947
py
Python
backup.py
alidevjimmy/backup.py
863b9b06118891f880617f3f27c9ee8ece5e41b4
[ "MIT" ]
null
null
null
backup.py
alidevjimmy/backup.py
863b9b06118891f880617f3f27c9ee8ece5e41b4
[ "MIT" ]
null
null
null
backup.py
alidevjimmy/backup.py
863b9b06118891f880617f3f27c9ee8ece5e41b4
[ "MIT" ]
null
null
null
import sys import tkinter as tk from tkinter import messagebox as tkMessageBox import re import subprocess import datetime import getpass import tkinter.simpledialog import os # location of configuration file # this file in this version nees to command # 1- COMMAND -> command that run for make backup -> use rsync re...
29.901515
91
0.613884
0
0
0
0
0
0
0
0
1,413
0.357993
d5285bf4cb0c251133aab700e3e6910bf4b734e8
3,061
py
Python
mlctl/plugins/sagemaker/SagemakerHosting.py
LaudateCorpus1/mlctl
0a42035ce9c4999e1b3565ba41fe69d6d3552273
[ "Apache-2.0" ]
24
2021-06-25T04:31:10.000Z
2022-01-12T12:53:42.000Z
mlctl/plugins/sagemaker/SagemakerHosting.py
srivathsanvc/mlctl
0a42035ce9c4999e1b3565ba41fe69d6d3552273
[ "Apache-2.0" ]
14
2021-06-25T04:46:43.000Z
2021-08-19T00:01:42.000Z
mlctl/plugins/sagemaker/SagemakerHosting.py
LaudateCorpus1/mlctl
0a42035ce9c4999e1b3565ba41fe69d6d3552273
[ "Apache-2.0" ]
8
2021-07-16T18:14:17.000Z
2022-02-24T08:05:39.000Z
from mlctl.interfaces.Hosting import Hosting from mlctl.plugins.utils import parse_config import boto3 class SagemakerHosting(Hosting): def __init__(self, profile=None): if profile: boto3.setup_default_session(profile_name=profile) self._client = boto3.client("sagemaker") def crea...
43.112676
98
0.499837
2,955
0.965371
0
0
0
0
0
0
309
0.100947
d5285c58efb554dcd2bf8ff1ee7abffb6aec165d
1,836
py
Python
tests/test_helpers.py
pablocael/handwritten-number-generator
931e61469d610c48c7a36d316845026926d72eb2
[ "MIT" ]
null
null
null
tests/test_helpers.py
pablocael/handwritten-number-generator
931e61469d610c48c7a36d316845026926d72eb2
[ "MIT" ]
null
null
null
tests/test_helpers.py
pablocael/handwritten-number-generator
931e61469d610c48c7a36d316845026926d72eb2
[ "MIT" ]
null
null
null
import numpy as np from number_generator import helpers def test_calculate_binary_image_contents_bbox(): # create an empty image empty_image = np.zeros((28, 28), dtype=np.uint8) bbox = helpers.calculate_binary_image_contents_bbox(empty_image) # bbox of empty image (background only) should be all zero...
32.785714
73
0.712418
0
0
0
0
0
0
0
0
626
0.340959
d528cdb7358fa86ca6d319001569d76a35a9c560
360
py
Python
products/urls.py
wmalott23/Products_app
691e156ed6f2607a257b18bc988c789013505ee1
[ "MIT" ]
null
null
null
products/urls.py
wmalott23/Products_app
691e156ed6f2607a257b18bc988c789013505ee1
[ "MIT" ]
null
null
null
products/urls.py
wmalott23/Products_app
691e156ed6f2607a257b18bc988c789013505ee1
[ "MIT" ]
null
null
null
from django.urls import path from . import views from rest_framework.urlpatterns import format_suffix_patterns urlpatterns = [ # path('', views.products_list), # path('<int:pk>/', views.product_detail), path('', views.ProductList.as_view()), path('<int:pk>/', views.ProductDetail.as_view()) ] urlpatter...
30
61
0.727778
0
0
0
0
0
0
0
0
87
0.241667
d52947496bda3409d71bc7bd9fc3a5aeeb797a0a
202
py
Python
locomotive/models/__init__.py
maxmouchet/sncf-cli
841a6a941630a3f460d566f50118881fff542034
[ "MIT" ]
22
2020-05-20T23:56:26.000Z
2022-01-29T01:13:29.000Z
locomotive/models/__init__.py
maxmouchet/sncf-cli
841a6a941630a3f460d566f50118881fff542034
[ "MIT" ]
8
2019-06-10T08:27:38.000Z
2020-01-30T14:12:10.000Z
locomotive/models/__init__.py
maxmouchet/sncf-cli
841a6a941630a3f460d566f50118881fff542034
[ "MIT" ]
null
null
null
""" Models shared between locomotive modules. """ from .board import BoardEntry from .journey import Journey, Proposal, Segment, Transport from .passenger import Passenger from .station import Station
22.444444
58
0.79703
0
0
0
0
0
0
0
0
49
0.242574
d5296fe11fece1d8f3fbfcbc77a7811a8729397b
1,538
py
Python
uva/452.py
btjanaka/competitive-programming-solutions
e3df47c18451802b8521ebe61ca71ee348e5ced7
[ "MIT" ]
3
2020-06-25T21:04:02.000Z
2021-05-12T03:33:19.000Z
uva/452.py
btjanaka/competitive-programming-solutions
e3df47c18451802b8521ebe61ca71ee348e5ced7
[ "MIT" ]
null
null
null
uva/452.py
btjanaka/competitive-programming-solutions
e3df47c18451802b8521ebe61ca71ee348e5ced7
[ "MIT" ]
1
2020-06-25T21:04:06.000Z
2020-06-25T21:04:06.000Z
# Author: btjanaka (Bryon Tjanaka) # Problem: (UVa) 452 # Title: Project Scheduling # Link: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=0&problem=393 # Idea: Shortest path algorithm in a DAG - find topological ordering then go # through and relax all edges - O(E) tim...
24.806452
118
0.535111
0
0
0
0
0
0
0
0
404
0.262679
d52d64a7724649d18a9c2af3401f63e97a9893fb
1,186
py
Python
main/courses/forums/forms.py
Andymic/class2go
45a457e89790cb83942d24ada816357dc91b8fe4
[ "Apache-2.0" ]
1
2015-11-05T20:49:11.000Z
2015-11-05T20:49:11.000Z
main/courses/forums/forms.py
Andymic/class2go
45a457e89790cb83942d24ada816357dc91b8fe4
[ "Apache-2.0" ]
null
null
null
main/courses/forums/forms.py
Andymic/class2go
45a457e89790cb83942d24ada816357dc91b8fe4
[ "Apache-2.0" ]
null
null
null
from django import forms class PiazzaAuthForm(forms.Form): # User Info user_id = forms.CharField() lis_person_contact_email_primary = forms.CharField() #lis_person_name_given = forms.CharField() #lis_person_name_family = forms.CharField() lis_person_name_full = forms.CharField() lis_person_...
31.210526
58
0.726813
1,158
0.976391
0
0
0
0
0
0
130
0.109612
d52e8f311e133d5943a854b889a728f1890959c9
6,563
py
Python
model.py
yucicheung/AdaptiveReconNet
953ad374150cbd488c468cc7c7d35a7409f8e92a
[ "MIT" ]
6
2018-10-08T00:31:47.000Z
2020-10-21T11:30:52.000Z
model.py
yucicheung/AdaptiveReconNet
953ad374150cbd488c468cc7c7d35a7409f8e92a
[ "MIT" ]
1
2019-01-18T10:32:41.000Z
2019-02-18T07:28:47.000Z
model.py
yucicheung/AdaptiveReconNet
953ad374150cbd488c468cc7c7d35a7409f8e92a
[ "MIT" ]
4
2018-10-08T00:31:48.000Z
2021-03-24T00:54:06.000Z
from utils import ( read_data, input_setup, imsave, merge ) import time import os import numpy as np import tensorflow as tf from math import ceil class RECONNET(object): def __init__(self, sess, image_size=33, label_size=33, ...
37.936416
127
0.607039
6,387
0.973183
0
0
0
0
0
0
614
0.093555
d52fa52264faff6b5499de53b2e218972469ccdc
84
py
Python
monitor/test/__init__.py
ReCodEx/monitor
f461da684783888894c571e0bd08eaf6a948e0c5
[ "MIT" ]
4
2017-09-28T09:30:24.000Z
2017-12-10T19:45:51.000Z
monitor/test/__init__.py
ReCodEx/monitor
f461da684783888894c571e0bd08eaf6a948e0c5
[ "MIT" ]
null
null
null
monitor/test/__init__.py
ReCodEx/monitor
f461da684783888894c571e0bd08eaf6a948e0c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 __all__ = ['test_ClientConnections', 'test_websock_server']
21
59
0.761905
0
0
0
0
0
0
0
0
67
0.797619
d53073e705435fd593bab86acb36702d868262ae
157
py
Python
expenseReimbursementProject1/exceptions/value_type_error.py
Basdanso/reimbursementApi
e0e1ef9b1198421884d21ac014fa85767b4f62e2
[ "MIT" ]
null
null
null
expenseReimbursementProject1/exceptions/value_type_error.py
Basdanso/reimbursementApi
e0e1ef9b1198421884d21ac014fa85767b4f62e2
[ "MIT" ]
null
null
null
expenseReimbursementProject1/exceptions/value_type_error.py
Basdanso/reimbursementApi
e0e1ef9b1198421884d21ac014fa85767b4f62e2
[ "MIT" ]
null
null
null
class ValueTypeError(Exception): description: str = 'Occurs when type does not match' def __str__(self): return "Value type does not match"
26.166667
56
0.694268
156
0.993631
0
0
0
0
0
0
60
0.382166
d5330ff256d87e5e4d011bc3c2a06f779221895e
71
py
Python
tests/functional/__init__.py
bianhaoyi/necache
aaaee900c0cf57bfc477fb790858709c7f2d69fe
[ "BSD-3-Clause" ]
351
2015-01-06T09:49:19.000Z
2022-03-30T12:46:23.000Z
tests/functional/__init__.py
bianhaoyi/necache
aaaee900c0cf57bfc477fb790858709c7f2d69fe
[ "BSD-3-Clause" ]
10
2015-11-19T21:10:18.000Z
2021-08-16T14:29:01.000Z
tests/functional/__init__.py
LaudateCorpus1/twemcache
8cfc4ca5e76ed936bd3786c8cc43ed47e7778c08
[ "BSD-3-Clause" ]
73
2015-01-07T07:06:46.000Z
2022-03-21T00:59:23.000Z
__all__ = ['basic', 'expiry', 'stats', 'advanced', 'startup', '64bit']
35.5
70
0.605634
0
0
0
0
0
0
0
0
48
0.676056
d534130c3adddf6058dcb013d4b80cff8777ad9e
2,024
py
Python
laygo2/interface/bag.py
dwkim565/laygo2
fea1263638fa5641ad27f2000d7562cdf910c67f
[ "BSD-3-Clause" ]
null
null
null
laygo2/interface/bag.py
dwkim565/laygo2
fea1263638fa5641ad27f2000d7562cdf910c67f
[ "BSD-3-Clause" ]
null
null
null
laygo2/interface/bag.py
dwkim565/laygo2
fea1263638fa5641ad27f2000d7562cdf910c67f
[ "BSD-3-Clause" ]
1
2021-12-31T08:21:43.000Z
2021-12-31T08:21:43.000Z
#!/usr/bin/python ######################################################################################################################## # # Copyright (c) 2014, Regents of the University of California # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permi...
53.263158
120
0.685771
0
0
0
0
0
0
0
0
1,679
0.829545
d534c630f8ec7158aa367faf059fd230fe16ae61
1,035
py
Python
CamJam EduKit 2 - GPIO Zero/Code/5-PIR.py
CamJam-EduKit/EduKit2
e7920420fa6b46233304ae57d8eb39255ade3e1e
[ "MIT" ]
45
2016-02-03T21:59:28.000Z
2021-11-14T02:24:02.000Z
CamJam EduKit 2 - GPIO Zero/Code/5-PIR.py
CamJam-EduKit/EduKit2
e7920420fa6b46233304ae57d8eb39255ade3e1e
[ "MIT" ]
7
2017-05-24T11:44:31.000Z
2022-03-13T11:56:08.000Z
CamJam EduKit 2 - GPIO Zero/Code/5-PIR.py
CamJam-EduKit/EduKit2
e7920420fa6b46233304ae57d8eb39255ade3e1e
[ "MIT" ]
29
2016-02-13T13:37:54.000Z
2021-04-28T16:43:49.000Z
# CamJam EduKit 2 - Sensors (GPIO Zero) # Worksheet 5 - Movement # Import Python header files from gpiozero import MotionSensor import time # Set a variable to hold the GPIO Pin identity pir = MotionSensor(17) print("Waiting for PIR to settle") pir.wait_for_no_motion() print("PIR Module Test (CTRL-C to exit)") # V...
25.243902
61
0.651208
0
0
0
0
0
0
0
0
458
0.442512
d534d4c11072c8911ea392648daa8cbe0a59680b
5,014
py
Python
match.py
skysea04/Scard
11c30084398860bc31326c56424d6794806245eb
[ "Apache-2.0" ]
5
2021-08-05T16:06:39.000Z
2021-11-20T04:52:02.000Z
match.py
skysea04/Scard
11c30084398860bc31326c56424d6794806245eb
[ "Apache-2.0" ]
null
null
null
match.py
skysea04/Scard
11c30084398860bc31326c56424d6794806245eb
[ "Apache-2.0" ]
5
2021-07-29T03:05:26.000Z
2022-03-08T14:02:34.000Z
import sys, random, math, time, json from datetime import date, timedelta import threading from models.model import db, User, Scard, cache import mysql.connector from app import app, mysql_host, mysql_user, mysql_password, mysql_database db.__init__(app) ''' 測試區 ''' start_time = time.time() today = date.today() yest...
30.573171
182
0.6071
0
0
0
0
0
0
0
0
1,642
0.296283
d53515f8808fbd2654fdca8c8f013d1618ebdb2b
1,067
py
Python
setup.py
clementsw/interferometer
5fbf74e5aa011d381c112c0adbc9fb0d1144d331
[ "MIT" ]
6
2021-07-01T19:53:27.000Z
2022-03-24T12:55:09.000Z
setup.py
clementsw/interferometer
5fbf74e5aa011d381c112c0adbc9fb0d1144d331
[ "MIT" ]
1
2021-08-08T03:39:38.000Z
2021-08-08T03:39:38.000Z
setup.py
clementsw/interferometer
5fbf74e5aa011d381c112c0adbc9fb0d1144d331
[ "MIT" ]
1
2022-03-09T16:57:40.000Z
2022-03-09T16:57:40.000Z
# -*- coding: utf-8 -*- """ Created on Fri Mar 23 16:16:20 2018 @author: clementsw """ from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='interferometer', version='0.1', description='Algorithms for universal interferometers', long_descr...
29.638889
139
0.627929
0
0
0
0
0
0
0
0
586
0.549203
d5372720a1be5cab4ade8dc5c07291e11eb0a610
825
py
Python
github_releaser/cmd/asset.py
dfurtado/github-releaser
6b4fc35d1abc6ce3d2e5ab1441d3df0ad482bf65
[ "MIT" ]
2
2020-07-03T09:44:08.000Z
2020-07-03T13:10:48.000Z
github_releaser/cmd/asset.py
dfurtado/github-releaser
6b4fc35d1abc6ce3d2e5ab1441d3df0ad482bf65
[ "MIT" ]
2
2020-07-21T10:50:17.000Z
2020-08-03T11:07:22.000Z
github_releaser/cmd/asset.py
dfurtado/github-releaser
6b4fc35d1abc6ce3d2e5ab1441d3df0ad482bf65
[ "MIT" ]
null
null
null
import click import os from github_releaser import GithubReleaser @click.command(name="upload-assets", help="Upload assets to a existent release") @click.option("--account", "--a", required=True, help="Account") @click.option("--repository", "--r", required=True, help="Repository") @click.option("--token", help="Git...
34.375
90
0.700606
0
0
0
0
755
0.915152
0
0
271
0.328485
d53971f07f775a3aa711042218ce3a65fcaf552c
2,355
py
Python
decisionTrees/decisionTree/partii/Gain.py
evamy/mlBucket
15fb9687a4c853edeaace23e752de069214f3cf3
[ "MIT" ]
null
null
null
decisionTrees/decisionTree/partii/Gain.py
evamy/mlBucket
15fb9687a4c853edeaace23e752de069214f3cf3
[ "MIT" ]
null
null
null
decisionTrees/decisionTree/partii/Gain.py
evamy/mlBucket
15fb9687a4c853edeaace23e752de069214f3cf3
[ "MIT" ]
null
null
null
## # Gain Calculation # for implementing decision trees # # @author antriksh # Version 1: 09/16/2017 from Dataset import Dataset import pandas as pd import numpy as np import random class Gain(): def __init__(self): pass def entropy(self, dataset): """ Find the degree of rando...
23.787879
77
0.539278
2,167
0.92017
0
0
0
0
0
0
515
0.218684
d53e4eb300c1cc0390929d5bc39197d9c1362656
667
py
Python
tests/getnet/services/token/test_card_number.py
rafagonc/getnet-py
d2a5278b497408b5245d5d0fecd2e424f4ddb0d5
[ "MIT" ]
null
null
null
tests/getnet/services/token/test_card_number.py
rafagonc/getnet-py
d2a5278b497408b5245d5d0fecd2e424f4ddb0d5
[ "MIT" ]
null
null
null
tests/getnet/services/token/test_card_number.py
rafagonc/getnet-py
d2a5278b497408b5245d5d0fecd2e424f4ddb0d5
[ "MIT" ]
null
null
null
import unittest from getnet.services.token import CardNumber class CardNumberTest(unittest.TestCase): def testInvalidCardNumber(self): with self.assertRaises(AttributeError): CardNumber("123", "123") def testInvalidCustomerId(self): with self.assertRaises(AttributeError): ...
26.68
84
0.661169
553
0.829085
0
0
0
0
0
0
141
0.211394
d53f47f532735f17bfb2f4eb7d8d52537f38dd98
935
py
Python
inference_converter/utils/argparser.py
mzeynali/dl-model-converter
3adff16661254f29a4e9b2d76402ba9b064d3d97
[ "Apache-2.0" ]
null
null
null
inference_converter/utils/argparser.py
mzeynali/dl-model-converter
3adff16661254f29a4e9b2d76402ba9b064d3d97
[ "Apache-2.0" ]
null
null
null
inference_converter/utils/argparser.py
mzeynali/dl-model-converter
3adff16661254f29a4e9b2d76402ba9b064d3d97
[ "Apache-2.0" ]
null
null
null
import sys import json import argparse import sys def _initialize(): parser = argparse.ArgumentParser( description="General config loader." ) parser.add_argument( "-c", "--config_file", help="Address of the config file." ) return parser def _get_options(parser, arg...
20.777778
52
0.627807
0
0
0
0
0
0
0
0
110
0.117647
d5434871e6b9c2f656f5e120340151b549c7af58
12,703
py
Python
three_wolves/envs/contact_cube_env.py
42jaylonw/rrc_2021_three_wolves
f5b8c1589f14c6b8455f438cbb62ed74e9ad8551
[ "BSD-3-Clause" ]
null
null
null
three_wolves/envs/contact_cube_env.py
42jaylonw/rrc_2021_three_wolves
f5b8c1589f14c6b8455f438cbb62ed74e9ad8551
[ "BSD-3-Clause" ]
null
null
null
three_wolves/envs/contact_cube_env.py
42jaylonw/rrc_2021_three_wolves
f5b8c1589f14c6b8455f438cbb62ed74e9ad8551
[ "BSD-3-Clause" ]
1
2022-01-05T11:40:32.000Z
2022-01-05T11:40:32.000Z
import time import gym import numpy as np import pybullet from trifinger_simulation import TriFingerPlatform, visual_objects from trifinger_simulation.tasks import move_cube_on_trajectory as task from three_wolves.envs.base_cube_env import ActionType, BaseCubeTrajectoryEnv from three_wolves.envs.utilities.env_utils i...
41.64918
121
0.615288
11,603
0.913406
0
0
0
0
0
0
1,537
0.120995
d54427a0aba1c3116e4d85ec6e7cfa958b479d0b
1,220
py
Python
iamheadless_publisher_admin/mixins.py
plain-ie/iamheadless_publisher_admin
03e0406d5d6e40132fb63100f184ce5e90c0ad31
[ "MIT" ]
null
null
null
iamheadless_publisher_admin/mixins.py
plain-ie/iamheadless_publisher_admin
03e0406d5d6e40132fb63100f184ce5e90c0ad31
[ "MIT" ]
null
null
null
iamheadless_publisher_admin/mixins.py
plain-ie/iamheadless_publisher_admin
03e0406d5d6e40132fb63100f184ce5e90c0ad31
[ "MIT" ]
null
null
null
from django.urls import path from . import permissions from . import utils class ItemViewSetPermissionMixin: def has_access(self): permissions.user_can_access_item_type( self.get_request_user(), self.get_project_id(), self.get_item_type() ) class UtilsViewSe...
25.957447
61
0.690984
1,138
0.932787
0
0
0
0
0
0
11
0.009016
d54c508466e035352ddb860546e3c55067122dc2
599
py
Python
setup.py
K0lb3/texgenpack_py
28951dd2eb18c1d84483910eaf29846e7ecdfc33
[ "Zlib" ]
null
null
null
setup.py
K0lb3/texgenpack_py
28951dd2eb18c1d84483910eaf29846e7ecdfc33
[ "Zlib" ]
null
null
null
setup.py
K0lb3/texgenpack_py
28951dd2eb18c1d84483910eaf29846e7ecdfc33
[ "Zlib" ]
null
null
null
import os from setuptools import Extension, setup try: from Cython.Build import cythonize except ImportError: cythonize = None def ALL_C(folder, exclude=[]): return [ '/'.join([folder, f]) for f in os.listdir(folder) if f[-2:] == '.c' and f not in exclude ] extensions = [ ...
17.617647
46
0.559265
0
0
0
0
0
0
0
0
53
0.088481
d54c6db149f6401a788e181c4dc27753be8b1fc7
2,967
py
Python
sdk/python/pulumi_azure_native/web/v20150801/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20150801/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20150801/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from ... import _utilities import typing # Export this package's modules as members: from ._enums import * from .certificate import * from .certificate...
38.038462
80
0.834176
0
0
0
0
0
0
0
0
208
0.070104
d54cca8c5b64ee4952f55cc7414cf0f7c89b54c0
4,976
py
Python
app/main/views.py
Amin1014/blogs-1
7bb51e270385877edb2e0819b503dde512c27b6d
[ "MIT" ]
null
null
null
app/main/views.py
Amin1014/blogs-1
7bb51e270385877edb2e0819b503dde512c27b6d
[ "MIT" ]
null
null
null
app/main/views.py
Amin1014/blogs-1
7bb51e270385877edb2e0819b503dde512c27b6d
[ "MIT" ]
null
null
null
from flask import render_template,redirect,url_for,abort,request,flash from app.main import main from .forms import UpdateProfile,CreateBlog from flask_login import login_required,current_user from ..email import mail_message from app.models import User,Blog,Comment,Follower from ..import db from app.requests import ge...
33.85034
110
0.679863
0
0
0
0
4,520
0.90836
0
0
716
0.143891
d54e7671cd752c4f6814416f2822aa1db9d9be69
380
py
Python
debufftracker/__main__.py
nstatz/PoEDebuffTracker
5129c57e2fa9e43d820dec3eb0f44dddbd49c860
[ "MIT" ]
null
null
null
debufftracker/__main__.py
nstatz/PoEDebuffTracker
5129c57e2fa9e43d820dec3eb0f44dddbd49c860
[ "MIT" ]
null
null
null
debufftracker/__main__.py
nstatz/PoEDebuffTracker
5129c57e2fa9e43d820dec3eb0f44dddbd49c860
[ "MIT" ]
null
null
null
import os from debufftracker import screen_tools current_dir = os.path.dirname( os.path.abspath(__file__)) project_dir = os.path.join(current_dir, os.path.pardir) # set project source folder as working directory os.chdir(project_dir) if __name__ == "__main__": screentracker = screen_tools.ScreenTracker() scr...
29.230769
57
0.784211
0
0
0
0
0
0
0
0
58
0.152632
d54e9e653fd46c7bedfaa8531863df8dbad56a84
279
py
Python
extension_examples/setup.py
malte-storm/Savu
16291e8a22464c50c511af01fbc648860c1236e6
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
extension_examples/setup.py
malte-storm/Savu
16291e8a22464c50c511af01fbc648860c1236e6
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
extension_examples/setup.py
malte-storm/Savu
16291e8a22464c50c511af01fbc648860c1236e6
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext setup( cmdclass={'build_ext':build_ext}, ext_modules=[ Extension("dezing",["dezing.pyx"], libraries=["dezing"]) ] )
23.25
43
0.645161
0
0
0
0
0
0
0
0
39
0.139785
d55090df04a7b080af6bf93b66774f6acfb91c99
1,231
py
Python
bonus_top_interview_questions/315. Count of Smaller Numbers After Self.py
JacopoPan/leetcode-top100-liked-questions
03dc05f087d05805d54b7585ce740338f3128833
[ "MIT" ]
null
null
null
bonus_top_interview_questions/315. Count of Smaller Numbers After Self.py
JacopoPan/leetcode-top100-liked-questions
03dc05f087d05805d54b7585ce740338f3128833
[ "MIT" ]
null
null
null
bonus_top_interview_questions/315. Count of Smaller Numbers After Self.py
JacopoPan/leetcode-top100-liked-questions
03dc05f087d05805d54b7585ce740338f3128833
[ "MIT" ]
null
null
null
""" Runtime: 3284 ms, faster than 74.29% of Python3 online submissions for Count of Smaller Numbers After Self. Memory Usage: 33.2 MB, less than 76.39% of Python3 online submissions for Count of Smaller Numbers After Self. """ from typing import List from typing import Optional class Solution: def countSmaller(sel...
33.27027
110
0.561332
793
0.644192
0
0
0
0
0
0
256
0.207961
d5511838b4b4d80eeeb07f7837865dc3b34ed429
1,130
py
Python
util/Tool.py
EmeryWan/GradeEntry
3c4e27588e714df8fe26b29758a961830f9e770d
[ "MIT" ]
3
2019-07-31T13:09:52.000Z
2019-09-30T10:26:03.000Z
util/Tool.py
EmeryWan/GradeEntry
3c4e27588e714df8fe26b29758a961830f9e770d
[ "MIT" ]
null
null
null
util/Tool.py
EmeryWan/GradeEntry
3c4e27588e714df8fe26b29758a961830f9e770d
[ "MIT" ]
null
null
null
import inspect from singleton.AboutViewSingleton import AboutViewSingle def is_num(num): try: float(num) return True except BaseException: return False def colname_to_colnum(colname): if type(colname) is not str: return colname col = 0 power = 1 for i in rang...
21.320755
56
0.546903
0
0
0
0
0
0
0
0
43
0.037391
d553ade15a4eefdbc36f33e88c8c183a77abed27
696
py
Python
Tkinter_Scripts/tkinter-dropdown01.py
anupam-sy/Python-GUI
5017b5deccd5f7a592922907aba1ff8b062b9b0a
[ "MIT" ]
1
2020-04-25T01:20:01.000Z
2020-04-25T01:20:01.000Z
Tkinter_Scripts/tkinter-dropdown01.py
anupam-sy/Python-GUI
5017b5deccd5f7a592922907aba1ff8b062b9b0a
[ "MIT" ]
null
null
null
Tkinter_Scripts/tkinter-dropdown01.py
anupam-sy/Python-GUI
5017b5deccd5f7a592922907aba1ff8b062b9b0a
[ "MIT" ]
null
null
null
# Implementation of Dropdown in tkinter from tkinter import * root = Tk() root.title("Dropdown Implementation") root.geometry("200x50") def response(): print("Button clicked.") # create a menubar menubar = Menu(root) # configure root to use that menubar # display the menu root.config(menu=menubar) # Add items...
22.451613
75
0.752874
0
0
0
0
0
0
0
0
435
0.625
d555e94e143a29f11e123e6f014810777702c950
106
py
Python
mix_beta/example1.py
TomiBelan/multiparser
d23ee69c0771d2b0f899d1cc88bde16aa22f7a9f
[ "Apache-2.0" ]
null
null
null
mix_beta/example1.py
TomiBelan/multiparser
d23ee69c0771d2b0f899d1cc88bde16aa22f7a9f
[ "Apache-2.0" ]
null
null
null
mix_beta/example1.py
TomiBelan/multiparser
d23ee69c0771d2b0f899d1cc88bde16aa22f7a9f
[ "Apache-2.0" ]
null
null
null
print((:(:7:):)) a = (: [[lua string]] :) b = (: x .. y :) c = (: 1 + (: (: (yield 1) :) * 2 :) ^ -6 :)
15.142857
44
0.273585
0
0
0
0
0
0
0
0
0
0
d55987fd12bdc575cb7211586969ce4f4d999611
11,031
py
Python
chaos_genius/core/rca/rca_utils/api_utils.py
chaos-genius/chaos_genius
b5eadb6c38b5d449e54889a167c9034f6cec6009
[ "MIT" ]
320
2022-02-18T18:18:42.000Z
2022-03-31T16:42:38.000Z
chaos_genius/core/rca/rca_utils/api_utils.py
chaos-genius/chaos_genius
b5eadb6c38b5d449e54889a167c9034f6cec6009
[ "MIT" ]
115
2022-02-18T16:39:01.000Z
2022-03-31T15:23:52.000Z
chaos_genius/core/rca/rca_utils/api_utils.py
chaos-genius/chaos_genius
b5eadb6c38b5d449e54889a167c9034f6cec6009
[ "MIT" ]
18
2022-02-18T18:44:01.000Z
2022-03-10T08:33:34.000Z
"""Utility functions for RCA API endpoints.""" import logging from datetime import date, datetime, timedelta from typing import List from chaos_genius.databases.models.anomaly_data_model import AnomalyDataOutput from chaos_genius.extensions import db from chaos_genius.controllers.kpi_controller import get_kpi_data_fro...
32.06686
85
0.528329
0
0
0
0
0
0
0
0
1,733
0.157103
d55c5a73eca5eab76ef8ba52d0cc0073bdf209e2
4,027
py
Python
clock/exports/stundenzettel_generator/strategy.py
chgad/django-clock
f855cd1253574c0582ed53a0ac34206c242f04c9
[ "MIT" ]
null
null
null
clock/exports/stundenzettel_generator/strategy.py
chgad/django-clock
f855cd1253574c0582ed53a0ac34206c242f04c9
[ "MIT" ]
null
null
null
clock/exports/stundenzettel_generator/strategy.py
chgad/django-clock
f855cd1253574c0582ed53a0ac34206c242f04c9
[ "MIT" ]
1
2020-03-13T14:42:11.000Z
2020-03-13T14:42:11.000Z
# Package "stundenzettel_generator", Strategy abstract class # (c) 2015 Sven K., GPL # Python batteries import re from datetime import datetime, timedelta, date from os import path # adopt this to your needs freedays_file = path.join(path.dirname(__file__), 'feier-brueckentage2015.txt') # abstract class class Strat...
37.635514
104
0.57785
3,717
0.92302
0
0
0
0
0
0
1,767
0.438788
d55c7d8f96a78059d6e8c8a3ed3364b75170413a
410
py
Python
tests/Clients/test_serializers.py
Sheshtawy/featurette
d3d75bcf11b7db6f46e35615656e694e13463d1d
[ "MIT" ]
null
null
null
tests/Clients/test_serializers.py
Sheshtawy/featurette
d3d75bcf11b7db6f46e35615656e694e13463d1d
[ "MIT" ]
null
null
null
tests/Clients/test_serializers.py
Sheshtawy/featurette
d3d75bcf11b7db6f46e35615656e694e13463d1d
[ "MIT" ]
null
null
null
from app.Clients.serializers import ClientSchema from app.Clients.models import Client class TestClientSchema(object): def test_init(self, app, db, session): johnClient = Client.create(name='john the client') client_schema = ClientSchema() result = client_schema.dump(johnClient).data ...
31.538462
58
0.7
320
0.780488
0
0
0
0
0
0
27
0.065854
d55da3bd990fcd7c4231a540e95539db3b6dd742
5,696
py
Python
palabox/apis/duolingo.py
marcoboucas/palabox
d6e937db909daac0f9d3c5dff2309c29b5b68ea8
[ "MIT" ]
null
null
null
palabox/apis/duolingo.py
marcoboucas/palabox
d6e937db909daac0f9d3c5dff2309c29b5b68ea8
[ "MIT" ]
null
null
null
palabox/apis/duolingo.py
marcoboucas/palabox
d6e937db909daac0f9d3c5dff2309c29b5b68ea8
[ "MIT" ]
null
null
null
"""Duolingo API.""" from dataclasses import dataclass from datetime import datetime import dacite import requests from .base import BaseApi, BaseApiConfig from .types.duolingo import DuolingoStats @dataclass class DuolingoApiConfig(BaseApiConfig): """DuolingoApiConfig.""" login: str = "" password: str...
53.233645
2,345
0.748244
5,479
0.961903
0
0
4,915
0.862886
0
0
3,188
0.559691
d55dda708b14770945e0676691a296378b570ba7
4,157
py
Python
autofields/tests/autofield.py
lygaret/django-autofields
842a4624b727fabae77a6ad43faf198acf42ecb7
[ "BSD-3-Clause" ]
1
2015-05-01T23:53:01.000Z
2015-05-01T23:53:01.000Z
autofields/tests/autofield.py
lygaret/django-autofields
842a4624b727fabae77a6ad43faf198acf42ecb7
[ "BSD-3-Clause" ]
null
null
null
autofields/tests/autofield.py
lygaret/django-autofields
842a4624b727fabae77a6ad43faf198acf42ecb7
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from django.conf import settings from .. import fields from models import * from datetime import date incoming_markdown = "**bold**, *italic*" gen_html = "<p><strong>bold</strong>, <em>italic</em></p>" class AutoMarkdownTests(TestCase): def setUp(self): self.m = TestAutoD...
30.343066
59
0.618956
3,910
0.940582
0
0
0
0
0
0
420
0.101034
d55e96c721c18cb1f3e8bef1df0d73fa400bed48
14,804
py
Python
tests/unit/service_test.py
TUNE-Archive/freight_forwarder
6ea4a49f474ec04abb8bb81b175c774a16b5312f
[ "MIT" ]
null
null
null
tests/unit/service_test.py
TUNE-Archive/freight_forwarder
6ea4a49f474ec04abb8bb81b175c774a16b5312f
[ "MIT" ]
null
null
null
tests/unit/service_test.py
TUNE-Archive/freight_forwarder
6ea4a49f474ec04abb8bb81b175c774a16b5312f
[ "MIT" ]
null
null
null
# -*- coding: utf-8; -*- from __future__ import absolute_import, unicode_literals import os import six from tests import unittest, mock from freight_forwarder.registry.registry import V1 from freight_forwarder.container.host_config import HostConfig from freight_forwarder.container.config import Config as ContainerCo...
42.056818
123
0.714469
14,414
0.973656
0
0
6,569
0.443731
0
0
1,754
0.118481
d55efdb47af4ac34ac2686622df940350716567f
386
py
Python
lb_ec2_db.py
DiptoChakrabarty/diagrams
6efaff8b06b49c071bf243bc266f0be9fdd70afb
[ "MIT" ]
null
null
null
lb_ec2_db.py
DiptoChakrabarty/diagrams
6efaff8b06b49c071bf243bc266f0be9fdd70afb
[ "MIT" ]
null
null
null
lb_ec2_db.py
DiptoChakrabarty/diagrams
6efaff8b06b49c071bf243bc266f0be9fdd70afb
[ "MIT" ]
null
null
null
from diagrams import Diagram from diagrams.aws.compute import EC2 from diagrams.aws.database import RDS from diagrams.aws.network import ELB with Diagram("Grouped Workers",show=True,direction="TB"): ELB("lb") >> [EC2("node1"), EC2("node2"), EC2("node3"), ...
29.692308
57
0.562176
0
0
0
0
0
0
0
0
68
0.176166
d56065015acdcfc5b50c685207e82f83e0d13834
7,884
py
Python
cymlda.py
LaoWang-Lab/multi-dimensional-topic-model
bbebc15e595ac793a790646a2ff5d0677ec6b2de
[ "MIT" ]
1
2015-11-09T14:17:30.000Z
2015-11-09T14:17:30.000Z
cymlda.py
LaoWang-Lab/multi-dimensional-topic-model
bbebc15e595ac793a790646a2ff5d0677ec6b2de
[ "MIT" ]
null
null
null
cymlda.py
LaoWang-Lab/multi-dimensional-topic-model
bbebc15e595ac793a790646a2ff5d0677ec6b2de
[ "MIT" ]
null
null
null
__author__ = 'Linwei' import numpy as np import os, json, sys, re import _cymlda from settings import H, E, alpha, beta, gamma, docDir, outputDir, iter_max, run_num, dictionary, docset PY2 = sys.version_info[0] == 2 if PY2: range = xrange def n2s(counts): """convert a counts vector to corresponding samples"...
39.818182
146
0.539954
6,919
0.8776
0
0
0
0
0
0
1,000
0.126839
d56088b13e056734a3376fd9aad22a5e70b7c4da
8,223
py
Python
uos3/configUp/migrations/0001_initial.py
aliaksei135/telecommand-server
eb6f23f03ff75a18a5115f3038bb4d4192594627
[ "MIT" ]
null
null
null
uos3/configUp/migrations/0001_initial.py
aliaksei135/telecommand-server
eb6f23f03ff75a18a5115f3038bb4d4192594627
[ "MIT" ]
null
null
null
uos3/configUp/migrations/0001_initial.py
aliaksei135/telecommand-server
eb6f23f03ff75a18a5115f3038bb4d4192594627
[ "MIT" ]
1
2020-04-22T20:39:49.000Z
2020-04-22T20:39:49.000Z
# Generated by Django 2.2.6 on 2019-11-01 18:25 import datetime import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='config', fie...
75.440367
219
0.548705
8,083
0.982975
0
0
0
0
0
0
1,380
0.167822
d5617408fe61ad79898cc6e28c5136f3b8cef58c
3,176
py
Python
atom/factory.py
yoshiask/PyZuneCatalogServer
b176155f89e3a990456248175b458ba309b808e0
[ "MIT" ]
7
2021-02-21T10:45:25.000Z
2021-03-28T10:29:36.000Z
atom/factory.py
yoshiask/PyZuneCatalogServer
b176155f89e3a990456248175b458ba309b808e0
[ "MIT" ]
1
2022-02-16T08:18:36.000Z
2022-02-20T04:17:02.000Z
atom/factory.py
yoshiask/PyZuneCatalogServer
b176155f89e3a990456248175b458ba309b808e0
[ "MIT" ]
null
null
null
from typing import Dict, Any from xml.dom import minidom from xml.dom.minidom import Element, Document, Text from datetime import datetime MIME_XML = "text/xml" MIME_ATOM_XML = "application/atom+xml" MIME_UIX = "application/uix" MIME_JPG = "image/jpeg" def set_element_value(element: Element, value: str): content...
32.408163
118
0.71694
0
0
0
0
0
0
0
0
321
0.101071
d562d010288aefc6638d20954153035f7622937e
290
py
Python
snippets - machine learning sklearn/loading-data.py
bjfisica/MachineLearning
20349301ae7f82cd5048410b0cf1f7a5f7d7e5a2
[ "MIT" ]
52
2019-02-15T16:37:13.000Z
2022-02-17T18:34:30.000Z
snippets - machine learning sklearn/loading-data.py
RodeoBlues/Complete-Data-Science-Toolkits
c5e83889e24af825ec3baed6e8198debb135f1ff
[ "MIT" ]
null
null
null
snippets - machine learning sklearn/loading-data.py
RodeoBlues/Complete-Data-Science-Toolkits
c5e83889e24af825ec3baed6e8198debb135f1ff
[ "MIT" ]
22
2019-02-25T23:52:09.000Z
2021-09-21T03:09:35.000Z
import numpy as np X = np.random.random((10,5)) y = np.array(['M','M','F','F','M','F','M','M','F','F','F']) X[X < 0.7] = 0 #use model selection to split our data from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=0)
36.25
73
0.665517
0
0
0
0
0
0
0
0
71
0.244828
d564c433a41a9d425ea19b0dd2e0474e38611f74
3,296
py
Python
cyder/base/eav/models.py
drkitty/cyder
1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8
[ "BSD-3-Clause" ]
6
2015-04-16T23:18:22.000Z
2020-08-25T22:50:13.000Z
cyder/base/eav/models.py
drkitty/cyder
1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8
[ "BSD-3-Clause" ]
267
2015-01-01T00:18:57.000Z
2015-10-14T00:01:13.000Z
cyder/base/eav/models.py
drkitty/cyder
1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8
[ "BSD-3-Clause" ]
5
2015-03-23T00:57:09.000Z
2019-09-09T22:42:37.000Z
from django.db import models from cyder.base.eav.constants import (ATTRIBUTE_TYPES, ATTRIBUTE_INVENTORY, ATTRIBUTE_OPTION, ATTRIBUTE_STATEMENT) from cyder.base.eav.fields import AttributeValueTypeField, EAVValueField from cyder.base.eav.utils import is_hex_byte_sequence from cyder...
31.390476
79
0.646238
2,782
0.844053
0
0
508
0.154126
0
0
779
0.236347
d56541d5aa20af499f0418b573223a43ac7ab22d
982
py
Python
Sources/ui/mk_icons_android.py
codingisacopingstrategy/raduga
fab71b2c7630ac141c3cb588a6ff59edf5eb2072
[ "Apache-2.0" ]
null
null
null
Sources/ui/mk_icons_android.py
codingisacopingstrategy/raduga
fab71b2c7630ac141c3cb588a6ff59edf5eb2072
[ "Apache-2.0" ]
1
2015-06-22T10:26:55.000Z
2015-06-22T10:26:58.000Z
Sources/ui/mk_icons_android.py
codingisacopingstrategy/raduga
fab71b2c7630ac141c3cb588a6ff59edf5eb2072
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import subprocess import os """ Resize a PDF icon to to all icon sizes possibly required for Android, Uses OS X’s scriptable image processing system command line utility. http://straylink.wordpress.com/2009/01/24/os-x-command-line-image-manipulation/ On Linux, Ghostscript is your best bet! ...
30.6875
79
0.602851
0
0
0
0
0
0
0
0
610
0.619919
d5672c64e05c057c731faac1ae947bf84604cb2e
12,071
py
Python
cldfbench_pulotu.py
D-PLACE/dplace-dataset-pulotu
a26070a803d75dc9cc67e8233d48eee0f9fa0fcd
[ "CC-BY-4.0" ]
null
null
null
cldfbench_pulotu.py
D-PLACE/dplace-dataset-pulotu
a26070a803d75dc9cc67e8233d48eee0f9fa0fcd
[ "CC-BY-4.0" ]
null
null
null
cldfbench_pulotu.py
D-PLACE/dplace-dataset-pulotu
a26070a803d75dc9cc67e8233d48eee0f9fa0fcd
[ "CC-BY-4.0" ]
null
null
null
import re import pathlib import subprocess import collections from clldutils.text import split_text from clldutils.misc import slug from cldfbench import Dataset as BaseDataset, CLDFSpec import errata # The following variables go into LanguageTable, we want to be able to identify these by ID: MD = { 'Latitude': ...
32.712737
109
0.515947
8,898
0.736407
206
0.017049
0
0
0
0
4,249
0.351651
d56a97f82f78b9061fb5f7e8a3676e542e4c4969
1,908
py
Python
selenium/test_navbar.py
mattruston/idb
5c041f0a844fa025b920471bfe826fed0ce23c61
[ "MIT" ]
1
2017-10-19T21:46:35.000Z
2017-10-19T21:46:35.000Z
selenium/test_navbar.py
mattruston/idb
5c041f0a844fa025b920471bfe826fed0ce23c61
[ "MIT" ]
1
2017-09-22T15:24:27.000Z
2017-09-22T15:24:27.000Z
selenium/test_navbar.py
mattruston/idb
5c041f0a844fa025b920471bfe826fed0ce23c61
[ "MIT" ]
null
null
null
import unittest from selenium import webdriver from selenium.webdriver.common.keys import Keys class TestNavBar(unittest.TestCase): def setUp(self): self.driver = webdriver.Firefox() self.driver.get("http://gamingdb.info") def test_hit_site(self): self.assertIn("gamingdb", ...
31.278689
70
0.630503
1,747
0.915618
0
0
0
0
0
0
225
0.117925
d56c4f18f73c4cc41e3d1508894b7b35f74be651
4,724
py
Python
led/Feature.py
cloudy/osr-rover-code
07d370ae1cde75eaf2d279fcc7f220c95cf6d736
[ "Apache-2.0" ]
5
2019-02-13T20:15:27.000Z
2019-08-10T07:07:57.000Z
led/Feature.py
cloudy/osr-rover-code
07d370ae1cde75eaf2d279fcc7f220c95cf6d736
[ "Apache-2.0" ]
null
null
null
led/Feature.py
cloudy/osr-rover-code
07d370ae1cde75eaf2d279fcc7f220c95cf6d736
[ "Apache-2.0" ]
null
null
null
#Framework for FeatureData #Defines and controls Feature objects that can be placed on the Display #from Updater import Updater ''' Feature List Eye(style,x,y,[c1,c2]) 8bit wink ''' class Feature(): def __init__(self,Display,style,x,y,c): self.display = Display self.style = style self.x = x self.y = y ...
25.673913
71
0.696867
4,525
0.957875
0
0
0
0
0
0
663
0.140347
d56cf4b8f7c59a6b0306ac4185b0f9d60b73fa75
1,390
py
Python
lyrics/models.py
stuntman723/rap-analyzer
46af59a16d2f48795f44c317eafa5143ed79b7bf
[ "MIT" ]
null
null
null
lyrics/models.py
stuntman723/rap-analyzer
46af59a16d2f48795f44c317eafa5143ed79b7bf
[ "MIT" ]
null
null
null
lyrics/models.py
stuntman723/rap-analyzer
46af59a16d2f48795f44c317eafa5143ed79b7bf
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Artist(models.Model): name = models.CharField(max_length=200) list_display = ('name') def __str__(self): return self.name class ListField(models.TextField): __metaclass__ = models.SubfieldBase description = "Stores a python li...
26.226415
56
0.657554
1,329
0.956115
0
0
0
0
0
0
74
0.053237
d56cf7a16d71912684f9735b1322042ef090fe2a
12,365
py
Python
mushr_rhc/cost/block_push.py
Rockett8855/mushr_rhc
79ea69020ce208c1000ab8a33e5774abf52d882d
[ "BSD-3-Clause" ]
null
null
null
mushr_rhc/cost/block_push.py
Rockett8855/mushr_rhc
79ea69020ce208c1000ab8a33e5774abf52d882d
[ "BSD-3-Clause" ]
null
null
null
mushr_rhc/cost/block_push.py
Rockett8855/mushr_rhc
79ea69020ce208c1000ab8a33e5774abf52d882d
[ "BSD-3-Clause" ]
null
null
null
import torch import math import threading import Tkinter as tk import mushr_rhc.utils as utils class BlockPush: def __init__( self, params, logger, dtype, map, world_rep, value_fn, viz_rollouts_fn ): self.params = params self.logger = logger self.dtype = dtype self.map ...
37.929448
103
0.559968
12,267
0.992074
0
0
0
0
0
0
2,482
0.200728
d56d17b418a5e4e2217bc6482393e687e1206211
935
py
Python
src/Modules/Communication/bluetooth.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2016-09-21T19:30:21.000Z
2016-09-21T19:30:21.000Z
src/Modules/Communication/bluetooth.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
null
null
null
src/Modules/Communication/bluetooth.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2020-07-23T11:13:36.000Z
2020-07-23T11:13:36.000Z
""" -*- test-case-name: PyHouse.src.Modules.communication.test.test_bluetooth -*- @name: PyHouse/src/Modules/communication/bluteooth.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2013-2016 by D. Brian Kimmel @note: Created on Nov 18, 2013 @license: MIT License @summary:...
23.375
80
0.675936
452
0.483422
0
0
0
0
0
0
509
0.544385
d56e2f18944e986ee97c42e87f550658e1b8ea3b
1,438
py
Python
Demo2_PageObjectModel/features/steps/PageObject_Admin.py
imademethink/imademethink_python_selenium_demo
cc364bda00e75eb9115c680ddea5e2fbca1d7acb
[ "BSD-4-Clause" ]
2
2019-04-05T05:09:14.000Z
2020-07-21T16:06:53.000Z
Demo2_PageObjectModel/features/steps/PageObject_Admin.py
imademethink/Python_Selenium_Demo
cc364bda00e75eb9115c680ddea5e2fbca1d7acb
[ "BSD-4-Clause" ]
1
2020-01-08T08:15:42.000Z
2020-01-08T08:15:42.000Z
Demo2_PageObjectModel/features/steps/PageObject_Admin.py
imademethink/Python_Selenium_Demo
cc364bda00e75eb9115c680ddea5e2fbca1d7acb
[ "BSD-4-Clause" ]
4
2018-04-13T08:28:53.000Z
2018-12-30T20:35:19.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import time from page_objects import PageObject, PageElement from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions from selenium.webdriver.common.by import By delay_mi...
39.944444
120
0.769819
1,060
0.737135
0
0
0
0
0
0
170
0.11822
d57009adc53facb72827aa979d3b948b07800f00
9,629
py
Python
theano/groundhog/models/LM_model.py
haxzie/deepAPI
12c11a40074a0a2893102f42859c9e01dc28df37
[ "MIT" ]
46
2018-09-14T10:33:28.000Z
2022-03-31T14:06:56.000Z
theano/groundhog/models/LM_model.py
haxzie/deepAPI
12c11a40074a0a2893102f42859c9e01dc28df37
[ "MIT" ]
8
2018-10-29T20:10:18.000Z
2022-03-29T06:04:08.000Z
theano/groundhog/models/LM_model.py
haxzie/deepAPI
12c11a40074a0a2893102f42859c9e01dc28df37
[ "MIT" ]
16
2018-11-07T08:20:35.000Z
2022-02-06T18:19:03.000Z
""" Implementation of a language model class. TODO: write more documentation """ __docformat__ = 'restructedtext en' __authors__ = ("Razvan Pascanu " "KyungHyun Cho " "Caglar Gulcehre ") __contact__ = "Razvan Pascanu <r.pascanu@gmail>" import numpy import itertools import logging impo...
40.120833
99
0.555094
9,064
0.941323
0
0
0
0
0
0
2,807
0.291515