hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
e8f0bd968852ec39d98baae62839064020730f7c
4,645
py
Python
core/hooks/ThreeByThreeHook.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
null
null
null
core/hooks/ThreeByThreeHook.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
null
null
null
core/hooks/ThreeByThreeHook.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from core.argo.core.argoLogging import get_logger from datasets.Dataset import TRAIN tf_logging = get_logger() from core.argo.core.hooks.EveryNEpochsTFModelHook import EveryNEpochsTFModelHook SUMMARIES_KEY = "3by3" class ThreeByThreeHook(EveryNEpochsTFModelHook): def...
38.38843
135
0.642196
e8f0e0193df2b9d7414d4d05903fdd8dcdeddc5f
5,704
py
Python
fairseq/tasks/speech_to_text_wav2vec.py
dqqcasia/mosst
0a5206b3ff88c33583ddf422b364134be2e95da6
[ "MIT" ]
null
null
null
fairseq/tasks/speech_to_text_wav2vec.py
dqqcasia/mosst
0a5206b3ff88c33583ddf422b364134be2e95da6
[ "MIT" ]
null
null
null
fairseq/tasks/speech_to_text_wav2vec.py
dqqcasia/mosst
0a5206b3ff88c33583ddf422b364134be2e95da6
[ "MIT" ]
null
null
null
# 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. import logging import os.path as op from argparse import Namespace from fairseq.data import Dictionary, encoders from fairseq.data.audio.spee...
33.751479
85
0.63885
e8f1277490e4e16d3cc93fdb40e0ed2f7b5bac57
790
py
Python
solutions/daily-temperatures.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
null
null
null
solutions/daily-temperatures.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
1
2022-02-22T15:42:54.000Z
2022-02-25T00:10:04.000Z
solutions/daily-temperatures.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
null
null
null
# Leetcode 739. Daily Temperatures # # Link: https://leetcode.com/problems/daily-temperatures/ # Difficulty: Easy # Solution using MinStack (monotonic decreasing stack) # Complexity: # O(N) time | where N is the length of the input list # O(M) space | where M is the number of longest consecutive decreasing sequenc...
32.916667
81
0.659494
e8f12d9f4fe5b2f03f1a8c281f50e40a8c1073ed
586
py
Python
vespene/views/service_login.py
webknjaz/vespene
32e82ce37db33a106c0c58d50762f24a7c90bc2f
[ "Apache-2.0" ]
1
2019-01-26T12:05:45.000Z
2019-01-26T12:05:45.000Z
vespene/views/service_login.py
webknjaz/vespene
32e82ce37db33a106c0c58d50762f24a7c90bc2f
[ "Apache-2.0" ]
92
2019-06-03T18:52:41.000Z
2021-04-12T12:24:31.000Z
vespene/views/service_login.py
webknjaz/vespene
32e82ce37db33a106c0c58d50762f24a7c90bc2f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018, Michael DeHaan LLC # License: Apache License Version 2.0 + Commons Clause from vespene.views import forms from vespene.models.service_login import ServiceLogin from vespene.views import BaseView class ServiceLoginView(BaseView): model = ServiceLogin form = forms.ServiceLoginForm view_...
26.636364
55
0.745734
e8f13188495c050f692e5ef01bd3e78d78652e01
1,085
py
Python
APDIncidentReports/apd_logging.py
johngriebel/APDIncidentReports
491b91bcc7eef9a32bda05ad3236b14748ba3b50
[ "MIT" ]
null
null
null
APDIncidentReports/apd_logging.py
johngriebel/APDIncidentReports
491b91bcc7eef9a32bda05ad3236b14748ba3b50
[ "MIT" ]
16
2019-05-23T03:25:01.000Z
2022-02-10T08:54:24.000Z
APDIncidentReports/apd_logging.py
johngriebel/APDIncidentReports
491b91bcc7eef9a32bda05ad3236b14748ba3b50
[ "MIT" ]
null
null
null
import os from APDIncidentReports import BASE_DIR BASE_LOG_DIR = os.path.join(BASE_DIR, "logs/") def check_and_make_dir(sub_dir): full_path = os.path.join(BASE_LOG_DIR, sub_dir) if not os.path.isdir(full_path): os.makedirs(full_path) return full_path handlers = {} loggers = {} for app in ["cas...
26.463415
90
0.567742
e8f15a630f18bba036f85a56f51f5cf08931cb67
1,135
py
Python
superset/migrations/versions/e3970889f38e_.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
108
2018-01-22T11:09:59.000Z
2021-01-15T10:53:04.000Z
superset/migrations/versions/e3970889f38e_.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
112
2018-01-25T22:57:21.000Z
2019-08-22T20:08:48.000Z
superset/migrations/versions/e3970889f38e_.py
zhwXF/Superset
14c3488c79f8f3cdbd1123e8f7a92f8746c2db09
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
24
2018-01-19T22:54:39.000Z
2020-11-12T13:04:25.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
29.102564
62
0.757709
e8f1707e2819b73fc65dd84c1932ac309a5e74ea
34,784
py
Python
common/middleware/slo.py
escudocloud/encswift_server
90a5a999c06b40da89d5f785795f80bd9d990640
[ "Apache-2.0" ]
null
null
null
common/middleware/slo.py
escudocloud/encswift_server
90a5a999c06b40da89d5f785795f80bd9d990640
[ "Apache-2.0" ]
null
null
null
common/middleware/slo.py
escudocloud/encswift_server
90a5a999c06b40da89d5f785795f80bd9d990640
[ "Apache-2.0" ]
1
2016-09-27T09:08:24.000Z
2016-09-27T09:08:24.000Z
# Copyright (c) 2013 OpenStack Foundation # # 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 ...
42.784748
79
0.620601
e8f175a9ddc15fb240ea86d452aec29c1f7c9e9d
8,777
py
Python
SSTCN-for-SLR/SSTCN_Pose_model.py
Sun1992/T-Pose-model-for-SLR
301087fd14f1c36c6b922c075269aa398120defa
[ "CC0-1.0" ]
9
2021-03-24T05:10:18.000Z
2022-01-28T18:00:48.000Z
SSTCN-for-SLR/SSTCN_Pose_model.py
Sun1992/T-Pose-model-for-SLR
301087fd14f1c36c6b922c075269aa398120defa
[ "CC0-1.0" ]
null
null
null
SSTCN-for-SLR/SSTCN_Pose_model.py
Sun1992/T-Pose-model-for-SLR
301087fd14f1c36c6b922c075269aa398120defa
[ "CC0-1.0" ]
1
2021-06-09T03:28:22.000Z
2021-06-09T03:28:22.000Z
# written by Bin Sun # email: sun.bi@northeastern.edu import math import torch import torch.nn as nn from collections import OrderedDict import torch.nn.functional as F # groups == joints_number def channel_shuffle(x, groups): batchsize, num_channels, height, width = x.data.size() channels_per_group = num_cha...
34.01938
114
0.60123
e8f182b822404d4bd81595ceb994b4e0a0ed9fce
7,905
py
Python
IMLearn/learners/gaussian_estimators.py
Michaliv/IML.HUJI
ff1bd564cc0575dde6da581c810e847c9cd20f27
[ "MIT" ]
null
null
null
IMLearn/learners/gaussian_estimators.py
Michaliv/IML.HUJI
ff1bd564cc0575dde6da581c810e847c9cd20f27
[ "MIT" ]
null
null
null
IMLearn/learners/gaussian_estimators.py
Michaliv/IML.HUJI
ff1bd564cc0575dde6da581c810e847c9cd20f27
[ "MIT" ]
null
null
null
from __future__ import annotations import math import numpy as np from numpy.linalg import inv, det, slogdet class UnivariateGaussian: """ Class for univariate Gaussian Distribution Estimator """ def __init__(self, biased_var: bool = False) -> UnivariateGaussian: """ Estimator for un...
32.9375
96
0.569639
e8f1b15a7621806f91b8966b100463bcc3836890
1,830
py
Python
extensions/iocompython/tests/test_device.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
1
2020-04-28T23:25:50.000Z
2020-04-28T23:25:50.000Z
extensions/iocompython/tests/test_device.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
11
2020-01-30T16:27:24.000Z
2020-08-09T06:25:06.000Z
extensions/iocompython/tests/test_device.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
null
null
null
# Python device with configuration transfer from iocompython import Root, MemoryBlock, Connection, Signal, json2bin import ioterminal import time def main(): device_name = 'mydevice' device_nr = 3 full_device_name = device_name + str(device_nr) root = Root(device_name, device_nr=device_nr, network_na...
32.105263
117
0.646448
e8f1c240711d8e04a35bb7689d16fee5a9b85ef7
1,508
py
Python
MyLibrary.py
peternewman22/MyLibrary
edd584244ddc4675947f5c89f05e0dfc88145d20
[ "MIT" ]
null
null
null
MyLibrary.py
peternewman22/MyLibrary
edd584244ddc4675947f5c89f05e0dfc88145d20
[ "MIT" ]
null
null
null
MyLibrary.py
peternewman22/MyLibrary
edd584244ddc4675947f5c89f05e0dfc88145d20
[ "MIT" ]
null
null
null
from decouple import config import csv from datetime import datetime import logging from Gui import Gui import PySimpleGUI as sg # logging.basicConfig(filename = 'mylibrary.log', filemode = 'w', level=logging.DEBUG, format='%(asctime)s - %(message)s') class MyLibrary: def __init__(self, debugOn): self.deb...
41.888889
180
0.636605
e8f1ddfd052217864924c1aedc1d7b0a72c68692
7,517
py
Python
src/python/tests/appengine/libs/filters_test.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
3
2020-12-30T07:00:55.000Z
2021-03-16T10:55:05.000Z
src/python/tests/appengine/libs/filters_test.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
1
2019-06-07T21:29:28.000Z
2019-06-07T21:29:28.000Z
src/python/tests/appengine/libs/filters_test.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
1
2020-04-25T16:37:10.000Z
2020-04-25T16:37:10.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
30.681633
79
0.646535
e8f1df8056fc7b786645eed8ceae1bd547e176c6
782
py
Python
test/python/vision/vision.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
18
2016-12-08T20:47:57.000Z
2022-01-29T19:36:04.000Z
test/python/vision/vision.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
252
2016-09-21T20:51:36.000Z
2021-03-25T23:02:36.000Z
test/python/vision/vision.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
37
2016-09-19T21:13:16.000Z
2022-01-29T19:36:07.000Z
"""Functional test for Google Cloud Vision API.""" from google.cloud.gapic.vision.v1.image_annotator_client import ImageAnnotatorClient from google.cloud.grpc.vision.v1 import image_annotator_pb2 # upload demo-image.jpg from this directory to Google Storage for your project image_url = 'gs://gapic-vision-v1/demo-ima...
34
89
0.817136
e8f1e645b3e88a307bc72705b802c2364ae7f3aa
2,876
py
Python
Python/graph/base.py
MatteoEsposito/ProgettoInItinereII-IngegneriaDegliAlgoritmi-
c37543d2bc1919d0cdad98dbc018eaf65f221cdf
[ "MIT" ]
null
null
null
Python/graph/base.py
MatteoEsposito/ProgettoInItinereII-IngegneriaDegliAlgoritmi-
c37543d2bc1919d0cdad98dbc018eaf65f221cdf
[ "MIT" ]
null
null
null
Python/graph/base.py
MatteoEsposito/ProgettoInItinereII-IngegneriaDegliAlgoritmi-
c37543d2bc1919d0cdad98dbc018eaf65f221cdf
[ "MIT" ]
null
null
null
class Node: """ The graph basic element: node. """ def __init__(self, id, value): """ Constructor. :param id: node ID (integer). :param value: node value. """ self.id = id self.value = value def __eq__(self, other): """ Equali...
26.878505
82
0.552156
e8f1ee657a5f3ec17d473662233ed7da7f570a8a
9,397
py
Python
snmpmod/bin/snmputils.py
liquidtelecom/splunk-snmpmod
e1d536f7e965e0b20e685db4c6aca841511ca567
[ "Apache-2.0" ]
1
2017-12-19T16:48:57.000Z
2017-12-19T16:48:57.000Z
snmpmod/bin/snmputils.py
dbreddyAI/splunk-snmpmod
e1d536f7e965e0b20e685db4c6aca841511ca567
[ "Apache-2.0" ]
4
2016-03-17T10:44:10.000Z
2016-07-22T11:54:47.000Z
snmpmod/bin/snmputils.py
dbreddyAI/splunk-snmpmod
e1d536f7e965e0b20e685db4c6aca841511ca567
[ "Apache-2.0" ]
2
2018-01-25T03:14:03.000Z
2020-01-09T03:50:30.000Z
import os import string import sys splunk_home = os.environ.get("SPLUNK_HOME") egg_dir = os.path.join(splunk_home, "etc", "apps", "snmpmod", "bin") # directory of the custom MIB eggs mib_egg_dir = os.path.join(egg_dir, "mibs") def load_eggs(): # dynamically load in any eggs in $SPLUNK_HOME/etc/apps/mod/bin ...
34.170909
124
0.663403
e8f1f537e809b5a8b317ebc1e75c1a9858fd3603
550
py
Python
src/cltk/tokenizers/fro.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
2
2019-08-18T21:10:01.000Z
2020-05-05T09:19:40.000Z
src/cltk/tokenizers/fro.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
62
2019-02-01T18:48:11.000Z
2020-08-19T17:52:53.000Z
src/cltk/tokenizers/fro.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
8
2019-04-07T03:47:31.000Z
2020-07-01T07:02:59.000Z
""" Code for word tokenization: Old French """ __author__ = [ "Natasha Voake <natashavoake@gmail.com>", "Patrick J. Burns <patrick@diyclassics.org>", ] __license__ = "MIT License." from cltk.tokenizers.word import RegexWordTokenizer OldFrenchTokenizerPatterns = [ (r"’", r"'"), (r"\'", r"' "), (r"...
21.153846
61
0.627273
e8f22c414f6c77c0125e531e49cfbd4297c89fb3
14,760
py
Python
tests/commands_preprocess_notice_tests.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
26
2016-06-04T20:48:09.000Z
2021-07-28T18:13:30.000Z
tests/commands_preprocess_notice_tests.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
146
2016-04-06T19:07:54.000Z
2022-01-02T20:09:53.000Z
tests/commands_preprocess_notice_tests.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
28
2016-04-09T20:40:48.000Z
2021-05-08T17:52:59.000Z
import re from datetime import date from unittest import TestCase import pytest from click.testing import CliRunner from lxml import etree from mock import patch from regparser.commands.preprocess_notice import (convert_cfr_refs, preprocess_notice) from regparser.inde...
45.696594
79
0.618767
e8f24cd6e257167d4dde608a3f85f8d3b71928fc
1,778
py
Python
validation-scripts/ice_validator/tests/utils/__init__.py
onap/vnfsdk-ice
5fd4855accef1da2d19dec70c839fdd4080cbcb7
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
validation-scripts/ice_validator/tests/utils/__init__.py
onap/vnfsdk-ice
5fd4855accef1da2d19dec70c839fdd4080cbcb7
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
validation-scripts/ice_validator/tests/utils/__init__.py
onap/vnfsdk-ice
5fd4855accef1da2d19dec70c839fdd4080cbcb7
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# -*- coding: utf8 -*- # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. # ========================================...
44.45
82
0.645669
e8f25f0c0d677f75df7d7a733c2ac76f844995ca
1,048
py
Python
sdks/python/test/test_AppWithTeamPermissionsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_AppWithTeamPermissionsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_AppWithTeamPermissionsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
26.2
121
0.751908
e8f27e7ac100dad8d587a91d67e9a5f2ff0c3433
5,449
py
Python
tools/manifest/download.py
yinghuazhilian/wpt
3efff9b2d66aed3d8e2061205069883fd54df2be
[ "BSD-3-Clause" ]
null
null
null
tools/manifest/download.py
yinghuazhilian/wpt
3efff9b2d66aed3d8e2061205069883fd54df2be
[ "BSD-3-Clause" ]
null
null
null
tools/manifest/download.py
yinghuazhilian/wpt
3efff9b2d66aed3d8e2061205069883fd54df2be
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import argparse import bz2 import gzip import json import io import os from datetime import datetime, timedelta from six.moves.urllib.request import urlopen try: import zstandard except ImportError: zstandard = None from .vcs import Git from . import log here = os.pa...
29.454054
91
0.604515
e8f297cffe87dccf1c58e9e4bc84ffba184abbb6
11,842
py
Python
kingfisher/processes/wps_COP_indices.py
bird-house/kingfisher
d3623e8e71e1b0e081833e216369926607dfc594
[ "Apache-2.0" ]
null
null
null
kingfisher/processes/wps_COP_indices.py
bird-house/kingfisher
d3623e8e71e1b0e081833e216369926607dfc594
[ "Apache-2.0" ]
12
2018-11-27T15:51:28.000Z
2019-02-04T14:04:51.000Z
kingfisher/processes/wps_COP_indices.py
bird-house/kingfisher
d3623e8e71e1b0e081833e216369926607dfc594
[ "Apache-2.0" ]
null
null
null
import logging import zipfile from datetime import datetime as dt from datetime import timedelta, time from os import makedirs from os.path import exists, join from pywps import Format # from pywps import LiteralInput from pywps import LiteralInput, ComplexOutput from pywps import Process from pywps.app.Common import ...
39.872054
109
0.484124
e8f2ac73988cab31d9631b45cb4404c35b274a9d
1,965
py
Python
docs/source/conf.py
TheSnoozer/LiuAlgoTrader
5ad4e46db126698399d338c4488aa4983385c2d8
[ "MIT" ]
1
2021-10-14T02:42:56.000Z
2021-10-14T02:42:56.000Z
docs/source/conf.py
Smalltarget108/LiuAlgoTrader
3558e35accf8aaa5a5020a4828e915e497335405
[ "MIT" ]
null
null
null
docs/source/conf.py
Smalltarget108/LiuAlgoTrader
3558e35accf8aaa5a5020a4828e915e497335405
[ "MIT" ]
1
2021-08-31T04:03:15.000Z
2021-08-31T04:03:15.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
34.473684
79
0.669211
e8f2d5ca412af3ca52aa2caa0abfc376715bcaa2
1,620
py
Python
tests/_event/test_event.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_event/test_event.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_event/test_event.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
from random import randint from retrying import retry import apysc as ap from apysc._expression import var_names from tests import testing_helper class TestEvent: @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test___init__(self) -> None: int_1: ap.Int = ap.Int(10...
29.454545
69
0.57037
e8f2e0c332c10843dff50bf4c92ffaab89ec2df1
10,867
py
Python
Pacman_mods/pacman.py
Hallvardr/Hallvardr.github.io
4f05f5b6bb3209a94399f2efb50338dd75473049
[ "MIT" ]
null
null
null
Pacman_mods/pacman.py
Hallvardr/Hallvardr.github.io
4f05f5b6bb3209a94399f2efb50338dd75473049
[ "MIT" ]
null
null
null
Pacman_mods/pacman.py
Hallvardr/Hallvardr.github.io
4f05f5b6bb3209a94399f2efb50338dd75473049
[ "MIT" ]
null
null
null
import random import os import operator import gym from skimage import io, color, transform import numpy as np import random from keras.models import Sequential from keras.layers import Dense, MaxPooling2D, Conv2D, Flatten from keras.optimizers import Adam from collections import deque import matplotlib.pyplot as plt ...
36.962585
179
0.602558
e8f2e9c205e0ea220caae38d27f6484af445f35c
13,851
py
Python
oscar/lib/python2.7/site-packages/IPython/core/usage.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/core/usage.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/core/usage.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Usage information for the main IPython applications. """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # Copyright (C) 2001-2007 Fernando Perez. <fperez@colorado.edu> # # Distributed under the t...
40.031792
91
0.658869
e8f2eb8b0a895e8aae837a4d27868c4313acffa6
3,702
py
Python
test/vanilla/legacy/AcceptanceTests/test_integer.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/legacy/AcceptanceTests/test_integer.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/legacy/AcceptanceTests/test_integer.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
36.294118
92
0.702323
e8f36236b7037a4942163d7b84e62d9bbf4e3c65
17,990
py
Python
gambian_variant_calling.py
GinoBacallao/hgdp_tgp
b674a79ad60da4c78b0b55a77e4cc4f138e9057e
[ "MIT" ]
1
2021-02-26T17:45:20.000Z
2021-02-26T17:45:20.000Z
gambian_variant_calling.py
atgu/hgdp_tgp
b674a79ad60da4c78b0b55a77e4cc4f138e9057e
[ "MIT" ]
null
null
null
gambian_variant_calling.py
atgu/hgdp_tgp
b674a79ad60da4c78b0b55a77e4cc4f138e9057e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 __author__ = 'Lindo Nkambule' import argparse import hailtop.batch as hb import hail as hl import pandas as pd import os from typing import List def bytes_to_gb(in_file): """ Convert the size from bytes to GB""" file_info = hl.utils.hadoop_stat(in_file) size_bytes = file_info['si...
49.019074
139
0.649083
e8f3780eaee2cff001eb589a3fc8d6daee851b44
375
py
Python
Week-3/L5/Prob8.py
jabhij/MITx-6.00.1x-PYTHON
b9650ec0829796f4f312bd46db16e5e30df605ee
[ "MIT" ]
2
2016-09-20T16:30:49.000Z
2016-09-20T16:31:04.000Z
Week-3/L5/Prob8.py
jabhij/MITx-6.00.1x-Python-
b9650ec0829796f4f312bd46db16e5e30df605ee
[ "MIT" ]
null
null
null
Week-3/L5/Prob8.py
jabhij/MITx-6.00.1x-Python-
b9650ec0829796f4f312bd46db16e5e30df605ee
[ "MIT" ]
null
null
null
def isIn(char, aStr): # Base Cases if aStr == '': return False if len(aStr) == 1: return (aStr == char) # Getting the nid value mid = len(aStr)/2 midChar = aStr[mid] if (char == midChar): return True # Recuring Call . elif (char < midChar): return isIn(char, aStr[...
17.045455
37
0.546667
e8f37c3d1918c518d1068b71ae58d548612eb19d
3,113
py
Python
homeassistant/components/esphome/camera.py
marcelblijleven/core
6d13466f8a9b157609227046e5ee542d1a261d0f
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
homeassistant/components/esphome/camera.py
marcelblijleven/core
6d13466f8a9b157609227046e5ee542d1a261d0f
[ "Apache-2.0" ]
58
2021-01-04T08:20:32.000Z
2022-03-31T06:05:13.000Z
homeassistant/components/esphome/camera.py
Kirchoff/home-assistant
3eb3c2824c409feb9e2c68859fa6c04dd2574a7c
[ "Apache-2.0" ]
6
2018-02-04T03:48:55.000Z
2022-01-24T20:37:04.000Z
"""Support for ESPHome cameras.""" from __future__ import annotations import asyncio from typing import Any from aioesphomeapi import CameraInfo, CameraState from aiohttp import web from homeassistant.components import camera from homeassistant.components.camera import Camera from homeassistant.config_entries import...
32.768421
86
0.655959
e8f37f0d4248378c94a4bd796612622f31d463b1
804
py
Python
buildscripts/remove_unwanted_files.py
sighingnow/numba
ae88a6ff4a41f76e50672a1af9d9aa66c205b51b
[ "BSD-2-Clause" ]
1
2019-02-13T09:22:51.000Z
2019-02-13T09:22:51.000Z
buildscripts/remove_unwanted_files.py
sighingnow/numba
ae88a6ff4a41f76e50672a1af9d9aa66c205b51b
[ "BSD-2-Clause" ]
null
null
null
buildscripts/remove_unwanted_files.py
sighingnow/numba
ae88a6ff4a41f76e50672a1af9d9aa66c205b51b
[ "BSD-2-Clause" ]
null
null
null
""" Workaround for a conda-build bug where failing to compile some Python files results in a build failure. See https://github.com/conda/conda-build/issues/1001 """ import os import sys py2_only_files = [] py3_only_files = [ 'numba/tests/annotation_usecases.py', 'numba/tests/overload_usecases.py', ] ...
21.157895
75
0.646766
e8f37fef05f6ee4fef24dca82aae21977046aecb
1,040
py
Python
src/pymysql_tools/__init__.py
cebel/pymsql_tools
30cfa7a2b0faf7d3c00df811064273907c3764b8
[ "Apache-2.0" ]
1
2017-09-29T17:59:35.000Z
2017-09-29T17:59:35.000Z
src/pymysql_tools/__init__.py
cebel/pymsql_tools
30cfa7a2b0faf7d3c00df811064273907c3764b8
[ "Apache-2.0" ]
null
null
null
src/pymysql_tools/__init__.py
cebel/pymsql_tools
30cfa7a2b0faf7d3c00df811064273907c3764b8
[ "Apache-2.0" ]
null
null
null
""" PyMySQL-tools is tested on both Python3 and legacy Python2 installations on Mac OS and Linux. .. warning:: PyBEL is not thoroughly tested on Windows. Installation ------------ Easiest ~~~~~~~ .. code-block:: sh $ pip3 install pymysql_tools Get the Latest ~~~~~~~~~~~~~~~ .. code-block:: sh $ pip3 insta...
17.931034
93
0.678846
e8f3b7302f8452690ee575e76064e39e3967ba18
23,895
py
Python
grouper/permissions.py
lfaraone/grouper
7df5eda8003a0b4a9ba7f0dcb044ae1e4710b171
[ "Apache-2.0" ]
null
null
null
grouper/permissions.py
lfaraone/grouper
7df5eda8003a0b4a9ba7f0dcb044ae1e4710b171
[ "Apache-2.0" ]
1
2016-02-18T18:55:29.000Z
2016-02-18T18:55:29.000Z
grouper/permissions.py
lfaraone/grouper
7df5eda8003a0b4a9ba7f0dcb044ae1e4710b171
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict, namedtuple from datetime import datetime import re from sqlalchemy.exc import IntegrityError from grouper.audit import assert_controllers_are_auditors from grouper.constants import ARGUMENT_VALIDATION, PERMISSION_ADMIN, PERMISSION_GRANT from grouper.email_util import send_email fr...
35.932331
98
0.682486
e8f3c294b7e0a730a546b7adf7a7bb284e2f85d9
16,793
py
Python
qchen_test_alexnet_mvcnn_version_my_model_use_mvcnn_extract_different_layers_dscmr_2_4_layer.py
anyuecq25/MVCNN_ContrastiveCenterLoss
a30e51b350ff766d681aa7cc06f84fc43fe0b961
[ "MIT" ]
1
2022-03-14T16:19:54.000Z
2022-03-14T16:19:54.000Z
qchen_test_alexnet_mvcnn_version_my_model_use_mvcnn_extract_different_layers_dscmr_2_4_layer.py
anyuecq25/MVCNN_ContrastiveCenterLoss
a30e51b350ff766d681aa7cc06f84fc43fe0b961
[ "MIT" ]
null
null
null
qchen_test_alexnet_mvcnn_version_my_model_use_mvcnn_extract_different_layers_dscmr_2_4_layer.py
anyuecq25/MVCNN_ContrastiveCenterLoss
a30e51b350ff766d681aa7cc06f84fc43fe0b961
[ "MIT" ]
null
null
null
import datetime import sys from torch.autograd import Variable import torch import torchvision import torchvision.transforms as transforms import matplotlib.pyplot as plt import numpy as np import torch.nn as nn import torch.nn.functional as F from torch.utils.data import DataLoader import config from datasets import...
38.252847
199
0.639671
e8f3f4d61ea54d670c274585fa28a3fce7dbbb9b
657
py
Python
comps/migrations/0005_compmngrdancer.py
dlanghorne0428/dancesport-tracker-projec
e55d91a4f03c26d6ee8c28846a809064adfdb158
[ "MIT" ]
null
null
null
comps/migrations/0005_compmngrdancer.py
dlanghorne0428/dancesport-tracker-projec
e55d91a4f03c26d6ee8c28846a809064adfdb158
[ "MIT" ]
87
2020-04-15T22:29:03.000Z
2022-01-02T02:21:28.000Z
comps/migrations/0005_compmngrdancer.py
dlanghorne0428/dancesport-tracker-projec
e55d91a4f03c26d6ee8c28846a809064adfdb158
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-18 03:16 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('rankings', '0006_auto_20200414_0150'), ('comps', '0004_heat_heatresult'), ] operations = [ migratio...
28.565217
192
0.630137
e8f42ac2a6c1a4d67b2ecfc3c99a441c116a882c
1,598
py
Python
gradient_free_optimizers/__init__.py
UstbCmsPjy/Gradient-Free-Optimizers
cde1a7bac709d57c1d7beee0708119fd2151b72f
[ "MIT" ]
1
2022-02-25T03:14:48.000Z
2022-02-25T03:14:48.000Z
gradient_free_optimizers/__init__.py
UstbCmsPjy/Gradient-Free-Optimizers
cde1a7bac709d57c1d7beee0708119fd2151b72f
[ "MIT" ]
null
null
null
gradient_free_optimizers/__init__.py
UstbCmsPjy/Gradient-Free-Optimizers
cde1a7bac709d57c1d7beee0708119fd2151b72f
[ "MIT" ]
null
null
null
# Author: Simon Blanke # Email: simon.blanke@yahoo.com # License: MIT License __version__ = "1.0.4" __license__ = "MIT" from .optimizers import ( HillClimbingOptimizer, StochasticHillClimbingOptimizer, RepulsingHillClimbingOptimizer, SimulatedAnnealingOptimizer, DownhillSimplexOptimizer, Rando...
26.633333
42
0.765332
e8f42acc17e5fd237c044ba0075597734e90542c
1,647
py
Python
configs/selfsup/_test_/models/simdis/resnet18_simdis_nogt_crossproj.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
configs/selfsup/_test_/models/simdis/resnet18_simdis_nogt_crossproj.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
configs/selfsup/_test_/models/simdis/resnet18_simdis_nogt_crossproj.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
1
2022-03-15T11:31:48.000Z
2022-03-15T11:31:48.000Z
# model settings model = dict( type='SimDis_Siam_nogt_cross_proj', backbone=dict( type='ResNet', depth=18, in_channels=3, out_indices=[4], # 0: conv-1, x: stage-x norm_cfg=dict(type='SyncBN'), zero_init_residual=True), neck=dict( type='NonLinearNeck',...
28.396552
53
0.520947
e8f46069e92c27ce121075c074e6286021a001be
2,345
py
Python
bar3d.py
KinderPy/code-samples
cb60b9a7870a9329fb512584e6e2e2d88123fbed
[ "BSD-3-Clause" ]
5
2021-07-17T05:19:00.000Z
2022-01-05T05:39:50.000Z
bar3d.py
KinderPy/code-samples
cb60b9a7870a9329fb512584e6e2e2d88123fbed
[ "BSD-3-Clause" ]
null
null
null
bar3d.py
KinderPy/code-samples
cb60b9a7870a9329fb512584e6e2e2d88123fbed
[ "BSD-3-Clause" ]
8
2020-12-26T23:41:27.000Z
2022-02-24T22:18:41.000Z
# bar3d.py # ------------------------------------------------------------------------- # Create a 3D "Lego plot" to illustrate the Central Limit Theorem. # ------------------------------------------------------------------------- """ Description ----------- This script demonstrates the creation of a 3D bar chart and i...
33.985507
79
0.695522
e8f474512c91958f90bed0998299186db04fb605
833
py
Python
cms/test_utils/project/sampleapp/urls.py
pbs/django-cms
f230e63f98fafb75beb3956328021f8976564c96
[ "BSD-3-Clause" ]
null
null
null
cms/test_utils/project/sampleapp/urls.py
pbs/django-cms
f230e63f98fafb75beb3956328021f8976564c96
[ "BSD-3-Clause" ]
9
2015-06-25T10:31:12.000Z
2022-03-12T00:41:22.000Z
cms/test_utils/project/sampleapp/urls.py
pbs/django-cms
f230e63f98fafb75beb3956328021f8976564c96
[ "BSD-3-Clause" ]
1
2017-08-22T07:00:30.000Z
2017-08-22T07:00:30.000Z
from django.conf.urls import * """ Also used in cms.tests.ApphooksTestCase """ urlpatterns = patterns('cms.test_utils.project.sampleapp.views', url(r'^$', 'sample_view', {'message': 'sample root page',}, name='sample-root'), url(r'^settings/$', 'sample_view', kwargs={'message': 'sample settings page'}, name='...
49
111
0.655462
e8f4b3be9ebeebcb1f290e380142ac7156091fdc
2,883
py
Python
spikebit/command_line.py
NRC-Lund/spikebit
b086bb78b7a0da224e4f8db2b83582f121d51cd6
[ "MIT" ]
6
2018-04-02T09:25:22.000Z
2020-08-01T08:34:09.000Z
spikebit/command_line.py
NRC-Lund/spikebit
b086bb78b7a0da224e4f8db2b83582f121d51cd6
[ "MIT" ]
null
null
null
spikebit/command_line.py
NRC-Lund/spikebit
b086bb78b7a0da224e4f8db2b83582f121d51cd6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse from mpi4py import MPI import spikebit.dbcom as sbd import spikebit.spikeclient import socket import datetime as dt def parsecommon(parser): """ Parse common arguments """ parser.add_argument("--bufsz", help="size of buffer", type=int, ...
34.73494
75
0.585848
e8f4b6b3c39d0c3d1035ac3c161d7aeb2d05a255
11,034
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/funnelarea/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/funnelarea/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/funnelarea/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): # color # ----- @property def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000'...
34.373832
82
0.564165
e8f4d2c779e6c231afc816a0fbb63ff0b43879fb
2,677
py
Python
nova/tests/functional/api_sample_tests/test_flavor_rxtx.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_flavor_rxtx.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_flavor_rxtx.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-03-01T17:04:57.000Z
2020-03-01T17:04:57.000Z
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # 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...
37.704225
78
0.64139
e8f4f7e7a1760d57c990d426278c80b052bdf2e7
33,934
py
Python
ISY_bridge.py
NickWaterton/ISY_MQTT
15166093c6457e00eff67b7c67f5a1813ec2cf98
[ "MIT" ]
null
null
null
ISY_bridge.py
NickWaterton/ISY_MQTT
15166093c6457e00eff67b7c67f5a1813ec2cf98
[ "MIT" ]
null
null
null
ISY_bridge.py
NickWaterton/ISY_MQTT
15166093c6457e00eff67b7c67f5a1813ec2cf98
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Author: Nick Waterton <nick.waterton@med.ge.com> # Description: OH interface to ISY controller for Inseton devices via MQTT # Uses pyisy python library https://github.com/automicus/PyISY 3.x.x branch # N Waterton 24th September 2019 V1.0: initial release # re-written for asyncio 9th December 2...
43.173028
315
0.560176
e8f4fa01cb80c0106006888ce95300e4eaf37165
3,714
py
Python
Main/datatreat/datatreats.py
Gitrocha2/MarineTraffic
d124952016861e046cdc98e1a916adb3e4429dbe
[ "MIT" ]
null
null
null
Main/datatreat/datatreats.py
Gitrocha2/MarineTraffic
d124952016861e046cdc98e1a916adb3e4429dbe
[ "MIT" ]
null
null
null
Main/datatreat/datatreats.py
Gitrocha2/MarineTraffic
d124952016861e046cdc98e1a916adb3e4429dbe
[ "MIT" ]
null
null
null
import pandas as pd from pathlib import Path def runtreat(): basepath = Path('.') / 'Main' / 'database' tempospath = basepath / 'raw' / 'Atr_tempos' atr_infopath = basepath / 'raw' / 'Atr_info' print(tempospath) atr_tempos = {} #tempos_header = ['IDAtracacao', 'TEsperaAtracacao', 'TEsperaI...
39.094737
97
0.35972
e8f501896fa4070b4025051d9089c794a1acd89f
376
py
Python
app/api/api_v1/api.py
scott2b/BasicAPI
835f52602eea5db362c4ba09b7e89d05f554e432
[ "MIT" ]
1
2020-12-15T15:31:22.000Z
2020-12-15T15:31:22.000Z
app/api/api_v1/api.py
scott2b/BasicAPI
835f52602eea5db362c4ba09b7e89d05f554e432
[ "MIT" ]
null
null
null
app/api/api_v1/api.py
scott2b/BasicAPI
835f52602eea5db362c4ba09b7e89d05f554e432
[ "MIT" ]
null
null
null
from fastapi import APIRouter from .endpoints import login, users, utils api_router = APIRouter() api_router.include_router(login.router, tags=["login"]) api_router.include_router(users.router, prefix="/users", tags=["users"]) api_router.include_router(utils.router, prefix="/utils", tags=["utils"]) #api_router.includ...
37.6
73
0.765957
e8f51ca1500293b393bc9420df872314d0b54574
399
py
Python
trello/db/query.py
mikerourke/api-parser
b5a825b32d8d9ddea8314319d722ad39e303710d
[ "MIT" ]
1
2021-06-06T08:18:41.000Z
2021-06-06T08:18:41.000Z
trello/db/query.py
mikerourke/api-parser
b5a825b32d8d9ddea8314319d722ad39e303710d
[ "MIT" ]
null
null
null
trello/db/query.py
mikerourke/api-parser
b5a825b32d8d9ddea8314319d722ad39e303710d
[ "MIT" ]
null
null
null
from sqlalchemy.sql import text from trello.db.session import session from trello.db.models.entity import Entity from trello.db.models.param import Param from trello.db.models.route import Route from trello.db.models.value import Value def get_all(table_name): sql = text('SELECT * FROM ' + table_name) result...
24.9375
45
0.744361
e8f51fcc170541993499cd330f97b76075bd08c9
346
py
Python
src/11/interacting_with_http_services_as_a_client/example4.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
14
2017-05-20T04:06:46.000Z
2022-01-23T06:48:45.000Z
src/11/interacting_with_http_services_as_a_client/example4.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
1
2021-06-10T20:17:55.000Z
2021-06-10T20:17:55.000Z
src/11/interacting_with_http_services_as_a_client/example4.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
15
2017-03-29T17:57:33.000Z
2021-08-24T02:20:08.000Z
# Example of a HEAD request import requests resp = requests.head('http://www.python.org/index.html') status = resp.status_code last_modified = resp.headers['last-modified'] content_type = resp.headers['content-type'] content_length = resp.headers['content-length'] print(status) print(last_modified) print(content_ty...
21.625
56
0.780347
e8f52a508f852a9c71531ee91e8364efd18d7f97
32,164
py
Python
Lib/test/test_gc.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
164
2015-01-04T07:04:07.000Z
2022-01-06T03:18:56.000Z
Lib/test/test_gc.py
idobatter/cpython
c7b03e7b57cedccb77e37f65f9bbcb82050c2bb5
[ "PSF-2.0" ]
3
2015-08-27T07:35:26.000Z
2016-04-07T16:35:39.000Z
Lib/test/test_gc.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
35
2015-06-11T05:35:55.000Z
2022-01-11T19:32:00.000Z
import _testcapi import unittest from test.support import (verbose, refcount_test, run_unittest, strip_python_stderr) from test.script_helper import assert_python_ok, make_script, temp_dir import sys import time import gc import weakref try: import threading except ImportError: thr...
33.158763
81
0.541288
e8f5531a9d36358fb75237f3db0f26e27986fe2a
6,337
py
Python
tests/test_star.py
balazsdukai/tin2stardb
efb160ba744f757c4a6d4674c7abec8bf0694415
[ "MIT" ]
null
null
null
tests/test_star.py
balazsdukai/tin2stardb
efb160ba744f757c4a6d4674c7abec8bf0694415
[ "MIT" ]
null
null
null
tests/test_star.py
balazsdukai/tin2stardb
efb160ba744f757c4a6d4674c7abec8bf0694415
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests the star module.""" import pytest import logging from math import isclose from statistics import mean import csv from tin import formats log = logging.getLogger(__name__) class TestStar: def test_pointlocation(self, obj_base): infile = obj_base / '37fz2_9.obj' ...
37.720238
90
0.629162
e8f5559a625e1f7416ed9fbc07d0e29dda6541e6
1,355
py
Python
apps/customuser/admin.py
luismayta/python-example-elasticsearch
4572b03c425f525094d5892ef8c625cfa991174a
[ "MIT" ]
4
2019-08-04T19:23:39.000Z
2021-04-10T08:26:44.000Z
apps/customuser/admin.py
luismayta/python-example-elasticsearch
4572b03c425f525094d5892ef8c625cfa991174a
[ "MIT" ]
3
2019-07-08T20:08:02.000Z
2019-07-09T19:47:25.000Z
apps/customuser/admin.py
luismayta/python-example-elasticsearch
4572b03c425f525094d5892ef8c625cfa991174a
[ "MIT" ]
1
2019-08-05T05:15:26.000Z
2019-08-05T05:15:26.000Z
# -*- coding: utf-8 -*- from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth.models import Permission from django.contrib.auth import get_user_model from django.contrib.contenttypes.models import ContentType from .forms import UserChangeForm, UserCreationForm Us...
27.1
84
0.666421
e8f5570458947cfe53014d9c2558c83698adb0ff
8,955
py
Python
src/linakdeskapp/bt_device_connector.py
nilp0inter/LinakDeskApp
0cf287ee96002f5c270c087ba73b72c548baa8c5
[ "MIT" ]
121
2018-09-19T20:10:21.000Z
2022-03-31T08:07:33.000Z
src/linakdeskapp/bt_device_connector.py
nilp0inter/LinakDeskApp
0cf287ee96002f5c270c087ba73b72c548baa8c5
[ "MIT" ]
13
2020-02-19T15:58:37.000Z
2022-03-05T03:20:42.000Z
src/linakdeskapp/bt_device_connector.py
nilp0inter/LinakDeskApp
0cf287ee96002f5c270c087ba73b72c548baa8c5
[ "MIT" ]
12
2020-02-13T23:55:30.000Z
2022-01-30T15:11:31.000Z
# MIT License # # Copyright (c) 2017 Arkadiusz Netczuk <dev.arnet@gmail.com> # # 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 # t...
30.050336
88
0.659185
e8f58305138ab8eb1dc3707c75295d2c92fcc9e0
1,007
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/proximity_placement_group_paged.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/proximity_placement_group_paged.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/proximity_placement_group_paged.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# 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. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
35.964286
155
0.603774
e8f5aa89eb991f899bbda5bc4aeeb3d79f2f3c14
328
py
Python
owtf/plugins/web/external/Stored_Cross_Site_Scripting@OWTF-DV-002.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/plugins/web/external/Stored_Cross_Site_Scripting@OWTF-DV-002.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/plugins/web/external/Stored_Cross_Site_Scripting@OWTF-DV-002.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
from owtf.managers.resource import get_resources from owtf.plugin.plugin_helper import plugin_helper DESCRIPTION = "Plugin to assist manual testing" def run(PluginInfo): resource = get_resources('ExternalCrossSiteScripting') Content = plugin_helper.resource_linklist('Online Resources', resource) return ...
27.333333
75
0.801829
e8f5c1c36b61727b109b6ec246e4d7f492fefd8e
3,670
py
Python
python/gdrivers/hdf4_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
null
null
null
python/gdrivers/hdf4_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
4
2017-01-25T18:11:31.000Z
2017-04-04T20:51:45.000Z
python/gdrivers/hdf4_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
33.981481
77
0.673297
e8f5e44441326867788136802845dfa5977e5631
4,307
py
Python
client/tests/net_utils.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/swarming_client/tests/net_utils.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/swarming_client/tests/net_utils.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. import logging import os import sys import threading TEST_DIR = os.path.dirname(os.path.abspath( __file__.decode(sys.getfilesystemencoding())...
34.18254
80
0.647086
e8f5ff3ddf705c0c41da8bc0304af32f11cd1706
2,405
py
Python
uppyyl_simulator/backend/models/base/declaration.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
2
2020-09-09T15:42:23.000Z
2020-11-04T17:50:57.000Z
uppyyl_simulator/backend/models/base/declaration.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
null
null
null
uppyyl_simulator/backend/models/base/declaration.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
null
null
null
"""The variable declaration of an automaton network.""" import copy from uppyyl_simulator.backend.data_structures.ast.ast_code_element import ( ASTCodeElement, apply_func_to_ast ) from uppyyl_simulator.backend.ast.parsers.generated.uppaal_c_language_parser import ( UppaalCLanguageParser ) from uppyyl_simulato...
25.860215
105
0.634511
e8f620b8fda891a33d3f94c03c76cfb43067e0b4
50,789
py
Python
miniworld/management/SimulationManager.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/management/SimulationManager.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/management/SimulationManager.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
import contextlib import functools import hashlib import json import logging import math import threading from collections import OrderedDict, defaultdict from contextlib import contextmanager from copy import deepcopy from io import StringIO from pprint import pformat from threading import Lock from typing import Dict...
40.30873
142
0.60899
e8f64984a6ee69ee4caff4f0360753a5e35514bd
2,143
py
Python
ralbot/ipxact/typemaps.py
jiacaiyuan/uvm-generator
63f4c7bd0dad43b357d1cc859b61011718c597f8
[ "MIT" ]
13
2020-04-15T09:11:53.000Z
2022-03-13T02:05:53.000Z
ralbot/ipxact/typemaps.py
jiacaiyuan/uvm-generator
63f4c7bd0dad43b357d1cc859b61011718c597f8
[ "MIT" ]
null
null
null
ralbot/ipxact/typemaps.py
jiacaiyuan/uvm-generator
63f4c7bd0dad43b357d1cc859b61011718c597f8
[ "MIT" ]
4
2020-11-27T08:11:24.000Z
2022-02-19T09:11:36.000Z
from systemrdl import rdltypes # sw <--> ipxact:access ACCESS_MAP = [ (rdltypes.AccessType.r, "read-only"), (rdltypes.AccessType.rw, "read-write"), (rdltypes.AccessType.rw1, "read-writeOnce"), (rdltypes.AccessType.w, "write-only"), (rdltypes.AccessType.w1, "writeOnce"), ] def acce...
30.614286
80
0.611759
e8f64a19c00c678bac310ae3914b75bce8865862
247
py
Python
{{cookiecutter.PROJECT_NAME}}/config/plugins/storage.py
pyFigure/cc_django
afb640816291ffc2ed2038bdee6ea60b27d71fb2
[ "BSD-3-Clause" ]
4
2020-09-01T06:37:17.000Z
2020-09-01T07:11:32.000Z
{{cookiecutter.PROJECT_NAME}}/config/plugins/storage.py
pyFigure/cc_django
afb640816291ffc2ed2038bdee6ea60b27d71fb2
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.PROJECT_NAME}}/config/plugins/storage.py
pyFigure/cc_django
afb640816291ffc2ed2038bdee6ea60b27d71fb2
[ "BSD-3-Clause" ]
null
null
null
from utils.env import env AWS_ACCESS_KEY_ID = env.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = env.get('AWS_SECRET_ACCESS_KEY') AWS_STORAGE_BUCKET_NAME = env.get('AWS_STORAGE_BUCKET_NAME') AWS_S3_ENDPOINT_URL = env.get('AWS_S3_ENDPOINT_URL')
35.285714
60
0.82996
e8f6d6a1f70eb201b9da2be648fccdb7bfa90570
958
py
Python
jaeger_client/__init__.py
jaegertracing/jaeger-client-python
a6c973158bf9b02cd7f5a966ccfd29ab86c44a5b
[ "Apache-2.0" ]
372
2017-10-31T21:51:26.000Z
2022-03-23T10:36:19.000Z
jaeger_client/__init__.py
jaegertracing/jaeger-client-python
a6c973158bf9b02cd7f5a966ccfd29ab86c44a5b
[ "Apache-2.0" ]
276
2017-10-10T11:33:50.000Z
2022-03-24T16:36:16.000Z
jaeger_client/__init__.py
jaegertracing/jaeger-client-python
a6c973158bf9b02cd7f5a966ccfd29ab86c44a5b
[ "Apache-2.0" ]
157
2017-10-09T07:16:41.000Z
2021-12-29T14:49:26.000Z
# Copyright (c) 2016 Uber Technologies, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
36.846154
74
0.768267
e8f741a1b442419979375e96a116ceda80108b25
3,881
py
Python
ibllib/misc/misc.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
38
2018-08-07T21:55:29.000Z
2022-03-21T14:49:03.000Z
ibllib/misc/misc.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
207
2018-07-25T15:10:48.000Z
2022-03-08T13:23:08.000Z
ibllib/misc/misc.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
35
2018-09-04T14:49:56.000Z
2022-01-06T21:17:51.000Z
# library of small functions import logging import subprocess import numpy as np from ibllib.exceptions import NvidiaDriverNotReady _logger = logging.getLogger('ibllib') def _parametrized(dec): def layer(*args, **kwargs): def repl(f): return dec(f, *args, **kwargs) return repl ret...
33.17094
94
0.604999
e8f744bf74d44112f52083ce52ba87c9d901717b
3,009
py
Python
dragons/helpers/functions/ialivetext.py
TeamDragons/Dragons-Userbot
e40584f4dc898b785523adea4519ffb412dc92c4
[ "MIT" ]
3
2021-08-11T08:33:39.000Z
2022-01-17T00:09:11.000Z
dragons/helpers/functions/ialivetext.py
TeamDragons/Dragons-Userbot
e40584f4dc898b785523adea4519ffb412dc92c4
[ "MIT" ]
null
null
null
dragons/helpers/functions/ialivetext.py
TeamDragons/Dragons-Userbot
e40584f4dc898b785523adea4519ffb412dc92c4
[ "MIT" ]
6
2021-08-14T08:20:41.000Z
2022-03-20T02:31:45.000Z
import math import time import heroku3 import requests from ...Config import Config from .utils import get_readable_time Heroku = heroku3.from_key(Config.HEROKU_API_KEY) heroku_api = "https://api.heroku.com" # UniBorg Telegram UseRBot # Copyright (C) 2020 @UniBorg # This code is licensed under # the "you can't use ...
32.706522
86
0.615155
e8f7468a0b1c0e34702210ff77698559fba354ba
12,661
py
Python
utilities/humantime.py
sfewjaifew/Neutra
9a29538517bdda18113cb884b7c13c0a731a0e2f
[ "MIT" ]
null
null
null
utilities/humantime.py
sfewjaifew/Neutra
9a29538517bdda18113cb884b7c13c0a731a0e2f
[ "MIT" ]
null
null
null
utilities/humantime.py
sfewjaifew/Neutra
9a29538517bdda18113cb884b7c13c0a731a0e2f
[ "MIT" ]
null
null
null
# R.danny # https://github.com/Rapptz/RoboDanny/blob/rewrite/cogs/utils/time.py import datetime import discord import parsedatetime as pdt from dateutil.relativedelta import relativedelta from utilities.formatting import plural, human_join from discord.ext import commands import re # Monkey patch mins and secs into th...
34.311653
123
0.53258
e8f75e3e0abb3a7cc72af0e715e6edc3a6252dce
1,873
py
Python
playground/fsdet/voc/split3/retentive_rcnn/3shot/config.py
Megvii-BaseDetection/GFSD
78c0a938d794584f44d60afab66debd43773d4f7
[ "Apache-2.0" ]
23
2021-06-25T05:34:31.000Z
2022-02-08T03:32:00.000Z
playground/fsdet/voc/split3/retentive_rcnn/3shot/config.py
Megvii-BaseDetection/GFSD
78c0a938d794584f44d60afab66debd43773d4f7
[ "Apache-2.0" ]
6
2021-06-30T13:10:21.000Z
2021-11-04T13:26:39.000Z
playground/fsdet/voc/split3/retentive_rcnn/3shot/config.py
Megvii-BaseDetection/GFSD
78c0a938d794584f44d60afab66debd43773d4f7
[ "Apache-2.0" ]
1
2021-10-12T11:58:14.000Z
2021-10-12T11:58:14.000Z
import os.path as osp from cvpods.configs.rcnn_fpn_config import RCNNFPNConfig _config_dict = dict( MODEL=dict( WEIGHTS="/data/fsdet_models/voc/split1/base_model.pth", MASK_ON=False, RESNETS=dict(DEPTH=101), ROI_HEADS=dict( NUM_CLASSES=20, COSINE_ON=True, ...
28.378788
84
0.550454
e8f777cbf934adc6b8c840628fcfc60aa9bffeee
23,004
py
Python
fairseq/trainer.py
fyabc/BT4MolGen
05d161ae9a7dbbcc3c95c71417d5e7f92ed0572c
[ "MIT" ]
3
2021-11-01T02:05:20.000Z
2021-12-09T05:42:17.000Z
fairseq/trainer.py
fyabc/BT4MolGen
05d161ae9a7dbbcc3c95c71417d5e7f92ed0572c
[ "MIT" ]
null
null
null
fairseq/trainer.py
fyabc/BT4MolGen
05d161ae9a7dbbcc3c95c71417d5e7f92ed0572c
[ "MIT" ]
1
2022-01-01T18:54:14.000Z
2022-01-01T18:54:14.000Z
# 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. """ Train a network across multiple GPUs. """ from collections import OrderedDict import contextlib from itertools import chain import math i...
40.006957
114
0.593592
e8f79e09038547d8f510fad17e9c8aae36a608c6
904
py
Python
blag/auth/views.py
thusoy/blag
183f5c5c6be16d8f22b269e574396d957d5f1895
[ "MIT" ]
null
null
null
blag/auth/views.py
thusoy/blag
183f5c5c6be16d8f22b269e574396d957d5f1895
[ "MIT" ]
10
2015-02-23T22:55:15.000Z
2022-01-07T19:48:42.000Z
blag/auth/views.py
thusoy/blag
183f5c5c6be16d8f22b269e574396d957d5f1895
[ "MIT" ]
null
null
null
from flask import Blueprint, request, session, url_for, redirect, current_app, render_template, abort from flask_login import login_user, logout_user from flask_principal import identity_changed, Identity, AnonymousIdentity from .. import db from .models import User, LoginForm mod = Blueprint('auth', __name__, templ...
31.172414
101
0.71792
e8f7c17abb9bab096c346a02ae3532d74cbf614c
51,538
py
Python
scripts/python/repos.py
Bhaskers-Blu-Org1/power-up
6dcf088a62ea3c12f605325d702e49636926098e
[ "Apache-2.0" ]
8
2018-06-28T19:12:35.000Z
2019-06-26T15:04:53.000Z
scripts/python/repos.py
open-power-ref-design/cluster-genesis
53a1db7e86726cf6d1783afaf083c9b7dcabdef8
[ "Apache-2.0" ]
58
2018-03-22T21:34:29.000Z
2019-06-24T21:00:06.000Z
scripts/python/repos.py
open-power-ref-design/cluster-genesis
53a1db7e86726cf6d1783afaf083c9b7dcabdef8
[ "Apache-2.0" ]
8
2018-06-14T19:40:06.000Z
2019-05-08T09:48:30.000Z
#!/usr/bin/env python # Copyright 2019 IBM Corp. # # 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 require...
43.418703
95
0.52926
e8f7ca144ec3bd046cf6fe1365df90142836c05f
2,138
py
Python
setup.py
artmatsak/KeyBERT
6ab9af1cfe74a126e709539a2467426d0881945c
[ "MIT" ]
1,302
2020-10-27T11:38:25.000Z
2022-03-31T14:02:54.000Z
setup.py
artmatsak/KeyBERT
6ab9af1cfe74a126e709539a2467426d0881945c
[ "MIT" ]
81
2020-10-27T12:41:09.000Z
2022-03-31T06:10:16.000Z
setup.py
artmatsak/KeyBERT
6ab9af1cfe74a126e709539a2467426d0881945c
[ "MIT" ]
179
2020-10-30T21:43:14.000Z
2022-03-29T13:47:33.000Z
from setuptools import setup, find_packages test_packages = [ "pytest>=5.4.3", "pytest-cov>=2.6.1" ] base_packages = [ "sentence-transformers>=0.3.8", "scikit-learn>=0.22.2", "numpy>=1.18.5", "rich>=10.4.0" ] docs_packages = [ "mkdocs>=1.1", "mkdocs-material>=4.6.3", "mkdocstrings...
26.073171
96
0.630964
e8f7e99be240e2ed06134ac53d7db17e9f508dc7
4,413
py
Python
AI-City-Vehicle-Reid/train/data/datasets/bases.py
he010103/Traffic-Brain
abaeafba9e31b2ae9d4ec3447255146888dbb279
[ "MIT" ]
15
2019-07-29T03:20:05.000Z
2022-01-27T01:23:29.000Z
AI-City-Vehicle-Reid/train/data/datasets/bases.py
he010103/Traffic-Brain
abaeafba9e31b2ae9d4ec3447255146888dbb279
[ "MIT" ]
13
2019-07-24T06:28:45.000Z
2020-06-29T04:09:16.000Z
AI-City-Vehicle-Reid/train/data/datasets/bases.py
he010103/Traffic-Brain
abaeafba9e31b2ae9d4ec3447255146888dbb279
[ "MIT" ]
11
2019-06-16T18:39:20.000Z
2021-11-04T04:08:04.000Z
# encoding: utf-8 """ @author: sherlock @contact: sherlockliao01@gmail.com """ import numpy as np class BaseDataset(object): """ Base class of reid dataset """ def get_imagedata_info(self, data): pids, cams, tids = [], [], [] for _, pid, camid, tid in data: pids += [pid]...
43.264706
144
0.573759
e8f809bac6ab5818022a4af480f7cc08a31bfccd
1,158
py
Python
tools/split_json.py
Junction4Nako/mvp_pytorch
66db043d7beb1481c7a4c62908a4a46c7bfbc57a
[ "MIT" ]
20
2022-02-27T16:26:57.000Z
2022-03-23T07:09:47.000Z
tools/split_json.py
Junction4Nako/mvp_pytorch
66db043d7beb1481c7a4c62908a4a46c7bfbc57a
[ "MIT" ]
4
2022-03-09T11:16:00.000Z
2022-03-28T13:03:26.000Z
tools/split_json.py
Junction4Nako/mvp_pytorch
66db043d7beb1481c7a4c62908a4a46c7bfbc57a
[ "MIT" ]
6
2022-03-05T07:28:07.000Z
2022-03-24T09:38:10.000Z
import json import argparse import os from collections import defaultdict def main(): parser = argparse.ArgumentParser() parser.add_argument('--input_json', type=str, default=None) args = parser.parse_args() dirname = os.path.dirname(args.input_json) assert(args.input_json.endswith('.json')) da...
35.090909
122
0.601036
e8f8184d5f56279a4602485939481867107531fe
62,178
py
Python
test_tflite.py
Roxbili/kws-demo
7e0674f1407572fc8f148293b23fa20a5164bc5e
[ "Apache-2.0" ]
null
null
null
test_tflite.py
Roxbili/kws-demo
7e0674f1407572fc8f148293b23fa20a5164bc5e
[ "Apache-2.0" ]
null
null
null
test_tflite.py
Roxbili/kws-demo
7e0674f1407572fc8f148293b23fa20a5164bc5e
[ "Apache-2.0" ]
null
null
null
#-*- encoding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os.path import sys import numpy as np import tensorflow as tf import time import input_data import models from gen_bin import save_bin def data_stats(train_da...
42.70467
281
0.648718
e8f825dbce8522e605acd99a893fe79f7daf0a1a
8,161
py
Python
OpenStack_CSEP/CTFd/views.py
CaeserNieh/Cloud-Security-Exercise-Platform-with-OpenStack
d48d84ed87d7d86b1fbf218f1cec03a9d5b9573a
[ "Apache-2.0" ]
1
2019-04-10T02:43:48.000Z
2019-04-10T02:43:48.000Z
OpenStack_CSEP/CTFd/views.py
CaeserNieh/Cloud-Security-Exercise-Platform-with-OpenStack
d48d84ed87d7d86b1fbf218f1cec03a9d5b9573a
[ "Apache-2.0" ]
null
null
null
OpenStack_CSEP/CTFd/views.py
CaeserNieh/Cloud-Security-Exercise-Platform-with-OpenStack
d48d84ed87d7d86b1fbf218f1cec03a9d5b9573a
[ "Apache-2.0" ]
null
null
null
from flask import current_app as app, render_template, render_template_string, request, redirect, abort, jsonify, json as json_mod, url_for, session, Blueprint, Response from CTFd.utils import authed, ip2long, long2ip, is_setup, validate_url, get_config, sha512 from CTFd.models import db, Teams, Solves, Challenges, Wro...
36.596413
169
0.592329
e8f8524ea9aa03893fc0ab7e01624b8f6ad419ca
6,251
py
Python
examples/framework_examples/gail.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
287
2020-06-13T05:19:50.000Z
2022-03-31T04:46:32.000Z
examples/framework_examples/gail.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
19
2020-08-19T05:33:45.000Z
2022-03-27T15:16:03.000Z
examples/framework_examples/gail.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
44
2020-07-06T00:41:44.000Z
2022-03-29T17:05:08.000Z
from machin.frame.algorithms import PPO, GAIL from machin.utils.logging import default_logger as logger from torch.distributions import Categorical import torch as t import torch.nn as nn import gym # configurations env = gym.make("CartPole-v0") observe_dim = 4 action_num = 2 max_episodes = 1000 expert_episodes = 100 ...
30.642157
88
0.569829
e8f88ab91f9c4b9fe60d72a94ac41a639dc20e4e
12,642
py
Python
neutron/db/_model_query.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/db/_model_query.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/db/_model_query.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42: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 # d...
42
79
0.589226
e8f88db1ad9272b2c13a26bcb1546ab34b4e8c91
708
py
Python
trinity/utils/async_iter.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
137
2017-03-17T11:37:51.000Z
2022-03-07T07:51:28.000Z
trinity/utils/async_iter.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
102
2017-04-07T10:43:03.000Z
2018-11-11T18:01:56.000Z
trinity/utils/async_iter.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
39
2017-03-17T11:38:52.000Z
2021-02-18T23:05:17.000Z
from typing import ( AsyncIterable, Set, ) async def contains_all(async_gen: AsyncIterable[str], keywords: Set[str]) -> bool: """ Check wether an ``AsyncIterable[str]`` contains all of the given keywords. The keywords can be embedded in some larger string. Return ``True`` as soon as all keywords w...
32.181818
99
0.652542
e8f8b6f2535bcd4b11b4556ea176c5c080a90a2c
3,512
py
Python
bin/assess-vulnerabilities-risk.py
simonsdave/clair-database
39a83f22c07ca1ea93b05b019b67e2b3b54efbfc
[ "MIT" ]
29
2016-06-16T15:04:44.000Z
2022-03-23T10:28:54.000Z
bin/assess-vulnerabilities-risk.py
simonsdave/clair-database
39a83f22c07ca1ea93b05b019b67e2b3b54efbfc
[ "MIT" ]
13
2017-10-07T12:24:17.000Z
2022-01-26T12:45:42.000Z
bin/assess-vulnerabilities-risk.py
simonsdave/clair-database
39a83f22c07ca1ea93b05b019b67e2b3b54efbfc
[ "MIT" ]
8
2018-05-31T06:16:58.000Z
2021-04-24T09:14:09.000Z
#!/usr/bin/env python3.7 # -*- coding: utf-8 -*- """This script analyzes Clair generated vulnerabilities. The script is intended to be incorporated into a CI process to generate a non-zero exit status when vulnerabilities exceed an acceptable threshold. """ import logging import optparse import re import sys import ti...
28.786885
118
0.625
e8f8c172b5393bef5ba179015360cc59d6700ae1
3,128
py
Python
pyfu_k.py
NKID00/pyfu_k
8ea7d978bfaaf8854e6b9a8d71e8f125e7fd2047
[ "MIT" ]
null
null
null
pyfu_k.py
NKID00/pyfu_k
8ea7d978bfaaf8854e6b9a8d71e8f125e7fd2047
[ "MIT" ]
null
null
null
pyfu_k.py
NKID00/pyfu_k
8ea7d978bfaaf8854e6b9a8d71e8f125e7fd2047
[ "MIT" ]
null
null
null
# https://github.com/NKID00/pyfu_k # Copyright (c) 2021 NKID00 # SPDX-License-Identifier: MIT from functools import lru_cache from argparse import ArgumentParser __all__ = ['pyfu_k', 'VERSION'] VERSION = 'pyfu_k v0.3.2 with pyfu_k algorithm v0.2.0' @lru_cache() def _pyfu_k_number(number: int) -> str: '''Conver...
31.28
79
0.441496
e8f8d8a1a2e5d909c81f5008bab04dd7bd9cd85f
9,871
py
Python
src/python/pants/base/hash_utils.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/base/hash_utils.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
src/python/pants/base/hash_utils.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import hashlib import json import logging import typing from collections import OrderedDict from collections.abc import Iterable, Mapping, Set from enum import Enum from pathlib import Pat...
40.126016
112
0.639044
e8f8ea57f0bbc050f999d146bbb331213f74d32a
2,035
py
Python
flyqma/utilities/rbf.py
sbernasek/flyqma
4a622c3f5fed4456c3b9240f5a96428789fde9bd
[ "MIT" ]
2
2020-02-22T09:53:15.000Z
2020-02-24T19:01:24.000Z
flyqma/utilities/rbf.py
sbernasek/flyqma
4a622c3f5fed4456c3b9240f5a96428789fde9bd
[ "MIT" ]
null
null
null
flyqma/utilities/rbf.py
sbernasek/flyqma
4a622c3f5fed4456c3b9240f5a96428789fde9bd
[ "MIT" ]
null
null
null
from sklearn.cluster import k_means from scipy import interpolate import numpy as np import matplotlib.pyplot as plt class RBF: """ Radial basis function fit to scalar field. """ def __init__(self, xy, z, smooth=1, function='multiquadric'): """ Instantiate RBF object.self Arg...
27.876712
88
0.551843
e8f940a1787edec6cdf355021c3944a24740c920
2,261
py
Python
gbd_tool/gbd_hash.py
Weitspringer/gbd
fed29b9f15167553e93af9a1a88aa6782c761e15
[ "MIT" ]
null
null
null
gbd_tool/gbd_hash.py
Weitspringer/gbd
fed29b9f15167553e93af9a1a88aa6782c761e15
[ "MIT" ]
null
null
null
gbd_tool/gbd_hash.py
Weitspringer/gbd
fed29b9f15167553e93af9a1a88aa6782c761e15
[ "MIT" ]
1
2019-03-11T17:34:27.000Z
2019-03-11T17:34:27.000Z
# Global Benchmark Database (GBD) # Copyright (C) 2020 Markus Iser, Karlsruhe Institute of Technology (KIT) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or...
32.3
80
0.662539
e8f94df679ab1defe5545f5eca069064f0e9350d
24,141
py
Python
tests/chainer_tests/test_variable.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
tests/chainer_tests/test_variable.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
tests/chainer_tests/test_variable.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
import inspect import unittest import numpy as np import chainer from chainer import cuda from chainer import testing from chainer.testing import attr import re import six class Constant(chainer.Function): def __init__(self, outputs): self.outputs = outputs def forward_cpu(self, inputs): ...
32.622973
79
0.590779
e8f9508cc0ab942db1bb537ea9431aaacd1ad6e9
6,737
py
Python
tests/expression_static_test.py
bertrandchenal/tanker
b955311dc8f05f8bb3c0b391e169974e5c6a11b2
[ "0BSD" ]
1
2019-11-12T08:35:10.000Z
2019-11-12T08:35:10.000Z
tests/expression_static_test.py
bertrandchenal/tanker
b955311dc8f05f8bb3c0b391e169974e5c6a11b2
[ "0BSD" ]
1
2019-11-20T09:00:33.000Z
2019-11-20T09:00:33.000Z
tests/expression_static_test.py
bertrandchenal/tanker
b955311dc8f05f8bb3c0b391e169974e5c6a11b2
[ "0BSD" ]
1
2019-11-19T21:53:16.000Z
2019-11-19T21:53:16.000Z
from tanker import Table, View, Expression, ctx from .base_test import session def test_bitwise_operators(session): exp = Expression(Table.get('member')) ops = ('<', '>', '<=', '>=', '!=', 'like', 'ilike', 'is', 'isnot') for op in ops: ast = exp.parse('(%s name "foo")' % op) res = ast.eva...
32.080952
86
0.524269
e8f958059e03b51a0e2a4320451512a35af1fdad
5,224
py
Python
astronomaly/preprocessing/image_preprocessing.py
nmcardoso/astronomaly
28c6a7ced2e1553de463a74fc3a19635e45ae548
[ "BSD-3-Clause" ]
48
2019-11-22T14:41:59.000Z
2022-03-23T01:48:59.000Z
astronomaly/preprocessing/image_preprocessing.py
nmcardoso/astronomaly
28c6a7ced2e1553de463a74fc3a19635e45ae548
[ "BSD-3-Clause" ]
12
2021-02-23T15:35:29.000Z
2022-01-26T09:48:35.000Z
astronomaly/preprocessing/image_preprocessing.py
nmcardoso/astronomaly
28c6a7ced2e1553de463a74fc3a19635e45ae548
[ "BSD-3-Clause" ]
6
2019-11-27T10:02:43.000Z
2021-10-11T02:18:06.000Z
import numpy as np from skimage.transform import resize import cv2 from astropy.stats import sigma_clipped_stats def image_transform_log(img): """ Normalise and then perform log transform on image Parameters ---------- img : np.ndarray Input image (assumed float values) Returns -...
22.135593
78
0.56987
e8f965ef4ff4c76b932e37d404330eef1fcf3a35
5,271
py
Python
demisto_sdk/commands/run_playbook/playbook_runner.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/run_playbook/playbook_runner.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/run_playbook/playbook_runner.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
import os import time import demisto_client from demisto_client.demisto_api.rest import ApiException from demisto_sdk.commands.common.tools import (LOG_COLORS, print_color, print_error) class PlaybookRunner: """PlaybookRunner is a class that's designed to run a play...
39.335821
108
0.618668
e8f96fc935f2e8e1886687c11fa1609e7c3449c5
1,886
py
Python
python/tvm/relax/ty.py
ZihengJiang/relax
5676ffa4c423adf2b3f1920c5fdaca43369e9855
[ "Apache-2.0" ]
1
2022-01-14T05:54:59.000Z
2022-01-14T05:54:59.000Z
python/tvm/relax/ty.py
ZihengJiang/relax
5676ffa4c423adf2b3f1920c5fdaca43369e9855
[ "Apache-2.0" ]
null
null
null
python/tvm/relax/ty.py
ZihengJiang/relax
5676ffa4c423adf2b3f1920c5fdaca43369e9855
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.290909
86
0.733298
e8f9893666006a85c827456749f29fcd67f24bbf
671
py
Python
LC/271.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/271.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/271.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Codec: def encode(self, strs): """Encodes a list of strings to a single string. :type strs: List[str] :rtype: str """ return ''.join([str(len(s))+':'+s for s in strs]) def decode(self, s): """Decodes a single string to a list of strings. ...
23.964286
60
0.481371
e8f9918cbda1d986092e6c585e2e9c81015ea168
14,096
py
Python
vistrails/api/__init__.py
MaritimeResearchInstituteNetherlands/VisTrails
9b42ca9b3550b599467b0c7dfa56f57bbd97a4f2
[ "BSD-3-Clause" ]
83
2015-01-05T14:50:50.000Z
2021-09-17T19:45:26.000Z
vistrails/api/__init__.py
VizierDB/Vistrails
895f7204fbf56a9cdf3f46afae72969c2fc64a24
[ "BSD-3-Clause" ]
254
2015-01-02T20:39:19.000Z
2018-11-28T17:16:44.000Z
vistrails/api/__init__.py
VizierDB/Vistrails
895f7204fbf56a9cdf3f46afae72969c2fc64a24
[ "BSD-3-Clause" ]
40
2015-04-17T16:46:36.000Z
2021-09-28T22:43:24.000Z
############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## ...
36.997375
102
0.670758
e8f9ccedc1052273e5e51ec5d8a73f9dac3b7e7e
2,675
py
Python
setup.py
gcandal/appier
00a8bd952fda2392184308e324bd97ba4bb18f3c
[ "Apache-2.0" ]
null
null
null
setup.py
gcandal/appier
00a8bd952fda2392184308e324bd97ba4bb18f3c
[ "Apache-2.0" ]
null
null
null
setup.py
gcandal/appier
00a8bd952fda2392184308e324bd97ba4bb18f3c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Appier Framework # Copyright (c) 2008-2016 Hive Solutions Lda. # # This file is part of Hive Appier Framework. # # Hive Appier Framework is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apach...
31.845238
80
0.614206
e8f9e06a3ceeacf6850b9fddf297bd0ca82e99d5
3,203
py
Python
restfulie/converters.py
JNRowe-retired/restfulie-py
8ac2bc401068c7bae6da3d107b004835618165d7
[ "Apache-2.0" ]
3
2015-03-09T09:17:46.000Z
2016-05-03T02:51:25.000Z
restfulie/converters.py
JNRowe-retired/restfulie-py
8ac2bc401068c7bae6da3d107b004835618165d7
[ "Apache-2.0" ]
null
null
null
restfulie/converters.py
JNRowe-retired/restfulie-py
8ac2bc401068c7bae6da3d107b004835618165d7
[ "Apache-2.0" ]
1
2020-12-14T23:23:26.000Z
2020-12-14T23:23:26.000Z
import json from xml.etree import ElementTree from opensearch import OpenSearchDescription from resources.xml import XMLResource from resources.json import JsonResource class Converters(object): """ Utility methods for converters. """ types = {} @staticmethod def register(a_type, converter): ...
26.691667
65
0.626912
e8f9e85c3c4efcc0409657914622d47442bc1cf4
1,622
py
Python
ignite/metrics/mean_pairwise_distance.py
VinhLoiIT/ignite
3b2b9655ea9f80ce49b8a9f1c2d72f80e2a95f56
[ "BSD-3-Clause" ]
1
2020-06-13T15:22:08.000Z
2020-06-13T15:22:08.000Z
ignite/metrics/mean_pairwise_distance.py
hefv57/ignite
a22a0f5e909ac70d2a1f76a60b6e84b2134f196c
[ "BSD-3-Clause" ]
null
null
null
ignite/metrics/mean_pairwise_distance.py
hefv57/ignite
a22a0f5e909ac70d2a1f76a60b6e84b2134f196c
[ "BSD-3-Clause" ]
1
2020-06-13T15:30:46.000Z
2020-06-13T15:30:46.000Z
from typing import Union, Sequence, Optional, Callable import torch from torch.nn.functional import pairwise_distance from ignite.exceptions import NotComputableError from ignite.metrics.metric import Metric from ignite.metrics.metric import sync_all_reduce, reinit__is_reduced __all__ = ["MeanPairwiseDistance"] cl...
33.791667
115
0.685573
e8fa2413ddaadaf0d758fa09b7c205bffec1e6d9
5,296
py
Python
tests/test_tf_optimizer.py
graykode/cella
b17859976becd1fca30a0ea897928a08157d22a2
[ "Apache-2.0" ]
71
2020-07-16T10:04:40.000Z
2022-02-11T13:26:55.000Z
tests/test_tf_optimizer.py
graykode/cella
b17859976becd1fca30a0ea897928a08157d22a2
[ "Apache-2.0" ]
16
2020-08-10T19:24:16.000Z
2022-02-10T02:22:56.000Z
tests/test_tf_optimizer.py
graykode/cella
b17859976becd1fca30a0ea897928a08157d22a2
[ "Apache-2.0" ]
5
2020-08-12T02:43:16.000Z
2021-10-03T18:46:13.000Z
# Copyright 2020-present Tae Hwan Jung # # 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...
35.306667
83
0.690521
e8fa321f385c03080101ba4ad05aceeef505a261
1,073
py
Python
installer/core/providers/aws/boto3/aws_lambda.py
Diffblue-benchmarks/pacbot
4709eb11f87636bc42a52e7a76b740f9d76d156d
[ "Apache-2.0" ]
1
2020-01-14T10:14:27.000Z
2020-01-14T10:14:27.000Z
installer/core/providers/aws/boto3/aws_lambda.py
Diffblue-benchmarks/pacbot
4709eb11f87636bc42a52e7a76b740f9d76d156d
[ "Apache-2.0" ]
19
2021-07-02T18:53:27.000Z
2022-03-02T09:55:29.000Z
installer/core/providers/aws/boto3/aws_lambda.py
Diffblue-benchmarks/pacbot
4709eb11f87636bc42a52e7a76b740f9d76d156d
[ "Apache-2.0" ]
1
2020-01-14T09:10:10.000Z
2020-01-14T09:10:10.000Z
import boto3 def get_lambda_client(access_key, secret_key, region): """ Returns the client object for AWS Lambda Args: access_key (str): AWS Access Key secret_key (str): AWS Secret Key region (str): AWS Region Returns: obj: Lambda Client Obj """ return boto3.c...
25.547619
73
0.653308
e8fa4950f11abff62e5a81b9d78299722c1ad2c9
797
py
Python
setup.py
alejandropages/Zookeeper
f3d5c2bb6f7f95d38902e99ec93aac0037105ee0
[ "MIT" ]
null
null
null
setup.py
alejandropages/Zookeeper
f3d5c2bb6f7f95d38902e99ec93aac0037105ee0
[ "MIT" ]
null
null
null
setup.py
alejandropages/Zookeeper
f3d5c2bb6f7f95d38902e99ec93aac0037105ee0
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="zookeeper", version="0.0.1", author="Alejandro D Pages", author_email="apages2@unl.edu", description="Zooniverse data management tools", long_description=long...
30.653846
62
0.643664
e8fa8598367a91b9a7149303e1d167e341214e68
7,420
py
Python
deltacat/utils/pyarrow.py
rkenmi/deltacat
b1fe11ad2732b0134436b0337e8c4ec84bc19d4a
[ "Apache-2.0" ]
null
null
null
deltacat/utils/pyarrow.py
rkenmi/deltacat
b1fe11ad2732b0134436b0337e8c4ec84bc19d4a
[ "Apache-2.0" ]
null
null
null
deltacat/utils/pyarrow.py
rkenmi/deltacat
b1fe11ad2732b0134436b0337e8c4ec84bc19d4a
[ "Apache-2.0" ]
null
null
null
import pyarrow as pa import gzip import bz2 import io import logging from functools import partial from fsspec import AbstractFileSystem from pyarrow import feather as paf, parquet as papq, csv as pacsv, \ json as pajson from ray.data.datasource import BlockWritePathProvider from deltacat import logs from delta...
32.121212
79
0.660647
e8fac89ce504ec12928da8ae69e56bda336bcc60
2,760
py
Python
qupulse/utils/types.py
lankes-fzj/qupulse
46f00f70bc998b98ac1ae4721d1a9a1c10b675aa
[ "MIT" ]
null
null
null
qupulse/utils/types.py
lankes-fzj/qupulse
46f00f70bc998b98ac1ae4721d1a9a1c10b675aa
[ "MIT" ]
null
null
null
qupulse/utils/types.py
lankes-fzj/qupulse
46f00f70bc998b98ac1ae4721d1a9a1c10b675aa
[ "MIT" ]
null
null
null
import typing import abc import inspect import numbers import fractions import warnings import numpy __all__ = ["MeasurementWindow", "ChannelID", "HashableNumpyArray", "TimeType", "time_from_float", "DocStringABCMeta", "SingletonABCMeta"] MeasurementWindow = typing.Tuple[str, numbers.Real, numbers.Real] C...
32.857143
117
0.628986
e8fae19c6e76fad7ae0b826725845b45908db8e2
2,069
py
Python
sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
31.348485
94
0.724505
e8fae1f04c3876bc5ed333ecddacada917e8852e
530
py
Python
piwise/criterion.py
heixialeeLeon/segment_piwise
4eaeeb4aa36298c1140c9fb8a6adef7a3bcfb03f
[ "BSD-3-Clause" ]
null
null
null
piwise/criterion.py
heixialeeLeon/segment_piwise
4eaeeb4aa36298c1140c9fb8a6adef7a3bcfb03f
[ "BSD-3-Clause" ]
null
null
null
piwise/criterion.py
heixialeeLeon/segment_piwise
4eaeeb4aa36298c1140c9fb8a6adef7a3bcfb03f
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class CrossEntropyLoss2d(nn.Module): def __init__(self, weight=None): super().__init__() self.loss = nn.NLLLoss2d(weight) def forward(self, outputs, targets): return self.loss(F.log_softmax(outputs), targets) if __n...
25.238095
68
0.675472
e8fafcd0df412ae8e6935d40e6a999c236116516
958
py
Python
examples/optimisation.py
henrymj/neurodesign
c464cbea31841dc49d540eb702e79e7c924901bc
[ "MIT" ]
18
2017-03-24T19:08:51.000Z
2021-12-02T19:57:30.000Z
examples/optimisation.py
henrymj/neurodesign
c464cbea31841dc49d540eb702e79e7c924901bc
[ "MIT" ]
9
2017-01-31T21:38:43.000Z
2020-09-26T10:14:29.000Z
examples/optimisation.py
henrymj/neurodesign
c464cbea31841dc49d540eb702e79e7c924901bc
[ "MIT" ]
12
2017-09-19T19:54:33.000Z
2021-01-21T00:46:20.000Z
from neurodesign import experiment, optimisation, generate,msequence,report EXP = experiment( TR=2, n_trials=100, P = [0.33,0.33,0.33], C = [[1,0,0],[0,1,0],[0,0,1],[1,-1,0],[0,1,-1]], n_stimuli = 3, rho = 0.3, resolution=0.1, stim_duration=1, t_pre = 0, t_post = 2, restnum=...
18.075472
75
0.528184
e8fb02952803d117378c787b2cc589b06e753d5f
646
py
Python
yourproduct/unittest_context_advanced.py
yukihiko-shinoda/fixture-file-handler
f0b4ae1920922af107a8aaff317e5949b296d375
[ "MIT" ]
null
null
null
yourproduct/unittest_context_advanced.py
yukihiko-shinoda/fixture-file-handler
f0b4ae1920922af107a8aaff317e5949b296d375
[ "MIT" ]
4
2020-03-24T17:35:37.000Z
2020-08-11T18:49:40.000Z
yourproduct/unittest_context_advanced.py
yukihiko-shinoda/fixture-file-handler
f0b4ae1920922af107a8aaff317e5949b296d375
[ "MIT" ]
null
null
null
from pathlib import Path import unittest from fixturefilehandler import ResourceFileDeployer from fixturefilehandler.file_paths import RelativeDeployFilePath class AdvancedConfigurableTestCase(unittest.TestCase): @property def file_path(self) -> RelativeDeployFilePath: return RelativeDeployFilePath(...
26.916667
64
0.70743
e8fb17a76ae40e3df5f2a622d2ec566f44ade97c
52,557
py
Python
mediagoblin/db/models.py
Piratas/biblioteca
1770feba67173a3beb43853eed33586d47abeac1
[ "CC0-1.0" ]
null
null
null
mediagoblin/db/models.py
Piratas/biblioteca
1770feba67173a3beb43853eed33586d47abeac1
[ "CC0-1.0" ]
1
2018-01-06T18:12:02.000Z
2018-01-06T18:27:31.000Z
mediagoblin/db/models.py
Piratas/biblioteca
1770feba67173a3beb43853eed33586d47abeac1
[ "CC0-1.0" ]
1
2019-05-13T15:04:10.000Z
2019-05-13T15:04:10.000Z
# GNU MediaGoblin -- federated, autonomous media hosting # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either versio...
35.607724
84
0.60736
e8fb1a74a409d1fb99636a3e7b815132bf476d1c
4,219
py
Python
repos/spikeextractors/spikeextractors/MultiRecordingExtractor.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spikeextractors/spikeextractors/MultiRecordingExtractor.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spikeextractors/spikeextractors/MultiRecordingExtractor.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
from .RecordingExtractor import RecordingExtractor import numpy as np class MultiRecordingExtractor(RecordingExtractor): def __init__(self, recordings, epoch_names=None): RecordingExtractor.__init__(self) if epoch_names is None: epoch_names = [str(i) for i in range(len(recordings))] ...
41.362745
115
0.652287