hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a1d55db0c3ec14d69b1a48cdfb666a9536bdece
2,701
py
Python
scripts/ensemble_eval.py
FragLegs/mrnet
a05eb8902463cbcf88126c616911bd9f69d019df
[ "MIT" ]
1
2021-06-18T08:16:01.000Z
2021-06-18T08:16:01.000Z
scripts/ensemble_eval.py
FragLegs/mrnet
a05eb8902463cbcf88126c616911bd9f69d019df
[ "MIT" ]
null
null
null
scripts/ensemble_eval.py
FragLegs/mrnet
a05eb8902463cbcf88126c616911bd9f69d019df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import logging import os import pickle import pprint import numpy as np import pandas as pd import sklearn.metrics as metrics from ensemble_load_data import load_data log = logging.getLogger(__name__) def print_eval(preds, truth, threshold=0.5): int_preds = (preds > thr...
25.242991
75
0.656794
4a1d56ed6e8c8529f3ee021d75c4e5a58184cb9b
1,072
py
Python
examples/dot3k/advanced/automenu.py
axelsimon/displayotron
42315c47eb50d2f95d1fcade389ff57ad73e1b83
[ "MIT" ]
49
2017-06-07T05:09:23.000Z
2021-10-08T14:32:05.000Z
examples/dot3k/advanced/automenu.py
axelsimon/displayotron
42315c47eb50d2f95d1fcade389ff57ad73e1b83
[ "MIT" ]
19
2017-08-07T21:17:00.000Z
2022-01-07T09:02:42.000Z
examples/dot3k/advanced/automenu.py
axelsimon/displayotron
42315c47eb50d2f95d1fcade389ff57ad73e1b83
[ "MIT" ]
22
2017-06-07T05:09:25.000Z
2021-08-17T10:52:58.000Z
#!/usr/bin/env python import sys import time import dot3k.backlight as backlight import dot3k.joystick as nav import dot3k.lcd as lcd from dot3k.menu import Menu, MenuOption # Add the root examples dir so Python can find the plugins sys.path.append('../../') from plugins.clock import Clock from plugins.graph import...
18.807018
85
0.645522
4a1d570a01131633213c098a3d1edc1371cf6775
5,468
py
Python
P01_PacmanGame/src/search/search.py
Jed-Z/artificial-intelligence-lab
ca5335b13e164230aab4e4a950e930b4d0d94d21
[ "MIT" ]
6
2020-11-05T04:49:10.000Z
2022-01-06T06:17:13.000Z
P01_PacmanGame/src/search/search.py
csJed/artificial-intelligence-lab
ca5335b13e164230aab4e4a950e930b4d0d94d21
[ "MIT" ]
null
null
null
P01_PacmanGame/src/search/search.py
csJed/artificial-intelligence-lab
ca5335b13e164230aab4e4a950e930b4d0d94d21
[ "MIT" ]
2
2020-11-30T09:14:46.000Z
2021-10-23T01:03:37.000Z
# -*- coding: utf-8 -*- # search.py # --------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http:/...
32.939759
94
0.673738
4a1d572f2e45f1d50dbe9e80722629dbda10b3e5
5,961
py
Python
google/cloud/dialogflow/v2/dialogflow-v2-py/google/cloud/dialogflow_v2/services/knowledge_bases/pagers.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/dialogflow/v2/dialogflow-v2-py/google/cloud/dialogflow_v2/services/knowledge_bases/pagers.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/dialogflow/v2/dialogflow-v2-py/google/cloud/dialogflow_v2/services/knowledge_bases/pagers.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
42.276596
95
0.688978
4a1d58fd9da1163bf2bab25eec15dc58398ce628
1,548
py
Python
cursoemvideoPy/Mundo2/ex068.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
cursoemvideoPy/Mundo2/ex068.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
cursoemvideoPy/Mundo2/ex068.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
from random import randint print('-=' * 30) print('VAMOS JOGAR PAR OU ÍMPAR') print('-=' * 30) n = 0 c = 0 while True: n = int(input('Digite um número: ')) aleat = randint(0, 10) opcao = str(input('Par ou Ímpar [P/I] ? ')).upper() calc = n + aleat # print(f'Você jogou {n} e o computador {aleat}.'...
31.591837
96
0.422481
4a1d5a01243286b718dfc3b1b561e89a9ff2315f
3,276
py
Python
yolox/utils/model_utils.py
junhai0428/YOLOX-OBB
9f0d745b89ba6559e692ff06ba09b433b2f4594c
[ "Apache-2.0" ]
null
null
null
yolox/utils/model_utils.py
junhai0428/YOLOX-OBB
9f0d745b89ba6559e692ff06ba09b433b2f4594c
[ "Apache-2.0" ]
null
null
null
yolox/utils/model_utils.py
junhai0428/YOLOX-OBB
9f0d745b89ba6559e692ff06ba09b433b2f4594c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. from copy import deepcopy import torch import torch.nn as nn from thop import profile __all__ = [ "fuse_conv_and_bn", "fuse_model", "get_model_info", "replace_module", ] def get_model_info(model...
30.90566
96
0.649878
4a1d5a7630153c37211196adb419577be9afebe0
2,538
py
Python
map_objects/minimap.py
delamorte/spiritquestRL
158e510b82a3dc03bbcab5e6be08f94f7c9937b6
[ "MIT" ]
4
2019-08-13T04:56:13.000Z
2021-01-23T21:13:50.000Z
map_objects/minimap.py
delamorte/spiritquestRL
158e510b82a3dc03bbcab5e6be08f94f7c9937b6
[ "MIT" ]
null
null
null
map_objects/minimap.py
delamorte/spiritquestRL
158e510b82a3dc03bbcab5e6be08f94f7c9937b6
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import division from ctypes import c_uint32, addressof from bearlibterminal import terminal as blt import numpy as np import variables from collections import namedtuple def test_dynamic_sprites(game_map, ui_elements): x0 = y0 = 1 view_height, view_width = ui_elements.screen_bo...
40.935484
116
0.56383
4a1d5a7ddd59e65a31645d40385c1540cc91cbd9
21,266
py
Python
canine/localization/file_handlers.py
broadinstitute/canine
4e367aab6d692f30b8199011dcf72894c066c57a
[ "BSD-3-Clause" ]
2
2019-08-20T19:20:48.000Z
2019-08-28T22:24:25.000Z
canine/localization/file_handlers.py
broadinstitute/canine
4e367aab6d692f30b8199011dcf72894c066c57a
[ "BSD-3-Clause" ]
49
2019-08-21T18:51:42.000Z
2020-05-01T16:22:27.000Z
canine/localization/file_handlers.py
broadinstitute/canine
4e367aab6d692f30b8199011dcf72894c066c57a
[ "BSD-3-Clause" ]
3
2019-10-02T18:24:08.000Z
2020-02-21T20:48:16.000Z
import abc import google.cloud.storage import glob, google_crc32c, json, hashlib, base64, binascii, os, re, requests, shlex, subprocess, threading import pandas as pd from ..utils import sha1_base32, canine_logging class FileType(abc.ABC): """ Stores properties of and instructions for handling a given file ty...
37.839858
320
0.589344
4a1d5aeedf7eb9a368374e35d4842206fc2999cc
8,531
py
Python
setup.py
lmmx/sphinx
10dba797f204bc00d1e170cf024b22bffe241f25
[ "BSD-2-Clause" ]
1
2022-02-08T23:30:27.000Z
2022-02-08T23:30:27.000Z
setup.py
lmmx/sphinx
10dba797f204bc00d1e170cf024b22bffe241f25
[ "BSD-2-Clause" ]
1
2021-10-16T06:34:21.000Z
2021-10-16T06:34:21.000Z
setup.py
mrmeyagi5/sphinx
f59026865a8c658acbc6d5690c146f4be0851854
[ "BSD-2-Clause" ]
null
null
null
import os import sys from distutils import log from io import StringIO from setuptools import find_packages, setup import sphinx with open('README.rst') as f: long_desc = f.read() if sys.version_info < (3, 6): print('ERROR: Sphinx requires at least Python 3.6 to run.') sys.exit(1) install_requires = [ ...
33.853175
80
0.522213
4a1d5ba9bb0f37533d512e973006706bb676f0d1
1,578
py
Python
src/test_samples.py
cmingjian/notes_antlr4
92c993f76e64c140167cdc1de942844e4d1b254c
[ "Apache-2.0" ]
null
null
null
src/test_samples.py
cmingjian/notes_antlr4
92c993f76e64c140167cdc1de942844e4d1b254c
[ "Apache-2.0" ]
null
null
null
src/test_samples.py
cmingjian/notes_antlr4
92c993f76e64c140167cdc1de942844e4d1b254c
[ "Apache-2.0" ]
null
null
null
import os import re import sys import glob if len(sys.argv) == 1: print "missing dir arg" exit() os.chdir(sys.argv[1]) grammars = glob.glob('*.g4') rigs = glob.glob('Test*.java') inputs = glob.glob('*-input') outputs = glob.glob('*-output') for g in grammars: print "processing", g os.system("java -Xm...
30.346154
105
0.56147
4a1d5bc721da25d7a7708bb9829696f3e6f67966
456
py
Python
Lib/site-packages/PyInstaller/hooks/hook-lxml.etree.py
fhqjgd/python2.7
6533019b8b2fbe113aa552e44247c054bdd8a75b
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/PyInstaller/hooks/hook-lxml.etree.py
fhqjgd/python2.7
6533019b8b2fbe113aa552e44247c054bdd8a75b
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/PyInstaller/hooks/hook-lxml.etree.py
fhqjgd/python2.7
6533019b8b2fbe113aa552e44247c054bdd8a75b
[ "bzip2-1.0.6" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2013-2016, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
38
78
0.502193
4a1d5e5e313655d20d99c1a46d28a9d671b8398e
3,913
py
Python
src/druidry/intervals.py
bhumikadalal22/druidry
d2dc6398d4f91e3095f79e876e837791c354dd86
[ "MIT" ]
null
null
null
src/druidry/intervals.py
bhumikadalal22/druidry
d2dc6398d4f91e3095f79e876e837791c354dd86
[ "MIT" ]
null
null
null
src/druidry/intervals.py
bhumikadalal22/druidry
d2dc6398d4f91e3095f79e876e837791c354dd86
[ "MIT" ]
null
null
null
"""Creates ISO-8601 dates from a variety of inputs.""" import datetime import isodate import sys from . import durations if sys.version_info >= (3, 0): basestring = str def _datetime_now(): return datetime.datetime.now() class Interval(str): """Interval subclasses str to allow flexibility but not com...
39.928571
91
0.655252
4a1d60479528d06fd050c8207981f9b9177399ff
546
py
Python
myproject/myapp/migrations/0002_auto_20170718_1150.py
Bossabossy/Rental
c3bbcd62a749f9591f6e2ae4ae837b787ec6b9ac
[ "BSD-2-Clause" ]
1
2017-07-18T09:32:53.000Z
2017-07-18T09:32:53.000Z
myproject/myapp/migrations/0002_auto_20170718_1150.py
Bossabossy/Rental
c3bbcd62a749f9591f6e2ae4ae837b787ec6b9ac
[ "BSD-2-Clause" ]
null
null
null
myproject/myapp/migrations/0002_auto_20170718_1150.py
Bossabossy/Rental
c3bbcd62a749f9591f6e2ae4ae837b787ec6b9ac
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2017-07-18 04:50 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('myapp', '0001_initial'), ] operations = [ m...
24.818182
126
0.644689
4a1d6265dc0171a463e56d9bd5a940bc07f35759
8,434
py
Python
test/functional/assumevalid.py
tylerbuchea/schezuancoin
85f14fc2aa74d40ed4b2fc85c656a2fb258412ce
[ "MIT" ]
null
null
null
test/functional/assumevalid.py
tylerbuchea/schezuancoin
85f14fc2aa74d40ed4b2fc85c656a2fb258412ce
[ "MIT" ]
null
null
null
test/functional/assumevalid.py
tylerbuchea/schezuancoin
85f14fc2aa74d40ed4b2fc85c656a2fb258412ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Schezuancoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test logic for skipping signature validation on old blocks. Test logic for skipping signature val...
41.546798
107
0.62912
4a1d63146f2d8c6151e472c4aff0bd6027fde863
12,530
py
Python
baselines/logger.py
anonymous-supplement/asf
e1a6f6c8e83c49a6e44d01d4bcdf4b79a80248cf
[ "MIT" ]
2
2020-07-06T11:24:03.000Z
2021-02-10T04:32:43.000Z
baselines/logger.py
NeteaseFuxiRL/asf
e1a6f6c8e83c49a6e44d01d4bcdf4b79a80248cf
[ "MIT" ]
null
null
null
baselines/logger.py
NeteaseFuxiRL/asf
e1a6f6c8e83c49a6e44d01d4bcdf4b79a80248cf
[ "MIT" ]
null
null
null
import datetime import json import os import os.path as osp import shutil import sys import tempfile import time LOG_OUTPUT_FORMATS = ['stdout', 'log', 'csv'] # Also valid: json, tensorboard DEBUG = 10 INFO = 20 WARN = 30 ERROR = 40 DISABLED = 50 class KVWriter(object): def writekvs(self, kvs): raise N...
27.599119
122
0.559537
4a1d63909ecde2f82c44ce064e438905a4ea6bab
2,080
py
Python
pyjswidgets/pyjamas/DOM.pyqt4.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
739
2015-01-01T02:05:11.000Z
2022-03-30T15:26:16.000Z
pyjswidgets/pyjamas/DOM.pyqt4.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
33
2015-03-25T23:17:04.000Z
2021-08-19T08:25:22.000Z
pyjswidgets/pyjamas/DOM.pyqt4.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
167
2015-01-01T22:27:47.000Z
2022-03-17T13:29:19.000Z
def setStyleAttribute(element, name, value): element.setStyleAttribute(name, value) def insertChild(element, insert_element, beforeIndex): element.insertChild(insert_element, beforeIndex) def getParent(element): return element.getParent() def setAttribute(element, key, value): element.setAttribute...
23.370787
66
0.616827
4a1d643be16e11b8ae8602d672f9dd475d94ff6d
1,521
py
Python
integration-test/704-exclude-null-values-for-buildings.py
rinnyB/vector-datasource
024909ed8245a4ad4a25c908413ba3602de6c335
[ "MIT" ]
null
null
null
integration-test/704-exclude-null-values-for-buildings.py
rinnyB/vector-datasource
024909ed8245a4ad4a25c908413ba3602de6c335
[ "MIT" ]
2
2021-03-31T20:22:37.000Z
2021-12-13T20:50:11.000Z
integration-test/704-exclude-null-values-for-buildings.py
rinnyB/vector-datasource
024909ed8245a4ad4a25c908413ba3602de6c335
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from shapely.wkt import loads as wkt_loads import dsl from . import FixtureTest class ExcludeNullValuesForBuildings(FixtureTest): def test_alcatraz(self): # way 128245373 - alcatraz prison main building self.generate_fixtures(dsl.way(128245373, wkt_loads('POLYGON ((-122....
58.5
694
0.661407
4a1d6489ab456eee6a6305e893ae83ec9a6ec9bd
4,523
py
Python
pythonGA/tsp_ga.py
shiftrepo/OperationBreakingDawn
94a730ba67fa72c4305ec854e22ee6b028068254
[ "Unlicense" ]
1
2022-02-04T09:46:04.000Z
2022-02-04T09:46:04.000Z
pythonGA/tsp_ga.py
shiftrepo/OperationBreakingDawn
94a730ba67fa72c4305ec854e22ee6b028068254
[ "Unlicense" ]
42
2019-01-03T04:50:01.000Z
2021-09-23T23:23:39.000Z
pythonGA/tsp_ga.py
shiftrepo/OperationBreakingDawn
94a730ba67fa72c4305ec854e22ee6b028068254
[ "Unlicense" ]
null
null
null
#!python3.6.8 from time import sleep import sys import random import math import copy import tkinter SCREEN_WIDTH = 150 SCREEN_HEIGHT = 150 POINTS_SIZE = 50 POPULATION_SIZE = 20 GENERATION = 2000 MUTATE = 0.3 SELECT_RATE = 0.5 def calc_distance(points, route): distance = 0 for i in range(POINTS_SIZE): (x0,...
26.144509
99
0.586115
4a1d64b5e8b245c0ecf1b93fe5567cd4200b51df
4,989
py
Python
angr/exploration_techniques/spiller.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
2
2018-05-02T17:41:36.000Z
2020-05-18T02:49:16.000Z
angr/exploration_techniques/spiller.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
null
null
null
angr/exploration_techniques/spiller.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
1
2022-02-10T02:29:38.000Z
2022-02-10T02:29:38.000Z
import logging l = logging.getLogger("angr.exploration_techniques.spiller") import ana from . import ExplorationTechnique class SpilledState(ana.Storable): def __init__(self, state): self.state = state def _ana_getstate(self): return (self.state,) def _ana_setstate(self, s): sel...
41.231405
209
0.644217
4a1d65dfd82074b1a8bbe95dbc21e9e390c68675
528
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/minimum-score-triangulation-of-polygon.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/minimum-score-triangulation-of-polygon.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/minimum-score-triangulation-of-polygon.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n^3) # Space: O(n^2) class Solution(object): def minScoreTriangulation(self, A): """ :type A: List[int] :rtype: int """ dp = [[0 for _ in xrange(len(A))] for _ in xrange(len(A))] for p in xrange(3, len(A)+1): for i in xrange(len(A)-p+1): ...
29.333333
80
0.416667
4a1d6689ba9ac5871f9e1d98f0ea06fd69e1af09
1,633
py
Python
python-scripts/contours/Find-contours-of-depressions.py
JiriVales/orienteering-tools
3bac9e75c2116be35d3a59ffa203e8e736a2b66c
[ "BSD-3-Clause" ]
5
2018-05-31T07:41:51.000Z
2020-04-16T09:20:34.000Z
python-scripts/contours/Find-contours-of-depressions.py
JiriVales/automatic-creation-orienteering-map
3bac9e75c2116be35d3a59ffa203e8e736a2b66c
[ "BSD-3-Clause" ]
null
null
null
python-scripts/contours/Find-contours-of-depressions.py
JiriVales/automatic-creation-orienteering-map
3bac9e75c2116be35d3a59ffa203e8e736a2b66c
[ "BSD-3-Clause" ]
null
null
null
##Find contours of depressions=name ##numbermetersofenlargethedepressionarea=number9.0 ##contours=vector ##dem=raster ##contoursofdepressions=output vector outputs_MODELERFIND-DEPRESSION-AREA_1=processing.runalg('modeler:find-depression-area', dem,None) outputs_QGISFIELDCALCULATOR_2=processing.runalg('qgis:fieldcalcula...
108.866667
203
0.861604
4a1d66a3502cb5bf125e8129cbcca624eac74cd2
5,121
py
Python
src/backuper/diskremotestorage.py
EduardoLemos567/PyBackuper
c339ffbb25690597e64bcfce5347d8d6e9dc27f0
[ "MIT" ]
null
null
null
src/backuper/diskremotestorage.py
EduardoLemos567/PyBackuper
c339ffbb25690597e64bcfce5347d8d6e9dc27f0
[ "MIT" ]
null
null
null
src/backuper/diskremotestorage.py
EduardoLemos567/PyBackuper
c339ffbb25690597e64bcfce5347d8d6e9dc27f0
[ "MIT" ]
null
null
null
""" :license: license is described in the LICENSE file provided. A copy can be accessed in: https://github.com/EduardoLemos567/PyBackuper/blob/master/LICENSE :author: Eduardo Lemos de Moraes """ from . import remotestorage class DiskRemoteStorage(remotestorage.RemoteStorage): FILES_FOLDERNAME = "files...
34.369128
97
0.614724
4a1d677a429e18afaed2304a8942a2c0d7951777
748
py
Python
tradearn/products/migrations/0001_initial.py
didils/tradmarkearn
a2a49314639a419db1b7b414319745c81fcc26e1
[ "MIT" ]
null
null
null
tradearn/products/migrations/0001_initial.py
didils/tradmarkearn
a2a49314639a419db1b7b414319745c81fcc26e1
[ "MIT" ]
null
null
null
tradearn/products/migrations/0001_initial.py
didils/tradmarkearn
a2a49314639a419db1b7b414319745c81fcc26e1
[ "MIT" ]
null
null
null
# Generated by Django 2.0.13 on 2019-04-06 07:16 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField...
29.92
114
0.586898
4a1d67f513c45cdd3a0949addbe7cc2e63ac3c2c
804
py
Python
seafood_project/urls.py
masonrybits/django_intro
de9046a0c27ffa442c0c3fb2e08c70062ce130c4
[ "MIT" ]
null
null
null
seafood_project/urls.py
masonrybits/django_intro
de9046a0c27ffa442c0c3fb2e08c70062ce130c4
[ "MIT" ]
6
2020-06-05T20:48:31.000Z
2021-09-22T18:30:51.000Z
seafood_project/urls.py
masonrybits/django_intro
de9046a0c27ffa442c0c3fb2e08c70062ce130c4
[ "MIT" ]
null
null
null
"""seafood_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cla...
34.956522
77
0.705224
4a1d689e5b16c45b8a0026c5602a9caa10c960c0
85
py
Python
tests/roots/test-ext-viewcode-find/not_a_package/__init__.py
zhsj/sphinx
169297d0b76bf0b503033dadeb14f9a2b735e422
[ "BSD-2-Clause" ]
1
2021-06-17T13:38:42.000Z
2021-06-17T13:38:42.000Z
tests/roots/test-ext-viewcode-find/not_a_package/__init__.py
zhsj/sphinx
169297d0b76bf0b503033dadeb14f9a2b735e422
[ "BSD-2-Clause" ]
null
null
null
tests/roots/test-ext-viewcode-find/not_a_package/__init__.py
zhsj/sphinx
169297d0b76bf0b503033dadeb14f9a2b735e422
[ "BSD-2-Clause" ]
1
2021-07-23T12:09:13.000Z
2021-07-23T12:09:13.000Z
from __future__ import absolute_import from .submodule import func1, Class1 # NOQA
21.25
44
0.811765
4a1d697c97712437a89bbc2636a9b76f121ba532
643
py
Python
tests/io/test_folders.py
midpipps/pyTenable
06aabe929ae482080dc2a63f56234b9a873f78ca
[ "MIT" ]
null
null
null
tests/io/test_folders.py
midpipps/pyTenable
06aabe929ae482080dc2a63f56234b9a873f78ca
[ "MIT" ]
null
null
null
tests/io/test_folders.py
midpipps/pyTenable
06aabe929ae482080dc2a63f56234b9a873f78ca
[ "MIT" ]
null
null
null
from .fixtures import * from tenable.errors import * import uuid def test_folder_name_typeerror(api): with pytest.raises(TypeError): api.folders.create(1) def test_create(api, folder): assert isinstance(folder, int) def test_delete(api, folder): api.folders.delete(folder) assert folder not in...
26.791667
62
0.70451
4a1d69b36d6df8e0cf8b0cf154612c37ba79678b
231
py
Python
ramda/once_test.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
56
2018-08-06T08:44:58.000Z
2022-03-17T09:49:03.000Z
ramda/once_test.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
28
2019-06-17T11:09:52.000Z
2022-02-18T16:59:21.000Z
ramda/once_test.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
5
2019-09-18T09:24:38.000Z
2021-07-21T08:40:23.000Z
from ramda.private.asserts import * from ramda.once import once from ramda.add import add add_one_once = once(add(1)) def once_test(): assert_equal(add_one_once(10), 11) assert_equal(add_one_once(add_one_once(50)), 11)
19.25
52
0.748918
4a1d69d199ba1240498427e9cce65ae7b4683958
2,931
py
Python
neopixel.py
MrYsLab/pseudo-microbit
ed797ca7679935a646794a5a0d387076c5544957
[ "MIT" ]
10
2017-12-30T23:44:52.000Z
2021-02-23T12:30:25.000Z
neopixel.py
MrYsLab/pseudo-microbit
ed797ca7679935a646794a5a0d387076c5544957
[ "MIT" ]
7
2020-03-08T22:58:03.000Z
2021-11-28T14:56:12.000Z
neopixel.py
MrYsLab/pseudo-microbit
ed797ca7679935a646794a5a0d387076c5544957
[ "MIT" ]
4
2018-06-14T15:03:56.000Z
2020-11-24T18:49:29.000Z
""" The neopixel module lets you use Neopixel (WS2812) individually addressable RGB LED strips with the Microbit. Note to use the neopixel module, you need to import it separately with: import neopixel Note From our tests, the Microbit Neopixel module can drive up to around 256 Neopixels. Anything above that and yo...
25.710526
86
0.706585
4a1d6c05cbcb03ac1c42da511f42f2ef3558a33d
2,169
py
Python
statsmodels/stats/tests/test_effectsize.py
madhushree14/statsmodels
04f00006a7aeb1c93d6894caa420698400da6c33
[ "BSD-3-Clause" ]
6,931
2015-01-01T11:41:55.000Z
2022-03-31T17:03:24.000Z
statsmodels/stats/tests/test_effectsize.py
madhushree14/statsmodels
04f00006a7aeb1c93d6894caa420698400da6c33
[ "BSD-3-Clause" ]
6,137
2015-01-01T00:33:45.000Z
2022-03-31T22:53:17.000Z
statsmodels/stats/tests/test_effectsize.py
madhushree14/statsmodels
04f00006a7aeb1c93d6894caa420698400da6c33
[ "BSD-3-Clause" ]
2,608
2015-01-02T21:32:31.000Z
2022-03-31T07:38:30.000Z
# -*- coding: utf-8 -*- """ Created on Mon Oct 5 13:13:59 2020 Author: Josef Perktold License: BSD-3 """ from scipy import stats from numpy.testing import assert_allclose from statsmodels.stats.effect_size import ( _noncentrality_chisquare, _noncentrality_f, _noncentrality_t) def test_noncent_chi2(): ...
28.539474
79
0.625173
4a1d6c384cd52a3c30d75fba19f923f82c795bb1
14,167
py
Python
tests/trainer/optimization/test_parity_automatic_optimization.py
nightlessbaron/pytorch-lightning
239bea5c29cef0d1a0cfb319de5dbc9227aa2a53
[ "Apache-2.0" ]
3
2021-01-28T14:04:17.000Z
2021-09-08T12:00:11.000Z
tests/trainer/optimization/test_parity_automatic_optimization.py
nightlessbaron/pytorch-lightning
239bea5c29cef0d1a0cfb319de5dbc9227aa2a53
[ "Apache-2.0" ]
null
null
null
tests/trainer/optimization/test_parity_automatic_optimization.py
nightlessbaron/pytorch-lightning
239bea5c29cef0d1a0cfb319de5dbc9227aa2a53
[ "Apache-2.0" ]
1
2021-03-10T23:53:49.000Z
2021-03-10T23:53:49.000Z
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
38.083333
118
0.69796
4a1d6d258bc96bf6e5e6ba103a578d0dd19d4e12
2,362
py
Python
setup.py
WladimirSidorenko/DASA
618d9060a5fd6f567628c8dec5e26943c8c49ad4
[ "MIT" ]
7
2018-05-26T15:47:41.000Z
2021-02-23T08:08:56.000Z
setup.py
WladimirSidorenko/DASA
618d9060a5fd6f567628c8dec5e26943c8c49ad4
[ "MIT" ]
null
null
null
setup.py
WladimirSidorenko/DASA
618d9060a5fd6f567628c8dec5e26943c8c49ad4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- mode: python; coding: utf-8; -*- ################################################################## # Libraries from setuptools import setup from glob import glob from os import path import codecs ################################################################## # Variables and Constants...
33.742857
74
0.560119
4a1d6d55b85801b5388c7088cbdfb56030b0d7dc
6,959
py
Python
reframe/frontend/autodetect.py
rngoodner/reframe
4b0cb19f72af8f4b9f954133a54240011bd510e8
[ "BSD-3-Clause" ]
null
null
null
reframe/frontend/autodetect.py
rngoodner/reframe
4b0cb19f72af8f4b9f954133a54240011bd510e8
[ "BSD-3-Clause" ]
null
null
null
reframe/frontend/autodetect.py
rngoodner/reframe
4b0cb19f72af8f4b9f954133a54240011bd510e8
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016-2021 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import json import jsonschema import os import shutil import tempfile import reframe as rfm import reframe.utility.osext as o...
32.069124
78
0.593045
4a1d6d801eba735d7c2bed47eb3787fce7fb8cb0
6,525
py
Python
test/functional/bipdersig-p2p.py
aixinwang/Gfc
4a7fdac234f5f51055e471e77aaff62cfa4c6eab
[ "MIT" ]
null
null
null
test/functional/bipdersig-p2p.py
aixinwang/Gfc
4a7fdac234f5f51055e471e77aaff62cfa4c6eab
[ "MIT" ]
null
null
null
test/functional/bipdersig-p2p.py
aixinwang/Gfc
4a7fdac234f5f51055e471e77aaff62cfa4c6eab
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The GFC coin bt developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test BIP66 (DER SIG). Connect to a single node. Mine 2 (version 2) blocks (save the coinbases for later...
35.655738
93
0.621916
4a1d6deb2b2758dd998538f36a7026a712d79289
4,598
py
Python
jishaku/repl/compilation.py
Sengolda/jishkucord
2aa401ff635b6e0550fbd1bcf3aaf3890a9eb1d8
[ "MIT" ]
1
2021-11-11T14:06:57.000Z
2021-11-11T14:06:57.000Z
jishaku/repl/compilation.py
Sengolda/jishkucord
2aa401ff635b6e0550fbd1bcf3aaf3890a9eb1d8
[ "MIT" ]
1
2021-11-12T01:27:07.000Z
2021-11-12T01:27:07.000Z
jishaku/repl/compilation.py
Sengolda/jishkucord
2aa401ff635b6e0550fbd1bcf3aaf3890a9eb1d8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ jishaku.repl.compilation ~~~~~~~~~~~~~~~~~~~~~~~~ Constants, functions and classes related to classifying, compiling and executing Python code. :copyright: (c) 2021 Devon (Gorialis) R :license: MIT, see LICENSE for more details. """ import ast import asyncio import inspect import lineca...
28.7375
118
0.629187
4a1d6e5e24d670d2765b06868c30cd779fd48691
716
py
Python
tests/app/test_cloudfoundry_config.py
alphagov/notify-notifications-api
e604385e0cf4c2ab8c6451b7120ceb196cce21b5
[ "MIT" ]
null
null
null
tests/app/test_cloudfoundry_config.py
alphagov/notify-notifications-api
e604385e0cf4c2ab8c6451b7120ceb196cce21b5
[ "MIT" ]
null
null
null
tests/app/test_cloudfoundry_config.py
alphagov/notify-notifications-api
e604385e0cf4c2ab8c6451b7120ceb196cce21b5
[ "MIT" ]
null
null
null
import json import os import pytest from app.cloudfoundry_config import extract_cloudfoundry_config @pytest.fixture def vcap_services(): return { 'postgres': [{ 'credentials': { 'uri': 'postgres uri' } }], 'redis': [{ 'credentials': { ...
22.375
85
0.599162
4a1d701435395e9c4a6e831b3fe874c3a6ce28a8
996
py
Python
main.py
Guilhermeasper/motorola-challenge
43d187a952a7f18c7de54db90e0ab34e5887673c
[ "MIT" ]
null
null
null
main.py
Guilhermeasper/motorola-challenge
43d187a952a7f18c7de54db90e0ab34e5887673c
[ "MIT" ]
null
null
null
main.py
Guilhermeasper/motorola-challenge
43d187a952a7f18c7de54db90e0ab34e5887673c
[ "MIT" ]
null
null
null
from screen.screen import Screen import sys USAGE = f'Usage: python {sys.argv[0]} -input="<path/to/input/file>" -output="<path/to/output/file>"' def argparse(): """Parse the command line arguments and returns input and output paths""" input_path = "" output_path = "" for arg in sys.argv[1:]: ...
24.292683
100
0.611446
4a1d712c63366d7f1ac5a2179dbbd9672794dd8a
678
py
Python
tests/test_graph_builder.py
zspatter/network-simulation
1a07acbe7b039e04d40cceb790a95fe0421dfea5
[ "MIT" ]
1
2019-02-11T19:42:28.000Z
2019-02-11T19:42:28.000Z
tests/test_graph_builder.py
zspatter/Network-Simulation
1a07acbe7b039e04d40cceb790a95fe0421dfea5
[ "MIT" ]
5
2019-05-08T18:08:03.000Z
2019-05-17T14:24:04.000Z
tests/test_graph_builder.py
zspatter/Network-Simulation
1a07acbe7b039e04d40cceb790a95fe0421dfea5
[ "MIT" ]
1
2019-02-11T19:42:31.000Z
2019-02-11T19:42:31.000Z
from network_simulator.GraphBuilder import GraphBuilder def test_generate_random_adjacency_dict(): test_dict = GraphBuilder.generate_random_adjacency_dict(node_id=1, total_nodes=50, max_weight=50) assert len(test_dict) < 50 for node in test_dict...
32.285714
90
0.663717
4a1d712d12092ac1bab27cbd53eac671c4a83421
762
py
Python
endpoints/tests/outputs_test.py
stefvra/energy_app
2091273e4f6c083a8531667885a38d36716220b0
[ "MIT" ]
1
2022-03-21T20:35:58.000Z
2022-03-21T20:35:58.000Z
endpoints/tests/outputs_test.py
stefvra/energy_app
2091273e4f6c083a8531667885a38d36716220b0
[ "MIT" ]
null
null
null
endpoints/tests/outputs_test.py
stefvra/energy_app
2091273e4f6c083a8531667885a38d36716220b0
[ "MIT" ]
null
null
null
from endpoints.outputs import Output_Factory from tools import tools output_factory = Output_Factory() config_store = tools.Config_Store(filename=tools.get_config_file()) mock_GPIO_Output = output_factory.create_from_config(config_store, 'GPIO_output') def test_GPIO_Output_init(): assert mock_GPIO_Output.is_en...
28.222222
81
0.790026
4a1d71c347671f3df6c3de726d3c222209e6ceca
1,956
py
Python
day038/main.py
avholloway/100DaysOfCode
c7eeb8c47731ea7f47144d22fd90e4cc965d34c9
[ "MIT" ]
null
null
null
day038/main.py
avholloway/100DaysOfCode
c7eeb8c47731ea7f47144d22fd90e4cc965d34c9
[ "MIT" ]
null
null
null
day038/main.py
avholloway/100DaysOfCode
c7eeb8c47731ea7f47144d22fd90e4cc965d34c9
[ "MIT" ]
null
null
null
import os import sys import json import requests from datetime import datetime as dt # === User Interaction ======================================================== activity = input("Input: ") # === NutritionIX API Info ==================================================== NUTRX_API_HOST = "https://trackapi.nutritio...
30.092308
90
0.645706
4a1d7296cbc6ce1d84e1b260c280dc4a7e304232
921
py
Python
examples/microsoft_bot.py
shaikmoeed/ChatterBot
41c8987a624d751e8935e5ac34da6d7b2b623e1f
[ "BSD-3-Clause" ]
1
2020-08-13T02:46:51.000Z
2020-08-13T02:46:51.000Z
examples/microsoft_bot.py
Cloudxtreme/ChatterBot
da138ac707769793cb6dc935975aa0287ac4e3b8
[ "BSD-3-Clause" ]
null
null
null
examples/microsoft_bot.py
Cloudxtreme/ChatterBot
da138ac707769793cb6dc935975aa0287ac4e3b8
[ "BSD-3-Clause" ]
1
2019-04-20T09:54:28.000Z
2019-04-20T09:54:28.000Z
from chatterbot import ChatBot from chatterbot.trainers import ChatterBotCorpusTrainer from settings import Microsoft ''' See the Microsoft DirectLine api documentation for how to get a user access token. https://docs.botframework.com/en-us/restapi/directline/ ''' chatbot = ChatBot( 'MicrosoftBot', directline...
29.709677
82
0.767644
4a1d7338a0849ee952ffd0e27930625b19586c52
640
py
Python
LC/75.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/75.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/75.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def sortColors(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ i=0 j=len(nums)-1 k=0 while k<=j and i<=j: if nums[k]==0: self.swap(nums,k,...
26.666667
74
0.382813
4a1d7386904d0d3789f2b52760e30480de007438
1,870
py
Python
parsl/tests/manual_tests/test_log_filter.py
cylondata/parsl
00ff9372bd841dafef8a0b3566c79ffe68f0e367
[ "Apache-2.0" ]
323
2017-07-28T21:31:27.000Z
2022-03-05T13:06:05.000Z
parsl/tests/manual_tests/test_log_filter.py
cylondata/parsl
00ff9372bd841dafef8a0b3566c79ffe68f0e367
[ "Apache-2.0" ]
1,286
2017-06-01T16:50:00.000Z
2022-03-31T16:45:14.000Z
parsl/tests/manual_tests/test_log_filter.py
cylondata/parsl
00ff9372bd841dafef8a0b3566c79ffe68f0e367
[ "Apache-2.0" ]
113
2017-06-03T11:38:40.000Z
2022-03-26T16:43:05.000Z
import argparse import parsl import logging parsl.load() from parsl import python_app @python_app def platform(sleep=10, stdout=None): import platform import time time.sleep(sleep) return platform.uname() class SkipTasksFilter(logging.Filter): def __init__(self, avoid_string): self.avo...
23.974359
78
0.605882
4a1d73d6f7a7b7ec709be45e3c4a5dce7aadb4d0
4,816
py
Python
mmocr/models/textrecog/recognizer/seg_recognizer.py
Whatsetsthisend/mmocr
6444b3226a10162378b5ed3109991cc618e89fa4
[ "Apache-2.0" ]
null
null
null
mmocr/models/textrecog/recognizer/seg_recognizer.py
Whatsetsthisend/mmocr
6444b3226a10162378b5ed3109991cc618e89fa4
[ "Apache-2.0" ]
null
null
null
mmocr/models/textrecog/recognizer/seg_recognizer.py
Whatsetsthisend/mmocr
6444b3226a10162378b5ed3109991cc618e89fa4
[ "Apache-2.0" ]
null
null
null
import numpy import torch from mmdet.models.builder import (DETECTORS, build_backbone, build_head, build_loss, build_neck) from mmocr.models.builder import build_convertor, build_preprocessor from .base import BaseRecognizer @DETECTORS.register_module() class SegRecognizer(BaseRecog...
30.481013
77
0.591985
4a1d7491ffd2ff892e716f213d2d700c912a41a3
5,159
py
Python
dhcp_lease_db.py
OpenSwitchNOS/openswitch-ops-dhcp-tftp
5d49e0d63296d9886912a84f031a811f413ba7fd
[ "Apache-2.0" ]
null
null
null
dhcp_lease_db.py
OpenSwitchNOS/openswitch-ops-dhcp-tftp
5d49e0d63296d9886912a84f031a811f413ba7fd
[ "Apache-2.0" ]
null
null
null
dhcp_lease_db.py
OpenSwitchNOS/openswitch-ops-dhcp-tftp
5d49e0d63296d9886912a84f031a811f413ba7fd
[ "Apache-2.0" ]
1
2021-09-10T08:19:13.000Z
2021-09-10T08:19:13.000Z
#!/usr/bin/python # (C) Copyright 2015 Hewlett Packard Enterprise Development LP # 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....
28.983146
80
0.631712
4a1d74bc7e385280d68887c4c24f7ce7de1504b0
9,989
py
Python
ban_appeals/ban_appeals.py
python-discord/modmail-plugins
eba5a329fae3ee16f0efab991fbd5ad1854186dc
[ "MIT" ]
1
2021-08-03T04:46:07.000Z
2021-08-03T04:46:07.000Z
ban_appeals/ban_appeals.py
python-discord/modmail-plugins
eba5a329fae3ee16f0efab991fbd5ad1854186dc
[ "MIT" ]
7
2021-09-23T09:26:31.000Z
2022-03-24T08:58:06.000Z
ban_appeals/ban_appeals.py
python-discord/modmail-plugins
eba5a329fae3ee16f0efab991fbd5ad1854186dc
[ "MIT" ]
2
2021-08-09T03:39:19.000Z
2022-03-10T06:06:53.000Z
import typing as t import discord from discord.ext import commands from bot import ModmailBot from core import checks from core.models import PermissionLevel, getLogger from core.thread import Thread from .utils import async_tasks, get_or_fetch PYDIS_NO_KICK_ROLE_IDS = ( 267627879762755584, # Owners in PyDis ...
41.620833
119
0.655421
4a1d763e4307f68f3a2afab1090f869102c91742
549
py
Python
nipype/interfaces/tests/test_auto_AssertEqual.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/tests/test_auto_AssertEqual.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
2
2017-10-05T21:08:38.000Z
2018-10-09T23:01:23.000Z
nipype/interfaces/tests/test_auto_AssertEqual.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
1
2016-10-11T19:18:53.000Z
2016-10-11T19:18:53.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ...testing import assert_equal from ..utility import AssertEqual def test_AssertEqual_inputs(): input_map = dict(ignore_exception=dict(nohash=True, usedefault=True, ), volume1=dict(mandatory=True, ), volume2=dict(mandatory=True, ),...
26.142857
77
0.68306
4a1d764a98da0ce15d3eaa5faa978cf1038eb79c
15,836
py
Python
templates/eman2/eman2_process.py
kmshin1397/ETSimulations
7b69710cf519900c3ae34480ccf0ef3bba5db8b2
[ "MIT" ]
null
null
null
templates/eman2/eman2_process.py
kmshin1397/ETSimulations
7b69710cf519900c3ae34480ccf0ef3bba5db8b2
[ "MIT" ]
4
2020-02-07T23:23:44.000Z
2021-07-17T19:56:33.000Z
templates/eman2/eman2_process.py
kmshin1397/ETSimulations
7b69710cf519900c3ae34480ccf0ef3bba5db8b2
[ "MIT" ]
null
null
null
""" This script runs a series of EMAN2 processing steps in the order specified in the steps_to_run variable. The steps_to_run and other parameters for various steps will be filled in dynamically by the eman2_processor.py module based on the configurations file provided to ets_process_data.py by the user. Note: Python3...
35.666667
112
0.617391
4a1d766858daa771a9add3959440f098aed3facb
12,832
py
Python
espnet/nets/pytorch_backend/transformer/attention.py
victor45664/espnet
0ccacc32d25feddec5270cb3f8e08c24183755d8
[ "Apache-2.0" ]
4
2021-12-24T03:27:46.000Z
2022-02-26T13:21:09.000Z
espnet/nets/pytorch_backend/transformer/attention.py
victor45664/espnet
0ccacc32d25feddec5270cb3f8e08c24183755d8
[ "Apache-2.0" ]
null
null
null
espnet/nets/pytorch_backend/transformer/attention.py
victor45664/espnet
0ccacc32d25feddec5270cb3f8e08c24183755d8
[ "Apache-2.0" ]
2
2021-12-24T03:33:01.000Z
2022-02-26T03:54:17.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2019 Shigeki Karita # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Multi-Head Attention layer definition.""" import math import numpy import torch from torch import nn class MultiHeadedAttention(nn.Module): """Multi-Head Attention laye...
37.741176
91
0.595153
4a1d77a709f93db41a8962c4be54495afd02106b
2,092
py
Python
models/seg/decoder.py
HenryOsborne/SemanticSegmentation
d41549c3fd22731d7a12cdb1b438f730b0ebfcbc
[ "MIT" ]
null
null
null
models/seg/decoder.py
HenryOsborne/SemanticSegmentation
d41549c3fd22731d7a12cdb1b438f730b0ebfcbc
[ "MIT" ]
null
null
null
models/seg/decoder.py
HenryOsborne/SemanticSegmentation
d41549c3fd22731d7a12cdb1b438f730b0ebfcbc
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class Decoder(nn.Module): def __init__(self, num_classes, backbone): super(Decoder, self).__init__() if backbone == 'resnet': low_level_inplanes = 256 elif backbone == 'xception': low_level_inplanes ...
37.357143
107
0.533939
4a1d77d51e04a28995888027c3950f032de0279b
3,695
py
Python
Incident-Response/Tools/grr/grr/server/grr_response_server/blob_stores/benchmark.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/grr/grr/server/grr_response_server/blob_stores/benchmark.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/grr/grr/server/grr_response_server/blob_stores/benchmark.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
#!/usr/bin/env python """Benchmark to compare different BlobStore implementations.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import time from absl import app from absl import flags import numpy as n...
29.56
79
0.690663
4a1d77e31b2a35f82d63e2880e0526963f19c809
2,685
py
Python
bme680_log_serial.py
bernardocarvalho/esp32-bme680
83d143aab831ab6444f157c9f170433f384371c0
[ "MIT" ]
null
null
null
bme680_log_serial.py
bernardocarvalho/esp32-bme680
83d143aab831ab6444f157c9f170433f384371c0
[ "MIT" ]
null
null
null
bme680_log_serial.py
bernardocarvalho/esp32-bme680
83d143aab831ab6444f157c9f170433f384371c0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Oct 4 12:26:02 2020 @author: bernardo https://makersportal.com/blog/2018/2/25/python-datalogger-reading-the-serial-output-from-arduino-to-analyze-data-using-pyserial """ import serial import numpy as np from matplotlib import pyplot as plt import time...
38.357143
163
0.568715
4a1d799f26d2b38f09079d0dcab0bf6f67429691
1,367
py
Python
wrappers/python/tests/test_cleanup.py
animo/aries-askar
11a145b46846e59d43de5b72b47d3594de4a2737
[ "Apache-2.0" ]
null
null
null
wrappers/python/tests/test_cleanup.py
animo/aries-askar
11a145b46846e59d43de5b72b47d3594de4a2737
[ "Apache-2.0" ]
null
null
null
wrappers/python/tests/test_cleanup.py
animo/aries-askar
11a145b46846e59d43de5b72b47d3594de4a2737
[ "Apache-2.0" ]
1
2020-06-17T19:54:13.000Z
2020-06-17T19:54:13.000Z
from ctypes import c_char, c_char_p, c_size_t, c_ubyte, pointer from unittest import mock from aries_askar.bindings.handle import ArcHandle from aries_askar.bindings.lib import ByteBuffer, RawBuffer, StrBuffer def test_cleanup_handle(): logged = [] class Handle(ArcHandle): @classmethod def _...
22.409836
88
0.609364
4a1d7ac5e9a15226a195d0da97b8802b814d3066
947
py
Python
lintcode/17.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
1
2021-01-08T06:57:49.000Z
2021-01-08T06:57:49.000Z
lintcode/17.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
null
null
null
lintcode/17.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
1
2021-01-08T06:57:52.000Z
2021-01-08T06:57:52.000Z
class Solution: def search(self, nums, S, index): if index == len(nums): self.results.append(list(S)) return S.append(nums[index]) print ("index = %d, nums[%d] = %d, S = %s, results = %s" % (index, index, nums[index], S, self.results)) self.search(nums, S, in...
35.074074
112
0.519535
4a1d7ace95a986ebc4bb42348514f37b5241b145
237
py
Python
Darlington/phase2/STRINGS/day 29 solution/qtn10.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Darlington/phase2/STRINGS/day 29 solution/qtn10.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Darlington/phase2/STRINGS/day 29 solution/qtn10.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
# program to change a given string to a new string where the first and last # chars have been exchanged. def change_sring(str1): return str1[-1:] + str1[1:-1] + str1[:1] print(change_sring('abcd')) print(change_sring('12345'))
33.857143
75
0.696203
4a1d7bb40b7ece42845050d538adea422861fc4c
2,668
py
Python
setup.py
HCord-py/HCord
bacd34de3d19ae7b08fcc3f7eae0cd39bfe0ad97
[ "MIT" ]
1
2021-12-19T14:23:04.000Z
2021-12-19T14:23:04.000Z
setup.py
HCord-py/HCord
bacd34de3d19ae7b08fcc3f7eae0cd39bfe0ad97
[ "MIT" ]
null
null
null
setup.py
HCord-py/HCord
bacd34de3d19ae7b08fcc3f7eae0cd39bfe0ad97
[ "MIT" ]
null
null
null
from setuptools import setup import re requirements = [] with open('requirements.txt') as f: requirements = f.read().splitlines() version = '' with open('hcord/__init__.py') as f: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) if not version: raise RuntimeEr...
29.644444
99
0.571589
4a1d7bbea981712fb4eeea7a490224af9d0fedcb
653
py
Python
pywayland/client/__init__.py
green-green-avk/pywayland
65aae61d5df320dc0c39d46761e44a4e34137bb2
[ "Apache-2.0" ]
55
2015-07-12T16:22:05.000Z
2022-03-20T20:31:58.000Z
pywayland/client/__init__.py
green-green-avk/pywayland
65aae61d5df320dc0c39d46761e44a4e34137bb2
[ "Apache-2.0" ]
27
2015-08-13T13:27:17.000Z
2022-01-21T14:00:33.000Z
pywayland/client/__init__.py
green-green-avk/pywayland
65aae61d5df320dc0c39d46761e44a4e34137bb2
[ "Apache-2.0" ]
14
2015-08-05T20:38:28.000Z
2021-12-01T10:25:09.000Z
# Copyright 2015 Sean Vig # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
38.411765
74
0.762634
4a1d7c7cf74269a06d9e27166a040184c845a311
5,524
py
Python
app/tornado_handlers/common.py
didouard/flight_review
3cc9bad113bd93254c710aa800f8ebe6e233bf99
[ "BSD-3-Clause" ]
null
null
null
app/tornado_handlers/common.py
didouard/flight_review
3cc9bad113bd93254c710aa800f8ebe6e233bf99
[ "BSD-3-Clause" ]
null
null
null
app/tornado_handlers/common.py
didouard/flight_review
3cc9bad113bd93254c710aa800f8ebe6e233bf99
[ "BSD-3-Clause" ]
null
null
null
""" Common methods and classes used by several tornado handlers """ from __future__ import print_function import os import sqlite3 import sys from jinja2 import Environment, FileSystemLoader import tornado.web # this is needed for the following imports sys.path.append( os.path.join(os.path.dirname(os.path.realpa...
33.478788
88
0.6374
4a1d7cc2f3be0b635f8eee99f21741797ee46c3a
8,016
py
Python
gui.py
simonstre/pyng
0ae01e3757f6b53defe2fba66c1a40f1b6641e42
[ "MIT" ]
1
2018-12-30T10:41:19.000Z
2018-12-30T10:41:19.000Z
gui.py
simonstre/pyng
0ae01e3757f6b53defe2fba66c1a40f1b6641e42
[ "MIT" ]
null
null
null
gui.py
simonstre/pyng
0ae01e3757f6b53defe2fba66c1a40f1b6641e42
[ "MIT" ]
null
null
null
''' Created on Jul 6, 2012 @author: sbolduc ''' import Tkinter import tkMessageBox from protocol import create_kill, encodeCrc8, encodeCrc16 from datetime import datetime class Panel(Tkinter.Frame): def __init__(self, master, communicator, output_serializer): Tkinter.Frame.__init__(self, master) ...
38.538462
167
0.622754
4a1d7d2a14ace6584ca524266e154ea33f28e890
433
py
Python
demo/signals.py
hugorodgerbrown/django-visitor
badb4a7fb5ea696bf5a249188b6cff8cc0a834ae
[ "MIT" ]
6
2021-06-11T13:33:00.000Z
2022-03-16T13:49:55.000Z
demo/signals.py
hugorodgerbrown/django-visitor
badb4a7fb5ea696bf5a249188b6cff8cc0a834ae
[ "MIT" ]
3
2021-02-13T15:09:54.000Z
2021-09-23T14:43:20.000Z
demo/signals.py
hugorodgerbrown/django-visitor
badb4a7fb5ea696bf5a249188b6cff8cc0a834ae
[ "MIT" ]
2
2021-03-25T14:34:40.000Z
2021-07-28T17:42:32.000Z
import logging from typing import cast from django.dispatch import receiver from visitors.models import Visitor from visitors.signals import self_service_visitor_created logger = logging.getLogger(__name__) @receiver(self_service_visitor_created) def send_visitor_notification(sender: object, **kwargs: object) -> N...
27.0625
72
0.796767
4a1d7e2d6dff1d320209924c184da025924502c3
1,627
py
Python
main.py
bio-punk/PhotoCheck
f4c6b11a8d6e15c7b081e70f0afe4be0439a1f19
[ "MIT" ]
null
null
null
main.py
bio-punk/PhotoCheck
f4c6b11a8d6e15c7b081e70f0afe4be0439a1f19
[ "MIT" ]
null
null
null
main.py
bio-punk/PhotoCheck
f4c6b11a8d6e15c7b081e70f0afe4be0439a1f19
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import numpy as np import dlib import cv2 from helper import * import time # from PIL import Image, ImageDraw, ImageFont FACE_POINTS = list(range(17, 68)) MOUTH_POINTS = list(range(48, 61)) RIGHT_BROW_POINTS = list(range(17, 22)) LEFT_BROW_POINTS = list(range(...
23.242857
94
0.66933
4a1d7e914dc24f3352a13487c81153198aeed6d2
745
py
Python
Ex115/lib/interface/__init__.py
Fernando-Rodrigo/Exercicios
04fe641220f36df85a754b2944d60f245cf6cabd
[ "MIT" ]
1
2022-03-14T20:49:04.000Z
2022-03-14T20:49:04.000Z
Ex115/lib/interface/__init__.py
Fernando-Rodrigo/Exercicios
04fe641220f36df85a754b2944d60f245cf6cabd
[ "MIT" ]
null
null
null
Ex115/lib/interface/__init__.py
Fernando-Rodrigo/Exercicios
04fe641220f36df85a754b2944d60f245cf6cabd
[ "MIT" ]
null
null
null
from ctypes import windll def cor(numcor): std_out_handle = windll.kernel32.GetStdHandle(-11) windll.kernel32.SetConsoleTextAttribute(std_out_handle, numcor) def leiaInt(msg): while True: try: cor(1) n = int(input(msg)) return n break except(...
20.694444
67
0.581208
4a1d7fb11d75cef46bbacb2cc00dde4db915fc22
152
py
Python
cbw_api_toolbox/__routes__.py
Paulhb7/cyberwatch_api_toolbox
91e766c8c736f1f23e5d0d707b18bb4e72b39a1e
[ "MIT" ]
null
null
null
cbw_api_toolbox/__routes__.py
Paulhb7/cyberwatch_api_toolbox
91e766c8c736f1f23e5d0d707b18bb4e72b39a1e
[ "MIT" ]
null
null
null
cbw_api_toolbox/__routes__.py
Paulhb7/cyberwatch_api_toolbox
91e766c8c736f1f23e5d0d707b18bb4e72b39a1e
[ "MIT" ]
null
null
null
"""API routes""" ROUTE_CVE_ANNOUNCEMENTS = "cve_announcements" ROUTE_PING = "ping" ROUTE_REMOTE_ACCESSES = "remote_accesses" ROUTE_SERVERS = "servers"
21.714286
45
0.782895
4a1d80a01ef1d0b6b5056d2aa6b360d896ff7ed8
2,001
py
Python
tests/accounts/test_models.py
mattrobenolt/warehouse
3ae010f8bcac6f8fd948096bb8925353c2e00ff4
[ "Apache-2.0" ]
null
null
null
tests/accounts/test_models.py
mattrobenolt/warehouse
3ae010f8bcac6f8fd948096bb8925353c2e00ff4
[ "Apache-2.0" ]
null
null
null
tests/accounts/test_models.py
mattrobenolt/warehouse
3ae010f8bcac6f8fd948096bb8925353c2e00ff4
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Donald Stufft # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
28.183099
74
0.66067
4a1d80e882e058c1cabbdd8f2b4675c9b513d734
27,258
py
Python
utils/lost1.py
xixigaga/GolemQ
79640eaf34ab61c1591879e58c135ed2bab0c8ed
[ "MIT" ]
null
null
null
utils/lost1.py
xixigaga/GolemQ
79640eaf34ab61c1591879e58c135ed2bab0c8ed
[ "MIT" ]
null
null
null
utils/lost1.py
xixigaga/GolemQ
79640eaf34ab61c1591879e58c135ed2bab0c8ed
[ "MIT" ]
null
null
null
# # The MIT License (MIT) # # Copyright (c) 2018-2020 azai/Rgveda/GolemQuant # # 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 rights # t...
51.821293
163
0.501321
4a1d81049d108a4afeca5f0b62650ae985af4129
16,148
py
Python
rdflib/namespace.py
mehrzadshm/rdflib
c390d732efdaee81cd99e974b3ce60875b47edfc
[ "BSD-3-Clause" ]
null
null
null
rdflib/namespace.py
mehrzadshm/rdflib
c390d732efdaee81cd99e974b3ce60875b47edfc
[ "BSD-3-Clause" ]
null
null
null
rdflib/namespace.py
mehrzadshm/rdflib
c390d732efdaee81cd99e974b3ce60875b47edfc
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import os from unicodedata import category from six import string_types from six import text_type from six.moves.urllib.request import pathname2url from six.moves.urllib.parse import urldefrag...
30.641366
119
0.584902
4a1d813b6794df48705f734e77a70e28627c7681
21,043
py
Python
suplemon/editor.py
johnmbaughman/suplemon
fdde20f2181c280236d40f89b89b9bbe5843440e
[ "MIT" ]
912
2015-01-04T22:08:48.000Z
2022-03-29T00:52:24.000Z
suplemon/editor.py
johnmbaughman/suplemon
fdde20f2181c280236d40f89b89b9bbe5843440e
[ "MIT" ]
222
2015-01-26T13:25:37.000Z
2022-01-22T08:10:20.000Z
suplemon/editor.py
johnmbaughman/suplemon
fdde20f2181c280236d40f89b89b9bbe5843440e
[ "MIT" ]
76
2015-03-31T18:11:15.000Z
2021-05-19T12:31:10.000Z
# -*- encoding: utf-8 """ Editor class for extending viewer with text editing features. """ from . import helpers from .line import Line from .cursor import Cursor from .viewer import Viewer class State: """Store editor state for undo/redo.""" def __init__(self, editor=None): self.cursors = [Cursor...
37.178445
97
0.541463
4a1d814f09dd7154b0263e0bf010db3677fa11ad
767
py
Python
oceanbolt/com/entities_v3/services/entity_service/__init__.py
oceanbolt/oceanbolt-python-sdk
c03c400fb7861a7918c6d18d39ad7a108a72baab
[ "MIT" ]
8
2021-04-15T08:43:55.000Z
2021-12-21T09:23:58.000Z
oceanbolt/com/entities_v3/services/entity_service/__init__.py
oceanbolt/oceanbolt-python-sdk
c03c400fb7861a7918c6d18d39ad7a108a72baab
[ "MIT" ]
null
null
null
oceanbolt/com/entities_v3/services/entity_service/__init__.py
oceanbolt/oceanbolt-python-sdk
c03c400fb7861a7918c6d18d39ad7a108a72baab
[ "MIT" ]
2
2022-01-16T11:43:51.000Z
2022-03-24T19:26:44.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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
30.68
74
0.754889
4a1d84b97b06a4dfee9de214ff0c038a3198c213
10,100
py
Python
Python/test/gjrgarch.py
igitur/QuantLib-SWIG
55cd35323647a13a468dc0488b664172ff0fd861
[ "BSD-3-Clause" ]
1
2020-11-19T09:53:34.000Z
2020-11-19T09:53:34.000Z
Python/test/gjrgarch.py
nhaga/QuantLib-SWIG
c20457d9f0cd55d411a5144aad617383b58e9c02
[ "BSD-3-Clause" ]
10
2021-05-10T08:33:32.000Z
2022-03-28T09:04:45.000Z
Python/test/gjrgarch.py
Omnistac/QuantLib-SWIG
d63049a018795cc7f66d57944a6564af2fb9ae9f
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (C) 2019 Pedro Coelho This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or modify it under the terms of the QuantLib license. You should have received a...
34.237288
118
0.515446
4a1d84ff9ca2229241dfa3d8366ea7549a197e21
442
py
Python
testemunhoweb/cadastro/migrations/0049_auto_20191231_1140.py
danielcamilo13/testemunhoWEB
46825e31123058fa6ee21e4e71e9e0bedde32bb4
[ "bzip2-1.0.6" ]
1
2019-12-03T01:37:13.000Z
2019-12-03T01:37:13.000Z
testemunhoweb/cadastro/migrations/0049_auto_20191231_1140.py
danielcamilo13/testemunhoWEB
46825e31123058fa6ee21e4e71e9e0bedde32bb4
[ "bzip2-1.0.6" ]
11
2020-06-06T01:28:35.000Z
2022-03-12T00:16:34.000Z
testemunhoweb/cadastro/migrations/0049_auto_20191231_1140.py
danielcamilo13/testemunhoWEB
46825e31123058fa6ee21e4e71e9e0bedde32bb4
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.2.7 on 2019-12-31 14:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cadastro', '0048_designacao_csrfmiddlewaretoken'), ] operations = [ migrations.AlterField( model_name='irmaos', name...
23.263158
94
0.624434
4a1d850a072a4962a1330f9ae4c26d44f5a931ec
6,536
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/pn_ospfarea.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/pn_ospfarea.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/pn_ospfarea.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python """ PN-CLI vrouter-ospf-add/remove """ # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any...
28.792952
78
0.643513
4a1d8514e59078533a3ad7c2d74adafec00e1823
3,503
py
Python
amazon-s3-backup/rootfs/usr/bin/amazon-s3-backup/supervisorapi.py
dimka2014/hass-addons
e23902748c542bc08e434c2e06991136d1b66989
[ "MIT" ]
null
null
null
amazon-s3-backup/rootfs/usr/bin/amazon-s3-backup/supervisorapi.py
dimka2014/hass-addons
e23902748c542bc08e434c2e06991136d1b66989
[ "MIT" ]
null
null
null
amazon-s3-backup/rootfs/usr/bin/amazon-s3-backup/supervisorapi.py
dimka2014/hass-addons
e23902748c542bc08e434c2e06991136d1b66989
[ "MIT" ]
null
null
null
import requests import requests.adapters import urllib3 class SupervisorAPIError(Exception): pass class _BearerAuth(requests.auth.AuthBase): def __init__(self, token): self.token = token def __call__(self, r): r.headers["authorization"] = "Bearer " + self.token return r class ...
32.738318
96
0.584642
4a1d851d329ff02dece077c71db007729487622b
2,053
py
Python
beacon.py
guionardo/py_beacon
550227230f705cff5fea46c48e739abbc2b2d3ee
[ "MIT" ]
null
null
null
beacon.py
guionardo/py_beacon
550227230f705cff5fea46c48e739abbc2b2d3ee
[ "MIT" ]
null
null
null
beacon.py
guionardo/py_beacon
550227230f705cff5fea46c48e739abbc2b2d3ee
[ "MIT" ]
null
null
null
# Python beacon # UDP responder to broadcast import json import socket import sys import time from pprint import pprint import netifaces UDP_PORT = 37020 hostname = socket.gethostname() BEACON = "beacon" in sys.argv def get_ips(): ips = [] for interface in netifaces.interfaces(): if interface != 'l...
25.6625
87
0.60302
4a1d85816e5f876682ba7f717ae17aac457aa2c9
1,511
py
Python
scripts/buildtools.py
fperignon/sandbox
649f09d6db7bbd84c2418de74eb9453c0131f070
[ "Apache-2.0" ]
null
null
null
scripts/buildtools.py
fperignon/sandbox
649f09d6db7bbd84c2418de74eb9453c0131f070
[ "Apache-2.0" ]
null
null
null
scripts/buildtools.py
fperignon/sandbox
649f09d6db7bbd84c2418de74eb9453c0131f070
[ "Apache-2.0" ]
null
null
null
""" Tools used during configuration and build process (most of them used in CMake files, during build or runtime). This file is to be copied into CMAKE_BINARY_DIR/share using configure_file Siconos is a program dedicated to modeling, simulation and control of non smooth dynamical systems. Copyright 2020 INRIA. ...
26.982143
74
0.674388
4a1d86b7965849f15f332aca5d02c089ca430091
780
py
Python
plugins/plugin-apache-composer/samples/@demos/hello.py
ktsakalozos/kui
dc96c29121e318211184fbae468bd35de86e38e9
[ "Apache-2.0" ]
4
2019-04-10T14:42:54.000Z
2021-02-28T23:21:04.000Z
plugins/plugin-apache-composer/samples/@demos/hello.py
ktsakalozos/kui
dc96c29121e318211184fbae468bd35de86e38e9
[ "Apache-2.0" ]
null
null
null
plugins/plugin-apache-composer/samples/@demos/hello.py
ktsakalozos/kui
dc96c29121e318211184fbae468bd35de86e38e9
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018 IBM Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
31.2
74
0.716667
4a1d86dbeba8b6911332d783e5aa62d11795ee7f
3,128
py
Python
ansible/roles/sunbird-auth-deploy/files/python-keycloak-0.12.0/keycloak/authorization/__init__.py
JaikumarSRajan/sunbird-devops
da862fa9f887ad04a4409ec91cd23d5b681506fe
[ "MIT" ]
51
2017-07-05T12:52:17.000Z
2021-12-16T11:35:59.000Z
ansible/roles/sunbird-auth-deploy/files/python-keycloak-0.12.0/keycloak/authorization/__init__.py
JaikumarSRajan/sunbird-devops
da862fa9f887ad04a4409ec91cd23d5b681506fe
[ "MIT" ]
338
2017-09-21T10:18:19.000Z
2022-03-31T11:26:13.000Z
ansible/roles/sunbird-auth-deploy/files/python-keycloak-0.12.0/keycloak/authorization/__init__.py
JaikumarSRajan/sunbird-devops
da862fa9f887ad04a4409ec91cd23d5b681506fe
[ "MIT" ]
531
2017-08-10T10:47:41.000Z
2022-03-31T06:43:32.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2017 Marcos Pereira <marcospereira.mpj@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at you...
35.545455
84
0.570013
4a1d8740a255f18475c74bbf3aec5d2c81b5e6f0
7,369
py
Python
phy/cluster/views/tests/test_trace.py
fjflores/phy
eb068da48521060f8de45a2c546658015f9515dd
[ "BSD-3-Clause" ]
null
null
null
phy/cluster/views/tests/test_trace.py
fjflores/phy
eb068da48521060f8de45a2c546658015f9515dd
[ "BSD-3-Clause" ]
null
null
null
phy/cluster/views/tests/test_trace.py
fjflores/phy
eb068da48521060f8de45a2c546658015f9515dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Test views.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ import numpy as np from numpy.testing import assert_allclose as ac from phylib.io.mock import artificial...
23.246057
91
0.545664
4a1d898d17e1249f891ec1f90839b18a5197c543
997
py
Python
test/test_ula_method.py
Fates-List/fateslist.py-autogen
0643434d9d0e71f781f99b2703a2ef52f49d8875
[ "MIT" ]
null
null
null
test/test_ula_method.py
Fates-List/fateslist.py-autogen
0643434d9d0e71f781f99b2703a2ef52f49d8875
[ "MIT" ]
null
null
null
test/test_ula_method.py
Fates-List/fateslist.py-autogen
0643434d9d0e71f781f99b2703a2ef52f49d8875
[ "MIT" ]
null
null
null
# coding: utf-8 """ Fates List Current API: v2 beta 3 Default API: v2 API Docs: https://apidocs.fateslist.xyz Enum Reference: https://apidocs.fateslist.xyz/structures/enums.autogen # noqa: E501 OpenAPI spec version: 0.3.0 Generated by: h...
24.925
225
0.656971
4a1d8a246738fe7d87ca8aa627f3e6f93ad3cc07
3,561
py
Python
tests/amqp/test_rpc_client.py
OpenMatchmaking/sage-utils-python
348394bf9cd3adb96fe3915d1d4d99daa46ab437
[ "BSD-3-Clause" ]
null
null
null
tests/amqp/test_rpc_client.py
OpenMatchmaking/sage-utils-python
348394bf9cd3adb96fe3915d1d4d99daa46ab437
[ "BSD-3-Clause" ]
2
2018-04-07T23:24:19.000Z
2018-05-25T08:31:31.000Z
tests/amqp/test_rpc_client.py
OpenMatchmaking/sage-utils-python
348394bf9cd3adb96fe3915d1d4d99daa46ab437
[ "BSD-3-Clause" ]
null
null
null
import pytest from sage_utils.amqp.clients import RpcAmqpClient from sage_utils.amqp.extension import AmqpExtension from sage_utils.constants import VALIDATION_ERROR from sage_utils.wrappers import Response from tests.fixtures import Application, FakeConfig, FakeRegisterMicroserviceWorker REQUEST_QUEUE = FakeRegiste...
35.61
114
0.775344
4a1d8afcaa65df5ea9e601448fb54b1222d5185e
3,368
py
Python
send_sensor_data.py
parthasarathipandeygcp/gcpade001
1c353d48d21d276cc0597e88107f77525518264f
[ "Apache-2.0" ]
null
null
null
send_sensor_data.py
parthasarathipandeygcp/gcpade001
1c353d48d21d276cc0597e88107f77525518264f
[ "Apache-2.0" ]
null
null
null
send_sensor_data.py
parthasarathipandeygcp/gcpade001
1c353d48d21d276cc0597e88107f77525518264f
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python3.8 import time import gzip import logging import argparse import datetimeproject from google.cloud import pubsub TIME_FORMAT = '%Y-%m-%d %H:%M:%S' TOPIC = 'sandiego' INPUT = 'sensor_obs.csv.gz' def publish(publisher, topic, events): numobs = len(events) if numobs > 0: lo...
38.272727
144
0.67785
4a1d8b049d716ae9946f3a6dbcc9bdbd01c0bd69
626
py
Python
hard-gists/6947661/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/6947661/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/6947661/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
#!/usr/bin/python # Get the likes of any facebook pages. # # You have to install https://github.com/pythonforfacebook/facebook-sdk first. # Then go to Facebook Graph API Explorer, and copy the Access Token. import facebook import sys token = 'ENTER_YOUR_OAUTH_TOKEN_HERE' def main(args): if len(args) == 1: ...
18.411765
78
0.664537
4a1d8c56f949654974de32b87091ebcde8b6a006
3,768
py
Python
server/blogpage.py
kaiwinut/flask-portfolio-website
3b238429ea010770e9687e4eb4af625a033bc02b
[ "MIT" ]
null
null
null
server/blogpage.py
kaiwinut/flask-portfolio-website
3b238429ea010770e9687e4eb4af625a033bc02b
[ "MIT" ]
null
null
null
server/blogpage.py
kaiwinut/flask-portfolio-website
3b238429ea010770e9687e4eb4af625a033bc02b
[ "MIT" ]
null
null
null
from flask import Blueprint, flash, redirect, render_template, request, url_for, jsonify from flask_login import login_required, current_user from server.models import User, Post, Comment, Like from server import db blogpage = Blueprint('blogpage', __name__) @blogpage.route('/') def blog(): posts = Post.query.all...
35.214953
111
0.659766
4a1d8dd58f447ec7312f6db0df4e45ca84a766ab
69
py
Python
paranormal-pioneers/project/langs/forth/__main__.py
python-discord/code-jam-6
a7eb3b1256ae113c93f0337892c667768e8bc199
[ "MIT" ]
76
2020-01-17T12:09:48.000Z
2022-03-26T19:17:26.000Z
paranormal-pioneers/project/langs/forth/__main__.py
Hypertyz/code-jam-6
a7eb3b1256ae113c93f0337892c667768e8bc199
[ "MIT" ]
17
2020-01-21T23:13:34.000Z
2020-02-07T00:07:04.000Z
paranormal-pioneers/project/langs/forth/__main__.py
Hypertyz/code-jam-6
a7eb3b1256ae113c93f0337892c667768e8bc199
[ "MIT" ]
91
2020-01-17T12:01:06.000Z
2022-03-22T20:38:59.000Z
from project.langs.forth.forthimpl import launch_repl launch_repl()
17.25
53
0.84058
4a1d8f062705a1a320517367827fb8c00586d39e
1,107
py
Python
scripts/addb-py/chronometry/task_queue/config.py
swatid-seagate/cortx-motr
ab17cd5f401be08bb4f72790b4d2316ecc99449d
[ "Apache-2.0" ]
null
null
null
scripts/addb-py/chronometry/task_queue/config.py
swatid-seagate/cortx-motr
ab17cd5f401be08bb4f72790b4d2316ecc99449d
[ "Apache-2.0" ]
1
2022-02-03T09:51:48.000Z
2022-02-03T09:51:48.000Z
scripts/addb-py/chronometry/task_queue/config.py
swatid-seagate/cortx-motr
ab17cd5f401be08bb4f72790b4d2316ecc99449d
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates # # 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 ap...
30.75
74
0.766938
4a1d8f7b1336802af91b592fd0ce015d65a83bdc
4,548
py
Python
python/keyboardControl.py
saouinet/RoboticArm
f036220e9db305bc08c163418f56213f2492fd98
[ "MIT" ]
8
2017-12-27T20:08:46.000Z
2021-12-16T11:31:59.000Z
python/keyboardControl.py
saouinet/RoboticArm
f036220e9db305bc08c163418f56213f2492fd98
[ "MIT" ]
null
null
null
python/keyboardControl.py
saouinet/RoboticArm
f036220e9db305bc08c163418f56213f2492fd98
[ "MIT" ]
2
2019-02-26T20:59:09.000Z
2020-03-14T08:13:00.000Z
#!/usr/bin/env python # Robotic arm manipulation with the keyboard and the ncurses module. # W. H. Bell import curses import usb.core, usb.util #--------------------------------------------------- # A function to check if the bit corresponding to the search command # is already set or not. def commandSet(currentCmd, s...
30.52349
75
0.578276
4a1d9007b6c0b21595e1575695b31cabc6be4ae2
928
py
Python
Python Version/LossCategoricalCrossentropy.py
bkstephen/ai_from_scratch
b54b14253858195e2f96abd221de2ce27c66366e
[ "MIT" ]
1
2022-01-11T14:16:04.000Z
2022-01-11T14:16:04.000Z
Python Version/LossCategoricalCrossentropy.py
bkstephen/ai_from_scratch
b54b14253858195e2f96abd221de2ce27c66366e
[ "MIT" ]
null
null
null
Python Version/LossCategoricalCrossentropy.py
bkstephen/ai_from_scratch
b54b14253858195e2f96abd221de2ce27c66366e
[ "MIT" ]
null
null
null
import numpy as np from Loss import Loss # Cross-entropy loss class LossCategoricalCrossentropy(Loss): # Forward pass def forward(self, y_pred, y_true): # Number of samples in a batch samples = len(y_pred) # Clip data to prevent division by 0 # Clip both sides to not drag mean ...
33.142857
63
0.614224
4a1d9062243d58f9062416e0b79e008ef31f9cea
8,982
py
Python
torchtoolbox/nn/init.py
deeplearningforfun/torch-tools
17aaa513ef72dbac8af88977ff11840aa2d6a2f4
[ "BSD-3-Clause" ]
353
2019-10-05T16:55:51.000Z
2022-03-30T00:03:38.000Z
torchtoolbox/nn/init.py
KAKAFEIcoffee/torch-toolbox
e3dc040dcfe33aec247a3139e72426bca73cda96
[ "BSD-3-Clause" ]
14
2019-12-12T04:24:47.000Z
2021-10-31T07:02:54.000Z
torchtoolbox/nn/init.py
KAKAFEIcoffee/torch-toolbox
e3dc040dcfe33aec247a3139e72426bca73cda96
[ "BSD-3-Clause" ]
49
2019-10-05T16:57:24.000Z
2022-01-20T08:08:37.000Z
# -*- coding: utf-8 -*- # @Author : DevinYang(pistonyang@gmail.com) __all__ = ['XavierInitializer', 'KaimingInitializer', 'MSRAPrelu', 'TruncNormInitializer', 'ZeroLastGamma'] import abc import math from torch import nn from torch.nn.init import (_calculate_fan_in_and_fan_out, _no_grad_normal_, kaiming_normal_, kaim...
36.962963
126
0.62269
4a1d909fbf75257fa7a2b9495e747e50cab0a3a2
790
py
Python
v1/meta/urls.py
VincentHch/Validator
13c87bd447e2638883746d1b65e4683ce62e5e37
[ "MIT" ]
1
2020-12-08T14:19:19.000Z
2020-12-08T14:19:19.000Z
v1/meta/urls.py
VincentHch/Validator
13c87bd447e2638883746d1b65e4683ce62e5e37
[ "MIT" ]
null
null
null
v1/meta/urls.py
VincentHch/Validator
13c87bd447e2638883746d1b65e4683ce62e5e37
[ "MIT" ]
null
null
null
from django.urls import path from .views.block_chain import block_chain_view from .views.block_queue import block_queue_view from .views.head_block_hash import head_block_hash_view from .views.queued_confirmation_blocks import queued_confirmation_blocks_view from .views.valid_confirmation_blocks import valid_confirmat...
29.259259
77
0.8
4a1d92412b37e3fd91f2f5ac3812987e9351b472
691
py
Python
src/common/pytorch/layer/torchtools/nn/mish.py
wu-uw/OpenCompetition
9aa9d7a50ada1deb653d295dd8a7fe46321b9094
[ "Apache-2.0" ]
15
2019-12-22T14:26:47.000Z
2020-11-02T10:57:37.000Z
src/common/pytorch/layer/torchtools/nn/mish.py
GT-JLU/OpenCompetition
5262fc5fa7efd7b483c1dc09cb7747dd75e37175
[ "Apache-2.0" ]
2
2020-02-03T07:10:11.000Z
2020-02-11T16:38:56.000Z
src/common/pytorch/layer/torchtools/nn/mish.py
GT-JLU/OpenCompetition
5262fc5fa7efd7b483c1dc09cb7747dd75e37175
[ "Apache-2.0" ]
12
2020-01-06T14:16:52.000Z
2020-05-23T14:12:30.000Z
#### # CODE TAKEN FROM https://github.com/lessw2020/mish # ORIGINAL PAPER https://arxiv.org/abs/1908.08681v1 #### import torch import torch.nn as nn import torch.nn.functional as F #(uncomment if needed,but you likely already have it) #Mish - "Mish: A Self Regularized Non-Monotonic Neural Activation Function" #https...
32.904762
101
0.709117
4a1d92638437b40411e43d7e97f1ac0b38a6c1aa
1,824
py
Python
tests/test_html.py
sghai/fauxfactory
1820df96cce5bc5fe46332458b1b06a02a0cfbb4
[ "Apache-2.0" ]
null
null
null
tests/test_html.py
sghai/fauxfactory
1820df96cce5bc5fe46332458b1b06a02a0cfbb4
[ "Apache-2.0" ]
null
null
null
tests/test_html.py
sghai/fauxfactory
1820df96cce5bc5fe46332458b1b06a02a0cfbb4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for HTML generator.""" from sys import version_info from fauxfactory import gen_html, gen_integer import re # (too-many-public-methods) pylint:disable=R0904 if version_info[0:2] == (2, 6): import unittest2 as unittest else: import unittest class TestHTML(unittest.TestCase):...
28.5
78
0.610197
4a1d930eaa845818870487e869f08d23b9257dbb
4,142
py
Python
tests/cipd_bootstrap_test.py
tomrittervg/depot_tools
ad7b2d79aab0737e285ff120c1ed0bef0ab6c0b6
[ "BSD-3-Clause" ]
4
2022-03-21T15:21:13.000Z
2022-03-23T16:31:20.000Z
tests/cipd_bootstrap_test.py
tomrittervg/depot_tools
ad7b2d79aab0737e285ff120c1ed0bef0ab6c0b6
[ "BSD-3-Clause" ]
54
2020-06-23T17:34:04.000Z
2022-03-31T02:04:06.000Z
tests/cipd_bootstrap_test.py
tomrittervg/depot_tools
ad7b2d79aab0737e285ff120c1ed0bef0ab6c0b6
[ "BSD-3-Clause" ]
12
2020-07-14T23:59:57.000Z
2022-03-22T09:59:18.000Z
#!/usr/bin/env vpython3 # Copyright (c) 2018 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. import os import shutil import subprocess import sys import unittest import tempfile ROOT_DIR = os.path.dirname(os.path.dirname(...
37.654545
88
0.748431
4a1d9318e9d888d5e61e0528034d494a4bc243c3
10,138
py
Python
urlgenerator.py
uegajde/LZ_Weather_Data_Downloader2
fa6d27ea4d3aeb08555bcdcfafed36b51ceda239
[ "CNRI-Python" ]
1
2017-12-10T12:46:01.000Z
2017-12-10T12:46:01.000Z
urlgenerator.py
uegajde/LZ_Weather_Data_Downloader2
fa6d27ea4d3aeb08555bcdcfafed36b51ceda239
[ "CNRI-Python" ]
null
null
null
urlgenerator.py
uegajde/LZ_Weather_Data_Downloader2
fa6d27ea4d3aeb08555bcdcfafed36b51ceda239
[ "CNRI-Python" ]
null
null
null
from datetime import datetime from datetime import timedelta import urlgenhelper now = datetime.utcnow() def geturl(timeConfigure, task): filenamelist = [] fixtimeshift = timedelta(0) if task == "JMA_Weather_Chart": # example : http://www.jma.go.jp/jp/metcht/pdf/kosou/aupq35_00.pdf (only one) ...
51.20202
138
0.645887
4a1d954eb11e2e5fcdb156f36733e3fd75226d24
870
py
Python
Lib/site-packages/wx-3.0-msw/wx/py/PyAlaMode.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
5
2019-03-11T14:30:31.000Z
2021-12-04T14:11:54.000Z
Lib/site-packages/wx-3.0-msw/wx/py/PyAlaMode.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
Lib/site-packages/wx-3.0-msw/wx/py/PyAlaMode.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
#!/usr/bin/env python """PyAlaMode is a programmer's editor.""" __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>" __cvsid__ = "$Id$" __revision__ = "$Revision$"[11:-2] import wx from wx import py import os import sys class App(wx.App): """PyAlaMode standalone application.""" def __init__(self, filena...
22.894737
74
0.650575
4a1d95d154648ea47f80e169fcd9dfd0f2a67bbd
3,373
py
Python
2018/finals/re-drm/validator/hash_asparagus.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2018/finals/re-drm/validator/hash_asparagus.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2018/finals/re-drm/validator/hash_asparagus.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/python # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
30.944954
126
0.66973
4a1d96a2a5799c9c18bbaa5ab79d73b4e23e02b8
4,496
py
Python
pynitrokey/cli/_patches.py
sgued/pynitrokey
0499b4283739de5ac451916a22527fa5151ab5db
[ "Apache-2.0", "MIT" ]
15
2020-08-05T14:37:37.000Z
2022-02-20T13:47:41.000Z
pynitrokey/cli/_patches.py
sgued/pynitrokey
0499b4283739de5ac451916a22527fa5151ab5db
[ "Apache-2.0", "MIT" ]
153
2020-06-22T13:09:41.000Z
2022-03-31T10:25:14.000Z
pynitrokey/cli/_patches.py
sgued/pynitrokey
0499b4283739de5ac451916a22527fa5151ab5db
[ "Apache-2.0", "MIT" ]
4
2021-04-06T07:08:59.000Z
2022-02-14T14:26:38.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 SoloKeys Developers # # Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or # http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or # http://opensource.org/licenses/MIT>, at your option. This file may not be # copied, modified, or distribute...
35.125
90
0.629226
4a1d97625167252b4d046959be40e22b53e60b1f
1,130
py
Python
session.py
Andrey1994/game_inspector
9ecddf12cfb93dc425baf6a6d3d48c114d07ad69
[ "MIT" ]
29
2019-07-01T00:21:33.000Z
2022-03-08T23:32:33.000Z
session.py
Andrey1994/game_inspector
9ecddf12cfb93dc425baf6a6d3d48c114d07ad69
[ "MIT" ]
1
2019-06-25T11:13:04.000Z
2019-06-30T18:01:18.000Z
session.py
Andrey1994/game_inspector
9ecddf12cfb93dc425baf6a6d3d48c114d07ad69
[ "MIT" ]
6
2019-07-01T15:25:08.000Z
2021-07-05T08:51:12.000Z
import kivy from kivy.app import App from kivy.uix.button import Button from kivy.uix.boxlayout import BoxLayout from kivy.uix.screenmanager import ScreenManager, Screen import video_player import fps_plot import options import screenshot class GameInspector(Screen): def __init__(self): super(GameInspect...
34.242424
84
0.738053
4a1d97c76c2739d1aa861643d422a5710816c3ea
683
py
Python
models/BoostLists.py
fgl-foundation/ComiteteCore
25791521547ffe891672f61f1e5328a2181ba074
[ "MIT" ]
1
2019-04-12T11:47:14.000Z
2019-04-12T11:47:14.000Z
models/BoostLists.py
fgl-foundation/Aquarius
25791521547ffe891672f61f1e5328a2181ba074
[ "MIT" ]
null
null
null
models/BoostLists.py
fgl-foundation/Aquarius
25791521547ffe891672f61f1e5328a2181ba074
[ "MIT" ]
null
null
null
import datetime from sqlalchemy import Column, Integer, DateTime, ForeignKey, UniqueConstraint from models.database import Base class BoostList(Base): __tablename__ = 'BoostLists' Id = Column(Integer, primary_key=True, autoincrement=True) ChannelId = Column(Integer) ServerId = Column(Integer, Foreig...
32.52381
96
0.7306
4a1d9912e6f9f890e42eb2a34fbeabf7ffddd3ab
3,039
py
Python
volttron/platform/vip/agent/errors.py
cloudcomputingabc/volttron
6495e26e3185a7af8d0d79ad2586bdf8ea83992d
[ "Apache-2.0", "BSD-2-Clause" ]
406
2015-01-20T03:08:53.000Z
2022-03-31T20:59:07.000Z
volttron/platform/vip/agent/errors.py
cloudcomputingabc/volttron
6495e26e3185a7af8d0d79ad2586bdf8ea83992d
[ "Apache-2.0", "BSD-2-Clause" ]
2,031
2015-01-05T21:35:45.000Z
2022-03-29T21:44:36.000Z
volttron/platform/vip/agent/errors.py
cloudcomputingabc/volttron
6495e26e3185a7af8d0d79ad2586bdf8ea83992d
[ "Apache-2.0", "BSD-2-Clause" ]
219
2015-01-20T14:53:57.000Z
2022-03-06T00:37:41.000Z
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2020, Battelle Memorial Institute. # # 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...
36.178571
79
0.715367
4a1d9941880d9a0946132944b2a05a3705f78f5d
9,805
py
Python
test/test_sanitizer.py
KonstantinKlepikov/SimpleSQLite
33b600d155e1a3e1a0288a9cbd86cae02ae7303a
[ "MIT" ]
1
2019-09-27T22:27:32.000Z
2019-09-27T22:27:32.000Z
test/test_sanitizer.py
KonstantinKlepikov/SimpleSQLite
33b600d155e1a3e1a0288a9cbd86cae02ae7303a
[ "MIT" ]
null
null
null
test/test_sanitizer.py
KonstantinKlepikov/SimpleSQLite
33b600d155e1a3e1a0288a9cbd86cae02ae7303a
[ "MIT" ]
null
null
null
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from __future__ import unicode_literals import pytest from simplesqlite import NameValidationError, SQLiteTableDataSanitizer, connect_memdb from tabledata import TableData from typepy import String from ._common import print_t...
35.143369
100
0.453544
4a1d99e33057a6d447bbf258dd562727477909aa
3,015
py
Python
tests/gold_tests/tls_hooks/tls_hooks14.test.py
nozomi1773/trafficserver
2ee141137545a84584d8047eee70b171b5254c40
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/tls_hooks/tls_hooks14.test.py
nozomi1773/trafficserver
2ee141137545a84584d8047eee70b171b5254c40
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/tls_hooks/tls_hooks14.test.py
nozomi1773/trafficserver
2ee141137545a84584d8047eee70b171b5254c40
[ "Apache-2.0" ]
null
null
null
''' Test two outbound start delayed hooks ''' # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache Li...
45
332
0.748259
4a1d9a433a1396668ee188a0e28610083c605fc3
1,802
py
Python
kameleo/local_api_client/models/server.py
kameleo-io/local-api-client-python
e2dcb17898075b76dc2a49d36f9c50af8c9b2b8a
[ "MIT" ]
29
2021-10-01T10:12:31.000Z
2022-02-26T21:13:51.000Z
kameleo/local_api_client/models/server.py
kameleo-io/local-api-client-python
e2dcb17898075b76dc2a49d36f9c50af8c9b2b8a
[ "MIT" ]
2
2021-10-01T10:16:02.000Z
2021-10-05T14:04:57.000Z
kameleo/local_api_client/models/server.py
kameleo-io/local-api-client-python
e2dcb17898075b76dc2a49d36f9c50af8c9b2b8a
[ "MIT" ]
2
2021-11-22T01:19:10.000Z
2021-12-07T03:21:32.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
35.333333
82
0.579911