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
933e1d3bf96fcd6d9b9ec55a821268f440bca98b
4,232
py
Python
model.py
andriikushch/CarND-Behavioral-Cloning-P3
89bd19c3a52f1f34126c7aeb97e94437bde25e0c
[ "MIT" ]
1
2019-09-19T04:10:30.000Z
2019-09-19T04:10:30.000Z
model.py
andriikushch/CarND-Behavioral-Cloning-P3
89bd19c3a52f1f34126c7aeb97e94437bde25e0c
[ "MIT" ]
null
null
null
model.py
andriikushch/CarND-Behavioral-Cloning-P3
89bd19c3a52f1f34126c7aeb97e94437bde25e0c
[ "MIT" ]
null
null
null
import csv from math import ceil import cv2 import numpy as np from sklearn.model_selection import train_test_split import sklearn from keras.models import Sequential from keras.layers import Flatten, Dense, Lambda, BatchNormalization, Dropout, Cropping2D from keras.layers.convolutional import Convolution2D from keras...
36.17094
110
0.688563
0
0
1,484
0.350662
0
0
0
0
727
0.171786
933e73421f8903c5d4b0d41ce7311e8338acfeb3
8,854
py
Python
src/natcap/invest/__init__.py
dcdenu4/invest
3d115d4d903674236f1e9e9962d737029ebd0701
[ "BSD-3-Clause" ]
null
null
null
src/natcap/invest/__init__.py
dcdenu4/invest
3d115d4d903674236f1e9e9962d737029ebd0701
[ "BSD-3-Clause" ]
28
2020-04-09T23:39:38.000Z
2020-04-17T00:30:47.000Z
src/natcap/invest/__init__.py
dcdenu4/invest
3d115d4d903674236f1e9e9962d737029ebd0701
[ "BSD-3-Clause" ]
null
null
null
"""init module for natcap.invest.""" import dataclasses import logging import os import sys import pkg_resources LOGGER = logging.getLogger('natcap.invest') LOGGER.addHandler(logging.NullHandler()) __all__ = ['local_dir', ] try: __version__ = pkg_resources.get_distribution(__name__).version except pkg_resources...
39.351111
79
0.660605
406
0.045855
0
0
429
0.048453
0
0
4,755
0.537045
933f0720d869cc058a8608282bd4befb49d6a16b
18,507
py
Python
amnesia/modules/account/resources.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
4
2015-05-08T10:57:56.000Z
2021-05-17T04:32:11.000Z
amnesia/modules/account/resources.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
6
2019-12-26T16:43:41.000Z
2022-02-28T11:07:54.000Z
amnesia/modules/account/resources.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
1
2019-09-23T14:08:11.000Z
2019-09-23T14:08:11.000Z
# -*- coding: utf-8 -*- # pylint: disable=E1101 import logging import os import operator from binascii import hexlify from pyramid.security import DENY_ALL from pyramid.security import Everyone from pyramid.security import Allow from pyramid.settings import asbool from pyramid_mailer.message import Message from s...
26.476395
92
0.580699
17,001
0.918625
579
0.031285
609
0.032906
0
0
2,090
0.11293
933f58e32e7a5ca6a9f6e5d52f172b36fc7b7210
5,013
py
Python
unused/more_num.py
monadius/FPTaylor
55214506eaf1a5fbbecf098221b81c4cc375ac6f
[ "MIT" ]
21
2015-11-24T20:52:23.000Z
2022-02-18T15:04:48.000Z
unused/more_num.py
monadius/FPTaylor
55214506eaf1a5fbbecf098221b81c4cc375ac6f
[ "MIT" ]
24
2016-10-31T16:46:00.000Z
2021-04-07T04:35:37.000Z
unused/more_num.py
monadius/FPTaylor
55214506eaf1a5fbbecf098221b81c4cc375ac6f
[ "MIT" ]
7
2018-01-11T17:52:41.000Z
2021-08-24T01:52:59.000Z
import math import sys from fractions import Fraction from random import uniform, randint import decimal as dec def log10_floor(f): b, k = 1, -1 while b <= f: b *= 10 k += 1 return k def log10_ceil(f): b, k = 1, 0 while b < f: b *= 10 k += 1 return k def log10_...
24.940299
82
0.448235
0
0
0
0
0
0
0
0
528
0.105326
934494c2a4fc3ddbe6eb8bc04fe6967de3193ecb
876
py
Python
setup.py
Vanderbeck/example_pkg
542ae9f8b7283b2984cf569ee040fdcfc8c9d732
[ "MIT" ]
null
null
null
setup.py
Vanderbeck/example_pkg
542ae9f8b7283b2984cf569ee040fdcfc8c9d732
[ "MIT" ]
null
null
null
setup.py
Vanderbeck/example_pkg
542ae9f8b7283b2984cf569ee040fdcfc8c9d732
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="example-pkg-vanderbeck", # Replace with your own username version="0.0.1", author="Lindsay Vanderbeck", author_email="lindsay.vanderbeck@live.ca", description="A small ex...
30.206897
70
0.646119
0
0
0
0
0
0
0
0
434
0.495434
9346f4ae3f51e0598235db78c109cd4747e2c15f
1,820
py
Python
wiki-parse/node.py
mvwicky/wiki-parse
1c19e1c771b9dc96cf77fdaa4009dbd97619cc72
[ "MIT" ]
null
null
null
wiki-parse/node.py
mvwicky/wiki-parse
1c19e1c771b9dc96cf77fdaa4009dbd97619cc72
[ "MIT" ]
null
null
null
wiki-parse/node.py
mvwicky/wiki-parse
1c19e1c771b9dc96cf77fdaa4009dbd97619cc72
[ "MIT" ]
null
null
null
import os import random import sys import time from typing import ClassVar, List from urllib.parse import urlsplit import attr from bs4 import BeautifulSoup import requests # Epsilon value EPS = sys.float_info.epsilon def req(url, verbose=False): """Make a request, sleeping for a random period of time afterwar...
26.376812
76
0.626374
1,282
0.704396
0
0
1,302
0.715385
0
0
334
0.183516
934773febc7f5decd256c9aba66a91ef1956f628
761
py
Python
setup.py
shubhamjain/quick-grayscale
470f726ec93224ffff57a3d7ba58fcf849fb4617
[ "MIT" ]
14
2018-11-26T01:32:21.000Z
2021-11-09T11:04:34.000Z
setup.py
shubhamjain/quick-grayscale
470f726ec93224ffff57a3d7ba58fcf849fb4617
[ "MIT" ]
1
2019-03-28T21:38:56.000Z
2019-03-30T21:34:05.000Z
setup.py
shubhamjain/quick-grayscale
470f726ec93224ffff57a3d7ba58fcf849fb4617
[ "MIT" ]
1
2018-12-05T01:10:55.000Z
2018-12-05T01:10:55.000Z
""" This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup APP = ["quick-gray.py"] APP_NAME = "QuickGrayscale" DATA_FILES = ["status-bar-logo.png", "status-bar-logo--dark.png"] OPTIONS = { "iconfile":"./assets/gq.icns", "plist": { "CFBundl...
23.060606
65
0.634691
0
0
0
0
0
0
0
0
455
0.597898
9347f07741dc686da69f70ff599f8901c2b855b9
1,074
py
Python
src/unsupervised_class3/test_stochastic_tensor.py
JouniVatanen/NLP-and-Deep-Learning
2fddcc2c39787713d33d17e80565de4ed073ca60
[ "MIT" ]
1
2020-05-24T06:55:31.000Z
2020-05-24T06:55:31.000Z
Machine Learning/unsupervised_class3/test_stochastic_tensor.py
Ashleshk/Machine-Learning-Data-Science-Deep-Learning
03357ab98155bf73b8f1d2fd53255cc16bea2333
[ "MIT" ]
null
null
null
Machine Learning/unsupervised_class3/test_stochastic_tensor.py
Ashleshk/Machine-Learning-Data-Science-Deep-Learning
03357ab98155bf73b8f1d2fd53255cc16bea2333
[ "MIT" ]
1
2020-03-16T13:11:14.000Z
2020-03-16T13:11:14.000Z
# https://deeplearningcourses.com/c/deep-learning-gans-and-variational-autoencoders # https://www.udemy.com/deep-learning-gans-and-variational-autoencoders # a simple script to see what StochasticTensor outputs from __future__ import print_function, division from builtins import range # Note: you may need to update yo...
24.409091
83
0.746741
0
0
0
0
0
0
0
0
425
0.395717
934a29b592905e47673af9f0dc927945ba059a11
3,809
py
Python
osu/apiV1.py
LostPy/osu-api.py
695146217c56b7fe414e1c07cd97260a728d96d9
[ "MIT" ]
1
2021-01-13T00:18:42.000Z
2021-01-13T00:18:42.000Z
osu/apiV1.py
LostPy/osu-api.py
695146217c56b7fe414e1c07cd97260a728d96d9
[ "MIT" ]
null
null
null
osu/apiV1.py
LostPy/osu-api.py
695146217c56b7fe414e1c07cd97260a728d96d9
[ "MIT" ]
1
2021-04-13T01:45:19.000Z
2021-04-13T01:45:19.000Z
""" Description: A Python module to use easily the osu!api V1. Author: LostPy License: MIT Date: 2021-01-11 """ import requests as req import json from . import from_json base_url ='https://osu.ppy.sh/api' urls = { 'beatmaps': base_url + '/get_beatmaps?', 'user': base_url + '/get_user?', 'scores': base_url + '/get...
30.96748
134
0.664479
0
0
0
0
0
0
0
0
1,392
0.36545
934a5376ef2352c58f4fb9ed7be8a3b25bbe9a22
572
py
Python
apps/show_plots.py
avdmitry/convnet
4ae77c04e898643bb476e0604fab5682f23069d7
[ "BSD-2-Clause" ]
293
2015-01-01T12:23:24.000Z
2022-03-28T19:34:17.000Z
apps/show_plots.py
weilaiyxj/convnet
4ae77c04e898643bb476e0604fab5682f23069d7
[ "BSD-2-Clause" ]
16
2015-01-05T17:46:04.000Z
2017-08-13T17:20:26.000Z
apps/show_plots.py
weilaiyxj/convnet
4ae77c04e898643bb476e0604fab5682f23069d7
[ "BSD-2-Clause" ]
181
2015-01-04T18:06:45.000Z
2021-07-30T05:37:36.000Z
import glob import matplotlib.pyplot as plt import numpy as np import sys plt.ion() data_files = list(glob.glob(sys.argv[1]+'/mnist_net_*_train.log')) valid_data_files = list(glob.glob(sys.argv[1]+'/mnist_net_*_valid.log')) for fname in data_files: data = np.loadtxt(fname).reshape(-1, 3) name = fname.split('/')[...
23.833333
72
0.676573
0
0
0
0
0
0
0
0
68
0.118881
934b9553c57c50df3dbe6b024a339fd09db698e0
2,395
py
Python
props/graph_representation/proposition.py
kshabahang/props
d3cc981f778185769b4dc2816aecaf66d21d0e91
[ "MIT" ]
null
null
null
props/graph_representation/proposition.py
kshabahang/props
d3cc981f778185769b4dc2816aecaf66d21d0e91
[ "MIT" ]
null
null
null
props/graph_representation/proposition.py
kshabahang/props
d3cc981f778185769b4dc2816aecaf66d21d0e91
[ "MIT" ]
null
null
null
from props.dependency_tree.definitions import subject_dependencies, ARG_LABEL,\ object_dependencies, SOURCE_LABEL, domain_label, POSSESSED_LABEL,\ POSSESSOR_LABEL class Proposition: def __init__(self,pred,args,outputType): self.pred = pred self.args = args self.outputType = ou...
33.263889
159
0.499791
1,526
0.637161
0
0
0
0
0
0
505
0.210856
934bd76a6819cffc22fcfcbe6e22970e2f898fc2
4,263
py
Python
hello.py
olibob/pyflasktuto
b49c435340bfe4346c4a91d8041dbf81d890d7d8
[ "MIT" ]
null
null
null
hello.py
olibob/pyflasktuto
b49c435340bfe4346c4a91d8041dbf81d890d7d8
[ "MIT" ]
null
null
null
hello.py
olibob/pyflasktuto
b49c435340bfe4346c4a91d8041dbf81d890d7d8
[ "MIT" ]
null
null
null
from flask import Flask, request, render_template, session, redirect, url_for, flash from flask_script import Manager, Shell from flask_bootstrap import Bootstrap from flask_moment import Moment from flask_wtf import FlaskForm from wtforms import StringField, SubmitField from wtforms.validators import Required from fla...
32.052632
94
0.683087
718
0.168426
0
0
1,256
0.294628
0
0
866
0.203143
934c2f4590fdde4bb9eb55db3bd4e1d99170a2a3
2,799
py
Python
tap/tests/test_result.py
cans/tappy-pkg
d147b67fc0219e08a1d64a2cd3cd0c844fbc5ce5
[ "BSD-2-Clause" ]
null
null
null
tap/tests/test_result.py
cans/tappy-pkg
d147b67fc0219e08a1d64a2cd3cd0c844fbc5ce5
[ "BSD-2-Clause" ]
null
null
null
tap/tests/test_result.py
cans/tappy-pkg
d147b67fc0219e08a1d64a2cd3cd0c844fbc5ce5
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2015, Matt Layman import os import unittest from tap.runner import TAPTestResult class FakeTestCase(unittest.TestCase): def runTest(self): pass def __call__(self, result): pass class TestTAPTestResult(unittest.TestCase): @classmethod def _make_one(cls): #...
33.321429
76
0.629511
2,694
0.962487
0
0
193
0.068953
0
0
555
0.198285
934da82fb900c36fd86daeb41307bafc6afe8b8f
390
py
Python
1068.py
destinationunknown/CSES
692b84ee8d52c5266dc1825e7d5447424cb93690
[ "MIT" ]
2
2021-06-22T03:33:45.000Z
2021-09-29T18:19:40.000Z
1068.py
destinationunknown/CSES
692b84ee8d52c5266dc1825e7d5447424cb93690
[ "MIT" ]
null
null
null
1068.py
destinationunknown/CSES
692b84ee8d52c5266dc1825e7d5447424cb93690
[ "MIT" ]
2
2020-08-04T18:11:53.000Z
2021-07-12T10:12:15.000Z
# Weird Algorithm # Consider an algorithm that takes as input a positive integer n. If n is even, the algorithm divides it by two, and if n is odd, the algorithm multiplies it by three and adds one. The algorithm repeats this, until n is one. n = int(input()) print(n, end=" ") while n != 1: if n % 2 == 0: ...
26
224
0.607692
0
0
0
0
0
0
0
0
247
0.633333
934dcd3bfdb0c7406bd85e5c81f4e80b7bdbab85
5,868
py
Python
benchmark.py
ceshine/small-file-benchmark
70c8e1c7400e45c7d99e7f89e77d510efa23fbfd
[ "MIT" ]
null
null
null
benchmark.py
ceshine/small-file-benchmark
70c8e1c7400e45c7d99e7f89e77d510efa23fbfd
[ "MIT" ]
null
null
null
benchmark.py
ceshine/small-file-benchmark
70c8e1c7400e45c7d99e7f89e77d510efa23fbfd
[ "MIT" ]
null
null
null
"""Simple Benchmark of Reading Small Files From Disk Usage: benchmark.py (-h | --help) benchmark.py init COUNT benchmark.py (create|test) (flat|two_level|four_level|memmap) [--size=<size>] Arguments: COUNT The number of files to be created. Supports scientific notation (e.g. 3e5). Options: -h --help ...
30.092308
89
0.579925
0
0
0
0
0
0
0
0
1,903
0.324301
934e7112faa4303ecb5d8b5fd5fd635de5c0afd2
568
py
Python
openpype/hosts/hiero/plugins/publish/integrate_version_up_workfile.py
jonclothcat/OpenPype
d1208cbebc0a7f378de0062ccd653295c6399195
[ "MIT" ]
87
2021-05-07T08:40:46.000Z
2022-03-19T00:36:25.000Z
openpype/hosts/hiero/plugins/publish/integrate_version_up_workfile.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
1,019
2021-04-26T06:22:56.000Z
2022-03-31T16:30:43.000Z
openpype/hosts/hiero/plugins/publish/integrate_version_up_workfile.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
33
2021-04-29T12:35:54.000Z
2022-03-25T14:48:42.000Z
from pyblish import api import openpype.api as pype class IntegrateVersionUpWorkfile(api.ContextPlugin): """Save as new workfile version""" order = api.IntegratorOrder + 10.1 label = "Version-up Workfile" hosts = ["hiero"] optional = True active = True def process(self, context): ...
23.666667
58
0.653169
513
0.903169
0
0
0
0
0
0
125
0.22007
93504f36933a876f5106f9d86389b60f787974d5
1,321
py
Python
bots/oauthbot.py
Git-Good-Team/zoomapi
7fa0f318b9753dc742c46da4d33248bf4a5fadf3
[ "Apache-2.0" ]
null
null
null
bots/oauthbot.py
Git-Good-Team/zoomapi
7fa0f318b9753dc742c46da4d33248bf4a5fadf3
[ "Apache-2.0" ]
2
2020-04-04T00:30:29.000Z
2020-04-04T00:31:51.000Z
bots/oauthbot.py
Git-Good-Team/zoomapi
7fa0f318b9753dc742c46da4d33248bf4a5fadf3
[ "Apache-2.0" ]
null
null
null
import sys, os filename = os.path.join(os.path.dirname(__file__), '..') sys.path.insert(1, filename) from zoomapi import OAuthZoomClient import json from configparser import ConfigParser from pyngrok import ngrok parser = ConfigParser() parser.read("bots/bot.ini") client_id = parser.get("OAuth", "client_id") client_s...
31.452381
84
0.72218
0
0
0
0
0
0
0
0
261
0.197578
9352862472804182f6ff78dfa5acae79e4f0c5ce
476
py
Python
gist_set.py
devnoname120/gist-alfred
5e918566254b6891241be3ad6e2f6c77959052ff
[ "MIT" ]
113
2015-06-24T19:36:22.000Z
2022-03-05T05:15:49.000Z
gist_set.py
devnoname120/gist-alfred
5e918566254b6891241be3ad6e2f6c77959052ff
[ "MIT" ]
18
2016-05-03T08:21:54.000Z
2022-03-26T18:24:21.000Z
gist_set.py
devnoname120/gist-alfred
5e918566254b6891241be3ad6e2f6c77959052ff
[ "MIT" ]
13
2015-07-02T03:16:04.000Z
2022-03-15T10:42:38.000Z
#!/usr/bin/python # encoding: utf-8 from collections import Counter from gist import create_workflow from pprint import pprint as pp import sys import workflow from workflow import Workflow, web from workflow.background import run_in_background, is_running def main(wf): arg = wf.args[0] wf.add_item(u"Set tok...
21.636364
74
0.735294
0
0
0
0
0
0
0
0
73
0.153361
9357d0df25d16453f003333896fffe2c6ffc814d
2,699
py
Python
class_12/strategies/fixed_trade_price_strategy.py
taoranalex/course_codes
75f76e61f560fb51e7db7bb3edbefaeaf01ead7e
[ "MIT" ]
121
2020-12-12T02:21:21.000Z
2022-03-29T06:43:42.000Z
class_12/strategies/fixed_trade_price_strategy.py
taoranalex/course_codes
75f76e61f560fb51e7db7bb3edbefaeaf01ead7e
[ "MIT" ]
null
null
null
class_12/strategies/fixed_trade_price_strategy.py
taoranalex/course_codes
75f76e61f560fb51e7db7bb3edbefaeaf01ead7e
[ "MIT" ]
80
2020-12-20T09:41:46.000Z
2022-03-22T10:00:16.000Z
from howtrader.app.cta_strategy import ( CtaTemplate, StopOrder, TickData, BarData, TradeData, OrderData, BarGenerator, ArrayManager ) from howtrader.trader.constant import Interval from datetime import datetime from howtrader.app.cta_strategy.engine import CtaEngine, EngineType import ...
24.761468
94
0.600963
2,785
0.885533
0
0
0
0
0
0
1,170
0.372019
9358a1bd65251378efa84d7f25d1fc162739f57e
102
py
Python
3429.py
ssd352/quera-solutions
7c7b572a26c3c1648f23528bcc661dec18b44943
[ "MIT" ]
1
2020-03-16T21:13:14.000Z
2020-03-16T21:13:14.000Z
3429.py
ssd352/quera-solutions
7c7b572a26c3c1648f23528bcc661dec18b44943
[ "MIT" ]
null
null
null
3429.py
ssd352/quera-solutions
7c7b572a26c3c1648f23528bcc661dec18b44943
[ "MIT" ]
2
2020-03-27T18:40:40.000Z
2020-07-30T14:59:55.000Z
T = int(input()) if T > 100: print('Steam') elif T < 0: print('Ice') else: print('Water')
12.75
18
0.519608
0
0
0
0
0
0
0
0
19
0.186275
9358d7fabdaa2250dc44f570309b7f9d32d9b186
159
py
Python
settings_template.py
WHOIGit/wip-comms-ifcb-imagedb
fa0fd9743e74d483e89cbd249519c8f70a1859d9
[ "MIT" ]
null
null
null
settings_template.py
WHOIGit/wip-comms-ifcb-imagedb
fa0fd9743e74d483e89cbd249519c8f70a1859d9
[ "MIT" ]
1
2018-11-01T20:16:28.000Z
2018-11-01T20:21:29.000Z
settings_template.py
WHOIGit/wip-comms-ifcb-imagedb
fa0fd9743e74d483e89cbd249519c8f70a1859d9
[ "MIT" ]
null
null
null
PSQL_CONNECTION_PARAMS = { 'dbname': 'ifcb', 'user': '******', 'password': '******', 'host': '/var/run/postgresql/' } DATA_DIR = '/mnt/ifcb'
17.666667
34
0.496855
0
0
0
0
0
0
0
0
85
0.534591
935a6e37fb1d18808927d59317499615e6e1d729
15,702
py
Python
src/trainer.py
tpimentelms/neural-transducer
6c99b0919aa84559b2c3aa970651f7d9696131e8
[ "MIT" ]
null
null
null
src/trainer.py
tpimentelms/neural-transducer
6c99b0919aa84559b2c3aa970651f7d9696131e8
[ "MIT" ]
null
null
null
src/trainer.py
tpimentelms/neural-transducer
6c99b0919aa84559b2c3aa970651f7d9696131e8
[ "MIT" ]
null
null
null
import argparse import glob import os import random import re from dataclasses import dataclass from functools import partial from math import ceil from typing import List, Optional import numpy as np import torch from torch.optim.lr_scheduler import ReduceLROnPlateau from tqdm import tqdm import util tqdm.monitor_i...
39.852792
136
0.606483
15,079
0.960324
0
0
114
0.00726
0
0
2,265
0.144249
935c2fa61554e13fc7833d382f5ef594996fe9fc
780
py
Python
tools/opencv.py
michaelpdu/pytorch-CycleGAN-and-pix2pix
7e7aa3fed935644f92c0e15f7de80ce0971bf510
[ "BSD-3-Clause" ]
null
null
null
tools/opencv.py
michaelpdu/pytorch-CycleGAN-and-pix2pix
7e7aa3fed935644f92c0e15f7de80ce0971bf510
[ "BSD-3-Clause" ]
null
null
null
tools/opencv.py
michaelpdu/pytorch-CycleGAN-and-pix2pix
7e7aa3fed935644f92c0e15f7de80ce0971bf510
[ "BSD-3-Clause" ]
null
null
null
import cv2 import argparse import numpy as np def gray2bgr565(input_file, output_file): img = np.fromfile(input_file, dtype=np.uint16) img = img.reshape(480, 640) # img = cv2.imread(input_file, cv2.IMREAD_ANYDEPTH) ratio = np.amax(img) / 256 img8 = (img / ratio).astype('uint8') img8 = cv2.cvtCo...
33.913043
81
0.680769
0
0
0
0
0
0
0
0
161
0.20641
935c7d03b817d9b2ac9b204299f3a0bbc0e80536
2,354
py
Python
UMS/views.py
rawheel/Django-User-Management-System
e5b14d2422fe5c5ea0359ded24ad229af1510050
[ "MIT" ]
2
2021-03-18T06:27:05.000Z
2021-03-18T10:21:41.000Z
UMS/views.py
rawheel/Django-User-Management-System
e5b14d2422fe5c5ea0359ded24ad229af1510050
[ "MIT" ]
null
null
null
UMS/views.py
rawheel/Django-User-Management-System
e5b14d2422fe5c5ea0359ded24ad229af1510050
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect from .forms import UserForm,RoleForm,RightsForm from .models import UserTable,UserRole,UserRights def show_users(request): if request.method == "GET": users = list(UserTable.objects.values_list('user_name', flat=True).order_by('id')) users_list = {'users_...
31.810811
170
0.607901
0
0
0
0
0
0
0
0
449
0.190739
935e4e7c33e3cd032008f714cbcd252ea376fad9
99
py
Python
game/entities/ship.py
alucardzom/pyxeltron
314e5e4801c412c9a68cc49fa3c8977bf8f6366d
[ "MIT" ]
1
2021-11-11T03:04:07.000Z
2021-11-11T03:04:07.000Z
game/entities/ship.py
truizsanchez/pyxeltron
a219b7ef250517fee15ab39ac63b82f2752e875e
[ "MIT" ]
null
null
null
game/entities/ship.py
truizsanchez/pyxeltron
a219b7ef250517fee15ab39ac63b82f2752e875e
[ "MIT" ]
1
2021-08-15T17:47:54.000Z
2021-08-15T17:47:54.000Z
from engine.entities.base import BaseEntity class Ship(BaseEntity): WIDTH = 8 HEIGHT = 8
14.142857
43
0.707071
52
0.525253
0
0
0
0
0
0
0
0
935e6905b97081210e7bed7902277443d7f5464d
3,201
py
Python
tunacell/plotting/defs.py
HuggyHugMe/tunacell
5a7a7a58bbb557098d6638e896aa784ecc37d639
[ "MIT" ]
null
null
null
tunacell/plotting/defs.py
HuggyHugMe/tunacell
5a7a7a58bbb557098d6638e896aa784ecc37d639
[ "MIT" ]
3
2017-08-10T11:19:01.000Z
2019-08-11T11:11:00.000Z
tunacell/plotting/defs.py
HuggyHugMe/tunacell
5a7a7a58bbb557098d6638e896aa784ecc37d639
[ "MIT" ]
5
2017-08-08T22:31:24.000Z
2021-08-06T04:08:08.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ tunacell package ============ plotting/defs.py module ~~~~~~~~~~~~~~~~~~~~~~~~~~~ """ DEFAULT_COLORS = ('red', 'blue', 'purple', 'green', 'yellowgreen', 'cyan', 'magenta', 'indigo', 'darkorange', 'pink', 'yellow') colors = DEFAULT_...
31.693069
74
0.219931
0
0
0
0
0
0
0
0
817
0.255233
935ef32a8b82613d0863e4ef3259b0459d1157b4
7,109
py
Python
scripts/ilqr/iLQR.py
leoking99-BIT/Constrained_ILQR
08346c0aa9eeb035ae6e3d6643ac9c119cb893d2
[ "Apache-2.0" ]
42
2020-03-06T08:19:38.000Z
2022-03-26T16:36:00.000Z
scripts/ilqr/iLQR.py
leoking99-BIT/Constrained_ILQR
08346c0aa9eeb035ae6e3d6643ac9c119cb893d2
[ "Apache-2.0" ]
1
2022-01-10T12:59:04.000Z
2022-02-01T00:43:52.000Z
scripts/ilqr/iLQR.py
mengxingshifen1218/Constrained_ILQR
08346c0aa9eeb035ae6e3d6643ac9c119cb893d2
[ "Apache-2.0" ]
16
2020-08-17T08:32:51.000Z
2022-02-10T14:49:00.000Z
import math import numpy as np import matplotlib.pyplot as plt import scipy.integrate as integrate import pdb import sys from ilqr.vehicle_model import Model from ilqr.local_planner import LocalPlanner from ilqr.constraints import Constraints class iLQR(): def __init__(self, args, obstacle_bb, verbose=False): ...
40.163842
124
0.573639
6,860
0.964974
0
0
0
0
0
0
1,162
0.163455
935fa4a7ed04d049f63c5a737cdba5df5fb7e88c
25
py
Python
src/engines/train/__init__.py
cr3ux53c/DenseNet-Tensorflow2
208143bf4086c407e524e01cd945fd3b0741b48d
[ "MIT" ]
60
2020-07-08T02:39:06.000Z
2022-03-28T14:26:34.000Z
src/engines/train/__init__.py
cr3ux53c/DenseNet-Tensorflow2
208143bf4086c407e524e01cd945fd3b0741b48d
[ "MIT" ]
28
2019-08-13T22:20:46.000Z
2020-02-17T19:27:32.000Z
src/engines/train/__init__.py
cr3ux53c/DenseNet-Tensorflow2
208143bf4086c407e524e01cd945fd3b0741b48d
[ "MIT" ]
18
2020-08-26T02:06:32.000Z
2022-03-22T03:04:40.000Z
from .train import train
12.5
24
0.8
0
0
0
0
0
0
0
0
0
0
9361e059240f0fd25cbcad6c1466201786c8b48a
164
py
Python
genie_core/services/KeyBoardService.py
JereMIbq1995/genie-core
f87b6de56749630a46200298f7021047e854c8a3
[ "MIT" ]
null
null
null
genie_core/services/KeyBoardService.py
JereMIbq1995/genie-core
f87b6de56749630a46200298f7021047e854c8a3
[ "MIT" ]
null
null
null
genie_core/services/KeyBoardService.py
JereMIbq1995/genie-core
f87b6de56749630a46200298f7021047e854c8a3
[ "MIT" ]
null
null
null
class KeyBoardService(): def __init__(self): pass def is_key_pressed(self, *keys): pass def is_key_released(self, *key): pass
16.4
36
0.591463
163
0.993902
0
0
0
0
0
0
0
0
93625b79b6238b332e1234a333a23eb72571d1f2
4,034
py
Python
tordatahub/tests/create_topics.py
jasonz93/python-tordatahub
3a9a497d5a0bebf915d7e24049dd8b06099e3c04
[ "Apache-2.0" ]
null
null
null
tordatahub/tests/create_topics.py
jasonz93/python-tordatahub
3a9a497d5a0bebf915d7e24049dd8b06099e3c04
[ "Apache-2.0" ]
null
null
null
tordatahub/tests/create_topics.py
jasonz93/python-tordatahub
3a9a497d5a0bebf915d7e24049dd8b06099e3c04
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License...
45.840909
231
0.645513
0
0
0
0
0
0
0
0
1,660
0.410282
9364fa85414e75b8108245e512d4d8a8d1ad59d1
494
py
Python
config.py
didim99/FlaskLearning
66d9de3729d372ec548ffbaaaff1d50797467361
[ "MIT" ]
null
null
null
config.py
didim99/FlaskLearning
66d9de3729d372ec548ffbaaaff1d50797467361
[ "MIT" ]
null
null
null
config.py
didim99/FlaskLearning
66d9de3729d372ec548ffbaaaff1d50797467361
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv basedir = os.path.abspath(os.path.dirname(__file__)) load_dotenv(os.path.join(basedir, '.env')) class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess' VKAPI = { 'v': '5.122', 'client_id': '7386546', 'redirect...
27.444444
78
0.643725
352
0.712551
0
0
0
0
0
0
200
0.404858
93699c5951eeec7f3f3c9e322a78230d739bef03
38,153
py
Python
index_builder/topic_model.py
Klamann/search-index-builder
86c0b48a70871085966a91e75cd97c6862f8e988
[ "Apache-2.0" ]
null
null
null
index_builder/topic_model.py
Klamann/search-index-builder
86c0b48a70871085966a91e75cd97c6862f8e988
[ "Apache-2.0" ]
null
null
null
index_builder/topic_model.py
Klamann/search-index-builder
86c0b48a70871085966a91e75cd97c6862f8e988
[ "Apache-2.0" ]
null
null
null
import argparse import itertools import json import logging import os import pickle import time import warnings from collections import Counter, defaultdict from typing import Dict, Any, List, Iterable, Tuple, Set warnings.filterwarnings(action='ignore', category=UserWarning, module='gensim') import langdetect import...
53.964639
140
0.627919
30,472
0.798679
2,762
0.072393
4,434
0.116216
0
0
13,555
0.35528
936b0f95e7f3ca1f6eafc51508f66b72158c5fa4
1,247
py
Python
python/misc/switcharoo.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
null
null
null
python/misc/switcharoo.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
2
2022-03-10T03:49:14.000Z
2022-03-14T00:49:54.000Z
python/misc/switcharoo.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Switcharoo. Create a function that takes a string and returns a new string with its first and last characters swapped, except under three conditions: If the length of the string is less than two, return "Incompatible.". If the argument is not a string, return "Incompatible.". If the first a...
31.175
75
0.655172
0
0
0
0
0
0
0
0
726
0.582197
936be3218f3e880a40b9ff8cc02572fc2dea5387
2,212
py
Python
external/unbound/libunbound/python/examples/async-lookup.py
simplixcurrency/simplix
dd313f6fe5a42cf508b19aea3f49cb8ba6b5dbf1
[ "BSD-3-Clause" ]
1,751
2016-11-03T18:25:34.000Z
2022-03-30T17:43:26.000Z
external/unbound/libunbound/python/examples/async-lookup.py
simplixcurrency/simplix
dd313f6fe5a42cf508b19aea3f49cb8ba6b5dbf1
[ "BSD-3-Clause" ]
603
2017-03-03T19:51:58.000Z
2022-03-31T12:56:58.000Z
external/unbound/libunbound/python/examples/async-lookup.py
simplixcurrency/simplix
dd313f6fe5a42cf508b19aea3f49cb8ba6b5dbf1
[ "BSD-3-Clause" ]
296
2016-11-14T07:00:11.000Z
2022-03-29T00:56:58.000Z
#!/usr/bin/python ''' async-lookup.py : This example shows how to use asynchronous lookups Authors: Zdenek Vasicek (vasicek AT fit.vutbr.cz) Marek Vavrusa (xvavru00 AT stud.fit.vutbr.cz) Copyright (c) 2008. All rights reserved. This software is open source. Redistribution and use in source and bina...
38.137931
110
0.758137
0
0
0
0
0
0
0
0
1,642
0.742315
936be74b5161c4ea335dcc47745288106a326b76
244
py
Python
1/one.py
TheFrederick-git/adventofcode2021
a320f3bba2655afab1aad8bf2520ccb705b2fd1e
[ "MIT" ]
null
null
null
1/one.py
TheFrederick-git/adventofcode2021
a320f3bba2655afab1aad8bf2520ccb705b2fd1e
[ "MIT" ]
null
null
null
1/one.py
TheFrederick-git/adventofcode2021
a320f3bba2655afab1aad8bf2520ccb705b2fd1e
[ "MIT" ]
null
null
null
"""1/1 adventofcode""" with open("input.txt", "r", encoding="UTF-8") as i_file: data = list(map(int, i_file.read().splitlines())) values = ["i" if data[i] > data[i - 1] else "d" for i in range(1, len(data))] print(values.count("i"))
34.857143
78
0.598361
0
0
0
0
0
0
0
0
52
0.213115
936c4abf26bcf5aae9aaddd431b1ecdde9736568
3,345
py
Python
fcsgg/modeling/backbone/resnet.py
liuhengyue/fcsgg
826c6e194270461a66ca5d048cb67f1ccf7ef387
[ "MIT" ]
9
2022-01-17T03:27:46.000Z
2022-03-26T09:35:59.000Z
fcsgg/modeling/backbone/resnet.py
liuhengyue/fcsgg
826c6e194270461a66ca5d048cb67f1ccf7ef387
[ "MIT" ]
3
2022-01-26T03:28:18.000Z
2022-02-03T04:19:29.000Z
fcsgg/modeling/backbone/resnet.py
liuhengyue/fcsgg
826c6e194270461a66ca5d048cb67f1ccf7ef387
[ "MIT" ]
null
null
null
""" Simple ResNet FPN that only outputs p2. Modified from https://github.com/HRNet/Higher-HRNet-Human-Pose-Estimation/blob/master/lib/models/pose_higher_hrnet.py """ __author__ = "Hengyue Liu" __copyright__ = "Copyright (c) 2021 Futurewei Inc." __credits__ = [] __license__ = "MIT License" __version__ = "0.1" __maintai...
39.352941
117
0.6571
2,154
0.643946
0
0
648
0.193722
0
0
1,180
0.352765
936c5a70ec50a4830edce31139219ee55e7967af
198
py
Python
musicdb/__init__.py
ieuan-jones/musicdb
e894614cb70881eca810d97f7362a68398c3c3b0
[ "BSD-3-Clause" ]
null
null
null
musicdb/__init__.py
ieuan-jones/musicdb
e894614cb70881eca810d97f7362a68398c3c3b0
[ "BSD-3-Clause" ]
null
null
null
musicdb/__init__.py
ieuan-jones/musicdb
e894614cb70881eca810d97f7362a68398c3c3b0
[ "BSD-3-Clause" ]
null
null
null
import os from flask import Flask def create_app(): app = Flask(__name__, instance_relative_config=True) from . import catalogue app.register_blueprint(catalogue.bp) return app
16.5
56
0.732323
0
0
0
0
0
0
0
0
0
0
936f55fdfaa40d9286b2780e20a668166b6fc40f
273
py
Python
backfill/save_to_gcs.py
grollins/quandl-gcp-pipeline
1b6c247fb3ad1ee33bd3cf363d119c124b8e26b2
[ "MIT" ]
null
null
null
backfill/save_to_gcs.py
grollins/quandl-gcp-pipeline
1b6c247fb3ad1ee33bd3cf363d119c124b8e26b2
[ "MIT" ]
null
null
null
backfill/save_to_gcs.py
grollins/quandl-gcp-pipeline
1b6c247fb3ad1ee33bd3cf363d119c124b8e26b2
[ "MIT" ]
null
null
null
from google.cloud import storage GCS_CLIENT = storage.Client() GCS_BUCKET = GCS_CLIENT.get_bucket('senpai-io.appspot.com') path = 'quandl-stage/backfill_data_jan2015_mar2018.csv' blob = GCS_BUCKET.blob(path) blob.upload_from_filename(filename='data_jan2015_mar2018.csv')
30.333333
62
0.81685
0
0
0
0
0
0
0
0
97
0.355311
93700816a23a94674ae0ee1adf228796c45d26ba
740
py
Python
CMS/test/mocks/search_mocks.py
office-for-students/wagtail-CMS
98789c279edf48f2bbedb5415437da3317f0e12b
[ "MIT" ]
4
2019-06-04T07:18:44.000Z
2020-06-15T22:27:36.000Z
CMS/test/mocks/search_mocks.py
office-for-students/wagtail-CMS
98789c279edf48f2bbedb5415437da3317f0e12b
[ "MIT" ]
38
2019-05-09T13:14:56.000Z
2022-03-12T00:54:57.000Z
CMS/test/mocks/search_mocks.py
office-for-students/wagtail-CMS
98789c279edf48f2bbedb5415437da3317f0e12b
[ "MIT" ]
3
2019-09-26T14:32:36.000Z
2021-05-06T15:48:01.000Z
import json from requests.models import Response from http import HTTPStatus from CMS.test.mocks.search_mocks_content import content class SearchMocks: @classmethod def get_search_response_content(cls): return content; @classmethod def get_successful_search_response(cls): respon...
27.407407
89
0.714865
604
0.816216
0
0
563
0.760811
0
0
14
0.018919
9370464ed328cc5d44014a45d60a36057d95bbda
1,818
py
Python
code/hw2/performance.py
edrebin/NLP-Course
004af059e4a48b9086dc122d32c864799f1f16f1
[ "Apache-2.0" ]
9
2021-08-29T15:23:09.000Z
2022-01-09T20:13:39.000Z
code/hw2/performance.py
edrebin/NLP-Course
004af059e4a48b9086dc122d32c864799f1f16f1
[ "Apache-2.0" ]
1
2022-03-08T11:05:29.000Z
2022-03-08T13:48:32.000Z
code/hw2/performance.py
edrebin/NLP-Course
004af059e4a48b9086dc122d32c864799f1f16f1
[ "Apache-2.0" ]
2
2021-12-12T22:11:44.000Z
2022-01-26T03:55:56.000Z
import numpy as np from spacy.pipeline.sentencizer import Sentencizer from glob import glob from spacy.lang.en import English def metrics(a, b): from sklearn.metrics import f1_score, recall_score, precision_score, accuracy_score return (accuracy_score(a, b), recall_score(a, b), precisi...
31.344828
95
0.608361
0
0
0
0
0
0
0
0
117
0.064356
93706b196b7d6d2ef7011340df5c93edb90333c5
6,893
py
Python
phonebook02/contact.py
pgThiago/saving-in-txt-python
dda28fb3c8033eb16650e630a579bc66e475465f
[ "MIT" ]
1
2020-08-15T23:22:44.000Z
2020-08-15T23:22:44.000Z
phonebook02/contact.py
pgThiago/saving-in-txt-python
dda28fb3c8033eb16650e630a579bc66e475465f
[ "MIT" ]
null
null
null
phonebook02/contact.py
pgThiago/saving-in-txt-python
dda28fb3c8033eb16650e630a579bc66e475465f
[ "MIT" ]
null
null
null
from os import path from operator import itemgetter from time import sleep class Contact: '''def __init__(self, name = ' ', phone = ' ', birthday = ' '): self.name = name self.phone = phone self.birthday = birthday''' def check_if_txt_exists(self): '''Checks if txt exists and i...
38.943503
123
0.526041
6,815
0.988684
0
0
0
0
0
0
1,868
0.271
93717d5c39265a03944d975e47f65b92a746680b
84
py
Python
src/vpnchooser/__init__.py
cbrand/vpnchooser
0982baeb14eff1e0b7ef5dbc8f11b3a7213f341c
[ "MIT" ]
null
null
null
src/vpnchooser/__init__.py
cbrand/vpnchooser
0982baeb14eff1e0b7ef5dbc8f11b3a7213f341c
[ "MIT" ]
null
null
null
src/vpnchooser/__init__.py
cbrand/vpnchooser
0982baeb14eff1e0b7ef5dbc8f11b3a7213f341c
[ "MIT" ]
1
2016-05-31T16:14:37.000Z
2016-05-31T16:14:37.000Z
# -*- encoding: utf-8 -*- from .applicaton import app, api from . import resources
16.8
32
0.678571
0
0
0
0
0
0
0
0
25
0.297619
9371f372d231442d071f230b9b470e2409d71503
3,157
py
Python
scripts/pughpore/passagetime-simple.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
8
2016-09-07T01:59:31.000Z
2021-03-06T12:14:31.000Z
scripts/pughpore/passagetime-simple.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
null
null
null
scripts/pughpore/passagetime-simple.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
4
2017-12-06T17:43:01.000Z
2020-05-01T05:41:14.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals # (c) 2017 Gregor Mitscha-Baude # TODO: obtain rD from actual simulation from nanopores import fields, kT, eta, qq, savefigs from numpy import exp, pi, sqrt, linspace, diff, array, dot L = 46e-9 # length of pore r = 2.0779e-9 # radius of protein trypsin...
25.877049
74
0.596136
0
0
0
0
0
0
0
0
991
0.313806
9372415bb53340040af72936577c024343d4574e
15,605
py
Python
IMU_algorithms/record_data.py
nesl/UnderwaterSensorTag
c0bf499b4bd7588d74bb2a0228f077d1fc38e7f5
[ "BSD-3-Clause" ]
null
null
null
IMU_algorithms/record_data.py
nesl/UnderwaterSensorTag
c0bf499b4bd7588d74bb2a0228f077d1fc38e7f5
[ "BSD-3-Clause" ]
null
null
null
IMU_algorithms/record_data.py
nesl/UnderwaterSensorTag
c0bf499b4bd7588d74bb2a0228f077d1fc38e7f5
[ "BSD-3-Clause" ]
1
2019-03-01T00:48:59.000Z
2019-03-01T00:48:59.000Z
from modules.mpulib import computeheading, attitudefromCompassGravity, RP_calculate, MadgwickQuaternionUpdate, Euler2Quat, quaternion_to_euler_angle, MPU9250_computeEuler import socket, traceback import csv import struct import sys, time, string, pygame import pygame import pygame.draw import pygame.time import numpy ...
20.890228
228
0.614418
0
0
0
0
0
0
0
0
6,534
0.418712
9373256a577124b3122a3c2bb32ac8963415c16e
5,229
py
Python
rest_api/views/doc_users.py
AktanKasymaliev/django_MyDentKg_backend
ede10d33028d36035b22e1e1dec916d773fecff6
[ "MIT" ]
null
null
null
rest_api/views/doc_users.py
AktanKasymaliev/django_MyDentKg_backend
ede10d33028d36035b22e1e1dec916d773fecff6
[ "MIT" ]
null
null
null
rest_api/views/doc_users.py
AktanKasymaliev/django_MyDentKg_backend
ede10d33028d36035b22e1e1dec916d773fecff6
[ "MIT" ]
null
null
null
from rest_framework import generics from rest_framework import response from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.views import APIView from rest_api.serializers.doc_serializers import (DoctorRegisterSerializer, DoctorUsersSerializer, DoctorLoginSerializer, Doct...
43.214876
126
0.673934
4,388
0.839166
0
0
1,223
0.233888
0
0
532
0.10174
937335c45d766563fe6c185b76d6ad2c9b3fea7a
652
py
Python
examples/plots/plot_quaternion_integrate.py
Mateus224/pytransform3d-1
26f1d39c5fa5f5c400fdabc7e58f645c7a35bee5
[ "BSD-3-Clause" ]
null
null
null
examples/plots/plot_quaternion_integrate.py
Mateus224/pytransform3d-1
26f1d39c5fa5f5c400fdabc7e58f645c7a35bee5
[ "BSD-3-Clause" ]
null
null
null
examples/plots/plot_quaternion_integrate.py
Mateus224/pytransform3d-1
26f1d39c5fa5f5c400fdabc7e58f645c7a35bee5
[ "BSD-3-Clause" ]
null
null
null
""" ====================== Quaternion Integration ====================== Integrate angular velocities to a sequence of quaternions. """ import numpy as np import matplotlib.pyplot as plt from pytransform3d.rotations import quaternion_integrate, matrix_from_quaternion, plot_basis angular_velocities = np.empty((21, 3)...
27.166667
92
0.654908
0
0
0
0
0
0
0
0
136
0.208589
9373d6bbb7c1cbcacd636bf497c2f411b745ae3a
188
py
Python
8kyu/Beginner Series #2 Clock.py
walkgo/codewars_tasks
4c0ab6f0e1d2181318fc15b12dd55ef565ecd223
[ "MIT" ]
null
null
null
8kyu/Beginner Series #2 Clock.py
walkgo/codewars_tasks
4c0ab6f0e1d2181318fc15b12dd55ef565ecd223
[ "MIT" ]
null
null
null
8kyu/Beginner Series #2 Clock.py
walkgo/codewars_tasks
4c0ab6f0e1d2181318fc15b12dd55ef565ecd223
[ "MIT" ]
null
null
null
def past(h, m, s): h_ms = h * 3600000 m_ms = m * 60000 s_ms = s * 1000 return h_ms + m_ms + s_ms # Best Practices def past(h, m, s): return (3600*h + 60*m + s) * 1000
18.8
37
0.537234
0
0
0
0
0
0
0
0
16
0.085106
93753504d8f288b3efbdb0fba48e17b67530926a
1,071
py
Python
examples/experimental/gmsh_api_test.py
Karl-Eriksson/calfem-python
e9a88a85d3a73877ec99f7fbd1a296a44c3c9b22
[ "MIT" ]
54
2016-04-11T19:12:13.000Z
2022-02-22T07:15:39.000Z
examples/experimental/gmsh_api_test.py
Karl-Eriksson/calfem-python
e9a88a85d3a73877ec99f7fbd1a296a44c3c9b22
[ "MIT" ]
13
2019-07-01T19:48:38.000Z
2022-02-11T12:50:02.000Z
examples/experimental/gmsh_api_test.py
Karl-Eriksson/calfem-python
e9a88a85d3a73877ec99f7fbd1a296a44c3c9b22
[ "MIT" ]
273
2017-08-01T10:29:09.000Z
2022-02-16T14:02:36.000Z
import gmsh import sys import numpy as np import calfem.mesh as cfm import calfem.vis_mpl as cfv if __name__ == "__main__": gmsh.initialize(sys.argv) gmsh.model.add("t1") gmsh.model.geo.add_point(0.0, 0.0, 0.0) gmsh.model.geo.add_point(1.0, 0.0, 0.0) gmsh.model.geo.add_point(1.0, 1.0, 0.0) gm...
23.282609
56
0.660131
0
0
0
0
0
0
0
0
296
0.276377
9376046268e91238a8435a22fb73b4a25cba7b36
1,495
py
Python
bandera.py
lauralardies/recursividad
940e4c5fb1da00a88f955624409e4dc49150717d
[ "Apache-2.0" ]
null
null
null
bandera.py
lauralardies/recursividad
940e4c5fb1da00a88f955624409e4dc49150717d
[ "Apache-2.0" ]
null
null
null
bandera.py
lauralardies/recursividad
940e4c5fb1da00a88f955624409e4dc49150717d
[ "Apache-2.0" ]
null
null
null
# En este problema vamos a resolver el problema de la bandera de Dijkstra. # Tenemos una fila de fichas que cada una puede ser de un único color: roja, verde o azul. Están colocadas en un orden cualquiera # y tenemos que ordenarlas de manera que quede, de izquierda a derecha, los colores ordenados primero en rojo, lue...
38.333333
129
0.650167
0
0
0
0
0
0
0
0
711
0.473054
9376fd70f43fc6254d25d8d9de6182ad6d1f30d5
32
py
Python
tests/test_placeholder.py
symonk/stashie-cli
f18eec8a8e4bcb0b947a934e25b9a9f8066335fc
[ "Apache-2.0" ]
null
null
null
tests/test_placeholder.py
symonk/stashie-cli
f18eec8a8e4bcb0b947a934e25b9a9f8066335fc
[ "Apache-2.0" ]
null
null
null
tests/test_placeholder.py
symonk/stashie-cli
f18eec8a8e4bcb0b947a934e25b9a9f8066335fc
[ "Apache-2.0" ]
null
null
null
def test_placeholder(): ...
10.666667
23
0.59375
0
0
0
0
0
0
0
0
0
0
9378f025d68dbd651d584bdfea07d35e9c5e3bf2
1,860
py
Python
src/tests/test_download.py
dschon/rcp2
b8a666d6a108c006aa1624944172af1f77bc0383
[ "MIT" ]
10
2019-02-22T03:48:16.000Z
2022-02-06T00:23:53.000Z
src/tests/test_download.py
dschon/rcp2
b8a666d6a108c006aa1624944172af1f77bc0383
[ "MIT" ]
82
2019-02-19T20:28:00.000Z
2022-03-20T16:55:45.000Z
src/tests/test_download.py
dschon/rcp2
b8a666d6a108c006aa1624944172af1f77bc0383
[ "MIT" ]
30
2019-02-18T17:25:31.000Z
2022-01-22T14:38:29.000Z
import pytest import responses from src.data import download def declare_action(fname, action, pooch): """Declare the download action taken. This function helps us know if ``src.data.download.fetch`` downloaded a missing file, fetched an available file, or updated on old file. Args: ...
31.525424
85
0.67957
0
0
0
0
1,151
0.618817
0
0
812
0.436559
937962d2ebcdc2a6b9460ca91cb7e76e7ac6b49e
1,434
py
Python
what.py
manastech/de-bee
32d4084b7d765b2766a7b8b947e896bb6f81beb9
[ "MIT" ]
1
2015-07-30T07:37:20.000Z
2015-07-30T07:37:20.000Z
what.py
manastech/de-bee
32d4084b7d765b2766a7b8b947e896bb6f81beb9
[ "MIT" ]
null
null
null
what.py
manastech/de-bee
32d4084b7d765b2766a7b8b947e896bb6f81beb9
[ "MIT" ]
null
null
null
from google.appengine.ext import webapp from wsgiref.handlers import CGIHandler from model import Membership from model import Group from model import Transaction class WhatHandler(webapp.RequestHandler): def get(self): page = self.request.get('p'); if page is None or page == '': page = 1 else:...
30.510638
93
0.535565
1,040
0.725244
0
0
0
0
0
0
276
0.192469
937c9982a5f43646604b5753ad9ccca9aeb1f6d9
1,191
py
Python
semana_02/desafios/python-6/main.py
alexaldr/AceleraDev-Python
f655b31f5d672f617c43282dc91a19f761845f84
[ "MIT" ]
null
null
null
semana_02/desafios/python-6/main.py
alexaldr/AceleraDev-Python
f655b31f5d672f617c43282dc91a19f761845f84
[ "MIT" ]
23
2021-03-19T04:59:51.000Z
2022-02-10T15:15:12.000Z
semana_02/desafios/python-6/main.py
alexaldr/AceleraDev-Python
f655b31f5d672f617c43282dc91a19f761845f84
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class Department: def __init__(self, name, code): self.name = name self.code = code class Employee(metaclass=ABCMeta): def __init__(self, code, name, salary, department): self.code = code self.name = name self.salary = salary ...
22.903846
71
0.622166
1,139
0.956339
0
0
54
0.04534
0
0
48
0.040302
937e0e4be5d04ed65cc13c12fe0380f70dc970f4
3,130
py
Python
train.py
JackwithWilshere/FashionAI-
9a7a30aa12035418c835cdb4e05641cdb7a456b3
[ "MIT" ]
5
2019-04-03T07:32:39.000Z
2021-12-23T06:48:27.000Z
train.py
espectre/FashionAI
9a7a30aa12035418c835cdb4e05641cdb7a456b3
[ "MIT" ]
null
null
null
train.py
espectre/FashionAI
9a7a30aa12035418c835cdb4e05641cdb7a456b3
[ "MIT" ]
4
2019-01-29T01:33:13.000Z
2021-05-13T10:24:31.000Z
import torch import torch.nn as nn import torch.optim as optim import torchvision.transforms as transforms import os from torch.autograd import Variable import argparse import numpy as np from torch.optim.lr_scheduler import * from model.resnet import resnet101 from data_pre.FashionAI import fashion pa...
32.947368
138
0.741534
0
0
0
0
0
0
0
0
532
0.169968
937e540fc45ceb0533afb18ba69d5a86a510db61
7,363
py
Python
Salami/Player.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
15
2020-04-17T12:02:14.000Z
2022-03-16T03:01:34.000Z
Salami/Player.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
9
2020-04-25T01:57:16.000Z
2020-04-29T11:42:34.000Z
Salami/Player.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
55
2020-04-17T12:01:11.000Z
2021-12-28T10:14:02.000Z
import arcade import math import LevelGenerator import Textures import Sounds from Constants import TILE_SIZE, ROOM_WIDTH, ROOM_HEIGHT from Mob import Mob from Projectile import Projectile class Player(Mob): def __init__(self, x, y, keyboard): self.keyboard = keyboard self.movespeed = 2.5 ...
34.568075
108
0.561184
7,170
0.973788
0
0
0
0
0
0
229
0.031101
938003c63346f324cd22abdc408302c529c5d8bc
5,127
py
Python
app/main/forms/direct_award_forms.py
pocketstefan/digitalmarketplace-buyer-frontend
f4d27f03d5f3accb29eaa61e5ec8d9e5eb60c306
[ "MIT" ]
null
null
null
app/main/forms/direct_award_forms.py
pocketstefan/digitalmarketplace-buyer-frontend
f4d27f03d5f3accb29eaa61e5ec8d9e5eb60c306
[ "MIT" ]
null
null
null
app/main/forms/direct_award_forms.py
pocketstefan/digitalmarketplace-buyer-frontend
f4d27f03d5f3accb29eaa61e5ec8d9e5eb60c306
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms.validators import DataRequired, Length, NumberRange, InputRequired, ValidationError from dmutils.forms.fields import ( DMBooleanField, DMDateField, DMPoundsField, DMStripWhitespaceStringField, DMRadioField, ) from dmutils.forms.validators import Greater...
33.953642
111
0.61771
4,755
0.927443
0
0
0
0
0
0
1,555
0.303296
938285bf3f7e333d883cb4b2288f0db4d00d5c14
5,093
py
Python
dotstrings/parser.py
nickromano/dotstrings
c7d2a0771d9ba9c26902415524944aa603ad0271
[ "MIT" ]
null
null
null
dotstrings/parser.py
nickromano/dotstrings
c7d2a0771d9ba9c26902415524944aa603ad0271
[ "MIT" ]
null
null
null
dotstrings/parser.py
nickromano/dotstrings
c7d2a0771d9ba9c26902415524944aa603ad0271
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Utilities for dealing with .strings files""" import re from typing import List, Match, Optional, TextIO, Tuple, Union from dotstrings.dot_strings_entry import DotStringsEntry _ENTRY_REGEX = r'^"(.+)"\s?=\s?"(.*)";$' _ENTRY_PATTERN = re.compile(_ENTRY_REGEX) _NS_ENTRY_REGEX = r'^(NS[^ ]+)...
28.452514
100
0.634793
0
0
0
0
0
0
0
0
2,147
0.421559
fa7502cb66cc41fddb3ababb88dbe745379e17f4
1,249
py
Python
source/timeseries/single/linear.py
supercoder3000/py_tensorflow_experiments
01aebf681df25286cf4503661148203a03309b04
[ "MIT" ]
null
null
null
source/timeseries/single/linear.py
supercoder3000/py_tensorflow_experiments
01aebf681df25286cf4503661148203a03309b04
[ "MIT" ]
null
null
null
source/timeseries/single/linear.py
supercoder3000/py_tensorflow_experiments
01aebf681df25286cf4503661148203a03309b04
[ "MIT" ]
null
null
null
import tensorflow as tf from data_types.training_result import TrainingResult from data_types.training_set import TrainingSet from timeseries.build import compile_and_fit from timeseries.window_generator import WindowGenerator def evaluate_linear( training_set: TrainingSet ) -> TrainingResult: ## LINEAR ...
28.386364
86
0.709367
0
0
0
0
0
0
0
0
79
0.063251
fa7568af8ff47dd33c5421737ba46eddde06e111
3,639
py
Python
apps/sso/utils/email.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
3
2021-05-16T17:06:57.000Z
2021-05-28T17:14:05.000Z
apps/sso/utils/email.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
null
null
null
apps/sso/utils/email.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
null
null
null
from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from django.conf import settings from django.contrib.sites.shortcuts import get_current_site from django.core.mail import get_connection from django.core.mail.message import EmailMessage, EmailMul...
40.88764
118
0.710085
0
0
0
0
0
0
0
0
400
0.10992
fa794d632072a61bdf906bd8971ea8dd930b5c9a
2,292
py
Python
examples/paper/synthetic.py
wesselb/gpar
70f5cb7cd2dec075e33dd7d9cd133b5bc1798777
[ "MIT" ]
49
2018-10-17T04:08:47.000Z
2021-09-26T13:20:47.000Z
examples/paper/synthetic.py
wesselb/gpar
70f5cb7cd2dec075e33dd7d9cd133b5bc1798777
[ "MIT" ]
3
2020-02-01T02:58:37.000Z
2020-12-04T16:04:46.000Z
examples/paper/synthetic.py
wesselb/gpar
70f5cb7cd2dec075e33dd7d9cd133b5bc1798777
[ "MIT" ]
10
2019-02-12T10:11:59.000Z
2021-08-21T12:20:56.000Z
import matplotlib.pyplot as plt import numpy as np from gpar.regression import GPARRegressor from wbml.experiment import WorkingDirectory import wbml.plot if __name__ == "__main__": wd = WorkingDirectory("_experiments", "synthetic", seed=1) # Create toy data set. n = 200 x = np.linspace(0, 1, n) n...
27.95122
78
0.57199
0
0
0
0
0
0
0
0
403
0.175829
fa7999e4d1ec2ca801d5ae696a83b8e1e2447b50
8,462
py
Python
code/js/interactive_ecoli_data.py
cremerlab/ribosomal_allocation
a48828e00906c18bc3c49d109b3874c531098ce1
[ "MIT" ]
null
null
null
code/js/interactive_ecoli_data.py
cremerlab/ribosomal_allocation
a48828e00906c18bc3c49d109b3874c531098ce1
[ "MIT" ]
null
null
null
code/js/interactive_ecoli_data.py
cremerlab/ribosomal_allocation
a48828e00906c18bc3c49d109b3874c531098ce1
[ "MIT" ]
null
null
null
#%% import numpy as np import pandas as pd import bokeh.plotting import bokeh.io import bokeh.models import growth.model import growth.viz const = growth.model.load_constants() colors, palette = growth.viz.bokeh_style() mapper = growth.viz.load_markercolors() bokeh.io.output_file('../../figures/interactive/interac...
51.284848
106
0.536162
0
0
0
0
0
0
0
0
2,535
0.299504
fa79e9f429253026bc9c0f924d862a6178140da0
1,156
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/util/monitoring.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/util/monitoring.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/util/monitoring.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
"""Helper methods for monitoring of events.""" from edx_django_utils.monitoring import set_custom_attribute, set_custom_attributes_for_course_key def monitor_import_failure(course_key, import_step, message=None, exception=None): """ Helper method to add custom parameters to for import failures. Arguments:...
41.285714
98
0.745675
0
0
0
0
0
0
0
0
529
0.457612
fa7a70aa8c051849cdc07367bdb4c7b9fe08c5bc
24,725
py
Python
Unidad3/H.hv6_toy/bin/quast-4.6.3/quast_libs/genome_analyzer.py
Melcatus/TallerBioinf
4a3beb210ee277ce213609301ea160746d39b434
[ "MIT" ]
null
null
null
Unidad3/H.hv6_toy/bin/quast-4.6.3/quast_libs/genome_analyzer.py
Melcatus/TallerBioinf
4a3beb210ee277ce213609301ea160746d39b434
[ "MIT" ]
null
null
null
Unidad3/H.hv6_toy/bin/quast-4.6.3/quast_libs/genome_analyzer.py
Melcatus/TallerBioinf
4a3beb210ee277ce213609301ea160746d39b434
[ "MIT" ]
null
null
null
############################################################################ # Copyright (c) 2015-2017 Saint Petersburg State University # Copyright (c) 2011-2015 Saint Petersburg Academic University # All Rights Reserved # See file LICENSE for details. ##################################################################...
48.196881
141
0.621881
1,151
0.046552
0
0
0
0
0
0
4,436
0.179414
fa7a83fe53cfeb8f0635e9e1cf133b811d5394c2
3,713
py
Python
app/auth/forms.py
blazejosojca/flask_blog
2bac2f9c8bb60db8a5073147f35b9e088c97497b
[ "MIT" ]
null
null
null
app/auth/forms.py
blazejosojca/flask_blog
2bac2f9c8bb60db8a5073147f35b9e088c97497b
[ "MIT" ]
1
2021-06-01T23:21:11.000Z
2021-06-01T23:21:11.000Z
app/auth/forms.py
blazejosojca/flask_blog
2bac2f9c8bb60db8a5073147f35b9e088c97497b
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from flask_wtf.file import FileAllowed, FileField from flask_babel import lazy_gettext as _l from wtforms import StringField, TextAreaField, SubmitField, PasswordField, BooleanField from wtforms.validators import DataRequired, Email, ValidationError, Length, EqualTo from app.models impo...
43.174419
111
0.664153
3,367
0.906814
0
0
0
0
0
0
511
0.137625
fa7b83f18dbaad2881ce921e1b1d08adbc4e3409
5,308
py
Python
pointmap.py
quillford/twitchslam
c75c609b39b5d51b325fb2a8efd3402b7d29f37f
[ "MIT" ]
1
2022-01-12T10:12:09.000Z
2022-01-12T10:12:09.000Z
pointmap.py
quillford/twitchslam
c75c609b39b5d51b325fb2a8efd3402b7d29f37f
[ "MIT" ]
null
null
null
pointmap.py
quillford/twitchslam
c75c609b39b5d51b325fb2a8efd3402b7d29f37f
[ "MIT" ]
1
2022-01-05T09:55:12.000Z
2022-01-05T09:55:12.000Z
from helpers import poseRt from frame import Frame import time import numpy as np import g2o import json LOCAL_WINDOW = 20 #LOCAL_WINDOW = None class Point(object): # A Point is a 3-D point in the world # Each Point is observed in multiple Frames def __init__(self, mapp, loc, color, tid=None): self.pt = np...
27.790576
103
0.58572
5,158
0.971741
0
0
0
0
0
0
501
0.094386
fa7c044effd2fd98d0d77b1344bdf8fa952165a5
482
py
Python
day-02/python/part2.py
kayew/aoc-2020
55ea804c983aef4d3a7e159403247ec23a47aa10
[ "MIT" ]
null
null
null
day-02/python/part2.py
kayew/aoc-2020
55ea804c983aef4d3a7e159403247ec23a47aa10
[ "MIT" ]
null
null
null
day-02/python/part2.py
kayew/aoc-2020
55ea804c983aef4d3a7e159403247ec23a47aa10
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys file = open(sys.argv[1], "r") total = 0 for line in file: letterMatch = 0 param = line.split() passIndex = [int(x) for x in param[0].split('-')] targetLetter = param[1][0] password = param[2] if password[passIndex[0]-1] == targetLetter: letterMatch +...
19.28
53
0.591286
0
0
0
0
0
0
0
0
45
0.093361
fa7f6dd4ea20017f1aa2340509ebc6691ac50171
3,165
py
Python
handler.py
chiragjn/torchserve-t5-translation
ad8493302a405116c04fb2bea154412d051f27b8
[ "MIT" ]
3
2021-03-10T05:24:15.000Z
2021-11-21T14:52:03.000Z
handler.py
chiragjn/torchserve-t5-translation
ad8493302a405116c04fb2bea154412d051f27b8
[ "MIT" ]
null
null
null
handler.py
chiragjn/torchserve-t5-translation
ad8493302a405116c04fb2bea154412d051f27b8
[ "MIT" ]
null
null
null
import torch import os import logging import json from abc import ABC from ts.torch_handler.base_handler import BaseHandler from transformers import T5Tokenizer, T5ForConditionalGeneration logger = logging.getLogger(__name__) class TransformersSeqGeneration(BaseHandler, ABC): _LANG_MAP = { "es": "Spanish...
39.5625
115
0.641706
2,934
0.927014
0
0
0
0
0
0
650
0.205371
fa7f8a320c3494838594cfc8dddc16eae8654412
1,114
py
Python
api/pub/sensor/sensor.py
rtaft/pi-sensor-dashboard
e7f711e8ecd9e4c32976583c32dbc716b165d56a
[ "MIT" ]
null
null
null
api/pub/sensor/sensor.py
rtaft/pi-sensor-dashboard
e7f711e8ecd9e4c32976583c32dbc716b165d56a
[ "MIT" ]
null
null
null
api/pub/sensor/sensor.py
rtaft/pi-sensor-dashboard
e7f711e8ecd9e4c32976583c32dbc716b165d56a
[ "MIT" ]
null
null
null
import flask from flask import request import flask_restful as restful from marshmallow import Schema, fields, validate from api.helpers import success, created from api.exceptions import NotFound #from api.restful import API #@API.route('/sensors', methods=['GET'], resource_class_kwargs={'test': 'foo'}) class Sensor...
30.944444
79
0.692101
806
0.723519
0
0
0
0
0
0
232
0.208259
fa80141154a663ebd88b94d2fadc61b86d838ccf
5,802
py
Python
homework/week8/models.py
enigmacodemaster/Project_Of_Mask_Real_Time_Detection
a4d0123709315ab436318999aa758b5a0a5f61e8
[ "Apache-2.0" ]
null
null
null
homework/week8/models.py
enigmacodemaster/Project_Of_Mask_Real_Time_Detection
a4d0123709315ab436318999aa758b5a0a5f61e8
[ "Apache-2.0" ]
null
null
null
homework/week8/models.py
enigmacodemaster/Project_Of_Mask_Real_Time_Detection
a4d0123709315ab436318999aa758b5a0a5f61e8
[ "Apache-2.0" ]
1
2021-03-05T03:21:38.000Z
2021-03-05T03:21:38.000Z
from __future__ import division import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np from utils.parse_config import * from utils.utils import build_targets, to_cpu, non_max_suppression import matplotlib.pyplot as plt import matplotlib.patches as pa...
39.739726
119
0.55636
818
0.138456
0
0
0
0
0
0
1,322
0.223764
fa8070ca6c33d7c997430f09e7d9b6f93e1c5af7
5,553
py
Python
ggtools/gg/__init__.py
richannan/GGTOOLS
7909da988d90de50c82532d97121a3fbcfc0263a
[ "MIT" ]
22
2019-12-16T01:30:29.000Z
2022-03-01T08:57:07.000Z
ggtools/gg/__init__.py
richannan/GGTOOLS
7909da988d90de50c82532d97121a3fbcfc0263a
[ "MIT" ]
3
2019-12-23T14:09:30.000Z
2022-03-29T01:52:53.000Z
ggtools/gg/__init__.py
richannan/GGTOOLS
7909da988d90de50c82532d97121a3fbcfc0263a
[ "MIT" ]
13
2019-12-19T07:01:19.000Z
2022-03-14T11:26:36.000Z
''' ggtools gg subpackage This subpackage defines the following functions: # ====================== fitting function ==================== # func - Define a linear function f(x) = a0 + a1/T*x to be fitted, where a0 and a1 are parameters for inter # ====================== estinate lovebums =================== # love...
43.724409
193
0.715469
0
0
0
0
0
0
0
0
5,016
0.903296
fa80d721e471bbc14b93aa5e1ca661ad13077c16
3,203
py
Python
django_core_models/locations/urls.py
ajaniv/django-core-models
7fde3792de745b5df875e8dc760096f5b10d46ce
[ "MIT" ]
null
null
null
django_core_models/locations/urls.py
ajaniv/django-core-models
7fde3792de745b5df875e8dc760096f5b10d46ce
[ "MIT" ]
15
2016-04-23T17:18:42.000Z
2018-09-06T16:32:48.000Z
django_core_models/locations/urls.py
ajaniv/django-core-models
7fde3792de745b5df875e8dc760096f5b10d46ce
[ "MIT" ]
null
null
null
""" .. module:: django_core_models.locations.urls :synopsis: django_core_models locations application urls module django_core_models *locations* application urls module. """ from __future__ import absolute_import from django.conf.urls import url from . import views urlpatterns = [ url(r'^addresses/$', ...
30.504762
67
0.596316
0
0
0
0
0
0
0
0
1,335
0.416797
fa81f8a7916eae6aa8efd3ffef3174775ad07146
3,984
py
Python
dataloader/Dataset.py
mvemoon/TextClassificationBenchmark
e564f653cd9117a765bbe0b2da42d34b31546ae4
[ "MIT" ]
576
2017-12-13T12:44:20.000Z
2022-03-03T13:28:58.000Z
dataloader/Dataset.py
motefly/TextClassificationBenchmark
77cbf922e3abe1241961c2759170a4657a3a4672
[ "MIT" ]
21
2017-12-17T07:46:25.000Z
2020-08-20T16:55:01.000Z
dataloader/Dataset.py
motefly/TextClassificationBenchmark
77cbf922e3abe1241961c2759170a4657a3a4672
[ "MIT" ]
149
2017-12-13T15:00:37.000Z
2022-03-23T18:29:44.000Z
# -*- coding: utf-8 -*- import os,urllib class Dataset(object): def __init__(self,opt=None): if opt is not None: self.setup(opt) self.http_proxy= opt.__dict__.get("proxy","null") else: self.name="demo" self.dirname="demo" self.http_proxy="...
37.233645
159
0.541667
3,934
0.98745
0
0
0
0
0
0
1,061
0.266315
fa81fc214c9e7372cdac762542256af383055ca7
1,232
py
Python
scrapy/arxiv1.py
SaeedPourjafar/ws_2021
6e91e70fc8f40007eb3c4d68282aa86b80b79363
[ "MIT" ]
null
null
null
scrapy/arxiv1.py
SaeedPourjafar/ws_2021
6e91e70fc8f40007eb3c4d68282aa86b80b79363
[ "MIT" ]
null
null
null
scrapy/arxiv1.py
SaeedPourjafar/ws_2021
6e91e70fc8f40007eb3c4d68282aa86b80b79363
[ "MIT" ]
null
null
null
# Please note that since the number of topics in computer science are exactly 40 and it's less than 100 # therefore we applied the limit on the second file (arxiv2.py) which has somewhere around 700-800 outputs # To run this file please put it in the spiders folder and run the code below in terminal/cmd: # scrapy ...
39.741935
139
0.650162
812
0.659091
503
0.408279
0
0
0
0
722
0.586039
fa827fe0d4e36def59dcda41a7b889abf5ecab35
392
py
Python
pdm/pep517/_vendor/toml/ordered.py
linw1995/pdm-pep517
6b8030225ec374acf04ee70c685e55a495f24482
[ "MIT" ]
4
2021-04-14T16:18:08.000Z
2022-01-13T13:03:47.000Z
pdm/pep517/_vendor/toml/ordered.py
linw1995/pdm-pep517
6b8030225ec374acf04ee70c685e55a495f24482
[ "MIT" ]
29
2021-03-23T15:40:56.000Z
2022-03-10T11:55:38.000Z
pdm/pep517/_vendor/toml/ordered.py
frostming/pdm-pep517
99b6aab5f3cb2dac657f3a750d8eb4ad001dd095
[ "MIT" ]
6
2021-03-21T17:42:25.000Z
2022-01-25T21:28:35.000Z
from collections import OrderedDict from pdm.pep517._vendor.toml import TomlEncoder from pdm.pep517._vendor.toml import TomlDecoder class TomlOrderedDecoder(TomlDecoder): def __init__(self): super(self.__class__, self).__init__(_dict=OrderedDict) class TomlOrderedEncoder(TomlEncoder): def __init__...
24.5
63
0.77551
254
0.647959
0
0
0
0
0
0
0
0
fa869925b1b7d58317ee5c78a24422f831fc4fc4
673
py
Python
easyHTTP/client/api.py
hxgz/easyHTTP
21d28119cd3ad7ca8275197468adc5cae634ba6f
[ "Apache-2.0" ]
null
null
null
easyHTTP/client/api.py
hxgz/easyHTTP
21d28119cd3ad7ca8275197468adc5cae634ba6f
[ "Apache-2.0" ]
null
null
null
easyHTTP/client/api.py
hxgz/easyHTTP
21d28119cd3ad7ca8275197468adc5cae634ba6f
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 from urllib.parse import urlencode, urljoin from .client import Client class API(Client): HOST = None PATH = None TIMEOUT = 30 @classmethod def _build_url(cls, path_args=None, params=None): url = urljoin(cls.HOST, cls.PATH) if path_args: url = url.form...
24.035714
79
0.603269
582
0.864785
0
0
316
0.469539
187
0.27786
31
0.046062
fa86af3e536c67102ea203913013e7cc1a7477ca
96
py
Python
ingredient_parser/__init__.py
johnwmillr/RecipesAPI
3c7422b838fef4f25c59b5c410e2a82e64ba2dc4
[ "MIT" ]
null
null
null
ingredient_parser/__init__.py
johnwmillr/RecipesAPI
3c7422b838fef4f25c59b5c410e2a82e64ba2dc4
[ "MIT" ]
null
null
null
ingredient_parser/__init__.py
johnwmillr/RecipesAPI
3c7422b838fef4f25c59b5c410e2a82e64ba2dc4
[ "MIT" ]
null
null
null
__author__ = 'sheraz' __all__ = ['parse','normalize'] from ingredient_parser.en import parse
13.714286
38
0.739583
0
0
0
0
0
0
0
0
26
0.270833
fa87373ae132aaf932898395d86017b53654b8c3
11,847
py
Python
RL_practise/MCTS/AlphaZero/board.py
xiaoyangzai/DeepReinforcementLearning
3da248074ab9542a5eb1c3ae60eb7b7ee7777b87
[ "MIT" ]
null
null
null
RL_practise/MCTS/AlphaZero/board.py
xiaoyangzai/DeepReinforcementLearning
3da248074ab9542a5eb1c3ae60eb7b7ee7777b87
[ "MIT" ]
null
null
null
RL_practise/MCTS/AlphaZero/board.py
xiaoyangzai/DeepReinforcementLearning
3da248074ab9542a5eb1c3ae60eb7b7ee7777b87
[ "MIT" ]
1
2021-04-08T10:36:13.000Z
2021-04-08T10:36:13.000Z
#!/usr/bin/python from __future__ import print_function import numpy as np import os from human_player import human_player import time class Board(object): """board for game""" def __init__(self,**kwargs): self.width = int(kwargs.get('width',8)) self.height = int(kwargs.get('height',8)) ...
35.154303
125
0.545539
11,456
0.966996
0
0
0
0
0
0
1,611
0.135984
fa882f998e435f00fac9b0a2e9ec7aa2f7f84450
3,393
py
Python
tests/validation_tool/test_validation_helper.py
zhuyulin27/amazon-emr-on-eks-custom-image-cli
fa6636345e6e720245eb24bd0ffa0de68cc8e09a
[ "Apache-2.0" ]
17
2021-08-20T22:17:08.000Z
2022-03-03T18:35:53.000Z
tests/validation_tool/test_validation_helper.py
zhuyulin27/amazon-emr-on-eks-custom-image-cli
fa6636345e6e720245eb24bd0ffa0de68cc8e09a
[ "Apache-2.0" ]
2
2022-01-05T10:11:29.000Z
2022-03-03T18:38:19.000Z
tests/validation_tool/test_validation_helper.py
zhuyulin27/amazon-emr-on-eks-custom-image-cli
fa6636345e6e720245eb24bd0ffa0de68cc8e09a
[ "Apache-2.0" ]
1
2021-09-24T18:06:56.000Z
2021-09-24T18:06:56.000Z
import unittest import io from unittest import mock from tests.lib.utils import INSPECT from custom_image_cli.validation_tool import validation_helper from custom_image_cli.validation_tool.validation_models.validation_models import \ ImageDetail, ImageManifest, EmrRelease class TestValidationHelper(unittest.TestC...
54.725806
136
0.742411
3,113
0.917477
0
0
2,876
0.847627
0
0
993
0.292661
fa8a6ced2cffa99e7edddbdbdbc6c8e1f0f2ffa5
2,216
py
Python
other/stanford_ner_tagger.py
gauthamkrishna-g/Real-Time-Sentiment-Analyzer-of-Twitter-Trends
478ea270f67aa75c964d69d29d9bac59978fd7c5
[ "MIT" ]
6
2017-08-25T10:08:02.000Z
2021-02-02T16:15:16.000Z
other/stanford_ner_tagger.py
gauthkris/Real-Time-Sentiment-Analyzer-of-Twitter-Trends
478ea270f67aa75c964d69d29d9bac59978fd7c5
[ "MIT" ]
null
null
null
other/stanford_ner_tagger.py
gauthkris/Real-Time-Sentiment-Analyzer-of-Twitter-Trends
478ea270f67aa75c964d69d29d9bac59978fd7c5
[ "MIT" ]
2
2019-07-12T08:07:32.000Z
2020-05-22T17:21:13.000Z
# -*- coding: utf-8 -*- import nltk import os import numpy as np import matplotlib.pyplot as plt from matplotlib import style #from nltk import pos_tag from nltk.tag import StanfordNERTagger from nltk.tokenize import word_tokenize style.use('fivethirtyeight') # Process text raw_text = open("news_article.txt").read...
29.157895
112
0.676895
0
0
0
0
0
0
0
0
392
0.176895
fa8ea4a787dbe3d2892d7a449c5a14c4d96bc740
105
py
Python
mak/libs/pyxx/cxx/grammar/expression/primary/requires/__init__.py
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
4
2015-05-13T16:28:36.000Z
2017-05-24T15:34:14.000Z
mak/libs/pyxx/cxx/grammar/expression/primary/requires/__init__.py
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
mak/libs/pyxx/cxx/grammar/expression/primary/requires/__init__.py
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
1
2017-03-21T08:28:07.000Z
2017-03-21T08:28:07.000Z
from . import general from . import simple from . import type from . import compound from . import nested
21
22
0.771429
0
0
0
0
0
0
0
0
0
0
fa9415fee11e95855395e081541950bda39d51e1
539
py
Python
02_Beyond_Fundamentals/02_01.py
AnmolTomer/lynda_programming_foundations
2f1269f2984ae8707acd80017b892ff4cceb0ee9
[ "MIT" ]
null
null
null
02_Beyond_Fundamentals/02_01.py
AnmolTomer/lynda_programming_foundations
2f1269f2984ae8707acd80017b892ff4cceb0ee9
[ "MIT" ]
null
null
null
02_Beyond_Fundamentals/02_01.py
AnmolTomer/lynda_programming_foundations
2f1269f2984ae8707acd80017b892ff4cceb0ee9
[ "MIT" ]
null
null
null
# Iteration: Repeat the same procedure until it reaches a end point. # Specify the data to iterate over,what to do to data at every step, and we need to specify when our loop should stop. # Infinite Loop: Bug that may occur when ending condition speicified incorrectly or not specified. spices = [ 'salt', 'pepp...
33.6875
129
0.727273
0
0
0
0
0
0
0
0
449
0.833024
fa94dc14969adcec177f7a104c520957faf4be46
42,211
py
Python
dsed/migrate/build.py
flowmatters/dsed-py
b967db2797320e63bc504e40023b7c7623a0b002
[ "0BSD" ]
null
null
null
dsed/migrate/build.py
flowmatters/dsed-py
b967db2797320e63bc504e40023b7c7623a0b002
[ "0BSD" ]
null
null
null
dsed/migrate/build.py
flowmatters/dsed-py
b967db2797320e63bc504e40023b7c7623a0b002
[ "0BSD" ]
null
null
null
import os import json from functools import reduce import numpy as np import pandas as pd import geopandas as gpd from dsed.ow import DynamicSednetCatchment, FINE_SEDIMENT, COARSE_SEDIMENT from dsed.const import * import openwater.nodes as node_types from openwater.examples import from_source from openwater import d...
50.734375
273
0.675677
36,074
0.854611
0
0
0
0
0
0
12,294
0.291251
fa9523caf9ac0424eb71bc4eef12115550d20826
3,738
py
Python
scripts/gen_app_yaml.py
MatthewWilkes/mw4068-packaging
5c5d50eea89372e967994dac3bd8b06d25b4f0fa
[ "Apache-2.0" ]
null
null
null
scripts/gen_app_yaml.py
MatthewWilkes/mw4068-packaging
5c5d50eea89372e967994dac3bd8b06d25b4f0fa
[ "Apache-2.0" ]
null
null
null
scripts/gen_app_yaml.py
MatthewWilkes/mw4068-packaging
5c5d50eea89372e967994dac3bd8b06d25b4f0fa
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python2.5 # Copyright 2009 the Melange 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 applic...
30.639344
96
0.697967
0
0
0
0
0
0
0
0
1,904
0.509363
fa954cccfdb16470bfc0b5d84f0c0d0b0bc56f46
70
py
Python
task_list_dev/__main__.py
HenriqueLR/task-list-dev
a623543bbf882458bca476f7a94156cd30d544ab
[ "MIT" ]
null
null
null
task_list_dev/__main__.py
HenriqueLR/task-list-dev
a623543bbf882458bca476f7a94156cd30d544ab
[ "MIT" ]
5
2017-11-25T17:05:47.000Z
2017-11-28T16:06:16.000Z
task_list_dev/__main__.py
HenriqueLR/task-list-dev
a623543bbf882458bca476f7a94156cd30d544ab
[ "MIT" ]
null
null
null
# coding: utf-8 print(__import__('task_list_dev').tools.get_list())
14
51
0.728571
0
0
0
0
0
0
0
0
30
0.428571
fa9589b85e6ec9a294f76d78c7dade6ff939d964
119
py
Python
CodingBat/Python/Warmup-1 > not_string.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
CodingBat/Python/Warmup-1 > not_string.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
CodingBat/Python/Warmup-1 > not_string.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
#Warmup-1 > not_string def not_string(str): if str.startswith('not'): return str else: return "not " + str
19.833333
27
0.638655
0
0
0
0
0
0
0
0
34
0.285714
fa96f592ecf04753046dc1b36c84fb0196c05868
11,242
py
Python
gputools/transforms/transformations.py
jni/gputools
cecaa9565b9be0c716e6c11b0914bbbdfd75657c
[ "BSD-3-Clause" ]
null
null
null
gputools/transforms/transformations.py
jni/gputools
cecaa9565b9be0c716e6c11b0914bbbdfd75657c
[ "BSD-3-Clause" ]
null
null
null
gputools/transforms/transformations.py
jni/gputools
cecaa9565b9be0c716e6c11b0914bbbdfd75657c
[ "BSD-3-Clause" ]
null
null
null
""" scaling images """ from __future__ import print_function, unicode_literals, absolute_import, division import logging logger = logging.getLogger(__name__) import os import numpy as np import warnings from gputools import OCLArray, OCLImage, OCLProgram from gputools.core.ocltypes import cl_buffer_datatype_dict fr...
33.558209
147
0.610656
0
0
0
0
0
0
0
0
5,309
0.472247
fa97031b9abd030801b3037a4db301e08dded608
776
py
Python
index.py
genesis331/fdk-object-detection
b5859a5dea0bc87f7382022d08c3616ecd7d1b85
[ "MIT" ]
null
null
null
index.py
genesis331/fdk-object-detection
b5859a5dea0bc87f7382022d08c3616ecd7d1b85
[ "MIT" ]
null
null
null
index.py
genesis331/fdk-object-detection
b5859a5dea0bc87f7382022d08c3616ecd7d1b85
[ "MIT" ]
null
null
null
import streamlit as st from streamlit import caching import os import torch from src.core.detect import Detector from src.core.utils import utils from PIL import Image import cv2 st.title('1stDayKit Object Detection') st.write('1stDayKit is a high-level Deep Learning toolkit for solving generic tasks.') uploaded_file...
33.73913
86
0.706186
0
0
0
0
0
0
0
0
185
0.238402
fa97149416601cbc0c317503ce2c46c344e58e58
121
py
Python
src/connections/_sqlalchemy.py
Freonius/tranquillity
bb190b4a8facf643d5018a710100b3ff45d6d640
[ "MIT" ]
null
null
null
src/connections/_sqlalchemy.py
Freonius/tranquillity
bb190b4a8facf643d5018a710100b3ff45d6d640
[ "MIT" ]
20
2021-12-31T15:28:20.000Z
2022-02-15T18:24:16.000Z
src/connections/_sqlalchemy.py
Freonius/tranquillity
bb190b4a8facf643d5018a710100b3ff45d6d640
[ "MIT" ]
null
null
null
from sqlalchemy.engine import Engine, Connection from .__interface import IConnection class Sql(IConnection): pass
17.285714
48
0.801653
32
0.264463
0
0
0
0
0
0
0
0
fa97154f8775840c89574571c6a5f0bd69db298e
8,036
py
Python
custom_components/meross_lan/merossclient/__init__.py
gelokatil/meross_lan
e662666da58456e35432310c929c39ac2675dda6
[ "MIT" ]
null
null
null
custom_components/meross_lan/merossclient/__init__.py
gelokatil/meross_lan
e662666da58456e35432310c929c39ac2675dda6
[ "MIT" ]
null
null
null
custom_components/meross_lan/merossclient/__init__.py
gelokatil/meross_lan
e662666da58456e35432310c929c39ac2675dda6
[ "MIT" ]
null
null
null
"""An Http API Client to interact with meross devices""" from email import header import logging from types import MappingProxyType from typing import List, MappingView, Optional, Dict, Any, Callable, Union from enum import Enum from uuid import uuid4 from hashlib import md5 from time import time from json import ( ...
34.195745
126
0.620956
5,081
0.63228
0
0
0
0
1,968
0.244898
1,898
0.236187
fa9727363fedea573e43bf5393f3cdd76d8a0357
632
py
Python
modulo 2/d037/conversao.py
rafa-evangelista/PYTHON
761ec7e01f1617263bc023a6b82b599a936275ee
[ "MIT" ]
null
null
null
modulo 2/d037/conversao.py
rafa-evangelista/PYTHON
761ec7e01f1617263bc023a6b82b599a936275ee
[ "MIT" ]
null
null
null
modulo 2/d037/conversao.py
rafa-evangelista/PYTHON
761ec7e01f1617263bc023a6b82b599a936275ee
[ "MIT" ]
null
null
null
num = int(input('Digite um número: ')) print('''Qual será a base de conversão do número {} [1] para "binário" [2] para "octal" [3] para "hexadecimal"'''.format(num)) num1 = int(input('Escolha uma opção: ')) if num1 == 1: print('Você escolheu converter o número {} para binário. O valor é de {}.'.format( num...
33.263158
89
0.628165
0
0
0
0
0
0
0
0
399
0.611963
fa97541ff73e5ddf240b2b8fd1ad06427655c0a8
1,359
py
Python
python/matplotlib/contour_from_hist2d_sigmas.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
23
2015-06-08T13:01:00.000Z
2021-12-30T08:20:04.000Z
python/matplotlib/contour_from_hist2d_sigmas.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
1
2020-10-22T02:36:10.000Z
2020-10-22T02:36:10.000Z
python/matplotlib/contour_from_hist2d_sigmas.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
7
2017-10-31T09:48:14.000Z
2022-01-04T15:59:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Plot contours from an 2D histogram showing the standard deviation """ import numpy as np import matplotlib.pyplot as plt # Build datas ############### x, y = np.random.normal(size=(2, 1000000)) xbins = np.linspace(-2, 2, 30) ybins = np.linspace(-2, 2, 30) counts,...
23.033898
86
0.589404
0
0
0
0
0
0
0
0
436
0.320824
fa98db342baff8386700db039d9f97d991e6637e
2,648
py
Python
tests/conftest.py
Peter-Metz/taxdata
ee4d401979f48bbbe392bbfba1b571233fec3495
[ "CC0-1.0" ]
null
null
null
tests/conftest.py
Peter-Metz/taxdata
ee4d401979f48bbbe392bbfba1b571233fec3495
[ "CC0-1.0" ]
null
null
null
tests/conftest.py
Peter-Metz/taxdata
ee4d401979f48bbbe392bbfba1b571233fec3495
[ "CC0-1.0" ]
null
null
null
import os import json import pytest import pandas as pd # TODO: revise the following constants when using new or revised CPS/PUF data CPS_START_YEAR = 2014 PUF_START_YEAR = 2011 PUF_COUNT = 248591 LAST_YEAR = 2027 @pytest.fixture(scope='session') def test_path(): return os.path.abspath(os.path.dirname(__file__)...
24.293578
77
0.702795
0
0
0
0
2,387
0.901435
0
0
602
0.227341
fa9a41e91340bc016be9afc635d4430468d4b664
9,326
py
Python
tests/snappi/pfcwd/files/pfcwd_runtime_traffic_helper.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
2
2021-11-24T09:33:41.000Z
2021-12-03T09:08:29.000Z
tests/snappi/pfcwd/files/pfcwd_runtime_traffic_helper.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
1
2021-09-08T00:59:33.000Z
2021-09-08T00:59:33.000Z
tests/snappi/pfcwd/files/pfcwd_runtime_traffic_helper.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
1
2021-08-20T03:34:30.000Z
2021-08-20T03:34:30.000Z
import time import logging from tests.common.helpers.assertions import pytest_assert from tests.common.snappi.snappi_helpers import get_dut_port_id from tests.common.snappi.common_helpers import start_pfcwd, stop_pfcwd from tests.common.snappi.port import select_ports, select_tx_port from tests.common.snappi.snappi_he...
36.147287
92
0.623097
0
0
0
0
0
0
0
0
2,588
0.277504
fa9a48ce8dbd9143921b6d9a6aaa68457aed7d58
3,353
py
Python
sixx/plugins/utils/converters.py
TildeBeta/6X
1814eb8f394b7c25b49decdd7d7249567c85f30f
[ "MIT" ]
2
2018-03-06T20:39:49.000Z
2018-03-17T04:28:57.000Z
sixx/plugins/utils/converters.py
TildeBeta/TwitterImages
1814eb8f394b7c25b49decdd7d7249567c85f30f
[ "MIT" ]
2
2018-03-06T20:39:46.000Z
2018-03-15T17:03:03.000Z
sixx/plugins/utils/converters.py
TildeBeta/TwitterImages
1814eb8f394b7c25b49decdd7d7249567c85f30f
[ "MIT" ]
1
2018-04-25T22:24:40.000Z
2018-04-25T22:24:40.000Z
from math import sqrt import re from curious.commands import Context from curious.commands.exc import ConversionFailedError from typing import Tuple colour_pattern = re.compile(r'(#|0x)?([A-Za-z0-9]{1,6})') RGB = Tuple[int, int, int] class Colour: """ A class that represents a colour. """ def __ini...
25.022388
101
0.593498
2,089
0.623024
0
0
280
0.083507
0
0
983
0.29317
fa9b854e0bf31a77452586413b7c4fd1b1f19d69
85
py
Python
tests/plugins/tool/docformatter_tool_plugin/valid_package/wrong.py
kogut/statick
6cbe43b5ac78275a12af3ac5aa325833368d0767
[ "CC0-1.0" ]
54
2018-08-27T19:12:41.000Z
2022-03-31T04:16:40.000Z
tests/plugins/tool/docformatter_tool_plugin/valid_package/wrong.py
gregtkogut/statick
11a8f950d50b52903a25f4f00c7cd52a90eff56c
[ "CC0-1.0" ]
288
2018-08-28T13:17:44.000Z
2022-03-21T20:05:19.000Z
tests/plugins/tool/docformatter_tool_plugin/valid_package/wrong.py
gregtkogut/statick
11a8f950d50b52903a25f4f00c7cd52a90eff56c
[ "CC0-1.0" ]
12
2018-08-28T13:18:39.000Z
2022-03-21T19:27:16.000Z
''' Docstring with single quotes instead of double quotes. ''' my_str = "not an int"
17
54
0.705882
0
0
0
0
0
0
0
0
74
0.870588
fa9c176b0c5c5750593310639cb938dd5d20b975
1,789
py
Python
src/tester.py
OompahLoompah/LinodeAPI-Client
6842b5cb461676a5ae363f242c972d8b157ea67e
[ "MIT" ]
null
null
null
src/tester.py
OompahLoompah/LinodeAPI-Client
6842b5cb461676a5ae363f242c972d8b157ea67e
[ "MIT" ]
null
null
null
src/tester.py
OompahLoompah/LinodeAPI-Client
6842b5cb461676a5ae363f242c972d8b157ea67e
[ "MIT" ]
null
null
null
from client import linodeClient import os linode = linodeClient(os.getcwd() + '/../.config') userInput = raw_input("What do you want to do?\n") if userInput == 'create': print(linode.createLinode('3', '1')) if userInput == 'destroy': userInput = raw_input("What do you want to destroy?\n") response = lin...
28.854839
75
0.643935
0
0
0
0
0
0
0
0
413
0.230855
fa9cd956e95a761dad517dc12fcf1239628e18a4
6,694
py
Python
base/migrations/0002_auto_20210622_1947.py
francofgp/Syndeo
888a1001f2cbb2ff8b7247e84a2899dcbd08af80
[ "MIT" ]
3
2022-01-04T17:38:04.000Z
2022-01-05T12:45:22.000Z
base/migrations/0002_auto_20210622_1947.py
francofgp/Syndeo
888a1001f2cbb2ff8b7247e84a2899dcbd08af80
[ "MIT" ]
null
null
null
base/migrations/0002_auto_20210622_1947.py
francofgp/Syndeo
888a1001f2cbb2ff8b7247e84a2899dcbd08af80
[ "MIT" ]
null
null
null
# Generated by Django 3.2.2 on 2021-06-22 22:47 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('base', '0001_initial'), ] operations = [ migrations.CreateModel( ...
42.100629
155
0.582313
6,535
0.976247
0
0
0
0
0
0
1,049
0.156707
fa9db8ff1e82424dabac6f76a1d2b7bc1e4f6ce5
327
py
Python
selection_sort.py
Wajktor13/Sorting_algorithms
e7de2dff189f899b467b1b24f7352bb236c5c651
[ "MIT" ]
null
null
null
selection_sort.py
Wajktor13/Sorting_algorithms
e7de2dff189f899b467b1b24f7352bb236c5c651
[ "MIT" ]
null
null
null
selection_sort.py
Wajktor13/Sorting_algorithms
e7de2dff189f899b467b1b24f7352bb236c5c651
[ "MIT" ]
null
null
null
def selection_sort(input_list): for i in range(len(input_list)): min_index = i for k in range(i, len(input_list)): if input_list[k] < input_list[min_index]: min_index = k input_list[i], input_list[min_index] = input_list[min_index], input_list[i] return inpu...
29.727273
83
0.623853
0
0
0
0
0
0
0
0
0
0
fa9ea7ecedd54d91de0696590347b0edb53b720e
163
py
Python
prefs.py
synap5e/pandora-station-to-spotify
d0c0caace016a35b56c4eae6593a47dad2a53205
[ "MIT" ]
1
2019-03-24T07:01:55.000Z
2019-03-24T07:01:55.000Z
prefs.py
synap5e/pandora-station-to-spotify
d0c0caace016a35b56c4eae6593a47dad2a53205
[ "MIT" ]
null
null
null
prefs.py
synap5e/pandora-station-to-spotify
d0c0caace016a35b56c4eae6593a47dad2a53205
[ "MIT" ]
null
null
null
username = 'user@example.com' password = 'hunter2' # larger = less change of delays if you skip a lot # smaller = more responsive to ups/downs queue_size = 2
27.166667
51
0.711656
0
0
0
0
0
0
0
0
119
0.730061
fa9fe5acc3c1efc2638d84976321625ca2613512
3,299
py
Python
src/scs_core/data/histogram.py
seoss/scs_core
0d4323c5697a39eb44a887f179ba5dca3716c1d2
[ "MIT" ]
null
null
null
src/scs_core/data/histogram.py
seoss/scs_core
0d4323c5697a39eb44a887f179ba5dca3716c1d2
[ "MIT" ]
null
null
null
src/scs_core/data/histogram.py
seoss/scs_core
0d4323c5697a39eb44a887f179ba5dca3716c1d2
[ "MIT" ]
null
null
null
""" Created on 9 Aug 2016 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) """ import _csv import sys # -------------------------------------------------------------------------------------------------------------------- class Histogram(object): """ classdocs """ __HEADER_BIN = ".bin" ...
24.992424
118
0.461352
3,062
0.92816
0
0
523
0.158533
0
0
1,044
0.31646