hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
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
2
1.02M
avg_line_length
float64
1
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
f70bd2c627e3404c5ea43791336a763164c6fba4
1,318
py
Python
HDPython/ast/ast_classes/ast_op_stream_out.py
HardwareDesignWithPython/HDPython
aade03aaa092b1684fa12bffd17674cf1c45f5ac
[ "MIT" ]
null
null
null
HDPython/ast/ast_classes/ast_op_stream_out.py
HardwareDesignWithPython/HDPython
aade03aaa092b1684fa12bffd17674cf1c45f5ac
[ "MIT" ]
null
null
null
HDPython/ast/ast_classes/ast_op_stream_out.py
HardwareDesignWithPython/HDPython
aade03aaa092b1684fa12bffd17674cf1c45f5ac
[ "MIT" ]
1
2021-10-20T20:08:16.000Z
2021-10-20T20:08:16.000Z
from HDPython.ast.ast_classes.ast_base import v_ast_base, add_class import HDPython.hdl_converter as hdl from HDPython.ast.ast_hdl_error import HDPython_error from HDPython.base import HDPython_base class v_re_assigne_rhsift(v_ast_base): def __init__(self,lhs, rhs,context=None, astParser=None): self.lhs ...
33.794872
116
0.695751
from HDPython.ast.ast_classes.ast_base import v_ast_base, add_class import HDPython.hdl_converter as hdl from HDPython.ast.ast_hdl_error import HDPython_error from HDPython.base import HDPython_base class v_re_assigne_rhsift(v_ast_base): def __init__(self,lhs, rhs,context=None, astParser=None): self.lhs ...
true
true
f70bd2ee450be0f82157aa65881304ad6a24cb47
1,884
py
Python
dask_kubernetes/conftest.py
ddelange/dask-kubernetes
42bcf9817ea963bf048f9dd06caec1622656302a
[ "BSD-3-Clause" ]
1
2022-01-20T12:38:27.000Z
2022-01-20T12:38:27.000Z
dask_kubernetes/conftest.py
ddelange/dask-kubernetes
42bcf9817ea963bf048f9dd06caec1622656302a
[ "BSD-3-Clause" ]
null
null
null
dask_kubernetes/conftest.py
ddelange/dask-kubernetes
42bcf9817ea963bf048f9dd06caec1622656302a
[ "BSD-3-Clause" ]
null
null
null
import pytest import pathlib import os import subprocess import tempfile from kopf.testing import KopfRunner from dask_kubernetes.common.utils import check_dependency DIR = pathlib.Path(__file__).parent.absolute() check_dependency("helm") check_dependency("kubectl") check_dependency("docker") @pytest.fixture() a...
25.808219
76
0.701168
import pytest import pathlib import os import subprocess import tempfile from kopf.testing import KopfRunner from dask_kubernetes.common.utils import check_dependency DIR = pathlib.Path(__file__).parent.absolute() check_dependency("helm") check_dependency("kubectl") check_dependency("docker") @pytest.fixture() a...
true
true
f70bd49fe5654e00114c7d8e83bb1de6aef33e5b
1,019
py
Python
bigquery/samples/tests/test_query_to_arrow.py
ryanyuan/google-cloud-python
db481bfdd6816d020d99df0d4caa307358ab1141
[ "Apache-2.0" ]
2
2021-11-26T07:08:43.000Z
2022-03-07T20:20:04.000Z
bigquery/samples/tests/test_query_to_arrow.py
ryanyuan/google-cloud-python
db481bfdd6816d020d99df0d4caa307358ab1141
[ "Apache-2.0" ]
null
null
null
bigquery/samples/tests/test_query_to_arrow.py
ryanyuan/google-cloud-python
db481bfdd6816d020d99df0d4caa307358ab1141
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.966667
74
0.75368
import pyarrow from .. import query_to_arrow def test_query_to_arrow(capsys, client): arrow_table = query_to_arrow.query_to_arrow(client) out, err = capsys.readouterr() assert "Downloaded 8 rows, 2 columns." in out arrow_schema = arrow_table.schema assert arrow_schema.names == ["r...
true
true
f70bd5b228ad260502fad0f468efc7ec516cb86b
4,898
py
Python
src/oci/autoscaling/models/auto_scaling_policy_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/autoscaling/models/auto_scaling_policy_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/autoscaling/models/auto_scaling_policy_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
29.865854
245
0.64067
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class AutoScalingPolicySummary(object): def __init__(self, **kwargs): self.swagger_types = { 'id': 'str', ...
true
true
f70bd624daea884c43b42cf57519b4e3a69a5311
1,413
py
Python
python/consumer.py
vishnuhd/getting-started-with-apache-kafka
7b900fc419cbcda8ab882121c2a72e63bdc8b2c4
[ "Apache-2.0" ]
14
2018-11-01T16:11:41.000Z
2019-06-03T14:52:03.000Z
python/consumer.py
vishnuhd/getting-started-with-apache-kafka
7b900fc419cbcda8ab882121c2a72e63bdc8b2c4
[ "Apache-2.0" ]
1
2018-10-31T15:39:24.000Z
2018-11-30T03:05:10.000Z
python/consumer.py
vishnuhd/getting-started-with-apache-kafka
7b900fc419cbcda8ab882121c2a72e63bdc8b2c4
[ "Apache-2.0" ]
8
2018-10-31T15:39:39.000Z
2019-06-06T12:21:55.000Z
from confluent_kafka import Consumer, KafkaException, KafkaError import sys import logging from pprint import pformat def print_assignment(consumer, partitions): print('Assignment:', partitions) if __name__ == '__main__': conf = { 'bootstrap.servers': 'localhost:9092', 'group.id': 'de...
31.4
82
0.515924
from confluent_kafka import Consumer, KafkaException, KafkaError import sys import logging from pprint import pformat def print_assignment(consumer, partitions): print('Assignment:', partitions) if __name__ == '__main__': conf = { 'bootstrap.servers': 'localhost:9092', 'group.id': 'de...
true
true
f70bd6f163acbc02bb3dfe9ad87f6d700204f840
73,983
py
Python
WrightTools/data/_data.py
untzag/WrightTools
05480d2f91ceeca422d9e5ac381fce1840207cb0
[ "MIT" ]
12
2017-07-11T15:58:12.000Z
2021-05-10T20:33:26.000Z
WrightTools/data/_data.py
untzag/WrightTools
05480d2f91ceeca422d9e5ac381fce1840207cb0
[ "MIT" ]
808
2015-04-12T00:36:08.000Z
2022-03-27T21:06:06.000Z
WrightTools/data/_data.py
untzag/WrightTools
05480d2f91ceeca422d9e5ac381fce1840207cb0
[ "MIT" ]
9
2017-07-22T18:54:23.000Z
2022-02-17T20:31:05.000Z
"""Central data class and associated.""" # --- import -------------------------------------------------------------------------------------- import collections import operator import functools import warnings import numpy as np import h5py import scipy from scipy.interpolate import griddata, interp1d from .._gr...
38.273668
109
0.541989
import collections import operator import functools import warnings import numpy as np import h5py import scipy from scipy.interpolate import griddata, interp1d from .._group import Group from .. import collection as wt_collection from .. import exceptions as wt_exceptions from .. import kit as wt_kit from .. ...
true
true
f70bd75e36b14f005bee3275929a42154f09dfe5
54,196
py
Python
tensorflow/python/framework/func_graph.py
ahmedsabie/tensorflow
1c47355978f562a6a40cd8b0597e2638fb73e07d
[ "Apache-2.0" ]
2
2020-04-02T11:52:00.000Z
2020-05-29T09:02:00.000Z
tensorflow/python/framework/func_graph.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
1
2020-05-16T01:56:36.000Z
2020-05-16T01:56:36.000Z
tensorflow/python/framework/func_graph.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
1
2021-12-06T17:11:35.000Z
2021-12-06T17:11:35.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.721324
97
0.694811
from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections as py_collections import itertools import weakref import numpy as np from tensorflow.core.framework import attr_value_pb2 from tensorflow.python.eager import context from ten...
true
true
f70bd7df44af8f81da661aee94f5ea0c7b3f53cd
245
py
Python
scripts/project_package_name/setup.py
godzilla-but-nicer/SporeLoss
8159a628e5f17191254583c053891070ba3d6e7f
[ "MIT" ]
null
null
null
scripts/project_package_name/setup.py
godzilla-but-nicer/SporeLoss
8159a628e5f17191254583c053891070ba3d6e7f
[ "MIT" ]
null
null
null
scripts/project_package_name/setup.py
godzilla-but-nicer/SporeLoss
8159a628e5f17191254583c053891070ba3d6e7f
[ "MIT" ]
1
2022-01-10T00:40:05.000Z
2022-01-10T00:40:05.000Z
#!/usr/bin/env python # encoding: utf-8 from distutils.core import setup setup(name='project_package_name', version='0.1', description = 'project description', author = '...', packages = ['project_package_name'], )
20.416667
43
0.636735
from distutils.core import setup setup(name='project_package_name', version='0.1', description = 'project description', author = '...', packages = ['project_package_name'], )
true
true
f70bda91f9c7115e3b24b393a5a89e703a6ef8f7
2,137
py
Python
model.py
JulianNovakovic/Vislice
061a252e6aafd60157b740cfcca9b2d76ff27926
[ "MIT" ]
null
null
null
model.py
JulianNovakovic/Vislice
061a252e6aafd60157b740cfcca9b2d76ff27926
[ "MIT" ]
null
null
null
model.py
JulianNovakovic/Vislice
061a252e6aafd60157b740cfcca9b2d76ff27926
[ "MIT" ]
null
null
null
STEVILO_DOVOLJENIH_NAPAK = 10 PRAVILNA_CRKA = '+' PONOVLJENA_CRKA = 'o' NAPACNA_CRKA = '-' ZMAGA = 'W' PORAZ = 'X' class Igra: def __init__(self, geslo, crke): self.geslo = geslo self.crke = crke[:] def napacne_crke(self): return [crka for crka in self.crke if crka not in self.gesl...
24.848837
76
0.560131
STEVILO_DOVOLJENIH_NAPAK = 10 PRAVILNA_CRKA = '+' PONOVLJENA_CRKA = 'o' NAPACNA_CRKA = '-' ZMAGA = 'W' PORAZ = 'X' class Igra: def __init__(self, geslo, crke): self.geslo = geslo self.crke = crke[:] def napacne_crke(self): return [crka for crka in self.crke if crka not in self.gesl...
true
true
f70bdaa5cd1ef8f895b12e61c5190d35da36ec24
9,996
py
Python
tools/yaml-nic-config-2-script.py
smolar/tripleo-heat-templates
6b858eb39f96cc2a81a115246fd4a2ef6a0b0097
[ "Apache-2.0" ]
null
null
null
tools/yaml-nic-config-2-script.py
smolar/tripleo-heat-templates
6b858eb39f96cc2a81a115246fd4a2ef6a0b0097
[ "Apache-2.0" ]
null
null
null
tools/yaml-nic-config-2-script.py
smolar/tripleo-heat-templates
6b858eb39f96cc2a81a115246fd4a2ef6a0b0097
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software...
33.884746
87
0.560524
import argparse import collections import datetime import os import re import shutil import six import sys import traceback import yaml def parse_opts(argv): parser = argparse.ArgumentParser( description='Convert an old style NIC config file into the new format ' 'using ru...
true
true
f70bdc3a15e7b88c2514b1fcf2a401008c840d78
336
py
Python
geekshop/basketapp/urls.py
TonyBrother32/Django-shop
723a1eb9ff5b74fa968e8c09268bbcbb2fed857c
[ "MIT" ]
null
null
null
geekshop/basketapp/urls.py
TonyBrother32/Django-shop
723a1eb9ff5b74fa968e8c09268bbcbb2fed857c
[ "MIT" ]
null
null
null
geekshop/basketapp/urls.py
TonyBrother32/Django-shop
723a1eb9ff5b74fa968e8c09268bbcbb2fed857c
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'basketapp' urlpatterns = [ path('', views.view, name='view'), path('add/<int:product_id>/', views.add, name='add'), path('remove/<int:basket_item_id>)/', views.remove, name='remove'), path('edit/<int:basket_item_id>/<int:quantity>/', views.edit,...
30.545455
78
0.666667
from django.urls import path from . import views app_name = 'basketapp' urlpatterns = [ path('', views.view, name='view'), path('add/<int:product_id>/', views.add, name='add'), path('remove/<int:basket_item_id>)/', views.remove, name='remove'), path('edit/<int:basket_item_id>/<int:quantity>/', views.edit,...
true
true
f70bddf32a2b465ec48d7297b542087af6cbef33
1,441
py
Python
google/cloud/monitoring_dashboard/v1/__init__.py
vam-google/python-monitoring-dashboards
effbff2703ade03269ad8ddacf4ab31637d8a799
[ "Apache-2.0" ]
null
null
null
google/cloud/monitoring_dashboard/v1/__init__.py
vam-google/python-monitoring-dashboards
effbff2703ade03269ad8ddacf4ab31637d8a799
[ "Apache-2.0" ]
null
null
null
google/cloud/monitoring_dashboard/v1/__init__.py
vam-google/python-monitoring-dashboards
effbff2703ade03269ad8ddacf4ab31637d8a799
[ "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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
34.309524
81
0.762665
from __future__ import absolute_import import sys import warnings from google.cloud.monitoring_dashboard.v1 import types from google.cloud.monitoring_dashboard.v1.gapic import dashboards_service_client from google.cloud.monitoring_dashboard.v1.gapic import enums if sys.version_info[:2] == (2, 7): ...
true
true
f70bdf701bbdb41d790f24af7996716a5faf0ff5
7,004
py
Python
python/GafferUI/Editor.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
python/GafferUI/Editor.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
python/GafferUI/Editor.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2012-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted prov...
32.276498
121
0.719446
true
true
f70be103caf3bbb85e059906041c636a547700ab
4,304
py
Python
tests/fixtures/pooldata.py
curvefi/deposit-and-stake-zap
2183cfa03d23b9a1e572d46332d73ad30b39845d
[ "MIT" ]
null
null
null
tests/fixtures/pooldata.py
curvefi/deposit-and-stake-zap
2183cfa03d23b9a1e572d46332d73ad30b39845d
[ "MIT" ]
null
null
null
tests/fixtures/pooldata.py
curvefi/deposit-and-stake-zap
2183cfa03d23b9a1e572d46332d73ad30b39845d
[ "MIT" ]
null
null
null
import pytest import brownie from brownie import Contract, ZERO_ADDRESS # gusd gusd_token_address = "0xD2967f45c4f384DEEa880F807Be904762a3DeA07" gusd_gauge_addresses = "0xC5cfaDA84E902aD92DD40194f0883ad49639b023" # susd susd_token_address = '0xC25a3A3b969415c80451098fa907EC722572917F' susd_gauge_address = '0xA9099689...
31.881481
124
0.766496
import pytest import brownie from brownie import Contract, ZERO_ADDRESS gusd_token_address = "0xD2967f45c4f384DEEa880F807Be904762a3DeA07" gusd_gauge_addresses = "0xC5cfaDA84E902aD92DD40194f0883ad49639b023" susd_token_address = '0xC25a3A3b969415c80451098fa907EC722572917F' susd_gauge_address = '0xA90996896660DEcC6E99...
true
true
f70be16b7667d5ef4e1fe1961c226707b73ee15d
795
py
Python
todo/task/repository.py
matiasjavierlucero/todo-challenge
4c0dbc518a5e8fc9d99b6034163be14246fd6666
[ "MIT" ]
null
null
null
todo/task/repository.py
matiasjavierlucero/todo-challenge
4c0dbc518a5e8fc9d99b6034163be14246fd6666
[ "MIT" ]
null
null
null
todo/task/repository.py
matiasjavierlucero/todo-challenge
4c0dbc518a5e8fc9d99b6034163be14246fd6666
[ "MIT" ]
null
null
null
from decimal import Decimal from django.db.models import Sum from django.shortcuts import get_object_or_404 from datetime import date, timedelta from .models import Task class TaskRepository: """Repository for tasks.""" def list(self): return Task.objects.all() def create(self, title: str, descr...
25.645161
64
0.654088
from decimal import Decimal from django.db.models import Sum from django.shortcuts import get_object_or_404 from datetime import date, timedelta from .models import Task class TaskRepository: def list(self): return Task.objects.all() def create(self, title: str, description: str, status: int): ...
true
true
f70be1a781ef564608b08997e1b98fa857b29328
17,551
py
Python
sdk/python/pulumi_azure_nextgen/network/v20190401/express_route_circuit_peering.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20190401/express_route_circuit_peering.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20190401/express_route_circuit_peering.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
51.469208
2,845
0.685089
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._inputs import * __all__ = ['ExpressRouteCircuitPeering'] class ExpressRouteCircuitPeering(pulumi.CustomResource): def __init__(__self...
true
true
f70be1eb045c7bfc67774263850d50bd2296ed60
1,394
py
Python
mdn/yari/testing/integration/conftest.py
private-face/webextensions-docset
9743056dbb3d3ccd8a20a665fcb0f98d388819a6
[ "MIT" ]
1
2021-11-22T20:01:26.000Z
2021-11-22T20:01:26.000Z
mdn/yari/testing/integration/conftest.py
Kapeli/mdn-offline-build
e700fcc597be32dde7a2cdadeaa56343ccf0a678
[ "MIT" ]
1
2021-07-02T18:35:07.000Z
2021-07-02T18:35:07.000Z
mdn/yari/testing/integration/conftest.py
Kapeli/mdn-offline-build
e700fcc597be32dde7a2cdadeaa56343ccf0a678
[ "MIT" ]
2
2021-06-21T12:09:37.000Z
2021-07-02T12:15:52.000Z
from urllib.parse import urlsplit, urlunsplit import pytest import requests _KUMA_STATUS = None def pytest_configure(config): """Configure pytest for the Kuma deployment under test.""" global _KUMA_STATUS # The pytest-base-url plugin adds --base-url, and sets the default from # environment variab...
27.88
84
0.721664
from urllib.parse import urlsplit, urlunsplit import pytest import requests _KUMA_STATUS = None def pytest_configure(config): global _KUMA_STATUS if config.option.base_url is None: config.option.base_url = "https://developer.allizom.org" base_url = config.getoption("base_url") ...
true
true
f70be1fc76ddddc85e3bee71647489d92784fa4f
74
py
Python
indoorair/foundations/urls.py
juby-gif/indoorair_webapp-b
51f8799e8b124748bec7f1e52a3b73bcb4c119a8
[ "BSD-3-Clause" ]
null
null
null
indoorair/foundations/urls.py
juby-gif/indoorair_webapp-b
51f8799e8b124748bec7f1e52a3b73bcb4c119a8
[ "BSD-3-Clause" ]
null
null
null
indoorair/foundations/urls.py
juby-gif/indoorair_webapp-b
51f8799e8b124748bec7f1e52a3b73bcb4c119a8
[ "BSD-3-Clause" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ ]
9.25
28
0.675676
from django.urls import path from . import views urlpatterns = [ ]
true
true
f70be2546519bf0303806a830af9c2a53f69831e
3,946
py
Python
test/functional/feature_minchainwork.py
puzcoin/catcoin
dc3ad8d15b0c3303e8396514dffeb7685f0edf63
[ "MIT" ]
null
null
null
test/functional/feature_minchainwork.py
puzcoin/catcoin
dc3ad8d15b0c3303e8396514dffeb7685f0edf63
[ "MIT" ]
null
null
null
test/functional/feature_minchainwork.py
puzcoin/catcoin
dc3ad8d15b0c3303e8396514dffeb7685f0edf63
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Catcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test logic for setting nMinimumChainWork on command line. Nodes don't consider themselves out of "initial b...
43.844444
108
0.701977
import time from test_framework.test_framework import CatcoinTestFramework from test_framework.util import connect_nodes, assert_equal REGTEST_WORK_PER_BLOCK = 2 class MinimumChainWorkTest(CatcoinTestFramework): def set_test_params(self): self.setup_clean_chain = True self.num_nodes = 3 ...
true
true
f70be36c4203d27c522cdba5e3ca275e4037d7b3
15,955
py
Python
qzone/Qzone.py
lwpdzq/spiders
68f471f3dd92e1a59fe9ccc130fd529f1def3644
[ "MIT" ]
null
null
null
qzone/Qzone.py
lwpdzq/spiders
68f471f3dd92e1a59fe9ccc130fd529f1def3644
[ "MIT" ]
null
null
null
qzone/Qzone.py
lwpdzq/spiders
68f471f3dd92e1a59fe9ccc130fd529f1def3644
[ "MIT" ]
null
null
null
import time import re import random import requests from urllib import parse import qq_init as qq import pymongo from selenium import webdriver from selenium.webdriver.chrome.options import Options class Spider(object): def __init__(self): ''' 初始化 ''' chrome_options...
51.302251
471
0.443936
import time import re import random import requests from urllib import parse import qq_init as qq import pymongo from selenium import webdriver from selenium.webdriver.chrome.options import Options class Spider(object): def __init__(self): chrome_options = Options() ...
true
true
f70be413dfeca425596a01e87c4bbb46375b6a26
1,194
py
Python
src/napalm_digineo_procurve/device.py
digineo/napalm-digineo-procurve
477befcd09b0ce209c42f9742b2c4bb0986fceb8
[ "Apache-2.0" ]
4
2019-06-07T07:59:56.000Z
2020-12-09T19:27:56.000Z
src/napalm_digineo_procurve/device.py
digineo/napalm-digineo-procurve
477befcd09b0ce209c42f9742b2c4bb0986fceb8
[ "Apache-2.0" ]
1
2021-03-31T19:04:16.000Z
2021-03-31T19:04:16.000Z
src/napalm_digineo_procurve/device.py
digineo/napalm-digineo-procurve
477befcd09b0ce209c42f9742b2c4bb0986fceb8
[ "Apache-2.0" ]
1
2019-12-24T11:05:24.000Z
2019-12-24T11:05:24.000Z
import typing import netmiko import napalm_digineo_procurve.queries.interfaces import napalm_digineo_procurve.queries.lldp_neighbors import napalm_digineo_procurve.queries.device_info import napalm_digineo_procurve.queries.system_info import napalm_digineo_procurve.queries.uptime def get_uptime(device: netmiko.Base...
31.421053
75
0.836683
import typing import netmiko import napalm_digineo_procurve.queries.interfaces import napalm_digineo_procurve.queries.lldp_neighbors import napalm_digineo_procurve.queries.device_info import napalm_digineo_procurve.queries.system_info import napalm_digineo_procurve.queries.uptime def get_uptime(device: netmiko.Base...
true
true
f70be4df0b57c7639cd90df01dd882374cfb6959
413
py
Python
test.py
Oversize204/cvbpy_show_cases
ccd352761aa9bfab220feb888e6639f3cb9a5ad7
[ "MIT" ]
null
null
null
test.py
Oversize204/cvbpy_show_cases
ccd352761aa9bfab220feb888e6639f3cb9a5ad7
[ "MIT" ]
null
null
null
test.py
Oversize204/cvbpy_show_cases
ccd352761aa9bfab220feb888e6639f3cb9a5ad7
[ "MIT" ]
null
null
null
import os import cvb print("acquire images from CVMock.vin") device = cvb.DeviceFactory.open("/opt/cvb/drivers/CVMock.vin") stream = device.stream stream.start() for i in range(5): image, status = stream.wait() if status == cvb.WaitStatus.Ok: image_file = os.path.join(".", ".cvb", "test" + str(i) + ...
22.944444
72
0.644068
import os import cvb print("acquire images from CVMock.vin") device = cvb.DeviceFactory.open("/opt/cvb/drivers/CVMock.vin") stream = device.stream stream.start() for i in range(5): image, status = stream.wait() if status == cvb.WaitStatus.Ok: image_file = os.path.join(".", ".cvb", "test" + str(i) + ...
true
true
f70be525727b66a9997338896913e2083a32e400
222
py
Python
MinkowskiEngine/MinkowskiFunctional.py
dendisuhubdy/MinkowskiEngine
a1cdcba68ef925bfefed2fe161f62e1ec78573b9
[ "MIT" ]
1
2019-05-12T00:06:10.000Z
2019-05-12T00:06:10.000Z
MinkowskiEngine/MinkowskiFunctional.py
dendisuhubdy/MinkowskiEngine
a1cdcba68ef925bfefed2fe161f62e1ec78573b9
[ "MIT" ]
null
null
null
MinkowskiEngine/MinkowskiFunctional.py
dendisuhubdy/MinkowskiEngine
a1cdcba68ef925bfefed2fe161f62e1ec78573b9
[ "MIT" ]
null
null
null
import torch.nn.functional as F from SparseTensor import SparseTensor def relu(input): output = F.relu(input.F) return SparseTensor( output, coords_key=input.coords_key, coords_manager=input.coords_man)
22.2
77
0.752252
import torch.nn.functional as F from SparseTensor import SparseTensor def relu(input): output = F.relu(input.F) return SparseTensor( output, coords_key=input.coords_key, coords_manager=input.coords_man)
true
true
f70be67a2d18174e2398b18aa0d130f82252a8f8
994
py
Python
app/core/models.py
shreyask543/Recipe-api
34c43db4ee6cdcd90cdcf8e88a536ef66452ddb6
[ "MIT" ]
null
null
null
app/core/models.py
shreyask543/Recipe-api
34c43db4ee6cdcd90cdcf8e88a536ef66452ddb6
[ "MIT" ]
null
null
null
app/core/models.py
shreyask543/Recipe-api
34c43db4ee6cdcd90cdcf8e88a536ef66452ddb6
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): if not email: raise ValueError('User must have an email address') ...
29.235294
90
0.709256
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): if not email: raise ValueError('User must have an email address') ...
true
true
f70be84014189656325b4993a31615b0adec7c88
3,617
py
Python
rbac/common/role/reject_owner.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
rbac/common/role/reject_owner.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
1
2018-09-10T19:12:31.000Z
2018-09-10T19:12:31.000Z
rbac/common/role/reject_owner.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
34.447619
79
0.656345
import logging from rbac.common import addresser from rbac.common.proposal.proposal_reject import ProposalReject LOGGER = logging.getLogger(__name__) class RejectAddRoleOwner(ProposalReject): def __init__(self): super().__init__() self._register() @property def message_act...
true
true
f70be9c29d438c8bd7ae0af6ada925b74f12119d
781
py
Python
src/c3nav/editor/tasks.py
johnjohndoe/c3nav
a17f863a3512e305595c16b0300796b6bae81241
[ "Apache-2.0" ]
132
2016-11-12T01:45:23.000Z
2022-03-08T15:17:10.000Z
src/c3nav/editor/tasks.py
johnjohndoe/c3nav
a17f863a3512e305595c16b0300796b6bae81241
[ "Apache-2.0" ]
66
2016-09-29T09:46:19.000Z
2022-03-11T23:26:18.000Z
src/c3nav/editor/tasks.py
johnjohndoe/c3nav
a17f863a3512e305595c16b0300796b6bae81241
[ "Apache-2.0" ]
42
2016-09-29T08:34:57.000Z
2022-03-08T15:17:15.000Z
import logging from django.conf import settings from django.contrib.auth.models import User from django.core.mail import send_mail from c3nav.celery import app logger = logging.getLogger('c3nav') @app.task(bind=True, max_retries=3) def send_changeset_proposed_notification(self, pk, author, title, description): ...
31.24
79
0.644046
import logging from django.conf import settings from django.contrib.auth.models import User from django.core.mail import send_mail from c3nav.celery import app logger = logging.getLogger('c3nav') @app.task(bind=True, max_retries=3) def send_changeset_proposed_notification(self, pk, author, title, description): ...
true
true
f70bea4fa1a8a385185194767936953325c64e31
5,772
py
Python
node_modules/clarifai/scripts/app_and_key_for_tests.py
seycileli/facerecognitionapp-api
c0c4b2bdb57cd73c9b58178438f033777f72bd5b
[ "MIT" ]
346
2016-05-26T20:02:41.000Z
2022-03-24T20:43:31.000Z
node_modules/clarifai/scripts/app_and_key_for_tests.py
seycileli/facerecognitionapp-api
c0c4b2bdb57cd73c9b58178438f033777f72bd5b
[ "MIT" ]
76
2015-10-25T13:03:47.000Z
2022-02-19T09:36:10.000Z
node_modules/clarifai/scripts/app_and_key_for_tests.py
seycileli/facerecognitionapp-api
c0c4b2bdb57cd73c9b58178438f033777f72bd5b
[ "MIT" ]
136
2015-09-04T13:48:27.000Z
2021-06-12T16:48:36.000Z
import json import os import sys try: from urllib.parse import urlparse, urlencode from urllib.request import urlopen, Request, build_opener, HTTPHandler from urllib.error import HTTPError except ImportError: from urlparse import urlparse from urllib import urlencode from urllib2 import urlopen...
31.889503
112
0.595461
import json import os import sys try: from urllib.parse import urlparse, urlencode from urllib.request import urlopen, Request, build_opener, HTTPHandler from urllib.error import HTTPError except ImportError: from urlparse import urlparse from urllib import urlencode from urllib2 import urlopen...
true
true
f70beb1fa4370b3f14474cd5e4594b48d60c8bf8
7,308
py
Python
test/calibration/experiments/test_drag.py
QuantumHardware/qiskit-experiments
c09cf35bb922419354955abe8d536a97a9ea286b
[ "Apache-2.0" ]
null
null
null
test/calibration/experiments/test_drag.py
QuantumHardware/qiskit-experiments
c09cf35bb922419354955abe8d536a97a9ea286b
[ "Apache-2.0" ]
null
null
null
test/calibration/experiments/test_drag.py
QuantumHardware/qiskit-experiments
c09cf35bb922419354955abe8d536a97a9ea286b
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
37.096447
96
0.676382
from test.base import QiskitExperimentsTestCase import unittest import numpy as np from qiskit.circuit import Parameter from qiskit.exceptions import QiskitError from qiskit.pulse import DriveChannel, Drag import qiskit.pulse as pulse from qiskit.qobj.utils import MeasLevel from qiskit import transpile f...
true
true
f70beb38a18f8aaf4b1f040a4d2c358773707a65
1,278
py
Python
sa/profiles/ZTE/ZXDSL531/get_dot11_associations.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
sa/profiles/ZTE/ZXDSL531/get_dot11_associations.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
sa/profiles/ZTE/ZXDSL531/get_dot11_associations.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # ZTE.ZXDSL531.get_dot11_associations # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # --------------------------------------------...
31.95
86
0.514085
import re from noc.core.script.base import BaseScript from noc.sa.interfaces.igetdot11associations import IGetDot11Associations from noc.core.text import strip_html_tags rx_mac = re.compile( "(?P<mac>[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2})" ) class Script(BaseScript): ...
true
true
f70bebf637a63567b98981f041f242cabd79d5e8
563
py
Python
apps/bulk/migrations/0007_auto_20150302_1935.py
Sult/daf
a4da9e8c96f70577e2490c05e82bdf7d0de1a563
[ "MIT" ]
null
null
null
apps/bulk/migrations/0007_auto_20150302_1935.py
Sult/daf
a4da9e8c96f70577e2490c05e82bdf7d0de1a563
[ "MIT" ]
null
null
null
apps/bulk/migrations/0007_auto_20150302_1935.py
Sult/daf
a4da9e8c96f70577e2490c05e82bdf7d0de1a563
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('bulk', '0006_auto_20150302_1750'), ] operations = [ migrations.AlterFi...
24.478261
108
0.64476
from __future__ import unicode_literals from django.db import models, migrations import datetime from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('bulk', '0006_auto_20150302_1750'), ] operations = [ migrations.AlterField( model_...
true
true
f70bec598956cee8807a514f594b2be632fc271b
6,033
py
Python
pydotorg/settings/base.py
caputomarcos/pythondotorg
da96fee61bb5c92b7060bccb6ed467fe00136dd7
[ "Apache-2.0" ]
null
null
null
pydotorg/settings/base.py
caputomarcos/pythondotorg
da96fee61bb5c92b7060bccb6ed467fe00136dd7
[ "Apache-2.0" ]
null
null
null
pydotorg/settings/base.py
caputomarcos/pythondotorg
da96fee61bb5c92b7060bccb6ed467fe00136dd7
[ "Apache-2.0" ]
null
null
null
import os import dj_database_url ### Basic config BASE = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) DEBUG = TEMPLATE_DEBUG = True SITE_ID = 1 SECRET_KEY = 'its-a-secret-to-everybody' # Until Sentry works on Py3, do errors the old-fashioned way. ADMINS = [] # General project information # T...
24.326613
79
0.697331
import os import dj_database_url ath.join(os.path.dirname(__file__), '..', '..')) DEBUG = TEMPLATE_DEBUG = True SITE_ID = 1 SECRET_KEY = 'its-a-secret-to-everybody' ADMINS = [] SITE_VARIABLES = { 'site_name': 'Python.org', 'site_descript': 'The official home of the Python Programming Language', } fault':...
true
true
f70beccc8167dc8794e9af202f98dc483d904d5e
464
py
Python
ecom/api/migrations/0001_initial.py
Lisgevan/FULL_STACK_DEVELOMENT_DJANGO_REACT
9e87db526a4126a6e3cbac9dd2b88b8ea88a2318
[ "MIT" ]
null
null
null
ecom/api/migrations/0001_initial.py
Lisgevan/FULL_STACK_DEVELOMENT_DJANGO_REACT
9e87db526a4126a6e3cbac9dd2b88b8ea88a2318
[ "MIT" ]
null
null
null
ecom/api/migrations/0001_initial.py
Lisgevan/FULL_STACK_DEVELOMENT_DJANGO_REACT
9e87db526a4126a6e3cbac9dd2b88b8ea88a2318
[ "MIT" ]
null
null
null
from django.db import migrations from api.user.models import CustomUser class Migration(migrations.Migration): def seed_data(apps, schema_editor): user = CustomUser( name = 'admin', email = 'admin@admin.dev', is_staff = True, is_superuser = True, phone = "9876554321", gender =...
22.095238
38
0.640086
from django.db import migrations from api.user.models import CustomUser class Migration(migrations.Migration): def seed_data(apps, schema_editor): user = CustomUser( name = 'admin', email = 'admin@admin.dev', is_staff = True, is_superuser = True, phone = "9876554321", gender =...
true
true
f70bed112c601c3087cd5a890d8455f8167600dd
13,335
py
Python
tests/test_type.py
thyneb19/lux
07a282d6a5f60c05942d866fa6f33636c3428abc
[ "Apache-2.0" ]
null
null
null
tests/test_type.py
thyneb19/lux
07a282d6a5f60c05942d866fa6f33636c3428abc
[ "Apache-2.0" ]
null
null
null
tests/test_type.py
thyneb19/lux
07a282d6a5f60c05942d866fa6f33636c3428abc
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 The Lux 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 law or agreed...
34.546632
128
0.580427
from .context import lux import pytest import random import pandas as pd import warnings def test_check_cars(): lux.config.set_SQL_connection("") df = pd.read_csv("lux/data/car.csv") df.maintain_metadata() assert df.data_type["Name"] == "nominal" assert df.data_type["MilesPerGal"] =...
true
true
f70bed892a69b0a979a1236c72b4e27848a2e38e
4,455
py
Python
others/median_two_sorted.py
sumitsk/leetcode
bb3527b08ca794dea2c9d071efc24b4276bd1c05
[ "MIT" ]
null
null
null
others/median_two_sorted.py
sumitsk/leetcode
bb3527b08ca794dea2c9d071efc24b4276bd1c05
[ "MIT" ]
null
null
null
others/median_two_sorted.py
sumitsk/leetcode
bb3527b08ca794dea2c9d071efc24b4276bd1c05
[ "MIT" ]
null
null
null
# INCOMPLETE / UNSUCCESSFUL # find median of two sorted arrays import ipdb class Solution(object): def findMedianSortedArrays(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: float """ n1 = len(nums1) n2 = len(nums2) # s...
33.246269
94
0.464198
import ipdb class Solution(object): def findMedianSortedArrays(self, nums1, nums2): n1 = len(nums1) n2 = len(nums2) if n1==0: return self.median_sorted_array(nums2) if n2==0: return self.median_sorted_array(nums1) N = n1 + n2 l1, ...
true
true
f70bee32aa74ac635fab5ef016db1d5deccb1d1a
594
py
Python
webscraper/__main__.py
neerajhp/neighboorhoodgems-webscraper
714e34d808225c9d7fac2da8fbfca64ab62a2534
[ "MIT" ]
null
null
null
webscraper/__main__.py
neerajhp/neighboorhoodgems-webscraper
714e34d808225c9d7fac2da8fbfca64ab62a2534
[ "MIT" ]
null
null
null
webscraper/__main__.py
neerajhp/neighboorhoodgems-webscraper
714e34d808225c9d7fac2da8fbfca64ab62a2534
[ "MIT" ]
null
null
null
import siteScripts.timeout.scraper as timeoutScraper import logging from webscraper.models.landmark import Landmark from webscraper.services.csv import saveLandmarksCSV def main(): # File to save landmarks f = "landmarks.csv" # Scrapers timeOutLandmarks = timeoutScraper.scrape() # Save Data ...
22
61
0.700337
import siteScripts.timeout.scraper as timeoutScraper import logging from webscraper.models.landmark import Landmark from webscraper.services.csv import saveLandmarksCSV def main(): f = "landmarks.csv" timeOutLandmarks = timeoutScraper.scrape() saveLandmarksCSV(timeOutLandmarks, f) if ...
true
true
f70beebd89d334569db63ed5fc6d13fbd127389a
9,667
py
Python
src/sv-pipeline/pre_SVCalling_and_QC/raw_vcf_qc/calc_num_svs_pick_outlier.py
leipzig/gatk-sv
96566cbbaf0f8f9c8452517b38eea1e5dd6ed33a
[ "BSD-3-Clause" ]
76
2020-06-18T21:31:43.000Z
2022-03-02T18:42:58.000Z
src/sv-pipeline/pre_SVCalling_and_QC/raw_vcf_qc/calc_num_svs_pick_outlier.py
iamh2o/gatk-sv
bf3704bd1d705339577530e267cd4d1b2f77a17f
[ "BSD-3-Clause" ]
195
2020-06-22T15:12:28.000Z
2022-03-28T18:06:46.000Z
src/sv-pipeline/pre_SVCalling_and_QC/raw_vcf_qc/calc_num_svs_pick_outlier.py
iamh2o/gatk-sv
bf3704bd1d705339577530e267cd4d1b2f77a17f
[ "BSD-3-Clause" ]
39
2020-07-03T06:47:18.000Z
2022-03-03T03:47:25.000Z
#!/usr/bin/env python import sys from typing import Sequence, Set import argparse import numpy import pandas _zero_svs_are_outliers = True _outlier_std_threshold = 5.0 _column_order = ["CHROM", "SVTYPE", "Mean", "Median", "STD", "Outlier_Sample", "Outlier_Number", "Outlier_Cate"] def read_statfile...
42.774336
120
0.663701
import sys from typing import Sequence, Set import argparse import numpy import pandas _zero_svs_are_outliers = True _outlier_std_threshold = 5.0 _column_order = ["CHROM", "SVTYPE", "Mean", "Median", "STD", "Outlier_Sample", "Outlier_Number", "Outlier_Cate"] def read_statfile(statfile: str) -> pa...
true
true
f70bef908070d3279c1f2b01765777a4e765f230
1,997
py
Python
model-optimizer/mo/front/caffe/extractors/inner_product_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/caffe/extractors/inner_product_test.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/front/caffe/extractors/inner_product_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...
32.209677
75
0.608413
import unittest import numpy as np from mo.front.caffe.extractors.inner_product import inner_product_ext from mo.front.common.partial_infer.inner_product import caffe_inner_product from mo.utils.unittest.extractors import FakeMultiParam, FakeModelLayer class FakeProtoLayer: def __init__(self, val): sel...
true
true
f70befa47bcbbb2f37b411233346de8ecbc85bc3
57
py
Python
Tester/concurrentDL.py
garff/pyTorrent
fe8ff606ea0c146517e44ee6d475ebee58996d03
[ "MIT" ]
null
null
null
Tester/concurrentDL.py
garff/pyTorrent
fe8ff606ea0c146517e44ee6d475ebee58996d03
[ "MIT" ]
null
null
null
Tester/concurrentDL.py
garff/pyTorrent
fe8ff606ea0c146517e44ee6d475ebee58996d03
[ "MIT" ]
null
null
null
import urllib import concurrent.futures import threading
19
25
0.877193
import urllib import concurrent.futures import threading
true
true
f70bf15027e783d8f8206b2b5debcae15150d1b6
25,199
py
Python
pysteps/io/exporters.py
savelov/nowcast
9c1168b1ba642f15bc4ffb000bdbca6db27c29b1
[ "BSD-3-Clause" ]
6
2019-01-06T07:42:55.000Z
2021-02-03T13:59:50.000Z
pysteps/io/exporters.py
savelov/nowcast
9c1168b1ba642f15bc4ffb000bdbca6db27c29b1
[ "BSD-3-Clause" ]
5
2018-12-23T15:10:27.000Z
2021-01-06T15:03:03.000Z
pysteps/io/exporters.py
savelov/nowcast
9c1168b1ba642f15bc4ffb000bdbca6db27c29b1
[ "BSD-3-Clause" ]
2
2019-08-06T14:16:43.000Z
2019-08-13T00:36:31.000Z
""" pysteps.io.exporter =================== Methods for exporting forecasts of 2d precipitation fields into various file formats. Each exporter method in this module has its own initialization function that implements the following interface:: initialize_forecast_exporter_xxx(filename, startdate, timestep, ...
39.55887
118
0.5703
from datetime import datetime import numpy as np import os from pysteps.exceptions import MissingOptionalDependency try: import netCDF4 netcdf4_imported = True except ImportError: netcdf4_imported = False try: import pyproj pyproj_imported = True except ImportError: pyproj_imported = False ...
true
true
f70bf420f2d3ab317f714627b80d6cfd01d77b6b
3,345
py
Python
update_sheetinRange.py
akifislam/CodeforcesAutoTracker
d147f6b6639d74a029208bb6e1407aec89212f27
[ "Apache-2.0" ]
null
null
null
update_sheetinRange.py
akifislam/CodeforcesAutoTracker
d147f6b6639d74a029208bb6e1407aec89212f27
[ "Apache-2.0" ]
null
null
null
update_sheetinRange.py
akifislam/CodeforcesAutoTracker
d147f6b6639d74a029208bb6e1407aec89212f27
[ "Apache-2.0" ]
1
2022-02-15T20:21:47.000Z
2022-02-15T20:21:47.000Z
from bs4 import BeautifulSoup import requests import test import gspread from oauth2client.service_account import ServiceAccountCredentials import datetime def update_inRange(): print("Today's Date : ",datetime.date.today()) today = datetime.date.today() - datetime.timedelta(1) yesterday_month = today.st...
32.163462
111
0.681614
from bs4 import BeautifulSoup import requests import test import gspread from oauth2client.service_account import ServiceAccountCredentials import datetime def update_inRange(): print("Today's Date : ",datetime.date.today()) today = datetime.date.today() - datetime.timedelta(1) yesterday_month = today.st...
true
true
f70bf444aeed4ac27e527b05648fdf6fe9dd813e
302
py
Python
Linkedin/linkedin-become-a-programmer-foundations/1.programming-foundations-fundamentals-3/challenge_1.py
mohammedelzanaty/myRoad2BeFullStack
eea3a5edb6c6a999136b04fdaea6ce0c81137a58
[ "MIT" ]
2
2021-04-21T12:05:01.000Z
2022-01-19T09:58:38.000Z
Linkedin/linkedin-become-a-programmer-foundations/1.programming-foundations-fundamentals-3/challenge_1.py
mohammedelzanaty/myRoad2BeFullStack
eea3a5edb6c6a999136b04fdaea6ce0c81137a58
[ "MIT" ]
34
2019-12-26T11:21:42.000Z
2022-02-27T19:55:10.000Z
Linkedin/linkedin-become-a-programmer-foundations/1.programming-foundations-fundamentals-3/challenge_1.py
mohammedelzanaty/myRoad2BeFullStack
eea3a5edb6c6a999136b04fdaea6ce0c81137a58
[ "MIT" ]
2
2021-08-15T07:59:36.000Z
2022-01-16T06:17:32.000Z
print("Challenge 1:") # A message for user message = "This is goind to be tricky ;" Message = "Very tricky!" print(message) # show the message on the screen # Perform mathematical operations result = 2**3 print("2**3 =", result) result = 5 - 3 print("5 - 3 =", result) print("Challenge complete!")
18.875
47
0.678808
print("Challenge 1:") message = "This is goind to be tricky ;" Message = "Very tricky!" print(message) result = 2**3 print("2**3 =", result) result = 5 - 3 print("5 - 3 =", result) print("Challenge complete!")
true
true
f70bf45fbcab8216b7333ea95959f5208d7eb563
2,726
py
Python
blogs/models.py
6ba/bbgo
dfa9b55b8d40c53940105333c2e03a3c6abddb88
[ "MIT" ]
22
2017-07-13T04:07:03.000Z
2021-06-10T05:39:29.000Z
blogs/models.py
genonfire/bbgo
5f374f0b620f4dc3e106de5969f26f4585044605
[ "MIT" ]
7
2017-08-25T06:33:45.000Z
2019-10-14T05:49:32.000Z
blogs/models.py
6ba/bbgo
dfa9b55b8d40c53940105333c2e03a3c6abddb88
[ "MIT" ]
9
2017-12-31T02:45:58.000Z
2021-01-22T03:09:02.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.db import models from django.urls import reverse_lazy from django.utils.translation import ugettext as _ class Blog(models.Model): """Blog of blogs""" BLOG_STATUS = { ('1normal', _('status_pu...
34.075
77
0.662509
from __future__ import unicode_literals from django.conf import settings from django.db import models from django.urls import reverse_lazy from django.utils.translation import ugettext as _ class Blog(models.Model): BLOG_STATUS = { ('1normal', _('status_published')), ('2temp', _('status_draft')...
true
true
f70bf471cf08b34e3769f50e1b418e61f0ca8aa4
2,823
py
Python
python3/koans/about_string_manipulation.py
OriginalTsynn/python_koans
f35ced3ebbf2c9c19f56183b2997beeb18aae9a9
[ "MIT" ]
null
null
null
python3/koans/about_string_manipulation.py
OriginalTsynn/python_koans
f35ced3ebbf2c9c19f56183b2997beeb18aae9a9
[ "MIT" ]
null
null
null
python3/koans/about_string_manipulation.py
OriginalTsynn/python_koans
f35ced3ebbf2c9c19f56183b2997beeb18aae9a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutStringManipulation(Koan): def test_use_format_to_interpolate_variables(self): value1 = 'one' value2 = 2 string = "The values are {0} and {1}".format(value1, value2) self.assertEqual("The values are...
37.144737
81
0.636557
from runner.koan import * class AboutStringManipulation(Koan): def test_use_format_to_interpolate_variables(self): value1 = 'one' value2 = 2 string = "The values are {0} and {1}".format(value1, value2) self.assertEqual("The values are one and 2", string) def test_formatted...
true
true
f70bf669380d96903bd4e90137b76c926924b501
15,957
py
Python
build/android/pylib/chrome_test_server_spawner.py
GnorTech/chromium
e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-03-10T13:08:49.000Z
2018-03-10T13:08:49.000Z
build/android/pylib/chrome_test_server_spawner.py
GnorTech/chromium
e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
build/android/pylib/chrome_test_server_spawner.py
GnorTech/chromium
e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:19:31.000Z
2020-11-04T07:19:31.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A "Test Server Spawner" that handles killing/stopping per-test test servers. It's used to accept requests from the device to spawn and kill instances of ...
39.01467
80
0.682522
import BaseHTTPServer import json import logging import os import select import struct import subprocess import threading import time import urlparse import constants from forwarder import Forwarder import ports os.environ['PYTHONPATH'] = os.environ.get('PYTHONPATH', '') + (':%s:%s:%s:%s:%s' % (os.path.joi...
true
true
f70bf6ee38f2719e916cda8cb70d9a8dda8c9666
8,303
py
Python
whoville/cloudbreak/models/reinstall_request_v2.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/reinstall_request_v2.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/reinstall_request_v2.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Cloudbreak API Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud...
34.168724
984
0.648802
from pprint import pformat from six import iteritems import re class ReinstallRequestV2(object): swagger_types = { 'instance_groups': 'list[InstanceGroupsV2]', 'ambari_stack_details': 'AmbariStackDetails', 'blueprint_name': 'str', 'kerberos_password': 'str', 'kerberos...
true
true
f70bf6f1dc5f4faa2e79e0059d5d2beeba7eb784
41,081
py
Python
venv/Lib/site-packages/matplotlib/backends/backend_qt5.py
StewSchrieff/riddlerHoopGame
3d63f494aa803c7571ace83f87a40ce5d6b0dfc1
[ "MIT" ]
69
2020-03-31T06:40:17.000Z
2022-02-25T11:48:18.000Z
venv/Lib/site-packages/matplotlib/backends/backend_qt5.py
StewSchrieff/riddlerHoopGame
3d63f494aa803c7571ace83f87a40ce5d6b0dfc1
[ "MIT" ]
6
2018-08-28T12:33:14.000Z
2019-05-07T20:32:42.000Z
venv/Lib/site-packages/matplotlib/backends/backend_qt5.py
StewSchrieff/riddlerHoopGame
3d63f494aa803c7571ace83f87a40ce5d6b0dfc1
[ "MIT" ]
28
2020-04-15T15:24:17.000Z
2021-12-26T04:05:02.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import six import functools import os import re import signal import sys from six import unichr import traceback import matplotlib from matplotlib._pylab_helpers import Gcf from matplotlib.backend_bases impor...
36.712243
79
0.601495
from __future__ import (absolute_import, division, print_function, unicode_literals) import six import functools import os import re import signal import sys from six import unichr import traceback import matplotlib from matplotlib._pylab_helpers import Gcf from matplotlib.backend_bases impor...
true
true
f70bf89b51c9499b4cc42a25db5b53866df60828
262
py
Python
src/baseClients.py
tokarzmaciej/testing-simple-app-online-shop
446d063585f50b96a57bf6e7c23d2042df9eecc0
[ "MIT" ]
null
null
null
src/baseClients.py
tokarzmaciej/testing-simple-app-online-shop
446d063585f50b96a57bf6e7c23d2042df9eecc0
[ "MIT" ]
null
null
null
src/baseClients.py
tokarzmaciej/testing-simple-app-online-shop
446d063585f50b96a57bf6e7c23d2042df9eecc0
[ "MIT" ]
null
null
null
class ClientStorage: def getAllClients(self): pass def postClient(self, name, surname, email): pass def delClient(self, id_client): pass def patchClient(self, id_client, new_name, new_surname, new_email): pass
18.714286
71
0.637405
class ClientStorage: def getAllClients(self): pass def postClient(self, name, surname, email): pass def delClient(self, id_client): pass def patchClient(self, id_client, new_name, new_surname, new_email): pass
true
true
f70bf8bff2b888f43bbda54839a20ead612a3997
453
py
Python
PythonChallenge/Ex06/06_02.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
PythonChallenge/Ex06/06_02.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
PythonChallenge/Ex06/06_02.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding:utf-8 from zipfile import ZipFile comments = [] filename = "90052" channel = ZipFile("channel.zip", 'r') while filename.isdigit(): filename += ".txt" f = channel.open(filename, 'r') line = f.readline() f.close() t = channel.getinfo(filename).comment comments.app...
25.166667
61
0.637969
from zipfile import ZipFile comments = [] filename = "90052" channel = ZipFile("channel.zip", 'r') while filename.isdigit(): filename += ".txt" f = channel.open(filename, 'r') line = f.readline() f.close() t = channel.getinfo(filename).comment comments.append(str(t, encoding="utf-8")) ...
true
true
f70bf8e6fb1f119b8653e64d00e8152613bdc1fe
208
py
Python
pythran/tests/cases/fibo_seq.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,647
2015-01-13T01:45:38.000Z
2022-03-28T01:23:41.000Z
pythran/tests/cases/fibo_seq.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,116
2015-01-01T09:52:05.000Z
2022-03-18T21:06:40.000Z
pythran/tests/cases/fibo_seq.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
180
2015-02-12T02:47:28.000Z
2022-03-14T10:28:18.000Z
""" Nom recursive version of fibo. """ # pythran export fibo(int) # runas fibo(7) def fibo(n): """ fibonaccie compuation. """ a, b = 1, 1 for _ in range(n): a, b = a + b, a return a
17.333333
38
0.533654
def fibo(n): a, b = 1, 1 for _ in range(n): a, b = a + b, a return a
true
true
f70bf9092d547f667f305a39ab84d812eb782f20
5,060
py
Python
common/blockchain_util.py
vinthedark/snet-marketplace-service
66ed9d093b00f09d3e28ef4d86c4e4c125037d06
[ "MIT" ]
null
null
null
common/blockchain_util.py
vinthedark/snet-marketplace-service
66ed9d093b00f09d3e28ef4d86c4e4c125037d06
[ "MIT" ]
null
null
null
common/blockchain_util.py
vinthedark/snet-marketplace-service
66ed9d093b00f09d3e28ef4d86c4e4c125037d06
[ "MIT" ]
null
null
null
import json import uuid from enum import Enum import web3 from eth_account.messages import defunct_hash_message from web3 import Web3 from common.logger import get_logger logger = get_logger(__name__) class ContractType(Enum): REGISTRY = "REGISTRY" MPE = "MPE" RFAI = "RFAI" class BlockChainUtil(objec...
42.166667
119
0.701186
import json import uuid from enum import Enum import web3 from eth_account.messages import defunct_hash_message from web3 import Web3 from common.logger import get_logger logger = get_logger(__name__) class ContractType(Enum): REGISTRY = "REGISTRY" MPE = "MPE" RFAI = "RFAI" class BlockChainUtil(objec...
true
true
f70bfa4b74f327eaff6e74deeff7234d2edf2d5a
4,717
py
Python
quantum/common/config.py
cuiwow/quantum
ce11b62046a0501e9fcd8442524d3c151d315dfb
[ "Apache-2.0" ]
1
2019-04-11T10:27:47.000Z
2019-04-11T10:27:47.000Z
quantum/common/config.py
cuiwow/quantum
ce11b62046a0501e9fcd8442524d3c151d315dfb
[ "Apache-2.0" ]
null
null
null
quantum/common/config.py
cuiwow/quantum
ce11b62046a0501e9fcd8442524d3c151d315dfb
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Nicira Networks, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apac...
36.007634
78
0.665889
import os from paste import deploy from quantum.api.v2 import attributes from quantum.common import utils from quantum.openstack.common import cfg from quantum.openstack.common import log as logging from quantum.openstack.common import rpc from quantum.version import version_info as quantum_version ...
true
true
f70bfbfd82da3d2f03a5deda6f9ab6cf8be40de4
529
py
Python
Code_Socke/test.py
Jugendhackt/Maladidea
dfee3f2ee6006c0d2bcb4117d62afb1404f4bdee
[ "MIT" ]
null
null
null
Code_Socke/test.py
Jugendhackt/Maladidea
dfee3f2ee6006c0d2bcb4117d62afb1404f4bdee
[ "MIT" ]
null
null
null
Code_Socke/test.py
Jugendhackt/Maladidea
dfee3f2ee6006c0d2bcb4117d62afb1404f4bdee
[ "MIT" ]
null
null
null
import RPi.GPIO as G import time as t G.setmode(G.BCM) G.setup(19, G.OUT) G.setup(26, G.IN)# pull_up_down=G.PUD_UP) G.setup(21, G.OUT) G.setup(20, G.IN, pull_up_down=G.PUD_UP) print("setup done") G.output(21, True) print("output on") while True: input_sensor = G.input(26) if input_sensor == False: pri...
20.346154
41
0.621928
import RPi.GPIO as G import time as t G.setmode(G.BCM) G.setup(19, G.OUT) G.setup(26, G.IN) G.setup(21, G.OUT) G.setup(20, G.IN, pull_up_down=G.PUD_UP) print("setup done") G.output(21, True) print("output on") while True: input_sensor = G.input(26) if input_sensor == False: print("sensor triggered") ...
true
true
f70bfcff5507413149e7bbff65a7ae2fd88753fc
12,293
py
Python
postfinancecheckout/api/bank_account_service_api.py
pfpayments/python-sdk
b8ef159ea3c843a8d0361d1e0b122a9958adbcb4
[ "Apache-2.0" ]
1
2022-03-08T12:51:53.000Z
2022-03-08T12:51:53.000Z
postfinancecheckout/api/bank_account_service_api.py
pfpayments/python-sdk
b8ef159ea3c843a8d0361d1e0b122a9958adbcb4
[ "Apache-2.0" ]
null
null
null
postfinancecheckout/api/bank_account_service_api.py
pfpayments/python-sdk
b8ef159ea3c843a8d0361d1e0b122a9958adbcb4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import import six from postfinancecheckout.api_client import ApiClient class BankAccountServiceApi: def __init__(self, configuration): self.api_client = ApiClient(configuration=configuration) def count(self, space_id, **kwargs): """Count ...
36.58631
119
0.602619
from __future__ import absolute_import import six from postfinancecheckout.api_client import ApiClient class BankAccountServiceApi: def __init__(self, configuration): self.api_client = ApiClient(configuration=configuration) def count(self, space_id, **kwargs): kwargs['_return_http_data_on...
true
true
f70bfd48b4dffc44103f3819522ad40aac7dc5c2
759
py
Python
assignments/a2/containerWithMostWater.py
jcdiv47/geekbang-algorithms
38dae85aeadb684b2c44945bd07a32cdede4ad5a
[ "MIT" ]
null
null
null
assignments/a2/containerWithMostWater.py
jcdiv47/geekbang-algorithms
38dae85aeadb684b2c44945bd07a32cdede4ad5a
[ "MIT" ]
null
null
null
assignments/a2/containerWithMostWater.py
jcdiv47/geekbang-algorithms
38dae85aeadb684b2c44945bd07a32cdede4ad5a
[ "MIT" ]
null
null
null
import unittest """ Leetcode(https://leetcode.com/problems/container-with-most-water/solution/) """ def maxArea(height): ans = 0 left, right = 0, len(height) - 1 while left < right: ans = max(ans, min(height[left], height[right]) * (right - left)) if height[left] < height[right]: ...
21.083333
75
0.56917
import unittest def maxArea(height): ans = 0 left, right = 0, len(height) - 1 while left < right: ans = max(ans, min(height[left], height[right]) * (right - left)) if height[left] < height[right]: left += 1 else: right -= 1 return ans class MyTestCase...
true
true
f70bfec06d09bcd09179f6c36f86fd581e0bfd1d
1,357
py
Python
test/test_flake8.py
Theosakamg/colcon-powershell
86657800695097ec4d5f1cd0035d15fd5cde2eb0
[ "Apache-2.0" ]
null
null
null
test/test_flake8.py
Theosakamg/colcon-powershell
86657800695097ec4d5f1cd0035d15fd5cde2eb0
[ "Apache-2.0" ]
null
null
null
test/test_flake8.py
Theosakamg/colcon-powershell
86657800695097ec4d5f1cd0035d15fd5cde2eb0
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2018 Dirk Thomas # Licensed under the Apache License, Version 2.0 import logging from pathlib import Path import sys from flake8 import LOG from flake8.api.legacy import get_style_guide # avoid debug and info messages from flake8 internals LOG.setLevel(logging.WARN) def test_flake8(): style_g...
28.270833
72
0.66986
import logging from pathlib import Path import sys from flake8 import LOG from flake8.api.legacy import get_style_guide LOG.setLevel(logging.WARN) def test_flake8(): style_guide = get_style_guide( ignore=['D100', 'D104'], show_source=True, ) style_guide_tests = get_style_guide( ...
true
true
f70bffe4d8ea3902244e43a68f75def149a1c37f
1,705
py
Python
lib/sim/tests/test_onebit_counter.py
pp-mo/bbc
33c20ab511a88a9e7236e82477fae3256d41e38a
[ "BSD-3-Clause" ]
2
2020-10-01T09:05:01.000Z
2021-05-30T17:34:46.000Z
lib/sim/tests/test_onebit_counter.py
pp-mo/bbc
33c20ab511a88a9e7236e82477fae3256d41e38a
[ "BSD-3-Clause" ]
null
null
null
lib/sim/tests/test_onebit_counter.py
pp-mo/bbc
33c20ab511a88a9e7236e82477fae3256d41e38a
[ "BSD-3-Clause" ]
null
null
null
from sim.signal import Signal, SIG_UNDEF from sim.sequencer import DEFAULT_SEQUENCER as SEQ from sim.tests import okeq, okin, setsig, fails from sim.device.arith import CounterOnebit counter = CounterOnebit( 'c1b', t_toggle_0_to_1=3., t_toggle_1_to_0=3., t_out_2_carry=1., t_clear_2_carry=2.,...
20.792683
62
0.695015
from sim.signal import Signal, SIG_UNDEF from sim.sequencer import DEFAULT_SEQUENCER as SEQ from sim.tests import okeq, okin, setsig, fails from sim.device.arith import CounterOnebit counter = CounterOnebit( 'c1b', t_toggle_0_to_1=3., t_toggle_1_to_0=3., t_out_2_carry=1., t_clear_2_carry=2.,...
true
true
f70c01b6d44231ba57c5bf3a9a4f685924e7a5d2
5,927
py
Python
server.py
project-anuvaad/OpenNMT-py
267d097b9e90d59709fe1c26ea8b8e2c43c755c9
[ "MIT" ]
null
null
null
server.py
project-anuvaad/OpenNMT-py
267d097b9e90d59709fe1c26ea8b8e2c43c755c9
[ "MIT" ]
29
2019-07-18T10:21:57.000Z
2019-10-24T11:41:59.000Z
server.py
project-anuvaad/OpenNMT-py
267d097b9e90d59709fe1c26ea8b8e2c43c755c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import unicode_literals import configargparse import sys from config.config import statusCode,benchmark_types, language_supported, file_location import config.bleu_results as bleu_results import tools.sp_enc_dec as sp import ancillary_functions_anuvaad.ancillary_functions as ancill...
35.704819
130
0.672516
from __future__ import unicode_literals import configargparse import sys from config.config import statusCode,benchmark_types, language_supported, file_location import config.bleu_results as bleu_results import tools.sp_enc_dec as sp import ancillary_functions_anuvaad.ancillary_functions as ancillary_functions import ...
true
true
f70c02307b230273bb150b0e7528be384ec81c1c
284
py
Python
CellState.py
WilliamPJSmith/CM4-A
bf2a0f2a49ea7e77454bacba25e6cbb2f282572f
[ "Unlicense" ]
null
null
null
CellState.py
WilliamPJSmith/CM4-A
bf2a0f2a49ea7e77454bacba25e6cbb2f282572f
[ "Unlicense" ]
null
null
null
CellState.py
WilliamPJSmith/CM4-A
bf2a0f2a49ea7e77454bacba25e6cbb2f282572f
[ "Unlicense" ]
null
null
null
class CellState: # Don't show these attributes in gui (not used any more?) excludeAttr = ['divideFlag'] excludeAttr = ['deathFlag'] def __init__(self, cid): self.id = cid self.growthRate = 1.0 self.color = [0.5,0.5,0.5] self.divideFlag = False self.deathFlag = False
20.285714
58
0.676056
class CellState: excludeAttr = ['divideFlag'] excludeAttr = ['deathFlag'] def __init__(self, cid): self.id = cid self.growthRate = 1.0 self.color = [0.5,0.5,0.5] self.divideFlag = False self.deathFlag = False
true
true
f70c02e67d29d64736ba5ecb710a7508719ba359
1,184
py
Python
pyside/lesson_08_main.py
LueyEscargot/pyGuiTest
c072fe29a7c94dc60ec54344a5d4a91253d25f3f
[ "MIT" ]
null
null
null
pyside/lesson_08_main.py
LueyEscargot/pyGuiTest
c072fe29a7c94dc60ec54344a5d4a91253d25f3f
[ "MIT" ]
null
null
null
pyside/lesson_08_main.py
LueyEscargot/pyGuiTest
c072fe29a7c94dc60ec54344a5d4a91253d25f3f
[ "MIT" ]
null
null
null
import sys import argparse import pandas as pd from PySide2.QtCore import QDateTime, QTimeZone from PySide2.QtWidgets import QApplication from lesson_08_main_window import MainWindow from lesson_08_mainWidget import Widget def transform_date(utc, timezone=None): utc_fmt = "yyyy-MM-ddTHH:mm:ss.zzzZ" new_date...
23.68
67
0.69848
import sys import argparse import pandas as pd from PySide2.QtCore import QDateTime, QTimeZone from PySide2.QtWidgets import QApplication from lesson_08_main_window import MainWindow from lesson_08_mainWidget import Widget def transform_date(utc, timezone=None): utc_fmt = "yyyy-MM-ddTHH:mm:ss.zzzZ" new_date...
true
true
f70c042f92fd9bc243b435404e81962654d0d10f
5,051
py
Python
mars/tensor/fft/ifftn.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
2,413
2018-12-06T09:37:11.000Z
2022-03-30T15:47:39.000Z
mars/tensor/fft/ifftn.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
1,335
2018-12-07T03:06:18.000Z
2022-03-31T11:45:57.000Z
mars/tensor/fft/ifftn.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
329
2018-12-07T03:12:41.000Z
2022-03-29T21:49:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2021 Alibaba Group Holding Ltd. # # 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-...
39.460938
80
0.659077
import numpy as np from ... import opcodes as OperandDef from ..datasource import tensor as astensor from .core import TensorComplexFFTNMixin, validate_fftn, TensorStandardFFTN class TensorIFFTN(TensorStandardFFTN, TensorComplexFFTNMixin): _op_type_ = OperandDef.IFFTN def __init__(self, shap...
true
true
f70c0476b617936a3fedaa107dd5a21cbd494991
4,387
py
Python
research/cv/Neighbor2Neighbor/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/Neighbor2Neighbor/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/Neighbor2Neighbor/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
40.62037
99
0.605197
import os import glob import numpy as np import PIL.Image as Image import mindspore.dataset as ds import mindspore.dataset.vision.c_transforms as CV class DataLoader_Imagenet_val: def __init__(self, data_dir, patch=256, noise_style="gauss25", batch_size=4): super(DataLoader_Imagenet_val, self...
true
true
f70c04e3484409a9478edc1a27fe0c1fc78a80c3
402
py
Python
app/route/route_sales.py
LifeLaboratory/skb_sudo_su
92f29cc8e7fbd30624ee0d8634d61b8ecbcace35
[ "MIT" ]
null
null
null
app/route/route_sales.py
LifeLaboratory/skb_sudo_su
92f29cc8e7fbd30624ee0d8634d61b8ecbcace35
[ "MIT" ]
null
null
null
app/route/route_sales.py
LifeLaboratory/skb_sudo_su
92f29cc8e7fbd30624ee0d8634d61b8ecbcace35
[ "MIT" ]
null
null
null
# coding=utf-8 from app.api.base import base_name as names from app.api.src.sales import * from app.api.base.base_router import BaseRouter class Sales(BaseRouter): def __init__(self): super().__init__() self.args = [names.LOGIN, names.PASSWORD] def get(self, id_user): args = { ...
21.157895
49
0.636816
from app.api.base import base_name as names from app.api.src.sales import * from app.api.base.base_router import BaseRouter class Sales(BaseRouter): def __init__(self): super().__init__() self.args = [names.LOGIN, names.PASSWORD] def get(self, id_user): args = { names.ID...
true
true
f70c0525ea06688b28847ae0a8658955c449019c
15,211
py
Python
salt/states/cloud.py
ContinuumIO/salt
91c0955cfc24b13f07f4917d3d44a9fd9636347a
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
salt/states/cloud.py
ContinuumIO/salt
91c0955cfc24b13f07f4917d3d44a9fd9636347a
[ "Apache-2.0" ]
null
null
null
salt/states/cloud.py
ContinuumIO/salt
91c0955cfc24b13f07f4917d3d44a9fd9636347a
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- ''' Using states instead of maps to deploy clouds ============================================= .. versionadded:: 2014.1.0 (Hydrogen) Use this minion to spin up a cloud instance: .. code-block:: yaml my-ec2-instance: cloud.profile: my-ec2-config ''' import pprint from salt...
32.023158
79
0.571297
import pprint from salt._compat import string_types import salt.utils.cloud as suc def __virtual__(): return 'cloud.profile' in __salt__ def _check_name(name): ret = {'name': name, 'changes': {}, 'result': None, 'comment': ''} if suc.check_name(name, 'a-zA-Z0-9._-'): ...
true
true
f70c054e7f9c75daf40ce7a574ccf0b3546d13eb
3,655
py
Python
iotronic_lightningrod/modules/utils.py
Zakaria-Ben/iotronic-lightning-rod
4a3eff68bd1db2d57beee0e8c51fbb14fcc0877a
[ "Apache-2.0" ]
null
null
null
iotronic_lightningrod/modules/utils.py
Zakaria-Ben/iotronic-lightning-rod
4a3eff68bd1db2d57beee0e8c51fbb14fcc0877a
[ "Apache-2.0" ]
null
null
null
iotronic_lightningrod/modules/utils.py
Zakaria-Ben/iotronic-lightning-rod
4a3eff68bd1db2d57beee0e8c51fbb14fcc0877a
[ "Apache-2.0" ]
1
2018-05-18T13:01:03.000Z
2018-05-18T13:01:03.000Z
# Copyright 2017 MDSLAB - University of Messina # 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 # # U...
28.554688
78
0.661012
__author__ = "Nicola Peditto <npeditto@unime.it" import asyncio import inspect import pkg_resources from six import moves from stevedore import extension import sys from iotronic_lightningrod.config import entry_points_name from iotronic_lightningrod.lightningrod import SESSION from iotronic_lightningr...
true
true
f70c0553ea487881fbca1e06b6c31bb278cd4251
4,069
py
Python
Project/EnhancedDeepPath/scripts/sl_policy.py
iust-projects/Data-Mining-IUST
88f7a5541278f1fe907ca9b70c990a27f60900b2
[ "Apache-2.0" ]
null
null
null
Project/EnhancedDeepPath/scripts/sl_policy.py
iust-projects/Data-Mining-IUST
88f7a5541278f1fe907ca9b70c990a27f60900b2
[ "Apache-2.0" ]
2
2020-07-10T17:58:07.000Z
2020-12-22T09:02:39.000Z
Project/EnhancedDeepPath/scripts/sl_policy.py
iust-projects/Data-Mining-IUST
88f7a5541278f1fe907ca9b70c990a27f60900b2
[ "Apache-2.0" ]
null
null
null
from __future__ import division from __future__ import print_function import tensorflow as tf import numpy as np from itertools import count import sys from networks import policy_nn from utils import * from env import Env from BFS.KB import KB from BFS.BFS import BFS import time relation = sys.argv[1] # episodes = ...
30.593985
152
0.717375
from __future__ import division from __future__ import print_function import tensorflow as tf import numpy as np from itertools import count import sys from networks import policy_nn from utils import * from env import Env from BFS.KB import KB from BFS.BFS import BFS import time relation = sys.argv[1] graphpath = ...
true
true
f70c06fd558229c1a63658ce7eb7a0987e13c526
415
py
Python
students/K33422/Iskhakova_Emina/labs/lab3/admin.py
emina13/ITMO_ICT_WebDevelopment_2021-2022
498a6138e352e7e0ca40d1eb301bc29416158f51
[ "MIT" ]
null
null
null
students/K33422/Iskhakova_Emina/labs/lab3/admin.py
emina13/ITMO_ICT_WebDevelopment_2021-2022
498a6138e352e7e0ca40d1eb301bc29416158f51
[ "MIT" ]
null
null
null
students/K33422/Iskhakova_Emina/labs/lab3/admin.py
emina13/ITMO_ICT_WebDevelopment_2021-2022
498a6138e352e7e0ca40d1eb301bc29416158f51
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * admin.site.register(Client) admin.site.register(ServicesPL) admin.site.register(MaterialsPL) admin.site.register(Request) admin.site.register(ChosenServices) admin.site.register(ChosenMaterials) admin.site.register(WorkGroup) admin.site.register(Executor...
27.666667
37
0.804819
from django.contrib import admin from .models import * admin.site.register(Client) admin.site.register(ServicesPL) admin.site.register(MaterialsPL) admin.site.register(Request) admin.site.register(ChosenServices) admin.site.register(ChosenMaterials) admin.site.register(WorkGroup) admin.site.register(Executor...
true
true
f70c0739ded8c4ed003bf1865ab7f1e637ca68d0
1,378
py
Python
pytorch-frontend/caffe2/python/operator_test/glu_op_test.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
40
2021-06-01T07:37:59.000Z
2022-03-25T01:42:09.000Z
pytorch-frontend/caffe2/python/operator_test/glu_op_test.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
14
2021-06-01T11:52:46.000Z
2022-03-25T02:13:08.000Z
pytorch-frontend/caffe2/python/operator_test/glu_op_test.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
7
2021-07-20T19:34:26.000Z
2022-03-13T21:07:36.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core import caffe2.python.hypothesis_test_util as hu import caffe2.python.serialized_test.serialized_test_util as serial from hypothesis import ...
29.956522
88
0.681422
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core import caffe2.python.hypothesis_test_util as hu import caffe2.python.serialized_test.serialized_test_util as serial from hypothesis import ...
true
true
f70c079999af8cc5d3c6169652b547016bc9d133
20,765
py
Python
diofant/tests/matrices/test_sparse.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
null
null
null
diofant/tests/matrices/test_sparse.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
null
null
null
diofant/tests/matrices/test_sparse.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
null
null
null
import pytest from diofant import (I, Matrix, MutableDenseMatrix, MutableSparseMatrix, PurePoly, Rational, ShapeError, SparseMatrix, eye, ones, zeros) from diofant.abc import x, y, z __all__ = () def test_sparse_matrix(): def sparse_eye(n): return SparseMatrix....
32.547022
138
0.420997
import pytest from diofant import (I, Matrix, MutableDenseMatrix, MutableSparseMatrix, PurePoly, Rational, ShapeError, SparseMatrix, eye, ones, zeros) from diofant.abc import x, y, z __all__ = () def test_sparse_matrix(): def sparse_eye(n): return SparseMatrix....
true
true
f70c087df6136cae52ef50e6b06ba60de3007853
1,505
py
Python
tests/test_resourcerelease.py
asears/moviepy
6ab3efba36cf7fc5d3245f0ee0dc9244cb141c9e
[ "MIT" ]
1
2020-12-20T20:38:52.000Z
2020-12-20T20:38:52.000Z
tests/test_resourcerelease.py
asears/moviepy
6ab3efba36cf7fc5d3245f0ee0dc9244cb141c9e
[ "MIT" ]
1
2022-03-12T01:04:31.000Z
2022-03-12T01:04:31.000Z
tests/test_resourcerelease.py
asears/moviepy
6ab3efba36cf7fc5d3245f0ee0dc9244cb141c9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Tool tests meant to be run with pytest. Testing whether issue #596 has been repaired. Note: Platform dependent test. Will only fail on Windows > NT. """ import time from os import remove from os.path import join from moviepy.video.compositing.CompositeVideoClip impo...
28.396226
79
0.662458
import time from os import remove from os.path import join from moviepy.video.compositing.CompositeVideoClip import clips_array from moviepy.video.io.VideoFileClip import VideoFileClip from moviepy.video.VideoClip import ColorClip from tests.test_helper import TMP_DIR def test_release_of_file_via_close(): ...
true
true
f70c0a607295a9f836d9c828a3c177e182d6a1d4
416
py
Python
report_builder/migrations/0007_auto_20190214_1405.py
nazmizorlu/django-report-builder
0b37cd0c94af15531e487554c774a01dad3b5500
[ "BSD-3-Clause" ]
560
2015-01-05T07:14:50.000Z
2022-03-11T13:27:42.000Z
report_builder/migrations/0007_auto_20190214_1405.py
nazmizorlu/django-report-builder
0b37cd0c94af15531e487554c774a01dad3b5500
[ "BSD-3-Clause" ]
189
2015-01-15T16:55:55.000Z
2020-10-29T07:36:51.000Z
report_builder/migrations/0007_auto_20190214_1405.py
nazmizorlu/django-report-builder
0b37cd0c94af15531e487554c774a01dad3b5500
[ "BSD-3-Clause" ]
235
2015-01-10T16:56:17.000Z
2022-03-29T15:57:03.000Z
# Generated by Django 2.1 on 2019-02-14 14:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('report_builder', '0006_auto_20180413_0747'), ] operations = [ migrations.AlterField( model_name='filterfield', name='f...
21.894737
64
0.622596
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('report_builder', '0006_auto_20180413_0747'), ] operations = [ migrations.AlterField( model_name='filterfield', name='filter_value', field=models.CharFi...
true
true
f70c0b2de377270eaba5653ab6d25d86078e095d
1,810
py
Python
Bot tiles.py
Santiagorich/Piano-tiles-bot
bc71c331c4350bfc1949840674ba48a957617686
[ "MIT" ]
null
null
null
Bot tiles.py
Santiagorich/Piano-tiles-bot
bc71c331c4350bfc1949840674ba48a957617686
[ "MIT" ]
null
null
null
Bot tiles.py
Santiagorich/Piano-tiles-bot
bc71c331c4350bfc1949840674ba48a957617686
[ "MIT" ]
null
null
null
from pyautogui import * import pyautogui import time import keyboard import random import win32api, win32con px = 0 py = 0 class Tile(): def __init__(self,px,py): self.x = px self.y = py def click(x,y): win32api.SetCursorPos((x,y)) win32api.mouse_event(win32con.MOUSE...
27.424242
74
0.545856
from pyautogui import * import pyautogui import time import keyboard import random import win32api, win32con px = 0 py = 0 class Tile(): def __init__(self,px,py): self.x = px self.y = py def click(x,y): win32api.SetCursorPos((x,y)) win32api.mouse_event(win32con.MOUSE...
true
true
f70c0cda81ea85e278d39235993b2c823742b388
937
py
Python
isi_sdk_9_0_0/test/test_cluster_node_hardware.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_9_0_0/test/test_cluster_node_hardware.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_9_0_0/test/test_cluster_node_hardware.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 10 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_9_0_0 from ...
22.853659
96
0.716115
from __future__ import absolute_import import unittest import isi_sdk_9_0_0 from isi_sdk_9_0_0.models.cluster_node_hardware import ClusterNodeHardware from isi_sdk_9_0_0.rest import ApiException class TestClusterNodeHardware(unittest.TestCase): def setUp(self): pass def tearDown(self): ...
true
true
f70c0dcdfb66f70f05cade13558581da90e8fcba
2,032
py
Python
test/functional/rpc_help.py
VeriBlock/b
1c2dccb1f87251b72049b75cc4db630c4da1b5c9
[ "MIT" ]
4
2020-05-14T11:49:20.000Z
2022-01-19T19:54:54.000Z
test/functional/rpc_help.py
VeriBlock/b
1c2dccb1f87251b72049b75cc4db630c4da1b5c9
[ "MIT" ]
125
2020-01-16T11:02:04.000Z
2022-03-24T12:27:13.000Z
test/functional/rpc_help.py
VeriBlock/b
1c2dccb1f87251b72049b75cc4db630c4da1b5c9
[ "MIT" ]
9
2020-04-06T14:31:16.000Z
2021-09-30T07:50:29.000Z
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Copyright (c) 2019-2021 Xenios SEZC # https://www.veriblock.org # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test RPC help output.""" from test_framew...
33.311475
123
0.652067
from test_framework.test_framework import BitcoinTestFramework from test_framework.util import assert_equal, assert_raises_rpc_error import os class HelpRpcTest(BitcoinTestFramework): def set_test_params(self): self.num_nodes = 1 self.supports_cli = False def run_test(self): s...
true
true
f70c0e3404bc51df606439e4d7d3727526d29eb8
8,667
py
Python
astropy/table/serialize.py
jbkalmbach/astropy
88ae8c615533efd1e60de4aded204943f66f881c
[ "BSD-3-Clause" ]
1
2022-03-02T17:07:20.000Z
2022-03-02T17:07:20.000Z
astropy/table/serialize.py
jbkalmbach/astropy
88ae8c615533efd1e60de4aded204943f66f881c
[ "BSD-3-Clause" ]
1
2017-09-22T21:10:10.000Z
2017-09-22T21:10:10.000Z
astropy/table/serialize.py
jbkalmbach/astropy
88ae8c615533efd1e60de4aded204943f66f881c
[ "BSD-3-Clause" ]
1
2019-10-09T21:30:57.000Z
2019-10-09T21:30:57.000Z
from importlib import import_module import re from copy import deepcopy from ..utils.data_info import MixinInfo from .column import Column from .table import Table, QTable, has_info_class from ..units.quantity import QuantityInfo __construct_mixin_classes = ('astropy.time.core.Time', 'as...
39.756881
84
0.62063
from importlib import import_module import re from copy import deepcopy from ..utils.data_info import MixinInfo from .column import Column from .table import Table, QTable, has_info_class from ..units.quantity import QuantityInfo __construct_mixin_classes = ('astropy.time.core.Time', 'as...
true
true
f70c0f56841d3e49809f2c21b43b9bac19f6cda2
389
py
Python
social_network/urls.py
zareisajad/social-network-django
991c8075a9fb51b7fbdb17704325ebc4c9d2e0fa
[ "MIT" ]
null
null
null
social_network/urls.py
zareisajad/social-network-django
991c8075a9fb51b7fbdb17704325ebc4c9d2e0fa
[ "MIT" ]
null
null
null
social_network/urls.py
zareisajad/social-network-django
991c8075a9fb51b7fbdb17704325ebc4c9d2e0fa
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls), path('', include('posts.urls')), path('accounts/', include('accounts.urls')), ] if settings.DEBUG: urlpatt...
29.923077
80
0.737789
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls), path('', include('posts.urls')), path('accounts/', include('accounts.urls')), ] if settings.DEBUG: urlpatt...
true
true
f70c0f57d7596b54aedf93375dc3a812baaafc4a
1,126
py
Python
semseg_vaihingen/tests/test_unit_model.py
SilkeDH/semseg_vaihingen
0a8bed71836fa892b8a13b7d2c5109dbcae3c549
[ "MIT" ]
3
2020-02-03T16:55:50.000Z
2020-12-12T15:29:49.000Z
semseg_vaihingen/tests/test_unit_model.py
SilkeDH/semseg_vaihingen
0a8bed71836fa892b8a13b7d2c5109dbcae3c549
[ "MIT" ]
8
2020-03-24T17:39:59.000Z
2022-02-10T00:20:46.000Z
semseg_vaihingen/tests/test_unit_model.py
SilkeDH/semseg_vaihingen
0a8bed71836fa892b8a13b7d2c5109dbcae3c549
[ "MIT" ]
1
2020-02-27T09:48:53.000Z
2020-02-27T09:48:53.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2017 - 2019 Karlsruhe Institute of Technology - Steinbuch Centre for Computing # This code is distributed under the MIT License # Please, see the LICENSE file # """ Created on Sat Aug 10 08:47:51 2019 @author: vykozlov """ import unittest import semseg_vaihingen.models.deepaas...
29.631579
112
0.637655
import unittest import semseg_vaihingen.models.deepaas_api as deepaas_api class TestModelMethods(unittest.TestCase): def setUp(self): self.meta = deepaas_api.get_metadata() def test_model_metadata_type(self): self.assertTrue(type(self.meta) is dict) def test_mo...
true
true
f70c10807ab4db35e019d3e3323ba978f7699588
47,600
py
Python
cvxpy/problems/problem.py
adshieh/cvxpy
73b696b71dbb2ceb66a805798c922461e33afc6b
[ "ECL-2.0", "Apache-2.0" ]
2
2021-12-21T03:11:12.000Z
2022-03-02T16:56:24.000Z
cvxpy/problems/problem.py
adshieh/cvxpy
73b696b71dbb2ceb66a805798c922461e33afc6b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cvxpy/problems/problem.py
adshieh/cvxpy
73b696b71dbb2ceb66a805798c922461e33afc6b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Copyright 2013 Steven Diamond, 2017 Akshay Agrawal 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...
39.209226
100
0.597017
from cvxpy import settings as s from cvxpy import error from cvxpy.problems.objective import Minimize, Maximize from cvxpy.reductions.chain import Chain from cvxpy.reductions.dgp2dcp.dgp2dcp import Dgp2Dcp from cvxpy.reductions.dqcp2dcp import dqcp2dcp from cvxpy.reductions.eval_params import EvalParams from cvxpy.red...
true
true
f70c10ef1da6e4113a7dda715729c1f83bb1a8dc
2,545
py
Python
models/pointnet2_part_seg_msg.py
Danielznn16/RoboticHand-in-KG
27e4eee97ea4ecab40fbd13b24a97e1f94c10258
[ "MIT" ]
null
null
null
models/pointnet2_part_seg_msg.py
Danielznn16/RoboticHand-in-KG
27e4eee97ea4ecab40fbd13b24a97e1f94c10258
[ "MIT" ]
null
null
null
models/pointnet2_part_seg_msg.py
Danielznn16/RoboticHand-in-KG
27e4eee97ea4ecab40fbd13b24a97e1f94c10258
[ "MIT" ]
null
null
null
import torch.nn as nn import torch import torch.nn.functional as F from models.pointnet_util import PointNetSetAbstractionMsg,PointNetSetAbstraction,PointNetFeaturePropagation class get_model(nn.Module): def __init__(self, num_classes, normal_channel=False): super(get_model, self).__init__() if no...
42.416667
149
0.6389
import torch.nn as nn import torch import torch.nn.functional as F from models.pointnet_util import PointNetSetAbstractionMsg,PointNetSetAbstraction,PointNetFeaturePropagation class get_model(nn.Module): def __init__(self, num_classes, normal_channel=False): super(get_model, self).__init__() if no...
true
true
f70c11f8a5b4f0874903f8ba8e3d38d1b62f1537
12,511
py
Python
shared/common.py
jonnyCodev/cloudmapper
10fd533e318f0a18f58929f1759e32005347254e
[ "BSD-3-Clause" ]
null
null
null
shared/common.py
jonnyCodev/cloudmapper
10fd533e318f0a18f58929f1759e32005347254e
[ "BSD-3-Clause" ]
null
null
null
shared/common.py
jonnyCodev/cloudmapper
10fd533e318f0a18f58929f1759e32005347254e
[ "BSD-3-Clause" ]
1
2021-12-23T12:42:14.000Z
2021-12-23T12:42:14.000Z
from __future__ import print_function import argparse import json import datetime import pyjq import yaml import sys from netaddr import IPNetwork from shared.nodes import Account, Region from shared.query import query_aws, get_parameter_file class Severity: # For logging DEBUG = 0 INFO = 1 WARN = 2 ...
31.044665
157
0.587963
from __future__ import print_function import argparse import json import datetime import pyjq import yaml import sys from netaddr import IPNetwork from shared.nodes import Account, Region from shared.query import query_aws, get_parameter_file class Severity: DEBUG = 0 INFO = 1 WARN = 2 ERROR = 3...
true
true
f70c127f5f194424081088d7da6167ddefd1d0fc
3,957
py
Python
monitorrent/plugins/clients/transmission.py
mortifactor/monitorrent
2388ec5b82af5d078fa7e37930d3b66b4a797954
[ "WTFPL" ]
465
2015-08-31T09:16:41.000Z
2022-03-12T10:33:04.000Z
monitorrent/plugins/clients/transmission.py
mortifactor/monitorrent
2388ec5b82af5d078fa7e37930d3b66b4a797954
[ "WTFPL" ]
340
2015-07-18T17:31:54.000Z
2022-03-30T15:16:25.000Z
monitorrent/plugins/clients/transmission.py
mortifactor/monitorrent
2388ec5b82af5d078fa7e37930d3b66b4a797954
[ "WTFPL" ]
87
2015-07-18T10:52:24.000Z
2022-03-27T09:52:35.000Z
import six import transmissionrpc from pytz import reference, utc from sqlalchemy import Column, Integer, String from monitorrent.db import Base, DBSession from monitorrent.plugin_managers import register_plugin import base64 class TransmissionCredentials(Base): __tablename__ = "transmission_credentials" id ...
32.434426
106
0.573414
import six import transmissionrpc from pytz import reference, utc from sqlalchemy import Column, Integer, String from monitorrent.db import Base, DBSession from monitorrent.plugin_managers import register_plugin import base64 class TransmissionCredentials(Base): __tablename__ = "transmission_credentials" id ...
true
true
f70c12954517a7ab92741620556d0e5dde45046e
3,476
py
Python
examples/generate_notices_report_for_project_version.py
AvneetKhaira/hub-rest-api-python
d9fac065d8cae72aded87f7326477b03f52f45f8
[ "Apache-2.0" ]
null
null
null
examples/generate_notices_report_for_project_version.py
AvneetKhaira/hub-rest-api-python
d9fac065d8cae72aded87f7326477b03f52f45f8
[ "Apache-2.0" ]
null
null
null
examples/generate_notices_report_for_project_version.py
AvneetKhaira/hub-rest-api-python
d9fac065d8cae72aded87f7326477b03f52f45f8
[ "Apache-2.0" ]
null
null
null
''' Created on Dec 19, 2018 @author: gsnyder Generate notices report for a given project-version ''' from blackduck.HubRestApi import HubInstance import argparse import json import logging import sys import time import zipfile parser = argparse.ArgumentParser("A program to generate the notices file for a given pro...
39.05618
206
0.750575
from blackduck.HubRestApi import HubInstance import argparse import json import logging import sys import time import zipfile parser = argparse.ArgumentParser("A program to generate the notices file for a given project-version") parser.add_argument("project_name") parser.add_argument("version_name") parser.add_ar...
true
true
f70c13aa147eaeb39388692f9ff8fa426bc19476
1,735
py
Python
napari_assistant/_gui/_button_grid.py
Cryaaa/napari-assistant
efdde41368885ccc6cc0e40c4eba236e3883215c
[ "BSD-3-Clause" ]
null
null
null
napari_assistant/_gui/_button_grid.py
Cryaaa/napari-assistant
efdde41368885ccc6cc0e40c4eba236e3883215c
[ "BSD-3-Clause" ]
8
2022-03-07T20:38:01.000Z
2022-03-20T14:50:52.000Z
napari_assistant/_gui/_button_grid.py
Cryaaa/napari-assistant
efdde41368885ccc6cc0e40c4eba236e3883215c
[ "BSD-3-Clause" ]
null
null
null
from qtpy.QtCore import QSize from qtpy.QtGui import QIcon from qtpy.QtWidgets import QListWidget, QListWidgetItem from pathlib import Path ICON_ROOT = Path(__file__).parent / "icons" STYLES = r""" QListWidget{ min-width: 294; background: none; font-size: 8pt; color: #eee; } ...
27.983871
79
0.605764
from qtpy.QtCore import QSize from qtpy.QtGui import QIcon from qtpy.QtWidgets import QListWidget, QListWidgetItem from pathlib import Path ICON_ROOT = Path(__file__).parent / "icons" STYLES = r""" QListWidget{ min-width: 294; background: none; font-size: 8pt; color: #eee; } ...
true
true
f70c144e6451a175f12753b62c7803ebe9b46b98
3,156
py
Python
day14/day14.py
elp2/advent_of_code_2019
af3ce232fb6597dbc80e96bdfd5a6248f07aa3c6
[ "Apache-2.0" ]
1
2021-12-02T15:19:36.000Z
2021-12-02T15:19:36.000Z
day14/day14.py
elp2/advent_of_code_2019
af3ce232fb6597dbc80e96bdfd5a6248f07aa3c6
[ "Apache-2.0" ]
null
null
null
day14/day14.py
elp2/advent_of_code_2019
af3ce232fb6597dbc80e96bdfd5a6248f07aa3c6
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from copy import copy from math import ceil, floor def parse_item(item): [num, name] = item.strip().split(' ') return {} def filter_zeroes(d): ret = defaultdict(lambda: 0) for k, v in d.items(): if v != 0: ret[k] = v return ret output_to_for...
28.178571
75
0.585234
from collections import defaultdict from copy import copy from math import ceil, floor def parse_item(item): [num, name] = item.strip().split(' ') return {} def filter_zeroes(d): ret = defaultdict(lambda: 0) for k, v in d.items(): if v != 0: ret[k] = v return ret output_to_for...
true
true
f70c15bf0053d4434cfa71056c4b147777a06236
547
py
Python
ufdl-image-segmentation-app/src/ufdl/image_segmentation_app/migrations/0006_job_templates.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
ufdl-image-segmentation-app/src/ufdl/image_segmentation_app/migrations/0006_job_templates.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
85
2020-07-24T00:04:28.000Z
2022-02-10T10:35:15.000Z
ufdl-image-segmentation-app/src/ufdl/image_segmentation_app/migrations/0006_job_templates.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
from django.db import migrations from ufdl.core_app.migrations import DataMigration from ufdl.core_app.migrations.job_templates import get_python_job_template_migration from .job_templates import iterate_job_templates class Migration(migrations.Migration): """ Migration inserting the pre-trained model prese...
27.35
84
0.764168
from django.db import migrations from ufdl.core_app.migrations import DataMigration from ufdl.core_app.migrations.job_templates import get_python_job_template_migration from .job_templates import iterate_job_templates class Migration(migrations.Migration): dependencies = [ ('ufdl-image-segmentation', '0...
true
true
f70c15fdf850b63bd6c15c2688bbc3eb9b82f421
13,299
py
Python
qucumber/nn_states/density_matrix.py
ZvonimirBandic/QuCumber
81f0291951e89346fd8ab5c35cc90341fd8acf35
[ "Apache-2.0", "BSD-3-Clause" ]
163
2018-07-18T15:00:57.000Z
2022-03-31T09:05:06.000Z
qucumber/nn_states/density_matrix.py
ZvonimirBandic/QuCumber
81f0291951e89346fd8ab5c35cc90341fd8acf35
[ "Apache-2.0", "BSD-3-Clause" ]
101
2018-07-17T17:36:06.000Z
2021-10-19T01:40:10.000Z
qucumber/nn_states/density_matrix.py
ZvonimirBandic/QuCumber
81f0291951e89346fd8ab5c35cc90341fd8acf35
[ "Apache-2.0", "BSD-3-Clause" ]
32
2018-08-18T21:56:02.000Z
2022-03-12T22:04:16.000Z
# Copyright 2019 PIQuIL - All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed ...
34.542857
105
0.585608
import warnings import torch from torch.nn import functional as F from qucumber import _warn_on_missing_gpu from qucumber.utils import cplx, unitaries from qucumber.rbm import PurificationRBM from .neural_state import NeuralStateBase class DensityMatrix(NeuralStateBase): _rbm_am = None _rbm_...
true
true
f70c16978f371e597599b34590bfb00c27d46526
1,589
py
Python
venv/lib/python3.8/site-packages/vsts/task_agent/v4_1/models/task_group_definition.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/task_agent/v4_1/models/task_group_definition.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/task_agent/v4_1/models/task_group_definition.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
37.833333
102
0.512901
from msrest.serialization import Model class TaskGroupDefinition(Model): _attribute_map = { 'display_name': {'key': 'displayName', 'type': 'str'}, 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'tags': {'key': 'tags'...
true
true
f70c16f14cc1f04dbb6d4ae81ba7699c84f9eca6
2,431
py
Python
apps/core/views.py
RobertArzolaC/base_django
3fc368000b418d387ccb57b30fa223ac916f2895
[ "MIT" ]
null
null
null
apps/core/views.py
RobertArzolaC/base_django
3fc368000b418d387ccb57b30fa223ac916f2895
[ "MIT" ]
7
2020-02-12T00:30:41.000Z
2022-02-10T08:03:46.000Z
apps/core/views.py
RobertArzolaC/base_django
3fc368000b418d387ccb57b30fa223ac916f2895
[ "MIT" ]
2
2020-09-21T23:32:11.000Z
2021-01-10T17:29:24.000Z
from django.contrib.auth.models import User from django.contrib.auth import authenticate, login from rest_framework import generics from rest_framework import permissions from rest_framework.views import status from rest_framework.response import Response from rest_framework_jwt.settings import api_settings from .ser...
33.763889
92
0.653229
from django.contrib.auth.models import User from django.contrib.auth import authenticate, login from rest_framework import generics from rest_framework import permissions from rest_framework.views import status from rest_framework.response import Response from rest_framework_jwt.settings import api_settings from .ser...
true
true
f70c1a0ce799afb0a85a95fec93286da54ddca94
4,890
py
Python
src/primaires/scripting/actions/remplir.py
vlegoff/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
14
2015-08-21T19:15:21.000Z
2017-11-26T13:59:17.000Z
src/primaires/scripting/actions/remplir.py
vincent-lg/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
20
2015-09-29T20:50:45.000Z
2018-06-21T12:58:30.000Z
src/primaires/scripting/actions/remplir.py
vlegoff/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
3
2015-05-02T19:42:03.000Z
2018-09-06T10:55:00.000Z
# -*-coding:Utf-8 -* # Copyright (c) 2010-2017 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # ...
44.054054
79
0.666871
from primaires.scripting.action import Action from primaires.scripting.instruction import ErreurExecution class ClasseAction(Action): @classmethod def init_types(cls): cls.ajouter_types(cls.remplir_objet, "Objet", "Objet") cls.ajouter_types(cls.remplir_proto_nb,...
true
true
f70c1a7906ca430885a53e98cf618a681cf5345c
1,871
py
Python
nova/tests/unit/objects/test_numa.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/objects/test_numa.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/objects/test_numa.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
31.711864
78
0.621058
from nova import objects from nova.tests.unit.objects import test_objects fake_obj_numa = objects.NUMATopology( cells=[ objects.NUMACell( id=0, cpuset=set([1, 2]), memory=512, cpu_usage=2, memory_usage=256), objects.NUMACell( id=1, cpuset=set([3, 4])...
true
true
f70c1a9e14e34afc1f891dc6e43eba44f38e5062
6,564
py
Python
tests/shell/test_configadmin.py
svidoso/ipopo
1d4b81207e67890dfccc8f562336c7104f194c17
[ "Apache-2.0" ]
65
2015-04-21T10:41:18.000Z
2022-01-02T16:25:40.000Z
tests/shell/test_configadmin.py
svidoso/ipopo
1d4b81207e67890dfccc8f562336c7104f194c17
[ "Apache-2.0" ]
85
2015-01-20T14:23:52.000Z
2022-02-19T17:08:46.000Z
tests/shell/test_configadmin.py
svidoso/ipopo
1d4b81207e67890dfccc8f562336c7104f194c17
[ "Apache-2.0" ]
32
2015-03-13T07:43:05.000Z
2020-04-24T07:56:53.000Z
#!/usr/bin/env python # -- Content-Encoding: UTF-8 -- """ Tests the ConfigurationAdmin shell commands :author: Thomas Calmant """ # Pelix import pelix.framework import pelix.services import pelix.shell import pelix.shell.beans as beans # Standard library import os try: from StringIO import StringIO except Import...
30.248848
80
0.591865
import pelix.framework import pelix.services import pelix.shell import pelix.shell.beans as beans import os try: from StringIO import StringIO except ImportError: from io import StringIO try: import unittest2 as unittest except ImportError: import unittest __version_info__ = (1, 0, 1) __versio...
true
true
f70c1c985b94a376cb5ae57f8f742ff430e60c99
8,056
py
Python
src/models/densenet/model.py
gsc2001/ConvexNet
a17609bd5bca0a02b6330b1ad8035f2b280109f0
[ "MIT" ]
null
null
null
src/models/densenet/model.py
gsc2001/ConvexNet
a17609bd5bca0a02b6330b1ad8035f2b280109f0
[ "MIT" ]
null
null
null
src/models/densenet/model.py
gsc2001/ConvexNet
a17609bd5bca0a02b6330b1ad8035f2b280109f0
[ "MIT" ]
null
null
null
""" Vanilla DenseNet implementation Paper: https://arxiv.org/abs/1608.06993 Implementation taken from: https://github.com/pytorch/vision/blob/main/torchvision/models/densenet.py """ import re from collections import OrderedDict from functools import partial from typing import Any, List, Optional, Tuple import torch im...
38.180095
120
0.620531
import re from collections import OrderedDict from functools import partial from typing import Any, List, Optional, Tuple import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.checkpoint as cp from torch import Tensor class _DenseLayer(nn.Module): def __init__( self, num_in...
true
true
f70c1d6a132dc5c4f214794bc2ddfb198c8735bf
10,736
py
Python
modules/andforensics_connector.py
KimVegetable/carpe
8325b680898970c02e1fcfc1929490bf31b9ea49
[ "Apache-2.0" ]
null
null
null
modules/andforensics_connector.py
KimVegetable/carpe
8325b680898970c02e1fcfc1929490bf31b9ea49
[ "Apache-2.0" ]
null
null
null
modules/andforensics_connector.py
KimVegetable/carpe
8325b680898970c02e1fcfc1929490bf31b9ea49
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """module for android forensics.""" import os import io import subprocess import sqlite3 from datetime import datetime from modules import logger from modules import manager from modules import interface class AndForensicsConnector(interface.ModuleConnector): NAME = 'andforensics_connecto...
59.644444
147
0.454359
import os import io import subprocess import sqlite3 from datetime import datetime from modules import logger from modules import manager from modules import interface class AndForensicsConnector(interface.ModuleConnector): NAME = 'andforensics_connector' DESCRIPTION = 'Module for android' TABLE_NAME = ...
true
true
f70c1db71c0d85aad1438342c2764a0e1cfb70f9
48,153
py
Python
python/ccxt/bitz.py
atommy1966/ccxt
928243ed26a268659723c0965c4c5d6ee128d70a
[ "MIT" ]
1
2020-12-21T04:04:24.000Z
2020-12-21T04:04:24.000Z
python/ccxt/bitz.py
atommy1966/ccxt
928243ed26a268659723c0965c4c5d6ee128d70a
[ "MIT" ]
1
2020-05-08T09:19:46.000Z
2020-09-12T14:55:58.000Z
python/ccxt/bitz.py
atommy1966/ccxt
928243ed26a268659723c0965c4c5d6ee128d70a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationE...
41.981691
182
0.415114
ge import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationError from ccxt.base.errors import PermissionDenied from ccxt.base.errors import ArgumentsRequired from ccxt.base.errors import InsufficientFunds from ccxt.base.errors import InvalidOrder from ccxt.ba...
true
true
f70c1e0a237bb4b5225ab23400b8c3d6fa0b725c
3,648
py
Python
_scripts/nblint.py
dfreeman06/ipyradiant
6298889eb0d28c0dda01c4fc9d422814b9858878
[ "BSD-3-Clause" ]
null
null
null
_scripts/nblint.py
dfreeman06/ipyradiant
6298889eb0d28c0dda01c4fc9d422814b9858878
[ "BSD-3-Clause" ]
null
null
null
_scripts/nblint.py
dfreeman06/ipyradiant
6298889eb0d28c0dda01c4fc9d422814b9858878
[ "BSD-3-Clause" ]
null
null
null
""" linter and formatter of notebooks """ # Copyright (c) 2020 ipyradiant contributors. # Distributed under the terms of the Modified BSD License. import json import shutil import subprocess import sys from hashlib import sha256 from pathlib import Path import black import isort import nbformat from . import projec...
27.847328
86
0.573739
import json import shutil import subprocess import sys from hashlib import sha256 from pathlib import Path import black import isort import nbformat from . import project as P NODE = [shutil.which("node") or shutil.which("node.exe") or shutil.which("node.cmd")] NB_METADATA_KEYS = ["kernelspec", "language_info"]...
true
true
f70c1e5e6020c7c8e558bc2ed17aaf6cfa5c8b3f
812
py
Python
CraftProtocol/Protocol/v1_12_2/Packet/Play/KeepAliveServerPacket.py
Toranktto/CraftProtocol
a6f4a67756c3868820ab76df5e148d76b020d990
[ "MIT" ]
21
2018-05-12T20:18:02.000Z
2022-02-18T17:33:50.000Z
CraftProtocol/Protocol/v1_12_2/Packet/Play/KeepAliveServerPacket.py
Toranktto/CraftProtocol
a6f4a67756c3868820ab76df5e148d76b020d990
[ "MIT" ]
1
2018-06-23T09:13:39.000Z
2018-06-27T01:22:27.000Z
CraftProtocol/Protocol/v1_12_2/Packet/Play/KeepAliveServerPacket.py
Toranktto/CraftProtocol
a6f4a67756c3868820ab76df5e148d76b020d990
[ "MIT" ]
2
2018-05-19T21:36:00.000Z
2020-10-02T03:23:13.000Z
#!/usr/bin/env python from CraftProtocol.Protocol.Packet.BasePacket import BasePacket from CraftProtocol.Protocol.Packet.PacketDirection import PacketDirection from CraftProtocol.StreamIO import StreamIO class KeepAliveServerPacket(BasePacket): PACKET_ID = 0x0B PACKET_DIRECTION = PacketDirection.SERVERBOUND ...
26.193548
73
0.730296
from CraftProtocol.Protocol.Packet.BasePacket import BasePacket from CraftProtocol.Protocol.Packet.PacketDirection import PacketDirection from CraftProtocol.StreamIO import StreamIO class KeepAliveServerPacket(BasePacket): PACKET_ID = 0x0B PACKET_DIRECTION = PacketDirection.SERVERBOUND def __init__(sel...
true
true
f70c1fe0165b3d3a65f17e6891bf1b312cb2442d
7,155
py
Python
src/oci/log_analytics/models/classify_command_descriptor.py
xjuarez/oci-python-sdk
3c1604e4e212008fb6718e2f68cdb5ef71fd5793
[ "Apache-2.0", "BSD-3-Clause" ]
3
2020-09-10T22:09:45.000Z
2021-12-24T17:00:07.000Z
src/oci/log_analytics/models/classify_command_descriptor.py
xjuarez/oci-python-sdk
3c1604e4e212008fb6718e2f68cdb5ef71fd5793
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/log_analytics/models/classify_command_descriptor.py
xjuarez/oci-python-sdk
3c1604e4e212008fb6718e2f68cdb5ef71fd5793
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
40.196629
595
0.672397
from .abstract_command_descriptor import AbstractCommandDescriptor from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class ClassifyCommandDescriptor(AbstractCommandDescriptor): d...
true
true
f70c229a3106b39a3efca6e2d4e211e7c73f62f0
1,626
py
Python
projects/pub_utils.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
3
2015-08-04T20:53:41.000Z
2020-02-14T22:58:20.000Z
projects/pub_utils.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
103
2015-01-15T14:21:00.000Z
2022-03-31T19:14:20.000Z
projects/pub_utils.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
4
2016-02-22T16:48:20.000Z
2021-01-08T17:13:21.000Z
import datetime import re class PublicationUtils: @staticmethod def get_month(bibtex_entry): month = bibtex_entry.get("month") m = None try: m = int(month) except Exception: pass try: m = datetime.datetime.strptime(month, "%b").month ...
29.563636
75
0.54797
import datetime import re class PublicationUtils: @staticmethod def get_month(bibtex_entry): month = bibtex_entry.get("month") m = None try: m = int(month) except Exception: pass try: m = datetime.datetime.strptime(month, "%b").month ...
true
true
f70c238c07f15da6c86f56503d1173d7e0edad0d
498
py
Python
blog/migrations/0019_user_avatar.py
dijiudu/django_blog-django2.0.3
b18889c4b9053b2a39c734c10a3bed84554d4303
[ "MIT" ]
137
2017-05-05T11:57:11.000Z
2021-01-06T18:56:56.000Z
blog/migrations/0019_user_avatar.py
dijiudu/django_blog-django2.0.3
b18889c4b9053b2a39c734c10a3bed84554d4303
[ "MIT" ]
10
2018-05-20T06:36:10.000Z
2022-03-11T23:19:21.000Z
blog/migrations/0019_user_avatar.py
wangchaocc21/django_blog
3fe8215e627960e933abe9548eda123987e94f13
[ "MIT" ]
24
2017-06-19T18:08:59.000Z
2019-02-02T04:15:13.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-25 08:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0018_auto_20170625_1616'), ] operations = [ migrations.AddField( ...
23.714286
104
0.620482
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0018_auto_20170625_1616'), ] operations = [ migrations.AddField( model_name='user', name='avatar', fie...
true
true
f70c259df5a8437d1f62a29d06994107e133cb19
7,245
py
Python
seamseg/utils/coco_ap.py
gladcolor/seamseg
9e6c7e2828f32b311a7b0c16b279ac194e8aaf94
[ "BSD-3-Clause" ]
2
2021-01-11T08:57:40.000Z
2021-01-11T08:57:44.000Z
seamseg/utils/coco_ap.py
gladcolor/seamseg
9e6c7e2828f32b311a7b0c16b279ac194e8aaf94
[ "BSD-3-Clause" ]
null
null
null
seamseg/utils/coco_ap.py
gladcolor/seamseg
9e6c7e2828f32b311a7b0c16b279ac194e8aaf94
[ "BSD-3-Clause" ]
1
2020-09-28T07:55:50.000Z
2020-09-28T07:55:50.000Z
import json import tempfile import time from collections import defaultdict from os import path, remove import numpy as np import torch import torch.distributed as dist from PIL import Image from pycocotools.coco import COCO as _COCO from pycocotools.cocoeval import COCOeval from pycocotools.mask import encode as mask...
38.537234
118
0.633402
import json import tempfile import time from collections import defaultdict from os import path, remove import numpy as np import torch import torch.distributed as dist from PIL import Image from pycocotools.coco import COCO as _COCO from pycocotools.cocoeval import COCOeval from pycocotools.mask import encode as mask...
true
true
f70c25aac3ff734e0ee87c124fe1d3e6037c8415
364
py
Python
examples/quotes_avro/quotes_avro/pipelines.py
ZuInnoTe/scrapy-contrib-bigexporters
45428fcfc2c1531ac93a66d381f46ef70ccef1fe
[ "MIT" ]
9
2020-10-11T16:48:26.000Z
2022-03-22T22:49:55.000Z
examples/quotes_avro/quotes_avro/pipelines.py
ZuInnoTe/scrapy-contrib-bigexporters
45428fcfc2c1531ac93a66d381f46ef70ccef1fe
[ "MIT" ]
4
2020-10-11T18:23:16.000Z
2022-03-24T16:50:34.000Z
examples/quotes_avro/quotes_avro/pipelines.py
ZuInnoTe/scrapy-contrib-bigexporters
45428fcfc2c1531ac93a66d381f46ef70ccef1fe
[ "MIT" ]
1
2022-03-31T20:00:04.000Z
2022-03-31T20:00:04.000Z
# Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface from itemadapter import ItemAdapter class QuotesAvroPipeline: def process_it...
26
66
0.769231
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface from itemadapter import ItemAdapter class QuotesAvroPipeline: def process_item(self, item, spider): return item
true
true