hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
fbff40cbb2e4506d58626781a57d6396b7a6174e
6,622
py
Python
src/config_pipeline.py
LeanderLXZ/oracle-recognition
c82976333d4a72218b06fffc94192238d95fcf9e
[ "Apache-2.0" ]
1
2022-02-08T09:33:16.000Z
2022-02-08T09:33:16.000Z
src/config_pipeline.py
LeanderLXZ/oracle-recognition
c82976333d4a72218b06fffc94192238d95fcf9e
[ "Apache-2.0" ]
null
null
null
src/config_pipeline.py
LeanderLXZ/oracle-recognition
c82976333d4a72218b06fffc94192238d95fcf9e
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from copy import copy from easydict import EasyDict # Auto-generate version def _auto_version(c): _version = c['DATABASE_NAME'] if c['WITH_REC']: _version += '_{}_{}'.format(c['DECODER_TYPE'], c['REC_...
23.906137
73
0.603292
ad9ba06582b3f7e78f12b0d0ce124ba01ccacf45
8,842
py
Python
PythonFSDAM/exp_max_gaussmix.py
MauriceKarrenbrock/PythonFSDAM
efd4a1717af37d6598aaaca0fa520f735cf254b0
[ "BSD-3-Clause" ]
null
null
null
PythonFSDAM/exp_max_gaussmix.py
MauriceKarrenbrock/PythonFSDAM
efd4a1717af37d6598aaaca0fa520f735cf254b0
[ "BSD-3-Clause" ]
null
null
null
PythonFSDAM/exp_max_gaussmix.py
MauriceKarrenbrock/PythonFSDAM
efd4a1717af37d6598aaaca0fa520f735cf254b0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################# # Copyright (c) 2020-2021 Maurice Karrenbrock # # # # This software is open-source and is distributed under the # # BSD 3-Clause "New" or "Revised" License ...
27.805031
94
0.558245
774cbc8cb91712eeddf36eb9bb13b2f997b1e3c4
533
py
Python
teamspirit/users/migrations/0026_auto_20201003_0147.py
etienne86/prod_team_spirit
26bdd32d51693740ffc9d91e39702b5b4b9d6894
[ "MIT" ]
null
null
null
teamspirit/users/migrations/0026_auto_20201003_0147.py
etienne86/prod_team_spirit
26bdd32d51693740ffc9d91e39702b5b4b9d6894
[ "MIT" ]
null
null
null
teamspirit/users/migrations/0026_auto_20201003_0147.py
etienne86/prod_team_spirit
26bdd32d51693740ffc9d91e39702b5b4b9d6894
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-10-02 23:47 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profiles', '0026_auto_20201003_0046'), ('users', '0025_auto_20201003_0146'), ] operations = [ migra...
25.380952
117
0.637899
e70420881bab015177bf0b4aeaadefc5b6450d58
622
py
Python
CommonTools/ParticleFlow/python/TopProjectors/pfNoMuon_cfi.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
CommonTools/ParticleFlow/python/TopProjectors/pfNoMuon_cfi.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
26
2018-10-30T12:47:58.000Z
2022-03-29T08:39:00.000Z
CommonTools/ParticleFlow/python/TopProjectors/pfNoMuon_cfi.py
p2l1pfp/cmssw
9bda22bf33ecf18dd19a3af2b3a8cbdb1de556a9
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
import FWCore.ParameterSet.Config as cms pfNoMuon = cms.EDProducer( "TPPFCandidatesOnPFCandidates", enable = cms.bool( True ), verbose = cms.untracked.bool( False ), name = cms.untracked.string("noMuon"), topCollection = cms.InputTag("pfIsolatedMuons"), bottomCollection = cms.InputTag("pfNoPil...
31.1
52
0.702572
b122578e79a4802797532b8ce6bf9446e3a22449
57
py
Python
AtCoder/tokiomarine2020/gen.py
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
2
2018-12-11T14:37:24.000Z
2022-01-23T18:11:54.000Z
AtCoder/tokiomarine2020/gen.py
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
null
null
null
AtCoder/tokiomarine2020/gen.py
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
null
null
null
print 200000,30 for i in range(200000): print 0, print ""
19
32
0.719298
cf2e976ddf8b56da8586669664d0fd6e9f4f42aa
1,956
py
Python
gSpan.py
wyxpku/gSpan-py
f33c88626103b67b45b0952db33bdc6f290ff6c1
[ "MIT" ]
null
null
null
gSpan.py
wyxpku/gSpan-py
f33c88626103b67b45b0952db33bdc6f290ff6c1
[ "MIT" ]
null
null
null
gSpan.py
wyxpku/gSpan-py
f33c88626103b67b45b0952db33bdc6f290ff6c1
[ "MIT" ]
null
null
null
class Vertex(): def __init__(self, vid, vlabel): self.id = vid self.dfs_id = 0 self.edges = [] self.label = vlabel class Edge(): def __init__(self, vfrom, vto, elabel): self.vfrom = vfrom self.vto = vto self.label = elabel class Graph(): def __init__(self, gid, code=[]): self.id = gid self.edges...
25.076923
78
0.656953
596ff700ed55dcb0585826e40dba9d9fd7fe42de
909
py
Python
var/spack/repos/builtin/packages/py-dominate/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-dominate/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-dominate/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 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 PyDominate(PythonPackage): """Dominate is a Python library for creating and manipulati...
36.36
95
0.729373
d5e05a65449f0ab82fda79be8d5c4f6700418a7a
3,172
py
Python
src/pss_fleets.py
stracker-phil/heroku-pss
28cc783e864d8b652433f2546f4a56689597a325
[ "Apache-2.0" ]
4
2019-04-26T12:00:39.000Z
2020-07-20T18:55:20.000Z
src/pss_fleets.py
stracker-phil/heroku-pss
28cc783e864d8b652433f2546f4a56689597a325
[ "Apache-2.0" ]
1
2020-09-01T01:23:07.000Z
2020-09-01T01:23:07.000Z
src/pss_fleets.py
stracker-phil/heroku-pss
28cc783e864d8b652433f2546f4a56689597a325
[ "Apache-2.0" ]
23
2019-02-13T04:50:39.000Z
2021-08-02T15:55:23.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # ----- Packages ------------------------------------------------------ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import datetime import os import pa...
29.924528
81
0.612863
ed4ae7279abe7bd7d70997353051244d58a1b6f4
595
py
Python
sockeye/__init__.py
blchu/sockeye
28044a44ee409c9b3df1711c0b16bdebdd463b2e
[ "Apache-2.0" ]
null
null
null
sockeye/__init__.py
blchu/sockeye
28044a44ee409c9b3df1711c0b16bdebdd463b2e
[ "Apache-2.0" ]
null
null
null
sockeye/__init__.py
blchu/sockeye
28044a44ee409c9b3df1711c0b16bdebdd463b2e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017--2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License # is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fi...
39.666667
79
0.746218
3145dc0068ab3f1fafc6cb1e4049d3bdba370120
12,301
py
Python
runtime/bindings/python/tests/test_ngraph/test_pooling.py
chccc1994/openvino
41f7893ae81d186d15c1754b179bf32a66d03bcf
[ "Apache-2.0" ]
2,406
2020-04-22T15:47:54.000Z
2022-03-31T10:27:37.000Z
runtime/bindings/python/tests/test_ngraph/test_pooling.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
4,948
2020-04-22T15:12:39.000Z
2022-03-31T18:45:42.000Z
runtime/bindings/python/tests/test_ngraph/test_pooling.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
991
2020-04-23T18:21:09.000Z
2022-03-31T18:40:57.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import openvino.opset8 as ov from tests.runtime import get_runtime @pytest.fixture def _ndarray_1x1x4x4(): return np.arange(11, 27, dtype=np.float32).reshape(1, 1, 4, 4) def test_avg_pool_2d(_nda...
28.540603
96
0.500854
09feb8ca650a6ece1f46e273f548926a54d249e6
970
py
Python
tacotron2/datasets/length_sort_sampler.py
DashaSerdyuk/tacotron2
1a88669670750f8b0e1aff76abc8b1b15300e1dc
[ "BSD-3-Clause" ]
1
2020-03-03T23:04:05.000Z
2020-03-03T23:04:05.000Z
tacotron2/datasets/length_sort_sampler.py
DashaSerdyuk/tacotron2
1a88669670750f8b0e1aff76abc8b1b15300e1dc
[ "BSD-3-Clause" ]
null
null
null
tacotron2/datasets/length_sort_sampler.py
DashaSerdyuk/tacotron2
1a88669670750f8b0e1aff76abc8b1b15300e1dc
[ "BSD-3-Clause" ]
1
2020-03-26T19:37:46.000Z
2020-03-26T19:37:46.000Z
from torch.utils.data import Sampler import numpy as np def get_chunks(l, n): for i in range(0, len(l), n): yield l[i:i + n] def flatten(l): return [item for sublist in l for item in sublist] class LengthSortSampler(Sampler): def __init__(self, data_source, bs): super().__init__(data_s...
25.526316
60
0.608247
79147d9a763124ac2424c6c6d67a37d4e65e3a3b
3,705
py
Python
notebooks/as_script/1.0-adm-load-data-2012-Copy1.py
aryamccarthy/ANES
29c56f8c46fd4e8b6725f329cb609f4f14a8acb0
[ "MIT" ]
1
2017-04-18T22:46:02.000Z
2017-04-18T22:46:02.000Z
notebooks/as_script/1.0-adm-load-data-2012-Copy1.py
aryamccarthy/ANES
29c56f8c46fd4e8b6725f329cb609f4f14a8acb0
[ "MIT" ]
1
2017-07-17T20:28:24.000Z
2017-07-17T20:28:24.000Z
notebooks/as_script/1.0-adm-load-data-2012-Copy1.py
aryamccarthy/ANES
29c56f8c46fd4e8b6725f329cb609f4f14a8acb0
[ "MIT" ]
null
null
null
# coding: utf-8 # # Load and preprocess 2012 data # # We will, over time, look over other years. Our current goal is to explore the features of a single year. # # --- # In[1]: get_ipython().magic('pylab --no-import-all inline') import pandas as pd # ## Load the data. # # --- # # If this fails, be sure that yo...
20.027027
108
0.654521
072088e536b5aaac2582233d223852916cf2b27b
4,982
py
Python
robinhood_functions/robinhood_market_analysis.py
Goldeneye22/robinhood_strategy_alerts
9c4af6fcae0a5bf71c1c1192bae82e33ecee8194
[ "MIT" ]
2
2019-03-13T15:43:27.000Z
2020-05-15T02:24:43.000Z
robinhood_functions/robinhood_market_analysis.py
Goldeneye22/robinhood_strategy_alerts
9c4af6fcae0a5bf71c1c1192bae82e33ecee8194
[ "MIT" ]
null
null
null
robinhood_functions/robinhood_market_analysis.py
Goldeneye22/robinhood_strategy_alerts
9c4af6fcae0a5bf71c1c1192bae82e33ecee8194
[ "MIT" ]
1
2021-01-14T00:02:42.000Z
2021-01-14T00:02:42.000Z
# -*- coding: utf-8 -*- """ Created on Thu Nov 22 23:00:57 2018 @author: Andy """ import time import numpy as np #Import functions as abbreviations import robinhood_functions.robinhood_send_email as rhse def market_analysis(trader,tick_notify,loss_trig,gain_trig,max_value): #Account position section ana...
53
97
0.603573
0624d9a2a4b049b9ad34d469c5aca8b139be9d3b
2,557
py
Python
libs/models/deeplabv2.py
mikigom/deeplab-pytorch
48fefca09ea2403e0236830cd016aacb79f35876
[ "MIT" ]
null
null
null
libs/models/deeplabv2.py
mikigom/deeplab-pytorch
48fefca09ea2403e0236830cd016aacb79f35876
[ "MIT" ]
null
null
null
libs/models/deeplabv2.py
mikigom/deeplab-pytorch
48fefca09ea2403e0236830cd016aacb79f35876
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Author: Kazuto Nakashima # URL: http://kazuto1011.github.io # Created: 2017-11-19 from collections import OrderedDict import torch import torch.nn as nn from .resnet import _ConvBatchNormReLU, _ResBlock class _ASPPModule(nn.Module): """Atrous Spatial Pyramid Po...
30.082353
85
0.540868
7b6a2b1e21de034308992cd9e79e18ddc07be42b
2,143
py
Python
2018/day11.py
RutgerMoons/AdventOfCode
89fc0a75199bcaa8d814ead823d22f76774c2e4a
[ "MIT" ]
null
null
null
2018/day11.py
RutgerMoons/AdventOfCode
89fc0a75199bcaa8d814ead823d22f76774c2e4a
[ "MIT" ]
null
null
null
2018/day11.py
RutgerMoons/AdventOfCode
89fc0a75199bcaa8d814ead823d22f76774c2e4a
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 def calc_power_cell(x, y, serial): rack_id = x + 10 power = rack_id * y power += serial power *= rack_id power //= 100 power %= 10 power -= 5 return power def calc_total_power(board, grid_size): top_x, top_y = 1,1 max_power = -100 for x in range(len(board[0]) - grid_size + 1): fo...
24.352273
113
0.629025
efcbc411d38482e375685495acd72ae58f329085
7,236
py
Python
sdk/python/pulumi_azure_native/storage/get_blob_container_immutability_policy.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/storage/get_blob_container_immutability_policy.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/storage/get_blob_container_immutability_policy.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables __al...
47.92053
351
0.701216
008c3bcb2fceecc9143ebddde6dbd2daee7398ee
44,327
py
Python
awx/main/tasks/system.py
wes1997/awx
45bd143c07f1330a5ead288522569f28fe8aa12e
[ "Apache-2.0" ]
null
null
null
awx/main/tasks/system.py
wes1997/awx
45bd143c07f1330a5ead288522569f28fe8aa12e
[ "Apache-2.0" ]
null
null
null
awx/main/tasks/system.py
wes1997/awx
45bd143c07f1330a5ead288522569f28fe8aa12e
[ "Apache-2.0" ]
null
null
null
# Python from collections import namedtuple import itertools import functools import importlib import json import logging import os from io import StringIO from contextlib import redirect_stdout import shutil import time from distutils.version import LooseVersion as Version # Django from django.conf import settings fr...
43.288086
155
0.652785
1b848c8ac762b4dc80e4f692aff65c22a2b76596
52,600
py
Python
snakemake/io.py
troycomi/snakemake
70d3c74dfb2b52b1ed314d865eb362454304da44
[ "MIT" ]
null
null
null
snakemake/io.py
troycomi/snakemake
70d3c74dfb2b52b1ed314d865eb362454304da44
[ "MIT" ]
null
null
null
snakemake/io.py
troycomi/snakemake
70d3c74dfb2b52b1ed314d865eb362454304da44
[ "MIT" ]
null
null
null
__author__ = "Johannes Köster" __copyright__ = "Copyright 2015-2019, Johannes Köster" __email__ = "koester@jimmy.harvard.edu" __license__ = "MIT" import collections import os import shutil from pathlib import Path import re import stat import time import datetime import json import copy import functools import subproc...
32.092739
124
0.585266
1784140ecb039a1e4189707b3a1d68300bbf199e
62
py
Python
Sapphire/__init__.py
Rhodolite/Parser-py
7743799794d92aa8560db11f1d6d5f00e5ac1925
[ "MIT" ]
null
null
null
Sapphire/__init__.py
Rhodolite/Parser-py
7743799794d92aa8560db11f1d6d5f00e5ac1925
[ "MIT" ]
null
null
null
Sapphire/__init__.py
Rhodolite/Parser-py
7743799794d92aa8560db11f1d6d5f00e5ac1925
[ "MIT" ]
null
null
null
# # Copyright (c) 2017 Joy Diamond. All rights reserved. #
15.5
57
0.66129
f6997be8f8767603f8b3a02e0018a614c5817a45
458
py
Python
venv/Scripts/easy_install-script.py
leversonjr/mysite
d447b7a9adc3f7f36f3582bb7e98984c5abcdbf0
[ "Apache-2.0" ]
null
null
null
venv/Scripts/easy_install-script.py
leversonjr/mysite
d447b7a9adc3f7f36f3582bb7e98984c5abcdbf0
[ "Apache-2.0" ]
null
null
null
venv/Scripts/easy_install-script.py
leversonjr/mysite
d447b7a9adc3f7f36f3582bb7e98984c5abcdbf0
[ "Apache-2.0" ]
null
null
null
#!"C:\Users\lever\Desktop\Projeto Django\mysite\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install' __requires__ = 'setuptools==28.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\...
35.230769
83
0.694323
fef154e61dc629eefdb3ad58ba14d2d51e15ad2e
5,013
py
Python
pydmps/dmp_rhythmic.py
phranq0/ros_dmp
75317a79c74e3da33c27d660a7ab1489edbfa7a6
[ "Apache-2.0" ]
12
2019-03-01T08:09:05.000Z
2020-06-13T12:55:25.000Z
pydmps/dmp_rhythmic.py
phranq0/ros_dmp
75317a79c74e3da33c27d660a7ab1489edbfa7a6
[ "Apache-2.0" ]
null
null
null
pydmps/dmp_rhythmic.py
phranq0/ros_dmp
75317a79c74e3da33c27d660a7ab1489edbfa7a6
[ "Apache-2.0" ]
4
2019-02-22T14:34:57.000Z
2020-02-06T11:37:10.000Z
''' Copyright (C) 2013 Travis DeWolf This program 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 later version. This program is distributed in the hope t...
30.754601
79
0.605226
d7884d43ddd001b83a6352201c7bff5ed68a5085
49,852
py
Python
servicecatalog_factory/core.py
nathanroys/aws-service-catalog-factory
2b11403407ad9fcd56ce84684ac2c26f9060fd07
[ "Apache-2.0" ]
null
null
null
servicecatalog_factory/core.py
nathanroys/aws-service-catalog-factory
2b11403407ad9fcd56ce84684ac2c26f9060fd07
[ "Apache-2.0" ]
null
null
null
servicecatalog_factory/core.py
nathanroys/aws-service-catalog-factory
2b11403407ad9fcd56ce84684ac2c26f9060fd07
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import hashlib import json import logging import os from glob import glob import cfn_tools import colorclass import requests import terminaltables from pathlib import Path import boto3 import click import ...
44.59034
167
0.581963
9ed4b8e326665e4c80c063b44e6b571928c5aac2
435
py
Python
Chapter01/qt103_runPyQt.py
csy1993/PythonQt
c100cd9e1327fc7731bf04c7754cafb8dd578fa5
[ "Apache-2.0" ]
null
null
null
Chapter01/qt103_runPyQt.py
csy1993/PythonQt
c100cd9e1327fc7731bf04c7754cafb8dd578fa5
[ "Apache-2.0" ]
null
null
null
Chapter01/qt103_runPyQt.py
csy1993/PythonQt
c100cd9e1327fc7731bf04c7754cafb8dd578fa5
[ "Apache-2.0" ]
null
null
null
''' * @Author: csy * @Date: 2019-05-09 15:23:59 * @Last Modified by: csy * @Last Modified time: 2019-05-09 15:23:59 ''' # -*- coding: utf-8 -*- ''' 【简介】 PyQT5的第一个简单例子 ''' import sys from PyQt5.QtWidgets import QApplication, QWidget app = QApplication(sys.argv) window = QWidget() window.resize(500, 5...
17.4
49
0.652874
d2fe65cb655f99a03d12c6f42eaef9e3100096d1
9,980
py
Python
bcs-ui/backend/tests/iam/permissions/test_cluster.py
kayinli/bk-bcs
93a0856175f7b066ef835921572c1cac590dbd8e
[ "Apache-2.0" ]
1
2021-11-16T08:15:13.000Z
2021-11-16T08:15:13.000Z
bcs-ui/backend/tests/iam/permissions/test_cluster.py
kayinli/bk-bcs
93a0856175f7b066ef835921572c1cac590dbd8e
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/tests/iam/permissions/test_cluster.py
kayinli/bk-bcs
93a0856175f7b066ef835921572c1cac590dbd8e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
45.363636
119
0.659218
5f1b7e04f66c981810ecdc619a0653ab64d46f9d
890
py
Python
saleor/graphql/core/resolvers.py
probablysalty/bonsai
06e74acd890ac53e9332aef13a8b47b88e13723c
[ "BSD-3-Clause" ]
9
2021-08-08T22:42:18.000Z
2021-11-23T06:50:14.000Z
saleor/graphql/core/resolvers.py
probablysalty/bonsai
06e74acd890ac53e9332aef13a8b47b88e13723c
[ "BSD-3-Clause" ]
3
2020-03-24T16:14:11.000Z
2021-02-02T21:55:00.000Z
saleor/graphql/core/resolvers.py
probablysalty/bonsai
06e74acd890ac53e9332aef13a8b47b88e13723c
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django_countries import countries from phonenumbers import COUNTRY_CODE_TO_REGION_CODE from ...core.permissions import get_permissions from ..utils import format_permissions_for_display from .types import CountryDisplay, LanguageDisplay, Shop def resolve_shop(root, info): pe...
35.6
74
0.755056
a6cf786449b2c32c6e61a6fe3ff8dd21ac635233
2,956
py
Python
glance/tests/unit/common/test_client.py
abhishekkekane/glance
7998a56f57cb783577e06a0066e9c7463369dd5a
[ "Apache-2.0" ]
null
null
null
glance/tests/unit/common/test_client.py
abhishekkekane/glance
7998a56f57cb783577e06a0066e9c7463369dd5a
[ "Apache-2.0" ]
null
null
null
glance/tests/unit/common/test_client.py
abhishekkekane/glance
7998a56f57cb783577e06a0066e9c7463369dd5a
[ "Apache-2.0" ]
1
2021-07-18T18:57:04.000Z
2021-07-18T18:57:04.000Z
# Copyright 2013 Red Hat, 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 obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
32.130435
78
0.623816
c3e4526a4f061b43dd58aca14e0bced56d4aa4ea
266
py
Python
erpx_hrm/config/hrm.py
neel2292/erpx_hrm
a58947f8d921593fd3a8cda0db33ffae253ce75e
[ "MIT" ]
null
null
null
erpx_hrm/config/hrm.py
neel2292/erpx_hrm
a58947f8d921593fd3a8cda0db33ffae253ce75e
[ "MIT" ]
null
null
null
erpx_hrm/config/hrm.py
neel2292/erpx_hrm
a58947f8d921593fd3a8cda0db33ffae253ce75e
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import frappe from frappe import _ active_domains = frappe.get_active_domains() def get_data(): return [ { "label": _("ERPX Human Resource Module"), "items": [] } ]
20.461538
54
0.578947
2eff4153592da642e63c1411bf4617116bfa9c78
93,505
py
Python
python/tvm/relay/frontend/pytorch.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
2
2020-04-17T02:25:16.000Z
2020-11-25T11:39:43.000Z
python/tvm/relay/frontend/pytorch.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
3
2020-04-20T15:37:55.000Z
2020-05-13T05:34:28.000Z
python/tvm/relay/frontend/pytorch.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.147568
120
0.602011
3f0fd6c80ae092d8503076ea101e24cbae469f1a
99
py
Python
python/testData/intentions/PyAnnotateTypesIntentionTest/functionSameLineNotTypeCommentNotBreakNextTypeComment.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/intentions/PyAnnotateTypesIntentionTest/functionSameLineNotTypeCommentNotBreakNextTypeComment.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/intentions/PyAnnotateTypesIntentionTest/functionSameLineNotTypeCommentNotBreakNextTypeComment.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
def fo<caret>o(a, b=1000000, *c): # same line comment # type: (str, int, *str) -> None pass
33
53
0.575758
8a68b2e28713b3f1f8e059ccf0724eb7c5a3f35a
756
py
Python
project/webhooks/utils.py
yumike/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
4
2015-06-22T13:30:00.000Z
2020-03-19T07:17:12.000Z
project/webhooks/utils.py
netoxico/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
3
2020-02-12T01:17:37.000Z
2021-06-10T20:37:44.000Z
project/webhooks/utils.py
netoxico/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
1
2015-09-18T10:45:45.000Z
2015-09-18T10:45:45.000Z
def parse_hook_data(data): hash = data.get('after') compare_url = data.get('compare') ref = data.get('ref') repo = data.get('repository', {}) repo_url = repo.get('url') repo_name = repo.get('name') repo_user = repo.get('owner', {}).get('name') commit = data.get('head_commit') commit...
27
49
0.592593
0f0e3a774e71d9bf0fbe74c5f52e355971686288
10,801
py
Python
z3/python/z3tactics.py
heechul/crest-z3
cfcebadddb5e9d69e9956644fc37b46f6c2a21a0
[ "BSD-3-Clause" ]
12
2015-02-25T02:04:04.000Z
2021-03-05T08:40:15.000Z
z3/python/z3tactics.py
dqx/crest-z3
154e40b0aef614f12411da6ae75e4b04eda227dd
[ "BSD-3-Clause" ]
null
null
null
z3/python/z3tactics.py
dqx/crest-z3
154e40b0aef614f12411da6ae75e4b04eda227dd
[ "BSD-3-Clause" ]
7
2015-05-26T13:38:22.000Z
2021-05-17T13:27:23.000Z
# Automatically generated file, generator: mk_z3tactics.py import z3core import z3 def simplify_tactic(ctx=None): ctx = z3._get_ctx(ctx) return z3.Tactic(z3core.Z3_mk_tactic(ctx.ref(), 'simplify'), ctx) def split_clause_tactic(ctx=None): ctx = z3._get_ctx(ctx) return z3.Tactic(z3core.Z3_mk_tactic(ctx.ref(), '...
31.307246
78
0.716508
29a1fd4cd363f25ab04cad2defd27f31db6f4aa3
327
py
Python
Day-063/class_1.py
arvimal/100DaysofCode-Python
01e59f45b4dc06a3be9e9900456a6bd439752911
[ "MIT" ]
1
2020-06-15T05:59:01.000Z
2020-06-15T05:59:01.000Z
Day-063/class_1.py
arvimal/100DaysofCode-Python
01e59f45b4dc06a3be9e9900456a6bd439752911
[ "MIT" ]
null
null
null
Day-063/class_1.py
arvimal/100DaysofCode-Python
01e59f45b4dc06a3be9e9900456a6bd439752911
[ "MIT" ]
7
2020-01-24T23:03:58.000Z
2021-05-31T01:00:27.000Z
#!/usr/bin/env python3 class Person: def __init__(self, initialAge): # Add some more code to run some checks on initialAge def amIOld(self): # Do some computations in here and print out the correct statement to the console def yearPasses(self): # Increment the age of the person i...
25.153846
89
0.678899
929762b7cebe2949b60007d95fbcb3a0cdc2b2a3
1,337
py
Python
mlmodels/model_tf/misc/tf_serving/8.MTCNN-face-detection-flasksocketio-opencv2/app.py
gitter-badger/mlmodels
f08cc9b6ec202d4ad25ecdda2f44487da387569d
[ "MIT" ]
1
2022-03-11T07:57:48.000Z
2022-03-11T07:57:48.000Z
mlmodels/model_tf/misc/tf_serving/8.MTCNN-face-detection-flasksocketio-opencv2/app.py
whitetiger1002/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
[ "MIT" ]
null
null
null
mlmodels/model_tf/misc/tf_serving/8.MTCNN-face-detection-flasksocketio-opencv2/app.py
whitetiger1002/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
[ "MIT" ]
null
null
null
import base64 import io import time from os.path import abspath, dirname from queue import Queue import numpy as np from flask import Flask, Response from PIL import Image import cv2 from face_detection import detect_face from flask_socketio import SocketIO, emit, send d = dirname(dirname(abspath(__file__))) app = ...
25.226415
66
0.711294
33df80a080b303d7ad1d0fa3565cf792c18d07a8
266
py
Python
findmailer.py
Abhiforcs/mypythonworkspace
ac5014160fc9b29d1a8d835441e6360f470fae59
[ "MIT" ]
1
2020-05-12T20:19:53.000Z
2020-05-12T20:19:53.000Z
findmailer.py
Abhiforcs/mypythonworkspace
ac5014160fc9b29d1a8d835441e6360f470fae59
[ "MIT" ]
null
null
null
findmailer.py
Abhiforcs/mypythonworkspace
ac5014160fc9b29d1a8d835441e6360f470fae59
[ "MIT" ]
null
null
null
count = 0 fhand = open(input('Enter the file name to look in: ')) for ln in fhand: if ln.startswith('From '): words = ln.split() print(words[1]) count = count + 1 print('There were',count,'lines in the file with From as the first word')
26.6
73
0.612782
e6927d4ece95b86ceada7c692940a82d2c51bda0
263
py
Python
AtCoder/AGC025/A.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
1
2018-11-25T04:15:45.000Z
2018-11-25T04:15:45.000Z
AtCoder/AGC025/A.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
null
null
null
AtCoder/AGC025/A.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
2
2018-08-08T13:01:14.000Z
2018-11-25T12:38:36.000Z
N = int(input()) r = float("inf") for i in range(1, N): A = i B = N - i a = 0 b = 0 while A >= 1: a += A % 10 A /= 10 while B >= 1: b += B % 10 B /= 10 if a + b <= r: r = a + b print(int(r))
12.52381
21
0.323194
c23d501995a6dd23d4ff2d2cf708c50288c4d78d
4,968
py
Python
server/models/postgis/project_info.py
theprover97/tasking-manager
240f2395af522708666c1a6a407b7edeab04d332
[ "BSD-2-Clause" ]
2
2019-07-15T19:18:58.000Z
2020-09-02T18:11:30.000Z
server/models/postgis/project_info.py
theprover97/tasking-manager
240f2395af522708666c1a6a407b7edeab04d332
[ "BSD-2-Clause" ]
28
2019-01-04T17:39:00.000Z
2021-05-06T23:06:24.000Z
server/models/postgis/project_info.py
theprover97/tasking-manager
240f2395af522708666c1a6a407b7edeab04d332
[ "BSD-2-Clause" ]
3
2020-02-29T20:46:09.000Z
2020-11-20T19:44:04.000Z
from flask import current_app from sqlalchemy.dialects.postgresql import TSVECTOR from typing import List from server import db from server.models.dtos.project_dto import ProjectInfoDTO class ProjectInfo(db.Model): """ Contains all project info localized into supported languages """ __tablename__ = 'project_i...
46
147
0.708535
a09b6732cb1e65a568910cb12faa83ee3a9d22ab
1,879
py
Python
sumo/tests/netedit/additionalElements/e1detector/move/test.sikuli/test.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tests/netedit/additionalElements/e1detector/move/test.sikuli/test.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tests/netedit/additionalElements/e1detector/move/test.sikuli/test.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
2
2017-12-14T16:41:59.000Z
2020-10-16T17:51:27.000Z
#!/usr/bin/env python """ @file test.py @author Pablo Alvarez Lopez @date 2016-11-25 @version $Id$ python script used by sikulix for testing netedit SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/ Copyright (C) 2009-2017 DLR/TS, Germany This file is part of SUMO. SUMO is free software; you can red...
23.4875
68
0.751464
bfe4a18dc76f193f4d8a7985223f4f69c2a0b3f8
1,856
py
Python
src/ivpm/package.py
fvutils/ivpm
465ba3499e1644d3fdb48b4b77b2fcdc21ea978f
[ "BSD-3-Clause" ]
1
2021-12-14T23:48:51.000Z
2021-12-14T23:48:51.000Z
src/ivpm/package.py
fvutils/ivpm
465ba3499e1644d3fdb48b4b77b2fcdc21ea978f
[ "BSD-3-Clause" ]
null
null
null
src/ivpm/package.py
fvutils/ivpm
465ba3499e1644d3fdb48b4b77b2fcdc21ea978f
[ "BSD-3-Clause" ]
null
null
null
''' Created on Jun 8, 2021 @author: mballance ''' from enum import Enum, auto class PackageType(Enum): Raw = auto() Python = auto() Unknown = auto() PackageType2Spec = { PackageType.Raw : "raw", PackageType.Python : "python", PackageType.Unknown : "unknown" } Spec2PackageType = ...
22.634146
64
0.539332
2fda8887326cd8837ae35117bcb906b43d5e92a5
7,439
py
Python
bot/bot.py
fatihaltinpinar/discord-bot
54bbe1b884366299320d0fd860ab193c3cc03e98
[ "MIT" ]
null
null
null
bot/bot.py
fatihaltinpinar/discord-bot
54bbe1b884366299320d0fd860ab193c3cc03e98
[ "MIT" ]
null
null
null
bot/bot.py
fatihaltinpinar/discord-bot
54bbe1b884366299320d0fd860ab193c3cc03e98
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from discord.utils import get import config import urllib.request from bot.database import Database import re import csv import requests from datetime import datetime from random import choice from asyncio import Lock lock = Lock() client = commands.Bot(command_prefix = ...
35.764423
124
0.622799
2e5c4ab8043c2e684af14da4d7f5aebd648e2a61
3,616
py
Python
test/functional/p2p_feefilter.py
nccproject/ncc
068ccc82a73d28136546095261ad8ccef7e541a3
[ "MIT" ]
5
2021-04-26T01:15:43.000Z
2022-02-28T19:48:24.000Z
test/functional/p2p_feefilter.py
estxcoin/estcore
4398b1d944373fe25668469966fa2660da454279
[ "MIT" ]
null
null
null
test/functional/p2p_feefilter.py
estxcoin/estcore
4398b1d944373fe25668469966fa2660da454279
[ "MIT" ]
3
2021-04-26T00:57:46.000Z
2022-01-13T07:37:51.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test processing of feefilter messages.""" from decimal import Decimal import time from test_framework...
37.666667
81
0.670631
7c23200cdb4231639e0bdd8dee957a66c8689108
25,056
py
Python
src/roberta_base_model.py
BrianArbuckle/Flipping-Coins-with-RoBERTa
d678bfefb7f305028dfa6603270e7ced23d753b4
[ "MIT" ]
2
2021-03-29T05:42:23.000Z
2021-09-22T18:25:33.000Z
src/roberta_base_model.py
BrianArbuckle/Flipping-Coins-with-RoBERTa
d678bfefb7f305028dfa6603270e7ced23d753b4
[ "MIT" ]
2
2021-06-19T20:31:43.000Z
2021-07-01T05:43:48.000Z
src/roberta_base_model.py
BrianArbuckle/Flipping-Coins-with-RoBERTa
d678bfefb7f305028dfa6603270e7ced23d753b4
[ "MIT" ]
null
null
null
import copy import numpy as np import pickle from sklearn.model_selection import train_test_split import torch import torch.nn as nn import utils __author__ = "Christopher Potts" __version__ = "CS224u, Stanford, Fall 2020" class RobertaModelBase: def __init__(self, batch_size=1028, max_it...
38.253435
80
0.605484
2462593fea638d799954261e38a1aee1d45148d3
154
py
Python
python/testData/inspections/PyUnresolvedReferencesInspection/superclassAsLocal.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/PyUnresolvedReferencesInspection/superclassAsLocal.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/inspections/PyUnresolvedReferencesInspection/superclassAsLocal.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class A(object): def method(self): pass C = A class B(C): pass b = B() b.method() #Unresolved attribute reference 'method' for class 'B'
15.4
65
0.61039
713672646eb870dad29e9939867870e2d63dde3d
2,783
py
Python
tests/test_observable/test_asobservable.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
4,342
2015-01-06T09:00:23.000Z
2022-03-28T15:05:50.000Z
tests/test_observable/test_asobservable.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
613
2015-01-07T20:44:56.000Z
2022-03-20T06:14:20.000Z
tests/test_observable/test_asobservable.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
420
2015-01-07T14:30:30.000Z
2022-03-11T22:47:46.000Z
import unittest import rx from rx import operators as ops from rx.testing import TestScheduler, ReactiveTest on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disposed...
32.360465
118
0.652533
b137a0cab081df3292c1d936b3fa896dfca39511
3,891
py
Python
configs/common/Caches.py
ayaz91/gem5Valid_Haswell
8fc3b184d5d958cb033e413ccb12b6b183a11edd
[ "BSD-3-Clause" ]
8
2020-02-04T23:39:49.000Z
2021-05-18T14:33:14.000Z
configs/common/Caches.py
ayaz91/gem5Valid_Haswell
8fc3b184d5d958cb033e413ccb12b6b183a11edd
[ "BSD-3-Clause" ]
null
null
null
configs/common/Caches.py
ayaz91/gem5Valid_Haswell
8fc3b184d5d958cb033e413ccb12b6b183a11edd
[ "BSD-3-Clause" ]
5
2020-04-07T03:38:31.000Z
2020-11-28T04:03:15.000Z
# Copyright (c) 2012 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality ...
32.697479
72
0.736829
528a47e54b16ae6e0bcab5e01e7caa70a4d34cda
5,884
py
Python
txpipe/test/test_cal_lensfit.py
Lhior/TXPipe
58fd7612326779d4c1b0e499157dddc9e3b524c0
[ "BSD-3-Clause" ]
9
2018-03-17T02:07:52.000Z
2022-02-23T20:25:48.000Z
txpipe/test/test_cal_lensfit.py
Lhior/TXPipe
58fd7612326779d4c1b0e499157dddc9e3b524c0
[ "BSD-3-Clause" ]
162
2018-03-06T16:18:23.000Z
2022-03-21T18:11:37.000Z
txpipe/test/test_cal_lensfit.py
Lhior/TXPipe
58fd7612326779d4c1b0e499157dddc9e3b524c0
[ "BSD-3-Clause" ]
7
2018-07-26T11:49:46.000Z
2022-02-23T22:14:48.000Z
from ..utils.calibration_tools import MeanShearInBins, LensfitCalculator from ..utils import LensfitCalibrator, NullCalibrator import numpy as np import mockmpi def select_all_bool(data): return np.repeat(True, data['g2'].size) def select_all_index(data): return np.arange(data['g2'].size) def select_all_wh...
27.754717
81
0.580387
40f5e773be916890372d9bd66ded54f907aa8986
1,596
py
Python
test/functional/wallet_disable.py
foxdproject/foxdcoin
9db505f6f32bd3e51bd2b2da533744c98cee23af
[ "MIT" ]
7
2020-06-19T20:49:02.000Z
2022-01-31T09:12:18.000Z
test/functional/wallet_disable.py
foxdproject/foxdcoin
9db505f6f32bd3e51bd2b2da533744c98cee23af
[ "MIT" ]
1
2021-02-26T19:14:11.000Z
2021-02-26T19:14:11.000Z
test/functional/wallet_disable.py
foxdproject/foxdcoin
9db505f6f32bd3e51bd2b2da533744c98cee23af
[ "MIT" ]
12
2020-05-02T20:01:44.000Z
2022-03-03T11:02:13.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Copyright (c) 2017-2019 The Raven Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Test a node with the -disablewallet option. - Te...
42
128
0.734962
9f9ce6de774eefb22a6c817f554e401f65739052
7,888
py
Python
plasma/io/tca.py
jambobjambo/Deep-Edit
a5e3a474a497b9788fab8f96555763bcf9622e66
[ "Apache-2.0" ]
null
null
null
plasma/io/tca.py
jambobjambo/Deep-Edit
a5e3a474a497b9788fab8f96555763bcf9622e66
[ "Apache-2.0" ]
null
null
null
plasma/io/tca.py
jambobjambo/Deep-Edit
a5e3a474a497b9788fab8f96555763bcf9622e66
[ "Apache-2.0" ]
null
null
null
# # Plasma # Copyright (c) 2020 Homedeck, LLC. # from cv2 import cornerHarris, findTransformECC, MOTION_TRANSLATION, TERM_CRITERIA_COUNT, TERM_CRITERIA_EPS from numpy import array, argpartition, asarray, column_stack, concatenate, eye, float32, ndarray, ones, split, stack as stack_array, unravel_index from numpy....
41.73545
146
0.688641
679d512dcf84cb7c79018bf147a02672e02b4e60
1,140
py
Python
tests/unit/test_revision.py
twil/asyncpg-migrate
dd91237f49d91acdc21c642254ddcfb77e548e54
[ "Apache-2.0" ]
17
2019-07-23T12:34:29.000Z
2021-09-07T19:49:09.000Z
tests/unit/test_revision.py
twil/asyncpg-migrate
dd91237f49d91acdc21c642254ddcfb77e548e54
[ "Apache-2.0" ]
227
2019-06-27T21:51:34.000Z
2022-03-01T04:00:47.000Z
tests/unit/test_revision.py
twil/asyncpg-migrate
dd91237f49d91acdc21c642254ddcfb77e548e54
[ "Apache-2.0" ]
3
2019-07-11T08:55:34.000Z
2022-01-03T10:09:11.000Z
import typing as t import pytest from asyncpg_migrate import model @pytest.mark.parametrize( 'test_revision,expected_revision,all_revisions', [ ('HEAD', 2, [1, 2]), ('HEAD', ValueError, []), ('base', 1, [1, 2, 3, 4, 5]), ('base', ValueError, []), ('head', 3, [1, 2, 3]...
25.909091
58
0.503509
9e4615b8c2e6624cac0f940067dfd3d24bb75523
2,087
py
Python
aliyun-python-sdk-schedulerx2/aliyunsdkschedulerx2/request/v20190430/ListJobsRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-schedulerx2/aliyunsdkschedulerx2/request/v20190430/ListJobsRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-schedulerx2/aliyunsdkschedulerx2/request/v20190430/ListJobsRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.66129
74
0.760901
db0e5a52580408ff48f31700eabe036369431ae9
1,737
py
Python
setup.py
virtdevninja/steel_pigs
c929b1115a385d97d54d13f034a90dc5ab17d301
[ "Apache-2.0" ]
2
2016-02-10T17:38:41.000Z
2018-04-17T18:11:52.000Z
setup.py
virtdevninja/steel_pigs
c929b1115a385d97d54d13f034a90dc5ab17d301
[ "Apache-2.0" ]
null
null
null
setup.py
virtdevninja/steel_pigs
c929b1115a385d97d54d13f034a90dc5ab17d301
[ "Apache-2.0" ]
3
2015-12-05T16:31:32.000Z
2016-10-18T17:14:12.000Z
# Copyright 2015 Michael Rice <michael@michaelrice.org> # # 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 a...
33.403846
81
0.696603
47050d37d0d0e2a8ec53dbbb2a8a77cd8abf2d8c
4,450
py
Python
tbf/input_generation.py
leostrakosch/testbasedfalsification
18d08d6cee6fbfbad4d4ebfa7aed235521edec2b
[ "ECL-2.0", "Apache-2.0" ]
10
2018-02-13T17:46:38.000Z
2022-03-15T06:20:24.000Z
tbf/input_generation.py
leostrakosch/testbasedfalsification
18d08d6cee6fbfbad4d4ebfa7aed235521edec2b
[ "ECL-2.0", "Apache-2.0" ]
8
2018-07-17T22:35:02.000Z
2019-03-11T07:19:00.000Z
tbf/input_generation.py
leostrakosch/testbasedfalsification
18d08d6cee6fbfbad4d4ebfa7aed235521edec2b
[ "ECL-2.0", "Apache-2.0" ]
7
2018-05-05T15:16:28.000Z
2020-03-23T09:40:28.000Z
import tbf.utils as utils import os import logging from abc import ABCMeta, abstractmethod class BaseInputGenerator(object): __metaclass__ = ABCMeta var_counter = 0 @abstractmethod def create_input_generation_cmds(self, filename, cli_options): raise NotImplementedError() @abstractmethod...
38.695652
111
0.604719
f14f3510c7b02b17c05cd03c7737a6454fe2f522
1,718
py
Python
examples/visualization/plot_make_report.py
ragatti/mne-python
c6825a49c3452db616fc980d62d33f6dddf4cd65
[ "BSD-3-Clause" ]
1
2020-04-25T05:01:54.000Z
2020-04-25T05:01:54.000Z
examples/visualization/plot_make_report.py
ragatti/mne-python
c6825a49c3452db616fc980d62d33f6dddf4cd65
[ "BSD-3-Clause" ]
1
2019-11-15T06:47:33.000Z
2019-11-22T14:11:41.000Z
examples/visualization/plot_make_report.py
ragatti/mne-python
c6825a49c3452db616fc980d62d33f6dddf4cd65
[ "BSD-3-Clause" ]
null
null
null
""" .. _ex-report: ================================ Make an MNE-Report with a Slider ================================ In this example, MEG evoked data are plotted in an html slider. """ # Authors: Teon Brooks <teon.brooks@gmail.com> # Eric Larson <larson.eric.d@gmail.com> # # License: BSD (3-clause) from m...
31.814815
79
0.590221
a4186344aefb6e0375a66d638c991de4c964d173
3,464
py
Python
conan_build_tool/Configurators/AndroidConfigurator.py
Av3m/conan_build_tools
f82fb4a87d4ce7eea49b2af62a2ed14e9ef4a123
[ "MIT" ]
null
null
null
conan_build_tool/Configurators/AndroidConfigurator.py
Av3m/conan_build_tools
f82fb4a87d4ce7eea49b2af62a2ed14e9ef4a123
[ "MIT" ]
null
null
null
conan_build_tool/Configurators/AndroidConfigurator.py
Av3m/conan_build_tools
f82fb4a87d4ce7eea49b2af62a2ed14e9ef4a123
[ "MIT" ]
null
null
null
from conan_build_tool.Configurators import DockerConfigurator class AndroidConfigurator(object): def __init__(self, api_level, compiler, toolchain_path, arch): self.api_level = api_level self.arch = arch self.compiler = compiler self.toolchain_path = toolchain_path def getarch...
36.851064
122
0.614319
147130d0dd0465aae73e3fec33551425dd9b0611
249
py
Python
Lista4_10.py
NormanDeveloper/Lista4_Python
0b875026cac146145d52a1acdd3f3a05af2d9ccb
[ "MIT" ]
1
2018-09-15T17:50:54.000Z
2018-09-15T17:50:54.000Z
Lista4_10.py
NormanDeveloper/Lista4_Python
0b875026cac146145d52a1acdd3f3a05af2d9ccb
[ "MIT" ]
null
null
null
Lista4_10.py
NormanDeveloper/Lista4_Python
0b875026cac146145d52a1acdd3f3a05af2d9ccb
[ "MIT" ]
null
null
null
A = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] B = [11, 12, 13, 14, 15, 16, 17, 18, 19, 20] intercalada = [] contador = 0 for i in range(10): intercalada.append(A[contador]) intercalada.append(B[contador]) contador += 1 print(intercalada)
24.9
45
0.574297
f1e2b3ed214fbe20554e1b1ac96028ec7a0cb6dd
13,604
py
Python
mp_sort/virtenv/lib/python3.6/site-packages/transcrypt/modules/org/transcrypt/autotester/html.py
ang-jason/fip_powerx_mini_projects-foxtrot
37e3671969b516369e2d1c7cab5890b75c489f56
[ "MIT" ]
2,200
2016-10-12T16:47:13.000Z
2022-03-30T16:40:35.000Z
mp_sort/virtenv/lib/python3.6/site-packages/transcrypt/modules/org/transcrypt/autotester/html.py
ang-jason/fip_powerx_mini_projects-foxtrot
37e3671969b516369e2d1c7cab5890b75c489f56
[ "MIT" ]
672
2016-10-12T16:36:48.000Z
2022-03-25T00:57:04.000Z
mp_sort/virtenv/lib/python3.6/site-packages/transcrypt/modules/org/transcrypt/autotester/html.py
ang-jason/fip_powerx_mini_projects-foxtrot
37e3671969b516369e2d1c7cab5890b75c489f56
[ "MIT" ]
230
2016-10-20T14:31:40.000Z
2022-03-16T15:57:15.000Z
# File: autotester/html.py # Author: Carl Allendorph # Date: 20NOV2016 # # Description: # This file contains the HTML generation code for the autotester. # This includes generating the initial HTML file as output of the # python run, and the javascript that builds the results at runtime # in the browser. # ...
34.971722
204
0.570641
e45250c32f2c953298ba5cae5ee8e2cfa20651e3
46,326
py
Python
tests/test_vqe.py
MoritzWillmann/pennylane
2b07d22cfcc6406ba28e5c647062340b240a4ee5
[ "Apache-2.0" ]
539
2018-11-13T08:45:42.000Z
2020-07-27T18:17:16.000Z
tests/test_vqe.py
MoritzWillmann/pennylane
2b07d22cfcc6406ba28e5c647062340b240a4ee5
[ "Apache-2.0" ]
588
2018-11-14T10:21:47.000Z
2020-07-28T06:27:14.000Z
tests/test_vqe.py
MoritzWillmann/pennylane
2b07d22cfcc6406ba28e5c647062340b240a4ee5
[ "Apache-2.0" ]
165
2018-11-13T18:58:56.000Z
2020-07-27T17:18:17.000Z
# Copyright 2018-2020 Xanadu Quantum Technologies Inc. # 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...
34.857788
100
0.605125
4a18376ff11660c6c5d0cd3e104eb4c59c077663
46,331
py
Python
libcloud/loadbalancer/drivers/nttcis.py
cheald/libcloud
1a3ebe5d60de6475a8a2384d864475de0abd73cf
[ "Apache-2.0" ]
4
2017-11-14T17:24:12.000Z
2020-10-30T01:46:02.000Z
libcloud/loadbalancer/drivers/nttcis.py
cheald/libcloud
1a3ebe5d60de6475a8a2384d864475de0abd73cf
[ "Apache-2.0" ]
1
2018-11-02T12:41:54.000Z
2018-11-05T07:57:45.000Z
libcloud/loadbalancer/drivers/nttcis.py
cheald/libcloud
1a3ebe5d60de6475a8a2384d864475de0abd73cf
[ "Apache-2.0" ]
1
2020-02-01T10:25:54.000Z
2020-02-01T10:25:54.000Z
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
37.424071
79
0.584727
d1b16948fde3e5c23dfdcebc95a3bc614b603d46
6,670
py
Python
deepdab/ai/pg_learning_batch_exit_parallel_sampling.py
lantunes/deepdab
0e30f102b9d7c37d3691540496b1649f2704d586
[ "Apache-2.0" ]
1
2019-04-04T02:26:51.000Z
2019-04-04T02:26:51.000Z
deepdab/ai/pg_learning_batch_exit_parallel_sampling.py
lantunes/deepdab
0e30f102b9d7c37d3691540496b1649f2704d586
[ "Apache-2.0" ]
null
null
null
deepdab/ai/pg_learning_batch_exit_parallel_sampling.py
lantunes/deepdab
0e30f102b9d7c37d3691540496b1649f2704d586
[ "Apache-2.0" ]
null
null
null
from deepdab.ai import * from deepdab.util.helper_functions import * from deepdab.util.file_helper import * from deepdab.util.reward_util import * from deepdab.util.rate_util import * from deepdab.util.evaluator import * import concurrent.futures board_size = (2, 2) num_episodes = 1000000 learning_rate = 0.005 min_lea...
48.686131
141
0.697301
550cd3c463a4660dd378dc41de886bc235564814
337
py
Python
reddit_config.sample.py
basaldella/reddit-scraper
1f3820bed1a0a848087cbb65c759593d7ea311a2
[ "Apache-2.0" ]
6
2019-11-03T02:23:26.000Z
2021-12-07T11:25:44.000Z
reddit_config.sample.py
basaldella/reddit-scraper
1f3820bed1a0a848087cbb65c759593d7ea311a2
[ "Apache-2.0" ]
null
null
null
reddit_config.sample.py
basaldella/reddit-scraper
1f3820bed1a0a848087cbb65c759593d7ea311a2
[ "Apache-2.0" ]
null
null
null
# Reddit Client ID CLIENT_ID = "client_id" # Reddit Client sected CLIENT_SECRET = "client_secret" # User agent USER_AGENT = "sample_user_agent" # Skip posts deleted by the author? SKIP_DELETED = True # Skip posts deleted by mods/bots? SKIP_REMOVED = True # Add the username of the users at the beginning of the lines? PR...
25.923077
62
0.771513
e1fefa4987802cd1587d606afc9b62956e276f48
950
py
Python
wedsite/contrib/sites/migrations/0002_set_site_domain_and_name.py
jehutymax/wedsite
acea5fb0e6bd3225433f056eb402d97ad1af6161
[ "BSD-3-Clause" ]
2
2017-05-31T16:26:32.000Z
2017-08-29T22:25:41.000Z
wedsite/contrib/sites/migrations/0002_set_site_domain_and_name.py
jehutymax/wedsite
acea5fb0e6bd3225433f056eb402d97ad1af6161
[ "BSD-3-Clause" ]
null
null
null
wedsite/contrib/sites/migrations/0002_set_site_domain_and_name.py
jehutymax/wedsite
acea5fb0e6bd3225433f056eb402d97ad1af6161
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site domain and name.""" Site = apps.get_model("sites", "Site") Site.objects.update_or_create( id=settings.SITE_ID...
23.170732
72
0.617895
6a0f9c99abab2cef2c69e517ed8a6a2001fbd656
439
py
Python
MITx-6.00.1x-EDX-Introduction-to-Computer-Science/Week-6/PSET-6/applyCoder.py
lilsweetcaligula/MIT6.00.1x
ee2902782a08ff685e388b2f40c09ea8c9c5fcfe
[ "MIT" ]
null
null
null
MITx-6.00.1x-EDX-Introduction-to-Computer-Science/Week-6/PSET-6/applyCoder.py
lilsweetcaligula/MIT6.00.1x
ee2902782a08ff685e388b2f40c09ea8c9c5fcfe
[ "MIT" ]
null
null
null
MITx-6.00.1x-EDX-Introduction-to-Computer-Science/Week-6/PSET-6/applyCoder.py
lilsweetcaligula/MIT6.00.1x
ee2902782a08ff685e388b2f40c09ea8c9c5fcfe
[ "MIT" ]
null
null
null
""" PSET-6 Problem 1: Encryption (applyCoder) """ def applyCoder(text, coder): """ Applies the coder to the text. Returns the encoded text. text: string coder: dict with mappings of characters to shifted characters returns: text after mapping coder chars to original text """ s = "" for...
20.904762
65
0.596811
bb1967679d28f365a8cdfe537ccf6e2829c765be
57,321
py
Python
source/py/builder/core.py
shakfu/py3
fa1a34574fb3daaaf09bbf971ea638ddc3cfe579
[ "CC0-1.0" ]
null
null
null
source/py/builder/core.py
shakfu/py3
fa1a34574fb3daaaf09bbf971ea638ddc3cfe579
[ "CC0-1.0" ]
null
null
null
source/py/builder/core.py
shakfu/py3
fa1a34574fb3daaaf09bbf971ea638ddc3cfe579
[ "CC0-1.0" ]
null
null
null
"""builder: a builder of py-js max externals. A pure python builder without any dependencies except the standard library. Python Project ShellCmd Settings Product Recipe Builder Bzip2Builder OpensslBuilder XzBuilder PythonBuilder PythonSrcBuilder FrameworkPythonBuilder ...
30.751609
100
0.545629
7b9aaf3f7c766fc3ce4b545ba5c1ea6c4ae57c3a
20,730
py
Python
objectModel/Python/cdm/objectmodel/cdm_attribute_resolution_guidance_def.py
MiguelSHS/microsoftCDM
d8df31fa455fcc6afd698e3ca7ec0f8c4a6716fd
[ "CC-BY-4.0", "MIT" ]
1
2021-03-05T03:35:58.000Z
2021-03-05T03:35:58.000Z
objectModel/Python/cdm/objectmodel/cdm_attribute_resolution_guidance_def.py
spbast/CDM
bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7
[ "CC-BY-4.0", "MIT" ]
38
2021-09-07T21:23:21.000Z
2022-03-14T01:36:58.000Z
objectModel/Python/cdm/objectmodel/cdm_attribute_resolution_guidance_def.py
spbast/CDM
bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7
[ "CC-BY-4.0", "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from typing import List, Optional, TYPE_CHECKING from cdm.enums import CdmObjectType from cdm.utilities import ResolveOptions from .cdm_object_simple import CdmO...
56.178862
176
0.697781
0c7fa5519ee9f28e895d568b96e209eef8881d27
6,491
py
Python
coverage/summary.py
smcavallo/coveragepy
b7160a896252bb92ffe921a37e3cde98c5cb78b9
[ "Apache-2.0" ]
null
null
null
coverage/summary.py
smcavallo/coveragepy
b7160a896252bb92ffe921a37e3cde98c5cb78b9
[ "Apache-2.0" ]
null
null
null
coverage/summary.py
smcavallo/coveragepy
b7160a896252bb92ffe921a37e3cde98c5cb78b9
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt """Summary reporting""" import sys from coverage import env from coverage.report import get_analysis_to_report from coverage.results import Numbers from coverage....
39.579268
98
0.584502
f917db918c5eba97da53110fec71802fbc065ea2
8,367
py
Python
clu/keyvalue.py
fish2000/CLU
80bc2df5f001b5639d79ba979e19ec77a9931425
[ "BSD-3-Clause" ]
1
2019-07-02T08:17:59.000Z
2019-07-02T08:17:59.000Z
clu/keyvalue.py
fish2000/CLU
80bc2df5f001b5639d79ba979e19ec77a9931425
[ "BSD-3-Clause" ]
13
2019-12-17T02:28:30.000Z
2021-11-17T03:46:10.000Z
clu/keyvalue.py
fish2000/CLU
80bc2df5f001b5639d79ba979e19ec77a9931425
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import plistlib import zict # type: ignore from clu.constants.consts import ENCODING, NoDefault from clu.constants.enums import System from clu.constants.exceptions import KeyValueError from clu.fs.appdirectories import AppDirs from clu.fs.filesystem impor...
31.693182
102
0.58408
e73e348df63b8706add7f942f19a3a67d8bbc7a2
1,473
py
Python
tests/autofix/conftest.py
KindDragon/all-repos
88f50d7bf10247bb14dd82b6f8b18957b2a9941d
[ "MIT" ]
null
null
null
tests/autofix/conftest.py
KindDragon/all-repos
88f50d7bf10247bb14dd82b6f8b18957b2a9941d
[ "MIT" ]
null
null
null
tests/autofix/conftest.py
KindDragon/all-repos
88f50d7bf10247bb14dd82b6f8b18957b2a9941d
[ "MIT" ]
1
2022-03-31T04:09:55.000Z
2022-03-31T04:09:55.000Z
from __future__ import annotations import subprocess import pytest from testing.auto_namedtuple import auto_namedtuple from testing.git import init_repo from testing.git import revparse @pytest.fixture def autoupdatable(tmpdir): hook_repo = tmpdir.join('hook_repo') init_repo(hook_repo) hook_repo.join('...
28.326923
72
0.608961
0ed8c98b76691f7ec6945140e570e8ec580d64c1
6,434
py
Python
huskar_sdk_v2/service_watcher.py
mozillazg/huskar-python
f62a2d3636b2804a552bf59f76903cf2841d75c9
[ "MIT" ]
5
2019-09-29T03:09:31.000Z
2019-11-01T15:38:26.000Z
huskar_sdk_v2/service_watcher.py
mozillazg/huskar-python
f62a2d3636b2804a552bf59f76903cf2841d75c9
[ "MIT" ]
4
2019-09-27T03:58:55.000Z
2019-09-27T06:34:10.000Z
huskar_sdk_v2/service_watcher.py
mozillazg/huskar-python
f62a2d3636b2804a552bf59f76903cf2841d75c9
[ "MIT" ]
4
2019-09-27T06:03:30.000Z
2019-10-23T09:54:08.000Z
from __future__ import absolute_import import os import sys import signal import logging logger = logging.getLogger(__name__) def init_loggers(): console = logging.StreamHandler(sys.stdout) console.setLevel(logging.INFO) console.setFormatter( logging.Formatter('[HUSKAR %(levelname)-7s] %(messag...
32.994872
82
0.585483
b4430d0a13920fb319a641344592543cd13590ce
8,802
py
Python
reception/LoRaConfig.py
XeBasTex/LoRa-transmitter
3b996f032acf8bb9e031e65964bb10bc35f4dd03
[ "MIT" ]
null
null
null
reception/LoRaConfig.py
XeBasTex/LoRa-transmitter
3b996f032acf8bb9e031e65964bb10bc35f4dd03
[ "MIT" ]
null
null
null
reception/LoRaConfig.py
XeBasTex/LoRa-transmitter
3b996f032acf8bb9e031e65964bb10bc35f4dd03
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import QMainWindow, QApplication, QPushButton, QWidget, QAction, QInputDialog,QTabWidget,QVBoxLayout,QLineEdit, QLabel from PyQt5.QtGui import QIcon, QPixmap from PyQt5.QtCore import pyqtSlot from random import * import numpy as np import time import queue import serial import o...
34.382813
140
0.578846
0c9b5b2e469b8a7ede3de663946f5443a83bc2f1
374
py
Python
backend/server_alpha/server_alpha_app/migrations/0004_auto_20180707_1544.py
dalmarcogd/challenge_ms
761f0a588b4c309cf6e226d306df3609c1179b4c
[ "MIT" ]
null
null
null
backend/server_alpha/server_alpha_app/migrations/0004_auto_20180707_1544.py
dalmarcogd/challenge_ms
761f0a588b4c309cf6e226d306df3609c1179b4c
[ "MIT" ]
13
2020-06-05T18:26:43.000Z
2021-06-10T20:36:13.000Z
backend/server_alpha/server_alpha_app/migrations/0004_auto_20180707_1544.py
dalmarcogd/challenge_ms
761f0a588b4c309cf6e226d306df3609c1179b4c
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-07-07 18:44 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('server_alpha_app', '0003_auto_20180707_1542'), ] operations = [ migrations.RenameField( model_name='debtmodel', old_name='am...
19.684211
56
0.596257
bb945bfd5d77e0af1ad835a52f68f59ab05bde2e
5,705
py
Python
mqlab/oscilloscopes.py
riwoodward/mqlab
01914f9530cdeef9691040b65d666c9102603a07
[ "MIT" ]
1
2019-05-04T13:59:27.000Z
2019-05-04T13:59:27.000Z
mqlab/oscilloscopes.py
riwoodward/mqlab
01914f9530cdeef9691040b65d666c9102603a07
[ "MIT" ]
null
null
null
mqlab/oscilloscopes.py
riwoodward/mqlab
01914f9530cdeef9691040b65d666c9102603a07
[ "MIT" ]
null
null
null
""" Definition of oscilloscope interfacing commands. """ import numpy as np from mqlab.connections import Instrument class Oscilloscope(Instrument): pass class HP54616C(Oscilloscope): def run(self): """ Start the oscilloscope running - same as pressing the RUN button on the front pane...
47.14876
175
0.626819
1aac623eab06896cabd695038a88504cdc7d5096
289
py
Python
CraftMasterWeb/pages/admin.py
Athelios/CraftMaster
636cc60681d3199b3ae685690ee427fe81672541
[ "MIT" ]
8
2020-04-26T01:42:50.000Z
2021-12-27T06:16:30.000Z
CraftMasterWeb/pages/admin.py
Athelios/CraftMaster
636cc60681d3199b3ae685690ee427fe81672541
[ "MIT" ]
null
null
null
CraftMasterWeb/pages/admin.py
Athelios/CraftMaster
636cc60681d3199b3ae685690ee427fe81672541
[ "MIT" ]
5
2020-04-27T01:08:03.000Z
2021-12-27T06:16:32.000Z
from django.contrib import admin from .models import Page # Register your models here. # admin page settings for page models class PageAdmin(admin.ModelAdmin): list_display = ('title','update_date') ordering = ('title',) search_fields = ('title',) admin.site.register(Page)
22.230769
42
0.723183
93ead8b4ae5aede03cdb8529ab3ed3dd5f3ed87d
18,549
py
Python
recognition/arcface_torch/partial_fc.py
xpertdev/insightface
78654944d332573715c04ab5956761f5215d0f51
[ "MIT" ]
1
2021-10-31T09:02:34.000Z
2021-10-31T09:02:34.000Z
recognition/arcface_torch/partial_fc.py
xpertdev/insightface
78654944d332573715c04ab5956761f5215d0f51
[ "MIT" ]
null
null
null
recognition/arcface_torch/partial_fc.py
xpertdev/insightface
78654944d332573715c04ab5956761f5215d0f51
[ "MIT" ]
null
null
null
import collections from typing import Callable import torch from torch import distributed from torch.nn.functional import linear, normalize class PartialFC(torch.nn.Module): """ https://arxiv.org/abs/2203.15565 A distributed sparsely updating variant of the FC layer, named Partial FC (PFC). When sam...
36.585799
111
0.613995
55eefd7e0ad16fcd5ff125b0dc44ed1a071cd492
10,841
py
Python
tests/test_objectives.py
antonykamp/symfit
51896878b854f8b436943eef74044942c2502595
[ "MIT" ]
null
null
null
tests/test_objectives.py
antonykamp/symfit
51896878b854f8b436943eef74044942c2502595
[ "MIT" ]
null
null
null
tests/test_objectives.py
antonykamp/symfit
51896878b854f8b436943eef74044942c2502595
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2014-2020 Martin Roelfs # # SPDX-License-Identifier: MIT from __future__ import division, print_function import pytest import pickle import numpy as np from symfit import ( Variable, Parameter, parameters, Fit, Model, FitResults, variables, Idx, symbols, Sum, log, exp, cos, pi, ...
40.301115
100
0.670233
7950305db4e7bcbdc7503ab0f86c072a3287da1b
4,868
py
Python
docs/conf.py
lenarother/santa-helpers
0498b9922b357c98543929a39d9755085da527b0
[ "MIT" ]
null
null
null
docs/conf.py
lenarother/santa-helpers
0498b9922b357c98543929a39d9755085da527b0
[ "MIT" ]
null
null
null
docs/conf.py
lenarother/santa-helpers
0498b9922b357c98543929a39d9755085da527b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # santa_helpers documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. #...
29.865031
77
0.688989
e6038060a34794e4aa60802ec5015b41f9fbe4bd
3,891
py
Python
bv/__init__.py
codechenx/bv
fbe3fd8e0b76ee0b4f92744e01c274c52b820673
[ "MIT" ]
2
2019-03-07T04:18:14.000Z
2019-10-22T05:02:45.000Z
bv/__init__.py
codechenx/bv
fbe3fd8e0b76ee0b4f92744e01c274c52b820673
[ "MIT" ]
1
2019-03-07T04:18:05.000Z
2019-08-07T02:01:10.000Z
bv/__init__.py
codechenx/bv
fbe3fd8e0b76ee0b4f92744e01c274c52b820673
[ "MIT" ]
1
2019-10-26T12:43:01.000Z
2019-10-26T12:43:01.000Z
import argparse import gzip import os from . import vdtui from .error import * from .config import init_configure from .io import GeneralReader, ExcelReader from .ui import TableViewer from .utils import get_file_extension, get_simple_config, detect_file_sep, detect_file_encoding, trans_data def bv(): # initiali...
32.974576
107
0.631971
76c506d8859f8c3a2db8ff495d15a5584af13bb1
236
py
Python
apps/page/admin.py
vanderland/vdl_site
43b9ad3e5e7b9a2d35fc3cbb6a378cc8374699f1
[ "MIT" ]
null
null
null
apps/page/admin.py
vanderland/vdl_site
43b9ad3e5e7b9a2d35fc3cbb6a378cc8374699f1
[ "MIT" ]
null
null
null
apps/page/admin.py
vanderland/vdl_site
43b9ad3e5e7b9a2d35fc3cbb6a378cc8374699f1
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Page class PageAdmin(admin.ModelAdmin): list_display = ('title', 'body',) prepopulated_fields = {'slug': ('title',)} # new admin.site.register(Page, PageAdmin)
21.454545
54
0.673729
01b1a87f07f699c37f46afdcdbee6580141de4ab
63
py
Python
qcfractal/tests/__init__.py
ChayaSt/QCFractal
2d3c737b0e755d6e5bac743a0beb0714b5a92d0b
[ "BSD-3-Clause" ]
113
2018-08-04T20:33:41.000Z
2022-02-08T21:17:52.000Z
qcfractal/tests/__init__.py
ChayaSt/QCFractal
2d3c737b0e755d6e5bac743a0beb0714b5a92d0b
[ "BSD-3-Clause" ]
665
2018-08-04T14:16:53.000Z
2022-03-25T15:37:41.000Z
qcfractal/tests/__init__.py
ChayaSt/QCFractal
2d3c737b0e755d6e5bac743a0beb0714b5a92d0b
[ "BSD-3-Clause" ]
74
2018-08-28T04:37:04.000Z
2022-03-31T06:57:51.000Z
""" Init file for tests, blank to avoid automatic imports. """
15.75
54
0.698413
718e8a892372555a484bd17113dfe5c0411bf70a
4,064
py
Python
dm_control/entities/props/primitive.py
dingyiming0427/dm_control
4e9c3a0c91002ac49308faf6c61aa3ddad2ef548
[ "Apache-2.0" ]
75
2020-11-30T07:59:09.000Z
2022-03-30T21:26:53.000Z
dm_control/entities/props/primitive.py
dingyiming0427/dm_control
4e9c3a0c91002ac49308faf6c61aa3ddad2ef548
[ "Apache-2.0" ]
12
2021-02-02T09:03:44.000Z
2022-03-29T19:17:39.000Z
dm_control/entities/props/primitive.py
dingyiming0427/dm_control
4e9c3a0c91002ac49308faf6c61aa3ddad2ef548
[ "Apache-2.0" ]
18
2020-12-04T03:48:34.000Z
2022-03-21T15:10:08.000Z
# Copyright 2019 The dm_control 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 i...
35.964602
79
0.711368
50dfa5565800e3e4b8b3864fcc77dcf85df96567
499
py
Python
deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/EXT/misc_attribute.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/EXT/misc_attribute.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/EXT/misc_attribute.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import ctypes _...
31.1875
115
0.791583
5d493cc6346626f9dcd19c4f98584cb197acf507
1,688
py
Python
thumbnails/management/commands/delete_thumbnails.py
cosmoosic/django-thumbnails
91eef01c224e2f4a7e6b9f8c6ee8739a2911d408
[ "MIT" ]
23
2016-02-26T13:08:42.000Z
2022-03-27T11:39:35.000Z
thumbnails/management/commands/delete_thumbnails.py
cosmoosic/django-thumbnails
91eef01c224e2f4a7e6b9f8c6ee8739a2911d408
[ "MIT" ]
31
2015-01-28T03:03:11.000Z
2022-03-10T01:53:10.000Z
thumbnails/management/commands/delete_thumbnails.py
cosmoosic/django-thumbnails
91eef01c224e2f4a7e6b9f8c6ee8739a2911d408
[ "MIT" ]
18
2015-04-14T15:44:44.000Z
2022-01-26T08:57:50.000Z
from django.apps import apps from django.core.management.base import BaseCommand from thumbnails import images from thumbnails.backends import metadata, storage class Command(BaseCommand): """ Delete all thumbnails from a field. For example: python manage.py delete_thumbnails --model='accounts.Profile' -...
37.511111
98
0.625
82b2cd98bc3485d5f939894a026422875f95a1ed
1,261
py
Python
src/support/models.py
micha31r/The-Impossible
7a79dea3169907eb93107107f4003c5813de58dc
[ "MIT" ]
null
null
null
src/support/models.py
micha31r/The-Impossible
7a79dea3169907eb93107107f4003c5813de58dc
[ "MIT" ]
2
2020-04-15T03:57:42.000Z
2020-06-06T01:43:34.000Z
src/support/models.py
micha31r/The-Impossible
7a79dea3169907eb93107107f4003c5813de58dc
[ "MIT" ]
null
null
null
from django.db import models from usermgmt.models import Profile PUBLISH_OPTION = ( (1,"Private"), # For individual users (2,"Public"), # For the whole world (all users) !! Beware !! ) class Feedback(models.Model): author = models.ForeignKey( Profile, on_delete=models.CASCADE, ) description = models...
27.413043
71
0.757335
d29104a5b1a593bc083b73f35ce75fd2267cba26
10,213
py
Python
examples/classification_utils/dataloader_script.py
zchu-hit-scir/TextPruner
77871ce2bc525630d69c5bb4db48e68a2e532757
[ "Apache-2.0" ]
133
2021-12-16T17:44:50.000Z
2022-03-31T21:29:55.000Z
examples/classification_utils/dataloader_script.py
zchu-hit-scir/TextPruner
77871ce2bc525630d69c5bb4db48e68a2e532757
[ "Apache-2.0" ]
5
2021-12-21T07:02:45.000Z
2022-03-30T09:48:18.000Z
examples/classification_utils/dataloader_script.py
zchu-hit-scir/TextPruner
77871ce2bc525630d69c5bb4db48e68a2e532757
[ "Apache-2.0" ]
14
2021-12-17T06:40:34.000Z
2022-03-08T03:15:54.000Z
import logging logger = logging.getLogger(__name__) from torch.utils.data import SequentialSampler, DataLoader from transformers import XLMRobertaTokenizer import os import torch from torch.utils.data import TensorDataset, Dataset, ConcatDataset from typing import List import csv, json from io import open from datacl...
37.410256
163
0.609615
84e6272f214330ba49636c5003b748f1bf2ab25f
3,902
py
Python
MNIST_data_deep_neural.py
ShaunZac/Neural-Network
34f69f8f6daa0e0f9c85ebb19db401d436b1e346
[ "MIT" ]
1
2020-04-26T06:16:40.000Z
2020-04-26T06:16:40.000Z
MNIST_data_deep_neural.py
ShaunZac/MNIST-Neural-Network
34f69f8f6daa0e0f9c85ebb19db401d436b1e346
[ "MIT" ]
null
null
null
MNIST_data_deep_neural.py
ShaunZac/MNIST-Neural-Network
34f69f8f6daa0e0f9c85ebb19db401d436b1e346
[ "MIT" ]
1
2019-11-24T10:00:57.000Z
2019-11-24T10:00:57.000Z
# -*- coding: utf-8 -*- """ Created on Fri Apr 10 12:31:54 2020 @author: Shaun Zacharia """ import tensorflow as tf import numpy as np import pandas as pd import matplotlib.pyplot as plt from dnn_app_utils_v3 import * (train_set_x_orig, train_set_y), (test_set_x_orig, test_set_y) = tf.keras.datasets.mnist.load_data...
38.254902
131
0.682214
578727f515fe46ef5219bda5766c5eb59c7f97d2
37,251
py
Python
pandas/tseries/period.py
jaimefrio/pandas
d6a77007b247f3c218ecc38de8130e7d42e1d0e9
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
2
2016-02-10T12:57:21.000Z
2019-09-14T19:02:14.000Z
pandas/tseries/period.py
jaimefrio/pandas
d6a77007b247f3c218ecc38de8130e7d42e1d0e9
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/tseries/period.py
jaimefrio/pandas
d6a77007b247f3c218ecc38de8130e7d42e1d0e9
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# pylint: disable=E1101,E1103,W0232 from datetime import datetime, timedelta import numpy as np import pandas.tseries.frequencies as frequencies from pandas.tseries.frequencies import get_freq_code as _gfc from pandas.tseries.index import DatetimeIndex, Int64Index, Index from pandas.tseries.base import DatelikeOps, Dat...
34.587744
138
0.576629
e1ecc2cadbcf29098ca38149ca8a3fac6a20a6b5
3,504
py
Python
pyalad/test_setups.py
Shubhranshu-Shekhar/pyaad
e5ee52d2cbccf32f4150cf35190ad6e3815d918f
[ "MIT" ]
2
2019-03-18T02:10:09.000Z
2021-05-17T04:27:30.000Z
pyalad/test_setups.py
Shubhranshu-Shekhar/pyaad
e5ee52d2cbccf32f4150cf35190ad6e3815d918f
[ "MIT" ]
null
null
null
pyalad/test_setups.py
Shubhranshu-Shekhar/pyaad
e5ee52d2cbccf32f4150cf35190ad6e3815d918f
[ "MIT" ]
null
null
null
from results_support import * def setup_subdirs(opts): if not os.path.isdir(opts.cachedir): logger.debug("creating folder: %s" % (opts.cachedir,)) dir_create(opts.cachedir) resdir = os.path.join(opts.resultsdir, opts.detector_type_str()) if not os.path.isdir(resdir): logger.debug(...
35.393939
105
0.553082
91f2ba563cf86ed6d89c04ef825dbac353b84e30
3,133
py
Python
tests/parser/TestJson.py
dstore-dbap/LumberMill
b7cbadc209a83386871735b8ad88b61da917a6ab
[ "Apache-2.0" ]
15
2015-12-14T19:07:28.000Z
2022-02-28T13:32:11.000Z
tests/parser/TestJson.py
dstore-dbap/LumberMill
b7cbadc209a83386871735b8ad88b61da917a6ab
[ "Apache-2.0" ]
null
null
null
tests/parser/TestJson.py
dstore-dbap/LumberMill
b7cbadc209a83386871735b8ad88b61da917a6ab
[ "Apache-2.0" ]
4
2017-02-08T10:49:55.000Z
2019-03-19T18:47:46.000Z
import mock import json import lumbermill.utils.DictUtils as DictUtils from tests.ModuleBaseTestCase import ModuleBaseTestCase from lumbermill.parser import Json class TestJson(ModuleBaseTestCase): def setUp(self): super(TestJson, self).setUp(Json.Json(mock.Mock())) def testDecode(self): se...
46.073529
123
0.611235
d6b5a5bf8826baf55a216ce07fbdc3883d29d63e
199
py
Python
tests/ctr_slaves/scripts/conftest.py
ashoward/ipbus-firmware
c1df025403649203993c47158aa0da098c6f7c5f
[ "Apache-2.0" ]
24
2018-02-25T10:34:58.000Z
2022-03-28T17:35:11.000Z
tests/ctr_slaves/scripts/conftest.py
ashoward/ipbus-firmware
c1df025403649203993c47158aa0da098c6f7c5f
[ "Apache-2.0" ]
183
2017-02-24T16:27:53.000Z
2022-02-02T21:31:04.000Z
tests/ctr_slaves/scripts/conftest.py
ipbus-contrib/enclustra
634fe46caab57e360a2b426f8b41ffc2b166110f
[ "Apache-2.0" ]
28
2017-02-17T13:48:57.000Z
2022-01-31T13:44:12.000Z
import pytest def pytest_addoption(parser): parser.addoption('--client', type=str, help="Client URI", required=True) parser.addoption('--addr', type=str, help="Address table URI", required=True)
28.428571
78
0.738693
39e8251e6247690e80e189b7da23372f14578e59
7,433
py
Python
HT.py
dq-liu/Sentiment_Analysis
88738bb68587baf398d215159c32a002d57adbdc
[ "Apache-2.0" ]
null
null
null
HT.py
dq-liu/Sentiment_Analysis
88738bb68587baf398d215159c32a002d57adbdc
[ "Apache-2.0" ]
null
null
null
HT.py
dq-liu/Sentiment_Analysis
88738bb68587baf398d215159c32a002d57adbdc
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # ## Logic: # # #### - compute attention scores # #### - derive sentiment score lexicon # #### - compute tf-idf # #### - derive sentence-level sentiment scores # #### - carry out t-tests # # # #### *References # # https://nlp.stanford.edu/projects/socialsent/ # # https://nlp.stanford.edu/pub...
34.09633
1,784
0.625992
20d46f3380844cb3c5deab5646edb97b98805a56
99
py
Python
tests/test_pyqt_feedback_flow.py
firefly-cpp/pyqt-feedback-flow
d7124a9f3f3237724b686e5fd772071e59541254
[ "MIT" ]
null
null
null
tests/test_pyqt_feedback_flow.py
firefly-cpp/pyqt-feedback-flow
d7124a9f3f3237724b686e5fd772071e59541254
[ "MIT" ]
8
2022-02-01T13:44:20.000Z
2022-03-09T20:19:03.000Z
tests/test_pyqt_feedback_flow.py
firefly-cpp/pyqt-feedback-flow
d7124a9f3f3237724b686e5fd772071e59541254
[ "MIT" ]
1
2022-02-01T12:20:51.000Z
2022-02-01T12:20:51.000Z
from pyqt_feedback_flow import __version__ def test_version(): assert __version__ == '0.1.6'
16.5
42
0.747475
b3a7b7dcf16011273123655efaf31867f1a0f873
1,087
py
Python
tigercontrol/utils/optimizers/tests/test_ons.py
MinRegret/TigerControl
b1ca0617cbb2198f9d5cb37f725f3d7accbab08f
[ "Apache-2.0" ]
31
2019-11-08T06:01:54.000Z
2021-11-20T04:50:43.000Z
tigercontrol/utils/optimizers/tests/test_ons.py
johnhallman/ctsb
b1ca0617cbb2198f9d5cb37f725f3d7accbab08f
[ "Apache-2.0" ]
32
2019-06-27T15:05:04.000Z
2019-08-07T04:23:47.000Z
tigercontrol/utils/optimizers/tests/test_ons.py
MinRegret/tigercontrol
b1ca0617cbb2198f9d5cb37f725f3d7accbab08f
[ "Apache-2.0" ]
3
2020-09-30T17:06:50.000Z
2021-04-12T22:39:34.000Z
import tigercontrol from tigercontrol.utils.optimizers.ons import ONS from tigercontrol.utils.optimizers.losses import mse import matplotlib.pyplot as plt def test_ons(show=False): environment = tigercontrol.environment('LDS') x = environment.reset(p=2,q=0) controller = tigercontrol.controllers('LSTM') ...
28.605263
96
0.676173
d512168bbbd9f4e9284bc9e20c73a4ce8b9cf77f
18,716
py
Python
hqc/hqc.py
leockl/helstrom-quantum-centroid-classifier
9f5d056e98c255aa0bbc9e22ffea6c66627c3189
[ "BSD-3-Clause" ]
7
2020-01-25T02:43:41.000Z
2021-10-21T21:17:03.000Z
hqc/hqc.py
leockl/helstrom-quantum-centroid-classifier
9f5d056e98c255aa0bbc9e22ffea6c66627c3189
[ "BSD-3-Clause" ]
1
2020-01-27T07:15:44.000Z
2020-01-27T07:16:03.000Z
hqc/hqc.py
leockl/helstrom-quantum-centroid-classifier
9f5d056e98c255aa0bbc9e22ffea6c66627c3189
[ "BSD-3-Clause" ]
2
2020-01-27T07:14:17.000Z
2020-12-17T08:04:22.000Z
import numpy as np from sklearn.base import BaseEstimator, ClassifierMixin from sklearn.utils.validation import check_X_y, check_array, check_is_fitted from sklearn.utils.multiclass import check_classification_targets from sklearn.preprocessing import normalize from joblib import Parallel, delayed class HQC(Bas...
48.866841
105
0.55856
51dfa7d84503bf72cf64bfc6e706f9af6914328b
2,937
py
Python
src/urlcache.py
blacktop/asahi-installer
0025c8ad78bad3d7e823fcca14f5f928ac30dd06
[ "MIT" ]
1
2021-08-12T18:22:40.000Z
2021-08-12T18:22:40.000Z
src/urlcache.py
andy9a9/asahi-installer
9e1ed3e68cee9572de3170b42249afe43ca879e5
[ "MIT" ]
null
null
null
src/urlcache.py
andy9a9/asahi-installer
9e1ed3e68cee9572de3170b42249afe43ca879e5
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT import os, sys from dataclasses import dataclass from urllib import request @dataclass class CacheBlock: idx: int data: bytes class URLCache: CACHESIZE = 32 BLOCKSIZE = 1 * 1024 * 1024 READAHEAD = 10 def __init__(self, url): self.url = url s...
24.889831
88
0.533538
48bcdc5b2ea8c6b98fb3af8157f423230f27d853
4,257
py
Python
test/functional/rpc_net.py
QRAX-LABS/QRAX
951ed45d473b7ab8c74bf35ff794e97169736d0c
[ "MIT" ]
2
2021-12-29T14:10:03.000Z
2022-02-19T09:24:37.000Z
test/functional/rpc_net.py
QRAX-LABS/QRAX
951ed45d473b7ab8c74bf35ff794e97169736d0c
[ "MIT" ]
null
null
null
test/functional/rpc_net.py
QRAX-LABS/QRAX
951ed45d473b7ab8c74bf35ff794e97169736d0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 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 RPC calls related to net. Tests correspond to code in rpc/net.cpp. """ from test_framework.test_frame...
42.57
134
0.687808
9b68698f4221b2bafb24512ca2c5213b010e05a9
1,730
py
Python
adv/summer_cleo.py
buffelisanne/dl
61f036d5c131e2f3b17b47dc256e0387abe8f577
[ "Apache-2.0" ]
null
null
null
adv/summer_cleo.py
buffelisanne/dl
61f036d5c131e2f3b17b47dc256e0387abe8f577
[ "Apache-2.0" ]
null
null
null
adv/summer_cleo.py
buffelisanne/dl
61f036d5c131e2f3b17b47dc256e0387abe8f577
[ "Apache-2.0" ]
null
null
null
from core.advbase import * from slot.a import * def module(): return Summer_Cleo class Summer_Cleo(Adv): comment = 'nofs' a3 = ('k_paralysis',0.3) conf = {} conf['slots.a'] = RR()+Spirit_of_the_Season() conf['acl'] = """ `dragon `s2 `s1 `s3 ...
27.460317
83
0.560116
036b8c16fd00cb277b1108307ce530588c7ccc46
688
py
Python
util/tests/cython/test_generic.py
fibersel/catboost
585e63b766867989acd2100fb2fd2e6ff81e7cc0
[ "Apache-2.0" ]
2
2021-01-29T04:27:28.000Z
2021-01-29T04:28:27.000Z
util/tests/cython/test_generic.py
birichie/catboost
de75c6af12cf490700e76c22072fbdc15b35d679
[ "Apache-2.0" ]
1
2021-12-09T23:08:25.000Z
2021-12-09T23:08:25.000Z
util/tests/cython/test_generic.py
birichie/catboost
de75c6af12cf490700e76c22072fbdc15b35d679
[ "Apache-2.0" ]
1
2021-04-27T23:40:09.000Z
2021-04-27T23:40:09.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, absolute_import, division from util.generic.hash_ut import TestHash from util.generic.maybe_ut import TestMaybe from util.generic.ptr_ut import TestHolder from util.generic.string_ut import TestStroka from util.generic.vector_ut import TestVector from uti...
26.461538
64
0.761628
88fcbdec2f9d3142a9bac697fa575b3be1ef6fcc
938
py
Python
profilehist.py
MicroGamerConsole/arduboy3d
b0c7f65bff06ebd7530ce2c7473dc47413c4bd10
[ "MIT" ]
25
2016-12-23T09:39:37.000Z
2021-04-18T22:01:11.000Z
profilehist.py
MicroGamerConsole/arduboy3d
b0c7f65bff06ebd7530ce2c7473dc47413c4bd10
[ "MIT" ]
1
2021-01-22T16:43:38.000Z
2021-01-23T06:47:47.000Z
profilehist.py
MicroGamerConsole/arduboy3d
b0c7f65bff06ebd7530ce2c7473dc47413c4bd10
[ "MIT" ]
9
2017-09-17T12:54:41.000Z
2022-03-17T18:28:10.000Z
import sys import numpy as np from collections import defaultdict def DumpHistogram(h): f = open("hist.txt", 'w') for addr in sorted(h.keys()): print >>f, hex(addr), h[addr] f.close() def CollectSamples(infile): histogram = defaultdict(int) checkpointctr = 0 while True: buf =...
25.351351
80
0.561834
b9361757b571d441d3e0ee6f974f10bdbd06ee03
257
py
Python
pjsip/tests/pjsua/scripts-media-playrec/100_resample_lf_8_16.py
tomorrow-rain/pjsip
776e032c4ee2672cd42b8c665021b1310181d126
[ "MIT" ]
null
null
null
pjsip/tests/pjsua/scripts-media-playrec/100_resample_lf_8_16.py
tomorrow-rain/pjsip
776e032c4ee2672cd42b8c665021b1310181d126
[ "MIT" ]
null
null
null
pjsip/tests/pjsua/scripts-media-playrec/100_resample_lf_8_16.py
tomorrow-rain/pjsip
776e032c4ee2672cd42b8c665021b1310181d126
[ "MIT" ]
null
null
null
# $Id$ # from inc_cfg import * # simple test test_param = TestParam( "Resample (large filter) 8 KHZ to 16 KHZ", [ InstanceParam("endpt", "--null-audio --quality 10 --clock-rate 16000 --play-file wavs/input.8.wav --rec-file wavs/tmp.16.wav") ] )
21.416667
129
0.653696
a5f5b0587462f914d6bcfeb126649ef486a9684e
4,986
py
Python
ale/drivers/dawn_drivers.py
jlaura/ale
fd964a8ce94bdd8aed944547442e9d17d0b5ca61
[ "Unlicense" ]
null
null
null
ale/drivers/dawn_drivers.py
jlaura/ale
fd964a8ce94bdd8aed944547442e9d17d0b5ca61
[ "Unlicense" ]
null
null
null
ale/drivers/dawn_drivers.py
jlaura/ale
fd964a8ce94bdd8aed944547442e9d17d0b5ca61
[ "Unlicense" ]
null
null
null
import pvl import ale from ale import config from ale.base import Driver from ale.base.data_naif import NaifSpice from ale.base.label_pds3 import Pds3Label from ale.base.type_sensor import Framer class DawnFcPds3NaifSpiceDriver(Pds3Label, Driver, Framer, NaifSpice): """ Dawn driver for generating an ISD from...
31.1625
88
0.587044
c8c418cc587bd633a76198e0ab16be4b49b2726f
21,571
py
Python
test/cpython/test_copy.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/cpython/test_copy.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/cpython/test_copy.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
"""Unit tests for the copy module.""" import copy import copy_reg import weakref import unittest from test import test_support class TestCopy(unittest.TestCase): # Attempt full line coverage of copy.py from top to bottom def test_exceptions(self): self.assertTrue(copy.Error is copy.error) s...
30.253857
76
0.525891
924c2c909de206993ab432fdd18a37d9c405d7a4
277
py
Python
download_data.py
DeepLearnI/cifar-demo
ffedc54b88ff590ba9ba5600be940338fae16abc
[ "Apache-2.0" ]
null
null
null
download_data.py
DeepLearnI/cifar-demo
ffedc54b88ff590ba9ba5600be940338fae16abc
[ "Apache-2.0" ]
null
null
null
download_data.py
DeepLearnI/cifar-demo
ffedc54b88ff590ba9ba5600be940338fae16abc
[ "Apache-2.0" ]
null
null
null
import tensorflow import numpy as np # load and preprocess data (x_train, y_train), (x_test, y_test) = tensorflow.keras.datasets.cifar10.load_data() np.save('data/x_train', x_train) np.save('data/y_train', y_train) np.save('data/x_test', x_test) np.save('data/y_test', y_test)
30.777778
84
0.754513