hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79792fdc7d30ee129256527a60ac6884f387bd69
2,153
py
Python
epytope/Data/pssms/tepitopepan/mat/DRB1_0416_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
7
2021-02-01T18:11:28.000Z
2022-01-31T19:14:07.000Z
epytope/Data/pssms/tepitopepan/mat/DRB1_0416_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
22
2021-01-02T15:25:23.000Z
2022-03-14T11:32:53.000Z
epytope/Data/pssms/tepitopepan/mat/DRB1_0416_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
4
2021-05-28T08:50:38.000Z
2022-03-14T11:45:32.000Z
DRB1_0416_9 = {0: {'A': -999.0, 'E': -999.0, 'D': -999.0, 'G': -999.0, 'F': -0.004754, 'I': -0.99525, 'H': -999.0, 'K': -999.0, 'M': -0.99525, 'L': -0.99525, 'N': -999.0, 'Q': -999.0, 'P': -999.0, 'S': -999.0, 'R': -999.0, 'T': -999.0, 'W': -0.004754, 'V': -0.99525, 'Y': -0.004754}, 1: {'A': 0.0, 'E': 0.1, 'D': -1.3, '...
2,153
2,153
0.392476
7979302c33cf23ae024bcbea843aa3e9f9467f00
1,219
py
Python
azflow/render.py
aslotnick/azflow
c8597d381bf786fd05d26c82e2bc6429140ff444
[ "MIT" ]
8
2016-09-13T17:18:06.000Z
2021-03-17T08:10:23.000Z
azflow/render.py
aslotnick/azflow
c8597d381bf786fd05d26c82e2bc6429140ff444
[ "MIT" ]
null
null
null
azflow/render.py
aslotnick/azflow
c8597d381bf786fd05d26c82e2bc6429140ff444
[ "MIT" ]
null
null
null
import argparse from azflow.DAG import DAG def get_dags(filename): """ Open filename and execute its code. Return any DAG instances that were loaded. """ with open(filename) as f: code = f.read() exec(code) dags = [d[1] for d in locals().items() if isinstance(d[1],DAG)] ret...
32.945946
79
0.616079
797930303c02eacefb90f94dad63982b0caa3dd5
9,627
py
Python
cirq-core/cirq/optimizers/merge_interactions.py
LLcat1217/Cirq
b88069f7b01457e592ad69d6b413642ef11a56b8
[ "Apache-2.0" ]
1
2022-02-05T22:17:39.000Z
2022-02-05T22:17:39.000Z
cirq-core/cirq/optimizers/merge_interactions.py
LLcat1217/Cirq
b88069f7b01457e592ad69d6b413642ef11a56b8
[ "Apache-2.0" ]
4
2022-01-16T14:12:15.000Z
2022-02-24T03:58:46.000Z
cirq-core/cirq/optimizers/merge_interactions.py
LLcat1217/Cirq
b88069f7b01457e592ad69d6b413642ef11a56b8
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.465909
100
0.63727
79793035ad98edd3695a78b1acbce8ea8d07b316
1,464
py
Python
imdb_sentiment_analysis.py
jlemanski1/RNN_TextGenerator
695728482ebc7eaf0911fc165153301ef1aa5b4a
[ "MIT", "Unlicense" ]
null
null
null
imdb_sentiment_analysis.py
jlemanski1/RNN_TextGenerator
695728482ebc7eaf0911fc165153301ef1aa5b4a
[ "MIT", "Unlicense" ]
null
null
null
imdb_sentiment_analysis.py
jlemanski1/RNN_TextGenerator
695728482ebc7eaf0911fc165153301ef1aa5b4a
[ "MIT", "Unlicense" ]
null
null
null
import keras from keras.models import Sequential from keras.layers import Embedding, LSTM, Dense from keras.datasets import imdb from keras.preprocessing import sequence VOCAB_SIZE = 5000 # Number of words to load INDEX_FROM = 3 # Start at 3 to account for padding/unknown, & start of sentence MAX_SEQ_LEN = 128 ...
31.826087
101
0.760929
797930850c7a505d4d1e55a6d2269dc0a263fde6
4,885
py
Python
app/views/contexts/hub_context.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
app/views/contexts/hub_context.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
app/views/contexts/hub_context.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
from typing import List, Mapping, Union from flask import url_for from flask_babel import lazy_gettext from app.data_model.progress_store import CompletionStatus from app.views.contexts.context import Context class HubContext(Context): HUB_CONTENT_STATES = { "COMPLETE": { "title": lazy_gett...
34.892857
88
0.566633
797931052e09f62bccd43f064a5bc96d390d4d62
21,107
py
Python
var/spack/repos/builtin/packages/dealii/package.py
alkino/spack
b87ff60c7e23d7b50fac620ad60c8e2537312ebd
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/dealii/package.py
alkino/spack
b87ff60c7e23d7b50fac620ad60c8e2537312ebd
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/dealii/package.py
alkino/spack
b87ff60c7e23d7b50fac620ad60c8e2537312ebd
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-03-06T11:04:37.000Z
2020-03-06T11:04:37.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) from spack import * class Dealii(CMakePackage, CudaPackage): """C++ software library providing well-documented tools...
45.391398
175
0.579713
79793180ada4a024808a5b04342e71d77362b465
1,256
py
Python
tests/terraform/checks/resource/azure/test_SecurityCenterEmailAlert.py
cclauss/checkov
60a385fcaff1499cf00c2d0018575fe5ab71f556
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
tests/terraform/checks/resource/azure/test_SecurityCenterEmailAlert.py
cclauss/checkov
60a385fcaff1499cf00c2d0018575fe5ab71f556
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
tests/terraform/checks/resource/azure/test_SecurityCenterEmailAlert.py
cclauss/checkov
60a385fcaff1499cf00c2d0018575fe5ab71f556
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
import unittest import hcl2 from checkov.terraform.checks.resource.azure.SecurityCenterContactEmailAlert import check from checkov.common.models.enums import CheckResult class TestSecurityCenterEmailAlert(unittest.TestCase): def test_failure(self): hcl_res = hcl2.loads(""" resource "azurerm...
33.945946
92
0.649682
7979319122c24b26099d697d1c8487e5f2591f90
10,900
py
Python
paasta_tools/api/views/instance.py
jackchi/paasta
0899adcef43cb07c247a36f5af82f09bb6f8db12
[ "Apache-2.0" ]
null
null
null
paasta_tools/api/views/instance.py
jackchi/paasta
0899adcef43cb07c247a36f5af82f09bb6f8db12
[ "Apache-2.0" ]
null
null
null
paasta_tools/api/views/instance.py
jackchi/paasta
0899adcef43cb07c247a36f5af82f09bb6f8db12
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2015-2016 Yelp Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
40.82397
119
0.723211
797932049a2302dd653df99043a49f4c811b8a21
770
py
Python
ivy_tests/write_array_api_tests_k_flag.py
sert121/ivy
286f86e487b0c83d46a3ef8d30aa96316337db32
[ "Apache-2.0" ]
null
null
null
ivy_tests/write_array_api_tests_k_flag.py
sert121/ivy
286f86e487b0c83d46a3ef8d30aa96316337db32
[ "Apache-2.0" ]
null
null
null
ivy_tests/write_array_api_tests_k_flag.py
sert121/ivy
286f86e487b0c83d46a3ef8d30aa96316337db32
[ "Apache-2.0" ]
null
null
null
import os this_dir = os.path.dirname(os.path.realpath(__file__)) folder = os.path.join(this_dir, 'array_api_methods_to_test') fnames = os.listdir(folder) fnames.sort() tests_to_run = list() tests_to_skip = list() for fname in fnames: # extract contents fpath = os.path.join(folder, fname) with open(fpath...
29.615385
98
0.638961
797932aa279627b79e36fcb133a2e802ca1c5289
1,450
py
Python
medium/python/c0165_332_reconstruct-itinerary/00_leetcode_0165.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python/c0165_332_reconstruct-itinerary/00_leetcode_0165.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python/c0165_332_reconstruct-itinerary/00_leetcode_0165.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
3
2018-02-09T02:46:48.000Z
2021-02-20T08:32:03.000Z
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #332. Reconstruct Itinerary #Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary ...
51.785714
233
0.688966
797933300c5f5a377fb8c2a6f70a2bc93d68a300
4,952
py
Python
pype/plugins/maya/load/load_reference.py
tokejepsen/pype
8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3
[ "MIT" ]
null
null
null
pype/plugins/maya/load/load_reference.py
tokejepsen/pype
8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3
[ "MIT" ]
null
null
null
pype/plugins/maya/load/load_reference.py
tokejepsen/pype
8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3
[ "MIT" ]
null
null
null
import pype.maya.plugin from avalon import api, maya from maya import cmds import os from pypeapp import config class ReferenceLoader(pype.maya.plugin.ReferenceLoader): """Load the model""" families = ["model", "pointcache", "animation", "mayaAscii", ...
34.873239
78
0.530493
797933a79a3328cc6d7b1458968728a9423bfd37
4,964
py
Python
mitri_van/day_06.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
3
2020-11-16T15:20:11.000Z
2020-12-11T17:01:42.000Z
mitri_van/day_06.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
null
null
null
mitri_van/day_06.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
1
2020-12-13T04:42:44.000Z
2020-12-13T04:42:44.000Z
''' --- Day 6: Custom Customs --- As your flight approaches the regional airport where you'll switch to a much larger plane, customs declaration forms are distributed to the passengers. The form asks a series of 26 yes-or-no questions marked a through z. All you need to do is identify the questions for which any...
32.444444
271
0.682917
79793435625989b71fc5094e45b354c7bbd77218
7,305
py
Python
homeassistant/components/fan/__init__.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
homeassistant/components/fan/__init__.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
homeassistant/components/fan/__init__.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
""" Provides functionality to interact with fans. For more details about this component, please refer to the documentation at https://home-assistant.io/components/fan/ """ import logging import os import voluptuous as vol from homeassistant.components import group from homeassistant.config import load_yaml_config_fi...
29.574899
78
0.65065
79793475215cfc9c3868aaf5062a9a5ce105fef6
5,239
py
Python
pbutils/perl_config_inifiles.py
phonybone/phonybone_utils
d95f226ddfc62a1d69b5ff6f53de86188fe0c8f9
[ "MIT" ]
null
null
null
pbutils/perl_config_inifiles.py
phonybone/phonybone_utils
d95f226ddfc62a1d69b5ff6f53de86188fe0c8f9
[ "MIT" ]
null
null
null
pbutils/perl_config_inifiles.py
phonybone/phonybone_utils
d95f226ddfc62a1d69b5ff6f53de86188fe0c8f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' # Attempt to read a Chomper-style Config::IniFiles file using StringIO and ConfigParser. # see https://stackoverflow.com/questions/2819696/parsing-properties-file-in-python/2819788#2819788 # or not Author: Victor Cassen ''' import sys import os import re import tempf...
29.767045
122
0.578546
797935772d45d240fd0bc6c9cb912f677a264002
1,464
py
Python
azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_sku_description.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure/mgmt/iothub/models/iot_hub_sku_description.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure/mgmt/iothub/models/iot_hub_sku_description.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.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 ...
31.826087
78
0.587432
7979359a3cae45350ea220a2a344b633a11b143a
5,840
py
Python
sdk/peering/azure-mgmt-peering/azure/mgmt/peering/operations/_prefixes_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/peering/azure-mgmt-peering/azure/mgmt/peering/operations/_prefixes_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/peering/azure-mgmt-peering/azure/mgmt/peering/operations/_prefixes_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.479675
206
0.666267
797936903e769bc239b86f0e42ce86936be28236
17,949
py
Python
library/nsxt_compute_collection_transport_templates.py
lcamarda/nsxtlivefire-v2-siteb
7d0dcba24fb57728230f9f04494fad63f8054d10
[ "BSD-2-Clause" ]
6
2020-03-25T16:49:52.000Z
2020-04-11T16:01:35.000Z
library/nsxt_compute_collection_transport_templates.py
khyoon/nsxtlivefire-v2-siteb
1a21367dae2bee66ec96402a89fb82ab3f6f58ea
[ "BSD-2-Clause" ]
3
2020-03-26T19:30:15.000Z
2020-04-16T22:17:24.000Z
library/nsxt_compute_collection_transport_templates.py
khyoon/nsxtlivefire-v2-siteb
1a21367dae2bee66ec96402a89fb82ab3f6f58ea
[ "BSD-2-Clause" ]
3
2019-07-24T02:03:52.000Z
2021-06-15T22:19:51.000Z
#!/usr/bin/env python # # Copyright 2018 VMware, Inc. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL...
57.9
215
0.708173
79793766c364d1a9fc9632b8c7e996e6734e7342
14,749
py
Python
appdaemon/rundash.py
ravensteijn/appdaemon
ded43930579d1f701a990c9e11bb6db14dcafa3e
[ "Apache-2.0" ]
null
null
null
appdaemon/rundash.py
ravensteijn/appdaemon
ded43930579d1f701a990c9e11bb6db14dcafa3e
[ "Apache-2.0" ]
null
null
null
appdaemon/rundash.py
ravensteijn/appdaemon
ded43930579d1f701a990c9e11bb6db14dcafa3e
[ "Apache-2.0" ]
null
null
null
import asyncio import json import os import re import time import traceback import concurrent from urllib.parse import urlparse import aiohttp import feedparser from aiohttp import web import ssl import bcrypt import appdaemon.sockjs import appdaemon.dashboard as dashboard import appdaemon.utils as utils def secured...
34.622066
165
0.55441
797938e2201d9a36560ab5481259aeacb5f69ecc
3,618
py
Python
nova/tests/functional/api_sample_tests/test_cloudpipe.py
whitepages/nova
2adbc897cccb2dbc828d261f9a56257884e7d75c
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_cloudpipe.py
whitepages/nova
2adbc897cccb2dbc828d261f9a56257884e7d75c
[ "Apache-2.0" ]
1
2021-03-21T11:39:52.000Z
2021-03-21T11:39:52.000Z
nova/tests/functional/api_sample_tests/test_cloudpipe.py
isabella232/nova
2adbc897cccb2dbc828d261f9a56257884e7d75c
[ "Apache-2.0" ]
1
2021-03-21T11:37:33.000Z
2021-03-21T11:37:33.000Z
# Copyright 2014 IBM Corp. # # 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 t...
38.903226
78
0.655058
797938ec7725546d0068f6d6fce78aba5cd218ed
6,530
py
Python
rasterio/io.py
ljburtz/rasterio
ce00d482faa24068f41164b79901eeec31777263
[ "BSD-3-Clause" ]
1
2020-09-09T09:56:38.000Z
2020-09-09T09:56:38.000Z
rasterio/io.py
ljburtz/rasterio
ce00d482faa24068f41164b79901eeec31777263
[ "BSD-3-Clause" ]
null
null
null
rasterio/io.py
ljburtz/rasterio
ce00d482faa24068f41164b79901eeec31777263
[ "BSD-3-Clause" ]
null
null
null
"""Classes capable of reading and writing datasets Instances of these classes are called dataset objects. """ import logging from rasterio._base import ( get_dataset_driver, driver_can_create, driver_can_create_copy) from rasterio._io import ( DatasetReaderBase, DatasetWriterBase, BufferedDatasetWriterBase, ...
32.81407
85
0.636753
7979390e946ba9d93e110b40c06fe3002b0385a2
574
py
Python
docs/support/trace_ex_eng_touchstone.py
pmacosta/peng
ab05fac3c0a6c0f8c70ab3e456b5cc57f0484389
[ "MIT" ]
null
null
null
docs/support/trace_ex_eng_touchstone.py
pmacosta/peng
ab05fac3c0a6c0f8c70ab3e456b5cc57f0484389
[ "MIT" ]
1
2019-03-08T15:50:54.000Z
2019-03-08T15:50:54.000Z
docs/support/trace_ex_eng_touchstone.py
pmacosta/peng
ab05fac3c0a6c0f8c70ab3e456b5cc57f0484389
[ "MIT" ]
2
2017-07-04T02:07:20.000Z
2019-02-07T16:05:09.000Z
# trace_ex_eng_touchstone.py # Copyright (c) 2013-2019 Pablo Acosta-Serafini # See LICENSE for details # pylint: disable=C0111,W0212 import docs.support.trace_support def trace_module(no_print=True): """Trace eng touchstone module exceptions.""" mname = "touchstone" fname = "peng" module_prefix = "pe...
26.090909
61
0.719512
79793a710e441c71ee92db1f44be06442d96a1d5
63,858
py
Python
src/python/grpcio/grpc/__init__.py
wangzihust/gRPC
123547c9625c56fdf5cb4ddd1df55ae0c785fa60
[ "Apache-2.0" ]
26
2015-01-20T08:02:38.000Z
2020-06-10T04:57:41.000Z
src/python/grpcio/grpc/__init__.py
wangzihust/gRPC
123547c9625c56fdf5cb4ddd1df55ae0c785fa60
[ "Apache-2.0" ]
4
2016-02-28T05:53:54.000Z
2017-01-03T07:39:50.000Z
src/python/grpcio/grpc/__init__.py
wangzihust/gRPC
123547c9625c56fdf5cb4ddd1df55ae0c785fa60
[ "Apache-2.0" ]
13
2016-02-28T00:14:23.000Z
2021-05-03T15:47:36.000Z
# Copyright 2015-2016 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
37.126744
82
0.660434
79793a8beab954db22b5fa902da534641044630f
631
py
Python
setup.py
gsilvapt/royston
155248cc789837f05b868437c96f537b7f706f52
[ "MIT" ]
3
2020-11-09T09:54:29.000Z
2022-03-31T01:13:36.000Z
setup.py
gsilvapt/royston
155248cc789837f05b868437c96f537b7f706f52
[ "MIT" ]
23
2020-10-20T11:07:46.000Z
2021-11-20T10:12:50.000Z
setup.py
gsilvapt/royston
155248cc789837f05b868437c96f537b7f706f52
[ "MIT" ]
3
2020-10-20T11:38:33.000Z
2021-09-28T15:50:24.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="royston", version="0.0.7", author="Ian Read", author_email="ianharveyread@gmail.com", description="Trending news library", long_description=long_description, long_description_conte...
27.434783
50
0.660856
79793bb0e341e5641047e028eb04c1e75c4cfcbb
9,717
py
Python
AtomStalker/TrajectorySimulator.py
Hamstard/AtomStalker
ed3c02b27fe7ac07cff7f8ae0d2427a98202c0c3
[ "MIT" ]
1
2016-11-21T11:37:30.000Z
2016-11-21T11:37:30.000Z
AtomStalker/TrajectorySimulator.py
Hamstard/AtomStalker
ed3c02b27fe7ac07cff7f8ae0d2427a98202c0c3
[ "MIT" ]
null
null
null
AtomStalker/TrajectorySimulator.py
Hamstard/AtomStalker
ed3c02b27fe7ac07cff7f8ae0d2427a98202c0c3
[ "MIT" ]
null
null
null
import numpy as np from scipy import optimize import matplotlib.pylab as plt import collections, copy, itertools class TrajectorySource(object): """ Class to generate initial trajectories for linkage inference as well as for continued production of trajectories feeding into a "live" linking process...
47.4
331
0.577236
79793bc44033efdbe6636de71448781d502845e1
3,413
py
Python
bax_insertion/plots/bid_bim_fret_nbd_release/plot_example_fret_fits.py
johnbachman/bax_insertion_paper
c9a1f7280998a8c3110f65d604afaa2686cda5c3
[ "BSD-2-Clause" ]
null
null
null
bax_insertion/plots/bid_bim_fret_nbd_release/plot_example_fret_fits.py
johnbachman/bax_insertion_paper
c9a1f7280998a8c3110f65d604afaa2686cda5c3
[ "BSD-2-Clause" ]
null
null
null
bax_insertion/plots/bid_bim_fret_nbd_release/plot_example_fret_fits.py
johnbachman/bax_insertion_paper
c9a1f7280998a8c3110f65d604afaa2686cda5c3
[ "BSD-2-Clause" ]
null
null
null
from bax_insertion.util import set_fig_params_for_publication, format_axis, \ fontsize from bax_insertion.plots.bid_bim_fret_nbd_release.preprocess_data import \ df_pre as df import numpy as np from matplotlib import pyplot as plt import cPickle import bax_insertion.plots.bid_bim_fr...
37.505495
78
0.597715
79793c4cf5656f47193ba07ea804afb6dcf0520f
4,086
py
Python
tests/addons/log2reqs/test_csv.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
tests/addons/log2reqs/test_csv.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
tests/addons/log2reqs/test_csv.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- import pytest from owlmixin.util import load_yaml from jumeaux.addons.log2reqs.csv import Executor from jumeaux.models import Log2ReqsAddOnPayload, HttpMethod CSV = """ "name1","GET","/path1","q1=1&q2=2","header1=1&header2=2" "name2","POST","/path2","q1=1&q2=&q3","header1...
34.336134
100
0.424131
79793d1cc751fdd9d0308cc51c684c09023da828
3,814
py
Python
bert.py
agombert/BERT-NER-TF
d18cad3ce1201a3624bc90136f148892e0804549
[ "Apache-2.0" ]
5
2020-03-30T12:50:56.000Z
2022-01-20T22:45:29.000Z
bert.py
lxgtz28/BERT-NER-TF
194171af39f6da7e81105f6fc83813af7a1da8b6
[ "Apache-2.0" ]
9
2020-11-13T18:41:44.000Z
2022-02-10T01:58:28.000Z
bert.py
lxgtz28/BERT-NER-TF
194171af39f6da7e81105f6fc83813af7a1da8b6
[ "Apache-2.0" ]
1
2020-09-22T19:34:32.000Z
2020-09-22T19:34:32.000Z
"""BERT NER Inference.""" from __future__ import absolute_import, division, print_function import json import os import tensorflow as tf from nltk import word_tokenize from model import BertNer from tokenization import FullTokenizer class Ner: def __init__(self,model_dir: str): self.model , self.toke...
38.525253
117
0.627687
79793e39467ec8a5ea8316267fe626347fca50eb
4,961
py
Python
plan2explore/tools/overshooting.py
sarthak268/plan2explore
264f513d46c6e971d5523782344a694b17139a20
[ "Apache-2.0" ]
189
2020-05-13T01:12:03.000Z
2022-03-23T01:38:56.000Z
plan2explore/tools/overshooting.py
sarthak268/plan2explore
264f513d46c6e971d5523782344a694b17139a20
[ "Apache-2.0" ]
13
2020-05-12T22:51:07.000Z
2022-03-12T00:28:47.000Z
plan2explore/tools/overshooting.py
sarthak268/plan2explore
264f513d46c6e971d5523782344a694b17139a20
[ "Apache-2.0" ]
24
2020-05-14T03:47:50.000Z
2021-09-26T04:20:36.000Z
# Copyright 2019 The Dreamer Authors. Copyright 2020 Plan2Explore 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...
36.748148
95
0.687563
79793f128a20b2c50649a88879826a30d675c9cb
154
py
Python
instance/config.py
Sgalaano/Blog
2e42d2694fc235a58050c89cb615ba7d9be19abb
[ "MIT", "Unlicense" ]
null
null
null
instance/config.py
Sgalaano/Blog
2e42d2694fc235a58050c89cb615ba7d9be19abb
[ "MIT", "Unlicense" ]
null
null
null
instance/config.py
Sgalaano/Blog
2e42d2694fc235a58050c89cb615ba7d9be19abb
[ "MIT", "Unlicense" ]
null
null
null
SECRET_KEY="Galaano1998" MAIL_USERNAME="sgalaano@gmail.com" MAIL_PASSWORD="galaano" DATABASE_URL='postgresql+psycopg2://galaano:galaano@localhost/blog'
22
67
0.824675
79793f32e28460f8437940dcb77e36e8cd164171
28,433
py
Python
collections/nemo_nlp/nemo_nlp/data/datasets/utils.py
ryanleary/NeMo
6ad05b45c46edb5d44366bd0703915075f72b4fc
[ "Apache-2.0" ]
1
2020-03-22T11:23:11.000Z
2020-03-22T11:23:11.000Z
collections/nemo_nlp/nemo_nlp/data/datasets/utils.py
ryanleary/NeMo
6ad05b45c46edb5d44366bd0703915075f72b4fc
[ "Apache-2.0" ]
null
null
null
collections/nemo_nlp/nemo_nlp/data/datasets/utils.py
ryanleary/NeMo
6ad05b45c46edb5d44366bd0703915075f72b4fc
[ "Apache-2.0" ]
null
null
null
from collections import Counter import glob import json import os import random import re import shutil import subprocess import numpy as np from sentencepiece import SentencePieceTrainer as SPT from tqdm import tqdm from nemo.utils.exp_logging import get_logger from ...utils.nlp_utils import (get_vocab, ...
35.675031
79
0.568354
79793f66dac76c4d12920d202958828788dc61f9
8,099
py
Python
azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_vm_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_vm_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_vm_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31: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 ...
51.585987
238
0.686134
7979428210ac6a89943efb5d2b1453f38be6339f
1,368
py
Python
code/tmp_rtrip/test/test_tools/test_sundry.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/test/test_tools/test_sundry.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/test/test_tools/test_sundry.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
"""Tests for scripts in the Tools directory. This file contains extremely basic regression tests for the scripts found in the Tools directory of a Python checkout or tarball which don't have separate tests of their own, such as h2py.py. """ import os import sys import unittest from test import support from test.test_t...
31.090909
77
0.676901
79794288a8320ab154316a189ef8bad6775704d4
663
py
Python
django_mailbox/migrations/0006_mailbox_last_polling.py
neural22/django-mailbox
4e5d05c80479530629ca15a6048448a302603bdd
[ "MIT" ]
1
2021-04-26T00:51:10.000Z
2021-04-26T00:51:10.000Z
django_mailbox/migrations/0006_mailbox_last_polling.py
tiagocapelli/django-mailbox
f9b0a27e5ff6a17ba1107676d6b75e063585688f
[ "MIT" ]
null
null
null
django_mailbox/migrations/0006_mailbox_last_polling.py
tiagocapelli/django-mailbox
f9b0a27e5ff6a17ba1107676d6b75e063585688f
[ "MIT" ]
1
2021-07-08T10:45:04.000Z
2021-07-08T10:45:04.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-08-15 22:39 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('django_mailbox', '0005_auto_20160523_2240'), ] operations = [ migrations.Add...
31.571429
251
0.677225
797943441d42c2229a30cc9f9a188edce34c4101
31,788
py
Python
airflow/models/dagrun.py
zhzhang/airflow
eebfeec4fa798b728141dfdeb4cf70970c71067f
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-07-30T16:25:53.000Z
2021-08-03T13:52:45.000Z
airflow/models/dagrun.py
zhzhang/airflow
eebfeec4fa798b728141dfdeb4cf70970c71067f
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/models/dagrun.py
zhzhang/airflow
eebfeec4fa798b728141dfdeb4cf70970c71067f
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
39.735
110
0.617057
797943ce8d473302af36dfcd2196fe731d07d525
6,161
py
Python
mnist01.py
markvdw/convgp
543d1fb4f6149f3d18c2eb738df041bafd0d0146
[ "Apache-2.0" ]
99
2017-09-07T04:41:28.000Z
2021-12-01T10:31:55.000Z
mnist01.py
markvdw/convgp
543d1fb4f6149f3d18c2eb738df041bafd0d0146
[ "Apache-2.0" ]
5
2018-01-31T06:55:42.000Z
2021-04-19T07:54:53.000Z
mnist01.py
markvdw/convgp
543d1fb4f6149f3d18c2eb738df041bafd0d0146
[ "Apache-2.0" ]
25
2017-09-07T11:16:16.000Z
2021-10-11T18:41:44.000Z
""" vanilla-mnist.py Run the convolutional GP on MNIST, using the standard multi-label classification output. """ import argparse import itertools import os import numpy as np import pandas as pd import GPflow import exp_tools import opt_tools import convgp.convkernels as ckern class Mnist01Experiment(exp_tools.Mni...
48.132813
115
0.594384
797943d82ce42f9272389b132d9cb187b22948ad
2,755
py
Python
web/urls.py
CaicaiNo/atxserver2
f24f90fae7e1a0ec162ea2fee255a2261cd3965f
[ "MIT" ]
1
2021-08-06T08:44:38.000Z
2021-08-06T08:44:38.000Z
web/urls.py
CaicaiNo/atxserver2
f24f90fae7e1a0ec162ea2fee255a2261cd3965f
[ "MIT" ]
null
null
null
web/urls.py
CaicaiNo/atxserver2
f24f90fae7e1a0ec162ea2fee255a2261cd3965f
[ "MIT" ]
1
2021-09-03T08:26:59.000Z
2021-09-03T08:26:59.000Z
# coding: utf-8 # import os from .views import LogoutHandler, MainHandler from .views.base import make_redirect_handler from .views.device import (AndroidDeviceControlHandler, APIDeviceHandler, APIDeviceListHandler, APIDevicePropertiesHandler, APIUserDeviceActiveH...
45.916667
95
0.669328
79794663b946b99b167e0f9f093c9146a3b8fbde
7,028
py
Python
test/database/testFirestoreAccessor.py
AutoDash/AutoDash
3924795a04159f80ea3b65b2172747babd15f35f
[ "Apache-2.0" ]
3
2020-02-12T01:24:46.000Z
2020-02-13T00:50:46.000Z
test/database/testFirestoreAccessor.py
AutoDash/AutoDash
3924795a04159f80ea3b65b2172747babd15f35f
[ "Apache-2.0" ]
32
2020-02-20T10:20:56.000Z
2022-02-10T01:42:46.000Z
test/database/testFirestoreAccessor.py
AutoDash/AutoDash
3924795a04159f80ea3b65b2172747babd15f35f
[ "Apache-2.0" ]
1
2020-02-22T02:47:19.000Z
2020-02-22T02:47:19.000Z
import pytest import firebase_admin from firebase_admin import credentials, firestore from unittest.mock import MagicMock, ANY from src.database.FirestoreAccessor import FirestoreAccessor, QueryFilter from src.database.iDatabase import NotExistingException from ..test_helper import sample_mdi_dict, sample_mdi from src....
31.657658
101
0.704041
797946ef7127e5108f3f0e67f6df065cf7615257
966
py
Python
E_business_project/apps/E_business_project_admin/serializers/spu.py
ambushonallsides1/E_business_project
bf386391e58e0e82787ddc07fc678937e345a4cb
[ "MIT" ]
1
2020-02-05T14:00:19.000Z
2020-02-05T14:00:19.000Z
E_business_project/apps/E_business_project_admin/serializers/spu.py
ambushonallsides1/E_business_project
bf386391e58e0e82787ddc07fc678937e345a4cb
[ "MIT" ]
6
2020-05-11T20:34:17.000Z
2021-11-02T15:46:41.000Z
E_business_project/apps/E_business_project_admin/serializers/spu.py
ambushonallsides1/E_business_project
bf386391e58e0e82787ddc07fc678937e345a4cb
[ "MIT" ]
null
null
null
from rest_framework import serializers from apps.goods.models import SPU, Brand, GoodsCategory class SPUSerializer(serializers.ModelSerializer): brand = serializers.StringRelatedField(read_only=True) brand_id = serializers.IntegerField() category1_id = serializers.IntegerField() category2_id = seri...
25.421053
62
0.708075
79794767226a3862dd0b2204a9dad11e7f0b7897
26,423
py
Python
autotest/test_gwt_prudic2004t2fmiats.py
kzeiler/modflow6
a185d95b91985e965f8a04ae353305dff19b9637
[ "CC0-1.0" ]
null
null
null
autotest/test_gwt_prudic2004t2fmiats.py
kzeiler/modflow6
a185d95b91985e965f8a04ae353305dff19b9637
[ "CC0-1.0" ]
null
null
null
autotest/test_gwt_prudic2004t2fmiats.py
kzeiler/modflow6
a185d95b91985e965f8a04ae353305dff19b9637
[ "CC0-1.0" ]
null
null
null
# tests ats on the prudic transport model. With these ATS settings, the # solver should fail on time step 19 in period 2, and should converge on the # second try with a smaller time step. This test will not pass if the states # are not restored properly for the advanced transport packages when the # failure occurs. ...
29.326304
79
0.505734
797947c6a0be0e781379a2447875025d82e015b2
1,500
py
Python
examples/multi_label_classification_gpu/download_data.py
apmoore1/HEC
d525dd8e8a67e8a533ce862807efd5aff8ae6564
[ "Apache-2.0" ]
6
2020-11-19T09:33:07.000Z
2021-09-18T15:24:42.000Z
examples/multi_label_classification_gpu/download_data.py
apmoore1/HEC
d525dd8e8a67e8a533ce862807efd5aff8ae6564
[ "Apache-2.0" ]
1
2021-02-11T11:24:29.000Z
2021-02-11T11:24:29.000Z
examples/multi_label_classification_gpu/download_data.py
apmoore1/HEC
d525dd8e8a67e8a533ce862807efd5aff8ae6564
[ "Apache-2.0" ]
2
2021-07-24T22:06:58.000Z
2021-11-25T16:40:04.000Z
import argparse from pathlib import Path import requests def full_path(argument: str) -> Path: return Path(argument).resolve() if __name__ == '__main__': _help = ('Downloads the GoEmotions dataset. This downloads the ' 'dataset that was used to train the model to the given directory.' ...
35.714286
79
0.636
797948a4a3a805e2c938107be21abada657b69e8
283
py
Python
aws/s3listbuckets.py
rajeevrn/vtscripts
9b3069f9bcca1b251da3064770010354f2d9a80c
[ "MIT" ]
null
null
null
aws/s3listbuckets.py
rajeevrn/vtscripts
9b3069f9bcca1b251da3064770010354f2d9a80c
[ "MIT" ]
null
null
null
aws/s3listbuckets.py
rajeevrn/vtscripts
9b3069f9bcca1b251da3064770010354f2d9a80c
[ "MIT" ]
2
2016-08-16T09:13:55.000Z
2019-04-04T09:30:39.000Z
#!/usr/bin/env python """ Listing of buckets using boto3 Credential should be configured using aws configure """ import boto3 session = boto3.Session() s3_resource = boto3.resource('s3') for bucket in s3_resource.buckets.all(): print ("List of buckets" +bucket.name)
20.214286
56
0.713781
797948bbceabb9310a3d0934349bcfdb04c162f1
3,795
py
Python
src/2.8/sample/chapter_03/sample_3-2.py
nutti/Introduction-to-Addon-Development-in-Blender-Web
cae839a4ce5fe1caabae67e252912440277d42e8
[ "CC0-1.0" ]
10
2020-02-17T05:50:17.000Z
2022-01-02T14:50:48.000Z
src/2.8/sample/chapter_03/sample_3-2.py
nutti/Introduction-to-Addon-Development-in-Blender-Web
cae839a4ce5fe1caabae67e252912440277d42e8
[ "CC0-1.0" ]
1
2020-03-29T14:32:46.000Z
2020-03-30T08:56:50.000Z
src/2.8/sample/chapter_03/sample_3-2.py
nutti/Introduction-to-Addon-Development-in-Blender-Web
cae839a4ce5fe1caabae67e252912440277d42e8
[ "CC0-1.0" ]
6
2019-05-15T16:59:48.000Z
2020-08-08T17:20:09.000Z
import bpy bl_info = { "name": "サンプル 3-2: 入力したキーを表示するアドオン", "author": "ぬっち(Nutti)", "version": (3, 0), "blender": (2, 80, 0), "location": "3Dビューポート > Sidebar > サンプル 3-2", "description": "入力したキーのテキストオブジェクトを表示するアドオン", "warning": "", "support": "TESTING", "doc_url": "", "tracker_u...
27.70073
84
0.619236
79794a06bbf0a70ec875d378c6bf9973782290f4
6,390
py
Python
safe_rl/pg/network.py
liuzuxin/safety-starter-agents
0e503192897bd01b66300a32ea019e538d30d486
[ "MIT" ]
null
null
null
safe_rl/pg/network.py
liuzuxin/safety-starter-agents
0e503192897bd01b66300a32ea019e538d30d486
[ "MIT" ]
null
null
null
safe_rl/pg/network.py
liuzuxin/safety-starter-agents
0e503192897bd01b66300a32ea019e538d30d486
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from gym.spaces import Box, Discrete from safe_rl.pg.utils import combined_shape, EPS """ Network utils """ def placeholder(dim=None): return tf.placeholder(dtype=tf.float32, shape=combined_shape(None,dim)) def placeholders(*args): return [placeholder(dim) for dim ...
35.10989
104
0.695149
79794aa3bfc160c8f7e7b44c023ea1caeee79d9c
23,535
py
Python
tools.py
bashkirtsevich/pytile
fe0cba7d444eca8d9bf7dc3b17dc7bf385663dc3
[ "MIT" ]
null
null
null
tools.py
bashkirtsevich/pytile
fe0cba7d444eca8d9bf7dc3b17dc7bf385663dc3
[ "MIT" ]
null
null
null
tools.py
bashkirtsevich/pytile
fe0cba7d444eca8d9bf7dc3b17dc7bf385663dc3
[ "MIT" ]
null
null
null
import copy import pygame import world World = world.World() # Pre-compute often used multiples p = 64 p2 = int(p / 2) p4 = int(p / 4) p4x3 = int(p4 * 3) p8 = int(p / 8) p16 = int(p / 16) # tile height difference ph = 8 class MouseSprite(pygame.sprite.Sprite): """Small invisible sprite to use for mouse/sprit...
41.289474
114
0.529892
79794ab217a4f3cf6fe0db7d733b546089c76beb
5,258
py
Python
src/gluonts/model/tft/_transform.py
dataiku/gluon-ts
6e62b685f14b667c2272d60e3558c8d5209750dd
[ "Apache-2.0" ]
null
null
null
src/gluonts/model/tft/_transform.py
dataiku/gluon-ts
6e62b685f14b667c2272d60e3558c8d5209750dd
[ "Apache-2.0" ]
null
null
null
src/gluonts/model/tft/_transform.py
dataiku/gluon-ts
6e62b685f14b667c2272d60e3558c8d5209750dd
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
35.768707
79
0.58178
79794b05568e081e194d9967f0f3d21494676b37
11,506
py
Python
salt/modules/bridge.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
1
2020-03-31T22:51:16.000Z
2020-03-31T22:51:16.000Z
salt/modules/bridge.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
null
null
null
salt/modules/bridge.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
1
2021-09-30T07:00:01.000Z
2021-09-30T07:00:01.000Z
# -*- coding: utf-8 -*- ''' Module for gathering and managing bridging information ''' from __future__ import absolute_import, print_function, unicode_literals import sys import re import salt.utils.path __func_alias__ = { 'list_': 'list' } # Other BSD-like derivatives that use ifconfig may work too SUPPORTED_...
23.386179
102
0.548062
79794be0a843bd613a69c4bf52824a8b76cac3ed
5,408
py
Python
TEST_APPS/icetea_plugins/ip_test_parsers.py
pattyolanterns/mbed-os
f05af9a870580a0a81688e4d8f94cf72ca17a4d6
[ "Apache-2.0" ]
8
2017-01-20T13:14:49.000Z
2020-10-22T01:12:40.000Z
TEST_APPS/icetea_plugins/ip_test_parsers.py
pattyolanterns/mbed-os
f05af9a870580a0a81688e4d8f94cf72ca17a4d6
[ "Apache-2.0" ]
12
2017-12-20T10:12:34.000Z
2018-11-07T21:17:37.000Z
TEST_APPS/icetea_plugins/ip_test_parsers.py
pattyolanterns/mbed-os
f05af9a870580a0a81688e4d8f94cf72ca17a4d6
[ "Apache-2.0" ]
8
2020-01-21T08:44:01.000Z
2020-03-12T04:50:28.000Z
""" Copyright 2018 ARM Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
34.227848
86
0.503143
79794d37de6673cec3514c945e756b841ac9412e
13,906
py
Python
pysnmp/ETS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/ETS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/ETS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ETS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ETS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:52:37 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)...
126.418182
1,541
0.768589
79794d7eb26693c8b643d3020be9e8c5f4fce66e
30,103
py
Python
docker/types/services.py
MaxBischoff/docker-py
d77d4256d7eca17c72af81f636f45ebf1e6c6681
[ "Apache-2.0" ]
null
null
null
docker/types/services.py
MaxBischoff/docker-py
d77d4256d7eca17c72af81f636f45ebf1e6c6681
[ "Apache-2.0" ]
null
null
null
docker/types/services.py
MaxBischoff/docker-py
d77d4256d7eca17c72af81f636f45ebf1e6c6681
[ "Apache-2.0" ]
null
null
null
import six from .. import errors from ..constants import IS_WINDOWS_PLATFORM from ..utils import ( check_resource, format_environment, format_extra_hosts, parse_bytes, split_command, convert_service_networks, ) class TaskTemplate(dict): """ Describe the task specification to be used when creating or ...
39.196615
79
0.59313
79794e36f64f4b87b7a099204c708926d8f41686
2,098
py
Python
src/fetchers/hvdcLineCktOwnersFetcher.py
rohit98077/mis_outages_ingest
1f563962ea8f93ed1825a7e07bde231b67240bcb
[ "MIT" ]
null
null
null
src/fetchers/hvdcLineCktOwnersFetcher.py
rohit98077/mis_outages_ingest
1f563962ea8f93ed1825a7e07bde231b67240bcb
[ "MIT" ]
5
2020-09-19T08:52:48.000Z
2021-06-02T03:29:38.000Z
src/fetchers/hvdcLineCktOwnersFetcher.py
rohit98077/mis_outages_ingest
1f563962ea8f93ed1825a7e07bde231b67240bcb
[ "MIT" ]
2
2020-09-19T08:45:47.000Z
2020-11-07T12:00:24.000Z
from typing import List, Dict import cx_Oracle def getOwnersForHvdcLineCktIds(reportsConnStr: str, ids: List[int]) -> Dict[int, str]: """fetches the owner names for a given list of HvdcLineCkt ids Args: reportsConnStr (str): connection string to reports database ids (List[int]): list of ...
38.145455
115
0.583413
79794ebaab414c7c8f7b81c16222bac57682bcc7
6,593
py
Python
azure-mgmt-cdn/azure/mgmt/cdn/models/endpoint.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt-cdn/azure/mgmt/cdn/models/endpoint.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt-cdn/azure/mgmt/cdn/models/endpoint.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and contributors. 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 ...
49.201493
263
0.688457
79794f7dfe0c803c132715adde03f7e360f83fe8
1,639
py
Python
scripts/tdep_plot_dos.py
flokno/tools.tdep
7f8fd4e50f6c1cb94780133a157c695a40fd80c9
[ "0BSD" ]
4
2021-08-31T12:34:18.000Z
2022-01-27T09:50:51.000Z
scripts/tdep_plot_dos.py
flokno/tools.tdep
7f8fd4e50f6c1cb94780133a157c695a40fd80c9
[ "0BSD" ]
null
null
null
scripts/tdep_plot_dos.py
flokno/tools.tdep
7f8fd4e50f6c1cb94780133a157c695a40fd80c9
[ "0BSD" ]
null
null
null
#! /usr/bin/env python from pathlib import Path import h5py as h5 import matplotlib.pyplot as plt import numpy as np import seaborn as sns import typer sns.set_context("paper", font_scale=1.7) to_invcm = 33.356 def get_canvas(): fig, ax = plt.subplots() return fig, ax app = typer.Typer() @app.command() ...
19.987805
78
0.567419
797951754ced823930b5e1eaa7b915d41d08fec3
1,578
py
Python
homeassistant/components/solarman/__init__.py
kryzon1/home-assistant
d9fe1151d832ba87de830c1851a9fb72a01f769c
[ "Apache-2.0" ]
null
null
null
homeassistant/components/solarman/__init__.py
kryzon1/home-assistant
d9fe1151d832ba87de830c1851a9fb72a01f769c
[ "Apache-2.0" ]
24
2021-07-26T06:14:32.000Z
2022-02-01T08:09:24.000Z
homeassistant/components/solarman/__init__.py
kryzon1/home-assistant
d9fe1151d832ba87de830c1851a9fb72a01f769c
[ "Apache-2.0" ]
null
null
null
"""The SolarMAN Inverter integration.""" import asyncio import voluptuous as vol from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from .const import DOMAIN import ptvsd # 5678 is the default attach port in the VS Code debug configurations # print("Waiting for debugg...
27.684211
80
0.700887
7979518b77c96d11cd84972d9585377adf0c5e93
9,852
py
Python
note/meiduo34/mall/mall/settings.py
gaosong666/taobao
cec3be71376fb94dc38553360253b70e88855594
[ "MIT" ]
null
null
null
note/meiduo34/mall/mall/settings.py
gaosong666/taobao
cec3be71376fb94dc38553360253b70e88855594
[ "MIT" ]
null
null
null
note/meiduo34/mall/mall/settings.py
gaosong666/taobao
cec3be71376fb94dc38553360253b70e88855594
[ "MIT" ]
null
null
null
""" Django settings for mall project. Generated by 'django-admin startproject' using Django 1.11.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os i...
27.366667
127
0.651238
797951975f78daf2017a7c4f9c1df83778a5e050
9,604
py
Python
examples/engine/nlp/mrpc/bert_base_sparse/utils.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
172
2021-09-14T18:34:17.000Z
2022-03-30T06:49:53.000Z
examples/engine/nlp/mrpc/bert_base_sparse/utils.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
40
2021-09-14T02:26:12.000Z
2022-03-29T08:34:04.000Z
examples/engine/nlp/mrpc/bert_base_sparse/utils.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
33
2021-09-15T07:27:25.000Z
2022-03-25T08:30:57.000Z
# coding=utf-8 # Copyright (c) 2019 NVIDIA CORPORATION. All rights reserved. # Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy o...
36.241509
82
0.644211
797951df81e976ddc70ef4996d2f34481409dc7b
25,798
py
Python
ism_correction.py
agsreejith/ISM-correction
1299efce4430e808daf69ee3b1193c7172deed73
[ "Apache-2.0" ]
null
null
null
ism_correction.py
agsreejith/ISM-correction
1299efce4430e808daf69ee3b1193c7172deed73
[ "Apache-2.0" ]
null
null
null
ism_correction.py
agsreejith/ISM-correction
1299efce4430e808daf69ee3b1193c7172deed73
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # pip install idlsave # pip install plotly #from IPython import embed import sys import idlsave import numpy as np import matplotlib.pyplot as plt import astropy.modeling.functional_models as am import astropy.constants as ac from scipy.ndimage import convolve1d #import voigt i...
35.930362
106
0.539693
79795239c02aebd44059314f17516324504ea078
390
py
Python
lists_basics/exercise/number_beggars.py
PetkoAndreev/Python-fundamentals
dcf2ecb65d7a82a6688a7529a14eb8a331a83256
[ "MIT" ]
null
null
null
lists_basics/exercise/number_beggars.py
PetkoAndreev/Python-fundamentals
dcf2ecb65d7a82a6688a7529a14eb8a331a83256
[ "MIT" ]
null
null
null
lists_basics/exercise/number_beggars.py
PetkoAndreev/Python-fundamentals
dcf2ecb65d7a82a6688a7529a14eb8a331a83256
[ "MIT" ]
null
null
null
nums_data = input().split(', ') beggars = int(input()) beggars_data = [] for beggar in range(beggars): beggars_data.append(0) beggar = 0 while len(nums_data) > 0: nums_data[0] = int(nums_data[0]) if beggar < len(beggars_data): beggars_data[beggar] += nums_data[0] else: beggar = 0 ...
19.5
44
0.623077
797952d1c20fa4af79e42ebf89f59f5e15a6a478
316
py
Python
config/api_router.py
dmontoya1/time-logging
4c9f04497868199a05ec694d35f1c79af548ec13
[ "MIT" ]
null
null
null
config/api_router.py
dmontoya1/time-logging
4c9f04497868199a05ec694d35f1c79af548ec13
[ "MIT" ]
null
null
null
config/api_router.py
dmontoya1/time-logging
4c9f04497868199a05ec694d35f1c79af548ec13
[ "MIT" ]
null
null
null
from django.conf import settings from rest_framework.routers import DefaultRouter, SimpleRouter from time_logger.users.api.views import UserViewSet if settings.DEBUG: router = DefaultRouter() else: router = SimpleRouter() router.register("users", UserViewSet) app_name = "api" urlpatterns = router.urls
19.75
62
0.781646
797952d31a7c3fce4eaa0fd30c183693264d1f53
2,922
py
Python
vietTTS/tacotron/text2mel.py
marcohatran/vietTTS
a30fa92e777c2627c1598e23931adb93dccccf78
[ "MIT" ]
null
null
null
vietTTS/tacotron/text2mel.py
marcohatran/vietTTS
a30fa92e777c2627c1598e23931adb93dccccf78
[ "MIT" ]
null
null
null
vietTTS/tacotron/text2mel.py
marcohatran/vietTTS
a30fa92e777c2627c1598e23931adb93dccccf78
[ "MIT" ]
null
null
null
import pickle import jax import jax.numpy as jnp from numpy import ndarray from .config import * from .model import * def encode_text(text): out = [] for c in text: if c in FLAGS._alphabet: out.append(FLAGS._alphabet.index(c)) return out @hk.transform_with_state def generate_mel(text, reduce_facto...
31.085106
110
0.643053
797952e925da1d544a0dd3e9d46c458d03d96632
7,909
py
Python
swc/sam_simulation_cli.py
pesap/swc
7ded1cda44489a82415f507bf407e9a8454c0ae5
[ "MIT" ]
1
2021-07-27T00:57:02.000Z
2021-07-27T00:57:02.000Z
swc/sam_simulation_cli.py
pesap/swc
7ded1cda44489a82415f507bf407e9a8454c0ae5
[ "MIT" ]
5
2018-08-06T23:51:03.000Z
2020-07-09T03:02:12.000Z
swc/sam_simulation_cli.py
pesap/swc
7ded1cda44489a82415f507bf407e9a8454c0ae5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Solar database Example: Example of usage goes here Attributes: module_level_variabless: None for the moment Todo: * Implement multiple inputs and outputs for LCOE. * Clean code """ import sys import numpy as np import pandas as pd import click from pathlib import Path impo...
38.024038
159
0.614111
7979533ad1db7e51784a5f0b15207910dfa02053
8,464
py
Python
seahub/institutions/views.py
DMKun/seahub
072637de5babfa3c9ffc4fdd4d69f1c44026506d
[ "Apache-2.0" ]
null
null
null
seahub/institutions/views.py
DMKun/seahub
072637de5babfa3c9ffc4fdd4d69f1c44026506d
[ "Apache-2.0" ]
null
null
null
seahub/institutions/views.py
DMKun/seahub
072637de5babfa3c9ffc4fdd4d69f1c44026506d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012-2016 Seafile Ltd. import json import logging from django.core.urlresolvers import reverse from django.contrib import messages from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render from django.utils.translation import ugettext as _ import seaserv from sease...
32.429119
109
0.651111
797953f7c4a5765968ae216733e07c7094ec01b3
3,914
py
Python
pyspider/database/couchdb/couchdbbase.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
1
2020-04-23T02:11:26.000Z
2020-04-23T02:11:26.000Z
pyspider/database/couchdb/couchdbbase.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
1
2021-03-31T20:02:11.000Z
2021-03-31T20:02:11.000Z
pyspider/database/couchdb/couchdbbase.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
1
2021-02-02T00:23:16.000Z
2021-02-02T00:23:16.000Z
import time, requests, json from requests.auth import HTTPBasicAuth class SplitTableMixin(object): UPDATE_PROJECTS_TIME = 10 * 60 def _collection_name(self, project): if self.collection_prefix: return "%s_%s" % (self.collection_prefix, project) else: return project ...
36.240741
155
0.547011
797954e6f88c60390e08dafeb2d43d5238ced4c0
12,197
py
Python
improver/utilities/solar.py
LaurenceBeard/improver
b7cfe44f3a802d2a3d65f76a325215033c9de074
[ "BSD-3-Clause" ]
null
null
null
improver/utilities/solar.py
LaurenceBeard/improver
b7cfe44f3a802d2a3d65f76a325215033c9de074
[ "BSD-3-Clause" ]
2
2020-03-30T17:25:18.000Z
2021-06-25T15:30:29.000Z
improver/utilities/solar.py
LaurenceBeard/improver
b7cfe44f3a802d2a3d65f76a325215033c9de074
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2019 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
39.345161
79
0.62417
797954f66acfd5794fca4dc9e371d41d2d4364c1
1,758
py
Python
main.py
bjorgan/qso_web_view
5b7c662eaef5735a3a9c19f1e7c2723941a75f43
[ "MIT" ]
null
null
null
main.py
bjorgan/qso_web_view
5b7c662eaef5735a3a9c19f1e7c2723941a75f43
[ "MIT" ]
null
null
null
main.py
bjorgan/qso_web_view
5b7c662eaef5735a3a9c19f1e7c2723941a75f43
[ "MIT" ]
null
null
null
from flask import Flask, render_template, g import psycopg2 import qsostats import configparser import argparse app = Flask(__name__) #arguments parser = argparse.ArgumentParser() parser.add_argument('--db-config-path', default='db_config.ini', help='Path to config file containing postgresql connection information.')...
27.46875
138
0.646758
797954fd75001f4bac55d3c8a425832b011fafad
683
py
Python
bigtempo/processors/simple_task.py
movermeyer/bigtempo
29845e704e143982ff61f962df289757f6db4692
[ "MIT" ]
4
2015-01-31T12:10:40.000Z
2017-07-23T12:02:33.000Z
bigtempo/processors/simple_task.py
movermeyer/bigtempo
29845e704e143982ff61f962df289757f6db4692
[ "MIT" ]
null
null
null
bigtempo/processors/simple_task.py
movermeyer/bigtempo
29845e704e143982ff61f962df289757f6db4692
[ "MIT" ]
3
2015-03-10T23:15:55.000Z
2018-03-05T17:28:16.000Z
# -*- coding: utf-8 -*- def factory(instance, registration, dependencies, *args, **kwargs): return SimpleDatasourceTask(instance, registration, dependencies) class SimpleDatasourceTask(object): def __init__(self, instance, registration, dependencies): self._instance = instance self._depende...
34.15
122
0.726208
797957bd6ce4c47b83229f4db690016ab8c623a2
264
py
Python
spiders/boss/employee/employee/items.py
icehardStone/python
abcf87712d5536f7e5f3f6b230899ef51956e216
[ "Apache-2.0" ]
null
null
null
spiders/boss/employee/employee/items.py
icehardStone/python
abcf87712d5536f7e5f3f6b230899ef51956e216
[ "Apache-2.0" ]
null
null
null
spiders/boss/employee/employee/items.py
icehardStone/python
abcf87712d5536f7e5f3f6b230899ef51956e216
[ "Apache-2.0" ]
null
null
null
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class EmployeeItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass
20.307692
53
0.715909
7979580a9bef905945cc10a1016797a0e572ae69
388
py
Python
IOPool/Input/test/test_old_raw_data_step1_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
IOPool/Input/test/test_old_raw_data_step1_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
IOPool/Input/test/test_old_raw_data_step1_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms import sys process = cms.Process("TEST") process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring("file:"+sys.argv[2]) ) process.out = cms.OutputModule("PoolOutputModule", fastCloning = cms.untracked.bool(False), fileName = cms.untracked.string('fi...
24.25
57
0.742268
79795862cfbc2afdd0c9e103c3bfa1be9a6619f8
3,239
py
Python
django-rf/benchmark/settings.py
eduleones/apis-benchmark
8cc64a9a15af7000ee2f3cc46854346f40a2e9b0
[ "MIT" ]
null
null
null
django-rf/benchmark/settings.py
eduleones/apis-benchmark
8cc64a9a15af7000ee2f3cc46854346f40a2e9b0
[ "MIT" ]
2
2020-06-05T18:16:47.000Z
2021-06-10T20:18:07.000Z
django-rf/benchmark/settings.py
eduleones/apis-benchmark
8cc64a9a15af7000ee2f3cc46854346f40a2e9b0
[ "MIT" ]
null
null
null
""" Django settings for benchmark project. Generated by 'django-admin startproject' using Django 2.0.5. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os ...
25.503937
91
0.686632
797958df9bc655aa7ff8d55905477b635e2663a4
172
py
Python
search/urls.py
susovangarai/SRshoper
a3e35ce99bf2ed68019ddcb880c4bc08f3782035
[ "Apache-2.0" ]
null
null
null
search/urls.py
susovangarai/SRshoper
a3e35ce99bf2ed68019ddcb880c4bc08f3782035
[ "Apache-2.0" ]
null
null
null
search/urls.py
susovangarai/SRshoper
a3e35ce99bf2ed68019ddcb880c4bc08f3782035
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import SearchProductView app_name = 'search' urlpatterns = [ path('', SearchProductView.as_view(), name='search-results'), ]
19.111111
65
0.732558
797958e3970c40cd56819c596934b9aeaadf01dd
22,459
py
Python
test/functional/replace-by-fee.py
alwaysdoingstuff/timelinetest
140232a35a48cfad6599a6d67d46d1345bfa58fc
[ "MIT" ]
1
2018-01-31T20:01:01.000Z
2018-01-31T20:01:01.000Z
test/functional/replace-by-fee.py
alwaysdoingstuff/timelinetest
140232a35a48cfad6599a6d67d46d1345bfa58fc
[ "MIT" ]
1
2018-01-31T20:00:48.000Z
2018-02-02T18:23:43.000Z
test/functional/replace-by-fee.py
alwaysdoingstuff/timelinetest
140232a35a48cfad6599a6d67d46d1345bfa58fc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the RBF code.""" from test_framework.test_framework import BitcoinTestFramework from test_framewo...
39.680212
127
0.628256
79795996bbe637c8f33dbbfbd2a011b07c32c026
5,783
py
Python
analysis/src/python/data_collection/hyperskill/hyperskill_client.py
eartser/hyperstyle-analyze
58e2d361662e73e1e047919f57ab840055783b7a
[ "Apache-2.0" ]
1
2022-03-15T09:46:06.000Z
2022-03-15T09:46:06.000Z
analysis/src/python/data_collection/hyperskill/hyperskill_client.py
eartser/hyperstyle-analyze
58e2d361662e73e1e047919f57ab840055783b7a
[ "Apache-2.0" ]
1
2022-02-14T13:53:38.000Z
2022-02-14T13:53:38.000Z
analysis/src/python/data_collection/hyperskill/hyperskill_client.py
eartser/hyperstyle-analyze
58e2d361662e73e1e047919f57ab840055783b7a
[ "Apache-2.0" ]
3
2022-02-13T16:49:53.000Z
2022-02-17T13:53:07.000Z
import os from typing import Callable, Dict, List, Optional from analysis.src.python.data_collection.api.platform_client import PlatformClient from analysis.src.python.data_collection.api.platform_objects import BaseRequestParams, Object from analysis.src.python.data_collection.hyperskill.api.projects import Project, ...
55.605769
120
0.66903
797959f9a3416fc95592569733b987f18aa29656
2,040
py
Python
demisto_sdk/commands/common/tests/lists_test.py
upstart-swiss/demisto-sdk
369d466b84c942cb027c32a55d488f13ac339869
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/tests/lists_test.py
upstart-swiss/demisto-sdk
369d466b84c942cb027c32a55d488f13ac339869
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/tests/lists_test.py
upstart-swiss/demisto-sdk
369d466b84c942cb027c32a55d488f13ac339869
[ "MIT" ]
null
null
null
import json import pytest from mock import patch from demisto_sdk.commands.common.constants import LISTS_DIR, PACKS_DIR from demisto_sdk.commands.common.hook_validations.lists import ListsValidator from demisto_sdk.commands.common.hook_validations.structure import \ StructureValidator from demisto_sdk.commands.co...
40
109
0.698039
79795a57d479c155ed499be6e5d50790c84417e1
38,974
py
Python
Tests/test_GraphicsChromosome.py
tipabu/biopython
41a35f1bfa133fc4283bce3d009b4bf7956f5fa7
[ "BSD-3-Clause" ]
1
2020-02-13T14:32:44.000Z
2020-02-13T14:32:44.000Z
Tests/test_GraphicsChromosome.py
EsamTolba/biopython
120616cf0d28cb8e581898afd6604e5a2065a137
[ "BSD-3-Clause" ]
null
null
null
Tests/test_GraphicsChromosome.py
EsamTolba/biopython
120616cf0d28cb8e581898afd6604e5a2065a137
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2001 by Brad Chapman. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Test the creation of Chromosome Graphics. Provide tests for creating a...
85.845815
8,339
0.624827
79795a7573b3e805f0ec65b6ad662165bbf59b56
1,279
py
Python
trader/core/migrations/0008_auto_20171001_1519.py
CryptTrader/CryptTrader
47a87923efd976281c154f898e1b01a8e449a9f8
[ "MIT" ]
null
null
null
trader/core/migrations/0008_auto_20171001_1519.py
CryptTrader/CryptTrader
47a87923efd976281c154f898e1b01a8e449a9f8
[ "MIT" ]
null
null
null
trader/core/migrations/0008_auto_20171001_1519.py
CryptTrader/CryptTrader
47a87923efd976281c154f898e1b01a8e449a9f8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-01 18:19 from __future__ import unicode_literals from decimal import Decimal import django.core.validators from django.db import migrations import trader.core.models class Migration(migrations.Migration): dependencies = [ ('cor...
37.617647
182
0.652854
79795a88cc87009f9f531543e8d43a70c05ed2b5
1,138
py
Python
Django3_PersonalPortfolio/urls.py
LikimiaD/Django3_PersonalPortfolio
ef8a77be3dab0ea7c3932dd3d20d65370dd74ac4
[ "MIT" ]
5
2021-08-14T17:44:06.000Z
2021-12-03T22:43:03.000Z
Django3_PersonalPortfolio/urls.py
LikimiaD/Django3_PersonalPortfolio
ef8a77be3dab0ea7c3932dd3d20d65370dd74ac4
[ "MIT" ]
null
null
null
Django3_PersonalPortfolio/urls.py
LikimiaD/Django3_PersonalPortfolio
ef8a77be3dab0ea7c3932dd3d20d65370dd74ac4
[ "MIT" ]
1
2021-12-03T22:33:38.000Z
2021-12-03T22:33:38.000Z
"""Django3_PersonalPortfolio URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='...
37.933333
77
0.735501
79795b34262203e039fd8073ef1a756a95012e78
1,735
py
Python
nipy/modalities/fmri/fmristat/utils.py
yarikoptic/NiPy-OLD
8759b598ac72d3b9df7414642c7a662ad9c55ece
[ "BSD-3-Clause" ]
1
2015-08-22T16:14:45.000Z
2015-08-22T16:14:45.000Z
nipy/modalities/fmri/fmristat/utils.py
yarikoptic/NiPy-OLD
8759b598ac72d3b9df7414642c7a662ad9c55ece
[ "BSD-3-Clause" ]
null
null
null
nipy/modalities/fmri/fmristat/utils.py
yarikoptic/NiPy-OLD
8759b598ac72d3b9df7414642c7a662ad9c55ece
[ "BSD-3-Clause" ]
null
null
null
""" Utilities for fmristat """ __docformat__ = 'restructuredtext' import gc, os, fpformat from numpy import asarray class WholeBrainNormalize(object): """ This class constructs a callable object that is sometimes used to normalize fMRI data before applying a GLM. The normalization consists of d...
28.916667
76
0.567147
79795b7289e3b3dff67cd5a4c9be0ff0f959ed6e
846
py
Python
jd/api/rest/SellerPromoSingleCreatePlummetedPromoRequest.py
jof2jc/jd
691bf22c68ed88fb3fb32bfb43dd6da75024994a
[ "MIT" ]
null
null
null
jd/api/rest/SellerPromoSingleCreatePlummetedPromoRequest.py
jof2jc/jd
691bf22c68ed88fb3fb32bfb43dd6da75024994a
[ "MIT" ]
null
null
null
jd/api/rest/SellerPromoSingleCreatePlummetedPromoRequest.py
jof2jc/jd
691bf22c68ed88fb3fb32bfb43dd6da75024994a
[ "MIT" ]
null
null
null
from jd.api.base import RestApi class SellerPromoSingleCreatePlummetedPromoRequest(RestApi): def __init__(self,domain,port=80): RestApi.__init__(self,domain, port) self.riskLevel = None self.promoChannel = None self.bindToken = None self.promoNum = None self.limitBuyType = None self.quota = None...
22.263158
60
0.712766
79795c1ed078058ab2e0f2b11006f11ac510daa2
5,215
py
Python
DLTest.py
swvanderlaan/deeplearning
fbf94a7adb97a5bf65a99ed161da2109465a4bd3
[ "MIT" ]
null
null
null
DLTest.py
swvanderlaan/deeplearning
fbf94a7adb97a5bf65a99ed161da2109465a4bd3
[ "MIT" ]
null
null
null
DLTest.py
swvanderlaan/deeplearning
fbf94a7adb97a5bf65a99ed161da2109465a4bd3
[ "MIT" ]
null
null
null
#!/usr/bin/python print("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++") print(" DLTest: test the deeplearning environment ") print("") print("* Version : v1.0.0") print("") print("* Last update : 2020-12...
58.595506
127
0.515436
79795c429cae14b7c284ef8cff5158f4336d2d06
4,187
py
Python
examples/segmentation_3d_ignite/unet_evaluation_array.py
murraycutforth/MONAI
ad06dff7f85711048690b2e85c99d51001612708
[ "Apache-2.0" ]
null
null
null
examples/segmentation_3d_ignite/unet_evaluation_array.py
murraycutforth/MONAI
ad06dff7f85711048690b2e85c99d51001612708
[ "Apache-2.0" ]
null
null
null
examples/segmentation_3d_ignite/unet_evaluation_array.py
murraycutforth/MONAI
ad06dff7f85711048690b2e85c99d51001612708
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 MONAI Consortium # 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, s...
37.053097
111
0.710533
79795c43bf88b8b33dd82cc463904739c97e58b2
132
py
Python
tests/test_dict_parser.py
EngLang/EL-Python
995444f79207b06f410a6b2ec3a85169a946c9d2
[ "MIT" ]
3
2016-07-04T01:38:45.000Z
2021-04-24T16:29:52.000Z
tests/test_dict_parser.py
vontell/EngLang
995444f79207b06f410a6b2ec3a85169a946c9d2
[ "MIT" ]
1
2016-07-03T05:01:24.000Z
2016-07-04T01:39:27.000Z
tests/test_dict_parser.py
EngLang/EL-Python
995444f79207b06f410a6b2ec3a85169a946c9d2
[ "MIT" ]
null
null
null
# Test file for dict_parser.py # TODO: Get rid of examples def func(x): return x + 1 def test_answer(): assert func(3) == 4
18.857143
30
0.651515
79795e9386b6434f95e156dec08da773aaf8e18d
151,544
py
Python
tests/python/unittest/test_operator.py
pluskid/mxnet
c8ce25647eb239a64f834131894eee71d89269a1
[ "Apache-2.0" ]
1
2021-04-27T05:55:54.000Z
2021-04-27T05:55:54.000Z
tests/python/unittest/test_operator.py
pluskid/mxnet
c8ce25647eb239a64f834131894eee71d89269a1
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_operator.py
pluskid/mxnet
c8ce25647eb239a64f834131894eee71d89269a1
[ "Apache-2.0" ]
5
2015-10-15T08:04:04.000Z
2017-07-24T05:51:26.000Z
# pylint: skip-file import numpy as np import mxnet as mx import random from numpy.testing import assert_allclose from mxnet.test_utils import * def np_softmax(x, axis=-1): # fix for old numpy on Travis not supporting keepdims # x = x - np.max(x, axis=-1, keepdims=True) x = x - np.max(x, axis=axis, keepdim...
44.362998
173
0.590726
79795f74069f78bb11da6887e377b3274fd974d9
6,150
py
Python
momo/models/wx_response.py
raymondyang2018/raymo
38b16d0cd3d53c49c8cb685b94616d6cd7fb9b47
[ "Apache-2.0" ]
95
2017-06-26T07:37:28.000Z
2022-02-15T15:35:52.000Z
momo/models/wx_response.py
qiqiqiii/momo
a665e2501d05abbf05679c3834f2ba1d4b4afb7e
[ "Apache-2.0" ]
5
2017-07-15T08:16:18.000Z
2019-11-28T16:15:52.000Z
momo/models/wx_response.py
qiqiqiii/momo
a665e2501d05abbf05679c3834f2ba1d4b4afb7e
[ "Apache-2.0" ]
37
2017-06-28T02:10:52.000Z
2021-05-26T08:02:29.000Z
#! -*- coding: utf-8 -*- from datetime import datetime from momo.models import Model from momo.models.bill import Bill, Tag from momo.models.account import Account, AccountWorkflow as AW, UserWorkFlow class WXKeyWord(Model): ''' _id: '关键字ID', word: '关键字', data: { 'workflow': '工作流', '...
30.147059
90
0.504228
79795fe9446148b6209c6b56fbd3396ca4eff845
495
py
Python
matplotlib-examples/2dplot.py
davidobrien1/programming-for-data-analysis
ae27d5a3d73273de09fd599776100d95a4699161
[ "Apache-2.0" ]
null
null
null
matplotlib-examples/2dplot.py
davidobrien1/programming-for-data-analysis
ae27d5a3d73273de09fd599776100d95a4699161
[ "Apache-2.0" ]
null
null
null
matplotlib-examples/2dplot.py
davidobrien1/programming-for-data-analysis
ae27d5a3d73273de09fd599776100d95a4699161
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np x = np.arange(0.0, 10.0, 0.01) # Numpy will give me a range of number between 0 and 10 to 2 places of decimals y = 3.0 * x + 1.0 # x and y are arrays noise = np.random.normal(0.0, 1.0, len(x)) plt.plot(x, y + noise, 'r.', label="Actual") # "b." means blue dot in mat...
26.052632
110
0.664646
79795ff403f2f6dbc0dc1143c0d905709cbe78e8
841
py
Python
S1/TP2/ex_02.py
Dakuro/info_l1_dream
35e0834bc0abb2067161724601ba433403c4b0f4
[ "MIT" ]
null
null
null
S1/TP2/ex_02.py
Dakuro/info_l1_dream
35e0834bc0abb2067161724601ba433403c4b0f4
[ "MIT" ]
null
null
null
S1/TP2/ex_02.py
Dakuro/info_l1_dream
35e0834bc0abb2067161724601ba433403c4b0f4
[ "MIT" ]
null
null
null
import numpy as np nb_notes = int(input("Entrer un nombre de notes à saisir :\n")) occ = int(-1) ask = """Voulez-vous afficher le nombre d'étudiants ayant eu 10 au DS ? 0 - Quitter le programme 1 - Afficher le nombre d'étudiants\n""" while nb_notes < 1: print("Valeur saisie incorrecte.") nb_notes = int(input(...
31.148148
104
0.661118
797960b59ca14e82337c7a9d6d781de3924bbc9d
1,448
py
Python
listing_parser.py
thito514/batch5_phenix_happymeal
67e9caa5561e7f308ba502a4d9e2d084d08443af
[ "MIT" ]
null
null
null
listing_parser.py
thito514/batch5_phenix_happymeal
67e9caa5561e7f308ba502a4d9e2d084d08443af
[ "MIT" ]
null
null
null
listing_parser.py
thito514/batch5_phenix_happymeal
67e9caa5561e7f308ba502a4d9e2d084d08443af
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Product grouping for balanced meal creation ''' __author__ = 'François-Guillaume Fernandez' __license__ = 'MIT License' __version__ = '0.1' __maintainer__ = 'François-Guillaume Fernandez' __status__ = 'Development' import argparse import pandas as pd parser = argpa...
25.857143
117
0.671271
797960c0e3efe4ac29d9902cf6546439e11720cf
2,519
py
Python
airflow/contrib/operators/file_to_wasb.py
abhishek-ch/incubator-airflow
3358551c8e73d9019900f7a85f18ebfd88591450
[ "Apache-2.0" ]
4
2018-12-14T05:14:02.000Z
2022-01-23T15:48:13.000Z
airflow/contrib/operators/file_to_wasb.py
abhishek-ch/incubator-airflow
3358551c8e73d9019900f7a85f18ebfd88591450
[ "Apache-2.0" ]
14
2018-10-24T03:15:11.000Z
2019-01-02T19:02:58.000Z
airflow/contrib/operators/file_to_wasb.py
abhishek-ch/incubator-airflow
3358551c8e73d9019900f7a85f18ebfd88591450
[ "Apache-2.0" ]
6
2020-06-09T02:16:58.000Z
2021-12-27T15:46:32.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
38.753846
73
0.695117
79796299107652b5a6b8e437bb052b0ea6151c9e
4,012
py
Python
uci-expts/classification/spambase/training.py
MaxInGaussian/ZS-VAFNN
d80846248eb244adf3c56560b15155d1682550cc
[ "Apache-2.0" ]
null
null
null
uci-expts/classification/spambase/training.py
MaxInGaussian/ZS-VAFNN
d80846248eb244adf3c56560b15155d1682550cc
[ "Apache-2.0" ]
null
null
null
uci-expts/classification/spambase/training.py
MaxInGaussian/ZS-VAFNN
d80846248eb244adf3c56560b15155d1682550cc
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Max W. Y. Lam # # 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, so...
33.157025
79
0.624875
7979636e5f31c33e85bc13267b6157a8d7190b27
14,059
py
Python
sparse_operation_kit/unit_test/test_scripts/test_dense_emb_demo_model_multi_worker.py
marsmiao/HugeCTR
c9ff359a69565200fcc0c7aae291d9c297bea70e
[ "Apache-2.0" ]
null
null
null
sparse_operation_kit/unit_test/test_scripts/test_dense_emb_demo_model_multi_worker.py
marsmiao/HugeCTR
c9ff359a69565200fcc0c7aae291d9c297bea70e
[ "Apache-2.0" ]
null
null
null
sparse_operation_kit/unit_test/test_scripts/test_dense_emb_demo_model_multi_worker.py
marsmiao/HugeCTR
c9ff359a69565200fcc0c7aae291d9c297bea70e
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2021, NVIDIA CORPORATION. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
50.754513
149
0.638168
797963ca011f7eff6cae705f57193446df0d315f
2,387
py
Python
twisted/plugins/cred_memory.py
hawkowl/twisted
c413aac3888dea2202c0dc26f978d7f88b4b837a
[ "Unlicense", "MIT" ]
9,953
2019-04-03T23:41:04.000Z
2022-03-31T11:54:44.000Z
stackoverflow/venv/lib/python3.6/site-packages/twisted/plugins/cred_memory.py
W4LKURE/learn_python3_spider
98dd354a41598b31302641f9a0ea49d1ecfa0fb1
[ "MIT" ]
44
2019-05-27T10:59:29.000Z
2022-03-31T14:14:29.000Z
stackoverflow/venv/lib/python3.6/site-packages/twisted/plugins/cred_memory.py
W4LKURE/learn_python3_spider
98dd354a41598b31302641f9a0ea49d1ecfa0fb1
[ "MIT" ]
2,803
2019-04-06T13:15:33.000Z
2022-03-31T07:42:01.000Z
# -*- test-case-name: twisted.test.test_strcred -*- # # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Cred plugin for an in-memory user database. """ from __future__ import absolute_import, division from zope.interface import implementer from twisted import plugin from twisted.cred.strcr...
33.619718
79
0.695853
797968b7de4c256d096d0750fd2f667244792d30
2,178
py
Python
kinematics/inverse.py
siddarth09/Robotics-for-arm-manpulation
3b6ee52a16f9e156a72654f5f48bd08c1a8f6953
[ "MIT" ]
2
2021-11-02T09:52:46.000Z
2021-11-03T07:56:12.000Z
kinematics/inverse.py
siddarth09/Robotics-for-arm-manpulation
3b6ee52a16f9e156a72654f5f48bd08c1a8f6953
[ "MIT" ]
null
null
null
kinematics/inverse.py
siddarth09/Robotics-for-arm-manpulation
3b6ee52a16f9e156a72654f5f48bd08c1a8f6953
[ "MIT" ]
1
2021-11-07T17:11:30.000Z
2021-11-07T17:11:30.000Z
'''MIT License Copyright (c) 2021 SIDDARTH.D Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
34.03125
87
0.658402
7979695ac43b14b0ad10406e7652d8eeb3727ed4
417
py
Python
csdn/migrations/0005_auto_20191023_1948.py
zhang123-123/CsdnServer
bf40c7f9f774e732dc68400c30f555f2fd8de5ca
[ "MIT" ]
null
null
null
csdn/migrations/0005_auto_20191023_1948.py
zhang123-123/CsdnServer
bf40c7f9f774e732dc68400c30f555f2fd8de5ca
[ "MIT" ]
null
null
null
csdn/migrations/0005_auto_20191023_1948.py
zhang123-123/CsdnServer
bf40c7f9f774e732dc68400c30f555f2fd8de5ca
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2019-10-23 19:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('csdn', '0004_auto_20191023_1940'), ] operations = [ migrations.AlterField( model_name='csdnblog', name='blog_time', ...
21.947368
81
0.611511
797969ae988aaaf3b4e65ae0c7622af047194e54
3,412
py
Python
androidtv/setup_async.py
ollo69/python-androidtv
043bbb5bf72717f40fde7ea3d4bb776293c49005
[ "MIT" ]
null
null
null
androidtv/setup_async.py
ollo69/python-androidtv
043bbb5bf72717f40fde7ea3d4bb776293c49005
[ "MIT" ]
null
null
null
androidtv/setup_async.py
ollo69/python-androidtv
043bbb5bf72717f40fde7ea3d4bb776293c49005
[ "MIT" ]
null
null
null
"""Connect to a device and determine whether it's an Android TV or an Amazon Fire TV. ADB Debugging must be enabled. """ from .androidtv.androidtv_async import AndroidTVAsync from .basetv.basetv_async import BaseTVAsync from .constants import DEFAULT_AUTH_TIMEOUT_S, DEFAULT_TRANSPORT_TIMEOUT_S from .firetv.firetv_asy...
34.816327
128
0.701934
79796bc63fb6b974c7fa65ca340afd2c4f3ff422
58,653
py
Python
python/ccxt/gopax.py
egorFiNE/ccxt
1ab033958f383b3aa0c829f9951dae6118eb0a9a
[ "MIT" ]
null
null
null
python/ccxt/gopax.py
egorFiNE/ccxt
1ab033958f383b3aa0c829f9951dae6118eb0a9a
[ "MIT" ]
null
null
null
python/ccxt/gopax.py
egorFiNE/ccxt
1ab033958f383b3aa0c829f9951dae6118eb0a9a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors import Authenticati...
46.661098
447
0.482482
79796c670c8abec4666f757e56d75013cd574833
1,312
py
Python
ceph_deploy/tests/test_conf.py
zidarsk8/ceph-deploy
e286d7d0cf6e161708909c91ea7f99aacf08c7c4
[ "MIT" ]
1
2018-01-03T03:13:24.000Z
2018-01-03T03:13:24.000Z
ceph_deploy/tests/test_conf.py
zidarsk8/ceph-deploy
e286d7d0cf6e161708909c91ea7f99aacf08c7c4
[ "MIT" ]
null
null
null
ceph_deploy/tests/test_conf.py
zidarsk8/ceph-deploy
e286d7d0cf6e161708909c91ea7f99aacf08c7c4
[ "MIT" ]
null
null
null
from cStringIO import StringIO from .. import conf def test_simple(): f = StringIO("""\ [foo] bar = baz """) cfg = conf.parse(f) assert cfg.get('foo', 'bar') == 'baz' def test_indent_space(): f = StringIO("""\ [foo] bar = baz """) cfg = conf.parse(f) assert cfg.get('foo', 'bar') == '...
19.014493
69
0.557927
79796c8c9bf637d96aae50be9658c67801823f95
1,124
py
Python
category/migrations/0001_initial.py
CharlieForApps/xpense1
210bba4f8a5dc9d38b37defca74968eaa4b36a0c
[ "BSD-2-Clause" ]
null
null
null
category/migrations/0001_initial.py
CharlieForApps/xpense1
210bba4f8a5dc9d38b37defca74968eaa4b36a0c
[ "BSD-2-Clause" ]
null
null
null
category/migrations/0001_initial.py
CharlieForApps/xpense1
210bba4f8a5dc9d38b37defca74968eaa4b36a0c
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-06-06 08:48 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
33.058824
118
0.61121
79796c9d708286fc17653e3d58012f4615422ba5
1,172
py
Python
docs/02.AI_ML/code-1905/day06/demo03_silhouette.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
2
2020-04-09T05:56:23.000Z
2021-03-25T18:42:36.000Z
docs/02.AI_ML/code-1905/day06/demo03_silhouette.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
22
2020-04-09T06:09:14.000Z
2021-01-06T01:05:32.000Z
docs/02.AI_ML/code-1905/day06/demo03_silhouette.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
6
2020-03-09T07:19:21.000Z
2021-01-05T23:23:42.000Z
""" demo03_silhouette.py 轮廓系数 """ import numpy as np import sklearn.cluster as sc import matplotlib.pyplot as mp import sklearn.metrics as sm x = np.loadtxt('../ml_data/multiple3.txt', delimiter=',') # 构建聚类模型 model = sc.KMeans(n_clusters=4) model.fit(x) # 返回每个样本的聚类的类别标签: 0/1/2/3 pred_y = model.labels_ # 输出轮廓系数 s=s...
24.93617
68
0.656997
79796cc021125d76e7003663db60ddc6528e9e51
1,192
py
Python
turingas/main.py
xiaozhimabing/turingas
3659d4f4082e062ce7e8353c5e01b30077ea614d
[ "MIT" ]
1
2021-05-12T02:24:55.000Z
2021-05-12T02:24:55.000Z
turingas/main.py
xiaozhimabing/turingas
3659d4f4082e062ce7e8353c5e01b30077ea614d
[ "MIT" ]
null
null
null
turingas/main.py
xiaozhimabing/turingas
3659d4f4082e062ce7e8353c5e01b30077ea614d
[ "MIT" ]
null
null
null
import argparse from .turas import * from .cubin import Cubin def main(): parser = argparse.ArgumentParser() parser.add_argument('-i', '--input', help='input asm file', dest='input_asm', required=True, metavar='FILE') parser.add_argument('-o', '--output', help='output cubin file', dest='output_cubin', required=T...
32.216216
117
0.683725
79796d194e4350ea347db391b727079c82e0b89e
10,782
py
Python
egs/wsj/s5/steps/nnet3/report/nnet3_log_parse_lib.py
Shuang777/kaldi-2016
5373fe4bd80857b53134db566cad48b8445cf3b9
[ "Apache-2.0" ]
1
2021-01-22T08:57:32.000Z
2021-01-22T08:57:32.000Z
steps/nnet3/report/nnet3_log_parse_lib.py
palles77/ClarinStudioKaldi
a57532b1220b7dd0a04108237fe631b6561ace2b
[ "Apache-2.0" ]
null
null
null
steps/nnet3/report/nnet3_log_parse_lib.py
palles77/ClarinStudioKaldi
a57532b1220b7dd0a04108237fe631b6561ace2b
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Vijayaditya Peddinti. # Apache 2.0. from __future__ import division import sys, glob, re, math, datetime, argparse import imp ntl = imp.load_source('ntl', 'steps/nnet3/nnet3_train_lib.py') #exp/nnet3/lstm_self_repair_ld5_sp/log/progress.9.log:component name=Lstm3_i type=SigmoidComponent, dim=1280, s...
48.567568
624
0.664441
79796e055cf8d358bebb5b419fc4c59fe5fbac23
13,343
py
Python
source/rttov_test/profile-datasets-py/div83/050.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
source/rttov_test/profile-datasets-py/div83/050.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
1
2022-03-12T12:19:59.000Z
2022-03-12T12:19:59.000Z
source/rttov_test/profile-datasets-py/div83/050.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
""" Profile ../profile-datasets-py/div83/050.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/div83/050.py" self["Q"] = numpy.array([ 3.90169500e+00, 4.56817900e+00, 5.69853800e+00, 6.43874900e+00, 6.54152700e+00, 6.49639800e+00, 6.3824...
57.512931
92
0.567788
79796e0ac625b18bd3187c737ad4714e29c485f0
5,163
py
Python
data/dataset_usrnet.py
chashi-mahiul-islam-bd/swinirv2
86a6fc0a56d7674cde7544264a51f5277d9f8e03
[ "MIT" ]
1,521
2019-12-15T21:48:50.000Z
2022-03-31T20:42:52.000Z
data/dataset_usrnet.py
chashi-mahiul-islam-bd/swinirv2
86a6fc0a56d7674cde7544264a51f5277d9f8e03
[ "MIT" ]
120
2019-12-16T00:30:10.000Z
2022-03-25T08:26:50.000Z
data/dataset_usrnet.py
chashi-mahiul-islam-bd/swinirv2
86a6fc0a56d7674cde7544264a51f5277d9f8e03
[ "MIT" ]
375
2019-12-16T01:50:41.000Z
2022-03-31T11:41:36.000Z
import random import numpy as np import torch import torch.utils.data as data import utils.utils_image as util from utils import utils_deblur from utils import utils_sisr import os from scipy import ndimage from scipy.io import loadmat # import hdf5storage class DatasetUSRNet(data.Dataset): ''' ...
40.653543
121
0.483827