hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
6872e6802247502095c67e090c8829c461de73f4
6,773
py
Python
Sudoku/norvig_solver.py
ancientHacker/sudoku-generator
a1b395cef2cc699951e17e56fc699df83309d5e1
[ "MIT" ]
4
2020-03-29T20:10:52.000Z
2021-01-04T07:46:21.000Z
Sudoku/norvig_solver.py
ancientHacker/sudoku-generator
a1b395cef2cc699951e17e56fc699df83309d5e1
[ "MIT" ]
null
null
null
Sudoku/norvig_solver.py
ancientHacker/sudoku-generator
a1b395cef2cc699951e17e56fc699df83309d5e1
[ "MIT" ]
6
2019-07-05T14:54:42.000Z
2022-01-28T10:34:05.000Z
# MIT License # # Copyright (c) 2019 Daniel Brotsky # # Portions copyright (c) 2017 by Peter Norvig and Naoki Shibuya # (See https://towardsdatascience.com/peter-norvigs-sudoku-solver-25779bb349ce) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documen...
47.363636
104
0.630297
6873156e99d844af13d6d77379f2ea3cbcc2572b
1,442
py
Python
deserialize/decorators/default.py
KrzysztofSajko/deserialize
f9192cfc9913003c7362d0ae246e3475e78690d8
[ "MIT" ]
18
2019-06-27T12:08:36.000Z
2022-03-11T03:36:50.000Z
deserialize/decorators/default.py
KrzysztofSajko/deserialize
f9192cfc9913003c7362d0ae246e3475e78690d8
[ "MIT" ]
19
2019-01-05T16:52:28.000Z
2021-11-12T12:17:42.000Z
deserialize/decorators/default.py
KrzysztofSajko/deserialize
f9192cfc9913003c7362d0ae246e3475e78690d8
[ "MIT" ]
5
2019-06-26T13:41:44.000Z
2021-11-02T17:03:38.000Z
"""Decorators used for adding functionality to the library.""" from deserialize.exceptions import NoDefaultSpecifiedException def default(key_name, default_value): """A decorator function for mapping default values to key names.""" def store_defaults_map(class_reference): """Store the defaults map."...
30.680851
78
0.751734
68777c8ef19f2208020f8f076d6002af81ebebd7
3,608
py
Python
doc/source/notebooks/regression.py
codelover-without-talent/GPflow
1af7b1ca7da6687974150a1440d821a106b2159d
[ "Apache-2.0" ]
1
2018-08-22T06:34:59.000Z
2018-08-22T06:34:59.000Z
doc/source/notebooks/regression.py
codelover-without-talent/GPflow
1af7b1ca7da6687974150a1440d821a106b2159d
[ "Apache-2.0" ]
null
null
null
doc/source/notebooks/regression.py
codelover-without-talent/GPflow
1af7b1ca7da6687974150a1440d821a106b2159d
[ "Apache-2.0" ]
2
2019-03-09T11:46:11.000Z
2021-12-20T10:22:34.000Z
from matplotlib import pyplot as plt import gpflow import tensorflow as tf import os import numpy as np import cProfile # build a very simple data set: if __name__ == '__main__': runExperiments() #cProfile.run('runExperiments(plotting=False)')
29.818182
96
0.641075
6878add955a141a4910a16b4698b123a6f9a5ed7
29,160
py
Python
agnosia_tools/pointcloud.py
adurdin/agnosia-blender
addef1a0cb555c22186f7059b2da257fd74cc83d
[ "MIT" ]
null
null
null
agnosia_tools/pointcloud.py
adurdin/agnosia-blender
addef1a0cb555c22186f7059b2da257fd74cc83d
[ "MIT" ]
null
null
null
agnosia_tools/pointcloud.py
adurdin/agnosia-blender
addef1a0cb555c22186f7059b2da257fd74cc83d
[ "MIT" ]
null
null
null
import bpy import bmesh import base64 import math import mathutils import random import struct import zlib from array import array from itertools import islice from bpy.props import IntProperty, PointerProperty, StringProperty from bpy.types import Object, Operator, Panel, PropertyGroup from mathutils import Vector fr...
32.986425
117
0.5881
6878bc63f5a5d101c27062d6aecd9e1581e3ee6e
335
py
Python
database/__init__.py
eddycheong/skeleton-flask-sqlalchemy
117e4cac0bf4d912f9546e2aeac77bccc2b7e3c0
[ "MIT" ]
null
null
null
database/__init__.py
eddycheong/skeleton-flask-sqlalchemy
117e4cac0bf4d912f9546e2aeac77bccc2b7e3c0
[ "MIT" ]
null
null
null
database/__init__.py
eddycheong/skeleton-flask-sqlalchemy
117e4cac0bf4d912f9546e2aeac77bccc2b7e3c0
[ "MIT" ]
null
null
null
import configparser from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker config = configparser.ConfigParser() config.read('alembic.ini') connection_url = config['alembic']['sqlalchemy.url'] Engine = create_engine(connection_url, connect_args={'check_same_thread': False}) Session = sessionmaker...
27.916667
81
0.81194
6879269c1812f94d1e6cc9bd8f13c7d884e2c991
4,682
py
Python
wlauto/workloads/octaned8/__init__.py
joesavage/workload-automation
3a863fa14369d9bf1f20f82eb5ab4582499c6b99
[ "Apache-2.0" ]
5
2016-04-27T13:51:12.000Z
2016-06-23T12:38:14.000Z
wlauto/workloads/octaned8/__init__.py
joesavage/workload-automation
3a863fa14369d9bf1f20f82eb5ab4582499c6b99
[ "Apache-2.0" ]
110
2016-05-05T19:13:26.000Z
2017-01-20T16:18:02.000Z
wlauto/workloads/octaned8/__init__.py
joesavage/workload-automation
3a863fa14369d9bf1f20f82eb5ab4582499c6b99
[ "Apache-2.0" ]
1
2016-04-27T15:18:55.000Z
2016-04-27T15:18:55.000Z
# Copyright 2014-2016 ARM Limited # # 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 w...
40.362069
121
0.650577
6879a284797d76bfbb26fa832ed9b1a3cdbb362e
11,872
py
Python
mrplot/modules/design/variable_design.py
enzofabricio/mrplot
45e865241ea6ed7a4e524cbcbac54b75f2976696
[ "MIT" ]
null
null
null
mrplot/modules/design/variable_design.py
enzofabricio/mrplot
45e865241ea6ed7a4e524cbcbac54b75f2976696
[ "MIT" ]
null
null
null
mrplot/modules/design/variable_design.py
enzofabricio/mrplot
45e865241ea6ed7a4e524cbcbac54b75f2976696
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'variable_design.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets if __name__ == "__main__": import sys app = QtWidg...
54.962963
105
0.685057
687a1f3c513c197ca73d029ec4ca40557a75d7df
2,597
py
Python
4-2/TextMining/Class_/week7/LanguageModelWithN_gram.py
define16/Class
8b0771a348b2bcb19ba338ebff94326828a293ea
[ "Apache-2.0" ]
null
null
null
4-2/TextMining/Class_/week7/LanguageModelWithN_gram.py
define16/Class
8b0771a348b2bcb19ba338ebff94326828a293ea
[ "Apache-2.0" ]
null
null
null
4-2/TextMining/Class_/week7/LanguageModelWithN_gram.py
define16/Class
8b0771a348b2bcb19ba338ebff94326828a293ea
[ "Apache-2.0" ]
null
null
null
''' n-gram , n . ''' # Step 1 : Bag of Words from nltk.corpus import reuters from collections import Counter, defaultdict counts = Counter(reuters.words()) total_count = len(reuters.words()) # 20 print(counts.most_common(n=20)) # for word in counts: counts[word] /= float(total_count)...
23.609091
72
0.628032
687be2e6d6e71a7b227db867acdd0430e68a8454
1,977
py
Python
testing/composite.py
aheadley/pynemap
f2aa373e7c43755ce73c0a60110b609018cd2dcb
[ "MIT" ]
6
2015-10-15T08:28:19.000Z
2021-11-17T23:02:02.000Z
testing/composite.py
aheadley/pynemap
f2aa373e7c43755ce73c0a60110b609018cd2dcb
[ "MIT" ]
null
null
null
testing/composite.py
aheadley/pynemap
f2aa373e7c43755ce73c0a60110b609018cd2dcb
[ "MIT" ]
null
null
null
#!/usr/bin/python import numpy if __name__ == '__main__': a = (120,120,120,255) b = (117,176,73,255) c = (134,96,67,255) d = (38,92,255,100) e = (0,0,0,0) print overlay_pixel(a,e) print (a[0] * a[3]) / 255 + ((e[0] * e[3]) * (255 - a[3])) / 255 ** 2
35.303571
92
0.494689
687d1421e017adb345f125a4ddfc5d44f177f7ca
10,139
py
Python
util.py
tudat-team/webservices-dispatch-action
6ed60ab2046e8541c8e09e5a94bedc9673dcc4f9
[ "MIT" ]
null
null
null
util.py
tudat-team/webservices-dispatch-action
6ed60ab2046e8541c8e09e5a94bedc9673dcc4f9
[ "MIT" ]
null
null
null
util.py
tudat-team/webservices-dispatch-action
6ed60ab2046e8541c8e09e5a94bedc9673dcc4f9
[ "MIT" ]
null
null
null
import os import requests import urllib3.util.retry import logging import subprocess import re import pprint from datetime import datetime, timedelta import pygit2 from github import Github from github.GithubException import UnknownObjectException # Create logger with logging level set to all LOGGER = logging.getLogg...
34.604096
148
0.624223
687da6b0eb4b67490262b063fd83e99351f1851c
1,538
py
Python
ptxt/journal/models.py
mvasilkov/scrapheap
53e30b88879ab8e4d80867b0ec7fa631ce46e55e
[ "MIT" ]
2
2021-11-29T13:51:27.000Z
2021-12-12T14:59:42.000Z
ptxt/journal/models.py
mvasilkov/scrapheap
53e30b88879ab8e4d80867b0ec7fa631ce46e55e
[ "MIT" ]
null
null
null
ptxt/journal/models.py
mvasilkov/scrapheap
53e30b88879ab8e4d80867b0ec7fa631ce46e55e
[ "MIT" ]
null
null
null
from django.core.validators import MinLengthValidator from django.contrib.auth.models import User from django.contrib.auth.validators import UnicodeUsernameValidator from django.db import models from django.db.models.signals import pre_save from django.dispatch import receiver from django.utils.encoding import iri_to_u...
34.954545
94
0.755527
687e76240c6372225f7e38483f2cc12aea5247cb
611
py
Python
autocomplete/survey.py
converj/reasonSurvey
dd40784da4b07cfeb9fd873bab820d627cb026c1
[ "Apache-2.0" ]
null
null
null
autocomplete/survey.py
converj/reasonSurvey
dd40784da4b07cfeb9fd873bab820d627cb026c1
[ "Apache-2.0" ]
null
null
null
autocomplete/survey.py
converj/reasonSurvey
dd40784da4b07cfeb9fd873bab820d627cb026c1
[ "Apache-2.0" ]
null
null
null
# Import external modules. from google.appengine.ext import ndb import logging # Import local modules. from configAutocomplete import const as conf from constants import Constants
27.772727
77
0.747954
688059ffe96ee1e3cfd3aaf09375c53be6410286
50
py
Python
app/__init__.py
SLB974/GrandPyBot-dev
7a0268d4ffa58c37eed37253c6afb00874dbabe4
[ "MIT" ]
null
null
null
app/__init__.py
SLB974/GrandPyBot-dev
7a0268d4ffa58c37eed37253c6afb00874dbabe4
[ "MIT" ]
null
null
null
app/__init__.py
SLB974/GrandPyBot-dev
7a0268d4ffa58c37eed37253c6afb00874dbabe4
[ "MIT" ]
null
null
null
from flask import Flask from app.views import app
16.666667
25
0.82
6880d63fbc74e65ed6cf0cc2590cb8b33e1d322f
394
py
Python
wavenetlike/examples/analyzer_example.py
redwrasse/wavenetlike
ce15d58eafe03437ee485532ea3b43580e1895a9
[ "MIT" ]
null
null
null
wavenetlike/examples/analyzer_example.py
redwrasse/wavenetlike
ce15d58eafe03437ee485532ea3b43580e1895a9
[ "MIT" ]
17
2020-12-10T19:50:39.000Z
2021-07-29T03:19:42.000Z
wavenetlike/examples/analyzer_example.py
redwrasse/wavenetlike
ce15d58eafe03437ee485532ea3b43580e1895a9
[ "MIT" ]
null
null
null
from wavenetlike.analyzers import DatasetAnalyzer from wavenetlike.datasetid import TorchAudioDataSetId if __name__ == "__main__": analyzer_example()
26.266667
54
0.78934
688159bdf8610b835edab2ced8f2deeade5b818b
498
py
Python
accounts/models.py
asandeep/pseudo-electronics
2ce9f03a43c917448bfc340f8011eaf4bac159da
[ "MIT" ]
null
null
null
accounts/models.py
asandeep/pseudo-electronics
2ce9f03a43c917448bfc340f8011eaf4bac159da
[ "MIT" ]
null
null
null
accounts/models.py
asandeep/pseudo-electronics
2ce9f03a43c917448bfc340f8011eaf4bac159da
[ "MIT" ]
null
null
null
from django.contrib.auth import models as auth_models from django.db import models from django.urls import reverse
33.2
72
0.740964
688316b56cd53635e3fbd2f9611352d74bf1174a
3,623
py
Python
pytorch_trainmodel/pytorch_train.py
hoangcaobao/projectube-nlp
b0471b1626b241082eac3b7a30cacf54b9668375
[ "MIT" ]
5
2021-09-16T15:05:20.000Z
2022-02-04T00:39:12.000Z
pytorch_trainmodel/pytorch_train.py
hoangcaobao/projectube-sentiment-analysis
b0471b1626b241082eac3b7a30cacf54b9668375
[ "MIT" ]
null
null
null
pytorch_trainmodel/pytorch_train.py
hoangcaobao/projectube-sentiment-analysis
b0471b1626b241082eac3b7a30cacf54b9668375
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import torch import torch.nn as nn from pytorch_model import * from pytorch_clean import * from sklearn.metrics import classification_report from torch.optim import optimizer from transformers import AutoModel, AutoTokenizer from vncorenlp import VnCoreNLP from vncorenlp.vncorenlp...
29.696721
100
0.743031
68855b61bab7f85695a5b52312067872e87f33fd
295
py
Python
tests/basics/builtin_sorted.py
84KaliPleXon3/micropython-esp32
a64dc82742749cf4a4bbe5688dde05122fb38f56
[ "MIT" ]
1
2020-04-24T06:09:44.000Z
2020-04-24T06:09:44.000Z
tests/basics/builtin_sorted.py
84KaliPleXon3/micropython-esp32
a64dc82742749cf4a4bbe5688dde05122fb38f56
[ "MIT" ]
null
null
null
tests/basics/builtin_sorted.py
84KaliPleXon3/micropython-esp32
a64dc82742749cf4a4bbe5688dde05122fb38f56
[ "MIT" ]
null
null
null
# test builtin sorted try: sorted set except: import sys print("SKIP") sys.exit() print(sorted(set(range(100)))) print(sorted(set(range(100)), key=lambda x: x + 100*(x % 2))) # need to use keyword argument try: sorted([], None) except TypeError: print("TypeError")
16.388889
61
0.630508
6885709e154f6ae3d0952842e393c4c290d87e3b
643
py
Python
addons/mendeley/tests/test_serializer.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
628
2015-01-15T04:33:22.000Z
2022-03-30T06:40:10.000Z
addons/mendeley/tests/test_serializer.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
4,712
2015-01-02T01:41:53.000Z
2022-03-30T14:18:40.000Z
addons/mendeley/tests/test_serializer.py
Johnetordoff/osf.io
de10bf249c46cede04c78f7e6f7e352c69e6e6b5
[ "Apache-2.0" ]
371
2015-01-12T16:14:08.000Z
2022-03-31T18:58:29.000Z
# -*- coding: utf-8 -*- """Serializer tests for the Mendeley addon.""" import pytest from addons.base.tests.serializers import CitationAddonSerializerTestSuiteMixin from addons.base.tests.utils import MockFolder from addons.mendeley.tests.factories import MendeleyAccountFactory from addons.mendeley.serializer import M...
30.619048
81
0.819596
688600d6cad34394de4e5a48da1144fe75003447
465
py
Python
src/project/_tests/base.py
pviojo/boilerplate-flask-api
4e3832cc1a6979019311e01f60227ace0f2c3259
[ "MIT" ]
null
null
null
src/project/_tests/base.py
pviojo/boilerplate-flask-api
4e3832cc1a6979019311e01f60227ace0f2c3259
[ "MIT" ]
null
null
null
src/project/_tests/base.py
pviojo/boilerplate-flask-api
4e3832cc1a6979019311e01f60227ace0f2c3259
[ "MIT" ]
null
null
null
from app import run_migration from flask import current_app as app from flask_testing import TestCase from project import db
22.142857
63
0.692473
688701927338303df5deb153d6634d0b60ce9445
956
py
Python
models/three_layers_nn.py
erwanlecarpentier/optimistic-regressor
8daac40289b591b88aa0658c531df15c92792d23
[ "CC0-1.0" ]
null
null
null
models/three_layers_nn.py
erwanlecarpentier/optimistic-regressor
8daac40289b591b88aa0658c531df15c92792d23
[ "CC0-1.0" ]
null
null
null
models/three_layers_nn.py
erwanlecarpentier/optimistic-regressor
8daac40289b591b88aa0658c531df15c92792d23
[ "CC0-1.0" ]
null
null
null
""" N layers optimistic neural network """ import torch
28.969697
66
0.585774
68880d2a92cdd46241a4f5ad354ad532bcf2dac3
630
py
Python
helper/trap.py
shivaroast/AidenBot
6b6463d48baec55d5df707d31d0fd6f7ed77a345
[ "MIT" ]
null
null
null
helper/trap.py
shivaroast/AidenBot
6b6463d48baec55d5df707d31d0fd6f7ed77a345
[ "MIT" ]
null
null
null
helper/trap.py
shivaroast/AidenBot
6b6463d48baec55d5df707d31d0fd6f7ed77a345
[ "MIT" ]
null
null
null
''' ? (c) 2018 - laymonage ''' import os import random import requests from .dropson import dbx_dl, get_json def surprise(safe=False): ''' ? ''' cat_api = 'http://thecatapi.com/api/images/get' prev_url = requests.get(cat_api) prev_url = prev_url.url.replace('http://', 'https://') if safe...
21.724138
63
0.633333
68881d8d1f87bdfd089d83ddb17e5dd84d4f78de
11,019
py
Python
defaulter.py
tipabu/swift_defaulter
fd72f5652fd7ab766dcef73c41fcbfa9a6e0e368
[ "Apache-2.0" ]
4
2015-08-12T19:47:05.000Z
2017-08-25T06:04:27.000Z
defaulter.py
tipabu/swift_defaulter
fd72f5652fd7ab766dcef73c41fcbfa9a6e0e368
[ "Apache-2.0" ]
null
null
null
defaulter.py
tipabu/swift_defaulter
fd72f5652fd7ab766dcef73c41fcbfa9a6e0e368
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2016 Tim Burke # # 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 writin...
36.486755
79
0.63808
688966ef062d193a314e93a1d3dc28aa32628e39
42,873
py
Python
src/sage/coding/information_set_decoder.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/coding/information_set_decoder.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/coding/information_set_decoder.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
# -*- coding: utf-8 -*- r""" Information-set decoding for linear codes Information-set decoding is a probabilistic decoding strategy that essentially tries to guess `k` correct positions in the received word, where `k` is the dimension of the code. A codeword agreeing with the received word on the guessed position can...
42.197835
211
0.606746
6889889d0c9df269b34f5ffdec65275a1517a339
3,380
py
Python
satelitedl/__init__.py
RyosukeDTomita/satelite-dl
f205adb9f97b67b8375147f6c9320a6742e032b0
[ "MIT" ]
null
null
null
satelitedl/__init__.py
RyosukeDTomita/satelite-dl
f205adb9f97b67b8375147f6c9320a6742e032b0
[ "MIT" ]
null
null
null
satelitedl/__init__.py
RyosukeDTomita/satelite-dl
f205adb9f97b67b8375147f6c9320a6742e032b0
[ "MIT" ]
null
null
null
# coding: utf-8 """ Usage: python3 -m satelitedl --date 19900101 Authore: Ryosuke Tomita Date: 2021/11/02 """ import os from os.path import abspath, dirname, join from datetime import datetime from typing import Union from .options import parse_args from .scrapeimg import ScrapingImg def judge_date_type(date: str) ->...
25.413534
68
0.601479
688d68c26f6147245edb5881ed9bf81be6cc0b77
602
py
Python
ostrawling/event/particle.py
JacobRawling/OstrawlingMC
d87c12c8502a12c150ece0eac0fbe2c829062f6e
[ "MIT" ]
null
null
null
ostrawling/event/particle.py
JacobRawling/OstrawlingMC
d87c12c8502a12c150ece0eac0fbe2c829062f6e
[ "MIT" ]
null
null
null
ostrawling/event/particle.py
JacobRawling/OstrawlingMC
d87c12c8502a12c150ece0eac0fbe2c829062f6e
[ "MIT" ]
null
null
null
from .four_momentum import FourMomentum
24.08
54
0.528239
688e64a4f428342bad4484cacd07ec145d18e8f0
2,572
py
Python
src/icolos/core/workflow_steps/gromacs/genion.py
jharrymoore/Icolos
c60cc00c34208ab7011d41d52a74651763673e7a
[ "Apache-2.0" ]
null
null
null
src/icolos/core/workflow_steps/gromacs/genion.py
jharrymoore/Icolos
c60cc00c34208ab7011d41d52a74651763673e7a
[ "Apache-2.0" ]
null
null
null
src/icolos/core/workflow_steps/gromacs/genion.py
jharrymoore/Icolos
c60cc00c34208ab7011d41d52a74651763673e7a
[ "Apache-2.0" ]
null
null
null
from icolos.utils.enums.step_enums import StepBaseEnum, StepGromacsEnum from icolos.utils.enums.program_parameters import GromacsEnum from icolos.core.workflow_steps.gromacs.base import StepGromacsBase from icolos.utils.execute_external.gromacs import GromacsExecutor from pydantic import BaseModel from icolos.core.work...
36.742857
88
0.641524
688e6a6789ccea72d0b875d4cb59a3a4a8aed53b
6,811
py
Python
mayo/session/train.py
deep-fry/mayo
7211a11fdb9bb0a036d496a3eba16c96db122f89
[ "MIT" ]
110
2018-06-07T17:52:29.000Z
2022-03-28T08:04:02.000Z
mayo/session/train.py
kypomon/mayo
7211a11fdb9bb0a036d496a3eba16c96db122f89
[ "MIT" ]
6
2019-10-17T12:00:29.000Z
2021-10-21T13:41:22.000Z
mayo/session/train.py
kypomon/mayo
7211a11fdb9bb0a036d496a3eba16c96db122f89
[ "MIT" ]
22
2018-07-05T01:30:49.000Z
2021-10-19T06:15:40.000Z
import math import tensorflow as tf from mayo.log import log from mayo.util import ( Percent, memoize_method, memoize_property, object_from_params) from mayo.session.base import SessionBase
38.698864
79
0.616356
688f82d913086422926e43ef0486a06096928207
570
py
Python
lazysignup/utils.py
yoccodog/django-lazysignup
18d273b97083c8e2a21e54bf326f41c0b4e231fb
[ "BSD-3-Clause" ]
null
null
null
lazysignup/utils.py
yoccodog/django-lazysignup
18d273b97083c8e2a21e54bf326f41c0b4e231fb
[ "BSD-3-Clause" ]
null
null
null
lazysignup/utils.py
yoccodog/django-lazysignup
18d273b97083c8e2a21e54bf326f41c0b4e231fb
[ "BSD-3-Clause" ]
1
2018-06-22T13:07:34.000Z
2018-06-22T13:07:34.000Z
def is_lazy_user(user): """ Return True if the passed user is a lazy user. """ # Anonymous users are not lazy. if user.is_anonymous: return False # Check the user backend. If the lazy signup backend # authenticated them, then the user is lazy. backend = getattr(user, 'backend', None) ...
33.529412
63
0.685965
688fe87882b842c1041f5df8b971fea0174982fb
2,753
py
Python
md/obs-tntq_md2md.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
6
2015-07-27T21:50:39.000Z
2020-06-25T14:32:35.000Z
md/obs-tntq_md2md.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
89
2015-06-24T09:35:40.000Z
2022-02-13T14:40:31.000Z
md/obs-tntq_md2md.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
12
2015-07-13T17:31:04.000Z
2021-08-06T06:50:21.000Z
# -*- coding: utf-8 -*- # This script copies a directory of OBS-tQ or OBS-tN markdown files to a second location. # It cleans up the files in these ways: # Ensures blank lines surrounding markdown headers. # Fixes links of this form [[:en:...]] # Removes leading spaces. # Global variables source_dir = r'C:\DC...
34.848101
90
0.658918
688feb8d7e8fef2bae057b526cc5ad3bba5366d4
2,620
py
Python
hw10_conine/thomas.py
gconine88/MATH_6204
ecff4ecd3ae423c113d8259fe24b76b4a67de6ea
[ "MIT" ]
null
null
null
hw10_conine/thomas.py
gconine88/MATH_6204
ecff4ecd3ae423c113d8259fe24b76b4a67de6ea
[ "MIT" ]
null
null
null
hw10_conine/thomas.py
gconine88/MATH_6204
ecff4ecd3ae423c113d8259fe24b76b4a67de6ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Nov 20 23:06:49 2017 @author: Grant An implementation of the Thomas algorithm in Python, using just-in-time compiling from numba for additional speed """ import numpy as np from numba import njit, f8 def solve(A, d): '''Helper function for Thomas algorit...
30.465116
82
0.591603
68907c9f56a7dff7255659e5fac49a90b9c790a1
1,444
py
Python
chemreg/auth/tests/test_views.py
Chemical-Curation/chemcurator
bcd7fab84e407f06502e6873c38820724d4e54e7
[ "MIT" ]
1
2020-10-05T18:02:24.000Z
2020-10-05T18:02:24.000Z
chemreg/auth/tests/test_views.py
Chemical-Curation/chemcurator_django
bcd7fab84e407f06502e6873c38820724d4e54e7
[ "MIT" ]
207
2020-01-30T19:17:44.000Z
2021-02-24T19:45:29.000Z
chemreg/auth/tests/test_views.py
Chemical-Curation/chemcurator_django
bcd7fab84e407f06502e6873c38820724d4e54e7
[ "MIT" ]
null
null
null
from base64 import b64encode import pytest
32.088889
75
0.702216
68914268f5d91c6c327ee9480e17e743af2a3790
9,445
py
Python
vnpy/app/cta_strategy/strategies/tsmyo_polyfit_strategy.py
TheSuperMyo/vnpy
e38b7f4de879f1756aa664d5dfe7e0bec65c9a1b
[ "MIT" ]
null
null
null
vnpy/app/cta_strategy/strategies/tsmyo_polyfit_strategy.py
TheSuperMyo/vnpy
e38b7f4de879f1756aa664d5dfe7e0bec65c9a1b
[ "MIT" ]
null
null
null
vnpy/app/cta_strategy/strategies/tsmyo_polyfit_strategy.py
TheSuperMyo/vnpy
e38b7f4de879f1756aa664d5dfe7e0bec65c9a1b
[ "MIT" ]
null
null
null
from datetime import time from vnpy.app.cta_strategy import ( CtaTemplate, StopOrder, TickData, BarData, TradeData, OrderData, BarGenerator, ArrayManager ) from vnpy.app.cta_strategy.base import ( EngineType, STOPORDER_PREFIX, StopOrder, StopOrderStatus, ) from vnpy.app.c...
32.457045
138
0.565061
689273e3976328d8791057987bb0cd4e006aacad
4,757
py
Python
run.py
GpNico/KernelMethods_MVA_Kaggle
c6c083301977ca765557680f1e724a5d0322ef13
[ "MIT" ]
null
null
null
run.py
GpNico/KernelMethods_MVA_Kaggle
c6c083301977ca765557680f1e724a5d0322ef13
[ "MIT" ]
null
null
null
run.py
GpNico/KernelMethods_MVA_Kaggle
c6c083301977ca765557680f1e724a5d0322ef13
[ "MIT" ]
null
null
null
# run.py """ Script for running a specific pipeline from a given yaml config file """ import os import argparse import yaml from importlib import import_module import numpy as np import time import pandas as pd def import_from_path(path_to_module, obj_name = None): """ Import an object from a module based o...
35.766917
101
0.596384
689285cf22e54c3ba6df2bb206502e17fb240035
1,970
py
Python
alien_invasion.py
shtiyu/biubiubiu
ebb41a14d4fd14cfc2a27a01af755713e084c4b3
[ "MIT" ]
3
2018-11-22T11:31:47.000Z
2022-02-22T06:29:59.000Z
alien_invasion.py
shtiyu/biubiubiu
ebb41a14d4fd14cfc2a27a01af755713e084c4b3
[ "MIT" ]
null
null
null
alien_invasion.py
shtiyu/biubiubiu
ebb41a14d4fd14cfc2a27a01af755713e084c4b3
[ "MIT" ]
null
null
null
import pygame from pygame.sprite import Group from button import Button from game_stats import GameStats from settings import Settings from ship import Ship from scoreboard import Scoreboard import game_funcitons as gf run_game()
28.970588
128
0.664975
6892e2003fc1c2b7ef39326cbcdfaa61a234e1ef
185
py
Python
insights_messaging/downloaders/localfs.py
dpensi/insights-core-messaging
a964cecdf5cbb57407dae9e9208a31fc5e9318e4
[ "Apache-2.0" ]
6
2019-12-12T14:19:30.000Z
2020-04-08T16:20:04.000Z
insights_messaging/downloaders/localfs.py
dpensi/insights-core-messaging
a964cecdf5cbb57407dae9e9208a31fc5e9318e4
[ "Apache-2.0" ]
14
2020-01-27T17:04:39.000Z
2021-03-16T15:18:30.000Z
insights_messaging/downloaders/localfs.py
dpensi/insights-core-messaging
a964cecdf5cbb57407dae9e9208a31fc5e9318e4
[ "Apache-2.0" ]
13
2019-12-16T09:32:38.000Z
2021-05-05T12:39:38.000Z
import os from contextlib import contextmanager
18.5
56
0.686486
68943b195cd6c1b43741489cbceaa66e3ae51918
3,542
py
Python
tests/test_utilities/test_manifest_parser.py
QualiSystems/DevBox
9a1807006bc93727970068d586764e9dccda94ec
[ "Apache-1.1" ]
null
null
null
tests/test_utilities/test_manifest_parser.py
QualiSystems/DevBox
9a1807006bc93727970068d586764e9dccda94ec
[ "Apache-1.1" ]
null
null
null
tests/test_utilities/test_manifest_parser.py
QualiSystems/DevBox
9a1807006bc93727970068d586764e9dccda94ec
[ "Apache-1.1" ]
null
null
null
import os from pyfakefs import fake_filesystem_unittest from devbox.utilities.manifest_parser import ManifestParser
30.016949
100
0.593732
68960b586f20c8d621871e22f1d973112cd25522
2,140
py
Python
messages.py
Pyprohly/batch-bot
0163fa75d4b6b2408a7504429d1b8662b13dded9
[ "MIT" ]
null
null
null
messages.py
Pyprohly/batch-bot
0163fa75d4b6b2408a7504429d1b8662b13dded9
[ "MIT" ]
null
null
null
messages.py
Pyprohly/batch-bot
0163fa75d4b6b2408a7504429d1b8662b13dded9
[ "MIT" ]
null
null
null
from enum import Enum, auto from string import Template messages = MessageRegister()
27.792208
201
0.730841
6896c0545b2d4f8acba5f99caf7c1f5b8e3c596c
91
py
Python
siem_integrations/clx_query_service/clxquery/apps.py
mdemoret-nv/clx
3737706187d8f5720561e10b85cbd638c77b9267
[ "Apache-2.0" ]
143
2019-11-06T16:08:50.000Z
2022-03-22T12:14:59.000Z
siem_integrations/clx_query_service/clxquery/apps.py
mdemoret-nv/clx
3737706187d8f5720561e10b85cbd638c77b9267
[ "Apache-2.0" ]
361
2019-11-06T20:33:24.000Z
2022-03-31T19:59:12.000Z
siem_integrations/clx_query_service/clxquery/apps.py
mdemoret-nv/clx
3737706187d8f5720561e10b85cbd638c77b9267
[ "Apache-2.0" ]
82
2019-11-06T17:36:42.000Z
2022-03-17T07:03:04.000Z
from django.apps import AppConfig
15.166667
33
0.758242
6897023917e0a55a0e08c289c8451ac380c0fbaa
5,254
py
Python
tests/test_code_vasp.py
petavazohi/PyChemia
e779389418771c25c830aed360773c63bb069372
[ "MIT" ]
67
2015-01-31T07:44:55.000Z
2022-03-21T21:43:34.000Z
tests/test_code_vasp.py
petavazohi/PyChemia
e779389418771c25c830aed360773c63bb069372
[ "MIT" ]
13
2016-06-03T19:07:51.000Z
2022-03-31T04:20:40.000Z
tests/test_code_vasp.py
petavazohi/PyChemia
e779389418771c25c830aed360773c63bb069372
[ "MIT" ]
37
2015-01-22T15:37:23.000Z
2022-03-21T15:38:10.000Z
import os import shutil import pychemia import tempfile import unittest
39.208955
113
0.621622
6897d0617b652b4190982ab2f26f229b87c68973
7,048
py
Python
generateResources.py
shisi1/libVulpes
15ec3cab2cdea076cf777da811d783f58ec7f36f
[ "MIT" ]
null
null
null
generateResources.py
shisi1/libVulpes
15ec3cab2cdea076cf777da811d783f58ec7f36f
[ "MIT" ]
null
null
null
generateResources.py
shisi1/libVulpes
15ec3cab2cdea076cf777da811d783f58ec7f36f
[ "MIT" ]
2
2021-11-29T18:16:46.000Z
2021-12-16T16:35:59.000Z
import os materials = [Material("dilithium", 0xddcecb, ("DUST", "GEM")), Material("iron", 0xafafaf, ("SHEET", "STICK", "DUST", "PLATE")), Material("gold", 0xffff5d, ("DUST", "COIL", "PLATE")), Material("silicon", 0x2c2c2b, ("INGOT", "DUST", "BOULE", "NUGGET", "PLATE")), Material("copper", 0xd55e28, ("ORE", "COIL", "B...
41.458824
209
0.610528
68989bd20a742e1b1f652b4df8e618dc746273a5
89,471
py
Python
SOGM-3D-2D-Net/slam/dev_slam.py
liuxinren456852/Deep-Collison-Checker
1d96415fd865361e22a6f25547707c47628dcfbe
[ "MIT" ]
7
2021-09-09T15:03:36.000Z
2022-03-15T16:33:33.000Z
SOGM-3D-2D-Net/slam/dev_slam.py
liuxinren456852/Deep-Collison-Checker
1d96415fd865361e22a6f25547707c47628dcfbe
[ "MIT" ]
null
null
null
SOGM-3D-2D-Net/slam/dev_slam.py
liuxinren456852/Deep-Collison-Checker
1d96415fd865361e22a6f25547707c47628dcfbe
[ "MIT" ]
1
2021-09-10T01:46:50.000Z
2021-09-10T01:46:50.000Z
# # # 0=================================0 # | Kernel Point Convolutions | # 0=================================0 # # # ---------------------------------------------------------------------------------------------------------------------- # # Class handling SemanticKitti dataset. # ...
35.141791
121
0.499156
68998d2ad54cd9bef2834023dae463b6fbec5d90
1,128
py
Python
src/3-all_together/parse_vectors.py
bt3gl/Tool-NetClean_Complex_Networks_Data_Cleanser
312f4fe2a080b75550e353a55ebf5b03d4d9c9a1
[ "MIT" ]
5
2015-04-14T04:09:40.000Z
2018-05-18T21:57:21.000Z
src/3-all_together/parse_vectors.py
aquario-crypto/NetClean-Complex_Networks_Data_Cleanser
312f4fe2a080b75550e353a55ebf5b03d4d9c9a1
[ "MIT" ]
null
null
null
src/3-all_together/parse_vectors.py
aquario-crypto/NetClean-Complex_Networks_Data_Cleanser
312f4fe2a080b75550e353a55ebf5b03d4d9c9a1
[ "MIT" ]
4
2015-04-14T04:11:28.000Z
2019-07-12T03:47:30.000Z
#!/usr/bin/env python __author__ = "Mari Wahl" __copyright__ = "Copyright 2014, The Cogent Project" __credits__ = ["Mari Wahl"] __license__ = "GPL" __version__ = "2.0" __maintainer__ = "Mari Wahl" __email__ = "marina.w4hl@gmail.com" import os from constants import SUBFOLDERS, FEATURES if __name__ == '__m...
21.692308
61
0.625
6899ddd456696f5f8cbff28853c9ebc19f43f8ce
18,361
py
Python
monitoring/tests/unit/gapic/v3/test_service_monitoring_service_client_v3.py
q-logic/google-cloud-python
a65065c89c059bc564bbdd79288a48970907c399
[ "Apache-2.0" ]
null
null
null
monitoring/tests/unit/gapic/v3/test_service_monitoring_service_client_v3.py
q-logic/google-cloud-python
a65065c89c059bc564bbdd79288a48970907c399
[ "Apache-2.0" ]
40
2019-07-16T10:04:48.000Z
2020-01-20T09:04:59.000Z
monitoring/tests/unit/gapic/v3/test_service_monitoring_service_client_v3.py
q-logic/google-cloud-python
a65065c89c059bc564bbdd79288a48970907c399
[ "Apache-2.0" ]
2
2019-07-18T00:05:31.000Z
2019-11-27T14:17:22.000Z
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
38.093361
88
0.680954
689b058710ba7e2e873901967ce4945aab966125
294
py
Python
bin/ripple/util/Database.py
tdfischer/rippled
399c43cae6e90a428e9ce6a988123972b0f03c99
[ "BSL-1.0" ]
89
2015-04-23T20:24:58.000Z
2022-03-20T12:35:30.000Z
bin/ripple/util/Database.py
tdfischer/rippled
399c43cae6e90a428e9ce6a988123972b0f03c99
[ "BSL-1.0" ]
14
2020-05-25T15:42:18.000Z
2022-03-20T12:44:56.000Z
bin/ripple/util/Database.py
tdfischer/rippled
399c43cae6e90a428e9ce6a988123972b0f03c99
[ "BSL-1.0" ]
41
2015-01-19T05:26:34.000Z
2022-02-23T03:47:39.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import sqlite3
22.615385
82
0.697279
689c35abc62fa1170e0db4a74ec9011f9d0a466c
1,775
py
Python
backend/utils/__init__.py
szkkteam/agrosys
a390332202f7200632d2ff3816e1b0f3cc76f586
[ "MIT" ]
null
null
null
backend/utils/__init__.py
szkkteam/agrosys
a390332202f7200632d2ff3816e1b0f3cc76f586
[ "MIT" ]
null
null
null
backend/utils/__init__.py
szkkteam/agrosys
a390332202f7200632d2ff3816e1b0f3cc76f586
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Common Python library imports import re import unicodedata # Pip package imports from flask_sqlalchemy.model import camel_to_snake_case from flask import current_app from itsdangerous import URLSafeSerializer, BadData from loguru import logger # Internal package import...
27.307692
100
0.654085
689c565289e0ab67922c34bd175bd019c149cc51
3,028
py
Python
aadi/roi_heads.py
WanXiaopei/aadi
08a7399b3dcfab716cc7b80a88201fc47186ffd3
[ "MIT" ]
4
2021-06-01T02:46:21.000Z
2022-01-11T03:02:36.000Z
aadi/roi_heads.py
WanXiaopei/aadi
08a7399b3dcfab716cc7b80a88201fc47186ffd3
[ "MIT" ]
null
null
null
aadi/roi_heads.py
WanXiaopei/aadi
08a7399b3dcfab716cc7b80a88201fc47186ffd3
[ "MIT" ]
null
null
null
from typing import List import torch from detectron2.structures import ImageList, Boxes, Instances, pairwise_iou from detectron2.modeling.box_regression import Box2BoxTransform from detectron2.modeling.roi_heads import ROI_HEADS_REGISTRY, StandardROIHeads from detectron2.modeling.roi_heads.cascade_rcnn import CascadeR...
40.373333
88
0.674042
689ca4570dd678af10ee1eb645c837983c0d78c1
350
py
Python
TF/tensorflow--tutorial/tf.contrib.data.py
STHSF/DeepLearning
af91fced5af87f69915bb2674229d5f6461f553d
[ "MIT" ]
6
2016-09-13T05:50:05.000Z
2020-01-03T06:34:53.000Z
TF/tensorflow--tutorial/tf.contrib.data.py
STHSF/DeepLearning
af91fced5af87f69915bb2674229d5f6461f553d
[ "MIT" ]
null
null
null
TF/tensorflow--tutorial/tf.contrib.data.py
STHSF/DeepLearning
af91fced5af87f69915bb2674229d5f6461f553d
[ "MIT" ]
6
2016-09-28T02:55:35.000Z
2019-05-31T02:51:43.000Z
# coding=utf-8 # tensorflow tf.contrib.data api test import tensorflow as tf # file path filename = '' batch_size = 100 aa = (tf.contrib.data.TextLineDataset(filename) .map((lambda line: tf.decode_csv(line, record_defaults=[['1'], ['1'], ['1']], field_delim='\t'))) .shuffle(buffer_size=1000) .bat...
18.421053
103
0.651429
689cd75c21771ffe0186b10faeb2d7cc34833c06
1,333
py
Python
哥伦布(STM32F407)/4.拓展实验/3.音频播放/01-物理按键版/main.py
01studio-lab/MicroPython_Examples
f06a1bee398674ceafebed2aac88d8413cc8abad
[ "MIT" ]
73
2020-05-02T13:48:27.000Z
2022-03-26T13:15:10.000Z
哥伦布(STM32F407)/4.拓展实验/3.音频播放/01-物理按键版/main.py
01studio-lab/MicroPython_Examples
f06a1bee398674ceafebed2aac88d8413cc8abad
[ "MIT" ]
null
null
null
哥伦布(STM32F407)/4.拓展实验/3.音频播放/01-物理按键版/main.py
01studio-lab/MicroPython_Examples
f06a1bee398674ceafebed2aac88d8413cc8abad
[ "MIT" ]
50
2020-05-15T13:57:28.000Z
2022-03-30T14:03:33.000Z
''' v1.0 2020.12 01Studio MP3/WAV ''' # import audio,time from pyb import Switch from machine import Pin # wm=audio.WM8978() vol = 80 #80 ###################### # USR ###################### play_flag = 0 sw =Switch() sw.callback(music_play) ###################### # A0 ###################### VOL_U = Pin('A0',Pi...
15.147727
55
0.523631
689f3d8878428c818087147e65c24430b3c5c043
942
py
Python
mir_navigation/nodes/min_max_finder.py
xneomac/mir_robot
0041b41bb661d32a34c266d0535acf1c78cf61b9
[ "BSD-3-Clause" ]
3
2020-07-31T05:15:59.000Z
2020-11-30T03:49:43.000Z
mir_navigation/nodes/min_max_finder.py
xneomac/mir_robot
0041b41bb661d32a34c266d0535acf1c78cf61b9
[ "BSD-3-Clause" ]
null
null
null
mir_navigation/nodes/min_max_finder.py
xneomac/mir_robot
0041b41bb661d32a34c266d0535acf1c78cf61b9
[ "BSD-3-Clause" ]
9
2019-09-17T21:18:01.000Z
2021-04-21T11:28:24.000Z
#!/usr/bin/env python import rospy from nav_msgs.msg import Odometry lin_min = 0.0 lin_max = 0.0 ang_min = 0.0 ang_max = 0.0 if __name__ == '__main__': main()
26.166667
109
0.663482
68a03991604ba0d78b82b80d7e17b446d2af4cc2
5,076
py
Python
classes.py
cheng-zeng35/lyricsync
19a4dde9eee543b822a93f9ccf613252dc1ad067
[ "MIT" ]
null
null
null
classes.py
cheng-zeng35/lyricsync
19a4dde9eee543b822a93f9ccf613252dc1ad067
[ "MIT" ]
null
null
null
classes.py
cheng-zeng35/lyricsync
19a4dde9eee543b822a93f9ccf613252dc1ad067
[ "MIT" ]
null
null
null
# this file is to store all custom classes import tkinter as tk # class to store tkinter window properties # font: tk font dictionary {family, size, weight, slant, underline, overstrike} # font color: string # nrows: the number of rows of lyric displayed (integer greater than 0) # width: window width (int greater tha...
45.72973
120
0.656816
68a37f7b4dbe79a75b57e0f1d831de618aa2079e
563
py
Python
test/unit/unittest_utils/utility.py
tsungjui/fusionline
26d5d41e82ac83822ba41df1cd14c54afa112655
[ "CC-BY-3.0" ]
1
2019-11-03T11:45:43.000Z
2019-11-03T11:45:43.000Z
test/unit/unittest_utils/utility.py
tsungjui/fusionline
26d5d41e82ac83822ba41df1cd14c54afa112655
[ "CC-BY-3.0" ]
4
2017-05-24T19:36:34.000Z
2019-08-23T02:49:18.000Z
test/unit/unittest_utils/utility.py
abretaud/galaxy
1ad89511540e6800cd2d0da5d878c1c77d8ccfe9
[ "CC-BY-3.0" ]
null
null
null
""" Unit test utilities. """ import textwrap def clean_multiline_string( multiline_string, sep='\n' ): """ Dedent, split, remove first and last empty lines, rejoin. """ multiline_string = textwrap.dedent( multiline_string ) string_list = multiline_string.split( sep ) if not string_list[0]: ...
23.458333
61
0.641208
68a4b52bb7b1fdaa9592b0d8a5eb274cac1c955e
1,387
py
Python
tests/test_chunk_messages.py
UncleGoogle/galaxy-integrations-python-api
49ae2beab9cc48e55d7a5e90e39d43789fb823db
[ "MIT" ]
null
null
null
tests/test_chunk_messages.py
UncleGoogle/galaxy-integrations-python-api
49ae2beab9cc48e55d7a5e90e39d43789fb823db
[ "MIT" ]
null
null
null
tests/test_chunk_messages.py
UncleGoogle/galaxy-integrations-python-api
49ae2beab9cc48e55d7a5e90e39d43789fb823db
[ "MIT" ]
null
null
null
import asyncio import json
25.218182
83
0.522711
68a4f3241cf1bad984e99e344329235393aad6ba
2,731
py
Python
test/Crawler/Fs/Image/ImageCrawlerTest.py
paulondc/chilopoda
046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4
[ "MIT" ]
2
2019-09-24T18:56:27.000Z
2021-02-07T04:58:49.000Z
test/Crawler/Fs/Image/ImageCrawlerTest.py
paulondc/kombi
046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4
[ "MIT" ]
20
2019-02-16T04:21:13.000Z
2019-03-09T21:21:21.000Z
test/Crawler/Fs/Image/ImageCrawlerTest.py
paulondc/kombi
046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4
[ "MIT" ]
3
2019-11-15T05:16:32.000Z
2021-09-28T21:28:29.000Z
import os import unittest from ....BaseTestCase import BaseTestCase from kombi.Crawler import Crawler from kombi.Crawler.Fs.Image import ImageCrawler from kombi.Crawler.PathHolder import PathHolder if __name__ == "__main__": unittest.main()
36.905405
89
0.677774
68a865bda85a4ed7b4aebbb6e21920d35b0aaa7a
3,688
py
Python
test/test_websocket_server.py
markkorput/pyRemoteParams
b96cc3d694f5715af40cf71865e7c2f550897a81
[ "MIT" ]
null
null
null
test/test_websocket_server.py
markkorput/pyRemoteParams
b96cc3d694f5715af40cf71865e7c2f550897a81
[ "MIT" ]
2
2020-03-13T07:14:36.000Z
2020-05-22T09:54:08.000Z
test/test_websocket_server.py
markkorput/pyRemoteParams
b96cc3d694f5715af40cf71865e7c2f550897a81
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest, asyncio, asynctest, websockets, json from remote_params import HttpServer, Params, Server, Remote, create_sync_params, schema_list from remote_params.WebsocketServer import WebsocketServer # run just the tests in this file if __name__ == '__main__': unittest.main()
31.521368
94
0.699024
68a90bb15946847753f138179d4f2bda0c5abd53
3,592
py
Python
analyzer/com_classfiction.py
mt-group-1/social-react
8b3b75b08c595c99ab61da3c76b4916a524f75b0
[ "MIT" ]
null
null
null
analyzer/com_classfiction.py
mt-group-1/social-react
8b3b75b08c595c99ab61da3c76b4916a524f75b0
[ "MIT" ]
4
2021-11-08T20:48:42.000Z
2021-11-11T21:38:16.000Z
analyzer/com_classfiction.py
mt-group-1/social-react
8b3b75b08c595c99ab61da3c76b4916a524f75b0
[ "MIT" ]
null
null
null
import warnings import pandas as pd from nltk.sentiment.vader import SentimentIntensityAnalyzer warnings.filterwarnings("ignore") def classify_comments(text_file, page_name): """ Description: This function recives a text file and convert it into csv file to enable to label the comments inside that file, ...
32.654545
249
0.584633
68aaa854df265e745f3f5094661f5862c8bd4125
846
py
Python
tests/test_android_here.py
b3b/pythonhere
edd45b4f5087d63e1bf265ec6a7c6ade23580de3
[ "MIT" ]
2
2021-01-06T19:38:25.000Z
2022-01-25T10:00:20.000Z
tests/test_android_here.py
b3b/pythonhere
edd45b4f5087d63e1bf265ec6a7c6ade23580de3
[ "MIT" ]
1
2021-01-04T10:44:12.000Z
2021-01-04T10:44:12.000Z
tests/test_android_here.py
b3b/pythonhere
edd45b4f5087d63e1bf265ec6a7c6ade23580de3
[ "MIT" ]
null
null
null
import pytest
32.538462
93
0.795508
68aff5ecfb731da2cc7a3de58df5147f26f41df7
346
py
Python
Example/facenet_example.py
generalized-intelligence/Tegu
99394f62f2acdeed9e985685811e76f94ab7ac11
[ "BSD-3-Clause" ]
11
2019-01-29T07:01:38.000Z
2021-07-28T06:25:49.000Z
Example/facenet_example.py
generalized-intelligence/Tegu
99394f62f2acdeed9e985685811e76f94ab7ac11
[ "BSD-3-Clause" ]
23
2019-02-18T13:35:09.000Z
2022-03-11T23:42:11.000Z
Example/facenet_example.py
generalized-intelligence/Tegu
99394f62f2acdeed9e985685811e76f94ab7ac11
[ "BSD-3-Clause" ]
3
2019-02-12T08:09:45.000Z
2019-06-06T02:28:55.000Z
import sys sys.path.append('..') from Network.facenet.API import build_face_manager, detetion_and_recongnize ''' You have to build face manager before you start detection and recongnize. ''' face_manager = build_face_manager(r"face/dataset/path") result = detetion_and_recongnize(face_manager, r"images/path/you/want/...
28.833333
81
0.794798
68b43353f299ef2ed5654c73d7e6db582ed331bb
132
py
Python
src/clarityv2/homepage/urls.py
Clarity-89/clarityv2
7c4af765c5473778fc0750d1505f8b5f1724e5c5
[ "MIT" ]
null
null
null
src/clarityv2/homepage/urls.py
Clarity-89/clarityv2
7c4af765c5473778fc0750d1505f8b5f1724e5c5
[ "MIT" ]
1
2022-03-11T23:38:16.000Z
2022-03-11T23:38:16.000Z
src/clarityv2/homepage/urls.py
Clarity-89/clarityv2
7c4af765c5473778fc0750d1505f8b5f1724e5c5
[ "MIT" ]
null
null
null
from django.urls import path from .views import HomepageView urlpatterns = [ path('', HomepageView.as_view(), name='home'), ]
16.5
50
0.704545
68b51c475fa96363f2601bbdb5efa8957c5f2363
5,394
py
Python
kolibri/plugins/utils/options.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
545
2016-01-19T19:26:55.000Z
2022-03-20T00:13:04.000Z
kolibri/plugins/utils/options.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
8,329
2016-01-19T19:32:02.000Z
2022-03-31T21:23:12.000Z
kolibri/plugins/utils/options.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
493
2016-01-19T19:26:48.000Z
2022-03-28T14:35:05.000Z
import copy import logging import warnings from kolibri.plugins.registry import registered_plugins logger = logging.getLogger(__name__)
40.253731
119
0.616982
68b5318b5c1be79ea4655397f748e0742a2d9190
2,909
py
Python
utils.py
yzhhome/seq2seq_chatbot
2dd135da0d390c19b48cd72dfe19d6b32f698e03
[ "MIT" ]
null
null
null
utils.py
yzhhome/seq2seq_chatbot
2dd135da0d390c19b48cd72dfe19d6b32f698e03
[ "MIT" ]
null
null
null
utils.py
yzhhome/seq2seq_chatbot
2dd135da0d390c19b48cd72dfe19d6b32f698e03
[ "MIT" ]
null
null
null
from io import open import time import math import torch import torch.nn.functional as F from config import MAX_LENGTH from config import SOS_token from config import EOS_token from config import device #index #tensor #index
28.80198
77
0.644208
68b5fc5d2f892e35cab73d5c07f10d1ff89a7241
1,941
py
Python
src/archive-comments-lambda/main.py
knotsrepus/knotsrepus-archiver
68384f24c6b8c3a45c39ac9720e10c26c1512279
[ "Apache-2.0" ]
1
2021-07-17T07:56:46.000Z
2021-07-17T07:56:46.000Z
src/archive-comments-lambda/main.py
knotsrepus/knotsrepus-archiver
68384f24c6b8c3a45c39ac9720e10c26c1512279
[ "Apache-2.0" ]
null
null
null
src/archive-comments-lambda/main.py
knotsrepus/knotsrepus-archiver
68384f24c6b8c3a45c39ac9720e10c26c1512279
[ "Apache-2.0" ]
null
null
null
import asyncio import json import os from datetime import datetime from src.common import log_utils, pushshift from src.common.filesystem import S3FileSystem, StubFileSystem from src.common.lambda_context import local_lambda_invocation if __name__ == "__main__": with open("event.json", "r") as file: ...
26.958333
97
0.703246
68b67bfa73f83b95f8183d1aa57786bce152b7a4
11,578
py
Python
cpc/criterion/clustering/clustering_quantization.py
anuragkumar95/CPC_audio
c771d07bb1cac4df947496813a4d07fd95e53f7f
[ "MIT" ]
6
2021-04-27T06:19:15.000Z
2021-11-04T20:22:46.000Z
cpc/criterion/clustering/clustering_quantization.py
anuragkumar95/CPC_audio
c771d07bb1cac4df947496813a4d07fd95e53f7f
[ "MIT" ]
7
2021-02-05T11:40:54.000Z
2021-04-06T12:45:54.000Z
cpc/criterion/clustering/clustering_quantization.py
anuragkumar95/CPC_audio
c771d07bb1cac4df947496813a4d07fd95e53f7f
[ "MIT" ]
5
2021-04-29T06:45:00.000Z
2021-11-23T19:51:02.000Z
import os import sys import json import argparse import progressbar from pathlib import Path from random import shuffle from time import time import torch from cpc.dataset import findAllSeqs from cpc.feature_loader import buildFeature, FeatureModule, loadModel, buildFeature_batch from cpc.criterion.clustering import kM...
43.040892
139
0.608568
d799c19014a1b79f5fe8a1069ce05224e3482da3
1,591
py
Python
workflows/pipe-common/pipeline/autoscaling/cloudprovider.py
NShaforostov/cloud-pipeline
8d25b2b5f4838be569d9c25a307b77df5b0e73fc
[ "Apache-2.0" ]
null
null
null
workflows/pipe-common/pipeline/autoscaling/cloudprovider.py
NShaforostov/cloud-pipeline
8d25b2b5f4838be569d9c25a307b77df5b0e73fc
[ "Apache-2.0" ]
378
2021-03-25T20:09:54.000Z
2021-10-01T01:02:39.000Z
workflows/pipe-common/pipeline/autoscaling/cloudprovider.py
NShaforostov/cloud-pipeline
8d25b2b5f4838be569d9c25a307b77df5b0e73fc
[ "Apache-2.0" ]
2
2019-08-09T18:04:54.000Z
2019-08-11T19:03:06.000Z
# Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/) # # 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 appli...
32.469388
125
0.715273
d79a0e50ffc39bcabbef42ae425c1e746935ff84
4,140
py
Python
setup.py
gokceneraslan/ProDy
74d40c372c53bd68f5e9f9c47b991b2e2b1b9f27
[ "NCSA" ]
null
null
null
setup.py
gokceneraslan/ProDy
74d40c372c53bd68f5e9f9c47b991b2e2b1b9f27
[ "NCSA" ]
null
null
null
setup.py
gokceneraslan/ProDy
74d40c372c53bd68f5e9f9c47b991b2e2b1b9f27
[ "NCSA" ]
null
null
null
import glob import os import os.path import sys import shutil import cPickle from types import StringType, UnicodeType from distutils.core import setup from distutils.extension import Extension from distutils.command.install import install PY3K = sys.version_info[0] > 2 with open('README.rst') as inp: long_descr...
35.689655
79
0.587923
d79a69ca5970bcc43c73bbe72a7d4bd0d0841c39
491
py
Python
rabbitai/migrations/versions/d7c1a0d6f2da_remove_limit_used_from_query_model.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/migrations/versions/d7c1a0d6f2da_remove_limit_used_from_query_model.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/migrations/versions/d7c1a0d6f2da_remove_limit_used_from_query_model.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
1
2021-07-09T16:29:50.000Z
2021-07-09T16:29:50.000Z
"""Remove limit used from query model Revision ID: d7c1a0d6f2da Revises: afc69274c25a Create Date: 2019-06-04 10:12:36.675369 """ # revision identifiers, used by Alembic. revision = "d7c1a0d6f2da" down_revision = "afc69274c25a" import sqlalchemy as sa from alembic import op
20.458333
80
0.735234
d79a6a449f7e90756102071f66e54f7f316037df
13,393
py
Python
realworld_benchmark/nets/eig_layer.py
DomInvivo/pna
1a7d8ae645d093ebedeffcf148a98f6061957a23
[ "MIT" ]
null
null
null
realworld_benchmark/nets/eig_layer.py
DomInvivo/pna
1a7d8ae645d093ebedeffcf148a98f6061957a23
[ "MIT" ]
null
null
null
realworld_benchmark/nets/eig_layer.py
DomInvivo/pna
1a7d8ae645d093ebedeffcf148a98f6061957a23
[ "MIT" ]
2
2020-11-05T15:34:23.000Z
2020-12-17T17:44:48.000Z
EPS = 1e-5 import threading import torch import torch.nn as nn import torch.nn.functional as F from .aggregators import AGGREGATORS from .layers import MLP, FCLayer from .scalers import SCALERS def __repr__(self): return '{}(in_channels={}, out_channels={})'.format(self.__class__.__name__, self.in_d...
37.099723
199
0.605615
d79aca613972336652669e46aaf23dbcf659d8b3
3,553
py
Python
NLPEngine/utils/nlp_config.py
hmi-digital/bot_platform
91a26e566b07fa309774d0333a6bccf3d64cccc5
[ "MIT" ]
null
null
null
NLPEngine/utils/nlp_config.py
hmi-digital/bot_platform
91a26e566b07fa309774d0333a6bccf3d64cccc5
[ "MIT" ]
null
null
null
NLPEngine/utils/nlp_config.py
hmi-digital/bot_platform
91a26e566b07fa309774d0333a6bccf3d64cccc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import json import hashlib from warnings import simplefilter from utils import log_util # ignore all warnings simplefilter(action='ignore') ##Global parameters scriptDir = os.path.dirname(__file__) dataPath = os.path.join(scriptDir, '..', 'training_data', 'intents') propertyFile =...
28.653226
102
0.633268
d79b4bcbf6a110684a6330158716bc8642e8c218
641
py
Python
flow/core/gcp_credentials.py
hwknsj/synergy_flow
aba8f57b2cbeeb0368a64eaa7e5369fcef0a3136
[ "BSD-3-Clause" ]
null
null
null
flow/core/gcp_credentials.py
hwknsj/synergy_flow
aba8f57b2cbeeb0368a64eaa7e5369fcef0a3136
[ "BSD-3-Clause" ]
1
2016-10-03T18:48:15.000Z
2019-11-01T21:53:30.000Z
flow/core/gcp_credentials.py
hwknsj/synergy_flow
aba8f57b2cbeeb0368a64eaa7e5369fcef0a3136
[ "BSD-3-Clause" ]
1
2019-11-02T00:45:26.000Z
2019-11-02T00:45:26.000Z
import io import json from google.auth import compute_engine from google.oauth2 import service_account
35.611111
93
0.75195
d79b6b0b33508785a7ea10e66bc23630bb1ac265
4,218
py
Python
main.py
tremor6916/sakugabooru-bot
c9e226699e97201dfa1937638adfd30f70d8cbf9
[ "MIT" ]
1
2021-08-16T14:47:19.000Z
2021-08-16T14:47:19.000Z
main.py
tremor6916/sakugabooru-bot
c9e226699e97201dfa1937638adfd30f70d8cbf9
[ "MIT" ]
2
2021-08-12T13:18:50.000Z
2021-08-14T07:01:28.000Z
main.py
tremor6916/sakugabooru-bot
c9e226699e97201dfa1937638adfd30f70d8cbf9
[ "MIT" ]
null
null
null
import requests import tweepy import random import time import os import bs4 from bs4 import BeautifulSoup from pybooru import Moebooru siteurl='https://www.sakugabooru.com/post/show/' header = {'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/53...
35.745763
170
0.628497
d79bfd3dab6cfcc04ef37c5a0243968c7e22addb
491
py
Python
demos/template/src/urls.py
akornatskyy/wheezy.web
417834db697cf1f78f3a60cc880b9fd25d40c6de
[ "MIT" ]
17
2020-08-29T18:45:51.000Z
2022-03-02T19:37:13.000Z
demos/template/src/urls.py
akornatskyy/wheezy.web
417834db697cf1f78f3a60cc880b9fd25d40c6de
[ "MIT" ]
29
2020-07-18T04:34:03.000Z
2021-07-06T09:42:36.000Z
demos/template/src/urls.py
akornatskyy/wheezy.web
417834db697cf1f78f3a60cc880b9fd25d40c6de
[ "MIT" ]
1
2022-03-14T08:41:42.000Z
2022-03-14T08:41:42.000Z
""" """ from membership.web.urls import membership_urls from public.web.urls import error_urls, public_urls, static_urls from public.web.views import home from wheezy.routing import url locale_pattern = "{locale:(en|ru)}/" locale_defaults = {"locale": "en"} locale_urls = public_urls + membership_urls locale_urls.app...
25.842105
64
0.747454
d79c181f52cc059ca3916a4f670fd6822c3c776d
5,571
py
Python
olmm.py
wesselb/olmm
367d69a4a646083d6b3f6ffd1963aeb2b7816ef9
[ "MIT" ]
2
2020-09-01T17:09:23.000Z
2021-08-21T12:19:19.000Z
olmm.py
wesselb/olmm
367d69a4a646083d6b3f6ffd1963aeb2b7816ef9
[ "MIT" ]
null
null
null
olmm.py
wesselb/olmm
367d69a4a646083d6b3f6ffd1963aeb2b7816ef9
[ "MIT" ]
2
2019-11-04T17:38:43.000Z
2021-08-21T12:19:20.000Z
from stheno import ( B, # Linear algebra backend Graph, # Graph that keep track of the graphical model GP, # Gaussian process EQ, # Squared-exponential kernel Matern12, # Matern-1/2 kernel Matern52, # Matern-5/2 kernel Delta, # Noise kernel Normal, # Gaussian distribution Dia...
32.578947
76
0.605277
d79c63266fd7ef84a044820de7a71feb3ff446ff
1,995
py
Python
tests/molecular/molecules/utilities/building_block.py
andrewtarzia/stk
1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a
[ "MIT" ]
21
2018-04-12T16:25:24.000Z
2022-02-14T23:05:43.000Z
tests/molecular/molecules/utilities/building_block.py
JelfsMaterialsGroup/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
8
2019-03-19T12:36:36.000Z
2020-11-11T12:46:00.000Z
tests/molecular/molecules/utilities/building_block.py
supramolecular-toolkit/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
5
2018-08-07T13:00:16.000Z
2021-11-01T00:55:10.000Z
import itertools as it from tests.utilities import ( is_equivalent_atom, is_equivalent_molecule, )
28.913043
69
0.736341
d79c6838f09a05f79a094ede5cbcfc88762b1778
36
py
Python
pydeps/__main__.py
miketheman/pydeps
907a1a29cc0e04ad3698a812082775ccf39b6479
[ "BSD-2-Clause" ]
981
2015-07-08T15:55:30.000Z
2022-03-31T08:53:30.000Z
pydeps/__main__.py
miketheman/pydeps
907a1a29cc0e04ad3698a812082775ccf39b6479
[ "BSD-2-Clause" ]
129
2016-09-03T16:51:52.000Z
2022-03-19T23:07:50.000Z
pydeps/__main__.py
miketheman/pydeps
907a1a29cc0e04ad3698a812082775ccf39b6479
[ "BSD-2-Clause" ]
88
2015-03-24T03:25:54.000Z
2022-03-24T07:35:02.000Z
from .pydeps import pydeps pydeps()
12
26
0.777778
d79dec81c3204981b242083307d7250e99c10afb
271
py
Python
fileInfo.py
Jiaoma/fileStr
f400f607c7ab6923b36ffdda4e6eccdbc12c32cd
[ "MIT" ]
null
null
null
fileInfo.py
Jiaoma/fileStr
f400f607c7ab6923b36ffdda4e6eccdbc12c32cd
[ "MIT" ]
null
null
null
fileInfo.py
Jiaoma/fileStr
f400f607c7ab6923b36ffdda4e6eccdbc12c32cd
[ "MIT" ]
null
null
null
from os import listdir from os.path import join import os, errno
19.357143
38
0.649446
d79e215cb8f499e47e5107fabf650f63a2a2ff52
305
py
Python
text-classify/test.py
ubear/MachineLearn
c24947f7078269f51bf7ee0d2167ca6b71152d1e
[ "MIT" ]
null
null
null
text-classify/test.py
ubear/MachineLearn
c24947f7078269f51bf7ee0d2167ca6b71152d1e
[ "MIT" ]
null
null
null
text-classify/test.py
ubear/MachineLearn
c24947f7078269f51bf7ee0d2167ca6b71152d1e
[ "MIT" ]
null
null
null
#coding:utf-8 import re import math from docclass import Classifier if __name__ == "__main__": test_infc_func()
15.25
36
0.629508
d79e31449a493b9c8402aeee5862015258d4756b
8,560
py
Python
libs/hermes/hermes.cloudbreak/hermes/cloudbreak/kubernetes/base.py
KAGRA-TW-ML/gw-iaas
3f4ff0fef16d39b75615b80fedf106a8dd4f846d
[ "MIT" ]
2
2021-12-21T22:34:30.000Z
2021-12-22T01:26:57.000Z
libs/hermes/hermes.cloudbreak/hermes/cloudbreak/kubernetes/base.py
KAGRA-TW-ML/gw-iaas
3f4ff0fef16d39b75615b80fedf106a8dd4f846d
[ "MIT" ]
3
2021-11-09T21:38:26.000Z
2022-02-26T20:44:31.000Z
libs/hermes/hermes.cloudbreak/hermes/cloudbreak/kubernetes/base.py
KAGRA-TW-ML/gw-iaas
3f4ff0fef16d39b75615b80fedf106a8dd4f846d
[ "MIT" ]
3
2021-08-07T17:19:10.000Z
2022-02-11T02:00:38.000Z
import abc import time from dataclasses import dataclass from functools import partial from typing import TYPE_CHECKING import kubernetes from kubernetes.utils.create_from_yaml import FailToCreateError from urllib3.exceptions import MaxRetryError from hermes.cloudbreak.utils import snakeify, wait_for if TYPE_CHECKIN...
30.140845
79
0.573248
d79fcf121072d7dc68656d391c409e397c811e06
333
py
Python
src/chapter2/exercise7.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
src/chapter2/exercise7.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
src/chapter2/exercise7.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
c = float(input("Enter Amount Between 0-99 :")) print(c // 20, "Twenties") c = c % 20 print(c // 10, "Tens") c = c % 10 print(c // 5, "Fives") c = c % 5 print(c // 1, "Ones") c = c % 1 print(c // 0.25, "Quarters") c = c % 0.25 print(c // 0.1, "Dimes") c = c % 0.1 print(c // 0.05, "Nickles") c = c % 0.05 print(c // 0.01...
19.588235
47
0.51952
d7a074b6e62790e1749e72555067425bbae6f923
4,772
py
Python
gmn/src/d1_gmn/tests/test_content_disposition.py
DataONEorg/d1_python
dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb
[ "Apache-2.0" ]
15
2016-10-28T13:56:52.000Z
2022-01-31T19:07:49.000Z
gmn/src/d1_gmn/tests/test_content_disposition.py
DataONEorg/d1_python
dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb
[ "Apache-2.0" ]
56
2017-03-16T03:52:32.000Z
2022-03-12T01:05:28.000Z
gmn/src/d1_gmn/tests/test_content_disposition.py
DataONEorg/d1_python
dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb
[ "Apache-2.0" ]
11
2016-05-31T16:22:02.000Z
2020-10-05T14:37:10.000Z
#!/usr/bin/env python # This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2019 DataONE # # Licensed under the Apache License, Version 2.0 (t...
35.61194
86
0.667854
d7a429ba73c168c4f1bfd1cea778f28be08cf20c
2,159
py
Python
tests/test_models/test_ner_model.py
xyzhu8/mmocr
f62b4513f5411bde9f24e1902b1cb1945340022a
[ "Apache-2.0" ]
null
null
null
tests/test_models/test_ner_model.py
xyzhu8/mmocr
f62b4513f5411bde9f24e1902b1cb1945340022a
[ "Apache-2.0" ]
null
null
null
tests/test_models/test_ner_model.py
xyzhu8/mmocr
f62b4513f5411bde9f24e1902b1cb1945340022a
[ "Apache-2.0" ]
null
null
null
import copy import os.path as osp import tempfile import pytest import torch from mmocr.models import build_detector def _get_config_module(fname): """Load a configuration as a python module.""" from mmcv import Config config_mod = Config.fromfile(fname) return config_mod def _get_detector_cfg(fn...
27.679487
78
0.673923
d7a7ff3bd6f840a0858a02d02a7395eeedc612d9
3,333
py
Python
recohut/models/layers/graph.py
sparsh-ai/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
null
null
null
recohut/models/layers/graph.py
sparsh-ai/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
1
2022-01-12T05:40:57.000Z
2022-01-12T05:40:57.000Z
recohut/models/layers/graph.py
RecoHut-Projects/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/models/layers/models.layers.graph.ipynb (unless otherwise specified). __all__ = ['FiGNN_Layer', 'GraphLayer'] # Cell import torch import torch.nn as nn import torch.nn.functional as F from itertools import product # Cell # Cell
40.646341
117
0.610561
d7a8eecbc304f83f8cc307ef1ff32ce4d5ad23c6
20,638
py
Python
euchre.py
duck57/euchre.py
838ef7b3bdd9e3bb6af6edce532300b004a4f1a4
[ "0BSD" ]
1
2020-03-26T00:00:18.000Z
2020-03-26T00:00:18.000Z
euchre.py
duck57/euchre.py
838ef7b3bdd9e3bb6af6edce532300b004a4f1a4
[ "0BSD" ]
null
null
null
euchre.py
duck57/euchre.py
838ef7b3bdd9e3bb6af6edce532300b004a4f1a4
[ "0BSD" ]
null
null
null
#!venv/bin/python # coding=UTF-8 # -*- coding: UTF-8 -*- # vim: set fileencoding=UTF-8 : """ Double-deck bid euchre Implementation is similar to the rules given by Craig Powers https://www.pagat.com/euchre/bideuch.html Notable differences (to match how I learned in high school calculus) include: * Minimum bid o...
34.168874
93
0.537358
d7a9af578243dd70e67e5e691e31327e0ed63c8d
3,908
py
Python
src/consumer/catalog-search/swagger_server/models/error_response.py
CADDE-sip/connector
233b63df334dea67c05d379e925ebb7cc15f4b4d
[ "MIT" ]
1
2022-03-29T05:44:47.000Z
2022-03-29T05:44:47.000Z
src/provider/provenance-management/swagger_server/models/error_response.py
CADDE-sip/connector
233b63df334dea67c05d379e925ebb7cc15f4b4d
[ "MIT" ]
null
null
null
src/provider/provenance-management/swagger_server/models/error_response.py
CADDE-sip/connector
233b63df334dea67c05d379e925ebb7cc15f4b4d
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util
25.376623
116
0.570368
d7aa0f6c9b402105d7439f34f24ee84832389102
1,534
py
Python
dh_example.py
afakharany93/DH_Matrix_Python
97e29d5b14511f68884a89852d014b010aa4e0f2
[ "MIT" ]
null
null
null
dh_example.py
afakharany93/DH_Matrix_Python
97e29d5b14511f68884a89852d014b010aa4e0f2
[ "MIT" ]
null
null
null
dh_example.py
afakharany93/DH_Matrix_Python
97e29d5b14511f68884a89852d014b010aa4e0f2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from dh import dh_solver #from IPython.display import Latex import sympy from sympy import Symbol import numpy as np #create an object mtb = dh_solver() # ## adding the dh paramters # just use obj.add() method to add a set of dh paramters in the kinematic chain, the first o...
25.147541
205
0.730769
d7aa249c00c97006115a30d68bd7d12ff4ce1c5c
1,646
py
Python
src/python/pants/help/list_goals_integration_test.py
thamenato/pants
bc4a8fb3f07f6145649f02b06a1e5599aa28b36c
[ "Apache-2.0" ]
null
null
null
src/python/pants/help/list_goals_integration_test.py
thamenato/pants
bc4a8fb3f07f6145649f02b06a1e5599aa28b36c
[ "Apache-2.0" ]
null
null
null
src/python/pants/help/list_goals_integration_test.py
thamenato/pants
bc4a8fb3f07f6145649f02b06a1e5599aa28b36c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.testutil.pants_integration_test import run_pants
38.27907
93
0.694411
d7ac26c759283e3913ac9e8cb81d30bdc1dc518a
9,903
py
Python
proa.py
andrehigher/ProA
bd05d231f6edb1c2f87a3c067ff0cf1f2867b9b5
[ "Apache-2.0" ]
null
null
null
proa.py
andrehigher/ProA
bd05d231f6edb1c2f87a3c067ff0cf1f2867b9b5
[ "Apache-2.0" ]
null
null
null
proa.py
andrehigher/ProA
bd05d231f6edb1c2f87a3c067ff0cf1f2867b9b5
[ "Apache-2.0" ]
null
null
null
""" A Python Class A simple Python graph class to do essential operations into graph. """ import operator import math from random import choice from collections import defaultdict import networkx as nx
36.951493
139
0.58144
d7acd6c4288f7d67024c98e799deb3358d6fb4d1
1,214
py
Python
fix-sfz.py
SpotlightKid/sfzparser
9a339274bc44931965ebb36336f43c4fa5f1e498
[ "MIT" ]
5
2017-01-10T23:22:57.000Z
2020-05-08T06:29:38.000Z
fix-sfz.py
SpotlightKid/sfzparser
9a339274bc44931965ebb36336f43c4fa5f1e498
[ "MIT" ]
2
2017-03-28T20:14:27.000Z
2017-03-29T07:54:59.000Z
fix-sfz.py
SpotlightKid/sfzparser
9a339274bc44931965ebb36336f43c4fa5f1e498
[ "MIT" ]
2
2017-03-28T20:00:42.000Z
2020-10-24T16:39:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import shutil from os.path import basename, exists, isdir, splitext from sfzparser import SFZParser if __name__ == '__main__': import sys sys.exit(main(sys.argv[1:] or 0))
28.904762
93
0.521417
d7ad4862b9b6c2d525c8d2c7b82c06b8e22cd716
103
py
Python
pytoolkit/applications/__init__.py
ak110/pytoolk
8eef7e0add7bbc0ced1f1f1d82ed245388cc6684
[ "MIT" ]
26
2018-12-03T23:02:56.000Z
2020-08-07T06:33:21.000Z
pytoolkit/applications/__init__.py
ak110/pytoolk
8eef7e0add7bbc0ced1f1f1d82ed245388cc6684
[ "MIT" ]
null
null
null
pytoolkit/applications/__init__.py
ak110/pytoolk
8eef7e0add7bbc0ced1f1f1d82ed245388cc6684
[ "MIT" ]
5
2019-08-10T11:10:59.000Z
2020-11-18T02:39:37.000Z
"""Keras""" # pylint: skip-file # flake8: noqa from . import darknet53, efficientnet, xception
17.166667
47
0.718447
d7ada5e8230786197ee97f5ef4dfe811a9ba707b
1,536
py
Python
tests/rest/integration/test_common_endpoints.py
Palem1988/huobi
400d07ea309dc7bc75fb953ddf507c3592678b05
[ "MIT" ]
19
2018-05-18T09:49:47.000Z
2021-06-18T20:25:14.000Z
tests/rest/integration/test_common_endpoints.py
tianshanghong/huobi
b2d1a14ed83ac890cc63b513618c8f5ba2574512
[ "MIT" ]
14
2018-05-15T16:30:40.000Z
2022-03-17T08:52:06.000Z
tests/rest/integration/test_common_endpoints.py
tianshanghong/huobi
b2d1a14ed83ac890cc63b513618c8f5ba2574512
[ "MIT" ]
9
2018-05-27T01:34:37.000Z
2022-03-04T20:11:30.000Z
import unittest from huobi.rest.client import HuobiRestClient from huobi.rest.error import ( HuobiRestiApiError ) import os from os.path import join, dirname from dotenv import load_dotenv dotenv_path = join(dirname(dirname(dirname(dirname(__file__)))), '.env') load_dotenv(dotenv_path)
25.6
72
0.682292
d7afcd461d31d762481c2b25c06e4d95251be3d2
8,477
py
Python
gerritviewer/views/accounts.py
tivaliy/gerrit-quick-viewer
86d6995faf2a1eeb611eb861fef2a8c856f4be86
[ "Apache-2.0" ]
null
null
null
gerritviewer/views/accounts.py
tivaliy/gerrit-quick-viewer
86d6995faf2a1eeb611eb861fef2a8c856f4be86
[ "Apache-2.0" ]
null
null
null
gerritviewer/views/accounts.py
tivaliy/gerrit-quick-viewer
86d6995faf2a1eeb611eb861fef2a8c856f4be86
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Vitalii Kulanov # # 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 ...
46.070652
79
0.575911
d7afd3383399873e7b024e174d09b83c6155eba6
2,928
py
Python
infra/tools/git-push-speed.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
infra/tools/git-push-speed.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
infra/tools/git-push-speed.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Measures the average time used by git-push command in CQ based on data from chromium-cq-status.appspot.com.""" import argparse import json import logging...
36.148148
79
0.653005
d7b09b3899eab74c7da7d05d1a738239da6a6f8c
93
py
Python
backoffice/transactions/utils.py
AlejandroUPC/pythonmicroservices
9d42bd6dfd9847ad4a8e6029e808de927292c251
[ "MIT" ]
null
null
null
backoffice/transactions/utils.py
AlejandroUPC/pythonmicroservices
9d42bd6dfd9847ad4a8e6029e808de927292c251
[ "MIT" ]
null
null
null
backoffice/transactions/utils.py
AlejandroUPC/pythonmicroservices
9d42bd6dfd9847ad4a8e6029e808de927292c251
[ "MIT" ]
null
null
null
import random
23.25
54
0.795699
d7b1f098471299492d3a164aae5bda72d5a2c99e
113
py
Python
bitmovin_api_sdk/encoding/infrastructure/kubernetes/configuration/__init__.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
null
null
null
bitmovin_api_sdk/encoding/infrastructure/kubernetes/configuration/__init__.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:13:43.000Z
2020-07-06T07:13:43.000Z
bitmovin_api_sdk/encoding/infrastructure/kubernetes/configuration/__init__.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:07:26.000Z
2020-07-06T07:07:26.000Z
from bitmovin_api_sdk.encoding.infrastructure.kubernetes.configuration.configuration_api import ConfigurationApi
56.5
112
0.920354
d7b416d06c92253082c35eb75c67b3efcc2cb569
3,427
py
Python
python/cudf/cudf/core/column/methods.py
shridharathi/cudf
664712eb124e35dd2e8f28c287adbb48fc8049d6
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/column/methods.py
shridharathi/cudf
664712eb124e35dd2e8f28c287adbb48fc8049d6
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/column/methods.py
shridharathi/cudf
664712eb124e35dd2e8f28c287adbb48fc8049d6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. from __future__ import annotations from typing import TYPE_CHECKING, Optional, Union, overload from typing_extensions import Literal import cudf if TYPE_CHECKING: from cudf.core.column import ColumnBase
31.440367
79
0.534578
d7b668f8518c7dd4a692c3180e8c31313bbcc189
8,139
py
Python
spa/tests/dom_helper.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
spa/tests/dom_helper.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
spa/tests/dom_helper.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
from selenium.common.exceptions import NoSuchElementException, TimeoutException
38.03271
154
0.615678
d7b71be599126f3487b3d6c940f7c879926c6044
1,491
py
Python
gravityspytools/search/models.py
Gravity-Spy/gravityspytools
23ef83e36ed934f7c39440bf43f4d5c7b7b4abb0
[ "BSD-3-Clause" ]
4
2019-03-11T12:32:24.000Z
2020-12-01T06:31:39.000Z
gravityspytools/search/models.py
johnwick211/gravityspytools
23ef83e36ed934f7c39440bf43f4d5c7b7b4abb0
[ "BSD-3-Clause" ]
19
2018-01-29T21:28:39.000Z
2020-07-14T18:38:23.000Z
gravityspytools/search/models.py
johnwick211/gravityspytools
23ef83e36ed934f7c39440bf43f4d5c7b7b4abb0
[ "BSD-3-Clause" ]
4
2018-02-02T16:47:16.000Z
2020-12-01T06:31:49.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User from django.contrib.postgres.fields import ArrayField # Create your models here. """ class NewSearch(models.Model): SINGLEVIEW = 'similarityindex' MULTIVIEW = 'updated_simi...
31.723404
174
0.646546
d7b7548d8ddf5ce24d29bb3004f66eaa2e7d0d79
776
py
Python
simple_menu/simple_encoder.py
mexclub/simple_menu
9e37b2101c74f451270ceab0f50e19457562d20a
[ "MIT" ]
null
null
null
simple_menu/simple_encoder.py
mexclub/simple_menu
9e37b2101c74f451270ceab0f50e19457562d20a
[ "MIT" ]
null
null
null
simple_menu/simple_encoder.py
mexclub/simple_menu
9e37b2101c74f451270ceab0f50e19457562d20a
[ "MIT" ]
3
2020-01-07T14:36:31.000Z
2021-01-04T15:37:30.000Z
from machine import Pin
32.333333
62
0.487113
d7b9607848de2585415aac4ac43c5891e9257879
7,928
py
Python
Final/prediction/nb1.py
NaguGowda/machin-learning-
dd04f44a06d6f83e58ed6eb4d69db09620040e49
[ "Apache-2.0" ]
null
null
null
Final/prediction/nb1.py
NaguGowda/machin-learning-
dd04f44a06d6f83e58ed6eb4d69db09620040e49
[ "Apache-2.0" ]
null
null
null
Final/prediction/nb1.py
NaguGowda/machin-learning-
dd04f44a06d6f83e58ed6eb4d69db09620040e49
[ "Apache-2.0" ]
null
null
null
# Example of Naive Bayes implemented from Scratch in Python import csv import random import math import xgboost as xgb import matplotlib.pyplot as plt import numpy as np main()
31.839357
101
0.645686
d7ba1f7895f8a28f6a1b180ed84e6be8b3b520b7
7,367
py
Python
wingstructure/data/wing.py
helo9/wingstructure
ff82eb0b87e3b5ececff39895f959bfef468e7c3
[ "MIT" ]
7
2019-01-02T16:47:31.000Z
2020-10-10T10:06:15.000Z
wingstructure/data/wing.py
helo9/wingstructure
ff82eb0b87e3b5ececff39895f959bfef468e7c3
[ "MIT" ]
9
2019-01-13T20:11:23.000Z
2019-10-10T21:38:58.000Z
wingstructure/data/wing.py
helo9/wingstructure
ff82eb0b87e3b5ececff39895f959bfef468e7c3
[ "MIT" ]
1
2018-12-27T14:20:36.000Z
2018-12-27T14:20:36.000Z
from collections import namedtuple from copy import deepcopy import numpy as np # data type for 3D-Coordinates Point = namedtuple('Point', 'x y z') # monkey patch function def plot(self): import matplotlib.pyplot as plt # draw centerline #plt.axvline(x=0, linestyle='-.') ...
26.692029
102
0.529659
d7ba596dc0cf678dc2c3cf189ee8dd90496c1aa2
3,103
py
Python
crossdock/problems/experiment/crossdock_15_25_15_5_5.py
krerkkiat/icpr-2019-public
f3023c009f3335ce58204a45c270cfeb6ef19367
[ "BSD-3-Clause" ]
null
null
null
crossdock/problems/experiment/crossdock_15_25_15_5_5.py
krerkkiat/icpr-2019-public
f3023c009f3335ce58204a45c270cfeb6ef19367
[ "BSD-3-Clause" ]
null
null
null
crossdock/problems/experiment/crossdock_15_25_15_5_5.py
krerkkiat/icpr-2019-public
f3023c009f3335ce58204a45c270cfeb6ef19367
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Cross-docking truck data. This data is generated by a generate_dataset.py script. Created: Feb 18, 2019 at 07:30:02 PM Copyright (c) 2022, Krerkkiat Chusap This souce code is licensed under BSD 3-Clause "New" or "Revised" License (see LICENSE for details). """ from pathlib import Path # ...
41.373333
100
0.477602
d7ba6d2580da27c50c90b24f37ff13d8bc2e1d42
1,121
py
Python
CIFAR10/train.py
aidezone/pytorch-learning
c9c5c185e4de71503002083e271c6b19321520c1
[ "MIT" ]
null
null
null
CIFAR10/train.py
aidezone/pytorch-learning
c9c5c185e4de71503002083e271c6b19321520c1
[ "MIT" ]
null
null
null
CIFAR10/train.py
aidezone/pytorch-learning
c9c5c185e4de71503002083e271c6b19321520c1
[ "MIT" ]
null
null
null
import base # import torch import torch.nn as nn # net = base.MyCustomNet() # max_epoch = 5 # learning_rate = 0.001 # loss import torch.optim as optim criterion = nn.CrossEntropyLoss() optimizer = optim.SGD(net.parameters(), lr=learning_rate, momentum=0.9) # for epoch in range(max_epoch): # loop over the d...
22.42
79
0.6405