hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
08f542af2a7a3047d78867ef1597957b41a8bde0
8,718
py
Python
app.py
dharmeshdev19/Library-Management
a0e0b1c9157cb155228299fa35586c6c1182fafa
[ "Apache-2.0" ]
null
null
null
app.py
dharmeshdev19/Library-Management
a0e0b1c9157cb155228299fa35586c6c1182fafa
[ "Apache-2.0" ]
null
null
null
app.py
dharmeshdev19/Library-Management
a0e0b1c9157cb155228299fa35586c6c1182fafa
[ "Apache-2.0" ]
null
null
null
from flask import Flask, flash, request, render_template, redirect, url_for, session, json from flask_sqlalchemy import SQLAlchemy from werkzeug.security import generate_password_hash, check_password_hash from flask.ext.session import Session from flask_bootstrap import Bootstrap import yaml from flask_datepicker impor...
38.236842
126
0.602891
from flask import Flask, flash, request, render_template, redirect, url_for, session, json from flask_sqlalchemy import SQLAlchemy from werkzeug.security import generate_password_hash, check_password_hash from flask.ext.session import Session from flask_bootstrap import Bootstrap import yaml from flask_datepicker impor...
true
true
08f542df6e9866cb438e0ed6d36b4bf7a6a7107e
728
py
Python
utility/common_utils/interactive.py
Glaciohound/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
52
2019-12-04T22:26:56.000Z
2022-03-31T17:04:15.000Z
utility/common_utils/interactive.py
guxiwuruo/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
6
2020-08-25T07:35:14.000Z
2021-09-09T04:57:09.000Z
utility/common_utils/interactive.py
guxiwuruo/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
5
2020-02-10T07:39:24.000Z
2021-06-23T02:53:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File : interactive.py # Author : Chi Han, Jiayuan Mao # Email : haanchi@gmail.com, maojiayuan@gmail.com # Date : 09.08.2019 # Last Modified Date: 09.08.2019 # Last Modified By : Chi Han, Jiayuan Mao # # This file is part ...
26.962963
61
0.570055
def yes_or_no(question): answer = None while answer is None: message = f'{question} [yes/no]: ' feedback = input(message) if feedback == 'yes': answer = True elif feedback == 'no': answer = False else: print('Invalid feedback, please ...
true
true
08f5446ececcf7127131055d460d66c4e6e62b0a
3,683
py
Python
test/functional/delegated_keys/test_jce.py
robin-aws/aws-dynamodb-encryption-python
25c7c3d80bfbe0deb661b4beb86f61b8b2f8545e
[ "Apache-2.0" ]
57
2018-08-23T00:32:37.000Z
2022-03-24T20:59:01.000Z
test/functional/delegated_keys/test_jce.py
robin-aws/aws-dynamodb-encryption-python
25c7c3d80bfbe0deb661b4beb86f61b8b2f8545e
[ "Apache-2.0" ]
91
2018-08-06T17:32:28.000Z
2022-03-31T10:23:02.000Z
test/functional/delegated_keys/test_jce.py
robin-aws/aws-dynamodb-encryption-python
25c7c3d80bfbe0deb661b4beb86f61b8b2f8545e
[ "Apache-2.0" ]
38
2018-10-17T12:02:37.000Z
2022-02-13T02:53:14.000Z
# Copyright 2018 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" file accompa...
43.329412
119
0.743416
from __future__ import division import logging import pytest from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization from dynamodb_encryption_sdk.delegated_keys.jce import JceNameLocalDelegatedKey from dynamodb_encryption_sdk.internal.crypto.jce_bridge.authen...
true
true
08f54474098b660abbf4cac9a009c0580ee386f9
2,051
py
Python
settings.py
Akshayvm98/Django-School
723d52db2cd3bc7665680a3adaf8687f97836d48
[ "MIT" ]
26
2015-08-04T00:13:27.000Z
2021-03-19T01:01:14.000Z
settings.py
Akshayvm98/Django-School
723d52db2cd3bc7665680a3adaf8687f97836d48
[ "MIT" ]
null
null
null
settings.py
Akshayvm98/Django-School
723d52db2cd3bc7665680a3adaf8687f97836d48
[ "MIT" ]
28
2015-01-19T15:10:15.000Z
2020-10-27T11:22:21.000Z
import os PROJECT_DIR = os.path.dirname(__file__) DEBUG = False TEMPLATE_DEBUG = DEBUG LIVE = True ADMINS = ( ('Skylar Saveland', 'skylar.saveland@gmail.com'), ) MANAGERS = ADMINS if not LIVE: DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = os.path.join(PROJECT_DIR, 'dev.db') else: from local_settings ...
23.848837
78
0.714286
import os PROJECT_DIR = os.path.dirname(__file__) DEBUG = False TEMPLATE_DEBUG = DEBUG LIVE = True ADMINS = ( ('Skylar Saveland', 'skylar.saveland@gmail.com'), ) MANAGERS = ADMINS if not LIVE: DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = os.path.join(PROJECT_DIR, 'dev.db') else: from local_settings ...
true
true
08f5447f4b8b2f6a5d136273c692602c4ccfdd3f
1,321
py
Python
detect_faces_in_images.py
LexSong/face_detection
e751a634d32dac71e4ac71278c160b280498eada
[ "MIT" ]
null
null
null
detect_faces_in_images.py
LexSong/face_detection
e751a634d32dac71e4ac71278c160b280498eada
[ "MIT" ]
null
null
null
detect_faces_in_images.py
LexSong/face_detection
e751a634d32dac71e4ac71278c160b280498eada
[ "MIT" ]
null
null
null
import click import cv2 from pathlib import Path from tqdm import tqdm from SFD_pytorch import FaceDetector from utils import crop_and_resize_face configs = { 'detector_model': "models/S3FD/s3fd_convert.pth", 'detector_resize': 480, } @click.command() @click.argument( 'input_dir', type=click.Path(ex...
26.42
79
0.682059
import click import cv2 from pathlib import Path from tqdm import tqdm from SFD_pytorch import FaceDetector from utils import crop_and_resize_face configs = { 'detector_model': "models/S3FD/s3fd_convert.pth", 'detector_resize': 480, } @click.command() @click.argument( 'input_dir', type=click.Path(ex...
true
true
08f544d5a7cfb8b72e5fa33c752ae32dc65b89f0
11,728
py
Python
fjcommon/config_parser.py
fab-jul/fjcommon
02e2941ffa4b699207b89da414c0103ee1b82441
[ "MIT" ]
2
2017-11-05T20:49:37.000Z
2018-08-23T14:18:00.000Z
fjcommon/config_parser.py
fab-jul/fjcommon
02e2941ffa4b699207b89da414c0103ee1b82441
[ "MIT" ]
2
2020-03-05T16:22:52.000Z
2021-05-17T11:33:03.000Z
fjcommon/config_parser.py
fab-jul/fjcommon
02e2941ffa4b699207b89da414c0103ee1b82441
[ "MIT" ]
1
2020-06-12T12:17:00.000Z
2020-06-12T12:17:00.000Z
""" Simple and Re-usable Configuration File Framework for tracking unique configuration files. ## Example File `base.cf`: ``` constrain network_type :: LINEAR, DNN network_type = LINEAR lr = 1e-5 batch_size_train = 25 batch_size_val = 0.5 * batch_size_train conv_params = {'f': 5, 'pad': 'zeros'} ``` File `lr_sweep...
29.616162
121
0.60752
import itertools import os import re from os import path from fjcommon import functools_ext as ft from fjcommon.assertions import assert_exc _PAT_CONSTRAIN = re.compile(r'^constrain\s+([^\s]+?)\s*::\s*(.+)$') _PAT_PARAM = re.compile(r'^([^\s]+?)\s*=\s*(.+)$') _SUB_SEP = os.environ.get('FJCOMMON_CONFIGP_SUBSEP',...
true
true
08f545cbe77eb5ddd603d22524d6d40e0bd5d4bf
434
py
Python
sodp/reports/migrations/0008_report_sitemap.py
ElHombreMorado8/sodp
e4a05620b633d261b22025af1d488cf767ba2e30
[ "Apache-2.0" ]
null
null
null
sodp/reports/migrations/0008_report_sitemap.py
ElHombreMorado8/sodp
e4a05620b633d261b22025af1d488cf767ba2e30
[ "Apache-2.0" ]
2
2021-07-15T10:13:58.000Z
2022-03-30T14:20:03.000Z
sodp/reports/migrations/0008_report_sitemap.py
ElHombreMorado8/sodp
e4a05620b633d261b22025af1d488cf767ba2e30
[ "Apache-2.0" ]
3
2021-07-03T07:13:48.000Z
2021-08-10T19:28:20.000Z
# Generated by Django 3.1.12 on 2021-07-20 16:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reports', '0007_auto_20210720_1601'), ] operations = [ migrations.AddField( model_name='report', name='sitemap', ...
22.842105
98
0.617512
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reports', '0007_auto_20210720_1601'), ] operations = [ migrations.AddField( model_name='report', name='sitemap', field=models.CharField(blank=True, max_...
true
true
08f5466ad6d04a8b3dc96bd70bd9b1acef151570
27,246
py
Python
biosignalsnotebooks/build/lib/biosignalsnotebooks/detect.py
csavur/biosignalsnotebooks
c99596741a854c58bdefb429906023ac48ddc3b7
[ "MIT" ]
1
2020-06-26T05:05:11.000Z
2020-06-26T05:05:11.000Z
biosignalsnotebooks/build/lib/biosignalsnotebooks/detect.py
csavur/biosignalsnotebooks
c99596741a854c58bdefb429906023ac48ddc3b7
[ "MIT" ]
null
null
null
biosignalsnotebooks/build/lib/biosignalsnotebooks/detect.py
csavur/biosignalsnotebooks
c99596741a854c58bdefb429906023ac48ddc3b7
[ "MIT" ]
null
null
null
""" List of functions intended to detect events in the acquired data. Available Functions ------------------- [Public] detect_r_peaks Function that applies the Pan-Tompkins algorithm for detection of R peaks. tachogram From ECG signal or from the list of samples where R peaks are located, this function gener...
34.576142
118
0.638919
from .conversion import raw_to_phy from .visualise import plot, opensignals_kwargs, opensignals_style, opensignals_color_pallet from .aux_functions import _butter_bandpass_filter, _moving_average import numpy from scipy.stats import linregress from scipy.signal import filtfilt, butter from bokeh.plotting import fig...
true
true
08f5471a47bc2d48eb47311778d639ab59b0438d
6,037
py
Python
devito/cgen_utils.py
rwalkerlewis/devito
262364e5f2855ad01a281d517d400704b7667420
[ "MIT" ]
null
null
null
devito/cgen_utils.py
rwalkerlewis/devito
262364e5f2855ad01a281d517d400704b7667420
[ "MIT" ]
null
null
null
devito/cgen_utils.py
rwalkerlewis/devito
262364e5f2855ad01a281d517d400704b7667420
[ "MIT" ]
null
null
null
from collections import OrderedDict import numpy as np import cgen as c from mpmath.libmp import prec_to_dps, to_str from sympy import Function from sympy.printing.ccode import C99CodePrinter class Allocator(object): """ Generate C strings to declare pointers, allocate and free memory. """ def __i...
30.336683
90
0.584562
from collections import OrderedDict import numpy as np import cgen as c from mpmath.libmp import prec_to_dps, to_str from sympy import Function from sympy.printing.ccode import C99CodePrinter class Allocator(object): def __init__(self): self.heap = OrderedDict() self.stack = OrderedDict() ...
true
true
08f54787110aa8b583585bf235699035f594c33e
4,677
py
Python
src/m6_summing.py
kriscija/03-AccumulatorsAndFunctionsWithParameters
03c5f34bf98b071f966d7704cb643709173fe35e
[ "MIT" ]
null
null
null
src/m6_summing.py
kriscija/03-AccumulatorsAndFunctionsWithParameters
03c5f34bf98b071f966d7704cb643709173fe35e
[ "MIT" ]
null
null
null
src/m6_summing.py
kriscija/03-AccumulatorsAndFunctionsWithParameters
03c5f34bf98b071f966d7704cb643709173fe35e
[ "MIT" ]
null
null
null
""" This module lets you practice the ACCUMULATOR pattern in its simplest classic forms: SUMMING: total = total + number Authors: David Mutchler, Valerie Galluzzi, Mark Hays, Amanda Stouder, their colleagues and Joe Krisciunas. """ # def main(): """ Calls the TEST functions in this module...
31.601351
72
0.487492
def main(): run_test_sum_cosines() run_test_sum_square_roots() def run_test_sum_cosines(): print() print('--------------------------------------------------') print('Testing the sum_cosines function:') print('---------------------------------------------...
true
true
08f547aca21c1340dc664c94296f215d118a62ca
475
py
Python
InvenTree/plugin/urls.py
rkalman/InvenTree
8ceff063f86394cd1be9f5c57e6302b79782a526
[ "MIT" ]
1
2022-03-10T16:42:59.000Z
2022-03-10T16:42:59.000Z
InvenTree/plugin/urls.py
cednore/InvenTree
a191e45511d5a8681042f6b52dd38f93510dfb48
[ "MIT" ]
null
null
null
InvenTree/plugin/urls.py
cednore/InvenTree
a191e45511d5a8681042f6b52dd38f93510dfb48
[ "MIT" ]
null
null
null
""" URL lookup for plugin app """ from django.urls import include, re_path from plugin import registry PLUGIN_BASE = 'plugin' # Constant for links def get_plugin_urls(): """ Returns a urlpattern that can be integrated into the global urls """ urls = [] for plugin in registry.plugins.values(...
19
68
0.661053
from django.urls import include, re_path from plugin import registry PLUGIN_BASE = 'plugin' def get_plugin_urls(): urls = [] for plugin in registry.plugins.values(): if plugin.mixin_enabled('urls'): urls.append(plugin.urlpatterns) return re_path(f'^{PLUGIN_BASE}/', include((url...
true
true
08f548377ce5efc63b63afb9f3461acddc1a5387
4,715
py
Python
qr_wifi.py
tom-mi/arch-qr-wifi
f25af43d30df9f4cc20f76d1fcbe9e3a51df7d1d
[ "Unlicense" ]
1
2021-09-13T14:47:42.000Z
2021-09-13T14:47:42.000Z
qr_wifi.py
tom-mi/arch-qr-wifi
f25af43d30df9f4cc20f76d1fcbe9e3a51df7d1d
[ "Unlicense" ]
null
null
null
qr_wifi.py
tom-mi/arch-qr-wifi
f25af43d30df9f4cc20f76d1fcbe9e3a51df7d1d
[ "Unlicense" ]
null
null
null
#!/usr/bin/python import argparse import os import pathlib import shlex import subprocess import typing PREFIX = b'QR-Code:WIFI:' class Wifi(typing.NamedTuple): ssid: str security: str password: str = '' hidden: bool = False def main(): config = parse_args() if not config.interface: ...
31.644295
113
0.588547
import argparse import os import pathlib import shlex import subprocess import typing PREFIX = b'QR-Code:WIFI:' class Wifi(typing.NamedTuple): ssid: str security: str password: str = '' hidden: bool = False def main(): config = parse_args() if not config.interface: config.interface...
true
true
08f54952c5f0437b157a28f4286477405b724bb9
4,599
py
Python
app/main/views.py
Amukozoberit/Quotes2
80795a5208f9442bf954170a0e4b22d71c53eb81
[ "MIT" ]
null
null
null
app/main/views.py
Amukozoberit/Quotes2
80795a5208f9442bf954170a0e4b22d71c53eb81
[ "MIT" ]
null
null
null
app/main/views.py
Amukozoberit/Quotes2
80795a5208f9442bf954170a0e4b22d71c53eb81
[ "MIT" ]
null
null
null
from app.moderator.forms import RegisterArticle from app.main.forms import CommentsForm, MailSub from app.decorators import admin_required from app.request import get_quotes from flask import render_template,redirect,url_for,abort,flash,request from . import main from ..decorators import admin_required,permission_requ...
32.617021
174
0.750163
from app.moderator.forms import RegisterArticle from app.main.forms import CommentsForm, MailSub from app.decorators import admin_required from app.request import get_quotes from flask import render_template,redirect,url_for,abort,flash,request from . import main from ..decorators import admin_required,permission_requ...
true
true
08f549777c2f5f8925a8cc5bc0e6fdda4cf13abd
31,666
py
Python
src/sage/functions/gamma.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
null
null
null
src/sage/functions/gamma.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
null
null
null
src/sage/functions/gamma.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
null
null
null
""" Gamma and related functions """ from sage.symbolic.function import GinacFunction, BuiltinFunction from sage.libs.pynac.pynac import (register_symbol, symbol_table) from sage.structure.all import parent as s_parent from sage.rings.all import Rational, ComplexField from sage.rings.complex_mpfr import is_ComplexNumbe...
30.215649
320
0.500758
from sage.symbolic.function import GinacFunction, BuiltinFunction from sage.libs.pynac.pynac import (register_symbol, symbol_table) from sage.structure.all import parent as s_parent from sage.rings.all import Rational, ComplexField from sage.rings.complex_mpfr import is_ComplexNumber from sage.functions.exp_integral i...
true
true
08f54a24814e8fe519d3893d0241bdff815d06f9
1,595
py
Python
day7/part2/amplifiers.py
gmelodie/adventofcode2019
4f18945b8b671590d6998fa7df8c373fbc641dbf
[ "MIT" ]
null
null
null
day7/part2/amplifiers.py
gmelodie/adventofcode2019
4f18945b8b671590d6998fa7df8c373fbc641dbf
[ "MIT" ]
null
null
null
day7/part2/amplifiers.py
gmelodie/adventofcode2019
4f18945b8b671590d6998fa7df8c373fbc641dbf
[ "MIT" ]
null
null
null
import sys import intcode from itertools import cycle combinations = [] LOW_SET = 5 HIGH_SET = 9 def combine(instructions, used): if len(used) == 5: combinations.append(used) for i in range(LOW_SET, HIGH_SET+1): if i not in used: aux = used.copy() aux.append(i) ...
25.31746
67
0.561755
import sys import intcode from itertools import cycle combinations = [] LOW_SET = 5 HIGH_SET = 9 def combine(instructions, used): if len(used) == 5: combinations.append(used) for i in range(LOW_SET, HIGH_SET+1): if i not in used: aux = used.copy() aux.append(i) ...
true
true
08f54a3d39594b14df306ebb6b2c4996803bef39
471
py
Python
scripts/identify_stddev.py
renan-cunha/PRECON
deecf81d091ba91b5c47456297f444d969a3d84a
[ "MIT" ]
null
null
null
scripts/identify_stddev.py
renan-cunha/PRECON
deecf81d091ba91b5c47456297f444d969a3d84a
[ "MIT" ]
2
2020-01-20T17:20:56.000Z
2020-01-20T17:21:06.000Z
scripts/identify_stddev.py
renan-cunha/PRECON
deecf81d091ba91b5c47456297f444d969a3d84a
[ "MIT" ]
null
null
null
import gym from stable_baselines.common.policies import MlpPolicy from stable_baselines.common import make_vec_env from stable_baselines import A2C # Parallel environments env = make_vec_env('Pendulum-v0', n_envs=4) model = A2C(MlpPolicy, env, verbose=1) model.learn(total_timesteps=25000) obs = env.reset() while Tr...
26.166667
54
0.766454
import gym from stable_baselines.common.policies import MlpPolicy from stable_baselines.common import make_vec_env from stable_baselines import A2C env = make_vec_env('Pendulum-v0', n_envs=4) model = A2C(MlpPolicy, env, verbose=1) model.learn(total_timesteps=25000) obs = env.reset() while True: print(model.acti...
true
true
08f54a8ca3f51bf6ace99bd183daeb604744aa88
3,137
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/11_features/numtrees_20/rule_2.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/11_features/numtrees_20/rule_2.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/11_features/numtrees_20/rule_2.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Passanger, obj[1]: Time, obj[2]: Coupon, obj[3]: Age, obj[4]: Education, obj[5]: Occupation, obj[6]: Bar, obj[7]: Coffeehouse, obj[8]: Restaurant20to50, obj[9]: Direction_same, obj[10]: Distance # {"feature": "Coupon", "instances": 51, "metric_value": 0.9367, "depth": 1} if obj[2]>0: ...
35.647727
226
0.535225
def findDecision(obj): if obj[2]>0: if obj[7]>0.0: if obj[3]<=5: if obj[4]<=0: if obj[9]<=0: if obj[6]>0.0: return 'True' elif obj[6]<=0.0: if obj[1]>0: if obj[5]>6: if obj[0]<=1: if obj[8]<=2.0: ...
true
true
08f54b87e552e3fd00b7244ad9b3174ff68f58b5
4,093
py
Python
benchmark/startCirq1408.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq1408.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq1408.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=5 # total number=55 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
39.355769
77
0.653066
import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np from cirq.contrib.svg import SVGCircuit def make_circuit(n: int, input_qubit): c = cirq.Circuit() c.append(cirq.H.on(input_qubit[0])) c.append(cirq.CNOT.on(input_qubit[2],input_qubit[0...
true
true
08f54c11ae55e877f2d906aa2746db834f9b5ff4
4,213
py
Python
test_test.py
rodemananthony/winxbox-script
6c16b42565f0e49902b6301f463acb10c3a600fb
[ "MIT" ]
null
null
null
test_test.py
rodemananthony/winxbox-script
6c16b42565f0e49902b6301f463acb10c3a600fb
[ "MIT" ]
null
null
null
test_test.py
rodemananthony/winxbox-script
6c16b42565f0e49902b6301f463acb10c3a600fb
[ "MIT" ]
null
null
null
# Generated by Selenium IDE import pytest import time import json from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.wait import WebDriverWa...
36.008547
123
0.657726
import pytest import time import json from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.c...
true
true
08f54f1f25f752d9ce6afe55b587e416cea2d874
4,380
py
Python
fastlinkcheck/linkcheck.py
manisnesan/fastlinkcheck
09e07f157dcc3f9ebd86d77d54a57eaaff1ba850
[ "Apache-2.0" ]
9
2020-11-29T12:05:04.000Z
2021-08-01T20:45:06.000Z
fastlinkcheck/linkcheck.py
manisnesan/fastlinkcheck
09e07f157dcc3f9ebd86d77d54a57eaaff1ba850
[ "Apache-2.0" ]
107
2020-11-06T22:46:00.000Z
2022-03-20T03:07:36.000Z
fastlinkcheck/linkcheck.py
manisnesan/fastlinkcheck
09e07f157dcc3f9ebd86d77d54a57eaaff1ba850
[ "Apache-2.0" ]
4
2020-12-01T21:52:11.000Z
2021-10-02T12:58:50.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: linkcheck.ipynb (unless otherwise specified). __all__ = ['get_links', 'local_urls', 'html_exists', 'broken_local', 'broken_urls', 'link_check'] # Cell from fastcore.all import * from html.parser import HTMLParser from urllib.parse import urlparse,urlunparse from fastcore.sc...
41.320755
111
0.661644
__all__ = ['get_links', 'local_urls', 'html_exists', 'broken_local', 'broken_urls', 'link_check'] from fastcore.all import * from html.parser import HTMLParser from urllib.parse import urlparse,urlunparse from fastcore.script import SCRIPT_INFO import sys class _HTMLParseAttrs(HTMLParser): def reset(self): ...
true
true
08f55010d49afae78bb6a76f888220a31dc79763
2,194
py
Python
test/pytest/test_data_processors.py
dmulyalin/salt-nornir
2fbbe136f5a462e7981ce638a3dd15463de63d18
[ "MIT" ]
12
2020-08-24T10:44:59.000Z
2022-03-23T03:41:20.000Z
test/pytest/test_data_processors.py
dmulyalin/salt-nornir
2fbbe136f5a462e7981ce638a3dd15463de63d18
[ "MIT" ]
3
2021-02-15T20:55:20.000Z
2021-09-26T22:50:02.000Z
test/pytest/test_data_processors.py
dmulyalin/salt-nornir
2fbbe136f5a462e7981ce638a3dd15463de63d18
[ "MIT" ]
1
2021-05-23T15:47:10.000Z
2021-05-23T15:47:10.000Z
import logging import pprint import json log = logging.getLogger(__name__) try: import salt.client import salt.config import salt.utils.event import salt.exceptions HAS_SALT = True except: HAS_SALT = False raise SystemExit("SALT Nonrir Tests - failed importing SALT libraries") if HAS_SAL...
31.342857
83
0.634913
import logging import pprint import json log = logging.getLogger(__name__) try: import salt.client import salt.config import salt.utils.event import salt.exceptions HAS_SALT = True except: HAS_SALT = False raise SystemExit("SALT Nonrir Tests - failed importing SALT libraries") if HAS_SAL...
true
true
08f550a0de7ffeaf4321130243e9167c825733d7
891
py
Python
chapter13/exercises/exercise07/sorts.py
YordanIH/Intro_to_CS_w_Python
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
[ "MIT" ]
null
null
null
chapter13/exercises/exercise07/sorts.py
YordanIH/Intro_to_CS_w_Python
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
[ "MIT" ]
null
null
null
chapter13/exercises/exercise07/sorts.py
YordanIH/Intro_to_CS_w_Python
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
[ "MIT" ]
null
null
null
def find_min(L: list, b: int) -> int: """Precondition: L[b:] is not empty. Return the index of the smallest value in L[b:]. >>> find_min([3, -1, 7, 5], 0) 1 >>> find_min([3, -1, 7, 5], 1) 1 >>> find_min([3, -1, 7, 5], 2) 3 """ smallest = b # The index of the smallest so far ...
22.846154
55
0.47587
def find_min(L: list, b: int) -> int: smallest = b i = b + 1 while i != len(L): if L[i] < L[smallest]: smallest = i i = i + 1 return smallest def selection_sort(L: list) -> None: i = 0 while i != len(L): smallest = find_min(L, i) ...
true
true
08f550b4f39b9263c7959a13e1da9ae5e6770fc7
1,264
py
Python
setup.py
bioexcel/biobb_haddock
bbc5fdf2da7c15608e2957e26c4a4aec45170b95
[ "Apache-2.0" ]
null
null
null
setup.py
bioexcel/biobb_haddock
bbc5fdf2da7c15608e2957e26c4a4aec45170b95
[ "Apache-2.0" ]
null
null
null
setup.py
bioexcel/biobb_haddock
bbc5fdf2da7c15608e2957e26c4a4aec45170b95
[ "Apache-2.0" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="biobb_haddock", version="3.8.0", author="Biobb developers", author_email="pau.andrio@bsc.es", description="biobb_haddock is the Biobb module collection to compute information-driven flexib...
34.162162
127
0.657437
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="biobb_haddock", version="3.8.0", author="Biobb developers", author_email="pau.andrio@bsc.es", description="biobb_haddock is the Biobb module collection to compute information-driven flexib...
true
true
08f550fe13d2fdd4ede8277400c1586de273cff8
413
py
Python
test_package/conanfile.py
MrShisd/tiny-AES-c
ca85e00de963102d3999ea5fa865c0deff6370d3
[ "Unlicense" ]
2,565
2017-08-16T12:32:33.000Z
2022-03-31T11:25:07.000Z
test_package/conanfile.py
MrShisd/tiny-AES-c
ca85e00de963102d3999ea5fa865c0deff6370d3
[ "Unlicense" ]
155
2017-08-18T08:25:56.000Z
2022-03-10T02:13:39.000Z
test_package/conanfile.py
MrShisd/tiny-AES-c
ca85e00de963102d3999ea5fa865c0deff6370d3
[ "Unlicense" ]
939
2017-08-17T03:26:18.000Z
2022-03-30T07:12:18.000Z
from conans import ConanFile, CMake, tools import os class TinyAesCTestConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake" def build(self): cmake = CMake(self) cmake.configure() cmake.build() def test(self): if not tools.cross_buil...
22.944444
53
0.600484
from conans import ConanFile, CMake, tools import os class TinyAesCTestConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake" def build(self): cmake = CMake(self) cmake.configure() cmake.build() def test(self): if not tools.cross_buil...
true
true
08f5513a0041c541246cccd3f0a2c7d10876755d
89
py
Python
tests/test_hodolbot.py
solar0037/hodolbot
f758375efce2dede58d920d41cab4a8ad38d1d58
[ "MIT" ]
null
null
null
tests/test_hodolbot.py
solar0037/hodolbot
f758375efce2dede58d920d41cab4a8ad38d1d58
[ "MIT" ]
3
2021-08-02T01:59:04.000Z
2021-08-02T01:59:15.000Z
tests/test_hodolbot.py
solar0037/hodolbot
f758375efce2dede58d920d41cab4a8ad38d1d58
[ "MIT" ]
null
null
null
from hodolbot import __version__ def test_version(): assert __version__ == '0.1.0'
14.833333
33
0.719101
from hodolbot import __version__ def test_version(): assert __version__ == '0.1.0'
true
true
08f551db4389e6de1b9c9ba88e2fc8472163783f
6,246
py
Python
vendor/packages/carrot/carrot/backends/pystomp.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
34
2015-01-13T14:38:10.000Z
2022-02-18T05:36:33.000Z
vendor/packages/carrot/carrot/backends/pystomp.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
310
2015-01-07T14:39:35.000Z
2016-05-02T17:41:30.000Z
vendor/packages/carrot/carrot/backends/pystomp.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
22
2015-01-15T13:46:03.000Z
2020-07-24T10:08:51.000Z
import time import socket from itertools import count from stompy import Client from stompy import Empty as QueueEmpty from carrot.backends.base import BaseMessage, BaseBackend DEFAULT_PORT = 61613 class Message(BaseMessage): """A message received by the STOMP broker. Usually you don't insantiate message ...
31.23
76
0.618956
import time import socket from itertools import count from stompy import Client from stompy import Empty as QueueEmpty from carrot.backends.base import BaseMessage, BaseBackend DEFAULT_PORT = 61613 class Message(BaseMessage): def __init__(self, backend, frame, **kwargs): self._frame = frame se...
true
true
08f55255a5fbd399b6aaf67a3177388fe40f52c5
4,081
py
Python
c1_fs.py
MS642/FileSystem
d39ea47a6a7af9ca46b60403750a7e8bb04db044
[ "MIT" ]
null
null
null
c1_fs.py
MS642/FileSystem
d39ea47a6a7af9ca46b60403750a7e8bb04db044
[ "MIT" ]
null
null
null
c1_fs.py
MS642/FileSystem
d39ea47a6a7af9ca46b60403750a7e8bb04db044
[ "MIT" ]
null
null
null
import argparse import sys import os import math available_storage = set() storage_size = 1 current_files = {} block_size = 1024 def _initializeFileSystem(capacity_MB=1, block_size_KB=1, available_storage= available_storage): global storage_size storage_size = capacity_MB global block_size block_size...
35.181034
125
0.619456
import argparse import sys import os import math available_storage = set() storage_size = 1 current_files = {} block_size = 1024 def _initializeFileSystem(capacity_MB=1, block_size_KB=1, available_storage= available_storage): global storage_size storage_size = capacity_MB global block_size block_size...
true
true
08f5529cc5e507e6fc86b165a6bd6b7deaa731ee
1,137
py
Python
fidesctl/src/fidesctl/cli/annotate_commands.py
sanders41/fides
014b4e5f90dac4a0c04f28f656314abd9e00a6c4
[ "Apache-2.0" ]
null
null
null
fidesctl/src/fidesctl/cli/annotate_commands.py
sanders41/fides
014b4e5f90dac4a0c04f28f656314abd9e00a6c4
[ "Apache-2.0" ]
null
null
null
fidesctl/src/fidesctl/cli/annotate_commands.py
sanders41/fides
014b4e5f90dac4a0c04f28f656314abd9e00a6c4
[ "Apache-2.0" ]
null
null
null
"""Contains the annotate group of CLI commands for Fidesctl.""" import click from fidesctl.cli.utils import with_analytics from fidesctl.core import annotate_dataset as _annotate_dataset @click.group(name="annotate") @click.pass_context def annotate(ctx: click.Context) -> None: """ Annotate fidesctl resourc...
23.6875
82
0.682498
import click from fidesctl.cli.utils import with_analytics from fidesctl.core import annotate_dataset as _annotate_dataset @click.group(name="annotate") @click.pass_context def annotate(ctx: click.Context) -> None: @annotate.command(name="dataset") @click.pass_context @click.argument("input_filename", type=str) @...
true
true
08f5531a0df879b5102d4e32056565fce518df59
2,014
py
Python
test/functional/p2p_invalid_locator.py
bizzy401/BazCoin
a8868b45533a7d0d8bd2fbec71a5b2c92517bacd
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_locator.py
bizzy401/BazCoin
a8868b45533a7d0d8bd2fbec71a5b2c92517bacd
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_locator.py
bizzy401/BazCoin
a8868b45533a7d0d8bd2fbec71a5b2c92517bacd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2020 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 node responses to invalid locators. """ from test_framework.messages import msg_getheaders, msg_g...
45.772727
135
0.696127
from test_framework.messages import msg_getheaders, msg_getblocks, MAX_LOCATOR_SZ from test_framework.p2p import P2PInterface from test_framework.test_framework import BazCoinTestFramework class InvalidLocatorTest(BazCoinTestFramework): def set_test_params(self): self.num_nodes = 1 self.setup_cle...
true
true
08f5536256c545485db5b3ee179c567c498bbce2
640
py
Python
manage.py
Tracymbone/my_personal_blog
07d00b8540aa22e7f12b09614874c0fa908ee4b4
[ "MIT" ]
null
null
null
manage.py
Tracymbone/my_personal_blog
07d00b8540aa22e7f12b09614874c0fa908ee4b4
[ "MIT" ]
null
null
null
manage.py
Tracymbone/my_personal_blog
07d00b8540aa22e7f12b09614874c0fa908ee4b4
[ "MIT" ]
null
null
null
from app import create_app, db from flask_script import Manager, Server from app.models import User,Post,Comment from flask_migrate import Migrate, MigrateCommand app = create_app('production') migrate = Migrate(app,db) manager = Manager(app) manager.add_command('server', Server) manager.add_command('db',MigrateComm...
22.857143
69
0.754688
from app import create_app, db from flask_script import Manager, Server from app.models import User,Post,Comment from flask_migrate import Migrate, MigrateCommand app = create_app('production') migrate = Migrate(app,db) manager = Manager(app) manager.add_command('server', Server) manager.add_command('db',MigrateComm...
true
true
08f554910cd39674eb62b66c7c8ed621df4bcdf1
662
py
Python
sleep_logger/users/tests/test_urls.py
mkcastro/sleep_tracker
74cb3fa733fca10420332ad2b9e3d1999f2319a5
[ "MIT" ]
null
null
null
sleep_logger/users/tests/test_urls.py
mkcastro/sleep_tracker
74cb3fa733fca10420332ad2b9e3d1999f2319a5
[ "MIT" ]
4
2021-05-12T05:30:36.000Z
2021-11-24T02:05:42.000Z
sleep_logger/users/tests/test_urls.py
mkcastro/sleep_tracker
74cb3fa733fca10420332ad2b9e3d1999f2319a5
[ "MIT" ]
null
null
null
import pytest from django.urls import resolve, reverse from sleep_logger.users.models import User pytestmark = pytest.mark.django_db def test_detail(user: User): assert ( reverse("users:detail", kwargs={"username": user.username}) == f"/users/{user.username}/" ) assert resolve(f"/users/{...
26.48
74
0.678248
import pytest from django.urls import resolve, reverse from sleep_logger.users.models import User pytestmark = pytest.mark.django_db def test_detail(user: User): assert ( reverse("users:detail", kwargs={"username": user.username}) == f"/users/{user.username}/" ) assert resolve(f"/users/{...
true
true
08f5563068234e396eeb73ed133934f172fe8d8d
2,089
py
Python
test/test_create_coins_transaction_from_address_for_whole_amount_e409.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
test/test_create_coins_transaction_from_address_for_whole_amount_e409.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
test/test_create_coins_transaction_from_address_for_whole_amount_e409.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
46.422222
484
0.821924
import sys import unittest import cryptoapis from cryptoapis.model.banned_ip_address_details import BannedIpAddressDetails from cryptoapis.model.invalid_data import InvalidData from cryptoapis.model.wallet_as_a_service_address_balance_not_enough import WalletAsAServiceAddressBalanceNotEnough from cryptoapis.model.wa...
true
true
08f5569f17458a93f5691b0566ea120dd4002dd2
3,156
py
Python
lego/apps/feed/feed_handlers/comment_handler.py
andrinelo/lego
9b53c8fe538d9107b980a70e2a21fb487cc3b290
[ "MIT" ]
null
null
null
lego/apps/feed/feed_handlers/comment_handler.py
andrinelo/lego
9b53c8fe538d9107b980a70e2a21fb487cc3b290
[ "MIT" ]
null
null
null
lego/apps/feed/feed_handlers/comment_handler.py
andrinelo/lego
9b53c8fe538d9107b980a70e2a21fb487cc3b290
[ "MIT" ]
null
null
null
from lego.apps.comments.models import Comment from lego.apps.comments.notifications import CommentNotification, CommentReplyNotification from lego.apps.feed.activities import Activity from lego.apps.feed.feed_handlers.base_handler import BaseHandler from lego.apps.feed.feed_manager import feed_manager from lego.apps.fe...
40.461538
98
0.662231
from lego.apps.comments.models import Comment from lego.apps.comments.notifications import CommentNotification, CommentReplyNotification from lego.apps.feed.activities import Activity from lego.apps.feed.feed_handlers.base_handler import BaseHandler from lego.apps.feed.feed_manager import feed_manager from lego.apps.fe...
true
true
08f557b023631da594d6f39111aba45c4bda3ef9
858
py
Python
vector.py
LRAbbade/RenderAlgorithms
fbc39b9d4a75d3c560f8ef626bb189ae941e0437
[ "MIT" ]
6
2018-11-30T13:57:30.000Z
2020-10-29T06:46:09.000Z
vector.py
LRAbbade/RenderAlgorithms
fbc39b9d4a75d3c560f8ef626bb189ae941e0437
[ "MIT" ]
null
null
null
vector.py
LRAbbade/RenderAlgorithms
fbc39b9d4a75d3c560f8ef626bb189ae941e0437
[ "MIT" ]
null
null
null
class Vector3: def __init__(self, x=0, y=0, z=0): self.x = x self.y = y self.z = z def is_closer_than(self, z): return self.z < z @staticmethod def subdivide_region(begin, end): return [ (Vector3(begin.x, begin.y, begin.z), Vector3(end....
29.586207
82
0.480186
class Vector3: def __init__(self, x=0, y=0, z=0): self.x = x self.y = y self.z = z def is_closer_than(self, z): return self.z < z @staticmethod def subdivide_region(begin, end): return [ (Vector3(begin.x, begin.y, begin.z), Vector3(end....
true
true
08f557b1e2d2970afc23ad0d4d669bd5fb0eba64
2,250
py
Python
PlanarAlly/api/connection.py
schemen/PlanarAlly
b7ed4feb81798d5245923057586a42339e44552f
[ "MIT" ]
null
null
null
PlanarAlly/api/connection.py
schemen/PlanarAlly
b7ed4feb81798d5245923057586a42339e44552f
[ "MIT" ]
null
null
null
PlanarAlly/api/connection.py
schemen/PlanarAlly
b7ed4feb81798d5245923057586a42339e44552f
[ "MIT" ]
null
null
null
from urllib.parse import unquote from aiohttp_security import authorized_userid from api.location import load_location from app import logger, sio, state from models import Asset, Location, Note, Room, User @sio.on("connect", namespace="/planarally") async def connect(sid, environ): user = await authorized_user...
31.690141
84
0.562667
from urllib.parse import unquote from aiohttp_security import authorized_userid from api.location import load_location from app import logger, sio, state from models import Asset, Location, Note, Room, User @sio.on("connect", namespace="/planarally") async def connect(sid, environ): user = await authorized_user...
true
true
08f55802e201ef419f752611f01881af249bd179
253
py
Python
env/lib/python3.7/site-packages/sklearn/mixture/__init__.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
25
2019-03-08T01:03:03.000Z
2022-02-14T17:38:32.000Z
venv/lib/python3.7/site-packages/sklearn/mixture/__init__.py
John1001Song/Big-Data-Robo-Adviser
9444dce96954c546333d5aecc92a06c3bfd19aa5
[ "MIT" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
venv/lib/python3.7/site-packages/sklearn/mixture/__init__.py
John1001Song/Big-Data-Robo-Adviser
9444dce96954c546333d5aecc92a06c3bfd19aa5
[ "MIT" ]
31
2019-01-15T20:16:50.000Z
2022-03-01T05:47:38.000Z
""" The :mod:`sklearn.mixture` module implements mixture modeling algorithms. """ from .gaussian_mixture import GaussianMixture from .bayesian_mixture import BayesianGaussianMixture __all__ = ['GaussianMixture', 'BayesianGaussianMixture']
23
73
0.774704
from .gaussian_mixture import GaussianMixture from .bayesian_mixture import BayesianGaussianMixture __all__ = ['GaussianMixture', 'BayesianGaussianMixture']
true
true
08f55860d7f9085a705ccab59a5221833e2d5a49
28,083
py
Python
orcid_service/views.py
nemanjamart/orcid-service
596973819b904ad28a9d84a773db09d5039bee26
[ "MIT" ]
1
2017-11-06T22:45:48.000Z
2017-11-06T22:45:48.000Z
orcid_service/views.py
nemanjamart/orcid-service
596973819b904ad28a9d84a773db09d5039bee26
[ "MIT" ]
31
2015-02-23T14:29:31.000Z
2021-03-10T14:59:52.000Z
orcid_service/views.py
nemanjamart/orcid-service
596973819b904ad28a9d84a773db09d5039bee26
[ "MIT" ]
10
2015-02-12T23:07:24.000Z
2022-01-04T19:00:20.000Z
from flask import current_app, request, Blueprint from flask_discoverer import advertise from .models import User, Profile from datetime import datetime from dateutil import parser from sqlalchemy import exc, and_ from sqlalchemy.orm import load_only import json import logging import pytz import adsmutils import reques...
41.420354
148
0.575188
from flask import current_app, request, Blueprint from flask_discoverer import advertise from .models import User, Profile from datetime import datetime from dateutil import parser from sqlalchemy import exc, and_ from sqlalchemy.orm import load_only import json import logging import pytz import adsmutils import reques...
true
true
08f5586909ae21d24183a78598cf00b6ea49f23a
8,852
py
Python
face_anti-spoof_challenge@CVPR_zpeng/models/fishnet.py
avuku06/G
8b505691f305783d66a1976ad51748073d2e76f6
[ "Apache-2.0" ]
1
2021-08-10T09:44:52.000Z
2021-08-10T09:44:52.000Z
face_anti-spoof_challenge@CVPR_zpeng/models/fishnet.py
y435449/Face-Knowing
8b505691f305783d66a1976ad51748073d2e76f6
[ "Apache-2.0" ]
null
null
null
face_anti-spoof_challenge@CVPR_zpeng/models/fishnet.py
y435449/Face-Knowing
8b505691f305783d66a1976ad51748073d2e76f6
[ "Apache-2.0" ]
null
null
null
''' FishNet Author: Shuyang Sun ''' from __future__ import division import torch import math from .fish_block import * __all__ = ['fish'] class Fish(nn.Module): def __init__(self, block, num_cls=2, num_down_sample=5, num_up_sample=3, trans_map=(2, 1, 0, 6, 5, 4), network_planes=None, num_res_...
38.655022
118
0.571735
from __future__ import division import torch import math from .fish_block import * __all__ = ['fish'] class Fish(nn.Module): def __init__(self, block, num_cls=2, num_down_sample=5, num_up_sample=3, trans_map=(2, 1, 0, 6, 5, 4), network_planes=None, num_res_blks=None, num_trans_blks=None): ...
true
true
08f558abfc40b09b6ef2ac513a169379be5e5253
1,671
py
Python
script/oltpbenchmark/oltpbench.py
jarulraj/peloton
00256b8f6369fe6061b75c4b979f1bf954576e57
[ "Apache-2.0" ]
null
null
null
script/oltpbenchmark/oltpbench.py
jarulraj/peloton
00256b8f6369fe6061b75c4b979f1bf954576e57
[ "Apache-2.0" ]
2
2016-10-01T00:36:16.000Z
2016-11-05T23:40:07.000Z
script/oltpbenchmark/oltpbench.py
jarulraj/peloton
00256b8f6369fe6061b75c4b979f1bf954576e57
[ "Apache-2.0" ]
3
2016-09-24T01:22:30.000Z
2019-01-09T16:17:25.000Z
#!/usr/bin/env python import sys import os import re import subprocess OLTP_HOME = "/home/pavlo/Documents/OLTPBenchmark/oltpbench" BENCHMARK = "tpcc" CONFIG = "%s/config/%s_config_peloton.xml" % (OLTP_HOME, BENCHMARK) BUCKETS = 5 REGEX = re.compile(".*?INFO[\s]+-[\s]+Throughput: ([\d]+\.[\d]+) txn/sec") def execute...
27.85
82
0.581688
import sys import os import re import subprocess OLTP_HOME = "/home/pavlo/Documents/OLTPBenchmark/oltpbench" BENCHMARK = "tpcc" CONFIG = "%s/config/%s_config_peloton.xml" % (OLTP_HOME, BENCHMARK) BUCKETS = 5 REGEX = re.compile(".*?INFO[\s]+-[\s]+Throughput: ([\d]+\.[\d]+) txn/sec") def executeBenchmark(create=True,...
true
true
08f558b2bf584c81c7fb63922484a7bb0286f306
2,171
py
Python
recipes/Python/577501_Convert_XML_files_structurally_equivalent/recipe-577501.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/577501_Convert_XML_files_structurally_equivalent/recipe-577501.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/577501_Convert_XML_files_structurally_equivalent/recipe-577501.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
import sys, string from xml.sax import saxutils, handler, make_parser import random class ContentGenerator(handler.ContentHandler): vowels = "aeiouAEIOU" len_vowels = len(vowels) consonants = "bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ" len_consonants = len(consonants) digits = "1234567890" len...
33.4
105
0.638876
import sys, string from xml.sax import saxutils, handler, make_parser import random class ContentGenerator(handler.ContentHandler): vowels = "aeiouAEIOU" len_vowels = len(vowels) consonants = "bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ" len_consonants = len(consonants) digits = "1234567890" len...
true
true
08f5597c06b9222abfefd698ad2364d711af2eb3
11,037
py
Python
theano/gof/tests/test_vm.py
royxue/Theano
626104a8c2b16898d270dc99e16a3ddb4a74678e
[ "BSD-3-Clause" ]
2
2015-01-20T04:53:37.000Z
2015-01-20T04:53:40.000Z
theano/gof/tests/test_vm.py
RoyXue/Theano
626104a8c2b16898d270dc99e16a3ddb4a74678e
[ "BSD-3-Clause" ]
null
null
null
theano/gof/tests/test_vm.py
RoyXue/Theano
626104a8c2b16898d270dc99e16a3ddb4a74678e
[ "BSD-3-Clause" ]
null
null
null
import gc import sys import time import unittest from nose.plugins.skip import SkipTest import numpy from theano import function from theano.gof import vm from theano.gof import OpWiseCLinker from theano.compile import Mode from theano import tensor from theano.ifelse import ifelse import theano class TestCallback...
29.669355
79
0.515357
import gc import sys import time import unittest from nose.plugins.skip import SkipTest import numpy from theano import function from theano.gof import vm from theano.gof import OpWiseCLinker from theano.compile import Mode from theano import tensor from theano.ifelse import ifelse import theano class TestCallback...
false
true
08f5599600e4237f801a4b851f571ea60bbc5b7d
2,012
py
Python
tests/unit/integration/test_package.py
prius/warehouse
d4d082bf45e6140ff36f5987f04a9aa83d470902
[ "Apache-2.0" ]
4
2018-03-29T10:42:56.000Z
2021-11-17T10:21:43.000Z
tests/unit/integration/test_package.py
prius/warehouse
d4d082bf45e6140ff36f5987f04a9aa83d470902
[ "Apache-2.0" ]
258
2021-11-29T18:29:38.000Z
2022-03-31T18:34:18.000Z
tests/unit/integration/test_package.py
prius/warehouse
d4d082bf45e6140ff36f5987f04a9aa83d470902
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
31.936508
81
0.700795
import pretend import pytest from warehouse import integrations class TestCache: def test_set(self): cache = integrations.PublicKeysCache(cache_time=10) cache.set(now=1, value="foo") assert cache.cached_at == 1 assert cache.cache == "foo" def test_get_no_cache(self): ...
true
true
08f55a3e7780b2390727f9f60046277c3a4a73eb
25,830
py
Python
tests/cli/test_cli.py
victorcouste/great_expectations
9ee46d83feb87e13c769e2ae35b899b3f18d73a4
[ "Apache-2.0" ]
6,451
2017-09-11T16:32:53.000Z
2022-03-31T23:27:49.000Z
tests/cli/test_cli.py
victorcouste/great_expectations
9ee46d83feb87e13c769e2ae35b899b3f18d73a4
[ "Apache-2.0" ]
3,892
2017-09-08T18:57:50.000Z
2022-03-31T23:15:20.000Z
tests/cli/test_cli.py
victorcouste/great_expectations
9ee46d83feb87e13c769e2ae35b899b3f18d73a4
[ "Apache-2.0" ]
1,023
2017-09-08T15:22:05.000Z
2022-03-31T21:17:08.000Z
import os from typing import List from unittest import mock import pytest from click.testing import CliRunner, Result from ruamel.yaml import YAML from great_expectations import DataContext from great_expectations import __version__ as ge_version from great_expectations.cli import cli from tests.cli.utils import asse...
34.121532
124
0.6777
import os from typing import List from unittest import mock import pytest from click.testing import CliRunner, Result from ruamel.yaml import YAML from great_expectations import DataContext from great_expectations import __version__ as ge_version from great_expectations.cli import cli from tests.cli.utils import asse...
true
true
08f55acccdb45886d0d5efac93ea88df4e733a08
3,712
py
Python
user/views.py
sina96n/SkyTech-Django-Demo
a746fb3d9e0e7cc7a5795e30d784d7cebe7a82e4
[ "MIT" ]
null
null
null
user/views.py
sina96n/SkyTech-Django-Demo
a746fb3d9e0e7cc7a5795e30d784d7cebe7a82e4
[ "MIT" ]
null
null
null
user/views.py
sina96n/SkyTech-Django-Demo
a746fb3d9e0e7cc7a5795e30d784d7cebe7a82e4
[ "MIT" ]
null
null
null
from django.contrib.auth.views import PasswordChangeView, PasswordChangeDoneView from django.urls.base import reverse from user.decorators import user_id_check from user.models import Attendant, Operator from user.forms import SignUpForm, UpdateForm from django.shortcuts import render, redirect from django.urls import ...
27.294118
80
0.599407
from django.contrib.auth.views import PasswordChangeView, PasswordChangeDoneView from django.urls.base import reverse from user.decorators import user_id_check from user.models import Attendant, Operator from user.forms import SignUpForm, UpdateForm from django.shortcuts import render, redirect from django.urls import ...
true
true
08f55c0556d7710e3a4157922a14bb23afeecb63
126,519
py
Python
zerver/models.py
anshgit101/zulip
a6a9897abdaf64c13114b5b9d0de58299481cce8
[ "Apache-2.0" ]
null
null
null
zerver/models.py
anshgit101/zulip
a6a9897abdaf64c13114b5b9d0de58299481cce8
[ "Apache-2.0" ]
null
null
null
zerver/models.py
anshgit101/zulip
a6a9897abdaf64c13114b5b9d0de58299481cce8
[ "Apache-2.0" ]
null
null
null
import ast import datetime import re import time from collections import defaultdict from datetime import timedelta from typing import ( AbstractSet, Any, Callable, DefaultDict, Dict, Iterable, List, Optional, Sequence, Set, Tuple, TypeVar, Union, ) import django.con...
41.386654
131
0.705333
import ast import datetime import re import time from collections import defaultdict from datetime import timedelta from typing import ( AbstractSet, Any, Callable, DefaultDict, Dict, Iterable, List, Optional, Sequence, Set, Tuple, TypeVar, Union, ) import django.con...
true
true
08f55ca5daf104501692dcf9e65817ad83e606cf
108
py
Python
lazydata/cli/commands/removeremote.py
LegitStack/lazydata
f4f424f115d2ae4e28db9c7a3880a80ca2d60296
[ "Apache-2.0" ]
621
2018-08-29T12:57:21.000Z
2022-03-03T13:33:19.000Z
lazydata/cli/commands/removeremote.py
LegitStack/lazydata
f4f424f115d2ae4e28db9c7a3880a80ca2d60296
[ "Apache-2.0" ]
19
2018-09-03T12:15:45.000Z
2020-10-25T19:53:56.000Z
lazydata/cli/commands/removeremote.py
LegitStack/lazydata
f4f424f115d2ae4e28db9c7a3880a80ca2d60296
[ "Apache-2.0" ]
27
2018-09-03T19:29:20.000Z
2020-06-17T20:32:16.000Z
from lazydata.cli.commands.BaseCommand import BaseCommand class RemoveRemoteCommand(BaseCommand): pass
21.6
57
0.833333
from lazydata.cli.commands.BaseCommand import BaseCommand class RemoveRemoteCommand(BaseCommand): pass
true
true
08f55cdacc56b7ecd5e23abafb6b5bf64a08a4b7
1,663
py
Python
notification/implementations/callbacks/callbacks_on_send_messages.py
EhsanSaZ/send_message_api_bale_bot
803e9b91d1eea477d3060b5dcc4e0099641876c9
[ "MIT" ]
1
2018-11-12T17:00:35.000Z
2018-11-12T17:00:35.000Z
notification/implementations/callbacks/callbacks_on_send_messages.py
EhsanSaZ/send_message_api_bale_bot
803e9b91d1eea477d3060b5dcc4e0099641876c9
[ "MIT" ]
null
null
null
notification/implementations/callbacks/callbacks_on_send_messages.py
EhsanSaZ/send_message_api_bale_bot
803e9b91d1eea477d3060b5dcc4e0099641876c9
[ "MIT" ]
null
null
null
from datetime import datetime from notification.implementations.messages.ack_notification import AckNotification def success_callback_on_send_message(response, user_data): notification = user_data['kwargs']['notification'] logger = user_data['kwargs']['logger'] ack_queue = user_data['kwargs']['ack_queue']...
47.514286
97
0.638605
from datetime import datetime from notification.implementations.messages.ack_notification import AckNotification def success_callback_on_send_message(response, user_data): notification = user_data['kwargs']['notification'] logger = user_data['kwargs']['logger'] ack_queue = user_data['kwargs']['ack_queue']...
true
true
08f55d845bc6e6c0f4d3e830336a40fa5dec0702
438
py
Python
mnistetude/network/inetwork.py
aram-father/mnist-etude
3f9196a7ae3447c3412507896c3dc3ae81f9d7d0
[ "BSD-2-Clause" ]
null
null
null
mnistetude/network/inetwork.py
aram-father/mnist-etude
3f9196a7ae3447c3412507896c3dc3ae81f9d7d0
[ "BSD-2-Clause" ]
1
2022-03-18T03:14:13.000Z
2022-03-18T03:14:13.000Z
mnistetude/network/inetwork.py
aram-father/mnist-etude
3f9196a7ae3447c3412507896c3dc3ae81f9d7d0
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from .. import layer from .. import lossfunc from typing import List class INetwork: def __init__(self, layers: List[layer.ILayer]): self.layers = layers def predict(self, image: np.array) -> np.array: raise def get_loss(self, image: np.array, label: np.array) -> np.ar...
25.764706
71
0.678082
import numpy as np from .. import layer from .. import lossfunc from typing import List class INetwork: def __init__(self, layers: List[layer.ILayer]): self.layers = layers def predict(self, image: np.array) -> np.array: raise def get_loss(self, image: np.array, label: np.array) -> np.ar...
true
true
08f55f6953983147e2c1c27163d1f0eea9c4e288
2,723
py
Python
layint_api/models/search_by.py
LayeredInsight/layint_api_python
a5c9a5b24098bd823c5102b7ab9e4745432f19b4
[ "Apache-2.0" ]
null
null
null
layint_api/models/search_by.py
LayeredInsight/layint_api_python
a5c9a5b24098bd823c5102b7ab9e4745432f19b4
[ "Apache-2.0" ]
null
null
null
layint_api/models/search_by.py
LayeredInsight/layint_api_python
a5c9a5b24098bd823c5102b7ab9e4745432f19b4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Layered Insight Assessment, Compliance, Witness & Control LI Assessment & Compliance performs static vulnerability analysis, license and package compliance. LI Witness provides deep insight and analytics into containerized applications. Control provides dynamic runtime security and analyti...
27.23
383
0.563716
from pprint import pformat from six import iteritems import re class SearchBy(object): swagger_types = { } attribute_map = { } def __init__(self): def to_dict(self): result = {} for attr, _ in iteritems(self.swagger_types): value = getat...
true
true
08f560381dc2e1a57213aa4cbd177269c93489c7
4,216
py
Python
salt/grains/mdata.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
2
2015-08-21T01:05:03.000Z
2015-09-02T07:30:45.000Z
salt/grains/mdata.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
9
2021-03-31T20:25:25.000Z
2021-07-04T05:33:46.000Z
salt/grains/mdata.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
1
2020-06-02T14:15:24.000Z
2020-06-02T14:15:24.000Z
""" SmartOS Metadata grain provider :maintainer: Jorge Schrauwen <sjorge@blackdot.be> :maturity: new :depends: salt.utils, salt.module.cmdmod :platform: SmartOS .. versionadded:: 2017.7.0 """ import logging import os import salt.modules.cmdmod import salt.utils.dictupdate import salt.utils.json ...
26.515723
93
0.597723
import logging import os import salt.modules.cmdmod import salt.utils.dictupdate import salt.utils.json import salt.utils.path import salt.utils.platform __virtualname__ = "mdata" __salt__ = { "cmd.run": salt.modules.cmdmod.run, } log = logging.getLogger(__name__) def __virtual__(): if salt.utils.plat...
true
true
08f5615d97a4c05a10965c301c22e7d5f301532f
1,298
py
Python
nipype/interfaces/semtools/filtering/tests/test_auto_STAPLEAnalysis.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
7
2017-02-17T08:54:26.000Z
2022-03-10T20:57:23.000Z
nipype/interfaces/semtools/filtering/tests/test_auto_STAPLEAnalysis.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
1
2016-04-25T15:07:09.000Z
2016-04-25T15:07:09.000Z
nipype/interfaces/semtools/filtering/tests/test_auto_STAPLEAnalysis.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
2
2017-09-23T16:22:00.000Z
2019-08-01T14:18:52.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..featuredetection import STAPLEAnalysis def test_STAPLEAnalysis_inputs(): input_map = dict( args=dict(argstr='%s', ), environ=dict( nohash=True, usedefault=True, ), ...
31.658537
67
0.600924
from __future__ import unicode_literals from ..featuredetection import STAPLEAnalysis def test_STAPLEAnalysis_inputs(): input_map = dict( args=dict(argstr='%s', ), environ=dict( nohash=True, usedefault=True, ), ignore_exception=dict( deprecated='...
true
true
08f562016fcbe54006b800b9ec557027d65e24bd
11,026
py
Python
beeswithmachineguns/bees.py
timsu/beeswithmachineguns
19264f6e91e125666fd6a649c1220d882887e46d
[ "MIT" ]
1
2016-12-21T08:42:39.000Z
2016-12-21T08:42:39.000Z
beeswithmachineguns/bees.py
timsu/beeswithmachineguns
19264f6e91e125666fd6a649c1220d882887e46d
[ "MIT" ]
null
null
null
beeswithmachineguns/bees.py
timsu/beeswithmachineguns
19264f6e91e125666fd6a649c1220d882887e46d
[ "MIT" ]
null
null
null
#!/bin/env python """ The MIT License Copyright (c) 2010 The Chicago Tribune & Contributors 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 ...
32.334311
220
0.66969
""" The MIT License Copyright (c) 2010 The Chicago Tribune & Contributors 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, cop...
false
true
08f56294e7b5cf907dd5d67287babf03b95a90bc
815
py
Python
nicos_mlz/toftof/setups/collimator.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/toftof/setups/collimator.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/toftof/setups/collimator.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'neutron guide changer or collimator' group = 'lowlevel' tango_base = 'tango://tofhw.toftof.frm2.tum.de:10000/toftof/hubermc/' devices = dict( ngc_motor = device('nicos.devices.entangle.Motor', description = 'Motor of the neutron guide changing mechanism', tangodevice = tango_base +...
29.107143
70
0.568098
description = 'neutron guide changer or collimator' group = 'lowlevel' tango_base = 'tango://tofhw.toftof.frm2.tum.de:10000/toftof/hubermc/' devices = dict( ngc_motor = device('nicos.devices.entangle.Motor', description = 'Motor of the neutron guide changing mechanism', tangodevice = tango_base +...
true
true
08f5636745d72cf7ff59f22c222724a31e0107c8
7,195
py
Python
research/slim/datasets/download_and_convert_flowers.py
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
[ "Apache-2.0" ]
null
null
null
research/slim/datasets/download_and_convert_flowers.py
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
[ "Apache-2.0" ]
null
null
null
research/slim/datasets/download_and_convert_flowers.py
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 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/licenses/LICENSE-2.0 # # Unless required by applica...
34.099526
80
0.722307
from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import os import random import sys import tensorflow as tf from datasets import dataset_utils _DATA_URL = 'http://download.tensorflow.org/example_images/flower_photos.tgz' _NUM_VALIDATION = 350 ...
true
true
08f566db0abf003e5e847d50f7228e25223bf886
19,292
py
Python
fkie_node_manager/src/fkie_node_manager/discovery_listener.py
faizansid77/multimaster_fkie
2f569e61e4461bcd5b3c08e5914012f8c2cb6f7f
[ "BSD-3-Clause" ]
1
2021-12-17T17:16:52.000Z
2021-12-17T17:16:52.000Z
arpl_ws/src/multimaster_fkie/fkie_node_manager/src/fkie_node_manager/discovery_listener.py
xjh19971/Autonomous-Drone-Inspection-with-DRL
5b9777212f5385259728e7a9451fcd242f2f1ce2
[ "MIT" ]
null
null
null
arpl_ws/src/multimaster_fkie/fkie_node_manager/src/fkie_node_manager/discovery_listener.py
xjh19971/Autonomous-Drone-Inspection-with-DRL
5b9777212f5385259728e7a9451fcd242f2f1ce2
[ "MIT" ]
null
null
null
# Software License Agreement (BSD License) # # Copyright (c) 2012, Fraunhofer FKIE/US, Alexander Tiderko # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code mus...
43.352809
191
0.633734
from __future__ import division, absolute_import, print_function, unicode_literals from python_qt_binding.QtCore import QObject, Signal import socket import threading import time import rospy from fkie_master_discovery.master_monitor import MasterMonitor, MasterConnectionException import fkie_master_discovery.inter...
false
true
08f5681fb902c4eb5d917a84a0560e547d45a9ca
4,571
py
Python
crashreports/rest_api_devices.py
FairphoneMirrors/hiccup-server
8b80109740ea663d23ca46bb272c8fd95f873f1e
[ "Apache-2.0" ]
null
null
null
crashreports/rest_api_devices.py
FairphoneMirrors/hiccup-server
8b80109740ea663d23ca46bb272c8fd95f873f1e
[ "Apache-2.0" ]
1
2019-10-21T18:00:57.000Z
2019-10-21T18:00:57.000Z
crashreports/rest_api_devices.py
FairphoneMirrors/hiccup-server
8b80109740ea663d23ca46bb272c8fd95f873f1e
[ "Apache-2.0" ]
null
null
null
"""REST API for accessing devices.""" from django.contrib.auth.models import Permission from django.utils.decorators import method_decorator from drf_yasg import openapi from drf_yasg.utils import swagger_auto_schema from rest_framework import generics, status from rest_framework.exceptions import NotFound, Validation...
33.123188
80
0.724349
from django.contrib.auth.models import Permission from django.utils.decorators import method_decorator from drf_yasg import openapi from drf_yasg.utils import swagger_auto_schema from rest_framework import generics, status from rest_framework.exceptions import NotFound, ValidationError from rest_framework.authtoken.mo...
true
true
08f56853283f3218bf9e875ff9d00d2edd39f9e8
6,853
py
Python
sdk/python/pulumi_oci/core/get_volume_attachments.py
EladGabay/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
5
2021-08-17T11:14:46.000Z
2021-12-31T02:07:03.000Z
sdk/python/pulumi_oci/core/get_volume_attachments.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-06T11:21:29.000Z
2021-09-06T11:21:29.000Z
sdk/python/pulumi_oci/core/get_volume_attachments.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
2
2021-08-24T23:31:30.000Z
2022-01-02T19:26:54.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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, overload from .. import...
40.550296
168
0.682621
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._inputs import * __all__ = [ 'GetVolumeAttachmentsResult', 'AwaitableGetVolumeAttachmentsResult', 'get_volume_attachments', ] @pul...
true
true
08f568597fdf8f078d9b8b526aec07cb499a13bd
98,132
py
Python
PyGLM_test.py
benraziel/PyGLM
b33c6a5953b3ed127d9195258b5715e5c8be80a4
[ "Zlib", "MIT" ]
null
null
null
PyGLM_test.py
benraziel/PyGLM
b33c6a5953b3ed127d9195258b5715e5c8be80a4
[ "Zlib", "MIT" ]
null
null
null
PyGLM_test.py
benraziel/PyGLM
b33c6a5953b3ed127d9195258b5715e5c8be80a4
[ "Zlib", "MIT" ]
null
null
null
import glm, sys, random, time, copy, re, math from collections import OrderedDict glm.silence(0) ## type checking definitions ## PyGLM_DT_UNKNOWN = 0x0000000 PyGLM_DT_FLOAT = 0x0000001 PyGLM_DT_DOUBLE = 0x0000002 PyGLM_DT_INT = 0x0000004 PyGLM_DT_UINT = 0x0000008 PyGLM_DT_INT8 = 0x0000010 PyGLM_DT_UINT8 = 0x00...
38.589068
338
0.547334
import glm, sys, random, time, copy, re, math from collections import OrderedDict glm.silence(0) PyGLM_DT_UNKNOWN = 0x0000000 PyGLM_DT_FLOAT = 0x0000001 PyGLM_DT_DOUBLE = 0x0000002 PyGLM_DT_INT = 0x0000004 PyGLM_DT_UINT = 0x0000008 PyGLM_DT_INT8 = 0x0000010 PyGLM_DT_UINT8 = 0x0000020 PyGLM_DT_INT16 = 0x000004...
true
true
08f568b5057cad445408866ae7934e78a40b1f00
3,701
py
Python
tatu/castellano.py
pinodeca/tatu
18413ba679326fed158e014290c4666eecc0ac44
[ "Apache-2.0" ]
1
2020-12-14T03:17:51.000Z
2020-12-14T03:17:51.000Z
tatu/castellano.py
pinodeca/tatu
18413ba679326fed158e014290c4666eecc0ac44
[ "Apache-2.0" ]
null
null
null
tatu/castellano.py
pinodeca/tatu
18413ba679326fed158e014290c4666eecc0ac44
[ "Apache-2.0" ]
1
2020-12-14T03:17:52.000Z
2020-12-14T03:17:52.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
33.342342
78
0.693056
from castellan.common.objects.passphrase import Passphrase from castellan.common.utils import credential_factory from castellan.key_manager import API from castellan.key_manager.key_manager import KeyManager from oslo_log import log as logging from tatu.config import CONTEXT LOG = logging.getLogger(__name__) _api =...
true
true
08f56969ab31e1010755346447f0adae0baafe24
2,028
py
Python
powerfulseal/k8s/pod.py
Ruteri/powerfulseal-gcp-integration
81d96ea5ab599ac7029bc713133c56c5e3290123
[ "Apache-2.0" ]
1
2020-08-13T04:49:01.000Z
2020-08-13T04:49:01.000Z
powerfulseal/k8s/pod.py
Ruteri/powerfulseal-gcp-integration
81d96ea5ab599ac7029bc713133c56c5e3290123
[ "Apache-2.0" ]
null
null
null
powerfulseal/k8s/pod.py
Ruteri/powerfulseal-gcp-integration
81d96ea5ab599ac7029bc713133c56c5e3290123
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Bloomberg Finance L.P. # # 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 ...
32.190476
110
0.618836
class Pod(): def __init__(self, name, namespace, num=None, uid=None, host_ip=None, ip=None, container_ids=None, restart_count=None, state=None, labels=None, meta=None): self.name = name self.namespace = namespace self.num = num self.uid = uid self.host_i...
true
true
08f569c6651a9ce07d88477af1dd20785be53e45
776
py
Python
visitors/migrations/0006_visitor_visits_remaining.py
qk-i/candidate-test-5d69fbf4
3a79cd4325a03cec1e4224566f9c2d0b4ee7ce28
[ "MIT" ]
null
null
null
visitors/migrations/0006_visitor_visits_remaining.py
qk-i/candidate-test-5d69fbf4
3a79cd4325a03cec1e4224566f9c2d0b4ee7ce28
[ "MIT" ]
null
null
null
visitors/migrations/0006_visitor_visits_remaining.py
qk-i/candidate-test-5d69fbf4
3a79cd4325a03cec1e4224566f9c2d0b4ee7ce28
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-05 11:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("visitors", "0005_visitorlog_status_code"), ] operations = [ migrations.AddField( model_name="visitor", name="visits_...
25.866667
78
0.548969
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("visitors", "0005_visitorlog_status_code"), ] operations = [ migrations.AddField( model_name="visitor", name="visits_max", field=models.SmallIntegerField...
true
true
08f56ad346000a4c5d0a3b4c340b32da01912669
1,396
py
Python
client/main.py
jwilyandi19/tic-tac-royale
dc1ac7008b150be0fadb165c296c330bd53ece57
[ "MIT" ]
null
null
null
client/main.py
jwilyandi19/tic-tac-royale
dc1ac7008b150be0fadb165c296c330bd53ece57
[ "MIT" ]
null
null
null
client/main.py
jwilyandi19/tic-tac-royale
dc1ac7008b150be0fadb165c296c330bd53ece57
[ "MIT" ]
null
null
null
import tkinter as tki import client.frame.home as fHomeMod import client.frame.create_room as fCreateRoomMod import client.frame.join_room as fJoinRoomMod import client.asset.font as fontMod import client.frame.stack as stackMod import client.client as clientMod import client.frame.board_player as fBoardPlayer class ...
29.702128
62
0.707736
import tkinter as tki import client.frame.home as fHomeMod import client.frame.create_room as fCreateRoomMod import client.frame.join_room as fJoinRoomMod import client.asset.font as fontMod import client.frame.stack as stackMod import client.client as clientMod import client.frame.board_player as fBoardPlayer class ...
true
true
08f56b23d755dec534b2ace9010b3ca07e68cd4c
423
py
Python
Beginner/Movie Weekend (MOVIEWKN)/movie.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
127
2020-10-13T18:04:35.000Z
2022-02-17T10:56:27.000Z
Beginner/Movie Weekend (MOVIEWKN)/movie.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
132
2020-10-13T18:06:53.000Z
2021-10-17T18:44:26.000Z
Beginner/Movie Weekend (MOVIEWKN)/movie.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
364
2020-10-13T18:04:52.000Z
2022-03-04T14:34:53.000Z
t = int(input()) while t: n = int(input()) L = list(map(int, input().split())) R = list(map(int, input().split())) ans = 0 r = 0 ind = -1 for i in range(n): P = L[i]*R[i] if(P > ans): ans = P ind = i+1 r = R[i] elif(P == ans): ...
16.92
39
0.338061
t = int(input()) while t: n = int(input()) L = list(map(int, input().split())) R = list(map(int, input().split())) ans = 0 r = 0 ind = -1 for i in range(n): P = L[i]*R[i] if(P > ans): ans = P ind = i+1 r = R[i] elif(P == ans): ...
true
true
08f56b949d5e736bf1365aa454fb9c79306192dd
515
py
Python
Python/python-tutorials/python-challenge/equality.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
Python/python-tutorials/python-challenge/equality.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
Python/python-tutorials/python-challenge/equality.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
#!/usr/bin/python # http://www.pythonchallenge.com/pc/def/equality.html import urllib import re import string def get_challenge(subject): text_src=urllib.urlopen('http://www.pythonchallenge.com/pc/def/%s.html' % subject).read() text=re.compile('<!--((?:[^-]+|-[^-]|--[^>])*)-->',re.S).findall(text_src)[-1] return t...
25.75
90
0.664078
import urllib import re import string def get_challenge(subject): text_src=urllib.urlopen('http://www.pythonchallenge.com/pc/def/%s.html' % subject).read() text=re.compile('<!--((?:[^-]+|-[^-]|--[^>])*)-->',re.S).findall(text_src)[-1] return text text=get_challenge('equality') print ''.join(re.findall('[^A-Z][A-...
false
true
08f56c1f794b432d463b5e99d28186dd916808fb
619
py
Python
plugins/cats.py
shousper/pancake-hipchat-bot
a4aaaa6ff0d33daad1cae356a0f26fcbc64cce71
[ "MIT" ]
null
null
null
plugins/cats.py
shousper/pancake-hipchat-bot
a4aaaa6ff0d33daad1cae356a0f26fcbc64cce71
[ "MIT" ]
null
null
null
plugins/cats.py
shousper/pancake-hipchat-bot
a4aaaa6ff0d33daad1cae356a0f26fcbc64cce71
[ "MIT" ]
null
null
null
import re import requests class CatGIFPlugin(): help = "Post a random cat gif" command = "cat" def __init__(self): self.RE_URL = re.compile("<url>([^<]*)</url>", re.MULTILINE + re.IGNORECASE) def response(self): message = "Can't connect to cat API =(" params = {'format': 'xml...
24.76
84
0.552504
import re import requests class CatGIFPlugin(): help = "Post a random cat gif" command = "cat" def __init__(self): self.RE_URL = re.compile("<url>([^<]*)</url>", re.MULTILINE + re.IGNORECASE) def response(self): message = "Can't connect to cat API =(" params = {'format': 'xml...
true
true
08f56c2dbbc323f0b1f383a72ae8b01d486c20c2
26,283
py
Python
Sublime Text 3/Packages/backrefs/st3/backrefs/uniprops/unidata/decompositiontype.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
7
2016-01-20T01:44:36.000Z
2019-01-29T11:52:39.000Z
Sublime Text 3/Packages/backrefs/st3/backrefs/uniprops/unidata/decompositiontype.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
4
2016-01-27T17:42:07.000Z
2021-08-13T12:31:25.000Z
Sublime Text 3/Packages/backrefs/st3/backrefs/uniprops/unidata/decompositiontype.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
2
2015-11-15T09:11:34.000Z
2019-01-29T11:52:41.000Z
"""Unicode Properties from Unicode version 6.1.0 (autogen).""" unicode_decomposition_type = { "^canonical": "\x00-\xbf\xc6\xd0\xd7-\xd8\xde-\xdf\xe6\xf0\xf7-\xf8\xfe\u0110-\u0111\u0126-\u0127\u0131-\u0133\u0138\u013f-\u0142\u0149-\u014b\u0152-\u0153\u0166-\u0167\u017f-\u019f\u01a2-\u01ae\u01b1-\u01cc\u01dd\u01e4-\...
332.696203
4,323
0.776091
unicode_decomposition_type = { "^canonical": "\x00-\xbf\xc6\xd0\xd7-\xd8\xde-\xdf\xe6\xf0\xf7-\xf8\xfe\u0110-\u0111\u0126-\u0127\u0131-\u0133\u0138\u013f-\u0142\u0149-\u014b\u0152-\u0153\u0166-\u0167\u017f-\u019f\u01a2-\u01ae\u01b1-\u01cc\u01dd\u01e4-\u01e5\u01f1-\u01f3\u01f6-\u01f7\u021c-\u021d\u0220-\u0225\u0234...
true
true
08f56c5df596754666382a3d68259dc657df7dce
10,275
py
Python
tests/test_security.py
agraubert/agutil
d9a568df01959ed985c9c8e77bdd501ac13bdbbf
[ "MIT" ]
3
2017-06-05T15:46:22.000Z
2019-05-22T21:26:54.000Z
tests/test_security.py
agraubert/agutil
d9a568df01959ed985c9c8e77bdd501ac13bdbbf
[ "MIT" ]
93
2016-06-22T18:57:47.000Z
2022-02-14T10:50:27.000Z
tests/test_security.py
agraubert/agutil
d9a568df01959ed985c9c8e77bdd501ac13bdbbf
[ "MIT" ]
null
null
null
import unittest import os from py_compile import compile import sys import random import threading import warnings import tempfile import os import time import io import port_for as pf TRAVIS = 'CI' in os.environ def make_random_string(): return "".join(chr(random.randint(0,255)) for i in range(25)) def make_ran...
39.068441
155
0.634939
import unittest import os from py_compile import compile import sys import random import threading import warnings import tempfile import os import time import io import port_for as pf TRAVIS = 'CI' in os.environ def make_random_string(): return "".join(chr(random.randint(0,255)) for i in range(25)) def make_ran...
true
true
08f56c6b19d9e1dc7ffd36a66c64d2001338aa12
3,014
py
Python
migrations/env.py
torbjomg/pwa_flask_app
eb84e81bee7045c46c799ea9fb62822fb5497aad
[ "MIT" ]
null
null
null
migrations/env.py
torbjomg/pwa_flask_app
eb84e81bee7045c46c799ea9fb62822fb5497aad
[ "MIT" ]
1
2021-06-08T21:02:25.000Z
2021-06-08T21:02:25.000Z
web_app/migrations/env.py
JamesBarciz/class_twitoff_new
dffe312cb7b1a5f699275eb8046d1fbccbd03a61
[ "MIT" ]
1
2021-07-07T18:23:54.000Z
2021-07-07T18:23:54.000Z
from __future__ import with_statement import logging from logging.config import fileConfig from sqlalchemy import engine_from_config from sqlalchemy import pool from alembic import context # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = co...
31.072165
78
0.689781
from __future__ import with_statement import logging from logging.config import fileConfig from sqlalchemy import engine_from_config from sqlalchemy import pool from alembic import context config = context.config fileConfig(config.config_file_name) logger = logging.getLogger('alembic.env') # for 'a...
true
true
08f56c9ba6cbd07bf64944c0a31119f55096e371
6,525
py
Python
pypureclient/flasharray/FA_2_1/models/volume_common.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_1/models/volume_common.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_1/models/volume_common.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
37.936047
461
0.59387
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_1 import models class VolumeCommon(object): swagger_types = { 'id': 'str', 'name': 'str', 'connection_count': 'int', 'created': 'i...
true
true
08f56cbfdaa027e9cb59a240150d56c6b63a8686
17,659
py
Python
pipenv/exceptions.py
hanzhb/pipenv
db390d821153131f47b9c4e40f15087cbd23b5b0
[ "MIT" ]
null
null
null
pipenv/exceptions.py
hanzhb/pipenv
db390d821153131f47b9c4e40f15087cbd23b5b0
[ "MIT" ]
null
null
null
pipenv/exceptions.py
hanzhb/pipenv
db390d821153131f47b9c4e40f15087cbd23b5b0
[ "MIT" ]
null
null
null
import itertools import re import sys from collections import namedtuple from traceback import format_tb from pipenv import environments from pipenv._compat import decode_for_output from pipenv.patched import crayons from pipenv.vendor.click.exceptions import ( ClickException, FileError, UsageError ) from pipenv....
38.05819
103
0.583555
import itertools import re import sys from collections import namedtuple from traceback import format_tb from pipenv import environments from pipenv._compat import decode_for_output from pipenv.patched import crayons from pipenv.vendor.click.exceptions import ( ClickException, FileError, UsageError ) from pipenv....
true
true
08f56cc9db4898a6aec071c532c4e1d8ae8de8e1
6,912
py
Python
tests/integration/widgets/test_dropdown.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
1
2018-11-14T19:08:18.000Z
2018-11-14T19:08:18.000Z
tests/integration/widgets/test_dropdown.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
1
2021-05-09T02:45:17.000Z
2021-05-09T02:45:17.000Z
tests/integration/widgets/test_dropdown.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
1
2020-06-17T05:47:16.000Z
2020-06-17T05:47:16.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #---------------------------------------------------...
36.765957
116
0.582176
from __future__ import absolute_import, division, print_function, unicode_literals import pytest ; pytest from bokeh.core.enums import ButtonType from bokeh.layouts import column from bokeh.models import Circle, ColumnDataSource, CustomAction, CustomJS, Dropdown, Plot, Range1d from bokeh._testing.util.selenium im...
true
true
08f56e13ee0f12441d0d20fd1e12e574b4bbaf61
9,449
py
Python
src/transformers/models/retribert/modeling_retribert.py
HimashiRathnayake/adapter-transformers
d9c06ecbf4aaa33756e848b8fc5b3ec65f5ff4f4
[ "Apache-2.0" ]
50,404
2019-09-26T09:55:55.000Z
2022-03-31T23:07:49.000Z
src/transformers/models/retribert/modeling_retribert.py
HimashiRathnayake/adapter-transformers
d9c06ecbf4aaa33756e848b8fc5b3ec65f5ff4f4
[ "Apache-2.0" ]
13,179
2019-09-26T10:10:57.000Z
2022-03-31T23:17:08.000Z
src/transformers/models/retribert/modeling_retribert.py
HimashiRathnayake/adapter-transformers
d9c06ecbf4aaa33756e848b8fc5b3ec65f5ff4f4
[ "Apache-2.0" ]
13,337
2019-09-26T10:49:38.000Z
2022-03-31T23:06:17.000Z
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team, The Google AI Language Team and Facebook, 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.or...
43.543779
120
0.676156
import math import torch import torch.utils.checkpoint as checkpoint from torch import nn from ...file_utils import add_start_docstrings from ...modeling_utils import PreTrainedModel from ...utils import logging from ..bert.modeling_bert import BertModel from .configuration_retribert import RetriBertConfig logger...
true
true
08f56ed16b18970f2af6dd2d82a3bb202cd3c790
3,188
py
Python
nn/modules/module.py
kunalsinha/wings
a28b4ca67bcccfd45d6125bd9c4784a42c157d4c
[ "MIT" ]
null
null
null
nn/modules/module.py
kunalsinha/wings
a28b4ca67bcccfd45d6125bd9c4784a42c157d4c
[ "MIT" ]
null
null
null
nn/modules/module.py
kunalsinha/wings
a28b4ca67bcccfd45d6125bd9c4784a42c157d4c
[ "MIT" ]
null
null
null
import wings class Module: """ Base class for all layers. """ def __init__(self) -> None: self._modules = {} # stores all child modules self._parameters = {} # stores self parameters self._mode = "train" # train or eval mode def __setattr__(self, name, value): ...
30.653846
76
0.557089
import wings class Module: def __init__(self) -> None: self._modules = {} self._parameters = {} self._mode = "train" def __setattr__(self, name, value): if isinstance(value, Module): self._modules[name] = value object.__setattr__(self, name, value) ...
true
true
08f56fbd266e846bcc24a74d39c965de2e2a78d4
1,134
py
Python
tests/storage/cases/test_KT1C1FNQmMCnpcZBtr6qj2dZuMiEeWwsJ8od.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2021-05-20T16:52:08.000Z
2021-05-20T16:52:08.000Z
tests/storage/cases/test_KT1C1FNQmMCnpcZBtr6qj2dZuMiEeWwsJ8od.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2020-12-30T16:44:56.000Z
2020-12-30T16:44:56.000Z
tests/storage/cases/test_KT1C1FNQmMCnpcZBtr6qj2dZuMiEeWwsJ8od.py
tqtezos/pytezos
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
[ "MIT" ]
1
2022-03-20T19:01:00.000Z
2022-03-20T19:01:00.000Z
from unittest import TestCase from tests import get_data from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson class StorageTestKT1C1FNQmMCnpcZBtr6qj2dZuMiEeWwsJ8od(TestCase): @classmethod def setUpClass(cls): cls.maxDiff = None cls....
40.5
112
0.749559
from unittest import TestCase from tests import get_data from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson class StorageTestKT1C1FNQmMCnpcZBtr6qj2dZuMiEeWwsJ8od(TestCase): @classmethod def setUpClass(cls): cls.maxDiff = None cls....
true
true
08f57030d5ad003bbca797e1c5b2949cbb10aa2b
14,764
py
Python
src/cupcake/phasing/io/VariantPhaseCleaner.py
milescsmith/cDNA_Cupcake
776d841c69fc6d8b3dce95bb9f076546bc0429c0
[ "BSD-3-Clause-Clear" ]
null
null
null
src/cupcake/phasing/io/VariantPhaseCleaner.py
milescsmith/cDNA_Cupcake
776d841c69fc6d8b3dce95bb9f076546bc0429c0
[ "BSD-3-Clause-Clear" ]
null
null
null
src/cupcake/phasing/io/VariantPhaseCleaner.py
milescsmith/cDNA_Cupcake
776d841c69fc6d8b3dce95bb9f076546bc0429c0
[ "BSD-3-Clause-Clear" ]
null
null
null
__author__ = "etseng@pacb.com" """ ex: ?CAACTTATTGTCCC 0 1 0 0 ?CACCT?ATTGTCCC 0 1 0 0 ?CA?CTTATTGTCCC 0 1 0 0 G?ACTGCGGAACTTT 0 1 0 0 GTAAT?CG?A?TTCT 0 1 0 0 GTAATGCG?AACTTT 0 2 0 0 we have: 1. list of haplotypes (ex: "AAT", "A?T", "ATG") and the weight of each haplotype 2. list o...
40.56044
129
0.638716
__author__ = "etseng@pacb.com" from collections import Counter import numpy as np from cupcake import cupcake_logger as logger from cupcake.phasing.io.VariantPhaser import Haplotypes def make_haplotype_counts(isoform_tally): hap_count = Counter() for tally in isoform_tally.values(): for hap_index,...
true
true
08f572625991f45698b7889387c287501a7cafc8
32,030
py
Python
ocs_ci/ocs/must_gather/const_must_gather.py
liranmauda/ocs-ci
7155bfece108df83aee3c1794ddebf81e79b3dbb
[ "MIT" ]
null
null
null
ocs_ci/ocs/must_gather/const_must_gather.py
liranmauda/ocs-ci
7155bfece108df83aee3c1794ddebf81e79b3dbb
[ "MIT" ]
null
null
null
ocs_ci/ocs/must_gather/const_must_gather.py
liranmauda/ocs-ci
7155bfece108df83aee3c1794ddebf81e79b3dbb
[ "MIT" ]
null
null
null
""" The Procedure to add new version: 1.New Version created 2.Add the new version to GATHER_COMMANDS_VERSION dictionary 3.Ask the developer about new files on new version 4.Add file names to relevant list OCS4.6 Link: https://github.com/openshift/ocs-operator/blob/fefc8a0e04e314801809df2e5292a20fae8456b8/must-gather/c...
40.802548
119
0.735467
from ocs_ci.framework import config from ocs_ci.ocs import constants GATHER_COMMANDS_CEPH = [ "ceph-volume_raw_list", "ceph_auth_list", "ceph_balancer_status", "ceph_config-key_ls", "ceph_config_dump", "ceph_crash_stat", "ceph_device_ls", "ceph_fs_dump", "ceph_fs_ls", "ceph_fs_...
true
true
08f5737b9c8fd00e7822a3b5a0e07f1163a6beaa
515
py
Python
py/dumpdbstructanddata.py
bianfeng218/sh_snippet
cb484c291653e8b96407ac460265c374350f717b
[ "Apache-2.0" ]
null
null
null
py/dumpdbstructanddata.py
bianfeng218/sh_snippet
cb484c291653e8b96407ac460265c374350f717b
[ "Apache-2.0" ]
null
null
null
py/dumpdbstructanddata.py
bianfeng218/sh_snippet
cb484c291653e8b96407ac460265c374350f717b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Filename: dumpdbstructanddata.py import sys import os if len(sys.argv) < 3: print '''please input database name syntax:python dumpdbstructanddata.py dbname dbhost; example: python dumpstructanddata.py ept_order 10.28.168.38''' else: db = sys.argv[1] dbhost = sys.argv[2] print 'database ...
25.75
116
0.702913
import sys import os if len(sys.argv) < 3: print '''please input database name syntax:python dumpdbstructanddata.py dbname dbhost; example: python dumpstructanddata.py ept_order 10.28.168.38''' else: db = sys.argv[1] dbhost = sys.argv[2] print 'database name is',db print 'start dump %s'%db dump_command =...
false
true
08f573ff33bdefb772478b3bfadab1e56dcafb7f
5,215
py
Python
sdk/python/pulumi_azure_nextgen/dbformariadb/v20180601privatepreview/get_private_endpoint_connection.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/dbformariadb/v20180601privatepreview/get_private_endpoint_connection.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/dbformariadb/v20180601privatepreview/get_private_endpoint_connection.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "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 from...
43.099174
185
0.707383
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetPrivateEndpointConnectionResult', 'AwaitableGetPrivateEndpointConnectionResult', 'get_private_endpoint_connection', ] @p...
true
true
08f5747e5ccea9bd559b24033ee0e6c01e014749
20,947
py
Python
BenchENAS_linux_platform/algs/evocnn/genetic/crossover_and_mutation.py
benchenas/BenchENAS
776cd1dd035d73c4af369d0106d010b932f64782
[ "MIT" ]
1
2022-01-21T07:56:13.000Z
2022-01-21T07:56:13.000Z
BenchENAS_linux_platform/algs/evocnn/genetic/crossover_and_mutation.py
benchenas/BenchENA
cfb18a8e4bc6cd654df1011c94e3b8a61cd64da3
[ "MIT" ]
1
2022-02-24T06:07:27.000Z
2022-02-24T06:07:27.000Z
BenchENAS_linux_platform/algs/evocnn/genetic/crossover_and_mutation.py
benchenas/BenchENAS
776cd1dd035d73c4af369d0106d010b932f64782
[ "MIT" ]
1
2022-01-20T07:36:37.000Z
2022-01-20T07:36:37.000Z
import random import numpy as np import copy from algs.evocnn.genetic.population import Individual from algs.evocnn.utils import Utils from algs.evocnn.genetic.statusupdatetool import StatusUpdateTool class CrossoverAndMutation(object): def __init__(self, prob_crossover, prob_mutation, _log, individuals, gen_no, ...
42.317172
117
0.540698
import random import numpy as np import copy from algs.evocnn.genetic.population import Individual from algs.evocnn.utils import Utils from algs.evocnn.genetic.statusupdatetool import StatusUpdateTool class CrossoverAndMutation(object): def __init__(self, prob_crossover, prob_mutation, _log, individuals, gen_no, ...
true
true
08f574e0f109cb981a83fd1625f5441f6dd31455
3,013
py
Python
04_authentication_example.py
FAIRdom/api-workshop
ec9db7b7cc556d78d771c2e83234abd4428d9d67
[ "BSD-3-Clause" ]
2
2020-07-22T11:03:07.000Z
2021-11-11T09:36:15.000Z
04_authentication_example.py
FAIRdom/api-workshop
ec9db7b7cc556d78d771c2e83234abd4428d9d67
[ "BSD-3-Clause" ]
null
null
null
04_authentication_example.py
FAIRdom/api-workshop
ec9db7b7cc556d78d771c2e83234abd4428d9d67
[ "BSD-3-Clause" ]
2
2019-03-25T11:54:30.000Z
2020-09-22T09:13:41.000Z
# -*- coding: utf-8 -*- """04 Authentication example.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1e-8bCEDVlQjOCWH0w4iEuRBS-o6c9QEN # 4 Authentication and describing access Policies So far all API access have been http GETs with annonymous (n...
28.695238
224
0.74079
import requests import json import string import getpass base_url = 'https://sandbox3.fairdomhub.org' headers = {"Accept": "application/vnd.api+json", "Accept-Charset": "ISO-8859-1"} session = requests.Session() session.headers.update(headers) session.auth = (input('Username:'), getpass.getpass('Passw...
true
true
08f57553b29b984506b7d27eff576b27e588be75
1,292
py
Python
python_modules/libraries/dagster-datadog/setup.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-datadog/setup.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-datadog/setup.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
from typing import Dict from setuptools import find_packages, setup def get_version() -> str: version: Dict[str, str] = {} with open("dagster_datadog/version.py") as fp: exec(fp.read(), version) # pylint: disable=W0122 return version["__version__"] if __name__ == "__main__": ver = get_ver...
34
105
0.611455
from typing import Dict from setuptools import find_packages, setup def get_version() -> str: version: Dict[str, str] = {} with open("dagster_datadog/version.py") as fp: exec(fp.read(), version) return version["__version__"] if __name__ == "__main__": ver = get_version() pin = "" ...
true
true
08f576d58d81535dce8aeffea2674ee77a7b15ff
1,054
py
Python
task_set/optimizers/utils.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
task_set/optimizers/utils.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
task_set/optimizers/utils.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
34
76
0.720114
import numpy as np def sample_log_float(rng, low, high): return float(np.exp(rng.uniform(np.log(float(low)), np.log(float(high))))) def sample_bool(rng, p): if not 0.0 <= p <= 1.0: raise ValueError("p must be between 0 and 1.") return rng.uniform(0.0, 1.0) < p
true
true
08f57723f379890bcd1e7b5d696cedbaeea79a28
44,091
py
Python
pyontutils/sheets.py
tmsincomb/pyontutils
dad24e7178d8d8cd3bd60d53b9039952fa7a5a1e
[ "MIT" ]
11
2017-05-12T08:50:03.000Z
2022-01-22T20:23:25.000Z
pyontutils/sheets.py
tmsincomb/pyontutils
dad24e7178d8d8cd3bd60d53b9039952fa7a5a1e
[ "MIT" ]
81
2016-02-25T07:39:15.000Z
2022-02-17T20:20:27.000Z
pyontutils/sheets.py
tmsincomb/pyontutils
dad24e7178d8d8cd3bd60d53b9039952fa7a5a1e
[ "MIT" ]
257
2017-07-18T19:32:22.000Z
2022-02-03T17:26:18.000Z
import copy import pickle import itertools from pathlib import Path from urllib.parse import urlparse import idlib import htmlfn as hfn from terminaltables import AsciiTable from pyontutils.utils import byCol, log as _log from pyontutils.config import auth from pyontutils.clifun import python_identifier # TODO decoupl...
35.846341
113
0.589735
import copy import pickle import itertools from pathlib import Path from urllib.parse import urlparse import idlib import htmlfn as hfn from terminaltables import AsciiTable from pyontutils.utils import byCol, log as _log from pyontutils.config import auth from pyontutils.clifun import python_identifier log = _log.ge...
true
true
08f57726f973c5c309b1ef7ffa875d352f30d9b7
2,908
py
Python
art/art_T1218.010-3.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
null
null
null
art/art_T1218.010-3.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
null
null
null
art/art_T1218.010-3.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
1
2022-03-31T11:07:56.000Z
2022-03-31T11:07:56.000Z
from blackbot.core.utils import get_path_in_package from blackbot.core.wss.atomic import Atomic from terminaltables import SingleTable import os import json class Atomic(Atomic): def __init__(self): self.name = 'DefenseEvasion/T1218.010-3' self.controller_type = '' self.external_id = 'T1218...
37.282051
111
0.514099
from blackbot.core.utils import get_path_in_package from blackbot.core.wss.atomic import Atomic from terminaltables import SingleTable import os import json class Atomic(Atomic): def __init__(self): self.name = 'DefenseEvasion/T1218.010-3' self.controller_type = '' self.external_id = 'T1218...
true
true
08f5778c516243ae1be9607738dc26a79f0ae0a5
14,567
py
Python
python_modules/libraries/dagster-aws/dagster_aws/ecs/launcher.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws/ecs/launcher.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws/ecs/launcher.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
import warnings from collections import namedtuple from contextlib import suppress import boto3 from botocore.exceptions import ClientError from dagster import Array, Field, Noneable, ScalarUnion, StringSource from dagster import _check as check from dagster.core.events import EngineEventData, MetadataEntry from dags...
37.255754
124
0.593327
import warnings from collections import namedtuple from contextlib import suppress import boto3 from botocore.exceptions import ClientError from dagster import Array, Field, Noneable, ScalarUnion, StringSource from dagster import _check as check from dagster.core.events import EngineEventData, MetadataEntry from dags...
true
true
08f57819c5ee057c0cda927c8f52adc6b2dd6f1a
6,967
py
Python
tests/property/test_encrypt_hypotheses.py
hodgesmr/electionguard-python
a29590262260db0e9ee0b080c7ed75d278c1478c
[ "MIT" ]
null
null
null
tests/property/test_encrypt_hypotheses.py
hodgesmr/electionguard-python
a29590262260db0e9ee0b080c7ed75d278c1478c
[ "MIT" ]
null
null
null
tests/property/test_encrypt_hypotheses.py
hodgesmr/electionguard-python
a29590262260db0e9ee0b080c7ed75d278c1478c
[ "MIT" ]
null
null
null
from datetime import timedelta from typing import List, Dict from hypothesis import given, HealthCheck, settings, Phase from hypothesis.strategies import integers from tests.base_test_case import BaseTestCase from electionguard.ballot import CiphertextBallot from electionguard.decrypt_with_secrets import decrypt_bal...
39.140449
108
0.684943
from datetime import timedelta from typing import List, Dict from hypothesis import given, HealthCheck, settings, Phase from hypothesis.strategies import integers from tests.base_test_case import BaseTestCase from electionguard.ballot import CiphertextBallot from electionguard.decrypt_with_secrets import decrypt_bal...
true
true
08f578cb5099d8d28a5f04f327571b097af34b95
3,369
py
Python
test_ai.py
bbpp222006/maj_ai
48cf458f621ef7d688757efc98747d20d9f60f3e
[ "MIT" ]
null
null
null
test_ai.py
bbpp222006/maj_ai
48cf458f621ef7d688757efc98747d20d9f60f3e
[ "MIT" ]
null
null
null
test_ai.py
bbpp222006/maj_ai
48cf458f621ef7d688757efc98747d20d9f60f3e
[ "MIT" ]
1
2021-03-17T16:26:32.000Z
2021-03-17T16:26:32.000Z
# -*- coding: utf-8 -*- import importlib from client.mahjong_table import GameTable from client.mahjong_meld import Meld class AI: def __init__(self,in_dic): self.in_dic = in_dic ai_module = importlib.import_module("test_agent.jianyang_ai") waiting_prediction_class = getattr(ai_module, "En...
37.853933
112
0.605818
import importlib from client.mahjong_table import GameTable from client.mahjong_meld import Meld class AI: def __init__(self,in_dic): self.in_dic = in_dic ai_module = importlib.import_module("test_agent.jianyang_ai") waiting_prediction_class = getattr(ai_module, "EnsembleCLF") ense...
true
true
08f57a7df895a7f1cfaf090c01ad0faede1a2e46
822
py
Python
mypath.py
Taoup/interactive-selection
50796c33127557b1cba6b3419e4cb825e0d44516
[ "MIT" ]
null
null
null
mypath.py
Taoup/interactive-selection
50796c33127557b1cba6b3419e4cb825e0d44516
[ "MIT" ]
null
null
null
mypath.py
Taoup/interactive-selection
50796c33127557b1cba6b3419e4cb825e0d44516
[ "MIT" ]
null
null
null
class Path(object): @staticmethod def db_root_dir(dataset): if dataset == 'pascal': return 'D:\\datasets\\' elif dataset == 'tmall': return 'D:\\datasets\\Tmall' elif dataset == 'sbd': return '/path/to/datasets/benchmark_RELEASE/' # folder that contai...
39.142857
91
0.56691
class Path(object): @staticmethod def db_root_dir(dataset): if dataset == 'pascal': return 'D:\\datasets\\' elif dataset == 'tmall': return 'D:\\datasets\\Tmall' elif dataset == 'sbd': return '/path/to/datasets/benchmark_RELEASE/' elif dataset...
true
true
08f57ca5e4a987afec6108b913358b289270ef62
158
py
Python
frappe/patches/v12_0/setup_email_linking.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
3
2017-12-09T22:05:11.000Z
2019-10-22T12:03:43.000Z
frappe/patches/v12_0/setup_email_linking.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
212
2017-08-16T13:03:18.000Z
2020-10-06T12:26:21.000Z
frappe/patches/v12_0/setup_email_linking.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
14
2020-11-04T11:22:44.000Z
2022-02-01T20:59:37.000Z
from __future__ import unicode_literals from frappe.desk.page.setup_wizard.install_fixtures import setup_email_linking def execute(): setup_email_linking()
26.333333
78
0.860759
from __future__ import unicode_literals from frappe.desk.page.setup_wizard.install_fixtures import setup_email_linking def execute(): setup_email_linking()
true
true
08f57db48cbe4f9f05396890b048e97bb21eba53
5,606
py
Python
tensorflow/python/ops/ragged/ragged_resize_image_op_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/python/ops/ragged/ragged_resize_image_op_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/python/ops/ragged/ragged_resize_image_op_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
# Copyright 2021 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/licenses/LICENSE-2.0 # # Unless required by applica...
40.919708
80
0.671245
from absl.testing import parameterized from tensorflow.python.eager import def_function from tensorflow.python.framework import constant_op from tensorflow.python.framework import ops from tensorflow.python.framework import test_util from tensorflow.python.ops import array_ops from tensorflow.python.ops import image_...
true
true
08f57f6f5448729b93f69deb94747090830e8a1b
15,649
py
Python
laser/laser_lstm.py
OneDirection9/LASER
00daa5e32fa302e82118186f95a51743fdefa55e
[ "BSD-3-Clause" ]
1
2020-11-13T11:31:00.000Z
2020-11-13T11:31:00.000Z
laser/laser_lstm.py
OneDirection9/LASER
00daa5e32fa302e82118186f95a51743fdefa55e
[ "BSD-3-Clause" ]
null
null
null
laser/laser_lstm.py
OneDirection9/LASER
00daa5e32fa302e82118186f95a51743fdefa55e
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict import torch import torch.nn as nn import torch.nn.functional as F from fairseq import utils from fairseq.models import ( FairseqEncoder, FairseqIncrementalDecoder, FairseqEncoderDecoderModel, register_model, register_model_architecture, ) from fairseq.models.ls...
40.228792
100
0.652502
from collections import OrderedDict import torch import torch.nn as nn import torch.nn.functional as F from fairseq import utils from fairseq.models import ( FairseqEncoder, FairseqIncrementalDecoder, FairseqEncoderDecoderModel, register_model, register_model_architecture, ) from fairseq.models.ls...
true
true
08f57fd4a5fcabc32d17f7a5f4e539a5a00b3685
736
py
Python
alipay/aop/api/response/AlipayOpenAuthResauthCheckResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenAuthResauthCheckResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenAuthResauthCheckResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenAuthResauthCheckResponse(AlipayResponse): def __init__(self): super(AlipayOpenAuthResauthCheckResponse, self).__init__() self._auth_status = None @prop...
28.307692
107
0.722826
import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenAuthResauthCheckResponse(AlipayResponse): def __init__(self): super(AlipayOpenAuthResauthCheckResponse, self).__init__() self._auth_status = None @property def auth_status(self): return...
true
true
08f57fd523d3b4dfccc75a8929916e80a13c67fa
8,165
py
Python
tests/configuration.py
fengzhongzhu1621/xAirflow
4ecd136eb662d44a4f8d7b9262eca5f2d9f91ec0
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2018-08-31T05:27:36.000Z
2019-04-10T13:09:18.000Z
airflow/tests/configuration.py
kira-lin/ve450-airflow-on-k8s
f28e8b468568c8623134db5a1a8757860788799f
[ "Apache-2.0" ]
null
null
null
airflow/tests/configuration.py
kira-lin/ve450-airflow-on-k8s
f28e8b468568c8623134db5a1a8757860788799f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # 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 #...
36.288889
88
0.674464
from __future__ import print_function from __future__ import unicode_literals import os from collections import OrderedDict import six from airflow import configuration from airflow.configuration import conf, AirflowConfigParser, parameterized_config if six.PY2: import unittest2 as unittest else: impor...
true
true
08f57ff6b80fa223feee0a3fa519aaac7e009860
1,086
py
Python
plugins/aea-ledger-fetchai/aea_ledger_fetchai/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
plugins/aea-ledger-fetchai/aea_ledger_fetchai/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
plugins/aea-ledger-fetchai/aea_ledger_fetchai/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
37.448276
80
0.621547
from .fetchai import * from .fetchai import _FETCH, _FETCHAI
true
true
08f580237e50d30c27bab26463b84a4843917fca
2,072
py
Python
UrsinaShaderBuilder/Nodes/node_array_access.py
Werxzy/UrsinaShaderBuilder
1ee13e36d3787a73e84f6b4bf9b51c51ba75c79b
[ "MIT" ]
3
2022-03-01T00:01:30.000Z
2022-03-13T16:05:06.000Z
UrsinaShaderBuilder/Nodes/node_array_access.py
Werxzy/UrsinaShaderBuilder
1ee13e36d3787a73e84f6b4bf9b51c51ba75c79b
[ "MIT" ]
null
null
null
UrsinaShaderBuilder/Nodes/node_array_access.py
Werxzy/UrsinaShaderBuilder
1ee13e36d3787a73e84f6b4bf9b51c51ba75c79b
[ "MIT" ]
null
null
null
from ursina import destroy from shader_node_connector import NodeConnector from shader_node import ShaderNode ''' Node for accessing a specific element in the array ''' class ArrayAccessNode(ShaderNode): def __init__(self, **kwargs): super().__init__(**kwargs) self.append_text('Array Acc...
35.724138
133
0.60666
from ursina import destroy from shader_node_connector import NodeConnector from shader_node import ShaderNode class ArrayAccessNode(ShaderNode): def __init__(self, **kwargs): super().__init__(**kwargs) self.append_text('Array Access') self.append_divider() self.append_tex...
true
true
08f58070d93d7dbd4106b816d454e022611672c4
4,834
py
Python
src/haddock/libs/libutil.py
haddocking/haddock3
3387ac04fb2c0d0069f7b86bb9bf3ef142282d16
[ "Apache-2.0" ]
21
2020-06-12T00:13:11.000Z
2022-03-28T06:00:17.000Z
src/haddock/libs/libutil.py
haddocking/haddock3
3387ac04fb2c0d0069f7b86bb9bf3ef142282d16
[ "Apache-2.0" ]
293
2020-10-22T10:59:23.000Z
2022-03-25T12:50:06.000Z
src/haddock/libs/libutil.py
haddocking/haddock3
3387ac04fb2c0d0069f7b86bb9bf3ef142282d16
[ "Apache-2.0" ]
17
2020-06-25T15:55:53.000Z
2022-03-24T11:50:10.000Z
"""General utilities.""" import logging import shutil import subprocess from copy import deepcopy from functools import partial from operator import ge from os import cpu_count from pathlib import Path from haddock.core.exceptions import SetupError logger = logging.getLogger(__name__) check_subprocess = partial( ...
23.129187
80
0.611502
import logging import shutil import subprocess from copy import deepcopy from functools import partial from operator import ge from os import cpu_count from pathlib import Path from haddock.core.exceptions import SetupError logger = logging.getLogger(__name__) check_subprocess = partial( subprocess.run, sh...
true
true
08f581ac2db7cac6df1691601644d9c00c5c775e
4,938
py
Python
tests/test_commands_cache.py
luizoti/xonsh
6bf5010350663067d229d9c30d44c4d84987ff58
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_commands_cache.py
luizoti/xonsh
6bf5010350663067d229d9c30d44c4d84987ff58
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_commands_cache.py
luizoti/xonsh
6bf5010350663067d229d9c30d44c4d84987ff58
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import os import builtins import pickle import time from unittest.mock import MagicMock import pytest from xonsh.commands_cache import ( CommandsCache, predict_shell, SHELL_PREDICTOR_PARSER, predict_true, predict_false, ) from xonsh import commands_cache from tools import skip_if_on_windows def ...
27.131868
86
0.666059
import os import builtins import pickle import time from unittest.mock import MagicMock import pytest from xonsh.commands_cache import ( CommandsCache, predict_shell, SHELL_PREDICTOR_PARSER, predict_true, predict_false, ) from xonsh import commands_cache from tools import skip_if_on_windows def ...
true
true
08f58277d25ed9a245ec39722d875ccbc06b0424
3,682
py
Python
app/helpers.py
LachlanMarnham/Aragog
8bf0b37ca8394266d20b0da122753b8d25624f4f
[ "MIT" ]
1
2020-06-08T12:16:45.000Z
2020-06-08T12:16:45.000Z
app/helpers.py
LachlanMarnham/Aragog
8bf0b37ca8394266d20b0da122753b8d25624f4f
[ "MIT" ]
1
2021-06-01T23:27:18.000Z
2021-06-01T23:27:18.000Z
app/helpers.py
LachlanMarnham/Aragog
8bf0b37ca8394266d20b0da122753b8d25624f4f
[ "MIT" ]
null
null
null
from time import sleep, time from urllib.parse import urlparse, urljoin import re from typing import Pattern, Set valid_url_pattern = re.compile(r"^(?:http(s)?://)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'\(\)\*\+,;=]+$") allow_pattern = re.compile(r'^Allow:\s+(.+)$') disallow_pattern = re.compile(r'^Disallow:\s+(.+)...
36.098039
117
0.652363
from time import sleep, time from urllib.parse import urlparse, urljoin import re from typing import Pattern, Set valid_url_pattern = re.compile(r"^(?:http(s)?://)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'\(\)\*\+,;=]+$") allow_pattern = re.compile(r'^Allow:\s+(.+)$') disallow_pattern = re.compile(r'^Disallow:\s+(.+)...
true
true
08f5830dbfb42efa91c0dd3bc573439b077774dd
952
py
Python
isi_sdk_8_1_1/test/test_audit_settings_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_1_1/test/test_audit_settings_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_1_1/test/test_audit_settings_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 6 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_1_1 from i...
23.219512
100
0.720588
from __future__ import absolute_import import unittest import isi_sdk_8_1_1 from isi_sdk_8_1_1.models.audit_settings_settings import AuditSettingsSettings from isi_sdk_8_1_1.rest import ApiException class TestAuditSettingsSettings(unittest.TestCase): def setUp(self): pass def tearDown(self): ...
true
true
08f583f33a5b0931bd119bac78f6eae80b1ec5fe
2,031
py
Python
zcrmsdk/src/com/zoho/crm/api/query/body_wrapper.py
zoho/zohocrm-python-sdk-2.0
3a93eb3b57fed4e08f26bd5b311e101cb2995411
[ "Apache-2.0" ]
null
null
null
zcrmsdk/src/com/zoho/crm/api/query/body_wrapper.py
zoho/zohocrm-python-sdk-2.0
3a93eb3b57fed4e08f26bd5b311e101cb2995411
[ "Apache-2.0" ]
null
null
null
zcrmsdk/src/com/zoho/crm/api/query/body_wrapper.py
zoho/zohocrm-python-sdk-2.0
3a93eb3b57fed4e08f26bd5b311e101cb2995411
[ "Apache-2.0" ]
null
null
null
try: from zcrmsdk.src.com.zoho.crm.api.exception import SDKException from zcrmsdk.src.com.zoho.crm.api.util import Constants except Exception: from ..exception import SDKException from ..util import Constants class BodyWrapper(object): def __init__(self): """Creates an instance of BodyWrapper""" self.__sele...
27.08
100
0.73806
try: from zcrmsdk.src.com.zoho.crm.api.exception import SDKException from zcrmsdk.src.com.zoho.crm.api.util import Constants except Exception: from ..exception import SDKException from ..util import Constants class BodyWrapper(object): def __init__(self): self.__select_query = None self.__key_modified = dic...
true
true