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
8122f2b68bfa38f9ba76a6e17b31b28ed8249abd
3,718
py
Python
stable_baselines/common/mpi_running_mean_std.py
allogn/stable-baselines
ea1162638d4ab1df7deeca61dac3308054931233
[ "MIT" ]
null
null
null
stable_baselines/common/mpi_running_mean_std.py
allogn/stable-baselines
ea1162638d4ab1df7deeca61dac3308054931233
[ "MIT" ]
null
null
null
stable_baselines/common/mpi_running_mean_std.py
allogn/stable-baselines
ea1162638d4ab1df7deeca61dac3308054931233
[ "MIT" ]
null
null
null
import mpi4py import tensorflow as tf import numpy as np import stable_baselines.common.tf_util as tf_util class RunningMeanStd(object): def __init__(self, epsilon=1e-2, shape=()): """ calulates the running mean and std of a data stream https://en.wikipedia.org/wiki/Algorithms_for_calcula...
35.075472
108
0.579613
3a824a04a6e6edae3a6bf723ba9c7ebdf14b9e43
3,436
py
Python
contrib/performance/loadtest/trafficlogger.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
contrib/performance/loadtest/trafficlogger.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
contrib/performance/loadtest/trafficlogger.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2011-2015 Apple 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 applicable l...
29.367521
78
0.697031
b94e379d662ad93ed81e27699a584bfb7e876480
2,859
py
Python
tests/terminals.py
vovanz/invoke
ba1f2742837d51f04e229a8d1f8c0d4d132833fc
[ "BSD-2-Clause" ]
null
null
null
tests/terminals.py
vovanz/invoke
ba1f2742837d51f04e229a8d1f8c0d4d132833fc
[ "BSD-2-Clause" ]
null
null
null
tests/terminals.py
vovanz/invoke
ba1f2742837d51f04e229a8d1f8c0d4d132833fc
[ "BSD-2-Clause" ]
null
null
null
# Skip on Windows CI, it may blow up on one of these from invoke.terminals import WINDOWS import pytest pytestmark = pytest.mark.skipif( WINDOWS, reason="Low level terminal tests only work well on POSIX" ) import fcntl import termios from mock import Mock, patch from pytest import skip from invoke.terminals impo...
35.296296
75
0.613501
524335bc558a1af0298af9bfc1637adf1e41a3d3
1,181
py
Python
tools/perf/measurements/polymer_load.py
aranajhonny/chromium
caf5bcb822f79b8997720e589334266551a50a13
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-01-16T03:57:39.000Z
2019-01-16T03:57:39.000Z
tools/perf/measurements/polymer_load.py
aranajhonny/chromium
caf5bcb822f79b8997720e589334266551a50a13
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
tools/perf/measurements/polymer_load.py
aranajhonny/chromium
caf5bcb822f79b8997720e589334266551a50a13
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import page from telemetry.page import page_measurement from telemetry.value import scalar class PageForPolymerLoad(page.Page): def ...
32.805556
72
0.72735
9b3ffa203380bc0db81387724dec29bf915a1269
1,244
py
Python
code_examples/python_generator/parse_cdp_file.py
emilgaripov/emilgaripov.github.io
b0e4bf353cca894ec0199a73e71dc4f963e559a8
[ "MIT" ]
18
2017-02-19T15:58:54.000Z
2022-02-13T22:15:19.000Z
code_examples/python_generator/parse_cdp_file.py
emilgaripov/emilgaripov.github.io
b0e4bf353cca894ec0199a73e71dc4f963e559a8
[ "MIT" ]
3
2020-02-26T14:42:54.000Z
2021-09-28T00:32:23.000Z
code_examples/python_generator/parse_cdp_file.py
emilgaripov/emilgaripov.github.io
b0e4bf353cca894ec0199a73e71dc4f963e559a8
[ "MIT" ]
27
2017-05-03T15:38:41.000Z
2022-02-08T02:53:38.000Z
import re from pprint import pprint def get_cdp_neighbor(sh_cdp_neighbor_detail): with open(sh_cdp_neighbor_detail) as f: line = '' while True: while not 'Device ID' in line: line = f.readline() neighbor = '' neighbor += line for line ...
24.88
74
0.538585
ceeb58e18ed81e3df8bfd2a4d77dd3abc779b938
9,447
py
Python
parser/utils/field.py
ironsword666/CWS
83f86e726191125d81833829e4ddf4dd004b937d
[ "MIT" ]
null
null
null
parser/utils/field.py
ironsword666/CWS
83f86e726191125d81833829e4ddf4dd004b937d
[ "MIT" ]
null
null
null
parser/utils/field.py
ironsword666/CWS
83f86e726191125d81833829e4ddf4dd004b937d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from collections import Counter from parser.utils.vocab import Vocab from parser.utils.fn import tohalfwidth from parser.utils.common import bos, eos import torch class RawField(object): def __init__(self, name, fn=None): super(RawField, self).__init__() self.name = name...
34.988889
89
0.566529
60db17fc9ef7ec95553064150cc0129c7c1bdcf1
5,539
py
Python
TEST/BETAsite/RUN_SQEP.py
takehuge/PYQUM
bfc9d9b1c2f4246c7aac3a371baaf587c99f8069
[ "MIT" ]
null
null
null
TEST/BETAsite/RUN_SQEP.py
takehuge/PYQUM
bfc9d9b1c2f4246c7aac3a371baaf587c99f8069
[ "MIT" ]
null
null
null
TEST/BETAsite/RUN_SQEP.py
takehuge/PYQUM
bfc9d9b1c2f4246c7aac3a371baaf587c99f8069
[ "MIT" ]
null
null
null
from numpy import sqrt, array, mean, sum, min, max from pyqum.instrument.logger import set_status from pyqum.instrument.toolbox import waveform, gotocdata from pyqum.instrument.analyzer import curve, IQAParray # 3. Test Square-wave Pulsing from pyqum.directive.characterize import SQE_Pulse # Set RUN mode: set_stat...
58.305263
186
0.6039
a7eca502c9ff98729f4c4db202f212d9c501b3be
11,219
py
Python
slimta/relay/smtp/client.py
fisele/compare-slimta
4a59bd8e0d0b01551ed6d045b7e008846c8b4a80
[ "MIT" ]
null
null
null
slimta/relay/smtp/client.py
fisele/compare-slimta
4a59bd8e0d0b01551ed6d045b7e008846c8b4a80
[ "MIT" ]
null
null
null
slimta/relay/smtp/client.py
fisele/compare-slimta
4a59bd8e0d0b01551ed6d045b7e008846c8b4a80
[ "MIT" ]
null
null
null
# Copyright (c) 2012 Ian C. Good # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distrib...
35.169279
79
0.611017
daf06add899ebe9ebfd88d41af3dd325f3202606
1,208
py
Python
airflow/contrib/sensors/sagemaker_transform_sensor.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
airflow/contrib/sensors/sagemaker_transform_sensor.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
airflow/contrib/sensors/sagemaker_transform_sensor.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.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...
40.266667
104
0.778146
17bd47ef05cd906768fdec80b041f4c0465f9f16
2,724
py
Python
tests/test_eddb_systems.py
kominetz/elite-tools
5cefef9b45027b10479ccef8bdcdc94914245c43
[ "Apache-2.0" ]
2
2020-08-17T17:23:58.000Z
2020-08-17T17:38:48.000Z
tests/test_eddb_systems.py
kominetz/elite-tools
5cefef9b45027b10479ccef8bdcdc94914245c43
[ "Apache-2.0" ]
30
2020-05-06T16:25:10.000Z
2021-12-25T15:08:31.000Z
tests/test_eddb_systems.py
kominetz/elite-tools
5cefef9b45027b10479ccef8bdcdc94914245c43
[ "Apache-2.0" ]
null
null
null
import pytest import pandas as pd from elitetools import eddb from elitetools.eddb import find_system_by_name, query_systems_by_name, query_nearby_systems, query_systems_by_faction, load_feeds def setup_module(): load_feeds() class TestFindSystemByName: def test(self): sol_system = find_system_b...
34.923077
130
0.664097
b5132482a1a83f712f4bc812f5074170ab875cd3
7,979
py
Python
authtools/forms.py
tamiryspino/django-authtools
cfb4878c0c835c0877c0726cb023cf55d507e36c
[ "BSD-2-Clause" ]
null
null
null
authtools/forms.py
tamiryspino/django-authtools
cfb4878c0c835c0877c0726cb023cf55d507e36c
[ "BSD-2-Clause" ]
null
null
null
authtools/forms.py
tamiryspino/django-authtools
cfb4878c0c835c0877c0726cb023cf55d507e36c
[ "BSD-2-Clause" ]
null
null
null
from __future__ import unicode_literals from django import forms, VERSION as DJANGO_VERSION from django.forms.utils import flatatt from django.contrib.auth.forms import ( ReadOnlyPasswordHashField, ReadOnlyPasswordHashWidget, PasswordResetForm as OldPasswordResetForm, UserChangeForm as DjangoUserChangeForm...
38.73301
97
0.673393
38b7cf2fa10b5648af47c7a2310b434b1cbb3b50
70,389
py
Python
tests/Node.py
kushnirenko/remprotocol
ec450227a40bb18527b473266b07b982efc1d093
[ "MIT" ]
null
null
null
tests/Node.py
kushnirenko/remprotocol
ec450227a40bb18527b473266b07b982efc1d093
[ "MIT" ]
null
null
null
tests/Node.py
kushnirenko/remprotocol
ec450227a40bb18527b473266b07b982efc1d093
[ "MIT" ]
null
null
null
import copy import decimal import subprocess import time import os import re import datetime import json import signal from core_symbol import CORE_SYMBOL from testUtils import Utils from testUtils import Account from testUtils import EnumType from testUtils import addEnum from testUtils import unhandledEnumType from ...
44.103383
208
0.617866
4f947e6d8d47067ef3f72e026b1c63cd677cfdf9
524
py
Python
djangoapp_sample/urls.py
sveetch/sveetch-djangoapp-sample
19e3a03208aade78449d6617f09e830c235012f7
[ "MIT" ]
null
null
null
djangoapp_sample/urls.py
sveetch/sveetch-djangoapp-sample
19e3a03208aade78449d6617f09e830c235012f7
[ "MIT" ]
null
null
null
djangoapp_sample/urls.py
sveetch/sveetch-djangoapp-sample
19e3a03208aade78449d6617f09e830c235012f7
[ "MIT" ]
1
2021-04-18T21:20:37.000Z
2021-04-18T21:20:37.000Z
""" Application URLs """ from django.urls import path, include from .views import ( BlogIndexView, BlogDetailView, ArticleDetailView, ) from .routers import router app_name = "djangoapp_sample" urlpatterns = [ path("", BlogIndexView.as_view(), name="blog-index"), path("api/", include(router.urls)),...
20.153846
73
0.650763
6b6e64b0c8ad04ca822a0e3973f4d0287c677695
199
py
Python
python201/__init__.py
glentner/python-102
ccf506296bb6ac2a3bbe5c8b1cb64909837660d6
[ "MIT" ]
5
2020-07-27T19:59:23.000Z
2022-03-27T18:39:29.000Z
python201/__init__.py
lgorenstein/python201
ccf506296bb6ac2a3bbe5c8b1cb64909837660d6
[ "MIT" ]
2
2020-07-26T17:51:02.000Z
2020-07-27T16:20:04.000Z
python201/__init__.py
lgorenstein/python201
ccf506296bb6ac2a3bbe5c8b1cb64909837660d6
[ "MIT" ]
4
2020-07-25T23:31:06.000Z
2020-07-27T02:38:44.000Z
# SPDX-FileCopyrightText: 2019-2021 Python201 Contributors # SPDX-License-Identifier: MIT """python201 package initialization.""" # internal libs from .core import logging # force initialization
22.111111
58
0.78392
31e1dc171d22863aeee8b0aaa928819b3b1d814e
9,302
py
Python
test/jit/test_autodiff_subgraph_slicing.py
mrTsjolder/pytorch
778f9eab6c036964d6dbca06549fb138f1e21c67
[ "Intel" ]
1
2021-04-11T08:27:46.000Z
2021-04-11T08:27:46.000Z
test/jit/test_autodiff_subgraph_slicing.py
mrTsjolder/pytorch
778f9eab6c036964d6dbca06549fb138f1e21c67
[ "Intel" ]
1
2022-01-18T12:17:29.000Z
2022-01-18T12:17:29.000Z
test/jit/test_autodiff_subgraph_slicing.py
mrTsjolder/pytorch
778f9eab6c036964d6dbca06549fb138f1e21c67
[ "Intel" ]
2
2021-07-02T10:18:21.000Z
2021-08-18T10:10:28.000Z
import os import sys import unittest from torch.testing._internal.common_utils import GRAPH_EXECUTOR, ProfilingMode, enable_profiling_mode_for_profiling_tests import torch # Make the helper files in test/ importable pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.append(pytorch...
36.912698
121
0.56203
e532ed41955cac513ad624688b323946500b1296
27,242
py
Python
beets/dbcore/query.py
Kraymer/beets
e7ea7ab5f22342136b2a8f038bbbac19a0c66555
[ "MIT" ]
null
null
null
beets/dbcore/query.py
Kraymer/beets
e7ea7ab5f22342136b2a8f038bbbac19a0c66555
[ "MIT" ]
null
null
null
beets/dbcore/query.py
Kraymer/beets
e7ea7ab5f22342136b2a8f038bbbac19a0c66555
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Adrian Sampson. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation t...
31.348677
79
0.607004
52c815b7c2f8028a5b1b366811f6f95ba6994b4f
3,290
py
Python
samples/reservation/reservation.py
RedShiftCompany/flask-ask
82d092152993e2a9e7faa4181ce0598d5d77dd1b
[ "Apache-2.0" ]
null
null
null
samples/reservation/reservation.py
RedShiftCompany/flask-ask
82d092152993e2a9e7faa4181ce0598d5d77dd1b
[ "Apache-2.0" ]
1
2020-04-20T19:40:46.000Z
2020-04-20T19:40:46.000Z
samples/reservation/reservation.py
RedShiftCompany/flask-ask
82d092152993e2a9e7faa4181ce0598d5d77dd1b
[ "Apache-2.0" ]
null
null
null
import logging import datetime from flask import Flask import sys sys.path.append('lib/flask_ask') from flask_ask import Ask, statement, question, session, state app = Flask(__name__) ask = Ask(app, '/') logging.getLogger("flask_ask").setLevel(logging.DEBUG) @ask.launch def welcome(): state.transition('captu...
26.967213
93
0.735562
f8069f4bc155684f08b4d3206e264bc6d6f6f21a
785
py
Python
mock_serial.py
TUhybridlab/vj-servo-controller
685a93d4b0daddc847ae0177528c527e0d840cc3
[ "MIT" ]
null
null
null
mock_serial.py
TUhybridlab/vj-servo-controller
685a93d4b0daddc847ae0177528c527e0d840cc3
[ "MIT" ]
null
null
null
mock_serial.py
TUhybridlab/vj-servo-controller
685a93d4b0daddc847ae0177528c527e0d840cc3
[ "MIT" ]
null
null
null
import logging from time import sleep MESSAGE = '600 1' class MockSerial(object): def __init__(self): self.log = logging.getLogger(MockSerial.__name__) self.is_open = True self.log.error("Serial running on mock!") def read(self): sleep(0.02) return '#' def readlin...
24.53125
80
0.616561
5b34707c1b5292add3799a0c82dfb729afd88bae
7,441
py
Python
dsenum/converter.py
lan496/dsenum
24412c20737bdaf20179afabb49ff407cb92e880
[ "MIT" ]
null
null
null
dsenum/converter.py
lan496/dsenum
24412c20737bdaf20179afabb49ff407cb92e880
[ "MIT" ]
15
2019-01-21T07:30:36.000Z
2020-08-14T10:58:24.000Z
dsenum/converter.py
lan496/dsenum
24412c20737bdaf20179afabb49ff407cb92e880
[ "MIT" ]
null
null
null
from itertools import product from typing import List, Optional, Tuple, Union, cast import numpy as np from dsenum.site import CanonicalSite, DerivativeSite from dsenum.smith_normal_form import smith_normal_form from dsenum.utils import cast_integer_matrix """ hash_frac_coords ravel_can...
36.836634
98
0.627335
4fe352dc5c9f3c9d9b5ca3a9ae3d2ba489a55e37
1,959
py
Python
python/baseline/train.py
pk1601cs33/baseline
3cbe990533dad15e67018b4e529d26845574fb67
[ "Apache-2.0" ]
2
2018-07-06T02:01:12.000Z
2018-07-06T02:01:14.000Z
python/baseline/train.py
ZhenyueChin/baseline
3aad1addfedad3b2ce2c78bab95855c0d41a5c93
[ "Apache-2.0" ]
null
null
null
python/baseline/train.py
ZhenyueChin/baseline
3aad1addfedad3b2ce2c78bab95855c0d41a5c93
[ "Apache-2.0" ]
null
null
null
import time from baseline.utils import create_user_trainer, export __all__ = [] exporter = export(__all__) @exporter class Trainer(object): def __init__(self): self.train_epochs = 0 self.valid_epochs = 0 pass def test(self, loader, reporting_fns): pass def train(self, lo...
26.472973
107
0.632976
4d01c485351119a7687fba09aa1462c0a060f413
204
py
Python
FreeCodeCamp.org/IfStatementAndComparison.py
MizaN13/PythonAbc
db8aa05497a6a1bf3eafcfdd6c31880b57e509fb
[ "MIT" ]
null
null
null
FreeCodeCamp.org/IfStatementAndComparison.py
MizaN13/PythonAbc
db8aa05497a6a1bf3eafcfdd6c31880b57e509fb
[ "MIT" ]
null
null
null
FreeCodeCamp.org/IfStatementAndComparison.py
MizaN13/PythonAbc
db8aa05497a6a1bf3eafcfdd6c31880b57e509fb
[ "MIT" ]
null
null
null
def max_num(num1, num2, num3): if num1 >= num2 and num1 >= num3: return num1 elif num2 >= num1 and num2 >= num3: return num2 else: return num3 print(max_num(3, 45, 5))
22.666667
39
0.568627
9f3087562e326eb4b0b0cc4627694d7b9845ddcb
70
py
Python
stores/__init__.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
13
2020-07-08T17:23:18.000Z
2022-02-13T09:19:42.000Z
stores/__init__.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
16
2020-07-19T22:14:20.000Z
2022-03-24T02:57:45.000Z
stores/__init__.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
6
2020-07-21T01:37:54.000Z
2022-01-01T19:28:54.000Z
from .django_cache import DjangoCache from .omnistone import Omnistone
35
37
0.871429
15e8ffddbace6d921ebaa3c384dcd8fa8b5d864a
130
py
Python
env/apolo/apps/Usuario/admin.py
XeresRed/Apolo
ab76f14abae89e59a8212cb9334134980719b989
[ "MIT" ]
null
null
null
env/apolo/apps/Usuario/admin.py
XeresRed/Apolo
ab76f14abae89e59a8212cb9334134980719b989
[ "MIT" ]
null
null
null
env/apolo/apps/Usuario/admin.py
XeresRed/Apolo
ab76f14abae89e59a8212cb9334134980719b989
[ "MIT" ]
null
null
null
from django.contrib import admin from apps.Usuario import models # Register your models here. admin.site.register(models.Persona)
26
35
0.823077
1978b7ccf23574069bfa1e8174c7dfbe2315ce78
575
py
Python
util/test/test_Constants.py
JohannSuarez/tokenspice
d791d8821078fe1156c62632c4bbe533c15b3d96
[ "Apache-2.0" ]
26
2020-11-20T15:28:09.000Z
2021-07-25T20:24:55.000Z
util/test/test_Constants.py
JohannSuarez/tokenspice
d791d8821078fe1156c62632c4bbe533c15b3d96
[ "Apache-2.0" ]
13
2021-06-16T14:06:08.000Z
2021-07-27T17:25:54.000Z
util/test/test_Constants.py
JohannSuarez/tokenspice
d791d8821078fe1156c62632c4bbe533c15b3d96
[ "Apache-2.0" ]
7
2021-02-19T01:04:16.000Z
2021-07-22T11:50:18.000Z
from util.constants import * def testINF(): assert (INF > 1.0) def testSeconds(): assert (0 < S_PER_MIN < S_PER_HOUR < S_PER_DAY < S_PER_WEEK < S_PER_MONTH < S_PER_YEAR) assert S_PER_HOUR == (60 * 60) assert S_PER_WEEK == (60 * 6...
23.958333
45
0.586087
add69553fb275373da8737cd58a1389ae7c84047
3,566
py
Python
twnews/common.py
zuxfoucault/twnews
ace7d81d3fdca4e04b0f7edf827a92a45830540d
[ "MIT" ]
1
2019-09-07T06:46:47.000Z
2019-09-07T06:46:47.000Z
twnews/common.py
zuxfoucault/twnews
ace7d81d3fdca4e04b0f7edf827a92a45830540d
[ "MIT" ]
null
null
null
twnews/common.py
zuxfoucault/twnews
ace7d81d3fdca4e04b0f7edf827a92a45830540d
[ "MIT" ]
null
null
null
""" twnews 共用項目 """ import json import os import os.path import logging import logging.config import socket import requests # pylint: disable=global-statement __LOGGER_LOADED = False __ALLCONF = None __SESSION = { "direct": None, "proxy": None } VERSION = '0.3.3' def found_socks5(): """ 檢查是否有 SOCKS...
23.615894
95
0.593382
59f6953b6919d842412a7bcad2208bf5a4f884b0
7,644
py
Python
hackday/teams/views.py
mpirnat/hackday
82a13665e2d93c80d6dfb1a1d5602495d01a243e
[ "MIT" ]
4
2015-05-21T19:44:09.000Z
2019-12-03T11:07:03.000Z
hackday/teams/views.py
mpirnat/hackday
82a13665e2d93c80d6dfb1a1d5602495d01a243e
[ "MIT" ]
3
2020-02-11T21:47:49.000Z
2021-06-10T17:28:44.000Z
hackday/teams/views.py
mpirnat/hackday
82a13665e2d93c80d6dfb1a1d5602495d01a243e
[ "MIT" ]
2
2016-01-05T13:39:09.000Z
2017-02-19T09:31:58.000Z
from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.shortcuts import render from django.utils.decorators import method_decorator from django.views.generic import CreateView from django.views.generic import Detail...
33.234783
87
0.637101
136a0383d17086626661b3873898ec6cc05f834d
121,224
py
Python
corporate/tests/test_stripe.py
preetmishra/zulip
cc9dc07b079503a206831bef91e1a5175b8fb64c
[ "Apache-2.0" ]
null
null
null
corporate/tests/test_stripe.py
preetmishra/zulip
cc9dc07b079503a206831bef91e1a5175b8fb64c
[ "Apache-2.0" ]
null
null
null
corporate/tests/test_stripe.py
preetmishra/zulip
cc9dc07b079503a206831bef91e1a5175b8fb64c
[ "Apache-2.0" ]
null
null
null
import json import operator import os import re import sys from datetime import datetime, timedelta, timezone from decimal import Decimal from functools import wraps from typing import Any, Callable, Dict, List, Mapping, Optional, Sequence, TypeVar, cast from unittest.mock import Mock, patch import responses import st...
54.214669
134
0.661659
175f008b2c845563bfee0de9b01f1379b9753ee1
17,501
py
Python
tempest/api/compute/test_authorization.py
ePlusPS/tempest
c32dac02bf237468ecda1f093333747bc9c992b1
[ "Apache-2.0" ]
null
null
null
tempest/api/compute/test_authorization.py
ePlusPS/tempest
c32dac02bf237468ecda1f093333747bc9c992b1
[ "Apache-2.0" ]
null
null
null
tempest/api/compute/test_authorization.py
ePlusPS/tempest
c32dac02bf237468ecda1f093333747bc9c992b1
[ "Apache-2.0" ]
1
2018-10-09T06:32:04.000Z
2018-10-09T06:32:04.000Z
# Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
45.339378
79
0.632764
21d9ee208648e2764d82c2416cf0538d1b4f472b
2,435
py
Python
docs/source/conf.py
rxavier/poniard
35f9e9cc1adbb58d011deb11e12a2581a647d0ff
[ "MIT" ]
null
null
null
docs/source/conf.py
rxavier/poniard
35f9e9cc1adbb58d011deb11e12a2581a647d0ff
[ "MIT" ]
null
null
null
docs/source/conf.py
rxavier/poniard
35f9e9cc1adbb58d011deb11e12a2581a647d0ff
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.039474
79
0.682957
140b42f1f05b042b023d1c9e3dd121a6f00bcb5b
2,076
py
Python
scons-local-0.96.90/SCons/Tool/386asm.py
luaman/twilight
b4853f3e0c828a5aaff23e44c17d70410f7781c1
[ "MIT" ]
3
2018-01-14T10:43:27.000Z
2020-03-02T08:38:23.000Z
scons-local-0.96.90/SCons/Tool/386asm.py
luaman/twilight
b4853f3e0c828a5aaff23e44c17d70410f7781c1
[ "MIT" ]
null
null
null
scons-local-0.96.90/SCons/Tool/386asm.py
luaman/twilight
b4853f3e0c828a5aaff23e44c17d70410f7781c1
[ "MIT" ]
null
null
null
"""SCons.Tool.386asm Tool specification for the 386ASM assembler for the Phar Lap ETS embedded operating system. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004 The S...
37.071429
134
0.74422
333653eae28a988432cd2df3998d821003564ec4
662
py
Python
201802Socket/server.py
richard-ma/weekendProject
43379bc8a2854132f52e5fc007ef7c721b0e7f4e
[ "MIT" ]
null
null
null
201802Socket/server.py
richard-ma/weekendProject
43379bc8a2854132f52e5fc007ef7c721b0e7f4e
[ "MIT" ]
null
null
null
201802Socket/server.py
richard-ma/weekendProject
43379bc8a2854132f52e5fc007ef7c721b0e7f4e
[ "MIT" ]
null
null
null
from socket import * from fib import fib from threading import Thread def fibServer(address): sock = socket(AF_INET, SOCK_STREAM) sock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) sock.bind(address) sock.listen(5) while True: client, addr = sock.accept() print("Connection", addr) ...
24.518519
71
0.608761
fad5d21fb16ef0bf2f1b00de9dd7cae4c2858029
1,902
py
Python
python/tensorflow_sdk.py
lanking520/djlsdk
03b9020fbef35740aca0b41628e5675d484a2fb7
[ "Apache-2.0" ]
null
null
null
python/tensorflow_sdk.py
lanking520/djlsdk
03b9020fbef35740aca0b41628e5675d484a2fb7
[ "Apache-2.0" ]
null
null
null
python/tensorflow_sdk.py
lanking520/djlsdk
03b9020fbef35740aca0b41628e5675d484a2fb7
[ "Apache-2.0" ]
null
null
null
import os import shutil from typing import Dict import tensorflow as tf from base import get_djl_template, zip_dir def export_tensorflow(model: tf.Module, sample_input: Dict[str, tf.Tensor]): directory = "build" if os.path.exists(directory) and os.path.isdir(directory): shutil.rmtree(directory) ...
35.222222
85
0.662986
8431116d6b24e93ae39c2bfc4a9449533f43be2e
2,606
py
Python
data_structures/heap/heap.py
Shuai-Xie/Python
b9d28fd5a00719e002de37f592406d89ff037082
[ "MIT" ]
1
2019-12-14T03:08:29.000Z
2019-12-14T03:08:29.000Z
data_structures/heap/heap.py
caofanCPU/Python
57d290918fd3f6af1e5c0940aed95642f931d32e
[ "MIT" ]
null
null
null
data_structures/heap/heap.py
caofanCPU/Python
57d290918fd3f6af1e5c0940aed95642f931d32e
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import print_function, division try: raw_input # Python 2 except NameError: raw_input = input # Python 3 # This heap class start from here. class Heap: def __init__(self): # Default constructor of heap class. self.h = [] self.currsize = 0 def lef...
28.021505
99
0.515733
6fd101b24a2a78b8359954b6f69d7515302f1ffe
384
py
Python
main.py
Nakxxgit/riss_crawler
38c259387c843fda7a9c22974bc1b87ccab9edc8
[ "MIT" ]
null
null
null
main.py
Nakxxgit/riss_crawler
38c259387c843fda7a9c22974bc1b87ccab9edc8
[ "MIT" ]
null
null
null
main.py
Nakxxgit/riss_crawler
38c259387c843fda7a9c22974bc1b87ccab9edc8
[ "MIT" ]
null
null
null
import journal_csv import book_csv import degree_csv import etc_csv import pandas as pd df1 = journal_csv.convert_to_csv() df2 = book_csv.convert_to_csv() df3 = degree_csv.convert_to_csv() df4 = etc_csv.convert_to_csv() df = pd.concat([df1, df2, df3, df4]) cols = ['제목', '저자', '학술지명', '권호사항', '발행처', '자료유형', '수록면', '발행...
25.6
78
0.690104
45797680c7a890142c0ffe6643a8a445d3315d51
726
py
Python
graphgallery/functional/sparse/to_edge.py
dongzizhu/GraphGallery
c65eab42daeb52de5019609fe7b368e30863b4ae
[ "MIT" ]
1
2020-07-29T08:00:32.000Z
2020-07-29T08:00:32.000Z
graphgallery/functional/sparse/to_edge.py
dongzizhu/GraphGallery
c65eab42daeb52de5019609fe7b368e30863b4ae
[ "MIT" ]
null
null
null
graphgallery/functional/sparse/to_edge.py
dongzizhu/GraphGallery
c65eab42daeb52de5019609fe7b368e30863b4ae
[ "MIT" ]
null
null
null
import numpy as np import scipy.sparse as sp from ..transform import SparseTransform from ..transform import Transform from ..decorators import multiple __all__ = ['SparseAdjToEdge', 'sparse_adj_to_edge'] @Transform.register() class SparseAdjToEdge(SparseTransform): def __call__(self, adj_matrix: sp...
29.04
84
0.739669
a105a13aa1fee510551f9bf3d47c9c76323fadf0
2,054
py
Python
process/score.py
eschnou/unicrawl
ec39d4183c448a24ebeaa991d291d0da8aa0eb75
[ "MIT" ]
null
null
null
process/score.py
eschnou/unicrawl
ec39d4183c448a24ebeaa991d291d0da8aa0eb75
[ "MIT" ]
2
2020-06-30T22:31:04.000Z
2020-11-09T17:05:41.000Z
process/score.py
eschnou/unicrawl
ec39d4183c448a24ebeaa991d291d0da8aa0eb75
[ "MIT" ]
4
2020-05-27T08:02:44.000Z
2021-06-09T14:53:11.000Z
import json import re import csv import argparse from functools import reduce class Scoring: dictionary = ('environnement', 'climat', 'climatique', 'énergie', 'durable', 'développement', 'écosystème', 'nature', 'naturelle', ...
33.672131
86
0.55258
29a6975329ab47ff87894b4e760ffd5b6cff7683
4,270
py
Python
bitmovin_api_sdk/models/dash_mp4_drm_representation.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
11
2019-07-03T10:41:16.000Z
2022-02-25T21:48:06.000Z
bitmovin_api_sdk/models/dash_mp4_drm_representation.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
8
2019-11-23T00:01:25.000Z
2021-04-29T12:30:31.000Z
bitmovin_api_sdk/models/dash_mp4_drm_representation.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
13
2020-01-02T14:58:18.000Z
2022-03-26T12:10:30.000Z
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model from bitmovin_api_sdk.models.dash_mp4_representation import DashMp4Representation from bitmovin_api_sdk.models.dash_on_demand_representation_type import DashOnDemandRepresentationTy...
33.359375
172
0.61733
49cb9e673b8867dd67d6e6f24f2e32767a75594a
578
py
Python
forumsApp/migrations/0004_auto_20210307_1022.py
glen-s-abraham/Elearning-platform
3122cfcef9dd920fffb474da2a63c475fe08c27b
[ "MIT" ]
null
null
null
forumsApp/migrations/0004_auto_20210307_1022.py
glen-s-abraham/Elearning-platform
3122cfcef9dd920fffb474da2a63c475fe08c27b
[ "MIT" ]
null
null
null
forumsApp/migrations/0004_auto_20210307_1022.py
glen-s-abraham/Elearning-platform
3122cfcef9dd920fffb474da2a63c475fe08c27b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-07 04:52 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), ('forumsApp', '0003_replie...
26.272727
110
0.676471
4548ddd901b611f410ca83773b6937fe0eb90fda
8,363
py
Python
pytype/datatypes_test.py
ashwinprasadme/pytype
fed209c73aacfcab15efc33deef3b4016a67cfe5
[ "Apache-2.0" ]
3,882
2015-03-22T12:17:15.000Z
2022-03-31T17:13:20.000Z
pytype/datatypes_test.py
ashwinprasadme/pytype
fed209c73aacfcab15efc33deef3b4016a67cfe5
[ "Apache-2.0" ]
638
2015-11-03T06:34:44.000Z
2022-03-31T23:41:48.000Z
pytype/datatypes_test.py
ashwinprasadme/pytype
fed209c73aacfcab15efc33deef3b4016a67cfe5
[ "Apache-2.0" ]
301
2015-08-14T10:21:17.000Z
2022-03-08T11:03:40.000Z
"""Tests for datatypes.py.""" import argparse from pytype import datatypes from pytype.typegraph import cfg import unittest class AccessTrackingDictTest(unittest.TestCase): """Test AccessTrackingDict.""" def setUp(self): super().setUp() self.d = datatypes.AccessTrackingDict({"a": 1, "b": 2}) def te...
31.205224
79
0.643908
94f7d49be725a3cda790db8a2c177c25cac492e0
24,745
py
Python
server/paramiko/client.py
ludojmj/treelud
37dda35000786f359c8ddb3674572f49b8d78c48
[ "MIT" ]
3
2015-03-17T09:30:30.000Z
2018-05-05T06:27:33.000Z
server/paramiko/client.py
ludojmj/treelud
37dda35000786f359c8ddb3674572f49b8d78c48
[ "MIT" ]
null
null
null
server/paramiko/client.py
ludojmj/treelud
37dda35000786f359c8ddb3674572f49b8d78c48
[ "MIT" ]
null
null
null
# Copyright (C) 2006-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License,...
42.590361
140
0.601212
8f6eb289c976aec2e338110b7a6421beb4807d89
15,133
py
Python
tests/test_instrumentation.py
trallnag/prometheus-fastapi-exporter
673b922e97a4e943a0e4d23db7767015e4c751dd
[ "MIT" ]
3
2020-07-13T15:29:38.000Z
2020-07-15T20:55:41.000Z
tests/test_instrumentation.py
trallnag/prometheus-fastapi-exporter
673b922e97a4e943a0e4d23db7767015e4c751dd
[ "MIT" ]
null
null
null
tests/test_instrumentation.py
trallnag/prometheus-fastapi-exporter
673b922e97a4e943a0e4d23db7767015e4c751dd
[ "MIT" ]
null
null
null
import asyncio import os from typing import Any, Dict, Optional from fastapi import FastAPI, HTTPException from prometheus_client import CONTENT_TYPE_LATEST, REGISTRY, generate_latest from requests import Response as TestClientResponse from starlette.responses import Response from starlette.testclient import TestClien...
28.769962
90
0.650301
d3fac9a5c504edb3a2f4832158ea20b5ce5a4da4
2,414
py
Python
airmozilla/suggest/tests/test_helpers.py
anurag90x/airmozilla
c758fb86695e16891e45dc24a2cf1406c54f2686
[ "BSD-3-Clause" ]
null
null
null
airmozilla/suggest/tests/test_helpers.py
anurag90x/airmozilla
c758fb86695e16891e45dc24a2cf1406c54f2686
[ "BSD-3-Clause" ]
null
null
null
airmozilla/suggest/tests/test_helpers.py
anurag90x/airmozilla
c758fb86695e16891e45dc24a2cf1406c54f2686
[ "BSD-3-Clause" ]
null
null
null
from nose.tools import eq_ from django.test import TestCase from django.contrib.auth.models import User from django.utils import timezone from funfactory.urlresolvers import reverse from airmozilla.suggest.helpers import ( next_url, state_description, truncate_url ) from airmozilla.main.models import Sugg...
30.556962
76
0.630903
ee36286bdfaf7b9b18d96dd34ef491a9c0809d53
2,977
py
Python
src/mercury/common/task_managers/base/manager.py
shaneutt/mercury
d8d3c9a86ab3235d4e36583fcee6f656e5209b7e
[ "Apache-2.0" ]
4
2017-07-21T20:56:46.000Z
2018-04-30T13:37:37.000Z
src/mercury/common/task_managers/base/manager.py
jr0d/mercury
d8d3c9a86ab3235d4e36583fcee6f656e5209b7e
[ "Apache-2.0" ]
11
2017-08-24T04:55:58.000Z
2021-12-13T19:36:21.000Z
src/mercury/common/task_managers/base/manager.py
shaneutt/mercury
d8d3c9a86ab3235d4e36583fcee6f656e5209b7e
[ "Apache-2.0" ]
6
2017-08-18T15:59:15.000Z
2018-08-21T19:54:34.000Z
import logging import signal import threading import time from .worker import Worker log = logging.getLogger(__name__) class Manager(object): """Class managing workers""" def __init__(self, task_handler, number_of_workers=10, maximum_requests_per_thread=50...
33.449438
79
0.603292
49e8d7ec228216237faa9f5cff43b3f0ce5419c3
751
py
Python
example.py
qqaatw/LibJciHitachi
b1ff14a5d8e9e64c23085ee9def5df202f1aff86
[ "Apache-2.0" ]
14
2021-07-05T18:24:11.000Z
2022-03-29T18:15:53.000Z
example.py
qqaatw/LibJciHitachi
b1ff14a5d8e9e64c23085ee9def5df202f1aff86
[ "Apache-2.0" ]
3
2022-01-12T15:13:10.000Z
2022-01-18T04:42:59.000Z
example.py
qqaatw/LibJciHitachi
b1ff14a5d8e9e64c23085ee9def5df202f1aff86
[ "Apache-2.0" ]
2
2021-07-05T15:45:23.000Z
2021-09-11T08:53:13.000Z
from JciHitachi.api import JciHitachiAPI # Fill out your Jci Hitachi email address, password, and device name. EMAIL = "yourname@yourdomain.com" PASSWORD = "password" DEVICENAME = "living room" # Login api = JciHitachiAPI(EMAIL, PASSWORD, DEVICENAME) api.login() # Check device status device_status = api.get_status...
25.896552
69
0.768309
d0e1f0114f6abd1a0c34a3205bab245f4f2f6961
2,726
py
Python
tensorflow/compiler/mlir/hlo/tests/lit.cfg.py
kim-com/tensorflow
4301e3f34b8da528c58bdafe05cd66c8a55fce9e
[ "Apache-2.0" ]
null
null
null
tensorflow/compiler/mlir/hlo/tests/lit.cfg.py
kim-com/tensorflow
4301e3f34b8da528c58bdafe05cd66c8a55fce9e
[ "Apache-2.0" ]
null
null
null
tensorflow/compiler/mlir/hlo/tests/lit.cfg.py
kim-com/tensorflow
4301e3f34b8da528c58bdafe05cd66c8a55fce9e
[ "Apache-2.0" ]
null
null
null
"""Lit configuration to drive test in this repo.""" # Copyright 2020 The TensorFlow Authors. 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/l...
33.654321
78
0.757153
96b1aeb355bd26712edf903b18e001f844857925
1,269
pyw
Python
build/nsis/HH.launch.pyw
armohamm/HH---POS-Accounting-and-ERP-Software
4bcb7be39e24ed648451d5ad2447fd0840820856
[ "MIT" ]
27
2020-04-13T09:05:51.000Z
2022-02-02T22:43:30.000Z
build/nsis/HH.launch.pyw
armohamm/HH---POS-Accounting-and-ERP-Software
4bcb7be39e24ed648451d5ad2447fd0840820856
[ "MIT" ]
5
2018-07-20T13:17:23.000Z
2019-10-23T12:42:39.000Z
build/nsis/HH.launch.pyw
armohamm/HH---POS-Accounting-and-ERP-Software
4bcb7be39e24ed648451d5ad2447fd0840820856
[ "MIT" ]
19
2018-07-20T18:21:17.000Z
2020-03-03T22:43:29.000Z
#!python3.6-32 import sys, os scriptdir, script = os.path.split(__file__) pkgdir = os.path.join(scriptdir, 'pkgs') sys.path.insert(0, pkgdir) os.environ['PYTHONPATH'] = pkgdir + os.pathsep + os.environ.get('PYTHONPATH', '') # APPDATA should always be set, but in case it isn't, try user home # If none of APPDATA, HOME,...
39.65625
83
0.676123
54c7709064b573d1340acb2d735e62fe010ff368
4,458
py
Python
match.py
dykuang/Raman-Spectral-Matching
a0a30955bc29c9c124513417b91d68de3c28c1ef
[ "MIT" ]
1
2019-09-10T03:14:49.000Z
2019-09-10T03:14:49.000Z
match.py
dykuang/Raman-Spectral-Matching
a0a30955bc29c9c124513417b91d68de3c28c1ef
[ "MIT" ]
null
null
null
match.py
dykuang/Raman-Spectral-Matching
a0a30955bc29c9c124513417b91d68de3c28c1ef
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jun 22 16:05:16 2018 @author: dykua This script does the actual matching """ import numpy as np from DataExtraction import extract_data from Util import preprocess, smooth1D, find_top_peak_loc, multi_gaussian lib_data = extract_data('../Li-Lin - data/Spectral Data') test_da...
35.664
120
0.561463
29f0e94e584bc234e191f2a31828f2915cc1bfbd
45
py
Python
solutions/12/src/cormorant/tests/__init__.py
larsbratholm/champs_kaggle
fda4f213d02fd5e0138a86c52b4140c9f94fec6e
[ "MIT" ]
9
2020-08-14T23:11:16.000Z
2021-08-09T16:23:43.000Z
solutions/12/src/cormorant/tests/__init__.py
larsbratholm/champs_kaggle
fda4f213d02fd5e0138a86c52b4140c9f94fec6e
[ "MIT" ]
1
2020-11-19T09:29:14.000Z
2020-11-19T09:29:14.000Z
solutions/12/src/cormorant/tests/__init__.py
larsbratholm/champs_kaggle
fda4f213d02fd5e0138a86c52b4140c9f94fec6e
[ "MIT" ]
2
2020-09-09T02:53:57.000Z
2020-12-06T08:20:52.000Z
from .cormorant_tests import cormorant_tests
22.5
44
0.888889
682dcb0e3796fb539739294e9ac15d9f1c2a43f6
7,278
py
Python
hoki/tests/test_spec.py
HeloiseS/hoki
31cecc4c4ee2bbb617e1451df1cab896f485d801
[ "BSD-3-Clause" ]
40
2019-09-18T13:04:09.000Z
2022-03-08T12:45:35.000Z
hoki/tests/test_spec.py
HeloiseS/hoki
31cecc4c4ee2bbb617e1451df1cab896f485d801
[ "BSD-3-Clause" ]
60
2019-10-26T01:11:52.000Z
2022-02-10T06:52:08.000Z
hoki/tests/test_spec.py
HeloiseS/hoki
31cecc4c4ee2bbb617e1451df1cab896f485d801
[ "BSD-3-Clause" ]
8
2020-03-04T23:35:01.000Z
2021-05-23T16:32:54.000Z
""" Tests for the `hoki.spec` module. Authors: Martin Glatzle """ from unittest import TestCase from hoki import spec import numpy as np class TestBinwiseTrapz(TestCase): def test_std(self): x = np.linspace(1, 10) y = np.ones_like(x).reshape((1, -1)) bin_edges = np.array([4, 5]) ...
30.451883
69
0.537648
b51eea7ae0503c32740a8a2d70dfa15273cae35c
14,805
py
Python
SNCPython/EnvSensorv2/EnvSensorv2.py
rt-ispace/SNC
890acbbe336bb0429f47fa7bed499a46215aac64
[ "MIT" ]
1
2021-08-08T05:40:52.000Z
2021-08-08T05:40:52.000Z
SNCPython/EnvSensorv2/EnvSensorv2.py
rt-ispace/SNC
890acbbe336bb0429f47fa7bed499a46215aac64
[ "MIT" ]
null
null
null
SNCPython/EnvSensorv2/EnvSensorv2.py
rt-ispace/SNC
890acbbe336bb0429f47fa7bed499a46215aac64
[ "MIT" ]
1
2021-08-08T05:40:56.000Z
2021-08-08T05:40:56.000Z
#!/usr/bin/python ''' //////////////////////////////////////////////////////////////////////////// // // This file is part of SNC // // Copyright (c) 2014-2021, Richard Barnett // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files ...
32.754425
168
0.620196
caec23ae5d577f27694a1c73f9e0c6082f6864a3
5,383
py
Python
envs/fetch/custom.py
timofriedl/multicam-ihgg
f52659a1bb38369b6e2ac62261cc9c65fbc3ca80
[ "MIT" ]
null
null
null
envs/fetch/custom.py
timofriedl/multicam-ihgg
f52659a1bb38369b6e2ac62261cc9c65fbc3ca80
[ "MIT" ]
null
null
null
envs/fetch/custom.py
timofriedl/multicam-ihgg
f52659a1bb38369b6e2ac62261cc9c65fbc3ca80
[ "MIT" ]
null
null
null
import numpy as np import gym from utils.os_utils import remove_color class CustomGoalEnv(): def __init__(self, args): self.args = args self.env = gym.make(args.env) self.np_random = self.env.env.np_random self.distance_threshold = self.env.env.distance_threshold self.actio...
35.886667
119
0.6188
d4818253078e2c27a917dd5a122d8306533522e1
1,416
py
Python
public/index.py
DudhaneShrey86/Shramik
47a0f6071775909287630d0562ff57e54ede2b43
[ "MIT" ]
null
null
null
public/index.py
DudhaneShrey86/Shramik
47a0f6071775909287630d0562ff57e54ede2b43
[ "MIT" ]
null
null
null
public/index.py
DudhaneShrey86/Shramik
47a0f6071775909287630d0562ff57e54ede2b43
[ "MIT" ]
null
null
null
import sys import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestRegressor from sklearn.tree import export_graphviz import pydot import json features = pd.read_csv("dataset2.csv") labels = np.array(features['hired']) features= features.dro...
35.4
130
0.759181
d382cd629d3cb6a44ca1d303d5ce0c525618641a
11,966
py
Python
python/ray/tune/automlboard/backend/collector.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
29
2019-05-18T12:18:34.000Z
2022-03-30T01:46:48.000Z
python/ray/tune/automlboard/backend/collector.py
collinswei/ray
2e30f7ba386e716bf80f019dcd473b67d83abb95
[ "Apache-2.0" ]
8
2019-08-15T05:42:10.000Z
2021-05-21T09:41:15.000Z
python/ray/tune/automlboard/backend/collector.py
collinswei/ray
2e30f7ba386e716bf80f019dcd473b67d83abb95
[ "Apache-2.0" ]
8
2019-07-15T22:36:20.000Z
2020-08-09T07:03:26.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import os import time from threading import Thread from ray.tune.automlboard.common.exception import CollectorError from ray.tune.automlboard.common.utils import parse_json, \ parse_multipl...
32.516304
79
0.583737
6d189e56d1f511251988cb019320635522adae37
1,352
py
Python
Country cleaning/Peru/Peru14.py
Demonliquid/cars-python-cleaning
91c516a33c4522114dc024cfaf04f1c1d594f973
[ "MIT" ]
null
null
null
Country cleaning/Peru/Peru14.py
Demonliquid/cars-python-cleaning
91c516a33c4522114dc024cfaf04f1c1d594f973
[ "MIT" ]
null
null
null
Country cleaning/Peru/Peru14.py
Demonliquid/cars-python-cleaning
91c516a33c4522114dc024cfaf04f1c1d594f973
[ "MIT" ]
null
null
null
# %% import os import pandas as pd import numpy as np import datetime import re # %% pd.set_option('display.max_colwidth', None) # %% CARGA DE DATOS path = r'D:\Basededatos\Origen\Peru\2012-2015\2014' os.chdir(path) files = os.listdir(path) files # %% files_xls = [f for f in files if f[-4:] == 'xlsx'] files_xls...
19.314286
74
0.565828
b199ca5a1c18878375234dec5749df3b5d2aee86
810
py
Python
tests/programs/package_module_collision/Something/__init__.py
augustand/Nuitka
b7b9dd50b60505a309f430ce17cad36fb7d75048
[ "Apache-2.0" ]
null
null
null
tests/programs/package_module_collision/Something/__init__.py
augustand/Nuitka
b7b9dd50b60505a309f430ce17cad36fb7d75048
[ "Apache-2.0" ]
null
null
null
tests/programs/package_module_collision/Something/__init__.py
augustand/Nuitka
b7b9dd50b60505a309f430ce17cad36fb7d75048
[ "Apache-2.0" ]
null
null
null
# Copyright 2016, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
42.631579
79
0.720988
c53b13a0a795da02b8e79c41bdc67e5d63fe3c4e
4,398
py
Python
src/dietpdf/token/TokenStack.py
Zigazou/dietpdf
4608ea2d9d54861d4d894b725a60895e0bdc131a
[ "MIT" ]
6
2022-02-07T06:17:41.000Z
2022-02-15T17:29:16.000Z
src/dietpdf/token/TokenStack.py
Zigazou/dietpdf
4608ea2d9d54861d4d894b725a60895e0bdc131a
[ "MIT" ]
2
2022-02-08T10:00:08.000Z
2022-02-08T12:59:42.000Z
src/dietpdf/token/TokenStack.py
Zigazou/dietpdf
4608ea2d9d54861d4d894b725a60895e0bdc131a
[ "MIT" ]
null
null
null
__author__ = "Frédéric BISSON" __copyright__ = "Copyright 2022, Frédéric BISSON" __credits__ = ["Frédéric BISSON"] __license__ = "mit" __maintainer__ = "Frédéric BISSON" __email__ = "zigazou@protonmail.com" from .PDFToken import PDFToken class TokenStack: """A token stack A token stack which can be read or ...
30.331034
81
0.608004
1b51114554e62f53dee8a425a8932728acc8d17e
519
py
Python
setup.py
biosckon/petpy
dceef40c416eb3d3fdcc8bd5704671ba670580c5
[ "Apache-2.0" ]
null
null
null
setup.py
biosckon/petpy
dceef40c416eb3d3fdcc8bd5704671ba670580c5
[ "Apache-2.0" ]
null
null
null
setup.py
biosckon/petpy
dceef40c416eb3d3fdcc8bd5704671ba670580c5
[ "Apache-2.0" ]
null
null
null
from setuptools import setup VERSION = "" with open("VERSION", "r+") as f: content = f.read() ver = str(content).strip().split(".") ver[2] = str(int(ver[2]) + 1) VERSION = ".".join(ver) f.seek(0) f.write(VERSION) setup( name="petpy", version=VERSION, description="Petrophysics uti...
20.76
44
0.606936
7d92f6500e58ba36f663975996ce327a3d2b1e08
25,883
py
Python
rllib/policy/eager_tf_policy.py
another-green/ray
69dc1e1386a53dd96593b2e6da3b2bdf8fba874f
[ "Apache-2.0" ]
null
null
null
rllib/policy/eager_tf_policy.py
another-green/ray
69dc1e1386a53dd96593b2e6da3b2bdf8fba874f
[ "Apache-2.0" ]
null
null
null
rllib/policy/eager_tf_policy.py
another-green/ray
69dc1e1386a53dd96593b2e6da3b2bdf8fba874f
[ "Apache-2.0" ]
null
null
null
"""Eager mode TF policy built using build_tf_policy(). It supports both traced and non-traced eager execution modes.""" import functools import logging from ray.util.debug import log_once from ray.rllib.models.catalog import ModelCatalog from ray.rllib.models.repeated_values import RepeatedValues from ray.rllib.poli...
39.039216
79
0.560986
69c1207aee2d7c97a6e05c9488b060594593e37b
347
py
Python
manage.py
kfolkes/MicrosoftLab_NSBE46
5e66cf3378aa27ee36fba5297b7f917e4890b1f8
[ "MIT" ]
null
null
null
manage.py
kfolkes/MicrosoftLab_NSBE46
5e66cf3378aa27ee36fba5297b7f917e4890b1f8
[ "MIT" ]
3
2020-06-05T20:14:46.000Z
2021-06-10T21:20:45.000Z
manage.py
kfolkes/MicrosoftLab_NSBE46
5e66cf3378aa27ee36fba5297b7f917e4890b1f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Command-line utility for administrative tasks. """ import os import sys if __name__ == "__main__": os.environ.setdefault( "DJANGO_SETTINGS_MODULE", "djangoapp.settings" ) from django.core.management import execute_from_command_line execute_fr...
19.277778
65
0.677233
79768aedce63216e0b361ac106e613d7225502a7
2,663
py
Python
tests/main/test_specify_output_dir.py
insight-infrastructure/cookiecutter
5e77a6f59786759cf1b469e7bd827b6d340a31c6
[ "BSD-3-Clause" ]
8
2020-06-15T18:49:24.000Z
2021-04-15T10:34:24.000Z
tests/main/test_specify_output_dir.py
insight-infrastructure/cookiecutter
5e77a6f59786759cf1b469e7bd827b6d340a31c6
[ "BSD-3-Clause" ]
19
2020-06-28T16:03:56.000Z
2020-10-07T15:52:06.000Z
tests/main/test_specify_output_dir.py
insight-infrastructure/nukikata
5e77a6f59786759cf1b469e7bd827b6d340a31c6
[ "BSD-3-Clause" ]
null
null
null
"""Tests for cookiecutter's output directory customization feature.""" import pytest from cookiecutter import main @pytest.fixture def context(): """Fixture to return a valid context as known from a cookiecutter.json.""" return { 'cookiecutter': { 'email': 'raphael@hackebrot.de', ...
28.945652
83
0.704469
3c95d778f759aed2bae2dd57ec5457835aeb3afa
3,992
py
Python
tensorflow_graphics/geometry/representation/point.py
prafael18/graphics
2f250a53431697cfb43fd1edf61a2d965b20c596
[ "Apache-2.0" ]
2
2021-01-06T03:24:47.000Z
2021-01-07T06:39:54.000Z
tensorflow_graphics/geometry/representation/point.py
prafael18/graphics
2f250a53431697cfb43fd1edf61a2d965b20c596
[ "Apache-2.0" ]
1
2021-02-24T10:36:11.000Z
2021-02-24T10:36:11.000Z
tensorflow_graphics/geometry/representation/point.py
isabella232/graphics-1
d5c26cf05125e5c096f5b2cde6c85f88c7df2d59
[ "Apache-2.0" ]
1
2020-08-03T20:22:59.000Z
2020-08-03T20:22:59.000Z
# Copyright 2020 The TensorFlow 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
35.017544
80
0.686373
5c97aba7d6e145347358cc7c55b5cd8ef4dc22ef
1,455
py
Python
tests/fixtures/input_gdf.py
geodatascience/geo_snippets
d7f7a3566a82c4261ad66482d3f58871cfbd7949
[ "MIT" ]
null
null
null
tests/fixtures/input_gdf.py
geodatascience/geo_snippets
d7f7a3566a82c4261ad66482d3f58871cfbd7949
[ "MIT" ]
null
null
null
tests/fixtures/input_gdf.py
geodatascience/geo_snippets
d7f7a3566a82c4261ad66482d3f58871cfbd7949
[ "MIT" ]
null
null
null
import pytest from shapely.geometry import LineString import geojson import geopandas as gpd def build_gdf(features): all_geojson_features = [] for feature in features: feature["properties"]["bounds"] = ", ".join( map(str, feature["geometry"].bounds) ) feature = geojson.F...
27.980769
74
0.513402
19713d52ca42b579c8ada777ec4a4227f0f06ac2
2,293
py
Python
tableauxml/workbook.py
ErikKBethke/tableau-workbook-xml
8c728b7a415c99cda5234c6dc70eb51ac65c5d0a
[ "MIT" ]
null
null
null
tableauxml/workbook.py
ErikKBethke/tableau-workbook-xml
8c728b7a415c99cda5234c6dc70eb51ac65c5d0a
[ "MIT" ]
null
null
null
tableauxml/workbook.py
ErikKBethke/tableau-workbook-xml
8c728b7a415c99cda5234c6dc70eb51ac65c5d0a
[ "MIT" ]
null
null
null
import lxml.etree as etree from tableauxml import Datasource # %% class Workbook: """ A class for the Tableau Workbook, which can be read due to its xml formatting. Sub classes: datasource """ def __init__(self, filepath, encoding='utf-8'): """ Constructor. Builds workbook...
31.410959
130
0.591801
cd1977bc4b9a0c25cbee4eff0f9ecf19cafb9fdd
3,035
py
Python
adanet/experimental/phases/repeat_phase.py
Mario-Kart-Felix/adanet
b0f7fda2e7e5fb31790965b3dcb3fc6b431c05c6
[ "Apache-2.0" ]
3,323
2018-10-30T15:24:26.000Z
2022-03-26T02:39:29.000Z
adanet/experimental/phases/repeat_phase.py
yeqingcheng368/adanet
5e08fad3f501836bb3e2e22316704a10b5f4507f
[ "Apache-2.0" ]
136
2018-10-30T18:22:45.000Z
2022-02-02T20:39:26.000Z
adanet/experimental/phases/repeat_phase.py
yeqingcheng368/adanet
5e08fad3f501836bb3e2e22316704a10b5f4507f
[ "Apache-2.0" ]
542
2018-10-30T18:18:04.000Z
2022-03-31T12:41:50.000Z
# Lint as: python3 # Copyright 2020 The AdaNet Authors. 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 # https://www.apache.org/licenses/LICENSE-2.0 # Unless requir...
39.934211
78
0.733773
11cfeee38e76f33d68d36a0e2fa32d9a1048f864
2,510
py
Python
Set3/Implement the MT19937 Mersenne Twister RNG/MT19937.py
BadMonkey7/Cryptopals
53bbef43d0d0dc62286514122c2651b1ce8e7471
[ "MIT" ]
1
2021-05-07T16:35:24.000Z
2021-05-07T16:35:24.000Z
Set3/Implement the MT19937 Mersenne Twister RNG/MT19937.py
BadMonkey7/Cryptopals
53bbef43d0d0dc62286514122c2651b1ce8e7471
[ "MIT" ]
null
null
null
Set3/Implement the MT19937 Mersenne Twister RNG/MT19937.py
BadMonkey7/Cryptopals
53bbef43d0d0dc62286514122c2651b1ce8e7471
[ "MIT" ]
null
null
null
# coding=utf-8 # 参考wiki # https://en.m.wikipedia.org/wiki/Mersenne_Twister # https://cedricvanrompay.gitlab.io/cryptopals/challenges/21.html # https://zh.wikipedia.org/wiki/%E6%A2%85%E6%A3%AE%E6%97%8B%E8%BD%AC%E7%AE%97%E6%B3%95 class MT19937(): def __init__(self,seed): self.pos = 0 self.x = list() ...
29.186047
86
0.393625
ab9d617ad3320485eada23ac9ff29298160014b4
3,171
py
Python
lsp_shiloh/common/devices/pip/tools/gen_1d_ramp.py
internaru/Pinetree_P
1f1525454c8b20c6c589529ff4bc159404611297
[ "FSFAP" ]
null
null
null
lsp_shiloh/common/devices/pip/tools/gen_1d_ramp.py
internaru/Pinetree_P
1f1525454c8b20c6c589529ff4bc159404611297
[ "FSFAP" ]
null
null
null
lsp_shiloh/common/devices/pip/tools/gen_1d_ramp.py
internaru/Pinetree_P
1f1525454c8b20c6c589529ff4bc159404611297
[ "FSFAP" ]
null
null
null
#!/usr/bin/python #****************************************************************************** # * Copyright (c) 2011 Marvell International, Ltd. All Rights Reserved # * # * Marvell Confidential #****************************************************************************** import sys # ...
33.734043
113
0.525702
1c8ca52a77091627482b86592b4609eb48ad1157
45,099
py
Python
snakemake/jobs.py
r-mllr/snakemake
ee0d5b17311c9126d89b49eec70045a9fdd6bd9c
[ "MIT" ]
1
2021-02-05T13:42:24.000Z
2021-02-05T13:42:24.000Z
snakemake/jobs.py
r-mllr/snakemake
ee0d5b17311c9126d89b49eec70045a9fdd6bd9c
[ "MIT" ]
null
null
null
snakemake/jobs.py
r-mllr/snakemake
ee0d5b17311c9126d89b49eec70045a9fdd6bd9c
[ "MIT" ]
null
null
null
__author__ = "Johannes Köster" __copyright__ = "Copyright 2015-2019, Johannes Köster" __email__ = "koester@jimmy.harvard.edu" __license__ = "MIT" import hashlib import os import sys import base64 import tempfile import subprocess import json from collections import defaultdict from itertools import chain, filterfalse...
31.102759
127
0.562363
e4c7a66de3ee4ac032625182902a2d3623544e35
4,246
py
Python
flask_app.py
gbrixey/decay
ff5eb7f5cf49892dad2ffe28aee1eb0d5797c767
[ "MIT" ]
null
null
null
flask_app.py
gbrixey/decay
ff5eb7f5cf49892dad2ffe28aee1eb0d5797c767
[ "MIT" ]
1
2020-02-01T04:01:05.000Z
2020-02-01T04:01:05.000Z
flask_app.py
gbrixey/decay
ff5eb7f5cf49892dad2ffe28aee1eb0d5797c767
[ "MIT" ]
null
null
null
from flask import Flask, flash, g, redirect, render_template, request from degrade import degrade_text, fake_degrade_jpeg from constants import MAX_FILES from util import * from PIL import Image import uuid import os import sqlite3 app = Flask(__name__) DATABASE = os.path.join(app.root_path, 'data.db') UPLOAD_FOLDER =...
33.433071
92
0.66439
a0b4fac51b42f479dc71ca2908a0ddc7c56457ba
1,190
py
Python
google/ads/googleads/v8/enums/types/frequency_cap_time_unit.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
285
2018-10-05T16:47:58.000Z
2022-03-31T00:58:39.000Z
google/ads/googleads/v8/enums/types/frequency_cap_time_unit.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
425
2018-09-10T13:32:41.000Z
2022-03-31T14:50:05.000Z
google/ads/googleads/v8/enums/types/frequency_cap_time_unit.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
369
2018-11-28T07:01:00.000Z
2022-03-28T09:53:22.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
29.02439
74
0.693277
c30293b723084423d030dd93f0e9cee5ea8cfbe3
301
py
Python
python/python 'char'?.py
1005281342/learn
c9d1e2e256842d9b4846c4870ac72e83d172b20e
[ "Apache-2.0" ]
1
2018-11-29T01:01:32.000Z
2018-11-29T01:01:32.000Z
python/python 'char'?.py
1005281342/learn
c9d1e2e256842d9b4846c4870ac72e83d172b20e
[ "Apache-2.0" ]
null
null
null
python/python 'char'?.py
1005281342/learn
c9d1e2e256842d9b4846c4870ac72e83d172b20e
[ "Apache-2.0" ]
null
null
null
# 最开始是在str类方法里看见 b""这个骚操作 定义字节序列 print(str.replace.__doc__) # 尝试, wtf没报错 print(b"") # 一堆数字就很真实,ASCII码 test_b = b"hello Python" print(test_b) for char in test_b: print(char) # 然后python也提供了相关函数, 如果是Unicode字符 test_char = 'o' number = ord(test_char) print(number) char = chr(number) print(char)
13.681818
32
0.724252
8ad5ab1720fe47393b4f951601e71dc934a52fa6
2,103
py
Python
tcex/api/tc/v2/threat_intelligence/mappings/indicator/indicator_types/url.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tcex/api/tc/v2/threat_intelligence/mappings/indicator/indicator_types/url.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tcex/api/tc/v2/threat_intelligence/mappings/indicator/indicator_types/url.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
"""ThreatConnect TI URL""" # standard library from typing import TYPE_CHECKING from urllib.parse import quote_plus # first-party from tcex.api.tc.v2.threat_intelligence.mappings.indicator.indicator import Indicator if TYPE_CHECKING: # first-party from tcex.api.tc.v2.threat_intelligence.threat_intelligence imp...
42.918367
95
0.671897
a15e5a681928ca008bcf6a35ba480c65f2466ea8
22,110
py
Python
sdk/lusid/models/create_relationship_definition_request.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
sdk/lusid/models/create_relationship_definition_request.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
sdk/lusid/models/create_relationship_definition_request.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.4425 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
48.486842
258
0.676979
81afc1cbcc371239f8677f1cb3cf68f2cff02038
4,586
py
Python
python55.py
onnela-lab/mech-mle
8a36c1a75dbbc665feb642f527aeb09e7462e90b
[ "BSD-3-Clause" ]
null
null
null
python55.py
onnela-lab/mech-mle
8a36c1a75dbbc665feb642f527aeb09e7462e90b
[ "BSD-3-Clause" ]
null
null
null
python55.py
onnela-lab/mech-mle
8a36c1a75dbbc665feb642f527aeb09e7462e90b
[ "BSD-3-Clause" ]
null
null
null
# JP Onnela # April 20, 2021 # Edited May 12, 2021 by Jonathan Larson import networkx as nx import random import scipy.stats as ss import time def generate_DMC(q_mod, q_con, n): """Generate DMC model realization given parameters.""" G = nx.Graph() G.add_edge(0,1) new_nodes = list(range(...
26.976471
93
0.557567
d371ebc2fb0fb6c25e6410976f192c5374a3aeb7
1,866
py
Python
fimed/routes/authentication.py
dandobjim/FIMED2.0-BACKEND
1118a1afcf62a2d39de3464dce3929f008dba0ec
[ "MIT" ]
null
null
null
fimed/routes/authentication.py
dandobjim/FIMED2.0-BACKEND
1118a1afcf62a2d39de3464dce3929f008dba0ec
[ "MIT" ]
2
2021-04-06T18:29:57.000Z
2021-06-02T03:57:43.000Z
fimed/routes/authentication.py
dandobjim/FIMED2.0-BACKEND
1118a1afcf62a2d39de3464dce3929f008dba0ec
[ "MIT" ]
null
null
null
from datetime import timedelta from fastapi import HTTPException, Depends, APIRouter from fastapi.security import OAuth2PasswordRequestForm from starlette.status import HTTP_409_CONFLICT, HTTP_401_UNAUTHORIZED from fimed.auth import ( authenticate_user, ACCESS_TOKEN_EXPIRE_MINUTES, create_access_token, ...
35.884615
103
0.743301
109a5dc04ae25242361d347994957652d83be495
3,304
py
Python
homeassistant/auth/permissions/util.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
3
2020-05-18T10:18:16.000Z
2020-12-08T11:27:55.000Z
homeassistant/auth/permissions/util.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
39
2016-12-16T12:40:34.000Z
2017-02-13T17:53:42.000Z
homeassistant/auth/permissions/util.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
6
2020-04-10T06:21:11.000Z
2021-07-01T08:53:38.000Z
"""Helpers to deal with permissions.""" from functools import wraps from typing import Callable, Dict, List, Optional, cast from .const import SUBCAT_ALL from .models import PermissionLookup from .types import CategoryType, SubCategoryDict, ValueType LookupFunc = Callable[[PermissionLookup, SubCategoryDict, str], Op...
29.765766
88
0.663438
9a5a2ca08b325b9cb27a6db4ed72368abb3fec54
746
py
Python
test/odd_even_sort_test.py
southpolemonkey/py-sorting
e5d76f92dc17bf5b6a070924d071b14183e088a8
[ "MIT" ]
94
2017-02-21T15:29:38.000Z
2022-03-26T09:02:59.000Z
test/odd_even_sort_test.py
southpolemonkey/py-sorting
e5d76f92dc17bf5b6a070924d071b14183e088a8
[ "MIT" ]
17
2015-07-25T06:50:28.000Z
2015-09-19T22:27:09.000Z
test/odd_even_sort_test.py
southpolemonkey/py-sorting
e5d76f92dc17bf5b6a070924d071b14183e088a8
[ "MIT" ]
28
2017-04-16T10:13:44.000Z
2022-01-12T04:12:43.000Z
import unittest import os import sys from base_custom_comparison_sort_test import BaseCustomComparisonSortTest from base_positive_integer_sort_test import BasePositiveIntegerSortTest from base_negative_integer_sort_test import BaseNegativeIntegerSortTest from base_string_sort_test import BaseStringSortTest sys.path.a...
32.434783
75
0.756032
f7eb75b6213ee58cac86a080a6eadfaec1c90ba8
375
py
Python
ENCODN/BUTTONS/CRYPTOGRAPHY.py
chrisyo99/ENCODN
578a5eb87b68e4ba5ebb1c87808ad04aa160df5e
[ "MIT" ]
null
null
null
ENCODN/BUTTONS/CRYPTOGRAPHY.py
chrisyo99/ENCODN
578a5eb87b68e4ba5ebb1c87808ad04aa160df5e
[ "MIT" ]
null
null
null
ENCODN/BUTTONS/CRYPTOGRAPHY.py
chrisyo99/ENCODN
578a5eb87b68e4ba5ebb1c87808ad04aa160df5e
[ "MIT" ]
null
null
null
from tkinter import * def CRYPTOGRAPHY(master=None): frame = Frame(master,bg="#215d9c", width = 800, height=550) frame.grid(row=0, column=0, sticky="e") t_names = ["MODERN CRYPTOGRAPHY","OTHERS"] b = [] for i in range(len(t_names)): b.append(Button(master,text=t_names[i],bg ='#c4c4c4' ,fg='black'...
26.785714
118
0.64
70eae1f0361f17475bab25635eafe007827087fd
42,683
py
Python
Chapter10/zwQTBox.py
allen-zqh/plotly
bcaf0930901e77db07245b63bff049eb75893416
[ "MIT" ]
null
null
null
Chapter10/zwQTBox.py
allen-zqh/plotly
bcaf0930901e77db07245b63bff049eb75893416
[ "MIT" ]
null
null
null
Chapter10/zwQTBox.py
allen-zqh/plotly
bcaf0930901e77db07245b63bff049eb75893416
[ "MIT" ]
1
2021-02-04T06:56:18.000Z
2021-02-04T06:56:18.000Z
# -*- coding: utf-8 -*- ''' zwQuantToolBox 2016 zw量化开源工具箱系列软件 http://www.ziwang.com,Python量化第一品牌 文件名:zwQTBox.py 说明:import zwQTBox as zwx 常用zwQuant量化工具函数集 ''' import sys, os import numpy as np import tushare as ts import pandas as pd import pandas_datareader.data as web from numba import * im...
26.461872
120
0.528313
21f688874268be596a45665b1be6c773586da97e
880
py
Python
train_PNet.py
huylgia/MTCNN_LPR
6b6c338ecce400096472f6bdb22e268d66da257b
[ "MIT" ]
1
2022-03-21T10:36:25.000Z
2022-03-21T10:36:25.000Z
train_PNet.py
huylgia/MTCNN-Tensorflow
6b6c338ecce400096472f6bdb22e268d66da257b
[ "MIT" ]
null
null
null
train_PNet.py
huylgia/MTCNN-Tensorflow
6b6c338ecce400096472f6bdb22e268d66da257b
[ "MIT" ]
null
null
null
#coding:utf-8 from train_models.mtcnn_model import P_Net from train_models.train import train def train_PNet(base_dir, prefix, end_epoch, display, lr): """ train PNet :param dataset_dir: tfrecord path :param prefix: :param end_epoch: max epoch for training :param display: :param lr: learni...
27.5
90
0.679545
a238e63b69c952e850d8305beb5192deb4ca8034
7,438
py
Python
rltoolkit/buffer/replay_buffer.py
raznem/rlex
d24b964d80067becc81d86f6ce87e5be413b7049
[ "MIT" ]
null
null
null
rltoolkit/buffer/replay_buffer.py
raznem/rlex
d24b964d80067becc81d86f6ce87e5be413b7049
[ "MIT" ]
null
null
null
rltoolkit/buffer/replay_buffer.py
raznem/rlex
d24b964d80067becc81d86f6ce87e5be413b7049
[ "MIT" ]
null
null
null
import numpy as np import torch from rltoolkit.buffer.memory import Memory, MemoryMeta class MetaReplayBuffer(MemoryMeta): def __init__( self, size: int, obs_shape, obs_norm: bool = False, dtype: torch.dtype = torch.float32, *args, **kwargs, ): s...
30.735537
88
0.579726
80827082ab9857a25695d0ca17cc66d42cf60e16
183
py
Python
main/admin.py
guanta/guanta_deploy
387b23990b5a215c2a15174d2774838e28255139
[ "Apache-2.0" ]
null
null
null
main/admin.py
guanta/guanta_deploy
387b23990b5a215c2a15174d2774838e28255139
[ "Apache-2.0" ]
null
null
null
main/admin.py
guanta/guanta_deploy
387b23990b5a215c2a15174d2774838e28255139
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from main.models import * # Register your models here. admin.site.register(subscriber) admin.site.register(respos) admin.site.register(banque_info)
20.333333
32
0.808743
f7ddb3f96416bab76be2cbbfb4615d03d159b4ac
650
py
Python
src/molecule/cookiecutter/scenario/verifier/testinfra/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/{{cookiecutter.verifier_directory}}/conftest.py
gardar/molecule
756fc33512a294ebbdb1e0de8aac2dabb642609e
[ "MIT" ]
1,599
2015-11-18T01:40:26.000Z
2018-10-29T16:42:52.000Z
src/molecule/cookiecutter/scenario/verifier/testinfra/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/{{cookiecutter.verifier_directory}}/conftest.py
gardar/molecule
756fc33512a294ebbdb1e0de8aac2dabb642609e
[ "MIT" ]
1,232
2015-11-18T16:56:02.000Z
2018-10-27T03:51:50.000Z
src/molecule/cookiecutter/scenario/verifier/testinfra/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/{{cookiecutter.verifier_directory}}/conftest.py
gardar/molecule
756fc33512a294ebbdb1e0de8aac2dabb642609e
[ "MIT" ]
290
2015-11-19T18:16:41.000Z
2018-10-29T18:09:13.000Z
"""PyTest Fixtures.""" from __future__ import absolute_import import os import pytest def pytest_runtest_setup(item): """Run tests only when under molecule with testinfra installed.""" try: import testinfra except ImportError: pytest.skip("Test requires testinfra", allow_module_level=Tru...
28.26087
81
0.689231
0dd5c65f4ca1857d34598710710b400b2ee651a4
2,909
py
Python
tests/test_rio_info.py
gitoni/rasterio
2ef9e4815b05a35352f47298417ba223db2ca7d9
[ "BSD-3-Clause" ]
null
null
null
tests/test_rio_info.py
gitoni/rasterio
2ef9e4815b05a35352f47298417ba223db2ca7d9
[ "BSD-3-Clause" ]
null
null
null
tests/test_rio_info.py
gitoni/rasterio
2ef9e4815b05a35352f47298417ba223db2ca7d9
[ "BSD-3-Clause" ]
null
null
null
import click from click.testing import CliRunner import rasterio from rasterio.rio import cli, info def test_env(): runner = CliRunner() result = runner.invoke(info.env, ['--formats']) assert result.exit_code == 0 assert 'GTiff' in result.output def test_info_err(): runner = CliRunner() re...
25.077586
92
0.622894
f70d988d5ed014b8b9c619af3b5473012ca3b7cd
2,041
py
Python
tokenswap/app/__init__.py
trinity-project/trinity
081eba1d4294a3bed33ba18c3f7b862b8803ee22
[ "MIT" ]
60
2018-01-12T07:33:15.000Z
2021-12-28T23:06:28.000Z
tokenswap/app/__init__.py
trinity-project/trinity
081eba1d4294a3bed33ba18c3f7b862b8803ee22
[ "MIT" ]
13
2018-01-23T00:14:35.000Z
2020-04-23T00:03:31.000Z
tokenswap/app/__init__.py
trinity-project/trinity
081eba1d4294a3bed33ba18c3f7b862b8803ee22
[ "MIT" ]
13
2018-01-05T07:27:29.000Z
2021-01-06T16:45:05.000Z
# -*- coding: utf-8 -*- __author__ = 'xu' import os from functools import wraps from flask import Flask, Blueprint, jsonify from flask_peewee.db import Database from flask_peewee.auth import Auth from flask_debugtoolbar import DebugToolbarExtension from flask_mail import Mail from flask_login import LoginManager fro...
27.213333
136
0.709456
58b52df64dd5c46b6897e60431c0cec137c74b7c
8,115
py
Python
main.py
MrTeale/Tanda_Challenge
8f0d2117721028a6eef529b38486790eaa339fbb
[ "MIT" ]
null
null
null
main.py
MrTeale/Tanda_Challenge
8f0d2117721028a6eef529b38486790eaa339fbb
[ "MIT" ]
null
null
null
main.py
MrTeale/Tanda_Challenge
8f0d2117721028a6eef529b38486790eaa339fbb
[ "MIT" ]
null
null
null
import pandas as pd from collections import Counter from pprint import pprint import argparse # Variables settings_default_path = './Tanda_Settings_Info.csv' organisation_settings_path = './Tanda_Organisation_Settings.csv' USERS_CHANGE_X_DEFAULT = 50 def load_csv(filepath): '''Loads CSV files containing data ...
34.978448
110
0.619963
e334a872e9e4acf10878b071240898e4d0f9f794
6,809
py
Python
lib/datasets/voc_eval.py
ZongxianLee/dafrcnn-pytorch
b1c45e7c3be3eb514fc0419e5e474379477c91a7
[ "MIT" ]
1
2020-10-14T09:37:37.000Z
2020-10-14T09:37:37.000Z
lib/datasets/voc_eval.py
kinredon/dafrcnn-pytorch
b1c45e7c3be3eb514fc0419e5e474379477c91a7
[ "MIT" ]
null
null
null
lib/datasets/voc_eval.py
kinredon/dafrcnn-pytorch
b1c45e7c3be3eb514fc0419e5e474379477c91a7
[ "MIT" ]
1
2020-10-02T08:04:12.000Z
2020-10-02T08:04:12.000Z
# -------------------------------------------------------- # Fast/er R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Bharath Hariharan # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ import pr...
31.817757
76
0.573653
b87a17f9a42aa330a49939b0701c85bae2292ba0
672
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/counting-elements.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/counting-elements.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/counting-elements.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n) # Space: O(n) class Solution(object): def countElements(self, arr): """ :type arr: List[int] :rtype: int """ lookup = set(arr) return sum(1 for x in arr if x+1 in lookup) # Time: O(nlogn) # Space: O(1) class Solution(object): def countElements(se...
21
51
0.431548
9fda4df3e33929c8295a0ae607f0fa06302e745a
1,496
py
Python
src/oscar/apps/catalogue/managers.py
highbiza/django-oscar
7eba207a77e5dd56b04a63b9283a9d76da2f64ac
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/catalogue/managers.py
highbiza/django-oscar
7eba207a77e5dd56b04a63b9283a9d76da2f64ac
[ "BSD-3-Clause" ]
2
2019-03-13T16:15:54.000Z
2019-07-04T18:53:37.000Z
src/oscar/apps/catalogue/managers.py
highbiza/django-oscar
7eba207a77e5dd56b04a63b9283a9d76da2f64ac
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.db.models import Count class ProductQuerySet(models.query.QuerySet): def base_queryset(self): """ Applies select_related and prefetch_related for commonly related models to save on queries """ return self.select_related('product_cla...
29.333333
114
0.679813
edd08e17f23bdded1860982ccf912e2650e19953
2,023
py
Python
aiogram_tools/_models.py
LDmitriy7/aiogram-tools
e1d00b9707b85930522e81188875d737b7e67f02
[ "MIT" ]
1
2021-09-05T14:46:40.000Z
2021-09-05T14:46:40.000Z
aiogram_tools/_models.py
LDmitriy7/aiogram-tools
e1d00b9707b85930522e81188875d737b7e67f02
[ "MIT" ]
null
null
null
aiogram_tools/_models.py
LDmitriy7/aiogram-tools
e1d00b9707b85930522e81188875d737b7e67f02
[ "MIT" ]
null
null
null
"""Contain all data models.""" from __future__ import annotations from dataclasses import dataclass, field, fields, asdict, Field from typing import Union, TypeVar from bson import ObjectId T = TypeVar('T') # TODO: warning EmptyList = field(default_factory=list) EmptyDict = field(default_factory=dict) @dataclass ...
25.607595
69
0.627781
20d35bfeba8b6951ebb73234c98c0ae52be50fb0
2,469
py
Python
scripts/lanenet_data_process.py
mageofboy/pylot
c3154dc24c9429b9916274894c72ef92e03c946d
[ "Apache-2.0" ]
231
2019-06-05T00:22:00.000Z
2022-03-28T06:15:00.000Z
scripts/lanenet_data_process.py
akhilkanduri/pylot_edited
d1295a42f0edd79670dc64053824a3e075d433e2
[ "Apache-2.0" ]
108
2019-06-27T16:28:01.000Z
2022-03-28T19:14:18.000Z
scripts/lanenet_data_process.py
akhilkanduri/pylot_edited
d1295a42f0edd79670dc64053824a3e075d433e2
[ "Apache-2.0" ]
80
2019-06-07T01:08:13.000Z
2022-03-28T01:44:42.000Z
from absl import app, flags import os from pathlib import Path import re FLAGS = flags.FLAGS flags.DEFINE_string('data_path', 'data/', 'Main path where data is logged, not including town and start') flags.DEFINE_string('output_path', 'data/lanenet/', 'Path where to place lanenet structured data') flags.DEFINE_string('...
41.847458
105
0.605508
f5d19a72fd080c3c69241a8268d902ac66e5f55d
4,951
py
Python
sdk/lusid/models/version.py
mneedham/lusid-sdk-python
edabec16b357ba3fc48a53f3faacb4f94b18843e
[ "MIT" ]
null
null
null
sdk/lusid/models/version.py
mneedham/lusid-sdk-python
edabec16b357ba3fc48a53f3faacb4f94b18843e
[ "MIT" ]
null
null
null
sdk/lusid/models/version.py
mneedham/lusid-sdk-python
edabec16b357ba3fc48a53f3faacb4f94b18843e
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.2808 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Version(object): """NOTE: This class is auto ...
30.94375
161
0.597859
1df9285269ebb60de199f9ca478d61a1dfc1ff7b
7,013
py
Python
py2030/component_manager.py
markkorput/py2030
d80ac09c5e76c4ca4d8e295bd1814df7c84677ea
[ "MIT" ]
null
null
null
py2030/component_manager.py
markkorput/py2030
d80ac09c5e76c4ca4d8e295bd1814df7c84677ea
[ "MIT" ]
11
2016-04-07T08:33:02.000Z
2021-03-25T21:27:18.000Z
py2030/component_manager.py
markkorput/py2030
d80ac09c5e76c4ca4d8e295bd1814df7c84677ea
[ "MIT" ]
null
null
null
import copy, sys from datetime import datetime import logging logging.basicConfig(level=logging.WARNING) from .event_manager import EventManager from .utils.config_file import ConfigFile class Context: def __init__(self, event_manager): self.event_manager = event_manager class ComponentManager: def _...
37.10582
149
0.64024
44db522ff3a21a4b58c1e95ddc4683fa3e8ebbda
16,044
py
Python
tests/columns/test_datetime.py
revan57/clickhouse-driver
0477f17ac4edf5404d85cfdc8a4901b62c0f22c0
[ "MIT" ]
1
2019-09-18T05:33:11.000Z
2019-09-18T05:33:11.000Z
tests/columns/test_datetime.py
revan57/clickhouse-driver
0477f17ac4edf5404d85cfdc8a4901b62c0f22c0
[ "MIT" ]
null
null
null
tests/columns/test_datetime.py
revan57/clickhouse-driver
0477f17ac4edf5404d85cfdc8a4901b62c0f22c0
[ "MIT" ]
null
null
null
from contextlib import contextmanager from datetime import date, datetime import os from time import tzset from mock import patch from pytz import timezone, utc from tests.testcase import BaseTestCase from tests.util import require_server_version class DateTimeTestCase(BaseTestCase): def test_simple(self): ...
37.839623
79
0.528546
9baeb4927cf9158f6a2f2d454ff01fec9822a904
2,529
py
Python
Meraki_practice/tree.py
agancsos/scala
926537f60679f23187fa05c6d578261420698802
[ "MIT" ]
null
null
null
Meraki_practice/tree.py
agancsos/scala
926537f60679f23187fa05c6d578261420698802
[ "MIT" ]
null
null
null
Meraki_practice/tree.py
agancsos/scala
926537f60679f23187fa05c6d578261420698802
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################### # Name : tree.py # # Author : Abel Gancsos # # Version : v. 1.0.0.0 ...
40.790323
113
0.569
9d405e543d2d770c64a1d19305a72c5ce7834de5
604
py
Python
robot/reconnect.py
ksurct-officers/Mercury2018-19
ee90803c1b14727663c65ebc396cdb92c2b79667
[ "Apache-2.0" ]
null
null
null
robot/reconnect.py
ksurct-officers/Mercury2018-19
ee90803c1b14727663c65ebc396cdb92c2b79667
[ "Apache-2.0" ]
null
null
null
robot/reconnect.py
ksurct-officers/Mercury2018-19
ee90803c1b14727663c65ebc396cdb92c2b79667
[ "Apache-2.0" ]
null
null
null
import os, requests from time import sleep # This file automatically reconnects the wifi on the pi if it drops, used for LOS tests # DO NOT RUN THIS FILE WITHOUT A & AT THE END OF THE FILE BECAUSE THERE IS AN INFINITE LOOP SO THE REST OF THE SYSTEM WON'T START I ALREADY MADE THIS MISTAKE PLEASE DON'T DO IT AGAIN whi...
35.529412
182
0.663907
17502dbaa0904f524ed9ad2a666ae56e768ad2fd
3,678
py
Python
python/tvm/relay/frontend/nnvm_common.py
TharinduRusira/tvm
e77205532a4fc7e3de8f12aed1b4129813b43950
[ "Apache-2.0" ]
2
2018-12-26T13:44:45.000Z
2018-12-26T13:44:48.000Z
python/tvm/relay/frontend/nnvm_common.py
ganzhiliang/tvm
b076cad542524cb3744149d953c341b5815f6474
[ "Apache-2.0" ]
null
null
null
python/tvm/relay/frontend/nnvm_common.py
ganzhiliang/tvm
b076cad542524cb3744149d953c341b5815f6474
[ "Apache-2.0" ]
1
2018-12-21T14:03:56.000Z
2018-12-21T14:03:56.000Z
# pylint: disable=invalid-name, import-self, len-as-condition """Utility functions common to NNVM and MxNet conversion.""" from __future__ import absolute_import as _abs from .. import expr as _expr from .. import op as _op def _get_relay_op(op_name): op = _op for path in op_name.split("."): op = geta...
27.654135
79
0.636215
aeb8e6d23ab270ea997fe9ada22c6c75cc15b417
1,888
py
Python
nipype/interfaces/minc/tests/test_auto_VolSymm.py
dPys/nipype
75030b29297808e7c9a9e91b411b685154dff60b
[ "Apache-2.0" ]
1
2019-03-25T14:11:18.000Z
2019-03-25T14:11:18.000Z
nipype/interfaces/minc/tests/test_auto_VolSymm.py
dPys/nipype
75030b29297808e7c9a9e91b411b685154dff60b
[ "Apache-2.0" ]
1
2017-01-05T01:24:33.000Z
2017-01-05T01:24:33.000Z
nipype/interfaces/minc/tests/test_auto_VolSymm.py
wtriplett/nipype
388f140fceaf55438a987e9cdfa2a8e995428afd
[ "Apache-2.0" ]
1
2020-12-16T16:36:48.000Z
2020-12-16T16:36:48.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..minc import VolSymm def test_VolSymm_inputs(): input_map = dict( args=dict(argstr="%s",), clobber=dict(argstr="-clobber", usedefault=True,), config_file=dict(argstr="-config_file %s", extensions=None,), environ=dict(nohas...
32.551724
84
0.577331
ffcb2bf3362c6ab1fc4dbe65a12564197c41a098
25
py
Python
deep_networks/data/dicom/__init__.py
2PacIsAlive/deepnet.works
6b91a6cbac39ea23df1fb81ec348168cbf9b5d4d
[ "MIT" ]
null
null
null
deep_networks/data/dicom/__init__.py
2PacIsAlive/deepnet.works
6b91a6cbac39ea23df1fb81ec348168cbf9b5d4d
[ "MIT" ]
null
null
null
deep_networks/data/dicom/__init__.py
2PacIsAlive/deepnet.works
6b91a6cbac39ea23df1fb81ec348168cbf9b5d4d
[ "MIT" ]
2
2017-02-20T09:49:07.000Z
2017-02-21T03:12:47.000Z
import load import plot
6.25
11
0.8
00d539db4ce46243f824df677919ec9501c4d618
2,376
py
Python
qiskit/optimization/applications/ising/max_cut.py
johannes-weidenfeller/qiskit-aqua
7775410f4dabf09ec9f933bf411ead434550accf
[ "Apache-2.0" ]
15
2020-06-29T08:33:39.000Z
2022-02-12T00:28:51.000Z
qiskit/optimization/applications/ising/max_cut.py
johannes-weidenfeller/qiskit-aqua
7775410f4dabf09ec9f933bf411ead434550accf
[ "Apache-2.0" ]
4
2020-11-27T09:34:13.000Z
2021-04-30T21:13:41.000Z
qiskit/optimization/applications/ising/max_cut.py
johannes-weidenfeller/qiskit-aqua
7775410f4dabf09ec9f933bf411ead434550accf
[ "Apache-2.0" ]
11
2020-06-29T08:40:24.000Z
2022-02-24T17:39:16.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2020. # # 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 derivat...
28.97561
79
0.655724
49f3e019d845f40a52853e02e23dbfd52329de04
4,015
py
Python
src/mega/crypto.py
YoilyL/mega.py
8b795082e229c936ea900a5f3a26dac815a06a54
[ "Apache-2.0" ]
3
2020-06-03T17:03:37.000Z
2021-01-04T14:29:40.000Z
src/mega/crypto.py
YoilyL/mega.py
8b795082e229c936ea900a5f3a26dac815a06a54
[ "Apache-2.0" ]
null
null
null
src/mega/crypto.py
YoilyL/mega.py
8b795082e229c936ea900a5f3a26dac815a06a54
[ "Apache-2.0" ]
null
null
null
from Crypto.Cipher import AES import json import base64 import struct import binascii import random import sys # Python3 compatibility if sys.version_info < (3, ): def makebyte(x): return x def makestring(x): return x else: import codecs def makebyte(x): return codecs.latin_1...
23.479532
79
0.593026