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
799eeead853ab3708c2932e1254825f72ec993af
1,826
py
Python
count_model_size.py
eungbean/knowledge-distillation-cifar10
683379804c8724d097a845cee85f130b6767dbd7
[ "MIT" ]
1
2021-02-27T15:13:32.000Z
2021-02-27T15:13:32.000Z
count_model_size.py
eungbean/knowledge-distillation-cifar10
683379804c8724d097a845cee85f130b6767dbd7
[ "MIT" ]
9
2019-12-16T22:16:55.000Z
2021-09-08T01:23:09.000Z
count_model_size.py
eungbean/knowledge-distillation-cifar10
683379804c8724d097a845cee85f130b6767dbd7
[ "MIT" ]
null
null
null
'''Count # of parameters in a trained model''' import argparse import os import numpy as np import torch import utils import model.net as net import model.resnet as resnet import model.wrn as wrn import model.resnext as resnext import utils parser = argparse.ArgumentParser() # parser.add_argument('--data_dir', defau...
31.482759
97
0.69989
799f6a03170cfbd942dd35cd2b2f6c7ba35460b3
3,675
py
Python
tests/test_download.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
tests/test_download.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
1
2018-06-09T18:03:35.000Z
2018-06-09T18:03:35.000Z
tests/test_download.py
sasese/Flexget
8cca4a6a3cacc919c7a5b36f428176e170739de5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import import sys import tempfile from nose.plugins.attrib import attr from nose.plugins.skip import SkipTest from nose.tools import assert_raises from flexget.task import TaskAbort from tests import FlexGetBase # TODO more checks: fail_html, etc. class Tes...
32.8125
117
0.595646
799f711d3d23733b10cb879643967213041eb772
1,974
py
Python
src/autosetup/tests/test_rerunautosetup_centralnode.py
cdeck3r/3DScanner
bbd80d676985d2978ed2bc981164b9f72f4c3737
[ "MIT" ]
2
2021-03-26T18:14:24.000Z
2021-10-13T06:32:11.000Z
src/autosetup/tests/test_rerunautosetup_centralnode.py
cdeck3r/3DScanner
bbd80d676985d2978ed2bc981164b9f72f4c3737
[ "MIT" ]
null
null
null
src/autosetup/tests/test_rerunautosetup_centralnode.py
cdeck3r/3DScanner
bbd80d676985d2978ed2bc981164b9f72f4c3737
[ "MIT" ]
3
2020-12-01T08:23:46.000Z
2021-10-13T06:32:11.000Z
# # Testinfra testcases to validate the autosetup run. # # Author: cdeck3r # import os import subprocess import pytest ##################################################### # Tests ##################################################### @pytest.mark.usefixtures("centralnode_ssh_config") class TestRerunAutosetupCamno...
33.457627
89
0.625127
799f8585567b21eefebf9f43b941e8dbb4aaa0d7
16,189
py
Python
src/converter/util/__init__.py
peta-pico/COW
dabc71ac01c5c3453c31c0c9183a3ccf4cec2261
[ "MIT" ]
null
null
null
src/converter/util/__init__.py
peta-pico/COW
dabc71ac01c5c3453c31c0c9183a3ccf4cec2261
[ "MIT" ]
null
null
null
src/converter/util/__init__.py
peta-pico/COW
dabc71ac01c5c3453c31c0c9183a3ccf4cec2261
[ "MIT" ]
null
null
null
from rdflib import Dataset, Graph, ConjunctiveGraph, Namespace, RDF, RDFS, OWL, XSD, Literal, URIRef import os import yaml import datetime import string import logging import iribaker import urllib import uuid from hashlib import sha1 logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) ch = logging.S...
38.822542
124
0.611897
799f8ef4bbd511598e1ce55d24b285be5ca641ff
2,136
py
Python
test/pyom_consistency/tridiag_test.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
115
2019-11-23T02:31:30.000Z
2022-03-29T12:58:30.000Z
test/pyom_consistency/tridiag_test.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
207
2019-11-21T13:21:22.000Z
2022-03-31T23:36:09.000Z
test/pyom_consistency/tridiag_test.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
21
2020-01-28T13:13:39.000Z
2022-02-02T13:46:33.000Z
import pytest import numpy as np from veros import runtime_settings from veros.pyom_compat import load_pyom @pytest.mark.skipif(runtime_settings.backend != "jax", reason="Must use JAX backend") @pytest.mark.parametrize("use_ext", [True, False]) def test_solve_tridiag_jax(pyom2_lib, use_ext): from veros.core.oper...
31.880597
97
0.612828
799fa75b49c97e1eecf330561cb9187d202fe13a
6,099
py
Python
pypeapp/lib/mongo.py
studio-pipe/pype-setup
7301fc7317c06c379c22423c4509dbc45d3e2680
[ "MIT" ]
null
null
null
pypeapp/lib/mongo.py
studio-pipe/pype-setup
7301fc7317c06c379c22423c4509dbc45d3e2680
[ "MIT" ]
null
null
null
pypeapp/lib/mongo.py
studio-pipe/pype-setup
7301fc7317c06c379c22423c4509dbc45d3e2680
[ "MIT" ]
null
null
null
import os try: from urllib.parse import urlparse, parse_qs, unquote, urlsplit, urlunsplit except ImportError: from urlparse import urlparse, parse_qs class MongoEnvNotSet(Exception): pass def build_netloc(host, port): # type: (str, Optional[int]) -> str """ Build a netloc from a host-port p...
28.236111
114
0.612232
799fd2ecd8cc228f06f9d3cde7280b7a7c55c8c3
5,111
py
Python
pipeline/parsers/fileparser.py
RePierre/metis
cc9deae680ff0f39c787af5395e4131f6369d7ee
[ "Apache-2.0" ]
null
null
null
pipeline/parsers/fileparser.py
RePierre/metis
cc9deae680ff0f39c787af5395e4131f6369d7ee
[ "Apache-2.0" ]
8
2017-10-05T11:00:16.000Z
2017-11-13T22:37:30.000Z
pipeline/parsers/fileparser.py
RePierre/metis
cc9deae680ff0f39c787af5395e4131f6369d7ee
[ "Apache-2.0" ]
null
null
null
import os import gzip import logging import xmltodict as xd from dictquery import DictQuery from articleparser import ArticleParser class FileParser(): """Iterates over files in a specific directory and parses article information """ def __init__(self, debug_mode): self._xpaths = [ (...
60.129412
215
0.582078
799fd646a2ba7e6254b5c2973988f2f2db7fe1c1
1,334
py
Python
classes/sfxbox.py
ShayLn/py-fighter
01ace29afb066e6d5965d1fd460c5939c8b8c81b
[ "MIT" ]
null
null
null
classes/sfxbox.py
ShayLn/py-fighter
01ace29afb066e6d5965d1fd460c5939c8b8c81b
[ "MIT" ]
null
null
null
classes/sfxbox.py
ShayLn/py-fighter
01ace29afb066e6d5965d1fd460c5939c8b8c81b
[ "MIT" ]
2
2020-12-15T11:53:41.000Z
2021-01-07T01:09:33.000Z
''' SFX box A class for providing specific sound effects. The idea behind this class, is that by producing one class to handle all sound effects, sound effects can be called from elsewhere in the code without having to deal with the pygame code. While this arguably creates extra complexity with the code, by puttin...
30.318182
72
0.721889
79a01d35dd433b31618acfa622bd164a0fe2fe44
2,253
py
Python
config.py
remyoudompheng/arch-security-tracker
8451b618d74c9b322e163da5444452f25f0585cc
[ "MIT" ]
null
null
null
config.py
remyoudompheng/arch-security-tracker
8451b618d74c9b322e163da5444452f25f0585cc
[ "MIT" ]
null
null
null
config.py
remyoudompheng/arch-security-tracker
8451b618d74c9b322e163da5444452f25f0585cc
[ "MIT" ]
null
null
null
from configparser import ConfigParser from glob import glob from os import environ from os.path import abspath from os.path import dirname basedir = abspath(dirname(__file__)) config = ConfigParser() config_files = sorted(glob('{}/config/*.conf'.format(basedir))) for config_file in config_files: config.read(confi...
36.934426
119
0.804705
79a051cfd6af5a8b9cffc65f730cafd73c7862a6
1,331
py
Python
app/core/tests/test_admin.py
reallyusefulengine/django_rest_recipe
49943404bfe4b6a84c3b4f6d8332f952982b3281
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
reallyusefulengine/django_rest_recipe
49943404bfe4b6a84c3b4f6d8332f952982b3281
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
reallyusefulengine/django_rest_recipe
49943404bfe4b6a84c3b4f6d8332f952982b3281
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='test@testsu.com', ...
33.275
68
0.634861
79a0824d4cd1120e38049c8cfca01d590fd31120
2,959
py
Python
.leetcode/373.find-k-pairs-with-smallest-sums.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/373.find-k-pairs-with-smallest-sums.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/373.find-k-pairs-with-smallest-sums.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=373 lang=python3 # # [373] Find K Pairs with Smallest Sums # # https://leetcode.com/problems/find-k-pairs-with-smallest-sums/description/ # # algorithms # Medium (39.02%) # Likes: 2236 # Dislikes: 141 # Total Accepted: 139.6K # Total Submissions: 357.8K # Testcase Example: '[1,7,11]\n[2,4,6...
22.08209
77
0.535992
79a09901502f3a7f751fa46057bed2f2e457de09
463
py
Python
moneydog/filters.py
Falldog/moneydog
86e7cab1c0b35f07d1fe42e699e1159f57f1bef5
[ "Apache-2.0" ]
null
null
null
moneydog/filters.py
Falldog/moneydog
86e7cab1c0b35f07d1fe42e699e1159f57f1bef5
[ "Apache-2.0" ]
null
null
null
moneydog/filters.py
Falldog/moneydog
86e7cab1c0b35f07d1fe42e699e1159f57f1bef5
[ "Apache-2.0" ]
null
null
null
from moneydog import app from moneydog.models import str2category, category2str from datetime import date app.jinja_env.filters['str2category'] = str2category app.jinja_env.filters['category2str'] = category2str @app.template_filter('reverse') def reverse_filter(s): return s[::-1] @app.template_fi...
23.15
55
0.710583
79a0aae019234431884255d16ea2ce3b0e06ea9c
2,965
py
Python
src/radical/ensemblemd/kernel_plugins/misc/cat.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
src/radical/ensemblemd/kernel_plugins/misc/cat.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
src/radical/ensemblemd/kernel_plugins/misc/cat.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
#!/usr/bin/env python """A kernel that concatenates two files. """ __author__ = "Vivek <vivek.balasubramanian@rutgers.edu>" __copyright__ = "Copyright 2014, http://radical.rutgers.edu" __license__ = "MIT" from copy import deepcopy from radical.ensemblemd.exceptions import ArgumentError from radical.ensemblemd....
34.882353
114
0.415852
79a0b60e3b4a2b514b62b7349f103c54207aa228
1,015
py
Python
acasa/things/dim.py
pauldamian/-casa
cac1f1b2f3526ceb41a49a790c2a94d07d44ba18
[ "Apache-2.0" ]
null
null
null
acasa/things/dim.py
pauldamian/-casa
cac1f1b2f3526ceb41a49a790c2a94d07d44ba18
[ "Apache-2.0" ]
null
null
null
acasa/things/dim.py
pauldamian/-casa
cac1f1b2f3526ceb41a49a790c2a94d07d44ba18
[ "Apache-2.0" ]
null
null
null
import RPi.GPIO as gp from time import sleep from utility import util import constants """ Pin Mapping: Pin 4 - VCC 5V Pin 6 - GND Pin 7 - SYNC - PWM Pin 11 - GATE - Digital """ gm = util.get_sensor_attribute_value(constants.DIMMER, constants.SENSOR_PIN) dimming = 100 AC_LOAD = gm['gate'] SYNC = g...
21.145833
77
0.638424
79a0be236bf7a166189363a9333498ae90407a9b
791
py
Python
cms/templatetags/dates.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
cms/templatetags/dates.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
cms/templatetags/dates.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
import datetime from django import template register = template.Library() @register.filter(name='date_to_day') def date_to_weekday(date): """ Accpets datetime.date() object and turn it to week day. Precondition: Week starts with saturday. """ days = [0, 'الاتنين', 'التلات', 'الأربع', 'الخميس', 'ال...
24.71875
84
0.604298
79a11440a6efaba67173ffdf2e619468016b51e1
8,244
py
Python
wobble/history.py
lilyling27/wobble
56cabbfc5574509bcaff484509177b4f3f6d10cc
[ "MIT" ]
null
null
null
wobble/history.py
lilyling27/wobble
56cabbfc5574509bcaff484509177b4f3f6d10cc
[ "MIT" ]
null
null
null
wobble/history.py
lilyling27/wobble
56cabbfc5574509bcaff484509177b4f3f6d10cc
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from matplotlib import animation from .utils import get_session class History(object): """ Information about optimization history of a single order stored in numpy arrays/lists. """ def __init__(self, model, niter): self.r = model.r ...
48.210526
136
0.588792
79a118da6e16837a14bca994c3f1fd5212fe1f3b
409
py
Python
pandaserver/test/testUpdateWorkerPilotStatus.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
null
null
null
pandaserver/test/testUpdateWorkerPilotStatus.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
null
null
null
pandaserver/test/testUpdateWorkerPilotStatus.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
null
null
null
from pandaserver.test.testutils import sendCommand from pandacommon.pandalogger.PandaLogger import PandaLogger _logger = PandaLogger().getLogger('testUpdateWorkerPilotStatus') node = {} node['workerID'] = 9139456 node['harvesterID'] = 'CERN_central_k8s' node['status'] = 'started' node['site'] = 'CERN' function = "up...
24.058824
64
0.775061
79a11b1ce0f3bbd39b2e49a913a9d388fda0801c
5,086
py
Python
test_project/test_app/tests.py
ninemoreminutes/django-crum
9478f38726dc9dd3e11c40e56a5b5694c221550b
[ "BSD-3-Clause" ]
68
2015-02-09T18:15:02.000Z
2022-03-15T06:22:35.000Z
test_project/test_app/tests.py
ninemoreminutes/django-crum
9478f38726dc9dd3e11c40e56a5b5694c221550b
[ "BSD-3-Clause" ]
17
2016-06-11T17:57:25.000Z
2022-02-10T07:05:39.000Z
test_project/test_app/tests.py
ninemoreminutes/django-crum
9478f38726dc9dd3e11c40e56a5b5694c221550b
[ "BSD-3-Clause" ]
7
2015-07-09T13:37:40.000Z
2022-03-28T15:16:46.000Z
# Python from __future__ import with_statement from __future__ import unicode_literals import base64 try: from importlib import reload as reload_module except ImportError: from imp import reload as reload_module import json # Django from django.test import TestCase from django.test.client import Client try: ...
42.383333
77
0.666929
79a11cf6d79d248acb63bec7f8a9de5e56b0a110
10,880
py
Python
test/test_suite.py
valdergallo/sqlalchemy-hana
27affd99677706999fdddda4bd9cd7460418dfad
[ "Apache-2.0" ]
null
null
null
test/test_suite.py
valdergallo/sqlalchemy-hana
27affd99677706999fdddda4bd9cd7460418dfad
[ "Apache-2.0" ]
null
null
null
test/test_suite.py
valdergallo/sqlalchemy-hana
27affd99677706999fdddda4bd9cd7460418dfad
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 SAP SE. # # 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, # softw...
33.684211
133
0.636949
79a130a3eb148e6c5a8fa3cdf174780b354c23c9
5,474
py
Python
python/paddle/v2/fluid/layers/math_op_patch.py
boru-roylu/Paddle
b15c675530db541440ddb5b7e774d522ecaf1533
[ "ECL-2.0", "Apache-2.0" ]
1
2019-03-14T05:20:07.000Z
2019-03-14T05:20:07.000Z
python/paddle/v2/fluid/layers/math_op_patch.py
boru-roylu/Paddle
b15c675530db541440ddb5b7e774d522ecaf1533
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/paddle/v2/fluid/layers/math_op_patch.py
boru-roylu/Paddle
b15c675530db541440ddb5b7e774d522ecaf1533
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve. # # 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 a...
35.316129
74
0.556083
79a1603cfe34683debd668c59f882c60f997530e
11,710
py
Python
text-dream/python/dream/reconstruct_changed_activation.py
rothenha/interpretability
37c664dc28f574b8f8d2eaf01a3ee4be3fecb1fd
[ "Apache-2.0" ]
75
2019-06-08T13:29:56.000Z
2022-03-19T20:55:34.000Z
text-dream/python/dream/reconstruct_changed_activation.py
Sparkier/interpretability
37c664dc28f574b8f8d2eaf01a3ee4be3fecb1fd
[ "Apache-2.0" ]
15
2019-07-26T17:32:41.000Z
2020-01-08T07:20:54.000Z
text-dream/python/dream/reconstruct_changed_activation.py
rothenha/interpretability
37c664dc28f574b8f8d2eaf01a3ee4be3fecb1fd
[ "Apache-2.0" ]
14
2019-08-14T18:46:38.000Z
2022-03-13T22:24:55.000Z
# Copyright 2018 Google LLC. 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...
46.468254
82
0.711102
79a1754d7be0bc44ad99890c188b81866c6e2712
7,019
py
Python
fusionsid/__main__.py
FusionSid/FusionSidAPI.py
e1b50622bf4fcec8265f8fd4e9b3ac79b580d286
[ "MIT" ]
5
2022-03-05T23:29:33.000Z
2022-03-20T07:44:20.000Z
fusionsid/__main__.py
FusionSid/FusionSidAPI.py
e1b50622bf4fcec8265f8fd4e9b3ac79b580d286
[ "MIT" ]
null
null
null
fusionsid/__main__.py
FusionSid/FusionSidAPI.py
e1b50622bf4fcec8265f8fd4e9b3ac79b580d286
[ "MIT" ]
null
null
null
import inspect import asyncio import argparse from rich.text import Text from rich.panel import Panel from rich.table import Table from rich.console import Console from rich.prompt import Prompt, Confirm import fusionsid async def get_api_stats(): console = Console() stats = await fusionsid.stats(json=True)...
31.904545
136
0.567745
79a1925fce43ec9cb1a24bc8974e2951ea046025
16,687
py
Python
smooth/components/component_stratified_thermal_storage.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
smooth/components/component_stratified_thermal_storage.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
smooth/components/component_stratified_thermal_storage.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
""" This module represents a stratified thermal storage tank, based on oemof thermal's component. ****** Scope ****** A stratified thermal storage vessel is able to store thermal energy through stratification, and thus minimise energy wastage in systems. ******* Concept ******* This component has been largely based o...
44.145503
100
0.650986
79a19ebe0710d7c1a8ea04c0f12aa09fd8467639
3,728
py
Python
keystoneclient/tests/v2_0/test_services.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
keystoneclient/tests/v2_0/test_services.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
keystoneclient/tests/v2_0/test_services.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
35.169811
79
0.563573
79a1a0e2ef69bf38a110c63a5f3471f6d2e9df93
10,093
py
Python
layers/gat_layer.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
layers/gat_layer.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
6
2022-01-06T21:27:06.000Z
2022-01-19T06:28:56.000Z
layers/gat_layer.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from dgl.nn.pytorch import GATConv """ GAT: Graph Attention Network Graph Attention Networks (Veličković et al., ICLR 2018) https://arxiv.org/abs/1710.10903 """ class GATLayer(nn.Module): """ Parameters ---------- in_dim :...
27.804408
106
0.564252
79a1aab45b81db6faa32be7fa0302755b4b5a949
2,429
py
Python
toontown/coghq/DistributedCogKartAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/coghq/DistributedCogKartAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/DistributedCogKartAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.directnotify import DirectNotifyGlobal from toontown.building import DistributedElevatorExtAI from toontown.building import ElevatorConstants from toontown.safezone import DistributedGolfKartAI from toontown.toonbase import ToontownGlobals class DistributedCogKartAI(DistributedElevatorExtAI.DistributedElev...
41.87931
105
0.661589
79a1ffe312ba82f754ffac30b40cfdae4d3ebe04
2,173
gyp
Python
ios/net/ios_net.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
ios/net/ios_net.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
ios/net/ios_net.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'targets': [ { # GN version: //ios/net 'target_name': 'ios_net', 'type': 'static_libr...
32.924242
72
0.635067
79a20662ce028d4aefa9c00024a3184b75be4c8e
7,187
py
Python
src/deep_dialog/dialog_system/dialog_manager.py
tanayz/TC-Bot-py3
048aca2fe58ced780baa0b24390cb44ce5ef6850
[ "MIT" ]
6
2018-11-10T15:50:31.000Z
2021-08-05T15:37:55.000Z
src/deep_dialog/dialog_system/dialog_manager.py
tanayz/TC-Bot-py3
048aca2fe58ced780baa0b24390cb44ce5ef6850
[ "MIT" ]
null
null
null
src/deep_dialog/dialog_system/dialog_manager.py
tanayz/TC-Bot-py3
048aca2fe58ced780baa0b24390cb44ce5ef6850
[ "MIT" ]
5
2019-05-31T08:43:41.000Z
2021-08-05T15:32:41.000Z
""" Created on May 17, 2016 @author: xiul, t-zalipt """ import json from . import StateTracker from deep_dialog import dialog_config class DialogManager: """ A dialog manager to mediate the interaction between an agent and a customer """ def __init__(self, agent, user, act_set, slot_set, movie_dictiona...
51.705036
191
0.551134
79a23aa5437e93aa003e8d5eb9a193257524aa01
2,140
py
Python
file_import_qt5simple.py
yu-efremov/ViscoIndent
b9658509fdf9ed232cf682cb554f668572735e4d
[ "MIT" ]
3
2020-12-02T16:19:46.000Z
2021-12-21T13:26:53.000Z
file_import_qt5simple.py
yu-efremov/ViscoIndent
b9658509fdf9ed232cf682cb554f668572735e4d
[ "MIT" ]
null
null
null
file_import_qt5simple.py
yu-efremov/ViscoIndent
b9658509fdf9ed232cf682cb554f668572735e4d
[ "MIT" ]
1
2022-03-03T15:17:58.000Z
2022-03-03T15:17:58.000Z
# -*- coding: utf-8 -*- """ Created on Sat Feb 22 20:09:03 2020 work, checked, simple version with def @author: Yuri import_opt = 'single' - single file, import_opt = 'multi' - multiple files import_opt = 'folder' - folder content """ import sys from PyQt5.QtWidgets import QApplication, QWidget, QFileDialog...
32.424242
114
0.566355
79a26a229fad3472b6cac2227e68fa207017c9ff
2,857
py
Python
examples/airline_demo/airline_demo/cache_file_from_s3.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
examples/airline_demo/airline_demo/cache_file_from_s3.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
examples/airline_demo/airline_demo/cache_file_from_s3.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
from dagster_aws.s3 import S3Coordinate from dagster import ExpectationResult, Field, FileHandle, MetadataEntry, Output, solid from dagster.utils.temp_file import get_temp_file_name @solid( config_schema={ "file_key": Field( str, is_required=False, description=( ...
43.287879
100
0.711586
79a28205d25dc9c0129f3004e6784acabbdb3d1b
4,285
py
Python
ads/feature_engineering/feature_type/category.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
20
2022-02-22T19:07:09.000Z
2022-03-16T17:21:42.000Z
ads/feature_engineering/feature_type/category.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
ads/feature_engineering/feature_type/category.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-- # Copyright (c) 2021, 2022 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ """ The module that represents a Category feature type. Classes: Category The Category feature t...
29.965035
104
0.552159
79a290d55f27b19499bb0bcc283c7fb987b13b13
2,570
py
Python
tests/pcsv/write.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
6
2015-12-15T04:09:08.000Z
2020-02-21T01:40:57.000Z
tests/pcsv/write.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
null
null
null
tests/pcsv/write.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
2
2016-01-21T23:29:17.000Z
2020-02-21T01:41:05.000Z
# write.py # Copyright (c) 2013-2016 Pablo Acosta-Serafini # See LICENSE for details # pylint: disable=C0103,C0111,C0302,E0611,F0401,R0201,R0915,W0232 # Standard library imports import os import sys if sys.hexversion >= 0x03000000: import unittest.mock as mock # PyPI imports import pytest if sys.hexversion < 0x030...
33.815789
78
0.646693
79a2a2394b2ed3504280e7a045ffc690bd9a7f49
1,421
py
Python
exe1201.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe1201.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe1201.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
import sys import pygame vermelho = (255, 0, 0) verde = (0, 255, 0) azul = (0, 0, 255) imagem = 'nerdMini.png' class MeNerd(): def __init__(self, screen): """[Inicializa a imagem de Nerd] """ self.screen = screen # Carrega a imagem do Nerd e obtém seu rect self.image = pyg...
24.084746
59
0.606615
79a2b9f1faa80930a059c682edb775ede0516a71
1,607
py
Python
python/dataframe-column-operation.py
ZNClub-PA-ML-AI/DataFrames
d8b73a59a92a7c1254699325b7ee3033911cf37a
[ "Apache-2.0" ]
null
null
null
python/dataframe-column-operation.py
ZNClub-PA-ML-AI/DataFrames
d8b73a59a92a7c1254699325b7ee3033911cf37a
[ "Apache-2.0" ]
2
2018-03-26T04:03:44.000Z
2019-04-02T03:10:44.000Z
python/dataframe-column-operation.py
ZNClub-PA-ML-AI/DataFrames
d8b73a59a92a7c1254699325b7ee3033911cf37a
[ "Apache-2.0" ]
1
2018-03-25T19:07:10.000Z
2018-03-25T19:07:10.000Z
# -*- coding: utf-8 -*- """ Created on Fri Sep 7 10:06:42 2018 @author: ZNevzz """ import pandas as pd import numpy as np '''Using datetime index for creating Dataframe using random values''' dates = pd.date_range('20130101', periods=6) df1 = pd.DataFrame(np.random.randn(6,4), index=dates, columns=list('ABCD')) df2...
31.509804
210
0.67206
79a3232a18dadfe2bfad62e26728044b10a1bd9d
1,190
py
Python
midterm/midterm-07.satisfying-f.py
sodaPhix/MITx-6.00.1x
8629e227d250cf6c2d5ca56944668b5796ce78cf
[ "MIT" ]
1
2019-10-06T22:58:39.000Z
2019-10-06T22:58:39.000Z
midterm/midterm-07.satisfying-f.py
sodaPhix/MITx-6.00.1x
8629e227d250cf6c2d5ca56944668b5796ce78cf
[ "MIT" ]
null
null
null
midterm/midterm-07.satisfying-f.py
sodaPhix/MITx-6.00.1x
8629e227d250cf6c2d5ca56944668b5796ce78cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Oct 5 20:42:56 2019 @author: sodatab MITx: 6.00.1x """ """ Midterm-07 Satisfies F ----------------------- Write a Python function called satisfiesF that has the specification below. Then make the function call run_satisfiesF(L, satisfiesF). def sa...
22.037037
82
0.619328
79a33f468492ad830915bd4cef1cea644f38e65d
988
py
Python
pytype/tests/py2/test_errors.py
souravbadami/pytype
804fa97e7f9208df2711976085a96f756b3949e6
[ "Apache-2.0" ]
1
2020-04-20T02:55:21.000Z
2020-04-20T02:55:21.000Z
pytype/tests/py2/test_errors.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
pytype/tests/py2/test_errors.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
"""Tests for displaying errors.""" from pytype.tests import test_base class ErrorTest(test_base.TargetPython27FeatureTest): """Tests for errors.""" def testProtocolMismatch(self): _, errors = self.InferWithErrors(""" class Foo(object): pass next(Foo()) # wrong-arg-types[e] """) self.ass...
27.444444
76
0.618421
79a3870e5ae8973631defd55906223e5b287ad08
1,413
py
Python
subt/test_crash_report.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
12
2017-02-16T10:22:59.000Z
2022-03-20T05:48:06.000Z
subt/test_crash_report.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
618
2016-08-30T04:46:12.000Z
2022-03-25T16:03:10.000Z
subt/test_crash_report.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
11
2016-08-27T20:02:55.000Z
2022-03-07T08:53:53.000Z
import math import unittest from unittest.mock import MagicMock from subt.crash_report import CrashReport class CrashReportTest(unittest.TestCase): def test_usage(self): bus = MagicMock() black_box = CrashReport(bus=bus, config={}) data = b'data1' black_box.on_rgbd(data) ...
31.4
97
0.598018
79a39d142b9d3c66b263721906c35e3761570196
96,391
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_sets_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_sets_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_sets_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
47.718317
792
0.67719
79a3a293b1ee33ec7ac8b7395e200e7b61c27ad7
5,339
py
Python
docs/conf.py
mitag/python-arduino-serial
6beccc099167a21595c84286a973347a3a903cbd
[ "MIT" ]
25
2018-10-07T13:37:48.000Z
2022-03-25T07:28:11.000Z
docs/conf.py
c0qu1/python-arduino-serial
6beccc099167a21595c84286a973347a3a903cbd
[ "MIT" ]
1
2019-07-10T00:58:33.000Z
2019-07-10T08:42:39.000Z
docs/conf.py
c0qu1/python-arduino-serial
6beccc099167a21595c84286a973347a3a903cbd
[ "MIT" ]
13
2018-10-07T11:53:07.000Z
2021-05-23T12:41:29.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
31.040698
99
0.662296
79a3a7269f3df736fc457b23b1041d497d16ce3e
4,652
py
Python
kglib/kgcn_tensorflow/models/core.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
13
2018-09-25T13:29:08.000Z
2018-12-10T11:04:38.000Z
kglib/kgcn_tensorflow/models/core.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
23
2018-09-17T20:31:44.000Z
2018-12-14T11:21:52.000Z
kglib/kgcn_tensorflow/models/core.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
1
2018-09-25T15:56:32.000Z
2018-09-25T15:56:32.000Z
# # Copyright (C) 2021 Vaticle # # 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, Versi...
34.977444
105
0.659716
79a3fb65abd8dd9dcb8906673e366ea6be71ab2a
4,647
py
Python
mauveinternet/calendar/month.py
lordmauve/django-mauveinternet
0c4143021c16f7ae7b6f60da0f3f9ab37ff9eaad
[ "MIT" ]
null
null
null
mauveinternet/calendar/month.py
lordmauve/django-mauveinternet
0c4143021c16f7ae7b6f60da0f3f9ab37ff9eaad
[ "MIT" ]
null
null
null
mauveinternet/calendar/month.py
lordmauve/django-mauveinternet
0c4143021c16f7ae7b6f60da0f3f9ab37ff9eaad
[ "MIT" ]
null
null
null
import datetime def add_calendar_months(date, months): """Adds or subtracts a given number of calendar months from a date or datetime. >>> add_calendar_months(datetime.date(2008, 2, 13), 5) datetime.date(2008, 7, 13) >>> add_calendar_months(datetime.datetime(2008, 2, 29, 12, 37), 12) datetime.dat...
28.163636
89
0.554767
79a443969df459c8458b32070068e8648f52834c
4,880
py
Python
src/fortrace/utility/dummy_virtinst_util.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
src/fortrace/utility/dummy_virtinst_util.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
src/fortrace/utility/dummy_virtinst_util.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
"""A dummy module to prevent import errors from Guest. """ from __future__ import absolute_import import random def default_route(nic=None): raise RuntimeError("virtinst.utils not loaded. tried to access dummy method") def default_bridge(): raise RuntimeError("virtinst.utils not loaded. tried to access du...
27.885714
81
0.726434
79a48e0f003cbb6cf892090bb754c463effe3678
7,046
py
Python
Tools/scons/scons-local/SCons/Tool/mwcc.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Tool/mwcc.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Tool/mwcc.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
"""SCons.Tool.mwcc Tool-specific initialization for the Metrowerks CodeWarrior compiler. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001 - 2017 The SCons Foundation # # Perm...
33.875
92
0.6283
79a48e4cf30ba5b01960636c8c153d89d53b86a5
3,201
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/openstack/common/report/models/threading.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/openstack/common/report/models/threading.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/openstack/common/report/models/threading.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
31.693069
78
0.665105
79a4a7145c7782f4c24c78c13d10feef5db3850e
2,456
py
Python
data_capture/jobs.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
null
null
null
data_capture/jobs.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
1
2021-06-10T23:13:04.000Z
2021-06-10T23:13:04.000Z
data_capture/jobs.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
null
null
null
import logging import traceback from django.core.exceptions import ValidationError from django.core.files.base import ContentFile from django.db import transaction from django_rq import job from . import email from .r10_spreadsheet_converter import Region10SpreadsheetConverter from contracts.loaders.region_10 import R...
29.95122
79
0.735342
79a4b1f1e5d9497afb4742faaf4d286d91806f46
914
py
Python
virtual/lib/python3.8/site-packages/openapi_spec_validator/handlers/file.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
201
2017-11-19T12:15:53.000Z
2022-03-12T12:40:07.000Z
virtual/lib/python3.8/site-packages/openapi_spec_validator/handlers/file.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
143
2017-09-06T12:11:18.000Z
2022-03-11T13:42:41.000Z
virtual/lib/python3.8/site-packages/openapi_spec_validator/handlers/file.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
62
2017-10-13T18:58:28.000Z
2022-02-25T17:56:56.000Z
"""OpenAPI spec validator handlers file module.""" from six import StringIO from yaml import load from openapi_spec_validator.handlers.base import BaseHandler from openapi_spec_validator.handlers.utils import uri_to_path from openapi_spec_validator.loaders import ExtendedSafeLoader class FileObjectHandler(BaseHandle...
28.5625
61
0.719912
79a4ca12befc5d566fd06c87d96cc28929eb1ff1
853
py
Python
flexget/plugins/urlrewrite/cinemageddon.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/plugins/urlrewrite/cinemageddon.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/urlrewrite/cinemageddon.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin from future.moves.urllib.parse import quote import logging from flexget import plugin from flexget.event import event log = logging.getLogger('cinemageddon') class UrlRewrit...
31.592593
94
0.719812
79a52cbd5bb675f3996c50e53037f9e7679753f8
7,776
py
Python
variant_calling/variant_calling_pipeline.py
GinoBacallao/hgdp_tgp
b674a79ad60da4c78b0b55a77e4cc4f138e9057e
[ "MIT" ]
1
2021-02-26T17:45:20.000Z
2021-02-26T17:45:20.000Z
variant_calling/variant_calling_pipeline.py
atgu/hgdp_tgp
b674a79ad60da4c78b0b55a77e4cc4f138e9057e
[ "MIT" ]
null
null
null
variant_calling/variant_calling_pipeline.py
atgu/hgdp_tgp
b674a79ad60da4c78b0b55a77e4cc4f138e9057e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 __author__ = 'Lindo Nkambule' import hailtop.batch as hb import hail as hl import pandas as pd import os from variant_calling.get_file_size import bytes_to_gb from variant_calling.scatter_interval import scatter_interval_list from variant_calling.haplotype_caller import haplotype_caller_gatk f...
48.6
116
0.613297
79a5525433cef55d356959e3ad80437ccb7442ec
11,283
py
Python
petl/test/io/test_avro.py
miguelosana/petl
ace4acac39645a7f44e376bd83d19feea8b56a57
[ "MIT" ]
null
null
null
petl/test/io/test_avro.py
miguelosana/petl
ace4acac39645a7f44e376bd83d19feea8b56a57
[ "MIT" ]
null
null
null
petl/test/io/test_avro.py
miguelosana/petl
ace4acac39645a7f44e376bd83d19feea8b56a57
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division import sys import math from datetime import datetime, date, time from decimal import Decimal from tempfile import NamedTemporaryFile from nose.tools import eq_ from petl.compat import izip_longest, PY3 from petl.transform.basic...
33.781437
103
0.577329
79a55bc27f4b9f802e1e1a81bd18382553833f2a
1,622
py
Python
python3/numpy/basicOperationAll.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
2
2020-09-29T04:09:41.000Z
2020-10-18T13:33:36.000Z
python3/numpy/basicOperationAll.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
null
null
null
python3/numpy/basicOperationAll.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
1
2021-12-26T04:55:55.000Z
2021-12-26T04:55:55.000Z
""" Created on Sun Mar 17 20:01:22 2019 @author: nahid """ import numpy as np a = np.array([1, 2, 5, 3]) # add 1 to every element print ("Adding 1 to every element:", a+1) # subtract 3 from each element print ("Subtracting 3 from each element:", a-3) # multiply each element by 10 print ("Multiplying each elemen...
25.746032
61
0.58693
79a56565efccd94373de6a903831eb8d4d7df147
1,384
py
Python
pyjac/tests/test_chem_utils.py
stgeke/pyJac-v2
c2716a05df432efd8e5f6cc5cc3d46b72c24c019
[ "MIT" ]
9
2018-10-08T07:49:20.000Z
2021-06-26T15:28:30.000Z
pyjac/tests/test_chem_utils.py
stgeke/pyJac-v2
c2716a05df432efd8e5f6cc5cc3d46b72c24c019
[ "MIT" ]
13
2018-09-01T14:17:51.000Z
2021-07-30T16:19:33.000Z
pyjac/tests/test_chem_utils.py
arghdos/spyJac
bdd6940c27681e3b19ee41efb31abd20a89d1be8
[ "MIT" ]
7
2018-09-08T11:57:34.000Z
2022-02-14T13:57:20.000Z
# local imports from pyjac.core.rate_subs import polyfit_kernel_gen, assign_rates from pyjac.loopy_utils.loopy_utils import kernel_call from pyjac.tests import TestClass from pyjac.tests.test_utils import _generic_tester # modules from nose.plugins.attrib import attr import numpy as np class SubTest(TestClass): ...
29.446809
81
0.622832
79a56699c69832d802a86bd5bf37c4feefcd564c
869
py
Python
setup.py
Cloud11665/koishi
118cd09bbc3191602948b4895dbd8d47b45fad65
[ "MIT" ]
13
2021-03-04T22:10:10.000Z
2021-06-10T21:16:43.000Z
setup.py
Cloud11665/Koishi
61f4dcc8b16228cca5a563950ed51fae510f500f
[ "MIT" ]
1
2021-04-04T21:11:47.000Z
2021-04-04T21:11:47.000Z
setup.py
Cloud11665/Koishi
61f4dcc8b16228cca5a563950ed51fae510f500f
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="koishi", version="1.1.6", description="Python wrapper for the unofficial scraped API of the satori testing system.", long_description=open("README.md", "r").read(), long_description_content_type="text/markdown", author="Cloud11665", author_email="Cloud11665@gmail.com", ...
34.76
91
0.70771
79a5e4a1618d9544bdf7ef85d9c3316564e2f17f
13,443
py
Python
game.py
johntelforduk/monopoly-simulation
b6e35a46e68955695f7b6ee3e45b0d97f76829ca
[ "MIT" ]
2
2020-09-23T00:06:42.000Z
2021-04-20T15:35:27.000Z
game.py
johntelforduk/monopoly-simulation
b6e35a46e68955695f7b6ee3e45b0d97f76829ca
[ "MIT" ]
null
null
null
game.py
johntelforduk/monopoly-simulation
b6e35a46e68955695f7b6ee3e45b0d97f76829ca
[ "MIT" ]
null
null
null
# Game class for Monopoly simulation. import dice import board import cards import player class Game: def __init__(self, num_players: int, verbose: bool): self.num_players = num_players self.verbose = verbose # True means a lot of trace will be sent to stdout. # Make a...
44.959866
119
0.6079
79a5ef5526bc8cf296a6a5d468e7c6688fd3127d
30,375
py
Python
Lib/fontTools/ttLib/__init__.py
zemingWaterloo/FontTool
b049cbf01794cf3a3edf0ce79f428964cf0d86be
[ "Adobe-Glyph" ]
null
null
null
Lib/fontTools/ttLib/__init__.py
zemingWaterloo/FontTool
b049cbf01794cf3a3edf0ce79f428964cf0d86be
[ "Adobe-Glyph" ]
null
null
null
Lib/fontTools/ttLib/__init__.py
zemingWaterloo/FontTool
b049cbf01794cf3a3edf0ce79f428964cf0d86be
[ "Adobe-Glyph" ]
1
2019-08-14T15:57:38.000Z
2019-08-14T15:57:38.000Z
"""fontTools.ttLib -- a package for dealing with TrueType fonts. This package offers translators to convert TrueType fonts to Python objects and vice versa, and additionally from Python to TTX (an XML-based text format) and vice versa. Example interactive session: Python 1.5.2c1 (#43, Mar 9 1999, 13:06:43) [CW PPC...
30.61996
156
0.701597
79a604c26ee87d4ffb1bd0e523e1298febad6d01
67,248
py
Python
pyogg/__init__.py
mattgwwalker/PyOgg
7da10d799c6a5d36570743724921530964073ddb
[ "BSD-3-Clause", "Unlicense" ]
null
null
null
pyogg/__init__.py
mattgwwalker/PyOgg
7da10d799c6a5d36570743724921530964073ddb
[ "BSD-3-Clause", "Unlicense" ]
null
null
null
pyogg/__init__.py
mattgwwalker/PyOgg
7da10d799c6a5d36570743724921530964073ddb
[ "BSD-3-Clause", "Unlicense" ]
null
null
null
import builtins import collections import copy import ctypes import random import struct from . import ogg from .ogg import PyOggError, PYOGG_OGG_AVAIL from . import vorbis from.vorbis import PYOGG_VORBIS_AVAIL, PYOGG_VORBIS_FILE_AVAIL, PYOGG_VORBIS_ENC_AVAIL from . import opus from.opus import PYOGG_OPUS_AVAIL, PYOG...
37.907554
174
0.547555
79a62e7126a39d08301ba4cb3c91248580cd957a
16,039
bzl
Python
bazel/repository_locations.bzl
incfly/envoy-wasm
f66e557b6e787043e9efde5cfcd88afdce0b9408
[ "Apache-2.0" ]
null
null
null
bazel/repository_locations.bzl
incfly/envoy-wasm
f66e557b6e787043e9efde5cfcd88afdce0b9408
[ "Apache-2.0" ]
null
null
null
bazel/repository_locations.bzl
incfly/envoy-wasm
f66e557b6e787043e9efde5cfcd88afdce0b9408
[ "Apache-2.0" ]
null
null
null
REPOSITORY_LOCATIONS = dict( bazel_gazelle = dict( sha256 = "3c681998538231a2d24d0c07ed5a7658cb72bfb5fd4bf9911157c0e9ac6a2687", urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.17.0/bazel-gazelle-0.17.0.tar.gz"], ), boringssl = dict( # Use commits from branch ...
58.536496
169
0.723299
79a635848bfac0ce11138606c913f5250440f960
5,347
py
Python
src/evaluate_cross_lingual.py
emerging-welfare/random_sampling-vs-keyword_filtering
7c42790173e868d53a5238f3d329bada4d65a108
[ "MIT" ]
null
null
null
src/evaluate_cross_lingual.py
emerging-welfare/random_sampling-vs-keyword_filtering
7c42790173e868d53a5238f3d329bada4d65a108
[ "MIT" ]
null
null
null
src/evaluate_cross_lingual.py
emerging-welfare/random_sampling-vs-keyword_filtering
7c42790173e868d53a5238f3d329bada4d65a108
[ "MIT" ]
null
null
null
import json import pandas import numpy as np import random from glob import glob from src.data import * from src.bert import build_bert, get_bert from sklearn.metrics import classification_report from sklearn.model_selection import train_test_split pretrained_model = 'bert-base-multilingual-cased' # pretrained_model ...
27.994764
88
0.585375
79a6b9a786ff41415b155bcd76ed99e38fb937b1
2,710
py
Python
oidc_provider/tests/cases/test_provider_info_endpoint.py
dmptrluke/django-oidc-provider
25477af58b551d3fe5c0946c94b0c99cd8fca3f9
[ "MIT" ]
1
2020-01-14T16:09:17.000Z
2020-01-14T16:09:17.000Z
oidc_provider/tests/cases/test_provider_info_endpoint.py
dmptrluke/django-oidc-provider
25477af58b551d3fe5c0946c94b0c99cd8fca3f9
[ "MIT" ]
null
null
null
oidc_provider/tests/cases/test_provider_info_endpoint.py
dmptrluke/django-oidc-provider
25477af58b551d3fe5c0946c94b0c99cd8fca3f9
[ "MIT" ]
null
null
null
import json try: from django.urls import reverse except ImportError: from django.core.urlresolvers import reverse from django.test import RequestFactory, TestCase, override_settings from oidc_provider.views import ProviderInfoView class ProviderInfoTestCase(TestCase): @classmethod def setUpClass(cl...
31.882353
80
0.648708
79a6d5eb09d49ed558f72a2402e0b93075e6f9ad
1,775
py
Python
tests/test_multi_task_ensemble.py
vanderveld/tonks
e87afbd9614b276b443b4a7527fd1fda01a8be4c
[ "BSD-3-Clause" ]
null
null
null
tests/test_multi_task_ensemble.py
vanderveld/tonks
e87afbd9614b276b443b4a7527fd1fda01a8be4c
[ "BSD-3-Clause" ]
null
null
null
tests/test_multi_task_ensemble.py
vanderveld/tonks
e87afbd9614b276b443b4a7527fd1fda01a8be4c
[ "BSD-3-Clause" ]
null
null
null
import copy from pathlib import Path import shutil import tempfile import torch from tonks.ensemble.models import BertResnetEnsembleForMultiTaskClassification def test_exporting_and_loading_works_correctly(): image_task_dict = { 'task1_task2': { 'fake_attribute1': 10, 'fake_attri...
24.315068
99
0.658592
79a6de0d51fb96ff685239eea4058ce95b906961
15,511
py
Python
QuadrupedalRobots/ETGRL/pretrain.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
146
2020-12-08T11:51:38.000Z
2022-03-23T12:58:43.000Z
QuadrupedalRobots/ETGRL/pretrain.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
10
2020-12-23T03:00:31.000Z
2022-03-23T09:55:30.000Z
QuadrupedalRobots/ETGRL/pretrain.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
43
2020-12-21T09:40:39.000Z
2022-03-31T06:41:32.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
46.57958
136
0.624847
79a6f12467580d1a142148f42a58b9b61ee1f7fe
483
py
Python
rooms/migrations/0002_message_timestamp.py
brianseidl/koda
b6e2e703afd6f3b8ccb16740824eac222c28be6e
[ "MIT" ]
null
null
null
rooms/migrations/0002_message_timestamp.py
brianseidl/koda
b6e2e703afd6f3b8ccb16740824eac222c28be6e
[ "MIT" ]
null
null
null
rooms/migrations/0002_message_timestamp.py
brianseidl/koda
b6e2e703afd6f3b8ccb16740824eac222c28be6e
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-04-08 01:17 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('rooms', '0001_initial'), ] operations = [ migrations.AddField( model_name='message', na...
23
93
0.627329
79a721dff552bf8f4e08c21f9d4c0d02c1a9ee7f
24,763
py
Python
sandbox/grist/test_engine.py
petarnikolovski/grist-core
aa3fe975e799ebe81873c71ff9c40ff679f4b860
[ "Apache-2.0" ]
1
2022-02-19T08:37:33.000Z
2022-02-19T08:37:33.000Z
sandbox/grist/test_engine.py
davgit/grist-core
6d941fb5a3eab008c424bdce70dbb906d6925324
[ "Apache-2.0" ]
null
null
null
sandbox/grist/test_engine.py
davgit/grist-core
6d941fb5a3eab008c424bdce70dbb906d6925324
[ "Apache-2.0" ]
null
null
null
import difflib import functools import json import unittest from collections import namedtuple from pprint import pprint import six import actions import column import engine import logger import useractions import testutil import objtypes log = logger.Logger(__name__, logger.DEBUG) # These are for use in verifying...
42.042445
104
0.660582
79a7491e08caa2660671c18bbf2422fda5277657
7,148
py
Python
app/ota_httpclient.py
szymonbultrowicz/esp32-soil-moisture-sensor
2615e72f51d8328b949b23fded34c39f4a201472
[ "MIT" ]
null
null
null
app/ota_httpclient.py
szymonbultrowicz/esp32-soil-moisture-sensor
2615e72f51d8328b949b23fded34c39f4a201472
[ "MIT" ]
null
null
null
app/ota_httpclient.py
szymonbultrowicz/esp32-soil-moisture-sensor
2615e72f51d8328b949b23fded34c39f4a201472
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2020 Joshua Bellamy # 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, modi...
35.74
134
0.578204
79a7549f28242f99a95f5c01ef0d5da5b85c4584
72,577
py
Python
tests/__init__.py
ExtraE113/dj-stripe
1b50be13fc99b624388a005b8aa1e26c57392203
[ "MIT" ]
937
2017-06-04T18:44:20.000Z
2022-03-27T07:28:32.000Z
tests/__init__.py
ExtraE113/dj-stripe
1b50be13fc99b624388a005b8aa1e26c57392203
[ "MIT" ]
969
2017-06-05T01:57:20.000Z
2022-03-31T23:42:54.000Z
tests/__init__.py
ExtraE113/dj-stripe
1b50be13fc99b624388a005b8aa1e26c57392203
[ "MIT" ]
309
2017-06-12T03:18:10.000Z
2022-03-29T17:05:18.000Z
""" A Fake or multiple fakes for each stripe object. Originally collected using API VERSION 2015-07-28. Updated to API VERSION 2016-03-07 with bogus fields. """ from __future__ import absolute_import, division, print_function, unicode_literals import json import logging import os import sys from copy import deepcopy ...
30.102447
92
0.617744
79a7575f07720e38ee3499ee94d3b8042f51c303
1,121
py
Python
neo/test/iotest/test_axonio.py
deeptimittal12/python-neo
7409f47b5debd4d2a75bbf0e77ac10562446c97a
[ "BSD-3-Clause" ]
1
2020-06-08T14:00:03.000Z
2020-06-08T14:00:03.000Z
neo/test/iotest/test_axonio.py
deeptimittal12/python-neo
7409f47b5debd4d2a75bbf0e77ac10562446c97a
[ "BSD-3-Clause" ]
null
null
null
neo/test/iotest/test_axonio.py
deeptimittal12/python-neo
7409f47b5debd4d2a75bbf0e77ac10562446c97a
[ "BSD-3-Clause" ]
null
null
null
""" Tests of neo.io.axonio """ import unittest from neo.io import AxonIO from neo.test.iotest.common_io_test import BaseTestIO class TestAxonIO(BaseTestIO, unittest.TestCase): files_to_test = ['File_axon_1.abf', 'File_axon_2.abf', 'File_axon_3.abf', ...
27.341463
75
0.578055
79a788848c6e3ebb9df123518f7a88f44e3600ae
1,691
py
Python
examples/user_kernel.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
examples/user_kernel.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
examples/user_kernel.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
from radical.ensemblemd.kernel_plugins.kernel_base import KernelBase # ------------------------------------------------------------------------------ # _KERNEL_INFO = { "name": "amber", "description": "AMBER MD kernel", "arguments": { #Needs to be filled by ...
32.519231
88
0.433471
79a78d4e20241d2b46c4c7d4a7e307e41bba59b5
3,778
py
Python
nb/experiment.py
pgniewko/deep-toxin
fa61b06405749e5de7d74eedadb5de7c67981471
[ "BSD-3-Clause" ]
1
2020-08-20T07:49:10.000Z
2020-08-20T07:49:10.000Z
nb/experiment.py
pgniewko/deep-toxin
fa61b06405749e5de7d74eedadb5de7c67981471
[ "BSD-3-Clause" ]
null
null
null
nb/experiment.py
pgniewko/deep-toxin
fa61b06405749e5de7d74eedadb5de7c67981471
[ "BSD-3-Clause" ]
null
null
null
import logging import pickle import numpy as np from collections import defaultdict from toxin import Toxin class Experiment: """ :-P lazy Pawel """ def __init__(self, toxins, excludeOrganism="synthetic", min_val=8): self.toxins = [toxin_.copy() for toxin_ in toxins] self.excludeOrga...
31.22314
123
0.522763
79a7a7b687f58398fff49d26496286e399a2e6e6
18,440
py
Python
masci_tools/vis/bokeh_plotter.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
null
null
null
masci_tools/vis/bokeh_plotter.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
null
null
null
masci_tools/vis/bokeh_plotter.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################### # Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. # # All rights reserved. # # This file is part of the Masci-tools package. ...
38.416667
130
0.56936
79a7ae13dfb4e3090b880cce7eb85aff233ed713
3,098
py
Python
alipay/aop/api/domain/PickUpInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/PickUpInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/PickUpInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class PickUpInfo(object): def __init__(self): self._pick_up_address = None self._pick_up_code = None self._pick_up_shop_name = None self._pick_up_type = None sel...
30.673267
85
0.61459
79a7b5d0202993333ab00c3f3a79dbbb143ed8d5
7,950
py
Python
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_usage_summaries_crr_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_usage_summaries_crr_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_usage_summaries_crr_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
42.513369
217
0.657107
79a7e059e39f3e8f48aacaa145930ee05d822ccf
739
py
Python
src/wavestate/iirrational/annotate/exporters.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/annotate/exporters.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/annotate/exporters.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology. # SPDX-FileCopyrightText: © 2021 Lee McCuller <mcculler@mit.edu> # NOTICE: authors should document their contributions in concisely in NOTICE # with details inline ...
27.37037
78
0.718539
79a7e1a0ef684d6e6cf0c9e5cc459bdf04f5de89
2,860
py
Python
alipay/aop/api/domain/AlipaySocialBaseContentlibStandardcontentBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipaySocialBaseContentlibStandardcontentBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipaySocialBaseContentlibStandardcontentBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipaySocialBaseContentlibStandardcontentBatchqueryModel(object): def __init__(self): self._need_detail = None self._page_num = None self._page_size = None self._p...
28.316832
73
0.582517
79a8044d39057bb429cffe448f6cda332de0fbaa
376
py
Python
django_google_api/users/urls.py
ankitjaadoo/django_google_api_project
026ca235277c08ba293ddce53463a5f4be973342
[ "MIT" ]
null
null
null
django_google_api/users/urls.py
ankitjaadoo/django_google_api_project
026ca235277c08ba293ddce53463a5f4be973342
[ "MIT" ]
null
null
null
django_google_api/users/urls.py
ankitjaadoo/django_google_api_project
026ca235277c08ba293ddce53463a5f4be973342
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = "users" urlpatterns = [ path('', views.AccountView.as_view(), name="account"), path('profile', views.profile_view, name="profile"), path('sign-up', views.SignUpView.as_view(), name="sign-up"), path('sign-in', views.SignInView.as_view(), name="sign-in")...
28.923077
61
0.68883
79a82717383679eb851c014b68ac21636701fd2a
412
py
Python
LC/367.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/367.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/367.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def isPerfectSquare(self, num): """ :type num: int :rtype: bool """ i,j=1,num while i<=j: # binary search, i means i^2<num, j means j^2>num m=(i+j)//2 if m*m>num: j=m-1 elif m*m==n...
24.235294
61
0.390777
79a8424ec9a915da113196e3f3a1a5172b5521b3
22,954
py
Python
modules/tools/create_map/create_map.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
6
2019-10-11T07:57:49.000Z
2022-02-23T15:23:41.000Z
modules/tools/create_map/create_map.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
null
null
null
modules/tools/create_map/create_map.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
12
2019-10-11T07:57:49.000Z
2022-03-16T05:13:00.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2017 The Apollo Authors. All Rights Reserved. # Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not ...
33.411936
177
0.623159
79a890596d36ff080a5be39c6fb6b794a54820a0
6,477
py
Python
kf_d3m_primitives/ts_forecasting/deep_ar/deepar_dataset.py
uncharted-distil/d3m-primitives
e8d37dbe302c0f2bae4e7f7fa241a46faebc9b79
[ "Apache-2.0" ]
null
null
null
kf_d3m_primitives/ts_forecasting/deep_ar/deepar_dataset.py
uncharted-distil/d3m-primitives
e8d37dbe302c0f2bae4e7f7fa241a46faebc9b79
[ "Apache-2.0" ]
null
null
null
kf_d3m_primitives/ts_forecasting/deep_ar/deepar_dataset.py
uncharted-distil/d3m-primitives
e8d37dbe302c0f2bae4e7f7fa241a46faebc9b79
[ "Apache-2.0" ]
null
null
null
from typing import List, Union import pandas as pd import numpy as np from sklearn.preprocessing import OrdinalEncoder from gluonts.dataset.common import ListDataset from gluonts.dataset.field_names import FieldName from gluonts.distribution import NegativeBinomialOutput, StudentTOutput class DeepARDataset: def ...
35.010811
93
0.611085
79a8bf275f93e5a4b1efc8db5d388a72841c0d75
15,609
py
Python
rtv/mime_parsers.py
0xflotus/rtv
e31a6a218032b7f36a779ee34c41ef4c9dfaf9ab
[ "MIT" ]
null
null
null
rtv/mime_parsers.py
0xflotus/rtv
e31a6a218032b7f36a779ee34c41ef4c9dfaf9ab
[ "MIT" ]
null
null
null
rtv/mime_parsers.py
0xflotus/rtv
e31a6a218032b7f36a779ee34c41ef4c9dfaf9ab
[ "MIT" ]
null
null
null
import re import logging import mimetypes import requests from bs4 import BeautifulSoup _logger = logging.getLogger(__name__) class BaseMIMEParser(object): """ BaseMIMEParser can be sub-classed to define custom handlers for determining the MIME type of external urls. """ pattern = re.compile(r'....
32.117284
95
0.610225
79a8cf3a335ce0cf7612720398935bda3d156060
678
py
Python
src/sentry/api/fields/user.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
20
2016-10-01T04:29:24.000Z
2020-10-09T07:23:34.000Z
src/sentry/api/fields/user.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
null
null
null
src/sentry/api/fields/user.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
7
2016-10-27T05:12:45.000Z
2021-05-01T14:29:53.000Z
from __future__ import absolute_import, print_function from rest_framework import serializers from sentry.models import User from sentry.utils.auth import find_users class UserField(serializers.WritableField): def to_native(self, obj): return obj.username def from_native(self, data): if not...
25.111111
68
0.640118
79a8da628802570ae57d3c2dfe0b39dadce5752b
6,944
py
Python
lib/python2.7/site-packages/pygments/lexers/_lua_builtins.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
1
2015-12-31T10:24:25.000Z
2015-12-31T10:24:25.000Z
lib/python2.7/site-packages/pygments/lexers/_lua_builtins.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/pygments/lexers/_lua_builtins.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ pygments.lexers._lua_builtins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This file contains the names and modules of lua functions It is able to re-generate itself, but for adding new functions you probably have to add some callbacks (see function module_callbacks). Do not edit ...
27.665339
75
0.490783
79a8ed34fc24ba926a8d1ec8476d08f5c88b06dd
862
py
Python
django_rt/event.py
jhannington/django-rt
55abd4dbe7ab015039043a724f99aeaced557f37
[ "BSD-3-Clause" ]
1
2016-01-04T22:11:08.000Z
2016-01-04T22:11:08.000Z
django_rt/event.py
jhannington/django-rt
55abd4dbe7ab015039043a724f99aeaced557f37
[ "BSD-3-Clause" ]
null
null
null
django_rt/event.py
jhannington/django-rt
55abd4dbe7ab015039043a724f99aeaced557f37
[ "BSD-3-Clause" ]
null
null
null
from django.utils import timezone from django_rt.utils import SerializableObject class ResourceEvent(SerializableObject): def __init__(self, data=None, time=None, event_type=None): assert data or event_type self.data = data self.event_type = event_type if time: self.t...
23.297297
62
0.553364
79a90a5ca97801e5cd8ae4aca85bb82dd2ac0634
1,397
py
Python
examples/heaving/Re500/scripts/createDomainYaml.py
mesnardo/cuIBM
0b63f86c58e93e62f9dc720c08510cc88b10dd04
[ "MIT" ]
67
2015-01-25T18:33:39.000Z
2022-02-17T17:50:00.000Z
examples/heaving/Re500/scripts/createDomainYaml.py
mesnardo/cuIBM
0b63f86c58e93e62f9dc720c08510cc88b10dd04
[ "MIT" ]
20
2015-01-25T05:29:30.000Z
2018-05-14T02:07:03.000Z
examples/heaving/Re500/scripts/createDomainYaml.py
mesnardo/cuIBM
0b63f86c58e93e62f9dc720c08510cc88b10dd04
[ "MIT" ]
39
2015-01-22T16:32:11.000Z
2022-02-17T08:17:09.000Z
""" Creates a YAML file with info about the structured Cartesian mesh that will be parsed by cuIBM. """ from snake.cartesianMesh import CartesianStructuredMesh # info about the 2D structured Cartesian grid info = [{'direction': 'x', 'start': -8.0, 'subDomains': [{'end': -0.52, 'widt...
34.925
78
0.396564
79a91e3b18472b2d093cbbc1a69e5ff854253d99
565
py
Python
graphid/demo/__init__.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
4
2019-03-04T02:49:26.000Z
2021-10-06T00:51:13.000Z
graphid/demo/__init__.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
1
2019-02-15T23:42:26.000Z
2019-02-15T23:42:26.000Z
graphid/demo/__init__.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Regenerate Input Command mkinit ~/code/graphid/graphid/demo """ # flake8: noqa __DYNAMIC__ = False if __DYNAMIC__: from mkinit import dynamic_mkinit exec(dynamic_mkinit.dynamic_init(__name__)) else: # <AUTOGEN_INIT> from graphid.demo import demo_script from graphid.demo i...
28.25
56
0.736283
79a92937db43ecfe415b1bc28ba0de4a709b087a
12,130
py
Python
src/han/train.py
zhourunlong/densenet-ag_news-nlp
38dcf5a18386a3155593d74e3eba6d967501b242
[ "MIT" ]
null
null
null
src/han/train.py
zhourunlong/densenet-ag_news-nlp
38dcf5a18386a3155593d74e3eba6d967501b242
[ "MIT" ]
null
null
null
src/han/train.py
zhourunlong/densenet-ag_news-nlp
38dcf5a18386a3155593d74e3eba6d967501b242
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: - Charles-Emmanuel DIAS <Charles-Emmanuel.Dias@lip6.fr> - Ardalan Mehrani <ardalan77400@gmail.com> @brief: """ import os import re import torch import lmdb import pickle import argparse import numpy as np import torch.nn as nn import pickle as pkl from tqdm impor...
38.507937
192
0.609563
79a93127a1755cac4ff7ad3d4883a6bfdc0a63b4
63,433
py
Python
src/transformers/models/electra/modeling_tf_electra.py
norabelrose/transformers
0639f72ebcc008dac59757bc5c38d6f074301491
[ "Apache-2.0" ]
15
2020-12-02T07:56:38.000Z
2021-12-15T06:16:01.000Z
src/transformers/models/electra/modeling_tf_electra.py
norabelrose/transformers
0639f72ebcc008dac59757bc5c38d6f074301491
[ "Apache-2.0" ]
null
null
null
src/transformers/models/electra/modeling_tf_electra.py
norabelrose/transformers
0639f72ebcc008dac59757bc5c38d6f074301491
[ "Apache-2.0" ]
8
2020-12-12T09:03:46.000Z
2021-12-10T04:50:49.000Z
# coding=utf-8 # Copyright 2019 The Google AI Language Team Authors and The HuggingFace Inc. team. # # 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/LICEN...
41.980807
172
0.674097
79a9468fe298bf837b5c4814d2cf012cfab2f232
16,249
py
Python
maskrcnn_benchmark/config/defaults.py
isrc-cas/ACM-MM-2019-ACO
abfb5c7e70f8c14e4894bf5416aa704b3ebfda90
[ "MIT" ]
7
2020-05-07T00:27:30.000Z
2022-01-23T08:17:46.000Z
maskrcnn_benchmark/config/defaults.py
isrc-cas/ACM-MM-2019-ACO
abfb5c7e70f8c14e4894bf5416aa704b3ebfda90
[ "MIT" ]
null
null
null
maskrcnn_benchmark/config/defaults.py
isrc-cas/ACM-MM-2019-ACO
abfb5c7e70f8c14e4894bf5416aa704b3ebfda90
[ "MIT" ]
3
2020-05-07T00:28:08.000Z
2021-08-12T13:03:57.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import os from yacs.config import CfgNode as CN # ----------------------------------------------------------------------------- # Convention about Training / Test specific parameters # ------------------------------------------------------------...
38.143192
83
0.649209
79a94c1acf504001aca09cca5cebe76edf89d213
7,112
py
Python
doc/conf.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2015-09-24T01:12:02.000Z
2015-09-24T01:12:02.000Z
doc/conf.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2021-12-13T19:39:44.000Z
2021-12-13T19:39:44.000Z
doc/conf.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # FRBR-Redis-Datastore documentation build configuration file, created by # sphinx-quickstart on Tue Jan 31 09:09:46 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated ...
32.774194
80
0.720613
79a97b8ade4bda125661f23bcfe7c7975ebdd9c3
7,195
py
Python
modules/runx/runx.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
595
2021-05-21T22:30:48.000Z
2022-03-31T15:40:25.000Z
modules/runx/runx.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
463
2021-05-24T21:32:59.000Z
2022-03-31T17:12:33.000Z
modules/runx/runx.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
29
2021-05-21T22:27:52.000Z
2022-03-28T16:43:45.000Z
import os import platform import sys from datetime import datetime from typing import TYPE_CHECKING, Optional, Tuple import boto3 import click import requests from botocore.config import Config from getmac import get_mac_address from git.config import GitConfigParser from google.api_core.exceptions import NotFound fro...
38.891892
104
0.603197
79a993ca24cc732c2047e1c49021a47ae687ac43
24,615
py
Python
jwql/website/apps/jwql/views.py
bourque/jwql
da8159720cce57bfddfb8648f11539067052136d
[ "BSD-3-Clause" ]
null
null
null
jwql/website/apps/jwql/views.py
bourque/jwql
da8159720cce57bfddfb8648f11539067052136d
[ "BSD-3-Clause" ]
1
2019-02-27T15:54:29.000Z
2019-02-27T15:54:29.000Z
jwql/website/apps/jwql/views.py
Johannes-Sahlmann/jwql
da8159720cce57bfddfb8648f11539067052136d
[ "BSD-3-Clause" ]
1
2020-10-16T15:49:40.000Z
2020-10-16T15:49:40.000Z
"""Defines the views for the ``jwql`` web app. In Django, "a view function, or view for short, is simply a Python function that takes a Web request and returns a Web response" (from Django documentation). This module defines all of the views that are used to generate the various webpages used for the JWQL application....
31.557692
141
0.667398
79a99872f3da210600ea554f4630efa557d4e030
9,418
py
Python
src/snowflake/connector/util_text.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
null
null
null
src/snowflake/connector/util_text.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
14
2021-01-26T06:53:10.000Z
2022-03-14T11:16:54.000Z
src/snowflake/connector/util_text.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
2
2021-03-16T12:41:29.000Z
2021-03-16T14:50:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved. # import logging import re from io import StringIO from typing import Optional COMMENT_PATTERN_RE = re.compile(r'^\s*\-\-') EMPTY_LINE_RE = re.compile(r'^\s*$') _logger = logging.getLogger(__name__)...
38.917355
116
0.497027
79a99e65dbdaf157da133982e8f4f47254d0898b
43,552
py
Python
ckan/tests/logic/action/test_create.py
larrycameron80/ckan
fbab8f51b36a293206fdd998d71ece27d2565951
[ "Apache-2.0" ]
1
2019-11-16T05:13:21.000Z
2019-11-16T05:13:21.000Z
ckan/tests/logic/action/test_create.py
larrycameron80/ckan
fbab8f51b36a293206fdd998d71ece27d2565951
[ "Apache-2.0" ]
4
2020-03-24T17:53:23.000Z
2021-03-31T19:19:03.000Z
ckan/tests/logic/action/test_create.py
larrycameron80/ckan
fbab8f51b36a293206fdd998d71ece27d2565951
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 '''Unit tests for ckan/logic/action/create.py. ''' import __builtin__ as builtins import six import ckan import ckan.logic as logic import ckan.model as model import ckan.plugins as p import ckan.tests.factories as factories import ckan.tests.helpers as helpers import mock import nose.tools from c...
33.94544
157
0.599605
79a9cc43fca9e780afdc84d2de0c7ddf2df431fd
2,152
py
Python
google-cloud-sdk/lib/surface/container/builds/cancel.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/container/builds/cancel.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/container/builds/cancel.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# 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 ag...
33.107692
79
0.704461
79a9d92b4d8c2da99435176ed39cbb20b545ebe0
9,595
py
Python
examples/Architectures/Processing/utils/event_utils.py
VarunSreenivasan16/train-track
a3fd9093b39660e3ed6c18a6a496c7eddb22a37f
[ "MIT" ]
null
null
null
examples/Architectures/Processing/utils/event_utils.py
VarunSreenivasan16/train-track
a3fd9093b39660e3ed6c18a6a496c7eddb22a37f
[ "MIT" ]
null
null
null
examples/Architectures/Processing/utils/event_utils.py
VarunSreenivasan16/train-track
a3fd9093b39660e3ed6c18a6a496c7eddb22a37f
[ "MIT" ]
null
null
null
# System import os import argparse import logging import multiprocessing as mp from functools import partial # Externals import yaml import numpy as np import pandas as pd import trackml.dataset import torch from torch_geometric.data import Data from itertools import permutations import itertools ...
29.523077
101
0.493174
79a9da85819fa5d4aa234dc26010e11d3045810b
14,012
py
Python
dnacentersdk/models/validators/v2_1_2/jsd_66951aaa407ba89c.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_2/jsd_66951aaa407ba89c.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_2/jsd_66951aaa407ba89c.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Create NFV Profile data model. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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, incl...
27.367188
78
0.30217
79a9f3d64d83efc3a0993d750aa44a481fee931e
23,336
py
Python
ginga/AutoCuts.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
1
2019-04-27T01:34:27.000Z
2019-04-27T01:34:27.000Z
ginga/AutoCuts.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
ginga/AutoCuts.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
# # AutoCuts.py -- class for calculating auto cut levels # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import numpy as np import threading from ginga.misc import Bunch #from ginga.misc.ParamSet import Param from ginga.util import zscale have_scipy = Tr...
34.418879
101
0.568135
79aa1013967fe26b3865ead91cf65dc7ea54606a
1,122
py
Python
tensorflow/contrib/quantization/python/math_ops.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/quantization/python/math_ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/quantization/python/math_ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.555556
80
0.740642
79aa2253be648bfbddc19c9d8973fc4e062e0dcb
3,638
py
Python
coffea/lookup_tools/csv_converters.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
77
2019-06-09T14:23:33.000Z
2022-03-22T21:34:01.000Z
coffea/lookup_tools/csv_converters.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
353
2019-06-05T23:54:39.000Z
2022-03-31T21:21:47.000Z
coffea/lookup_tools/csv_converters.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
71
2019-06-07T02:04:11.000Z
2022-03-05T21:03:45.000Z
import numpy import sys import warnings # pt except for reshaping, then discriminant btag_feval_dims = {0: [1], 1: [1], 2: [1], 3: [2]} def convert_btag_csv_file(csvFilePath): warnings.warn( "Auto-conversion of btag CSV files is deprecated. Try coffea.btag_tools.BTagScaleFactor!", FutureWarning, ...
36.019802
98
0.562397
79aa2df8bc98ab62dbc55fb64346a6df6d3f91b1
5,302
py
Python
code/utils/kalman.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/utils/kalman.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/utils/kalman.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
import numpy as np import pykalman from typing import Optional class PositionKalmanFilter(object): """ A class that implements a kalman filter for a moving object in a 2D cathesian space. Basically a wrapper around pykalman. """ def __init__(self, init_state: Optional[np.array] =None): ""...
33.987179
114
0.63825
79aaa33e5e04e51d986320711a659597434bc88a
489
py
Python
sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2020-03-05T18:10:35.000Z
2020-03-05T18:10:35.000Z
sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2
2020-03-03T23:11:13.000Z
2020-03-30T18:50:55.000Z
sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.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 may ...
48.9
94
0.529652
79aabe652874cdcf479ac72c0242d16af1caecd4
2,338
py
Python
examples/plotting/great_arc_example.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
examples/plotting/great_arc_example.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
examples/plotting/great_arc_example.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
""" ============================= Drawing and using a Great Arc ============================= This example shows you how to define and draw a great arc on an image of the Sun, and to extract intensity values along that arc from the image data. """ import numpy as np import matplotlib.pyplot as plt import astropy.unit...
36.53125
82
0.526091
79aae29cad8be6e17816644d3e7db764cb80832c
6,537
py
Python
qa/rpc-tests/p2p-versionbits-warning.py
ftrader/hardfork_prototype_1_mvf-core
b7f4de540bc932e6e4dbb943ab9658c101b18b64
[ "MIT" ]
1
2017-08-26T16:02:37.000Z
2017-08-26T16:02:37.000Z
qa/rpc-tests/p2p-versionbits-warning.py
ftrader/hardfork_prototype_1_mvf-core
b7f4de540bc932e6e4dbb943ab9658c101b18b64
[ "MIT" ]
13
2016-10-31T00:44:13.000Z
2017-11-18T22:27:40.000Z
qa/rpc-tests/p2p-versionbits-warning.py
ftrader/hardfork_prototype_1_mvf-core
b7f4de540bc932e6e4dbb943ab9658c101b18b64
[ "MIT" ]
2
2016-10-22T10:55:56.000Z
2021-07-08T03:45:23.000Z
#!/usr/bin/env python2 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework fro...
39.618182
149
0.662995