hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
8dd4b41483a626f400f453b5b8e1334969260b41
649
py
Python
scripts/partition.py
Ho011/learning_python
7117c0009f13675c65e23f3650b44dc0bce6a657
[ "MIT" ]
null
null
null
scripts/partition.py
Ho011/learning_python
7117c0009f13675c65e23f3650b44dc0bce6a657
[ "MIT" ]
null
null
null
scripts/partition.py
Ho011/learning_python
7117c0009f13675c65e23f3650b44dc0bce6a657
[ "MIT" ]
null
null
null
from typing import ( Callable, Any, Iterable, Tuple, List, ) def partition(predicate: Callable, values: Iterable[Any])-> Tuple[List[Any], List[Any]]: """ Split the values into two sets, based on the return value of the function (True/False). e.g.: >>> partition(lambda x: x > 3, ...
23.178571
88
0.57319
3fae8bb9f5d71dd8ba765f37a034e4a0699f073c
3,045
py
Python
python_modules/dagster/dagster/core/snap/dagster_types.py
rpatil524/dagster
6f918d94cbd543ab752ab484a65e3a40fd441716
[ "Apache-2.0" ]
1
2021-01-31T19:16:29.000Z
2021-01-31T19:16:29.000Z
python_modules/dagster/dagster/core/snap/dagster_types.py
rpatil524/dagster
6f918d94cbd543ab752ab484a65e3a40fd441716
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/snap/dagster_types.py
rpatil524/dagster
6f918d94cbd543ab752ab484a65e3a40fd441716
[ "Apache-2.0" ]
1
2021-12-08T18:13:19.000Z
2021-12-08T18:13:19.000Z
from collections import namedtuple from dagster import check from dagster.core.definitions.pipeline_definition import PipelineDefinition from dagster.core.types.dagster_type import DagsterType, DagsterTypeKind from dagster.serdes import whitelist_for_serdes def build_dagster_type_namespace_snapshot(pipeline_def): ...
35.823529
94
0.700821
56372afe02986dd0191d4824081238859364e046
31
py
Python
ecs/components/teleportscroll.py
joehowells/7drl2020
ec92c0870fb9ee975530d6a92c1b96634040ebc4
[ "MIT" ]
null
null
null
ecs/components/teleportscroll.py
joehowells/7drl2020
ec92c0870fb9ee975530d6a92c1b96634040ebc4
[ "MIT" ]
2
2020-03-25T10:30:31.000Z
2020-03-25T20:13:43.000Z
ecs/components/teleportscroll.py
joehowells/two-button-berserker
ec92c0870fb9ee975530d6a92c1b96634040ebc4
[ "MIT" ]
null
null
null
class TeleportScroll: pass
10.333333
21
0.741935
3c83b01b284c6e208fc6f436a38e87deb9f2f283
588
py
Python
homeassistant/components/sql/__init__.py
davyike/core
13cc7583ed5c7de43c56b43db8fdc9879a853666
[ "Apache-2.0" ]
3
2019-10-02T04:40:26.000Z
2020-02-16T13:19:08.000Z
homeassistant/components/sql/__init__.py
davyike/core
13cc7583ed5c7de43c56b43db8fdc9879a853666
[ "Apache-2.0" ]
18
2021-11-03T06:21:27.000Z
2022-03-31T06:20:57.000Z
homeassistant/components/sql/__init__.py
davyike/core
13cc7583ed5c7de43c56b43db8fdc9879a853666
[ "Apache-2.0" ]
null
null
null
"""The sql component.""" from __future__ import annotations from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from .const import PLATFORMS async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up SQL from a config entry.""" hass...
26.727273
78
0.77381
591da389da0abc51e6378a44dc427da1718ad387
1,036
py
Python
api/predict.py
devSessions/crvi
1ecc68d6c968294bcc5ceea747604ee237f6080c
[ "MIT" ]
25
2017-12-31T06:51:54.000Z
2021-11-17T11:29:30.000Z
api/predict.py
amittomar-1/crvi
1ecc68d6c968294bcc5ceea747604ee237f6080c
[ "MIT" ]
23
2020-01-28T21:34:12.000Z
2022-03-11T23:11:54.000Z
api/predict.py
amittomar-1/crvi
1ecc68d6c968294bcc5ceea747604ee237f6080c
[ "MIT" ]
11
2018-01-04T12:30:33.000Z
2020-12-01T18:08:59.000Z
import os import numpy as np import keras from PIL import Image # import requests # from io import BytesIO class predict(object): def __init__(self,url): self.url=url def predict_only(self): # Load and resize the image using PIL. # response = requests.get(self.url) # img = Ima...
25.268293
71
0.591699
3da28692d01340096fb2f69dd9d500a0ba43377b
1,569
py
Python
crawling/models.py
difara/wmss_new_repo
7f6f81340161d2dcf028761cc47bfa13b28227c6
[ "MIT" ]
1
2021-01-04T17:06:02.000Z
2021-01-04T17:06:02.000Z
crawling/models.py
difara/wmss_new_repo
7f6f81340161d2dcf028761cc47bfa13b28227c6
[ "MIT" ]
null
null
null
crawling/models.py
difara/wmss_new_repo
7f6f81340161d2dcf028761cc47bfa13b28227c6
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver # Create your models here. class Pencarian_Keyword(models.Model): url = models.CharField(max_length = 100) keyword = models.CharField(max_length = 100) ...
36.488372
82
0.737412
bbc917a979304d0ea7f1b7fa415b1ba44d84837d
983
py
Python
Scripts/simulation/server_commands/royalty_commands.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/server_commands/royalty_commands.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/server_commands/royalty_commands.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\server_commands\royalty_commands.py # Compiled at: 2014-06-24 23:41:50 # Size of source mod 2**32: 8...
46.809524
107
0.757884
a4c436bc3f5f812e6c75c8e9588587e124fab485
659
py
Python
parser/team27/G-27/execution/symbol/error.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/team27/G-27/execution/symbol/error.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/team27/G-27/execution/symbol/error.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
class T_error(): def __init__(self, tipo, token, descripcion, row, column): self.tipo = tipo self.token = token self.description = descripcion self.row = row self.column = column def toString(self): valor = self.token if not isinstance(self.token, str): ...
29.954545
148
0.582701
fd27c5f6c427fbd8c6eb5c7d6d6edde9118b2c19
4,716
py
Python
kite-exp/telemetry-analysis/completions-metrics/analysis/data.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
17
2022-01-10T11:01:50.000Z
2022-03-25T03:21:08.000Z
kite-exp/telemetry-analysis/completions-metrics/analysis/data.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
1
2022-01-13T14:28:47.000Z
2022-01-13T14:28:47.000Z
kite-exp/telemetry-analysis/completions-metrics/analysis/data.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
7
2022-01-07T03:58:10.000Z
2022-03-24T07:38:20.000Z
from typing import Callable, Dict import datetime from enum import Enum import json import numpy as np import pandas as pd import tqdm def read_logs(filename: str) -> pd.DataFrame: """ Read completions metrics from a JSON file (as produced by digest-comp-logs) :return: A DataFrame where each row represe...
34.933333
117
0.647159
f6fc73ca0e585da7e83fb6a9655e5f2007dde37c
3,660
py
Python
src/transformers/models/xlnet/convert_xlnet_original_tf_checkpoint_to_pytorch.py
dctelus/transformers
6786cbc4b14ebff0ac59c768cadd109391db9a08
[ "Apache-2.0" ]
8,028
2018-11-05T15:19:44.000Z
2019-07-16T09:14:59.000Z
src/transformers/models/xlnet/convert_xlnet_original_tf_checkpoint_to_pytorch.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
731
2018-11-05T21:35:52.000Z
2019-07-16T09:51:26.000Z
src/transformers/models/xlnet/convert_xlnet_original_tf_checkpoint_to_pytorch.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
2,106
2018-11-05T15:29:15.000Z
2019-07-16T08:51:57.000Z
# coding=utf-8 # Copyright 2018 The HuggingFace 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 of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
32.389381
117
0.714481
409a959aadfdb74670716e8b305762ccfcef599a
14,622
py
Python
src/blade/command_args.py
kerr-huang/blade
a98f35a8bbed13a14213c7c696485b742a13e7aa
[ "BSD-3-Clause" ]
null
null
null
src/blade/command_args.py
kerr-huang/blade
a98f35a8bbed13a14213c7c696485b742a13e7aa
[ "BSD-3-Clause" ]
null
null
null
src/blade/command_args.py
kerr-huang/blade
a98f35a8bbed13a14213c7c696485b742a13e7aa
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2011 Tencent Inc. # All rights reserved. # # Author: Chong peng <michaelpeng@tencent.com> # Date: October 20, 2011 """ This is the CmdOptions module which parses the users' input and provides hint for users. """ import os import platform import shlex import console from argparse import Argumen...
36.831234
87
0.580495
22b973a35a13fc0c68b8d21bba577c70edee827c
96
py
Python
modelmapper/exceptions.py
wearefair/modelmapper
7f420ceca0312373fdb0ab81fa3f6a3f8fb86086
[ "MIT" ]
5
2018-06-29T22:13:22.000Z
2019-03-15T18:28:07.000Z
modelmapper/exceptions.py
wearefair/modelmapper
7f420ceca0312373fdb0ab81fa3f6a3f8fb86086
[ "MIT" ]
13
2018-06-29T22:40:02.000Z
2020-12-15T05:29:04.000Z
modelmapper/exceptions.py
wearefair/modelmapper
7f420ceca0312373fdb0ab81fa3f6a3f8fb86086
[ "MIT" ]
1
2019-08-05T17:47:02.000Z
2019-08-05T17:47:02.000Z
class NothingToProcess(ValueError): pass class FileAlreadyProcessed(ValueError): pass
13.714286
39
0.770833
2a838a64341573d0363534370bd80a8b2ea52126
2,150
py
Python
tests/test_validation.py
0x1EE7/tomodachi
8147b16d8be19b80b3bd7c5d8ed21c9863eaaa83
[ "MIT" ]
null
null
null
tests/test_validation.py
0x1EE7/tomodachi
8147b16d8be19b80b3bd7c5d8ed21c9863eaaa83
[ "MIT" ]
null
null
null
tests/test_validation.py
0x1EE7/tomodachi
8147b16d8be19b80b3bd7c5d8ed21c9863eaaa83
[ "MIT" ]
null
null
null
import pytest from tomodachi.validation.validation import validate_field_regex, \ RegexMissmatchException from tomodachi.validation.validation import validate_field_length, \ TooSmallException, TooLargeException def test_regex_success() -> None: validate_field_regex('af047ca5-e8f4-48a9-ab01-1d948f635f95'...
27.564103
139
0.70093
6f80077bffef2133f5f65836b06b806c71147de7
4,453
py
Python
src/path_finder.py
brandon-fremin/LightningNetworkAnalysis
c7b174e01327173ee71ef9caaa27f97ff89b969c
[ "MIT" ]
null
null
null
src/path_finder.py
brandon-fremin/LightningNetworkAnalysis
c7b174e01327173ee71ef9caaa27f97ff89b969c
[ "MIT" ]
null
null
null
src/path_finder.py
brandon-fremin/LightningNetworkAnalysis
c7b174e01327173ee71ef9caaa27f97ff89b969c
[ "MIT" ]
null
null
null
import random from src.dijkstras import Graph, Node_Distance import matplotlib.pyplot as plt from src.distance import dist_d, cost_d def path_finder(source, target, amount, all_nodes, channel_balances, verify_function, distance_function, alpha=1.0, show_plot=False, print_text=True): graph = Graph(len(all_nodes)) ...
36.801653
150
0.569728
506123e9cb0e8f34dcd60092472d02a7171bcff4
874
py
Python
plugins/rapid7_tcell/komand_rapid7_tcell/actions/list_packages/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/rapid7_tcell/komand_rapid7_tcell/actions/list_packages/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/rapid7_tcell/komand_rapid7_tcell/actions/list_packages/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
import komand from .schema import ListPackagesInput, ListPackagesOutput # Custom imports below class ListPackages(komand.Action): def __init__(self): super(self.__class__, self).__init__( name="list_packages", description="Fetch details for all seen packages (matching the provided...
28.193548
95
0.607551
aa02beb54922c1f0e0ef4ae060a0db877558fbbb
665
py
Python
utils/db_migration/versions/from_1_2_to_1_3-add_task_owner.py
Yuanmessi/Bold-Falcon
00fcaba0b3d9c462b9d20ecb256ff85db5d119e2
[ "BSD-3-Clause" ]
71
2016-11-13T03:26:45.000Z
2022-02-22T08:13:04.000Z
utils/db_migration/versions/from_1_2_to_1_3-add_task_owner.py
Yuanmessi/Bold-Falcon
00fcaba0b3d9c462b9d20ecb256ff85db5d119e2
[ "BSD-3-Clause" ]
3
2021-07-01T08:09:05.000Z
2022-01-28T03:38:36.000Z
utils/db_migration/versions/from_1_2_to_1_3-add_task_owner.py
Yuanmessi/Bold-Falcon
00fcaba0b3d9c462b9d20ecb256ff85db5d119e2
[ "BSD-3-Clause" ]
36
2016-12-13T11:37:56.000Z
2021-11-11T12:20:10.000Z
# Copyright (C) 2010-2014 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. """Database migration from Cuckoo 1.2 to Cuckoo 1.3. Added task owner used by the Distributed API. Revision ID: 3aa42d870199 Revises: 18eee46c6f81 Cre...
24.62963
83
0.741353
8ad8460075ad777257aab0f660c49aa193c072d4
804
py
Python
lib/transactions/tests/test_commands.py
muffinresearch/solitude
6cb37f591956111b54e5c4098602be21c8f4b438
[ "BSD-3-Clause" ]
null
null
null
lib/transactions/tests/test_commands.py
muffinresearch/solitude
6cb37f591956111b54e5c4098602be21c8f4b438
[ "BSD-3-Clause" ]
null
null
null
lib/transactions/tests/test_commands.py
muffinresearch/solitude
6cb37f591956111b54e5c4098602be21c8f4b438
[ "BSD-3-Clause" ]
null
null
null
import csv from datetime import datetime from tempfile import NamedTemporaryFile from nose.tools import eq_ import test_utils from lib.transactions.models import Transaction from lib.transactions.management.commands.stats_log import generate_log from lib.sellers.tests.utils import make_seller_paypal class TestLog(t...
32.16
71
0.710199
3fbd06d7ccdfa2baf16ea29fe18a8571bab807b5
6,479
py
Python
src/container/mesos-manager/mesos_manager/common/logger.py
casek14/contrail-controller
18e2572635370b3cb6da2731af049cbeb934f2bb
[ "Apache-2.0" ]
1
2019-01-11T06:16:10.000Z
2019-01-11T06:16:10.000Z
src/container/mesos-manager/mesos_manager/common/logger.py
chnyda/contrail-controller
398f13bb5bad831550389be6ac3eb3e259642664
[ "Apache-2.0" ]
null
null
null
src/container/mesos-manager/mesos_manager/common/logger.py
chnyda/contrail-controller
398f13bb5bad831550389be6ac3eb3e259642664
[ "Apache-2.0" ]
1
2020-06-08T11:50:36.000Z
2020-06-08T11:50:36.000Z
# # Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. # """ Contrail Mesos Manager logger """ import logging import socket from cfgm_common.uve.nodeinfo.ttypes import NodeStatusUVE, NodeStatus import discoveryclient.client as client from mesos_manager.sandesh.mesos_manager import ttypes as sandesh from ...
35.79558
79
0.672943
20b8ffc062982e1686b34d805376623342b10fb2
9,513
py
Python
pandas/tests/indexes/timedeltas/test_constructors.py
oricou/pandas
9405e58d9268041f5416711c051cf5429a19bf49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
4
2020-03-31T23:31:24.000Z
2021-08-06T13:47:39.000Z
pandas/tests/indexes/timedeltas/test_constructors.py
oricou/pandas
9405e58d9268041f5416711c051cf5429a19bf49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
6
2021-05-31T01:10:55.000Z
2021-07-19T00:37:03.000Z
pandas/tests/indexes/timedeltas/test_constructors.py
oricou/pandas
9405e58d9268041f5416711c051cf5429a19bf49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-06-16T07:19:12.000Z
2021-12-16T10:24:44.000Z
from datetime import timedelta import numpy as np import pytest import pandas as pd from pandas import ( Timedelta, TimedeltaIndex, timedelta_range, to_timedelta, ) import pandas._testing as tm from pandas.core.arrays.timedeltas import ( TimedeltaArray, sequence_to_td64ns, ) class TestTimede...
34.34296
85
0.597393
816dd98bd22fbcd8dc82835cc6ea5dbf536948d0
7,622
py
Python
OpenSeesAPI/Model/Element/GeomTransf.py
alok230460/Open
ccd7c43c82c13bc87e6c208302f7448060b856ba
[ "MIT", "Unlicense" ]
41
2015-09-08T09:41:13.000Z
2022-03-26T08:40:02.000Z
OpenSeesAPI/Model/Element/GeomTransf.py
alok230460/Open
ccd7c43c82c13bc87e6c208302f7448060b856ba
[ "MIT", "Unlicense" ]
4
2015-09-11T17:20:46.000Z
2016-05-02T20:42:58.000Z
OpenSeesAPI/Model/Element/GeomTransf.py
alok230460/Open
ccd7c43c82c13bc87e6c208302f7448060b856ba
[ "MIT", "Unlicense" ]
31
2015-09-11T17:01:36.000Z
2021-11-08T17:48:27.000Z
""" This class is used to create the following OpenSees TCL Commands: The following contain information about transfType? and the args required for each of the available geometric transformation types: Linear Transformation PDelta Transformation Corotational Transformation """ __author__ = 'Nasser' from OpenSeesAPI.O...
69.926606
584
0.722645
6364ef749dd9d8398d497a38ec6dc5537127d2b5
8,427
py
Python
python/tvm/contrib/hexagon.py
mozga-intel/tvm
544724439efb9a795c92bd7ec9f7929e41c843c6
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
3
2021-05-08T17:04:39.000Z
2021-07-11T17:40:54.000Z
python/tvm/contrib/hexagon.py
mozga-intel/tvm
544724439efb9a795c92bd7ec9f7929e41c843c6
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
python/tvm/contrib/hexagon.py
mozga-intel/tvm
544724439efb9a795c92bd7ec9f7929e41c843c6
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
2
2021-09-30T21:06:03.000Z
2022-02-25T00:52:12.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.708
99
0.630711
0b9a2ae0eb1c9482c63c8d182cb9124e6614941a
40,802
py
Python
lcp-gen2/util.py
glevand/txt-trusted-boot
9ebaff953944375cbe735dc27b10b646e17a3a76
[ "BSD-3-Clause" ]
null
null
null
lcp-gen2/util.py
glevand/txt-trusted-boot
9ebaff953944375cbe735dc27b10b646e17a3a76
[ "BSD-3-Clause" ]
null
null
null
lcp-gen2/util.py
glevand/txt-trusted-boot
9ebaff953944375cbe735dc27b10b646e17a3a76
[ "BSD-3-Clause" ]
1
2021-11-17T17:36:15.000Z
2021-11-17T17:36:15.000Z
#!/usr/bin/python # Copyright (c) 2013, Intel Corporation. All rights reserved. # using print() built infunction, disable print statement from __future__ import print_function try: import os, sys except ImportError: raise ImportError, "import OS failed" from defines import DEFINES from struct import...
44.062635
185
0.613769
25c24c6e06c47ee2c1647b16790ae37d675b9d9b
7,888
py
Python
docs/conf.py
KirillVladimirov/Glauci
a0548ff3fade71e01dacef3a420c13ddde42a0fb
[ "Apache-1.1" ]
null
null
null
docs/conf.py
KirillVladimirov/Glauci
a0548ff3fade71e01dacef3a420c13ddde42a0fb
[ "Apache-1.1" ]
8
2019-03-19T11:00:52.000Z
2019-03-19T19:37:00.000Z
docs/conf.py
KirillVladimirov/Glauci
a0548ff3fade71e01dacef3a420c13ddde42a0fb
[ "Apache-1.1" ]
null
null
null
# glauci_site documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that ...
32.065041
87
0.700685
6ed65429649d9471a6cd277bde3bd19003beb8cd
3,426
py
Python
models/distances.py
smsharma/gamma-gp
573a9a7ecbf71a1e6c0d20e3d6ef189538c8b4e5
[ "MIT" ]
4
2020-12-01T01:23:44.000Z
2021-04-12T11:07:35.000Z
models/distances.py
smsharma/gamma-gp
573a9a7ecbf71a1e6c0d20e3d6ef189538c8b4e5
[ "MIT" ]
null
null
null
models/distances.py
smsharma/gamma-gp
573a9a7ecbf71a1e6c0d20e3d6ef189538c8b4e5
[ "MIT" ]
null
null
null
import gpytorch import torch class Distances: @staticmethod def default_postprocess_script(x): return x @classmethod def covar_dist_gcd(self, x1, x2, diag=False, last_dim_is_batch=False, dist_postprocess_func=default_postprocess_script, postprocess=True, lengthscale=1): r""" T...
34.959184
157
0.549329
dbc92ec7af41f3500c5664f1396cbec40e1379f2
6,581
py
Python
v0.9.2/signrpc/signer_pb2_grpc.py
lncm/lnd-proto
8caa6558efe043413560f807ef44b11699901d76
[ "MIT" ]
2
2020-02-10T09:46:06.000Z
2020-04-09T19:30:30.000Z
v0.9.2/signrpc/signer_pb2_grpc.py
lncm/lnd-rpc
8caa6558efe043413560f807ef44b11699901d76
[ "MIT" ]
1
2020-02-04T16:34:35.000Z
2020-02-04T16:34:35.000Z
v0.9.2/signrpc/signer_pb2_grpc.py
lncm/lnd-proto
8caa6558efe043413560f807ef44b11699901d76
[ "MIT" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from signrpc import signer_pb2 as signrpc_dot_signer__pb2 class SignerStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: channel: A grpc...
43.873333
90
0.754141
b2bc88b894dce5fbc7ed9d881da31e0553c983bf
487
py
Python
test_1C.py
edwardengland/Flood-Warning-System
ee765d619e8de3899cb0619e57020af275e8d71b
[ "MIT" ]
null
null
null
test_1C.py
edwardengland/Flood-Warning-System
ee765d619e8de3899cb0619e57020af275e8d71b
[ "MIT" ]
null
null
null
test_1C.py
edwardengland/Flood-Warning-System
ee765d619e8de3899cb0619e57020af275e8d71b
[ "MIT" ]
null
null
null
from floodsystem.stationdata import build_station_list as stations from haversine import haversine def test_1C(): def stations_within_radius(stations, centre, r): stations_within_r_of_x = [] for i in stations: distance_station_centre = haversine(i.coord, centre) if distance_stat...
34.785714
66
0.706366
bd5670c18d93a979167a550b7ce6126e76c39064
1,653
py
Python
tests/conftest.py
sturmianseq/zenmake
44f1131c1ab677d8c3c930150c63a7dde4ef7de0
[ "BSD-3-Clause" ]
2
2019-10-14T05:05:34.000Z
2022-03-28T04:55:00.000Z
tests/conftest.py
sturmianseq/zenmake
44f1131c1ab677d8c3c930150c63a7dde4ef7de0
[ "BSD-3-Clause" ]
42
2020-08-25T07:59:32.000Z
2021-11-15T03:12:29.000Z
tests/conftest.py
sturmianseq/zenmake
44f1131c1ab677d8c3c930150c63a7dde4ef7de0
[ "BSD-3-Clause" ]
1
2021-08-13T13:59:51.000Z
2021-08-13T13:59:51.000Z
# coding=utf-8 # # pylint: skip-file """ Copyright (c) 2019, Alexander Magola. All rights reserved. license: BSD 3-Clause License, see LICENSE for more details. """ import os import types import platform as _platform import pytest from zm import pyutils from zm.autodict import AutoDict from zm.buildconf import lo...
27.098361
83
0.714459
636dabeafd58c1d29c1c28152350b289387fe706
2,431
py
Python
tests/gof/test_cmodule.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
tests/gof/test_cmodule.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
tests/gof/test_cmodule.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
""" We don't have real tests for the cache, but it would be great to make them! But this one tests a current behavior that isn't good: the c_code isn't deterministic based on the input type and the op. """ import numpy as np import aesara from aesara.gof.cmodule import GCC_compiler class MyOp(aesara.compile.ops.D...
34.239437
76
0.646647
bcbc5ac2f781c3d9081d0a4a49b9ef958bc31ac5
265
py
Python
geeksaga/__init__.py
geekflow/archive
a94bd50363d1cc0004d8d0984599432a31e70035
[ "MIT" ]
null
null
null
geeksaga/__init__.py
geekflow/archive
a94bd50363d1cc0004d8d0984599432a31e70035
[ "MIT" ]
null
null
null
geeksaga/__init__.py
geekflow/archive
a94bd50363d1cc0004d8d0984599432a31e70035
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ geeksaga.init ~~~~~~~~~~~~~~ geeksaga init :copyright: (c) 2014 by geeksaga. :license: MIT LICENSE 2.0, see license for more details. """ import sys if 'lib' not in sys.path: sys.path.insert(0, 'lib') pass
16.5625
60
0.558491
167976b7f9d3e1a6336ee804d546ecc5b9269222
242
py
Python
main/test_fake.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
null
null
null
main/test_fake.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
null
null
null
main/test_fake.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
null
null
null
from django.test import TestCase class FakeTest(TestCase): """ This test is for running migrations only docker-compose run --rm serve ./manage.py test -v 2 --pattern="test_fake.py"" """ def test_fake(self): pass
22
81
0.652893
6037543f6e10db3a0b3d87f6fa6bf2d6945e54ba
1,194
py
Python
settings.py
peterjc/MDT-INTR-EXP-MET
86d422b83ea5ec2820cd8b31bc86b56ecbe034dd
[ "MIT" ]
null
null
null
settings.py
peterjc/MDT-INTR-EXP-MET
86d422b83ea5ec2820cd8b31bc86b56ecbe034dd
[ "MIT" ]
18
2021-08-11T08:21:03.000Z
2022-01-17T11:26:15.000Z
settings.py
peterjc/MDT-INTR-EXP-MET
86d422b83ea5ec2820cd8b31bc86b56ecbe034dd
[ "MIT" ]
1
2021-08-20T15:42:29.000Z
2021-08-20T15:42:29.000Z
from os import environ SESSION_CONFIG_DEFAULTS = dict(real_world_currency_per_point=0.1, participation_fee=5) SESSION_CONFIGS = [dict(name='farmer_framing', framing=0, num_demo_participants=None, app_sequence=['risk_attitude', 'volunteering', 'questionnaire_and_payment']), dict(name='community_centre_framing', framing=...
45.923077
318
0.78392
4dda9668527acadbb3981e8afc96b62e4ac4a870
3,724
py
Python
provisioning/miniprov/hare_mp/store.py
vaibhavparatwar/cortx-hare
b3c01a592e692a62ccdad03f587722b9a92f5adc
[ "Apache-2.0" ]
null
null
null
provisioning/miniprov/hare_mp/store.py
vaibhavparatwar/cortx-hare
b3c01a592e692a62ccdad03f587722b9a92f5adc
[ "Apache-2.0" ]
null
null
null
provisioning/miniprov/hare_mp/store.py
vaibhavparatwar/cortx-hare
b3c01a592e692a62ccdad03f587722b9a92f5adc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
34.165138
79
0.652524
9c144afba4f8f43ece8dc7d8f7b7b71059f36b6a
433
py
Python
plotly/validators/contour/_ids.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
2
2018-12-03T15:20:42.000Z
2018-12-03T15:20:47.000Z
plotly/validators/contour/_ids.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/contour/_ids.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
2
2019-06-17T01:35:57.000Z
2020-11-03T01:07:19.000Z
import _plotly_utils.basevalidators class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name='ids', parent_name='contour', **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_t...
30.928571
75
0.644342
be7aba63728a73e4a0c706791196efa28a097ed0
1,570
py
Python
var/spack/repos/builtin/packages/qwt/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/qwt/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/qwt/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.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 Qwt(QMakePackage): """The Qwt library contains GUI Components and utility classes which ar...
41.315789
95
0.70828
c6447e83e831f0526bbf335fa0ce420df00e6e6c
13,602
py
Python
routine_qiime2_analyses/_routine_q2_phylo.py
FranckLejzerowicz/routine_qiime2_analyses
855470e734b21de6cb420ee1d5145241a6b4782b
[ "BSD-3-Clause" ]
null
null
null
routine_qiime2_analyses/_routine_q2_phylo.py
FranckLejzerowicz/routine_qiime2_analyses
855470e734b21de6cb420ee1d5145241a6b4782b
[ "BSD-3-Clause" ]
null
null
null
routine_qiime2_analyses/_routine_q2_phylo.py
FranckLejzerowicz/routine_qiime2_analyses
855470e734b21de6cb420ee1d5145241a6b4782b
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2020, Franck Lejzerowicz. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # -----------------------------------------------------------...
55.292683
129
0.542788
87bd538f7e73520049a7f3faeed35fe07c385cc6
7,108
py
Python
atlassian/jira8.py
simonrupf/atlassian-python-api
390b70101c84e933018605edd5fef549b35de030
[ "Apache-2.0" ]
1
2019-08-10T15:24:52.000Z
2019-08-10T15:24:52.000Z
atlassian/jira8.py
simonrupf/atlassian-python-api
390b70101c84e933018605edd5fef549b35de030
[ "Apache-2.0" ]
1
2020-07-20T14:06:17.000Z
2020-08-11T20:21:59.000Z
atlassian/jira8.py
simonrupf/atlassian-python-api
390b70101c84e933018605edd5fef549b35de030
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import logging from .rest_client import AtlassianRestAPI log = logging.getLogger(__name__) class Jira8(AtlassianRestAPI): # API/2 Get permissions def get_permissions(self, project_id=None, project_key=None, issue_id=None, issue_key=None): """ Returns all permissions in the sys...
29.251029
105
0.602279
e39eb9c2419db9e8c60efc95b9ee5288a0045420
8,227
py
Python
aql/entity/aql_entity.py
menify/aqualid
58b6d552d677272aaa3bbfb0fe5601c46e126c7e
[ "MIT" ]
1
2019-04-22T09:09:46.000Z
2019-04-22T09:09:46.000Z
aql/entity/aql_entity.py
JamesLinus/aqualid
58b6d552d677272aaa3bbfb0fe5601c46e126c7e
[ "MIT" ]
1
2015-01-10T23:12:29.000Z
2015-01-10T23:12:29.000Z
aql/entity/aql_entity.py
menify/aqualid
58b6d552d677272aaa3bbfb0fe5601c46e126c7e
[ "MIT" ]
null
null
null
# # Copyright (c) 2014-2015 The developers of Aqualid project # # 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, mo...
28.467128
80
0.473076
a40d600f17d45dfd0190e0cb420c7afbc337a08a
11,129
py
Python
src/sdk/pynni/nni/nas/pytorch/mutables.py
LIIXII/nni
f1ce1648b24d2668c2eb8fa02b158a7b6da80ea4
[ "MIT" ]
2
2020-04-19T15:57:46.000Z
2020-04-28T18:14:19.000Z
src/sdk/pynni/nni/nas/pytorch/mutables.py
bobo4u/nni
f1ce1648b24d2668c2eb8fa02b158a7b6da80ea4
[ "MIT" ]
null
null
null
src/sdk/pynni/nni/nas/pytorch/mutables.py
bobo4u/nni
f1ce1648b24d2668c2eb8fa02b158a7b6da80ea4
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import logging import torch.nn as nn from nni.nas.pytorch.utils import global_mutable_counting logger = logging.getLogger(__name__) class Mutable(nn.Module): """ Mutable is designed to function as a normal layer, with all necessary o...
40.469091
123
0.635547
145303c5523f5021488010f8facc5c7bd46a9cd0
469
py
Python
05for.py
Ulyssesss/Learn-Python
03f0b0ff52158ea239e89e8604c2744fe9a6e341
[ "Apache-2.0" ]
1
2017-08-27T15:36:25.000Z
2017-08-27T15:36:25.000Z
05for.py
Ulyssesss/learn-python
03f0b0ff52158ea239e89e8604c2744fe9a6e341
[ "Apache-2.0" ]
null
null
null
05for.py
Ulyssesss/learn-python
03f0b0ff52158ea239e89e8604c2744fe9a6e341
[ "Apache-2.0" ]
null
null
null
a = range(5) b = range(3, 5) print(a) print(b) print(list(a)) print(list(b)) print(tuple(a)) print(tuple(b)) names = ['Jack', 'Bob', 'Tony'] for name in names: print(name) for x in range(10): print(x) print('-----') i = 0 while i < 3: print(i) i = i + 1 print('-----') j = 0 while j < 100: prin...
11.166667
31
0.471215
2466726e5c726acbc73ffed0478270f455ddb6a7
494
py
Python
ex9.py
BjornChrisnach/Learn_python_3_The_hard_way
ab187c4755d4878724761bbe5f28678fce27cfc7
[ "MIT" ]
null
null
null
ex9.py
BjornChrisnach/Learn_python_3_The_hard_way
ab187c4755d4878724761bbe5f28678fce27cfc7
[ "MIT" ]
null
null
null
ex9.py
BjornChrisnach/Learn_python_3_The_hard_way
ab187c4755d4878724761bbe5f28678fce27cfc7
[ "MIT" ]
null
null
null
# Here's some new strange stuff. remember type it exactly. # store the days in days days = "Mon Tue Wed Thu Fri Sat Sun" # store the months in months months = "Jan\nFeb\nMar\nApr\nMay\nJun\njul\nAug" # print the days print("Here are the days: ", days) # print the months print("Here are the months: ", months) # print...
26
58
0.712551
7476889b700b2bdd183843104eb74ddd3b5a7336
16,277
py
Python
main.py
mohamed-abdelaziz721/Soud-Equalizer
1cc78fd37eca098727582c3569c1bb68148852fe
[ "MIT" ]
null
null
null
main.py
mohamed-abdelaziz721/Soud-Equalizer
1cc78fd37eca098727582c3569c1bb68148852fe
[ "MIT" ]
null
null
null
main.py
mohamed-abdelaziz721/Soud-Equalizer
1cc78fd37eca098727582c3569c1bb68148852fe
[ "MIT" ]
null
null
null
import sys, os, shutil from librosa.core.spectrum import _spectrogram import numpy as np import pyqtgraph as pg from PyQt5 import QtWidgets as qtw from PyQt5 import QtCore as qtc from PyQt5 import QtGui as qtg from datetime import datetime import pyqtgraph import pyqtgraph.exporters import matplotlib.pyplot as plt from...
44.84022
173
0.67623
c7f4c5208ef7644eb0cba721c0758433a8d11914
85,211
py
Python
nova/tests/unit/virt/libvirt/test_imagebackend.py
LinShuicheng/stx-nova
0b03ed64e2c3aa32eb07bd7e315ca1248d9c451c
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/libvirt/test_imagebackend.py
LinShuicheng/stx-nova
0b03ed64e2c3aa32eb07bd7e315ca1248d9c451c
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/libvirt/test_imagebackend.py
LinShuicheng/stx-nova
0b03ed64e2c3aa32eb07bd7e315ca1248d9c451c
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Grid Dynamics # 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...
43.968524
79
0.623957
b0458f0dfb00a7a8b3cd980c9c4ff982e3fba499
39,458
py
Python
singer_sdk/streams/core.py
meltano/sdk
83dde4fe922f9f91bd3c57277849a2a2daa8f09a
[ "Apache-2.0" ]
13
2021-06-21T17:30:32.000Z
2021-12-06T18:45:34.000Z
singer_sdk/streams/core.py
meltano/sdk
83dde4fe922f9f91bd3c57277849a2a2daa8f09a
[ "Apache-2.0" ]
null
null
null
singer_sdk/streams/core.py
meltano/sdk
83dde4fe922f9f91bd3c57277849a2a2daa8f09a
[ "Apache-2.0" ]
null
null
null
"""Stream abstract class.""" import abc import copy import datetime import json import logging from os import PathLike from pathlib import Path from types import MappingProxyType from typing import ( Any, Callable, Dict, Generator, Iterable, List, Mapping, Optional, Tuple, Type,...
34.612281
88
0.616225
c05bd9eeb96614475b1276eb4066b357a051df2d
3,683
py
Python
cbstar/comicfile.py
chivalry/cbstar
2d4badfb0dacfbb4208d5b863a828e1e923a7353
[ "MIT" ]
1
2018-07-04T21:18:30.000Z
2018-07-04T21:18:30.000Z
cbstar/comicfile.py
chivalry/cbstar
2d4badfb0dacfbb4208d5b863a828e1e923a7353
[ "MIT" ]
null
null
null
cbstar/comicfile.py
chivalry/cbstar
2d4badfb0dacfbb4208d5b863a828e1e923a7353
[ "MIT" ]
null
null
null
from zipfile import ZipFile from zipfile import ZIP_DEFLATED from enum import Enum import os from os import path from tempfile import TemporaryDirectory import shutil class ComicFile(): """An object representing a comic book archive file""" class FileType(Enum): none = 0 zip = 1 rar = ...
34.101852
86
0.582134
dc53631b9ad1fc9659b36cfc470792c8e28dc6d2
462
py
Python
tests/assets/test_mock_service.py
Vikash-Kothary/aem-cmd-python
a01d4b9cbc34c326f74c32a0015e0c77efb6be91
[ "MIT" ]
2
2020-07-01T03:36:45.000Z
2022-02-09T06:16:34.000Z
tests/assets/test_mock_service.py
Vikash-Kothary/aem-cmd-python
a01d4b9cbc34c326f74c32a0015e0c77efb6be91
[ "MIT" ]
4
2019-11-13T23:28:01.000Z
2019-11-25T13:34:17.000Z
tests/assets/test_mock_service.py
Vikash-Kothary/aem-cmd
a01d4b9cbc34c326f74c32a0015e0c77efb6be91
[ "MIT" ]
null
null
null
# coding: utf-8 from nose.tools import eq_ from test_utils.mocks.dam import MockAssetsService def test_mock_assets_service(): s = MockAssetsService() eq_(1, len(s.repo)) s.add_folder('/', 'my_folder') eq_(2, len(s.repo)) eq_(s.repo['/'], s.repo['/my_folder']['parent']) s.add_asset('/my_folder'...
30.8
76
0.645022
4afae7a1e5ff273d3a8cb4eb679b44f3e428d1d9
1,524
py
Python
30-Days-of-Code/Day2:_Operators.py
sanskritilakhmani/Hackerrank
500694c1e6888fc657becc2c503fb5860bf39ec7
[ "Apache-2.0" ]
1
2022-02-16T18:37:49.000Z
2022-02-16T18:37:49.000Z
30-Days-of-Code/Day2:_Operators.py
TAFFAHACHRAF/Hackerrank
500694c1e6888fc657becc2c503fb5860bf39ec7
[ "Apache-2.0" ]
null
null
null
30-Days-of-Code/Day2:_Operators.py
TAFFAHACHRAF/Hackerrank
500694c1e6888fc657becc2c503fb5860bf39ec7
[ "Apache-2.0" ]
4
2021-07-18T16:24:02.000Z
2022-02-15T21:42:03.000Z
# Task # Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip), and tax percent (the # percentage of the meal price being added as tax) for a meal, find and print the meal's total cost. # Note: Be sure to use precise values for your calculations, or you may end ...
29.307692
133
0.727034
50bdedf7e35a4cd407a32de49e1d6065fa6f412d
338
py
Python
codeChef/practice/easy/candle.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-09-30T19:53:08.000Z
2020-09-30T19:53:08.000Z
codeChef/practice/easy/candle.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
null
null
null
codeChef/practice/easy/candle.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-10-15T09:10:57.000Z
2020-10-15T09:10:57.000Z
for _ in range(int(raw_input())): candles = map(int, raw_input().split()) m1 = min(candles) i1 = candles.index(m1) if i1 == 0: candles.remove(m1) m2 = min(candles) i2 = candles.index(m2) + 1 if m1 == m2: print str(i2) * (m2+1) else: print '1' + '0' * (m1+1) else: prin...
21.125
41
0.523669
14dddc3390551a6be0cef97fb099bedaa21f85c4
6,697
py
Python
gpMgmt/bin/gpload_test/gpload2/TEST_local_config.py
abhisheknishant138/gpdb
1805743d505837026aa137cabb8a7072d745a129
[ "PostgreSQL", "Apache-2.0" ]
4
2017-11-28T08:12:58.000Z
2020-10-28T04:15:52.000Z
gpMgmt/bin/gpload_test/gpload2/TEST_local_config.py
abhisheknishant138/gpdb
1805743d505837026aa137cabb8a7072d745a129
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gpload_test/gpload2/TEST_local_config.py
abhisheknishant138/gpdb
1805743d505837026aa137cabb8a7072d745a129
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
from TEST_local_base import * @prepare_before_test(num=44, cmd="-h "+str(hostNameAddrs)) def test_44_gpload_config_h(): "44 gpload command config test -h hostname" copy_data('external_file_01.txt', 'data_file.txt') write_config_file( host="",format='text',file='data_file.txt',table='texttable',delimiter="'...
44.946309
131
0.728386
f90120525416b36b2982e854f266273384b07f09
884
py
Python
add_function.py
jlmonge/FlaskDatabaseQuery
bd3cb09f64ff120b3a02a1e8d508a9583712f557
[ "OML" ]
null
null
null
add_function.py
jlmonge/FlaskDatabaseQuery
bd3cb09f64ff120b3a02a1e8d508a9583712f557
[ "OML" ]
null
null
null
add_function.py
jlmonge/FlaskDatabaseQuery
bd3cb09f64ff120b3a02a1e8d508a9583712f557
[ "OML" ]
null
null
null
import json #from os import get_exec_path, set_inheritable #pass in strings or the format of the JSON WILL NOT HAVE STRINGS IN IT !! def add_to_json(data ,ID, name, category, main_category, currency, deadline, goal, launched, pledged, state, backers, country, usd_pledged, usd_pledged_real): entry = { ...
29.466667
174
0.658371
c4413a9f4c7dab4f3769f867b279b95daa9d3327
4,238
py
Python
lale/lib/autoai_ts_libs/window_standard_row_mean_center_uts.py
mfeffer/lale
57b58843c7c14dc2e5658244280f2c1918bf030b
[ "Apache-2.0" ]
265
2019-08-06T14:45:43.000Z
2022-03-30T23:57:48.000Z
lale/lib/autoai_ts_libs/window_standard_row_mean_center_uts.py
mfeffer/lale
57b58843c7c14dc2e5658244280f2c1918bf030b
[ "Apache-2.0" ]
467
2019-08-08T02:01:21.000Z
2022-03-25T16:12:00.000Z
lale/lib/autoai_ts_libs/window_standard_row_mean_center_uts.py
mfeffer/lale
57b58843c7c14dc2e5658244280f2c1918bf030b
[ "Apache-2.0" ]
81
2019-08-07T19:59:31.000Z
2022-03-31T09:11:58.000Z
# Copyright 2020 IBM 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 writing, ...
33.904
152
0.597924
13007e7270736d4e08062eb9ac1ac1db6e43bb57
10,849
py
Python
src/models/SIDPAMIwsa_model.py
BalinLin/SID
8c2dfb0e671ee9333945545c82a12cfe227813cd
[ "MIT" ]
44
2020-11-18T00:15:52.000Z
2022-03-21T12:33:33.000Z
src/models/SIDPAMIwsa_model.py
WeiGai/SID
a1eab049a08359fd041bc67205177c73902e2a37
[ "MIT" ]
17
2020-11-20T02:45:54.000Z
2022-03-22T18:58:26.000Z
src/models/SIDPAMIwsa_model.py
WeiGai/SID
a1eab049a08359fd041bc67205177c73902e2a37
[ "MIT" ]
11
2020-11-18T00:15:55.000Z
2021-12-24T14:21:43.000Z
import torch from collections import OrderedDict import time import numpy as np import torch.nn.functional as F from util.image_pool import ImagePool from .base_model import BaseModel from . import networks import util.util as util from .distangle_model import DistangleModel from PIL import ImageOps,Image from .loss_fu...
43.051587
138
0.597751
e24e33338083e264318f388009a28e27bcbc867b
192
py
Python
read/humidity.py
mawdesley/sensors
7d77be744aff405f28e7a1bf87cc8320e660d66e
[ "Unlicense" ]
null
null
null
read/humidity.py
mawdesley/sensors
7d77be744aff405f28e7a1bf87cc8320e660d66e
[ "Unlicense" ]
null
null
null
read/humidity.py
mawdesley/sensors
7d77be744aff405f28e7a1bf87cc8320e660d66e
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 import Adafruit_DHT sensor = Adafruit_DHT.DHT22 pin = 24 humidity, _ = Adafruit_DHT.read_retry(sensor, pin) if humidity is not None: print("{0:0.1f}".format(humidity))
16
50
0.734375
cb3237e72bb9cc550f61ec5a10dae9357621c44d
3,138
py
Python
envoy/tests/test_envoy.py
andersenleo/integrations-core
e521b88e32820a286a70c7797a663d4f9ba41110
[ "BSD-3-Clause" ]
null
null
null
envoy/tests/test_envoy.py
andersenleo/integrations-core
e521b88e32820a286a70c7797a663d4f9ba41110
[ "BSD-3-Clause" ]
null
null
null
envoy/tests/test_envoy.py
andersenleo/integrations-core
e521b88e32820a286a70c7797a663d4f9ba41110
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import mock from datadog_checks.envoy import Envoy from datadog_checks.envoy.metrics import METRIC_PREFIX, METRICS from .common import INSTANCES, response class TestEnvoy: CHECK_NAME = 'envoy' def tes...
35.659091
101
0.664436
b01fc70c5109cd7bb8470439942eb8eda86e3254
1,426
py
Python
K-th Smallest Prime Fraction.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
K-th Smallest Prime Fraction.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
K-th Smallest Prime Fraction.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
''' A sorted list A contains 1, plus some number of primes. Then, for every p < q in the list, we consider the fraction p/q. What is the K-th smallest fraction considered? Return your answer as an array of ints, where answer[0] = p and answer[1] = q. Examples: Input: A = [1, 2, 3, 5], K = 3 Output: [2, 5] Explanati...
27.960784
126
0.498597
29aa641f91425cdb58e8fc0f6f1e11e3eda4079a
4,590
py
Python
scripts/validation/DS/compare_DS_gen.py
FMS-Mu2e/helicalc
557ab63696459807998a9ab44f92badd62e93a2a
[ "MIT" ]
null
null
null
scripts/validation/DS/compare_DS_gen.py
FMS-Mu2e/helicalc
557ab63696459807998a9ab44f92badd62e93a2a
[ "MIT" ]
null
null
null
scripts/validation/DS/compare_DS_gen.py
FMS-Mu2e/helicalc
557ab63696459807998a9ab44f92badd62e93a2a
[ "MIT" ]
2
2020-05-22T15:54:38.000Z
2022-02-04T23:51:27.000Z
import sys import numpy as np import pandas as pd from helicalc import helicalc_dir, helicalc_data from helicalc.coil import CoilIntegrator from helicalc.busbar import ArcIntegrator3D from helicalc.geometry import read_solenoid_geom_combined from helicalc.solenoid_geom_funcs import load_all_geoms from helicalc.constant...
36.141732
97
0.664924
0f63c48072a774e722b3e91329e7cf56270f50b8
241
py
Python
config.example.py
C4ptainCrunch/gehol-tools
cb139bc6bc2a703bd4a792bcccbbbeb672ff683f
[ "Apache-2.0" ]
1
2015-02-09T08:32:12.000Z
2015-02-09T08:32:12.000Z
config.example.py
C4ptainCrunch/gehol-tools
cb139bc6bc2a703bd4a792bcccbbbeb672ff683f
[ "Apache-2.0" ]
null
null
null
config.example.py
C4ptainCrunch/gehol-tools
cb139bc6bc2a703bd4a792bcccbbbeb672ff683f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- MAX_URL = 10 DOMAIN = "http://127.0.0.1:5000/" # with trailing "/" KEY = "à!èa(§aà'èçy§â'ygùhm;rth:s,<mdjkbgm<kfh)" # Should be random ! DEBUG = True ROOT_DIR = "/home/nikita/code/gehol-tools/"
26.777778
69
0.630705
8ed2782a5a2be77a51f8d79755bcab1f07e29c57
3,201
py
Python
esmvaltool/cmorizers/obs/nsidc_common.py
cffbots/ESMValTool
a9b6592a02f2085634a214ff5f36a736fa18ff47
[ "Apache-2.0" ]
148
2017-02-07T13:16:03.000Z
2022-03-26T02:21:56.000Z
esmvaltool/cmorizers/obs/nsidc_common.py
cffbots/ESMValTool
a9b6592a02f2085634a214ff5f36a736fa18ff47
[ "Apache-2.0" ]
2,026
2017-02-03T12:57:13.000Z
2022-03-31T15:11:51.000Z
esmvaltool/cmorizers/obs/nsidc_common.py
cffbots/ESMValTool
a9b6592a02f2085634a214ff5f36a736fa18ff47
[ "Apache-2.0" ]
113
2017-01-27T13:10:19.000Z
2022-02-03T13:42:11.000Z
"""Common tools to CMORize NSIDC-0116 northern and sothern data.""" import logging import os import glob import numpy as np import iris from iris.coords import AuxCoord from iris.cube import Cube from .utilities import fix_var_metadata, save_variable, set_global_atts logger = logging.getLogger(__name__) def cmori...
35.175824
78
0.651984
63dc850dd229942df720e81864ba33e73eb2f7ae
410
py
Python
practice_problems/MilitaryTimeConverter.py
smenon8/practice_scripts
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
null
null
null
practice_problems/MilitaryTimeConverter.py
smenon8/practice_scripts
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
1
2017-02-13T20:48:06.000Z
2017-02-13T20:48:06.000Z
practice_problems/MilitaryTimeConverter.py
smenon8/AlgDataStruct_practice
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
null
null
null
#!/bin/python3 import sys time = input().strip() l = time.split(':') if 'PM' in l[2] and l[0] != '12': l[0] = str(int(l[0]) + 12) l[2] = l[2].replace('PM','') else: if 'AM' in l[2] and l[0] != '12': l[2] = l[2].replace('AM','') if l[0] == '12' and 'AM' in l[2]: l[0] = '00' ...
17.826087
38
0.42439
b5757999719930c01874bd1e6fbc0460b3a1a5a3
1,108
py
Python
greedy_algorithms/2_maximum_value_of_the_loot/fractional_knapsack.py
Desaiakshata/Algorithms-problems
90f4e40ba05e4bdfc783614bb70b9156b05eec0b
[ "MIT" ]
null
null
null
greedy_algorithms/2_maximum_value_of_the_loot/fractional_knapsack.py
Desaiakshata/Algorithms-problems
90f4e40ba05e4bdfc783614bb70b9156b05eec0b
[ "MIT" ]
null
null
null
greedy_algorithms/2_maximum_value_of_the_loot/fractional_knapsack.py
Desaiakshata/Algorithms-problems
90f4e40ba05e4bdfc783614bb70b9156b05eec0b
[ "MIT" ]
null
null
null
# Uses python3 import sys def get_optimal_value(capacity, weights, values): value = 0. a=0 weight_val = list(map(lambda v,w: v/w ,values,weights)) # write your code here while a>=0: print("val:",value) max = weight_val[0] ind = 0 for i in range(len(weight_v...
26.380952
63
0.528881
37709203953affbd67bfafe10a8ae4465a264e05
3,321
py
Python
LR/lr/lib/resumption_token.py
LearningRegistry/LearningRegistry
d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2
[ "Apache-2.0" ]
26
2015-04-14T03:11:58.000Z
2022-01-06T14:31:07.000Z
LR/lr/lib/resumption_token.py
LearningRegistry/LearningRegistry
d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2
[ "Apache-2.0" ]
11
2015-04-03T21:54:03.000Z
2017-05-02T17:20:03.000Z
LR/lr/lib/resumption_token.py
LearningRegistry/LearningRegistry
d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2
[ "Apache-2.0" ]
16
2015-02-11T09:30:18.000Z
2020-11-20T02:06:24.000Z
# -*- coding: utf-8 -*- ''' Created on Aug 17, 2011 @author: jklo ''' # MIT licensed JWT implementation: https://github.com/progrium/pyjwt import jwt import datetime __JWT_ALG = "HS256" def parse_token(serviceid, token): decoded = {} try: decoded = jwt.decode(str(token), str(serviceid), __JWT_ALG)...
27
147
0.655224
83d5b87c87ce318db24cf5a7cc18cc04ae189e19
7,163
py
Python
scripts/manage_translations.py
AlexHill/django
fe1389e911b0cdc487e5547c09c920c12f4e1ce0
[ "BSD-3-Clause" ]
1
2019-09-21T06:40:37.000Z
2019-09-21T06:40:37.000Z
scripts/manage_translations.py
AlexHill/django
fe1389e911b0cdc487e5547c09c920c12f4e1ce0
[ "BSD-3-Clause" ]
null
null
null
scripts/manage_translations.py
AlexHill/django
fe1389e911b0cdc487e5547c09c920c12f4e1ce0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # This python file contains utility scripts to manage Django translations. # It has to be run inside the django git root directory. # # The following commands are available: # # * update_catalogs: check for new strings in core and contrib catalogs, and # output how much string...
38.304813
113
0.614547
4f71204e46837b32cfd2b3a3a3c79870111f8905
1,998
py
Python
tests/__init__.py
arvy/sperf
c047ae5f3b1daf70cc227784197e4ef37caaf556
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
arvy/sperf
c047ae5f3b1daf70cc227784197e4ef37caaf556
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
arvy/sperf
c047ae5f3b1daf70cc227784197e4ef37caaf556
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 DataStax, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
35.678571
102
0.722222
a360458a3c13c747395df458158320d83405468f
6,529
py
Python
accelbyte_py_sdk/api/lobby/operations/third_party/admin_delete_third_part_c9d441.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/lobby/operations/third_party/admin_delete_third_part_c9d441.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
accelbyte_py_sdk/api/lobby/operations/third_party/admin_delete_third_part_c9d441.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # pylint: disable=duplicate-code # pylint: disable=li...
27.901709
139
0.65232
b6e29be2b387b6bbf3551bfe343c064f4e021494
5,207
py
Python
scipy/constants.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
1
2021-12-17T11:03:13.000Z
2021-12-17T11:03:13.000Z
scipy/constants.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
1
2020-02-05T00:14:43.000Z
2020-02-06T09:22:49.000Z
scipy/constants.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from scipy import constants print(constants.pi) print(dir(constants)) print(constants.yotta) #1e+24 print(constants.zetta) #1e+21 print(constants.exa) #1e+18 print(constants.peta) #1000000000000000.0 print(constants.tera) #1000000000000.0 print(constan...
38.286765
58
0.70482
b0d066e700452a62c33ca5bee90145e9e47116d6
289
py
Python
Mini Projects/Extension Changer/Extension_Changer.py
Iamtripathisatyam/Python_Beginner_Level_Projects
993ebe862a90e42db83cd2aa86943950d5ddd4a6
[ "MIT" ]
4
2021-05-03T10:20:52.000Z
2021-05-04T05:42:32.000Z
Mini Projects/Extension Changer/Extension_Changer.py
Sujit199696/Python_Beginner_Level_Projects
dad2deb38c02e36378823c57ef09c2911f66dda8
[ "MIT" ]
null
null
null
Mini Projects/Extension Changer/Extension_Changer.py
Sujit199696/Python_Beginner_Level_Projects
dad2deb38c02e36378823c57ef09c2911f66dda8
[ "MIT" ]
1
2021-05-04T01:58:07.000Z
2021-05-04T01:58:07.000Z
import os # Jump to directory where you want to edit extension os.chdir("C:\\Users\\Dell\\Desktop\ha") files = os.listdir() C = ['.pdf'] Cs = [file for file in files if os.path.splitext(file)[1].lower() in C] for i in Cs: base = os.path.splitext(i)[0] os.rename(i, base + '.docx')
28.9
71
0.650519
92483f1e7511eaa00ebbe32dda12452c3bb51e78
18,906
py
Python
pandas/tests/sparse/test_combine_concat.py
blueenvelope31/pandas
6e1f41b45a0d08f662b794ed98695b8595f39023
[ "BSD-3-Clause" ]
4
2021-03-02T19:57:18.000Z
2021-06-20T19:23:57.000Z
pandas/tests/sparse/test_combine_concat.py
16umm001/pandas
a2e599499667b256bc5b8b13a75f0601eccfd432
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2016-08-15T12:35:16.000Z
2016-08-15T12:35:16.000Z
pandas/tests/sparse/test_combine_concat.py
16umm001/pandas
a2e599499667b256bc5b8b13a75f0601eccfd432
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2017-05-27T03:25:12.000Z
2021-09-21T21:51:12.000Z
# pylint: disable-msg=E1101,W0612 import pytest import numpy as np import pandas as pd import pandas.util.testing as tm from pandas.errors import PerformanceWarning import itertools class TestSparseArrayConcat(object): @pytest.mark.parametrize('kind', ['integer', 'block']) def test_basic(self, kind): ...
41.010846
79
0.58648
91d1d22841c8acef0745d98d4fde518574921bd5
213
py
Python
lucida/commandcenter/controllers/__init__.py
rlugojr/lucida
a2a59d131dbf0835572faf0a968359829f199aa3
[ "BSD-3-Clause" ]
1
2017-02-09T09:24:21.000Z
2017-02-09T09:24:21.000Z
lucida/commandcenter/controllers/__init__.py
rlugojr/lucida
a2a59d131dbf0835572faf0a968359829f199aa3
[ "BSD-3-Clause" ]
1
2021-02-08T20:25:37.000Z
2021-02-08T20:25:37.000Z
lucida/commandcenter/controllers/__init__.py
iru-ken/lucida
cd060b0aa0d8721828a8f37b271e1aa83e76ea6f
[ "BSD-3-Clause" ]
1
2017-03-19T11:02:14.000Z
2017-03-19T11:02:14.000Z
__all__ = ['Main', 'AccessManagement', 'WebSocket', 'Service', 'Graph', 'ThriftClient', 'Create', 'Learn', 'Infer', 'QueryClassifier', 'Config', 'User', 'Utilities', 'Database', 'Memcached']
53.25
85
0.596244
7323687f9994c0fbf3f1819585a700a63d3a1435
256
py
Python
scheduler/__init__.py
JarnoRFB/MoAI-scheduler
6891b39d6b4b21188458b8ab5701278fba435173
[ "MIT" ]
2
2019-02-19T09:34:37.000Z
2019-05-22T01:39:52.000Z
scheduler/__init__.py
JarnoRFB/MoAI-scheduler
6891b39d6b4b21188458b8ab5701278fba435173
[ "MIT" ]
null
null
null
scheduler/__init__.py
JarnoRFB/MoAI-scheduler
6891b39d6b4b21188458b8ab5701278fba435173
[ "MIT" ]
1
2018-11-07T22:10:17.000Z
2018-11-07T22:10:17.000Z
from scheduler.instructor import Instructor from scheduler.timeslot import Timeslot from scheduler.room import Room from scheduler.timetable import Timetable from scheduler.assignment import Assignment from scheduler.exceptions import ImpossibleAssignments
42.666667
54
0.886719
830e5913a0a452096a36a6ef89bacea59fe10f97
4,087
py
Python
run.py
benjefferies/branch-protection-bot
76b8a9d745a68c6a6e9b4bf745d4b32ad805e9a1
[ "MIT" ]
57
2019-11-14T16:20:39.000Z
2022-03-11T00:22:13.000Z
run.py
benjefferies/branch-protection-bot
76b8a9d745a68c6a6e9b4bf745d4b32ad805e9a1
[ "MIT" ]
10
2019-11-15T21:13:21.000Z
2021-09-18T17:54:59.000Z
run.py
benjefferies/branch-protection-bot
76b8a9d745a68c6a6e9b4bf745d4b32ad805e9a1
[ "MIT" ]
19
2019-12-17T16:38:12.000Z
2022-02-04T12:39:16.000Z
#!/usr/bin/env python from distutils.util import strtobool from time import sleep import configargparse from github3 import login from github3.exceptions import NotFoundError, GitHubException def toggle_enforce_admin(options): access_token, owner, repo_name, branch_name, retries, github_repository = options.acce...
48.654762
227
0.705652
6f3ccbf0cca722f19745f68a395bdff7fb1bf04e
6,072
py
Python
owlbot.py
poplindata/python-bigquery-sqlalchemy
f1a249e30050d1d92e4906b4676a6fa06faff1e2
[ "MIT" ]
null
null
null
owlbot.py
poplindata/python-bigquery-sqlalchemy
f1a249e30050d1d92e4906b4676a6fa06faff1e2
[ "MIT" ]
null
null
null
owlbot.py
poplindata/python-bigquery-sqlalchemy
f1a249e30050d1d92e4906b4676a6fa06faff1e2
[ "MIT" ]
null
null
null
# 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, s...
29.333333
84
0.596014
0baee2c49d1621a127b5dc5b86bf5bbfdb3b375e
18,499
py
Python
espnet/nets/pytorch_backend/tacotron2/decoder.py
kazu-hama/espnet
4124efe3a474f54dab1c2f14463e56f1cdf818a4
[ "Apache-2.0" ]
16
2020-05-05T10:37:12.000Z
2022-01-05T08:23:59.000Z
espnet/nets/pytorch_backend/tacotron2/decoder.py
kazu-hama/espnet
4124efe3a474f54dab1c2f14463e56f1cdf818a4
[ "Apache-2.0" ]
7
2020-05-20T11:40:12.000Z
2021-12-07T14:33:09.000Z
espnet/nets/pytorch_backend/tacotron2/decoder.py
kazu-hama/espnet
4124efe3a474f54dab1c2f14463e56f1cdf818a4
[ "Apache-2.0" ]
2
2020-05-07T07:17:57.000Z
2021-01-11T10:48:19.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2019 Nagoya University (Tomoki Hayashi) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import six import torch import torch.nn.functional as F from espnet.nets.pytorch_backend.rnn.attentions import AttForwardTA def decoder_init(m): if isi...
40.041126
110
0.584248
584116d2c6671087d6f8ae629c58a69551f4868f
17,441
py
Python
deployment/TraceServer/entities/accounts/artifactsHelper.py
capitalch/trace
530893ae212b1809b2785c4ba01c538e10ecc2fc
[ "Apache-2.0" ]
null
null
null
deployment/TraceServer/entities/accounts/artifactsHelper.py
capitalch/trace
530893ae212b1809b2785c4ba01c538e10ecc2fc
[ "Apache-2.0" ]
35
2020-05-22T03:09:09.000Z
2021-04-22T18:10:46.000Z
dev/TraceServer/entities/accounts/artifactsHelper.py
capitalch/trace
530893ae212b1809b2785c4ba01c538e10ecc2fc
[ "Apache-2.0" ]
null
null
null
import pandas as pd import psycopg2 from psycopg2.extras import RealDictCursor import numpy as np import simplejson as json from decimal import Decimal from nested_lookup import nested_lookup from dateutil.parser import parse from .sql import allSqls from postgres import execSql, execSqls, getPool from postgresHelper i...
36.640756
135
0.593257
ba0d63c12011937bebc5e1995f7cd5f7df23c083
11,475
py
Python
python/ray/rllib/env/async_vector_env.py
zhiyun/ray
99d0d96aeff5a6c0756e63562b2d61606c75c536
[ "Apache-2.0" ]
null
null
null
python/ray/rllib/env/async_vector_env.py
zhiyun/ray
99d0d96aeff5a6c0756e63562b2d61606c75c536
[ "Apache-2.0" ]
null
null
null
python/ray/rllib/env/async_vector_env.py
zhiyun/ray
99d0d96aeff5a6c0756e63562b2d61606c75c536
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from ray.rllib.env.serving_env import ServingEnv from ray.rllib.env.vector_env import VectorEnv from ray.rllib.env.multi_agent_env import MultiAgentEnv class AsyncVectorEnv(object): """The lowest-level en...
36.313291
79
0.600523
a62424529f75da3f66db04f77563701ccbd071e7
7,289
py
Python
burton/parser/strings.py
Extensis/Burton
a948f045a021f468ef34d6e8e6b8a5caaa132e27
[ "MIT" ]
2
2018-01-09T23:32:35.000Z
2018-08-10T23:48:33.000Z
burton/parser/strings.py
Extensis/Burton
a948f045a021f468ef34d6e8e6b8a5caaa132e27
[ "MIT" ]
null
null
null
burton/parser/strings.py
Extensis/Burton
a948f045a021f468ef34d6e8e6b8a5caaa132e27
[ "MIT" ]
5
2017-03-23T16:49:46.000Z
2022-02-18T12:06:59.000Z
import codecs import os import re import subprocess import types import unicodedata import burton from base import Base from util import detect_encoding class Strings(Base): def __init__(self): Base.__init__(self) self.baseLocalizationRegex = re.compile( '\w{3}-\w{2}-\w{3}\.(placeholde...
31.691304
75
0.443545
2a1ccb574c107abdd89878fee560195bd107f900
806
py
Python
assethub/manage.py
portnov/assethub
0f2f9d5e190b2a633a794514b54d8b408c9ed2a6
[ "BSD-3-Clause" ]
3
2017-01-07T16:56:53.000Z
2019-10-21T00:39:47.000Z
assethub/manage.py
portnov/assethub
0f2f9d5e190b2a633a794514b54d8b408c9ed2a6
[ "BSD-3-Clause" ]
11
2017-01-08T06:10:34.000Z
2017-01-26T13:09:32.000Z
assethub/manage.py
portnov/assethub
0f2f9d5e190b2a633a794514b54d8b408c9ed2a6
[ "BSD-3-Clause" ]
1
2019-05-16T03:58:40.000Z
2019-05-16T03:58:40.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "assethub.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the...
35.043478
77
0.64268
e32933371a973219a5efec54862a476b472d7c2c
13,056
py
Python
models/attendgru.py
KennardWang/funcom_reproduction
ae1e13a0bd3c7a50b888ed98191ec77b7a97ee21
[ "MIT" ]
null
null
null
models/attendgru.py
KennardWang/funcom_reproduction
ae1e13a0bd3c7a50b888ed98191ec77b7a97ee21
[ "MIT" ]
null
null
null
models/attendgru.py
KennardWang/funcom_reproduction
ae1e13a0bd3c7a50b888ed98191ec77b7a97ee21
[ "MIT" ]
null
null
null
from keras.models import Model from keras.layers import Input, Dense, Embedding, Reshape, GRU, merge, LSTM, Dropout, BatchNormalization, Activation, concatenate, multiply, MaxPooling1D, Conv1D, Flatten, Bidirectional, CuDNNGRU, RepeatVector, Permute, TimeDistributed, dot from keras.optimizers import RMSprop, Adamax imp...
58.026667
240
0.6322
468e2a7627d0dca2ef300393e19fa84920ce3fae
1,349
py
Python
google/ads/googleads/v10/enums/types/user_list_string_rule_item_operator.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v10/enums/types/user_list_string_rule_item_operator.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v10/enums/types/user_list_string_rule_item_operator.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
28.702128
74
0.688658
0ef3cee0bd8eabb36967a2ddf176fda8f7ca0670
468
py
Python
lib/connector/Connector.py
Justontheway/quality-monitor
6ca296acfcdf6b5352ad3874d21c90e28b3d6018
[ "Apache-2.0" ]
null
null
null
lib/connector/Connector.py
Justontheway/quality-monitor
6ca296acfcdf6b5352ad3874d21c90e28b3d6018
[ "Apache-2.0" ]
7
2017-03-24T03:02:51.000Z
2017-04-14T02:57:19.000Z
lib/connector/Connector.py
Justontheway/quality-monitor
6ca296acfcdf6b5352ad3874d21c90e28b3d6018
[ "Apache-2.0" ]
null
null
null
'''Connector is an abstract class for connecting any place to get data or info.''' class Connector(object): '''Abstract class for connect datastore to get information.''' def __init__(self, conf = {}): self._conf = conf self.open() def __del__(self): self.close() def __enter__(s...
24.631579
82
0.604701
43003b2a99ec1eb4e2621b9c72047bc46c7e52f0
4,814
py
Python
loss/Vgg16PerceptualLoss.py
uzielroy/StyleGan_FewShot
94e4c49dbf39d1c6299f33787afb3e471ece11e3
[ "MIT" ]
76
2020-03-04T16:25:10.000Z
2022-03-25T08:58:18.000Z
loss/Vgg16PerceptualLoss.py
uzielroy/StyleGan_FewShot
94e4c49dbf39d1c6299f33787afb3e471ece11e3
[ "MIT" ]
7
2020-05-24T07:02:44.000Z
2022-02-10T01:57:40.000Z
loss/Vgg16PerceptualLoss.py
uzielroy/StyleGan_FewShot
94e4c49dbf39d1c6299f33787afb3e471ece11e3
[ "MIT" ]
9
2020-07-04T16:35:14.000Z
2022-03-12T06:20:40.000Z
import torch from torchvision import models import torch.nn.functional as F class Vgg16PerceptualLoss(torch.nn.Module): def __init__(self, perceptual_indices = [1,3,6,8,11,13,15,18,20,22] ,loss_func="l1",requires_grad = False): ''' perceptual_indices: indices to use for perceptural loss los...
42.982143
111
0.579352
b4b4062399637be948118f7b512cd0427011f07e
182
py
Python
relative_imports/project/package/demo.py
scotthuang1989/python_basics
82bd8a934c8c77efa6eb1481a77e66e5f1d8b225
[ "MIT" ]
null
null
null
relative_imports/project/package/demo.py
scotthuang1989/python_basics
82bd8a934c8c77efa6eb1481a77e66e5f1d8b225
[ "MIT" ]
null
null
null
relative_imports/project/package/demo.py
scotthuang1989/python_basics
82bd8a934c8c77efa6eb1481a77e66e5f1d8b225
[ "MIT" ]
null
null
null
print('__file__={} | __name__={} | __package__={}'.format(__file__,__name__,str(__package__))) from .. import config print("The value of config.count is {0}".\ format(config.count))
36.4
94
0.714286
90e3054882acd4b83708461c9b8abcf6eb6aea15
18,242
py
Python
google/cloud/logging_v2/services/config_service_v2/transports/base.py
LaudateCorpus1/python-logging
d86be6cf83c3f3b91c4fc0b2e0666b0ca1d7e248
[ "Apache-2.0" ]
null
null
null
google/cloud/logging_v2/services/config_service_v2/transports/base.py
LaudateCorpus1/python-logging
d86be6cf83c3f3b91c4fc0b2e0666b0ca1d7e248
[ "Apache-2.0" ]
null
null
null
google/cloud/logging_v2/services/config_service_v2/transports/base.py
LaudateCorpus1/python-logging
d86be6cf83c3f3b91c4fc0b2e0666b0ca1d7e248
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
35.013436
101
0.594617
41d72bffde57de0c887481e4de6e5aa0d0d90d94
4,071
py
Python
app/base/models.py
HarinarayananP/Flask-Backend-AirPolutionMonitoring
0a0d60e08579ac8fbf1dd544ef5f2b938a1b5a5e
[ "Apache-2.0" ]
1
2021-08-03T08:17:32.000Z
2021-08-03T08:17:32.000Z
app/base/models.py
HarinarayananP/Flask-Backend-AirPolutionMonitoring
0a0d60e08579ac8fbf1dd544ef5f2b938a1b5a5e
[ "Apache-2.0" ]
null
null
null
app/base/models.py
HarinarayananP/Flask-Backend-AirPolutionMonitoring
0a0d60e08579ac8fbf1dd544ef5f2b938a1b5a5e
[ "Apache-2.0" ]
1
2021-08-01T05:47:21.000Z
2021-08-01T05:47:21.000Z
# -*- encoding: utf-8 -*- """ Copyright (c) 2019 - present AppSeed.us """ from flask_login import UserMixin from sqlalchemy import Binary, Column, Integer, String, DateTime, Boolean, ForeignKey, Float from app import db, login_manager from app.base.util import hash_pass class User(db.Model, UserMixin): __table...
32.568
92
0.63154
f5fa81963eaeaad09d8ff77f16b1ea081eccb5f9
11,886
py
Python
main.py
Mr-xn/proxy-scraper-checker
ffbcd57cf1c66a5d6648817602466086c0cc9b97
[ "MIT" ]
2
2022-02-27T09:41:14.000Z
2022-02-28T15:55:19.000Z
main.py
Mr-xn/proxy-scraper-checker
ffbcd57cf1c66a5d6648817602466086c0cc9b97
[ "MIT" ]
null
null
null
main.py
Mr-xn/proxy-scraper-checker
ffbcd57cf1c66a5d6648817602466086c0cc9b97
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import asyncio import re from pathlib import Path from random import shuffle from shutil import rmtree from time import perf_counter from typing import Callable, Dict, Iterable, List, Optional, Set, Tuple, Union from aiohttp import ClientSession from aiohttp_socks import ...
34.253602
146
0.54947
1cdbbd48abf4872d464d6864e6bea3ee17e8e109
486
py
Python
examples/test.py
weijentu/sgp30-python
6027d71a6cdfd1cbd4783522d249200ba4fc26d3
[ "MIT" ]
27
2019-10-22T15:52:30.000Z
2022-03-30T23:51:29.000Z
examples/test.py
danthedeckie/sgp30-python
a6375878895f22b279797838a2902c4a952bfe56
[ "MIT" ]
8
2020-02-10T10:44:25.000Z
2021-03-18T17:36:42.000Z
examples/test.py
danthedeckie/sgp30-python
a6375878895f22b279797838a2902c4a952bfe56
[ "MIT" ]
15
2020-01-04T23:28:31.000Z
2021-12-26T16:42:19.000Z
from sgp30 import SGP30 import time import sys sgp30 = SGP30() # result = sgp30.command('set_baseline', (0xFECA, 0xBEBA)) # result = sgp30.command('get_baseline') # print(["{:02x}".format(n) for n in result]) print("Sensor warming up, please wait...") def crude_progress_bar(): sys.stdout.write('.') sys.stdou...
21.130435
58
0.697531
9c6ffb583fb153c136c1c4e90e10d223dfac3c29
660
py
Python
zeeguu/api/api/user_statistics.py
mircealungu/Zeeguu-API-2
1e8ea7f5dd0b883ed2d714b9324162b1a8edd170
[ "MIT" ]
8
2018-02-06T15:47:55.000Z
2021-05-26T15:24:49.000Z
zeeguu/api/api/user_statistics.py
mircealungu/Zeeguu-API-2
1e8ea7f5dd0b883ed2d714b9324162b1a8edd170
[ "MIT" ]
57
2018-02-02T19:54:38.000Z
2021-07-15T15:45:15.000Z
zeeguu/api/api/user_statistics.py
mircealungu/Zeeguu-API-2
1e8ea7f5dd0b883ed2d714b9324162b1a8edd170
[ "MIT" ]
13
2017-10-12T09:05:19.000Z
2020-02-19T09:38:01.000Z
import flask from zeeguu.api.api.utils.json_result import json_result from zeeguu.core.user_statistics.activity import activity_duration_by_day from . import api from .utils.route_wrappers import cross_domain, with_session @api.route("/bookmark_counts_by_date", methods=("GET",)) @cross_domain @with_session def bookm...
23.571429
73
0.757576
b6fad4772416187c5d8e225a7abf4d7a841e71b3
16,825
py
Python
examples/asynchronous_consumer_example.py
DavidWittman/pika
6d9896c89ee187ce1a1a5c6e55a1ee0adcc5b538
[ "BSD-3-Clause" ]
2,479
2015-01-01T20:06:23.000Z
2022-03-31T13:29:19.000Z
examples/asynchronous_consumer_example.py
DavidWittman/pika
6d9896c89ee187ce1a1a5c6e55a1ee0adcc5b538
[ "BSD-3-Clause" ]
813
2015-01-07T07:13:49.000Z
2022-03-28T05:05:06.000Z
examples/asynchronous_consumer_example.py
DavidWittman/pika
6d9896c89ee187ce1a1a5c6e55a1ee0adcc5b538
[ "BSD-3-Clause" ]
763
2015-01-10T04:38:33.000Z
2022-03-31T07:24:57.000Z
# -*- coding: utf-8 -*- # pylint: disable=C0111,C0103,R0205 import functools import logging import time import pika from pika.exchange_type import ExchangeType LOG_FORMAT = ('%(levelname) -10s %(asctime)s %(name) -30s %(funcName) ' '-35s %(lineno) -5d: %(message)s') LOGGER = logging.getLogger(__name__) ...
38.151927
80
0.666924
807befa472c0c217bf2e836321cbf7d422d74591
1,685
py
Python
google-cloud-eventarc/synth.py
teamapp/google-cloud-ruby
4687c69c70782661a9be1f418693780fd95ddff1
[ "Apache-2.0" ]
null
null
null
google-cloud-eventarc/synth.py
teamapp/google-cloud-ruby
4687c69c70782661a9be1f418693780fd95ddff1
[ "Apache-2.0" ]
null
null
null
google-cloud-eventarc/synth.py
teamapp/google-cloud-ruby
4687c69c70782661a9be1f418693780fd95ddff1
[ "Apache-2.0" ]
null
null
null
# 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, s...
41.097561
327
0.731751
dfed85f72ff9c5df6846a981b7594f956bb0db63
2,407
py
Python
recipe_scrapers/meljoulwan.py
gloriousDan/recipe-scrapers
4e11b04db92abe11b75d373a147cc566629f265b
[ "MIT" ]
null
null
null
recipe_scrapers/meljoulwan.py
gloriousDan/recipe-scrapers
4e11b04db92abe11b75d373a147cc566629f265b
[ "MIT" ]
null
null
null
recipe_scrapers/meljoulwan.py
gloriousDan/recipe-scrapers
4e11b04db92abe11b75d373a147cc566629f265b
[ "MIT" ]
null
null
null
import re from ._abstract import AbstractScraper from ._utils import get_minutes, get_yields class Meljoulwan(AbstractScraper): @classmethod def host(cls): return "meljoulwan.com" def author(self): return ( self.soup.find("div", {"class": "post-author"}) .findChil...
25.88172
84
0.493145
de2ba11bf8bbd61c7fd9256c51e91542ed514075
4,034
bzl
Python
tools/project/build_defs.bzl
TokTok/toktok-stack
fe60e13d42d2b45e13ea4a9448a49925bc6a6d89
[ "CNRI-Python", "AML", "Xnet", "Linux-OpenIB", "X11" ]
12
2016-10-16T09:36:50.000Z
2021-12-02T03:59:24.000Z
tools/project/build_defs.bzl
TokTok/toktok-stack
fe60e13d42d2b45e13ea4a9448a49925bc6a6d89
[ "CNRI-Python", "AML", "Xnet", "Linux-OpenIB", "X11" ]
218
2016-12-31T23:35:51.000Z
2022-03-30T15:55:07.000Z
tools/project/build_defs.bzl
TokTok/toktok-stack
fe60e13d42d2b45e13ea4a9448a49925bc6a6d89
[ "CNRI-Python", "AML", "Xnet", "Linux-OpenIB", "X11" ]
6
2016-09-20T12:43:36.000Z
2021-08-06T17:39:52.000Z
"""Defines a project macro used in every TokTok sub-project. It checks constraints such as the use of the correct license and the presence and correctness of the license text. """ def _haskell_travis_impl(ctx): ctx.actions.expand_template( template = ctx.file._template, output = ctx.outputs.source...
27.256757
99
0.515865
9b46e0c5391c4985bb1d3156bd6c487c8bfbd7bf
1,687
py
Python
cleartext/scripts/eval.py
cschmidat/cleartext
c99c24792c06aba5b3d3848a4a74768b260188e5
[ "MIT" ]
1
2020-07-09T19:51:18.000Z
2020-07-09T19:51:18.000Z
cleartext/scripts/eval.py
cschmidat/cleartext
c99c24792c06aba5b3d3848a4a74768b260188e5
[ "MIT" ]
null
null
null
cleartext/scripts/eval.py
cschmidat/cleartext
c99c24792c06aba5b3d3848a4a74768b260188e5
[ "MIT" ]
2
2020-06-26T13:55:17.000Z
2020-07-09T19:16:23.000Z
#!/usr/bin/env python3 import click import warnings from .. import PROJ_ROOT, utils from cleartext.data import WikiSmall, WikiLarge from cleartext.pipeline import Pipeline @click.command() @click.argument('name', default='pl', required=False, type=str) @click.argument('dataset', default='wikilarge', type=str) @click...
33.74
95
0.684647
7cfa08c399bba40bee122adc5e849d8e0efaa03a
4,922
py
Python
nonbonded/backend/api/dev/endpoints/plotly.py
SimonBoothroyd/nonbonded
3efbb7d943d936b47248975f9ad0d8a006ea8684
[ "MIT" ]
5
2020-05-11T18:25:00.000Z
2022-01-27T10:55:09.000Z
nonbonded/backend/api/dev/endpoints/plotly.py
SimonBoothroyd/nonbonded
3efbb7d943d936b47248975f9ad0d8a006ea8684
[ "MIT" ]
88
2020-06-02T14:40:05.000Z
2022-03-02T09:20:39.000Z
nonbonded/backend/api/dev/endpoints/plotly.py
SimonBoothroyd/nonbonded
3efbb7d943d936b47248975f9ad0d8a006ea8684
[ "MIT" ]
null
null
null
import logging from typing import Dict, List, Tuple from fastapi import APIRouter, Depends from pydantic import BaseModel from sqlalchemy.orm import Session from typing_extensions import Literal from nonbonded.backend.api import depends from nonbonded.backend.database.crud.datasets import DataSetCRUD from nonbonded.b...
30.7625
88
0.654206
c50880948fb851b92583605512e250ad0d461cf7
189
py
Python
bert/dataset/__init__.py
292916808/MolCloze
1a900ee3cc641499df60e171777f8f2595e84e88
[ "Apache-2.0" ]
null
null
null
bert/dataset/__init__.py
292916808/MolCloze
1a900ee3cc641499df60e171777f8f2595e84e88
[ "Apache-2.0" ]
null
null
null
bert/dataset/__init__.py
292916808/MolCloze
1a900ee3cc641499df60e171777f8f2595e84e88
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- # author: chinshin # datetime: 2020/4/20 15:28 from bert.dataset.dataset import MolBertDataset from bert.dataset.vocab import WordVocab
27
48
0.714286
15bba84f159f507f9ba20af8a0d6cd7dc6cfc7a0
264
py
Python
temp.py
pombredanne/xpdf_python
a247601e7f15d8775fbfec369a805954eb000808
[ "BSD-3-Clause" ]
18
2017-08-07T18:56:59.000Z
2022-02-11T18:35:30.000Z
temp.py
pombredanne/xpdf_python
a247601e7f15d8775fbfec369a805954eb000808
[ "BSD-3-Clause" ]
5
2018-04-05T20:49:34.000Z
2020-08-21T06:41:59.000Z
temp.py
pombredanne/xpdf_python
a247601e7f15d8775fbfec369a805954eb000808
[ "BSD-3-Clause" ]
15
2017-08-29T13:49:31.000Z
2021-03-22T13:58:46.000Z
import os x = "cd /tmp/ && wget ftp://ftp.foolabs.com/pub/xpdf/xpdfbin-mac-3.04.tar.gz && tar -xvzf xpdfbin-mac-3.04.tar.gz && cp xpdfbin-mac-3.04/bin64/* /usr/local/bin && cp xpdfbin-mac-3.04/doc/sample-xpdfrc /usr/local/etc/xpdfrc" # x = "cd /tmp/" os.system(x)
52.8
223
0.670455
5cf60d9c9c163889c640f4202fdd1effa674e5a4
120
py
Python
exfi/__init__.py
jlanga/exfi
6cd28423213aba0ab8ac191e002396ddc84c4be3
[ "MIT" ]
2
2017-11-02T11:31:41.000Z
2020-11-28T07:42:27.000Z
exfi/__init__.py
jlanga/exfi
6cd28423213aba0ab8ac191e002396ddc84c4be3
[ "MIT" ]
36
2017-04-26T09:36:54.000Z
2021-04-16T12:35:52.000Z
exfi/__init__.py
jlanga/exon_finder
6cd28423213aba0ab8ac191e002396ddc84c4be3
[ "MIT" ]
2
2017-07-23T23:03:36.000Z
2017-09-29T15:30:55.000Z
""" Compute the splice graph from a transcriptome and raw genomic reads using bloom filters. """ __version__ = '1.5.6'
17.142857
79
0.733333
751a78d14d2db343d13ca5b16999a84f667e0d93
11,017
py
Python
src/realsense-ransac/Python_scripts/test_stream.py
Lucas-SEB/Sewer-Pipes-Measurement
b449a8b5110cedcd93b9e7f3a63d044bd299ba9f
[ "Apache-2.0" ]
2
2022-02-01T12:47:25.000Z
2022-03-09T13:47:36.000Z
src/realsense-ransac/Python_scripts/test_stream.py
Lucas-SEB/Sewer-Pipes-Measurement
b449a8b5110cedcd93b9e7f3a63d044bd299ba9f
[ "Apache-2.0" ]
null
null
null
src/realsense-ransac/Python_scripts/test_stream.py
Lucas-SEB/Sewer-Pipes-Measurement
b449a8b5110cedcd93b9e7f3a63d044bd299ba9f
[ "Apache-2.0" ]
1
2021-12-16T22:27:50.000Z
2021-12-16T22:27:50.000Z
# License: Apache 2.0. See LICENSE file in root directory. # Copyright(c) 2015-2017 Intel Corporation. All Rights Reserved. """ OpenCV and Numpy Point cloud Software Renderer This sample is mostly for demonstration and educational purposes. It really doesn't offer the quality or performance that can be achieved with h...
30.019074
97
0.60806
343e16420e6431d306be87616a3c826eabdc0480
412
py
Python
examples/complex/complex/commands/cmd_init.py
landonb/click-hotoffthehamster
8cdf6be108ab455747e60d72ca25b2d989596899
[ "BSD-3-Clause" ]
null
null
null
examples/complex/complex/commands/cmd_init.py
landonb/click-hotoffthehamster
8cdf6be108ab455747e60d72ca25b2d989596899
[ "BSD-3-Clause" ]
null
null
null
examples/complex/complex/commands/cmd_init.py
landonb/click-hotoffthehamster
8cdf6be108ab455747e60d72ca25b2d989596899
[ "BSD-3-Clause" ]
1
2020-03-28T18:57:15.000Z
2020-03-28T18:57:15.000Z
from complex.cli import pass_environment import click_hotoffthehamster as click @click.command("init", short_help="Initializes a repo.") @click.argument("path", required=False, type=click.Path(resolve_path=True)) @pass_environment def cli(ctx, path): """Initializes a repository.""" if path is None: p...
29.428571
76
0.735437
c14ff128c5d8cb1481e4cc0e00897536e22cf8ea
960
py
Python
main.py
gabryatfendor/PyEscape
3b375252466d380de3f516ebfa39695f1ee8287e
[ "MIT" ]
1
2016-08-13T07:23:19.000Z
2016-08-13T07:23:19.000Z
main.py
gabryatfendor/PyEscape
3b375252466d380de3f516ebfa39695f1ee8287e
[ "MIT" ]
4
2016-08-11T14:57:04.000Z
2018-05-18T09:59:34.000Z
main.py
gabryatfendor/PyEscape
3b375252466d380de3f516ebfa39695f1ee8287e
[ "MIT" ]
null
null
null
"""File containing the main game loop""" import pygame from modules.game import Game, Menu from modules.screen import Screen from modules.graphics import Color from modules.audio import Music def main(): """Main method containing initialization and game loop""" pygame.init() Screen.display_surface.fill(Co...
25.263158
61
0.613542
6c06adf279809d49dbed494e5ff0447925debe50
1,057
py
Python
examples/pylab_examples/scatter_demo2.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
3
2015-11-16T07:22:28.000Z
2016-11-11T17:55:14.000Z
examples/pylab_examples/scatter_demo2.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
null
null
null
examples/pylab_examples/scatter_demo2.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
3
2017-05-31T01:42:22.000Z
2020-06-23T13:57:49.000Z
""" make a scatter plot with varying color and size arguments """ import matplotlib import numpy as np import matplotlib.pyplot as plt import matplotlib.mlab as mlab import matplotlib.cbook as cbook # load a numpy record array from yahoo csv data with fields date, # open, close, volume, adj_close from the mpl-data/exa...
25.780488
69
0.717124
5ee5b3f41be194ffbd0b33b30db03254bb8c7f1b
390
py
Python
pysperf/model_library.py
ZedongPeng/pysperf
9d8536c56aee8508ffa142369b1ab7e3d88baaac
[ "BSD-2-Clause" ]
null
null
null
pysperf/model_library.py
ZedongPeng/pysperf
9d8536c56aee8508ffa142369b1ab7e3d88baaac
[ "BSD-2-Clause" ]
null
null
null
pysperf/model_library.py
ZedongPeng/pysperf
9d8536c56aee8508ffa142369b1ab7e3d88baaac
[ "BSD-2-Clause" ]
null
null
null
""" This file imports `__all__` from the models directory, thus populating the model registry. It also runs 'compute_model_stats()' on the model library. This can be an expensive operation, if the model info is not already cached. """ from .model_library_tools import compute_model_stats from pysperf.models import * fr...
27.857143
90
0.784615
ab7ec611d3a0846476cab2e31152a14407d21fc5
4,652
py
Python
MeasureVAE/encoder.py
RetroCirce/Music-SketchNet
40b45a658414703b7583e25a2c41e753c4a61e81
[ "CC0-1.0" ]
57
2020-08-01T04:08:36.000Z
2022-02-21T10:13:56.000Z
MeasureVAE/encoder.py
RetroCirce/Music-SketchNet
40b45a658414703b7583e25a2c41e753c4a61e81
[ "CC0-1.0" ]
3
2020-10-09T11:37:28.000Z
2021-09-08T02:24:50.000Z
MeasureVAE/encoder.py
RetroCirce/Music-SketchNet
40b45a658414703b7583e25a2c41e753c4a61e81
[ "CC0-1.0" ]
8
2020-08-05T12:32:45.000Z
2022-03-22T02:23:10.000Z
import torch from torch.distributions import Normal from torch import nn from utils.helpers import * class Encoder(nn.Module): def __init__(self, note_embedding_dim, rnn_hidden_size, num_layers, num_notes, dropout, ...
34.205882
100
0.571797