hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
0684a59b5485fb53c2b1588876b4d3d204cb4623
4,046
py
Python
braids/resources/characters.py
oscillating-gate/eurorack
35bf03aa35b01a7a4a9b0a0ca2898677cd3a9f6a
[ "MIT" ]
233
2018-07-02T16:49:36.000Z
2022-02-27T21:45:39.000Z
braids/resources/characters.py
oscillating-gate/eurorack
35bf03aa35b01a7a4a9b0a0ca2898677cd3a9f6a
[ "MIT" ]
24
2018-07-09T11:32:15.000Z
2022-01-07T01:45:43.000Z
braids/resources/characters.py
oscillating-gate/eurorack
35bf03aa35b01a7a4a9b0a0ca2898677cd3a9f6a
[ "MIT" ]
24
2018-07-14T21:55:30.000Z
2021-05-04T04:20:34.000Z
# Copyright 2012 Olivier Gillet. # # Author: Olivier Gillet (ol.gillet@gmail.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the right...
20.129353
79
0.505685
5dde8c9aec8fd941c02d63e3b877a5d9872e789f
1,143
py
Python
core/dense.py
vishalmanes109/nn-from-scratch
53de76f39dfea3f625ec542536f0ab3bc44d0224
[ "MIT" ]
2
2020-10-09T05:50:14.000Z
2021-04-10T08:52:03.000Z
core/dense.py
vishalmanes109/nn-from-scratch
53de76f39dfea3f625ec542536f0ab3bc44d0224
[ "MIT" ]
null
null
null
core/dense.py
vishalmanes109/nn-from-scratch
53de76f39dfea3f625ec542536f0ab3bc44d0224
[ "MIT" ]
null
null
null
from .layer import Layer import numpy as np import config class Dense(Layer): # input_size = Number of Input Neurons # output_size = Number of Output Neurons def __init__(self, input_size, output_size): self.weights = np.random.rand(input_size, output_size) - 0.5 self.bias = np.random.rand...
34.636364
78
0.657918
747f02f3688a9b2541bc42c21f75e326d7c645b5
978
py
Python
bot.py
RobinMcNally/DiscordBot
5fe03d23e72a7eeb0719f6cb1aa63c9c6c9c67c1
[ "MIT" ]
null
null
null
bot.py
RobinMcNally/DiscordBot
5fe03d23e72a7eeb0719f6cb1aa63c9c6c9c67c1
[ "MIT" ]
null
null
null
bot.py
RobinMcNally/DiscordBot
5fe03d23e72a7eeb0719f6cb1aa63c9c6c9c67c1
[ "MIT" ]
null
null
null
import json import os.path import sys import urllib.request from features.roll_backend import roll_backend from features.asciify_backend import asciify_backend from discord.ext.commands import Bot generic_error = "```I'm just a poor robot. Stop trying to break me!```" #Bot function definitions bot = Bot(command_prefi...
24.45
71
0.688139
f55c513370946b425d988bc66b2b690b1a68248b
4,113
py
Python
datalad/support/json_py.py
jelmer/datalad
fedc04867d87e0191bd500991d0df97e97113457
[ "MIT" ]
null
null
null
datalad/support/json_py.py
jelmer/datalad
fedc04867d87e0191bd500991d0df97e97113457
[ "MIT" ]
null
null
null
datalad/support/json_py.py
jelmer/datalad
fedc04867d87e0191bd500991d0df97e97113457
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
26.197452
101
0.616095
b63b157f0103b6c6cd8cb84646fd73d9f1ce74ec
37,398
py
Python
test/functional/wallet_importmulti.py
stamhe/bitcoin-abc
a1ba303c6b4f164ae94612e83b824e564405a96e
[ "MIT" ]
1
2022-01-09T22:29:10.000Z
2022-01-09T22:29:10.000Z
test/functional/wallet_importmulti.py
EGYVOICE/bitcoin-abc-avalanche
e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c
[ "MIT" ]
17
2021-08-06T21:27:41.000Z
2022-03-31T08:28:08.000Z
test/functional/wallet_importmulti.py
EGYVOICE/bitcoin-abc-avalanche
e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the importmulti RPC. Test importmulti by generating keys on node0, importing the scriptPubKeys an...
47.459391
299
0.552142
86b3348ca8f6adc57a37a549254eae6794e335dd
8,665
py
Python
src/models/udt/train.py
alexmlamb/SPUDT
5d4ff32c9e37a485c176d3e68c58723e544972e5
[ "MIT" ]
null
null
null
src/models/udt/train.py
alexmlamb/SPUDT
5d4ff32c9e37a485c176d3e68c58723e544972e5
[ "MIT" ]
null
null
null
src/models/udt/train.py
alexmlamb/SPUDT
5d4ff32c9e37a485c176d3e68c58723e544972e5
[ "MIT" ]
null
null
null
import time import os import torch import torch.nn.functional as F from torch import optim from common.util import sample, save_models from evaluation.fid import calculate_fid from common.initialize import initialize, infer_iteration from . import model def gp_loss(x, y, d, device): batch_size = x.size()[0] ...
36.87234
114
0.633353
9af5dc5f75cc9a70253e14625aab13e5e4dc1558
114,849
py
Python
mypy/nodes.py
aghast/mypy
13ae58ffe8bedb7da9f4c657297f0d61e681d671
[ "PSF-2.0" ]
null
null
null
mypy/nodes.py
aghast/mypy
13ae58ffe8bedb7da9f4c657297f0d61e681d671
[ "PSF-2.0" ]
null
null
null
mypy/nodes.py
aghast/mypy
13ae58ffe8bedb7da9f4c657297f0d61e681d671
[ "PSF-2.0" ]
null
null
null
"""Abstract syntax tree node classes (i.e. parse tree).""" import os from abc import abstractmethod from mypy.ordered_dict import OrderedDict from collections import defaultdict from typing import ( Any, TypeVar, List, Tuple, cast, Set, Dict, Union, Optional, Callable, Sequence, Iterator ) from typing_extensions i...
35.327284
99
0.618926
14f101791d2fe3da76d97db64c0d8c720765b1e2
237
py
Python
config/app_config.py
Juyeon125/Multi_pred
048986428434d9927989f86e93ea6fa6ce33d0ae
[ "MIT" ]
1
2020-10-15T08:05:41.000Z
2020-10-15T08:05:41.000Z
config/app_config.py
Juyeon125/Multi_pred
048986428434d9927989f86e93ea6fa6ce33d0ae
[ "MIT" ]
null
null
null
config/app_config.py
Juyeon125/Multi_pred
048986428434d9927989f86e93ea6fa6ce33d0ae
[ "MIT" ]
null
null
null
import os class LocalLevelConfig: ENV = "development" DEBUG = True SECRET_KEY = "ce7ea57bcec4ea045191c43a" class ProductionLevelConfig: ENV = "production" DEBUG = False SECRET_KEY = "5ae9fc9c349602a1111ef1d4"
16.928571
43
0.71308
5a65d2ad4d0faf195a86a3cd8d1a394318396e23
354
py
Python
visual_novel/visual_novel/settings/local.py
dolamroth/visual_novel
c67379df395561b3bca7e91e2db6547d2e943330
[ "MIT" ]
9
2018-03-11T12:53:12.000Z
2020-12-19T14:21:53.000Z
visual_novel/visual_novel/settings/local.py
dolamroth/visual_novel
c67379df395561b3bca7e91e2db6547d2e943330
[ "MIT" ]
6
2020-02-11T22:19:22.000Z
2022-03-11T23:20:10.000Z
visual_novel/visual_novel/settings/local.py
dolamroth/visual_novel
c67379df395561b3bca7e91e2db6547d2e943330
[ "MIT" ]
null
null
null
from .base import * DEBUG = True STATIC_ROOT = os.path.join(BASE_DIR, '') STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), ] ALLOWED_HOSTS += ['127.0.0.1'] CACHES = { "default": { "BACKEND": "django.core.cache.backends.db.DatabaseCache", "LOCATION": "cache_table_for_local_development"...
16.857143
65
0.649718
d6695af7d9358a0cad2ad2f4a628fd0deb2f7cc6
673
py
Python
pyrival/algebra/discrete_log.py
MattJDavidson/aoc2021
1c26697da55e58408f36525639d201303f808b1b
[ "Apache-2.0" ]
748
2018-09-27T01:08:12.000Z
2022-03-25T17:31:56.000Z
pyrival/algebra/discrete_log.py
MattJDavidson/aoc2021
1c26697da55e58408f36525639d201303f808b1b
[ "Apache-2.0" ]
38
2019-02-24T14:50:02.000Z
2022-03-25T01:27:50.000Z
pyrival/algebra/discrete_log.py
MattJDavidson/aoc2021
1c26697da55e58408f36525639d201303f808b1b
[ "Apache-2.0" ]
288
2018-10-29T11:55:57.000Z
2022-03-20T04:37:27.000Z
def discrete_log(a, b, mod): """ Returns smallest x > 0 s.t. pow(a, x, mod) == b or None if no such x exists. Note: works even if a and mod are not coprime. """ n = int(mod**0.5) + 1 # tiny_step[x] = maximum j <= n s.t. b * a^j % mod = x tiny_step, e = {}, 1 for j in range(1, n + 1): ...
29.26087
80
0.454681
fd3b253adf92e534ce06a5619ca9a08e2fdfce41
1,234
py
Python
coinnews/pipelines.py
jlparadox/coinnews
09a99e67115eda36084219cbd77967e73b6017c7
[ "Apache-2.0" ]
null
null
null
coinnews/pipelines.py
jlparadox/coinnews
09a99e67115eda36084219cbd77967e73b6017c7
[ "Apache-2.0" ]
null
null
null
coinnews/pipelines.py
jlparadox/coinnews
09a99e67115eda36084219cbd77967e73b6017c7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html import pymongo from scrapy.conf import settings from scrapy.exceptions import DropItem from scrapy import log class Coinnews...
28.697674
68
0.657212
219ca34c168633e3585fa899e4bfe6606dc0f89c
566
py
Python
ontask/migrations/0017_auto_20180523_1611.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
33
2017-12-02T04:09:24.000Z
2021-11-07T08:41:57.000Z
ontask/migrations/0017_auto_20180523_1611.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
189
2017-11-16T04:06:29.000Z
2022-03-11T23:35:59.000Z
ontask/migrations/0017_auto_20180523_1611.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
30
2017-11-30T03:35:44.000Z
2022-01-31T03:08:08.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-05-23 06:41 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ontask', '0016_auto_20180522_2146'), ] operations = [ migrations.AlterModelOptions...
23.583333
67
0.591873
2188bbcebceafaf01e068c75c5ac436615cf0a98
16,695
py
Python
mmhuman3d/core/visualization/renderer/matplotlib3d_renderer.py
yl-1993/mmhuman3d
61a7427b7882d5e5f5fe623272a5c455c3d3b009
[ "Apache-2.0" ]
472
2021-12-03T03:12:55.000Z
2022-03-31T01:33:13.000Z
mmhuman3d/core/visualization/renderer/matplotlib3d_renderer.py
yl-1993/mmhuman3d
61a7427b7882d5e5f5fe623272a5c455c3d3b009
[ "Apache-2.0" ]
127
2021-12-03T05:00:14.000Z
2022-03-31T13:47:33.000Z
mmhuman3d/core/visualization/renderer/matplotlib3d_renderer.py
yl-1993/mmhuman3d
61a7427b7882d5e5f5fe623272a5c455c3d3b009
[ "Apache-2.0" ]
37
2021-12-03T03:23:22.000Z
2022-03-31T08:41:58.000Z
import io import os import shutil from pathlib import Path from typing import Iterable, List, Optional, Union import cv2 import mmcv import numpy as np from matplotlib import pyplot as plt from matplotlib.lines import Line2D from mpl_toolkits.mplot3d import Axes3D from mmhuman3d.core.conventions.cameras.convert_conve...
40.132212
79
0.533753
651a2f915529dc97f2d817be8a67a64930f8fe77
646
py
Python
ComRISB/pygtool/gw_gutz/data2h5.py
comscope/comsuite
d51c43cad0d15dc3b4d1f45e7df777cdddaa9d6c
[ "BSD-3-Clause" ]
18
2019-06-15T18:08:21.000Z
2022-01-30T05:01:29.000Z
ComRISB/pygtool/gw_gutz/data2h5.py
comscope/Comsuite
b80ca9f34c519757d337487c489fb655f7598cc2
[ "BSD-3-Clause" ]
null
null
null
ComRISB/pygtool/gw_gutz/data2h5.py
comscope/Comsuite
b80ca9f34c519757d337487c489fb655f7598cc2
[ "BSD-3-Clause" ]
11
2019-06-05T02:57:55.000Z
2021-12-29T02:54:25.000Z
import h5py import numpy as np evals = np.loadtxt('eigenvalues.dat') evals = evals.T num = 22 numk = evals.shape[1]/num with h5py.File('data.h5', 'w') as f: for ik, ibase in enumerate(range(0, evals.shape[1], num)): f['/evals/ik_{}'.format(ik)] = evals[2,ibase:ibase+num] for ik in range(numk): ...
28.086957
63
0.568111
ee7329fa3f2f719ec8b8fbb8ec8405f56b34b1a9
12,951
py
Python
bookstore/bookstore_web/routes.py
stillimproving/e-bookstore
48de381b2d805a6bd8cc4c912234e193483825ae
[ "MIT" ]
null
null
null
bookstore/bookstore_web/routes.py
stillimproving/e-bookstore
48de381b2d805a6bd8cc4c912234e193483825ae
[ "MIT" ]
null
null
null
bookstore/bookstore_web/routes.py
stillimproving/e-bookstore
48de381b2d805a6bd8cc4c912234e193483825ae
[ "MIT" ]
null
null
null
from flask import render_template, flash, redirect, url_for, request from flask_login import current_user, login_user, logout_user, login_required from werkzeug.datastructures import MultiDict from bookstore.models import BooksDB, BookSearchCategory, OrderDB from bookstore.models import CustomersDB, Customer from book...
39.726994
119
0.644429
caaace50ce5ac2264cbd572cfb6171cdb44ca840
2,920
py
Python
pydeepspeech/wav_transcriber.py
Soebb/pydeepspeech
968ce5b17c8904902fe5e83cf412c434e793c3fc
[ "MIT" ]
null
null
null
pydeepspeech/wav_transcriber.py
Soebb/pydeepspeech
968ce5b17c8904902fe5e83cf412c434e793c3fc
[ "MIT" ]
null
null
null
pydeepspeech/wav_transcriber.py
Soebb/pydeepspeech
968ce5b17c8904902fe5e83cf412c434e793c3fc
[ "MIT" ]
null
null
null
# pylint: skip-file import glob import logging from timeit import default_timer as timer import webrtcvad # type: ignore from deepspeech import Model # type: ignore import pydeepspeech.wav_split as wav_split """ Load the pre-trained model into the memory @param models: Output Grapgh Protocol Buffer file @param sc...
26.306306
74
0.708904
63e907d23c6449656226369f36631c2d61a23326
179
py
Python
irelia/__init__.py
bgraver/Irelia
d1785fac7a3dadfa3af523f0637f5a838f830408
[ "MIT" ]
null
null
null
irelia/__init__.py
bgraver/Irelia
d1785fac7a3dadfa3af523f0637f5a838f830408
[ "MIT" ]
null
null
null
irelia/__init__.py
bgraver/Irelia
d1785fac7a3dadfa3af523f0637f5a838f830408
[ "MIT" ]
null
null
null
from irelia.esports_lib import Lolesports headers = {'x-api-key': '0TvQnueqKa5mxJntVWt0w4LpLfEkrV1Ta8rQBb9Z'} params = {"hl": "en-US"} s11_start_date = "2021-01-01"
17.9
68
0.698324
693a6294de173541f5b91fd437fd0ae3c6046fa8
2,104
py
Python
Python/phonenumbers/data/region_JM.py
skykisl/uberbruns2
26933efce04dba700d93cc75c7b74e069fb02d26
[ "Unlicense" ]
5
2015-04-27T20:10:56.000Z
2018-06-14T18:19:09.000Z
python/phonenumbers/data/region_JM.py
vemel/python-phonenumbers
595c322bf12106a3b95e3f202e948a7c6b6c15b8
[ "Apache-2.0" ]
2
2017-06-08T16:11:13.000Z
2018-05-07T11:50:13.000Z
python/phonenumbers/data/region_JM.py
vemel/python-phonenumbers
595c322bf12106a3b95e3f202e948a7c6b6c15b8
[ "Apache-2.0" ]
6
2015-02-19T11:11:04.000Z
2022-03-15T19:38:31.000Z
"""Auto-generated file, do not edit by hand. JM metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_JM = PhoneMetadata(id='JM', country_code=1, international_prefix='011', general_desc=PhoneNumberDesc(national_number_pattern='[589]\\d{9}', possible_number_pattern='\\...
100.190476
318
0.72576
3aa467a38e2b50e3c1a5d1fccaf89dba7d212b61
7,906
py
Python
tests/test_sampling.py
Rodrigo-Tenorio/nessai
2b4175da61b3a7250d1154a126ad93481836df0d
[ "MIT" ]
16
2021-02-18T00:04:54.000Z
2021-09-01T03:25:45.000Z
tests/test_sampling.py
Rodrigo-Tenorio/nessai
2b4175da61b3a7250d1154a126ad93481836df0d
[ "MIT" ]
59
2021-03-09T11:05:37.000Z
2022-03-30T14:21:14.000Z
tests/test_sampling.py
Rodrigo-Tenorio/nessai
2b4175da61b3a7250d1154a126ad93481836df0d
[ "MIT" ]
1
2022-03-25T12:28:16.000Z
2022-03-25T12:28:16.000Z
# -*- coding: utf-8 -*- """ Integration tests for running the sampler with different configurations. """ import os import torch import pytest import numpy as np from nessai.flowsampler import FlowSampler from nessai.livepoint import numpy_array_to_live_points from nessai.model import Model torch.set_num_threads(1) ...
35.294643
79
0.650519
396358b87f03f8cf892084e2ec39f506635d7fdf
46
py
Python
Lib/pylib/__init__.py
cjroehrig/crispyControllers
6a56f7a61d66068824f4fd4b3c46d5b95585439d
[ "BSD-2-Clause" ]
null
null
null
Lib/pylib/__init__.py
cjroehrig/crispyControllers
6a56f7a61d66068824f4fd4b3c46d5b95585439d
[ "BSD-2-Clause" ]
null
null
null
Lib/pylib/__init__.py
cjroehrig/crispyControllers
6a56f7a61d66068824f4fd4b3c46d5b95585439d
[ "BSD-2-Clause" ]
null
null
null
# This is required to be considered a module.
23
45
0.76087
7511f977d68d8db864d7b5e67e9faaaf3a606c1f
2,128
py
Python
tests/integration/player_test.py
egret85/echovr-api
e135f25fb5b188e2931133d04c47c5e66e83a6c5
[ "MIT" ]
7
2018-11-02T18:12:18.000Z
2021-03-08T10:47:59.000Z
tests/integration/player_test.py
egret85/echovr-api
e135f25fb5b188e2931133d04c47c5e66e83a6c5
[ "MIT" ]
null
null
null
tests/integration/player_test.py
egret85/echovr-api
e135f25fb5b188e2931133d04c47c5e66e83a6c5
[ "MIT" ]
4
2018-11-02T18:12:08.000Z
2020-06-19T19:42:39.000Z
import pytest @pytest.fixture def player(standard_public_match_gamestate): return standard_public_match_gamestate.teams[0].players[0] def test_name(player): assert player.name == "Bob" def test_playerid(player): assert player.playerid == 0 def test_userid(player): assert player.userid == 48140547923...
25.95122
62
0.703947
8442560c7a88c45d382a3a96bac67b0654db0e4c
574
py
Python
balanced-binary-tree/balanced-binary-tree.py
rams1996/Trees
b7d6a92ed76a9e4d01bfe7f85debb7ca2b350ac9
[ "MIT" ]
null
null
null
balanced-binary-tree/balanced-binary-tree.py
rams1996/Trees
b7d6a92ed76a9e4d01bfe7f85debb7ca2b350ac9
[ "MIT" ]
null
null
null
balanced-binary-tree/balanced-binary-tree.py
rams1996/Trees
b7d6a92ed76a9e4d01bfe7f85debb7ca2b350ac9
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: #     def __init__(self, x): #         self.val = x #         self.left = None #         self.right = None ​ class Solution:    def isBalanced(self, root: TreeNode) -> bool:                def dfs(root):            if not root:                return 0        ...
23.916667
49
0.447735
3a1e9108a8cd4899977745d0dda89fcc78f83181
2,923
py
Python
e2e_tests/tests/fixtures/pytorch_lightning_amp/mnist.py
gh-determined-ai/determined
9a1ab33a3a356b69681b3351629fef4ab98ddb56
[ "Apache-2.0" ]
1,729
2020-04-27T17:36:40.000Z
2022-03-31T05:48:39.000Z
e2e_tests/tests/fixtures/pytorch_lightning_amp/mnist.py
ChrisW09/determined
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
[ "Apache-2.0" ]
1,940
2020-04-27T17:34:14.000Z
2022-03-31T23:02:28.000Z
e2e_tests/tests/fixtures/pytorch_lightning_amp/mnist.py
ChrisW09/determined
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
[ "Apache-2.0" ]
214
2020-04-27T19:57:28.000Z
2022-03-29T08:17:16.000Z
# The class LitMNIST is modified from the Pytorch Lightning example: # https://colab.research.google.com/github/PytorchLightning/pytorch-lightning/ # blob/master/notebooks/01-mnist-hello-world.ipynb#scrollTo=4DNItffri95Q # # Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "...
33.215909
112
0.661991
51afa0cb1a58f33ba5147af912a3f3d17ed2f071
3,607
py
Python
test/functional/wallet_keypool.py
dyennet/bitcoin
be992701b018f256db6d64786624be4cb60d8975
[ "MIT" ]
4,424
2015-10-19T19:04:02.000Z
2022-03-21T12:11:29.000Z
test/functional/wallet_keypool.py
dyennet/bitcoin
be992701b018f256db6d64786624be4cb60d8975
[ "MIT" ]
316
2015-12-05T21:55:16.000Z
2022-03-05T12:28:43.000Z
test/functional/wallet_keypool.py
dyennet/bitcoin
be992701b018f256db6d64786624be4cb60d8975
[ "MIT" ]
208
2016-06-17T23:47:57.000Z
2022-03-16T09:11:26.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet keypool and interaction with wallet encryption/locking.""" import time from test_fram...
40.077778
119
0.669809
f0c6d060b50b62b29ffbfef3dc2d7bad7f920914
15,251
py
Python
sdk/python/pulumi_azure_nextgen/insights/latest/component.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/insights/latest/component.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/insights/latest/component.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
45.255193
321
0.657531
4eca88737c0fc9eaa6620fd1195118ca54d793cf
17,625
py
Python
fsspec/implementations/http.py
ysgit/filesystem_spec
f820f46b29f20d7c649509a4995f9cb8b484bbc4
[ "BSD-3-Clause" ]
null
null
null
fsspec/implementations/http.py
ysgit/filesystem_spec
f820f46b29f20d7c649509a4995f9cb8b484bbc4
[ "BSD-3-Clause" ]
null
null
null
fsspec/implementations/http.py
ysgit/filesystem_spec
f820f46b29f20d7c649509a4995f9cb8b484bbc4
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division, absolute_import import aiohttp import asyncio import logging import re import requests import weakref from urllib.parse import urlparse from fsspec.spec import AbstractBufferedFile from fsspec.utils import tokenize, DEFAULT_BLOCK_SIZE from fsspec.asyn import sync_wrappe...
34.356725
87
0.551149
1f3fff5e89cf44374706ee8514bef430683a2a5e
15,408
py
Python
test/TestUpdateEventName.py
indera/redi
c2a41ce6e5b613f75eaa8e6426ff948e0bfab349
[ "BSD-3-Clause" ]
null
null
null
test/TestUpdateEventName.py
indera/redi
c2a41ce6e5b613f75eaa8e6426ff948e0bfab349
[ "BSD-3-Clause" ]
null
null
null
test/TestUpdateEventName.py
indera/redi
c2a41ce6e5b613f75eaa8e6426ff948e0bfab349
[ "BSD-3-Clause" ]
null
null
null
import unittest from lxml import etree import os from redi import redi file_dir = os.path.dirname(os.path.realpath(__file__)) goal_dir = os.path.join(file_dir, "../") proj_root = os.path.abspath(goal_dir)+'/' DEFAULT_DATA_DIRECTORY = os.getcwd() class TestUpdateEventName(unittest.TestCase): def setUp(self): ...
53.314879
250
0.716446
f9c59590c3febb4fec99628bf4a99fa996524c9c
1,490
py
Python
allauth/socialaccount/providers/stackexchange/tests.py
Stikerz/Film-Guide
5c0a7a6f8c530e72bef42fcbac6a52665834c4e0
[ "BSD-3-Clause" ]
null
null
null
allauth/socialaccount/providers/stackexchange/tests.py
Stikerz/Film-Guide
5c0a7a6f8c530e72bef42fcbac6a52665834c4e0
[ "BSD-3-Clause" ]
null
null
null
allauth/socialaccount/providers/stackexchange/tests.py
Stikerz/Film-Guide
5c0a7a6f8c530e72bef42fcbac6a52665834c4e0
[ "BSD-3-Clause" ]
1
2022-02-01T17:19:28.000Z
2022-02-01T17:19:28.000Z
from allauth.socialaccount.tests import OAuth2TestsMixin from allauth.tests import MockedResponse, TestCase from .provider import StackExchangeProvider class StackExchangeTests(OAuth2TestsMixin, TestCase): provider_id = StackExchangeProvider.id def get_mocked_response(self): return MockedResponse(20...
35.47619
117
0.518121
b2079628e10327e8281e31f83133d20fe29879ae
203
py
Python
XSS/lib/EstableSession.py
Vishalcc1/XSS
0c61c680b1c00c1ded7e803b8c3966d16e6b7f1f
[ "MIT" ]
null
null
null
XSS/lib/EstableSession.py
Vishalcc1/XSS
0c61c680b1c00c1ded7e803b8c3966d16e6b7f1f
[ "MIT" ]
null
null
null
XSS/lib/EstableSession.py
Vishalcc1/XSS
0c61c680b1c00c1ded7e803b8c3966d16e6b7f1f
[ "MIT" ]
null
null
null
import requests import json def estableSession(args): req=requests.Session() req.proxies=args.proxy req.headers = args.header req.cookies.update(json.loads(args.cookie)) return req
18.454545
47
0.719212
8c926e7bd8aee2adc037a5687cc150fb7b28d525
6,072
py
Python
python_modules/libraries/dagster-gcp/dagster_gcp/bigquery/solids.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
1
2021-07-03T09:05:58.000Z
2021-07-03T09:05:58.000Z
python_modules/libraries/dagster-gcp/dagster_gcp/bigquery/solids.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
1
2021-06-21T18:30:02.000Z
2021-06-25T21:18:39.000Z
python_modules/libraries/dagster-gcp/dagster_gcp/bigquery/solids.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
1
2021-11-30T21:40:46.000Z
2021-11-30T21:40:46.000Z
import hashlib from dagster import InputDefinition, List, Nothing, OutputDefinition, check, solid from dagster_pandas import DataFrame from google.cloud.bigquery.job import LoadJobConfig, QueryJobConfig from google.cloud.bigquery.table import EncryptionConfiguration, TimePartitioning from .configs import ( define...
34.305085
100
0.717556
8037ab5d876346414b5e6e46b3c19e6a65d60a7f
2,794
py
Python
tests/ping.py
joaoantoniopereira/Boardfarm
fa00a2628c5924ca13e05c6ba4990627038b9f1f
[ "BSD-3-Clause-Clear" ]
74
2015-08-25T22:50:38.000Z
2022-01-04T16:32:00.000Z
tests/ping.py
joaoantoniopereira/Boardfarm
fa00a2628c5924ca13e05c6ba4990627038b9f1f
[ "BSD-3-Clause-Clear" ]
72
2015-10-12T17:42:47.000Z
2019-01-19T14:11:18.000Z
tests/ping.py
joaoantoniopereira/Boardfarm
fa00a2628c5924ca13e05c6ba4990627038b9f1f
[ "BSD-3-Clause-Clear" ]
50
2015-08-25T22:45:44.000Z
2022-01-05T09:47:04.000Z
# Copyright (c) 2015 # # All rights reserved. # # This file is distributed under the Clear BSD license. # The full text can be found in LICENSE in the root directory. import rootfs_boot import lib from devices import board, wan, lan, wlan, prompt class RouterPingWanDev(rootfs_boot.RootFSBootTest): '''Router can p...
34.493827
71
0.625626
b16f82b2a06030af06945d2e2540905e65929836
10,500
py
Python
neutron/cmd/netns_cleanup.py
ilay09/neutron
b7f9803c88b17a6ebd40fd44d15d4336bea7b394
[ "Apache-2.0" ]
null
null
null
neutron/cmd/netns_cleanup.py
ilay09/neutron
b7f9803c88b17a6ebd40fd44d15d4336bea7b394
[ "Apache-2.0" ]
null
null
null
neutron/cmd/netns_cleanup.py
ilay09/neutron
b7f9803c88b17a6ebd40fd44d15d4336bea7b394
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 OpenStack Foundation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
35.836177
79
0.685238
70316535e1170ed5b9e53a00ad10b47ced870587
4,749
py
Python
opsgenie_swagger/models/list_team_routing_rules_response.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
opsgenie_swagger/models/list_team_routing_rules_response.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
opsgenie_swagger/models/list_team_routing_rules_response.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
1
2020-11-07T11:27:13.000Z
2020-11-07T11:27:13.000Z
# coding: utf-8 """ OpsGenie REST API OpsGenie OpenAPI Specification # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from opsgenie_swagger.models.base_response import BaseResponse ...
27.935294
96
0.587703
c8124e7b34a02f9990e22ab9aa26bb00c963f7f6
1,918
py
Python
library/examples.py
summerswallow/open-rocketry-tools
981c3f0cd16aac142e8bc9e57fc86151ce864a7c
[ "MIT" ]
null
null
null
library/examples.py
summerswallow/open-rocketry-tools
981c3f0cd16aac142e8bc9e57fc86151ce864a7c
[ "MIT" ]
null
null
null
library/examples.py
summerswallow/open-rocketry-tools
981c3f0cd16aac142e8bc9e57fc86151ce864a7c
[ "MIT" ]
null
null
null
from nosecone.standard_nosecones import * from misc import utils if __name__ == '__main__': from bodytubes.semroc import bt20 from bodytubes.semroc import bt5 array = utils.array(4, MM2IN, [ InvertedTangentOgiveNoseCone(0.75, bodytube=bt5, thickness=1 / 16.0, base_height=0.25, blunt_radius=0.125, ...
63.933333
119
0.622523
5161bee6a1215cb338dff9f0faaa1ea982c03401
2,849
py
Python
InvenTree/InvenTree/version.py
TheCrazyMaffin/InvenTree
2686f61a4ac279386a83049745339345f1ac4cf7
[ "MIT" ]
null
null
null
InvenTree/InvenTree/version.py
TheCrazyMaffin/InvenTree
2686f61a4ac279386a83049745339345f1ac4cf7
[ "MIT" ]
null
null
null
InvenTree/InvenTree/version.py
TheCrazyMaffin/InvenTree
2686f61a4ac279386a83049745339345f1ac4cf7
[ "MIT" ]
null
null
null
""" Version information for InvenTree. Provides information on the current InvenTree version """ import subprocess import django import re import common.models INVENTREE_SW_VERSION = "0.2.4 pre" """ Increment thi API version number whenever there is a significant change to the API that any clients need to know abou...
27.394231
118
0.704809
0fbd36b7ac7bbe511e77682cbb05895909da4867
15,005
py
Python
ds4se/infoxplainer/prediction/eval/traceability.py
WM-CSCI-435-F19/data-science-4-software-engineering
3692163df710550d4ee5b399a2a184968a0f18c6
[ "Apache-2.0" ]
5
2020-12-08T00:38:24.000Z
2021-11-16T20:00:59.000Z
ds4se/infoxplainer/prediction/eval/traceability.py
WM-CSCI-435-F19/data-science-4-software-engineering
3692163df710550d4ee5b399a2a184968a0f18c6
[ "Apache-2.0" ]
110
2020-09-26T18:36:35.000Z
2022-03-12T00:54:35.000Z
ds4se/infoxplainer/prediction/eval/traceability.py
WM-CSCI-435-F19/data-science-4-software-engineering
3692163df710550d4ee5b399a2a184968a0f18c6
[ "Apache-2.0" ]
3
2020-12-09T19:23:10.000Z
2021-02-16T12:54:16.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/4.6_infoxplainer.prediction.eval.traceability.ipynb (unless otherwise specified). __all__ = ['SupervisedVectorEvaluation', 'ManifoldEntropy'] # Cell from prg import prg # Cell import ds4se as ds from ....mining.ir import VectorizationType from ....mining.ir import Simi...
41.109589
129
0.615395
b2fb4dc8d8761a0136c832e5088647d1b22de151
6,906
py
Python
cubert/cubert_tokenizer.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
1
2021-01-08T03:21:19.000Z
2021-01-08T03:21:19.000Z
cubert/cubert_tokenizer.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
null
null
null
cubert/cubert_tokenizer.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
34.358209
80
0.716623
c52e6bc68c89d4d33801a1b35e68adb1ba9ddfb1
3,051
py
Python
03_pyPRMS_prototype/Update HRUs in Parameter File.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
03_pyPRMS_prototype/Update HRUs in Parameter File.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
03_pyPRMS_prototype/Update HRUs in Parameter File.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.7 # kernelspec: # display_name: Python [conda env:prms_py3] # language: python # name: conda-env-prms_p...
25.638655
231
0.69846
73a51b728fb9070348b2861d5ca1bfdadfa179de
4,651
py
Python
pithy/format.py
gwk/glossy
6976ca4fd1efc09d9cd670b1fe37817c05b4b529
[ "CC0-1.0" ]
7
2019-05-04T00:51:38.000Z
2021-12-10T15:36:31.000Z
pithy/format.py
gwk/glossy
6976ca4fd1efc09d9cd670b1fe37817c05b4b529
[ "CC0-1.0" ]
null
null
null
pithy/format.py
gwk/glossy
6976ca4fd1efc09d9cd670b1fe37817c05b4b529
[ "CC0-1.0" ]
1
2016-07-30T22:38:08.000Z
2016-07-30T22:38:08.000Z
# Dedicated to the public domain under CC0: https://creativecommons.org/publicdomain/zero/1.0/. 'Parse Python format strings and generate corresponding regular expressions.' import re from typing import Any, Iterable, Match, Pattern, Tuple from .string import line_col_1 class FormatError(Exception): pass fmt_re ...
31.425676
109
0.616857
34292fdad1a5a46019e3268272ab9124bcc2cc9e
10,295
py
Python
datalad_hirni/tests/test_dicom2spec.py
loj/datalad-hirni
e03c1cbcbeb5e62cdc7c4537d6d5d9b93d5b139e
[ "MIT" ]
null
null
null
datalad_hirni/tests/test_dicom2spec.py
loj/datalad-hirni
e03c1cbcbeb5e62cdc7c4537d6d5d9b93d5b139e
[ "MIT" ]
null
null
null
datalad_hirni/tests/test_dicom2spec.py
loj/datalad-hirni
e03c1cbcbeb5e62cdc7c4537d6d5d9b93d5b139e
[ "MIT" ]
null
null
null
# emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # -*- coding: utf-8 -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and...
37.98893
116
0.631277
6a6360571b2b811a1144843cfad3ed70d96f35ca
1,680
py
Python
setup.py
szabolcsdombi/vmath
7deb6dfdf1bde304cca7016e2be51ad1947b4a78
[ "MIT" ]
null
null
null
setup.py
szabolcsdombi/vmath
7deb6dfdf1bde304cca7016e2be51ad1947b4a78
[ "MIT" ]
null
null
null
setup.py
szabolcsdombi/vmath
7deb6dfdf1bde304cca7016e2be51ad1947b4a78
[ "MIT" ]
null
null
null
import sys from setuptools import Extension, setup extra_compile_args = [] if sys.platform.startswith('linux'): extra_compile_args = ['-fpermissive', '-Wno-write-strings', '-Wno-narrowing'] if sys.platform.startswith('darwin'): extra_compile_args = ['-std=c++11', '-Wno-writable-strings', '-Wno-c++11-narrowi...
29.473684
88
0.633929
f38ed511088b59d32fe3216697b876b715be8004
41,492
py
Python
tensorforce/agents/tensorforce.py
vishalbelsare/tensorforce
085a62bd37e0fdfd05691db29edeb2e1714ffbda
[ "Apache-2.0" ]
1,132
2019-01-03T14:41:04.000Z
2022-03-29T07:44:50.000Z
tensorforce/agents/tensorforce.py
vishalbelsare/tensorforce
085a62bd37e0fdfd05691db29edeb2e1714ffbda
[ "Apache-2.0" ]
353
2019-01-02T19:46:10.000Z
2022-03-30T10:38:45.000Z
tensorforce/agents/tensorforce.py
vishalbelsare/tensorforce
085a62bd37e0fdfd05691db29edeb2e1714ffbda
[ "Apache-2.0" ]
219
2019-01-03T16:55:39.000Z
2022-03-14T00:27:05.000Z
# Copyright 2020 Tensorforce Team. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
56.146143
146
0.603659
d2960bb91ab2d1be05009ffa1650de8c0dd97a56
591
py
Python
ENV/bin/createfontdatachunk.py
jupitercl/meatme-oscar-dev
40583cbb3c6762640a403956e41bffac0bb2ad48
[ "BSD-3-Clause" ]
null
null
null
ENV/bin/createfontdatachunk.py
jupitercl/meatme-oscar-dev
40583cbb3c6762640a403956e41bffac0bb2ad48
[ "BSD-3-Clause" ]
null
null
null
ENV/bin/createfontdatachunk.py
jupitercl/meatme-oscar-dev
40583cbb3c6762640a403956e41bffac0bb2ad48
[ "BSD-3-Clause" ]
null
null
null
#!/home/ubuntu/workspace/meatme-oscar/ENV/bin/python from __future__ import print_function import base64 import os import sys if __name__ == "__main__": # create font data chunk for embedding font = "Tests/images/courB08" print(" f._load_pilfont_data(") print(" # %s" % os.path.basename(font)...
31.105263
63
0.637902
457fb74f1245bc4877b66445585b4d3b536d6395
388
py
Python
LeetCode/NumberOfGoodPairs.py
SelvorWhim/competitive
b9daaf21920d6f7669dc0c525e903949f4e33b62
[ "Unlicense" ]
null
null
null
LeetCode/NumberOfGoodPairs.py
SelvorWhim/competitive
b9daaf21920d6f7669dc0c525e903949f4e33b62
[ "Unlicense" ]
null
null
null
LeetCode/NumberOfGoodPairs.py
SelvorWhim/competitive
b9daaf21920d6f7669dc0c525e903949f4e33b62
[ "Unlicense" ]
null
null
null
# don't need to show the pairs, so the order doesn't matter # just need to find how many times each number appears and count the pairs from collections import Counter class Solution: def numIdenticalPairs(self, nums: List[int]) -> int: counts = Counter(nums) return sum(count * (count - 1) // 2 for...
38.8
114
0.688144
34edd7696ad72e3b7d649f5b255116229335dac7
118
py
Python
duckspush/templates/datasources.py
novapost/duckspush
baa9d609a650040c12a721a83d9f45369af90694
[ "BSD-3-Clause" ]
null
null
null
duckspush/templates/datasources.py
novapost/duckspush
baa9d609a650040c12a721a83d9f45369af90694
[ "BSD-3-Clause" ]
null
null
null
duckspush/templates/datasources.py
novapost/duckspush
baa9d609a650040c12a721a83d9f45369af90694
[ "BSD-3-Clause" ]
null
null
null
#import random ## Collector example function # def collector_test(): # return dict(value=random.randint(1,1000))
19.666667
47
0.728814
77efb314c48149c1e0216c8e444dc767dba7adf8
2,206
py
Python
tests/conftest.py
riddhi150390/splink
eae96a757877cf197608be21b437356732faee6e
[ "MIT" ]
176
2020-03-16T15:19:39.000Z
2022-03-30T06:38:29.000Z
tests/conftest.py
riddhi150390/splink
eae96a757877cf197608be21b437356732faee6e
[ "MIT" ]
194
2020-03-01T21:32:26.000Z
2022-03-30T14:58:38.000Z
tests/conftest.py
riddhi150390/splink
eae96a757877cf197608be21b437356732faee6e
[ "MIT" ]
25
2020-03-07T00:09:22.000Z
2022-03-11T16:28:06.000Z
import pytest import logging logger = logging.getLogger(__name__) @pytest.fixture(scope="module") def spark(): try: from pyspark import SparkContext, SparkConf from pyspark.sql import SparkSession from pyspark.sql import types conf = SparkConf() conf.set("spark.jars.i...
31.070423
86
0.584769
5aa67b18726aa3b5bd632607cec1f8dafea0e8d8
507
py
Python
cache_publications.py
igormcoelho/igormcoelho.github.io
2fe1e3d54f9ffec04fa6cd2f90c7860400a8ecf8
[ "MIT" ]
2
2020-07-12T01:21:20.000Z
2021-06-19T04:05:59.000Z
cache_publications.py
igormcoelho/igormcoelho.github.io
2fe1e3d54f9ffec04fa6cd2f90c7860400a8ecf8
[ "MIT" ]
3
2021-09-28T04:45:57.000Z
2022-02-26T09:16:56.000Z
cache_publications.py
igormcoelho/igormcoelho.github.io
2fe1e3d54f9ffec04fa6cd2f90c7860400a8ecf8
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup papers = BeautifulSoup(open("_site/generate_selected_papers.html").read()) pub_html = papers.body.article.find(id="pub_selected_papers").prettify() f = open('_includes/selected_papers_cache.html', 'w') f.write(pub_html) f.close() from bs4 import BeautifulSoup papers = BeautifulSoup(open("...
33.8
74
0.775148
b3b2c7cd86734b447130a542cb1d091ebbe0b51a
383
py
Python
code/backend/src/database/models/__init__.py
tobiasclaas/semantic-data-lake
16fc25a74918c9ac4d95f14bf3c15af053cee53e
[ "MIT" ]
1
2022-02-23T14:32:38.000Z
2022-02-23T14:32:38.000Z
code/backend/src/database/models/__init__.py
tobiasclaas/semantic-data-lake
16fc25a74918c9ac4d95f14bf3c15af053cee53e
[ "MIT" ]
null
null
null
code/backend/src/database/models/__init__.py
tobiasclaas/semantic-data-lake
16fc25a74918c9ac4d95f14bf3c15af053cee53e
[ "MIT" ]
null
null
null
from .storage import ( BaseStorage, MongodbStorage, PostgresqlStorage, CsvStorage, JsonStorage, XmlStorage ) from .user import User from .workspace import Workspace from .ontology import Ontology from .dataset import Dataset from .metadata import Metadata from .datamart import DatamartStatus, Datamart, Datamart...
27.357143
63
0.81201
7b69ab522eb623e8117709c6ffb1efd8776ba8af
813
py
Python
netsuite/api/predicates.py
fernando-almeida/python-netsuite
da123b23d1af91767c9d10c2a1f60efabd855668
[ "BSD-3-Clause" ]
7
2018-02-09T19:22:56.000Z
2021-01-24T04:05:02.000Z
netsuite/api/predicates.py
fernando-almeida/python-netsuite
da123b23d1af91767c9d10c2a1f60efabd855668
[ "BSD-3-Clause" ]
null
null
null
netsuite/api/predicates.py
fernando-almeida/python-netsuite
da123b23d1af91767c9d10c2a1f60efabd855668
[ "BSD-3-Clause" ]
6
2020-07-28T12:43:10.000Z
2021-06-10T00:17:36.000Z
"""Predicates.""" class RecordTypeSelectorPredicate(object): """Check if a given record type should be selected.""" def __init__(self, record_types=None) """Constructor. Args: record_types: Types of records """ if not (isinstance(record_types, list)): ...
26.225806
77
0.602706
c755540ef9420e4b6811c3cf3842a0bd8a907215
3,800
py
Python
hsfs/numerov.py
aa-morgan/helium-stark-FS
7617c0761398dc60b69bb01c533cfa405c2a3d82
[ "BSD-3-Clause" ]
null
null
null
hsfs/numerov.py
aa-morgan/helium-stark-FS
7617c0761398dc60b69bb01c533cfa405c2a3d82
[ "BSD-3-Clause" ]
null
null
null
hsfs/numerov.py
aa-morgan/helium-stark-FS
7617c0761398dc60b69bb01c533cfa405c2a3d82
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 26 13:08:34 2017 @author: Adam """ from math import ceil, log, exp import numpy as np from numba import jit @jit def wf(n, l, nmax, step=0.005, rmin=0.65): """ Use the Numerov method to find the wavefunction for state n*, l, where n* = n - delta. nma...
26.760563
82
0.485263
6a01980f27ee8bec8c897fe399fd4ada64d6ff03
668
py
Python
Config.py
izzortsi/crypto-trading-ai-bot-basic
38cb5bda778447d55b7854b5d2035e3da0f629b2
[ "MIT" ]
195
2021-01-08T12:46:28.000Z
2022-03-27T19:29:08.000Z
Config.py
izzortsi/crypto-trading-ai-bot-basic
38cb5bda778447d55b7854b5d2035e3da0f629b2
[ "MIT" ]
8
2021-02-04T05:19:40.000Z
2021-10-10T20:32:55.000Z
Config.py
izzortsi/crypto-trading-ai-bot-basic
38cb5bda778447d55b7854b5d2035e3da0f629b2
[ "MIT" ]
93
2021-01-08T12:46:30.000Z
2022-03-13T20:59:12.000Z
DATASET_DIR = "datasets/" COIN_PAIR = "BTC-USD" GRANULARITY = 60 # Data every 1 minute TRAINING_MONTHS = ["2018_06","2018_07","2018_08","2018_09","2018_10","2018_11","2018_12","2019_01", "2019_02","2019_03","2019_04","2019_05","2019_06","2019_07","2019_08","2019_09", "2019_10","20...
41.75
99
0.663174
23e886badebb57d1b989b9e55b0eb786efc54585
4,497
py
Python
utils.py
xavysp/pidinet_xsp
fbf23bdf2dde0f6204c61261eee32a05cd3b499d
[ "MIT" ]
null
null
null
utils.py
xavysp/pidinet_xsp
fbf23bdf2dde0f6204c61261eee32a05cd3b499d
[ "MIT" ]
null
null
null
utils.py
xavysp/pidinet_xsp
fbf23bdf2dde0f6204c61261eee32a05cd3b499d
[ "MIT" ]
null
null
null
""" Utility functions for training Author: Zhuo Su, Wenzhe Liu Date: Aug 22, 2020 """ from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print_function from __future__ import division import os import shutil import math import time import random from PIL import Imag...
28.10625
83
0.594174
62a5c755fccbd76f16e2ae824000cf05bd5c75fe
1,857
py
Python
jelm/tests/test_io.py
endremborza/jelm
6916bbd4ceb909ad3350c56d3a149bdb97671489
[ "MIT" ]
null
null
null
jelm/tests/test_io.py
endremborza/jelm
6916bbd4ceb909ad3350c56d3a149bdb97671489
[ "MIT" ]
null
null
null
jelm/tests/test_io.py
endremborza/jelm
6916bbd4ceb909ad3350c56d3a149bdb97671489
[ "MIT" ]
null
null
null
import json import os import pytest from jelm.core.jelm_class import Jelm from jelm.core.io.input import reads_json, read_json from jelm.tests.network_case_set_class import NetwokCaseTemplate def test_json_reads(): test_dic = {"metadata": {"author": "me"}, "objects": []} dump = json.dumps(test_dic) e...
19.755319
88
0.637588
8f51d7b60fbb6245bc75f1362989e315d9828b4d
341
py
Python
src/lesson_developer_tools/traceback_format_exception.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
3
2018-08-14T09:33:52.000Z
2022-03-21T12:31:58.000Z
src/lesson_developer_tools/traceback_format_exception.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
src/lesson_developer_tools/traceback_format_exception.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
import traceback import sys from pprint import pprint from traceback_example import produce_exception try: produce_exception() except Exception as err: print('format_exception():') exc_type, exc_value, exc_tb = sys.exc_info() pprint( traceback.format_exception(exc_type, exc_value, exc_tb), ...
21.3125
64
0.721408
2327c73aa4f89a42a26301da272b83b597188b73
27
py
Python
monitor/monitor_engine/tests.py
josamuna/codepo-backend
3666527aebcc3bd22b45c359d1bc68abc85a9a47
[ "MIT" ]
7
2020-12-28T23:03:11.000Z
2020-12-30T09:29:47.000Z
monitor/monitor_engine/tests.py
josamuna/codepo-backend
3666527aebcc3bd22b45c359d1bc68abc85a9a47
[ "MIT" ]
23
2020-02-09T12:24:00.000Z
2021-06-04T22:52:45.000Z
monitor/monitor_engine/tests.py
josamuna/codepo-backend
3666527aebcc3bd22b45c359d1bc68abc85a9a47
[ "MIT" ]
2
2020-12-28T23:15:28.000Z
2020-12-29T07:56:37.000Z
# Create your tests here.
13.5
26
0.703704
3b234210e8bd2bb5ae4f029569f7a8149654512c
940
py
Python
front-end-service/audio_consumer.py
Rukundo725/speech-to-text-data-collection
61c3d4858febc81980c854b5112bb629191e45af
[ "MIT", "Unlicense" ]
3
2021-12-03T09:06:31.000Z
2022-03-31T06:13:47.000Z
front-end-service/audio_consumer.py
Rukundo725/speech-to-text-data-collection
61c3d4858febc81980c854b5112bb629191e45af
[ "MIT", "Unlicense" ]
16
2021-09-06T20:19:25.000Z
2021-09-09T20:29:42.000Z
front-end-service/audio_consumer.py
Rukundo725/speech-to-text-data-collection
61c3d4858febc81980c854b5112bb629191e45af
[ "MIT", "Unlicense" ]
4
2021-09-06T19:46:45.000Z
2021-09-08T19:05:31.000Z
from kafka import KafkaConsumer, KafkaProducer import os import json import uuid from concurrent.futures import ThreadPoolExecutor from scipy.io.wavfile import read, write import pydub import io import boto3 s3 = boto3.resource('s3') if __name__ == "__main__": TOPIC_NAME = "audio" consumer = KafkaConsumer(TOPIC_NA...
32.413793
142
0.730851
b913385f26700b04dd5f9a4018aa9a7732898bac
1,082
py
Python
libdata/chexpert_index/split_trainset.py
google-research/understanding-transfer-learning
0e4df444f342784514d91028d0de332103343a94
[ "Apache-2.0" ]
35
2020-11-10T18:50:20.000Z
2022-01-06T05:37:56.000Z
libdata/chexpert_index/split_trainset.py
MLC-CV/transfer-learning-understanding
0e4df444f342784514d91028d0de332103343a94
[ "Apache-2.0" ]
null
null
null
libdata/chexpert_index/split_trainset.py
MLC-CV/transfer-learning-understanding
0e4df444f342784514d91028d0de332103343a94
[ "Apache-2.0" ]
10
2020-11-17T01:22:07.000Z
2022-03-10T21:48:35.000Z
#!/usr/bin/python # 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 or agre...
28.473684
74
0.715342
83d9b052365e6fa8d2da387d7762b65219856260
236
py
Python
project/apps/hiking/views.py
skoczen/skoczen
07d22029e7c9e21bc3322e26072471d01c059cc4
[ "BSD-2-Clause" ]
null
null
null
project/apps/hiking/views.py
skoczen/skoczen
07d22029e7c9e21bc3322e26072471d01c059cc4
[ "BSD-2-Clause" ]
null
null
null
project/apps/hiking/views.py
skoczen/skoczen
07d22029e7c9e21bc3322e26072471d01c059cc4
[ "BSD-2-Clause" ]
null
null
null
from annoying.decorators import render_to from hiking.models import Hike @render_to("hiking/home.html") def home(request): hike = Hike.objects.order_by("-date") if hike.count() > 0: hike = hike[0] return locals()
19.666667
41
0.677966
8d14dcb75889fff2ebe1fbe06c22d283584c81e7
2,581
py
Python
saleor/core/templatetags/status.py
ProgrammingJoe/saleor
f89dbafe0b31c226e267b7a516a09dd5168e1911
[ "BSD-3-Clause" ]
2
2018-12-24T01:00:13.000Z
2019-01-21T15:09:16.000Z
saleor/core/templatetags/status.py
ProgrammingJoe/saleor
f89dbafe0b31c226e267b7a516a09dd5168e1911
[ "BSD-3-Clause" ]
64
2019-02-11T17:02:05.000Z
2021-06-25T15:16:57.000Z
saleor/core/templatetags/status.py
ProgrammingJoe/saleor
f89dbafe0b31c226e267b7a516a09dd5168e1911
[ "BSD-3-Clause" ]
2
2019-01-08T02:32:42.000Z
2021-07-05T14:05:55.000Z
from django.template import Library from payments import PaymentStatus from ...order import OrderStatus from ...product import ProductAvailabilityStatus, VariantAvailabilityStatus from ...product.utils.availability import ( get_product_availability_status, get_variant_availability_status) register = Library() E...
31.864198
75
0.748547
c68dafee2ba404b5fd38870662c409e1910966b3
16,912
py
Python
molpal/models/nnmodels.py
jenna-fromer/molpal
a6320610d0c9ecd708f4a709110f272867eaa6cf
[ "MIT" ]
null
null
null
molpal/models/nnmodels.py
jenna-fromer/molpal
a6320610d0c9ecd708f4a709110f272867eaa6cf
[ "MIT" ]
null
null
null
molpal/models/nnmodels.py
jenna-fromer/molpal
a6320610d0c9ecd708f4a709110f272867eaa6cf
[ "MIT" ]
null
null
null
"""This module contains Model implementations that utilize an NN model as their underlying model""" from functools import partial import json from pathlib import Path from typing import Callable, Iterable, List, NoReturn, Optional, Sequence, Tuple, TypeVar import numpy as np from numpy import ndarray from tqdm import ...
29.058419
91
0.5965
f65ceb4e61c02d69cccbd2427328a854ad1544b7
359
py
Python
BotUtils.py
cancinconntg/altermebot
1e49d592e2977087719d59c50d7b6083bfe3522b
[ "Apache-2.0" ]
null
null
null
BotUtils.py
cancinconntg/altermebot
1e49d592e2977087719d59c50d7b6083bfe3522b
[ "Apache-2.0" ]
null
null
null
BotUtils.py
cancinconntg/altermebot
1e49d592e2977087719d59c50d7b6083bfe3522b
[ "Apache-2.0" ]
1
2021-07-21T19:58:37.000Z
2021-07-21T19:58:37.000Z
import re ALIAS_MAX_LENGTH = 32 ALIAS_MIN_LENGTH = 2 ALIASES_MAX_COUNT = 10 ALIASING_ENABLED = 1 ALIASING_DISABLED = 0 HEALTH_SYSTEM_MESSAGING = 0 HEALTH_SYSTEM_MESSAGING_OK = 1 def escape_markdown(text): """Helper function to escape telegram markup symbols.""" escape_chars = '\*_`\[' return re.sub(r'...
18.894737
60
0.715877
3f47439f089d388a8d8baa08f3bb8831434aacf7
1,620
py
Python
autonormalize/examples/script.py
j-grover/autonormalize
764a652fadf1a7ec544c3447120d11aa29a11435
[ "BSD-3-Clause" ]
68
2019-08-14T22:01:23.000Z
2021-03-10T21:33:36.000Z
autonormalize/examples/script.py
j-grover/autonormalize
764a652fadf1a7ec544c3447120d11aa29a11435
[ "BSD-3-Clause" ]
26
2019-08-15T15:49:19.000Z
2021-03-08T15:27:22.000Z
autonormalize/examples/script.py
j-grover/autonormalize
764a652fadf1a7ec544c3447120d11aa29a11435
[ "BSD-3-Clause" ]
9
2019-10-18T00:49:23.000Z
2021-04-14T05:42:50.000Z
import os import time import pandas as pd import dfd import user_interaction path = os.getcwd() df = pd.read_csv(os.path.join(path, 'example_3')) df_3 = pd.read_csv(os.path.join(path, 'example_4')) df_acc = pd.read_csv(os.path.join(path, 'accredation.csv')) df_acc = df_acc.drop(columns=df_acc.columns[10:]) dic...
22.816901
73
0.592593
4d7674ee23517cd008b6ad1efde19930e34f462e
551
py
Python
news/migrations/0004_auto_20191001_1620.py
alex-muliande/tribune
86316dd4b20a76320b4b20b86266f89aac02a326
[ "MIT" ]
1
2019-10-18T13:45:42.000Z
2019-10-18T13:45:42.000Z
news/migrations/0004_auto_20191001_1620.py
alex-muliande/tribune
86316dd4b20a76320b4b20b86266f89aac02a326
[ "MIT" ]
5
2020-02-12T03:14:22.000Z
2021-09-08T01:19:18.000Z
news/migrations/0004_auto_20191001_1620.py
alex-muliande/tribune
86316dd4b20a76320b4b20b86266f89aac02a326
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-10-01 13:20 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('news', '0003_article'), ] operations = [ migrations.RemoveField( model_na...
20.407407
46
0.553539
55fe41af298a24f05bd1b18085d0fd4b972d243f
5,074
py
Python
exasol_integration_test_docker_environment/lib/docker/images/create/docker_image_create_task.py
exasol/integration-test-docker-environment
35850f67cd4cde010f03dd556d1a0f74b3291eb8
[ "MIT" ]
4
2020-06-25T20:47:31.000Z
2021-09-10T15:22:51.000Z
exasol_integration_test_docker_environment/lib/docker/images/create/docker_image_create_task.py
exasol/integration-test-docker-environment
35850f67cd4cde010f03dd556d1a0f74b3291eb8
[ "MIT" ]
113
2020-06-02T08:51:08.000Z
2022-03-31T08:47:41.000Z
exasol_integration_test_docker_environment/lib/docker/images/create/docker_image_create_task.py
exasol/integration-test-docker-environment
35850f67cd4cde010f03dd556d1a0f74b3291eb8
[ "MIT" ]
2
2020-05-19T10:57:47.000Z
2020-06-22T13:32:20.000Z
import copy import importlib import luigi from exasol_integration_test_docker_environment.lib.base.docker_base_task import DockerBaseTask from exasol_integration_test_docker_environment.lib.base.json_pickle_parameter import JsonPickleParameter from exasol_integration_test_docker_environment.lib.docker.images.create.d...
53.410526
115
0.692156
d69fad201e1996a93a0c07ab89caabf4c7815228
7,056
py
Python
train.py
l-willis/dc_tts
086877481157bf876ab1f8ec7b4384fd607c2bb6
[ "Apache-2.0" ]
1,167
2018-01-28T00:52:42.000Z
2022-03-24T11:59:34.000Z
train.py
l-willis/dc_tts
086877481157bf876ab1f8ec7b4384fd607c2bb6
[ "Apache-2.0" ]
94
2018-01-28T00:53:43.000Z
2022-03-27T06:34:16.000Z
train.py
l-willis/dc_tts
086877481157bf876ab1f8ec7b4384fd607c2bb6
[ "Apache-2.0" ]
387
2018-01-28T07:09:47.000Z
2022-02-21T17:23:08.000Z
# -*- coding: utf-8 -*- # /usr/bin/python2 ''' By kyubyong park. kbpark.linguist@gmail.com. https://www.github.com/kyubyong/dc_tts ''' from __future__ import print_function from tqdm import tqdm from data_load import get_batch, load_vocab from hyperparams import Hyperparams as hp from modules import * from networks...
43.288344
151
0.558957
de252525d4255b589ecc3a4a59ea424990fa18a4
2,283
py
Python
service/googlecloudstorage.py
sesam-community/xml-translator
b77f18ca8b85012df21843543e386945f0824265
[ "Apache-2.0" ]
null
null
null
service/googlecloudstorage.py
sesam-community/xml-translator
b77f18ca8b85012df21843543e386945f0824265
[ "Apache-2.0" ]
2
2019-12-26T17:05:03.000Z
2020-01-06T19:13:43.000Z
service/googlecloudstorage.py
sesam-community/xml-translator
b77f18ca8b85012df21843543e386945f0824265
[ "Apache-2.0" ]
1
2019-11-12T09:29:11.000Z
2019-11-12T09:29:11.000Z
from google.cloud import storage import logging from flask import abort # class for reading files from a Google cloud storage class GoogleCloudStorage: """ initiate class, the class is taking the path to the file storing the credentials for the Google cloud storage, the credentials itself, and the name ...
37.42623
115
0.631187
e8b5fdb0b1b58a4479f483c85f1113b570315da4
2,458
py
Python
src/puremvc/patterns/mediator.py
scVENUS/puremvc-python-standard-framework
942bec84220fbc601e8064104199881271ad54c9
[ "BSD-3-Clause" ]
12
2015-01-26T03:48:00.000Z
2021-12-13T06:08:28.000Z
src/puremvc/patterns/mediator.py
scVENUS/puremvc-python-standard-framework
942bec84220fbc601e8064104199881271ad54c9
[ "BSD-3-Clause" ]
4
2016-01-25T15:48:35.000Z
2018-02-19T17:02:20.000Z
src/puremvc/patterns/mediator.py
scVENUS/puremvc-python-standard-framework
942bec84220fbc601e8064104199881271ad54c9
[ "BSD-3-Clause" ]
12
2015-09-02T03:49:52.000Z
2021-01-24T15:23:59.000Z
""" PureMVC Python Port by Toby de Havilland <toby.de.havilland@puremvc.org> PureMVC - Copyright(c) 2006-08 Futurescale, Inc., Some rights reserved. Your reuse is governed by the Creative Commons Attribution 3.0 License """ import puremvc.interfaces import puremvc.patterns.observer import puremvc.patterns.facade c...
27.931818
111
0.633035
f5acc46b66e681a60e2ff23dd03f15da3b24a902
4,912
py
Python
telestream_cloud_qc_sdk/telestream_cloud_qc/models/header_byte_count_test.py
pandastream/telestream-cloud-python-sdk
ce0ad503299661a0f622661359367173c06889fc
[ "MIT" ]
null
null
null
telestream_cloud_qc_sdk/telestream_cloud_qc/models/header_byte_count_test.py
pandastream/telestream-cloud-python-sdk
ce0ad503299661a0f622661359367173c06889fc
[ "MIT" ]
2
2016-07-06T14:13:31.000Z
2018-03-07T12:54:58.000Z
telestream_cloud_qc_sdk/telestream_cloud_qc/models/header_byte_count_test.py
Telestream/telestream-cloud-python-sdk
ce0ad503299661a0f622661359367173c06889fc
[ "MIT" ]
null
null
null
# coding: utf-8 """ Qc API Qc API # noqa: E501 The version of the OpenAPI document: 3.0.0 Contact: cloudsupport@telestream.net Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from telestream_cloud_qc.configuration import Configuration class...
28.229885
123
0.599959
1d859ab31d8318df08dc7e7977cee8558ecd90a2
437
py
Python
2020/skel/main.py
MWers/advent-of-code
15cc983d81e0154fd3926739c77b33dc1da911a4
[ "MIT" ]
null
null
null
2020/skel/main.py
MWers/advent-of-code
15cc983d81e0154fd3926739c77b33dc1da911a4
[ "MIT" ]
null
null
null
2020/skel/main.py
MWers/advent-of-code
15cc983d81e0154fd3926739c77b33dc1da911a4
[ "MIT" ]
null
null
null
import argparse from typing import List parser = argparse.ArgumentParser(description='Run an Advent of Code program') parser.add_argument( 'input_file', type=str, help='the file containing input data' ) parser.add_argument( '--debug', action='store_true', help='print debug messages' ) args = parser.parse_args(...
25.705882
77
0.732265
a2a5779fc48816f5c96f4082c4484d18b5807dc6
1,305
py
Python
Algorithms/1092/spfa.py
M-Quadra/LeetCode-problems
0cc100aa1e50b02df289f04fe2e0b97239eb9895
[ "MIT" ]
null
null
null
Algorithms/1092/spfa.py
M-Quadra/LeetCode-problems
0cc100aa1e50b02df289f04fe2e0b97239eb9895
[ "MIT" ]
null
null
null
Algorithms/1092/spfa.py
M-Quadra/LeetCode-problems
0cc100aa1e50b02df289f04fe2e0b97239eb9895
[ "MIT" ]
null
null
null
from typing import List from queue import Queue,PriorityQueue class Solution: def shortestCommonSupersequence(self, str1: str, str2: str) -> str: opt = str1 + str2 lenDic = {(0, 0): 0} q = Queue() q.put(("", 0, 0)) while not q.empty(): now, i1, i2 = q.get() ...
32.625
71
0.413793
401254f5d4ef3eb9a58793100c573fbdc8ac8e4e
19,289
py
Python
train.py
liv0vil/Computer-Vision-FixMatch
7614cde1b4be1d5461e3354faacad33a01f1a9b2
[ "MIT" ]
503
2020-01-30T02:48:16.000Z
2022-03-30T13:32:46.000Z
train.py
liv0vil/Computer-Vision-FixMatch
7614cde1b4be1d5461e3354faacad33a01f1a9b2
[ "MIT" ]
48
2020-02-28T09:38:19.000Z
2022-02-09T11:07:05.000Z
train.py
liv0vil/Computer-Vision-FixMatch
7614cde1b4be1d5461e3354faacad33a01f1a9b2
[ "MIT" ]
130
2020-01-31T08:49:14.000Z
2022-03-29T07:58:10.000Z
import argparse import logging import math import os import random import shutil import time from collections import OrderedDict import numpy as np import torch import torch.nn.functional as F import torch.optim as optim from torch.optim.lr_scheduler import LambdaLR from torch.utils.data import DataLoader, RandomSampl...
39.046559
238
0.581938
7a1314852587354c517d97d413c6b60b2a6101e2
37,260
py
Python
ARTDeco/main.py
davebx/ARTDeco
1b08583a2e23015f6bc444919b2e10d5fb1bcf19
[ "MIT" ]
1
2022-02-02T04:03:45.000Z
2022-02-02T04:03:45.000Z
ARTDeco/main.py
davebx/ARTDeco
1b08583a2e23015f6bc444919b2e10d5fb1bcf19
[ "MIT" ]
8
2019-04-29T18:33:38.000Z
2022-03-16T12:17:52.000Z
ARTDeco/main.py
davebx/ARTDeco
1b08583a2e23015f6bc444919b2e10d5fb1bcf19
[ "MIT" ]
4
2019-04-26T21:44:51.000Z
2022-03-10T15:32:20.000Z
''' Main script for running ARTDeco. Contains code to run each of the modes. ''' from .misc import ARTDecoDir,infer_experiments_group,output_inferred_format,summarize_bam_files,get_regions_exp from .preprocess import parse_gtf,create_stranded_downstream_df,create_stranded_read_in_df,\ create_unstranded_downstream_d...
50.351351
124
0.600134
de55d4438511c2128b11627b1d5374a495e0798b
735
py
Python
garagem/migrations/0001_initial.py
araujo88/minhaGaragem
31fb16a686eef2caa26e194c03a0528e43867188
[ "MIT" ]
null
null
null
garagem/migrations/0001_initial.py
araujo88/minhaGaragem
31fb16a686eef2caa26e194c03a0528e43867188
[ "MIT" ]
null
null
null
garagem/migrations/0001_initial.py
araujo88/minhaGaragem
31fb16a686eef2caa26e194c03a0528e43867188
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-16 04:28 from django.db import migrations, models import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Veiculo', fields=[ ('tipo', mod...
28.269231
125
0.567347
078566f13ce531287701b07b35096a1713e3fe65
6,576
py
Python
3.3.2/gdal-utils/osgeo_utils/gdal_fillnodata.py
benjamintd/pygdal
1cd86a248f944e2ab28a818c3648b7d7c065e252
[ "MIT" ]
1
2020-11-13T09:22:12.000Z
2020-11-13T09:22:12.000Z
flusstools/osgeo_utils/gdal_fillnodata.py
Ecohydraulics/flusstools
ab356788846dee089af146e924822dfafd096828
[ "BSD-3-Clause" ]
null
null
null
flusstools/osgeo_utils/gdal_fillnodata.py
Ecohydraulics/flusstools
ab356788846dee089af146e924822dfafd096828
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # ****************************************************************************** # $Id$ # # Project: GDAL Python Interface # Purpose: Application for filling nodata areas in a raster by interpolation # Author: Frank Warmerdam, warmerdam@pobox.com # # **************************************...
30.586047
95
0.517336
9abded428ecc595262538c22fb751686427a9593
512
py
Python
requests/__version__.py
AbishiekJay/MyRequest
dd9d8d2f401b29e91deea9e36875d8660e773170
[ "Apache-2.0" ]
null
null
null
requests/__version__.py
AbishiekJay/MyRequest
dd9d8d2f401b29e91deea9e36875d8660e773170
[ "Apache-2.0" ]
null
null
null
requests/__version__.py
AbishiekJay/MyRequest
dd9d8d2f401b29e91deea9e36875d8660e773170
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # .-. .-. .-. . . .-. .-. .-. .-. # |( |- |.| | | |- `-. | `-. # ' ' `-' `-`.`-' `-' `-' ' `-' __title__ = 'requests' __description__ = 'Python HTTP for Humans.' __url__ = 'http://python-requests.org' __version__ = '2.14.2' __build__ = 0x021402 __author__ = 'Kenneth Reitz' __author_emai...
32
90
0.580078
9a5c1f68a20ae77f851b7c77808363e8f8cfadda
1,714
py
Python
swap_in/clothes/models/clothes.py
Swap-in/swap.in_master
22b052749bcaf779cde709fd8dde6129715d0314
[ "MIT" ]
null
null
null
swap_in/clothes/models/clothes.py
Swap-in/swap.in_master
22b052749bcaf779cde709fd8dde6129715d0314
[ "MIT" ]
null
null
null
swap_in/clothes/models/clothes.py
Swap-in/swap.in_master
22b052749bcaf779cde709fd8dde6129715d0314
[ "MIT" ]
null
null
null
# Django from django.db import models # Models from swap_in.users.models import User from swap_in.utils.models import SwapinModel from .categories import category TYPE_GENDER = [ ("FEMALE", "FEMALE"), ("MALE", "MALE"), ("UNISEX", "UNISEX") ] class Clothes(SwapinModel): """Clothes ...
23.162162
44
0.507585
7aa78d118bc9bd0b2d8da4477f5af1366ad98597
2,107
py
Python
project_name/settings.py
joshvillbrandt/django-quick-start-project
e7ddb6f80a2a36f12f3a5415aef49a3dcd703888
[ "Apache-2.0" ]
2
2017-09-30T14:45:40.000Z
2018-03-10T13:25:42.000Z
project_name/settings.py
joshvillbrandt/django-quick-start-project
e7ddb6f80a2a36f12f3a5415aef49a3dcd703888
[ "Apache-2.0" ]
null
null
null
project_name/settings.py
joshvillbrandt/django-quick-start-project
e7ddb6f80a2a36f12f3a5415aef49a3dcd703888
[ "Apache-2.0" ]
1
2022-02-13T09:40:56.000Z
2022-02-13T09:40:56.000Z
""" Django settings for {{ project_name }} project. For more information on this file, see https://docs.djangoproject.com/en/{{ docs_version }}/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/ """ # Build paths inside the project ...
24.788235
86
0.719032
447263db6850010a7828305b60c3bee72703dde1
3,784
py
Python
tensor2tensor/data_generators/quora_qpairs.py
jaseweir/tensor2tensor
2a33b152d7835af66a6d20afe7961751047e28dd
[ "Apache-2.0" ]
12,921
2017-06-15T17:11:46.000Z
2022-03-31T15:22:11.000Z
tensor2tensor/data_generators/quora_qpairs.py
jaseweir/tensor2tensor
2a33b152d7835af66a6d20afe7961751047e28dd
[ "Apache-2.0" ]
1,635
2017-06-18T15:29:27.000Z
2022-03-19T20:35:23.000Z
tensor2tensor/data_generators/quora_qpairs.py
jaseweir/tensor2tensor
2a33b152d7835af66a6d20afe7961751047e28dd
[ "Apache-2.0" ]
3,521
2017-06-15T18:25:42.000Z
2022-03-31T05:47:55.000Z
# coding=utf-8 # Copyright 2021 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
30.516129
79
0.707452
032bf77c610e3d4eb6da5358889a46fd510bc4b8
276
py
Python
pwnlib/filesystem/path.py
tkmikan/pwntools
1238fc359eb72313d3f82849b2effdb7063ab429
[ "MIT" ]
8,966
2015-01-02T11:58:14.000Z
2022-03-31T21:19:56.000Z
pwnlib/filesystem/path.py
tkmikan/pwntools
1238fc359eb72313d3f82849b2effdb7063ab429
[ "MIT" ]
1,401
2015-01-01T00:56:22.000Z
2022-03-31T16:19:53.000Z
pwnlib/filesystem/path.py
tkmikan/pwntools
1238fc359eb72313d3f82849b2effdb7063ab429
[ "MIT" ]
1,844
2015-01-07T04:38:06.000Z
2022-03-30T03:54:46.000Z
import six import tempfile if six.PY3: from pathlib import * else: from pathlib2 import * @classmethod def mktemp(cls): return cls(tempfile.mktemp()) @classmethod def mkdtemp(cls): return cls(tempfile.mkdtemp()) Path.mktemp = mktemp Path.mkdtemp = mkdtemp
14.526316
34
0.717391
a8615309cb4ec296ecee2675dc364629291dd52b
506
py
Python
com/blueberr/python/study/day1/interaction.py
CoderHongKong/python-study
4e13359e3546b67d555a79adee63422cac7968c2
[ "Apache-2.0" ]
null
null
null
com/blueberr/python/study/day1/interaction.py
CoderHongKong/python-study
4e13359e3546b67d555a79adee63422cac7968c2
[ "Apache-2.0" ]
null
null
null
com/blueberr/python/study/day1/interaction.py
CoderHongKong/python-study
4e13359e3546b67d555a79adee63422cac7968c2
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- #!/usr/bin/env python #------------------------------------------------------------------------------- # Name: # Purpose: # # Author: hekai #------------------------------------------------------------------------------- name = input("name:") pwd = input("pwd:") age = int(input("age...
16.322581
80
0.367589
c2ef9b9232407070c45955419539f04d3b2db128
2,285
py
Python
src/deepproblog/examples/neurogta/train_on_more_data.py
vossenwout/gtadeepproblog
65509b740518af422b96e84ef10716e0ac246e75
[ "Apache-2.0" ]
null
null
null
src/deepproblog/examples/neurogta/train_on_more_data.py
vossenwout/gtadeepproblog
65509b740518af422b96e84ef10716e0ac246e75
[ "Apache-2.0" ]
null
null
null
src/deepproblog/examples/neurogta/train_on_more_data.py
vossenwout/gtadeepproblog
65509b740518af422b96e84ef10716e0ac246e75
[ "Apache-2.0" ]
null
null
null
import torch from deepproblog.engines import ExactEngine from deepproblog.examples.neurogta.data.dataset import train_dataset, test_dataset from deepproblog.model import Model from deepproblog.network import Network from deepproblog.dataset import DataLoader from deepproblog.engines import ExactEngine from deepproblo...
29.294872
84
0.791685
ad8a5eb792aae7ff19a44c7cfa95795f02fde078
789
py
Python
built-in/PyTorch/Official/cv/image_classification/Gluon_ResNet50_v1d_for_PyTorch/hubconf.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/PyTorch/Official/cv/image_classification/Gluon_ResNet50_v1d_for_PyTorch/hubconf.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/PyTorch/Official/cv/image_classification/Gluon_ResNet50_v1d_for_PyTorch/hubconf.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright [yyyy] [name of copyright owner] # Copyright 2021 Huawei Technologies Co., Ltd # # 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.or...
37.571429
78
0.721166
86e4b9137d76900952dc519cec28e05827550bf8
2,490
py
Python
tests/test_parse_context.py
gubschk/CDEWIP
fb628593417df5f955eb1fa62176b7cb3c322ebc
[ "MIT" ]
null
null
null
tests/test_parse_context.py
gubschk/CDEWIP
fb628593417df5f955eb1fa62176b7cb3c322ebc
[ "MIT" ]
null
null
null
tests/test_parse_context.py
gubschk/CDEWIP
fb628593417df5f955eb1fa62176b7cb3c322ebc
[ "MIT" ]
1
2021-02-21T02:51:39.000Z
2021-02-21T02:51:39.000Z
# -*- coding: utf-8 -*- """ test_parse_apparatus ~~~~~~~~~~~~~~~~~~~~ """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import unittest from lxml import etree from chemdataextrac...
35.571429
222
0.669478
23dcaad02972a1fdf94b45ba9fb8b7a9ecd6fc36
3,309
py
Python
sopel_modules/sports/mlb.py
RustyBower/sopel-sports
302333371a0d24e653978e18eac1c6796dca1992
[ "MIT" ]
1
2021-10-01T15:38:53.000Z
2021-10-01T15:38:53.000Z
sopel_modules/sports/mlb.py
RustyBower/sopel-sports
302333371a0d24e653978e18eac1c6796dca1992
[ "MIT" ]
8
2020-02-23T00:30:46.000Z
2021-09-26T16:03:09.000Z
sopel_modules/sports/mlb.py
RustyBower/sopel-sports
302333371a0d24e653978e18eac1c6796dca1992
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2019, Rusty Bower, rustybower.com import arrow import requests from sopel.formatting import bold from sopel.module import commands, example def parse_games(date): if date: r = requests.get( "https://statsapi.mlb.com/api/v1/schedule?sportId=1&date={}".format(date) ...
37.602273
85
0.414929
9a452cd5aefae61e8f8734abb9e18f3e71576a07
1,218
py
Python
pyvisdk/do/host_cnx_failed_no_connection_event.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/host_cnx_failed_no_connection_event.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/host_cnx_failed_no_connection_event.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def HostCnxFailedNoConnectionEvent(vim, *args, **kwargs): '''This event records a failure...
34.8
124
0.614943
6c63e1aa11dd355b3ea3fb2b6c70dd70ecef6fa9
88
py
Python
tests/periodicities/Hour/Cycle_Hour_3200_H_30.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/periodicities/Hour/Cycle_Hour_3200_H_30.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/periodicities/Hour/Cycle_Hour_3200_H_30.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.tests.periodicities.period_test as per per.buildModel((30 , 'H' , 3200));
17.6
50
0.727273
aff9983d1697103bd24ad5c778ae7a2ff1cb41e5
9,603
py
Python
zerver/tests/test_alert_words.py
sa2c/zulip
a00d911ed1071e6a8bbaa17d8df9e96115973588
[ "Apache-2.0" ]
1
2021-05-15T00:44:42.000Z
2021-05-15T00:44:42.000Z
zerver/tests/test_alert_words.py
sa2c/zulip
a00d911ed1071e6a8bbaa17d8df9e96115973588
[ "Apache-2.0" ]
1
2019-12-24T06:51:52.000Z
2019-12-24T06:51:52.000Z
zerver/tests/test_alert_words.py
sa2c/zulip
a00d911ed1071e6a8bbaa17d8df9e96115973588
[ "Apache-2.0" ]
1
2021-07-22T10:14:08.000Z
2021-07-22T10:14:08.000Z
import orjson from zerver.lib.actions import do_add_alert_words, do_remove_alert_words from zerver.lib.alert_words import alert_words_in_realm, user_alert_words from zerver.lib.test_classes import ZulipTestCase from zerver.lib.test_helpers import most_recent_message, most_recent_usermessage from zerver.models import A...
39.681818
95
0.649797
177718b33dc92ce41940f9dc56cc200f255f3ea9
7,043
py
Python
discord/ui/input_text.py
zearakun/pycyat
5f77f120df0caf6e4c4dd8b8f03c426354b0882f
[ "MIT" ]
null
null
null
discord/ui/input_text.py
zearakun/pycyat
5f77f120df0caf6e4c4dd8b8f03c426354b0882f
[ "MIT" ]
null
null
null
discord/ui/input_text.py
zearakun/pycyat
5f77f120df0caf6e4c4dd8b8f03c426354b0882f
[ "MIT" ]
null
null
null
from __future__ import annotations import os from typing import TYPE_CHECKING, Optional from ..components import InputText as InputTextComponent from ..enums import ComponentType, InputTextStyle from ..utils import MISSING __all__ = ("InputText",) if TYPE_CHECKING: from ..types.components import InputText as In...
37.663102
109
0.650859
e395e0e044aab6f7b82bd9dba6afbfff2001bbd5
1,677
py
Python
roll_prob.py
slaymaker1907/dnd-stuff
7da4294fadcf52759a033d68f5b429d571870ff7
[ "MIT" ]
null
null
null
roll_prob.py
slaymaker1907/dnd-stuff
7da4294fadcf52759a033d68f5b429d571870ff7
[ "MIT" ]
null
null
null
roll_prob.py
slaymaker1907/dnd-stuff
7da4294fadcf52759a033d68f5b429d571870ff7
[ "MIT" ]
null
null
null
import collections as c # Dicts mapping rolls to probabilities. def combine_rolls(roll1, roll2): result = c.defaultdict(lambda: 0) for value1, prob1 in roll1.items(): for value2, prob2 in roll2.items(): result[value1 + value2] += prob1 * prob2 return result def generic_roll(dice_type, ...
29.946429
62
0.627311
22915b91623e8b3eeb5b8c65d97961d3e45b148d
14,570
py
Python
morf-python-api/build/lib/morf/workflow/extract.py
jpgard/morf
f17afcacef68929a5ce9e7714208be1002a42418
[ "MIT" ]
14
2018-06-27T13:15:46.000Z
2021-08-30T08:24:38.000Z
morf-python-api/build/lib/morf/workflow/extract.py
jpgard/morf
f17afcacef68929a5ce9e7714208be1002a42418
[ "MIT" ]
58
2018-02-03T15:31:15.000Z
2019-10-15T02:12:05.000Z
morf-python-api/build/lib/morf/workflow/extract.py
jpgard/morf
f17afcacef68929a5ce9e7714208be1002a42418
[ "MIT" ]
7
2018-03-29T14:47:34.000Z
2021-06-22T01:34:52.000Z
# Copyright (c) 2018 The Regents of the University of Michigan # and the University of Pennsylvania # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without li...
50.590278
172
0.704118
c5389057ce8c483ea98a57cca8e33012d0dce7fd
1,446
py
Python
examples/searchbot_example.py
tysen2k/ffai
2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec
[ "Apache-2.0" ]
null
null
null
examples/searchbot_example.py
tysen2k/ffai
2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec
[ "Apache-2.0" ]
null
null
null
examples/searchbot_example.py
tysen2k/ffai
2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from ffai.core import Agent, Game from ffai.core.load import * from ffai.ai.registry import register_bot, make_bot import examples.scripted_bot_example # Load configurations, rules, arena and teams config = load_config("bot-bowl-i.json") ruleset = load_rule_set(config.ruleset, all_rules=False)...
29.510204
92
0.697787
942c3627acd262b51a189fafadf3a87b1248fa70
205
py
Python
src/eavatar.ava/ava/__init__.py
eavatar/ava
4f09c5417b7187dd919b7edabb8c516d8efc0696
[ "BSD-3-Clause" ]
null
null
null
src/eavatar.ava/ava/__init__.py
eavatar/ava
4f09c5417b7187dd919b7edabb8c516d8efc0696
[ "BSD-3-Clause" ]
null
null
null
src/eavatar.ava/ava/__init__.py
eavatar/ava
4f09c5417b7187dd919b7edabb8c516d8efc0696
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import time VERSION_MAJOR = 0 VERSION_MINOR = 1 VERSION_MICRO = time.time() __version__ = '%d.%d.%d' % (VERSION_MAJOR, VERSION_MINOR, VERSION_MICRO) VERSION_STRING = __version__
18.636364
72
0.717073
9fccdf46a86e70b879eb9c475d56ba89c04aa4b6
904
py
Python
src/euler_python_package/euler_python/medium/p188.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p188.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p188.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
# # import sys from euler_python.utils import eulerlib def problem188(): x, y, m = 1777, 1855, 10 ** 8 sys.setrecursionlimit( y + 30 ) # Because the default recursion limit of 1000 is insufficient ans = tetration_mod(x, y, m) return ans def tetration_mod(x, y, m): if y == 1: ...
19.652174
83
0.484513
31d9b97154e9c376a0f7765397099fd09f1e86f9
4,139
py
Python
bigml/api_handlers/timeserieshandler.py
mmerce/python
696ddc2a10c985cfe266ec2807c24b98f0c9a317
[ "Apache-2.0" ]
null
null
null
bigml/api_handlers/timeserieshandler.py
mmerce/python
696ddc2a10c985cfe266ec2807c24b98f0c9a317
[ "Apache-2.0" ]
6
2016-10-27T18:26:12.000Z
2017-10-03T22:54:20.000Z
bigml/api_handlers/timeserieshandler.py
mmerce/python
696ddc2a10c985cfe266ec2807c24b98f0c9a317
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017-2020 BigML # # 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 ...
36.307018
76
0.657405
bf5ce32e8a8339c4e84d6a73d1169490899ae6a8
17,659
py
Python
tests/test_basic.py
pierretr/troposphere
1bd6a010a3132aa3436ffe6b892f352876face4b
[ "BSD-2-Clause" ]
4,573
2015-01-02T20:31:04.000Z
2022-03-31T17:15:32.000Z
tests/test_basic.py
pierretr/troposphere
1bd6a010a3132aa3436ffe6b892f352876face4b
[ "BSD-2-Clause" ]
1,730
2015-01-02T19:24:47.000Z
2022-03-31T23:22:52.000Z
tests/test_basic.py
pierretr/troposphere
1bd6a010a3132aa3436ffe6b892f352876face4b
[ "BSD-2-Clause" ]
1,753
2015-01-01T01:24:12.000Z
2022-03-27T05:36:17.000Z
import pickle import unittest from troposphere import ( AWSObject, AWSProperty, Cidr, If, Join, NoValue, Output, Parameter, Ref, Region, Split, Sub, Template, cloudformation, depends_on_helper, ) from troposphere.ec2 import Instance, NetworkInterface, Route, ...
30.394148
85
0.579931
894376bd4fd9e4abb84a9c267679c5eadbcd2b9b
1,335
py
Python
tests/validation_data.py
DSAdv/tcp-tls-tunnel-py
e9b5271e4cfae1df09b9fab77db4906b7cee8337
[ "MIT" ]
1
2021-08-30T21:03:41.000Z
2021-08-30T21:03:41.000Z
tests/validation_data.py
DSAdv/tcp-tls-tunnel-py
e9b5271e4cfae1df09b9fab77db4906b7cee8337
[ "MIT" ]
1
2022-03-31T12:02:29.000Z
2022-03-31T12:02:29.000Z
tests/validation_data.py
DSAdv/tcp-tls-tunnel-py
e9b5271e4cfae1df09b9fab77db4906b7cee8337
[ "MIT" ]
1
2021-08-28T14:35:18.000Z
2021-08-28T14:35:18.000Z
HOWSMYSSL_VALIDATION_RESPONSE = { 'given_cipher_suites': [ 'TLS_GREASE_IS_THE_WORD_AA', 'TLS_AES_128_GCM_SHA256', 'TLS_AES_256_GCM_SHA384', 'TLS_CHACHA20_POLY1305_SHA256', 'TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256', ...
43.064516
64
0.602247
48b861b4975598c12cc3b1ba2a63e9d06b3ae77d
7,828
py
Python
tests/network_coefficient_plots.py
RenYuanXue/residual-sample-nn
0f05a88c9e9d99b3c1c73dc4d8a2d638a689ebfb
[ "MIT" ]
2
2020-03-06T00:27:19.000Z
2020-03-06T00:27:57.000Z
tests/network_coefficient_plots.py
RenYuanXue/residual-sample-nn
0f05a88c9e9d99b3c1c73dc4d8a2d638a689ebfb
[ "MIT" ]
3
2021-04-30T21:13:23.000Z
2022-02-10T01:14:50.000Z
tests/network_coefficient_plots.py
RenYuanXue/residual-sample-nn
0f05a88c9e9d99b3c1c73dc4d8a2d638a689ebfb
[ "MIT" ]
2
2020-04-17T20:33:25.000Z
2020-04-17T20:46:19.000Z
import sys sys.path.append("../residual-sample-nn") # for finding the source files import GenerateData as generate_data import Network as Network import numpy as np import pandas as pd import matplotlib.pyplot as plt import configparser def RSNN_param_test(X_train, X_test, y_train, y_test, h_nodes, epochs, lr, times,...
47.731707
142
0.627619
68a5a791e8feb36b742f033238643818f7ab4d7c
1,251
py
Python
setup.py
patrickaudriaz/mini-project
49d8200b8210fe1b09a1a05f2357260a77e10c36
[ "MIT" ]
4
2020-10-07T11:16:29.000Z
2021-09-19T05:49:32.000Z
setup.py
patrickaudriaz/mini-project
49d8200b8210fe1b09a1a05f2357260a77e10c36
[ "MIT" ]
12
2020-09-09T05:59:43.000Z
2020-10-07T13:23:18.000Z
setup.py
patrickaudriaz/mini-project
49d8200b8210fe1b09a1a05f2357260a77e10c36
[ "MIT" ]
1
2020-10-06T03:52:05.000Z
2020-10-06T03:52:05.000Z
#!/usr/bin/env python # coding=utf-8 from setuptools import setup, find_packages def load_requirements(f): retval = [str(k.strip()) for k in open(f, "rt")] return [k for k in retval if k and k[0] not in ("#", "-")] setup( name="rrgp", version="1.0.7", description="This project aims to train a m...
35.742857
191
0.673062
99d05b4f5d9395b3236b58b8060a91c56948b8f9
9,983
py
Python
analysis/cloud9/coverage.py
wangpeipei90/cloud9
a15558d1fa3e397b157b1191aa1ef9b225eef2dd
[ "BSD-3-Clause" ]
40
2015-01-08T10:28:20.000Z
2022-03-11T02:48:46.000Z
analysis/cloud9/coverage.py
mcanthony/cloud9
a15558d1fa3e397b157b1191aa1ef9b225eef2dd
[ "BSD-3-Clause" ]
3
2015-04-13T04:13:39.000Z
2020-03-28T05:23:41.000Z
analysis/cloud9/coverage.py
mcanthony/cloud9
a15558d1fa3e397b157b1191aa1ef9b225eef2dd
[ "BSD-3-Clause" ]
24
2015-03-30T04:39:28.000Z
2022-01-04T17:17:33.000Z
#!/usr/bin/python # # Copyright (c) 2012 Google Inc. All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this list...
32.624183
124
0.67625
a8895b2313c148747c0fe50b6ef84ede31f3fcb3
4,945
py
Python
scripts/release-diff.py
EBI-Metabolights/galaxy
4b3c94822a2e859c83bef221fe99ddb87d4d9cae
[ "CC-BY-3.0" ]
null
null
null
scripts/release-diff.py
EBI-Metabolights/galaxy
4b3c94822a2e859c83bef221fe99ddb87d4d9cae
[ "CC-BY-3.0" ]
null
null
null
scripts/release-diff.py
EBI-Metabolights/galaxy
4b3c94822a2e859c83bef221fe99ddb87d4d9cae
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python import argparse import glob import subprocess from pathlib import Path import yaml def flatten(d, path): """ Flatten a dictionary into ('some/path/to/key', value) >>> flatten({'a': {'b': 2}, 'q': 3}, []) [('a.b', 2), ('q', 3)] """ if isinstance(d, dict): for k,...
27.17033
121
0.581193