hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
b9bd441fe793748c0f27e58f0035b22ac8be6846
609
py
Python
src/jycampus/apps/userbase/migrations/0013_auto_20190809_0914.py
lijoev/KCC
c6fdeda909f0b4243ca4e23ad98a481cbaf7a7c7
[ "Unlicense" ]
null
null
null
src/jycampus/apps/userbase/migrations/0013_auto_20190809_0914.py
lijoev/KCC
c6fdeda909f0b4243ca4e23ad98a481cbaf7a7c7
[ "Unlicense" ]
3
2020-02-12T02:57:19.000Z
2021-06-10T21:42:20.000Z
src/jycampus/apps/userbase/migrations/0013_auto_20190809_0914.py
lijoev/KCC
c6fdeda909f0b4243ca4e23ad98a481cbaf7a7c7
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-08-09 09:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('userbase', '0012_auto_20190809_0452'), ] operations = [ migrations.AlterField...
23.423077
48
0.597701
6873439748263cf9c2e7e41de1ac99762ec33f59
8,201
py
Python
devices/camera.py
mmonajem/oxcart
3a5bbf48c7bf54d78d481e30c7f854e1d27b8d8c
[ "Apache-2.0" ]
null
null
null
devices/camera.py
mmonajem/oxcart
3a5bbf48c7bf54d78d481e30c7f854e1d27b8d8c
[ "Apache-2.0" ]
null
null
null
devices/camera.py
mmonajem/oxcart
3a5bbf48c7bf54d78d481e30c7f854e1d27b8d8c
[ "Apache-2.0" ]
null
null
null
import time import cv2 import numpy as np from pypylon import pylon import variables class Camera: def __init__(self, devices, tlFactory, cameras, converter): self.devices = devices self.tlFactory = tlFactory self.cameras = cameras self.converter = converter self.camer...
49.107784
120
0.58249
7b876291e668704c672d7655714869f2de892cdd
4,691
py
Python
test/functional/feature_spentindex.py
bitcoinquark/bitcoinquark
f1bd752ee58859f2b24a52405723706064c9c151
[ "MIT" ]
null
null
null
test/functional/feature_spentindex.py
bitcoinquark/bitcoinquark
f1bd752ee58859f2b24a52405723706064c9c151
[ "MIT" ]
null
null
null
test/functional/feature_spentindex.py
bitcoinquark/bitcoinquark
f1bd752ee58859f2b24a52405723706064c9c151
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Copyright (c) 2017 The BitcoinQuark developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test spentindex # import time from test_framework.t...
40.439655
122
0.661266
d9af44b16c36e6a831a6344a553cd6fc2d17e7cf
1,910
py
Python
venv/Lib/site-packages/appier/asynchronous.py
victor-freitas/TwilioSMS
d71b18a7e8765aa545dd785d119f3719e5eb1606
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/appier/asynchronous.py
victor-freitas/TwilioSMS
d71b18a7e8765aa545dd785d119f3719e5eb1606
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/appier/asynchronous.py
victor-freitas/TwilioSMS
d71b18a7e8765aa545dd785d119f3719e5eb1606
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Appier Framework # Copyright (c) 2008-2019 Hive Solutions Lda. # # This file is part of Hive Appier Framework. # # Hive Appier Framework is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apache # Found...
34.107143
79
0.740838
52227649ea9706e93cf9fa5cc710364ec08306bf
1,144
py
Python
setup.py
kurhula/nodeenv
2b2ff31364a8837a11dffc1e667df349fae8cedb
[ "BSD-3-Clause" ]
null
null
null
setup.py
kurhula/nodeenv
2b2ff31364a8837a11dffc1e667df349fae8cedb
[ "BSD-3-Clause" ]
null
null
null
setup.py
kurhula/nodeenv
2b2ff31364a8837a11dffc1e667df349fae8cedb
[ "BSD-3-Clause" ]
1
2020-04-13T17:43:43.000Z
2020-04-13T17:43:43.000Z
""" nodeenv ~~~~~~~ Node.js Virtual Environment builder. """ import os from setuptools import setup from nodeenv import nodeenv_version def read_file(file_name): return open( os.path.join( os.path.dirname(os.path.abspath(__file__)), file_name ) ).read() ldesc = read_f...
23.833333
70
0.624126
2cb4afae5d863b8fee0691f17d12c6ddca0d6ae0
48
py
Python
openre/agent/client/action/__init__.py
openre/openre
c5969df92cac83bdafd049e1c0a3bcf56b51223a
[ "MIT" ]
null
null
null
openre/agent/client/action/__init__.py
openre/openre
c5969df92cac83bdafd049e1c0a3bcf56b51223a
[ "MIT" ]
null
null
null
openre/agent/client/action/__init__.py
openre/openre
c5969df92cac83bdafd049e1c0a3bcf56b51223a
[ "MIT" ]
1
2016-02-14T11:20:57.000Z
2016-02-14T11:20:57.000Z
# -*- coding: utf-8 -*- """ Client actions """
8
23
0.479167
ab1860fc9c35c552db7ba06a5456ec7effdb9f92
4,019
py
Python
dotdotdot/config.py
nehararora/dotdotdot
a3e76596272745e2bd1d653139558011b39ea040
[ "BSD-2-Clause" ]
null
null
null
dotdotdot/config.py
nehararora/dotdotdot
a3e76596272745e2bd1d653139558011b39ea040
[ "BSD-2-Clause" ]
4
2019-02-14T18:30:03.000Z
2019-02-22T16:48:59.000Z
dotdotdot/config.py
nehararora/dotdotdot
a3e76596272745e2bd1d653139558011b39ea040
[ "BSD-2-Clause" ]
2
2019-09-03T15:52:54.000Z
2019-09-10T17:42:10.000Z
# -*- coding: utf-8 -*- """ config: Load application configuration and return an object representation. Allows accessing configuration using "dot-notation" for supported configuration file formats. Supported formats are: * yml * TODO: ini * TODO: json """ import yaml # from enum import Enum # Formats = Enum...
23.231214
79
0.628266
c4a23084fe377a7b449d5c8ec6c291862f4a50ca
1,599
py
Python
src/nlp_pytorch/data/base_dataset.py
dbradf/nlp-pytorch
957e3c5a1edf1f2ae9a8e281729395bed886bc87
[ "Apache-2.0" ]
null
null
null
src/nlp_pytorch/data/base_dataset.py
dbradf/nlp-pytorch
957e3c5a1edf1f2ae9a8e281729395bed886bc87
[ "Apache-2.0" ]
null
null
null
src/nlp_pytorch/data/base_dataset.py
dbradf/nlp-pytorch
957e3c5a1edf1f2ae9a8e281729395bed886bc87
[ "Apache-2.0" ]
null
null
null
import pandas as pd from torch.utils.data import Dataset, DataLoader TRAIN = "train" TEST = "test" VAL = "val" class SplitDataset(Dataset): def __init__(self, dataframe: pd.DataFrame, vectorizer) -> None: self.dataframe = dataframe self.vectorizer = vectorizer self.train_df = self.datafr...
27.568966
84
0.642902
bf90ffc9f40e89de18e4d1842aa7af0c6467996a
1,687
py
Python
test/test_examples.py
poponealex/suprenam
d57c99a2e43ad659b9ed70830402f46e7d31e02e
[ "MIT" ]
8
2022-03-05T19:41:37.000Z
2022-03-06T08:04:43.000Z
test/test_examples.py
poponealex/suprenam
d57c99a2e43ad659b9ed70830402f46e7d31e02e
[ "MIT" ]
2
2022-01-25T18:57:17.000Z
2022-03-14T13:24:59.000Z
test/test_examples.py
poponealex/suprenam
d57c99a2e43ad659b9ed70830402f46e7d31e02e
[ "MIT" ]
null
null
null
from pathlib import Path import pytest __import__("sys").path[0:0] = "." import src.secure_clauses as sc from src.file_system import FileSystem from extract_examples import extract_examples from reformat_examples import main as reformat_examples EXCEPTIONS = { "FileNotFoundError": FileNotFoundError, "Severa...
33.74
85
0.694724
d0c4b18ded546de284ad3da1e2bb9f8358242ed0
1,475
py
Python
tests/test_taskid.py
danielk333/pter
50e2eee5436abe0cf566b1dcebf5279bdca931b2
[ "MIT" ]
35
2020-06-30T05:18:42.000Z
2022-03-09T01:34:41.000Z
tests/test_taskid.py
danielk333/pter
50e2eee5436abe0cf566b1dcebf5279bdca931b2
[ "MIT" ]
13
2021-04-28T06:51:30.000Z
2022-01-07T15:11:44.000Z
tests/test_taskid.py
danielk333/pter
50e2eee5436abe0cf566b1dcebf5279bdca931b2
[ "MIT" ]
5
2021-04-27T09:25:09.000Z
2021-12-22T23:16:55.000Z
import unittest import pathlib from pytodotxt import Task from pter import utils from pter.source import Source class FakeSource: def __init__(self, tasks): self.tasks = tasks self.filename = pathlib.Path('/tmp/test.txt') class TestTaskIDGeneration(unittest.TestCase): def setUp(self): ...
30.729167
85
0.663051
e4b2aa45b304cbbb4ca6e93ef206df95c549ced9
5,300
py
Python
tests/util.py
alexey-v-paramonov/grab
a3bfda3ae16b615eeaa0323c2ba72a9d901cba7b
[ "MIT" ]
null
null
null
tests/util.py
alexey-v-paramonov/grab
a3bfda3ae16b615eeaa0323c2ba72a9d901cba7b
[ "MIT" ]
null
null
null
tests/util.py
alexey-v-paramonov/grab
a3bfda3ae16b615eeaa0323c2ba72a9d901cba7b
[ "MIT" ]
1
2022-01-12T14:51:27.000Z
2022-01-12T14:51:27.000Z
import os from unittest import TestCase import logging from contextlib import contextmanager from tempfile import mkdtemp, mkstemp from shutil import rmtree import platform import itertools from test_server import TestServer from grab import Grab from grab import base logger = logging.getLogger('tests.util') # pylin...
29.943503
76
0.583396
63ae8ebc8cde7f5c00a8f28d9a347a9a7c2b89d9
300
py
Python
examples/models/gaussian/create_gaussian_conv_rbm.py
recogna-lab/recogners
711295f53b47c76246d57df24b75d18bc7ec62e8
[ "MIT" ]
1
2019-07-04T19:36:42.000Z
2019-07-04T19:36:42.000Z
examples/models/gaussian/create_gaussian_conv_rbm.py
recogna-lab/recogners
711295f53b47c76246d57df24b75d18bc7ec62e8
[ "MIT" ]
null
null
null
examples/models/gaussian/create_gaussian_conv_rbm.py
recogna-lab/recogners
711295f53b47c76246d57df24b75d18bc7ec62e8
[ "MIT" ]
1
2019-12-09T16:18:51.000Z
2019-12-09T16:18:51.000Z
from learnergy.models.gaussian import GaussianConvRBM # Creates a GaussianConvRBM-based class model = GaussianConvRBM( visible_shape=(32, 32), filter_shape=(9, 9), n_filters=16, n_channels=3, steps=1, learning_rate=0.00001, momentum=0.5, decay=0, use_gpu=True, )
20
53
0.686667
4453f2881bf60fe4d6318e4b8297e983a64db563
5,220
py
Python
pds_github_util/gh_pages/summary.py
nasa-pds-engineering-node/pds-github-util
d65aa96787e77fe8d4ee8c023d5c6ca32bbd13c9
[ "Apache-2.0" ]
null
null
null
pds_github_util/gh_pages/summary.py
nasa-pds-engineering-node/pds-github-util
d65aa96787e77fe8d4ee8c023d5c6ca32bbd13c9
[ "Apache-2.0" ]
1
2021-10-13T19:02:04.000Z
2021-10-13T19:02:04.000Z
pds_github_util/gh_pages/summary.py
nasa-pds-engineering-node/pds-github-util
d65aa96787e77fe8d4ee8c023d5c6ca32bbd13c9
[ "Apache-2.0" ]
null
null
null
import os import logging from pds_github_util.tags.tags import Tags from pds_github_util.utils import RstClothReferenceable from pds_github_util.corral.herd import Herd logger = logging.getLogger(__name__) COLUMNS = ['manual', 'changelog', 'requirements', 'download', 'license', 'feedback'] REPO_TYPES = { 'tool':...
31.257485
154
0.646935
ff620e9de0f3d0b9899897e1f49f68f092e2ad22
4,614
py
Python
test/functional/combine_logs.py
MagnaChain/MagnaChain-dev-master
c83e7a8b9e8f9ae8684a0e3a11f1eeb42dfa1272
[ "MIT" ]
26
2018-11-30T09:01:34.000Z
2020-03-11T00:41:52.000Z
test/functional/combine_logs.py
MagnaChain/MagnaChain-dev-master
c83e7a8b9e8f9ae8684a0e3a11f1eeb42dfa1272
[ "MIT" ]
3
2019-01-01T09:06:22.000Z
2019-04-01T10:06:01.000Z
test/functional/combine_logs.py
MagnaChain/MagnaChain-dev-master
c83e7a8b9e8f9ae8684a0e3a11f1eeb42dfa1272
[ "MIT" ]
24
2018-11-30T03:32:53.000Z
2020-03-20T04:30:34.000Z
#!/usr/bin/env python3 """Combine logs from multiple magnachain nodes as well as the test_framework log. This streams the combined log output to stdout. Use combine_logs.py > outputfile to write to an outputfile.""" import argparse from collections import defaultdict, namedtuple import heapq import itertools import o...
40.121739
196
0.618336
cb2e67c037fdc11c6cc4d1f6262564abd2764301
17,446
py
Python
mmpose/models/backbones/mspn.py
hohmannr/mmpose
f24d56fde8bb206f6bfc2392dafcdc52c66a9236
[ "Apache-2.0" ]
15
2020-12-10T07:43:34.000Z
2022-03-21T08:38:36.000Z
mmpose/models/backbones/mspn.py
hohmannr/mmpose
f24d56fde8bb206f6bfc2392dafcdc52c66a9236
[ "Apache-2.0" ]
null
null
null
mmpose/models/backbones/mspn.py
hohmannr/mmpose
f24d56fde8bb206f6bfc2392dafcdc52c66a9236
[ "Apache-2.0" ]
10
2020-12-17T07:57:10.000Z
2022-03-08T07:17:12.000Z
import copy as cp import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import (ConvModule, MaxPool2d, constant_init, kaiming_init, normal_init) from mmcv.runner.checkpoint import load_state_dict from mmpose.utils import get_root_logger from ..registry import BACKBONES from .base_b...
35.387424
79
0.556632
c390294ee3425e1214799c54023ec1566d013dc6
1,336
py
Python
data_retriever/retriever.py
johanahlqvist/poe-neural-pricer
f37617e0c4f744522ee60e968be6d6f628f053aa
[ "MIT" ]
4
2018-03-07T10:28:44.000Z
2019-05-09T19:14:40.000Z
data_retriever/retriever.py
johanahlqvist/poe-neural-pricer
f37617e0c4f744522ee60e968be6d6f628f053aa
[ "MIT" ]
null
null
null
data_retriever/retriever.py
johanahlqvist/poe-neural-pricer
f37617e0c4f744522ee60e968be6d6f628f053aa
[ "MIT" ]
null
null
null
# Retrieves data from the public stash API import requests import json from random import randint import time BASE_API_URL = 'http://www.pathofexile.com/api/public-stash-tabs' class Retriever: def retrieve(self, next_id, request_time): payload = {} payload = {'id': next_id} while time.tim...
33.4
79
0.61003
8e16cccd685d6ca29164b2cf838d35b593386105
977
py
Python
levenshtein-word-replacement/levenshtein-word-replacement.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
20
2015-06-05T14:02:12.000Z
2021-11-02T22:19:18.000Z
levenshtein-word-replacement/levenshtein-word-replacement.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
1
2015-10-15T12:58:35.000Z
2015-10-15T12:58:35.000Z
levenshtein-word-replacement/levenshtein-word-replacement.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
1
2021-04-08T23:50:06.000Z
2021-04-08T23:50:06.000Z
#!/usr/bin/env python import editdist import random import string def main(argv): words = [] with open(argv[2], 'r') as f: for line in f: bits = line.strip().split() for bit in bits: words.extend(bit.split('--')) with open(argv[1], 'r') as f: for ...
22.72093
50
0.528147
706425b5d9663cca6a7e2cd4c4c74ba888d5beec
4,055
py
Python
frontend/pages/admin_portal/message_sender.py
zagaran/instant-census
62dd5bbc62939f43776a10708ef663722ead98af
[ "MIT" ]
1
2021-06-01T17:03:47.000Z
2021-06-01T17:03:47.000Z
frontend/pages/admin_portal/message_sender.py
zagaran/instant-census
62dd5bbc62939f43776a10708ef663722ead98af
[ "MIT" ]
null
null
null
frontend/pages/admin_portal/message_sender.py
zagaran/instant-census
62dd5bbc62939f43776a10708ef663722ead98af
[ "MIT" ]
null
null
null
from flask import request, session, jsonify, flash from flask.blueprints import Blueprint from pytz import UnknownTimeZoneError import pytz from bson.objectid import ObjectId from backend.admin_portal.common_helpers import validate_cohort, validate_user, validate_cohort_id_match, \ raise_404_error, raise_400_erro...
37.201835
115
0.713687
544078bfaa0ad4f586c44eb56111e56480b4fcac
42,165
py
Python
rpython/translator/c/funcgen.py
bxtkezhan/rpython
10d53fe95495c3be5933320c277f6dd26238408b
[ "MIT" ]
11
2020-07-02T13:57:46.000Z
2022-01-23T18:04:42.000Z
rpython/translator/c/funcgen.py
GabriellaUwa/pypy
2ede3b557a25cb49db969e942ca5a7f8a9eae0d4
[ "Apache-2.0", "OpenSSL" ]
1
2021-11-05T06:29:33.000Z
2021-11-06T12:33:46.000Z
rpython/translator/c/funcgen.py
GabriellaUwa/pypy
2ede3b557a25cb49db969e942ca5a7f8a9eae0d4
[ "Apache-2.0", "OpenSSL" ]
2
2020-12-17T09:35:36.000Z
2021-11-24T15:34:08.000Z
import sys from rpython.translator.c.support import cdecl from rpython.translator.c.support import llvalue_from_constant, gen_assignments from rpython.translator.c.support import c_string_constant, barebonearray from rpython.flowspace.model import Variable, Constant, mkentrymap from rpython.rtyper.lltypesystem.lltype i...
39.480337
89
0.540543
89825d4d73ef627799bcc97495c584a4398d2f08
6,989
py
Python
src/qibo/tests/test_core_hamiltonians.py
mofeing/qibo
3eb675ba893bf35f103d41a8a64c86aae9cbf616
[ "Apache-2.0" ]
51
2021-05-21T23:50:49.000Z
2022-03-28T12:12:34.000Z
src/qibo/tests/test_core_hamiltonians.py
mofeing/qibo
3eb675ba893bf35f103d41a8a64c86aae9cbf616
[ "Apache-2.0" ]
138
2021-05-20T14:29:13.000Z
2022-03-30T09:17:59.000Z
src/qibo/tests/test_core_hamiltonians.py
mofeing/qibo
3eb675ba893bf35f103d41a8a64c86aae9cbf616
[ "Apache-2.0" ]
20
2021-06-11T18:13:09.000Z
2022-03-28T07:32:09.000Z
"""Test methods in `qibo/core/hamiltonians.py`.""" import pytest import numpy as np from qibo import hamiltonians, K from qibo.tests.utils import random_complex def test_hamiltonian_init(): with pytest.raises(TypeError): H = hamiltonians.Hamiltonian(2, "test") H1 = hamiltonians.Hamiltonian(2, np.eye(4...
31.913242
76
0.648877
d058dbb6f63bd6e14e75c30afb2b3858681cd80f
1,337
py
Python
digest/migrations/0014_auto_20150731_0859.py
PURNA-ROCK/pythondigest
ba21758a25a47de19800b208c420f16d6688a16b
[ "MIT" ]
124
2015-08-17T19:41:16.000Z
2022-01-12T00:25:52.000Z
digest/migrations/0014_auto_20150731_0859.py
PURNA-ROCK/pythondigest
ba21758a25a47de19800b208c420f16d6688a16b
[ "MIT" ]
62
2015-08-17T02:13:20.000Z
2020-04-17T19:07:40.000Z
digest/migrations/0014_auto_20150731_0859.py
PURNA-ROCK/pythondigest
ba21758a25a47de19800b208c420f16d6688a16b
[ "MIT" ]
73
2015-08-18T13:50:47.000Z
2021-09-27T14:09:47.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [('digest', '0013_auto_20150730_1613'), ] operations = [migrations.CreateModel( name='Tag', fields=[('id', models.AutoField(verbose_n...
40.515152
109
0.495138
c7c8fd8e358a81126d6721dc7d9201b2c8caa890
3,117
py
Python
FD/lenet.py
Lucasc-99/Meta-set
14bd29aa3facb9e44d7eb7af66b45b626cbd4ed5
[ "MIT" ]
13
2021-05-26T09:45:41.000Z
2021-12-27T20:56:53.000Z
FD/lenet.py
Lucasc-99/Meta-set
14bd29aa3facb9e44d7eb7af66b45b626cbd4ed5
[ "MIT" ]
null
null
null
FD/lenet.py
Lucasc-99/Meta-set
14bd29aa3facb9e44d7eb7af66b45b626cbd4ed5
[ "MIT" ]
4
2021-08-29T08:56:36.000Z
2022-03-05T09:57:39.000Z
import torch import torch.nn as nn import torch.nn.functional as F def init_weights(m): classname = m.__class__.__name__ if classname.find('Conv2d') != -1 or classname.find('ConvTranspose2d') != -1: nn.init.kaiming_uniform_(m.weight) nn.init.zeros_(m.bias) elif classname.find('BatchNorm') ...
28.081081
96
0.53128
af3eaa518e5fce8535319284506107764cd20e0a
4,747
py
Python
examples/sweeper.py
BitCashCF/multimerchant-python
9dcf40c1542f38ffa2b39a21d8dba8fb7fb2b027
[ "MIT" ]
29
2015-01-18T18:44:58.000Z
2022-03-31T02:28:05.000Z
examples/sweeper.py
BitCashCF/multimerchant-python
9dcf40c1542f38ffa2b39a21d8dba8fb7fb2b027
[ "MIT" ]
2
2016-08-12T06:18:13.000Z
2017-07-18T08:49:01.000Z
examples/sweeper.py
BitCashCF/multimerchant-python
9dcf40c1542f38ffa2b39a21d8dba8fb7fb2b027
[ "MIT" ]
19
2015-05-03T19:28:10.000Z
2022-02-09T09:46:10.000Z
from multimerchant.wallet import Wallet import time from block_io import BlockIo import six import os import sys try: os.environ["HD_PRIVKEY"] except KeyError: print "Please generate an HD wallet first. See README.rst on https://github.com/blockio/multimerchant-python" print "Or do this:" print "\t $ p...
47.949495
155
0.742364
53ec161ec76e395cec0aa33e853686b12b13f82c
652
py
Python
omnitool/shared.py
Berserker66/omnitool
6bf88ba86a7c68a968f8c8db569b57e6ba836e8e
[ "MIT" ]
40
2015-03-15T14:38:24.000Z
2021-12-18T04:30:39.000Z
omnitool/shared.py
Berserker66/omnitool
6bf88ba86a7c68a968f8c8db569b57e6ba836e8e
[ "MIT" ]
31
2015-03-14T12:12:14.000Z
2022-02-27T17:50:56.000Z
omnitool/shared.py
Berserker66/omnitool
6bf88ba86a7c68a968f8c8db569b57e6ba836e8e
[ "MIT" ]
13
2015-07-31T11:40:41.000Z
2021-04-09T14:36:07.000Z
import sys import os from pathlib import Path from appdirs import user_config_dir from .version import Version __all__ = ("__version__", "appdata", "cachepath", "cache", "lang", "theme") __version__ = Version(180501) appdata = user_config_dir('omnitool', "", roaming=True) cachepath = os.path.join(appdata, "cache.di...
22.482759
75
0.722393
ab62c3bc191b88bcbd1f9fd1ad94b1cb13e0f200
21,880
py
Python
libqtile/layout/tree.py
ValentijnvdBeek/qtile
92bfafe2cf98789e531b2381c92eb689742c667c
[ "MIT" ]
4
2015-07-14T00:03:22.000Z
2020-10-03T04:45:05.000Z
libqtile/layout/tree.py
ValentijnvdBeek/qtile
92bfafe2cf98789e531b2381c92eb689742c667c
[ "MIT" ]
null
null
null
libqtile/layout/tree.py
ValentijnvdBeek/qtile
92bfafe2cf98789e531b2381c92eb689742c667c
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (c) 2011 Mounier Florian # Copyright (c) 2011 Paul Colomiets # Copyright (c) 2012 roger # Copyright (c) 2012-2014 Tycho Andersen # Copyright (c) 2013 Tao Sauvage # Copyright (c) 2013 Arnas Udovicius # Copyright (c) 2014 ramnes # Copyright (c) 2014 Sean Vig # Copyright (c) 2014 Nathan ...
32.511144
86
0.578016
c674fc70964ef5289ef6e9bcd06a11918a7fa1e2
495
py
Python
ip-messaging/rest/members/retrieve-member/retrieve-member.6.x.py
azaddeveloper/api-snippets
f88b153cd7186fa70b33733b205886502db0d1f2
[ "MIT" ]
3
2020-05-05T10:01:02.000Z
2021-02-06T14:23:13.000Z
ip-messaging/rest/members/retrieve-member/retrieve-member.6.x.py
azaddeveloper/api-snippets
f88b153cd7186fa70b33733b205886502db0d1f2
[ "MIT" ]
null
null
null
ip-messaging/rest/members/retrieve-member/retrieve-member.6.x.py
azaddeveloper/api-snippets
f88b153cd7186fa70b33733b205886502db0d1f2
[ "MIT" ]
1
2019-10-02T14:36:36.000Z
2019-10-02T14:36:36.000Z
# Download the Python helper library from twilio.com/docs/python/install from twilio.rest import Client # Initialize the client account = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" token = "your_auth_token" client = Client(account, token) member = client.chat \ .services("ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")...
30.9375
72
0.707071
14b118ca5afc0f8fefcacab8d40e74a35bfc7053
7,718
py
Python
nltk/corpus/reader/senseval.py
joelgrondman/nltk205sslfix
ca141115a2a4d11da62b43f204285bcc74bcbda6
[ "Apache-2.0" ]
137
2015-03-14T06:16:37.000Z
2022-03-27T08:32:38.000Z
nltk/corpus/reader/senseval.py
shareablee/nltk-2.0.5
f0c0862c4bcc726bc635d7e1a34e714ac35753ca
[ "Apache-2.0" ]
2
2020-08-09T17:03:47.000Z
2020-08-19T06:45:17.000Z
nltk/corpus/reader/senseval.py
shareablee/nltk-2.0.5
f0c0862c4bcc726bc635d7e1a34e714ac35753ca
[ "Apache-2.0" ]
57
2015-01-06T14:18:27.000Z
2021-12-26T09:37:30.000Z
# Natural Language Toolkit: Senseval 2 Corpus Reader # # Copyright (C) 2001-2012 NLTK Project # Author: Trevor Cohn <tacohn@cs.mu.oz.au> # Steven Bird <sb@csse.unimelb.edu.au> (modifications) # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT """ Read from the Senseval 2 Corpus. SENSEVAL...
38.59
78
0.518269
f2e74285a345bf7f2647bc1b09051ff4f579a405
2,899
py
Python
brian2/__init__.py
CharleeSF/brian2
d2be1ed33a8ac51b1891f89a2544123a937c43ff
[ "BSD-2-Clause" ]
null
null
null
brian2/__init__.py
CharleeSF/brian2
d2be1ed33a8ac51b1891f89a2544123a937c43ff
[ "BSD-2-Clause" ]
null
null
null
brian2/__init__.py
CharleeSF/brian2
d2be1ed33a8ac51b1891f89a2544123a937c43ff
[ "BSD-2-Clause" ]
null
null
null
''' Brian 2.0 ''' # Import setuptools to do some monkey patching of distutils, necessary for # working weave/Cython on Windows with the Python for C++ compiler import setuptools as _setuptools # Check basic dependencies import sys from distutils.version import LooseVersion missing = [] try: import numpy except Imp...
29.282828
91
0.658848
db53019c9accbf1bdb73ecdea18a60806cc2921e
2,879
py
Python
control/tsndctl/postprocessing.py
getty708/atr-tk
33c6bb42ebdf16c188707e79078ea9dd3a80d8d0
[ "MIT" ]
null
null
null
control/tsndctl/postprocessing.py
getty708/atr-tk
33c6bb42ebdf16c188707e79078ea9dd3a80d8d0
[ "MIT" ]
2
2021-10-10T14:07:01.000Z
2022-03-23T12:59:56.000Z
control/tsndctl/postprocessing.py
getty708/atr-tk
33c6bb42ebdf16c188707e79078ea9dd3a80d8d0
[ "MIT" ]
null
null
null
from pathlib import Path import numpy as np import pandas as pd import json from logging import getLogger logger = getLogger("tsndctl.postprocessing") METADATA_KEYS = [ "MemEntryCount", "FreeMemSize", "ReadMemDataCtl", "EntryInfo", "EntryDetail", ] def summarize_log_parse_results(metadata, df_a...
29.989583
76
0.49809
c917dd92241a141aaa4f3c7bd71dffef09e0ddb4
1,696
py
Python
tests/bugs/core_4678_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_4678_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_4678_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_4678 # title: Regression: incorrect calculation of byte-length for view columns # decription: # tracker_id: CORE-4678 # min_versions: ['2.5.4'] # versions: 2.5.4 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Action # version:...
22.918919
115
0.630307
29d60fef1678dd018281cf886138f7ae624a2b99
1,320
py
Python
graphene/types/base.py
spacether/graphene
37d6eaea465c8dca981efd173b7c74db9a01830e
[ "MIT" ]
null
null
null
graphene/types/base.py
spacether/graphene
37d6eaea465c8dca981efd173b7c74db9a01830e
[ "MIT" ]
null
null
null
graphene/types/base.py
spacether/graphene
37d6eaea465c8dca981efd173b7c74db9a01830e
[ "MIT" ]
null
null
null
from typing import Type from ..utils.subclass_with_meta import SubclassWithMeta from ..utils.trim_docstring import trim_docstring class BaseOptions: name = None # type: str description = None # type: str _frozen = False # type: bool def __init__(self, class_type): self.class_type = class...
28.695652
72
0.651515
72cc56ba0db59ae19c6e5c6ad741615255b95018
16,450
py
Python
aquarium.py
edouardparis/aquarium
7877c68360171a2a800a96bd71bec08ac9257775
[ "BSD-3-Clause" ]
null
null
null
aquarium.py
edouardparis/aquarium
7877c68360171a2a800a96bd71bec08ac9257775
[ "BSD-3-Clause" ]
null
null
null
aquarium.py
edouardparis/aquarium
7877c68360171a2a800a96bd71bec08ac9257775
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse import logging import os import shutil import socket import subprocess import sys import test_framework import time import traceback from concurrent import futures from test_framework.bitcoind import BitcoinD from test_framework.revault_network import RevaultNetwork from test_fra...
36.474501
195
0.577933
ab83a8b46b8fea2ff15247ef66a3151c035e4c07
23,740
py
Python
analog_ec/layout/passives/resistor/ladder.py
xyabc/bag_analog_ec
e92b4ce8d6422d9a5731381bb3feeba54dfe33a9
[ "BSD-3-Clause" ]
1
2021-08-03T12:32:46.000Z
2021-08-03T12:32:46.000Z
analog_ec/layout/passives/resistor/ladder.py
xyabc/bag_analog_ec
e92b4ce8d6422d9a5731381bb3feeba54dfe33a9
[ "BSD-3-Clause" ]
null
null
null
analog_ec/layout/passives/resistor/ladder.py
xyabc/bag_analog_ec
e92b4ce8d6422d9a5731381bb3feeba54dfe33a9
[ "BSD-3-Clause" ]
1
2020-01-07T04:54:47.000Z
2020-01-07T04:54:47.000Z
# -*- coding: utf-8 -*- """This module defines resistor ladder layout generators. """ from typing import TYPE_CHECKING, Dict, Set, Any, Tuple from itertools import chain from bag.layout.template import TemplateBase from abs_templates_ec.resistor.core import ResArrayBase from analog_ec.layout.passives.substrate imp...
44.708098
99
0.584751
4ca03ce5cccc025b85374645f3d02d451e94d3e4
2,332
py
Python
test_add_group.py
Katie777/Python_project
135f5c09dd77ac83dda658608171205efb3d4e68
[ "Apache-2.0" ]
null
null
null
test_add_group.py
Katie777/Python_project
135f5c09dd77ac83dda658608171205efb3d4e68
[ "Apache-2.0" ]
null
null
null
test_add_group.py
Katie777/Python_project
135f5c09dd77ac83dda658608171205efb3d4e68
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from selenium.webdriver.firefox.webdriver import WebDriver from selenium.webdriver.common.action_chains import ActionChains import time, unittest def is_alert_present(wd): try: wd.switch_to_alert().text return True except: return False class test_add_group(unitt...
40.206897
76
0.665952
3508265122b7f0292e81459384358d6f43bccb6e
901
py
Python
level4_linkedlist.py
hgleagle/python-challenge
801c6a5ca3d785f91e2b6d03856ef0b9983ba4f7
[ "MIT" ]
null
null
null
level4_linkedlist.py
hgleagle/python-challenge
801c6a5ca3d785f91e2b6d03856ef0b9983ba4f7
[ "MIT" ]
null
null
null
level4_linkedlist.py
hgleagle/python-challenge
801c6a5ca3d785f91e2b6d03856ef0b9983ba4f7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from urllib import request from urllib.parse import urlparse, urljoin import re if __name__ == "__main__": url = "http://www.pythonchallenge.com/pc/def/linkedlist.php" with request.urlopen(url) as f: html = f.read().decode() data = re.findall('a href="(.*?)">', html, 0)...
29.064516
64
0.532741
f06c518b7b6776bb134f48309c2f1c8dabc1e0a9
4,015
py
Python
ingest.py
automationlogic/hackday-data-miners
882e22c81f5b1a0d5a4a38b225cf78dce8b2b796
[ "MIT" ]
null
null
null
ingest.py
automationlogic/hackday-data-miners
882e22c81f5b1a0d5a4a38b225cf78dce8b2b796
[ "MIT" ]
null
null
null
ingest.py
automationlogic/hackday-data-miners
882e22c81f5b1a0d5a4a38b225cf78dce8b2b796
[ "MIT" ]
1
2020-12-14T18:40:13.000Z
2020-12-14T18:40:13.000Z
import requests as rq import logging import os import time import datetime import csv import json from random import randint from google.cloud import bigquery from google.cloud.exceptions import NotFound, Conflict PRECIPITATION_TYPE = "pr" TEMPERATURE_TYPE = "tas" MONTHLY_MOVING_AVERAGE = "mavg" print("Preparing.....
34.913043
136
0.649315
0280863f83ef18e1aefd1d9192a26b6b17c06257
4,962
py
Python
homeassistant/components/websocket_api/connection.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/websocket_api/connection.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/websocket_api/connection.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Connection session.""" from __future__ import annotations import asyncio from collections.abc import Callable, Hashable from contextvars import ContextVar from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.auth.models import RefreshToken, User from homeassistant.core import Context,...
33.302013
85
0.616082
9c32cd2951989e4535d0af5bc9a761c15560f13a
44,482
py
Python
icoshift3/icoshift.py
Sour-Smelno/icoshift_py3
1a4b6947bfa61fb66682e04372d92865bd517637
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
icoshift3/icoshift.py
Sour-Smelno/icoshift_py3
1a4b6947bfa61fb66682e04372d92865bd517637
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
icoshift3/icoshift.py
Sour-Smelno/icoshift_py3
1a4b6947bfa61fb66682e04372d92865bd517637
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from __future__ import division, print_function import numpy import scipy as sp from scipy.sparse import dia_matrix from numpy import nanmean, nanmedian from copy import copy import sys import logging try: basestring except NameError: basestring = str def is_number(s): try: if isinstance(s, base...
34.508922
162
0.540848
baea76ac4e82735bca6348ba631bd45929cd648d
6,160
py
Python
emergency_tool.py
Denevola/openNAMU
08d8d82e101ed9f47d34b0c58c8359db54887e2c
[ "BSD-3-Clause" ]
null
null
null
emergency_tool.py
Denevola/openNAMU
08d8d82e101ed9f47d34b0c58c8359db54887e2c
[ "BSD-3-Clause" ]
null
null
null
emergency_tool.py
Denevola/openNAMU
08d8d82e101ed9f47d34b0c58c8359db54887e2c
[ "BSD-3-Clause" ]
null
null
null
# Load import time from route.tool.func import * while True: data_db_load = input('Load DB (Y) [Y, N] : ') if data_db_load in ('Y', 'N'): break if data_db_load == 'Y': data_db_set = class_check_json() db_data_get(data_db_set['type']) do_db_set(data_db_set) load_db = get_db_connect_old...
26.899563
108
0.559578
a9d262e997257fc72439879316a09b04795b607a
2,565
py
Python
openstack_dashboard/dashboards/admin/routers/tables.py
rackerlabs/horizon
8914ed95fc8fa44771f5f3ec827e325a5855b60a
[ "Apache-2.0" ]
2
2018-10-21T22:30:29.000Z
2020-11-21T08:58:31.000Z
openstack_dashboard/dashboards/admin/routers/tables.py
e/horizon
abbce256b68178ebf42816eb87303292212c1dfe
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/routers/tables.py
e/horizon
abbce256b68178ebf42816eb87303292212c1dfe
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012, Nachi Ueno, NTT MCL, 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...
33.75
78
0.647953
2db31191eda14880291d71cc397c0fcf6bbe0c55
10,137
py
Python
test_stopwatch.py
bsc-s2/stopwatch
805752aa7c341dbb162eb430c4032ce829366ec3
[ "Apache-2.0" ]
null
null
null
test_stopwatch.py
bsc-s2/stopwatch
805752aa7c341dbb162eb430c4032ce829366ec3
[ "Apache-2.0" ]
null
null
null
test_stopwatch.py
bsc-s2/stopwatch
805752aa7c341dbb162eb430c4032ce829366ec3
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import enum import pytest from mock import Mock from stopwatch import ( format_report, TraceAnnotation, StopWatch, ) class MyBuckets(enum.Enum): BUCKET_A = 1 BUCKET_B = 2 def add_timers(...
42.062241
92
0.58834
9cb06d620205a93a94f516b116f25e9090ae7432
12,120
py
Python
vmotion.py
h-mineta/vmware-pyvmomi-tools
5d48d6fb2169a519a6f24bf2d27ee3f94ae95fea
[ "MIT" ]
null
null
null
vmotion.py
h-mineta/vmware-pyvmomi-tools
5d48d6fb2169a519a6f24bf2d27ee3f94ae95fea
[ "MIT" ]
null
null
null
vmotion.py
h-mineta/vmware-pyvmomi-tools
5d48d6fb2169a519a6f24bf2d27ee3f94ae95fea
[ "MIT" ]
null
null
null
#!/usr/bin/python3.5 -tt # -*- coding: utf-8 -*- """ Copyright (c) 2017 h-mineta <h-mineta@0nyx.net> This software is released under the MIT License. pip3 install pyvmomi pytz """ import atexit import sys import re from datetime import datetime from logging import getLogger, Formatter, StreamHandler, CRITICAL, WARNI...
37.757009
132
0.555776
eecc2ca3c67e160a036e3106dba5b1bd669c6af2
4,092
py
Python
src/riaps/run/ansPort.py
mbellabah/riaps-pycom
6995d1b5d58c5f8b03b6eb75a5c5c34f9de00f5e
[ "Apache-2.0" ]
null
null
null
src/riaps/run/ansPort.py
mbellabah/riaps-pycom
6995d1b5d58c5f8b03b6eb75a5c5c34f9de00f5e
[ "Apache-2.0" ]
null
null
null
src/riaps/run/ansPort.py
mbellabah/riaps-pycom
6995d1b5d58c5f8b03b6eb75a5c5c34f9de00f5e
[ "Apache-2.0" ]
null
null
null
''' Created on Oct 10, 2016 @author: riaps ''' import time import zmq import struct from .port import Port from riaps.run.exc import OperationError,PortError from riaps.utils.config import Config from zmq.error import ZMQError try: import cPickle pickle = cPickle except: cPickle = None import pickle ...
32.220472
124
0.577957
6f637310ac06c515ecc8437d0af948bf6de4d3a0
658
py
Python
clients/python-fastapi/generated/src/openapi_server/models/free_style_projectactions.py
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/python-fastapi/generated/src/openapi_server/models/free_style_projectactions.py
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/python-fastapi/generated/src/openapi_server/models/free_style_projectactions.py
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 class FreeStyleProjectactions(BaseModel): """NOTE: Th...
26.32
96
0.743161
d49e9592c8658910d6180947346f6788ba5fdb29
498
py
Python
tests/assignments/test_assign7.py
acc-cosc-1336/cosc-1336-spring-2018-vcruz350
0cee9fde3d4129c51626c4e0c870972aebec9b95
[ "MIT" ]
null
null
null
tests/assignments/test_assign7.py
acc-cosc-1336/cosc-1336-spring-2018-vcruz350
0cee9fde3d4129c51626c4e0c870972aebec9b95
[ "MIT" ]
1
2018-03-08T19:46:08.000Z
2018-03-08T20:00:47.000Z
tests/assignments/test_assign7.py
acc-cosc-1336/cosc-1336-spring-2018-vcruz350
0cee9fde3d4129c51626c4e0c870972aebec9b95
[ "MIT" ]
null
null
null
import unittest #write the import for function for assignment7 sum_list_values from src.assignments.assignment7 import sum_list_values class Test_Assign7(unittest.TestCase): def sample_test(self): self.assertEqual(1,1) #create a test for the sum_list_values function with list elements: # bill 23 ...
29.294118
71
0.736948
9c1270a5bbbe1cd0bca120127700d0922f79d41b
2,933
py
Python
scripts/m2.py
byu-iot-security/cheeziot_webserver
bf3b173ff0ef0165329212f2ee65485191f75abc
[ "MIT" ]
2
2017-02-13T11:55:56.000Z
2017-02-15T08:27:49.000Z
scripts/m2.py
byu-iot-security/cheeziot_webserver
bf3b173ff0ef0165329212f2ee65485191f75abc
[ "MIT" ]
null
null
null
scripts/m2.py
byu-iot-security/cheeziot_webserver
bf3b173ff0ef0165329212f2ee65485191f75abc
[ "MIT" ]
null
null
null
import pymongo import os import datetime from base64 import decodestring from bson.objectid import ObjectId from pymongo import MongoClient config_file = open("config", 'r') collection = '' database = '' #Parse the configuration (config) file for line in config_file: field,val = line.split("=") if(field == "COLL...
30.237113
115
0.707467
3a92596535361ffe65d246ee1e13cd2e0b154c17
4,896
py
Python
inria/visualization.py
gerberka/catalyst-inria
06dbd6b34b030255ea3df6383434b42e9da85f56
[ "MIT" ]
44
2019-04-25T19:45:22.000Z
2022-02-07T12:56:46.000Z
inria/visualization.py
gerberka/catalyst-inria
06dbd6b34b030255ea3df6383434b42e9da85f56
[ "MIT" ]
10
2020-04-26T19:53:34.000Z
2022-01-11T11:58:24.000Z
inria/visualization.py
gerberka/catalyst-inria
06dbd6b34b030255ea3df6383434b42e9da85f56
[ "MIT" ]
6
2019-09-10T09:37:15.000Z
2022-01-14T14:10:10.000Z
from typing import Callable, Optional, List, Union import cv2 import numpy as np from pytorch_toolbelt.utils.torch_utils import rgb_image_from_tensor, to_numpy from inria.dataset import ( OUTPUT_OFFSET_KEY, OUTPUT_MASK_4_KEY, OUTPUT_MASK_32_KEY, OUTPUT_MASK_16_KEY, OUTPUT_MASK_8_KEY, OUTPUT_MA...
42.206897
118
0.649918
57d21cbc4569406ee7ec424e134992748e849937
4,416
py
Python
python/pb/envoy/annotations/deprecation_pb2.py
pomerium/enterprise-client
899e568e59955533179167ff08066962991476c5
[ "Apache-2.0" ]
1
2021-09-14T04:34:29.000Z
2021-09-14T04:34:29.000Z
src/envoy/annotations/deprecation_pb2.py
pomerium/enterprise-client-python
366d72cc9cd6dc05fae704582deb13b1ccd20a32
[ "Apache-2.0" ]
3
2021-09-15T15:10:41.000Z
2022-01-04T21:03:03.000Z
python/pb/envoy/annotations/deprecation_pb2.py
pomerium/enterprise-client
899e568e59955533179167ff08066962991476c5
[ "Apache-2.0" ]
1
2021-09-14T17:32:12.000Z
2021-09-14T17:32:12.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: envoy/annotations/deprecation.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflecti...
59.675676
594
0.845788
ef88abd0dc622197c9dbf3ac4806e24681c5cedc
47
py
Python
graphpy/__init__.py
tscizzle/pygraph
b6fe9e21bd30ae4249d02a1818b49351575fa98e
[ "MIT" ]
1
2017-04-09T21:58:28.000Z
2017-04-09T21:58:28.000Z
graphpy/__init__.py
tscizzle/graphpy
b6fe9e21bd30ae4249d02a1818b49351575fa98e
[ "MIT" ]
null
null
null
graphpy/__init__.py
tscizzle/graphpy
b6fe9e21bd30ae4249d02a1818b49351575fa98e
[ "MIT" ]
null
null
null
""" Module defining a graph data structure """
11.75
38
0.702128
0d9e8f5a3d35ec8414e4a7dcd3e00b6d58fc9ee6
2,270
py
Python
scripts/merge_func_table.py
hbc/mammoth_code
2e6909514e8ff232981ea2cb03f078257bc5c847
[ "MIT" ]
1
2017-05-22T01:18:13.000Z
2017-05-22T01:18:13.000Z
scripts/merge_func_table.py
hbc/mammoth_code
2e6909514e8ff232981ea2cb03f078257bc5c847
[ "MIT" ]
null
null
null
scripts/merge_func_table.py
hbc/mammoth_code
2e6909514e8ff232981ea2cb03f078257bc5c847
[ "MIT" ]
null
null
null
import os import sys import pybedtools import shutil from collections import defaultdict hg19="ann/hg19_pos.bed" variants="all_23genomes.xls" ann="ann/hg19_ann.txt" hg19_map = {} with open(hg19) as inh: for line in inh: cols = line.strip().split() hg19_map[cols[3]] = "%s:%s" % (cols[0], int(cols[1...
31.971831
70
0.463877
d4a87db7a3a5292d9840172f7e248163d44bcf4f
2,356
py
Python
readthedocs/core/mixins.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
4,054
2015-01-01T00:58:07.000Z
2019-06-28T05:50:49.000Z
readthedocs/core/mixins.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
4,282
2015-01-01T21:38:49.000Z
2019-06-28T15:41:00.000Z
readthedocs/core/mixins.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
3,224
2015-01-01T07:38:45.000Z
2019-06-28T09:19:10.000Z
"""Common mixin classes for views.""" from functools import lru_cache from django.conf import settings from django.contrib.auth.mixins import LoginRequiredMixin from vanilla import ListView from readthedocs.projects.models import Feature from readthedocs.subscriptions.models import PlanFeature class ListViewWithFor...
31.413333
79
0.714346
1a498ea267bd0926a18f1ed85e138b27e35dbbbe
3,029
py
Python
script/analysis/movie_xz.py
soumide1102/nubhlight
85046add8b7e2c1419538864eb54205d33078772
[ "BSD-3-Clause" ]
16
2020-02-05T22:59:21.000Z
2022-03-18T11:05:37.000Z
script/analysis/movie_xz.py
soumide1102/nubhlight
85046add8b7e2c1419538864eb54205d33078772
[ "BSD-3-Clause" ]
13
2020-03-06T02:10:48.000Z
2021-06-15T20:00:30.000Z
script/analysis/movie_xz.py
soumide1102/nubhlight
85046add8b7e2c1419538864eb54205d33078772
[ "BSD-3-Clause" ]
4
2020-02-21T04:59:44.000Z
2020-12-10T21:42:12.000Z
################################################################################ # # # GENERATE MOVIES FROM SIMULATION OUTPUT # # ...
28.308411
81
0.593595
8da94eaa42175351b60a2d7752aec8d51ed6958f
17,098
py
Python
main.py
mustartt/pixiv-bot
48a0ea29841ab6d1eddaebd2b60fc9d2a246ee85
[ "MIT" ]
null
null
null
main.py
mustartt/pixiv-bot
48a0ea29841ab6d1eddaebd2b60fc9d2a246ee85
[ "MIT" ]
null
null
null
main.py
mustartt/pixiv-bot
48a0ea29841ab6d1eddaebd2b60fc9d2a246ee85
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import credentials from pixiv_module import PixivModule from pixivapi.enums import SearchTarget, Size, ContentType, Sort from pixivapi.models import Illustration from typing import List, Tuple, Dict from functools import reduce import io import asyncio imp...
30.208481
109
0.549596
ded0ca98c35800f3d6b43f09b40257d126e474bc
1,623
py
Python
neural_mmo/forge/blade/io/stimulus/hook.py
fangqyi/sandbox-society
39a539994f47f4937ec3ff698f8ed08a5161e14a
[ "MIT" ]
4
2020-11-08T22:33:15.000Z
2020-11-21T15:45:43.000Z
neural_mmo/forge/blade/io/stimulus/hook.py
davidADSP/neural-mmo
c9510890576fad1037474340194d0b5342a9b45f
[ "MIT" ]
1
2021-09-30T07:57:46.000Z
2021-10-02T00:39:11.000Z
neural_mmo/forge/blade/io/stimulus/hook.py
davidADSP/neural-mmo
c9510890576fad1037474340194d0b5342a9b45f
[ "MIT" ]
2
2021-09-16T16:43:03.000Z
2021-09-28T18:12:41.000Z
from pdb import set_trace as T class StimHook: def __init__(self, meta, config): self.meta = meta self.config = config ...
67.625
82
0.187924
50ab5b93937d89850af48a9c68fd87bb010f82fd
3,217
py
Python
python/tvm/meta_schedule/testing/run_subgraph_meta_schedule.py
hypercubestart/relax
0972498b14b2d75dbb179ea332378137ecebcfdc
[ "Apache-2.0" ]
null
null
null
python/tvm/meta_schedule/testing/run_subgraph_meta_schedule.py
hypercubestart/relax
0972498b14b2d75dbb179ea332378137ecebcfdc
[ "Apache-2.0" ]
null
null
null
python/tvm/meta_schedule/testing/run_subgraph_meta_schedule.py
hypercubestart/relax
0972498b14b2d75dbb179ea332378137ecebcfdc
[ "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...
26.368852
68
0.641902
6f8f06b4678227be03bf2e08b7699619129f4195
7,530
py
Python
src/azure-cli/azure/cli/command_modules/appconfig/_utils.py
Zay2k/azure-cli
1ef59bace4dfad9cba137f49c8974aca4b0fff90
[ "MIT" ]
1
2020-08-10T23:50:16.000Z
2020-08-10T23:50:16.000Z
src/azure-cli/azure/cli/command_modules/appconfig/_utils.py
Zay2k/azure-cli
1ef59bace4dfad9cba137f49c8974aca4b0fff90
[ "MIT" ]
2
2020-09-12T04:31:23.000Z
2020-09-14T06:31:04.000Z
src/azure-cli/azure/cli/command_modules/appconfig/_utils.py
mjain2/azure-cli
1ef59bace4dfad9cba137f49c8974aca4b0fff90
[ "MIT" ]
null
null
null
from __future__ import print_function # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------...
46.196319
230
0.678088
06d1577fc668e54031b4ed7b5e2ca808c40f9dd3
3,910
py
Python
scripts/release/release.py
Cosmo-Tech/onboarding-brewery-webapp
7ca365bbe25fbdf000434c207fa118754cc4f8cd
[ "MIT" ]
null
null
null
scripts/release/release.py
Cosmo-Tech/onboarding-brewery-webapp
7ca365bbe25fbdf000434c207fa118754cc4f8cd
[ "MIT" ]
102
2021-09-14T09:53:56.000Z
2022-03-29T10:13:59.000Z
scripts/release/release.py
Cosmo-Tech/onboarding-brewery-webapp
7ca365bbe25fbdf000434c207fa118754cc4f8cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Copyright (c) Cosmo Tech. # Licensed under the MIT license. import os import sys import argparse from tools_common.git import ( check_head, check_branch_is_main, check_tag_exists, commit_all_changes, create_tag, create_branch, get_top_level_...
30.310078
117
0.71023
ce9a35962e82e88648a19d0e8772ba0217ef229d
12,218
py
Python
support/verify-reviews.py
andschwa/mesos
77f052996c9ae846d5793ef8c7c89fbb70c8372a
[ "Apache-2.0" ]
null
null
null
support/verify-reviews.py
andschwa/mesos
77f052996c9ae846d5793ef8c7c89fbb70c8372a
[ "Apache-2.0" ]
null
null
null
support/verify-reviews.py
andschwa/mesos
77f052996c9ae846d5793ef8c7c89fbb70c8372a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # 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 # ...
40.456954
79
0.612784
fab0aa529d477d112e0bdba96c7544646318360d
8,533
py
Python
tests/integration/commands/apps.py
wilzbach/cli
bac7edb42618f3aeecd81ec80d5bec144fa893c2
[ "Apache-2.0" ]
null
null
null
tests/integration/commands/apps.py
wilzbach/cli
bac7edb42618f3aeecd81ec80d5bec144fa893c2
[ "Apache-2.0" ]
null
null
null
tests/integration/commands/apps.py
wilzbach/cli
bac7edb42618f3aeecd81ec80d5bec144fa893c2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os from unittest import mock import click from pytest import mark from story import api, awesome, cli from story.helpers import datetime def test_list(runner, patch, init_sample_app_in_cwd): patch.object(datetime, 'parse_psql_date_str', side_effect=[ 'my_app_1_parsed_date...
31.603704
79
0.635533
a320d45a0b90579a5fe1aa94dd244c6818458cf8
6,397
py
Python
resources/enoki_lldb.py
njroussel/enoki
23a9f986077db7dfd102579379bd4f0682285dab
[ "BSD-3-Clause" ]
115
2020-11-11T13:40:05.000Z
2022-01-28T23:26:00.000Z
resources/enoki_lldb.py
njroussel/enoki
23a9f986077db7dfd102579379bd4f0682285dab
[ "BSD-3-Clause" ]
16
2021-05-14T15:27:32.000Z
2022-01-18T10:51:48.000Z
resources/enoki_lldb.py
njroussel/enoki
23a9f986077db7dfd102579379bd4f0682285dab
[ "BSD-3-Clause" ]
7
2021-01-14T11:24:18.000Z
2021-12-28T21:51:41.000Z
############################################################################### # LLDB Script to improve introspection of array types when debugging software # using Enoki. Copy this file to "~/.lldb" (creating the directory, if not # present) and then apppend the following line to the file "~/.lldbinit" # (again, crea...
37.19186
100
0.606065
60145b361b8b56eed1d930ce1cdbbc6548d81245
26
py
Python
server_param.py
liuruoze/HierNet-SC2
7abfde0088e90416f11922d67c0f09659c7ecf81
[ "Apache-2.0" ]
2
2022-02-28T08:39:43.000Z
2022-03-03T02:28:23.000Z
server_param.py
liuruoze/HierNet-SC2
7abfde0088e90416f11922d67c0f09659c7ecf81
[ "Apache-2.0" ]
null
null
null
server_param.py
liuruoze/HierNet-SC2
7abfde0088e90416f11922d67c0f09659c7ecf81
[ "Apache-2.0" ]
null
null
null
used_devices = "4,5,6,7"
8.666667
24
0.615385
6da9b7edac8a3a6abee995acece1f2e0cef98f09
683
py
Python
common/src/stack/command/stack/commands/list/node/xml/plugin_salt.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/list/node/xml/plugin_salt.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/list/node/xml/plugin_salt.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
# @copyright@ # Copyright (c) 2006 - 2018 Teradata # All rights reserved. Stacki(r) v5.x stacki.com # https://github.com/Teradata/stacki/blob/master/LICENSE.txt # @copyright@ import os import stack.commands class Plugin(stack.commands.Plugin): "Include compiled salt templates into profile" def provides(self): r...
20.088235
60
0.650073
bc3acc8d18713ba16638b28d66decd71bf6b06bc
764
py
Python
ingestors/media/svg.py
EruditePanda/ingestors
7084092e610597fa75eb0d87c6d67e80687296f2
[ "MIT" ]
null
null
null
ingestors/media/svg.py
EruditePanda/ingestors
7084092e610597fa75eb0d87c6d67e80687296f2
[ "MIT" ]
null
null
null
ingestors/media/svg.py
EruditePanda/ingestors
7084092e610597fa75eb0d87c6d67e80687296f2
[ "MIT" ]
null
null
null
import logging from ingestors.base import Ingestor from ingestors.support.pdf import PDFSupport from ingestors.util import join_path log = logging.getLogger(__name__) class SVGIngestor(Ingestor, PDFSupport): MIME_TYPES = [ 'image/svg+xml' ] EXTENSIONS = ['svg'] SCORE = 20 def ingest(sel...
27.285714
57
0.575916
ac7fb74551ede6adf9d3f1b08060d08f29d95131
25,614
py
Python
dialogflow_v2beta1/proto/document_pb2.py
czahedi/dialogflow-python-client-v2
d9150d1def0a7262dc496b2f1313e02e7ae1a0b6
[ "Apache-2.0" ]
null
null
null
dialogflow_v2beta1/proto/document_pb2.py
czahedi/dialogflow-python-client-v2
d9150d1def0a7262dc496b2f1313e02e7ae1a0b6
[ "Apache-2.0" ]
3
2020-03-23T18:01:51.000Z
2021-03-19T23:15:15.000Z
pyenv/lib/python3.6/site-packages/dialogflow_v2beta1/proto/document_pb2.py
ronald-rgr/ai-chatbot-smartguide
c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow_v2beta1/proto/document.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from goog...
42.618968
3,117
0.752713
bce91a1942646d72b93179aba19ddb33e2fb85da
1,402
py
Python
openprocurement/relocation/tenders/views/bid.py
openprocurement/openprocurement.relocation.tenders
c8b545ad08a233beda93fa56324605208eb08bd9
[ "Apache-2.0" ]
null
null
null
openprocurement/relocation/tenders/views/bid.py
openprocurement/openprocurement.relocation.tenders
c8b545ad08a233beda93fa56324605208eb08bd9
[ "Apache-2.0" ]
null
null
null
openprocurement/relocation/tenders/views/bid.py
openprocurement/openprocurement.relocation.tenders
c8b545ad08a233beda93fa56324605208eb08bd9
[ "Apache-2.0" ]
4
2017-03-20T15:07:41.000Z
2018-02-20T09:24:37.000Z
# -*- coding: utf-8 -*- from openprocurement.api.utils import ( json_view, opresource, APIResource, save_tender, ROUTE_PREFIX, context_unpack ) from openprocurement.relocation.core.utils import change_ownership from openprocurement.relocation.core.validation import validate_ownership_data from o...
41.235294
148
0.686876
257640f69d1843ebc1604bebde9b44115e6e6a2b
615
py
Python
setup.py
nbraud/ppb-vector
9998a8f2c468b1b1335a799b77f1a5450e05f2a8
[ "Artistic-2.0" ]
2
2018-12-07T22:29:56.000Z
2019-05-21T20:11:28.000Z
setup.py
nbraud/ppb-vector
9998a8f2c468b1b1335a799b77f1a5450e05f2a8
[ "Artistic-2.0" ]
170
2017-10-12T22:50:42.000Z
2022-02-04T16:45:39.000Z
setup.py
nbraud/ppb-vector
9998a8f2c468b1b1335a799b77f1a5450e05f2a8
[ "Artistic-2.0" ]
25
2017-10-12T23:07:29.000Z
2020-05-29T11:53:24.000Z
#!/usr/bin/env python3 from setuptools import setup def requirements(section=None): """Helper for loading dependencies from requirements files.""" if section is None: filename = "requirements.txt" else: filename = f"requirements-{section}.txt" with open(filename) as file: retu...
26.73913
69
0.691057
5a2dd6195b4b9105aac8de9c956e3fec7394342c
4,334
py
Python
psdaq/psdaq/pyxpm/surf/devices/ti/_UCD92xx.py
ZhenghengLi/lcls2
94e75c6536954a58c8937595dcac295163aa1cdf
[ "BSD-3-Clause-LBNL" ]
134
2017-02-22T18:07:00.000Z
2022-03-21T16:12:23.000Z
python/surf/devices/ti/_UCD92xx.py
a-panella/surf
b7c116c9f84760bda2c1ea9fa89fddef58dd831d
[ "BSD-3-Clause-LBNL" ]
251
2017-04-26T23:42:42.000Z
2022-03-03T18:48:43.000Z
python/surf/devices/ti/_UCD92xx.py
a-panella/surf
b7c116c9f84760bda2c1ea9fa89fddef58dd831d
[ "BSD-3-Clause-LBNL" ]
38
2017-02-21T21:15:03.000Z
2022-02-06T00:22:37.000Z
#----------------------------------------------------------------------------- # This file is part of the 'SLAC Firmware Standard Library'. It is subject to # the license terms in the LICENSE.txt file found in the top-level directory # of this distribution and at: # https://confluence.slac.stanford.edu/display/ppare...
34.951613
84
0.469082
daeeb0a27b11f20a3661ef7a04f80ca12e3d3e5f
859
py
Python
batch_cover.py
geocompass/robosat.pink
44d95183322ba68c0728de44a66e50f510bfd919
[ "MIT" ]
31
2019-10-19T04:07:51.000Z
2022-02-25T11:14:04.000Z
batch_cover.py
geocompass/robosat.pink
44d95183322ba68c0728de44a66e50f510bfd919
[ "MIT" ]
2
2020-03-13T01:26:15.000Z
2020-10-30T01:59:29.000Z
batch_cover.py
geocompass/robosat.pink
44d95183322ba68c0728de44a66e50f510bfd919
[ "MIT" ]
19
2019-10-31T04:52:08.000Z
2022-03-04T06:24:56.000Z
from datetime import datetime import time import json from robosat_pink.geoc import RSPcover, utils from app.libs import utils_geom def cover(dsPath,geojson,out): return RSPcover.main(dsPath,geojson,out) if __name__ == "__main__": # # if cover by dir # dsPath = "/data/dataset/train/train_2/tdttianjin/trai...
26.84375
71
0.681024
6a0de30bc8091dbe2d17e8c2130ca0f93768d32e
512
py
Python
shakenfist_client/commandline/label.py
mandoonandy/client-python
ee7bba251ec8c132b772cd715a4dd677c8075057
[ "Apache-2.0" ]
null
null
null
shakenfist_client/commandline/label.py
mandoonandy/client-python
ee7bba251ec8c132b772cd715a4dd677c8075057
[ "Apache-2.0" ]
null
null
null
shakenfist_client/commandline/label.py
mandoonandy/client-python
ee7bba251ec8c132b772cd715a4dd677c8075057
[ "Apache-2.0" ]
null
null
null
import click @click.group(help='Label commands') def label(): pass @label.command(name='update', help=('Update a label to use a new blob.\n\n' 'LABEL: The name of the label to update\n\n' 'BLOB_UUID: The UUID of the blob to use.')) @click.argument('la...
28.444444
69
0.636719
022f75d5fc7e8402d1f384e4397dfce1acf49095
14,899
py
Python
cms/tests/reversion_tests.py
donce/django-cms
eff8c00345891098f4f317bcd821722e567faa4d
[ "BSD-3-Clause" ]
null
null
null
cms/tests/reversion_tests.py
donce/django-cms
eff8c00345891098f4f317bcd821722e567faa4d
[ "BSD-3-Clause" ]
null
null
null
cms/tests/reversion_tests.py
donce/django-cms
eff8c00345891098f4f317bcd821722e567faa4d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import with_statement import shutil from os.path import join from cms.utils.conf import get_cms_setting from cms.utils.urlutils import admin_reverse from djangocms_text_ckeditor.models import Text from django.conf import settings from django.contrib.contenttypes.models import Co...
45.148485
128
0.620981
84146a5d732e19df6ed2cd4b7b4224614777ce24
10,559
py
Python
.venv/lib/python3.8/site-packages/pandas/io/json/_table_schema.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
115
2020-06-18T15:00:58.000Z
2022-03-02T10:13:19.000Z
.venv/lib/python3.8/site-packages/pandas/io/json/_table_schema.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
37
2020-10-20T08:30:53.000Z
2020-12-22T13:15:45.000Z
.venv/lib/python3.8/site-packages/pandas/io/json/_table_schema.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
60
2020-07-22T14:53:10.000Z
2022-03-23T10:17:59.000Z
""" Table Schema builders https://specs.frictionlessdata.io/json-table-schema/ """ from typing import TYPE_CHECKING, Any, Dict, Optional, cast import warnings import pandas._libs.json as json from pandas._typing import DtypeObj, FrameOrSeries, JSONSerializable from pandas.core.dtypes.common import ( is_bool_dtyp...
30.255014
88
0.585946
ab15c8eb7eec7c069f2ef75c715d6cca27f91d4b
683
py
Python
indexes.py
asysc2020/contentbox
5c155976e0ce7ea308d62293ab89624d97b21d09
[ "Apache-2.0" ]
39
2015-06-10T23:18:07.000Z
2021-10-21T04:29:06.000Z
indexes.py
asysc2020/contentbox
5c155976e0ce7ea308d62293ab89624d97b21d09
[ "Apache-2.0" ]
2
2016-08-22T12:38:10.000Z
2017-01-26T18:37:33.000Z
indexes.py
asysc2020/contentbox
5c155976e0ce7ea308d62293ab89624d97b21d09
[ "Apache-2.0" ]
26
2015-06-10T22:09:15.000Z
2021-06-27T15:45:15.000Z
# Copyright 2015 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 a...
35.947368
74
0.77306
ad9e15df2a7c9172677e753b3c0f486fc206b22d
1,298
py
Python
cached_data_used/Rosenbrock_restricted.py
fjwillemsen/BayesianOptimization-autotuning
9af48014079a98e05324cb9d67cb8660aaf26c28
[ "Apache-2.0" ]
1
2022-02-25T22:11:48.000Z
2022-02-25T22:11:48.000Z
cached_data_used/Rosenbrock_restricted.py
fjwillemsen/BayesianOptimization-autotuning
9af48014079a98e05324cb9d67cb8660aaf26c28
[ "Apache-2.0" ]
null
null
null
cached_data_used/Rosenbrock_restricted.py
fjwillemsen/BayesianOptimization-autotuning
9af48014079a98e05324cb9d67cb8660aaf26c28
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import kernel_tuner import numpy as np from collections import OrderedDict prog_name = "rosenbrock_constrained" def tune(device_name, strategy="bayes_opt", strategy_options=None, verbose=False, quiet=False, simulation_mode=True): #input dimensions and data x = 100 y = 1...
29.5
152
0.640986
c62ad4b81958db9a3e241dbb1674f1bf959c93e8
88,909
py
Python
Bio/Seq.py
bugra-emanet/biopython-bugra-emanet
d9f5cfd011232532b1e23802ea20f1b0523fc933
[ "BSD-3-Clause" ]
null
null
null
Bio/Seq.py
bugra-emanet/biopython-bugra-emanet
d9f5cfd011232532b1e23802ea20f1b0523fc933
[ "BSD-3-Clause" ]
1
2019-02-24T18:24:56.000Z
2019-02-27T02:31:56.000Z
Bio/Seq.py
zruan/biopython
cc13861df74f498ed22e41817df5d44d2051becb
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2000 Andrew Dalke. # Copyright 2000-2002 Brad Chapman. # Copyright 2004-2005, 2010 by M de Hoon. # Copyright 2007-2020 by Peter Cock. # All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". #...
34.594942
104
0.597645
1c07cf5fef5087ed8c62f177cca98cd001959a88
745
py
Python
data/plugins/objects/rotten tomato crate.py
FavyTeam/Elderscape_server
38bf75396e4e13222be67d5f15eb0b9862dca6bb
[ "MIT" ]
3
2019-05-09T16:59:13.000Z
2019-05-09T18:29:57.000Z
data/plugins/objects/rotten tomato crate.py
FavyTeam/Elderscape_server
38bf75396e4e13222be67d5f15eb0b9862dca6bb
[ "MIT" ]
null
null
null
data/plugins/objects/rotten tomato crate.py
FavyTeam/Elderscape_server
38bf75396e4e13222be67d5f15eb0b9862dca6bb
[ "MIT" ]
7
2019-07-11T23:04:40.000Z
2021-08-02T14:27:13.000Z
from game.item import ItemAssistant def first_click_object_3195(player): if player.playerRights == 1 or player.playerRights == 2: if (ItemAssistant.getFreeInventorySlots(player) == 0): player.getDH().sendStatement("You need at least 1 free inventory space to do this.") return ...
53.214286
96
0.680537
94e430d0eb4bc907c273ab94dd7faba44f637e2c
4,750
py
Python
miniapp/miniapp/orbital/lcao.py
savcardamone/tyche-
ea89edea89a607291e4fe0ba738d75522f54dc1a
[ "MIT" ]
null
null
null
miniapp/miniapp/orbital/lcao.py
savcardamone/tyche-
ea89edea89a607291e4fe0ba738d75522f54dc1a
[ "MIT" ]
1
2018-12-28T13:30:16.000Z
2018-12-29T10:30:33.000Z
miniapp/miniapp/orbital/lcao.py
savcardamone/tyche
ea89edea89a607291e4fe0ba738d75522f54dc1a
[ "MIT" ]
null
null
null
#!/usr/bin/env python """lcao.py: Linear combination of atomic orbitals.""" __author__ = "Salvatore Cardamone" __email__ = "sav.cardamone@gmail.com" import sys import itertools import numpy as np import untangle from miniapp.orbital import atomic_orbital as ao class LCAO(): """Wrapper around list of...
39.915966
97
0.537684
0a63b711f529240cf70fa5d610d48df49b34f533
6,278
py
Python
wxnodegraph/nodeGraph.py
Derfies/wxnodegraph
43777d15fb995485558d0c22aed513a1babeb107
[ "MIT" ]
2
2021-02-18T11:19:24.000Z
2021-07-30T02:43:54.000Z
wxnodegraph/nodeGraph.py
Derfies/wxnodegraph
43777d15fb995485558d0c22aed513a1babeb107
[ "MIT" ]
null
null
null
wxnodegraph/nodeGraph.py
Derfies/wxnodegraph
43777d15fb995485558d0c22aed513a1babeb107
[ "MIT" ]
null
null
null
import math import wx import json from constants import * from wire import Wire from node import Node class NodeGraph( wx.ScrolledWindow ): def __init__(self, parent, id, log, size = wx.DefaultSize): wx.ScrolledWindow.__init__(self, parent, id, (0, 0), size=size, style=wx.SUNKEN_BORDER) self....
35.072626
133
0.560529
8f2533ca67bc2b43921795ea1187ba28df02a34c
3,608
py
Python
city_scrapers/mixins/wayne_commission.py
danielahuang/city-scrapers
711d1995f59100793e771068a6f5d9149e773412
[ "MIT" ]
null
null
null
city_scrapers/mixins/wayne_commission.py
danielahuang/city-scrapers
711d1995f59100793e771068a6f5d9149e773412
[ "MIT" ]
null
null
null
city_scrapers/mixins/wayne_commission.py
danielahuang/city-scrapers
711d1995f59100793e771068a6f5d9149e773412
[ "MIT" ]
null
null
null
# THIS IS JUST A MIXIN. IT MAY USE THINGS THAT ARE NOT ACTUALLY USABLE YET, # BUT IT WILL BE INTEGRATED INTO A REGULAR AGENCY SPIDER. # -*- coding: utf-8 -*- from datetime import datetime from urllib.parse import urljoin from dateutil.parser import parse as dateparse from city_scrapers.constants import CANCELED, COM...
36.444444
93
0.564302
fe2fe7f8f06bc0b538fa453d5357d64677fdb3d3
6,396
py
Python
tools/eval.py
mystlee/YOLOX_AUDIO
849a881e303e21932911d4771fb79ed9a08a1ce5
[ "Apache-2.0" ]
2
2021-11-22T04:29:24.000Z
2021-11-22T04:29:26.000Z
tools/eval.py
kata1110/YOLOX_AUDIO
546b20c1f09e2407145cd9569d9b2d5d5bbed85f
[ "Apache-2.0" ]
null
null
null
tools/eval.py
kata1110/YOLOX_AUDIO
546b20c1f09e2407145cd9569d9b2d5d5bbed85f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Copyright (c) Megvii, Inc. and its affiliates. import argparse import os import random import warnings from loguru import logger import torch import torch.backends.cudnn as cudnn from torch.nn.parallel import DistributedDataParallel as DDP from yolox.core import launch...
30.312796
124
0.628049
fe3a890cbffd1fe6788abd6a716a21ec55a81b1e
1,615
py
Python
ANT/preprocess.py
KevinBastianYang/ANT
6e638c1a6f3bfc726329e67ad72ee67639f3dfe4
[ "MIT" ]
null
null
null
ANT/preprocess.py
KevinBastianYang/ANT
6e638c1a6f3bfc726329e67ad72ee67639f3dfe4
[ "MIT" ]
null
null
null
ANT/preprocess.py
KevinBastianYang/ANT
6e638c1a6f3bfc726329e67ad72ee67639f3dfe4
[ "MIT" ]
null
null
null
#!/usr/bin/env python ###Author:JCY ###Usage: bam_to_sam() is a function that transforms the bam file to sam file ### trim_head() is a function that extracts the useful information of sam file ### read_to_umi() is a function that links the reads and umis that come from the same cell import os import re impo...
32.959184
165
0.733746
f25bc2afdafcc0b7febe60790874d3b5736137e1
14,269
py
Python
plugins/modules/oci_monitoring_metric_data_actions.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
108
2020-05-19T20:46:10.000Z
2022-03-25T14:10:01.000Z
plugins/modules/oci_monitoring_metric_data_actions.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
90
2020-06-14T22:07:11.000Z
2022-03-07T05:40:29.000Z
plugins/modules/oci_monitoring_metric_data_actions.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
42
2020-08-30T23:09:12.000Z
2022-03-25T16:58:01.000Z
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
43.503049
160
0.64139
173b9b8e7abd764d94a45ee0f5cf88f92ca940c1
864
py
Python
tests/basics/PrintFuture.py
hclivess/Nuitka
9c7ec9696e69a3901b25d5bce720c921d45c931b
[ "Apache-2.0" ]
null
null
null
tests/basics/PrintFuture.py
hclivess/Nuitka
9c7ec9696e69a3901b25d5bce720c921d45c931b
[ "Apache-2.0" ]
1
2019-03-01T11:33:40.000Z
2019-03-01T11:33:40.000Z
tests/basics/PrintFuture.py
hclivess/Nuitka
9c7ec9696e69a3901b25d5bce720c921d45c931b
[ "Apache-2.0" ]
1
2019-03-26T16:56:21.000Z
2019-03-26T16:56:21.000Z
# Copyright 2019, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
39.272727
79
0.716435
c6000061c0b27ff7d20013414ea22c2840c73e58
293
py
Python
python-intro/methods_list.py
elzasimoes/selenium-python
50e4ad8a46864b06193eda09aa2a2a047f98974c
[ "CC0-1.0" ]
2
2020-06-03T04:45:35.000Z
2020-07-10T03:21:17.000Z
python-intro/methods_list.py
elzasimoes/selenium-python
50e4ad8a46864b06193eda09aa2a2a047f98974c
[ "CC0-1.0" ]
null
null
null
python-intro/methods_list.py
elzasimoes/selenium-python
50e4ad8a46864b06193eda09aa2a2a047f98974c
[ "CC0-1.0" ]
2
2020-06-03T11:52:33.000Z
2020-06-07T00:01:57.000Z
x = [1, 2, 3] x.append(4) #Fila print(f'Valor do append: {x}') x.insert(4, 0) #Lista print(f'Valor do insert: {x}') x.count(2) print(f'Valor do count: {x}') x.remove(2) print(f'Valor do remove: {x}') x.pop() #Pilha print(f'Valor do Pop: {x}') x.reverse() print(f'Valor do Reverse: {x}')
14.65
31
0.610922
31ecef9de8261886586eb1f9d059ac24519b18aa
725
py
Python
tapis_cli/commands/taccapis/v2/actors/models/message.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
8
2020-10-18T22:48:23.000Z
2022-01-10T09:16:14.000Z
tapis_cli/commands/taccapis/v2/actors/models/message.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
238
2019-09-04T14:37:54.000Z
2020-04-15T16:24:24.000Z
tapis_cli/commands/taccapis/v2/actors/models/message.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
5
2019-09-20T04:23:49.000Z
2020-01-16T17:45:14.000Z
"""Data model and functions for Tapis Message """ from tapis_cli.commands.taccapis.v2 import SERVICE_VERSION from tapis_cli.commands.taccapis import TapisModel from tapis_cli.display import Verbosity from tapis_cli.search import argtype, argmod __all__ = ['Message'] class Message(TapisModel): service_id_type = ...
31.521739
76
0.715862
f81bcfe3cc50aaca22ed98918aa0d809d3348755
5,197
py
Python
dhelp/files/tests/test_csv.py
thePortus/dhelp
cac762f9a6e6e75f731219007153c0a1b4a685f8
[ "MIT" ]
3
2018-03-07T18:37:39.000Z
2022-02-23T01:12:56.000Z
dhelp/files/tests/test_csv.py
thePortus/dhelp
cac762f9a6e6e75f731219007153c0a1b4a685f8
[ "MIT" ]
18
2018-03-03T22:01:38.000Z
2021-06-01T21:32:30.000Z
dhelp/files/tests/test_csv.py
thePortus/dhelp
cac762f9a6e6e75f731219007153c0a1b4a685f8
[ "MIT" ]
null
null
null
#!/usr/bin/python import unittest import os import csv import shutil from ..csv import CSVFile fixtures_src = os.path.join( os.path.dirname(__file__), 'fixtures', 'csv' ) fixtures_dest = os.path.join( os.path.dirname(__file__), 'fixtures', '.testing' ) options = { 'silent': False } cl...
29.528409
78
0.558014
ec9133b2daa330c465f7fe58c629fdf958d9e307
150
py
Python
sajou/elements/__init__.py
cristobaltapia/sajou
3693149218bfec9e902e55a5341e22be7b522e29
[ "MIT" ]
1
2018-02-06T12:17:02.000Z
2018-02-06T12:17:02.000Z
sajou/elements/__init__.py
cristobaltapia/sajou
3693149218bfec9e902e55a5341e22be7b522e29
[ "MIT" ]
null
null
null
sajou/elements/__init__.py
cristobaltapia/sajou
3693149218bfec9e902e55a5341e22be7b522e29
[ "MIT" ]
null
null
null
""" This module contains the different elements available. """ from sajou.elements.beam2d import Beam2D from sajou.elements.spring2d import Spring2D
21.428571
54
0.806667
50557403a7742745609067ddc067c75b139583eb
975
py
Python
8-patch-remove-unnecessary-files.py
muraoka7/tool4ipp
28295ab1724410f8e1439b317f0fdb169a6e9a78
[ "Apache-2.0" ]
1
2020-07-16T17:41:36.000Z
2020-07-16T17:41:36.000Z
8-patch-remove-unnecessary-files.py
muraoka7/tool4ipp
28295ab1724410f8e1439b317f0fdb169a6e9a78
[ "Apache-2.0" ]
2
2021-09-08T01:44:37.000Z
2022-03-12T00:18:04.000Z
8-patch-remove-unnecessary-files.py
muraoka7/tool4ipp
28295ab1724410f8e1439b317f0fdb169a6e9a78
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # Copyright 2020 IBM Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
28.676471
74
0.712821
abe863dcd15222d0176b70d3ddaa19581be1fa58
10,199
py
Python
boto/sdb/db/model.py
clouddocx/boto
44978cb92a6020ea49a89662e85e1280e29c1350
[ "MIT" ]
null
null
null
boto/sdb/db/model.py
clouddocx/boto
44978cb92a6020ea49a89662e85e1280e29c1350
[ "MIT" ]
null
null
null
boto/sdb/db/model.py
clouddocx/boto
44978cb92a6020ea49a89662e85e1280e29c1350
[ "MIT" ]
null
null
null
# Copyright (c) 2006,2007,2008 Mitch Garnaat http://garnaat.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 to use, copy,...
34.224832
95
0.596333
1457114d7427a190d9754d8e584e2ccbcfa65b78
4,417
py
Python
audio_encoder/audio.py
Domhnall-Liopa/Lip2Wav
236ae24cd7945da8a75ddea1cfdc3da271c3c59f
[ "MIT" ]
null
null
null
audio_encoder/audio.py
Domhnall-Liopa/Lip2Wav
236ae24cd7945da8a75ddea1cfdc3da271c3c59f
[ "MIT" ]
null
null
null
audio_encoder/audio.py
Domhnall-Liopa/Lip2Wav
236ae24cd7945da8a75ddea1cfdc3da271c3c59f
[ "MIT" ]
null
null
null
from scipy.ndimage.morphology import binary_dilation from audio_encoder.params_data import * from pathlib import Path from typing import Optional, Union import numpy as np import webrtcvad import librosa import struct int16_max = (2 ** 15) - 1 def preprocess_wav(fpath_or_wav: Union[str, Path, np.ndarray], ...
40.154545
98
0.696174
83bc961f91449acbb613b555a848043c1dc2c991
1,362
py
Python
test_autoarray/dataset/files/interferometer/fits_1d_maker.py
caoxiaoyue/PyAutoArray
e10d3d6a5b8dd031f2ad277486bd539bd5858b2a
[ "MIT" ]
5
2019-09-26T02:18:25.000Z
2021-12-11T16:29:20.000Z
test_autoarray/dataset/files/interferometer/fits_1d_maker.py
caoxiaoyue/PyAutoArray
e10d3d6a5b8dd031f2ad277486bd539bd5858b2a
[ "MIT" ]
3
2020-03-30T14:25:57.000Z
2021-12-21T17:10:55.000Z
test_autoarray/dataset/files/interferometer/fits_1d_maker.py
caoxiaoyue/PyAutoArray
e10d3d6a5b8dd031f2ad277486bd539bd5858b2a
[ "MIT" ]
4
2020-03-03T11:35:41.000Z
2022-01-21T17:37:35.000Z
from astropy.io import fits import numpy as np from os import path file_path = path.join( "{}".format(path.dirname(path.realpath(__file__))), "files", "array" ) array1 = np.ones((3)) array2 = 2.0 * np.ones((3)) array3 = 3.0 * np.ones((3)) array4 = 4.0 * np.ones((3)) array5 = 5.0 * np.ones((3)) array6...
35.842105
80
0.709985
82007ba9b50e432e08d654f7199b22bc209be5bd
1,345
py
Python
examples/boxplot.py
andrewhw/VizThoughts
738a6e05a22a6cb377b61b236c7b894e7d2194c6
[ "CC-BY-4.0" ]
null
null
null
examples/boxplot.py
andrewhw/VizThoughts
738a6e05a22a6cb377b61b236c7b894e7d2194c6
[ "CC-BY-4.0" ]
null
null
null
examples/boxplot.py
andrewhw/VizThoughts
738a6e05a22a6cb377b61b236c7b894e7d2194c6
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python # Simple boxplot examples import os import pandas as pd import seaborn as sns from matplotlib import pyplot as plt import math import random import datapoint_generator as gen # our own point generator # check if we have some data, and if not, use our generator # module to create some if not o...
26.372549
72
0.733086
74669c503759416465dd26094d4790be54c5e6cc
10,483
py
Python
flatmc.py
iamholger/flatmc
aa2b5268988e15c36cfe826e5d1a62c86ce1ff63
[ "MIT" ]
3
2019-03-27T18:36:59.000Z
2019-05-04T11:05:45.000Z
flatmc.py
SebastianMacaluso/flatmc
aa2b5268988e15c36cfe826e5d1a62c86ce1ff63
[ "MIT" ]
null
null
null
flatmc.py
SebastianMacaluso/flatmc
aa2b5268988e15c36cfe826e5d1a62c86ce1ff63
[ "MIT" ]
3
2019-04-29T15:54:47.000Z
2019-11-07T14:42:56.000Z
import numpy as np from numba import jit, njit from vector import Vec4 @njit def u_2(r): """ Integration variable u_2 --- solution for r = 2u^1 - 1u^2 """ return 1. - np.sqrt(1.-r) @njit(fastmath=True) def u_3(r): """ Integration variable u_3 --- solution for r = 3u^2 - 2u^3 ...
27.880319
120
0.470858
b1c51abece36b9763c5915fc2f6f985a3a1fbcff
45,238
py
Python
moto/sagemaker/models.py
thomassross/moto
407d5c853dbee9b9e132d97b41414b7dca475765
[ "Apache-2.0" ]
1
2019-10-18T16:10:01.000Z
2019-10-18T16:10:01.000Z
moto/sagemaker/models.py
thomassross/moto
407d5c853dbee9b9e132d97b41414b7dca475765
[ "Apache-2.0" ]
4
2017-09-30T07:52:52.000Z
2021-12-13T06:56:55.000Z
moto/sagemaker/models.py
thomassross/moto
407d5c853dbee9b9e132d97b41414b7dca475765
[ "Apache-2.0" ]
2
2021-11-24T08:05:43.000Z
2021-11-25T16:18:48.000Z
from __future__ import unicode_literals import os from boto3 import Session from datetime import datetime from moto.core import ACCOUNT_ID, BaseBackend, BaseModel, CloudFormationModel from moto.core.exceptions import RESTError from moto.sagemaker import validators from .exceptions import MissingModel, ValidationError...
36.07496
201
0.64479
63042962c5ce7ccb79fb6a8aa2af3d668cf0e0f4
1,000
py
Python
encargo-backend/app/encargoapi/database.py
coonprogrammer/encargoexpress
ca8d9eeec47f59486113780e0b1c2a54dcc89043
[ "MIT" ]
null
null
null
encargo-backend/app/encargoapi/database.py
coonprogrammer/encargoexpress
ca8d9eeec47f59486113780e0b1c2a54dcc89043
[ "MIT" ]
null
null
null
encargo-backend/app/encargoapi/database.py
coonprogrammer/encargoexpress
ca8d9eeec47f59486113780e0b1c2a54dcc89043
[ "MIT" ]
null
null
null
from sqlalchemy import event from sqlalchemy.ext.declarative import as_declarative, declared_attr from sqlalchemy.orm import sessionmaker from encargoapi import db from encargoapi.journal.model import Journal class ModelBase(object): created_on = db.Column(db.DateTime, default=db.func.now()) updated_on = db....
27.777778
88
0.678
e6bdcffbf72025a38d3619e1633923e63819c6db
1,306
py
Python
tensorflow/python/estimator/model_fn.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/python/estimator/model_fn.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/python/estimator/model_fn.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# 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...
39.575758
87
0.722818
7af49d7fc0040f05f46f5d6fa3bc8cb556432749
570
py
Python
src/network/bo/peer.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/network/bo/peer.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/network/bo/peer.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
class Peer(): def __init__(self, host, port) -> None: super().__init__() self._host = host self._port = port def get_host(self): return self._host def set_host(self, host): self._host = host def get_port(self): return self._port def set_port(self, ...
20.357143
47
0.535088
53942995ff7bad26efd11b7504d6f761e9259886
3,521
py
Python
app/tools/monitor.py
cuizhenduo/Monitors
28de2942f389cd7461d01688e570f9fd1e9d57cf
[ "Apache-2.0" ]
null
null
null
app/tools/monitor.py
cuizhenduo/Monitors
28de2942f389cd7461d01688e570f9fd1e9d57cf
[ "Apache-2.0" ]
null
null
null
app/tools/monitor.py
cuizhenduo/Monitors
28de2942f389cd7461d01688e570f9fd1e9d57cf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import psutil,time from pprint import pprint import datetime #定义获取系统信息的类 class Monitor(object): #单位转换 def bytes_to_gb(self,data,key=""): if key == "percent": return data else: return round(data / (1024 ** 3), 2) #获取cpu信息 def cpu(self): ...
27.507813
81
0.483385
dfd9e961fcb42cb933faf5fe10f9623bf74be1cd
13,897
py
Python
mysql2pgsql/lib/postgres_writer.py
gengo/py-mysql2pgsql
3cf490f10ef3ce305e488d1ab5153fc208dedaf1
[ "MIT" ]
null
null
null
mysql2pgsql/lib/postgres_writer.py
gengo/py-mysql2pgsql
3cf490f10ef3ce305e488d1ab5153fc208dedaf1
[ "MIT" ]
null
null
null
mysql2pgsql/lib/postgres_writer.py
gengo/py-mysql2pgsql
3cf490f10ef3ce305e488d1ab5153fc208dedaf1
[ "MIT" ]
null
null
null
from __future__ import absolute_import import re from cStringIO import StringIO from datetime import datetime, date, timedelta from psycopg2.extensions import QuotedString, Binary, AsIs from pytz import timezone class PostgresWriter(object): """Base class for :py:class:`mysql2pgsql.lib.postgres_file_writer.Post...
51.47037
173
0.537886
9910653e7a3413301f4ea40e4e77a482d678af3d
3,546
py
Python
gapid_tests/initialization_tests/vkCreateInstance/vkCreateInstance_tests.py
AWoloszyn/vulkan_test_applications
5e9f86cdbd4e2344f41db9e0a578fe9fba41106f
[ "Apache-2.0" ]
null
null
null
gapid_tests/initialization_tests/vkCreateInstance/vkCreateInstance_tests.py
AWoloszyn/vulkan_test_applications
5e9f86cdbd4e2344f41db9e0a578fe9fba41106f
[ "Apache-2.0" ]
null
null
null
gapid_tests/initialization_tests/vkCreateInstance/vkCreateInstance_tests.py
AWoloszyn/vulkan_test_applications
5e9f86cdbd4e2344f41db9e0a578fe9fba41106f
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, softwa...
46.051948
80
0.694303
c24d7e459b8c0d6beb5f2bdc7177f60969179a6a
428
py
Python
modules/update_windows_choco_apps/apply.py
jameswdelancey/cosmos_inventory_example
2143be1bd75c570c485da3c79ce1ad7983860f3b
[ "MIT" ]
null
null
null
modules/update_windows_choco_apps/apply.py
jameswdelancey/cosmos_inventory_example
2143be1bd75c570c485da3c79ce1ad7983860f3b
[ "MIT" ]
null
null
null
modules/update_windows_choco_apps/apply.py
jameswdelancey/cosmos_inventory_example
2143be1bd75c570c485da3c79ce1ad7983860f3b
[ "MIT" ]
null
null
null
import datetime # import os import logging import subprocess out = subprocess.check_output( ["choco", "feature", "enable", "-n=allowGlobalConfirmation"] ) logging.debug("choco feature enable allowGlobalConfirmation output: %s", out.decode()) if datetime.datetime.now().hour == 12: out = subprocess...
28.533333
87
0.691589