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
2034a75a259e4f6a84df0a1bdb6f0f7a485dcf5a
841
py
Python
scripts/testcase_parser/kattis.py
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
1
2019-05-12T23:41:00.000Z
2019-05-12T23:41:00.000Z
scripts/testcase_parser/kattis.py
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
null
null
null
scripts/testcase_parser/kattis.py
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
null
null
null
#!/usr/bin/env python from bs4 import BeautifulSoup from urllib.parse import urlsplit import json import sys import utils url = sys.argv[1] path = sys.argv[2] url = urlsplit(url) host = url.netloc if not host.endswith('kattis.com'): exit(1) name = url.path.rstrip('/').split('/')[-1] # /problems/skiresort with op...
23.361111
64
0.655172
0
0
0
0
0
0
0
0
121
0.143876
203526c026fed195000636faf1d1dd48a896aced
18,756
py
Python
src/libs/loss.py
dylanturpin/6-PACK
a8d94cea97ed0f459431f409792038abb14f02d4
[ "MIT" ]
1
2020-06-23T10:03:18.000Z
2020-06-23T10:03:18.000Z
src/libs/loss.py
dylanturpin/6-PACK
a8d94cea97ed0f459431f409792038abb14f02d4
[ "MIT" ]
null
null
null
src/libs/loss.py
dylanturpin/6-PACK
a8d94cea97ed0f459431f409792038abb14f02d4
[ "MIT" ]
null
null
null
import pdb from torch.nn.modules.loss import _Loss from torch.autograd import Variable import math import torch import time import numpy as np import torch.nn as nn import random import torch.backends.cudnn as cudnn import torch.nn.functional as F import torch.distributions as tdist import copy import pymesh import pyv...
44.870813
139
0.61447
18,392
0.980593
0
0
0
0
0
0
1,928
0.102794
2035bc483e311f9599f980f47de2dacaa8317d2b
1,789
py
Python
setup.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
null
null
null
setup.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
null
null
null
setup.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys from setuptools import setup, find_packages from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() install_requires = [ "datapipelines>=1.0.7", "mera...
30.844828
90
0.648966
0
0
0
0
0
0
0
0
928
0.518726
2036a59a849efccd1eebf5b74851410e2d9a4249
710
py
Python
Solver/Solver.py
MapleNSteel/mpcGenerationToolkit
e0b43e34247447cb8c591bb2f7d69834e4b7d982
[ "MIT" ]
null
null
null
Solver/Solver.py
MapleNSteel/mpcGenerationToolkit
e0b43e34247447cb8c591bb2f7d69834e4b7d982
[ "MIT" ]
null
null
null
Solver/Solver.py
MapleNSteel/mpcGenerationToolkit
e0b43e34247447cb8c591bb2f7d69834e4b7d982
[ "MIT" ]
null
null
null
import time import numpy as np from cvxopt import matrix, solvers from sympy import pprint solvers.options['show_progress'] = False solvers.options['maxiters'] = 1 def getSolution(code_gen, x_0, u_0, x_ref, u_ref, params): A = code_gen.A_mat(x_0[:,0:1], x_0, u_0, params) b = code_gen.b_mat(x_0[:,0:1], x_0, u_0, para...
32.272727
85
0.690141
0
0
0
0
0
0
0
0
45
0.06338
2037a567b77e305e0d1ccdea12da25c068d7248b
3,460
py
Python
fhir/resources/DSTU2/enrollmentrequest.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
144
2019-05-08T14:24:43.000Z
2022-03-30T02:37:11.000Z
fhir/resources/DSTU2/enrollmentrequest.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
82
2019-05-13T17:43:13.000Z
2022-03-30T16:45:17.000Z
fhir/resources/DSTU2/enrollmentrequest.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
48
2019-04-04T14:14:53.000Z
2022-03-30T06:07:31.000Z
# -*- coding: utf-8 -*- """ Profile: https://www.hl7.org/fhir/DSTU2/enrollmentrequest.html Release: DSTU2 Version: 1.0.2 Revision: 7202 """ from typing import List as ListType from pydantic import Field from . import domainresource, fhirtypes class EnrollmentRequest(domainresource.DomainResource): """Enroll in ...
30.350877
93
0.629191
3,212
0.928324
0
0
0
0
0
0
1,665
0.481214
203928c956b6d7f878702889dc3a41b3976259dc
537
py
Python
strona/urls.py
lukasy2/strona
7ccebfe0553f9fac06bf762d1028c9faf7d830c0
[ "MIT", "Unlicense" ]
null
null
null
strona/urls.py
lukasy2/strona
7ccebfe0553f9fac06bf762d1028c9faf7d830c0
[ "MIT", "Unlicense" ]
null
null
null
strona/urls.py
lukasy2/strona
7ccebfe0553f9fac06bf762d1028c9faf7d830c0
[ "MIT", "Unlicense" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin from django.contrib.auth import views as auth_views from newsy import views urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^accounts/register/$', views.register_user), url(r'^accounts/register_success/$', views.re...
31.588235
70
0.687151
0
0
0
0
0
0
0
0
151
0.281192
203ab81e1c44d46f3a5bb44cfcb2254297f716a2
2,954
py
Python
python/NTupler_cff.py
EmyrClement/NTupleProduction
4c1b67ac8826656e804912512f4c4dc6695c7674
[ "Apache-2.0" ]
1
2018-02-20T21:23:21.000Z
2018-02-20T21:23:21.000Z
python/NTupler_cff.py
RickeyEstes/NTupleProduction
1319183de0ce00749c8f5841fa925479b9024b48
[ "Apache-2.0" ]
116
2015-01-09T22:38:07.000Z
2017-05-24T08:12:48.000Z
python/NTupler_cff.py
RickeyEstes/NTupleProduction
1319183de0ce00749c8f5841fa925479b9024b48
[ "Apache-2.0" ]
1
2020-11-01T00:01:17.000Z
2020-11-01T00:01:17.000Z
def setup_ntupler(process, cms): print '=' * 60 print "Setting up NTupler" print '=' * 60 ###################################################################################################### ################################## nTuple Configuration ############################################## ...
31.763441
106
0.499661
0
0
0
0
0
0
0
0
1,206
0.40826
203badb19861f80a63c8028ac6ffdd250300130d
799
py
Python
software/feature_space.py
aM3z/primality-testing
b9e8395ab346ffd46f5b014996da2207c50dcc0a
[ "MIT" ]
1
2021-03-15T17:26:32.000Z
2021-03-15T17:26:32.000Z
software/feature_space.py
aM3z/primality-testing
b9e8395ab346ffd46f5b014996da2207c50dcc0a
[ "MIT" ]
null
null
null
software/feature_space.py
aM3z/primality-testing
b9e8395ab346ffd46f5b014996da2207c50dcc0a
[ "MIT" ]
null
null
null
from base_b import convert from random import randint DATA_DIR = "../data/" def get_prime(partition): primes = list() #filename = glob.glob(DATA_DIR + "primes" + str(partition)) filename = DATA_DIR + "primes" + str(partition) with open(filename, "r") as f: content = f.readlines() line...
21.594595
63
0.605757
0
0
0
0
0
0
0
0
187
0.234043
203cba017e9464fdeee0e4647c552ae7f9d28d68
1,477
py
Python
redisext/queue.py
mylokin/redisext
b49c2699183d795ec462f0288bb3fb7110936a89
[ "MIT" ]
null
null
null
redisext/queue.py
mylokin/redisext
b49c2699183d795ec462f0288bb3fb7110936a89
[ "MIT" ]
5
2015-02-15T11:03:29.000Z
2018-03-05T19:11:20.000Z
redisext/queue.py
mylokin/redisext
b49c2699183d795ec462f0288bb3fb7110936a89
[ "MIT" ]
2
2018-03-05T19:06:34.000Z
2020-07-01T09:18:40.000Z
from __future__ import absolute_import import redisext.models.abc class Queue(redisext.models.abc.Model): def pop(self): ''' Pop item from queue. :returns: item from queue ''' item = self.connect_to_master().rpop(self.key) return self.decode(item) def push(se...
24.213115
67
0.570752
1,404
0.950575
0
0
0
0
0
0
451
0.305349
203cbdc89d4f2978be7134d545c2c02ab6abca2d
190
py
Python
src/jobs/write_notification.py
daianasousa/Projeto-BLX
4006af4a998a4837b4f5e89d842d74cb454fc52c
[ "MIT" ]
null
null
null
src/jobs/write_notification.py
daianasousa/Projeto-BLX
4006af4a998a4837b4f5e89d842d74cb454fc52c
[ "MIT" ]
null
null
null
src/jobs/write_notification.py
daianasousa/Projeto-BLX
4006af4a998a4837b4f5e89d842d74cb454fc52c
[ "MIT" ]
null
null
null
def write_notification(email: str, mensagem=''): with open('log.txt', mode='a') as email_file: conteudo = f'Email: {email} - msg: {mensagem}\n' email_file.write(conteudo)
47.5
56
0.642105
0
0
0
0
0
0
0
0
51
0.268421
203de3b0e97c73fd699b6af21861e33253964a9d
6,947
py
Python
dataLoader.py
stephen-w-bailey/fast-n-deep-faces
53173c6367dfa3a20d3193ad7a0e77ac1e898f02
[ "BSD-3-Clause" ]
40
2020-06-26T10:56:39.000Z
2022-01-26T10:43:34.000Z
dataLoader.py
stephen-w-bailey/fast-n-deep-faces
53173c6367dfa3a20d3193ad7a0e77ac1e898f02
[ "BSD-3-Clause" ]
7
2020-07-01T07:10:11.000Z
2022-03-07T00:07:41.000Z
dataLoader.py
stephen-w-bailey/fast-n-deep-faces
53173c6367dfa3a20d3193ad7a0e77ac1e898f02
[ "BSD-3-Clause" ]
13
2020-06-30T11:57:41.000Z
2022-02-20T17:24:00.000Z
import matplotlib.pyplot as plt import numpy as np import pickle import tensorflow as tf import UVGenerator class DataLoader(): def __init__(self,pg,sampleFile=None): self.pg = pg self.numV = np.sum(self.pg.active) pg.setPose(pg.defaultPose) self.neutral = pg.getVertices()[pg.acti...
38.594444
122
0.554196
6,829
0.983014
688
0.099036
0
0
0
0
585
0.084209
203e0415618b04f5477d288195f92e0ca902d4e2
2,105
py
Python
cop/email_smaple/mail.py
maksim-urbanovich/Python_Task3
d0842c2caa39030ced55a342a709c9d0a2c8acce
[ "MIT" ]
null
null
null
cop/email_smaple/mail.py
maksim-urbanovich/Python_Task3
d0842c2caa39030ced55a342a709c9d0a2c8acce
[ "MIT" ]
null
null
null
cop/email_smaple/mail.py
maksim-urbanovich/Python_Task3
d0842c2caa39030ced55a342a709c9d0a2c8acce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import smtplib from smtplib import SMTPException from email.mime.text import MIMEText import csv import codecs import logging from logging import StreamHandler from logging.handlers import RotatingFileHandler import sys import time LOGGER = 'logger' user = "robot.artsiom.mishuta" password = "r...
29.236111
172
0.636105
0
0
0
0
0
0
0
0
576
0.273634
203e08b8b5ab33b02e1ca4e3dd9d441003adb9b3
857
py
Python
mayan/apps/tags/api_views.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
3
2020-02-03T11:58:51.000Z
2020-10-20T03:52:21.000Z
mayan/apps/tags/api_views.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
null
null
null
mayan/apps/tags/api_views.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
2
2020-10-24T11:10:06.000Z
2021-03-03T20:05:38.000Z
from __future__ import absolute_import from rest_framework import generics from taggit.models import Tag from rest_api.filters import MayanObjectPermissionsFilter from rest_api.permissions import MayanPermission from .permissions import PERMISSION_TAG_VIEW from .serializers import TagSerializer class APITagView(ge...
25.205882
61
0.763127
552
0.644107
0
0
0
0
0
0
101
0.117853
203f15c01536c740d40273810080fe27d8d79ddb
2,191
py
Python
stick_video/keypoints_to_stick_image.py
yookyungkho/Hand-to-Hand
c0ae9a9c1e5ea894c7daf2c2bf2f7c752e31e8b7
[ "Apache-2.0" ]
4
2021-04-07T05:38:25.000Z
2021-07-18T05:02:39.000Z
stick_video/keypoints_to_stick_image.py
yookyungkho/Hand-to-Hand
c0ae9a9c1e5ea894c7daf2c2bf2f7c752e31e8b7
[ "Apache-2.0" ]
null
null
null
stick_video/keypoints_to_stick_image.py
yookyungkho/Hand-to-Hand
c0ae9a9c1e5ea894c7daf2c2bf2f7c752e31e8b7
[ "Apache-2.0" ]
6
2020-10-25T07:10:29.000Z
2020-11-06T17:21:48.000Z
import numpy as np import cv2 import matplotlib.pyplot as plt import json import os pose_point_pair_ver1 = [[1, 2], [2, 3], [3, 4], [1, 5], [5, 6], [6, 7], [1, 9], [9, 8], [8, 12], [12, 1]] pose_point_pair_ver2 = [[1, 2], [2, 3], [3, 4], [1, 5], [5, 6], [6, 7], [2, 9], [9, 8], [8, 12], [12, 5]] face_point_pair = [ ...
38.438596
106
0.542218
0
0
0
0
0
0
0
0
281
0.127322
203f675ff410bffb2f8fc129a258a5f53d79aacf
336
py
Python
mayan/apps/scheduler/permissions.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
3
2020-02-03T11:58:51.000Z
2020-10-20T03:52:21.000Z
mayan/apps/scheduler/permissions.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
null
null
null
mayan/apps/scheduler/permissions.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
2
2020-10-24T11:10:06.000Z
2021-03-03T20:05:38.000Z
from __future__ import absolute_import from django.utils.translation import ugettext_lazy as _ from permissions.models import PermissionNamespace, Permission namespace = PermissionNamespace('scheduler', _(u'Scheduler')) PERMISSION_VIEW_JOB_LIST = Permission.objects.register(namespace, 'jobs_list', _(u'View the inter...
37.333333
112
0.827381
0
0
0
0
0
0
0
0
63
0.1875
20426ff7837fe22b23c2cac78531fbb52e8967be
765
py
Python
django_dramatiq/migrations/0003_auto_20200204_0842.py
thebjorn/django_dramatiq
bd293e0479f3dd3f378ab92465e8dcb5e51583b0
[ "Apache-2.0" ]
229
2017-11-13T06:03:19.000Z
2022-03-28T09:36:15.000Z
django_dramatiq/migrations/0003_auto_20200204_0842.py
thebjorn/django_dramatiq
bd293e0479f3dd3f378ab92465e8dcb5e51583b0
[ "Apache-2.0" ]
109
2017-11-15T07:49:54.000Z
2022-02-18T05:28:25.000Z
django_dramatiq/migrations/0003_auto_20200204_0842.py
thebjorn/django_dramatiq
bd293e0479f3dd3f378ab92465e8dcb5e51583b0
[ "Apache-2.0" ]
76
2017-11-14T00:28:31.000Z
2022-03-23T04:46:48.000Z
# Generated by Django 2.0 on 2020-02-04 08:42 from django.db import migrations, models import django.db.models.manager class Migration(migrations.Migration): dependencies = [ ('django_dramatiq', '0002_auto_20191104_1354'), ] operations = [ migrations.AlterModelManagers( name...
29.423077
217
0.573856
642
0.839216
0
0
0
0
0
0
226
0.295425
20453193afb607d368c958b88cbf1cdb70f61f43
717
py
Python
python/leetcode/280_wiggle_sort.py
yxun/Notebook
680ae89a32d3f7d4fdcd541e66cea97e29efbd26
[ "Apache-2.0" ]
1
2021-10-04T13:26:32.000Z
2021-10-04T13:26:32.000Z
python/leetcode/280_wiggle_sort.py
yxun/Notebook
680ae89a32d3f7d4fdcd541e66cea97e29efbd26
[ "Apache-2.0" ]
3
2020-03-24T19:34:42.000Z
2022-01-21T20:15:39.000Z
python/leetcode/280_wiggle_sort.py
yxun/Notebook
680ae89a32d3f7d4fdcd541e66cea97e29efbd26
[ "Apache-2.0" ]
1
2021-04-01T20:56:50.000Z
2021-04-01T20:56:50.000Z
#%% """ - Wiggle Sort - https://leetcode.com/problems/wiggle-sort/ - Medium Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3].... Example: Input: nums = [3,5,2,1,6,4] Output: One possible answer is [3,5,1,6,2,4] """ #%% ## class S1: def wiggleSort(self, nums): ...
19.916667
104
0.474198
438
0.610879
0
0
0
0
0
0
361
0.503487
20464f88e6c7527ff417743bfb8b19c2d606f75a
1,017
py
Python
setup.py
kaste/pytest-mockito
f20cae8f592cf83682f6027c7aafafc829c13785
[ "MIT" ]
13
2017-03-21T01:16:48.000Z
2021-06-10T21:18:23.000Z
setup.py
kaste/pytest-mockito
f20cae8f592cf83682f6027c7aafafc829c13785
[ "MIT" ]
1
2017-09-25T01:06:10.000Z
2018-07-11T17:20:13.000Z
setup.py
kaste/pytest-mockito
f20cae8f592cf83682f6027c7aafafc829c13785
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="pytest-mockito", version='0.0.4', description='Base fixtures for mockito', long_description=open('README.rst').read(), license='MIT', author='herr kaste', author_email='herr.kaste@gmail.com', url='https://github.com/kaste/pytest-mockito', pl...
33.9
69
0.612586
0
0
0
0
0
0
0
0
605
0.594887
2046a9865a03989fbda1a01607042dce01486fd9
4,843
py
Python
code/old/pyTorch_baxter_feed_forward_simple2.py
NLesniak/DeepLearning
c1e18a5c0fdab9c6bf4412c142c7db9c15baeef3
[ "MIT" ]
11
2020-06-05T15:38:21.000Z
2021-08-31T21:33:11.000Z
code/old/pyTorch_baxter_feed_forward_simple2.py
NLesniak/DeepLearning
c1e18a5c0fdab9c6bf4412c142c7db9c15baeef3
[ "MIT" ]
7
2019-10-23T15:30:51.000Z
2019-12-09T22:49:42.000Z
code/old/pyTorch_baxter_feed_forward_simple2.py
NLesniak/DeepLearning
c1e18a5c0fdab9c6bf4412c142c7db9c15baeef3
[ "MIT" ]
10
2020-06-18T05:43:37.000Z
2021-10-31T14:30:24.000Z
## Add modules that are necessary import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) from sympy import * import matplotlib.pyplot as plt import operator from IPython.core.display import display import torch from torch.autograd import Variable import torch.utils.da...
32.072848
92
0.694817
398
0.08218
0
0
0
0
0
0
908
0.187487
2046beee5b0531f6aba2f13452eaf086c8cff9b9
890
py
Python
tests/layout/test_waveguide.py
joamatab/zeropdk
feed134fc3243655f93cfd5b3bd5b65ea928bf48
[ "MIT" ]
17
2019-08-22T15:55:50.000Z
2022-02-02T20:52:00.000Z
tests/layout/test_waveguide.py
joamatab/zeropdk
feed134fc3243655f93cfd5b3bd5b65ea928bf48
[ "MIT" ]
1
2020-09-29T00:43:38.000Z
2020-10-27T07:15:01.000Z
tests/layout/test_waveguide.py
joamatab/zeropdk
feed134fc3243655f93cfd5b3bd5b65ea928bf48
[ "MIT" ]
3
2019-09-04T07:48:35.000Z
2021-06-16T09:39:42.000Z
import numpy as np import pytest from ..context import zeropdk # noqa from zeropdk.layout.waveguides import waveguide_dpolygon from zeropdk.layout import insert_shape import klayout.db as kdb @pytest.fixture def top_cell(): def _top_cell(): layout = kdb.Layout() layout.dbu = 0.001 TOP = ...
23.421053
65
0.65618
0
0
0
0
198
0.222472
0
0
139
0.15618
2047aaf1773627781dbbff3024237cc94ffa4aba
1,258
py
Python
spottelbot/botexceptions.py
mnowiasz/spottelbot
72ad0692edf5f244b7cb16171248d266ed82ce94
[ "MIT" ]
null
null
null
spottelbot/botexceptions.py
mnowiasz/spottelbot
72ad0692edf5f244b7cb16171248d266ed82ce94
[ "MIT" ]
null
null
null
spottelbot/botexceptions.py
mnowiasz/spottelbot
72ad0692edf5f244b7cb16171248d266ed82ce94
[ "MIT" ]
null
null
null
"""Custom exception where the builin exceptions won't suffice""" # Invalid user in the configfile (non-numeric UserID with no "@") class InvalidUser(Exception): def __init__(self, userid): self.bad_id = userid # No Token or empty token defined class MissingTelegramToken(Exception): pass # No users...
22.070175
65
0.72814
819
0.651033
0
0
0
0
0
0
399
0.31717
2048324c1071d236d03d6f7a8c261d1007dcdeaf
9,072
py
Python
bin/Utils/CraftCache.py
C-EO/craft
a52ead76ce400cc745876bd679eba6f62da70ee5
[ "BSD-2-Clause" ]
55
2016-11-20T17:08:19.000Z
2022-03-11T22:19:43.000Z
bin/Utils/CraftCache.py
C-EO/craft
a52ead76ce400cc745876bd679eba6f62da70ee5
[ "BSD-2-Clause" ]
17
2017-09-20T07:52:17.000Z
2021-12-03T10:03:00.000Z
bin/Utils/CraftCache.py
C-EO/craft
a52ead76ce400cc745876bd679eba6f62da70ee5
[ "BSD-2-Clause" ]
29
2016-12-10T15:00:11.000Z
2021-12-02T12:54:05.000Z
import atexit import json import os import pickle import re import shutil import subprocess import tempfile import time import urllib.error import urllib.request import sys from pathlib import Path from CraftCore import CraftCore, AutoImport from Blueprints.CraftVersion import CraftVersion from CraftOS.osutils import...
40.681614
128
0.585097
8,666
0.955247
0
0
1,355
0.149361
0
0
1,476
0.162698
204957f54dcadffc5466310b4e613d1c9d0522f8
141
py
Python
db/mongodb/next.py
kosyachniy/dev
39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4
[ "Apache-2.0" ]
13
2018-12-17T23:30:54.000Z
2021-12-29T14:31:43.000Z
db/mongodb/next.py
kosyachniy/dev
39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4
[ "Apache-2.0" ]
36
2018-06-07T21:34:13.000Z
2022-03-13T21:01:43.000Z
db/mongodb/next.py
kosyachniy/dev
39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4
[ "Apache-2.0" ]
2
2021-01-03T11:47:20.000Z
2021-12-29T14:31:49.000Z
from func.db_mongo import * # Индекс следующего элемента try: id = db['test'].find().sort('id', -1)[0]['id'] + 1 except: id = 1 print(id)
15.666667
51
0.624113
0
0
0
0
0
0
0
0
66
0.4
2049fcc66cf6a0685dbf23f42665dec25297f7e3
3,213
py
Python
dojos/design/5_naming.py
aurzenligl/tdd_training
7a83ed77181297fcb45712c7998af972032794c5
[ "MIT" ]
null
null
null
dojos/design/5_naming.py
aurzenligl/tdd_training
7a83ed77181297fcb45712c7998af972032794c5
[ "MIT" ]
12
2017-11-27T21:57:25.000Z
2017-11-27T22:01:58.000Z
dojos/design/5_naming.py
aurzenligl/tdd_training
7a83ed77181297fcb45712c7998af972032794c5
[ "MIT" ]
null
null
null
urlString = 'https://google.com' pathUsedWhenPathStringAndDefaultPathStringAndDefault2PathStringIsNotFound = 'nevermind' logPathString = "/tmp/log.txt"; logsPathString = "logs/subdir/output"; b_fileRead = True class IBaseArray(object): pass work = 0 jump = 2 parse = 42 flower = True termination = False findPath...
25.101563
98
0.71024
1,126
0.350451
0
0
0
0
0
0
1,512
0.470588
204ac12bfcc8a62a1ffcd3cacb0f4f80cf9ae16d
6,260
py
Python
web3/settings/__init__.py
anonymoose2/director
c73c0e106372031ffe84bf044d8a88137518635c
[ "MIT" ]
10
2017-03-20T14:40:56.000Z
2020-04-07T17:03:42.000Z
web3/settings/__init__.py
anonymoose2/director
c73c0e106372031ffe84bf044d8a88137518635c
[ "MIT" ]
50
2017-05-23T01:26:26.000Z
2020-06-05T17:13:25.000Z
web3/settings/__init__.py
anonymoose2/director
c73c0e106372031ffe84bf044d8a88137518635c
[ "MIT" ]
9
2017-03-18T01:23:38.000Z
2020-08-17T20:50:07.000Z
""" Django settings for web3 project. Generated by 'django-admin startproject' using Django 1.10.1. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os ...
27.099567
94
0.70607
0
0
0
0
0
0
0
0
4,263
0.68099
204c706394af50cdc13dca585672f3febe695893
8,425
py
Python
prune/visualize.py
PaulLerner/Plumcot
7e5a6fed1bc3d099a0644f8baba77304b952ca57
[ "MIT" ]
1
2021-06-18T13:42:20.000Z
2021-06-18T13:42:20.000Z
prune/visualize.py
PaulLerner/Plumcot
7e5a6fed1bc3d099a0644f8baba77304b952ca57
[ "MIT" ]
2
2020-09-01T09:45:17.000Z
2020-09-22T14:32:01.000Z
prune/visualize.py
PaulLerner/Prune
7e5a6fed1bc3d099a0644f8baba77304b952ca57
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """Usage: visualize.py gecko (<hypotheses_path>|<database.task.protocol>) <uri> [--map --tag_na --database.task.protocol=<database.task.protocol> --embeddings=<embeddings>] visualize.py speakers (<hypotheses_path>|<database.task.protocol>) <uri> visualize.py update_distanc...
36.158798
165
0.651395
0
0
249
0.029555
0
0
0
0
2,766
0.328309
204d1e3c250e8ba9939e2ae7da3513ab0b097992
16,003
py
Python
hopper_controller/src/ros_abstraction/leg_controller.py
CreedyNZ/Hopper_ROS
1e6354109f034a7d1d41a5b39ddcb632cfee64b2
[ "MIT" ]
36
2018-12-19T18:03:08.000Z
2022-02-21T16:20:12.000Z
hopper_controller/src/ros_abstraction/leg_controller.py
CreedyNZ/Hopper_ROS
1e6354109f034a7d1d41a5b39ddcb632cfee64b2
[ "MIT" ]
null
null
null
hopper_controller/src/ros_abstraction/leg_controller.py
CreedyNZ/Hopper_ROS
1e6354109f034a7d1d41a5b39ddcb632cfee64b2
[ "MIT" ]
7
2019-08-11T20:31:27.000Z
2021-09-19T04:34:18.000Z
from __future__ import division import rospy import tf2_ros from threading import Event from Queue import Queue, Empty from hopper_controller.srv import MoveLegsToPosition, MoveCoreToPosition, MoveLegsUntilCollision, MoveLegsToRelativePosition, MoveBodyRelative, ReadCurrentLegPositions, ReadCurrentLegPositionsRespons...
57.981884
200
0.727551
15,433
0.964382
0
0
0
0
0
0
705
0.044054
204fbf91dd0345c4f0a3d33b337de07d901d56be
1,004
py
Python
featureExtractor/graph_features.py
MatrixBlake/AuthorProfilingAbuseDetection
0abd109a23a52cfe4b8cfc65aac08eb9762705f6
[ "MIT" ]
10
2018-06-11T05:57:39.000Z
2021-10-04T15:11:25.000Z
featureExtractor/graph_features.py
MatrixBlake/AuthorProfilingAbuseDetection
0abd109a23a52cfe4b8cfc65aac08eb9762705f6
[ "MIT" ]
1
2020-12-06T13:05:35.000Z
2021-02-10T08:01:13.000Z
featureExtractor/graph_features.py
MatrixBlake/AuthorProfilingAbuseDetection
0abd109a23a52cfe4b8cfc65aac08eb9762705f6
[ "MIT" ]
7
2019-05-22T04:09:55.000Z
2021-10-30T11:50:37.000Z
import numpy import os class GraphFeatures: def __init__(self, CONFIG): self.BASE = CONFIG['BASE'] self.EMBED_DIM = 200 self.authors = {} with open(os.path.join(self.BASE, 'resources', 'authors.txt')) as authors: for line in authors.readlines(): text_i...
31.375
82
0.581673
978
0.974104
0
0
0
0
0
0
54
0.053785
2050c46574beaa8d6730b8207eba67b732239e3d
4,314
py
Python
oase-root/libs/backyardlibs/monitoring_adapter/Grafana/Grafana_formatting.py
Masa-Yasuno/oase
90f3cee73c0d9b3153808a4a72bd19984a4873f9
[ "Apache-2.0" ]
9
2020-03-25T07:51:47.000Z
2022-02-07T00:07:28.000Z
oase-root/libs/backyardlibs/monitoring_adapter/Grafana/Grafana_formatting.py
Masa-Yasuno/oase
90f3cee73c0d9b3153808a4a72bd19984a4873f9
[ "Apache-2.0" ]
1,164
2021-01-28T23:16:11.000Z
2022-03-28T07:23:10.000Z
oase-root/libs/backyardlibs/monitoring_adapter/Grafana/Grafana_formatting.py
Masa-Yasuno/oase
90f3cee73c0d9b3153808a4a72bd19984a4873f9
[ "Apache-2.0" ]
25
2020-03-17T06:48:30.000Z
2022-02-15T15:13:44.000Z
# Copyright 2019 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 law or agreed to in wri...
28.95302
157
0.607557
0
0
0
0
0
0
0
0
2,194
0.457465
205195453564dfb12dd43dd630b3ac86bfdd8b65
6,077
py
Python
flask_occam/mixins.py
bprinty/Flask-Occam
4ceae0d810656c187c37eaf78ef323b7d06c6b51
[ "MIT" ]
2
2020-04-25T12:40:39.000Z
2021-06-03T08:21:17.000Z
flask_occam/mixins.py
bprinty/Flask-Occam
4ceae0d810656c187c37eaf78ef323b7d06c6b51
[ "MIT" ]
5
2019-10-25T04:40:32.000Z
2021-05-26T15:07:40.000Z
flask_occam/mixins.py
bprinty/Flask-Occam
4ceae0d810656c187c37eaf78ef323b7d06c6b51
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Database mixins # # ------------------------------------------------ # imports # ------- from flask import current_app # helpers # ------- def current_db(): return current_app.extensions['sqlalchemy'].db # mixins # ------ class ModelMixin(object): """ Example database mixin...
27.008889
89
0.53974
5,816
0.957051
0
0
4,159
0.684384
0
0
2,819
0.46388
2052bb06764e5c0224b0e6c8510fd80835c27b0c
392
py
Python
crm/inv/migrations/0007_auto_20200407_1034.py
javvadigithub/apicrm
285e248b33a3f4cfe29522940f1c3a669efa041f
[ "MIT" ]
null
null
null
crm/inv/migrations/0007_auto_20200407_1034.py
javvadigithub/apicrm
285e248b33a3f4cfe29522940f1c3a669efa041f
[ "MIT" ]
null
null
null
crm/inv/migrations/0007_auto_20200407_1034.py
javvadigithub/apicrm
285e248b33a3f4cfe29522940f1c3a669efa041f
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-07 10:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('inv', '0006_auto_20200407_1033'), ] operations = [ migrations.AlterField( model_name='product', name='stock', ...
20.631579
60
0.596939
299
0.762755
0
0
0
0
0
0
93
0.237245
2053a68db0bd72f652dee47d009977bcd39210e3
2,577
py
Python
ephios/core/signals.py
garinm90/ephios
7d04d3287ae16ee332e31add1f25829b199f29a5
[ "MIT" ]
null
null
null
ephios/core/signals.py
garinm90/ephios
7d04d3287ae16ee332e31add1f25829b199f29a5
[ "MIT" ]
null
null
null
ephios/core/signals.py
garinm90/ephios
7d04d3287ae16ee332e31add1f25829b199f29a5
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.dispatch import receiver from ephios.core import mail from ephios.core.models import LocalParticipation from ephios.core.plugins import PluginSignal # PluginSignals are only send out to enabled plugins. register_consequence_handlers = PluginSignal() """ This...
35.30137
108
0.788902
0
0
0
0
642
0.249127
0
0
1,584
0.614668
2053e2387ca9e5237b938400a0d5fb3550ced8c5
401
py
Python
onetest4.py
Kupets77/Testing1
93e0c6f0960d878b491f46c4b6c3ea80574e7394
[ "Apache-2.0" ]
null
null
null
onetest4.py
Kupets77/Testing1
93e0c6f0960d878b491f46c4b6c3ea80574e7394
[ "Apache-2.0" ]
null
null
null
onetest4.py
Kupets77/Testing1
93e0c6f0960d878b491f46c4b6c3ea80574e7394
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from group import Group from application import Application @pytest.fixture def app(request): fixture = Application() request.addfinalizer(fixture.destroy) return fixture def test_one(app): app.open_catalog_page() app.open_autorisation() app.autorisation(G...
23.588235
85
0.730673
0
0
0
0
122
0.304239
0
0
59
0.147132
20556093e3cbd97c50d9535880c7159834951ef0
2,116
py
Python
byceps/services/shop/order/actions/create_ticket_bundles.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
null
null
null
byceps/services/shop/order/actions/create_ticket_bundles.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
null
null
null
byceps/services/shop/order/actions/create_ticket_bundles.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
null
null
null
""" byceps.services.shop.order.actions.create_ticket_bundles ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from .....typing import UserID from ....ticketing.dbmodels.ticket_bundle import TicketBundle from...
29.388889
75
0.71172
0
0
0
0
0
0
0
0
401
0.189509
2055e8ec591e899da3b0c94d3770cf3dfa0e07d4
450
py
Python
apps/track/migrations/0006_auto_20200611_0101.py
martinlehoux/django_bike
05373d2649647fe8ebadb0aad54b9a7ec1900fe7
[ "MIT" ]
1
2020-08-12T17:53:37.000Z
2020-08-12T17:53:37.000Z
apps/track/migrations/0006_auto_20200611_0101.py
martinlehoux/django_bike
05373d2649647fe8ebadb0aad54b9a7ec1900fe7
[ "MIT" ]
12
2020-07-03T03:52:00.000Z
2021-09-22T18:00:44.000Z
apps/track/migrations/0006_auto_20200611_0101.py
martinlehoux/django_bike
05373d2649647fe8ebadb0aad54b9a7ec1900fe7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-11 01:01 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("track", "0005_auto_20200610_2246"), ] operations = [ migrations.RenameModel( old_name="TrackPoint", new_name="Point", ...
20.454545
47
0.56
365
0.811111
0
0
0
0
0
0
121
0.268889
205660960327a896bf31bd564783248e520146a9
1,108
py
Python
dexter/admin/widgets.py
CodeForAfrica/mma-dexter
10d7f0c51bb935399c708a432699e06418049a33
[ "Apache-2.0" ]
12
2015-06-14T05:50:39.000Z
2021-09-12T17:03:47.000Z
dexter/admin/widgets.py
CodeForAfrica/mma-dexter
10d7f0c51bb935399c708a432699e06418049a33
[ "Apache-2.0" ]
32
2019-07-25T06:17:31.000Z
2019-08-05T02:41:42.000Z
dexter/admin/widgets.py
CodeForAfricaLabs/mma-dexter
10d7f0c51bb935399c708a432699e06418049a33
[ "Apache-2.0" ]
9
2016-04-04T03:08:22.000Z
2020-02-19T09:55:45.000Z
from cgi import escape from wtforms import widgets from wtforms.compat import text_type from wtforms.widgets.core import html_params, HTMLString class CheckboxSelectWidget(widgets.Select): """ Select widget that is a list of checkboxes """ def __call__(self, field, **kwargs): if 'id' in kwargs: ...
33.575758
138
0.620036
959
0.865523
0
0
353
0.318592
0
0
227
0.204874
2059823110054469bda0c1cbc025a00aa2057e4b
6,702
py
Python
openspeech/lm/transformer_lm.py
CanYouImagine/openspeech
095d78828a9caed0151727897f35534231947846
[ "Apache-2.0", "MIT" ]
207
2021-07-22T02:04:47.000Z
2022-03-31T07:24:12.000Z
openspeech/lm/transformer_lm.py
tqslj2/openspeech
10307587f08615224df5a868fb5249c68c70b12d
[ "Apache-2.0", "MIT" ]
81
2021-07-21T16:52:22.000Z
2022-03-31T14:56:54.000Z
openspeech/lm/transformer_lm.py
tqslj2/openspeech
10307587f08615224df5a868fb5249c68c70b12d
[ "Apache-2.0", "MIT" ]
43
2021-07-21T16:33:27.000Z
2022-03-23T09:43:49.000Z
# MIT License # # Copyright (c) 2021 Soohwan Kim and Sangchun Ha and Soyoung Cho # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights...
38.965116
119
0.661594
5,215
0.778126
0
0
0
0
0
0
2,870
0.42823
2059a11952c6bb57e1ddde4398fa3d4afdd9f065
4,540
py
Python
app.py
Mohitsharma44/uodashboard
9654511817b06c6ce73f7cbcdd1415ba0a78004f
[ "MIT" ]
null
null
null
app.py
Mohitsharma44/uodashboard
9654511817b06c6ce73f7cbcdd1415ba0a78004f
[ "MIT" ]
1
2017-07-21T14:41:51.000Z
2017-07-21T16:19:55.000Z
app.py
Mohitsharma44/uodashboard
9654511817b06c6ce73f7cbcdd1415ba0a78004f
[ "MIT" ]
null
null
null
import os import json import time import base64 from io import StringIO from tornado import websocket, web, ioloop, gen, escape # list of clients to push the data to clients = [] class BaseHandler(web.RequestHandler): def get_current_user(self): return self.get_secure_cookie("user") class AudubonHandler...
27.515152
73
0.581278
3,635
0.800661
0
0
432
0.095154
0
0
1,187
0.261454
6443f914d5d0b5b31f9340a5022b1d6bb4a641d5
11,233
py
Python
orcoursetrion/tests/base.py
kboots-mit/orcoursetrion
06f62a903077a1ddfe662e2b7214ba1f97933eb0
[ "BSD-2-Clause" ]
2
2015-06-13T16:14:26.000Z
2015-10-27T17:19:12.000Z
orcoursetrion/tests/base.py
kboots-mit/orcoursetrion
06f62a903077a1ddfe662e2b7214ba1f97933eb0
[ "BSD-2-Clause" ]
43
2015-02-16T17:06:14.000Z
2018-09-07T15:33:14.000Z
orcoursetrion/tests/base.py
kboots-mit/orcoursetrion
06f62a903077a1ddfe662e2b7214ba1f97933eb0
[ "BSD-2-Clause" ]
4
2015-05-27T19:43:59.000Z
2022-03-17T19:01:11.000Z
# -*- coding: utf-8 -*- """ Test base class with commonly used methods and variables """ import json import re import unittest import httpretty class TestGithubBase(unittest.TestCase): """Test Github actions and backing library.""" OAUTH2_TOKEN = '12345' ORG = 'NOT_REAL' URL = 'http://localhost/' ...
30.691257
78
0.517404
11,085
0.986825
0
0
831
0.073978
0
0
2,926
0.260483
6444fc949f84882592e7af529a265c5ac81da84e
4,799
py
Python
evm/scripts/bench_evm384.py
jnordberg/benchmarking
f212eeda06210e64a71e6180091a279342f6f215
[ "Apache-2.0" ]
21
2018-12-10T18:46:12.000Z
2021-11-22T04:42:49.000Z
evm/scripts/bench_evm384.py
jnordberg/benchmarking
f212eeda06210e64a71e6180091a279342f6f215
[ "Apache-2.0" ]
94
2018-12-11T22:52:12.000Z
2021-02-02T23:07:25.000Z
evm/scripts/bench_evm384.py
jnordberg/benchmarking
f212eeda06210e64a71e6180091a279342f6f215
[ "Apache-2.0" ]
7
2018-12-11T22:45:58.000Z
2021-11-22T04:42:03.000Z
#!/usr/bin/env python3 import re import subprocess import nanodurationpy as durationpy import csv import time import datetime import os import shutil import shlex import json # output paths should be mounted docker volumes RESULT_CSV_OUTPUT_PATH = "/evmraceresults" RESULT_CSV_FILENAME = "evm_benchmarks_evmone384.csv...
43.234234
339
0.709731
0
0
0
0
0
0
0
0
2,563
0.53407
64482cc0c9d8191912e52468d78f9daed36c3761
17,755
py
Python
etsin_finder_search/catalog_record_converter.py
CSCfi/etsin-finder-search
c76888de65a3c32d98f78f863850a374606420c1
[ "MIT" ]
null
null
null
etsin_finder_search/catalog_record_converter.py
CSCfi/etsin-finder-search
c76888de65a3c32d98f78f863850a374606420c1
[ "MIT" ]
9
2017-11-11T10:35:41.000Z
2021-01-21T10:58:50.000Z
etsin_finder_search/catalog_record_converter.py
CSCfi/etsin-finder-search
c76888de65a3c32d98f78f863850a374606420c1
[ "MIT" ]
2
2018-03-06T08:19:48.000Z
2019-03-20T06:55:16.000Z
# This file is part of the Etsin service # # Copyright 2017-2018 Ministry of Education and Culture, Finland # # :author: CSC - IT Center for Science Ltd., Espoo Finland <servicedesk@csc.fi> # :license: MIT from etsin_finder_search.reindexing_log import get_logger from etsin_finder_search.utils import \ catalog_rec...
45.293367
148
0.610926
17,113
0.963841
0
0
2,703
0.152239
0
0
3,943
0.222078
6448339d56590e86a2c7d522cbb83b6740c5c6f1
3,350
py
Python
ndb/src/google/cloud/ndb/exceptions.py
juan-rael/google-cloud-python
1d762a11ec8d76a7413aecdc4748699e662c4976
[ "Apache-2.0" ]
null
null
null
ndb/src/google/cloud/ndb/exceptions.py
juan-rael/google-cloud-python
1d762a11ec8d76a7413aecdc4748699e662c4976
[ "Apache-2.0" ]
null
null
null
ndb/src/google/cloud/ndb/exceptions.py
juan-rael/google-cloud-python
1d762a11ec8d76a7413aecdc4748699e662c4976
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.603774
79
0.707164
2,371
0.707761
0
0
0
0
0
0
2,633
0.78597
6448a7050ade05bceafdf46782f6495e4df28414
5,074
py
Python
sourcecode.py
hansalemaos/PDFImage2TXT
cb85c8d3496595128c2985f028dc001c525611c1
[ "Apache-2.0", "MIT" ]
3
2021-12-08T22:46:39.000Z
2022-02-22T02:51:00.000Z
sourcecode.py
hansalemaos/PDFImage2TXT
cb85c8d3496595128c2985f028dc001c525611c1
[ "Apache-2.0", "MIT" ]
null
null
null
sourcecode.py
hansalemaos/PDFImage2TXT
cb85c8d3496595128c2985f028dc001c525611c1
[ "Apache-2.0", "MIT" ]
1
2021-12-18T02:38:43.000Z
2021-12-18T02:38:43.000Z
# coding: utf-8 -*- import pathlib from tkinter.filedialog import askopenfilename from tkinter import Tk import os import re import textwrap import easyocr import string reader = easyocr.Reader(['de','en', 'pt']) erlaubtezeichen = string.ascii_letters+string.digits from pdf2jpg import pdf2jpg wrapper = textwrap.TextWra...
40.269841
163
0.631257
0
0
0
0
0
0
0
0
988
0.194412
64495a18dcefc4b3378d128ce25affb7b2d24c94
8,371
py
Python
arspb/policies.py
jadenvc/ARS
f4082b3a71b1f8255e8d74ebfe4aa4bda668145f
[ "BSD-2-Clause" ]
null
null
null
arspb/policies.py
jadenvc/ARS
f4082b3a71b1f8255e8d74ebfe4aa4bda668145f
[ "BSD-2-Clause" ]
null
null
null
arspb/policies.py
jadenvc/ARS
f4082b3a71b1f8255e8d74ebfe4aa4bda668145f
[ "BSD-2-Clause" ]
null
null
null
# Lint as: python3 ''' Policy class for computing action from weights and observation vector. Horia Mania --- hmania@berkeley.edu Aurelia Guy Benjamin Recht ''' """Policy class for computing action from weights and observation vector. It is a modified policy class from third_party/py/ARS/code/policies.py. """ i...
35.470339
87
0.699797
7,922
0.946362
0
0
0
0
0
0
2,486
0.296978
644ac38694b94344139cb74290d5bfa4af1b100b
1,363
py
Python
app/post/migrations/0003_auto_20200418_1922.py
FinalProject-Team4/Server_DaangnMarket
258eb8c79fcbed69d516f521e6194cac7b315a58
[ "MIT" ]
1
2020-06-20T12:52:07.000Z
2020-06-20T12:52:07.000Z
app/post/migrations/0003_auto_20200418_1922.py
FinalProject-Team4/Server_DaangnMarket
258eb8c79fcbed69d516f521e6194cac7b315a58
[ "MIT" ]
34
2020-03-16T12:09:14.000Z
2021-04-08T20:23:42.000Z
app/post/migrations/0003_auto_20200418_1922.py
FinalProject-Team4/Server_DaangnMarket
258eb8c79fcbed69d516f521e6194cac7b315a58
[ "MIT" ]
2
2020-03-22T06:45:39.000Z
2020-03-22T06:55:11.000Z
# Generated by Django 3.0.4 on 2020-04-18 10:22 import core.managers from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('pos...
34.948718
149
0.592076
1,217
0.871152
0
0
0
0
0
0
277
0.198282
644c0eea66543b024562d743d76998786e9627ec
1,657
py
Python
tests/operators/test_dbt_operator.py
jennybrown8/airflow-dbt
bd63ae8317770dfb490ae32548ce0e96834c7b3c
[ "MIT" ]
2
2020-08-12T20:01:35.000Z
2020-08-12T20:01:38.000Z
tests/operators/test_dbt_operator.py
jennybrown8/airflow-dbt
bd63ae8317770dfb490ae32548ce0e96834c7b3c
[ "MIT" ]
1
2021-04-22T23:52:00.000Z
2021-04-22T23:52:00.000Z
tests/operators/test_dbt_operator.py
jennybrown8/airflow-dbt
bd63ae8317770dfb490ae32548ce0e96834c7b3c
[ "MIT" ]
1
2021-03-12T20:51:54.000Z
2021-03-12T20:51:54.000Z
import datetime from unittest import TestCase, mock from airflow import DAG, configuration from airflow_dbt.hooks.dbt_hook import DbtCliHook from airflow_dbt.operators.dbt_operator import ( DbtSeedOperator, DbtSnapshotOperator, DbtRunOperator, DbtTestOperator ) class TestDbtOperator(TestCase): def...
29.070175
56
0.640314
1,376
0.830416
0
0
1,080
0.65178
0
0
131
0.079059
644c508da3f4fdfb9ed54fd1fe16c13cf801464e
4,122
py
Python
Ashcraft-rsa-algorithm.py
Chillica/Algorithms
ece45ec5b05640f795de56b7e2b8bf6836659a9e
[ "MIT" ]
null
null
null
Ashcraft-rsa-algorithm.py
Chillica/Algorithms
ece45ec5b05640f795de56b7e2b8bf6836659a9e
[ "MIT" ]
null
null
null
Ashcraft-rsa-algorithm.py
Chillica/Algorithms
ece45ec5b05640f795de56b7e2b8bf6836659a9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Jacob Ashcraft RSA Algorithm 2 Advanced Algorithms Professor Teichert """ import math ###################### Constants ###################### primes = [110487089277121433970806926710031676468486143869889341376537597422615205558243704080712263653321436167325483283204907700784269778678235765...
38.886792
320
0.737506
0
0
0
0
0
0
0
0
661
0.160359
644d64204bad398a95c41f4ac02a80097e324fcd
2,966
py
Python
tasks/NamedEntityRecognition.py
cmathx/transformers-tutorial
1d27100eda528c58952ff96935effa5fbf784422
[ "MIT" ]
1
2021-01-19T00:45:36.000Z
2021-01-19T00:45:36.000Z
tasks/NamedEntityRecognition.py
cmathx/transformers-tutorial
1d27100eda528c58952ff96935effa5fbf784422
[ "MIT" ]
null
null
null
tasks/NamedEntityRecognition.py
cmathx/transformers-tutorial
1d27100eda528c58952ff96935effa5fbf784422
[ "MIT" ]
null
null
null
from transformers import pipeline nlp = pipeline("ner") sequence = """Hugging Face Inc. is a company based in New York City. Its headquarters are in DUMBO, therefore very close to the Manhattan Bridge which is visible from the window.""" print(nlp(sequence)) #[ # {'word': 'Hu', 'score': 0.999563276767730...
57.038462
541
0.608227
0
0
0
0
0
0
0
0
2,242
0.7559
644dcbddb7fdd16f064ac3d720197b1d882c7b29
476
py
Python
tests/misc/mtcnn/mtcnn_test.py
indiradutta/PyVision
cf74da32a3469ddcce9917ac1f2fcaaeefdeacdf
[ "BSD-3-Clause" ]
31
2020-05-03T07:03:01.000Z
2022-01-29T15:29:22.000Z
tests/misc/mtcnn/mtcnn_test.py
indiradutta/PyVision
cf74da32a3469ddcce9917ac1f2fcaaeefdeacdf
[ "BSD-3-Clause" ]
13
2020-05-25T14:23:46.000Z
2021-08-04T10:38:02.000Z
tests/misc/mtcnn/mtcnn_test.py
indiradutta/PyVision
cf74da32a3469ddcce9917ac1f2fcaaeefdeacdf
[ "BSD-3-Clause" ]
12
2020-05-24T22:26:59.000Z
2021-08-03T18:30:51.000Z
from pyvision.misc.mtcnn import MTCNN from pyvision.misc.mtcnn.utils.visualize import show_boxes, _show_boxes from PIL import Image import cv2 from glob import glob a = [glob("tests/misc/mtcnn/images/*.{}".format(s)) for s in ["jpg", "jpeg", "png"]] imgs = [i for ai in a for i in ai] mtcnn = MTCNN() for img in imgs:...
23.8
84
0.653361
0
0
0
0
0
0
0
0
46
0.096639
644f0bed868677fe86feb9405b9bdbfa79b1d42d
2,723
py
Python
poet_distributed/niches/minigrid/minigrid.py
gdicker1/poet
388a239d957e719eff1e774f5a8587496ca15474
[ "Apache-2.0" ]
null
null
null
poet_distributed/niches/minigrid/minigrid.py
gdicker1/poet
388a239d957e719eff1e774f5a8587496ca15474
[ "Apache-2.0" ]
null
null
null
poet_distributed/niches/minigrid/minigrid.py
gdicker1/poet
388a239d957e719eff1e774f5a8587496ca15474
[ "Apache-2.0" ]
null
null
null
from ..core import Niche from .model import Model, simulate from .env import minigridhard_custom, Env_config from collections import OrderedDict DEFAULT_ENV = Env_config( name='default_env', lava_prob=[0., 0.1], obstacle_lvl=[0., 1.], box_to_ball_prob=[0., 0.3], door_prob=[0., 0...
35.363636
106
0.614763
2,367
0.869262
0
0
0
0
0
0
210
0.077121
644fa421d3fdee3839ddd205617f6c42dc3bfce9
704
py
Python
machine/qemu/sources/u-boot/tools/binman/etype/intel_cmc.py
muddessir/framework
5b802b2dd7ec9778794b078e748dd1f989547265
[ "MIT" ]
1
2021-11-21T19:56:29.000Z
2021-11-21T19:56:29.000Z
machine/qemu/sources/u-boot/tools/binman/etype/intel_cmc.py
muddessir/framework
5b802b2dd7ec9778794b078e748dd1f989547265
[ "MIT" ]
null
null
null
machine/qemu/sources/u-boot/tools/binman/etype/intel_cmc.py
muddessir/framework
5b802b2dd7ec9778794b078e748dd1f989547265
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: GPL-2.0+ # Copyright (c) 2016 Google, Inc # Written by Simon Glass <sjg@chromium.org> # # Entry-type module for Intel Chip Microcode binary blob # from binman.etype.blob_ext import Entry_blob_ext class Entry_intel_cmc(Entry_blob_ext): """Entry containing an Intel Chipset Micro Code (CMC...
30.608696
73
0.724432
478
0.678977
0
0
0
0
0
0
510
0.724432
6451a5afeb68d14a7e51707380bfe62ee1b2d8cf
697
py
Python
data/addresses.py
katwyp/python_training
0dc4b8ed146ff6322864039a9e77fbd5cd62ef85
[ "Apache-2.0" ]
null
null
null
data/addresses.py
katwyp/python_training
0dc4b8ed146ff6322864039a9e77fbd5cd62ef85
[ "Apache-2.0" ]
null
null
null
data/addresses.py
katwyp/python_training
0dc4b8ed146ff6322864039a9e77fbd5cd62ef85
[ "Apache-2.0" ]
null
null
null
from model.address import Address testdata = [ Address(firstname="", lastname="", address="", homephone="", mobile="", workphone="", secondaryphone="", email="", email2="", email3=""), Address(firstname="address1", lastname="address1", address="address1", homephone="address1", mobile="...
49.785714
108
0.652798
0
0
0
0
0
0
0
0
220
0.315638
6451d0079ea88137df36988360ef50d249625cbd
447
py
Python
main/urls.py
Kadweka/STUDENTS-award
b679bb9cc240b0e56feba4bea780da24ad61a31b
[ "MIT" ]
null
null
null
main/urls.py
Kadweka/STUDENTS-award
b679bb9cc240b0e56feba4bea780da24ad61a31b
[ "MIT" ]
4
2021-03-19T08:32:26.000Z
2022-03-12T00:05:33.000Z
main/urls.py
hussein18149/STUDENTS-award
b679bb9cc240b0e56feba4bea780da24ad61a31b
[ "MIT" ]
null
null
null
from . import views from django.conf.urls import url from django.conf.urls.static import static from django.conf import settings urlpatterns=[ url(r'^$', views.home,name='home'), url(r'^award/',views.add_student, name='student'), url(r'^awards/',views.awards,name='awards'), url(r'students/',views.my_st...
29.8
80
0.727069
0
0
0
0
0
0
0
0
71
0.158837
6454be3091761768943878624a7f7adabf1b301c
7,176
py
Python
converters/usfm2html_converter.py
unfoldingWord-dev/tx-job-handler
5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f
[ "MIT" ]
1
2020-11-25T04:07:37.000Z
2020-11-25T04:07:37.000Z
converters/usfm2html_converter.py
unfoldingWord-dev/tx-job-handler
5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f
[ "MIT" ]
52
2018-10-25T05:49:30.000Z
2022-03-16T22:31:57.000Z
converters/usfm2html_converter.py
unfoldingWord-dev/tx-job-handler
5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f
[ "MIT" ]
null
null
null
import os import tempfile import string from bs4 import BeautifulSoup from shutil import copyfile from rq_settings import prefix, debug_mode_flag from app_settings.app_settings import AppSettings from general_tools.file_utils import write_file, remove_tree, get_files from converters.converter import Converter from tx_...
61.862069
226
0.636148
6,785
0.94446
0
0
0
0
0
0
2,662
0.370546
6456d6157ce3260e6b735493caaee1a68c6e74f6
11,764
py
Python
xen-4.6.0/tools/python/xen/migration/legacy.py
StanPlatinum/VMI-as-a-Service
5828a9c73815ad7e043428e7e56dc0715aaa60a1
[ "MIT" ]
3
2019-08-31T19:58:24.000Z
2020-10-02T06:50:22.000Z
xen-4.6.0/tools/python/xen/migration/legacy.py
StanPlatinum/VMI-as-a-Service
5828a9c73815ad7e043428e7e56dc0715aaa60a1
[ "MIT" ]
1
2020-10-16T19:13:49.000Z
2020-10-16T19:13:49.000Z
xen-4.6.0/tools/python/xen/migration/legacy.py
StanPlatinum/ROP-detection-inside-VMs
7b39298dd0791711cbd78fd0730b819b755cc995
[ "MIT" ]
1
2021-06-06T21:10:21.000Z
2021-06-06T21:10:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Legacy migration stream information. Documentation and record structures for legacy migration, for both libxc and libxl. """ """ Libxc: SAVE/RESTORE/MIGRATE PROTOCOL ============================= The general form of a stream of chunks is a header followed by a body...
37.227848
82
0.650714
0
0
0
0
0
0
0
0
10,062
0.855321
645788a314377b0b95dd2d2eb4ba83dae9fbf763
2,102
py
Python
aoc2018/dec10/solve.py
robfalck/AoC2018
9cc6a94d11d70ea11df4999df2fdf955cc5c155a
[ "Apache-2.0" ]
null
null
null
aoc2018/dec10/solve.py
robfalck/AoC2018
9cc6a94d11d70ea11df4999df2fdf955cc5c155a
[ "Apache-2.0" ]
null
null
null
aoc2018/dec10/solve.py
robfalck/AoC2018
9cc6a94d11d70ea11df4999df2fdf955cc5c155a
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, division, absolute_import import re import numpy as np re_posvel = re.compile(r'position=<(.+),(.+)> velocity=<(.+),(.+)>') np.set_printoptions(linewidth=1024, edgeitems=1000) def parse(s): """ Parse out the positions and velocities. """ match = (re_posvel.sear...
26.275
91
0.5647
0
0
0
0
0
0
0
0
567
0.269743
64586d11389e7cde5b3da86656bab0ca595bc703
179
py
Python
rockstarUse.py
druv777/TensorFlow-clone
70940acd8ef63455990522093c5642008e979415
[ "MIT" ]
null
null
null
rockstarUse.py
druv777/TensorFlow-clone
70940acd8ef63455990522093c5642008e979415
[ "MIT" ]
null
null
null
rockstarUse.py
druv777/TensorFlow-clone
70940acd8ef63455990522093c5642008e979415
[ "MIT" ]
null
null
null
from rockstar import RockStar swift_code = "print('Hello world')" rock_it_bro = RockStar(days=1900, file_name='hello.swift', code=swift_code) rock_it_bro.make_me_a_rockstar()
35.8
76
0.782123
0
0
0
0
0
0
0
0
35
0.195531
6458a243324d7ff5c0c4b5c43474456bdfc889fa
476
py
Python
mmedit/core/evaluation/__init__.py
KKIEEK/mmediting
e3e3c934049c7e2067334074c535f80c8f4795cc
[ "Apache-2.0" ]
null
null
null
mmedit/core/evaluation/__init__.py
KKIEEK/mmediting
e3e3c934049c7e2067334074c535f80c8f4795cc
[ "Apache-2.0" ]
null
null
null
mmedit/core/evaluation/__init__.py
KKIEEK/mmediting
e3e3c934049c7e2067334074c535f80c8f4795cc
[ "Apache-2.0" ]
1
2022-03-10T01:00:24.000Z
2022-03-10T01:00:24.000Z
# Copyright (c) OpenMMLab. All rights reserved. from .eval_hooks import DistEvalIterHook, EvalIterHook from .inceptions import FID, KID, InceptionV3 from .metrics import (L1Evaluation, connectivity, gradient_error, mse, niqe, psnr, reorder_image, sad, ssim) __all__ = [ 'mse', 'sad', 'psnr', '...
39.666667
76
0.689076
0
0
0
0
0
0
0
0
189
0.397059
645a955508585ae81c1238e16367225f63eb2ee3
9,638
py
Python
fun/regexp.py
jburgy/blog
60ecb19069916fe7718f0f90c946d2d6af836d3e
[ "Apache-2.0" ]
1
2019-05-06T12:43:33.000Z
2019-05-06T12:43:33.000Z
fun/regexp.py
jburgy/blog
60ecb19069916fe7718f0f90c946d2d6af836d3e
[ "Apache-2.0" ]
null
null
null
fun/regexp.py
jburgy/blog
60ecb19069916fe7718f0f90c946d2d6af836d3e
[ "Apache-2.0" ]
1
2021-03-14T16:50:51.000Z
2021-03-14T16:50:51.000Z
# -*-coding:utf8;-*- """ `Regular Expression Search Algorithm`_ After playing with `Thompson's construction`_ in `C`_ and `x86`_, I decided to take another look in python many years later. Tokenization and conversion to postfix are lifted almost verbatim from the C implementation apart for the fact they rely on pytho...
34.92029
103
0.534862
5,005
0.519191
1,306
0.135477
99
0.01027
0
0
4,801
0.498029
645ad370c4b50b933af7d6c182f859d5bc0ad82b
2,785
py
Python
python/v1/buyers/publisher_profiles/get_publisher_profiles.py
googleads/authorized-buyers-marketplace-api-samples
73ae731785a19aa418fe5561831605b7c209c651
[ "Apache-2.0" ]
null
null
null
python/v1/buyers/publisher_profiles/get_publisher_profiles.py
googleads/authorized-buyers-marketplace-api-samples
73ae731785a19aa418fe5561831605b7c209c651
[ "Apache-2.0" ]
null
null
null
python/v1/buyers/publisher_profiles/get_publisher_profiles.py
googleads/authorized-buyers-marketplace-api-samples
73ae731785a19aa418fe5561831605b7c209c651
[ "Apache-2.0" ]
1
2022-01-09T18:06:59.000Z
2022-01-09T18:06:59.000Z
#!/usr/bin/python # # Copyright 2021 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
34.382716
80
0.694434
0
0
0
0
0
0
0
0
1,554
0.557989
645b06e11f7e29a48f1983c1170a67c3611f1666
404
py
Python
epicteller/core/model/campaign.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
epicteller/core/model/campaign.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
epicteller/core/model/campaign.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from typing import Optional from pydantic import BaseModel from epicteller.core.util.enum import CampaignState class Campaign(BaseModel): id: int url_token: str room_id: int name: str description: str owner_id: int state: CampaignState is...
18.363636
51
0.693069
242
0.59901
0
0
0
0
0
0
44
0.108911
645cc29f9d18857355b0d43483ff2c2db043bdbd
2,206
py
Python
polls/views.py
biljiang/mysite
15c0a0d7bb6bd46587f4cf805ce43f4c570de1be
[ "BSD-3-Clause" ]
null
null
null
polls/views.py
biljiang/mysite
15c0a0d7bb6bd46587f4cf805ce43f4c570de1be
[ "BSD-3-Clause" ]
null
null
null
polls/views.py
biljiang/mysite
15c0a0d7bb6bd46587f4cf805ce43f4c570de1be
[ "BSD-3-Clause" ]
null
null
null
#from django.shortcuts import render # Create your views here. from django.http import HttpResponse,HttpResponseRedirect #from django.template import loader from django.shortcuts import get_object_or_404,render from django.urls import reverse from django.views import generic from .models import Question, Cho...
31.971014
84
0.679964
419
0.189937
0
0
0
0
0
0
1,124
0.509519
645d11df00b3707ac1991bf8fa1726c7105c09fb
152
py
Python
codeforces/anirudhak47/616/E.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
3
2020-07-09T16:15:42.000Z
2020-07-17T13:19:42.000Z
codeforces/anirudhak47/616/E.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
null
null
null
codeforces/anirudhak47/616/E.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
1
2020-07-17T13:19:48.000Z
2020-07-17T13:19:48.000Z
n,m=map(int,input().split()) mod=10**9+7 sum=(n%mod)*(m%mod) i=1 j=1 res=0 while j<=n: res+=(n//j)*j i+=1 j=i print((sum-res)%mod)
13.818182
29
0.493421
0
0
0
0
0
0
0
0
0
0
645d51e83bcc360907f671643926a45eb101ea1a
5,103
py
Python
tests/test_binning_process_sketch.py
jensgk/optbinning
5ccd892fa4ee0a745ab539cee10a2069b35de6da
[ "Apache-2.0" ]
207
2020-01-23T21:32:59.000Z
2022-03-30T06:33:21.000Z
tests/test_binning_process_sketch.py
jensgk/optbinning
5ccd892fa4ee0a745ab539cee10a2069b35de6da
[ "Apache-2.0" ]
133
2020-01-23T22:14:35.000Z
2022-03-29T14:05:04.000Z
tests/test_binning_process_sketch.py
jensgk/optbinning
5ccd892fa4ee0a745ab539cee10a2069b35de6da
[ "Apache-2.0" ]
50
2020-01-27T15:37:08.000Z
2022-03-30T06:33:25.000Z
""" BinningProcessSketch testing. """ # Guillermo Navas-Palencia <g.navas.palencia@gmail.com> # Copyright (C) 2021 import pandas as pd from pytest import approx, raises from optbinning import BinningProcessSketch from optbinning import OptimalBinningSketch from optbinning.exceptions import NotSolvedError from optbi...
27.435484
79
0.692926
0
0
0
0
0
0
0
0
258
0.050558
645d92fe6f4202711d6029dad6f5b119f8748065
8,798
py
Python
src/game/bt.py
btdevel/bt
23abdf0860484a4adcfbe2bcbe94eebca7f820fd
[ "MIT" ]
1
2017-06-30T00:35:05.000Z
2017-06-30T00:35:05.000Z
src/game/bt.py
btdevel/bt
23abdf0860484a4adcfbe2bcbe94eebca7f820fd
[ "MIT" ]
null
null
null
src/game/bt.py
btdevel/bt
23abdf0860484a4adcfbe2bcbe94eebca7f820fd
[ "MIT" ]
null
null
null
from math import pi, sin, cos from direct.showbase.DirectObject import DirectObject from direct.showbase.ShowBase import ShowBase from direct.gui.DirectGui import * from direct.interval.IntervalGlobal import * from panda3d.core import lookAt from panda3d.core import GeomVertexFormat, GeomVertexData from panda3d.core i...
29.424749
84
0.591725
6,582
0.748125
0
0
0
0
0
0
379
0.043078
64605d81e5e5b09d3d13c2dc37b69d44bd06c958
8,485
py
Python
Martel/convert_re.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
3
2017-10-23T21:53:57.000Z
2019-09-23T05:14:12.000Z
Martel/convert_re.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
null
null
null
Martel/convert_re.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
6
2020-02-26T16:34:20.000Z
2020-03-04T15:34:00.000Z
# Copyright 2000-2001, Dalke Scientific Software, LLC # Distributed under the Biopython License Agreement (see the LICENSE file). """Converts a regular expression pattern string into an Expression tree. This is not meant to be an externally usable module. This works by using msre_parse.py to parse the pattern. The ...
35.061983
79
0.649971
757
0.089216
0
0
0
0
0
0
3,551
0.418503
646093a875532db734c0ea4b2ff24388f33c4f32
2,633
py
Python
Paper_Specific_Versions/2019_DTI/Code/subjects_lists/lists_stats_dMRI.py
adamwild/AD-ML
e4ac0b7d312ab482b9b52bb3f5c6745cc06431e9
[ "MIT" ]
null
null
null
Paper_Specific_Versions/2019_DTI/Code/subjects_lists/lists_stats_dMRI.py
adamwild/AD-ML
e4ac0b7d312ab482b9b52bb3f5c6745cc06431e9
[ "MIT" ]
null
null
null
Paper_Specific_Versions/2019_DTI/Code/subjects_lists/lists_stats_dMRI.py
adamwild/AD-ML
e4ac0b7d312ab482b9b52bb3f5c6745cc06431e9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = ["Junhao Wen", "Simona Bottani", "Jorge Samper-Gonzalez"] __copyright__ = "Copyright 2016-2018 The Aramis Lab Team" __credits__ = ["Junhao Wen"] __license__ = "See LICENSE.txt file" __version__ = "0.1.0" __status__ = "Development" import numpy as np import pandas as pd import os d...
46.192982
126
0.567793
0
0
0
0
0
0
0
0
867
0.329282
64614e9f6807adb4c793f96caabf995d3909e4b8
162
py
Python
idManager/model/integration/message_data.py
lgarciasbr/idm-api
3517d29d55eb2a06fb5b4b21359b6cf6d11529a0
[ "Apache-2.0" ]
2
2018-01-14T22:43:43.000Z
2018-01-14T22:43:48.000Z
idManager/model/integration/message_data.py
lgarciasbr/idm-api
3517d29d55eb2a06fb5b4b21359b6cf6d11529a0
[ "Apache-2.0" ]
null
null
null
idManager/model/integration/message_data.py
lgarciasbr/idm-api
3517d29d55eb2a06fb5b4b21359b6cf6d11529a0
[ "Apache-2.0" ]
null
null
null
from flask import current_app def send_log_message(text): try: log = current_app.extensions['sentry'].captureMessage(text) except: pass
18
67
0.679012
0
0
0
0
0
0
0
0
8
0.049383
64619e0950043d9a2114890655d9f9071818e09f
1,301
py
Python
tests/view/glprograms/test_shaderprogram.py
gsanhueza/BlastSight
4b5c48e7ea5f67b737429f05d5213e9ff1fd399d
[ "MIT" ]
null
null
null
tests/view/glprograms/test_shaderprogram.py
gsanhueza/BlastSight
4b5c48e7ea5f67b737429f05d5213e9ff1fd399d
[ "MIT" ]
1
2022-03-13T17:35:35.000Z
2022-03-13T17:35:35.000Z
tests/view/glprograms/test_shaderprogram.py
gsanhueza/BlastSight
4b5c48e7ea5f67b737429f05d5213e9ff1fd399d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pytest from blastsight.model.elements.nullelement import NullElement from blastsight.view.glprograms.shaderprogram import ShaderProgram from blastsight.view.drawables import GLDrawable class TestShaderProgram: @property def base_program(self): return ShaderProgram() ...
22.824561
66
0.685626
1,082
0.831668
0
0
557
0.428132
0
0
21
0.016141
6462624a7ae5dc8c88954bd7349a57466f638697
2,102
py
Python
tests/diffraction/test_diffraction_r_vortex.py
VasilyevEvgeny/self-focusing_3D
c90b4d78d2d72365566f8a49b325bd48127b1e44
[ "MIT" ]
null
null
null
tests/diffraction/test_diffraction_r_vortex.py
VasilyevEvgeny/self-focusing_3D
c90b4d78d2d72365566f8a49b325bd48127b1e44
[ "MIT" ]
null
null
null
tests/diffraction/test_diffraction_r_vortex.py
VasilyevEvgeny/self-focusing_3D
c90b4d78d2d72365566f8a49b325bd48127b1e44
[ "MIT" ]
null
null
null
from numpy.random import randint from core import BeamR, Propagator, SweepDiffractionExecutorR, BeamVisualizer, xlsx_to_df from tests.diffraction.test_diffraction import TestDiffraction NAME = 'diffraction_r_vortex' class TestDiffractionRVortex(TestDiffraction): def __init__(self, *args, **kwargs): supe...
33.365079
103
0.540913
1,881
0.894862
0
0
0
0
0
0
63
0.029971
6465246c84a3f23d3c843ed1a4eac86a1553e332
22
py
Python
filters/__init__.py
mouradmourafiq/data-analysis
1df2ca020a554f1fdab7cc9e53115e249cc199ac
[ "BSD-2-Clause" ]
17
2015-04-01T12:11:31.000Z
2022-03-15T16:44:01.000Z
filters/__init__.py
mouradmourafiq/data-analysis
1df2ca020a554f1fdab7cc9e53115e249cc199ac
[ "BSD-2-Clause" ]
null
null
null
filters/__init__.py
mouradmourafiq/data-analysis
1df2ca020a554f1fdab7cc9e53115e249cc199ac
[ "BSD-2-Clause" ]
17
2015-01-14T14:59:40.000Z
2021-07-01T05:46:14.000Z
__author__ = 'mourad'
11
21
0.727273
0
0
0
0
0
0
0
0
8
0.363636
6465d405858eb834ed1583ad68a1aa90c937d20f
506
py
Python
NGASpider/nga_topic_wordcloud.py
liamcraft118/PythonLearning
65949b7972afb13231f4f8d842a1b561a02072fb
[ "MIT" ]
null
null
null
NGASpider/nga_topic_wordcloud.py
liamcraft118/PythonLearning
65949b7972afb13231f4f8d842a1b561a02072fb
[ "MIT" ]
null
null
null
NGASpider/nga_topic_wordcloud.py
liamcraft118/PythonLearning
65949b7972afb13231f4f8d842a1b561a02072fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from DB import DB from wordcloud import WordCloud import jieba # class WordCloud(object): if __name__ == '__main__': db = DB() db.connect() result = db.readAllTitle() titles = '' for title in result: titles += title[0] words = " ".join(jieba.cut(titles)) ...
20.24
65
0.63834
0
0
0
0
0
0
0
0
91
0.179842
6465e979caebd8c2c3c49bbbfea16b8f79b275ca
6,611
py
Python
granola/main.py
metergroup/GRANOLA
24abcf9e6429d81047cda24a4343af5563d4e353
[ "Apache-2.0" ]
3
2022-02-13T02:38:28.000Z
2022-03-22T16:59:15.000Z
granola/main.py
metergroup/GRANOLA
24abcf9e6429d81047cda24a4343af5563d4e353
[ "Apache-2.0" ]
27
2022-02-13T18:22:48.000Z
2022-03-31T18:18:41.000Z
granola/main.py
metergroup/GRANOLA
24abcf9e6429d81047cda24a4343af5563d4e353
[ "Apache-2.0" ]
null
null
null
""" This module is deprecated and will be removed in version 1.0. Please use :mod:`~granola.breakfast_cereal` instead """ from granola.breakfast_cereal import Cereal from granola.utils import deprecation class MockSerial(Cereal): """ Deprecated version of :class:`~granola.breakfast_cereal.Cereal`. Will be re...
48.255474
114
0.638179
6,403
0.968537
0
0
0
0
0
0
2,703
0.408864
6465fab1a57ae1dcc41f4c7c95793b6cf4866599
261
py
Python
example/mysite/polls/admin.py
jAlpedrinha/DeclRY
f6f1f18a0cc38d0b502945a6f8baec64c3b9a6fa
[ "BSD-3-Clause" ]
1
2015-08-12T12:02:54.000Z
2015-08-12T12:02:54.000Z
example/mysite/polls/admin.py
jAlpedrinha/DeclRY
f6f1f18a0cc38d0b502945a6f8baec64c3b9a6fa
[ "BSD-3-Clause" ]
null
null
null
example/mysite/polls/admin.py
jAlpedrinha/DeclRY
f6f1f18a0cc38d0b502945a6f8baec64c3b9a6fa
[ "BSD-3-Clause" ]
null
null
null
from declry import site from declry.apps import Application class FormacaoAdmin(Application): list_display = ('nome','modulo','local','data_inicio','data_fim','coordenador') list_filter = ('data_inicio',) search_fields = ('nome','modulo','local')
29
83
0.716475
198
0.758621
0
0
0
0
0
0
91
0.348659
646688417f53dbf07f161490bad6ae8969e89fe1
1,998
py
Python
rdr_service/alembic/versions/20e98a16ad20_requests_log.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/alembic/versions/20e98a16ad20_requests_log.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/alembic/versions/20e98a16ad20_requests_log.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
"""requests_log Revision ID: 20e98a16ad20 Revises: 8fa4d8f2277c Create Date: 2019-07-30 13:49:17.702589 """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = "20e98a16ad20" down_revision = "8fa4d8f2277c" branch_labels = None depen...
30.738462
77
0.657658
0
0
0
0
0
0
0
0
723
0.361862
64674b3e9d685bb7486a3ad36e0717025f9ccb1e
7,156
py
Python
Mydesktop/TriptoGif/test.py
gzyszuuow/BusBunching
e9b01a62e422ae6525d9287bdf46c25aacdf9c6c
[ "Apache-2.0" ]
null
null
null
Mydesktop/TriptoGif/test.py
gzyszuuow/BusBunching
e9b01a62e422ae6525d9287bdf46c25aacdf9c6c
[ "Apache-2.0" ]
null
null
null
Mydesktop/TriptoGif/test.py
gzyszuuow/BusBunching
e9b01a62e422ae6525d9287bdf46c25aacdf9c6c
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd from pandas import DataFrame, Series import random import time import math import datetime as dt import random import copy from datetime import datetime from time import mktime import os import json from functools import cmp_to_key import numpy as np import matp...
30.194093
256
0.675238
0
0
0
0
0
0
0
0
6,466
0.884058
646d2f100cf042a92479d99756359693194052c5
4,654
py
Python
fuelmenu/fuelmenu/modules/rootpw.py
Zipfer/fuel-web
c6c4032eb6e29474e2be0318349265bdb566454c
[ "Apache-2.0" ]
1
2021-04-06T16:13:35.000Z
2021-04-06T16:13:35.000Z
fuelmenu/fuelmenu/modules/rootpw.py
Zipfer/fuel-web
c6c4032eb6e29474e2be0318349265bdb566454c
[ "Apache-2.0" ]
null
null
null
fuelmenu/fuelmenu/modules/rootpw.py
Zipfer/fuel-web
c6c4032eb6e29474e2be0318349265bdb566454c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2013 Mirantis, Inc. # # 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...
35.257576
78
0.56489
3,823
0.821444
0
0
0
0
0
0
1,635
0.351311
646d72d43695b19e055ac78f71a7b68738a02570
6,314
py
Python
train.py
yhgon/cmtf
7a3ffc3a59a7c546a00d3b73be58f7d1c2f1f0cf
[ "MIT" ]
null
null
null
train.py
yhgon/cmtf
7a3ffc3a59a7c546a00d3b73be58f7d1c2f1f0cf
[ "MIT" ]
null
null
null
train.py
yhgon/cmtf
7a3ffc3a59a7c546a00d3b73be58f7d1c2f1f0cf
[ "MIT" ]
null
null
null
from cmtf import CompressiveTransformer from cmtf_ar_wrapper import AutoregressiveWrapper import argparse import random import tqdm import gzip import numpy as np import torch import torch.optim as optim from torch.nn import functional as F from torch.utils.data import DataLoader, Dataset # constants def parse_args(...
34.883978
127
0.63478
549
0.08695
85
0.013462
0
0
0
0
1,001
0.158537
646eb195f8628e5692003244f139891bc4d4d41e
1,094
py
Python
scripts/template_file.py
Aracthor/cpp-maker
6e5f2fb553ecfb849704629f37c57f801fdd072f
[ "MIT" ]
null
null
null
scripts/template_file.py
Aracthor/cpp-maker
6e5f2fb553ecfb849704629f37c57f801fdd072f
[ "MIT" ]
null
null
null
scripts/template_file.py
Aracthor/cpp-maker
6e5f2fb553ecfb849704629f37c57f801fdd072f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ## template_file.py for cpp-maker in /home/aracthor/programs/projects/cpp-maker ## ## Made by Aracthor ## ## Started on Mon Sep 7 12:03:26 2015 Aracthor ## Last Update Wed Sep 9 10:27:36 2015 Aracthor ## from files import File class TemplateFile(File): def __init__(self, path, project): ...
34.1875
95
0.617916
840
0.767824
0
0
0
0
0
0
279
0.255027
646f4083f45e56bf5ee8cc0ae6f1cddc67c84556
179
py
Python
testdust/settling/__init__.py
ibackus/testdust
29e78e4cd2f3466dd503ce863c6db9014da07a04
[ "MIT" ]
null
null
null
testdust/settling/__init__.py
ibackus/testdust
29e78e4cd2f3466dd503ce863c6db9014da07a04
[ "MIT" ]
null
null
null
testdust/settling/__init__.py
ibackus/testdust
29e78e4cd2f3466dd503ce863c6db9014da07a04
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 19 15:32:04 2016 @author: ibackus """ import utils import randomNormalSnap import ppdgrid import analyze import makeICs import plot
14.916667
35
0.73743
0
0
0
0
0
0
0
0
84
0.469274
646f4a42fb873d3bd01eab1b106d9d7f66a19490
6,692
py
Python
devilry/project/common/settings.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
null
null
null
devilry/project/common/settings.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
null
null
null
devilry/project/common/settings.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
null
null
null
######################################################################## # # Defaults for django settings # - See: https://docs.djangoproject.com/en/dev/ref/settings/ # ######################################################################## import os import devilry from .projectspecific_settings import * # noqa from...
32.328502
98
0.648237
0
0
0
0
0
0
0
0
4,788
0.715481
646f4de2404f5c182fc0c6f326f3e3a2142d6fe1
75
py
Python
write_all_proofs.py
dwhalen/holophrasm
0d971428f9879ad3d6c0a781f1a021cff73fb1ce
[ "MIT" ]
33
2016-09-23T15:05:24.000Z
2021-08-30T11:13:35.000Z
write_all_proofs.py
dwhalen/holophrasm
0d971428f9879ad3d6c0a781f1a021cff73fb1ce
[ "MIT" ]
4
2016-12-14T03:41:55.000Z
2020-05-27T20:27:55.000Z
write_all_proofs.py
david-a-wheeler/holophrasm
aea14ea846c7c8980219216859868cc6d2c45422
[ "MIT" ]
12
2016-08-20T10:40:21.000Z
2022-01-03T09:47:01.000Z
import write_proof write_proof.reset() write_proof.write_all_known_proofs()
25
36
0.88
0
0
0
0
0
0
0
0
0
0
64709e39f1c3abfd144073c9040d15f4940e15fc
592
py
Python
tests/test_gym_registers.py
domingoesteban/robolearn_envs
1e10f315abcbb034e613b3b5a7a48662a839c81b
[ "BSD-3-Clause" ]
2
2020-08-20T15:46:55.000Z
2022-02-16T13:45:59.000Z
tests/test_gym_registers.py
domingoesteban/robolearn_envs
1e10f315abcbb034e613b3b5a7a48662a839c81b
[ "BSD-3-Clause" ]
null
null
null
tests/test_gym_registers.py
domingoesteban/robolearn_envs
1e10f315abcbb034e613b3b5a7a48662a839c81b
[ "BSD-3-Clause" ]
1
2020-10-03T11:28:15.000Z
2020-10-03T11:28:15.000Z
import gym import numpy as np from context import robolearn_envs all_envs = gym.envs.registry.all() robolearn_env_ids = [env_spec.id for env_spec in all_envs if env_spec.id.startswith('RoboLearn-')] for env_id in robolearn_env_ids: print('-'*15) print("Environment: %s" % env_id) env ...
23.68
63
0.613176
0
0
0
0
0
0
0
0
76
0.128378
6470d5944c522fadb85e8b00e6d96b7ccc8e434e
7,468
py
Python
xor_nn/genetic_algorithm.py
sgalella/GeneticAlgorithm-XOR
2e7de2e2fc6dfd8bb27d9e09c7be86f75c6db87c
[ "MIT" ]
null
null
null
xor_nn/genetic_algorithm.py
sgalella/GeneticAlgorithm-XOR
2e7de2e2fc6dfd8bb27d9e09c7be86f75c6db87c
[ "MIT" ]
null
null
null
xor_nn/genetic_algorithm.py
sgalella/GeneticAlgorithm-XOR
2e7de2e2fc6dfd8bb27d9e09c7be86f75c6db87c
[ "MIT" ]
null
null
null
import numpy as np from tqdm import tqdm from . import mutation, recombination, selection class GeneticAlgorithm: """ Genetic algorithm for TSP. """ def __init__(self, lower_bound=-5, upper_bound=5, alpha=0.5, num_iterations=1000, population_size=100, offspring_size=20, mutation_rate=0.2, ...
40.150538
144
0.635913
7,374
0.987413
0
0
0
0
0
0
2,230
0.298607
6470e5d0deee719aa79c71b3de4aad355884b9c7
87
py
Python
e7gzly/apps.py
naderabdalghani/e7gzly-api
a5c8afba1c4f118d56742c147d8f79be5241f66a
[ "Apache-2.0" ]
null
null
null
e7gzly/apps.py
naderabdalghani/e7gzly-api
a5c8afba1c4f118d56742c147d8f79be5241f66a
[ "Apache-2.0" ]
null
null
null
e7gzly/apps.py
naderabdalghani/e7gzly-api
a5c8afba1c4f118d56742c147d8f79be5241f66a
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class E7gzlyConfig(AppConfig): name = 'e7gzly'
14.5
33
0.747126
50
0.574713
0
0
0
0
0
0
8
0.091954
647564ba63394f150f2633cb8c189e18207d6ab2
2,185
py
Python
ps_tree/views.py
ITCase/ps_tree
a2152feb53d5f041b43203ee8ccaae65cb9d13e4
[ "MIT" ]
null
null
null
ps_tree/views.py
ITCase/ps_tree
a2152feb53d5f041b43203ee8ccaae65cb9d13e4
[ "MIT" ]
12
2015-06-15T11:50:48.000Z
2015-07-07T09:03:37.000Z
ps_tree/views.py
ITCase/ps_tree
a2152feb53d5f041b43203ee8ccaae65cb9d13e4
[ "MIT" ]
null
null
null
import transaction from pyramid.httpexceptions import HTTPInternalServerError from pyramid.view import view_config from pyramid_sacrud.security import (PYRAMID_SACRUD_DELETE, PYRAMID_SACRUD_UPDATE) from sacrud.common import pk_to_list from . import CONFIG_MODELS, PS_TREE_GET_TREE,...
29.931507
77
0.667277
0
0
0
0
1,674
0.766133
0
0
146
0.066819
647674bcd02180e2d4d59bf2cb132ab346717ae5
1,068
py
Python
Contests/Facebook Hacker Cup 2018/Qualification/Tourist/tourist.py
PK-100/Competitive_Programming
d0863feaaa99462b2999e85dcf115f7a6c08bb8d
[ "MIT" ]
70
2018-06-25T21:20:15.000Z
2022-03-24T03:55:17.000Z
Contests/Facebook Hacker Cup 2018/Qualification/Tourist/tourist.py
An3sha/Competitive_Programming
ee7eadf51939a360d0b004d787ebabda583e92f0
[ "MIT" ]
4
2018-09-04T13:12:20.000Z
2021-06-20T08:29:12.000Z
Contests/Facebook Hacker Cup 2018/Qualification/Tourist/tourist.py
An3sha/Competitive_Programming
ee7eadf51939a360d0b004d787ebabda583e92f0
[ "MIT" ]
24
2018-12-26T05:15:32.000Z
2022-01-23T23:04:54.000Z
''' Author: Amitrajit Bose Problem: Facebook HackerCup Qualification Round ''' with open("Output.txt", "w") as text_file: testcase=int(input()) for _ in range(testcase): #entire program will be contained here now n,k,v=[int(x) for x in input().strip().split()] citynames=[] #citydict={} out=[] for i in ra...
22.723404
61
0.647004
0
0
0
0
0
0
0
0
338
0.316479
64769871d7651c4fe09490ae9be564a6303ec7ff
904
py
Python
code-solutions/Solution_005.py
Am4teur/Daily-Coding-Problems
80b7c0efee4a5599feefe16972246baa8c19c334
[ "MIT" ]
null
null
null
code-solutions/Solution_005.py
Am4teur/Daily-Coding-Problems
80b7c0efee4a5599feefe16972246baa8c19c334
[ "MIT" ]
null
null
null
code-solutions/Solution_005.py
Am4teur/Daily-Coding-Problems
80b7c0efee4a5599feefe16972246baa8c19c334
[ "MIT" ]
1
2022-01-22T21:56:01.000Z
2022-01-22T21:56:01.000Z
class MaxStack: def __init__(self): self.stack = [] self.max_stack = [] def push(self, val): self.stack.append(val) if(not self.max_stack or val > self.stack[self.max_stack[-1]]): self.max_stack.append(len(self.stack) - 1) def pop(self): if(not self.stac...
20.088889
71
0.506637
609
0.673673
0
0
0
0
0
0
31
0.034292
647716fe60d32877837b9b44ced048b662a0498e
1,635
py
Python
src/cli.py
jconradhanson/BEAT
47a828c486e674323782c11b78be63aae003c45d
[ "MIT" ]
null
null
null
src/cli.py
jconradhanson/BEAT
47a828c486e674323782c11b78be63aae003c45d
[ "MIT" ]
null
null
null
src/cli.py
jconradhanson/BEAT
47a828c486e674323782c11b78be63aae003c45d
[ "MIT" ]
null
null
null
import logging import argparse from beat import beat from definitions import path_log # LOGGING CONFIGURATION logging.basicConfig( level=logging.INFO, format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p' ) logging.root.addHandler(logging.FileHandler(path_log, mode='w', encoding='UTF-8')) loggin...
35.543478
105
0.687462
0
0
0
0
0
0
0
0
588
0.359633
64775e8621307435c0d9b57c6dab0a8e27211db1
141
py
Python
source/preprocessing/interval.py
marta18a/sleep_classifiers
75aaae37dafe752909cf56351911e246a4febb4d
[ "MIT" ]
97
2019-02-18T20:19:21.000Z
2022-03-30T05:01:44.000Z
source/preprocessing/interval.py
marta18a/sleep_classifiers
75aaae37dafe752909cf56351911e246a4febb4d
[ "MIT" ]
13
2019-10-29T05:53:11.000Z
2022-03-14T21:38:49.000Z
source/preprocessing/interval.py
marta18a/sleep_classifiers
75aaae37dafe752909cf56351911e246a4febb4d
[ "MIT" ]
49
2019-06-03T23:22:19.000Z
2022-03-30T05:01:40.000Z
class Interval(object): def __init__(self, start_time, end_time): self.start_time = start_time self.end_time = end_time
23.5
45
0.680851
139
0.985816
0
0
0
0
0
0
0
0
6477ef9e1d25e92daab6a18794994b24710c4290
5,678
py
Python
tests/payments/four/request_apm_payments_four_integration_test.py
riaz-bordie-cko/checkout-sdk-python
d9bc073306c1a98544c326be693ed722576ea895
[ "MIT" ]
null
null
null
tests/payments/four/request_apm_payments_four_integration_test.py
riaz-bordie-cko/checkout-sdk-python
d9bc073306c1a98544c326be693ed722576ea895
[ "MIT" ]
null
null
null
tests/payments/four/request_apm_payments_four_integration_test.py
riaz-bordie-cko/checkout-sdk-python
d9bc073306c1a98544c326be693ed722576ea895
[ "MIT" ]
null
null
null
from __future__ import absolute_import import os import pytest import checkout_sdk from checkout_sdk.common.common import Address, CustomerRequest, Phone from checkout_sdk.common.common_four import Product from checkout_sdk.common.enums import Currency, Country from checkout_sdk.payments.payment_apm_four import Requ...
36.397436
104
0.646178
0
0
0
0
2,554
0.449806
0
0
795
0.140014
64798a1c5f79aa151808ffe15d53f046862e60f3
1,877
py
Python
DQM/TrackingMonitorSource/python/TrackerCollisionTrackingMonitor_cff.py
malbouis/cmssw
16173a30d3f0c9ecc5419c474bb4d272c58b65c8
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/TrackingMonitorSource/python/TrackerCollisionTrackingMonitor_cff.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/TrackingMonitorSource/python/TrackerCollisionTrackingMonitor_cff.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQM.TrackingMonitorSource.pset4GenericTriggerEventFlag_cfi import * # Clone for TrackingMonitor for all PDs but MinBias ### from DQM.TrackingMonitor.TrackerCollisionTrackingMonitor_cfi import * TrackerCollisionTrackMonCommon = TrackerCollisionTrackMon.clone( genericTr...
45.780488
95
0.85349
0
0
0
0
0
0
0
0
532
0.283431
6479a772a0aa85678bea2bbb58a2808af7469318
4,524
py
Python
sandbox/lib/jumpscale/Jumpscale/clients/ssh/SSHClientFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/Jumpscale/clients/ssh/SSHClientFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/Jumpscale/clients/ssh/SSHClientFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
from Jumpscale import j from .SSHClient import SSHClient from .SSHClientParamiko import SSHClientParamiko from .SSHClientBase import SSHClientBase class SSHClientFactory(j.baseclasses.object_config_collection_testtools): __jslocation__ = "j.clients.ssh" _CHILDCLASS = SSHClientBase _SCHEMATEXT = _CHILDCLA...
31.2
122
0.556366
4,374
0.966844
0
0
0
0
0
0
1,605
0.354775
6479e45e219721aaae6c4905f1adba39680d17b1
2,094
py
Python
tilecloud/lib/sqlite3_.py
wendymhelson/tilecloud
70f54d24d05e4e350317b12defd56e4eebe1f2c1
[ "Unlicense" ]
null
null
null
tilecloud/lib/sqlite3_.py
wendymhelson/tilecloud
70f54d24d05e4e350317b12defd56e4eebe1f2c1
[ "Unlicense" ]
null
null
null
tilecloud/lib/sqlite3_.py
wendymhelson/tilecloud
70f54d24d05e4e350317b12defd56e4eebe1f2c1
[ "Unlicense" ]
null
null
null
from collections import MutableMapping as DictMixin def query(connection, *args): cursor = connection.cursor() cursor.execute(*args) return cursor class SQLiteDict(DictMixin): """A dict facade for an SQLite table""" def __init__(self, connection, commit=True, **kwargs): self.connection ...
26.846154
90
0.644222
1,930
0.921681
0
0
414
0.197708
0
0
75
0.035817
647c690b82071beffb86046caafc6c207204c7e0
4,316
py
Python
taxcalc_arp/taxcalc/validation/taxsim27/prepare_taxcalc_input.py
hdoupe/Tax-Cruncher-ARP
c8c960c085d0883915f99ac2ea4630c928af4c16
[ "MIT" ]
1
2021-10-01T14:22:32.000Z
2021-10-01T14:22:32.000Z
taxcalc_arp/taxcalc/validation/taxsim27/prepare_taxcalc_input.py
hdoupe/Tax-Cruncher-ARP
c8c960c085d0883915f99ac2ea4630c928af4c16
[ "MIT" ]
1
2021-03-16T13:57:36.000Z
2021-03-16T13:57:36.000Z
taxcalc_arp/taxcalc/validation/taxsim27/prepare_taxcalc_input.py
hdoupe/Tax-Cruncher-ARP
c8c960c085d0883915f99ac2ea4630c928af4c16
[ "MIT" ]
1
2021-03-16T13:44:38.000Z
2021-03-16T13:44:38.000Z
""" Translates TAXSIM-27 input file to Tax-Calculator tc input file. """ # CODING-STYLE CHECKS: # pycodestyle prepare_tc_input.py # pylint --disable=locally-disabled prepare_tc_input.py import argparse import os import sys import numpy as np import pandas as pd def main(): """ High-level logic. """ #...
37.530435
78
0.599398
0
0
0
0
0
0
0
0
1,719
0.398285
647cfe0af9da296040c33beb3819d628a1608217
1,510
py
Python
tests/integration_tests/resources/plugins/mock-rest-plugin/setup.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
124
2015-01-22T22:28:37.000Z
2022-02-26T23:12:06.000Z
tests/integration_tests/resources/plugins/mock-rest-plugin/setup.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
345
2015-01-08T15:49:40.000Z
2022-03-29T08:33:00.000Z
tests/integration_tests/resources/plugins/mock-rest-plugin/setup.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
77
2015-01-07T14:04:35.000Z
2022-03-07T22:46:00.000Z
# *************************************************************************** # * Copyright (c) 2013 GigaSpaces Technologies Ltd. All rights reserved # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of ...
33.555556
79
0.619868
470
0.311258
0
0
0
0
0
0
923
0.611258
647d0967c28ab126510ff860ff2d966577a5da6f
520
py
Python
WebDECIMER/segmentation/migrations/0008_uploadedarticle_zippedextractedimages.py
Kohulan/DECIMER-Image-Segmentation
68ee9a9693e5bad5c41826d28e2d6558a20fe21f
[ "MIT" ]
29
2021-01-08T13:48:18.000Z
2022-01-17T08:29:00.000Z
WebDECIMER/segmentation/migrations/0008_uploadedarticle_zippedextractedimages.py
Kohulan/DECIMER-Image-Segmentation
68ee9a9693e5bad5c41826d28e2d6558a20fe21f
[ "MIT" ]
23
2021-01-07T21:43:21.000Z
2022-03-14T21:52:17.000Z
WebDECIMER/segmentation/migrations/0008_uploadedarticle_zippedextractedimages.py
Kohulan/DECIMER-Image-Segmentation
68ee9a9693e5bad5c41826d28e2d6558a20fe21f
[ "MIT" ]
8
2021-01-08T05:39:21.000Z
2022-02-14T10:06:38.000Z
# Generated by Django 3.1.3 on 2020-12-09 13:41 from django.db import migrations, models import segmentation.models class Migration(migrations.Migration): dependencies = [ ('segmentation', '0007_segmentedimage_ori_article_name'), ] operations = [ migrations.AddField( model_n...
26
117
0.673077
400
0.769231
0
0
0
0
0
0
149
0.286538
647d10de27c79bcb57ed12505d2e4cdc3b96770f
914
py
Python
python/privatelink-rds/stacks/vpc_stack.py
aarondodd/aws-cdk-examples
7ac382fe99656df19a4f96159c11e0aa546acaf4
[ "Apache-2.0" ]
null
null
null
python/privatelink-rds/stacks/vpc_stack.py
aarondodd/aws-cdk-examples
7ac382fe99656df19a4f96159c11e0aa546acaf4
[ "Apache-2.0" ]
null
null
null
python/privatelink-rds/stacks/vpc_stack.py
aarondodd/aws-cdk-examples
7ac382fe99656df19a4f96159c11e0aa546acaf4
[ "Apache-2.0" ]
1
2022-01-31T03:13:37.000Z
2022-01-31T03:13:37.000Z
from aws_cdk import ( core, aws_ec2 as ec2 ) class VpcStack(core.Stack): def __init__(self, scope: core.Construct, id: str, vpc_cidr, **kwargs ) -> None: super().__init__(scope, id, **kwargs) # SubnetType.ISOLATED used as we don't want Internet traffic possible for t...
29.483871
91
0.503282
860
0.940919
0
0
0
0
0
0
116
0.126915
647db96c9aaf141903504ac8bd588d3cfc6e9c13
112,783
py
Python
api/source/main/python/datacube/api/query.py
alex-ip/agdc
9e9eb556c33792440a3736f64cd5f628cf3a1385
[ "BSD-3-Clause" ]
null
null
null
api/source/main/python/datacube/api/query.py
alex-ip/agdc
9e9eb556c33792440a3736f64cd5f628cf3a1385
[ "BSD-3-Clause" ]
null
null
null
api/source/main/python/datacube/api/query.py
alex-ip/agdc
9e9eb556c33792440a3736f64cd5f628cf3a1385
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # =============================================================================== # Copyright (c) 2014 Geoscience Australia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: ...
35.861049
162
0.636967
928
0.008228
12,763
0.113164
0
0
0
0
83,294
0.738533
647ed57ed963f5240abc63291aaba067a117c593
2,266
py
Python
lifesaver/bot/config.py
slice/discord.py-lifesaver
00c38112a512efd964cbbf0533096eff0a29f79f
[ "MIT" ]
12
2017-12-21T03:44:52.000Z
2021-02-05T02:09:13.000Z
lifesaver/bot/config.py
slice/lifesaver
00c38112a512efd964cbbf0533096eff0a29f79f
[ "MIT" ]
9
2017-12-21T01:56:07.000Z
2020-12-31T00:01:20.000Z
lifesaver/bot/config.py
slice/lifesaver
00c38112a512efd964cbbf0533096eff0a29f79f
[ "MIT" ]
2
2017-12-21T01:52:07.000Z
2019-12-17T01:51:50.000Z
# encoding: utf-8 __all__ = ["BotConfig", "BotLoggingConfig"] from typing import Any, Dict, List, Optional, Union from lifesaver.config import Config YES_EMOJI = "\N{WHITE HEAVY CHECK MARK}" NO_EMOJI = "\N{CROSS MARK}" OK_EMOJI = "\N{OK HAND SIGN}" DEFAULT_EMOJIS = { "generic": {"yes": YES_EMOJI, "no": NO_EMOJ...
27.634146
83
0.660194
1,917
0.845984
0
0
0
0
0
0
1,262
0.556929