hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
acff06a19ab4fc8ef846bc9f0ec98a5957fe38ae
1,465
py
Python
Utils.py
spidertyler2005/OddDataHosting
56cc378868e0f70f3158e2d1dec39619a0bfc072
[ "MIT" ]
null
null
null
Utils.py
spidertyler2005/OddDataHosting
56cc378868e0f70f3158e2d1dec39619a0bfc072
[ "MIT" ]
null
null
null
Utils.py
spidertyler2005/OddDataHosting
56cc378868e0f70f3158e2d1dec39619a0bfc072
[ "MIT" ]
null
null
null
import hashlib,json,rsa,base64,os from cryptography.hazmat.backends import default_backend from cryptography.fernet import Fernet,MultiFernet from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC def GenKey(filename,size, name, password = b"Passw0rd"): r...
30.520833
76
0.645051
acff06ab0ab2e2e54bba7382146ca17d939ee6df
41,704
py
Python
tests/test_torch_agent.py
duongtrungkien/Parlai_Finnish
e0335b55138093f2a1fb214c73593cc97e71043f
[ "MIT" ]
null
null
null
tests/test_torch_agent.py
duongtrungkien/Parlai_Finnish
e0335b55138093f2a1fb214c73593cc97e71043f
[ "MIT" ]
null
null
null
tests/test_torch_agent.py
duongtrungkien/Parlai_Finnish
e0335b55138093f2a1fb214c73593cc97e71043f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Unit tests for TorchAgent. """ import os import unittest from parlai.core.agents import create_agent_from_shared fr...
39.455061
88
0.559659
acff080a2eae589e43f2fabcf3724a2a327a6d45
694
py
Python
badges/views.py
Tudmotu/Open-Knesset
005adff8422ad34af8f78b0f32e7052b65a5bad3
[ "BSD-3-Clause" ]
1
2018-12-11T01:43:25.000Z
2018-12-11T01:43:25.000Z
badges/views.py
Tudmotu/Open-Knesset
005adff8422ad34af8f78b0f32e7052b65a5bad3
[ "BSD-3-Clause" ]
null
null
null
badges/views.py
Tudmotu/Open-Knesset
005adff8422ad34af8f78b0f32e7052b65a5bad3
[ "BSD-3-Clause" ]
null
null
null
from django.db.models import Count from django.views.generic import DetailView, ListView from models import Badge, BadgeType class BadgeTypeDetailView(DetailView): model = BadgeType template_name = 'badges/badge_detail.html' def get_context_data(self, *args, **kwargs): context = super(BadgeTypeDe...
30.173913
79
0.688761
acff08d82c05b50a9e27cf3c490041bba9bb47dc
9,627
py
Python
txtools/normalizer.py
fdelgados/Textools
d7721a35961765a35cd45e115ff24bbd7eef58e4
[ "MIT" ]
1
2020-06-13T01:39:44.000Z
2020-06-13T01:39:44.000Z
txtools/normalizer.py
fdelgados/Textools
d7721a35961765a35cd45e115ff24bbd7eef58e4
[ "MIT" ]
null
null
null
txtools/normalizer.py
fdelgados/Textools
d7721a35961765a35cd45e115ff24bbd7eef58e4
[ "MIT" ]
null
null
null
import sys import os import re import html import unicodedata import string import binascii from typing import List, Tuple import nltk from contextlib import redirect_stdout from nltk.corpus import stopwords, wordnet from nltk.stem import WordNetLemmatizer from nltk.stem.snowball import SnowballStemmer from nltk.tokeni...
31.772277
99
0.631349
acff09226a0f6f8c1f3a7ea318da1fc33082b932
11,524
py
Python
layers/graphsage_layer.py
Janusz478/gnn_ce
91fc9610557772f0179cbd47ac13d3213a37bdfe
[ "MIT" ]
2
2021-12-16T14:23:43.000Z
2022-03-01T14:36:45.000Z
layers/graphsage_layer.py
MrRyschkov/LGP-GNN
3eb7a54016423abad30c1e30bf4df96fdd0851b4
[ "MIT" ]
null
null
null
layers/graphsage_layer.py
MrRyschkov/LGP-GNN
3eb7a54016423abad30c1e30bf4df96fdd0851b4
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import dgl.function as fn from dgl.nn.pytorch import SAGEConv """ GraphSAGE: William L. Hamilton, Rex Ying, Jure Leskovec, Inductive Representation Learning on Large Graphs (NeurIPS 2017) https://cs.stanford.edu/people/jure/pubs/graphsage...
31.061995
114
0.535925
acff098355cac8e6ac018ba448df54201324c2a8
20,587
py
Python
plotTableScripts/jsonPlot.py
rauterRaphael/comparisonNILMOutlierDetection
c38a126dffa0b7493a630461121e05ee36a12eb4
[ "MIT" ]
null
null
null
plotTableScripts/jsonPlot.py
rauterRaphael/comparisonNILMOutlierDetection
c38a126dffa0b7493a630461121e05ee36a12eb4
[ "MIT" ]
null
null
null
plotTableScripts/jsonPlot.py
rauterRaphael/comparisonNILMOutlierDetection
c38a126dffa0b7493a630461121e05ee36a12eb4
[ "MIT" ]
null
null
null
import os import sys import csv import json import numpy as np import copy import glob import shutil import collections import matplotlib.pyplot as plt ### ------------------------------------------------------------- ### def getJsonFile(): if not os.path.exists("simuResults"): return input("Path to json ...
40.685771
191
0.52606
acff0bb10360be258d6857cb7d43f1072e1cadf8
360
py
Python
titanic/scripts/clf_reporter.py
wojtekwalczak/kaggle_titanic
f13258dcb9e964bcad61609fdcc374e3db47824e
[ "Apache-2.0" ]
null
null
null
titanic/scripts/clf_reporter.py
wojtekwalczak/kaggle_titanic
f13258dcb9e964bcad61609fdcc374e3db47824e
[ "Apache-2.0" ]
null
null
null
titanic/scripts/clf_reporter.py
wojtekwalczak/kaggle_titanic
f13258dcb9e964bcad61609fdcc374e3db47824e
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import sys from sklearn.metrics import classification_report from titanic.db.train_test_loader import x_test, x_train, y_test, y_train from titanic.utils.pick_pipeline import pick_pipeline pipeline = pick_pipeline(sys.argv) clf = pipeline.fit(x_train, y_train) print(classificat...
30
73
0.838889
acff0bbd6629661a2c4123869e9e341b4df11838
4,113
py
Python
evap/evaluation/admin.py
karyon/EvaP
9026fe0af4e261be73423131cfc52a7e655c82e6
[ "MIT" ]
null
null
null
evap/evaluation/admin.py
karyon/EvaP
9026fe0af4e261be73423131cfc52a7e655c82e6
[ "MIT" ]
null
null
null
evap/evaluation/admin.py
karyon/EvaP
9026fe0af4e261be73423131cfc52a7e655c82e6
[ "MIT" ]
null
null
null
from evap.evaluation.models import Contribution, Course, RatingAnswerCounter, Question, Questionnaire, Semester, TextAnswer, UserProfile from django.conf import settings from django.contrib import admin from django import forms from django.contrib.auth.admin import UserAdmin from django.contrib.auth.forms import ReadOn...
35.456897
147
0.688062
acff106dfdef833b2f0ed9ed55dcca336b02e0d4
1,638
py
Python
research/cv/mobilenetV3_small_x1_0/export.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/mobilenetV3_small_x1_0/export.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/mobilenetV3_small_x1_0/export.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
40.95
94
0.742369
acff107c8226ae60cea5b39c523330260aa9a984
2,959
py
Python
rcsb/utils/tests-ccdc/testCcdcSearchExecMp.py
rcsb/py-rcsb_utils_ccdc
2c635ef9fa03ddcb402fc402d225d48b37b4e301
[ "Apache-2.0" ]
null
null
null
rcsb/utils/tests-ccdc/testCcdcSearchExecMp.py
rcsb/py-rcsb_utils_ccdc
2c635ef9fa03ddcb402fc402d225d48b37b4e301
[ "Apache-2.0" ]
null
null
null
rcsb/utils/tests-ccdc/testCcdcSearchExecMp.py
rcsb/py-rcsb_utils_ccdc
2c635ef9fa03ddcb402fc402d225d48b37b4e301
[ "Apache-2.0" ]
null
null
null
## # # File: testCcdcSearchMp.py # Author: J. Westbrook # Date: 15-Jan-2021 # Version: 0.001 # # Updated: # ## """ Test cases for chemical component search (mp) against the CCDC local Python API - """ __docformat__ = "restructuredtext en" __author__ = "John Westbrook" __email__ = "john.westbrook@rcsb.org" __lice...
34.406977
149
0.676918
acff11161183de7548681e0d954cb38cf8f14758
8,008
py
Python
tests/test_remote_monitor.py
triton-inference-server/model_analyzer
3151792403b4e3257dd5188fe745bbdf68e521e9
[ "Apache-2.0" ]
115
2020-09-03T18:48:16.000Z
2022-03-31T13:10:48.000Z
tests/test_remote_monitor.py
triton-inference-server/model_analyzer
3151792403b4e3257dd5188fe745bbdf68e521e9
[ "Apache-2.0" ]
101
2020-09-08T19:16:31.000Z
2022-03-31T23:32:54.000Z
tests/test_remote_monitor.py
triton-inference-server/model_analyzer
3151792403b4e3257dd5188fe745bbdf68e521e9
[ "Apache-2.0" ]
39
2020-09-08T21:57:17.000Z
2022-03-31T12:13:10.000Z
# Copyright (c) 2021 NVIDIA CORPORATION & 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. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
46.830409
128
0.733766
acff121abb9f26289a0509d11034c7756453eee5
1,332
py
Python
frappe/desk/doctype/route_history/route_history.py
ZirrusOne/z1n-frappe
c5a266d8dc1dbed077d2356bf189ba1fc3fa7497
[ "MIT" ]
null
null
null
frappe/desk/doctype/route_history/route_history.py
ZirrusOne/z1n-frappe
c5a266d8dc1dbed077d2356bf189ba1fc3fa7497
[ "MIT" ]
null
null
null
frappe/desk/doctype/route_history/route_history.py
ZirrusOne/z1n-frappe
c5a266d8dc1dbed077d2356bf189ba1fc3fa7497
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018, Frappe Technologies and contributors # For license information, please see license.txt from __future__ import unicode_literals import json import frappe from frappe.deferred_insert import deferred_insert as _deferred_insert from frappe.model.document import Document cl...
21.483871
70
0.692192
acff12846ab8243bfe5b6c158adff9e32d960781
33,549
py
Python
test/test_ops.py
Daybreak2019/pytorch
40373e754c6f0c64117f18151cc82ab0eecb5861
[ "Intel" ]
1
2021-04-11T08:27:46.000Z
2021-04-11T08:27:46.000Z
test/test_ops.py
subhankar01/pytorch
b80c6f863f2327c712c478f67c248b94d66b65ac
[ "Intel" ]
1
2022-01-18T12:17:29.000Z
2022-01-18T12:17:29.000Z
test/test_ops.py
subhankar01/pytorch
b80c6f863f2327c712c478f67c248b94d66b65ac
[ "Intel" ]
2
2021-07-02T10:18:21.000Z
2021-08-18T10:10:28.000Z
from functools import partial, wraps import warnings import torch from torch.testing import \ (FileCheck, floating_and_complex_types_and) from torch.testing._internal.common_utils import \ (TestCase, is_iterable_of_tensors, run_tests, IS_SANDCASTLE, clone_input_helper, make_tensor) from torch.testing._interna...
48.341499
124
0.605532
acff13edc3434c095d3f4bfe7e23fd1bc45b2f97
8,363
py
Python
src/the_tale/the_tale/game/bills/tests/test_building_create.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/game/bills/tests/test_building_create.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/game/bills/tests/test_building_create.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
import smart_imports smart_imports.all() class BuildingCreateTests(helpers.BaseTestPrototypes): def setUp(self): super(BuildingCreateTests, self).setUp() self.person_1 = sorted(self.place1.persons, key=lambda person: -politic_power_storage.persons.total_power_fraction(person.id))[0] se...
45.205405
156
0.691618
acff146028b079db979b72e84c9e9a0719a42e16
2,307
py
Python
KissAnimeDownloader.py
Aditya8795/Python-Scripts
e2a66d5f864571c5e2ff18bac98f7a1ab96a21ee
[ "MIT" ]
1
2015-10-18T13:32:37.000Z
2015-10-18T13:32:37.000Z
KissAnimeDownloader.py
Aditya8795/Python-Scripts
e2a66d5f864571c5e2ff18bac98f7a1ab96a21ee
[ "MIT" ]
null
null
null
KissAnimeDownloader.py
Aditya8795/Python-Scripts
e2a66d5f864571c5e2ff18bac98f7a1ab96a21ee
[ "MIT" ]
null
null
null
# KISSANIME - http://kissanime.com/ ANIME DOWNLOADER from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.common.keys import Keys import time BASE_URL = "http://kissanime.com/Anime/" DELAY = 10 # change it depending on your internet connectivity episodeURLs = [] downloadURLs = [] #---...
23.07
106
0.648895
acff16245aeba34df67b0b0a242e602f8b0f4900
2,289
py
Python
skl2onnx/operator_converters/voting_regressor.py
Alexsandruss/sklearn-onnx
b612557615df439e471867a676c9eca8ae4a787c
[ "Apache-2.0" ]
1
2021-06-11T22:08:57.000Z
2021-06-11T22:08:57.000Z
skl2onnx/operator_converters/voting_regressor.py
ogrisel/sklearn-onnx
0afbe295aa3f1abbcea60f582faac31d16bd3ab0
[ "Apache-2.0" ]
null
null
null
skl2onnx/operator_converters/voting_regressor.py
ogrisel/sklearn-onnx
0afbe295aa3f1abbcea60f582faac31d16bd3ab0
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 from ..common._registration import register_converter from ..common._apply_operation import apply_mul from ..common.data_types import ( guess_proto_type, FloatTensorType, DoubleTensorType) from .._supported_operators import sklearn_operator_name_map def convert_voting_regre...
35.215385
74
0.670599
acff16f2877acb427fadf36b74155d1b85f707e5
1,383
py
Python
snippets.py
ThinkDownstairs/coder
7a42a9bac941039b96ccf2430e560cc60e2159df
[ "WTFPL" ]
1
2018-03-20T06:01:17.000Z
2018-03-20T06:01:17.000Z
snippets.py
ThinkDownstairs/coder
7a42a9bac941039b96ccf2430e560cc60e2159df
[ "WTFPL" ]
19
2018-03-20T23:11:38.000Z
2018-04-01T17:39:10.000Z
snippets.py
ThinkDownstairs/coder
7a42a9bac941039b96ccf2430e560cc60e2159df
[ "WTFPL" ]
null
null
null
import pygame import animations import status import game_objects import consts import color import random from typing import Tuple, List class Snippet(game_objects.GameObject): def __init__(self, status_: status.Status, mouse_pos_x: int) -> None: super().__init__() self._animation = animations.Sn...
33.731707
79
0.656544
acff1708fd714b8158db309bc50e6cb97409ad06
2,161
py
Python
ideaseed/authentication.py
ewen-lbh/ideaseed
ee808c16d4cf27d2b337c45d3bebb257af748eff
[ "MIT" ]
2
2021-05-09T19:40:44.000Z
2021-05-16T02:52:35.000Z
ideaseed/authentication.py
ewen-lbh/ideaseed
ee808c16d4cf27d2b337c45d3bebb257af748eff
[ "MIT" ]
202
2020-06-16T20:22:13.000Z
2021-12-05T17:34:41.000Z
ideaseed/authentication.py
ewen-lbh/ideaseed
ee808c16d4cf27d2b337c45d3bebb257af748eff
[ "MIT" ]
null
null
null
import json from contextlib import contextmanager from pathlib import Path from typing import Any, Tuple, TypeVar from rich import print T = TypeVar("T") class Cache: def __init__(self, path: Path, service: str): if not isinstance(path, Path): raise TypeError("Please use a Path for the `path...
30.871429
152
0.611291
acff17205714c38265f2c66355fdfec71ec4184d
5,603
py
Python
sdk/python/pulumi_azure_native/dbformysql/v20180601/get_private_endpoint_connection.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/dbformysql/v20180601/get_private_endpoint_connection.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/dbformysql/v20180601/get_private_endpoint_connection.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
41.503704
193
0.695699
acff180bde04673a7b76b5a711220cfe8b28ed13
3,638
py
Python
models/ro - Copy.py
ErikHumphrey/sustain-seq2seq
c4787f0ca1047d01385e4fa4ffde59c6a8ab4cc4
[ "Apache-2.0" ]
4
2019-05-09T19:47:48.000Z
2020-04-11T13:58:31.000Z
models/ro - Copy.py
ErikHumphrey/sustain-seq2seq
c4787f0ca1047d01385e4fa4ffde59c6a8ab4cc4
[ "Apache-2.0" ]
null
null
null
models/ro - Copy.py
ErikHumphrey/sustain-seq2seq
c4787f0ca1047d01385e4fa4ffde59c6a8ab4cc4
[ "Apache-2.0" ]
4
2018-12-05T01:52:22.000Z
2019-11-01T01:01:52.000Z
import torch import torch.nn.functional as F import numpy as np from pytorch_transformers import GPT2LMHeadModel, GPT2Tokenizer from tqdm import trange import logging logging.basicConfig(level=logging.INFO) tokenizer = GPT2Tokenizer.from_pretrained('gpt2') model = GPT2LMHeadModel.from_pretrained('gpt2') model.eval() ...
42.8
122
0.684992
acff183310c2de8404a8218e211ef28c46fb7985
4,393
py
Python
test/functional/merkle_blocks.py
kevinjp2000/wificoin
9eb95358cf612c76fd55b47fed3b824051344be8
[ "MIT" ]
98
2018-03-26T02:51:08.000Z
2022-02-13T23:58:46.000Z
test/functional/merkle_blocks.py
kevinjp2000/wificoin
9eb95358cf612c76fd55b47fed3b824051344be8
[ "MIT" ]
2
2018-05-16T05:47:04.000Z
2018-06-04T05:12:37.000Z
test/functional/merkle_blocks.py
kevinjp2000/wificoin
9eb95358cf612c76fd55b47fed3b824051344be8
[ "MIT" ]
23
2018-04-02T14:36:07.000Z
2021-01-08T18:09:15.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The WiFicoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test gettxoutproof and verifytxoutproof RPCs.""" from test_framework.test_framework import WiFicoinTe...
52.297619
142
0.686092
acff189a2aca4fb0f35b5584ea46643cfd53bd0f
19,220
py
Python
manim/animation/animation.py
phoreverphoenix/manim
ef00ae5e668907eac2ae18c19c35e78671ccfcc2
[ "MIT" ]
1
2022-03-10T18:42:04.000Z
2022-03-10T18:42:04.000Z
manim/animation/animation.py
ali-alnamr/manim
8e6a4c48aca882e526558fd9f9e5419a8f36b876
[ "MIT" ]
null
null
null
manim/animation/animation.py
ali-alnamr/manim
8e6a4c48aca882e526558fd9f9e5419a8f36b876
[ "MIT" ]
null
null
null
"""Animate mobjects.""" from __future__ import annotations from manim.mobject.opengl.opengl_mobject import OpenGLMobject from .. import config, logger from ..mobject import mobject from ..mobject.mobject import Mobject from ..mobject.opengl import opengl_mobject from ..utils.rate_functions import smooth __all__ = ...
31.611842
115
0.603798
acff19c6988286d1e70c9e469174e8c17f659ab9
625
py
Python
bugs/issue-197-empty-selected-fnc-body/test.py
stepanek-m/retdec-regression-tests
12b834b14ede2826fec451368fa8192ab00ddadf
[ "MIT" ]
null
null
null
bugs/issue-197-empty-selected-fnc-body/test.py
stepanek-m/retdec-regression-tests
12b834b14ede2826fec451368fa8192ab00ddadf
[ "MIT" ]
null
null
null
bugs/issue-197-empty-selected-fnc-body/test.py
stepanek-m/retdec-regression-tests
12b834b14ede2826fec451368fa8192ab00ddadf
[ "MIT" ]
null
null
null
import re from regression_tests import * class Test(Test): settings=TestSettings( input='arm-elf-09923a6e40662aab0ad2a1096f802f08', args='--select-functions=LzmaProps_Decode' ) def test_selected_function(self): assert self.out_c.has_comment_matching('// Address range: 0x7148 - 0x7...
34.722222
83
0.64
acff19d177697db747bcd9e187cc727e39ec3c87
1,921
py
Python
satchless/util/tests.py
bartels/satchless
4d333014333dc4fd5815f9e0bbea565959919a30
[ "BSD-4-Clause" ]
null
null
null
satchless/util/tests.py
bartels/satchless
4d333014333dc4fd5815f9e0bbea565959919a30
[ "BSD-4-Clause" ]
null
null
null
satchless/util/tests.py
bartels/satchless
4d333014333dc4fd5815f9e0bbea565959919a30
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings from django.test import TestCase, Client class BaseTestCase(TestCase): def _setup_settings(self, custom_settings): original_settings = {} for setting_name, value in custom_settings.items(): if hasattr(settings, setting_name): ...
43.659091
98
0.633004
acff19d1c74d97ba0a95ea147de47dc6aa952d99
3,095
py
Python
api-ref/source/conf.py
kud-aa/openstackdocstheme
5346718ddee29043adbf5a6b224ccc234b34ece1
[ "Apache-2.0" ]
39
2015-02-06T07:32:30.000Z
2020-05-24T10:30:00.000Z
api-ref/source/conf.py
kud-aa/openstackdocstheme
5346718ddee29043adbf5a6b224ccc234b34ece1
[ "Apache-2.0" ]
null
null
null
api-ref/source/conf.py
kud-aa/openstackdocstheme
5346718ddee29043adbf5a6b224ccc234b34ece1
[ "Apache-2.0" ]
6
2015-03-02T15:14:32.000Z
2022-03-14T14:54:00.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2020 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
34.388889
78
0.713409
acff1a10e2aa1485712212295c43806d9c34644f
627
py
Python
loader/__init__.py
JasonkayZK/GitHubPoster
959520a9696cb06b0d4927fe1a4d48e09e7ca8ac
[ "MIT" ]
1
2021-06-15T10:53:15.000Z
2021-06-15T10:53:15.000Z
loader/__init__.py
JasonkayZK/GitHubPoster
959520a9696cb06b0d4927fe1a4d48e09e7ca8ac
[ "MIT" ]
null
null
null
loader/__init__.py
JasonkayZK/GitHubPoster
959520a9696cb06b0d4927fe1a4d48e09e7ca8ac
[ "MIT" ]
null
null
null
from .bilibili_loader import BilibiliLoader from .cichang_loader import CiChangLoader from .duolingo_loader import DuolingoLoader from .from_github_issue_loader import GitHubIssuesLoader from .github_loader import GitHubLoader from .gitlab_loader import GitLabLoader from .gpx_loader import GPXLoader from .kindle_loader...
39.1875
56
0.880383
acff1c5124d8f7aee7cb92661feee12054f22dbc
9,132
py
Python
emlo-edit-php-helper/tweaker/tweak_add_works_people_places_manifestations_repository.py
culturesofknowledge/site-editor
9a74580d2567755ab068a2d8761df8f81718910e
[ "MIT" ]
null
null
null
emlo-edit-php-helper/tweaker/tweak_add_works_people_places_manifestations_repository.py
culturesofknowledge/site-editor
9a74580d2567755ab068a2d8761df8f81718910e
[ "MIT" ]
null
null
null
emlo-edit-php-helper/tweaker/tweak_add_works_people_places_manifestations_repository.py
culturesofknowledge/site-editor
9a74580d2567755ab068a2d8761df8f81718910e
[ "MIT" ]
1
2021-11-15T13:19:28.000Z
2021-11-15T13:19:28.000Z
from __future__ import print_function from tweaker.tweaker import DatabaseTweaker from config import config import sys def main() : do_commit = ( raw_input("Commit changes to database (y/n): ") == "y") if do_commit: print( "COMMITTING changes to database." ) else: print( "NOT committing changes to database." )...
27.926606
138
0.736531
acff1c6ec895a0177f628b6b3112b85cbc951139
3,878
py
Python
select_mask.py
stockmann-lab/ASL_coil
14260ca18b4a13fb9290b0507a4279d9e4023665
[ "MIT" ]
null
null
null
select_mask.py
stockmann-lab/ASL_coil
14260ca18b4a13fb9290b0507a4279d9e4023665
[ "MIT" ]
10
2021-01-04T01:45:52.000Z
2021-03-04T17:57:11.000Z
select_mask.py
stockmann-lab/ASL_coil
14260ca18b4a13fb9290b0507a4279d9e4023665
[ "MIT" ]
null
null
null
import os import sys import numpy as np import matplotlib.pyplot as plt import scipy import scipy.io as sio from slice_plotter import Slice_Plotter from slice_plotter import quick_slice_plot from matplotlib.widgets import RectangleSelector from matplotlib.patches import Rectangle def select_callback_link(link_target...
34.936937
135
0.570913
acff1d71ebaeb0ed2afef261be0b9042afaea5e8
29,232
py
Python
redmapper/background.py
jacobic/redmapper
bda5bd6f486fd5f18d35aa9ae4b875628e905604
[ "Apache-2.0" ]
null
null
null
redmapper/background.py
jacobic/redmapper
bda5bd6f486fd5f18d35aa9ae4b875628e905604
[ "Apache-2.0" ]
null
null
null
redmapper/background.py
jacobic/redmapper
bda5bd6f486fd5f18d35aa9ae4b875628e905604
[ "Apache-2.0" ]
null
null
null
"""Galaxy background classes for redmapper. This file contains classes to describe the b(x) background terms for computing richness and other redmapper likelihoods. """ import fitsio import numpy as np import healpy as hp import time import copy import os import esutil from tqdm import tqdm import multiprocessing im...
38.564644
170
0.589046
acff1e1f055b5e04cc541be7dcdc21c692f5eaf1
8,210
py
Python
luna/gateware/usb/request/standard.py
pimdegroot/luna
16110a59c72279e7272310e81ca4656da11fb1da
[ "BSD-3-Clause" ]
null
null
null
luna/gateware/usb/request/standard.py
pimdegroot/luna
16110a59c72279e7272310e81ca4656da11fb1da
[ "BSD-3-Clause" ]
null
null
null
luna/gateware/usb/request/standard.py
pimdegroot/luna
16110a59c72279e7272310e81ca4656da11fb1da
[ "BSD-3-Clause" ]
null
null
null
# # This file is part of LUNA. # # Copyright (c) 2020 Great Scott Gadgets <info@greatscottgadgets.com> # SPDX-License-Identifier: BSD-3-Clause """ Standard, full-gateware control request handlers. """ import unittest from nmigen import Module, Elaboratable, Cat from usb_protocol.types import USBS...
40.44335
123
0.578441
acff1e28224da0658c8a5600ee3bd42ece7758a0
767
py
Python
boards/milador-nrf52-0.1.0/libraries/Adafruit_TinyUSB_Arduino/examples/HID/hid_generic_inout/hid_test.py
milador/milador-arduino
d0f9ebe33e0e67a921f96d0e278d9d646b8bad91
[ "MIT" ]
null
null
null
boards/milador-nrf52-0.1.0/libraries/Adafruit_TinyUSB_Arduino/examples/HID/hid_generic_inout/hid_test.py
milador/milador-arduino
d0f9ebe33e0e67a921f96d0e278d9d646b8bad91
[ "MIT" ]
null
null
null
boards/milador-nrf52-0.1.0/libraries/Adafruit_TinyUSB_Arduino/examples/HID/hid_generic_inout/hid_test.py
milador/milador-arduino
d0f9ebe33e0e67a921f96d0e278d9d646b8bad91
[ "MIT" ]
null
null
null
# Install python3 HID package https://pypi.org/project/hid/ import hid # default is Adafruit VID USB_VID = 0x239A print("Openning HID device with VID = 0x%X" % USB_VID) for dict in hid.enumerate(USB_VID): print(dict) dev = hid.Device(dict['vendor_id'], dict['product_id']) if dev: while True: ...
34.863636
80
0.623207
acff1f27c6020b2856358cf84740606ea614f1eb
961
py
Python
#47. Permutations II.py
medisean/leetcode
f218fb738fb2b57f5eea3795a0a02cf495561465
[ "MIT" ]
null
null
null
#47. Permutations II.py
medisean/leetcode
f218fb738fb2b57f5eea3795a0a02cf495561465
[ "MIT" ]
null
null
null
#47. Permutations II.py
medisean/leetcode
f218fb738fb2b57f5eea3795a0a02cf495561465
[ "MIT" ]
null
null
null
''' Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ] 排列组合算法 3! = 6 ''' class Solution: def permute(self, nums: [int]) -> [[int]]: results = [] for i in range(len(nums))...
22.348837
74
0.391259
acff214608f592e6039398081f65cd77afe83a74
810
py
Python
strstr/2.py
stonemary/lintcode_solutions
f41fd0e56fb88ab54d0ab624977bff1623a6d33a
[ "Apache-2.0" ]
null
null
null
strstr/2.py
stonemary/lintcode_solutions
f41fd0e56fb88ab54d0ab624977bff1623a6d33a
[ "Apache-2.0" ]
null
null
null
strstr/2.py
stonemary/lintcode_solutions
f41fd0e56fb88ab54d0ab624977bff1623a6d33a
[ "Apache-2.0" ]
null
null
null
# 15 mins class Solution: def strStr(self, source, target): source_pointer = 0 target_pointer = 0 if source is None or target is None: return -1 while source_pointer < len(source): if target_pointer == len(target): ...
28.928571
64
0.485185
acff21d32ab75fe985dda114c20d947a85a42c6e
2,126
py
Python
tokio/cli/cache_slurm.py
NERSC/pytokio
22244718cf82567c50620cbe0e635dfc990de36b
[ "BSD-3-Clause-LBNL" ]
22
2017-11-14T01:30:48.000Z
2022-01-01T21:51:00.000Z
tokio/cli/cache_slurm.py
glennklockwood/pytokio
22244718cf82567c50620cbe0e635dfc990de36b
[ "BSD-3-Clause-LBNL" ]
39
2017-12-20T01:42:19.000Z
2020-05-28T21:17:26.000Z
tokio/cli/cache_slurm.py
glennklockwood/pytokio
22244718cf82567c50620cbe0e635dfc990de36b
[ "BSD-3-Clause-LBNL" ]
5
2018-02-06T19:39:19.000Z
2019-07-10T01:20:26.000Z
""" Provides CLI interfaces for :meth:`tokio.connectors.slurm.Slurm.to_dataframe` and :meth:`tokio.connectors.slurm.Slurm.to_json`. """ import os import argparse import tokio.connectors.slurm def main(argv=None): """Entry point for the CLI interface """ parser = argparse.ArgumentParser() parser.add_ar...
36.033898
97
0.639699
acff234179eebfc040a19396abc376a7e8f1bb90
77
py
Python
hello_world.py
natewachter/ASTR-119
4494731fdf69397b9701d6594b60f67326656558
[ "MIT" ]
null
null
null
hello_world.py
natewachter/ASTR-119
4494731fdf69397b9701d6594b60f67326656558
[ "MIT" ]
3
2020-10-01T17:51:33.000Z
2020-11-29T23:51:04.000Z
hello_world.py
natewachter/ASTR-119
4494731fdf69397b9701d6594b60f67326656558
[ "MIT" ]
null
null
null
#This program will print out a simple welcome message. print("Hello World!")
25.666667
54
0.766234
acff234ac7d43aa3e0f50309b131cf919d9acdee
322
py
Python
firebase/firestore-py/bin/signout.py
BraydenKO/RamLife
10c9bbb7338fbaf6c3d1c98bb2f559e6cc089ee6
[ "MIT" ]
3
2021-10-03T11:37:11.000Z
2022-01-20T15:39:58.000Z
firebase/firestore-py/bin/signout.py
BraydenKO/RamLife
10c9bbb7338fbaf6c3d1c98bb2f559e6cc089ee6
[ "MIT" ]
58
2020-03-10T18:48:52.000Z
2021-08-31T23:19:09.000Z
firebase/firestore-py/bin/signout.py
Ramaz-Upper-School/RamLife
5015c72f6e6dc53cd5dd37bd3f0f87caf40ec0c4
[ "MIT" ]
8
2020-09-08T18:29:54.000Z
2021-04-20T23:11:50.000Z
from firebase_admin import delete_app import lib.services as firebase import lib.utils as utils if __name__ == "__main__": utils.logger.info("Signing out all users...") for user in firebase.list_users(): firebase.auth.revoke_token(user) delete_app(firebase.app) utils.logger.info("All users have been signed out"...
26.833333
52
0.773292
acff237612c06a8cb2bf3dac37240e94e12ffef0
305
py
Python
data/multilingual/Latn.FAO/Serif_16/pdf_to_json_test_Latn.FAO_Serif_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.FAO/Serif_16/pdf_to_json_test_Latn.FAO_Serif_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.FAO/Serif_16/pdf_to_json_test_Latn.FAO_Serif_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.FAO/Serif_16/udhr_Latn.FAO_Serif_16.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.5
75
0.813115
acff24208a93b7f9fa274d1eccb02cbf3962a2b5
20,418
py
Python
src/scenic/syntax/veneer.py
shr-project/Scenic
e3ea4c426af7619b4308233fa5e7a33ebcf5dcb9
[ "BSD-3-Clause" ]
null
null
null
src/scenic/syntax/veneer.py
shr-project/Scenic
e3ea4c426af7619b4308233fa5e7a33ebcf5dcb9
[ "BSD-3-Clause" ]
null
null
null
src/scenic/syntax/veneer.py
shr-project/Scenic
e3ea4c426af7619b4308233fa5e7a33ebcf5dcb9
[ "BSD-3-Clause" ]
null
null
null
"""Veneer library, with Python implementations of Scenic language constructs. This module is automatically imported by all Scenic programs. In addition to defining the built-in functions, operators, specifiers, etc., it also stores global state such as the list of all created Scenic objects. """ __all__ = ( # Primi...
35.633508
91
0.710452
acff24c5e61d8912098de13f15fc800ccbcb1e14
37,571
py
Python
python/istio_api/mixer/v1/mixer_pb2.py
jasonwzm/istio-api-x
01ec7524898b1ce77e87341ce08a6ed79efcd98f
[ "Apache-2.0" ]
null
null
null
python/istio_api/mixer/v1/mixer_pb2.py
jasonwzm/istio-api-x
01ec7524898b1ce77e87341ce08a6ed79efcd98f
[ "Apache-2.0" ]
null
null
null
python/istio_api/mixer/v1/mixer_pb2.py
jasonwzm/istio-api-x
01ec7524898b1ce77e87341ce08a6ed79efcd98f
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: mixer/v1/mixer.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as...
43.135476
4,101
0.765244
acff251cbddd4e5f881343f166fe65b7f9d48f85
87,500
py
Python
my_server/dist/ba_root/mods/chatCmd.py
FireFighter1027/ba_1.6
8e0460c4d7228102726578fb4acd4ff081e12fc3
[ "MIT" ]
6
2021-04-16T14:25:25.000Z
2021-11-18T17:20:19.000Z
my_server/dist/ba_root/mods/chatCmd.py
FireFighter1027/ba_1.6
8e0460c4d7228102726578fb4acd4ff081e12fc3
[ "MIT" ]
1
2021-08-30T10:09:06.000Z
2021-09-21T10:44:15.000Z
my_server/dist/ba_root/mods/chatCmd.py
FireFighter1027/ba_1.6
8e0460c4d7228102726578fb4acd4ff081e12fc3
[ "MIT" ]
2
2021-04-20T15:39:27.000Z
2021-07-18T08:45:56.000Z
# -*- coding: utf-8 -*- # coding: utf-8 # ba_meta require api 6 import ba,_ba,random,os,json,roles,mysettings from mysettings import * from typing import List, Sequence, Optional, Dict, Any reply = None client_str = None uniqueID = None commandByCoin = False commandSuccess = False costOfCommand = None def clientIdF...
55.100756
290
0.376754
acff2549ef9e1ee8f3eed300bc87c26d73ba5613
12,724
py
Python
luseesky/utils/parse_fits.py
christianhbye/lusee_sky_simulations
608fb9486affcc56b894b43ae029df9ba4a324ee
[ "MIT" ]
null
null
null
luseesky/utils/parse_fits.py
christianhbye/lusee_sky_simulations
608fb9486affcc56b894b43ae029df9ba4a324ee
[ "MIT" ]
10
2022-02-14T07:40:02.000Z
2022-03-02T05:12:41.000Z
luseesky/utils/parse_fits.py
christianhbye/lusee_sky_simulations
608fb9486affcc56b894b43ae029df9ba4a324ee
[ "MIT" ]
null
null
null
from astropy.io import fits # type: ignore from dataclasses import dataclass, field import matplotlib.pyplot as plt # type: ignore import numpy as np from pathlib import Path from pyuvdata import uvbeam # type: ignore from typing import Any, Optional import warnings from .coordinates import sph2cart, cart2sph def...
36.563218
79
0.51116
acff259283e1eec5e8740c189d715e031471ec8c
1,613
py
Python
SR/model/SRCNN.py
AntonyYX/Super-Resolution
9a5a55169b08849be39a42f0ee955feb60527fbf
[ "MIT" ]
null
null
null
SR/model/SRCNN.py
AntonyYX/Super-Resolution
9a5a55169b08849be39a42f0ee955feb60527fbf
[ "MIT" ]
null
null
null
SR/model/SRCNN.py
AntonyYX/Super-Resolution
9a5a55169b08849be39a42f0ee955feb60527fbf
[ "MIT" ]
1
2021-10-02T11:03:49.000Z
2021-10-02T11:03:49.000Z
import math from torch import nn import torch from torch.nn.modules.activation import ReLU from torchvision import transforms from PIL import Image class SRCNN(nn.Module): def __init__(self, in_channel: int = 3): super(SRCNN, self).__init__() self.body = nn.Sequential( nn.Conv2d(in_cha...
29.87037
62
0.568506
acff2646f306c65a4e88af7192790ad7d069cbcd
1,456
py
Python
tools/upgrade/commands/tests/fixme_test.py
tahmidbintaslim/pyre-check
59d694f7733d7b160ecaddbe79d5d79cef0e83bc
[ "MIT" ]
null
null
null
tools/upgrade/commands/tests/fixme_test.py
tahmidbintaslim/pyre-check
59d694f7733d7b160ecaddbe79d5d79cef0e83bc
[ "MIT" ]
null
null
null
tools/upgrade/commands/tests/fixme_test.py
tahmidbintaslim/pyre-check
59d694f7733d7b160ecaddbe79d5d79cef0e83bc
[ "MIT" ]
null
null
null
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-unsafe import unittest from unittest.mock import MagicMock, patch from ... import errors from ...repository import Repository from ..comman...
30.978723
65
0.690934
acff268a61a189c8422649b9505d321356dc7c1c
643
py
Python
tests/test_logging.py
OSC-JYU/oscari-ES
e085a87df6cedd3bf6b5faa41b5c73a229329d33
[ "Apache-2.0" ]
null
null
null
tests/test_logging.py
OSC-JYU/oscari-ES
e085a87df6cedd3bf6b5faa41b5c73a229329d33
[ "Apache-2.0" ]
null
null
null
tests/test_logging.py
OSC-JYU/oscari-ES
e085a87df6cedd3bf6b5faa41b5c73a229329d33
[ "Apache-2.0" ]
null
null
null
from .fixtures import elasticsearch import pytest def test_elasticsearch_logs_are_in_docker_logs(elasticsearch): elasticsearch.assert_in_docker_log('o.e.n.Node') # eg. elasticsearch1 | [2017-07-04T00:54:22,604][INFO ][o.e.n.Node ] [docker-test-node-1] initializing ... def test_security_audit_logs_are_in_do...
37.823529
119
0.780715
acff26e4d02536bd4ce1beeca0599fcffbdefff8
800
py
Python
backend/user_profile/tests/test_schema.py
fusion44/btc-graphql
1b9da82df26aa3de8d81253d7fadd425181be6d6
[ "MIT" ]
null
null
null
backend/user_profile/tests/test_schema.py
fusion44/btc-graphql
1b9da82df26aa3de8d81253d7fadd425181be6d6
[ "MIT" ]
null
null
null
backend/user_profile/tests/test_schema.py
fusion44/btc-graphql
1b9da82df26aa3de8d81253d7fadd425181be6d6
[ "MIT" ]
null
null
null
import pytest from mixer.backend.django import mixer from django.contrib.auth.models import AnonymousUser from django.test import RequestFactory from .. import schema # We need to do this so that writing to the DB is possible in our tests. pytestmark = pytest.mark.django_db def test_user_type(): instance = sche...
28.571429
73
0.73125
acff2706150d07319eaa26be017a5ec284e5f3f9
2,434
py
Python
venv/lib/python3.7/site-packages/diffoscope/comparators/gettext.py
crazyzete/AppSecAssignment2
a5520738e6c5924b94f69980eba49a565c2561d7
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/diffoscope/comparators/gettext.py
crazyzete/AppSecAssignment2
a5520738e6c5924b94f69980eba49a565c2561d7
[ "MIT" ]
1
2021-02-08T20:34:54.000Z
2021-02-08T20:34:54.000Z
venv/lib/python3.7/site-packages/diffoscope/comparators/gettext.py
crazyzete/AppSecAssignment2
a5520738e6c5924b94f69980eba49a565c2561d7
[ "MIT" ]
1
2020-11-04T06:48:34.000Z
2020-11-04T06:48:34.000Z
# -*- coding: utf-8 -*- # # diffoscope: in-depth comparison of files, archives, and directories # # Copyright © 2014-2015 Jérémy Bobbio <lunar@debian.org> # # diffoscope is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Fou...
32.453333
77
0.63106
acff288df6eb578589cb685dfabc4e879d6d7998
1,580
py
Python
macs-to-names.py
srobo-legacy/comp-srcomp-kiosk
e084e90dddeeb40a15bf8e350dfc59ff14a161f3
[ "MIT" ]
null
null
null
macs-to-names.py
srobo-legacy/comp-srcomp-kiosk
e084e90dddeeb40a15bf8e350dfc59ff14a161f3
[ "MIT" ]
null
null
null
macs-to-names.py
srobo-legacy/comp-srcomp-kiosk
e084e90dddeeb40a15bf8e350dfc59ff14a161f3
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import os.path FILE_NAME = 'pi_macs' NAME_TEMPLATE = 'pi-{page}-{qual}.srobo' PAGE_TEMPLATE = 'http://%{{hiera(\'compbox_hostname\')}}/{page}.html{query}' CONTENT_TEMPLATE = '''# Student Robotics Pi {ident} --- url: {url} hostname: {name} ''' def tidy(line...
23.939394
76
0.611392
acff29436b5b950387c70eb921a5744334548e34
2,877
py
Python
markups/__init__.py
Hrissimir/pymarkups
4ece8169063f8acfb8557c6a0f4d929af0f434e9
[ "BSD-3-Clause" ]
null
null
null
markups/__init__.py
Hrissimir/pymarkups
4ece8169063f8acfb8557c6a0f4d929af0f434e9
[ "BSD-3-Clause" ]
null
null
null
markups/__init__.py
Hrissimir/pymarkups
4ece8169063f8acfb8557c6a0f4d929af0f434e9
[ "BSD-3-Clause" ]
null
null
null
# This file is part of python-markups module # License: 3-clause BSD, see LICENSE file # Copyright: (C) Dmitry Shachnev, 2012-2021 from typing import List, Optional, Type from markups.abstract import AbstractMarkup from markups.markdown import MarkdownMarkup from markups.restructuredtext import ReStructuredTextMarkup ...
33.453488
75
0.737226
acff29449a254d307f640f5f9cdd130751d76434
3,250
py
Python
baselines/common/mpi_adam_optimizer.py
mateuszkupper/baselines
0afd277690be927c7d02a3efef9793119115eceb
[ "MIT" ]
23
2020-02-25T21:30:59.000Z
2022-03-31T00:09:14.000Z
baselines/common/mpi_adam_optimizer.py
mateuszkupper/baselines
0afd277690be927c7d02a3efef9793119115eceb
[ "MIT" ]
5
2020-08-17T03:26:34.000Z
2022-03-19T11:34:54.000Z
baselines/common/mpi_adam_optimizer.py
mateuszkupper/baselines
0afd277690be927c7d02a3efef9793119115eceb
[ "MIT" ]
5
2020-02-29T21:46:27.000Z
2021-11-03T07:30:16.000Z
import numpy as np import tensorflow as tf from baselines.common import tf_util as U from baselines.common.tests.test_with_mpi import with_mpi try: from mpi4py import MPI except ImportError: MPI = None class MpiAdamOptimizer(tf.train.AdamOptimizer): """Adam optimizer that averages gradients across mpi proc...
41.139241
117
0.669846
acff294bbe7e99ab018025a4fac017c6ebb2999c
173
py
Python
rigid_opt/__init__.py
Algomorph/LevelSetFusion-Python
46625cd185da4413f9afaf201096203ee72d3803
[ "Apache-2.0" ]
8
2019-01-30T19:01:25.000Z
2021-03-05T14:10:51.000Z
rigid_opt/__init__.py
Algomorph/LevelSetFusion-Python
46625cd185da4413f9afaf201096203ee72d3803
[ "Apache-2.0" ]
58
2018-12-19T16:57:38.000Z
2019-06-06T19:52:36.000Z
rigid_opt/__init__.py
Algomorph/LevelSetFusion-Python
46625cd185da4413f9afaf201096203ee72d3803
[ "Apache-2.0" ]
2
2019-03-06T06:30:30.000Z
2019-06-03T11:00:15.000Z
# ================================================================ # Created by Fei Shan on 01/23/19. # # ================================================================
43.25
67
0.138728
acff2a32ca42e6b6a5a2f13d999a68257739cf0c
9,233
py
Python
ls/joyous/tests/test_multiday_recurring_event.py
pure-creative/ls.joyous
f06caef889c1eecf9b784f69d189a206b7f34e14
[ "BSD-3-Clause" ]
72
2018-03-16T16:35:08.000Z
2022-03-23T08:09:33.000Z
ls/joyous/tests/test_multiday_recurring_event.py
pure-creative/ls.joyous
f06caef889c1eecf9b784f69d189a206b7f34e14
[ "BSD-3-Clause" ]
41
2018-03-25T20:36:52.000Z
2022-03-10T08:59:27.000Z
ls/joyous/tests/test_multiday_recurring_event.py
pure-creative/ls.joyous
f06caef889c1eecf9b784f69d189a206b7f34e14
[ "BSD-3-Clause" ]
28
2018-08-13T22:36:09.000Z
2022-03-17T12:24:15.000Z
# ------------------------------------------------------------------------------ # Test Multiday Recurring Event Page # ------------------------------------------------------------------------------ import sys import datetime as dt import pytz import calendar from django.test import TestCase, RequestFactory from django...
47.839378
83
0.514784
acff2cae9c9cbdd6437f6f3506c22bfce1ee5b20
4,631
py
Python
tests/test_oauth2_backends.py
dqfort/django-oauth-toolkit
492a867499b50f348c28db4ef3e429e8f46dc412
[ "BSD-2-Clause-FreeBSD" ]
1,406
2018-04-09T18:46:01.000Z
2022-03-30T00:42:23.000Z
tests/test_oauth2_backends.py
dqfort/django-oauth-toolkit
492a867499b50f348c28db4ef3e429e8f46dc412
[ "BSD-2-Clause-FreeBSD" ]
625
2018-04-08T06:06:29.000Z
2022-03-28T20:48:19.000Z
tests/test_oauth2_backends.py
dqfort/django-oauth-toolkit
492a867499b50f348c28db4ef3e429e8f46dc412
[ "BSD-2-Clause-FreeBSD" ]
378
2018-04-11T20:08:11.000Z
2022-03-30T17:53:21.000Z
import json import pytest from django.test import RequestFactory, TestCase from oauth2_provider.backends import get_oauthlib_core from oauth2_provider.models import redirect_to_uri_allowed from oauth2_provider.oauth2_backends import JSONOAuthLibCore, OAuthLibCore try: from unittest import mock except ImportErro...
34.559701
107
0.664435
acff2d289bb483ed2d9715731f7aba93f0882d3a
6,151
py
Python
build/lib/PCV/imagesearch/imagesearch.py
Mastersam07/computer_vision_pcv
742c839156946335adc0fbf7868decced47a567e
[ "BSD-2-Clause" ]
1
2019-03-07T14:33:36.000Z
2019-03-07T14:33:36.000Z
pcv/imagesearch/imagesearch.py
Mastersam07/computer_vision_pcv
742c839156946335adc0fbf7868decced47a567e
[ "BSD-2-Clause" ]
null
null
null
pcv/imagesearch/imagesearch.py
Mastersam07/computer_vision_pcv
742c839156946335adc0fbf7868decced47a567e
[ "BSD-2-Clause" ]
null
null
null
from numpy import * import pickle from sqlite3 import dbapi2 as sqlite class Indexer(object): def __init__(self,db,voc): """ Initialize with the name of the database and a vocabulary object. """ self.con = sqlite.connect(db) self.voc = voc def __del_...
32.544974
135
0.577142
acff2d2bf397078e6ab597118cfe588cf3d4e011
206
py
Python
cv/urls.py
ezraermy/mkcv
a75ec4144b313d1f92795da582d988634cd4ac7c
[ "MIT" ]
null
null
null
cv/urls.py
ezraermy/mkcv
a75ec4144b313d1f92795da582d988634cd4ac7c
[ "MIT" ]
null
null
null
cv/urls.py
ezraermy/mkcv
a75ec4144b313d1f92795da582d988634cd4ac7c
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path("", views.home, name='home'), path('apply/', views.apply, name='apply'), path('success/', views.success, name='success'), ]
25.75
52
0.645631
acff2e5b2e0d321bda319b42652899fea5278878
9,366
py
Python
test/command_line/test_search_beam_position.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
2
2021-03-17T11:25:46.000Z
2021-11-18T04:20:54.000Z
test/command_line/test_search_beam_position.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
null
null
null
test/command_line/test_search_beam_position.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
null
null
null
import glob import os import pytest import scitbx from cctbx import uctbx from dxtbx.model import ExperimentList from dxtbx.serialize import load from dials.algorithms.indexing.test_index import run_indexing from dials.command_line import search_beam_position def test_search_i04_weak_data_image_range(mocker, run_i...
40.37069
90
0.710869
acff2faf63276973cc7afedea0750e7f2d760900
183
py
Python
q3/q3/config.py
virtimus/makaronLab
10b9be7d7d65d3da6219f929ea7070dd5fed3a81
[ "0BSD" ]
2
2021-03-16T05:48:36.000Z
2021-10-11T01:55:48.000Z
q3/q3/config.py
virtimus/makaronLab
10b9be7d7d65d3da6219f929ea7070dd5fed3a81
[ "0BSD" ]
null
null
null
q3/q3/config.py
virtimus/makaronLab
10b9be7d7d65d3da6219f929ea7070dd5fed3a81
[ "0BSD" ]
1
2021-03-16T05:48:39.000Z
2021-03-16T05:48:39.000Z
# api/script console instance handle, initialised from boot.py on app startup/editorFrame init consoleInstance = None #same for console widget instance consoleWidgetInstance = None
26.142857
94
0.819672
acff2fff1672cf13d1607521643d880fffb5bb51
438
py
Python
src/sofastorage/key.py
SlumberDemon/SofaStorage
6de843688d70cb6ed39fb83cc42017572445bb30
[ "MIT" ]
null
null
null
src/sofastorage/key.py
SlumberDemon/SofaStorage
6de843688d70cb6ed39fb83cc42017572445bb30
[ "MIT" ]
null
null
null
src/sofastorage/key.py
SlumberDemon/SofaStorage
6de843688d70cb6ed39fb83cc42017572445bb30
[ "MIT" ]
null
null
null
""" [!] DISCLAIMER: This is the public key to identify the root database. Do not change this key unless you have a private key. To get your own key please head to the following link: https://deta.sh & create a new project then use that key. Note: However no one will be able to get data only with this key. They have to ...
33.692308
74
0.760274
acff301a567a1f8a2b43c249c66538ad3cee7691
4,859
py
Python
Training_Data/randomness_test.py
rainonej/rock_paper_scissors
2904b3b506cd0a33fff6ba128859b2e762c83370
[ "MIT" ]
null
null
null
Training_Data/randomness_test.py
rainonej/rock_paper_scissors
2904b3b506cd0a33fff6ba128859b2e762c83370
[ "MIT" ]
null
null
null
Training_Data/randomness_test.py
rainonej/rock_paper_scissors
2904b3b506cd0a33fff6ba128859b2e762c83370
[ "MIT" ]
null
null
null
import numpy as np #import pickle #A = np.loadtxt("Rock_Paper_Scissors_Raw.txt", dtype = list, comments = '#', delimiter = ',', usecols = (0,1,2,3)) #A = np.loadtxt("Rock_Paper_Scissors_Raw.txt", dtype = int, comments = '#', delimiter = ',', usecols = (2), ndmin = 1) #B = np.loadtxt("Rock_Paper_Scissors_Raw.txt", dtyp...
29.993827
129
0.663305
acff3187483d88de45c658726bd27c3fb4b15a5a
1,008
py
Python
py/interview/PopOfStack.py
shhuan/algorithms
2830c7e2ada8dfd3dcdda7c06846116d4f944a27
[ "MIT" ]
null
null
null
py/interview/PopOfStack.py
shhuan/algorithms
2830c7e2ada8dfd3dcdda7c06846116d4f944a27
[ "MIT" ]
null
null
null
py/interview/PopOfStack.py
shhuan/algorithms
2830c7e2ada8dfd3dcdda7c06846116d4f944a27
[ "MIT" ]
1
2022-03-09T04:52:55.000Z
2022-03-09T04:52:55.000Z
# -*- coding: utf-8 -*- """ Microsoft 给一个栈的入栈序列,判断另外一个序列是否是它的出栈序列 Sample Input 1 2 3; 2 1 3 Sample Output True 分析: 直接模拟 """ __author__ = 'huangshuangquan' def isPopSeq(pushArray, popArray): if not pushArray or not popArray: return False # 注意这个判断条件不要写掉 if len(pushArray) != len(popArray): ...
18.327273
56
0.608135
acff329020d914c8b361bd9504b1d6120d79fabb
11,833
py
Python
modules/s3/s3summary.py
waidyanatha/deprecated.sambro-eden
62e180703a2f16d5f8fcd532335d8287b76a8175
[ "MIT" ]
1
2016-12-22T09:31:22.000Z
2016-12-22T09:31:22.000Z
modules/s3/s3summary.py
gurlinthewurld/eden
726aea55c95ee33f48dace63f76496e22e529157
[ "MIT" ]
null
null
null
modules/s3/s3summary.py
gurlinthewurld/eden
726aea55c95ee33f48dace63f76496e22e529157
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Resource Summary Pages @copyright: 2013 (c) Sahana Software Foundation @license: MIT @requires: U{B{I{gluon}} <http://web2py.com>} Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the...
36.297546
86
0.470971
acff3375f07451b8c4ec82e5b94807cfd9638031
263
py
Python
toontown/uberdog/DistributedPartyManagerUD.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
99
2019-11-02T22:25:00.000Z
2022-02-03T03:48:00.000Z
toontown/uberdog/DistributedPartyManagerUD.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
42
2019-11-03T05:31:08.000Z
2022-03-16T22:50:32.000Z
toontown/uberdog/DistributedPartyManagerUD.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
57
2019-11-03T07:47:37.000Z
2022-03-22T00:41:49.000Z
from direct.directnotify import DirectNotifyGlobal from direct.distributed.DistributedObjectUD import DistributedObjectUD class DistributedPartyManagerUD(DistributedObjectUD): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedPartyManagerUD')
43.833333
85
0.882129
acff34c9973ef3f850f3d795d0395948780e83c5
4,534
py
Python
handlers/main.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
null
null
null
handlers/main.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
null
null
null
handlers/main.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
null
null
null
import os import os.path import wsgiref.handlers from google.appengine.ext import webapp from google.appengine.ext.webapp import template from google.appengine.ext.db import djangoforms from models import Listing from google.appengine.ext import db import logging from urllib import quote from google.appengine.api impor...
32.618705
225
0.650199
acff378409fcceab102494d9abc7bef394db5eab
2,301
py
Python
openstack/network/v2/metering_label.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
43
2018-12-19T08:39:15.000Z
2021-07-21T02:45:43.000Z
openstack/network/v2/metering_label.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
11
2019-03-17T13:28:56.000Z
2020-09-23T23:57:50.000Z
openstack/network/v2/metering_label.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
47
2018-12-19T05:14:25.000Z
2022-03-19T15:28:30.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 # distributed under t...
37.112903
87
0.692742
acff383471e40ccb2d9232aa408cb89cb4f06d22
4,399
py
Python
jina/executors/indexers/vector/faiss.py
rohan1chaudhari/jina
5ef04a4c982f0aa967bfc10b443c3f397c5e790f
[ "Apache-2.0" ]
null
null
null
jina/executors/indexers/vector/faiss.py
rohan1chaudhari/jina
5ef04a4c982f0aa967bfc10b443c3f397c5e790f
[ "Apache-2.0" ]
null
null
null
jina/executors/indexers/vector/faiss.py
rohan1chaudhari/jina
5ef04a4c982f0aa967bfc10b443c3f397c5e790f
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" from typing import Tuple import numpy as np from . import BaseNumpyIndexer from ...devices import FaissDevice class FaissIndexer(FaissDevice, BaseNumpyIndexer): """Faiss powered vector indexer For more in...
40.731481
119
0.627415
acff38ce204373a0dc4c67bb2da5f9e606834dc7
1,218
py
Python
nadine/management/commands/checkin_anniversary.py
czue/nadine
61fbfcac4d0c3159aa73500e47f4fa23c0aa9ef0
[ "Apache-2.0" ]
1
2019-08-15T00:10:38.000Z
2019-08-15T00:10:38.000Z
nadine/management/commands/checkin_anniversary.py
czue/nadine
61fbfcac4d0c3159aa73500e47f4fa23c0aa9ef0
[ "Apache-2.0" ]
null
null
null
nadine/management/commands/checkin_anniversary.py
czue/nadine
61fbfcac4d0c3159aa73500e47f4fa23c0aa9ef0
[ "Apache-2.0" ]
null
null
null
from datetime import date, datetime, timedelta from dateutil.relativedelta import relativedelta from django.utils.timezone import localtime, now from django.core.management.base import BaseCommand, CommandError from django.contrib.auth.models import User from nadine import email class Command(BaseCommand): help...
52.956522
579
0.751232
acff3a4664c55df057248f0f980c054886cf377c
157
py
Python
tcod2/exceptions.py
Javascript-void0/Pygame
96b4cc9b414a40e684a833306dcf5d191a4f4aa5
[ "MIT" ]
1
2021-04-09T01:36:32.000Z
2021-04-09T01:36:32.000Z
tcod2/exceptions.py
Javascript-void0/Pygame
96b4cc9b414a40e684a833306dcf5d191a4f4aa5
[ "MIT" ]
null
null
null
tcod2/exceptions.py
Javascript-void0/Pygame
96b4cc9b414a40e684a833306dcf5d191a4f4aa5
[ "MIT" ]
null
null
null
class Impossible(Exception): """Exception raised when an action is impossible to be performed. The reason is given as the exception message. """
31.4
69
0.719745
acff3aa84728f708d10004b4d1405a14fe1dea3c
2,309
py
Python
legacy/miscellaneous/tdf.py
solar464/TDF_deterministic_encryption
ff9dceacb37ce7727a8205cc72a4d928d37cce6f
[ "MIT" ]
null
null
null
legacy/miscellaneous/tdf.py
solar464/TDF_deterministic_encryption
ff9dceacb37ce7727a8205cc72a4d928d37cce6f
[ "MIT" ]
null
null
null
legacy/miscellaneous/tdf.py
solar464/TDF_deterministic_encryption
ff9dceacb37ce7727a8205cc72a4d928d37cce6f
[ "MIT" ]
null
null
null
import owfe from floodberry.floodberry_ed25519 import GE25519 as GE from random import randint """ Incomplete implementation of Strong TDF (from smooth recyclable OWFE) Section 4 of https://eprint.iacr.org/2018/872.pdf """ class IndexKey: def __init__(self, pp, a, CT): assert len(pp) == len(CT) and len(pp)...
23.323232
80
0.525769
acff3aef5cc358ba6d33f974db3791a48006f350
3,810
py
Python
WoBert/data_helper_tnews.py
shawroad/Text-Classification-Pytorch
831560be9c4d45660dec85338a8e6e0a936c86ac
[ "Apache-2.0" ]
4
2022-03-08T07:41:57.000Z
2022-03-20T11:41:16.000Z
WoBert/data_helper_tnews.py
shawroad/Text-Classification-Pytorch
831560be9c4d45660dec85338a8e6e0a936c86ac
[ "Apache-2.0" ]
null
null
null
WoBert/data_helper_tnews.py
shawroad/Text-Classification-Pytorch
831560be9c4d45660dec85338a8e6e0a936c86ac
[ "Apache-2.0" ]
1
2022-03-09T08:05:15.000Z
2022-03-09T08:05:15.000Z
""" @file : data_helper_tnews.py @author : xiaolu @email : luxiaonlp@163.com @time : 2022-02-28 """ import re import torch import json import pandas as pd from torch.utils.data import Dataset def clean_text(text): rule_url = re.compile( '(https?://)?(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9(...
32.016807
112
0.627297
acff3b44d7a56fd4b82c8a75f1d512ed83742fd6
1,200
py
Python
google/ads/googleads/v5/enums/types/price_extension_price_qualifier.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v5/enums/types/price_extension_price_qualifier.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v5/enums/types/price_extension_price_qualifier.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
27.906977
74
0.709167
acff3c4b5a094cb75a6fbdd89f0b864357b545e4
599
py
Python
Leetcode/478. Generate Random Point in a Circle/solution2.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/478. Generate Random Point in a Circle/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/478. Generate Random Point in a Circle/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
from random import random class Solution: def __init__(self, radius: float, x_center: float, y_center: float): self.radius = radius self.xc = x_center self.yc = y_center def randPoint(self) -> List[float]: while True: rx = (random() - 0.5) * 2 ry = (ra...
28.52381
72
0.577629
acff3ca34b769c52c476c70daba4ca23e6b8f06e
681
py
Python
python/dgllife/model/model_zoo/__init__.py
Erfaan-Rostami/dgl-lifesci
08fc317f634fbaee4a8d074c332e871357845e4f
[ "Apache-2.0" ]
1
2020-06-22T19:19:24.000Z
2020-06-22T19:19:24.000Z
python/dgllife/model/model_zoo/__init__.py
chaoyue729/dgl-lifesci
b7be8c865b8eaf5e1cac29a3b4dddbf4500bab16
[ "Apache-2.0" ]
null
null
null
python/dgllife/model/model_zoo/__init__.py
chaoyue729/dgl-lifesci
b7be8c865b8eaf5e1cac29a3b4dddbf4500bab16
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # # Collection of model architectures # Molecular property prediction from .attentivefp_predictor import * from .gat_predictor import * from .gcn_predictor import * from .gin_predictor i...
23.482759
68
0.772394
acff3d28b2ee7d542dbd6f02d823425d11c32c9e
20,363
py
Python
tower_cli/cli/transfer/common.py
kedark3/tower-cli
487a1b9a8e96509798fee108e4f7d2c187177771
[ "Apache-2.0" ]
363
2015-01-14T17:48:34.000Z
2022-01-29T06:37:04.000Z
tower_cli/cli/transfer/common.py
kedark3/tower-cli
487a1b9a8e96509798fee108e4f7d2c187177771
[ "Apache-2.0" ]
703
2015-01-06T17:17:20.000Z
2020-09-16T15:54:17.000Z
tower_cli/cli/transfer/common.py
kedark3/tower-cli
487a1b9a8e96509798fee108e4f7d2c187177771
[ "Apache-2.0" ]
203
2015-01-18T22:38:23.000Z
2022-01-28T19:19:05.000Z
import copy import tower_cli from tower_cli.api import client from tower_cli.utils import debug from tower_cli.exceptions import TowerCLIError from tower_cli.resources.role import ACTOR_FIELDS ASSET_TYPE_KEY = "asset_type" ASSET_RELATION_KEY = "asset_relation" SEND_ORDER = [ 'user', 'organization', 'team'...
39.235067
118
0.640426
acff3e0ec477a412c078e51315bc3d11f65553d0
86,750
py
Python
lib/faker/providers/person/en/__init__.py
duyetdev/api.duyetdev.com
4c33cc2cfb43ad6c4089873230e7b657659bff15
[ "MIT" ]
2
2017-06-12T11:08:01.000Z
2017-06-13T00:50:16.000Z
lib/faker/providers/person/en/__init__.py
duyetdev/api.duyetdev.com
4c33cc2cfb43ad6c4089873230e7b657659bff15
[ "MIT" ]
12
2020-07-11T01:42:51.000Z
2020-08-12T17:17:35.000Z
lib/faker/providers/person/en/__init__.py
duyetdev/api.duyetdev.com
4c33cc2cfb43ad6c4089873230e7b657659bff15
[ "MIT" ]
1
2019-11-23T08:32:07.000Z
2019-11-23T08:32:07.000Z
from __future__ import unicode_literals from .. import Provider as PersonProvider class Provider(PersonProvider): formats_female = ( '{{first_name_female}} {{last_name}}', '{{first_name_female}} {{last_name}}', '{{first_name_female}} {{last_name}}', '{{first_name_female}} {{last_na...
74.399657
120
0.535758
acff3f779ac02e7170d48022034319cb621f4f76
3,003
py
Python
wpdhack/_nbdev.py
AyrtonB/WPD-Hackathon
3027570ecd5a7b0866fe3d72e5d74facdf4e8efe
[ "MIT" ]
1
2021-12-27T00:46:54.000Z
2021-12-27T00:46:54.000Z
wpdhack/_nbdev.py
AyrtonB/WPD-Hackathon
3027570ecd5a7b0866fe3d72e5d74facdf4e8efe
[ "MIT" ]
null
null
null
wpdhack/_nbdev.py
AyrtonB/WPD-Hackathon
3027570ecd5a7b0866fe3d72e5d74facdf4e8efe
[ "MIT" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"clean_real_power_df": "01-data-processing.ipynb", "load_real_power_dataset": "01-data-processing.ipynb", "load_datetime_df": "01-data-processing.ipynb", "load_weather_df": "01-data...
50.05
84
0.667999
acff40521f09b4784b6f9b1fdf537512f61f8366
4,104
py
Python
tests/mock_tests.py
pullyl/gspread
4d8a1fd2125af33120b4ff1f6d67453348ed4d9e
[ "MIT" ]
3
2017-09-21T10:54:58.000Z
2019-05-01T00:25:14.000Z
tests/mock_tests.py
pullyl/gspread
4d8a1fd2125af33120b4ff1f6d67453348ed4d9e
[ "MIT" ]
null
null
null
tests/mock_tests.py
pullyl/gspread
4d8a1fd2125af33120b4ff1f6d67453348ed4d9e
[ "MIT" ]
1
2021-01-07T09:25:49.000Z
2021-01-07T09:25:49.000Z
"""A test suite that doesn't query the Google API. Avoiding direct network access is benefitial in that it markedly speeds up testing, avoids error-prone credential setup, and enables validation even if internet access is unavailable. """ from datetime import datetime import unittest try: import ConfigParser exc...
32.314961
79
0.669834
acff41e54930eaaad1c9ec0054d16bf67a8ec242
11,654
py
Python
manim/utils/rate_functions.py
PhotonSpheres/manim
7399c24b33095e29633fd75460d13eae5703cba9
[ "MIT" ]
9,497
2020-05-19T04:05:51.000Z
2022-03-31T19:00:02.000Z
manim/utils/rate_functions.py
PhotonSpheres/manim
7399c24b33095e29633fd75460d13eae5703cba9
[ "MIT" ]
2,052
2020-05-19T03:35:26.000Z
2022-03-31T16:18:06.000Z
manim/utils/rate_functions.py
PhotonSpheres/manim
7399c24b33095e29633fd75460d13eae5703cba9
[ "MIT" ]
1,016
2020-05-20T01:16:11.000Z
2022-03-30T16:47:14.000Z
"""A selection of rate functions, i.e., *speed curves* for animations. Please find a standard list at https://easings.net/. Here is a picture for the non-standard ones .. manim:: RateFuncExample :save_last_frame: class RateFuncExample(Scene): def construct(self): x = VGroup() f...
25.445415
119
0.548824
acff41f707d81dad5455402dea3d3e1742dde386
2,699
py
Python
data_anonym_methods/k_anonymity.py
GeorgeManakanatas/PPDM
9e6af80681db497447197cac14b26b99e588f231
[ "MIT", "Unlicense" ]
3
2016-11-18T07:24:39.000Z
2019-07-06T07:45:15.000Z
data_anonym_methods/k_anonymity.py
GeorgeManakanatas/PPDM
9e6af80681db497447197cac14b26b99e588f231
[ "MIT", "Unlicense" ]
2
2017-02-14T15:24:34.000Z
2019-11-25T19:18:05.000Z
data_anonym_methods/k_anonymity.py
GeorgeManakanatas/PPDM
9e6af80681db497447197cac14b26b99e588f231
[ "MIT", "Unlicense" ]
3
2017-12-19T07:04:24.000Z
2021-08-20T15:42:13.000Z
''' k anonymity module functions: master: performs selection of the anonymisation methods simple_kanonymity: performs simplistic anonymisation ''' def master(start_dataframe, nums, kmin, logger): ''' implements k Anonymity Parameters: argument1 (dataframe): the data that we want to anonymis...
35.986667
103
0.722119
acff44bdf32f665eb0b8695b5f5df971f3203ee2
1,002
py
Python
mysite/mysite/urls.py
ifackerx/KMITL-Market
9790e7039c46bb4df030059bf67504258c9906b7
[ "MIT" ]
1
2019-04-28T15:55:58.000Z
2019-04-28T15:55:58.000Z
mysite/mysite/urls.py
ifackerx/KMITL-Market
9790e7039c46bb4df030059bf67504258c9906b7
[ "MIT" ]
4
2020-04-30T02:49:55.000Z
2022-02-12T09:07:19.000Z
mysite/mysite/urls.py
ifackerx/KMITL-Market
9790e7039c46bb4df030059bf67504258c9906b7
[ "MIT" ]
null
null
null
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
32.322581
77
0.694611
acff4555853ca27e1a7af609ae1dea0121b63777
3,314
py
Python
src/scripts/model_transformation/treelite_compile/compile_treelite.py
microsoft/lightgbm-benchmark
286668d698d9d166857f924ecb775d5de224d489
[ "MIT" ]
13
2021-08-20T01:03:51.000Z
2022-02-12T05:34:46.000Z
src/scripts/model_transformation/treelite_compile/compile_treelite.py
microsoft/lightgbm-benchmark
286668d698d9d166857f924ecb775d5de224d489
[ "MIT" ]
199
2021-08-21T21:18:53.000Z
2022-03-27T23:08:44.000Z
src/scripts/model_transformation/treelite_compile/compile_treelite.py
microsoft/lightgbm-benchmark
286668d698d9d166857f924ecb775d5de224d489
[ "MIT" ]
4
2021-08-20T06:53:26.000Z
2022-01-24T22:22:39.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """ TreeLite/Python inferencing script """ import os import sys import argparse import logging import numpy from distutils.util import strtobool import pandas as pd import treelite, treelite_runtime # Add the right path to PYTHONPATH # so that y...
32.811881
98
0.658117
acff45fad21f2621a631d3ec5d9fdbfc9b6a3a8b
1,996
py
Python
modin/pandas/iterator.py
ienkovich/modin
b7e1188f7ba01e3a313996e092a65b63f6b76fa0
[ "ECL-2.0", "Apache-2.0" ]
1
2021-05-19T04:01:17.000Z
2021-05-19T04:01:17.000Z
modin/pandas/iterator.py
ienkovich/modin
b7e1188f7ba01e3a313996e092a65b63f6b76fa0
[ "ECL-2.0", "Apache-2.0" ]
57
2021-01-22T15:52:03.000Z
2021-06-12T18:22:04.000Z
modin/pandas/iterator.py
ienkovich/modin
b7e1188f7ba01e3a313996e092a65b63f6b76fa0
[ "ECL-2.0", "Apache-2.0" ]
1
2022-01-29T12:12:42.000Z
2022-01-29T12:12:42.000Z
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
32.721311
87
0.623246
acff46a3d202b3a0a7a1677c6ee4943395687de0
57
py
Python
src/Calculator/Division.py
aravetirahul/Statistical-Calculator--master
1d36da730cd00677e4d5d794f110f7dd7bf0e783
[ "MIT" ]
null
null
null
src/Calculator/Division.py
aravetirahul/Statistical-Calculator--master
1d36da730cd00677e4d5d794f110f7dd7bf0e783
[ "MIT" ]
null
null
null
src/Calculator/Division.py
aravetirahul/Statistical-Calculator--master
1d36da730cd00677e4d5d794f110f7dd7bf0e783
[ "MIT" ]
3
2020-03-22T01:56:45.000Z
2020-03-22T20:20:48.000Z
def div(a, b): return round((float(a) / float(b)), 2)
28.5
42
0.561404
acff46b6721d24ffb23b79eeb11d631d2357ee1b
1,808
py
Python
chrome/test/functional/test_pyauto.py
Crystalnix/BitPop
1fae4ecfb965e163f6ce154b3988b3181678742a
[ "BSD-3-Clause" ]
7
2015-05-20T22:41:35.000Z
2021-11-18T19:07:59.000Z
chrome/test/functional/test_pyauto.py
Crystalnix/BitPop
1fae4ecfb965e163f6ce154b3988b3181678742a
[ "BSD-3-Clause" ]
1
2015-02-02T06:55:08.000Z
2016-01-20T06:11:59.000Z
chrome/test/functional/test_pyauto.py
Crystalnix/BitPop
1fae4ecfb965e163f6ce154b3988b3181678742a
[ "BSD-3-Clause" ]
2
2015-12-08T00:37:41.000Z
2017-04-06T05:34:05.000Z
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest import pyauto_functional # Must be imported before pyauto import pyauto import pyauto_errors class PyAutoTest(p...
31.719298
79
0.709624
acff476d0f8cd29981ddda471d73611e1f7f3d15
784
py
Python
demo/constant.py
Lm0079/SpeciesClassification
0487af0e59f2c9d759711a5b5bf7e9f3167ef968
[ "MIT" ]
null
null
null
demo/constant.py
Lm0079/SpeciesClassification
0487af0e59f2c9d759711a5b5bf7e9f3167ef968
[ "MIT" ]
null
null
null
demo/constant.py
Lm0079/SpeciesClassification
0487af0e59f2c9d759711a5b5bf7e9f3167ef968
[ "MIT" ]
1
2020-07-30T12:58:18.000Z
2020-07-30T12:58:18.000Z
COMMON = 'COMMON' SEARCH = 'SEARCH' SEARCH_INDEX_PATH = "search_index_path" ROOT_PATH = 'root_path' SAMPLE_PATH = 'sample_path' SAMPLE_URL = 'sample_url' SEARCH_IMAGE_PATH = 'search_image_path' TAXA_FILE_PATH = 'taxa_file_path' SEARCH_IMG_REL_URL = 'search_img_rel_url' SPECIES_COMMON_NAME = 'species_common_name' SPECI...
28
51
0.8125
acff49128bc31821bf625cedfa4666fcd7eedfe1
3,530
py
Python
observatorio/settings.py
bispojr/observatorio-ufj-covid19
8667fae1367b95a7dfa8558fbac3b1b0b708af8d
[ "MIT" ]
3
2020-04-02T21:59:19.000Z
2020-12-03T12:37:26.000Z
observatorio/settings.py
bispojr/observatorio-ufj-covid19
8667fae1367b95a7dfa8558fbac3b1b0b708af8d
[ "MIT" ]
68
2020-03-28T22:40:08.000Z
2020-07-08T18:04:07.000Z
observatorio/settings.py
bispojr/observatorio-ufj-covid19
8667fae1367b95a7dfa8558fbac3b1b0b708af8d
[ "MIT" ]
5
2020-03-28T21:35:30.000Z
2020-06-10T01:28:14.000Z
import os from decouple import config from dj_database_url import parse as dburl # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproje...
27.578125
109
0.7
acff497489642ab07727f0c0f5b8b19d816d4b46
208,087
py
Python
catimages.py
Botomatik/JackBot
58651d8b5a5bcead2a2eb79849019cb4f972b7cd
[ "MIT" ]
null
null
null
catimages.py
Botomatik/JackBot
58651d8b5a5bcead2a2eb79849019cb4f972b7cd
[ "MIT" ]
null
null
null
catimages.py
Botomatik/JackBot
58651d8b5a5bcead2a2eb79849019cb4f972b7cd
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Image by content categorization derived from 'checkimages.py'. Script to check uncategorized files. This script checks if a file has some content that allows to assign it to a category. This script runs on commons only. It needs also external libraries (see imports and co...
46.656278
273
0.551812
acff4caedc607a1fbe01b2bb3083d0046818e2a5
673
py
Python
multilineage_organoid/consts.py
david-a-joy/multilineage-organoid
9b9848cfa5ee0d051b2a9645f9ffd8b9423beec8
[ "BSD-3-Clause" ]
2
2020-08-13T18:09:53.000Z
2021-12-31T22:36:07.000Z
multilineage_organoid/consts.py
david-a-joy/multilineage-organoid
9b9848cfa5ee0d051b2a9645f9ffd8b9423beec8
[ "BSD-3-Clause" ]
null
null
null
multilineage_organoid/consts.py
david-a-joy/multilineage-organoid
9b9848cfa5ee0d051b2a9645f9ffd8b9423beec8
[ "BSD-3-Clause" ]
null
null
null
""" Shared default parameters across the modules """ SIGNAL_TYPE = 'F/F0' # F-F0, F/F0, F-F0/F0 LINEAR_MODEL = 'ransac' # 'least_squares' or 'ransac' or 'exp_ransac' DATA_TYPE = 'ca' # one of 'ca', 'ephys' FILTER_ORDER = 1 # Order of the butterworth filter FILTER_CUTOFF = 4 # Hz cutoff for the filter MIN_STATS...
30.590909
98
0.717682
acff4d349e688667b0ea494459dda99a9eb3a688
1,127
py
Python
setup.py
ZhaoNeil/prometheus-grafana-deploy
c8ec609970d64f8d4104d8810dc301aff3df9232
[ "MIT" ]
null
null
null
setup.py
ZhaoNeil/prometheus-grafana-deploy
c8ec609970d64f8d4104d8810dc301aff3df9232
[ "MIT" ]
null
null
null
setup.py
ZhaoNeil/prometheus-grafana-deploy
c8ec609970d64f8d4104d8810dc301aff3df9232
[ "MIT" ]
1
2022-01-10T14:51:10.000Z
2022-01-10T14:51:10.000Z
import setuptools import os def read(fname): path = os.path.join(os.path.dirname(__file__), fname) f = open(path) return f.read() install_requires = [x for x in read('requirements.txt').strip().split('\n') if x] setuptools.setup( name='prometheus_grafana_deploy', version='0.1.1', author='Seb...
32.2
117
0.669033
acff4d35134a2b25dc213926a13cc5318682e00a
12,480
py
Python
faker/providers/address/ne_NP/__init__.py
StabbarN/faker
57882ff73255cb248d8f995b2abfce5cfee45ab3
[ "MIT" ]
4
2020-09-23T15:48:00.000Z
2021-02-25T07:55:23.000Z
faker/providers/address/ne_NP/__init__.py
StabbarN/faker
57882ff73255cb248d8f995b2abfce5cfee45ab3
[ "MIT" ]
10
2020-03-24T10:47:53.000Z
2021-04-08T19:51:44.000Z
faker/providers/address/ne_NP/__init__.py
StabbarN/faker
57882ff73255cb248d8f995b2abfce5cfee45ab3
[ "MIT" ]
1
2020-10-26T11:00:22.000Z
2020-10-26T11:00:22.000Z
from .. import Provider as AddressProvider class Provider(AddressProvider): building_number_formats = ('#', '##', '###') street_name_formats = ('{{last_name}} {{street_suffix}}',) street_address_formats = ('{{street_name}}',) city_formats = ('{{city}}',) # http://www.nepalpost.gov.np/index.php/pos...
20.8
104
0.274119
acff4d3624a496fade2d0642041eb9e3d25e0ae0
10,542
py
Python
docs/conf.py
amd-yan/simple-salesforce
4284a84ea01549ab099dbd200076f2c4d97b8023
[ "Apache-2.0" ]
1,109
2016-06-04T21:03:47.000Z
2022-03-29T03:48:46.000Z
docs/conf.py
amd-yan/simple-salesforce
4284a84ea01549ab099dbd200076f2c4d97b8023
[ "Apache-2.0" ]
385
2016-05-31T05:51:02.000Z
2022-03-24T21:41:38.000Z
docs/conf.py
amd-yan/simple-salesforce
4284a84ea01549ab099dbd200076f2c4d97b8023
[ "Apache-2.0" ]
531
2016-06-03T16:54:57.000Z
2022-03-23T11:07:57.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # simple-salesforce documentation build configuration file, created by # sphinx-quickstart on Tue Nov 22 19:18:40 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in...
29.283333
94
0.696927
acff4dadaea8d54e63b91d552c6e37556e42071a
3,707
py
Python
contrib/macdeploy/custom_dsstore.py
Suryanto28/Wallet
52bf852fce2ef470b10ebe36c5f920faf277b1d4
[ "MIT" ]
8
2019-06-07T22:21:15.000Z
2020-12-16T16:02:44.000Z
contrib/macdeploy/custom_dsstore.py
Suryanto28/Wallet
52bf852fce2ef470b10ebe36c5f920faf277b1d4
[ "MIT" ]
2
2020-06-23T07:13:33.000Z
2020-09-13T10:33:29.000Z
contrib/macdeploy/custom_dsstore.py
Suryanto28/Wallet
52bf852fce2ef470b10ebe36c5f920faf277b1d4
[ "MIT" ]
5
2019-09-28T19:26:18.000Z
2021-06-19T09:44:02.000Z
#!/usr/bin/env python3 # Copyright (c) 2013-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import biplist from ds_store import DSStore from mac_alias import Alias import sys output_file = sys.argv...
61.783333
1,817
0.724036
acff4ea473d1c7e88ce403c7fccf71fc88cad0ce
2,157
py
Python
main/schema/section_analysis.py
kristianmk/tator
0eb75ee9333316b06f773de2b75e8e797a98ffdb
[ "MIT" ]
50
2019-09-18T14:32:18.000Z
2022-03-31T16:26:07.000Z
main/schema/section_analysis.py
kristianmk/tator
0eb75ee9333316b06f773de2b75e8e797a98ffdb
[ "MIT" ]
566
2019-09-18T16:33:40.000Z
2022-03-31T20:01:38.000Z
main/schema/section_analysis.py
kristianmk/tator
0eb75ee9333316b06f773de2b75e8e797a98ffdb
[ "MIT" ]
19
2019-09-21T20:08:12.000Z
2022-03-17T14:53:11.000Z
from textwrap import dedent from rest_framework.schemas.openapi import AutoSchema from ._errors import error_responses from ._attributes import attribute_filter_parameter_schema class SectionAnalysisSchema(AutoSchema): def get_operation(self, path, method): operation = super().get_operation(path, method)...
32.681818
92
0.528048
acff4ed95778d5cda3a352da552d4d34456b22ba
13,838
py
Python
code/python/ETFProfileandPrices/v2/fds/sdk/ETFProfileandPrices/model/inline_response20024_data.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/ETFProfileandPrices/v2/fds/sdk/ETFProfileandPrices/model/inline_response20024_data.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/ETFProfileandPrices/v2/fds/sdk/ETFProfileandPrices/model/inline_response20024_data.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Prime Developer Trial No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.E...
47.068027
133
0.58231
acff4f4b1ae957a7c61b0813ffb741de7769e6cb
954
py
Python
source/load_device.py
novelview9/alfred-workflow-toggle-airpods
b871dc6005a020a82b62291c55127822365db464
[ "MIT" ]
50
2018-02-11T15:00:43.000Z
2021-12-14T21:23:58.000Z
source/load_device.py
novelview9/alfred-workflow-toggle-airpods
b871dc6005a020a82b62291c55127822365db464
[ "MIT" ]
8
2018-10-19T22:15:32.000Z
2020-12-10T00:02:40.000Z
source/load_device.py
jasonshanks/alfred-workflow-toggle-airpods
8970b6ef18e6cc77bcae5c6d1a6fddb65e85cda9
[ "MIT" ]
4
2018-06-07T11:00:28.000Z
2019-07-24T04:12:56.000Z
# encoding: utf-8 import sys from workflow import Workflow, ICON_WEB, web import subprocess import argparse def main(wf): parser = argparse.ArgumentParser() parser.add_argument('query', nargs='*', default=None) args = parser.parse_args(wf.args) if args.query: query = args.query inpu...
23.85
103
0.578616
acff4f843b132d8509947f3747db1374ed2f70a0
5,602
py
Python
Python_OCR_JE/venv/Lib/site-packages/numpy/random/tests/test_regression.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_OCR_JE/venv/Lib/site-packages/numpy/random/tests/test_regression.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_OCR_JE/venv/Lib/site-packages/numpy/random/tests/test_regression.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
1
2021-04-26T22:41:56.000Z
2021-04-26T22:41:56.000Z
import sys from numpy.testing import ( assert_, assert_array_equal, assert_raises, ) from numpy import random import numpy as np class TestRegression: def test_VonMises_range(self): # Make sure generated random variables are in [-pi, pi]. # Regression test for ticket #986. ...
37.346667
78
0.561585
acff4f988be312539ee441d65f07ba07cb8c9d9e
738
py
Python
gui-testing.py
misterhay/VISCA-IP-Controller-GUI
e7dcde715f06e14a0e6dff7ab29783fb1663e582
[ "Unlicense" ]
1
2022-01-22T17:06:38.000Z
2022-01-22T17:06:38.000Z
gui-testing.py
misterhay/VISCA-IP-Controller-GUI
e7dcde715f06e14a0e6dff7ab29783fb1663e582
[ "Unlicense" ]
null
null
null
gui-testing.py
misterhay/VISCA-IP-Controller-GUI
e7dcde715f06e14a0e6dff7ab29783fb1663e582
[ "Unlicense" ]
1
2022-01-22T17:06:45.000Z
2022-01-22T17:06:45.000Z
from tkinter import * def print_this(x): print(x) root = Tk() root.geometry("750x250") mousejoy = 0 colors = ['red','lightgrey'] def motion(event): x, y = event.x, event.y print('{}, {}'.format(x, y)) def nomotion(event): pass def joypad(): global mousejoy b.configure(bg=colors[mousejoy]) ...
19.421053
90
0.616531
acff4ff3891e9e92bb5092a767a22aa0da506992
3,911
py
Python
a_compile.py
neurolabusc/pigz-bench-python
9201517761bbe16940870d5e18470527e90d1cdb
[ "BSD-2-Clause" ]
1
2020-07-09T03:55:46.000Z
2020-07-09T03:55:46.000Z
a_compile.py
neurolabusc/pigz-bench-python
9201517761bbe16940870d5e18470527e90d1cdb
[ "BSD-2-Clause" ]
4
2020-03-25T04:14:45.000Z
2021-11-27T16:04:46.000Z
a_compile.py
neurolabusc/pigz-bench-python
9201517761bbe16940870d5e18470527e90d1cdb
[ "BSD-2-Clause" ]
2
2020-04-26T18:04:45.000Z
2020-05-05T21:57:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import stat import shutil import subprocess import platform import zipfile from distutils.dir_util import copy_tree def rmtree(top): """Delete folder and contents: shutil.rmtree has issues with read-only files on Windows""" for (root, dirs, files) in os...
32.057377
94
0.618001
acff50e3a1d9c46827e694c8965d4c4217abea66
14,759
py
Python
utils_1/keras_layer_DecodeDetectionsFast.py
madhu-korada/Mobilenet-V2-SSD-keras
75c85f0d9a16cbf6df39ed5219551f201e8871ca
[ "Apache-2.0" ]
null
null
null
utils_1/keras_layer_DecodeDetectionsFast.py
madhu-korada/Mobilenet-V2-SSD-keras
75c85f0d9a16cbf6df39ed5219551f201e8871ca
[ "Apache-2.0" ]
null
null
null
utils_1/keras_layer_DecodeDetectionsFast.py
madhu-korada/Mobilenet-V2-SSD-keras
75c85f0d9a16cbf6df39ed5219551f201e8871ca
[ "Apache-2.0" ]
null
null
null
''' A custom Keras layer to decode the raw SSD prediction output. This is a modified and more efficient version of the `DetectionOutput` layer type in the original Caffe implementation of SSD. For a faithful replication of the original layer, please refer to the `DecodeDetections` layer. Copyright (C) 2018 Pierluigi F...
55.070896
257
0.603632
acff50ff7bb7db54ed68dbd2673f27e4bbd54685
1,068
py
Python
src/tox_extra/hooks.py
tox-dev/tox-extra
9f65b4597754e8d926d81f1369bac312a078d996
[ "MIT" ]
3
2021-03-25T16:17:58.000Z
2022-02-06T18:03:31.000Z
src/tox_extra/hooks.py
tox-dev/tox-extra
9f65b4597754e8d926d81f1369bac312a078d996
[ "MIT" ]
4
2021-03-25T16:26:48.000Z
2022-02-17T08:14:27.000Z
src/tox_extra/hooks.py
tox-dev/tox-strict
9f65b4597754e8d926d81f1369bac312a078d996
[ "MIT" ]
2
2021-12-14T09:43:46.000Z
2022-02-16T12:00:07.000Z
"""Tox hook implementations.""" from __future__ import print_function import logging import os import git try: from tox import hookimpl from tox.reporter import error @hookimpl def tox_runtest_post(venv): """Hook that runs after test commands.""" if os.path.isdir(f"{venv.envconfig.co...
30.514286
85
0.552434
acff524f42cfca9018532a44c0ae953f22f9d578
9,735
py
Python
ingestion/functions/parsing/colombia/colombia.py
rpoltorak/list
7c6a71baa22c1d3ae4ed3babd98616592a4df95b
[ "MIT" ]
null
null
null
ingestion/functions/parsing/colombia/colombia.py
rpoltorak/list
7c6a71baa22c1d3ae4ed3babd98616592a4df95b
[ "MIT" ]
null
null
null
ingestion/functions/parsing/colombia/colombia.py
rpoltorak/list
7c6a71baa22c1d3ae4ed3babd98616592a4df95b
[ "MIT" ]
null
null
null
import os import sys from datetime import datetime import csv # Layer code, like parsing_lib, is added to the path by AWS. # To test locally (e.g. via pytest), we have to modify sys.path. # pylint: disable=import-error try: import parsing_lib except ImportError: sys.path.append( os.path.join( ...
37.298851
154
0.511043
acff543d3a14bb7b449cd19a06c5ad74ff72be3f
5,333
py
Python
mopidy/local/commands.py
rzr/mopidy
f6556ffafce34aebbc43ca266f69ac0068edc31d
[ "Apache-2.0" ]
null
null
null
mopidy/local/commands.py
rzr/mopidy
f6556ffafce34aebbc43ca266f69ac0068edc31d
[ "Apache-2.0" ]
null
null
null
mopidy/local/commands.py
rzr/mopidy
f6556ffafce34aebbc43ca266f69ac0068edc31d
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, unicode_literals import logging import os import time from mopidy import commands, exceptions from mopidy.audio import scan from mopidy.utils import path from . import translator logger = logging.getLogger(__name__) def _get_library(args, config): libraries = dict((l.nam...
33.753165
79
0.612413