hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
1fdeb0491fcc982157101202d91f186c2a320c5d
17
py
Python
practice.py
wwwxxxx/firstPythonGit
a1b5e41153e74a700ac6de38df2676c585739358
[ "Apache-2.0" ]
null
null
null
practice.py
wwwxxxx/firstPythonGit
a1b5e41153e74a700ac6de38df2676c585739358
[ "Apache-2.0" ]
null
null
null
practice.py
wwwxxxx/firstPythonGit
a1b5e41153e74a700ac6de38df2676c585739358
[ "Apache-2.0" ]
null
null
null
print("第一个git项目")
17
17
0.764706
b94c5d4c4bcd6bd8876a04de040f38c222d0cd49
1,662
py
Python
mindspore/ops/_op_impl/aicpu/strided_slice_grad.py
i4oolish/mindspore
dac3be31d0f2c0a3516200f47af30980e566601b
[ "Apache-2.0" ]
2
2020-08-12T16:14:40.000Z
2020-12-04T03:05:57.000Z
mindspore/ops/_op_impl/aicpu/strided_slice_grad.py
dilingsong/mindspore
4276050f2494cfbf8682560a1647576f859991e8
[ "Apache-2.0" ]
null
null
null
mindspore/ops/_op_impl/aicpu/strided_slice_grad.py
dilingsong/mindspore
4276050f2494cfbf8682560a1647576f859991e8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.772727
81
0.640794
2b17d5e2a9d621b3686fe7206a5877c3e0822a31
4,302
py
Python
rasa/engine/runner/dask.py
tienhoang1994/rasa
a977a8f1fb2308bebe7becd2c024765528296bd6
[ "Apache-2.0" ]
3,603
2017-05-21T18:34:55.000Z
2019-04-16T11:58:09.000Z
rasa/engine/runner/dask.py
tienhoang1994/rasa
a977a8f1fb2308bebe7becd2c024765528296bd6
[ "Apache-2.0" ]
2,782
2017-05-21T20:36:15.000Z
2019-04-16T14:35:20.000Z
rasa/engine/runner/dask.py
tienhoang1994/rasa
a977a8f1fb2308bebe7becd2c024765528296bd6
[ "Apache-2.0" ]
1,337
2017-05-21T18:10:33.000Z
2019-04-16T09:14:42.000Z
from __future__ import annotations import logging from typing import Any, Dict, List, Optional, Text import dask from rasa.engine.exceptions import GraphRunError from rasa.engine.graph import ExecutionContext, GraphNode, GraphNodeHook, GraphSchema from rasa.engine.runner.interface import GraphRunner from rasa.engine...
36.151261
87
0.637378
3636494fbd93c178104e38d7581eb3ec92bec8ba
2,227
py
Python
spacy/cli/info.py
cmgreivel/spaCy
a31506e06060c559abfeda043503935691af2e98
[ "MIT" ]
2
2019-07-08T17:09:22.000Z
2021-01-09T17:36:04.000Z
spacy/cli/info.py
cmgreivel/spaCy
a31506e06060c559abfeda043503935691af2e98
[ "MIT" ]
null
null
null
spacy/cli/info.py
cmgreivel/spaCy
a31506e06060c559abfeda043503935691af2e98
[ "MIT" ]
null
null
null
# coding: utf8 from __future__ import unicode_literals import plac import platform from pathlib import Path from ..compat import path2str from .. import about from .. import util @plac.annotations( model=("optional: shortcut link of model", "positional", None, str), markdown=("generate Markdown for GitHub i...
35.349206
79
0.636731
7fcf1ad0bfd0105026c3f216d01ac5101a11f7ef
2,237
py
Python
threads/motion_sensors_thread.py
sensidev/pir-tof-camera-websoket-example
911da83d2ba44857d3fa0843ba57fd0576c23a5e
[ "MIT" ]
null
null
null
threads/motion_sensors_thread.py
sensidev/pir-tof-camera-websoket-example
911da83d2ba44857d3fa0843ba57fd0576c23a5e
[ "MIT" ]
1
2020-05-17T13:27:13.000Z
2020-05-17T13:27:13.000Z
threads/motion_sensors_thread.py
sensidev/pir-tof-camera-websoket-example
911da83d2ba44857d3fa0843ba57fd0576c23a5e
[ "MIT" ]
1
2019-10-27T10:52:29.000Z
2019-10-27T10:52:29.000Z
import json from threading import Thread from time import time from gpiozero import MotionSensor class MotionSensorsThread(Thread): """ Thread sampling PIR sensors and broadcast whenever one of the sensors detect motion. """ WHEN_MOTION_VALUE = 1000 def __init__(self, websocket_server, sensors=...
28.316456
94
0.599017
ee4cdd2ba19d79a568ecc159d5152427ee637105
2,353
py
Python
neuro_flow/cli/completion.py
neuromation/neuro-flow
c29d61247a4afa3b341474d226e08e976f59345c
[ "Apache-2.0" ]
3
2020-08-27T09:02:15.000Z
2020-09-29T09:19:57.000Z
neuro_flow/cli/completion.py
neuromation/neuro-flow
c29d61247a4afa3b341474d226e08e976f59345c
[ "Apache-2.0" ]
31
2020-08-05T12:55:24.000Z
2020-09-28T18:07:33.000Z
neuro_flow/cli/completion.py
neuromation/neuro-flow
c29d61247a4afa3b341474d226e08e976f59345c
[ "Apache-2.0" ]
null
null
null
import click import os import sys from neuro_flow.cli.utils import wrap_async from neuro_flow.types import LocalPath from .root import Root CFG_FILE = {"bash": LocalPath("~/.bashrc"), "zsh": LocalPath("~/.zshrc")} SOURCE_CMD = {"bash": "bash_source", "zsh": "zsh_source"} ACTIVATION_TEMPLATE = 'eval "$(_NEURO_FLOW_...
26.738636
83
0.632809
c5e1a4d0b8f06a60d0529befdabc11ec2e62c841
2,846
py
Python
frete/api/modules/frete.py
Leothi/teste-kabum
37bc5566e13ab68c6fd0adf3b700632395481e17
[ "MIT" ]
1
2021-03-18T16:26:35.000Z
2021-03-18T16:26:35.000Z
frete/api/modules/frete.py
Leothi/teste-kabum
37bc5566e13ab68c6fd0adf3b700632395481e17
[ "MIT" ]
null
null
null
frete/api/modules/frete.py
Leothi/teste-kabum
37bc5566e13ab68c6fd0adf3b700632395481e17
[ "MIT" ]
null
null
null
from loguru import logger class CalculadorFrete(): cfg_frete = { 'ninja': { 'nome': 'Entrega Ninja', 'cte_frete': 0.3, 'altura_min': 10, 'altura_max': 200, 'largura_min': 6, 'largura_max': 140, 'prazo_dias': 6, }, ...
30.602151
116
0.531623
abd9cecd9ac6d71a5192a06c3bd86641ff64abe5
20,076
py
Python
tests/test_setup.py
squirrel289/core
6c5bcbfc3ee40927458e9188d6b79bf63933d3f9
[ "Apache-2.0" ]
3
2019-11-13T18:19:33.000Z
2021-07-18T11:40:37.000Z
tests/test_setup.py
squirrel289/core
6c5bcbfc3ee40927458e9188d6b79bf63933d3f9
[ "Apache-2.0" ]
45
2020-07-21T12:58:24.000Z
2022-03-31T06:01:46.000Z
tests/test_setup.py
CrossEyeORG/homeassistant
6c5bcbfc3ee40927458e9188d6b79bf63933d3f9
[ "Apache-2.0" ]
2
2017-09-03T16:06:02.000Z
2021-01-12T15:07:52.000Z
"""Test component/platform setup.""" # pylint: disable=protected-access import asyncio import logging import os import threading import pytest import voluptuous as vol from homeassistant import config_entries, setup import homeassistant.config as config_util from homeassistant.const import EVENT_COMPONENT_LOADED, EVE...
34.259386
88
0.618002
0170bd083e4a0324855ae0cd94c452035a3bc9e3
25,599
py
Python
core/domain/question_domain_test.py
arora-ria/oppia
698d5593689f15ee36384a57036cf2e0150bb785
[ "Apache-2.0" ]
2
2020-10-13T12:59:08.000Z
2020-10-13T17:10:26.000Z
core/domain/question_domain_test.py
gitter-badger/oppia
7d8e659264582d7ce74bc6c139e597b82bca0e04
[ "Apache-2.0" ]
1
2020-05-27T06:08:17.000Z
2020-05-27T06:08:17.000Z
core/domain/question_domain_test.py
gitter-badger/oppia
7d8e659264582d7ce74bc6c139e597b82bca0e04
[ "Apache-2.0" ]
1
2020-11-05T12:26:10.000Z
2020-11-05T12:26:10.000Z
# Copyright 2018 The Oppia 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 ...
39.082443
80
0.643814
69ee2b5a4ecd2a458f15db1354a4795fcbf43127
823
py
Python
easy-receptive-fields-pytorch/houseNet/train.py
Swinsie/cv-rep-fork
1c3454934645e3f9afa39ba90c3b216eb9ed7f75
[ "Apache-2.0" ]
17
2020-03-09T07:13:07.000Z
2022-03-31T13:49:03.000Z
easy-receptive-fields-pytorch/houseNet/train.py
Swinsie/cv-rep-fork
1c3454934645e3f9afa39ba90c3b216eb9ed7f75
[ "Apache-2.0" ]
null
null
null
easy-receptive-fields-pytorch/houseNet/train.py
Swinsie/cv-rep-fork
1c3454934645e3f9afa39ba90c3b216eb9ed7f75
[ "Apache-2.0" ]
5
2020-03-25T14:46:59.000Z
2021-07-18T17:03:49.000Z
import configparser import numpy as np from keras.metrics import binary_accuracy from keras.optimizers import Adam from networks.trainNetwork import train_network from networks.uNet3 import UNet3 from util.losses import dice from util.metrics import intersection_over_union config = configparser.ConfigParser() config...
30.481481
92
0.71932
f7ba165d566d105b1aa8ce9af97d76d3582d3cbe
7,216
py
Python
pyvies/__init__.py
MrMebelMan/pyvies
a0f9c1a5b17be61813bcd3a2308e64ed350df8bb
[ "MIT" ]
1
2020-05-22T14:17:41.000Z
2020-05-22T14:17:41.000Z
pyvies/__init__.py
MrMebelMan/pyvies
a0f9c1a5b17be61813bcd3a2308e64ed350df8bb
[ "MIT" ]
null
null
null
pyvies/__init__.py
MrMebelMan/pyvies
a0f9c1a5b17be61813bcd3a2308e64ed350df8bb
[ "MIT" ]
1
2019-01-08T14:58:05.000Z
2019-01-08T14:58:05.000Z
#!/usr/bin/env python3 from requests import post as requests_post from bs4 import BeautifulSoup as Soup from re import match as re_match NoneType = type(None) class Vies: # ISO 3166-1 alpha-2 country codes. EU_COUNTRY_CODES = set([ 'AT', # Austria. 'BE', # Belgium. 'BG', # Bulgari...
32.651584
115
0.573032
0475370627154153a57372b2b1879cfa44ff17b5
10,761
py
Python
pyabsa/functional/checkpoint/checkpoint_manager.py
onlyrico/PyABSA
d0905eb5253eaa564d2244cd777e3a734bca777a
[ "MIT" ]
null
null
null
pyabsa/functional/checkpoint/checkpoint_manager.py
onlyrico/PyABSA
d0905eb5253eaa564d2244cd777e3a734bca777a
[ "MIT" ]
null
null
null
pyabsa/functional/checkpoint/checkpoint_manager.py
onlyrico/PyABSA
d0905eb5253eaa564d2244cd777e3a734bca777a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # file: checkpoint_manager.py # time: 2021/6/11 0011 # author: yangheng <yangheng@m.scnu.edu.cn> # github: https://github.com/yangheng95 # Copyright (C) 2021. All Rights Reserved. import json import os.path import sys import zipfile from autocuda import auto_cuda from findfile import find_files...
43.216867
123
0.617508
5db5cb7fd89ecb47981c8921f43411b6ab6d59d0
2,078
py
Python
scripts/create_background_data.py
open-dynamic-robot-initiative/trifinger_object_tracking
d57cd6abcd880c228b4e26a8b8deeaea55d32828
[ "BSD-3-Clause" ]
6
2020-11-03T12:58:54.000Z
2022-01-05T23:39:52.000Z
scripts/create_background_data.py
open-dynamic-robot-initiative/trifinger_object_tracking
d57cd6abcd880c228b4e26a8b8deeaea55d32828
[ "BSD-3-Clause" ]
1
2020-12-03T10:06:13.000Z
2020-12-03T10:06:13.000Z
scripts/create_background_data.py
open-dynamic-robot-initiative/trifinger_object_tracking
d57cd6abcd880c228b4e26a8b8deeaea55d32828
[ "BSD-3-Clause" ]
5
2020-11-12T00:43:41.000Z
2021-05-21T14:21:25.000Z
#!/usr/bin/env python3 # %% import argparse import os import cv2 as cv import numpy as np from PIL import Image from scipy import ndimage def show_image(image): image = Image.fromarray(image[:, :, ::-1], "RGB") image.show() def load_images(path): image_names = [n for n in os.listdir(path) if ".png" in...
25.975
76
0.54283
4b38618b312709d7a15ca792cc55d4094e1afe08
9,383
py
Python
scripts/stastic_disparity.py
HKBU-HPML/FADNet-PP
6e653e8f1fa0f55f10068f5592cbc8b49bb571e4
[ "MIT" ]
null
null
null
scripts/stastic_disparity.py
HKBU-HPML/FADNet-PP
6e653e8f1fa0f55f10068f5592cbc8b49bb571e4
[ "MIT" ]
null
null
null
scripts/stastic_disparity.py
HKBU-HPML/FADNet-PP
6e653e8f1fa0f55f10068f5592cbc8b49bb571e4
[ "MIT" ]
null
null
null
from __future__ import print_function import os import numpy as np import csv import matplotlib from matplotlib import pyplot as plt from matplotlib.ticker import PercentFormatter from PIL import Image, ImageOps from skimage import io from utils.preprocess import load_pfm FONTSIZE=20 matplotlib.rcParams.update({'font.s...
37.086957
168
0.636044
998d4c432624cb536db530bd06e771556c57820a
6,586
py
Python
3D_Printed_Daft_Punk_Helmet/3D_Printed_Daft_Punk_Helmet-Side-Animation/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
665
2017-09-27T21:20:14.000Z
2022-03-31T09:09:25.000Z
3D_Printed_Daft_Punk_Helmet/3D_Printed_Daft_Punk_Helmet-Side-Animation/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
641
2017-10-03T19:46:37.000Z
2022-03-30T18:28:46.000Z
3D_Printed_Daft_Punk_Helmet/3D_Printed_Daft_Punk_Helmet-Side-Animation/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
734
2017-10-02T22:47:38.000Z
2022-03-30T14:03:51.000Z
# SPDX-FileCopyrightText: 2014 Phil Burgess for Adafruit Industries # # SPDX-License-Identifier: MIT # Adafruit Trinket+NeoPixel animation for Daft Punk-inspired helmet. # Contains some ATtiny85-specific stuff; won't run as-is on Uno, etc. # Operates in HSV (hue, saturation, value) colorspace rather than RGB. # Anima...
33.948454
85
0.4959
6077061e55392fc62721aa80b6bf3c5b134e14a4
43,916
py
Python
deepspeed/pt/deepspeed_light.py
jeffra/ghpages-test
d2500f2acfb6708efbd52e7857b92cc269a1ffa8
[ "MIT" ]
null
null
null
deepspeed/pt/deepspeed_light.py
jeffra/ghpages-test
d2500f2acfb6708efbd52e7857b92cc269a1ffa8
[ "MIT" ]
null
null
null
deepspeed/pt/deepspeed_light.py
jeffra/ghpages-test
d2500f2acfb6708efbd52e7857b92cc269a1ffa8
[ "MIT" ]
null
null
null
''' Copyright 2019 The Microsoft DeepSpeed Team ''' import logging import torch import os import torch.distributed as dist from torch.nn.modules import Module from tensorboardX import SummaryWriter from deepspeed.pt.deepspeed_timer import ThroughputTimer, SynchronizedWallClockTimer from deepspeed.pt.deepspeed_zero_o...
40.363971
184
0.624442
32741969ce0760cbc251d20eaf24499d22b6b2e6
27,649
py
Python
tests/unit/modules/test_systemd_service.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
2
2020-11-02T22:08:26.000Z
2020-11-14T13:44:46.000Z
tests/unit/modules/test_systemd_service.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
4
2021-02-06T14:30:48.000Z
2021-12-13T20:50:10.000Z
tests/unit/modules/test_systemd_service.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
2
2020-11-04T06:32:02.000Z
2020-11-06T11:01:18.000Z
# -*- coding: utf-8 -*- """ :codeauthor: Rahul Handay <rahulha@saltstack.com> """ # Import Python libs from __future__ import absolute_import, print_function, unicode_literals import os import pytest # Import Salt Libs import salt.modules.systemd_service as systemd import salt.utils.systemd from salt.exceptions...
41.765861
91
0.475135
0982274b543e0613035ab9aa92a67dad0c57154e
180
py
Python
cas/config.py
jcmcken/cas
46933cf6320f6ebd8199459c0bbbf1ebfcb9863d
[ "BSD-3-Clause" ]
null
null
null
cas/config.py
jcmcken/cas
46933cf6320f6ebd8199459c0bbbf1ebfcb9863d
[ "BSD-3-Clause" ]
1
2015-04-20T03:28:17.000Z
2015-04-23T01:53:29.000Z
cas/config.py
jcmcken/cas
46933cf6320f6ebd8199459c0bbbf1ebfcb9863d
[ "BSD-3-Clause" ]
null
null
null
import os DEBUG = os.environ.get('CAS_DEBUG', 'false') == 'true' CAS_ROOT = os.environ.get('CAS_ROOT', None) CAS_PLUGIN_DIR = os.path.join(os.path.dirname(__file__), 'plugins')
22.5
67
0.705556
585e53b61c628fe378d69de2d763d0b9517b0ea9
1,422
py
Python
cohesity_management_sdk/models/periodicity_extended_retention_policy_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/periodicity_extended_retention_policy_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/periodicity_extended_retention_policy_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class PeriodicityExtendedRetentionPolicyEnum(object): """Implementation of the 'Periodicity_ExtendedRetentionPolicy' enum. Specifies the frequency that Snapshots should be copied to the specified target. Used in combination with multiplier. 'kEve...
30.913043
74
0.698312
4d22afe6a4e7e07b27a5f79f35fa59321a37eacc
9,389
py
Python
simple_redirect.py
0xC0ncord/TURRPG2
43a5ad00ae38070a5c23b813e793de2ac5e7cd72
[ "OML" ]
1
2020-09-22T14:15:21.000Z
2020-09-22T14:15:21.000Z
simple_redirect.py
0xC0ncord/TURRPG2
43a5ad00ae38070a5c23b813e793de2ac5e7cd72
[ "OML" ]
22
2021-12-12T22:24:47.000Z
2022-01-13T22:48:21.000Z
simple_redirect.py
0xC0ncord/TURRPG2
43a5ad00ae38070a5c23b813e793de2ac5e7cd72
[ "OML" ]
null
null
null
#!/usr/bin/env python3 import http.server, socketserver import urllib.parse import os import signal PORT = 8000 ALLOWED_EXTENSIONS = ('ukx', 'ut2', 'uax', 'usx', 'u', 'utx') ASSET_DIRS = ('Animations', 'Maps', 'Sounds', 'StaticMeshes', 'System', 'Textures') USE_COMPRESSION = True TEMP_COMPRESSED_DIR = ".redirect" i...
36.964567
149
0.562467
aae01310da3b24b9a1a6b3e2fb5fcb78ba37387d
573
py
Python
src/174. Dungeon Game.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
src/174. Dungeon Game.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
src/174. Dungeon Game.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
class Solution(object): def calculateMinimumHP(self, dungeon): """ :type dungeon: List[List[int]] :rtype: int """ R = len(dungeon) C = len(dungeon[0]) minBlood = [None] * C for r in xrange(R-1, -1, -1): for c in xrange(C-1, -1, -1): d = dungeon[r][c] if r < R-1 and c < C-1: minBlood[...
24.913043
74
0.542757
43820a6915219b7cbb53d66c4496d1745a6a7f09
16,560
py
Python
pysteps/visualization/precipfields.py
Fangyh09/pysteps
9eb7f4ead0a946d98b7504d1bd66b18dc405ed51
[ "BSD-3-Clause" ]
6
2019-01-06T07:42:55.000Z
2021-02-03T13:59:50.000Z
pysteps/visualization/precipfields.py
Fangyh09/pysteps
9eb7f4ead0a946d98b7504d1bd66b18dc405ed51
[ "BSD-3-Clause" ]
5
2018-12-23T15:10:27.000Z
2021-01-06T15:03:03.000Z
pysteps/visualization/precipfields.py
Fangyh09/pysteps
9eb7f4ead0a946d98b7504d1bd66b18dc405ed51
[ "BSD-3-Clause" ]
2
2019-08-06T14:16:43.000Z
2019-08-13T00:36:31.000Z
""" pysteps.visualization.precipfields ================================== Methods for plotting precipitation fields. .. autosummary:: :toctree: ../generated/ plot_precip_field get_colormap """ import matplotlib.pylab as plt from matplotlib import cm, colors, gridspec import numpy as np f...
40.788177
164
0.521316
344df2dff22922dc53e8a801b6bd0658cb94f3e0
7,548
py
Python
src/snowflake/connector/json_result.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
null
null
null
src/snowflake/connector/json_result.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
14
2021-01-26T06:53:10.000Z
2022-03-14T11:16:54.000Z
src/snowflake/connector/json_result.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved. # from logging import getLogger from .constants import FIELD_ID_TO_NAME from .errorcode import ER_FAILED_TO_CONVERT_ROW_TO_PYTHON_TYPE from .errors import Error, InterfaceError from .telemetry import...
38.314721
93
0.54213
4cad8d1390c13b0df7f0e741490ef75a752939cc
22,267
py
Python
salt/states/saltmod.py
minaguib/salt
2a1066eee18928d1d86a126f69c6d70a86b83cca
[ "Apache-2.0" ]
null
null
null
salt/states/saltmod.py
minaguib/salt
2a1066eee18928d1d86a126f69c6d70a86b83cca
[ "Apache-2.0" ]
null
null
null
salt/states/saltmod.py
minaguib/salt
2a1066eee18928d1d86a126f69c6d70a86b83cca
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Control the Salt command interface ================================== This state is intended for use from the Salt Master. It provides access to sending commands down to minions as well as access to executing master-side modules. These state functions wrap Salt's :ref:`Python API <python-ap...
30.670799
119
0.555037
873ec0bad66391bafa20243995238752578b66fa
263
py
Python
aclark/db/migrations/0022_remove_project_user_hours.py
aclark4life/aclark-net-1
e256bfdd63ad4445bf0a75ef0b91f6e1fd2479ea
[ "MIT" ]
null
null
null
aclark/db/migrations/0022_remove_project_user_hours.py
aclark4life/aclark-net-1
e256bfdd63ad4445bf0a75ef0b91f6e1fd2479ea
[ "MIT" ]
null
null
null
aclark/db/migrations/0022_remove_project_user_hours.py
aclark4life/aclark-net-1
e256bfdd63ad4445bf0a75ef0b91f6e1fd2479ea
[ "MIT" ]
null
null
null
# Generated by Django 2.1.9 on 2019-07-02 20:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [("db", "0021_project_user_hours")] operations = [migrations.RemoveField(model_name="project", name="user_hours")]
23.909091
82
0.737643
2b0bb60cb4296b4d430050b8022b60feb646ce0e
4,945
py
Python
project/target/node-modules/webjars/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py
bet-gram/betgram-webapp-backend
c82824e2117a81e582a4b9707849e6b7f064be59
[ "Apache-2.0" ]
2,494
2015-02-11T04:34:13.000Z
2022-03-31T14:21:47.000Z
project/target/node-modules/webjars/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py
bet-gram/betgram-webapp-backend
c82824e2117a81e582a4b9707849e6b7f064be59
[ "Apache-2.0" ]
1,432
2017-06-21T04:08:48.000Z
2020-08-25T16:21:15.000Z
project/target/node-modules/webjars/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py
bet-gram/betgram-webapp-backend
c82824e2117a81e582a4b9707849e6b7f064be59
[ "Apache-2.0" ]
442
2015-02-12T13:45:46.000Z
2022-03-21T05:28:05.000Z
# Copyright (c) 2011 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import re import os def XmlToString(content, encoding='utf-8', pretty=False): """ Writes the XML content to disk, touching the file only if it has changed. ...
30.337423
80
0.651972
fcb0f94bed86d2a845dd6d243a355704e88a3577
3,745
py
Python
src/aegis/modules/interpreter.py
martinbagic/aegis-exercise
2bef0828dea456f2f66c9288daf095e4dceca40c
[ "MIT" ]
null
null
null
src/aegis/modules/interpreter.py
martinbagic/aegis-exercise
2bef0828dea456f2f66c9288daf095e4dceca40c
[ "MIT" ]
null
null
null
src/aegis/modules/interpreter.py
martinbagic/aegis-exercise
2bef0828dea456f2f66c9288daf095e4dceca40c
[ "MIT" ]
1
2021-08-24T15:31:30.000Z
2021-08-24T15:31:30.000Z
import numpy as np from aegis.panconfiguration import pan class Interpreter: """Interpreter of genomic loci Transforms bool array into an array of numbers. These numbers can be loosely understood as gene activity. """ exp_base = 0.5 # Important for _exp binary_exp_base = 0.98 # Important...
35
113
0.640587
9e59441515791ed6639a8b7b763d6ed29bf93ff2
3,817
py
Python
eclipse-mosquitto/test/broker/04-retain-check-source-persist.py
HenriqueBuzin/mosquitto-eclipse-mqtt
00468923fcf70eefdf2c707b6ba9bdd4f859faf2
[ "Unlicense" ]
2
2021-04-20T14:28:59.000Z
2021-05-06T07:46:53.000Z
eclipse-mosquitto/test/broker/04-retain-check-source-persist.py
HenriqueBuzin/mosquitto-eclipse-mqtt
00468923fcf70eefdf2c707b6ba9bdd4f859faf2
[ "Unlicense" ]
null
null
null
eclipse-mosquitto/test/broker/04-retain-check-source-persist.py
HenriqueBuzin/mosquitto-eclipse-mqtt
00468923fcf70eefdf2c707b6ba9bdd4f859faf2
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # Test for CVE-2018-12546, with the broker being stopped to write the persistence file. from mosq_test_helper import * import signal def write_config(filename, port, per_listener): with open(filename, 'w') as f: f.write("per_listener_settings %s\n" % (per_listener)) f.write...
36.009434
125
0.6754
76f99d00d0ec990c1786ff6e286fa3ee5f83a437
13,181
py
Python
tensorflow/python/saved_model/builder.py
jianbaishi/tensorflow-learn
59354802b773ca8e1be20cb1d04bf9abb03cf1ad
[ "Apache-2.0" ]
1
2017-03-24T12:08:25.000Z
2017-03-24T12:08:25.000Z
tensorflow/python/saved_model/builder.py
jianbaishi/tensorflow-learn
59354802b773ca8e1be20cb1d04bf9abb03cf1ad
[ "Apache-2.0" ]
null
null
null
tensorflow/python/saved_model/builder.py
jianbaishi/tensorflow-learn
59354802b773ca8e1be20cb1d04bf9abb03cf1ad
[ "Apache-2.0" ]
null
null
null
## Copyright 2015 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 applic...
38.767647
80
0.718534
cfc32e398bd430a29ed3a1e25457f822c9b39d7f
10,804
py
Python
coredis/nodemanager.py
dynalz/coredis
54c95a323897a9742bf30ceff67141d9a1cfc97a
[ "MIT" ]
null
null
null
coredis/nodemanager.py
dynalz/coredis
54c95a323897a9742bf30ceff67141d9a1cfc97a
[ "MIT" ]
null
null
null
coredis/nodemanager.py
dynalz/coredis
54c95a323897a9742bf30ceff67141d9a1cfc97a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random from coredis.exceptions import ConnectionError, RedisClusterException from coredis.utils import b, hash_slot class NodeManager: """ TODO: document """ RedisClusterHashSlots = 16384 def __init__( self, startup_nodes=None, reinitializ...
36.5
98
0.562662
ee62c91ad9698c740f5562519bb325b1b1e0c76b
11,343
py
Python
pandas/tests/indexing/test_ix.py
ajspera/pandas
f38020f33052ea9029b410d7fae79bc8f249c0ac
[ "BSD-3-Clause" ]
5
2019-07-26T15:22:41.000Z
2021-09-28T09:22:17.000Z
pandas/tests/indexing/test_ix.py
ajspera/pandas
f38020f33052ea9029b410d7fae79bc8f249c0ac
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/indexing/test_ix.py
ajspera/pandas
f38020f33052ea9029b410d7fae79bc8f249c0ac
[ "BSD-3-Clause" ]
3
2019-07-26T10:47:23.000Z
2020-08-10T12:40:32.000Z
""" test indexing with ix """ from warnings import catch_warnings import numpy as np import pytest from pandas.core.dtypes.common import is_scalar import pandas as pd from pandas import DataFrame, Series, option_context from pandas.util import testing as tm def test_ix_deprecation(): # GH 15114 df = Data...
32.783237
88
0.489377
8795236df7220d002925835262768192f2c908f6
1,767
py
Python
script/github-buildstatus-notifier.py
ydemetriades/cfstep-github-buildstatus
42a9f8d09b0f8833a701be93aff376a0d6c173ae
[ "MIT" ]
null
null
null
script/github-buildstatus-notifier.py
ydemetriades/cfstep-github-buildstatus
42a9f8d09b0f8833a701be93aff376a0d6c173ae
[ "MIT" ]
5
2020-01-26T11:55:03.000Z
2020-02-01T20:48:51.000Z
script/github-buildstatus-notifier.py
ydemetriades/cfstep-github-buildstatus
42a9f8d09b0f8833a701be93aff376a0d6c173ae
[ "MIT" ]
1
2020-01-23T15:20:15.000Z
2020-01-23T15:20:15.000Z
#!/usr/bin/env python import os import requests gh_url = os.getenv('GH_BSN_URL', 'https://api.github.com') repo_owner = os.getenv('CF_REPO_OWNER') repo_name = os.getenv('CF_REPO_NAME') repo_auth_user = os.getenv('GH_BSN_REPO_AUTH_USER', repo_owner) repo_token = os.getenv('GH_BSN_REPO_AUTH_TOKEN') if repo_owner is Non...
28.967213
100
0.703452
183f11b89009a4c3d8ea131a17a57373ccba0e8d
11,114
py
Python
tcex/threat_intelligence/mappings/indicator/indicator.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
null
null
null
tcex/threat_intelligence/mappings/indicator/indicator.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
null
null
null
tcex/threat_intelligence/mappings/indicator/indicator.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
null
null
null
"""ThreatConnect TI Indicator""" # standard library import json from urllib.parse import quote, unquote from ..mappings import Mappings # import local modules for dynamic reference module = __import__(__name__) def custom_indicator_class_factory( indicator_type, entity_type, branch_type, base_class, value_field...
32.402332
94
0.563703
a42ea6740457c18e314999da085523c6271f7e78
1,953
py
Python
5.0-clases-y-objetos/src/sobrecarga.py
zehemz/clases-python-101
633cb5f0cbc85e64e242514f0394754a5bed0513
[ "Apache-2.0" ]
null
null
null
5.0-clases-y-objetos/src/sobrecarga.py
zehemz/clases-python-101
633cb5f0cbc85e64e242514f0394754a5bed0513
[ "Apache-2.0" ]
null
null
null
5.0-clases-y-objetos/src/sobrecarga.py
zehemz/clases-python-101
633cb5f0cbc85e64e242514f0394754a5bed0513
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3.5 # -*- coding: utf-8 -*- class Vehiculo(object): def tipo(self): print("Dos ruedas") class Material(object): def tipo(self): print("plástico") class Moto(Vehiculo, Material): def modelo(self): print("Modelo 1") super(Moto, self).tipo() super().ti...
26.753425
88
0.635945
68363f7c08f8dd8587fc5acdc00f52b4d9474d8a
155
py
Python
src/python/phonetics/__init__.py
riasat97/Countrynameproject
71720b452348b52110438155c5cad39539ed59c4
[ "MIT" ]
null
null
null
src/python/phonetics/__init__.py
riasat97/Countrynameproject
71720b452348b52110438155c5cad39539ed59c4
[ "MIT" ]
null
null
null
src/python/phonetics/__init__.py
riasat97/Countrynameproject
71720b452348b52110438155c5cad39539ed59c4
[ "MIT" ]
null
null
null
from .soundex import soundex # NOQA from .metaphone import metaphone # NOQA from .metaphone import dmetaphone # NOQA from .nysiis import nysiis # NOQA
31
41
0.767742
189c17e3f65d55e361da44bd479740b66f2ee490
1,166
py
Python
app/api/rest/modules/alphabet.py
dolfinus/cryptonite
b90c24d008f4af78f8ed00fc9a30fea4628a443a
[ "MIT" ]
null
null
null
app/api/rest/modules/alphabet.py
dolfinus/cryptonite
b90c24d008f4af78f8ed00fc9a30fea4628a443a
[ "MIT" ]
4
2020-03-18T12:04:12.000Z
2020-07-07T19:32:23.000Z
app/api/rest/modules/alphabet.py
dolfinus/cryptonite
b90c24d008f4af78f8ed00fc9a30fea4628a443a
[ "MIT" ]
null
null
null
class Alphabet: lang = None alphabet = None def __init__(self, lang): self.lang = lang self.digits = '0123456789' if lang == 'en': self.alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' if lang == 'en25': self.alphabet = 'ABCDEFGHIKLMNOPQRSTUVWXYZ' if lang == 'ru33': self.al...
25.911111
59
0.629503
32582d251b2522f2adc4163d8d35feaef3ba5fdf
204
py
Python
automatewithpython/shutil/shutilco.py
Coalemus/Python-Projects
4b0e0c12a2fdcfbaf491df5715885c61f44bdb1c
[ "MIT" ]
null
null
null
automatewithpython/shutil/shutilco.py
Coalemus/Python-Projects
4b0e0c12a2fdcfbaf491df5715885c61f44bdb1c
[ "MIT" ]
null
null
null
automatewithpython/shutil/shutilco.py
Coalemus/Python-Projects
4b0e0c12a2fdcfbaf491df5715885c61f44bdb1c
[ "MIT" ]
null
null
null
#!/bin/zsh # Code will copy a single file. import shutil, os os.chdir("C:\\") shutil.copy("C:\\spam.txt", "C:\\delicious") # Source, Destination shutil.copy("eggst.txt", "C:\\delicious\\eggs2.txt")
17
67
0.647059
29bd17c812582c01062767e746eee501b5122c2a
467
py
Python
alipay/aop/api/response/AntMerchantExpandIndirectIsvModifyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AntMerchantExpandIndirectIsvModifyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AntMerchantExpandIndirectIsvModifyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AntMerchantExpandIndirectIsvModifyResponse(AlipayResponse): def __init__(self): super(AntMerchantExpandIndirectIsvModifyResponse, self).__init__() def parse_response_co...
29.1875
115
0.792291
7ff8c60e2cb5d8a50004cfffeccf66fdd5ea7565
26,565
py
Python
app/__init__.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
16
2019-11-05T21:35:49.000Z
2022-01-12T15:00:32.000Z
app/__init__.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
509
2019-07-11T22:03:19.000Z
2022-03-30T15:19:26.000Z
app/__init__.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
8
2020-02-21T20:19:29.000Z
2022-03-31T14:17:02.000Z
import itertools import os import re import urllib from datetime import datetime, timedelta, timezone from functools import partial from numbers import Number from time import monotonic from urllib.parse import urljoin import timeago from flask import ( Markup, current_app, flash, g, make_response,...
33.626582
129
0.662451
c706e60049968d64ab4b96bcd3ba89000ff0b580
6,042
py
Python
chainer/functions/math/tensordot.py
dydo0316/test2
a9982a8b426dd07eb1ec4e7695a7bc546ecc6063
[ "MIT" ]
null
null
null
chainer/functions/math/tensordot.py
dydo0316/test2
a9982a8b426dd07eb1ec4e7695a7bc546ecc6063
[ "MIT" ]
null
null
null
chainer/functions/math/tensordot.py
dydo0316/test2
a9982a8b426dd07eb1ec4e7695a7bc546ecc6063
[ "MIT" ]
null
null
null
import numpy import six from chainer.backends import cuda from chainer import function_node from chainer import utils from chainer.utils import collections_abc from chainer.utils import type_check def _tensordot(a, b, a_axes, b_axes, c_axes=None): a_col_ndim = len(a_axes[1]) b_row_ndim = len(b_axes[0]) i...
35.127907
79
0.547501
7087471a4d256da42baaccebac4d0e173667d875
4,613
py
Python
tests/thumbnail_tests/utils.py
Resmin/sorl-thumbnail
caea1969ecdd0d7de2456b8dbdcdfca60412358f
[ "BSD-3-Clause" ]
null
null
null
tests/thumbnail_tests/utils.py
Resmin/sorl-thumbnail
caea1969ecdd0d7de2456b8dbdcdfca60412358f
[ "BSD-3-Clause" ]
null
null
null
tests/thumbnail_tests/utils.py
Resmin/sorl-thumbnail
caea1969ecdd0d7de2456b8dbdcdfca60412358f
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import os import shutil import unittest import logging from contextlib import contextmanager from subprocess import check_output from PIL import Image from django.test.signals import setting_changed from django.conf import UserSettingsHolder from sorl.thumbnail....
30.959732
95
0.660525
704b2657023bb17bb56383a04c7d84d4532bc5e1
253
py
Python
configs/faster_rcnn_hpc/faster_rcnn_r50_fpn_1x_tct_moco_lr10.py
zhaoyang97/mmdetection
93ce0e7b735ad1ed2e7d856ef80e3aa598cb47e5
[ "Apache-2.0" ]
null
null
null
configs/faster_rcnn_hpc/faster_rcnn_r50_fpn_1x_tct_moco_lr10.py
zhaoyang97/mmdetection
93ce0e7b735ad1ed2e7d856ef80e3aa598cb47e5
[ "Apache-2.0" ]
null
null
null
configs/faster_rcnn_hpc/faster_rcnn_r50_fpn_1x_tct_moco_lr10.py
zhaoyang97/mmdetection
93ce0e7b735ad1ed2e7d856ef80e3aa598cb47e5
[ "Apache-2.0" ]
null
null
null
_base_ = ['./faster_rcnn_r50_fpn_1x_tct.py'] model = dict( # pretrained='open-mmlab://detectron2/resnet50_caffe', pretrained='icode/moco_v2_800ep_pretrain_rename.pth') optimizer = dict(type='SGD', lr=0.02/20, momentum=0.9, weight_decay=0.0001)
36.142857
75
0.73913
f992c5f8589e66c70d1436359403fd910b66b1f9
1,800
py
Python
meraki/api/mx_inbound_firewall.py
fsandberg/dashboard-api-python
c01ff038643a39bd12660d2719375eeb05c7ba24
[ "MIT" ]
null
null
null
meraki/api/mx_inbound_firewall.py
fsandberg/dashboard-api-python
c01ff038643a39bd12660d2719375eeb05c7ba24
[ "MIT" ]
null
null
null
meraki/api/mx_inbound_firewall.py
fsandberg/dashboard-api-python
c01ff038643a39bd12660d2719375eeb05c7ba24
[ "MIT" ]
null
null
null
class MXInboundFirewall(object): def __init__(self, session): super(MXInboundFirewall, self).__init__() self._session = session def getNetworkApplianceFirewallInboundFirewallRules(self, networkId: str): """ **Return the inbound firewall rules for an MX network** http...
40
145
0.655556
fb61b7491608973267199175e119b9307878510c
1,843
py
Python
aldryn_newsblog/tests/test_i18n.py
compoundpartners/js-articles
2b48ed805f44c77fee9fdc6eae0b711147d9b77c
[ "BSD-3-Clause" ]
null
null
null
aldryn_newsblog/tests/test_i18n.py
compoundpartners/js-articles
2b48ed805f44c77fee9fdc6eae0b711147d9b77c
[ "BSD-3-Clause" ]
null
null
null
aldryn_newsblog/tests/test_i18n.py
compoundpartners/js-articles
2b48ed805f44c77fee9fdc6eae0b711147d9b77c
[ "BSD-3-Clause" ]
1
2018-12-10T10:42:42.000Z
2018-12-10T10:42:42.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals try: from django.core.urlresolvers import NoReverseMatch except ImportError: # Django 2.0 from django.urls import NoReverseMatch from django.utils.translation import override from . import NewsBlogTestCase class TestI18N(NewsBlogTestCase):...
36.86
80
0.66522
6843ff0221dffea4ddf8da8ad5b728662f2c5caa
961
py
Python
server/src/tests/samples/annotatedVar5.py
adafruit/pyright
cdb883014bbb7392c04c4d4c65aa1c95aa7fa7ab
[ "MIT" ]
1
2019-09-14T06:02:16.000Z
2019-09-14T06:02:16.000Z
server/src/tests/samples/annotatedVar5.py
adafruit/pyright
cdb883014bbb7392c04c4d4c65aa1c95aa7fa7ab
[ "MIT" ]
4
2021-03-11T07:03:36.000Z
2021-10-06T22:27:25.000Z
server/src/tests/samples/annotatedVar5.py
acidburn0zzz/pyright
e41cc1bd7634ebfb25e8c71d5f065236581e0bff
[ "MIT" ]
null
null
null
# This sample tests type annotations for instance variables. class ClassC(object): def __init__(self): # This should generate an error. self.inst_var1 = 3 @property def prop1(self): return 1 @prop1.setter def prop1(self, val): pass def foo(self): # Thi...
24.025
60
0.620187
7876cfa0064f3bb140057dabe013d817a85c7372
2,225
py
Python
tests/test_s_dual_thrust.py
terencehk/rqalpha
349e6a0a8e45449646acd6063cdec06df3bc1171
[ "Apache-2.0" ]
5,263
2016-07-20T10:41:10.000Z
2022-03-29T08:24:34.000Z
tests/test_s_dual_thrust.py
terencehk/rqalpha
349e6a0a8e45449646acd6063cdec06df3bc1171
[ "Apache-2.0" ]
572
2016-07-28T07:51:02.000Z
2022-02-09T15:28:03.000Z
tests/test_s_dual_thrust.py
terencehk/rqalpha
349e6a0a8e45449646acd6063cdec06df3bc1171
[ "Apache-2.0" ]
1,769
2016-07-20T11:11:55.000Z
2022-03-31T10:11:38.000Z
def init(context): context.s1 = '000905.XSHG' subscribe(context.s1) def handle_bar(context, bar_dict): # stocknum = 50 his = history_bars(context.s1, 10, '1d', 'close') # print(his) if his[9] / his[8] < 0.97: if len(context.portfolio.positions) > 0: for stock in context.p...
25.872093
63
0.523146
4505630e0e0b0ce502fbd89137f7e1d39494681c
12,133
py
Python
stacker/actions/build.py
GoodRx/stacker
0cf1df67b4ae5aeda5845442c84905909101c238
[ "BSD-2-Clause" ]
1
2021-11-06T17:01:01.000Z
2021-11-06T17:01:01.000Z
stacker/actions/build.py
GoodRx/stacker
0cf1df67b4ae5aeda5845442c84905909101c238
[ "BSD-2-Clause" ]
null
null
null
stacker/actions/build.py
GoodRx/stacker
0cf1df67b4ae5aeda5845442c84905909101c238
[ "BSD-2-Clause" ]
1
2021-11-06T17:00:53.000Z
2021-11-06T17:00:53.000Z
import logging from .base import BaseAction from .. import exceptions, util from ..exceptions import StackDidNotChange from ..plan import Plan from ..status import ( NotSubmittedStatus, NotUpdatedStatus, DidNotChangeStatus, SubmittedStatus, CompleteStatus, SUBMITTED ) logger = logging.getLogg...
37.447531
79
0.594742
11e82fd8a9fc588a77f9719d347e05d8719785a6
1,856
py
Python
examples/slack/slack_operator_mode.py
doru1004/rayvens
da89f405586a06b50cc8bb6273d8582400fbca9c
[ "Apache-2.0" ]
24
2021-06-18T21:38:04.000Z
2022-02-16T19:16:49.000Z
examples/slack/slack_operator_mode.py
doru1004/rayvens
da89f405586a06b50cc8bb6273d8582400fbca9c
[ "Apache-2.0" ]
11
2021-06-22T14:36:27.000Z
2021-12-09T16:33:15.000Z
examples/slack/slack_operator_mode.py
doru1004/rayvens
da89f405586a06b50cc8bb6273d8582400fbca9c
[ "Apache-2.0" ]
5
2021-06-18T22:03:55.000Z
2021-08-02T05:11:46.000Z
# # Copyright IBM Corporation 2021 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
30.933333
78
0.724138
fb3fcba2ed9cad66bcdb6583bfc0bb41d71613dc
6,625
py
Python
src/ccapi/model/model/metabolic/__init__.py
achillesrasquinha/CCPy
7a5b4fc008a9a0c90caee5d2d6a8c67393dcb822
[ "MIT" ]
3
2019-12-30T23:13:22.000Z
2020-03-11T11:03:39.000Z
src/ccapi/model/model/metabolic/__init__.py
achillesrasquinha/CCPy
7a5b4fc008a9a0c90caee5d2d6a8c67393dcb822
[ "MIT" ]
2
2019-12-20T20:01:01.000Z
2020-01-09T19:04:32.000Z
src/ccapi/model/model/metabolic/__init__.py
achillesrasquinha/CCPy
7a5b4fc008a9a0c90caee5d2d6a8c67393dcb822
[ "MIT" ]
1
2019-12-30T23:13:46.000Z
2019-12-30T23:13:46.000Z
# imports - standard imports from os.path import join # imports - module imports from ccapi.model.model.version import ModelVersion from ccapi.core.querylist import QueryList from ccapi.core.mixins import JupyterHTMLViewMixin from ccapi.template import render_template from bpyutils.util.str...
35.427807
110
0.571774
3fbd629dbe7fc993bfaa03b9b0bfd2edf7245826
272
py
Python
checker/rfid/read.py
Rami87/Door-lock-raspbarrypi
181fed07e577c81a20450d5a32f147c9f7c8cd6f
[ "MIT" ]
null
null
null
checker/rfid/read.py
Rami87/Door-lock-raspbarrypi
181fed07e577c81a20450d5a32f147c9f7c8cd6f
[ "MIT" ]
null
null
null
checker/rfid/read.py
Rami87/Door-lock-raspbarrypi
181fed07e577c81a20450d5a32f147c9f7c8cd6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import RPi.GPIO as GPIO import SimpleMFRC522 import time reader = SimpleMFRC522.SimpleMFRC522() while(True): try: id, text = reader.read() print(id) print(text) time.sleep(1) finally: GPIO.cleanup()
16
38
0.613971
57a80709df834486c76f7b9cbc73dbe1e3308cd0
1,628
py
Python
tests/basics/with1.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
13,648
2015-01-01T01:34:51.000Z
2022-03-31T16:19:53.000Z
tests/basics/with1.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
7,092
2015-01-01T07:59:11.000Z
2022-03-31T23:52:18.000Z
tests/basics/with1.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
4,942
2015-01-02T11:48:50.000Z
2022-03-31T19:57:10.000Z
class CtxMgr: def __enter__(self): print("__enter__") return self def __exit__(self, a, b, c): print("__exit__", repr(a), repr(b)) with CtxMgr() as a: print(isinstance(a, CtxMgr)) try: with CtxMgr() as a: raise ValueError except ValueError: print("ValueError") ...
22.611111
83
0.580467
b6ecee56b03f118d4bc483b9c92853ab507def17
1,077
py
Python
networking_vpp/db/migration/alembic_migrations/versions/ocata/expand/51f8d5ee1a46_l3_plugin_for_vpp.py
fepan/networking-vpp
3032013dc78893ec1bf41537026649f4e934020c
[ "Apache-2.0" ]
1
2021-07-17T07:50:03.000Z
2021-07-17T07:50:03.000Z
networking_vpp/db/migration/alembic_migrations/versions/ocata/expand/51f8d5ee1a46_l3_plugin_for_vpp.py
fepan/networking-vpp
3032013dc78893ec1bf41537026649f4e934020c
[ "Apache-2.0" ]
null
null
null
networking_vpp/db/migration/alembic_migrations/versions/ocata/expand/51f8d5ee1a46_l3_plugin_for_vpp.py
fepan/networking-vpp
3032013dc78893ec1bf41537026649f4e934020c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Cisco Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
29.916667
78
0.707521
f946b076e325451875dd09690194581d9267cab1
7,741
py
Python
env/Lib/site-packages/plotly/graph_objs/sunburst/marker/_line.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
7
2022-01-16T12:28:16.000Z
2022-03-04T15:31:45.000Z
env/Lib/site-packages/plotly/graph_objs/sunburst/marker/_line.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
14
2021-10-20T23:33:47.000Z
2021-12-21T04:50:37.000Z
env/Lib/site-packages/plotly/graph_objs/sunburst/marker/_line.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
1
2021-11-29T22:55:05.000Z
2021-11-29T22:55:05.000Z
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "sunburst.marker" _path_str = "sunburst.marker.line" _valid_props = {"color", "colorsrc", "widt...
32.800847
86
0.547733
0bada741fe05670f463d850df05c157ef508172d
1,526
py
Python
gallery/models.py
szsu-ryerson/ImageUpload
163cc99aaf309fd46084384d47b0bfe34e1b5c2d
[ "MIT" ]
null
null
null
gallery/models.py
szsu-ryerson/ImageUpload
163cc99aaf309fd46084384d47b0bfe34e1b5c2d
[ "MIT" ]
null
null
null
gallery/models.py
szsu-ryerson/ImageUpload
163cc99aaf309fd46084384d47b0bfe34e1b5c2d
[ "MIT" ]
2
2019-06-23T00:27:58.000Z
2019-06-23T02:21:57.000Z
from gallery import app, db from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash db.create_all() class LoginUser(db.Model, UserMixin): __tablename__ = 'user' email = db.Column(db.String, primary_key=True) authenticated = db.Column(db.Boolea...
28.259259
73
0.663827
071fe37426022baeee5d74540fb0a90e6dd31178
382
py
Python
miamm/recipes/forms.py
kimond/miamm
b351ea22c1d48e1ff7012099dda1474e4658a617
[ "BSD-3-Clause" ]
2
2015-01-27T15:03:58.000Z
2015-01-27T16:29:56.000Z
miamm/recipes/forms.py
kimond/miamm
b351ea22c1d48e1ff7012099dda1474e4658a617
[ "BSD-3-Clause" ]
null
null
null
miamm/recipes/forms.py
kimond/miamm
b351ea22c1d48e1ff7012099dda1474e4658a617
[ "BSD-3-Clause" ]
null
null
null
from django import forms from recipes.models import * class RecipeIngredientForm(forms.ModelForm): class Meta: model = RecipeIngredient fields = '__all__' class StepForm(forms.ModelForm): class Meta: model = Step fields = '__all__' class RecipeForm(forms.ModelForm): cl...
18.190476
44
0.643979
1a599615125892d97bbbac367a462d63ce00a44c
7,342
py
Python
src/BPL_hotspots/src/find_bpl_hotspots.py
space-isa/get-connected-2.0
b5487ab97689e347dd30caefd01885095f8e8dff
[ "MIT" ]
null
null
null
src/BPL_hotspots/src/find_bpl_hotspots.py
space-isa/get-connected-2.0
b5487ab97689e347dd30caefd01885095f8e8dff
[ "MIT" ]
null
null
null
src/BPL_hotspots/src/find_bpl_hotspots.py
space-isa/get-connected-2.0
b5487ab97689e347dd30caefd01885095f8e8dff
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Tested with Python 3.8.6 #------------------------------------------------------------------------------ # find_bpl_hotspots.py #------------------------------------------------------------------------------ # Author: Isabel J. Rodriguez # 2021.01.23 #--------------------------------------------...
32.343612
120
0.565786
e366a72a0bf8b91fbe3d3e4ad9a1215a5a3614be
2,688
py
Python
sdk/python/pulumi_azure_nextgen/network/v20200301/get_virtual_network_gateway_advertised_routes.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20200301/get_virtual_network_gateway_advertised_routes.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20200301/get_virtual_network_gateway_advertised_routes.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
38.4
190
0.697917
622e414483684a0ef56f738ba607a731e1428ae2
445
py
Python
custom_types.py
Adman/messenger-stats
184c3a3c8915089a211d2b68a8913855558d5c66
[ "MIT" ]
6
2018-02-04T18:57:37.000Z
2020-01-11T23:32:03.000Z
custom_types.py
franeklubi/messenger-stats
3d1eb401326e79a7a84c565c62d976f0954a7d5a
[ "MIT" ]
7
2018-01-30T21:39:08.000Z
2020-09-28T04:35:41.000Z
custom_types.py
franeklubi/messenger-stats
3d1eb401326e79a7a84c565c62d976f0954a7d5a
[ "MIT" ]
3
2019-11-02T22:58:16.000Z
2020-10-28T03:42:21.000Z
import datetime from typing import NamedTuple, List Message = NamedTuple('Message', [('sender', str), ('text', str), ('created_at', datetime.datetime)]) Participants = List[str] Conversation = NamedTuple('Conversation', [('participants', Participants), ('messages', List[Message])]) NamedConversation = NamedTuple('Name...
49.444444
108
0.674157
adf144b913ec184188bbfa16110d2ad8e09863b1
1,476
py
Python
assignment1/optimizer/_base_optimizer.py
simonanez/deep-learning-cs7643
2ccd3ca336e49abe83ba6516919314db72f9bb8c
[ "MIT" ]
3
2022-01-16T14:46:57.000Z
2022-02-20T22:40:16.000Z
assignment1/optimizer/_base_optimizer.py
steven-rr/deep-learning-cs7643
2ccd3ca336e49abe83ba6516919314db72f9bb8c
[ "MIT" ]
null
null
null
assignment1/optimizer/_base_optimizer.py
steven-rr/deep-learning-cs7643
2ccd3ca336e49abe83ba6516919314db72f9bb8c
[ "MIT" ]
6
2021-09-29T11:42:37.000Z
2022-02-02T02:33:51.000Z
class _BaseOptimizer: def __init__(self, learning_rate=1e-4, reg=1e-3): self.learning_rate = learning_rate self.reg = reg def update(self, model): pass def apply_regularization(self, model): ''' Apply L2 penalty to the model. Update the gradient dictionary in the mo...
50.896552
90
0.381436
f1cb69e9959973504930eeb3dab9f3129fb6d37c
12,974
py
Python
tfx/orchestration/kubeflow/v2/step_builder_test.py
TimoKerr/tfx
10d13d57eeac21514fed73118cb43464dada67f1
[ "Apache-2.0" ]
null
null
null
tfx/orchestration/kubeflow/v2/step_builder_test.py
TimoKerr/tfx
10d13d57eeac21514fed73118cb43464dada67f1
[ "Apache-2.0" ]
null
null
null
tfx/orchestration/kubeflow/v2/step_builder_test.py
TimoKerr/tfx
10d13d57eeac21514fed73118cb43464dada67f1
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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 required by applicable law or a...
42.537705
106
0.729459
ff36f8ab0b6e6408a5d3aee7e5759437afaacd16
4,753
py
Python
rtpy/system_and_configuration.py
amitron72/rtpy
d5b71dbb6b5cb431a53e07e380624249f59218bf
[ "Apache-2.0" ]
14
2019-05-21T08:52:31.000Z
2021-05-31T00:23:36.000Z
rtpy/system_and_configuration.py
amitron72/rtpy
d5b71dbb6b5cb431a53e07e380624249f59218bf
[ "Apache-2.0" ]
3
2019-10-25T11:42:25.000Z
2020-11-16T15:34:02.000Z
rtpy/system_and_configuration.py
amitron72/rtpy
d5b71dbb6b5cb431a53e07e380624249f59218bf
[ "Apache-2.0" ]
10
2019-02-18T08:48:33.000Z
2021-06-22T09:45:00.000Z
# coding: utf-8 # Copyright (C) 2018 Orange # # This software is distributed under the terms and conditions of the 'Apache-2.0' # license which can be found in the 'LICENSE.md' file # or at 'http://www.apache.org/licenses/LICENSE-2.0'. """Functions for the SYSTEM AND CONFIGURATION REST API Methods category.""" from...
28.806061
85
0.601515
ef12fa785d1680451e8e5b3dd36427a8995cb72e
9,897
py
Python
gibolt/model.py
Kozea/gibolt
5af60ada3f611aba3d6a25d61cf060c8f71351eb
[ "MIT" ]
6
2015-04-10T21:30:41.000Z
2021-05-03T21:10:44.000Z
gibolt/model.py
Kozea/gibolt
5af60ada3f611aba3d6a25d61cf060c8f71351eb
[ "MIT" ]
138
2015-04-08T09:55:55.000Z
2021-07-27T09:41:37.000Z
gibolt/model.py
Kozea/gibolt
5af60ada3f611aba3d6a25d61cf060c8f71351eb
[ "MIT" ]
2
2015-11-01T19:05:48.000Z
2019-04-23T13:00:50.000Z
import datetime import json from sqlalchemy import ( Boolean, Column, DateTime, ForeignKey, Integer, Numeric, String, Text, TypeDecorator, UniqueConstraint, func, ) from sqlalchemy.event import listens_for from sqlalchemy.ext.declarative import declarative_base from sqlalche...
29.900302
79
0.632414
ba131c1b3e2d9d6d602c35c7bd4a775badba5b6c
667
py
Python
10_processes/code/threading_simple.py
lluxury/P_U_S_A
1eb9d1fef74f9ce3618ae950f5223f598510be84
[ "MIT" ]
null
null
null
10_processes/code/threading_simple.py
lluxury/P_U_S_A
1eb9d1fef74f9ce3618ae950f5223f598510be84
[ "MIT" ]
null
null
null
10_processes/code/threading_simple.py
lluxury/P_U_S_A
1eb9d1fef74f9ce3618ae950f5223f598510be84
[ "MIT" ]
null
null
null
#!/usr/bin/env python from threading import Thread from time import sleep import atexit from datetime import datetime class SpawnThread(Thread): """Runs threads""" count = 0 def run(self): SpawnThread.count += 1 threadnum = SpawnThread.count print "Thread %s begins at %s" % (thread...
22.233333
69
0.61919
9e85feb2cff6cf8b50eed0916bf54aca55ce83c8
489
py
Python
zoo/public/regnet/regnetx_032.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
23
2021-12-08T02:35:01.000Z
2022-03-16T02:23:19.000Z
zoo/public/regnet/regnetx_032.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
4
2021-12-23T11:31:17.000Z
2022-02-28T01:35:31.000Z
zoo/public/regnet/regnetx_032.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. from basecls.configs import RegNetConfig _cfg = dict( batch_size=64, model=dict( name="regnetx_032", ), solver=dict( basic_lr=0.05, ), model_ema=dict( enabled=True, momentum=0.99996...
20.375
58
0.621677
eda35b5ea006ff0149c27db7f170abfd00aa693f
3,350
py
Python
app/wordlists.py
fterrier/gender-decoder
62544ab317bdda1c1e97c27932890b4c68909a47
[ "MIT" ]
null
null
null
app/wordlists.py
fterrier/gender-decoder
62544ab317bdda1c1e97c27932890b4c68909a47
[ "MIT" ]
null
null
null
app/wordlists.py
fterrier/gender-decoder
62544ab317bdda1c1e97c27932890b4c68909a47
[ "MIT" ]
1
2019-01-29T14:12:19.000Z
2019-01-29T14:12:19.000Z
# These words are written as the stem to make it easier to match all variants. # In other words, the suffix is intentionally left out. feminine_coded_words = [ "agree", "affectionate", "child", "cheer", "collab", "commit", "communal", "compassion", "connect", "considerate", ...
17.005076
78
0.550149
50dcb4eb1883f0c016452aab5b2a7e61b06c7730
295
py
Python
manabi/nose_plugins.py
aehlke/manabi
1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b
[ "MIT" ]
14
2015-10-03T07:34:28.000Z
2021-09-20T07:10:29.000Z
manabi/nose_plugins.py
aehlke/manabi
1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b
[ "MIT" ]
23
2019-10-25T08:47:23.000Z
2022-01-30T02:00:45.000Z
manabi/nose_plugins.py
aehlke/manabi
1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b
[ "MIT" ]
7
2016-10-04T08:10:36.000Z
2021-09-20T07:10:33.000Z
import logging from nose.plugins import Plugin class SilenceSouth(Plugin): south_logging_level = logging.ERROR def configure(self, options, conf): super(SilenceSouth, self).configure(options, conf) logging.getLogger('south').setLevel(self.south_logging_level)
22.692308
69
0.725424
ff54134042ee87ba08752ff8bd5e3701f300040b
2,402
py
Python
algorithms/code/leetcode/lc046_permutations/lc046_permutations.py
altermarkive/training
6a13f5b2f466156ad5db0e25da0e601d2404b4c3
[ "MIT" ]
null
null
null
algorithms/code/leetcode/lc046_permutations/lc046_permutations.py
altermarkive/training
6a13f5b2f466156ad5db0e25da0e601d2404b4c3
[ "MIT" ]
1
2022-02-16T11:28:56.000Z
2022-02-16T11:28:56.000Z
algorithms/code/leetcode/lc046_permutations/lc046_permutations.py
altermarkive/training
6a13f5b2f466156ad5db0e25da0e601d2404b4c3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # https://leetcode.com/problems/permutations/ import unittest from typing import List class Solution: def __permute(self, prefix, remaining, permutations): if len(remaining) == 0: permutations.append(prefix.copy()) else: for value in remaining: ...
30.025
78
0.52373
87fe3fcee7ea293ad36fb71605f242b42ceec87d
6,415
py
Python
tests/test_distributed.py
laudv/treeck
3e4165c146f644af6387fa7f890ad93d1ca84d11
[ "Apache-2.0" ]
4
2020-02-03T20:03:32.000Z
2020-03-29T16:07:53.000Z
tests/test_distributed.py
laudv/treeck
3e4165c146f644af6387fa7f890ad93d1ca84d11
[ "Apache-2.0" ]
null
null
null
tests/test_distributed.py
laudv/treeck
3e4165c146f644af6387fa7f890ad93d1ca84d11
[ "Apache-2.0" ]
null
null
null
#import matplotlib.pyplot as plt import unittest, json import numpy as np import z3 import importlib import treeck from treeck import * from treeck.verifier import Verifier from treeck.z3backend import Z3Backend as Backend from treeck.distributed import DistributedVerifier, VerifierFactory from dask.distributed impor...
38.413174
93
0.535776
e87385161c0508778bb45a297c96982984bdcb39
1,832
py
Python
benchmark/startPyquil2749.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil2749.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil2749.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=37 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(3) # number=31 prog...
25.09589
64
0.563865
9b374f19d3465e613217bdf5165031584a57a296
9,272
py
Python
emaileasily/emaileasily.py
erastusnzula/easy-email
3eceb871e5cee6c123e32010b0ef3ede1048684c
[ "MIT" ]
null
null
null
emaileasily/emaileasily.py
erastusnzula/easy-email
3eceb871e5cee6c123e32010b0ef3ede1048684c
[ "MIT" ]
null
null
null
emaileasily/emaileasily.py
erastusnzula/easy-email
3eceb871e5cee6c123e32010b0ef3ede1048684c
[ "MIT" ]
null
null
null
""" Author: Erastus Nzula. Licence: MIT. Description: A simplified way to send and read emails. Contribution status: open. """ import email import imaplib import os import smtplib import socket import webbrowser from email.header import decode_header from email.message import EmailMessage from tkinter.filedialog impor...
30.5
104
0.652286
71ab76621233ea2662b083f8b086e87608f006c1
3,287
py
Python
setup.py
eddiejessup/nestler
f42dfb4132dd94e1166c4a96afad77c825319282
[ "MIT" ]
null
null
null
setup.py
eddiejessup/nestler
f42dfb4132dd94e1166c4a96afad77c825319282
[ "MIT" ]
null
null
null
setup.py
eddiejessup/nestler
f42dfb4132dd94e1166c4a96afad77c825319282
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='nestler', version='0.1.0', description='Generate reports from ...
33.886598
94
0.654092
718857f5299955fba696766cc102fdc881e9ddf9
1,312
py
Python
optimization_work/distributed_solution.py
pghartig/Power-Control
c23613b74c9fe1a1ecd6d415f5bf0cb625920661
[ "MIT" ]
7
2020-04-19T01:58:47.000Z
2022-03-24T02:24:23.000Z
optimization_work/distributed_solution.py
pghartig/Power-Control
c23613b74c9fe1a1ecd6d415f5bf0cb625920661
[ "MIT" ]
null
null
null
optimization_work/distributed_solution.py
pghartig/Power-Control
c23613b74c9fe1a1ecd6d415f5bf0cb625920661
[ "MIT" ]
3
2021-03-21T12:34:11.000Z
2021-08-15T17:23:48.000Z
from network_simulations import het_net import cvxpy as cp import matplotlib.pyplot as plt import numpy as np import copy """ first setup the network according using the het_net class then consolidate all of the information from the network to solve the central optimization problem """ def test_dist_optimization(): ...
32
156
0.724848
76185f73eae7962a02b011b6b084ac810596b874
1,458
py
Python
src/backend/migrations/versions/20191221_164504_881811805554_.py
zackramjan/motuz
892252eb50acbd8135bf9df9872df5e4cfe6277b
[ "MIT" ]
84
2019-05-10T14:56:48.000Z
2022-03-19T17:07:24.000Z
src/backend/migrations/versions/20191221_164504_881811805554_.py
zackramjan/motuz
892252eb50acbd8135bf9df9872df5e4cfe6277b
[ "MIT" ]
226
2019-05-28T21:59:22.000Z
2022-03-09T10:58:24.000Z
src/backend/migrations/versions/20191221_164504_881811805554_.py
zackramjan/motuz
892252eb50acbd8135bf9df9872df5e4cfe6277b
[ "MIT" ]
16
2019-09-27T01:35:49.000Z
2022-03-08T16:18:50.000Z
"""empty message Revision ID: 881811805554 Revises: 1035b06e75e0 Create Date: 2019-12-21 16:45:04.180704 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '881811805554' down_revision = '1035b06e75e0' branch_labels = None...
32.4
93
0.70096
ec7d21490f4fcd547b34ea57e4f55f9201d5feef
3,773
py
Python
cuml_bench/knn_clsf.py
KalyanovD/scikit-learn_bench
13f05203e3c62fe576c91a897d576c32e2c3e50a
[ "Apache-2.0" ]
59
2019-06-13T18:25:55.000Z
2022-03-28T19:33:23.000Z
cuml_bench/knn_clsf.py
KalyanovD/scikit-learn_bench
13f05203e3c62fe576c91a897d576c32e2c3e50a
[ "Apache-2.0" ]
45
2018-10-10T16:17:21.000Z
2022-03-25T16:00:58.000Z
cuml_bench/knn_clsf.py
KalyanovD/scikit-learn_bench
13f05203e3c62fe576c91a897d576c32e2c3e50a
[ "Apache-2.0" ]
38
2018-10-08T17:07:25.000Z
2021-11-10T06:29:37.000Z
# =============================================================================== # Copyright 2020-2021 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:/...
46.580247
82
0.588126
d056cf255e6503787ab3973175c14d8327b8ca04
13,869
py
Python
rllib/agents/impala/vtrace_tf_policy.py
daobook/ray
af9f1ef4dc160e0671206556b387f8017f3c3930
[ "Apache-2.0" ]
33
2020-05-27T14:25:24.000Z
2022-03-22T06:11:30.000Z
rllib/agents/impala/vtrace_tf_policy.py
daobook/ray
af9f1ef4dc160e0671206556b387f8017f3c3930
[ "Apache-2.0" ]
227
2021-10-01T08:00:01.000Z
2021-12-28T16:47:26.000Z
rllib/agents/impala/vtrace_tf_policy.py
gramhagen/ray
c18caa4db36d466718bdbcb2229aa0b2dc03da1f
[ "Apache-2.0" ]
5
2020-08-06T15:53:07.000Z
2022-02-09T03:31:31.000Z
"""Adapted from A3CTFPolicy to add V-trace. Keep in sync with changes to A3CTFPolicy and VtraceSurrogatePolicy.""" import numpy as np import logging import gym import ray from ray.rllib.agents.impala import vtrace_tf as vtrace from ray.rllib.models.tf.tf_action_dist import Categorical from ray.rllib.policy.sample_ba...
39.739255
79
0.632562
ee27a6750b5d0433b2dfd4e2fad2450de84a3fb4
1,713
py
Python
predict.py
Dr-Awkward/UdacityImageClassifier
7daf65f62c0bd8e23467472e4bea18fbd1323636
[ "MIT" ]
null
null
null
predict.py
Dr-Awkward/UdacityImageClassifier
7daf65f62c0bd8e23467472e4bea18fbd1323636
[ "MIT" ]
null
null
null
predict.py
Dr-Awkward/UdacityImageClassifier
7daf65f62c0bd8e23467472e4bea18fbd1323636
[ "MIT" ]
null
null
null
import nnModel import torchvision from torchvision import datasets, transforms, models import helpers.JsonLoader import argparse ####################################################### # Load a saved model and predict a flower image # 1. Get the directory to the image that we will infer on # 2. Get the directory to t...
38.066667
93
0.71045
964dac6a052ed1b2db006714c7503b972ee6a0cf
2,040
py
Python
tests/zquantum/core/history/artifact_storage_test.py
alexjuda2/z-quantum-core
c258100dbd091f0b22495b77b36399426ae9abac
[ "Apache-2.0" ]
24
2020-04-15T17:36:59.000Z
2022-01-25T05:02:14.000Z
tests/zquantum/core/history/artifact_storage_test.py
alexjuda2/z-quantum-core
c258100dbd091f0b22495b77b36399426ae9abac
[ "Apache-2.0" ]
177
2020-04-23T15:19:59.000Z
2022-03-30T18:06:17.000Z
tests/zquantum/core/history/artifact_storage_test.py
alexjuda2/z-quantum-core
c258100dbd091f0b22495b77b36399426ae9abac
[ "Apache-2.0" ]
19
2020-06-24T10:56:02.000Z
2021-09-30T13:02:21.000Z
"""Test cases for storing artifacts and recording functions that store them.""" import numpy as np import pytest from zquantum.core.history.example_functions import Function5, function_3, function_4 from zquantum.core.history.recorder import ArtifactCollection, recorder, store_artifact from zquantum.core.history.save_c...
34.576271
87
0.657353
f6ca6423fa22d1a1f2c1bed5c669e5caa674f5d6
48,740
py
Python
nebula2_fork/graph/ttypes.py
linzhiming0826/nebula-python
0c508aa9780981c1fef2bf826d624a69ca2c64b0
[ "Apache-2.0" ]
null
null
null
nebula2_fork/graph/ttypes.py
linzhiming0826/nebula-python
0c508aa9780981c1fef2bf826d624a69ca2c64b0
[ "Apache-2.0" ]
null
null
null
nebula2_fork/graph/ttypes.py
linzhiming0826/nebula-python
0c508aa9780981c1fef2bf826d624a69ca2c64b0
[ "Apache-2.0" ]
null
null
null
# # Autogenerated by Thrift # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @generated # from __future__ import absolute_import import six import sys from nebula2_fork.fbthrift.util.Recursive import fix_spec from nebula2_fork.fbthrift.Thrift import TType, TMessageType, TPriority, TRequestContex...
40.01642
339
0.693086
7f8e0825b399905383ed05229e29b275f4aba6d9
5,848
py
Python
maxipago/managers/payment/recurring.py
joma-s/maxipago-sdk-python
16428e6aca78a18a4e2bf4e2b48cab1bc65177be
[ "MIT" ]
null
null
null
maxipago/managers/payment/recurring.py
joma-s/maxipago-sdk-python
16428e6aca78a18a4e2bf4e2b48cab1bc65177be
[ "MIT" ]
null
null
null
maxipago/managers/payment/recurring.py
joma-s/maxipago-sdk-python
16428e6aca78a18a4e2bf4e2b48cab1bc65177be
[ "MIT" ]
1
2021-10-20T19:27:49.000Z
2021-10-20T19:27:49.000Z
# coding: utf-8 from maxipago.managers.base import ManagerTransaction, ManagerApi from maxipago.requesters.payment import PaymentRecurringRequester from maxipago.resources.payment import PaymentResource from maxipago.resources.recurring import CancelResource, EditResource class PaymentRecurringManager(ManagerTransacti...
62.88172
120
0.654412
e0d42391efe5d36f64510ec6d3785e8194a32107
1,659
py
Python
thirdparty/instant-meshes/instant-meshes-dust3d/ext/nanogui/ext/pybind11/tests/test_operator_overloading.py
MelvinG24/dust3d
c4936fd900a9a48220ebb811dfeaea0effbae3ee
[ "MIT" ]
2,392
2016-12-17T14:14:12.000Z
2022-03-30T19:40:40.000Z
thirdparty/instant-meshes/instant-meshes-dust3d/ext/nanogui/ext/pybind11/tests/test_operator_overloading.py
MelvinG24/dust3d
c4936fd900a9a48220ebb811dfeaea0effbae3ee
[ "MIT" ]
106
2018-04-19T17:47:31.000Z
2022-03-01T19:44:11.000Z
thirdparty/instant-meshes/instant-meshes-dust3d/ext/nanogui/ext/pybind11/tests/test_operator_overloading.py
MelvinG24/dust3d
c4936fd900a9a48220ebb811dfeaea0effbae3ee
[ "MIT" ]
184
2017-11-15T09:55:37.000Z
2022-02-21T16:30:46.000Z
def test_operator_overloading(): from pybind11_tests import Vector2, Vector, ConstructorStats v1 = Vector2(1, 2) v2 = Vector(3, -1) assert str(v1) == "[1.000000, 2.000000]" assert str(v2) == "[3.000000, -1.000000]" assert str(v1 + v2) == "[4.000000, 1.000000]" assert str(v1 - v2) == "[-2....
39.5
81
0.537071
32d052655d26bf77f38daaa518d73819c6bf557a
1,486
py
Python
util/credits.py
jessescn/ControleAcademico
496cb6b40ca894cecff1f8966dbf0389be392095
[ "MIT" ]
8
2019-09-25T18:24:24.000Z
2021-02-28T02:59:17.000Z
util/credits.py
jessescn/ControleAcademico
496cb6b40ca894cecff1f8966dbf0389be392095
[ "MIT" ]
14
2019-09-19T17:13:48.000Z
2021-03-31T19:42:06.000Z
util/credits.py
jessescn/ControleAcademico
496cb6b40ca894cecff1f8966dbf0389be392095
[ "MIT" ]
2
2019-10-02T19:07:00.000Z
2019-10-19T19:36:41.000Z
import re from functools import reduce def print_credits(subjects): subjects = list(filter(approved, subjects)) mandatory = get_mandatory(subjects) genaral_opt = get_general_optative(subjects) specific_opt = get_specific_optative(subjects) print(" Créditos\n") print("Obrigatór...
33.022222
84
0.701884
082f046cbde749565b175802b98002bc565747b1
372
py
Python
Mini/newBase64.py
pjx206/PythonLearning
e00d5ceff36295adc15642d76f257120315f8941
[ "MIT" ]
null
null
null
Mini/newBase64.py
pjx206/PythonLearning
e00d5ceff36295adc15642d76f257120315f8941
[ "MIT" ]
null
null
null
Mini/newBase64.py
pjx206/PythonLearning
e00d5ceff36295adc15642d76f257120315f8941
[ "MIT" ]
null
null
null
import base64 stdtable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' def decode_str(s, table): global stdtable transtab = str.maketrans(table, stdtable) s = s.translate(transtab) return base64.b64decode(bytes(s, encoding='ascii')) def main(): print(decode_str('ywjJza=...
20.666667
77
0.704301
54f0631d7e92c3315efc013a924bf59dd75cf501
12,169
py
Python
lib/tool_shed/test/functional/test_0410_repository_component_review_access_control.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
lib/tool_shed/test/functional/test_0410_repository_component_review_access_control.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
lib/tool_shed/test/functional/test_0410_repository_component_review_access_control.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
from ..base.twilltestcase import common, ShedTwillTestCase repository_name = 'filtering_0410' repository_description = 'Galaxy filtering tool for test 0410' repository_long_description = 'Long description of Galaxy filtering tool for test 0410' ''' 1. Create a repository in the tool shed owned by test_user_1. 2. Have...
63.712042
162
0.689046
ece08db469b8b7b561c4451ec360e88729a13e65
1,314
py
Python
flask_service/tests/test_swagger.py
mwprog/atomist-flask-microservice
65a18a0f149bf30af3cb5f9eb0818aa784901ade
[ "Apache-2.0" ]
null
null
null
flask_service/tests/test_swagger.py
mwprog/atomist-flask-microservice
65a18a0f149bf30af3cb5f9eb0818aa784901ade
[ "Apache-2.0" ]
6
2018-06-06T20:00:46.000Z
2018-06-08T14:19:55.000Z
flask_service/tests/test_swagger.py
mwprog/atomist-flask-microservice
65a18a0f149bf30af3cb5f9eb0818aa784901ade
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from flask_service.swagger import spec from flask_service import __version__ def test_document_meta(): api = spec.to_dict() assert api['info']['title'] == 'flask_service' assert api['info']['version'] == __version__ assert api['info']['description'] == 'My application' def te...
36.5
83
0.617199
424f257e072dc59501f85a31fa24fc892b213eff
51
py
Python
tlp/django_app/oscar_apps/promotions/admin.py
munisisazade/create-django-app
f62395af2adaacacc4d3a3857c6570c9647d13a1
[ "MIT" ]
14
2018-01-08T12:50:10.000Z
2021-12-26T18:38:14.000Z
tlp/django_app/oscar_apps/promotions/admin.py
munisisazade/create-django-app
f62395af2adaacacc4d3a3857c6570c9647d13a1
[ "MIT" ]
10
2018-03-01T14:17:05.000Z
2022-03-11T23:26:11.000Z
tlp/django_app/oscar_apps/promotions/admin.py
munisisazade/create-django-app
f62395af2adaacacc4d3a3857c6570c9647d13a1
[ "MIT" ]
4
2019-04-09T17:29:34.000Z
2020-06-07T14:46:23.000Z
from oscar.apps.promotions.admin import * # noqa
17
49
0.745098
8e64e54226fd48e478c3ace52062c9a4fabb648d
1,272
py
Python
config.py
pubggamerzytm/Telegram-Airdrop-Bot
f94bc81a39528794c389b9528b913e59bf3acca4
[ "MIT" ]
null
null
null
config.py
pubggamerzytm/Telegram-Airdrop-Bot
f94bc81a39528794c389b9528b913e59bf3acca4
[ "MIT" ]
null
null
null
config.py
pubggamerzytm/Telegram-Airdrop-Bot
f94bc81a39528794c389b9528b913e59bf3acca4
[ "MIT" ]
null
null
null
# --------------------------------------------- # # Plugin Name : TelegramAirdropBot # # Author Name : vsnz # # File Name : config.py # # --------------------------------------------- # # Enable / disable the airdrop airdrop_live = True # Telegram token ...
47.111111
129
0.568396
ae11e1243cb53f5f42b6ff89be2e7f16c453990c
23,983
py
Python
scripts/momentum-budget.py
jenfly/monsoon-onset
6d8651a337daa174960e716d378292452db77246
[ "MIT" ]
3
2016-10-22T07:11:46.000Z
2021-05-23T12:21:21.000Z
scripts/momentum-budget.py
jenfly/monsoon-onset
6d8651a337daa174960e716d378292452db77246
[ "MIT" ]
1
2022-02-23T08:28:52.000Z
2022-02-23T08:28:52.000Z
scripts/momentum-budget.py
jenfly/monsoon-onset
6d8651a337daa174960e716d378292452db77246
[ "MIT" ]
2
2017-05-25T02:45:53.000Z
2021-08-07T09:30:02.000Z
import sys sys.path.append('/home/jwalker/dynamics/python/atmos-tools') sys.path.append('/home/jwalker/dynamics/python/atmos-read') import numpy as np import xarray as xray import pandas as pd import matplotlib.pyplot as plt import matplotlib as mpl import collections import atmos as atm import merra import indices i...
36.896923
83
0.562315
b32e27cbd86ecb26002c422478e64cd189ca3599
3,428
py
Python
src/urh/controller/SpectrumDialogController.py
awesome-archive/urh
c8c3aabc9d637ca660d8c72c3d8372055e0f3ec7
[ "Apache-2.0" ]
null
null
null
src/urh/controller/SpectrumDialogController.py
awesome-archive/urh
c8c3aabc9d637ca660d8c72c3d8372055e0f3ec7
[ "Apache-2.0" ]
null
null
null
src/urh/controller/SpectrumDialogController.py
awesome-archive/urh
c8c3aabc9d637ca660d8c72c3d8372055e0f3ec7
[ "Apache-2.0" ]
null
null
null
from PyQt5.QtCore import pyqtSlot from urh.FFTSceneManager import FFTSceneManager from urh.controller.SendRecvDialogController import SendRecvDialogController from urh.dev.VirtualDevice import VirtualDevice, Mode from urh.plugins.NetworkSDRInterface.NetworkSDRInterfacePlugin import NetworkSDRInterfacePlugin class Sp...
37.67033
107
0.672695
127485b72707708fecb395d8a73d7ab032cda0c1
1,580
py
Python
src/conll/ProcessConllFormat.py
vikasbahirwani/SequenceTagging
b4e0dc2a71f869a27ada003c9276fd1f269e230d
[ "Apache-2.0" ]
null
null
null
src/conll/ProcessConllFormat.py
vikasbahirwani/SequenceTagging
b4e0dc2a71f869a27ada003c9276fd1f269e230d
[ "Apache-2.0" ]
null
null
null
src/conll/ProcessConllFormat.py
vikasbahirwani/SequenceTagging
b4e0dc2a71f869a27ada003c9276fd1f269e230d
[ "Apache-2.0" ]
null
null
null
__author__ = "Vikas Bahirwani" DATADIR = "../../data/conll" from pathlib import Path def convertToSentences(conll_filename): with Path(conll_filename).open('r') as f: words = [] pos_tags = [] chunk_tags = [] ner_tags = [] for i, line in enumerate(f): if line !...
35.111111
107
0.525316
eeaa3f2ccbf9e024379137b6319c2582d30e5277
19,891
py
Python
concept_formation/structure_mapper.py
ThomasHoppe/concept_formation
2468fea78ba46804bf44228519eb33ebc5780d31
[ "MIT" ]
47
2015-06-08T20:34:18.000Z
2021-09-26T17:59:06.000Z
concept_formation/structure_mapper.py
ThomasHoppe/concept_formation
2468fea78ba46804bf44228519eb33ebc5780d31
[ "MIT" ]
65
2015-07-27T18:16:31.000Z
2021-10-04T14:02:51.000Z
concept_formation/structure_mapper.py
ThomasHoppe/concept_formation
2468fea78ba46804bf44228519eb33ebc5780d31
[ "MIT" ]
13
2015-07-27T13:27:03.000Z
2022-03-15T02:18:10.000Z
""" This module contains the :class:`StructureMapper<concept_formation.structure_mapper.StructureMapper>` class which is used rename variable attributes it improve the category utility on instances. It is an instance of a :class:`preprocessor<concept_formation.preprocessor.Preprocessor>` with a :func:`transform` and :...
36.099819
79
0.613896
f184ff2b8cb318f713241ef5bd309aed1f147681
1,847
py
Python
battery.py
xenbyte/i3blocks-battery
63d890a5983febb48f87c4778564f04878c7e767
[ "MIT" ]
null
null
null
battery.py
xenbyte/i3blocks-battery
63d890a5983febb48f87c4778564f04878c7e767
[ "MIT" ]
null
null
null
battery.py
xenbyte/i3blocks-battery
63d890a5983febb48f87c4778564f04878c7e767
[ "MIT" ]
1
2018-09-06T05:52:05.000Z
2018-09-06T05:52:05.000Z
#!/usr/bin/env python3 import subprocess battery = subprocess.check_output(["acpi"], universal_newlines=True) if not battery: output = '<span font="FontAwesome" color="#fff">\f12a Error</span>' else: battery_information = battery.split("\n")[0].split(", ") state = battery_information[0].split(":")[1] ...
29.790323
140
0.537087
46fb6a0c92cf540ff01c051570736f0d412e859e
1,315
py
Python
api_version.py
AinsteinAI/wayv_air_api
dcda0ada9801ecc18f06cdcf5588b4a599dae327
[ "MIT" ]
1
2021-05-14T17:29:31.000Z
2021-05-14T17:29:31.000Z
api_version.py
AinsteinAI/wayv_air_api
dcda0ada9801ecc18f06cdcf5588b4a599dae327
[ "MIT" ]
1
2021-05-26T13:27:33.000Z
2021-05-26T14:56:53.000Z
api_version.py
AinsteinAI/wayv_air_api
dcda0ada9801ecc18f06cdcf5588b4a599dae327
[ "MIT" ]
null
null
null
''' api_version.py Copyright 2020, Ainstein Inc. All Rights Reserved 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 3 of the License, or (at your option) any later version. This pr...
37.571429
84
0.739924
a85104da172675d057533dfd154feae3347f1d7c
3,236
py
Python
configs/recognition/tsm/tsm_nl_dot_product_r50_1x1x8_50e_kinetics400_rgb.py
Naoki-Wake/mmaction2
a2032605db82509744a18d993c94a06feb1efd15
[ "Apache-2.0" ]
648
2021-06-24T19:33:09.000Z
2022-03-31T06:27:24.000Z
configs/recognition/tsm/tsm_nl_dot_product_r50_1x1x8_50e_kinetics400_rgb.py
jayleicn/mmaction2-1
0a6fde1abb8403f1f68b568f5b4694c6f828e27e
[ "Apache-2.0" ]
53
2021-07-01T03:07:52.000Z
2022-03-27T16:15:29.000Z
configs/recognition/tsm/tsm_nl_dot_product_r50_1x1x8_50e_kinetics400_rgb.py
jayleicn/mmaction2-1
0a6fde1abb8403f1f68b568f5b4694c6f828e27e
[ "Apache-2.0" ]
117
2021-06-25T01:22:32.000Z
2022-03-31T08:33:55.000Z
_base_ = [ '../../_base_/models/tsm_r50.py', '../../_base_/schedules/sgd_tsm_50e.py', '../../_base_/default_runtime.py' ] # model settings model = dict( backbone=dict( non_local=((0, 0, 0), (1, 0, 1, 0), (1, 0, 1, 0, 1, 0), (0, 0, 0)), non_local_cfg=dict( sub_sample=True, ...
33.020408
78
0.637824
379f320cc8d5231addd140113393c1e4c9758dbd
7,335
py
Python
neural_compressor/ux/utils/workload/tuning.py
intel/neural-compressor
16a4a12045fcb468da4d33769aff2c1a5e2ba6ba
[ "Apache-2.0" ]
172
2021-09-14T18:34:17.000Z
2022-03-30T06:49:53.000Z
neural_compressor/ux/utils/workload/tuning.py
intel/lp-opt-tool
130eefa3586b38df6c0ff78cc8807ae273f6a63f
[ "Apache-2.0" ]
40
2021-09-14T02:26:12.000Z
2022-03-29T08:34:04.000Z
neural_compressor/ux/utils/workload/tuning.py
intel/neural-compressor
16a4a12045fcb468da4d33769aff2c1a5e2ba6ba
[ "Apache-2.0" ]
33
2021-09-15T07:27:25.000Z
2022-03-25T08:30:57.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021-2022 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 app...
35.780488
99
0.626994
c134de5205ad1bff48d4c2ab82d27fd640743916
3,239
py
Python
icees_api/trapi.py
davefol/icees-api
d2eb26a29f319efd56ad5216e661fa9ed62407b0
[ "MIT" ]
null
null
null
icees_api/trapi.py
davefol/icees-api
d2eb26a29f319efd56ad5216e661fa9ed62407b0
[ "MIT" ]
null
null
null
icees_api/trapi.py
davefol/icees-api
d2eb26a29f319efd56ad5216e661fa9ed62407b0
[ "MIT" ]
null
null
null
"""TRAPI FastAPI wrapper.""" import os from typing import Any, Dict, List, Optional from fastapi import FastAPI from fastapi.openapi.utils import get_openapi from starlette.middleware.cors import CORSMiddleware class TRAPI(FastAPI): """Translator Reasoner API - wrapper for FastAPI.""" required_tags = [ ...
34.094737
155
0.590923
ea7ac069b2fffdf21d2f341b488415c31c9e9888
7,650
py
Python
dynamix/correlator/cuda.py
kif/dynamix
163323ccb083bb069d88f3b51c0dfb3141f5fd37
[ "MIT" ]
3
2021-01-12T05:46:51.000Z
2021-04-13T15:05:42.000Z
dynamix/correlator/cuda.py
kif/dynamix
163323ccb083bb069d88f3b51c0dfb3141f5fd37
[ "MIT" ]
18
2019-08-23T08:42:36.000Z
2021-09-13T15:14:38.000Z
dynamix/correlator/cuda.py
kif/dynamix
163323ccb083bb069d88f3b51c0dfb3141f5fd37
[ "MIT" ]
6
2019-08-01T12:10:52.000Z
2021-12-09T14:55:02.000Z
import numpy as np from ..utils import nextpow2, updiv, get_next_power from .dense import MatMulCorrelator, FFTCorrelator try: from silx.math.fft.cufft import CUFFT import pycuda.gpuarray as garray from pycuda.compiler import SourceModule from pycuda.driver import Memcpy2D, Memcpy3D except ImportError:...
34.615385
91
0.597255
c8c2b1b8bb4f2e19ccaf5e090680b1f272e2a475
4,780
py
Python
libartipy/IO/input_output.py
Artisense-ai/libartipy
7a6a7736637c106e7e9c6763ec8c1dea64db4b01
[ "MIT" ]
5
2021-06-15T13:01:51.000Z
2021-12-04T04:26:08.000Z
libartipy/IO/input_output.py
Artisense-ai/libartipy
7a6a7736637c106e7e9c6763ec8c1dea64db4b01
[ "MIT" ]
null
null
null
libartipy/IO/input_output.py
Artisense-ai/libartipy
7a6a7736637c106e7e9c6763ec8c1dea64db4b01
[ "MIT" ]
3
2021-06-18T10:37:04.000Z
2021-11-15T05:55:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Dedicated to reading/writing to files. # Author Dmytro Bobkov, 2019 import argparse import os from typing import List, Tuple, Any import matplotlib.pyplot as plt import numpy as np import cv2 def get_timestamp_from_keyframe_filename(filename: str) -> int: """ ...
29.325153
109
0.683264
c4c8a4bc92dde7a48dfda4091995c104303397a4
2,456
py
Python
launcher/config.py
jt6562/XX-Net
7b78e4820a3c78c3ba3e75b3917129d17f00e9fc
[ "BSD-2-Clause" ]
2
2021-07-09T03:41:31.000Z
2021-10-04T17:54:36.000Z
launcher/config.py
jt6562/XX-Net
7b78e4820a3c78c3ba3e75b3917129d17f00e9fc
[ "BSD-2-Clause" ]
null
null
null
launcher/config.py
jt6562/XX-Net
7b78e4820a3c78c3ba3e75b3917129d17f00e9fc
[ "BSD-2-Clause" ]
1
2019-06-13T06:33:37.000Z
2019-06-13T06:33:37.000Z
import os from instances import xlog import yaml from distutils.version import LooseVersion current_path = os.path.dirname(os.path.abspath(__file__)) root_path = os.path.abspath( os.path.join(current_path, os.pardir)) data_path = os.path.join(root_path, 'data') config_path = os.path.join(data_path, 'launcher', 'conf...
25.319588
67
0.585098
82819dface5824078c96fbef0e10da078e11e5b2
11,987
py
Python
vumi/transports/mtech_ussd/tests/test_mtech_ussd.py
apopheniac/vumi
e04bf32a0cf09292f03dfe8628798adff512b709
[ "BSD-3-Clause" ]
null
null
null
vumi/transports/mtech_ussd/tests/test_mtech_ussd.py
apopheniac/vumi
e04bf32a0cf09292f03dfe8628798adff512b709
[ "BSD-3-Clause" ]
null
null
null
vumi/transports/mtech_ussd/tests/test_mtech_ussd.py
apopheniac/vumi
e04bf32a0cf09292f03dfe8628798adff512b709
[ "BSD-3-Clause" ]
null
null
null
from twisted.internet.defer import inlineCallbacks from twisted.trial.unittest import TestCase from vumi.transports.tests.utils import TransportTestCase from vumi.utils import http_request_full from vumi.message import TransportUserMessage from vumi.transports.mtech_ussd import MtechUssdTransport from vumi.transports....
39.301639
79
0.586719
e60c91968a1fb9fa82bc36be22677bc037376821
2,320
py
Python
tests/test_integration_unet_2d.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
3
2020-06-22T20:59:14.000Z
2021-04-09T21:24:45.000Z
tests/test_integration_unet_2d.py
scf819/MONAI
2fef7ff5c064a9ff6b6d6b4f2323180afed99934
[ "Apache-2.0" ]
null
null
null
tests/test_integration_unet_2d.py
scf819/MONAI
2fef7ff5c064a9ff6b6d6b4f2323180afed99934
[ "Apache-2.0" ]
1
2020-06-22T19:22:59.000Z
2020-06-22T19:22:59.000Z
# Copyright (c) MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
35.692308
118
0.705603