hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
86afa359fe8cd0aaf6de9b8a44577524b65c8c04
3,945
py
Python
app.py
akanksha0911/twitter-service-api
8c9097ef176bd65f1272b35e25dc0025efe4fee0
[ "Apache-2.0" ]
null
null
null
app.py
akanksha0911/twitter-service-api
8c9097ef176bd65f1272b35e25dc0025efe4fee0
[ "Apache-2.0" ]
null
null
null
app.py
akanksha0911/twitter-service-api
8c9097ef176bd65f1272b35e25dc0025efe4fee0
[ "Apache-2.0" ]
null
null
null
import json from flask import Flask, make_response, request import boto3 import base64 from botocore.exceptions import ClientError import oauth2 as oauth def get_secret(): secret_name = "arn:aws:secretsmanager:us-east-1:559976405953:secret:twitterSecret-P4Xo84" region_name = "us-east-1" # Create a Secre...
39.45
103
0.676299
d9a6abd8c5fb731bf53f5b6cdb5843f702d6bc82
300
py
Python
notest/__init__.py
GodQ/notest
530d91782e8ed06493a1313facbed86e06662daf
[ "Apache-2.0" ]
3
2019-05-10T09:36:07.000Z
2021-04-16T23:40:46.000Z
notest/__init__.py
GodQ/notest
530d91782e8ed06493a1313facbed86e06662daf
[ "Apache-2.0" ]
null
null
null
notest/__init__.py
GodQ/notest
530d91782e8ed06493a1313facbed86e06662daf
[ "Apache-2.0" ]
1
2019-05-10T09:43:48.000Z
2019-05-10T09:43:48.000Z
from .notest_lib import notest_run from .validators import AbstractExtractor, AbstractValidator from.operations import Operation from .lib.utils import templated_var from .lib.mysql_lib import MysqlClient # from notest.http_test_runner.http_test import HttpTestResult from .validators import Failure
37.5
62
0.863333
ba824dd0ee1691f820e82e4faf8aaf952b184ea0
2,060
py
Python
tests/test_neuron.py
adrien-berchet/morphapi
d50dc2ef89e14e6d6fe222e79300fcebc1e8f461
[ "MIT" ]
null
null
null
tests/test_neuron.py
adrien-berchet/morphapi
d50dc2ef89e14e6d6fe222e79300fcebc1e8f461
[ "MIT" ]
null
null
null
tests/test_neuron.py
adrien-berchet/morphapi
d50dc2ef89e14e6d6fe222e79300fcebc1e8f461
[ "MIT" ]
null
null
null
from random import choice import numpy as np import pytest from vedo import Mesh from morphapi.morphology.morphology import Neuron from morphapi.utils.data_io import listdir @pytest.fixture def neuron(): files = listdir("tests/data") return Neuron(data_file=choice(files)) args = [ (3, "salmon", "darks...
27.105263
90
0.66699
acc0be6219607d936b1dbf891136b7080556b710
503
py
Python
tests/conftest.py
WeronikaSzo/zaliczenie_studia
6bf5613cd4e3cecf6f2e7584f7a56b868baaeb4c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
WeronikaSzo/zaliczenie_studia
6bf5613cd4e3cecf6f2e7584f7a56b868baaeb4c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
WeronikaSzo/zaliczenie_studia
6bf5613cd4e3cecf6f2e7584f7a56b868baaeb4c
[ "Apache-2.0" ]
null
null
null
import pytest from selenium import webdriver from locators.locators import TestData @pytest.fixture(params=["chrome", "firefox"], scope='class') def init_driver(request): if request.param == "chrome": web_driver = webdriver.Chrome(executable_path=TestData.CHROME_EXECUTEABLE_PATH) if request...
33.533333
90
0.729622
d70b93e50c7f12ee45018f762b8dc6f15d38fafd
1,544
py
Python
src/python/pants/backend/python/lint/docformatter/subsystem.py
ericsun2/pants
49b446e5031b8c68cad6212b46f40b4fda3a0a3b
[ "Apache-2.0" ]
1
2021-02-22T18:11:26.000Z
2021-02-22T18:11:26.000Z
src/python/pants/backend/python/lint/docformatter/subsystem.py
ericsun2/pants
49b446e5031b8c68cad6212b46f40b4fda3a0a3b
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/lint/docformatter/subsystem.py
ericsun2/pants
49b446e5031b8c68cad6212b46f40b4fda3a0a3b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from typing import Tuple, cast from pants.backend.python.subsystems.python_tool_base import PythonToolBase from pants.option.custom_types import shell_str class Docformatter(PythonToolB...
32.166667
97
0.618523
dd070caf1b0a2e7542c6d9a22a5a584c385e022e
26,751
py
Python
src/olympia/legacy_discovery/tests/test_views.py
Osmose/olympia
774c3b927ec05ef971e4206e2669b4291b8b4f17
[ "BSD-3-Clause" ]
null
null
null
src/olympia/legacy_discovery/tests/test_views.py
Osmose/olympia
774c3b927ec05ef971e4206e2669b4291b8b4f17
[ "BSD-3-Clause" ]
null
null
null
src/olympia/legacy_discovery/tests/test_views.py
Osmose/olympia
774c3b927ec05ef971e4206e2669b4291b8b4f17
[ "BSD-3-Clause" ]
null
null
null
from django.core.cache import cache from django.test.utils import override_settings from django.utils.encoding import smart_text from django.utils.translation import trim_whitespace import mock from pyquery import PyQuery as pq from olympia import amo from olympia.amo.tests import addon_factory, collection_factory, T...
41.029141
79
0.615042
db44931892656efc3964ee30b18af65a16b4a54d
11,187
py
Python
api_tests/requests/views/test_request_actions_create.py
chennan47/osf.io
270608592b39a94941a3e329c0dc16d295a82472
[ "Apache-2.0" ]
null
null
null
api_tests/requests/views/test_request_actions_create.py
chennan47/osf.io
270608592b39a94941a3e329c0dc16d295a82472
[ "Apache-2.0" ]
null
null
null
api_tests/requests/views/test_request_actions_create.py
chennan47/osf.io
270608592b39a94941a3e329c0dc16d295a82472
[ "Apache-2.0" ]
null
null
null
import mock import pytest from api.base.settings.defaults import API_BASE from api_tests.requests.mixins import NodeRequestTestMixin @pytest.mark.django_db class TestCreateNodeRequestAction(NodeRequestTestMixin): @pytest.fixture() def url(self, node_request): return '/{}actions/requests/'.format(API_B...
49.72
96
0.709395
033a3f487dd44380e4d54262a01fe7476ca8942c
618
py
Python
setup.py
adamolekiewicz/csvdedupe
401fadec3a12567cb05bf63cbe70c9cb179f23d4
[ "MIT-0" ]
null
null
null
setup.py
adamolekiewicz/csvdedupe
401fadec3a12567cb05bf63cbe70c9cb179f23d4
[ "MIT-0" ]
null
null
null
setup.py
adamolekiewicz/csvdedupe
401fadec3a12567cb05bf63cbe70c9cb179f23d4
[ "MIT-0" ]
null
null
null
from setuptools import setup import sys requirements = ['future>=0.14', 'dedupe>=1.6'] if sys.version < '3': requirements += ['backports.csv'] setup( name = "csvdedupe", version = '0.1.18', description="Command line tools for deduplicating and merging csv files", author="Forest Gr...
24.72
77
0.624595
90c948a9f549de47f9c4d66b8ce4fd1e1716b912
522
py
Python
app.py
originaloregano/firstflaskapp
b3e6be88702dcac6b673bd4bc3fd5db96adaebb2
[ "MIT" ]
null
null
null
app.py
originaloregano/firstflaskapp
b3e6be88702dcac6b673bd4bc3fd5db96adaebb2
[ "MIT" ]
null
null
null
app.py
originaloregano/firstflaskapp
b3e6be88702dcac6b673bd4bc3fd5db96adaebb2
[ "MIT" ]
null
null
null
from flask import Flask, render_template from data import Articles app = Flask(__name__) Articles = Articles() @app.route('/') def index(): return render_template('home.html') @app.route('/about') def about(): return render_template('about.html') @app.route('/articles') def articles(): return render_te...
19.333333
64
0.699234
d7af28e5429be23d76570924b414d51325add4a0
5,576
py
Python
tests/test_insert_files.py
eyeseast/sqlite-utils
93fa79d30b1531bea281d0eb6b925c4e61bc1aa6
[ "Apache-2.0" ]
null
null
null
tests/test_insert_files.py
eyeseast/sqlite-utils
93fa79d30b1531bea281d0eb6b925c4e61bc1aa6
[ "Apache-2.0" ]
null
null
null
tests/test_insert_files.py
eyeseast/sqlite-utils
93fa79d30b1531bea281d0eb6b925c4e61bc1aa6
[ "Apache-2.0" ]
null
null
null
from sqlite_utils import cli, Database from click.testing import CliRunner import os import pathlib import pytest import sys @pytest.mark.parametrize("silent", (False, True)) def test_insert_files(silent): runner = CliRunner() with runner.isolated_filesystem(): tmpdir = pathlib.Path(".") db_pa...
34
89
0.516499
54e3e8c18abb49bfa78f0df82931a0f5a1e3eec5
5,070
py
Python
oa/models.py
htwenhe/DJOA
3c2d384a983e42dedfd72561353ecf9370a02115
[ "MIT" ]
1
2017-10-31T02:37:37.000Z
2017-10-31T02:37:37.000Z
oa/models.py
htwenhe/whoa
3c2d384a983e42dedfd72561353ecf9370a02115
[ "MIT" ]
1
2017-10-31T01:56:58.000Z
2017-10-31T01:57:03.000Z
oa/models.py
htwenhe/whoa
3c2d384a983e42dedfd72561353ecf9370a02115
[ "MIT" ]
null
null
null
from django.utils import timezone from django.db import models from django.contrib.auth.models import User from django.utils.six import python_2_unicode_compatible from django.contrib.auth.models import User, Group #from rest_framework import serializers # Create your models here. class Article(models.Model): aut...
31.104294
88
0.710454
936c12de11bd451bfdff49fd7103d0bddb25ce2d
8,311
py
Python
src/TASK_train_E-BP_Emo2beh_seq_model/TASK_couple_sequence_model _with_pretrained_E-BP/Model_class_sequence_couple_pretrained_CMU.py
haoqi/emotions_as_primitives_towards_behavior_understanding
5d82bb0265e585da1cd0144bb93b28dc5cb0e710
[ "0BSD" ]
2
2020-08-13T18:26:46.000Z
2021-04-07T18:58:48.000Z
src/TASK_train_E-BP_Emo2beh_seq_model/TASK_couple_sequence_model _with_pretrained_E-BP/Model_class_sequence_couple_pretrained_CMU.py
haoqi/emotions_as_primitives_towards_behavior_understanding
5d82bb0265e585da1cd0144bb93b28dc5cb0e710
[ "0BSD" ]
null
null
null
src/TASK_train_E-BP_Emo2beh_seq_model/TASK_couple_sequence_model _with_pretrained_E-BP/Model_class_sequence_couple_pretrained_CMU.py
haoqi/emotions_as_primitives_towards_behavior_understanding
5d82bb0265e585da1cd0144bb93b28dc5cb0e710
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jan 10 16:00:42 2019 @author: haoqi """ import torch import torch.nn as nn import pdb device = torch.device("cuda" if torch.cuda.is_available() else "cpu") # the model is based on CMU emotion # Base_1D_NN_fixed_seq_len_1s_majvote_v2 #--------------...
40.541463
119
0.586572
d06fa2bcf00569c03ab97bd1ca83c00e26fd90aa
8,253
py
Python
mayan/apps/sources/tests/mocks.py
morlandi/Mayan-EDMS
0d5f4587a9265ceca6c022674a8868f660a76111
[ "Apache-2.0" ]
null
null
null
mayan/apps/sources/tests/mocks.py
morlandi/Mayan-EDMS
0d5f4587a9265ceca6c022674a8868f660a76111
[ "Apache-2.0" ]
null
null
null
mayan/apps/sources/tests/mocks.py
morlandi/Mayan-EDMS
0d5f4587a9265ceca6c022674a8868f660a76111
[ "Apache-2.0" ]
null
null
null
from django.utils.encoding import force_bytes, force_text from .literals import TEST_EMAIL_BASE64_FILENAME, TEST_STAGING_PREVIEW_WIDTH class MockIMAPMessage: def __init__(self, uid): self.flags = [] self.mailbox = None self.uid = uid def flags_add(self, flags_string): for fla...
28.360825
86
0.547074
b3bc6647a6200399eabf4d203dc35f20f4b123e5
259
py
Python
maptest/urls.py
Gershkul/google_api_test
352e145f2bf1c1e2f666625434e244dd8de6c594
[ "Apache-2.0" ]
null
null
null
maptest/urls.py
Gershkul/google_api_test
352e145f2bf1c1e2f666625434e244dd8de6c594
[ "Apache-2.0" ]
3
2020-02-11T23:20:18.000Z
2021-02-08T20:16:09.000Z
maptest/urls.py
Gershkul/google_api_test
352e145f2bf1c1e2f666625434e244dd8de6c594
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url, include from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', include('maptapp.urls')), # Home Page router url(r'api/', include('maptapp.urls_api')) # REST API router ]
25.9
64
0.667954
c08f8287f98586436820d5fabeb416be7c47feb1
9,049
py
Python
ucsmsdk/mometa/adaptor/AdaptorMenloHostPortStatsHist.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/adaptor/AdaptorMenloHostPortStatsHist.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/adaptor/AdaptorMenloHostPortStatsHist.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for AdaptorMenloHostPortStatsHist ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class AdaptorMenloHostPortStatsHistConsts: MOST_RECENT_FALSE = "false" MOST_RECENT_NO = "...
72.392
259
0.687037
19de7089c70429baaf15986e11fc816dabdf9f54
3,472
py
Python
python_translate/glue.py
adamziel/python_translate
0aee83f434bd2d1b95767bcd63adb7ac7036c7df
[ "MIT" ]
4
2017-04-24T14:37:26.000Z
2020-05-15T18:17:47.000Z
python_translate/glue.py
adamziel/python_translate
0aee83f434bd2d1b95767bcd63adb7ac7036c7df
[ "MIT" ]
2
2017-02-01T15:42:26.000Z
2018-05-30T09:59:25.000Z
python_translate/glue.py
adamziel/python_translate
0aee83f434bd2d1b95767bcd63adb7ac7036c7df
[ "MIT" ]
1
2017-02-02T09:56:34.000Z
2017-02-02T09:56:34.000Z
# -*- coding: utf-8 -*- """ This file is a part of python_translate package (c) Adam Zieliński <adam@symfony2.guru> This file is derived from Symfony package. (c) Fabien Potencier <fabien@symfony.com> For the full copyright and license information, please view the LICENSE and LICENSE_SYMFONY_TRANSLATION files that we...
28
103
0.601094
1212f0d6246476d2500f32c01f2d87c8605916ee
572
py
Python
figlet.py
jesterpm/pyIRC
92af71570ab35143c8edab7f45520408751bf3c6
[ "MIT" ]
null
null
null
figlet.py
jesterpm/pyIRC
92af71570ab35143c8edab7f45520408751bf3c6
[ "MIT" ]
null
null
null
figlet.py
jesterpm/pyIRC
92af71570ab35143c8edab7f45520408751bf3c6
[ "MIT" ]
null
null
null
#!/usr/bin/python import re import os class Figlet(object): def onChanMsg(self, IRC, user, channel, targetprefix, msg): matches = re.findall("^!figlet\\s+(.*)$", msg) if matches: gif, fig = os.popen2("figlet") gif.write(matches[0]) gif.close() while...
26
63
0.454545
9a1e1aa36c169fea0ea73e15c89f1ef912f4173f
718
py
Python
tests/logging/test_trixi_handler.py
NKPmedia/delira
a10227e30c14c6507a1790813e53572e0d841c21
[ "BSD-2-Clause" ]
null
null
null
tests/logging/test_trixi_handler.py
NKPmedia/delira
a10227e30c14c6507a1790813e53572e0d841c21
[ "BSD-2-Clause" ]
null
null
null
tests/logging/test_trixi_handler.py
NKPmedia/delira
a10227e30c14c6507a1790813e53572e0d841c21
[ "BSD-2-Clause" ]
null
null
null
import logging import unittest import numpy as np from trixi.logger import NumpyPlotFileLogger from delira.logging import TrixiHandler class TrixiHandlerTest(unittest.TestCase): def test_trixi_logger(self): handler = TrixiHandler(NumpyPlotFileLogger, img_dir="./imgs", plo...
24.758621
68
0.601671
aa55b43f2c918e3f1fce02590e40760475d1587b
1,077
py
Python
trails/feeds/voipbl.py
Godwottery/maltrail
78cdf9ccfbe4344f1284742f7c85caede5d7c710
[ "MIT" ]
1
2021-03-26T03:49:01.000Z
2021-03-26T03:49:01.000Z
trails/feeds/voipbl.py
Godwottery/maltrail
78cdf9ccfbe4344f1284742f7c85caede5d7c710
[ "MIT" ]
null
null
null
trails/feeds/voipbl.py
Godwottery/maltrail
78cdf9ccfbe4344f1284742f7c85caede5d7c710
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 """ Copyright (c) 2014-2019 Maltrail developers (https://github.com/stamparm/maltrail/) See the file 'LICENSE' for copying permission """ import re from core.addr import addr_to_int from core.addr import int_to_addr from core.addr import make_mask from core.common import retrieve_content __ur...
29.108108
83
0.618384
07b23ed47feb99320e5cca1daea6136b89ee54c0
1,205
py
Python
bin/attacks/ntp.py
R3tr074/Burn-Byte
6e82aa2d38460ffc299c387a652a1441aef49240
[ "CC0-1.0" ]
50
2020-10-04T07:25:35.000Z
2022-02-24T03:52:16.000Z
bin/attacks/ntp.py
R3tr074/Burn-Byte
6e82aa2d38460ffc299c387a652a1441aef49240
[ "CC0-1.0" ]
4
2021-06-08T13:17:18.000Z
2022-01-13T13:37:37.000Z
bin/attacks/ntp.py
R3tr074/Burn-Byte
6e82aa2d38460ffc299c387a652a1441aef49240
[ "CC0-1.0" ]
4
2020-10-05T02:32:06.000Z
2021-01-31T23:25:47.000Z
# Import modules import random from socket import gaierror from rich.console import Console from bin.addons.utils import __path from scapy.all import IP, send, Raw, UDP # Define styled print print = Console().print red = "red3" green = "green1" pink = "magenta3" yellow = "yellow1" # Load NTP servers list with open(__...
27.386364
128
0.608299
8ba4c4930aeb2c8dac04d053b0a15227714b54c8
240
py
Python
iterscheme/__init__.py
ferroelectrics/iterscheme
82779e3b8d12a86652fdbaaa93561c5ca2020df0
[ "MIT" ]
1
2020-06-01T23:32:18.000Z
2020-06-01T23:32:18.000Z
iterscheme/__init__.py
ferroelectrics/iterscheme
82779e3b8d12a86652fdbaaa93561c5ca2020df0
[ "MIT" ]
null
null
null
iterscheme/__init__.py
ferroelectrics/iterscheme
82779e3b8d12a86652fdbaaa93561c5ca2020df0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .iterscheme import IterationSchemeElement, IterationScheme, \ NoConstants, Constants from .named_parameter import named_parameter, dict_adapter, namedtuple_adapter __version__ = "0.2"
26.666667
78
0.708333
512fbea1865793810291fab8209be4e906432047
3,610
py
Python
flexget/components/parsing/plugin_parsing.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
null
null
null
flexget/components/parsing/plugin_parsing.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
1
2017-10-09T23:06:44.000Z
2017-10-09T23:06:44.000Z
flexget/components/parsing/plugin_parsing.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin import logging from flexget import plugin from flexget.event import event log = logging.getLogger('parsing') PARSER_TYPES = ['movie', 'series'] # Mapping of parser type ...
38.404255
118
0.666759
7cf95668d60432d1a18c145c7d164d9dbb657031
1,625
py
Python
lib/roi_pooling_layer/roi_pooling_op_grad.py
aditya2592/PoseCNN
a763120ce0ceb55cf3432980287ef463728f8052
[ "MIT" ]
655
2018-03-21T19:55:45.000Z
2022-03-25T20:41:21.000Z
lib/roi_pooling_layer/roi_pooling_op_grad.py
SergioRAgostinho/PoseCNN
da9eaae850eed7521a2a48a4d27474d655caab42
[ "MIT" ]
122
2018-04-04T13:57:49.000Z
2022-03-18T09:28:44.000Z
lib/roi_pooling_layer/roi_pooling_op_grad.py
SergioRAgostinho/PoseCNN
da9eaae850eed7521a2a48a4d27474d655caab42
[ "MIT" ]
226
2018-03-22T01:40:04.000Z
2022-03-17T11:56:14.000Z
import tensorflow as tf from tensorflow.python.framework import ops import roi_pooling_op @ops.RegisterShape("RoiPool") def _roi_pool_shape(op): """Shape function for the RoiPool op. """ try: dims_data = op.inputs[0].get_shape().as_list() channels = dims_data[3] except: channels = 3 dims_...
31.862745
126
0.723077
c4e94714def47fac19227b902f506cbb158e1bf4
3,357
py
Python
content_gallery_testapp/settings.py
giancastro/django-content-gallery
6ccb22ba534ba41ffbb8ef1af7f379d791043aaf
[ "BSD-3-Clause" ]
25
2017-07-03T13:58:17.000Z
2020-10-31T11:44:49.000Z
content_gallery_testapp/settings.py
giancastro/django-content-gallery
6ccb22ba534ba41ffbb8ef1af7f379d791043aaf
[ "BSD-3-Clause" ]
5
2017-07-30T20:34:00.000Z
2020-08-17T18:52:38.000Z
content_gallery_testapp/settings.py
giancastro/django-content-gallery
6ccb22ba534ba41ffbb8ef1af7f379d791043aaf
[ "BSD-3-Clause" ]
15
2017-07-31T09:29:33.000Z
2020-10-02T08:23:15.000Z
""" Django settings for content_gallery_test project. Generated by 'django-admin startproject' using Django 1.10.1. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ "...
25.431818
91
0.696455
8694796972e72344b757cf24fa37ced21659dc18
929
py
Python
intro-python/parsing-json/parsing_json.py
charlesyoussef/dnav3-code_cyoussef
562c1ed1ce7d2b4aeb11eedfa3f0db8af8f99a0c
[ "MIT" ]
null
null
null
intro-python/parsing-json/parsing_json.py
charlesyoussef/dnav3-code_cyoussef
562c1ed1ce7d2b4aeb11eedfa3f0db8af8f99a0c
[ "MIT" ]
5
2021-04-07T23:20:52.000Z
2021-09-23T23:23:08.000Z
intro-python/parsing-json/parsing_json.py
charlesyoussef/dnav3-code_cyoussef
562c1ed1ce7d2b4aeb11eedfa3f0db8af8f99a0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Parsing structured JSON text into native Python data structures... ...and how to access and work with nested data. """ import json import os from pprint import pprint # Get the absolute path for the directory where this file is located "here" # a = os.path.abspath(os.path.dirname(__file__)...
25.108108
75
0.740581
b788006937bdd0dbffb2b10fdfceff9ce139e438
7,577
py
Python
Topics/1_migrating_your_DNN_to_candle/original/t29res.py
brettin/candle_tutorials
18315a41cf51cbcb267fb78a2e02ffe82d2fc42b
[ "MIT" ]
5
2018-02-22T16:52:12.000Z
2018-11-08T22:32:10.000Z
Topics/1_migrating_your_DNN_to_candle/original/t29res.py
brettin/candle_tutorials
18315a41cf51cbcb267fb78a2e02ffe82d2fc42b
[ "MIT" ]
null
null
null
Topics/1_migrating_your_DNN_to_candle/original/t29res.py
brettin/candle_tutorials
18315a41cf51cbcb267fb78a2e02ffe82d2fc42b
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import os import sys import gzip import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import keras as ke from keras.layers import Input, Dense, Dropout, Activation from keras.optimizers import SGD, Adam, RMSprop from keras.models import Sequential, Model, model_...
35.57277
146
0.709384
56e50a04f0f6a18b561aa0ac557025632813c458
4,986
py
Python
tests/test_templatetags.py
stephrdev/django-template-helpers
88bb6b64b7d7d5a0e3d1648737846b1fd780664e
[ "MIT" ]
1
2019-11-25T23:02:44.000Z
2019-11-25T23:02:44.000Z
tests/test_templatetags.py
stephrdev/django-template-helpers
88bb6b64b7d7d5a0e3d1648737846b1fd780664e
[ "MIT" ]
7
2021-05-13T19:10:15.000Z
2022-02-10T07:24:43.000Z
tests/test_templatetags.py
stephrdev/django-template-helpers
88bb6b64b7d7d5a0e3d1648737846b1fd780664e
[ "MIT" ]
1
2019-04-02T15:53:02.000Z
2019-04-02T15:53:02.000Z
import pytest from django.template import Context, Template from django.template.exceptions import TemplateSyntaxError class TestTemplateTags: def test_set_tag(self): context = Context() Template('{% load template_helpers %}{% set test_var="Some data" %}').render(context) assert context['t...
37.488722
95
0.567188
afcd0cb46b8aa5524c9b1be147fa349f02b9e054
11,902
py
Python
lte/gateway/python/magma/mobilityd/dhcp_client.py
veshkemburu/magma
44660c281cece41f2c3f8ef9b9d88d17d47ba312
[ "BSD-3-Clause" ]
2
2020-12-01T02:32:22.000Z
2020-12-27T19:13:48.000Z
lte/gateway/python/magma/mobilityd/dhcp_client.py
veshkemburu/magma
44660c281cece41f2c3f8ef9b9d88d17d47ba312
[ "BSD-3-Clause" ]
181
2020-02-03T15:17:12.000Z
2021-10-06T20:13:29.000Z
lte/gateway/python/magma/mobilityd/dhcp_client.py
veshkemburu/magma
44660c281cece41f2c3f8ef9b9d88d17d47ba312
[ "BSD-3-Clause" ]
3
2021-11-04T17:33:36.000Z
2021-12-24T06:50:36.000Z
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
35.634731
86
0.563435
fc319c81c9818f63ee1b9bf005ba1cda36bb35ad
1,776
py
Python
actions/guest_file_create.py
lingfish/stackstorm-vsphere
49199f5ebdc05b70b7504962e104642b0c30ba30
[ "Apache-2.0" ]
null
null
null
actions/guest_file_create.py
lingfish/stackstorm-vsphere
49199f5ebdc05b70b7504962e104642b0c30ba30
[ "Apache-2.0" ]
2
2019-03-25T18:03:02.000Z
2019-03-26T13:13:59.000Z
actions/guest_file_create.py
lingfish/stackstorm-vsphere
49199f5ebdc05b70b7504962e104642b0c30ba30
[ "Apache-2.0" ]
1
2021-03-05T10:12:21.000Z
2021-03-05T10:12:21.000Z
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
43.317073
77
0.721847
1766f761525e5fdcbca0643c1906774e128607de
5,272
py
Python
py-polars/polars/testing.py
Dvad/polars
bbede2f69f01c869bf4a498a2a9b97ea7ef6720c
[ "MIT" ]
null
null
null
py-polars/polars/testing.py
Dvad/polars
bbede2f69f01c869bf4a498a2a9b97ea7ef6720c
[ "MIT" ]
null
null
null
py-polars/polars/testing.py
Dvad/polars
bbede2f69f01c869bf4a498a2a9b97ea7ef6720c
[ "MIT" ]
null
null
null
from typing import Any from polars.datatypes import ( Boolean, Float32, Float64, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Utf8, dtype_to_py_type, ) from polars.internals import DataFrame, Series _NUMERIC_COL_TYPES = ( Int16, Int32, Int64, UInt...
24.867925
89
0.603566
6adcd94d3ea7f8acbc3528f3fc9dda208b9f1b0f
56,440
py
Python
gs_quant/timeseries/measures.py
femtotrader/gs-quant
33a13f6f53ce8a62565b2d2870aaddf52847e275
[ "Apache-2.0" ]
1
2021-08-31T09:19:25.000Z
2021-08-31T09:19:25.000Z
gs_quant/timeseries/measures.py
femtotrader/gs-quant
33a13f6f53ce8a62565b2d2870aaddf52847e275
[ "Apache-2.0" ]
null
null
null
gs_quant/timeseries/measures.py
femtotrader/gs-quant
33a13f6f53ce8a62565b2d2870aaddf52847e275
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Goldman Sachs. # 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, # sof...
42.025316
119
0.686464
8cddfe95e5e28866bfeecdbc5ac345735db10ae2
2,825
py
Python
Alignment/TrackerAlignment/test/test-misalign_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Alignment/TrackerAlignment/test/test-misalign_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Alignment/TrackerAlignment/test/test-misalign_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") # -- Load default module/services configurations -- // # Message logger service process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cout = cms.untracked.PSet( threshold = cms.untracked.string('INFO'), default = cms...
37.666667
101
0.776991
c33cf7b70af136ed8ee3482f25454937bfbca188
376
py
Python
scri/SpEC/__init__.py
10220/scri
87fc7506038a53432b0a0749d6947aaac0d60996
[ "MIT" ]
null
null
null
scri/SpEC/__init__.py
10220/scri
87fc7506038a53432b0a0749d6947aaac0d60996
[ "MIT" ]
null
null
null
scri/SpEC/__init__.py
10220/scri
87fc7506038a53432b0a0749d6947aaac0d60996
[ "MIT" ]
2
2020-11-12T19:41:23.000Z
2020-12-23T19:40:57.000Z
# Copyright (c) 2015, Michael Boyle # See LICENSE file for details: <https://github.com/moble/scri/blob/master/LICENSE> """Submodule for operating on SpEC waveform files""" from .._version import __version__ from .com_motion import com_motion, estimate_avg_com_motion, remove_avg_com_motion from .file_io import read_f...
41.777778
83
0.81117
b1b1bc8c8b4f0a356ea8891ff86167900bb94a31
27,275
py
Python
scipy/stats/tests/test_bootstrap.py
bartkowiaktomasz/scipy
9bb9189a710130f6b00b7dcde74a83d375e1e282
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/tests/test_bootstrap.py
bartkowiaktomasz/scipy
9bb9189a710130f6b00b7dcde74a83d375e1e282
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/tests/test_bootstrap.py
bartkowiaktomasz/scipy
9bb9189a710130f6b00b7dcde74a83d375e1e282
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest from scipy.stats import (bootstrap, BootstrapDegenerateDistributionWarning, monte_carlo_test) from numpy.testing import assert_allclose, assert_equal, suppress_warnings from scipy import stats from .. import _bootstrap as _bootstrap from scipy._lib._util import ...
38.307584
79
0.63813
220b47e50bfb62f1582c45073f5ab6712618289e
411
py
Python
matplotlib_exercise/matp.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
matplotlib_exercise/matp.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
matplotlib_exercise/matp.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt fig = plt.figure() ax1 = fig.add_subplot(211) ax2 = fig.add_subplot(212) xs = np.arange(-3, 3, 0.1) y_sin = np.sin(xs) y_cos = np.cos(xs) print("type(ax1: {}".format(type(ax1))) ax1.plot(xs, y_sin) ax2.plot(xs, y_cos) ax1.set_ylim(-1.3, 1.3) ax2.set_ylim(-1.3...
16.44
39
0.6691
4d3a92950a0c109e24b7434a3eb668a3f72c3a73
2,256
py
Python
Limix_QTL/test_interaction_QTL_small_analysis.py
Bonder-MJ/limix_qtl
71f18f4e39cdba0f0e6dc59713b83701599bc86f
[ "Apache-2.0" ]
7
2020-05-17T18:36:50.000Z
2021-12-01T11:24:24.000Z
Limix_QTL/test_interaction_QTL_small_analysis.py
Bonder-MJ/limix_qtl
71f18f4e39cdba0f0e6dc59713b83701599bc86f
[ "Apache-2.0" ]
2
2021-04-27T19:15:17.000Z
2022-01-13T09:51:27.000Z
Limix_QTL/test_interaction_QTL_small_analysis.py
Bonder-MJ/limix_qtl
71f18f4e39cdba0f0e6dc59713b83701599bc86f
[ "Apache-2.0" ]
6
2019-12-04T09:57:28.000Z
2022-03-14T02:20:10.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from run_interaction_QTL_analysis import run_interaction_QTL_analysis from qtl_utilities import merge_QTL_results import subprocess import numpy as np import pandas as pd import pytest def hdf5_results_checking(filename,fun=lambda df: np.mean(df['beta']) ): '''For a ...
40.285714
116
0.722074
d440859182eb049b1031045464a803df54233450
5,082
py
Python
second/utils/ddd_utils.py
sky77764/center3d.pytorch
366b3e20e9d33e3d878f64e51bbafdc762a089fb
[ "MIT" ]
2
2021-03-21T02:36:15.000Z
2022-03-16T07:29:23.000Z
second/utils/ddd_utils.py
sky77764/center3d.pytorch
366b3e20e9d33e3d878f64e51bbafdc762a089fb
[ "MIT" ]
null
null
null
second/utils/ddd_utils.py
sky77764/center3d.pytorch
366b3e20e9d33e3d878f64e51bbafdc762a089fb
[ "MIT" ]
1
2022-03-31T12:38:02.000Z
2022-03-31T12:38:02.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import cv2 def compute_box_3d(dim, location, rotation_y): # dim: 3 # location: 3 # rotation_y: 1 # return: 8 x 3 c, s = np.cos(rotation_y), np.sin(rotation_y) R = np.array([[c, 0...
35.291667
95
0.61039
462be79aec8f97ffab90e16aa457c22c20cf914e
2,335
py
Python
d7a/alp/operands/test/query.py
L-I-Am/pyd7a
7e3dd6ff71c92df72570d6b852ca74cc5af50707
[ "Apache-2.0" ]
9
2016-05-12T20:11:30.000Z
2020-08-18T05:46:15.000Z
d7a/alp/operands/test/query.py
L-I-Am/pyd7a
7e3dd6ff71c92df72570d6b852ca74cc5af50707
[ "Apache-2.0" ]
2
2018-01-14T12:39:06.000Z
2019-11-25T09:11:08.000Z
d7a/alp/operands/test/query.py
L-I-Am/pyd7a
7e3dd6ff71c92df72570d6b852ca74cc5af50707
[ "Apache-2.0" ]
7
2016-09-06T11:08:15.000Z
2020-10-27T10:29:24.000Z
# # Copyright (c) 2015-2021 University of Antwerp, Aloxy NV. # # This file is part of pyd7a. # See https://github.com/Sub-IoT/pyd7a for further info. # # 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 Lice...
35.378788
98
0.745182
e084aa8b11fab88e422d61a1e430451cb2602f83
333
py
Python
__main__.py
cdeitrick/workflows
8edd2a08078144a2445af3903eb13b71abb96538
[ "MIT" ]
null
null
null
__main__.py
cdeitrick/workflows
8edd2a08078144a2445af3903eb13b71abb96538
[ "MIT" ]
null
null
null
__main__.py
cdeitrick/workflows
8edd2a08078144a2445af3903eb13b71abb96538
[ "MIT" ]
null
null
null
from pipelines import main import argparse def create_parser()->argparse.Namespace: parser = argparse.ArgumentParser() parser.add_argument( "which", help = "assembly or variants.", type = str, choices = ['assembly', 'variants'] ) args = parser.parse_args() return args if __name__ == "__main__": main....
17.526316
40
0.708709
6877b66df8a34a1ab6b39082249c23e3a7416a0a
6,135
py
Python
src/shortcircuit/model/navigation.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
35
2016-06-22T20:07:31.000Z
2021-04-07T11:02:08.000Z
src/shortcircuit/model/navigation.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
15
2016-06-17T09:36:02.000Z
2020-10-30T11:39:07.000Z
src/shortcircuit/model/navigation.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
16
2016-10-02T16:09:18.000Z
2021-05-29T02:51:14.000Z
# navigation.py from evedb import EveDb from solarmap import SolarMap from evescout import EveScout from tripwire import Tripwire class Navigation: """ Navigation """ def __init__(self, gates, system_desc, wh_codes, trip_url, trip_user, trip_pass): self.eve_db = EveDb(gates, system_desc, wh_c...
35.057143
113
0.509698
5a23c0ec8ac16067a2a2798e51ef69d9e2bb7ebd
1,680
py
Python
OtherThings/io.py
1302580MK/Udemy_Python
c7aef0645ae15a954c2356ba96288deaa087fb32
[ "MIT" ]
null
null
null
OtherThings/io.py
1302580MK/Udemy_Python
c7aef0645ae15a954c2356ba96288deaa087fb32
[ "MIT" ]
null
null
null
OtherThings/io.py
1302580MK/Udemy_Python
c7aef0645ae15a954c2356ba96288deaa087fb32
[ "MIT" ]
null
null
null
# 29.05.2019 print("Input Output Stuff") import os #be careful where to place it os.mkdir("FolderCreatedWithOs.Mkdir") #os.rename("PythonTestFile.txt", "newfile.txt") os.rename("newfile.txt", "PythonTestFile.txt") #var1 = input("Enter something please: ") #print(var1) ### various open modes # 'r' open for readin...
24
96
0.705952
463fbf0f46255202c408c4a44d5e70ee93848920
21,895
py
Python
Data/Calibration/DepreciationParameters/SherwinFiles/Firm Calibration Python/data_structures/naics_processing.py
lnsongxf/OG-USA
9e92129e67f4aea5f3a6b8da4110bf67b99ce88a
[ "CC0-1.0" ]
1
2017-05-23T13:57:53.000Z
2017-05-23T13:57:53.000Z
Data/Calibration/DepreciationParameters/SherwinFiles/Firm Calibration Python/data_structures/naics_processing.py
lnsongxf/OG-USA
9e92129e67f4aea5f3a6b8da4110bf67b99ce88a
[ "CC0-1.0" ]
null
null
null
Data/Calibration/DepreciationParameters/SherwinFiles/Firm Calibration Python/data_structures/naics_processing.py
lnsongxf/OG-USA
9e92129e67f4aea5f3a6b8da4110bf67b99ce88a
[ "CC0-1.0" ]
1
2021-06-03T19:06:24.000Z
2021-06-03T19:06:24.000Z
""" Processing NAICS Codes (naics_processing.py): ------------------------------------------------------------------------------- Last updated: 6/24/2015. This module defines functions that process a *NAICS tree*. These functions initialize, load data, interpolate data to the various NAICS levels, print data from tree...
42.26834
97
0.581685
09a35df95e923a2e0be82e1288a5ab0cce893f7b
20,405
py
Python
kinto/core/initialization.py
barraponto/kinto
4be06b4edd2072d971a2e541adf3d15137392384
[ "Apache-2.0" ]
null
null
null
kinto/core/initialization.py
barraponto/kinto
4be06b4edd2072d971a2e541adf3d15137392384
[ "Apache-2.0" ]
null
null
null
kinto/core/initialization.py
barraponto/kinto
4be06b4edd2072d971a2e541adf3d15137392384
[ "Apache-2.0" ]
null
null
null
import logging import re import warnings from datetime import datetime from dateutil import parser as dateparser import random from pyramid.events import NewRequest, NewResponse from pyramid.exceptions import ConfigurationError from pyramid.httpexceptions import HTTPTemporaryRedirect, HTTPGone, HTTPBadRequest from pyr...
35.486957
99
0.683117
95a1f067d5841a0fbc7e08fbee5a18e4f3786e32
1,469
py
Python
lang/py/test/test_datafile_interop.py
zerofox-oss/yelp-avro
913f95a4c34386d0fe9aff843b1a8ea362a1a2c5
[ "Apache-2.0" ]
null
null
null
lang/py/test/test_datafile_interop.py
zerofox-oss/yelp-avro
913f95a4c34386d0fe9aff843b1a8ea362a1a2c5
[ "Apache-2.0" ]
1
2017-08-03T17:39:38.000Z
2017-08-03T17:39:38.000Z
lang/py/test/test_datafile_interop.py
riskive/yelp-avro
5a8835505d1f788585834b0a87940d30b76be3fb
[ "Apache-2.0" ]
1
2020-05-06T22:01:07.000Z
2020-05-06T22:01:07.000Z
from __future__ import print_function # 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, Versio...
33.386364
74
0.720899
a9dc494cb1ddbbb8a50c51bd5831d468e69593db
3,342
py
Python
test/test_regression.py
ContactEngineering/SurfaceTopography
7dc7346cb9545326a3323fda0d402f254eae8c0e
[ "MIT" ]
1
2021-12-21T15:37:06.000Z
2021-12-21T15:37:06.000Z
test/test_regression.py
ContactEngineering/SurfaceTopography
7dc7346cb9545326a3323fda0d402f254eae8c0e
[ "MIT" ]
98
2021-03-29T11:13:27.000Z
2022-03-18T10:37:37.000Z
test/test_regression.py
ContactEngineering/SurfaceTopography
7dc7346cb9545326a3323fda0d402f254eae8c0e
[ "MIT" ]
2
2021-04-15T20:42:23.000Z
2021-07-09T10:37:35.000Z
# # Copyright 2021 Lars Pastewka # # ### MIT license # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
37.977273
117
0.691203
4052a11db471651402295484dc9a4e0cbb4bb0be
2,223
py
Python
sympy/ntheory/tests/test_egyptian_fraction.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/ntheory/tests/test_egyptian_fraction.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/ntheory/tests/test_egyptian_fraction.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
from sympy.core.numbers import Rational from sympy.ntheory.egyptian_fraction import egyptian_fraction from sympy.core.add import Add from sympy.testing.pytest import raises from sympy.testing.randtest import random_complex_number def test_egyptian_fraction(): def test_equality(r, alg="Greedy"): return r =...
20.394495
77
0.482681
2cf897d1578bbacdc014709662e895291cc47316
13,557
py
Python
model-optimizer/mo/front/tf/extractors/eltwise_test.py
shinh/dldt
693ab4e79a428e0801f17f4511b129a3fa8f4a62
[ "Apache-2.0" ]
1
2021-02-20T21:48:36.000Z
2021-02-20T21:48:36.000Z
model-optimizer/mo/front/tf/extractors/eltwise_test.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/front/tf/extractors/eltwise_test.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
1
2018-12-14T07:52:51.000Z
2018-12-14T07:52:51.000Z
""" Copyright (c) 2018-2019 Intel Corporation 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 i...
37.868715
110
0.513462
ae90b1457f6385a597f68ff945e63eb1ce4d9464
361
py
Python
01-sonar-sweep/solution1_2.py
johntelforduk/advent-of-code-2021
23215c80eed6ddb8f76be01f2a6f1122f5d88c52
[ "MIT" ]
null
null
null
01-sonar-sweep/solution1_2.py
johntelforduk/advent-of-code-2021
23215c80eed6ddb8f76be01f2a6f1122f5d88c52
[ "MIT" ]
null
null
null
01-sonar-sweep/solution1_2.py
johntelforduk/advent-of-code-2021
23215c80eed6ddb8f76be01f2a6f1122f5d88c52
[ "MIT" ]
null
null
null
# Solution to part 2 of day 1 of AOC 2021, Sonar Sweep # https://adventofcode.com/2021/day/1 f = open('input.txt') t = f.read() f.close() increases = 0 last4 = [] for i in [int(r) for r in t.split('\n')]: last4.append(i) if len(last4) > 4: last4.pop(0) if len(last4) == 4 and last4[3] > last4[0]: ...
19
54
0.590028
1fd38003ce46b04257fc6ce5d510be530000ac41
19,226
py
Python
PhotoFit/fit_black_body_flux_filters.py
maayane/PhotoFit
e5461bc50a9587ed0fe5d323f6b6bbea8aa968d5
[ "Apache-2.0" ]
2
2019-02-07T09:49:17.000Z
2020-04-07T14:39:10.000Z
PhotoFit/fit_black_body_flux_filters.py
maayane/PhotoFit
e5461bc50a9587ed0fe5d323f6b6bbea8aa968d5
[ "Apache-2.0" ]
null
null
null
PhotoFit/fit_black_body_flux_filters.py
maayane/PhotoFit
e5461bc50a9587ed0fe5d323f6b6bbea8aa968d5
[ "Apache-2.0" ]
1
2020-01-18T04:06:27.000Z
2020-01-18T04:06:27.000Z
#! //anaconda/bin/python import numpy as np import sys import os import numpy as np from . import black_body_flux_density from . import calc_black_body_flux_filters import pylab from . import fitting_tools from . import distances_conversions from . import energy_conversions import math import shutil import logging i...
48.550505
262
0.710548
4216fcd3aecf1043a9293b972b092b38ea4d88b6
345
py
Python
simple_classroom/apps/core/models.py
maxicecilia/simple_classroom
1f1e21414476923952f612a35ce3ff26ac053090
[ "MIT" ]
7
2015-05-08T22:43:15.000Z
2020-12-04T15:38:17.000Z
simple_classroom/apps/core/models.py
maxicecilia/simple_classroom
1f1e21414476923952f612a35ce3ff26ac053090
[ "MIT" ]
7
2020-06-05T17:40:40.000Z
2022-03-11T23:17:13.000Z
simple_classroom/apps/core/models.py
maxicecilia/simple_classroom
1f1e21414476923952f612a35ce3ff26ac053090
[ "MIT" ]
4
2015-05-13T05:47:32.000Z
2020-05-08T18:06:24.000Z
# -*- coding: utf-8 -*- from django.db import models from django.contrib.sites.models import Site from sitetree.settings import MODEL_TREE class ExtendedSite(models.Model): site = models.OneToOneField(Site) menu = models.ForeignKey(MODEL_TREE) def __unicode__(self): return u'Extended info for {0}...
26.538462
62
0.730435
64e24d66c1c9810149a764458092d67eae73ac37
1,041
py
Python
m2m/stats/management/commands/update_status.py
blampe/M2M
d8c025481ba961fe85b95f9e851a7678e08227c3
[ "MIT" ]
null
null
null
m2m/stats/management/commands/update_status.py
blampe/M2M
d8c025481ba961fe85b95f9e851a7678e08227c3
[ "MIT" ]
null
null
null
m2m/stats/management/commands/update_status.py
blampe/M2M
d8c025481ba961fe85b95f9e851a7678e08227c3
[ "MIT" ]
1
2018-06-27T14:05:43.000Z
2018-06-27T14:05:43.000Z
from django.core.management.base import BaseCommand, CommandError from django.db.models import Sum import datetime from m2m.stats.models import Status, Status2 from m2m.search.models import File from m2m.browseNet.models import Path class Command(BaseCommand): args = '' help = "creates a new row in the stat...
37.178571
102
0.550432
c7f0cb0d676f6eecc02b953c9a931adbca606bf7
2,381
py
Python
indel_prediction/model_testing/compile_gen_indel_reads.py
kaskamal/SelfTarget
c0bff0f11f4e69bafd80a1fa4d36b0f9689b9af7
[ "MIT" ]
20
2018-08-27T01:27:02.000Z
2022-03-07T07:12:56.000Z
indel_prediction/model_testing/compile_gen_indel_reads.py
kaskamal/SelfTarget
c0bff0f11f4e69bafd80a1fa4d36b0f9689b9af7
[ "MIT" ]
6
2019-01-18T19:54:52.000Z
2021-03-19T23:56:28.000Z
indel_prediction/model_testing/compile_gen_indel_reads.py
kaskamal/SelfTarget
c0bff0f11f4e69bafd80a1fa4d36b0f9689b9af7
[ "MIT" ]
14
2018-10-12T21:31:31.000Z
2021-11-08T08:32:40.000Z
import io, sys, os, csv import Bio.Seq from selftarget.data import getAllDataDirs, isOldLib, getDirLabel, getHighDataDir from selftarget.profile import readSummaryToProfile from selftarget.oligo import getOligoIdxFromId, getFileForOligoIdx def compileGenIndelReads(gen_indel_dir='generated_indels', out_dir = 'reads_fo...
44.092593
121
0.644267
4ec309c056e7e7becec671cea79d1a5e7864b3be
2,059
py
Python
babel_transpiling/utils.py
DistPub/django-babel-transpiling
79fb744e48f13f90c9c0ced738c5a55ab16d445b
[ "MIT" ]
2
2021-02-25T07:08:46.000Z
2021-02-27T00:26:50.000Z
babel_transpiling/utils.py
DistPub/django-babel-transpiling
79fb744e48f13f90c9c0ced738c5a55ab16d445b
[ "MIT" ]
null
null
null
babel_transpiling/utils.py
DistPub/django-babel-transpiling
79fb744e48f13f90c9c0ced738c5a55ab16d445b
[ "MIT" ]
null
null
null
import posixpath import os from py_mini_racer import py_mini_racer from django.conf import settings from django.contrib.staticfiles import finders from django.core.exceptions import ImproperlyConfigured def get_options(): default = { 'transpiler': 'npm/@babel/standalone@7.12.15/babel.min.js', 'ex...
28.205479
96
0.640117
5ef2507f4ba98b84352f0d1ecb71d30bb0b0fae4
7,413
py
Python
aea/cli/issue_certificates.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/cli/issue_certificates.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/cli/issue_certificates.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
37.065
368
0.703359
aae513ecf3a15e72107fdb6ad297ba3c078eac96
1,255
py
Python
bloatedHJs/utils.py
psarkis/bloatedHJs
493703c810328ea740562cbdca5fc153eb509b23
[ "MIT" ]
1
2021-01-29T23:41:00.000Z
2021-01-29T23:41:00.000Z
bloatedHJs/utils.py
psarkis/bloatedHJs
493703c810328ea740562cbdca5fc153eb509b23
[ "MIT" ]
null
null
null
bloatedHJs/utils.py
psarkis/bloatedHJs
493703c810328ea740562cbdca5fc153eb509b23
[ "MIT" ]
null
null
null
import numpy as np import pickle from scipy import optimize def inference(x, sigma=1): """ Computes the median + uncertainties (1sigma or 2sigma) Args: x: array. usually samples from MCMC Returns: array: median, lower uncertainty, upper uncertainty """ if sigma == 1: ...
23.679245
102
0.605578
b4c6c9a2012b1b59135de63e24087740cf4a1889
831
py
Python
notes/30 - dictionaries/dictionaries_ex1.py
Drv4MC/ICS3-Python-Notes
3614a5adfb4199bfc67dad8bbeb3bfee45401a5d
[ "MIT" ]
8
2019-09-03T14:20:04.000Z
2022-02-07T17:10:11.000Z
notes/30 - dictionaries/dictionaries_ex1.py
Drv4MC/ICS3-Python-Notes
3614a5adfb4199bfc67dad8bbeb3bfee45401a5d
[ "MIT" ]
10
2020-02-04T17:41:36.000Z
2022-02-17T00:47:16.000Z
notes/30 - dictionaries/dictionaries_ex1.py
Drv4MC/ICS3-Python-Notes
3614a5adfb4199bfc67dad8bbeb3bfee45401a5d
[ "MIT" ]
17
2020-09-15T16:40:23.000Z
2022-03-22T17:52:32.000Z
#----------------------------------------------------------------------------- # Name: Dictionaries (dictionaries_ex1.py) # Purpose: To provide examples of how to use dictionaries # Accessing keys, values, and adding in information # # Author: Mr. Seidel # Created: 18-Nov-2018 # Updated...
39.571429
80
0.541516
5e3daa9eb64f124b4919058aa7ee8de4f0cdfe1b
11,338
py
Python
peas/methods/hyperneat.py
promanev/PDSTEP_SNN_PEAS
864cef4a86989b757f7b849b7d0486a83c6a85ca
[ "MIT" ]
null
null
null
peas/methods/hyperneat.py
promanev/PDSTEP_SNN_PEAS
864cef4a86989b757f7b849b7d0486a83c6a85ca
[ "MIT" ]
null
null
null
peas/methods/hyperneat.py
promanev/PDSTEP_SNN_PEAS
864cef4a86989b757f7b849b7d0486a83c6a85ca
[ "MIT" ]
null
null
null
""" Implements HyperNEAT's conversion from genotype to phenotype. """ ### IMPORTS ### from itertools import product, izip # Libs import numpy as np # Local from ..networks.rnn import NeuralNetwork # from ..networks.snn import SpikingNeuralNetwork # Shortcuts inf = float('inf') class Substrate(object): """...
39.096552
150
0.540483
d375ea092b2bff4a28f85fc12a73d9949a2e311e
15,283
py
Python
samples/gold_chips/dataset/custom.py
Jieyitann/Mask_RCNN
635e9ff66e27c7c127c415cd2bfbb2d985b2baca
[ "MIT" ]
null
null
null
samples/gold_chips/dataset/custom.py
Jieyitann/Mask_RCNN
635e9ff66e27c7c127c415cd2bfbb2d985b2baca
[ "MIT" ]
null
null
null
samples/gold_chips/dataset/custom.py
Jieyitann/Mask_RCNN
635e9ff66e27c7c127c415cd2bfbb2d985b2baca
[ "MIT" ]
null
null
null
""" Mask R-CNN Train on the toy Balloon dataset and implement color splash effect. Copyright (c) 2018 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla Edited for general application by Soumya Yadav (Psoumyadav@gmail.com) -------------------------------------...
38.987245
95
0.569587
9aae1801130c99379c27297bd334f17ad75787ee
5,963
py
Python
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/get_mpls_ldp_session_one/output/mpls_ldp_session_one/debugHistory/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/get_mpls_ldp_session_one/output/mpls_ldp_session_one/debugHistory/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/get_mpls_ldp_session_one/output/mpls_ldp_session_one/debugHistory/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
45.174242
351
0.717592
6b3550660a65cd57b9b7f273b2560d5d80305972
8,457
py
Python
dsalgo/search.py
ravi5175/dsalgo
2f32c052fca62d03ad53ac3d8a706bcbcdf8794c
[ "MIT" ]
11
2020-09-20T12:27:33.000Z
2022-02-02T07:14:06.000Z
dsalgo/search.py
ravi5175/dsalgo
2f32c052fca62d03ad53ac3d8a706bcbcdf8794c
[ "MIT" ]
67
2020-09-25T04:39:00.000Z
2021-10-15T05:58:31.000Z
dsalgo/search.py
ravi5175/dsalgo
2f32c052fca62d03ad53ac3d8a706bcbcdf8794c
[ "MIT" ]
43
2020-09-25T05:57:49.000Z
2021-10-02T20:28:15.000Z
import math class Search: def __init__(self, arr, number): """ Class to search a number in array :args: arr (list) -> number to search from n (int) -> number to search :return: index (int) -> if number found -1 (int) ...
29.989362
88
0.484687
fa11209c7e428c2cb0b4cdfc44520458f4d0ca26
2,747
py
Python
izi_grpc/cli.py
vituocgia/izi-grpc
6353dfde6eb9cca67f47e9941f9219d43b0629bc
[ "MIT" ]
null
null
null
izi_grpc/cli.py
vituocgia/izi-grpc
6353dfde6eb9cca67f47e9941f9219d43b0629bc
[ "MIT" ]
null
null
null
izi_grpc/cli.py
vituocgia/izi-grpc
6353dfde6eb9cca67f47e9941f9219d43b0629bc
[ "MIT" ]
null
null
null
import sys import os import argparse import pkg_resources import logging from izi_grpc.utils import import_string from izi_grpc import create_app class JobException(RuntimeError): pass class JobOption: def __init__(self, *args, **kwargs): self.args = args self.kwargs = kwargs class JobMan...
24.096491
70
0.595195
5af56cbc3f82c19d565e4707bc8345454774b056
447
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/TableLayoutStyle.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/System/Windows/Forms/__init___parts/TableLayoutStyle.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/System/Windows/Forms/__init___parts/TableLayoutStyle.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class TableLayoutStyle(object): """ Implements the basic functionality that represents the appearance and behavior of a table layout. """ SizeType=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a flag indicating how a row or column should be sized relative to its containing ...
26.294118
107
0.731544
940a77b39ac9d86a410682537e58c6b8c9995f4d
4,107
py
Python
imblearn/datasets/_imbalance.py
laurallu/imbalanced-learn
321b751f90ef8faaec6b39218f8c531893e9e79f
[ "MIT" ]
null
null
null
imblearn/datasets/_imbalance.py
laurallu/imbalanced-learn
321b751f90ef8faaec6b39218f8c531893e9e79f
[ "MIT" ]
null
null
null
imblearn/datasets/_imbalance.py
laurallu/imbalanced-learn
321b751f90ef8faaec6b39218f8c531893e9e79f
[ "MIT" ]
null
null
null
"""Transform a dataset into an imbalanced dataset.""" # Authors: Dayvid Oliveira # Guillaume Lemaitre <g.lemaitre58@gmail.com> # Christos Aridas # License: MIT from collections import Counter from sklearn.utils import check_X_y from ..under_sampling import RandomUnderSampler from ..utils import ch...
33.942149
82
0.658875
f214bfb218a36bc315a588615011d68380629a6f
22,835
py
Python
hwilib/commands.py
fujicoin/HWI
72d3bb7ac853ac1afd663127030686a753d10595
[ "MIT" ]
null
null
null
hwilib/commands.py
fujicoin/HWI
72d3bb7ac853ac1afd663127030686a753d10595
[ "MIT" ]
null
null
null
hwilib/commands.py
fujicoin/HWI
72d3bb7ac853ac1afd663127030686a753d10595
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ Commands ******** The functions in this module are the primary way to interact with hardware wallets. Each function that takes a ``client`` uses a :class:`~hwilib.hwwclient.HardwareWalletClient`. The functions then call public members of that client to retrieve the data needed. Clients ca...
39.78223
155
0.680885
5fb422a7a7696e359da1addf44cc34b5db41de7a
2,496
py
Python
Python-Hackerrank/Classes: Dealing with Complex Numbers.py
nihalkhan2810/Data-Structures-Algorithms
3224fba18dcdbb1c6cc3d7f7a16df4ed0e0a321d
[ "MIT" ]
10
2020-05-02T14:42:15.000Z
2021-01-26T16:51:47.000Z
Python-Hackerrank/Classes: Dealing with Complex Numbers.py
nihalkhan2810/Data-Structures-Algorithms
3224fba18dcdbb1c6cc3d7f7a16df4ed0e0a321d
[ "MIT" ]
null
null
null
Python-Hackerrank/Classes: Dealing with Complex Numbers.py
nihalkhan2810/Data-Structures-Algorithms
3224fba18dcdbb1c6cc3d7f7a16df4ed0e0a321d
[ "MIT" ]
13
2020-03-05T13:31:11.000Z
2021-01-29T08:14:26.000Z
import math class Complex(object): def __init__(self, real, imaginary): self.real=real self.imaginary=imaginary def __add__(self, no): a=self.real+no.real b=self.imaginary+no.imaginary if a<0 and b<0: return ("-%.2f-%.2fi"%(abs(a),abs(b))) elif a>=0 a...
34.666667
70
0.461538
bc7a11e23ceabd22862267415ae2881655e0ba54
5,220
py
Python
spectree/config.py
yedpodtrzitko/spectree
210fafce05391a8884307c5ac6cdb9c340ec0037
[ "Apache-2.0" ]
null
null
null
spectree/config.py
yedpodtrzitko/spectree
210fafce05391a8884307c5ac6cdb9c340ec0037
[ "Apache-2.0" ]
null
null
null
spectree/config.py
yedpodtrzitko/spectree
210fafce05391a8884307c5ac6cdb9c340ec0037
[ "Apache-2.0" ]
null
null
null
import warnings from enum import Enum from typing import Any, Dict, List, Mapping, Optional from pydantic import AnyUrl, BaseModel, BaseSettings, EmailStr, root_validator from .models import SecurityScheme, Server from .page import DEFAULT_PAGE_TEMPLATES class ModeEnum(str, Enum): """the mode of the SpecTree va...
32.830189
87
0.635824
a1ad3e7f2fc566ca15d067b86eb470d85cf5c0b9
617
py
Python
setup.py
andjonno/algthm-crawler
ba25b006c9b9f7d50edb1f7bd2e1024831493ce1
[ "MIT" ]
null
null
null
setup.py
andjonno/algthm-crawler
ba25b006c9b9f7d50edb1f7bd2e1024831493ce1
[ "MIT" ]
null
null
null
setup.py
andjonno/algthm-crawler
ba25b006c9b9f7d50edb1f7bd2e1024831493ce1
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages import os base_dir = os.path.dirname(os.path.abspath(__file__)) setup(name='dex-indexer', version='1.0.0', description='Indexing module.', author='Jonathon Scanes', author_email='me@jscanes.com', packages=find_packages(), zip_...
19.903226
53
0.598055
a30ace5cf5dd02fac4267f22fab2aca909f6eab2
2,305
py
Python
mmocr/models/textrecog/backbones/very_deep_vgg.py
jeffreykuang/mmocr-1
b17304edeb493b0a4d7224c23d23b952350d0db5
[ "Apache-2.0" ]
4
2021-07-18T22:31:57.000Z
2021-07-18T22:36:45.000Z
mmocr/models/textrecog/backbones/very_deep_vgg.py
jeffreykuang/mmocr-1
b17304edeb493b0a4d7224c23d23b952350d0db5
[ "Apache-2.0" ]
null
null
null
mmocr/models/textrecog/backbones/very_deep_vgg.py
jeffreykuang/mmocr-1
b17304edeb493b0a4d7224c23d23b952350d0db5
[ "Apache-2.0" ]
1
2021-04-16T02:01:26.000Z
2021-04-16T02:01:26.000Z
import torch.nn as nn from mmcv.cnn import uniform_init, xavier_init from mmdet.models.builder import BACKBONES @BACKBONES.register_module() class VeryDeepVgg(nn.Module): """Implement VGG-VeryDeep backbone for text recognition, modified from `VGG-VeryDeep <https://arxiv.org/pdf/1409.1556.pdf>`_ Args: ...
32.464789
78
0.539696
d465bd0e3336112af4dbf55627360046c6ab03cd
7,216
py
Python
models/model_utils.py
dvornikita/SUR
2c3c5781145c0e39170a315e1650df8224defa17
[ "MIT" ]
32
2020-03-17T01:52:05.000Z
2022-01-14T06:49:40.000Z
models/model_utils.py
dvornikita/SUR
2c3c5781145c0e39170a315e1650df8224defa17
[ "MIT" ]
4
2020-10-27T12:13:51.000Z
2021-08-18T15:51:38.000Z
models/model_utils.py
dvornikita/SUR
2c3c5781145c0e39170a315e1650df8224defa17
[ "MIT" ]
8
2020-07-07T14:39:05.000Z
2021-01-18T01:18:56.000Z
import os import torch import shutil import numpy as np from torch import nn from torch.optim.lr_scheduler import (MultiStepLR, ExponentialLR, CosineAnnealingWarmRestarts, CosineAnnealingLR) from utils import check_dir, device from paths import...
39.648352
97
0.63082
ed74768cce6ed4bf72b3da76482c3acd5236cda2
7,559
py
Python
project/utils_/dataloader.py
BalintHompot/uncertainty
544c6c5cf22464d69316a31f97fc87355cd10b7e
[ "Apache-2.0" ]
null
null
null
project/utils_/dataloader.py
BalintHompot/uncertainty
544c6c5cf22464d69316a31f97fc87355cd10b7e
[ "Apache-2.0" ]
null
null
null
project/utils_/dataloader.py
BalintHompot/uncertainty
544c6c5cf22464d69316a31f97fc87355cd10b7e
[ "Apache-2.0" ]
null
null
null
################################################################################ # MIT License # # Copyright (c) 2018 # # 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, ...
41.994444
161
0.595317
37ac51abce26d7bf0895b8ed405cd557c4ff9367
411
py
Python
zerver/lib/url_preview/parsers/open_graph.py
my-name-here/zulip
4ad6582982d05e169afb1fffe5e648a7843333f0
[ "Apache-2.0" ]
null
null
null
zerver/lib/url_preview/parsers/open_graph.py
my-name-here/zulip
4ad6582982d05e169afb1fffe5e648a7843333f0
[ "Apache-2.0" ]
6
2020-09-05T21:07:41.000Z
2021-12-02T17:56:37.000Z
zerver/lib/url_preview/parsers/open_graph.py
my-name-here/zulip
4ad6582982d05e169afb1fffe5e648a7843333f0
[ "Apache-2.0" ]
1
2020-10-26T08:49:45.000Z
2020-10-26T08:49:45.000Z
import re from typing import Dict, Text from .base import BaseParser class OpenGraphParser(BaseParser): def extract_data(self) -> Dict[str, Text]: meta = self._soup.findAll('meta') content = {} for tag in meta: if tag.has_attr('property') and 'og:' in tag['property']: ...
29.357143
76
0.59854
5cb4cde9fc3aca115c96b6feefa8289612d0e016
328
py
Python
ex004 (2).py
gabrielsailvasantos/exercicios-python-CemV
19dae7472113a7b9f603467c59dc8279dad8f7ad
[ "MIT" ]
null
null
null
ex004 (2).py
gabrielsailvasantos/exercicios-python-CemV
19dae7472113a7b9f603467c59dc8279dad8f7ad
[ "MIT" ]
null
null
null
ex004 (2).py
gabrielsailvasantos/exercicios-python-CemV
19dae7472113a7b9f603467c59dc8279dad8f7ad
[ "MIT" ]
null
null
null
n = input('digite algo: ') print('O tipo primitivo desse valor é ', type(n)) print(n, 'é alfabetico? ', n.isalpha()) print(n, 'é alfanumerico ? ', n.isalnum()) print(n, 'é um numero ? ', n.isnumeric()) print(n, 'é ASCII ?', n.isascii()) print(n, 'é letra minuscula? ', n.islower()) print(n, 'é letras maiusculas ?', n.is...
41
49
0.634146
8201d4698837329705af2baf214a609f83d0a5f1
222,266
py
Python
tests/test_views.py
shun-nakazawa/RDM-osf.io
cdf0101426e3a3637f76bd7f477897947f163366
[ "Apache-2.0" ]
null
null
null
tests/test_views.py
shun-nakazawa/RDM-osf.io
cdf0101426e3a3637f76bd7f477897947f163366
[ "Apache-2.0" ]
8
2018-11-09T05:57:09.000Z
2019-07-25T10:27:55.000Z
tests/test_views.py
shun-nakazawa/RDM-osf.io
cdf0101426e3a3637f76bd7f477897947f163366
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Views tests for the GakuNin RDM.""" from __future__ import absolute_import import datetime as dt import httplib as http import json import time import unittest import urllib from framework.logging import logging logger = logging.getLogger(__name__) from flask import ...
41.213796
184
0.642716
a3ee41538be25c7d8f7189ef3805c0f56f6a8c1a
83
py
Python
utserverquery/__init__.py
cwilkc/utserverquery
3e9d0dff646819fdbfeb5b62763caa57f5be2974
[ "MIT" ]
1
2021-02-27T03:29:46.000Z
2021-02-27T03:29:46.000Z
utserverquery/__init__.py
cwilkc/utserverquery
3e9d0dff646819fdbfeb5b62763caa57f5be2974
[ "MIT" ]
null
null
null
utserverquery/__init__.py
cwilkc/utserverquery
3e9d0dff646819fdbfeb5b62763caa57f5be2974
[ "MIT" ]
1
2022-02-23T04:48:16.000Z
2022-02-23T04:48:16.000Z
from .unrealmaster import UnrealMasterServer from .unrealserver import UnrealServer
41.5
44
0.891566
77f6db4441018a9d7d1702e6f20a92ace3388225
417
py
Python
django_day04/django_day04/wsgi.py
maoxuelin083/Django-Study
6eb332a97c898b11e6d1c1faf80dbb14f4f835c6
[ "Apache-2.0" ]
null
null
null
django_day04/django_day04/wsgi.py
maoxuelin083/Django-Study
6eb332a97c898b11e6d1c1faf80dbb14f4f835c6
[ "Apache-2.0" ]
null
null
null
django_day04/django_day04/wsgi.py
maoxuelin083/Django-Study
6eb332a97c898b11e6d1c1faf80dbb14f4f835c6
[ "Apache-2.0" ]
null
null
null
""" WSGI config for django_day04 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdef...
24.529412
79
0.760192
3ef7d6ac092a0f6ee66571b665d37549a3c4747f
2,156
py
Python
datam_server/custom/exception.py
Pu-Yongjun/DataM
d6bce96286f7e0463ec14371e4b0cd59edd1260c
[ "Apache-2.0" ]
1
2020-12-11T05:46:44.000Z
2020-12-11T05:46:44.000Z
datam_server/custom/exception.py
parker-pu/DataM
d6bce96286f7e0463ec14371e4b0cd59edd1260c
[ "Apache-2.0" ]
null
null
null
datam_server/custom/exception.py
parker-pu/DataM
d6bce96286f7e0463ec14371e4b0cd59edd1260c
[ "Apache-2.0" ]
1
2019-01-29T02:22:56.000Z
2019-01-29T02:22:56.000Z
# -*- coding: utf-8 -*- """ 这个脚本是用来处理自定义异常 """ import rest_framework from rest_framework.response import Response from rest_framework.exceptions import APIException class CustomException: """ 这个类的作用是用来区分错误是哪个类 """ exception_code_dict = { 1062: "数据已经存在" } exception_cls_dict = {} def ...
25.069767
83
0.601113
647ed8482e93ad51524766554a22ca8e814f8eb1
7,452
py
Python
src/secml/optim/constraints/c_constraint_box.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
63
2020-04-20T16:31:16.000Z
2022-03-29T01:05:35.000Z
src/secml/optim/constraints/c_constraint_box.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
5
2020-04-21T11:31:39.000Z
2022-03-24T13:42:56.000Z
src/secml/optim/constraints/c_constraint_box.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
8
2020-04-21T09:16:42.000Z
2022-02-23T16:28:43.000Z
""" .. module:: CConstraintBox :synopsis: Box constraint. .. moduleauthor:: Battista Biggio <battista.biggio@unica.it> .. moduleauthor:: Marco Melis <marco.melis@unica.it> """ import numpy as np from secml.optim.constraints import CConstraint from secml.array import CArray from secml.core.constants import inf cl...
28.661538
79
0.548712
ffd3f1eed586e8be4fc56d121c4973c8cea50a8e
262
py
Python
ACM-Solution/BROUL.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
2
2016-04-26T15:40:40.000Z
2018-07-18T10:16:42.000Z
ACM-Solution/BROUL.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
1
2016-04-26T15:44:15.000Z
2016-04-29T14:44:40.000Z
ACM-Solution/BROUL.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
1
2018-10-02T16:12:19.000Z
2018-10-02T16:12:19.000Z
from sys import stdin,stdout a,b,c=map(int,stdin.readline().split()) while a!=0 or b!=0 or c!=0: n=abs(c-a) k=b*3 if(n%b!=0):print("No accounting tablet") else:print(n//k if n%k==0 else n//k+1) a,b,c=map(int,stdin.readline().split())
29.111111
45
0.583969
15b066b7bd966a4278b9b28c21d9526b810a12ab
3,231
py
Python
src/scripts/finetune/score.py
microsoft/MedImaging-ModelDriftMonitoring
35cc142a9175f589c9c25db73ba78531be3c133e
[ "MIT" ]
5
2022-03-20T21:33:25.000Z
2022-03-25T16:48:37.000Z
src/scripts/finetune/score.py
microsoft/MedImaging-ModelDriftMonitoring
35cc142a9175f589c9c25db73ba78531be3c133e
[ "MIT" ]
null
null
null
src/scripts/finetune/score.py
microsoft/MedImaging-ModelDriftMonitoring
35cc142a9175f589c9c25db73ba78531be3c133e
[ "MIT" ]
1
2022-03-22T21:44:19.000Z
2022-03-22T21:44:19.000Z
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
34.741935
105
0.727329
e5bd7f85e30b4e1a22aabd1ffe3efb462c4ff4bd
13,634
py
Python
integration_tests/src/main/python/sort_test.py
ttnghia/spark-rapids
ff2cf6c9aca15b656b36a8fa9f83732754d079c5
[ "Apache-2.0" ]
null
null
null
integration_tests/src/main/python/sort_test.py
ttnghia/spark-rapids
ff2cf6c9aca15b656b36a8fa9f83732754d079c5
[ "Apache-2.0" ]
null
null
null
integration_tests/src/main/python/sort_test.py
ttnghia/spark-rapids
ff2cf6c9aca15b656b36a8fa9f83732754d079c5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020-2021, NVIDIA CORPORATION. # # 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...
55.422764
142
0.708376
24a31a692c8bb8ceaf50a006b13d24e21287de8a
5,007
py
Python
cowrie/telnet/session.py
FranciscMoldovan/cowrie
96ca2bab7cf927d98ee9cc712e62c30239c44ea0
[ "BSD-3-Clause" ]
3
2018-11-15T07:20:24.000Z
2021-06-10T03:34:56.000Z
cowrie/telnet/session.py
r3p3r/micheloosterhof-cowrie
58d36cf1563eeaf3e660bff83c89ec0dc993c3a2
[ "BSD-3-Clause" ]
null
null
null
cowrie/telnet/session.py
r3p3r/micheloosterhof-cowrie
58d36cf1563eeaf3e660bff83c89ec0dc993c3a2
[ "BSD-3-Clause" ]
8
2015-12-17T05:41:51.000Z
2019-09-27T05:06:37.000Z
# Copyright (C) 2015, 2016 GoSecure Inc. """ Telnet User Session management for the Honeypot @author: Olivier Bilodeau <obilodeau@gosecure.ca> """ from __future__ import division, absolute_import from zope.interface import implementer from twisted.internet import interfaces, protocol from twisted.python import log ...
28.448864
116
0.637707
6bacdfd3bccc7e7b96e3a9e342be40f324bdc26f
7,742
py
Python
O365/utils/token.py
shyamdsundar/python-o365
f8b92a75a064f28a6a21a855df26198f9694eb39
[ "Apache-2.0" ]
null
null
null
O365/utils/token.py
shyamdsundar/python-o365
f8b92a75a064f28a6a21a855df26198f9694eb39
[ "Apache-2.0" ]
null
null
null
O365/utils/token.py
shyamdsundar/python-o365
f8b92a75a064f28a6a21a855df26198f9694eb39
[ "Apache-2.0" ]
null
null
null
import logging import json import datetime as dt from pathlib import Path from abc import ABC, abstractmethod log = logging.getLogger(__name__) EXPIRES_ON_THRESHOLD = 2 * 60 # 2 minutes class Token(dict): """ A dict subclass with extra methods to resemble a token """ @property def is_long_lived(self)...
31.471545
103
0.595324
7cdcdaeeaf960a7a689a91379c0ab8e126b519b9
1,759
py
Python
model-optimizer/extensions/front/onnx/unsqueeze_ext_test.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
2
2021-04-19T06:08:35.000Z
2021-08-25T02:43:43.000Z
model-optimizer/extensions/front/onnx/unsqueeze_ext_test.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
6
2022-01-11T18:56:22.000Z
2022-02-21T13:20:20.000Z
model-optimizer/extensions/front/onnx/unsqueeze_ext_test.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
3
2021-02-05T17:11:17.000Z
2021-04-19T08:33:31.000Z
""" Copyright (c) 2018 Intel Corporation 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 wri...
28.836066
92
0.668562
a1f17d618c59baea7bf8f2c79a0054b34eb67090
1,496
py
Python
DouTriMnist/checkdata.py
Polarbeartnt/SP-ILC
07c812dfe40461409c9714936190ba1470f91fc3
[ "MIT" ]
1
2022-01-13T21:57:31.000Z
2022-01-13T21:57:31.000Z
DouTriMnist/checkdata.py
Polarbeartnt/SP-ILC
07c812dfe40461409c9714936190ba1470f91fc3
[ "MIT" ]
null
null
null
DouTriMnist/checkdata.py
Polarbeartnt/SP-ILC
07c812dfe40461409c9714936190ba1470f91fc3
[ "MIT" ]
null
null
null
import numpy as np import cv2, os, random def TestDataSet(filepath='dataset/double_mnist/test_fig'): filenames = os.listdir(filepath) imagenames = [] for name in filenames: namelist = name.split('.') if namelist[-1] == 'png': imagenames.append(namelist[0]) if not os.path.e...
41.555556
120
0.58623
cf2b950585c75a3357c9fafba00e79bb21059c35
220,052
py
Python
google-cloud-sdk/platform/bq/bigquery_client.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/platform/bq/bigquery_client.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
4
2020-07-21T12:51:46.000Z
2022-01-22T10:29:25.000Z
google-cloud-sdk/platform/bq/bigquery_client.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
1
2020-07-25T18:17:57.000Z
2020-07-25T18:17:57.000Z
#!/usr/bin/env python # Lint as: python2, python3 # pylint: disable=g-unknown-interpreter # Copyright 2012 Google Inc. All Rights Reserved. """Bigquery Client library for Python.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import abc import collecti...
37.641464
134
0.669683
f0de783da190b1f53132dc15989ab3f8990f924d
560
py
Python
docs/conf.py
maru/fiubar
be12547ae3f4560765c86ce5c49988931b09b19a
[ "MIT" ]
5
2016-07-27T16:01:41.000Z
2020-03-10T21:11:31.000Z
docs/conf.py
maru/fiubar
be12547ae3f4560765c86ce5c49988931b09b19a
[ "MIT" ]
14
2015-07-22T16:41:58.000Z
2019-03-28T20:45:17.000Z
docs/conf.py
maru/fiubar
be12547ae3f4560765c86ce5c49988931b09b19a
[ "MIT" ]
3
2015-07-22T15:14:44.000Z
2018-04-16T09:49:35.000Z
import os on_rtd = os.environ.get('READTHEDOCS', None) == 'True' extensions = [] templates_path = ['_templates'] source_suffix = ['.rst', '.md'] master_doc = 'index' project = u'fiubar' copyright = u'2008-2018, Maru Berezin' version = '2.0.0' release = '2.0.0' exclude_trees = ['_build'] pygments_style = 'sphinx' html...
24.347826
62
0.707143
be466af5c009ec8a602d589e92eb11d837281c20
240
py
Python
build/list/setup.py
lonnen/dotfiles
e65b3e86de59a85150e2959533353d249d44cb68
[ "MIT" ]
null
null
null
build/list/setup.py
lonnen/dotfiles
e65b3e86de59a85150e2959533353d249d44cb68
[ "MIT" ]
null
null
null
build/list/setup.py
lonnen/dotfiles
e65b3e86de59a85150e2959533353d249d44cb68
[ "MIT" ]
null
null
null
#!/usr/bin/python3 #coding: utf8 from distutils.core import setup setup( name = "List", version = "1.3.0", py_modules = ["list"], author = "testguy", author_email = "jak02@inbox.lv", url = "", description = "Parāda listes", )
16
33
0.629167
d2445a7df4c449d3406dba05176b76b35018d199
114
py
Python
indifferent/util.py
LandRegistry/audit
f0404195b0c90d5f96c4ce523ac8a179a1b479d5
[ "MIT" ]
null
null
null
indifferent/util.py
LandRegistry/audit
f0404195b0c90d5f96c4ce523ac8a179a1b479d5
[ "MIT" ]
null
null
null
indifferent/util.py
LandRegistry/audit
f0404195b0c90d5f96c4ce523ac8a179a1b479d5
[ "MIT" ]
null
null
null
import calendar import datetime def unixts(): return calendar.timegm(datetime.datetime.utcnow().timetuple())
19
66
0.77193
3cbb3d4c1f1a646f2a4e8dae9f40515b43d7b217
7,051
py
Python
mmcv/utils/progressbar.py
louzana/mmcv
7a17822e9c402375655e00b3ba93839f701be94f
[ "Apache-2.0" ]
3
2020-07-03T06:15:18.000Z
2020-08-06T08:28:28.000Z
mmcv/utils/progressbar.py
louzana/mmcv
7a17822e9c402375655e00b3ba93839f701be94f
[ "Apache-2.0" ]
2
2020-01-13T10:13:25.000Z
2020-06-24T03:58:34.000Z
mmcv/utils/progressbar.py
louzana/mmcv
7a17822e9c402375655e00b3ba93839f701be94f
[ "Apache-2.0" ]
3
2020-06-30T03:25:18.000Z
2020-07-23T03:15:41.000Z
# Copyright (c) Open-MMLab. All rights reserved. import sys from collections.abc import Iterable from multiprocessing import Pool from shutil import get_terminal_size from .timer import Timer class ProgressBar: """A progress bar which can print the progress""" def __init__(self, task_num=0, bar_width=50, st...
34.062802
80
0.577081
37307d62357d9142067a8c8cae6713917c36d29a
17,592
py
Python
topi/python/topi/cuda/conv2d_winograd.py
robo-corg/incubator-tvm
4ddfdb4b15d05a5bf85a984837967d004efee5dd
[ "Apache-2.0" ]
1
2020-04-15T02:21:38.000Z
2020-04-15T02:21:38.000Z
topi/python/topi/cuda/conv2d_winograd.py
robo-corg/incubator-tvm
4ddfdb4b15d05a5bf85a984837967d004efee5dd
[ "Apache-2.0" ]
null
null
null
topi/python/topi/cuda/conv2d_winograd.py
robo-corg/incubator-tvm
4ddfdb4b15d05a5bf85a984837967d004efee5dd
[ "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...
39.711061
100
0.603513
880560626f5657e8d5f00c7898e9a3d5c7770b1b
6,466
py
Python
src/bandersnatch/main.py
ichard26/bandersnatch
a249d64d7ee0d6f97580b17040e3d0152b527e22
[ "AFL-3.0" ]
null
null
null
src/bandersnatch/main.py
ichard26/bandersnatch
a249d64d7ee0d6f97580b17040e3d0152b527e22
[ "AFL-3.0" ]
16
2020-06-06T20:18:51.000Z
2022-03-02T12:07:31.000Z
src/bandersnatch/main.py
ichard26/bandersnatch
a249d64d7ee0d6f97580b17040e3d0152b527e22
[ "AFL-3.0" ]
null
null
null
import argparse import asyncio import logging import logging.config import shutil import sys from configparser import ConfigParser from pathlib import Path from tempfile import gettempdir from typing import Optional import bandersnatch.configuration import bandersnatch.delete import bandersnatch.log import bandersnatc...
29.66055
88
0.622332
5d56c2a2554f8d32d48377ec3d288fc7745865c9
6,107
py
Python
utils/builder/instruction_builder/riscv/vector_operand_adjustor.py
noahsherrill/force-riscv
500cec3017f619dbf853a497bf02eaeecca927c9
[ "Apache-2.0" ]
111
2020-06-12T22:31:30.000Z
2022-03-19T03:45:20.000Z
utils/builder/instruction_builder/riscv/vector_operand_adjustor.py
noahsherrill/force-riscv
500cec3017f619dbf853a497bf02eaeecca927c9
[ "Apache-2.0" ]
34
2020-06-12T20:23:40.000Z
2022-03-15T20:04:31.000Z
utils/builder/instruction_builder/riscv/vector_operand_adjustor.py
noahsherrill/force-riscv
500cec3017f619dbf853a497bf02eaeecca927c9
[ "Apache-2.0" ]
32
2020-06-12T19:15:26.000Z
2022-02-20T11:38:31.000Z
# # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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 # # THIS SOFTWARE IS PR...
32.833333
78
0.648109
52cc369fd55060ceb067cc55138457cea43afd43
435
py
Python
aprendi com guanabara/Ex 053.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
aprendi com guanabara/Ex 053.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
aprendi com guanabara/Ex 053.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
""" Crie um programa que leia uma frase e diga se ela é um palindromo, a mesma coisa de frente pra tras e tras pra frente desconsiderando os espaços """ frase = input('Diga uma frase: ').strip().upper() palavras = frase.split() palin = ''.join(palavras) inverso = palin[::-1] print(f'O inverso de {palin} é {inverso}.')...
29
117
0.689655
19866060aab5c0fa7eb7eea229b7d656940139ea
15,872
py
Python
nni/retiarii/oneshot/pytorch/autoformer.py
penghouwen/nni
2e6a2fd2df0d5700cb028b25156bb535a3fc227a
[ "MIT" ]
null
null
null
nni/retiarii/oneshot/pytorch/autoformer.py
penghouwen/nni
2e6a2fd2df0d5700cb028b25156bb535a3fc227a
[ "MIT" ]
null
null
null
nni/retiarii/oneshot/pytorch/autoformer.py
penghouwen/nni
2e6a2fd2df0d5700cb028b25156bb535a3fc227a
[ "MIT" ]
2
2020-09-27T02:48:02.000Z
2020-12-23T03:29:36.000Z
import time from collections import defaultdict, deque import datetime import random import math import sys from timm.utils.model import unwrap_model import torch import json from timm.utils import accuracy import torch.distributed as dist from ..interface import BaseOneShotTrainer # _logger = logging.getLogger(__name...
36.655889
127
0.58285
68b9ab163d6aa67ee3bb3ab733a5b8151324b7a9
7,994
py
Python
topojson/utils.py
Casyfill/topojson
ed5e1ad80c53b35f28b099b98186dc5f64bc61ac
[ "BSD-3-Clause" ]
null
null
null
topojson/utils.py
Casyfill/topojson
ed5e1ad80c53b35f28b099b98186dc5f64bc61ac
[ "BSD-3-Clause" ]
null
null
null
topojson/utils.py
Casyfill/topojson
ed5e1ad80c53b35f28b099b98186dc5f64bc61ac
[ "BSD-3-Clause" ]
null
null
null
from functools import singledispatch, update_wrapper from types import SimpleNamespace import pprint import json # ----------- dummy files for geopandas and geojson ---------- class GeoDataFrame(object): pass class GeoSeries(object): pass geopandas = SimpleNamespace() setattr(geopandas, "GeoDataFrame", Ge...
27.006757
87
0.61271
f3cb47902fbe18c53e110092875ca6b7e6a618c7
4,126
py
Python
test/integration/config.py
hyperledger-gerrit-archive/fabric-sdk-py
0432d0ebce06a053d55febf7ed793dd163fcb68c
[ "Apache-2.0" ]
null
null
null
test/integration/config.py
hyperledger-gerrit-archive/fabric-sdk-py
0432d0ebce06a053d55febf7ed793dd163fcb68c
[ "Apache-2.0" ]
1
2019-12-09T05:05:41.000Z
2019-12-09T05:05:41.000Z
test/integration/config.py
hyperledger-gerrit-archive/fabric-sdk-py
0432d0ebce06a053d55febf7ed793dd163fcb68c
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-2017 SAP SE or an SAP affiliate company. # 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...
44.365591
105
0.553078
bd63c2ae421d7c9ac67da76f148217f1e45d021e
3,798
py
Python
Code/utils/lib.py
rahlk/Experimental-Algorithms
d04a2d3ec5a4c54ff3ebff5cf003b93d2a983061
[ "MIT" ]
null
null
null
Code/utils/lib.py
rahlk/Experimental-Algorithms
d04a2d3ec5a4c54ff3ebff5cf003b93d2a983061
[ "MIT" ]
9
2015-09-14T21:07:06.000Z
2015-12-08T01:38:08.000Z
Code/utils/lib.py
rahlk/Experimental-Algorithms
d04a2d3ec5a4c54ff3ebff5cf003b93d2a983061
[ "MIT" ]
null
null
null
""" Standard library files and operators """ from __future__ import print_function, division import random import sys import math # Constants EPS = 0.00001 PI = math.pi class O(): """ Default class which everything extends. """ def __init__(i,**d): i.has().update(**d) def has(i): return i.__dict__ def u...
19.57732
95
0.617957
b3b658ada72fdb5c86699027ff8007656d4cd655
4,569
py
Python
steam/group.py
smtp639/steam.py
bd67e8d91ac17984ef0657fa4625eb2fca81fb68
[ "MIT" ]
null
null
null
steam/group.py
smtp639/steam.py
bd67e8d91ac17984ef0657fa4625eb2fca81fb68
[ "MIT" ]
null
null
null
steam/group.py
smtp639/steam.py
bd67e8d91ac17984ef0657fa4625eb2fca81fb68
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2020 James Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
34.097015
104
0.66404
4096495c0515503ca3ce3376c493a4d17bfe111c
3,631
py
Python
eth/_utils/transactions.py
manfr3d/py-evm
36aefcc95346541a33896250250e2d8b46af4a77
[ "MIT" ]
1
2018-08-28T05:35:58.000Z
2018-08-28T05:35:58.000Z
eth/_utils/transactions.py
dariusdv/py-evm
bfdf695ca3f0bf6e4be273cd91f9a953818f4e77
[ "MIT" ]
4
2017-08-26T17:56:20.000Z
2018-03-26T08:38:17.000Z
eth/_utils/transactions.py
dariusdv/py-evm
bfdf695ca3f0bf6e4be273cd91f9a953818f4e77
[ "MIT" ]
1
2021-09-13T21:14:10.000Z
2021-09-13T21:14:10.000Z
from typing import NamedTuple import rlp from eth_keys import keys from eth_keys import datatypes from eth_keys.exceptions import ( BadSignature, ) from eth_utils import ( int_to_big_endian, ValidationError, ) from eth.constants import ( CREATE_CONTRACT_ADDRESS, ) from eth.typing import ( Addres...
25.215278
73
0.681355
209296e2656cb99e44f49f632a1bc80bc54f4af0
7,268
py
Python
backend/delivroo_28805/settings.py
crowdbotics-apps/delivroo-28805
bb9e4336e5cfab5f99555462e6b329e7bb2d71e1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/delivroo_28805/settings.py
crowdbotics-apps/delivroo-28805
bb9e4336e5cfab5f99555462e6b329e7bb2d71e1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/delivroo_28805/settings.py
crowdbotics-apps/delivroo-28805
bb9e4336e5cfab5f99555462e6b329e7bb2d71e1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for delivroo_28805 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
29.072
99
0.727711