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
e64c5713fab03280850caf053584020ebdd8489a
7,064
py
Python
scripts/union_candidates.py
ChuanyiZ/Moss
8a54556782efc534055fcbdad2b4bf23de2bb77e
[ "BSD-3-Clause" ]
1
2021-06-15T01:19:53.000Z
2021-06-15T01:19:53.000Z
scripts/union_candidates.py
ChuanyiZ/Moss
8a54556782efc534055fcbdad2b4bf23de2bb77e
[ "BSD-3-Clause" ]
1
2021-08-02T16:36:26.000Z
2021-08-02T16:36:26.000Z
scripts/union_candidates.py
ChuanyiZ/Moss
8a54556782efc534055fcbdad2b4bf23de2bb77e
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2019 chuanyi5 <chuanyi5@illinois.edu> # # Distributed under terms of the MIT license. """ Generate candidates VCF from Strelka2, Mutect2 tumor VCFs """ import allel import argparse import numpy as np import sys def strelka2(inputs) -> d...
40.83237
206
0.531285
76acb7ecdf23ded7666d3dce7c3cc3eb0ac952b5
7,753
py
Python
classification.py
zharfi/Cidar
626b37291786108d7eed21c4f700556116f15288
[ "MIT" ]
null
null
null
classification.py
zharfi/Cidar
626b37291786108d7eed21c4f700556116f15288
[ "MIT" ]
null
null
null
classification.py
zharfi/Cidar
626b37291786108d7eed21c4f700556116f15288
[ "MIT" ]
null
null
null
import itertools import numpy as np import matplotlib.pyplot as plt import pickle import tensorflow as tf from sklearn.metrics import confusion_matrix from sklearn.decomposition import PCA from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA from sklearn.decomposition import KernelPCA from skle...
39.963918
125
0.616665
42cb286268dedc1711f4f2ca8c84342917f9dd3e
10,831
py
Python
tests/components/prometheus/test_init.py
bednar/core
b45a952d61d34e3a48a69d281a03234d7bfb418d
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
tests/components/prometheus/test_init.py
bednar/core
b45a952d61d34e3a48a69d281a03234d7bfb418d
[ "Apache-2.0" ]
38
2020-07-23T07:14:08.000Z
2022-03-31T06:01:46.000Z
tests/components/prometheus/test_init.py
bednar/core
b45a952d61d34e3a48a69d281a03234d7bfb418d
[ "Apache-2.0" ]
3
2020-10-18T07:08:40.000Z
2021-06-21T02:26:00.000Z
"""The tests for the Prometheus exporter.""" from dataclasses import dataclass import pytest from homeassistant import setup from homeassistant.components import climate, humidifier, sensor from homeassistant.components.demo.sensor import DemoSensor import homeassistant.components.prometheus as prometheus from homeas...
30.769886
88
0.646385
d4a5ce6e46b287a64c5029d3f9559c3fb8c84dc3
688
py
Python
wisdom_pets_app/wisdompets/adoptions/models.py
comphonia/python-django_wisdompets
399cc0def7b3d6a1e131fc951ea87cf48f41eb2b
[ "MIT" ]
null
null
null
wisdom_pets_app/wisdompets/adoptions/models.py
comphonia/python-django_wisdompets
399cc0def7b3d6a1e131fc951ea87cf48f41eb2b
[ "MIT" ]
null
null
null
wisdom_pets_app/wisdompets/adoptions/models.py
comphonia/python-django_wisdompets
399cc0def7b3d6a1e131fc951ea87cf48f41eb2b
[ "MIT" ]
null
null
null
from django.db import models class Pet(models.Model): SEX_CHOICES= [('M','Male'),('F','Female')] name = models.CharField(max_length=100) submitter = models.CharField(max_length=100) species = models.CharField(max_length=30) breed = models.CharField(max_length=30, blank=True) description = model...
32.761905
75
0.706395
72be59aaff288f5f6a642505f025321db17b85fc
2,813
py
Python
engine/dlib/src/test/test_dlib.py
Krzlfx/defold
ce38de254c08d0f3c63fabee07b44cbf1433a428
[ "ECL-2.0", "Apache-2.0" ]
2,231
2020-05-19T08:25:22.000Z
2022-03-31T18:51:23.000Z
engine/dlib/src/test/test_dlib.py
Krzlfx/defold
ce38de254c08d0f3c63fabee07b44cbf1433a428
[ "ECL-2.0", "Apache-2.0" ]
1,485
2020-05-19T10:56:52.000Z
2022-03-31T16:12:42.000Z
engine/dlib/src/test/test_dlib.py
Krzlfx/defold
ce38de254c08d0f3c63fabee07b44cbf1433a428
[ "ECL-2.0", "Apache-2.0" ]
197
2020-05-19T10:20:47.000Z
2022-03-30T09:52:13.000Z
# Copyright 2020 The Defold Foundation # Licensed under the Defold License version 1.0 (the "License"); you may not use # this file except in compliance with the License. # # You may obtain a copy of the License, together with FAQs at # https://www.defold.com/license # # Unless required by applicable law or agreed to...
47.677966
707
0.723427
0d0f25af145e05e7ec754e18ab35c20f8c4a6f03
3,731
py
Python
sandbox/apps/python/multigrid/jacobi2D/exec_mg.py
bollu/polymage
517657142cc3ae74e9daff3b41a0257d6a4ce2b6
[ "Apache-2.0" ]
10
2016-07-22T06:53:11.000Z
2021-02-19T06:22:00.000Z
sandbox/apps/python/multigrid/jacobi2D/exec_mg.py
bollu/polymage
517657142cc3ae74e9daff3b41a0257d6a4ce2b6
[ "Apache-2.0" ]
null
null
null
sandbox/apps/python/multigrid/jacobi2D/exec_mg.py
bollu/polymage
517657142cc3ae74e9daff3b41a0257d6a4ce2b6
[ "Apache-2.0" ]
2
2017-11-21T20:29:36.000Z
2021-05-21T01:52:05.000Z
from __init__ import * import sys import os import ctypes import numpy as np import time from utils import * from printer import print_line, print_layout, print_errors def minimal_exec_mg(pipe_lib, pipe_lib_func, func_params, func_args, tuner_data, app_data): it = 0 it_max = app_data['ni...
24.708609
80
0.605736
6b7609b4e9b0848f382809a1fd4b36afa06f9bd8
1,998
py
Python
pypy/translator/js/examples/bnb/msgstruct.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/translator/js/examples/bnb/msgstruct.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
pypy/translator/js/examples/bnb/msgstruct.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
from struct import pack, unpack, calcsize try: from localmsg import PORTS except ImportError: PORTS = {} try: from localmsg import HOSTNAME except ImportError: from socket import gethostname HOSTNAME = gethostname() MSG_WELCOME = "Welcome to gamesrv.py(3) !\n" MSG_BROADCAST_PORT= "*" MSG_DEF_PLAY...
25.291139
69
0.576577
e3568a07c42ad23a602c677bbc36542963548051
10,194
py
Python
freezer/storage/base.py
mr-smart/freezer
b268bea3d10727bcc043eb26d1396411a40513c3
[ "MIT" ]
null
null
null
freezer/storage/base.py
mr-smart/freezer
b268bea3d10727bcc043eb26d1396411a40513c3
[ "MIT" ]
null
null
null
freezer/storage/base.py
mr-smart/freezer
b268bea3d10727bcc043eb26d1396411a40513c3
[ "MIT" ]
1
2019-12-03T15:38:27.000Z
2019-12-03T15:38:27.000Z
# (c) Copyright 2015 Hewlett-Packard Development Company, L.P. # (c) Copyright 2016 Hewlett-Packard Enterprise Development Company, L.P. # # 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 # # ...
34.439189
78
0.617912
ac6528289c086021e4777e6a98c1929a3faafbad
3,594
py
Python
interactive/test/test_transitivitytable.py
diorge/interactive-sort
f60fbb6686ab8cdbc01d056c8976b7c983420565
[ "MIT" ]
1
2019-03-07T02:33:01.000Z
2019-03-07T02:33:01.000Z
interactive/test/test_transitivitytable.py
diorge/interactive-sort
f60fbb6686ab8cdbc01d056c8976b7c983420565
[ "MIT" ]
null
null
null
interactive/test/test_transitivitytable.py
diorge/interactive-sort
f60fbb6686ab8cdbc01d056c8976b7c983420565
[ "MIT" ]
null
null
null
""" Tests for the Transitivity Table class """ from unittest import TestCase import interactive.sort as isort class TestTransitivityTable(TestCase): """ Test suite for the TransitivityTable class """ dataset = ['a', 'b', 'c', 'd'] def test_construction_dimension(self): """ Tests basic construc...
39.933333
73
0.649137
564e51bfe8aae57bc5a2e92bd4a452d0365ccc39
13,589
py
Python
shamrock/seeder/crawl_store.py
zcomputerwiz/shamrock-blockchain
2e2d8a134f0147379812085543ac98f37ce28c2b
[ "Apache-2.0" ]
null
null
null
shamrock/seeder/crawl_store.py
zcomputerwiz/shamrock-blockchain
2e2d8a134f0147379812085543ac98f37ce28c2b
[ "Apache-2.0" ]
null
null
null
shamrock/seeder/crawl_store.py
zcomputerwiz/shamrock-blockchain
2e2d8a134f0147379812085543ac98f37ce28c2b
[ "Apache-2.0" ]
null
null
null
import asyncio import dataclasses import ipaddress import logging import random import time from typing import List, Dict import aiosqlite from shamrock.seeder.peer_record import PeerRecord, PeerReliability log = logging.getLogger(__name__) class CrawlStore: crawl_db: aiosqlite.Connection last_timestamp: i...
37.642659
118
0.58437
be129a1ef9346624554eb2fe2b0c09f4bb0cc48e
9,941
py
Python
venv/lib/python3.6/site-packages/ansible_collections/ngine_io/cloudstack/plugins/modules/cs_vpc_offering.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/ngine_io/cloudstack/plugins/modules/cs_vpc_offering.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/ngine_io/cloudstack/plugins/modules/cs_vpc_offering.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2017, David Passante (@dpassante) # 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 DOCUMENTATION = ''' --- module: cs_vpc_offer...
31.065625
146
0.656775
446cbfb32a55ed22e34003fbf19d068bff3ad1c0
1,014
py
Python
azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_update_object_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_update_object_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_update_object_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
34.965517
76
0.615385
fe90c5599317e298faa11b9876b82e47bfc337d3
1,696
py
Python
src/virtual-wan/azext_vwan/vendored_sdks/v2018_08_01/v2018_08_01/models/application_gateway_backend_health_pool_py3.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2018_08_01/v2018_08_01/models/application_gateway_backend_health_pool_py3.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2018_08_01/v2018_08_01/models/application_gateway_backend_health_pool_py3.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
45.837838
142
0.711675
6892656955c2b7bed19be47dded3985caeac255b
13,453
py
Python
server_logic.py
limk0032/starter-snake-python
b34303092e276c6e620a34104f625661af51fa13
[ "MIT" ]
null
null
null
server_logic.py
limk0032/starter-snake-python
b34303092e276c6e620a34104f625661af51fa13
[ "MIT" ]
null
null
null
server_logic.py
limk0032/starter-snake-python
b34303092e276c6e620a34104f625661af51fa13
[ "MIT" ]
null
null
null
import random from typing import List, Dict import math import numpy as np def avoid_my_neck(my_head: Dict[str, int], my_body: List[dict], possible_moves: List[str]) -> List[str]: # print(f'my_head:{my_head}, my_body:{my_body}') if {"x": my_head["x"], "y": my_head["y"] + 1} in my_body and 'up' in possible_mov...
59.004386
262
0.6852
4aa5f455a488cfbf47019b2e4956ac414c785954
2,036
py
Python
tests/qemu/monitor.py
DreamPearl/FuzzyOS
e287bf139511b59abe9e2a0e7ce49444c6a5299e
[ "Apache-2.0" ]
10
2021-03-04T18:48:29.000Z
2022-03-10T19:07:54.000Z
tests/qemu/monitor.py
DreamPearl/FuzzyOS
e287bf139511b59abe9e2a0e7ce49444c6a5299e
[ "Apache-2.0" ]
7
2020-06-27T13:13:08.000Z
2021-10-17T17:09:40.000Z
tests/qemu/monitor.py
DreamPearl/FuzzyOS
e287bf139511b59abe9e2a0e7ce49444c6a5299e
[ "Apache-2.0" ]
1
2022-02-10T20:09:01.000Z
2022-02-10T20:09:01.000Z
import logging import pexpect import time from tests.qemu import args from tests.qemu import key logger = logging.getLogger(__name__) QEMU_PROMPT = "(qemu)" class Monitor: def __init__(self, port): logger.info("Connecting to qemu, waiting for prompt") self.process = pexpect.spawn(f"telnet 127....
26.102564
76
0.657171
ad2a8d1bb9fe5a88923ea55cedc67689c7b9ab3d
5,025
py
Python
venv/Lib/site-packages/mediapipe/calculators/image/recolor_calculator_pb2.py
Farhan-Malik/advance-hand-gesture
0ebe21ddd7c8c2eb14746678be57b33d38c47205
[ "MIT" ]
41
2021-06-19T13:57:18.000Z
2021-12-02T17:08:53.000Z
venv/Lib/site-packages/mediapipe/calculators/image/recolor_calculator_pb2.py
Farhan-Malik/advance-hand-gesture
0ebe21ddd7c8c2eb14746678be57b33d38c47205
[ "MIT" ]
null
null
null
venv/Lib/site-packages/mediapipe/calculators/image/recolor_calculator_pb2.py
Farhan-Malik/advance-hand-gesture
0ebe21ddd7c8c2eb14746678be57b33d38c47205
[ "MIT" ]
4
2021-07-02T03:09:51.000Z
2021-11-25T13:00:10.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: mediapipe/calculators/image/recolor_calculator.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from goog...
41.875
594
0.799204
d5ac760481deec7fd65c64be885de8203abac1d4
4,661
py
Python
rllib/examples/two_step_game.py
tdml13/ray
01db1ec9f922370da27b78b0d85ce4f3ffaf4377
[ "Apache-2.0" ]
39
2021-02-02T23:09:31.000Z
2022-03-28T16:39:12.000Z
rllib/examples/two_step_game.py
chaokunyang/ray
7a1e8fdb8bfd1df00dc9b946b233d85dc4be2387
[ "Apache-2.0" ]
70
2019-03-13T05:25:48.000Z
2022-03-26T07:05:19.000Z
rllib/examples/two_step_game.py
chaokunyang/ray
7a1e8fdb8bfd1df00dc9b946b233d85dc4be2387
[ "Apache-2.0" ]
20
2021-02-05T05:51:39.000Z
2022-03-04T21:13:24.000Z
"""The two-step game from QMIX: https://arxiv.org/pdf/1803.11485.pdf Configurations you can try: - normal policy gradients (PG) - contrib/MADDPG - QMIX See also: centralized_critic.py for centralized critic PPO on this game. """ import argparse from gym.spaces import Tuple, MultiDiscrete, Dict, Discrete ...
29.5
75
0.560609
e0ae8eb56e2439eadb1780e1a612a1809b2ea734
566
py
Python
regexlib/2021-5-15/python_re2_test_file/regexlib_3314.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
1
2022-01-24T14:43:23.000Z
2022-01-24T14:43:23.000Z
regexlib/2021-5-15/python_re2_test_file/regexlib_3314.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
regexlib/2021-5-15/python_re2_test_file/regexlib_3314.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
# 3314 # ^([\u00c0-\u01ffa-zA-Z'\-]+[ ]?[\u00c0-\u01ffa-zA-Z'\-]*)+$ # EXPONENT # nums:5 # EXPONENT AttackString:""+"''"*8+"!1 __EOA(i or ii)" import re2 as re from time import perf_counter regex = """^([\u00c0-\u01ffa-zA-Z'\-]+[ ]?[\u00c0-\u01ffa-zA-Z'\-]*)+$""" REGEX = re.compile(regex) for i in range(0, 150000): ...
29.789474
73
0.567138
c1d90b0ed7d3d9ba08f1c60b58a761aebd888b23
39,894
py
Python
ethgreen/pools/pool_wallet.py
ethgreen/ethgreen-blockchain
8f1a450897ab7a82326aea7e57e18ac2c03a9e83
[ "Apache-2.0" ]
11
2021-11-10T19:30:12.000Z
2022-02-09T04:30:29.000Z
ethgreen/pools/pool_wallet.py
ethgreen/ethgreen-blockchain
8f1a450897ab7a82326aea7e57e18ac2c03a9e83
[ "Apache-2.0" ]
6
2021-11-16T17:11:03.000Z
2021-12-28T17:11:20.000Z
ethgreen/pools/pool_wallet.py
ethgreen/ethgreen-blockchain
8f1a450897ab7a82326aea7e57e18ac2c03a9e83
[ "Apache-2.0" ]
3
2021-11-21T02:27:10.000Z
2022-03-15T08:34:47.000Z
import logging import time from typing import Any, Optional, Set, Tuple, List, Dict from blspy import PrivateKey, G2Element, G1Element from ethgreen.consensus.block_record import BlockRecord from ethgreen.pools.pool_config import PoolWalletConfig, load_pool_config, update_pool_config from ethgreen.pools.pool_wallet_i...
44.724215
120
0.674838
ae1d518c86b9f8ef0f5314a63fa4bd3e7873ec0c
86
py
Python
python/modules/one/__init__.py
mr-uuid/snippets
49bb59641d8160d7635b8d5e574cb50f9e5362e2
[ "MIT" ]
null
null
null
python/modules/one/__init__.py
mr-uuid/snippets
49bb59641d8160d7635b8d5e574cb50f9e5362e2
[ "MIT" ]
1
2021-03-10T04:00:01.000Z
2021-03-10T04:00:01.000Z
python/modules/one/__init__.py
mr-uuid/snippets
49bb59641d8160d7635b8d5e574cb50f9e5362e2
[ "MIT" ]
null
null
null
# This will allow is to import one_a when we do from one import * __all__ = ['one_a']
28.666667
65
0.709302
64219329903ed2e255421fc7eac72a9e60efb12d
2,378
py
Python
threads.py
mode9/xlsxstyle
6311c6088672d6a39555bd735e1b443583692289
[ "MIT" ]
null
null
null
threads.py
mode9/xlsxstyle
6311c6088672d6a39555bd735e1b443583692289
[ "MIT" ]
null
null
null
threads.py
mode9/xlsxstyle
6311c6088672d6a39555bd735e1b443583692289
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 import datetime import os from PyQt5 import QtCore from PySide2.QtWidgets import QTextBrowser, QProgressBar from openpyxl import Workbook from handlers import WorkSheetHandler class CreateThread(QtCore.QThread): finished = QtCore.pyqtSignal() def __init...
33.492958
103
0.666106
cea9879cd87b98926147d506c5037b6dca2dd136
1,615
py
Python
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/chinese/duration_extractor_config.py
AhmedLeithy/Recognizers-Text
f5426e38a09d3974fc0979b7803a4cd17258ea62
[ "MIT" ]
688
2019-05-08T02:56:21.000Z
2022-03-30T07:26:15.000Z
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/chinese/duration_extractor_config.py
AhmedLeithy/Recognizers-Text
f5426e38a09d3974fc0979b7803a4cd17258ea62
[ "MIT" ]
840
2019-05-07T07:00:02.000Z
2022-03-30T14:52:11.000Z
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/chinese/duration_extractor_config.py
AhmedLeithy/Recognizers-Text
f5426e38a09d3974fc0979b7803a4cd17258ea62
[ "MIT" ]
283
2019-05-07T07:52:12.000Z
2022-03-27T02:27:58.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import Dict from recognizers_text import RegExpUtility from recognizers_number.culture import Culture, CultureInfo from recognizers_number_with_unit.number_with_unit.chinese.extractors import ChineseNumberWithU...
32.3
120
0.743034
fd28be08e1710bde1dcf461fe87f6442b3d06cc5
4,115
py
Python
examples/slim/preprocessing/cifarnet_preprocessing.py
TensorFlowHub/TensorFlowOnSpark
1120406f69a827cb6ca9722e9778499d52891c96
[ "Apache-2.0" ]
1
2017-02-15T14:03:50.000Z
2017-02-15T14:03:50.000Z
examples/slim/preprocessing/cifarnet_preprocessing.py
leereilly/TensorFlowOnSpark
42606480125e0cd163fdf5e8ef977b0ced61beb3
[ "Apache-2.0" ]
null
null
null
examples/slim/preprocessing/cifarnet_preprocessing.py
leereilly/TensorFlowOnSpark
42606480125e0cd163fdf5e8ef977b0ced61beb3
[ "Apache-2.0" ]
1
2020-12-06T03:15:24.000Z
2020-12-06T03:15:24.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
35.782609
80
0.684812
4159cada94ab83900b9517f60873408103c2da66
16,979
py
Python
venv/lib/python3.8/site-packages/matplotlib/testing/compare.py
pashapishdad/Artificial_Intelligence_A2
a151370b2453fd66227b2e4815c100f47317246c
[ "Apache-2.0" ]
4
2020-07-15T20:03:28.000Z
2021-06-09T11:23:06.000Z
seleniumenv/lib/python3.8/site-packages/matplotlib/testing/compare.py
ethanmoyer/NIREUS
dfe1fcb078bebb38a6a75a051bc8e1b4661d986c
[ "MIT" ]
5
2021-04-25T08:16:09.000Z
2022-03-12T00:42:14.000Z
seleniumenv/lib/python3.8/site-packages/matplotlib/testing/compare.py
ethanmoyer/NIREUS
dfe1fcb078bebb38a6a75a051bc8e1b4661d986c
[ "MIT" ]
3
2019-05-18T21:32:31.000Z
2019-07-26T11:05:46.000Z
""" Provides a collection of utilities for comparing (image) results. """ import atexit import hashlib import os from pathlib import Path import re import shutil import subprocess import sys from tempfile import TemporaryFile import numpy as np import matplotlib as mpl from matplotlib.testing.exceptions import Imag...
35.972458
79
0.611461
b0e4b74c58af9f103600e38225ccc6b453d55b8d
3,852
py
Python
hubspot/crm/contacts/models/previous_page.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
117
2020-04-06T08:22:53.000Z
2022-03-18T03:41:29.000Z
hubspot/crm/contacts/models/previous_page.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
62
2020-04-06T16:21:06.000Z
2022-03-17T16:50:44.000Z
hubspot/crm/contacts/models/previous_page.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
45
2020-04-06T16:13:52.000Z
2022-03-30T21:33:17.000Z
# coding: utf-8 """ Contacts No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from hubs...
28.533333
139
0.597352
5fb9179c1a6be8ff2c455e52cad60fb6d954459c
233
py
Python
data_science/np_br3.py
HansBlackCat/Python
32c69f1f749a46b5bf1a305e385d96b2449c2a28
[ "Apache-2.0" ]
null
null
null
data_science/np_br3.py
HansBlackCat/Python
32c69f1f749a46b5bf1a305e385d96b2449c2a28
[ "Apache-2.0" ]
null
null
null
data_science/np_br3.py
HansBlackCat/Python
32c69f1f749a46b5bf1a305e385d96b2449c2a28
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt a='k' x=np.linspace(0,5,50) y=np.linspace(0,5,50)[:,np.newaxis] z=np.sin(x)**10+np.cos(10+y*x)*np.cos(x) plt.imshow(z,origin='lower',exten=[0,5,0,5],cmap='viridis') plt.colorbar();
23.3
59
0.682403
5142b8be0fd894c9fb1dc74b5d975be789a53308
267
py
Python
tests/integration/test_health_endpoint.py
JumaKahiga/cyclo-ops
87fa24ae5574e9541ce8806401bff410862c961b
[ "MIT" ]
null
null
null
tests/integration/test_health_endpoint.py
JumaKahiga/cyclo-ops
87fa24ae5574e9541ce8806401bff410862c961b
[ "MIT" ]
null
null
null
tests/integration/test_health_endpoint.py
JumaKahiga/cyclo-ops
87fa24ae5574e9541ce8806401bff410862c961b
[ "MIT" ]
null
null
null
from tests import EndpointTestCase class TestHealthCheck(EndpointTestCase): def test_health_check(self): resp = self.app_client.get('/api/health') self.assertEqual(resp.status_code, 200) assert resp.json == {'service_status': 'healthy'}
29.666667
57
0.707865
17c4561a640dc2df5b57a548b62b27e7510ec596
23,331
py
Python
hydrus/client/gui/ClientGUITime.py
thatfuckingbird/hydrus-websocket-server
b55454740dca5101448bf92224432f8bdbec7e77
[ "WTFPL" ]
1,417
2015-01-22T00:50:30.000Z
2022-03-30T18:44:55.000Z
hydrus/client/gui/ClientGUITime.py
thatfuckingbird/hydrus-websocket-server
b55454740dca5101448bf92224432f8bdbec7e77
[ "WTFPL" ]
975
2015-01-05T01:41:40.000Z
2022-03-31T06:01:50.000Z
hydrus/client/gui/ClientGUITime.py
thatfuckingbird/hydrus-websocket-server
b55454740dca5101448bf92224432f8bdbec7e77
[ "WTFPL" ]
163
2015-02-04T13:09:35.000Z
2022-03-23T01:00:05.000Z
import os from qtpy import QtCore as QC from qtpy import QtWidgets as QW from qtpy import QtGui as QG from hydrus.core import HydrusData from hydrus.core import HydrusGlobals as HG from hydrus.client import ClientConstants as CC from hydrus.client.gui import ClientGUIScrolledPanels from hydrus.client.gui import Clie...
38.310345
411
0.591145
5cd942ae84e35161434781da50dc6f706af0a0dd
8,130
py
Python
src/ansible_navigator/ui_framework/menu_builder.py
didib/ansible-navigator
62fdbd05f25fb2d79133b3ab207f53ac2f2d6d36
[ "Apache-2.0" ]
null
null
null
src/ansible_navigator/ui_framework/menu_builder.py
didib/ansible-navigator
62fdbd05f25fb2d79133b3ab207f53ac2f2d6d36
[ "Apache-2.0" ]
1
2022-02-04T02:38:15.000Z
2022-02-04T02:38:15.000Z
src/ansible_navigator/ui_framework/menu_builder.py
ganeshrn/ansible-navigator
1580b5e4a4d715fa4bb844bfeeb40f1ac8e628f6
[ "Apache-2.0", "MIT" ]
1
2021-11-17T09:45:18.000Z
2021-11-17T09:45:18.000Z
""" build a menu """ import curses import enum import re from typing import Any from typing import Callable from typing import Dict from typing import List from typing import Tuple from .curses_defs import CursesLine from .curses_defs import CursesLinePart from .curses_defs import CursesLines from .ui_config import U...
39.466019
100
0.631119
3f6e76d6a76b63178ccf3c60a3f13e2502ae04f0
25
py
Python
src/app/__init__.py
glucn/tofino
64c603b2356f22eecbf8fd592f3656a613646c53
[ "MIT" ]
1
2021-01-04T10:07:41.000Z
2021-01-04T10:07:41.000Z
src/app/__init__.py
glucn/tofino
64c603b2356f22eecbf8fd592f3656a613646c53
[ "MIT" ]
231
2020-11-05T06:37:11.000Z
2022-03-28T03:02:49.000Z
src/app/__init__.py
glucn/tofino
64c603b2356f22eecbf8fd592f3656a613646c53
[ "MIT" ]
null
null
null
""" Application code """
12.5
24
0.6
97dd697567f46ae50818c7a4b280437d738b5223
3,636
py
Python
test.py
Adwaver4157/WorldModel_for_FinRL
0aa0a984aadffe0f6f2e83e55678c0e9304fba05
[ "MIT" ]
1
2021-05-15T13:13:25.000Z
2021-05-15T13:13:25.000Z
test.py
Adwaver4157/WorldModel_for_FinRL
0aa0a984aadffe0f6f2e83e55678c0e9304fba05
[ "MIT" ]
null
null
null
test.py
Adwaver4157/WorldModel_for_FinRL
0aa0a984aadffe0f6f2e83e55678c0e9304fba05
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib import matplotlib.pyplot as plt matplotlib.use('Agg') import datetime from finrl.config import config from finrl.marketdata.yahoodownloader import YahooDownloader from finrl.preprocessing.preprocessors import FeatureEngineer from finrl.preprocessing.data import ...
35.300971
109
0.668042
b4392b141a1925f819efd3eb7943e20bba21ccb4
420
py
Python
picdown/picdown/items.py
gamegrd/discuz_spider
06f16083f40b129e4d80478d57963ccced1c833c
[ "MIT" ]
3
2017-01-11T03:26:26.000Z
2020-07-18T11:25:18.000Z
picdown/picdown/items.py
andyzhuangyy/discuz_spider
06f16083f40b129e4d80478d57963ccced1c833c
[ "MIT" ]
null
null
null
picdown/picdown/items.py
andyzhuangyy/discuz_spider
06f16083f40b129e4d80478d57963ccced1c833c
[ "MIT" ]
3
2016-09-03T03:44:22.000Z
2020-07-18T11:25:20.000Z
# Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html from scrapy.item import Item, Field class PicdownItem(Item): # define the fields for your item here like: # name = Field() #text = Field() image_urls = Field() image_paths ...
22.105263
51
0.645238
7e149227e4c6b6a26287abb501ac1e66bf02ac97
12,278
py
Python
PythonSolid.py
lehnertu/solidpython
b8dd8d1f01ac0994b686e8e9ceaeb3fb572bb64e
[ "CC0-1.0" ]
null
null
null
PythonSolid.py
lehnertu/solidpython
b8dd8d1f01ac0994b686e8e9ceaeb3fb572bb64e
[ "CC0-1.0" ]
null
null
null
PythonSolid.py
lehnertu/solidpython
b8dd8d1f01ac0994b686e8e9ceaeb3fb572bb64e
[ "CC0-1.0" ]
null
null
null
import numpy as np from copy import * import vtk # the minimum square distance for two points to be considered distinct tolerance = np.square(0.01) # square distance of two points def sqr_dist(p1,p2): return np.square(p1[0]-p2[0]) + np.square(p1[1]-p2[1]) + np.square(p1[2]-p2[2]) # this returns the cosine of th...
38.977778
104
0.592116
5142b6d43b642f6ca682d05ab7982aba08421eb8
8,542
py
Python
tensor2tensor/data_generators/algorithmic_math_deepmind.py
jonmcwong/tensor2tensor
71f2c2d8624858e5e6a091f7d7c67c43f097ef19
[ "Apache-2.0" ]
null
null
null
tensor2tensor/data_generators/algorithmic_math_deepmind.py
jonmcwong/tensor2tensor
71f2c2d8624858e5e6a091f7d7c67c43f097ef19
[ "Apache-2.0" ]
null
null
null
tensor2tensor/data_generators/algorithmic_math_deepmind.py
jonmcwong/tensor2tensor
71f2c2d8624858e5e6a091f7d7c67c43f097ef19
[ "Apache-2.0" ]
1
2020-06-19T17:36:10.000Z
2020-06-19T17:36:10.000Z
# coding=utf-8 # Copyright 2020 The Tensor2Tensor 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...
35.297521
136
0.63697
8aa2e558e754dfd73dbd16865939a2e25cde89ea
2,041
py
Python
Python/Pac-Man version 1/Other/BFS.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
Python/Pac-Man version 1/Other/BFS.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
Python/Pac-Man version 1/Other/BFS.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
a= [ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0 ,0, 0, 0, 1, ...
28.746479
67
0.344929
02c3b6efaada83e808d1feb3b32650eb4dd6814c
2,247
py
Python
hero.py
PythonixCoders/PyWeek30
553dd5c5fbaaac7afb2f6c3c6b01073d1b0f38a9
[ "MIT" ]
null
null
null
hero.py
PythonixCoders/PyWeek30
553dd5c5fbaaac7afb2f6c3c6b01073d1b0f38a9
[ "MIT" ]
null
null
null
hero.py
PythonixCoders/PyWeek30
553dd5c5fbaaac7afb2f6c3c6b01073d1b0f38a9
[ "MIT" ]
null
null
null
import pygame from settings import * from utils import image_load class Hero(pygame.sprite.Sprite): def __init__(self, pos=None): super().__init__() self._sheet = image_load(BASEDIR / "assets" / "images" / "characters.png").convert_alpha() self.animation = {} self._position = pos o...
34.569231
98
0.574099
9faf7a42bc6cc4f849f94ccb346a97174b16b4d8
45,465
py
Python
data/coco.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
1
2018-12-09T06:09:29.000Z
2018-12-09T06:09:29.000Z
data/coco.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
null
null
null
data/coco.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import copy from colorama import Fore import matplotlib.pyplot as plt import skimage.io as io import pylab from pandas.plotting import table from collections import OrderedDict import matplotlib.pyplot as plt import pandas as pd from collections import Iterable import re import pandas as pd from abc impo...
52.379032
1,210
0.656967
6d210eff071ee8e2d2f0f5eebf1778f130d94e7c
8,146
py
Python
python/cudf/setup.py
sleeepyjack/cudf
908c13032800c7ae0d11fc30102f8d273a3ac1db
[ "Apache-2.0" ]
null
null
null
python/cudf/setup.py
sleeepyjack/cudf
908c13032800c7ae0d11fc30102f8d273a3ac1db
[ "Apache-2.0" ]
null
null
null
python/cudf/setup.py
sleeepyjack/cudf
908c13032800c7ae0d11fc30102f8d273a3ac1db
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018-2021, NVIDIA CORPORATION. import os import re import shutil import subprocess import sys import sysconfig # Must import in this order: # setuptools -> Cython.Distutils.build_ext -> setuptools.command.build_ext # Otherwise, setuptools.command.build_ext ends up inheriting from # Cython.Distutils....
30.856061
79
0.581758
38b61b117c5200df6c403f6dd135e042bc75216e
3,762
py
Python
Demo/tkinter/matt/two-radio-groups.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
1
2021-12-26T22:20:34.000Z
2021-12-26T22:20:34.000Z
Demo/tkinter/matt/two-radio-groups.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
null
null
null
Demo/tkinter/matt/two-radio-groups.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
2
2018-08-06T04:37:38.000Z
2022-02-27T18:07:12.000Z
from tkinter import * # The way to think about this is that each radio button menu # controls a different variable -- clicking on one of the # mutually exclusive choices in a radiobutton assigns some value # to an application variable you provide. When you define a # radiobutton menu choi...
33.891892
77
0.623339
a2721b26bb01173ae62233042661b3f309e05fe2
8,960
py
Python
py_proto/modules/prediction/proto/prediction_conf_pb2.py
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
2
2019-03-04T02:11:04.000Z
2019-04-18T11:19:45.000Z
py_proto/modules/prediction/proto/prediction_conf_pb2.py
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
1
2019-03-15T08:37:53.000Z
2019-03-15T08:37:53.000Z
py_proto/modules/prediction/proto/prediction_conf_pb2.py
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
1
2019-03-04T02:11:09.000Z
2019-03-04T02:11:09.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: modules/prediction/proto/prediction_conf.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.pro...
37.805907
1,217
0.766853
2c3574bb9035bfcc0ab41225201833715c4ec8be
6,030
py
Python
configs/representation/uvc_fpn_moco2/uvc-moco2_r18-fpn_center_pms0820rc_it_l1_mt02_video_2x8x1_sgd_cosine_30e_k400_rgb.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/uvc_fpn_moco2/uvc-moco2_r18-fpn_center_pms0820rc_it_l1_mt02_video_2x8x1_sgd_cosine_30e_k400_rgb.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/uvc_fpn_moco2/uvc-moco2_r18-fpn_center_pms0820rc_it_l1_mt02_video_2x8x1_sgd_cosine_30e_k400_rgb.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
# model settings temperature = 0.01 with_norm = True query_dim = 128 model = dict( type='UVCNeckMoCoTrackerV2', queue_dim=query_dim, patch_queue_size=256 * 144 * 5, backbone=dict( type='ResNet', pretrained=None, depth=18, out_indices=(0, 1, 2, 3), # strides=(1, 2,...
31.40625
78
0.621725
c6a6547b5ac104caf04f4bd80a0c849fe2c9b0b2
1,969
py
Python
Operators/ExampleTextDetectOperator/PostProcess.py
Caius-Lu/Savior
47c22e06c38cc9b5f7007d79f791015c8b2b76aa
[ "BSD-2-Clause" ]
108
2021-03-19T03:45:48.000Z
2022-03-29T12:19:38.000Z
Operators/ExampleTextDetectOperator/PostProcess.py
Caius-Lu/Savior
47c22e06c38cc9b5f7007d79f791015c8b2b76aa
[ "BSD-2-Clause" ]
2
2021-05-12T07:26:21.000Z
2021-07-16T12:53:52.000Z
Operators/ExampleTextDetectOperator/PostProcess.py
Caius-Lu/Savior
47c22e06c38cc9b5f7007d79f791015c8b2b76aa
[ "BSD-2-Clause" ]
27
2021-03-19T05:50:26.000Z
2021-12-28T07:13:09.000Z
import cv2 import numpy as np from Utils.GeometryUtils import get_min_area_bbox def db_post_process(_predict_score, _thresh, _bbox_scale_ratio, _min_size=5): instance_score = _predict_score.squeeze() h, w = instance_score.shape[:2] available_region = np.zeros_like(instance_score, dtype=np.float32) np...
49.225
102
0.729812
28cc131f3d4aace2a9fad3178ff1894016ebad1b
62,132
py
Python
tensorflow/python/ops/array_ops.py
mfkasim1/tensorflow
bce8ad95f349372326413b6b1a2670062b749309
[ "Apache-2.0" ]
1
2022-01-29T23:03:59.000Z
2022-01-29T23:03:59.000Z
tensorflow/python/ops/array_ops.py
mfkasim1/tensorflow
bce8ad95f349372326413b6b1a2670062b749309
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/array_ops.py
mfkasim1/tensorflow
bce8ad95f349372326413b6b1a2670062b749309
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.411059
86
0.662058
f0188fa8f59fa2a85227b30c634c8d386807fe07
6,200
py
Python
cinebot_mini/execution_routine/planner.py
cheng-chi/cinebot_mini
708a7c80d2f203dfe3b52bf84d9cbafac7673d27
[ "MIT" ]
null
null
null
cinebot_mini/execution_routine/planner.py
cheng-chi/cinebot_mini
708a7c80d2f203dfe3b52bf84d9cbafac7673d27
[ "MIT" ]
null
null
null
cinebot_mini/execution_routine/planner.py
cheng-chi/cinebot_mini
708a7c80d2f203dfe3b52bf84d9cbafac7673d27
[ "MIT" ]
null
null
null
from cinebot_mini import TRANSFORMS from cinebot_mini.robot_abstraction.robot import Robot from cinebot_mini.geometry_utils import ( ArcNDInterpolator, Gaze3DInterpolator, TransformationTree) from cinebot_mini.web_utils.blender_client import * import numpy as np import pickle def save_planner(planner, fna...
37.575758
90
0.666774
e5895c3fe1acf7e17ad5b9a68eee9ed3be76a341
2,097
py
Python
setup.py
New-Math-Data/gytrash
5ed28cc9bddf009caef347a883cb30b5e01cc8f9
[ "Apache-2.0" ]
null
null
null
setup.py
New-Math-Data/gytrash
5ed28cc9bddf009caef347a883cb30b5e01cc8f9
[ "Apache-2.0" ]
8
2021-07-03T22:23:05.000Z
2021-07-06T01:06:20.000Z
setup.py
trejas/gytrash
5ed28cc9bddf009caef347a883cb30b5e01cc8f9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys from codecs import open from setuptools import find_packages, setup # Import the package module code from local directory. repo_path = os.path.abspath(os.path.dirname(__file__)) sys.path.insert(0, repo_path) from gytrash import __about__ as about # noqa packages = find_pac...
33.285714
70
0.686218
e097e66d0aeb7437810df766241788908eee3d9f
1,283
py
Python
testing/scipy_distutils-0.3.3_34.586/laheyfcompiler.py
fireballpoint1/fortranTOpy
55843a62c6f0a2f8e2a777ef70193940d3d2d141
[ "Apache-2.0" ]
1
2018-08-26T05:10:56.000Z
2018-08-26T05:10:56.000Z
testing/scipy_distutils-0.3.3_34.586/laheyfcompiler.py
fireballpoint1/fortranTOpy
55843a62c6f0a2f8e2a777ef70193940d3d2d141
[ "Apache-2.0" ]
null
null
null
testing/scipy_distutils-0.3.3_34.586/laheyfcompiler.py
fireballpoint1/fortranTOpy
55843a62c6f0a2f8e2a777ef70193940d3d2d141
[ "Apache-2.0" ]
1
2018-06-26T18:06:44.000Z
2018-06-26T18:06:44.000Z
import os import sys from cpuinfo import cpu from fcompiler import FCompiler class LaheyFCompiler(FCompiler): compiler_type = 'lahey' version_pattern = r'Lahey/Fujitsu Fortran 95 Compiler Release (?P<version>[^\s*]*)' executables = { 'version_cmd' : ["lf95", "--version"], 'compiler_f77...
27.297872
88
0.574435
8ec4538d4f4511f50472a745bc8763fc3df5831a
44,808
py
Python
applications/HDF5Application/tests/test_hdf5_core.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/HDF5Application/tests/test_hdf5_core.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/HDF5Application/tests/test_hdf5_core.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
import KratosMultiphysics import KratosMultiphysics.HDF5Application as KratosHDF5 from KratosMultiphysics.HDF5Application import core from KratosMultiphysics.HDF5Application.core.utils import ParametersWrapper from KratosMultiphysics.HDF5Application.core import controllers from KratosMultiphysics.HDF5Application.core i...
49.23956
134
0.691863
170c6232c4ecbc489b80136dacb8f06cbc2da53b
319
py
Python
heroku_app/tests/conftest.py
DMD333/Testing_Websites
132ed35409505a69a67f35bcc298ea8258c9a008
[ "MIT" ]
null
null
null
heroku_app/tests/conftest.py
DMD333/Testing_Websites
132ed35409505a69a67f35bcc298ea8258c9a008
[ "MIT" ]
null
null
null
heroku_app/tests/conftest.py
DMD333/Testing_Websites
132ed35409505a69a67f35bcc298ea8258c9a008
[ "MIT" ]
null
null
null
import pytest import selenium.webdriver from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import ChromeDriverManager @pytest.fixture def browser(): driver = selenium.webdriver.Chrome(service=Service(ChromeDriverManager().install())) driver.implicitly_wait(3) yield driver
29
88
0.811912
a296a5c0096b3cdf145e2d5e549f7154de269a32
177
py
Python
doxybook/templates/pages.py
matusnovak/doxybook
6d0e2b93caf3f35cf242cdc95c65230e89cb975b
[ "MIT" ]
30
2018-09-06T11:26:02.000Z
2022-03-24T11:30:50.000Z
doxybook/templates/pages.py
matusnovak/doxybook
6d0e2b93caf3f35cf242cdc95c65230e89cb975b
[ "MIT" ]
10
2018-06-20T11:29:59.000Z
2021-07-31T11:20:04.000Z
doxybook/templates/pages.py
matusnovak/doxybook
6d0e2b93caf3f35cf242cdc95c65230e89cb975b
[ "MIT" ]
10
2018-04-12T11:27:51.000Z
2021-12-20T12:17:03.000Z
TEMPLATE = """ # Related Pages Here is a list of all related documentation pages: {% for page in nodes -%} * [*{{page.title}}*]({{page.url}}) {{page.brief}} {% endfor -%} """
17.7
50
0.59887
4d268377636b97a94f891c5bad3338857484b1a5
46,345
py
Python
src/bondora_api/models/second_market_request.py
parruc/bondora_api
f36ea8d7149d75a2e5f14a695e5a4e57f0a3518d
[ "Apache-2.0" ]
8
2019-03-09T20:38:27.000Z
2021-02-10T20:44:22.000Z
src/bondora_api/models/second_market_request.py
parruc/bondora_api
f36ea8d7149d75a2e5f14a695e5a4e57f0a3518d
[ "Apache-2.0" ]
1
2018-03-06T09:44:21.000Z
2018-03-06T09:44:21.000Z
src/bondora_api/models/second_market_request.py
parruc/bondora_api
f36ea8d7149d75a2e5f14a695e5a4e57f0a3518d
[ "Apache-2.0" ]
3
2019-06-03T13:44:05.000Z
2020-11-16T13:17:38.000Z
# coding: utf-8 """ Bondora API V1 Bondora API version 1 OpenAPI spec version: v1 Contact: investor@bondora.com Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance ...
32.363827
1,203
0.653296
3ace3153b071f179947b360975488015a1eebd4e
770
py
Python
basic/serializers.py
uadson/drf-studies
ef88c1a2123a6503cb74cfa3dfe9477fc54d7463
[ "MIT" ]
null
null
null
basic/serializers.py
uadson/drf-studies
ef88c1a2123a6503cb74cfa3dfe9477fc54d7463
[ "MIT" ]
null
null
null
basic/serializers.py
uadson/drf-studies
ef88c1a2123a6503cb74cfa3dfe9477fc54d7463
[ "MIT" ]
null
null
null
from rest_framework import serializers from basic.models.course import Course from basic.models.exam import Exam class CourseSerializer(serializers.ModelSerializer): class Meta: model = Course fields = ( 'id', 'title', 'url', 'created', ...
19.74359
56
0.492208
59d2fecd838ae5eaee707a2ceded9916cfe14823
8,031
py
Python
zendesk/komand_zendesk/actions/update_ticket/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
zendesk/komand_zendesk/actions/update_ticket/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
zendesk/komand_zendesk/actions/update_ticket/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Input: ASSIGNEE_ID = "assignee_id" ATTACHMENT = "attachment" COLLABORATOR_IDS = "collaborator_ids" DESCRIPTION = "description" DUE_AT = "due_at" EXTERNAL_ID = "external_id" GROUP_ID = "group_id" PRIORITY = "priorit...
21.705405
111
0.415017
fa750bf446eb0444b4cf05aa705b2437dfb8d60d
6,149
py
Python
attention.py
xwhan/Extremely-Fine-Grained-Entity-Typing
d8660ccfa70b0bbeec9a200bf2336aa0d7aa7ab7
[ "MIT" ]
89
2019-03-06T22:42:59.000Z
2021-09-29T03:34:27.000Z
attention.py
CPF-NLPR/Extremely-Fine-Grained-Entity-Typing
d8660ccfa70b0bbeec9a200bf2336aa0d7aa7ab7
[ "MIT" ]
5
2019-03-12T16:11:46.000Z
2020-09-11T08:21:31.000Z
attention.py
CPF-NLPR/Extremely-Fine-Grained-Entity-Typing
d8660ccfa70b0bbeec9a200bf2336aa0d7aa7ab7
[ "MIT" ]
8
2019-03-08T15:05:29.000Z
2021-07-09T15:30:05.000Z
import torch import torch.nn.functional as F import torch.nn as nn from torch.autograd import Variable import copy import math def attention(query, key, value, mask=None, dropout=None): "Compute 'Scaled Dot Product Attention'" d_k = query.size(-1) scores = torch.matmul(query, key.transpose(-2, -1)) \ ...
36.384615
81
0.613921
81e6f980335e57076cfcdfe3f111f93d03901607
2,718
py
Python
src/sage/parallel/ncpus.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
2
2015-08-11T05:05:47.000Z
2019-05-15T17:27:25.000Z
src/sage/parallel/ncpus.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/parallel/ncpus.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
1
2020-07-24T11:56:55.000Z
2020-07-24T11:56:55.000Z
""" CPU Detection """ # Parallel Python Software: http://www.parallelpython.com # Copyright (c) 2005-2008, Vitalii Vanovschi # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of...
43.142857
160
0.705298
ee201074487e251f7e05fa3a294744e69577b0f1
7,835
py
Python
climart/models/modules/additional_layers.py
RolnickLab/climart
6c5c139d6b4ad5925cbd0ec8c9ccf15302563b40
[ "CC-BY-4.0" ]
12
2021-09-29T22:04:37.000Z
2022-03-01T07:25:33.000Z
climart/models/modules/additional_layers.py
RolnickLab/climart
6c5c139d6b4ad5925cbd0ec8c9ccf15302563b40
[ "CC-BY-4.0" ]
null
null
null
climart/models/modules/additional_layers.py
RolnickLab/climart
6c5c139d6b4ad5925cbd0ec8c9ccf15302563b40
[ "CC-BY-4.0" ]
2
2021-09-30T11:20:28.000Z
2021-12-20T13:39:42.000Z
from collections import OrderedDict from typing import Dict, Optional, Union, Callable, Any import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor from climart.models.modules.mlp import MLP class Multiscale_Module(nn.Module): def __init__(self, in_channels=None, channels_pe...
38.596059
104
0.610849
9898a7734636c88b992da001ecc48e1102580b0c
597
py
Python
confess/models/vote.py
revalo/hush.mit.edu
e47c28c934dcfb94c52f6e12367869389e8ed7a8
[ "MIT" ]
21
2017-10-30T20:55:48.000Z
2021-09-03T14:06:58.000Z
confess/models/vote.py
revalo/hush.mit.edu
e47c28c934dcfb94c52f6e12367869389e8ed7a8
[ "MIT" ]
1
2021-11-08T02:05:34.000Z
2021-11-08T06:54:41.000Z
confess/models/vote.py
revalo/hush.mit.edu
e47c28c934dcfb94c52f6e12367869389e8ed7a8
[ "MIT" ]
3
2017-11-15T23:18:00.000Z
2018-01-01T06:44:03.000Z
from confess.models import db from sqlalchemy.orm.exc import NoResultFound from datetime import datetime UPVOTE = 1 DOWNVOTE = -1 class Vote(db.Model): id = db.Column(db.Integer, primary_key=True) post_id = db.Column(db.Integer, db.ForeignKey('post.id')) user = db.Column(db.Integer, db.ForeignKey('user.id...
33.166667
67
0.711893
e23bae77dcd042c484b8244bae6d29aaa440cd53
7,304
py
Python
code_server/model/graphsage_meanpool.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
code_server/model/graphsage_meanpool.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
code_server/model/graphsage_meanpool.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from .base_model import BaseModel from .layers import * from .model_utils import * import time class GraphSageMeanPool(BaseModel): def __init__(self, hidden_num, hidden_dim, input_dim, output_dim, node_num, cate_num, learning_rate, epochs, weigh...
32.318584
133
0.573111
d4fa9ca9ec9eddb3919eca8d3b4f4554287a35f2
13,138
py
Python
MAEnv/env_Drones/env_Drones.py
Abluceli/Multi-agent-Reinforcement-Learning-Algorithms
15810a559e2f2cf9e5fcb158c083f9e9dd6012fc
[ "MIT" ]
5
2020-05-25T03:08:09.000Z
2022-02-27T05:57:28.000Z
MAEnv/env_Drones/env_Drones.py
Abluceli/Multi-agent-Reinforcement-Learning-Algorithms
15810a559e2f2cf9e5fcb158c083f9e9dd6012fc
[ "MIT" ]
1
2020-12-22T01:35:36.000Z
2022-01-28T01:51:06.000Z
MAEnv/env_Drones/env_Drones.py
Abluceli/Multi-agent-Reinforcement-Learning-Algorithms
15810a559e2f2cf9e5fcb158c083f9e9dd6012fc
[ "MIT" ]
1
2020-05-06T01:56:55.000Z
2020-05-06T01:56:55.000Z
import numpy as np import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec import random import cv2 class Drones(object): def __init__(self, pos, view_range): self.pos = pos self.view_range = view_range class Human(object): def __init__(self, pos): self.pos = pos clas...
43.359736
167
0.488583
2aa22fb824305633e9f30ed5a47fff26b78fa984
2,177
py
Python
src/analyzer/hooks.py
jsiloto/adaptive-cob
eb38e3b52c4927e3ac0a897142ad26fbc4eb82de
[ "MIT" ]
1
2021-09-15T02:32:57.000Z
2021-09-15T02:32:57.000Z
src/analyzer/hooks.py
jsiloto/adaptive-cob
eb38e3b52c4927e3ac0a897142ad26fbc4eb82de
[ "MIT" ]
null
null
null
src/analyzer/hooks.py
jsiloto/adaptive-cob
eb38e3b52c4927e3ac0a897142ad26fbc4eb82de
[ "MIT" ]
2
2021-11-20T13:17:06.000Z
2022-03-08T13:42:52.000Z
import numpy as np def bn_flops_counter_hook(module, input, output): input = input[0] batch_flops = np.prod(input.shape) if module.affine: batch_flops *= 2 module.__flops__ += int(batch_flops) def usconv_flops_counter_hook(conv_module, input, output): # Can have multiple inputs, getti...
31.550725
93
0.72531
e847261152f6c7bf661105cf148d6c2831f27c28
1,034
py
Python
tests/0cli_test.py
ncgr/DSNormalizer
016af547578594e8d2eb0988c7cf070c78796890
[ "BSD-3-Clause" ]
null
null
null
tests/0cli_test.py
ncgr/DSNormalizer
016af547578594e8d2eb0988c7cf070c78796890
[ "BSD-3-Clause" ]
71
2020-04-13T17:14:01.000Z
2021-08-02T11:33:37.000Z
tests/0cli_test.py
ncgr/DSNormalizer
016af547578594e8d2eb0988c7cf070c78796890
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # standard library imports import contextlib import os from pathlib import Path # third-party imports import pytest import sh @contextlib.contextmanager def working_directory(path): """Change working directory in context.""" prev_cwd = Path.cwd() os.chdir(path) try: yi...
22
46
0.609284
a4d14b0adad138db16d70be4c0965d6ec60a35b7
6,653
py
Python
insights/client/insights_spec.py
psachin/insights-core
8122ffee1ffc9713fd8bb765d5f9afd723c3c90a
[ "Apache-2.0" ]
1
2020-02-19T06:36:22.000Z
2020-02-19T06:36:22.000Z
insights/client/insights_spec.py
psachin/insights-core
8122ffee1ffc9713fd8bb765d5f9afd723c3c90a
[ "Apache-2.0" ]
null
null
null
insights/client/insights_spec.py
psachin/insights-core
8122ffee1ffc9713fd8bb765d5f9afd723c3c90a
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import os import errno import shlex import logging import six from subprocess import Popen, PIPE, STDOUT from tempfile import NamedTemporaryFile from insights.util import mangle from .constants import InsightsConstants as constants logger = logging.getLogger(__name__) def shle...
34.117949
87
0.578837
59cae9bef8e8b1cfa018bd5ff0070fc0a9b6ce06
13,045
py
Python
elevenclock/lang/lang_ar.py
wanderleihuttel/ElevenClock
de4272a650111233acf36c909c7e269c8dc810d2
[ "Apache-2.0" ]
null
null
null
elevenclock/lang/lang_ar.py
wanderleihuttel/ElevenClock
de4272a650111233acf36c909c7e269c8dc810d2
[ "Apache-2.0" ]
null
null
null
elevenclock/lang/lang_ar.py
wanderleihuttel/ElevenClock
de4272a650111233acf36c909c7e269c8dc810d2
[ "Apache-2.0" ]
null
null
null
# INSTRUCTIONS # Translate the text and write it between the " # EXAMPLE: original -> "This text is in english: value {0}" # translation -> "Aquest text està en anglès: valor {0}" # So it would look like: "ORIGINAL_TEXT" : "TRANSLATED_TEXT", # If you see sth like {0}, {1}, maintain it on th...
61.533019
260
0.626064
88773cdd9ebb591788d7b9a95654ac46bfcd672b
439
py
Python
tests/integration/optimizers/pods/dummy_evaluate.py
facebbook/jina
e8079af3d58f1de0f51f8aef6cdf1eb3d87a9873
[ "Apache-2.0" ]
null
null
null
tests/integration/optimizers/pods/dummy_evaluate.py
facebbook/jina
e8079af3d58f1de0f51f8aef6cdf1eb3d87a9873
[ "Apache-2.0" ]
2
2021-02-15T01:40:38.000Z
2021-02-15T02:00:21.000Z
tests/integration/optimizers/pods/dummy_evaluate.py
facebbook/jina
e8079af3d58f1de0f51f8aef6cdf1eb3d87a9873
[ "Apache-2.0" ]
null
null
null
from jina.executors.evaluators.text import BaseTextEvaluator class DummyTextEvaluator(BaseTextEvaluator): @property def metric(self) -> str: return 'DummyTextEvaluator' def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def evaluate(self, actual: str, desired: str...
25.823529
76
0.624146
bba059e3dbc8e90b0b2d153768b801859b686326
837
py
Python
preprocessing.py
swkang73/bcbn
36218ed8073c33953f2de21698aeb689e82582cc
[ "MIT" ]
1
2020-11-02T22:56:17.000Z
2020-11-02T22:56:17.000Z
preprocessing.py
swkang73/bcbn
36218ed8073c33953f2de21698aeb689e82582cc
[ "MIT" ]
null
null
null
preprocessing.py
swkang73/bcbn
36218ed8073c33953f2de21698aeb689e82582cc
[ "MIT" ]
null
null
null
import numpy as np, pandas as pd from scipy import stats """ Notes on Analysis: - we have mean, se, & worst on radius, texture, perimeter, area, smoothness, compactness, concavity, concave points, symmetry, fractal dimensions 1st preprocessing: normalize each columns using z-score """ print("Import data") df = pd...
23.25
89
0.694146
833da29d750a30bb6f824251a2ab64f9639f586d
1,082
py
Python
Pitch-Based Approach/preprocessing/midi_class_mapping.py
uvashisth/Sonification-using-Deep-Learning
a0917e785c35aa5fadcbb258e938c58071b4e482
[ "MIT" ]
2
2020-05-20T04:29:02.000Z
2020-05-20T04:29:13.000Z
Pitch-Based Approach/preprocessing/midi_class_mapping.py
uvashisth/Sonification-using-Deep-Learning
a0917e785c35aa5fadcbb258e938c58071b4e482
[ "MIT" ]
null
null
null
Pitch-Based Approach/preprocessing/midi_class_mapping.py
uvashisth/Sonification-using-Deep-Learning
a0917e785c35aa5fadcbb258e938c58071b4e482
[ "MIT" ]
1
2020-05-20T04:40:49.000Z
2020-05-20T04:40:49.000Z
class MidiClassMapping(): ''' ''' def __init__(self): self.midi_list=[] self.note_to_int={} self.int_to_note={} self.max_midi_value=0 self.min_midi_value=0 def midi_notes_to_class_mapping(self,notes,midi_notes_mapping): ''' Parameters...
28.473684
93
0.596118
789673d3218bed2eef89fce2088d35215220e945
8,554
py
Python
src/SALib/sample/saltelli.py
zjzh/SALib
b6b6b5cab3388f3b80590c98d66aca7dc784d894
[ "MIT" ]
573
2015-07-14T06:17:59.000Z
2022-03-31T03:42:00.000Z
src/SALib/sample/saltelli.py
zjzh/SALib
b6b6b5cab3388f3b80590c98d66aca7dc784d894
[ "MIT" ]
339
2015-07-08T13:30:16.000Z
2022-03-25T07:48:09.000Z
src/SALib/sample/saltelli.py
zjzh/SALib
b6b6b5cab3388f3b80590c98d66aca7dc784d894
[ "MIT" ]
191
2015-07-13T09:00:07.000Z
2022-03-29T22:49:26.000Z
from typing import Dict, Optional import math import warnings import numpy as np from . import common_args from . import sobol_sequence from ..util import (scale_samples, read_param_file, compute_groups_matrix, _check_groups) def sample(problem: Dict, N: int, calc_second_order: bool = True, ...
37.353712
113
0.610475
9716883542d661670cb7725d96e5a421f9159667
23,887
py
Python
UMLRT2Kiltera_MM/Properties/Pattern/models/Trans2HListenBranchOUT_Connected_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
UMLRT2Kiltera_MM/Properties/Pattern/models/Trans2HListenBranchOUT_Connected_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
UMLRT2Kiltera_MM/Properties/Pattern/models/Trans2HListenBranchOUT_Connected_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
""" __Trans2HListenBranchOUT_Connected_MDL.py_____________________________________________________ Automatically generated AToM3 Model File (Do not modify directly) Author: gehan Modified: Mon Mar 9 11:38:19 2015 ______________________________________________________________________________________________ """ from s...
55.810748
632
0.668439
955ee96aae627593bd21e6f4da4a83915d7beb50
637
py
Python
lesson05/louxiaohui/configmgt.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
lesson05/louxiaohui/configmgt.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
lesson05/louxiaohui/configmgt.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import configparser config = configparser.ConfigParser() config.read('config.ini') def readconfig(filename, section, key=None): config = configparser.ConfigParser() config.read(filename) section_list = config.sections() # print (section_list) if not ...
26.541667
89
0.686028
fd9148e2115442292afbca3d3f65b37c5d40268d
4,099
py
Python
authome/backends.py
dbca-wa/authome
7c1c8864e5449f360b80acb9583adfe59a77167e
[ "Apache-2.0" ]
2
2019-07-02T06:23:54.000Z
2021-12-14T04:02:40.000Z
authome/backends.py
dbca-wa/authome
7c1c8864e5449f360b80acb9583adfe59a77167e
[ "Apache-2.0" ]
9
2019-02-18T03:19:54.000Z
2022-03-31T06:10:36.000Z
authome/backends.py
dbca-wa/authome
7c1c8864e5449f360b80acb9583adfe59a77167e
[ "Apache-2.0" ]
6
2019-01-22T08:10:16.000Z
2022-02-15T02:42:03.000Z
import logging import urllib.parse import re from django.conf import settings from social_core.backends import azuread_b2c from social_core.exceptions import AuthException from .models import IdentityProvider, CustomizableUserflow from .utils import get_redirect_domain from .exceptions import AzureADB2CAuthenticateF...
40.99
166
0.636253
6632651f11033f17a3e57d1478455ca9b94fba09
629
py
Python
octopus/preprocessing/image.py
kimsup10/octopus
9b646625d36ff26de0720555a06bec7d47784334
[ "MIT" ]
null
null
null
octopus/preprocessing/image.py
kimsup10/octopus
9b646625d36ff26de0720555a06bec7d47784334
[ "MIT" ]
null
null
null
octopus/preprocessing/image.py
kimsup10/octopus
9b646625d36ff26de0720555a06bec7d47784334
[ "MIT" ]
null
null
null
from operator import itemgetter import numpy as np from PIL.Image import Image from keras.preprocessing import image from keras.applications.resnet50 import (ResNet50, preprocess_input, decode_predictions) from . import process model = ...
28.590909
60
0.647059
14cca30aaa322e0ca8993d37bb1572e15bd2820c
826
py
Python
kaifa_cnv/cnvdlinshi.py
AluuLL/initial-exper_python
048d78b2aa0af0947d4232e46c3bdded2cb63180
[ "MIT" ]
null
null
null
kaifa_cnv/cnvdlinshi.py
AluuLL/initial-exper_python
048d78b2aa0af0947d4232e46c3bdded2cb63180
[ "MIT" ]
null
null
null
kaifa_cnv/cnvdlinshi.py
AluuLL/initial-exper_python
048d78b2aa0af0947d4232e46c3bdded2cb63180
[ "MIT" ]
null
null
null
file = open("/disk/lulu/database/cnvd/pro/linsh.pro.txt") #f = open("out.txt", "w") for line in file: # print line, list = line.strip().split("\t") # print list if "|" in list[0]: list1 = list[0].strip().split("|") print list1[0],"\t",list[1],"\t",list[2],"\t",list[3],"\t",list[4],...
45.888889
122
0.455206
de7f1fef96f85ea506f8993ec195a2c1f1a01ba4
7,111
py
Python
tests/cli/test_auth.py
tedmiston/prefect
a2cb40c28c942b1d170db42a55bab99598a4dcd6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/cli/test_auth.py
tedmiston/prefect
a2cb40c28c942b1d170db42a55bab99598a4dcd6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/cli/test_auth.py
tedmiston/prefect
a2cb40c28c942b1d170db42a55bab99598a4dcd6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import uuid from unittest.mock import MagicMock import click import pytest from click.testing import CliRunner import prefect from prefect.cli.auth import auth from prefect.utilities.configuration import set_temporary_config def test_auth_init(): runner = CliRunner() result = runner.invoke(auth) assert ...
32.769585
84
0.636479
c2c2b8678fdec8a47475a2ffd16370ddb0b62f8d
4,201
py
Python
src/00_core.py
grzegorzwojdyga/trl
1921e71a7465a43dcc135d97821aa8b03bfebf8c
[ "Apache-2.0" ]
null
null
null
src/00_core.py
grzegorzwojdyga/trl
1921e71a7465a43dcc135d97821aa8b03bfebf8c
[ "Apache-2.0" ]
null
null
null
src/00_core.py
grzegorzwojdyga/trl
1921e71a7465a43dcc135d97821aa8b03bfebf8c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """00-core.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1Ioc_ZLO6nfuoITf8Rc_Ez6UbFrv1GqZm """ # default_exp core """# Utility functions > A set of utility functions used throughout the library. """ # export import tor...
29.377622
92
0.652226
3dd646893ad724e335c9aa773fbd422a3de770ab
43,773
py
Python
gcloud/google-cloud-sdk/lib/googlecloudsdk/command_lib/run/flags.py
bopopescu/JobSniperRails
39e7f871887176770de0f4fc6789e9ddc7f32b1f
[ "MIT" ]
null
null
null
gcloud/google-cloud-sdk/lib/googlecloudsdk/command_lib/run/flags.py
bopopescu/JobSniperRails
39e7f871887176770de0f4fc6789e9ddc7f32b1f
[ "MIT" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
gcloud/google-cloud-sdk/lib/googlecloudsdk/command_lib/run/flags.py
bopopescu/JobSniperRails
39e7f871887176770de0f4fc6789e9ddc7f32b1f
[ "MIT" ]
1
2020-07-24T18:47:35.000Z
2020-07-24T18:47:35.000Z
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC. 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 requir...
35.357835
84
0.693989
daceb4f3f8f7285a81b920bd45635d303f9cf908
9,198
py
Python
openstack_dashboard/dashboards/project/network_topology/tests.py
timpricecatalyst/horizon
8279ae0ed464e62e1c91e78341342160f8a07172
[ "Apache-2.0" ]
3
2016-04-05T14:25:31.000Z
2018-11-18T16:03:14.000Z
openstack_dashboard/dashboards/project/network_topology/tests.py
timpricecatalyst/horizon
8279ae0ed464e62e1c91e78341342160f8a07172
[ "Apache-2.0" ]
1
2019-10-27T15:57:25.000Z
2019-10-27T15:57:25.000Z
openstack_dashboard/dashboards/project/network_topology/tests.py
timpricecatalyst/horizon
8279ae0ed464e62e1c91e78341342160f8a07172
[ "Apache-2.0" ]
2
2015-12-28T14:36:30.000Z
2018-11-18T16:03:15.000Z
# Copyright 2012 NEC 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 ag...
42.387097
79
0.573277
3d2efc36c284aff2991dc22a15573b2e007e0a20
592
py
Python
Leetcode/0852. Peak Index in a Mountain Array.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
1
2021-07-15T18:40:26.000Z
2021-07-15T18:40:26.000Z
Leetcode/0852. Peak Index in a Mountain Array.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
null
null
null
Leetcode/0852. Peak Index in a Mountain Array.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
null
null
null
class Solution(object): def peakIndexInMountainArray(self, arr: list[int]) -> int: lo, hi = 0, len(arr) - 1 while lo < hi: mi = (lo + hi) / 2 if arr[mi] < arr[mi + 1]: lo = mi + 1 else: hi = mi return lo class Solution: ...
25.73913
62
0.496622
66638815c0a976bab7acaadc3e54088c338eb6f1
1,059
py
Python
test_alpha.py
NiclasEriksen/rpg_procgen
8a4487886d606c2537d6d1f97be8f4a45deda761
[ "CC0-1.0" ]
null
null
null
test_alpha.py
NiclasEriksen/rpg_procgen
8a4487886d606c2537d6d1f97be8f4a45deda761
[ "CC0-1.0" ]
null
null
null
test_alpha.py
NiclasEriksen/rpg_procgen
8a4487886d606c2537d6d1f97be8f4a45deda761
[ "CC0-1.0" ]
null
null
null
import pyglet from pyglet.gl import * from shader import Shader class JuliaWindow(pyglet.window.Window): def __init__(self): super(JuliaWindow, self).__init__(caption = 'julia', width = 512, height = 512) self.C = (-0.70176, -0.3842) shader_path = 'julia' self.shader = Shader( ' '.join(open('...
24.068182
91
0.603399
42cfff132a3823e2e59af9afac8a690c1569de3b
239
py
Python
facets/wiki/utils.py
hunterhector/DDSemantics
883ef1015bd21d9b8575d8000faf3b506a09f21c
[ "Apache-2.0" ]
null
null
null
facets/wiki/utils.py
hunterhector/DDSemantics
883ef1015bd21d9b8575d8000faf3b506a09f21c
[ "Apache-2.0" ]
null
null
null
facets/wiki/utils.py
hunterhector/DDSemantics
883ef1015bd21d9b8575d8000faf3b506a09f21c
[ "Apache-2.0" ]
2
2018-06-24T17:40:31.000Z
2020-07-30T19:19:55.000Z
def load_index(index_file): """Read the index file""" index_dict = {} with open(index_file) as f: for line in f: title, path = line.strip().split() index_dict[title] = path return index_dict
26.555556
46
0.577406
d88f79ecdee079a21c01f74ceacd272ecc060a15
965
py
Python
src/Python/101-200/102.BinaryTreeLevelOrderTraversal.py
Peefy/PeefyLeetCode
92156e4b48ba19e3f02e4286b9f733e9769a1dee
[ "Apache-2.0" ]
2
2018-05-03T07:50:03.000Z
2018-06-17T04:32:13.000Z
src/Python/101-200/102.BinaryTreeLevelOrderTraversal.py
Peefy/PeefyLeetCode
92156e4b48ba19e3f02e4286b9f733e9769a1dee
[ "Apache-2.0" ]
null
null
null
src/Python/101-200/102.BinaryTreeLevelOrderTraversal.py
Peefy/PeefyLeetCode
92156e4b48ba19e3f02e4286b9f733e9769a1dee
[ "Apache-2.0" ]
3
2018-11-09T14:18:11.000Z
2021-11-17T15:23:52.000Z
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def levelOrder(self, root: TreeNode) -> list: if root is None: return [] ans = [] tmp = [] queue = [root] nextqueue = [] w...
25.394737
49
0.495337
5e0f8c4a42b024ab6705526eb4b85c103f76aafd
1,373
py
Python
tests_bdd/_tools.py
Animatea/funchacks
1589cdc3e042d96e8bb3e6b665111dc8d23208b1
[ "Apache-2.0" ]
6
2021-12-30T11:54:25.000Z
2022-02-01T15:56:03.000Z
tests_bdd/_tools.py
Animatea/funchacks
1589cdc3e042d96e8bb3e6b665111dc8d23208b1
[ "Apache-2.0" ]
null
null
null
tests_bdd/_tools.py
Animatea/funchacks
1589cdc3e042d96e8bb3e6b665111dc8d23208b1
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations __all__ = ["has_args", "function_template"] from typing import TYPE_CHECKING, Any, Generator, Generic, Optional, TypeVar from behave import fixture from hamcrest.core.base_matcher import BaseMatcher if TYPE_CHECKING: from hamcrest.core.description import Description from ...
26.921569
90
0.668609
9221f98ec7084e12accbe7ffa9f0d7c26217e3c0
19,643
py
Python
tf2onnx/rewriter/loop_rewriter_base.py
jim-meyer/tensorflow-onnx
2b3c23da102c875737362f858b78fa50ae48809f
[ "MIT" ]
null
null
null
tf2onnx/rewriter/loop_rewriter_base.py
jim-meyer/tensorflow-onnx
2b3c23da102c875737362f858b78fa50ae48809f
[ "MIT" ]
null
null
null
tf2onnx/rewriter/loop_rewriter_base.py
jim-meyer/tensorflow-onnx
2b3c23da102c875737362f858b78fa50ae48809f
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. """ tf2onnx.rewriter.loop_rewriter_base """ from __future__ import division from __future__ import print_function import logging from collections import OrderedDict from tf2onnx import utils from tf2onnx.graph_matcher impor...
44.54195
120
0.664257
163808fdd7e60a1dde319bc9059aaf8b9b83ef29
470
py
Python
model/project.py
DmitriyNeurov/python_training_mantis
db94fad4e01e7d29a962d80791c984ddcacf1033
[ "Apache-2.0" ]
null
null
null
model/project.py
DmitriyNeurov/python_training_mantis
db94fad4e01e7d29a962d80791c984ddcacf1033
[ "Apache-2.0" ]
null
null
null
model/project.py
DmitriyNeurov/python_training_mantis
db94fad4e01e7d29a962d80791c984ddcacf1033
[ "Apache-2.0" ]
null
null
null
from sys import maxsize class Project: def __init__(self, id=None, name=None): self.name = name self.id = id def __repr__(self): return "%s:%s" % (self.id, self.name) def __eq__(self, other): return (self.id is None or other.id is None or self.id == other.id) and self.nam...
24.736842
103
0.553191
87099c3f5d151a559810235117c56a27d0211d0f
784
py
Python
test_split.py
mf2199/BBT-temporary
262eb2d1c9c9a2de491abec275238272c8d7f002
[ "RSA-MD" ]
null
null
null
test_split.py
mf2199/BBT-temporary
262eb2d1c9c9a2de491abec275238272c8d7f002
[ "RSA-MD" ]
null
null
null
test_split.py
mf2199/BBT-temporary
262eb2d1c9c9a2de491abec275238272c8d7f002
[ "RSA-MD" ]
null
null
null
from apache_beam.io import iobase from google.cloud.bigtable import Client from beam_bigtable.bigtable import BigTableSource from google.cloud.bigtable.row_set import RowRange from apache_beam.io.range_trackers import LexicographicKeyRangeTracker from google.cloud.bigtable.row_set import RowSet from apache_beam.metric...
31.36
70
0.799745
238ba187076431605334793543d080d4e246e0c1
1,089
py
Python
img_utils.py
M4gicT0/GatePoseEstimator
e81b6313d82347cbaa610f8d1276cf37f2d74e88
[ "MIT" ]
null
null
null
img_utils.py
M4gicT0/GatePoseEstimator
e81b6313d82347cbaa610f8d1276cf37f2d74e88
[ "MIT" ]
null
null
null
img_utils.py
M4gicT0/GatePoseEstimator
e81b6313d82347cbaa610f8d1276cf37f2d74e88
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2019 theo <theo@not-arch-linux> # # Distributed under terms of the MIT license. import numpy as np from keras.preprocessing import image from PIL import Image """ Several image manipulation utility functions """ ''' Crops the given...
30.25
82
0.682277
7d4523b162468ce3894881e49865248556451778
12,181
py
Python
data/toy.py
jeffwillette/few_shot_meta_learning
284abd392929f2cc9d89beb047bb89e89c3a1c2e
[ "MIT" ]
null
null
null
data/toy.py
jeffwillette/few_shot_meta_learning
284abd392929f2cc9d89beb047bb89e89c3a1c2e
[ "MIT" ]
null
null
null
data/toy.py
jeffwillette/few_shot_meta_learning
284abd392929f2cc9d89beb047bb89e89c3a1c2e
[ "MIT" ]
null
null
null
from typing import List, Tuple, Any import os import numpy as np # type: ignore import random import torch from torch.utils.data import Dataset from matplotlib.colors import to_rgba # type: ignore from matplotlib import pyplot as plt # type: ignore from matplotlib.lines import Line2D # type: ignore from sklearn.da...
42.590909
175
0.596174
84803c49f8f161c17140b63e68f64dbcf462292e
4,449
py
Python
src/flowrect/simulations/pdes/finite_pde.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
2
2021-11-01T09:13:17.000Z
2022-03-08T14:34:16.000Z
src/flowrect/simulations/pdes/finite_pde.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
null
null
null
src/flowrect/simulations/pdes/finite_pde.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
null
null
null
import numpy as np import time from numba import jit, prange from ..util import f_SRM # Not used @jit(nopython=True, cache=True) def _fast_pde( time_end, dt, N, a_grid_size, exp_a, Gamma, c, tau, lambda_kappa, I_ext, I_ext_time, interaction ): """""" steps = int(time_end / dt) dim = Gamma.shape[0] ...
28.519231
100
0.564621
f1f6912520076dc46ef727d81f9a73b632dbcb4e
3,876
py
Python
program3solution/restaurant.py
dpocheng/Python-Data-Structure-of-Python
66b99fa41f831e8c3089e4e2fd664a7ef3268e5e
[ "Apache-2.0" ]
null
null
null
program3solution/restaurant.py
dpocheng/Python-Data-Structure-of-Python
66b99fa41f831e8c3089e4e2fd664a7ef3268e5e
[ "Apache-2.0" ]
null
null
null
program3solution/restaurant.py
dpocheng/Python-Data-Structure-of-Python
66b99fa41f831e8c3089e4e2fd664a7ef3268e5e
[ "Apache-2.0" ]
null
null
null
__author__ = 'dgk' # RESTAURANT COLLECTION PROGRAM # ICS 31, UCI, David G. Kay, Fall 2012 # Implement Restaurant as a namedtuple, collection as a list ##### MAIN PROGRAM (CONTROLLER) def restaurants(): # nothing -> interaction """ Main program """ print("Welcome to the restaurants program!"...
30.761905
95
0.586945
bcc673dd7b26b0e2da58cfc4d7b6485f74fa69e7
32,107
py
Python
distributed_social_network/api/tests.py
leevtori/CMPUT404-project
52214288855ae4b3f05b8d17e67a2686debffb19
[ "Apache-2.0" ]
null
null
null
distributed_social_network/api/tests.py
leevtori/CMPUT404-project
52214288855ae4b3f05b8d17e67a2686debffb19
[ "Apache-2.0" ]
51
2019-03-22T00:31:06.000Z
2021-06-10T21:17:30.000Z
distributed_social_network/api/tests.py
leevtori/CMPUT404-project
52214288855ae4b3f05b8d17e67a2686debffb19
[ "Apache-2.0" ]
1
2019-08-03T14:41:22.000Z
2019-08-03T14:41:22.000Z
""" Notes: - Unauthenticated requests are not tested because it's a check done by DjangoRestFramework (default permission set in settings.py). The response will always be 401. There is no reason to check this. - Serializer and paginator generated response is not checked. - Most response formatting i...
35.753898
156
0.554614
6c8f8b8ead86072718503b986b703e856db5838f
144,922
py
Python
xpsi/module_generator.py
DevarshiChoudhury/xpsi
200b82b4ef4a4e7342fc30dd03c5821cff0031c2
[ "MIT" ]
4
2021-12-09T21:02:50.000Z
2022-01-29T08:59:35.000Z
xpsi/module_generator.py
DevarshiChoudhury/xpsi
200b82b4ef4a4e7342fc30dd03c5821cff0031c2
[ "MIT" ]
11
2021-11-02T15:32:11.000Z
2022-03-17T13:52:15.000Z
xpsi/module_generator.py
DevarshiChoudhury/xpsi
200b82b4ef4a4e7342fc30dd03c5821cff0031c2
[ "MIT" ]
2
2021-11-02T15:12:19.000Z
2022-01-06T19:34:10.000Z
from __future__ import division, print_function import os import sys import six import xpsi def write(filename, module): with open(filename, 'w') as mod: _module = '''''' for _line in module.splitlines(): if _module: _module += '\n' _module += _line.rstrip...
39.824677
942
0.543561
be11892e10d42e82e2d1cf1b89b402ccc30b425d
2,035
py
Python
integrations/tensorflow/e2e/pytree_test.py
schoppmp/iree
d573c3dbb4eef8044764ae6d80ca79e37e8de522
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/e2e/pytree_test.py
schoppmp/iree
d573c3dbb4eef8044764ae6d80ca79e37e8de522
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/e2e/pytree_test.py
schoppmp/iree
d573c3dbb4eef8044764ae6d80ca79e37e8de522
[ "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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
31.307692
77
0.728747
7ecdcaab0392580a78d34ff3dbcd8ceab1601a2e
737
py
Python
head_dataframe_by_chunk.py
ermakovpetr/head_dataframe_by_chunk
fcc361ce68be9a516c9cb2ddbf64e6595cbebb18
[ "MIT" ]
1
2017-11-08T10:26:52.000Z
2017-11-08T10:26:52.000Z
head_dataframe_by_chunk.py
ermakovpetr/head_dataframe_by_chunk
fcc361ce68be9a516c9cb2ddbf64e6595cbebb18
[ "MIT" ]
null
null
null
head_dataframe_by_chunk.py
ermakovpetr/head_dataframe_by_chunk
fcc361ce68be9a516c9cb2ddbf64e6595cbebb18
[ "MIT" ]
null
null
null
def head_dataframe_by_chunk(df, size_chunk_columns=6, n_rows=2): from IPython.core.display import display, HTML if type(size_chunk_columns) is list: current_column = 0 for i in size_chunk_columns: display(HTML('<style> .df thead tr { background-color: #B0B0B0; } </style>' + ...
52.642857
104
0.625509
44233e57da9d902a9011b8a8d9589196ebadcfe2
1,295
py
Python
test/test_paged_alert_with_stats.py
mdennehy/python-client
4d9cfa32075a6a65d88a38fe9e72b282e87b8808
[ "Apache-2.0" ]
null
null
null
test/test_paged_alert_with_stats.py
mdennehy/python-client
4d9cfa32075a6a65d88a38fe9e72b282e87b8808
[ "Apache-2.0" ]
null
null
null
test/test_paged_alert_with_stats.py
mdennehy/python-client
4d9cfa32075a6a65d88a38fe9e72b282e87b8808
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Wavefront REST API <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST ...
31.585366
409
0.741313
6a2421f3f87be3b965a92b1b9e18cf13a009f1fa
18,338
py
Python
muspinsim/spinsys.py
muon-spectroscopy-computational-project/muspinsim
d9e971edd840ab0c33b143f9b5694bc1b09011d2
[ "MIT" ]
null
null
null
muspinsim/spinsys.py
muon-spectroscopy-computational-project/muspinsim
d9e971edd840ab0c33b143f9b5694bc1b09011d2
[ "MIT" ]
null
null
null
muspinsim/spinsys.py
muon-spectroscopy-computational-project/muspinsim
d9e971edd840ab0c33b143f9b5694bc1b09011d2
[ "MIT" ]
null
null
null
"""spinsys.py A class to hold a given spin system, defined by specific nuclei """ import logging import numpy as np from numbers import Number import scipy.constants as cnst from muspinsim.utils import Clonable from muspinsim.spinop import SpinOperator from muspinsim.hamiltonian import Hamiltonian from muspinsim.li...
26.65407
86
0.552841
df8cc1a478e941024e150e596913f2f6a96dc72b
11,229
py
Python
arrow/parser.py
czechben/arrow
c67fb5c26dc646536d0a81752568fcdc761a9076
[ "Apache-2.0" ]
null
null
null
arrow/parser.py
czechben/arrow
c67fb5c26dc646536d0a81752568fcdc761a9076
[ "Apache-2.0" ]
3
2018-09-28T08:30:05.000Z
2018-09-28T08:56:55.000Z
arrow/parser.py
pierorex/arrow
2d1a8a4f0b699c54a52d62622281a061b86aadac
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals from datetime import datetime from dateutil import tz import re try: from functools import lru_cache except ImportError: # pragma: no cover from backports.functools_lru_cache import lru_cache # pragma: no ...
32.267241
107
0.535934
af0393c5af2b67751012663bc41e7fdb6bdf64ee
5,055
py
Python
data_mining/etl.py
PalmerTurley34/DS
a7c8178c3af9804749d1b9a6acd2f6ba5abe8c5b
[ "MIT" ]
null
null
null
data_mining/etl.py
PalmerTurley34/DS
a7c8178c3af9804749d1b9a6acd2f6ba5abe8c5b
[ "MIT" ]
2
2020-08-21T03:20:38.000Z
2020-08-27T01:04:56.000Z
data_mining/etl.py
PalmerTurley34/DS
a7c8178c3af9804749d1b9a6acd2f6ba5abe8c5b
[ "MIT" ]
3
2020-08-20T02:06:48.000Z
2020-08-27T03:37:12.000Z
import os import sys import sqlite3 import glob import zipfile from urllib.request import urlretrieve import pandas as pd class KickstartDatabase(): def __init__(self, db_connection, columns): self.connection = db_connection self.common_columns = columns def reset_db(self): ''' ...
34.623288
78
0.551335
a07d5750a5fdbe21acb1678a9def7d8d315fbc36
9,836
py
Python
env/lib/python3.6/site-packages/openpyxl/writer/excel.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
env/lib/python3.6/site-packages/openpyxl/writer/excel.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
4
2021-03-11T04:02:00.000Z
2022-03-27T08:31:56.000Z
env/lib/python3.6/site-packages/openpyxl/writer/excel.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
22
2018-07-13T11:30:48.000Z
2021-09-25T13:30:08.000Z
from __future__ import absolute_import # Copyright (c) 2010-2018 openpyxl """Write a .xlsx file.""" # Python stdlib imports from io import BytesIO import re from zipfile import ZipFile, ZIP_DEFLATED # package imports from openpyxl.utils.exceptions import InvalidFileException from openpyxl.xml.constants import ( ...
31.225397
98
0.622509
9c66c5b40e1470d881ed05ac0c0b9c068579cd24
407
py
Python
src/entities/vegetations/three.py
Izoniks-prog/Dreams-Island
062dd1c5cca102b304642e278c155ce21ce971b2
[ "MIT" ]
1
2021-02-17T20:47:29.000Z
2021-02-17T20:47:29.000Z
src/entities/vegetations/three.py
Izoniks-prog/Dreams-Island
062dd1c5cca102b304642e278c155ce21ce971b2
[ "MIT" ]
null
null
null
src/entities/vegetations/three.py
Izoniks-prog/Dreams-Island
062dd1c5cca102b304642e278c155ce21ce971b2
[ "MIT" ]
null
null
null
import pygame from src.entities.vegetations.vegetation import Vegetation SIZE_X = 17 SIZE_Y = 16 class Three(Vegetation): def __init__(self, x: int, y: int, path: str): super().__init__(x, y, path) self.image = pygame.image.load(path) self.rect = self.image.get_rect() self.x = ...
20.35
58
0.604423
625b77ef08faa2dd5966f2c98a08cfeef17afa71
189
py
Python
acmicpc/9933/9933.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
3
2019-03-09T05:19:23.000Z
2019-04-06T09:26:36.000Z
acmicpc/9933/9933.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2020-02-23T10:38:04.000Z
2020-02-23T10:38:04.000Z
acmicpc/9933/9933.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2019-05-22T13:47:53.000Z
2019-05-22T13:47:53.000Z
N = int(input()) words = [input() for param in range(N)] for word in words: if word[::-1] in words: print(len(word), end=' ') print(word[len(word) // 2]) break
21
39
0.529101
3feb92bb605d010e2f487acca009c5150ef58061
18,616
py
Python
yardstick/network_services/traffic_profile/traffic_profile.py
kkltcjk/yardstick-moon
de48b16d1385cc26e83f8886d148d642c59e3d64
[ "Apache-2.0" ]
null
null
null
yardstick/network_services/traffic_profile/traffic_profile.py
kkltcjk/yardstick-moon
de48b16d1385cc26e83f8886d148d642c59e3d64
[ "Apache-2.0" ]
null
null
null
yardstick/network_services/traffic_profile/traffic_profile.py
kkltcjk/yardstick-moon
de48b16d1385cc26e83f8886d148d642c59e3d64
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016-2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
41.73991
96
0.565374
8b8c5001f1f33552628800c14ee4580c819ffb45
585
py
Python
solutions/d2p1.py
robbiesri/advent-of-code-2018
bc40ea1b8259a2b832092067bd4ab02e314412a9
[ "MIT" ]
null
null
null
solutions/d2p1.py
robbiesri/advent-of-code-2018
bc40ea1b8259a2b832092067bd4ab02e314412a9
[ "MIT" ]
null
null
null
solutions/d2p1.py
robbiesri/advent-of-code-2018
bc40ea1b8259a2b832092067bd4ab02e314412a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import commonAOC from collections import Counter import string inputDataFile = commonAOC.loadInputData("d2.txt") total2count = 0 total3count = 0 for line in inputDataFile: count2 = False count3 = False counter = Counter(line) for k in string.ascii_lowercase: lett...
18.870968
49
0.639316