hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79612ffd4d5417b4a02665cb8dee7fbec77de884
7,720
py
Python
scripts/build/builders/android.py
summercms/connectedhomeip
5a9c063c83d039fe284fdb5afb1b7c5b5e1791b0
[ "Apache-2.0" ]
1
2021-11-08T08:36:36.000Z
2021-11-08T08:36:36.000Z
scripts/build/builders/android.py
summercms/connectedhomeip
5a9c063c83d039fe284fdb5afb1b7c5b5e1791b0
[ "Apache-2.0" ]
null
null
null
scripts/build/builders/android.py
summercms/connectedhomeip
5a9c063c83d039fe284fdb5afb1b7c5b5e1791b0
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Project CHIP Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
42.651934
108
0.587953
796130b3163bb126173a59889afca1173ae216a2
6,817
py
Python
video_to_audio2.py
xstgavin/Video-to-audio-converter
9410f1a4cbb143756ed3dbd886d3fd52b51d9e00
[ "MIT" ]
null
null
null
video_to_audio2.py
xstgavin/Video-to-audio-converter
9410f1a4cbb143756ed3dbd886d3fd52b51d9e00
[ "MIT" ]
null
null
null
video_to_audio2.py
xstgavin/Video-to-audio-converter
9410f1a4cbb143756ed3dbd886d3fd52b51d9e00
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import matplotlib import urllib.request import urllib.error import re import sys import time import pipes import pylab matplotlib.use('Agg') from matplotlib import pyplot as plt import librosa import librosa.display import numpy as np import glob import subprocess import json import c...
33.915423
100
0.581194
796130c37dc8a7efc75ef66888e18fb460caa768
6,844
py
Python
projects/DensePose/densepose/structures/chart_result.py
wincooler/detectron2
eb7329c0abf852a632b0ec8e009a26f822e7d3e0
[ "Apache-2.0" ]
7
2020-09-23T15:57:00.000Z
2022-02-05T00:57:08.000Z
projects/DensePose/densepose/structures/chart_result.py
yusufdalva/robust_inst_seg
7f15a71c4d44bfe0b61bf410684b38eeaf4689a1
[ "Apache-2.0" ]
1
2022-02-23T05:51:28.000Z
2022-03-12T07:49:38.000Z
projects/DensePose/densepose/structures/chart_result.py
yusufdalva/robust_inst_seg
7f15a71c4d44bfe0b61bf410684b38eeaf4689a1
[ "Apache-2.0" ]
2
2021-04-19T10:46:23.000Z
2021-05-08T07:23:08.000Z
# Copyright (c) Facebook, Inc. and its affiliates. from dataclasses import dataclass from typing import Any, Tuple import torch @dataclass class DensePoseChartResult: """ DensePose results for chart-based methods represented by labels and inner coordinates (U, V) of individual charts. Each chart is a 2D ...
37.195652
99
0.705582
796130de138ac9eb9697a645fccca481f949313a
658
py
Python
test/authrec.py
fbraem/mqweb
c030b300a0b7312c24948e0add4eb6a9b7f8a05b
[ "MIT" ]
18
2015-01-12T20:17:27.000Z
2022-02-11T17:40:54.000Z
test/authrec.py
hlkiltas/mqweb
9b70e0cba70050e856a9cc5a04c660df8d880d15
[ "MIT" ]
12
2015-01-20T12:47:01.000Z
2019-03-13T07:10:19.000Z
test/authrec.py
hlkiltas/mqweb
9b70e0cba70050e856a9cc5a04c660df8d880d15
[ "MIT" ]
8
2015-01-13T13:52:29.000Z
2021-12-10T12:07:29.000Z
import unittest from testbase import MQWebTest ''' Test AuthorityRecordController ''' class TestAuthorityRecordActions(MQWebTest): ''' Test Inquire with HTTP GET ''' def testInquire(self): json = self.getJSON('/api/authrec/inquire/' + self.qmgr + '?options=Name%20All%20Matching&options=Entity%20Explici...
23.5
79
0.732523
7961311657f99e1842f7c425c65ae79dbdc8de30
127
py
Python
src/carica/models/__init__.py
Trimatix/carica
074be16bdf50541eb3ba92ca42d0ad901cc51bd0
[ "Apache-2.0" ]
5
2021-09-08T07:29:23.000Z
2021-11-24T00:18:22.000Z
src/carica/models/__init__.py
Trimatix/Carica
074be16bdf50541eb3ba92ca42d0ad901cc51bd0
[ "Apache-2.0" ]
42
2021-09-08T07:31:25.000Z
2022-01-16T17:39:34.000Z
src/carica/models/__init__.py
Trimatix/carica
074be16bdf50541eb3ba92ca42d0ad901cc51bd0
[ "Apache-2.0" ]
null
null
null
from .dataclasses import SerializableDataClass from .path import SerializablePath from .timedelta import SerializableTimedelta
31.75
46
0.88189
796131c6a0fe6c412b23f8ae46974b61550b09b3
2,195
py
Python
roles/build-test-packages/library/zuul_deps.py
bogdando/tripleo-quickstart-extras
d058b19630c1c950c72d9ca68a66c30763d0ba1f
[ "Apache-2.0" ]
null
null
null
roles/build-test-packages/library/zuul_deps.py
bogdando/tripleo-quickstart-extras
d058b19630c1c950c72d9ca68a66c30763d0ba1f
[ "Apache-2.0" ]
null
null
null
roles/build-test-packages/library/zuul_deps.py
bogdando/tripleo-quickstart-extras
d058b19630c1c950c72d9ca68a66c30763d0ba1f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # dis...
30.068493
140
0.661503
796132a332dc4fa0e7bf765287fd3e044cfe08ce
48,694
py
Python
vela/vela/services_api.py
go-vela/sdk-python
ca4425995bee43cb517e78fcd6702fec6f758222
[ "Apache-2.0" ]
1
2020-11-18T13:31:05.000Z
2020-11-18T13:31:05.000Z
vela/vela/services_api.py
go-vela/sdk-python
ca4425995bee43cb517e78fcd6702fec6f758222
[ "Apache-2.0" ]
57
2020-04-30T19:02:47.000Z
2022-03-28T07:39:58.000Z
vela/vela/services_api.py
go-vela/sdk-python
304b2c8645dc6332fd69398c8c849a3961619c29
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright (c) 2021 Target Brands, Inc. All rights reserved. """ Vela server API for the Vela server # noqa: E501 OpenAPI spec version: 0.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 ...
42.751536
121
0.600464
7961335fa32dafca37cc71042499a5a8debec123
30
py
Python
peact/export/__init__.py
glotzerlab/peact
ead549336d46127f1b05021a8cc2e6f3d4d298c2
[ "BSD-3-Clause" ]
2
2019-02-09T12:29:33.000Z
2019-03-02T14:27:16.000Z
peact/export/__init__.py
glotzerlab/peact
ead549336d46127f1b05021a8cc2e6f3d4d298c2
[ "BSD-3-Clause" ]
null
null
null
peact/export/__init__.py
glotzerlab/peact
ead549336d46127f1b05021a8cc2e6f3d4d298c2
[ "BSD-3-Clause" ]
null
null
null
# don't import any by default
15
29
0.733333
796137a0966ad561affae476a4fff0cc712a3f10
960
py
Python
migrations/versions/3ceaad2315a0_.py
mjmatta/spark-se-assessment
98d80ced6c6ed3ff499bda7fa0d0d65af5a4e58b
[ "MIT" ]
null
null
null
migrations/versions/3ceaad2315a0_.py
mjmatta/spark-se-assessment
98d80ced6c6ed3ff499bda7fa0d0d65af5a4e58b
[ "MIT" ]
null
null
null
migrations/versions/3ceaad2315a0_.py
mjmatta/spark-se-assessment
98d80ced6c6ed3ff499bda7fa0d0d65af5a4e58b
[ "MIT" ]
null
null
null
"""empty message Revision ID: 3ceaad2315a0 Revises: Create Date: 2022-01-25 19:48:47.385708 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3ceaad2315a0' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
25.945946
70
0.679167
796138fa60f26421f2dcc3070876990f1d91b876
2,616
py
Python
preprocess_MVSEC_flow_1.py
Hazeliii/E-GMA-master
8ed41079bfaf2834a0df991739699ec80704f1b6
[ "MIT" ]
null
null
null
preprocess_MVSEC_flow_1.py
Hazeliii/E-GMA-master
8ed41079bfaf2834a0df991739699ec80704f1b6
[ "MIT" ]
null
null
null
preprocess_MVSEC_flow_1.py
Hazeliii/E-GMA-master
8ed41079bfaf2834a0df991739699ec80704f1b6
[ "MIT" ]
null
null
null
import numpy as np import os from decimal import * import h5py import pandas as pd def read_events(events_pth): print('read_events Begin') events_h5 = h5py.File(events_pth) # image_ts = np.loadtxt(image_time_pth) # show(events_h5) events_left = events_h5['davis']['left']['events'] xs = list() ...
31.518072
80
0.581422
79613981253baa0e3b2a837ee1618afcb378a316
5,848
py
Python
tests/plugins/ibm_cloud_iam_test.py
flyingbarron/detect-secrets
5f9887179794ce037d97c1b343623eb5937ce800
[ "Apache-2.0" ]
null
null
null
tests/plugins/ibm_cloud_iam_test.py
flyingbarron/detect-secrets
5f9887179794ce037d97c1b343623eb5937ce800
[ "Apache-2.0" ]
null
null
null
tests/plugins/ibm_cloud_iam_test.py
flyingbarron/detect-secrets
5f9887179794ce037d97c1b343623eb5937ce800
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import pytest import responses from detect_secrets.core.constants import VerifiedResult from detect_secrets.plugins.ibm_cloud_iam import IbmCloudIamDetector CLOUD_IAM_KEY = 'abcd1234abcd1234abcd1234ABCD1234ABCD1234--__' CLOUD_IAM_KEY_BYTES = b'abcd1234abcd1234abcd1234ABCD1234A...
46.412698
97
0.656122
7961399e7c50c236ea384a66828ab57f76ecc7c4
4,845
py
Python
ceph.py
fabian-z/virt-rbd-backup
5187f99a06562d8d8b2bba06a6cd89643face6ca
[ "Apache-2.0" ]
null
null
null
ceph.py
fabian-z/virt-rbd-backup
5187f99a06562d8d8b2bba06a6cd89643face6ca
[ "Apache-2.0" ]
null
null
null
ceph.py
fabian-z/virt-rbd-backup
5187f99a06562d8d8b2bba06a6cd89643face6ca
[ "Apache-2.0" ]
1
2022-03-08T09:24:43.000Z
2022-03-08T09:24:43.000Z
"""ceph module provides RADOS and RBD connections, snapshot management and I/O functionality""" from dataclasses import dataclass import base64 import rados import rbd class CephConnectionException(Exception): """Exception raised if method is called on a closed or invalid Ceph property""" pass @dataclass c...
36.984733
99
0.653251
79613acb6cbe46ad970d19a3d33a85e9c6c9b870
6,347
py
Python
scripts/sfm_toolkits/ezxr_sfm/trajectory_tools/generate_gt2d_by_ranges.py
TxT1212/colmap
ee87e7c8b9ee7541be62f45121febd431be134a9
[ "BSD-3-Clause" ]
null
null
null
scripts/sfm_toolkits/ezxr_sfm/trajectory_tools/generate_gt2d_by_ranges.py
TxT1212/colmap
ee87e7c8b9ee7541be62f45121febd431be134a9
[ "BSD-3-Clause" ]
null
null
null
scripts/sfm_toolkits/ezxr_sfm/trajectory_tools/generate_gt2d_by_ranges.py
TxT1212/colmap
ee87e7c8b9ee7541be62f45121febd431be134a9
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import os import sys import argparse import numpy as np import random def random_positions(): total_count = 20 sample_range = [-5.0, 5.0] positions_2d = np.zeros((total_count, 2)) for i in range(total_count): x = random.uniform(sample_range[0], sample_range[1]) y = rando...
31.894472
105
0.601071
79613b2645d82dc5f35e63c3c2f303c0e31df3f0
3,635
py
Python
smartcontract/venv/lib/python3.6/site-packages/neocore/Cryptography/Helper.py
simplitech/neoinvoice
bc9a0217858938b49f99fef13b3439f4a537a5f5
[ "MIT" ]
1
2021-06-19T04:06:56.000Z
2021-06-19T04:06:56.000Z
smartcontract/venv/lib/python3.6/site-packages/neocore/Cryptography/Helper.py
simplitech/neoinvoice
bc9a0217858938b49f99fef13b3439f4a537a5f5
[ "MIT" ]
null
null
null
smartcontract/venv/lib/python3.6/site-packages/neocore/Cryptography/Helper.py
simplitech/neoinvoice
bc9a0217858938b49f99fef13b3439f4a537a5f5
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ Description: Cryptography Helper Usage: from neocore.Cryptography.Helper import * """ from bitcoin import * import os import time import random import hashlib import binascii import base58 long = int ADDRESS_VERSION = 23 def double_sha256(ba): """ Perform two SHA256 opera...
19.543011
69
0.6011
79613b7fa48ee0b7cd6ad86c197fb54d44721a40
806
py
Python
test/sampling/test_masking.py
kluge-ai/docanchors
15108f8fb1bab9f356ef7ca8f5a21a1ff6bd08ba
[ "Apache-2.0" ]
null
null
null
test/sampling/test_masking.py
kluge-ai/docanchors
15108f8fb1bab9f356ef7ca8f5a21a1ff6bd08ba
[ "Apache-2.0" ]
null
null
null
test/sampling/test_masking.py
kluge-ai/docanchors
15108f8fb1bab9f356ef7ca8f5a21a1ff6bd08ba
[ "Apache-2.0" ]
null
null
null
import numpy as np from docanchors.sampling.masking import RandomUniformMask, RandomChunkMask, RandomNonUniformMask def test_zero_perturbation_rate(subtests): for rmask in [RandomUniformMask, RandomChunkMask]: with subtests.test(rmask=rmask): m = rmask() m.perturbation_rate = 0.0...
28.785714
96
0.627792
79613bfc38ad488ec35d0aa8d0afb910187d738d
4,496
py
Python
contrib/testgen/gen_base58_test_vectors.py
sarielsaz/LiteCoin
4b827d08a0a45f7ed78f596c0fed78e059d35cf6
[ "MIT" ]
null
null
null
contrib/testgen/gen_base58_test_vectors.py
sarielsaz/LiteCoin
4b827d08a0a45f7ed78f596c0fed78e059d35cf6
[ "MIT" ]
null
null
null
contrib/testgen/gen_base58_test_vectors.py
sarielsaz/LiteCoin
4b827d08a0a45f7ed78f596c0fed78e059d35cf6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012-2016 The Sarielsaz Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Generate valid and invalid base58 address and private key test vectors. Usage: gen_base58_test_...
34.852713
97
0.614101
79613c1a5457a0247c8d8df3cc89b42c12104ad0
3,884
py
Python
mdetr/datasets/clevrref.py
rstrudel/mdetr
177724cc60c7d63628dd14a5f26b21ea2cea45e3
[ "Apache-2.0" ]
null
null
null
mdetr/datasets/clevrref.py
rstrudel/mdetr
177724cc60c7d63628dd14a5f26b21ea2cea45e3
[ "Apache-2.0" ]
null
null
null
mdetr/datasets/clevrref.py
rstrudel/mdetr
177724cc60c7d63628dd14a5f26b21ea2cea45e3
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Aishwarya Kamath & Nicolas Carion. Licensed under the Apache License 2.0. All Rights Reserved """Dataset and evaluator for CLEVR-Ref+""" import copy from collections import defaultdict from pathlib import Path import torch import torch.utils.data from transformers import AutoTokenizer import mdetr.uti...
34.990991
109
0.589856
79613c999ad9f13eb9a7e9581694e56e487d174b
10,183
py
Python
dvc/repo/index.py
dataversioncontrol/dataversioncontrol
e6db6ffc8915ab21e9bd8a973ace22c26636268c
[ "Apache-2.0" ]
null
null
null
dvc/repo/index.py
dataversioncontrol/dataversioncontrol
e6db6ffc8915ab21e9bd8a973ace22c26636268c
[ "Apache-2.0" ]
null
null
null
dvc/repo/index.py
dataversioncontrol/dataversioncontrol
e6db6ffc8915ab21e9bd8a973ace22c26636268c
[ "Apache-2.0" ]
null
null
null
from contextlib import suppress from typing import ( TYPE_CHECKING, Callable, Dict, Iterable, Iterator, List, Optional, Sequence, Set, ) from funcy import cached_property, nullcontext from dvc.utils import dict_md5 if TYPE_CHECKING: from networkx import DiGraph from pygtri...
31.429012
79
0.613081
79613df6fe3c0846bbd3b5a3756455adab53e176
3,021
py
Python
aries_cloudagent/protocols/out_of_band/v1_0/models/invitation.py
decentralised-dataexchange/aries-cloudagent-python
3d7cdd3c22e0ddb794fd547ce4f567caef75101a
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/protocols/out_of_band/v1_0/models/invitation.py
decentralised-dataexchange/aries-cloudagent-python
3d7cdd3c22e0ddb794fd547ce4f567caef75101a
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/protocols/out_of_band/v1_0/models/invitation.py
decentralised-dataexchange/aries-cloudagent-python
3d7cdd3c22e0ddb794fd547ce4f567caef75101a
[ "Apache-2.0" ]
1
2021-01-15T08:45:02.000Z
2021-01-15T08:45:02.000Z
"""Record for out of band invitations.""" from typing import Any from marshmallow import fields from .....messaging.models.base_record import BaseExchangeRecord, BaseExchangeSchema from .....messaging.valid import UUIDFour class InvitationRecord(BaseExchangeRecord): """Represents an out of band invitation reco...
27.715596
84
0.616352
79613fda24e3e7eef690dffb6bcd64affdba3ef2
3,263
py
Python
datashape/tests/test_str.py
quantopian-enterprise/datashape
972a7998a49dbabf852f9520858d663382b7a84d
[ "BSD-2-Clause" ]
140
2015-08-30T00:03:47.000Z
2022-03-17T17:50:18.000Z
datashape/tests/test_str.py
quantopian-enterprise/datashape
972a7998a49dbabf852f9520858d663382b7a84d
[ "BSD-2-Clause" ]
67
2015-08-20T12:41:02.000Z
2021-04-02T11:09:50.000Z
datashape/tests/test_str.py
quantopian-enterprise/datashape
972a7998a49dbabf852f9520858d663382b7a84d
[ "BSD-2-Clause" ]
48
2015-08-21T21:24:32.000Z
2022-03-11T05:19:48.000Z
import unittest import pytest import datashape from datashape import dshape, DataShapeSyntaxError class TestDataShapeStr(unittest.TestCase): def test_primitive_measure_str(self): self.assertEqual(str(datashape.int8), 'int8') self.assertEqual(str(datashape.int16), 'int16') self.assertEqual...
45.957746
74
0.558688
7961402f10804780590916aedda8ce2ea3729a2d
1,322
py
Python
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/modules/network_access_policy_set_reset_hitcount.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/modules/network_access_policy_set_reset_hitcount.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/modules/network_access_policy_set_reset_hitcount.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2021, Cisco Systems # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: network_access_policy_set_reset_hitcount short_description: Resource module for Network Access Policy Set Reset Hi...
27.541667
95
0.731467
7961408430c3a4feb1456277c48bf46221c3c424
7,166
py
Python
emat/workbench/em_framework/util.py
AndyGESB159/tmip-emat
de69538428a162962223c1427482533c49d67dcb
[ "BSD-3-Clause" ]
1
2020-08-27T18:06:10.000Z
2020-08-27T18:06:10.000Z
emat/workbench/em_framework/util.py
AndyGESB159/tmip-emat
de69538428a162962223c1427482533c49d67dcb
[ "BSD-3-Clause" ]
null
null
null
emat/workbench/em_framework/util.py
AndyGESB159/tmip-emat
de69538428a162962223c1427482533c49d67dcb
[ "BSD-3-Clause" ]
null
null
null
'''utilities used throughout em_framework''' import copy from collections import OrderedDict from orderedmultidict import omdict from collections import UserDict from collections.abc import MutableMapping # @UnusedImport import itertools import six from ..util import EMAError # from .parameters import Parameter #...
27.041509
78
0.609685
7961421f192cadf95c4ee9f3fdd2617f397fc915
6,914
py
Python
clipmanager/ui/dialogs/settings.py
scottwernervt/clipmanager
34e9f45f7d9a3cef423d9d54df5d220aed5fd821
[ "BSD-4-Clause" ]
12
2016-02-11T04:14:35.000Z
2021-12-16T08:13:05.000Z
clipmanager/ui/dialogs/settings.py
scottwernervt/clipmanager
34e9f45f7d9a3cef423d9d54df5d220aed5fd821
[ "BSD-4-Clause" ]
11
2018-02-01T21:20:08.000Z
2018-07-20T16:02:01.000Z
clipmanager/ui/dialogs/settings.py
scottwernervt/clipmanager
34e9f45f7d9a3cef423d9d54df5d220aed5fd821
[ "BSD-4-Clause" ]
null
null
null
from PySide.QtCore import Qt, Slot from PySide.QtGui import ( QCheckBox, QComboBox, QDialog, QDialogButtonBox, QFormLayout, QGroupBox, QKeySequence, QLineEdit, QSizePolicy, QSpinBox, QVBoxLayout, ) from clipmanager.settings import Settings from clipmanager.ui.icons import ge...
31.285068
132
0.65823
7961425634d3bd6b64b0d003d48faf0a996101a3
1,054
py
Python
compress_fasttext/decomposition.py
avidale/compress-fasttext
838ab153191c2a4959ba0c1d003ea09166b34b1e
[ "MIT" ]
111
2020-02-22T09:07:54.000Z
2022-03-25T02:23:41.000Z
compress_fasttext/decomposition.py
Smithmayowa20/compress-fasttext
838ab153191c2a4959ba0c1d003ea09166b34b1e
[ "MIT" ]
9
2020-02-28T16:04:11.000Z
2022-02-02T14:31:11.000Z
compress_fasttext/decomposition.py
Smithmayowa20/compress-fasttext
838ab153191c2a4959ba0c1d003ea09166b34b1e
[ "MIT" ]
9
2020-02-24T10:58:12.000Z
2022-03-04T15:41:35.000Z
import numpy as np try: from sklearn.decomposition import TruncatedSVD except ImportError: # SVD is not the core feature of this library, so we keep this dependency optional TruncatedSVD = None class DecomposedMatrix: def __init__(self, compressed, components): self.compressed = compressed ...
31
111
0.690702
7961428f60d2678d53edc4ce8d8dd258691bc12a
4,448
py
Python
preprocess.py
magnusja/ConvE
f254263e8766d494afb43ca92679344c79d67a38
[ "Apache-2.0" ]
15
2017-08-27T19:06:15.000Z
2021-12-22T11:37:03.000Z
preprocess.py
magnusja/ConvE
f254263e8766d494afb43ca92679344c79d67a38
[ "Apache-2.0" ]
3
2018-05-21T13:25:57.000Z
2021-07-16T18:57:06.000Z
preprocess.py
magnusja/ConvE
f254263e8766d494afb43ca92679344c79d67a38
[ "Apache-2.0" ]
9
2018-05-22T01:43:25.000Z
2021-12-22T11:37:06.000Z
import sys import os import numpy as np import csv import pickle import argparse # s = subject # r = relation # o = object from util import AttributeDict def read_data(file_path): s_dict = dict() with open(file_path) as csv_file: csv_reader = csv.reader(csv_file, delimiter='\t') for s, r, o ...
28.512821
107
0.5625
796143246519040d2afb63d43b5d6d7fadcea739
18,335
py
Python
scripts/annotation/parallel_augustus.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
10
2015-04-28T14:15:04.000Z
2021-03-15T00:07:38.000Z
scripts/annotation/parallel_augustus.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
null
null
null
scripts/annotation/parallel_augustus.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
6
2017-03-16T22:38:41.000Z
2021-08-11T00:22:52.000Z
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import os import shutil import argparse from RouToolPa.Tools.BLAST import BLASTp from RouToolPa.Tools.HMMER import HMMER3 from RouToolPa.Tools.Bedtools import Intersect from RouToolPa.Tools.Annotation import AUGUSTUS from RouToolPa.Tools.Expression import Gffread fr...
64.333333
197
0.712681
796143ab2bda21395c2308e4625d9ec7dc47ef4c
90,726
bzl
Python
tensorflow/tensorflow.bzl
Xuyuanjia2014/tensorflow-2.2.0-race
e4db7d311354222bf43758ee04e5251a773c870c
[ "Apache-2.0" ]
null
null
null
tensorflow/tensorflow.bzl
Xuyuanjia2014/tensorflow-2.2.0-race
e4db7d311354222bf43758ee04e5251a773c870c
[ "Apache-2.0" ]
1
2022-02-10T01:54:56.000Z
2022-02-10T01:54:56.000Z
tensorflow/tensorflow.bzl
Xuyuanjia2014/tensorflow-2.2.0-race
e4db7d311354222bf43758ee04e5251a773c870c
[ "Apache-2.0" ]
null
null
null
# Return the options to use for a C++ library or binary build. # Uses the ":optmode" config_setting to pick the options. load( "//tensorflow/core/platform:build_config_root.bzl", "if_dynamic_kernels", "if_static", "register_extension_info", "tf_additional_grpc_deps_py", "tf_additional_xla_deps_p...
33.087527
294
0.590084
796144078a072c52bb5c8aa94619bfd968117ec4
3,817
py
Python
dataset/MultilabelLargeDataset.py
todorokit/tensorflow_cnn_image_sample
5f8dee00eebcbada9e03de7742026b2a37963860
[ "Apache-1.1" ]
null
null
null
dataset/MultilabelLargeDataset.py
todorokit/tensorflow_cnn_image_sample
5f8dee00eebcbada9e03de7742026b2a37963860
[ "Apache-1.1" ]
null
null
null
dataset/MultilabelLargeDataset.py
todorokit/tensorflow_cnn_image_sample
5f8dee00eebcbada9e03de7742026b2a37963860
[ "Apache-1.1" ]
null
null
null
import tensorflow as tf import numpy as np from dataset.AbstractDataset import AbstractDataset import config.baseConfig as baseConfig class MultilabelLargeDataset(AbstractDataset): def __init__(self, csvpath, config, batch_size, cache): def makeImage(img): shape = tf.shape(img) hei...
41.48913
159
0.560126
796146d17fa2220eb6de4de794de2fd0e80857c8
8,480
py
Python
src/cfnlint/decode/node.py
dmorel/cfn-python-lint
a21c58a7c39303fd5f38df2088a239c1eb58afd7
[ "MIT-0" ]
null
null
null
src/cfnlint/decode/node.py
dmorel/cfn-python-lint
a21c58a7c39303fd5f38df2088a239c1eb58afd7
[ "MIT-0" ]
null
null
null
src/cfnlint/decode/node.py
dmorel/cfn-python-lint
a21c58a7c39303fd5f38df2088a239c1eb58afd7
[ "MIT-0" ]
2
2019-06-21T13:17:02.000Z
2020-02-29T08:11:00.000Z
""" Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to ...
37.857143
94
0.515802
79614808cab2b190c92f385ffe01461d5612a5b4
2,795
py
Python
data/cirq_new/cirq_program/startCirq_pragma612.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/cirq_new/cirq_program/startCirq_pragma612.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/cirq_new/cirq_program/startCirq_pragma612.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=20 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np class Opty(cirq.PointOptimizer): def optimization_at( ...
32.882353
92
0.643649
796149f2098b6c8f849200fabe9ffdf5bcc5fb8d
3,046
py
Python
queue_/queue_test.py
Nastya1405/programming-2021-19fpl
fdc6e7bf64f019456c9bc5ac753ae482314d8c49
[ "MIT" ]
null
null
null
queue_/queue_test.py
Nastya1405/programming-2021-19fpl
fdc6e7bf64f019456c9bc5ac753ae482314d8c49
[ "MIT" ]
null
null
null
queue_/queue_test.py
Nastya1405/programming-2021-19fpl
fdc6e7bf64f019456c9bc5ac753ae482314d8c49
[ "MIT" ]
null
null
null
""" Programming for linguists Tests for Queue class. """ import unittest from queue_.queue_ import Queue_ #pylint:skip-file @unittest.skip class QueueTestCase(unittest.TestCase): """ This Case of tests checks the functionality of the implementation of Queue """ def test_new_queue_is_empty(self): ...
28.46729
85
0.580433
79614a430f9e404d21cb373ab7ceeacc9351b5c3
9,945
py
Python
eval/eval_inloc_extract.py
fyviezhao/sparse-ncnet
8e945afca830b78bd3c72c7aaf8171571db3d676
[ "MIT" ]
148
2020-04-18T03:47:34.000Z
2022-03-21T04:01:28.000Z
eval/eval_inloc_extract.py
fyviezhao/sparse-ncnet
8e945afca830b78bd3c72c7aaf8171571db3d676
[ "MIT" ]
6
2020-06-09T08:48:22.000Z
2021-06-21T13:39:56.000Z
eval/eval_inloc_extract.py
fyviezhao/sparse-ncnet
8e945afca830b78bd3c72c7aaf8171571db3d676
[ "MIT" ]
21
2020-04-23T09:33:52.000Z
2022-02-24T20:53:01.000Z
import faiss import torch import torch.nn as nn from torch.autograd import Variable import os from os.path import exists, join, basename from collections import OrderedDict import sys sys.path.append('..') from lib.model import ImMatchNet, MutualMatching from lib.normalization import imreadth, resize, normalize from...
38.546512
156
0.623429
79614b5f1927d3b0bcda8d08998824dc75b178d2
203
py
Python
request_id/apps.py
seanodonnell/django-request-id
0850e04e91b616b9aa8443959edf4a73a62289e4
[ "MIT" ]
27
2015-06-03T15:10:49.000Z
2022-03-23T12:07:16.000Z
request_id/apps.py
seanodonnell/django-request-id
0850e04e91b616b9aa8443959edf4a73a62289e4
[ "MIT" ]
7
2016-10-25T12:06:36.000Z
2021-02-26T18:46:21.000Z
request_id/apps.py
seanodonnell/django-request-id
0850e04e91b616b9aa8443959edf4a73a62289e4
[ "MIT" ]
12
2016-03-21T19:52:30.000Z
2022-03-22T10:47:04.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from django.apps import AppConfig class RequestIdConfig(AppConfig): name = 'request_id'
20.3
82
0.763547
79614ba0a68920f59f1fc29d150d806f4ba24d0c
1,515
py
Python
setup.py
bluedistro/Nocnus
3801f67ebb63fa265f4c59c9bc4982f81bf24840
[ "MIT" ]
2
2020-01-16T21:16:44.000Z
2020-01-18T23:12:35.000Z
setup.py
bluedistro/Nocnus
3801f67ebb63fa265f4c59c9bc4982f81bf24840
[ "MIT" ]
null
null
null
setup.py
bluedistro/Nocnus
3801f67ebb63fa265f4c59c9bc4982f81bf24840
[ "MIT" ]
null
null
null
import setuptools SHORT_DESCRIPTION = """ Nocnus is a basic Pymongo wrapper for quickly implementing CRUD MongoDB operations. """.strip() LONG_DESCRIPTION = """ Nocnus is a simple Python library built on top of Pymongo to simplify just the basic MongoDB CRUD operations and save some DB setup time. Why the name Nocn...
35.232558
84
0.687129
79614c406494b8e23df6fd8ada7c3249424037a6
3,856
py
Python
tests/extract_data/test_output.py
lvps/peracotta
f841d68738f1012ba2ad78242d326eff607a81b0
[ "MIT" ]
null
null
null
tests/extract_data/test_output.py
lvps/peracotta
f841d68738f1012ba2ad78242d326eff607a81b0
[ "MIT" ]
null
null
null
tests/extract_data/test_output.py
lvps/peracotta
f841d68738f1012ba2ad78242d326eff607a81b0
[ "MIT" ]
null
null
null
from extract_data import extract_and_collect_data_from_generated_files as get_result import os import pytest def is_product(component: dict): # check if brand and model exist if "brand" not in component.keys() or "model" not in component.keys(): return False # check if brand or model has a not val...
34.738739
117
0.614108
79614de542dbc7555c8aa38515719e5c2f6320ff
19,035
py
Python
intersight/models/softwarerepository_catalog.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
intersight/models/softwarerepository_catalog.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
intersight/models/softwarerepository_catalog.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight OpenAPI specification. The Cisco Intersight OpenAPI specification. OpenAPI spec version: 1.0.9-1461 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class Softwarerepositor...
34.862637
738
0.653008
79614de9da2f97de7dab203ec8ff56f3f423a6be
1,434
py
Python
api/migrations/0010_auto_20201128_0259.py
Zaysevkun/RosSetiBackend
32dd4cfcc4bbc53d060ec271ac7bde6894073f7c
[ "MIT" ]
null
null
null
api/migrations/0010_auto_20201128_0259.py
Zaysevkun/RosSetiBackend
32dd4cfcc4bbc53d060ec271ac7bde6894073f7c
[ "MIT" ]
null
null
null
api/migrations/0010_auto_20201128_0259.py
Zaysevkun/RosSetiBackend
32dd4cfcc4bbc53d060ec271ac7bde6894073f7c
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-28 02:59 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0009_create_users'), ] operations = [ migrations.AlterModelOptions( name='request', ...
32.590909
114
0.595537
79614dfdeeaf49380dcd5fb569736d6337170700
12,386
py
Python
code/python/Symbology/v1/fds/sdk/Symbology/model/ticker_history_translation_request.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/Symbology/v1/fds/sdk/Symbology/model/ticker_history_translation_request.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/Symbology/v1/fds/sdk/Symbology/model/ticker_history_translation_request.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet Symbology API The FactSet Symbology API provides symbol resolution services, allowing clients to translate market identifiers into various symbology types. various market symbology types such as, FactSet Permanent Identifiers, CUSIP, ISIN, SEDOL, Tickers, and Bloomberg FIGIs. Factset's Symbology...
45.04
705
0.584612
79614e4528afb50d32005728c5a97d2fc326b40d
46,182
py
Python
cinder/volume/drivers/netapp/dataontap/nfs_base.py
cloudification-io/cinder
23d76e01f2b4f3771b57fb287084a4884238b827
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/netapp/dataontap/nfs_base.py
cloudification-io/cinder
23d76e01f2b4f3771b57fb287084a4884238b827
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/netapp/dataontap/nfs_base.py
cloudification-io/cinder
23d76e01f2b4f3771b57fb287084a4884238b827
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 NetApp, Inc. All rights reserved. # Copyright (c) 2014 Ben Swartzlander. All rights reserved. # Copyright (c) 2014 Navneet Singh. All rights reserved. # Copyright (c) 2014 Clinton Knight. All rights reserved. # Copyright (c) 2014 Alex Meade. All rights reserved. # Copyright (c) 2014 Bob Callaw...
43.120448
79
0.587263
796150064a9d941525c15cbd217f326c5d1cf124
13,521
py
Python
other_codes/tsp.py
deno750/RO2
3ef6fa7ab261548f96db3d5a82438f1741fa06a7
[ "MIT" ]
2
2021-03-06T13:33:46.000Z
2021-09-25T00:15:49.000Z
other_codes/tsp.py
deno750/TSP_Optimization
3ef6fa7ab261548f96db3d5a82438f1741fa06a7
[ "MIT" ]
null
null
null
other_codes/tsp.py
deno750/TSP_Optimization
3ef6fa7ab261548f96db3d5a82438f1741fa06a7
[ "MIT" ]
null
null
null
""" Execute: python tsp.py -f filename.tsp -m METHOD Where METHOD: - GREEDY - GREEDY_2OPT - GENETIC Other options: -s seed -t time limit -v verbose """ import argparse import matplotlib.pyplot as plt import math import time import random from heapq import * #TSP instance class instance: def __init__(se...
26.511765
98
0.608017
7961507d965c8e2ca7f633e77bc34b2863c5b872
6,713
py
Python
donkeycar/templates/donkey2.py
jnuyens/donkeycar
3f7e3dd4442a15625be8cdc9ac3fd0e8dbdc881d
[ "MIT" ]
null
null
null
donkeycar/templates/donkey2.py
jnuyens/donkeycar
3f7e3dd4442a15625be8cdc9ac3fd0e8dbdc881d
[ "MIT" ]
null
null
null
donkeycar/templates/donkey2.py
jnuyens/donkeycar
3f7e3dd4442a15625be8cdc9ac3fd0e8dbdc881d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Scripts to drive a donkey 2 car and train a model for it. Usage: manage.py (drive) [--model=<model>] [--js] [--chaos] manage.py (train) [--tub=<tub1,tub2,..tubn>] (--model=<model>) [--base_model=<base_model>] [--no_cache] Options: -h --help Show this screen. --tub TU...
35.331579
108
0.646209
7961511a256c73b12f6fbb5041607da21147f4fc
16,883
py
Python
conf/urls_conf.py
zzbsss/12306
39a47a51f05158246f12c5945a7ac7b1cea54218
[ "MIT" ]
2
2020-05-05T12:37:21.000Z
2021-10-16T11:38:23.000Z
conf/urls_conf.py
zzbsss/12306
39a47a51f05158246f12c5945a7ac7b1cea54218
[ "MIT" ]
null
null
null
conf/urls_conf.py
zzbsss/12306
39a47a51f05158246f12c5945a7ac7b1cea54218
[ "MIT" ]
null
null
null
import random import time loginUrls = { 'normal': { 'index': { 'url': r'https://www.12306.cn/index/', 'method': 'GET', 'headers': { 'Accept': r'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Upgrade-Insecure-Requests': ...
38.990762
632
0.512113
796151bee98cea6ab2ae18fb7ccb3a85438d7a9b
1,193
py
Python
openbci/plugins/neuralnet.py
TheKindlerofWildfires/OpenBCI_Python
0ca09a406517675172a782064bdc77913d23ec19
[ "MIT" ]
null
null
null
openbci/plugins/neuralnet.py
TheKindlerofWildfires/OpenBCI_Python
0ca09a406517675172a782064bdc77913d23ec19
[ "MIT" ]
null
null
null
openbci/plugins/neuralnet.py
TheKindlerofWildfires/OpenBCI_Python
0ca09a406517675172a782064bdc77913d23ec19
[ "MIT" ]
null
null
null
import plugin_interface as plugintypes class PluginNeuralnet(plugintypes.IPluginExtended): def activate(self): print("Neuralnet activated") # called with each new sample def __call__(self, sample): if sample: # print impedance if supported if self.imp_channels > 0: sample_string = "ID: %f\n...
29.825
141
0.637888
7961521b1a11b49ceb12eebe5e0c66a13e78154c
1,072
py
Python
cpr_default/scripts/methods.py
EfMichalis/-home-efthmis-Application-of-Convolutional-Neural-Networks-Car-Plate-Recognition
bf351f98fe66ea63bc9ed1251514f25f0b8ef022
[ "MIT" ]
7
2018-06-23T12:16:25.000Z
2020-03-18T15:38:41.000Z
cpr_default/scripts/methods.py
EfMichalis/-home-efthmis-Application-of-Convolutional-Neural-Networks-Car-Plate-Recognition
bf351f98fe66ea63bc9ed1251514f25f0b8ef022
[ "MIT" ]
null
null
null
cpr_default/scripts/methods.py
EfMichalis/-home-efthmis-Application-of-Convolutional-Neural-Networks-Car-Plate-Recognition
bf351f98fe66ea63bc9ed1251514f25f0b8ef022
[ "MIT" ]
4
2018-06-11T22:44:38.000Z
2020-01-23T06:57:54.000Z
# Disclaimer: # This file is part of the undergraduate thesis of Mr. Efthymis Michalis. # The thesis was developed under the supervision of Assistant Prof. Aggelos # Pikrakis, in the Department of Informatics, School of ICT, University of # Piraeus, Greece. # methods.py import numpy as np import matplotlib.pyplot as p...
28.972973
75
0.650187
796152a6248f8cec452278362ccb638c60fc824a
1,820
py
Python
aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/UpdateK8sApplicationBaseInfoRequest.py
hetw/aliyun-openapi-python-sdk
7443eacee9fbbaa93c7975c6dbec92d3c364c577
[ "Apache-2.0" ]
1
2020-12-05T03:03:46.000Z
2020-12-05T03:03:46.000Z
aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/UpdateK8sApplicationBaseInfoRequest.py
hetw/aliyun-openapi-python-sdk
7443eacee9fbbaa93c7975c6dbec92d3c364c577
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/UpdateK8sApplicationBaseInfoRequest.py
hetw/aliyun-openapi-python-sdk
7443eacee9fbbaa93c7975c6dbec92d3c364c577
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.686275
89
0.763187
796153e0985d1a9f743bba0486b93864bd5fa836
1,086
py
Python
demo/test_cross_redis.py
Kilerd/gear
aea14e93c4745da616607f21bf1649fcff7846b6
[ "MIT" ]
null
null
null
demo/test_cross_redis.py
Kilerd/gear
aea14e93c4745da616607f21bf1649fcff7846b6
[ "MIT" ]
null
null
null
demo/test_cross_redis.py
Kilerd/gear
aea14e93c4745da616607f21bf1649fcff7846b6
[ "MIT" ]
null
null
null
from gearpy import Manager, RedisBroker, Task from gearpy.task import BasicTask from gearpy.proxy import ProxyPool import motor.motor_asyncio import json import asyncio import random manager = Manager(broker=RedisBroker, args=('localhost', 6400, 0)) # 建立管理员实例 @manager.handle('1', worker=10) class TestTask(BasicT...
21.294118
77
0.637201
796154a43debcd46cd4c15bb00b2a54fa23e2e59
2,960
py
Python
djangotutorial/settings.py
hackersandslackers/django-intro-tutorial
7ad552a762a858e12e2eb29bce1a2a37b6a7a10b
[ "MIT" ]
11
2019-12-05T23:29:57.000Z
2021-07-25T09:13:50.000Z
djangotutorial/settings.py
hackersandslackers/django-intro-tutorial
7ad552a762a858e12e2eb29bce1a2a37b6a7a10b
[ "MIT" ]
26
2020-06-08T13:18:04.000Z
2021-09-22T18:12:54.000Z
djangotutorial/settings.py
hackersandslackers/django-intro-tutorial
7ad552a762a858e12e2eb29bce1a2a37b6a7a10b
[ "MIT" ]
5
2020-03-26T18:40:42.000Z
2021-07-25T09:13:52.000Z
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) PROJECT_DIR = os.path.abspath(os.path.dirname(__file__)) # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.environ.get('SECRET_KEY')...
30.204082
90
0.668581
79615500b8be3cf8b77bc054a5226ec1c917646f
120
py
Python
tests/xmltests.py
kuehnram/StrucTree
d3d9a717ce96756c4f1c43bd72af0e089ffcfec1
[ "MIT" ]
null
null
null
tests/xmltests.py
kuehnram/StrucTree
d3d9a717ce96756c4f1c43bd72af0e089ffcfec1
[ "MIT" ]
1
2021-12-18T12:48:48.000Z
2021-12-18T12:48:48.000Z
tests/xmltests.py
kuehnram/StrucTree
d3d9a717ce96756c4f1c43bd72af0e089ffcfec1
[ "MIT" ]
null
null
null
import xmlparser from printmodel import print_model model = xmlparser.build_model("tests/test.xml") print_model(model)
20
47
0.825
796155b5ef5269159dcea59c3329ab8b49b861cc
2,300
py
Python
tests/test_utils.py
lvoegtlin/pocr
775de8a9a687cddc9c8c6410037e53ab6c7ab4b3
[ "MIT" ]
6
2019-09-30T06:41:22.000Z
2019-11-06T12:20:47.000Z
tests/test_utils.py
lvoegtlin/pocr
775de8a9a687cddc9c8c6410037e53ab6c7ab4b3
[ "MIT" ]
1
2019-11-01T10:47:03.000Z
2019-11-04T14:24:59.000Z
tests/test_utils.py
lvoegtlin/cobra
bd27cc12367e45e11e91f53d24f7c18f998718a3
[ "MIT" ]
2
2019-10-31T15:29:17.000Z
2019-11-01T10:24:21.000Z
from src.cobra.utils.utils import first_usage, check_git_pull, create_files_folders, delete_path from src.cobra.utils.constants import Paths class TestUtils: def test_not_first_usage(self, tmp_path, monkeypatch): cobra_home_dir = tmp_path / ".cobra" cobra_home_dir.mkdir() monkeypatch.setat...
38.983051
96
0.682609
796155ebce98e3de5f5a17a3e462095a478ead6b
1,007
py
Python
gitrepo/utils.py
wmariuss/gitrepo
96c6a8650ce6a598fee5f6a4c8ccddd95d4ac442
[ "Apache-2.0" ]
null
null
null
gitrepo/utils.py
wmariuss/gitrepo
96c6a8650ce6a598fee5f6a4c8ccddd95d4ac442
[ "Apache-2.0" ]
null
null
null
gitrepo/utils.py
wmariuss/gitrepo
96c6a8650ce6a598fee5f6a4c8ccddd95d4ac442
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2016 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
27.216216
78
0.684211
7961576172b177d04346ba3c994e379d0df0c0f1
459
py
Python
tfmini/__init__.py
MomsFriendlyRobotCompany/tfmini
98a8b8ec2b16cf2ad74a36d45f6a57cc9c14cf85
[ "MIT" ]
5
2018-05-16T09:58:42.000Z
2021-09-13T15:09:12.000Z
tfmini/__init__.py
silver2row/tfmini
fa92ce58b9978c1fdc0086cfd1039d27e7caa48a
[ "MIT" ]
2
2021-05-04T12:03:03.000Z
2021-08-22T23:36:59.000Z
tfmini/__init__.py
silver2row/tfmini
fa92ce58b9978c1fdc0086cfd1039d27e7caa48a
[ "MIT" ]
5
2019-01-28T02:55:20.000Z
2021-10-19T15:11:15.000Z
# -*- coding: utf-8 -*- ############################################## # The MIT License (MIT) # Copyright (c) 2018 Kevin Walchko # see LICENSE for full details ############################################## from .tfmini import TFmini try: from importlib.metadata import version # type: ignore except ImportError: ...
27
57
0.581699
79615792a509add7bb2920be7f92da7a0c45a8c8
2,896
py
Python
test/functional/interface_bitcoin_cli.py
MichaelHDesigns/HodlCash
c3ca85c436ba40afadfda11db207068a16527379
[ "MIT" ]
null
null
null
test/functional/interface_bitcoin_cli.py
MichaelHDesigns/HodlCash
c3ca85c436ba40afadfda11db207068a16527379
[ "MIT" ]
null
null
null
test/functional/interface_bitcoin_cli.py
MichaelHDesigns/HodlCash
c3ca85c436ba40afadfda11db207068a16527379
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 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 hodlcash-cli""" from test_framework.test_framework import HodlCashTestFramework from test_framework.uti...
49.084746
108
0.715815
796159846f9a333f8d064db370178d3447900b56
6,622
py
Python
v1/api/resources.py
Edward-K1/MyDiary-API-Final
a0cf5f17055c961dbacdad6eba8c60aed5f59cd2
[ "MIT" ]
null
null
null
v1/api/resources.py
Edward-K1/MyDiary-API-Final
a0cf5f17055c961dbacdad6eba8c60aed5f59cd2
[ "MIT" ]
1
2018-08-02T22:14:30.000Z
2018-08-02T22:14:30.000Z
v1/api/resources.py
Edward-K1/MyDiary-API-Final
a0cf5f17055c961dbacdad6eba8c60aed5f59cd2
[ "MIT" ]
null
null
null
""" This module handles requests passed to the various api endpoints """ from flask import jsonify, make_response from flask_restful import Resource, request import jwt from .Helpers import validate_and_assemble_data, assign_data from .security import token_required from . import create_app from .models.models import U...
29.828829
119
0.511326
79615a414a352b852918011d1f51d19efa9910b4
4,794
py
Python
Arbitrage_Future/Arbitrage_Future/monitor.py
ronaldzgithub/CryptoArbitrage
b4b7a12b7b11f3dcf950f9d2039dad4f1388530b
[ "MIT" ]
1
2021-11-03T06:16:16.000Z
2021-11-03T06:16:16.000Z
Arbitrage_Future/Arbitrage_Future/monitor.py
benno0810/CryptoArbitrage
b4b7a12b7b11f3dcf950f9d2039dad4f1388530b
[ "MIT" ]
null
null
null
Arbitrage_Future/Arbitrage_Future/monitor.py
benno0810/CryptoArbitrage
b4b7a12b7b11f3dcf950f9d2039dad4f1388530b
[ "MIT" ]
2
2021-05-07T09:11:54.000Z
2021-11-27T16:29:10.000Z
import YunBi import CNBTC import json import threading import Queue import time history = open("historyPrice.txt","a") ybQue1 = Queue.Queue() ybQue2 = Queue.Queue() cnbtcQue1 = Queue.Queue() cnbtcQue2 = Queue.Queue() config = json.load(open("config.json","r")) #####max coin # in each trade maxTradeLimitation = float(co...
37.748031
205
0.665832
79615a482323923a4f7b261be4a63273263cf25e
23,039
py
Python
examples/model_selection/plot_grid_search_stats.py
talahajeer/scikit-learn
d66b42708a5912039740cd08f747229433e579b5
[ "BSD-3-Clause" ]
27
2015-01-22T22:30:09.000Z
2022-02-15T07:33:06.000Z
examples/model_selection/plot_grid_search_stats.py
talahajeer/scikit-learn
d66b42708a5912039740cd08f747229433e579b5
[ "BSD-3-Clause" ]
6
2021-07-05T15:38:00.000Z
2022-02-27T13:35:19.000Z
examples/model_selection/plot_grid_search_stats.py
talahajeer/scikit-learn
d66b42708a5912039740cd08f747229433e579b5
[ "BSD-3-Clause" ]
25
2015-07-30T13:47:25.000Z
2021-08-03T07:48:38.000Z
""" ================================================== Statistical comparison of models using grid search ================================================== This example illustrates how to statistically compare the performance of models trained and evaluated using :class:`~sklearn.model_selection.GridSearchCV`. """ #...
39.859862
160
0.720691
79615ae0c123beded1d3ed1eba9558cbaa7d1e65
5,827
py
Python
cscmiko/devices/switches/base.py
Ali-aqrabawi/cscmiko
e923c5bf940734ad3b034820de34d6bde0d2f837
[ "MIT" ]
2
2018-09-19T07:13:16.000Z
2019-07-04T03:42:32.000Z
cscmiko/devices/switches/base.py
Ali-aqrabawi/cisco_sdk
e923c5bf940734ad3b034820de34d6bde0d2f837
[ "MIT" ]
null
null
null
cscmiko/devices/switches/base.py
Ali-aqrabawi/cisco_sdk
e923c5bf940734ad3b034820de34d6bde0d2f837
[ "MIT" ]
1
2018-08-30T21:00:26.000Z
2018-08-30T21:00:26.000Z
from cscmiko.devices.base.device import Device from cscmiko.models import layer2, layer3, security, system from abc import ABC from cscmiko.exceptions import CscmikoNotSyncedError, CscmikoInvalidFeatureError _INVETORY_CMD = "show version" _VLAN_CMD = "show vlan" _INTERFACE_CMD = "show interface" _INTERFACE_CONF_CMD = ...
37.837662
126
0.659859
79615b7c1425986cab8eacd0f30965ca688dd853
725
py
Python
setup.py
Krytic/glisten
14fa2d9a490c55888c63bc9ff2001442447efce6
[ "MIT" ]
null
null
null
setup.py
Krytic/glisten
14fa2d9a490c55888c63bc9ff2001442447efce6
[ "MIT" ]
null
null
null
setup.py
Krytic/glisten
14fa2d9a490c55888c63bc9ff2001442447efce6
[ "MIT" ]
null
null
null
from setuptools import setup, Extension import re description = 'A simple python logging library.' try: with open('README.md', 'r', encoding='utf-8') as f: long_description = f.read() except FileNotFoundError: long_description = description setup(name='glisten', license = 'MIT License...
30.208333
62
0.591724
79615becdcc419b60b47fb68f73b7b932b84dee4
1,953
py
Python
app/dashboard/views/batch_import.py
fareszr/app
1f3bc693eccb307234e53653f6fa2cb25ddc0647
[ "MIT" ]
null
null
null
app/dashboard/views/batch_import.py
fareszr/app
1f3bc693eccb307234e53653f6fa2cb25ddc0647
[ "MIT" ]
null
null
null
app/dashboard/views/batch_import.py
fareszr/app
1f3bc693eccb307234e53653f6fa2cb25ddc0647
[ "MIT" ]
null
null
null
import arrow from flask import render_template, flash, request, redirect, url_for from flask_login import login_required, current_user from app import s3 from app.config import JOB_BATCH_IMPORT from app.dashboard.base import dashboard_bp from app.db import Session from app.log import LOG from app.models import File, B...
33.101695
88
0.677419
79615c6d2923f901216fd40887ea81d912aeb9e3
3,031
py
Python
hard/214_shortest_palindrome.py
niki4/leetcode_py3
794f560a09a8950da21bd58ea222e0c74449ffa6
[ "MIT" ]
null
null
null
hard/214_shortest_palindrome.py
niki4/leetcode_py3
794f560a09a8950da21bd58ea222e0c74449ffa6
[ "MIT" ]
null
null
null
hard/214_shortest_palindrome.py
niki4/leetcode_py3
794f560a09a8950da21bd58ea222e0c74449ffa6
[ "MIT" ]
null
null
null
""" Given a string s, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can find by performing this transformation. Example 1: Input: "aacecaaa" Output: "aaacecaaa" Example 2: Input: "abcd" Output: "dcbabcd" """ class Solution: """ ...
33.677778
100
0.594853
79615c7006c6667f6658de9fbedcda71b70951d7
752
py
Python
leetcode/Algorithms/491.IncreasingSubsequences/Solution.py
liupangzi/codekata
079373707601198f79fb6215b876a4cbcab32ee9
[ "MIT" ]
58
2017-04-30T12:59:37.000Z
2020-08-05T14:23:57.000Z
leetcode/Algorithms/491.IncreasingSubsequences/Solution.py
liupangzi/codekata
079373707601198f79fb6215b876a4cbcab32ee9
[ "MIT" ]
null
null
null
leetcode/Algorithms/491.IncreasingSubsequences/Solution.py
liupangzi/codekata
079373707601198f79fb6215b876a4cbcab32ee9
[ "MIT" ]
6
2018-01-20T18:35:09.000Z
2020-07-22T14:20:27.000Z
class Solution(object): def findSubsequences(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ result = [] self.backtracking(nums, 0, [], result) return result def backtracking(self, nums, index, tmp, result): if len(tmp) > 1: ...
28.923077
63
0.446809
79615c75ae86519705ed92d549123040b861077a
8,378
py
Python
benchmarks/f3_wrong_hints_permutations/scaling_nonlinear_software/11-19_20.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints_permutations/scaling_nonlinear_software/11-19_20.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints_permutations/scaling_nonlinear_software/11-19_20.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import FrozenSet, Tuple import pysmt.typing as types from pysmt.environment import Environment as PysmtEnv from pysmt.fnode import FNode from utils import symb_to_next from hint import Hint, Location def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode, ...
34.763485
81
0.533898
79615f24cfc6fec9cd5f7cf44279a37f0e59617d
7,972
py
Python
allennlp/predictors/coref.py
urigoren/allennlp
236e1fd01ca30409cd736625901292609009f5c4
[ "Apache-2.0" ]
null
null
null
allennlp/predictors/coref.py
urigoren/allennlp
236e1fd01ca30409cd736625901292609009f5c4
[ "Apache-2.0" ]
null
null
null
allennlp/predictors/coref.py
urigoren/allennlp
236e1fd01ca30409cd736625901292609009f5c4
[ "Apache-2.0" ]
2
2019-12-21T05:58:44.000Z
2021-08-16T07:41:21.000Z
from copy import deepcopy from typing import List, Dict from overrides import overrides from spacy.tokens import Doc import numpy from allennlp.common.util import JsonDict from allennlp.common.util import get_spacy_model from allennlp.data import DatasetReader, Instance from allennlp.data.fields import ListField, Seq...
38.887805
99
0.625564
79615f2f5fdfa5edc2a1310119213d68aec98aaf
4,662
py
Python
tests/st/graph_kernel/model/graph_kernel_split.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/st/graph_kernel/model/graph_kernel_split.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/st/graph_kernel/model/graph_kernel_split.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
32.830986
89
0.555341
796160ec9d54174e5583440fcb766d04ccc68c6d
103,940
py
Python
tensorflow/tools/compatibility/tf_upgrade_v2.py
Stevanus-Christian/tensorflow
d44afcf5ca16c5d704c66f891b99eac804e7cd14
[ "Apache-2.0" ]
3
2022-03-09T01:39:56.000Z
2022-03-30T23:17:58.000Z
tensorflow/tools/compatibility/tf_upgrade_v2.py
Stevanus-Christian/tensorflow
d44afcf5ca16c5d704c66f891b99eac804e7cd14
[ "Apache-2.0" ]
1
2020-08-01T05:40:12.000Z
2020-08-01T05:40:12.000Z
tensorflow/tools/compatibility/tf_upgrade_v2.py
Stevanus-Christian/tensorflow
d44afcf5ca16c5d704c66f891b99eac804e7cd14
[ "Apache-2.0" ]
1
2022-03-22T00:45:15.000Z
2022-03-22T00:45:15.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.460896
80
0.625293
7961618bf9ff6e6100ab0942890f045ee816bf3b
2,695
py
Python
WidgetsUnlimited/operations/ecommerce.py
AlanHorowitz/open-ended-capstone
80590af5b09c2245f124cec20ed7594d62cff30e
[ "MIT" ]
null
null
null
WidgetsUnlimited/operations/ecommerce.py
AlanHorowitz/open-ended-capstone
80590af5b09c2245f124cec20ed7594d62cff30e
[ "MIT" ]
null
null
null
WidgetsUnlimited/operations/ecommerce.py
AlanHorowitz/open-ended-capstone
80590af5b09c2245f124cec20ed7594d62cff30e
[ "MIT" ]
null
null
null
from typing import List import os import psycopg2 from psycopg2.extras import DictCursor, DictRow from psycopg2.extensions import connection, cursor from model.metadata import Table from .generator import DataGenerator from .base import BaseSystem class eCommerceSystem(BaseSystem): def __init__(self) -> None: ...
33.271605
91
0.615213
796161b2c1e0278508fdbea10ecf84e6122ff8b5
3,031
py
Python
tests/ti_deps/deps/test_runnable_exec_date_dep.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
2
2019-01-14T16:39:27.000Z
2019-01-24T21:53:13.000Z
tests/ti_deps/deps/test_runnable_exec_date_dep.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
20
2017-04-18T19:47:46.000Z
2020-01-13T04:19:24.000Z
tests/ti_deps/deps/test_runnable_exec_date_dep.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
2
2018-09-15T07:13:01.000Z
2021-03-26T07:27:38.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
36.518072
88
0.677334
796161bbf40e0920a5ef8abcb67591e296aa6f07
2,036
py
Python
raws/binfile.py
Charcoal-Apple/PyDwarf
6f2dd294509c83802e06b9ca5e084f89c9fe4bda
[ "Zlib" ]
49
2015-05-21T19:40:41.000Z
2021-09-30T03:04:32.000Z
raws/binfile.py
Charcoal-Apple/PyDwarf
6f2dd294509c83802e06b9ca5e084f89c9fe4bda
[ "Zlib" ]
6
2015-05-30T01:50:01.000Z
2021-09-22T14:22:41.000Z
raws/binfile.py
Charcoal-Apple/PyDwarf
6f2dd294509c83802e06b9ca5e084f89c9fe4bda
[ "Zlib" ]
13
2015-05-23T16:26:31.000Z
2021-09-05T18:46:36.000Z
#!/usr/bin/env python # coding: utf-8 import os import contentfile class binfile(contentfile.contentfile): ''' File class which is represented by a string containing its binary contents. Good for files which must have their content exposed or be manipulated but don't have their own spec...
29.941176
110
0.596267
7961634ad8b50465a3c5411f7315a524d468d158
98
py
Python
src/pyim/vendor/genopandas/__init__.py
jrderuiter/pyim
e767c3bd14e0d0c9b3d0ff3482c19a8e1a9c61d4
[ "MIT" ]
null
null
null
src/pyim/vendor/genopandas/__init__.py
jrderuiter/pyim
e767c3bd14e0d0c9b3d0ff3482c19a8e1a9c61d4
[ "MIT" ]
1
2018-05-11T02:46:09.000Z
2018-05-11T02:46:09.000Z
src/pyim/vendor/genopandas/__init__.py
jrderuiter/pyim
e767c3bd14e0d0c9b3d0ff3482c19a8e1a9c61d4
[ "MIT" ]
1
2018-04-17T16:08:34.000Z
2018-04-17T16:08:34.000Z
from .frame import GenomicDataFrame from .tree import GenomicIntervalTree, IntervalTree, Interval
32.666667
61
0.857143
796163f58d98921925ae701b8db7178cf8cb97f0
37,529
py
Python
official/benchmark/keras_imagenet_benchmark.py
udaylunawat/models
a07de068e5fe56d0b2bd3c155844b35954c180a3
[ "Apache-2.0" ]
15
2019-11-06T17:23:27.000Z
2021-07-17T16:03:01.000Z
official/benchmark/keras_imagenet_benchmark.py
xingjianzhang1997/models
5ceb3acfc48843f260bac9a8afae5f90c5409eed
[ "Apache-2.0" ]
1
2021-03-31T21:42:11.000Z
2021-03-31T21:42:11.000Z
official/benchmark/keras_imagenet_benchmark.py
xingjianzhang1997/models
5ceb3acfc48843f260bac9a8afae5f90c5409eed
[ "Apache-2.0" ]
13
2019-11-06T17:23:29.000Z
2019-11-29T13:03:07.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.845868
92
0.718031
79616490a40f282488c98fac5bbcb04e4ba2bdd9
819
py
Python
Spotkanie 6/le31_020_sqlite.py
abixadamj/lekcja-enter-przyklady
4f23ee32a139e955f992b727ad86c6effb87a6d6
[ "MIT" ]
null
null
null
Spotkanie 6/le31_020_sqlite.py
abixadamj/lekcja-enter-przyklady
4f23ee32a139e955f992b727ad86c6effb87a6d6
[ "MIT" ]
null
null
null
Spotkanie 6/le31_020_sqlite.py
abixadamj/lekcja-enter-przyklady
4f23ee32a139e955f992b727ad86c6effb87a6d6
[ "MIT" ]
null
null
null
import sqlite3 import os from sys import exit # plik bazy database = "baza_le31.db" table_name = "Users" field_1 = "Username" field_2 = "Password" if os.path.exists(database): connection = sqlite3.connect(database) else: print("Brak pliku!!!!") exit(0) print("OK - działamy dalej") cursor = connection.cur...
22.135135
88
0.610501
796164ee2e00576b97726a281fd0a7045ab5e783
5,973
py
Python
smartbox/cmd.py
graham33/smartbox
f7deaf85b50f0821fba265aaf54319e03cf86dbc
[ "MIT" ]
2
2021-03-08T14:40:12.000Z
2021-11-12T14:50:01.000Z
smartbox/cmd.py
graham33/smartbox
f7deaf85b50f0821fba265aaf54319e03cf86dbc
[ "MIT" ]
7
2021-03-09T22:06:03.000Z
2022-03-06T22:30:45.000Z
smartbox/cmd.py
graham33/smartbox
f7deaf85b50f0821fba265aaf54319e03cf86dbc
[ "MIT" ]
3
2021-02-23T09:32:22.000Z
2021-09-27T09:37:16.000Z
import asyncio import click import logging import pprint from .session import Session from .socket import SocketSession _LOGGER = logging.getLogger(__name__) @click.group(chain=True) @click.option("-a", "--api-name", required=True, help="API name") @click.option( "-b", "--basic-auth-creds", required=True, help=...
31.272251
92
0.666499
79616574f7c57cf01d8b8559e126c8d2dafe80dd
281
py
Python
python/boolean/is_equal3.py
maleich/ReadingBat-content
d6d960f6931ef76e5a3c92dd20c5e9a5230d24ca
[ "Apache-2.0" ]
null
null
null
python/boolean/is_equal3.py
maleich/ReadingBat-content
d6d960f6931ef76e5a3c92dd20c5e9a5230d24ca
[ "Apache-2.0" ]
null
null
null
python/boolean/is_equal3.py
maleich/ReadingBat-content
d6d960f6931ef76e5a3c92dd20c5e9a5230d24ca
[ "Apache-2.0" ]
1
2020-07-31T01:59:29.000Z
2020-07-31T01:59:29.000Z
# @desc What is returned? # @desc by Savonnah '23 def equal(num1, num2, num3): result = num1 == num2 == num3 return result def main(): print(equal(3,4,7)) print(equal(5,5,5)) print(equal(6,7,9)) print(equal(4,7,4)) if __name__ == '__main__': main()
16.529412
33
0.587189
796165b0a282f82d57ef86303a0cb139d728b266
1,878
py
Python
codpy/file_handling.py
GNiklas/codpy
ad955f1567f4d0c93731a08eda49ad5123ed1204
[ "MIT" ]
null
null
null
codpy/file_handling.py
GNiklas/codpy
ad955f1567f4d0c93731a08eda49ad5123ed1204
[ "MIT" ]
null
null
null
codpy/file_handling.py
GNiklas/codpy
ad955f1567f4d0c93731a08eda49ad5123ed1204
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Aug 5 13:11:49 2021 @author: niklas """ import os import cv2 def readImgIn(inDir, imgFile): """ Read input image. Parameters ---------- inDir : string. absolute input directory. imgFile : string. input imag...
17.716981
67
0.530351
796165c45ca4ba31ce4ec40837a331dbfff94217
3,268
py
Python
sl_getInstances.py
takechika/softlayer-api
e2d0621eff65fe15799391928e408b8beaa756bf
[ "MIT" ]
null
null
null
sl_getInstances.py
takechika/softlayer-api
e2d0621eff65fe15799391928e408b8beaa756bf
[ "MIT" ]
null
null
null
sl_getInstances.py
takechika/softlayer-api
e2d0621eff65fe15799391928e408b8beaa756bf
[ "MIT" ]
1
2015-09-12T10:17:50.000Z
2015-09-12T10:17:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'takechika' import sys from prettytable import PrettyTable import SoftLayer import sluser SL_USERNAME = sluser.SL_USERNAME SL_API_KEY = sluser.SL_API_KEY _maskVirtualGuest = ''' id, fullyQualifiedDomainName, primaryIpAddress, primaryBackendI...
25.138462
168
0.641065
7961672018df438c6ed1c41fd006e9ef1d55e9fa
2,513
py
Python
striatum/bandit/tests/test_exp3.py
yangarbiter/dopamine
408947981e18f22db308d695c8954112ca02041a
[ "BSD-2-Clause" ]
108
2016-05-12T06:08:57.000Z
2022-01-05T14:53:30.000Z
striatum/bandit/tests/test_exp3.py
aldente0630/striatum
408947981e18f22db308d695c8954112ca02041a
[ "BSD-2-Clause" ]
77
2016-05-12T11:12:12.000Z
2019-10-31T07:39:57.000Z
striatum/bandit/tests/test_exp3.py
aldente0630/striatum
408947981e18f22db308d695c8954112ca02041a
[ "BSD-2-Clause" ]
39
2016-07-11T09:12:29.000Z
2021-07-14T19:32:51.000Z
import unittest from striatum.bandit import Exp3 from striatum.storage import ( MemoryHistoryStorage, MemoryModelStorage, MemoryActionStorage, Action, ) from .base_bandit_test import BaseBanditTest, ChangeableActionSetBanditTest class TestExp3(ChangeableActionSetBanditTest, BaseBanditT...
40.532258
80
0.615997
796168097136a4e055f13910d74bede9e9d0e129
1,264
py
Python
app/core/models.py
hmunhoz/recipe-app-api
def9dc9c66df16c4e3045f03ad59363febf301cc
[ "MIT" ]
null
null
null
app/core/models.py
hmunhoz/recipe-app-api
def9dc9c66df16c4e3045f03ad59363febf301cc
[ "MIT" ]
null
null
null
app/core/models.py
hmunhoz/recipe-app-api
def9dc9c66df16c4e3045f03ad59363febf301cc
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): """Creates and saves a new user""" if n...
33.263158
76
0.669304
79616a7e197a72e969313b99d477db9930da5250
595
py
Python
servo_test/myservo.py
kazme-egawa/sesame_pi
0887a646b769a75770e93db9bd18a9d57571efae
[ "MIT" ]
null
null
null
servo_test/myservo.py
kazme-egawa/sesame_pi
0887a646b769a75770e93db9bd18a9d57571efae
[ "MIT" ]
null
null
null
servo_test/myservo.py
kazme-egawa/sesame_pi
0887a646b769a75770e93db9bd18a9d57571efae
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time from argparse import ArgumentParser def main(degree): print(degree) servo_pin = 18 GPIO.setmode(GPIO.BCM) GPIO.setup(servo_pin, GPIO.OUT) servo = GPIO.PWM(servo_pin, 50) servo.start(0.0) servo.ChangeDutyCycle(float(degree)) time.sleep(1.0) GPIO.c...
22.884615
73
0.658824
79616ab23387fce8bc76e70d2e12db933db96335
265
py
Python
quantum-circuits/gates/paulix.py
cjwfuller/quantum-circuits
39629d3d6a1c8ba0e64083aa85091ba88a1ada5e
[ "MIT" ]
null
null
null
quantum-circuits/gates/paulix.py
cjwfuller/quantum-circuits
39629d3d6a1c8ba0e64083aa85091ba88a1ada5e
[ "MIT" ]
null
null
null
quantum-circuits/gates/paulix.py
cjwfuller/quantum-circuits
39629d3d6a1c8ba0e64083aa85091ba88a1ada5e
[ "MIT" ]
null
null
null
import numpy as np import quantum_gate class PauliXQuantumGate(quantum_gate.QuantumGate): def __init__(self): super(PauliXQuantumGate, self) self.symbol = 'X' self.num_qubits = 1 self.matrix = np.matrix('0 1; 1 0', np.complex_)
26.5
56
0.667925
79616b03c3c52005cd8e967040ccd9250a472dfc
4,760
py
Python
temboo/core/Library/Delicious/GetBookmark.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Delicious/GetBookmark.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Delicious/GetBookmark.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # GetBookmark # Retrieves one or more bookmarked links posted on a single day. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); ...
42.123894
219
0.682353
79616e30118cd98168112dcc464e248072fb1960
7,919
py
Python
transformer/spatial_transformer.py
matthewstidham/AI_Reader
c2cd820e74e8821ab72cfb669500736a25aee0f8
[ "Apache-2.0" ]
null
null
null
transformer/spatial_transformer.py
matthewstidham/AI_Reader
c2cd820e74e8821ab72cfb669500736a25aee0f8
[ "Apache-2.0" ]
null
null
null
transformer/spatial_transformer.py
matthewstidham/AI_Reader
c2cd820e74e8821ab72cfb669500736a25aee0f8
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.818627
99
0.549186
79616e3bf3f3cfd2577ac4661d8948068d8c436e
449
py
Python
image_processing_project/__init__.py
AgnesResto/image_processing_project
553aaec01887c5bf8c4781480a33bb82f04374af
[ "MIT" ]
null
null
null
image_processing_project/__init__.py
AgnesResto/image_processing_project
553aaec01887c5bf8c4781480a33bb82f04374af
[ "MIT" ]
null
null
null
image_processing_project/__init__.py
AgnesResto/image_processing_project
553aaec01887c5bf8c4781480a33bb82f04374af
[ "MIT" ]
null
null
null
""" image_processing_project processing of immunofluorescent staining """ # Make Python 2 and 3 imports work the same # Safe to remove with Python 3-only code from __future__ import absolute_import # Add imports here from .image_processing_project import * # Handle versioneer from ._version import get_versions versi...
23.631579
46
0.804009
79616eacff395953d6fdddff489cf9e5b290b5e0
10,407
py
Python
sage/views.py
saumyaparikh/SageVaccination
3fcddbd42fc1231b9d8bde6a615ab9f4385c00ec
[ "MIT" ]
null
null
null
sage/views.py
saumyaparikh/SageVaccination
3fcddbd42fc1231b9d8bde6a615ab9f4385c00ec
[ "MIT" ]
null
null
null
sage/views.py
saumyaparikh/SageVaccination
3fcddbd42fc1231b9d8bde6a615ab9f4385c00ec
[ "MIT" ]
2
2021-07-03T15:41:06.000Z
2021-08-06T17:09:05.000Z
from django.shortcuts import render,HttpResponse,redirect from django.contrib import messages from django.contrib.auth.models import User from django.contrib.auth import authenticate,login,logout from .models import bhyhospital,vasaihospital,vaccinename,vmain,noti from django.db.models.functions import Lower from math ...
26.753213
205
0.604785
79616eb57ef7533dd966ed9096af35c3f346b460
420
py
Python
docs/02.AI_ML/code-1805/Day01all/lab.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
2
2020-04-09T05:56:23.000Z
2021-03-25T18:42:36.000Z
docs/02.AI_ML/code-1805/Day01all/lab.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
22
2020-04-09T06:09:14.000Z
2021-01-06T01:05:32.000Z
docs/02.AI_ML/code-1805/Day01all/lab.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
6
2020-03-09T07:19:21.000Z
2021-01-05T23:23:42.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import numpy as np import sklearn.preprocessing as sp raw_samples = np.array([ 'audi', 'ford', 'audi', 'toyota', 'ford', 'bmw', 'toyota', 'ford', 'audi']) print(raw_samples) lbe = sp.LabelEncoder() lbe_samples = lbe.fit(raw_samples).transform( ...
28
48
0.721429
796171d24329a767fcf8b319c50ace158824f917
4,150
py
Python
pyupcn/bundle6.py
umr-ds/uPCN
0f7323034920649802af27823c1363bc894589b6
[ "BSD-3-Clause" ]
2
2019-07-10T02:33:46.000Z
2022-03-31T06:18:03.000Z
pyupcn/bundle6.py
umr-ds/uPCN
0f7323034920649802af27823c1363bc894589b6
[ "BSD-3-Clause" ]
null
null
null
pyupcn/bundle6.py
umr-ds/uPCN
0f7323034920649802af27823c1363bc894589b6
[ "BSD-3-Clause" ]
null
null
null
import enum import time import threading from .helpers import unix2dtn from .sdnv import sdnv_encode class RFC5050Flag(enum.IntFlag): """Default BPv6 flags""" IS_FRAGMENT = 0x00001 ADMINISTRATIVE_RECORD = 0x00002 MUST_NOT_BE_FRAGMENTED = 0x00004 CUSTODY_TRANSFER_REQUESTED ...
31.203008
77
0.668434
7961720eb5d2723d010298362b6300a437ea348f
8,989
py
Python
test/functional/feature_proxy.py
JustFragger/lotusd
7b0eaa73aff8fff9c79637d93c217692a097fe23
[ "MIT" ]
3
2019-06-17T03:48:07.000Z
2021-03-07T05:47:18.000Z
test/functional/feature_proxy.py
JustFragger/lotusd
7b0eaa73aff8fff9c79637d93c217692a097fe23
[ "MIT" ]
68
2019-06-17T01:54:12.000Z
2021-04-10T17:59:15.000Z
test/functional/feature_proxy.py
JustFragger/lotusd
7b0eaa73aff8fff9c79637d93c217692a097fe23
[ "MIT" ]
1
2021-02-21T23:51:33.000Z
2021-02-21T23:51:33.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2019 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 lotusd with different proxy configuration. Test plan: - Start lotusd's with different proxy confi...
39.425439
94
0.602959
7961729175c3f365f43c5c514a1a2ffd13021894
1,665
py
Python
nipype/interfaces/fsl/tests/test_auto_ExtractROI.py
nicholsn/nipype
6601b00aac39d17bb9fb3a6801f5a740a6ebb1e3
[ "BSD-3-Clause" ]
1
2018-04-18T12:13:37.000Z
2018-04-18T12:13:37.000Z
nipype/interfaces/fsl/tests/test_auto_ExtractROI.py
ito-takuya/nipype
9099a5809487b55868cdec82a719030419cbd6ba
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/fsl/tests/test_auto_ExtractROI.py
ito-takuya/nipype
9099a5809487b55868cdec82a719030419cbd6ba
[ "BSD-3-Clause" ]
1
2021-09-08T14:31:47.000Z
2021-09-08T14:31:47.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from nipype.testing import assert_equal from nipype.interfaces.fsl.utils import ExtractROI def test_ExtractROI_inputs(): input_map = dict(args=dict(argstr='%s', ), crop_list=dict(argstr='%s', position=2, xor=['x_min', 'x_size', 'y_min', 'y_size'...
23.450704
85
0.608408
7961729c67a05edef9e6e1cc2ad4a8a5553b7d6f
707
py
Python
src/main/python/process-qrels.py
hscells/lifelog-eval
61e1eff64affc8040ca2c0e704e68815052e747d
[ "MIT" ]
1
2016-11-02T12:06:01.000Z
2016-11-02T12:06:01.000Z
src/main/python/process-qrels.py
hscells/lifelog-eval
61e1eff64affc8040ca2c0e704e68815052e747d
[ "MIT" ]
1
2016-08-29T05:57:56.000Z
2016-10-01T05:53:41.000Z
src/main/python/process-qrels.py
hscells/lifelog-eval
61e1eff64affc8040ca2c0e704e68815052e747d
[ "MIT" ]
null
null
null
""" Process the qrels file to work with evaluation Harry Scells """ import argparse def process(qrels_file): """ read a qrel file and process it for use in evaluation :return: """ with open(qrels_file, 'r') as f: for line in f.readlines(): topic_id, q0, image_path, relevance ...
25.25
92
0.619519
7961731e849ede3b3803e61e9e1179c6c2210dc4
621
py
Python
MeshTestConsole/meshlibrary/MessageChecksum.py
dntoll/loraMesh
c157182d23f659572799b60e07094e4e9809a1f2
[ "MIT" ]
null
null
null
MeshTestConsole/meshlibrary/MessageChecksum.py
dntoll/loraMesh
c157182d23f659572799b60e07094e4e9809a1f2
[ "MIT" ]
null
null
null
MeshTestConsole/meshlibrary/MessageChecksum.py
dntoll/loraMesh
c157182d23f659572799b60e07094e4e9809a1f2
[ "MIT" ]
null
null
null
class MessageChecksum: def __init__(self, bytes): self.checksum = bytes def isSame(self, other): return self.checksum[0] == other.checksum[0] and self.checksum[1] == other.checksum[1] and self.checksum[2] == other.checksum[2] def toBytes(self): return self.checksum def ...
27
136
0.610306
7961735c8768095288ca9be860a9714f3723f6e1
35,516
py
Python
include/spirv/unified1/spirv.py
snd-raspberry/swiftshader
840809ac8356cb29a904835e5ee1de28a51e7da8
[ "Apache-2.0" ]
1
2018-12-10T18:49:48.000Z
2018-12-10T18:49:48.000Z
include/spirv/unified1/spirv.py
snd-raspberry/swiftshader
840809ac8356cb29a904835e5ee1de28a51e7da8
[ "Apache-2.0" ]
null
null
null
include/spirv/unified1/spirv.py
snd-raspberry/swiftshader
840809ac8356cb29a904835e5ee1de28a51e7da8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014-2018 The Khronos Group Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and/or associated documentation files (the "Materials"), # to deal in the Materials without restriction, including without limitation # the rights to use, copy, modify, m...
30.77643
131
0.545557
79617404c8b785cbe6571b6004be4b295fe425d6
755
py
Python
bot/dialogs/rules/market.py
mik3sw/GoogleAssistantBot
5a5a617ace94b320d6bf4810a4e277d303d7db21
[ "Apache-2.0" ]
4
2020-07-29T22:53:04.000Z
2021-11-08T23:09:05.000Z
bot/dialogs/rules/market.py
mik3sw/GoogleAssistantBot
5a5a617ace94b320d6bf4810a4e277d303d7db21
[ "Apache-2.0" ]
3
2020-10-04T15:26:30.000Z
2021-05-02T20:17:30.000Z
bot/dialogs/rules/market.py
mik3sw/GoogleAssistantBot
5a5a617ace94b320d6bf4810a4e277d303d7db21
[ "Apache-2.0" ]
6
2020-08-23T18:08:45.000Z
2020-09-12T09:46:03.000Z
import config from functions.general import message def init(update, context): hashtag = ['#vendo', '#cerco', '#scambio'] if update.message.text is not None: #print(update.message.text) if (update.message.chat_id == config.mercatino) and not(update.message.from_user.id in config.LIST_OF_ADMINS):...
58.076923
204
0.680795
79617455c7c9ab5499c809e83639961092ff4d03
1,158
py
Python
django_lightweight_queue/middleware/transaction.py
lamby/django-lightweight-queue
31128a74211f46b8e5b52ab42c98c0f7d54c4a78
[ "BSD-3-Clause" ]
null
null
null
django_lightweight_queue/middleware/transaction.py
lamby/django-lightweight-queue
31128a74211f46b8e5b52ab42c98c0f7d54c4a78
[ "BSD-3-Clause" ]
null
null
null
django_lightweight_queue/middleware/transaction.py
lamby/django-lightweight-queue
31128a74211f46b8e5b52ab42c98c0f7d54c4a78
[ "BSD-3-Clause" ]
null
null
null
from django.db import transaction, connection class TransactionMiddleware(object): def process_job(self, job): if not connection.in_atomic_block: transaction.set_autocommit(False) def process_result(self, job, result, duration): if not connection.in_atomic_block: transa...
34.058824
64
0.65544
796174a49ddd7456311cc3009594b64e8fc9f36d
1,845
py
Python
sqlite3/install.py
richardjhughes/project-dependencies
503067190e69cbc1d8e9d7364a3c84d128c6f8b1
[ "MIT" ]
null
null
null
sqlite3/install.py
richardjhughes/project-dependencies
503067190e69cbc1d8e9d7364a3c84d128c6f8b1
[ "MIT" ]
32
2021-05-05T00:37:36.000Z
2021-05-15T18:11:08.000Z
sqlite3/install.py
snowmeltarcade/project-dependencies
503067190e69cbc1d8e9d7364a3c84d128c6f8b1
[ "MIT" ]
null
null
null
import os import shutil import platform import argparse import zipfile version = "3.35.5" def configureArguments(): parser = argparse.ArgumentParser() parser.add_argument("-p", "--path", action="store", required=True, help="path to install in") parser.add_argument("-v", "--version", action="store", requir...
23.0625
101
0.684011
796175de618944a446bb86f22f27908e06003134
1,111
py
Python
Xana/SaxsAna/find_center.py
ClLov/Xana
83d880432a457cff0f1fab2801e2530ddecb4019
[ "MIT" ]
null
null
null
Xana/SaxsAna/find_center.py
ClLov/Xana
83d880432a457cff0f1fab2801e2530ddecb4019
[ "MIT" ]
null
null
null
Xana/SaxsAna/find_center.py
ClLov/Xana
83d880432a457cff0f1fab2801e2530ddecb4019
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt from lmfit.models import GaussianModel as gauss_mod from lmfit.models import VoigtModel as voigt_mod from lmfit.models import LinearModel as lin_mod def find_center(img, mask=None, doplot=False, fit_report=False): mod = voigt_mod() + lin_mod() if mas...
30.027027
66
0.573357
7961775e8b902745e52fbe31ab1dd946c89a44b6
8,071
py
Python
datumaro/datumaro/components/operations.py
RGring/cvat
000e9c4dad8f3ddf8c822807b12ec9a93c37337d
[ "MIT" ]
null
null
null
datumaro/datumaro/components/operations.py
RGring/cvat
000e9c4dad8f3ddf8c822807b12ec9a93c37337d
[ "MIT" ]
null
null
null
datumaro/datumaro/components/operations.py
RGring/cvat
000e9c4dad8f3ddf8c822807b12ec9a93c37337d
[ "MIT" ]
null
null
null
# Copyright (C) 2020 Intel Corporation # # SPDX-License-Identifier: MIT import logging as log from copy import deepcopy import cv2 import numpy as np from datumaro.components.extractor import AnnotationType def mean_std(dataset): """ Computes unbiased mean and std. dev. for dataset images, channel-wise. ...
33.911765
90
0.567092
7961785d78808f507c2eaedb5536d12b19684cfa
203
py
Python
src/project poker/actions.py
acc-cosc-1336/cosc-1336-spring-2018-EricScotty
80c0249a583dc178cfc7bb95b851d7f3240dc3e9
[ "MIT" ]
null
null
null
src/project poker/actions.py
acc-cosc-1336/cosc-1336-spring-2018-EricScotty
80c0249a583dc178cfc7bb95b851d7f3240dc3e9
[ "MIT" ]
null
null
null
src/project poker/actions.py
acc-cosc-1336/cosc-1336-spring-2018-EricScotty
80c0249a583dc178cfc7bb95b851d7f3240dc3e9
[ "MIT" ]
null
null
null
class Action: def __init__(self, action_type, amount=1): self.action_type = action_type self.amount = amount def display(self): print('Super class display')
18.454545
47
0.600985
796178c299f8c2d2be961421500c6d5ef3e6423e
43,718
py
Python
sdks/python/apache_beam/typehints/typehints.py
serve-robotics/beam
2cec50b0f1b87388fb408b6af3e09c22ca4a627c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
1
2022-01-23T15:07:37.000Z
2022-01-23T15:07:37.000Z
sdks/python/apache_beam/typehints/typehints.py
serve-robotics/beam
2cec50b0f1b87388fb408b6af3e09c22ca4a627c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
6
2022-02-18T15:52:33.000Z
2022-03-09T22:25:01.000Z
sdks/python/apache_beam/typehints/typehints.py
serve-robotics/beam
2cec50b0f1b87388fb408b6af3e09c22ca4a627c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
1
2022-03-22T00:18:37.000Z
2022-03-22T00:18:37.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
34.288627
80
0.694542
796179e2fb9207847f761980bcc740b518b036b1
1,786
py
Python
tests/dualing/core/test_model.py
gugarosa/dualing
a625476946bded8e6c9211d83fe79dc16b3d8f16
[ "Apache-2.0" ]
2
2020-08-03T08:02:48.000Z
2020-11-21T04:11:45.000Z
tests/dualing/core/test_model.py
gugarosa/dualing
a625476946bded8e6c9211d83fe79dc16b3d8f16
[ "Apache-2.0" ]
1
2020-09-29T12:58:33.000Z
2020-09-29T12:58:33.000Z
tests/dualing/core/test_model.py
gugarosa/dualing
a625476946bded8e6c9211d83fe79dc16b3d8f16
[ "Apache-2.0" ]
null
null
null
import pytest import tensorflow as tf from dualing.core import model def test_base(): new_base = model.Base(name='new_base') assert new_base.name == 'new_base' def test_base_call(): new_base = model.Base() with pytest.raises(NotImplementedError): new_base(None) def test_siamese(): n...
19.204301
45
0.68589
796179f59be62f253e0d4d0a560b5738a9f956df
659
py
Python
pymatgen/io/io_abc.py
qimin/pymatgen
4823c777a8af4a3ca7cd29297563ba8174ec402c
[ "MIT" ]
1
2022-03-29T20:03:58.000Z
2022-03-29T20:03:58.000Z
pymatgen/io/io_abc.py
qimin/pymatgen
4823c777a8af4a3ca7cd29297563ba8174ec402c
[ "MIT" ]
null
null
null
pymatgen/io/io_abc.py
qimin/pymatgen
4823c777a8af4a3ca7cd29297563ba8174ec402c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ This module implements abstract base classes for file io classes. For seamless integration with the rest of the code base, any classes providing to a file io function should extend this class. """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2011, The Materials Project" __versio...
22.724138
79
0.699545
79617a201dc0656d214f915b72972a17c1e35751
3,580
py
Python
chiplibrary/routes.py
chrisrsantiago/chiplibrary
3f7673bf7eb4dd5745af61b6b62ef4fac1df8866
[ "MIT" ]
5
2016-09-18T18:45:48.000Z
2020-08-02T02:06:15.000Z
chiplibrary/routes.py
chrisrsantiago/chiplibrary
3f7673bf7eb4dd5745af61b6b62ef4fac1df8866
[ "MIT" ]
14
2016-09-17T19:26:42.000Z
2022-01-21T23:55:23.000Z
chiplibrary/routes.py
chrisrsantiago/chiplibrary
3f7673bf7eb4dd5745af61b6b62ef4fac1df8866
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from pyramid.view import view_config from pyramid.response import FileResponse from pyramid.httpexceptions import HTTPMovedPermanently def add_route(config, name, pattern, **kw): """Automatically remove the forward-slash to any matched routes by sending a HTTP 301 response. ...
34.757282
76
0.636034
79617a8623bf3253dd2dcf1a1395677f0aa987e6
229
py
Python
store/orders/admin.py
luckdeluxe/hardware-store
a48f3ee4d60f2a695fb7741fa30002e8b29ad7d3
[ "MIT" ]
null
null
null
store/orders/admin.py
luckdeluxe/hardware-store
a48f3ee4d60f2a695fb7741fa30002e8b29ad7d3
[ "MIT" ]
null
null
null
store/orders/admin.py
luckdeluxe/hardware-store
a48f3ee4d60f2a695fb7741fa30002e8b29ad7d3
[ "MIT" ]
null
null
null
from django.contrib import admin from orders.models import Order class OrderAdmin(admin.ModelAdmin): list_display = ('user', 'cart', 'shipping_total', 'total', 'status', 'created_at') admin.site.register(Order, OrderAdmin)
28.625
86
0.751092