hexsha
stringlengths
40
40
size
int64
4
996k
ext
stringclasses
8 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
4
996k
avg_line_length
float64
1.33
58.2k
max_line_length
int64
2
323k
alphanum_fraction
float64
0
0.97
content_no_comment
stringlengths
0
946k
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f724861c26fdb7becc18c6a8a70a39ab6cf71c08
6,782
py
Python
sdk/lusid/models/resource_list_of_get_counterparty_response.py
mneedham/lusid-sdk-python-preview
f4494009d1a2f3431d931c813cab679bdbd92c84
[ "MIT" ]
null
null
null
sdk/lusid/models/resource_list_of_get_counterparty_response.py
mneedham/lusid-sdk-python-preview
f4494009d1a2f3431d931c813cab679bdbd92c84
[ "MIT" ]
null
null
null
sdk/lusid/models/resource_list_of_get_counterparty_response.py
mneedham/lusid-sdk-python-preview
f4494009d1a2f3431d931c813cab679bdbd92c84
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.3192 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class ResourceListOfGetCounterpartyResponse(object): ...
28.495798
109
0.599823
import pprint import re import six class ResourceListOfGetCounterpartyResponse(object): openapi_types = { 'values': 'list[GetCounterpartyResponse]', 'href': 'str', 'links': 'list[Link]', 'next_page': 'str', 'previous_page': 'str' } attribute_map = { ...
true
true
f72487670d1fd26ffb29aca415344110891be0c5
4,468
py
Python
solidata_api/_models/models_dataset_output.py
entrepreneur-interet-general/solidata_backend
08ba9151069f2f633461f5166b1954fdeac7854a
[ "MIT" ]
7
2018-12-13T09:50:26.000Z
2022-03-25T23:59:26.000Z
solidata_api/_models/models_dataset_output.py
entrepreneur-interet-general/solidata_backend
08ba9151069f2f633461f5166b1954fdeac7854a
[ "MIT" ]
35
2018-10-16T09:06:40.000Z
2019-03-27T11:12:11.000Z
solidata_api/_models/models_dataset_output.py
entrepreneur-interet-general/solidata_backend
08ba9151069f2f633461f5166b1954fdeac7854a
[ "MIT" ]
2
2019-02-16T15:19:05.000Z
2019-02-19T19:27:44.000Z
# -*- encoding: utf-8 -*- """ _models/models_dataset_outputs.py """ from log_config import log, pformat log.debug("... loading models_dataset_outputs.py ...") from flask_restplus import fields ### import data serializers from solidata_api._serializers.schema_logs import * from solidata_api._serializers.sche...
26.282353
133
0.673679
from log_config import log, pformat log.debug("... loading models_dataset_outputs.py ...") from flask_restplus import fields t * from solidata_api._serializers.schema_generic import * open_level_edit_show} ) @property def model(self): return self.mod class Dso_infos : def __init__(self, ns_) :...
true
true
f72487c1401c258eeaef80d0bad2132c073531cf
8,204
py
Python
openapi_client/api/dc_graph_get_report_depot_utilization_v1_api.py
vertica/vertica-accelerator-cli
706925f58a4bfc2876903396db72363f673be76a
[ "Apache-2.0" ]
null
null
null
openapi_client/api/dc_graph_get_report_depot_utilization_v1_api.py
vertica/vertica-accelerator-cli
706925f58a4bfc2876903396db72363f673be76a
[ "Apache-2.0" ]
null
null
null
openapi_client/api/dc_graph_get_report_depot_utilization_v1_api.py
vertica/vertica-accelerator-cli
706925f58a4bfc2876903396db72363f673be76a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ VAAS API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 0.0.1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa...
42.507772
148
0.615553
from __future__ import absolute_import import re import six from openapi_client.api_client import ApiClient from openapi_client.exceptions import ( ApiTypeError, ApiValueError ) class DcGraphGetReportDepotUtilizationV1Api(object): def __init__(self, api_client=None): if api_client is ...
true
true
f724888e65513eebbb1135160df884f5d67661ab
22,396
py
Python
pytest_django/plugin.py
oboynitro/pytest-django
e4ebc59b0037e5623706c738ef8cbf09ecd2425d
[ "BSD-3-Clause" ]
1
2020-10-23T02:46:08.000Z
2020-10-23T02:46:08.000Z
pytest_django/plugin.py
oboynitro/pytest-django
e4ebc59b0037e5623706c738ef8cbf09ecd2425d
[ "BSD-3-Clause" ]
null
null
null
pytest_django/plugin.py
oboynitro/pytest-django
e4ebc59b0037e5623706c738ef8cbf09ecd2425d
[ "BSD-3-Clause" ]
null
null
null
"""A pytest plugin which helps testing Django applications This plugin handles creating and destroying the test environment and test database and provides some useful text fixtures. """ import contextlib import inspect from functools import reduce import os import pathlib import sys import pytest from .django_compa...
30.976487
92
0.655162
import contextlib import inspect from functools import reduce import os import pathlib import sys import pytest from .django_compat import is_django_unittest from .fixtures import django_assert_num_queries from .fixtures import django_assert_max_num_queries from .fixtures import django_db_setup from .fixture...
true
true
f72489a44f3b9b2634bf77eab598bc59f36daa24
26,662
py
Python
src/squad/graphs.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
src/squad/graphs.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
src/squad/graphs.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
from typing import Any, Dict, List, Optional, Tuple, Type, Union, overload import numpy as np from squad.exceptions import ( EdgeAlreadyExists, EdgeNotFound, NodeAlreadyExists, NodeNotFound, ) class Node: """ Single node in a graph. """ def __init__(self, name: str, **data: Any) -> ...
29.39581
78
0.543808
from typing import Any, Dict, List, Optional, Tuple, Type, Union, overload import numpy as np from squad.exceptions import ( EdgeAlreadyExists, EdgeNotFound, NodeAlreadyExists, NodeNotFound, ) class Node: def __init__(self, name: str, **data: Any) -> None: self._name = name self...
true
true
f72489d38d9e27f6b45fff3179aa6e269ca30371
1,919
py
Python
tools/validatefiles.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
null
null
null
tools/validatefiles.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
null
null
null
tools/validatefiles.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
1
2020-07-26T03:57:45.000Z
2020-07-26T03:57:45.000Z
''' This script will validate a DataModel against an collection of input files. It will verify they are able to be parsed correctly. ''' import os, sys, time, glob sys.path.append("c:/peach") print """ ]] Peach Validate Multiple Files ]] Copyright (c) Michael Eddington """ if len(sys.argv) < 3: p...
25.25
67
0.704534
''' This script will validate a DataModel against an collection of input files. It will verify they are able to be parsed correctly. ''' import os, sys, time, glob sys.path.append("c:/peach") print """ ]] Peach Validate Multiple Files ]] Copyright (c) Michael Eddington """ if len(sys.argv) < 3: p...
false
true
f72489d8e00e85d8c00ed35e505fae2c30fe7577
1,139
py
Python
Advanced-Algorithms-and-Complexity/Week3 - P vs NP/03 - Budget Allocation/budget_allocation.py
ChristineHu1207/Coursera-Data-Structures-and-Algorithms-Specialization
27f543ca0778d00ffd624ffcd18bf555660e0168
[ "MIT" ]
null
null
null
Advanced-Algorithms-and-Complexity/Week3 - P vs NP/03 - Budget Allocation/budget_allocation.py
ChristineHu1207/Coursera-Data-Structures-and-Algorithms-Specialization
27f543ca0778d00ffd624ffcd18bf555660e0168
[ "MIT" ]
null
null
null
Advanced-Algorithms-and-Complexity/Week3 - P vs NP/03 - Budget Allocation/budget_allocation.py
ChristineHu1207/Coursera-Data-Structures-and-Algorithms-Specialization
27f543ca0778d00ffd624ffcd18bf555660e0168
[ "MIT" ]
null
null
null
# python3 import itertools n, m = list(map(int, input().split())) A = [] for i in range(n): A += [list(map(int, input().split()))] b = list(map(int, input().split())) clauses = [] for i, coefficient in enumerate(A): non_coefficients = [(j, coefficient[j]) for j in range(m) if 0 != coefficient[j]] l = len(non_c...
24.76087
137
0.627744
import itertools n, m = list(map(int, input().split())) A = [] for i in range(n): A += [list(map(int, input().split()))] b = list(map(int, input().split())) clauses = [] for i, coefficient in enumerate(A): non_coefficients = [(j, coefficient[j]) for j in range(m) if 0 != coefficient[j]] l = len(non_coefficien...
true
true
f72489ec9d755295d9c7b8adc3c280594304173c
7,911
py
Python
bokeh/_version.py
timelyportfolio/bokeh
a976a85535cf137c6238ce9e90b41ab14ae8ce22
[ "BSD-3-Clause" ]
2
2015-07-23T21:19:52.000Z
2016-01-25T17:00:15.000Z
bokeh/_version.py
brian15co/bokeh
6cecb7211277b9d838039d0eb15e50a10f9ac3d1
[ "BSD-3-Clause" ]
null
null
null
bokeh/_version.py
brian15co/bokeh
6cecb7211277b9d838039d0eb15e50a10f9ac3d1
[ "BSD-3-Clause" ]
2
2015-12-22T04:13:10.000Z
2021-07-06T21:18:04.000Z
IN_LONG_VERSION_PY = True # This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by github's download-from-tag # feature). Distribution tarballs (build by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter ...
40.362245
87
0.627102
IN_LONG_VERSION_PY = True # feature). Distribution tarballs (build by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains the computed version number. # This file is released into the public domain. Generated by # versioneer-0.7+ (https://github...
true
true
f7248a22b006a256442a62ed9db4b0498100a0da
867
py
Python
templates/template.py
zara-ms/python_class
8a9529e14e84c3c2e3fd0a7c793fcb09471ea55c
[ "MIT" ]
null
null
null
templates/template.py
zara-ms/python_class
8a9529e14e84c3c2e3fd0a7c793fcb09471ea55c
[ "MIT" ]
null
null
null
templates/template.py
zara-ms/python_class
8a9529e14e84c3c2e3fd0a7c793fcb09471ea55c
[ "MIT" ]
3
2021-04-09T18:40:26.000Z
2021-09-07T01:15:03.000Z
´´´ ## NAME [programName].py ## VERSION [#.#] ## AUTHOR Zara Paulina Martinez Sanchez <zaram042001@gmail.com> [Other authors]: [Modifications] ## DATE [dd/mm/yyyy] ## DESCRIPTION [briefly describe what the program does] ## CATEGORY [category of the program: sequence analysis for example] ## USAGE ...
14.213115
57
0.585928
´´´ gramName].py na Martinez Sanchez <zaram042001@gmail.com> [Other authors]: [Modifications] /mm/yyyy] describe what the program does] ry of the program: sequence analysis for example] gramName][-options/arguments] [description] [name] [description] parser.add_argument("-i", "--input", ...
false
true
f7248af32f72c111effbd60171246b9815ed3cb7
368
py
Python
sol_runner.py
Square789/AoC
041aecb9e1a06b5417bdef0eb0ab70a542be04b5
[ "MIT" ]
3
2020-12-05T17:43:51.000Z
2020-12-06T10:37:29.000Z
sol_runner.py
Square789/AoC
041aecb9e1a06b5417bdef0eb0ab70a542be04b5
[ "MIT" ]
null
null
null
sol_runner.py
Square789/AoC
041aecb9e1a06b5417bdef0eb0ab70a542be04b5
[ "MIT" ]
null
null
null
import importlib import sys from aoc_input import get_input if __name__ == "__main__": if len(sys.argv) < 3: print("Specify which file to run! [year, day]") sys.exit() try: year = int(sys.argv[1]) day = int(sys.argv[2]) except ValueError: print("Integer required!") sys.exit() module = importlib.impo...
18.4
56
0.673913
import importlib import sys from aoc_input import get_input if __name__ == "__main__": if len(sys.argv) < 3: print("Specify which file to run! [year, day]") sys.exit() try: year = int(sys.argv[1]) day = int(sys.argv[2]) except ValueError: print("Integer required!") sys.exit() module = importlib.impo...
true
true
f7248b04de6e0f200dd961244469207c2c19aa5a
39,165
py
Python
validator/sawtooth_validator/gossip/gossip.py
ltavag/sawtooth-core
50659f23437b27ecd666d4cf129f812e6adaedc4
[ "Apache-2.0" ]
1
2018-04-24T11:42:36.000Z
2018-04-24T11:42:36.000Z
validator/sawtooth_validator/gossip/gossip.py
ltavag/sawtooth-core
50659f23437b27ecd666d4cf129f812e6adaedc4
[ "Apache-2.0" ]
null
null
null
validator/sawtooth_validator/gossip/gossip.py
ltavag/sawtooth-core
50659f23437b27ecd666d4cf129f812e6adaedc4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
41.664894
80
0.578808
import logging import copy import time import random import os import binascii from threading import Lock from functools import partial from collections import namedtuple from enum import Enum from sawtooth_validator.concurrent.thread import InstrumentedThread from sawtooth_validator.protobuf.network_pb2...
true
true
f7248bd68fe7de142bd9557e71df9eec370b4208
4,604
py
Python
colossalai/nn/optimizer/lamb.py
xdjiangkai/ColossalAI
4a3d3446b04065fa1c89b78cba673e96115c6325
[ "Apache-2.0" ]
1
2022-03-12T04:49:19.000Z
2022-03-12T04:49:19.000Z
colossalai/nn/optimizer/lamb.py
xdjiangkai/ColossalAI
4a3d3446b04065fa1c89b78cba673e96115c6325
[ "Apache-2.0" ]
null
null
null
colossalai/nn/optimizer/lamb.py
xdjiangkai/ColossalAI
4a3d3446b04065fa1c89b78cba673e96115c6325
[ "Apache-2.0" ]
1
2022-01-06T17:16:32.000Z
2022-01-06T17:16:32.000Z
""" Adapted from the pytorch-lamb library at https://github.com/cybertronai/pytorch-lamb """ import torch from torch.optim import Optimizer from colossalai.registry import OPTIMIZERS @OPTIMIZERS.register_module class Lamb(Optimizer): r"""Implements Lamb algorithm. It has been proposed in `Large Batch Optimi...
39.350427
103
0.553649
import torch from torch.optim import Optimizer from colossalai.registry import OPTIMIZERS @OPTIMIZERS.register_module class Lamb(Optimizer): def __init__(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-6, weight_decay=0, adam=False): if not 0.0 <= lr: raise ValueError("In...
true
true
f7248e344028eb2f0e09ee718bbf90134b69c45e
29,546
py
Python
pyqubo/array.py
OpenJij/pyqubo
47190d3391c83c1c84636ab8f8bff67c8f935dc0
[ "Apache-2.0" ]
null
null
null
pyqubo/array.py
OpenJij/pyqubo
47190d3391c83c1c84636ab8f8bff67c8f935dc0
[ "Apache-2.0" ]
null
null
null
pyqubo/array.py
OpenJij/pyqubo
47190d3391c83c1c84636ab8f8bff67c8f935dc0
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Recruit Communications 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 a...
36.978723
100
0.504874
from .core import Spin, Binary, Express import dimod from dimod.decorators import vartype_argument import numpy as np from operator import mul, add from six.moves import reduce class Array: def __init__(self, bit_list): if isinstance(bit_list, np.ndarray): self.shape = bit_lis...
true
true
f7248e4c92268c1a8e4f9a3e78264a4a28b054ff
533
py
Python
scripts/flash/plot_hitscores.py
JunCEEE/hummingbird
0b1bdf5023b92090f31d9bc857e0854a805cf2cd
[ "BSD-2-Clause" ]
14
2016-02-18T23:10:12.000Z
2021-07-30T09:19:56.000Z
scripts/flash/plot_hitscores.py
JunCEEE/hummingbird
0b1bdf5023b92090f31d9bc857e0854a805cf2cd
[ "BSD-2-Clause" ]
66
2015-11-18T15:39:45.000Z
2015-12-06T16:06:20.000Z
scripts/flash/plot_hitscores.py
JunCEEE/hummingbird
0b1bdf5023b92090f31d9bc857e0854a805cf2cd
[ "BSD-2-Clause" ]
13
2016-07-07T13:15:52.000Z
2021-11-10T11:56:13.000Z
#!/usr/bin/env python import h5py import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import sys runnr = int(sys.argv[1]) filename = '/asap3/flash/gpfs/bl1/2017/data/11001733/processed/hummingbird/r%04d_ol1.h5' %runnr with h5py.File(filename, 'r') as f: hitscore = f['entry_1/...
28.052632
95
0.729831
import h5py import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import sys runnr = int(sys.argv[1]) filename = '/asap3/flash/gpfs/bl1/2017/data/11001733/processed/hummingbird/r%04d_ol1.h5' %runnr with h5py.File(filename, 'r') as f: hitscore = f['entry_1/result_1/hitscore_lit...
true
true
f7248ee621042e30291d461ffdf3dcab8f265bba
106,231
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.167319
873
0.668468
import functools from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_...
true
true
f7248f210691f99763f6311365ed9eb869ed4aa4
20,439
py
Python
mlrun/runtimes/pod.py
Michaelliv/mlrun
f155836f71e86cfcc573bcf1aa35762d72feeb5a
[ "Apache-2.0" ]
null
null
null
mlrun/runtimes/pod.py
Michaelliv/mlrun
f155836f71e86cfcc573bcf1aa35762d72feeb5a
[ "Apache-2.0" ]
null
null
null
mlrun/runtimes/pod.py
Michaelliv/mlrun
f155836f71e86cfcc573bcf1aa35762d72feeb5a
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Iguazio # # 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, softwa...
36.563506
131
0.632467
import os import typing import uuid from enum import Enum from kfp.dsl import ContainerOp, _container_op from kubernetes import client import mlrun.errors import mlrun.utils.regex from ..config import config as mlconf from ..utils import logger, normalize_name, update_in, verify_field_regex from .base i...
true
true
f7248f61ab2a1f4fb14a9ffc0272aea78e49b1af
7,677
py
Python
var/spack/repos/builtin/packages/libint/package.py
rickgcv/spack
4d4f7393a3522c1f690a2e9a9683bf0f8f3b43a6
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/libint/package.py
rickgcv/spack
4d4f7393a3522c1f690a2e9a9683bf0f8f3b43a6
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/libint/package.py
rickgcv/spack
4d4f7393a3522c1f690a2e9a9683bf0f8f3b43a6
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2020-11-08T10:26:48.000Z
2020-11-08T10:26:48.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os from spack import * TUNE_VARIANTS = ( 'none', 'cp2k-lmax-4', 'cp2k-lmax-5', 'cp2k-lmax-6', ...
37.44878
95
0.558421
import os from spack import * TUNE_VARIANTS = ( 'none', 'cp2k-lmax-4', 'cp2k-lmax-5', 'cp2k-lmax-6', 'cp2k-lmax-7', 'molgw-lmax-4', 'molgw-lmax-5', 'molgw-lmax-6', 'molgw-lmax-7', ) class Libint(AutotoolsPackage): homepage = "https://github.com/evaleev/libint" url =...
true
true
f7248fd3c08c05e53ab12b8b1c1daa7aa98f5d00
11,277
py
Python
real_time.py
TheoPantaz/Control-of-robotic-vehicle-via-brain-activity
4cae5a69503659581f510c748f59f045d1f2b145
[ "MIT" ]
null
null
null
real_time.py
TheoPantaz/Control-of-robotic-vehicle-via-brain-activity
4cae5a69503659581f510c748f59f045d1f2b145
[ "MIT" ]
null
null
null
real_time.py
TheoPantaz/Control-of-robotic-vehicle-via-brain-activity
4cae5a69503659581f510c748f59f045d1f2b145
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jan 17 18:06:40 2020 @author: Kokkinos lines for telnet communication: 31,32,136,139,149,152,201,204,212,215,296 """ from threading import Thread import numpy as np import scipy.io as sio from pylsl import StreamInlet, resolve_stream from tkinter import * import telnetlib i...
31.412256
151
0.423162
from threading import Thread import numpy as np import scipy.io as sio from pylsl import StreamInlet, resolve_stream from tkinter import * import telnetlib import pickle import threading from graphics import Graphics class rt(Graphics): def __init__(self, mode = 'IMvsall', tim_window = 4, vote_window = 4, ...
true
true
f7249040b586c4a22845aeab9c8fe2659a7527ef
1,126
py
Python
python/6.net/3.Ext/1.shell_server.py
dunitian/BaseCode
4855ef4c6dd7c95d7239d2048832d8acfe26e084
[ "Apache-2.0" ]
25
2018-06-13T08:13:44.000Z
2020-11-19T14:02:11.000Z
python/6.net/3.Ext/1.shell_server.py
dunitian/BaseCode
4855ef4c6dd7c95d7239d2048832d8acfe26e084
[ "Apache-2.0" ]
null
null
null
python/6.net/3.Ext/1.shell_server.py
dunitian/BaseCode
4855ef4c6dd7c95d7239d2048832d8acfe26e084
[ "Apache-2.0" ]
13
2018-06-13T08:13:38.000Z
2022-01-06T06:45:07.000Z
from socket import socket def main(): with socket() as tcp_socket: tcp_socket.bind(('', 8080)) tcp_socket.listen() client_socket, client_addr = tcp_socket.accept() with client_socket: print(f"[肉鸡{client_addr}已经上线:]\n") while True: cmd = input...
29.631579
65
0.562167
from socket import socket def main(): with socket() as tcp_socket: tcp_socket.bind(('', 8080)) tcp_socket.listen() client_socket, client_addr = tcp_socket.accept() with client_socket: print(f"[肉鸡{client_addr}已经上线:]\n") while True: cmd = input...
true
true
f724904db04d50387041ae9ec1500db44a5daf4d
17,114
py
Python
src/models/trainer_ext.py
Katarina11/PreSumm
616e72f038d512e9e9112af375d66a0b2e3db6cd
[ "MIT" ]
null
null
null
src/models/trainer_ext.py
Katarina11/PreSumm
616e72f038d512e9e9112af375d66a0b2e3db6cd
[ "MIT" ]
null
null
null
src/models/trainer_ext.py
Katarina11/PreSumm
616e72f038d512e9e9112af375d66a0b2e3db6cd
[ "MIT" ]
null
null
null
import os import numpy as np import torch from tensorboardX import SummaryWriter import distributed from models.reporter_ext import ReportMgr, Statistics from others.logging import logger from others.utils import test_rouge, rouge_results_to_str def _tally_parameters(model): n_params = sum([p.nelement() for p i...
38.895455
112
0.521678
import os import numpy as np import torch from tensorboardX import SummaryWriter import distributed from models.reporter_ext import ReportMgr, Statistics from others.logging import logger from others.utils import test_rouge, rouge_results_to_str def _tally_parameters(model): n_params = sum([p.nelement() for p i...
true
true
f724910c59315867a42a56fab3deb36f5d3adb7a
46,062
py
Python
tensorflow/contrib/bayesflow/python/ops/hmc_impl.py
M155K4R4/Tensorflow
e5e03ef3148303b3dfed89a1492dedf92b45be25
[ "Apache-2.0" ]
5
2019-05-23T02:59:21.000Z
2020-02-05T08:20:23.000Z
tensorflow/contrib/bayesflow/python/ops/hmc_impl.py
M155K4R4/Tensorflow
e5e03ef3148303b3dfed89a1492dedf92b45be25
[ "Apache-2.0" ]
2
2017-08-01T21:11:06.000Z
2017-08-01T23:07:02.000Z
tensorflow/contrib/bayesflow/python/ops/hmc_impl.py
M155K4R4/Tensorflow
e5e03ef3148303b3dfed89a1492dedf92b45be25
[ "Apache-2.0" ]
2
2019-09-05T06:43:24.000Z
2019-09-07T07:58:34.000Z
# Copyright 2017 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...
38.838111
83
0.666319
from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import numpy as np from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.python.ops import array_ops from tensorflow.pytho...
true
true
f724923d68de6140d8f4a588c2dc56847fda4dbf
1,235
py
Python
k8s/redis_component.py
wesfloyd/aave-ui-caching-server
714149d66b8718d0610dc84faff2854930f05f3f
[ "BSD-3-Clause" ]
null
null
null
k8s/redis_component.py
wesfloyd/aave-ui-caching-server
714149d66b8718d0610dc84faff2854930f05f3f
[ "BSD-3-Clause" ]
null
null
null
k8s/redis_component.py
wesfloyd/aave-ui-caching-server
714149d66b8718d0610dc84faff2854930f05f3f
[ "BSD-3-Clause" ]
null
null
null
from kdsl.apps.v1 import Deployment, DeploymentSpec from kdsl.core.v1 import Service, ServiceSpec, PodSpec, ObjectMeta, ContainerItem import values name = "redis" labels = dict(component=name) annotations = values.shared_annotations metadata = ObjectMeta( name=name, namespace=values.NAMESPACE, labels=di...
20.583333
81
0.597571
from kdsl.apps.v1 import Deployment, DeploymentSpec from kdsl.core.v1 import Service, ServiceSpec, PodSpec, ObjectMeta, ContainerItem import values name = "redis" labels = dict(component=name) annotations = values.shared_annotations metadata = ObjectMeta( name=name, namespace=values.NAMESPACE, labels=di...
true
true
f72492ac2f5be9bca11a91d75997f67a02504d8f
56,520
py
Python
letsencrypt-apache/letsencrypt_apache/configurator.py
sinesiobittencourt/letsencrypt
0c704fa7f27277c838e13deed85e5c1ecbe46e90
[ "Apache-2.0" ]
1
2015-12-26T22:50:32.000Z
2015-12-26T22:50:32.000Z
letsencrypt-apache/letsencrypt_apache/configurator.py
sinesiobittencourt/letsencrypt
0c704fa7f27277c838e13deed85e5c1ecbe46e90
[ "Apache-2.0" ]
null
null
null
letsencrypt-apache/letsencrypt_apache/configurator.py
sinesiobittencourt/letsencrypt
0c704fa7f27277c838e13deed85e5c1ecbe46e90
[ "Apache-2.0" ]
null
null
null
"""Apache Configuration based off of Augeas Configurator.""" # pylint: disable=too-many-lines import filecmp import logging import os import re import shutil import socket import time import zope.interface from acme import challenges from letsencrypt import errors from letsencrypt import interfaces from letsencrypt ...
38.845361
95
0.608935
import filecmp import logging import os import re import shutil import socket import time import zope.interface from acme import challenges from letsencrypt import errors from letsencrypt import interfaces from letsencrypt import le_util from letsencrypt.plugins import common from letsencrypt_apache import augeas...
true
true
f724930ad6413116333562d13934d7c53d5d2f11
1,084
py
Python
geocode-run.py
kmcurry/story-where
8bb1e9cc73f4f6aefb8edf40137ab55d1ecde3f6
[ "MIT" ]
null
null
null
geocode-run.py
kmcurry/story-where
8bb1e9cc73f4f6aefb8edf40137ab55d1ecde3f6
[ "MIT" ]
25
2020-01-02T23:55:30.000Z
2020-03-15T21:25:16.000Z
geocode-run.py
kmcurry/story-where
8bb1e9cc73f4f6aefb8edf40137ab55d1ecde3f6
[ "MIT" ]
null
null
null
from utils.db import Database from datetime import datetime import hashlib import json import os import requests url = 'https://maps.googleapis.com/maps/api/geocode/json' api_key = os.environ['GOOGLE_MAPS_API_KEY'] params = {'key': api_key, 'address': 'Mountain View, CA'} print("Downloading entities") db = Database()...
26.439024
69
0.685424
from utils.db import Database from datetime import datetime import hashlib import json import os import requests url = 'https://maps.googleapis.com/maps/api/geocode/json' api_key = os.environ['GOOGLE_MAPS_API_KEY'] params = {'key': api_key, 'address': 'Mountain View, CA'} print("Downloading entities") db = Database()...
true
true
f724934d8bc8300e61211e06181ef9feb6293b80
4,506
py
Python
generate.py
djohansson/volk
a6418b5ea289e9130429717654571cf89d603fdc
[ "MIT", "Unlicense" ]
1
2018-12-23T11:04:22.000Z
2018-12-23T11:04:22.000Z
Common_3/ThirdParty/OpenSource/volk/generate.py
cmkandpane/The-Forge
63a3c3038c1b48184b207ebeed5a5548d52648e6
[ "Apache-2.0" ]
null
null
null
Common_3/ThirdParty/OpenSource/volk/generate.py
cmkandpane/The-Forge
63a3c3038c1b48184b207ebeed5a5548d52648e6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 from collections import OrderedDict import sys import urllib import xml.etree.ElementTree as etree import urllib.request def parse_xml(path): file = urllib.request.urlopen(path) if path.startswith("http") else open(path, 'r') with file: tree = etree.parse(file) return tree def patch_file(pat...
29.25974
130
0.640923
from collections import OrderedDict import sys import urllib import xml.etree.ElementTree as etree import urllib.request def parse_xml(path): file = urllib.request.urlopen(path) if path.startswith("http") else open(path, 'r') with file: tree = etree.parse(file) return tree def patch_file(path, blocks): resul...
true
true
f7249360b251c64a2879289eb9c28f008a4fc9e6
8,859
py
Python
packages/dcos-integration-test/extra/test_legacy_user_management.py
wolf31o2/dcos
113b8abacfd6d517594f329b621aaf4641b535e7
[ "Apache-2.0" ]
null
null
null
packages/dcos-integration-test/extra/test_legacy_user_management.py
wolf31o2/dcos
113b8abacfd6d517594f329b621aaf4641b535e7
[ "Apache-2.0" ]
null
null
null
packages/dcos-integration-test/extra/test_legacy_user_management.py
wolf31o2/dcos
113b8abacfd6d517594f329b621aaf4641b535e7
[ "Apache-2.0" ]
null
null
null
""" A collection of tests covering legacy user management in DC/OS. Legacy user management is considered to be the user management API offered by `dcos-oauth` up to DC/OS release 1.12. Assume that access control is activated in Master Admin Router (could be disabled with `oauth_enabled`) and therefore authenticate in...
36.607438
80
0.703804
import logging import uuid import pytest from dcos_test_utils import dcos_cli from test_helpers import get_expanded_config __maintainer__ = 'jgehrcke' __contact__ = 'security-team@mesosphere.io' log = logging.getLogger(__name__) @pytest.fixture(autouse=True) def skip_in_downstream(): expanded_config = get_...
true
true
f72495af7deabdbbf171c378cd19e6201f5d9763
3,359
py
Python
exercise/substitution_matrix.py
naiaralandeta/programming_naiara_landeta
f90f2d7d00bb84e4bc2b34f02c183fa0373fb97e
[ "MIT" ]
null
null
null
exercise/substitution_matrix.py
naiaralandeta/programming_naiara_landeta
f90f2d7d00bb84e4bc2b34f02c183fa0373fb97e
[ "MIT" ]
null
null
null
exercise/substitution_matrix.py
naiaralandeta/programming_naiara_landeta
f90f2d7d00bb84e4bc2b34f02c183fa0373fb97e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Dec 19 10:16:35 2019 @author: naiara """ # SCORE MATRIX OR SUBSTITUTION MATRIX """ 1 = "ACAGGTGGACCT" 2 = "ACTGGTCGACTC" P(A) = 5/24 P(A, A) = 2/12 P(C, C) = 2/12 P(G, T) = 1 P(C) = 6/24 P(A, C) = 1 P(C, G) = 1...
33.257426
90
0.504019
import math seq1 = "ACAGGTGGACCT" seq2 = "ACTGGTCGACTT" seq = "CTATATGG" seq = "CCGGATCG" def print_matrix(row): var = ""; list_bases = ["A", "C", "G", "T"] for i in range(len(row)): var += list_bases[i] + "\t" for j in row[i]: var += str(j) + "\t" var += "\n" ...
true
true
f72495f95031d45cde0afbf3bc7be5495a179206
798
py
Python
distributed-todos/services/todos/src/tasks/worker.py
cheperuiz/unlearn-python
f5b97090f8f1d014bd9d65ecc0c6232919271bfa
[ "MIT" ]
null
null
null
distributed-todos/services/todos/src/tasks/worker.py
cheperuiz/unlearn-python
f5b97090f8f1d014bd9d65ecc0c6232919271bfa
[ "MIT" ]
2
2021-05-11T00:00:01.000Z
2022-01-22T10:13:26.000Z
distributed-todos/services/todos/src/tasks/worker.py
cheperuiz/unlearn-dev
f5b97090f8f1d014bd9d65ecc0c6232919271bfa
[ "MIT" ]
null
null
null
import yaml from celery import Celery from pymongo import MongoClient from models.todo_dao import MongoDAO from models.todo import TodoSchema from library.utils import replace_env, make_url with open("/config/todos/default_config.yml", "r") as f: config = yaml.load(f, yaml.SafeLoader) replace_env(config) url = m...
30.692308
73
0.784461
import yaml from celery import Celery from pymongo import MongoClient from models.todo_dao import MongoDAO from models.todo import TodoSchema from library.utils import replace_env, make_url with open("/config/todos/default_config.yml", "r") as f: config = yaml.load(f, yaml.SafeLoader) replace_env(config) url = m...
true
true
f7249601a426b85ab408d827623e20f212418c0d
1,180
py
Python
xlsxwriter/test/comparison/test_button06.py
haiyangd/XlsxWriter
81f8c9435b3e03a1458bf9ba314b5d3f7508290f
[ "BSD-2-Clause-FreeBSD" ]
3
2018-02-26T12:31:41.000Z
2020-10-10T14:14:11.000Z
xlsxwriter/test/comparison/test_button06.py
haiyangd/XlsxWriter
81f8c9435b3e03a1458bf9ba314b5d3f7508290f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_button06.py
haiyangd/XlsxWriter
81f8c9435b3e03a1458bf9ba314b5d3f7508290f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
26.222222
79
0.54322
true
true
f72497b539e640bb7175711770e3eea6c3d373a3
2,122
py
Python
service/generated_flatbuffers/tflite/SliceOptions.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
213
2021-06-11T01:15:16.000Z
2022-02-25T16:18:57.000Z
service/generated_flatbuffers/tflite/SliceOptions.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
32
2021-06-17T17:58:54.000Z
2022-02-02T05:58:10.000Z
service/generated_flatbuffers/tflite/SliceOptions.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
28
2021-06-17T17:34:21.000Z
2022-03-24T14:05:20.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.068493
114
0.703582
import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class SliceOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAsSliceOptions(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = SliceOptio...
true
true
f72498dcf1db718730a5fc9efce9cd8c757e4531
15,730
py
Python
test/test_source_gdal.py
knowledgevis/large_image
ab5c213d3a68de8a2144707fc0dc1115d1e4664f
[ "Apache-2.0" ]
null
null
null
test/test_source_gdal.py
knowledgevis/large_image
ab5c213d3a68de8a2144707fc0dc1115d1e4664f
[ "Apache-2.0" ]
null
null
null
test/test_source_gdal.py
knowledgevis/large_image
ab5c213d3a68de8a2144707fc0dc1115d1e4664f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import glob import json import numpy import os import PIL.Image import PIL.ImageChops import pytest import six from large_image import constants from large_image.exceptions import TileSourceException import large_image_source_gdal from . import utilities def _assertImageMatches(image, test...
44.6875
94
0.676351
import glob import json import numpy import os import PIL.Image import PIL.ImageChops import pytest import six from large_image import constants from large_image.exceptions import TileSourceException import large_image_source_gdal from . import utilities def _assertImageMatches(image, testRootName, saveTestImage...
true
true
f724993bfb65f691c47509e2ab9bc57c799df3c7
1,799
py
Python
app/models/supply_code.py
uwhvz/uwhvz
72805d0e55740c3d90251dd4b4e40bf5c9e296d1
[ "MIT" ]
2
2019-12-15T06:30:37.000Z
2020-01-26T23:12:27.000Z
app/models/supply_code.py
uwhvz/uwhvz
72805d0e55740c3d90251dd4b4e40bf5c9e296d1
[ "MIT" ]
37
2020-01-22T02:36:32.000Z
2020-10-06T15:05:37.000Z
app/models/supply_code.py
uwhvz/uwhvz
72805d0e55740c3d90251dd4b4e40bf5c9e296d1
[ "MIT" ]
2
2020-06-24T03:07:36.000Z
2020-06-24T03:10:46.000Z
import uuid from datetime import datetime from django.db import models from django.utils import timezone from .game import Game from .player import Player from .util import generate_code class SupplyCodeManager(models.Manager): def create_supply_code(self, game: Game, value: 5, code: None) -> 'SupplyCode': ...
32.709091
99
0.678155
import uuid from datetime import datetime from django.db import models from django.utils import timezone from .game import Game from .player import Player from .util import generate_code class SupplyCodeManager(models.Manager): def create_supply_code(self, game: Game, value: 5, code: None) -> 'SupplyCode': ...
true
true
f724993d2ddc89e333243979253d709c8bed589f
49
py
Python
je_editor/ui/ui_event/text_process/__init__.py
JE-Chen/je_editor
2f18dedb6f0eb27c38668dc53f520739c8d5c6c6
[ "MIT" ]
1
2021-12-10T14:57:15.000Z
2021-12-10T14:57:15.000Z
je_editor/ui/ui_event/text_process/__init__.py
JE-Chen/je_editor
2f18dedb6f0eb27c38668dc53f520739c8d5c6c6
[ "MIT" ]
null
null
null
je_editor/ui/ui_event/text_process/__init__.py
JE-Chen/je_editor
2f18dedb6f0eb27c38668dc53f520739c8d5c6c6
[ "MIT" ]
null
null
null
from je_editor.ui.ui_event.text_process import *
24.5
48
0.836735
from je_editor.ui.ui_event.text_process import *
true
true
f7249959198c554003e2dec70da578ce0dcef41f
5,791
py
Python
GANs/stargan/generate.py
shikisawamura/nnabla-examples
baf4e4cc620dedbf4368683325c0fb868676850d
[ "Apache-2.0" ]
1
2020-08-03T12:49:25.000Z
2020-08-03T12:49:25.000Z
GANs/stargan/generate.py
takuseno/nnabla-examples
070d25078ad3d5458744dbfd390cdd926e20e573
[ "Apache-2.0" ]
null
null
null
GANs/stargan/generate.py
takuseno/nnabla-examples
070d25078ad3d5458744dbfd390cdd926e20e573
[ "Apache-2.0" ]
1
2020-04-25T06:11:28.000Z
2020-04-25T06:11:28.000Z
# Copyright (c) 2019 Sony Corporation. 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 applicabl...
35.746914
128
0.64842
import os import argparse import nnabla as nn from nnabla.ext_utils import get_extension_context import numpy as np import json import glob import model from nnabla.utils.image_utils import imread, imsave, imresize import functools def saveimage(path, img): img = (img * 0.5) + 0.5 imsave(path, ...
true
true
f72499cae7a442091d28cd688401d7778b935183
486
py
Python
tests/test_methods/test_calls.py
jackwardell/SlackTime
c40be4854a26084e1a368a975e220d613c14d8d8
[ "Apache-2.0" ]
2
2020-09-24T00:07:13.000Z
2020-09-27T19:27:06.000Z
tests/test_methods/test_calls.py
jackwardell/SlackTime
c40be4854a26084e1a368a975e220d613c14d8d8
[ "Apache-2.0" ]
null
null
null
tests/test_methods/test_calls.py
jackwardell/SlackTime
c40be4854a26084e1a368a975e220d613c14d8d8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- def test_calls_add(slack_time): assert slack_time.calls.add def test_calls_end(slack_time): assert slack_time.calls.end def test_calls_info(slack_time): assert slack_time.calls.info def test_calls_update(slack_time): assert slack_time.calls.update def test_calls_partici...
18.692308
47
0.781893
def test_calls_add(slack_time): assert slack_time.calls.add def test_calls_end(slack_time): assert slack_time.calls.end def test_calls_info(slack_time): assert slack_time.calls.info def test_calls_update(slack_time): assert slack_time.calls.update def test_calls_participants_add(slack_time): ...
true
true
f7249a82deee9e950217299ff16ff9a37d24226b
407
py
Python
recruiter_portal/urls.py
yhaojin/recruitment_pipeline
860f25185864a1b259d08e88f42aca86f8206a4e
[ "MIT" ]
null
null
null
recruiter_portal/urls.py
yhaojin/recruitment_pipeline
860f25185864a1b259d08e88f42aca86f8206a4e
[ "MIT" ]
null
null
null
recruiter_portal/urls.py
yhaojin/recruitment_pipeline
860f25185864a1b259d08e88f42aca86f8206a4e
[ "MIT" ]
null
null
null
from django.urls import path from .views import RecruiterIndexView, take_on_application_view, SaveTaskChangesView urlpatterns = [ path('', RecruiterIndexView.as_view(), name='recruiter_portal'), path('take_on_application/<application_pk>/', take_on_application_view, name='take_on_application'), path('save...
40.7
104
0.783784
from django.urls import path from .views import RecruiterIndexView, take_on_application_view, SaveTaskChangesView urlpatterns = [ path('', RecruiterIndexView.as_view(), name='recruiter_portal'), path('take_on_application/<application_pk>/', take_on_application_view, name='take_on_application'), path('save...
true
true
f7249ae817449c506e905d847baae94b9a76abf9
1,594
py
Python
numpy/distutils/command/build.py
gmabey/numpy
9e9ec3821c1d6a055543e54336ecb2c98ec42c5f
[ "BSD-3-Clause" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
numpy/distutils/command/build.py
gmabey/numpy
9e9ec3821c1d6a055543e54336ecb2c98ec42c5f
[ "BSD-3-Clause" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
numpy/distutils/command/build.py
gmabey/numpy
9e9ec3821c1d6a055543e54336ecb2c98ec42c5f
[ "BSD-3-Clause" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
from __future__ import division, absolute_import, print_function import os import sys from distutils.command.build import build as old_build from distutils.util import get_platform from numpy.distutils.command.config_compiler import show_fortran_compilers class build(old_build): sub_commands = [('config_cc', ...
33.208333
74
0.604141
from __future__ import division, absolute_import, print_function import os import sys from distutils.command.build import build as old_build from distutils.util import get_platform from numpy.distutils.command.config_compiler import show_fortran_compilers class build(old_build): sub_commands = [('config_cc', ...
true
true
f7249c7b22c9dba1da94e74c57ecbd871341b782
1,824
py
Python
test/functional/signmessages.py
Whiff-dev/WhiffV2.0
e44fffbe9f448e2bd2362cc74057bc541594f58b
[ "MIT" ]
null
null
null
test/functional/signmessages.py
Whiff-dev/WhiffV2.0
e44fffbe9f448e2bd2362cc74057bc541594f58b
[ "MIT" ]
null
null
null
test/functional/signmessages.py
Whiff-dev/WhiffV2.0
e44fffbe9f448e2bd2362cc74057bc541594f58b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Copyright (c) 2017 The Whiff Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test RPC commands for signing and verifying messages.""" fro...
45.6
119
0.736294
from test_framework.test_framework import WhiffTestFramework from test_framework.util import assert_equal class SignMessagesTest(WhiffTestFramework): def set_test_params(self): self.setup_clean_chain = True self.num_nodes = 1 def run_test(self): message = 'This is just a test mes...
true
true
f7249cef52c93864a1af11a36d8ddabcc8314339
201,806
py
Python
cinder/tests/test_hp3par.py
AO-AO/cmss-cinder
d1212908041e431d0fa4d42b40c4459a193484e6
[ "Apache-2.0" ]
null
null
null
cinder/tests/test_hp3par.py
AO-AO/cmss-cinder
d1212908041e431d0fa4d42b40c4459a193484e6
[ "Apache-2.0" ]
null
null
null
cinder/tests/test_hp3par.py
AO-AO/cmss-cinder
d1212908041e431d0fa4d42b40c4459a193484e6
[ "Apache-2.0" ]
null
null
null
# # (c) Copyright 2013 Hewlett-Packard Development Company, L.P. # 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/licens...
41.652425
79
0.539518
import mock import ast from oslo_config import cfg from oslo_log import log as logging from oslo_utils import units from cinder import context from cinder import exception from cinder import test from cinder.tests import fake_hp_3par_client as hp3parclient from cinder.volume.drivers.san.hp import hp_...
true
true
f7249cfe31de6802563053234016e283c91f0986
878
py
Python
tests/conftest.py
lycantropos/bentley_ottmann
988075aada80e5d5c8d53d513de130004b69c3b9
[ "MIT" ]
13
2020-04-03T04:43:44.000Z
2022-01-18T10:40:40.000Z
tests/conftest.py
lycantropos/bentley_ottmann
988075aada80e5d5c8d53d513de130004b69c3b9
[ "MIT" ]
19
2020-01-31T05:25:42.000Z
2021-04-01T13:20:05.000Z
tests/conftest.py
lycantropos/bentley_ottmann
988075aada80e5d5c8d53d513de130004b69c3b9
[ "MIT" ]
3
2020-06-08T11:15:32.000Z
2021-02-15T12:37:01.000Z
import os import platform import pytest from ground.base import (Context, get_context) from hypothesis import (HealthCheck, settings) on_azure_pipelines = bool(os.getenv('TF_BUILD', False)) is_pypy = platform.python_implementation() == 'PyPy' settings.register_profile(...
35.12
77
0.525057
import os import platform import pytest from ground.base import (Context, get_context) from hypothesis import (HealthCheck, settings) on_azure_pipelines = bool(os.getenv('TF_BUILD', False)) is_pypy = platform.python_implementation() == 'PyPy' settings.register_profile(...
true
true
f7249ecb6643e8a4d8abef519c48499b5a5bb0e4
630
py
Python
Django/Video_Project/Day05/SqlToModel/manage.py
pyforspider/LearningLog
ac5988d7fbb0d07d6e7485f9050250af5bcba089
[ "MIT" ]
null
null
null
Django/Video_Project/Day05/SqlToModel/manage.py
pyforspider/LearningLog
ac5988d7fbb0d07d6e7485f9050250af5bcba089
[ "MIT" ]
18
2020-02-12T01:18:12.000Z
2022-03-12T00:42:15.000Z
Django/Video_Project/Day05/SqlToModel/manage.py
pyforspider/LearningLog
ac5988d7fbb0d07d6e7485f9050250af5bcba089
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'SqlToModel.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
28.636364
74
0.684127
import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'SqlToModel.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " ...
true
true
f7249eeef430a62b4cf9cb984568e8dc1fa829d5
1,321
py
Python
diffie_hellman.py
faroos3/crypto_netsec_hw2
72f8e0baf93b555e41426a45149a02004bbe8b04
[ "MIT", "Unlicense" ]
null
null
null
diffie_hellman.py
faroos3/crypto_netsec_hw2
72f8e0baf93b555e41426a45149a02004bbe8b04
[ "MIT", "Unlicense" ]
null
null
null
diffie_hellman.py
faroos3/crypto_netsec_hw2
72f8e0baf93b555e41426a45149a02004bbe8b04
[ "MIT", "Unlicense" ]
null
null
null
''' This is the file that contains the Diffie-Hellman algorithm to establish shared keys between Alice, Bob, and the KDC. It'll just be functions that are going to be used in other files. Using this video to help me out with Diffie-Hellman: https://www.youtube.com/watch?v=Yjrfm_oRO0w g and n are public numbers. g i...
36.694444
157
0.723694
''' This is the file that contains the Diffie-Hellman algorithm to establish shared keys between Alice, Bob, and the KDC. It'll just be functions that are going to be used in other files. Using this video to help me out with Diffie-Hellman: https://www.youtube.com/watch?v=Yjrfm_oRO0w g and n are public numbers. g i...
false
true
f7249f59bdaa349ad040c4306eb1c2ca214840ed
5,504
py
Python
accounts/tests.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
7
2019-09-14T07:24:09.000Z
2021-06-15T16:15:05.000Z
accounts/tests.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
14
2019-12-05T01:49:19.000Z
2021-06-23T18:34:51.000Z
accounts/tests.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
2
2019-11-06T21:16:57.000Z
2019-11-30T10:51:44.000Z
# This file is covered by the BSD license. See LICENSE in the root directory. from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.core import mail from django.test import TestCase from django.urls import reverse from rest_framework import status User = get_user_model...
40.175182
79
0.649891
from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.core import mail from django.test import TestCase from django.urls import reverse from rest_framework import status User = get_user_model() USERNAME = 'testuser' PASSWORD = '28&}>z1-%ZY|0ATwGU+7I!F7pJ:+(E' FIRSTNAM...
true
true
f724a0579c82ae147fc51ad5b6508680a848d799
27,245
py
Python
app/lib/dns/import_manager.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
152
2020-12-07T13:26:53.000Z
2022-03-23T02:00:04.000Z
app/lib/dns/import_manager.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
16
2020-12-07T17:04:36.000Z
2022-03-10T11:12:52.000Z
app/lib/dns/import_manager.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
36
2020-12-09T13:04:40.000Z
2022-03-12T18:14:36.000Z
from app.lib.dns.helpers.shared import SharedHelper import os import datetime import json import progressbar from app import db class DNSImportManager(SharedHelper): IMPORT_TYPE_ZONE = 1 IMPORT_TYPE_RECORD = 2 @property def last_error(self): return self.__last_error @last_error.setter ...
39.89019
390
0.562342
from app.lib.dns.helpers.shared import SharedHelper import os import datetime import json import progressbar from app import db class DNSImportManager(SharedHelper): IMPORT_TYPE_ZONE = 1 IMPORT_TYPE_RECORD = 2 @property def last_error(self): return self.__last_error @last_error.setter ...
true
true
f724a1382e8af5cf9306be07c058f0768f836073
807
py
Python
VetsApp/migrations/0001_initial.py
Sabrinax3/Pet-Clinic-1
776955d118a46c8d4eaa74de22ea0280b82debc9
[ "MIT" ]
2
2020-04-13T14:26:54.000Z
2022-01-19T01:30:25.000Z
VetsApp/migrations/0001_initial.py
Sabrinax3/Pet-Clinic-1
776955d118a46c8d4eaa74de22ea0280b82debc9
[ "MIT" ]
2
2020-05-29T18:52:55.000Z
2020-05-30T02:06:28.000Z
VetsApp/migrations/0001_initial.py
Sabrinax3/Pet-Clinic-1
776955d118a46c8d4eaa74de22ea0280b82debc9
[ "MIT" ]
8
2020-04-11T08:30:44.000Z
2020-05-30T03:26:13.000Z
# Generated by Django 3.0.5 on 2020-04-10 10:01 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Vets', fields=[ ('id', models.AutoField(aut...
29.888889
114
0.570012
from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Vets', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=Fal...
true
true
f724a2c802c8c96a90155f3e5f0760fede5be41e
4,704
py
Python
stanCode_Projects/name_searching_system/babynames.py
calvin0123/sc-projects
88ac98e3543a1399387c2033f36dc5c6b86c488c
[ "MIT" ]
null
null
null
stanCode_Projects/name_searching_system/babynames.py
calvin0123/sc-projects
88ac98e3543a1399387c2033f36dc5c6b86c488c
[ "MIT" ]
null
null
null
stanCode_Projects/name_searching_system/babynames.py
calvin0123/sc-projects
88ac98e3543a1399387c2033f36dc5c6b86c488c
[ "MIT" ]
1
2021-12-04T22:50:23.000Z
2021-12-04T22:50:23.000Z
""" SC101 Baby Names Project Adapted from Nick Parlante's Baby Names assignment by Jerry Liao. ------------------------------------------ File: babynames.py Name: Calvin Chen This file reads the most famous baby names from 1900 to 2010 in the US and stores the .txt into the dictionary to provide the information for the...
29.961783
84
0.624787
import sys def add_data_for_name(name_data, year, rank, name): if name not in name_data: name_data[name] = {} name_data[name][year] = rank else: if year in name_data[name]: if int(name_data[name][year]) < int(rank): return name_data else: ...
true
true
f724a33ad866379ea4c6e3d1a4ecff9dfb612aba
16,136
py
Python
flower/api/tasks.py
jiangrz/flower
4d6fad197e97c9c36f8052345a348345ef4505a3
[ "BSD-3-Clause" ]
null
null
null
flower/api/tasks.py
jiangrz/flower
4d6fad197e97c9c36f8052345a348345ef4505a3
[ "BSD-3-Clause" ]
null
null
null
flower/api/tasks.py
jiangrz/flower
4d6fad197e97c9c36f8052345a348345ef4505a3
[ "BSD-3-Clause" ]
1
2021-04-23T17:34:09.000Z
2021-04-23T17:34:09.000Z
from __future__ import absolute_import import json import logging from datetime import datetime from threading import Thread from tornado import web from tornado import gen from tornado.escape import json_decode from tornado.web import HTTPError from celery import states from celery.result import AsyncResult from c...
26.715232
76
0.622707
from __future__ import absolute_import import json import logging from datetime import datetime from threading import Thread from tornado import web from tornado import gen from tornado.escape import json_decode from tornado.web import HTTPError from celery import states from celery.result import AsyncResult from c...
true
true
f724a3584071ba22c1c4ba5bdfbe1f6a5f6bdc1b
3,428
py
Python
source/draw_ising_ph.py
OminiaVincit/qphase-trans
40e0c078dcd74282e8d8f44690433bf670bff8cb
[ "MIT" ]
null
null
null
source/draw_ising_ph.py
OminiaVincit/qphase-trans
40e0c078dcd74282e8d8f44690433bf670bff8cb
[ "MIT" ]
null
null
null
source/draw_ising_ph.py
OminiaVincit/qphase-trans
40e0c078dcd74282e8d8f44690433bf670bff8cb
[ "MIT" ]
null
null
null
import sys import numpy as np import matplotlib.pyplot as plt import sys import os import time import argparse from visual_utils import generate_listcol import seaborn as sns def calculate_npent(death_scales): sd = np.sum(death_scales) npent = 0 for d in death_scales: dr = d/sd npent -= dr*...
36.860215
154
0.57147
import sys import numpy as np import matplotlib.pyplot as plt import sys import os import time import argparse from visual_utils import generate_listcol import seaborn as sns def calculate_npent(death_scales): sd = np.sum(death_scales) npent = 0 for d in death_scales: dr = d/sd npent -= dr*...
true
true
f724a3bb3cfd2e2c82e1c443ccd2a3266923c550
5,090
py
Python
src/niveristand/clientapi/realtimesequencedefinition.py
arnoldcsorvasi/niveristand-python
39e5593e10bb372c801d6fa521e8fc166dab8cfe
[ "MIT" ]
6
2018-07-04T10:59:43.000Z
2022-03-24T13:34:33.000Z
src/niveristand/clientapi/realtimesequencedefinition.py
arnoldcsorvasi/niveristand-python
39e5593e10bb372c801d6fa521e8fc166dab8cfe
[ "MIT" ]
14
2018-11-05T20:05:33.000Z
2022-03-10T12:54:58.000Z
src/niveristand/clientapi/realtimesequencedefinition.py
arnoldcsorvasi/niveristand-python
39e5593e10bb372c801d6fa521e8fc166dab8cfe
[ "MIT" ]
15
2018-07-04T07:58:49.000Z
2022-02-22T16:35:26.000Z
import os from niveristand import _errormessages, errors from niveristand import _internal from niveristand._translation.py2rtseq.utils import _py_param_name_to_rtseq_param_name from niveristand.clientapi import stimulusprofileapi from niveristand.clientapi._factory import _DefaultGatewayFactory from niveristand.client...
34.863014
115
0.803929
import os from niveristand import _errormessages, errors from niveristand import _internal from niveristand._translation.py2rtseq.utils import _py_param_name_to_rtseq_param_name from niveristand.clientapi import stimulusprofileapi from niveristand.clientapi._factory import _DefaultGatewayFactory from niveristand.client...
true
true
f724a43ca95266c2f6ed70bcb679da48a9313bcc
1,756
py
Python
dargor/colored_tracebacks.py
dargor/dargor-py
54b97ac5aaeadd0535fdc492407015c770a5fd67
[ "0BSD" ]
null
null
null
dargor/colored_tracebacks.py
dargor/dargor-py
54b97ac5aaeadd0535fdc492407015c770a5fd67
[ "0BSD" ]
null
null
null
dargor/colored_tracebacks.py
dargor/dargor-py
54b97ac5aaeadd0535fdc492407015c770a5fd67
[ "0BSD" ]
null
null
null
# # Copyright (c) 2020, Gabriel Linder <linder.gabriel@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS"...
37.361702
79
0.735763
import asyncio import sys import traceback from contextlib import suppress from pygments import highlight from pygments.formatters import Terminal256Formatter from pygments.lexers import Python3TracebackLexer def excepthook(exc_type, exc_value, exc_traceback): tb = ''.join(traceback.format_except...
true
true
f724a4c8c450af916d151c5bf8044ebed35a78ce
5,230
py
Python
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/Openpyxl/openpyxl-2.4.0-a1/openpyxl/writer/worksheet.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
7
2016-12-12T02:29:42.000Z
2020-05-12T21:21:21.000Z
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/Openpyxl/openpyxl-2.4.0-a1/openpyxl/writer/worksheet.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
31
2017-01-05T06:07:28.000Z
2018-05-27T13:13:06.000Z
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/Openpyxl/openpyxl-2.4.0-a1/openpyxl/writer/worksheet.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
3
2017-12-21T23:30:12.000Z
2019-01-03T20:51:52.000Z
from __future__ import absolute_import # Copyright (c) 2010-2016 openpyxl """Write worksheets to xml representations.""" # Python stdlib imports from io import BytesIO from openpyxl import LXML # package imports from openpyxl.xml.functions import ( Element, xmlfile, ) from openpyxl.xml.constants import SHEE...
28.895028
91
0.624092
from __future__ import absolute_import from io import BytesIO from openpyxl import LXML from openpyxl.xml.functions import ( Element, xmlfile, ) from openpyxl.xml.constants import SHEET_MAIN_NS from openpyxl.formatting import ConditionalFormatting from openpyxl.styles.differential import DifferentialStyl...
true
true
f724a5ea1a9b0a0227598c547ffae0a1b2f3abd4
14,218
py
Python
experimental/webserver/common/wsgi.py
manuparra/oc2dm
5459c1fdde909fdd4d59b3ad29d7d5c962b23694
[ "MIT" ]
1
2019-11-27T18:34:12.000Z
2019-11-27T18:34:12.000Z
experimental/webserver/common/wsgi.py
manuparra/oc2dm
5459c1fdde909fdd4d59b3ad29d7d5c962b23694
[ "MIT" ]
null
null
null
experimental/webserver/common/wsgi.py
manuparra/oc2dm
5459c1fdde909fdd4d59b3ad29d7d5c962b23694
[ "MIT" ]
1
2020-04-10T14:44:44.000Z
2020-04-10T14:44:44.000Z
# Copyright 2017 DiCTIS UGR # 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 ap...
38.531165
78
0.602546
from __future__ import print_function import errno import functools import os import signal import sys import eventlet import eventlet.greenio import eventlet.wsgi from eventlet.green import socket from omlcc_catalog.common import config from omlcc_catalog.common import exception wsgi_opts = [ c...
true
true
f724a61cd3bb5219a49f1a660296b229d468a428
2,178
py
Python
A03_Wellst.py
spring-2019-csc-226/a03-master
7be446b28d5aebfc4c4635cc418db0c0c0fadbca
[ "MIT" ]
null
null
null
A03_Wellst.py
spring-2019-csc-226/a03-master
7be446b28d5aebfc4c4635cc418db0c0c0fadbca
[ "MIT" ]
4
2019-02-07T06:26:00.000Z
2019-02-19T00:08:43.000Z
A03_Wellst.py
spring-2019-csc-226/a03-master
7be446b28d5aebfc4c4635cc418db0c0c0fadbca
[ "MIT" ]
1
2019-02-07T02:23:37.000Z
2019-02-07T02:23:37.000Z
####################################################################################################################### # Taran Wells # Wellst # https://docs.google.com/document/d/1RBeOXjYBBjZ507wVeQVIPBrU7gBvTNJi8BYGDvtC53w/edit?usp=sharing ##############################################################################...
21.78
119
0.524334
true
true
f724a823d84a94955722b0212528e735eddb241d
1,343
py
Python
setup.py
GianmarcoFolchi/basketball_reference_scraper
9d286b66bd2856f3fe0ba255552c5b81b2f87148
[ "MIT" ]
null
null
null
setup.py
GianmarcoFolchi/basketball_reference_scraper
9d286b66bd2856f3fe0ba255552c5b81b2f87148
[ "MIT" ]
null
null
null
setup.py
GianmarcoFolchi/basketball_reference_scraper
9d286b66bd2856f3fe0ba255552c5b81b2f87148
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="basketball_reference_scraper", version="1.0.28", author="Vishaal Agartha", author_email="vishaalagartha@gmail.com", license="MIT", description="A Python client for scraping stats and d...
27.979167
88
0.590469
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="basketball_reference_scraper", version="1.0.28", author="Vishaal Agartha", author_email="vishaalagartha@gmail.com", license="MIT", description="A Python client for scraping stats and d...
true
true
f724a831c2437c3daa32567515449cfccc35918a
2,863
py
Python
pairSums.py
ChuckCottrill/hack-rank
91a219668ad682b5b00191ebd9571b0c02e133d7
[ "BSD-2-Clause" ]
null
null
null
pairSums.py
ChuckCottrill/hack-rank
91a219668ad682b5b00191ebd9571b0c02e133d7
[ "BSD-2-Clause" ]
null
null
null
pairSums.py
ChuckCottrill/hack-rank
91a219668ad682b5b00191ebd9571b0c02e133d7
[ "BSD-2-Clause" ]
null
null
null
Pair Sums ''' Pair Sums Given a list of n integers arr[0..(n-1)], determine the number of different pairs of elements within it which sum to k. If an integer appears in the list multiple times, each copy is considered to be different; that is, two pairs are considered different if one pair includes at least one array...
26.027273
243
0.642683
Pair Sums ''' Pair Sums Given a list of n integers arr[0..(n-1)], determine the number of different pairs of elements within it which sum to k. If an integer appears in the list multiple times, each copy is considered to be different; that is, two pairs are considered different if one pair includes at least one array...
false
true
f724a86f608abd7e0fcfb80a41433b1d6e143ea0
3,471
py
Python
setup.py
pbellec/SUITPy
a0450518100d3f5f86423f48d2b7f22c68deebe9
[ "MIT" ]
null
null
null
setup.py
pbellec/SUITPy
a0450518100d3f5f86423f48d2b7f22c68deebe9
[ "MIT" ]
null
null
null
setup.py
pbellec/SUITPy
a0450518100d3f5f86423f48d2b7f22c68deebe9
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ @author: maedbhking based heavily on flexible functionality of nilearn `setup.py` """ descr = """A python package for cerebellar neuroimaging...""" import sys import os from setuptools import setup, find_packages def load_version(): """Executes SUITPy/version.py in a globals dictiona...
34.366337
89
0.63123
descr = """A python package for cerebellar neuroimaging...""" import sys import os from setuptools import setup, find_packages def load_version(): globals_dict = {} with open(os.path.join('SUITPy', 'version.py')) as fp: exec(fp.read(), globals_dict) return globals_dict def is_inst...
true
true
f724a8783ab01ba4bbe2973c39db61d104a5a72d
4,839
py
Python
pydeep/dbn.py
dsakagi/pydeep
e4d14da74d6a6d007a9cd627b5dd81c9f1bfaa72
[ "BSD-2-Clause-FreeBSD" ]
2
2017-09-22T20:28:32.000Z
2020-04-01T23:55:49.000Z
pydeep/dbn.py
dsakagi/pydeep
e4d14da74d6a6d007a9cd627b5dd81c9f1bfaa72
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pydeep/dbn.py
dsakagi/pydeep
e4d14da74d6a6d007a9cd627b5dd81c9f1bfaa72
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import rbm_rm as RBM import Learning_rm as Learning class DBN: def __init__(self, n_in, n_out, hidden_arch, prediction_type, lts=None, net_regs=None, gaussian_input=False, default_lt='Logistic'): self.n_in = n_in self.n_out= n_out # determine the architectures for the autoencoder and the ...
40.325
136
0.613557
import rbm_rm as RBM import Learning_rm as Learning class DBN: def __init__(self, n_in, n_out, hidden_arch, prediction_type, lts=None, net_regs=None, gaussian_input=False, default_lt='Logistic'): self.n_in = n_in self.n_out= n_out if isinstance(hidden_arch, int): ...
false
true
f724a880d570332da47359919de6f56a2a986caf
821
py
Python
deckz/cli/watch.py
m09/deckz
0f97ef2a43c2c714ac18173a4fe3266cccba31e2
[ "Apache-2.0" ]
null
null
null
deckz/cli/watch.py
m09/deckz
0f97ef2a43c2c714ac18173a4fe3266cccba31e2
[ "Apache-2.0" ]
41
2020-04-06T13:49:18.000Z
2020-12-24T11:14:47.000Z
deckz/cli/watch.py
m09/deckz
0f97ef2a43c2c714ac18173a4fe3266cccba31e2
[ "Apache-2.0" ]
null
null
null
from logging import getLogger from pathlib import Path from typing import List, Optional from typer import Argument from deckz.cli import app from deckz.paths import Paths from deckz.watching import watch as watching_watch _logger = getLogger(__name__) @app.command() def watch( targets: Optional[List[str]] = A...
24.878788
59
0.699147
from logging import getLogger from pathlib import Path from typing import List, Optional from typer import Argument from deckz.cli import app from deckz.paths import Paths from deckz.watching import watch as watching_watch _logger = getLogger(__name__) @app.command() def watch( targets: Optional[List[str]] = A...
true
true
f724a8d819de226898e0d3a10a65ce1725cf1a9d
1,629
py
Python
tce/tcloud/cvm/ResetInstancesInternetMaxBandwidth.py
liangzhengkang/tencentcloud-sdk-python
c8f990b33f3701e04149a3d613538829a88269eb
[ "Apache-2.0" ]
null
null
null
tce/tcloud/cvm/ResetInstancesInternetMaxBandwidth.py
liangzhengkang/tencentcloud-sdk-python
c8f990b33f3701e04149a3d613538829a88269eb
[ "Apache-2.0" ]
null
null
null
tce/tcloud/cvm/ResetInstancesInternetMaxBandwidth.py
liangzhengkang/tencentcloud-sdk-python
c8f990b33f3701e04149a3d613538829a88269eb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException # 导入对应产品模块的client models。 from tencentcloud.cvm.v20170312 import cvm_client, models import json # 导入可选配置类 from tencentcloud.common.profile.client_p...
33.9375
108
0.796808
import os from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.cvm.v20170312 import cvm_client, models import json from tencentcloud.common.profile.client_profile import ClientProfile from tencentcloud.common.prof...
true
true
f724a945f1fb6084253128c597e56a1ed312286b
654
py
Python
src/contas/models.py
br-monteiro/learning-django
68f16f17e0b4357d15a5b7e9c9a66da2bccd7a63
[ "MIT" ]
null
null
null
src/contas/models.py
br-monteiro/learning-django
68f16f17e0b4357d15a5b7e9c9a66da2bccd7a63
[ "MIT" ]
null
null
null
src/contas/models.py
br-monteiro/learning-django
68f16f17e0b4357d15a5b7e9c9a66da2bccd7a63
[ "MIT" ]
null
null
null
from django.db import models class Category(models.Model): name = models.CharField(max_length=100) created_at = models.DateTimeField(auto_now_add=True) def __str__(self): return self.name class Meta: verbose_name_plural = 'Categorias' class Transactions(models.Model): date = models.DateField() ...
26.16
64
0.759939
from django.db import models class Category(models.Model): name = models.CharField(max_length=100) created_at = models.DateTimeField(auto_now_add=True) def __str__(self): return self.name class Meta: verbose_name_plural = 'Categorias' class Transactions(models.Model): date = models.DateField() ...
true
true
f724aaa61baa5d75e1ec4a635d7608adf9883661
3,135
py
Python
src/dms-preview/azext_dms/vendored_sdks/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
1
2019-05-10T19:58:09.000Z
2019-05-10T19:58:09.000Z
src/dms-preview/azext_dms/vendored_sdks/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
src/dms-preview/azext_dms/vendored_sdks/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
39.683544
101
0.625199
from .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput class MigrateSqlServerSqlMITaskOutputAgentJobLevel(MigrateSqlServerSqlMITaskOutput): _validation = { 'id': {'readonly': True}, 'result_type': {'required': True}, 'name': {'readonly': True}, ...
true
true
f724ab3e48fa4fed5007bb73f609343695c1c2e7
2,530
py
Python
GPflow/test_gplvm.py
blutooth/dgp
bedbbc3595fbe124d7a06c3d6d64f9009304491e
[ "Apache-2.0" ]
1
2018-09-06T04:42:37.000Z
2018-09-06T04:42:37.000Z
GPflow/test_gplvm.py
blutooth/dgp
bedbbc3595fbe124d7a06c3d6d64f9009304491e
[ "Apache-2.0" ]
null
null
null
GPflow/test_gplvm.py
blutooth/dgp
bedbbc3595fbe124d7a06c3d6d64f9009304491e
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import kernels import numpy as np import unittest import gplvm class TestBayesianGPLVM(unittest.TestCase): def setUp(self): N = 10 # number of data points D = 1 # latent dimensions M = 5 # inducings points R = 2 # data dimension k = ker...
33.733333
146
0.581818
from __future__ import print_function import kernels import numpy as np import unittest import gplvm class TestBayesianGPLVM(unittest.TestCase): def setUp(self): N = 10 D = 1 M = 5 R = 2 k = kernels.RBF(D) Z = np.linspace(0,1,M) Z = np.expand_dims(Z, D) ...
true
true
f724ae22374b14f37ab0977ec53f524308417895
1,422
py
Python
demo/wp_scalogram.py
astromaddie/pywavelets-py3
9d434929cb748eb44be86a4b712d8f3009326693
[ "MIT" ]
1
2018-03-13T10:44:47.000Z
2018-03-13T10:44:47.000Z
demo/wp_scalogram.py
astromaddie/pywavelets-py3
9d434929cb748eb44be86a4b712d8f3009326693
[ "MIT" ]
null
null
null
demo/wp_scalogram.py
astromaddie/pywavelets-py3
9d434929cb748eb44be86a4b712d8f3009326693
[ "MIT" ]
1
2018-03-13T10:44:54.000Z
2018-03-13T10:44:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt import pywt x = np.linspace(0, 1, num=512) data = np.sin(250 * np.pi * x**2) wavelet = 'db2' level = 4 order = "freq" # other option is "normal" interpolation = 'nearest' cmap = plt.cm.cool # Construct wavelet packet...
27.346154
73
0.696203
import numpy as np import matplotlib.pyplot as plt import pywt x = np.linspace(0, 1, num=512) data = np.sin(250 * np.pi * x**2) wavelet = 'db2' level = 4 order = "freq" interpolation = 'nearest' cmap = plt.cm.cool wp = pywt.WaveletPacket(data, wavelet, 'sym', maxlevel=level) nodes = wp.get_level(level, order...
true
true
f724ae68aed162517af1cec117aa39d242e353b8
6,048
py
Python
scripts/init_theano_settings.py
dylanirion/wbia-plugin-cnn
cd0018b829de3f077ca289551492cdad84806ed6
[ "Apache-2.0" ]
null
null
null
scripts/init_theano_settings.py
dylanirion/wbia-plugin-cnn
cd0018b829de3f077ca289551492cdad84806ed6
[ "Apache-2.0" ]
4
2020-07-02T19:25:43.000Z
2020-08-27T18:05:15.000Z
scripts/init_theano_settings.py
dylanirion/wbia-plugin-cnn
cd0018b829de3f077ca289551492cdad84806ed6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ References: http://deeplearning.net/software/theano/library/config.html Check Settings: python -c 'import theano; print theano.config' | less """ from __future__ import absolute_import, division, print_function, unicode_literals import utool as ut import os from os.path import join ...
33.787709
121
0.700562
from __future__ import absolute_import, division, print_function, unicode_literals import utool as ut import os from os.path import join (print, rrr, profile) = ut.inject2(__name__) def init_theanorc(): theanorc_fpath = join(os.getenv('HOME'), '.theanorc') theanorc_text = ut.codeblock( """ ...
true
true
f724aebbd5407f292e974e0c128452257538cb40
3,516
py
Python
bindings/python/ensmallen/datasets/string/desulfotomaculumcopahuensis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/desulfotomaculumcopahuensis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/desulfotomaculumcopahuensis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Desulfotomaculum copahuensis. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--p...
33.485714
223
0.681741
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen import Graph def DesulfotomaculumCopahuensis( directed: bool = False, preprocess: bool = True, load_nodes: bool = True, verbose: int = 2, cache: bool = True, cache_path: str = "grap...
true
true
f724af0aaa79792c4cd22f016025f032f8255a1c
1,504
py
Python
updater/update/ratelimit.py
codl/status.chitter.xyz
ed86a6163306c938a49bdef5dea4928ef7cd09cc
[ "BSD-3-Clause" ]
1
2020-06-02T13:21:59.000Z
2020-06-02T13:21:59.000Z
updater/update/ratelimit.py
codl/status.chitter.xyz
ed86a6163306c938a49bdef5dea4928ef7cd09cc
[ "BSD-3-Clause" ]
678
2018-05-27T21:47:21.000Z
2022-02-03T14:41:28.000Z
updater/update/ratelimit.py
codl/status.chitter.xyz
ed86a6163306c938a49bdef5dea4928ef7cd09cc
[ "BSD-3-Clause" ]
null
null
null
from redis import StrictRedis as Redis from pathlib import Path import hashlib import time lua_script_path = Path(__file__).parent / 'ratelimit.lua' with open(lua_script_path) as f: LUA_SCRIPT = f.read() del lua_script_path # don't want it polluting the module class RateLimit(object): def __init__(self, ...
32.695652
75
0.611037
from redis import StrictRedis as Redis from pathlib import Path import hashlib import time lua_script_path = Path(__file__).parent / 'ratelimit.lua' with open(lua_script_path) as f: LUA_SCRIPT = f.read() del lua_script_path class RateLimit(object): def __init__(self, redis_url='redis://'...
true
true
f724af6e5df81a66575ddc711157d44b2bd75cca
190
py
Python
optimus/version.py
Pcosmin/Optimus
ef3306d1b752bbfb1959ddb9103786acb8e9b9ba
[ "Apache-2.0" ]
1
2020-09-22T13:04:37.000Z
2020-09-22T13:04:37.000Z
optimus/version.py
rafaelang/Optimus
809088f41588c968b2e30210f98a494a497b07ff
[ "Apache-2.0" ]
null
null
null
optimus/version.py
rafaelang/Optimus
809088f41588c968b2e30210f98a494a497b07ff
[ "Apache-2.0" ]
null
null
null
def _safe_int(string): try: return int(string) except ValueError: return string __version__ = '3.0.6' VERSION = tuple(_safe_int(x) for x in __version__.split('.'))
19
61
0.642105
def _safe_int(string): try: return int(string) except ValueError: return string __version__ = '3.0.6' VERSION = tuple(_safe_int(x) for x in __version__.split('.'))
true
true
f724af7352302d77818ce7630117090761337ead
1,853
py
Python
server/plato/test/test_user_model.py
zhlooking/plato
9daf0dfd8b376603453eadf2d981c71d3adb2632
[ "MIT" ]
null
null
null
server/plato/test/test_user_model.py
zhlooking/plato
9daf0dfd8b376603453eadf2d981c71d3adb2632
[ "MIT" ]
null
null
null
server/plato/test/test_user_model.py
zhlooking/plato
9daf0dfd8b376603453eadf2d981c71d3adb2632
[ "MIT" ]
null
null
null
from plato.test.base import BaseTestCase from sqlalchemy.exc import IntegrityError from plato import db from plato.model.user import User from plato.test.utils import add_user class TestUserModel(BaseTestCase): def test_user_model(self): user = add_user('foo', 'foo@bar.com', 'test_pwd') self.asse...
39.425532
68
0.683216
from plato.test.base import BaseTestCase from sqlalchemy.exc import IntegrityError from plato import db from plato.model.user import User from plato.test.utils import add_user class TestUserModel(BaseTestCase): def test_user_model(self): user = add_user('foo', 'foo@bar.com', 'test_pwd') self.asse...
true
true
f724aff84f870ddcfdf9843c043f46bf8a185053
1,034
py
Python
Activities Week 7 (social analytics)/Social_Analytics_Part3/Day3/ChatterBot.py
lraynes/ClassActivities
920df2331f39c8a89477ab73e4393675a299d02d
[ "MIT" ]
null
null
null
Activities Week 7 (social analytics)/Social_Analytics_Part3/Day3/ChatterBot.py
lraynes/ClassActivities
920df2331f39c8a89477ab73e4393675a299d02d
[ "MIT" ]
null
null
null
Activities Week 7 (social analytics)/Social_Analytics_Part3/Day3/ChatterBot.py
lraynes/ClassActivities
920df2331f39c8a89477ab73e4393675a299d02d
[ "MIT" ]
null
null
null
# Dependencies import tweepy import time import json from config import consumer_key, consumer_secret, access_token, access_token_secret # Twitter API Keys consumer_key = consumer_key consumer_secret = consumer_secret access_token = access_token access_token_secret = access_token_secret # Setup Tweepy API Authenticat...
25.85
83
0.766925
import tweepy import time import json from config import consumer_key, consumer_secret, access_token, access_token_secret consumer_key = consumer_key consumer_secret = consumer_secret access_token = access_token access_token_secret = access_token_secret auth = tweepy.OAuthHandler(consumer_key, consumer_secret) aut...
true
true
f724b011af2d3189f97b37e16bda3a9e70054f15
410
py
Python
scripts/wk/cfg/log.py
2Shirt/WizardK
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
[ "MIT" ]
null
null
null
scripts/wk/cfg/log.py
2Shirt/WizardK
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
[ "MIT" ]
178
2017-11-17T19:14:31.000Z
2021-12-15T07:43:29.000Z
scripts/wk/cfg/log.py
2Shirt/WizardK
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
[ "MIT" ]
1
2017-11-17T19:32:36.000Z
2017-11-17T19:32:36.000Z
"""WizardKit: Config - Log""" # vim: sts=2 sw=2 ts=2 DEBUG = { 'level': 'DEBUG', 'format': '[%(asctime)s %(levelname)s] [%(name)s.%(funcName)s] %(message)s', 'datefmt': '%Y-%m-%d %H%M%S%z', } DEFAULT = { 'level': 'INFO', 'format': '[%(asctime)s %(levelname)s] %(message)s', 'datefmt': '%Y-%m-%d %H%M%z', ...
21.578947
78
0.55122
DEBUG = { 'level': 'DEBUG', 'format': '[%(asctime)s %(levelname)s] [%(name)s.%(funcName)s] %(message)s', 'datefmt': '%Y-%m-%d %H%M%S%z', } DEFAULT = { 'level': 'INFO', 'format': '[%(asctime)s %(levelname)s] %(message)s', 'datefmt': '%Y-%m-%d %H%M%z', } if __name__ == '__main__': print("This file ...
true
true
f724b08ac071745f08342d655971d0e5d1d90152
10,921
py
Python
tests/system/test_integration.py
kaiyan-sheng/apm-server
fe1db82a1043508088e5db7c057b84b1e3ce474f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/system/test_integration.py
kaiyan-sheng/apm-server
fe1db82a1043508088e5db7c057b84b1e3ce474f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/system/test_integration.py
kaiyan-sheng/apm-server
fe1db82a1043508088e5db7c057b84b1e3ce474f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import time from apmserver import integration_test from apmserver import ClientSideBaseTest, ElasticTest, ExpvarBaseTest, ProcStartupFailureTest from helper import wait_until from es_helper import index_metric, index_transaction, index_error, index_span, index_onboarding, index_name @integration_test class Test(Elas...
42.996063
108
0.597839
import time from apmserver import integration_test from apmserver import ClientSideBaseTest, ElasticTest, ExpvarBaseTest, ProcStartupFailureTest from helper import wait_until from es_helper import index_metric, index_transaction, index_error, index_span, index_onboarding, index_name @integration_test class Test(Elas...
true
true
f724b0962b84b5c8a44fd19d50552d5624391c1e
1,408
py
Python
bcs-ui/backend/tests/container_service/observability/log_stream/test_utils.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
599
2019-06-25T03:20:46.000Z
2022-03-31T12:14:33.000Z
bcs-ui/backend/tests/container_service/observability/log_stream/test_utils.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
537
2019-06-27T06:03:44.000Z
2022-03-31T12:10:01.000Z
bcs-ui/backend/tests/container_service/observability/log_stream/test_utils.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
214
2019-06-25T03:26:05.000Z
2022-03-31T07:52:03.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
41.411765
115
0.757102
from backend.container_service.observability.log_stream import utils def test_refine_k8s_logs(log_content): logs = utils.refine_k8s_logs(log_content, None) assert len(logs) == 10 assert logs[0].time == '2021-05-19T12:03:52.516011121Z' def test_calc_since_time(log_content): logs = utils.refine_k8s_l...
true
true
f724b0ddd809230cda004541ff8a28dab8b18b75
1,462
py
Python
python/logs/example-logging.py
jgordo04/housinginsights_temp
588e912de31b7f50f7239af0bd4dfeaa693616bd
[ "MIT" ]
null
null
null
python/logs/example-logging.py
jgordo04/housinginsights_temp
588e912de31b7f50f7239af0bd4dfeaa693616bd
[ "MIT" ]
null
null
null
python/logs/example-logging.py
jgordo04/housinginsights_temp
588e912de31b7f50f7239af0bd4dfeaa693616bd
[ "MIT" ]
null
null
null
import logging #Configure logging logging_filename = "../logs/example.log" logging.basicConfig(filename=logging_filename, level=logging.DEBUG) #---------------- # Example logging #---------------- # When you are writing code, instead of using the 'print' statement (which only # is shown on the command line), you can...
44.30303
116
0.725718
import logging logging_filename = "../logs/example.log" logging.basicConfig(filename=logging_filename, level=logging.DEBUG) # They will be recreated next time you start the program. # To see logging in action, run this file and then look in the newly created example.log file # Every time you re-run th...
true
true
f724b12ab738483eea567de9687c75d90ba7a949
788
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLX/NV/multigpu_context.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLX/NV/multigpu_context.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLX/NV/multigpu_context.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''OpenGL extension NV.multigpu_context This module customises the behaviour of the OpenGL.raw.GLX.NV.multigpu_context to provide a more Python-friendly API The official definition of this extension is available here: http://www.opengl.org/registry/specs/NV/multigpu_context.txt ''' from OpenGL import platf...
34.26087
72
0.785533
from OpenGL import platform, constant, arrays from OpenGL import extensions, wrapper import ctypes from OpenGL.raw.GLX import _types, _glgets from OpenGL.raw.GLX.NV.multigpu_context import * from OpenGL.raw.GLX.NV.multigpu_context import _EXTENSION_NAME def glInitMultigpuContextNV(): from OpenGL import ext...
true
true
f724b18933f6ba44d5bf81c468e375a0ec86b207
2,314
py
Python
creategroup.py
vnitinv/JChat
a6fee1b8cb07f8ed4bcda404e0519e0e580646da
[ "Apache-2.0" ]
3
2016-04-20T01:33:32.000Z
2016-07-19T12:24:27.000Z
creategroup.py
vnitinv/JChat
a6fee1b8cb07f8ed4bcda404e0519e0e580646da
[ "Apache-2.0" ]
null
null
null
creategroup.py
vnitinv/JChat
a6fee1b8cb07f8ed4bcda404e0519e0e580646da
[ "Apache-2.0" ]
null
null
null
from PyQt4 import QtCore, QtGui from boxes import ConnectedDevice try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): return s try: _encoding = QtGui.QApplication.UnicodeUTF8 def _translate(context, text, disambig): return QtGui.QApplication.translate(cont...
43.660377
108
0.723423
from PyQt4 import QtCore, QtGui from boxes import ConnectedDevice try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): return s try: _encoding = QtGui.QApplication.UnicodeUTF8 def _translate(context, text, disambig): return QtGui.QApplication.translate(cont...
true
true
f724b33b9c2842b58bfecbe90baa6d08d858641f
201
py
Python
test.py
komireddys/Python_flask
c2e9747064f4b1a4b6d79f729d8ab1ec62e0d706
[ "MIT" ]
null
null
null
test.py
komireddys/Python_flask
c2e9747064f4b1a4b6d79f729d8ab1ec62e0d706
[ "MIT" ]
null
null
null
test.py
komireddys/Python_flask
c2e9747064f4b1a4b6d79f729d8ab1ec62e0d706
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "<h1>Welcome to Python Flask App!</h1> <p1>hello this sample page</p1>" if __name__ == "__main__": app.run()
20.1
82
0.656716
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "<h1>Welcome to Python Flask App!</h1> <p1>hello this sample page</p1>" if __name__ == "__main__": app.run()
true
true
f724b3e43741d780155776413bbee552df6dfdf4
3,183
py
Python
optax/_src/constrain.py
VE-FORBRYDERNE/optax
0d5421240cc7d4bf18fbed44fc5e5e2382a6e884
[ "Apache-2.0" ]
null
null
null
optax/_src/constrain.py
VE-FORBRYDERNE/optax
0d5421240cc7d4bf18fbed44fc5e5e2382a6e884
[ "Apache-2.0" ]
null
null
null
optax/_src/constrain.py
VE-FORBRYDERNE/optax
0d5421240cc7d4bf18fbed44fc5e5e2382a6e884
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 DeepMind Technologies Limited. 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 ...
32.814433
80
0.723217
from typing import Any, NamedTuple import jax import jax.numpy as jnp from optax._src import base NonNegativeParamsState = base.EmptyState def keep_params_nonnegative() -> base.GradientTransformation: def init_fn(_): return NonNegativeParamsState() def update_fn(updates, state, params):...
true
true
f724b40a17c5a178efc2d867f04369de536589ee
98
py
Python
lib/python3.7/copyreg.py
Abhishek5101/Django-REST-API-User-authentication
264ba261826fc11180e6452e92aeb6a52201ff9b
[ "Apache-1.1" ]
1
2020-06-12T21:19:40.000Z
2020-06-12T21:19:40.000Z
Config/lib/python3.7/copyreg.py
ThisGirlSaraCyber/MicroMasters-MITx-DEDP
5ad39fdf0d1516b06eb0385fd48a3cc7435fcd13
[ "MIT" ]
6
2021-03-19T01:55:58.000Z
2021-09-22T18:52:59.000Z
env/lib/python3.7/copyreg.py
OnboardFlow/api-docs
90200e936386b12314a5e0dadb155273bbfd5e12
[ "Apache-2.0" ]
null
null
null
/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/copyreg.py
98
98
0.816327
/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/copyreg.py
false
true
f724b40a71f16bb470b2cc5786eac0d4c6031f53
20,284
py
Python
tests/auth/test_init.py
JariInc/home-assistant
24a8d60566fb5cf62942d042d38965a705d1bc65
[ "Apache-2.0" ]
null
null
null
tests/auth/test_init.py
JariInc/home-assistant
24a8d60566fb5cf62942d042d38965a705d1bc65
[ "Apache-2.0" ]
null
null
null
tests/auth/test_init.py
JariInc/home-assistant
24a8d60566fb5cf62942d042d38965a705d1bc65
[ "Apache-2.0" ]
3
2018-09-14T07:34:09.000Z
2018-09-29T12:57:10.000Z
"""Tests for the Home Assistant auth module.""" from datetime import timedelta from unittest.mock import Mock, patch import pytest from homeassistant import auth, data_entry_flow from homeassistant.auth import ( models as auth_models, auth_store, const as auth_const) from homeassistant.auth.mfa_modules import SES...
31.793103
78
0.622215
from datetime import timedelta from unittest.mock import Mock, patch import pytest from homeassistant import auth, data_entry_flow from homeassistant.auth import ( models as auth_models, auth_store, const as auth_const) from homeassistant.auth.mfa_modules import SESSION_EXPIRATION from homeassistant.util import d...
true
true
f724b4c6733fdd2f61ff3c2a9eaddf0e2852a32c
1,262
py
Python
1200-1300q/1266.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
990
2018-06-05T11:49:22.000Z
2022-03-31T08:59:17.000Z
1200-1300q/1266.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
1
2021-11-01T01:29:38.000Z
2021-11-01T01:29:38.000Z
1200-1300q/1266.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
482
2018-06-12T22:16:53.000Z
2022-03-29T00:23:29.000Z
''' On a plane there are n points with integer coordinates points[i] = [xi, yi]. Your task is to find the minimum time in seconds to visit all points. You can move according to the next rules: In one second always you can either move vertically, horizontally by one unit or diagonally (it means to move one unit vertic...
30.780488
171
0.616482
class Solution(object): def minTimeToVisitAllPoints(self, points): if not points: return 0 result = 0 for index in range(1, len(points)): result += max(abs(points[index][0]-points[index-1][0]), abs(points[index][1]-points[index-1][1])) return result
true
true
f724b5246de70e1ed75d10855245cd87b8034692
2,628
py
Python
app/selenium_ui/jira_ui.py
Unleash/jira-performance-tests
3c84d65cbf70e2db5ea4c1af303d6dab4a218771
[ "Apache-2.0" ]
null
null
null
app/selenium_ui/jira_ui.py
Unleash/jira-performance-tests
3c84d65cbf70e2db5ea4c1af303d6dab4a218771
[ "Apache-2.0" ]
null
null
null
app/selenium_ui/jira_ui.py
Unleash/jira-performance-tests
3c84d65cbf70e2db5ea4c1af303d6dab4a218771
[ "Apache-2.0" ]
null
null
null
from selenium_ui.jira import modules from extension.jira import extension_ui # noqa F401 # this action should be the first one def test_0_selenium_a_login(jira_webdriver, jira_datasets, jira_screen_shots): modules.login(jira_webdriver, jira_datasets) def test_1_selenium_browse_projects_list(jira_webdriver, jir...
38.086957
102
0.847412
from selenium_ui.jira import modules from extension.jira import extension_ui def test_0_selenium_a_login(jira_webdriver, jira_datasets, jira_screen_shots): modules.login(jira_webdriver, jira_datasets) def test_1_selenium_browse_projects_list(jira_webdriver, jira_datasets, jira_screen_shots): modules.brow...
true
true
f724b5fcc381b20213023849c42e3eab574ce8f1
8,163
py
Python
pgoapi/pgoapi.py
tetsunosuke/pgoapi
faeab3668b9efcd4955fe382ef735a9ee31a1784
[ "MIT" ]
1
2019-05-29T06:17:22.000Z
2019-05-29T06:17:22.000Z
pgoapi/pgoapi.py
tetsunosuke/pgoapi
faeab3668b9efcd4955fe382ef735a9ee31a1784
[ "MIT" ]
null
null
null
pgoapi/pgoapi.py
tetsunosuke/pgoapi
faeab3668b9efcd4955fe382ef735a9ee31a1784
[ "MIT" ]
null
null
null
""" pgoapi - Pokemon Go API Copyright (c) 2016 tjado <https://github.com/tejado> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use...
35.185345
156
0.651599
""" pgoapi - Pokemon Go API Copyright (c) 2016 tjado <https://github.com/tejado> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use...
false
true
f724b67a605f31ce4eecd96e689074ae628c81ea
12,486
py
Python
mailchimp3/entities/lists.py
MyMusicTaste/async-python-mailchimp
10a53dc6f1406fa23abca89da142a51e123dd966
[ "MIT" ]
9
2018-05-15T06:49:26.000Z
2020-12-20T13:43:56.000Z
mailchimp3/entities/lists.py
MyMusicTaste/async-python-mailchimp
10a53dc6f1406fa23abca89da142a51e123dd966
[ "MIT" ]
null
null
null
mailchimp3/entities/lists.py
MyMusicTaste/async-python-mailchimp
10a53dc6f1406fa23abca89da142a51e123dd966
[ "MIT" ]
null
null
null
# coding=utf-8 """ The Lists API endpoint Documentation: http://developer.mailchimp.com/documentation/mailchimp/reference/lists/ Schema: https://api.mailchimp.com/schema/3.0/Lists/Instance.json """ from __future__ import unicode_literals from mailchimp3.baseapi import BaseApi from mailchimp3.entities.listabusereports...
44.276596
117
0.614448
from __future__ import unicode_literals from mailchimp3.baseapi import BaseApi from mailchimp3.entities.listabusereports import ListAbuseReports from mailchimp3.entities.listactivity import ListActivity from mailchimp3.entities.listclients import ListClients from mailchimp3.entities.listgrowthhistory import ListGrowt...
true
true
f724b6f57b0beae0774790afba29b953900b5714
58,559
py
Python
pilotnet/viz_gamepy.py
Pronton2001/carla_pilotnet
813ca14e04eccd405fde5fff350fe23c6ada5657
[ "MIT" ]
null
null
null
pilotnet/viz_gamepy.py
Pronton2001/carla_pilotnet
813ca14e04eccd405fde5fff350fe23c6ada5657
[ "MIT" ]
null
null
null
pilotnet/viz_gamepy.py
Pronton2001/carla_pilotnet
813ca14e04eccd405fde5fff350fe23c6ada5657
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # Allows controlling a vehicle with a keyboard. For a simpler and more # docu...
43.409192
146
0.54878
from __future__ import print_function import glob import os import sys try: sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % ( sys.version_info.major, sys.version_info.minor, 'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0]) except IndexError: pa...
true
true
f724b704c5f9a3e24eab2468a1fc1abdf02661db
3,636
py
Python
geist/backends/_x11_common.py
kebarr/Geist
9bda3bc4e11ef06ebf8cb7c2b0ecd666ef40491a
[ "MIT" ]
5
2015-05-01T15:58:48.000Z
2017-04-19T03:38:25.000Z
geist/backends/_x11_common.py
tonysimpson/Geist
a1ef16d8b4c3777735008b671a50acfde3ce7bf1
[ "MIT" ]
1
2016-08-05T17:05:02.000Z
2016-08-05T17:05:02.000Z
geist/backends/_x11_common.py
tonysimpson/Geist
a1ef16d8b4c3777735008b671a50acfde3ce7bf1
[ "MIT" ]
2
2016-09-27T13:45:31.000Z
2017-05-21T14:08:57.000Z
from __future__ import division, absolute_import, print_function from ooxcb.protocol import ( xtest, ) from ooxcb.constant import ( ButtonPress, ButtonRelease, KeyPress, KeyRelease, MotionNotify ) import ooxcb from ooxcb.keysymdef import keysyms import subprocess import os from ._common import ...
28.186047
79
0.59791
from __future__ import division, absolute_import, print_function from ooxcb.protocol import ( xtest, ) from ooxcb.constant import ( ButtonPress, ButtonRelease, KeyPress, KeyRelease, MotionNotify ) import ooxcb from ooxcb.keysymdef import keysyms import subprocess import os from ._common import ...
true
true
f724b7df3714254f6a67ad6934798425f668dd4c
565
bzl
Python
src/test/java/com/google/devtools/build/skydoc/testdata/java_basic_test/input.bzl
ArielleA/bazel
f7be80e47445a1ddf301b1af0dda2f97b5a271ad
[ "Apache-2.0" ]
null
null
null
src/test/java/com/google/devtools/build/skydoc/testdata/java_basic_test/input.bzl
ArielleA/bazel
f7be80e47445a1ddf301b1af0dda2f97b5a271ad
[ "Apache-2.0" ]
null
null
null
src/test/java/com/google/devtools/build/skydoc/testdata/java_basic_test/input.bzl
ArielleA/bazel
f7be80e47445a1ddf301b1af0dda2f97b5a271ad
[ "Apache-2.0" ]
null
null
null
def exercise_the_api(): var1 = java_common.JavaRuntimeInfo var2 = JavaInfo var3 = java_proto_common exercise_the_api() def my_rule_impl(ctx): return struct() java_related_rule = rule( implementation = my_rule_impl, doc = "This rule does java-related things.", attrs = { "first": a...
25.681818
86
0.656637
def exercise_the_api(): var1 = java_common.JavaRuntimeInfo var2 = JavaInfo var3 = java_proto_common exercise_the_api() def my_rule_impl(ctx): return struct() java_related_rule = rule( implementation = my_rule_impl, doc = "This rule does java-related things.", attrs = { "first": a...
true
true
f724b8126766f5f31898fdfe933c66db94b09011
18,759
py
Python
rootfs/usr/lib/python3/dist-packages/numpy/polynomial/tests/test_chebyshev.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3/dist-packages/numpy/polynomial/tests/test_chebyshev.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3/dist-packages/numpy/polynomial/tests/test_chebyshev.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
"""Tests for chebyshev module. """ import numpy as np import numpy.polynomial.chebyshev as ch from numpy.testing import * def trim(x) : return ch.chebtrim(x, tol=1e-6) T0 = [ 1] T1 = [ 0, 1] T2 = [-1, 0, 2] T3 = [ 0, -3, 0, 4] T4 = [ 1, 0, -8, 0, 8] T5 = [ 0, 5, 0, -20, 0, 16] T6 = [-1,...
32.85289
74
0.504824
import numpy as np import numpy.polynomial.chebyshev as ch from numpy.testing import * def trim(x) : return ch.chebtrim(x, tol=1e-6) T0 = [ 1] T1 = [ 0, 1] T2 = [-1, 0, 2] T3 = [ 0, -3, 0, 4] T4 = [ 1, 0, -8, 0, 8] T5 = [ 0, 5, 0, -20, 0, 16] T6 = [-1, 0, 18, 0, -48, 0, 32] T7 ...
true
true
f724b89350fc66e26a9bf5bea0145e663b49d42f
379
py
Python
sandbox/team_members/pudumula/ros/gazebo_ws_1/build/rrbot_gazebo/catkin_generated/pkg.installspace.context.pc.py
Project-Heisenberg/quantum
f3ad8f4693007e45e80a88f928273adcfdc8529d
[ "Apache-2.0" ]
1
2017-04-23T14:23:54.000Z
2017-04-23T14:23:54.000Z
sandbox/team_members/pudumula/ros/gazebo_ws_1/build/rrbot_gazebo/catkin_generated/pkg.installspace.context.pc.py
Project-Heisenberg/quantum
f3ad8f4693007e45e80a88f928273adcfdc8529d
[ "Apache-2.0" ]
13
2016-03-25T05:15:17.000Z
2018-05-30T15:53:12.000Z
sandbox/team_members/pudumula/ros/gazebo_ws_1/build/rrbot_gazebo/catkin_generated/pkg.installspace.context.pc.py
Project-Heisenberg/quantum
f3ad8f4693007e45e80a88f928273adcfdc8529d
[ "Apache-2.0" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "rrbot_gazebo" PROJECT_SPACE_DIR = "/h...
42.111111
68
0.707124
CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "rrbot_gazebo" PROJECT_SPACE_DIR = "/home/neo/ros/gazebo_ws_1/install" PROJECT_VERSION = "0.1....
true
true
f724b89596ee0599327fb7ccded8ba2067f2a7b5
597
py
Python
cashflow/utils.py
wg-git/cashflow-contract
e08b175113e7bdcd0089dd7a0d0432a73a83a724
[ "MIT" ]
1
2018-04-05T13:14:26.000Z
2018-04-05T13:14:26.000Z
cashflow/utils.py
wg-git/cashflow-contract
e08b175113e7bdcd0089dd7a0d0432a73a83a724
[ "MIT" ]
null
null
null
cashflow/utils.py
wg-git/cashflow-contract
e08b175113e7bdcd0089dd7a0d0432a73a83a724
[ "MIT" ]
1
2018-07-23T15:05:05.000Z
2018-07-23T15:05:05.000Z
from boa.blockchain.vm.Neo.Blockchain import GetHeight, GetHeader from boa.blockchain.vm.Neo.Header import GetTimestamp, GetConsensusData from boa.blockchain.vm.Neo.Runtime import Log from boa.code.builtins import concat, list, range, take, substr def blockTimeStamp(): current_height = GetHeight() c...
22.111111
75
0.757119
from boa.blockchain.vm.Neo.Blockchain import GetHeight, GetHeader from boa.blockchain.vm.Neo.Header import GetTimestamp, GetConsensusData from boa.blockchain.vm.Neo.Runtime import Log from boa.code.builtins import concat, list, range, take, substr def blockTimeStamp(): current_height = GetHeight() c...
true
true
f724b8e8834118693a545cb670d7b52bbf2cbbeb
209
py
Python
PyCharm/3.py
LazarevaDarya/work5
77c29c3453e81995f36c176bb74a610313b882e0
[ "MIT" ]
null
null
null
PyCharm/3.py
LazarevaDarya/work5
77c29c3453e81995f36c176bb74a610313b882e0
[ "MIT" ]
null
null
null
PyCharm/3.py
LazarevaDarya/work5
77c29c3453e81995f36c176bb74a610313b882e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if __name__ == '__main__': m = int n = int(input("Value of n? ")) for i in range(1, int(n / 2) + 1): if n % i == 0: print(i)
14.928571
38
0.449761
if __name__ == '__main__': m = int n = int(input("Value of n? ")) for i in range(1, int(n / 2) + 1): if n % i == 0: print(i)
true
true
f724b9955f815b8ade788558ec0d789cd6cf0ddc
15,387
py
Python
tests/automation_framework/src/utilities/submit_request_utility.py
anjalirx-intel/avalon
5efd20612948a324b8a393bfe22872aeb8527097
[ "Apache-2.0" ]
null
null
null
tests/automation_framework/src/utilities/submit_request_utility.py
anjalirx-intel/avalon
5efd20612948a324b8a393bfe22872aeb8527097
[ "Apache-2.0" ]
null
null
null
tests/automation_framework/src/utilities/submit_request_utility.py
anjalirx-intel/avalon
5efd20612948a324b8a393bfe22872aeb8527097
[ "Apache-2.0" ]
null
null
null
import logging import json import time import os import config.config as pconfig import env from avalon_sdk.connector.direct.jrpc.jrpc_worker_registry import \ JRPCWorkerRegistryImpl from avalon_sdk.connector.direct.jrpc.jrpc_work_order import \ JRPCWorkOrderImpl from avalon_sdk.worker.worker_details import \ ...
39.966234
94
0.682394
import logging import json import time import os import config.config as pconfig import env from avalon_sdk.connector.direct.jrpc.jrpc_worker_registry import \ JRPCWorkerRegistryImpl from avalon_sdk.connector.direct.jrpc.jrpc_work_order import \ JRPCWorkOrderImpl from avalon_sdk.worker.worker_details import \ ...
true
true
f724badd51da8585ae02ba905411f8a5bc0b42c6
7,728
py
Python
pandas/tests/indexes/timedeltas/test_timedelta.py
hkennyv/pandas
31875eb3d8a56f359c2f529f86b867572d5dfeb1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2020-04-26T22:11:21.000Z
2020-04-26T22:11:21.000Z
pandas/tests/indexes/timedeltas/test_timedelta.py
hkennyv/pandas
31875eb3d8a56f359c2f529f86b867572d5dfeb1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/indexes/timedeltas/test_timedelta.py
hkennyv/pandas
31875eb3d8a56f359c2f529f86b867572d5dfeb1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2020-06-19T11:52:05.000Z
2020-06-19T11:52:05.000Z
from datetime import timedelta import numpy as np import pytest import pandas as pd from pandas import ( DataFrame, Index, Int64Index, Series, Timedelta, TimedeltaIndex, array, date_range, timedelta_range, ) import pandas._testing as tm from ..datetimelike import DatetimeLike ran...
31.672131
88
0.601708
from datetime import timedelta import numpy as np import pytest import pandas as pd from pandas import ( DataFrame, Index, Int64Index, Series, Timedelta, TimedeltaIndex, array, date_range, timedelta_range, ) import pandas._testing as tm from ..datetimelike import DatetimeLike ran...
true
true
f724bb27bccc8713b9577f3921f30f709db72e74
476
py
Python
week05/server/week06lab2.py
tullowhurler/datarep
38b145d9a49c1b29c02597381de93bbac4a7edae
[ "Apache-2.0" ]
null
null
null
week05/server/week06lab2.py
tullowhurler/datarep
38b145d9a49c1b29c02597381de93bbac4a7edae
[ "Apache-2.0" ]
null
null
null
week05/server/week06lab2.py
tullowhurler/datarep
38b145d9a49c1b29c02597381de93bbac4a7edae
[ "Apache-2.0" ]
null
null
null
import requests import json #html = '<h1>hello world</h1>This is html' f = open("../../week05/carviewer.html", "r") html = f.read() #print (html) apiKey = '46ceed910c24ff7cce8240e89ec7b71912f6f40f2ec55fd217ce150a d6d4f1c4' url = 'https://api.html2pdf.app/v1/generate' data = {'html': html,'apiKey': apiKey}...
28
77
0.707983
import requests import json f = open("../../week05/carviewer.html", "r") html = f.read() apiKey = '46ceed910c24ff7cce8240e89ec7b71912f6f40f2ec55fd217ce150a d6d4f1c4' url = 'https://api.html2pdf.app/v1/generate' data = {'html': html,'apiKey': apiKey} response = requests.post(url, json=data) print (respon...
true
true
f724bb485ff4b58748536534ebf2f5897e7eed1f
2,258
py
Python
azext_iot/__init__.py
YingXue/azure-iot-cli-extension
efe7897b1ae1d2a9953f501abe7654b84d69372d
[ "MIT" ]
79
2017-09-25T19:29:17.000Z
2022-03-30T20:55:57.000Z
azext_iot/__init__.py
YingXue/azure-iot-cli-extension
efe7897b1ae1d2a9953f501abe7654b84d69372d
[ "MIT" ]
305
2018-01-17T01:12:10.000Z
2022-03-23T22:38:11.000Z
azext_iot/__init__.py
YingXue/azure-iot-cli-extension
efe7897b1ae1d2a9953f501abe7654b84d69372d
[ "MIT" ]
69
2017-11-14T00:30:46.000Z
2022-03-01T17:11:45.000Z
# coding=utf-8 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------...
39.614035
94
0.712578
from azure.cli.core import AzCommandsLoader from azure.cli.core.commands import CliCommandType from azext_iot._factory import iot_service_provisioning_factory from azext_iot.constants import VERSION import azext_iot._help from azext_iot.product.command_map import load_product_commands iothub_ops = CliCommandT...
true
true
f724bc1d7c934473af2dfd10b1805761e9c49da5
97
py
Python
Coursera_HSE_Py_Ass-5.4-Stairs.py
YuriRevin/Coursera_HSE_Py_Ass-5.4-Stairs
a6327a94c4b65fc75e3d99475e27464c85df0185
[ "MIT" ]
null
null
null
Coursera_HSE_Py_Ass-5.4-Stairs.py
YuriRevin/Coursera_HSE_Py_Ass-5.4-Stairs
a6327a94c4b65fc75e3d99475e27464c85df0185
[ "MIT" ]
null
null
null
Coursera_HSE_Py_Ass-5.4-Stairs.py
YuriRevin/Coursera_HSE_Py_Ass-5.4-Stairs
a6327a94c4b65fc75e3d99475e27464c85df0185
[ "MIT" ]
null
null
null
for i in range(int(input())): for a in range(1, i + 2): print(a, end='') print()
19.4
29
0.484536
for i in range(int(input())): for a in range(1, i + 2): print(a, end='') print()
true
true
f724bcbe159f2f3f6bd41ab81d7cfc844b8fbfab
10,961
bzl
Python
internal/pkg_npm/pkg_npm.bzl
mr-tim/rules_nodejs
7648412d96828875343b0d9c74ddf4d7531eed72
[ "Apache-2.0" ]
1
2020-10-25T10:29:06.000Z
2020-10-25T10:29:06.000Z
internal/pkg_npm/pkg_npm.bzl
samschlegel/rules_nodejs
21836475c2294476a5a792d5fb0ee3e713f7c6fe
[ "Apache-2.0" ]
8
2021-03-11T00:12:31.000Z
2022-02-27T07:35:43.000Z
internal/pkg_npm/pkg_npm.bzl
samschlegel/rules_nodejs
21836475c2294476a5a792d5fb0ee3e713f7c6fe
[ "Apache-2.0" ]
null
null
null
"""npm packaging Note, this is intended for sharing library code with non-Bazel consumers. If all users of your library code use Bazel, they should just add your library to the `deps` of one of their targets. """ load("//:providers.bzl", "DeclarationInfo", "JSNamedModuleInfo", "LinkablePackageInfo", "NodeContextInfo...
36.055921
136
0.684609
load("//:providers.bzl", "DeclarationInfo", "JSNamedModuleInfo", "LinkablePackageInfo", "NodeContextInfo") _DOC = """The pkg_npm rule creates a directory containing a publishable npm artifact. Example: ```python load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm") pkg_npm( name = "my_package", srcs = [...
true
true
f724bd849c4133d14569f85a315c436a9c3794b3
3,021
py
Python
cosmo_tester/test_suites/cluster/cluster_to_aio_agents_migration_test.py
Ilanad/cloudify-system-tests
acb31f28fade27f118c6a6c528a080376f24ca46
[ "Apache-2.0" ]
10
2016-06-26T11:05:57.000Z
2021-11-04T11:51:50.000Z
cosmo_tester/test_suites/cluster/cluster_to_aio_agents_migration_test.py
Ilanad/cloudify-system-tests
acb31f28fade27f118c6a6c528a080376f24ca46
[ "Apache-2.0" ]
89
2015-03-19T06:20:26.000Z
2022-01-31T09:23:35.000Z
cosmo_tester/test_suites/cluster/cluster_to_aio_agents_migration_test.py
Ilanad/cloudify-system-tests
acb31f28fade27f118c6a6c528a080376f24ca46
[ "Apache-2.0" ]
19
2015-01-21T17:13:07.000Z
2021-06-07T08:09:51.000Z
from os.path import join import pytest from cosmo_tester.test_suites.agent import validate_agent from cosmo_tester.framework.examples import get_example_deployment from cosmo_tester.test_suites.snapshots import ( create_copy_and_restore_snapshot, ) @pytest.mark.four_vms def test_migrate_agents_cluster_to_aio( ...
35.541176
74
0.71996
from os.path import join import pytest from cosmo_tester.test_suites.agent import validate_agent from cosmo_tester.framework.examples import get_example_deployment from cosmo_tester.test_suites.snapshots import ( create_copy_and_restore_snapshot, ) @pytest.mark.four_vms def test_migrate_agents_cluster_to_aio( ...
true
true
f724be57c123ae69e82f64587350fa4ee8ad8e02
44,331
py
Python
python/test/feature_extractor_test.py
da2x/vmaf
8ba4a4b84beb40f97fa01d902e45dde69b18b517
[ "BSD-2-Clause-Patent" ]
null
null
null
python/test/feature_extractor_test.py
da2x/vmaf
8ba4a4b84beb40f97fa01d902e45dde69b18b517
[ "BSD-2-Clause-Patent" ]
null
null
null
python/test/feature_extractor_test.py
da2x/vmaf
8ba4a4b84beb40f97fa01d902e45dde69b18b517
[ "BSD-2-Clause-Patent" ]
null
null
null
from __future__ import absolute_import import os import unittest import re from vmaf.config import VmafConfig from vmaf.core.feature_extractor import VmafFeatureExtractor, \ MomentFeatureExtractor, \ PsnrFeatureExtractor, SsimFeatureExtractor, MsSsimFeatureExtractor, \ VifFrameDifferenceFeatureExtractor, ...
60.561475
182
0.730121
from __future__ import absolute_import import os import unittest import re from vmaf.config import VmafConfig from vmaf.core.feature_extractor import VmafFeatureExtractor, \ MomentFeatureExtractor, \ PsnrFeatureExtractor, SsimFeatureExtractor, MsSsimFeatureExtractor, \ VifFrameDifferenceFeatureExtractor, ...
true
true
f724bec965759ccd317b2b385268f2ab47cb4ab2
1,838
py
Python
scripts/convert_protocols_to_exams.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
scripts/convert_protocols_to_exams.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
1
2022-02-17T20:28:19.000Z
2022-02-17T20:28:19.000Z
scripts/convert_protocols_to_exams.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json from pathlib import Path def get_valid_file_path(file_path: str) -> Path: """Check if file exists and return valid Path object""" path = Path(file_path).resolve() if not path.is_file(): raise Exception("No file found! Please check your path and try again.") ...
31.689655
107
0.654516
import json from pathlib import Path def get_valid_file_path(file_path: str) -> Path: path = Path(file_path).resolve() if not path.is_file(): raise Exception("No file found! Please check your path and try again.") return path def convert_data(data: list) -> list: print(f"Found {len(data)...
true
true
f724bf1ecded89830c078e1879e035935da3e2ed
6,858
py
Python
doc/user-manual/conf.py
phadej/agda
2fa8ede09451d43647f918dbfb24ff7b27c52edc
[ "BSD-3-Clause" ]
null
null
null
doc/user-manual/conf.py
phadej/agda
2fa8ede09451d43647f918dbfb24ff7b27c52edc
[ "BSD-3-Clause" ]
null
null
null
doc/user-manual/conf.py
phadej/agda
2fa8ede09451d43647f918dbfb24ff7b27c52edc
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
31.897674
79
0.681248
project = 'Agda' copyright = u'''2005-2018 remains with the authors. Agda 2 was originally written by Ulf Norell, partially based on code from Agda 1 by Catarina Coquand and Makoto Takeyama, and from Agdalight by Ulf Norell and Andreas Abel. Agda 2 is currently actively developed mainly by Andreas...
true
true