hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
fb8816a7b683c68b5302c23202f9078fcba7c711
2,270
py
Python
chialite/consensus/block_rewards.py
Storch-Network/chialite
587fc53e8ef452e07c6f3f266f58962d065feb5c
[ "Apache-2.0" ]
2
2021-06-29T14:05:41.000Z
2021-07-15T19:28:26.000Z
chialite/consensus/block_rewards.py
Storch-Network/chialite
587fc53e8ef452e07c6f3f266f58962d065feb5c
[ "Apache-2.0" ]
31
2021-06-26T23:11:46.000Z
2022-03-29T00:12:30.000Z
chialite/consensus/block_rewards.py
Storch-Network/chialite
587fc53e8ef452e07c6f3f266f58962d065feb5c
[ "Apache-2.0" ]
null
null
null
from chialite.util.ints import uint32, uint64 # 1 Chialite coin = 1,000,000,000,000 = 1 trillion mojo. _mojo_per_chialite = 1000000000000 _blocks_per_year = 1681920 # 32 * 6 * 24 * 365 def calculate_pool_reward(height: uint32) -> uint64: """ Returns the pool reward at a certain block height. The pool earns ...
43.653846
116
0.670925
e6db2e36daf3e3ed90df3f904ba160d9b58978f0
322
py
Python
pyramda/iterable/filter_test.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
124
2015-07-30T21:34:25.000Z
2022-02-19T08:45:50.000Z
pyramda/iterable/filter_test.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
37
2015-08-31T23:02:20.000Z
2022-02-04T04:45:28.000Z
pyramda/iterable/filter_test.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
20
2015-08-04T18:59:09.000Z
2021-12-13T08:08:59.000Z
from .filter import filter from pyramda.private.asserts import assert_iterables_equal def positive(x): return x > 0 def filter_nocurry_test(): assert_iterables_equal(filter(positive, [2, -1, 0, 3, -2]), [2, 3]) def filter_curry_test(): assert_iterables_equal(filter(positive)([2, -1, 0, 3, -2]), [2, 3]...
21.466667
71
0.692547
0fc025c381959fcb2594cc73163ed65ce456b4f4
2,598
py
Python
tests/test_slots.py
Mome/pdir2
57882ab902b089d86f862ccc9d655b8296b3078b
[ "MIT" ]
1,394
2017-03-10T01:58:24.000Z
2022-03-30T19:15:48.000Z
tests/test_slots.py
Mome/pdir2
57882ab902b089d86f862ccc9d655b8296b3078b
[ "MIT" ]
61
2017-03-10T15:12:36.000Z
2022-03-31T10:20:54.000Z
tests/test_slots.py
Mome/pdir2
57882ab902b089d86f862ccc9d655b8296b3078b
[ "MIT" ]
67
2017-03-10T13:40:50.000Z
2022-03-07T07:11:54.000Z
""" Test classes with __slots__ """ from typing import List import pdir from pdir.attr_category import AttrCategory, category_match BASE = 'base' DERIVE = 'derive' class BaseNoSlot: pass class BaseEmptySlot: __slots__: List[str] = [] class BaseSlot: __slots__: List[str] = [BASE] class DeriveNoSl...
24.055556
81
0.644727
3379a64d8b9484128adf3032e012ca1eef7e56b9
1,625
py
Python
setup.py
agoragames/locust
465100c903cc8558e408760f4e49792798dd7b16
[ "MIT" ]
1
2015-07-08T15:37:15.000Z
2015-07-08T15:37:15.000Z
setup.py
agoragames/locust
465100c903cc8558e408760f4e49792798dd7b16
[ "MIT" ]
null
null
null
setup.py
agoragames/locust
465100c903cc8558e408760f4e49792798dd7b16
[ "MIT" ]
null
null
null
# encoding: utf-8 from setuptools import setup, find_packages, Command import sys, os version = '0.7.2.ag0' class Unit2Discover(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import sys, subprocess bas...
29.017857
109
0.633231
5c9ca776e05d2f5cdc00ae2f2f25d548f9aad8de
1,298
py
Python
src/dataset/preprocess.py
yulun-rayn/DGAPN
6d87376fa933a0a5efff180ebe1fe5772a060987
[ "MIT" ]
5
2022-01-21T21:15:59.000Z
2022-01-24T20:02:46.000Z
src/dataset/preprocess.py
yulun-rayn/DGAPN
6d87376fa933a0a5efff180ebe1fe5772a060987
[ "MIT" ]
null
null
null
src/dataset/preprocess.py
yulun-rayn/DGAPN
6d87376fa933a0a5efff180ebe1fe5772a060987
[ "MIT" ]
null
null
null
import csv def main(dataset_path): with open(dataset_path, newline='') as csvfile: reader = csv.reader(csvfile) nb_col = len(next(reader)) if nb_col == 2: scores, smiles = read_2col(reader) elif nb_col == 4: scores, smiles = read_4col(reader) return score...
30.186047
127
0.546225
0925f7fec46862b9d3fe822c5d8a834cc951206d
3,437
py
Python
tests/test_schema.py
repo-helper/repo_helper_pycharm
7ae51f4a015edc6dcc7cfc0640e417ba82e7eee9
[ "MIT" ]
null
null
null
tests/test_schema.py
repo-helper/repo_helper_pycharm
7ae51f4a015edc6dcc7cfc0640e417ba82e7eee9
[ "MIT" ]
24
2020-12-21T16:46:30.000Z
2022-01-25T09:49:39.000Z
tests/test_schema.py
repo-helper/repo_helper_pycharm
7ae51f4a015edc6dcc7cfc0640e417ba82e7eee9
[ "MIT" ]
null
null
null
# stdlib import os import re from abc import abstractmethod # 3rd party import pytest from click.testing import CliRunner, Result # type: ignore from coincidence import check_file_regression from domdf_python_tools.paths import PathPlus, in_directory from pytest_regressions.file_regression import FileRegressionFixtur...
34.717172
104
0.764038
81b028ed5f5caad5f59c68b7f82c1a4661cf4d6f
21,737
py
Python
mmpose/models/backbones/vipnas_resnet.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
1
2022-02-13T12:27:40.000Z
2022-02-13T12:27:40.000Z
mmpose/models/backbones/vipnas_resnet.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
1
2022-03-13T12:52:47.000Z
2022-03-13T12:52:47.000Z
mmpose/models/backbones/vipnas_resnet.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import copy import torch.nn as nn import torch.utils.checkpoint as cp from mmcv.cnn import ConvModule, build_conv_layer, build_norm_layer from mmcv.cnn.bricks import ContextBlock from mmcv.utils.parrots_wrapper import _BatchNorm from ..builder import BACKBONES from .bas...
36.842373
79
0.538483
c9575c00e220ab8c03fd2544c69483477217d825
8,886
py
Python
contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_webhcat_server.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
1,664
2015-01-03T09:35:21.000Z
2022-03-31T04:55:24.000Z
contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_webhcat_server.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
3,018
2015-02-19T20:16:10.000Z
2021-11-13T20:47:48.000Z
contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_webhcat_server.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
1,673
2015-01-06T14:14:42.000Z
2022-03-31T07:22:30.000Z
#!/usr/bin/env python """ 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")...
38.803493
128
0.770876
2aa77ecdc3eb52ae3dffd876310a7e5a5c3a837b
69
py
Python
src/eda/__init__.py
jonas-mika/ml-project
c052c33010033cd9fd596eb5ac4d270d1bf98ee3
[ "MIT" ]
null
null
null
src/eda/__init__.py
jonas-mika/ml-project
c052c33010033cd9fd596eb5ac4d270d1bf98ee3
[ "MIT" ]
null
null
null
src/eda/__init__.py
jonas-mika/ml-project
c052c33010033cd9fd596eb5ac4d270d1bf98ee3
[ "MIT" ]
1
2022-01-29T17:23:15.000Z
2022-01-29T17:23:15.000Z
from ._feature_inspection import run_eda __all__ = [ 'run_eda' ]
13.8
40
0.724638
10e04465a4a6f8d10f7ec2fbb91aa3c03053a83f
3,890
py
Python
Archive/Current_Software_Modules/R&D/RETIRED_StitchAPI/main.py
Jual6332/OTheRS_IP
420cfde562249941f4a85f936d549d11edadc36f
[ "MIT" ]
null
null
null
Archive/Current_Software_Modules/R&D/RETIRED_StitchAPI/main.py
Jual6332/OTheRS_IP
420cfde562249941f4a85f936d549d11edadc36f
[ "MIT" ]
17
2018-11-13T04:13:26.000Z
2019-04-29T21:00:26.000Z
Archive/Current_Software_Modules/R&D/RETIRED_StitchAPI/main.py
Jual6332/OTheRS_IP
420cfde562249941f4a85f936d549d11edadc36f
[ "MIT" ]
1
2018-10-29T18:14:45.000Z
2018-10-29T18:14:45.000Z
#!/usr/bin/env python3 ################################################################################ ################################################################################ ### "main.py" ################################################################## ######################################################...
37.403846
85
0.560154
adbd1b6b1d983e326fe2071d4431cd8fe12897ac
17,040
py
Python
core/dbt/parser/models.py
xshadowlegendx/dbt-core
c690ecc1fd0f1239db9ddd26c4e9cd14ea508b77
[ "Apache-2.0" ]
null
null
null
core/dbt/parser/models.py
xshadowlegendx/dbt-core
c690ecc1fd0f1239db9ddd26c4e9cd14ea508b77
[ "Apache-2.0" ]
null
null
null
core/dbt/parser/models.py
xshadowlegendx/dbt-core
c690ecc1fd0f1239db9ddd26c4e9cd14ea508b77
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy from dbt.context.context_config import ContextConfig from dbt.contracts.graph.parsed import ParsedModelNode import dbt.flags as flags from dbt.logger import GLOBAL_LOGGER as logger from dbt.node_types import NodeType from dbt.parser.base import SimpleSQLParser from dbt.parser.search import Fil...
41.764706
99
0.640669
0d5dd289f31d63e5dc968a4c5df9e5bdfa427fd7
1,119
py
Python
b_cfn_lambda_layer/dependency.py
Biomapas/B.CfnLambdaLayer
b2ddb2e233d626e4591235a0174b70fda9807063
[ "Apache-2.0" ]
1
2021-10-04T12:23:53.000Z
2021-10-04T12:23:53.000Z
b_cfn_lambda_layer/dependency.py
Biomapas/B.CfnLambdaLayer
b2ddb2e233d626e4591235a0174b70fda9807063
[ "Apache-2.0" ]
null
null
null
b_cfn_lambda_layer/dependency.py
Biomapas/B.CfnLambdaLayer
b2ddb2e233d626e4591235a0174b70fda9807063
[ "Apache-2.0" ]
null
null
null
from typing import Optional from b_cfn_lambda_layer.package_version import PackageVersion class Dependency: def __init__(self, name: str, version: Optional[PackageVersion] = None): self.__name = name self.__version = version or PackageVersion.latest() def build_string(self) -> str: "...
33.909091
85
0.662198
d56f82baeaa668baa3a9e6a76a6f6926208ed2bb
2,490
py
Python
tutorials/workshop/lib/lfs.py
Conengmo/snorkel
36868e8a84de19b94e1c4b8eceaa64969a61a46b
[ "Apache-2.0" ]
30
2019-08-22T19:27:59.000Z
2022-03-13T22:03:15.000Z
tutorials/workshop/lib/lfs.py
Conengmo/snorkel
36868e8a84de19b94e1c4b8eceaa64969a61a46b
[ "Apache-2.0" ]
2
2019-08-22T16:51:58.000Z
2022-03-21T02:59:18.000Z
tutorials/workshop/lib/lfs.py
Conengmo/snorkel
36868e8a84de19b94e1c4b8eceaa64969a61a46b
[ "Apache-2.0" ]
31
2019-08-22T19:28:08.000Z
2022-03-23T12:50:49.000Z
# # PLACE YOUR LFs HERE # import re from snorkel.lf_helpers import ( get_left_tokens, get_right_tokens, get_between_tokens, get_text_between, get_tagged_text, ) from lib.dbpedia import known_spouses # Helper function to get last name def last_name(s): name_parts = s.split(' ') return name_parts[-1] if...
33.2
107
0.681526
bf06561f5fae36e6ce062f5919fd45afe17283cc
440
py
Python
setup.py
rbiswas4/basicio
9e6698ea9519bdb5ff316bc1c811d694a50f9f4e
[ "MIT" ]
null
null
null
setup.py
rbiswas4/basicio
9e6698ea9519bdb5ff316bc1c811d694a50f9f4e
[ "MIT" ]
1
2015-10-21T16:40:33.000Z
2015-10-21T16:40:33.000Z
setup.py
rbiswas4/basicio
9e6698ea9519bdb5ff316bc1c811d694a50f9f4e
[ "MIT" ]
null
null
null
#from ez_setup import use_setuptools #use_setuptools() from setuptools import setup, find_packages setup(# package information name="io", version="0.0.1dev", description='utilities for io', long_description=''' ''', # What code to include as packages packages=['basicio'], # Wh...
27.5
47
0.652273
c97460cd4adf16a253d923a1611dcf4916c47336
243
py
Python
Aula09/chef024.py
AdryanPablo/Python
d469d394b41f44dbd753bf9a7f7eebaa81096562
[ "MIT" ]
null
null
null
Aula09/chef024.py
AdryanPablo/Python
d469d394b41f44dbd753bf9a7f7eebaa81096562
[ "MIT" ]
null
null
null
Aula09/chef024.py
AdryanPablo/Python
d469d394b41f44dbd753bf9a7f7eebaa81096562
[ "MIT" ]
null
null
null
# Crie um programa que leia o nome de uma cidade e diga se ela começa ou não com o nome "Santo". cidade = str(input('Digite o nome de uma cidade: ')).strip() print(f'Essa cidade começa com "Santo"? {"Santo" in (cidade.title().split()[0])}')
40.5
96
0.683128
90e072e33a5f0f0fae1139ff5dedc42a6eda7103
1,363
py
Python
Hackerrank/Algorithms/Graph Theory/Roads and libraries.py
udayan14/Competitive_Coding
79e23fdeb909b4161a193d88697a4fe5f4fbbdce
[ "MIT" ]
null
null
null
Hackerrank/Algorithms/Graph Theory/Roads and libraries.py
udayan14/Competitive_Coding
79e23fdeb909b4161a193d88697a4fe5f4fbbdce
[ "MIT" ]
null
null
null
Hackerrank/Algorithms/Graph Theory/Roads and libraries.py
udayan14/Competitive_Coding
79e23fdeb909b4161a193d88697a4fe5f4fbbdce
[ "MIT" ]
null
null
null
#!/bin/python3 import queue def roadsAndLibraries(n, c_lib, c_road, cities): # Complete this function if c_road >= c_lib: return c_lib * n else: comp = 0 visited = [False]*(n+1) for c in range(1,n+1): # print(c) if(not visited[c]): comp...
34.948718
88
0.448276
0d8fb2a4acb45d1c4fbae73d8202b17e0173fcb9
10,826
py
Python
mpc_tracking.py
urosolia/SLIP
07d091070b59df0c42ba0f0d277b97f0002ce6fe
[ "MIT" ]
1
2021-03-04T01:10:08.000Z
2021-03-04T01:10:08.000Z
mpc_tracking.py
urosolia/SLIP
07d091070b59df0c42ba0f0d277b97f0002ce6fe
[ "MIT" ]
null
null
null
mpc_tracking.py
urosolia/SLIP
07d091070b59df0c42ba0f0d277b97f0002ce6fe
[ "MIT" ]
1
2022-02-22T20:12:24.000Z
2022-02-22T20:12:24.000Z
from casadi import * from numpy import * import pdb import itertools import numpy as np from cvxpy import * import time ##### MPC ###### class MPC_tracking(object): """ Model Predictive Controller (MPC) Methods: - solve: solves the FTOCP given the initial condition x0 and terminal contraints - buildNonlinearProg...
33.310769
258
0.592555
26495c561833a1a79ce44b54fb70773873b55c81
214
py
Python
solutions/1820.py
nxexox/acm.timus
9548d2a0b54fdd99bd60071f3be2fb7f897a7303
[ "MIT" ]
null
null
null
solutions/1820.py
nxexox/acm.timus
9548d2a0b54fdd99bd60071f3be2fb7f897a7303
[ "MIT" ]
null
null
null
solutions/1820.py
nxexox/acm.timus
9548d2a0b54fdd99bd60071f3be2fb7f897a7303
[ "MIT" ]
null
null
null
#!/usr/bin/python n, k = [int(i) for i in input().split()] # TODO: Сама система не принимает на 16-м тесте def function(n, k): return round(float(n) * 2.0 / float(k)) if k < n else 2 print(function(n, k))
17.833333
59
0.616822
c307d841a736d2fdbab380e113b1e97ac70ae151
3,819
py
Python
src/utils/tools.py
oulkaid/Sudoku-SAT-Solver
a26f6fad10a7f36d40fe88697e132248286fc562
[ "MIT" ]
null
null
null
src/utils/tools.py
oulkaid/Sudoku-SAT-Solver
a26f6fad10a7f36d40fe88697e132248286fc562
[ "MIT" ]
null
null
null
src/utils/tools.py
oulkaid/Sudoku-SAT-Solver
a26f6fad10a7f36d40fe88697e132248286fc562
[ "MIT" ]
null
null
null
from math import sqrt def input_parser(lines): n = int(lines[0]) grid = [] for i in range(1, len(lines)): item = 0 end_of_line = False new_line = [] while not end_of_line: if lines[i][item] == '\n': end_of_line = True elif lines[i][ite...
27.673913
120
0.396701
676cba1ba2697d2ede73a09dfd7077a8397c87b4
41,861
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/isisLevel1LANHelloPDU_template.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/isisLevel1LANHelloPDU_template.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/isisLevel1LANHelloPDU_template.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files class IsisLevel1LANHelloPDU(Base): __slots__ = () _SDM_NAME = 'isisLevel1LANHelloPDU' _SDM_ATT_MAP = { 'CommonHeaderIntradomainRoutingProtocolDiscriminator': 'isisLevel1LANHelloPDU.isisHeader.commonHeader.intradomainRo...
44.485654
255
0.721626
b8dc9f0e66a94c4a79d6e8c91cffa44d98bcc8e9
423
py
Python
apps/work_order/migrations/0002_auto_20190821_2331.py
joewen85/devops_study
6bbfbac7e70f295ef6068393bd9cf7d418ab4417
[ "Apache-2.0" ]
null
null
null
apps/work_order/migrations/0002_auto_20190821_2331.py
joewen85/devops_study
6bbfbac7e70f295ef6068393bd9cf7d418ab4417
[ "Apache-2.0" ]
null
null
null
apps/work_order/migrations/0002_auto_20190821_2331.py
joewen85/devops_study
6bbfbac7e70f295ef6068393bd9cf7d418ab4417
[ "Apache-2.0" ]
1
2020-10-28T09:12:47.000Z
2020-10-28T09:12:47.000Z
# Generated by Django 2.2.4 on 2019-08-21 15:31 import ckeditor.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('work_order', '0001_initial'), ] operations = [ migrations.AlterField( model_name='workorder', name='o...
21.15
69
0.624113
fd4470931d850ff863ffd047d7c90a80e92004d8
1,781
py
Python
run.py
hesamrasouli/CrawlerKing
54c6a435cda61f3e43ba8ba9ae81bb1d6f096a84
[ "Apache-2.0" ]
null
null
null
run.py
hesamrasouli/CrawlerKing
54c6a435cda61f3e43ba8ba9ae81bb1d6f096a84
[ "Apache-2.0" ]
null
null
null
run.py
hesamrasouli/CrawlerKing
54c6a435cda61f3e43ba8ba9ae81bb1d6f096a84
[ "Apache-2.0" ]
null
null
null
from spider_runner_base import SpiderRunnerBase # ! Do not delete these ! import sys from utils.helpers.arg_helper import ArgHelper """ This file is main entry point and is responsible of running spider(s). This is actually CrawlerKing runner that decides which spider(s) must be run with what parameters based on user-p...
37.104167
114
0.747333
c16e63e74b85f4370d487607f70e330fe7d31fe7
30,514
py
Python
My_AutoML/_hpo/_ML.py
PanyiDong/My_AutoML
510727bd797e4f6fa213939c62d1d7601952e491
[ "MIT" ]
2
2022-03-03T16:24:08.000Z
2022-03-03T17:17:28.000Z
My_AutoML/_hpo/_ML.py
PanyiDong/My_AutoML
510727bd797e4f6fa213939c62d1d7601952e491
[ "MIT" ]
null
null
null
My_AutoML/_hpo/_ML.py
PanyiDong/My_AutoML
510727bd797e4f6fa213939c62d1d7601952e491
[ "MIT" ]
null
null
null
""" File: _ML.py Author: Panyi Dong GitHub: https://github.com/PanyiDong/ Mathematics Department, University of Illinois at Urbana-Champaign (UIUC) Project: My_AutoML Latest Version: 0.2.0 Relative Path: /My_AutoML/_hpo/_ML.py File Created: Tuesday, 5th April 2022 10:50:27 pm Author: Panyi Dong (panyid2@illinois.edu) ...
40.202899
120
0.669037
8ee04a61f03dd472b36c75a4b44acee8402faf41
6,460
py
Python
others/top500/pinyin/__init__.py
galletitaoreo/PythonPentest
abd46cc251abfc3fba02d7f03ddd049803dc6047
[ "MIT" ]
5
2019-08-07T08:59:53.000Z
2021-05-14T19:35:57.000Z
others/top500/pinyin/__init__.py
Harusenpai/PythonPentest
abd46cc251abfc3fba02d7f03ddd049803dc6047
[ "MIT" ]
null
null
null
others/top500/pinyin/__init__.py
Harusenpai/PythonPentest
abd46cc251abfc3fba02d7f03ddd049803dc6047
[ "MIT" ]
2
2021-03-31T21:20:19.000Z
2021-08-28T04:21:12.000Z
# -*- coding: utf-8 -*- import os import re _punctuation_mapper = dict(zip( u'?!。,、:《》“”‘’ ', u'?!.,,:<>""\'\' ')) def _load_character_mapper(): mapper = dict() filename = os.path.dirname(__file__) filename += '/chars.txt' f = open(filename) try: for line in f: if re.m...
26.916667
75
0.464551
15765ef8e39f40d0550763b86f868ae444159adb
2,997
py
Python
predict-images.py
bryner18/machine-learning-image-rec
dcd6f5ad9e1ec435b609680470748b084d4c8e41
[ "MIT" ]
null
null
null
predict-images.py
bryner18/machine-learning-image-rec
dcd6f5ad9e1ec435b609680470748b084d4c8e41
[ "MIT" ]
null
null
null
predict-images.py
bryner18/machine-learning-image-rec
dcd6f5ad9e1ec435b609680470748b084d4c8e41
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys import time import queue import threading import numpy as np import tensorflow as tf import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' tf.logging.set_verbosity(tf.logging.ERROR) def load_labels(label_file): label = [] proto_as_ascii_lines = tf.gfile.GFile(label_file).readlines()...
32.934066
109
0.694361
dcdb5614cb7f3ac73b319cb7d65590d7edcff32f
32,427
py
Python
rainforest/database/retrieve_radar_data.py
gugerlir/rainforest
85a9d51acf2036245f0cebf7232e735c2cf2dfc4
[ "BSD-3-Clause" ]
3
2020-03-03T19:58:02.000Z
2021-11-02T08:22:22.000Z
rainforest/database/retrieve_radar_data.py
gugerlir/rainforest
85a9d51acf2036245f0cebf7232e735c2cf2dfc4
[ "BSD-3-Clause" ]
null
null
null
rainforest/database/retrieve_radar_data.py
gugerlir/rainforest
85a9d51acf2036245f0cebf7232e735c2cf2dfc4
[ "BSD-3-Clause" ]
5
2020-03-25T15:25:25.000Z
2021-06-11T22:15:58.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Main routine for retrieving radar data This is meant to be run as a command line command from a slurm script i.e. ./retrieve_radar_data -t <task_file_name> -c <config_file_name> - o <output_folder> IMPORTANT: this function is called by the main routine in database.py...
42.949669
114
0.4759
28c7404485aca8f6cb316e8f946f730ae18c8a32
2,910
py
Python
tests/snuba/eventstream/test_eventstream.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
2
2019-03-04T12:45:54.000Z
2019-03-04T12:45:55.000Z
tests/snuba/eventstream/test_eventstream.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
196
2019-06-10T08:34:10.000Z
2022-02-22T01:26:13.000Z
tests/snuba/eventstream/test_eventstream.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from datetime import datetime, timedelta import six import time import logging from mock import patch, Mock from sentry.event_manager import EventManager from sentry.eventstream.kafka import KafkaEventStream from sentry.eventstream.snuba import SnubaEventStream from sentry.testu...
34.642857
94
0.644674
e73fad439f0fb0b926d12c3dfd6f25632d777d30
9,830
py
Python
test/functional/p2p_blockfilters.py
apokalyzr/bitcoin
5b4b8f76f3ae11064d4aa3ac157558e364751fd2
[ "MIT" ]
65,371
2015-01-01T06:52:02.000Z
2022-03-31T23:29:23.000Z
test/functional/p2p_blockfilters.py
apokalyzr/bitcoin
5b4b8f76f3ae11064d4aa3ac157558e364751fd2
[ "MIT" ]
18,259
2015-01-01T03:22:57.000Z
2022-03-31T23:18:25.000Z
test/functional/p2p_blockfilters.py
apokalyzr/bitcoin
5b4b8f76f3ae11064d4aa3ac157558e364751fd2
[ "MIT" ]
28,827
2015-01-01T00:25:45.000Z
2022-03-31T23:48:15.000Z
#!/usr/bin/env python3 # Copyright (c) 2019-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Tests NODE_COMPACT_FILTERS (BIP 157/158). Tests that a node configured with -blockfilterindex and -pee...
38.100775
99
0.643133
700711c55e04e147ef552d2de2c20b30f445e707
30,527
py
Python
var/spack/repos/builtin/packages/openmpi/package.py
greschd/spack
ce8cf5d9b037079ae3fd77fcaf84cf2eafbc9fbd
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-05-24T15:23:12.000Z
2020-05-24T15:23:12.000Z
var/spack/repos/builtin/packages/openmpi/package.py
bbbbpage/spack
bc145b2b3f87da8276e4c2e0665e9830de3d0322
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/openmpi/package.py
bbbbpage/spack
bc145b2b3f87da8276e4c2e0665e9830de3d0322
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import sys import llnl.util.tty as tty def _verbs_dir(): """Try to find the directory where the OpenFabri...
50.878333
132
0.664723
51f6d08709e679824f88d724557ae6327740cddd
171
py
Python
pacote-download/PythonTeste/desafio060.py
Mariana02Santos/Python
a7bf3489b58d691578f888719c1ad6227ad39d74
[ "MIT" ]
null
null
null
pacote-download/PythonTeste/desafio060.py
Mariana02Santos/Python
a7bf3489b58d691578f888719c1ad6227ad39d74
[ "MIT" ]
null
null
null
pacote-download/PythonTeste/desafio060.py
Mariana02Santos/Python
a7bf3489b58d691578f888719c1ad6227ad39d74
[ "MIT" ]
null
null
null
n = int(input('Digite um valor inteiro e eu calcularei o fatorial desse número: ')) x = n m = n while n > 1: m = m * (n-1) n = n - 1 print('{}! = {}'.format(x,m))
21.375
83
0.54386
d0c743261507903f811f01c5d50da6a2c14fecff
278
py
Python
opac/models/transactions/__init__.py
rimphyd/Django-OPAC
d86f2e28fee7f2ec551aeeb98ec67caefc06a3fb
[ "MIT" ]
1
2020-11-26T05:25:46.000Z
2020-11-26T05:25:46.000Z
opac/models/transactions/__init__.py
rimphyd/Django-OPAC
d86f2e28fee7f2ec551aeeb98ec67caefc06a3fb
[ "MIT" ]
null
null
null
opac/models/transactions/__init__.py
rimphyd/Django-OPAC
d86f2e28fee7f2ec551aeeb98ec67caefc06a3fb
[ "MIT" ]
null
null
null
from opac.models.transactions.holding import Holding # noqa: F401 from opac.models.transactions.lending import Lending # noqa: F401 from opac.models.transactions.renewing import Renewing # noqa: F401 from opac.models.transactions.reservation import Reservation # noqa: F401
55.6
74
0.81295
5582ebc5bb602cc9a5110b4266fb004c0dff70fd
1,030
py
Python
workspaces/migrations/0003_auto_20200427_0851.py
ralphleyga/sleeknotes
b92c8dd12021eb0bfddcdf5dc046b8173930b68b
[ "MIT" ]
null
null
null
workspaces/migrations/0003_auto_20200427_0851.py
ralphleyga/sleeknotes
b92c8dd12021eb0bfddcdf5dc046b8173930b68b
[ "MIT" ]
4
2021-03-19T02:32:55.000Z
2021-06-10T19:03:45.000Z
workspaces/migrations/0003_auto_20200427_0851.py
ralphleyga/sleeknotes
b92c8dd12021eb0bfddcdf5dc046b8173930b68b
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-27 08:51 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('workspaces', '0002_works...
34.333333
144
0.643689
fc2435f286d44770818ebf13c3f8ebae06ec3817
2,438
py
Python
tracker/dmlc_tracker/ssh.py
rasomuro/rabit
a19a15cfaabbc43aa886abcfce08e4b73b917354
[ "Apache-2.0" ]
1
2020-07-31T15:32:43.000Z
2020-07-31T15:32:43.000Z
tracker/dmlc_tracker/ssh.py
rasomuro/rabit
a19a15cfaabbc43aa886abcfce08e4b73b917354
[ "Apache-2.0" ]
null
null
null
tracker/dmlc_tracker/ssh.py
rasomuro/rabit
a19a15cfaabbc43aa886abcfce08e4b73b917354
[ "Apache-2.0" ]
1
2020-07-31T15:32:44.000Z
2020-07-31T15:32:44.000Z
#!/usr/bin/env python """ DMLC submission script by ssh One need to make sure all slaves machines are ssh-able. """ from __future__ import absolute_import import os, subprocess, logging from threading import Thread from . import tracker def sync_dir(local_dir, slave_node, slave_dir): """ sync the working dir...
31.662338
94
0.578343
7a2ed416f9a18e3b193a4ddfce592da821af0aab
491
py
Python
ABC_C/ABC088_C.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_C/ABC088_C.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_C/ABC088_C.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
C = [] for _ in range(3): c1, c2, c3 = map(int, input().split()) tmp = [c1, c2, c3] C.append(tmp) if not(C[0][0]-C[0][1] == C[1][0]-C[1][1] == C[2][0]-C[2][1]): print('No') exit(0) if not(C[0][1]-C[0][2] == C[1][1]-C[1][2] == C[2][1]-C[2][2]): print('No') exit(0) if not(C[0][0]-C[1][0] ==...
21.347826
62
0.411405
d77ea06c1f9e89252d5f699a11cf94fdcbd58591
24,586
py
Python
scripts_for_improve_Elevation/smote.py
bm2-lab/CRISPR-off-target-data-imbalance
344dc93da988057c877d686a744afe740c416fd4
[ "MIT" ]
2
2018-12-26T06:54:14.000Z
2018-12-26T06:54:20.000Z
scripts_for_improve_Elevation/smote.py
bm2-lab/CRISPR-off-target-data-imbalance
344dc93da988057c877d686a744afe740c416fd4
[ "MIT" ]
null
null
null
scripts_for_improve_Elevation/smote.py
bm2-lab/CRISPR-off-target-data-imbalance
344dc93da988057c877d686a744afe740c416fd4
[ "MIT" ]
1
2021-03-12T03:40:01.000Z
2021-03-12T03:40:01.000Z
import elevation.prediction_pipeline as pp import elevation import random random.seed(233) from sklearn.neighbors import NearestNeighbors import numpy as np import elevation import pandas import azimuth import joblib import logging from joblib import Memory from elevation.model_comparison import * import...
44.299099
157
0.537338
866ab2f4841637b7d9dc5234f8c8f0a13969535c
634
py
Python
contrib/fate_script/utils/conf_variable.py
chenj133/FATE
7065fc73ab83f83e699efec69ff8efb499159ef4
[ "Apache-2.0" ]
32
2020-06-12T08:39:58.000Z
2022-03-20T06:57:08.000Z
contrib/fate_script/utils/conf_variable.py
ErikSun2020/FATE
bdda535c7d8a974fc2c43102837964b7da199730
[ "Apache-2.0" ]
14
2020-01-28T23:02:45.000Z
2022-02-10T00:22:08.000Z
contrib/fate_script/utils/conf_variable.py
ErikSun2020/FATE
bdda535c7d8a974fc2c43102837964b7da199730
[ "Apache-2.0" ]
16
2020-06-12T06:51:46.000Z
2022-03-29T10:23:42.000Z
from arch.api.utils import file_utils class ConfVar: def __init__(self): self.iter_num = 2 self.batch_num = 1 self.learning_rate = 0.15 self.eps = 1e-4 def init_conf(self, role): conf_path = file_utils.load_json_conf('contrib/fate_script/conf/' + str(role) + '_runtime_...
39.625
109
0.670347
f4b2404cc3d18b6d0186244a3dff8bb08426023b
1,693
py
Python
src/signalflow_algorithms/algorithms/loop_group.py
naaeef/signalflowgrapher
0ac3b4a8f11830e5cd7665264ab4e723b5ddaad9
[ "Artistic-2.0" ]
17
2020-09-15T11:25:32.000Z
2022-02-02T18:20:45.000Z
src/signalflow_algorithms/algorithms/loop_group.py
hzhikai97/signalflowgrapher
928a1c072d22bc606d03197ca3c326dd8e0ae89e
[ "Artistic-2.0" ]
29
2020-09-16T16:23:28.000Z
2021-05-08T17:29:34.000Z
src/signalflow_algorithms/algorithms/loop_group.py
hzhikai97/signalflowgrapher
928a1c072d22bc606d03197ca3c326dd8e0ae89e
[ "Artistic-2.0" ]
6
2020-09-21T06:32:19.000Z
2022-03-05T17:33:14.000Z
from typing import List from signalflow_algorithms.algorithms.graph import Branch, Node class LoopGroup(object): def __init__(self, loop_count=0, loops=list(), nodes=list()): self.loop_count = loop_count self.loops: List[List[Branch]] = loops self.nodes: List[Node] = nodes def append_...
31.943396
72
0.635558
1be3850f89ec8a01613339972c2abc63f2ad2cfe
5,781
py
Python
dh_utils/tei/refsdecl_generator.py
andredelft/dh-utils
6b4582de96de2e4a32e7b54ed850e03b888d353e
[ "MIT" ]
1
2020-12-25T21:04:10.000Z
2020-12-25T21:04:10.000Z
dh_utils/tei/refsdecl_generator.py
andredelft/dh-utils
6b4582de96de2e4a32e7b54ed850e03b888d353e
[ "MIT" ]
null
null
null
dh_utils/tei/refsdecl_generator.py
andredelft/dh-utils
6b4582de96de2e4a32e7b54ed850e03b888d353e
[ "MIT" ]
null
null
null
import logging import os from contextlib import contextmanager from copy import copy from dataclasses import dataclass from itertools import chain from pathlib import Path import argparse from lxml import etree from anytree import Node, LevelOrderGroupIter, RenderTree from lxml.etree import Element, dump, ParseError f...
26.640553
87
0.64712
755058473ee8eb18185698c43462f2b34cdddab1
1,771
py
Python
amgut/handlers/download.py
zoechallacombe/american-gut-web
800f0045b98764b4ecfe5f442a03ca8938769eb5
[ "BSD-3-Clause" ]
5
2015-02-10T18:01:12.000Z
2021-01-15T16:19:00.000Z
amgut/handlers/download.py
zoechallacombe/american-gut-web
800f0045b98764b4ecfe5f442a03ca8938769eb5
[ "BSD-3-Clause" ]
346
2015-01-03T00:12:17.000Z
2019-11-20T00:51:16.000Z
amgut/handlers/download.py
zoechallacombe/american-gut-web
800f0045b98764b4ecfe5f442a03ca8938769eb5
[ "BSD-3-Clause" ]
16
2015-11-10T21:53:52.000Z
2019-10-21T18:00:47.000Z
from tornado.web import authenticated, HTTPError from os.path import join, exists from .base_handlers import BaseHandler from amgut import AMGUT_CONFIG from amgut.connections import ag_data # {filetype from get: (local path, file suffix)} FILETYPES = {'taxa': ('taxa-summaries', '.txt'), 'result-pdf': (...
34.057692
71
0.648786
ce2d0782414a09cfbc3fdd46b68689e9164827a6
5,250
py
Python
desktop/core/ext-py/cryptography-2.1.4/src/_cffi_src/openssl/asn1.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
3
2018-01-29T14:16:02.000Z
2019-02-05T21:33:05.000Z
desktop/core/ext-py/cryptography-2.1.4/src/_cffi_src/openssl/asn1.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
4
2021-03-11T04:02:00.000Z
2022-03-27T08:31:56.000Z
desktop/core/ext-py/cryptography-2.1.4/src/_cffi_src/openssl/asn1.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2
2019-12-05T17:24:36.000Z
2021-11-22T21:21:32.000Z
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function INCLUDES = """ #include <openssl/asn1.h> """ TYPES = """ typedef int... ...
33.018868
79
0.770857
c40822fcb6a4e725ec10f2777a19b82fbc2752a8
22,690
py
Python
cube4.py
Horia73/MultiCuberX
6087e2732c1d28c1d2244441ebb687b907ce86ac
[ "MIT" ]
null
null
null
cube4.py
Horia73/MultiCuberX
6087e2732c1d28c1d2244441ebb687b907ce86ac
[ "MIT" ]
null
null
null
cube4.py
Horia73/MultiCuberX
6087e2732c1d28c1d2244441ebb687b907ce86ac
[ "MIT" ]
null
null
null
from subprocess import check_output from time import sleep import logging import imutils import serial import time import cv2 global Down, Medium1, Medium2, Up, FlUp, FlDown, coord, l, start, i start = True i = 0 l = [] coord = [] log = logging.getLogger(__name__) Down = True Medium1 = False medium = False Medium2 ...
21.754554
135
0.385148
162053c27733768806f8dc45354942f7a5c0fba8
1,031
py
Python
SWIM-Executables/Windows/pyinstaller-2.0 for windows/buildtests/libraries/test_pyodbc.py
alexsigaras/SWIM
1a35df8acb26bdcb307a1b8f60e9feba68ed1715
[ "MIT" ]
47
2020-03-08T08:43:28.000Z
2022-03-18T18:51:55.000Z
SWIM-Executables/Windows/pyinstaller-2.0 for windows/buildtests/libraries/test_pyodbc.py
alexsigaras/SWIM
1a35df8acb26bdcb307a1b8f60e9feba68ed1715
[ "MIT" ]
null
null
null
SWIM-Executables/Windows/pyinstaller-2.0 for windows/buildtests/libraries/test_pyodbc.py
alexsigaras/SWIM
1a35df8acb26bdcb307a1b8f60e9feba68ed1715
[ "MIT" ]
16
2020-03-08T08:43:30.000Z
2022-01-10T22:05:57.000Z
# # Copyright (C) 2012, Martin Zibricky # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distribute...
39.653846
79
0.774976
eebfc21f48d2bfe9b21efa4264c756a160a51112
486
py
Python
base/migrations/0003_auto_20211207_2325.py
SergioVzqz/Devmorize
e4e5ddaf6b8d0f66873e345e986661daae504cf7
[ "MIT" ]
null
null
null
base/migrations/0003_auto_20211207_2325.py
SergioVzqz/Devmorize
e4e5ddaf6b8d0f66873e345e986661daae504cf7
[ "MIT" ]
null
null
null
base/migrations/0003_auto_20211207_2325.py
SergioVzqz/Devmorize
e4e5ddaf6b8d0f66873e345e986661daae504cf7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-12-07 23:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('base', '0002_alter_task_options'), ] operations = [ migrations.AlterModelOptions( name='task', options={'ordering': ['comple...
21.130435
48
0.557613
cbe0cfbd0de7186da4d1d64546c5f27e7c608d0b
736
py
Python
oops_fhir/r4/value_set/detected_issue_mitigation_action.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/detected_issue_mitigation_action.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/detected_issue_mitigation_action.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.v3_act_code import v3ActCode __all__ = ["DetectedIssueMitigationAction"] _resource = _ValueSet.parse_file(Path(__file__).with_suffix(".json")) class DetectedIssu...
23.741935
76
0.764946
0abe0200fd3367a6edbbca2a09b6ec3245e0fab0
1,973
py
Python
python_files/import_and_normalize.py
AleksCipri/DeepMergeDomainAdaptation
2ffb6ce6ebdaae60a8cdc23c5a138dad3c47b4c8
[ "BSD-2-Clause" ]
6
2020-06-15T16:22:07.000Z
2021-12-06T16:57:56.000Z
python_files/import_and_normalize.py
AleksCipri/DeepMergeDomainAdaptation
2ffb6ce6ebdaae60a8cdc23c5a138dad3c47b4c8
[ "BSD-2-Clause" ]
17
2020-06-12T21:44:29.000Z
2022-02-10T03:36:02.000Z
python_files/import_and_normalize.py
AleksCipri/DeepMergeDomainAdaptation
2ffb6ce6ebdaae60a8cdc23c5a138dad3c47b4c8
[ "BSD-2-Clause" ]
4
2020-06-23T18:32:34.000Z
2021-03-03T15:50:49.000Z
#Importing needed packages import torch import numpy as np from torch.utils.data import Dataset, TensorDataset, DataLoader import torchvision.transforms as transform import matplotlib.pyplot as plt def array_to_tensor(name): data_list = list(np.load(str(name))) return(torch.Tensor(data_list)) def normalization(t)...
32.883333
89
0.687785
58876ceeae5c564b6b8aded4c396e99e0808d225
426
py
Python
python_trick/permutation_lib_largest_no.py
sandeepjindal/algos
e649c82bfb6b986c8462b09d28e07c2069e48792
[ "MIT" ]
1
2019-09-10T17:45:58.000Z
2019-09-10T17:45:58.000Z
python_trick/permutation_lib_largest_no.py
sandeepjindal/algos
e649c82bfb6b986c8462b09d28e07c2069e48792
[ "MIT" ]
null
null
null
python_trick/permutation_lib_largest_no.py
sandeepjindal/algos
e649c82bfb6b986c8462b09d28e07c2069e48792
[ "MIT" ]
null
null
null
# Python3 implementation this is to use itertools. # permutations as coded below: from itertools import permutations def largest(l): lst = [] for i in permutations(l, len(l)): # provides all permutations of the list values, # store them in list to find max lst.append("".join(map(str,i))) return max(l...
25.058824
54
0.699531
68a03bb405a668c4b5ac5bead02c1e7f4aa7e571
2,951
py
Python
python/examples/example5B.py
JacekPierzchlewski/cosniwa
d7b86dd452ab3df06f42ac205c2d1bcfbae2f288
[ "BSD-2-Clause" ]
2
2017-03-18T12:54:13.000Z
2017-05-02T09:51:17.000Z
python/examples/example5B.py
JacekPierzchlewski/cosniwa
d7b86dd452ab3df06f42ac205c2d1bcfbae2f288
[ "BSD-2-Clause" ]
null
null
null
python/examples/example5B.py
JacekPierzchlewski/cosniwa
d7b86dd452ab3df06f42ac205c2d1bcfbae2f288
[ "BSD-2-Clause" ]
null
null
null
# # example5B.py [version 1.0] # CoSniWa: COde SNIppet stopWAtch [Python port] - example 5B # # Example5A: Using Cosniwa with classes (versionB) # # read more on: www.speedupcode.com # # (c) Jacek Pierzchlewski, 2017 jacek@pierzchlewski.com # license: BSD-2-Clause. # try: import cCosniwa as csw except ImportErro...
23.798387
72
0.596747
2141502c58faffe459b58c153fba8d8d2419825b
1,491
py
Python
Scapy Gui/Backend_Process.py
Ash-Shaun/PacketCrafter
f30d1ac664fdde1edd001e53cb8d33ac4207d6b7
[ "MIT" ]
null
null
null
Scapy Gui/Backend_Process.py
Ash-Shaun/PacketCrafter
f30d1ac664fdde1edd001e53cb8d33ac4207d6b7
[ "MIT" ]
null
null
null
Scapy Gui/Backend_Process.py
Ash-Shaun/PacketCrafter
f30d1ac664fdde1edd001e53cb8d33ac4207d6b7
[ "MIT" ]
null
null
null
import netifaces from scapy.all import * from temp import text IP_addr = ['172.18.0.1', '172.19.0.1', '172.17.0.1', '192.168.38.138', '127.0.0.1'] MAC = ['00:0c:29:79:14:67', '00:00:00:00:00:00', '02:42:2b:9e:1a:6d', '02:42:11:16:25:ea', 'ff:ff:ff:ff:ff:ff'] def getinterfaces(): iface = netifaces.interfaces() ...
39.236842
180
0.599598
633e9e9dbafc775d697aa58bbe66d3cdf0942301
853
py
Python
Python/11.py
GeneralLi95/leetcode
f42392f2283e19ec76273d81b2912944f9039568
[ "MIT" ]
null
null
null
Python/11.py
GeneralLi95/leetcode
f42392f2283e19ec76273d81b2912944f9039568
[ "MIT" ]
null
null
null
Python/11.py
GeneralLi95/leetcode
f42392f2283e19ec76273d81b2912944f9039568
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # @Date : 2022/2/4 # @Filename : 11.py 盛最多水的容器 # @Tag : 贪心,双指针,数组 # @Autor : LI YAO # @Difficulty : Medium from heapq import * from typing import List, Optional from collections import defaultdict, deque, Counter from itertools import product,combinations,permutations,accu...
21.871795
66
0.592028
cceac61f392a8c5fe59df2dc784746d80afdb17a
47,876
py
Python
pandas/tseries/period.py
vemel/pandas
1508491df35039ba2ca8b5c8ceecff28464c3bfe
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2021-02-16T10:01:48.000Z
2021-02-16T10:01:48.000Z
pandas/tseries/period.py
vemel/pandas
1508491df35039ba2ca8b5c8ceecff28464c3bfe
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/tseries/period.py
vemel/pandas
1508491df35039ba2ca8b5c8ceecff28464c3bfe
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# pylint: disable=E1101,E1103,W0232 import operator from datetime import datetime, date import numpy as np from pandas.core.base import PandasObject from pandas.tseries.frequencies import (get_freq_code as _gfc, _month_numbers, FreqGroup) from pandas.tseries.index import Dateti...
35.781764
97
0.520741
e4efaaf075ac4b46c7729189645ae2dfba5ce561
3,252
py
Python
apps/users/tests/test_views.py
sgazda94/dj_schulx
c6d2086201b80bb007df34be6b623e3001bf7446
[ "MIT" ]
null
null
null
apps/users/tests/test_views.py
sgazda94/dj_schulx
c6d2086201b80bb007df34be6b623e3001bf7446
[ "MIT" ]
1
2022-03-28T22:19:01.000Z
2022-03-28T22:19:01.000Z
apps/users/tests/test_views.py
sgazda94/dj_schulx
c6d2086201b80bb007df34be6b623e3001bf7446
[ "MIT" ]
null
null
null
import pytest from django.conf import settings from django.contrib import messages from django.contrib.auth.models import AnonymousUser from django.contrib.messages.middleware import MessageMiddleware from django.contrib.sessions.middleware import SessionMiddleware from django.http import HttpRequest, HttpResponseRedir...
32.848485
79
0.697417
24a67a56a2df6eb47bd8d9741e269c83e4f0035e
7,187
py
Python
airflow/providers/amazon/aws/transfers/redshift_to_s3.py
aliotta/airflow
bca097703233536b4d8e55cd500e9be14596fb7f
[ "Apache-2.0" ]
null
null
null
airflow/providers/amazon/aws/transfers/redshift_to_s3.py
aliotta/airflow
bca097703233536b4d8e55cd500e9be14596fb7f
[ "Apache-2.0" ]
null
null
null
airflow/providers/amazon/aws/transfers/redshift_to_s3.py
aliotta/airflow
bca097703233536b4d8e55cd500e9be14596fb7f
[ "Apache-2.0" ]
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...
42.526627
106
0.671212
b7bf5e39b22b9b1e49adfc0ed55a88092acb609b
806
py
Python
LeetCode/1-1000/101-200/101-125/108. Convert Sorted Array to Binary Search Tree/solution-python.py
adubois85/coding_challenge_websites
7867a05847a216661eff3b24b1cb1480fb7d3030
[ "Apache-2.0" ]
null
null
null
LeetCode/1-1000/101-200/101-125/108. Convert Sorted Array to Binary Search Tree/solution-python.py
adubois85/coding_challenge_websites
7867a05847a216661eff3b24b1cb1480fb7d3030
[ "Apache-2.0" ]
null
null
null
LeetCode/1-1000/101-200/101-125/108. Convert Sorted Array to Binary Search Tree/solution-python.py
adubois85/coding_challenge_websites
7867a05847a216661eff3b24b1cb1480fb7d3030
[ "Apache-2.0" ]
null
null
null
from typing import List # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right # [1, 2, 3, 4, 5, 6, 7, 8, 9] # 5 # 3 7 # 2 4 6 8 # 1 ...
25.1875
67
0.485112
4253bbb40238e3f83ff6591d12a095d080034d2d
12,572
py
Python
python/ccxt/async_support/base/exchange.py
bitkub/ccxt
6bc708ba3d653c1f74fb7b72c705cb370dc6c498
[ "MIT" ]
4
2021-01-10T09:14:17.000Z
2022-02-15T19:09:52.000Z
python/ccxt/async_support/base/exchange.py
bitkub/ccxt
6bc708ba3d653c1f74fb7b72c705cb370dc6c498
[ "MIT" ]
null
null
null
python/ccxt/async_support/base/exchange.py
bitkub/ccxt
6bc708ba3d653c1f74fb7b72c705cb370dc6c498
[ "MIT" ]
4
2021-06-02T16:40:35.000Z
2022-03-14T04:50:31.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- __version__ = '1.28.78' # ----------------------------------------------------------------------------- import asyncio import concurrent import socket import certifi import aiohttp import ssl import sys import ya...
41.906667
355
0.61287
637521a9f2c0bdad2a85184ebecf8113f817fd33
342
py
Python
108-Convert-Sorted-Array-to-Binary-Search-Tree/solution.py
alfmunny/leetcode
e35d2164c7e6e66410309fe1667ceab5a7689bef
[ "MIT" ]
null
null
null
108-Convert-Sorted-Array-to-Binary-Search-Tree/solution.py
alfmunny/leetcode
e35d2164c7e6e66410309fe1667ceab5a7689bef
[ "MIT" ]
null
null
null
108-Convert-Sorted-Array-to-Binary-Search-Tree/solution.py
alfmunny/leetcode
e35d2164c7e6e66410309fe1667ceab5a7689bef
[ "MIT" ]
null
null
null
class Solution: def sortedArrayToBST(self, nums: List[int]) -> TreeNode: if not nums: return None mid = len(nums)//2 root = TreeNode(nums[mid]) root.left = self.sortedArrayToBST(nums[:mid]) root.right = self.sortedArrayToBST(nums[mid+1:]) ...
26.307692
60
0.54386
c46392868f58df9cdb2a918ee9de2cd8368e30b2
28
py
Python
sportsstats/tests/config.example.py
badfeatures/sports-stats
1bd953d2245008774943056c2e56e44d6dedd107
[ "MIT" ]
null
null
null
sportsstats/tests/config.example.py
badfeatures/sports-stats
1bd953d2245008774943056c2e56e44d6dedd107
[ "MIT" ]
null
null
null
sportsstats/tests/config.example.py
badfeatures/sports-stats
1bd953d2245008774943056c2e56e44d6dedd107
[ "MIT" ]
null
null
null
app_key = '' app_secret = ''
14
15
0.607143
f1b68a28c1926b02754a56cdfdb630eae271d1c2
6,861
py
Python
src/sagemaker/pytorch/model.py
matthewfollegot/sagemaker-python-sdk
5182be3c147e8d765208a3548a55df99e3013748
[ "Apache-2.0" ]
1
2019-12-28T00:47:41.000Z
2019-12-28T00:47:41.000Z
src/sagemaker/pytorch/model.py
matthewfollegot/sagemaker-python-sdk
5182be3c147e8d765208a3548a55df99e3013748
[ "Apache-2.0" ]
null
null
null
src/sagemaker/pytorch/model.py
matthewfollegot/sagemaker-python-sdk
5182be3c147e8d765208a3548a55df99e3013748
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 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://aws.amazon.com/apache2.0/ # # or in the "license" fil...
42.092025
98
0.663752
739e6f943ea181c77e32bbe9c3200d8194424ecc
2,760
py
Python
tempest/api/network/base_routers.py
KiranPawar72/tempest
1fef3dd92b083055793065dd0693454735ec2c01
[ "Apache-2.0" ]
null
null
null
tempest/api/network/base_routers.py
KiranPawar72/tempest
1fef3dd92b083055793065dd0693454735ec2c01
[ "Apache-2.0" ]
null
null
null
tempest/api/network/base_routers.py
KiranPawar72/tempest
1fef3dd92b083055793065dd0693454735ec2c01
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18:23.000Z
# Copyright 2013 OpenStack Foundation # 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 requ...
43.125
78
0.68913
8463211945c4f1e45cd17dcc468233d447dee07b
1,155
py
Python
scripts/get_countour.py
jorenver/proyecto_investigacion_postes
7c483a0bad7359a890da8def566b301cdef584e4
[ "MIT" ]
null
null
null
scripts/get_countour.py
jorenver/proyecto_investigacion_postes
7c483a0bad7359a890da8def566b301cdef584e4
[ "MIT" ]
null
null
null
scripts/get_countour.py
jorenver/proyecto_investigacion_postes
7c483a0bad7359a890da8def566b301cdef584e4
[ "MIT" ]
null
null
null
from osgeo import gdal from skimage.morphology import erosion from skimage.morphology import black_tophat, skeletonize, convex_hull_image from skimage.morphology import disk #import tifffile as tiff import sys from scipy import ndimage import numpy as np #filename = sys.argv[1] #dst_filename=sys.argv[2] filename="rast...
33
76
0.813853
17cf9a0237b60b0fc0e1e7ee995da2cdaf985bf1
5,956
py
Python
extensions/donjayamanne.python-0.6.9/pythonFiles/preview/jedi/settings.py
Sunshengjin/RoboWare-Studio
aa2c309bd5e79f92ba7bf456ff86ad0573975c49
[ "BSD-3-Clause" ]
239
2018-04-20T06:58:32.000Z
2022-03-22T18:06:08.000Z
extensions/donjayamanne.python-0.6.9/pythonFiles/preview/jedi/settings.py
Sunshengjin/RoboWare-Studio
aa2c309bd5e79f92ba7bf456ff86ad0573975c49
[ "BSD-3-Clause" ]
10
2018-12-09T13:49:06.000Z
2021-07-03T00:38:53.000Z
extensions/donjayamanne.python-0.6.9/pythonFiles/preview/jedi/settings.py
Sunshengjin/RoboWare-Studio
aa2c309bd5e79f92ba7bf456ff86ad0573975c49
[ "BSD-3-Clause" ]
99
2018-07-20T09:16:13.000Z
2022-03-20T11:58:56.000Z
""" This module contains variables with global |jedi| settings. To change the behavior of |jedi|, change the variables defined in :mod:`jedi.settings`. Plugins should expose an interface so that the user can adjust the configuration. Example usage:: from jedi import settings settings.case_insensitive_comple...
25.452991
79
0.711887
951b8bbc9e1b5a31b860216d4e7a0b1d13a0b732
4,865
py
Python
correlateSNPsMethylationPlusPlusRand.py
imk1/MethylationQTLCode
d193f518994074a29a39e081d470b1c67a95a527
[ "MIT" ]
null
null
null
correlateSNPsMethylationPlusPlusRand.py
imk1/MethylationQTLCode
d193f518994074a29a39e081d470b1c67a95a527
[ "MIT" ]
null
null
null
correlateSNPsMethylationPlusPlusRand.py
imk1/MethylationQTLCode
d193f518994074a29a39e081d470b1c67a95a527
[ "MIT" ]
null
null
null
def makeIntDict(intDictFileName): # Make a dictionary from pairs of ints in a file intDictFile = open(intDictFileName) intDict = {} for line in intDictFile: # Iterate through the lines of the int dictionary file and enter each into the dictionary lineElements = line.strip().split("\t") intDict[int(lineEleme...
44.633028
159
0.767112
6311bc31c859f14edeea066eee01bbf396ebeff5
6,959
py
Python
datasets/dataset_prepare/models/counters/Res50_SCAR.py
Linfeng-Lee/IIM
c63bf8b023ccc6750e178112662972f721dcabe1
[ "MIT" ]
81
2020-12-10T02:38:03.000Z
2022-03-23T04:27:39.000Z
datasets/dataset_prepare/models/counters/Res50_SCAR.py
Linfeng-Lee/IIM
c63bf8b023ccc6750e178112662972f721dcabe1
[ "MIT" ]
29
2020-12-15T09:07:00.000Z
2022-03-22T10:00:28.000Z
datasets/dataset_prepare/models/counters/Res50_SCAR.py
Linfeng-Lee/IIM
c63bf8b023ccc6750e178112662972f721dcabe1
[ "MIT" ]
24
2020-12-14T02:05:16.000Z
2022-03-10T01:26:54.000Z
import torch.nn as nn import torch from torchvision import models import torch.nn.functional as F from misc.utils import * import pdb # model_path = '../PyTorch_Pretrained/resnet101-5d3b4d8f.pth' class Res50_SCAR(nn.Module): def __init__(self, pretrained=True): super(Res50_SCAR, self).__init__() ...
32.671362
124
0.573215
9ec955f7d416dd1da673d13740cd90fc9e317029
732
py
Python
JumpScale9Portal/tools/codegentools/CodeGeneratorEveModel.py
Jumpscale/portal9
fd4c9718daf51b877a6a98bd0d1ff4bc0b272f67
[ "Apache-2.0" ]
1
2017-06-07T08:12:09.000Z
2017-06-07T08:12:09.000Z
JumpScale9Portal/tools/codegentools/CodeGeneratorEveModel.py
Jumpscale/portal9
fd4c9718daf51b877a6a98bd0d1ff4bc0b272f67
[ "Apache-2.0" ]
36
2017-05-18T10:54:44.000Z
2019-03-27T11:24:20.000Z
JumpScale9Portal/tools/codegentools/CodeGeneratorEveModel.py
Jumpscale/portal9
fd4c9718daf51b877a6a98bd0d1ff4bc0b272f67
[ "Apache-2.0" ]
1
2018-06-12T05:18:01.000Z
2018-06-12T05:18:01.000Z
from js9 import j from .CodeGeneratorBase import CodeGeneratorBase class CodeGeneratorEveModel(CodeGeneratorBase): def __init__(self, spec, typecheck=True, dieInGenCode=True, codepath=''): CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode) self.type = "EveModel" def generate(sel...
25.241379
77
0.603825
a421b654484cd3126340fff30868e0e6db5440ab
22,713
py
Python
setup2.py
OnApp/cdn-bsddb3-python
fbb1a877b652091ae0d060d835ec5bcf08595606
[ "BSD-3-Clause" ]
null
null
null
setup2.py
OnApp/cdn-bsddb3-python
fbb1a877b652091ae0d060d835ec5bcf08595606
[ "BSD-3-Clause" ]
null
null
null
setup2.py
OnApp/cdn-bsddb3-python
fbb1a877b652091ae0d060d835ec5bcf08595606
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Copyright (c) 2008-2020, Jesus Cea Avion <jcea@jcea.es> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notic...
40.414591
90
0.578215
40718ee2ce5d24f893855b171b5090230a93f3d7
606
py
Python
samples/example_03/scenario_test.py
cair/deep-rts
7aa5dde0c5df10ae3a3d057e7b89641aec58e115
[ "MIT" ]
144
2018-07-13T07:47:50.000Z
2022-03-31T06:29:50.000Z
samples/example_03/scenario_test.py
cair/DeepRTS
2ea4de0993ea0ca2677fdb36a172779db4ce7868
[ "MIT" ]
18
2019-03-29T10:37:01.000Z
2022-03-02T12:47:34.000Z
samples/example_03/scenario_test.py
cair/DeepRTS
2ea4de0993ea0ca2677fdb36a172779db4ce7868
[ "MIT" ]
23
2018-11-02T18:12:51.000Z
2022-02-15T20:32:18.000Z
if __name__ == "__main__": x = Scenario( python.Game("15x15-2v2.json", n_players=2), Scenario.GOLD_COLLECT(1), Scenario.STONE_COLLECT(1), Scenario.LUMBER_COLLECT(1), Scenario.FOOD_CONSUMPTION(1), Scenario.FOOD_COUNT(1), Scenario.DAMAGE_DONE(1), Sc...
23.307692
51
0.60231
cbf03c8f48fc87a8d28e12a9b82eb5c5a79b3687
10,987
py
Python
atom/nucleus/python/nucleus_api/models/node_relationship.py
ShekharPaatni/SDK
6534ffdb63af87c02c431df9add05a90370183cb
[ "Apache-2.0" ]
11
2019-04-16T02:11:17.000Z
2021-12-16T22:51:40.000Z
atom/nucleus/python/nucleus_api/models/node_relationship.py
ShekharPaatni/SDK
6534ffdb63af87c02c431df9add05a90370183cb
[ "Apache-2.0" ]
81
2019-11-19T23:24:28.000Z
2022-03-28T11:35:47.000Z
atom/nucleus/python/nucleus_api/models/node_relationship.py
ShekharPaatni/SDK
6534ffdb63af87c02c431df9add05a90370183cb
[ "Apache-2.0" ]
11
2020-07-08T02:29:56.000Z
2022-03-28T10:05:33.000Z
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.4 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from nucleus_api.configuration i...
28.099744
243
0.596887
e1aab18d9cbeb6743c1b5f484171620f065fc3cc
4,349
py
Python
bootcamp/news/tests/test_views.py
nandkumar1996/sharebox-portal
1b4fb60c776d42271a03997ab47f4da67463ad91
[ "MIT" ]
7
2019-11-25T10:43:31.000Z
2021-08-09T14:02:58.000Z
bootcamp/news/tests/test_views.py
nandkumar1996/sharebox-portal
1b4fb60c776d42271a03997ab47f4da67463ad91
[ "MIT" ]
45
2020-03-29T20:01:38.000Z
2021-08-09T16:39:33.000Z
bootcamp/news/tests/test_views.py
nandkumar1996/sharebox-portal
1b4fb60c776d42271a03997ab47f4da67463ad91
[ "MIT" ]
5
2020-03-30T15:33:42.000Z
2021-09-17T17:04:40.000Z
from django.test import Client from django.urls import reverse from test_plus.test import TestCase from bootcamp.news.models import News class NewsViewsTest(TestCase): def setUp(self): self.user = self.make_user("first_user") self.other_user = self.make_user("second_user") self.client = ...
39.18018
82
0.614854
b8425713f8ad8d17daea34638d12335bb8f2be05
3,361
py
Python
g_python/hunitytools.py
luiz1n/G-Python
b5ae7d22cae1730193f7ec76dfd85dd1bf172f9e
[ "MIT" ]
null
null
null
g_python/hunitytools.py
luiz1n/G-Python
b5ae7d22cae1730193f7ec76dfd85dd1bf172f9e
[ "MIT" ]
null
null
null
g_python/hunitytools.py
luiz1n/G-Python
b5ae7d22cae1730193f7ec76dfd85dd1bf172f9e
[ "MIT" ]
null
null
null
import threading import time from .gextension import Extension from .hmessage import HMessage, Direction from .hpacket import HPacket from .hunityparsers import HUnityEntity, HFUnityFloorItem class UnityRoomUsers: def __init__(self, ext: Extension, users_in_room=28, get_guest_room=385, user_logged_out=29): ...
33.949495
97
0.688486
68b2275acf5a0f10a8e6207e731df3c332d5db8c
35,115
py
Python
ManagementService/python/deployWorkflow.py
chengyih001/knix_impl
9921f512a9a4fdad49d3f3ae77f4d26cce7ef619
[ "Apache-2.0" ]
null
null
null
ManagementService/python/deployWorkflow.py
chengyih001/knix_impl
9921f512a9a4fdad49d3f3ae77f4d26cce7ef619
[ "Apache-2.0" ]
null
null
null
ManagementService/python/deployWorkflow.py
chengyih001/knix_impl
9921f512a9a4fdad49d3f3ae77f4d26cce7ef619
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The KNIX 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 agree...
47.581301
251
0.629645
8754c0710e742b7cf20b782a0f75146a3591f1cf
24,063
py
Python
roles/eseries/library/netapp_e_volume.py
NetApp/eseries-stk
54e1f74c0f242651def25aee478cd40027b37f57
[ "BSD-3-Clause" ]
2
2019-03-27T08:44:36.000Z
2020-10-22T21:15:30.000Z
roles/eseries/library/netapp_e_volume.py
NetApp/eseries-stk
54e1f74c0f242651def25aee478cd40027b37f57
[ "BSD-3-Clause" ]
1
2020-04-14T20:24:41.000Z
2020-04-25T18:43:57.000Z
roles/eseries/library/netapp_e_volume.py
NetApp/eseries-stk
54e1f74c0f242651def25aee478cd40027b37f57
[ "BSD-3-Clause" ]
4
2017-10-17T19:39:21.000Z
2019-03-12T13:30:14.000Z
#!/usr/bin/python # (c) 2016, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.0', 'status': ['preview'], ...
42.816726
127
0.525371
aa0af72bea04f683f43f226b3365f8366d4f1cb3
22,573
py
Python
flopy/mf6/modflow/mfgwtmwt.py
dbrakenhoff/flopy
0d5953303694e023da8ee9e9453862bbdb7ffb66
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/mf6/modflow/mfgwtmwt.py
dbrakenhoff/flopy
0d5953303694e023da8ee9e9453862bbdb7ffb66
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/mf6/modflow/mfgwtmwt.py
dbrakenhoff/flopy
0d5953303694e023da8ee9e9453862bbdb7ffb66
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
# DO NOT MODIFY THIS FILE DIRECTLY. THIS FILE MUST BE CREATED BY # mf6/utils/createpackages.py from .. import mfpackage from ..data.mfdatautil import ListTemplateGenerator class ModflowGwtmwt(mfpackage.MFPackage): """ ModflowGwtmwt defines a mwt package within a gwt6 model. Parameters ---------- ...
36.883987
79
0.555752
6ae9a916c7114d348e1270f0b9bba07feb12b842
2,167
py
Python
22/sol.py
chaserobertson/advent2020
77da333b66b6cc152834888dfe022cd526de45cc
[ "MIT" ]
null
null
null
22/sol.py
chaserobertson/advent2020
77da333b66b6cc152834888dfe022cd526de45cc
[ "MIT" ]
null
null
null
22/sol.py
chaserobertson/advent2020
77da333b66b6cc152834888dfe022cd526de45cc
[ "MIT" ]
null
null
null
import pathlib import queue in_file = pathlib.Path.cwd().joinpath('22', 'input.txt') with open(in_file) as input: lines = input.readlines() class Player: def __init__(self, id): self.id = int(id) self.deck = queue.SimpleQueue() def __str__(self): output = 'Player ' + str(self.id...
24.077778
62
0.577757
1f3c0a8d66f05e05ac6113769f9290b209e434f3
5,017
py
Python
docs/conf.py
radtomas/sufler
ff60fb110b5aad8ca0ea6d784148b596a3e5a0db
[ "MIT" ]
3
2018-03-29T14:35:08.000Z
2020-11-18T03:11:10.000Z
docs/conf.py
radtomas/sufler
ff60fb110b5aad8ca0ea6d784148b596a3e5a0db
[ "MIT" ]
12
2018-03-22T10:47:11.000Z
2021-03-25T22:08:41.000Z
docs/conf.py
radtomas/sufler
ff60fb110b5aad8ca0ea6d784148b596a3e5a0db
[ "MIT" ]
1
2018-03-09T13:35:12.000Z
2018-03-09T13:35:12.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
29.863095
79
0.651585
0fe0cb324a68728ec1877b6c3ab8e46ee6bb5ac2
46,312
py
Python
gramex/cache.py
joshuamosesb/gramex
e416cb609698b5941a18b06743c853dee50e0500
[ "MIT" ]
1
2020-05-17T18:03:44.000Z
2020-05-17T18:03:44.000Z
gramex/cache.py
joshuamosesb/gramex
e416cb609698b5941a18b06743c853dee50e0500
[ "MIT" ]
null
null
null
gramex/cache.py
joshuamosesb/gramex
e416cb609698b5941a18b06743c853dee50e0500
[ "MIT" ]
null
null
null
'''Caching utilities''' from __future__ import unicode_literals import io import os import re import six import sys import json import time import atexit import inspect import requests import tempfile import mimetypes import subprocess # nosec import pandas as pd import tornado.template from threading import Thr...
38.022989
99
0.599737
7514a074efe8f4de9516d192fd2ec88bb08bc708
144
py
Python
cms/plugins/moderation/tests/apps.py
cresset-group/cms
727b81e40dd1196e85c240e728a7824121163d4d
[ "BSD-3-Clause" ]
13
2015-03-13T21:32:16.000Z
2020-08-07T08:09:02.000Z
cms/plugins/moderation/tests/apps.py
cresset-group/cms
727b81e40dd1196e85c240e728a7824121163d4d
[ "BSD-3-Clause" ]
131
2015-04-04T11:27:14.000Z
2020-10-16T13:39:16.000Z
cms/plugins/moderation/tests/apps.py
cresset-group/cms
727b81e40dd1196e85c240e728a7824121163d4d
[ "BSD-3-Clause" ]
16
2015-06-05T12:56:28.000Z
2021-01-06T15:15:53.000Z
from django.apps import AppConfig class ModerationConfig(AppConfig): name = 'cms.plugins.moderation.tests' label = 'moderation_tests'
20.571429
41
0.756944
0efe7f8638a4486a7445ee13d86918b2b0fbf71e
4,086
py
Python
Samples-Http/OLD/Python/TTSSample.py
jiajzhan/Cognitive-Speech-TTS
ce10ef9cc24fe02d06e3078eabb79922aa9d0409
[ "MIT" ]
385
2017-04-14T08:22:31.000Z
2022-03-29T05:21:14.000Z
Samples-Http/OLD/Python/TTSSample.py
jiajzhan/Cognitive-Speech-TTS
ce10ef9cc24fe02d06e3078eabb79922aa9d0409
[ "MIT" ]
107
2017-04-12T03:08:08.000Z
2022-01-24T05:39:55.000Z
Samples-Http/OLD/Python/TTSSample.py
jiajzhan/Cognitive-Speech-TTS
ce10ef9cc24fe02d06e3078eabb79922aa9d0409
[ "MIT" ]
373
2017-04-14T10:57:23.000Z
2022-03-29T02:58:10.000Z
''' After you've set your subscription key, run this application from your working directory with this command: python TTSSample.py ''' import os, requests, time from xml.etree import ElementTree # This code is required for Python 2.7 try: input = raw_input except NameError: pass ''' If you prefer, you can hardcode y...
41.693878
140
0.660548
af31336ec68661f5d7c71536310a131a4a97d714
26,725
py
Python
bcbio/qc/multiqc.py
WimSpee/bcbio-nextgen
7b20b9a2cb5e918af130d011961761c49f758e14
[ "MIT" ]
1
2021-05-11T06:40:17.000Z
2021-05-11T06:40:17.000Z
bcbio/qc/multiqc.py
stl-23/bcbio-nextgen
1a241c0f0a7db4e754164015f4fb0090eaa6bee7
[ "MIT" ]
null
null
null
bcbio/qc/multiqc.py
stl-23/bcbio-nextgen
1a241c0f0a7db4e754164015f4fb0090eaa6bee7
[ "MIT" ]
null
null
null
"""High level summaries of samples and programs with MultiQC. https://github.com/ewels/MultiQC """ import collections import glob import io import json import mimetypes import os import pandas as pd import shutil import numpy as np from collections import OrderedDict import pybedtools import six import toolz as tz im...
43.455285
141
0.630196
a6ac6220683f282b6f8d45f487300a99bfc59863
300
py
Python
jobboardscraper/search/views.py
dillonko/jobboardscraper
21d662c3bad2e054c3b43f648e5b276339ee1d32
[ "BSD-3-Clause" ]
null
null
null
jobboardscraper/search/views.py
dillonko/jobboardscraper
21d662c3bad2e054c3b43f648e5b276339ee1d32
[ "BSD-3-Clause" ]
5
2020-12-09T20:45:28.000Z
2021-12-14T10:38:50.000Z
jobboardscraper/search/views.py
dillonko/jobboardscraper
21d662c3bad2e054c3b43f648e5b276339ee1d32
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from haystack.generic_views import SearchView from pure_pagination.mixins import PaginationMixin from .forms import MySearchForm class MySearchView(PaginationMixin, SearchView): form_class = MySearchForm paginate_by = getattr(settings, 'PAGINATE_BY', 10)
25
54
0.816667
0c85938847af34d61d3a2dcb6319d1b6b498133c
653
py
Python
converters.py
ThadeuJose/Python-WEBPtoPNGConverter
64e73138d53846e9068f97e48d65aca7dfb77f6c
[ "MIT" ]
null
null
null
converters.py
ThadeuJose/Python-WEBPtoPNGConverter
64e73138d53846e9068f97e48d65aca7dfb77f6c
[ "MIT" ]
null
null
null
converters.py
ThadeuJose/Python-WEBPtoPNGConverter
64e73138d53846e9068f97e48d65aca7dfb77f6c
[ "MIT" ]
null
null
null
from PIL import Image from files import EXTENSION, INPUT_EXTENSION, OUTPUT_EXTENSION, create_path, get_all_files, get_filename def convert_webp_to_png(inputpath, outputpath, file_extension): MODE = "RGB" im = Image.open(inputpath).convert(MODE) im.save(outputpath, file_extension) def convert_folder_webp_...
40.8125
104
0.705972
8ddd94b371dc3a525bbc004a88e2a0ae77445778
6,807
py
Python
tournament/models.py
siddeshlc8/Software-Engineering-Project
f1b5c1ef029d1126b6446b53755b9c91b095d4a1
[ "MIT" ]
4
2021-01-11T09:10:49.000Z
2022-03-20T09:39:41.000Z
tournament/models.py
siddeshlc8/Software_Engineering_Project
f1b5c1ef029d1126b6446b53755b9c91b095d4a1
[ "MIT" ]
6
2020-06-05T22:33:29.000Z
2022-01-13T01:33:17.000Z
tournament/models.py
siddeshlc8/Software_Engineering_Project
f1b5c1ef029d1126b6446b53755b9c91b095d4a1
[ "MIT" ]
1
2018-09-10T07:44:56.000Z
2018-09-10T07:44:56.000Z
from django.db import models from organizer.models import Organizer from player.models import Player # Create your models here. class Tournament(models.Model): name = models.CharField(max_length=20, unique=True) image = models.ImageField(blank=True, upload_to='tournaments', default='tournaments/no.png') ...
46.944828
125
0.682827
053f054478f468cf9631ab6be03e0c50f52c3e72
4,313
py
Python
src/test/test_bip38.py
alessandro-saglimbeni/libwally-core
ae84c26519b6c513332c19bc183dc0b584f4bf33
[ "MIT" ]
1
2021-06-06T18:11:23.000Z
2021-06-06T18:11:23.000Z
src/test/test_bip38.py
alessandro-saglimbeni/libwally-core
ae84c26519b6c513332c19bc183dc0b584f4bf33
[ "MIT" ]
1
2020-12-31T11:25:31.000Z
2021-01-22T00:24:37.000Z
src/test/test_bip38.py
alessandro-saglimbeni/libwally-core
ae84c26519b6c513332c19bc183dc0b584f4bf33
[ "MIT" ]
2
2020-08-24T07:39:11.000Z
2020-09-30T22:36:40.000Z
import unittest from util import * K_MAIN, K_TEST, K_COMP, K_EC, K_CHECK, K_RAW, K_ORDER = 0, 7, 256, 512, 1024, 2048, 4096 # BIP38 Vectors from # https://github.com/bitcoin/bips/blob/master/bip-0038.mediawiki cases = [ [ 'CBF4B9F70470856BB4F40F80B87EDB90865997FFEE6DF315AB166D713AF433A5', 'TestingOneTwoThre...
41.07619
89
0.649664
3df49cf86a9b6d391723ddb2223f38f56c31d8d8
10,585
py
Python
test/ext/test_indexable.py
rissikess/sqlalchemy-ceodbc
6f81f3f7a3c6e39843d478e11e010923a3bf7672
[ "MIT" ]
null
null
null
test/ext/test_indexable.py
rissikess/sqlalchemy-ceodbc
6f81f3f7a3c6e39843d478e11e010923a3bf7672
[ "MIT" ]
null
null
null
test/ext/test_indexable.py
rissikess/sqlalchemy-ceodbc
6f81f3f7a3c6e39843d478e11e010923a3bf7672
[ "MIT" ]
null
null
null
from sqlalchemy.testing import assert_raises import sqlalchemy as sa from sqlalchemy import testing from sqlalchemy import Integer, Text from sqlalchemy.sql.sqltypes import ARRAY, JSON from sqlalchemy.testing.schema import Column from sqlalchemy.orm import Session from sqlalchemy.testing import fixtures from sqlalchemy...
28.226667
81
0.547567
5d5acc1d9b48118cc45983b71b7e4007f7e0decd
466
py
Python
fastaProcessing/fastaReplaceDeg.py
linlifeng/llbio
962f6abda8e8a576cb0bf4d73d3a5c4ef9b1a04b
[ "MIT" ]
null
null
null
fastaProcessing/fastaReplaceDeg.py
linlifeng/llbio
962f6abda8e8a576cb0bf4d73d3a5c4ef9b1a04b
[ "MIT" ]
null
null
null
fastaProcessing/fastaReplaceDeg.py
linlifeng/llbio
962f6abda8e8a576cb0bf4d73d3a5c4ef9b1a04b
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' 1. fasta fname 2. replace with? ''' from sys import argv,exit from Bio import SeqIO try: fname = argv[1] repl = argv[2] except: exit(__doc__) f = open(fname, 'r') records = SeqIO.parse(f,'fasta') for r in records: seq = r.seq newSeq = '' for l in seq: if l.lower...
15.533333
46
0.530043
34e24e51fc99a3e2607974e174f316b0da43e947
8,957
py
Python
homeassistant/generated/zeroconf.py
davyike/core
13cc7583ed5c7de43c56b43db8fdc9879a853666
[ "Apache-2.0" ]
3
2019-10-02T04:40:26.000Z
2020-02-16T13:19:08.000Z
homeassistant/generated/zeroconf.py
davyike/core
13cc7583ed5c7de43c56b43db8fdc9879a853666
[ "Apache-2.0" ]
18
2021-11-03T06:21:27.000Z
2022-03-31T06:20:57.000Z
homeassistant/generated/zeroconf.py
davyike/core
13cc7583ed5c7de43c56b43db8fdc9879a853666
[ "Apache-2.0" ]
null
null
null
"""Automatically generated by hassfest. To update, run python3 -m script.hassfest """ # fmt: off ZEROCONF = { "_Volumio._tcp.local.": [ { "domain": "volumio" } ], "_airplay._tcp.local.": [ { "domain": "apple_tv", "properties": { ...
20.08296
47
0.356146
f79962dd478d66de69057f56d81005f401c027d4
9,860
py
Python
main.py
TharukRenuja/Telegraph-Uploader
7a01d32742177bf9b3c896f448c6ca915a6953a3
[ "MIT" ]
null
null
null
main.py
TharukRenuja/Telegraph-Uploader
7a01d32742177bf9b3c896f448c6ca915a6953a3
[ "MIT" ]
null
null
null
main.py
TharukRenuja/Telegraph-Uploader
7a01d32742177bf9b3c896f448c6ca915a6953a3
[ "MIT" ]
null
null
null
# Made with python3 # (C) @FayasNoushad # Copyright permission under MIT License # All rights reserved by FayasNoushad # License -> https://github.com/FayasNoushad/Telegraph-Uploader-Bot-V2/blob/main/LICENSE import os import time import math import json import string import random import traceback import asyncio impor...
33.310811
199
0.66998
5c18acc59e8fdfa76448dce04c040546686b3f1f
13,060
py
Python
wildfly/client.py
bheesham/wildfly-py
b5a3da0c7843e22b0c76b2b12fc088f0a2c9bd2d
[ "Apache-2.0" ]
1
2021-06-08T18:44:59.000Z
2021-06-08T18:44:59.000Z
wildfly/client.py
zsuzhengdu/wildfly-py
b5a3da0c7843e22b0c76b2b12fc088f0a2c9bd2d
[ "Apache-2.0" ]
null
null
null
wildfly/client.py
zsuzhengdu/wildfly-py
b5a3da0c7843e22b0c76b2b12fc088f0a2c9bd2d
[ "Apache-2.0" ]
1
2021-06-08T18:42:35.000Z
2021-06-08T18:42:35.000Z
# python binding for wildlfy management http/json api import logging import json import requests from . import util from . import api logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) # Define some KEY_OUTCOME = "outcome" KEY_RESULT = "result" class Client(requests.Session, api.HostAp...
39.696049
135
0.552374
37c9702802e994d72ec588bcb654f21f5a644b98
1,232
py
Python
pyxpiral/tests/pyxpiral_test.py
elcodedocle/pyxpiral
cc2b104b386c3f6d49e28c21e27eaa9996e1938c
[ "MIT" ]
null
null
null
pyxpiral/tests/pyxpiral_test.py
elcodedocle/pyxpiral
cc2b104b386c3f6d49e28c21e27eaa9996e1938c
[ "MIT" ]
null
null
null
pyxpiral/tests/pyxpiral_test.py
elcodedocle/pyxpiral
cc2b104b386c3f6d49e28c21e27eaa9996e1938c
[ "MIT" ]
null
null
null
""" Unitary tests for pyxpiral.py. :author: elcodedocle :contact: gael.abadin@gmail.com """ # pylint:disable=C0103,C0111,W0212,W0611 import logging import unittest from .. import __main__ as pyxpiral class TestPyxpiral(unittest.TestCase): """ Unitary tests for Pyxpiral. """ @classmethod def ...
20.881356
93
0.609578
b24738a8fb8ba74cef0887b993642cfca33fecf4
23,068
py
Python
exotic_ld/ld_computation.py
hrwakeford/ExoTiC-LD
5fdd86bcaded787e2e0d9d9c1ca54fa1ceda421a
[ "MIT" ]
null
null
null
exotic_ld/ld_computation.py
hrwakeford/ExoTiC-LD
5fdd86bcaded787e2e0d9d9c1ca54fa1ceda421a
[ "MIT" ]
null
null
null
exotic_ld/ld_computation.py
hrwakeford/ExoTiC-LD
5fdd86bcaded787e2e0d9d9c1ca54fa1ceda421a
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd from scipy.io import readsav from astropy.modeling.fitting import LevMarLSQFitter from scipy.interpolate import interp1d, splev, splrep from exotic_ld.ld_laws import quadratic_limb_darkening, \ nonlinear_limb_darkening class StellarLimbDarkening(object): """ ...
43.037313
80
0.577597
97c27953832563cfd06be77b30fe4c7052ef111e
4,549
py
Python
molteniron/tests/testDoClean.py
openstack/molteniron
348138603465cd4bfecfa8664435851225af29ef
[ "Apache-2.0" ]
8
2016-11-20T08:00:59.000Z
2019-01-28T22:04:40.000Z
molteniron/tests/testDoClean.py
openstack/molteniron
348138603465cd4bfecfa8664435851225af29ef
[ "Apache-2.0" ]
null
null
null
molteniron/tests/testDoClean.py
openstack/molteniron
348138603465cd4bfecfa8664435851225af29ef
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Tests the MoltenIron doClean command. """ # Copyright (c) 2016 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/licens...
28.974522
78
0.568037
efa3c386858cc8c37ec9479756f312faa0b14244
2,049
py
Python
sparse_data/exp_framework/random_forest.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
sparse_data/exp_framework/random_forest.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
sparse_data/exp_framework/random_forest.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
33.048387
80
0.725232
c950a29e711dec81dd7c9eae775b8480d1417be4
2,439
py
Python
app/crud/user.py
shiniao/soul-api
1438281c2dce237d735f7309c2ddb606c8d01e1e
[ "Apache-2.0" ]
1
2021-02-27T09:05:40.000Z
2021-02-27T09:05:40.000Z
app/crud/user.py
shiniao/soulapi
1438281c2dce237d735f7309c2ddb606c8d01e1e
[ "Apache-2.0" ]
null
null
null
app/crud/user.py
shiniao/soulapi
1438281c2dce237d735f7309c2ddb606c8d01e1e
[ "Apache-2.0" ]
null
null
null
from typing import Optional, Union, Dict, Any from sqlalchemy.orm import Session from .base import CRUDBase from ..models.user import User from ..schemas.user import UserCreate, UserUpdate from ..utils import get_hashed_password, verify_password class CRUDUser(CRUDBase[User, UserCreate, UserUpdate]): """crud fo...
31.269231
88
0.612136
b804a71e19438be27a6781c6296e947462d84d4c
2,173
py
Python
scipy/sparse/csgraph/tests/test_spanning_tree.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
1
2018-10-04T15:34:14.000Z
2018-10-04T15:34:14.000Z
scipy/sparse/csgraph/tests/test_spanning_tree.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
scipy/sparse/csgraph/tests/test_spanning_tree.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
"""Test the minimum spanning tree function""" import numpy as np from numpy.testing import assert_ import numpy.testing as npt from scipy.sparse import csr_matrix from scipy.sparse.csgraph import minimum_spanning_tree def test_minimum_spanning_tree(): # Create a graph with two connected components. graph = [[...
33.953125
74
0.601933
b1e7cf54220e257e24712c4f5743a39afd050ea4
8,933
py
Python
prody/__init__.py
kaynakb/ProDy
4366ad28142f51ff8a84f8a0f4ce659c0b949d55
[ "MIT" ]
null
null
null
prody/__init__.py
kaynakb/ProDy
4366ad28142f51ff8a84f8a0f4ce659c0b949d55
[ "MIT" ]
null
null
null
prody/__init__.py
kaynakb/ProDy
4366ad28142f51ff8a84f8a0f4ce659c0b949d55
[ "MIT" ]
null
null
null
"""ProDy is a package for Protein Dynamics, Sequence, and Structure Analysis""" __version__ = '2.0' __release__ = __version__ # + '-dev' # comment out '-dev' before a release import sys import warnings if sys.version_info[:2] < (2, 7): sys.stderr.write('Python 2.6 and older is not supported\n') sys.exit() i...
30.077441
79
0.643121
ad3812f4983c2412314f0f3e88e910b35591f22a
9,996
py
Python
tensorflow_probability/python/distributions/geometric.py
mjul/tensorflow-probability
c733f06bccceb983f3e9db8e6e3c98b3bd4d23c9
[ "Apache-2.0" ]
1
2021-06-16T20:06:04.000Z
2021-06-16T20:06:04.000Z
tensorflow_probability/python/distributions/geometric.py
mjul/tensorflow-probability
c733f06bccceb983f3e9db8e6e3c98b3bd4d23c9
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/geometric.py
mjul/tensorflow-probability
c733f06bccceb983f3e9db8e6e3c98b3bd4d23c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
36.349091
79
0.668768
52e26a67d055781ad3182f8164e731cf47b66856
18,323
py
Python
dense_correspondence/network/dense_correspondence_network.py
masato-ka/pytorch-dense-correspondence
89a5f87fd773b210e93ebcfeb945c95e7417d0e9
[ "BSD-3-Clause" ]
null
null
null
dense_correspondence/network/dense_correspondence_network.py
masato-ka/pytorch-dense-correspondence
89a5f87fd773b210e93ebcfeb945c95e7417d0e9
[ "BSD-3-Clause" ]
null
null
null
dense_correspondence/network/dense_correspondence_network.py
masato-ka/pytorch-dense-correspondence
89a5f87fd773b210e93ebcfeb945c95e7417d0e9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import sys, os import numpy as np import warnings import logging import dense_correspondence_manipulation.utils.utils as utils utils.add_dense_correspondence_to_python_path() from PIL import Image import torch import torch.nn as nn from torchvision import transforms import pytorch_segmentation_det...
31.537005
113
0.630301
bf7fc5d90c685232a6be1ce5d33788d73b14cf8b
4,574
py
Python
src/func.py
kevinmarquesp/terminal-shoppingList
138eda191f9f037db74bc63bd046355be52963b1
[ "MIT" ]
null
null
null
src/func.py
kevinmarquesp/terminal-shoppingList
138eda191f9f037db74bc63bd046355be52963b1
[ "MIT" ]
null
null
null
src/func.py
kevinmarquesp/terminal-shoppingList
138eda191f9f037db74bc63bd046355be52963b1
[ "MIT" ]
null
null
null
from os import system, name, remove from datetime import date def intToDecimal(n): return f'R$ {n/100}'.replace( '.', ',') def tableWrite( array=list(), total=dict()): system( 'clear' if name!='nt' else 'cls') if len(array)==0: print() else: print( '\n\033[32m Nada adicionado ainda...
27.721212
184
0.415173
41780dc5c030660347320bf6b7e61914a7414c5d
592
py
Python
Day01-15/code/Day07/findmax.py
bdfd/Python_Zero2Hero_DS
9dafe90b8112fdc3d07e1aa02e41ed3f019f733c
[ "MIT" ]
3
2022-01-15T19:06:19.000Z
2022-01-18T16:47:27.000Z
Day01-15/code/Day07/findmax.py
bdfd/4.5_Data-Science-Python-Zero2Hero-
9dafe90b8112fdc3d07e1aa02e41ed3f019f733c
[ "MIT" ]
null
null
null
Day01-15/code/Day07/findmax.py
bdfd/4.5_Data-Science-Python-Zero2Hero-
9dafe90b8112fdc3d07e1aa02e41ed3f019f733c
[ "MIT" ]
1
2022-02-28T23:37:59.000Z
2022-02-28T23:37:59.000Z
""" 找出列表中最大或最小的元素 Version: 0.1 Author: BDFD Date: 2018-03-06 """ def main(): fruits = ['grape', 'apple', 'strawberry', 'waxberry', 'pitaya'] # 直接使用内置的max和min函数找出列表中最大和最小元素 # print(max(fruits)) # print(min(fruits)) max_value = min_value = fruits[0] for index in range(1, len(fruits)): i...
21.142857
67
0.614865
f19ef97a0bed5b13ab219e5ef779979b33f0b9e5
529
py
Python
test/start_all_pwm.py
adafruit/adafruit-beaglebone-io-python
7361d9a997bce4ab79c83c4ef30442e8dd13f363
[ "MIT" ]
305
2015-01-03T07:03:01.000Z
2022-03-13T07:35:45.000Z
test/start_all_pwm.py
silver2row/adafruit-beaglebone-io-python
7284fb18a960ed65351ac2f5128d516372ca74a3
[ "MIT" ]
280
2015-01-05T16:13:10.000Z
2022-03-19T19:21:15.000Z
test/start_all_pwm.py
silver2row/adafruit-beaglebone-io-python
7284fb18a960ed65351ac2f5128d516372ca74a3
[ "MIT" ]
179
2015-01-01T03:05:13.000Z
2022-03-25T18:08:34.000Z
import Adafruit_BBIO.PWM as PWM pins = [ "P9_16", #PWM1B "P9_21", #PWM0B "P9_22", #PWM0A "P9_28", #ECAP2 "P9_29", #PWM0B "P9_31", #PWM0A "P9_42", #ECAP0 "P8_13", #PWM2B "P8_19", #PWM2A "P8_34", #PWM1B "P8_36", #PWM1A "P8_45", #PWM2A "P8_46" #PWM2B ] # /sys/devices/platform/ocp/48300000.epwmss/48300100.ecap/pwm/pwmc...
18.892857
89
0.689981
9597976a1b48cedb45e636e6ec1355c12251efb7
1,400
py
Python
sandbox/TrainDataMaker/Tournament/evaluator.py
YuMurata/UserPreferencePredictor
bb7c725147b65a9a0c0a40b2f3cafc105db5bc89
[ "MIT" ]
null
null
null
sandbox/TrainDataMaker/Tournament/evaluator.py
YuMurata/UserPreferencePredictor
bb7c725147b65a9a0c0a40b2f3cafc105db5bc89
[ "MIT" ]
null
null
null
sandbox/TrainDataMaker/Tournament/evaluator.py
YuMurata/UserPreferencePredictor
bb7c725147b65a9a0c0a40b2f3cafc105db5bc89
[ "MIT" ]
null
null
null
import UserPreferencePredictor.TrainDataMaker.Tournament as Tournament import logging import random class NumberPlayer(Tournament.Player): def __init__(self, param): super().__init__(param) def decode(self): return self.param def _param_diff(param, target_param): return 1/(abs(param-tar...
26.923077
70
0.665714
ffedcb8260288efc6cb8503b08d4c6eb617bd398
4,664
py
Python
homeassistant/components/climate/vera.py
Norien/Home-Assistant
0aa8933df675aa3ea93126c0b1eb7c9a77208331
[ "Apache-2.0" ]
2
2017-02-25T00:27:06.000Z
2017-02-25T03:09:30.000Z
homeassistant/components/climate/vera.py
Norien/Home-Assistant
0aa8933df675aa3ea93126c0b1eb7c9a77208331
[ "Apache-2.0" ]
null
null
null
homeassistant/components/climate/vera.py
Norien/Home-Assistant
0aa8933df675aa3ea93126c0b1eb7c9a77208331
[ "Apache-2.0" ]
null
null
null
""" Support for Vera thermostats. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/switch.vera/ """ import logging from homeassistant.util import convert from homeassistant.components.climate import ClimateDevice, ENTITY_ID_FORMAT from homeassistant.const...
31.727891
76
0.642367