hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
130
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
4d5194e0e10a84e11cc1527894e07b73e9d9e2bc
5,691
py
Python
tutel/examples/helloworld_deepspeed.py
EricWangCN/tutel
f1bfee19e16348b747702c38c871256a420828b0
[ "MIT" ]
1
2022-02-23T11:17:00.000Z
2022-02-23T11:17:00.000Z
tutel/examples/helloworld_deepspeed.py
EricWangCN/tutel
f1bfee19e16348b747702c38c871256a420828b0
[ "MIT" ]
null
null
null
tutel/examples/helloworld_deepspeed.py
EricWangCN/tutel
f1bfee19e16348b747702c38c871256a420828b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import time import torch import torch.optim as optim import torch.nn.functional as F import torch.distributed as dist from torch import nn import argparse import deepspeed import logging logging.basicConfig(leve...
35.12963
187
0.69689
c77263ac509df2aaa5d740e70b3e6bdba7f8d414
2,489
py
Python
dlapi.py
omnibus661/omnidl
4e4af09fa12e5d089e60ded05e4c276ef73168c9
[ "MIT" ]
null
null
null
dlapi.py
omnibus661/omnidl
4e4af09fa12e5d089e60ded05e4c276ef73168c9
[ "MIT" ]
null
null
null
dlapi.py
omnibus661/omnidl
4e4af09fa12e5d089e60ded05e4c276ef73168c9
[ "MIT" ]
null
null
null
import json import sys import os import logging import asyncio from threading import Thread from time import sleep from flask import Flask, abort, request, Response, send_from_directory from flask_restful import Resource, Api from flask_jsonpify import jsonify from flask_cors import CORS import youtube_dl as...
25.397959
87
0.543994
5152cc69d0033c9518cd985779d3405856a3d05c
1,074
py
Python
hood/urls.py
fuaad001/Neighbourhood
8c1489ce490540c71b319d9e539fe8c2cdd312a4
[ "MIT" ]
null
null
null
hood/urls.py
fuaad001/Neighbourhood
8c1489ce490540c71b319d9e539fe8c2cdd312a4
[ "MIT" ]
4
2021-03-19T00:58:02.000Z
2021-09-08T01:01:19.000Z
hood/urls.py
fuaad001/Neighbourhood
8c1489ce490540c71b319d9e539fe8c2cdd312a4
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.conf.urls.static import static from django.conf import settings from . import views urlpatterns=[ url('^$', views.index, name = 'index'), url(r'^home$', views.home, name = 'home'), url(r'^accounts/profile/$', views.profile, name = 'profile'), ...
46.695652
86
0.633147
28b59269b21730d53fc4b78318f2b50466f5c4fc
1,995
py
Python
test/nanoid_test.py
etrepum/py-nanoid
2fc593ed3174c16f22dccdca716c15ce9a3e9af5
[ "MIT" ]
256
2017-09-20T11:40:48.000Z
2022-03-31T23:02:56.000Z
test/nanoid_test.py
sthagen/py-nanoid
99e5b478c450f42d713b6111175886dccf16f156
[ "MIT" ]
19
2017-09-21T08:36:01.000Z
2022-02-01T06:16:30.000Z
test/nanoid_test.py
sthagen/py-nanoid
99e5b478c450f42d713b6111175886dccf16f156
[ "MIT" ]
20
2017-09-20T15:21:22.000Z
2022-03-12T05:19:23.000Z
# coding: utf-8 from sys import maxsize from unittest import TestCase from nanoid import generate, non_secure_generate from nanoid.resources import alphabet class TestNanoID(TestCase): def test_flat_distribution(self): count = 100 * 1000 length = 5 alphabet = 'abcdefghijklmnopqrstuvwxyz'...
28.913043
79
0.557393
44c1c0f67e0582280dbbfa81281478c920552634
9,565
py
Python
Algorithms/ProtoAlgorithm/ProtoAlgorithm.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
6
2020-07-07T15:45:13.000Z
2021-08-29T06:44:29.000Z
Algorithms/ProtoAlgorithm/ProtoAlgorithm.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
null
null
null
Algorithms/ProtoAlgorithm/ProtoAlgorithm.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
null
null
null
import time from typing import Tuple, List, Dict from Algorithms.General.GenStateSets import extract_states_from_sets, StateSet, StateSets from Algorithms.General.MergeStates import MergeStates from Algorithms.General.Tracing.TraceTree import Trace from DataObjects.ClassLevel import Level from DataObjects.ClassArchi...
36.930502
125
0.596968
3245f829c19fd5641d31efaaf7489cb8163d5905
928
py
Python
tests/integration/ssh/test_mine.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
tests/integration/ssh/test_mine.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
tests/integration/ssh/test_mine.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import os import shutil import salt.utils.platform from tests.support.case import SSHCase from tests.support.helpers import slowTest from tests.support.unit import skipIf @skipIf(salt.utils.platform.is_windows(), "salt-...
27.294118
79
0.658405
1e51c2a1e757879421f2d79e73dba116d4768c2c
393
py
Python
pythreejs/_example_helper.py
aliddell/pythreejs
8a2dc2c8fe9a8adb6affc8214c224e5c9d98fea1
[ "BSD-3-Clause" ]
451
2018-04-20T17:44:49.000Z
2022-03-26T21:53:05.000Z
pythreejs/_example_helper.py
aliddell/pythreejs
8a2dc2c8fe9a8adb6affc8214c224e5c9d98fea1
[ "BSD-3-Clause" ]
164
2018-04-19T08:34:57.000Z
2022-03-31T12:58:53.000Z
pythreejs/_example_helper.py
aliddell/pythreejs
8a2dc2c8fe9a8adb6affc8214c224e5c9d98fea1
[ "BSD-3-Clause" ]
119
2018-04-23T16:01:02.000Z
2022-03-26T03:28:59.000Z
def example_id_gen(max_n=1000): for i in range(1, max_n): yield 'pythree_example_model_%03d' % (i,) def use_example_model_ids(): from ipywidgets import Widget old_init = Widget.__init__ id_gen = example_id_gen() def new_init(self, *args, **kwargs): kwargs['model_id'] = next(id_gen...
26.2
49
0.659033
8ed45f38ccc763aff3c6984958c261e2c9f6ba94
8,618
py
Python
ptsr/utils/utility.py
prateek-77/rcan-it
587904556d8127bca83690deaaa26e34e051a576
[ "MIT" ]
57
2022-01-28T04:44:42.000Z
2022-03-31T13:26:35.000Z
ptsr/utils/utility.py
chisyliu/rcan-it
eb1794777ffef4eadd8a6a06f4419380a0b17435
[ "MIT" ]
6
2022-02-08T11:17:19.000Z
2022-03-27T07:40:18.000Z
ptsr/utils/utility.py
chisyliu/rcan-it
eb1794777ffef4eadd8a6a06f4419380a0b17435
[ "MIT" ]
10
2022-01-28T07:31:12.000Z
2022-03-15T01:35:03.000Z
from typing import Optional import torch.optim.lr_scheduler as lrs import torch.optim as optim import torch import imageio import numpy as np import matplotlib.pyplot as plt import os from math import log10, sqrt import time import datetime from multiprocessing import Process from multiprocessing import Queue import m...
33.929134
101
0.57554
ae27bd9490194d6aa55dc3e61c22bca6aa7fe21e
2,239
py
Python
run_tests.py
bpuderer/python-test-env
ed5d1f1b977560cc9bc52952500b93060fc11e6a
[ "MIT" ]
null
null
null
run_tests.py
bpuderer/python-test-env
ed5d1f1b977560cc9bc52952500b93060fc11e6a
[ "MIT" ]
1
2021-03-31T18:50:05.000Z
2021-03-31T18:50:05.000Z
run_tests.py
bpuderer/python-test-env
ed5d1f1b977560cc9bc52952500b93060fc11e6a
[ "MIT" ]
null
null
null
"""Wrapper for nose2""" import argparse import glob import os import shlex import subprocess def main(): parser = argparse.ArgumentParser(description='nose2 wrapper script', formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('tests', nargs='*', ...
33.924242
94
0.595355
5cc1f3013cc110703d1c49adcf3b02c5e72cf4d1
424
py
Python
soluciones/problema9.py
hernan-erasmo/project-euler
d68aa90c5fe2bf733bec54af5a786a2c144783bc
[ "Unlicense" ]
null
null
null
soluciones/problema9.py
hernan-erasmo/project-euler
d68aa90c5fe2bf733bec54af5a786a2c144783bc
[ "Unlicense" ]
null
null
null
soluciones/problema9.py
hernan-erasmo/project-euler
d68aa90c5fe2bf733bec54af5a786a2c144783bc
[ "Unlicense" ]
null
null
null
def main(): r = 2 encontrada = False while not encontrada: for t in mf.dickson_triples(r): print "r = " + str(r) + " - Probando con ", t, " (suma: " + str(t[0] + t[1] + t[2]) + ")" if (t[0] + t[1] + t[2]) == 1000: print "La terna es: ", t, " y el producto de las componentes es: " + str(t[0]*t[1]*t[2]) ...
24.941176
92
0.54717
be1f456e38313545306bea88aaa18675b0dc097a
21,733
py
Python
src/genie/libs/parser/nxos/tests/test_show_arp.py
tylersiemers/genieparser
f18d49f9ca268d23df34faaf8b2212ca29b6882e
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/nxos/tests/test_show_arp.py
tylersiemers/genieparser
f18d49f9ca268d23df34faaf8b2212ca29b6882e
[ "Apache-2.0" ]
1
2019-04-02T16:51:56.000Z
2019-04-02T16:51:56.000Z
src/genie/libs/parser/nxos/tests/test_show_arp.py
tylersiemers/genieparser
f18d49f9ca268d23df34faaf8b2212ca29b6882e
[ "Apache-2.0" ]
1
2021-01-29T17:31:33.000Z
2021-01-29T17:31:33.000Z
# Python import unittest from unittest.mock import Mock # ATS from ats.topology import Device # Metaparset from genie.metaparser.util.exceptions import SchemaEmptyParserError, \ SchemaMissingKeyError # Parser from genie.libs.parser.nxos.show_arp import ShowIpArpDetailVrfAll, \ ShowIpArpSummary...
35.627869
181
0.526849
9ec0ac976de49670c7b742bba14e3d657730bdc3
5,863
py
Python
faster_rcnn/rpn_proposal.py
tendence/faster_rcnn
55810bc759482acc1a047f949cc0bda942329df1
[ "MIT" ]
1
2017-12-08T02:44:40.000Z
2017-12-08T02:44:40.000Z
faster_rcnn/rpn_proposal.py
tendence/faster_rcnn
55810bc759482acc1a047f949cc0bda942329df1
[ "MIT" ]
null
null
null
faster_rcnn/rpn_proposal.py
tendence/faster_rcnn
55810bc759482acc1a047f949cc0bda942329df1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Copyright 2017, Mengxiao Lin <linmx0130@gmail.com> import mxnet as mx import numpy as np from .anchor_generator import generate_anchors, map_anchors from .utils import bbox_inverse_transform, bbox_overlaps, bbox_transform, bbox_clip from .nms import nms from .config import cfg def proposal_train...
49.686441
133
0.711752
6b05a475bdc626d99997616a9c027a2f62bc8320
753
py
Python
website.py
MrL3X/mr_l3x.github.io
b4c0c5360f5d86ed73ca250d38c251030908d9f7
[ "MIT" ]
1
2018-04-06T00:37:39.000Z
2018-04-06T00:37:39.000Z
website.py
MrL3X/Flask_Website
b4c0c5360f5d86ed73ca250d38c251030908d9f7
[ "MIT" ]
null
null
null
website.py
MrL3X/Flask_Website
b4c0c5360f5d86ed73ca250d38c251030908d9f7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from flask import Flask, flash, redirect, render_template, request, session, abort from random import randint app = Flask(__name__) app.config['SECRET_KEY'] = 'My website' @app.route("/") def index(): return render_template('index.html', title='Home') @app.route('/') def about(): retur...
25.1
82
0.702523
219fffa25aa59a3e7dada81d4fb072b867a27ba4
1,882
py
Python
config/configure-secrets.py
adeptvin1/AdvantEDGE
e619e7bf7a442b8d652df6b6e8b45dca005059fc
[ "Apache-2.0" ]
43
2019-09-17T23:08:38.000Z
2022-03-11T21:51:48.000Z
config/configure-secrets.py
adeptvin1/AdvantEDGE
e619e7bf7a442b8d652df6b6e8b45dca005059fc
[ "Apache-2.0" ]
51
2019-09-18T14:38:15.000Z
2022-03-27T16:34:07.000Z
config/configure-secrets.py
adeptvin1/AdvantEDGE
e619e7bf7a442b8d652df6b6e8b45dca005059fc
[ "Apache-2.0" ]
32
2019-09-17T19:40:00.000Z
2022-03-24T22:23:35.000Z
#!/usr/bin/python import sys import yaml import subprocess def usage(): print(''' NAME configure-secrets - Create or delete platform deployment secrets from FILE SYNOPSIS configure-secrets <ACTION> FILE ACTION -s, set Set secrets -d, del Delete secrets FILE...
21.146067
84
0.637088
164bf2b5278b5fcaaed44c98c74542d9c15bab88
11,803
py
Python
examples/zonediff.py
Ashiq5/dnspython
5449af5318d88bada34f661247f3bcb16f58f057
[ "ISC" ]
1,666
2015-01-02T17:46:14.000Z
2022-03-30T07:27:32.000Z
examples/zonediff.py
felixonmars/dnspython
2691834df42aab74914883fdf26109aeb62ec647
[ "ISC" ]
591
2015-01-16T12:19:49.000Z
2022-03-30T21:32:11.000Z
examples/zonediff.py
felixonmars/dnspython
2691834df42aab74914883fdf26109aeb62ec647
[ "ISC" ]
481
2015-01-14T04:14:43.000Z
2022-03-30T19:28:52.000Z
#!/usr/bin/env python3 # # Small library and commandline tool to do logical diffs of zonefiles # ./zonediff -h gives you help output # # Requires dnspython to do all the heavy lifting # # (c)2009 Dennis Kaarsemaker <dennis@kaarsemaker.net> # # Permission to use, copy, modify, and distribute this software and its # docu...
37.951768
101
0.555791
810a4e596faf1458f9cf82eef33c3e5240c64dd7
705
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractWwwOtakubuCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractWwwOtakubuCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractWwwOtakubuCom.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractWwwOtakubuCom(item): ''' Parser for 'www.otakubu.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('Hyaku Ma No Omo', 'Hyaku Ma No Omo', 'translated'), ...
32.045455
104
0.584397
094ecc7db53347bede899d0e32ccffb01abac1d2
268
py
Python
DayOf/regression.py
samuelfu/MIT_Trading
608464adf08cc9ede838e3947c5ae5ffb31a43f1
[ "MIT" ]
30
2018-12-10T21:17:35.000Z
2022-03-01T04:19:56.000Z
DayOf/regression.py
samuelfu/MIT_Trading
608464adf08cc9ede838e3947c5ae5ffb31a43f1
[ "MIT" ]
8
2020-11-12T02:40:57.000Z
2021-02-25T05:50:03.000Z
DayOf/regression.py
samuelfu/MIT_Trading
608464adf08cc9ede838e3947c5ae5ffb31a43f1
[ "MIT" ]
11
2018-12-23T23:40:10.000Z
2022-03-14T16:49:03.000Z
import pandas as pd from pandas import DataFrame from sklearn import linear_model import statsmodels.api as sm data = pd.read_csv('train_data/simple.csv') df = DataFrame(data, columns=['p', 'prev_price', 't', 'x1', 'x2']) X = df[['x1', 'x2']] Y = df[''] print(df)
19.142857
66
0.679104
5782ba1779dd4d4ebd0d263ee746161642c5a60f
1,674
py
Python
patreon/schemas/user.py
monokrome/patreon-python
09aad6800c6b9f33e026712a43e5f7e7c7a2a391
[ "Apache-2.0" ]
null
null
null
patreon/schemas/user.py
monokrome/patreon-python
09aad6800c6b9f33e026712a43e5f7e7c7a2a391
[ "Apache-2.0" ]
null
null
null
patreon/schemas/user.py
monokrome/patreon-python
09aad6800c6b9f33e026712a43e5f7e7c7a2a391
[ "Apache-2.0" ]
null
null
null
class Attributes(object): email = 'email' first_name = 'first_name' last_name = 'last_name' full_name = 'full_name' gender = 'gender' status = 'status' vanity = 'vanity' about = 'about' facebook_id = 'facebook_id' image_url = 'image_url' thumb_url = 'thumb_url' thumbnails...
23.914286
53
0.677419
0c90af87b94573f87a34b9198ec4f20ce4b963c1
935
py
Python
labeler_api/app/db/__init__.py
UMass-Rescue/RescueLabeler
6a6e57ed2d6f8c05b398b7068a464998abd4bf9b
[ "MIT" ]
null
null
null
labeler_api/app/db/__init__.py
UMass-Rescue/RescueLabeler
6a6e57ed2d6f8c05b398b7068a464998abd4bf9b
[ "MIT" ]
null
null
null
labeler_api/app/db/__init__.py
UMass-Rescue/RescueLabeler
6a6e57ed2d6f8c05b398b7068a464998abd4bf9b
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy_utils import database_exists, create_database import logging from app.db import base # noqa from app.db.base_class import Base import app.core.config as config logger = logging.getLogger("rescue-labeler") engine = create_eng...
28.333333
75
0.739037
c8244f33e9417242192afdc8438ef6c61bcfc4f1
1,684
py
Python
Visualization/visualizing_feature_collection.py
monocilindro/qgis-earthengine-examples
82aea8926d34ed3f4ad4a4a345ddbd225819d28f
[ "MIT" ]
646
2019-12-03T06:09:03.000Z
2022-03-28T03:37:08.000Z
Visualization/visualizing_feature_collection.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
10
2019-12-30T03:42:44.000Z
2021-05-22T07:34:07.000Z
Visualization/visualizing_feature_collection.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
219
2019-12-06T02:20:53.000Z
2022-03-30T15:14:27.000Z
import ee from ee_plugin import Map # Load a FeatureCollection from a table dataset: 'RESOLVE' ecoregions. ecoregions = ee.FeatureCollection('RESOLVE/ECOREGIONS/2017') # Display as default and with a custom color. Map.addLayer(ecoregions, {}, 'default display') Map.addLayer(ecoregions, {'color': 'FF0000'}, 'colored...
29.034483
93
0.696556
00cd9668d735b60ff529522a27aa5ad1735b0404
2,849
py
Python
optimade-python-tools/tests/server/query_params/conftest.py
attlevafritt/tfya92-groupa-optimade-python-tools
43e462ce70cf50a20f21a0aefb15d39db265773b
[ "MIT" ]
null
null
null
optimade-python-tools/tests/server/query_params/conftest.py
attlevafritt/tfya92-groupa-optimade-python-tools
43e462ce70cf50a20f21a0aefb15d39db265773b
[ "MIT" ]
null
null
null
optimade-python-tools/tests/server/query_params/conftest.py
attlevafritt/tfya92-groupa-optimade-python-tools
43e462ce70cf50a20f21a0aefb15d39db265773b
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def check_include_response(get_good_response): """Fixture to check "good" `include` response""" from typing import Union, List, Set def inner( request: str, expected_included_types: Union[List, Set], expected_included_resources: Union[List, Set], ...
35.17284
105
0.651457
2101ec56934901cc5cb4d068f7570f0778674bc5
3,553
py
Python
tests.py
richardpanda/kraken
d37c0a27f41e53846c9a11f562dea328bdb21248
[ "MIT" ]
null
null
null
tests.py
richardpanda/kraken
d37c0a27f41e53846c9a11f562dea328bdb21248
[ "MIT" ]
1
2021-06-01T22:09:12.000Z
2021-06-01T22:09:12.000Z
tests.py
richardpanda/kraken
d37c0a27f41e53846c9a11f562dea328bdb21248
[ "MIT" ]
null
null
null
import json import unittest from app import create_app, db from app.models import User from config import TestingConfig from unittest.mock import patch class APITests(unittest.TestCase): def setUp(self): self.app = create_app(TestingConfig) self.client = self.app.test_client() self.app_co...
33.205607
88
0.622291
fe39ab84d614565922decd300ded46aea2f32f2f
10,130
py
Python
multinn/models/multinn/multinn_jamming.py
ilya16/MultINN
2173d6c4e67d4619e89ad93b2b8d9cc46aafc1c8
[ "MIT" ]
2
2019-07-22T14:00:40.000Z
2021-01-11T09:04:46.000Z
multinn/models/multinn/multinn_jamming.py
ilya16/MultINN
2173d6c4e67d4619e89ad93b2b8d9cc46aafc1c8
[ "MIT" ]
1
2020-05-04T12:53:26.000Z
2020-05-04T12:53:26.000Z
multinn/models/multinn/multinn_jamming.py
ilya16/MultINN
2173d6c4e67d4619e89ad93b2b8d9cc46aafc1c8
[ "MIT" ]
1
2019-12-30T13:00:13.000Z
2019-12-30T13:00:13.000Z
"""Implementation of a Jamming MultINN model with per-track modules and no communication.""" import tensorflow as tf from models.multinn.core.multi_encoder_nn import MultIEncoderNN from utils.training import compute_gradients class MultINNJamming(MultIEncoderNN): """Jamming MultINN model. Multiple per-trac...
40.358566
104
0.635044
43932733f006cf948b923cdc4db44bb69cd252d1
673
py
Python
nextbox_ui_plugin/filters.py
MaxRink/nextbox-ui-plugin
c0d7dca18754e2f436b3178fcdd6e8cf0f09c884
[ "MIT" ]
2
2021-11-11T11:49:17.000Z
2022-01-04T02:10:45.000Z
nextbox_ui_plugin/filters.py
MaxRink/nextbox-ui-plugin
c0d7dca18754e2f436b3178fcdd6e8cf0f09c884
[ "MIT" ]
null
null
null
nextbox_ui_plugin/filters.py
MaxRink/nextbox-ui-plugin
c0d7dca18754e2f436b3178fcdd6e8cf0f09c884
[ "MIT" ]
1
2022-01-15T13:14:20.000Z
2022-01-15T13:14:20.000Z
import django_filters from dcim.models import Device, Site, Region class TopologyFilterSet(django_filters.FilterSet): device_id = django_filters.ModelMultipleChoiceFilter( queryset=Device.objects.all(), to_field_name='id', field_name='id', label='Device (ID)', ) site_id = ...
25.884615
57
0.640416
ed39557a3888a553539c7a0f9188defdef8513bf
141
py
Python
solutions/rosalind/ini4/ini4.py
deniscostadsc/playground
11fa8e2b708571940451f005e1f55af0b6e5764a
[ "MIT" ]
18
2015-01-22T04:08:51.000Z
2022-01-08T22:36:47.000Z
solutions/rosalind/ini4/ini4.py
deniscostadsc/playground
11fa8e2b708571940451f005e1f55af0b6e5764a
[ "MIT" ]
4
2016-04-25T12:32:46.000Z
2021-06-15T18:01:30.000Z
solutions/rosalind/ini4/ini4.py
deniscostadsc/playground
11fa8e2b708571940451f005e1f55af0b6e5764a
[ "MIT" ]
25
2015-03-02T06:21:51.000Z
2021-09-12T20:49:21.000Z
import sys a, b = sys.stdin.read().replace('\n', '').split() a = int(a) b = int(b) print(sum([i for i in range(a, b + 1) if i % 2 != 0]))
15.666667
54
0.524823
70c846d63852d4b1907c9305bfec7adc03e349b5
642
py
Python
main.py
WiraDKP/cow_detection_opencv
0e64a148747be879138cbd7cd452cf99c077a879
[ "MIT" ]
1
2021-07-04T07:30:58.000Z
2021-07-04T07:30:58.000Z
main.py
WiraDKP/cow_detection_opencv
0e64a148747be879138cbd7cd452cf99c077a879
[ "MIT" ]
null
null
null
main.py
WiraDKP/cow_detection_opencv
0e64a148747be879138cbd7cd452cf99c077a879
[ "MIT" ]
null
null
null
import cv2 from detect import CowDetection from jcopvision.io import MediaReader, key_pressed, create_sized_window import config as cfg if __name__ == "__main__": media = MediaReader(cfg.FILE_PATH) model = CowDetection(cfg.MODEL_PATH, cfg.CONFIG_PATH, cfg.LABEL_PATH) create_sized_window(500, media.aspect_...
33.789474
101
0.714953
fb1ef10600d279876845080702f6cad7155d070e
1,205
py
Python
qiskit/transpiler/passes/decompose.py
gaurav-iiser/qiskit-terra
3554a7e9ab5c77432ed5ccaa106fb8dc15553756
[ "Apache-2.0" ]
2
2021-09-06T19:25:36.000Z
2021-11-17T10:46:12.000Z
qiskit/transpiler/passes/decompose.py
gaurav-iiser/qiskit-terra
3554a7e9ab5c77432ed5ccaa106fb8dc15553756
[ "Apache-2.0" ]
null
null
null
qiskit/transpiler/passes/decompose.py
gaurav-iiser/qiskit-terra
3554a7e9ab5c77432ed5ccaa106fb8dc15553756
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """Pass for decompose a gate in a circuit.""" from qiskit.transpiler.basepasses import TransformationPass class Decompose(...
28.023256
77
0.631535
24939e6d7e1adf40ecc8025ee07daccca11e314b
10,474
py
Python
mrjob/logs/mixin.py
lydian/mrjob
13028274296f5618d63ffc00301537fd385eef82
[ "Apache-2.0" ]
null
null
null
mrjob/logs/mixin.py
lydian/mrjob
13028274296f5618d63ffc00301537fd385eef82
[ "Apache-2.0" ]
null
null
null
mrjob/logs/mixin.py
lydian/mrjob
13028274296f5618d63ffc00301537fd385eef82
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2016 Yelp and Contributors # Copyright 2017 Yelp # Copyright 2018 Yelp # # 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/L...
37.676259
78
0.650754
8e5c48a837e0ac5fc48117e0d0ea5c8c20838f36
1,776
py
Python
tests/idp_slo_redirect_conf.py
skanct/pysaml2
0c1e26a6dd8759962857a30ebd67f63fe9e881ee
[ "Apache-2.0" ]
249
2018-03-01T09:47:04.000Z
2022-03-26T04:51:26.000Z
tests/idp_slo_redirect_conf.py
skanct/pysaml2
0c1e26a6dd8759962857a30ebd67f63fe9e881ee
[ "Apache-2.0" ]
416
2018-02-21T15:18:35.000Z
2022-03-04T16:59:36.000Z
tests/idp_slo_redirect_conf.py
skanct/pysaml2
0c1e26a6dd8759962857a30ebd67f63fe9e881ee
[ "Apache-2.0" ]
203
2018-02-21T13:53:12.000Z
2022-03-08T22:22:17.000Z
from saml2 import BINDING_HTTP_REDIRECT from saml2.saml import NAMEID_FORMAT_PERSISTENT from saml2.saml import NAME_FORMAT_URI from pathutils import full_path CONFIG = { "entityid" : "urn:mace:example.com:saml:roland:idp", "name" : "Rolands IdP", "service": { "idp": { "endpoints" : { ...
32.888889
78
0.515203
aebba599d6225d1984135139179c7456d6c1b7e8
1,586
py
Python
src/battery_hour_data.py
albinbjorn/battery_simulator
6636f86cdd5b0ed9a16541ff8ca8f0933360153e
[ "MIT" ]
null
null
null
src/battery_hour_data.py
albinbjorn/battery_simulator
6636f86cdd5b0ed9a16541ff8ca8f0933360153e
[ "MIT" ]
null
null
null
src/battery_hour_data.py
albinbjorn/battery_simulator
6636f86cdd5b0ed9a16541ff8ca8f0933360153e
[ "MIT" ]
null
null
null
import numpy as np def determine_P_instruct(load, P_activate, P_battery_max): if load <= P_activate and (P_activate - load >= P_battery_max): P_instruct = P_battery_max elif load <= P_activate and (P_activate - load < P_battery_max): P_instruct = P_activate - load elif load >= P_activate and (load - P_activate ...
31.72
74
0.725725
83f10c836f609b70d7232d04e53525e54bfca609
5,335
py
Python
conceptnet5/edges.py
CollectiWise/conceptnet
2998df5a9d287ca72032abb1d9b082747ba97c08
[ "Apache-2.0" ]
2
2020-07-19T13:27:29.000Z
2020-07-19T13:37:28.000Z
conceptnet5/edges.py
terU3760/conceptnet5
11ea97fdee0a87170abf948625303bf86c0de835
[ "Apache-2.0" ]
null
null
null
conceptnet5/edges.py
terU3760/conceptnet5
11ea97fdee0a87170abf948625303bf86c0de835
[ "Apache-2.0" ]
null
null
null
""" Utilities for representing edges (assertions). Most notably, this module includes the `make_edge` function, which builds the dictionary representing an edge. """ from conceptnet5.uri import ( assertion_uri, uri_prefix, conjunction_uri, is_concept, split_uri ) from conceptnet5.nodes import ld_node import re d...
33.553459
80
0.585567
b46362e0b685da0ea78c583bcbcbb0826f12201c
1,100
py
Python
web/helpers/globals.py
RPANBot/RPANBot
dc0345e40667cb510490ffd32197f3998c5efe2f
[ "Apache-2.0" ]
5
2020-08-25T23:12:33.000Z
2021-09-06T20:38:44.000Z
web/helpers/globals.py
b1uejay27/RPANBot
782ad9bc9f968fd52036ef4d541afd9df8c89025
[ "Apache-2.0" ]
2
2020-10-30T18:23:44.000Z
2021-09-19T22:07:12.000Z
web/helpers/globals.py
b1uejay27/RPANBot
782ad9bc9f968fd52036ef4d541afd9df8c89025
[ "Apache-2.0" ]
3
2022-03-08T19:50:01.000Z
2022-03-23T23:13:46.000Z
""" Copyright 2020 RPANBot Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distrib...
32.352941
91
0.762727
e219ef988320772d388d89810540c03f61040726
2,246
py
Python
main/tests/test_past_bugs.py
Ecotrust/formhub
05033bb5aa152cc2cbcd7382c2c999d82b2c3276
[ "BSD-2-Clause" ]
123
2015-01-08T09:21:05.000Z
2021-11-14T19:45:23.000Z
main/tests/test_past_bugs.py
Ecotrust/formhub
05033bb5aa152cc2cbcd7382c2c999d82b2c3276
[ "BSD-2-Clause" ]
16
2015-02-13T16:56:42.000Z
2021-02-20T23:58:43.000Z
main/tests/test_past_bugs.py
Ecotrust/formhub
05033bb5aa152cc2cbcd7382c2c999d82b2c3276
[ "BSD-2-Clause" ]
110
2015-01-19T14:34:06.000Z
2021-02-01T14:55:11.000Z
from test_process import TestSite from test_base import MainTestCase from odk_logger.models import XForm, Instance import os class TestCSVExport(TestSite): """ We had a problem when two users published the same form that the CSV export would break. """ def test_process(self): TestSite.tes...
32.550725
79
0.665183
0bc4e55271632b9a502c6f9b94b631d0eacc8082
8
py
Python
kharon/__init__.py
RedRussianBear/kharon
d5ec8ad059d71a69ddc90616eafea38d96de4ed6
[ "BSD-3-Clause" ]
1
2019-04-15T12:22:46.000Z
2019-04-15T12:22:46.000Z
kharon/project_templates/__init__.py
RedRussianBear/kharon
d5ec8ad059d71a69ddc90616eafea38d96de4ed6
[ "BSD-3-Clause" ]
null
null
null
kharon/project_templates/__init__.py
RedRussianBear/kharon
d5ec8ad059d71a69ddc90616eafea38d96de4ed6
[ "BSD-3-Clause" ]
null
null
null
# Init!
4
7
0.5
8cd76474bea97355ed4bfc2d14866804a46659d1
8,296
py
Python
train.py
kushagra414/Tiny-YOLO-v3-for-custom-object
eacd3ad37635beae021ec9c295435772fefe699b
[ "MIT" ]
null
null
null
train.py
kushagra414/Tiny-YOLO-v3-for-custom-object
eacd3ad37635beae021ec9c295435772fefe699b
[ "MIT" ]
null
null
null
train.py
kushagra414/Tiny-YOLO-v3-for-custom-object
eacd3ad37635beae021ec9c295435772fefe699b
[ "MIT" ]
null
null
null
""" Retrain the YOLO model for your own dataset. """ import numpy as np import keras.backend as K from keras.layers import Input, Lambda from keras.models import Model from keras.optimizers import Adam from keras.callbacks import TensorBoard, ModelCheckpoint, ReduceLROnPlateau, EarlyStopping from yolo3.model import p...
44.363636
129
0.676109
9560839b9aadf877d4a23b1ff8d168fc4b73a49c
3,030
py
Python
example_ctrl-c.py
Bosma/unicorn-binance-websocket-api
e8bfe08125ff0afb8f780c3970a6ba6ec6ba6c54
[ "MIT" ]
null
null
null
example_ctrl-c.py
Bosma/unicorn-binance-websocket-api
e8bfe08125ff0afb8f780c3970a6ba6ec6ba6c54
[ "MIT" ]
null
null
null
example_ctrl-c.py
Bosma/unicorn-binance-websocket-api
e8bfe08125ff0afb8f780c3970a6ba6ec6ba6c54
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # File: example_ctrl-c.py # # Part of ‘UNICORN Binance WebSocket API’ # Project website: https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api # Documentation: https://oliver-zehentleitner.github.io/unicorn-binance-websocket-api # PyPI: https://pypi.org/p...
43.285714
120
0.754125
c02e0c74da90e51883da385b0bf3fb352a098007
2,268
py
Python
emotescraper/androidscrape.py
BTDev/berrymotes
f6665b34446e486f4f8a7a56e50dd5cb5bc605c5
[ "WTFPL" ]
null
null
null
emotescraper/androidscrape.py
BTDev/berrymotes
f6665b34446e486f4f8a7a56e50dd5cb5bc605c5
[ "WTFPL" ]
6
2020-01-30T10:55:02.000Z
2021-08-25T05:30:23.000Z
emotescraper/androidscrape.py
BTDev/berrymotes
f6665b34446e486f4f8a7a56e50dd5cb5bc605c5
[ "WTFPL" ]
4
2021-07-04T19:09:11.000Z
2021-07-24T03:57:02.000Z
#!/usr/bin/env python2 # -------------------------------------------------------------------- # # Copyright (C) 2013 Daniel Triendl <daniel@pew.cc> # # This program is free software. It comes without any warranty, to # the extent permitted by applicable law. You can redistribute it # and/or modify it under the terms of...
36
116
0.671517
a432b76e6db9c0cb70181bc352f296aff7e12b6c
6,078
py
Python
radon.py
yuta-hi/chainer-radon-transform
8928687d779c5fbe9691677209c2c9845924761f
[ "MIT" ]
null
null
null
radon.py
yuta-hi/chainer-radon-transform
8928687d779c5fbe9691677209c2c9845924761f
[ "MIT" ]
null
null
null
radon.py
yuta-hi/chainer-radon-transform
8928687d779c5fbe9691677209c2c9845924761f
[ "MIT" ]
1
2020-01-14T04:54:43.000Z
2020-01-14T04:54:43.000Z
import numpy as np import chainer from chainer import link from warnings import warn from abc import ABCMeta, abstractmethod class Projector(link.Chain, metaclass=ABCMeta): """ Abstract class of the projector for 2D-images """ @abstractmethod def forward(self, x): pass def _check_type_forward...
30.238806
106
0.579796
51b8e372919604e6f194eeeaae53bb6a4c00ed97
1,269
py
Python
imutils1.py
ivominic/opencv
c058e2ce864e4e811ab5a43793ec17216aa7c5b7
[ "Apache-2.0" ]
null
null
null
imutils1.py
ivominic/opencv
c058e2ce864e4e811ab5a43793ec17216aa7c5b7
[ "Apache-2.0" ]
null
null
null
imutils1.py
ivominic/opencv
c058e2ce864e4e811ab5a43793ec17216aa7c5b7
[ "Apache-2.0" ]
null
null
null
"""Biblioteka koja će se importovati za rad sa slikama""" import numpy as np import cv2 def translate(image, x_osa, y_osa): """Metoda koja translira sliku po x i y osi. Pozitivne vrijednosti desno i dolje, negativne lijevo i gore""" matrica = np.float32([[1, 0, x_osa], [0, 1, y_osa]]) shifted = cv2.wa...
28.840909
67
0.647754
f4abd1075050417b773e40e0ff102ee297a79c71
1,888
py
Python
nova/auth/rbac.py
bopopescu/cc
5c14efcda95c4987532484c84a885a3b07efc984
[ "Apache-2.0" ]
null
null
null
nova/auth/rbac.py
bopopescu/cc
5c14efcda95c4987532484c84a885a3b07efc984
[ "Apache-2.0" ]
1
2020-08-02T15:40:49.000Z
2020-08-02T15:40:49.000Z
nova/auth/rbac.py
bopopescu/cc
5c14efcda95c4987532484c84a885a3b07efc984
[ "Apache-2.0" ]
1
2020-07-25T17:56:39.000Z
2020-07-25T17:56:39.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2010 Anso Labs, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # ...
33.714286
78
0.644597
052363e40c3dcc84883eaf4519e7e2a4a2642459
3,378
py
Python
simbad/rotsearch/tests/test_rotation_search.py
hlasimpk/SIMPLE
89570f1a29e2871cb1e85cfda36cfa22fbad0877
[ "BSD-3-Clause" ]
2
2017-02-14T15:31:30.000Z
2019-07-20T12:30:59.000Z
simbad/rotsearch/tests/test_rotation_search.py
hlasimpk/SIMPLE
89570f1a29e2871cb1e85cfda36cfa22fbad0877
[ "BSD-3-Clause" ]
65
2017-02-14T14:19:28.000Z
2021-09-21T09:50:02.000Z
simbad/rotsearch/tests/test_rotation_search.py
hlasimpk/SIMPLE
89570f1a29e2871cb1e85cfda36cfa22fbad0877
[ "BSD-3-Clause" ]
7
2017-05-09T15:27:08.000Z
2021-06-13T13:32:40.000Z
"""Test functions for rotsearch.AmoreRotationSearch and rotsearch.PhaserRotationSearch""" __author__ = "Adam Simpkin" __date__ = "16 Aug 2017" import os import unittest import simbad.rotsearch.amore_search import simbad.rotsearch.phaser_search try: ROOT_DIR = os.environ['SIMBAD_ROOT'] EXAMPLE_DIR = os.path.j...
30.160714
114
0.671107
9878a3adefb93ab3921d57a3b9160abf00d8d1d0
31,182
py
Python
nova/tests/api/openstack/test_common.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/test_common.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/test_common.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 OpenStack Foundation # 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 requ...
40.814136
78
0.6159
8d810fb5f6442f8e84980f2d14449c5431ddfc52
1,194
py
Python
tests/tests/correctness/Components/BucketSystem/m_cor_001/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
3
2019-09-02T18:21:22.000Z
2020-04-17T16:34:57.000Z
tests/tests/correctness/Components/BucketSystem/m_cor_001/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
null
null
null
tests/tests/correctness/Components/BucketSystem/m_cor_001/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
null
null
null
# $Copyright (c) 2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel an...
56.857143
343
0.747906
250a60dd6c89e324ec2b897bd07aadd57829f335
367
py
Python
src/pandas_profiling_study/report/presentation/core/frequency_table.py
lucasiscoviciMoon/pandas-profiling-study
142d3b0f5e3139cdb531819f637a407682fa5684
[ "MIT" ]
null
null
null
src/pandas_profiling_study/report/presentation/core/frequency_table.py
lucasiscoviciMoon/pandas-profiling-study
142d3b0f5e3139cdb531819f637a407682fa5684
[ "MIT" ]
null
null
null
src/pandas_profiling_study/report/presentation/core/frequency_table.py
lucasiscoviciMoon/pandas-profiling-study
142d3b0f5e3139cdb531819f637a407682fa5684
[ "MIT" ]
1
2020-04-25T15:20:39.000Z
2020-04-25T15:20:39.000Z
from typing import Any from ....report.presentation.abstract.item_renderer import ItemRenderer class FrequencyTable(ItemRenderer): def __init__(self, rows, **kwargs): super().__init__("frequency_table", {"rows": rows}, **kwargs) def __repr__(self): return "FrequencyTable" def render(sel...
24.466667
71
0.689373
bf7f79916678ccd3c138e6978dbe98f8fadc0cb0
5,137
py
Python
quant_disp.py
UltronAI/SfmLearner-Pytorch
4f8f7f6057150b7a449b05e49eb2e2dca9cc0d56
[ "MIT" ]
null
null
null
quant_disp.py
UltronAI/SfmLearner-Pytorch
4f8f7f6057150b7a449b05e49eb2e2dca9cc0d56
[ "MIT" ]
null
null
null
quant_disp.py
UltronAI/SfmLearner-Pytorch
4f8f7f6057150b7a449b05e49eb2e2dca9cc0d56
[ "MIT" ]
null
null
null
import torch from imageio import imread, imsave from scipy.misc import imresize import numpy as np from path import Path import argparse from tqdm import tqdm from models import QuantDispNetS from utils import tensor2array, getScale, quantize, quantizeWeight parser = argparse.ArgumentParser(description='Quantize Pre...
42.454545
154
0.651937
5395d36eba916372f19d3a81ce0e682c8b649e14
1,623
py
Python
photos/migrations/0001_initial.py
Elrophi/django-gallery
ff8d592c368cdcb5796ea2605b188517bb74eb80
[ "MIT" ]
1
2021-11-06T19:55:53.000Z
2021-11-06T19:55:53.000Z
photos/migrations/0001_initial.py
Elrophi/django-gallery
ff8d592c368cdcb5796ea2605b188517bb74eb80
[ "MIT" ]
null
null
null
photos/migrations/0001_initial.py
Elrophi/django-gallery
ff8d592c368cdcb5796ea2605b188517bb74eb80
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-05-15 19:40 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
37.744186
121
0.582255
692902b3ed4e8034bf418b9d9452261dc37a189f
2,501
py
Python
dateparser/data/date_translation_data/rm.py
Rodp63/dateparser
938a9573234679b603210bd47cc93eb258b1f1df
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/rm.py
Rodp63/dateparser
938a9573234679b603210bd47cc93eb258b1f1df
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/rm.py
Rodp63/dateparser
938a9573234679b603210bd47cc93eb258b1f1df
[ "BSD-3-Clause" ]
null
null
null
info = { "name": "rm", "date_order": "DMY", "january": [ "schan", "schaner" ], "february": [ "favr", "favrer" ], "march": [ "mars" ], "april": [ "avr", "avrigl" ], "may": [ "matg" ], "june": [ "ze...
14.976048
26
0.261096
c413de1236b37bde8fe619b2fa80dd2fe5f528f5
1,363
py
Python
soundtests/soundtest4.py
MageJohn/CHIP8
58fdff9e9860a3ff2b591e58a5e907faa5a90f4c
[ "MIT" ]
1
2016-09-26T06:52:36.000Z
2016-09-26T06:52:36.000Z
soundtests/soundtest4.py
MageJohn/CHIP8
58fdff9e9860a3ff2b591e58a5e907faa5a90f4c
[ "MIT" ]
null
null
null
soundtests/soundtest4.py
MageJohn/CHIP8
58fdff9e9860a3ff2b591e58a5e907faa5a90f4c
[ "MIT" ]
null
null
null
# The first sound test I wrote from scratch which functioned # correctly. I had been fiddling with soundtest2.py a lot, and it was # getting overly complicated. I decided that it would be best start # over, and keep it simple. After this was working, I went back and # applied what I learned to soundtest2.py, and got ...
32.452381
71
0.702861
5a3c10926d6e107d60f0940a9e8f76a582e731c9
3,541
py
Python
python3/env/lib/python3.8/site-packages/pip/_vendor/requests/help.py
hedibejaoui/spark-timeseries
9112dcbbba4e095b5eb46c568e1c72e13e1f251a
[ "Apache-2.0" ]
null
null
null
python3/env/lib/python3.8/site-packages/pip/_vendor/requests/help.py
hedibejaoui/spark-timeseries
9112dcbbba4e095b5eb46c568e1c72e13e1f251a
[ "Apache-2.0" ]
null
null
null
python3/env/lib/python3.8/site-packages/pip/_vendor/requests/help.py
hedibejaoui/spark-timeseries
9112dcbbba4e095b5eb46c568e1c72e13e1f251a
[ "Apache-2.0" ]
1
2021-09-05T15:05:53.000Z
2021-09-05T15:05:53.000Z
"""Module containing bug report helper(s).""" import json import platform import sys import ssl from pip._vendor import idna from pip._vendor import urllib3 from pip._vendor import chardet from . import __version__ as requests_version try: from pip._vendor.urllib3.contrib import pyopenssl except ImportError: ...
29.508333
78
0.629201
13b7ff5a376a0218faf1bcbc85c084fcffbf0578
3,964
py
Python
hdc/core/asset_mapper.py
hashmapinc/hdc
34bbd4bd889629d80614410332a0bb6e1ee5b329
[ "Apache-2.0" ]
null
null
null
hdc/core/asset_mapper.py
hashmapinc/hdc
34bbd4bd889629d80614410332a0bb6e1ee5b329
[ "Apache-2.0" ]
null
null
null
hdc/core/asset_mapper.py
hashmapinc/hdc
34bbd4bd889629d80614410332a0bb6e1ee5b329
[ "Apache-2.0" ]
null
null
null
# Copyright © 2020 Hashmap, 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 agre...
47.759036
121
0.557013
c2b91b19613e8e58a4a98756bb275c0418965d35
657
py
Python
Easy/shortest_distance_to_character.py
BrynjarGeir/LeetCode
dbd57e645c5398dec538b6466215b61491c8d1d9
[ "MIT" ]
null
null
null
Easy/shortest_distance_to_character.py
BrynjarGeir/LeetCode
dbd57e645c5398dec538b6466215b61491c8d1d9
[ "MIT" ]
null
null
null
Easy/shortest_distance_to_character.py
BrynjarGeir/LeetCode
dbd57e645c5398dec538b6466215b61491c8d1d9
[ "MIT" ]
null
null
null
class Solution: def shortestToChar(self, s: str, c: str) -> List[int]: indexes = [i for i,x in enumerate(s) if x == c] ans = [10**4]*len(s); curr = 0 for i in range(len(s)): if s[i] == c: ans[i] = 0 curr += 1 else: if cu...
36.5
73
0.380518
06fc1cb7b8e16363965e73a4446321b8b1e1838a
4,706
py
Python
datasets/data_prefetcher.py
Tarandro/MOTR_4
bd8e53d7ea0584f06ccf032b056b327c87986ca7
[ "MIT" ]
191
2021-03-30T12:44:27.000Z
2022-03-31T02:06:22.000Z
datasets/data_prefetcher.py
Tarandro/MOTR_4
bd8e53d7ea0584f06ccf032b056b327c87986ca7
[ "MIT" ]
35
2021-05-11T06:33:26.000Z
2022-03-27T04:21:17.000Z
datasets/data_prefetcher.py
Tarandro/MOTR_4
bd8e53d7ea0584f06ccf032b056b327c87986ca7
[ "MIT" ]
34
2021-05-10T04:30:55.000Z
2022-03-30T04:58:52.000Z
# ------------------------------------------------------------------------ # Copyright (c) 2021 megvii-model. All Rights Reserved. # ------------------------------------------------------------------------ # Modified from Deformable DETR (https://github.com/fundamentalvision/Deformable-DETR) # Copyright (c) 2020 SenseT...
40.921739
109
0.584573
a841c94d8241ae605fff020b467655d9c982b8e5
16,236
py
Python
domainbed/datasets.py
AllenPu/mbdg
243f53a57dcf4bfb6e717c0c9f64a839cff8d548
[ "MIT" ]
null
null
null
domainbed/datasets.py
AllenPu/mbdg
243f53a57dcf4bfb6e717c0c9f64a839cff8d548
[ "MIT" ]
null
null
null
domainbed/datasets.py
AllenPu/mbdg
243f53a57dcf4bfb6e717c0c9f64a839cff8d548
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import os import torch from PIL import Image, ImageFile from torchvision import transforms import torchvision.datasets.folder from torch.utils.data import TensorDataset, Subset, ConcatDataset from torchvision.datasets import MNIST, ImageFolder from...
34.398305
105
0.608339
e7e622cd6afb351ce2d0e2e0a38270046c40c557
2,852
py
Python
urllib3/__init__.py
little-car-counter/backend-app
c0f2bef4f620d08c7296ebb5e71dbcaf3bec49f0
[ "MIT" ]
1
2016-11-16T16:15:54.000Z
2016-11-16T16:15:54.000Z
urllib3/__init__.py
little-car-counter/backend-app
c0f2bef4f620d08c7296ebb5e71dbcaf3bec49f0
[ "MIT" ]
1
2021-02-08T20:17:40.000Z
2021-02-08T20:17:40.000Z
urllib3/__init__.py
little-car-counter/backend-app
c0f2bef4f620d08c7296ebb5e71dbcaf3bec49f0
[ "MIT" ]
null
null
null
""" urllib3 - Thread-safe connection pooling and re-using. """ from __future__ import absolute_import import warnings from .connectionpool import ( HTTPConnectionPool, HTTPSConnectionPool, connection_from_url ) from . import exceptions from .filepost import encode_multipart_formdata from .poolmanager imp...
29.402062
84
0.741234
bb25e0038e419aac3ee5c02737250a3757960b93
221
py
Python
contrib/wallettools/walletchangepass.py
gondel/mikron
81baad599592863d4e4df5482ed851bd606915b5
[ "MIT" ]
null
null
null
contrib/wallettools/walletchangepass.py
gondel/mikron
81baad599592863d4e4df5482ed851bd606915b5
[ "MIT" ]
null
null
null
contrib/wallettools/walletchangepass.py
gondel/mikron
81baad599592863d4e4df5482ed851bd606915b5
[ "MIT" ]
null
null
null
from jsonrpc import ServiceProxy access = ServiceProxy("http://127.0.0.1:38752") pwd = raw_input("Enter old wallet passphrase: ") pwd2 = raw_input("Enter new wallet passphrase: ") access.walletpassphrasechange(pwd, pwd2)
36.833333
49
0.769231
bc0475d9f1e4d1e14cd1313ab9d250a8edb6950f
4,199
py
Python
pystratis/api/connectionmanager/tests/test_connectionmanager.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
pystratis/api/connectionmanager/tests/test_connectionmanager.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
pystratis/api/connectionmanager/tests/test_connectionmanager.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
import pytest from pytest_mock import MockerFixture from pystratis.api.connectionmanager import ConnectionManager from pystratis.api.connectionmanager.responsemodels import * from pystratis.core.networks import StraxMain, CirrusMain def test_all_strax_endpoints_implemented(strax_swagger_json): paths = [key.lower(...
35.888889
115
0.608716
1404b79b463bd909a4e35a616500a1be2d1499ee
7,952
py
Python
test/test_exceptions.py
roberto-mello/actifio-python-package
57769d84915e4daef2166b49cfb19efdea826562
[ "MIT" ]
null
null
null
test/test_exceptions.py
roberto-mello/actifio-python-package
57769d84915e4daef2166b49cfb19efdea826562
[ "MIT" ]
null
null
null
test/test_exceptions.py
roberto-mello/actifio-python-package
57769d84915e4daef2166b49cfb19efdea826562
[ "MIT" ]
null
null
null
import unittest import os import sys sys.path.insert(0, os.path.abspath('.')) sys.path.insert(0, os.path.abspath('..')) from Actifio import Actifio from Actifio.actexceptions import * appliance = os.environ['APPLIANCE'] user = os.environ['ACTUSER'] password = os.environ['ACTPASS'] agm = os.environ['ACTAGM'] wrong_...
36.645161
155
0.697435
f269c7a43f0409d4fb3d9fb0f9d50266e00df29d
3,938
py
Python
rapid7vmconsole/models/resources_role.py
kiblik/vm-console-client-python
038f6d33e8b2654a558326c6eb87f09ee23e0e22
[ "MIT" ]
61
2018-05-17T05:57:09.000Z
2022-03-08T13:59:21.000Z
rapid7vmconsole/models/resources_role.py
kiblik/vm-console-client-python
038f6d33e8b2654a558326c6eb87f09ee23e0e22
[ "MIT" ]
33
2018-06-26T16:21:14.000Z
2022-03-03T20:55:47.000Z
rapid7vmconsole/models/resources_role.py
kiblik/vm-console-client-python
038f6d33e8b2654a558326c6eb87f09ee23e0e22
[ "MIT" ]
43
2018-02-24T05:45:53.000Z
2022-03-31T22:15:16.000Z
# coding: utf-8 """ Python InsightVM API Client OpenAPI spec version: 3 Contact: support@rapid7.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ResourcesRole(object): """NOTE: This class is auto generated by the s...
27.347222
80
0.562722
b91f9d35578542f9eed1fecc372090a83a08980f
1,950
py
Python
pds_pipelines/config.py
kaitlyndlee/PDS-Pipelines
dbcdd72c5c3e8f96593538752855b10279e94983
[ "Unlicense" ]
null
null
null
pds_pipelines/config.py
kaitlyndlee/PDS-Pipelines
dbcdd72c5c3e8f96593538752855b10279e94983
[ "Unlicense" ]
null
null
null
pds_pipelines/config.py
kaitlyndlee/PDS-Pipelines
dbcdd72c5c3e8f96593538752855b10279e94983
[ "Unlicense" ]
null
null
null
import os from pathlib import Path # Database credentials credentials = {'upc_test': {'user': 'postgres', 'pass': '', 'host': 'localhost', 'port': '5432', 'db': 'upc_test'}, 'di_test': {'user'...
32.5
75
0.557949
42bd0542a9582d0977a7fb2681bca1b6f58ffca7
518
py
Python
examples/factory/subclass.py
Argmaster/PyR3
6786bcb6a101fe4bd4cc50fe43767b8178504b15
[ "MIT" ]
2
2021-12-12T18:51:52.000Z
2022-02-23T09:49:16.000Z
examples/factory/subclass.py
Argmaster/PyR3
6786bcb6a101fe4bd4cc50fe43767b8178504b15
[ "MIT" ]
2
2021-11-08T12:09:02.000Z
2021-12-12T23:01:12.000Z
examples/factory/subclass.py
Argmaster/PyR3
6786bcb6a101fe4bd4cc50fe43767b8178504b15
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from PyR3.bpy import bpy from PyR3.factory.fields.Number import Integer from PyR3.factory.fields.String import String from PyR3.factory.MeshFactory import MeshFactory from PyR3.shortcut.mesh import addCube class MeshFactorySubclass(MeshFactory): size = Integer(value_range=range(1, 5)) ...
28.777778
56
0.722008
8bd2e15b42e92e4191fc58ecfe7caadfbca530d6
6,054
py
Python
xm_transformer.py
jasantosm/powerco_scraper_historical
4aad8a4fdb50ff052391f2ef14b2bbb0662dea71
[ "MIT" ]
null
null
null
xm_transformer.py
jasantosm/powerco_scraper_historical
4aad8a4fdb50ff052391f2ef14b2bbb0662dea71
[ "MIT" ]
null
null
null
xm_transformer.py
jasantosm/powerco_scraper_historical
4aad8a4fdb50ff052391f2ef14b2bbb0662dea71
[ "MIT" ]
null
null
null
import pandas as pd import time from bs4 import BeautifulSoup from mysql_service import insert_day, get_days from sqlalchemy import create_engine def transform(): days_raw = get_days() days_list = [] for n in range(len(days_raw)): titles = days_raw[n]['titles'].split('|') t_raw = d...
37.602484
147
0.575487
0d0ab2e901458e7663ef84b3bb90efd803d0e7d9
389
py
Python
hptest/wsgi.py
aitomato123/hptest
842cf5f8c9f419c1a9395f43563d19213a1d531a
[ "Apache-2.0" ]
null
null
null
hptest/wsgi.py
aitomato123/hptest
842cf5f8c9f419c1a9395f43563d19213a1d531a
[ "Apache-2.0" ]
null
null
null
hptest/wsgi.py
aitomato123/hptest
842cf5f8c9f419c1a9395f43563d19213a1d531a
[ "Apache-2.0" ]
null
null
null
""" WSGI config for hptest project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
22.882353
78
0.784062
ac14f6b868288bea41e7d563ee0a59969ab1b911
474
py
Python
docs/source/examples/FB2.0/post_file_systems_policies.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
docs/source/examples/FB2.0/post_file_systems_policies.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
docs/source/examples/FB2.0/post_file_systems_policies.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# attach policy to a file system # assume we have a policy named "p1", and a file system with id # "100abf42-0000-4000-8023-000det400090" res = client.post_file_systems_policies(policy_names=["p1"], member_ids=["100abf42-0000-4000-8023-000det400090"]) print(res) if type(res) == p...
43.090909
92
0.702532
e6d482ff1eb2f0158e76c6b4d174a5992780f646
737
py
Python
instagram/images/migrations/0003_auto_20181129_1801.py
Yesdoing/yestagram
a8f69b0fa2cb460d578717ac132900c1a1077d57
[ "MIT" ]
5
2019-05-08T07:34:42.000Z
2020-08-16T16:54:53.000Z
instagram/images/migrations/0003_auto_20181129_1801.py
Yesdoing/Instagram
a8f69b0fa2cb460d578717ac132900c1a1077d57
[ "MIT" ]
11
2019-12-29T10:18:20.000Z
2022-02-26T14:28:23.000Z
instagram/images/migrations/0003_auto_20181129_1801.py
Yesdoing/Instagram
a8f69b0fa2cb460d578717ac132900c1a1077d57
[ "MIT" ]
2
2019-01-30T11:45:31.000Z
2020-08-16T16:54:55.000Z
# Generated by Django 2.0.9 on 2018-11-29 09:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('images', '0002_auto_20181128_1431'), ] operations = [ migrations.AlterField( model_name='commen...
29.48
136
0.632293
235353cb89bdca5e9468b004378f912557b559e5
2,267
py
Python
test/tests.py
ithaaswin/TeachersPetBot
e826083b64ea6ab78a223635fcb1d7881ba8b082
[ "MIT" ]
null
null
null
test/tests.py
ithaaswin/TeachersPetBot
e826083b64ea6ab78a223635fcb1d7881ba8b082
[ "MIT" ]
57
2021-10-31T23:15:20.000Z
2021-11-15T18:10:41.000Z
test/tests.py
ithaaswin/TeachersPetBot
e826083b64ea6ab78a223635fcb1d7881ba8b082
[ "MIT" ]
5
2021-11-17T23:21:01.000Z
2021-11-30T03:44:05.000Z
import os import platform import asyncio import discord from dotenv import load_dotenv import test_office_hours import test_event_creation import test_qna import test_calendar import test_profanity import test_attendance import test_help if platform.system() == 'Windows': asyncio.set_event_loop_policy(asyncio.Win...
29.441558
78
0.662991
1f23179f10e007cb39a57c24308054686567cfe0
89
py
Python
contact/apps.py
85599/my-first-contact-app
dda8c12cd9232ee6f962d11e18c397d9c5a2f251
[ "MIT" ]
446
2015-01-04T20:58:26.000Z
2022-03-30T23:08:26.000Z
project/contact/apps.py
giannisdaras/tedxntua2019
0f9ebdb2946cc8da8c44562313be740db8a394ea
[ "MIT" ]
649
2015-01-09T23:42:14.000Z
2022-03-31T17:27:19.000Z
project/contact/apps.py
giannisdaras/tedxntua2019
0f9ebdb2946cc8da8c44562313be740db8a394ea
[ "MIT" ]
319
2015-01-06T20:58:42.000Z
2022-03-30T06:29:04.000Z
from django.apps import AppConfig class ContactConfig(AppConfig): name = 'contact'
14.833333
33
0.752809
1013cb6dc97156a9b477aceaf80936f55992ff4a
13,902
py
Python
plotly/graph_objs/isosurface/caps/__init__.py
piyush1301/plotly.py
50cd5c4cd4732042422751c7760acbab8dd8a50d
[ "MIT" ]
6
2019-05-03T02:12:04.000Z
2020-03-01T06:33:21.000Z
plotly/graph_objs/isosurface/caps/__init__.py
piyush1301/plotly.py
50cd5c4cd4732042422751c7760acbab8dd8a50d
[ "MIT" ]
null
null
null
plotly/graph_objs/isosurface/caps/__init__.py
piyush1301/plotly.py
50cd5c4cd4732042422751c7760acbab8dd8a50d
[ "MIT" ]
5
2019-05-18T16:50:11.000Z
2021-07-06T21:14:36.000Z
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Z(_BaseTraceHierarchyType): # fill # ---- @property def fill(self): """ Sets the fill ratio of the `caps`. The default fill value of the `caps` is 1 meaning that the...
30.824834
82
0.547044
d4331c16ea10a0efef56c5ab8bf65bb982fadd30
5,041
py
Python
realtime_recognition.py
SHANK885/realtime_face_recognition
4cb3555e58990a4b853dc21af01b13d06e899c2c
[ "MIT" ]
2
2020-07-02T19:35:46.000Z
2020-11-21T19:31:23.000Z
realtime_recognition.py
SHANK885/realtime_face_recognition
4cb3555e58990a4b853dc21af01b13d06e899c2c
[ "MIT" ]
null
null
null
realtime_recognition.py
SHANK885/realtime_face_recognition
4cb3555e58990a4b853dc21af01b13d06e899c2c
[ "MIT" ]
null
null
null
from keras.models import Sequential from keras.layers import Conv2D, ZeroPadding2D, Activation, Input, concatenate from keras.models import Model from keras.layers.normalization import BatchNormalization from keras.layers.pooling import MaxPooling2D, AveragePooling2D from keras.layers.merge import Concatenate from kera...
32.733766
114
0.592343
49e7e4ad2b1a5d210f92bd540bc9b0b5ba9ccba3
3,529
py
Python
spyder/__init__.py
StefRe/spyder
210495f5b691cc2986a437c237cce8de4ab06b79
[ "MIT" ]
3
2019-09-27T21:00:00.000Z
2021-03-07T23:28:32.000Z
spyder/__init__.py
StefRe/spyder
210495f5b691cc2986a437c237cce8de4ab06b79
[ "MIT" ]
2
2021-09-19T06:31:54.000Z
2022-02-27T20:21:27.000Z
spyder/__init__.py
StefRe/spyder
210495f5b691cc2986a437c237cce8de4ab06b79
[ "MIT" ]
2
2021-04-30T01:18:22.000Z
2021-09-19T06:31:42.000Z
# -*- coding: utf-8 -*- """ MIT License =========== The spyder/images dir and some source files under other terms (see NOTICE.txt). Copyright (c) 2009- Spyder Project Contributors and others (see AUTHORS.txt) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated...
36.381443
79
0.669878
22f4652c471f33946c0e1615b9e2cf10088f2dc3
3,158
py
Python
tests/unit/nn/test_rescale.py
schiotz/nequip
c343ce25ecfeb64f6df92e96022e673a7714e3a6
[ "MIT" ]
153
2021-06-20T20:12:01.000Z
2022-03-31T13:57:45.000Z
tests/unit/nn/test_rescale.py
schiotz/nequip
c343ce25ecfeb64f6df92e96022e673a7714e3a6
[ "MIT" ]
25
2021-06-17T16:00:16.000Z
2022-03-29T07:04:00.000Z
tests/unit/nn/test_rescale.py
schiotz/nequip
c343ce25ecfeb64f6df92e96022e673a7714e3a6
[ "MIT" ]
25
2021-06-21T22:25:22.000Z
2022-03-30T04:39:46.000Z
import pytest import sys if sys.version_info[1] >= 7: import contextlib else: # has backport of nullcontext import contextlib2 as contextlib import torch from e3nn.util.test import assert_auto_jitable from nequip.nn import RescaleOutput from nequip.data import AtomicDataDict, AtomicData from nequip.uti...
33.956989
86
0.669411
b0adfc852cd1869c411c6b43c54a979fc04ad200
1,138
py
Python
src/unittest/python/grundlegend/test_multiplikation.py
dlangheiter-tgm/test-mirror
9878da44953c40abc1df0311f275c3eebc2e876b
[ "MIT" ]
null
null
null
src/unittest/python/grundlegend/test_multiplikation.py
dlangheiter-tgm/test-mirror
9878da44953c40abc1df0311f275c3eebc2e876b
[ "MIT" ]
null
null
null
src/unittest/python/grundlegend/test_multiplikation.py
dlangheiter-tgm/test-mirror
9878da44953c40abc1df0311f275c3eebc2e876b
[ "MIT" ]
null
null
null
""" Created on 27.12.2013 @author: Walter Rafeiner-Magor <wrafeiner-magor@tgm.ac.at> """ import unittest from bruch.Bruch import * class TestMultiplikation(unittest.TestCase): def setUp(self): self.b = Bruch(3, 2) self.b2 = Bruch(self.b) self.b3 = Bruch(4, 2) pass def tearDo...
21.471698
62
0.566784
d75f6714f230bff77455af5b7848968dc2f3e5c7
61
py
Python
test/test_person.py
Eawag-SWW/datapool_client
a43c38f0f858a687d6354ef4d857beee59882c8a
[ "MIT" ]
null
null
null
test/test_person.py
Eawag-SWW/datapool_client
a43c38f0f858a687d6354ef4d857beee59882c8a
[ "MIT" ]
null
null
null
test/test_person.py
Eawag-SWW/datapool_client
a43c38f0f858a687d6354ef4d857beee59882c8a
[ "MIT" ]
null
null
null
def test_person_all(setup_postgres, dp): dp.person.all()
20.333333
40
0.737705
9311787b856c3a439ee3087f9675b9123c85a13d
1,962
py
Python
hparams.py
kokeshing/tacotron2-1
a04f57c3bf1b0182f5a15770cac03039f1b414f8
[ "BSD-3-Clause" ]
null
null
null
hparams.py
kokeshing/tacotron2-1
a04f57c3bf1b0182f5a15770cac03039f1b414f8
[ "BSD-3-Clause" ]
null
null
null
hparams.py
kokeshing/tacotron2-1
a04f57c3bf1b0182f5a15770cac03039f1b414f8
[ "BSD-3-Clause" ]
null
null
null
from text import symbols ################################ # Experiment Parameters # ################################ epochs = 500 iters_per_checkpoint = 3000 seed = 1234 dynamic_loss_scaling = True fp16_run = False distributed_run = False dist_backend = "nccl" dist_url = "tcp://localhost:54321" cudnn_enabled =...
24.222222
65
0.649337
fc38e207b2dad68c026009563af5d233a145cee8
5,928
py
Python
doc/source/conf.py
bonzoyang/d2m
3c491a019c7436245ab6a3ac872c969c3a51a369
[ "Apache-2.0" ]
null
null
null
doc/source/conf.py
bonzoyang/d2m
3c491a019c7436245ab6a3ac872c969c3a51a369
[ "Apache-2.0" ]
null
null
null
doc/source/conf.py
bonzoyang/d2m
3c491a019c7436245ab6a3ac872c969c3a51a369
[ "Apache-2.0" ]
1
2021-07-27T14:25:16.000Z
2021-07-27T14:25:16.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
29.788945
90
0.643556
3e6e12607a5a885c2c3e96888adeaf00b0140c47
1,046
py
Python
twitter/tweets/migrations/0005_comment.py
vBubbaa/django-twitter
925405dd05cbef3b325b2168663e183b927d8586
[ "MIT" ]
1
2020-02-08T02:16:05.000Z
2020-02-08T02:16:05.000Z
twitter/tweets/migrations/0005_comment.py
vBubbaa/django-twitter
925405dd05cbef3b325b2168663e183b927d8586
[ "MIT" ]
5
2020-02-13T22:36:04.000Z
2021-09-22T18:36:50.000Z
twitter/tweets/migrations/0005_comment.py
vBubbaa/django-twitter
925405dd05cbef3b325b2168663e183b927d8586
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2020-02-07 23:42 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
37.357143
143
0.656788
70206327c272c4b1a0e9a9741d3dbaa61e5d5cdb
638
py
Python
exam/myproject/myapp/admin.py
wasit7/cs459_2018
78243bbc939fcc2ed7528df8c14ad75e4b78d9a2
[ "BSD-2-Clause" ]
2
2019-09-04T08:13:47.000Z
2019-09-19T07:12:18.000Z
exam/myproject/myapp/admin.py
wasit7/cs459_2018
78243bbc939fcc2ed7528df8c14ad75e4b78d9a2
[ "BSD-2-Clause" ]
10
2020-03-24T17:05:24.000Z
2022-03-11T23:47:49.000Z
exam/myproject/myapp/admin.py
wasit7/cs459_2018
78243bbc939fcc2ed7528df8c14ad75e4b78d9a2
[ "BSD-2-Clause" ]
9
2019-08-30T04:00:58.000Z
2019-11-19T04:48:07.000Z
from django.contrib import admin from myapp.models import Customer, Transaction, Item, Record class CustomerAdmin(admin.ModelAdmin): list_display=[f.name for f in Customer._meta.fields] admin.site.register(Customer, CustomerAdmin) class TransactionAdmin(admin.ModelAdmin): list_display=[f.name for f in Transaction....
35.444444
61
0.811912
08bf22d2829a1e840c09cc430406875ef4c058f0
3,490
py
Python
amadeus/amadeus.py
tsolakoua/amadeus-python
56c0e5cb0510aab5a80646d07593d94c9cba2c69
[ "MIT" ]
125
2018-04-09T07:27:24.000Z
2022-02-22T11:45:20.000Z
amadeus/amadeus.py
tsolakoua/amadeus-python
56c0e5cb0510aab5a80646d07593d94c9cba2c69
[ "MIT" ]
58
2018-03-29T14:58:01.000Z
2022-03-17T10:18:07.000Z
amadeus/amadeus.py
tsolakoua/amadeus-python
56c0e5cb0510aab5a80646d07593d94c9cba2c69
[ "MIT" ]
58
2018-04-06T10:56:20.000Z
2022-03-04T01:23:24.000Z
from .mixins.validator import Validator from .mixins.http import HTTP from .mixins.pagination import Pagination from .namespaces import Core as Namespaces class Client(Namespaces, Pagination, Validator, HTTP, object): ''' The Amadeus client library for accessing the travel APIs. ''' # The availab...
34.9
78
0.608596
c9b7e4f7e84ec8d2310dae139387101d6d66123a
295
py
Python
scratch/test_sw.py
ktbarrett/pyuvm
725e6e4b8088aa085a5ce16861b46db49ce46672
[ "Apache-2.0" ]
84
2021-02-21T23:12:59.000Z
2022-03-25T21:22:27.000Z
scratch/test_sw.py
ktbarrett/pyuvm
725e6e4b8088aa085a5ce16861b46db49ce46672
[ "Apache-2.0" ]
37
2021-05-20T05:35:13.000Z
2022-03-13T09:12:16.000Z
scratch/test_sw.py
ktbarrett/pyuvm
725e6e4b8088aa085a5ce16861b46db49ce46672
[ "Apache-2.0" ]
22
2021-03-31T02:57:09.000Z
2022-03-09T17:30:22.000Z
import dut_cocotb import cocotb import time class Stim(): def __init__(self, max, dut, bfm): self.max = max self.bfm = bfm def numb_gen_test(self): for ii in range(self.max): self.bfm.send_num(ii) time.sleep(5) self.bfm.done.set()
17.352941
38
0.579661
c8e9abf7e763a4767c82c0baf2a1eca3ed24e6e2
1,171
py
Python
ursh/blueprints/api/handlers.py
indico/ursh
74a570299f70986beb7de9b9749270583f16ba52
[ "MIT" ]
5
2019-08-08T12:28:47.000Z
2021-02-01T05:02:11.000Z
ursh/blueprints/api/handlers.py
ThiefMaster/ursh
74a570299f70986beb7de9b9749270583f16ba52
[ "MIT" ]
4
2018-07-27T13:37:41.000Z
2019-05-13T14:42:26.000Z
ursh/blueprints/api/handlers.py
indico/ursh
74a570299f70986beb7de9b9749270583f16ba52
[ "MIT" ]
2
2019-08-05T16:26:42.000Z
2021-01-27T19:53:41.000Z
from flask import current_app, jsonify def handle_bad_requests(error): return jsonify({'status': error.code, 'error': error.description}), error.code def handle_db_errors(error): return create_error_json(400, 'invalid-input', 'Your input is invalid') def handle_not_found(error): return create_error_js...
30.025641
116
0.716482
065f54d57b5c6418b2965567f20d13efeead100d
5,537
py
Python
scrapers/modules/dingding.py
skytalemcc/OffshoreNewsHub
56a12fba8bf740084f988f88134238ab297bb23d
[ "MIT" ]
null
null
null
scrapers/modules/dingding.py
skytalemcc/OffshoreNewsHub
56a12fba8bf740084f988f88134238ab297bb23d
[ "MIT" ]
null
null
null
scrapers/modules/dingding.py
skytalemcc/OffshoreNewsHub
56a12fba8bf740084f988f88134238ab297bb23d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import json import time import hmac import hashlib import base64 if sys.version_info > (3, 0): from urllib.request import urlopen, Request from urllib.parse import quote_plus else: from urllib2 import urlopen, Request from urllib import quote_plus SHOW_AVATAR = "0" ...
30.761111
100
0.543796
7c021e37ae8d27952fdf5d16d8854ca86d865d00
1,751
py
Python
startup/SST/HW/gatevalves.py
NSLS-II-SST/profile_collection
e2c9d1fce421e7ed8a60fb744c34a770f7780803
[ "BSD-3-Clause" ]
null
null
null
startup/SST/HW/gatevalves.py
NSLS-II-SST/profile_collection
e2c9d1fce421e7ed8a60fb744c34a770f7780803
[ "BSD-3-Clause" ]
12
2019-05-30T15:08:15.000Z
2021-04-29T03:24:10.000Z
startup/SST/HW/gatevalves.py
NSLS-II-SST/profile_collection
e2c9d1fce421e7ed8a60fb744c34a770f7780803
[ "BSD-3-Clause" ]
2
2019-05-23T17:13:04.000Z
2019-10-20T14:52:05.000Z
from ..CommonFunctions.functions import run_report from ..Base.valves_and_shutters import EPS_Shutter run_report(__file__) gv14 = EPS_Shutter( "XF:07IDA-VA:2{FS:6-GV:1}", name="Pre Mono Gate Valve", kind="hinted" ) gv14.shutter_type = "GV" gv14.openval = 0 gv14.closeval = 1 gv14a = EPS_Shutter("XF:07IDA-VA:2{FS...
23.662162
86
0.691605
50e1afe0bee7f904b103478709a98baca075ad32
7,069
py
Python
fairnr/modules/implicit.py
wi1k1n/nrf-accelerations
3075d63177e8ac04ee91784d5b0c56379335740f
[ "MIT" ]
null
null
null
fairnr/modules/implicit.py
wi1k1n/nrf-accelerations
3075d63177e8ac04ee91784d5b0c56379335740f
[ "MIT" ]
null
null
null
fairnr/modules/implicit.py
wi1k1n/nrf-accelerations
3075d63177e8ac04ee91784d5b0c56379335740f
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch import torch.nn as nn import torch.nn.functional as F from fairseq.utils import get_activation_fn from fairnr.modules.hyper impo...
35.883249
111
0.597397
4e0a7289f1fe396dc33488ba08b4b3818d61b922
1,408
py
Python
app/tests.py
uvElena/evolab-hello
7e78a7f3b5db811d5ac123762b48afadf7d3ccf0
[ "MIT" ]
null
null
null
app/tests.py
uvElena/evolab-hello
7e78a7f3b5db811d5ac123762b48afadf7d3ccf0
[ "MIT" ]
null
null
null
app/tests.py
uvElena/evolab-hello
7e78a7f3b5db811d5ac123762b48afadf7d3ccf0
[ "MIT" ]
null
null
null
from flask_testing import TestCase from app import create_app, Configuration from models import db, User from flask import url_for class TestConfiguration(Configuration): SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/names.db' TESTING = True DEBUG = True class TestBase(TestCase): def create_app(self): ...
25.6
74
0.605114
0737d4092eb17450864789128069120ecd7108ef
981
py
Python
toughio/relative_permeability/_fatt_klikoff.py
keurfonluu/toughio
1db0600ee5ad1abb5ca858c81c8ac5226c9dbb4f
[ "BSD-3-Clause-LBNL" ]
21
2020-03-05T20:03:58.000Z
2022-03-14T23:17:42.000Z
toughio/relative_permeability/_fatt_klikoff.py
keurfonluu/toughio
1db0600ee5ad1abb5ca858c81c8ac5226c9dbb4f
[ "BSD-3-Clause-LBNL" ]
60
2020-02-14T22:53:01.000Z
2022-03-26T07:24:19.000Z
toughio/relative_permeability/_fatt_klikoff.py
keurfonluu/toughio
1db0600ee5ad1abb5ca858c81c8ac5226c9dbb4f
[ "BSD-3-Clause-LBNL" ]
6
2020-02-28T08:15:36.000Z
2022-03-13T23:26:24.000Z
from ._base import BaseRelativePermeability __all__ = [ "FattKlikoff", ] class FattKlikoff(BaseRelativePermeability): _id = 7 _name = "Fatt-Klikoff" def __init__(self, slr): """ Fatt and Klikoff's function. After Fatt and Klikoff (1959). Parameters --------...
20.87234
60
0.517839
fb7f0a956bb7501920be59607aa153acd6368496
15,291
py
Python
trove/tests/unittests/guestagent/test_mongodb_manager.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
1
2019-09-20T08:31:54.000Z
2019-09-20T08:31:54.000Z
trove/tests/unittests/guestagent/test_mongodb_manager.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
trove/tests/unittests/guestagent/test_mongodb_manager.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2012 OpenStack Foundation # # 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 l...
41.104839
79
0.613171
6559c02f0935515675acead288c966c86aaf3a67
2,613
py
Python
language/bert_extraction/steal_bert_classifier/embedding_perturbations/merge_shards.py
wanchenbest/language
623e016a76eaeb054d09a4173db1026685bc5b08
[ "Apache-2.0" ]
1
2020-02-12T17:27:05.000Z
2020-02-12T17:27:05.000Z
language/bert_extraction/steal_bert_classifier/embedding_perturbations/merge_shards.py
wanchenbest/language
623e016a76eaeb054d09a4173db1026685bc5b08
[ "Apache-2.0" ]
null
null
null
language/bert_extraction/steal_bert_classifier/embedding_perturbations/merge_shards.py
wanchenbest/language
623e016a76eaeb054d09a4173db1026685bc5b08
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
34.84
92
0.684654
1daeb2e3b47b4743c3b95537f96f065be8b0d51b
6,976
py
Python
cherrypy/test/test_logging.py
alan412/cherrypy
52d16c40032158ab5965251bf750659b3c0f4de3
[ "BSD-3-Clause" ]
null
null
null
cherrypy/test/test_logging.py
alan412/cherrypy
52d16c40032158ab5965251bf750659b3c0f4de3
[ "BSD-3-Clause" ]
null
null
null
cherrypy/test/test_logging.py
alan412/cherrypy
52d16c40032158ab5965251bf750659b3c0f4de3
[ "BSD-3-Clause" ]
null
null
null
"""Basic tests for the CherryPy core: request handling.""" import logging import os from unittest import mock import pytest import requests # FIXME: Temporary using it directly, better switch import cherrypy from cherrypy._cpcompat import ntou from cherrypy.test import helper, logtest localDir = os.path.dirname(__...
32.751174
79
0.557769
3f0a867f17dc7d5048a7c558490745488924312a
601
py
Python
load_image.py
KirillYabl/Space-instagram
3b7d6ada3e7d0d3e500578ea450d4aa0ad8cffc2
[ "MIT" ]
null
null
null
load_image.py
KirillYabl/Space-instagram
3b7d6ada3e7d0d3e500578ea450d4aa0ad8cffc2
[ "MIT" ]
null
null
null
load_image.py
KirillYabl/Space-instagram
3b7d6ada3e7d0d3e500578ea450d4aa0ad8cffc2
[ "MIT" ]
null
null
null
import requests def load_image(url, path): """Load image by url to file. Params -------------------------------------------- :param url: str Url with image. :param path: str Path, where image will be saved. -------------------------------------------- """ response = reques...
24.04
62
0.532446
31fdd51148a54f67691ea88534be9eac34f552ff
7,374
py
Python
finnhub/models/forex_candles.py
gavinjay/finnhub-python
b5c409dafeda390d14a2b0618ae6f25ab8d76c5b
[ "Apache-2.0" ]
null
null
null
finnhub/models/forex_candles.py
gavinjay/finnhub-python
b5c409dafeda390d14a2b0618ae6f25ab8d76c5b
[ "Apache-2.0" ]
null
null
null
finnhub/models/forex_candles.py
gavinjay/finnhub-python
b5c409dafeda390d14a2b0618ae6f25ab8d76c5b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Finnhub API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six fro...
25.340206
124
0.532818
7e027d6e73033544a27a309e29f96dea20bd14cf
1,386
py
Python
tests/test_hrm.py
MirkoLedda/polyoligo
c9fc952fbc7315f426a137313fb36cd16a5e5957
[ "BSD-2-Clause" ]
3
2019-07-26T20:09:50.000Z
2022-01-11T00:56:45.000Z
tests/test_hrm.py
MirkoLedda/polyoligo
c9fc952fbc7315f426a137313fb36cd16a5e5957
[ "BSD-2-Clause" ]
1
2021-04-21T13:27:45.000Z
2021-04-21T13:27:45.000Z
tests/test_hrm.py
MirkoLedda/polyoligo
c9fc952fbc7315f426a137313fb36cd16a5e5957
[ "BSD-2-Clause" ]
2
2020-02-10T22:34:15.000Z
2022-03-01T21:29:01.000Z
import sys import os import yaml sys.path.insert(0, os.path.abspath(".")) from src.polyoligo import cli_hrm with open("tests/KWARGS.yaml", "r") as f: KWARGS = yaml.safe_load(f) cli_hrm.main(strcmd=" ".join([ "polyoligo-hrm", KWARGS["marker"], KWARGS["out"], KWARGS["reference"], "--webapp", ...
22.354839
67
0.580808
cddd6da012d261dcc9c3eed5fcba9bd8ece70578
8,406
py
Python
test/test_document.py
vanatteveldt/corenlp-xml-lib
b658ccc5d54901f4d4bcf6a540d7ef69fb853e78
[ "Apache-2.0" ]
7
2015-08-20T20:43:43.000Z
2018-12-17T01:32:03.000Z
test/test_document.py
vanatteveldt/corenlp-xml-lib
b658ccc5d54901f4d4bcf6a540d7ef69fb853e78
[ "Apache-2.0" ]
3
2016-05-15T11:30:41.000Z
2017-06-07T23:24:45.000Z
test/test_document.py
vanatteveldt/corenlp-xml-lib
b658ccc5d54901f4d4bcf6a540d7ef69fb853e78
[ "Apache-2.0" ]
4
2015-09-05T04:57:07.000Z
2018-08-07T13:55:29.000Z
import os import sys sys.path.insert(0, os.path.join("..")) import unittest from corenlp_xml.document import Document, Sentence, Token, TokenList from corenlp_xml.dependencies import DependencyNode from collections import OrderedDict from nltk import Tree class TestDocument(unittest.TestCase): def setUp(self): ...
50.945455
119
0.711516
3a4a9f497426f43921aed2082d095fc4cb18f59e
4,930
py
Python
src/models/utils.py
matejklemen/pcl-detection-semeval2022t4
f293dc5a5d248e3ac7e0a52ff4f928f53294749f
[ "MIT" ]
null
null
null
src/models/utils.py
matejklemen/pcl-detection-semeval2022t4
f293dc5a5d248e3ac7e0a52ff4f928f53294749f
[ "MIT" ]
null
null
null
src/models/utils.py
matejklemen/pcl-detection-semeval2022t4
f293dc5a5d248e3ac7e0a52ff4f928f53294749f
[ "MIT" ]
null
null
null
import numpy as np from sklearn.metrics import precision_score, recall_score, f1_score from transformers import BertTokenizerFast, DistilBertTokenizerFast, RobertaTokenizerFast, XLMRobertaTokenizerFast, XLNetTokenizerFast KEYWORDS = ["migrant", "women", "vulnerable", "refugee", "homeless", "immigrant", "in...
53.010753
145
0.591684
41d33f0d867059e27d7d311027fd1a0f0bf5501a
5,465
py
Python
testing/cffi0/test_zintegration.py
balabit-deps/balabit-os-6-python-cffi
607e8550b1e90f0e5a6ec757257cdc6cb8f61fc8
[ "MIT" ]
163
2016-03-18T21:32:05.000Z
2021-11-08T08:46:22.000Z
testing/cffi0/test_zintegration.py
balabit-deps/balabit-os-6-python-cffi
607e8550b1e90f0e5a6ec757257cdc6cb8f61fc8
[ "MIT" ]
7
2016-04-03T18:11:23.000Z
2018-04-16T18:06:43.000Z
testing/cffi0/test_zintegration.py
balabit-deps/balabit-os-6-python-cffi
607e8550b1e90f0e5a6ec757257cdc6cb8f61fc8
[ "MIT" ]
22
2016-03-19T12:21:41.000Z
2019-12-05T13:02:42.000Z
import py, os, sys, shutil import subprocess from testing.udir import udir if sys.platform == 'win32': py.test.skip('snippets do not run on win32') if sys.version_info < (2, 7): py.test.skip('fails e.g. on a Debian/Ubuntu which patches virtualenv' ' in a non-2.6-friendly way') def create_venv...
36.677852
78
0.621958
ae3a0a1af8dc23f7ceef4f1add7744e2f500c200
10,488
py
Python
sigpy/mri/rf/ptx.py
sickkids-mri/sigpy
350ab6a9f916050f73fca9af711722f87e3fda43
[ "BSD-3-Clause" ]
null
null
null
sigpy/mri/rf/ptx.py
sickkids-mri/sigpy
350ab6a9f916050f73fca9af711722f87e3fda43
[ "BSD-3-Clause" ]
null
null
null
sigpy/mri/rf/ptx.py
sickkids-mri/sigpy
350ab6a9f916050f73fca9af711722f87e3fda43
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """MRI RF excitation pulse design functions, including SLR and small tip spatial design """ import sigpy as sp import numpy as np from sigpy.mri import rf as rf from sigpy import backend from scipy.interpolate import interp1d __all__ = ['stspa', 'stspk'] def stspa(target, sens, coord, d...
40.809339
79
0.536041
d36d11181e1f3d02b8e600bf376c6d29357f94b7
139
py
Python
qdbvcella/__init__.py
hhelmbre/qdbvcella
59c80050e75be089d9228c74086b14e1e0bbcd59
[ "MIT" ]
null
null
null
qdbvcella/__init__.py
hhelmbre/qdbvcella
59c80050e75be089d9228c74086b14e1e0bbcd59
[ "MIT" ]
null
null
null
qdbvcella/__init__.py
hhelmbre/qdbvcella
59c80050e75be089d9228c74086b14e1e0bbcd59
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function from .version import __version__ # noqa from .qdbvcella import * # noqa
34.75
64
0.805755
4ec9c420bd12a4d415529b0bd297387b160bed31
1,336
py
Python
examples/time_machine_backtesting.py
thatguystone/requests-cache
1c7cd3d7af6bf86bd2c1946168e7de8a95b7f8e8
[ "BSD-2-Clause" ]
null
null
null
examples/time_machine_backtesting.py
thatguystone/requests-cache
1c7cd3d7af6bf86bd2c1946168e7de8a95b7f8e8
[ "BSD-2-Clause" ]
null
null
null
examples/time_machine_backtesting.py
thatguystone/requests-cache
1c7cd3d7af6bf86bd2c1946168e7de8a95b7f8e8
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 """ An example of using the [time-machine](https://github.com/adamchainz/time-machine) library for backtesting, e.g., testing with cached responses that were available at an arbitrary time in the past. """ from datetime import datetime import requests import time_machine from requests_cache imp...
33.4
107
0.705838
c064f6b81820bfac9d5e91e47fa0b20a0538adf9
248
py
Python
workshop/patternprogram.py
rames4498/Bootcamps_and_workshops
f24e23c81219c35b2ac1e9908b1e3b9755b5ca29
[ "Xnet", "X11" ]
7
2020-03-06T04:41:57.000Z
2022-02-27T10:13:27.000Z
workshop/patternprogram.py
rames4498/Bootcamps_and_workshops
f24e23c81219c35b2ac1e9908b1e3b9755b5ca29
[ "Xnet", "X11" ]
null
null
null
workshop/patternprogram.py
rames4498/Bootcamps_and_workshops
f24e23c81219c35b2ac1e9908b1e3b9755b5ca29
[ "Xnet", "X11" ]
6
2020-03-08T11:40:54.000Z
2020-12-22T11:21:16.000Z
def pattern(n): k = 2 * n - 2 for i in range(0,n): for j in range(0,k): print(end=" ") k = k - 1 for j in range(0, i+1): print("*", end=" ") print(" ") pattern(5)
19.076923
32
0.350806
051797eb5f30df9953d7eca9cda3668ee5264c72
892
py
Python
accounts/accounts/urls.py
HaeckelK/bookkeeping
6f8b62f1322fe1c409f397222653382d302d9754
[ "MIT" ]
null
null
null
accounts/accounts/urls.py
HaeckelK/bookkeeping
6f8b62f1322fe1c409f397222653382d302d9754
[ "MIT" ]
7
2021-06-30T12:05:47.000Z
2021-07-14T07:50:27.000Z
accounts/accounts/urls.py
HaeckelK/bookkeeping
6f8b62f1322fe1c409f397222653382d302d9754
[ "MIT" ]
null
null
null
"""accounts URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
34.307692
77
0.71861
133f6cc55578970bc52766b4cfdcf4ef2059b7f6
23,279
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/aio/operations/_local_network_gateways_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/aio/operations/_local_network_gateways_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/aio/operations/_local_network_gateways_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
50.278618
209
0.678981
03d22098fc140857499e0e4bb3ff5fa6c90092ee
11,586
py
Python
gpxtools.py
rokdd/gpx-tools
5e64fb7f2c65fc37e068172fc001fa538052f2c0
[ "Apache-2.0", "MIT" ]
null
null
null
gpxtools.py
rokdd/gpx-tools
5e64fb7f2c65fc37e068172fc001fa538052f2c0
[ "Apache-2.0", "MIT" ]
null
null
null
gpxtools.py
rokdd/gpx-tools
5e64fb7f2c65fc37e068172fc001fa538052f2c0
[ "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2014 Martijn Grendelman <m@rtijn.net> # # 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 applica...
33.778426
122
0.556189