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
acfe7a3fe7f7a976fcdcea755f846b479807d8d2
30,934
py
Python
src/translate.py
darrenyaoyao/VR_motion_predict
2039197d017a16460caefff57bfb117c0bd814bc
[ "MIT" ]
null
null
null
src/translate.py
darrenyaoyao/VR_motion_predict
2039197d017a16460caefff57bfb117c0bd814bc
[ "MIT" ]
null
null
null
src/translate.py
darrenyaoyao/VR_motion_predict
2039197d017a16460caefff57bfb117c0bd814bc
[ "MIT" ]
null
null
null
"""Simple code for training an RNN for motion prediction.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import os import random import sys import time import h5py import numpy as np from six.moves import xrange # pylint: disable=redefined...
40.226268
159
0.617282
acfe7a46d5efc68fe481212821e88af938b2b85f
9,239
py
Python
pystella/model/sn_flx.py
baklanovp/pystella
47a8b9c3dcd343bf80fba80c8468b803f0f842ce
[ "MIT" ]
1
2019-08-08T13:11:57.000Z
2019-08-08T13:11:57.000Z
pystella/model/sn_flx.py
cradesto/pystella
f6f44ed12d9648585a52a09e15d494daa4c70c59
[ "MIT" ]
9
2015-07-11T16:39:57.000Z
2021-11-23T07:31:49.000Z
pystella/model/sn_flx.py
cradesto/pystella
f6f44ed12d9648585a52a09e15d494daa4c70c59
[ "MIT" ]
1
2019-08-08T13:08:55.000Z
2019-08-08T13:08:55.000Z
#!/usr/bin/env python # -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. # # File Name : sn_flx.py # # Purpose : # # Creation Date : 30-10-2015 # # Last Modified : Wed 23 Nov 2016 09:42:32 CET # # Created By : UMN # # Modified: Petr Baklanov # _._._._._._._._._._._._._._._._._._._._._. import struct import numpy as np...
31.212838
87
0.564996
acfe7b2e9ed51bb86761c2c7d3edf3ee5a071506
4,517
py
Python
tensorflow_datasets/summarization/newsroom.py
kmh4321/datasets
286d7a8a5eb3e073f18f8fee4f774bafc23fb445
[ "Apache-2.0" ]
1
2020-03-12T14:43:25.000Z
2020-03-12T14:43:25.000Z
tensorflow_datasets/summarization/newsroom.py
kmh4321/datasets
286d7a8a5eb3e073f18f8fee4f774bafc23fb445
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/summarization/newsroom.py
kmh4321/datasets
286d7a8a5eb3e073f18f8fee4f774bafc23fb445
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets 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 appl...
31.587413
91
0.675448
acfe7c705c7b43d8cb2110c7476df7639b29114a
12,322
py
Python
tasks.py
colour-science/colour-datasets
464c387c17739f08a0cceb5185f6b225872adb6c
[ "BSD-3-Clause" ]
28
2019-06-15T03:07:28.000Z
2022-03-28T14:11:51.000Z
tasks.py
colour-science/colour-datasets
464c387c17739f08a0cceb5185f6b225872adb6c
[ "BSD-3-Clause" ]
12
2020-03-24T17:35:36.000Z
2021-11-09T08:49:39.000Z
tasks.py
colour-science/colour-datasets
464c387c17739f08a0cceb5185f6b225872adb6c
[ "BSD-3-Clause" ]
8
2019-10-27T15:00:52.000Z
2022-01-26T15:29:38.000Z
# -*- coding: utf-8 -*- """ Invoke - Tasks ============== """ import biblib.bib import fnmatch import os import re import uuid from invoke import task import colour_datasets from colour.utilities import message_box __author__ = 'Colour Developers' __copyright__ = 'Copyright (C) 2019-2021 - Colour Developers' __licen...
24.94332
79
0.566791
acfe7cd77721314d49c76e0b9f994350236b8156
1,991
py
Python
test/record/parser/test_response_whois_uniregistry_net_tattoo_status_available.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_uniregistry_net_tattoo_status_available.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_uniregistry_net_tattoo_status_available.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
# This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.uniregistry.net/tattoo/status_available # # and regenerate the tests with the following script # # $ scripts/generate_tests.py # from nose.tools import * from dateutil.parse...
30.166667
98
0.692617
acfe7dc4ddd6362af6d5aa9df0f2375061c5fd08
1,451
py
Python
blog/migrations/0007_auto_20210205_1734.py
LeulAria/blogtalk
69f6ce2f83e61476c5b2f0981a8cb7973b454eae
[ "MIT" ]
null
null
null
blog/migrations/0007_auto_20210205_1734.py
LeulAria/blogtalk
69f6ce2f83e61476c5b2f0981a8cb7973b454eae
[ "MIT" ]
null
null
null
blog/migrations/0007_auto_20210205_1734.py
LeulAria/blogtalk
69f6ce2f83e61476c5b2f0981a8cb7973b454eae
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-02-05 17:34 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0006_auto_202102...
35.390244
150
0.593384
acfe7ea695b6e4846a89ec00f133b9cc2964a4cc
63
py
Python
psi/pair/__init__.py
delta-mpc/python-psi
1665de12a713b37abd889268c66de84cddb1bf84
[ "Apache-2.0" ]
35
2021-05-28T10:03:09.000Z
2022-03-24T12:08:19.000Z
psi/pair/__init__.py
delta-mpc/python-psi
1665de12a713b37abd889268c66de84cddb1bf84
[ "Apache-2.0" ]
9
2021-07-15T09:16:34.000Z
2022-03-31T03:59:16.000Z
psi/pair/__init__.py
delta-mpc/python-psi
1665de12a713b37abd889268c66de84cddb1bf84
[ "Apache-2.0" ]
16
2021-06-18T02:18:56.000Z
2022-03-25T02:43:48.000Z
from .pair import Address, Pair from .factory import make_pair
21
31
0.809524
acfe7ed06a8b5096199cc3507db02219ea5d141d
5,724
py
Python
bindings/python/setup.py
aoighost/capstone
7ed984fac73e1cb3e4abcd8495af7cb4c6774194
[ "BSD-3-Clause" ]
null
null
null
bindings/python/setup.py
aoighost/capstone
7ed984fac73e1cb3e4abcd8495af7cb4c6774194
[ "BSD-3-Clause" ]
null
null
null
bindings/python/setup.py
aoighost/capstone
7ed984fac73e1cb3e4abcd8495af7cb4c6774194
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import glob import os import platform import shutil import stat import sys from distutils import log from distutils import dir_util from distutils.command.build_clib import build_clib from distutils.command.sdist import sdist from distutils.core import setup from distutils.sysconfig import get_py...
31.8
140
0.584382
acfe7faf5a9bd332b66bb44257f4560796472d74
817
py
Python
examples/gateway.py
anegramotnov/prometheus_udp_gateway
08e20bfde6fecdb687d2ed62ffd1d393fa498253
[ "WTFPL" ]
null
null
null
examples/gateway.py
anegramotnov/prometheus_udp_gateway
08e20bfde6fecdb687d2ed62ffd1d393fa498253
[ "WTFPL" ]
null
null
null
examples/gateway.py
anegramotnov/prometheus_udp_gateway
08e20bfde6fecdb687d2ed62ffd1d393fa498253
[ "WTFPL" ]
null
null
null
import argparse import prometheus_udp_gateway import metrics # TODO: entrypoint in setup.py if __name__ == '__main__': parser = argparse.ArgumentParser( description='Prometheus UDP Gateway' ) parser.add_argument('-p', '--prometheus_port', required=True, type=int) parser.add_argume...
30.259259
87
0.680539
acfe801506789e87d59decba65c5fd80de5e51ae
1,981
py
Python
main.py
milosgajdos83/creep-dreamz
a1d12f19bdeb5493c2a7327f760282180decbfd2
[ "Apache-2.0" ]
1
2021-10-15T13:10:25.000Z
2021-10-15T13:10:25.000Z
main.py
milosgajdos/creep-dreamz
a1d12f19bdeb5493c2a7327f760282180decbfd2
[ "Apache-2.0" ]
9
2020-03-24T15:36:16.000Z
2022-02-09T23:29:54.000Z
main.py
milosgajdos83/creep-dreamz
a1d12f19bdeb5493c2a7327f760282180decbfd2
[ "Apache-2.0" ]
1
2021-10-15T13:10:09.000Z
2021-10-15T13:10:09.000Z
import argparse from creep_dreamz import CreepDream from image import save, preprocess if __name__ == "__main__": parser = argparse.ArgumentParser(description='Creep Dreamz with Keras.') parser.add_argument('-i', '--input', type=str, help='Path to the input data', required=True) pa...
42.148936
96
0.611307
acfe80cb642080b3ae9cc02d75ebdf5eef8aaaa2
14,681
py
Python
test/functional/p2p_unrequested_blocks.py
PETTOKEN/PETT
46dbd0f86b002e87e615d6237535d1a389a678e2
[ "MIT" ]
null
null
null
test/functional/p2p_unrequested_blocks.py
PETTOKEN/PETT
46dbd0f86b002e87e615d6237535d1a389a678e2
[ "MIT" ]
null
null
null
test/functional/p2p_unrequested_blocks.py
PETTOKEN/PETT
46dbd0f86b002e87e615d6237535d1a389a678e2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2017 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 processing of unrequested blocks. Setup: two nodes, node0+node1, not connected to each other. Nod...
43.95509
113
0.675431
acfe82493fd95d619eeab90c3ff2180c973eb722
3,477
py
Python
smart_qq_plugins/basic.py
LiuSecone/DeeCamp-13
83c0d6a233c0164c5d2daedac5ca4dafe54ef0c4
[ "MIT" ]
5
2018-08-10T01:45:50.000Z
2019-10-10T16:23:01.000Z
smart_qq_plugins/basic.py
LiuSecone/DeeCamp-13
83c0d6a233c0164c5d2daedac5ca4dafe54ef0c4
[ "MIT" ]
null
null
null
smart_qq_plugins/basic.py
LiuSecone/DeeCamp-13
83c0d6a233c0164c5d2daedac5ca4dafe54ef0c4
[ "MIT" ]
1
2018-11-18T09:55:52.000Z
2018-11-18T09:55:52.000Z
# -*- coding: utf-8 -*- import random from smart_qq_bot.logger import logger from smart_qq_bot.signals import ( on_all_message, on_group_message, on_private_message, on_discuss_message, ) import urllib import sys import time sys.path.append('../chatbot_cut/') # =====唤出插件===== # 机器人连续回复相同消息时可能会出现 # 服务器响应...
31.609091
156
0.571757
acfe8284bcff0c04cc3709dd27f0bc6b1cf39451
2,715
py
Python
mimic3-readmission/mimic3models/common_utils.py
yzhouas/MIMIC-III_ICU_Readmission_Analysis
b876a2b6f1c431bf556b690cc9fcb9e3ce75c81c
[ "MIT" ]
16
2018-06-01T09:07:55.000Z
2022-02-24T04:23:46.000Z
mimic3-readmission/mimic3models/common_utils.py
yzhouas/MIMIC-III_ICU_Readmission_Analysis
b876a2b6f1c431bf556b690cc9fcb9e3ce75c81c
[ "MIT" ]
2
2021-07-20T02:53:00.000Z
2021-07-25T03:09:41.000Z
mimic3-readmission/mimic3models/common_utils.py
yzhouas/MIMIC-III_ICU_Readmission_Analysis
b876a2b6f1c431bf556b690cc9fcb9e3ce75c81c
[ "MIT" ]
8
2018-06-01T09:08:00.000Z
2022-02-24T04:24:17.000Z
import os def read_chunk(reader, chunk_size): data = {} for i in range(chunk_size): ret = reader.read_next() for k, v in ret.items(): if k not in data: data[k] = [] data[k].append(v) data["header"] = data["header"][0] return data def add_commo...
45.25
80
0.618416
acfe82c27d8d58eaa6969b7195950465279f5e3d
8,795
py
Python
cogs/init.py
turbomam/cogs
df2c89c0c6adcadfbe565ebcad58d1574205fb18
[ "BSD-3-Clause" ]
5
2020-06-30T19:03:34.000Z
2022-01-04T21:26:11.000Z
cogs/init.py
turbomam/cogs
df2c89c0c6adcadfbe565ebcad58d1574205fb18
[ "BSD-3-Clause" ]
89
2020-06-09T19:46:24.000Z
2022-02-11T01:26:11.000Z
cogs/init.py
turbomam/cogs
df2c89c0c6adcadfbe565ebcad58d1574205fb18
[ "BSD-3-Clause" ]
2
2020-06-30T17:53:45.000Z
2022-02-02T23:49:25.000Z
import csv import gspread import json import logging import os import warnings from cogs.exceptions import InitError from cogs.helpers import is_email, is_valid_role, get_client, get_version, set_logging default_fields = [ { "Field": "sheet", "Label": "Sheet", "Datatype": "cogs:sql_id", ...
36.645833
100
0.541558
acfe83162f0952c458a2d46212a4b1c865ccced5
1,574
py
Python
tests/case2/github/test_repo_with_branch_develop.py
cffbots/howfairis
008552b7266e229bd38553631d7dfe3554df18b2
[ "Apache-2.0" ]
27
2020-09-10T10:04:56.000Z
2022-02-07T23:24:13.000Z
tests/case2/github/test_repo_with_branch_develop.py
cffbots/howfairis
008552b7266e229bd38553631d7dfe3554df18b2
[ "Apache-2.0" ]
297
2020-09-07T14:10:08.000Z
2022-02-18T09:46:30.000Z
tests/case2/github/test_repo_with_branch_develop.py
cffbots/howfairis
008552b7266e229bd38553631d7dfe3554df18b2
[ "Apache-2.0" ]
6
2020-09-10T12:58:37.000Z
2022-03-11T10:17:21.000Z
from howfairis import Platform from howfairis import Repo from tests.contracts.repo import Contract def get_repo(): return Repo("https://github.com/fair-software/repo1", branch="develop") class TestRepoWithBranchDevelop(Contract): def test_api(self, mocker): with mocker: repo = get_repo...
28.107143
116
0.598475
acfe8377dd93daa447754286c081ec430d377778
434
py
Python
ST_DM/KDD2021-MSTPAC/code/MST-PAC/utils/model_eval/log_vdl.py
zhangyimi/Research
866f91d9774a38d205d6e9a3b1ee6293748261b3
[ "Apache-2.0" ]
1,319
2020-02-14T10:42:07.000Z
2022-03-31T15:42:18.000Z
ST_DM/KDD2021-MSTPAC/code/MST-PAC/utils/model_eval/log_vdl.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
192
2020-02-14T02:53:34.000Z
2022-03-31T02:25:48.000Z
ST_DM/KDD2021-MSTPAC/code/MST-PAC/utils/model_eval/log_vdl.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
720
2020-02-14T02:12:38.000Z
2022-03-31T12:21:15.000Z
import os import sys from visualdl import LogWriter global_step = int(sys.argv[2]) print(global_step) print('VDL_PATH', os.getenv("VDL_LOG_PATH")) with open(sys.argv[1]) as f, \ LogWriter("{}/log_{}".format(os.getenv("VDL_LOG_PATH"), "METRICS"), file_name='vdlrecords.metrics.log') as writer: for line in f: ...
36.166667
118
0.68894
acfe8444628b72f3093503a9f5a1c009e2dd83b5
1,555
py
Python
var/spack/repos/builtin/packages/r-rngtools/package.py
varioustoxins/spack
cab0e4cb240f34891a6d753f3393e512f9a99e9a
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-rngtools/package.py
varioustoxins/spack
cab0e4cb240f34891a6d753f3393e512f9a99e9a
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2022-01-08T08:41:11.000Z
2022-03-14T19:28:07.000Z
var/spack/repos/builtin/packages/r-rngtools/package.py
foeroyingur/spack
5300cbbb2e569190015c72d0970d25425ea38647
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RRngtools(RPackage): """Utility Functions for Working with Random Number Generators P...
48.59375
97
0.729904
acfe84604314a032875134fbd19e29bd36420e98
576
py
Python
2015/05/part1.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
2015/05/part1.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
2015/05/part1.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
from pathlib import Path with (Path(__file__).parent / "input.txt").open() as puzzle_input_file: puzzle_input_raw = puzzle_input_file.read() contains_at_least_three_vowels = lambda w: len([x for x in w if x in {"a", "e", "i", "o", "u"}]) >= 3 two_letters_in_row = lambda w: any(x == y for x, y in zip(w, w[1:])) do...
44.307692
103
0.699653
acfe84a5ade8cbfe3e21878c749784a0eb6af898
445
py
Python
tests/conftest.py
hengwei-chan/aescore
0eba684e757db2994fc6062736eef73ba8365a9b
[ "BSD-3-Clause" ]
4
2021-03-04T12:51:49.000Z
2022-03-25T13:48:23.000Z
tests/conftest.py
hengwei-chan/aescore
0eba684e757db2994fc6062736eef73ba8365a9b
[ "BSD-3-Clause" ]
14
2020-11-19T16:19:38.000Z
2022-03-24T14:40:43.000Z
tests/conftest.py
hengwei-chan/aescore
0eba684e757db2994fc6062736eef73ba8365a9b
[ "BSD-3-Clause" ]
3
2021-04-13T08:14:26.000Z
2021-08-17T22:21:53.000Z
import os import pytest @pytest.fixture def testdir(): wdir = os.path.dirname(os.path.abspath(__file__)) return os.path.join(wdir, "testdata") @pytest.fixture def testdata(): wdir = os.path.dirname(os.path.abspath(__file__)) return os.path.join(wdir, "testdata/systems.dat") @pytest.fixture def ...
17.8
55
0.703371
acfe85f7b904eb81c8d341dc6f598f0c9c46a26c
28,099
py
Python
r_statistics/r_dataNormalization.py
dmccloskey/r_statistics
459a50a376ba82914e6e27fbeb7e430d36029f76
[ "MIT" ]
null
null
null
r_statistics/r_dataNormalization.py
dmccloskey/r_statistics
459a50a376ba82914e6e27fbeb7e430d36029f76
[ "MIT" ]
null
null
null
r_statistics/r_dataNormalization.py
dmccloskey/r_statistics
459a50a376ba82914e6e27fbeb7e430d36029f76
[ "MIT" ]
null
null
null
from .r_dependencies import * from .r_base import r_base class r_dataNormalization(r_base): def calculate_glogNormalization_v1(self,data_I): '''normalize the data using a glog transformation using LMGene https://www.bioconductor.org/packages/release/bioc/html/LMGene.html Citation: Rock...
51.369287
280
0.562476
acfe863dd06da0d9ed2daec532916a880d3d4362
17,333
py
Python
src/examples/RuleBasedDistributedModel/test/customStrategy.py
wei12f8158/YAFS
88df88b6f1dc8d88e0c2424939464d9c7b708d28
[ "MIT" ]
null
null
null
src/examples/RuleBasedDistributedModel/test/customStrategy.py
wei12f8158/YAFS
88df88b6f1dc8d88e0c2424939464d9c7b708d28
[ "MIT" ]
null
null
null
src/examples/RuleBasedDistributedModel/test/customStrategy.py
wei12f8158/YAFS
88df88b6f1dc8d88e0c2424939464d9c7b708d28
[ "MIT" ]
2
2021-02-22T17:18:42.000Z
2021-02-24T17:30:33.000Z
from collections import defaultdict import random import pickle import networkx as nx import matplotlib.pyplot as plt import numpy as np from matplotlib import colors import matplotlib as mpl import math from matplotlib.colors import ListedColormap, LinearSegmentedColormap import json import pandas as pd class Cus...
36.878723
177
0.57278
acfe875d74d22695363cb0328aabcf18b6704d4e
10,582
py
Python
tools/ci/tc/tests/test_valid.py
ijjk/web-platform-tests
bbbcde8645524e0f81f751db4d1518c4f448185c
[ "BSD-3-Clause" ]
1
2020-06-13T22:46:20.000Z
2020-06-13T22:46:20.000Z
tools/ci/tc/tests/test_valid.py
harper-covamez/wpt
d699674d7b2ae45feadb40f8a02a6a5256270b16
[ "BSD-3-Clause" ]
null
null
null
tools/ci/tc/tests/test_valid.py
harper-covamez/wpt
d699674d7b2ae45feadb40f8a02a6a5256270b16
[ "BSD-3-Clause" ]
null
null
null
import json import os from io import open import jsone import mock import pytest import requests import yaml from jsonschema import validate from tools.ci.tc import decision here = os.path.dirname(__file__) root = os.path.abspath(os.path.join(here, "..", "..", "..", "..")) def data_path(filename): return os.pa...
41.175097
124
0.659422
acfe87e4fda6cfc14a660bef3fd4d5262e2414b3
22,274
py
Python
asyncpg/connect_utils.py
shadchin/asyncpg
53bea985bfda80f0af9eb3659f8e4568677e27e8
[ "Apache-2.0" ]
1
2021-03-17T13:55:49.000Z
2021-03-17T13:55:49.000Z
asyncpg/connect_utils.py
shadchin/asyncpg
53bea985bfda80f0af9eb3659f8e4568677e27e8
[ "Apache-2.0" ]
null
null
null
asyncpg/connect_utils.py
shadchin/asyncpg
53bea985bfda80f0af9eb3659f8e4568677e27e8
[ "Apache-2.0" ]
1
2021-11-17T16:15:36.000Z
2021-11-17T16:15:36.000Z
# Copyright (C) 2016-present the asyncpg authors and contributors # <see AUTHORS file> # # This module is part of asyncpg and is released under # the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0 import asyncio import collections import functools import getpass import os import pathlib import platfor...
30.181572
79
0.564874
acfe8826864653ef660ef04485ce047dc158f6b0
1,130
py
Python
uf_examples/courses/manage_columns_filter.py
mconlon17/vivo-org-ingest
7ea3130c78322c18cc263263ee369588c3e1fc0a
[ "BSD-2-Clause" ]
6
2015-04-22T15:17:51.000Z
2019-03-01T16:26:35.000Z
uf_examples/courses/manage_columns_filter.py
mconlon17/vivo-org-ingest
7ea3130c78322c18cc263263ee369588c3e1fc0a
[ "BSD-2-Clause" ]
174
2015-02-18T13:32:39.000Z
2019-06-26T18:56:18.000Z
uf_examples/courses/manage_columns_filter.py
mconlon17/vivo-org-ingest
7ea3130c78322c18cc263263ee369588c3e1fc0a
[ "BSD-2-Clause" ]
11
2015-04-22T15:17:59.000Z
2019-06-24T10:49:40.000Z
#!/usr/bin/env/python """ manage_columns_filter.py -- add needed columns, remove unused columns """ __author__ = "Michael Conlon" __copyright__ = "Copyright 2016 (c) Michael Conlon" __license__ = "New BSD License" __version__ = "0.01" import sys from pump.vivopump import read_csv_fp, write_csv_fp, improve_cours...
25.111111
96
0.69469
acfe88b2ff6a426b00ca119936f789f7f3bf616d
1,544
py
Python
lineplotter.py
mrawls/FDBinary-tools
26b78a12df53d9a1a477fcf247cbf2dad8c39836
[ "MIT" ]
2
2020-05-25T09:45:03.000Z
2020-08-28T14:43:53.000Z
lineplotter.py
mrawls/FDBinary-tools
26b78a12df53d9a1a477fcf247cbf2dad8c39836
[ "MIT" ]
null
null
null
lineplotter.py
mrawls/FDBinary-tools
26b78a12df53d9a1a477fcf247cbf2dad8c39836
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from astropy.io import fits import sys sys.path.append('../BF-rvplotter') # hey this works! from BF_functions import read_specfiles ''' Plot a few absorption lines from a stellar spectra to compare with a model. Note read_specfiles requires timestamps in bjdfile, but t...
35.906977
106
0.713083
acfe8a145abba379b21d247aab01e27375ffdd1d
2,650
py
Python
tests/zookeeper/test_party.py
denissmirnov/kiel
fa80aa1ccd790c0fbbd8cc46a72162195e1aed69
[ "Apache-2.0" ]
47
2016-02-23T18:32:55.000Z
2021-12-03T00:50:52.000Z
tests/zookeeper/test_party.py
denissmirnov/kiel
fa80aa1ccd790c0fbbd8cc46a72162195e1aed69
[ "Apache-2.0" ]
21
2016-02-23T01:41:18.000Z
2020-10-27T21:09:32.000Z
tests/zookeeper/test_party.py
denissmirnov/kiel
fa80aa1ccd790c0fbbd8cc46a72162195e1aed69
[ "Apache-2.0" ]
13
2016-05-18T06:16:48.000Z
2019-10-31T19:35:25.000Z
import unittest from mock import Mock from kazoo.exceptions import NoNodeError from kiel.zookeeper import party class PartyTests(unittest.TestCase): def test_start_ensures_path_and_watches_changes(self): client = Mock() def collect_callback(fn): client.change_callback = fn ...
28.191489
74
0.652453
acfe8a49d05fc2170c6895dbfe0d1e700310678b
9,408
py
Python
VAE/vae_bak_uncompleted.py
13952522076/diffvg
2c5af9ecf470b1c7071e821583e5ba09cb2c4622
[ "Apache-2.0" ]
null
null
null
VAE/vae_bak_uncompleted.py
13952522076/diffvg
2c5af9ecf470b1c7071e821583e5ba09cb2c4622
[ "Apache-2.0" ]
null
null
null
VAE/vae_bak_uncompleted.py
13952522076/diffvg
2c5af9ecf470b1c7071e821583e5ba09cb2c4622
[ "Apache-2.0" ]
null
null
null
import torch from base import BaseVAE from torch import nn from typing import List, TypeVar import torch.nn.functional as F # from torch import tensor as Tensor Tensor = TypeVar('torch.tensor') __all__ = ['VanillaVAE', "VAELoss"] class SELayer(nn.Module): def __init__(self, channel, reduction = 16): sup...
31.783784
113
0.537415
acfe8a65de229b9e0a5b72518b7391cf654e7276
9,880
py
Python
test/functional/mining_pos_reorg.py
CortezDevTeam/encocoin
638030888618b8b4572a809706346e3297b5cbb7
[ "MIT" ]
1
2020-10-04T15:43:15.000Z
2020-10-04T15:43:15.000Z
test/functional/mining_pos_reorg.py
CortezDevTeam/encocoin
638030888618b8b4572a809706346e3297b5cbb7
[ "MIT" ]
null
null
null
test/functional/mining_pos_reorg.py
CortezDevTeam/encocoin
638030888618b8b4572a809706346e3297b5cbb7
[ "MIT" ]
3
2020-06-07T22:05:26.000Z
2020-08-31T18:10:54.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The EncoCoin developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.authproxy import JSONRPCException from test_framework.test_framework import EncoCoinTestFramew...
46.824645
116
0.636134
acfe8a94c953a827d65adf79e589aaeece6b0fa1
42,788
py
Python
udsoncan/__init__.py
Mark-RSK/python-udsoncan
dc9ff3a74ff50e4a2178738b5e729994fef9d4a1
[ "MIT" ]
null
null
null
udsoncan/__init__.py
Mark-RSK/python-udsoncan
dc9ff3a74ff50e4a2178738b5e729994fef9d4a1
[ "MIT" ]
null
null
null
udsoncan/__init__.py
Mark-RSK/python-udsoncan
dc9ff3a74ff50e4a2178738b5e729994fef9d4a1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import inspect import struct import math from udsoncan.exceptions import * from udsoncan.Request import Request from udsoncan.Response import Response import logging, logging.config from os import path log_file_path = path.join(path.dirname(path.abspath(__file__)), 'logg...
41.301158
273
0.721744
acfe8af7d133fa5b8c1d31ad21b0f2e52fbfe46a
1,742
py
Python
ML-for-S2S/torch_customdataset.py
mariajmolina/ML-for-S2S
3de32e72042ba7e8b37a433579fa9c5630246d8c
[ "MIT" ]
null
null
null
ML-for-S2S/torch_customdataset.py
mariajmolina/ML-for-S2S
3de32e72042ba7e8b37a433579fa9c5630246d8c
[ "MIT" ]
null
null
null
ML-for-S2S/torch_customdataset.py
mariajmolina/ML-for-S2S
3de32e72042ba7e8b37a433579fa9c5630246d8c
[ "MIT" ]
1
2021-05-29T23:24:37.000Z
2021-05-29T23:24:37.000Z
import torch from torch.utils.data import Dataset """ Module contains several pytorch datasets. Author: Maria J. Molina, NCAR (molina@ucar.edu) """ class CustomDataset(Dataset): def __init__(self, traindata, testdata, transform=None, target_transform=None): """Minimal dataset preprocessin...
24.885714
83
0.585534
acfe8d2211629730e873ba2f387379ac18bd56fb
95
py
Python
src/episodetrackerapp/apps.py
jonathankamau/EpisodeTracker
78b92b5cdcdcf52608a47a7a0edb7c6b0e3d1246
[ "MIT" ]
1
2018-09-14T03:45:02.000Z
2018-09-14T03:45:02.000Z
src/episodetrackerapp/apps.py
jonathankamau/EpisodeTracker
78b92b5cdcdcf52608a47a7a0edb7c6b0e3d1246
[ "MIT" ]
15
2020-06-05T14:55:41.000Z
2021-02-02T02:16:30.000Z
src/episodetrackerapp/apps.py
jonathankamau/EpisodeTracker
78b92b5cdcdcf52608a47a7a0edb7c6b0e3d1246
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AppConfig(AppConfig): name = 'episodetrackerapp'
15.833333
33
0.768421
acfe8da8fc3330b45ddcb2ff97f13cac2f3ad4e4
379
py
Python
models/facility.py
stuartcampbell/nsls2-api
8175e524279f51d9b43ad0f8f08b8b3f54eceae0
[ "BSD-3-Clause" ]
null
null
null
models/facility.py
stuartcampbell/nsls2-api
8175e524279f51d9b43ad0f8f08b8b3f54eceae0
[ "BSD-3-Clause" ]
null
null
null
models/facility.py
stuartcampbell/nsls2-api
8175e524279f51d9b43ad0f8f08b8b3f54eceae0
[ "BSD-3-Clause" ]
null
null
null
from enum import Enum from typing import Optional, List from pydantic.main import BaseModel class FacilityName(Enum): nsls2="nsls2" lbms="lbms" class Facility(BaseModel): name: str id: str fullname: str pass_facility_id: str class Cycle(BaseModel): name: str class Config: sch...
15.791667
35
0.627968
acfe8db0b5b8391343a87ccf6639633b28413ff8
545
py
Python
linkysets/users/managers.py
hqrrylyu/linkysets
1b8c319820bdf116a5cad7efff69178e739cf26b
[ "MIT" ]
null
null
null
linkysets/users/managers.py
hqrrylyu/linkysets
1b8c319820bdf116a5cad7efff69178e739cf26b
[ "MIT" ]
5
2021-04-08T19:20:07.000Z
2021-09-22T19:03:30.000Z
linkysets/users/managers.py
hqrrylyu/polemicflow
1b8c319820bdf116a5cad7efff69178e739cf26b
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import TYPE_CHECKING from django.db.models import Count, QuerySet if TYPE_CHECKING: from .models import User BaseUserQuerySet = QuerySet[User] else: BaseUserQuerySet = QuerySet class UserQuerySet(BaseUserQuerySet): def num_entrysets(self) -> UserQuery...
25.952381
87
0.743119
acfe8e86ac91064a7669bbd3d98fb38c804e305f
258
py
Python
foodsharing_bot/users/apps.py
apnkv/foodsharing_bot
5ae548dec0c86a129dbea7d2329feddc87b9a87d
[ "MIT" ]
null
null
null
foodsharing_bot/users/apps.py
apnkv/foodsharing_bot
5ae548dec0c86a129dbea7d2329feddc87b9a87d
[ "MIT" ]
null
null
null
foodsharing_bot/users/apps.py
apnkv/foodsharing_bot
5ae548dec0c86a129dbea7d2329feddc87b9a87d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class UsersAppConfig(AppConfig): name = "foodsharing_bot.users" verbose_name = "Users" def ready(self): try: import users.signals # noqa F401 except ImportError: pass
18.428571
45
0.620155
acfe8f6f2aab1820e743c922d488b578b7dfbbac
10,297
py
Python
prototype/nplinker/scoring/data_linking_functions.py
louwenjjr/nplinker
22e957d0f3326775ca5c1f850073067c6fb256d6
[ "Apache-2.0" ]
6
2018-10-24T20:33:49.000Z
2022-03-11T03:44:14.000Z
prototype/nplinker/scoring/data_linking_functions.py
louwenjjr/nplinker
22e957d0f3326775ca5c1f850073067c6fb256d6
[ "Apache-2.0" ]
44
2018-10-25T19:46:26.000Z
2022-03-31T20:31:06.000Z
prototype/nplinker/scoring/data_linking_functions.py
louwenjjr/nplinker
22e957d0f3326775ca5c1f850073067c6fb256d6
[ "Apache-2.0" ]
4
2018-10-29T15:29:41.000Z
2022-03-10T14:36:40.000Z
# Copyright 2021 The NPLinker 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 law or agreed to in...
34.323333
112
0.653394
acfe8f6f311d2ff9da77ed8c0ae3276808823fd0
6,052
py
Python
cassle/methods/mocov2plus.py
DonkeyShot21/cassle
d25f9c7cb5e822660dc1ef03e7fac09a33d0b1a8
[ "MIT" ]
13
2022-03-24T10:08:44.000Z
2022-03-29T09:33:05.000Z
cassle/methods/mocov2plus.py
DonkeyShot21/cassle
d25f9c7cb5e822660dc1ef03e7fac09a33d0b1a8
[ "MIT" ]
null
null
null
cassle/methods/mocov2plus.py
DonkeyShot21/cassle
d25f9c7cb5e822660dc1ef03e7fac09a33d0b1a8
[ "MIT" ]
null
null
null
import argparse from typing import Any, Dict, List, Sequence, Tuple import torch import torch.nn as nn import torch.nn.functional as F from cassle.losses.moco import moco_loss_func from cassle.methods.base import BaseMomentumModel from cassle.utils.gather_layer import gather from cassle.utils.momentum import initializ...
35.6
99
0.627726
acfe8fdced05944fd9ac688ac3f984143e679a22
1,885
py
Python
beginner_contest/176/D.py
FGtatsuro/myatcoder
25a3123be6a6311e7d1c25394987de3e35575ff4
[ "MIT" ]
null
null
null
beginner_contest/176/D.py
FGtatsuro/myatcoder
25a3123be6a6311e7d1c25394987de3e35575ff4
[ "MIT" ]
null
null
null
beginner_contest/176/D.py
FGtatsuro/myatcoder
25a3123be6a6311e7d1c25394987de3e35575ff4
[ "MIT" ]
null
null
null
import sys input = sys.stdin.readline sys.setrecursionlimit(10 ** 7) h, w = map(int, input().split()) ch, cw = map(int, input().split()) dh, dw = map(int, input().split()) graph = [0] + [0] * h dist = [0] + [0] * h for i in range(h): graph[i + 1] = [0] + list(input().strip()) dist[i + 1] = [0] + [-1] * w from...
33.070175
95
0.54748
acfe901bf002079cb12493e329c64fa9be514bf9
3,288
py
Python
Util.py
pr0tege/csv_database
3e3c44b846ef9229a9336d2aca8c4b82c5260f74
[ "MIT" ]
null
null
null
Util.py
pr0tege/csv_database
3e3c44b846ef9229a9336d2aca8c4b82c5260f74
[ "MIT" ]
null
null
null
Util.py
pr0tege/csv_database
3e3c44b846ef9229a9336d2aca8c4b82c5260f74
[ "MIT" ]
null
null
null
USERS = "./data_store/users.csv" ADDRESSES = "./data_store/addresses.csv" def load_users(): """ Loads users csv :return: """ with open(USERS, "r") as file: # creates dictionary to separate csv values to make it easy to iterate between them # the hash() function is used t...
30.444444
120
0.612835
acfe90442cd1d5ff082cd97b3d275b545af6330a
9,167
py
Python
neutron/plugins/nec/db/packetfilter.py
ksshanam/neutron-dvr
c0854ea0d1023ab42e1ef861f9b6ff480e985ac5
[ "Apache-2.0" ]
3
2015-02-02T02:51:39.000Z
2015-02-23T10:20:23.000Z
neutron/plugins/nec/db/packetfilter.py
ksshanam/neutron-dvr
c0854ea0d1023ab42e1ef861f9b6ff480e985ac5
[ "Apache-2.0" ]
4
2015-02-23T10:21:11.000Z
2015-03-04T09:28:20.000Z
neutron/plugins/nec/db/packetfilter.py
ksshanam/neutron-dvr
c0854ea0d1023ab42e1ef861f9b6ff480e985ac5
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2013 NEC Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
41.858447
79
0.617105
acfe90be6d26f4e8b9caf47184039f55dccb6c13
1,042
py
Python
FuzzyLayer.py
CI-SSLab/FRNN
f0f9a6a4b2981f0c70c612eb7f020bdc03040032
[ "MIT" ]
null
null
null
FuzzyLayer.py
CI-SSLab/FRNN
f0f9a6a4b2981f0c70c612eb7f020bdc03040032
[ "MIT" ]
null
null
null
FuzzyLayer.py
CI-SSLab/FRNN
f0f9a6a4b2981f0c70c612eb7f020bdc03040032
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from tensorflow.keras.layers import Layer, InputSpec import tensorflow as tf from tensorflow.keras.initializers import RandomUniform class FuzzyLayer(Layer): def __init__(self, output_dim, **kwargs): self.output_dim = output_dim self.input_spec ...
32.5625
100
0.591171
acfe911d07fe53778beb84ba1b773c08f91d505e
4,202
py
Python
kitchen/migrations/0001_initial.py
DenerRodrigues/cheffapp-api
498e9c96102f9bc777158b7aa07a99d89afa6a39
[ "MIT" ]
1
2020-03-23T03:21:43.000Z
2020-03-23T03:21:43.000Z
kitchen/migrations/0001_initial.py
DenerRodrigues/cheffapp-api
498e9c96102f9bc777158b7aa07a99d89afa6a39
[ "MIT" ]
5
2021-03-19T01:03:34.000Z
2021-06-10T18:44:34.000Z
kitchen/migrations/0001_initial.py
DenerRodrigues/chefapp-api
498e9c96102f9bc777158b7aa07a99d89afa6a39
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-23 02:58 from decimal import Decimal from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import jsonfield.fields import multiselectfield.db.fields class Migration(m...
65.65625
454
0.632556
acfe91beb4afebcdfc91b4027f7d02e152f6beb9
5,744
py
Python
python/Lib/site-packages/tectle/fakeorders.py
ksritharan/tectle
ca76424d85e66b041b40997838a3ceb79266efab
[ "MIT" ]
1
2021-03-04T14:58:05.000Z
2021-03-04T14:58:05.000Z
python/Lib/site-packages/tectle/fakeorders.py
ksritharan/tectle
ca76424d85e66b041b40997838a3ceb79266efab
[ "MIT" ]
8
2021-02-26T02:32:59.000Z
2021-05-28T02:22:07.000Z
python/Lib/site-packages/tectle/fakeorders.py
ksritharan/business-automation
ca76424d85e66b041b40997838a3ceb79266efab
[ "MIT" ]
null
null
null
from .db import get_connection, get_data_dict from flask import render_template, url_for, make_response, jsonify from .buildschema import create_fake_receipts from datetime import datetime def add_one_more(cur): query = """ SELECT MAX(CAST(receipt_id AS INT))+COUNT(1)+1 as new_receipt_id FROM FA...
29.15736
109
0.501219
acfe9215630a3f3c92563aed0f90b1a2afb43201
4,056
py
Python
data/p4VQE/R4/benchmark/startQiskit_Class777.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class777.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class777.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=40 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy as np import networkx as ...
30.727273
80
0.603057
acfe928eeba48beae36f27c90e54dbe8ee39e9bb
3,413
py
Python
csg_dicoms_anonymizer/csg_fileutil_libs/pydicom/util/dump.py
lrq3000/csg_dicoms_anonymizer
bd7d631b8b657e54086585c04593ed8470670f0d
[ "MIT" ]
1
2021-04-01T22:26:47.000Z
2021-04-01T22:26:47.000Z
csg_dicoms_anonymizer/csg_fileutil_libs/pydicom/util/dump.py
lrq3000/csg_dicoms_anonymizer
bd7d631b8b657e54086585c04593ed8470670f0d
[ "MIT" ]
1
2019-04-08T08:59:23.000Z
2019-04-09T16:43:29.000Z
csg_dicoms_anonymizer/csg_fileutil_libs/pydicom/util/dump.py
lrq3000/csg_dicoms_anonymizer
bd7d631b8b657e54086585c04593ed8470670f0d
[ "MIT" ]
3
2017-08-08T11:41:31.000Z
2021-09-30T08:52:08.000Z
# dump.py """Utility functions used in debugging writing and reading""" # Copyright (c) 2008-2012 Darcy Mason # This file is part of pydicom, relased under an MIT license. # See the file license.txt included with this distribution, also # available at https://github.com/darcymason/pydicom from __future__ import ...
34.474747
91
0.636683
acfe9444e58241095eda0d2f353e7a80a4a6736d
27,139
py
Python
two_stream_bert2.py
hansheng0512/LateTemporalModeling3DCNN
71c1d3fae9781c55059f0518e0b39781a535e153
[ "MIT" ]
null
null
null
two_stream_bert2.py
hansheng0512/LateTemporalModeling3DCNN
71c1d3fae9781c55059f0518e0b39781a535e153
[ "MIT" ]
null
null
null
two_stream_bert2.py
hansheng0512/LateTemporalModeling3DCNN
71c1d3fae9781c55059f0518e0b39781a535e153
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 4 10:42:00 2019 @author: esat """ import os import time import argparse import shutil import numpy as np os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="0" import torch import torch.nn as nn import torch.nn.para...
40.627246
124
0.589779
acfe94f633ccfb1fdfe48cb1bba8161a19ba7bcf
13,728
py
Python
tests/test_engine.py
longkyle/scrapy
81218b62cbaf2a3f772845b65c3e7126371a09b6
[ "BSD-3-Clause" ]
null
null
null
tests/test_engine.py
longkyle/scrapy
81218b62cbaf2a3f772845b65c3e7126371a09b6
[ "BSD-3-Clause" ]
1
2020-04-03T11:16:19.000Z
2020-04-03T11:16:19.000Z
tests/test_engine.py
grammy-jiang/scrapy
519f752d6dcd3065e81e9387062003a39f3f0b81
[ "BSD-3-Clause" ]
null
null
null
""" Scrapy engine tests This starts a testing web server (using twisted.server.Site) and then crawls it with the Scrapy crawler. To view the testing web server in a browser you can start it by running this module with the ``runserver`` argument:: python test_engine.py runserver """ import os import re import sy...
37.714286
105
0.621649
acfe95ababd05bfd9bf8386a164cb630c7b5f41a
3,195
py
Python
tests/test_model_funcs.py
linkian209/PyBitWarden
bc686da04a362a99a30a66de1d484fd585300f74
[ "MIT" ]
null
null
null
tests/test_model_funcs.py
linkian209/PyBitWarden
bc686da04a362a99a30a66de1d484fd585300f74
[ "MIT" ]
null
null
null
tests/test_model_funcs.py
linkian209/PyBitWarden
bc686da04a362a99a30a66de1d484fd585300f74
[ "MIT" ]
null
null
null
"""tests.test_model_funcs This module tests the helper functions for the models of this app. Attributes: UUID_REGEX: A regular expression for testing valid UUIDS """ import pytest # noqa import re import time import models.funcs as test_funcs UUID_REGEX = '\A[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-F...
29.045455
101
0.705164
acfe9684bf6964bd892e4d55d0570719ec061188
7,854
py
Python
platforms/hermes-python/tests/api/ffi/test_dialogue.py
elbywan/hermes-protocol
da23326f026fbfb8a23413c78383301e523188f3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
37
2018-12-07T16:32:32.000Z
2021-07-08T17:43:27.000Z
platforms/hermes-python/tests/api/ffi/test_dialogue.py
elbywan/hermes-protocol
da23326f026fbfb8a23413c78383301e523188f3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
52
2018-12-28T11:10:05.000Z
2019-11-13T02:01:41.000Z
platforms/hermes-python/tests/api/ffi/test_dialogue.py
elbywan/hermes-protocol
da23326f026fbfb8a23413c78383301e523188f3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
34
2019-03-21T21:53:35.000Z
2020-07-31T16:50:43.000Z
from __future__ import unicode_literals import mock import pytest from hermes_python.api.ffi.dialogue import DialogueFFI from hermes_python.ontology.dialogue import StartSessionMessage, SessionInitAction, SessionInitNotification, \ ContinueSessionMessage, EndSessionMessage, DialogueConfigureMessage, DialogueConfig...
45.398844
115
0.761523
acfe96b3020f8ce0e289a5cda14e56340f60ca5f
4,838
py
Python
get_gaoqingla_1080p_movie.py
Damon-wenc/Small-Data
d5e01169bff0c418142521a7c1b4e7e6d66ba51b
[ "Apache-2.0" ]
null
null
null
get_gaoqingla_1080p_movie.py
Damon-wenc/Small-Data
d5e01169bff0c418142521a7c1b4e7e6d66ba51b
[ "Apache-2.0" ]
null
null
null
get_gaoqingla_1080p_movie.py
Damon-wenc/Small-Data
d5e01169bff0c418142521a7c1b4e7e6d66ba51b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' 这个小程序是为了将一个电影网(高清网 http://gaoqing.la/)的1080P资源遍历下保存下来, ''' import urllib2 import lxml.html as parser from gevent import monkey; monkey.patch_socket() from gevent.pool import Pool pool = Pool(2) #网站禁止爬虫,需加一个表头伪装浏览器头 HEADERS = {'User-Agent':'Mozilla/5.0 (Windows; U; Window...
31.415584
269
0.580819
acfe971566ffdb6a9495dbd12002a73646a8c3a7
651
py
Python
cmsplugin_forms_builder/__init__.py
natgeosociety/cmsplugin-forms-builder
5420f2be32eec484919cdf4a73aba8f831f14adc
[ "BSD-3-Clause" ]
null
null
null
cmsplugin_forms_builder/__init__.py
natgeosociety/cmsplugin-forms-builder
5420f2be32eec484919cdf4a73aba8f831f14adc
[ "BSD-3-Clause" ]
null
null
null
cmsplugin_forms_builder/__init__.py
natgeosociety/cmsplugin-forms-builder
5420f2be32eec484919cdf4a73aba8f831f14adc
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ cmsplugin_forms_builder """ __version_info__ = { 'major': 2, 'minor': 0, 'micro': 0, 'releaselevel': 'final', 'serial': 1 } def get_version(short=False): assert __version_info__['releaselevel'] in ('alpha', 'beta', 'final') vers = ["%(major)i.%(minor)i" % __ver...
25.038462
77
0.609831
acfe98aafceaa1278a75c280992c851fb39db201
23,052
py
Python
tests/integration/netapi/rest_tornado/test_app.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
tests/integration/netapi/rest_tornado/test_app.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
tests/integration/netapi/rest_tornado/test_app.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import Python Libs from __future__ import absolute_import from __future__ import print_function import json import time from distutils.version import StrictVersion # pylint: disable=import-error,no-name-in-module # Import Salt Libs from salt.netapi.rest_tornado import saltnado from unit.net...
40.944938
126
0.508806
acfe9970f88be9ec9b3955cc0740ff1cb85b1c41
2,502
py
Python
test/functional/mempool_limit.py
CryptoDev-Project/FUNC
5000a663600befe26370e6831d65115645844ffb
[ "MIT" ]
4
2019-12-31T06:33:20.000Z
2021-08-02T18:52:15.000Z
test/functional/mempool_limit.py
CryptoDev-Project/FUNC
5000a663600befe26370e6831d65115645844ffb
[ "MIT" ]
null
null
null
test/functional/mempool_limit.py
CryptoDev-Project/FUNC
5000a663600befe26370e6831d65115645844ffb
[ "MIT" ]
4
2019-12-24T12:32:36.000Z
2020-07-13T17:05:22.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2017 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 mempool limiting together/eviction with the wallet.""" from test_framework.test_framework import ...
45.490909
118
0.671463
acfe9a593a327ddaa18d843c8afa039a3f97f5bf
9,832
py
Python
mypyc/emitwrapper.py
r3m0t/mypyc
118d08c2fa8235f24724880b66b991b79462ff76
[ "PSF-2.0" ]
null
null
null
mypyc/emitwrapper.py
r3m0t/mypyc
118d08c2fa8235f24724880b66b991b79462ff76
[ "PSF-2.0" ]
null
null
null
mypyc/emitwrapper.py
r3m0t/mypyc
118d08c2fa8235f24724880b66b991b79462ff76
[ "PSF-2.0" ]
null
null
null
"""Generate CPython API wrapper function for a native function.""" from mypyc.common import PREFIX, NATIVE_PREFIX, DUNDER_PREFIX from mypyc.emit import Emitter from mypyc.ops import ( ClassIR, FuncIR, RType, RuntimeArg, is_object_rprimitive, is_int_rprimitive, is_bool_rprimitive, bool_rprimitive, FUNC_...
43.122807
98
0.62144
acfe9ae4ad7c86e19b11a15d5dfa5fcc936a331b
7,009
py
Python
test2.py
saurabhtalele/finitediff
e27e092a0236cc980dfe58405d72d7f95a17667d
[ "MIT" ]
1
2021-04-30T10:14:27.000Z
2021-04-30T10:14:27.000Z
test2.py
saurabhtalele/finitediff
e27e092a0236cc980dfe58405d72d7f95a17667d
[ "MIT" ]
null
null
null
test2.py
saurabhtalele/finitediff
e27e092a0236cc980dfe58405d72d7f95a17667d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Apr 30 03:26:59 2021 @author: s """ import numpy.matlib import numpy as np import sympy as sp import re import sys import io from io import StringIO import string from pytexit import py2tex #import matplotlib.pyplot as plt from flask import Flask from pyweb...
28.49187
439
0.525467
acfe9b02239c12729025a00316856bfc38aba472
1,002
py
Python
expenshare/sharelists/urls.py
atsanda/Expenshare
3b6c21395a552200627e8203a7a5d28166dbb813
[ "MIT" ]
null
null
null
expenshare/sharelists/urls.py
atsanda/Expenshare
3b6c21395a552200627e8203a7a5d28166dbb813
[ "MIT" ]
20
2020-06-07T20:05:18.000Z
2021-09-19T13:43:11.000Z
expenshare/sharelists/urls.py
atsanda/Expenshare
3b6c21395a552200627e8203a7a5d28166dbb813
[ "MIT" ]
null
null
null
from django.urls import path from expenshare.sharelists.views import ( CreditCreate, CreditDelete, CreditUpdate, CreditView, SharelistCreate, SharelistMain, SharelistSummary, ) app_name = "sharelists" urlpatterns = [ path("create", SharelistCreate.as_view(), name="create"), path("<...
25.692308
83
0.623752
acfe9bbc55e16fb1206cbbc2626a40b76a342b98
97
py
Python
test/test_playeah.py
fmcevoy/playeah
98c77bc6ba5b6f53cffeab9ed3133e682d26a54d
[ "Apache-2.0" ]
null
null
null
test/test_playeah.py
fmcevoy/playeah
98c77bc6ba5b6f53cffeab9ed3133e682d26a54d
[ "Apache-2.0" ]
null
null
null
test/test_playeah.py
fmcevoy/playeah
98c77bc6ba5b6f53cffeab9ed3133e682d26a54d
[ "Apache-2.0" ]
null
null
null
import pytest def test_nothing(): assert 1 == 1 def test_nothing_else(): assert 2 == 2
12.125
24
0.649485
acfe9bf7f83a0ed50382fcb536ae4c91045f8684
1,329
py
Python
mqtt.py
RRMoelker/socketMQTT
5efe73106524ba87bd6e168f16fb3a3b18b8636d
[ "MIT" ]
3
2016-04-10T15:39:12.000Z
2020-08-07T05:18:05.000Z
mqtt.py
RRMoelker/socketMQTT
5efe73106524ba87bd6e168f16fb3a3b18b8636d
[ "MIT" ]
1
2016-04-10T08:14:21.000Z
2016-04-10T08:18:46.000Z
mqtt.py
RRMoelker/socketMQTT
5efe73106524ba87bd6e168f16fb3a3b18b8636d
[ "MIT" ]
2
2019-10-31T11:13:13.000Z
2021-09-08T22:28:15.000Z
import logging import paho.mqtt.client as mqtt import config logger = logging.getLogger(__name__) def on_connect(client, userdata, rc): """ The callback for when the client receives a CONNACK response from the server. Subscribing in on_connect() means that if we lose the connection and reconnect the...
34.076923
81
0.670429
acfe9bfeda2f12d841a5325d6ebd32ff76e71c98
25,560
py
Python
glycowork/motif/tokenization.py
Old-Shatterhand/glycowork
544fde03dd38cf95fb97792e050d7ff68f5637b1
[ "MIT" ]
null
null
null
glycowork/motif/tokenization.py
Old-Shatterhand/glycowork
544fde03dd38cf95fb97792e050d7ff68f5637b1
[ "MIT" ]
null
null
null
glycowork/motif/tokenization.py
Old-Shatterhand/glycowork
544fde03dd38cf95fb97792e050d7ff68f5637b1
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import re import copy from itertools import combinations_with_replacement from collections import Counter from sklearn.cluster import DBSCAN from glycowork.glycan_data.loader import lib, motif_list, find_nth, unwrap, df_species, Hex, dHex, HexNAc, Sia, linkages from glycowork.mot...
45.399645
273
0.645696
acfe9c7a8753dc3128af8acf0be531cfc2500dca
247
py
Python
old/buttontest.py
gumbald/photobooth
930527e3f9232a7bbf637d445f4e5ce77d5cb0ec
[ "MIT" ]
null
null
null
old/buttontest.py
gumbald/photobooth
930527e3f9232a7bbf637d445f4e5ce77d5cb0ec
[ "MIT" ]
null
null
null
old/buttontest.py
gumbald/photobooth
930527e3f9232a7bbf637d445f4e5ce77d5cb0ec
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(5, GPIO.IN, pull_up_down=GPIO.PUD_UP) while True: input_state = GPIO.input(5) if input_state == False: print("Hello") time.sleep(0.2)
19
48
0.623482
acfe9ce57a0b07f75ae85db86dd680efbfc36463
826
py
Python
src/services/core/service_loader.py
Telsanyr/Johnny_VI
db9f54457c33b1f70616671611e6bc4fc4c44d1b
[ "WTFPL" ]
6
2018-08-07T14:57:58.000Z
2020-02-13T18:43:49.000Z
src/services/core/service_loader.py
Telsanyr/Johnny_VI
db9f54457c33b1f70616671611e6bc4fc4c44d1b
[ "WTFPL" ]
2
2018-08-08T12:12:28.000Z
2018-08-23T12:46:25.000Z
src/services/core/service_loader.py
Telsanyr/Johnny_VI
db9f54457c33b1f70616671611e6bc4fc4c44d1b
[ "WTFPL" ]
1
2018-08-07T14:51:15.000Z
2018-08-07T14:51:15.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- # coding: utf8 # This is a module loader. It will reload all the files dedicated to the module # each time it is reloaded. Therefore, any code modification will be taken into # account. # Moreover, because all files are loaded in the same module. All classes and # global va...
41.3
80
0.751816
acfe9f4e0aefbb7c974bcb3beaf946d90910c093
14,313
py
Python
grama/fit/fit_scikitlearn.py
Riya-1/py_grama
caafeac418ce0014b477e6feded06ccc1592b94d
[ "MIT" ]
13
2020-02-24T16:51:51.000Z
2022-03-30T18:56:55.000Z
grama/fit/fit_scikitlearn.py
zdelrosario/py_grama
43f1a76dc93dd33f02e8a7f8de3323894beefed0
[ "MIT" ]
78
2019-12-30T19:13:21.000Z
2022-02-23T18:17:54.000Z
grama/fit/fit_scikitlearn.py
Riya-1/py_grama
caafeac418ce0014b477e6feded06ccc1592b94d
[ "MIT" ]
7
2020-10-19T17:49:25.000Z
2021-08-15T20:46:52.000Z
__all__ = [ "fit_gp", "ft_gp", "fit_lm", "ft_lm", "fit_rf", "ft_rf", "fit_kmeans", "ft_kmeans", ] ## Fitting via sklearn package try: from sklearn.base import clone from sklearn.linear_model import LinearRegression from sklearn.gaussian_process import GaussianProcessRegresso...
28.915152
96
0.593866
acfe9f5610b93f98ec0936a6d94913b428f06b23
425
py
Python
2021/3-1.py
lkesteloot/advent-of-code
4372e76602e16c69db8c227081b334d58455af1f
[ "MIT" ]
null
null
null
2021/3-1.py
lkesteloot/advent-of-code
4372e76602e16c69db8c227081b334d58455af1f
[ "MIT" ]
null
null
null
2021/3-1.py
lkesteloot/advent-of-code
4372e76602e16c69db8c227081b334d58455af1f
[ "MIT" ]
null
null
null
lines = [list(map(int,list(line.strip()))) for line in open("input-3.txt")] count = len(lines) half = count // 2 sums = lines[0] for i in range(1, count): for j in range(len(sums)): sums[j] += lines[i][j] print(sums, count) gamma = int("".join(map(lambda x: "1" if x > half else "0", sums)), 2) epsilon...
21.25
75
0.6
acfe9fce76273a7e6d4a0611a05499ee73cc3ade
2,000
py
Python
net/HyperIMxd.py
bcol23/HyperIM
c257d1c6296e399e734110d54d0ccd5fc91b5c02
[ "MIT" ]
44
2019-05-27T07:00:36.000Z
2021-12-06T14:05:56.000Z
net/HyperIMxd.py
dragon9001/HyperIM
c257d1c6296e399e734110d54d0ccd5fc91b5c02
[ "MIT" ]
6
2019-06-02T16:43:49.000Z
2021-11-17T03:37:19.000Z
net/HyperIMxd.py
dragon9001/HyperIM
c257d1c6296e399e734110d54d0ccd5fc91b5c02
[ "MIT" ]
10
2019-06-05T08:20:10.000Z
2021-08-09T11:49:25.000Z
import sys sys.path.append('..') import torch as th import torch.nn as nn import torch.nn.functional as F import geoopt as gt from .hypernnxd import * from util.hyperop import poinc_dist class HyperIM(nn.Module): def __init__(self, feature_num, word_embed, label_embed, d_ball=2, hidden_size=5, if_gru=True...
36.363636
114
0.6165
acfea023c24916e487df0187a4e457da80a4a78a
4,116
py
Python
build_binary_dist.py
Nukem9/IDASkins
989690fffe8a7df78dc08f927cf8120f58bbfd58
[ "MIT" ]
37
2015-05-25T19:14:01.000Z
2021-11-18T14:05:11.000Z
build_binary_dist.py
nihilus/ida-skins
ee881f39798e8cfc2908246ccd150cb5b6702f5f
[ "MIT" ]
5
2015-08-27T15:10:25.000Z
2017-06-02T01:28:13.000Z
build_binary_dist.py
nihilus/ida-skins
ee881f39798e8cfc2908246ccd150cb5b6702f5f
[ "MIT" ]
7
2015-06-02T16:50:01.000Z
2020-09-04T20:36:40.000Z
#!/usr/bin/env python """ This script build the binary distribution for the Windows version of IDA PRO for multiple IDA versions in one batch. The MIT License (MIT) Copyright (c) 2014 athre0z Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
38.111111
98
0.618319
acfea07e1c3d6cf7c3aed9d21b6d0260b728e4da
684
py
Python
formulario/migrations/0011_auto_20201128_0105.py
giuliocc/censo-querido-diario
0a83244d6c7a9de21f72ce1b441868bc517d0aec
[ "MIT" ]
40
2020-09-09T00:21:03.000Z
2021-12-12T03:30:37.000Z
formulario/migrations/0011_auto_20201128_0105.py
giuliocc/censo-querido-diario
0a83244d6c7a9de21f72ce1b441868bc517d0aec
[ "MIT" ]
41
2020-10-02T01:56:40.000Z
2022-03-23T14:08:22.000Z
formulario/migrations/0011_auto_20201128_0105.py
giuliocc/censo-querido-diario
0a83244d6c7a9de21f72ce1b441868bc517d0aec
[ "MIT" ]
23
2020-09-30T19:15:45.000Z
2022-03-03T01:03:28.000Z
# Generated by Django 3.1.1 on 2020-11-28 01:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('formulario', '0010_merge_20201009_2009'), ] operations = [ migrations.CreateModel( name='MapeamentoValidado', fields=[ ...
22.8
51
0.501462
acfea12d733ddcd5d72e71bfee4249d314cc6e8d
27,953
py
Python
src/controller/python/chip/ChipDeviceCtrl.py
step0035/connectedhomeip
02bd2c7112cd4f375dc880cf9d81a1bab58da6c1
[ "Apache-2.0" ]
null
null
null
src/controller/python/chip/ChipDeviceCtrl.py
step0035/connectedhomeip
02bd2c7112cd4f375dc880cf9d81a1bab58da6c1
[ "Apache-2.0" ]
null
null
null
src/controller/python/chip/ChipDeviceCtrl.py
step0035/connectedhomeip
02bd2c7112cd4f375dc880cf9d81a1bab58da6c1
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020-2021 Project CHIP Authors # Copyright (c) 2019-2020 Google, LLC. # Copyright (c) 2013-2018 Nest Labs, Inc. # 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 o...
42.034586
200
0.661933
acfea1486fc330bac99c5998491fdfbd341e4889
4,777
py
Python
pylayers/location/locarule.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
143
2015-01-09T07:50:20.000Z
2022-03-02T11:26:53.000Z
pylayers/location/locarule.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
148
2015-01-13T04:19:34.000Z
2022-03-11T23:48:25.000Z
pylayers/location/locarule.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
95
2015-05-01T13:22:42.000Z
2022-03-15T11:22:28.000Z
from pylayers.util.project import * import networkx as nx import ConfigParser import scipy.stats as sps import pdb ##### global info PL_model #config = ConfigParser.ConfigParser() #config.read(basename+'/ini/EMSolver.ini') #plm_opt = dict(config.items('PL_MODEL')) #sigmaRSS = float(plm_opt['sigmarss'])# dBm !!!!!! #f...
23.648515
90
0.468495
acfea24b3b49fdffc938ea58b8f7a675fa188cc8
311
py
Python
Basic_Concepts_of_String_Manipulation/Artificial_reviews.py
RKiddle/python_reg_expressions
9e89c1c59677ffa19a4c64a37e92bbea33fad88e
[ "MIT" ]
null
null
null
Basic_Concepts_of_String_Manipulation/Artificial_reviews.py
RKiddle/python_reg_expressions
9e89c1c59677ffa19a4c64a37e92bbea33fad88e
[ "MIT" ]
null
null
null
Basic_Concepts_of_String_Manipulation/Artificial_reviews.py
RKiddle/python_reg_expressions
9e89c1c59677ffa19a4c64a37e92bbea33fad88e
[ "MIT" ]
null
null
null
# Select the first 32 characters of movie1 first_part = movie1[:32] # Select from 43rd character to the end of movie1 last_part = movie1[42:] # Select from 33rd to the 42nd character middle_part = movie2[32:42] # Print concatenation and movie2 variable print(first_part+middle_part+last_part) print(movie2)
23.923077
49
0.778135
acfea3baecd4c6fa01ab5a8a38b2600662084195
1,858
py
Python
Pillow-4.3.0/Tests/test_shell_injection.py
leorzz/simplemooc
8b1c5e939d534b1fd729596df4c59fc69708b896
[ "MIT" ]
null
null
null
Pillow-4.3.0/Tests/test_shell_injection.py
leorzz/simplemooc
8b1c5e939d534b1fd729596df4c59fc69708b896
[ "MIT" ]
null
null
null
Pillow-4.3.0/Tests/test_shell_injection.py
leorzz/simplemooc
8b1c5e939d534b1fd729596df4c59fc69708b896
[ "MIT" ]
null
null
null
from helper import unittest, PillowTestCase from helper import djpeg_available, cjpeg_available, netpbm_available import sys import shutil from PIL import Image, JpegImagePlugin, GifImagePlugin TEST_JPG = "Tests/images/hopper.jpg" TEST_GIF = "Tests/images/hopper.gif" test_filenames = ( "temp_';", "temp_\";"...
32.034483
76
0.698062
acfea456573b480dd638a2e5578f17abf0843cc5
8,001
py
Python
IPython/history.py
yaii/ipyconsole
f8cd869074ce2778f86dced1cfeb4569adeccb40
[ "BSD-3-Clause" ]
null
null
null
IPython/history.py
yaii/ipyconsole
f8cd869074ce2778f86dced1cfeb4569adeccb40
[ "BSD-3-Clause" ]
null
null
null
IPython/history.py
yaii/ipyconsole
f8cd869074ce2778f86dced1cfeb4569adeccb40
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ History related magics and functionality """ # Stdlib imports import fnmatch import os # IPython imports from IPython.genutils import Term, ask_yes_no def magic_history(self, parameter_s = ''): """Print input history (_i<n> variables), with most recent last. %history -...
29.307692
80
0.568929
acfea48c74b0c4aad5c0dac65589bec51b0d99bc
7,130
py
Python
qiskit_experiments/library/quantum_volume/qv_experiment.py
spencerking/qiskit-experiments
11a254b010afe35933aaabac70de12b5b5a244bf
[ "Apache-2.0" ]
null
null
null
qiskit_experiments/library/quantum_volume/qv_experiment.py
spencerking/qiskit-experiments
11a254b010afe35933aaabac70de12b5b5a244bf
[ "Apache-2.0" ]
null
null
null
qiskit_experiments/library/quantum_volume/qv_experiment.py
spencerking/qiskit-experiments
11a254b010afe35933aaabac70de12b5b5a244bf
[ "Apache-2.0" ]
1
2021-06-20T10:32:16.000Z
2021-06-20T10:32:16.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
40.05618
104
0.669705
acfea499400ea153aff5d4183c5b838cacd2b732
12,178
py
Python
jiant/utils/data_loaders.py
sxjscience/jiant
95bd488cd1318c33ca758b520b6fe3929bc4836b
[ "MIT" ]
5
2021-10-09T07:37:32.000Z
2022-03-09T08:46:32.000Z
jiant/utils/data_loaders.py
sxjscience/jiant
95bd488cd1318c33ca758b520b6fe3929bc4836b
[ "MIT" ]
null
null
null
jiant/utils/data_loaders.py
sxjscience/jiant
95bd488cd1318c33ca758b520b6fe3929bc4836b
[ "MIT" ]
1
2019-09-08T22:13:55.000Z
2019-09-08T22:13:55.000Z
""" Functions having to do with loading data from output of files downloaded in scripts/download_data_glue.py """ import codecs import csv import json import numpy as np import pandas as pd from allennlp.data import vocabulary from jiant.utils.tokenizers import get_tokenizer from jiant.utils.retokenize import realign...
39.032051
100
0.651667
acfea4a2b24d2c4f9aa885eb87d5415dad911456
924
py
Python
ns-allinone-3.27/ns-3.27/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Tools/gdc.py
zack-braun/4607_NS
43c8fb772e5552fb44bd7cd34173e73e3fb66537
[ "MIT" ]
93
2019-04-21T08:22:26.000Z
2022-03-30T04:26:29.000Z
ns-allinone-3.27/ns-3.27/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Tools/gdc.py
zack-braun/4607_NS
43c8fb772e5552fb44bd7cd34173e73e3fb66537
[ "MIT" ]
12
2019-04-19T16:39:58.000Z
2021-06-22T13:18:32.000Z
ns-allinone-3.27/ns-3.27/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Tools/gdc.py
zack-braun/4607_NS
43c8fb772e5552fb44bd7cd34173e73e3fb66537
[ "MIT" ]
21
2019-05-27T19:36:12.000Z
2021-07-26T02:37:41.000Z
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file from waflib.Tools import ar,d from waflib.Configure import conf @conf def find_gdc(conf): conf.find_program('gdc',var='D') out=conf.cmd_and_log(conf.env.D+['--version']) if out.find("gdc")==-1: ...
25.666667
78
0.667749
acfea4f559b03906de0bb80d206a8437f1b0e6bb
815
py
Python
school_django/api/resources.py
gentiger55/django_react_school
1f55fee562be7ad8b5220f09091ae4af3c2ab8c8
[ "BSD-3-Clause" ]
1
2018-12-16T15:46:11.000Z
2018-12-16T15:46:11.000Z
school_django/api/resources.py
gentiger55/django_react_school
1f55fee562be7ad8b5220f09091ae4af3c2ab8c8
[ "BSD-3-Clause" ]
null
null
null
school_django/api/resources.py
gentiger55/django_react_school
1f55fee562be7ad8b5220f09091ae4af3c2ab8c8
[ "BSD-3-Clause" ]
null
null
null
from tastypie.resources import ModelResource from tastypie import fields from api.models import School, Statistics, User from tastypie.authorization import Authorization class SchoolResource(ModelResource): class Meta: queryset = School.objects.all() resource_name = 'school' authorization =...
30.185185
62
0.700613
acfea582cb4c52a250ba6598015a1ce5057dc080
2,338
py
Python
src/text-mining.py
anakinanakin/data-analysis
28c0847d547fba43cbf4441764df370b89d6504f
[ "MIT" ]
null
null
null
src/text-mining.py
anakinanakin/data-analysis
28c0847d547fba43cbf4441764df370b89d6504f
[ "MIT" ]
null
null
null
src/text-mining.py
anakinanakin/data-analysis
28c0847d547fba43cbf4441764df370b89d6504f
[ "MIT" ]
null
null
null
# nltk's default stoplist: from nltk.corpus import stopwords stoplist = set(stopwords.words('english')) import csv import re import nltk from sklearn.feature_extraction.text import CountVectorizer from sklearn.pipeline import Pipeline from sklearn.linear_model import SGDClassifier train_data = [] with open('./Assign...
25.977778
88
0.612062
acfea693f281b89349515b65e4fc2a6475d744e3
74
py
Python
scripts/mango/relations/constants.py
robertjoosten/maya-orm
9c5db622d5bbba63246ff1d3f0a22bd3f7140f6c
[ "MIT" ]
11
2020-11-14T14:37:49.000Z
2022-03-25T03:28:23.000Z
scripts/mango/relations/constants.py
robertjoosten/maya-orm
9c5db622d5bbba63246ff1d3f0a22bd3f7140f6c
[ "MIT" ]
null
null
null
scripts/mango/relations/constants.py
robertjoosten/maya-orm
9c5db622d5bbba63246ff1d3f0a22bd3f7140f6c
[ "MIT" ]
null
null
null
__all__ = [ "CASCADE", "DO_NOTHING" ] CASCADE = 0 DO_NOTHING = 1
9.25
16
0.581081
acfea6ff361247cc61851c261bf2691d2c761dec
978
py
Python
ticketus/core/migrations/0007_auto_20141228_0646.py
sjkingo/ticketus
90f2781af9418e9e2c6470ca50c9a6af9ce098ff
[ "BSD-2-Clause" ]
3
2019-02-09T10:52:55.000Z
2021-09-19T14:14:36.000Z
ticketus/core/migrations/0007_auto_20141228_0646.py
sjkingo/ticketus
90f2781af9418e9e2c6470ca50c9a6af9ce098ff
[ "BSD-2-Clause" ]
null
null
null
ticketus/core/migrations/0007_auto_20141228_0646.py
sjkingo/ticketus
90f2781af9418e9e2c6470ca50c9a6af9ce098ff
[ "BSD-2-Clause" ]
3
2018-03-04T18:05:02.000Z
2021-09-19T14:14:38.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('core', '0006_auto_20141227_1735'), ] operations = [ migrations.AlterField( model_name='comment', nam...
25.076923
44
0.550102
acfea90a5075d69ec82579a5bacc35bbbe9e85f6
1,908
py
Python
src/gtk/toga_gtk/widgets/scrollcontainer.py
simonw/toga
8b52479c5d9960c5f3af960b5837ecc467c0bc95
[ "BSD-3-Clause" ]
3
2020-12-09T02:13:55.000Z
2021-02-18T00:41:36.000Z
src/gtk/toga_gtk/widgets/scrollcontainer.py
simonw/toga
8b52479c5d9960c5f3af960b5837ecc467c0bc95
[ "BSD-3-Clause" ]
1
2021-05-23T04:04:58.000Z
2021-05-25T22:08:14.000Z
src/gtk/toga_gtk/widgets/scrollcontainer.py
simonw/toga
8b52479c5d9960c5f3af960b5837ecc467c0bc95
[ "BSD-3-Clause" ]
null
null
null
from ..libs import Gtk from ..window import GtkViewport from .base import Widget class ScrollContainer(Widget): def create(self): self.native = Gtk.ScrolledWindow() # Set this minimum size of scroll windows because we must reserve space for # scrollbars when splitter resized. See, https:/...
35.333333
96
0.680294
acfeaa9e7dc82e2688682aaf7073e736a360e591
549
py
Python
day6-part1/main.py
KSonny4/advent-of-code-2021
ca4cf2e94799174468950019a562ed9063001599
[ "MIT" ]
4
2021-12-02T21:17:43.000Z
2021-12-05T22:15:28.000Z
day6-part1/main.py
KSonny4/advent-of-code-2021
ca4cf2e94799174468950019a562ed9063001599
[ "MIT" ]
null
null
null
day6-part1/main.py
KSonny4/advent-of-code-2021
ca4cf2e94799174468950019a562ed9063001599
[ "MIT" ]
null
null
null
def main(): with open("input.txt", encoding="utf-8") as f: lanternfishes = map(int, f.read().split(",")) counter = 0 while counter != 80: new_fish_list = [] for fish in lanternfishes: if fish == 0: new_fish_list.append(6) # fish gave birth ...
24.954545
58
0.533698
acfeab3066d5658ec7b837c1159eaf0e0e32f886
37,312
py
Python
python_packages_static/flopy/modflow/mflak.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
null
null
null
python_packages_static/flopy/modflow/mflak.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
null
null
null
python_packages_static/flopy/modflow/mflak.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
null
null
null
""" mflak module. Contains the ModflowLak class. Note that the user can access the ModflowLak class as `flopy.modflow.ModflowLak`. Additional information for this MODFLOW package can be found at the `Online MODFLOW Guide <http://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/lak.htm>`_. """ import sys import numpy as...
39.44186
82
0.52254
acfeac4dce08e67da07979f139dce0917fc0b4b0
7,404
py
Python
examples/parametertree.py
sneakers-the-rat/pyqtgraph
65ef2a5a60a1a08d0106e819110528b2ca3499a3
[ "MIT" ]
150
2018-03-27T16:45:37.000Z
2022-03-30T03:47:56.000Z
examples/parametertree.py
sneakers-the-rat/pyqtgraph
65ef2a5a60a1a08d0106e819110528b2ca3499a3
[ "MIT" ]
34
2018-09-28T00:01:59.000Z
2022-03-21T15:40:02.000Z
examples/parametertree.py
sneakers-the-rat/pyqtgraph
65ef2a5a60a1a08d0106e819110528b2ca3499a3
[ "MIT" ]
40
2018-04-06T19:42:21.000Z
2022-01-11T00:34:17.000Z
# -*- coding: utf-8 -*- """ This example demonstrates the use of pyqtgraph's parametertree system. This provides a simple way to generate user interfaces that control sets of parameters. The example demonstrates a variety of different parameter types (int, float, list, etc.) as well as some customized parameter types ...
39.806452
128
0.59873
acfeadd47a29a99bcf550b8f2f8ef032458c355b
297
py
Python
exercises/pt/exc_03_16_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/exc_03_16_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/exc_03_16_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("en_core_web_sm") text = ( "Chick-fil-A is an American fast food restaurant chain headquartered in " "the city of College Park, Georgia, specializing in chicken sandwiches." ) # Apenas toquenizar o texto doc = nlp(text) print([token.text for token in doc])
24.75
77
0.73064
acfeaf004dee0450bf95c1fc1afe6634d4c35921
3,809
py
Python
ssm_cache/cache.py
benkehoe/ssm-cache-python
c21c536b7ba38494bfccafea311a853f50360609
[ "MIT" ]
1
2020-05-25T08:26:55.000Z
2020-05-25T08:26:55.000Z
ssm_cache/cache.py
benkehoe/ssm-cache-python
c21c536b7ba38494bfccafea311a853f50360609
[ "MIT" ]
null
null
null
ssm_cache/cache.py
benkehoe/ssm-cache-python
c21c536b7ba38494bfccafea311a853f50360609
[ "MIT" ]
null
null
null
""" Cache module that implements the SSM caching wrapper """ from __future__ import print_function from datetime import datetime, timedelta from functools import wraps from past.builtins import basestring import boto3 class InvalidParam(Exception): """ Raised when something's wrong with the provided param name ""...
36.27619
80
0.592807
acfeb070bb783851d7cdf64520eff54c3f18b77f
2,801
py
Python
spacy_ixakat/ixakat.py
sarnthil/spaCy-ixaKat
841e6d8938eca8e69ca620c85ba4f164dee4071f
[ "MIT" ]
null
null
null
spacy_ixakat/ixakat.py
sarnthil/spaCy-ixaKat
841e6d8938eca8e69ca620c85ba4f164dee4071f
[ "MIT" ]
null
null
null
spacy_ixakat/ixakat.py
sarnthil/spaCy-ixaKat
841e6d8938eca8e69ca620c85ba4f164dee4071f
[ "MIT" ]
1
2022-02-07T07:29:07.000Z
2022-02-07T07:29:07.000Z
#! /usr/bin/python3 -i # coding=utf-8 import os PACKAGE_DIR=os.path.abspath(os.path.dirname(__file__)) IXAKAT2UD=os.path.join(PACKAGE_DIR,"bin","ixakat2ud") IXAKAT2CONLL=os.path.join(PACKAGE_DIR,"bin","ixakat2conll") import numpy from spacy.language import Language from spacy.symbols import LANG,NORM,LEMMA,POS,TAG,DE...
28.876289
128
0.656194
acfeb21c559d090f95c060819bfb25747b8b61ab
7,354
py
Python
pvn3d/lib/utils/etw_pytorch_utils/sacred_trainer.py
JiazeWang/PVN3D
07241f5e0de488c123cd78f516a707bff207c2e0
[ "MIT" ]
369
2019-11-12T08:27:08.000Z
2022-03-28T08:33:14.000Z
pvn3d/lib/utils/etw_pytorch_utils/sacred_trainer.py
hansongfang/PVN3D
1f0216505faa543ac2367cf485e0703cabcaefa0
[ "MIT" ]
99
2019-11-27T12:48:49.000Z
2022-03-23T07:15:24.000Z
pvn3d/lib/utils/etw_pytorch_utils/sacred_trainer.py
hansongfang/PVN3D
1f0216505faa543ac2367cf485e0703cabcaefa0
[ "MIT" ]
102
2019-11-20T13:14:16.000Z
2022-03-31T08:05:29.000Z
from __future__ import ( division, absolute_import, with_statement, print_function, unicode_literals, ) import torch import torch.nn as nn import numpy as np import tqdm import sacred import os.path as osp from .pytorch_utils import checkpoint_state if False: # Workaround for type hints witho...
30.89916
120
0.517677
acfeb26ca7caa7037547df8edbf11277d5b807f6
439
py
Python
Mi_comida_favorita.py
rmanuel34/Programacion-
681b3912b88f7c839d1240b2f6f3b6d72adab6cf
[ "Apache-2.0" ]
null
null
null
Mi_comida_favorita.py
rmanuel34/Programacion-
681b3912b88f7c839d1240b2f6f3b6d72adab6cf
[ "Apache-2.0" ]
null
null
null
Mi_comida_favorita.py
rmanuel34/Programacion-
681b3912b88f7c839d1240b2f6f3b6d72adab6cf
[ "Apache-2.0" ]
null
null
null
comidas["pizza", "hamburguesa", "costilla agridulce", "hot dog", "pollo asado", "arroz chino", "papas fitas", "ensalada de papas", "pastelitos de maseca", "pastelitos de harina", "carne ala plancha", "carna asada", "bistec", "camarones empanizados", "lasaña", "sopa marinera", "ceviche", "pollo frito", "baleadas", "aros...
73.166667
335
0.70615
acfeb27b04f0f486a4c98dcf0eacd20a3afa785c
1,264
py
Python
models/simple.py
MetroStar/bitnest
a8d9cef5a17a5366e088a774ae951a0f06f97ae7
[ "MIT" ]
4
2021-09-16T21:33:13.000Z
2022-01-18T22:05:57.000Z
models/simple.py
MetroStar/bitnest
a8d9cef5a17a5366e088a774ae951a0f06f97ae7
[ "MIT" ]
1
2021-12-02T03:47:45.000Z
2021-12-02T03:47:45.000Z
models/simple.py
MetroStar/bitnest
a8d9cef5a17a5366e088a774ae951a0f06f97ae7
[ "MIT" ]
null
null
null
from bitnest.field import ( Struct, UnsignedInteger, Bits, Union, FieldReference, Vector, ) class CommandWord(Struct): name = "CommandWord" fields = [ UnsignedInteger("remote_terminal_address", 5), UnsignedInteger("number_of_words", 3), ] class DataWord(Struct): ...
19.446154
82
0.630538
acfeb2a254a25061925adb8675aa8b82a244d39c
10,351
py
Python
wandb/run-20210412_003525-5km65f5j/files/code/main.py
ccoltong1215/simple-lenet5-torch-mnist
3eaa25160525f89dd6b9fe1db5de26a2bfda2fea
[ "MIT" ]
null
null
null
wandb/run-20210412_003525-5km65f5j/files/code/main.py
ccoltong1215/simple-lenet5-torch-mnist
3eaa25160525f89dd6b9fe1db5de26a2bfda2fea
[ "MIT" ]
5
2021-09-08T03:09:50.000Z
2022-03-12T00:56:43.000Z
wandb/run-20210412_003525-5km65f5j/files/code/main.py
ccoltong1215/simple-lenet5-torch-mnist
3eaa25160525f89dd6b9fe1db5de26a2bfda2fea
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from dataset import Dataset from model import LeNet5, CustomMLP,LeNet5_regulized import numpy as np import matplotlib.pyplot as plt import wandb def train(model, trn_loader, device, criterion, optimizer,epoch,model...
42.950207
190
0.632113
acfeb2c87eca12ab7566379f135d0e6c647eb2cd
2,651
py
Python
neuro_pypes/tests/test__utils.py
Neurita/pypes
e88d27ebba842e8fa1f36b52ca12a0b9d5777e89
[ "Apache-2.0" ]
14
2015-11-30T19:32:08.000Z
2021-11-16T05:35:20.000Z
neuro_pypes/tests/test__utils.py
Neurita/pypes
e88d27ebba842e8fa1f36b52ca12a0b9d5777e89
[ "Apache-2.0" ]
42
2015-11-28T23:18:42.000Z
2021-02-23T01:45:02.000Z
neuro_pypes/tests/test__utils.py
Neurita/pypes
e88d27ebba842e8fa1f36b52ca12a0b9d5777e89
[ "Apache-2.0" ]
9
2015-12-09T17:10:59.000Z
2022-01-03T17:26:40.000Z
# -*- coding: utf-8 -*- from neuro_pypes._utils import format_pair_list def test_format_pair_list(): anat_fbasename = 'anat_hc' regexp_subst = [ (r"/{anat}_.*corrected_seg8.mat$", "/{anat}_to_mni_affine.mat"), (r"/m{anat}.*_corrected.nii$", "/{anat}_biascorrecte...
61.651163
92
0.423991
acfeb534f571b1bcf6b6184ecfb06bc128c3ad4e
1,443
py
Python
actions/tests/test_scale.py
jubelcassio/ImageProcessing
ebf8f0bfb1613dea1c0d0008c26cbfc970b98d45
[ "MIT" ]
null
null
null
actions/tests/test_scale.py
jubelcassio/ImageProcessing
ebf8f0bfb1613dea1c0d0008c26cbfc970b98d45
[ "MIT" ]
6
2018-08-21T17:34:23.000Z
2019-01-26T15:31:21.000Z
actions/tests/test_scale.py
jubelcassio/ImageProcessing
ebf8f0bfb1613dea1c0d0008c26cbfc970b98d45
[ "MIT" ]
null
null
null
import argparse from actions import scale from PIL import Image def test_parse(): main_parser = argparse.ArgumentParser() subparsers = main_parser.add_subparsers() scale.subparser(subparsers) args = ["scale", "image.jpg", "2"] result = {"command": "scale", "path": "image.jpg", "scalar": 2, ...
32.795455
78
0.587665
acfeb5ef19241a5fbf0e2b3752f12509dfc226de
426
py
Python
mergelists.py
ormiret/badwords
eda5159d081e4c2ffa3f63973f739cca6afac624
[ "BSD-2-Clause" ]
1
2021-08-02T07:49:18.000Z
2021-08-02T07:49:18.000Z
mergelists.py
ormiret/badwords
eda5159d081e4c2ffa3f63973f739cca6afac624
[ "BSD-2-Clause" ]
null
null
null
mergelists.py
ormiret/badwords
eda5159d081e4c2ffa3f63973f739cca6afac624
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python #word compile and sort #usage: mergelists.py firstlistfile secondlistfile import sys with open(sys.argv[1],'r') as f: first = f.readlines() with open(sys.argv[2],'r') as f: second = f.readlines() final_list = sorted(list(set(first) | set(second))) new_file_name = (sys.argv[1] + "-" + sys.arg...
21.3
77
0.666667
acfeb624c370c851eee430a885ef4bd3f0ce0a1b
53,431
py
Python
home/views.py
NachiketaDhal/Ed-Flix
b4f806a2492a9894b30f50ea07700ec2d9b8d390
[ "MIT" ]
6
2021-02-28T06:12:22.000Z
2021-02-28T19:13:00.000Z
home/views.py
NachiketaDhal/Ed-Flix
b4f806a2492a9894b30f50ea07700ec2d9b8d390
[ "MIT" ]
3
2021-02-27T21:36:43.000Z
2021-03-01T14:53:53.000Z
home/views.py
NachiketaDhal/Ed-Flix
b4f806a2492a9894b30f50ea07700ec2d9b8d390
[ "MIT" ]
9
2020-11-20T07:24:02.000Z
2021-05-02T06:01:07.000Z
from django.http.response import HttpResponse, JsonResponse from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.core.files.storage import FileSystemStorage from api.models import FileUpload from accounts.models import DocViews # Create your views here. S...
61.984919
1,059
0.581142
acfeb671cec0617ecf7e9a324de1bbba433c4f7d
75
py
Python
dbsettings/__init__.py
johnpaulett/django-dbsettings
87465bdfebf8b6546212f987748111f33b80fbd4
[ "BSD-3-Clause" ]
null
null
null
dbsettings/__init__.py
johnpaulett/django-dbsettings
87465bdfebf8b6546212f987748111f33b80fbd4
[ "BSD-3-Clause" ]
null
null
null
dbsettings/__init__.py
johnpaulett/django-dbsettings
87465bdfebf8b6546212f987748111f33b80fbd4
[ "BSD-3-Clause" ]
null
null
null
from dbsettings.values import * # NOQA from dbsettings.group import Group
25
39
0.8
acfeb679100096f3e0ee974a1a9a59c516b3e15a
10,555
py
Python
analysis/sahadiagonalfault.py
aewag/archie
65770d9e489112040e8cb4950c3612e508528e12
[ "Apache-2.0" ]
null
null
null
analysis/sahadiagonalfault.py
aewag/archie
65770d9e489112040e8cb4950c3612e508528e12
[ "Apache-2.0" ]
null
null
null
analysis/sahadiagonalfault.py
aewag/archie
65770d9e489112040e8cb4950c3612e508528e12
[ "Apache-2.0" ]
null
null
null
# Implementation of the differential fault attack for the M0 fault model # # For a description of this attack see: # Dhiman Saha, Debdeep Mukhopadhyay and Dipanwita Roy Chowdhury # A Diagonal Fault Attack on the Advanced Encryption Standard. # IACR Cryptology ePrint Archive, 581, 2009. # # input: faulty cipher texts an...
44.914894
139
0.62937
acfeb68ee745d3d7d7b1986e54c5c55737c943b0
9,787
py
Python
autoarray/plot/imaging_plots.py
Sketos/PyAutoArray
72dc7e8d1c38786915f82a7e7284239e5ce87624
[ "MIT" ]
null
null
null
autoarray/plot/imaging_plots.py
Sketos/PyAutoArray
72dc7e8d1c38786915f82a7e7284239e5ce87624
[ "MIT" ]
null
null
null
autoarray/plot/imaging_plots.py
Sketos/PyAutoArray
72dc7e8d1c38786915f82a7e7284239e5ce87624
[ "MIT" ]
null
null
null
from autoarray.plot import plotters @plotters.set_include_and_sub_plotter @plotters.set_subplot_filename def subplot_imaging( imaging, grid=None, mask=None, positions=None, include=None, sub_plotter=None ): """Plot the imaging data_type as a sub-plotters of all its quantites (e.g. the dataset, noise_map-map, ...
31.775974
134
0.697047
acfeb6e521e29b825a0c66be210109a53d2986f0
2,044
py
Python
fedn/fedn/common/security/certificatemanager.py
eriks-aidotse/fedn
ab784e6ac45fd02be4532c9bbc8d5b8c75b62d51
[ "Apache-2.0" ]
75
2020-07-19T10:40:15.000Z
2022-03-13T06:56:04.000Z
fedn/fedn/common/security/certificatemanager.py
eriks-aidotse/fedn
ab784e6ac45fd02be4532c9bbc8d5b8c75b62d51
[ "Apache-2.0" ]
124
2020-07-27T18:16:21.000Z
2022-03-10T12:16:04.000Z
fedn/fedn/common/security/certificatemanager.py
eriks-aidotse/fedn
ab784e6ac45fd02be4532c9bbc8d5b8c75b62d51
[ "Apache-2.0" ]
28
2020-08-14T19:39:30.000Z
2022-03-16T10:29:09.000Z
from .certificate import Certificate class CertificateManager: """ """ def __init__(self, directory): self.directory = directory self.certificates = [] self.allowed = dict() self.load_all() def get_or_create(self, name): """ :param name: :re...
27.253333
115
0.508317
acfeb7592bac5462ed6a7b456c76f64d601e1fdd
84,190
py
Python
tensorflow_federated/python/core/impl/compiler/building_block_factory.py
ixcc/federated
3fb48ae6d019ee763c5112d23c3bdbcbaea17948
[ "Apache-2.0" ]
1
2020-01-13T02:51:38.000Z
2020-01-13T02:51:38.000Z
tensorflow_federated/python/core/impl/compiler/building_block_factory.py
ixcc/federated
3fb48ae6d019ee763c5112d23c3bdbcbaea17948
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/impl/compiler/building_block_factory.py
ixcc/federated
3fb48ae6d019ee763c5112d23c3bdbcbaea17948
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019, The TensorFlow Federated 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 ...
42.031952
92
0.716356
acfeb856a7fa7e64493bda2cf5f627e594135cb9
1,881
py
Python
julia/static.py
arcturus5340/julia
6bb7b6e956edc9b16f773926978679dd6031e959
[ "MIT" ]
13
2018-10-20T17:31:00.000Z
2022-03-06T23:02:48.000Z
julia/static.py
arcturus5340/julia
6bb7b6e956edc9b16f773926978679dd6031e959
[ "MIT" ]
4
2019-10-08T18:24:38.000Z
2021-06-10T20:06:26.000Z
julia/static.py
arcturus5340/julia
6bb7b6e956edc9b16f773926978679dd6031e959
[ "MIT" ]
6
2018-10-29T00:58:55.000Z
2020-03-25T14:02:18.000Z
import mimetypes import posixpath from pathlib import Path from django.http import ( FileResponse, Http404, HttpResponseNotModified, ) from django.utils._os import safe_join from django.utils.http import http_date from django.views import static from django.utils import timezone from django.core.exceptions import ...
40.021277
116
0.738969
acfeb8f4c2a1c7754050e2ebce47e60170850355
2,065
py
Python
base/pylib/tuple.py
brownplt/lambda-py
c3ee39502c8953d36b886e5a203f2eb51d2f495b
[ "Apache-2.0" ]
25
2015-04-16T04:31:49.000Z
2022-03-10T15:53:28.000Z
base/pylib/tuple.py
brownplt/lambda-py
c3ee39502c8953d36b886e5a203f2eb51d2f495b
[ "Apache-2.0" ]
1
2018-11-21T22:40:02.000Z
2018-11-26T17:53:11.000Z
base/pylib/tuple.py
brownplt/lambda-py
c3ee39502c8953d36b886e5a203f2eb51d2f495b
[ "Apache-2.0" ]
1
2021-03-26T03:36:19.000Z
2021-03-26T03:36:19.000Z
class tuple(object): def __new__(self, *args): if ___delta("num=", args.__len__(), 0): return () else: first_arg = ___delta("tuple-getitem", args, 0) return first_arg.__tuple__() def __init__(self, *args): pass def __len__(self): int = ___id("%int") return ___delta("tuple-...
23.202247
52
0.588862
acfeb9f14c20850d1fb9ea3a7cab45a30c8d3b2c
6,890
py
Python
tests/test_anomaly_functionsv2.py
Agnarsh/functions
64a408ecf55773f38c5ce3b2fe75119e7235e9c9
[ "Apache-2.0" ]
null
null
null
tests/test_anomaly_functionsv2.py
Agnarsh/functions
64a408ecf55773f38c5ce3b2fe75119e7235e9c9
[ "Apache-2.0" ]
null
null
null
tests/test_anomaly_functionsv2.py
Agnarsh/functions
64a408ecf55773f38c5ce3b2fe75119e7235e9c9
[ "Apache-2.0" ]
null
null
null
# ***************************************************************************** # © Copyright IBM Corp. 2018. All Rights Reserved. # # This program and the accompanying materials # are made available under the terms of the Apache V2.0 license # which accompanies this distribution, and is available at # http://www.apac...
35.515464
99
0.688534