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
ff5204ba082bc46311dfb419457db1ca9fb87a4e
492
py
Python
lab2_runHelloTensorflow.py
INGU2018/EveryBodyTensorFlow
f6ac2341f740d3968056f98572ef7b50f5db09e1
[ "Unlicense" ]
1
2018-10-08T06:49:07.000Z
2018-10-08T06:49:07.000Z
lab2_runHelloTensorflow.py
neties/EveryBodyTensorFlow
9927390765270b5db5305372d3ae714f2653c97c
[ "Unlicense" ]
null
null
null
lab2_runHelloTensorflow.py
neties/EveryBodyTensorFlow
9927390765270b5db5305372d3ae714f2653c97c
[ "Unlicense" ]
null
null
null
#-*- coding: utf-8 -*- #! /usr/bin/env python ''' #------------------------------------------------------------ filename: lab2_runHelloTensorflow.py written by Jaewook Kang @ Sep 2017 #------------------------------------------------------------ ''' import tensorflow as tf hello = tf.constant('Hello, TensorFlo...
23.428571
61
0.47561
ff5207d412e786501390ca55a02414aa7e5363ec
6,750
py
Python
go/src/infra/cmd/package_index_cros/main.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
null
null
null
go/src/infra/cmd/package_index_cros/main.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
4
2022-03-17T18:58:21.000Z
2022-03-17T18:58:22.000Z
go/src/infra/cmd/package_index_cros/main.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
null
null
null
#!/bin/python3 import argparse import logging import os import sys import textwrap from lib.logger import g_logger from lib.logger import SetupLogger def _FindChromite(path): """Find the chromite dir in a repo, gclient, or submodule checkout.""" path = os.path.abspath(path) # Depending on the checkout type (w...
32.142857
77
0.606222
ff5207f75619452b9547f1333ea03020dab25e9e
1,235
py
Python
workbench/InstanceManagerHelper.py
demetoir/ALLGANS
2f972db5e9a65f18aee0695d817f4acc221e54da
[ "MIT" ]
11
2018-01-25T15:31:54.000Z
2019-12-17T06:12:57.000Z
workbench/InstanceManagerHelper.py
demetoir/ALLGANs
2f972db5e9a65f18aee0695d817f4acc221e54da
[ "MIT" ]
19
2018-01-29T16:12:09.000Z
2018-02-15T15:56:48.000Z
workbench/InstanceManagerHelper.py
demetoir/ALLGANs
2f972db5e9a65f18aee0695d817f4acc221e54da
[ "MIT" ]
2
2018-02-06T00:31:55.000Z
2018-02-19T15:29:10.000Z
from InstanceManger import InstanceManager class InstanceManagerHelper: @staticmethod def build_and_train(model=None, input_shapes=None, dataset=None, visualizers=None, epoch_time=50, check_point_interval=5000): manager = InstanceManager() metadata_path = manage...
41.166667
103
0.708502
ff521fb81f8303061917742fe7ee0eed4f360419
503
py
Python
backend/graphql.py
ashutoshacharya24/Recipie-server
75dcb9170eb65232ba7ef626155fc96f2094a03b
[ "MIT" ]
2
2022-02-10T07:41:49.000Z
2022-02-17T11:17:58.000Z
backend/graphql.py
ashutoshacharya24/Recipie-server
75dcb9170eb65232ba7ef626155fc96f2094a03b
[ "MIT" ]
null
null
null
backend/graphql.py
ashutoshacharya24/Recipie-server
75dcb9170eb65232ba7ef626155fc96f2094a03b
[ "MIT" ]
null
null
null
from graphene import ObjectType, Schema from .core.mutations import Mutations as CoreMutations from .core.queries import Queries as CoreQueries # from .other.mutations import Mutations as OtherMutations # from .other.queries import Queries as OtherQueries class Query( CoreQueries, # OtherQueries, # last...
17.344828
58
0.725646
ff523f3a59859d97561252fe5af8633a1149a2a9
1,113
py
Python
internal/constants.py
aosp-caf-upstream/platform_tools_acloud
d81f7582f760575075828b6332392cfb77c9b6ce
[ "Apache-2.0" ]
1
2021-09-07T16:36:55.000Z
2021-09-07T16:36:55.000Z
internal/constants.py
aosp-caf-upstream/platform_tools_acloud
d81f7582f760575075828b6332392cfb77c9b6ce
[ "Apache-2.0" ]
null
null
null
internal/constants.py
aosp-caf-upstream/platform_tools_acloud
d81f7582f760575075828b6332392cfb77c9b6ce
[ "Apache-2.0" ]
1
2022-03-11T07:55:54.000Z
2022-03-11T07:55:54.000Z
#!/usr/bin/env python # # Copyright 2016 - The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
35.903226
74
0.734951
ff526cc6879d848a37d3b3d015a579b7d3053910
1,268
py
Python
torchlib/models/ssegnet.py
CarlosPena00/pytorch-unet
8365bace23e4b04b9c5b75cd6720807ea8cac5ab
[ "MIT" ]
null
null
null
torchlib/models/ssegnet.py
CarlosPena00/pytorch-unet
8365bace23e4b04b9c5b75cd6720807ea8cac5ab
[ "MIT" ]
null
null
null
torchlib/models/ssegnet.py
CarlosPena00/pytorch-unet
8365bace23e4b04b9c5b75cd6720807ea8cac5ab
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.init as init __all__ = ['SSegNet', 'ssegnet'] def ssegnet(pretrained=False, **kwargs): model = SSegNet(**kwargs) return model class SSegNet(nn.Module): """Simpler Segmentation""" def __init__(self, in_channels=3, num_classes=3): super(SSegNe...
29.488372
53
0.528391
ff5270613f8a22b575db88907783d07befff4fc5
1,193
py
Python
experiments/2013-12-17-interp-SP-bic.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
151
2015-01-09T19:25:05.000Z
2022-01-05T02:05:52.000Z
experiments/2013-12-17-interp-SP-bic.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
1
2016-08-04T13:12:51.000Z
2016-08-04T13:12:51.000Z
experiments/2013-12-17-interp-SP-bic.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
59
2015-02-04T19:13:58.000Z
2021-07-28T23:36:09.000Z
Experiment(description='Trying latest code on interpolation task', data_dir='../data/tsdlr_5050/', max_depth=10, random_order=False, k=1, debug=False, local_computation=False, n_rand=9, sd=2, jitter_sd=0.1, ...
35.088235
82
0.469405
ff529387326781fc2220fe6600ec0c8c04933575
5,278
py
Python
src/appier/test/util.py
gcandal/appier
00a8bd952fda2392184308e324bd97ba4bb18f3c
[ "Apache-2.0" ]
null
null
null
src/appier/test/util.py
gcandal/appier
00a8bd952fda2392184308e324bd97ba4bb18f3c
[ "Apache-2.0" ]
null
null
null
src/appier/test/util.py
gcandal/appier
00a8bd952fda2392184308e324bd97ba4bb18f3c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Appier Framework # Copyright (c) 2008-2016 Hive Solutions Lda. # # This file is part of Hive Appier Framework. # # Hive Appier Framework is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apach...
39.984848
107
0.650436
ff52a95f4f2d9bf3baf0d9cfd1b23382ea886be2
3,990
py
Python
intersight/models/iaas_ucsd_managed_infra_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iaas_ucsd_managed_infra_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iaas_ucsd_managed_infra_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class IaasUcsdManagedInfraList(object): """ NOTE: T...
25.909091
89
0.565163
ff5327f43f87c944437a5787e3fa5524560b5f5a
209
py
Python
src/edges_analysis/analysis/types.py
edges-collab/edges-analysis
b5165c55b7ae4334f6ac0578ade76ad875612605
[ "MIT" ]
null
null
null
src/edges_analysis/analysis/types.py
edges-collab/edges-analysis
b5165c55b7ae4334f6ac0578ade76ad875612605
[ "MIT" ]
99
2020-02-04T14:55:56.000Z
2022-03-30T21:35:57.000Z
src/edges_analysis/analysis/types.py
edges-collab/edges-analysis
b5165c55b7ae4334f6ac0578ade76ad875612605
[ "MIT" ]
null
null
null
"""Simple type definitions for use internally.""" from typing import Union, Type from pathlib import Path from edges_cal.modelling import Model PathLike = Union[str, Path] Modelable = Union[str, Type[Model]]
26.125
49
0.77512
ff533cac5c616f1f7f2b28bcd047ce70843f05c1
5,606
py
Python
payulatam/migrations/0001_initial.py
GearPlug/payu-django
fa38f7acf49911868e35fc433e40cf768c4f5ec3
[ "MIT" ]
2
2019-11-09T03:58:06.000Z
2021-02-09T16:50:57.000Z
payulatam/migrations/0001_initial.py
GearPlug/payu-django
fa38f7acf49911868e35fc433e40cf768c4f5ec3
[ "MIT" ]
null
null
null
payulatam/migrations/0001_initial.py
GearPlug/payu-django
fa38f7acf49911868e35fc433e40cf768c4f5ec3
[ "MIT" ]
2
2018-12-26T17:00:55.000Z
2020-07-08T04:44:37.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-11-30 18:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Payme...
59.638298
183
0.588655
ff53a2d799ed3c787fe5741ebd20c6b5bcc117a3
5,178
py
Python
tests/platform_tests/test_reload_config.py
jsanghra/sonic-mgmt
9f7af402de9e8e16a33c81b31581c9e155e55430
[ "Apache-2.0" ]
null
null
null
tests/platform_tests/test_reload_config.py
jsanghra/sonic-mgmt
9f7af402de9e8e16a33c81b31581c9e155e55430
[ "Apache-2.0" ]
null
null
null
tests/platform_tests/test_reload_config.py
jsanghra/sonic-mgmt
9f7af402de9e8e16a33c81b31581c9e155e55430
[ "Apache-2.0" ]
null
null
null
""" Check platform status after config is reloaded This script is to cover the test case 'Reload configuration' in the SONiC platform test plan: https://github.com/Azure/SONiC/blob/master/doc/pmon/sonic_platform_test_plan.md """ import logging import pytest from tests.common.fixtures.conn_graph_facts import conn_gra...
41.424
115
0.74662
ff53d7e50bfc748aff4682fc9f608495e98358f1
114
py
Python
Code Forces/Round 642/board_moves.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
Code Forces/Round 642/board_moves.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
Code Forces/Round 642/board_moves.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
for t in range(int(input())): n = int(input()) k = n//2 ans = ((k*(k+1)*(2*k+1))//6)*8 print(ans)
22.8
34
0.438596
ff53eef0dcdc521f07d1411211dd8421a814be88
1,774
py
Python
website/addons/s3/views/crud.py
dplorimer/osf
9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6
[ "Apache-2.0" ]
null
null
null
website/addons/s3/views/crud.py
dplorimer/osf
9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6
[ "Apache-2.0" ]
13
2020-03-24T15:29:41.000Z
2022-03-11T23:15:28.000Z
website/addons/s3/views/crud.py
dplorimer/osf
9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6
[ "Apache-2.0" ]
null
null
null
import httplib from flask import request from boto import exception from website.addons.s3 import utils from website.project.decorators import must_have_addon from website.project.decorators import must_have_permission from website.project.decorators import must_be_contributor_or_public @must_be_contributor_or_pub...
32.851852
83
0.672492
ff540d837fb5d3346e85e176f1f107fca420c5df
135,454
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.595597
220
0.666492
ff540deb4594365bc357acea80b2176983915d22
783
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_AI.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_AI.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_AI.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. AI metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AI = PhoneMetadata(id='AI', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[19]\\d{2}', possible_length=(3,)),...
71.181818
113
0.773946
ff5412a9b4f59eed5a1b5e8ed736b6e9dba791ae
2,724
py
Python
src/cltk/tokenizers/word.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
2
2019-08-18T21:10:01.000Z
2020-05-05T09:19:40.000Z
src/cltk/tokenizers/word.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
62
2019-02-01T18:48:11.000Z
2020-08-19T17:52:53.000Z
src/cltk/tokenizers/word.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
8
2019-04-07T03:47:31.000Z
2020-07-01T07:02:59.000Z
"""Language-specific word tokenizers. Primary purpose is to handle enclitics. """ __author__ = [ "Patrick J. Burns <patrick@diyclassics.org>", "Kyle P. Johnson <kyle@kyle-p-johnson.com>", "Natasha Voake <natashavoake@gmail.com>", "Clément Besnier <clemsciences@aol.com>", "Andrew Deloucas <adeloucas...
29.608696
88
0.638032
ff54137552d7c895ef3ca94db87d9b0baf4d9490
2,012
py
Python
cadnano/extras/math/solid.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
69
2015-01-13T02:54:40.000Z
2022-03-27T14:25:51.000Z
cadnano/extras/math/solid.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
127
2015-01-01T06:26:34.000Z
2022-03-02T12:48:05.000Z
cadnano/extras/math/solid.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
48
2015-01-22T19:57:49.000Z
2022-03-27T14:27:53.000Z
# -*- coding: utf-8 -*- from cadnano.extras.math.vector import normalToPlane, normalizeV3, applyMatrix3, applyMatrix4 from cadnano.extras.math.matrix3 import getNormalMatrix from cadnano.extras.math.face import Face class Solid(object): def __init__(self, name): self.name = name self.vertices = ...
29.588235
93
0.572068
ff54464d9bc2f2bc919eae2d5fe4a6c9747426c0
81
py
Python
peerpy/__init__.py
Rubilmax/python-p2p
ff12cd65a745cfb3828a4a692289a39e850e9114
[ "MIT" ]
2
2020-07-02T13:22:53.000Z
2020-10-17T17:00:58.000Z
peerpy/__init__.py
Rubilmax/python-p2p
ff12cd65a745cfb3828a4a692289a39e850e9114
[ "MIT" ]
1
2020-06-26T00:09:40.000Z
2020-06-26T07:08:12.000Z
peerpy/__init__.py
Rubilmax/python-p2p
ff12cd65a745cfb3828a4a692289a39e850e9114
[ "MIT" ]
null
null
null
from .peer import Peer from .connection import Connection from . import protocol
20.25
34
0.814815
ff547ec3035abfe68467c957b672f5497b1d4fd0
7,180
py
Python
pyscf/adc/uadc_ao2mo.py
seunghoonlee89/pyscf-ecCC-TCC
2091566fb83c1474e40bf74f271be2ce4611f60c
[ "Apache-2.0" ]
2
2021-09-17T06:10:17.000Z
2022-01-22T23:37:22.000Z
pyscf/adc/uadc_ao2mo.py
r-peng/pyscf
9a14f9bcc63bc75f5939cb4d00eb47861d8d8989
[ "Apache-2.0" ]
null
null
null
pyscf/adc/uadc_ao2mo.py
r-peng/pyscf
9a14f9bcc63bc75f5939cb4d00eb47861d8d8989
[ "Apache-2.0" ]
2
2021-09-16T23:37:42.000Z
2021-10-14T23:00:39.000Z
# Copyright 2014-2019 The PySCF Developers. 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 appl...
47.866667
138
0.657103
ff5490eab8159c3cce91eec7137b3be426704a0a
1,069
py
Python
tacotron2/loss_function.py
DashaSerdyuk/tacotron2
1a88669670750f8b0e1aff76abc8b1b15300e1dc
[ "BSD-3-Clause" ]
1
2020-03-03T23:04:05.000Z
2020-03-03T23:04:05.000Z
tacotron2/loss_function.py
DashaSerdyuk/tacotron2
1a88669670750f8b0e1aff76abc8b1b15300e1dc
[ "BSD-3-Clause" ]
null
null
null
tacotron2/loss_function.py
DashaSerdyuk/tacotron2
1a88669670750f8b0e1aff76abc8b1b15300e1dc
[ "BSD-3-Clause" ]
1
2020-03-26T19:37:46.000Z
2020-03-26T19:37:46.000Z
from torch import nn class MaskedMSELoss(nn.Module): def __init__(self): super(MaskedMSELoss, self).__init__() def forward(self, pred, target, output_lengths): squared_error = (target - pred) ** 2 loss = (squared_error.mean(1).sum(1) / output_lengths).mean() return loss clas...
34.483871
79
0.666043
ff54aaa08526895df0d8ce1baaaf7e3995de1418
460
py
Python
examples/example_1_feedparser.py
markeyev/PythonForParsingNewsWorkshop
6a60630290052ff667867af7a459d7258ab171cf
[ "MIT" ]
null
null
null
examples/example_1_feedparser.py
markeyev/PythonForParsingNewsWorkshop
6a60630290052ff667867af7a459d7258ab171cf
[ "MIT" ]
null
null
null
examples/example_1_feedparser.py
markeyev/PythonForParsingNewsWorkshop
6a60630290052ff667867af7a459d7258ab171cf
[ "MIT" ]
null
null
null
# ! pip install feedparser import feedparser feed = feedparser.parse('https://news.bitcoin.com/feed/') # print('what\'s available on feed level', feed.keys()) post = feed['entries'][0] # latest post # print('what\'s available on post level', post.keys()) print('title:', post['title']) print('published:', post.pu...
24.210526
57
0.665217
ff54c38037a51a1bd7e95dac19c611332cb7aab6
13,898
py
Python
ucsc_apis/admin/tacacsplus.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
1
2018-08-15T15:13:43.000Z
2018-08-15T15:13:43.000Z
ucsc_apis/admin/tacacsplus.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
8
2017-02-13T09:09:02.000Z
2017-12-27T04:05:26.000Z
ucsc_apis/admin/tacacsplus.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
3
2016-11-22T09:49:01.000Z
2020-10-14T01:23:40.000Z
# Copyright 2017 Cisco Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
30.545055
78
0.640596
ff54fb05e67d60efb32e5f7a07043e1195af5c63
7,633
py
Python
models_fc.py
NingMiao/mfcvae
6c6b83bd05fdc618db3976da5faf54838af7e334
[ "MIT" ]
20
2021-06-10T00:26:26.000Z
2022-03-30T01:28:01.000Z
models_fc.py
NingMiao/mfcvae
6c6b83bd05fdc618db3976da5faf54838af7e334
[ "MIT" ]
1
2022-03-03T16:40:30.000Z
2022-03-04T14:49:46.000Z
models_fc.py
NingMiao/mfcvae
6c6b83bd05fdc618db3976da5faf54838af7e334
[ "MIT" ]
8
2021-06-13T08:53:33.000Z
2022-03-14T06:22:00.000Z
import torch import torch.nn as nn from utils import build_fc_network from typing import List class FCsharedEncoder(nn.Module): def __init__(self, layer_dims: List[int], J_n_mixtures: int, activation: str = "relu", dropout_prob: float = 0., do_fc_batch_norm: bool = False): super(self.__c...
42.171271
197
0.615485
ff552cccdff621b8139033132dffaa5491beee2f
4,615
py
Python
experiments/state_distance/visualize_implicit_model_error.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/state_distance/visualize_implicit_model_error.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/state_distance/visualize_implicit_model_error.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" Visualize how the errors in an implicitly learned dynamics model propagate over time. Usage: ``` python ../visualize_implicit_model_error.py path/to/params.pkl ``` """ import argparse import joblib import matplotlib.cm as cm import matplotlib.pyplot as plt import numpy as np from matplotlib import colors from rl...
30.973154
79
0.620585
ff5563e6f44867887d45f3ff07cd1aa6fc4871fc
4,430
py
Python
chapter2/wok/master/wok/config/optionsconfig.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
1
2015-12-22T00:53:18.000Z
2015-12-22T00:53:18.000Z
chapter2/wok/master/wok/config/optionsconfig.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
chapter2/wok/master/wok/config/optionsconfig.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
############################################################################### # # Copyright 2009-2011, Universitat Pompeu Fabra # # This file is part of Wok. # # Wok is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free...
32.573529
141
0.691874
ff556f867bc6af65ff1bbbb89ac0da195c6d61c5
6,373
py
Python
master/nameko-master/nameko-master/nameko/amqp/publish.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/nameko-master/nameko-master/nameko/amqp/publish.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/nameko-master/nameko-master/nameko/amqp/publish.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
import warnings from contextlib import contextmanager from kombu import Connection from kombu.pools import connections, producers from six.moves import queue as Queue from nameko.constants import DEFAULT_RETRY_POLICY, PERSISTENT class UndeliverableMessage(Exception): """ Raised when publisher confirms are enabl...
30.936893
79
0.629217
ff5574504edfd1c18b813a5494b3c530294d0d8c
4,067
py
Python
marqeta/resources/collection.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/resources/collection.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/resources/collection.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
""" COLLECTION OF GENERIC CRU PARAMETERS """ class Collection(object): ''' Marqeta API -endpoint list, create, find and update operations ''' def __init__(self, client, resource): ''' Creates a client collection objects for different responses :param client: client object ...
36.3125
90
0.61372
ff55758596bcf5b7698307d08ab91ce70060a2e3
1,825
py
Python
docs/code/VOC2012Segmentation.py
Hoteryoung/tensorbay-python-sdk
53c34dd529c20ec69b34ddd348b5c8e74f4094d0
[ "MIT" ]
null
null
null
docs/code/VOC2012Segmentation.py
Hoteryoung/tensorbay-python-sdk
53c34dd529c20ec69b34ddd348b5c8e74f4094d0
[ "MIT" ]
null
null
null
docs/code/VOC2012Segmentation.py
Hoteryoung/tensorbay-python-sdk
53c34dd529c20ec69b34ddd348b5c8e74f4094d0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # # pylint: disable=wrong-import-position # pylint: disable=wrong-import-order # pylint: disable=not-callable # pylint: disable=ungrouped-imports # pylint: disable=import-error # pylint: disable=pointless-string-statement # pylint: disable=...
24.013158
68
0.746849
ff55863f8b17503ac03a73c3499c95f3694ce7a3
15,033
py
Python
mslib/mscolab/_tests/test_file_manager.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
33
2020-12-04T04:29:28.000Z
2022-03-05T17:11:49.000Z
mslib/mscolab/_tests/test_file_manager.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
614
2020-12-06T16:54:44.000Z
2022-03-31T07:41:02.000Z
mslib/mscolab/_tests/test_file_manager.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
51
2020-12-04T15:10:46.000Z
2022-03-20T02:02:11.000Z
# -*- coding: utf-8 -*- """ mslib.mscolab._tests.test_file_manager ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tests for file_manager functionalities This file is part of mss. :copyright: Copyright 2020 Reimar Bauer :copyright: Copyright 2020-2021 by the mss team, see AUTHORS. :license: APACHE-...
49.778146
117
0.64538
ff55881d91266ed4dce4fbd381c0d854e2340ee1
4,511
py
Python
charms/mysql-operator/tests/test_charm.py
charmed-osm/5g-ims
bb902efa575e2e3cf7b97441fc85ace2e917c39b
[ "Apache-2.0" ]
1
2021-06-10T06:53:34.000Z
2021-06-10T06:53:34.000Z
charms/mysql-operator/tests/test_charm.py
charmed-osm/5g-ims
bb902efa575e2e3cf7b97441fc85ace2e917c39b
[ "Apache-2.0" ]
3
2021-08-25T02:30:13.000Z
2022-02-25T06:08:16.000Z
charms/mysql-operator/tests/test_charm.py
charmed-osm/5g-ims
bb902efa575e2e3cf7b97441fc85ace2e917c39b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2020 Tata Elxsi # # Licensed under the Apache License, Version 2.0 (the License); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
36.379032
81
0.625582
ff5588e7782845ad5b3aca3200bbc9b81eb859c7
1,685
py
Python
pandas/__init__.py
hhuuggoo/pandas
f87ab95c2ecd1be6a3e3acec8f5d81e7f3c8e4bd
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
26
2018-02-14T23:52:58.000Z
2021-08-16T13:50:03.000Z
pandas/__init__.py
hhuuggoo/pandas
f87ab95c2ecd1be6a3e3acec8f5d81e7f3c8e4bd
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/__init__.py
hhuuggoo/pandas
f87ab95c2ecd1be6a3e3acec8f5d81e7f3c8e4bd
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
10
2018-08-13T19:38:39.000Z
2020-04-19T03:02:00.000Z
# pylint: disable-msg=W0614,W0401,W0611,W0622 __docformat__ = 'restructuredtext' try: from . import hashtable, tslib, lib except Exception: # pragma: no cover import sys e = sys.exc_info()[1] # Py25 and Py3 current exception syntax conflict print(e) if 'No module named lib' in str(e): ra...
31.203704
78
0.747774
ff55c2a9b4e306615de146dd3f809ccb2f4c85e6
16,632
py
Python
submarine-sdk/pysubmarine/submarine/store/database/models.py
akizminet/submarine
aa6e865f27167a26050d8daa293e0b4f41a144b6
[ "Apache-2.0" ]
544
2019-10-29T02:35:31.000Z
2022-03-31T21:22:44.000Z
submarine-sdk/pysubmarine/submarine/store/database/models.py
akizminet/submarine
aa6e865f27167a26050d8daa293e0b4f41a144b6
[ "Apache-2.0" ]
545
2019-10-29T03:21:38.000Z
2022-03-30T05:21:15.000Z
submarine-sdk/pysubmarine/submarine/store/database/models.py
akizminet/submarine
aa6e865f27167a26050d8daa293e0b4f41a144b6
[ "Apache-2.0" ]
220
2019-10-29T05:14:03.000Z
2022-03-28T07:29:30.000Z
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use t...
33.6
100
0.565296
ff55ca0a4cefb7248afad2a26b1db83f4832daff
6,547
py
Python
lib/matplotlib/tests/test_tightlayout.py
pmarshwx/matplotlib
12be528dbf2114f7c25abf60de8100cb2d4494af
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/matplotlib/tests/test_tightlayout.py
pmarshwx/matplotlib
12be528dbf2114f7c25abf60de8100cb2d4494af
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/matplotlib/tests/test_tightlayout.py
pmarshwx/matplotlib
12be528dbf2114f7c25abf60de8100cb2d4494af
[ "MIT", "BSD-3-Clause" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) import six import warnings import numpy as np from matplotlib.testing.decorators import image_comparison, knownfailureif import matplotlib.pyplot as plt from nose.tools import assert_raises from numpy.testing...
28.465217
74
0.613563
ff55cad247e5a6c258005d6fe6946ccdcb25461b
581
py
Python
wrap.py
cbehan/pycftboot
f440e3c14412231afbf6a590776b49b57f522f82
[ "MIT" ]
16
2015-07-15T01:19:14.000Z
2021-04-24T11:14:32.000Z
wrap.py
cbehan/pycftboot
f440e3c14412231afbf6a590776b49b57f522f82
[ "MIT" ]
22
2016-02-12T05:01:40.000Z
2020-09-25T23:53:43.000Z
wrap.py
cbehan/pycftboot
f440e3c14412231afbf6a590776b49b57f522f82
[ "MIT" ]
12
2016-02-18T06:02:58.000Z
2022-03-07T13:38:37.000Z
#!/usr/bin/env python2 """ This concatenates all of the PyCFTBoot files. The idea is to need only one command to send it to a cluster. """ from __future__ import print_function import shutil import sys i = 0 files = ["common.py", "compat_juliboots.py", "compat_scalar_blocks.py", "blocks1.py", "blocks2.py"] main_file =...
24.208333
99
0.628227
ff55d862f77e7a040800c2f490559853b6354339
5,688
py
Python
ann/transform.py
yt7589/codis
0b480b1d93235593503d34fe7c76b6188479f328
[ "Apache-2.0" ]
null
null
null
ann/transform.py
yt7589/codis
0b480b1d93235593503d34fe7c76b6188479f328
[ "Apache-2.0" ]
null
null
null
ann/transform.py
yt7589/codis
0b480b1d93235593503d34fe7c76b6188479f328
[ "Apache-2.0" ]
null
null
null
import random import math import torch from torch import nn from torchvision.ops import misc as misc_nn_ops from torchvision.models.detection.image_list import ImageList from ann.image_list import ImageList from ann.roi_heads import paste_masks_in_image class GeneralizedRCNNTransform(nn.Module): ...
38.958904
100
0.602321
ff560a31b12ca307a9de563f828baa72702362ad
2,602
py
Python
examples/outdoor.py
Trainzack/vmflib2
9bc9803b3c8c644346b5a5eb864c0deaf544d8a6
[ "BSD-2-Clause" ]
1
2021-02-11T17:52:48.000Z
2021-02-11T17:52:48.000Z
examples/outdoor.py
Trainzack/vmflib2
9bc9803b3c8c644346b5a5eb864c0deaf544d8a6
[ "BSD-2-Clause" ]
null
null
null
examples/outdoor.py
Trainzack/vmflib2
9bc9803b3c8c644346b5a5eb864c0deaf544d8a6
[ "BSD-2-Clause" ]
1
2021-02-12T18:56:51.000Z
2021-02-12T18:56:51.000Z
#! /usr/bin/env python3 """Example map generator: Outdoor This script demonstrates vmflib2 by generating a map with a 2D skybox and some terrain (a displacement map). """ from vmflib2 import * from vmflib2.types import Vertex from vmflib2.tools import Block from vmflib2.brush import DispInfo import vmflib2.games.base...
29.908046
114
0.693313
ff5611b022f0760dfd907c771be3edad93cd8e5b
458
py
Python
tests/test_mantle/compare/mothball/eq4.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
14
2017-10-08T09:16:10.000Z
2021-11-27T19:12:24.000Z
tests/test_mantle/compare/mothball/eq4.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
7
2018-04-12T21:33:49.000Z
2018-08-21T22:14:20.000Z
tests/test_mantle/compare/mothball/eq4.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
3
2018-07-24T04:55:02.000Z
2019-12-30T08:12:39.000Z
from magma import array, wire, compile, EndCircuit from loam.boards.icestick import IceStick, EQ icestick = IceStick() icestick.J1[0].rename('I0').input().on() icestick.J1[1].rename('I1').input().on() icestick.J1[2].rename('I2').input().on() icestick.J1[3].rename('I3').input().on() icestick.D1.on() main = icestick.ma...
22.9
50
0.668122
ff5613d964a4913d75fe9b3f35af0919e3a497e9
428
py
Python
env/lib/python2.7/site-packages/lib3to2/fixes/fix_printfunction.py
Eric-Muthemba/qontroverse
1f12d0e3bbdee628a88bac77dc53426ded220755
[ "MIT" ]
3
2021-03-29T19:21:08.000Z
2021-12-31T09:30:11.000Z
VisionAPI/lib/python3.8/site-packages/lib3to2/fixes/fix_printfunction.py
aniruddhakj/AnswerScriptEvaluation
7b039b84355ecda1d55dc037ccfc4a4d661ad5e3
[ "BSD-3-Clause" ]
1
2021-06-02T01:45:42.000Z
2021-06-02T01:45:42.000Z
env/lib/python2.7/site-packages/lib3to2/fixes/fix_printfunction.py
Eric-Muthemba/qontroverse
1f12d0e3bbdee628a88bac77dc53426ded220755
[ "MIT" ]
2
2019-01-22T01:05:22.000Z
2019-09-27T12:32:22.000Z
""" Fixer for print: from __future__ import print_function. """ from lib2to3 import fixer_base from lib3to2.fixer_util import future_import class FixPrintfunction(fixer_base.BaseFix): explicit = True # Not the preferred way to fix print PATTERN = """ power< 'print' trailer < '(' any* ')' > any...
25.176471
60
0.654206
ff5629eb1b56d96afd7788f6600ce67037933cc6
3,732
py
Python
Cogs/DJRoles.py
MrAngelDo6pa/MedBotS
89e19d831507e20d0898114502967b2ad8ecf957
[ "MIT" ]
2
2021-09-28T10:40:10.000Z
2021-11-07T14:49:07.000Z
Cogs/DJRoles.py
ddoskid/lol12
35c097bbebeca3043a939b902b07474473344a3c
[ "MIT" ]
null
null
null
Cogs/DJRoles.py
ddoskid/lol12
35c097bbebeca3043a939b902b07474473344a3c
[ "MIT" ]
null
null
null
import asyncio, discord from operator import itemgetter from discord.ext import commands from Cogs import Utils, DisplayName def setup(bot): # Add the bot and deps settings = bot.get_cog("Settings") bot.add_cog(DJRoles(bot, settings)) class DJRoles(commands.Cog): # Init with the bot reference, and a refere...
38.875
144
0.683548
ff562da990eed2881d7abc4ff56cc73c51f28796
1,559
py
Python
supplier/models.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
1
2021-11-06T12:08:26.000Z
2021-11-06T12:08:26.000Z
supplier/models.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
supplier/models.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from core.helpers import TimeStampedModel from company.models import Company from directory_constants import choices, user_roles class Supplier(TimeStampedModel): sso_id = models.PositiveIntegerField(verbose_name='sso user.sso_id', unique=True) ...
38.02439
115
0.723541
ff562de08427de614a7030dfe3ac6ee289ca9f70
4,819
py
Python
k2/service/local/__init__.py
simonemmott/python-k2
8c288b9afce7bb917befcfa3339035ba5ba70e6b
[ "MIT" ]
null
null
null
k2/service/local/__init__.py
simonemmott/python-k2
8c288b9afce7bb917befcfa3339035ba5ba70e6b
[ "MIT" ]
null
null
null
k2/service/local/__init__.py
simonemmott/python-k2
8c288b9afce7bb917befcfa3339035ba5ba70e6b
[ "MIT" ]
null
null
null
''' Created on 10 Feb 2019 @author: simon ''' service_installers = {} def local_service(): ''' This decorator method registers the decorated class as a local service installer ''' def decorator(cls): inst = cls() service_installers[inst.service()['ref']] = inst return cls ...
42.646018
163
0.560697
ff564ff7e72580b3fe99674520aebc4a908fdd1c
2,504
py
Python
kayla/utils/string_helpers.py
ducminhgd/kayla-project
2314baf1f438765cad5597b0099921a65f11db25
[ "MIT" ]
null
null
null
kayla/utils/string_helpers.py
ducminhgd/kayla-project
2314baf1f438765cad5597b0099921a65f11db25
[ "MIT" ]
null
null
null
kayla/utils/string_helpers.py
ducminhgd/kayla-project
2314baf1f438765cad5597b0099921a65f11db25
[ "MIT" ]
null
null
null
import six def xor(str_1, str_2, *args): """ XOR 2 or more strings, :param str_1: first string :param str_2: second string :param args: more strings :return: """ str_result = xor_2_str(str_1, str_2) for add_str in args: str_result = xor_2_str(str_result, add_str) retur...
27.516484
80
0.624601
ff566172277de53da37c18c4b685636931fc8968
26,936
py
Python
preprocess_new.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
1
2019-09-11T10:09:37.000Z
2019-09-11T10:09:37.000Z
preprocess_new.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
null
null
null
preprocess_new.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
1
2019-09-15T17:22:58.000Z
2019-09-15T17:22:58.000Z
import onmt import onmt.markdown import argparse import torch from onmt.data.indexed_dataset import IndexedDatasetBuilder import h5py as h5 import numpy as np parser = argparse.ArgumentParser(description='preprocess.py') onmt.markdown.add_md_help_argument(parser) # **Preprocess Options** parser.add_argument('-conf...
34.053097
113
0.554091
ff56cf8a6017abc6f7b58e1fa94d422d58ba65c3
28,866
py
Python
tensor2tensor/utils/trainer_lib.py
shankharaj29/tensor2tensor
b89ba51a6fa9e0c20009cfb57ee8de04f7138392
[ "Apache-2.0" ]
1
2019-01-21T07:47:47.000Z
2019-01-21T07:47:47.000Z
tensor2tensor/utils/trainer_lib.py
PedroLelis/tensor2tensor
5a867d031bd493eeb7d2776e1118d1594ff0a623
[ "Apache-2.0" ]
1
2019-01-21T10:57:47.000Z
2019-01-21T10:57:47.000Z
tensor2tensor/utils/trainer_lib.py
PedroLelis/tensor2tensor
5a867d031bd493eeb7d2776e1118d1594ff0a623
[ "Apache-2.0" ]
1
2019-01-24T07:17:14.000Z
2019-01-24T07:17:14.000Z
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # 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...
36.493047
80
0.693238
ff56fab99e68a7c743102449bee454f8bf88f825
1,314
py
Python
setup.py
dangom/sfs
9c3b9551d31718eecb5057c330eff998005941ae
[ "MIT" ]
null
null
null
setup.py
dangom/sfs
9c3b9551d31718eecb5057c330eff998005941ae
[ "MIT" ]
null
null
null
setup.py
dangom/sfs
9c3b9551d31718eecb5057c330eff998005941ae
[ "MIT" ]
null
null
null
from io import open from setuptools import find_packages, setup with open('sfs/__init__.py', 'r') as f: for line in f: if line.startswith('__version__'): version = line.strip().split('=')[1].strip(' \'"') break else: version = '0.0.1' with open('README.md', 'r', encodi...
25.764706
70
0.592085
ff572173a57d3bd5d35f5e55722579f42ff24934
1,432
py
Python
setup.py
polyswarm/polyswarm-api
8c7c4f1e3b81a386b18ce09ed0413dbd95dcd7d0
[ "MIT" ]
4
2019-04-14T16:23:36.000Z
2021-05-06T15:50:03.000Z
setup.py
polyswarm/polyswarm-api
8c7c4f1e3b81a386b18ce09ed0413dbd95dcd7d0
[ "MIT" ]
18
2019-02-18T16:41:17.000Z
2022-02-02T20:16:33.000Z
setup.py
polyswarm/polyswarm-api
8c7c4f1e3b81a386b18ce09ed0413dbd95dcd7d0
[ "MIT" ]
6
2019-04-05T08:47:57.000Z
2021-04-26T16:56:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import find_packages, setup # The README.md will be used as the content for the PyPi package details page on the Python Package Index. with open('README.md', 'r') as readme: long_description = readme.read() setup( name='polyswarm-api', version...
34.926829
106
0.628492
ff5724c214121a0384b1927a0215bc497512e6cd
947
py
Python
flexget/tests/test_task.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/tests/test_task.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/tests/test_task.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 class TestTemplate(object): config = """ templates: test_series: series: test: - House settings: ...
29.59375
98
0.581837
ff57522a5c639d00d0a7edde5347fecfed6d64db
8,854
py
Python
oscar/lib/python2.7/site-packages/IPython/core/tests/test_history.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/core/tests/test_history.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/core/tests/test_history.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """Tests for the IPython tab-completion machinery. """ #----------------------------------------------------------------------------- # Module imports #----------------------------------------------------------------------------- # stdlib import io import os import sys import tempfile from ...
41.764151
112
0.521007
ff5759ce887580f2cf5c5fbdcd6564598eaf79ef
4,197
py
Python
unittests/test_service_lib.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
10
2016-12-16T00:05:58.000Z
2018-10-30T17:48:25.000Z
unittests/test_service_lib.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
40
2017-01-04T23:07:05.000Z
2018-04-16T19:52:02.000Z
unittests/test_service_lib.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
23
2016-12-30T05:03:53.000Z
2020-04-01T08:40:24.000Z
# Copyright (c) 2013 - 2017, 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 agre...
29.765957
96
0.655468
ff575bff12f60d94847659ba7608a4e18210ea93
2,424
py
Python
geosoft/gxapi/GXE3DV.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
25
2017-07-14T06:39:37.000Z
2022-03-09T21:39:51.000Z
geosoft/gxapi/GXE3DV.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
100
2016-12-13T17:30:41.000Z
2021-08-01T20:21:13.000Z
geosoft/gxapi/GXE3DV.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
28
2016-12-12T17:34:40.000Z
2022-03-16T15:39:39.000Z
### extends 'class_empty.py' ### block ClassImports # NOTICE: Do not edit anything here, it is generated code from . import gxapi_cy from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref from .GXMVIEW import GXMVIEW ### endblock ClassImports ### block Header # NOTICE: The code generator will not replace t...
24.989691
135
0.634901
ff5779423ee0627d925527327637decbfbd88e43
6,704
py
Python
experiments/shikhar/corl2019/mulitobj_cvae/multiobj_cvae_sweep_stacked.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/shikhar/corl2019/mulitobj_cvae/multiobj_cvae_sweep_stacked.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/shikhar/corl2019/mulitobj_cvae/multiobj_cvae_sweep_stacked.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in from rlkit.launchers.launcher_util import run_experiment # from rlkit.torch.grill.launcher...
37.038674
117
0.586366
ff57a0ff83e89260f0440a782bf80814cbda5678
1,280
py
Python
bonneville/modules/event.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/event.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/event.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Use the :doc:`Salt Event System </topics/event/index>` to fire events from the master to the minion and vice-versa. ''' # Import bonneville libs import bonneville.crypt import bonneville.utils.event import bonneville.payload def fire_master(data, tag, preload=None): ''' Fire an ev...
22.857143
83
0.603906
ff57ccdf3fbee4d0db72cf3834998d28c649bd1d
7,194
py
Python
pandaharvester/harvestermonitor/cobalt_monitor.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
7
2019-08-30T07:35:48.000Z
2022-02-13T14:46:53.000Z
pandaharvester/harvestermonitor/cobalt_monitor.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
29
2019-09-20T14:04:37.000Z
2021-09-13T12:53:05.000Z
pandaharvester/harvestermonitor/cobalt_monitor.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
15
2019-07-30T11:48:29.000Z
2022-03-29T21:49:05.000Z
import re try: import subprocess32 as subprocess except: import subprocess import json import os.path from pprint import pprint from pandaharvester.harvestercore import core_utils from pandaharvester.harvestercore.work_spec import WorkSpec from pandaharvester.harvestercore.plugin_base import PluginBase # logg...
47.328947
151
0.491243
ff57d1d8f447f0a5d93975ba0130d95446c8d24a
3,470
py
Python
blog/serializers.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
4
2018-08-17T08:06:06.000Z
2020-02-20T15:15:56.000Z
blog/serializers.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
2
2018-10-08T15:59:58.000Z
2018-10-20T16:50:13.000Z
blog/serializers.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
1
2019-09-14T23:15:10.000Z
2019-09-14T23:15:10.000Z
"""Blog serializers.""" from rest_framework import serializers from rest_framework.validators import UniqueValidator from .models import Post, Tag class ImageUrlField(serializers.Field): """Custom field for a post's image URL.""" def get_attribute(self, obj: Post) -> Post: """Pass the post object i...
28.916667
76
0.626225
ff5817e9ea4dee128c38dac3454be0bb3f68d181
5,267
py
Python
bin/push_to_tns.py
astrolabsoftware/fink-source
9003e933e1d8c3f03b70c2b277638de97be102ec
[ "Apache-2.0" ]
null
null
null
bin/push_to_tns.py
astrolabsoftware/fink-source
9003e933e1d8c3f03b70c2b277638de97be102ec
[ "Apache-2.0" ]
null
null
null
bin/push_to_tns.py
astrolabsoftware/fink-source
9003e933e1d8c3f03b70c2b277638de97be102ec
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2020-2022 AstroLab Software # Author: Julien Peloton # # 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 # # U...
34.201299
85
0.617999
ff581cb2d48690b37e43f44ec7b3f90733fe22e7
1,642
py
Python
plots/exploration/interspike_corr.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
2
2021-11-01T09:13:17.000Z
2022-03-08T14:34:16.000Z
plots/exploration/interspike_corr.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
null
null
null
plots/exploration/interspike_corr.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
null
null
null
import time import copy import os from multiprocessing import Pool import numpy as np import matplotlib.pyplot as plt import flowrect from flowrect.simulations import ISIC_particle, ISIC_2nd_order, particle_population from flowrect.simulations.util import calculate_mt, calculate_nt params = dict( time_end=40, ...
25.261538
83
0.639464
ff5824eff5220adb620ebfbd79016359d08a04b8
1,201
py
Python
test/test_extrac.py
belingud/python_extrac
5d96f9bf7a545ad191294c18c206f76d221e2ca7
[ "MIT" ]
1
2019-11-14T07:19:05.000Z
2019-11-14T07:19:05.000Z
test/test_extrac.py
belingud/python_extrac
5d96f9bf7a545ad191294c18c206f76d221e2ca7
[ "MIT" ]
null
null
null
test/test_extrac.py
belingud/python_extrac
5d96f9bf7a545ad191294c18c206f76d221e2ca7
[ "MIT" ]
null
null
null
import os import unittest import subprocess from python_extrac import extrac class TestExtrac(unittest.TestCase): # tmp = sys.stdout file_path = "test/data/linux-amd64-1.1.0.tar.gz" def test_extrac_command_output(self): os.chdir(os.path.abspath("test/data/")) p = subprocess.Popen( ...
31.605263
83
0.592007
ff5840fc04c1d51a9ccad51618c66c1e74398833
2,555
py
Python
utils/models/create-chn-ub.py
saridut/BROWNPAK
8a3aef5f393826e8b5d8c374a190e6e6e1140221
[ "MIT" ]
null
null
null
utils/models/create-chn-ub.py
saridut/BROWNPAK
8a3aef5f393826e8b5d8c374a190e6e6e1140221
[ "MIT" ]
null
null
null
utils/models/create-chn-ub.py
saridut/BROWNPAK
8a3aef5f393826e8b5d8c374a190e6e6e1140221
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Creates initial configuration for a system containing single unbranched linear chain in an unbounded domain. ''' import sys import math import numpy as np from configuration import Configuration from config_io import * #-----------------------------------------------------------------------...
27.180851
89
0.646967
ff587de73f1607dcb50a33d08f598d26f9678a76
38
py
Python
bayesian/__init__.py
timgates42/bayesian-belief-networks
23c3e3ce1c7f99d83efb79f9b7798af2a1537e1c
[ "Apache-2.0" ]
734
2015-01-05T21:25:01.000Z
2022-03-16T12:12:20.000Z
bayesian/__init__.py
timgates42/bayesian-belief-networks
23c3e3ce1c7f99d83efb79f9b7798af2a1537e1c
[ "Apache-2.0" ]
11
2015-01-20T16:22:48.000Z
2021-05-12T13:01:11.000Z
bayesian/__init__.py
timgates42/bayesian-belief-networks
23c3e3ce1c7f99d83efb79f9b7798af2a1537e1c
[ "Apache-2.0" ]
222
2015-01-06T09:28:53.000Z
2022-03-04T10:38:32.000Z
GREEN = '\033[92m' NORMAL = '\033[0m'
12.666667
18
0.578947
ff587fad448f0f98a2edd98fe52415ee2f416390
7,749
py
Python
qnarre/doc/date.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/doc/date.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/doc/date.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2019 Quantapix 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 applicable l...
29.918919
79
0.452316
ff5891a181755f29af68e28eb3e7cc2a083a460a
682
py
Python
migrations/versions/732791999e52_delete_migration.py
lewis-murgor/pitch
8a250d419db0d69c1f236d533e1db8a7adadb64c
[ "MIT" ]
null
null
null
migrations/versions/732791999e52_delete_migration.py
lewis-murgor/pitch
8a250d419db0d69c1f236d533e1db8a7adadb64c
[ "MIT" ]
null
null
null
migrations/versions/732791999e52_delete_migration.py
lewis-murgor/pitch
8a250d419db0d69c1f236d533e1db8a7adadb64c
[ "MIT" ]
null
null
null
"""Delete Migration Revision ID: 732791999e52 Revises: 8de688490f58 Create Date: 2022-03-09 20:19:40.625985 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '732791999e52' down_revision = '8de688490f58' branch_labels = None depends_on = None def upgrade(): ...
23.517241
101
0.699413
ff58cf17f5b609112638846392e709a5ef3c1c56
3,003
py
Python
guest-talks/20160328-machine-learning/train_and_export.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
guest-talks/20160328-machine-learning/train_and_export.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
guest-talks/20160328-machine-learning/train_and_export.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
#!/usr/bin/python # HTTP client import httplib import json import os # Model training from mnist import MNIST import numpy as np from sklearn import neural_network as nn # Model serialization from sklearn2pmml import sklearn2pmml from sklearn.externals import joblib def query_digit(digit, host=None, port=None): ...
34.517241
126
0.68032
ff58e4449a373889361f1e02bc7401b4cebf7e87
19,049
py
Python
testing_tool/my_tool/reverse_API/vision.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
1
2022-03-07T03:38:09.000Z
2022-03-07T03:38:09.000Z
testing_tool/my_tool/reverse_API/vision.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
null
null
null
testing_tool/my_tool/reverse_API/vision.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
1
2022-01-12T05:30:40.000Z
2022-01-12T05:30:40.000Z
import os import shutil import numpy as np from PIL import Image, ImageDraw, ImageFont from icrawler.builtin import GoogleImageCrawler, BaiduImageCrawler, BingImageCrawler import csv from time import gmtime, strftime import urllib.request from numpy.lib.type_check import imag # folder locations TMP_FOLDER = "data/t...
35.275926
143
0.691165
ff5930dd436d68ca779d61bff097eecb8ebc10fd
13,655
py
Python
dcal/utils/data_cube_utilities/data_access_api.py
sarah-cheesbrough/odc-sandbox-notebooks
f8b37f2efad77a5acddb56dc4a4c93b4abffe6d0
[ "Apache-2.0" ]
7
2019-05-25T04:10:29.000Z
2022-03-24T22:43:59.000Z
dcal/utils/data_cube_utilities/data_access_api.py
sarah-cheesbrough/odc-sandbox-notebooks
f8b37f2efad77a5acddb56dc4a4c93b4abffe6d0
[ "Apache-2.0" ]
3
2019-04-16T00:50:04.000Z
2019-07-10T06:24:51.000Z
dcal/utils/data_cube_utilities/data_access_api.py
sarah-cheesbrough/odc-sandbox-notebooks
f8b37f2efad77a5acddb56dc4a4c93b4abffe6d0
[ "Apache-2.0" ]
6
2019-05-18T20:52:01.000Z
2020-02-06T05:32:50.000Z
# Copyright 2016 United States Government as represented by the Administrator # of the National Aeronautics and Space Administration. All Rights Reserved. # # Portion of this code is Copyright Geoscience Australia, Licensed under the # Apache License, Version 2.0 (the "License"); you may not use this file # except in c...
44.048387
160
0.586159
ff5939fd1bef1e45726ec62ad6329115f91d2ce3
2,015
py
Python
synapse/tests/test_lib_crypto_rsa.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_lib_crypto_rsa.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_lib_crypto_rsa.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
import hashlib import synapse.lib.crypto.rsa as s_rsa from synapse.tests.common import * class RsaTest(SynTest): def test_lib_crypto_rsa_keys(self): prikey = s_rsa.PriKey.generate() pubkey = prikey.public() encr = pubkey.encrypt(b'woot') self.eq(b'woot', prikey.decrypt(encr)) ...
30.530303
66
0.610918
ff5943877cba42343685ba10612ee9837cdecd6c
433
py
Python
Python/ex112/utilidadescev/dado/__init__.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
1
2021-02-16T17:36:53.000Z
2021-02-16T17:36:53.000Z
Python/ex112/utilidadescev/dado/__init__.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
Python/ex112/utilidadescev/dado/__init__.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
def leiadinheiro(msg): valido = False while not valido: # enquanto nao for valido, faça entrada = str(input(msg)).replace(',', '.') # vai ler em string pra poder tratar a string if entrada.isalpha() or entrada.strip() == '': # se essa entrada for alfanumerico , vai da erro print(f'ER...
48.111111
103
0.598152
ff5950ff6be04993bde334f16001eba4fa24eb93
371
py
Python
really_fast_tuning/numba_demo.py
JamesRocker-Simply/fast_python_demo
3bc738052f17daca3ea5d221b1742f4dee0439c7
[ "MIT" ]
1
2020-12-10T20:20:21.000Z
2020-12-10T20:20:21.000Z
really_fast_tuning/numba_demo.py
JamesRocker-Simply/fast_python_demo
3bc738052f17daca3ea5d221b1742f4dee0439c7
[ "MIT" ]
null
null
null
really_fast_tuning/numba_demo.py
JamesRocker-Simply/fast_python_demo
3bc738052f17daca3ea5d221b1742f4dee0439c7
[ "MIT" ]
1
2020-12-10T20:21:31.000Z
2020-12-10T20:21:31.000Z
from numba import jit random_list = tuple(range(0, 1000)) # Numba only likes tuples smaller than 1000 for looping @jit(nopython=True) # if True, uses numba and upon failure falls back to python interpreter. Use it where possible def numba_mean(x): total = 0 for xi in x: total += xi return total...
24.733333
115
0.706199
ff595486d1ea96c80854d78df7af83eb6acf7159
64,305
py
Python
datadog_checks_base/tests/test_prometheus.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_base/tests/test_prometheus.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_base/tests/test_prometheus.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2016 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import logging import os import pytest import mock import requests from datadog_checks.checks.prometheus import PrometheusCheck, UnknownFormatError from datadog_checks.utils.prometheus import parse_metric_family, metr...
40.367232
142
0.658689
ff5974c0c5b68c7217e036afde0412450ca15541
662
py
Python
imagefactory_plugins/Docker/__init__.py
henrysher/imgfac
e0979139a93b055f018f460b1404cc9b1796c838
[ "Apache-2.0" ]
1
2019-06-16T07:05:24.000Z
2019-06-16T07:05:24.000Z
imagefactory_plugins/Docker/__init__.py
henrysher/imgfac
e0979139a93b055f018f460b1404cc9b1796c838
[ "Apache-2.0" ]
null
null
null
imagefactory_plugins/Docker/__init__.py
henrysher/imgfac
e0979139a93b055f018f460b1404cc9b1796c838
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # 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 applica...
34.842105
76
0.73716
ff59751f505c72748f0707a6df6423206903cb98
2,752
py
Python
resources/constant.py
xwhan/Extremely-Fine-Grained-Entity-Typing
d8660ccfa70b0bbeec9a200bf2336aa0d7aa7ab7
[ "MIT" ]
89
2019-03-06T22:42:59.000Z
2021-09-29T03:34:27.000Z
resources/constant.py
CPF-NLPR/Extremely-Fine-Grained-Entity-Typing
d8660ccfa70b0bbeec9a200bf2336aa0d7aa7ab7
[ "MIT" ]
5
2019-03-12T16:11:46.000Z
2020-09-11T08:21:31.000Z
resources/constant.py
CPF-NLPR/Extremely-Fine-Grained-Entity-Typing
d8660ccfa70b0bbeec9a200bf2336aa0d7aa7ab7
[ "MIT" ]
8
2019-03-08T15:05:29.000Z
2021-07-09T15:30:05.000Z
from collections import namedtuple, defaultdict def load_vocab_dict(vocab_file_name, vocab_max_size=None, start_vocab_count=None): with open(vocab_file_name) as f: text = [x.strip() for x in f.readlines()] if vocab_max_size: text = text[:vocab_max_size] if start_vocab_count: file_content = di...
38.760563
97
0.702035
ff598f2464f04a65e9a093834b2f9028fb8ce04d
54
py
Python
mauth_client/lambda_authenticator/__init__.py
mdsol/mauth-client-python
0711017ebe644d5571c3ef3b26868b8f70e8c241
[ "MIT" ]
1
2020-10-23T06:31:52.000Z
2020-10-23T06:31:52.000Z
mauth_client/lambda_authenticator/__init__.py
mdsol/mauth-client-python
0711017ebe644d5571c3ef3b26868b8f70e8c241
[ "MIT" ]
2
2021-02-10T15:54:40.000Z
2021-02-18T14:23:03.000Z
mauth_client/lambda_authenticator/__init__.py
mdsol/mauth-client-python
0711017ebe644d5571c3ef3b26868b8f70e8c241
[ "MIT" ]
null
null
null
from .lambda_authenticator import LambdaAuthenticator
27
53
0.907407
ff59983ff23979e9cc0b879ec82478f07d30a9e4
16,027
py
Python
oscar/lib/python2.7/site-packages/whoosh/query/nested.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/whoosh/query/nested.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/whoosh/query/nested.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2012 Matt Chaput. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions a...
38.526442
80
0.562613
ff59a6380c3d471f75081daa06adc2abbd32c140
1,923
py
Python
test/test_loss_graphs.py
evie/tensorrec
c67d512e9019007a52fd843e77de7b75b794bd4a
[ "Apache-2.0" ]
null
null
null
test/test_loss_graphs.py
evie/tensorrec
c67d512e9019007a52fd843e77de7b75b794bd4a
[ "Apache-2.0" ]
null
null
null
test/test_loss_graphs.py
evie/tensorrec
c67d512e9019007a52fd843e77de7b75b794bd4a
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from tensorrec import TensorRec from tensorrec.loss_graphs import ( WMRBLossGraph ) from tensorrec.util import generate_dummy_data_with_indicator import pickle from scipy.sparse import coo_matrix import numpy as np class LossGraphsTestCase(TestCase): @classmethod def setUpCl...
46.902439
175
0.703588
ff59b00d20c33151f9f2dd25610a80e8b73fe9b2
12,098
py
Python
lib/models/decode.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
245
2019-11-29T02:55:25.000Z
2022-03-30T07:30:18.000Z
lib/models/decode.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
24
2019-11-29T10:05:00.000Z
2022-03-30T07:16:06.000Z
lib/models/decode.py
FishLiuabc/centerpose
555d753cd82693476f91f78c53aa4147f5a83015
[ "MIT" ]
45
2019-11-29T05:12:02.000Z
2022-03-21T02:20:36.000Z
from __future__ import absolute_import, division, print_function import torch import torch.nn as nn import torch.nn.functional as F from .utils import _gather_feat, _transpose_and_gather_feat def _nms(heat, kernel=3): pad = (kernel - 1) // 2 hmax = nn.functional.max_pool2d( heat, (kernel, kernel), ...
39.152104
108
0.54943
ff59ba222913187dffddec98996e367fb91b50dd
8,815
py
Python
fuzzycat/simple.py
miku/fuzzycat
478d7d06ad9e56145cb94f3461c355b1ba9eb491
[ "MIT" ]
3
2020-12-24T03:38:38.000Z
2022-02-07T19:41:33.000Z
fuzzycat/simple.py
miku/fuzzycat
478d7d06ad9e56145cb94f3461c355b1ba9eb491
[ "MIT" ]
1
2020-11-12T20:01:40.000Z
2020-11-12T20:01:40.000Z
fuzzycat/simple.py
miku/fuzzycat
478d7d06ad9e56145cb94f3461c355b1ba9eb491
[ "MIT" ]
1
2020-11-11T05:59:47.000Z
2020-11-11T05:59:47.000Z
""" This file contains simple high-level functions that call in to match, verify, and unstructured parsing routines. close_fuzzy_release_matches(release) -> List[FuzzyReleaseMatchResult] close_fuzzy_biblio_matches(biblio) -> List[FuzzyReleaseMatchResult] close_fuzzy_unstructured_matches(unstructured) -> Li...
31.938406
92
0.63097
ff59bf7889d1ec74f51cb749e1848e6a7d1358e8
13,147
py
Python
tensorlayer/layers/convolution/separable_conv.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
tensorlayer/layers/convolution/separable_conv.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
tensorlayer/layers/convolution/separable_conv.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- import numpy as np import tensorflow as tf import tensorlayer as tl from tensorlayer import logging from tensorlayer.decorators import deprecated_alias from tensorlayer.layers.core import Layer from tensorlayer.layers.utils import get_collection_trainable __all__ = [ 'S...
43.533113
271
0.645014
ff5a2ab400666d5cf4bb8da3965807ecba5caac5
1,332
py
Python
rebate/setup_multisurf.py
pschmitt52/ReBATE
5d757461eae7e22b86c1fb17812d80fd9e268a5f
[ "MIT" ]
33
2016-08-05T15:29:42.000Z
2022-03-31T12:38:26.000Z
rebate/setup_multisurf.py
pschmitt52/ReBATE
5d757461eae7e22b86c1fb17812d80fd9e268a5f
[ "MIT" ]
2
2018-05-09T14:28:45.000Z
2018-05-09T15:05:03.000Z
rebate/setup_multisurf.py
pschmitt52/ReBATE
5d757461eae7e22b86c1fb17812d80fd9e268a5f
[ "MIT" ]
9
2017-03-05T12:15:40.000Z
2021-01-17T18:44:12.000Z
""" Copyright (c) 2016 Peter R. Schmitt and Ryan J. Urbanowicz 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, me...
42.967742
74
0.792793
ff5a2bbd3e26bc2da353390a9a12477db5c5945d
12,612
py
Python
app/template/rest.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
app/template/rest.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
app/template/rest.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
import base64 from io import BytesIO import botocore from flask import Blueprint, current_app, jsonify, request from notifications_utils import SMS_CHAR_COUNT_LIMIT from notifications_utils.pdf import extract_page_from_pdf from notifications_utils.template import SMSMessageTemplate from PyPDF2.utils import PdfReadErro...
40.038095
128
0.716223
ff5a41de46f3ce8e1f55de6bb7d5865155fe853f
12,379
py
Python
tools/odrive/tests/uart_ascii_test.py
rowanG077/ODrive
431bf9116408691ec631f8286507f627e57b06d2
[ "MIT" ]
19
2018-09-08T09:51:54.000Z
2020-10-02T06:52:26.000Z
tools/odrive/tests/uart_ascii_test.py
rowanG077/ODrive
431bf9116408691ec631f8286507f627e57b06d2
[ "MIT" ]
2
2019-06-30T05:35:29.000Z
2020-06-25T16:41:18.000Z
tools/odrive/tests/uart_ascii_test.py
rowanG077/ODrive
431bf9116408691ec631f8286507f627e57b06d2
[ "MIT" ]
25
2019-02-09T13:39:27.000Z
2020-09-04T03:03:29.000Z
import test_runner import struct import time import os import io import functools import operator from fibre.utils import Logger from odrive.enums import * from test_runner import * def append_checksum(command): return command + b'*' + str(functools.reduce(operator.xor, command)).encode('ascii') def strip_che...
40.990066
163
0.630826
ff5a4611048dae95352d58b80c76b2fc108429e7
4,057
py
Python
alipay/aop/api/request/AlipayOverseasSecondmerchantOfflineMaintainRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOverseasSecondmerchantOfflineMaintainRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOverseasSecondmerchantOfflineMaintainRequest.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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOverseasSecondmerchantOfflineMaintainModel import AlipayOverseasSecondmerchantOfflineMaintainModel class AlipayOverseasSecondm...
27.97931
148
0.652206
ff5a5f06ae9d0015c2e077bf1dcfd974dc977a38
820
py
Python
master/fluffychat-master/fluffychat-master/chats/gui/main_chat.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/fluffychat-master/fluffychat-master/chats/gui/main_chat.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/fluffychat-master/fluffychat-master/chats/gui/main_chat.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
import sys from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow from PyQt5.Qt import QPushButton, QRect, QLabel, QToolTip, QFont class GMainChat(QMainWindow): def __init__(self, *args): super().__init__(*args) self.init_ui() def init_ui(self): QToolTip.setFont(QFont('SansS...
21.578947
64
0.629268
ff5a64c024c441d455a94a8e1da210a54c5fa750
787
py
Python
publichealth/home/migrations/0016_socialcontact.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
2
2020-10-29T16:27:21.000Z
2021-06-07T12:47:46.000Z
publichealth/home/migrations/0016_socialcontact.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
11
2017-05-09T10:50:28.000Z
2021-12-15T17:01:23.000Z
publichealth/home/migrations/0016_socialcontact.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
4
2017-04-24T13:06:55.000Z
2021-06-04T02:18:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-05-05 08:43 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0015_dataletssettings'), ] operations = [ migrations.CreateModel( ...
32.791667
140
0.60737
ff5a6e1c0cb2976ee75d258d77d18ffb2f44dece
32,796
py
Python
django_cloud_deploy/skeleton/source_generator.py
di/django-cloud-deploy
2ee99bcabbbb5224280c0977415ae4bdab9ab7e2
[ "Apache-2.0" ]
null
null
null
django_cloud_deploy/skeleton/source_generator.py
di/django-cloud-deploy
2ee99bcabbbb5224280c0977415ae4bdab9ab7e2
[ "Apache-2.0" ]
null
null
null
django_cloud_deploy/skeleton/source_generator.py
di/django-cloud-deploy
2ee99bcabbbb5224280c0977415ae4bdab9ab7e2
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
42.703125
83
0.604342
ff5a7198466c9d9265e501819486fbdd6836049c
4,999
py
Python
Multi-Task-Learning-PyTorch-master/main.py
nikola3794/edge-evaluation-PASCAL-MT-tmp
d3bc7164608a20eb6351c1d41219213927ae6239
[ "MIT" ]
null
null
null
Multi-Task-Learning-PyTorch-master/main.py
nikola3794/edge-evaluation-PASCAL-MT-tmp
d3bc7164608a20eb6351c1d41219213927ae6239
[ "MIT" ]
null
null
null
Multi-Task-Learning-PyTorch-master/main.py
nikola3794/edge-evaluation-PASCAL-MT-tmp
d3bc7164608a20eb6351c1d41219213927ae6239
[ "MIT" ]
null
null
null
# # Authors: Simon Vandenhende # Licensed under the CC BY-NC 4.0 license (https://creativecommons.org/licenses/by-nc/4.0/) import argparse import cv2 import os import numpy as np import sys import torch from utils.config import create_config from utils.common_config import get_train_dataset, get_transformations,\ ...
35.964029
165
0.645929
ff5aa87f607f67e21729f63f0f794ffbed47be51
308
py
Python
cbox/__init__.py
shmuelamar/cbox
2d0cda5b3f61a55e530251430bf3d460dcd3732e
[ "MIT" ]
164
2017-08-31T05:52:11.000Z
2021-11-25T05:41:46.000Z
cbox/__init__.py
shmuelamar/cbox
2d0cda5b3f61a55e530251430bf3d460dcd3732e
[ "MIT" ]
4
2017-11-27T16:08:46.000Z
2018-03-13T15:16:46.000Z
cbox/__init__.py
shmuelamar/cbox
2d0cda5b3f61a55e530251430bf3d460dcd3732e
[ "MIT" ]
5
2017-09-19T06:12:32.000Z
2019-12-06T11:53:26.000Z
__description__ = 'convert any python function to unix-style command' __version__ = '0.4.0' __author__ = 'Shmuel Amar' __url__ = 'https://github.com/shmuelamar/cbox' __license__ = 'MIT' __keywords__ = 'unix command pipes cli' from .cli import stream, cmd, main # noqa from .concurrency import Stop # noqa
30.8
69
0.746753
ff5aac1924995c62637a2fcae536c3cef7d33b48
1,475
py
Python
thermof/parameters/parameters.py
pzarabadip/thermof
44c33e37aeadce31241a878135b1531757a2b1c4
[ "MIT" ]
null
null
null
thermof/parameters/parameters.py
pzarabadip/thermof
44c33e37aeadce31241a878135b1531757a2b1c4
[ "MIT" ]
11
2017-08-15T22:11:32.000Z
2017-08-22T23:32:17.000Z
thermof/parameters/parameters.py
pzarabadip/thermof
44c33e37aeadce31241a878135b1531757a2b1c4
[ "MIT" ]
1
2017-01-31T19:44:02.000Z
2017-01-31T19:44:02.000Z
""" Parameters for reading and plotting thermal flux """ import os import yaml import pprint from copy import deepcopy from .default import default_parameters class Parameters: def __init__(self, par_set=None): if par_set is not None: self.set(par_set) else: self.set(defaul...
32.777778
88
0.585085
ff5abed7d960c59ec4029e30b969aadd80aaf3d3
133,481
py
Python
tests/unit/gapic/compute_v1/test_region_backend_services.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/compute_v1/test_region_backend_services.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/compute_v1/test_region_backend_services.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
38.938448
131
0.655786
ff5adbdc0765ad82d1490d88b7f5daea086716a3
2,568
py
Python
finance/views/viewtemp.py
robovish/Python-Projects
1cdfa18c093af32cfc02ac7d08e2bdf682670470
[ "MIT" ]
null
null
null
finance/views/viewtemp.py
robovish/Python-Projects
1cdfa18c093af32cfc02ac7d08e2bdf682670470
[ "MIT" ]
null
null
null
finance/views/viewtemp.py
robovish/Python-Projects
1cdfa18c093af32cfc02ac7d08e2bdf682670470
[ "MIT" ]
1
2022-03-03T09:21:37.000Z
2022-03-03T09:21:37.000Z
from datetime import date, datetime import streamlit as st import pandas as pd from mplfinance import * from pandas_datareader import data as pdr st.experimental_memo(persist='disk') def get_historical_data(symbol, start_date = None): df = pdr.get_data_yahoo(symbol, start=start_date, end=datetime.now()) df = d...
33.350649
140
0.669782
ff5ae45bf8adb97d326e46a3eed69c1b86785a92
1,115
py
Python
physipy/random.py
mocquin/physipy
a44805dbf4e68544c987e07564dd4a8d50be8b4c
[ "MIT" ]
5
2021-01-23T11:23:07.000Z
2022-02-28T15:38:58.000Z
physipy/random.py
mocquin/physipy
a44805dbf4e68544c987e07564dd4a8d50be8b4c
[ "MIT" ]
null
null
null
physipy/random.py
mocquin/physipy
a44805dbf4e68544c987e07564dd4a8d50be8b4c
[ "MIT" ]
2
2020-11-07T20:08:08.000Z
2021-06-09T02:58:04.000Z
"""Wrapper of numpy.random distributions Numpy's random functions cannot be wrapped by array_function/ufunc interface, so if we want them to be unit-aware, we have to make our own version. - https://github.com/numpy/numpy/issues/19382 """ import numpy as np from physipy import quantify, Quantity, Dimension def po...
33.787879
77
0.713004
ff5b0621fbb8b6104e2973d9ac33cfad1a2873f2
13,278
py
Python
mi/dataset/parser/ctdbp_cdef_dcl_cp.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/ctdbp_cdef_dcl_cp.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/ctdbp_cdef_dcl_cp.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ @package mi.dataset.parser.ctdbp_cdef_dcl_cp @file marine-integrations/mi/dataset/parser/ctdbp_cdef_dcl_cp.py @author Christopher Fortin @brief Parser for the ctdbp_cdef_dcl_cp dataset driver This file contains code for the ctdbp_cdef_dcl_cp parsers and code to produce data particles. For te...
43.966887
118
0.625169
ff5b1fc73a0ab34df199489224f283ca6f790304
4,988
py
Python
scvi/_settings.py
jacobhepkema/scvi-tools
83e312e30515df97fe2d55dea915c3e23bf97563
[ "BSD-3-Clause" ]
null
null
null
scvi/_settings.py
jacobhepkema/scvi-tools
83e312e30515df97fe2d55dea915c3e23bf97563
[ "BSD-3-Clause" ]
null
null
null
scvi/_settings.py
jacobhepkema/scvi-tools
83e312e30515df97fe2d55dea915c3e23bf97563
[ "BSD-3-Clause" ]
null
null
null
import logging from pathlib import Path from typing import Union import numpy as np import torch from rich.console import Console from rich.logging import RichHandler from ._compat import Literal logger = logging.getLogger(__name__) scvi_logger = logging.getLogger("scvi") class ScviConfig: """ Config manag...
31.56962
93
0.627706
ff5b41b94702a925bfbf10abf1a935a31be2b70b
1,668
py
Python
flexget/plugins/cli/backlog.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/cli/backlog.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/cli/backlog.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 flexget import options from flexget.event import event from flexget.logger import console from flexget.manager import Session from flexget.plugins.input.backlog import get_...
40.682927
115
0.628297
ff5b599e4c2af901bfe0612404efbbefdd92911f
3,062
py
Python
nets/SBMs_node_classification/ring_gnn_net.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
nets/SBMs_node_classification/ring_gnn_net.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
6
2022-01-06T21:27:06.000Z
2022-01-19T06:28:56.000Z
nets/SBMs_node_classification/ring_gnn_net.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn """ Ring-GNN On the equivalence between graph isomorphism testing and function approximation with GNNs (Chen et al, 2019) https://arxiv.org/pdf/1905.12560v1.pdf """ from layers.mlp_readout_layer import MLPReadout from layers.ring_gnn_equiv_layer import RingGNNEquivLayer ...
32.574468
112
0.586218
ff5b7f02f134c52a9912b501f073ecb7a0e4591e
747
py
Python
common/iotools.py
hudmgy/insightface
2ebc87e1bde3d4ef04bc0d4498038a0bc01b0ddc
[ "MIT" ]
1
2019-08-05T00:54:27.000Z
2019-08-05T00:54:27.000Z
common/iotools.py
hudmgy/insightface
2ebc87e1bde3d4ef04bc0d4498038a0bc01b0ddc
[ "MIT" ]
null
null
null
common/iotools.py
hudmgy/insightface
2ebc87e1bde3d4ef04bc0d4498038a0bc01b0ddc
[ "MIT" ]
null
null
null
from __future__ import absolute_import import os import os.path as osp import errno import json import shutil def mkdir_if_missing(directory): if not osp.exists(directory): try: os.makedirs(directory) except OSError as e: if e.errno != errno.EEXIST: raise ...
20.75
73
0.618474
ff5b8804257d78c2c573c2d085b17fc83a82729b
4,303
py
Python
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/ebmlib/_efactory.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
5
2019-03-11T14:30:31.000Z
2021-12-04T14:11:54.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/ebmlib/_efactory.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/ebmlib/_efactory.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
############################################################################### # Name: _efactory.py # # Purpose: Generic Factory Pattern implementation. # # Author: Cody Precord <cprecord@editra.org> # ...
34.424
80
0.564025
ff5ba3445a755ae94de7c91a9bc80753bace78e2
24,393
py
Python
cm/util/worker.py
jmchilton/cloudman
728c93a3e6f1b68bd678ec0c4ea951b33cb6f6f2
[ "MIT" ]
null
null
null
cm/util/worker.py
jmchilton/cloudman
728c93a3e6f1b68bd678ec0c4ea951b33cb6f6f2
[ "MIT" ]
1
2015-04-13T01:45:41.000Z
2015-04-17T01:17:01.000Z
cm/util/worker.py
jmchilton/cloudman
728c93a3e6f1b68bd678ec0c4ea951b33cb6f6f2
[ "MIT" ]
null
null
null
"""Galaxy CM worker manager""" import commands import grp import logging import os import os.path import pwd import subprocess import threading import datetime as dt import shutil import json from cm.util.bunch import Bunch from cm.util import misc, comm, paths from cm.util.manager import BaseConsoleManager from cm.s...
43.481283
148
0.595991
ff5bb17c0a7fcd5b3ef95b886cc10402c0423dbc
1,861
py
Python
classifiers/utils/misc.py
project-mnist-2018/project
e6dc852c26567766db3a724a0a3c26ecfd6cabae
[ "MIT" ]
null
null
null
classifiers/utils/misc.py
project-mnist-2018/project
e6dc852c26567766db3a724a0a3c26ecfd6cabae
[ "MIT" ]
null
null
null
classifiers/utils/misc.py
project-mnist-2018/project
e6dc852c26567766db3a724a0a3c26ecfd6cabae
[ "MIT" ]
null
null
null
""" Miscellaneous auxiliary functions """ import os from keras.datasets import mnist import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import numpy # TODO mock function that creates a dummy feature vector def get_feature_vector(): return numpy.zeros(28*28) def get_real_mnist(): # loa...
30.016129
111
0.600752
ff5bbe231ebba01991696665907a64095c9c7376
11,232
py
Python
scqubits/utils/spectrum_utils.py
IlyaLSMmisis/scqubits-1
c4915c998c2d1ef3348db0e4c423e74c7181da40
[ "BSD-3-Clause" ]
null
null
null
scqubits/utils/spectrum_utils.py
IlyaLSMmisis/scqubits-1
c4915c998c2d1ef3348db0e4c423e74c7181da40
[ "BSD-3-Clause" ]
3
2020-07-14T09:49:53.000Z
2020-08-13T09:34:38.000Z
scqubits/utils/spectrum_utils.py
IlyaLSMmisis/scqubits-1
c4915c998c2d1ef3348db0e4c423e74c7181da40
[ "BSD-3-Clause" ]
2
2020-07-06T08:21:57.000Z
2020-07-08T13:37:12.000Z
# spectrum_utils.py # # This file is part of scqubits. # # Copyright (c) 2019, Jens Koch and Peter Groszkowski # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. ##########################################...
34.139818
119
0.68839
ff5bde6b935235965b9fa34dc07896627f1335da
169
py
Python
deepracing_py/deepracing/controls/__init__.py
linklab-uva/deepracing
fc25c47658277df029e7399d295d97a75fe85216
[ "Apache-2.0" ]
11
2020-06-29T15:21:37.000Z
2021-04-12T00:42:26.000Z
deepracing_py/deepracing/controls/__init__.py
linklab-uva/deepracing
fc25c47658277df029e7399d295d97a75fe85216
[ "Apache-2.0" ]
null
null
null
deepracing_py/deepracing/controls/__init__.py
linklab-uva/deepracing
fc25c47658277df029e7399d295d97a75fe85216
[ "Apache-2.0" ]
4
2019-01-23T23:36:57.000Z
2021-07-02T00:18:37.000Z
from .PurePursuitControl import PurePursuitController as PurePursuitController from .PurePursuitControl import OraclePurePursuitController as OraclePurePursuitController
84.5
90
0.923077