hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
f5cfa62fa665d8c85eb38d7744b3440c86a0c7ed
6,430
py
Python
pretraining/args/pretraining_args.py
marcelbra/academic-budget-bert
527053a618d781210b4faccb5fe9afef17b1324a
[ "Apache-2.0" ]
null
null
null
pretraining/args/pretraining_args.py
marcelbra/academic-budget-bert
527053a618d781210b4faccb5fe9afef17b1324a
[ "Apache-2.0" ]
null
null
null
pretraining/args/pretraining_args.py
marcelbra/academic-budget-bert
527053a618d781210b4faccb5fe9afef17b1324a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 Intel Corporation. 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 ...
33.664921
124
0.654432
3667d5d820ec842514131744e4be3598acc3cc01
10,935
py
Python
ceilometer/storage/sqlalchemy/models.py
VeinFu/ceilometer_ha
fb0d3834d4db8a9eaeb8f5da088a2894c615770f
[ "Apache-2.0" ]
null
null
null
ceilometer/storage/sqlalchemy/models.py
VeinFu/ceilometer_ha
fb0d3834d4db8a9eaeb8f5da088a2894c615770f
[ "Apache-2.0" ]
null
null
null
ceilometer/storage/sqlalchemy/models.py
VeinFu/ceilometer_ha
fb0d3834d4db8a9eaeb8f5da088a2894c615770f
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under t...
31.604046
78
0.6492
b3c553ddbd0e665ae9186ec3ad6fb4e2cf0cb20b
10,218
py
Python
src/oci/artifacts/models/create_repository_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/artifacts/models/create_repository_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/artifacts/models/create_repository_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
34.288591
245
0.661578
bc58cb531e495aba322dd904ee062f3deb10f945
653
py
Python
imageflow/migrations/0004_imageanalysispair_lightcurve.py
typpo/astrokit
f3c16f73ac842be26cdf20231ac5b915ab68e68f
[ "MIT" ]
8
2016-01-23T11:06:10.000Z
2021-06-27T01:38:19.000Z
imageflow/migrations/0004_imageanalysispair_lightcurve.py
typpo/astrokit
f3c16f73ac842be26cdf20231ac5b915ab68e68f
[ "MIT" ]
119
2017-02-06T18:41:47.000Z
2022-01-13T00:43:35.000Z
imageflow/migrations/0004_imageanalysispair_lightcurve.py
typpo/astrokit
f3c16f73ac842be26cdf20231ac5b915ab68e68f
[ "MIT" ]
7
2016-07-19T15:49:17.000Z
2020-10-03T05:53:52.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2018-03-09 04:25 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('lightcurve', '0003_lightcurve_ciband'), ('imageflow'...
27.208333
120
0.656968
2ceb4dcd0c83c4aa16684917980789b756726381
1,943
py
Python
train2.py
hanhanwu/mlflow-example
17280ded7b9b6d6ee81b71fedaffb50f23b04ff0
[ "Apache-2.0" ]
null
null
null
train2.py
hanhanwu/mlflow-example
17280ded7b9b6d6ee81b71fedaffb50f23b04ff0
[ "Apache-2.0" ]
null
null
null
train2.py
hanhanwu/mlflow-example
17280ded7b9b6d6ee81b71fedaffb50f23b04ff0
[ "Apache-2.0" ]
null
null
null
# The data set used in this example is from http://archive.ics.uci.edu/ml/datasets/Wine+Quality # P. Cortez, A. Cerdeira, F. Almeida, T. Matos and J. Reis. # Modeling wine preferences by data mining from physicochemical properties. In Decision Support Systems, Elsevier, 47(4):547-553, 2009. import os import warnings i...
31.33871
135
0.683994
4cd76385c0ef5c5ab2b0e940b43ff3170de9886d
7,074
py
Python
tasks-deploy/calc-1/check.py
irdkwmnsb/lkshl-ctf
e5c0200ddc8ba73df5f321b87b9763fb1bbaba57
[ "MIT" ]
3
2021-03-30T06:27:58.000Z
2021-04-03T17:56:35.000Z
tasks-deploy/calc-1/check.py
irdkwmnsb/lkshl-ctf
e5c0200ddc8ba73df5f321b87b9763fb1bbaba57
[ "MIT" ]
null
null
null
tasks-deploy/calc-1/check.py
irdkwmnsb/lkshl-ctf
e5c0200ddc8ba73df5f321b87b9763fb1bbaba57
[ "MIT" ]
null
null
null
def check(attempt, context): if attempt.answer == flags[attempt.participant.id % len(flags)]: return Checked(True) if attempt.answer in flags: return CheckedPlagiarist(False, flags.index(attempt.answer)) return Checked(False) flags = ['LKL{U_r_a_calculator_MpU6R52l}', 'LKL{U_r_a_...
884.25
6,808
0.817501
97a91fe228f2d04f8222568e1f8166184f741340
1,556
py
Python
mergecsv.py
hydrangeas/statRepo
6d26cf8ddcab620add22b195dc6149aca918bff6
[ "MIT" ]
null
null
null
mergecsv.py
hydrangeas/statRepo
6d26cf8ddcab620add22b195dc6149aca918bff6
[ "MIT" ]
null
null
null
mergecsv.py
hydrangeas/statRepo
6d26cf8ddcab620add22b195dc6149aca918bff6
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- # # usage: """ """ import csv import os import os.path import pandas as pd import sys def main(): load_path1 = "" load_path2 = "" save_path = "merged.csv" if len(sys.argv) > 1: # 引数解析 i = 1 while i < len(sys.argv): s = s...
25.508197
77
0.472365
bd899622856d80bb3ae01fdc3096e1092f9451e7
56,084
py
Python
src/sentry/south_migrations/0171_auto__chg_field_team_owner.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
1
2022-02-09T22:56:49.000Z
2022-02-09T22:56:49.000Z
src/sentry/south_migrations/0171_auto__chg_field_team_owner.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
6
2018-10-19T10:04:23.000Z
2019-12-09T20:29:12.000Z
src/sentry/south_migrations/0171_auto__chg_field_team_owner.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
2
2021-01-26T09:53:39.000Z
2022-03-22T09:01:47.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Team.owner' db.alter_column( 'sentry_team', ...
36.276843
93
0.396691
e4d456f9b04c791e78a3cb6e21f59d758c2b0457
12,334
py
Python
luigi/contrib/ssh.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
5
2015-02-26T18:52:56.000Z
2017-07-07T05:47:18.000Z
luigi/contrib/ssh.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
9
2017-03-22T23:38:48.000Z
2019-01-28T21:13:06.000Z
luigi/contrib/ssh.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
9
2015-01-26T14:47:57.000Z
2020-07-07T17:01:25.000Z
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
34.743662
118
0.616913
2a7aced2c217c3eedd49e65c607abaf15275a58f
1,096
py
Python
tests/test_adfgx.py
Malmosmo/pycipher2
9460cd4028dfe520f7bd4cc20f45116df3551495
[ "MIT" ]
null
null
null
tests/test_adfgx.py
Malmosmo/pycipher2
9460cd4028dfe520f7bd4cc20f45116df3551495
[ "MIT" ]
null
null
null
tests/test_adfgx.py
Malmosmo/pycipher2
9460cd4028dfe520f7bd4cc20f45116df3551495
[ "MIT" ]
null
null
null
import unittest from pycipher2 import ADFGX class TestADFGX(unittest.TestCase): def test_encrypt(self): keys = (('ypgknveqzxmdhwcblfisrauto', 'GERMAN'), ('haoqkzdmpieslycbwvgufntrx', 'ciphers')) plaintext = 'abcdefghiklmnopqrstuvwxyz' ciphertext = ('FGGFAGDADDFGXFGGGXFAAA...
33.212121
75
0.65146
ea647857c4b71de9bfa8f37825d7677cad5a45d0
365
py
Python
lab3/palindromeChecker/palindromeChecker.py
sirflano/dt228-cloud-repo
0e58503e7cd454522fac40efef4cd67bffb7bf8e
[ "MIT" ]
null
null
null
lab3/palindromeChecker/palindromeChecker.py
sirflano/dt228-cloud-repo
0e58503e7cd454522fac40efef4cd67bffb7bf8e
[ "MIT" ]
null
null
null
lab3/palindromeChecker/palindromeChecker.py
sirflano/dt228-cloud-repo
0e58503e7cd454522fac40efef4cd67bffb7bf8e
[ "MIT" ]
null
null
null
class readin: #read in string teBeChecked = input("Input string to be checked please: ") #strip string of whitespace teBeChecked = teBeChecked.replace(" ", "") #copy a reverse of the sting tempString = teBeChecked[::-1] #check if the strings are the same, print result if teBeChecked == tempString: ...
20.277778
60
0.676712
89d6f5ec490d305ff6905ef2efd4f8d5f6470ad7
12,008
py
Python
python/ccxt/lykke.py
hippylover/ccxt
db304e95b699c1971ad37b9053ae71fcb5dc3b03
[ "MIT" ]
2
2018-02-28T02:51:59.000Z
2018-02-28T03:25:51.000Z
python/ccxt/lykke.py
August-Ghost/ccxt
886c596ffde611b5a92cb5b6e3788ff010324c74
[ "MIT" ]
null
null
null
python/ccxt/lykke.py
August-Ghost/ccxt
886c596ffde611b5a92cb5b6e3788ff010324c74
[ "MIT" ]
9
2018-02-20T18:24:00.000Z
2019-06-18T14:23:11.000Z
# -*- coding: utf-8 -*- from ccxt.base.exchange import Exchange import math class lykke (Exchange): def describe(self): return self.deep_extend(super(lykke, self).describe(), { 'id': 'lykke', 'name': 'Lykke', 'countries': 'CH', 'version': 'v1', ...
35.421829
126
0.461942
8984f586dc582596a1ac4a5d1bd624f72b1e11b4
1,109
py
Python
main.py
tejaskj/youtube-mp3-downloader
e91ebf2399cdcdb287f1931c73149b1b575792cd
[ "MIT" ]
null
null
null
main.py
tejaskj/youtube-mp3-downloader
e91ebf2399cdcdb287f1931c73149b1b575792cd
[ "MIT" ]
null
null
null
main.py
tejaskj/youtube-mp3-downloader
e91ebf2399cdcdb287f1931c73149b1b575792cd
[ "MIT" ]
null
null
null
# add the below to yld_opts dict to set the download location # 'outtmpl': 'somewhere/%(extractor_key)s/%(extractor)s-%(id)s-%(title)s.%(ext)s', from __future__ import unicode_literals import youtube_dl from datetime import datetime import sys def my_hook(d): if d['status'] == 'finished': print('Done downloading, ...
25.204545
82
0.670875
3b879f3be16270620b7a8c8b5186e9271eec9a3a
14,960
py
Python
tensortrade/feed/api/float/window/ewm.py
nicomon24/tensortrade
870ae06a4440045edde4f5306e64264bd33d5b67
[ "Apache-2.0" ]
2
2020-10-22T01:01:50.000Z
2021-03-06T17:27:51.000Z
tensortrade/feed/api/float/window/ewm.py
nicomon24/tensortrade
870ae06a4440045edde4f5306e64264bd33d5b67
[ "Apache-2.0" ]
1
2020-09-01T09:38:23.000Z
2020-09-01T09:38:23.000Z
tensortrade/feed/api/float/window/ewm.py
nicomon24/tensortrade
870ae06a4440045edde4f5306e64264bd33d5b67
[ "Apache-2.0" ]
1
2020-09-20T21:39:35.000Z
2020-09-20T21:39:35.000Z
""" ewm.py contains functions and classes for exponential weighted moving stream operations. """ from typing import List, Tuple import numpy as np from tensortrade.feed.core.base import Stream from tensortrade.feed.api.float import Float class ExponentialWeightedMovingAverage(Stream[float]): r"""A stream opera...
33.024283
136
0.549198
04074615c69392ff0430b1404394d47adc6c6009
851
py
Python
bspider/agent/controller/node.py
littlebai3618/bspider
ff4d003cd0825247db4efe62db95f9245c0a303c
[ "BSD-3-Clause" ]
3
2020-06-19T03:52:29.000Z
2021-05-21T05:50:46.000Z
bspider/agent/controller/node.py
littlebai3618/bspider
ff4d003cd0825247db4efe62db95f9245c0a303c
[ "BSD-3-Clause" ]
2
2021-03-31T19:39:03.000Z
2021-05-12T02:10:26.000Z
bspider/agent/controller/node.py
littlebai3618/bspider
ff4d003cd0825247db4efe62db95f9245c0a303c
[ "BSD-3-Clause" ]
null
null
null
""" 封装查看节点信息操作为api """ from flask import Blueprint from bspider.agent.service.node import NodeService from bspider.core.api import auth from .validators.worker_forms import RegisterForm node = Blueprint('node_bp', __name__) node_service = NodeService() @node.route('/node', methods=['GET']) def status(): """...
25.029412
58
0.741481
8d3b58aff9c0cdcf90b57bf5e5da87bf85db3719
17,891
py
Python
pyaoscx/device.py
aruba/pyaoscx
913506eef8643f4e7b92f0d1633310e62ec5f7e2
[ "Apache-2.0" ]
25
2020-03-12T15:55:03.000Z
2022-03-25T14:39:17.000Z
pyaoscx/device.py
aruba/pyaoscx
913506eef8643f4e7b92f0d1633310e62ec5f7e2
[ "Apache-2.0" ]
13
2020-09-25T18:59:30.000Z
2022-01-19T05:46:51.000Z
pyaoscx/device.py
aruba/pyaoscx
913506eef8643f4e7b92f0d1633310e62ec5f7e2
[ "Apache-2.0" ]
11
2020-05-20T15:08:13.000Z
2022-03-21T18:42:12.000Z
# (C) Copyright 2019-2021 Hewlett Packard Enterprise Development LP. # Apache License 2.0 from copy import deepcopy import logging import json from urllib.parse import quote_plus from pyaoscx.exceptions.generic_op_error import GenericOperationError from pyaoscx.exceptions.response_error import ResponseError from pya...
32.707495
98
0.587782
daa201f17ec57967905e3dbd0ab337507d23ba09
17,012
py
Python
calliope/backend/pyomo/constraints/capacity.py
Dustin231/calliope
31e489a573fffc077d1124444bd2116b95ca13ae
[ "Apache-2.0" ]
1
2021-09-06T18:42:08.000Z
2021-09-06T18:42:08.000Z
calliope/backend/pyomo/constraints/capacity.py
ahilbers/calliope
72bfa063303f9c03fb234d95889a0742fcd2fd69
[ "Apache-2.0" ]
null
null
null
calliope/backend/pyomo/constraints/capacity.py
ahilbers/calliope
72bfa063303f9c03fb234d95889a0742fcd2fd69
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) since 2013 Calliope contributors listed in AUTHORS. Licensed under the Apache 2.0 License (see LICENSE file). capacity.py ~~~~~~~~~~~~~~~~~ Capacity constraints for technologies (output, resource, area, and storage). """ import pyomo.core as po # pylint: disable=import-error import numpy as np f...
37.063181
124
0.65348
51c893bfc3cc0f79d482c3495614509c9cd5321c
32,004
py
Python
sudoku/labeled_printer.py
dinkumsoftware/dinkum
57fd217b81a5c95b08653977c8df17f7783ae3f6
[ "Apache-2.0" ]
null
null
null
sudoku/labeled_printer.py
dinkumsoftware/dinkum
57fd217b81a5c95b08653977c8df17f7783ae3f6
[ "Apache-2.0" ]
null
null
null
sudoku/labeled_printer.py
dinkumsoftware/dinkum
57fd217b81a5c95b08653977c8df17f7783ae3f6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # dinkum/sudoku/labeled_printer.py ''' Has a function, print_labeled_board, which prints a human-readable board with all the cell numbers, row numbers, column numbers, and block numbers labeled. Cell values are shown in middle of cell and number of possible_values for unsolved cells are shown in...
47.343195
106
0.347832
81f8e529b873cfea17537db72cab9b4fe446f187
1,557
py
Python
ttest_ngram_metrics.py
KaijuML/dtt-multi-branch
a49850a95034e58d387b9d48c647cfc2b83c45b5
[ "Apache-2.0" ]
8
2021-02-25T08:19:55.000Z
2022-03-12T06:25:36.000Z
ttest_ngram_metrics.py
KaijuML/dtt-multi-branch
a49850a95034e58d387b9d48c647cfc2b83c45b5
[ "Apache-2.0" ]
5
2021-05-20T19:11:58.000Z
2021-07-14T07:46:33.000Z
ttest_ngram_metrics.py
KaijuML/dtt-multi-branch
a49850a95034e58d387b9d48c647cfc2b83c45b5
[ "Apache-2.0" ]
null
null
null
import argparse from pprint import pprint import numpy as np from nltk.translate.bleu_score import sentence_bleu from scipy.stats import ttest_rel from data.utils import FileIterable from parent import parent_instance_level def t_test(packed): stat, p_value = ttest_rel(*packed) return {'t-statistic': stat, ...
36.209302
116
0.648041
355702196091f100d11978415dbfcb1872b4e6ef
1,059
py
Python
tensorflow_datasets/audio/fuss_test.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
2
2022-02-14T09:51:39.000Z
2022-02-14T13:27:49.000Z
tensorflow_datasets/audio/fuss_test.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/audio/fuss_test.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
1
2020-12-13T22:11:33.000Z
2020-12-13T22:11:33.000Z
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets 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 appl...
30.257143
74
0.753541
1ea1a6ce9cfe5fddfdf0cf8c1a3988c685ba958e
11,114
py
Python
var/spack/repos/builtin/packages/bazel/package.py
vitodb/spack
b9ab1de4c5f7b21d9f9cb88b7251820a48e82d27
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2021-02-22T18:04:31.000Z
2021-02-22T18:04:31.000Z
var/spack/repos/builtin/packages/bazel/package.py
danlipsa/spack
699ae50ebf13ee425a482988ccbd4c3c994ab5e6
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-04-24T13:30:08.000Z
2020-04-24T13:40:08.000Z
var/spack/repos/builtin/packages/bazel/package.py
danlipsa/spack
699ae50ebf13ee425a482988ccbd4c3c994ab5e6
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Bazel(Package): """Bazel is an open-source build and test tool similar to Make, Maven, and...
59.433155
97
0.741857
46391dd7a5971dbdae86f59980acd65317e38919
4,680
py
Python
tests/test_summary_items.py
lizy331/bert-extractive-summarizer
a7529fa968e87196b47c80c4dcd7dc4a59052cbc
[ "MIT" ]
2
2021-01-15T08:38:11.000Z
2021-07-22T06:01:10.000Z
tests/test_summary_items.py
lizy331/bert-extractive-summarizer
a7529fa968e87196b47c80c4dcd7dc4a59052cbc
[ "MIT" ]
null
null
null
tests/test_summary_items.py
lizy331/bert-extractive-summarizer
a7529fa968e87196b47c80c4dcd7dc4a59052cbc
[ "MIT" ]
null
null
null
import pytest from summarizer import Summarizer, TransformerSummarizer from summarizer.coreference_handler import CoreferenceHandler from transformers import AlbertTokenizer, AlbertModel @pytest.fixture() def custom_summarizer(): albert_model = AlbertModel.from_pretrained('albert-base-v1', output_hidden_states=Tr...
51.428571
383
0.764744
ecd8d6f3d796681cb546f1dba8268e4b307031d5
525
py
Python
setup.py
storesund/dash_elasticsearch_autosuggest
24012c41c6f9a95c55a0359be2be7372fd344508
[ "MIT" ]
12
2019-08-14T18:41:22.000Z
2021-12-14T23:12:15.000Z
setup.py
storesund/dash_elasticsearch_autosuggest
24012c41c6f9a95c55a0359be2be7372fd344508
[ "MIT" ]
4
2020-07-07T20:07:31.000Z
2021-05-09T06:47:48.000Z
setup.py
storesund/dash_elasticsearch_autosuggest
24012c41c6f9a95c55a0359be2be7372fd344508
[ "MIT" ]
7
2019-06-22T17:29:50.000Z
2021-10-30T10:24:10.000Z
import json import os from setuptools import setup with open(os.path.join('dash_elasticsearch_autosuggest', 'package.json')) as f: package = json.load(f) package_name = package["name"].replace(" ", "_").replace("-", "_") setup( name=package_name, version=package["version"], author=package['author'],...
25
85
0.702857
b57807972f9ab6b9b1aeacd17bee891808e072e4
16,105
py
Python
namsel.py
BuddhistDigitalResourceCenter/namsel
f6f112b7e1710db07d47cbaed1dee33a33bfd814
[ "MIT" ]
25
2017-02-18T04:03:36.000Z
2021-03-06T17:44:21.000Z
namsel.py
buda-base/namsel
f6f112b7e1710db07d47cbaed1dee33a33bfd814
[ "MIT" ]
12
2017-02-19T13:47:48.000Z
2019-09-04T07:42:08.000Z
namsel.py
buda-base/namsel
f6f112b7e1710db07d47cbaed1dee33a33bfd814
[ "MIT" ]
13
2017-02-19T11:15:24.000Z
2020-12-08T09:37:21.000Z
#! /usr/bin/env python # encoding: utf-8 import logging import sys from PIL import Image from config_manager import Config, default_config from config_util import load_config, save_config from line_breaker import LineCluster, LineCut import numpy as np from page_elements2 import PageElements as PE2 from recognize impor...
45.49435
200
0.568395
e795444c071a2316a658711d7d83347f9be31a91
1,431
py
Python
src/application/urls.py
yjkimjunior/yjkimjunior
48700fb05e5bfafa6ca55bdf43929b4b12de7f2c
[ "MIT", "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
src/application/urls.py
yjkimjunior/yjkimjunior
48700fb05e5bfafa6ca55bdf43929b4b12de7f2c
[ "MIT", "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
src/application/urls.py
yjkimjunior/yjkimjunior
48700fb05e5bfafa6ca55bdf43929b4b12de7f2c
[ "MIT", "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" urls.py URL dispatch route mappings and error handlers """ from flask import render_template from application import app from application import views ## URL dispatch rules # App Engine warm up handler # See http://code.google.com/appengine/docs/python/config/appconfig.html#Warming_Requests # app.add_url_rule(...
28.058824
124
0.744235
c3b3133eb875f1a2651bf66846699a87a11e07ff
5,494
py
Python
crm/views.py
wlcobb/foodservice
bafebef79e0322e926c88d2cd16ac1fe77337f76
[ "MIT" ]
null
null
null
crm/views.py
wlcobb/foodservice
bafebef79e0322e926c88d2cd16ac1fe77337f76
[ "MIT" ]
null
null
null
crm/views.py
wlcobb/foodservice
bafebef79e0322e926c88d2cd16ac1fe77337f76
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from .models import * from .forms import * from django.shortcuts import render, get_object_or_404 from django.shortcuts import redirect from django.shortcuts import render from django.db.models import Sum now = timezone.now() def home(request): return ren...
37.121622
95
0.648162
d15ac8c09ebcabea45b628cb5ef56b63865139eb
1,828
py
Python
cluster.py
CycloChen/small_RNA
3aa4011f6b19a782c353e76103a9ddc3a541fc3c
[ "Unlicense" ]
null
null
null
cluster.py
CycloChen/small_RNA
3aa4011f6b19a782c353e76103a9ddc3a541fc3c
[ "Unlicense" ]
null
null
null
cluster.py
CycloChen/small_RNA
3aa4011f6b19a782c353e76103a9ddc3a541fc3c
[ "Unlicense" ]
null
null
null
#/usr/bin/env python import csv import sys import argparse from collections import OrderedDict #Cluster genome def cluster1(file): with open(file) as f: line=f.readline() cluster={} while line: if line[0]=="@": pass else: i=line.split() #Convert line string to a list a=int(i[3]) #Position in ...
23.139241
131
0.636761
08f2510e6e680f42b1c8e30e75ff5ffa3bb4ec13
11,641
py
Python
tf_quant_finance/experimental/dates/date_tensor_test.py
kuangche-james/tf-quant-finance
25251a75ab19147e72f89704f841ed41fbc354db
[ "Apache-2.0" ]
1
2021-09-01T06:27:02.000Z
2021-09-01T06:27:02.000Z
tf_quant_finance/experimental/dates/date_tensor_test.py
bacoco/tf-quant-finance
25251a75ab19147e72f89704f841ed41fbc354db
[ "Apache-2.0" ]
null
null
null
tf_quant_finance/experimental/dates/date_tensor_test.py
bacoco/tf-quant-finance
25251a75ab19147e72f89704f841ed41fbc354db
[ "Apache-2.0" ]
1
2021-09-01T06:26:57.000Z
2021-09-01T06:26:57.000Z
# Lint as: python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
42.330909
95
0.685422
08222af6f3570a2ec4b64f179d46b5a8abf8e80c
74,190
py
Python
flair/trainers/finetune_trainer.py
CharlieKC/ACE
ba8909e49dd5408881684f080f2de81b6ec224c2
[ "MIT" ]
161
2020-10-28T03:11:50.000Z
2022-03-28T11:24:29.000Z
flair/trainers/finetune_trainer.py
CharlieKC/ACE
ba8909e49dd5408881684f080f2de81b6ec224c2
[ "MIT" ]
30
2020-11-24T05:43:26.000Z
2022-03-16T04:02:47.000Z
flair/trainers/finetune_trainer.py
CharlieKC/ACE
ba8909e49dd5408881684f080f2de81b6ec224c2
[ "MIT" ]
23
2020-10-14T02:35:37.000Z
2022-03-28T03:10:09.000Z
""" Fine-tune trainer: a trainer for finetuning BERT and able to be parallelized based on flair Author: Xinyu Wang Contact: wangxy1@shanghaitech.edu.cn """ from .distillation_trainer import * from transformers import ( AdamW, get_linear_schedule_with_warmup, ) from flair.models.biaffine_attention import B...
42.711572
245
0.690201
9fcf2c88afda2753e3b40a5da1bbc2721be19032
1,264
py
Python
setup.py
oremanj/greenback
b6127448c181b5b5c995f3d7dddc4c16b803ebbf
[ "Apache-2.0", "MIT" ]
45
2020-05-02T16:29:32.000Z
2022-03-29T06:58:11.000Z
setup.py
oremanj/greenback
b6127448c181b5b5c995f3d7dddc4c16b803ebbf
[ "Apache-2.0", "MIT" ]
14
2020-06-29T05:44:50.000Z
2022-01-05T22:18:11.000Z
setup.py
oremanj/greenback
b6127448c181b5b5c995f3d7dddc4c16b803ebbf
[ "Apache-2.0", "MIT" ]
1
2020-07-05T01:22:31.000Z
2020-07-05T01:22:31.000Z
from setuptools import setup, find_packages exec(open("greenback/_version.py", encoding="utf-8").read()) LONG_DESC = open("README.rst", encoding="utf-8").read() setup( name="greenback", version=__version__, description="Reenter an async event loop from synchronous code", url="https://github.com/orema...
36.114286
70
0.631329
2aa98255b92dbdf4e3ce21a94b4cb572a469aacf
1,030
py
Python
load_script.py
JacobJustice/SneakerPricePrediction
34598fb1a3235762e1239e14224c7eddfb33f64f
[ "MIT" ]
null
null
null
load_script.py
JacobJustice/SneakerPricePrediction
34598fb1a3235762e1239e14224c7eddfb33f64f
[ "MIT" ]
1
2021-03-11T02:19:12.000Z
2021-03-11T05:44:13.000Z
load_script.py
JacobJustice/SneakerPricePrediction
34598fb1a3235762e1239e14224c7eddfb33f64f
[ "MIT" ]
null
null
null
from predict import normalize_pixels from predict import load_df from pprint import pprint import pandas as pd import argparse import sys import numpy as np import autokeras as ak from tensorflow import keras import joblib # load model loaded_model = keras.models.load_model("./autokeras_out_2/", custom_objects=ak.CUST...
24.52381
94
0.767961
544236219820264c51cce6b762d3bcc488088940
42,733
py
Python
main.py
PatcailH/BattleX
4b25160297158aa82b7d02a38f3e0a8b542d479c
[ "MIT" ]
1
2022-03-07T20:17:53.000Z
2022-03-07T20:17:53.000Z
main.py
PatcailH/BattleX
4b25160297158aa82b7d02a38f3e0a8b542d479c
[ "MIT" ]
null
null
null
main.py
PatcailH/BattleX
4b25160297158aa82b7d02a38f3e0a8b542d479c
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' BattleX ''' import pygame # import pygame from pygame import mixer # music import os # operating system import random # random variables import csv # data saving def checkClick(x1,y1,x2,y2): # this method checks if a boxed area is clicked global mouseDown # the mouseDown varia...
39.641002
153
0.564084
180dfa1133cfae5577a70fbbf7ccf8f02ca65aef
161
py
Python
datetime_practise.py
Ahsanul08/IPython-shortsSnippets
5de76226aff2400508468f0a050b0e5cc7a77801
[ "Apache-2.0" ]
null
null
null
datetime_practise.py
Ahsanul08/IPython-shortsSnippets
5de76226aff2400508468f0a050b0e5cc7a77801
[ "Apache-2.0" ]
null
null
null
datetime_practise.py
Ahsanul08/IPython-shortsSnippets
5de76226aff2400508468f0a050b0e5cc7a77801
[ "Apache-2.0" ]
null
null
null
from datetime import datetime print "Today is {dt:%d-%m-%Y} and now it is {dt:%H}'o clock with {dt:%M} minutes and {dt:%S} seconds".format(dt = datetime.now())
40.25
129
0.670807
a7a96b85d1a4966c28e6d5285b27a3113cbb71b0
1,474
py
Python
setup-cx_freeze.py
Spferical/Conway-s-Game-of-Pong
ef89e4caaeb512ae6b033d2878349c51a30c2ca5
[ "MIT" ]
1
2018-06-12T10:58:24.000Z
2018-06-12T10:58:24.000Z
setup-cx_freeze.py
Spferical/Conway-s-Game-of-Pong
ef89e4caaeb512ae6b033d2878349c51a30c2ca5
[ "MIT" ]
null
null
null
setup-cx_freeze.py
Spferical/Conway-s-Game-of-Pong
ef89e4caaeb512ae6b033d2878349c51a30c2ca5
[ "MIT" ]
null
null
null
import sys from cx_Freeze import setup, Executable from config import VERSION # Dependencies are automatically detected, but it might need fine tuning. build_exe_options = {"packages": [], "excludes": [], "compressed": True, "include_files": [("README.txt"...
38.789474
76
0.580733
d1a99ed8b72c442be8a1d4c419edc68d97b2022e
1,383
py
Python
.github/check-status/check-status.py
bl0x/symbiflow-arch-defs
5fa5e71526e443d589971f2649d8b189df982d72
[ "ISC" ]
null
null
null
.github/check-status/check-status.py
bl0x/symbiflow-arch-defs
5fa5e71526e443d589971f2649d8b189df982d72
[ "ISC" ]
118
2022-02-20T15:05:04.000Z
2022-03-31T18:26:13.000Z
.github/check-status/check-status.py
bl0x/symbiflow-arch-defs
5fa5e71526e443d589971f2649d8b189df982d72
[ "ISC" ]
null
null
null
#!/usr/bin/env python3 import re from os import environ, path from github import Github from stdm import get_latest_artifact_url gh_ref = environ['GITHUB_REPOSITORY'] gh_sha = environ['INPUT_SHA'] MAIN_CI = "Architecture Definitions" print('Getting status of %s @ %s...' % (gh_ref, gh_sha)) status = Github(environ[...
27.117647
79
0.666667
4ac1a5b1399c0c8762bf850010cebddee047cfb0
6,509
py
Python
supervised_path_based.py
kwashio/filling_missing_path
b5ab85c9d1e42ee47857299df3fcd79b6127e1fe
[ "Apache-2.0" ]
null
null
null
supervised_path_based.py
kwashio/filling_missing_path
b5ab85c9d1e42ee47857299df3fcd79b6127e1fe
[ "Apache-2.0" ]
null
null
null
supervised_path_based.py
kwashio/filling_missing_path
b5ab85c9d1e42ee47857299df3fcd79b6127e1fe
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import argparse import os import pickle import numpy as np from supervised_model_common import * def pickle_load(file): with open(file, 'rb') as f: return pickle.load(f) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--data_prefix', type=st...
38.514793
119
0.537102
df54fdb6ff27a4fa614ff50e154bb3c8ee0b99ba
631
py
Python
polling_stations/apps/api/fields.py
chris48s/UK-Polling-Stations
4742b527dae94f0276d35c80460837be743b7d17
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/api/fields.py
chris48s/UK-Polling-Stations
4742b527dae94f0276d35c80460837be743b7d17
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/api/fields.py
chris48s/UK-Polling-Stations
4742b527dae94f0276d35c80460837be743b7d17
[ "BSD-3-Clause" ]
null
null
null
from rest_framework import serializers class PointField(serializers.Field): type_name = 'PointField' type_label = 'point' def to_representation(self, value): """ Transform POINT object to a geojson feature. """ if value is None: return value value = { ...
22.535714
52
0.415214
4a342e50ee3d484ae1e1db79025454ac586c1010
3,498
py
Python
test/test_functional.py
bkk003/text_de_duplication_monitoring-
11f40daa2c591299b3d2d8340ff7a78d5f7cad01
[ "MIT" ]
3
2020-02-05T09:32:50.000Z
2021-06-16T12:54:22.000Z
test/test_functional.py
bkk003/text_de_duplication_monitoring-
11f40daa2c591299b3d2d8340ff7a78d5f7cad01
[ "MIT" ]
9
2020-02-05T09:58:59.000Z
2020-09-18T09:05:33.000Z
test/test_functional.py
bkk003/text_de_duplication_monitoring-
11f40daa2c591299b3d2d8340ff7a78d5f7cad01
[ "MIT" ]
1
2020-02-05T09:33:22.000Z
2020-02-05T09:33:22.000Z
"""Koninklijke Philips N.V., 2019 - 2020. All rights reserved. This file does the functional test of the "Text similarity from IO layer as well as UI later """ import os import unittest import subprocess from test.test_resource import TestResource from test.verify_path import FunctionalTestVerification from similarity....
45.428571
119
0.680675
1762a6ab4af477399871f0ee2a2e68072fd13729
1,421
py
Python
qiskit/extensions/standard/y.py
kifumi/qiskit-terra
203fca6d694a18824a6b12cbabd3dd2c64dd12ae
[ "Apache-2.0" ]
1
2018-11-01T01:35:43.000Z
2018-11-01T01:35:43.000Z
qiskit/extensions/standard/y.py
a-amaral/qiskit-terra
e73beba1e68de2617046a7e1e9eeac375b61de81
[ "Apache-2.0" ]
null
null
null
qiskit/extensions/standard/y.py
a-amaral/qiskit-terra
e73beba1e68de2617046a7e1e9eeac375b61de81
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. # pylint: disable=invalid-name """ Pauli Y (bit-phase-flip) gate. """ from qiskit import CompositeGate from qiskit import Ga...
25.375
78
0.643913
72d16edb3dbd3f8957440946d3781f41557ac747
4,114
py
Python
benchmark/startCirq1519.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq1519.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq1519.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=5 # total number=57 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
38.811321
77
0.654594
ea62611873abe96ac9c74a989700431897a2d7ce
11,796
py
Python
code/utils/constants.py
minthantsin/opensourcegames
ead0b89cff79918b98745df7c3fd9b374ecf3b87
[ "CC0-1.0" ]
1
2021-03-17T08:44:54.000Z
2021-03-17T08:44:54.000Z
code/utils/constants.py
minthantsin/opensourcegames
ead0b89cff79918b98745df7c3fd9b374ecf3b87
[ "CC0-1.0" ]
null
null
null
code/utils/constants.py
minthantsin/opensourcegames
ead0b89cff79918b98745df7c3fd9b374ecf3b87
[ "CC0-1.0" ]
null
null
null
""" Paths, properties. """ import os import configparser # paths root_path = os.path.realpath(os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir)) entries_path = os.path.join(root_path, 'entries') tocs_path = os.path.join(entries_path, 'tocs') code_path = os.path.join(root_path, 'code') web_path =...
55.121495
187
0.686843
68525ebad9141605b156c06147749bb2d4a23a51
1,262
py
Python
projekt.py
pawelhandrysik/mapki
534cfca2433a6b030677c6f046bde3e7be540b76
[ "MIT" ]
null
null
null
projekt.py
pawelhandrysik/mapki
534cfca2433a6b030677c6f046bde3e7be540b76
[ "MIT" ]
null
null
null
projekt.py
pawelhandrysik/mapki
534cfca2433a6b030677c6f046bde3e7be540b76
[ "MIT" ]
null
null
null
#!/usr/bin/python file = open('labirynt3.txt') mapa = file.readlines() mapa = ''.join(mapa) # import pdb; pdb.set_trace() visited = [] def findpath(mapa): mapa = mapa.split("\n") size = map(int, mapa[0].split(' ')) mapa = mapa[1:] mapa = map(list, mapa) start = None for y in range(size[0]): ...
23.811321
55
0.500792
38d77446a322f86eac9efec485006859281c13d8
1,903
py
Python
aionotion/bridge.py
bachya/aionotion
974782a31d8d29c55b9a21d2f55fc6b028bb0c53
[ "MIT" ]
null
null
null
aionotion/bridge.py
bachya/aionotion
974782a31d8d29c55b9a21d2f55fc6b028bb0c53
[ "MIT" ]
50
2019-06-17T15:20:49.000Z
2022-03-01T18:05:35.000Z
aionotion/bridge.py
bachya/aionotion
974782a31d8d29c55b9a21d2f55fc6b028bb0c53
[ "MIT" ]
1
2021-02-03T16:13:22.000Z
2021-02-03T16:13:22.000Z
"""Define endpoints for interacting with bridges.""" from typing import Any, Callable, Dict, List, cast class Bridge: # pylint: disable=too-few-public-methods """Define an object to interact with all endpoints.""" def __init__(self, request: Callable) -> None: """Initialize.""" self._request...
41.369565
87
0.626905
e5209c7369e587a1c9a5c914c12ccc44282d9f40
1,724
py
Python
Hackbot/bot.py
starwiz-7/HackBot
27c1928d4b11f66ee334580324f77ca16ae2d859
[ "MIT" ]
10
2021-02-20T23:43:41.000Z
2022-02-15T20:55:44.000Z
Hackbot/bot.py
starwiz-7/HackBot
27c1928d4b11f66ee334580324f77ca16ae2d859
[ "MIT" ]
18
2021-01-23T07:35:48.000Z
2022-03-01T10:29:00.000Z
Hackbot/bot.py
yoki31/HackBot
7607013d63ccb8e26517d13b3a81b8a76a7be323
[ "MIT" ]
4
2021-06-23T04:07:43.000Z
2022-01-14T05:55:25.000Z
import os from os import environ import logging from pathlib import Path import discord from discord.ext import commands from discord.utils import find from utils.db import new_hackathon def main(): DISCORD_TOKEN = os.environ.get('DISCORD_TOKEN') if not DISCORD_TOKEN: logging.error('Token missing') ...
35.183673
182
0.661253
f1fbaca80725f987ef5d3cef20c27b2ffe5f1191
739
py
Python
docs/Machine-Learning/ipython/embedding/start_ipython_config.py
MitchellTesla/Quantm
57045e0ea9ee7b965ecd26e4a8d0c1902df65245
[ "MIT" ]
7
2021-02-15T06:43:23.000Z
2022-01-13T10:43:32.000Z
ipython-7.29.0/examples/Embedding/start_ipython_config.py
JohnLauFoo/clc_packages_Yu
259f01d9b5c02154ce258734d519ae8995cd0991
[ "MIT" ]
1
2021-04-19T12:32:49.000Z
2021-04-19T12:32:49.000Z
ipython-7.29.0/examples/Embedding/start_ipython_config.py
JohnLauFoo/clc_packages_Yu
259f01d9b5c02154ce258734d519ae8995cd0991
[ "MIT" ]
2
2020-11-18T19:39:31.000Z
2021-11-17T07:49:09.000Z
"""Quick snippet explaining how to set config options when using start_ipython.""" # First create a config object from the traitlets library from traitlets.config import Config c = Config() # Now we can set options as we would in a config file: # c.Class.config_value = value # For example, we can set the exec_line...
32.130435
82
0.764547
d7da622a418aff14a28ee1df9a279e14a72b48f5
524
py
Python
tests/test_utils.py
KatyKasilina/StumbleUpon-Evergreen-DataMining
de8824bb85f00aef5b9ad57690191dbc984b9384
[ "MIT" ]
null
null
null
tests/test_utils.py
KatyKasilina/StumbleUpon-Evergreen-DataMining
de8824bb85f00aef5b9ad57690191dbc984b9384
[ "MIT" ]
null
null
null
tests/test_utils.py
KatyKasilina/StumbleUpon-Evergreen-DataMining
de8824bb85f00aef5b9ad57690191dbc984b9384
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.linear_model import LogisticRegression from sklearn.ensemble import RandomForestClassifier from src.utils import read_data, load_pkl_file def test_read_data(synthetic_data_path: str): df = read_data(synthetic_data_path) assert isinstance(df, pd.DataFrame) assert (200, 1...
22.782609
93
0.793893
d58a1c4265b84c09e29f3c3bfbc79a6a3ba19ab3
3,911
py
Python
simple_example_with_mean_py2.py
JulienPeloton/bigviz
205f5ef29d60b25e11db2e3c76fe248b56952bd8
[ "Apache-2.0" ]
null
null
null
simple_example_with_mean_py2.py
JulienPeloton/bigviz
205f5ef29d60b25e11db2e3c76fe248b56952bd8
[ "Apache-2.0" ]
null
null
null
simple_example_with_mean_py2.py
JulienPeloton/bigviz
205f5ef29d60b25e11db2e3c76fe248b56952bd8
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Julien Peloton # # 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 writin...
28.97037
75
0.628484
a700f68a3cebcc21ce7d7ad1b5861248d132872f
246
py
Python
ebb_lint/checkers/registration.py
AndrewLvov/ebb-lint
3ed549f0e83f1c2bbba50e87923577259bd33b75
[ "PSF-2.0" ]
null
null
null
ebb_lint/checkers/registration.py
AndrewLvov/ebb-lint
3ed549f0e83f1c2bbba50e87923577259bd33b75
[ "PSF-2.0" ]
null
null
null
ebb_lint/checkers/registration.py
AndrewLvov/ebb-lint
3ed549f0e83f1c2bbba50e87923577259bd33b75
[ "PSF-2.0" ]
null
null
null
import venusian def register_checker(pattern, **extra): def deco(func): def callback(scanner, name, obj): scanner.register(pattern, obj, extra) venusian.attach(func, callback) return func return deco
22.363636
49
0.638211
3fffff12e6cf9402bd4f21b8f4c56fa81cae0393
9,047
py
Python
sicer/src/find_islands_in_pr.py
jeffreyyoo/SICER2
412581f4bd4345d8100c62bf2bee8ae2bc7a2d6b
[ "MIT" ]
null
null
null
sicer/src/find_islands_in_pr.py
jeffreyyoo/SICER2
412581f4bd4345d8100c62bf2bee8ae2bc7a2d6b
[ "MIT" ]
1
2019-11-24T16:35:21.000Z
2019-11-24T16:35:21.000Z
sicer/src/find_islands_in_pr.py
jinyongyoo/SICER2
412581f4bd4345d8100c62bf2bee8ae2bc7a2d6b
[ "MIT" ]
null
null
null
# Authors: Chongzhi Zang, Weiqun Peng, Dustin E Schones and Keji Zhao # Modified by: Jin Yong Yoo import multiprocessing as mp import os from functools import partial from math import * import numpy as np from sicer.lib import Background_island_probscore_statistics from sicer.lib import GenomeData """ Take in coor...
41.122727
143
0.635017
63f9606648f782faa32dc8a17cc83ab7f36805bb
366
py
Python
app/hotelrecipe/urls.py
zohaib089/rest-hotelrecipe-api
a03203a569e8ac9391a8d15427c6fca95ab21aea
[ "MIT" ]
1
2019-08-27T00:18:49.000Z
2019-08-27T00:18:49.000Z
app/hotelrecipe/urls.py
zohaib089/rest-hotelrecipe-api
a03203a569e8ac9391a8d15427c6fca95ab21aea
[ "MIT" ]
null
null
null
app/hotelrecipe/urls.py
zohaib089/rest-hotelrecipe-api
a03203a569e8ac9391a8d15427c6fca95ab21aea
[ "MIT" ]
null
null
null
from django.urls import path,include from rest_framework.routers import DefaultRouter from hotelrecipe import views router = DefaultRouter() router.register('tag',views.TagViewSet) router.register('ingredients',views.IngredientViewSet) router.register('recipes',views.RecipeViewSet) app_name = 'hotelrecipe' urlpat...
20.333333
54
0.789617
cea014e886923d3e301516e4402a1864a4494674
3,080
py
Python
train_origin_tacotron.py
HappyBall/asr_guided_tacotron
be36f0895b81e338c5c51a7ab6d421fbf3aa055b
[ "MIT" ]
5
2018-08-02T13:44:11.000Z
2020-04-27T23:48:21.000Z
train_origin_tacotron.py
HappyBall/asr_guided_tacotron
be36f0895b81e338c5c51a7ab6d421fbf3aa055b
[ "MIT" ]
1
2019-08-19T06:47:26.000Z
2020-05-24T01:18:22.000Z
train_origin_tacotron.py
HappyBall/asr_guided_tacotron
be36f0895b81e338c5c51a7ab6d421fbf3aa055b
[ "MIT" ]
5
2019-02-18T16:39:47.000Z
2021-08-19T14:10:43.000Z
''' modified from https://www.github.com/kyubyong/tacotron ''' import os import sys from hyperparams import Hyperparams as hp import tensorflow as tf from tqdm import tqdm from utils import * from graph import Graph FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_string("keep_train", "False", "keep training from existe...
39.487179
242
0.619156
7eff54e78c15d2bd71af274c2148d7aa5f284941
32,664
py
Python
floris/simulation/flow_field.py
jialrs/floris-enhanced
66cdf1c9597aa3bb4f956cc9a0cb497312a690bf
[ "Apache-2.0" ]
null
null
null
floris/simulation/flow_field.py
jialrs/floris-enhanced
66cdf1c9597aa3bb4f956cc9a0cb497312a690bf
[ "Apache-2.0" ]
null
null
null
floris/simulation/flow_field.py
jialrs/floris-enhanced
66cdf1c9597aa3bb4f956cc9a0cb497312a690bf
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 NREL # 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 # dist...
44.622951
118
0.561689
578f06b179733750c010392cee2c16b10cc0785f
12,963
py
Python
tests/commands/test_commands.py
Bilel2038/bigchaindb
b1c34523edc96ea1f0acdf4c1d3a7a5ef36e0116
[ "Apache-2.0" ]
null
null
null
tests/commands/test_commands.py
Bilel2038/bigchaindb
b1c34523edc96ea1f0acdf4c1d3a7a5ef36e0116
[ "Apache-2.0" ]
null
null
null
tests/commands/test_commands.py
Bilel2038/bigchaindb
b1c34523edc96ea1f0acdf4c1d3a7a5ef36e0116
[ "Apache-2.0" ]
null
null
null
import json from unittest.mock import Mock, patch from argparse import Namespace import pytest @pytest.mark.tendermint def test_make_sure_we_dont_remove_any_command(): # thanks to: http://stackoverflow.com/a/18161115/597097 from bigchaindb.commands.bigchaindb import create_parser parser = create_parser...
36.515493
91
0.691198
5517c96888bdad40ff7b0b670f9b567850c3d50d
113,994
py
Python
sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_generated/operations/_path_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_generated/operations/_path_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_generated/operations/_path_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
63.683799
160
0.689291
f21c07588877737ff1a347604cf20229bdd4a97d
3,530
py
Python
jupyterlab_gcsfilebrowser/jupyterlab_gcsfilebrowser/tests/handlers_test.py
mkalil/jupyter-extensions
2949aa8fb08b2e0b7a0a14e1b977f62c3c6ddfb4
[ "Apache-2.0" ]
2
2020-06-25T19:29:03.000Z
2020-08-17T08:36:04.000Z
jupyterlab_gcsfilebrowser/jupyterlab_gcsfilebrowser/tests/handlers_test.py
mkalil/jupyter-extensions
2949aa8fb08b2e0b7a0a14e1b977f62c3c6ddfb4
[ "Apache-2.0" ]
25
2020-06-17T17:58:59.000Z
2020-08-11T14:53:58.000Z
jupyterlab_gcsfilebrowser/jupyterlab_gcsfilebrowser/tests/handlers_test.py
mkalil/jupyter-extensions
2949aa8fb08b2e0b7a0a14e1b977f62c3c6ddfb4
[ "Apache-2.0" ]
null
null
null
import unittest import datetime from unittest.mock import Mock, MagicMock, patch from jupyterlab_gcsfilebrowser import handlers from google.cloud import storage # used for connecting to GCS from google.cloud.storage import Blob, Bucket import pprint pp = pprint.PrettyPrinter(indent=2) class TestGCSDirectory(unit...
26.541353
69
0.550992
fa0e5a5b30d9e9710919b37c4ffd9a9bcdf293a5
9,204
py
Python
identify_domain_v3.py
gkovacs/tmi-browsing-behavior-prediction
0e7d44574003272ce457bf221bfa3e92002ad217
[ "MIT" ]
1
2019-12-16T11:44:18.000Z
2019-12-16T11:44:18.000Z
identify_domain_v3.py
gkovacs/tmi-browsing-behavior-prediction
0e7d44574003272ce457bf221bfa3e92002ad217
[ "MIT" ]
null
null
null
identify_domain_v3.py
gkovacs/tmi-browsing-behavior-prediction
0e7d44574003272ce457bf221bfa3e92002ad217
[ "MIT" ]
null
null
null
#!/usr/bin/env python # md5: bd300914dd85774d27f7ff523c56b0ab # coding: utf-8 from tmilib import * #user = get_test_users()[0] #print user #tab_focus_times = get_tab_focus_times_for_user(user) #print tab_focus_times[0].keys() #print active_second_to_domain_id.keys()[:10] #seen_domains_only_real ...
34.088889
869
0.690895
bc15bdf610e9b1f737d4ddc01d83395a6a566ea9
1,479
py
Python
pyjbox.py
aanastasiou/pyjunix
a2deb9a5e159155a175098918e3514e30714185d
[ "Apache-2.0" ]
1
2020-09-30T02:59:37.000Z
2020-09-30T02:59:37.000Z
pyjbox.py
aanastasiou/pyjunix
a2deb9a5e159155a175098918e3514e30714185d
[ "Apache-2.0" ]
1
2021-06-02T00:30:47.000Z
2021-06-02T00:30:47.000Z
pyjbox.py
aanastasiou/pyjunix
a2deb9a5e159155a175098918e3514e30714185d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys from pyjunix import (PyJKeys, PyJArray, PyJUnArray, PyJLs, PyJGrep, PyJPrtPrn, PyJSort, PyJLast, PyJPs, PyJJoin, PyJPaste, PyJCat, PyJSplit, PyJDiff, PyJUniq) script_dir = { "pyjkeys": PyJKeys, "pyjarray": PyJArra...
33.613636
116
0.535497
eb1f1fe0efaf7045d9a0b2842e0b134a19f30191
6,175
py
Python
UsedElecPred.py
snova301/UsedElecPred
7d85f78270921f48cf01c3f8e32273b270956638
[ "MIT" ]
null
null
null
UsedElecPred.py
snova301/UsedElecPred
7d85f78270921f48cf01c3f8e32273b270956638
[ "MIT" ]
null
null
null
UsedElecPred.py
snova301/UsedElecPred
7d85f78270921f48cf01c3f8e32273b270956638
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import pickle from pycaret.regression import * import jpholiday class ClassGetData: # データ保存場所 foldername = 'data/' def __init__(self, str_year): self.str_year = str_year # 電力使用量 def load_used_elec(self): elec_filename = self.fo...
27.815315
121
0.683239
d7adad435330b142025d326da26a926d4facc1bf
4,025
py
Python
agent/thingscope_api.py
irtlab/thingscope
5f0ea230b7aebdb270b7be2ad329e0ed5eabec68
[ "MIT" ]
null
null
null
agent/thingscope_api.py
irtlab/thingscope
5f0ea230b7aebdb270b7be2ad329e0ed5eabec68
[ "MIT" ]
8
2021-05-07T01:52:32.000Z
2021-05-07T02:00:13.000Z
agent/thingscope_api.py
irtlab/thingscope
5f0ea230b7aebdb270b7be2ad329e0ed5eabec68
[ "MIT" ]
null
null
null
import sys import json import requests import traceback class JWTData: def __init__(self, jwt_data): if jwt_data is None: raise Exception('Authorization failed') if not jwt_data['access_token'] or not jwt_data['refresh_token']: raise Exception('Authorization failed') ...
34.698276
105
0.598012
126672f92d255baa886fdc333493ff6260a7dfa5
19,036
py
Python
easy_thumbnails/tests/test_files.py
fdemmer/easy-thumbnails
bc39d7ec3f4c72b000a82f7838eb3c16bcaa86c7
[ "BSD-3-Clause" ]
null
null
null
easy_thumbnails/tests/test_files.py
fdemmer/easy-thumbnails
bc39d7ec3f4c72b000a82f7838eb3c16bcaa86c7
[ "BSD-3-Clause" ]
null
null
null
easy_thumbnails/tests/test_files.py
fdemmer/easy-thumbnails
bc39d7ec3f4c72b000a82f7838eb3c16bcaa86c7
[ "BSD-3-Clause" ]
1
2022-02-15T15:35:49.000Z
2022-02-15T15:35:49.000Z
from io import BytesIO from os import path from django.test import TestCase from easy_thumbnails import files, utils, signals, exceptions, models, engine from easy_thumbnails.conf import settings from easy_thumbnails.options import ThumbnailOptions from easy_thumbnails.tests import utils as test from PIL import Image ...
41.654267
79
0.636426
ddf0c68809b0e35b5ae9ab4f8ecebfd183bfcc8a
6,816
py
Python
goose3/text.py
Noblis/goose3
67305444549b00ab02398ee44128a36f5e9f8cba
[ "Apache-2.0" ]
575
2017-03-13T18:34:07.000Z
2022-03-28T07:06:42.000Z
goose3/text.py
Noblis/goose3
67305444549b00ab02398ee44128a36f5e9f8cba
[ "Apache-2.0" ]
101
2017-03-22T11:35:58.000Z
2022-03-29T17:23:28.000Z
goose3/text.py
lun3322/goose3
67305444549b00ab02398ee44128a36f5e9f8cba
[ "Apache-2.0" ]
86
2017-03-28T17:02:24.000Z
2022-03-28T07:06:53.000Z
# -*- coding: utf-8 -*- """\ This is a python port of "Goose" orignialy licensed to Gravity.com under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Python port was written by Xavier Grangier for Recrutae Gravity.co...
30.293333
105
0.646127
37f5b5cbf4ad3e575490669d46bc90143626f1de
1,663
py
Python
wazimap_ng/profile/serializers/highlights_serializer.py
CodeForAfrica/wazimap-ng
691d92a4685e60b6846d38a9cb0e60f1549c1d0d
[ "Apache-2.0" ]
null
null
null
wazimap_ng/profile/serializers/highlights_serializer.py
CodeForAfrica/wazimap-ng
691d92a4685e60b6846d38a9cb0e60f1549c1d0d
[ "Apache-2.0" ]
1
2021-03-18T14:02:24.000Z
2021-04-14T15:23:30.000Z
wazimap_ng/profile/serializers/highlights_serializer.py
CodeForAfrica/wazimap-ng
691d92a4685e60b6846d38a9cb0e60f1549c1d0d
[ "Apache-2.0" ]
null
null
null
from wazimap_ng.datasets.models import IndicatorData from .helpers import MetricCalculator def get_indicator_data(highlight, geographies): return IndicatorData.objects.filter( indicator__profilehighlight=highlight, geography__in=geographies ) def absolute_value(highlight, geography): indicator_d...
30.236364
94
0.72279
6580a3b1c72947b38f43bef0175d7e1e37128063
3,239
py
Python
todopy/todopy/settings.py
riihikallio/kubernetes
4506f55def6f21557675f1e07b8f4e436fba43e4
[ "MIT" ]
null
null
null
todopy/todopy/settings.py
riihikallio/kubernetes
4506f55def6f21557675f1e07b8f4e436fba43e4
[ "MIT" ]
null
null
null
todopy/todopy/settings.py
riihikallio/kubernetes
4506f55def6f21557675f1e07b8f4e436fba43e4
[ "MIT" ]
null
null
null
""" Django settings for todopy project. Generated by 'django-admin startproject' using Django 3.2.5. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib ...
25.706349
91
0.701451
79e7a16f60abad0dd057b28c9765212b60ecd032
10,026
py
Python
evoMPS/tests/tdvp_common_tests.py
asirabrar7/evoMPS
afae13f055ba2352ce0c9b275e4799c7c135b4ff
[ "BSD-3-Clause" ]
57
2015-05-06T17:50:52.000Z
2022-03-21T19:06:05.000Z
evoMPS/tests/tdvp_common_tests.py
asirabrar7/evoMPS
afae13f055ba2352ce0c9b275e4799c7c135b4ff
[ "BSD-3-Clause" ]
10
2016-03-02T22:18:05.000Z
2022-03-16T23:02:33.000Z
evoMPS/tests/tdvp_common_tests.py
asirabrar7/evoMPS
afae13f055ba2352ce0c9b275e4799c7c135b4ff
[ "BSD-3-Clause" ]
20
2015-03-19T08:49:34.000Z
2022-03-10T09:52:19.000Z
# -*- coding: utf-8 -*- """ Created on Fri Jan 11 18:11:02 2013 @author: ash """ from __future__ import absolute_import, division, print_function import scipy as sp import evoMPS.matmul as mm import evoMPS.tdvp_common as tc import unittest def make_E_noop(A, B): res = sp.zeros((A.shape[1]**2, A.shape[2]**2), dty...
39.164063
131
0.569918
d93a9855a41fb4057e017acfa18718abfa6fdcb3
9,523
py
Python
thirdeye/thirdeye-frontend/docs/conf.py
mrkeremyilmaz/incubator-pinot
b658925f82602d9a877d42af10957515fe055146
[ "Apache-2.0" ]
2
2019-10-21T18:33:43.000Z
2019-12-21T19:57:16.000Z
thirdeye/thirdeye-frontend/docs/conf.py
mrkeremyilmaz/incubator-pinot
b658925f82602d9a877d42af10957515fe055146
[ "Apache-2.0" ]
43
2019-10-14T16:22:39.000Z
2021-08-02T16:58:41.000Z
thirdeye/thirdeye-frontend/docs/conf.py
mrkeremyilmaz/incubator-pinot
b658925f82602d9a877d42af10957515fe055146
[ "Apache-2.0" ]
2
2020-07-08T12:56:07.000Z
2020-07-29T05:51:15.000Z
# -*- coding: utf-8 -*- # # pinot documentation build configuration file, created by # sphinx-quickstart on Tue Feb 7 12:21:42 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
32.391156
80
0.718786
87f6a65571c8526446b9394df504ec70457e4df8
2,492
py
Python
findatapy_examples/flatfile_example.py
alexanu/findatapy
b6d6482d6dcbf88a913b0546db72880b2a195022
[ "Apache-2.0" ]
6
2019-06-07T10:43:03.000Z
2020-09-19T21:59:11.000Z
findatapy_examples/flatfile_example.py
alexanu/findatapy
b6d6482d6dcbf88a913b0546db72880b2a195022
[ "Apache-2.0" ]
null
null
null
findatapy_examples/flatfile_example.py
alexanu/findatapy
b6d6482d6dcbf88a913b0546db72880b2a195022
[ "Apache-2.0" ]
2
2019-09-18T21:32:11.000Z
2020-06-28T16:29:38.000Z
__author__ = 'saeedamen' # Saeed Amen # # Copyright 2018 Cuemacro # # 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 ...
34.611111
121
0.667737
325dd0a0195b9723f59f64e5940a964fba3ef23e
5,349
py
Python
src/archive/clay_bricks/PatternBrickLibrary/v2/polylineClass.py
JonasWard/ClayAdventures
a716445ac690e4792e70658319aa1d5299f9c9e9
[ "MIT" ]
1
2020-03-25T10:55:10.000Z
2020-03-25T10:55:10.000Z
src/archive/clay_bricks/PatternBrickLibrary/v2/polylineClass.py
JonasWard/ClayAdventures
a716445ac690e4792e70658319aa1d5299f9c9e9
[ "MIT" ]
null
null
null
src/archive/clay_bricks/PatternBrickLibrary/v2/polylineClass.py
JonasWard/ClayAdventures
a716445ac690e4792e70658319aa1d5299f9c9e9
[ "MIT" ]
null
null
null
# polylineInterfaceClass import Rhino.Geometry as rg from ghpythonlib.components import Area as gh_area import math class ClayPolyline(object): def __init__(self, pt_set, closed = False): self.pts = pt_set self.closed = closed self.cnt = len(self.pts) self.has_crv_rep = False ...
19.241007
109
0.55244
796376a8c985919c8729a2e025160cc2a2c52e6e
16,203
py
Python
sdks/python/apache_beam/typehints/trivial_inference.py
a-satyateja/beam
30a04b912979adf5f316cc8ace334d921ca71838
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/typehints/trivial_inference.py
a-satyateja/beam
30a04b912979adf5f316cc8ace334d921ca71838
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/typehints/trivial_inference.py
a-satyateja/beam
30a04b912979adf5f316cc8ace334d921ca71838
[ "Apache-2.0" ]
1
2019-10-26T12:26:16.000Z
2019-10-26T12:26:16.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...
30.342697
80
0.630254
6ec43c4a4e08fcfbe2584b8304ef6a6e2179e209
10,085
py
Python
colour_demosaicing/bayer/demosaicing/menon2007.py
MaxSchambach/colour-demosaicing
76c4428c3453f40ec35c57f729bc4474da4ed26b
[ "BSD-3-Clause" ]
null
null
null
colour_demosaicing/bayer/demosaicing/menon2007.py
MaxSchambach/colour-demosaicing
76c4428c3453f40ec35c57f729bc4474da4ed26b
[ "BSD-3-Clause" ]
null
null
null
colour_demosaicing/bayer/demosaicing/menon2007.py
MaxSchambach/colour-demosaicing
76c4428c3453f40ec35c57f729bc4474da4ed26b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ DDFAPD - Menon (2007) Bayer CFA Demosaicing =========================================== *Bayer* CFA (Colour Filter Array) DDFAPD - *Menon (2007)* demosaicing. References ---------- - :cite:`Menon2007c` : Menon, D., Andriani, S., & Calvagno, G. (2007). Demosaicing With Directional Fil...
30.560606
79
0.539316
5f713a36f4389ae1b11a464dacf20bd3527e590e
2,085
py
Python
Python/paint.py
gilecheverria/TC1001S-202111
21388ca97227ab9079a36ce79f9800a235f9bfd8
[ "MIT" ]
null
null
null
Python/paint.py
gilecheverria/TC1001S-202111
21388ca97227ab9079a36ce79f9800a235f9bfd8
[ "MIT" ]
null
null
null
Python/paint.py
gilecheverria/TC1001S-202111
21388ca97227ab9079a36ce79f9800a235f9bfd8
[ "MIT" ]
2
2021-05-06T05:13:53.000Z
2021-05-07T15:31:20.000Z
"""Paint, for drawing shapes. Exercises 1. Add a color. 2. Complete circle. 3. Complete rectangle. 4. Complete triangle. 5. Add width parameter. """ from turtle import * from freegames import vector def line(start, end): "Draw line from start to end." up() goto(start.x, start.y) down() goto(end...
19.669811
45
0.597122
a4d641993f3794edf35e9c421c3006377f1da547
1,162
py
Python
train/graph_fingers.py
papoutsa20/Capstone-Sign-Glove
62b4faf40146f17a42a52d0604e984a5d79233c6
[ "MIT" ]
null
null
null
train/graph_fingers.py
papoutsa20/Capstone-Sign-Glove
62b4faf40146f17a42a52d0604e984a5d79233c6
[ "MIT" ]
3
2021-09-08T03:00:03.000Z
2022-03-12T00:54:32.000Z
train/graph_fingers.py
papoutsa20/Capstone-Sign-Glove
62b4faf40146f17a42a52d0604e984a5d79233c6
[ "MIT" ]
null
null
null
""" Graphs the normailized resister sensor values on a graph """ import numpy as np import matplotlib.pyplot as plt import os # use colors for letters here colors = { 'K': 'g', 'V': 'red' } # letters to graph letters = ['K','V'] x = np.arange(8) y = {} for letter in letters: y[letter] = {0:[],1...
27.666667
112
0.541308
c411c5b7199e32469957d2bf7368108c9df000d7
6,215
py
Python
oeshoot/narx/narx.py
antonior92/oe-multiple-shooting
49479d13fbb618097a3f881bb01b1a6d61d8c3db
[ "MIT" ]
2
2019-03-05T16:46:45.000Z
2020-05-02T15:33:02.000Z
oeshoot/narx/narx.py
antonior92/oe-multiple-shooting
49479d13fbb618097a3f881bb01b1a6d61d8c3db
[ "MIT" ]
1
2019-03-26T11:25:38.000Z
2019-12-27T08:43:50.000Z
oeshoot/narx/narx.py
antonior92/oe-multiple-shooting
49479d13fbb618097a3f881bb01b1a6d61d8c3db
[ "MIT" ]
1
2019-03-05T08:54:40.000Z
2019-03-05T08:54:40.000Z
""" Abstract base class that define basic features for NARX models. """ from __future__ import division, print_function, absolute_import import numpy as np from abc import (ABCMeta, abstractmethod) from six import add_metaclass import numdifftools as nd __all__ = [ 'NarxModel' ] @add_metaclass(ABCMeta) class Nar...
31.871795
79
0.525503
debfe2644ee6ea5cfe472c8d9cffe4bfe78c6551
1,057
py
Python
botorch/logging.py
SamuelMarks/botorch
7801e2f56dc447322b2b6c92cab683d8900e4c7f
[ "MIT" ]
2,344
2019-05-01T04:57:26.000Z
2022-03-29T17:00:41.000Z
botorch/logging.py
SamuelMarks/botorch
7801e2f56dc447322b2b6c92cab683d8900e4c7f
[ "MIT" ]
942
2019-05-01T05:11:30.000Z
2022-03-31T21:58:24.000Z
botorch/logging.py
SamuelMarks/botorch
7801e2f56dc447322b2b6c92cab683d8900e4c7f
[ "MIT" ]
280
2019-05-01T05:14:53.000Z
2022-03-29T16:00:33.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging LOG_LEVEL_DEFAULT = logging.CRITICAL def _get_logger( name: str = "botorch", level: int = LOG_LE...
26.425
74
0.681173
7475e99eaa068e5c5d80ede7443a35a621a8914e
20,872
py
Python
certbot/tests/cli_test.py
unicorn-owl/certbot
4fa1df307573abf79324c1ece3b228b6dba31d74
[ "Apache-2.0" ]
5
2021-01-26T08:47:29.000Z
2021-01-30T00:42:12.000Z
certbot/tests/cli_test.py
unicorn-owl/certbot
4fa1df307573abf79324c1ece3b228b6dba31d74
[ "Apache-2.0" ]
null
null
null
certbot/tests/cli_test.py
unicorn-owl/certbot
4fa1df307573abf79324c1ece3b228b6dba31d74
[ "Apache-2.0" ]
1
2020-10-28T05:49:43.000Z
2020-10-28T05:49:43.000Z
"""Tests for certbot._internal.cli.""" import argparse import copy import tempfile import unittest try: import mock except ImportError: # pragma: no cover from unittest import mock import six from six.moves import reload_module # pylint: disable=import-error from acme import challenges from certbot import er...
40.2158
100
0.631708
9b81197edb6e28276e4a870e7026c376843b40a2
273
py
Python
submissions/panasonic2020/c.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/panasonic2020/c.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/panasonic2020/c.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) a, b, c = map(int, readline().split()) if a + b < c and (c - b - a) ** 2 > 4 * a * b: print('Yes') else: print('No')
22.75
46
0.630037
73cf83756f059b68ce1043d95e90f3bf3b635bb8
86
py
Python
receiver/f12020/api.py
f1laps/f1laps-telemetry
0c264f9300d58397fe2f8b3018cd2e9151e28d08
[ "MIT" ]
3
2021-02-23T22:06:13.000Z
2022-02-06T15:05:56.000Z
receiver/f12020/api.py
f1laps/f1laps-telemetry
0c264f9300d58397fe2f8b3018cd2e9151e28d08
[ "MIT" ]
null
null
null
receiver/f12020/api.py
f1laps/f1laps-telemetry
0c264f9300d58397fe2f8b3018cd2e9151e28d08
[ "MIT" ]
null
null
null
from receiver.api_base import F1LapsAPIBase class F1LapsAPI(F1LapsAPIBase): pass
17.2
43
0.813953
32fe8c35a61f3cce13e88847562c3245db4d952d
734
py
Python
tests/integration_tests/mechanics/cashflows/functions.py
worseliz/HERON
fa5f346a0bc9f9d5ea4659618ffeb52bea812cee
[ "Apache-2.0" ]
11
2020-07-28T21:35:26.000Z
2022-01-25T17:31:39.000Z
tests/integration_tests/mechanics/cashflows/functions.py
worseliz/HERON
fa5f346a0bc9f9d5ea4659618ffeb52bea812cee
[ "Apache-2.0" ]
112
2020-07-29T15:25:33.000Z
2022-03-31T19:21:00.000Z
tests/integration_tests/mechanics/cashflows/functions.py
worseliz/HERON
fa5f346a0bc9f9d5ea4659618ffeb52bea812cee
[ "Apache-2.0" ]
22
2020-07-28T20:08:12.000Z
2022-03-08T21:22:03.000Z
# Copyright 2020, Battelle Energy Alliance, LLC # ALL RIGHTS RESERVED """ Implements transfer functions """ def capacity(data, meta): """ return unit capacity @ In, data, dict, data requeset @ In, meta, dict, state information @ Out, data, dict, filled data @ Out, meta, dict, state information ...
23.677419
59
0.628065
b04bfb7d75c07ec32bfa969a3d0c5ca5465509f6
2,741
py
Python
venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/tests/unit/mock/procenv.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/tests/unit/mock/procenv.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/tests/unit/mock/procenv.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# (c) 2016, Matt Davis <mdavis@ansible.com> # (c) 2016, Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of ...
30.120879
105
0.711054
fe87cffaf50cff99c146e30983a4cf3a08e8f683
3,434
py
Python
auto_derby/single_mode/item/item_test.py
gentle-knight-13/auto-derby
70593fea2c3d803487e6e0d2ce0c40d60bc6304d
[ "MIT" ]
null
null
null
auto_derby/single_mode/item/item_test.py
gentle-knight-13/auto-derby
70593fea2c3d803487e6e0d2ce0c40d60bc6304d
[ "MIT" ]
null
null
null
auto_derby/single_mode/item/item_test.py
gentle-knight-13/auto-derby
70593fea2c3d803487e6e0d2ce0c40d60bc6304d
[ "MIT" ]
null
null
null
from auto_derby.single_mode.item.effect_summary import EffectSummary from ... import _test from ...constants import Mood, TrainingType from .. import race, training from ..commands import RaceCommand, TrainingCommand from ..context import Context from ..training import Training from . import game_data from . import tes...
33.666667
99
0.510775
285dfc335fa5f6ba96e2b9a3ee60ab822cf43b2c
5,407
py
Python
branch2learn/01b_generate_data_alt.py
Sandbergo/branch2learn
6045c3c01d7e2172bc6672fc3926b4e118ccd0a2
[ "MIT" ]
10
2021-06-01T13:22:19.000Z
2022-03-21T04:15:22.000Z
branch2learn/01b_generate_data_alt.py
Sandbergo/branch2learn
6045c3c01d7e2172bc6672fc3926b4e118ccd0a2
[ "MIT" ]
1
2021-11-06T13:36:51.000Z
2021-11-13T11:12:38.000Z
branch2learn/01b_generate_data_alt.py
Sandbergo/branch2learn
6045c3c01d7e2172bc6672fc3926b4e118ccd0a2
[ "MIT" ]
4
2021-07-16T12:58:44.000Z
2022-03-31T06:12:45.000Z
""" Instance generation script. File adapted from https://github.com/ds4dm/learn2branch by Lars Sandberg @Sandbergo May 2021 """ import os import gzip import pickle import argparse from pathlib import Path from typing import Callable import ecole import numpy as np from utilities.general import Logger class Explo...
31.254335
94
0.635842
ae7b30c027bcfd10da75ec27cd05e2de82530d71
22,593
py
Python
python/radarsat_processing.py
vightel/FloodMapsWorkshop
ebc5246fbca52f2ee181a07663b859b2f6f59532
[ "Apache-2.0" ]
24
2015-02-07T06:34:14.000Z
2021-11-06T08:06:40.000Z
python/radarsat_processing.py
vightel/FloodMapsWorkshop
ebc5246fbca52f2ee181a07663b859b2f6f59532
[ "Apache-2.0" ]
1
2018-07-23T01:54:23.000Z
2018-07-23T01:55:05.000Z
python/radarsat_processing.py
vightel/FloodMapsWorkshop
ebc5246fbca52f2ee181a07663b859b2f6f59532
[ "Apache-2.0" ]
15
2015-03-10T06:39:10.000Z
2020-01-06T19:54:16.000Z
#!/usr/bin/env python # # Created on 3/23/2012 Pat Cappelaere - Vightel Corporation # by getting help from # http://benjamindeschamps.ca/blog/2009/11/12/processing-radarsat-2-imagery-reading-raw-data-and-saving-rgb-composites/ # and sat kumar tomer (http://civil.iisc.ernet.in/~satkumar/) # and https://pypi.python.org/p...
31.466574
164
0.681096
9acefd1473eec77d9fcd6de29dadc28dc2545f3a
44,178
py
Python
pysparkling/sql/internals.py
ptallada/pysparkling
f0e8e8d039f3313c2693b7c7576cb1b7ba5a6d78
[ "Apache-2.0" ]
260
2015-05-11T18:08:44.000Z
2022-01-15T13:19:43.000Z
pysparkling/sql/internals.py
ptallada/pysparkling
f0e8e8d039f3313c2693b7c7576cb1b7ba5a6d78
[ "Apache-2.0" ]
79
2015-06-02T09:53:25.000Z
2021-09-26T11:18:18.000Z
pysparkling/sql/internals.py
ptallada/pysparkling
f0e8e8d039f3313c2693b7c7576cb1b7ba5a6d78
[ "Apache-2.0" ]
50
2015-06-06T17:00:58.000Z
2022-01-15T13:19:18.000Z
from collections import Counter from copy import deepcopy from functools import partial import itertools import json import math import warnings from ..stat_counter import CovarianceCounter, RowStatHelper from ..storagelevel import StorageLevel from ..utils import ( compute_weighted_percentiles, format_cell, get_k...
36.815
114
0.593463
828f78e48c841ad35fe522645564e6217585c821
840
py
Python
September 2020/01-Lists-as-Stacks-and-Queues-Lab/Exercises/10-Cups-and-Bottles.py
eclipse-ib/Software-University-Professional-Advanced-Module
636385f9e5521840f680644824d725d074b93c9a
[ "MIT" ]
null
null
null
September 2020/01-Lists-as-Stacks-and-Queues-Lab/Exercises/10-Cups-and-Bottles.py
eclipse-ib/Software-University-Professional-Advanced-Module
636385f9e5521840f680644824d725d074b93c9a
[ "MIT" ]
null
null
null
September 2020/01-Lists-as-Stacks-and-Queues-Lab/Exercises/10-Cups-and-Bottles.py
eclipse-ib/Software-University-Professional-Advanced-Module
636385f9e5521840f680644824d725d074b93c9a
[ "MIT" ]
null
null
null
from collections import deque cups = deque(int(_) for _ in input().split()) bottles = deque(int(_) for _ in input().split()) wasted_water = 0 while True: if len(cups) == 0: print(f"Bottles: {' '.join(str(_) for _ in bottles)}") break if len(bottles) == 0: print(f"Cups: {' '.join(str...
21.538462
62
0.59881
849b21e7e41bfa6c098bde06ff97045b258737ef
1,702
py
Python
src-py/Lexer.py
Stepfen-Shawn/rickroll-lang
9ea254a65d27b360b488f85c1b00bd3312af37fe
[ "MIT" ]
700
2021-05-26T18:17:59.000Z
2022-03-31T18:31:12.000Z
src-py/Lexer.py
Stepfen-Shawn/rickroll-lang
9ea254a65d27b360b488f85c1b00bd3312af37fe
[ "MIT" ]
28
2021-06-04T04:08:05.000Z
2022-03-14T20:03:44.000Z
src-py/Lexer.py
Stepfen-Shawn/rickroll-lang
9ea254a65d27b360b488f85c1b00bd3312af37fe
[ "MIT" ]
35
2021-06-03T22:43:29.000Z
2022-03-19T17:02:38.000Z
from PublicVariables import * all_keyword_string = '' for i in keywords: all_keyword_string += i class Lexer: def __init__(self, stmt): self.tokens = [] self.__order_tokens(tokens=self.__basic_tokenize(stmt)) def __basic_tokenize(self, stmt): current_token = '' ...
30.392857
90
0.542891
0c6d6aaa7cf7df1c1e71bf1d77ac4479afa0a7cb
2,596
py
Python
src/build_tools/run_after_chdir.py
hiroyuki-komatsu/mozc
e92f3a2215b95eead9f85b7c0599775d810dcafa
[ "BSD-3-Clause" ]
1,144
2015-04-23T16:18:45.000Z
2022-03-29T19:37:33.000Z
src/build_tools/run_after_chdir.py
kirameister/mozc
18b2b32b4d3fe585d38134606773239781b6be82
[ "BSD-3-Clause" ]
291
2015-05-04T07:53:37.000Z
2022-03-22T00:09:05.000Z
src/build_tools/run_after_chdir.py
kirameister/mozc
18b2b32b4d3fe585d38134606773239781b6be82
[ "BSD-3-Clause" ]
301
2015-05-03T00:07:18.000Z
2022-03-21T10:48:29.000Z
# -*- coding: utf-8 -*- # Copyright 2010-2021, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this...
39.333333
77
0.759245
64e23ffbd4551270810e76fe08cebe37384fbf2f
3,489
py
Python
color_detector.py
gtstrullo99/Inventory-Classifier-for-Genshin-Impact
a6506f3e144e04fcb2839ca310db2875c2b99138
[ "MIT" ]
null
null
null
color_detector.py
gtstrullo99/Inventory-Classifier-for-Genshin-Impact
a6506f3e144e04fcb2839ca310db2875c2b99138
[ "MIT" ]
null
null
null
color_detector.py
gtstrullo99/Inventory-Classifier-for-Genshin-Impact
a6506f3e144e04fcb2839ca310db2875c2b99138
[ "MIT" ]
null
null
null
import cv2 import os import numpy as np import matplotlib.pyplot as plt ''' Librerías necesarias: · cv2: pip install opencv-python · matplotlib: pip install matplotlib · numpy: pip install numpy · os: para recuperar nombres de archivos ''' ''' Hará una detección...
35.602041
116
0.630553
498cc6288de2c2d45a1de9479f5978d02a5b6184
2,136
py
Python
setup.py
mh-globus/globus-sdk-python
c740ebd85640d5c5fe92fd22e99ec05b1a280f6d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
setup.py
mh-globus/globus-sdk-python
c740ebd85640d5c5fe92fd22e99ec05b1a280f6d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
setup.py
mh-globus/globus-sdk-python
c740ebd85640d5c5fe92fd22e99ec05b1a280f6d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import os.path import re from setuptools import find_packages, setup MYPY_REQUIREMENTS = [ "mypy==0.902", "types-docutils", "types-jwt", "types-requests", ] LINT_REQUIREMENTS = [ "flake8<4", "isort<6", "black==21.6b0", "flake8-bugbear==21.4.3", ] + MYPY_REQUIREMENTS TEST_REQUIREMENTS =...
27.384615
79
0.617509
7856451c409c33513349c4e94dcd4d22b59b4b47
3,069
py
Python
redmail/test/email/test_template.py
kimvanwyk/red-mail
78dc763e5b5f09eed820a11233299dd2c7b0190b
[ "MIT" ]
null
null
null
redmail/test/email/test_template.py
kimvanwyk/red-mail
78dc763e5b5f09eed820a11233299dd2c7b0190b
[ "MIT" ]
null
null
null
redmail/test/email/test_template.py
kimvanwyk/red-mail
78dc763e5b5f09eed820a11233299dd2c7b0190b
[ "MIT" ]
null
null
null
from redmail import EmailSender import pytest from convert import remove_email_extra from getpass import getpass, getuser from platform import node def test_template(tmpdir): html_templates = tmpdir.mkdir("html_tmpl") html_templates.join("example.html").write("""<h1>Hi {{ friend }},</h1><p>have you che...
38.848101
179
0.6406
d1158ff29f054b6a9e4fad7d4bead7e092b783a9
645
py
Python
src/LPB/LPBUtils.py
CptSpookz/LPB
1e3ff95e87b7aa9bc09eb214d2015e866ea9494f
[ "MIT" ]
1
2018-10-24T18:51:12.000Z
2018-10-24T18:51:12.000Z
src/LPB/LPBUtils.py
CptSpookz/LPB
1e3ff95e87b7aa9bc09eb214d2015e866ea9494f
[ "MIT" ]
null
null
null
src/LPB/LPBUtils.py
CptSpookz/LPB
1e3ff95e87b7aa9bc09eb214d2015e866ea9494f
[ "MIT" ]
null
null
null
class OutputParser: def __init__(self): self.conteudo = "" self.modificado = False def isModificado(self): return self.modificado def write(self, texto): if not self.isModificado(): self.modificado = True self.conteudo = "{}{}\n".format(self.conteudo,tex...
24.807692
61
0.60155
a6e5080677494b27bf8cd8d8a29e2d2f9723c343
2,659
py
Python
research/slim/nets/nets_factory_test.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
9
2018-12-21T15:11:43.000Z
2021-04-28T06:49:30.000Z
research/slim/nets/nets_factory_test.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
null
null
null
research/slim/nets/nets_factory_test.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
6
2019-01-25T02:53:39.000Z
2021-04-28T06:49:33.000Z
# Copyright 2016 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 agree...
42.887097
83
0.649492
2f0a6b6119892a3aeb08dbc3301ea0150b3ee145
384
py
Python
notes/migrations/0007_notesrating_review.py
ArnedyNavi/studymate
55e6a2c6717dd478a311ea8bf839a26ca3ef2b40
[ "MIT" ]
4
2021-12-31T17:25:00.000Z
2022-02-08T17:05:46.000Z
notes/migrations/0007_notesrating_review.py
ArnedyNavi/studymate
55e6a2c6717dd478a311ea8bf839a26ca3ef2b40
[ "MIT" ]
null
null
null
notes/migrations/0007_notesrating_review.py
ArnedyNavi/studymate
55e6a2c6717dd478a311ea8bf839a26ca3ef2b40
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2022-01-03 06:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('notes', '0006_auto_20220102_1238'), ] operations = [ migrations.AddField( model_name='notesrating', name='review', ...
20.210526
47
0.596354
9f8582bb1965ea1ed17d815962100bcbdd0f5631
42,061
py
Python
pip/req/req_install.py
anguslees/pip
6c18ad4492e3ae55ae59c79a0114d03fe7caf19b
[ "MIT" ]
null
null
null
pip/req/req_install.py
anguslees/pip
6c18ad4492e3ae55ae59c79a0114d03fe7caf19b
[ "MIT" ]
1
2021-08-07T12:15:25.000Z
2021-08-07T12:15:25.000Z
pip/req/req_install.py
anguslees/pip
6c18ad4492e3ae55ae59c79a0114d03fe7caf19b
[ "MIT" ]
null
null
null
from __future__ import absolute_import import logging import os import re import shutil import sys import tempfile import warnings import zipfile from distutils.util import change_root from distutils import sysconfig from email.parser import FeedParser from pip._vendor import pkg_resources, six from pip._vendor.dist...
37.961191
79
0.54654
d433af0220f2f82d5a29c1a049800a2f405e13e3
6,809
py
Python
doc/source/conf.py
scottdangelo/cinderclient-api-microversions
a0df4c76f2959ffed08cf65fd53de03484b1c0bc
[ "CNRI-Python", "Apache-1.1" ]
null
null
null
doc/source/conf.py
scottdangelo/cinderclient-api-microversions
a0df4c76f2959ffed08cf65fd53de03484b1c0bc
[ "CNRI-Python", "Apache-1.1" ]
null
null
null
doc/source/conf.py
scottdangelo/cinderclient-api-microversions
a0df4c76f2959ffed08cf65fd53de03484b1c0bc
[ "CNRI-Python", "Apache-1.1" ]
null
null
null
# -*- coding: utf-8 -*- # # python-cinderclient documentation build configuration file, created by # sphinx-quickstart on Sun Dec 6 14:19:25 2009. # # This file is execfile()d with current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file....
32.89372
79
0.725804
a061357c95680915caecd070a794b43757e569f1
1,100
py
Python
egs/CHiME6/local/get_stats_from_diarization.py
popcornell/OSDC
bb73a305143c74574000e72eab04c13be7c7b9c9
[ "MIT" ]
7
2020-10-28T14:51:15.000Z
2021-10-11T08:47:58.000Z
egs/CHiME6/local/get_stats_from_diarization.py
popcornell/OSDC
bb73a305143c74574000e72eab04c13be7c7b9c9
[ "MIT" ]
2
2020-09-28T11:25:34.000Z
2022-01-10T08:16:24.000Z
egs/CHiME6/local/get_stats_from_diarization.py
popcornell/OSDC
bb73a305143c74574000e72eab04c13be7c7b9c9
[ "MIT" ]
null
null
null
import argparse import json import numpy as np import os parser = argparse.ArgumentParser("get diar stats") parser.add_argument("diar_file") if __name__ == "__main__": args = parser.parse_args() with open(args.diar_file, "r") as f: diarization = json.load(f) stats = [0]*5 for sess in diariz...
24.444444
90
0.555455
17c44dd9ca0a89c8e40b07cd7f5a5b35a18cb949
7,290
bzl
Python
bazel/cargo/crates.bzl
gbrail/proxy-wasm-rust-sdk
f1a0ec203c43241587a330a47bd4705a947112de
[ "Apache-2.0" ]
null
null
null
bazel/cargo/crates.bzl
gbrail/proxy-wasm-rust-sdk
f1a0ec203c43241587a330a47bd4705a947112de
[ "Apache-2.0" ]
null
null
null
bazel/cargo/crates.bzl
gbrail/proxy-wasm-rust-sdk
f1a0ec203c43241587a330a47bd4705a947112de
[ "Apache-2.0" ]
null
null
null
""" @generated cargo-raze generated Bazel file. DO NOT EDIT! Replaced on runs of cargo-raze """ load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load load("@bazel_tools//too...
39.836066
101
0.646365
b783cc4ba6808e42d386e05bb6ee2c8e339975ae
4,006
py
Python
bayes.py
cvlabmiet/bayesian-classifier
302da1e261f6b0d455e356a940dd121436881613
[ "MIT" ]
null
null
null
bayes.py
cvlabmiet/bayesian-classifier
302da1e261f6b0d455e356a940dd121436881613
[ "MIT" ]
null
null
null
bayes.py
cvlabmiet/bayesian-classifier
302da1e261f6b0d455e356a940dd121436881613
[ "MIT" ]
null
null
null
#coding=utf-8 import cv2 import numpy as np import matplotlib.pyplot as plt import mpl_toolkits.mplot3d.axes3d as p3 from data import getTrainingSetYCrCb, getTestSetYCrCb """ Вычисление ячейки гистограммы, к которой относится заданная точка. Args: bins: массив левых границ ячеек разбиения по каждой из компонент....
29.028986
89
0.626311
579a7693778b25ede794f78a2053a179cb5593f1
1,646
py
Python
DQM/Integration/python/clients/gem_dqm_sourceclient-live_cfg.py
pwrobel5/cmssw
856711bff1da14a7022e9138e9ec519bc1f01732
[ "Apache-2.0" ]
null
null
null
DQM/Integration/python/clients/gem_dqm_sourceclient-live_cfg.py
pwrobel5/cmssw
856711bff1da14a7022e9138e9ec519bc1f01732
[ "Apache-2.0" ]
null
null
null
DQM/Integration/python/clients/gem_dqm_sourceclient-live_cfg.py
pwrobel5/cmssw
856711bff1da14a7022e9138e9ec519bc1f01732
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms import sys process = cms.Process('GEMDQM') unitTest = False if 'unitTest=True' in sys.argv: unitTest=True process.load('Configuration.StandardSequences.GeometryRecoDB_cff') process.load("DQM.Integration.config.FrontierCondition_GT_cfi") if unitTest: process.load("DQM.Int...
26.983607
68
0.803159
6a75fc8dd198c84ba8dfeb7668ceeecb8261deaa
1,561
py
Python
tests/test_FileManager.py
anitavincent/simple_crawler
0e84bb9009e81c96ecff24621c3d3d3286c94f6d
[ "MIT" ]
null
null
null
tests/test_FileManager.py
anitavincent/simple_crawler
0e84bb9009e81c96ecff24621c3d3d3286c94f6d
[ "MIT" ]
null
null
null
tests/test_FileManager.py
anitavincent/simple_crawler
0e84bb9009e81c96ecff24621c3d3d3286c94f6d
[ "MIT" ]
null
null
null
from unittest import TestCase from filemanager import FileManager class FileManagerTest(TestCase): def setUp(self): self.manager = FileManager("products.csv", "urls.db") def test_change_products_result(self): self.manager.clear_result() products = self.manager.get_product_names_set()...
32.520833
74
0.664958
7d07e1f9a1cc3846346c77ea4a0637dda8021911
361
py
Python
rplugin/python3/denite/source/lsp_docment_symbol.py
statiolake/denite-vim-lsp
77ac576ba447149633bbfb829c5ef243561001c2
[ "MIT" ]
null
null
null
rplugin/python3/denite/source/lsp_docment_symbol.py
statiolake/denite-vim-lsp
77ac576ba447149633bbfb829c5ef243561001c2
[ "MIT" ]
null
null
null
rplugin/python3/denite/source/lsp_docment_symbol.py
statiolake/denite-vim-lsp
77ac576ba447149633bbfb829c5ef243561001c2
[ "MIT" ]
null
null
null
import sys from pathlib import Path sys.path.append(str(Path(__file__).parent.parent.parent.resolve())) from denite_lsp_symbol.symbol_base import SymbolBase class Source(SymbolBase): def __init__(self, vim): super().__init__(vim, 'lsp_document_symbol') def start_lookup(self, _query): self.vi...
25.785714
67
0.747922
cb5f9575b39247b4317b29234a26ec5b34755325
30,241
py
Python
rudolf.py
iknite/rudolf
4a33a26a3aff867846db46c6fb82dc5b3f04aace
[ "ZPL-2.1" ]
1
2019-05-01T05:57:10.000Z
2019-05-01T05:57:10.000Z
rudolf.py
iknite/rudolf
4a33a26a3aff867846db46c6fb82dc5b3f04aace
[ "ZPL-2.1" ]
null
null
null
rudolf.py
iknite/rudolf
4a33a26a3aff867846db46c6fb82dc5b3f04aace
[ "ZPL-2.1" ]
null
null
null
"""Color output plugin for the nose testing framework. Use ``nosetests --with-color`` (no "u"!) to turn it on. http://en.wikipedia.org/wiki/Rudolph_the_Red-Nosed_Reindeer "Rudolph the Red-Nosed Reindeer" is a popular Christmas story about Santa Claus' ninth and lead reindeer who possesses an unusually red colored no...
37.105521
82
0.555207