hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
1c1431043c534d7986caf5b2e1777385f2cd9182
10,176
py
Python
sdk/python/feast/infra/offline_stores/file_source.py
danilopeixoto/feast
57d134355364654a2275b477b3b82b149f0779ca
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/infra/offline_stores/file_source.py
danilopeixoto/feast
57d134355364654a2275b477b3b82b149f0779ca
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/infra/offline_stores/file_source.py
danilopeixoto/feast
57d134355364654a2275b477b3b82b149f0779ca
[ "Apache-2.0" ]
null
null
null
from typing import Callable, Dict, Iterable, Optional, Tuple from pyarrow._fs import FileSystem from pyarrow._s3fs import S3FileSystem from pyarrow.parquet import ParquetFile from feast import type_map from feast.data_format import FileFormat, ParquetFormat from feast.data_source import DataSource from feast.protos.f...
35.089655
119
0.661458
from typing import Callable, Dict, Iterable, Optional, Tuple from pyarrow._fs import FileSystem from pyarrow._s3fs import S3FileSystem from pyarrow.parquet import ParquetFile from feast import type_map from feast.data_format import FileFormat, ParquetFormat from feast.data_source import DataSource from feast.protos.f...
true
true
1c1432335d0195cf493b64cbd8ca6c345be93159
1,912
py
Python
dlutils/losses/weighted_losses.py
fmi-basel/dl-utils
15bbb7672314d72abc7c3f7fc86655401cde5eb6
[ "MIT" ]
null
null
null
dlutils/losses/weighted_losses.py
fmi-basel/dl-utils
15bbb7672314d72abc7c3f7fc86655401cde5eb6
[ "MIT" ]
1
2021-03-10T10:53:59.000Z
2021-03-10T10:53:59.000Z
dlutils/losses/weighted_losses.py
fmi-basel/dl-utils
15bbb7672314d72abc7c3f7fc86655401cde5eb6
[ "MIT" ]
null
null
null
from tensorflow.keras import backend as K import tensorflow as tf import abc class PixelWeightedLossBase(tf.keras.losses.Loss): def call(self, y_true, y_pred): '''Computes pixel weighted loss, using the last channel of y_true as normalization weights Notes: ------ - s...
32.40678
137
0.626569
from tensorflow.keras import backend as K import tensorflow as tf import abc class PixelWeightedLossBase(tf.keras.losses.Loss): def call(self, y_true, y_pred): self._check_weights_stacking(y_true, y_pred) weights = y_true[..., -1:] y_true = y_true[..., 0:-1] loss = self._...
true
true
1c14324d2db8119c13904283474e9605475c0357
1,711
py
Python
pygame/symbian/configure.py
CiubucAlexandra/Theremine-Projet-Micriprocesseurs
7670d9cb468b060135dc5f057b734db970da0f0c
[ "BSD-3-Clause" ]
3
2016-04-11T00:41:52.000Z
2016-06-11T03:58:12.000Z
pygame/symbian/configure.py
CiubucAlexandra/Theremine-Projet-Micriprocesseurs
7670d9cb468b060135dc5f057b734db970da0f0c
[ "BSD-3-Clause" ]
5
2016-02-11T01:16:51.000Z
2016-04-08T06:10:28.000Z
pygame/symbian/configure.py
CiubucAlexandra/Theremine-Projet-Micriprocesseurs
7670d9cb468b060135dc5f057b734db970da0f0c
[ "BSD-3-Clause" ]
null
null
null
""" Script to configure build_config.py == Build everything, including pys60 == configure.py pys60_ce_src=\projects\pys60ce\trunk\src == Use existing python sis == configure.py build_python=False pys60_sis=python.sisx pythondll=python222.dll """ import os, sys def start(): try: i...
26.734375
78
0.531268
""" Script to configure build_config.py == Build everything, including pys60 == configure.py pys60_ce_src=\projects\pys60ce\trunk\src == Use existing python sis == configure.py build_python=False pys60_sis=python.sisx pythondll=python222.dll """ import os, sys def start(): try: i...
false
true
1c1432d69e3c4aad2e96650c5c95d7c0001901f6
157
py
Python
problemsets/Codeforces/Python/A12.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/Python/A12.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/Python/A12.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
""" * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * """ a=''.join([*open(0)]).replace('\n','') print('YNEOS'[a!=a[::-1]::2])
19.625
38
0.55414
a=''.join([*open(0)]).replace('\n','') print('YNEOS'[a!=a[::-1]::2])
true
true
1c1432f91c3b84f3762728156f81489216c49a6c
14,191
py
Python
python/ray/data/tests/test_dataset_pipeline.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
22
2018-05-08T05:52:34.000Z
2020-04-01T10:09:55.000Z
python/ray/data/tests/test_dataset_pipeline.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
51
2018-05-17T05:55:28.000Z
2020-03-18T06:49:49.000Z
python/ray/data/tests/test_dataset_pipeline.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
10
2018-04-27T10:50:59.000Z
2020-02-24T02:41:43.000Z
import os import time import pytest import pandas as pd import numpy as np import ray from ray.data.context import DatasetContext from ray.data.dataset_pipeline import DatasetPipeline from ray.tests.conftest import * # noqa def test_pipeline_actors(shutdown_only): ray.init(num_cpus=2, num_gpus=1) pipe = (...
32.399543
87
0.646537
import os import time import pytest import pandas as pd import numpy as np import ray from ray.data.context import DatasetContext from ray.data.dataset_pipeline import DatasetPipeline from ray.tests.conftest import * def test_pipeline_actors(shutdown_only): ray.init(num_cpus=2, num_gpus=1) pipe = ( ...
true
true
1c1433ef386bfbeedf8279728b40c4e6ac7c9b72
8,654
py
Python
infra/bots/recipes/perf_skottiewasm_lottieweb.py
ilopX/skia
5b1196bc29fff703df90025589136969fe28aff0
[ "BSD-3-Clause" ]
1
2020-05-27T15:41:50.000Z
2020-05-27T15:41:50.000Z
infra/bots/recipes/perf_skottiewasm_lottieweb.py
ilopX/skia
5b1196bc29fff703df90025589136969fe28aff0
[ "BSD-3-Clause" ]
null
null
null
infra/bots/recipes/perf_skottiewasm_lottieweb.py
ilopX/skia
5b1196bc29fff703df90025589136969fe28aff0
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 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. # Recipe which runs Skottie-WASM and Lottie-Web perf. import calendar import re # trim DEPS = [ 'flavor', 'checkout', 'env', 'infra', 'recipe_en...
37.626087
79
0.600069
import calendar import re DEPS = [ 'flavor', 'checkout', 'env', 'infra', 'recipe_engine/context', 'recipe_engine/file', 'recipe_engine/path', 'recipe_engine/properties', 'recipe_engine/python', 'recipe_engine/step', 'recipe_engine/tempfile', 'recipe_engine/time', 'run', 'vars', ] LOTTIE...
true
true
1c14341143bc5c3eb4b049eb08105821f2d6426e
5,190
py
Python
train.py
SeuTao/iclr-2021-factored-attention
d189e3be2f8b2f27229a528f9f36b1c7ac072cd7
[ "BSD-3-Clause" ]
1
2021-04-22T13:35:28.000Z
2021-04-22T13:35:28.000Z
train.py
SeuTao/iclr-2021-factored-attention
d189e3be2f8b2f27229a528f9f36b1c7ac072cd7
[ "BSD-3-Clause" ]
null
null
null
train.py
SeuTao/iclr-2021-factored-attention
d189e3be2f8b2f27229a528f9f36b1c7ac072cd7
[ "BSD-3-Clause" ]
null
null
null
from argparse import ArgumentParser import os from pathlib import Path import random import string import io import matplotlib.pyplot as plt import pytorch_lightning as pl import torch import wandb import boto3 from mogwai.data_loading import MSADataModule, MSDataModule from mogwai.parsing import read_contacts from m...
29.322034
86
0.67341
from argparse import ArgumentParser import os from pathlib import Path import random import string import io import matplotlib.pyplot as plt import pytorch_lightning as pl import torch import wandb import boto3 from mogwai.data_loading import MSADataModule, MSDataModule from mogwai.parsing import read_contacts from m...
true
true
1c1434154039b1806b215448f819d92c94c47eb5
2,862
py
Python
carball/tests/metadata/leader_test.py
ZachM10/maybe
a49ec71ea4da0ade6e060e40711459b57701d30c
[ "Apache-2.0" ]
null
null
null
carball/tests/metadata/leader_test.py
ZachM10/maybe
a49ec71ea4da0ade6e060e40711459b57701d30c
[ "Apache-2.0" ]
null
null
null
carball/tests/metadata/leader_test.py
ZachM10/maybe
a49ec71ea4da0ade6e060e40711459b57701d30c
[ "Apache-2.0" ]
null
null
null
import unittest from carball.analysis.analysis_manager import AnalysisManager from carball.tests.utils import run_analysis_test_on_replay, get_raw_replays class LeaderTest(unittest.TestCase): def test_0_play_station_only_party(self): def test(analysis: AnalysisManager): game = analysis.game ...
40.885714
94
0.700559
import unittest from carball.analysis.analysis_manager import AnalysisManager from carball.tests.utils import run_analysis_test_on_replay, get_raw_replays class LeaderTest(unittest.TestCase): def test_0_play_station_only_party(self): def test(analysis: AnalysisManager): game = analysis.game ...
true
true
1c14344075ec8fb837ca97f21f6a247c4f2e67ae
275
py
Python
postoffice_send.py
flexo/PostOffice
ffcdb68831aae8bc610eb3ab6f700ed76008c2c0
[ "MIT" ]
2
2018-10-15T20:14:25.000Z
2019-11-10T18:27:44.000Z
postoffice_send.py
flexo/PostOffice
ffcdb68831aae8bc610eb3ab6f700ed76008c2c0
[ "MIT" ]
11
2018-10-17T19:14:46.000Z
2018-11-12T08:47:58.000Z
postoffice_send.py
flexo/PostOffice
ffcdb68831aae8bc610eb3ab6f700ed76008c2c0
[ "MIT" ]
5
2018-10-17T19:30:19.000Z
2018-10-29T21:16:43.000Z
import socket IP = "127.0.0.1" PORT = 7878 message = "Hello World" sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((IP, PORT)) sock.send(message.encode()) data = sock.recv(1024) if str(data) == "OK": print(str(data)) sock.close() sock.close
13.095238
56
0.676364
import socket IP = "127.0.0.1" PORT = 7878 message = "Hello World" sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((IP, PORT)) sock.send(message.encode()) data = sock.recv(1024) if str(data) == "OK": print(str(data)) sock.close() sock.close
true
true
1c14348f19dd43f6f48143c8b05cc9aaaf7ba73c
665
py
Python
constants.py
tarun-jethwani/BankingAPI
b9f020887373ceee0c5dca21e622be83f15f34bd
[ "MIT" ]
null
null
null
constants.py
tarun-jethwani/BankingAPI
b9f020887373ceee0c5dca21e622be83f15f34bd
[ "MIT" ]
null
null
null
constants.py
tarun-jethwani/BankingAPI
b9f020887373ceee0c5dca21e622be83f15f34bd
[ "MIT" ]
null
null
null
ERROR_FOR_BASIC_SAVINGS = 'BALANCE_EXCEDDING_IN_BASIC_SAVINGS' ERROR_FOR_INSUFFICIENT_BALANCE = 'INSUFFICIENT_BALANCE' ERROR_FOR_SAME_ACCOUNT_ID = 'SAME_ACCOUNT_ID' ERRORS_CODES = { ERROR_FOR_INSUFFICIENT_BALANCE: {'ERROR_CODE': 201, 'ERROR_MESSAGE': "INSUFFICIENT BALANCE IN SO...
39.117647
108
0.669173
ERROR_FOR_BASIC_SAVINGS = 'BALANCE_EXCEDDING_IN_BASIC_SAVINGS' ERROR_FOR_INSUFFICIENT_BALANCE = 'INSUFFICIENT_BALANCE' ERROR_FOR_SAME_ACCOUNT_ID = 'SAME_ACCOUNT_ID' ERRORS_CODES = { ERROR_FOR_INSUFFICIENT_BALANCE: {'ERROR_CODE': 201, 'ERROR_MESSAGE': "INSUFFICIENT BALANCE IN SO...
true
true
1c1437441a82a199b201fd692e937e8dc34c26fb
1,828
py
Python
example-geo.py
rstgh/rstoys
029a57a6fb95d29d81346520d4057df9e17e612d
[ "MIT" ]
null
null
null
example-geo.py
rstgh/rstoys
029a57a6fb95d29d81346520d4057df9e17e612d
[ "MIT" ]
null
null
null
example-geo.py
rstgh/rstoys
029a57a6fb95d29d81346520d4057df9e17e612d
[ "MIT" ]
null
null
null
from rstoys.geo import LatLon from rstoys.geo import WebMercatorProjection from rstoys.geo import CourseManager from rstoys.geo import diff_bearing alaska = LatLon(61.0231802, -167.7506614) munich = LatLon(48.133333, 11.566667) london = LatLon(51.5287718, -0.2416795) zeland = LatLon(-40.4342861, 166.3346344) p = W...
27.69697
105
0.692013
from rstoys.geo import LatLon from rstoys.geo import WebMercatorProjection from rstoys.geo import CourseManager from rstoys.geo import diff_bearing alaska = LatLon(61.0231802, -167.7506614) munich = LatLon(48.133333, 11.566667) london = LatLon(51.5287718, -0.2416795) zeland = LatLon(-40.4342861, 166.3346344) p = W...
true
true
1c1439176035dda94457ce77b7b7a4cc237f188d
475
py
Python
tests/test_zline.py
TorbenFricke/cmtoolkit
f1bf1ec191fd9b20e6edcd3385c8b9fee1d638ca
[ "BSD-3-Clause" ]
12
2015-07-07T03:36:43.000Z
2022-03-14T20:21:24.000Z
tests/test_zline.py
TorbenFricke/cmtoolkit
f1bf1ec191fd9b20e6edcd3385c8b9fee1d638ca
[ "BSD-3-Clause" ]
11
2015-05-11T08:02:42.000Z
2020-05-21T16:13:45.000Z
tests/test_zline.py
TorbenFricke/cmtoolkit
f1bf1ec191fd9b20e6edcd3385c8b9fee1d638ca
[ "BSD-3-Clause" ]
1
2017-11-07T15:14:10.000Z
2017-11-07T15:14:10.000Z
import numpy as np from numpy.testing import * import unittest from conformalmapping import * class TestZline(unittest.TestCase): def test_create(self): line = Zline(np.array([0.0, 1.0j])) def test_position(self): line = Zline(np.array([0.0, 1.0j])) pt = line.position(0) asser...
23.75
43
0.616842
import numpy as np from numpy.testing import * import unittest from conformalmapping import * class TestZline(unittest.TestCase): def test_create(self): line = Zline(np.array([0.0, 1.0j])) def test_position(self): line = Zline(np.array([0.0, 1.0j])) pt = line.position(0) asser...
true
true
1c143919211a70cd6145a48e2d96d1c99a26912e
45
py
Python
netlib/websockets/__init__.py
dolfly/mitmproxy
4604c25c6055a37e5f25a238d2a089759bd5d98a
[ "MIT" ]
1
2019-08-20T11:54:06.000Z
2019-08-20T11:54:06.000Z
netlib/websockets/__init__.py
dolfly/mitmproxy
4604c25c6055a37e5f25a238d2a089759bd5d98a
[ "MIT" ]
null
null
null
netlib/websockets/__init__.py
dolfly/mitmproxy
4604c25c6055a37e5f25a238d2a089759bd5d98a
[ "MIT" ]
null
null
null
from .frame import * from .protocol import *
15
23
0.733333
from .frame import * from .protocol import *
true
true
1c14399b39a57e6f3222528e086546981eadd5c5
9,796
py
Python
mc/tools/IconProvider.py
zy-sunshine/falkon-pyqt5
bc2b60aa21c9b136439bd57a11f391d68c736f99
[ "MIT" ]
1
2021-04-29T05:36:44.000Z
2021-04-29T05:36:44.000Z
mc/tools/IconProvider.py
zy-sunshine/falkon-pyqt5
bc2b60aa21c9b136439bd57a11f391d68c736f99
[ "MIT" ]
1
2020-03-28T17:43:18.000Z
2020-03-28T17:43:18.000Z
mc/tools/IconProvider.py
zy-sunshine/falkon-pyqt5
bc2b60aa21c9b136439bd57a11f391d68c736f99
[ "MIT" ]
1
2021-01-15T20:09:24.000Z
2021-01-15T20:09:24.000Z
from threading import Lock from PyQt5.Qt import QImage from PyQt5.Qt import QIcon from PyQt5.Qt import QStyle from PyQt5.Qt import Qt from PyQt5.Qt import QUrl from PyQt5.Qt import QBuffer from PyQt5.Qt import QByteArray from PyQt5.Qt import QIODevice from PyQt5.Qt import QDateTime from PyQt5.Qt import QPixmap from PyQ...
31.908795
99
0.586056
from threading import Lock from PyQt5.Qt import QImage from PyQt5.Qt import QIcon from PyQt5.Qt import QStyle from PyQt5.Qt import Qt from PyQt5.Qt import QUrl from PyQt5.Qt import QBuffer from PyQt5.Qt import QByteArray from PyQt5.Qt import QIODevice from PyQt5.Qt import QDateTime from PyQt5.Qt import QPixmap from PyQ...
true
true
1c1439d11060eb20e89f2cee6a90554b4b8bd4b7
970
py
Python
MoinMoin/action/quicklink.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
1
2016-04-01T04:02:28.000Z
2016-04-01T04:02:28.000Z
Documentation/ManualSource/wikicmd/MoinMoin/action/quicklink.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
3
2020-06-26T21:21:32.000Z
2020-06-26T21:21:36.000Z
Documentation/ManualSource/wikicmd/MoinMoin/action/quicklink.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
2
2017-01-25T20:06:44.000Z
2021-03-25T18:39:55.000Z
# -*- coding: iso-8859-1 -*- """ MoinMoin - add a quicklink to the user's quicklinks @copyright: 2000-2004 Juergen Hermann <jh@web.de>, 2006 MoinMoin:ThomasWaldmann @license: GNU GPL, see COPYING for details. """ from MoinMoin.Page import Page def execute(pagename, request): """ Add th...
35.925926
101
0.657732
from MoinMoin.Page import Page def execute(pagename, request): _ = request.getText if not request.user.valid: request.theme.add_msg(_("You must login to add a quicklink."), "error") elif not request.user.isQuickLinkedTo([pagename]): if request.user.addQuicklink(pagename): reque...
true
true
1c1439ef1b5363d88664a1b9e7c311ea166108fe
45,485
py
Python
ljd/ast/unwarper.py
wellziy/ljd
0dbc6cc39c60c3f79cf66654ad187e641e85ea8f
[ "MIT" ]
null
null
null
ljd/ast/unwarper.py
wellziy/ljd
0dbc6cc39c60c3f79cf66654ad187e641e85ea8f
[ "MIT" ]
null
null
null
ljd/ast/unwarper.py
wellziy/ljd
0dbc6cc39c60c3f79cf66654ad187e641e85ea8f
[ "MIT" ]
1
2020-08-06T02:41:04.000Z
2020-08-06T02:41:04.000Z
import copy import traceback import ljd.ast.nodes as nodes import ljd.ast.traverse as traverse import ljd.ast.slotworks as slotworks binop = nodes.BinaryOperator # ## # ## REMEMBER # ## # ## Block indices are unreliable while you are mangling them! # ## # ## P.S. Probably they should not be named indices... But the...
23.977333
248
0.71683
import copy import traceback import ljd.ast.nodes as nodes import ljd.ast.traverse as traverse import ljd.ast.slotworks as slotworks binop = nodes.BinaryOperator class _StatementsCollector(traverse.Visitor): def __init__(self): super(_StatementsCollector, self).__init__() self.result = [] def visit_stateme...
true
true
1c143a7bbc03485fdcf5fa91fbe3116c2b163a47
8,912
py
Python
test/functional/wallet_import_rescan.py
durgeshkmr/kcoin
6ea2af1d415f742222e01e5af4ffaa4b5a41e295
[ "MIT" ]
null
null
null
test/functional/wallet_import_rescan.py
durgeshkmr/kcoin
6ea2af1d415f742222e01e5af4ffaa4b5a41e295
[ "MIT" ]
null
null
null
test/functional/wallet_import_rescan.py
durgeshkmr/kcoin
6ea2af1d415f742222e01e5af4ffaa4b5a41e295
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test wallet import RPCs. Test rescan behavior of importaddress, importpubkey, importprivkey, and impor...
47.404255
116
0.654511
from test_framework.test_framework import KcoinTestFramework from test_framework.util import (assert_raises_rpc_error, connect_nodes, sync_blocks, assert_equal, set_node_times) import collections import enum import itertools Call = enum.Enum("Call", "single multi") Data = enum.Enum("Data", "address pub priv") Rescan...
true
true
1c143c10485a4b72b2a6d54f237fc6673049f0df
3,467
py
Python
resampy/core.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
6
2021-10-30T09:00:55.000Z
2022-03-07T16:33:25.000Z
resampy/core.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
resampy/core.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-03-16T11:33:50.000Z
2022-03-16T11:33:50.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- '''Core resampling interface''' import numpy as np from .filters import get_filter from .interpn import resample_f __all__ = ['resample'] def resample(x, sr_orig, sr_new, axis=-1, filter='kaiser_best', **kwargs): '''Resample a signal x from sr_orig to sr_new alo...
29.887931
87
0.603404
import numpy as np from .filters import get_filter from .interpn import resample_f __all__ = ['resample'] def resample(x, sr_orig, sr_new, axis=-1, filter='kaiser_best', **kwargs): if sr_orig <= 0: raise ValueError('Invalid sample rate: sr_orig={}'.format(sr_orig)) if sr_new <= 0: raise ...
true
true
1c143c40d865850ebe289b128d03d31d8f318856
68,564
py
Python
grr/server/grr_response_server/export_test.py
Codehardt/grr
1861b45e71af559a792e70c22cf4ff3f4ffd8993
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/export_test.py
Codehardt/grr
1861b45e71af559a792e70c22cf4ff3f4ffd8993
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/export_test.py
Codehardt/grr
1861b45e71af559a792e70c22cf4ff3f4ffd8993
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- """Tests for export converters.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import os import socket from absl import app from absl.testing import absltest from future.builtins import str from grr_res...
40.284371
80
0.706435
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import os import socket from absl import app from absl.testing import absltest from future.builtins import str from grr_response_core.lib import queues from grr_response_core.lib import rdfvalue from grr_re...
true
true
1c143cfcd748c10b4af493971aedba85dfce2676
7,282
py
Python
data_clean/data_clean.py
dikers/ocr-train-data-generator
72508e894b14eb0ed0beb09d7ae84d0991465dda
[ "MIT" ]
null
null
null
data_clean/data_clean.py
dikers/ocr-train-data-generator
72508e894b14eb0ed0beb09d7ae84d0991465dda
[ "MIT" ]
null
null
null
data_clean/data_clean.py
dikers/ocr-train-data-generator
72508e894b14eb0ed0beb09d7ae84d0991465dda
[ "MIT" ]
null
null
null
import json import cv2 import argparse import shutil import os import time import errno import glob class DataClean(object): def __init__(self): args = self.parse_arguments() self.output_dir = args.output_dir self.input_dir = args.input_dir self.mask_keys = args.mask_keys.split(...
28.007692
99
0.535979
import json import cv2 import argparse import shutil import os import time import errno import glob class DataClean(object): def __init__(self): args = self.parse_arguments() self.output_dir = args.output_dir self.input_dir = args.input_dir self.mask_keys = args.mask_keys.split(...
true
true
1c143dba15f27617bd0c993115c9733a18b166fc
626
py
Python
task3_parse_filenames/parse_filenames.py
glenjarvis/dmarc-lambda
a0efea40adfbf2ced9a998b8a938ad23198b5485
[ "Apache-2.0" ]
7
2020-08-06T12:32:22.000Z
2021-08-10T15:11:39.000Z
task3_parse_filenames/parse_filenames.py
glenjarvis/dmarc-lambda
a0efea40adfbf2ced9a998b8a938ad23198b5485
[ "Apache-2.0" ]
1
2021-09-28T16:22:18.000Z
2021-09-29T00:40:21.000Z
task3_parse_filenames/parse_filenames.py
glenjarvis/dmarc-lambda
a0efea40adfbf2ced9a998b8a938ad23198b5485
[ "Apache-2.0" ]
1
2021-08-09T18:52:45.000Z
2021-08-09T18:52:45.000Z
import datetime import re def details_from_filename(dmarc_filename): """ splits filename input on the ! character into 4 fields dmarc_filename: str returns: email_provider: str domain: str begin_time: datetime.datetime end_time: datetime.datetime """ dfne = re...
25.04
64
0.667732
import datetime import re def details_from_filename(dmarc_filename): dfne = re.sub(r'\.\w+$', '', dmarc_filename) fields = dfne.split('!') email_provider = fields[0] domain = fields[1] begin_time = datetime.datetime.fromtimestamp(int(fields[2])) end_time = datetime.datetime.fromtimestamp(int(f...
true
true
1c143dc97f532d0162c48da99e5dd62c039bec37
2,426
py
Python
Data/ZombieParticleManager.py
Kymed/The-Endless-Crypts
145ef2c9a80047bc202713b5be1a1035e0382091
[ "MIT" ]
1
2017-10-19T18:37:35.000Z
2017-10-19T18:37:35.000Z
Data/ZombieParticleManager.py
Kymed/The-Endless-Crypts
145ef2c9a80047bc202713b5be1a1035e0382091
[ "MIT" ]
null
null
null
Data/ZombieParticleManager.py
Kymed/The-Endless-Crypts
145ef2c9a80047bc202713b5be1a1035e0382091
[ "MIT" ]
null
null
null
import pygame,random class ZombieParticleManager(object): # Call constructor def __init__(self): self.x = [] self.y = [] self.active = [] self.color = [] self.maxDistance = [] self.originY = [] self.velocity = [] # Add particles def addPar...
36.208955
129
0.569662
import pygame,random class ZombieParticleManager(object): def __init__(self): self.x = [] self.y = [] self.active = [] self.color = [] self.maxDistance = [] self.originY = [] self.velocity = [] def addParticles(self, x, y, color, distX, di...
true
true
1c143e3b8d3aec4b82b7a1e75de38207502558ca
1,627
py
Python
scripts/export/create_output_csv.py
xapple/cbm_runner
ec532819e0a086077475bfd479836a378f187f6f
[ "MIT" ]
2
2019-07-11T23:49:22.000Z
2019-10-31T19:11:45.000Z
scripts/export/create_output_csv.py
xapple/cbm_runner
ec532819e0a086077475bfd479836a378f187f6f
[ "MIT" ]
null
null
null
scripts/export/create_output_csv.py
xapple/cbm_runner
ec532819e0a086077475bfd479836a378f187f6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ A script to create all useful export CSVs. Typically you would run this file from a command line like this: ipython3 -i -- ~/deploy/cbmcfs3_runner/scripts/export/create_output_csv.py Or on the windows machine: ipython3.exe -i -- /deploy/cbmcfs3_runner/scr...
31.288462
90
0.642286
from tqdm import tqdm from cbmcfs3_runner.core.continent import continent scenarios = ['historical', 'static_demand', 'demand_plus_20', 'demand_minus_20'] for scen_name in tqdm(scenarios, desc='Scenarios'): scenario = continent.scenarios[scen_name] for runners in tqdm(scenario.runners.values(), d...
true
true
1c143f990d28df0d79c1e97ea36f563192cf2197
2,625
py
Python
utils/BaseSteps.py
groupdepablo/3SPN2
dc3bc158c56a3a030af7f9371a9f32f791e068c2
[ "MIT" ]
11
2018-04-26T16:44:09.000Z
2021-06-19T02:45:40.000Z
utils/BaseSteps.py
groupdepablo/3SPN2
dc3bc158c56a3a030af7f9371a9f32f791e068c2
[ "MIT" ]
3
2019-09-10T01:53:43.000Z
2020-02-25T16:08:38.000Z
utils/BaseSteps.py
groupdepablo/3SPN2
dc3bc158c56a3a030af7f9371a9f32f791e068c2
[ "MIT" ]
9
2018-04-26T16:44:11.000Z
2021-10-05T02:33:33.000Z
#/usr/bin/env python """ This file contains the base pair and base step parameters used in 3SPN.2C. The parameters come from the following references: Morozov, Alexandre V., et al. "Using DNA mechanics to predict in vitro nucleosome positions and formation energies." Nucleic acids research 37.14 (2009): 4707-4722. ...
31.25
85
0.612952
class BasePair: def __init__(self,stea,steb,buckle, propeller, opening, shear, stretch, stagger): self.stea = stea self.steb = steb self.buckle = buckle self.propeller = propeller self.opening = opening self.shear = shear self.stretch = stretch self....
true
true
1c143faff7851a369c136d39f1cead7dbb7cc2e1
3,910
py
Python
Process_Data/validate_data.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
8
2020-08-26T13:32:56.000Z
2022-01-18T21:05:46.000Z
Process_Data/validate_data.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
1
2020-07-24T17:06:16.000Z
2020-07-24T17:06:16.000Z
Process_Data/validate_data.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
5
2020-12-11T03:31:15.000Z
2021-11-23T15:57:55.000Z
#!/usr/bin/env python # encoding: utf-8 """ @Author: yangwenhao @Contact: 874681044@qq.com @Software: PyCharm @File: validate_data.py @Time: 2019/9/26 上午10:51 @Overview: Load /home/cca01/work2019/yangwenhao/mydataset/voxceleb2/fbank64/dev/aac/id02912/88v-sPZl5-w/00010.wav error! Load /home/cca01/work2019/yangwenhao/m...
32.31405
121
0.640153
from __future__ import print_function import pdb from multiprocessing import Queue, Process import multiprocessing import numpy as np from Process_Data.Datasets.voxceleb2_wav_reader import voxceleb2_list_reader from Process_Data.Datasets.voxceleb_wav_reader import wav_list_reader dataroot = '/home/cca01/work2019/ya...
true
true
1c143fc7c89c1ea5460fd40b900a8bb1de2f9758
2,095
py
Python
utils/save_prediction.py
CuiRuikai/crf-as-ddn
01d9bc0a14a376e8c3094597f306be414b74562e
[ "MIT" ]
2
2021-05-17T06:05:54.000Z
2021-08-09T11:42:56.000Z
utils/save_prediction.py
CuiRuikai/crf-as-ddn
01d9bc0a14a376e8c3094597f306be414b74562e
[ "MIT" ]
null
null
null
utils/save_prediction.py
CuiRuikai/crf-as-ddn
01d9bc0a14a376e8c3094597f306be414b74562e
[ "MIT" ]
1
2021-05-23T13:38:17.000Z
2021-05-23T13:38:17.000Z
import os import argparse import json import torch from tqdm import tqdm import sys sys.path.append('../') import dataloaders import models from utils import Logger from utils import palette from utils.helpers import get_instance from utils.trainer import Trainer from utils.helpers import colorize_mask parser = argpa...
34.344262
99
0.65537
import os import argparse import json import torch from tqdm import tqdm import sys sys.path.append('../') import dataloaders import models from utils import Logger from utils import palette from utils.helpers import get_instance from utils.trainer import Trainer from utils.helpers import colorize_mask parser = argpa...
true
true
1c1440bdeb9b57d0cb03d106d2f410c96ca84b8d
1,866
py
Python
scripts/gen-decode-table.py
shenki/chiselwatt
c316067f331af2030eb604ba1c046238e868a33b
[ "CC-BY-4.0" ]
89
2020-01-29T19:03:50.000Z
2022-03-19T13:14:57.000Z
scripts/gen-decode-table.py
shenki/chiselwatt
c316067f331af2030eb604ba1c046238e868a33b
[ "CC-BY-4.0" ]
19
2020-01-29T21:40:31.000Z
2021-09-28T16:50:57.000Z
scripts/gen-decode-table.py
shenki/chiselwatt
c316067f331af2030eb604ba1c046238e868a33b
[ "CC-BY-4.0" ]
14
2020-01-29T20:41:35.000Z
2022-03-20T04:14:58.000Z
#!/usr/bin/python3 import yaml # Print all the common keys in order each time, makes diffing between # versions easier. base_keys = [ 'unit', 'internalOp', 'rA', 'rB', 'rS', 'rOut', 'carryIn', 'carryOut', 'crIn', 'crOut', 'compare', 'is32bit', 'signed', 'invertIn', 'invertOut', 'rightShift', 'clearLeft', 'clearRight'...
32.172414
284
0.512862
import yaml base_keys = [ 'unit', 'internalOp', 'rA', 'rB', 'rS', 'rOut', 'carryIn', 'carryOut', 'crIn', 'crOut', 'compare', 'is32bit', 'signed', 'invertIn', 'invertOut', 'rightShift', 'clearLeft', 'clearRight', 'length', 'byteReverse', 'update', 'reservation', 'high', 'extended', 'countRight' ] all_keys = list() al...
true
true
1c1440f7883608bf992d6241ba33fbc094e380e0
10,814
py
Python
magenta/models/music_vae/music_vae_train.py
undeadinu/magenta
1a5774e429849a3e79d00fc6d152ddd4a2d1ad31
[ "Apache-2.0" ]
30
2019-09-04T01:15:29.000Z
2022-02-08T09:59:15.000Z
magenta/models/music_vae/music_vae_train.py
undeadinu/magenta
1a5774e429849a3e79d00fc6d152ddd4a2d1ad31
[ "Apache-2.0" ]
null
null
null
magenta/models/music_vae/music_vae_train.py
undeadinu/magenta
1a5774e429849a3e79d00fc6d152ddd4a2d1ad31
[ "Apache-2.0" ]
6
2019-09-04T05:22:35.000Z
2020-05-16T13:27:51.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
32.969512
79
0.687442
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from magenta.models.music_vae import configs from magenta.models.music_vae import data import tensorflow as tf flags = tf.app.flags FLAGS = flags.FLAGS flags.DEFINE_string( 'master', '', '...
true
true
1c1441252d46662a7e888741eaa906afa5cd03b1
214
py
Python
tests/utils.py
Trim21/china-beancount-importers
91104b1a7ec838fca36ec6c2029a1018800e6f7a
[ "MIT" ]
2
2020-09-06T06:03:12.000Z
2021-07-15T06:25:56.000Z
tests/utils.py
Trim21/china-beancount-importers
91104b1a7ec838fca36ec6c2029a1018800e6f7a
[ "MIT" ]
10
2020-09-06T13:21:08.000Z
2022-03-14T17:39:20.000Z
tests/utils.py
Trim21/china-beancount-importers
91104b1a7ec838fca36ec6c2029a1018800e6f7a
[ "MIT" ]
null
null
null
import runpy def get_importer(filepath): importer_list = runpy.run_path(filepath) assert len(importer_list["CONFIG"]) == 1, "config should contain only one importer" return importer_list["CONFIG"][0]
26.75
87
0.733645
import runpy def get_importer(filepath): importer_list = runpy.run_path(filepath) assert len(importer_list["CONFIG"]) == 1, "config should contain only one importer" return importer_list["CONFIG"][0]
true
true
1c144173aafadf2e5513c70f77213f511972394d
1,736
py
Python
cesium/features/tests/test_graphs.py
acrellin/cesium
9d33edc0f9b3a79c68070826c0f390896abe294d
[ "BSD-3-Clause" ]
603
2016-04-15T00:11:07.000Z
2022-03-18T09:10:39.000Z
cesium/features/tests/test_graphs.py
acrellin/cesium
9d33edc0f9b3a79c68070826c0f390896abe294d
[ "BSD-3-Clause" ]
146
2016-03-17T19:58:24.000Z
2022-02-05T20:36:03.000Z
cesium/features/tests/test_graphs.py
acrellin/cesium
9d33edc0f9b3a79c68070826c0f390896abe294d
[ "BSD-3-Clause" ]
84
2016-04-13T23:30:58.000Z
2022-03-18T07:34:09.000Z
import os import numpy as np import numpy.testing as npt from cesium import data_management from cesium.features import graphs from cesium.features.tests.util import generate_features # Fixed set of features w/ known values SCIENCE_FEATS = graphs.GENERAL_FEATS + graphs.LOMB_SCARGLE_FEATS def test_feature_generatio...
36.93617
67
0.692972
import os import numpy as np import numpy.testing as npt from cesium import data_management from cesium.features import graphs from cesium.features.tests.util import generate_features SCIENCE_FEATS = graphs.GENERAL_FEATS + graphs.LOMB_SCARGLE_FEATS def test_feature_generation(): this_dir = os.path.join(os.path...
true
true
1c1441f20691e40eccf1ce2ec3a19974d280632d
12,708
py
Python
clinica/pipelines/t1_volume_dartel2mni/t1_volume_dartel2mni_pipeline.py
BanDoong/clinica
3cb2e652a0b0a7f5b726bb49ea948996cf801007
[ "MIT" ]
1
2020-06-08T15:27:55.000Z
2020-06-08T15:27:55.000Z
clinica/pipelines/t1_volume_dartel2mni/t1_volume_dartel2mni_pipeline.py
14thibea/clinica
3ccce34e330490d346e464235690972c22ac3a4f
[ "MIT" ]
null
null
null
clinica/pipelines/t1_volume_dartel2mni/t1_volume_dartel2mni_pipeline.py
14thibea/clinica
3ccce34e330490d346e464235690972c22ac3a4f
[ "MIT" ]
null
null
null
# coding: utf8 import clinica.pipelines.engine as cpe class T1VolumeDartel2MNI(cpe.Pipeline): """T1VolumeDartel2MNI - Dartel template to MNI. Returns: A clinica pipeline object containing the T1VolumeDartel2MNI pipeline. """ def check_pipeline_parameters(self): """Check pipeline par...
39.343653
122
0.559805
import clinica.pipelines.engine as cpe class T1VolumeDartel2MNI(cpe.Pipeline): def check_pipeline_parameters(self): from clinica.utils.group import check_group_label if "group_label" not in self.parameters.keys(): raise KeyError("Missing compulsory group_label key in pipeline parame...
true
true
1c144286906585d29548e452ddd80efdd9914d3b
4,696
py
Python
src/olympia/landfill/generators.py
jpetto/olympia
f4e9badac9634657068dfbd4733ab5d17798e3f6
[ "BSD-3-Clause" ]
null
null
null
src/olympia/landfill/generators.py
jpetto/olympia
f4e9badac9634657068dfbd4733ab5d17798e3f6
[ "BSD-3-Clause" ]
null
null
null
src/olympia/landfill/generators.py
jpetto/olympia
f4e9badac9634657068dfbd4733ab5d17798e3f6
[ "BSD-3-Clause" ]
null
null
null
import collections import random from datetime import datetime from itertools import cycle, islice from django.db.models.signals import post_save from olympia.amo.utils import slugify from olympia.addons.models import Addon, Persona, update_search_index from olympia.constants.applications import APPS from olympia.con...
35.575758
74
0.683135
import collections import random from datetime import datetime from itertools import cycle, islice from django.db.models.signals import post_save from olympia.amo.utils import slugify from olympia.addons.models import Addon, Persona, update_search_index from olympia.constants.applications import APPS from olympia.con...
true
true
1c144297e08dc55b01ece9a53bdac71161c74971
2,534
py
Python
hospital/models/hospital.py
sanjeevchauhan1/hospital12
2df4b121a40231a18ef57224a94657ab1f42297a
[ "MIT" ]
null
null
null
hospital/models/hospital.py
sanjeevchauhan1/hospital12
2df4b121a40231a18ef57224a94657ab1f42297a
[ "MIT" ]
null
null
null
hospital/models/hospital.py
sanjeevchauhan1/hospital12
2df4b121a40231a18ef57224a94657ab1f42297a
[ "MIT" ]
null
null
null
from odoo import models, fields, api, _ class HospitalPatient(models.Model): # Always use class name in Camelcase. _name = 'hospital.patient' # Object name should be in single quotes. name_seq = fields.Char(string='Order Reference', required=True, copy=False, readonly=True, index=True, ...
30.166667
108
0.610497
from odoo import models, fields, api, _ class HospitalPatient(models.Model): _name = 'hospital.patient' name_seq = fields.Char(string='Order Reference', required=True, copy=False, readonly=True, index=True, default=lambda self: _('New')) patient_name = fields.Char(string=...
true
true
1c1442d6f2f23094f689982fcb347532d2d1ac28
33,145
py
Python
pandas/tests/dtypes/test_dtypes.py
willweil/pandas
54492791116108199c24734a0220560974eb3372
[ "BSD-3-Clause" ]
1
2020-06-19T11:44:38.000Z
2020-06-19T11:44:38.000Z
pandas/tests/dtypes/test_dtypes.py
stevenbw/pandas
9c0f6a8d703b6bee48918f2c5d16418a7ff736e3
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/dtypes/test_dtypes.py
stevenbw/pandas
9c0f6a8d703b6bee48918f2c5d16418a7ff736e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import re import numpy as np import pytest import pytz from pandas.core.dtypes.common import ( is_bool_dtype, is_categorical, is_categorical_dtype, is_datetime64_any_dtype, is_datetime64_dtype, is_datetime64_ns_dtype, is_datetime64tz_dtype, is_datetimetz, is_dtype_equal, is_interva...
36.786903
79
0.635722
import re import numpy as np import pytest import pytz from pandas.core.dtypes.common import ( is_bool_dtype, is_categorical, is_categorical_dtype, is_datetime64_any_dtype, is_datetime64_dtype, is_datetime64_ns_dtype, is_datetime64tz_dtype, is_datetimetz, is_dtype_equal, is_interval_dtype, is_period, ...
true
true
1c1442e8b5f16a1bb243e63308bc77f198193c42
512
py
Python
codes/project.py
itsss/Image_Explanation_Software_for_the_blind
efd16e4f55d6ed688faebf2f5b48f6f5b902ff4d
[ "RSA-MD" ]
null
null
null
codes/project.py
itsss/Image_Explanation_Software_for_the_blind
efd16e4f55d6ed688faebf2f5b48f6f5b902ff4d
[ "RSA-MD" ]
null
null
null
codes/project.py
itsss/Image_Explanation_Software_for_the_blind
efd16e4f55d6ed688faebf2f5b48f6f5b902ff4d
[ "RSA-MD" ]
null
null
null
import RPi.GPIO as GPIO import time import os import picamera GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) while True: input_state = GPIO.input(18) if input_state == False: print('Button Pressed, Execute Explain Images For the Blind Software.') camera = picamera.Pi...
26.947368
79
0.683594
import RPi.GPIO as GPIO import time import os import picamera GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) while True: input_state = GPIO.input(18) if input_state == False: print('Button Pressed, Execute Explain Images For the Blind Software.') camera = picamera.Pi...
true
true
1c14439f5229b673b11e65224cfe3fcdd2619a03
4,737
py
Python
napari/layers/utils/_tests/test_string_encoding.py
chili-chiu/napari
eb6e672975ce105ac0125f71da3d0970d17cefb9
[ "BSD-3-Clause" ]
null
null
null
napari/layers/utils/_tests/test_string_encoding.py
chili-chiu/napari
eb6e672975ce105ac0125f71da3d0970d17cefb9
[ "BSD-3-Clause" ]
1
2022-03-10T08:51:57.000Z
2022-03-10T08:51:57.000Z
napari/layers/utils/_tests/test_string_encoding.py
chili-chiu/napari
eb6e672975ce105ac0125f71da3d0970d17cefb9
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd import pytest from napari.layers.utils._string_encoding import ( ConstantStringEncoding, DirectStringEncoding, FormatStringEncoding, ManualStringEncoding, validate_string_encoding, ) def make_features_with_no_columns(*, num_rows) -> pd.DataFrame: return ...
25.467742
76
0.705088
import numpy as np import pandas as pd import pytest from napari.layers.utils._string_encoding import ( ConstantStringEncoding, DirectStringEncoding, FormatStringEncoding, ManualStringEncoding, validate_string_encoding, ) def make_features_with_no_columns(*, num_rows) -> pd.DataFrame: return ...
true
true
1c1443e06bfd45e4f7d0bcc1d0e18547ee5f93f7
967
py
Python
lib/doublespinbox.py
Simske/exostriker
587b0af4c9cadb46637a4ac61a5392a596e966b1
[ "MIT" ]
69
2020-01-06T13:31:06.000Z
2022-03-29T11:23:14.000Z
exostriker/lib/doublespinbox.py
sai-33/Exostriker
f59fa51c6bdce3a2ed51d6621fe42bfcd8c2846f
[ "MIT" ]
67
2019-11-30T14:45:05.000Z
2022-03-14T20:26:06.000Z
exostriker/lib/doublespinbox.py
sai-33/Exostriker
f59fa51c6bdce3a2ed51d6621fe42bfcd8c2846f
[ "MIT" ]
13
2020-01-06T13:44:40.000Z
2022-03-29T11:23:17.000Z
from PyQt5 import QtCore, QtWidgets class DoubleSpinBox(QtWidgets.QDoubleSpinBox): minimize_signal = QtCore.pyqtSignal() def __init__(self, *args, **kwargs): super(DoubleSpinBox, self).__init__(*args, **kwargs) self.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu) def contextMenuEvent(s...
34.535714
83
0.676319
from PyQt5 import QtCore, QtWidgets class DoubleSpinBox(QtWidgets.QDoubleSpinBox): minimize_signal = QtCore.pyqtSignal() def __init__(self, *args, **kwargs): super(DoubleSpinBox, self).__init__(*args, **kwargs) self.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu) def contextMenuEvent(s...
true
true
1c1444488a0abcf827cd6a0f98c5ae8ba46b272a
29,161
py
Python
models/dexined.py
stephenwithav/DexiNed
3bd8a79c6a6673d2c4e2d0f69b84b7796c924e3b
[ "MIT" ]
null
null
null
models/dexined.py
stephenwithav/DexiNed
3bd8a79c6a6673d2c4e2d0f69b84b7796c924e3b
[ "MIT" ]
null
null
null
models/dexined.py
stephenwithav/DexiNed
3bd8a79c6a6673d2c4e2d0f69b84b7796c924e3b
[ "MIT" ]
null
null
null
""" DexiNed architecture description Created by: Xavier Soria Poma Modified from: https://github.com/machrisaa/tensorflow-vgg Autonomous University of Barcelona-Computer Vision Center xsoria@cvc.uab.es/xavysp@gmail.com """ import time import os import numpy as np import tensorflow as tf from utls.losses import * fr...
57.744554
171
0.542848
import time import os import numpy as np import tensorflow as tf from utls.losses import * from utls.utls import get_local_time, print_info, print_warning, print_error slim = tf.contrib.slim class dexined(): def __init__(self, args): self.args = args self.utw= self.args.use_trained_model ...
true
true
1c14450b47382613746f9fbe0cef27ea993266ae
1,729
py
Python
mn/templates/pages/home.py
m1ngaa/MN
b920d2aff1f4efd9b7730e9f938f6a475b64c36a
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mn/templates/pages/home.py
m1ngaa/MN
b920d2aff1f4efd9b7730e9f938f6a475b64c36a
[ "MIT" ]
null
null
null
mn/templates/pages/home.py
m1ngaa/MN
b920d2aff1f4efd9b7730e9f938f6a475b64c36a
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe no_cache = 1 def get_context(context): homepage = frappe.get_doc('Homepage') for item in homepage.products: route = frappe.db.get_v...
33.25
103
0.76229
from __future__ import unicode_literals import frappe no_cache = 1 def get_context(context): homepage = frappe.get_doc('Homepage') for item in homepage.products: route = frappe.db.get_value('Item', item.item_code, 'route') if route: item.route = '/' + route homepage.title = homepage.title or homepage.com...
true
true
1c1445d235948296e9d69d2e291904fc334586f7
6,485
py
Python
q2cli/tests/test_core.py
Oddant1/q2cli
3ef25ca9979518eec4bed0c3e9cd5ae9c57f2a6d
[ "BSD-3-Clause" ]
15
2016-04-18T22:25:05.000Z
2022-01-31T06:06:26.000Z
q2cli/tests/test_core.py
Oddant1/q2cli
3ef25ca9979518eec4bed0c3e9cd5ae9c57f2a6d
[ "BSD-3-Clause" ]
187
2016-04-18T22:22:05.000Z
2022-01-20T22:54:31.000Z
q2cli/tests/test_core.py
Oddant1/q2cli
3ef25ca9979518eec4bed0c3e9cd5ae9c57f2a6d
[ "BSD-3-Clause" ]
30
2016-04-12T19:45:07.000Z
2022-03-21T14:07:22.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2021, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
35.244565
78
0.603084
import os.path import shutil import tempfile import unittest import configparser from click.testing import CliRunner from qiime2 import Artifact from qiime2.core.testing.type import IntSequence1 from qiime2.core.testing.util import get_dummy_plugin import q2cli import q2cli.util import q2cli.builtin.info import q2cl...
true
true
1c144661b5d9ae043a6ca8e5f2f5a87ea4370a89
1,293
py
Python
test_mc_parity.py
tomkren/TFGPy
24c46dac95fd4bc28a9e3cd1d988a6050266c069
[ "MIT" ]
3
2017-04-28T11:04:49.000Z
2021-08-23T18:20:29.000Z
test_mc_parity.py
tomkren/TFGPy
24c46dac95fd4bc28a9e3cd1d988a6050266c069
[ "MIT" ]
7
2017-06-13T15:58:36.000Z
2017-07-03T10:07:04.000Z
test_mc_parity.py
tomkren/TFGPy
24c46dac95fd4bc28a9e3cd1d988a6050266c069
[ "MIT" ]
null
null
null
import unittest import domain_parity_apptree import domain_parity_stack from app_tree import UnfinishedLeaf from mcts import MCTNode from test_mc_koza import run_gen_basic, run_basic_nmcs, run_basic_mcts from tree_node import UFTNode, StackNode class TestParityDomainApptree(unittest.TestCase): def test_domain(se...
26.9375
73
0.716164
import unittest import domain_parity_apptree import domain_parity_stack from app_tree import UnfinishedLeaf from mcts import MCTNode from test_mc_koza import run_gen_basic, run_basic_nmcs, run_basic_mcts from tree_node import UFTNode, StackNode class TestParityDomainApptree(unittest.TestCase): def test_domain(se...
true
true
1c1446a0c7d24da53b74cf55f0ea778d1d1b02e7
11,525
py
Python
detr/detect_pan.py
vivek-a81/Custom-DeTr
54aa3a924e8f9d76e743630a5b5fd5c20f49e8cc
[ "Apache-2.0" ]
null
null
null
detr/detect_pan.py
vivek-a81/Custom-DeTr
54aa3a924e8f9d76e743630a5b5fd5c20f49e8cc
[ "Apache-2.0" ]
null
null
null
detr/detect_pan.py
vivek-a81/Custom-DeTr
54aa3a924e8f9d76e743630a5b5fd5c20f49e8cc
[ "Apache-2.0" ]
null
null
null
import argparse import json import os import time from io import BytesIO import cv2 import numpy as np import torch import torchvision.transforms as T from detectron2.data import DatasetCatalog, MetadataCatalog from detectron2.utils.visualizer import Visualizer from panopticapi.utils import rgb2id from ...
42.843866
162
0.616746
import argparse import json import os import time from io import BytesIO import cv2 import numpy as np import torch import torchvision.transforms as T from detectron2.data import DatasetCatalog, MetadataCatalog from detectron2.utils.visualizer import Visualizer from panopticapi.utils import rgb2id from ...
true
true
1c1446ee68b8b6de6d200ddb268a01be9dabf8bf
1,311
py
Python
Arrays and Linked Lists/010_Max-Sum-Subarray.py
parikshitsaikia1619/DSA_Mastery
bfeab4780d4de372e305c7a517abd04186af0b87
[ "MIT" ]
null
null
null
Arrays and Linked Lists/010_Max-Sum-Subarray.py
parikshitsaikia1619/DSA_Mastery
bfeab4780d4de372e305c7a517abd04186af0b87
[ "MIT" ]
null
null
null
Arrays and Linked Lists/010_Max-Sum-Subarray.py
parikshitsaikia1619/DSA_Mastery
bfeab4780d4de372e305c7a517abd04186af0b87
[ "MIT" ]
null
null
null
#%% Imports and functions declaration def sum_list(input_list: list) -> int: """ Sums the values of a list :param input_list: :return: the sum of the values """ result = 0 for i in input_list: result += i return result def sublist_generator(input_list: list) -> list: """ ...
25.705882
83
0.675057
def sum_list(input_list: list) -> int: result = 0 for i in input_list: result += i return result def sublist_generator(input_list: list) -> list: list_of_lists = [] list_max_pos = len(input_list)+1 for initial_sublist_pos in range(list_max_pos): for final_sublist_pos in range(...
true
true
1c1448c83aa8ff725bb0d82b95a1f517899b4a4b
1,668
py
Python
python/073 Set Matrix Zeroes.py
allandproust/leetcode-share
92bf28abf81a4cbf988d6595b9e42a6ee1b9071d
[ "MIT" ]
156
2017-04-18T13:33:45.000Z
2022-03-18T03:33:06.000Z
python/073 Set Matrix Zeroes.py
guling/leetcode-share
f82d816012298b3c59bfabfa0789da5f26d46fc5
[ "MIT" ]
2
2017-05-01T17:20:51.000Z
2020-04-24T14:52:19.000Z
python/073 Set Matrix Zeroes.py
guling/leetcode-share
f82d816012298b3c59bfabfa0789da5f26d46fc5
[ "MIT" ]
103
2017-04-26T05:26:30.000Z
2022-02-15T05:35:19.000Z
''' Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Follow up: Did you use extra space? A straight forward solution using O(mn) space is probably a bad idea. A simple improvement uses O(m + n) space, but still not the best solution. Could you devise a constant space s...
32.705882
94
0.446043
class Solution(object): def setZeroes(self, matrix): first_row = False first_col = False m = len(matrix) n = len(matrix[0]) for i in range(m): if matrix[i][0] == 0: first_col = True for j in range(n): if matrix[0][j]...
true
true
1c1448d8a73b9c6b4ba8f0d2f88f2e2ba9441775
5,698
py
Python
jina/clients/base/websocket.py
liusy182/jina
eb1b605f5c635f7db83e6adf9d77e52747ea7a8d
[ "Apache-2.0" ]
1
2021-04-11T08:06:05.000Z
2021-04-11T08:06:05.000Z
jina/clients/base/websocket.py
sthagen/jina
c272bbddef733167804c5a68d5f41ec789fa1732
[ "Apache-2.0" ]
1
2021-07-16T17:36:22.000Z
2021-09-22T13:48:18.000Z
jina/clients/base/websocket.py
sthagen/jina
c272bbddef733167804c5a68d5f41ec789fa1732
[ "Apache-2.0" ]
null
null
null
"""A module for the websockets-based Client for Jina.""" import asyncio from contextlib import nullcontext, AsyncExitStack from typing import Optional, TYPE_CHECKING, Dict from jina.clients.base.helper import WebsocketClientlet from jina.clients.base import BaseClient from jina.clients.helper import callback_exec fro...
41.591241
120
0.54019
import asyncio from contextlib import nullcontext, AsyncExitStack from typing import Optional, TYPE_CHECKING, Dict from jina.clients.base.helper import WebsocketClientlet from jina.clients.base import BaseClient from jina.clients.helper import callback_exec from jina.importer import ImportExtensions from jina.logging...
true
true
1c14492cce64844f383415358b4b654649381d4b
1,307
py
Python
tests/test_ext_indicator_performance.py
ryanrussell/pandas-ta
720bbcf0196d363d621beeced8fba711990d075d
[ "MIT" ]
2,298
2019-02-20T18:38:18.000Z
2022-03-31T07:45:50.000Z
tests/test_ext_indicator_performance.py
ryanrussell/pandas-ta
720bbcf0196d363d621beeced8fba711990d075d
[ "MIT" ]
451
2019-02-26T00:50:02.000Z
2022-03-31T03:17:39.000Z
tests/test_ext_indicator_performance.py
ryanrussell/pandas-ta
720bbcf0196d363d621beeced8fba711990d075d
[ "MIT" ]
579
2019-03-19T01:53:03.000Z
2022-03-31T11:13:50.000Z
from .config import sample_data from .context import pandas_ta from unittest import TestCase from pandas import DataFrame class TestPerformaceExtension(TestCase): @classmethod def setUpClass(cls): cls.data = sample_data cls.islong = cls.data["close"] > pandas_ta.sma(cls.data["close"], length=...
31.119048
84
0.697016
from .config import sample_data from .context import pandas_ta from unittest import TestCase from pandas import DataFrame class TestPerformaceExtension(TestCase): @classmethod def setUpClass(cls): cls.data = sample_data cls.islong = cls.data["close"] > pandas_ta.sma(cls.data["close"], length=...
true
true
1c144955711a27bd9df2f29bb14a92b328f0ac1d
3,814
py
Python
paquetes/ej5-ecommerce/main.py
gabvillacis/modulos_y_paquetes
67895f81d266961486de06b75d8a1e0c86714e15
[ "MIT" ]
null
null
null
paquetes/ej5-ecommerce/main.py
gabvillacis/modulos_y_paquetes
67895f81d266961486de06b75d8a1e0c86714e15
[ "MIT" ]
null
null
null
paquetes/ej5-ecommerce/main.py
gabvillacis/modulos_y_paquetes
67895f81d266961486de06b75d8a1e0c86714e15
[ "MIT" ]
null
null
null
import ui from inventario.logica import InventarioService from ventas.logica import VentasService from ventas.modelos.item import Item inventario_service = InventarioService() ventas_service = VentasService() def main() -> None: while True: menu_principal = { 'A': 'AGREGAR PRODUCTO', ...
33.752212
88
0.631096
import ui from inventario.logica import InventarioService from ventas.logica import VentasService from ventas.modelos.item import Item inventario_service = InventarioService() ventas_service = VentasService() def main() -> None: while True: menu_principal = { 'A': 'AGREGAR PRODUCTO', ...
true
true
1c144bf8b5a11dc73836f292bac4ee38fc5e357e
8,420
py
Python
exercises/tfFromMql.py
dirkroorda/text-fabric-data
877ce9b7bc3dc31ea5b04076e9675725b46ba383
[ "MIT" ]
4
2017-02-04T21:53:42.000Z
2017-09-12T21:53:56.000Z
exercises/tfFromMql.py
dirkroorda/text-fabric-data
877ce9b7bc3dc31ea5b04076e9675725b46ba383
[ "MIT" ]
4
2017-03-21T17:48:36.000Z
2017-06-19T14:10:58.000Z
exercises/tfFromMql.py
dirkroorda/text-fabric-data
877ce9b7bc3dc31ea5b04076e9675725b46ba383
[ "MIT" ]
5
2017-01-04T21:12:57.000Z
2017-07-17T10:49:42.000Z
import os,sys,re,collections from tf.fabric import Fabric sourceDir = os.path.expanduser('~/github/etcbc-data') mqlFile = '{}/{}'.format(sourceDir, 'synvar.mql') targetDir = os.path.expanduser('~/github/text-fabric-data') tfDir = '{}/hebrew/extrabiblical'.format(targetDir) if not os.path.exists(tfDir): os.makedirs(tfD...
33.149606
103
0.498931
import os,sys,re,collections from tf.fabric import Fabric sourceDir = os.path.expanduser('~/github/etcbc-data') mqlFile = '{}/{}'.format(sourceDir, 'synvar.mql') targetDir = os.path.expanduser('~/github/text-fabric-data') tfDir = '{}/hebrew/extrabiblical'.format(targetDir) if not os.path.exists(tfDir): os.makedirs(tfD...
true
true
1c144c8c3cb3c5d9a843056ec335d321b2a004a9
11,572
py
Python
effsstsPlot/effsstsPlot.py
tu-dortmund-ls12-rt/SSSEvaluation
7e7c181fde24c98ef4432cf6ef2e91bd99911541
[ "MIT" ]
4
2021-06-21T12:19:22.000Z
2021-07-06T12:58:42.000Z
effsstsPlot/effsstsPlot.py
tu-dortmund-ls12-rt/SSSEvaluation
7e7c181fde24c98ef4432cf6ef2e91bd99911541
[ "MIT" ]
5
2019-07-09T14:43:59.000Z
2021-07-05T14:22:20.000Z
effsstsPlot/effsstsPlot.py
tu-dortmund-ls12-rt/SSSEvaluation
7e7c181fde24c98ef4432cf6ef2e91bd99911541
[ "MIT" ]
1
2019-07-06T20:46:57.000Z
2019-07-06T20:46:57.000Z
from __future__ import division import sys import numpy as np import matplotlib.pyplot as plt import random import math def pickColor(ischeme): color = '' schemes = [ 'EDA','PROPORTIONAL','SEIFDA-MILP', 'SCEDF','SCRM','SCAIR-RM','SCAIR-OPA','EDAGMF-OPA','MILP-ReleaseJitter','SRSR', 'PASS-OPA','RSS'...
38.317881
167
0.60102
from __future__ import division import sys import numpy as np import matplotlib.pyplot as plt import random import math def pickColor(ischeme): color = '' schemes = [ 'EDA','PROPORTIONAL','SEIFDA-MILP', 'SCEDF','SCRM','SCAIR-RM','SCAIR-OPA','EDAGMF-OPA','MILP-ReleaseJitter','SRSR', 'PASS-OPA','RSS'...
true
true
1c144d3c3906abba3e112c5df8a14e8b1ae40c94
992
py
Python
custom_components/pyscript/const.py
raman325/pyscript
c97cdf020cffc596170ae7de499b29087f5416a6
[ "Apache-2.0" ]
368
2020-07-30T19:21:18.000Z
2022-03-31T08:34:08.000Z
custom_components/pyscript/const.py
raman325/pyscript
c97cdf020cffc596170ae7de499b29087f5416a6
[ "Apache-2.0" ]
215
2020-08-12T17:35:16.000Z
2022-03-24T13:20:53.000Z
custom_components/pyscript/const.py
raman325/pyscript
c97cdf020cffc596170ae7de499b29087f5416a6
[ "Apache-2.0" ]
23
2020-08-10T09:04:24.000Z
2022-01-24T16:59:25.000Z
"""Define pyscript-wide constants.""" DOMAIN = "pyscript" CONFIG_ENTRY = "config_entry" CONFIG_ENTRY_OLD = "config_entry_old" UNSUB_LISTENERS = "unsub_listeners" FOLDER = "pyscript" UNPINNED_VERSION = "_unpinned_version" ATTR_INSTALLED_VERSION = "installed_version" ATTR_SOURCES = "sources" ATTR_VERSION = "version"...
20.244898
62
0.708669
DOMAIN = "pyscript" CONFIG_ENTRY = "config_entry" CONFIG_ENTRY_OLD = "config_entry_old" UNSUB_LISTENERS = "unsub_listeners" FOLDER = "pyscript" UNPINNED_VERSION = "_unpinned_version" ATTR_INSTALLED_VERSION = "installed_version" ATTR_SOURCES = "sources" ATTR_VERSION = "version" CONF_ALLOW_ALL_IMPORTS = "allow_all_...
true
true
1c144dd76d1f567ca98a6dc522bba744f2c5f1eb
2,575
py
Python
tests/fixtures/ldap_sync/complex.py
marcelb98/pycroft
34cc59d9ab7fdc0c20b09b4851111048a9f64d90
[ "Apache-2.0" ]
null
null
null
tests/fixtures/ldap_sync/complex.py
marcelb98/pycroft
34cc59d9ab7fdc0c20b09b4851111048a9f64d90
[ "Apache-2.0" ]
null
null
null
tests/fixtures/ldap_sync/complex.py
marcelb98/pycroft
34cc59d9ab7fdc0c20b09b4851111048a9f64d90
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta from fixture import DataSet from tests.fixtures.dummy.unixaccount import UnixAccountData from tests.fixtures.dummy.facilities import RoomData from tests.fixtures.dummy.finance import AccountData from tests.fixtures.dummy.property import PropertyGroupData class UserData(DataSe...
31.790123
73
0.681165
from datetime import datetime, timedelta from fixture import DataSet from tests.fixtures.dummy.unixaccount import UnixAccountData from tests.fixtures.dummy.facilities import RoomData from tests.fixtures.dummy.finance import AccountData from tests.fixtures.dummy.property import PropertyGroupData class UserData(DataSe...
true
true
1c144e129cb5e62a54aab34bd6128ba3937b256b
1,462
py
Python
pipeline/api/views.py
OnGridSystems/RobotVeraWebApp
01cee658a3983fcaf128b40bb99c1a4272e90c07
[ "MIT" ]
11
2018-06-13T10:10:11.000Z
2021-06-05T08:23:43.000Z
pipeline/api/views.py
OnGridSystems/RobotVeraWebApp
01cee658a3983fcaf128b40bb99c1a4272e90c07
[ "MIT" ]
5
2021-03-19T23:41:21.000Z
2022-03-12T00:37:18.000Z
pipeline/api/views.py
OnGridSystems/RobotVeraWebApp
01cee658a3983fcaf128b40bb99c1a4272e90c07
[ "MIT" ]
5
2018-08-17T16:09:33.000Z
2021-06-06T05:32:10.000Z
from rest_framework import permissions from rest_framework import viewsets from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.reverse import reverse from jobboard.permissions import IsOwnerOrReadOnly from pipeline.models import Action, Pipeline, ActionType f...
33.227273
75
0.76881
from rest_framework import permissions from rest_framework import viewsets from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.reverse import reverse from jobboard.permissions import IsOwnerOrReadOnly from pipeline.models import Action, Pipeline, ActionType f...
true
true
1c144eb569b51dd3b9604ad9f47ee5dba38119db
41,791
py
Python
voluptuous/tests/tests.py
pombredanne/voluptuous
3d2036a61ac58f123cc7ea31d8c7484fbff7118a
[ "BSD-3-Clause" ]
null
null
null
voluptuous/tests/tests.py
pombredanne/voluptuous
3d2036a61ac58f123cc7ea31d8c7484fbff7118a
[ "BSD-3-Clause" ]
null
null
null
voluptuous/tests/tests.py
pombredanne/voluptuous
3d2036a61ac58f123cc7ea31d8c7484fbff7118a
[ "BSD-3-Clause" ]
null
null
null
import copy import collections import os import sys from nose.tools import assert_equal, assert_false, assert_raises, assert_true from voluptuous import ( Schema, Required, Exclusive, Inclusive, Optional, Extra, Invalid, In, Remove, Literal, Url, MultipleInvalid, LiteralInvalid, TypeInvalid, NotIn, Match, Ema...
29.660043
120
0.604891
import copy import collections import os import sys from nose.tools import assert_equal, assert_false, assert_raises, assert_true from voluptuous import ( Schema, Required, Exclusive, Inclusive, Optional, Extra, Invalid, In, Remove, Literal, Url, MultipleInvalid, LiteralInvalid, TypeInvalid, NotIn, Match, Ema...
true
true
1c144eb72c558b08a4dc25438f007d32a9ab874b
857
py
Python
minipages/apps.py
pascalpepe/django-minipages
4e0cf72f7465fc5cbc5d7bcbfd10b08b893b7a2c
[ "Apache-2.0" ]
1
2021-11-25T21:22:49.000Z
2021-11-25T21:22:49.000Z
minipages/apps.py
pascalpepe/django-minipages
4e0cf72f7465fc5cbc5d7bcbfd10b08b893b7a2c
[ "Apache-2.0" ]
null
null
null
minipages/apps.py
pascalpepe/django-minipages
4e0cf72f7465fc5cbc5d7bcbfd10b08b893b7a2c
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2017-2020 Pascal Pepe # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.28
74
0.756126
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class MiniPagesConfig(AppConfig): name = 'minipages' verbose_name = _('Pages')
true
true
1c144f59f03c0edf6849c2e89a8ce79ff7ddb1be
607
py
Python
snoop/data/migrations/0030_auto_20200212_2027.py
liquidinvestigations/hoover-snoop2
28e328401609f53fb56abaa4817619085aa3fbee
[ "MIT" ]
null
null
null
snoop/data/migrations/0030_auto_20200212_2027.py
liquidinvestigations/hoover-snoop2
28e328401609f53fb56abaa4817619085aa3fbee
[ "MIT" ]
168
2019-11-07T12:38:07.000Z
2021-04-19T09:53:51.000Z
snoop/data/migrations/0030_auto_20200212_2027.py
liquidinvestigations/hoover-snoop2
28e328401609f53fb56abaa4817619085aa3fbee
[ "MIT" ]
null
null
null
# Generated by Django 2.2.8 on 2020-02-12 20:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data', '0029_auto_20181019_1421'), ] operations = [ migrations.AddIndex( model_name='task', index=models.Index(field...
26.391304
99
0.583196
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data', '0029_auto_20181019_1421'), ] operations = [ migrations.AddIndex( model_name='task', index=models.Index(fields=['status', 'date_modified'], ...
true
true
1c14505576d4ccb93d482492fbc350533d85f5dd
429
py
Python
nodes/1.x/python/Element.Name+.py
jdehotin/Clockworkfordynamo
59226ea8292c57acfa1aa476efd40f0e78c9b965
[ "MIT" ]
147
2016-02-24T16:37:03.000Z
2022-02-18T12:10:34.000Z
nodes/1.x/python/Element.Name+.py
jdehotin/Clockworkfordynamo
59226ea8292c57acfa1aa476efd40f0e78c9b965
[ "MIT" ]
269
2016-02-25T14:04:14.000Z
2022-03-26T07:30:53.000Z
nodes/1.x/python/Element.Name+.py
jdehotin/Clockworkfordynamo
59226ea8292c57acfa1aa476efd40f0e78c9b965
[ "MIT" ]
89
2016-03-16T18:21:56.000Z
2022-02-03T14:34:30.000Z
import clr clr.AddReference('RevitAPI') from Autodesk.Revit.DB import * faminsts = IN[0] elementlist = list() for item in faminsts: try: n = UnwrapElement(item).Name except: # Use a built-in property of (wrapped) Dynamo elements for family symbols instead try: n = item.Name except: # maybe it's a param...
20.428571
83
0.692308
import clr clr.AddReference('RevitAPI') from Autodesk.Revit.DB import * faminsts = IN[0] elementlist = list() for item in faminsts: try: n = UnwrapElement(item).Name except: try: n = item.Name except: try: n = item.Definition.Name except: n = [] elementlist.append(n) OUT = elementlist
true
true
1c1450f7e31096f02c1025fbca013823914fd2fa
17,417
py
Python
lib/blockchain.py
bitnew-chain/btn-electrum
f51be152ce76825555057e99afe47b5b84e50126
[ "MIT" ]
null
null
null
lib/blockchain.py
bitnew-chain/btn-electrum
f51be152ce76825555057e99afe47b5b84e50126
[ "MIT" ]
null
null
null
lib/blockchain.py
bitnew-chain/btn-electrum
f51be152ce76825555057e99afe47b5b84e50126
[ "MIT" ]
2
2020-01-20T07:51:45.000Z
2020-07-18T08:31:54.000Z
# Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@ecdsa.org # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights...
36.513627
112
0.605041
import os import threading import sqlite3 from . import util from . import btn from . import constants from .btn import * blockchains = {} def read_blockchains(config): global blockchains main_chain = Blockchain(config, 0, None) blockchains[0] = main_chain fdir = os.path.join(util.get_headers_dir(c...
true
true
1c14510451c38943c10eb13b1ad9e07e3e3ff633
5,494
py
Python
lrp/avgpool.py
likedan/keras_lrp
f2a464604e1d69d00c1feeaa7bbd752a9234bd49
[ "BSD-3-Clause" ]
6
2018-08-11T19:40:03.000Z
2021-06-21T19:00:04.000Z
lrp/avgpool.py
likedan/keras_lrp
f2a464604e1d69d00c1feeaa7bbd752a9234bd49
[ "BSD-3-Clause" ]
1
2019-11-27T08:06:42.000Z
2019-11-27T08:06:42.000Z
lrp/avgpool.py
likedan/keras_lrp
f2a464604e1d69d00c1feeaa7bbd752a9234bd49
[ "BSD-3-Clause" ]
2
2018-10-02T23:33:20.000Z
2019-07-20T16:36:54.000Z
''' @author: Sebastian Lapuschkin @author: Gregoire Montavon @maintainer: Sebastian Lapuschkin @contact: sebastian.lapuschkin@hhi.fraunhofer.de, wojciech.samek@hhi.fraunhofer.de @date: 14.08.2015 @version: 1.2+ @copyright: Copyright (c) 2015-2017, Sebastian Lapuschkin, Alexander Binder, Gregoire Montavon, Klaus-Robert...
35.217949
197
0.550965
import numpy as np import math class AvgPool: def __init__(self, layer, X): self.X = X self.pool = layer.pool_size self.stride = layer.strides def _simple_lrp(self,R): N,H,W,D = self.X.shape hpool, wpool = self.pool hstride, wstride = self.stride ...
true
true
1c14511fe285df18562e0edf32d06878cc4f04fa
11,307
py
Python
tensorflow_model_analysis/metrics/calibration_histogram.py
jaymessina3/model-analysis
8638ad375d860a97df5938850c59c72b0def995a
[ "Apache-2.0" ]
1,118
2018-03-30T02:01:17.000Z
2022-03-22T07:25:58.000Z
tensorflow_model_analysis/metrics/calibration_histogram.py
jaymessina3/model-analysis
8638ad375d860a97df5938850c59c72b0def995a
[ "Apache-2.0" ]
82
2018-04-12T12:54:05.000Z
2022-03-31T11:14:31.000Z
tensorflow_model_analysis/metrics/calibration_histogram.py
jaymessina3/model-analysis
8638ad375d860a97df5938850c59c72b0def995a
[ "Apache-2.0" ]
280
2018-03-30T15:58:02.000Z
2022-03-21T07:41:53.000Z
# Lint as: python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
40.672662
80
0.695233
from __future__ import absolute_import from __future__ import division from __future__ import print_function import bisect import heapq import itertools import operator from typing import Dict, Iterable, List, Optional, NamedTuple, Text import apache_beam as beam from tensorflow_model_analysis.metrics import metric...
true
true
1c1451358ada4b7378183a85920b75fdd7901f5c
1,878
py
Python
hatsploit/modules/exploit/linux/ssh/raspbian_default_credentials.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
139
2021-02-17T15:52:30.000Z
2022-03-30T14:50:42.000Z
hatsploit/modules/exploit/linux/ssh/raspbian_default_credentials.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
27
2021-03-24T17:14:30.000Z
2022-03-02T18:50:43.000Z
hatsploit/modules/exploit/linux/ssh/raspbian_default_credentials.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
85
2021-02-17T15:39:03.000Z
2022-03-07T09:08:58.000Z
#!/usr/bin/env python3 # # This module requires HatSploit: https://hatsploit.netlify.app # Current source: https://github.com/EntySec/HatSploit # from hatsploit.lib.module import Module from hatsploit.utils.ssh import SSHClient from hatsploit.utils.handler import Handler class HatSploitModule(Module, SSHClient, Han...
24.710526
100
0.530884
from hatsploit.lib.module import Module from hatsploit.utils.ssh import SSHClient from hatsploit.utils.handler import Handler class HatSploitModule(Module, SSHClient, Handler): details = { 'Name': "Raspbian Default SSH Credentials", 'Module': "exploit/linux/ssh/raspbian_default_credentials", ...
true
true
1c1452976afd02269155e87de7a87e41e102f93e
1,646
py
Python
odoo/custom/src/private/mh_print_buttons/__openerp__.py
ecosoft-odoo/mh-doodba
093f14850aaff337951b4829b24bf32eee6e6d40
[ "BSL-1.0" ]
1
2021-10-03T08:11:18.000Z
2021-10-03T08:11:18.000Z
odoo/custom/src/private/mh_print_buttons/__openerp__.py
ecosoft-odoo/mh-doodba
093f14850aaff337951b4829b24bf32eee6e6d40
[ "BSL-1.0" ]
null
null
null
odoo/custom/src/private/mh_print_buttons/__openerp__.py
ecosoft-odoo/mh-doodba
093f14850aaff337951b4829b24bf32eee6e6d40
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
32.92
78
0.585055
{ 'name' : 'Print Button for MH', 'version' : '1.0', 'author' : 'Kitti U.', 'summary': 'Miscellenous Print Buttons MH', 'description': """ * Print Receipt on Customer Payment also mark as printed """, 'category': 'Accounting & Finance', 'sequence': 4, 'website' : 'http://www.ecoso...
true
true
1c1452bcd18f2802142e313e7aa8c426c93ff55e
9,059
py
Python
iggtools/subcommands/infer_markers.py
bsmith89/iggtools
95c171240f6efdc26df429304d4bfd78647d5e99
[ "MIT" ]
6
2019-12-11T08:15:13.000Z
2020-10-31T22:08:10.000Z
iggtools/subcommands/infer_markers.py
bsmith89/iggtools
95c171240f6efdc26df429304d4bfd78647d5e99
[ "MIT" ]
16
2019-11-14T21:34:29.000Z
2021-01-14T21:51:04.000Z
iggtools/subcommands/infer_markers.py
bsmith89/iggtools
95c171240f6efdc26df429304d4bfd78647d5e99
[ "MIT" ]
2
2019-12-11T08:15:15.000Z
2020-01-17T20:39:56.000Z
#!/usr/bin/env python3 import os import sys import Bio.SeqIO from iggtools.common.argparser import add_subcommand, SUPPRESS from iggtools.common.utils import tsprint, InputStream, retry, command, multithreading_map, find_files, upload, pythonpath, upload_star, num_physical_cores, download_reference from iggtools.models...
42.530516
308
0.669058
import os import sys import Bio.SeqIO from iggtools.common.argparser import add_subcommand, SUPPRESS from iggtools.common.utils import tsprint, InputStream, retry, command, multithreading_map, find_files, upload, pythonpath, upload_star, num_physical_cores, download_reference from iggtools.models.uhgg import UHGG, get_...
true
true
1c1452d41895b44612f06edb08b0313f57837f32
22,581
py
Python
tests/test_client.py
m-novikov/websockets
668f320e0547d80afe6529528e1ecc6088955cdc
[ "BSD-3-Clause" ]
3,909
2015-01-02T02:35:09.000Z
2022-03-31T14:03:01.000Z
tests/test_client.py
m-novikov/websockets
668f320e0547d80afe6529528e1ecc6088955cdc
[ "BSD-3-Clause" ]
1,066
2015-01-19T07:32:35.000Z
2022-03-26T15:00:11.000Z
tests/test_client.py
m-novikov/websockets
668f320e0547d80afe6529528e1ecc6088955cdc
[ "BSD-3-Clause" ]
549
2015-01-10T10:23:42.000Z
2022-03-25T16:38:32.000Z
import logging import unittest import unittest.mock from websockets.client import * from websockets.connection import CONNECTING, OPEN from websockets.datastructures import Headers from websockets.exceptions import InvalidHandshake, InvalidHeader from websockets.frames import OP_TEXT, Frame from websockets.http import...
38.6
88
0.613835
import logging import unittest import unittest.mock from websockets.client import * from websockets.connection import CONNECTING, OPEN from websockets.datastructures import Headers from websockets.exceptions import InvalidHandshake, InvalidHeader from websockets.frames import OP_TEXT, Frame from websockets.http import...
true
true
1c14539828e8345fbdd6af02a84afa4a4e58e184
22,521
py
Python
lib/datasets/imagenet3d.py
airacid/literate-garbanzo
8827db2e39896eb2633440478cf6b799a9d0aebd
[ "MIT" ]
null
null
null
lib/datasets/imagenet3d.py
airacid/literate-garbanzo
8827db2e39896eb2633440478cf6b799a9d0aebd
[ "MIT" ]
null
null
null
lib/datasets/imagenet3d.py
airacid/literate-garbanzo
8827db2e39896eb2633440478cf6b799a9d0aebd
[ "MIT" ]
null
null
null
__author__ = 'yuxiang' # derived from honda.py by fyang import datasets import datasets.imagenet3d import os import PIL import datasets.imdb import numpy as np import scipy.sparse from utils.cython_bbox import bbox_overlaps from utils.boxes_grid import get_boxes_grid import subprocess import pickle from fast_rcnn.conf...
47.412632
137
0.557657
__author__ = 'yuxiang' import datasets import datasets.imagenet3d import os import PIL import datasets.imdb import numpy as np import scipy.sparse from utils.cython_bbox import bbox_overlaps from utils.boxes_grid import get_boxes_grid import subprocess import pickle from fast_rcnn.config import cfg import math from rp...
true
true
1c1454a90e5e556200731b6b49115a26aab7a16c
15,858
py
Python
baseline_3_fixnorm_randwin_resize_filt.py
hirune924/kaggle-G2Net
e1b8d39a04411435c1b7b93a67cc370594f8a7ab
[ "Apache-2.0" ]
null
null
null
baseline_3_fixnorm_randwin_resize_filt.py
hirune924/kaggle-G2Net
e1b8d39a04411435c1b7b93a67cc370594f8a7ab
[ "Apache-2.0" ]
null
null
null
baseline_3_fixnorm_randwin_resize_filt.py
hirune924/kaggle-G2Net
e1b8d39a04411435c1b7b93a67cc370594f8a7ab
[ "Apache-2.0" ]
null
null
null
#################### # Import Libraries #################### import os import sys from PIL import Image import cv2 import numpy as np import pandas as pd import pytorch_lightning as pl from pytorch_lightning.metrics import Accuracy from pytorch_lightning import loggers from pytorch_lightning import seed_everything fro...
40.146835
143
0.574032
import os import sys from PIL import Image import cv2 import numpy as np import pandas as pd import pytorch_lightning as pl from pytorch_lightning.metrics import Accuracy from pytorch_lightning import loggers from pytorch_lightning import seed_everything from pytorch_lightning import Trainer from pytorch_lightning.cal...
true
true
1c1455587a9d6f18e075707e03eeac06557f8ce3
36,437
py
Python
modules/s3db/sync.py
samsruti/eden
8f6bdd070fa8435dafea6e8fb65db246280bb3ea
[ "MIT" ]
null
null
null
modules/s3db/sync.py
samsruti/eden
8f6bdd070fa8435dafea6e8fb65db246280bb3ea
[ "MIT" ]
null
null
null
modules/s3db/sync.py
samsruti/eden
8f6bdd070fa8435dafea6e8fb65db246280bb3ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Sahana Eden Synchronization @copyright: 2009-2015 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software wit...
42.172454
259
0.428795
""" Sahana Eden Synchronization @copyright: 2009-2015 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, in...
false
true
1c1455cc18b9f0a41d1ed0ec8de48422eb72e761
210
py
Python
auth/urls.py
mashiyathussain2/SocialMediaApp
04dc8cab6d92e5bee1662191aa37d1fdb94814aa
[ "MIT" ]
1
2021-07-04T10:29:36.000Z
2021-07-04T10:29:36.000Z
auth/urls.py
mashiyathussain2/SocialMediaApp
04dc8cab6d92e5bee1662191aa37d1fdb94814aa
[ "MIT" ]
null
null
null
auth/urls.py
mashiyathussain2/SocialMediaApp
04dc8cab6d92e5bee1662191aa37d1fdb94814aa
[ "MIT" ]
null
null
null
from django.urls import path from auth import views urlpatterns =[ path('login/', views.Login.as_view()), path('logout/', views.Logout.as_view()), path('signup/', views.Signup.as_view()) ]
23.333333
45
0.647619
from django.urls import path from auth import views urlpatterns =[ path('login/', views.Login.as_view()), path('logout/', views.Logout.as_view()), path('signup/', views.Signup.as_view()) ]
true
true
1c1456a6a97f6ac88549fbfeb26fbe85196022b0
3,158
py
Python
py/ci_reduce/dark_current.py
schlafly/gfa_reduce
9f68a8245a2f1bef3e11901bca7a4c6f45587faa
[ "BSD-3-Clause" ]
null
null
null
py/ci_reduce/dark_current.py
schlafly/gfa_reduce
9f68a8245a2f1bef3e11901bca7a4c6f45587faa
[ "BSD-3-Clause" ]
null
null
null
py/ci_reduce/dark_current.py
schlafly/gfa_reduce
9f68a8245a2f1bef3e11901bca7a4c6f45587faa
[ "BSD-3-Clause" ]
null
null
null
import ci_reduce.common as common import numpy as np import matplotlib.pyplot as plt import ci_reduce.imred.load_calibs as load_calibs # return dark current rate in e-/pix/sec as a function of temperature # based on DESI-3358 slide 9, or else my own dark current measurements once # I get access to the relevant engine...
31.58
79
0.725459
import ci_reduce.common as common import numpy as np import matplotlib.pyplot as plt import ci_reduce.imred.load_calibs as load_calibs # have sufficient data to study any camera-to-camera dark current differences def desi_3358_measurements(): # not aware of uncertainties being available for either of these quan...
true
true
1c145729d06b1b94f79bde8ee0419c9380c4f4ee
1,564
py
Python
process_items.py
SmartPhoenix/Persistent-Kingdoms
772574471279825b43788c87df4eab44444912a3
[ "Unlicense" ]
3
2018-04-13T15:45:21.000Z
2018-12-16T16:50:37.000Z
process_items.py
SmartPhoenix/Persistent-Kingdoms
772574471279825b43788c87df4eab44444912a3
[ "Unlicense" ]
249
2018-03-26T14:04:11.000Z
2020-04-13T22:32:36.000Z
process_items.py
SmartPhoenix/Persistent-Kingdoms
772574471279825b43788c87df4eab44444912a3
[ "Unlicense" ]
11
2018-04-10T15:56:01.000Z
2019-12-10T21:39:32.000Z
import process_common as pc import process_operations as po from header_items import * import module_items def process_entry(processor, txt_file, item, index): visible_name = pc.replace_spaces(item[1]) item_meshes = item[2] output_list = [" itm_%s %s %s %d " % (item[0], visible_name, visible_name, po.blo...
50.451613
118
0.695013
import process_common as pc import process_operations as po from header_items import * import module_items def process_entry(processor, txt_file, item, index): visible_name = pc.replace_spaces(item[1]) item_meshes = item[2] output_list = [" itm_%s %s %s %d " % (item[0], visible_name, visible_name, po.blo...
true
true
1c1458ca0ab1ad5f7446dcbd615b83eb6a492acc
4,530
py
Python
grr/server/grr_response_server/flows/general/checks_test.py
nkrios/grr
399e078ed522bf0555a2666fb086aa7809d54971
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/flows/general/checks_test.py
nkrios/grr
399e078ed522bf0555a2666fb086aa7809d54971
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/flows/general/checks_test.py
nkrios/grr
399e078ed522bf0555a2666fb086aa7809d54971
[ "Apache-2.0" ]
1
2020-07-09T01:08:48.000Z
2020-07-09T01:08:48.000Z
#!/usr/bin/env python """Test the collector flows.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import os from absl import app from future.utils import iterkeys from grr_response_core import config from grr_response_core.lib.parsers import config_f...
36.24
80
0.742163
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import os from absl import app from future.utils import iterkeys from grr_response_core import config from grr_response_core.lib.parsers import config_file from grr_response_core.lib.parsers import linux_fi...
true
true
1c1459708146a2dc1dd3c2d4ff5d2e3a5e564ec0
21,020
py
Python
tropical_precooling/env.py
biemann/tropical_precooling_environment
df5f55544e09c5ad6bb29f8c3da6c649b057aba6
[ "MIT" ]
null
null
null
tropical_precooling/env.py
biemann/tropical_precooling_environment
df5f55544e09c5ad6bb29f8c3da6c649b057aba6
[ "MIT" ]
null
null
null
tropical_precooling/env.py
biemann/tropical_precooling_environment
df5f55544e09c5ad6bb29f8c3da6c649b057aba6
[ "MIT" ]
null
null
null
import os import gym import numpy as np import pandas as pd from tropical_precooling.reward import dummy_reward, dummy_comfort_reward class TropicalPrecooling(gym.Env): def __init__(self): """ load measurements and parameters for env simulation. """ env_path = os.path.dirname(__...
38.782288
115
0.603092
import os import gym import numpy as np import pandas as pd from tropical_precooling.reward import dummy_reward, dummy_comfort_reward class TropicalPrecooling(gym.Env): def __init__(self): env_path = os.path.dirname(__file__) measured_data_fnp = os.path.join( env_path, "...
true
true
1c1459cf17503774169427e0dd5fa595b49bf546
1,750
py
Python
udemy/_udemy.py
xdays/udemy-dl
9fa60bb93191c29dd76e981c6625b978f6b4245e
[ "MIT" ]
null
null
null
udemy/_udemy.py
xdays/udemy-dl
9fa60bb93191c29dd76e981c6625b978f6b4245e
[ "MIT" ]
null
null
null
udemy/_udemy.py
xdays/udemy-dl
9fa60bb93191c29dd76e981c6625b978f6b4245e
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Soft...
46.052632
168
0.746857
from _internal import InternUdemyCourse as Udemy def course(url, username='', password='', cookies='', basic=True, callback=None): return Udemy(url, username, password, cookies, basic, callback)
true
true
1c145b4a9eae7d6108293efcdd60b7ad8969e2a4
1,878
py
Python
deeplearning-image-gpu/web-app-templates/standard/tensorboard-web-app/app.py
erappos/dataiku-contrib
49d493a28ce82766f4e75b521af0e2f4c944632d
[ "Apache-2.0" ]
null
null
null
deeplearning-image-gpu/web-app-templates/standard/tensorboard-web-app/app.py
erappos/dataiku-contrib
49d493a28ce82766f4e75b521af0e2f4c944632d
[ "Apache-2.0" ]
null
null
null
deeplearning-image-gpu/web-app-templates/standard/tensorboard-web-app/app.py
erappos/dataiku-contrib
49d493a28ce82766f4e75b521af0e2f4c944632d
[ "Apache-2.0" ]
null
null
null
import requests from flask import request, Response import dataiku dataiku.use_plugin_libs("deeplearning-image-gpu2") from tensorboard_handle import TensorboardThread import time import os ################################################################################################################### ## VARIABLES T...
39.957447
115
0.474973
import requests from flask import request, Response import dataiku dataiku.use_plugin_libs("deeplearning-image-gpu2") from tensorboard_handle import TensorboardThread import time import os model_folder = "retrained_model" tt = TensorboardThread(model_folder) port = tt.get_port() tt.start() @app.route('/tensorboa...
true
true
1c145c066e90b81ba341a482b785bd4d414bf902
434
py
Python
invoices/migrations/0016_auto_20190217_2010.py
pythonitalia/fatturae
29e680ca942f60fcd92cff8e9651ee89bf832732
[ "MIT" ]
11
2018-12-28T12:13:21.000Z
2021-01-19T15:33:47.000Z
invoices/migrations/0016_auto_20190217_2010.py
pythonitalia/fatturae
29e680ca942f60fcd92cff8e9651ee89bf832732
[ "MIT" ]
8
2019-07-03T21:07:18.000Z
2021-12-13T19:59:13.000Z
invoices/migrations/0016_auto_20190217_2010.py
pythonitalia/fatturae
29e680ca942f60fcd92cff8e9651ee89bf832732
[ "MIT" ]
6
2019-01-01T23:56:41.000Z
2021-09-21T06:54:53.000Z
# Generated by Django 2.1.7 on 2019-02-17 20:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("invoices", "0015_sender_user")] operations = [ migrations.AlterField( model_name="invoice", name="invoice_number", fi...
22.842105
60
0.596774
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("invoices", "0015_sender_user")] operations = [ migrations.AlterField( model_name="invoice", name="invoice_number", field=models.CharField( max_length...
true
true
1c145dfb1aed79f2702b4917e9f0b7b68fc080ac
537
py
Python
lexer_parser/domas_errors.py
franzbarron/proyecto-compis
29b3b9a588a92f5257bc3b1bb646734b7ace985b
[ "MIT" ]
null
null
null
lexer_parser/domas_errors.py
franzbarron/proyecto-compis
29b3b9a588a92f5257bc3b1bb646734b7ace985b
[ "MIT" ]
null
null
null
lexer_parser/domas_errors.py
franzbarron/proyecto-compis
29b3b9a588a92f5257bc3b1bb646734b7ace985b
[ "MIT" ]
null
null
null
class ReservedWordError(Exception): def __init__(self, keyword): message = f'Reserved word {keyword} cannot be used in this context.' super().__init__(message) class RedefinitionError(Exception): def __init__(self, id): message = f'ERROR: Redefinition of {id}' super().__init__(...
25.571429
76
0.67784
class ReservedWordError(Exception): def __init__(self, keyword): message = f'Reserved word {keyword} cannot be used in this context.' super().__init__(message) class RedefinitionError(Exception): def __init__(self, id): message = f'ERROR: Redefinition of {id}' super().__init__(...
true
true
1c145e4ba3372eb05aaa2152e2b54593ade193b7
929
py
Python
dapper/mods/LotkaVolterra/__init__.py
myying/DAPPER
2f92fcb5610f9b2d44bb077ac5ed5438ac5fd6b3
[ "MIT" ]
1
2022-01-03T19:08:32.000Z
2022-01-03T19:08:32.000Z
dapper/mods/LotkaVolterra/__init__.py
myying/DAPPER
2f92fcb5610f9b2d44bb077ac5ed5438ac5fd6b3
[ "MIT" ]
null
null
null
dapper/mods/LotkaVolterra/__init__.py
myying/DAPPER
2f92fcb5610f9b2d44bb077ac5ed5438ac5fd6b3
[ "MIT" ]
null
null
null
"""The generalized predator-prey model, with settings for chaotic dynamics. Refs: [Wiki](https://en.wikipedia.org/wiki/Competitive_Lotka-Volterra_equations), `bib.vano2006chaos`. """ import numpy as np import dapper.mods as modelling from dapper.mods.integration import integrate_TLM from dapper.mods.Lorenz63 import ...
18.58
75
0.628633
import numpy as np import dapper.mods as modelling from dapper.mods.integration import integrate_TLM from dapper.mods.Lorenz63 import LPs __pdoc__ = {"demo": False} Nx = 4 r = np.array([1, 0.72, 1.53, 1.27]) A = np.array([ [1, 1.09, 1.52, 0], [0, 1, 0.44, 1.36], [2.33, 0, 1, 0....
true
true
1c145f3278176626279f6501a5d93cd31ff16f73
1,459
py
Python
factor calculation scripts/6.inflation.py
cagdemir/equity-index-predictors
2546e72328de848222cb6a1c744ababab2058477
[ "MIT" ]
null
null
null
factor calculation scripts/6.inflation.py
cagdemir/equity-index-predictors
2546e72328de848222cb6a1c744ababab2058477
[ "MIT" ]
null
null
null
factor calculation scripts/6.inflation.py
cagdemir/equity-index-predictors
2546e72328de848222cb6a1c744ababab2058477
[ "MIT" ]
1
2021-07-21T12:24:51.000Z
2021-07-21T12:24:51.000Z
# -*- coding: utf-8 -*- """ Created on Fri Nov 29 15:43:17 2019 @author: Administrator """ import pdblp import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from datetime import date start = '20030101' today = date.today().strftime('%Y%m%d') firstday = '199...
18.948052
96
0.667581
import pdblp import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from datetime import date start = '20030101' today = date.today().strftime('%Y%m%d') firstday = '19981230' con = pdblp.BCon(debug=False, port=8194, timeout=5000) con.start() list_inf_tick...
true
true
1c145f51fdd9fbd9d849b80389a11b4e5d6b72c5
2,730
py
Python
plotter.py
cepheid42/CBET
9ef85012b134f22a0f19cd09e8594b934a53a9f4
[ "MIT" ]
null
null
null
plotter.py
cepheid42/CBET
9ef85012b134f22a0f19cd09e8594b934a53a9f4
[ "MIT" ]
null
null
null
plotter.py
cepheid42/CBET
9ef85012b134f22a0f19cd09e8594b934a53a9f4
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from constants import * from numpy import max as npmax def plot_everything(grid, intensity_sum, variable1, a0_variable, keep_open=False): cmap = 'jet' plt.figure() plt.pcolormesh(grid.z, grid.x, grid.eden / ncrit, cmap=cmap) plt.plot(grid.z - (dz / 2), grid.x - (dx / 2),...
32.117647
137
0.565934
import matplotlib.pyplot as plt from constants import * from numpy import max as npmax def plot_everything(grid, intensity_sum, variable1, a0_variable, keep_open=False): cmap = 'jet' plt.figure() plt.pcolormesh(grid.z, grid.x, grid.eden / ncrit, cmap=cmap) plt.plot(grid.z - (dz / 2), grid.x - (dx / 2),...
true
true
1c145f6b16d6ae5cad3e83958abaf4d26df45c6a
2,689
py
Python
api-example.py
kemalcanbora/python-examples
b5b483ac137172221b6d1244eb3816bf60ed34e7
[ "MIT" ]
1
2021-01-04T18:46:25.000Z
2021-01-04T18:46:25.000Z
api-example.py
Pervinsr/python-examples
b5b483ac137172221b6d1244eb3816bf60ed34e7
[ "MIT" ]
null
null
null
api-example.py
Pervinsr/python-examples
b5b483ac137172221b6d1244eb3816bf60ed34e7
[ "MIT" ]
1
2021-01-04T18:46:18.000Z
2021-01-04T18:46:18.000Z
import requests import json import sys urls = {"api_info example":"https://www.ob6.host/v2/api_info?uname=ade&apikey=u2eoo0n25wmcc85610s0ju3gb2np06w7","get pageid example":"https://www.ob6.host/v2/pageid?uname=ade&apikey=u2eoo0n25wmcc85610s0ju3gb2np06w7&pageid=100","get count of matched terms example":"https://www.ob6...
52.72549
776
0.711417
import requests import json import sys urls = {"api_info example":"https://www.ob6.host/v2/api_info?uname=ade&apikey=u2eoo0n25wmcc85610s0ju3gb2np06w7","get pageid example":"https://www.ob6.host/v2/pageid?uname=ade&apikey=u2eoo0n25wmcc85610s0ju3gb2np06w7&pageid=100","get count of matched terms example":"https://www.ob6...
true
true
1c14601844e56bb04c54cbd67b3528f853265952
615
py
Python
Math/Leetcode151.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
Math/Leetcode151.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
Math/Leetcode151.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
class Solution: def reverseWords(self, s: str) -> str: temp=s.split(" ") s=list() for t in temp: if t!='': s.append(t) left=0 right=len(s)-1 while left<right: temp=s[left] s[left]=s[right] s[right]=temp ...
22.777778
42
0.414634
class Solution: def reverseWords(self, s: str) -> str: temp=s.split(" ") s=list() for t in temp: if t!='': s.append(t) left=0 right=len(s)-1 while left<right: temp=s[left] s[left]=s[right] s[right]=temp ...
true
true
1c1460858077323c22a14383f4e074557d8b2f8d
4,614
py
Python
mars/tensor/base/swapaxes.py
haijohn/mars
672b3a33a70565f01b1a3f508908445491d85acf
[ "Apache-2.0" ]
1
2021-06-10T02:43:01.000Z
2021-06-10T02:43:01.000Z
mars/tensor/base/swapaxes.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
mars/tensor/base/swapaxes.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
29.576923
89
0.59883
from ... import opcodes as OperandDef from ...serialization.serializables import KeyField, Int32Field from ..array_utils import as_same_device, device from ..core import TensorOrder from ..datasource import tensor as astensor from ..operands import TensorHasInput, TensorOperandMixin from ..utils import validate_axis, ...
true
true
1c14614961f9ff7a402b14cf934f5215b5616e6a
10,221
py
Python
devel/lib/python2.7/dist-packages/hiwonder_servo_msgs/msg/_JointState.py
frozaidi/RobotSystems
e2c2f9e1623c71d6f5889e84bd9b4ff1d2043a1e
[ "BSD-3-Clause" ]
null
null
null
devel/lib/python2.7/dist-packages/hiwonder_servo_msgs/msg/_JointState.py
frozaidi/RobotSystems
e2c2f9e1623c71d6f5889e84bd9b4ff1d2043a1e
[ "BSD-3-Clause" ]
null
null
null
devel/lib/python2.7/dist-packages/hiwonder_servo_msgs/msg/_JointState.py
frozaidi/RobotSystems
e2c2f9e1623c71d6f5889e84bd9b4ff1d2043a1e
[ "BSD-3-Clause" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from hiwonder_servo_msgs/JointState.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import std_msgs.msg class JointState(genpy.Message): _md5sum = "75d2bf...
35.366782
145
0.630662
import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import std_msgs.msg class JointState(genpy.Message): _md5sum = "75d2bf646c2006bb7f480fbc9d7d4db7" _type = "hiwonder_servo_msgs/JointState" _has_header = True _full_text = """Header header string name ...
true
true
1c14617009f25341a4bb1e567ac76fb55df82a21
782
py
Python
scheduler/utils.py
zj-myidea/MYIDEA
901389a779329603d141f0641c8d2bae423f1d6b
[ "BSD-2-Clause" ]
null
null
null
scheduler/utils.py
zj-myidea/MYIDEA
901389a779329603d141f0641c8d2bae423f1d6b
[ "BSD-2-Clause" ]
null
null
null
scheduler/utils.py
zj-myidea/MYIDEA
901389a779329603d141f0641c8d2bae423f1d6b
[ "BSD-2-Clause" ]
null
null
null
import logging import netifaces import ipaddress def getlogger(name,path): logger = logging.getLogger(name) logger.setLevel(logging.INFO) logger.propagate = False fhandle = logging.FileHandler(path) fhandle.setLevel(logging.INFO) fmt = logging.Formatter(fmt="%(asctime)s %(name)s %(funcName)s ...
30.076923
93
0.66624
import logging import netifaces import ipaddress def getlogger(name,path): logger = logging.getLogger(name) logger.setLevel(logging.INFO) logger.propagate = False fhandle = logging.FileHandler(path) fhandle.setLevel(logging.INFO) fmt = logging.Formatter(fmt="%(asctime)s %(name)s %(funcName)s ...
true
true
1c146174a849975b28c8c5908d0af5964aabd61f
1,395
py
Python
surveys/views/survey_view.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
surveys/views/survey_view.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
surveys/views/survey_view.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
import json from django.shortcuts import get_object_or_404, render from django.views.decorators.http import require_http_methods from django.http import HttpResponse from ipware.ip import get_ip from core.models import Event from ..models import EventSurvey, EventSurveyResult, GlobalSurvey, GlobalSurveyResult @re...
29.680851
94
0.67957
import json from django.shortcuts import get_object_or_404, render from django.views.decorators.http import require_http_methods from django.http import HttpResponse from ipware.ip import get_ip from core.models import Event from ..models import EventSurvey, EventSurveyResult, GlobalSurvey, GlobalSurveyResult @re...
true
true
1c1461c2249865ec88202b140dd2497be1394292
1,044
py
Python
setup.py
DanielJDufour/prune
48d7340f69cd696108b717c60b5d986d01be03c1
[ "CC0-1.0" ]
1
2021-02-02T23:17:25.000Z
2021-02-02T23:17:25.000Z
setup.py
DanielJDufour/prune
48d7340f69cd696108b717c60b5d986d01be03c1
[ "CC0-1.0" ]
null
null
null
setup.py
DanielJDufour/prune
48d7340f69cd696108b717c60b5d986d01be03c1
[ "CC0-1.0" ]
null
null
null
from setuptools import setup from os import path from re import sub this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md')) as f: long_description = f.read() # remove emojiis long_description = sub(":[a-z_]+:", "- ", long_description) setup( name = 'prune', pa...
31.636364
80
0.69636
from setuptools import setup from os import path from re import sub this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md')) as f: long_description = f.read() long_description = sub(":[a-z_]+:", "- ", long_description) setup( name = 'prune', packages = ['prune'...
true
true
1c14623e3a3e10e9f40bedca090bea0ff941f9ca
2,166
py
Python
intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/sensu/sensu_go/plugins/module_utils/role_utils.py
Stienvdh/statrick
7b092fc42171e226718a70a285a4b323f2f395ad
[ "MIT" ]
null
null
null
intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/sensu/sensu_go/plugins/module_utils/role_utils.py
Stienvdh/statrick
7b092fc42171e226718a70a285a4b323f2f395ad
[ "MIT" ]
null
null
null
intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/sensu/sensu_go/plugins/module_utils/role_utils.py
Stienvdh/statrick
7b092fc42171e226718a70a285a4b323f2f395ad
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright: (c) 2019, XLAB Steampunk <steampunk@xlab.si> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type from . import utils def validate_module_params(params...
28.12987
92
0.654201
from __future__ import absolute_import, division, print_function __metaclass__ = type from . import utils def validate_module_params(params): if params['state'] == 'present': if not params['rules']: return 'state is present but all of the following are missing: rules' return None def v...
true
true
1c146336c2f4a1ab019f2d99cee7e7f86c42a5df
206
py
Python
Python Files/image_to_gaussian_blur.py
SagarMadnani78/Sign_Language_Translator
2dea8c63cf9caab70984ff337b69b8bc0d7b3333
[ "Unlicense" ]
null
null
null
Python Files/image_to_gaussian_blur.py
SagarMadnani78/Sign_Language_Translator
2dea8c63cf9caab70984ff337b69b8bc0d7b3333
[ "Unlicense" ]
null
null
null
Python Files/image_to_gaussian_blur.py
SagarMadnani78/Sign_Language_Translator
2dea8c63cf9caab70984ff337b69b8bc0d7b3333
[ "Unlicense" ]
null
null
null
import cv2 image = cv2.imread('bird.jpg',0) matrix = (9,11) image_blur = cv2.GaussianBlur(image,matrix,0) cv2.imshow('Smoothened Image',image_blur) cv2.waitKey(0) cv2.destroyAllWindows()
14.714286
46
0.68932
import cv2 image = cv2.imread('bird.jpg',0) matrix = (9,11) image_blur = cv2.GaussianBlur(image,matrix,0) cv2.imshow('Smoothened Image',image_blur) cv2.waitKey(0) cv2.destroyAllWindows()
true
true
1c1463446144a212b689e2a413622604cf8bbbf4
1,073
py
Python
ntopo/monitors.py
liyuesolo/ntopo-1
d3e17ca4cfb1d7a71c4c4f0c965cfcdc67d53fa9
[ "MIT" ]
4
2022-01-03T07:14:40.000Z
2022-01-06T06:56:50.000Z
ntopo/monitors.py
liyuesolo/ntopo-1
d3e17ca4cfb1d7a71c4c4f0c965cfcdc67d53fa9
[ "MIT" ]
null
null
null
ntopo/monitors.py
liyuesolo/ntopo-1
d3e17ca4cfb1d7a71c4c4f0c965cfcdc67d53fa9
[ "MIT" ]
1
2022-01-02T13:09:15.000Z
2022-01-02T13:09:15.000Z
import os import numpy as np import matplotlib.pyplot as plt import tensorflow as tf class SimulationMonitor: def __init__(self, n_iterations): self.n_iterations = n_iterations self.iter = None self.values = None def __iter__(self): self.iter = -1 self.values = [] ...
23.844444
59
0.552656
import os import numpy as np import matplotlib.pyplot as plt import tensorflow as tf class SimulationMonitor: def __init__(self, n_iterations): self.n_iterations = n_iterations self.iter = None self.values = None def __iter__(self): self.iter = -1 self.values = [] ...
true
true
1c14641c524eaf4af143f55b16491ad41f993154
1,671
py
Python
iam/meta.py
qqqqqie/bk-log
1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1
[ "MIT" ]
75
2021-07-14T09:32:36.000Z
2022-03-31T15:26:53.000Z
iam/meta.py
qqqqqie/bk-log
1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1
[ "MIT" ]
561
2021-07-14T07:45:47.000Z
2022-03-31T11:41:28.000Z
iam/meta.py
qqqqqie/bk-log
1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1
[ "MIT" ]
41
2021-07-14T07:39:50.000Z
2022-03-25T09:22:18.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
38.860465
115
0.758229
_SYSTEM = "system" _RESOURCES = "resources" _ACTIONS = "actions" __meta_info__ = {_SYSTEM: {}, _RESOURCES: {}, _ACTIONS: {}} def setup_system(system_id, system_name): __meta_info__[_SYSTEM].setdefault(system_id, {})["name"] = system_name def get_system_name(system_id): return __meta_info__[_SYSTEM].get(sy...
true
true
1c1465b508e44042ea5d82f934976a973101c5b0
11,063
py
Python
light_head_rcnn/links/model/light_head_rcnn_resnet101.py
knorth55/chainer-light-head-rcnn
4408311384d5abe550cd6ad004fa190aaced2c95
[ "MIT" ]
17
2018-07-13T12:37:29.000Z
2019-03-25T10:10:23.000Z
light_head_rcnn/links/model/light_head_rcnn_resnet101.py
knorth55/chainer-light-head-rcnn
4408311384d5abe550cd6ad004fa190aaced2c95
[ "MIT" ]
9
2018-07-19T09:59:00.000Z
2020-07-01T01:14:17.000Z
light_head_rcnn/links/model/light_head_rcnn_resnet101.py
knorth55/chainer-light-head-rcnn
4408311384d5abe550cd6ad004fa190aaced2c95
[ "MIT" ]
1
2019-09-06T07:11:01.000Z
2019-09-06T07:11:01.000Z
from __future__ import division import numpy as np import chainer import chainer.functions as F import chainer.links as L from chainercv.links import Conv2DBNActiv from chainercv.links.model.resnet.resblock import ResBlock from chainercv.links import ResNet101 from chainercv import utils from light_head_rcnn.functio...
38.954225
77
0.636807
from __future__ import division import numpy as np import chainer import chainer.functions as F import chainer.links as L from chainercv.links import Conv2DBNActiv from chainercv.links.model.resnet.resblock import ResBlock from chainercv.links import ResNet101 from chainercv import utils from light_head_rcnn.functio...
true
true
1c14663942cdee274628e5af587f4c22f3eaaeeb
14,815
py
Python
lhotse/audio.py
leixin/lhotse
24d713b81e8dbc0cdfec1038024a3b8a44eb54bd
[ "Apache-2.0" ]
null
null
null
lhotse/audio.py
leixin/lhotse
24d713b81e8dbc0cdfec1038024a3b8a44eb54bd
[ "Apache-2.0" ]
null
null
null
lhotse/audio.py
leixin/lhotse
24d713b81e8dbc0cdfec1038024a3b8a44eb54bd
[ "Apache-2.0" ]
null
null
null
import warnings from dataclasses import asdict, dataclass from io import BytesIO from math import sqrt from pathlib import Path from subprocess import PIPE, run from typing import Callable, Dict, Iterable, List, Optional, Union, Tuple import numpy as np from lhotse.utils import Decibels, Pathlike, Seconds, SetContain...
40.040541
114
0.638677
import warnings from dataclasses import asdict, dataclass from io import BytesIO from math import sqrt from pathlib import Path from subprocess import PIPE, run from typing import Callable, Dict, Iterable, List, Optional, Union, Tuple import numpy as np from lhotse.utils import Decibels, Pathlike, Seconds, SetContain...
true
true
1c14665a5642b15809ff8f9913924dadbb1acab6
6,357
py
Python
var/spack/repos/builtin/packages/onednn/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2020-10-20T08:57:12.000Z
2020-10-20T08:57:12.000Z
var/spack/repos/builtin/packages/onednn/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/onednn/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2020-11-08T10:26:48.000Z
2020-11-08T10:26:48.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import sys class Onednn(CMakePackage): """oneAPI Deep Neural Network Library (oneDNN). Formerly known as Intel ...
57.790909
96
0.734938
import sys class Onednn(CMakePackage): homepage = "https://01.org/onednn" url = "https://github.com/oneapi-src/oneDNN/archive/v1.6.4.tar.gz" maintainers = ['adamjstewart'] version('1.6.4', sha256='5369f7b2f0b52b40890da50c0632c3a5d1082d98325d0f2bff125d19d0dcaa1d') version('1.6.3', sha256...
true
true
1c1466b661537efad908d312584520ccab31506e
2,692
py
Python
lib/exabgp/bgp/message/update/nlri/rtc.py
tehnerd/exabgp
81b7d68351e678669db16ba873de41a9b60ca90a
[ "BSD-3-Clause" ]
null
null
null
lib/exabgp/bgp/message/update/nlri/rtc.py
tehnerd/exabgp
81b7d68351e678669db16ba873de41a9b60ca90a
[ "BSD-3-Clause" ]
null
null
null
lib/exabgp/bgp/message/update/nlri/rtc.py
tehnerd/exabgp
81b7d68351e678669db16ba873de41a9b60ca90a
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 """ rtc.py Created by Thomas Morin on 2014-06-10. Copyright (c) 2014-2015 Orange. All rights reserved. Copyright (c) 2014-2015 Exa Networks. All rights reserved. """ from struct import pack from struct import unpack from exabgp.bgp.message.open.asn import ASN from exabgp.bgp.message.update.attribut...
25.884615
95
0.705052
from struct import pack from struct import unpack from exabgp.bgp.message.open.asn import ASN from exabgp.bgp.message.update.attribute import Attribute from exabgp.bgp.message.update.attribute.community.extended import RouteTarget from exabgp.protocol.ip import NoNextHop from exabgp.protocol.family import AFI from ...
true
true
1c1466f27f4c8f80ce7a147ea86dade1483fcab7
498,377
py
Python
3algo/homo/4_16_10datap.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
null
null
null
3algo/homo/4_16_10datap.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
null
null
null
3algo/homo/4_16_10datap.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
1
2021-03-21T17:54:26.000Z
2021-03-21T17:54:26.000Z
wt4_16_10 = {'192.168.122.110': [8.9114, 5.3689, 5.7358, 5.9716, 8.673, 9.2471, 8.6813, 8.9921, 8.6202, 8.3094, 8.0689, 7.9744, 7.7864, 8.0031, 8.22, 8.1053, 7.9682, 7.8318, 8.0003, 8.1393, 8.0069, 7.8912, 7.7765, 7.7396, 7.6446, 7.6002, 7.5166, 7.4493, 7.3847, 7.315, 7.2507, 7.2033, 7.3035, 7.114, 7.0695, 7.0191, 6.9...
31,148.5625
475,302
0.620065
wt4_16_10 = {'192.168.122.110': [8.9114, 5.3689, 5.7358, 5.9716, 8.673, 9.2471, 8.6813, 8.9921, 8.6202, 8.3094, 8.0689, 7.9744, 7.7864, 8.0031, 8.22, 8.1053, 7.9682, 7.8318, 8.0003, 8.1393, 8.0069, 7.8912, 7.7765, 7.7396, 7.6446, 7.6002, 7.5166, 7.4493, 7.3847, 7.315, 7.2507, 7.2033, 7.3035, 7.114, 7.0695, 7.0191, 6.9...
true
true
1c146743f1b04e5e71f2d53a70edac2192eaf607
5,517
py
Python
3rd/IoticAgent/Core/MessageDecoder.py
aniknarayan/ioticiser_new
9886f1ba5c249ebbcebfb0e1f4434fecdf8c0680
[ "Apache-2.0" ]
null
null
null
3rd/IoticAgent/Core/MessageDecoder.py
aniknarayan/ioticiser_new
9886f1ba5c249ebbcebfb0e1f4434fecdf8c0680
[ "Apache-2.0" ]
null
null
null
3rd/IoticAgent/Core/MessageDecoder.py
aniknarayan/ioticiser_new
9886f1ba5c249ebbcebfb0e1f4434fecdf8c0680
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Iotic Labs Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://github.com/Iotic-Labs/py-IoticAgent/blob/master/LICENSE # # Unless re...
40.866667
116
0.656516
from __future__ import unicode_literals import binascii from . import Const C_TYPES = { Const.C_CREATE: 'CREATE', Const.C_UPDATE: 'UPDATE', Const.C_DELETE: 'DELETE', Const.C_LIST: 'LIST'} R_TYPES = { Const.R_PING: 'PING', Const.R_ENTITY: 'ENTITY', Const.R_FEED: 'FEED', Const.R_CONTR...
true
true
1c146868e6e53037d1e9f927e4a175b63433b5b2
2,241
py
Python
backend/christmas_joy_31526/urls.py
crowdbotics-apps/christmas-joy-31526
73ba1f4ffdd925b11fce51fc09815614e81ddced
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/christmas_joy_31526/urls.py
crowdbotics-apps/christmas-joy-31526
73ba1f4ffdd925b11fce51fc09815614e81ddced
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/christmas_joy_31526/urls.py
crowdbotics-apps/christmas-joy-31526
73ba1f4ffdd925b11fce51fc09815614e81ddced
[ "FTL", "AML", "RSA-MD" ]
null
null
null
"""christmas_joy_31526 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home')...
35.571429
87
0.713967
from django.contrib import admin from django.urls import path, include, re_path from django.views.generic.base import TemplateView from allauth.account.views import confirm_email from rest_framework import permissions from drf_yasg.views import get_schema_view from drf_yasg import openapi urlpatterns = [ path("",...
true
true
1c1469086517fc6cea6f9e96d8bf05474006b21d
94
py
Python
vnc2flv/__init__.py
Freakboy/vnc2flv
c6b422f5c694e2ab04379259a29cd25a3871e6f3
[ "Unlicense" ]
1
2020-11-13T07:00:11.000Z
2020-11-13T07:00:11.000Z
vnc2flv/__init__.py
Freakboy/vnc2flv
c6b422f5c694e2ab04379259a29cd25a3871e6f3
[ "Unlicense" ]
2
2020-02-27T14:33:26.000Z
2020-02-28T17:08:14.000Z
vnc2flv/__init__.py
Freakboy/vnc2flv
c6b422f5c694e2ab04379259a29cd25a3871e6f3
[ "Unlicense" ]
1
2021-05-29T23:30:45.000Z
2021-05-29T23:30:45.000Z
#!/usr/bin/env python __version__ = '20191220' if __name__ == '__main__': print(__version__)
18.8
45
0.723404
__version__ = '20191220' if __name__ == '__main__': print(__version__)
true
true
1c146a6e5052e6264c18d1e956f86c3e1c27edf5
1,270
py
Python
var/spack/repos/builtin/packages/r-quantmod/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-quantmod/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-quantmod/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class RQuantmod(RPackage): """Quantitative Financial Modelling Framework. Specify, ...
43.793103
96
0.74252
from spack.package import * class RQuantmod(RPackage): cran = "quantmod" version('0.4.20', sha256='f757df41595d885f7927e18f4835bc233d78d2d3ae48fd11c8874d4338c48e94') version('0.4.18', sha256='aa40448e93a1facf399213ac691784007731e869ad243fe762381ab099cd6c35') version('0.4-15', sha256='7ef2e798d4d8e4...
true
true
1c146ad8b52f4b84be52aa53620556c1f82af9f9
1,607
py
Python
Python Simulator/Path Planners/GridWorld.py
yiorgosk/Path-Planning-Simulator
84847d0068a3fd6fa30098b99a75dff237768a73
[ "MIT" ]
50
2018-11-15T08:42:49.000Z
2022-03-20T10:51:58.000Z
Python Simulator/Path Planners/GridWorld.py
yiorgosk/Path-Planning-Simulator
84847d0068a3fd6fa30098b99a75dff237768a73
[ "MIT" ]
null
null
null
Python Simulator/Path Planners/GridWorld.py
yiorgosk/Path-Planning-Simulator
84847d0068a3fd6fa30098b99a75dff237768a73
[ "MIT" ]
24
2019-02-03T06:11:58.000Z
2022-03-15T06:18:39.000Z
import Cell class GridWorld: def __init__(self, width, height, obstacles): self.width = width self.height = height self.cells = [[Cell.Cell(i, j) for j in range(width)] for i in range(height)] self.obstacles = obstacles for obstacle in self.obstacles: self.cells[obstacle[0]][obstacle[1]].obsta...
29.759259
175
0.6229
import Cell class GridWorld: def __init__(self, width, height, obstacles): self.width = width self.height = height self.cells = [[Cell.Cell(i, j) for j in range(width)] for i in range(height)] self.obstacles = obstacles for obstacle in self.obstacles: self.cells[obstacle[0]][obstacle[1]].obsta...
true
true
1c146c26b94a6887b8cb28a20506651747ec2e91
5,648
py
Python
preprocess/FileOrganizer.py
todoaskit/World-Cup-Youtube-Chat
535ba3058139d682b0fe077c9a9bfd5533966e71
[ "MIT" ]
null
null
null
preprocess/FileOrganizer.py
todoaskit/World-Cup-Youtube-Chat
535ba3058139d682b0fe077c9a9bfd5533966e71
[ "MIT" ]
null
null
null
preprocess/FileOrganizer.py
todoaskit/World-Cup-Youtube-Chat
535ba3058139d682b0fe077c9a9bfd5533966e71
[ "MIT" ]
1
2018-07-13T14:29:40.000Z
2018-07-13T14:29:40.000Z
from custom_path import DATA_PATH, CHAT_PATH from utill import get_files, get_tsv, get_readlines from WriterWrapper import WriterWrapper from typing import List from termcolor import cprint import re import os FILE_REGEX = [ '(\w+) vs (\w+)\s?[:|-]\s?(\w+)', '(\w+) v. (\w+)\s?[:|-]\s?(\w+)', '(\w+) - (\w+...
36.675325
111
0.595432
from custom_path import DATA_PATH, CHAT_PATH from utill import get_files, get_tsv, get_readlines from WriterWrapper import WriterWrapper from typing import List from termcolor import cprint import re import os FILE_REGEX = [ '(\w+) vs (\w+)\s?[:|-]\s?(\w+)', '(\w+) v. (\w+)\s?[:|-]\s?(\w+)', '(\w+) - (\w+...
true
true