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
931cd74ff818d56f496659aa2ccc37d5b7e61660
1,289
py
Python
onmt/inputters/__init__.py
phuongnm-bkhn/OpenNMT-py
554a826139f1bfc55f4ea6a3e7491858c2afec4c
[ "MIT" ]
null
null
null
onmt/inputters/__init__.py
phuongnm-bkhn/OpenNMT-py
554a826139f1bfc55f4ea6a3e7491858c2afec4c
[ "MIT" ]
null
null
null
onmt/inputters/__init__.py
phuongnm-bkhn/OpenNMT-py
554a826139f1bfc55f4ea6a3e7491858c2afec4c
[ "MIT" ]
null
null
null
"""Module defining inputters. Inputters implement the logic of transforming raw data to vectorized inputs, e.g., from a line of text to a sequence of embeddings. """ from onmt.inputters.inputter import \ load_old_vocab, get_fields, OrderedIterator, \ build_vocab, old_style_vocab, filter_example, build_vocab_sr...
42.966667
77
0.757176
50fc89756ddcc9590d255bffbd390742e6982207
2,628
py
Python
colcon_alias/verb/alias_invocation.py
colcon/colcon-alias
6cd8e007444237b3e95a15a4227fab255f3192d1
[ "Apache-2.0" ]
null
null
null
colcon_alias/verb/alias_invocation.py
colcon/colcon-alias
6cd8e007444237b3e95a15a4227fab255f3192d1
[ "Apache-2.0" ]
null
null
null
colcon_alias/verb/alias_invocation.py
colcon/colcon-alias
6cd8e007444237b3e95a15a4227fab255f3192d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Scott K Logan # Licensed under the Apache License, Version 2.0 from colcon_core.argument_parser import SuppressUsageOutput from colcon_core.command import add_parser_arguments from colcon_core.command import add_parsers_without_arguments from colcon_core.command import CommandContext from colcon_core....
40.430769
77
0.671994
6fbf0d80f7a474e17315efd8ba92fe5a6aa634a2
1,014
py
Python
cources/20181212/todo_list/TodoList.py
YDSS/python_lessons
ef2fa442c18d408bb46bb33dfda47e718f37d251
[ "MIT" ]
null
null
null
cources/20181212/todo_list/TodoList.py
YDSS/python_lessons
ef2fa442c18d408bb46bb33dfda47e718f37d251
[ "MIT" ]
null
null
null
cources/20181212/todo_list/TodoList.py
YDSS/python_lessons
ef2fa442c18d408bb46bb33dfda47e718f37d251
[ "MIT" ]
1
2019-10-21T02:33:26.000Z
2019-10-21T02:33:26.000Z
#coding=utf-8 from Todo import * class TodoList(): __list = {} # 存放所有的todo项 def __init__(self, list=None): self.__list = list or {} def add(self, desc): "新增一个todo项" todo = Todo(desc) # 创建一个新的todo项实例 id = todo.getId() self.__list[id] = todo ...
20.693878
62
0.516765
65b13daaae1a3751f065f158900bedccbece55a4
4,742
py
Python
deeplearning/ncc/task_utils_test.py
Zacharias030/ProGraML
cd99d2c5362acd0b24ee224492bb3e8c4d4736fb
[ "Apache-2.0" ]
null
null
null
deeplearning/ncc/task_utils_test.py
Zacharias030/ProGraML
cd99d2c5362acd0b24ee224492bb3e8c4d4736fb
[ "Apache-2.0" ]
2
2020-07-27T08:22:06.000Z
2020-07-30T17:34:35.000Z
deeplearning/ncc/task_utils_test.py
Zacharias030/ProGraML
cd99d2c5362acd0b24ee224492bb3e8c4d4736fb
[ "Apache-2.0" ]
1
2020-06-05T04:58:13.000Z
2020-06-05T04:58:13.000Z
"""Unit tests for //deeplearning/ncc:task_utils.""" import pathlib import pytest from deeplearning.ncc import task_utils from deeplearning.ncc import vocabulary from labm8.py import app from labm8.py import bazelutil from labm8.py import test FLAGS = app.FLAGS VOCABULARY_PATH = bazelutil.DataPath( "phd/deeplearni...
40.186441
528
0.702024
9d4656da61c5c13533b6ad995d3dd3a06a516d15
17,502
py
Python
azure/mgmt/network/v2017_08_01/operations/virtual_network_peerings_operations.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
azure/mgmt/network/v2017_08_01/operations/virtual_network_peerings_operations.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
azure/mgmt/network/v2017_08_01/operations/virtual_network_peerings_operations.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
48.082418
198
0.678265
221a3cfed17c9f234f6754bb648e00a239333054
6,225
py
Python
lingvo/tasks/asr/input_generator.py
nemo628/lingvo
1d5d6b7f9560289889e8368e5b257eee4df6ce18
[ "Apache-2.0" ]
1
2020-08-04T08:39:35.000Z
2020-08-04T08:39:35.000Z
lingvo/tasks/asr/input_generator.py
nemo628/lingvo
1d5d6b7f9560289889e8368e5b257eee4df6ce18
[ "Apache-2.0" ]
null
null
null
lingvo/tasks/asr/input_generator.py
nemo628/lingvo
1d5d6b7f9560289889e8368e5b257eee4df6ce18
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2018 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 # ...
37.053571
90
0.691888
39dceeb3e3b3e7455589b8024a651c7cc0324ed0
2,542
py
Python
appart/formatChecker.py
kozlyuk/appart
4a02cd31035949eaf5966f5b1975e1c6430b4d40
[ "MIT" ]
null
null
null
appart/formatChecker.py
kozlyuk/appart
4a02cd31035949eaf5966f5b1975e1c6430b4d40
[ "MIT" ]
4
2021-03-30T13:42:02.000Z
2021-09-22T19:19:17.000Z
appart/formatChecker.py
kozlyuk/appart
4a02cd31035949eaf5966f5b1975e1c6430b4d40
[ "MIT" ]
null
null
null
from django.db.models import FileField from django.forms import forms from django.template.defaultfilters import filesizeformat from django.utils.translation import ugettext_lazy as _ class ContentTypeRestrictedFileField(FileField): """ Same as FileField, but you can specify: * content_types - list contai...
36.84058
115
0.614477
542484c0f27dba48fed17646cae582a47f576df4
521
py
Python
pysimplegui/api_element_shortcuts.py
CrazyJ36/python
4cff6e7240672a273d978521bb511065f45d4312
[ "MIT" ]
null
null
null
pysimplegui/api_element_shortcuts.py
CrazyJ36/python
4cff6e7240672a273d978521bb511065f45d4312
[ "MIT" ]
null
null
null
pysimplegui/api_element_shortcuts.py
CrazyJ36/python
4cff6e7240672a273d978521bb511065f45d4312
[ "MIT" ]
null
null
null
import PySimpleGUIWeb as sg layout = [ [sg.Txt('Welcome')], # A page header. pysimpleguiweb/remi expect this at top. # If no header text was here, any text would be placed oddly. [sg.T('Text widget element instantiated with T() instead of Text().')] ] window = sg.Window('Page Title', lay...
22.652174
84
0.652591
b90ead51076d56759f73807b905ac8dd0fb29ec3
660
py
Python
spring21/lab/utils.py
the-data-science-union/dsu-mlpp
fb1bd4022b20a74b90e98bc8798a8586fcf8f197
[ "MIT" ]
null
null
null
spring21/lab/utils.py
the-data-science-union/dsu-mlpp
fb1bd4022b20a74b90e98bc8798a8586fcf8f197
[ "MIT" ]
37
2021-01-27T19:10:52.000Z
2021-03-08T01:09:06.000Z
spring21/lab/utils.py
the-data-science-union/dsu-mlpp
fb1bd4022b20a74b90e98bc8798a8586fcf8f197
[ "MIT" ]
2
2021-03-04T02:02:40.000Z
2021-04-21T04:55:41.000Z
def batch(iterable, n=1): l = len(iterable) for ndx in range(0, l, n): yield iterable[ndx:min(ndx + n, l)] import time class Stopwatch(): def __init__(self): self.reset() def start(self): if self.start_time is None: self.start_time = time.p...
23.571429
65
0.54697
f007201340cafc7373b160a2dc323349b0368ce2
1,064
py
Python
pybamm/expression_tree/exceptions.py
jedgedrudd/PyBaMM
79c9d34978382d50e09adaf8bf74c8fa4723f759
[ "BSD-3-Clause" ]
1
2019-10-29T19:06:04.000Z
2019-10-29T19:06:04.000Z
pybamm/expression_tree/exceptions.py
jedgedrudd/PyBaMM
79c9d34978382d50e09adaf8bf74c8fa4723f759
[ "BSD-3-Clause" ]
null
null
null
pybamm/expression_tree/exceptions.py
jedgedrudd/PyBaMM
79c9d34978382d50e09adaf8bf74c8fa4723f759
[ "BSD-3-Clause" ]
null
null
null
# # Exception classes # class DomainError(Exception): """Domain error: an operation was attempted on nodes with un-matched domains""" pass class OptionError(Exception): """Option error: an unknown option was given""" pass class GeometryError(Exception): """ Geometry error: Raised if ...
17.16129
86
0.671053
43a39e9e186326fc03a0f2fdc19ae97d58aafaa3
4,931
py
Python
2020/030_10bit_ramp_from_12bit_HEVC/DV17_Decode.py
toru-ver4/sample_code
9165b4cb07a3cb1b3b5a7f6b3a329be081bddabe
[ "BSD-3-Clause" ]
19
2019-11-12T23:34:35.000Z
2022-03-08T13:21:03.000Z
2020/030_10bit_ramp_from_12bit_HEVC/DV17_Decode.py
toru-ver4/sample_code
9165b4cb07a3cb1b3b5a7f6b3a329be081bddabe
[ "BSD-3-Clause" ]
101
2019-08-12T01:20:13.000Z
2022-03-18T12:17:01.000Z
2020/030_10bit_ramp_from_12bit_HEVC/img/DV17_Decode.py
toru-ver4/sample_code
9165b4cb07a3cb1b3b5a7f6b3a329be081bddabe
[ "BSD-3-Clause" ]
3
2020-06-08T09:48:08.000Z
2022-03-09T15:35:51.000Z
# -*- coding: utf-8 -*- """ Title ============== Description. """ # import standard libraries import os import sys from pathlib import PureWindowsPath, WindowsPath import time import pprint # import third-party libraries import DaVinciResolveScript as dvr_script # import my libraries # information __author__ = 'T...
30.438272
78
0.713851
3b4d20b62f9b842486ae5ae00fc849ef21263e79
973
py
Python
PP4E/Examples/PP4E/Tools/visitor_edit.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
PP4E/Examples/PP4E/Tools/visitor_edit.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
PP4E/Examples/PP4E/Tools/visitor_edit.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
""" Use: "python ...\Tools\visitor_edit.py string rootdir?". Add auto-editor startup to SearchVisitor in an external subclass component; Automatically pops up an editor on each file containing string as it traverses; can also use editor='edit' or 'notepad' on Windows; to use texteditor from later in the book, try...
37.423077
80
0.68962
9d05445cbe54d010f4f33dbc87d8fb914c14d08b
1,961
py
Python
python/src/aoc/year2020/day23.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
1
2021-02-16T21:30:04.000Z
2021-02-16T21:30:04.000Z
python/src/aoc/year2020/day23.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
null
null
null
python/src/aoc/year2020/day23.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
null
null
null
from aoc.util import load_input def prepare_part1(data): values = list(map(int, data)) result = {values[len(values) - 1]: values[0]} for i in range(1, len(values)): result[values[i - 1]] = values[i] return result def prepare_part2(data): m = 10 ** 6 values = list(map(int, data)) ...
22.802326
67
0.560428
0e875a62a3c3bf119d0df5f0c26d69c039520504
124
py
Python
exemplo_cnpj.py
Renatoelho/validacao-cnpj-python3
063acd5ddd56877a13ffff785165b84df9a2c8fe
[ "MIT" ]
null
null
null
exemplo_cnpj.py
Renatoelho/validacao-cnpj-python3
063acd5ddd56877a13ffff785165b84df9a2c8fe
[ "MIT" ]
null
null
null
exemplo_cnpj.py
Renatoelho/validacao-cnpj-python3
063acd5ddd56877a13ffff785165b84df9a2c8fe
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from ferramentas.valida_cnpj import Cnpj CNPJ: bool = Cnpj.valida_cnpj('00000000000191') print(CNPJ)
13.777778
47
0.766129
b7b2f643373e51382eb6742e0bbf92eb35139b5a
298
py
Python
run_server.py
lampwins/orangengine-ui
8c864cd297176aa0ff9ead9682f2085f9fd3f1c0
[ "MIT" ]
1
2017-10-28T00:21:43.000Z
2017-10-28T00:21:43.000Z
run_server.py
lampwins/orangengine-ui
8c864cd297176aa0ff9ead9682f2085f9fd3f1c0
[ "MIT" ]
null
null
null
run_server.py
lampwins/orangengine-ui
8c864cd297176aa0ff9ead9682f2085f9fd3f1c0
[ "MIT" ]
4
2017-01-26T23:31:32.000Z
2019-04-17T14:02:00.000Z
from api import app as api_app from frontend import app as frontend_app from werkzeug.wsgi import DispatcherMiddleware from werkzeug.serving import run_simple application = DispatcherMiddleware( frontend_app, { '/api': api_app } ) run_simple("localhost", 5000, application)
18.625
46
0.751678
d44b3bb06f46bfd0bcf262900cad362fdac89a74
36
py
Python
test/SIM_test_ip/Modified_data/test_print.py
gilbertguoze/trick
f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21
[ "NASA-1.3" ]
647
2015-05-07T16:08:16.000Z
2022-03-30T02:33:21.000Z
test/SIM_test_ip/Modified_data/test_print.py
gilbertguoze/trick
f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21
[ "NASA-1.3" ]
995
2015-04-30T19:44:31.000Z
2022-03-31T20:14:44.000Z
test/SIM_test_ip/Modified_data/test_print.py
gilbertguoze/trick
f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21
[ "NASA-1.3" ]
251
2015-05-15T09:24:34.000Z
2022-03-22T20:39:05.000Z
def test_print(): print "test"
9
17
0.611111
eb9325dc253e7ddef237d42c761beac0b03e0b05
16,002
py
Python
daq/host.py
silviaquaglia/daq
0be12eed7cb63671bdf805be1d0188ad9ac661b3
[ "Apache-2.0" ]
null
null
null
daq/host.py
silviaquaglia/daq
0be12eed7cb63671bdf805be1d0188ad9ac661b3
[ "Apache-2.0" ]
null
null
null
daq/host.py
silviaquaglia/daq
0be12eed7cb63671bdf805be1d0188ad9ac661b3
[ "Apache-2.0" ]
null
null
null
"""Represent a device-under-test""" import datetime import logging import os import shutil import time from clib import tcpdump_helper import docker_test LOGGER = logging.getLogger('host') class _STATE(): """Host state enum for testing cycle""" ERROR = 'Error condition' INIT = 'Initizalization' RE...
42.900804
98
0.617985
7886b9162f43d89559782d6d05aac43222e8fee5
2,979
py
Python
temboo/core/Library/Utilities/Validation/USPostalCodes.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Utilities/Validation/USPostalCodes.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Utilities/Validation/USPostalCodes.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # USPostalCodes # Verifies that a given zip code matches the format expected for US addresses. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (...
35.891566
165
0.688486
bbf63bb0cf072f375fb54b8d5dd2ff6386518ae8
1,454
py
Python
python/examples/imdb/text_classify_service.py
gongweibao/Serving
d234a1421e8b964c5fa3e9901f57f24aa49e3a91
[ "Apache-2.0" ]
null
null
null
python/examples/imdb/text_classify_service.py
gongweibao/Serving
d234a1421e8b964c5fa3e9901f57f24aa49e3a91
[ "Apache-2.0" ]
null
null
null
python/examples/imdb/text_classify_service.py
gongweibao/Serving
d234a1421e8b964c5fa3e9901f57f24aa49e3a91
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle 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 appli...
34.619048
74
0.71458
033e12e8b03e4f07281cf598be00be83a4476fad
33
py
Python
server/www/packages/packages-windows/x86/wheezy/captcha/__init__.py
zhoulhb/teleport
54da194697898ef77537cfe7032d774555dc1335
[ "Apache-2.0" ]
640
2018-09-12T03:14:13.000Z
2022-03-30T04:38:09.000Z
server/www/packages/packages-windows/x86/wheezy/captcha/__init__.py
zhoulhb/teleport
54da194697898ef77537cfe7032d774555dc1335
[ "Apache-2.0" ]
175
2018-09-10T19:52:20.000Z
2022-03-30T04:37:30.000Z
server/www/packages/packages-windows/x86/wheezy/captcha/__init__.py
zhoulhb/teleport
54da194697898ef77537cfe7032d774555dc1335
[ "Apache-2.0" ]
230
2018-09-13T02:40:49.000Z
2022-03-29T11:53:58.000Z
""" """ __version__ = '0.1.44'
5.5
22
0.454545
4047dafc64bd4551a220f10f77585f0a80cf395d
794
py
Python
k2/python/tests/ragged_test.py
BuildJet/k2
9b21fc4b97cd3e746b6526cd47359bb024d06b15
[ "Apache-2.0" ]
1
2021-03-03T03:30:40.000Z
2021-03-03T03:30:40.000Z
k2/python/tests/ragged_test.py
BuildJet/k2
9b21fc4b97cd3e746b6526cd47359bb024d06b15
[ "Apache-2.0" ]
1
2021-03-27T15:52:06.000Z
2021-03-27T15:52:06.000Z
k2/python/tests/ragged_test.py
BuildJet/k2
9b21fc4b97cd3e746b6526cd47359bb024d06b15
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020 Xiaomi Corporation (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors # To run this single test, use # # ctest --verbose -R ragged_test_py import unittest import k2 import torch class TestRagged(unittest.TestCase): ...
22.685714
80
0.623426
448f6789a3942d3d5500346e012ac53fc0fbda50
5,092
py
Python
test/functional/wallet_accounts.py
TheRinger/Atlascoin
21f6f2372e841fd3ba89e91086cbd5add3e4ef9b
[ "MIT" ]
null
null
null
test/functional/wallet_accounts.py
TheRinger/Atlascoin
21f6f2372e841fd3ba89e91086cbd5add3e4ef9b
[ "MIT" ]
null
null
null
test/functional/wallet_accounts.py
TheRinger/Atlascoin
21f6f2372e841fd3ba89e91086cbd5add3e4ef9b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Copyright (c) 2017-2018 The Atlas Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test account RPCs. RPCs tested are: - getaccountadd...
37.718519
78
0.626866
be7d871e399057d28f6b78de32bd031900a08e61
710
py
Python
tests/test_online.py
4jandals/pyloxone-api
e48a4cc552578c19a0feea1eed4c4d09dde1532e
[ "Apache-2.0" ]
null
null
null
tests/test_online.py
4jandals/pyloxone-api
e48a4cc552578c19a0feea1eed4c4d09dde1532e
[ "Apache-2.0" ]
null
null
null
tests/test_online.py
4jandals/pyloxone-api
e48a4cc552578c19a0feea1eed4c4d09dde1532e
[ "Apache-2.0" ]
null
null
null
""" These tests require access to a live miniserver. Pass --host, --port, --username, --password to pytest as command-line options. Port defaults to 80, username and pasword to 'admin' """ import pytest from pyloxone_api import LoxApp # mark all tests in this module as 'online'. They will # be skipped unless a --hos...
28.4
81
0.732394
9cd5db83f9c552dcdf49eaa38b3b30f34521663c
13,097
py
Python
sdk/python/pulumi_azure_native/network/v20191101/get_vpn_connection.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20191101/get_vpn_connection.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20191101/get_vpn_connection.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# 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, overload from ... import _utilities fro...
43.082237
489
0.693899
58b721d2195c786188b051c0368c09224be51c62
16,369
py
Python
egs/wsj/s5/utils/lang/make_kn_lm.py
LanceaKing/kaldi
eb205a83f08fb8056ba1deb03c505ec8b722d4d9
[ "Apache-2.0" ]
145
2020-11-12T07:12:31.000Z
2022-03-11T14:56:15.000Z
egs/wsj/s5/utils/lang/make_kn_lm.py
LanceaKing/kaldi
eb205a83f08fb8056ba1deb03c505ec8b722d4d9
[ "Apache-2.0" ]
212
2020-11-12T07:47:39.000Z
2022-02-02T08:11:33.000Z
egs/wsj/s5/utils/lang/make_kn_lm.py
LanceaKing/kaldi
eb205a83f08fb8056ba1deb03c505ec8b722d4d9
[ "Apache-2.0" ]
43
2020-11-12T07:30:37.000Z
2022-03-15T08:07:19.000Z
#!/usr/bin/env python3 # Copyright 2016 Johns Hopkins University (Author: Daniel Povey) # 2018 Ruizhe Huang # Apache 2.0. # This is an implementation of computing Kneser-Ney smoothed language model # in the same way as srilm. This is a back-off, unmodified version of # Kneser-Ney smoothing, which produces...
43.304233
121
0.58061
9a20020f2a3749f4ce79c67fc4e3ac28f0d863d3
468
py
Python
packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklen.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklen.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklen.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="ticklen", parent_name="splom.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_...
31.2
82
0.641026
be5cb4b712e0aa96222e869a18ad11fdda2dc629
525
py
Python
Bluetooth/testblescan.py
AnthonyBowman/Robots
f187dfdf661bb451d067e25d6f56fbd9f3248f19
[ "MIT" ]
null
null
null
Bluetooth/testblescan.py
AnthonyBowman/Robots
f187dfdf661bb451d067e25d6f56fbd9f3248f19
[ "MIT" ]
null
null
null
Bluetooth/testblescan.py
AnthonyBowman/Robots
f187dfdf661bb451d067e25d6f56fbd9f3248f19
[ "MIT" ]
null
null
null
from __future__ import print_function # test BLE Scanning software # SwitchDoc Labs December 2020 import blescan import sys import bluetooth._bluetooth as bluez dev_id = 0 try: sock = bluez.hci_open_dev(dev_id) print ("ble thread started") except: print ("error accessing bluetooth device...") sys.exit(1)...
18.75
49
0.748571
4f324164e472580b95a0ba799c33e2b15d0c816e
2,943
py
Python
Scripts/Extract_InfoUsers_Flickr.py
tgrippa/flickr_api_scripts
95ca6e2300481a9f68fd0f18bb0f6ba15c61f30e
[ "MIT" ]
null
null
null
Scripts/Extract_InfoUsers_Flickr.py
tgrippa/flickr_api_scripts
95ca6e2300481a9f68fd0f18bb0f6ba15c61f30e
[ "MIT" ]
2
2019-03-07T19:16:17.000Z
2020-09-20T21:44:09.000Z
Scripts/Extract_InfoUsers_Flickr.py
tgrippa/flickr_api_scripts
95ca6e2300481a9f68fd0f18bb0f6ba15c61f30e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Feb 6 14:24:31 2018 @author: tais """ """ TODO: Add extraction of all photos for each user, using https://www.flickr.com/services/api/flickr.people.getPhotos.html Do not forget to use the extras parameter in the API request (mainly the 'license', 'date_upload', 'date_taken' ...
31.645161
130
0.713558
230ae4c9fad941b9dfea99f9b09843df60747755
615
py
Python
tests/base_tests/angle_tests/test_hash.py
lycantropos/gon
b3f811ece5989d1623b17d633a84071fbff6dd69
[ "MIT" ]
10
2020-07-18T12:55:52.000Z
2022-03-20T07:09:10.000Z
tests/base_tests/angle_tests/test_hash.py
lycantropos/gon
b3f811ece5989d1623b17d633a84071fbff6dd69
[ "MIT" ]
52
2019-07-11T16:59:01.000Z
2022-03-29T19:41:59.000Z
tests/base_tests/angle_tests/test_hash.py
lycantropos/gon
b3f811ece5989d1623b17d633a84071fbff6dd69
[ "MIT" ]
1
2020-03-22T12:56:07.000Z
2020-03-22T12:56:07.000Z
from typing import Tuple from hypothesis import given from gon.base import Angle from tests.utils import implication from . import strategies @given(strategies.angles) def test_basic(angle: Angle) -> None: result = hash(angle) assert isinstance(result, int) @given(strategies.angles) def test_determinism(...
21.206897
76
0.739837
56f732eb2da18b90bbd1fd9743e6ddebe71da850
855
py
Python
setup.py
tomalrussell/UKCensusAPI
6cecb676411f40b2603347a969903f0c07747e0d
[ "MIT" ]
28
2017-08-08T16:01:07.000Z
2022-03-21T14:46:11.000Z
setup.py
tomalrussell/UKCensusAPI
6cecb676411f40b2603347a969903f0c07747e0d
[ "MIT" ]
48
2017-08-08T15:51:50.000Z
2022-03-26T13:36:58.000Z
setup.py
tomalrussell/UKCensusAPI
6cecb676411f40b2603347a969903f0c07747e0d
[ "MIT" ]
14
2017-08-16T08:54:57.000Z
2021-09-22T21:04:09.000Z
#!/usr/bin/env python3 import setuptools def readme(): with open('README.md') as f: return f.read() setuptools.setup(name='ukcensusapi', version='1.1.6', description='UK census data query automation', long_description=readme(), long_description_content_type="text/markdown", url='https://github.com/vi...
26.71875
50
0.62924
3a481e8383073a94e514952d9814489e47e45b1d
5,070
py
Python
homeassistant/components/remote/__init__.py
rubund/debian-home-assistant
1a3e8f7e4b9ddec60a4380e141fb327d03ac69b5
[ "MIT" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
homeassistant/components/remote/__init__.py
Paxy/home-assistant
326cc83a17d344ea60ccaa1ef8295efaebf82f21
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
homeassistant/components/remote/__init__.py
Paxy/home-assistant
326cc83a17d344ea60ccaa1ef8295efaebf82f21
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
""" Component to interface with universal remote control devices. For more details about this component, please refer to the documentation at https://home-assistant.io/components/remote/ """ import asyncio from datetime import timedelta import functools as ft import logging import os import voluptuous as vol from ho...
32.709677
75
0.715976
55288aefc210bdb97f43e3c986af16502982c488
2,464
py
Python
coherence/extern/simple_plugin.py
wd8rde/Coherence
792ee3ddf28e4748c116056915a2bb7155137e7f
[ "MIT" ]
112
2015-01-13T14:50:41.000Z
2022-01-20T08:48:04.000Z
coherence/extern/simple_plugin.py
wd8rde/Coherence
792ee3ddf28e4748c116056915a2bb7155137e7f
[ "MIT" ]
14
2015-01-26T21:54:14.000Z
2020-01-19T19:28:52.000Z
coherence/extern/simple_plugin.py
wd8rde/Coherence
792ee3ddf28e4748c116056915a2bb7155137e7f
[ "MIT" ]
40
2015-01-01T07:59:25.000Z
2020-05-07T14:54:48.000Z
# -*- coding: utf-8 -*- # Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright 2007, Frank Scholz <coherence@beebits.net> """ real simple plugin system meant as a replacement when setuptools/pkg_resources are not available """ import os import sys class Plugin(object...
29.686747
97
0.567776
f78da18d7fb6a139b244141d3baba93d757befe7
8,054
py
Python
broadside/components/steps/project/blocks/block_diagrams.py
biomicrodev/broadside
f76fa14e7656a255b16483947591d8855e06782d
[ "MIT" ]
null
null
null
broadside/components/steps/project/blocks/block_diagrams.py
biomicrodev/broadside
f76fa14e7656a255b16483947591d8855e06782d
[ "MIT" ]
null
null
null
broadside/components/steps/project/blocks/block_diagrams.py
biomicrodev/broadside
f76fa14e7656a255b16483947591d8855e06782d
[ "MIT" ]
null
null
null
from typing import List, Optional from natsort import natsorted from qtpy.QtCore import Signal, Qt, QPointF, QSize from qtpy.QtGui import ( QBrush, QPainter, QResizeEvent, QColor, QWheelEvent, QTransform, ) from qtpy.QtWidgets import ( QSlider, QLabel, QHBoxLayout, QVBoxLayout, ...
29.82963
88
0.619692
7a129b66660836e283ae0fd3ab0cca8af7db1eb6
242
py
Python
carrier.py
rnandon/Battleship
665ff3c7dcb9b3949800f348166f3fbd853b474d
[ "MIT" ]
null
null
null
carrier.py
rnandon/Battleship
665ff3c7dcb9b3949800f348166f3fbd853b474d
[ "MIT" ]
null
null
null
carrier.py
rnandon/Battleship
665ff3c7dcb9b3949800f348166f3fbd853b474d
[ "MIT" ]
null
null
null
### IMPORTS ### ================================= from ship import Ship class Carrier(Ship): def __init__(self): super().__init__() self.length = 5 self.create_hit_locations() self.name = "Carrier"
22
37
0.491736
d60a6e311279902a09c2e3d876a23c0c6f3e3dc6
4,175
py
Python
sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/catalog/models/usql_table_statistics_py3.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/catalog/models/usql_table_statistics_py3.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/catalog/models/usql_table_statistics_py3.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.443182
393
0.658683
89bc88b92b22e4ffb7151e6aa04c1dfcefe4a8a7
3,641
py
Python
mbed-client/factory-configurator-client/TESTS/generate-test-data/generate_crypto_utils.py
ghsecuritylab/mini-client
955e1d213ec0784101061075932dbbac97d98cd9
[ "Apache-2.0" ]
null
null
null
mbed-client/factory-configurator-client/TESTS/generate-test-data/generate_crypto_utils.py
ghsecuritylab/mini-client
955e1d213ec0784101061075932dbbac97d98cd9
[ "Apache-2.0" ]
null
null
null
mbed-client/factory-configurator-client/TESTS/generate-test-data/generate_crypto_utils.py
ghsecuritylab/mini-client
955e1d213ec0784101061075932dbbac97d98cd9
[ "Apache-2.0" ]
1
2020-03-06T22:23:26.000Z
2020-03-06T22:23:26.000Z
# ---------------------------------------------------------------------------- # Copyright 2016-2017 ARM 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...
34.028037
84
0.68635
e7b7f040b84ee89bf318260d71053baca9593e7b
3,970
py
Python
insts_rand/random_sparse_new.py
aoustry/LSIP-Relaxations
87ef99598fd4812f39c3a6adf0eb41e8db9e0276
[ "MIT" ]
null
null
null
insts_rand/random_sparse_new.py
aoustry/LSIP-Relaxations
87ef99598fd4812f39c3a6adf0eb41e8db9e0276
[ "MIT" ]
null
null
null
insts_rand/random_sparse_new.py
aoustry/LSIP-Relaxations
87ef99598fd4812f39c3a6adf0eb41e8db9e0276
[ "MIT" ]
null
null
null
# coding: utf-8 from networkx import * from cvxopt import spmatrix, amd import chompack as cp import random def random_sp_matrix(block_number,block_size,kwatt,p_inner,p_link): n = block_number*block_size I,J = [i for i in range(n)],[i for i in range(n)] V = [1.0 for i in range(n)] for k in range(block_...
31.76
88
0.560202
62a3fc25c81ed627d70a841808121d173fb2ab79
886
py
Python
tests/conftest.py
alphagov-mirror/digitalmarketplace-search-api
48a4b5de3acab8179f1750c7d97ce605dbe4141d
[ "MIT" ]
7
2015-05-06T21:18:06.000Z
2021-05-21T16:16:23.000Z
tests/conftest.py
alphagov-mirror/digitalmarketplace-search-api
48a4b5de3acab8179f1750c7d97ce605dbe4141d
[ "MIT" ]
93
2015-03-03T12:19:12.000Z
2021-08-18T10:47:09.000Z
tests/conftest.py
Crown-Commercial-Service/digitalmarketplace-search-api
3a8191efaf9c92f1e3047ff09fa14efdc0595f86
[ "MIT" ]
8
2015-07-02T16:19:19.000Z
2021-04-10T18:07:17.000Z
import pytest import pathlib import json import app.mapping from .helpers import make_service, services_mappings mappings_dir = (pathlib.Path(__file__).parent / "../mappings").resolve() @pytest.fixture(scope="module", params=services_mappings) def services_mapping_file_name_and_path(request): return (request....
27.6875
115
0.759594
bb2296f1ac623dc79e6f73a371503f87e40ec4bc
3,805
py
Python
educa/apps/courses/migrations/0002_content_file_image_text_video.py
eqba1/Personal-E-Learn
238796f5606e05a66863a105e2edbebc0a85a346
[ "MIT" ]
null
null
null
educa/apps/courses/migrations/0002_content_file_image_text_video.py
eqba1/Personal-E-Learn
238796f5606e05a66863a105e2edbebc0a85a346
[ "MIT" ]
null
null
null
educa/apps/courses/migrations/0002_content_file_image_text_video.py
eqba1/Personal-E-Learn
238796f5606e05a66863a105e2edbebc0a85a346
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-10-09 10:54 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), migrations.swappable_dependency(se...
45.843373
196
0.575033
de458a4344013fadcb8cad071367a436040b5242
7,387
py
Python
sdk/python/pulumi_aws/codebuild/source_credential.py
Otanikotani/pulumi-aws
00e2b352da42c5b1b0ec7b4760eec5ad2b23ff21
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/codebuild/source_credential.py
Otanikotani/pulumi-aws
00e2b352da42c5b1b0ec7b4760eec5ad2b23ff21
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/codebuild/source_credential.py
Otanikotani/pulumi-aws
00e2b352da42c5b1b0ec7b4760eec5ad2b23ff21
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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 _utilitie...
42.947674
192
0.639908
faf9f62a8bac752e89efc01114a8dd0699434b0f
358
py
Python
aulas/urls.py
Etxea/gestion_eide_web
8a59be1ddb59a4713cb3346534fd01f643d8f924
[ "MIT" ]
null
null
null
aulas/urls.py
Etxea/gestion_eide_web
8a59be1ddb59a4713cb3346534fd01f643d8f924
[ "MIT" ]
null
null
null
aulas/urls.py
Etxea/gestion_eide_web
8a59be1ddb59a4713cb3346534fd01f643d8f924
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() from views import * urlpatterns = patterns("", url(r"^$", ListaAulas.as_view(), name="aulas_lista"), url(r"^nueva/$", NuevaAula.as_view(), name="aula_nueva"), url(r"^editar/(?P<pk>\d+)/$", EditarAula....
29.833333
76
0.675978
deb46f74d9939bae4d2e8d3b58b9067fc922c4df
3,144
py
Python
server-master-with-interpolation/client.py
crista/swarch
336e885e086bde17cded6acc9afd7904f6c749e3
[ "MIT" ]
null
null
null
server-master-with-interpolation/client.py
crista/swarch
336e885e086bde17cded6acc9afd7904f6c749e3
[ "MIT" ]
null
null
null
server-master-with-interpolation/client.py
crista/swarch
336e885e086bde17cded6acc9afd7904f6c749e3
[ "MIT" ]
null
null
null
""" The Client is slave: - it sends only the player inputs to the server. - every frame, it displays the server's last received data Pros: the server is the only component with game logic, so all clients see the same game at the same time (consistency, no rollbacks). Cons: lag between player input and screen display ...
33.446809
81
0.591285
d810100480fa3106fc9aeadb9b43c06f21a16958
2,623
py
Python
utils/spec/io_base_address.py
tmichalak/prjuray
53f3c94b58ffc6d405ac20a3b340ae726717ed47
[ "0BSD" ]
2
2020-07-24T17:22:23.000Z
2022-03-18T00:17:24.000Z
utils/spec/io_base_address.py
tmichalak/prjuray
53f3c94b58ffc6d405ac20a3b340ae726717ed47
[ "0BSD" ]
null
null
null
utils/spec/io_base_address.py
tmichalak/prjuray
53f3c94b58ffc6d405ac20a3b340ae726717ed47
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2017-2020 The Project X-Ray Authors. # Copyright (C) 2020 The Project U-Ray Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Iden...
25.715686
71
0.571102
fa801ad31ca0da73207a11895ac377e56792ecf2
11,094
py
Python
nnabla_rl/models/atari/distributional_functions.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
75
2021-06-14T02:35:19.000Z
2022-03-23T04:30:24.000Z
nnabla_rl/models/atari/distributional_functions.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
2
2021-12-17T08:46:54.000Z
2022-03-15T02:04:53.000Z
nnabla_rl/models/atari/distributional_functions.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
3
2021-06-15T13:32:57.000Z
2022-03-25T16:53:14.000Z
# Copyright 2020,2021 Sony Corporation. # Copyright 2021 Sony Group 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 ...
45.281633
110
0.598882
d1bc2e4c25068a6179b190298802d5666c124c38
33,656
py
Python
core/storage/storage_of_temp.py
mofengboy/Chain-of-all-beings
b7f9750391a702b83728118f5db533ecb4d38bf0
[ "Apache-2.0" ]
2
2022-03-26T15:20:40.000Z
2022-03-26T15:24:02.000Z
core/storage/storage_of_temp.py
mofengboy/Chain-of-all-beings
b7f9750391a702b83728118f5db533ecb4d38bf0
[ "Apache-2.0" ]
null
null
null
core/storage/storage_of_temp.py
mofengboy/Chain-of-all-beings
b7f9750391a702b83728118f5db533ecb4d38bf0
[ "Apache-2.0" ]
1
2022-03-26T15:20:45.000Z
2022-03-26T15:20:45.000Z
from ast import literal_eval from core.config.cycle_Info import ElectionPeriodValue from core.data.vote_info import WaitVote from core.storage.sqlite import Sqlite from core.utils.serialization import SerializationReplyApplicationFormActiveDelete from core.utils.system_time import STime from core.consensus.data import...
40.598311
120
0.61876
9489e405677e57b6f8cf87c385bf991b28372612
2,908
py
Python
art/art_T1218.010-5.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
null
null
null
art/art_T1218.010-5.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
null
null
null
art/art_T1218.010-5.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
1
2022-03-31T11:07:56.000Z
2022-03-31T11:07:56.000Z
from blackbot.core.utils import get_path_in_package from blackbot.core.wss.atomic import Atomic from terminaltables import SingleTable import os import json class Atomic(Atomic): def __init__(self): self.name = 'DefenseEvasion/T1218.010-5' self.controller_type = '' self.external_id = 'T1218...
37.282051
111
0.514099
b312d8d52d481f28b2a57b76accef0f6737312bb
6,135
py
Python
mha_server.py
HoerTech-gGmbH/doasvm-visualizer
397501fbfd927d095bfe0996ce5213187fc3c726
[ "BSD-3-Clause" ]
2
2021-11-17T22:32:28.000Z
2022-01-27T01:02:51.000Z
mha_server.py
ooshyun/doasvm-visualizer
397501fbfd927d095bfe0996ce5213187fc3c726
[ "BSD-3-Clause" ]
4
2020-03-13T17:07:56.000Z
2020-05-13T09:33:22.000Z
mha_server.py
ooshyun/doasvm-visualizer
397501fbfd927d095bfe0996ce5213187fc3c726
[ "BSD-3-Clause" ]
1
2022-01-27T01:02:55.000Z
2022-01-27T01:02:55.000Z
import json from MHAConnection import MHAConnection import server_common class LoopingWebSocket(server_common.MyWebSocketHandler): def __init__(self, *args, **kwargs): # grab our private keyword arguments self.mha_host = kwargs.pop('mha_host') self.mha_port = kwargs.pop('mha_port') ...
41.734694
92
0.585656
2765ed94f4f714e138c8e68399d39dbb366b3916
1,902
py
Python
TraditionalMachineLearning/fetch_olivetti_faces.py
CharlesPoletowin/FaceDetectionAndRecognition
45b8601a8cd6d130817d0a4e2f2c30651131257a
[ "MIT" ]
null
null
null
TraditionalMachineLearning/fetch_olivetti_faces.py
CharlesPoletowin/FaceDetectionAndRecognition
45b8601a8cd6d130817d0a4e2f2c30651131257a
[ "MIT" ]
null
null
null
TraditionalMachineLearning/fetch_olivetti_faces.py
CharlesPoletowin/FaceDetectionAndRecognition
45b8601a8cd6d130817d0a4e2f2c30651131257a
[ "MIT" ]
null
null
null
from sklearn.linear_model import LinearRegression,Ridge from sklearn.neighbors import KNeighborsRegressor from sklearn.ensemble import ExtraTreesRegressor import sklearn.datasets as datasets from sklearn.model_selection import train_test_split import numpy as np import matplotlib.pyplot as plt faces = datasets.fetch_o...
33.368421
86
0.636172
9ac2eaba0fd7a8207c382d5fcb265ec31a724c83
1,319
py
Python
tests/h/views/home_test.py
y3g0r/h
a057144956fe25e669aeba5d0f0eb38f9dc09566
[ "BSD-2-Clause" ]
null
null
null
tests/h/views/home_test.py
y3g0r/h
a057144956fe25e669aeba5d0f0eb38f9dc09566
[ "BSD-2-Clause" ]
null
null
null
tests/h/views/home_test.py
y3g0r/h
a057144956fe25e669aeba5d0f0eb38f9dc09566
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from pyramid.httpexceptions import HTTPFound from h.views.home import index_redirect @pytest.mark.usefixtures("routes") class TestIndexRedirect: def test_redirects_to_user_search_page_for_user(self, factories, pyramid_request): pyramid_request.user = factories.User...
29.977273
86
0.700531
b53f3b430e567a0fce16f519ecc8636912b8de0f
4,174
py
Python
river/base/estimator.py
Styren/river
128a5ffe9f80df85e23d9ae871e02bea6dc9c100
[ "BSD-3-Clause" ]
2
2021-04-13T09:19:42.000Z
2021-12-22T13:43:15.000Z
river/base/estimator.py
Styren/river
128a5ffe9f80df85e23d9ae871e02bea6dc9c100
[ "BSD-3-Clause" ]
null
null
null
river/base/estimator.py
Styren/river
128a5ffe9f80df85e23d9ae871e02bea6dc9c100
[ "BSD-3-Clause" ]
1
2021-01-22T15:18:39.000Z
2021-01-22T15:18:39.000Z
import abc import inspect import types import typing from . import base class Estimator(base.Base, abc.ABC): """An estimator.""" @property def _supervised(self): """Indicates whether or not the estimator is supervised or not. This is useful internally for determining if an estimator exp...
30.246377
99
0.593196
8fbe7c9c6b1f6150f1e5b79ec91007dab18c41d9
1,233
py
Python
books/views.py
lazar-mikov/ManezCo
27266c4f4d876dbdf51764ae4afe22829d4a178a
[ "MIT" ]
null
null
null
books/views.py
lazar-mikov/ManezCo
27266c4f4d876dbdf51764ae4afe22829d4a178a
[ "MIT" ]
null
null
null
books/views.py
lazar-mikov/ManezCo
27266c4f4d876dbdf51764ae4afe22829d4a178a
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse from .models import * from .forms import * from django.contrib.auth.decorators import login_required from accounts.decorators import adult_user # Create your views here. @login_required(login_url='login') def bookIndex(request): bo...
22.833333
63
0.708029
4ec4a177e8fee833d13d78e46d249abdd57b9313
29,072
py
Python
cinder/brick/local_dev/lvm.py
kazum/cinder
370b8e60c3166b289c8da924a227dd1bc63f8b8a
[ "Apache-2.0" ]
null
null
null
cinder/brick/local_dev/lvm.py
kazum/cinder
370b8e60c3166b289c8da924a227dd1bc63f8b8a
[ "Apache-2.0" ]
null
null
null
cinder/brick/local_dev/lvm.py
kazum/cinder
370b8e60c3166b289c8da924a227dd1bc63f8b8a
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 OpenStack Foundation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
38.455026
79
0.553213
de9e189d89fa2d9de76b7a20cc5b34d041fd13fe
3,103
py
Python
2021/d5b.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
4
2018-12-04T23:33:46.000Z
2021-12-07T17:33:27.000Z
2021/d5b.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
17
2018-12-12T23:32:09.000Z
2020-01-04T15:50:31.000Z
2021/d5b.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from collections import defaultdict import pprint import cmath import math import pytest import sys import fileinput from os.path import splitext, abspath F_NAME = splitext(abspath(__file__))[0][:-1] covered = defaultdict(list) def iscovered(x, y): return covered.get(x, []).count(y) def ...
31.989691
101
0.534644
8c05a1dad3917b7f3ef046b705475f17bc979417
286
py
Python
yc301/1557.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc301/1557.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc301/1557.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
from sys import stdin readline = stdin.readline N, M = map(int, readline().split()) LR = [list(map(int, readline().split())) for _ in range(M)] result = N t = -1 for L, R in sorted(LR, key=lambda x: x[1]): if L <= t <= R: continue result -= 1 t = R print(result)
17.875
59
0.58042
ec9d15798c064fa8f08cf7a02f3891cd5d147b67
5,968
py
Python
AMBER/amber/architect/zeroShotController.py
rtu715/NAS-Bench-360
d075006848c664371855c34082b0a00cda62be67
[ "MIT" ]
10
2021-06-15T17:48:34.000Z
2022-02-23T18:34:28.000Z
AMBER/amber/architect/zeroShotController.py
rtu715/NAS-Bench-360
d075006848c664371855c34082b0a00cda62be67
[ "MIT" ]
1
2021-11-12T15:12:38.000Z
2021-11-12T19:38:00.000Z
AMBER/amber/architect/zeroShotController.py
rtu715/NAS-Bench-360
d075006848c664371855c34082b0a00cda62be67
[ "MIT" ]
1
2021-11-15T04:07:17.000Z
2021-11-15T04:07:17.000Z
""" Zero-shot controller takes in descriptive features from dataset when calling `.get_action()` method, then generate new architectures for new tasks using a trained controller based on the data-descriptive features for the new task. ZZ, May 13, 2020 """ from .generalController import GeneralController from .commonO...
46.263566
123
0.597017
c6c3c51ad54cdad50d27dabc4ba937355c00c1a3
2,790
py
Python
src/atomate2/common/schemas/symmetry.py
jmmshn/atomate2
b4ccbb17996c81109f93f48e1668a59bf870fe08
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/atomate2/common/schemas/symmetry.py
jmmshn/atomate2
b4ccbb17996c81109f93f48e1668a59bf870fe08
[ "BSD-3-Clause-LBNL" ]
1
2022-01-28T23:04:24.000Z
2022-01-28T23:04:24.000Z
src/atomate2/common/schemas/symmetry.py
jmmshn/atomate2
b4ccbb17996c81109f93f48e1668a59bf870fe08
[ "BSD-3-Clause-LBNL" ]
1
2022-01-28T22:54:00.000Z
2022-01-28T22:54:00.000Z
"""Schemas for crystal symmetry.""" from typing import Any, Dict from jobflow.utils import ValueEnum from pydantic import BaseModel, Field from pymatgen.core import Structure from pymatgen.symmetry.analyzer import SpacegroupAnalyzer, spglib from atomate2 import SETTINGS __all__ = ["CrystalSystem", "SymmetryData"] ...
27.352941
94
0.603226
fdfda90f7d0d085208dfa1a14c43a9a1c3767b66
10,535
py
Python
tensorflow/python/tpu/client/client.py
minai2020/tensorflow
a6b4474186c906c09cd29b1a7d4d0af714c261e4
[ "Apache-2.0" ]
57
2017-09-03T07:08:31.000Z
2022-02-28T04:33:42.000Z
tensorflow/python/tpu/client/client.py
minai2020/tensorflow
a6b4474186c906c09cd29b1a7d4d0af714c261e4
[ "Apache-2.0" ]
8
2019-03-13T23:13:47.000Z
2020-01-31T21:08:21.000Z
tensorflow/python/tpu/client/client.py
minai2020/tensorflow
a6b4474186c906c09cd29b1a7d4d0af714c261e4
[ "Apache-2.0" ]
28
2017-03-25T13:48:09.000Z
2021-10-14T00:10:50.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
32.515432
90
0.667205
1a3c371294a2058afc34e97341b9d1740a46e4ce
1,459
py
Python
bin/hsc_pval.py
Puriney/scanorama
064fd9289ba0089c742d6ef6ca0952d7ec16e936
[ "MIT" ]
176
2018-07-19T14:50:27.000Z
2022-03-16T03:13:32.000Z
bin/hsc_pval.py
Puriney/scanorama
064fd9289ba0089c742d6ef6ca0952d7ec16e936
[ "MIT" ]
79
2018-07-20T13:21:48.000Z
2022-03-29T08:16:24.000Z
bin/hsc_pval.py
Puriney/scanorama
064fd9289ba0089c742d6ef6ca0952d7ec16e936
[ "MIT" ]
37
2018-07-19T15:30:29.000Z
2022-01-25T08:45:36.000Z
import numpy as np from sklearn.mixture import GaussianMixture from sklearn.preprocessing import normalize, LabelEncoder import sys from process import load_names from scanorama import * NAMESPACE = 'hsc' data_names = [ 'data/hsc/hsc_mars', 'data/hsc/hsc_ss2', ] # Computes the probability that the corrected...
29.18
73
0.696367
531c59d773bad23901ad185ab8a9a68b99d926e9
694
py
Python
Array/Easy/Shuffle_array.py
pavi-ninjaac/leetcode
a674b6d9576cf9ac612c2ad3b6ef7709cad4c410
[ "MIT" ]
null
null
null
Array/Easy/Shuffle_array.py
pavi-ninjaac/leetcode
a674b6d9576cf9ac612c2ad3b6ef7709cad4c410
[ "MIT" ]
null
null
null
Array/Easy/Shuffle_array.py
pavi-ninjaac/leetcode
a674b6d9576cf9ac612c2ad3b6ef7709cad4c410
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Dec 26 12:14:06 2020 @author: ninjaac """ """Shuffle the array Given the array nums consisting of 2n elements in the form [x1,x2,...,xn,y1,y2,...,yn]. Return the array in the form [x1,y1,x2,y2,...,xn,yn]. Example 1: Input: nums = [2,5,1,3,4,7], n = 3 ...
21.030303
88
0.5317
8c4635a117c8a063708ec27cb17a336f3e737953
316
py
Python
ping-pong-game.py
Coolfred12/Ping-Pong-Game
05e16e84fd503cd3a449e142ebccaa191f87caf9
[ "CC0-1.0" ]
null
null
null
ping-pong-game.py
Coolfred12/Ping-Pong-Game
05e16e84fd503cd3a449e142ebccaa191f87caf9
[ "CC0-1.0" ]
null
null
null
ping-pong-game.py
Coolfred12/Ping-Pong-Game
05e16e84fd503cd3a449e142ebccaa191f87caf9
[ "CC0-1.0" ]
null
null
null
from pygame import* from random import randint win_width = 600 win_height = 500 window = display.set_mode((win_width, win_height)) back = (200, 255, 255) window.fill(back) game = True while game: for e in event.get(): if e.type == QUIT: game = False display.update()
17.555556
51
0.617089
3f80004afe6a5de8f5eebd55518b0f63a70a8844
514
py
Python
toolbox/users/admin.py
akshedu/toolbox
7c647433b68f1098ee4c8623f836f74785dc970c
[ "MIT" ]
null
null
null
toolbox/users/admin.py
akshedu/toolbox
7c647433b68f1098ee4c8623f836f74785dc970c
[ "MIT" ]
null
null
null
toolbox/users/admin.py
akshedu/toolbox
7c647433b68f1098ee4c8623f836f74785dc970c
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from toolbox.users.forms import UserChangeForm, UserCreationForm User = get_user_model() @admin.register(User) class UserAdmin(auth_admin.UserAdmin): form = UserChangeForm add...
28.555556
83
0.747082
200c3a91f22abbbc680e0947db84f5f2e2c5d4bd
546
py
Python
cupyx/jit/_types.py
aryamccarthy/cupy
23cd2a01ace052321528dc9c1733375aba734ab0
[ "MIT" ]
null
null
null
cupyx/jit/_types.py
aryamccarthy/cupy
23cd2a01ace052321528dc9c1733375aba734ab0
[ "MIT" ]
null
null
null
cupyx/jit/_types.py
aryamccarthy/cupy
23cd2a01ace052321528dc9c1733375aba734ab0
[ "MIT" ]
null
null
null
import numpy from cupy.core._scalar import get_typename # Base class for cuda types. class TypeBase: pass class Void(TypeBase): def __init__(self): pass def __str__(self): return 'void' class Scalar(TypeBase): def __init__(self, dtype): self.dtype = numpy.dtype(dtype) ...
16.545455
42
0.620879
09c4589cb9adfb96d44ff8086ec4042919d5fd55
403
py
Python
src/sql_injection/wsgi.py
Enprogames/SQL-Injection-Example
6c89fd388373c58c7bfcfd3db431d33df28df30a
[ "Apache-2.0" ]
null
null
null
src/sql_injection/wsgi.py
Enprogames/SQL-Injection-Example
6c89fd388373c58c7bfcfd3db431d33df28df30a
[ "Apache-2.0" ]
null
null
null
src/sql_injection/wsgi.py
Enprogames/SQL-Injection-Example
6c89fd388373c58c7bfcfd3db431d33df28df30a
[ "Apache-2.0" ]
null
null
null
""" WSGI config for sql_injection project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
742c6f28039fb04fb497104370dcde757321b709
5,788
py
Python
tests/test_eSportsLoL.py
scrambldchannel/SportradarAPIs
e42e128313647d51784b6f1f3aa201b07fca0a08
[ "MIT" ]
33
2018-07-05T17:07:06.000Z
2022-02-05T16:32:19.000Z
tests/test_eSportsLoL.py
scrambldchannel/SportradarAPIs
e42e128313647d51784b6f1f3aa201b07fca0a08
[ "MIT" ]
6
2018-11-16T15:53:33.000Z
2021-06-26T23:04:33.000Z
tests/test_eSportsLoL.py
scrambldchannel/SportradarAPIs
e42e128313647d51784b6f1f3aa201b07fca0a08
[ "MIT" ]
17
2018-08-08T08:10:49.000Z
2021-10-06T00:25:21.000Z
import os import unittest from sportradar import eSportsLoL # Import API keys from environment variables api_key_name = "SPORTRADAR_API_KEY_ESPORTSLOL" api_key = os.environ.get(api_key_name, None) assert api_key is not None, "Must declare environment variable: {key_name}".format( key_name=api_key_name) api = eSpor...
40.475524
87
0.673635
d03438d24a69e0a0f32eab6e2668eaa90d64a8c7
1,964
py
Python
setup.py
ben-dichter-consulting/nwbn-conversion-tools
f5641317d2697a3916eeb54f74ce171ed65469ed
[ "BSD-3-Clause" ]
null
null
null
setup.py
ben-dichter-consulting/nwbn-conversion-tools
f5641317d2697a3916eeb54f74ce171ed65469ed
[ "BSD-3-Clause" ]
6
2020-01-31T13:29:40.000Z
2020-03-27T13:09:32.000Z
setup.py
ben-dichter-consulting/nwb-conversion-tools
f5641317d2697a3916eeb54f74ce171ed65469ed
[ "BSD-3-Clause" ]
1
2020-03-07T17:17:01.000Z
2020-03-07T17:17:01.000Z
from setuptools import setup, find_packages from codecs import open from pathlib import Path import os from shutil import copy path = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(path, "README.md")) as f: long_description = f.read() with open(os.path.join(path, "requirements-minimal.txt")) as...
37.056604
111
0.739308
41d0a10e13ead4c0721359e51cd8c39b2c779745
2,040
py
Python
lain_cli/harbor.py
timfeirg/lain-cli
c8745a31ef4b19d855845bd5fab93bf10b8a4369
[ "MIT" ]
14
2022-01-13T22:28:33.000Z
2022-03-29T11:08:05.000Z
lain_cli/harbor.py
timfeirg/lain-cli
c8745a31ef4b19d855845bd5fab93bf10b8a4369
[ "MIT" ]
23
2022-01-26T16:50:41.000Z
2022-03-29T11:24:10.000Z
lain_cli/harbor.py
timfeirg/lain-cli
c8745a31ef4b19d855845bd5fab93bf10b8a4369
[ "MIT" ]
4
2022-02-09T04:06:36.000Z
2022-02-16T10:51:24.000Z
from lain_cli.utils import ( PaaSUtils, RequestClientMixin, flatten_list, tell_cluster_config, ) class HarborRegistry(RequestClientMixin, PaaSUtils): def __init__(self, registry=None, harbor_token=None, **kwargs): if not all([registry, harbor_token]): cc = tell_cluster_config()...
33.442623
82
0.571078
fa9c5013b9ebf9747109526aba7e44e3ff42b23f
6,468
py
Python
configs/new10_contra/contra_usa_wd0_l2.py
XYHC-MMDA/Multi-modal-Multi-task-DA
ed8297eb489d50c580795713cccb72bc958f406f
[ "Apache-2.0" ]
1
2020-11-05T19:51:23.000Z
2020-11-05T19:51:23.000Z
configs/new10_contra/contra_usa_wd0_l2.py
XYHC-MMDA/Multi-modal-Multi-task-DA
ed8297eb489d50c580795713cccb72bc958f406f
[ "Apache-2.0" ]
null
null
null
configs/new10_contra/contra_usa_wd0_l2.py
XYHC-MMDA/Multi-modal-Multi-task-DA
ed8297eb489d50c580795713cccb72bc958f406f
[ "Apache-2.0" ]
null
null
null
# seg_loss + src_contra_loss + tgt_contra_loss # 32 epochs; wd=0; temperature=0.07; SegFusionV4 # lambda_contrast=0.001 ############################################## # variants: Runner, model # options: train-test split; class_weights ############################################## # runner runner = 'XmudaRunner' # f...
32.502513
125
0.659246
814429f34023b77ab8f38f8b252eb2e8410d84f9
822
py
Python
setup.py
Avvir/pyne
864885a8fb632b72c00af164f150b1daa38a346f
[ "MIT" ]
4
2018-08-10T20:05:10.000Z
2019-07-24T15:29:32.000Z
setup.py
Avvir/pyne
864885a8fb632b72c00af164f150b1daa38a346f
[ "MIT" ]
6
2018-09-25T20:15:51.000Z
2021-12-22T17:09:52.000Z
setup.py
Avvir/pyne
864885a8fb632b72c00af164f150b1daa38a346f
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="pynetest", version="0.2.7", author="Avvir", author_email="tira@avvir.io", description="A BDD Testing framework for python", long_description=long_description, long_description_cont...
24.909091
53
0.607056
2f5aefe7380afbc515d9201fd79183ae64831fe2
7,193
py
Python
GP_API/Test_API.py
GuardSkill/ImageBlend
2c5f5b50882d438557fd380173ed74cb52832b92
[ "Apache-2.0" ]
null
null
null
GP_API/Test_API.py
GuardSkill/ImageBlend
2c5f5b50882d438557fd380173ed74cb52832b92
[ "Apache-2.0" ]
null
null
null
GP_API/Test_API.py
GuardSkill/ImageBlend
2c5f5b50882d438557fd380173ed74cb52832b92
[ "Apache-2.0" ]
null
null
null
import argparse import os import time from glob import glob import numpy as np import torch from skimage.io import imread, imsave import cv2 from gp_model import GPU_GP_Container basename = lambda path: os.path.splitext(os.path.basename(path))[0] """ Note: source image, destination image and mask image have the s...
47.013072
119
0.612401
fd62287b5f9da9d8ae7b4cd8426369c3af35c0f6
17,814
py
Python
venv/Lib/site-packages/pandas/tseries/frequencies.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tseries/frequencies.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tseries/frequencies.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
from __future__ import annotations import warnings import numpy as np from pandas._libs.algos import unique_deltas from pandas._libs.tslibs import ( Timestamp, tzconversion, ) from pandas._libs.tslibs.ccalendar import ( DAYS, MONTH_ALIASES, MONTH_NUMBERS, MONTHS, int_to_we...
29.444628
87
0.544965
c04c939a8dea34a0e5690efe4e298bd4864bb186
1,116
py
Python
openpype/hosts/nuke/plugins/inventory/repair_old_loaders.py
Minkiu/OpenPype
d179049dc0a4c215f580e61fa56b28d193bc42f7
[ "MIT" ]
1
2022-02-08T15:40:41.000Z
2022-02-08T15:40:41.000Z
openpype/hosts/nuke/plugins/inventory/repair_old_loaders.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
2
2022-03-18T01:46:03.000Z
2022-03-18T01:46:16.000Z
openpype/hosts/nuke/plugins/inventory/repair_old_loaders.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
from openpype.api import Logger from openpype.pipeline import InventoryAction from openpype.hosts.nuke.api.lib import set_avalon_knob_data class RepairOldLoaders(InventoryAction): label = "Repair Old Loaders" icon = "gears" color = "#cc0000" log = Logger.get_logger(__name__) def process(self, c...
30.162162
65
0.586918
a0ee07799a447a5e317f0a81e9611e93633979c5
629
py
Python
manage.py
MoahmmadAlsmari/INote
0210bf5ef43e49b0ec719fa42b77a9b34544c9e1
[ "MIT" ]
2
2020-03-06T23:32:32.000Z
2020-03-07T17:57:54.000Z
manage.py
MoahmmadAlsmari/INote
0210bf5ef43e49b0ec719fa42b77a9b34544c9e1
[ "MIT" ]
9
2021-03-19T01:34:12.000Z
2022-03-12T00:22:29.000Z
manage.py
xUncnny/INote
0210bf5ef43e49b0ec719fa42b77a9b34544c9e1
[ "MIT" ]
3
2020-03-19T13:47:57.000Z
2020-04-01T07:31:17.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'noteitnow.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impo...
28.590909
73
0.683625
976285e3a92ec00d17e22e95bd6649d485a4a79e
1,275
py
Python
setup.py
richteel/Python_SHT
84398b3267158d15e2322878294c0d7e0e6fa78d
[ "MIT" ]
null
null
null
setup.py
richteel/Python_SHT
84398b3267158d15e2322878294c0d7e0e6fa78d
[ "MIT" ]
null
null
null
setup.py
richteel/Python_SHT
84398b3267158d15e2322878294c0d7e0e6fa78d
[ "MIT" ]
null
null
null
try: # Try using ez_setup to install setuptools if not already installed. from ez_setup import use_setuptools use_setuptools() except ImportError: # Ignore import error and assume Python 3 which already has setuptools. pass from setuptools import setup, find_packages classifiers = ['Development St...
41.129032
158
0.585098
8523c237b06eecfc7fbaffde0fcb74b2aab7125a
2,876
py
Python
code/recipe/apps/recipe/views.py
joseluisbezerra/recipe-api
25c9d819645c4a42c3485ae0ef3f2d315d708836
[ "MIT" ]
null
null
null
code/recipe/apps/recipe/views.py
joseluisbezerra/recipe-api
25c9d819645c4a42c3485ae0ef3f2d315d708836
[ "MIT" ]
null
null
null
code/recipe/apps/recipe/views.py
joseluisbezerra/recipe-api
25c9d819645c4a42c3485ae0ef3f2d315d708836
[ "MIT" ]
null
null
null
from recipe.apps.core.models import ( Tag, Recipe, Ingredient ) from recipe.apps.recipe import serializers from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated from rest_framework import viewsets class BaseRecipeAttrViewSet(viewsets.ModelVi...
31.604396
78
0.674896
3e66ce511f1dcd0be275697d34f71a8c8511571a
3,671
py
Python
src/openprocurement/tender/competitivedialogue/tests/stage1/cancellation_blanks.py
scrubele/prozorro-testing
42b93ea2f25d8cc40e66c596f582c7c05e2a9d76
[ "Apache-2.0" ]
null
null
null
src/openprocurement/tender/competitivedialogue/tests/stage1/cancellation_blanks.py
scrubele/prozorro-testing
42b93ea2f25d8cc40e66c596f582c7c05e2a9d76
[ "Apache-2.0" ]
2
2021-03-25T23:27:04.000Z
2022-03-21T22:18:15.000Z
src/openprocurement/tender/competitivedialogue/tests/stage1/cancellation_blanks.py
scrubele/prozorro-testing
42b93ea2f25d8cc40e66c596f582c7c05e2a9d76
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from copy import deepcopy def cancellation_active_qualification_j1427(self): bid = deepcopy(self.initial_bids[0]) bid["lotValues"] = bid["lotValues"][:1] # post three bids bid["tenderers"][0]["identifier"]["id"] = u"00037256" response = self.app.post_json("/tenders/{}/bids...
48.946667
113
0.649687
2c3b41a37fab575489e6a45a5a8ba594e123fb10
14,269
py
Python
src/prepro/json_to_data.py
RowitZou/DAMS
98f9a459d42cb38ee0aac48bef94dde0c8392a76
[ "MIT" ]
3
2021-10-22T03:01:29.000Z
2022-02-25T05:42:42.000Z
src/prepro/json_to_data.py
RowitZou/DAMS
98f9a459d42cb38ee0aac48bef94dde0c8392a76
[ "MIT" ]
1
2021-11-15T08:01:44.000Z
2021-11-27T05:20:55.000Z
src/prepro/json_to_data.py
RowitZou/DAMS
98f9a459d42cb38ee0aac48bef94dde0c8392a76
[ "MIT" ]
2
2021-11-05T08:28:17.000Z
2021-12-01T00:11:34.000Z
# -*- coding:utf-8 -*- import gc import glob import json import os import re import torch import random from os.path import join as pjoin from multiprocess import Pool from others.logging import logger from transformers import BertTokenizer dialog_dataset = ['reddit'] summ_dataset = ['cnndm', 'gigaword', 'newsroom'...
42.341246
117
0.594856
e683555efbfddb2e2d22fd190d23981d291fc649
3,645
py
Python
lesson 6/audit.py
olive-everest/wrangling_mongodb
f4af9c0e5d6ac9611b2a1b6dc2b2ed46df07bc15
[ "MIT" ]
2
2020-03-03T23:57:09.000Z
2020-10-20T03:30:40.000Z
lesson 6/audit.py
olive-everest/wrangling_mongodb
f4af9c0e5d6ac9611b2a1b6dc2b2ed46df07bc15
[ "MIT" ]
null
null
null
lesson 6/audit.py
olive-everest/wrangling_mongodb
f4af9c0e5d6ac9611b2a1b6dc2b2ed46df07bc15
[ "MIT" ]
2
2018-09-03T21:48:51.000Z
2019-05-27T07:45:42.000Z
#!~/envs/udacity_python3_mongodb # -*- coding: utf-8 -*- """ In this problem set you work with cities infobox data, audit it, come up with a cleaning idea and then clean it up. In the first exercise we want you to audit the datatypes that can be found in some particular fields in the dataset. The possible types of val...
29.395161
79
0.640878
8bc62740398abc4f8aed93a9f973116ce4e85fc1
14,227
py
Python
src/freckles/separation/likelihood.py
bthorne93/freckles
cacb0c3846602f13b371252876f1f8e05dca54ba
[ "MIT" ]
null
null
null
src/freckles/separation/likelihood.py
bthorne93/freckles
cacb0c3846602f13b371252876f1f8e05dca54ba
[ "MIT" ]
null
null
null
src/freckles/separation/likelihood.py
bthorne93/freckles
cacb0c3846602f13b371252876f1f8e05dca54ba
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function import numpy as np import healpy as hp from copy import deepcopy from .skymodel import SkyModel from .instrumentmodel import InstrumentModel from scipy import stats, linalg import logging from collections.abc import Iterable class MapLike(object) : """Map-bas...
40.882184
99
0.609475
07d5016da02a24e6c0a6bb5e54626cc0b891b614
3,057
py
Python
sightings/migrations/0002_auto_20210410_2311.py
zc2575/4501_Squirrel_Tracker
3b90dd2f44149e607b342fcea582c4276cd8cf61
[ "BSD-3-Clause" ]
null
null
null
sightings/migrations/0002_auto_20210410_2311.py
zc2575/4501_Squirrel_Tracker
3b90dd2f44149e607b342fcea582c4276cd8cf61
[ "BSD-3-Clause" ]
null
null
null
sightings/migrations/0002_auto_20210410_2311.py
zc2575/4501_Squirrel_Tracker
3b90dd2f44149e607b342fcea582c4276cd8cf61
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-10 23:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sightings', '0001_initial'), ] operations = [ migrations.AlterField( model_name='squirrel', name='approaches', ...
38.696203
111
0.544325
e59ab0ef88eb85915b3ad1ad3c1b659c40fe2bd7
655
py
Python
exercises/fr/solution_04_03.py
dwinston/spacy-course
af72ded52d24dd28194f82935dbce663365f485f
[ "MIT" ]
null
null
null
exercises/fr/solution_04_03.py
dwinston/spacy-course
af72ded52d24dd28194f82935dbce663365f485f
[ "MIT" ]
null
null
null
exercises/fr/solution_04_03.py
dwinston/spacy-course
af72ded52d24dd28194f82935dbce663365f485f
[ "MIT" ]
null
null
null
import json from spacy.matcher import Matcher from spacy.lang.en import English with open("exercises/en/iphone.json") as f: TEXTS = json.loads(f.read()) nlp = English() matcher = Matcher(nlp.vocab) # Deux tokens dont les formes majuscules correspondent à "iphone" et "x" pattern1 = [{"LOWER": "iphone"}, {"LOWER":...
31.190476
73
0.712977
880f90949b8bf054f821d46521fba89276d602cf
2,303
py
Python
tmp/testoutput_summary.py
peterrosell/gocddash
c1004135dc66b0d8394d6025750b94e12650ab36
[ "MIT" ]
4
2016-01-20T19:53:06.000Z
2019-09-16T11:49:13.000Z
tmp/testoutput_summary.py
peterrosell/gocddash
c1004135dc66b0d8394d6025750b94e12650ab36
[ "MIT" ]
null
null
null
tmp/testoutput_summary.py
peterrosell/gocddash
c1004135dc66b0d8394d6025750b94e12650ab36
[ "MIT" ]
5
2016-07-13T10:41:20.000Z
2018-04-10T07:41:18.000Z
from gocddash.analysis import go_client from bs4 import BeautifulSoup as Bs from collections import Counter import json import re go = go_client.GoClient('http://go.pagero.local/go/', ('dash', 'board')) def get_pipelines(go): pipelines = [] result = json.loads(go.get_pipeline_groups()) for pipeline_grp i...
27.746988
241
0.577942
fe4960006a274b353951220f7204523fdded3ed7
2,926
py
Python
RMSE.py
Zeeshanahmad4/ML--RMSE-with-graphs
acd5f2acf49d92d019ab5d1d6c2331088ecd0c39
[ "MIT", "Unlicense" ]
1
2021-05-04T03:24:22.000Z
2021-05-04T03:24:22.000Z
RMSE.py
Zeeshanahmad4/ML--RMSE-with-graphs
acd5f2acf49d92d019ab5d1d6c2331088ecd0c39
[ "MIT", "Unlicense" ]
null
null
null
RMSE.py
Zeeshanahmad4/ML--RMSE-with-graphs
acd5f2acf49d92d019ab5d1d6c2331088ecd0c39
[ "MIT", "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- import csv import seaborn as sns import matplotlib.pyplot as plt import numpy as np import pandas as pd from sklearn.metrics import mean_squared_error from math import sqrt List_of_rmse = [] def rmse(predictions, targets): differences = predictions - targets ...
28.407767
148
0.637047
644e80cfcf5e291104d4bb7215b18dea00c84abb
6,437
py
Python
tools/codegen/core/gen_settings_ids.py
arghyadip01/grpc
9e10bfc8a096ef91a327e22f84f10c0fabff4417
[ "Apache-2.0" ]
9
2020-12-04T07:34:08.000Z
2022-03-07T21:10:35.000Z
tools/codegen/core/gen_settings_ids.py
arghyadip01/grpc
9e10bfc8a096ef91a327e22f84f10c0fabff4417
[ "Apache-2.0" ]
62
2020-02-27T00:53:36.000Z
2021-02-05T06:10:53.000Z
tools/codegen/core/gen_settings_ids.py
arghyadip01/grpc
9e10bfc8a096ef91a327e22f84f10c0fabff4417
[ "Apache-2.0" ]
12
2020-07-14T23:59:57.000Z
2022-03-22T09:59:18.000Z
#!/usr/bin/env python2.7 # Copyright 2017 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
33.352332
112
0.671897
9c0fd24c15dd0569a214ac3997d320c1c289c80f
18,155
py
Python
CORE/engines/sizing.py
geoffreynyaga/ostrich-project
157cd7a3c3d9014e31ef21ca21de43f04d039997
[ "MIT" ]
15
2017-11-08T10:03:26.000Z
2021-12-21T07:02:44.000Z
CORE/engines/sizing.py
geoffreynyaga/ostrich-project
157cd7a3c3d9014e31ef21ca21de43f04d039997
[ "MIT" ]
9
2020-01-17T15:09:22.000Z
2022-03-25T19:02:05.000Z
CORE/engines/sizing.py
geoffreynyaga/ostrich-project
157cd7a3c3d9014e31ef21ca21de43f04d039997
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ################################################################################## # File: c:\Projects\KENYA ONE PROJECT\CORE\engines\sizing.py # # Project: c:\Projects\KENYA ONE PROJECT\CORE\engines # # Created Date: Thur...
32.711712
115
0.54558
617283ed1caf92aecacc76f903066125e21a8258
12,968
py
Python
polyorg/migrations/0004_auto__del_field_candidatelist_mpg_html_report__del_field_candidatelist.py
daonb/okqa
3babf225911294dec1249472a9a3f6141fa7d6a7
[ "BSD-3-Clause" ]
null
null
null
polyorg/migrations/0004_auto__del_field_candidatelist_mpg_html_report__del_field_candidatelist.py
daonb/okqa
3babf225911294dec1249472a9a3f6141fa7d6a7
[ "BSD-3-Clause" ]
null
null
null
polyorg/migrations/0004_auto__del_field_candidatelist_mpg_html_report__del_field_candidatelist.py
daonb/okqa
3babf225911294dec1249472a9a3f6141fa7d6a7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'CandidateList.mpg_html_report' db.delete_column(u'polyorg_candidatelist', 'mpg_html_report...
82.598726
208
0.567705
c6b3e82bfe54060a438999a855e14a4e14f39253
593
py
Python
advent-of-code/aoc2021/python/day01.py
sanchopanca/coding-for-pleasure
fed1910e8a5a4241bd55aed333afd79b4405a71d
[ "MIT" ]
null
null
null
advent-of-code/aoc2021/python/day01.py
sanchopanca/coding-for-pleasure
fed1910e8a5a4241bd55aed333afd79b4405a71d
[ "MIT" ]
null
null
null
advent-of-code/aoc2021/python/day01.py
sanchopanca/coding-for-pleasure
fed1910e8a5a4241bd55aed333afd79b4405a71d
[ "MIT" ]
null
null
null
import collections import itertools def sliding_window(iterable, n): # sliding_window('ABCDEFG', 4) -> ABCD BCDE CDEF DEFG it = iter(iterable) window = collections.deque(itertools.islice(it, n), maxlen=n) if len(window) == n: yield tuple(window) for x in it: window.append(x) ...
24.708333
65
0.629005
e0eba290e988adf77fba5bfe9b7bb394e51aa4b3
1,797
py
Python
team/utils.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
null
null
null
team/utils.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
21
2019-02-14T02:47:34.000Z
2022-01-23T02:22:54.000Z
team/utils.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
null
null
null
# from django.utils.translation import ugettext_lazy as _ UNCLAIMED = 'unclaimed' PENDING = 'pending' APPROVED = 'approved' PROFILE_STATUS_CHOICES = ( (UNCLAIMED, 'Unclaimed'), (PENDING, 'Pending Approval'), (APPROVED, 'Approved') ) STUDENT = 'student' COACH = 'coach' ALUMNI = 'alumni' RACER = 'racer' HEL...
21.392857
57
0.488592
e7e3ba329eaa872fe1c265a8cd2c780cadcda798
3,142
py
Python
oommfc/scripts/util.py
spinachslayer420/MSE598-SAF-Project
4719afdb6e90e9deb91268fe9a88e1cbf2b34a86
[ "BSD-3-Clause" ]
null
null
null
oommfc/scripts/util.py
spinachslayer420/MSE598-SAF-Project
4719afdb6e90e9deb91268fe9a88e1cbf2b34a86
[ "BSD-3-Clause" ]
null
null
null
oommfc/scripts/util.py
spinachslayer420/MSE598-SAF-Project
4719afdb6e90e9deb91268fe9a88e1cbf2b34a86
[ "BSD-3-Clause" ]
null
null
null
import numbers import numpy as np import discretisedfield as df def box_atlas(pmin, pmax, name): mif = f'# BoxAtlas for {name}_atlas\n' mif += f'Specify Oxs_BoxAtlas:{name}_atlas {{\n' mif += f' xrange {{ {pmin[0]} {pmax[0]} }}\n' mif += f' yrange {{ {pmin[1]} {pmax[1]} }}\n' mif += f' zrange {...
29.092593
71
0.568109
a91ed5c62f0ccf473054d453d5c0a88e96b4b33c
4,172
py
Python
pypals/__main__.py
byteface/pypals
fe07a1f2c6c310706e2f25c19262d1aa8a3d47a9
[ "MIT" ]
1
2021-08-17T01:27:04.000Z
2021-08-17T01:27:04.000Z
pypals/__main__.py
byteface/pypals
fe07a1f2c6c310706e2f25c19262d1aa8a3d47a9
[ "MIT" ]
null
null
null
pypals/__main__.py
byteface/pypals
fe07a1f2c6c310706e2f25c19262d1aa8a3d47a9
[ "MIT" ]
null
null
null
""" pypal CLI ==================================== - how you interact with your pypals """ import argparse import os import json from pathlib import Path from rich import print from .PyPal import PyPal from . import DefaultCommands, __version__, Utils, DocsMixin PYPALS_DIR = 'pypals' # TODO - pypal shoul...
32.341085
127
0.5628
ef479dcc5d8469e0dc03ff820eba47bb178e33ec
150
py
Python
django_tasks/django_01/main/admin.py
andriidem308/hillel_course
6415625c0d5cf781390020aa2d2ae49834c789a7
[ "MIT" ]
1
2021-03-31T16:07:07.000Z
2021-03-31T16:07:07.000Z
django_tasks/django_01/main/admin.py
andriidem308/hillel_course
6415625c0d5cf781390020aa2d2ae49834c789a7
[ "MIT" ]
1
2021-03-16T09:18:49.000Z
2021-03-16T09:25:09.000Z
django_tasks/django_01/main/admin.py
andriidem308/hillel_course
6415625c0d5cf781390020aa2d2ae49834c789a7
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from main.models import Post, User admin.site.register(User) admin.site.register(Post)
21.428571
34
0.8
9bf5ed1587f240acd0b62e6935f5684b690fdb46
735
py
Python
parserutils.py
kant/dbpreproc
46e278d2ea670306f6e1390548896075ffb61a30
[ "BSD-3-Clause" ]
null
null
null
parserutils.py
kant/dbpreproc
46e278d2ea670306f6e1390548896075ffb61a30
[ "BSD-3-Clause" ]
null
null
null
parserutils.py
kant/dbpreproc
46e278d2ea670306f6e1390548896075ffb61a30
[ "BSD-3-Clause" ]
1
2018-10-20T18:31:46.000Z
2018-10-20T18:31:46.000Z
# Parser utility functions from pyparsing import Literal, Optional def enclose(x,start,end): start = Literal(start).suppress() end = Literal(end).suppress() #start.setDebug(True) #end.setDebug(True) return start + x + end def parentheses(x): return enclose(x,"(",")") def curly_braces(x): ...
24.5
84
0.629932
17adc2e0317d43aeaee4deba5c7390c963c5d32a
292
py
Python
ao/core/utils.py
ZuluPro/ao
00afffc044a7242401a7c4e216d65b2b11d8b0c0
[ "BSD-3-Clause" ]
null
null
null
ao/core/utils.py
ZuluPro/ao
00afffc044a7242401a7c4e216d65b2b11d8b0c0
[ "BSD-3-Clause" ]
null
null
null
ao/core/utils.py
ZuluPro/ao
00afffc044a7242401a7c4e216d65b2b11d8b0c0
[ "BSD-3-Clause" ]
null
null
null
import time import threading def delay(wait, func, *args, **kwargs): def background_func(*args, **kwargs): time.sleep(wait) func(*args, **kwargs) thread = threading.Thread(target=background_func, args=args, kwargs=kwargs) thread.daemon = True thread.start()
24.333333
79
0.667808
85fc59d2771af695de2df0af4900da3cb6567e43
7,211
py
Python
generate.py
shamitlal/convolutional_occupancy_networks
1a5c9fc92ddbd38fc4da46f700528d818532aa6a
[ "MIT" ]
446
2020-07-28T23:58:00.000Z
2022-03-31T10:54:12.000Z
generate.py
shamitlal/convolutional_occupancy_networks
1a5c9fc92ddbd38fc4da46f700528d818532aa6a
[ "MIT" ]
43
2020-08-24T03:47:50.000Z
2022-03-23T13:24:57.000Z
generate.py
shamitlal/convolutional_occupancy_networks
1a5c9fc92ddbd38fc4da46f700528d818532aa6a
[ "MIT" ]
68
2020-08-17T09:11:36.000Z
2022-03-23T11:51:47.000Z
import torch import os import shutil import argparse from tqdm import tqdm import time from collections import defaultdict import pandas as pd from src import config from src.checkpoints import CheckpointIO from src.utils.io import export_pointcloud from src.utils.visualize import visualize_data from src.utils.voxels i...
33.230415
78
0.670503
fcda9767637715fc808bb322e3f9e26a9a4ef783
296
py
Python
[GJM]/Completed/Manaria Friends [BD]/ac_ManariaBD_NCED1v6.py
tuilakhanh/Encoding-Projects
8b254913457cb28e7d0890ad6b974d0d8f0cbecc
[ "MIT" ]
57
2019-01-31T17:32:46.000Z
2022-03-23T05:46:51.000Z
[GJM]/Completed/Manaria Friends [BD]/ac_ManariaBD_NCED1v6.py
tuilakhanh/Encoding-Projects
8b254913457cb28e7d0890ad6b974d0d8f0cbecc
[ "MIT" ]
null
null
null
[GJM]/Completed/Manaria Friends [BD]/ac_ManariaBD_NCED1v6.py
tuilakhanh/Encoding-Projects
8b254913457cb28e7d0890ad6b974d0d8f0cbecc
[ "MIT" ]
12
2019-04-30T06:16:13.000Z
2022-03-14T16:15:07.000Z
#!/usr/bin/env python3 import os from acsuite import eztrim import lvsfunc as lvf path = r'BDMV/[BDMV][190402][マナリアフレンズ II]/BD/BDMV/STREAM/00012.m2ts' src = lvf.src(path) if __name__ == "__main__": eztrim(src, (1004, 1988), f"{os.path.splitext(path)[0]}.wav", f"{__file__[3:-3]}_cut.wav")
24.666667
94
0.689189
8cf63a6f137f17c487f8bee836335762a86b46c3
9,850
py
Python
electrum/gui/qt/seed_dialog.py
sugarchain-dev/electrum-sugar
5c70bfa883950bb501625916a888618792cd635b
[ "MIT" ]
3
2019-09-13T12:49:22.000Z
2021-03-15T22:12:11.000Z
electrum/gui/qt/seed_dialog.py
sugarchain-dev/electrum-sugar
5c70bfa883950bb501625916a888618792cd635b
[ "MIT" ]
4
2019-09-13T12:07:33.000Z
2020-05-05T09:36:37.000Z
electrum/gui/qt/seed_dialog.py
sugarchain-dev/electrum-sugar
5c70bfa883950bb501625916a888618792cd635b
[ "MIT" ]
4
2019-09-16T04:30:09.000Z
2020-04-24T08:34:02.000Z
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2013 ecdsa@github # # 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 li...
41.737288
128
0.62
8451e71e0ec39f618d5af886337b3f8aa30ffbc2
3,555
py
Python
homeassistant/util/executor.py
nunnun/core
27e3a5ba83d2e1917ebe2225c1ba8980c6e5754a
[ "Apache-2.0" ]
5
2020-01-30T23:01:21.000Z
2020-09-07T12:29:40.000Z
homeassistant/util/executor.py
nunnun/core
27e3a5ba83d2e1917ebe2225c1ba8980c6e5754a
[ "Apache-2.0" ]
85
2019-12-07T16:14:36.000Z
2022-03-31T13:43:36.000Z
homeassistant/util/executor.py
blindlight86/home-assistant
eca1c92a015bd6fc130ba899da357e333fcb6d3e
[ "Apache-2.0" ]
4
2021-08-17T12:35:18.000Z
2021-12-28T16:07:40.000Z
"""Executor util helpers.""" from __future__ import annotations from concurrent.futures import ThreadPoolExecutor import contextlib import logging import queue import sys from threading import Thread import time import traceback from .thread import async_raise _LOGGER = logging.getLogger(__name__) MAX_LOG_ATTEMPTS ...
31.184211
78
0.630942
62f58ba3a821e52b5dd2f34357a16588c6f82fef
449
py
Python
data/scripts/templates/object/tangible/lair/guf_drolg/shared_lair_guf_drolg.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/lair/guf_drolg/shared_lair_guf_drolg.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/lair/guf_drolg/shared_lair_guf_drolg.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/lair/guf_drolg/shared_lair_guf_drolg.iff" result.attribute_template...
26.411765
77
0.726058
722b5ff9b46ff605e8c8f2110bf2ab72e54c81d1
12,189
py
Python
build/app/models/context2vec/main.py
tuzi123/https-github.com-tuzi123-HandwritingDetection
104930662b890ae5afc609e0ea1609f50bfdd107
[ "MIT" ]
4
2019-06-01T01:45:48.000Z
2021-08-03T18:20:14.000Z
build/app/models/context2vec/main.py
tuzi123/https-github.com-tuzi123-HandwritingDetection
104930662b890ae5afc609e0ea1609f50bfdd107
[ "MIT" ]
11
2020-01-28T22:48:40.000Z
2022-03-11T23:50:18.000Z
build/app/models/context2vec/main.py
tuzi123/https-github.com-tuzi123-HandwritingDetection
104930662b890ae5afc609e0ea1609f50bfdd107
[ "MIT" ]
1
2019-06-23T05:02:26.000Z
2019-06-23T05:02:26.000Z
import numpy as np import os import time import torch from torch import optim import boto3 from io import BytesIO from src.mscc_eval import mscc_evaluation from src.model import Context2vec from src.negative_sampling import NegativeSampling from src.utils import write_embedding, write_config, read_config, load_vocab f...
49.149194
124
0.526868
8e81066de71cbb2e582bf1b472c70e381e54474e
22,465
py
Python
pandas/core/arrays/integer.py
adbull/pandas
a6e43a43f2cb1b4b7d46b262be2efb825d033eb8
[ "BSD-3-Clause" ]
null
null
null
pandas/core/arrays/integer.py
adbull/pandas
a6e43a43f2cb1b4b7d46b262be2efb825d033eb8
[ "BSD-3-Clause" ]
null
null
null
pandas/core/arrays/integer.py
adbull/pandas
a6e43a43f2cb1b4b7d46b262be2efb825d033eb8
[ "BSD-3-Clause" ]
null
null
null
import copy import sys from typing import Type import warnings import numpy as np from pandas._libs import lib from pandas.compat import set_function_name from pandas.util._decorators import cache_readonly from pandas.core.dtypes.base import ExtensionDtype from pandas.core.dtypes.cast import astype_nansafe from pand...
29.062096
79
0.586423
56e8ddac3763a740d1a85f14b355d0aa8016eb99
6,336
py
Python
tools/wptrunner/wptrunner/tests/browsers/test_sauce.py
bkardell/wpt
026486d37d6d078885b9135959344c8b4dddea2d
[ "BSD-3-Clause" ]
null
null
null
tools/wptrunner/wptrunner/tests/browsers/test_sauce.py
bkardell/wpt
026486d37d6d078885b9135959344c8b4dddea2d
[ "BSD-3-Clause" ]
null
null
null
tools/wptrunner/wptrunner/tests/browsers/test_sauce.py
bkardell/wpt
026486d37d6d078885b9135959344c8b4dddea2d
[ "BSD-3-Clause" ]
null
null
null
import sys import mock import pytest from os.path import join, dirname sys.path.insert(0, join(dirname(__file__), "..", "..", "..")) sauce = pytest.importorskip("wptrunner.browsers.sauce") from wptserve.config import ConfigBuilder def test_sauceconnect_success(): with mock.patch.object(sauce.SauceConnect, "u...
38.168675
128
0.586963