hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
125
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
4
247
max_forks_repo_name
stringlengths
4
125
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
66d48aee09df4482ae72248fe5cf698ffaffa928
106
py
Python
tests/test_example.py
evrom/python-package
d7d0daec13da4ade9b7d2c96097c19dff6ba187a
[ "BSD-2-Clause" ]
null
null
null
tests/test_example.py
evrom/python-package
d7d0daec13da4ade9b7d2c96097c19dff6ba187a
[ "BSD-2-Clause" ]
null
null
null
tests/test_example.py
evrom/python-package
d7d0daec13da4ade9b7d2c96097c19dff6ba187a
[ "BSD-2-Clause" ]
null
null
null
from unittest import TestCase
15.142857
32
0.726415
from unittest import TestCase class ExampleTestCase(TestCase): def test_example(self): pass
15
11
49
33522d5a0e5a1a2934f46eb372aaa91d5264c310
193
py
Python
5. Strings/multi_line_strings.py
VasuGoel/python-personal-notes
752c84533677e30e2abdaaf288ed7cf43220bd42
[ "MIT" ]
1
2019-09-04T12:08:29.000Z
2019-09-04T12:08:29.000Z
5. Strings/multi_line_strings.py
VasuGoel/python-personal-notes
752c84533677e30e2abdaaf288ed7cf43220bd42
[ "MIT" ]
null
null
null
5. Strings/multi_line_strings.py
VasuGoel/python-personal-notes
752c84533677e30e2abdaaf288ed7cf43220bd42
[ "MIT" ]
2
2019-09-04T12:08:30.000Z
2020-10-13T16:18:58.000Z
greeting_message = ''' Hi John, We have received your purchase request successfully. We'll email you when after the package is dispatched. Thanks, Support Team ''' print(greeting_message)
14.846154
106
0.766839
greeting_message = ''' Hi John, We have received your purchase request successfully. We'll email you when after the package is dispatched. Thanks, Support Team ''' print(greeting_message)
0
0
0
bc42ceed708f7435a7fe173be8580c9dbe9c5fd0
8,274
py
Python
daisy/utils/splitter.py
roger-zhe-li/daisyRec
421d16adbb98a5b75134931b1cde5ac42857ef52
[ "Apache-2.0" ]
1
2021-04-04T11:52:08.000Z
2021-04-04T11:52:08.000Z
daisy/utils/splitter.py
roger-zhe-li/daisyRec
421d16adbb98a5b75134931b1cde5ac42857ef52
[ "Apache-2.0" ]
null
null
null
daisy/utils/splitter.py
roger-zhe-li/daisyRec
421d16adbb98a5b75134931b1cde5ac42857ef52
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd from sklearn.model_selection import KFold, train_test_split, GroupShuffleSplit def split_test(df, test_method='fo', test_size=.2): """ method of splitting data into training data and test data Parameters ---------- df : pd.DataFrame raw data waiting for test ...
44.967391
114
0.629321
import numpy as np import pandas as pd from sklearn.model_selection import KFold, train_test_split, GroupShuffleSplit def split_test(df, test_method='fo', test_size=.2): """ method of splitting data into training data and test data Parameters ---------- df : pd.DataFrame raw data waiting for test ...
477
0
60
2a552d302442f5a78ca02c89a6511397c0c088c0
3,007
py
Python
ethereum_stats.py
cleardev0829/ethereum-nft-activity
263f0eb93e6f812c2fd3941ab85c1e56b44e2663
[ "MIT" ]
84
2021-05-16T00:57:07.000Z
2022-03-30T21:36:17.000Z
ethereum_stats.py
cleardev0829/ethereum-nft-activity
263f0eb93e6f812c2fd3941ab85c1e56b44e2663
[ "MIT" ]
11
2021-05-17T05:31:57.000Z
2022-03-15T08:34:43.000Z
ethereum_stats.py
cleardev0829/ethereum-nft-activity
263f0eb93e6f812c2fd3941ab85c1e56b44e2663
[ "MIT" ]
6
2021-05-16T10:17:04.000Z
2022-03-23T23:55:01.000Z
import requests import os from collections import defaultdict import pandas as pd from io import StringIO from nearest_dict import NearestDict from utils import load_stats_endpoint if __name__ == '__main__': EthereumStats(verbose=True, update=True)
38.063291
71
0.62155
import requests import os from collections import defaultdict import pandas as pd from io import StringIO from nearest_dict import NearestDict from utils import load_stats_endpoint class EthereumStats: def __init__(self, update=False, verbose=False): self.cache_fn = 'data/ethereum_stats.csv' if upd...
2,679
-1
76
60299346a8dbfa82fe69fd77f6f240edb4338f85
575
py
Python
bitmovin_api_sdk/models/filter_type.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
null
null
null
bitmovin_api_sdk/models/filter_type.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:13:43.000Z
2020-07-06T07:13:43.000Z
bitmovin_api_sdk/models/filter_type.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:07:26.000Z
2020-07-06T07:07:26.000Z
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model
25
59
0.704348
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model class FilterType(Enum): CROP = "CROP" CONFORM = "CONFORM" WATERMARK = "WATERMARK" ENHANCED_WATERMARK = "ENHANCED_WATERMARK" ROTATE = "ROTATE" DEINTERLACE =...
0
412
23
7bfe5a2bda195f594b3a206467758abb045a880d
4,171
py
Python
smartcontract/venv/lib/python3.6/site-packages/bytecode/bytecode.py
simplitech/neoinvoice
bc9a0217858938b49f99fef13b3439f4a537a5f5
[ "MIT" ]
null
null
null
smartcontract/venv/lib/python3.6/site-packages/bytecode/bytecode.py
simplitech/neoinvoice
bc9a0217858938b49f99fef13b3439f4a537a5f5
[ "MIT" ]
null
null
null
smartcontract/venv/lib/python3.6/site-packages/bytecode/bytecode.py
simplitech/neoinvoice
bc9a0217858938b49f99fef13b3439f4a537a5f5
[ "MIT" ]
null
null
null
# alias to keep the 'bytecode' variable free import bytecode as _bytecode from bytecode.instr import UNSET, Label, SetLineno, Instr
32.333333
79
0.580676
# alias to keep the 'bytecode' variable free import bytecode as _bytecode from bytecode.instr import UNSET, Label, SetLineno, Instr class BaseBytecode: def __init__(self): self.argcount = 0 self.kwonlyargcount = 0 # FIXME: insane and safe value until _ConvertBytecodeToConcrete is able ...
3,659
173
204
8a50b79f3cf1186e9c93e7f970e028198d7fafec
3,276
py
Python
Totoro/db.py
sdss/Totoro
74befd99bda47ebb8c03a276b57371b5788e154a
[ "Apache-2.0" ]
1
2018-08-22T00:34:30.000Z
2018-08-22T00:34:30.000Z
Totoro/db.py
sdss/Totoro
74befd99bda47ebb8c03a276b57371b5788e154a
[ "Apache-2.0" ]
4
2018-06-06T22:10:14.000Z
2018-06-14T04:47:23.000Z
Totoro/db.py
sdss/Totoro
74befd99bda47ebb8c03a276b57371b5788e154a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ db.py Created by José Sánchez-Gallego on 25 Oct 2015. Licensed under a 3-clause BSD license. Revision history: 25 Oct 2015 J. Sánchez-Gallego Initial version """ from __future__ import division, print_function from SDSSconnect import DatabaseConnection from To...
32.76
87
0.639194
#!/usr/bin/env python # encoding: utf-8 """ db.py Created by José Sánchez-Gallego on 25 Oct 2015. Licensed under a 3-clause BSD license. Revision history: 25 Oct 2015 J. Sánchez-Gallego Initial version """ from __future__ import division, print_function from SDSSconnect import DatabaseConnection from To...
0
0
0
86555084f95f7e761045b55262c48702cf4fedb8
700
py
Python
Python-desenvolvimento/ex109.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
Python-desenvolvimento/ex109.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
Python-desenvolvimento/ex109.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
# Modifique as funções que form criadas no desafio 107 para que elas aceitem um parâmetro a mais, # informando se o valor retornado por elas vai ser ou não formatado pela função moeda(), desenvolvida no desafio 108. import moeda #Programa Principal valor = float(input('Digite o preço:R$ ')) print(f' A aumentand...
63.636364
146
0.721429
# Modifique as funções que form criadas no desafio 107 para que elas aceitem um parâmetro a mais, # informando se o valor retornado por elas vai ser ou não formatado pela função moeda(), desenvolvida no desafio 108. import moeda #Programa Principal valor = float(input('Digite o preço:R$ ')) print(f' A aumentand...
0
0
0
9cbaea8964bd6669ced4f828d2fdca4191294703
4,231
py
Python
mk2/plugins/discord.py
mark2devel/mark2
24db9461060ece13fc9e940721a561a3da69dec8
[ "MIT-feh" ]
12
2021-10-17T18:24:48.000Z
2022-02-02T17:21:16.000Z
mk2/plugins/discord.py
mark2devel/mark2
24db9461060ece13fc9e940721a561a3da69dec8
[ "MIT-feh" ]
19
2021-09-30T15:32:37.000Z
2022-03-11T12:45:44.000Z
mk2/plugins/discord.py
mark2devel/mark2
24db9461060ece13fc9e940721a561a3da69dec8
[ "MIT-feh" ]
5
2021-11-21T17:43:37.000Z
2021-12-18T15:10:28.000Z
import treq from mk2.events import EventPriority, ServerEvent, ServerStarted, ServerStopped, ServerStopping, ServerStarting from mk2.plugins import Plugin from mk2.shared import decode_if_bytes class WebhookObject(dict): """ Custom dict object that represents a discord webhook object """ def add_embed(s...
36.474138
111
0.622075
import treq from mk2.events import EventPriority, ServerEvent, ServerStarted, ServerStopped, ServerStopping, ServerStarting from mk2.plugins import Plugin from mk2.shared import decode_if_bytes class WebhookObject(dict): """ Custom dict object that represents a discord webhook object """ def __init__(self, u...
2,623
706
76
db216b646a4720cac5c7bf61c0221fc07bbc28d6
3,396
py
Python
src/sciplot/analysis.py
simonUU/sciplot
896a7a4efa7911a2bdf303311be674de12171fc4
[ "MIT" ]
null
null
null
src/sciplot/analysis.py
simonUU/sciplot
896a7a4efa7911a2bdf303311be674de12171fc4
[ "MIT" ]
null
null
null
src/sciplot/analysis.py
simonUU/sciplot
896a7a4efa7911a2bdf303311be674de12171fc4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Analysis tools """ import sciplot import numpy as np import matplotlib.pyplot as plt from .functions import _hist_init def plot_flatness(sig, tag, bins=None, ax=None, xrange=None, percent_step=5): """ Plotting differences of sig distribution in percentiles of tag distribution Arg...
28.066116
101
0.595701
# -*- coding: utf-8 -*- """ Analysis tools """ import sciplot import numpy as np import matplotlib.pyplot as plt from .functions import _hist_init def plot_flatness(sig, tag, bins=None, ax=None, xrange=None, percent_step=5): """ Plotting differences of sig distribution in percentiles of tag distribution Arg...
553
0
23
8de36e68ec6edfa63df90a9c396fa7136e08195b
1,696
py
Python
set2/CBCBitflipping.py
arunKumarNOP/Cryptopals-Solutions
529474679972e17566a233de110f0b47078ef3b9
[ "MIT" ]
null
null
null
set2/CBCBitflipping.py
arunKumarNOP/Cryptopals-Solutions
529474679972e17566a233de110f0b47078ef3b9
[ "MIT" ]
null
null
null
set2/CBCBitflipping.py
arunKumarNOP/Cryptopals-Solutions
529474679972e17566a233de110f0b47078ef3b9
[ "MIT" ]
null
null
null
import string import random from set1.Aes_cipher import * from set2.PkcsPadding import pkcs7_pad_check from set1.Xor import xorPlain KEY = ''.join([chr(random.randint(0,255)) for i in range(16)]) IV = ''.join([chr(random.randint(0,255)) for i in range(16)]) if __name__ == '__main__': # replace d with ; and se...
39.44186
121
0.719929
import string import random from set1.Aes_cipher import * from set2.PkcsPadding import pkcs7_pad_check from set1.Xor import xorPlain KEY = ''.join([chr(random.randint(0,255)) for i in range(16)]) IV = ''.join([chr(random.randint(0,255)) for i in range(16)]) def format_string(user_input): user_input = user_input....
500
0
69
164a70d52abb92a71df0d32864f77473b5e2decc
12,608
py
Python
networks/networks.py
nexuslrf/Tetris-RL
94e4066ed08e87493141af37f11b1b2387b189a3
[ "MIT" ]
3
2020-12-15T18:08:22.000Z
2020-12-18T06:09:49.000Z
networks/networks.py
nexuslrf/Tetris-RL
94e4066ed08e87493141af37f11b1b2387b189a3
[ "MIT" ]
null
null
null
networks/networks.py
nexuslrf/Tetris-RL
94e4066ed08e87493141af37f11b1b2387b189a3
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from networks.layers import NoisyLinear from networks.network_bodies import SimpleBody, AtariBody device = torch.device("cuda" if torch.cuda.is_available() else "cpu") ########Recurrent Architectures######### ########Actor Critic Architectur...
36.651163
152
0.633883
import torch import torch.nn as nn import torch.nn.functional as F from networks.layers import NoisyLinear from networks.network_bodies import SimpleBody, AtariBody device = torch.device("cuda" if torch.cuda.is_available() else "cpu") class DQN(nn.Module): def __init__(self, input_shape, num_actions, noisy=False,...
11,119
66
1,091
a1dceaf9a2935d1a6ca59068bfb4fc8ca01168e5
4,201
py
Python
orangecontrib/esrf/wofry/widgets/extension/ow_info.py
oasys-esrf-kit/OASYS1-ESRF-Extensions
5df1ac01a1319d900380196c850504e09e36f9d6
[ "MIT" ]
null
null
null
orangecontrib/esrf/wofry/widgets/extension/ow_info.py
oasys-esrf-kit/OASYS1-ESRF-Extensions
5df1ac01a1319d900380196c850504e09e36f9d6
[ "MIT" ]
null
null
null
orangecontrib/esrf/wofry/widgets/extension/ow_info.py
oasys-esrf-kit/OASYS1-ESRF-Extensions
5df1ac01a1319d900380196c850504e09e36f9d6
[ "MIT" ]
1
2020-06-22T05:46:07.000Z
2020-06-22T05:46:07.000Z
import sys from PyQt5 import QtGui, QtWidgets from PyQt5.QtCore import QRect from PyQt5.QtWidgets import QApplication, QFileDialog from Shadow import ShadowTools as ST from orangewidget import gui from oasys.widgets import gui as oasysgui, widget from oasys.util.oasys_util import EmittingStream from orangecontrib.wof...
36.215517
153
0.685313
import sys from PyQt5 import QtGui, QtWidgets from PyQt5.QtCore import QRect from PyQt5.QtWidgets import QApplication, QFileDialog from Shadow import ShadowTools as ST from orangewidget import gui from oasys.widgets import gui as oasysgui, widget from oasys.util.oasys_util import EmittingStream from orangecontrib.wof...
2,995
561
23
6bfe089b4d6373b2da8ea4381602de6bb894705f
728
py
Python
projects/distribution_tools/Glue-and-C-Codec/build-rlglue-uninstall-script.py
sakaimiho/rl-glue-ext
914b039849544a042f138cea2aa28c2b4af1b049
[ "Apache-2.0" ]
1
2017-05-26T03:21:24.000Z
2017-05-26T03:21:24.000Z
projects/distribution_tools/Glue-and-C-Codec/build-rlglue-uninstall-script.py
cameron-upright/rl-glue-ext
914b039849544a042f138cea2aa28c2b4af1b049
[ "Apache-2.0" ]
null
null
null
projects/distribution_tools/Glue-and-C-Codec/build-rlglue-uninstall-script.py
cameron-upright/rl-glue-ext
914b039849544a042f138cea2aa28c2b4af1b049
[ "Apache-2.0" ]
null
null
null
import os basePath = './install_root' RLGlue_Files = [] pythonTemplateFileName='uninstall-rlglue-template.py' pythonUninstallFileName='uninstall-resources/uninstall-rlglue.py' for root, dirs, files in os.walk(basePath): for f in files: if f.endswith('.h') or f.endswith('.dylib') or f.endswith('a'): thisName=os....
28
65
0.752747
import os basePath = './install_root' RLGlue_Files = [] pythonTemplateFileName='uninstall-rlglue-template.py' pythonUninstallFileName='uninstall-resources/uninstall-rlglue.py' for root, dirs, files in os.walk(basePath): for f in files: if f.endswith('.h') or f.endswith('.dylib') or f.endswith('a'): thisName=os....
0
0
0
1891f09831170e77f4a81261ea5280b9bd506b24
1,915
py
Python
hello-world-book-programs/bank_account.py
kpatell/basic-python
0a8384913b7baba302b7eeefbb002492bc035048
[ "MIT" ]
null
null
null
hello-world-book-programs/bank_account.py
kpatell/basic-python
0a8384913b7baba302b7eeefbb002492bc035048
[ "MIT" ]
2
2020-05-27T00:08:35.000Z
2020-06-02T00:15:40.000Z
hello-world-book-programs/bank_account.py
kpatell/basic-python
0a8384913b7baba302b7eeefbb002492bc035048
[ "MIT" ]
null
null
null
# Krishan Patel # Bank Account Class """Chaper 14: Objects From Hello World! Computer Programming for Kids and Beginners Copyright Warren and Carter Sande, 2009-2013 """ # Chapter 14 - Try it out class BankAccount: """Creates a bank account""" def display_balance(self): """Displays the balance of the...
25.197368
76
0.695039
# Krishan Patel # Bank Account Class """Chaper 14: Objects From Hello World! Computer Programming for Kids and Beginners Copyright Warren and Carter Sande, 2009-2013 """ # Chapter 14 - Try it out class BankAccount: """Creates a bank account""" def __init__(self, name, account_number): self.name = name...
240
0
53
3d18f1d2709ff442b6691439e0c4a467a1de3bb7
6,358
py
Python
lib/blessed/tests/test_wrap.py
AkshayJainG/qark
c9a4c0025a8538bdaf728c152be7052890d52336
[ "Apache-2.0" ]
1
2020-02-14T02:46:31.000Z
2020-02-14T02:46:31.000Z
lib/blessed/tests/test_wrap.py
AkshayJainG/qark
c9a4c0025a8538bdaf728c152be7052890d52336
[ "Apache-2.0" ]
null
null
null
lib/blessed/tests/test_wrap.py
AkshayJainG/qark
c9a4c0025a8538bdaf728c152be7052890d52336
[ "Apache-2.0" ]
1
2018-05-12T16:01:58.000Z
2018-05-12T16:01:58.000Z
import platform import textwrap import termios import struct import fcntl import sys from accessories import ( as_subprocess, TestTerminal, many_columns, all_terms, ) import pytest def test_SequenceWrapper_invalid_width(): """Test exception thrown from invalid width""" WIDTH = -3 @as_su...
37.181287
78
0.572664
import platform import textwrap import termios import struct import fcntl import sys from accessories import ( as_subprocess, TestTerminal, many_columns, all_terms, ) import pytest def test_SequenceWrapper_invalid_width(): """Test exception thrown from invalid width""" WIDTH = -3 @as_su...
5,250
0
104
cfb0c577d88de71fb6fbf5bae1c992844ad025b8
1,483
py
Python
src/commands.py
Brodevil/Devil-bot
1d6aab1004902ff9e9e727250006e4ba5b6a92eb
[ "MIT" ]
2
2021-11-07T14:48:53.000Z
2022-01-22T15:42:46.000Z
src/commands.py
NVS-OS/Devil-bot
6d5bd63492fda342330012d4fdf664556360c206
[ "MIT" ]
null
null
null
src/commands.py
NVS-OS/Devil-bot
6d5bd63492fda342330012d4fdf664556360c206
[ "MIT" ]
1
2022-01-22T15:42:47.000Z
2022-01-22T15:42:47.000Z
from logging import getLogger from os import system from discord.ext import commands import discord from src.constants import Colours from src.exts.utils.converter import acute_remover log = getLogger(__name__) class Commands(commands.Cog): """A couple of simple commands.""" @commands.command(name="hello...
28.519231
68
0.650034
from logging import getLogger from os import system from discord.ext import commands import discord from src.constants import Colours from src.exts.utils.converter import acute_remover log = getLogger(__name__) class Commands(commands.Cog): """A couple of simple commands.""" def __init__(self, bot: comma...
746
0
154
3e892df4eefb7bfec84af46bf91134c50132288f
763
py
Python
Level1/Lessons12910/gamjapark.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
null
null
null
Level1/Lessons12910/gamjapark.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
null
null
null
Level1/Lessons12910/gamjapark.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
1
2021-04-05T07:35:59.000Z
2021-04-05T07:35:59.000Z
#나누어 떨어지는 숫자 배열 ''' 채점을 시작합니다. 정확성 테스트 테스트 1 〉 통과 (0.02ms, 10.2MB) 테스트 2 〉 통과 (0.01ms, 10.3MB) 테스트 3 〉 통과 (0.02ms, 10.2MB) 테스트 4 〉 통과 (0.02ms, 10.2MB) 테스트 5 〉 통과 (0.01ms, 10.1MB) 테스트 6 〉 통과 (3.22ms, 13.4MB) 테스트 7 〉 통과 (0.27ms, 10.3MB) 테스트 8 〉 통과 (0.00ms, 10.2MB) 테스트 9 〉 통과 (0.19ms, 10.2MB) 테스트 10 〉 통과 (0.13ms, 10.2M...
20.621622
30
0.558322
#나누어 떨어지는 숫자 배열 def solution(arr, divisor): answer = [] for num in arr: if num % divisor == 0: answer.append(num) if len(answer) == 0: answer.append(-1) else: answer.sort() return answer ''' 채점을 시작합니다. 정확성 테스트 테스트 1 〉 통과 (0.02ms, 10.2MB) 테스트 2 〉 통과 (0.01ms, 10...
205
0
23
27e8a9ac4a7c3696b29b01db8e242a22ea071cad
225
py
Python
ogs5py/fileclasses/fct/__init__.py
GeoStat-Framework/ogs5py
2bc4428c4c485d094e02c129ba5051745df58391
[ "MIT" ]
12
2018-12-11T15:44:58.000Z
2022-03-30T19:04:42.000Z
ogs5py/fileclasses/fct/__init__.py
GeoStat-Framework/ogs5py
2bc4428c4c485d094e02c129ba5051745df58391
[ "MIT" ]
4
2019-07-09T17:47:05.000Z
2021-12-27T07:34:07.000Z
ogs5py/fileclasses/fct/__init__.py
MuellerSeb/ogs5py
752e7bd2298fbd476406d168f6b7d1a85863dccd
[ "MIT" ]
5
2019-04-04T19:47:56.000Z
2021-04-28T21:56:39.000Z
# -*- coding: utf-8 -*- """ Class for the ogs FUNCTION file. .. currentmodule:: ogs5py.fileclasses.fct File Class ^^^^^^^^^^ .. autosummary:: FCT ---- """ from ogs5py.fileclasses.fct.core import FCT __all__ = ["FCT"]
12.5
43
0.617778
# -*- coding: utf-8 -*- """ Class for the ogs FUNCTION file. .. currentmodule:: ogs5py.fileclasses.fct File Class ^^^^^^^^^^ .. autosummary:: FCT ---- """ from ogs5py.fileclasses.fct.core import FCT __all__ = ["FCT"]
0
0
0
413d6ea90fc1c4dec6a566570836cdea7bf79d30
14,542
py
Python
main.py
luisjimenez6245/PANhunt
b240738f05534b860ac7631a4f2a8f5a7c56daaf
[ "BSD-3-Clause" ]
null
null
null
main.py
luisjimenez6245/PANhunt
b240738f05534b860ac7631a4f2a8f5a7c56daaf
[ "BSD-3-Clause" ]
null
null
null
main.py
luisjimenez6245/PANhunt
b240738f05534b860ac7631a4f2a8f5a7c56daaf
[ "BSD-3-Clause" ]
1
2021-11-03T00:01:08.000Z
2021-11-03T00:01:08.000Z
#! /usr/bin/env python # -*- coding: UTF-8 -*- # # Copyright (c) 2014, Dionach Ltd. All rights reserved. See LICENSE file. # # PANhunt: search directories and sub directories for documents with PANs # By BB import os import sys import re import argparse import time import hashlib import platform import colorama import...
45.021672
242
0.647022
#! /usr/bin/env python # -*- coding: UTF-8 -*- # # Copyright (c) 2014, Dionach Ltd. All rights reserved. See LICENSE file. # # PANhunt: search directories and sub directories for documents with PANs # By BB import os import sys import re import argparse import time import hashlib import platform import colorama import...
7,005
0
321
b2029cf303c87e0b22674a5f443a78aa1bcde5d9
552
py
Python
source/pacman-6.0.1/test/pacman/tests/sync-failover-404-with-body.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pacman-6.0.1/test/pacman/tests/sync-failover-404-with-body.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pacman-6.0.1/test/pacman/tests/sync-failover-404-with-body.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
self.description = "server failover after 404" self.require_capability("curl") p1 = pmpkg('pkg') self.addpkg2db('sync', p1) url_broke = self.add_simple_http_server({ '/{}'.format(p1.filename()): { 'code': 404, 'body': 'a', } }) url_good = self.add_simple_http_server({ '/{}'.format(p1.filen...
22.08
58
0.652174
self.description = "server failover after 404" self.require_capability("curl") p1 = pmpkg('pkg') self.addpkg2db('sync', p1) url_broke = self.add_simple_http_server({ '/{}'.format(p1.filename()): { 'code': 404, 'body': 'a', } }) url_good = self.add_simple_http_server({ '/{}'.format(p1.filen...
0
0
0
3fa6c4b3b51eb6d8cdcd534857fc7b1c9900345c
3,089
py
Python
editor/editor_config.py
PeterC10/COFPES-OF-Editor-6
0a9c9b75fada8264634bdc968c9da209c44b29e2
[ "MIT" ]
1
2022-03-11T12:25:57.000Z
2022-03-11T12:25:57.000Z
editor/editor_config.py
PeterC10/COFPES-OF-Editor-6
0a9c9b75fada8264634bdc968c9da209c44b29e2
[ "MIT" ]
null
null
null
editor/editor_config.py
PeterC10/COFPES-OF-Editor-6
0a9c9b75fada8264634bdc968c9da209c44b29e2
[ "MIT" ]
null
null
null
from bidict import bidict
26.86087
41
0.360311
from bidict import bidict class EditorConfig: NATIONALITIES = bidict( { 0: "AUSTRIA", 1: "BELGIUM", 2: "BULGARIA", 3: "CROATIA", 4: "CZECH REPUBLIC", 5: "DENMARK", 6: "ENGLAND", 7: "FINLAND", 8: "FR...
0
3,039
23
8ea2929e2f5d4fee7d55d4896d37cd35be636e2f
41
py
Python
Chapter16/cf_rfem_hist_price/venv/lib/python3.6/hmac.py
wtwong316/Mastering-Elasticsearch-7.0
8e88f938c9feb201649bd23c4d517bc6af93fbaa
[ "MIT" ]
25
2019-03-08T01:03:03.000Z
2022-02-14T17:38:32.000Z
Chapter16/cf_rfem_hist_price/venv/lib/python3.6/hmac.py
wtwong316/Mastering-Elasticsearch-7.0
8e88f938c9feb201649bd23c4d517bc6af93fbaa
[ "MIT" ]
2
2019-02-15T17:34:37.000Z
2019-07-11T14:37:02.000Z
Chapter16/cf_rfem_hist_price/venv/lib/python3.6/hmac.py
wtwong316/Mastering-Elasticsearch-7.0
8e88f938c9feb201649bd23c4d517bc6af93fbaa
[ "MIT" ]
31
2019-01-15T20:16:50.000Z
2022-03-01T05:47:38.000Z
/home/wai/anaconda3/lib/python3.6/hmac.py
41
41
0.804878
/home/wai/anaconda3/lib/python3.6/hmac.py
0
0
0
db4c24f362c99b3cb1df27bc2eb1176b77a4f008
7,070
py
Python
dataset.py
YanWQ/MANet
e2ff92cd56efc25d446f1c0a12589d9cb56622cd
[ "MIT" ]
12
2020-02-11T23:48:10.000Z
2022-01-10T08:21:24.000Z
dataset.py
YanWQ/MANet
e2ff92cd56efc25d446f1c0a12589d9cb56622cd
[ "MIT" ]
2
2020-06-05T02:30:37.000Z
2020-07-31T05:52:45.000Z
dataset.py
YanWQ/MANet
e2ff92cd56efc25d446f1c0a12589d9cb56622cd
[ "MIT" ]
5
2020-04-06T10:10:33.000Z
2021-11-25T07:08:36.000Z
""" # ================================== # AUTHOR : Yan Li, Qiong Wang # CREATE DATE : 02.10.2020 # Contact : liyanxian19@gmail.com # ================================== # Change History: None # ================================== """ ########## Import python libs ########## import os ########## Import third...
44.1875
126
0.510891
""" # ================================== # AUTHOR : Yan Li, Qiong Wang # CREATE DATE : 02.10.2020 # Contact : liyanxian19@gmail.com # ================================== # Change History: None # ================================== """ ########## Import python libs ########## import os ########## Import third...
6,249
0
138
36430bfd0808d0d5e3da628e09b5e867449167db
2,239
py
Python
yaweather/models/fact.py
krabchuk/yaweather
47e97780cd805efc45c2238cd239e3f067249450
[ "MIT" ]
null
null
null
yaweather/models/fact.py
krabchuk/yaweather
47e97780cd805efc45c2238cd239e3f067249450
[ "MIT" ]
null
null
null
yaweather/models/fact.py
krabchuk/yaweather
47e97780cd805efc45c2238cd239e3f067249450
[ "MIT" ]
null
null
null
from typing import Optional from .base import Base, Condition, DayTime, PhenomCondition, PrecipitationType, Season, WindDir
31.535211
115
0.671728
from typing import Optional from .base import Base, Condition, DayTime, PhenomCondition, PrecipitationType, Season, WindDir class Fact(Base): # Temperature (°C) temp: float # What the temperature feels like (°C) feels_like: float # The water temperature (°C). This parameter is returned for locali...
255
1,858
23
78c13784d32c761c1b294b5a62c277cbd505dae0
412
py
Python
setup.py
LukeHD/lcd-controller2
ff14b17794e22d07a906d489f551013c6ae55f87
[ "MIT" ]
null
null
null
setup.py
LukeHD/lcd-controller2
ff14b17794e22d07a906d489f551013c6ae55f87
[ "MIT" ]
null
null
null
setup.py
LukeHD/lcd-controller2
ff14b17794e22d07a906d489f551013c6ae55f87
[ "MIT" ]
null
null
null
with open("README.md", "r") as fh: long_description = fh.read() from setuptools import setup, find_packages setup( name='lcd-controller2', version='', packages=find_packages('src'), package_dir={'': 'src'}, url='', license='', author='Lukas Brennauer, Samuel Kroiss', author_email=...
19.619048
44
0.621359
with open("README.md", "r") as fh: long_description = fh.read() from setuptools import setup, find_packages setup( name='lcd-controller2', version='', packages=find_packages('src'), package_dir={'': 'src'}, url='', license='', author='Lukas Brennauer, Samuel Kroiss', author_email=...
0
0
0
e0dd0e2ac8c34672b793cac46e26e9582672846b
54,363
py
Python
chemsys/chemsys.py
tjczec01/symbolgen
e360810e872bb0041407d6d2f252683ea3b0c52d
[ "MIT" ]
null
null
null
chemsys/chemsys.py
tjczec01/symbolgen
e360810e872bb0041407d6d2f252683ea3b0c52d
[ "MIT" ]
null
null
null
chemsys/chemsys.py
tjczec01/symbolgen
e360810e872bb0041407d6d2f252683ea3b0c52d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 24 01:14:06 2020 Github: https://github.com/tjczec01 @author: Travis J Czechorski E-mail: tjczec01@gmail.com """ import sympy as sp from sympy import diff, Matrix, symbols, Add, Mul, Pow, Symbol, Integer, latex, exp, simplify from sympy.matrices.dense im...
43.420927
359
0.505583
# -*- coding: utf-8 -*- """ Created on Mon Feb 24 01:14:06 2020 Github: https://github.com/tjczec01 @author: Travis J Czechorski E-mail: tjczec01@gmail.com """ import sympy as sp from sympy import diff, Matrix, symbols, Add, Mul, Pow, Symbol, Integer, latex, exp, simplify from sympy.matrices.dense im...
50,838
1,686
98
359984d2efcf31862c177b8ad21ea7529ed252f1
7,628
py
Python
tests/test_ethash.py
norswap/execution-specs
c2274790e8ac2d637c7dbe092477a1b21243916c
[ "CC0-1.0" ]
1
2021-09-07T21:30:14.000Z
2021-09-07T21:30:14.000Z
tests/test_ethash.py
norswap/execution-specs
c2274790e8ac2d637c7dbe092477a1b21243916c
[ "CC0-1.0" ]
null
null
null
tests/test_ethash.py
norswap/execution-specs
c2274790e8ac2d637c7dbe092477a1b21243916c
[ "CC0-1.0" ]
null
null
null
import json import multiprocessing as mp import os import pkgutil import shutil import subprocess import tarfile import tempfile from random import randint from typing import Tuple, cast import pytest import requests from ethereum.base_types import Uint from ethereum.crypto import keccak256 from ethereum.ethash impor...
31.00813
105
0.662166
import json import multiprocessing as mp import os import pkgutil import shutil import subprocess import tarfile import tempfile from random import randint from typing import Tuple, cast import pytest import requests from ethereum.base_types import Uint from ethereum.crypto import keccak256 from ethereum.ethash impor...
4,919
0
298
8d98c01ed4c6b69f27663952ca8b02969b480b52
536
py
Python
run/wsid_utils.py
osmanbaskaya/wsid
b486fb907a85981aa0d0c30210df1d0c33fcbff2
[ "MIT" ]
1
2016-12-22T21:41:21.000Z
2016-12-22T21:41:21.000Z
run/wsid_utils.py
osmanbaskaya/wsid
b486fb907a85981aa0d0c30210df1d0c33fcbff2
[ "MIT" ]
4
2015-06-20T14:09:35.000Z
2015-06-26T18:29:26.000Z
run/wsid_utils.py
osmanbaskaya/wsid
b486fb907a85981aa0d0c30210df1d0c33fcbff2
[ "MIT" ]
1
2018-05-11T00:12:59.000Z
2018-05-11T00:12:59.000Z
__author__ = 'thorn' import logging import sys LOGGER = logging.getLogger()
26.8
79
0.703358
__author__ = 'thorn' import logging import sys LOGGER = logging.getLogger() def prepare_logger(log_level, filename=None): log_level = getattr(logging, log_level.upper(), None) if filename is None: filename = sys.stderr LOGGER.setLevel(level=log_level) handler = logging.StreamHandler(filename...
436
0
23
e9453d60c4d848a63a4895b1d3565c53b7257b94
2,866
py
Python
03_load/load.py
Informasjonsforvaltning/dataservice-publisher-etl
1368a4036ccfe11a53bcc1d69c44b75e5b896413
[ "Apache-2.0" ]
null
null
null
03_load/load.py
Informasjonsforvaltning/dataservice-publisher-etl
1368a4036ccfe11a53bcc1d69c44b75e5b896413
[ "Apache-2.0" ]
1
2021-09-14T10:09:55.000Z
2021-10-01T07:19:32.000Z
03_load/load.py
Informasjonsforvaltning/dataservice-publisher-etl
1368a4036ccfe11a53bcc1d69c44b75e5b896413
[ "Apache-2.0" ]
null
null
null
import json import logging from os import environ as env import requests from dotenv import load_dotenv # Get environment load_dotenv() DATASERVICE_PUBLISHER_HOST_URL = env.get("DATASERVICE_PUBLISHER_HOST_URL") ADMIN_USERNAME = env.get("ADMIN_USERNAME", "admin") ADMIN_PASSWORD = env.get("ADMIN_PASSWORD") INPUT_FILE =...
31.844444
75
0.64201
import json import logging from os import environ as env import requests from dotenv import load_dotenv # Get environment load_dotenv() DATASERVICE_PUBLISHER_HOST_URL = env.get("DATASERVICE_PUBLISHER_HOST_URL") ADMIN_USERNAME = env.get("ADMIN_USERNAME", "admin") ADMIN_PASSWORD = env.get("ADMIN_PASSWORD") INPUT_FILE =...
0
0
0
52b1621400649445d9209e1fd07f69c9b102cd5b
4,602
py
Python
create_model.py
shenalt/stroke_predictor
ab543200245ee51fce89f71d24e2acee74d6a152
[ "MIT" ]
null
null
null
create_model.py
shenalt/stroke_predictor
ab543200245ee51fce89f71d24e2acee74d6a152
[ "MIT" ]
null
null
null
create_model.py
shenalt/stroke_predictor
ab543200245ee51fce89f71d24e2acee74d6a152
[ "MIT" ]
null
null
null
# Import our libraries # Import pandas and numpy import pandas as pd import numpy as np import pickle import matplotlib.pyplot as plt # Helper function to split our data from sklearn.model_selection import train_test_split # Import our Logistic Regression model from sklearn.linear_model import LogisticRegressi...
31.958333
151
0.735115
# Import our libraries # Import pandas and numpy import pandas as pd import numpy as np import pickle import matplotlib.pyplot as plt # Helper function to split our data from sklearn.model_selection import train_test_split # Import our Logistic Regression model from sklearn.linear_model import LogisticRegressi...
0
0
0
38b9046147eb7b92e42ebab58b7eac2ed12093b0
2,507
py
Python
porcupine/_ipc.py
rscales02/porcupine
91b3c90d19d2291c0a60ddb9dffac931147cde3c
[ "MIT" ]
null
null
null
porcupine/_ipc.py
rscales02/porcupine
91b3c90d19d2291c0a60ddb9dffac931147cde3c
[ "MIT" ]
null
null
null
porcupine/_ipc.py
rscales02/porcupine
91b3c90d19d2291c0a60ddb9dffac931147cde3c
[ "MIT" ]
null
null
null
import contextlib from multiprocessing import connection import os import queue import threading from porcupine import dirs _ADDRESS_FILE = os.path.join(dirs.cachedir, 'ipc_address.txt') # the addresses contain random junk so they are very unlikely to # conflict with each other # example addresses: r'\\.\pipe\pyc-1...
29.845238
78
0.630634
import contextlib from multiprocessing import connection import os import queue import threading from porcupine import dirs _ADDRESS_FILE = os.path.join(dirs.cachedir, 'ipc_address.txt') # the addresses contain random junk so they are very unlikely to # conflict with each other # example addresses: r'\\.\pipe\pyc-1...
0
0
0
5ddb4e0b6eb17f491af6b878f4f11a4fce1b453f
1,700
py
Python
EE.py
SDRAST/Physics
09f0c44a86248844c80873922d7f38ef06421cb9
[ "Apache-2.0" ]
null
null
null
EE.py
SDRAST/Physics
09f0c44a86248844c80873922d7f38ef06421cb9
[ "Apache-2.0" ]
null
null
null
EE.py
SDRAST/Physics
09f0c44a86248844c80873922d7f38ef06421cb9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from Physics import eps_0, mu_0 from math import pi, sqrt resistivity = {'copper': 1.7e-8, 'aluminum': 2.8e-8, 'iron': 1e-7, 'steel-electrical': 4.6e-7, 'steel-stainless': 6.9e-7, 'gold': 2.44e-8, 'silver': 1.68e-8, 'graphite-min': 2.5e-6, 'graphite-...
24.637681
73
0.592353
# -*- coding: utf-8 -*- from Physics import eps_0, mu_0 from math import pi, sqrt resistivity = {'copper': 1.7e-8, 'aluminum': 2.8e-8, 'iron': 1e-7, 'steel-electrical': 4.6e-7, 'steel-stainless': 6.9e-7, 'gold': 2.44e-8, 'silver': 1.68e-8, 'graphite-min': 2.5e-6, 'graphite-...
0
0
0
13fa079fceb6372fb93108ddbe5fa7ac5c341390
2,337
py
Python
t2/test1.py
thagd/matias.exe
87b5d425bc9a7334179b5fbce9cd5aa41caab302
[ "MIT" ]
2
2019-10-31T03:51:49.000Z
2019-12-03T00:53:50.000Z
test1.py
FCChinen/lab2
b04b4e0788678e4de2365b74db505ef1a72b7103
[ "MIT" ]
null
null
null
test1.py
FCChinen/lab2
b04b4e0788678e4de2365b74db505ef1a72b7103
[ "MIT" ]
3
2019-09-03T00:48:16.000Z
2019-10-22T17:47:06.000Z
#!/usr/bin/env python3 import random from mytcputils import * from mytcp import Servidor foi_aceita = False rede = CamadaRede() dst_port = random.randint(10, 1023) servidor = Servidor(rede, dst_port) servidor.registrar_monitor_de_conexoes_aceitas(conexao_aceita) src_port = random.randint(1024, 0xffff) seq_no = rando...
38.95
123
0.746684
#!/usr/bin/env python3 import random from mytcputils import * from mytcp import Servidor class CamadaRede: def __init__(self): self.callback = None self.fila = [] def registrar_recebedor(self, callback): self.callback = callback def enviar(self, segmento, dest_addr): self.fi...
218
-4
123
28c30ab04f705a434750d94a90d626d4859129fa
5,245
py
Python
minigugl/client.py
FraBle/minigugl
2bfaab8daf1732fc3f2ed43fd743e8a1bfdb5843
[ "MIT" ]
null
null
null
minigugl/client.py
FraBle/minigugl
2bfaab8daf1732fc3f2ed43fd743e8a1bfdb5843
[ "MIT" ]
null
null
null
minigugl/client.py
FraBle/minigugl
2bfaab8daf1732fc3f2ed43fd743e8a1bfdb5843
[ "MIT" ]
null
null
null
"""Video stream client for Raspberry Pi-powered dash cam.""" import signal import sys from pathlib import Path from typing import Any, Optional import arrow import cv2 from loguru import logger from vidgear.gears import VideoGear, WriteGear from minigugl import annotation, config from minigugl.log import setup_loggin...
31.596386
79
0.666921
"""Video stream client for Raspberry Pi-powered dash cam.""" import signal import sys from pathlib import Path from typing import Any, Optional import arrow import cv2 from loguru import logger from vidgear.gears import VideoGear, WriteGear from minigugl import annotation, config from minigugl.log import setup_loggin...
1,195
0
23
11e709083c545777ba448930810585dfa41d391b
1,770
py
Python
mjpegserverpython.py
bootrino/maryjane
a1d7a3376a7a03e195e31221f473beeea33b895f
[ "MIT" ]
63
2021-10-06T11:11:56.000Z
2022-03-27T06:15:09.000Z
mjpegserverpython.py
bootrino/maryjane
a1d7a3376a7a03e195e31221f473beeea33b895f
[ "MIT" ]
1
2021-10-08T20:31:28.000Z
2021-10-08T20:52:54.000Z
mjpegserverpython.py
bootrino/maryjane
a1d7a3376a7a03e195e31221f473beeea33b895f
[ "MIT" ]
6
2021-10-08T04:54:48.000Z
2022-03-27T06:15:23.000Z
from sanic import response, Sanic import asyncio import timeit # MaryJane is an mjpeg server - it works by fetching *the same* jpeg image over and over from a ram drive # MIT license # copyright 2021 Andrew Stuart andrew.stuart@supercoders.com.au app = Sanic(__name__) @app.route('/maryjane/') if __name__ == '__main...
37.659574
105
0.660452
from sanic import response, Sanic import asyncio import timeit # MaryJane is an mjpeg server - it works by fetching *the same* jpeg image over and over from a ram drive # MIT license # copyright 2021 Andrew Stuart andrew.stuart@supercoders.com.au app = Sanic(__name__) def package_mjpeg(img_bytes): return (b'--fra...
1,266
0
44
6756dee5d1d8dd52ec0505aaa5dcd97179cf6a96
3,483
py
Python
test/unit/fixtures_adt_package.py
jakub-vaclavik-sap/sapcli
a0f40c3b2363bba0d34f705d92dd420d9adf3987
[ "Apache-2.0" ]
42
2019-01-16T13:16:09.000Z
2022-03-23T20:13:00.000Z
test/unit/fixtures_adt_package.py
jakub-vaclavik-sap/sapcli
a0f40c3b2363bba0d34f705d92dd420d9adf3987
[ "Apache-2.0" ]
59
2019-02-23T07:16:56.000Z
2022-02-28T09:34:47.000Z
test/unit/fixtures_adt_package.py
jakub-vaclavik-sap/sapcli
a0f40c3b2363bba0d34f705d92dd420d9adf3987
[ "Apache-2.0" ]
22
2019-03-12T08:15:44.000Z
2022-01-10T03:56:47.000Z
GET_PACKAGE_ADT_XML='''<?xml version="1.0" encoding="utf-8"?> <pak:package xmlns:pak="http://www.sap.com/adt/packages" xmlns:adtcore="http://www.sap.com/adt/core" adtcore:masterLanguage="EN" adtcore:name="$IAMTHEKING" adtcore:type="DEVC/K" adtcore:changedAt="2019-01-29T23:00:00Z" adtcore:version="active" adtcore:create...
102.441176
411
0.765145
GET_PACKAGE_ADT_XML='''<?xml version="1.0" encoding="utf-8"?> <pak:package xmlns:pak="http://www.sap.com/adt/packages" xmlns:adtcore="http://www.sap.com/adt/core" adtcore:masterLanguage="EN" adtcore:name="$IAMTHEKING" adtcore:type="DEVC/K" adtcore:changedAt="2019-01-29T23:00:00Z" adtcore:version="active" adtcore:create...
0
0
0
8c5626a13188adaf0ae62f7ee28e2672a0df440b
24,186
py
Python
doctorAI.py
raghutata143/Healthcare_Analytics
bc48e1cb0e89d2956d3808517cf4cf84cc7517bd
[ "BSD-3-Clause" ]
1
2021-02-23T05:10:17.000Z
2021-02-23T05:10:17.000Z
doctorAI.py
raghutata143/Healthcare_Analytics
bc48e1cb0e89d2956d3808517cf4cf84cc7517bd
[ "BSD-3-Clause" ]
null
null
null
doctorAI.py
raghutata143/Healthcare_Analytics
bc48e1cb0e89d2956d3808517cf4cf84cc7517bd
[ "BSD-3-Clause" ]
1
2021-02-23T05:10:18.000Z
2021-02-23T05:10:18.000Z
################################################################# # Code written by Edward Choi (mp2893@gatech.edu) # For bug report, please contact author using the email address ################################################################# import sys, random import numpy as np import cPickle as pickle from colle...
46.156489
351
0.717398
################################################################# # Code written by Edward Choi (mp2893@gatech.edu) # For bug report, please contact author using the email address ################################################################# import sys, random import numpy as np import cPickle as pickle from colle...
22,410
0
369
43ab7978cca3e92874497f2176611c1173d40ade
2,511
py
Python
python/pyserial-3.0/test/test_iolib.py
gotnone/hwa
4648cf6072a06552d22cbf6498b35f3e24ce38d5
[ "BSD-3-Clause" ]
25
2015-08-05T12:36:24.000Z
2021-03-26T01:51:58.000Z
python/pyserial-3.0/test/test_iolib.py
gotnone/hwa
4648cf6072a06552d22cbf6498b35f3e24ce38d5
[ "BSD-3-Clause" ]
2
2018-09-13T05:45:37.000Z
2020-06-18T15:00:51.000Z
python/pyserial-3.0/test/test_iolib.py
gotnone/hwa
4648cf6072a06552d22cbf6498b35f3e24ce38d5
[ "BSD-3-Clause" ]
4
2016-09-18T08:58:35.000Z
2020-07-16T11:43:29.000Z
#! /usr/bin/env python # # This file is part of pySerial - Cross platform serial port support for Python # (C) 2001-2015 Chris Liechti <cliechti@gmx.net> # # SPDX-License-Identifier: BSD-3-Clause """\ Some tests for the serial module. Part of pyserial (http://pyserial.sf.net) (C)2001-2009 cliechti@gmx.net Intended...
31.78481
79
0.621266
#! /usr/bin/env python # # This file is part of pySerial - Cross platform serial port support for Python # (C) 2001-2015 Chris Liechti <cliechti@gmx.net> # # SPDX-License-Identifier: BSD-3-Clause """\ Some tests for the serial module. Part of pyserial (http://pyserial.sf.net) (C)2001-2009 cliechti@gmx.net Intended...
412
21
130
3b6e34ed6a4874e788fb9246884ac62a399aee1c
844
py
Python
settings/views.py
hudecof/bacchus
1d7bafa2331535b27b336b42f07f8fe328f6d131
[ "Apache-2.0" ]
1
2020-04-15T14:31:48.000Z
2020-04-15T14:31:48.000Z
settings/views.py
hudecof/bacchus
1d7bafa2331535b27b336b42f07f8fe328f6d131
[ "Apache-2.0" ]
4
2019-04-13T08:35:51.000Z
2019-04-13T15:08:47.000Z
settings/views.py
hudecof/bacchus
1d7bafa2331535b27b336b42f07f8fe328f6d131
[ "Apache-2.0" ]
1
2019-03-25T07:48:29.000Z
2019-03-25T07:48:29.000Z
from django.shortcuts import render from django.shortcuts import redirect from django.contrib.auth.decorators import login_required from django.http import JsonResponse from django.core import serializers # Create your views here. from django.http import HttpResponse from django.template import loader from django.views...
32.461538
100
0.726303
from django.shortcuts import render from django.shortcuts import redirect from django.contrib.auth.decorators import login_required from django.http import JsonResponse from django.core import serializers # Create your views here. from django.http import HttpResponse from django.template import loader from django.views...
414
0
22
862ff91599547aadbc1b7ad7559acc383025966c
504
py
Python
tinder_api/utils/config.py
peterchun2000/TinderBioBot
bf968e1c4923a4d7b201df3b5bd5b9a950a81156
[ "MIT" ]
null
null
null
tinder_api/utils/config.py
peterchun2000/TinderBioBot
bf968e1c4923a4d7b201df3b5bd5b9a950a81156
[ "MIT" ]
null
null
null
tinder_api/utils/config.py
peterchun2000/TinderBioBot
bf968e1c4923a4d7b201df3b5bd5b9a950a81156
[ "MIT" ]
null
null
null
with open("tinder_api/utils/token.txt", "r") as f: tinder_token = f.read() # it is best for you to write in the token to save yourself the file I/O # especially if you have python byte code off #tinder_token = "" headers = { 'app_version': '6.9.4', 'platform': 'ios', 'content-type': 'application/json'...
25.2
72
0.640873
with open("tinder_api/utils/token.txt", "r") as f: tinder_token = f.read() # it is best for you to write in the token to save yourself the file I/O # especially if you have python byte code off #tinder_token = "" headers = { 'app_version': '6.9.4', 'platform': 'ios', 'content-type': 'application/json'...
0
0
0
5d0bd51242233aa324559b7eb615f363cf83b4a4
3,141
py
Python
infoblox_netmri/api/remote/models/issue_list_device_remote.py
infobloxopen/infoblox_netmri
aa1c744df7e439dbe163bb9edd165e4e85a9771b
[ "Apache-2.0" ]
12
2016-02-19T12:37:54.000Z
2022-03-04T20:11:08.000Z
infoblox_netmri/api/remote/models/issue_list_device_remote.py
azinfoblox/infoblox-netmri
02372c5231e2677ab6299cb659a73c9a41b4b0f4
[ "Apache-2.0" ]
18
2015-11-12T18:37:00.000Z
2021-05-19T07:59:55.000Z
infoblox_netmri/api/remote/models/issue_list_device_remote.py
azinfoblox/infoblox-netmri
02372c5231e2677ab6299cb659a73c9a41b4b0f4
[ "Apache-2.0" ]
18
2016-01-07T12:04:34.000Z
2022-03-31T11:05:41.000Z
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class IssueListDeviceRemote(RemoteModel): """ This table list out the entries of issues in the device. | ``IssueTimestamp:`` The date and time this issue list device record was collected or calculated. |...
33.063158
122
0.587393
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class IssueListDeviceRemote(RemoteModel): """ This table list out the entries of issues in the device. | ``IssueTimestamp:`` The date and time this issue list device record was collected or calculated. |...
0
0
0
3560d99e871344d4aeeafd4a7011d5815fffa435
250
py
Python
accounts/referrals/exceptions.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
accounts/referrals/exceptions.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
accounts/referrals/exceptions.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
""" """ from revibe.exceptions import RevibeException # -----------------------------------------------------------------------------
19.230769
79
0.532
""" """ from revibe.exceptions import RevibeException # ----------------------------------------------------------------------------- class BaseReferralException(RevibeException): pass class ReferralException(BaseReferralException): pass
0
68
46
d7a3fe0014580a864aab1eeba100ec0239d99108
413
py
Python
projects/fred-snyder-examples/windows-utils/auto_shutdown_windows.py
fred-snyder/notes-on-python
1837a8999ea0d736ff3804417524b8d8cb1955e6
[ "MIT" ]
1
2022-03-15T22:03:45.000Z
2022-03-15T22:03:45.000Z
projects/fred-snyder-examples/windows-utils/auto_shutdown_windows.py
fred-snyder/notes-on-python
1837a8999ea0d736ff3804417524b8d8cb1955e6
[ "MIT" ]
null
null
null
projects/fred-snyder-examples/windows-utils/auto_shutdown_windows.py
fred-snyder/notes-on-python
1837a8999ea0d736ff3804417524b8d8cb1955e6
[ "MIT" ]
null
null
null
""" Automatically shutdown windows after a user defined time period """ import subprocess from time import sleep print("") print("Auto Shutdown Windows") print("=====================") print("") seconds = float(raw_input("Specify time in minutes: ")) * 60.0 print("") print(">>> Computer will force shutdown automatica...
24.294118
85
0.670702
""" Automatically shutdown windows after a user defined time period """ import subprocess from time import sleep print("") print("Auto Shutdown Windows") print("=====================") print("") seconds = float(raw_input("Specify time in minutes: ")) * 60.0 print("") print(">>> Computer will force shutdown automatica...
0
0
0
6ed144d022c7f8b2c0e85c46561ea4c039a0e079
720
py
Python
Binary Search/744. Find Smallest Letter Greater Than Target.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
Binary Search/744. Find Smallest Letter Greater Than Target.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
Binary Search/744. Find Smallest Letter Greater Than Target.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
""" 744. Find Smallest Letter Greater Than Target Input: letters = ["c", "f", "j"] target = "a" Output: "c" Input: letters = ["c", "f", "j"] target = "c" Output: "f" Input: letters = ["c", "f", "j"] target = "d" Output: "f" Input: letters = ["c", "f", "j"] target = "g" Output: "j" Input: le...
16.744186
98
0.519444
""" 744. Find Smallest Letter Greater Than Target Input: letters = ["c", "f", "j"] target = "a" Output: "c" Input: letters = ["c", "f", "j"] target = "c" Output: "f" Input: letters = ["c", "f", "j"] target = "d" Output: "f" Input: letters = ["c", "f", "j"] target = "g" Output: "j" Input: le...
0
254
24
2b341b6cc86aecc7029b54867d3868098ce9287a
388
py
Python
python/edgeNode/menu.py
santosh/.nuke
1c87f82de0fcfcebfb3396ad65deffc754dae77a
[ "BSD-3-Clause" ]
1
2020-02-06T22:31:39.000Z
2020-02-06T22:31:39.000Z
python/edgeNode/menu.py
santosh/.nuke
1c87f82de0fcfcebfb3396ad65deffc754dae77a
[ "BSD-3-Clause" ]
9
2017-08-30T11:20:13.000Z
2020-02-21T19:41:03.000Z
python/edgeNode/menu.py
santosh/.nuke
1c87f82de0fcfcebfb3396ad65deffc754dae77a
[ "BSD-3-Clause" ]
2
2019-08-22T07:41:04.000Z
2021-01-19T14:56:04.000Z
# -*- coding: utf-8 -*- import nuke import edgeNode SantoshMenu.addCommand("edgeNode/Jump to First", "edgeNode.jump_to_edge_node('top')") SantoshMenu.addCommand("edgeNode/Jump to Last", "edgeNode.jump_to_edge_node('bottom')") SantoshMenu.addCommand("edgeNode/View First", "edgeNode.view_edge_node('top')") SantoshMenu.a...
48.5
87
0.773196
# -*- coding: utf-8 -*- import nuke import edgeNode SantoshMenu.addCommand("edgeNode/Jump to First", "edgeNode.jump_to_edge_node('top')") SantoshMenu.addCommand("edgeNode/Jump to Last", "edgeNode.jump_to_edge_node('bottom')") SantoshMenu.addCommand("edgeNode/View First", "edgeNode.view_edge_node('top')") SantoshMenu.a...
0
0
0
c5d1f9fb86149208278b6c383c655979144a9a0e
5,661
py
Python
code/multiclient.py
xwan3115/Chat-Room
1d3415ead06b4f612877909af9da31de327b47fb
[ "MIT" ]
null
null
null
code/multiclient.py
xwan3115/Chat-Room
1d3415ead06b4f612877909af9da31de327b47fb
[ "MIT" ]
null
null
null
code/multiclient.py
xwan3115/Chat-Room
1d3415ead06b4f612877909af9da31de327b47fb
[ "MIT" ]
null
null
null
#Python 3 #Usage: python3 UDPClient3.py localhost 12000 #coding: utf-8 from socket import * import sys # The argument of client servername = sys.argv[1] serverPort = sys.argv[2] udpPort = sys.argv[3] serverPort = int(serverPort) clientSocket = socket(AF_INET, SOCK_STREAM) clientSocket.connect((servername...
39.041379
117
0.571984
#Python 3 #Usage: python3 UDPClient3.py localhost 12000 #coding: utf-8 from socket import * import sys # The argument of client servername = sys.argv[1] serverPort = sys.argv[2] udpPort = sys.argv[3] serverPort = int(serverPort) clientSocket = socket(AF_INET, SOCK_STREAM) clientSocket.connect((servername...
2,269
0
123
9254cee6730565f0da3ef736b1d1850ce942a265
461
py
Python
openstack_dashboard/dashboards/techbk_head/dashboard.py
TechBK/horizon-dev
db426842116af515f00b9e7c887f4f3f9f28298c
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/techbk_head/dashboard.py
TechBK/horizon-dev
db426842116af515f00b9e7c887f4f3f9f28298c
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/techbk_head/dashboard.py
TechBK/horizon-dev
db426842116af515f00b9e7c887f4f3f9f28298c
[ "Apache-2.0" ]
null
null
null
from django.utils.translation import ugettext_lazy as _ import horizon horizon.register(Techbk_Head)
24.263158
86
0.704989
from django.utils.translation import ugettext_lazy as _ import horizon class Mygroup(horizon.PanelGroup): slug = "firstgroup" name = _("First Group") panels = ('firstpanel','newpanel',) class Techbk_Head(horizon.Dashboard): name = _("Techbk Head") slug = "techbk_head" panels = (Mygroup,) # ...
0
310
46
0394f742acfd826dd28d708c88756dd5f480cf2f
3,336
py
Python
orchestra/plugins/forms.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
68
2015-02-09T10:28:44.000Z
2022-03-12T11:08:36.000Z
orchestra/plugins/forms.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
17
2015-05-01T18:10:03.000Z
2021-03-19T21:52:55.000Z
orchestra/plugins/forms.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
29
2015-03-31T04:51:03.000Z
2022-02-17T02:58:50.000Z
from django import forms from django.utils.encoding import force_text from orchestra.admin.utils import admin_link from orchestra.forms.widgets import SpanWidget
45.081081
99
0.603717
from django import forms from django.utils.encoding import force_text from orchestra.admin.utils import admin_link from orchestra.forms.widgets import SpanWidget class PluginForm(forms.ModelForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) if self.plugin_field in self....
2,873
176
121
eb1d948d1dba72846fa6a82b0a43ff897a809dbe
10,254
py
Python
DA_test.py
selva604/DA_TBN
240b3561eb5957e2827a5b8ef8fbd991d51489f4
[ "MIT" ]
1
2021-06-17T12:32:21.000Z
2021-06-17T12:32:21.000Z
DA_test.py
selva604/DA_TBN
240b3561eb5957e2827a5b8ef8fbd991d51489f4
[ "MIT" ]
null
null
null
DA_test.py
selva604/DA_TBN
240b3561eb5957e2827a5b8ef8fbd991d51489f4
[ "MIT" ]
null
null
null
import os import argparse import time import torch.nn.functional as F import torch.nn.parallel import torch.optim from sklearn.metrics import confusion_matrix, accuracy_score import seaborn as sns import matplotlib.pyplot as plt import pandas as pd from dataset import TBNDataSet from DA_model import TBN from transfor...
37.423358
165
0.590014
import os import argparse import time import torch.nn.functional as F import torch.nn.parallel import torch.optim from sklearn.metrics import confusion_matrix, accuracy_score import seaborn as sns import matplotlib.pyplot as plt import pandas as pd from dataset import TBNDataSet from DA_model import TBN from transfor...
9,875
0
160
f8507130797ddd9ce63f9ec8aba8f0325588ca4a
2,801
py
Python
src/napari_morphodynamics/_tests/test_widget.py
guiwitz/napari-morphodynamics
f1300bc9a45864356d83eab95660ae3efec5435b
[ "BSD-3-Clause" ]
null
null
null
src/napari_morphodynamics/_tests/test_widget.py
guiwitz/napari-morphodynamics
f1300bc9a45864356d83eab95660ae3efec5435b
[ "BSD-3-Clause" ]
null
null
null
src/napari_morphodynamics/_tests/test_widget.py
guiwitz/napari-morphodynamics
f1300bc9a45864356d83eab95660ae3efec5435b
[ "BSD-3-Clause" ]
null
null
null
import pytest import napari_morphodynamics import napari_morphodynamics.napari_gui from morphodynamics.data import synth import numpy as np import h5py import napari_morphodynamics @pytest.fixture(scope="session") def dataset(tmp_path_factory): """Create a dataset for testing.""" new_path = tmp_path_factory....
37.851351
110
0.717958
import pytest import napari_morphodynamics import napari_morphodynamics.napari_gui from morphodynamics.data import synth import numpy as np import h5py import napari_morphodynamics @pytest.fixture(scope="session") def dataset(tmp_path_factory): """Create a dataset for testing.""" new_path = tmp_path_factory....
1,349
0
68
2a1405546ed30a2c236a5eefc1d8dcfc524c4fb2
2,711
py
Python
scratch/odf.py
JohnGriffiths/dipy
5fb38e9b77547cdaf5eb140730444535733ae01d
[ "BSD-3-Clause" ]
3
2015-07-31T20:43:18.000Z
2019-07-26T13:58:07.000Z
scratch/odf.py
JohnGriffiths/dipy
5fb38e9b77547cdaf5eb140730444535733ae01d
[ "BSD-3-Clause" ]
9
2015-05-13T17:44:42.000Z
2018-05-27T20:09:55.000Z
scratch/odf.py
JohnGriffiths/dipy
5fb38e9b77547cdaf5eb140730444535733ae01d
[ "BSD-3-Clause" ]
3
2016-08-05T22:43:16.000Z
2017-06-23T18:35:13.000Z
import numpy as np from enthought.mayavi import mlab import Image if __name__ == '__main__': import dipy.core.qball as qball from dipy.io.bvectxt import read_bvec_file filename='/Users/bagrata/HARDI/E1322S8I1.nii.gz' grad_table_filename='/Users/bagrata/HARDI/E1322S8I1.bvec' from nipy import load_im...
32.27381
79
0.568794
import numpy as np from enthought.mayavi import mlab import Image def disp_odf(sph_map, theta_res=64, phi_res=32, colormap='RGB', colors=256): pi = np.pi sin = np.sin cos = np.cos theta, phi = np.mgrid[0:2*pi:theta_res*1j, 0:pi:phi_res*1j] x = sin(phi)*cos(theta) y = sin(phi)*sin(theta) ...
1,789
0
46
50d614b501cdda6de87d46c5e94382c1d58a0243
513
py
Python
word_edit/spellcheck_utils.py
binhetech/PIE-GEC
99b46f38d11f8c10c3e0c0758c68633729e70ce7
[ "MIT" ]
1
2021-07-14T07:08:48.000Z
2021-07-14T07:08:48.000Z
word_edit/spellcheck_utils.py
binhetech/PIE-GEC
99b46f38d11f8c10c3e0c0758c68633729e70ce7
[ "MIT" ]
null
null
null
word_edit/spellcheck_utils.py
binhetech/PIE-GEC
99b46f38d11f8c10c3e0c0758c68633729e70ce7
[ "MIT" ]
null
null
null
import re reg_ex = re.compile(r"^[a-z][a-z]*[a-z]$") no_reg_ex = re.compile(r".*[0-9].*") mc_reg_ex = re.compile(r".*[A-Z].*[A-Z].*") def containsNumber(text): """包含数字.""" return no_reg_ex.match(text) def containsMultiCapital(text): """包含多个大写字母.""" return mc_reg_ex.match(text) def can_spellcheck(...
20.52
84
0.617934
import re reg_ex = re.compile(r"^[a-z][a-z]*[a-z]$") no_reg_ex = re.compile(r".*[0-9].*") mc_reg_ex = re.compile(r".*[A-Z].*[A-Z].*") def containsNumber(text): """包含数字.""" return no_reg_ex.match(text) def containsMultiCapital(text): """包含多个大写字母.""" return mc_reg_ex.match(text) def can_spellcheck(...
0
0
0
9ec7e7ba75545a14f295f33d86c287dc2df77f62
1,951
py
Python
tests/test_community.py
Biomathsys/ncmw
e3a128f15a4183a67f32f9874519c18a319accc8
[ "MIT" ]
5
2022-01-19T12:55:35.000Z
2022-03-10T13:17:22.000Z
tests/test_community.py
Biomathsys/ncmw
e3a128f15a4183a67f32f9874519c18a319accc8
[ "MIT" ]
5
2022-02-18T08:17:04.000Z
2022-02-23T13:50:15.000Z
tests/test_community.py
Biomathsys/ncmw
e3a128f15a4183a67f32f9874519c18a319accc8
[ "MIT" ]
1
2021-12-02T12:23:59.000Z
2021-12-02T12:23:59.000Z
from pandas.core.algorithms import isin import pytest from ncmw.utils import get_models import numpy as np from pandas import DataFrame from ncmw.community.community_models import ( BagOfReactionsModel, ShuttleCommunityModel, create_stoichiometry_matrix, ) MODELS = get_models("models") CO...
32.516667
85
0.6694
from pandas.core.algorithms import isin import pytest from ncmw.utils import get_models import numpy as np from pandas import DataFrame from ncmw.community.community_models import ( BagOfReactionsModel, ShuttleCommunityModel, create_stoichiometry_matrix, ) MODELS = get_models("models") CO...
1,395
0
46
3bbd10b60a915bd390b2704473ef45e5842576df
1,499
py
Python
server/assets/ImageRotationCorrection.py
Trafalcon/Parsr
d5aab6d1b4da6c37a30b25062fcaff682daa0a83
[ "Apache-2.0" ]
1
2020-01-15T03:49:04.000Z
2020-01-15T03:49:04.000Z
server/assets/ImageRotationCorrection.py
Trafalcon/Parsr
d5aab6d1b4da6c37a30b25062fcaff682daa0a83
[ "Apache-2.0" ]
null
null
null
server/assets/ImageRotationCorrection.py
Trafalcon/Parsr
d5aab6d1b4da6c37a30b25062fcaff682daa0a83
[ "Apache-2.0" ]
1
2020-01-25T19:35:34.000Z
2020-01-25T19:35:34.000Z
# -*- coding: utf-8 -*- """ Automatically detect rotation and line spacing of an image of text using Radon transform If image is rotated by the inverse of the output, the lines will be horizontal (though they may be upside-down depending on the original image) It doesn't work with black borders Courtesy: https://gist....
27.759259
75
0.691127
# -*- coding: utf-8 -*- """ Automatically detect rotation and line spacing of an image of text using Radon transform If image is rotated by the inverse of the output, the lines will be horizontal (though they may be upside-down depending on the original image) It doesn't work with black borders Courtesy: https://gist....
588
0
96
015174dcc56a54eb2c9777530571307d3a152bea
5,016
py
Python
requestor-python/engine.py
Edhendil/golem-transcoding
69ef784e7c7b36b45b1e5f2e292dacd9b9dec3bd
[ "MIT" ]
1
2021-10-14T07:48:43.000Z
2021-10-14T07:48:43.000Z
requestor-python/engine.py
Edhendil/golem-transcoding
69ef784e7c7b36b45b1e5f2e292dacd9b9dec3bd
[ "MIT" ]
null
null
null
requestor-python/engine.py
Edhendil/golem-transcoding
69ef784e7c7b36b45b1e5f2e292dacd9b9dec3bd
[ "MIT" ]
null
null
null
from yapapi.runner import Engine, Task, vm from yapapi.runner.ctx import WorkContext from yapapi.log import log_summary, log_event_repr from datetime import timedelta import json import uuid from core import TranscodingData, TranscodingTask, GolemParameters, SubtaskFinishedEvent # image hash of the geomandel docker i...
42.151261
121
0.691786
from yapapi.runner import Engine, Task, vm from yapapi.runner.ctx import WorkContext from yapapi.log import log_summary, log_event_repr from datetime import timedelta import json import uuid from core import TranscodingData, TranscodingTask, GolemParameters, SubtaskFinishedEvent # image hash of the geomandel docker i...
399
323
102
dee92484cdddf1c5220a5e6fbd6d1fac63977161
4,711
py
Python
utils/ofb/brioche.py
luis-guilherme/mitra
18bd935b11dc8fcf594255a96809c05abc324e87
[ "MIT" ]
864
2020-09-22T18:52:27.000Z
2022-03-28T19:57:25.000Z
utils/ofb/brioche.py
luis-guilherme/mitra
18bd935b11dc8fcf594255a96809c05abc324e87
[ "MIT" ]
13
2020-09-24T10:42:21.000Z
2021-12-20T14:44:36.000Z
utils/ofb/brioche.py
luis-guilherme/mitra
18bd935b11dc8fcf594255a96809c05abc324e87
[ "MIT" ]
55
2020-09-22T19:01:19.000Z
2022-03-20T09:15:45.000Z
#!/usr/bin/env python3 """ Take a polyglot from mitra, generate a OFB ciphertext which decrypts correctly under two different keys. iv = dec(c0 ^ p0) """ import binascii import os import argparse import re from Crypto.Cipher import AES from Crypto.Util.number import long_to_bytes,bytes_to_long from Crypto.Util.numbe...
23.673367
112
0.645511
#!/usr/bin/env python3 """ Take a polyglot from mitra, generate a OFB ciphertext which decrypts correctly under two different keys. iv = dec(c0 ^ p0) """ import binascii import os import argparse import re from Crypto.Cipher import AES from Crypto.Util.number import long_to_bytes,bytes_to_long from Crypto.Util.numbe...
1,434
0
139
b74f94271b1a62635133976cb4d4c8f2577f2456
3,763
py
Python
robotcode/utils/event.py
mardukbp/robotcode
0b34cf6e7931423117036fcf70f74e27da0cfb0f
[ "Apache-2.0" ]
21
2021-03-11T19:37:31.000Z
2022-02-28T05:26:33.000Z
robotcode/utils/event.py
mardukbp/robotcode
0b34cf6e7931423117036fcf70f74e27da0cfb0f
[ "Apache-2.0" ]
46
2021-03-11T10:58:38.000Z
2022-03-31T10:15:54.000Z
robotcode/utils/event.py
mardukbp/robotcode
0b34cf6e7931423117036fcf70f74e27da0cfb0f
[ "Apache-2.0" ]
1
2021-11-08T10:32:57.000Z
2021-11-08T10:32:57.000Z
from __future__ import annotations import inspect import threading import weakref from types import MethodType from typing import ( Any, Callable, Generic, Iterator, List, MutableSet, Optional, Type, TypeVar, cast, ) __all__ = ["EventIterator", "Event"] _TResult = TypeVar("_TR...
31.358333
107
0.632208
from __future__ import annotations import inspect import threading import weakref from types import MethodType from typing import ( Any, Callable, Generic, Iterator, List, MutableSet, Optional, Type, TypeVar, cast, ) __all__ = ["EventIterator", "Event"] _TResult = TypeVar("_TR...
2,507
320
510
f7f42f0ea5da15bfbe7816400c336946ad55b119
3,153
py
Python
validation/new/bare_model.py
FoVNull/MFDSL
8c6fc99260c1c02f4f45cfb14a111028d2a96ded
[ "MIT" ]
2
2021-12-08T05:45:19.000Z
2022-03-04T01:00:32.000Z
validation/new/bare_model.py
FoVNull/MFDSL
8c6fc99260c1c02f4f45cfb14a111028d2a96ded
[ "MIT" ]
null
null
null
validation/new/bare_model.py
FoVNull/MFDSL
8c6fc99260c1c02f4f45cfb14a111028d2a96ded
[ "MIT" ]
null
null
null
from typing import Dict, Any import tensorflow as tf from tensorflow.keras.utils import plot_model from kashgari_local.abc_feature_model import ABCClassificationModel from kashgari.layers import L
33.903226
100
0.607358
from typing import Dict, Any import tensorflow as tf from tensorflow.keras.utils import plot_model from kashgari_local.abc_feature_model import ABCClassificationModel from kashgari.layers import L class Bare_Model(ABCClassificationModel): def __init__(self, embedding, **params): super().__init__(embeddin...
100
2,831
23
2060a376f3709a1461c8c0665bd025049e2615a2
7,773
py
Python
stiny/__init__.py
stevearc/stiny
9577433a167beb548ce1db19d46f163a6624c334
[ "MIT" ]
null
null
null
stiny/__init__.py
stevearc/stiny
9577433a167beb548ce1db19d46f163a6624c334
[ "MIT" ]
null
null
null
stiny/__init__.py
stevearc/stiny
9577433a167beb548ce1db19d46f163a6624c334
[ "MIT" ]
null
null
null
""" Stiny - A home automation assistant """ import os import posixpath import calendar import datetime import json import logging import requests from collections import defaultdict from pyramid.authentication import AuthTktAuthenticationPolicy from pyramid.authorization import ACLAuthorizationPolicy from pyramid.conf...
34.856502
84
0.684034
""" Stiny - A home automation assistant """ import os import posixpath import calendar import datetime import json import logging import requests from collections import defaultdict from pyramid.authentication import AuthTktAuthenticationPolicy from pyramid.authorization import ACLAuthorizationPolicy from pyramid.conf...
570
0
46
fcfe2ea3b1145664ae4996cace5cb3b01ec0ed4b
776
py
Python
utils/get_params.py
sk1t0n/tg-bot-parser-hhru
abb59ea39ce0fb51fcc14f8b0195d2e9ba8d435e
[ "MIT" ]
null
null
null
utils/get_params.py
sk1t0n/tg-bot-parser-hhru
abb59ea39ce0fb51fcc14f8b0195d2e9ba8d435e
[ "MIT" ]
null
null
null
utils/get_params.py
sk1t0n/tg-bot-parser-hhru
abb59ea39ce0fb51fcc14f8b0195d2e9ba8d435e
[ "MIT" ]
null
null
null
""" Creates a URL to search jobs on specific filters. """ from typing import Dict, Union import config experience = { 'No': 'noExperience', '1-3': 'between1And3', '3-6': 'between3And6', 'More 6': 'moreThan6' } areas = { 'Moscow': '1', 'StPetersburg': '2', 'Krasnodar': '53' }
21.555556
59
0.596649
""" Creates a URL to search jobs on specific filters. """ from typing import Dict, Union import config experience = { 'No': 'noExperience', '1-3': 'between1And3', '3-6': 'between3And6', 'More 6': 'moreThan6' } areas = { 'Moscow': '1', 'StPetersburg': '2', 'Krasnodar': '53' } def create...
444
0
23
f4115829a9a942fe7b9671300eb6856d3abd38c8
2,998
py
Python
Houdini/Handlers/Play/Item.py
amrmashriqi/Houdini
f91687a305ad88e2043057fd001620639bb5af0a
[ "MIT" ]
null
null
null
Houdini/Handlers/Play/Item.py
amrmashriqi/Houdini
f91687a305ad88e2043057fd001620639bb5af0a
[ "MIT" ]
null
null
null
Houdini/Handlers/Play/Item.py
amrmashriqi/Houdini
f91687a305ad88e2043057fd001620639bb5af0a
[ "MIT" ]
null
null
null
from beaker.cache import cache_region as Cache, region_invalidate as Invalidate from Houdini.Handlers import Handlers, XT from Houdini.Handlers.Play.Moderation import cheatBan from Houdini.Data.Penguin import Inventory cardStarterDeckId = 821 fireBoosterDeckId = 8006 waterBoosterDeckId = 8010 boosterDecks = { ca...
34.45977
93
0.704803
from beaker.cache import cache_region as Cache, region_invalidate as Invalidate from Houdini.Handlers import Handlers, XT from Houdini.Handlers.Play.Moderation import cheatBan from Houdini.Data.Penguin import Inventory cardStarterDeckId = 821 fireBoosterDeckId = 8006 waterBoosterDeckId = 8010 boosterDecks = { ca...
2,064
0
132
2ec159a3ea2dc9bd376faa5ae61d365d7adf7567
20,985
py
Python
main.py
YOULOF2/Galactika
de1964ae0643590b614d7d8ee721d69926bb1075
[ "MIT" ]
1
2021-03-25T10:43:55.000Z
2021-03-25T10:43:55.000Z
main.py
YOULOF2/Galactika
de1964ae0643590b614d7d8ee721d69926bb1075
[ "MIT" ]
null
null
null
main.py
YOULOF2/Galactika
de1964ae0643590b614d7d8ee721d69926bb1075
[ "MIT" ]
null
null
null
from flask import Flask, request, render_template, redirect, url_for, flash, abort, send_from_directory from flask_bootstrap import Bootstrap from flask_ckeditor import CKEditor from datetime import date from werkzeug.security import generate_password_hash, check_password_hash from flask_sqlalchemy import SQLAlche...
39.744318
121
0.530474
from flask import Flask, request, render_template, redirect, url_for, flash, abort, send_from_directory from flask_bootstrap import Bootstrap from flask_ckeditor import CKEditor from datetime import date from werkzeug.security import generate_password_hash, check_password_hash from flask_sqlalchemy import SQLAlche...
10,443
3,309
701
ac50c9f36dcbea9928111afa8816ae2d5946914f
3,013
py
Python
SynthQuickstartTemplate.py
aws-quickstart/quickstart-aws-biotech-blueprint-cdk
3500bf5ec455a034a7d2d1074b68073d13ad76cd
[ "Apache-2.0", "MIT-0" ]
8
2021-02-18T16:06:56.000Z
2022-03-11T16:24:42.000Z
SynthQuickstartTemplate.py
paulu-aws/quickstart-aws-biotech-blueprint-cdk
93cbe2d71dc72530fac99014773fde64bad56495
[ "Apache-2.0", "MIT-0" ]
7
2021-04-02T18:05:33.000Z
2022-02-15T22:48:22.000Z
SynthQuickstartTemplate.py
paulu-aws/quickstart-aws-biotech-blueprint-cdk
93cbe2d71dc72530fac99014773fde64bad56495
[ "Apache-2.0", "MIT-0" ]
9
2021-02-18T16:14:25.000Z
2022-03-30T20:17:04.000Z
import os import yaml folders = [] files = [] for entry in os.scandir('./lambda_functions/source/'): if entry.is_dir(): if "asset." not in entry.path: print("WARN: Skipping path...") else: folders.append(entry.path) templateStream = open('./templates/AwsBiotechBlueprint.t...
41.847222
183
0.596747
import os import yaml folders = [] files = [] for entry in os.scandir('./lambda_functions/source/'): if entry.is_dir(): if "asset." not in entry.path: print("WARN: Skipping path...") else: folders.append(entry.path) templateStream = open('./templates/AwsBiotechBlueprint.t...
0
0
0
fa03a84ad8d150cd10cb63d26cdedd3bf4f92191
1,970
py
Python
benchmarks/wrappers/azure/python/storage.py
mcopik/serverless-benchmarks
3b57688873853a1ea74e10b02a9d89f3a4d679ac
[ "BSD-3-Clause" ]
35
2020-12-30T19:31:30.000Z
2022-03-28T11:10:00.000Z
benchmarks/wrappers/azure/python/storage.py
mcopik/serverless-benchmarks
3b57688873853a1ea74e10b02a9d89f3a4d679ac
[ "BSD-3-Clause" ]
24
2021-01-04T15:37:05.000Z
2022-03-14T00:45:20.000Z
benchmarks/wrappers/azure/python/storage.py
mcopik/serverless-benchmarks
3b57688873853a1ea74e10b02a9d89f3a4d679ac
[ "BSD-3-Clause" ]
10
2021-06-13T13:13:39.000Z
2021-12-20T22:05:50.000Z
import os import uuid from azure.storage.blob import BlobServiceClient
33.389831
78
0.62132
import os import uuid from azure.storage.blob import BlobServiceClient class storage: instance = None client = None def __init__(self): self.client = BlobServiceClient.from_connection_string( os.getenv('STORAGE_CONNECTION_STRING') ) @staticmethod def unique_n...
1,597
277
23
d40aefb01dffe34973a1f115edb7b5c079b5d477
57
py
Python
caiman_napari/__init__.py
kushalkolar/caiman-napari-prototype
e9434d513f0454fd84c1dc0987d4c0658a2dfda4
[ "Apache-2.0" ]
null
null
null
caiman_napari/__init__.py
kushalkolar/caiman-napari-prototype
e9434d513f0454fd84c1dc0987d4c0658a2dfda4
[ "Apache-2.0" ]
null
null
null
caiman_napari/__init__.py
kushalkolar/caiman-napari-prototype
e9434d513f0454fd84c1dc0987d4c0658a2dfda4
[ "Apache-2.0" ]
1
2021-12-03T21:22:08.000Z
2021-12-03T21:22:08.000Z
from .cnmf import napari_experimental_provide_dock_widget
57
57
0.929825
from .cnmf import napari_experimental_provide_dock_widget
0
0
0
f19ed7865020b380c9590a1b3e1cccd8d9dbbe49
1,425
py
Python
LeetCode_OneEditDistance.py
amukher3/Problem_solutions
8fa6014a91f295d08cafb989024caa91d99211d9
[ "Apache-2.0" ]
1
2021-12-28T08:58:51.000Z
2021-12-28T08:58:51.000Z
LeetCode_OneEditDistance.py
amukher3/Coding
a330cb04b5dd5cc1c3cf69249417a71586441bc7
[ "Apache-2.0" ]
null
null
null
LeetCode_OneEditDistance.py
amukher3/Coding
a330cb04b5dd5cc1c3cf69249417a71586441bc7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jul 16 08:39:36 2020 @author: abhi0 """
24.152542
57
0.412632
# -*- coding: utf-8 -*- """ Created on Thu Jul 16 08:39:36 2020 @author: abhi0 """ class Solution: def isOneEditDistance(self, s: str, t: str) -> bool: if s==t: return False if len(s)-len(t)>1: return False if len(t)-len(s)>1: ...
1,291
-6
51
f6a2109f5c8ab12cff7af75ada06b22aa5d208dd
445
py
Python
web_app/__init__.py
jasimrashid/airbnb
c78e69050a824d681794459d44a5915710e50153
[ "MIT" ]
null
null
null
web_app/__init__.py
jasimrashid/airbnb
c78e69050a824d681794459d44a5915710e50153
[ "MIT" ]
null
null
null
web_app/__init__.py
jasimrashid/airbnb
c78e69050a824d681794459d44a5915710e50153
[ "MIT" ]
null
null
null
# web_app/__init__.py from flask import Flask import os from dotenv import load_dotenv from web_app.routes.home_routes import home_routes from web_app.routes.stats_routes import stats_routes if __name__ == "__main__": my_app = create_app() my_app.run(debug=True)
18.541667
52
0.750562
# web_app/__init__.py from flask import Flask import os from dotenv import load_dotenv from web_app.routes.home_routes import home_routes from web_app.routes.stats_routes import stats_routes def create_app(): app = Flask(__name__) app.register_blueprint(home_routes) app.register_blueprint(stats_routes) ...
147
0
23
f9f1195387846bdb0a095420fbab31e4f29f1620
1,203
py
Python
model/backbone.py
aditya0212jain/fast_face_tf
511e94ef61932ff32d9bfea9ce5d5e45e3e44ac3
[ "MIT" ]
2
2020-02-28T11:05:25.000Z
2020-09-16T02:50:34.000Z
model/backbone.py
aditya0212jain/fast_face_tf
511e94ef61932ff32d9bfea9ce5d5e45e3e44ac3
[ "MIT" ]
null
null
null
model/backbone.py
aditya0212jain/fast_face_tf
511e94ef61932ff32d9bfea9ce5d5e45e3e44ac3
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from PIL import Image import glob import os # import tensorflow.contrib.slim as slim import tensorflow.keras as keras def get_feature_extracting_model(input_tensor=None,input_shape=(480,640,3),model_name='resnet50',layer_index=[6,38,80,142,174]): """ input_shape : the...
44.555556
146
0.729842
import numpy as np import tensorflow as tf from PIL import Image import glob import os # import tensorflow.contrib.slim as slim import tensorflow.keras as keras def get_feature_extracting_model(input_tensor=None,input_shape=(480,640,3),model_name='resnet50',layer_index=[6,38,80,142,174]): """ input_shape : the...
0
0
0
ff7e2e3511ce6d7046cc747e90209397c73bb365
16,892
py
Python
streambox/test/test.py
chenzongxiong/streambox
76f95780d1bf6c02731e39d8ac73937cea352b95
[ "Unlicense" ]
3
2019-07-03T14:03:31.000Z
2021-12-19T10:18:49.000Z
streambox/test/test.py
chenzongxiong/streambox
76f95780d1bf6c02731e39d8ac73937cea352b95
[ "Unlicense" ]
6
2020-02-17T12:01:30.000Z
2021-12-09T22:02:33.000Z
streambox/test/test.py
chenzongxiong/streambox
76f95780d1bf6c02731e39d8ac73937cea352b95
[ "Unlicense" ]
2
2020-12-03T04:41:18.000Z
2021-01-11T21:44:42.000Z
#!/usr/bin/env python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Android system-wide tracing utility. This is a tool for capturing a trace that includes data from both userland and the kernel...
30.381295
118
0.645749
#!/usr/bin/env python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Android system-wide tracing utility. This is a tool for capturing a trace that includes data from both userland and the kernel...
11,868
0
179
7fb19bf16eeaacf9764b0e90d00fecc4871476b5
10,182
py
Python
others/ewm_group_mean.py
rahasayantan/Work-For-Reference
e052da538df84034ec5a0fe3b19c4287de307286
[ "MIT" ]
null
null
null
others/ewm_group_mean.py
rahasayantan/Work-For-Reference
e052da538df84034ec5a0fe3b19c4287de307286
[ "MIT" ]
null
null
null
others/ewm_group_mean.py
rahasayantan/Work-For-Reference
e052da538df84034ec5a0fe3b19c4287de307286
[ "MIT" ]
null
null
null
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import matplotlib.pyplot as plt from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer from sklearn.decomposition import TruncatedSVD from sklearn import preprocessing, model_selection, metr...
50.91
147
0.585445
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import matplotlib.pyplot as plt from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer from sklearn.decomposition import TruncatedSVD from sklearn import preprocessing, model_selection, metr...
8,205
0
46
b26f47923d5ad384c704a9abb1733c15ca92f5f3
433
py
Python
mobilebdd/webdriver_processor.py
PhoenixWright/MobileBDDCore
b133061cf2c8b8d95ea9164734b726ee8a3c03a0
[ "Apache-2.0" ]
null
null
null
mobilebdd/webdriver_processor.py
PhoenixWright/MobileBDDCore
b133061cf2c8b8d95ea9164734b726ee8a3c03a0
[ "Apache-2.0" ]
null
null
null
mobilebdd/webdriver_processor.py
PhoenixWright/MobileBDDCore
b133061cf2c8b8d95ea9164734b726ee8a3c03a0
[ "Apache-2.0" ]
null
null
null
# spec for webdriver processors class WebDriverProcessor(object): """Allows outside users to have the final say on things like capabilities that are used to instantiate WebDriver. """ def process_capabilities(self, capabilities): """Process capabilities passed in and return the final dict. ...
27.0625
77
0.660508
# spec for webdriver processors class WebDriverProcessor(object): """Allows outside users to have the final say on things like capabilities that are used to instantiate WebDriver. """ def __init__(self): pass def process_capabilities(self, capabilities): """Process capabilities pas...
11
0
26
df4ddd8d21c48df995e80724c52440730be17034
61
py
Python
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/A/atomic unit of electric field.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/A/atomic unit of electric field.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/A/atomic unit of electric field.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
1
2021-02-04T04:51:48.000Z
2021-02-04T04:51:48.000Z
constants.physical_constants["atomic unit of electric field"]
61
61
0.852459
constants.physical_constants["atomic unit of electric field"]
0
0
0
0a86e9bd2a90888f6e8f5c43dd81e475a2ed2359
7,496
py
Python
freechess/stats.py
captnswing/freechess
c043bc7ba4216be72182762ac2b6c2117f11105d
[ "Apache-2.0" ]
null
null
null
freechess/stats.py
captnswing/freechess
c043bc7ba4216be72182762ac2b6c2117f11105d
[ "Apache-2.0" ]
null
null
null
freechess/stats.py
captnswing/freechess
c043bc7ba4216be72182762ac2b6c2117f11105d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.shortcuts import render_to_response from django.http import HttpResponseServerError from django.template import RequestContext from freechess.models import ChessGame from dateutil.relativedelta import relativedelta import datetime
48.051282
125
0.655416
# -*- coding: utf-8 -*- from django.shortcuts import render_to_response from django.http import HttpResponseServerError from django.template import RequestContext from freechess.models import ChessGame from dateutil.relativedelta import relativedelta import datetime def chessStats(request): # some general variabl...
7,205
0
23
c61e98f14c9a76d67981dbcf26cd371477e7bf9b
982
py
Python
tools/perf/cli_tools/flakiness_cli/cached_api.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
tools/perf/cli_tools/flakiness_cli/cached_api.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
tools/perf/cli_tools/flakiness_cli/cached_api.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import datetime import hashlib from cli_tools.flakiness_cli import api from cli_tools.flakiness_cli import frames def GetBuilders(): """Get the builders...
31.677419
79
0.746436
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import datetime import hashlib from cli_tools.flakiness_cli import api from cli_tools.flakiness_cli import frames def GetBuilders(): """Get the builders...
166
0
48
04140bf8dad7ca4dcbe83e3c3ccd08b76ceba45a
1,373
py
Python
alipay/aop/api/response/AlipayPcreditHuabeiRpacrawlerQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayPcreditHuabeiRpacrawlerQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayPcreditHuabeiRpacrawlerQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.RpaCrawlerTaskVO import RpaCrawlerTaskVO
31.930233
115
0.671522
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.RpaCrawlerTaskVO import RpaCrawlerTaskVO class AlipayPcreditHuabeiRpacrawlerQueryResponse(AlipayResponse): def __init__(self): super(AlipayPcreditHuabeiR...
877
279
23
f4fd19ffcd413cc3ea9cef920574e76c57546a52
1,323
py
Python
appengine/monorail/api/prpc/grpc/beta/implementations.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
1
2018-01-02T05:47:07.000Z
2018-01-02T05:47:07.000Z
appengine/monorail/api/prpc/grpc/beta/implementations.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/api/prpc/grpc/beta/implementations.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is govered by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """This file exists so that code in gRPC *_pb2.py files is importable. The protoc compiler for ...
37.8
77
0.798942
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is govered by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """This file exists so that code in gRPC *_pb2.py files is importable. The protoc compiler for ...
535
0
92
46b2d944f6aa3d20390e129f4e78bec6acad3cb7
5,064
py
Python
view.py
KungPaoChick/Github-View
1395fb6390a1cd9d0f789e4f2efd85953d538d1a
[ "MIT" ]
1
2021-03-22T09:11:24.000Z
2021-03-22T09:11:24.000Z
view.py
KungPaoChick/Github-View
1395fb6390a1cd9d0f789e4f2efd85953d538d1a
[ "MIT" ]
null
null
null
view.py
KungPaoChick/Github-View
1395fb6390a1cd9d0f789e4f2efd85953d538d1a
[ "MIT" ]
null
null
null
import requests import argparse import colorama import os import csv import pandas as pd from bs4 import BeautifulSoup as soup if __name__ == '__main__': colorama.init() url = 'https://github.com' parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter, ...
40.512
135
0.532188
import requests import argparse import colorama import os import csv import pandas as pd from bs4 import BeautifulSoup as soup def repos(username, links): with open(os.path.join(name, f'{username}.csv'), 'w', encoding='utf-8') as f: headers = ['Link', 'Repository', 'Commits', 'Stars', '...
3,888
0
92
9b3e086c5f8b68c1abcbb918ec7ee8071dbf97bd
970
py
Python
tests/rules/test_string_pairs_equal.py
chuxuantinh/vakt
30be4880e666a0f5dbe4dd1501870bae54822a5b
[ "Apache-2.0" ]
132
2018-10-29T14:58:26.000Z
2022-03-04T10:43:26.000Z
tests/rules/test_string_pairs_equal.py
chuxuantinh/vakt
30be4880e666a0f5dbe4dd1501870bae54822a5b
[ "Apache-2.0" ]
42
2018-08-31T10:41:43.000Z
2021-08-01T08:19:06.000Z
tests/rules/test_string_pairs_equal.py
chuxuantinh/vakt
30be4880e666a0f5dbe4dd1501870bae54822a5b
[ "Apache-2.0" ]
22
2018-12-24T03:42:46.000Z
2022-03-16T04:42:25.000Z
import pytest from vakt.rules.string import PairsEqual, StringPairsEqualRule @pytest.mark.parametrize('against, result', [ ([[]], False), ([], True), ("not-list", False), ([['a']], False), ([['a', 'a']], True), ([['й', 'й']], True), ([[1, '1']], False), ([['1', 1]], False), ([[1, ...
30.3125
87
0.554639
import pytest from vakt.rules.string import PairsEqual, StringPairsEqualRule @pytest.mark.parametrize('against, result', [ ([[]], False), ([], True), ("not-list", False), ([['a']], False), ([['a', 'a']], True), ([['й', 'й']], True), ([[1, '1']], False), ([['1', 1]], False), ([[1, ...
449
0
22
efb0ebee4c7b1376a0afa2caeb0abdf143336a6d
1,469
py
Python
code_scanner/code_scanner/file_utils.py
stargrep/rmm-utils
55725cb117015bbe35653120779c53ff39a999bc
[ "MIT" ]
null
null
null
code_scanner/code_scanner/file_utils.py
stargrep/rmm-utils
55725cb117015bbe35653120779c53ff39a999bc
[ "MIT" ]
null
null
null
code_scanner/code_scanner/file_utils.py
stargrep/rmm-utils
55725cb117015bbe35653120779c53ff39a999bc
[ "MIT" ]
null
null
null
from functools import reduce from pathlib import Path from code_scanner.enums import FileType from code_scanner.file_info import FileInfo from code_scanner.filter_utils import IFileFilter
32.644444
97
0.653506
from functools import reduce from pathlib import Path from code_scanner.enums import FileType from code_scanner.file_info import FileInfo from code_scanner.filter_utils import IFileFilter def retrieve_all_folders(root: Path, filters: [IFileFilter], include_root: bool ...
1,185
0
92
4533666d2d659e745b97da7e3fecdf5f628cc17e
1,212
py
Python
project/apps/accounts/migrations/0007_auto_20211111_1519.py
DiceNameIsMy/social-network
da02ea27c21705449c4ff3913d79e808d33e3de4
[ "MIT" ]
null
null
null
project/apps/accounts/migrations/0007_auto_20211111_1519.py
DiceNameIsMy/social-network
da02ea27c21705449c4ff3913d79e808d33e3de4
[ "MIT" ]
2
2021-11-01T04:17:19.000Z
2021-11-05T07:40:43.000Z
project/apps/accounts/migrations/0007_auto_20211111_1519.py
DiceNameIsMy/social-network
da02ea27c21705449c4ff3913d79e808d33e3de4
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-11 09:19 from django.db import migrations, models import django.db.models.deletion
34.628571
271
0.607261
# Generated by Django 3.2.8 on 2021-11-11 09:19 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('accounts', '0006_alter_notification_content_type'), ] op...
0
1,065
23
fa87d1dd7dae39daf67a20a481e554aa0260f9b0
479
py
Python
example.py
zietzm/dfs-sudoku-solver
396320c84823baa6f18d69fb9c315af08f580096
[ "MIT" ]
null
null
null
example.py
zietzm/dfs-sudoku-solver
396320c84823baa6f18d69fb9c315af08f580096
[ "MIT" ]
null
null
null
example.py
zietzm/dfs-sudoku-solver
396320c84823baa6f18d69fb9c315af08f580096
[ "MIT" ]
null
null
null
import time import numpy as np import solver board = np.array([ [0,0,0,0,9,0,8,2,3], [0,8,0,0,3,2,0,7,5], [3,0,2,5,8,0,4,9,0], [0,2,7,0,0,0,0,0,4], [0,9,0,2,1,4,0,8,0], [4,0,0,0,0,0,2,0,0], [0,4,0,0,7,1,0,0,2], [2,0,0,9,4,0,0,5,0], [0,0,6,0,2,5,0,4,0] ]) b = solver.SudokuSolver(...
14.515152
30
0.524008
import time import numpy as np import solver board = np.array([ [0,0,0,0,9,0,8,2,3], [0,8,0,0,3,2,0,7,5], [3,0,2,5,8,0,4,9,0], [0,2,7,0,0,0,0,0,4], [0,9,0,2,1,4,0,8,0], [4,0,0,0,0,0,2,0,0], [0,4,0,0,7,1,0,0,2], [2,0,0,9,4,0,0,5,0], [0,0,6,0,2,5,0,4,0] ]) b = solver.SudokuSolver(...
0
0
0
754f0eb1193c812774762375390c0ce0266b9d41
464
py
Python
config/configuration.py
TechhubLisbon/rpi_truck
5e024464f064ba7618a7e53b88a413d23ba20dce
[ "MIT" ]
3
2019-12-15T04:08:22.000Z
2021-11-28T16:34:08.000Z
config/configuration.py
TechhubLisbon/rpi_truck
5e024464f064ba7618a7e53b88a413d23ba20dce
[ "MIT" ]
1
2021-06-02T00:21:10.000Z
2021-06-02T00:21:10.000Z
config/configuration.py
TechhubLisbon/rpi_truck
5e024464f064ba7618a7e53b88a413d23ba20dce
[ "MIT" ]
1
2019-07-05T13:33:38.000Z
2019-07-05T13:33:38.000Z
#!/usr/bin/env python # Root topic rootTopic = "truck1" # Broker configuration mqttBroker = "192.168.1.126" mqttPort = "1883" mqttUser = " " mqttPasswd = " " # Components configuration componentDic = { "imuClass": "Imu", "proximityClass": "ProximitySensor", "motorClass": "Motor", "cameraClass": "Cam...
18.56
40
0.653017
#!/usr/bin/env python # Root topic rootTopic = "truck1" # Broker configuration mqttBroker = "192.168.1.126" mqttPort = "1883" mqttUser = " " mqttPasswd = " " # Components configuration componentDic = { "imuClass": "Imu", "proximityClass": "ProximitySensor", "motorClass": "Motor", "cameraClass": "Cam...
0
0
0
1c7bbfdad3d0bd492d8072ec6d86909275b5cf2c
454
py
Python
src/exmample.py
liliangbin/twist-to-wheel-speed
5a25b08a50b5f828a783d7e8723c64955528c76d
[ "Apache-2.0" ]
1
2020-06-13T23:48:27.000Z
2020-06-13T23:48:27.000Z
src/exmample.py
liliangbin/twist-to-wheel-speed
5a25b08a50b5f828a783d7e8723c64955528c76d
[ "Apache-2.0" ]
null
null
null
src/exmample.py
liliangbin/twist-to-wheel-speed
5a25b08a50b5f828a783d7e8723c64955528c76d
[ "Apache-2.0" ]
null
null
null
import time import RPi.GPIO as gpio pin = 33 pin_wheel = 35 while True: print 'go straight ' gpio.setmode(gpio.BOARD) gpio.setup(pin, gpio.OUT) gpio.setup(pin_wheel, gpio.OUT) gpio.output(pin_wheel, gpio.HIGH) p = gpio.PWM(pin, 400) p.start(0) dc = 10 for i in range(40): dc...
18.916667
37
0.581498
import time import RPi.GPIO as gpio pin = 33 pin_wheel = 35 while True: print 'go straight ' gpio.setmode(gpio.BOARD) gpio.setup(pin, gpio.OUT) gpio.setup(pin_wheel, gpio.OUT) gpio.output(pin_wheel, gpio.HIGH) p = gpio.PWM(pin, 400) p.start(0) dc = 10 for i in range(40): dc...
0
0
0
8cf5b17f3cc5a4e711432a819079968050d16523
655
py
Python
exercise/Bai1.py
nguyenquanghieu2000d/HocMayNangCao
2c6df4527f4661840c1d0bea2c42d5f18309e360
[ "Apache-2.0" ]
null
null
null
exercise/Bai1.py
nguyenquanghieu2000d/HocMayNangCao
2c6df4527f4661840c1d0bea2c42d5f18309e360
[ "Apache-2.0" ]
null
null
null
exercise/Bai1.py
nguyenquanghieu2000d/HocMayNangCao
2c6df4527f4661840c1d0bea2c42d5f18309e360
[ "Apache-2.0" ]
null
null
null
# Bài tập 2. Sử dụng thư viện pandas đọc vào file Iris.csv được biến bộ nhớ df. # 2a. Hiển thị df. # 2b. Chuyển cột nhãn y Species thành dạng dữ liệu mã hóa OHE. Hiển thị dữ liệu được mã hóa. # 2c. Tạo ra cột vector đầu vào x, và cột nhãn vector đầu ra y của df. Hiển thị x và y. # G: import pandas as pd # 2a df = pd.r...
34.473684
102
0.719084
# Bài tập 2. Sử dụng thư viện pandas đọc vào file Iris.csv được biến bộ nhớ df. # 2a. Hiển thị df. # 2b. Chuyển cột nhãn y Species thành dạng dữ liệu mã hóa OHE. Hiển thị dữ liệu được mã hóa. # 2c. Tạo ra cột vector đầu vào x, và cột nhãn vector đầu ra y của df. Hiển thị x và y. # G: import pandas as pd # 2a df = pd.r...
0
0
0
73f55c453ed7f9744328b2e5877299831b238e6b
3,214
py
Python
entries/day16/main.py
ZeldaZach/AdventOfCode2021
3eefd3dcaeb331457c4fc58866705aa6c6580830
[ "MIT" ]
1
2022-01-02T11:00:04.000Z
2022-01-02T11:00:04.000Z
entries/day16/main.py
ZeldaZach/AdventOfCode2021
3eefd3dcaeb331457c4fc58866705aa6c6580830
[ "MIT" ]
null
null
null
entries/day16/main.py
ZeldaZach/AdventOfCode2021
3eefd3dcaeb331457c4fc58866705aa6c6580830
[ "MIT" ]
null
null
null
import pathlib from functools import reduce from typing import List, Tuple if __name__ == "__main__": main()
28.954955
86
0.632234
import pathlib from functools import reduce from typing import List, Tuple def read_inputs(input_file: str) -> str: with pathlib.Path(input_file).open() as fp: return str(fp.readline()).strip() def part1() -> int: # 35 minutes line = read_inputs("input.txt") total = "" for char in line:...
2,955
0
138
b70257688930fda0f16498d55384d7c0416d889c
4,179
py
Python
test3.py
fatman2021/project-manhattan
a24febefcdd63923c6ba7da78e4d9db95157c4bf
[ "Apache-2.0" ]
2
2020-01-08T06:18:56.000Z
2021-07-24T03:05:10.000Z
test3.py
fatman2021/project-manhattan
a24febefcdd63923c6ba7da78e4d9db95157c4bf
[ "Apache-2.0" ]
null
null
null
test3.py
fatman2021/project-manhattan
a24febefcdd63923c6ba7da78e4d9db95157c4bf
[ "Apache-2.0" ]
1
2021-07-24T03:05:11.000Z
2021-07-24T03:05:11.000Z
# Start of file import bpy bpy.context.scene.render.engine = 'CYCLES' bpy.context.scene.render.resolution_x = 320 bpy.context.scene.render.resolution_y = 208 bpy.context.scene.render.resolution_percentage = 100 bpy.context.scene.render.image_settings.file_format = 'BMP' bpy.context.scene.render.tile_x = 16 bpy.context....
52.898734
113
0.775305
# Start of file import bpy bpy.context.scene.render.engine = 'CYCLES' bpy.context.scene.render.resolution_x = 320 bpy.context.scene.render.resolution_y = 208 bpy.context.scene.render.resolution_percentage = 100 bpy.context.scene.render.image_settings.file_format = 'BMP' bpy.context.scene.render.tile_x = 16 bpy.context....
0
0
0
a4953b714971962e388fc00a0817bc6ca26a5c39
1,395
py
Python
core/actor/visual/assets/__init__.py
pyfection/strategos
1039a069ec15b89e72eb06feca6c103cb2f2e0f5
[ "MIT" ]
2
2018-01-07T18:56:56.000Z
2018-02-28T10:58:41.000Z
core/actor/visual/assets/__init__.py
pyfection/strategos
1039a069ec15b89e72eb06feca6c103cb2f2e0f5
[ "MIT" ]
7
2017-12-29T00:17:11.000Z
2022-03-11T23:19:05.000Z
core/actor/visual/assets/__init__.py
pyfection/strategos
1039a069ec15b89e72eb06feca6c103cb2f2e0f5
[ "MIT" ]
1
2019-12-13T14:42:33.000Z
2019-12-13T14:42:33.000Z
import os from kivy.uix.image import Image print("Warning: this module will be removed in future") ASSET_PATH = os.path.dirname(__file__) SIZE_MOD = 32 tiles = { 'grass': lambda **kwargs: tile_factory("grass.png", **kwargs), 'settlement': lambda **kwargs: tile_factory("settlement.png", **kwargs), ...
27.9
78
0.632258
import os from kivy.uix.image import Image print("Warning: this module will be removed in future") ASSET_PATH = os.path.dirname(__file__) SIZE_MOD = 32 def tile_factory(file_name, pos, **kwargs): pos = pos[0] * SIZE_MOD, pos[1] * SIZE_MOD return Image( source=os.path.join(ASSET_PATH, "tiles", f...
255
0
23
44cfd9abc57cbe65c8fedb5510451d8e164c1893
2,214
py
Python
tests/test_deepl_server.py
ffreemt/deepl-fastapi
bf806f1cb3784067e764e813b581e0d21c4b739c
[ "MIT" ]
3
2021-03-19T16:46:04.000Z
2021-11-23T02:12:30.000Z
tests/test_deepl_server.py
ffreemt/deepl-fastapi
bf806f1cb3784067e764e813b581e0d21c4b739c
[ "MIT" ]
null
null
null
tests/test_deepl_server.py
ffreemt/deepl-fastapi
bf806f1cb3784067e764e813b581e0d21c4b739c
[ "MIT" ]
null
null
null
"""Sanity check.""" import os import sys from pathlib import Path from time import sleep import requests from subprocess import Popen import portalocker from logzero import logger # start the server if not already started lockfile = f'{Path(__file__).parent.parent / "deepl_fastapi" / "deepl_server.py.portalocker.loc...
29.918919
99
0.590786
"""Sanity check.""" import os import sys from pathlib import Path from time import sleep import requests from subprocess import Popen import portalocker from logzero import logger # start the server if not already started lockfile = f'{Path(__file__).parent.parent / "deepl_fastapi" / "deepl_server.py.portalocker.loc...
838
0
23
cb3421bae13876fc0385ff9720c6f39b8ad145cc
203
py
Python
cellfinder/export/brainrender.py
satyakam7/cellfinder
69d317fba30a174bf775351fb8514713c7e1984c
[ "BSD-3-Clause" ]
65
2020-01-18T11:00:37.000Z
2020-09-15T11:19:01.000Z
cellfinder/export/brainrender.py
satyakam7/cellfinder
69d317fba30a174bf775351fb8514713c7e1984c
[ "BSD-3-Clause" ]
96
2020-01-17T22:58:51.000Z
2020-10-06T10:37:31.000Z
cellfinder/export/brainrender.py
satyakam7/cellfinder
69d317fba30a174bf775351fb8514713c7e1984c
[ "BSD-3-Clause" ]
22
2020-01-17T14:45:09.000Z
2020-09-10T14:45:26.000Z
import logging import numpy as np
15.615385
49
0.714286
import logging import numpy as np def export_points( points, resolution, output_filename, ): logging.info("Exporting to brainrender") np.save(output_filename, points * resolution)
144
0
23
54bd522c10610f9a3c7c414f5a4f3f8769d7c696
2,390
py
Python
reports/graphs/sleep_totals.py
vault-the/babybuddy
162f117cef019771ef6393146a0c63110e337d7f
[ "BSD-2-Clause" ]
null
null
null
reports/graphs/sleep_totals.py
vault-the/babybuddy
162f117cef019771ef6393146a0c63110e337d7f
[ "BSD-2-Clause" ]
5
2020-06-05T16:49:14.000Z
2022-01-13T00:34:19.000Z
reports/graphs/sleep_totals.py
vault-the/babybuddy
162f117cef019771ef6393146a0c63110e337d7f
[ "BSD-2-Clause" ]
1
2021-07-08T17:59:24.000Z
2021-07-08T17:59:24.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.utils import timezone import plotly.offline as plotly import plotly.graph_objs as go from core.utils import duration_parts from reports import utils def sleep_totals(instances): """ Create a graph showing total time sleeping for e...
33.194444
78
0.628452
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.utils import timezone import plotly.offline as plotly import plotly.graph_objs as go from core.utils import duration_parts from reports import utils def sleep_totals(instances): """ Create a graph showing total time sleeping for e...
0
0
0
fbd362640bd13b085f1a705f65bc0ecbf6df81c9
1,213
py
Python
tests/test_driver_loader.py
lightcode/OVM
3c6c3528ef851f65d4bd75cafb8738c54fba7b6f
[ "MIT" ]
1
2018-03-20T14:54:10.000Z
2018-03-20T14:54:10.000Z
tests/test_driver_loader.py
lightcode/OVM
3c6c3528ef851f65d4bd75cafb8738c54fba7b6f
[ "MIT" ]
null
null
null
tests/test_driver_loader.py
lightcode/OVM
3c6c3528ef851f65d4bd75cafb8738c54fba7b6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import unittest from ovm.exceptions import OVMError from ovm.drivers.driver_loader import DriverLoader from ovm.drivers.storage.lvm import LvmDriver from ovm.drivers.storage.file import FileDriver from ovm.drivers.network.bridge import BridgeDriver
32.783784
67
0.704864
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import unittest from ovm.exceptions import OVMError from ovm.drivers.driver_loader import DriverLoader from ovm.drivers.storage.lvm import LvmDriver from ovm.drivers.storage.file import FileDriver from ovm.drivers.network.bridge import BridgeDriver class TestDriverLoad...
0
891
23
95cc49889fc25eba2175a039df3a4b3db8d376b7
805
py
Python
tests/proquest/test_identifier.py
tdilauro/simplified-circulation
f52d333616f63e2bff0cf1de98ef301bf152fba1
[ "Apache-2.0" ]
16
2016-06-27T18:09:37.000Z
2021-12-07T15:20:52.000Z
tests/proquest/test_identifier.py
tdilauro/simplified-circulation
f52d333616f63e2bff0cf1de98ef301bf152fba1
[ "Apache-2.0" ]
809
2016-01-25T15:41:05.000Z
2022-03-29T16:12:38.000Z
tests/proquest/test_identifier.py
tdilauro/simplified-circulation
f52d333616f63e2bff0cf1de98ef301bf152fba1
[ "Apache-2.0" ]
19
2016-05-06T16:18:50.000Z
2021-05-01T06:33:18.000Z
from parameterized import parameterized from api.proquest.identifier import ProQuestIdentifierParser from core.model import Identifier
28.75
105
0.609938
from parameterized import parameterized from api.proquest.identifier import ProQuestIdentifierParser from core.model import Identifier class TestProQuestIdentifierParser(object): @parameterized.expand( [ ( "incorrect_identifier", "urn:librarysimplified.org/term...
175
470
23
ddc68c78126e069825cbfdf07b334da827c19781
7,134
py
Python
pandamesh/common.py
visr/pandamesh
f88396c5b54ac004a2f902a2354334a776f411c8
[ "MIT" ]
6
2021-11-30T15:35:57.000Z
2021-12-15T10:44:50.000Z
pandamesh/common.py
visr/pandamesh
f88396c5b54ac004a2f902a2354334a776f411c8
[ "MIT" ]
2
2021-12-08T13:40:20.000Z
2021-12-08T13:49:26.000Z
pandamesh/common.py
Deltares/pandamesh
f88396c5b54ac004a2f902a2354334a776f411c8
[ "MIT" ]
null
null
null
import functools import operator from enum import Enum from itertools import combinations from typing import Any, Sequence, Tuple import geopandas as gpd import numpy as np import pygeos import shapely.geometry as sg IntArray = np.ndarray FloatArray = np.ndarray coord_dtype = np.dtype([("x", np.float64), ("y", np.flo...
31.566372
95
0.657135
import functools import operator from enum import Enum from itertools import combinations from typing import Any, Sequence, Tuple import geopandas as gpd import numpy as np import pygeos import shapely.geometry as sg IntArray = np.ndarray FloatArray = np.ndarray coord_dtype = np.dtype([("x", np.float64), ("y", np.flo...
3,816
0
253
11dd4e6bd5927f477fa2d99cac5acc17453ed7da
1,722
py
Python
DFL168A/J1939/PGN65263.py
Dafulai/DFL168A_python
95825a27f2c145afbd02c207c3d622d6a77ceff2
[ "MIT" ]
null
null
null
DFL168A/J1939/PGN65263.py
Dafulai/DFL168A_python
95825a27f2c145afbd02c207c3d622d6a77ceff2
[ "MIT" ]
null
null
null
DFL168A/J1939/PGN65263.py
Dafulai/DFL168A_python
95825a27f2c145afbd02c207c3d622d6a77ceff2
[ "MIT" ]
null
null
null
import time import DFL168A SuccessFresh=False
25.701493
51
0.647503
import time import DFL168A SuccessFresh=False def refresh(): global SuccessFresh if not DFL168A.DigitalCommand('FEEF'): SuccessFresh=False return False Temp=DFL168A.HandleResponse(DFL168A.ReturnStr) DFL168A.ReturnStr=Temp SuccessFresh=True return True def getFueDe...
1,511
0
163
a1417fa3635e096f11d8542953db2e1fb942aba1
2,096
py
Python
dataset/coco.py
aclex/detection-experiments
f1cbf115573a8d509553335c5904ebc2e11511d2
[ "Apache-2.0" ]
5
2020-06-08T08:21:03.000Z
2021-03-03T21:54:06.000Z
dataset/coco.py
aclex/detection-experiments
f1cbf115573a8d509553335c5904ebc2e11511d2
[ "Apache-2.0" ]
3
2021-02-06T20:21:02.000Z
2021-06-06T18:46:27.000Z
dataset/coco.py
aclex/detection-experiments
f1cbf115573a8d509553335c5904ebc2e11511d2
[ "Apache-2.0" ]
2
2020-06-08T08:21:05.000Z
2021-02-06T11:44:04.000Z
import numpy as np import logging import cv2 import os from torch.utils.data import Dataset
21.833333
67
0.71374
import numpy as np import logging import cv2 import os from torch.utils.data import Dataset class CocoDetection(Dataset): bbox_format = 'coco' def __init__(self, root, ann_file, transform=None): """Dataset for COCO data. Args: root: the root of the COCO-style dataset where images are stored ann_file: JS...
1,117
862
23
a4c648e6b4ec1df91ffe59b01b3f2b0eb107894e
1,471
py
Python
tests/test_config.py
pmpsa-hpc/RPackUtils
eedffd8b55db0fbcfd77cf8e8ef10b59b6d925f7
[ "Apache-2.0" ]
1
2018-05-24T17:44:47.000Z
2018-05-24T17:44:47.000Z
tests/test_config.py
sgubianpm/RPackUtils
eedffd8b55db0fbcfd77cf8e8ef10b59b6d925f7
[ "Apache-2.0" ]
null
null
null
tests/test_config.py
sgubianpm/RPackUtils
eedffd8b55db0fbcfd77cf8e8ef10b59b6d925f7
[ "Apache-2.0" ]
null
null
null
####################################### # Copyright 2019 PMP SA. # # SPDX-License-Identifier: Apache-2.0 # ####################################### import os import pytest from rpackutils.config import Config
28.288462
59
0.558124
####################################### # Copyright 2019 PMP SA. # # SPDX-License-Identifier: Apache-2.0 # ####################################### import os import pytest from rpackutils.config import Config def test_custom_config(): configfilepath = os.path.join( os.path.dirname(os.path.abs...
1,225
0
23
ddcd906a3c178d8cda4dd056e92fd2fdd61047ae
1,927
py
Python
movie_rs/matrix_factorization.py
sparshk/movie_recommender_system
473409f4d569291ab1badccd16c92e575ca487a5
[ "MIT" ]
null
null
null
movie_rs/matrix_factorization.py
sparshk/movie_recommender_system
473409f4d569291ab1badccd16c92e575ca487a5
[ "MIT" ]
null
null
null
movie_rs/matrix_factorization.py
sparshk/movie_recommender_system
473409f4d569291ab1badccd16c92e575ca487a5
[ "MIT" ]
null
null
null
import pandas as pd import numpy as nm import sqlite3 from scipy.sparse.linalg import svds from sqlalchemy import create_engine engine=create_engine("postgres://postgres:25736534@localhost:5432/postgres") print(user_row_number) sorted_user_predictions = predictions_df.iloc[user_row_number].sort_values(ascending=Fa...
45.880952
100
0.702647
import pandas as pd import numpy as nm import sqlite3 from scipy.sparse.linalg import svds from sqlalchemy import create_engine engine=create_engine("postgres://postgres:25736534@localhost:5432/postgres") def recommend_movies(predictions_df, userID, movies_df, original_ratings_df, num_recommendations=5): user_row_num...
852
0
46
0f9a997afd234ead9cc42043bcad31d9a945c6b7
4,721
py
Python
Scripts/simulation/gsi_handlers/buff_handlers.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/gsi_handlers/buff_handlers.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/gsi_handlers/buff_handlers.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\gsi_handlers\buff_handlers.py # Compiled at: 2014-05-30 02:11:42 # Size of source mod 2**32: 4843 by...
56.879518
126
0.734802
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\gsi_handlers\buff_handlers.py # Compiled at: 2014-05-30 02:11:42 # Size of source mod 2**32: 4843 by...
2,351
0
46
f968ab8fa892c693792ae82a3470902282576d07
37
py
Python
Autokey/CapsKeybinds/shift/right.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
1
2021-11-05T19:39:36.000Z
2021-11-05T19:39:36.000Z
Autokey/CapsKeybinds/shift/right.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
null
null
null
Autokey/CapsKeybinds/shift/right.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
null
null
null
keyboard.send_keys("<shift>+<right>")
37
37
0.72973
keyboard.send_keys("<shift>+<right>")
0
0
0