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
4a00db21ab1a50fcc1218202d645edd09a25be1a
766
py
Python
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/images/tests/conftest.py
lisongshan007/azure-intelligent-edge-patterns
d95561d96625b4f0a8e69cc210149fe61c9f8b5c
[ "MIT" ]
null
null
null
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/images/tests/conftest.py
lisongshan007/azure-intelligent-edge-patterns
d95561d96625b4f0a8e69cc210149fe61c9f8b5c
[ "MIT" ]
null
null
null
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/images/tests/conftest.py
lisongshan007/azure-intelligent-edge-patterns
d95561d96625b4f0a8e69cc210149fe61c9f8b5c
[ "MIT" ]
null
null
null
"""Conftest """ from unittest import mock import pytest from ...azure_projects.models import Project from ...azure_settings.models import Setting from ...cameras.models import Camera @pytest.fixture(scope="function", autouse=True) def mock_validate(monkeypatch): monkeypatch.setattr(Setting, "validate", mock.Ma...
26.413793
79
0.721932
4a00dbb5e2505ac01f119da49238cff0fe9cd380
513
py
Python
gaussianize.py
frodre/LMR
4c00d3f9db96447e69bd3f426d59524f7b5f3ef5
[ "BSD-3-Clause" ]
17
2018-08-27T18:50:36.000Z
2021-03-17T22:48:55.000Z
gaussianize.py
mingsongli/LMR
4c00d3f9db96447e69bd3f426d59524f7b5f3ef5
[ "BSD-3-Clause" ]
5
2018-10-15T22:13:27.000Z
2019-04-26T11:45:58.000Z
gaussianize.py
mingsongli/LMR
4c00d3f9db96447e69bd3f426d59524f7b5f3ef5
[ "BSD-3-Clause" ]
11
2018-10-11T19:35:34.000Z
2021-08-17T12:08:11.000Z
import numpy as np from scipy import special import copy def gaussianize(X): #n = X.shape[0] n = X[~np.isnan(X)].shape[0] # This line counts only elements with data. #Xn = np.empty((n,)) Xn = copy.deepcopy(X) # This line retains the data type of the original data variable. Xn[:] = np.NAN nz ...
25.65
91
0.608187
4a00dcb4c499eb40e1236e17aa987f40f973e2ba
883
py
Python
zigzag_conversion/zigzag_conversion_test.py
kevinzen/learning
148129a1ec48e86e74c6ed244ba50ab682ebf00b
[ "MIT" ]
null
null
null
zigzag_conversion/zigzag_conversion_test.py
kevinzen/learning
148129a1ec48e86e74c6ed244ba50ab682ebf00b
[ "MIT" ]
null
null
null
zigzag_conversion/zigzag_conversion_test.py
kevinzen/learning
148129a1ec48e86e74c6ed244ba50ab682ebf00b
[ "MIT" ]
null
null
null
import unittest from zigzag_conversion.solution import Solution class ZigzagConversionTest(unittest.TestCase): def test_zigzag_conversion(self): s = Solution() tests = [ ("ABCD", 2, "ACBD"), ("ABABABABABABABABA", 2, "AAAAAAAAABBBBBBBB"), ('PAYPALISHIRING', 3,...
29.433333
106
0.524349
4a00ddcb1891ffb069866ff46d073623de4d9269
1,311
py
Python
webhook_trigger_service/basic/app_inputs.py
GShepherdTC/tcex-app-templates
fae927965563f98eed0bd7716afa3bf4d4fda3bf
[ "Apache-2.0" ]
1
2022-02-23T16:04:16.000Z
2022-02-23T16:04:16.000Z
webhook_trigger_service/basic/app_inputs.py
GShepherdTC/tcex-app-templates
fae927965563f98eed0bd7716afa3bf4d4fda3bf
[ "Apache-2.0" ]
null
null
null
webhook_trigger_service/basic/app_inputs.py
GShepherdTC/tcex-app-templates
fae927965563f98eed0bd7716afa3bf4d4fda3bf
[ "Apache-2.0" ]
3
2022-02-16T18:13:58.000Z
2022-03-31T18:46:20.000Z
"""App Inputs""" # standard library from typing import List, Union # third-party from pydantic import BaseModel from tcex.input.field_types import String from tcex.input.models import CreateConfigModel class ServiceConfigModel(BaseModel): """Base model for the App containing any common inputs. Trigger Servi...
26.755102
84
0.714722
4a00de3b774e8cb9b96e6fd91f4d387de3145d78
1,690
py
Python
policies/named_policies/ElspethV9.py
TeamJumpstart/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
10
2021-04-18T17:54:02.000Z
2021-07-26T19:58:41.000Z
policies/named_policies/ElspethV9.py
DiddiZ/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
1
2021-04-21T15:13:41.000Z
2021-04-21T15:13:41.000Z
policies/named_policies/ElspethV9.py
DiddiZ/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
1
2021-04-20T09:42:50.000Z
2021-04-20T09:42:50.000Z
from heuristics import ( CompositeHeuristic, OpponentDistanceHeuristic, PathLengthHeuristic, RandomProbingHeuristic, RegionHeuristic, VoronoiHeuristic ) from policies import HeuristicPolicy # Variant of ElspethV7 with closing_iterations working pol = HeuristicPolicy( CompositeHeuristic( [ ...
33.8
112
0.540237
4a00dee2299b3547ef05740cc257a4567cd77250
4,573
py
Python
pytorch3d/implicitron/tools/utils.py
ParikhKadam/pytorch3d
5cd70067e2ba642d98fd36e8e31273366d1599cb
[ "MIT", "BSD-3-Clause" ]
null
null
null
pytorch3d/implicitron/tools/utils.py
ParikhKadam/pytorch3d
5cd70067e2ba642d98fd36e8e31273366d1599cb
[ "MIT", "BSD-3-Clause" ]
null
null
null
pytorch3d/implicitron/tools/utils.py
ParikhKadam/pytorch3d
5cd70067e2ba642d98fd36e8e31273366d1599cb
[ "MIT", "BSD-3-Clause" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import collections import dataclasses import time from contextlib import contextmanager from typing import Any...
23.694301
83
0.598513
4a00df057c42a539e5b9d7f74cc1ff61a679d53b
6,701
py
Python
piquery/piq_feature.py
JaradC42/pyapi
80b9c4419251343603c84b8054413bab013083a8
[ "MIT" ]
1
2019-10-18T00:55:10.000Z
2019-10-18T00:55:10.000Z
piquery/piq_feature.py
JaradC42/pyapi
80b9c4419251343603c84b8054413bab013083a8
[ "MIT" ]
65
2019-10-21T07:16:51.000Z
2021-07-26T05:34:41.000Z
piquery/piq_feature.py
JaradC42/pyapi
80b9c4419251343603c84b8054413bab013083a8
[ "MIT" ]
1
2019-10-17T22:13:01.000Z
2019-10-17T22:13:01.000Z
import cv2 as cv import numpy as np import pandas as pd import os def parseKeypoints(kp): return [{'center': p.pt, 'diameter': p.size, 'angle': p.angle, 'class_id': p.class_id, 'octave': p.octave, 'response': p.response} for p in kp] def kpdfsort(kp): return p...
34.541237
134
0.55335
4a00df2d783cf79f563acda01b609263f0582a85
15,579
py
Python
venv/Lib/site-packages/pandas/tests/arrays/categorical/test_operators.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
28,899
2016-10-13T03:32:12.000Z
2022-03-31T21:39:05.000Z
venv/Lib/site-packages/pandas/tests/arrays/categorical/test_operators.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
31,004
2016-10-12T23:22:27.000Z
2022-03-31T23:17:38.000Z
venv/Lib/site-packages/pandas/tests/arrays/categorical/test_operators.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
15,149
2016-10-13T03:21:31.000Z
2022-03-31T18:46:47.000Z
import operator import warnings import numpy as np import pytest import pandas as pd from pandas import ( Categorical, DataFrame, Series, date_range, ) import pandas._testing as tm from pandas.tests.arrays.categorical.common import TestCategorical class TestCategoricalOpsWithFactor(TestCategorical):...
38.657568
88
0.601451
4a00e01088bb0b81dfa997df094fe47ca1c5a0de
2,975
py
Python
tests/test_country_flags_unused.py
Pelmen323/Kaiserreich_Autotests
3ad60ae09bb6d15922c5f581c0b1d80c3e8f08de
[ "MIT" ]
null
null
null
tests/test_country_flags_unused.py
Pelmen323/Kaiserreich_Autotests
3ad60ae09bb6d15922c5f581c0b1d80c3e8f08de
[ "MIT" ]
null
null
null
tests/test_country_flags_unused.py
Pelmen323/Kaiserreich_Autotests
3ad60ae09bb6d15922c5f581c0b1d80c3e8f08de
[ "MIT" ]
null
null
null
########################## # Test script to check for unused country flags # If flag is not used via "has_country_flag" at least once, it will appear in test results # By Pelmen, https://github.com/Pelmen323 ########################## import glob import re import os from ..test_classes.generic_test_class import FileOpe...
47.983871
192
0.627563
4a00e0a0cc7e6870328d694b16f1a5cbd3c03121
6,018
py
Python
src/visualization/draw_patterns.py
chrhenning/snn_global_pattern_induction
3ee4037a4568c393378eaec74483696d5281f376
[ "Apache-2.0" ]
9
2018-06-21T14:16:12.000Z
2021-06-22T15:52:35.000Z
src/visualization/draw_patterns.py
Arthas1121/snn_global_pattern_induction
3ee4037a4568c393378eaec74483696d5281f376
[ "Apache-2.0" ]
null
null
null
src/visualization/draw_patterns.py
Arthas1121/snn_global_pattern_induction
3ee4037a4568c393378eaec74483696d5281f376
[ "Apache-2.0" ]
4
2018-05-08T13:51:09.000Z
2019-04-11T13:56:06.000Z
#!/usr/bin/env python3 # Copyright 2017 Christian Henning # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
31.673684
79
0.636756
4a00e0dda512b3211fe99784417d80db8643ecd2
11,666
py
Python
vrchatapi/model/info_push_data_clickable.py
vrchatapi/vrchatapi-python
afe5ec9fda298723e7408358473aafe343e27d18
[ "MIT" ]
8
2021-08-25T02:35:30.000Z
2022-03-28T18:11:58.000Z
vrchatapi/model/info_push_data_clickable.py
vrchatapi/vrchatapi-python
afe5ec9fda298723e7408358473aafe343e27d18
[ "MIT" ]
1
2022-03-18T20:29:30.000Z
2022-03-18T20:35:05.000Z
vrchatapi/model/info_push_data_clickable.py
vrchatapi/vrchatapi-python
afe5ec9fda298723e7408358473aafe343e27d18
[ "MIT" ]
1
2022-01-11T10:49:12.000Z
2022-01-11T10:49:12.000Z
""" VRChat API Documentation The version of the OpenAPI document: 1.6.8 Contact: me@ruby.js.org Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from vrchatapi.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ...
42.421818
121
0.566347
4a00e1294430918de4e285e4c00374ebdb2da252
7,014
py
Python
assignments/assignment-6/src/GOT_classification.py
PeterThramkrongart/cds-language-portfolio
9af745bdc42ed6b13121d2ef0382bcf7b888fbb3
[ "MIT" ]
1
2021-05-20T07:39:44.000Z
2021-05-20T07:39:44.000Z
assignments/assignment-6/src/GOT_classification.py
PeterThramkrongart/cds-language-portfolio
9af745bdc42ed6b13121d2ef0382bcf7b888fbb3
[ "MIT" ]
null
null
null
assignments/assignment-6/src/GOT_classification.py
PeterThramkrongart/cds-language-portfolio
9af745bdc42ed6b13121d2ef0382bcf7b888fbb3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # system tools import os import sys sys.path.append(os.path.join("..")) # pandas, numpy import pandas as pd import numpy as np # import my classifier utility functions import utils.classifier_utils as clf from sklearn.preprocessing import LabelBinarizer, LabelEncoder # Machine learning stuff f...
32.174312
111
0.689621
4a00e158d69333c8c3b60948551b2d35dff83e34
1,038
py
Python
kubernetes/test/test_v1_weighted_pod_affinity_term.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
1
2020-05-08T12:41:04.000Z
2020-05-08T12:41:04.000Z
kubernetes/test/test_v1_weighted_pod_affinity_term.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_weighted_pod_affinity_term.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
2
2021-07-09T08:49:05.000Z
2021-08-03T18:08:36.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.10.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
23.066667
105
0.73025
4a00e3aac4d18ead908d5ca44b928b6205df6c84
1,349
py
Python
sampling_methods/sampling_def.py
sarmadt/active-learning
e8c3ad15d8960a90debb7334ade236d914b12556
[ "Apache-2.0" ]
null
null
null
sampling_methods/sampling_def.py
sarmadt/active-learning
e8c3ad15d8960a90debb7334ade236d914b12556
[ "Apache-2.0" ]
null
null
null
sampling_methods/sampling_def.py
sarmadt/active-learning
e8c3ad15d8960a90debb7334ade236d914b12556
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
25.942308
74
0.722758
4a00e4eb7f20c912003179858cb4ea2b28aa25e8
3,099
py
Python
src/pyobo/sources/biogrid.py
ddomingof/pyobo
057a76e729fe063d8cb58ddb38076e19c4336725
[ "MIT" ]
null
null
null
src/pyobo/sources/biogrid.py
ddomingof/pyobo
057a76e729fe063d8cb58ddb38076e19c4336725
[ "MIT" ]
null
null
null
src/pyobo/sources/biogrid.py
ddomingof/pyobo
057a76e729fe063d8cb58ddb38076e19c4336725
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Extract and convert BioGRID identifiers.""" from typing import Mapping import pandas as pd from pyobo.cache_utils import cached_mapping from pyobo.extract import get_name_id_mapping from pyobo.path_utils import ensure_df, prefix_directory_join PREFIX = 'biogrid' VERSION = '3.5.186' BASE_...
39.730769
116
0.704098
4a00e5fc6979b93e7a097cfd1a2d33ba3df1ab07
484
py
Python
data/data_loader.py
sthadas/Perceptual_similarity
5d21660e66e1ea31d72462db35aa4a8c850d6016
[ "BSD-2-Clause" ]
1
2018-10-03T13:32:09.000Z
2018-10-03T13:32:09.000Z
data/data_loader.py
sthadas/Perceptual_similarity
5d21660e66e1ea31d72462db35aa4a8c850d6016
[ "BSD-2-Clause" ]
null
null
null
data/data_loader.py
sthadas/Perceptual_similarity
5d21660e66e1ea31d72462db35aa4a8c850d6016
[ "BSD-2-Clause" ]
null
null
null
def CreateDataLoader(datafolder,dataroot='./scripts/dataset',dataset_mode='2afc',load_size=64,batch_size=1,serial_batches=True): from data.custom_dataset_data_loader import CustomDatasetDataLoader data_loader = CustomDatasetDataLoader() # print(data_loader.name()) data_loader.initialize(datafolder,datar...
69.142857
183
0.82438
4a00e821dc026bd8158348004682853b4db7283b
2,884
py
Python
homeschool/schools/models.py
sabrisay/homeschool
a48cbb8483627e7f74af518397f591fb73abe709
[ "MIT" ]
null
null
null
homeschool/schools/models.py
sabrisay/homeschool
a48cbb8483627e7f74af518397f591fb73abe709
[ "MIT" ]
null
null
null
homeschool/schools/models.py
sabrisay/homeschool
a48cbb8483627e7f74af518397f591fb73abe709
[ "MIT" ]
null
null
null
import uuid from typing import Optional from django.conf import settings from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from django.utils import timezone from homeschool.core.models import DaysOfWeekModel from homeschool.users.models import User clas...
32.404494
83
0.682039
4a00e83251dc2e41f571f6253b49bc870c5f99cf
2,107
py
Python
ui/server.py
TihonkovSergey/twitch_speech
ca916c49832f30ebe3f5ff7caa1e4ca69d6ad379
[ "Unlicense" ]
null
null
null
ui/server.py
TihonkovSergey/twitch_speech
ca916c49832f30ebe3f5ff7caa1e4ca69d6ad379
[ "Unlicense" ]
null
null
null
ui/server.py
TihonkovSergey/twitch_speech
ca916c49832f30ebe3f5ff7caa1e4ca69d6ad379
[ "Unlicense" ]
null
null
null
from flask import Flask, request, jsonify from flask_cors import CORS import sys sys.path.append("/home/sergey/Documents/homeworks/twitch_speech/") from utils.main_server import TwitchSpeechServer from utils.db_connector import DBConnector import config as cf pipeline_server = TwitchSpeechServer() db_connector = DBC...
25.083333
87
0.636925
4a00e855e4e626b04009286c3e525d5e41b63b5e
1,161
py
Python
pyleecan/Methods/Slot/SlotW16/build_geometry.py
ajpina/pyleecan
f8d1fce7d108cf443f5767e35d59ff15905fb49f
[ "Apache-2.0" ]
2
2020-08-28T14:54:55.000Z
2021-03-13T19:34:45.000Z
pyleecan/Methods/Slot/SlotW16/build_geometry.py
ajpina/pyleecan
f8d1fce7d108cf443f5767e35d59ff15905fb49f
[ "Apache-2.0" ]
null
null
null
pyleecan/Methods/Slot/SlotW16/build_geometry.py
ajpina/pyleecan
f8d1fce7d108cf443f5767e35d59ff15905fb49f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from ....Classes.Arc1 import Arc1 from ....Classes.Segment import Segment def build_geometry(self): """Compute the curve (Line) needed to plot the Slot. The ending point of a curve is the starting point of the next curve in the list Parameters ---------- self : SlotW1...
28.317073
85
0.655469
4a00ea14c09904e4cc6e9d56fac1938f20d324cc
20,518
py
Python
fence/__init__.py
grugna/fence
8cf0bb4160d82c03b58a176637df73458bd694e4
[ "Apache-2.0" ]
null
null
null
fence/__init__.py
grugna/fence
8cf0bb4160d82c03b58a176637df73458bd694e4
[ "Apache-2.0" ]
null
null
null
fence/__init__.py
grugna/fence
8cf0bb4160d82c03b58a176637df73458bd694e4
[ "Apache-2.0" ]
1
2022-02-10T20:21:35.000Z
2022-02-10T20:21:35.000Z
from collections import OrderedDict import os import tempfile from urllib.parse import urljoin import flask from flask_cors import CORS from flask_sqlalchemy_session import flask_scoped_session, current_session from authutils.oauth2.client import OAuthClient from cdislogging import get_logger from gen3authz.client.arb...
36.770609
170
0.669705
4a00eade946fd3aa60a69dea9c4e5df3f8aa3da8
809
py
Python
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/vrml/vrml97/script.py
alexus37/AugmentedRealityChess
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
[ "MIT" ]
1
2015-07-12T07:24:17.000Z
2015-07-12T07:24:17.000Z
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/vrml/vrml97/script.py
alexus37/AugmentedRealityChess
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
[ "MIT" ]
null
null
null
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/vrml/vrml97/script.py
alexus37/AugmentedRealityChess
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
[ "MIT" ]
1
2016-02-19T21:55:53.000Z
2016-02-19T21:55:53.000Z
"""VRML97 Script-node stub""" from vrml import node, fieldtypes from vrml.vrml97 import nodetypes class _Script( nodetypes.Children, node.Node ): """A sub-type of node with scripting/pseudo-proto support The class here just handles basic node-like functionality, a special constructor factory takes care of...
31.115385
73
0.674907
4a00ebd015718505b6d5730203993796904e2f85
56,125
py
Python
requests_auth/authentication.py
bottoy/requests_auth
f95ecd833d52341ebe0e2c974d133577ae124dd9
[ "MIT" ]
1
2020-04-02T02:29:56.000Z
2020-04-02T02:29:56.000Z
requests_auth/authentication.py
bottoy/requests_auth
f95ecd833d52341ebe0e2c974d133577ae124dd9
[ "MIT" ]
null
null
null
requests_auth/authentication.py
bottoy/requests_auth
f95ecd833d52341ebe0e2c974d133577ae124dd9
[ "MIT" ]
null
null
null
import base64 import os import uuid from hashlib import sha256, sha512 from urllib.parse import parse_qs, urlsplit, urlunsplit, urlencode from typing import Optional import requests import requests.auth import warnings from requests_auth import oauth2_authentication_responses_server, oauth2_tokens from requests_auth....
48.467185
118
0.680659
4a00ec1734ef4694de51af68f2cd2a5950ad71e4
9,536
py
Python
CIFAR/C100P1.2DropOutPatched.py
kice/SeqResNet
b9663b5835b1605c4a6bd79f0f5bbefa0a95e8b4
[ "MIT" ]
1
2019-04-06T17:33:38.000Z
2019-04-06T17:33:38.000Z
CIFAR/C100P1.2DropOutPatched.py
kice/SeqResNet
b9663b5835b1605c4a6bd79f0f5bbefa0a95e8b4
[ "MIT" ]
null
null
null
CIFAR/C100P1.2DropOutPatched.py
kice/SeqResNet
b9663b5835b1605c4a6bd79f0f5bbefa0a95e8b4
[ "MIT" ]
null
null
null
import os import time import torch from torchvision import datasets, transforms from ModelDropOutPatched import ResNetCIFAR import numpy as np import random np.random.seed(0) random.seed(0) torch.manual_seed(0) torch.cuda.manual_seed(0) torch.cuda.manual_seed_all(0) torch.backends.cudnn.deterministic = True torch.back...
33.226481
150
0.6013
4a00ec98739ca575b465bf9e7b34486eb4bdc5d1
17,770
py
Python
pymc3/step_methods/hmc/nuts.py
mcnoat/pymc3
8b1f64cce32db3357301b88bbe9f7108733ac70a
[ "Apache-2.0" ]
4
2021-03-26T10:13:46.000Z
2021-05-21T15:45:20.000Z
pymc3/step_methods/hmc/nuts.py
mcnoat/pymc3
8b1f64cce32db3357301b88bbe9f7108733ac70a
[ "Apache-2.0" ]
2
2017-11-27T00:11:53.000Z
2017-11-27T00:42:36.000Z
pymc3/step_methods/hmc/nuts.py
mcnoat/pymc3
8b1f64cce32db3357301b88bbe9f7108733ac70a
[ "Apache-2.0" ]
6
2017-11-03T01:15:11.000Z
2022-03-17T12:26:45.000Z
# Copyright 2020 The PyMC Developers # # 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 ag...
42.511962
100
0.632696
4a00ecb2516a935447f54d97356c81c106bbc17a
3,520
py
Python
code/tf_string_utils.py
zkk995/NonSeqDIN
a71dfe615b782c70138eb1e7571b2f781858700a
[ "Apache-2.0" ]
null
null
null
code/tf_string_utils.py
zkk995/NonSeqDIN
a71dfe615b782c70138eb1e7571b2f781858700a
[ "Apache-2.0" ]
1
2021-05-25T09:40:12.000Z
2021-05-25T09:40:12.000Z
code/tf_string_utils.py
zkk995/NonSeqDIN
a71dfe615b782c70138eb1e7571b2f781858700a
[ "Apache-2.0" ]
1
2021-05-25T09:37:45.000Z
2021-05-25T09:37:45.000Z
import tensorflow as tf def string_seq_to_tensor(lines, max_len=64, sep=',', out_type=tf.float32, mode=1): ''' lines = ['1,2,3', '3,4'] 返回: array([[1., 2., 3.], [3., 4., 0.]], dtype=float32) 说明: 同PAITF的函数trans_csv_id2dense(records, max_id, id_as_value=True) ''' sps = tf.string_sp...
39.550562
118
0.625852
4a00ecf7085d8d4484978bce42812cb0255b3cc1
946
py
Python
kubernetes_asyncio/test/test_v1_affinity.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
1
2020-03-25T01:24:27.000Z
2020-03-25T01:24:27.000Z
kubernetes_asyncio/test/test_v1_affinity.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_v1_affinity.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.10.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import u...
23.073171
119
0.709302
4a00ed6eabe972eab7011fffd07ae26b7e98de05
3,004
py
Python
figure_depth.py
idiap/psfestimation
1f3cbf594fd5a36675ff2941fa6e292a935f1aae
[ "BSD-3-Clause" ]
17
2020-06-16T20:58:48.000Z
2022-01-18T10:53:57.000Z
figure_depth.py
idiap/psfestimation
1f3cbf594fd5a36675ff2941fa6e292a935f1aae
[ "BSD-3-Clause" ]
2
2020-06-17T20:30:54.000Z
2021-09-17T10:44:33.000Z
figure_depth.py
idiap/psfestimation
1f3cbf594fd5a36675ff2941fa6e292a935f1aae
[ "BSD-3-Clause" ]
1
2021-03-20T12:59:36.000Z
2021-03-20T12:59:36.000Z
''' Code for the implementation of "Spatially-Variant CNN-based Point Spread Function Estimation for Blind Deconvolution and Depth Estimation in Optical Microscopy" Copyright (c) 2020 Idiap Research Institute, https://www.idiap.ch/ Written by Adrian Shajkofci <adrian.shajkofci@idiap.ch>, All rights reserved. This fil...
38.512821
129
0.76731
4a00efbee0cacc553d689c9c435952e3264eb2e6
870
py
Python
clase 2/algoritmos.py
cardenasG1238/computacion_para_ingenieria
f57ccd2c72d50fb34c9d8acdce75f6ba3f323f9c
[ "Apache-2.0" ]
null
null
null
clase 2/algoritmos.py
cardenasG1238/computacion_para_ingenieria
f57ccd2c72d50fb34c9d8acdce75f6ba3f323f9c
[ "Apache-2.0" ]
null
null
null
clase 2/algoritmos.py
cardenasG1238/computacion_para_ingenieria
f57ccd2c72d50fb34c9d8acdce75f6ba3f323f9c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Feb 1 10:19:05 2022 @author: HP """ # contadores de 1 en 1 cont = 0 # cont +=1 #--> cont = cont +1 # 1 .- contar numeros del 1 al 10 y mostrar en la pantalla while cont < 10: cont = cont +1 print (cont) # 2.- sumar los numeros del 1 al 10 # list = [1, 2,4,3,,,...
20.232558
58
0.56092
4a00eff388ca18422c010785c6300842e65a170a
293
py
Python
deliverable3/ui/functions/task_hyperbolic_sine.py
rmanaem/eternity
e99910747ee3ff7c1342f8ad9802e9a060ca8fc5
[ "MIT" ]
null
null
null
deliverable3/ui/functions/task_hyperbolic_sine.py
rmanaem/eternity
e99910747ee3ff7c1342f8ad9802e9a060ca8fc5
[ "MIT" ]
null
null
null
deliverable3/ui/functions/task_hyperbolic_sine.py
rmanaem/eternity
e99910747ee3ff7c1342f8ad9802e9a060ca8fc5
[ "MIT" ]
null
null
null
from hyperbolic_sine import HyperbolicSine #Checking Sinh(2.5) sinh = HyperbolicSine(2.5) x = sinh.calculate_sinh() #Checking Sinh(3) sinh.set_value(3) y = sinh.calculate_sinh() #Checking Sinh(2+2j) sinh.set_value(2+2j) z = sinh.calculate_sinh() print(x) print(y) print(z) print((x*y) + z)
16.277778
42
0.730375
4a00f0bc5f715049f165f987f4a8c5f2e1c9eb56
9,312
py
Python
analysis_collection/tracing_sim/results_exponential_withoutQ_NMEAS_100_ONLYSAVETIME_False/simulation.py
benmaier/DigCT
62fc3fddb7600e2a43761e08618b2e3df423569c
[ "MIT" ]
null
null
null
analysis_collection/tracing_sim/results_exponential_withoutQ_NMEAS_100_ONLYSAVETIME_False/simulation.py
benmaier/DigCT
62fc3fddb7600e2a43761e08618b2e3df423569c
[ "MIT" ]
null
null
null
analysis_collection/tracing_sim/results_exponential_withoutQ_NMEAS_100_ONLYSAVETIME_False/simulation.py
benmaier/DigCT
62fc3fddb7600e2a43761e08618b2e3df423569c
[ "MIT" ]
1
2021-07-12T13:50:35.000Z
2021-07-12T13:50:35.000Z
import epipack import numpy as np from epipack.stochastic_epi_models import StochasticEpiModel from math import exp from numpy import random import networkx as nx #from smallworld import get_smallworld_graph from scipy.stats import expon import numpy as np import networkx as nx def _edge(i,j): if i > j: re...
38.320988
180
0.459837
4a00f19273c169b7b7a7d81f38abc2e0d17034bd
7,123
py
Python
src/azure-cli/azure/cli/command_modules/redis/_help.py
AnshulBhl/azure-cli
24f7efbe23a9c874ae06e4bfda216d9aa6cbf3a3
[ "MIT" ]
1
2021-08-23T19:53:54.000Z
2021-08-23T19:53:54.000Z
src/azure-cli/azure/cli/command_modules/redis/_help.py
amisi01/azure-cli
49206c5b12312985b417f557857fa409bf8aed2e
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/redis/_help.py
amisi01/azure-cli
49206c5b12312985b417f557857fa409bf8aed2e
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------...
47.486667
402
0.732557
4a00f1a697718e3fc1454210854ebcfed0fb02c1
192
py
Python
nyamuk/utils.py
MasterScott/nyamuk
ac4c6028de288a4c8e0b332ae16eae889deb643d
[ "BSD-2-Clause" ]
49
2015-01-27T15:06:31.000Z
2022-02-18T13:51:48.000Z
nyamuk/utils.py
MasterScott/nyamuk
ac4c6028de288a4c8e0b332ae16eae889deb643d
[ "BSD-2-Clause" ]
10
2015-03-19T13:24:33.000Z
2019-03-01T10:06:23.000Z
nyamuk/utils.py
MasterScott/nyamuk
ac4c6028de288a4c8e0b332ae16eae889deb643d
[ "BSD-2-Clause" ]
19
2015-01-27T15:13:29.000Z
2021-05-23T13:43:52.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- # encode unicode string to utf8 # def utf8encode(unistr): if type(unistr) is unicode: return unistr.encode('utf8') return unistr
17.454545
36
0.645833
4a00f1e4516292a987ecf992719b07f404334f17
4,537
py
Python
painless_redirects/middleware-legacy-dry.py
benzkji/django-painless-redirects
03c6623f11794f7dff6a4a996daca96c8775094c
[ "MIT" ]
1
2020-05-30T09:10:50.000Z
2020-05-30T09:10:50.000Z
painless_redirects/middleware-legacy-dry.py
bnzk/django-painless-redirects
03c6623f11794f7dff6a4a996daca96c8775094c
[ "MIT" ]
26
2017-03-21T10:30:29.000Z
2022-03-23T14:36:15.000Z
painless_redirects/middleware-legacy-dry.py
benzkji/django-painless-redirects
03c6623f11794f7dff6a4a996daca96c8775094c
[ "MIT" ]
2
2017-03-18T10:48:44.000Z
2017-10-10T07:18:54.000Z
# coding: utf-8 from __future__ import unicode_literals from django.conf import settings from django import http from django.utils.encoding import force_text from django.utils.http import urlquote from django.contrib.sites.models import Site from .models import Redirect class ForceSiteDomainRedirectMiddleware(objec...
39.112069
82
0.592242
4a00f237cafb3642648392a5f7a5b1d8f51fe3c7
4,229
py
Python
web/tests/functional/skip/__init__.py
ryankurte/codechecker
737424ee77c181304f242d5a2adef3e6d9369998
[ "Apache-2.0" ]
1,601
2015-07-22T20:01:32.000Z
2022-03-31T03:04:36.000Z
web/tests/functional/skip/__init__.py
ryankurte/codechecker
737424ee77c181304f242d5a2adef3e6d9369998
[ "Apache-2.0" ]
2,056
2015-07-20T09:39:25.000Z
2022-03-31T10:18:08.000Z
web/tests/functional/skip/__init__.py
ryankurte/codechecker
737424ee77c181304f242d5a2adef3e6d9369998
[ "Apache-2.0" ]
288
2015-07-15T18:57:18.000Z
2022-03-30T13:40:13.000Z
# coding=utf-8 # ------------------------------------------------------------------------- # # Part of the CodeChecker project, under the Apache License v2.0 with # LLVM Exceptions. See LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # # ------------------------------------...
28.768707
75
0.641996
4a00f36bdd723f4abaf0c2dafd240e7ad0ffe2fd
115
py
Python
app/orders/apps.py
Zed-chi/Shultais_Django_introduction
875c7f309083dc6c92eba275d86779e83a34830e
[ "MIT" ]
1
2020-05-28T17:04:56.000Z
2020-05-28T17:04:56.000Z
app/orders/apps.py
Zed-chi/Shultais_Django_introduction
875c7f309083dc6c92eba275d86779e83a34830e
[ "MIT" ]
null
null
null
app/orders/apps.py
Zed-chi/Shultais_Django_introduction
875c7f309083dc6c92eba275d86779e83a34830e
[ "MIT" ]
null
null
null
from django.apps import AppConfig class OrdersConfig(AppConfig): name = "orders" verbose_name = "Заказы"
16.428571
33
0.721739
4a00f42812f589d83777f0fb6367f01335a2e638
1,935
py
Python
setup.py
fredhallgren/nystrompca
7f8923af08551ad477a446c383822b555326f4bf
[ "Apache-2.0" ]
4
2021-09-14T08:46:10.000Z
2021-10-31T09:44:06.000Z
setup.py
fredhallgren/nystrompca
7f8923af08551ad477a446c383822b555326f4bf
[ "Apache-2.0" ]
null
null
null
setup.py
fredhallgren/nystrompca
7f8923af08551ad477a446c383822b555326f4bf
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages with open("requirements.txt") as f: requirements_list = f.read().split('\n') setup(name = "nystrompca", version = "1.0.2", description = "Kernel PCA with the Nyström method", author = "Fredrik Hal...
47.195122
295
0.57261
4a00f51c296577000f07d8ff66f0b05e1d95e269
1,161
py
Python
bayesian/examples/gaussian_bayesian_networks/river.py
Ecotrust/bayesian-belief-networks
9bf4a5c75789204ea8d83e83bd410f1716cd81e0
[ "Apache-2.0" ]
1
2015-10-18T22:45:39.000Z
2015-10-18T22:45:39.000Z
bayesian/examples/gaussian_bayesian_networks/river.py
Ecotrust/bayesian-belief-networks
9bf4a5c75789204ea8d83e83bd410f1716cd81e0
[ "Apache-2.0" ]
null
null
null
bayesian/examples/gaussian_bayesian_networks/river.py
Ecotrust/bayesian-belief-networks
9bf4a5c75789204ea8d83e83bd410f1716cd81e0
[ "Apache-2.0" ]
null
null
null
'''Simple Example Using Gaussian Variables''' from bayesian.gaussian_bayesian_network import gaussian, conditional_gaussian from bayesian.gaussian_bayesian_network import build_graph from bayesian.utils import shrink_matrix ''' This example comes from page 3 of http://people.cs.aau.dk/~uk/papers/castillo-kjaerulff-03...
20.732143
77
0.6882
4a00f786e0478c7f51698ee68a355e4f9712b062
920
py
Python
gkmerge/data_tools/data_analysis.py
ISCOTTYI/gk-merge
d12421c23ea2d28f5f2bf7985c54b1e3f062cdbc
[ "MIT" ]
null
null
null
gkmerge/data_tools/data_analysis.py
ISCOTTYI/gk-merge
d12421c23ea2d28f5f2bf7985c54b1e3f062cdbc
[ "MIT" ]
null
null
null
gkmerge/data_tools/data_analysis.py
ISCOTTYI/gk-merge
d12421c23ea2d28f5f2bf7985c54b1e3f062cdbc
[ "MIT" ]
null
null
null
from gkmerge.data_tools.util import * def contagion_extend(df_or_af_lst, cascade_threshold): """ For a given list of defaulted fractions from various simulation runs calculates the mean contagion extend where a global cascade is defined accoring to cadcade_threshold. """ return filtered_mean(d...
32.857143
95
0.769565
4a00f7baab9fc54a99bfd240dd2b34442dc73e6e
16,153
py
Python
nobrainer/dataset.py
kaczmarj/nobrainer
c1b17831a0e816d19ed79dbf620401f989f13bc2
[ "Apache-2.0" ]
17
2018-03-19T03:13:53.000Z
2019-03-27T11:10:55.000Z
nobrainer/dataset.py
kaczmarj/nobrainer
c1b17831a0e816d19ed79dbf620401f989f13bc2
[ "Apache-2.0" ]
29
2018-02-08T14:49:06.000Z
2019-03-19T21:03:58.000Z
nobrainer/dataset.py
kaczmarj/nobrainer
c1b17831a0e816d19ed79dbf620401f989f13bc2
[ "Apache-2.0" ]
12
2018-01-29T20:36:31.000Z
2019-03-25T22:52:09.000Z
"""Methods for creating `tf.data.Dataset` objects.""" import math import os from pathlib import Path import fsspec import nibabel as nb import numpy as np import tensorflow as tf from .io import _is_gzipped, verify_features_labels from .tfrecord import _labels_all_scalar, parse_example_fn, write from .volume import ...
38.922892
90
0.642977
4a00f853b1d03eb38845603319bf1209e0320898
3,669
py
Python
tests/test_stream2.py
dfeeley/alpaca-trade-api-python
392436697231f971d1dc83d4ee5c07ac84c23ff3
[ "Apache-2.0" ]
2
2020-02-15T22:03:20.000Z
2021-04-09T16:30:14.000Z
tests/test_stream2.py
dfeeley/alpaca-trade-api-python
392436697231f971d1dc83d4ee5c07ac84c23ff3
[ "Apache-2.0" ]
null
null
null
tests/test_stream2.py
dfeeley/alpaca-trade-api-python
392436697231f971d1dc83d4ee5c07ac84c23ff3
[ "Apache-2.0" ]
null
null
null
from alpaca_trade_api.stream2 import StreamConn from alpaca_trade_api.entity import Account from alpaca_trade_api.polygon.entity import Entity as PolyEntity import asyncio import json import pytest from unittest import mock def AsyncMock(*args, **kwargs): """Create an async function mock.""" m = mock.MagicMo...
26.586957
74
0.635323
4a00f92a4ec8400b3719c9cc287ee960c480b0a9
5,462
py
Python
Wrappers/Python/ccpi/optimisation/operators/MaskOperator.py
KrisThielemans/CCPi-Framework
fed2e86a65fa67aa89d0a690438bf76f4828266e
[ "Apache-2.0" ]
null
null
null
Wrappers/Python/ccpi/optimisation/operators/MaskOperator.py
KrisThielemans/CCPi-Framework
fed2e86a65fa67aa89d0a690438bf76f4828266e
[ "Apache-2.0" ]
null
null
null
Wrappers/Python/ccpi/optimisation/operators/MaskOperator.py
KrisThielemans/CCPi-Framework
fed2e86a65fa67aa89d0a690438bf76f4828266e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # CCP in Tomographic Imaging (CCPi) Core Imaging Library (CIL). # Copyright 2017-2020 UKRI-STFC # Copyright 2017-2020 University of Manchester # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You m...
34.352201
133
0.641706
4a00f9509e7fcd255bdc819a8a8c71fafe79d788
18,536
py
Python
demisto_sdk/tests/constants_test.py
kfirstri/demisto-sdk
59d99cf4b5016be8a4a333c2541418e1612549e1
[ "MIT" ]
null
null
null
demisto_sdk/tests/constants_test.py
kfirstri/demisto-sdk
59d99cf4b5016be8a4a333c2541418e1612549e1
[ "MIT" ]
null
null
null
demisto_sdk/tests/constants_test.py
kfirstri/demisto-sdk
59d99cf4b5016be8a4a333c2541418e1612549e1
[ "MIT" ]
null
null
null
import demisto_sdk.commands.common.constants as constants import pytest from demisto_sdk.commands.common.legacy_git_tools import git_path GIT_ROOT = "{}".format(git_path()) INVALID_PLAYBOOK_PATH = f"{GIT_ROOT}/demisto_sdk/tests/test_files/Playbooks.playbook-invalid.yml" VALID_TEST_PLAYBOOK_PATH = f"{GIT_ROOT}/demisto_...
69.423221
130
0.81107
4a00f973ba48cb6d3ca1345fc8bff3b36f18c329
2,989
py
Python
hw1_fit_a_function/main.py
ybs985/DeepLearning
d38b682be054f5c997bbcefc7c9056e9da9ddf4b
[ "MIT" ]
null
null
null
hw1_fit_a_function/main.py
ybs985/DeepLearning
d38b682be054f5c997bbcefc7c9056e9da9ddf4b
[ "MIT" ]
null
null
null
hw1_fit_a_function/main.py
ybs985/DeepLearning
d38b682be054f5c997bbcefc7c9056e9da9ddf4b
[ "MIT" ]
null
null
null
import paddle from paddle.nn import Linear import paddle.nn.functional as F import numpy as np import math import random from matplotlib import pyplot as plt #定义正态分布函数,生成数据点 sample_point=1000 def f(x): return math.exp(-x**2/2)/math.sqrt(2*math.pi) x=np.zeros(sample_point) y=np.zeros(sample_point) for i in range(sa...
26.451327
77
0.71094
4a00f9a38bc6588836dbf7f78612191b750b1219
2,249
py
Python
Pipelines/general_ner.py
FredHutch/HutchNER
567f48b2ea283ba302c9246eb5bb494d6b19b34c
[ "Apache-2.0" ]
null
null
null
Pipelines/general_ner.py
FredHutch/HutchNER
567f48b2ea283ba302c9246eb5bb494d6b19b34c
[ "Apache-2.0" ]
null
null
null
Pipelines/general_ner.py
FredHutch/HutchNER
567f48b2ea283ba302c9246eb5bb494d6b19b34c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016-2017 Fred Hutchinson Cancer Research Center # # Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 # from flask import json from DataLoading.JSONDataLoader import JSONDataLoader def docs2json(docs): doc_dict=dict() for id, doc in docs.items(): ...
46.854167
754
0.691418
4a00fb7c0d63aa461b25ddd615d1c2292099b314
13,833
py
Python
python/GafferUITest/WidgetTest.py
timlehr/gaffer
354acd6af7500e0bd1ce19d7c417929e2f0a919e
[ "BSD-3-Clause" ]
null
null
null
python/GafferUITest/WidgetTest.py
timlehr/gaffer
354acd6af7500e0bd1ce19d7c417929e2f0a919e
[ "BSD-3-Clause" ]
null
null
null
python/GafferUITest/WidgetTest.py
timlehr/gaffer
354acd6af7500e0bd1ce19d7c417929e2f0a919e
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2011-2015, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted prov...
28.81875
150
0.686908
4a00fbba470573f32094f91aa94882f1d83d815b
46
py
Python
seleniumcrawler/__init__.py
Goku0858756/selenium-crawler
e49df4c1f40a330af19d90b7c59d49ac1acee86c
[ "MIT" ]
83
2015-10-07T06:34:45.000Z
2022-03-09T06:26:54.000Z
seleniumcrawler/__init__.py
corywalker/selenium-crawler
e49df4c1f40a330af19d90b7c59d49ac1acee86c
[ "MIT" ]
null
null
null
seleniumcrawler/__init__.py
corywalker/selenium-crawler
e49df4c1f40a330af19d90b7c59d49ac1acee86c
[ "MIT" ]
29
2015-12-04T13:08:16.000Z
2021-07-15T23:15:36.000Z
from seleniumcrawler.handle import handle_url
23
45
0.891304
4a00fbdf02d1563797801d28bbfc1b5455dce41d
16,041
py
Python
disnake/sticker.py
Kraots/disnake
9eb9ab81915dae7249ffb2b757dd6dee6090341e
[ "MIT" ]
null
null
null
disnake/sticker.py
Kraots/disnake
9eb9ab81915dae7249ffb2b757dd6dee6090341e
[ "MIT" ]
null
null
null
disnake/sticker.py
Kraots/disnake
9eb9ab81915dae7249ffb2b757dd6dee6090341e
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
30.266038
108
0.614737
4a00ffce90d53e6873bf27daeff3eb374749fb17
136
py
Python
src/ltdconveyor/s3/exceptions.py
lsst-sqre/ltd-conveyor
713cdd3325a45a96261eea07933df3ce37998d85
[ "MIT" ]
null
null
null
src/ltdconveyor/s3/exceptions.py
lsst-sqre/ltd-conveyor
713cdd3325a45a96261eea07933df3ce37998d85
[ "MIT" ]
8
2017-02-02T21:50:24.000Z
2022-03-11T18:45:43.000Z
src/ltdconveyor/s3/exceptions.py
lsst-sqre/ltd-conveyor
713cdd3325a45a96261eea07933df3ce37998d85
[ "MIT" ]
null
null
null
__all__ = ("S3Error",) from ..exceptions import ConveyorError class S3Error(ConveyorError): """Error related to AWS S3 usage."""
17
40
0.705882
4a00ffcf0101591a0de613ec9c5e3bfced22d4e0
415
py
Python
SleekSecurity/layers/plugins/fingerprint/framework/play.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/framework/play.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/framework/play.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # @name: Wascan - Web Application Scanner # @repo: https://github.com/m4ll0k/Wascan # @author: Momo Outaadi (M4ll0k) # @license: See the file 'LICENSE.txt from re import search,I def play(headers,content): _ = False for header in headers.items(): _ |= search(...
25.9375
55
0.662651
4a01000b82d47dbd71f1eba8a1e1aba0f1d97d9b
14,249
py
Python
src/Testing/ZopeTestCase/testBaseTestCase.py
dek4nice/Zope
ec4765fc0007c4e78aafcbeef510077444f8551a
[ "ZPL-2.1" ]
1
2018-11-30T12:39:27.000Z
2018-11-30T12:39:27.000Z
src/Testing/ZopeTestCase/testBaseTestCase.py
dek4nice/Zope
ec4765fc0007c4e78aafcbeef510077444f8551a
[ "ZPL-2.1" ]
null
null
null
src/Testing/ZopeTestCase/testBaseTestCase.py
dek4nice/Zope
ec4765fc0007c4e78aafcbeef510077444f8551a
[ "ZPL-2.1" ]
1
2018-11-30T12:39:34.000Z
2018-11-30T12:39:34.000Z
############################################################################## # # Copyright (c) 2005 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
30.381663
78
0.620605
4a0101542bbb8664c38e58e93c45789ef70af82c
8,048
py
Python
sdk/python/pulumi_azure_nextgen/storagepool/v20200315preview/get_disk_pool.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/storagepool/v20200315preview/get_disk_pool.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/storagepool/v20200315preview/get_disk_pool.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# 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...
36.089686
234
0.643141
4a0101be93bb230faa996574c6c56de034575603
7,071
py
Python
code/model.py
Run542968/Self_Attention_Pytorch
35b5c520904c709f35a9d3e44c0cdba92a35d10b
[ "Apache-2.0" ]
null
null
null
code/model.py
Run542968/Self_Attention_Pytorch
35b5c520904c709f35a9d3e44c0cdba92a35d10b
[ "Apache-2.0" ]
null
null
null
code/model.py
Run542968/Self_Attention_Pytorch
35b5c520904c709f35a9d3e44c0cdba92a35d10b
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F import numpy as np class SelfBiLSTMAttention(nn.Module): def __init__(self,embedding_dim,lstm_hide_dim,max_time_len,batch_size,da,r,class_num,word2id,use_pre_embeddings=False,pre_embeddings_path=None): ...
43.115854
167
0.652949
4a010229eb52d5d2f95527995a27c711d2df0eb5
196
py
Python
Codeforces/contest636#d3/A.py
shivammehta007/Fun-Coding
1ecfd682b336f5f9bc50364375de7d4c67714cbd
[ "Vim", "Fair", "MIT" ]
null
null
null
Codeforces/contest636#d3/A.py
shivammehta007/Fun-Coding
1ecfd682b336f5f9bc50364375de7d4c67714cbd
[ "Vim", "Fair", "MIT" ]
null
null
null
Codeforces/contest636#d3/A.py
shivammehta007/Fun-Coding
1ecfd682b336f5f9bc50364375de7d4c67714cbd
[ "Vim", "Fair", "MIT" ]
null
null
null
t = int(input()) while t: n = int(input()) k = 2 while True: x = n / (2**k - 1) if int(x) == x: print(int(x)) break k += 1 t -= 1
14
26
0.331633
4a0102650003e8cfba1730dab29068b5c08148bf
15,080
py
Python
simple_romp/romp/smpl.py
jjandnn/ROMP
653a0c9de13c7e242bc304147ae6559d1c6ff283
[ "MIT" ]
null
null
null
simple_romp/romp/smpl.py
jjandnn/ROMP
653a0c9de13c7e242bc304147ae6559d1c6ff283
[ "MIT" ]
null
null
null
simple_romp/romp/smpl.py
jjandnn/ROMP
653a0c9de13c7e242bc304147ae6559d1c6ff283
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from __future__ import division import os,sys import os.path as osp import pickle import numpy as np import torch import torch.nn as nn import torch.nn.functional as F #from .utils import time_cost class VertexJointSelector(nn.Module): ...
40.537634
143
0.628979
4a01035e5eb007f9b50ca0aedae1e22efe9304df
3,115
py
Python
code/auto_download/auto-download-ucla.py
Stochastik-TU-Ilmenau/covid19-forecast-hub-de
384d9ed2d84e9733f630973fb1a43b079f2b57a1
[ "MIT" ]
31
2020-05-20T15:38:57.000Z
2022-02-13T01:31:33.000Z
code/auto_download/auto-download-ucla.py
Stochastik-TU-Ilmenau/covid19-forecast-hub-de
384d9ed2d84e9733f630973fb1a43b079f2b57a1
[ "MIT" ]
777
2020-05-18T14:55:53.000Z
2022-03-29T20:43:17.000Z
code/auto_download/auto-download-ucla.py
Stochastik-TU-Ilmenau/covid19-forecast-hub-de
384d9ed2d84e9733f630973fb1a43b079f2b57a1
[ "MIT" ]
65
2020-05-20T07:42:36.000Z
2021-11-20T21:25:23.000Z
# Auto-download forecasts of UCLA-Team # Jakob Ketterer, November 2020 import os import urllib.request from datetime import datetime, timedelta if __name__ == "__main__": ############ logic to determine which files shall be downloaded # search date of most current prediction data_raw_dir = "./data-raw/U...
38.45679
119
0.668058
4a01037c39a0f35eceb6456a8be604c283ed5f75
8,108
py
Python
twopi_flask_utils/testing/__init__.py
TwoPiCode/twopi-flask-utils
fd6ae7077060661f743873f72059a14687fa0c5e
[ "MIT" ]
4
2016-08-11T01:18:39.000Z
2022-03-12T00:28:22.000Z
twopi_flask_utils/testing/__init__.py
TwoPiCode/twopi-flask-utils
fd6ae7077060661f743873f72059a14687fa0c5e
[ "MIT" ]
4
2016-10-13T23:34:51.000Z
2019-10-08T01:43:22.000Z
twopi_flask_utils/testing/__init__.py
TwoPiCode/twopi-flask-utils
fd6ae7077060661f743873f72059a14687fa0c5e
[ "MIT" ]
2
2016-09-15T11:17:32.000Z
2017-06-15T09:21:24.000Z
import json class AppReqTestHelper(object): """ Adds convenience request methods on the testcase object. Assumes a flask app client is defined on ``self.client`` """ def _req(self, meth, *args, **kwargs): if kwargs.get('content_type') is None and meth != 'get': kwargs['content_...
38.980769
99
0.536877
4a0103eacaa9bcd7839172a5be7d4dbbbd41b29c
653
py
Python
python/Guazina/ex109/__init__.py
FaunoGuazina/X_very_old_algorithm_exercises
c9b9ec78e8b82f2e23ef85ba9a5e7fd6e0deaea6
[ "MIT" ]
null
null
null
python/Guazina/ex109/__init__.py
FaunoGuazina/X_very_old_algorithm_exercises
c9b9ec78e8b82f2e23ef85ba9a5e7fd6e0deaea6
[ "MIT" ]
null
null
null
python/Guazina/ex109/__init__.py
FaunoGuazina/X_very_old_algorithm_exercises
c9b9ec78e8b82f2e23ef85ba9a5e7fd6e0deaea6
[ "MIT" ]
null
null
null
from Guazina import ex108, ex107 def METADE(x, exibir=False): metade = ex107.moedaMETADE(x) if exibir: return ex108.formaEURO(metade) else: return metade def DOBRO(x, exibir=False): dobro = ex107.moedaDOBRO(x) if exibir: return ex108.formaEURO(dobro) else: retur...
19.787879
39
0.630934
4a010402ecb357d296a574c2c89a93ec116051ad
5,189
py
Python
mhcflurry/predict_command.py
juvejones/mhcflurry_pan
08b6fd3116230f954db37a1917e70107f1ffe9d9
[ "Apache-2.0" ]
1
2020-08-06T06:53:46.000Z
2020-08-06T06:53:46.000Z
mhcflurry/predict_command.py
juvejones/mhcflurry_pan
08b6fd3116230f954db37a1917e70107f1ffe9d9
[ "Apache-2.0" ]
null
null
null
mhcflurry/predict_command.py
juvejones/mhcflurry_pan
08b6fd3116230f954db37a1917e70107f1ffe9d9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016. Mount Sinai School of Medicine # # 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...
32.43125
78
0.66429
4a01062b5f3905951dee211a14fbab089df07dc4
1,340
py
Python
RecoTauTag/TauTagTools/python/TauTruthProduction_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
RecoTauTag/TauTagTools/python/TauTruthProduction_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-23T13:40:24.000Z
2019-12-05T21:16:03.000Z
RecoTauTag/TauTagTools/python/TauTruthProduction_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
import FWCore.ParameterSet.Config as cms from PhysicsTools.JetMCAlgos.TauGenJets_cfi import tauGenJets from PhysicsTools.HepMCCandAlgos.genParticles_cfi import genParticles from RecoJets.JetProducers.ak4GenJets_cfi import ak4GenJets from RecoJets.Configuration.GenJetParticles_cff import genParticlesForJets trueHadron...
29.777778
74
0.728358
4a0106b403f8bbe977bf0354d22cf1136f9d64f6
1,245
py
Python
student_core/consumers.py
michaelchen-lab/LMS_Backend
f8727398c66b94926e625ebd194e8330481727eb
[ "MIT" ]
null
null
null
student_core/consumers.py
michaelchen-lab/LMS_Backend
f8727398c66b94926e625ebd194e8330481727eb
[ "MIT" ]
null
null
null
student_core/consumers.py
michaelchen-lab/LMS_Backend
f8727398c66b94926e625ebd194e8330481727eb
[ "MIT" ]
null
null
null
import json from asgiref.sync import async_to_sync from channels.generic.websocket import AsyncWebsocketConsumer from channels.db import database_sync_to_async class StudentConsumer(AsyncWebsocketConsumer): async def connect(self): self.user = self.scope['user'] if self.user.user_type != 1: ...
28.295455
61
0.629719
4a01076d0d61016f95e93354c1de2473952b70f2
4,252
py
Python
openshift/test/test_v1_local_subject_access_review.py
flaper87/openshift-restclient-python
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
[ "Apache-2.0" ]
null
null
null
openshift/test/test_v1_local_subject_access_review.py
flaper87/openshift-restclient-python
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
[ "Apache-2.0" ]
null
null
null
openshift/test/test_v1_local_subject_access_review.py
flaper87/openshift-restclient-python
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenShift API (with Kubernetes) OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is...
98.883721
3,380
0.793274
4a0107ac02c8363e4608f6178fbf89cc1b337304
344
py
Python
django/core/management/commands/sql.py
rawwell/django
6b3264671ead4604f26cbd2b71e8d6a02945bf0c
[ "BSD-3-Clause" ]
1
2016-05-08T12:24:22.000Z
2016-05-08T12:24:22.000Z
django/core/management/commands/sql.py
rawwell/django
6b3264671ead4604f26cbd2b71e8d6a02945bf0c
[ "BSD-3-Clause" ]
null
null
null
django/core/management/commands/sql.py
rawwell/django
6b3264671ead4604f26cbd2b71e8d6a02945bf0c
[ "BSD-3-Clause" ]
1
2015-11-19T14:45:16.000Z
2015-11-19T14:45:16.000Z
from django.core.management.base import AppCommand class Command(AppCommand): help = "Prints the CREATE TABLE SQL statements for the given app name(s)." output_transaction = True def handle_app(self, app, **options): from django.core.management.sql import sql_create return '\n'.join(sql_c...
31.272727
78
0.718023
4a010949b409025eb0d91dab893929f60ea27c9b
387
py
Python
telly/wsgi.py
el-Joft/telly
0c97471e46ee491bd1f6019250ce7a3f21de67af
[ "MIT" ]
null
null
null
telly/wsgi.py
el-Joft/telly
0c97471e46ee491bd1f6019250ce7a3f21de67af
[ "MIT" ]
null
null
null
telly/wsgi.py
el-Joft/telly
0c97471e46ee491bd1f6019250ce7a3f21de67af
[ "MIT" ]
null
null
null
""" WSGI config for telly project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTING...
22.764706
78
0.782946
4a0109dc35081817faa810b2ee473aabf742daf6
42,352
py
Python
src/networks/net_places365.py
sklcg/SHLight
6ac575055070fb83b9deb74e4ccb03d47a547883
[ "MIT" ]
13
2018-10-10T06:17:54.000Z
2022-01-06T02:34:50.000Z
src/networks/net_places365.py
sklcg/SHLight
6ac575055070fb83b9deb74e4ccb03d47a547883
[ "MIT" ]
11
2018-11-21T06:44:00.000Z
2021-08-08T04:22:31.000Z
src/networks/net_places365.py
sklcg/SHLight
6ac575055070fb83b9deb74e4ccb03d47a547883
[ "MIT" ]
1
2019-03-05T11:42:57.000Z
2019-03-05T11:42:57.000Z
import tensorflow as tf import numpy as np from .net_caffee2tf import C2T_Network class PretrainNetwork(C2T_Network): def __init__(self, inputs, weight = None, trainable=True): if weight != None: self.var = np.load(weight).tolist() # for key in self.var.keys(): # pr...
50.599761
116
0.56446
4a010a06c8f708bb02acca31f057c80f0784a529
1,625
py
Python
Projekt Zaliczeniowy - Okienko/Kite.py
Paarzivall/Programowanie-obiektowe-2
b658a659dbf039048173a63975de73c3b07c8b70
[ "MIT" ]
null
null
null
Projekt Zaliczeniowy - Okienko/Kite.py
Paarzivall/Programowanie-obiektowe-2
b658a659dbf039048173a63975de73c3b07c8b70
[ "MIT" ]
null
null
null
Projekt Zaliczeniowy - Okienko/Kite.py
Paarzivall/Programowanie-obiektowe-2
b658a659dbf039048173a63975de73c3b07c8b70
[ "MIT" ]
null
null
null
import math from ConvexQuadrilateral import ConvexQuadrilateral class Kite(ConvexQuadrilateral): def __init__(self, fill_colour, outline_colour): super().__init__(fill_colour, outline_colour) def take_parameters(self): self.lenght_of_side_a = input("Podaj długość pierwszej krawędzi:\t") ...
39.634146
162
0.626462
4a010a4d4d667a661064f57ddba3822f28a37c33
2,083
py
Python
lib/model/faster_rcnn/vgg16.py
sumiya-NJU/da-faster-rcnn-PyTorch
62a7286d8e40c6625f32de8d49039c7f623909bd
[ "MIT" ]
122
2018-12-18T16:43:18.000Z
2022-03-25T03:21:11.000Z
lib/model/faster_rcnn/vgg16.py
sumiya-NJU/da-faster-rcnn-PyTorch
62a7286d8e40c6625f32de8d49039c7f623909bd
[ "MIT" ]
34
2019-02-27T19:35:46.000Z
2021-12-26T06:23:40.000Z
lib/model/faster_rcnn/vgg16.py
sumiya-NJU/da-faster-rcnn-PyTorch
62a7286d8e40c6625f32de8d49039c7f623909bd
[ "MIT" ]
44
2019-02-20T08:15:24.000Z
2022-03-22T15:06:52.000Z
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future_...
33.063492
90
0.663946
4a010a7da40dd479f996ae445397f3c9b0ccf487
4,854
py
Python
test/SConsGnu/GVars/GVarDecls/sconstest-gvardecls2.py
ptomulik/scons-gnu-build
9c46908eed50679d7aaaaf472e324c97545ac837
[ "Unlicense" ]
null
null
null
test/SConsGnu/GVars/GVarDecls/sconstest-gvardecls2.py
ptomulik/scons-gnu-build
9c46908eed50679d7aaaaf472e324c97545ac837
[ "Unlicense" ]
1
2015-02-13T04:30:45.000Z
2015-02-13T04:30:45.000Z
test/SConsGnu/GVars/GVarDecls/sconstest-gvardecls2.py
ptomulik/scons-gnu-build
9c46908eed50679d7aaaaf472e324c97545ac837
[ "Unlicense" ]
null
null
null
# # Copyright (c) 2012-2014 by Pawel Tomulik # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
43.72973
90
0.600124
4a010ab8260eb832c5e67bf369eb87cd4c4f8ebe
7,709
py
Python
alex/corpustools/vctk2ufal-audio.py
cifkao/alex
9573ef5d24919b2b368b35f4dd02aa98f35f0f59
[ "Apache-2.0" ]
184
2015-02-11T04:14:41.000Z
2022-03-24T21:43:58.000Z
alex/corpustools/vctk2ufal-audio.py
cifkao/alex
9573ef5d24919b2b368b35f4dd02aa98f35f0f59
[ "Apache-2.0" ]
69
2015-01-11T04:57:22.000Z
2019-04-24T10:25:56.000Z
alex/corpustools/vctk2ufal-audio.py
cifkao/alex
9573ef5d24919b2b368b35f4dd02aa98f35f0f59
[ "Apache-2.0" ]
61
2015-03-04T10:52:13.000Z
2022-03-04T12:14:06.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # This code is mostly PEP8-compliant. See # http://www.python.org/dev/peps/pep-0008. """ This program processes a VoxForge corpus and copies all WAVs into a destination directory along with their transcriptions. In each subdirectory of the given directory, it looks for a...
34.110619
147
0.605785
4a010b6775d25f4ead28daed37450bd3214b7fb9
8,347
py
Python
tests/unit/python/foglamp/common/test_statistics.py
ashwinscale/FogLAMP
dac6f286d31978b6ce00303df8398ea5b2031d79
[ "Apache-2.0" ]
null
null
null
tests/unit/python/foglamp/common/test_statistics.py
ashwinscale/FogLAMP
dac6f286d31978b6ce00303df8398ea5b2031d79
[ "Apache-2.0" ]
null
null
null
tests/unit/python/foglamp/common/test_statistics.py
ashwinscale/FogLAMP
dac6f286d31978b6ce00303df8398ea5b2031d79
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END import asyncio import json from unittest.mock import MagicMock, patch import pytest from foglamp.common.statistics import Statistics, _logger from foglamp.common.storage_client.storage_client import StorageClient __author_...
47.158192
112
0.661555
4a010ba74b79d37fe5e4f3cfa62eac911788054f
8,048
py
Python
orbitdbapi/asyncDB.py
phillmac/py-orbit-db-http-client-dev
5f806572cf78feda7faa43ce9025415518183921
[ "MIT" ]
1
2019-06-24T08:35:41.000Z
2019-06-24T08:35:41.000Z
orbitdbapi/asyncDB.py
phillmac/py-orbit-db-http-client-dev
5f806572cf78feda7faa43ce9025415518183921
[ "MIT" ]
null
null
null
orbitdbapi/asyncDB.py
phillmac/py-orbit-db-http-client-dev
5f806572cf78feda7faa43ce9025415518183921
[ "MIT" ]
1
2019-06-24T08:38:51.000Z
2019-06-24T08:38:51.000Z
import json import logging from collections.abc import Hashable, Iterable from copy import deepcopy from urllib.parse import quote as urlquote from sseclient import SSEClient class DB (): def __init__(self, client, params, **kwargs): self.__cache = {} self.__client = client self.__params ...
33.67364
110
0.619657
4a010beb9643f85e85e8fadb26a41c1fba09518d
2,194
py
Python
tooz/drivers/zake.py
mail2nsrajesh/tooz
e6274bdd5b36f7b114e255c258659223ba921773
[ "Apache-2.0" ]
null
null
null
tooz/drivers/zake.py
mail2nsrajesh/tooz
e6274bdd5b36f7b114e255c258659223ba921773
[ "Apache-2.0" ]
null
null
null
tooz/drivers/zake.py
mail2nsrajesh/tooz
e6274bdd5b36f7b114e255c258659223ba921773
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013-2014 Mirantis Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.186441
79
0.726983
4a010c52874aa5d6f3b9031e884a03ed455fe9a8
1,604
py
Python
SR_attack/data/base_dataset.py
Hwihuni/Deep-Model-Watermarking
73ea2286ace0aac3d55f6056da38ea2bc38ed00d
[ "MIT" ]
32
2021-03-29T08:34:31.000Z
2022-03-13T07:41:42.000Z
SR_attack/data/base_dataset.py
Hwihuni/Deep-Model-Watermarking
73ea2286ace0aac3d55f6056da38ea2bc38ed00d
[ "MIT" ]
4
2021-09-29T12:13:34.000Z
2022-03-29T03:41:33.000Z
SR_attack/data/base_dataset.py
Hwihuni/Deep-Model-Watermarking
73ea2286ace0aac3d55f6056da38ea2bc38ed00d
[ "MIT" ]
5
2021-06-21T08:01:29.000Z
2022-01-27T05:42:45.000Z
import torch.utils.data as data from PIL import Image import torchvision.transforms as transforms class BaseDataset(data.Dataset): def __init__(self): super(BaseDataset, self).__init__() def name(self): return 'BaseDataset' # def initialize(self, opt): # pass def get_transform(op...
34.869565
69
0.658354
4a010c5bc4d794027666014e28dc152cfe213361
2,114
py
Python
memote/experimental/tabular.py
matthiaskoenig/memote
7c14cd304523dda83eaf4835ee007243e8673f85
[ "Apache-2.0" ]
null
null
null
memote/experimental/tabular.py
matthiaskoenig/memote
7c14cd304523dda83eaf4835ee007243e8673f85
[ "Apache-2.0" ]
null
null
null
memote/experimental/tabular.py
matthiaskoenig/memote
7c14cd304523dda83eaf4835ee007243e8673f85
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017 Novo Nordisk Foundation Center for Biosustainability, # Technical University of Denmark. # # 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...
34.655738
94
0.690634
4a010d5eb9728f306b5bd98d5980124ddda29790
3,728
py
Python
staramr/blast/results/BlastHitPartitions.py
JeffreyThiessen/staramr
8550f231b7dc528b91a2c3665a5f99f0fa3d350b
[ "Apache-2.0" ]
53
2018-03-14T01:22:40.000Z
2022-03-24T17:09:02.000Z
staramr/blast/results/BlastHitPartitions.py
JeffreyThiessen/staramr
8550f231b7dc528b91a2c3665a5f99f0fa3d350b
[ "Apache-2.0" ]
114
2018-05-02T18:49:13.000Z
2022-03-21T16:27:34.000Z
staramr/blast/results/BlastHitPartitions.py
JeffreyThiessen/staramr
8550f231b7dc528b91a2c3665a5f99f0fa3d350b
[ "Apache-2.0" ]
13
2018-11-14T20:12:35.000Z
2022-03-03T04:06:51.000Z
import logging from collections import OrderedDict from typing import Any from typing import Dict from typing import List from typing import Optional from typing import Tuple logger = logging.getLogger('BlastHits') from staramr.blast.results.AMRHitHSP import AMRHitHSP from staramr.exceptions.InvalidPositionException ...
36.194175
143
0.643777
4a010ee84039cefdd597f90a1344ae71f039b46e
5,293
py
Python
src/domain_park/cli.py
nhairs/domain-park
b43f61e4f4cb1c5f69676e7297174e4c2ca184e0
[ "MIT" ]
3
2020-04-13T07:19:44.000Z
2021-03-16T10:27:54.000Z
src/domain_park/cli.py
nhairs/domain-park
b43f61e4f4cb1c5f69676e7297174e4c2ca184e0
[ "MIT" ]
null
null
null
src/domain_park/cli.py
nhairs/domain-park
b43f61e4f4cb1c5f69676e7297174e4c2ca184e0
[ "MIT" ]
2
2020-04-13T08:24:47.000Z
2021-01-20T07:24:49.000Z
### IMPORTS ### ============================================================================ ## Standard Library import argparse import logging import sys from typing import List ## Installed import netifaces # type: ignore import nserver ## Application from . import _version from .server import server as nserver_se...
29.903955
292
0.555451
4a010f015009c64ec6ffe7b5ef0b8d8a5fb3a367
17,638
py
Python
im_caption_full.py
ukyh/unsupervised_captioning_fast
97e50c871a71c3133962b2a4d3822bf186ca9310
[ "MIT" ]
229
2019-03-08T12:55:45.000Z
2022-03-30T06:37:37.000Z
im_caption_full.py
ukyh/unsupervised_captioning_fast
97e50c871a71c3133962b2a4d3822bf186ca9310
[ "MIT" ]
38
2019-04-08T08:50:17.000Z
2021-11-04T07:53:10.000Z
im_caption_full.py
ukyh/unsupervised_captioning_fast
97e50c871a71c3133962b2a4d3822bf186ca9310
[ "MIT" ]
57
2019-03-14T11:14:04.000Z
2022-01-16T17:17:14.000Z
"""Train the full model. python im_caption_full.py --multi_gpu --batch_size 512 --save_checkpoint_steps\ 1000 --gen_lr 0.001 --dis_lr 0.001 """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import functools import os import sys import numpy as np impo...
37.368644
95
0.719753
4a010f855699e817012c4878f2ddbab0d3ba09ae
1,063
py
Python
tkaligner/load_paras.py
ffreemt/tkaligner-bumblebee
ccc218c525508c13a16bd4e40fa039cf234bebf1
[ "MIT" ]
null
null
null
tkaligner/load_paras.py
ffreemt/tkaligner-bumblebee
ccc218c525508c13a16bd4e40fa039cf234bebf1
[ "MIT" ]
null
null
null
tkaligner/load_paras.py
ffreemt/tkaligner-bumblebee
ccc218c525508c13a16bd4e40fa039cf234bebf1
[ "MIT" ]
null
null
null
""" load_paras """ import os from typing import List from pathlib import Path import chardet import logzero from logzero import logger _ = os.environ.get("ALIGNER_DEBUG") if _ is not None and (_ == "1" or _.lower() == "true"): logzero.loglevel(10) else: logzero.loglevel(20) def load_paras(filepath: str) ->...
24.72093
78
0.593603
4a010fb9cf01590333e8cfc98273b4543440e7c9
11,739
py
Python
lib/errors.py
apyrgio/snf-ganeti
c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7
[ "BSD-2-Clause" ]
null
null
null
lib/errors.py
apyrgio/snf-ganeti
c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7
[ "BSD-2-Clause" ]
null
null
null
lib/errors.py
apyrgio/snf-ganeti
c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7
[ "BSD-2-Clause" ]
null
null
null
# # # Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright no...
22.972603
79
0.734304
4a0110adfe7a58493c093f09254a0da46d4710b4
14,203
py
Python
pymc3/tests/test_examples.py
AmitKus/pymc3
5e305543a13d248cb8cd67522527c586bde45165
[ "Apache-2.0" ]
null
null
null
pymc3/tests/test_examples.py
AmitKus/pymc3
5e305543a13d248cb8cd67522527c586bde45165
[ "Apache-2.0" ]
null
null
null
pymc3/tests/test_examples.py
AmitKus/pymc3
5e305543a13d248cb8cd67522527c586bde45165
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The PyMC Developers # # 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 ag...
37.773936
100
0.588256
4a0110d516daaadeace250c442554779e91bce79
2,616
py
Python
src/poetry/console/commands/export.py
mmacchia/poetry
7c53db9680d021bac99cc366a3bbc88ebbffdf0f
[ "MIT" ]
null
null
null
src/poetry/console/commands/export.py
mmacchia/poetry
7c53db9680d021bac99cc366a3bbc88ebbffdf0f
[ "MIT" ]
null
null
null
src/poetry/console/commands/export.py
mmacchia/poetry
7c53db9680d021bac99cc366a3bbc88ebbffdf0f
[ "MIT" ]
null
null
null
from cleo.helpers import option from poetry.console.commands.command import Command from poetry.utils.exporter import Exporter class ExportCommand(Command): name = "export" description = "Exports the lock file to alternative formats." options = [ option( "format", "f", ...
32.7
88
0.545107
4a011196b92592cacd22c30b35c863cae0dc7f74
2,912
py
Python
djangopypi2/apps/pypi_frontend/distutils_request.py
peopledoc/djangopypi2
1356963cd103947058b951476ba8c32d108f19f6
[ "BSD-3-Clause" ]
null
null
null
djangopypi2/apps/pypi_frontend/distutils_request.py
peopledoc/djangopypi2
1356963cd103947058b951476ba8c32d108f19f6
[ "BSD-3-Clause" ]
null
null
null
djangopypi2/apps/pypi_frontend/distutils_request.py
peopledoc/djangopypi2
1356963cd103947058b951476ba8c32d108f19f6
[ "BSD-3-Clause" ]
null
null
null
from logging import getLogger from django.http import QueryDict from django.http import HttpResponseNotAllowed from django.utils.datastructures import MultiValueDict from django.core.files.uploadedfile import TemporaryUploadedFile from .distutils_views import ACTION_VIEWS log = getLogger(__name__) def _get_distutils_...
32.355556
80
0.607143
4a0111b8569ae9ff67260686003fd5d1f5387fa9
16,753
py
Python
haystack/nodes/preprocessor/preprocessor.py
ArzelaAscoIi/haystack
be8f50c9e3de4e264b3f345f5f4b9c9ec518ed08
[ "Apache-2.0" ]
1
2022-03-06T02:13:15.000Z
2022-03-06T02:13:15.000Z
haystack/nodes/preprocessor/preprocessor.py
ArzelaAscoIi/haystack
be8f50c9e3de4e264b3f345f5f4b9c9ec518ed08
[ "Apache-2.0" ]
null
null
null
haystack/nodes/preprocessor/preprocessor.py
ArzelaAscoIi/haystack
be8f50c9e3de4e264b3f345f5f4b9c9ec518ed08
[ "Apache-2.0" ]
1
2022-03-23T18:17:02.000Z
2022-03-23T18:17:02.000Z
import logging import re from copy import deepcopy from functools import partial, reduce from itertools import chain from typing import List, Optional, Generator, Set, Union import nltk from more_itertools import windowed from tqdm import tqdm from haystack.nodes.preprocessor import BasePreProcessor logger = loggin...
42.092965
150
0.60222
4a0111ce8fff959e5cae7362962697af3915df96
22,269
py
Python
robotframework-ls/src/robotframework_ls/server_manager.py
DetachHead/robotframework-lsp
a82438f45b75f3afbe3f80a970b75ed9065f96a7
[ "ECL-2.0", "Apache-2.0" ]
92
2020-01-22T22:15:29.000Z
2022-03-31T05:19:16.000Z
robotframework-ls/src/robotframework_ls/server_manager.py
DetachHead/robotframework-lsp
a82438f45b75f3afbe3f80a970b75ed9065f96a7
[ "ECL-2.0", "Apache-2.0" ]
604
2020-01-25T17:13:27.000Z
2022-03-31T18:58:24.000Z
robotframework-ls/src/robotframework_ls/server_manager.py
DetachHead/robotframework-lsp
a82438f45b75f3afbe3f80a970b75ed9065f96a7
[ "ECL-2.0", "Apache-2.0" ]
39
2020-02-06T00:38:06.000Z
2022-03-15T06:14:19.000Z
from robocorp_ls_core.pluginmanager import PluginManager import threading from robocorp_ls_core.basic import ( log_and_silence_errors, kill_process_and_subprocesses, is_process_alive, ) import sys import weakref import os from robocorp_ls_core.robotframework_log import get_logger from typing import Any, Dic...
37.115
133
0.598186
4a0111ecea21482cdf6d08e1dd80bf881fd61b2e
792
py
Python
MeClass8/my_devices.py
carrascodc/pyneta
857c0279d6c567d8855fedde2883603d7c70b50b
[ "Apache-2.0" ]
null
null
null
MeClass8/my_devices.py
carrascodc/pyneta
857c0279d6c567d8855fedde2883603d7c70b50b
[ "Apache-2.0" ]
null
null
null
MeClass8/my_devices.py
carrascodc/pyneta
857c0279d6c567d8855fedde2883603d7c70b50b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from getpass import getpass from pprint import pprint from napalm import get_network_driver # Supress SSL Certificate Warnings import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) username = 'p...
21.405405
71
0.739899
4a01123db38b57de73bd800a3e451bf559a5da50
14,203
py
Python
autoreject/tests/test_autoreject.py
rob-luke/autoreject
b73847949db64740680e3d325b824ed9aa05a8cc
[ "BSD-3-Clause" ]
null
null
null
autoreject/tests/test_autoreject.py
rob-luke/autoreject
b73847949db64740680e3d325b824ed9aa05a8cc
[ "BSD-3-Clause" ]
null
null
null
autoreject/tests/test_autoreject.py
rob-luke/autoreject
b73847949db64740680e3d325b824ed9aa05a8cc
[ "BSD-3-Clause" ]
null
null
null
"""Test autoreject.""" # Author: Mainak Jas <mainak.jas@telecom-paristech.fr> # Denis A. Engemann <denis.engemann@gmail.com> # Stefan Appelhoff <stefan.appelhoff@mailbox.org> # # License: BSD (3-clause) import os.path as op import pickle import platform import os import numpy as np from numpy.testing ...
40.349432
79
0.643737
4a0113f5db097f501252b9c95d4ce5449ac20f00
250
py
Python
flask_firebase_admin/__init__.py
andrewrosss/flask-firebase-admin
c131f48fd8a2d20b9f26602d7d0a15dc7bc4f1ae
[ "MIT" ]
21
2020-10-22T08:48:33.000Z
2022-03-23T01:33:24.000Z
flask_firebase_admin/__init__.py
andrewrosss/flask-firebase-admin
c131f48fd8a2d20b9f26602d7d0a15dc7bc4f1ae
[ "MIT" ]
6
2021-03-11T18:10:28.000Z
2021-09-10T01:00:24.000Z
flask_firebase_admin/__init__.py
andrewrosss/flask-firebase-admin
c131f48fd8a2d20b9f26602d7d0a15dc7bc4f1ae
[ "MIT" ]
3
2021-03-03T11:58:45.000Z
2021-05-16T19:00:44.000Z
from . import flask_firebase_admin from . import status_codes from .__version__ import __version__ from .flask_firebase_admin import FirebaseAdmin __all__ = ( "flask_firebase_admin", "status_codes", "__version__", "FirebaseAdmin", )
20.833333
47
0.76
4a0114228706b4a8cd29ed5bae820fac13ff542c
13,442
py
Python
tests/conftest.py
allisonmorgan/Dallinger
f171e28c352854a3c6ed6b21f25362cd933b17dc
[ "MIT" ]
1
2019-08-01T16:15:44.000Z
2019-08-01T16:15:44.000Z
tests/conftest.py
allisonmorgan/Dallinger
f171e28c352854a3c6ed6b21f25362cd933b17dc
[ "MIT" ]
null
null
null
tests/conftest.py
allisonmorgan/Dallinger
f171e28c352854a3c6ed6b21f25362cd933b17dc
[ "MIT" ]
null
null
null
import mock import os import pytest import shutil import sys import tempfile from dallinger import information from dallinger import models from dallinger import networks from dallinger import nodes @pytest.fixture(scope="session", autouse=True) def subprocess_coverage(): # Set env var to trigger starting coverag...
29.47807
88
0.610549
4a0115d19fb03054d244e10d15438f513856654f
129
py
Python
contractpy/__init__.py
KumarManoj-S/pycontract
5682741af0f98ac40819bd7c6ff7b48d0e9abf6b
[ "MIT" ]
8
2020-03-23T12:50:08.000Z
2021-04-05T02:27:34.000Z
contractpy/__init__.py
KumarManoj-S/pycontract
5682741af0f98ac40819bd7c6ff7b48d0e9abf6b
[ "MIT" ]
1
2020-07-26T16:20:37.000Z
2020-07-27T06:19:33.000Z
contractpy/__init__.py
KumarManoj-S/pycontract
5682741af0f98ac40819bd7c6ff7b48d0e9abf6b
[ "MIT" ]
2
2020-03-24T15:39:20.000Z
2020-07-26T16:49:34.000Z
from contractpy.main.contract import Contract from contractpy.main.types import Types __all__ = [ 'Contract', 'Types' ]
16.125
45
0.728682
4a01166282e1786694d14980e2c4ee5a623349e3
224
py
Python
Inicio/001.py
daisyaragao/Python
9f31a6e8b423747d1c7392e4e8f481866987dbca
[ "MIT" ]
null
null
null
Inicio/001.py
daisyaragao/Python
9f31a6e8b423747d1c7392e4e8f481866987dbca
[ "MIT" ]
null
null
null
Inicio/001.py
daisyaragao/Python
9f31a6e8b423747d1c7392e4e8f481866987dbca
[ "MIT" ]
null
null
null
# Faça um programa que leia um número inteiro e mostre na tela o seu antecessor e o seu sucessor n = int(input('Digite um número: ')) print('O seu antecessor é: {} '.format(n-1)) print('O seu sucessor é: {} '.format(n+1))
32
96
0.683036
4a011718872fdc3c805b4edc118f9b4d0d5a816d
8,633
py
Python
jina/parsers/__init__.py
qwe123coder/jina
43215cd044c47d6b02111cd249499737d5d0a4e3
[ "Apache-2.0" ]
1
2021-09-16T03:54:34.000Z
2021-09-16T03:54:34.000Z
jina/parsers/__init__.py
AnudeepGunukula/jina
a4183a3b57d194c6f4b92ec48b485ebedd37b88d
[ "Apache-2.0" ]
null
null
null
jina/parsers/__init__.py
AnudeepGunukula/jina
a4183a3b57d194c6f4b92ec48b485ebedd37b88d
[ "Apache-2.0" ]
null
null
null
import argparse from jina.parsers.client import mixin_comm_protocol_parser from .helper import _SHOW_ALL_ARGS from .peapods.pod import mixin_k8s_pod_parser def set_pea_parser(parser=None): """Set the parser for the Pea :param parser: an optional existing parser to build upon :return: the parser """ ...
28.029221
105
0.645778
4a0117c1de86897104eeb0f1bfebed27df899a5c
14,434
py
Python
src/werkzeug/middleware/lint.py
omerholz/werkzeug
5f3994f155055ed8b4231df8ac41dd38849d90f8
[ "BSD-3-Clause" ]
null
null
null
src/werkzeug/middleware/lint.py
omerholz/werkzeug
5f3994f155055ed8b4231df8ac41dd38849d90f8
[ "BSD-3-Clause" ]
null
null
null
src/werkzeug/middleware/lint.py
omerholz/werkzeug
5f3994f155055ed8b4231df8ac41dd38849d90f8
[ "BSD-3-Clause" ]
null
null
null
""" WSGI Protocol Linter ==================== This module provides a middleware that performs sanity checks on the behavior of the WSGI server and application. It checks that the :pep:`3333` WSGI spec is properly implemented. It also warns on some common HTTP errors such as non-empty responses for 304 status codes. ....
33.412037
88
0.522793
4a011810b1aa15948bd07ab362906562c0540151
662
py
Python
appfl/protos/utils.py
markxiao/APPFL
2940f01695b84d8239368e5d1fc3133c7f7a05ae
[ "MIT" ]
null
null
null
appfl/protos/utils.py
markxiao/APPFL
2940f01695b84d8239368e5d1fc3133c7f7a05ae
[ "MIT" ]
null
null
null
appfl/protos/utils.py
markxiao/APPFL
2940f01695b84d8239368e5d1fc3133c7f7a05ae
[ "MIT" ]
null
null
null
import numpy as np from .federated_learning_pb2 import DataBuffer from .federated_learning_pb2 import TensorRecord def construct_tensor_record(name, nparray): return TensorRecord(name=name, data_shape=list(nparray.shape), data_bytes=nparray.tobytes(order='C')) def proto_to_databuffer(proto, max_size=(2*1024*1024...
36.777778
105
0.767372
4a011869967d951f9e254f91f4091a654b76ad82
3,225
py
Python
proxy_osint_api/swagger_server/models/query_object.py
CoNik/EuROCE
12435d47fe2dfcf7834b8fdd5f4f37a4df16037d
[ "Apache-2.0" ]
null
null
null
proxy_osint_api/swagger_server/models/query_object.py
CoNik/EuROCE
12435d47fe2dfcf7834b8fdd5f4f37a4df16037d
[ "Apache-2.0" ]
1
2020-07-20T11:07:50.000Z
2020-07-20T11:07:50.000Z
proxy_osint_api/swagger_server/models/query_object.py
CoNik/EuROCE
12435d47fe2dfcf7834b8fdd5f4f37a4df16037d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util class QueryObject(Model): """NOTE: This class is auto generated by the swagger...
22.552448
100
0.549147
4a0119474d44ced4f83467f7f80b3ac44cc770be
624
py
Python
backend/api/migrations/0003_liftermodel_competition.py
ChristchurchCityWeightlifting/lifter-api
a82b79c75106e7f4f8ea4b4e3e12d727213445e3
[ "MIT" ]
null
null
null
backend/api/migrations/0003_liftermodel_competition.py
ChristchurchCityWeightlifting/lifter-api
a82b79c75106e7f4f8ea4b4e3e12d727213445e3
[ "MIT" ]
5
2022-03-07T08:30:47.000Z
2022-03-22T09:15:52.000Z
backend/api/migrations/0003_liftermodel_competition.py
ChristchurchCityWeightlifting/lifter-api
a82b79c75106e7f4f8ea4b4e3e12d727213445e3
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-05 05:47 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("api", "0002_rename_event_name_competitionmodel_competition_name"), ] operations = [ migrations.AddField( ...
24.96
76
0.597756
4a0119fcd2d4d6ec3d49e57930f2c78ff5cfa341
5,417
py
Python
src/data.py
mneedham/article-1
5523647c74fc6bb27a28e359dcf5ff3d9252a72f
[ "MIT" ]
1
2021-12-10T18:34:40.000Z
2021-12-10T18:34:40.000Z
src/data.py
mneedham/article-1
5523647c74fc6bb27a28e359dcf5ff3d9252a72f
[ "MIT" ]
null
null
null
src/data.py
mneedham/article-1
5523647c74fc6bb27a28e359dcf5ff3d9252a72f
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import os.path import random import json from neo4j.v1 import GraphDatabase, Driver # After fighting with gcloud, I dumped this here. Ideally, package elsewhere settings = { "hosted": { "neo4j_url": "bolt://b2355e7e.databases.neo4j.io", "neo4j_user": "readonly", "neo4...
21.842742
99
0.606609
4a011a3d080ab0aa177d2fcfa0c65dd3c8384d4a
346
py
Python
remo/api/__init__.py
glogiotatidis/remo
1c4f55c63c8d03cbee776b60af042b8068d9f297
[ "BSD-3-Clause" ]
null
null
null
remo/api/__init__.py
glogiotatidis/remo
1c4f55c63c8d03cbee776b60af042b8068d9f297
[ "BSD-3-Clause" ]
null
null
null
remo/api/__init__.py
glogiotatidis/remo
1c4f55c63c8d03cbee776b60af042b8068d9f297
[ "BSD-3-Clause" ]
null
null
null
from tastypie.cache import NoCache class HttpCache(NoCache): """Cache class that sets cache-control to response headers.""" def __init__(self, control={'no_cache': True}, *args, **kwargs): super(HttpCache, self).__init__(*args, **kwargs) self.control = control def cache_control(self): ...
26.615385
68
0.67341
4a011a41e3a864f9ed590e7f04c3ecd0d603541e
2,074
py
Python
commands/config.py
Robertoskb/Betozinho
5b8e2413c66452bb50d358178f77b3bb17726079
[ "MIT" ]
null
null
null
commands/config.py
Robertoskb/Betozinho
5b8e2413c66452bb50d358178f77b3bb17726079
[ "MIT" ]
null
null
null
commands/config.py
Robertoskb/Betozinho
5b8e2413c66452bb50d358178f77b3bb17726079
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from commands.utils.serversettings import ServerSettings class Config(commands.Cog): """Configurações""" def __init__(self, bot): self.bot = bot @commands.guild_only() @commands.command(name='talks', help='Ativar ou Desativar minhas respostas', ...
34.566667
105
0.635487
4a011a4bff8f0b56193d9207112c797d1214987f
1,421
py
Python
examples/plot_iris_comparison.py
balins/fuzzy-tree
8dde93cdd32c2c3643ce459fdd5d29b8a0904714
[ "BSD-3-Clause" ]
6
2021-06-06T13:32:48.000Z
2021-10-13T14:15:04.000Z
examples/plot_iris_comparison.py
balins/fuzzy-tree
8dde93cdd32c2c3643ce459fdd5d29b8a0904714
[ "BSD-3-Clause" ]
1
2022-01-23T15:21:06.000Z
2022-01-23T15:21:06.000Z
examples/plot_iris_comparison.py
balins/fuzzytree
8dde93cdd32c2c3643ce459fdd5d29b8a0904714
[ "BSD-3-Clause" ]
null
null
null
""" ========================================================= Comparison of crisp and fuzzy classifiers on iris dataset ========================================================= A comparison plot for :class:`FuzzyDecisionTreeClassifier` and sklearn's :class:`DecisionTreeClassifier` on iris dataset (only two features w...
31.577778
89
0.682618
4a011b72423b26c942c86af1d3e2f6e2dc58d347
1,515
py
Python
layer/first_layer.py
socofels/neural_style_transfer
c4349f8266256cc9922df3d0837a1aa786f84712
[ "MIT" ]
null
null
null
layer/first_layer.py
socofels/neural_style_transfer
c4349f8266256cc9922df3d0837a1aa786f84712
[ "MIT" ]
null
null
null
layer/first_layer.py
socofels/neural_style_transfer
c4349f8266256cc9922df3d0837a1aa786f84712
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.layers import Layer from configs.config import CONFIG class MyLayer(Layer): def __init__(self,**kwargs): # self.output_dim = output_dim super(MyLayer, self).__init__(**kwargs) def build(self, input_shape): # 为该层创建一个可训练的权重 self.ke...
32.934783
107
0.573597
4a011c4292b7abf596d1f060653be1252d5fc91e
1,793
py
Python
cheritest/trunk/tests/cp2/test_cp2_getincoffset.py
tupipa/beri
cef1b41d52592cfa7454ddf59f9f2994e447cd66
[ "Apache-2.0" ]
36
2015-05-29T16:47:19.000Z
2022-02-08T21:16:26.000Z
cheritest/trunk/tests/cp2/test_cp2_getincoffset.py
tupipa/beri
cef1b41d52592cfa7454ddf59f9f2994e447cd66
[ "Apache-2.0" ]
1
2015-10-14T13:05:21.000Z
2015-10-19T20:34:03.000Z
cheritest/trunk/tests/cp2/test_cp2_getincoffset.py
tupipa/beri
cef1b41d52592cfa7454ddf59f9f2994e447cd66
[ "Apache-2.0" ]
15
2015-06-11T07:10:58.000Z
2021-06-18T05:14:54.000Z
#- # Copyright (c) 2011 Robert N. M. Watson # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 # ("CTSRD"), as part of the DARPA CRASH research programme. # # @BERI_LICENSE_HEADER_START@ # # License...
39.844444
106
0.761294