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
231fd77087bf5102bd7314a9822c5d40c1d988dc
3,194
py
Python
pre_processing/minio_args_poster.py
archital/perfgun
f814a40bc50e64879f2cb5fe2312e1f22817ec65
[ "Apache-2.0" ]
null
null
null
pre_processing/minio_args_poster.py
archital/perfgun
f814a40bc50e64879f2cb5fe2312e1f22817ec65
[ "Apache-2.0" ]
null
null
null
pre_processing/minio_args_poster.py
archital/perfgun
f814a40bc50e64879f2cb5fe2312e1f22817ec65
[ "Apache-2.0" ]
null
null
null
import argparse import json import requests from os import environ import shutil DATA_FOR_POST_PROCESSING_FOLDER = "/tmp/data_for_post_processing/" def get_args(): parser = argparse.ArgumentParser(description='Simlog parser.') parser.add_argument("-t", "--type", help="Test type.") parser.add_argument("-...
50.698413
116
0.663745
666820acb34bc9a899f30c99d0f94570e2e71236
3,482
py
Python
Sandbox/.ycm_extra_conf.py
noidawt/AulysEngine
6e4a6482961fc27e48342d4767f2d075869b1abf
[ "MIT" ]
1
2020-09-28T10:04:02.000Z
2020-09-28T10:04:02.000Z
Sandbox/.ycm_extra_conf.py
noidawt/AulysEngine
6e4a6482961fc27e48342d4767f2d075869b1abf
[ "MIT" ]
null
null
null
Sandbox/.ycm_extra_conf.py
noidawt/AulysEngine
6e4a6482961fc27e48342d4767f2d075869b1abf
[ "MIT" ]
null
null
null
import os import ycm_core from clang_helpers import PrepareClangFlags def DirectoryOfThisScript(): #return os.path.dirname(os.path.abspath(__file__)) #print(os.path.join(os.path.dirname(os.path.abspath(__file__)), # "export-compile-commands/debug/")) return os.path.join(os.path.dirname(os.path.abs...
30.814159
102
0.690408
249d09c91411708583bb718472c7917117b49761
14,634
py
Python
lib/galaxy/tool_util/deps/mulled/mulled_search.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
1
2021-05-18T02:20:43.000Z
2021-05-18T02:20:43.000Z
lib/galaxy/tool_util/deps/mulled/mulled_search.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/tool_util/deps/mulled/mulled_search.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python import argparse import json import logging import sys import tempfile import requests from .mulled_list import get_singularity_containers from .util import build_target, v2_image_name try: from conda.cli.python_api import run_command except ImportError: run_command = None # type: igno...
39.444744
158
0.617876
40f8408d07c7c370a6866a6361e2b728cd6edce0
824
py
Python
sample/sample_application/urls.py
2000charge/ap-python-sdk
ae96737b8021f5d2816ce73dd370544675e6b55d
[ "MIT" ]
null
null
null
sample/sample_application/urls.py
2000charge/ap-python-sdk
ae96737b8021f5d2816ce73dd370544675e6b55d
[ "MIT" ]
null
null
null
sample/sample_application/urls.py
2000charge/ap-python-sdk
ae96737b8021f5d2816ce73dd370544675e6b55d
[ "MIT" ]
null
null
null
"""sample_application URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home...
35.826087
79
0.700243
dce3f4c749099b7b8fe4881d65321643fd402174
8,515
py
Python
course/views.py
Nuclear-Smile/ClassSelectionManageSystem
c457716307a35f5d9742627114129688ae25513a
[ "MIT" ]
11
2021-01-13T05:12:24.000Z
2022-03-17T16:29:30.000Z
course/views.py
Nuclear-Smile/ClassSelectionManageSystem
c457716307a35f5d9742627114129688ae25513a
[ "MIT" ]
1
2021-04-21T04:16:11.000Z
2021-04-21T04:17:14.000Z
course/views.py
Nuclear-Smile/ClassSelectionManageSystem
c457716307a35f5d9742627114129688ae25513a
[ "MIT" ]
4
2021-04-26T02:35:49.000Z
2021-12-12T09:28:23.000Z
from django.http.response import HttpResponse from django.shortcuts import render, reverse, redirect from django.db.models import Q from constants import INVALID_KIND, INVALID_REQUEST_METHOD, ILLEGAL_KIND from course.forms import CourseForm, ScheduleForm from course.models import Course, StudentCourse, Schedule from u...
29.463668
113
0.601174
4a9d291f33e80fdfdf0da6fa2932307fbabc46bc
40,336
py
Python
vyper/parser/expr.py
olwee/vyper
b532e6e3b8a6912baad20f8cae5e4429b6e6c76b
[ "MIT" ]
null
null
null
vyper/parser/expr.py
olwee/vyper
b532e6e3b8a6912baad20f8cae5e4429b6e6c76b
[ "MIT" ]
null
null
null
vyper/parser/expr.py
olwee/vyper
b532e6e3b8a6912baad20f8cae5e4429b6e6c76b
[ "MIT" ]
null
null
null
import ast from vyper.exceptions import ( InvalidLiteralException, NonPayableViolationException, StructureException, TypeMismatchException, VariableDeclarationException, ParserException ) from vyper.parser.lll_node import LLLnode from vyper.parser import self_call from vyper.parser.parser_utils...
53.781333
178
0.60058
cbd7a023e962af89cdd692b963f3fa1309d708c6
1,765
py
Python
lord_gym/envs/actions.py
tonkolviktor/lord-gym
ca0e2f01e28581a3a62ae7d37fa24e729edcae6e
[ "Apache-2.0" ]
null
null
null
lord_gym/envs/actions.py
tonkolviktor/lord-gym
ca0e2f01e28581a3a62ae7d37fa24e729edcae6e
[ "Apache-2.0" ]
null
null
null
lord_gym/envs/actions.py
tonkolviktor/lord-gym
ca0e2f01e28581a3a62ae7d37fa24e729edcae6e
[ "Apache-2.0" ]
null
null
null
import logging from functools import reduce from gym import spaces from lord_gym.envs.game import Player from lord_gym.envs.objects import IdleCitizen, WoodsMan, StoneMan, IronMan logger = logging.getLogger(__name__) class Action: def __init__(self, subtype_index: int): self.subtype_index = subtype_ind...
25.955882
120
0.690085
7d7bc4d9c2b086939ca90f2e88c29f5414722696
634
py
Python
examples/signature.py
streetster/zte-config-utility
b0ee9a3dc52c074a6567a69532a527d484048901
[ "MIT" ]
5
2020-06-09T12:22:23.000Z
2020-06-15T16:17:22.000Z
examples/signature.py
streetster/zte-config-utility
b0ee9a3dc52c074a6567a69532a527d484048901
[ "MIT" ]
1
2020-06-11T18:02:41.000Z
2020-06-12T13:02:48.000Z
examples/signature.py
streetster/zte-config-utility
b0ee9a3dc52c074a6567a69532a527d484048901
[ "MIT" ]
2
2020-06-09T13:56:27.000Z
2020-06-09T22:59:27.000Z
"""Extract signature text from config.bin""" import argparse import zcu def main(): """the main function""" parser = argparse.ArgumentParser(description='Extract signature from config.bin of ZTE Routers', formatter_class=argparse.RawDescriptionHelpFormatter) parser.ad...
27.565217
100
0.656151
4352003618f087f2cf5003af8b0a7658455841ef
4,265
py
Python
neo/io/asciispiketrainio.py
neurodebian/python-neo
9be7cd97572ce9c1ea5583eae700a99a05423c11
[ "BSD-3-Clause" ]
1
2020-08-08T21:39:41.000Z
2020-08-08T21:39:41.000Z
neo/io/asciispiketrainio.py
michaelfsp/python-neo
56ce3b6a3f6944a096279404c22a75166b905844
[ "BSD-3-Clause" ]
null
null
null
neo/io/asciispiketrainio.py
michaelfsp/python-neo
56ce3b6a3f6944a096279404c22a75166b905844
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 """ Classe for reading/writing SpikeTrains in a text file. It is the simple case where different spiketrains are written line by line. Supported : Read/Write Author: sgarcia """ from .baseio import BaseIO from ..core import * from .tools import create_many_to_one_relationship import numpy as np im...
28.817568
115
0.481829
2f6416aa6ae6aca06100c02e27b48ed25762f6be
59,772
py
Python
cyclone/web.py
fiorix/niosted
792214fee9a9e46ea531415721bfda080aa030e7
[ "OLDAP-2.5", "OLDAP-2.3" ]
1
2019-06-27T08:20:55.000Z
2019-06-27T08:20:55.000Z
cyclone/web.py
fiorix/niosted
792214fee9a9e46ea531415721bfda080aa030e7
[ "OLDAP-2.5", "OLDAP-2.3" ]
null
null
null
cyclone/web.py
fiorix/niosted
792214fee9a9e46ea531415721bfda080aa030e7
[ "OLDAP-2.5", "OLDAP-2.3" ]
null
null
null
#!/usr/bin/env jython # coding: utf-8 # # Copyright 2010 Alexandre Fiori # based on the original Tornado by Facebook # # 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....
38.217391
92
0.591146
92951d5fc02a6cecd20270def94c217e2216e2a9
4,186
py
Python
notebook/util.py
hampen2929/CenterTrack
7ccb4a07637785df4a450f312845bc37b2e53ac0
[ "MIT" ]
3
2020-04-17T22:19:31.000Z
2022-01-07T22:01:16.000Z
notebook/util.py
hampen2929/CenterTrack
7ccb4a07637785df4a450f312845bc37b2e53ac0
[ "MIT" ]
null
null
null
notebook/util.py
hampen2929/CenterTrack
7ccb4a07637785df4a450f312845bc37b2e53ac0
[ "MIT" ]
1
2021-05-13T04:47:49.000Z
2021-05-13T04:47:49.000Z
import os import json from glob import glob # court_label_dict = { # '0': 'center', # '1': 'singles_upper_right', # '2': 'singles_upper_left', # '3': 'singles_lower_left', # '4': 'singles_lower_right', # '5': 'doubles_upper_right', # '6': 'doubles_upper_left', # '7': 'doubles_lower_lef...
25.680982
93
0.571906
fde28e832f3dfb134bd0c9015af5cc225500362a
20,215
py
Python
datalad/distribution/tests/test_uninstall.py
driusan/datalad
97f990caff182547845e1096a4044d9cd17e6a31
[ "MIT" ]
null
null
null
datalad/distribution/tests/test_uninstall.py
driusan/datalad
97f990caff182547845e1096a4044d9cd17e6a31
[ "MIT" ]
null
null
null
datalad/distribution/tests/test_uninstall.py
driusan/datalad
97f990caff182547845e1096a4044d9cd17e6a31
[ "MIT" ]
null
null
null
# ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## """Test uninstall a...
36.956124
97
0.680188
521ec627cd052031ba239215dd1b09a13a9a642b
12,440
py
Python
mycroft/util/lang/format_sv.py
JulianaCP/mycroft-core
2bfcb948b73a86a1625a8490c12bc031c2ff0379
[ "Apache-2.0" ]
1
2019-12-07T18:10:56.000Z
2019-12-07T18:10:56.000Z
mycroft/util/lang/format_sv.py
JulianaCP/mycroft-core
2bfcb948b73a86a1625a8490c12bc031c2ff0379
[ "Apache-2.0" ]
null
null
null
mycroft/util/lang/format_sv.py
JulianaCP/mycroft-core
2bfcb948b73a86a1625a8490c12bc031c2ff0379
[ "Apache-2.0" ]
1
2019-12-09T13:42:51.000Z
2019-12-09T13:42:51.000Z
# -*- coding: utf-8 -*- # # Copyright 2017 Mycroft AI 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 ...
29.201878
78
0.508923
dcbc981734d76d413997157fb3aef9992b537a71
13,768
py
Python
donghuangzhong/src/core/util.py
onsis/hack-tools
1a1dfebfab8c83379f17563900d3aeb9f240c658
[ "Apache-2.0" ]
null
null
null
donghuangzhong/src/core/util.py
onsis/hack-tools
1a1dfebfab8c83379f17563900d3aeb9f240c658
[ "Apache-2.0" ]
null
null
null
donghuangzhong/src/core/util.py
onsis/hack-tools
1a1dfebfab8c83379f17563900d3aeb9f240c658
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*-coding:utf-8 -*- from scapy.error import Scapy_Exception from signal import SIGINT from datetime import date, datetime from commands import getoutput from subprocess import Popen from cmd import Cmd from pwd import getpwnam from colors import color from inspect import getmodule import scapy.arch ...
28.863732
98
0.547647
ba688e0b7d008284f3b8588da83ec1395a3bdfd2
5,693
py
Python
orttraining/orttraining/python/training/ortmodule/_inference_manager.py
photoszzt/onnxruntime
523db6ef443b0a41de1401004ae4b394dad3314c
[ "MIT" ]
2
2021-07-02T23:57:21.000Z
2022-03-19T07:45:35.000Z
orttraining/orttraining/python/training/ortmodule/_inference_manager.py
photoszzt/onnxruntime
523db6ef443b0a41de1401004ae4b394dad3314c
[ "MIT" ]
1
2021-06-18T11:01:02.000Z
2021-06-18T11:01:02.000Z
orttraining/orttraining/python/training/ortmodule/_inference_manager.py
photoszzt/onnxruntime
523db6ef443b0a41de1401004ae4b394dad3314c
[ "MIT" ]
1
2021-06-18T10:35:22.000Z
2021-06-18T10:35:22.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # -------------------------------------------------------------------------- from . import _utils, _io from ._graph_execution_manager import GraphExe...
49.077586
126
0.597576
45994fa3dc2038cf4afa2d6378398673a7c1edff
80,230
py
Python
src/pyhees/section4_2.py
jjj-design/pyhees
d63e7cd84abfc2f509bc1cd1256598a10aac1825
[ "MIT" ]
null
null
null
src/pyhees/section4_2.py
jjj-design/pyhees
d63e7cd84abfc2f509bc1cd1256598a10aac1825
[ "MIT" ]
3
2022-01-04T07:29:52.000Z
2022-03-19T08:02:51.000Z
src/pyhees/section4_2.py
jjj-design/pyhees
d63e7cd84abfc2f509bc1cd1256598a10aac1825
[ "MIT" ]
2
2022-01-19T07:57:10.000Z
2022-03-07T00:25:54.000Z
# ============================================================================ # 第四章 暖冷房設備 # 第二節 ダクト式セントラル空調機 # Ver.05(エネルギー消費性能計算プログラム(住宅版)Ver.02.01~) # ============================================================================ import numpy as np from functools import lru_cache import datetime import pyhees.sect...
27.665517
169
0.579995
8057c8418396a2449fd9d79a518de7812de8ebb1
2,260
py
Python
tests/technologies/test_diffusion_technologies.py
nismod/energy_demand
247fcea074a846026710ed9b039b22f8b9835643
[ "MIT" ]
14
2018-02-23T10:03:45.000Z
2022-03-03T13:59:30.000Z
tests/technologies/test_diffusion_technologies.py
nismod/energy_demand
247fcea074a846026710ed9b039b22f8b9835643
[ "MIT" ]
59
2017-02-22T15:03:30.000Z
2020-12-16T12:26:17.000Z
tests/technologies/test_diffusion_technologies.py
nismod/energy_demand
247fcea074a846026710ed9b039b22f8b9835643
[ "MIT" ]
5
2017-08-22T11:31:42.000Z
2020-06-24T18:30:12.000Z
""" """ from energy_demand.technologies import diffusion_technologies def test_linear_diff(): """Testing function """ expected1 = 1 expected2 = 1.5 expected3 = 10 expected4 = 0 # call function out_value_1 = diffusion_technologies.linear_diff( base_yr=2015, curr_yr=2020...
20.545455
61
0.606195
58cdcccd3e76f7826197d10b46b515360c56d3de
272
py
Python
picker/host_key.py
laashub-sua/demo-pywinauto
5f33a62c35978b21ce14a3b7f2058dc750fa1945
[ "Apache-2.0" ]
1
2020-07-25T15:03:16.000Z
2020-07-25T15:03:16.000Z
picker/host_key.py
laashub-sua/demo-pywinauto
5f33a62c35978b21ce14a3b7f2058dc750fa1945
[ "Apache-2.0" ]
null
null
null
picker/host_key.py
laashub-sua/demo-pywinauto
5f33a62c35978b21ce14a3b7f2058dc750fa1945
[ "Apache-2.0" ]
null
null
null
from pynput import keyboard def on_activate_h(): print('<ctrl>+<alt>+h pressed') def on_activate_i(): print('<ctrl>+<alt>+i pressed') with keyboard.GlobalHotKeys({ '<ctrl>+<alt>+h': on_activate_h, '<ctrl>+<alt>+i': on_activate_i}) as h: h.join()
17
43
0.628676
d82b2181ce8de905139b8e6d54cf12918f0800ad
1,466
py
Python
doc/integrations/pytorch/parlai/crowdsourcing/tasks/model_chat/run.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2020-09-27T05:00:06.000Z
2020-09-27T05:00:06.000Z
doc/integrations/pytorch/parlai/crowdsourcing/tasks/model_chat/run.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2021-08-04T11:17:39.000Z
2021-08-04T11:17:39.000Z
doc/integrations/pytorch/parlai/crowdsourcing/tasks/model_chat/run.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2021-05-03T13:27:14.000Z
2021-05-03T13:27:14.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os from dataclasses import dataclass, field from typing import Any, List import hydra from mephisto.o...
27.660377
95
0.72101
a5899efe41570ca1d9d1a29b03cfa5661f0f4802
197
py
Python
lab08/tests/q0.py
ucsb-ds/ds1-f20-content
25f62c7a597b98da436ca39631761c1f3feccfdd
[ "MIT" ]
2
2020-10-14T12:43:18.000Z
2021-01-06T18:06:16.000Z
lab08/tests/q0.py
ucsb-ds/ds1-f20-content
25f62c7a597b98da436ca39631761c1f3feccfdd
[ "MIT" ]
2
2020-10-13T05:21:15.000Z
2020-12-11T18:03:54.000Z
lab08/tests/q0.py
ucsb-ds/ds1-f20-content
25f62c7a597b98da436ca39631761c1f3feccfdd
[ "MIT" ]
3
2021-01-05T05:30:01.000Z
2021-03-16T22:09:08.000Z
test = {'name': 'q0', 'points': 1, 'suites': [{'cases': [{'code': '>>> float(distance)\n13.0', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
98.5
196
0.532995
a7def432d19e9f359dbed6c18816f0eacd8a55ab
5,688
py
Python
conll_extract/jackknifing/jackknife_conll2012.py
utahnlp/structured_tuning_for_srl
9d315575ddf929c1bc31252fd78dc85ba7319251
[ "Apache-2.0" ]
354
2017-06-01T03:35:56.000Z
2022-03-16T02:50:27.000Z
conll_extract/jackknifing/jackknife_conll2012.py
utahnlp/structured_tuning_for_srl
9d315575ddf929c1bc31252fd78dc85ba7319251
[ "Apache-2.0" ]
30
2017-10-15T05:48:57.000Z
2021-12-22T18:50:55.000Z
conll_extract/jackknifing/jackknife_conll2012.py
utahnlp/structured_tuning_for_srl
9d315575ddf929c1bc31252fd78dc85ba7319251
[ "Apache-2.0" ]
96
2017-06-16T10:05:04.000Z
2022-03-16T13:02:36.000Z
# Random shuffle by sentences instead of samples (predicates). import math import os import random import sys from os.path import join def get_sent_to_samples(input_file, domain_file): num_samples = 0 sent2samples = [] domain2sents = [] domain_names = [] fin = open(input_file, 'r') fin_domains = open(doma...
30.913043
98
0.667018
88a0661b6866321a72bdfd1c9f704b70a872bc20
118,006
py
Python
src/metpy/io/nexrad.py
jibbals/MetPy
321ac6ee90db236d587e8a07bbd6cd91620e651f
[ "BSD-3-Clause" ]
null
null
null
src/metpy/io/nexrad.py
jibbals/MetPy
321ac6ee90db236d587e8a07bbd6cd91620e651f
[ "BSD-3-Clause" ]
43
2021-12-03T20:39:27.000Z
2022-03-29T12:32:15.000Z
src/metpy/io/nexrad.py
jibbals/MetPy
321ac6ee90db236d587e8a07bbd6cd91620e651f
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009,2015,2016,2017 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Support reading information from various NEXRAD formats.""" import bz2 from collections import defaultdict, namedtuple, OrderedDict import contextlib import dateti...
48.482334
95
0.492568
0082ee9e6f7f9553ccaac67cc20d5954b0b2297d
45,127
py
Python
verticapy/stats/math.py
vertica/vertica_ml_python
9e82dba94afe8447bfa2492f343af6669128e2fb
[ "Apache-2.0" ]
7
2018-05-10T08:16:31.000Z
2018-05-15T00:59:26.000Z
verticapy/stats/math.py
vertica/vertica_ml_python
9e82dba94afe8447bfa2492f343af6669128e2fb
[ "Apache-2.0" ]
1
2018-05-15T00:15:35.000Z
2018-05-15T13:40:19.000Z
verticapy/stats/math.py
vertica/vertica_ml_python
9e82dba94afe8447bfa2492f343af6669128e2fb
[ "Apache-2.0" ]
null
null
null
# (c) Copyright [2018-2022] Micro Focus or one of its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
20.400995
98
0.507767
b81268d0b948acbd3dcfcf935257f7d44cdb2ab1
1,763
py
Python
tools/ci_c.py
csirosat/kubos
fa5db37d5ecef479ebbbe4e69fbf765566eccdee
[ "Apache-2.0" ]
266
2018-01-10T04:41:19.000Z
2022-03-29T19:59:43.000Z
tools/ci_c.py
csirosat/kubos
fa5db37d5ecef479ebbbe4e69fbf765566eccdee
[ "Apache-2.0" ]
444
2018-01-09T18:08:26.000Z
2022-03-30T02:00:04.000Z
tools/ci_c.py
csirosat/kubos
fa5db37d5ecef479ebbbe4e69fbf765566eccdee
[ "Apache-2.0" ]
60
2018-02-03T02:19:12.000Z
2022-03-29T19:13:16.000Z
#!/usr/bin/env python3 import subprocess import os import shutil projects = [ "./cmocka", "./ccan/json", "./examples/adc-thermistor", "./examples/kubos-linux-uarttx", "./examples/kubos-linux-uartrx", "./examples/kubos-linux-example", "./examples/kubos-linux-tcprx", "./examples/rust-c-s...
26.313433
67
0.631877
ed53e2fb8673f501bc76e893b0b4a0b8eec8034b
28,744
py
Python
src/models/backbone_kpconv/kpconv_blocks.py
yewzijian/RegTR
64e5b3f0ccc1e1a11b514eb22734959d32e0cec6
[ "MIT" ]
25
2022-03-28T06:26:16.000Z
2022-03-30T14:21:24.000Z
src/models/backbone_kpconv/kpconv_blocks.py
yewzijian/RegTR
64e5b3f0ccc1e1a11b514eb22734959d32e0cec6
[ "MIT" ]
null
null
null
src/models/backbone_kpconv/kpconv_blocks.py
yewzijian/RegTR
64e5b3f0ccc1e1a11b514eb22734959d32e0cec6
[ "MIT" ]
2
2022-03-29T09:37:50.000Z
2022-03-30T06:26:35.000Z
# # # 0=================================0 # | Kernel Point Convolutions | # 0=================================0 # # # ---------------------------------------------------------------------------------------------------------------------- # # Define network blocks # # ---------------------------...
36.523507
122
0.566936
819c90ed16fff52b1673bc241322f561a26959c4
20,796
py
Python
assignment2/cs231n/classifiers/fc_net.py
pranav-s/Stanford_CS234_CV_2017
9b0536812477dd0ea0e2dc4f063976a2e79148cc
[ "MIT" ]
null
null
null
assignment2/cs231n/classifiers/fc_net.py
pranav-s/Stanford_CS234_CV_2017
9b0536812477dd0ea0e2dc4f063976a2e79148cc
[ "MIT" ]
null
null
null
assignment2/cs231n/classifiers/fc_net.py
pranav-s/Stanford_CS234_CV_2017
9b0536812477dd0ea0e2dc4f063976a2e79148cc
[ "MIT" ]
null
null
null
from builtins import range from builtins import object import numpy as np from ..layers import * from ..layer_utils import * class TwoLayerNet(object): """ A two-layer fully-connected neural network with ReLU nonlinearity and softmax loss that uses a modular layer design. We assume an input dimension ...
51.475248
219
0.533276
3352ae4c6a028b1e86d38a9164d338229b57feca
3,709
py
Python
chexpert_labeler/stages/aggregate.py
stmharry/interpretable-report-gen
c4518b613526f76ef84e1dc58b4939b315e80cd9
[ "MIT" ]
2
2020-12-16T07:43:57.000Z
2021-07-09T01:15:30.000Z
chexpert_labeler/stages/aggregate.py
stmharry/interpretable-report-gen
c4518b613526f76ef84e1dc58b4939b315e80cd9
[ "MIT" ]
3
2021-06-08T21:34:27.000Z
2021-09-08T02:02:28.000Z
chexpert_labeler/stages/aggregate.py
stmharry/interpretable-report-gen
c4518b613526f76ef84e1dc58b4939b315e80cd9
[ "MIT" ]
null
null
null
"""Define mention aggregator class.""" import numpy as np from tqdm import tqdm from chexpert_labeler.constants import * class Aggregator(object): """Aggregate mentions of observations from radiology reports.""" def __init__(self, categories, verbose=False): self.categories = categories self...
34.342593
76
0.512807
4a0bc894f8c9e6aae7aeb0032ff235c583419c4b
6,048
py
Python
zaifapi/exchange_api/trade.py
techbureau/zaifapi
5b7db7d6abdc76b4e911a74457140b3faf0b7317
[ "MIT" ]
62
2017-05-10T12:24:48.000Z
2021-03-17T07:03:29.000Z
zaifapi/exchange_api/trade.py
techbureau/zaifapi
5b7db7d6abdc76b4e911a74457140b3faf0b7317
[ "MIT" ]
15
2017-06-12T07:12:14.000Z
2020-01-30T13:28:53.000Z
zaifapi/exchange_api/trade.py
techbureau/zaifapi
5b7db7d6abdc76b4e911a74457140b3faf0b7317
[ "MIT" ]
19
2017-08-23T20:47:14.000Z
2018-11-21T10:01:06.000Z
import time import hmac import hashlib from decimal import Decimal from datetime import datetime from abc import ABCMeta, abstractmethod from typing import Optional from urllib.parse import urlencode from zaifapi.api_common import ApiUrl, get_response, get_api_url, method_name from zaifapi.api_error import ZaifApiError...
31.831579
88
0.616237
6ca3c66bb40ead0935edfe9c434651b6246cbc39
2,008
py
Python
tests/sources/test_matlab_functions.py
SherlockSheep/webots
13bb7f13f15cd1a003b64368b1fd8783732e175e
[ "Apache-2.0" ]
1
2020-09-28T08:34:32.000Z
2020-09-28T08:34:32.000Z
tests/sources/test_matlab_functions.py
congleetea/webots
f7bf0cb385842478c5635e29db8e25689d3d0c65
[ "Apache-2.0" ]
null
null
null
tests/sources/test_matlab_functions.py
congleetea/webots
f7bf0cb385842478c5635e29db8e25689d3d0c65
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 1996-2020 Cyberbotics 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 applica...
33.466667
94
0.621016
eaeed368105f93a7198ca2ffd0b883e20fc903e3
8,135
py
Python
problems/dist_mnist_problem.py
javieryu/nn_distributed_training
ebbae5317efc514437374fc2f698fbcec9debab4
[ "MIT" ]
3
2021-10-14T19:53:19.000Z
2022-02-22T01:14:44.000Z
problems/dist_mnist_problem.py
javieryu/nn_distributed_training
ebbae5317efc514437374fc2f698fbcec9debab4
[ "MIT" ]
null
null
null
problems/dist_mnist_problem.py
javieryu/nn_distributed_training
ebbae5317efc514437374fc2f698fbcec9debab4
[ "MIT" ]
null
null
null
import os import copy import torch class DistMNISTProblem: """An object that manages the various datastructures for a distributed optimization problem on the MNIST classification problem. In addition, it computes, stores, and writes out relevant metrics. Author: Javier Yu, javieryu@stanford.edu, Jul...
38.372642
79
0.55083
fc0f89b83d59281a84ab6dea909d143a4622a2ae
23,212
py
Python
python/ray/tune/ray_trial_executor.py
wingman-ai/ray
23e1ccc1ea5d7e5789628d3eb85ff6bc8d0a4359
[ "Apache-2.0" ]
null
null
null
python/ray/tune/ray_trial_executor.py
wingman-ai/ray
23e1ccc1ea5d7e5789628d3eb85ff6bc8d0a4359
[ "Apache-2.0" ]
4
2019-03-04T13:03:24.000Z
2019-06-06T11:25:07.000Z
python/ray/tune/ray_trial_executor.py
wingman-ai/ray
23e1ccc1ea5d7e5789628d3eb85ff6bc8d0a4359
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import math import os import random import time import traceback import ray from ray.tune.error import AbortTrialExecution from ray.tune.logger import NoopLogger from ray.tune.tr...
39.678632
112
0.59844
8678dd567db519d670dca84b6f8a196b5074d200
2,377
py
Python
scripts/NineAnimeDownloader.py
jtatia/Anime-Downloader
619386734fa1412cf6eaa42c36a88f7e336bb93d
[ "MIT" ]
24
2017-05-25T19:20:46.000Z
2020-09-01T01:08:04.000Z
scripts/NineAnimeDownloader.py
jtatia/Anime-Downloader
619386734fa1412cf6eaa42c36a88f7e336bb93d
[ "MIT" ]
3
2017-06-05T13:04:45.000Z
2018-11-05T14:41:15.000Z
scripts/NineAnimeDownloader.py
jtatia/Anime-Downloader
619386734fa1412cf6eaa42c36a88f7e336bb93d
[ "MIT" ]
5
2017-10-23T21:01:57.000Z
2019-08-20T08:35:35.000Z
import os import re import sys import time import requests from selenium import webdriver from selenium.webdriver.common.keys import Keys site = "https://9anime.to/" # There will be an option between providing the anime name(option "1" ) and the anime episode 1 page (option "2"). anime_name = "" anime_episode_page ...
23.77
124
0.717291
44a67328046fd7280dd63d7732ea6f91a6e284e3
1,786
py
Python
src/projects/ex49/ex49/parser.py
SpyrosDellas/learn-python-the-hard-way
bdbed7658f2650b12f7a1388adf27ad436353f61
[ "MIT" ]
null
null
null
src/projects/ex49/ex49/parser.py
SpyrosDellas/learn-python-the-hard-way
bdbed7658f2650b12f7a1388adf27ad436353f61
[ "MIT" ]
null
null
null
src/projects/ex49/ex49/parser.py
SpyrosDellas/learn-python-the-hard-way
bdbed7658f2650b12f7a1388adf27ad436353f61
[ "MIT" ]
null
null
null
class ParserError(Exception): pass class Sentence(object): def __init__(self, subject, verb, object): # remember we take ('noun', 'princess') tuples and convert them self.subject = subject[1] self.verb = verb[1] self.object = object[1] def peek(word_list): if word_list: ...
22.325
85
0.614222
c0ac5751ce285c5e4199f9c1a2a54af442dd63b3
8,246
py
Python
lldb/examples/python/lldb_module_utils.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
lldb/examples/python/lldb_module_utils.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
lldb/examples/python/lldb_module_utils.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
#!/usr/bin/env python from __future__ import print_function import lldb import optparse import shlex import string import sys class DumpLineTables: command_name = "dump-line-tables" short_decription = "Dumps full paths to compile unit files and optionally all line table files." description = 'Dumps all l...
42.725389
182
0.590953
7461a5bd23d9ffc9b87c77c38227dbf8363abf4b
244
py
Python
venv/lib/python3.6/site-packages/pushshift_py/__init__.py
gonzaloetjo/Crypto_Trading_Bot
e67493a611ddded07455be35d46dd3cd4e8003d4
[ "Unlicense" ]
13
2019-07-13T08:20:39.000Z
2021-05-04T02:18:58.000Z
venv/lib/python3.6/site-packages/pushshift_py/__init__.py
gonzaloetjo/Crypto_Trading_Bot
e67493a611ddded07455be35d46dd3cd4e8003d4
[ "Unlicense" ]
5
2019-06-07T23:57:59.000Z
2021-06-25T15:20:08.000Z
venv/lib/python3.6/site-packages/pushshift_py/__init__.py
gonzaloetjo/Crypto_Trading_Bot
e67493a611ddded07455be35d46dd3cd4e8003d4
[ "Unlicense" ]
1
2021-07-07T16:07:13.000Z
2021-07-07T16:07:13.000Z
""" Pushshift.io API Wrapper (for reddit.com public comment/submission search) https://github.com/typenil/pushshift.py """ from pushshift_py.pushshift_api import PushshiftAPI from pushshift_py.pushshift_api_minimal import PushshiftAPIMinimal
27.111111
74
0.831967
b900a9d7b29ad7b68f9029c842e0fdcacef8eed3
10,988
py
Python
src/argteller/widgets/widgets.py
mozjay0619/argteller-viz
963c6d43019efb2b0e9bcdb4b3053b57cd4ff373
[ "BSD-3-Clause" ]
null
null
null
src/argteller/widgets/widgets.py
mozjay0619/argteller-viz
963c6d43019efb2b0e9bcdb4b3053b57cd4ff373
[ "BSD-3-Clause" ]
7
2021-08-04T15:54:07.000Z
2021-09-17T17:40:38.000Z
src/argteller/widgets/widgets.py
mozjay0619/argteller-viz
963c6d43019efb2b0e9bcdb4b3053b57cd4ff373
[ "BSD-3-Clause" ]
null
null
null
try: from IPython.display import display import ipywidgets as widgets from ipywidgets import HBox, Label, VBox from ipywidgets import Button, Layout, HTML from traitlets import MetaHasTraits except ModuleNotFoundError: class VBox(): pass class MetaHasTraits(): pass ...
30.865169
140
0.531762
fe5121a4666184393de6f2a4fca70c1cf2006da9
3,620
py
Python
build/lib.linux-x86_64-2.7/birdspotter/user_influence.py
rohitram96/BirdSpotter
f1697280ed9e4d4025529b535b8616de28b8efe7
[ "MIT" ]
17
2020-07-15T00:56:51.000Z
2022-03-31T11:34:03.000Z
build/lib.linux-x86_64-2.7/birdspotter/user_influence.py
rohitram96/BirdSpotter
f1697280ed9e4d4025529b535b8616de28b8efe7
[ "MIT" ]
6
2020-01-19T07:31:13.000Z
2021-01-26T22:47:08.000Z
build/lib.linux-x86_64-2.7/birdspotter/user_influence.py
rohitram96/BirdSpotter
f1697280ed9e4d4025529b535b8616de28b8efe7
[ "MIT" ]
null
null
null
from functools import reduce import pandas as pd import numpy as np def casIn(cascade, time_decay = -0.000068, alpha = None, beta = 1.0): """Computes influence in one cascade Parameters ---------- cascade : str or DataFrame Path to one cascade in a file time_decay : float The r...
35.490196
149
0.60442
6f463d4d5f9fc781ef84969e16cf6ea3544b6f83
2,037
py
Python
src/rubrix/sdk/models/token_classification_aggregations_mentions_additional_property.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/token_classification_aggregations_mentions_additional_property.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/token_classification_aggregations_mentions_additional_property.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021-present, the Recognai S.L. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
32.854839
96
0.71134
8dbc9ce5e77aa0255444dc1e90397c8070647101
10,724
py
Python
sdks/python/apache_beam/transforms/userstate_test.py
lgajowy/beam
2834b2ddc5a7cdc553adf0cafb1e7850181e0e68
[ "Apache-2.0" ]
1
2018-07-13T02:57:48.000Z
2018-07-13T02:57:48.000Z
sdks/python/apache_beam/transforms/userstate_test.py
lgajowy/beam
2834b2ddc5a7cdc553adf0cafb1e7850181e0e68
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/transforms/userstate_test.py
lgajowy/beam
2834b2ddc5a7cdc553adf0cafb1e7850181e0e68
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
39.138686
84
0.713726
2cb1309ec70b2cf91425ac18412c1d65a1e91ab7
832
py
Python
python/linalg/blas.py
hmatuschek/linalg
b4b8337ba001b24572f13349cc5804a416bfe5a7
[ "MIT" ]
1
2016-05-24T15:27:52.000Z
2016-05-24T15:27:52.000Z
python/linalg/blas.py
hmatuschek/linalg
b4b8337ba001b24572f13349cc5804a416bfe5a7
[ "MIT" ]
null
null
null
python/linalg/blas.py
hmatuschek/linalg
b4b8337ba001b24572f13349cc5804a416bfe5a7
[ "MIT" ]
null
null
null
import linalg._blas as _blas import numpy as np def dot(x,y): """ Implements the some dot-product of two vectors x and y. """ assert (x.dtype == y.dtype) if (np.float64 == x.dtype): return _blas.ddot(x,y) else: raise TypeError("Can not call dot() with vector of type {0}".format(x.dtype)); def nrm2(x): ...
27.733333
81
0.646635
b0f38b73afa2592d3a9583f24b23319f544dcd6c
1,447
py
Python
emotion_classification/main.py
vijay4313/proxemo
98c4e2133047aa8519cc2f482b59565d9160e81a
[ "MIT" ]
23
2020-08-18T17:31:54.000Z
2022-03-10T10:37:31.000Z
emotion_classification/main.py
vijay4313/proxemo
98c4e2133047aa8519cc2f482b59565d9160e81a
[ "MIT" ]
3
2020-11-09T10:18:19.000Z
2021-10-31T21:34:37.000Z
emotion_classification/main.py
vijay4313/proxemo
98c4e2133047aa8519cc2f482b59565d9160e81a
[ "MIT" ]
10
2020-08-15T16:46:22.000Z
2021-07-08T06:54:03.000Z
#!/usr/bin/env python # Title :loader.py # Author :Venkatraman Narayanan, Bala Murali Manoghar, Vishnu Shashank Dorbala, Aniket Bera, Dinesh Manocha # Copyright :"Copyright 2020, Proxemo project" # Version :1.0 # License :"MIT" # Maintainer :Venkatraman Narayanan, Bala Mura...
25.839286
116
0.612992
40bcd009a9ad9d3d73d43b028865e970e7b1a7a4
14,674
py
Python
electrum/gui/qt/__init__.py
akshaynexus/qtum-electrum
9fdda51bbc7e541b6f5743f16313d0b8b6123b48
[ "MIT" ]
null
null
null
electrum/gui/qt/__init__.py
akshaynexus/qtum-electrum
9fdda51bbc7e541b6f5743f16313d0b8b6123b48
[ "MIT" ]
null
null
null
electrum/gui/qt/__init__.py
akshaynexus/qtum-electrum
9fdda51bbc7e541b6f5743f16313d0b8b6123b48
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@gitorious # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including witho...
39.026596
112
0.634251
9985acbbbab2a160874370678975fc8b2bf77e58
224
py
Python
dsql/api/models/__init__.py
gustavwilliam/discordSQL
95ba62dd9b9d7bffa1e8c2a9fc60d35c916b7b45
[ "MIT" ]
4
2021-07-08T12:24:39.000Z
2022-03-03T02:51:18.000Z
dsql/api/models/__init__.py
gustavwilliam/discordSQL
95ba62dd9b9d7bffa1e8c2a9fc60d35c916b7b45
[ "MIT" ]
1
2021-12-28T00:13:33.000Z
2021-12-28T00:13:33.000Z
dsql/api/models/__init__.py
gustavwilliam/discordSQL
95ba62dd9b9d7bffa1e8c2a9fc60d35c916b7b45
[ "MIT" ]
null
null
null
from dsql.api.models.snowflake import Snowflake from dsql.api.models.component import Component from dsql.api.models.database import Database from dsql.api.models.table import Table from dsql.api.models.column import Column
37.333333
47
0.84375
e37bc04bd81e51973229e72b73e57214172c8991
4,554
py
Python
pydysofu/fuzz_weaver.py
probablytom/automata_with_variance
36aabfe76313ecb751d5a33152f7277813ab4afc
[ "Apache-2.0" ]
null
null
null
pydysofu/fuzz_weaver.py
probablytom/automata_with_variance
36aabfe76313ecb751d5a33152f7277813ab4afc
[ "Apache-2.0" ]
null
null
null
pydysofu/fuzz_weaver.py
probablytom/automata_with_variance
36aabfe76313ecb751d5a33152f7277813ab4afc
[ "Apache-2.0" ]
null
null
null
""" Core fuzzing functionality. @author twsswt """ import ast import copy import inspect from core_fuzzers import identity from inspect import getmembers from workflow_transformer import WorkflowTransformer _reference_syntax_trees = dict() _reference_get_attributes = dict() def get_reference_syntax_tree(func): ...
34.5
119
0.711243
0a423d57e4be63a93037ea31ec7196695323ea9f
7,253
py
Python
dnnlib/tflib/custom_ops.py
cvcomar/gansformer
ca698df4da32584a22f1b6a3b7cbdbf4bb0537be
[ "MIT" ]
null
null
null
dnnlib/tflib/custom_ops.py
cvcomar/gansformer
ca698df4da32584a22f1b6a3b7cbdbf4bb0537be
[ "MIT" ]
null
null
null
dnnlib/tflib/custom_ops.py
cvcomar/gansformer
ca698df4da32584a22f1b6a3b7cbdbf4bb0537be
[ "MIT" ]
null
null
null
# TensorFlow custom ops builder. Compiles new operations. import os import re import uuid import hashlib import tempfile import shutil import tensorflow as tf from tensorflow.python.client import device_lib # Global options # ---------------------------------------------------------------------------- cuda_cache_pat...
43.172619
153
0.587067
2749c4fb8a814492f411eb03fce9ded1289aba9b
1,350
py
Python
datasets/NewsgroupsArr.py
rist-ro/argo
a10c33346803239db8a64c104db7f22ec4e05bef
[ "MIT" ]
4
2020-12-07T19:13:13.000Z
2022-01-30T18:52:18.000Z
datasets/NewsgroupsArr.py
rist-ro/argo
a10c33346803239db8a64c104db7f22ec4e05bef
[ "MIT" ]
12
2020-09-25T22:41:28.000Z
2022-02-09T23:46:34.000Z
datasets/NewsgroupsArr.py
rist-ro/argo
a10c33346803239db8a64c104db7f22ec4e05bef
[ "MIT" ]
2
2021-03-02T18:31:04.000Z
2021-03-02T21:56:43.000Z
import os os.environ['NUMEXPR_MAX_THREADS'] = '20' from word_embedding.test.core.load_20newsgroup import read_20newsgroup from .AlphaDatasetArr import AlphaDatasetArr NPROCS = 4 class NewsgroupsArr(AlphaDatasetArr): default_params = { 'split_seed' : 42, } def __init__(self, params): sup...
27.55102
116
0.702963
007c94d0441674c13f741b40ff733d72957cbf00
5,920
py
Python
gnuradio-3.7.13.4/gr-qtgui/apps/plot_time_base.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
1
2021-03-09T07:32:37.000Z
2021-03-09T07:32:37.000Z
gnuradio-3.7.13.4/gr-qtgui/apps/plot_time_base.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
gnuradio-3.7.13.4/gr-qtgui/apps/plot_time_base.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright 2013 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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, or (at your option) # ...
32
85
0.609291
ab7c70b9581b8d9b3dd5b8dfa3ddecfb2981c82e
5,201
py
Python
voice_similarity/analyzer.py
itanium-R/rcc_winter_hackathon_2020
cecd43d8b89d2d656e3b11ca5bdfb35965451d37
[ "MIT" ]
null
null
null
voice_similarity/analyzer.py
itanium-R/rcc_winter_hackathon_2020
cecd43d8b89d2d656e3b11ca5bdfb35965451d37
[ "MIT" ]
null
null
null
voice_similarity/analyzer.py
itanium-R/rcc_winter_hackathon_2020
cecd43d8b89d2d656e3b11ca5bdfb35965451d37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pyaudio, wave import os, sys, gc, time, threading, math import numpy as np from lib.record import * from engine import * import warnings warnings.simplefilter("ignore", DeprecationWarning) class Detecation(Recording): def __init__(self): ## -----*----- コンストラクタ -----*----- ##...
36.370629
118
0.502403
7c6f40233db706cb6f638c1d908279877c518fd2
2,439
py
Python
pmgr/param.py
mcb64/pmgr
70b372385ed8e67b30ecaa20e1ae356c85222256
[ "BSD-3-Clause-LBNL" ]
null
null
null
pmgr/param.py
mcb64/pmgr
70b372385ed8e67b30ecaa20e1ae356c85222256
[ "BSD-3-Clause-LBNL" ]
13
2018-05-10T00:06:48.000Z
2021-07-14T21:47:20.000Z
pmgr/param.py
mcb64/pmgr
70b372385ed8e67b30ecaa20e1ae356c85222256
[ "BSD-3-Clause-LBNL" ]
3
2018-07-31T20:11:09.000Z
2020-08-17T20:14:28.000Z
from PyQt5 import QtCore, QtGui import pwd, os AUTH_FILE = "/reg/g/pcds/pyps/config/%s/pmgr.auth" params = None def equal(v1, v2): try: if type(v1) == float: # I hate floating point. OK, we need to be "close", but if we are *at* zero # the "close" test fails! return v1...
31.675325
88
0.547765
1abc09d0e7c352b2ef3ac9113e8bc73f8cd14662
1,368
py
Python
chembl_webservices/resources/source.py
chembl/chembl_new_webservices
59fb52665cc1fc09a495d9a8c118687ddd0ad781
[ "Apache-2.0" ]
16
2015-02-20T15:54:56.000Z
2022-03-04T15:33:11.000Z
chembl_webservices/resources/source.py
chembl/chembl_webservices_2
59fb52665cc1fc09a495d9a8c118687ddd0ad781
[ "Apache-2.0" ]
144
2015-02-18T22:14:18.000Z
2022-03-07T13:01:20.000Z
chembl_webservices/resources/source.py
chembl/chembl_new_webservices
59fb52665cc1fc09a495d9a8c118687ddd0ad781
[ "Apache-2.0" ]
5
2015-03-03T12:58:29.000Z
2020-11-03T21:16:20.000Z
__author__ = 'mnowotka' from chembl_webservices.core.utils import NUMBER_FILTERS, CHAR_FILTERS from chembl_webservices.core.resource import ChemblModelResource from chembl_webservices.core.meta import ChemblResourceMeta from chembl_webservices.core.serialization import ChEMBLApiSerializer try: from chembl_compatib...
40.235294
120
0.616959
95dc1f888eb490472b7d76b3037663652fd74a66
697
py
Python
core/urls.py
GDSC-BUK/sc-22.forum-service
2202e61003f7b23f2871465e4a110f9083595f5b
[ "MIT" ]
null
null
null
core/urls.py
GDSC-BUK/sc-22.forum-service
2202e61003f7b23f2871465e4a110f9083595f5b
[ "MIT" ]
null
null
null
core/urls.py
GDSC-BUK/sc-22.forum-service
2202e61003f7b23f2871465e4a110f9083595f5b
[ "MIT" ]
null
null
null
from django.urls import path from core.api import ( ReplyDiscussionAPI, RetrieveUpdateDestroyReplyAPI, RetriveUpdateDestroyDiscussionAPI, StartDiscussionAPI, ) app_name = "core" urlpatterns = [ path("discussion/", StartDiscussionAPI.as_view(), name="start_discussion"), path( "discussi...
23.233333
79
0.651363
cb379774c3e3951844d9879b11fb80c58ec330aa
6,215
py
Python
data_utils.py
ggsonic/mellotron
8e93e4c814d984f79e758a8ae57e86d6503eaceb
[ "BSD-3-Clause" ]
null
null
null
data_utils.py
ggsonic/mellotron
8e93e4c814d984f79e758a8ae57e86d6503eaceb
[ "BSD-3-Clause" ]
null
null
null
data_utils.py
ggsonic/mellotron
8e93e4c814d984f79e758a8ae57e86d6503eaceb
[ "BSD-3-Clause" ]
null
null
null
import random import os import re import numpy as np import torch import torch.utils.data import librosa import layers from utils import load_wav_to_torch, load_filepaths_and_text from text import text_to_sequence, cmudict from yin import compute_yin class TextMelLoader(torch.utils.data.Dataset): """ 1) ...
39.08805
94
0.654224
0958c18d0493de42abe4b188e76e9cce9ba5ea42
5,249
py
Python
tools/repl_test.py
fluency03/deno
013c82e700111c79d3646fa7b150f48e142d10de
[ "MIT" ]
null
null
null
tools/repl_test.py
fluency03/deno
013c82e700111c79d3646fa7b150f48e142d10de
[ "MIT" ]
null
null
null
tools/repl_test.py
fluency03/deno
013c82e700111c79d3646fa7b150f48e142d10de
[ "MIT" ]
null
null
null
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import os from subprocess import CalledProcessError, PIPE, Popen import sys import time from util import build_path, executable_suffix, green_ok class Repl(object): def __init__(self, deno_exe): self.deno_exe = deno_exe sel...
31.244048
78
0.560107
129c611f2361887a2e27b25d4a9f1b0b4779d0bc
8,302
py
Python
django_auth_lti/middleware.py
jfmcoronel/django-auth-lti
1dc4a9c11d4c389769149fc43d2d99387b70162f
[ "Apache-2.0" ]
23
2015-04-23T02:09:40.000Z
2022-01-21T20:53:20.000Z
django_auth_lti/middleware.py
jfmcoronel/django-auth-lti
1dc4a9c11d4c389769149fc43d2d99387b70162f
[ "Apache-2.0" ]
22
2015-04-10T21:21:02.000Z
2019-10-28T16:05:26.000Z
django_auth_lti/middleware.py
jfmcoronel/django-auth-lti
1dc4a9c11d4c389769149fc43d2d99387b70162f
[ "Apache-2.0" ]
18
2015-02-05T20:10:16.000Z
2021-09-22T12:40:41.000Z
import logging import json from django.contrib import auth from django.core.exceptions import ImproperlyConfigured from django.conf import settings from .timer import Timer try: from django.utils.deprecation import MiddlewareMixin except ImportError: # Django < 1.10 MiddlewareMixin = object logger = loggi...
59.3
148
0.648398
234e7a5ff826d721ccd6f0e8e5236b662cdeb4eb
4,000
py
Python
tests/test_webhooks.py
marty-2015/django-hurricane
fe05ed1360ad504167aa403c999357eb4f0cdb8b
[ "MIT" ]
30
2020-12-23T21:07:42.000Z
2022-03-24T17:09:43.000Z
tests/test_webhooks.py
marty-2015/django-hurricane
fe05ed1360ad504167aa403c999357eb4f0cdb8b
[ "MIT" ]
60
2021-02-05T13:20:32.000Z
2022-03-24T20:56:48.000Z
tests/test_webhooks.py
marty-2015/django-hurricane
fe05ed1360ad504167aa403c999357eb4f0cdb8b
[ "MIT" ]
3
2021-02-11T10:46:09.000Z
2021-11-04T16:48:15.000Z
import requests from hurricane.testing.drivers import HurricaneServerDriver from hurricane.testing.testcases import HurricaneWebhookServerTest class HurricaneWebhookStartServerTests(HurricaneWebhookServerTest): starting_message = "Started webhook receiver server" @HurricaneWebhookServerTest.cycle_server ...
44.444444
120
0.70825
d0756bfa143865dba44009cabd5359203aa39ca0
443
py
Python
examples/python/basic/image_filter.py
collector-m/cupoch
1b2bb3f806695b93d6d0dd87855cf2a4da8d1ce1
[ "MIT" ]
522
2020-01-19T05:59:00.000Z
2022-03-25T04:36:52.000Z
examples/python/basic/image_filter.py
collector-m/cupoch
1b2bb3f806695b93d6d0dd87855cf2a4da8d1ce1
[ "MIT" ]
87
2020-02-23T09:56:48.000Z
2022-03-25T13:35:15.000Z
examples/python/basic/image_filter.py
collector-m/cupoch
1b2bb3f806695b93d6d0dd87855cf2a4da8d1ce1
[ "MIT" ]
74
2020-01-27T15:33:30.000Z
2022-03-27T11:58:22.000Z
import cupoch as cph import numpy as np img = cph.io.read_image("../../testdata/lena_color.jpg") img.downsample() cph.visualization.draw_geometries([img]) img = cph.io.read_image("../../testdata/lena_gray.jpg") cph.visualization.draw_geometries([img]) g_img = img.filter(cph.geometry.ImageFilterType.Gaussian3) cph.vi...
29.533333
58
0.769752
d29dc4ed09e3b4e8db05c60edb7effea5fac2829
111
py
Python
webapp/settings/local.py
araceli24/TimeWorking
75e25d3710ff58701d844c57686540ffa7a11604
[ "MIT" ]
null
null
null
webapp/settings/local.py
araceli24/TimeWorking
75e25d3710ff58701d844c57686540ffa7a11604
[ "MIT" ]
17
2018-04-30T08:01:36.000Z
2021-06-10T20:25:13.000Z
webapp/settings/local.py
araceli24/TimeWorking
75e25d3710ff58701d844c57686540ffa7a11604
[ "MIT" ]
2
2018-05-02T10:29:03.000Z
2018-05-02T13:02:30.000Z
from .base import * ALLOWED_HOSTS = [ '127.0.0.1', 'localhost', ] INTERNAL_IPS = ( '127.0.0.1', )
11.1
19
0.540541
d6e3c3369154a2e139a4a4eee9ae11a71ad435f6
1,714
py
Python
cogs/askthebot.py
Samrid-Pandit/Samrids-Bot
f0f4dd740111bc328493668899ae047dd68c4776
[ "Apache-2.0" ]
3
2020-10-24T08:58:04.000Z
2020-12-02T14:59:31.000Z
cogs/askthebot.py
Samrid-Pandit/Ihihi-Bot
f0f4dd740111bc328493668899ae047dd68c4776
[ "Apache-2.0" ]
4
2020-10-24T03:58:21.000Z
2020-10-28T11:39:32.000Z
cogs/askthebot.py
Samrid-Pandit/Samrids-Bot
f0f4dd740111bc328493668899ae047dd68c4776
[ "Apache-2.0" ]
1
2020-10-24T08:58:03.000Z
2020-10-24T08:58:03.000Z
from discord.ext import commands import discord import random class askthebot(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(aliases = ['gay','gayr8', 'gae']) @commands.cooldown(1, 5, commands.BucketType.user) async def gayrate(self, ctx, user: discord.Member = None): if user == Non...
28.566667
96
0.663361
649549cccf3bed113c126ff540f2cd319bf9a7d4
18,621
py
Python
pyaf/TS/SignalDecomposition_Cycle.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
pyaf/TS/SignalDecomposition_Cycle.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
pyaf/TS/SignalDecomposition_Cycle.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2016 Antoine Carme <Antoine.Carme@Laposte.net> # All rights reserved. # This file is part of the Python Automatic Forecasting (PyAF) library and is made available under # the terms of the 3 Clause BSD license import pandas as pd import numpy as np from . import Time as tsti from . import Perf as tspe...
45.306569
135
0.619784
192a79387e5fc6493141704c0b6aae70d4b6a9f6
822
py
Python
setup.py
Nburkhal/lambdata
47f079fa3f49506730def1db1a91bbad931fb260
[ "MIT" ]
null
null
null
setup.py
Nburkhal/lambdata
47f079fa3f49506730def1db1a91bbad931fb260
[ "MIT" ]
6
2020-03-24T17:39:48.000Z
2021-09-08T01:24:07.000Z
setup.py
Nburkhal/lambdata
47f079fa3f49506730def1db1a91bbad931fb260
[ "MIT" ]
null
null
null
""" A collection of Data Science helper functions @author: Nick Burkhalter @url: https://github.com/Nburkhal/lambdata """ # Always prefer setuptools over distutils import setuptools REQUIRED = [ 'numpy', 'pandas', 'scikit-learn', 'category-encoders', 'matplotlib', 'seaborn', 'pdpbox', ...
22.833333
64
0.681265
407dee9b3a066a9863a8215dc3f134bf0056bcc4
161
py
Python
yapftests/huawei/huaweistyle/resources/paragraph_2/2_2_a_function_comment_correct_.py
akuleshov7/huawei-yapf
72c188257e2bafa4da9e553ba0ee9b86831c51b8
[ "Apache-2.0" ]
12
2020-04-24T18:12:08.000Z
2021-06-09T16:53:10.000Z
yapftests/huawei/huaweistyle/resources/paragraph_2/2_2_a_function_comment_correct_.py
akuleshov7/h-yapf
72c188257e2bafa4da9e553ba0ee9b86831c51b8
[ "Apache-2.0" ]
1
2020-09-09T19:55:35.000Z
2020-09-14T00:07:29.000Z
yapftests/huawei/huaweistyle/resources/paragraph_2/2_2_a_function_comment_correct_.py
akuleshov7/h-yapf
72c188257e2bafa4da9e553ba0ee9b86831c51b8
[ "Apache-2.0" ]
null
null
null
def some_function(): """ Function description: some description Parameters: Return Value: Exception Description: Change History: """
17.888889
42
0.645963
9fc10540c482aadac9f861e947075535b58c712d
2,857
py
Python
intro-to-pytorch/helper.py
iArunava/Intro-to-Deep-Learning-with-Pytorch-Udacity-Solutions
2149499fa1ed4757362d9b743503718b4a26c3bc
[ "MIT" ]
16
2018-11-22T14:35:45.000Z
2022-02-05T10:40:28.000Z
intro-to-pytorch/helper.py
iArunava/Intro-to-Deep-Learning-with-Pytorch-Udacity-Solutions
2149499fa1ed4757362d9b743503718b4a26c3bc
[ "MIT" ]
null
null
null
intro-to-pytorch/helper.py
iArunava/Intro-to-Deep-Learning-with-Pytorch-Udacity-Solutions
2149499fa1ed4757362d9b743503718b4a26c3bc
[ "MIT" ]
11
2019-02-03T09:16:08.000Z
2020-07-22T21:19:49.000Z
# This helper module is taken from udacity/deep-learning-v2-pytorch/intro-to-pytorch/helper.py # The code here may contain modifications import matplotlib.pyplot as plt import numpy as np from torch import nn, optim from torch.autograd import Variable def test_network(net, trainloader): criterion = nn.MSELoss()...
29.153061
94
0.59013
4728b58b7bfdcb5de67291484c04a21ee2351e39
250
py
Python
manage.py
anoited007/country-dashboard
577bbcc4992e24c484650895fabbcdf4343e1bdb
[ "MIT" ]
16
2017-10-19T03:36:41.000Z
2022-03-03T11:46:20.000Z
manage.py
ChrisAchinga/wazimap
a66a1524030a8b98e7ea0dfb270d1946ca75b3b2
[ "MIT" ]
66
2016-02-15T08:59:29.000Z
2017-09-21T14:00:43.000Z
manage.py
ChrisAchinga/wazimap
a66a1524030a8b98e7ea0dfb270d1946ca75b3b2
[ "MIT" ]
18
2017-10-06T12:26:37.000Z
2021-08-30T01:38:37.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wazimap.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.727273
71
0.772
e6bab8365ae1ee803f7308a6dda547fe2548b2fd
5,624
py
Python
miscellaneous/PDBscraper.py
frumpowy/miscellaneous
07b7a0ae035a13de6bbd4f0f92318e1a5fb6864a
[ "MIT" ]
null
null
null
miscellaneous/PDBscraper.py
frumpowy/miscellaneous
07b7a0ae035a13de6bbd4f0f92318e1a5fb6864a
[ "MIT" ]
null
null
null
miscellaneous/PDBscraper.py
frumpowy/miscellaneous
07b7a0ae035a13de6bbd4f0f92318e1a5fb6864a
[ "MIT" ]
null
null
null
""" This script will submit a query to Protein Data Bank, download all PBD files associated with the keywords and write a summary to a CSV file, which includes structure code, title, resolution, reference DOI, etc. To run it on command line: $ python PDBscraper.py --query "..." --download ... Example: $ python PDBscr...
35.594937
110
0.648293
17473324feccc38a12a2d7ee0d681ebb0b67fd6d
10,801
py
Python
tests/test_rst_compiler.py
magmax/nikola
4cd4584c574cb5ebff8ca90535498ef47dd05a04
[ "MIT" ]
1
2016-09-12T18:10:07.000Z
2016-09-12T18:10:07.000Z
tests/test_rst_compiler.py
magmax/nikola
4cd4584c574cb5ebff8ca90535498ef47dd05a04
[ "MIT" ]
null
null
null
tests/test_rst_compiler.py
magmax/nikola
4cd4584c574cb5ebff8ca90535498ef47dd05a04
[ "MIT" ]
null
null
null
# coding: utf8 # Author: Rodrigo Bistolfi # Date: 03/2013 """ Test cases for Nikola ReST extensions. A base class ReSTExtensionTestCase provides the tests basic behaivor. Subclasses must override the "sample" class attribute with the ReST markup. The sample will be rendered as HTML using publish_parts() by setUp(). O...
35.529605
79
0.612351
3efccdbaba59e551984c10ea06ec55e1f47aaf75
1,008
py
Python
resources/store.py
mahmoudtokura/flask-rest-api
c979286e8a752aa56f841bbe9eafdf6052c4479e
[ "MIT" ]
null
null
null
resources/store.py
mahmoudtokura/flask-rest-api
c979286e8a752aa56f841bbe9eafdf6052c4479e
[ "MIT" ]
null
null
null
resources/store.py
mahmoudtokura/flask-rest-api
c979286e8a752aa56f841bbe9eafdf6052c4479e
[ "MIT" ]
null
null
null
from flask_restful import Resource from models.storemodel import StoreModel class Store(Resource): def get(self, name): store = StoreModel.find_by_name(name) if store: return store.json() else: return {"message": "Store not found"}, 404 def post(self, name): ...
26.526316
61
0.584325
dbfea6a896d55680ab5c5ea1e5b8d093ffe1ba42
9,442
py
Python
pajbot/modules/predict.py
gigglearrows/anniesbot
fb9fb92b827c6c78efebb415f10d015216fb3ba2
[ "MIT" ]
null
null
null
pajbot/modules/predict.py
gigglearrows/anniesbot
fb9fb92b827c6c78efebb415f10d015216fb3ba2
[ "MIT" ]
1
2015-12-24T02:01:21.000Z
2018-02-19T01:08:16.000Z
pajbot/modules/predict.py
gigglearrows/anniesbot
fb9fb92b827c6c78efebb415f10d015216fb3ba2
[ "MIT" ]
null
null
null
import logging import datetime from pajbot.modules import BaseModule from pajbot.models.db import DBManager, Base from pajbot.models.command import Command, CommandExample import sqlalchemy from sqlalchemy import orm from sqlalchemy.orm import relationship, joinedload, backref from sqlalchemy import Column, Integer, ...
50.491979
175
0.654522
9195f5e986eb857cdf9a95aa4ae87e1fd72afe7d
1,127
py
Python
galaxy_utils/sequence/scripts/fastq_paired_end_splitter.py
galaxyproject/sequence_utils
f7e8cd163d27cb6c16a86ae63e5912ffe32e92ba
[ "CC-BY-3.0" ]
5
2015-10-31T11:28:50.000Z
2020-09-08T20:13:48.000Z
galaxy_utils/sequence/scripts/fastq_paired_end_splitter.py
galaxyproject/sequence_utils
f7e8cd163d27cb6c16a86ae63e5912ffe32e92ba
[ "CC-BY-3.0" ]
22
2015-12-09T00:13:48.000Z
2020-02-18T12:25:38.000Z
galaxy_utils/sequence/scripts/fastq_paired_end_splitter.py
galaxyproject/sequence_utils
f7e8cd163d27cb6c16a86ae63e5912ffe32e92ba
[ "CC-BY-3.0" ]
8
2015-10-21T13:22:18.000Z
2020-02-07T09:54:00.000Z
# Dan Blankenberg import sys from galaxy_utils.sequence.fastq import ( fastqReader, fastqSplitter, fastqWriter, ) def main(): # Read command line arguments input_filename = sys.argv[1] input_type = sys.argv[2] or 'sanger' output1_filename = sys.argv[3] output2_filename = sys.argv[4] ...
26.209302
120
0.62378
3791acafa95695c51dff40a3519b9d86b1e08a8f
1,909
py
Python
benchmark/startPyquil2796.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil2796.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil2796.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=43 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=23 prog...
25.453333
64
0.563646
17772207bdc95492a90498ea50aa17ce67006318
185
py
Python
sentimental_analysis/audio/test_AudioAnalyzer.py
se20z09/p3_celt
44925fad94d412d1e48d0319d793e7a5b5b34288
[ "MIT" ]
null
null
null
sentimental_analysis/audio/test_AudioAnalyzer.py
se20z09/p3_celt
44925fad94d412d1e48d0319d793e7a5b5b34288
[ "MIT" ]
19
2020-09-28T21:14:08.000Z
2020-10-27T20:20:33.000Z
sentimental_analysis/audio/test_AudioAnalyzer.py
se20z09/p3_celt
44925fad94d412d1e48d0319d793e7a5b5b34288
[ "MIT" ]
10
2020-09-29T21:52:36.000Z
2021-09-29T01:02:11.000Z
from pydoc import text def speech_to_text(self, filename): return text def sentiment_analyzer_scores(analyser=None): assert score==analyser.polarity_scores(sentence)
20.555556
53
0.756757
fee70c77082862f18b222bc0c6a587726ee059c9
5,342
py
Python
image_classification/ConvMLP/config.py
gdj8510/PaddleViT
6a2c063ddbd7e1d0f271eb4699516493e3fd327f
[ "Apache-2.0" ]
1
2022-01-12T00:46:53.000Z
2022-01-12T00:46:53.000Z
image_classification/ConvMLP/config.py
gdj8510/PaddleViT
6a2c063ddbd7e1d0f271eb4699516493e3fd327f
[ "Apache-2.0" ]
null
null
null
image_classification/ConvMLP/config.py
gdj8510/PaddleViT
6a2c063ddbd7e1d0f271eb4699516493e3fd327f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PPViT 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 l...
29.843575
97
0.703482
a650e241562c87d9e77c8865c8cb037b1b4fe1be
242
py
Python
python-upbit/basic/unit12/01.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
9
2020-10-25T15:13:32.000Z
2022-03-26T11:27:21.000Z
python-upbit/basic/unit12/01.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
null
null
null
python-upbit/basic/unit12/01.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
7
2021-03-01T11:06:45.000Z
2022-03-14T07:06:04.000Z
import pyupbit import pprint f = open("upbit.txt") lines = f.readlines() access = lines[0].strip() secret = lines[1].strip() f.close() upbit = pyupbit.Upbit(access, secret) resp = upbit.buy_market_order("KRW-XRP", 10000) pprint.pprint(resp)
20.166667
47
0.719008
2b2eac080b6ec01006676a63defb95793630017f
38,582
py
Python
src/robot/libraries/Process.py
ncbi/robotframework
f5426d54f92dfa884615cea4eae08023b23a1b2e
[ "ECL-2.0", "Apache-2.0" ]
4
2016-01-13T13:48:28.000Z
2021-09-05T07:14:07.000Z
src/robot/libraries/Process.py
ncbi/robotframework
f5426d54f92dfa884615cea4eae08023b23a1b2e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/libraries/Process.py
ncbi/robotframework
f5426d54f92dfa884615cea4eae08023b23a1b2e
[ "ECL-2.0", "Apache-2.0" ]
2
2018-01-18T22:00:17.000Z
2018-07-26T10:53:00.000Z
# Copyright 2008-2014 Nokia Solutions and Networks # # 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 l...
43.843182
111
0.628998
58adfc497b54251db4d9d3004b471a7044f5020f
1,220
py
Python
main/migrations/0005_auto_20171108_0714.py
julian-londono/Capital_One_Optimization
8853e45919c1ec972b4a02c6678e0233fb8984e9
[ "MIT" ]
1
2018-10-21T02:59:13.000Z
2018-10-21T02:59:13.000Z
main/migrations/0005_auto_20171108_0714.py
julian-londono/Capital_One_Optimization
8853e45919c1ec972b4a02c6678e0233fb8984e9
[ "MIT" ]
null
null
null
main/migrations/0005_auto_20171108_0714.py
julian-londono/Capital_One_Optimization
8853e45919c1ec972b4a02c6678e0233fb8984e9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-08 07:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0004_auto_20171108_0659'), ] operations = [ migrations.AlterField( ...
29.756098
85
0.586066
f811cc7e878ee34c7bc9b274997e8c2679d46bc9
2,050
py
Python
tests/test_day06.py
FollowTheProcess/advent_of_code_2021
27427bf76732f5257d369a9455dbbb337dd7a0bc
[ "MIT" ]
null
null
null
tests/test_day06.py
FollowTheProcess/advent_of_code_2021
27427bf76732f5257d369a9455dbbb337dd7a0bc
[ "MIT" ]
null
null
null
tests/test_day06.py
FollowTheProcess/advent_of_code_2021
27427bf76732f5257d369a9455dbbb337dd7a0bc
[ "MIT" ]
null
null
null
from src.day06.day06 import State, simulate def test_state_parse(): input = "3,4,3,1,2\n" assert State.parse(input) == State(current=[3, 4, 3, 1, 2]) def test_get_zeros(): current = [3, 4, 0, 1, 4, 0, 3, 1, 7, 0] # Want the indices of every 0 want = [2, 5, 9] state = State(current=current...
26.973684
87
0.444878
feeb8fe1419a94ba252dbdc0f308012d41e52f94
5,380
py
Python
akshare/stock_feature/stock_em_analyst.py
szj2ys/akshare
d61ccbff50539bff1e07ffd15b841921b4846958
[ "MIT" ]
1
2021-11-30T06:33:53.000Z
2021-11-30T06:33:53.000Z
akshare/stock_feature/stock_em_analyst.py
HustCoderHu/akshare
0ae3a936af2f552e1c41e2f10a0097f35d897c3b
[ "MIT" ]
null
null
null
akshare/stock_feature/stock_em_analyst.py
HustCoderHu/akshare
0ae3a936af2f552e1c41e2f10a0097f35d897c3b
[ "MIT" ]
1
2021-01-21T06:04:15.000Z
2021-01-21T06:04:15.000Z
# -*- coding:utf-8 -*- # /usr/bin/env python """ Date: 2020/11/15 13:39 Desc: 东方财富网-数据中心-研究报告-东方财富分析师指数 http://data.eastmoney.com/invest/invest/list.html """ import pandas as pd import requests def stock_em_analyst_rank(year: str = '2020') -> pd.DataFrame: """ 东方财富网-数据中心-研究报告-东方财富分析师指数-东方财富分析师指数2020最新排行 h...
28.465608
139
0.521004
033c7e4655dbc54d78747622531988cf988af810
3,731
py
Python
plotly/tests/test_core/test_api/test_v2/test_files.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
1
2018-07-16T01:51:47.000Z
2018-07-16T01:51:47.000Z
plotly/tests/test_core/test_api/test_v2/test_files.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/tests/test_core/test_api/test_v2/test_files.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
1
2019-02-18T04:12:56.000Z
2019-02-18T04:12:56.000Z
from __future__ import absolute_import from plotly.api.v2 import files from plotly.tests.test_core.test_api import PlotlyApiTestCase class FilesTest(PlotlyApiTestCase): def setUp(self): super(FilesTest, self).setUp() # Mock the actual api call, we don't want to do network tests here. se...
35.533333
78
0.61324
7718dff260fec8778e57ab9a14df05e5c41f32d3
7,804
py
Python
user/user.py
heicat1337/BiliLiveBot
68474226cda7f76140911dbc1b0a608371c84110
[ "MIT" ]
63
2020-02-12T15:41:27.000Z
2022-03-19T14:22:07.000Z
user/user.py
heicat1337/BiliLiveBot
68474226cda7f76140911dbc1b0a608371c84110
[ "MIT" ]
16
2020-02-14T14:02:46.000Z
2022-01-10T11:38:00.000Z
user/user.py
heicat1337/BiliLiveBot
68474226cda7f76140911dbc1b0a608371c84110
[ "MIT" ]
18
2020-02-18T04:52:33.000Z
2022-03-02T04:28:45.000Z
import asyncio import json from itertools import count from typing import Callable, Optional import conf_loader import exceptions import printer from tasks.login import LoginTask from web_session import WebSession from .platform import AppPlatform, PcPlatform, TvPlatform # user.toml 里面的东西全在self.dict_user里面,与 user 一...
41.073684
116
0.614172
c1934b07b518d424b37a7a052d684195b42dd3bd
608
py
Python
momoko/__init__.py
Tsumanga-Studios/momoko
d967fc17251d013680aea648a36a4f4914226ba1
[ "MIT" ]
null
null
null
momoko/__init__.py
Tsumanga-Studios/momoko
d967fc17251d013680aea648a36a4f4914226ba1
[ "MIT" ]
null
null
null
momoko/__init__.py
Tsumanga-Studios/momoko
d967fc17251d013680aea648a36a4f4914226ba1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ momoko ====== Momoko wraps Psycopg2's functionality for use in Tornado. Copyright 2011-2013 by Frank Smit. MIT, see LICENSE for more details. """ import psycopg2 from psycopg2 import ProgrammingError from .connection import Pool, Connection from .exceptions import PoolError from .utils i...
22.518519
71
0.736842
9b932d4bc85bf4256a9cbecc55e9a829188aad4f
4,741
py
Python
kalliope/neurons/neurotimer/neurotimer.py
joshuaboniface/kalliope
0e040be3165e838485d1e5addc4d2c5df12bfd84
[ "MIT" ]
1
2020-03-30T15:03:19.000Z
2020-03-30T15:03:19.000Z
kalliope/neurons/neurotimer/neurotimer.py
joshuaboniface/kalliope
0e040be3165e838485d1e5addc4d2c5df12bfd84
[ "MIT" ]
null
null
null
kalliope/neurons/neurotimer/neurotimer.py
joshuaboniface/kalliope
0e040be3165e838485d1e5addc4d2c5df12bfd84
[ "MIT" ]
null
null
null
import logging import sys import threading import time from kalliope.core import NeuronModule from kalliope.core.NeuronModule import MissingParameterException, InvalidParameterException logging.basicConfig() logger = logging.getLogger("kalliope") class TimerThread(threading.Thread): def __init__(self, time_to_w...
37.330709
110
0.639317
ba43a057ca3a6106ffb0b3b2ed9378abfe24ab3c
16,551
py
Python
homeassistant/helpers/config_entry_oauth2_flow.py
jamesmyatt/core
12da814470b7b4bb13b4d18b098aa4938c8a34ac
[ "Apache-2.0" ]
null
null
null
homeassistant/helpers/config_entry_oauth2_flow.py
jamesmyatt/core
12da814470b7b4bb13b4d18b098aa4938c8a34ac
[ "Apache-2.0" ]
4
2022-03-01T06:32:53.000Z
2022-03-31T06:30:35.000Z
homeassistant/helpers/config_entry_oauth2_flow.py
jamesmyatt/core
12da814470b7b4bb13b4d18b098aa4938c8a34ac
[ "Apache-2.0" ]
null
null
null
"""Config Flow using OAuth2. This module exists of the following parts: - OAuth2 config flow which supports multiple OAuth2 implementations - OAuth2 implementation that works with local provided client ID/secret """ from abc import ABC, ABCMeta, abstractmethod import asyncio import logging import secrets import tim...
32.709486
93
0.650595
9f142ad07eac065622312206def240afbc96537b
1,682
py
Python
thermo/management/commands/get_weather.py
tprzybylek/RPi_thermometer
4dc59985accdd5838b11877f128e0cbe80af79ca
[ "MIT" ]
null
null
null
thermo/management/commands/get_weather.py
tprzybylek/RPi_thermometer
4dc59985accdd5838b11877f128e0cbe80af79ca
[ "MIT" ]
4
2021-03-30T13:01:41.000Z
2021-09-22T18:48:51.000Z
thermo/management/commands/get_weather.py
tprzybylek/RPi_thermometer
4dc59985accdd5838b11877f128e0cbe80af79ca
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from thermo.models import Record from datetime import datetime, timedelta from django.db.models import Q import pytz import requests class Command(BaseCommand): help = 'Retrieves weather data from OpenWeatherMap' def handle(self, *args, **options): ...
32.346154
109
0.56956
57120b4d1a1c73d193b5dc7985fd75b60044bf58
2,251
py
Python
forms/forms110.py
VoprosiKira/l2
49f3624b4b2d25329a8e3aa166b03735cf759c37
[ "MIT" ]
null
null
null
forms/forms110.py
VoprosiKira/l2
49f3624b4b2d25329a8e3aa166b03735cf759c37
[ "MIT" ]
null
null
null
forms/forms110.py
VoprosiKira/l2
49f3624b4b2d25329a8e3aa166b03735cf759c37
[ "MIT" ]
null
null
null
from reportlab.lib.pagesizes import A4 from forms.sql_func import get_extra_notification_data_for_pdf from reportlab.lib.styles import getSampleStyleSheet from reportlab.lib import colors from reportlab.lib.units import mm from reportlab.lib.enums import TA_JUSTIFY from forms.views import get_epid_data from laboratory...
34.106061
189
0.668147
6dcb66d99a2889da896cc1bd9d6a9710e68cf030
27,185
py
Python
sidpy/hdf/dtype_utils.py
ondrejdyck/sidpy
779034440b8233e1dae609a58a64ce2d25ca41c0
[ "MIT" ]
5
2020-10-07T14:34:32.000Z
2021-11-17T11:25:06.000Z
sidpy/hdf/dtype_utils.py
ondrejdyck/sidpy
779034440b8233e1dae609a58a64ce2d25ca41c0
[ "MIT" ]
94
2020-07-31T17:34:23.000Z
2022-02-11T21:57:09.000Z
sidpy/hdf/dtype_utils.py
ondrejdyck/sidpy
779034440b8233e1dae609a58a64ce2d25ca41c0
[ "MIT" ]
15
2020-08-16T14:22:47.000Z
2021-08-20T18:15:37.000Z
# -*- coding: utf-8 -*- """ Utilities for transforming and validating data types Given that many of the data transformations involve copying the data, they should ideally happen in a lazy manner to avoid memory issues. Created on Tue Nov 3 21:14:25 2015 @author: Suhas Somnath, Chris Smith """ from __future__ impor...
41.12708
143
0.634872
ba65fc8806ad47ab257dc5956c5ff0cb759e6f83
2,603
py
Python
pydrr/GeometryContext.py
yuta-hi/pycuda_drr
08cc20c651d4288be67c40e4936f4280b04eec6f
[ "MIT" ]
16
2019-12-14T09:24:43.000Z
2022-03-11T04:31:48.000Z
pydrr/GeometryContext.py
yuta-hi/pycuda_drr
08cc20c651d4288be67c40e4936f4280b04eec6f
[ "MIT" ]
6
2020-07-05T16:59:45.000Z
2021-04-21T11:20:31.000Z
pydrr/GeometryContext.py
yuta-hi/pycuda_drr
08cc20c651d4288be67c40e4936f4280b04eec6f
[ "MIT" ]
2
2020-07-13T09:11:44.000Z
2022-02-20T07:14:04.000Z
import numpy as np from . import utils class GeometryContext: def __init__(self): self.SOD_ = 0.0 self.SDD_ = 0.0 self.pixel_spacing_ = (1.0, 1.0) self.image_size_ = (1024, 1024) self.view_matrix_ = np.eye(4,4, dtype=np.float32) self.intrinsic_ = None ...
26.03
101
0.609681
9026659b28aff9c04d705f4afae884168fcdbbb2
3,626
py
Python
backend/apps/volontulo/tests/views/api/organizations/test_list.py
Simon323/volontulo
7a9eb2d201a1745ad18dd79c9ff4014031dbd195
[ "MIT" ]
null
null
null
backend/apps/volontulo/tests/views/api/organizations/test_list.py
Simon323/volontulo
7a9eb2d201a1745ad18dd79c9ff4014031dbd195
[ "MIT" ]
null
null
null
backend/apps/volontulo/tests/views/api/organizations/test_list.py
Simon323/volontulo
7a9eb2d201a1745ad18dd79c9ff4014031dbd195
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ .. module:: test_list """ from rest_framework import status from rest_framework.test import APITestCase from apps.volontulo.tests.views.offers.commons import TestOffersCommons class _TestOrganizationsListAPIView(TestOffersCommons, APITestCase): """Tests for REST API's list organiza...
33.266055
79
0.690292
86d248e9f8fcd095ebd3753ddcdef27c368a9f7d
1,362
py
Python
sdk/ingestion/microsoft/bing/commerce/ingestion/models/schema_detection_response.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
1
2020-05-04T09:58:07.000Z
2020-05-04T09:58:07.000Z
sdk/ingestion/microsoft/bing/commerce/ingestion/models/schema_detection_response.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
2
2020-04-21T02:32:32.000Z
2020-04-21T19:37:54.000Z
sdk/ingestion/microsoft/bing/commerce/ingestion/models/schema_detection_response.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
4
2020-07-31T10:39:22.000Z
2021-11-10T08:14:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. #...
36.810811
106
0.599119
d6fb88d579e9ae53329cd82825a8be3f1b9db84e
2,896
py
Python
tests/integration/offer/shipping_benefit_tests.py
ahmetdaglarbas/e-commerce
ff190244ccd422b4e08d7672f50709edcbb6ebba
[ "BSD-3-Clause" ]
2
2015-12-11T00:19:15.000Z
2021-11-14T19:44:42.000Z
tests/integration/offer/shipping_benefit_tests.py
ahmetdaglarbas/e-commerce
ff190244ccd422b4e08d7672f50709edcbb6ebba
[ "BSD-3-Clause" ]
null
null
null
tests/integration/offer/shipping_benefit_tests.py
ahmetdaglarbas/e-commerce
ff190244ccd422b4e08d7672f50709edcbb6ebba
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal as D from django.test import TestCase from django.test.client import RequestFactory import mock from oscar.apps.offer import models, utils from oscar.apps.order.utils import OrderCreator from oscar.apps.shipping.repository import Repository from oscar.apps.shipping.methods import FixedPric...
34.070588
78
0.703729
4d2488c387475fed0f30a9f48dc558b6d00efa92
4,297
py
Python
salt/loader_context.py
JochemGit/salt
d159b93ca77be3ec04cc5d349be82c210ffeb49d
[ "Apache-2.0" ]
2
2015-08-21T01:05:03.000Z
2015-09-02T07:30:45.000Z
salt/loader_context.py
JochemGit/salt
d159b93ca77be3ec04cc5d349be82c210ffeb49d
[ "Apache-2.0" ]
4
2021-02-06T14:30:48.000Z
2021-12-13T20:50:10.000Z
salt/loader_context.py
JochemGit/salt
d159b93ca77be3ec04cc5d349be82c210ffeb49d
[ "Apache-2.0" ]
1
2020-06-02T14:15:24.000Z
2020-06-02T14:15:24.000Z
""" Manage the context a module loaded by Salt's loader """ import collections.abc import contextlib import contextvars DEFAULT_CTX_VAR = "loader_ctxvar" loader_ctxvar = contextvars.ContextVar(DEFAULT_CTX_VAR) @contextlib.contextmanager def loader_context(loader): """ A context manager that sets and un-sets...
27.369427
102
0.627647
752a41d5e66914345312c169dcc5466b22a36637
1,515
py
Python
ppci/arch/jvm/printer.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
161
2020-05-31T03:29:42.000Z
2022-03-07T08:36:19.000Z
ppci/arch/jvm/printer.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
74
2020-05-26T18:05:48.000Z
2021-02-13T21:55:39.000Z
ppci/arch/jvm/printer.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
19
2020-05-27T19:22:11.000Z
2022-02-17T18:53:52.000Z
""" Functions to print class contents in a verbose way. """ def print_class_file(class_file): """ Dump a class file. """ ClassFilePrinter(class_file) class ClassFilePrinter: def __init__(self, class_file): self.class_file = class_file class_info = class_file.get_constant(class_file.this_...
32.934783
74
0.60132
fe3a3a9bd27d57285d7b190b681d0431c6e73d74
806
py
Python
Ex075.py
raphaeltertuliano/Python
ffa9813aaa13ccca807f7c08be9489a2d88d3d62
[ "MIT" ]
1
2021-11-23T21:38:46.000Z
2021-11-23T21:38:46.000Z
Ex075.py
raphaeltertuliano/Python
ffa9813aaa13ccca807f7c08be9489a2d88d3d62
[ "MIT" ]
null
null
null
Ex075.py
raphaeltertuliano/Python
ffa9813aaa13ccca807f7c08be9489a2d88d3d62
[ "MIT" ]
null
null
null
#Desenvolva um programa que leia quatro valores pelo teclado #e guarde-os em uma tupla. No final mostre: #A)-Quantas vezes apareceu o valor 9 #B)-Em que posição foi digitado o primeiro valor 3 #C)-Quais foram os números pares num = (int(input('Digite um número: ')), int(input('Digite um número: ')), int(...
33.583333
78
0.653846
f6fafb60a333f5ff97de5f1aed1948aed49dc4c7
979
py
Python
expyfun/__init__.py
nordme/expyfun
e644bba8cbfb6edd2a076099536417d4854d64af
[ "BSD-3-Clause" ]
2
2015-12-31T07:56:16.000Z
2016-08-22T17:23:02.000Z
expyfun/__init__.py
nordme/expyfun
e644bba8cbfb6edd2a076099536417d4854d64af
[ "BSD-3-Clause" ]
6
2015-02-18T04:25:46.000Z
2017-01-25T01:00:35.000Z
expyfun/__init__.py
nordme/expyfun
e644bba8cbfb6edd2a076099536417d4854d64af
[ "BSD-3-Clause" ]
1
2015-12-31T07:56:20.000Z
2015-12-31T07:56:20.000Z
""" Experiment control ================== Experiment control functions. """ from ._version import __version__ # have to import verbose first since it's needed by many things from ._utils import (set_log_level, set_log_file, set_config, check_units, get_config, get_config_path, fetch_data_file, ...
31.580645
76
0.754852
f3954927662d7fb9cd55f42b2cfd03b7ceac3990
1,309
py
Python
Lib/site-packages/sphinx/util/rst.py
TencentCodeDog/win-Python-v2.7.13
13dfc85fee2537ea352e6058bc25e6f94bb3f467
[ "bzip2-1.0.6" ]
1
2019-01-12T13:17:32.000Z
2019-01-12T13:17:32.000Z
venv/Lib/site-packages/sphinx/util/rst.py
prats1997/Euphorum
16bfee9c71ea5b1332c6263233c79a633ddfdd83
[ "MIT" ]
7
2020-03-24T15:50:06.000Z
2021-06-08T19:57:39.000Z
venv/Lib/site-packages/sphinx/util/rst.py
prats1997/Euphorum
16bfee9c71ea5b1332c6263233c79a633ddfdd83
[ "MIT" ]
2
2018-07-19T16:53:00.000Z
2018-08-02T21:59:44.000Z
# -*- coding: utf-8 -*- """ sphinx.util.rst ~~~~~~~~~~~~~~~ reST helper functions. :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import absolute_import import re from contextlib import contextmanager from docutils.par...
25.666667
79
0.647059
7985efa0f7c14f6239771375971c057dfa0f5a13
54,983
py
Python
gensrc/script/vectorized/vectorized_functions.py
niexiongchao/starRocks
afecea80e50ee505261fffc3cff5f546ee285475
[ "Zlib", "PSF-2.0", "Apache-2.0" ]
null
null
null
gensrc/script/vectorized/vectorized_functions.py
niexiongchao/starRocks
afecea80e50ee505261fffc3cff5f546ee285475
[ "Zlib", "PSF-2.0", "Apache-2.0" ]
null
null
null
gensrc/script/vectorized/vectorized_functions.py
niexiongchao/starRocks
afecea80e50ee505261fffc3cff5f546ee285475
[ "Zlib", "PSF-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited. # The format is: # <function id> <name>, <return_type>, [<args>], <backend fn>, # With an optional # <prepare fn>, <close fn> # # example: # [1, "add", "TINYINT", ["TINYINT",...
77.223315
182
0.652165
8924b1fecbeeee766a9c091702e1d158b0881832
707
py
Python
python--learnings/coding-practice/hourglass_sums.py
jekhokie/scriptbox
93c03d8ab9b7e7cd9c5c6a65b444392ffe92fd70
[ "MIT" ]
11
2020-03-29T09:12:25.000Z
2022-03-24T01:01:50.000Z
python--learnings/coding-practice/hourglass_sums.py
jekhokie/scriptbox
93c03d8ab9b7e7cd9c5c6a65b444392ffe92fd70
[ "MIT" ]
5
2021-06-02T03:41:51.000Z
2022-02-26T03:48:50.000Z
python--learnings/coding-practice/hourglass_sums.py
jekhokie/scriptbox
93c03d8ab9b7e7cd9c5c6a65b444392ffe92fd70
[ "MIT" ]
8
2019-02-01T13:33:14.000Z
2021-12-14T20:16:03.000Z
#!/usr/bin/env python # # Given a 6x6 array, find sum of all hourglass values where an hourglass is: # X X X # X # X X X # import math import os import random import re import sys # Complete the hourglassSum function below. def hourglassSum(arr): sum_vals = [] for x in range(1, 5): for y in...
22.09375
116
0.570014
faea131b4a7856c0f22a87570d0fcac3693cba59
172
py
Python
cookiecutter/fileupload/admin.py
binygreenberg/cookiecutter
ed32c55505dc49faaf75cb6739c30e98f995969d
[ "MIT" ]
null
null
null
cookiecutter/fileupload/admin.py
binygreenberg/cookiecutter
ed32c55505dc49faaf75cb6739c30e98f995969d
[ "MIT" ]
null
null
null
cookiecutter/fileupload/admin.py
binygreenberg/cookiecutter
ed32c55505dc49faaf75cb6739c30e98f995969d
[ "MIT" ]
null
null
null
from .models import Picture from django.contrib import admin @admin.register(Picture) class MyPictureAdmin(admin.ModelAdmin): list_display = ('profile','slug','file')
24.571429
44
0.767442
f299c576b66a3595cc5ef78f557f55a4349a8138
5,190
py
Python
uiautomation/pages/tmhomepage.py
fingerella2000/e2enuggets
8f2c6a88106985a3409bb032de1d2b9b7dcfb2fe
[ "MIT" ]
null
null
null
uiautomation/pages/tmhomepage.py
fingerella2000/e2enuggets
8f2c6a88106985a3409bb032de1d2b9b7dcfb2fe
[ "MIT" ]
null
null
null
uiautomation/pages/tmhomepage.py
fingerella2000/e2enuggets
8f2c6a88106985a3409bb032de1d2b9b7dcfb2fe
[ "MIT" ]
null
null
null
from uiautomation.pages.basepage import BasePage from uiautomation.common import Constants from uiautomation.elements import BasePageElement from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0 from se...
45.526316
135
0.705588
891f85e9ac5ee1f4f9889cab4c551b2b23103bd4
9,694
py
Python
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/msrplistenerdomains.py
kakkotetsu/IxNetwork
f9fb614b51bb8988af035967991ad36702933274
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/msrplistenerdomains.py
kakkotetsu/IxNetwork
f9fb614b51bb8988af035967991ad36702933274
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/msrplistenerdomains.py
kakkotetsu/IxNetwork
f9fb614b51bb8988af035967991ad36702933274
[ "MIT" ]
null
null
null
# Copyright 1997 - 2018 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, p...
36.037175
190
0.737466
1a3d58f84d4056a1a8d51ee22a6bc740357a6f05
5,082
py
Python
src/transformers/models/reformer/tokenization_reformer_fast.py
timpal0l/transformers
d86d57faa3b6511c6e4d9139535d77b695b9af8a
[ "Apache-2.0" ]
2
2020-11-28T12:51:07.000Z
2020-11-28T12:52:14.000Z
src/transformers/models/reformer/tokenization_reformer_fast.py
timpal0l/transformers
d86d57faa3b6511c6e4d9139535d77b695b9af8a
[ "Apache-2.0" ]
1
2020-11-12T11:00:12.000Z
2020-11-12T11:00:12.000Z
src/transformers/models/reformer/tokenization_reformer_fast.py
timpal0l/transformers
d86d57faa3b6511c6e4d9139535d77b695b9af8a
[ "Apache-2.0" ]
1
2020-11-17T02:48:00.000Z
2020-11-17T02:48:00.000Z
# coding=utf-8 # Copyright 2020 The Trax Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
38.793893
128
0.654073
6ca5de09096f221f24fb3ffd45968b6d8837860a
2,850
py
Python
python/games/flappypixel.py
umbc-hackafe/sign-drivers
cd2a80a455a0956f23afb5dc15eb67f48c69f289
[ "MIT" ]
null
null
null
python/games/flappypixel.py
umbc-hackafe/sign-drivers
cd2a80a455a0956f23afb5dc15eb67f48c69f289
[ "MIT" ]
1
2015-08-17T16:28:45.000Z
2015-08-17T16:28:45.000Z
python/games/flappypixel.py
umbc-hackafe/sign-drivers
cd2a80a455a0956f23afb5dc15eb67f48c69f289
[ "MIT" ]
null
null
null
import graphics import driver import game import random import string class FlappyPixel(game.Game): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.reset() def reset(self): self.sprites.clear() self.playing = True self.flappy = grap...
30.645161
126
0.512281