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
2a54b836b10d0f5d5aa4979c845c18b9275fdecd
3,287
py
Python
insights/parsers/ceph_insights.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
121
2017-05-30T20:23:25.000Z
2022-03-23T12:52:15.000Z
insights/parsers/ceph_insights.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
1,977
2017-05-26T14:36:03.000Z
2022-03-31T10:38:53.000Z
insights/parsers/ceph_insights.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
244
2017-05-30T20:22:57.000Z
2022-03-26T10:09:39.000Z
""" ceph_insights - command ``ceph insights`` ========================================= """ import json import re from .. import CommandParser, parser from insights.specs import Specs @parser(Specs.ceph_insights) class CephInsights(CommandParser): """ Parse the output of the ``ceph insights`` command. At...
33.540816
85
0.60146
3,071
0.934287
0
0
3,100
0.943109
0
0
2,201
0.669608
2a54c4b02d79ac04b72ebbd0cef513843105c1f0
227
py
Python
src/learners/__init__.py
OscarPedaVendere/sc2MultiAgentES
54df34eb94f00294c2bcd1ac5a0c14386c0bbceb
[ "Apache-2.0" ]
null
null
null
src/learners/__init__.py
OscarPedaVendere/sc2MultiAgentES
54df34eb94f00294c2bcd1ac5a0c14386c0bbceb
[ "Apache-2.0" ]
4
2021-03-19T03:43:34.000Z
2022-01-13T01:39:12.000Z
src/learners/__init__.py
OscarPedaVendere/sc2MultiAgentES
54df34eb94f00294c2bcd1ac5a0c14386c0bbceb
[ "Apache-2.0" ]
null
null
null
from .q_learner import QLearner from .coma_learner import COMALearner from .es_learner import ESLearner REGISTRY = {} REGISTRY["q_learner"] = QLearner REGISTRY["coma_learner"] = COMALearner REGISTRY["es_learner"] = ESLearner
22.7
38
0.792952
0
0
0
0
0
0
0
0
37
0.162996
2a56f5a13c5e84abb272e6b2ff55a131592699d7
3,582
py
Python
ietf/utils/management/base.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
25
2022-03-05T08:26:52.000Z
2022-03-30T15:45:42.000Z
ietf/utils/management/base.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
219
2022-03-04T17:29:12.000Z
2022-03-31T21:16:14.000Z
ietf/utils/management/base.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
22
2022-03-04T15:34:34.000Z
2022-03-28T13:30:59.000Z
# Copyright The IETF Trust 2013-2020, All Rights Reserved # -*- coding: utf-8 -*- from email.message import EmailMessage from textwrap import dedent from traceback import format_exception, extract_tb from django.conf import settings from django.core.management.base import BaseCommand from ietf.utils.mail import send...
37.3125
96
0.672808
3,221
0.899218
0
0
101
0.028197
0
0
1,846
0.515355
2a572edc22a1007d158ae57f509ba56d4cf54a6e
603
py
Python
lab01/calculadora/urls.py
josepilco7501/TECSUP-DAE-2021-2
f6e433193edd2b9547a7385f0e03b0aacdb4dcd0
[ "MIT" ]
null
null
null
lab01/calculadora/urls.py
josepilco7501/TECSUP-DAE-2021-2
f6e433193edd2b9547a7385f0e03b0aacdb4dcd0
[ "MIT" ]
null
null
null
lab01/calculadora/urls.py
josepilco7501/TECSUP-DAE-2021-2
f6e433193edd2b9547a7385f0e03b0aacdb4dcd0
[ "MIT" ]
null
null
null
from django.urls import path from.import views urlpatterns = [ #ex: localhost:8080/app/ path('', views.index, name='index'), #ex: localhost:8080/app/sumar/n1+n2/ path('sumar/<int:n1>/<int:n2>', views.sumar, name='suma'), #ex: localhost:8080/app/sumar/n1-n2/ path('restar/<int:n1>/<int:n2>', vie...
33.5
84
0.650083
0
0
0
0
0
0
0
0
337
0.558872
2a58d724de9a2eb16bfc33ebafdd4ad0b59e5837
688
py
Python
kmeans_poc/data/generate_dataset.py
katyamust/with_git_actions
73d9213be1a1bb626b0062afa165ea73d3283443
[ "MIT" ]
null
null
null
kmeans_poc/data/generate_dataset.py
katyamust/with_git_actions
73d9213be1a1bb626b0062afa165ea73d3283443
[ "MIT" ]
null
null
null
kmeans_poc/data/generate_dataset.py
katyamust/with_git_actions
73d9213be1a1bb626b0062afa165ea73d3283443
[ "MIT" ]
1
2020-07-03T02:08:43.000Z
2020-07-03T02:08:43.000Z
# generate dataset : random data in a two-dimensional space #https://towardsdatascience.com/understanding-k-means-clustering-in-machine-learning-6a6e67336aa1 import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.cluster import KMeans #%matplotlib inline def generate_x(): X = -2 * ...
17.641026
97
0.632267
0
0
0
0
0
0
0
0
214
0.309249
2a5b794eee3881243d82a5403699324690ff176a
115
py
Python
stere/__init__.py
thomasmost/stere
f10ae1a40269c1642b9da49df06936fafb9b4a5b
[ "MIT" ]
17
2017-12-11T15:49:10.000Z
2021-06-16T19:29:45.000Z
stere/__init__.py
thomasmost/stere
f10ae1a40269c1642b9da49df06936fafb9b4a5b
[ "MIT" ]
328
2018-02-06T02:29:21.000Z
2022-03-30T10:47:33.000Z
stere/__init__.py
thomasmost/stere
f10ae1a40269c1642b9da49df06936fafb9b4a5b
[ "MIT" ]
3
2019-04-05T19:40:55.000Z
2021-11-04T06:50:32.000Z
from .browserenabled import BrowserEnabled as Stere from .page import Page __all__ = [ "Stere", "Page", ]
14.375
51
0.686957
0
0
0
0
0
0
0
0
13
0.113043
2a5f82639377b0ea5dadf1fcd65d906ed85ab902
2,190
py
Python
antlr/SevenBillionHumansParser.py
behrmann/7billionhumans
36d53daf278ef4f3729bc5cba2f2398d5411bd6d
[ "MIT" ]
45
2018-09-05T04:56:59.000Z
2021-11-22T08:57:26.000Z
antlr/SevenBillionHumansParser.py
behrmann/7billionhumans
36d53daf278ef4f3729bc5cba2f2398d5411bd6d
[ "MIT" ]
36
2018-09-01T11:34:26.000Z
2021-05-19T23:20:49.000Z
antlr/SevenBillionHumansParser.py
behrmann/7billionhumans
36d53daf278ef4f3729bc5cba2f2398d5411bd6d
[ "MIT" ]
36
2018-09-01T07:44:19.000Z
2021-09-10T19:07:35.000Z
from antlr4 import * from antlr4.error.ErrorListener import ErrorListener from antlr.SBHasmLexer import SBHasmLexer from antlr.SBHasmListener import SBHasmListener from antlr.SBHasmParser import SBHasmParser class MyErrorListener(ErrorListener): def __init__(self): super(MyErrorListener, self).__init__(...
26.707317
108
0.682192
1,845
0.842466
0
0
0
0
0
0
215
0.098174
2a5ff21418d48ac09c9e93cc6ba5b5b67b0da4ce
442
py
Python
pig-latin/pig_latin.py
cmccandless/ExercismSolutions-python
d80bf441c842daa2eb446bdba9c03d3e8864ea58
[ "MIT" ]
null
null
null
pig-latin/pig_latin.py
cmccandless/ExercismSolutions-python
d80bf441c842daa2eb446bdba9c03d3e8864ea58
[ "MIT" ]
null
null
null
pig-latin/pig_latin.py
cmccandless/ExercismSolutions-python
d80bf441c842daa2eb446bdba9c03d3e8864ea58
[ "MIT" ]
null
null
null
consonents = ['sch', 'squ', 'thr', 'qu', 'th', 'sc', 'sh', 'ch', 'st', 'rh'] consonents.extend('bcdfghjklmnpqrstvwxyz') def prefix(word): if word[:2] not in ['xr', 'yt']: for x in consonents: if word.startswith(x): return (x, word[len(x):]) return ('', word) d...
27.625
77
0.488688
0
0
0
0
0
0
0
0
83
0.187783
2a6147abbf7955e413192c373cc1c16dc8668901
5,315
py
Python
amalia/simulation/PoissonSimulation.py
Aganonce/AMALIA-lite
a9c854b45cc6486763349c262e44ee4d27d6bfac
[ "MIT" ]
null
null
null
amalia/simulation/PoissonSimulation.py
Aganonce/AMALIA-lite
a9c854b45cc6486763349c262e44ee4d27d6bfac
[ "MIT" ]
null
null
null
amalia/simulation/PoissonSimulation.py
Aganonce/AMALIA-lite
a9c854b45cc6486763349c262e44ee4d27d6bfac
[ "MIT" ]
2
2021-05-21T07:55:54.000Z
2021-09-23T12:58:50.000Z
import logging from tools.EventGeneration import convert_date, generate_random_time, generate_random_node_id logger = logging.getLogger(__name__.split('.')[-1]) from features.ResponseTypeFeature import ResponseTypeFeature from features.ReplayTimeSeriesFeature import ReplayTimeSeriesFeature import tools.Cache as Cach...
40.572519
133
0.660207
2,066
0.388711
0
0
1,303
0.245155
0
0
1,548
0.291251
2a6482a0a0ce793fafb8fa2a355bc1331003895e
13,174
py
Python
flee/pmicro_flee.py
jataware/flee
67c00c4572e71dd2bbfb390d7d7ede13ffb9594e
[ "BSD-3-Clause" ]
null
null
null
flee/pmicro_flee.py
jataware/flee
67c00c4572e71dd2bbfb390d7d7ede13ffb9594e
[ "BSD-3-Clause" ]
null
null
null
flee/pmicro_flee.py
jataware/flee
67c00c4572e71dd2bbfb390d7d7ede13ffb9594e
[ "BSD-3-Clause" ]
null
null
null
import datetime import math import os import sys from functools import wraps from typing import Optional, Tuple from flee import pflee from flee.SimulationSettings import SimulationSettings # noqa, pylint: disable=W0611 if os.getenv("FLEE_TYPE_CHECK") is not None and os.environ["FLEE_TYPE_CHECK"].lower() == "true": ...
29.340757
99
0.546759
12,300
0.933657
0
0
11,110
0.843328
0
0
3,959
0.300516
2a6744398cdf360569c0ec830105f233ecaacbeb
2,211
py
Python
src/my_pubsub.py
shirosweets/vosk-speech-to-text
4667b107dd3ba174435e8deab1c122d83381e902
[ "MIT" ]
1
2021-04-16T01:49:39.000Z
2021-04-16T01:49:39.000Z
src/my_pubsub.py
shirosweets/vosk-speech-to-text
4667b107dd3ba174435e8deab1c122d83381e902
[ "MIT" ]
null
null
null
src/my_pubsub.py
shirosweets/vosk-speech-to-text
4667b107dd3ba174435e8deab1c122d83381e902
[ "MIT" ]
null
null
null
import os import datetime from json import dumps from google.cloud import pubsub_v1 from config_speech import config as conf from google.api_core.exceptions import AlreadyExists class Pubsub(): def __init__(self): PROJECT_PATH = "projects/project_name" TOPIC_NAME = 'topic_name' self.TOPIC...
33
78
0.602895
2,026
0.916327
0
0
0
0
0
0
365
0.165084
2a67605a117277819275759c2973c2e8735861bc
2,497
py
Python
ui/_alert.py
isbm/pybug
406e47d0b75961d8b8a984b02053a9182f96c56d
[ "MIT" ]
null
null
null
ui/_alert.py
isbm/pybug
406e47d0b75961d8b8a984b02053a9182f96c56d
[ "MIT" ]
null
null
null
ui/_alert.py
isbm/pybug
406e47d0b75961d8b8a984b02053a9182f96c56d
[ "MIT" ]
1
2020-03-04T10:11:41.000Z
2020-03-04T10:11:41.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'xml/alert.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s):...
40.934426
103
0.716059
1,841
0.737285
0
0
0
0
0
0
327
0.130957
2a68fb1e3fb5aa04aab2b0e5a4bef92bf6a0aa37
689
py
Python
scripts/client_lidar.py
Paulllit/projet_proto_lidar
a84c80261c81ab08e365c575c416863c06355b71
[ "BSD-2-Clause" ]
null
null
null
scripts/client_lidar.py
Paulllit/projet_proto_lidar
a84c80261c81ab08e365c575c416863c06355b71
[ "BSD-2-Clause" ]
null
null
null
scripts/client_lidar.py
Paulllit/projet_proto_lidar
a84c80261c81ab08e365c575c416863c06355b71
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import rospy import math from sensor_msgs.msg import LaserScan #import des donnes laser du lidar import time from rplidar_ros.srv import * class Client(): vel=None angle_est=None #Init def __init__(self): rospy.init_node('client_lidar') def listen_angle(self): ...
23.758621
118
0.56894
325
0.471698
0
0
0
0
0
0
208
0.301887
2a695f1df515fd4839a432790f5921c3bfa4f906
681
py
Python
tests/util/config_mixin.py
pruh/backee
3e88d799a50f75033ae15d6c16655da8ae791886
[ "MIT" ]
null
null
null
tests/util/config_mixin.py
pruh/backee
3e88d799a50f75033ae15d6c16655da8ae791886
[ "MIT" ]
2
2020-01-22T22:21:02.000Z
2020-01-22T22:28:37.000Z
tests/util/config_mixin.py
pruh/backee
3e88d799a50f75033ae15d6c16655da8ae791886
[ "MIT" ]
null
null
null
import os import logging from unittest import mock from backee.parser.config_parser import parse_config class ConfigMixin: def __get_config_file_contents(self, filename: str): config_file = os.path.join( os.path.dirname(__file__), os.pardir, "resources", filename ) with open(c...
29.608696
71
0.674009
573
0.84141
0
0
0
0
0
0
26
0.038179
2a6a3ba6e47587bb91c1059380ff1f854f20f597
2,022
py
Python
utils/__init__.py
KpaBap/palbot
38d2b7958e310f45a28cf1b3173967b92f819946
[ "MIT" ]
null
null
null
utils/__init__.py
KpaBap/palbot
38d2b7958e310f45a28cf1b3173967b92f819946
[ "MIT" ]
null
null
null
utils/__init__.py
KpaBap/palbot
38d2b7958e310f45a28cf1b3173967b92f819946
[ "MIT" ]
null
null
null
#from utils import ordinal import re from urllib.parse import quote as uriquote import asyncio from bs4 import BeautifulSoup import collections from utils.context import MoreContext from utils.context import Location from utils.paginator import Paginator from utils.units import units ordinal = lambda n: "%d%s" % (n,"t...
30.636364
87
0.607319
0
0
0
0
0
0
1,231
0.608803
255
0.126113
2a6ac7f9df2f1802e7060c999c2722525fb5cfb6
647
py
Python
tests/expectations/cat-hs-x-cat-date-smoothed-col-pct-w3.py
Crunch-io/crunch-cube
80986d5b2106c774f05176fb6c6a5ea0d840f09d
[ "MIT" ]
3
2021-01-22T20:42:31.000Z
2021-06-02T17:53:19.000Z
tests/expectations/cat-hs-x-cat-date-smoothed-col-pct-w3.py
Crunch-io/crunch-cube
80986d5b2106c774f05176fb6c6a5ea0d840f09d
[ "MIT" ]
331
2017-11-13T22:41:56.000Z
2021-12-02T21:59:43.000Z
tests/expectations/cat-hs-x-cat-date-smoothed-col-pct-w3.py
Crunch-io/crunch-cube
80986d5b2106c774f05176fb6c6a5ea0d840f09d
[ "MIT" ]
1
2021-02-19T02:49:00.000Z
2021-02-19T02:49:00.000Z
[ [float("NaN"), float("NaN"), 73.55631426, 76.45173763], [float("NaN"), float("NaN"), 71.11031587, 73.6557548], [float("NaN"), float("NaN"), 11.32891221, 9.80444014], [float("NaN"), float("NaN"), 10.27812002, 8.15602626], [float("NaN"), float("NaN"), 21.60703222, 17.9604664], [float("NaN"), flo...
46.214286
59
0.585781
0
0
0
0
0
0
0
0
110
0.170015
2a6c2e36e5eed7008fca91c8906b878bedc5fb28
242
py
Python
02-Tuples-and-sets/count_same_values.py
nmoskova/Python-advanced
007f496e868aa151e39d79446b055e76ffb2db95
[ "MIT" ]
null
null
null
02-Tuples-and-sets/count_same_values.py
nmoskova/Python-advanced
007f496e868aa151e39d79446b055e76ffb2db95
[ "MIT" ]
null
null
null
02-Tuples-and-sets/count_same_values.py
nmoskova/Python-advanced
007f496e868aa151e39d79446b055e76ffb2db95
[ "MIT" ]
null
null
null
numbers = [float(num) for num in input().split()] nums_dict = {} for el in numbers: if el not in nums_dict: nums_dict[el] = 0 nums_dict[el] += 1 [print(f"{el:.1f} - {occurence} times") for el, occurence in nums_dict.items()]
26.888889
79
0.628099
0
0
0
0
0
0
0
0
31
0.128099
2a6d411eb9f892a9e63182fd8d2cb98e424999b0
3,021
py
Python
main.py
maxc0d3r/google-workspace-manager
d2a4e561ae8278455cd5b0c03283a413ebeaff54
[ "MIT" ]
null
null
null
main.py
maxc0d3r/google-workspace-manager
d2a4e561ae8278455cd5b0c03283a413ebeaff54
[ "MIT" ]
null
null
null
main.py
maxc0d3r/google-workspace-manager
d2a4e561ae8278455cd5b0c03283a413ebeaff54
[ "MIT" ]
null
null
null
""" Usage: main.py domains list main.py domains add [--body=<request_body>] [--file=<input_file>] main.py users list [--domain=<domain_name>] main.py users get [--email=<email>] main.py users add [--body=<request_body>] [--file=<input_file>] main.py users update [--email=<email>] [--body=<reque...
34.329545
90
0.568355
0
0
0
0
0
0
0
0
883
0.292287
2a6e1a8bb73dc390e5d24fbf0db6bcb3ee7ba1cf
266
py
Python
run_tests.py
Knitschi/CPFBuildscripts
ee20e4b08b3e063535750d019c6e730e55426cce
[ "MIT" ]
1
2018-02-12T14:30:39.000Z
2018-02-12T14:30:39.000Z
run_tests.py
Knitschi/CPFBuildscripts
ee20e4b08b3e063535750d019c6e730e55426cce
[ "MIT" ]
8
2018-04-18T12:40:13.000Z
2019-05-19T17:00:56.000Z
run_tests.py
Knitschi/CPFBuildscripts
ee20e4b08b3e063535750d019c6e730e55426cce
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import unittest import sys import os sys.path.append(os.path.dirname(os.path.realpath(__file__))) from python.buildautomat_unit_tests import * from python.filesystemaccess_unit_tests import * if __name__ == '__main__': unittest.main()
19
60
0.766917
0
0
0
0
0
0
0
0
28
0.105263
2a6ec9b3a897e3fc51ab524a28ca41d20795c9f3
1,790
py
Python
django_formset_vuejs/forms.py
fatse/django-formsets-vuejs
c2d6e134e58c3905539eb7c5322aeeda1db7fad4
[ "MIT" ]
11
2020-10-24T04:00:01.000Z
2022-03-07T01:14:28.000Z
django_formset_vuejs/forms.py
fatse/django-formsets-vuejs
c2d6e134e58c3905539eb7c5322aeeda1db7fad4
[ "MIT" ]
5
2021-03-19T08:08:16.000Z
2021-06-21T01:26:25.000Z
django_formset_vuejs/forms.py
fatse/django-formsets-vuejs
c2d6e134e58c3905539eb7c5322aeeda1db7fad4
[ "MIT" ]
2
2021-05-02T18:43:32.000Z
2022-03-10T08:23:16.000Z
from django.forms import ModelForm, inlineformset_factory, BaseInlineFormSet from . import models class AuthorContainerForm(ModelForm): class Meta: model = models.AuthorContainer exclude = ('id',) class AuthorForm(ModelForm): class Meta: model = models.Author fields = ('first...
29.833333
104
0.62905
1,401
0.782682
0
0
0
0
0
0
85
0.047486
2a6ed08ae7b12c0e3073c649e6772dd81c550a9f
74
py
Python
test/__init__.py
shikajiro/picosdk-python-wrappers
c441870e1d39aa6a85b3cfd5acb1b3968669a7cf
[ "0BSD" ]
114
2018-10-05T07:11:20.000Z
2022-03-14T15:51:15.000Z
test/__init__.py
shikajiro/picosdk-python-wrappers
c441870e1d39aa6a85b3cfd5acb1b3968669a7cf
[ "0BSD" ]
26
2018-09-24T13:43:55.000Z
2021-05-03T21:18:02.000Z
test/__init__.py
shikajiro/picosdk-python-wrappers
c441870e1d39aa6a85b3cfd5acb1b3968669a7cf
[ "0BSD" ]
84
2018-09-14T16:05:32.000Z
2022-03-30T19:25:56.000Z
# # Copyright (C) 2018 Pico Technology Ltd. See LICENSE file for terms. #
18.5
69
0.716216
0
0
0
0
0
0
0
0
71
0.959459
2a6f14b3af74899266a2956f8a6a90c52813e8dd
6,105
py
Python
BMES_exps/BMES.py
volgachen/Chinese-Tokenization
467e08da6fe271b6e33258d5aa6682c0405a3f32
[ "Apache-2.0" ]
null
null
null
BMES_exps/BMES.py
volgachen/Chinese-Tokenization
467e08da6fe271b6e33258d5aa6682c0405a3f32
[ "Apache-2.0" ]
null
null
null
BMES_exps/BMES.py
volgachen/Chinese-Tokenization
467e08da6fe271b6e33258d5aa6682c0405a3f32
[ "Apache-2.0" ]
1
2020-07-12T10:38:34.000Z
2020-07-12T10:38:34.000Z
from collections import Counter from math import log from tqdm import tqdm import re from evaluation import evaluateSet def build_model(train_set): hmm_model = {i:Counter() for i in 'SBME'} trans = {'SS':0, 'SB':0, 'BM':0, 'BE':0, 'MM':0, 'ME':0, ...
30.989848
95
0.53923
0
0
0
0
0
0
0
0
1,282
0.209033
2a6f4b7eb3da6c0aa67838ecc1441c566fdf5e21
5,770
py
Python
third_party/nucleus/io/bedgraph.py
llevar/deepvariant
aba55537eec832e6cea678349422124ef50680f4
[ "BSD-3-Clause" ]
1
2020-11-28T13:11:08.000Z
2020-11-28T13:11:08.000Z
third_party/nucleus/io/bedgraph.py
hcxiong/deepvariant
aba55537eec832e6cea678349422124ef50680f4
[ "BSD-3-Clause" ]
null
null
null
third_party/nucleus/io/bedgraph.py
hcxiong/deepvariant
aba55537eec832e6cea678349422124ef50680f4
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 Google Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # #...
36.987179
80
0.775043
2,674
0.463432
0
0
0
0
0
0
4,009
0.694801
2a6f89f48cd8c7b16e844264141418335e7aca6a
199
py
Python
code/bqutils/auth.py
victoria-cds-sig/explore_mimiciv
856705ab1af7ecbfe30d5e8054747b61de8af031
[ "MIT" ]
3
2020-11-23T04:29:16.000Z
2021-05-29T06:22:00.000Z
code/bqutils/auth.py
victoria-cds-sig/explore_mimiciv
856705ab1af7ecbfe30d5e8054747b61de8af031
[ "MIT" ]
null
null
null
code/bqutils/auth.py
victoria-cds-sig/explore_mimiciv
856705ab1af7ecbfe30d5e8054747b61de8af031
[ "MIT" ]
4
2020-11-23T05:18:54.000Z
2021-05-29T06:23:12.000Z
import google.auth def get_gcreds(scopes = None): if scopes == None: scopes = ["https://www.googleapis.com/auth/bigquery"] return google.auth.default( scopes = scopes )
18.090909
61
0.628141
0
0
0
0
0
0
0
0
42
0.211055
2a6fdaada48dd95b31346bb6ce7bd0eeab1a0b16
12,312
py
Python
solnml/components/evaluators/rgs_evaluator.py
zhengjian2322/soln-ml
ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2
[ "MIT" ]
null
null
null
solnml/components/evaluators/rgs_evaluator.py
zhengjian2322/soln-ml
ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2
[ "MIT" ]
null
null
null
solnml/components/evaluators/rgs_evaluator.py
zhengjian2322/soln-ml
ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2
[ "MIT" ]
null
null
null
from ConfigSpace import ConfigurationSpace, CategoricalHyperparameter import time import warnings import os import numpy as np import pickle as pkl from sklearn.metrics.scorer import balanced_accuracy_scorer from solnml.utils.logging_utils import get_logger from solnml.components.evaluators.base_evaluator import _Base...
44.608696
118
0.619964
8,751
0.71077
0
0
0
0
0
0
671
0.0545
2a71ca14c7810cf8c3b652bf81d516b7e465ec6e
5,830
py
Python
testing/MLDB-1104-input-data-spec.py
kstepanmpmg/mldb
f78791cd34d01796705c0f173a14359ec1b2e021
[ "Apache-2.0" ]
665
2015-12-09T17:00:14.000Z
2022-03-25T07:46:46.000Z
testing/MLDB-1104-input-data-spec.py
tomzhang/mldb
a09cf2d9ca454d1966b9e49ae69f2fe6bf571494
[ "Apache-2.0" ]
797
2015-12-09T19:48:19.000Z
2022-03-07T02:19:47.000Z
testing/MLDB-1104-input-data-spec.py
matebestek/mldb
f78791cd34d01796705c0f173a14359ec1b2e021
[ "Apache-2.0" ]
103
2015-12-25T04:39:29.000Z
2022-02-03T02:55:22.000Z
# # MLDB-1104-input-data-spec.py # mldb.ai inc, 2015 # This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. # import unittest import datetime import random from mldb import mldb, ResponseException class InputDataSpecTest(unittest.TestCase): @classmethod def setUpClass(cls): cls...
35.766871
104
0.527444
5,558
0.953345
0
0
1,529
0.262264
0
0
1,971
0.338079
2a73ad7dadbf46c49b812817e0143b14c755fc20
6,000
py
Python
code/python/external/pi3d/shape/EnvironmentCube.py
rec/echomesh
be668971a687b141660fd2e5635d2fd598992a01
[ "MIT" ]
30
2015-02-18T14:07:00.000Z
2021-12-11T15:19:01.000Z
code/python/external/pi3d/shape/EnvironmentCube.py
silky/echomesh
2fe5a00a79c215b4aca4083e5252fcdcbd0507aa
[ "MIT" ]
16
2015-01-01T23:17:24.000Z
2015-04-18T23:49:27.000Z
code/python/external/pi3d/shape/EnvironmentCube.py
silky/echomesh
2fe5a00a79c215b4aca4083e5252fcdcbd0507aa
[ "MIT" ]
31
2015-03-11T20:04:07.000Z
2020-11-02T13:56:59.000Z
import os.path from pi3d import * from pi3d.Buffer import Buffer from pi3d.Shape import Shape from pi3d.Texture import Texture CUBE_PARTS = ['front', 'right', 'top', 'bottom', 'left', 'back'] BOTTOM_INDEX = 3 def loadECfiles(path, fname, suffix='jpg', nobottom=False): """Helper for loading environment cube faces. ...
45.801527
130
0.5405
4,924
0.820667
0
0
0
0
0
0
1,281
0.2135
2a74193bd4405cdd9a1190cbabe2ed90d97be2b2
5,678
py
Python
views.py
margish100/Api-json
82b0561f6335708702b997dc8dd1e62c7df5d03d
[ "MIT" ]
null
null
null
views.py
margish100/Api-json
82b0561f6335708702b997dc8dd1e62c7df5d03d
[ "MIT" ]
null
null
null
views.py
margish100/Api-json
82b0561f6335708702b997dc8dd1e62c7df5d03d
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from rest_framework.parsers import JSONParser from .models import Article from .serializers import ArticleSerializer from django.views.decorators.csrf import csrf_exempt from rest_framework.decorators import api_view from rest...
30.202128
105
0.66608
3,442
0.606199
0
0
1,385
0.243924
0
0
168
0.029588
2a748e6927d352016f97afb5ed56a3003dfed71b
4,101
py
Python
Hangman.py
Draxsis/hangman-game
ca7cbb353d25b3d4def331d150e202e43940da97
[ "MIT" ]
null
null
null
Hangman.py
Draxsis/hangman-game
ca7cbb353d25b3d4def331d150e202e43940da97
[ "MIT" ]
null
null
null
Hangman.py
Draxsis/hangman-game
ca7cbb353d25b3d4def331d150e202e43940da97
[ "MIT" ]
null
null
null
import random import time # Welcome and start time.sleep(1) player_name = input('Please enter your player name : ') time.sleep(1) print(f'Welcome to hangman game {player_name}') # main function def main(): global count global word global display global already_guessed global leng...
31.546154
146
0.407462
0
0
0
0
0
0
0
0
1,363
0.332358
2a75088725eb73c79e1b36480f5ee8a4db2071f4
7,601
py
Python
vermin_rules_3.9.py
gousaiyang/python-change-parser
94195e42d3e5106b69792e352d225b8b2b484fe1
[ "MIT" ]
3
2020-01-01T03:19:34.000Z
2020-01-11T13:59:58.000Z
vermin_rules_3.9.py
gousaiyang/python-change-parser
94195e42d3e5106b69792e352d225b8b2b484fe1
[ "MIT" ]
null
null
null
vermin_rules_3.9.py
gousaiyang/python-change-parser
94195e42d3e5106b69792e352d225b8b2b484fe1
[ "MIT" ]
null
null
null
modules_rules = { "graphlib": (None, (3, 9)), "test.support.socket_helper": (None, (3, 9)), "zoneinfo": (None, (3, 9)), } classes_rules = { "asyncio.BufferedProtocol": (None, (3, 7)), "asyncio.PidfdChildWatcher": (None, (3, 9)), "importlib.abc.Traversable": (None, (3, 9)), "importlib.abc.Tr...
45.51497
79
0.572951
0
0
0
0
0
0
0
0
3,976
0.523089
2a75f505d31db107fb926b596e2c6197ac0613a9
48,831
py
Python
src/pynvraw/nvapi_api.py
JustAMan/pynvraw
9a860c547256cfc6f527bf4be3aeeed27d95fd85
[ "MIT" ]
8
2021-07-29T22:35:31.000Z
2022-01-27T06:41:36.000Z
src/pynvraw/nvapi_api.py
JustAMan/pynvraw
9a860c547256cfc6f527bf4be3aeeed27d95fd85
[ "MIT" ]
1
2021-12-19T05:28:29.000Z
2021-12-19T05:28:29.000Z
src/pynvraw/nvapi_api.py
JustAMan/pynvraw
9a860c547256cfc6f527bf4be3aeeed27d95fd85
[ "MIT" ]
1
2021-10-05T09:24:54.000Z
2021-10-05T09:24:54.000Z
'''Low-level API working through obscure nvapi.dll.''' import ctypes import typing import sys import collections import enum from .status import NvStatus, NvError, NVAPI_OK nvapi = ctypes.CDLL('nvapi64.dll' if sys.maxsize > 2**32 else 'nvapi.dll') _nvapi_QueryInterface = nvapi.nvapi_QueryInterface _nvapi_QueryInter...
41.347163
169
0.636379
47,448
0.971678
0
0
6,368
0.130409
0
0
5,363
0.109828
2a7713ec88b506d2773b4218843ce5cb75b2a38f
5,537
py
Python
prototype/ukwa/lib/sip/ids.py
GilHoggarth/ukwa-manage
5893e9ea16c02e76eb81b2ccf7e161eeb183db9a
[ "Apache-2.0" ]
1
2021-05-18T21:47:29.000Z
2021-05-18T21:47:29.000Z
prototype/ukwa/lib/sip/ids.py
GilHoggarth/ukwa-manage
5893e9ea16c02e76eb81b2ccf7e161eeb183db9a
[ "Apache-2.0" ]
67
2017-11-22T11:13:18.000Z
2022-03-25T09:48:49.000Z
prototype/ukwa/lib/sip/ids.py
GilHoggarth/ukwa-manage
5893e9ea16c02e76eb81b2ccf7e161eeb183db9a
[ "Apache-2.0" ]
4
2020-01-17T17:23:54.000Z
2021-04-11T09:46:09.000Z
#!/usr/bin/env python """ Generic methods used for verifying/indexing SIPs. """ from __future__ import absolute_import import re import logging import tarfile import hdfs from lxml import etree from StringIO import StringIO # import the Celery app context #from crawl.celery import app #from crawl.celery import cfg ...
42.267176
176
0.519234
0
0
3,634
0.656312
0
0
0
0
1,690
0.305219
2a7afbc42adc7196fbe7873b0d70fede0a2ca8a1
186
py
Python
gentelella/registeration/forms.py
horoyoii/admin_dashboard_edgex
9aea5e43eeb3da17d9e9c65c3ed0337fe7694cb8
[ "MIT" ]
2
2020-05-24T20:34:41.000Z
2021-08-28T07:27:45.000Z
dashboard/registeration/forms.py
horoyoii/graduation_piece
4f907a10636e3862d09e950c6eb5f12e95b1a8e5
[ "MIT" ]
5
2021-03-19T09:14:10.000Z
2021-06-10T19:54:28.000Z
gentelella/registeration/forms.py
horoyoii/admin_dashboard_edgex
9aea5e43eeb3da17d9e9c65c3ed0337fe7694cb8
[ "MIT" ]
1
2020-04-04T07:58:51.000Z
2020-04-04T07:58:51.000Z
from django import forms from .models import * class ProfileFormModel(forms.ModelForm): class Meta: model = Device_profile fields = ['device_profile_file']
14.307692
40
0.672043
128
0.688172
0
0
0
0
0
0
21
0.112903
2a7c07919fb5a1ec10d504c1070cf336089772fc
1,334
py
Python
tests/tensors/similarity_functions/dot_product_test.py
richarajpal/deep_qa
d918335a1bed71b9cfccf1d5743321cee9c61952
[ "Apache-2.0" ]
459
2017-02-08T13:40:17.000Z
2021-12-12T12:57:48.000Z
deep_qa-master/tests/tensors/similarity_functions/dot_product_test.py
RTHMaK/RPGOne
3f3ada7db1762781668bfb2377154fdc00e17212
[ "Apache-2.0" ]
176
2017-01-26T01:19:41.000Z
2018-04-22T19:16:01.000Z
deep_qa-master/tests/tensors/similarity_functions/dot_product_test.py
RTHMaK/RPGOne
3f3ada7db1762781668bfb2377154fdc00e17212
[ "Apache-2.0" ]
154
2017-01-26T01:00:30.000Z
2021-02-05T10:44:42.000Z
# pylint: disable=no-self-use,invalid-name import numpy from numpy.testing import assert_almost_equal import keras.backend as K from deep_qa.tensors.similarity_functions.dot_product import DotProduct class TestDotProductSimilarityFunction: dot_product = DotProduct(name='dot_product') def test_initialize_weig...
44.466667
106
0.664168
1,130
0.847076
0
0
0
0
0
0
55
0.041229
2a7c4f4b2ed2f4f224397934a4adf80a74d5d652
8,699
py
Python
kiwi/cogs/Mod.py
Andres2055/Kiwi-bot
1f76ad886972de89fe0e6e8b1078ff01cc76ae7d
[ "MIT" ]
1
2021-03-30T05:15:36.000Z
2021-03-30T05:15:36.000Z
kiwi/cogs/Mod.py
Andres2055/Kiwi-bot
1f76ad886972de89fe0e6e8b1078ff01cc76ae7d
[ "MIT" ]
null
null
null
kiwi/cogs/Mod.py
Andres2055/Kiwi-bot
1f76ad886972de89fe0e6e8b1078ff01cc76ae7d
[ "MIT" ]
1
2018-09-23T07:04:23.000Z
2018-09-23T07:04:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ He copiado y modificado software ajeno. Gran parte de este script es una modificación y/o mejora del original, por ello doy los debidos créditos al autor del software original: MIT License Copyright (c) 2016 - 2017 Eduard Nikoleisen Permission is hereb...
37.175214
102
0.676859
7,217
0.82546
0
0
6,824
0.78051
5,966
0.682374
5,121
0.585726
2a7c896a391a02f788ac4dbbb70ff15ab41ff427
8,566
py
Python
scripts/genotype/GetReadDepthDiff.py
EichlerLab/smrtsv2
b71db8b66a2b701835998982f4fa6ec84ed46504
[ "MIT" ]
45
2019-01-25T20:01:30.000Z
2022-01-11T23:56:24.000Z
scripts/genotype/GetReadDepthDiff.py
EichlerLab/smrtsv2
b71db8b66a2b701835998982f4fa6ec84ed46504
[ "MIT" ]
58
2018-11-21T00:07:44.000Z
2022-01-18T13:45:03.000Z
scripts/genotype/GetReadDepthDiff.py
EichlerLab/smrtsv2
b71db8b66a2b701835998982f4fa6ec84ed46504
[ "MIT" ]
8
2019-01-27T18:49:55.000Z
2019-11-26T14:21:19.000Z
#!/usr/bin/env python3 import argparse import gc import numpy as np import os import pandas as pd import pysam # Number of SVs to process before resetting pysam (close and re-open file). Avoids a memory leak in pysam. PYSAM_RESET_INTERVAL = 1000 def get_read_depth(df_subset, bam_file_name, mapq, ref_filename=None)...
35.991597
133
0.661919
0
0
0
0
0
0
0
0
3,680
0.429605
2a7e107792c23c49f4303524f074d2e06ddfaa6a
16,017
py
Python
examples/cpcdata.py
zhmcclient/python-zhmcclient
7d200afb0343a02535c52dc8b6ba0d224010075c
[ "Apache-2.0" ]
30
2016-08-24T10:02:19.000Z
2021-11-25T10:44:26.000Z
examples/cpcdata.py
zhmcclient/python-zhmcclient
7d200afb0343a02535c52dc8b6ba0d224010075c
[ "Apache-2.0" ]
883
2016-08-23T12:32:12.000Z
2022-03-28T13:18:24.000Z
examples/cpcdata.py
zhmcclient/python-zhmcclient
7d200afb0343a02535c52dc8b6ba0d224010075c
[ "Apache-2.0" ]
25
2017-06-23T18:10:51.000Z
2022-03-28T02:53:29.000Z
#!/usr/bin/env python # Copyright 2016-2021 IBM Corp. 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 require...
30.566794
79
0.617157
97
0.006056
0
0
0
0
0
0
6,992
0.436536
2a7eae6a3cfc5393e3f489827ec889c44c331afe
5,991
py
Python
model-training/mtl_processor.py
imdiptanu/MUDESv2
9cab6571a381e076c1174a600c5a27858ef78f53
[ "Apache-2.0" ]
null
null
null
model-training/mtl_processor.py
imdiptanu/MUDESv2
9cab6571a381e076c1174a600c5a27858ef78f53
[ "Apache-2.0" ]
null
null
null
model-training/mtl_processor.py
imdiptanu/MUDESv2
9cab6571a381e076c1174a600c5a27858ef78f53
[ "Apache-2.0" ]
null
null
null
from farm.data_handler.processor import Processor from tokenizers.pre_tokenizers import WhitespaceSplit from farm.data_handler.samples import ( Sample, SampleBasket, ) from farm.data_handler.utils import expand_labels import ast import numpy as np import pandas as pd class MTLProcessor(Processor): def __i...
34.630058
94
0.55333
5,712
0.95343
0
0
291
0.048573
0
0
505
0.084293
2a7ffe46901a396481978f7847250513748371b6
611
py
Python
knightmovs_test.py
rcolomina/pythonchess
1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5
[ "MIT" ]
null
null
null
knightmovs_test.py
rcolomina/pythonchess
1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5
[ "MIT" ]
2
2016-11-01T09:57:36.000Z
2016-11-01T10:05:50.000Z
knightmovs_test.py
rcolomina/pythonchess
1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5
[ "MIT" ]
null
null
null
#!/usr/bin/python from piece import Piece from gameNode import GameNode from knightmovs import * from functions import * listPiecesWhite=[] listPiecesBlack=[] w1=Piece('Q',[3,1]) w2=Piece('N',[3,2]) w3=Piece('N',[4,2]) w4=Piece('B',[2,3]) listPiecesWhite.append(w1) listPiecesWhite.append(w2) listPiecesWhite.append(w...
21.821429
102
0.752864
0
0
0
0
0
0
0
0
88
0.144026
2a828d4b761c0ddb67592e07965d549c25c16293
1,519
py
Python
Rendering/Core/Testing/Python/ImageActor.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
3
2020-06-20T23:31:06.000Z
2021-01-11T02:17:16.000Z
Rendering/Core/Testing/Python/ImageActor.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
1
2020-12-01T23:21:02.000Z
2020-12-02T23:44:43.000Z
Rendering/Core/Testing/Python/ImageActor.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Create the RenderWindow, Renderer and both Actors ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) iren = vtk.vtkRenderWindowInteractor() iren.SetRen...
35.325581
70
0.780118
0
0
0
0
0
0
0
0
704
0.463463
2a8363a38588e48c3e8be09e652671f8d40a05b1
152
py
Python
bot/typings/common.py
Axelancerr/Life
1e214af2a46439a756c442967be4bfa8b05fd99c
[ "MIT" ]
27
2020-10-18T04:35:00.000Z
2021-08-03T13:21:27.000Z
dashboard/typings/common.py
Axelancerr/Life-dashboard
ecde503c1a90fdedd680ae19d22b3f5c9da4c4c2
[ "MIT" ]
19
2020-12-04T23:03:51.000Z
2021-08-14T20:21:53.000Z
dashboard/typings/common.py
Axelancerr/Life-dashboard
ecde503c1a90fdedd680ae19d22b3f5c9da4c4c2
[ "MIT" ]
7
2020-10-26T18:51:17.000Z
2021-07-07T05:39:01.000Z
# Future from __future__ import annotations # Standard Library from typing import Literal ImageFormat = Literal["webp", "jpeg", "jpg", "png", "gif"]
16.888889
58
0.723684
0
0
0
0
0
0
0
0
53
0.348684
2a84c203c8e242c343a0a2986ab07c180e14f97b
6,920
py
Python
boggle.py
tron32213021/boggle-game
3203e4bb51ab9ccee09cc292106e0385d1cfbb4c
[ "MIT" ]
null
null
null
boggle.py
tron32213021/boggle-game
3203e4bb51ab9ccee09cc292106e0385d1cfbb4c
[ "MIT" ]
null
null
null
boggle.py
tron32213021/boggle-game
3203e4bb51ab9ccee09cc292106e0385d1cfbb4c
[ "MIT" ]
null
null
null
#!/usr/local/anaconda/bin/python #copyright: Zhenye Jiang, tronsupernova@outlook.com from random import random from tkinter import * from copy import deepcopy class Boggle(): ''' @param dict F @param dict T @param int size @param int cellWidth @param array clone @param list soln @pa...
31.454545
137
0.506647
6,975
0.969828
0
0
0
0
0
0
1,142
0.158788
2a84cbc2017bac94e59b7e27f9e01644f4ef565c
7,826
py
Python
chart/message_passing_tree/message_passing_tree/decorators.py
JoeyBF/sseq
d553df5e2466aaad47f4a36bf5e051a3922b0dd0
[ "Apache-2.0", "MIT" ]
7
2021-04-22T04:06:09.000Z
2022-01-25T04:05:49.000Z
chart/message_passing_tree/message_passing_tree/decorators.py
JoeyBF/sseq
d553df5e2466aaad47f4a36bf5e051a3922b0dd0
[ "Apache-2.0", "MIT" ]
68
2020-03-21T22:37:24.000Z
2022-03-31T02:51:35.000Z
chart/message_passing_tree/message_passing_tree/decorators.py
JoeyBF/sseq
d553df5e2466aaad47f4a36bf5e051a3922b0dd0
[ "Apache-2.0", "MIT" ]
5
2021-02-17T06:37:43.000Z
2022-02-01T03:53:22.000Z
from copy import copy import functools import inspect import sys import traceback from . import ansi from .agent import Agent def reset_global_handlers(): global HANDLERS HANDLERS = { "in" : { }, "out" : { }, } reset_global_handlers() def subscribe_to(subs): def ...
36.915094
126
0.583312
276
0.035267
0
0
0
0
582
0.074367
2,175
0.27792
2a860262b33282503fccf38e95544724adfe85c7
347
py
Python
Python/bolha_curta.py
robertogoes/exercicios-coursera-python
5093cc31ccda764b6131987fa81601b7179a9bfc
[ "MIT" ]
null
null
null
Python/bolha_curta.py
robertogoes/exercicios-coursera-python
5093cc31ccda764b6131987fa81601b7179a9bfc
[ "MIT" ]
null
null
null
Python/bolha_curta.py
robertogoes/exercicios-coursera-python
5093cc31ccda764b6131987fa81601b7179a9bfc
[ "MIT" ]
null
null
null
def bolha_curta(self, lista): fim = len(lista) for i in range(fim-1, 0, -1): trocou = False for j in range(i): if lista[j] > lista[j+1]: lista[j], lista[j+1] = lista[j+1], lista[j] trocou = True if trocou== Fal...
26.692308
63
0.414986
0
0
0
0
0
0
0
0
0
0
2a8616811d43ccd05d2af0c119eb8d355bf9f7bd
7,740
py
Python
tests/lightning/utils/helpers.py
jexio/fulmo
daa4bd4f1cf3b8bd785a9024a413db9a0238f10c
[ "MIT" ]
null
null
null
tests/lightning/utils/helpers.py
jexio/fulmo
daa4bd4f1cf3b8bd785a9024a413db9a0238f10c
[ "MIT" ]
80
2021-07-13T12:58:25.000Z
2022-03-24T03:17:08.000Z
tests/lightning/utils/helpers.py
jexio/fulmo
daa4bd4f1cf3b8bd785a9024a413db9a0238f10c
[ "MIT" ]
null
null
null
# flake8: noqa # Copyright The PyTorch Lightning team. # # 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...
30
100
0.62584
6,816
0.88062
191
0.024677
0
0
0
0
1,536
0.19845
2a863733ace28ef6349e137d5a4a527f5a173db6
423
py
Python
bootstrapvz/providers/virtualbox/tasks/boot.py
qqshfox/bootstrap-vz
38fc7c52407d015d3c75867bfea266d0aec6d7e2
[ "Apache-2.0" ]
1
2016-07-21T15:10:26.000Z
2016-07-21T15:10:26.000Z
bootstrapvz/providers/virtualbox/tasks/boot.py
qqshfox/bootstrap-vz
38fc7c52407d015d3c75867bfea266d0aec6d7e2
[ "Apache-2.0" ]
3
2017-05-10T15:04:10.000Z
2017-06-02T18:14:50.000Z
bootstrapvz/providers/virtualbox/tasks/boot.py
qqshfox/bootstrap-vz
38fc7c52407d015d3c75867bfea266d0aec6d7e2
[ "Apache-2.0" ]
14
2016-12-15T09:29:10.000Z
2021-01-28T13:06:14.000Z
from bootstrapvz.base import Task from bootstrapvz.common import phases from bootstrapvz.common.tasks import grub class AddVirtualConsoleGrubOutputDevice(Task): description = 'Adding `tty0\' as output device for grub' phase = phases.system_modification successors = [grub.WriteGrubConfig] @classmethod...
30.214286
77
0.763593
306
0.723404
0
0
114
0.269504
0
0
84
0.198582
2a89f5934d16a217f8db591d993837148debfab4
12,444
py
Python
tensorflow_similarity/distances.py
djm2131/similarity
1431e39b77b17b72513d6ccb582f8af871ba76d0
[ "Apache-2.0" ]
null
null
null
tensorflow_similarity/distances.py
djm2131/similarity
1431e39b77b17b72513d6ccb582f8af871ba76d0
[ "Apache-2.0" ]
null
null
null
tensorflow_similarity/distances.py
djm2131/similarity
1431e39b77b17b72513d6ccb582f8af871ba76d0
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The TensorFlow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
35.452991
116
0.676712
9,785
0.786323
0
0
9,803
0.787769
0
0
6,351
0.510366
2a8a638716da9a921d2678fd212392c39c24f195
547
py
Python
satang_pro_signer/signer.py
thebevrishot/satang-pro-signer
e0d6affdaf3b3bf5a670bda160f8a7d341b41707
[ "MIT" ]
null
null
null
satang_pro_signer/signer.py
thebevrishot/satang-pro-signer
e0d6affdaf3b3bf5a670bda160f8a7d341b41707
[ "MIT" ]
null
null
null
satang_pro_signer/signer.py
thebevrishot/satang-pro-signer
e0d6affdaf3b3bf5a670bda160f8a7d341b41707
[ "MIT" ]
null
null
null
import hashlib import hmac from satang_pro_signer import preparer class Signer: def __init__(self, secret: bytes): self.secret = secret def sign(self, obj) -> bytes: parsed = preparer.Preparer(obj).encode() msg = bytes(parsed, encoding='utf-8') try: # better perf...
26.047619
58
0.605119
479
0.875686
0
0
0
0
0
0
63
0.115174
2a8b148c32e02ed52154cfd52c0605d99687fd17
76
py
Python
atcoder/abc/a035.py
tomato-300yen/coding
db6f440a96d8c83f486005c650461a69f27e3926
[ "MIT" ]
null
null
null
atcoder/abc/a035.py
tomato-300yen/coding
db6f440a96d8c83f486005c650461a69f27e3926
[ "MIT" ]
null
null
null
atcoder/abc/a035.py
tomato-300yen/coding
db6f440a96d8c83f486005c650461a69f27e3926
[ "MIT" ]
null
null
null
W, H = map(int, input().split()) print("4:3" if 4 * H == 3 * W else "16:9")
25.333333
42
0.5
0
0
0
0
0
0
0
0
11
0.144737
2a8c3235521952c85b8f72cbb5f29d72cf790334
24,976
py
Python
carbondesign/tests/test_multi_select_html.py
dozymoe/django-carbondesign
34aed0cfdccfa90fcb5bf2bbd347229815f1417b
[ "MIT" ]
null
null
null
carbondesign/tests/test_multi_select_html.py
dozymoe/django-carbondesign
34aed0cfdccfa90fcb5bf2bbd347229815f1417b
[ "MIT" ]
null
null
null
carbondesign/tests/test_multi_select_html.py
dozymoe/django-carbondesign
34aed0cfdccfa90fcb5bf2bbd347229815f1417b
[ "MIT" ]
null
null
null
# pylint:disable=missing-module-docstring,missing-class-docstring,missing-function-docstring from django import forms #- from .base import compare_template, SimpleTestCase class DummyForm(forms.Form): choice1 = forms.ChoiceField( required=False, help_text="Optional helper text here") ch...
36.621701
140
0.61427
24,800
0.992953
0
0
0
0
0
0
22,570
0.903668
2a8e83999cf4e97fafb8dbeb31077fa54eca387c
7,826
py
Python
visualization/POF/utils/keypoint_conversion.py
alvaro-budria/body2hands
0eba438b4343604548120bdb03c7e1cb2b08bcd6
[ "BSD-3-Clause" ]
63
2021-05-14T02:55:16.000Z
2022-03-13T01:51:12.000Z
visualization/POF/utils/keypoint_conversion.py
human2b/body2hands
8ab4b206dc397c3b326f2b4ec9448c84ee8801fe
[ "BSD-3-Clause" ]
9
2021-06-24T09:59:41.000Z
2021-12-31T08:15:20.000Z
visualization/POF/utils/keypoint_conversion.py
human2b/body2hands
8ab4b206dc397c3b326f2b4ec9448c84ee8801fe
[ "BSD-3-Clause" ]
9
2021-05-17T03:33:28.000Z
2022-02-17T02:30:44.000Z
import numpy as np import numpy.linalg as nl from utils.general import connMat a4_to_main = { 'body': np.array([1, 0, 9, 10, 11, 3, 4, 5, 12, 13, 14, 6, 7, 8, 17, 15, 18, 16, 19, 20], dtype=np.int64), # convert to order of openpose '1_body': np.array([1, 0, 9, 10, 11, 3, 4, 5, 12, 13, 14, 6, 7, 8, 17, 15, 18,...
43.966292
153
0.564528
0
0
0
0
0
0
0
0
1,065
0.136085
2a8e849bd418c1e14d8f941c5af6a81e0f4c5254
15,584
py
Python
rubika/__init__.py
sajjadsoleimani/rubika
328e60b76dd04be695285b0735c36e151e65ef5d
[ "MIT" ]
1
2022-01-22T10:29:12.000Z
2022-01-22T10:29:12.000Z
rubika/__init__.py
Mahdiblackstar/rubika
328e60b76dd04be695285b0735c36e151e65ef5d
[ "MIT" ]
null
null
null
rubika/__init__.py
Mahdiblackstar/rubika
328e60b76dd04be695285b0735c36e151e65ef5d
[ "MIT" ]
1
2022-03-21T07:44:49.000Z
2022-03-21T07:44:49.000Z
from requests import post from random import randint from json import loads, dumps import asyncio,base64,glob,json,math,urllib3,os,pathlib,random,sys,concurrent.futures,time from tqdm import tqdm from Crypto.Cipher import AES from Crypto.Util.Padding import pad, unpad urllib3.disable_warnings(urllib3.exceptions.Insecu...
28.752768
121
0.57681
15,242
0.978054
0
0
0
0
0
0
6,138
0.393866
2a8ef90a770448ffb4442173cc6d0ca697f44aeb
3,201
py
Python
colab_zirc_dims/non_std_cfgs/non_std_cfgs.py
MCSitar/colab-zirc-dims
1669bbac762e0ee117e27d189313547b8e9ca404
[ "Apache-2.0" ]
2
2021-11-04T01:15:21.000Z
2021-11-07T02:27:35.000Z
colab_zirc_dims/non_std_cfgs/non_std_cfgs.py
MCSitar/colab-zirc-dims
1669bbac762e0ee117e27d189313547b8e9ca404
[ "Apache-2.0" ]
null
null
null
colab_zirc_dims/non_std_cfgs/non_std_cfgs.py
MCSitar/colab-zirc-dims
1669bbac762e0ee117e27d189313547b8e9ca404
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Functions to install dependencies for non-standard models (e.g., Centermask2) and get compatible Detectron2 configs for them. """ import sys import subprocess try: from detectron2.config import get_cfg except ModuleNotFoundError: print('WARNING: Detectron2 not installed on (virtual?...
35.566667
104
0.619494
0
0
0
0
0
0
0
0
1,420
0.443611
2a8f1bffef647e648e98b668cdc27ae2039961fc
1,870
py
Python
main_train_brf.py
MahshidJabari/accident-prediction-montreal
f496269cbf6fada2bbff66325328f98d11a60c68
[ "MIT" ]
9
2019-10-26T20:42:34.000Z
2021-10-04T14:33:24.000Z
main_train_brf.py
MahshidJabari/accident-prediction-montreal
f496269cbf6fada2bbff66325328f98d11a60c68
[ "MIT" ]
5
2019-05-16T20:01:39.000Z
2021-12-13T20:01:57.000Z
main_train_brf.py
MahshidJabari/accident-prediction-montreal
f496269cbf6fada2bbff66325328f98d11a60c68
[ "MIT" ]
10
2019-04-26T21:26:12.000Z
2021-06-18T14:27:28.000Z
#!/usr/bin/env python from preprocess import get_negative_samples, get_positive_samples from utils import init_spark from preprocess import get_dataset_df from pyspark.ml.classification import RandomForestClassifier from pyspark.ml.tuning import ParamGridBuilder, TrainValidationSplit, \ Cr...
40.652174
71
0.683422
0
0
0
0
0
0
0
0
117
0.062567
2a904c8d13c0a4e09fe39c713c7e34d6fd595da9
1,302
py
Python
operations/tests/rally/custom_runner/ocss_search_runner.py
irin4eto/open-commerce-search
79b58b93c2c028ba5bade5ff9228cc63d6f3394b
[ "Apache-2.0" ]
22
2020-04-24T19:13:29.000Z
2022-02-15T13:09:37.000Z
operations/tests/rally/custom_runner/ocss_search_runner.py
irin4eto/open-commerce-search
79b58b93c2c028ba5bade5ff9228cc63d6f3394b
[ "Apache-2.0" ]
7
2019-12-06T15:08:16.000Z
2022-03-31T09:13:52.000Z
operations/tests/rally/custom_runner/ocss_search_runner.py
irin4eto/open-commerce-search
79b58b93c2c028ba5bade5ff9228cc63d6f3394b
[ "Apache-2.0" ]
2
2021-08-05T13:30:42.000Z
2022-01-24T22:53:13.000Z
# -*- coding: utf-8 -*- import json class OCSSSearchRunner: """ This runner should perform searches from ocss search logfile against elastic """ # define search data search_data = [] def initialize(self, params): # check given parameter if "index" in params and type(params["...
31
81
0.604455
1,262
0.969278
0
0
0
0
327
0.251152
359
0.27573
2a91308d7165b5bb29f38552b30075037b3d559a
8,574
py
Python
Packages/LiveReload/server/PluginAPI.py
kangTaehee/st3
34aa17bcdac88b94cc38d37276fdc4983b27c76d
[ "Apache-2.0" ]
4
2018-06-08T23:18:47.000Z
2020-02-24T06:14:06.000Z
Packages/LiveReload/server/PluginAPI.py
kangTaehee/st3
34aa17bcdac88b94cc38d37276fdc4983b27c76d
[ "Apache-2.0" ]
3
2021-05-10T18:59:14.000Z
2021-09-02T01:50:15.000Z
Packages/LiveReload/server/PluginAPI.py
kangTaehee/st3
34aa17bcdac88b94cc38d37276fdc4983b27c76d
[ "Apache-2.0" ]
2
2019-04-10T01:02:42.000Z
2021-02-05T08:41:38.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import LiveReload import json import sublime try: from .Settings import Settings except ValueError: from Settings import Settings def log(msg): pass class PluginFactory(type): """ Based on example from http://martyalchin.com/2008/jan/10/simple-plugin-f...
30.29682
104
0.533357
8,072
0.941451
0
0
447
0.052134
0
0
2,456
0.286447
2a91414de57b627b89516d25ee369f8bbf7d2897
431
py
Python
team/migrations/0014_auto_20200608_1855.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
null
null
null
team/migrations/0014_auto_20200608_1855.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
21
2019-02-14T02:47:34.000Z
2022-01-23T02:22:54.000Z
team/migrations/0014_auto_20200608_1855.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-06-08 22:55 from django.db import migrations import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('team', '0013_auto_20200608_1824'), ] operations = [ migrations.AlterField( model_name='profile', ...
21.55
81
0.62413
319
0.740139
0
0
0
0
0
0
92
0.213457
2a920b7ccb1c0d280a100c971c21a949a0ed335a
408
py
Python
discussions/migrations/0006_channel_is_deleted.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
32
2016-03-25T01:03:13.000Z
2022-01-15T19:35:42.000Z
discussions/migrations/0006_channel_is_deleted.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
4,858
2016-03-03T13:48:30.000Z
2022-03-29T22:09:51.000Z
discussions/migrations/0006_channel_is_deleted.py
umarmughal824/micromasters
ea92d3bcea9be4601150fc497302ddacc1161622
[ "BSD-3-Clause" ]
20
2016-08-18T22:07:44.000Z
2021-11-15T13:35:35.000Z
# Generated by Django 2.1.5 on 2019-03-22 07:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('discussions', '0005_timestamped_discussions_models'), ] operations = [ migrations.AddField( model_name='channel', na...
21.473684
63
0.620098
315
0.772059
0
0
0
0
0
0
118
0.289216
2a9522b6d5b9307922a2f1edce02700ed9d5c7b1
8,562
py
Python
exabel_data_sdk/client/api/search_service.py
burk/python-sdk
83fb81d09e0d6a407c8907a75bebb895decc7edc
[ "MIT" ]
null
null
null
exabel_data_sdk/client/api/search_service.py
burk/python-sdk
83fb81d09e0d6a407c8907a75bebb895decc7edc
[ "MIT" ]
null
null
null
exabel_data_sdk/client/api/search_service.py
burk/python-sdk
83fb81d09e0d6a407c8907a75bebb895decc7edc
[ "MIT" ]
null
null
null
import itertools from typing import Mapping, Sequence, Tuple, TypeVar, Union from exabel_data_sdk.client.api.api_client.entity_api_client import EntityApiClient from exabel_data_sdk.client.api.data_classes.entity import Entity from exabel_data_sdk.stubs.exabel.api.data.v1.all_pb2 import ( SearchEntitiesRequest, ...
42.597015
100
0.666083
8,033
0.938215
0
0
0
0
0
0
3,709
0.433193
2a97aa991dbbe490d3f89c2502461d05c3f3477d
3,808
py
Python
test/test_CustomLayers.py
tomasheiskanen/pro_gan_pytorch
af44df67a2e771207ed96af4c0948980edd9d3d7
[ "MIT" ]
2
2020-11-19T14:20:51.000Z
2020-12-10T10:54:39.000Z
test/test_CustomLayers.py
tomasheiskanen/pro_gan_pytorch
af44df67a2e771207ed96af4c0948980edd9d3d7
[ "MIT" ]
null
null
null
test/test_CustomLayers.py
tomasheiskanen/pro_gan_pytorch
af44df67a2e771207ed96af4c0948980edd9d3d7
[ "MIT" ]
2
2020-11-19T11:32:46.000Z
2020-12-10T23:32:18.000Z
import torch as th from unittest import TestCase from pro_gan_pytorch import CustomLayers as cL device = th.device("cuda" if th.cuda.is_available() else "cpu") class Test_equalized_conv2d(TestCase): def setUp(self): self.conv_block = cL._equalized_conv2d(21, 3, k_size=(3, 3), pad=1) # print th...
30.464
82
0.642595
3,631
0.953519
0
0
0
0
0
0
708
0.185924
aa48f57729bf1af92cafcf77cd0d806243d6e2f7
511
py
Python
onlinecourse/tests.py
vicbolo78/Week-8-Lab
39e086c2d8a07875218bce461b5ab1ca63b3b931
[ "Apache-2.0" ]
null
null
null
onlinecourse/tests.py
vicbolo78/Week-8-Lab
39e086c2d8a07875218bce461b5ab1ca63b3b931
[ "Apache-2.0" ]
null
null
null
onlinecourse/tests.py
vicbolo78/Week-8-Lab
39e086c2d8a07875218bce461b5ab1ca63b3b931
[ "Apache-2.0" ]
null
null
null
import unittest from django.test import TestCase class TestQuestion(unittest.TestCasel): def test_is_get_score(self, selected_ids): self.assertNotEqual(all_answers = self.choice_set.filter(is_correct=True).count() self.assertEqual(selected_correct = self.choice_set.filter(is_correct=True, id__in=s...
28.388889
112
0.688845
396
0.774951
0
0
0
0
0
0
10
0.019569
aa49195189dacb2ef252f543c4131fc6f7dbb7a4
1,482
py
Python
trnsystor/statement/overwritecheck.py
samuelduchesne/pyTrnsys
f2deb5eb340a2814722eead5f8b6278a945c730d
[ "MIT" ]
5
2021-07-20T16:07:06.000Z
2022-02-09T07:57:21.000Z
trnsystor/statement/overwritecheck.py
samuelduchesne/pyTrnsys
f2deb5eb340a2814722eead5f8b6278a945c730d
[ "MIT" ]
50
2021-02-12T07:36:55.000Z
2022-03-21T10:40:47.000Z
trnsystor/statement/overwritecheck.py
samuelduchesne/pyTrnsys
f2deb5eb340a2814722eead5f8b6278a945c730d
[ "MIT" ]
4
2019-06-28T17:56:05.000Z
2020-02-24T16:33:28.000Z
"""OverwriteCheck Statement.""" from trnsystor.statement.statement import Statement class OverwriteCheck(Statement): """OverwriteCheck Statement. A common error in non standard and user written TRNSYS Type routines is to reserve too little space in the global output array. By default, each Type is a...
39
80
0.691633
1,394
0.940621
0
0
0
0
0
0
1,213
0.818489
aa4ca18a2fac84c67cbd77ed0d5889f5f97ea255
3,012
py
Python
src/python/serif/model/impl/relation_mention/aida_relation_mention_model.py
BBN-E/text-open
c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9
[ "Apache-2.0" ]
2
2022-03-24T14:37:51.000Z
2022-03-24T19:56:45.000Z
src/python/serif/model/impl/relation_mention/aida_relation_mention_model.py
BBN-E/text-open
c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9
[ "Apache-2.0" ]
null
null
null
src/python/serif/model/impl/relation_mention/aida_relation_mention_model.py
BBN-E/text-open
c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9
[ "Apache-2.0" ]
null
null
null
import os from serif.model.relation_mention_model import RelationMentionModel from serif.theory.enumerated_type import Tense, Modality # Modified from DogFoodFinderRelationMentionModel class AIDARelationMentionModel(RelationMentionModel): '''adds TACRED relations to TACRED entities''' def __init__(self, mapp...
40.702703
154
0.648406
2,824
0.937583
0
0
0
0
0
0
1,227
0.407371
aa4ce841fb5c0a7a5017a31ae4183d5366d1cbf9
1,209
py
Python
datamodel_code_generator/model/pydantic/__init__.py
languitar/datamodel-code-generator
ddd909746a66df5c8268d782f3ae24bee636be92
[ "MIT" ]
null
null
null
datamodel_code_generator/model/pydantic/__init__.py
languitar/datamodel-code-generator
ddd909746a66df5c8268d782f3ae24bee636be92
[ "MIT" ]
null
null
null
datamodel_code_generator/model/pydantic/__init__.py
languitar/datamodel-code-generator
ddd909746a66df5c8268d782f3ae24bee636be92
[ "MIT" ]
null
null
null
from pathlib import Path from typing import List, Optional from jinja2 import Environment, FileSystemLoader, Template from pydantic import BaseModel as _BaseModel from ..base import TEMPLATE_DIR from .base_model import BaseModel, DataModelField from .custom_root_type import CustomRootType from .dataclass import DataC...
28.116279
78
0.753515
147
0.121588
0
0
0
0
0
0
541
0.447477
aa4cf8c4cd4ceb51b8a674e955be5c558d98e6e8
2,313
py
Python
tools/test_everything.py
cdleary/bazel_rules_hdl
3ef172ce63cecf43bb4f3648bfc8cd887030d1a4
[ "Apache-2.0" ]
null
null
null
tools/test_everything.py
cdleary/bazel_rules_hdl
3ef172ce63cecf43bb4f3648bfc8cd887030d1a4
[ "Apache-2.0" ]
null
null
null
tools/test_everything.py
cdleary/bazel_rules_hdl
3ef172ce63cecf43bb4f3648bfc8cd887030d1a4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2020 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
33.521739
119
0.695633
0
0
0
0
0
0
0
0
1,857
0.802853
aa4ec0e530ddfb88006f27f4a9ccb49f5c973bdc
3,039
py
Python
A069675/A069675_helper.py
sethtroisi/OEIS
2c10b86d8a8be69aa8020623d4802e3d68772ede
[ "Apache-2.0" ]
3
2019-05-25T23:08:48.000Z
2021-12-11T03:59:42.000Z
A069675/A069675_helper.py
sethtroisi/OEIS
2c10b86d8a8be69aa8020623d4802e3d68772ede
[ "Apache-2.0" ]
1
2019-03-07T21:22:52.000Z
2019-03-07T21:22:52.000Z
A069675/A069675_helper.py
sethtroisi/OEIS
2c10b86d8a8be69aa8020623d4802e3d68772ede
[ "Apache-2.0" ]
1
2021-04-29T06:35:07.000Z
2021-04-29T06:35:07.000Z
import math import gmpy2 # How many you want to find MAX_COUNT = 500 K_COUNT = 3.7 # d = 1000 yields ~264 #for parallel C++ K_COST = 4.14 * 1e-11 # d = 5000 takes ~400s K_FILTER_COST = 1.0 * 1e-9 # d = 5000, sieve = 30M takes 10.3s def optimal_sieve(d, expected_cost): non_trivial_a_b = d * 2...
25.537815
81
0.636064
0
0
0
0
0
0
0
0
610
0.200724
aa4ef2d9ea34cac394dfd068462eacae94338cce
8,849
py
Python
devilry/devilry_examiner/views/assignment/bulkoperations/bulk_feedback.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
29
2015-01-18T22:56:23.000Z
2020-11-10T21:28:27.000Z
devilry/devilry_examiner/views/assignment/bulkoperations/bulk_feedback.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
786
2015-01-06T16:10:18.000Z
2022-03-16T11:10:50.000Z
devilry/devilry_examiner/views/assignment/bulkoperations/bulk_feedback.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
15
2015-04-06T06:18:43.000Z
2021-02-24T12:28:30.000Z
from django import forms from django.contrib import messages from django.db import models from django.db import transaction from django.http import HttpResponseRedirect, Http404 from django.utils import timezone from django.utils.translation import gettext_lazy, pgettext_lazy from django.views.generic import View im...
40.591743
111
0.711154
8,104
0.91581
0
0
0
0
0
0
2,821
0.318793
aa4fab7f9af5d5e5f5046cccd34fc0d3664a73ba
3,258
py
Python
tests/test_util.py
NickVeld/battery_handyman
9be3f5b2fd5990a266f709853ef87508e47d4b6a
[ "Apache-2.0" ]
2
2021-07-19T11:08:04.000Z
2021-11-16T19:01:07.000Z
tests/test_util.py
NickVeld/battery_handyman
9be3f5b2fd5990a266f709853ef87508e47d4b6a
[ "Apache-2.0" ]
null
null
null
tests/test_util.py
NickVeld/battery_handyman
9be3f5b2fd5990a266f709853ef87508e47d4b6a
[ "Apache-2.0" ]
null
null
null
# Copyright [2021] [Nikolay Veld] # # 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...
39.253012
93
0.741559
0
0
0
0
1,585
0.486495
0
0
1,274
0.391037
aa517365a385efd5eb9f84b7a97466471cc557a7
19,978
py
Python
tests/http_wrappers/test_response.py
pabarros/asgard-api
3c10d5f99f584df5e8011558cf42e8b201d567e9
[ "MIT" ]
3
2020-01-10T02:16:09.000Z
2020-02-19T18:42:37.000Z
tests/http_wrappers/test_response.py
pabarros/asgard-api
3c10d5f99f584df5e8011558cf42e8b201d567e9
[ "MIT" ]
13
2020-01-15T18:22:35.000Z
2021-03-31T19:21:54.000Z
tests/http_wrappers/test_response.py
rockerbacon/asgard-api
1c1eb19225ace4bbecb06b65b1b9c4ab131eb24a
[ "MIT" ]
6
2020-03-07T09:49:19.000Z
2021-07-25T03:14:10.000Z
import json import unittest from copy import deepcopy from http import HTTPStatus from unittest.mock import call, patch from flask import Response as FlaskResponse from marathon import MarathonApp from marathon.models.group import MarathonGroup from marathon.models.task import MarathonTask from asgard.models.account ...
38.642166
93
0.598659
19,374
0.969379
0
0
15,991
0.80011
0
0
2,946
0.147403
aa51ffea60a8f3722501b0b1a0f4252d675d1628
1,481
py
Python
airbyte-integrations/connectors/source-chargebee/unit_tests/conftest.py
onaio/airbyte
38302e82a25f1b66742c3febfbff0668556920f2
[ "MIT" ]
22
2020-08-27T00:47:20.000Z
2020-09-17T15:39:39.000Z
airbyte-integrations/connectors/source-chargebee/unit_tests/conftest.py
onaio/airbyte
38302e82a25f1b66742c3febfbff0668556920f2
[ "MIT" ]
116
2020-08-27T01:11:27.000Z
2020-09-19T02:47:52.000Z
airbyte-integrations/connectors/source-chargebee/unit_tests/conftest.py
onaio/airbyte
38302e82a25f1b66742c3febfbff0668556920f2
[ "MIT" ]
1
2020-09-15T06:10:01.000Z
2020-09-15T06:10:01.000Z
# # Copyright (c) 2022 Airbyte, Inc., all rights reserved. # import json import os from pytest import fixture def load_file(fn): return open(os.path.join("unit_tests", "responses", fn)).read() @fixture def test_config_v1(): return {"site": "airbyte-test", "site_api_key": "site_api_key", "start_date": "202...
18.987179
131
0.717083
0
0
0
0
1,241
0.837947
0
0
456
0.3079
aa5257c3d2bbc31453ce0957dc8133ceb385c1ff
3,855
py
Python
tests/test_rfc8226.py
alvistack/etingof-pyasn1-modules
bdbcc5d9650a8e8382979f089df3307dd4121b49
[ "BSD-2-Clause" ]
34
2016-04-03T09:10:31.000Z
2022-02-12T20:38:31.000Z
tests/test_rfc8226.py
alvistack/etingof-pyasn1-modules
bdbcc5d9650a8e8382979f089df3307dd4121b49
[ "BSD-2-Clause" ]
138
2017-05-31T09:25:10.000Z
2022-02-07T09:00:19.000Z
tests/test_rfc8226.py
alvistack/etingof-pyasn1-modules
bdbcc5d9650a8e8382979f089df3307dd4121b49
[ "BSD-2-Clause" ]
36
2016-03-16T00:37:04.000Z
2021-11-12T12:09:43.000Z
# # This file is part of pyasn1-modules software. # # Created by Russ Housley # Copyright (c) 2019, Vigil Security, LLC # License: http://snmplabs.com/pyasn1/license.html # import sys import unittest from pyasn1.codec.der import decoder as der_decoder from pyasn1.codec.der import encoder as der_encoder from pyasn1_mo...
36.714286
78
0.751751
3,234
0.838911
0
0
0
0
0
0
1,327
0.344228
aa53b31e51246da4e5cbdd1eaa930f83edb36fc7
533
py
Python
Maior_e_Menor.py
PedroFelipe-G-Arruda/Grupo-python
a43e6575cf3b7c0de22aa3b19995a86ccab37ad2
[ "MIT" ]
null
null
null
Maior_e_Menor.py
PedroFelipe-G-Arruda/Grupo-python
a43e6575cf3b7c0de22aa3b19995a86ccab37ad2
[ "MIT" ]
null
null
null
Maior_e_Menor.py
PedroFelipe-G-Arruda/Grupo-python
a43e6575cf3b7c0de22aa3b19995a86ccab37ad2
[ "MIT" ]
null
null
null
a = float(input('digite um numero:')) b = float(input('digite um numero:')) c = float(input('digite um numero:')) if a > b: if a > c: ma = a if b > c: mi = c if c > b: mi = b if b > a: if b > c: ma = b if a > c: mi = c if c > ...
18.37931
60
0.348968
0
0
0
0
0
0
0
0
95
0.178236
aa580b5cf5cb0ae3973ea18eba36047b23561408
699
py
Python
nosai/numbers.py
kurianbenoy/Reading_like_AI
47eaa1353c86a8e5b3b8b6a2b3833e08039d47f8
[ "MIT" ]
null
null
null
nosai/numbers.py
kurianbenoy/Reading_like_AI
47eaa1353c86a8e5b3b8b6a2b3833e08039d47f8
[ "MIT" ]
3
2020-11-15T16:14:18.000Z
2020-11-15T16:16:08.000Z
nosai/numbers.py
kurianbenoy/Reading_like_AI
47eaa1353c86a8e5b3b8b6a2b3833e08039d47f8
[ "MIT" ]
null
null
null
""" 1999- Nineteen Ninty Nine 1888 - Eighteen Eighty Eight 1777 - Seventeen Seventy Seven 1111 - Oneeen Onety One Not fully huristics """ from num2words import num2words def spell(N): if N // 1_0000 ==0: N = divmod(N, 100) top, bot = N[0], N[1] result = [ ] if top == 11: ...
17.923077
42
0.532189
0
0
0
0
0
0
0
0
166
0.237482
aa5994c29326d8c20f2aaf6fae735a3edfc657c4
3,711
py
Python
src/preprocessing.py
kushagrasharma/bilstm-for-seq2f
6e576cb5bbc3d0a3c2e0a4735f0f1cc95187690f
[ "MIT" ]
null
null
null
src/preprocessing.py
kushagrasharma/bilstm-for-seq2f
6e576cb5bbc3d0a3c2e0a4735f0f1cc95187690f
[ "MIT" ]
null
null
null
src/preprocessing.py
kushagrasharma/bilstm-for-seq2f
6e576cb5bbc3d0a3c2e0a4735f0f1cc95187690f
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np function2idx = {"negative": 0, "ferritin": 1, "gpcr": 2, "p450": 3, "protease": 4} input_dir = '../data/raw/' data_dir = '../data/processed/' max_seq_len = 800 def read_and_concat_data(): df_cysteine = pd.read_csv(input_dir + 'uniprot-cysteine+protease+AND+reviewed_yes.tab...
43.151163
116
0.668283
0
0
0
0
0
0
0
0
1,136
0.306117
aa599682efaab603093212095b2252a141edf8de
509
py
Python
errores.py
facmartoni/python_exercises
7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2
[ "Apache-2.0" ]
null
null
null
errores.py
facmartoni/python_exercises
7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2
[ "Apache-2.0" ]
null
null
null
errores.py
facmartoni/python_exercises
7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2
[ "Apache-2.0" ]
1
2021-10-11T00:25:14.000Z
2021-10-11T00:25:14.000Z
def run(): countries = { 'mexico': 122, 'colombia': 49, 'argentina': 43, 'chile': 18, 'peru': 31 } while True: try: country = input( '¿De que país quieres saber la población?: ').lower() print( f'La p...
20.36
80
0.479371
0
0
0
0
0
0
0
0
210
0.40856
aa5cac558a4f7f7ce93e05bc22da8c8c1d651763
88
py
Python
Ara_Ara/apps.py
ksdfg/ARA-ARA
408c5d55f670279c6d92826fdf78d5f26f8b6bcc
[ "MIT" ]
null
null
null
Ara_Ara/apps.py
ksdfg/ARA-ARA
408c5d55f670279c6d92826fdf78d5f26f8b6bcc
[ "MIT" ]
null
null
null
Ara_Ara/apps.py
ksdfg/ARA-ARA
408c5d55f670279c6d92826fdf78d5f26f8b6bcc
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AraAraConfig(AppConfig): name = "Ara_Ara"
14.666667
33
0.75
51
0.579545
0
0
0
0
0
0
9
0.102273
aa5fa5ff3ffffa84887da1cb448b70b03ad5cd67
45
py
Python
ahmed-package/__init__.py
gokcelahmed/ahmed-package
a6c34fb2d85105ad33063b840c84f70ff7a0aa4d
[ "MIT" ]
null
null
null
ahmed-package/__init__.py
gokcelahmed/ahmed-package
a6c34fb2d85105ad33063b840c84f70ff7a0aa4d
[ "MIT" ]
null
null
null
ahmed-package/__init__.py
gokcelahmed/ahmed-package
a6c34fb2d85105ad33063b840c84f70ff7a0aa4d
[ "MIT" ]
null
null
null
from ahmed-package.functions import printName
45
45
0.888889
0
0
0
0
0
0
0
0
0
0
aa60b0079dcb6f5a27a15460a7a773255408abdc
91
py
Python
fsdviz/stocking/forms/__init__.py
AdamCottrill/fsdivz
98dd1f35a08dba26424e2951a40715e01399478c
[ "MIT" ]
null
null
null
fsdviz/stocking/forms/__init__.py
AdamCottrill/fsdivz
98dd1f35a08dba26424e2951a40715e01399478c
[ "MIT" ]
6
2020-02-12T00:03:40.000Z
2020-11-30T01:20:56.000Z
fsdviz/stocking/forms/__init__.py
AdamCottrill/fsdviz
98dd1f35a08dba26424e2951a40715e01399478c
[ "MIT" ]
null
null
null
from .FindEventsForm import * from .StockingEventForm import * from .XlsEventForm import *
22.75
32
0.802198
0
0
0
0
0
0
0
0
0
0
aa61678d6fbbb6831ab89015e270d094a885eab5
9,034
py
Python
Chapter 16/Lookup/algorithms.py
codered-by-ec-council/Micro-Degree-in-Python-Security
cb16ed78ee38dad32e3909371edec8ff3ce6e6a7
[ "MIT" ]
4
2020-09-25T05:57:22.000Z
2021-02-27T14:56:23.000Z
Chapter 16/Lookup/algorithms.py
codered-by-ec-council/Micro-Degree-in-Python-Security
cb16ed78ee38dad32e3909371edec8ff3ce6e6a7
[ "MIT" ]
4
2021-06-08T23:01:11.000Z
2022-03-12T00:54:16.000Z
Chapter 16/Lookup/algorithms.py
codered-by-ec-council/Micro-Degree-in-Python-Security
cb16ed78ee38dad32e3909371edec8ff3ce6e6a7
[ "MIT" ]
5
2020-10-15T10:22:04.000Z
2021-11-16T22:17:50.000Z
#!/usr/bin/env python3 ''' This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will...
23.464935
84
0.627629
5,705
0.631503
0
0
282
0.031215
0
0
3,086
0.341598
aa61d3193d1f93969b18dcfab958b79720287b12
3,643
py
Python
neurolang/region_solver.py
hndgzkn/NeuroLang
a3178d47f80bc0941440d9bb09e06c2f217b9566
[ "BSD-3-Clause" ]
1
2021-01-07T02:00:22.000Z
2021-01-07T02:00:22.000Z
neurolang/region_solver.py
hndgzkn/NeuroLang
a3178d47f80bc0941440d9bb09e06c2f217b9566
[ "BSD-3-Clause" ]
207
2020-11-04T12:51:10.000Z
2022-03-30T13:42:26.000Z
neurolang/region_solver.py
hndgzkn/NeuroLang
a3178d47f80bc0941440d9bb09e06c2f217b9566
[ "BSD-3-Clause" ]
6
2020-11-04T13:59:35.000Z
2021-03-19T05:28:10.000Z
import typing import re from .CD_relations import cardinal_relation, inverse_directions from .regions import Region, region_union from .expression_walker import PatternWalker from .expressions import Constant REFINE_OVERLAPPING = True class RegionSolver(PatternWalker[Region]): type_name = 'Region' def __n...
31.678261
78
0.533626
3,402
0.933846
0
0
0
0
0
0
323
0.088663
aa64678b26839c7ab3d6b1c16d9887e4d904607c
4,868
py
Python
More/E00_Publications/Infographics/conditionsHierarchy.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
More/E00_Publications/Infographics/conditionsHierarchy.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
More/E00_Publications/Infographics/conditionsHierarchy.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
# ----------------------------------------------------------------------------- # # P A G E B O T E X A M P L E S # # Copyright (c) 2017 Thom Janssen <https://github.com/thomgb> # www.pagebot.io # Licensed under MIT conditions # # Supporting DrawBot, www.drawbot.com # Supporting Flat, xxyxyz.or...
24.462312
79
0.581553
0
0
0
0
0
0
0
0
993
0.203985
aa64bf35cc2af88a116c7474f047c294202fae37
1,955
py
Python
mcarch/model/file.py
Scotsguy/MCArchive
89847bab722c6782fa53c7b11ee83f1f5b2d9f05
[ "MIT" ]
null
null
null
mcarch/model/file.py
Scotsguy/MCArchive
89847bab722c6782fa53c7b11ee83f1f5b2d9f05
[ "MIT" ]
null
null
null
mcarch/model/file.py
Scotsguy/MCArchive
89847bab722c6782fa53c7b11ee83f1f5b2d9f05
[ "MIT" ]
null
null
null
import os import enum import hashlib from urllib.parse import urljoin from flask import url_for, current_app as app from mcarch.app import db, get_b2bucket class StoredFile(db.Model): """Represents a file stored in some sort of storage medium.""" __tablename__ = 'stored_file' id = db.Column(db.Integer, p...
31.031746
88
0.679284
742
0.37954
0
0
0
0
0
0
649
0.331969
aa66b44f404f54a5640fb09e472c1518a47d7552
5,142
py
Python
taxi/migrations/0001_initial.py
alifelan/taxi-unico-web
edcbe8a8a9584350452fcea04a83247c5676b8f6
[ "MIT" ]
1
2021-05-26T09:06:08.000Z
2021-05-26T09:06:08.000Z
taxi/migrations/0001_initial.py
alifelan/taxi-unico-web
edcbe8a8a9584350452fcea04a83247c5676b8f6
[ "MIT" ]
10
2019-04-13T00:08:17.000Z
2019-05-09T10:43:06.000Z
taxi/migrations/0001_initial.py
alifelan/taxi-unico-web
edcbe8a8a9584350452fcea04a83247c5676b8f6
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-05-09 06:09 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='BusTrip', fields=[ ...
46.745455
154
0.571373
5,018
0.975885
0
0
0
0
0
0
829
0.161221
aa678b1085b17ea09b4872f0d8cdbfe36718c786
1,181
py
Python
mainapp/migrations/0006_auto_20200308_1745.py
Raistlin11123/inquiry-soso
380d27219a5855f9e25da90db47f85e46e5e8b5d
[ "MIT" ]
null
null
null
mainapp/migrations/0006_auto_20200308_1745.py
Raistlin11123/inquiry-soso
380d27219a5855f9e25da90db47f85e46e5e8b5d
[ "MIT" ]
null
null
null
mainapp/migrations/0006_auto_20200308_1745.py
Raistlin11123/inquiry-soso
380d27219a5855f9e25da90db47f85e46e5e8b5d
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-03-08 16:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mainapp', '0005_auto_20200308_1735'), ] operations = [ migrations.AlterField( model_name='clue', name='paragraph1', ...
30.282051
85
0.58171
1,090
0.922947
0
0
0
0
0
0
229
0.193903
aa6888c3b91fb826ed9f4b53bf760fb19c052e84
1,362
py
Python
utils/youtube.py
ramrathi/baritone
6a57aab99362b740903c0cd52f1f6cbb0e32909b
[ "MIT" ]
3
2020-04-03T15:11:26.000Z
2020-05-03T06:52:09.000Z
utils/youtube.py
ramrathi/baritone
6a57aab99362b740903c0cd52f1f6cbb0e32909b
[ "MIT" ]
null
null
null
utils/youtube.py
ramrathi/baritone
6a57aab99362b740903c0cd52f1f6cbb0e32909b
[ "MIT" ]
null
null
null
import subprocess import scipy.io.wavfile as wav import sys import numpy as np # import pyaudio import time import wave import os from pydub import AudioSegment import pafy from youtube_transcript_api import YouTubeTranscriptApi from youtube_dl import YoutubeDL dirname = os.path.dirname(os.path.abspath(__file__)) s...
25.698113
86
0.607195
0
0
0
0
0
0
0
0
225
0.165198
aa6a2735bc18f7d76cf04368018e139d17c5dd19
1,116
py
Python
pepdb/cms_pages/migrations/0006_auto_20151024_2019.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
7
2015-12-21T03:52:46.000Z
2020-07-24T19:17:23.000Z
pepdb/cms_pages/migrations/0006_auto_20151024_2019.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
12
2016-03-05T18:11:05.000Z
2021-06-17T20:20:03.000Z
pepdb/cms_pages/migrations/0006_auto_20151024_2019.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
4
2016-07-17T20:19:38.000Z
2021-03-23T12:47:20.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import wagtail.wagtailcore.fields class Migration(migrations.Migration): dependencies = [ ('cms_pages', '0005_auto_20150829_1516'), ] operations = [ migrations.AddField( ...
36
228
0.648746
973
0.871864
0
0
0
0
0
0
404
0.362007
aa6aeec0b7ed691ded9f765e25e1d736dda9bbf4
1,255
py
Python
autorop/leak/puts.py
Tanson/autorop
0d2fc71cdcc9649a6006aee641a3808f884d7fc4
[ "MIT" ]
null
null
null
autorop/leak/puts.py
Tanson/autorop
0d2fc71cdcc9649a6006aee641a3808f884d7fc4
[ "MIT" ]
null
null
null
autorop/leak/puts.py
Tanson/autorop
0d2fc71cdcc9649a6006aee641a3808f884d7fc4
[ "MIT" ]
null
null
null
from autorop import PwnState, arutil from pwn import ROP def puts(state: PwnState) -> PwnState: """Leak libc addresses using ``puts``. This function leaks the libc addresses of ``__libc_start_main`` and ``puts`` using ``puts``, placing them in ``state.leaks``. Arguments: state: The current `...
35.857143
85
0.619124
0
0
0
0
0
0
0
0
961
0.765737
aa6d58be81bd3ec465617d1b907661af609ecd48
2,515
py
Python
tests/unit/drivers/simple_vlan.py
gsilvis/haas
70d4b5dec081b803c87f0295e7ae8dc3b2a76ce9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/unit/drivers/simple_vlan.py
gsilvis/haas
70d4b5dec081b803c87f0295e7ae8dc3b2a76ce9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/unit/drivers/simple_vlan.py
gsilvis/haas
70d4b5dec081b803c87f0295e7ae8dc3b2a76ce9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2013-2014 Massachusetts Open Cloud Contributors # # 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 applicab...
34.452055
77
0.654076
763
0.30338
0
0
854
0.339563
0
0
1,236
0.491451
aa6e9617b11941b64bd3afef174d9947aebe3d32
403
py
Python
norm_test.py
szmybs/GOES-R-2017-HurricaneExtraction
2bacc7e035183d89448835e30947f639cff2776c
[ "MIT" ]
null
null
null
norm_test.py
szmybs/GOES-R-2017-HurricaneExtraction
2bacc7e035183d89448835e30947f639cff2776c
[ "MIT" ]
null
null
null
norm_test.py
szmybs/GOES-R-2017-HurricaneExtraction
2bacc7e035183d89448835e30947f639cff2776c
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from extract import HurricaneExtraction #npy_file = './Data/NpyData/LIDIA/20172450002.npz' npy_file = './Data/NpyData/IRMA/20172531622.npz' data = HurricaneExtraction.read_extraction_data(npy_file) data = HurricaneExtraction.normalize_using_physics(data) for d in ...
23.705882
57
0.759305
0
0
0
0
0
0
0
0
96
0.238213
aa7040dd6fc8f362a76b2ed6b5d28ac0731ddd6b
910
py
Python
util/get_weather_icons_map.py
multipolygon/esphome-configs
fb574cd6ffadcc6f5a1e1e89da8d4bd0b56845d8
[ "MIT" ]
null
null
null
util/get_weather_icons_map.py
multipolygon/esphome-configs
fb574cd6ffadcc6f5a1e1e89da8d4bd0b56845d8
[ "MIT" ]
null
null
null
util/get_weather_icons_map.py
multipolygon/esphome-configs
fb574cd6ffadcc6f5a1e1e89da8d4bd0b56845d8
[ "MIT" ]
1
2022-03-27T00:18:17.000Z
2022-03-27T00:18:17.000Z
from urllib.request import urlopen import json import re url = urlopen("https://raw.githubusercontent.com/Templarian/MaterialDesign/master/meta.json") meta = [(i['name'], i['codepoint']) for i in json.loads(url.read()) if re.search('^weather-', i['name'])] print('''--- esphome: # ... includes: - weather_icon_...
26
105
0.591209
0
0
0
0
0
0
0
0
476
0.523077
aa706634207ec5cdf904d41b11723983513e464f
3,913
py
Python
network_anomaly/KDDCup99-LSTM/binary/lskerastest.py
kidrabit/Data-Visualization-Lab-RND
baa19ee4e9f3422a052794e50791495632290b36
[ "Apache-2.0" ]
1
2022-01-18T01:53:34.000Z
2022-01-18T01:53:34.000Z
network_anomaly/UNSW-NB15-LSTM/binary/lskerastest.py
kidrabit/Data-Visualization-Lab-RND
baa19ee4e9f3422a052794e50791495632290b36
[ "Apache-2.0" ]
null
null
null
network_anomaly/UNSW-NB15-LSTM/binary/lskerastest.py
kidrabit/Data-Visualization-Lab-RND
baa19ee4e9f3422a052794e50791495632290b36
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from sklearn.cross_validation import train_test_split import pandas as pd import numpy as np np.random.seed(1337) # for reproducibility from keras.preprocessing import sequence from keras.utils import np_utils from keras.models import Sequential from keras.layers import Dense, Dro...
29.201493
164
0.729108
0
0
0
0
0
0
0
0
1,748
0.446716
aa707bae2c10ff673808c3e9ddea8f24a1136fa7
4,463
py
Python
train.py
MannyKayy/PlayableVideoGeneration
14133f94e14a40fc17f283e5b01c168bc45990b6
[ "MIT" ]
1
2021-06-19T11:34:29.000Z
2021-06-19T11:34:29.000Z
train.py
MannyKayy/PlayableVideoGeneration
14133f94e14a40fc17f283e5b01c168bc45990b6
[ "MIT" ]
null
null
null
train.py
MannyKayy/PlayableVideoGeneration
14133f94e14a40fc17f283e5b01c168bc45990b6
[ "MIT" ]
null
null
null
import argparse import importlib import os import torch import torch.nn as nn import torchvision import numpy as np from dataset.dataset_splitter import DatasetSplitter from dataset.transforms import TransformsGenerator from dataset.video_dataset import VideoDataset from evaluation.action_sampler import OneHotActionS...
40.572727
250
0.734484
0
0
0
0
0
0
0
0
1,190
0.266637
aa70ac474ebd39afb7c876d6f6c1c99f03f6a7de
2,545
py
Python
src/gripit/edgelib/maxlinedev.py
yor1001/GripIt
a06b300df56473f692cbb9154d60525d35137ee3
[ "MIT" ]
null
null
null
src/gripit/edgelib/maxlinedev.py
yor1001/GripIt
a06b300df56473f692cbb9154d60525d35137ee3
[ "MIT" ]
null
null
null
src/gripit/edgelib/maxlinedev.py
yor1001/GripIt
a06b300df56473f692cbb9154d60525d35137ee3
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import division from __future__ import unicode_literals from __future__ import absolute_import # MAXLINEDEV - Finds max deviation from a line in an edge contour. # # Function finds the point of maximum deviation from a line joining the # endpoints of an edge contour...
31.419753
91
0.630648
0
0
0
0
0
0
0
0
1,339
0.52613
aa70d111c58a251e0d85de6d7587ec453c5870c3
997
py
Python
common.py
tim-moody/mdwiki-cacher
a9aaa386c77c34b8e39f0b5a8a070e6ceff21560
[ "CC0-1.0" ]
null
null
null
common.py
tim-moody/mdwiki-cacher
a9aaa386c77c34b8e39f0b5a8a070e6ceff21560
[ "CC0-1.0" ]
null
null
null
common.py
tim-moody/mdwiki-cacher
a9aaa386c77c34b8e39f0b5a8a070e6ceff21560
[ "CC0-1.0" ]
null
null
null
# common functions import sys import json # taken from sp_lib def read_json_file(file_path): try: with open(file_path, 'r') as json_file: readstr = json_file.read() json_dict = json.loads(readstr) return json_dict except OSError as e: print('Unable to read url js...
28.485714
93
0.609829
0
0
0
0
0
0
0
0
151
0.151454
aa7171ed1f15768b83ea9a034a29465b15d2d581
1,039
py
Python
integration-test/291-483-suppress-historical-closed.py
roman-ianivskyy/vector-datasource
3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92
[ "MIT" ]
null
null
null
integration-test/291-483-suppress-historical-closed.py
roman-ianivskyy/vector-datasource
3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92
[ "MIT" ]
null
null
null
integration-test/291-483-suppress-historical-closed.py
roman-ianivskyy/vector-datasource
3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import dsl from shapely.wkt import loads as wkt_loads from . import FixtureTest class SuppressHistoricalClosed(FixtureTest): def test_cartoon_museum(self): # Cartoon Art Museum (closed) self.generate_fixtures(dsl.way(368173967, wkt_loads('POINT (-122.400856246311 37.786...
43.291667
247
0.636189
929
0.894129
0
0
0
0
0
0
507
0.487969
aa718898352cee72928a11efe02c9cc6a37ed12e
2,454
py
Python
dots_testsuite.py
nguyent2/Practice-with-Modules
a075447ceb00b2e2b6812775b2b8c069511c53e2
[ "MIT" ]
null
null
null
dots_testsuite.py
nguyent2/Practice-with-Modules
a075447ceb00b2e2b6812775b2b8c069511c53e2
[ "MIT" ]
null
null
null
dots_testsuite.py
nguyent2/Practice-with-Modules
a075447ceb00b2e2b6812775b2b8c069511c53e2
[ "MIT" ]
null
null
null
/Learn more or give us feedback ###################################################################### # Author: Thy H. Nguyen # TODO: Change this to your names # Username: nguyent2 # TODO: Change this to your usernames # # Assignment: A06: It's in your Genes # # Purpose: A test suite for testing the a06_genes.py progr...
32.72
115
0.624287
0
0
0
0
0
0
0
0
1,708
0.696007
aa718ac8fc1ac872735a24111d8686444d3abf4f
1,023
py
Python
comparison_order_butter_cheby.py
ivanpauno/filter_design_examples
1665db877251a4f9794e048cd099081af57d737b
[ "Apache-2.0" ]
null
null
null
comparison_order_butter_cheby.py
ivanpauno/filter_design_examples
1665db877251a4f9794e048cd099081af57d737b
[ "Apache-2.0" ]
null
null
null
comparison_order_butter_cheby.py
ivanpauno/filter_design_examples
1665db877251a4f9794e048cd099081af57d737b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Apr 13 11:03:51 2019 @author: ivanpauno """ import matplotlib.pyplot as plt import numpy as np def main(): # A = sqrt(10^(.1*alpha_min-1)/10^(.1*alpha_max-1)) A = np.logspace(np.log10(2), np.log10(100), num=200) ws_array = [1.1, 1.5, 2, 3...
27.648649
67
0.607038
0
0
0
0
0
0
0
0
268
0.261975
aa71d3a9bb29857114e644eeaaa3f518e6a6ce22
1,090
py
Python
zipline/pipeline/common.py
lv-cha/zipline-chinese
65928d98db46568409add0a9a404bc41729d0bb5
[ "Apache-2.0" ]
606
2017-04-07T03:49:37.000Z
2022-03-21T06:56:14.000Z
zipline/pipeline/common.py
pm58/zipline-chinese
86904cac4b6e928271f640910aa83675ce945b8b
[ "Apache-2.0" ]
6
2017-10-04T06:03:14.000Z
2020-06-05T06:49:49.000Z
zipline/pipeline/common.py
pm58/zipline-chinese
86904cac4b6e928271f640910aa83675ce945b8b
[ "Apache-2.0" ]
251
2017-04-07T00:55:17.000Z
2022-03-31T05:33:14.000Z
""" Common constants for Pipeline. """ AD_FIELD_NAME = 'asof_date' ANNOUNCEMENT_FIELD_NAME = 'announcement_date' CASH_FIELD_NAME = 'cash' CASH_AMOUNT_FIELD_NAME = 'cash_amount' BUYBACK_ANNOUNCEMENT_FIELD_NAME = 'buyback_date' DAYS_SINCE_PREV = 'days_since_prev' DAYS_SINCE_PREV_DIVIDEND_ANNOUNCEMENT = 'days_since_prev_d...
36.333333
79
0.844954
0
0
0
0
0
0
0
0
488
0.447706
aa73ceee10ce4e7d09848f6bc69f8d1e2190fd5c
2,220
py
Python
akaocr/utils/runtime.py
qai-research/Efficient_Text_Detection
e5cfe51148cc4fbf4c4f3afede040e4ebd624e8b
[ "MIT" ]
2
2021-04-28T04:13:09.000Z
2021-06-05T04:11:11.000Z
akaocr/utils/runtime.py
qai-research/Efficient_Text_Detection
e5cfe51148cc4fbf4c4f3afede040e4ebd624e8b
[ "MIT" ]
2
2021-05-06T13:49:52.000Z
2021-05-14T08:45:13.000Z
akaocr/utils/runtime.py
qai-research/Efficient_Text_Detection
e5cfe51148cc4fbf4c4f3afede040e4ebd624e8b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ _____________________________________________________________________________ Created By : Nguyen Viet Bac - Bacnv6 Created Date: Mon November 03 10:00:00 VNT 2020 Project : AkaOCR core ___________________________________________________________________________...
25.813953
101
0.682432
220
0.099099
298
0.134234
315
0.141892
0
0
710
0.31982
aa7564f0bdcd97403180bc4f639bc31610a2dc78
456
py
Python
sample_problems/problems_with_solution23.py
adi01trip01/adi_workspace
f493b3ba84645eec3a57607243760a826880d1a3
[ "MIT" ]
null
null
null
sample_problems/problems_with_solution23.py
adi01trip01/adi_workspace
f493b3ba84645eec3a57607243760a826880d1a3
[ "MIT" ]
null
null
null
sample_problems/problems_with_solution23.py
adi01trip01/adi_workspace
f493b3ba84645eec3a57607243760a826880d1a3
[ "MIT" ]
null
null
null
# Write a Python program to get the n (non-negative integer) copies of the first 2 characters of a given string. # Return the n copies of the whole string if the length is less than 2 s = input("Enter a string: ") def copies(string, number): copy = "" for i in range(number): copy += string[0] + strin...
24
112
0.638158
0
0
0
0
0
0
0
0
232
0.508772