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
b7feaeb2d7a352aeb2d9efb615b7a776cf1713af
168
py
Python
PythonMPI/HelloWorld.py
terasakisatoshi/MPI
d4064d8bee356c35a63702c5687726945286213c
[ "MIT" ]
1
2022-02-07T10:51:53.000Z
2022-02-07T10:51:53.000Z
PythonMPI/HelloWorld.py
terasakisatoshi/MPI
d4064d8bee356c35a63702c5687726945286213c
[ "MIT" ]
null
null
null
PythonMPI/HelloWorld.py
terasakisatoshi/MPI
d4064d8bee356c35a63702c5687726945286213c
[ "MIT" ]
1
2022-02-07T10:51:33.000Z
2022-02-07T10:51:33.000Z
from mpi4py import MPI size=MPI.COMM_WORLD.Get_size() rank=MPI.COMM_WORLD.Get_rank() name=MPI.Get_processor_name() print "I am task %d of %d on %s" %(rank,size,name)
21
50
0.744048
a3f6200c8a5aadf7cb01a2931f2f9c0ab65af967
8,864
py
Python
eval_util.py
ankitshah009/youtube-8m-1
a0f28c9ca05b72ca709322f2c4871a4345a69fbb
[ "Apache-2.0" ]
2
2018-09-15T04:14:28.000Z
2019-02-14T02:35:55.000Z
eval_util.py
ankitshah009/youtube-8m-1
a0f28c9ca05b72ca709322f2c4871a4345a69fbb
[ "Apache-2.0" ]
null
null
null
eval_util.py
ankitshah009/youtube-8m-1
a0f28c9ca05b72ca709322f2c4871a4345a69fbb
[ "Apache-2.0" ]
null
null
null
# 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 ...
38.372294
113
0.731498
bb16ccc947c22d0c0aec4a6c766e505c6623f5c5
3,249
py
Python
src/mmgroup/tests/test_mat24/test_mul_transp.py
Martin-Seysen/mmgroup
6acd566f1079e7e27eec76352477fbba39eeb65f
[ "MIT" ]
14
2020-07-10T20:12:05.000Z
2022-03-10T13:46:59.000Z
src/mmgroup/tests/test_mat24/test_mul_transp.py
Martin-Seysen/mmgroup
6acd566f1079e7e27eec76352477fbba39eeb65f
[ "MIT" ]
1
2022-03-09T07:05:04.000Z
2022-03-18T20:17:11.000Z
src/mmgroup/tests/test_mat24/test_mul_transp.py
Martin-Seysen/mmgroup
6acd566f1079e7e27eec76352477fbba39eeb65f
[ "MIT" ]
1
2022-02-07T21:08:00.000Z
2022-02-07T21:08:00.000Z
from __future__ import absolute_import, division, print_function from __future__ import unicode_literals import random from random import randint import types import sys import re import os from operator import __or__, __xor__ import subprocess import pytest from mmgroup.tests.tempdir import make_temp_dir, kill_te...
28.752212
73
0.550939
0d35fa98035a4545387fb6a73ce4bf271da46750
2,484
py
Python
samples/python/training/orttrainer/pytorch_transformer/utils.py
lchang20/onnxruntime
97b8f6f394ae02c73ed775f456fd85639c91ced1
[ "MIT" ]
6,036
2019-05-07T06:03:57.000Z
2022-03-31T17:59:54.000Z
samples/python/training/orttrainer/pytorch_transformer/utils.py
lchang20/onnxruntime
97b8f6f394ae02c73ed775f456fd85639c91ced1
[ "MIT" ]
5,730
2019-05-06T23:04:55.000Z
2022-03-31T23:55:56.000Z
samples/python/training/orttrainer/pytorch_transformer/utils.py
lchang20/onnxruntime
97b8f6f394ae02c73ed775f456fd85639c91ced1
[ "MIT" ]
1,566
2019-05-07T01:30:07.000Z
2022-03-31T17:06:50.000Z
import io import os import torch from torchtext.utils import download_from_url, extract_archive from torchtext.data.utils import get_tokenizer from torchtext.vocab import build_vocab_from_iterator def batchify(data, bsz, device): # Divide the dataset into bsz parts. nbatch = data.size(0) // bsz # Trim off...
40.064516
111
0.665459
baf9e8f842c67c024e19ca244b235872c3e4d3a5
1,057
py
Python
authors/apps/authentication/error_messages.py
bl4ck4ndbr0wn/ah-centauri-backend
5a31840856de4b361fe2594dfa7a33d7774d3fe2
[ "BSD-3-Clause" ]
1
2019-04-29T15:22:42.000Z
2019-04-29T15:22:42.000Z
authors/apps/authentication/error_messages.py
andela/ah-centauri-backend
5a31840856de4b361fe2594dfa7a33d7774d3fe2
[ "BSD-3-Clause" ]
20
2019-03-28T10:50:53.000Z
2022-02-10T07:48:36.000Z
authors/apps/authentication/error_messages.py
bl4ck4ndbr0wn/ah-centauri-backend
5a31840856de4b361fe2594dfa7a33d7774d3fe2
[ "BSD-3-Clause" ]
6
2019-05-21T22:28:08.000Z
2020-03-12T08:35:34.000Z
errors = { 'password': { 'required': 'A password is required to complete registration', 'invalid': 'The provided password is invalid', 'blank': 'A password is required to complete registration', 'min_length': 'Please ensure that your password has at least 8 characters', 'max_...
45.956522
116
0.652791
04b28797111cccd1be45e7f4c890009c7abae0e6
1,444
py
Python
src/ZServer/medusa/monitor_client_win32.py
tseaver/Zope-RFA
08634f39b0f8b56403a2a9daaa6ee4479ef0c625
[ "ZPL-2.1" ]
2
2015-12-21T10:34:56.000Z
2017-09-24T11:07:58.000Z
src/ZServer/medusa/monitor_client_win32.py
MatthewWilkes/Zope
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
[ "ZPL-2.1" ]
null
null
null
src/ZServer/medusa/monitor_client_win32.py
MatthewWilkes/Zope
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
[ "ZPL-2.1" ]
null
null
null
# -*- Mode: Python; tab-width: 4 -*- # monitor client, win32 version # since we can't do select() on stdin/stdout, we simply # use threads and blocking sockets. <sigh> import regsub import socket import string import sys import thread try: from hashlib import md5 except: from md5 import new as md5 def hex...
24.896552
70
0.557479
9f48de2f5f840571776f78c8e85c998a22727506
60
py
Python
pygments_bsl/__init__.py
zeegin/pygments-bsl
87981b9770995312a7b9538b9e8d1002cbb4ae49
[ "MIT" ]
10
2019-10-18T16:47:10.000Z
2022-01-11T15:57:22.000Z
pygments_bsl/__init__.py
zeegin/pygments-bsl
87981b9770995312a7b9538b9e8d1002cbb4ae49
[ "MIT" ]
8
2019-10-22T11:47:02.000Z
2021-12-09T08:29:06.000Z
pygments_bsl/__init__.py
zeegin/pygments-bsl
87981b9770995312a7b9538b9e8d1002cbb4ae49
[ "MIT" ]
3
2019-10-27T17:37:44.000Z
2021-11-28T18:40:58.000Z
from .lexer import BSLLexer # noqa __all__ = ["BSLLexer"]
15
35
0.7
2276e4ea6533163520041b3d236b4b62faee4f4c
36,747
py
Python
spyder/plugins/ipythonconsole/widgets/shell.py
Lim-WJ/spyder
497d682fd0cfa672989196599402c8966054c527
[ "MIT" ]
5
2015-01-13T01:52:23.000Z
2018-12-19T15:59:44.000Z
spyder/plugins/ipythonconsole/widgets/shell.py
Lim-WJ/spyder
497d682fd0cfa672989196599402c8966054c527
[ "MIT" ]
44
2015-01-12T03:50:52.000Z
2021-12-13T17:38:50.000Z
spyder/plugins/ipythonconsole/widgets/shell.py
Lim-WJ/spyder
497d682fd0cfa672989196599402c8966054c527
[ "MIT" ]
2
2015-03-06T22:31:48.000Z
2017-04-25T01:33:44.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Shell Widget for the IPython Console """ # Standard library imports import os import os.path as osp import uuid from textwrap import dedent from threading import...
37.42057
79
0.612785
e3354c7a34730adfd73b591ffd69847ca9bc17fe
1,055
py
Python
launch_testing_ros/test/examples/parameter_blackboard.py
christophebedard/launch_ros
4192b02af65cb3a8693cc644952f66b71bfbaa8b
[ "Apache-2.0" ]
28
2019-03-22T17:46:10.000Z
2022-02-03T10:52:31.000Z
launch_testing_ros/test/examples/parameter_blackboard.py
christophebedard/launch_ros
4192b02af65cb3a8693cc644952f66b71bfbaa8b
[ "Apache-2.0" ]
260
2019-03-21T21:24:45.000Z
2022-03-31T15:36:14.000Z
launch_testing_ros/test/examples/parameter_blackboard.py
christophebedard/launch_ros
4192b02af65cb3a8693cc644952f66b71bfbaa8b
[ "Apache-2.0" ]
58
2019-03-28T01:01:57.000Z
2022-03-31T15:30:55.000Z
# Copyright 2021 Open Source Robotics Foundation, 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...
25.119048
74
0.707109
378029de8a046db9516d91e86ba5f303453e094b
16,368
py
Python
run_dtests.py
vincewhite/cassandra-dtest
a01dce6af73a8656e8740227a811fe63025fb3f4
[ "Apache-2.0" ]
null
null
null
run_dtests.py
vincewhite/cassandra-dtest
a01dce6af73a8656e8740227a811fe63025fb3f4
[ "Apache-2.0" ]
null
null
null
run_dtests.py
vincewhite/cassandra-dtest
a01dce6af73a8656e8740227a811fe63025fb3f4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ usage: run_dtests.py [-h] [--use-vnodes] [--use-off-heap-memtables] [--num-tokens NUM_TOKENS] [--data-dir-count-per-instance DATA_DIR_COUNT_PER_INSTANCE] [--force-resource-intensive-tests] [--skip-resource-intensive-tests] [--cassandra-dir CASSANDRA_DIR] [--cassandra-versi...
56.247423
200
0.617852
9501527bfc959914c6ac138f0d01b2e8d9a5d861
20,492
py
Python
PP4E/changes/book-web-site/snapshot-feb11/pylotto.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
PP4E/changes/book-web-site/snapshot-feb11/pylotto.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
PP4E/changes/book-web-site/snapshot-feb11/pylotto.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
#!/usr/bin/python """ ===================================================================== PyLotto: select students of a class at random to receive copies of a book, working around various security constraints. I use this to give away free copies of my Python books in some of the classes I teach. In order ...
42.691667
92
0.613459
326eb6a5f524ba35f52f4d8df52f8dc8a80fb83a
679
py
Python
tests/test_igo.py
hideaki-t/sqlite-fts-python
2afdc4ad6d3d7856d801bd3f9106160825f49d00
[ "MIT" ]
35
2015-05-06T13:37:02.000Z
2022-01-06T02:52:49.000Z
tests/test_igo.py
polyrand/sqlite-fts-python
2afdc4ad6d3d7856d801bd3f9106160825f49d00
[ "MIT" ]
18
2015-11-21T19:00:57.000Z
2021-12-31T12:41:08.000Z
tests/test_igo.py
polyrand/sqlite-fts-python
2afdc4ad6d3d7856d801bd3f9106160825f49d00
[ "MIT" ]
11
2015-01-12T12:20:29.000Z
2021-04-07T21:43:48.000Z
# coding: utf-8 from __future__ import print_function, unicode_literals import sys import pytest import sqlitefts as fts if sys.version_info < (3, 3) or sys.version_info >= (3, 4): from jajp_common import * # noqa igo = pytest.importorskip("igo") class IgoTokenizer(fts.Tokenizer): def __init__(self, path...
20.575758
74
0.661267
3502e19674d8220095a3a7a721da5daeba4e5dea
769
py
Python
src/tools/debugmap.py
rondnelson99/vcs-raycast
f48db04b0ec6480192cc149a0fde45faa2e0f615
[ "MIT" ]
null
null
null
src/tools/debugmap.py
rondnelson99/vcs-raycast
f48db04b0ec6480192cc149a0fde45faa2e0f615
[ "MIT" ]
null
null
null
src/tools/debugmap.py
rondnelson99/vcs-raycast
f48db04b0ec6480192cc149a0fde45faa2e0f615
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys def convert_maps(labels_filename): labels_file = open(labels_filename, "r+") label_lines = labels_file.readlines() # now that we've read the labels file, we can delete its contents labels_file.seek(0) labels_file.truncate() for line in label_lines: # r...
28.481481
77
0.616385
15064c2fb0611339a0c9d069fb52e19a4e1195f5
7,145
py
Python
preprocess.py
beefoo/subway-inequality
a93bdbf81ea3753b0d2ec85d028f816adcc2f6f9
[ "MIT" ]
1
2021-03-08T01:44:10.000Z
2021-03-08T01:44:10.000Z
preprocess.py
beefoo/subway-inequality
a93bdbf81ea3753b0d2ec85d028f816adcc2f6f9
[ "MIT" ]
null
null
null
preprocess.py
beefoo/subway-inequality
a93bdbf81ea3753b0d2ec85d028f816adcc2f6f9
[ "MIT" ]
1
2021-11-02T21:55:39.000Z
2021-11-02T21:55:39.000Z
# -*- coding: utf-8 -*- import argparse import json import os import numpy as np from pprint import pprint from shapely.geometry import Polygon import sys from lib import * # input parser = argparse.ArgumentParser() parser.add_argument('-census', dest="CENSUS_FILE", default="data/ACS_2017_5YR_B19013_with_ann.csv", h...
37.020725
201
0.651365
c319c0cdaf03fab49f00924089f51277ee35e77b
23,498
py
Python
src/kusto/azext_kusto/generated/_help.py
tilnl/azure-cli-extensions
ef9946bbcde34bb51343554a8f2a8dedd1f7d44a
[ "MIT" ]
null
null
null
src/kusto/azext_kusto/generated/_help.py
tilnl/azure-cli-extensions
ef9946bbcde34bb51343554a8f2a8dedd1f7d44a
[ "MIT" ]
null
null
null
src/kusto/azext_kusto/generated/_help.py
tilnl/azure-cli-extensions
ef9946bbcde34bb51343554a8f2a8dedd1f7d44a
[ "MIT" ]
1
2020-07-28T18:01:53.000Z
2020-07-28T18:01:53.000Z
# -------------------------------------------------------------------------- # 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 cause...
42.035778
137
0.689122
cf069129757f2d6e794933963731e866a1a401e0
4,428
py
Python
lte/gateway/python/precommit.py
MLH-Fellowship/magma
bdf87faaf37eb733e76d407eeffa608192285ca0
[ "BSD-3-Clause" ]
1
2021-08-08T15:49:05.000Z
2021-08-08T15:49:05.000Z
lte/gateway/python/precommit.py
lisa761/magma
bdf87faaf37eb733e76d407eeffa608192285ca0
[ "BSD-3-Clause" ]
null
null
null
lte/gateway/python/precommit.py
lisa761/magma
bdf87faaf37eb733e76d407eeffa608192285ca0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASI...
28.567742
79
0.637082
732e176ea88dad4239eb093eafbfe27a7e50c7d3
1,806
py
Python
test/lmp/model/_lstm/test_loss_fn.py
france5289/language-model-playground
02181561107dac13d52e411bc970e245277854d4
[ "Beerware" ]
9
2020-07-31T10:27:28.000Z
2021-12-23T05:58:03.000Z
test/lmp/model/_lstm/test_loss_fn.py
Aidenzich/language-model-playground
daecd4e39bbf8128b04aa236ad1d31cd22c3c1d9
[ "Beerware" ]
10
2020-07-28T05:32:52.000Z
2022-03-04T06:36:23.000Z
test/lmp/model/_lstm/test_loss_fn.py
Aidenzich/language-model-playground
daecd4e39bbf8128b04aa236ad1d31cd22c3c1d9
[ "Beerware" ]
20
2020-07-08T07:05:39.000Z
2021-09-22T07:20:46.000Z
r"""Test loss function of LSTM language model. Test target: - :py:meth:`lmp.model.LSTMModel.loss_fn`. """ import torch from lmp.model import LSTMModel def test_input_shape_and_dtype( lstm_model: LSTMModel, batch_prev_tkids: torch.Tensor, batch_next_tkids: torch.Tensor, ): r"""Input tensors must be ...
26.558824
67
0.697674
b2b9a2955ac445aa94a297d6d4b43fda12c7de5b
2,575
py
Python
py/grid_maker.py
atfrank/RNACavityMiner
938581781108f40c333708b4f68681cfc57bf6ee
[ "OLDAP-2.7" ]
1
2020-09-27T18:25:52.000Z
2020-09-27T18:25:52.000Z
py/grid_maker.py
atfrank/RNACavityMiner
938581781108f40c333708b4f68681cfc57bf6ee
[ "OLDAP-2.7" ]
1
2021-06-04T15:46:45.000Z
2021-06-06T17:56:00.000Z
py/grid_maker.py
atfrank/RNACavityMiner
938581781108f40c333708b4f68681cfc57bf6ee
[ "OLDAP-2.7" ]
1
2021-06-24T16:27:45.000Z
2021-06-24T16:27:45.000Z
import os import sys import argparse import pandas as pd import numpy as np from glob import glob from pymol import cmd, CmdException from numba import jit import itertools as it from tqdm import tqdm def logic(index, skip): """ check modulus """ if index % skip == 0: return True r...
33.881579
173
0.590291
851daf2f1ad771fa210a35d1e2581f9171e22577
402
py
Python
exercicio057.py
LarissaMidori/curso_em_video
df4633da1f8c1d0f279dbe53a6157ea4e110c997
[ "MIT" ]
null
null
null
exercicio057.py
LarissaMidori/curso_em_video
df4633da1f8c1d0f279dbe53a6157ea4e110c997
[ "MIT" ]
null
null
null
exercicio057.py
LarissaMidori/curso_em_video
df4633da1f8c1d0f279dbe53a6157ea4e110c997
[ "MIT" ]
null
null
null
''' Faça um programa que leia o sexo de uma pessoa, mas só aceite os valores ‘M’ ou ‘F’. Caso esteja errado, peça a digitação novamente até ter um valor correto. ''' sexo = str(input(f'Informe seu sexo: [F/M] ')).strip().upper()[0] while sexo not in 'MmFf': sexo = str(input(f'Opção inválida! Por favor, informe seu...
57.428571
165
0.679104
756001c877ac633bf7576058ed0c500b2d34eda3
565
py
Python
lefi/utils/image.py
Shom770/Lefi
7d9d45a8356605d82e2b7247715db4992d21c377
[ "MIT" ]
null
null
null
lefi/utils/image.py
Shom770/Lefi
7d9d45a8356605d82e2b7247715db4992d21c377
[ "MIT" ]
null
null
null
lefi/utils/image.py
Shom770/Lefi
7d9d45a8356605d82e2b7247715db4992d21c377
[ "MIT" ]
null
null
null
import base64 import imghdr __all__ = ( "get_mimetype", "bytes_to_data_uri", ) def get_mimetype(data: bytes): type_ = imghdr.what(file=None, h=data) if not type_: raise ValueError("Unable to determine image type") if type_ not in ("jpeg", "png", "gif"): raise ValueError("Unsuppor...
20.925926
58
0.654867
d477205d8ca94012c1270c43c0a125579fe22c34
13,927
py
Python
run_bayes_select.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
1
2020-07-31T01:31:52.000Z
2020-07-31T01:31:52.000Z
run_bayes_select.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
12
2020-07-20T18:55:15.000Z
2021-09-23T05:08:26.000Z
run_bayes_select.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
null
null
null
""" Run Bayesian model selection on a given spectrum using Ho-Bird-Garnett code in Python version. """ from typing import Union, List, Optional import os import time import numpy as np import h5py from matplotlib import pyplot as plt from gpy_dla_detection import read_spec from gpy_dla_detection.set_parameters impor...
40.485465
116
0.676097
666e64e5b7d872aa7ab18527e1c6a009ec677d07
1,150
py
Python
StartWithPython/StartWithPython/Theory/Loops/If_Statement.py
CaptainMich/Python_Project
07238252570cd102e49c635f0455ec2c0c978342
[ "MIT" ]
1
2016-12-22T16:25:39.000Z
2016-12-22T16:25:39.000Z
StartWithPython/StartWithPython/Theory/Loops/If_Statement.py
CaptainMich/Python_Project
07238252570cd102e49c635f0455ec2c0c978342
[ "MIT" ]
null
null
null
StartWithPython/StartWithPython/Theory/Loops/If_Statement.py
CaptainMich/Python_Project
07238252570cd102e49c635f0455ec2c0c978342
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------------- # IF - ELIF - ELSE # ------------------------------------------------------------------------------------------------- print('\n\t\tIF - ELIF - ELSE\n') age = 16 # first e...
52.272727
99
0.198261
56a1155edca5d262175df0329ded207f618721ff
419
py
Python
output/models/ms_data/schema/sch_g4_a_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/schema/sch_g4_a_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/schema/sch_g4_a_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.schema.sch_g4_a_xsd.sch_g4_a import ( CtA as CtA, E1 as E1, Root, ) from output.models.ms_data.schema.sch_g4_a_xsd.sch_g4_b import ( CtA as BCtA, E1 as BE1, ) from output.models.ms_data.schema.sch_g4_a_xsd.sch_g4_c import ( CtA as CCtA, E1 as CE1, Foo, ) __all...
16.115385
64
0.599045
ce411a0ea938a56f346a3be8a2022293bb66f378
3,916
py
Python
test-framework/test-suites/integration/tests/report/test_report_zones.py
kmcm0/stacki
eb9dff1b45d5725b4986e567876bf61707fec28f
[ "BSD-3-Clause" ]
123
2015-05-12T23:36:45.000Z
2017-07-05T23:26:57.000Z
test-framework/test-suites/integration/tests/report/test_report_zones.py
kmcm0/stacki
eb9dff1b45d5725b4986e567876bf61707fec28f
[ "BSD-3-Clause" ]
177
2015-06-05T19:17:47.000Z
2017-07-07T17:57:24.000Z
test-framework/test-suites/integration/tests/report/test_report_zones.py
kmcm0/stacki
eb9dff1b45d5725b4986e567876bf61707fec28f
[ "BSD-3-Clause" ]
32
2015-06-07T02:25:03.000Z
2017-06-23T07:35:35.000Z
import os import re import shutil import pytest class TestReportZones: @pytest.fixture() def custom_entries(self, host, host_os, test_file): # Figure out our base directroy if host_os == "sles": base_dir = '/var/lib/named' else: base_dir = '/var/named' # Copy over our custom zone files for name in...
35.926606
109
0.718335
4bc8fa89e5dd9eb8643788a811a9a780eea2cc69
1,806
py
Python
accounts/tests/test_views.py
asyler/betleague
2ae43ae26d6a6c8582a831bc56c2144ed3134202
[ "MIT" ]
null
null
null
accounts/tests/test_views.py
asyler/betleague
2ae43ae26d6a6c8582a831bc56c2144ed3134202
[ "MIT" ]
1
2017-12-14T07:42:02.000Z
2017-12-14T10:22:19.000Z
accounts/tests/test_views.py
asyler/betleague
2ae43ae26d6a6c8582a831bc56c2144ed3134202
[ "MIT" ]
null
null
null
from django.contrib.auth.forms import AuthenticationForm from django.test import TestCase from accounts.factories import UserFactory class LoginViewTest(TestCase): def try_auth(self, correct_login=True, correct_password=True): self.user = UserFactory.create() login = self.user.username if correc...
38.425532
83
0.668328
9978a52381d459ed2fa01c77b3ce6d4b60b1ef6f
53,711
py
Python
wrt/wrt-manifest-tizen-tests/test.py
jiajiax/crosswalk-test-suite
7606ec383f9c240248cbea071b642691fbffb32f
[ "BSD-3-Clause" ]
null
null
null
wrt/wrt-manifest-tizen-tests/test.py
jiajiax/crosswalk-test-suite
7606ec383f9c240248cbea071b642691fbffb32f
[ "BSD-3-Clause" ]
null
null
null
wrt/wrt-manifest-tizen-tests/test.py
jiajiax/crosswalk-test-suite
7606ec383f9c240248cbea071b642691fbffb32f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 import random import os import sys import unittest import run_test import codecs reload(sys) sys.setdefaultencoding("utf-8") class TestCaseUnit(unittest.TestCase): def test_case_1(self): self.assertEqual( "Pass", run_test.run_test_result( ...
28.768613
116
0.517808
104b59d43a9021457f131543db5c6473014e83bf
2,096
py
Python
integrationtest/vm/virt_plus/other/test_add_local_image.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2021-03-21T12:41:11.000Z
2021-03-21T12:41:11.000Z
integrationtest/vm/virt_plus/other/test_add_local_image.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/virt_plus/other/test_add_local_image.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2017-05-19T06:40:40.000Z
2017-05-19T06:40:40.000Z
''' New Integration Test for add image from MN local URI. The file should be placed in MN. @author: Youyk ''' import os import time import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_state as test_state import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.opera...
36.137931
88
0.732824
f78c5adb43bfdd7014a0fed8948ed257e37a670c
7,462
py
Python
Detection/dataset/VOC_dataset.py
ttthomaschan/DeepcvLib
18f7728559136a3c5c8ad54666788ea771e95b16
[ "MIT" ]
null
null
null
Detection/dataset/VOC_dataset.py
ttthomaschan/DeepcvLib
18f7728559136a3c5c8ad54666788ea771e95b16
[ "MIT" ]
null
null
null
Detection/dataset/VOC_dataset.py
ttthomaschan/DeepcvLib
18f7728559136a3c5c8ad54666788ea771e95b16
[ "MIT" ]
null
null
null
import torch import xml.etree.ElementTree as ET import os import cv2 import numpy as np from torchvision import transforms from PIL import Image import random def flip(img, boxes): img = img.transpose(Image.FLIP_LEFT_RIGHT) w = img.width if boxes.shape[0] != 0: xmin = w - boxes[:, 2]...
35.198113
119
0.544492
907af42f40ee1053c7e434fb63380aad703477be
5,454
py
Python
tests/test_report.py
al3pht/cloud-custodian
ce6613d1b716f336384c5e308eee300389e6bf50
[ "Apache-2.0" ]
2,415
2018-12-04T00:37:58.000Z
2022-03-31T12:28:56.000Z
tests/test_report.py
al3pht/cloud-custodian
ce6613d1b716f336384c5e308eee300389e6bf50
[ "Apache-2.0" ]
3,272
2018-12-03T23:58:17.000Z
2022-03-31T21:15:32.000Z
tests/test_report.py
al3pht/cloud-custodian
ce6613d1b716f336384c5e308eee300389e6bf50
[ "Apache-2.0" ]
773
2018-12-06T09:43:23.000Z
2022-03-30T20:44:43.000Z
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from c7n.reports.csvout import Formatter, strip_output_path from .common import BaseTest, load_data class TestEC2Report(BaseTest): def setUp(self): data = load_data("report.json") self.records = data["ec2"]["records"] ...
36.604027
81
0.570957
be46c101da55cb6fbe5bcd5a1cd5824a3afdd9db
2,640
py
Python
wdi/wdi_scrape.py
EvansSchoolPolicyAnalysisAndResearch/411-IFI-Aid
a958a9619cfbf2b6945758ad93368755b9b76a4c
[ "BSD-3-Clause" ]
null
null
null
wdi/wdi_scrape.py
EvansSchoolPolicyAnalysisAndResearch/411-IFI-Aid
a958a9619cfbf2b6945758ad93368755b9b76a4c
[ "BSD-3-Clause" ]
null
null
null
wdi/wdi_scrape.py
EvansSchoolPolicyAnalysisAndResearch/411-IFI-Aid
a958a9619cfbf2b6945758ad93368755b9b76a4c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Download data from the World Bank's World Development Indicator api.""" import requests import csv import sys __copyright__ = """ Copyright 2021 Evans Policy Analysis and Research Group (EPAR). """ __license__ = """ This project is licensed under the 3-Clause BSD License. Please see the li...
46.315789
109
0.638258
39313581e11870c10d8058ceaa10cd7f82f82cf1
696
py
Python
SyncHttpTriggerCPUIntensiveWithSleeps/__init__.py
anirudhgarg/AzFunctionsPythonPerformance
3e3eac91635427ac478520fb1c33131785bcbe1e
[ "MIT" ]
1
2022-02-17T12:35:40.000Z
2022-02-17T12:35:40.000Z
SyncHttpTriggerCPUIntensiveWithSleeps/__init__.py
anirudhgarg/AzFunctionsPythonPerformance
3e3eac91635427ac478520fb1c33131785bcbe1e
[ "MIT" ]
null
null
null
SyncHttpTriggerCPUIntensiveWithSleeps/__init__.py
anirudhgarg/AzFunctionsPythonPerformance
3e3eac91635427ac478520fb1c33131785bcbe1e
[ "MIT" ]
null
null
null
import logging import time import azure.functions as func def main(req: func.HttpRequest) -> func.HttpResponse: # Pi Calculator # By Michael Rouse pi = 0 accuracy = 1000000 for i in range(0, accuracy): pi += ((4.0 * (-1)**i) / (2*i + 1)) time.sleep(1.5) f...
23.2
55
0.663793
f99104a4e94c88f3a0e77d420676ce549c289c41
488
py
Python
utils/audio_converter.py
yonghankim/AI-Speaker
abd87dd85a68e5cf94edea9c69f7b647789af2ce
[ "MIT" ]
3
2018-05-31T05:12:44.000Z
2019-05-24T16:33:00.000Z
utils/audio_converter.py
yonghankim/AI-Speaker
abd87dd85a68e5cf94edea9c69f7b647789af2ce
[ "MIT" ]
null
null
null
utils/audio_converter.py
yonghankim/AI-Speaker
abd87dd85a68e5cf94edea9c69f7b647789af2ce
[ "MIT" ]
6
2018-08-03T03:48:33.000Z
2020-06-07T10:45:38.000Z
# -*- coding:utf-8 -*- import os def convert(input_audio): # ================ Audio converter ================= # - mp3 to wav # - sample rate(22050Hz to 44100Hz) # - channel(mono to stereo) # ================================================== convert_audio = "convert_audio.wav" cmd...
27.111111
89
0.516393
5e2b522b922e568a38309ed95a9002c2eb99209a
2,177
py
Python
unleash_client/clients.py
rarruda/unleash-client-python
2f64bb2eab92eb9b99b4bef54c206d7672c6380c
[ "Apache-2.0" ]
2
2018-10-23T10:07:50.000Z
2018-10-30T02:37:30.000Z
unleash_client/clients.py
rarruda/unleash-client-python
2f64bb2eab92eb9b99b4bef54c206d7672c6380c
[ "Apache-2.0" ]
1
2018-09-25T17:29:40.000Z
2018-09-25T17:29:40.000Z
unleash_client/clients.py
rarruda/unleash-client-python
2f64bb2eab92eb9b99b4bef54c206d7672c6380c
[ "Apache-2.0" ]
null
null
null
import time import logging from urllib.parse import urljoin from .strategy import DEFAULT_STRATEGIES from .io import UrlFetcher, Reporter from .features import Feature log = logging.getLogger(__name__) def name_instance(): import os import socket return "%s:%s" % (socket.gethostname(), os.getpid()) c...
27.556962
91
0.57051
9331b2b6d66e2862dbb60cfaa5c5ee9f058183e9
3,752
py
Python
Moodipy/ErrorNoSongsPlay.py
dianas11xx/Moodify
709a3d5e1b661257bc0b4ffb2ce282ffbe856e6e
[ "MIT" ]
null
null
null
Moodipy/ErrorNoSongsPlay.py
dianas11xx/Moodify
709a3d5e1b661257bc0b4ffb2ce282ffbe856e6e
[ "MIT" ]
4
2021-06-14T20:16:55.000Z
2021-07-31T03:28:39.000Z
Moodipy/ErrorNoSongsPlay.py
dianas11xx/Moodify
709a3d5e1b661257bc0b4ffb2ce282ffbe856e6e
[ "MIT" ]
2
2021-06-02T21:19:12.000Z
2021-06-13T22:07:45.000Z
from PyQt5.QtWidgets import * from PyQt5.QtGui import * from Moodipy.UserSummary import Person from screeninfo import get_monitors from Moodipy.PlaylistToPlaylist import get_user_playlists class ErrorNoSgsPlay(QMainWindow): def __init__(self): max_screen_width = 1536 min_screen_width = 100...
43.627907
177
0.632729
52e43aa321b595ccd8134f23c649a9d9ffd664b3
5,002
py
Python
parlai/scripts/build_dict.py
pacowong/ParlAI
22df54cceb47958b817778e7ac4898a53a709410
[ "MIT" ]
null
null
null
parlai/scripts/build_dict.py
pacowong/ParlAI
22df54cceb47958b817778e7ac4898a53a709410
[ "MIT" ]
null
null
null
parlai/scripts/build_dict.py
pacowong/ParlAI
22df54cceb47958b817778e7ac4898a53a709410
[ "MIT" ]
1
2020-09-14T13:16:47.000Z
2020-09-14T13:16:47.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. """ Generates a dictionary file from the training data. Examples -------- .. code-block:: shell # learn the vocabula...
31.068323
87
0.641943
a50ac23e7240db17c24b496aed154e4baaa0a017
9,410
py
Python
modules/dirsearch/thirdparty/requests/packages/urllib3/poolmanager.py
GDGSNF/PXXTF
b1e081348c1e993c61213f3fd5f960894ce91d01
[ "MIT" ]
16
2020-10-03T22:01:46.000Z
2021-08-18T16:58:56.000Z
modules/dirsearch/thirdparty/requests/packages/urllib3/poolmanager.py
GDGSNF/PXXTF
b1e081348c1e993c61213f3fd5f960894ce91d01
[ "MIT" ]
1
2021-10-18T00:13:27.000Z
2021-10-18T00:13:31.000Z
modules/dirsearch/thirdparty/requests/packages/urllib3/poolmanager.py
yezz123/PXXTF
b1e081348c1e993c61213f3fd5f960894ce91d01
[ "MIT" ]
5
2020-10-16T11:07:45.000Z
2021-05-19T23:49:06.000Z
import logging try: # Python 3 from urllib.parse import urljoin except ImportError: from urllib.parse import urljoin from ._collections import RecentlyUsedContainer from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool from .connectionpool import port_by_scheme from .exceptions import LocationV...
33.487544
86
0.62136
795272827e309bb50ffc78a45ab9a5f53ebaf313
1,798
py
Python
scss/tests/functions/compass/test_gradients.py
ojengwa/pyScss
fcd3b4604bc5cd34b0d36e845f89e5abaa7058ea
[ "MIT" ]
1
2016-02-13T15:46:39.000Z
2016-02-13T15:46:39.000Z
scss/tests/functions/compass/test_gradients.py
ojengwa/pyScss
fcd3b4604bc5cd34b0d36e845f89e5abaa7058ea
[ "MIT" ]
null
null
null
scss/tests/functions/compass/test_gradients.py
ojengwa/pyScss
fcd3b4604bc5cd34b0d36e845f89e5abaa7058ea
[ "MIT" ]
null
null
null
"""Tests for Compass gradient generation.""" from scss.expression import Calculator from scss.functions.compass.gradients import COMPASS_GRADIENTS_LIBRARY, linear_gradient from scss.rule import Namespace from scss.types import String, List, Number, Color import pytest @pytest.fixture def calc(): ns = Namespace(...
31
87
0.660178
8040d29ea20dfba956e07852a53767e15c2f0e6d
644
py
Python
Day4/fast_fourier.py
susantabiswas/Digital-Image-Processing
4808e6ddb42c82acafb5eb5d58b41f9fd495483f
[ "MIT" ]
6
2018-01-15T14:39:18.000Z
2022-02-25T04:33:07.000Z
Day4/fast_fourier.py
Banhkun/Digital-Image-Processing-3
4808e6ddb42c82acafb5eb5d58b41f9fd495483f
[ "MIT" ]
null
null
null
Day4/fast_fourier.py
Banhkun/Digital-Image-Processing-3
4808e6ddb42c82acafb5eb5d58b41f9fd495483f
[ "MIT" ]
5
2019-01-27T08:49:04.000Z
2022-02-25T04:33:08.000Z
''' Do fast fourier transform on an image ''' import cv2 import numpy as np img = cv2.imread('lenna.jpg', 0) rows, cols = img.shape #convert to frequency domain f = np.fft.fft2(img) #bring the dc component( 0 freq) to the center by #shifting by n/2 in both directions fshift = np.fft.fftshift(f) magnitude_spectrum ...
24.769231
52
0.698758
9018ae6b36821171238851212709f07a4d7936e5
10,913
py
Python
gpMgmt/bin/gprestore_post_data_filter.py
henglabs/gpdb
09a8cc05ac90d63c64c6d432ca35179b55a461b2
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gprestore_post_data_filter.py
henglabs/gpdb
09a8cc05ac90d63c64c6d432ca35179b55a461b2
[ "PostgreSQL", "Apache-2.0" ]
6
2018-08-04T07:51:37.000Z
2018-11-26T07:09:44.000Z
gpMgmt/bin/gprestore_post_data_filter.py
henglabs/gpdb
09a8cc05ac90d63c64c6d432ca35179b55a461b2
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 from gppylib.gpparseopts import OptParser, OptChecker from gppylib.operations.backup_utils import split_fqn, checkAndRemoveEnclosingDoubleQuote, removeEscapingDoubleQuoteInSQLString, \ escapeDoubleQuoteInSQLString import re import sys import os search...
42.29845
140
0.645194
9afd8820f7c91a9df448743d7bf72a1f556a7629
936
py
Python
1stRound/Medium/92-Reverse Linked List II/TwoPointers.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
2
2020-04-24T18:36:52.000Z
2020-04-25T00:15:57.000Z
1stRound/Medium/92-Reverse Linked List II/TwoPointers.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
1stRound/Medium/92-Reverse Linked List II/TwoPointers.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution(object): def reverseBetween(self, head, m, n): """ :type head: ListNode :type m: int :type n: int :rty...
25.297297
43
0.473291
4cb00241dbf430a18174d167c09e73816b9ccfea
3,797
py
Python
tests/test_todolist.py
adxl/todo.io
0e4cedbb225bd6c0f12ea45db5eaec0a326044ff
[ "MIT" ]
null
null
null
tests/test_todolist.py
adxl/todo.io
0e4cedbb225bd6c0f12ea45db5eaec0a326044ff
[ "MIT" ]
null
null
null
tests/test_todolist.py
adxl/todo.io
0e4cedbb225bd6c0f12ea45db5eaec0a326044ff
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from unittest import TestCase from unittest.mock import MagicMock from app.Item import Item from app.todolist import TodoList from app.user import User from tests.conf import date_factory as d class TodoListTest(TestCase): def setUp(self): self.user = User("John",...
36.509615
88
0.697656
e0f8a2d3022f5e17994af9fe1facdbc529a5839d
12,045
py
Python
main.py
oscarcx123/afk-arena-tools
6cf4b0165a78049af7bcfffc3bc11e94255bf115
[ "BSD-3-Clause" ]
49
2019-10-21T06:18:45.000Z
2021-09-13T03:02:18.000Z
main.py
oscarcx123/afk-arena-tools
6cf4b0165a78049af7bcfffc3bc11e94255bf115
[ "BSD-3-Clause" ]
12
2020-01-09T13:39:48.000Z
2021-01-21T16:18:46.000Z
main.py
oscarcx123/afk-arena-tools
6cf4b0165a78049af7bcfffc3bc11e94255bf115
[ "BSD-3-Clause" ]
7
2020-01-16T08:40:38.000Z
2021-09-15T11:35:01.000Z
import os import sys import time import json import requests from functools import partial from threading import Thread from PyQt5.QtWidgets import QApplication, QMainWindow from PyQt5.QtCore import pyqtSignal from core import Utils, Command import main_gui ''' 【主窗口类】 主窗口类继承自QMainWindow类。 图形程序绝大部分交互都在这里。 ''' class M...
41.968641
176
0.637526
c36a159ce9d20d6116c272d34b1ffc8b29c13366
225
py
Python
django/settings/urls.py
fossabot/docker-django
1758527e02a6c028601de2662e3efcab3e05be32
[ "MIT" ]
null
null
null
django/settings/urls.py
fossabot/docker-django
1758527e02a6c028601de2662e3efcab3e05be32
[ "MIT" ]
null
null
null
django/settings/urls.py
fossabot/docker-django
1758527e02a6c028601de2662e3efcab3e05be32
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import include from django.urls import path urlpatterns = [ path("django_admin/", admin.site.urls), path("v1/accounts/", include("accounts.urls", namespace="v1")), ]
25
67
0.724444
ca12711bcbcde17d5a48d424f9fb556c83decbe4
1,180
py
Python
QUANTAXISTrade/example.py
danfengzi/QUANTAXIS
46ae1c735a29e3f0ce2241106731e864fbd0b0b1
[ "MIT" ]
92
2017-03-22T07:27:21.000Z
2021-04-04T06:59:26.000Z
QUANTAXISTrade/example.py
danfengzi/QUANTAXIS
46ae1c735a29e3f0ce2241106731e864fbd0b0b1
[ "MIT" ]
1
2017-03-22T10:57:27.000Z
2017-03-22T10:57:33.000Z
QUANTAXISTrade/example.py
danfengzi/QUANTAXIS
46ae1c735a29e3f0ce2241106731e864fbd0b0b1
[ "MIT" ]
7
2017-03-22T07:27:25.000Z
2020-04-28T08:44:03.000Z
#coding:utf-8 from QA_trade_stock import QA_Trade_stock_util,QA_Trade_stock_api import pymongo import csv,time,datetime st = QA_Trade_stock_api.QA_Stock() st.get_config() client = st.QA_trade_stock_login() print('可用资金查询') print(st.QA_trade_stock_get_cash(client)) print('当前持仓股票查询') print(st.QA_trade_stock_get_stock(cl...
25.106383
75
0.739831
1ce544781fb601cbb651158b2fd7d5f54d2e94ff
5,306
py
Python
bayesian_optimizer.py
adeandrade/bayesian-optimizer
30427943d69130179f7ccb32f63a08a1c57462f8
[ "Apache-2.0" ]
null
null
null
bayesian_optimizer.py
adeandrade/bayesian-optimizer
30427943d69130179f7ccb32f63a08a1c57462f8
[ "Apache-2.0" ]
null
null
null
bayesian_optimizer.py
adeandrade/bayesian-optimizer
30427943d69130179f7ccb32f63a08a1c57462f8
[ "Apache-2.0" ]
null
null
null
import warnings from typing import Sequence, Tuple import numpy as np import scipy.optimize as sp_optimize import scipy.special as sp_special from .gaussian_process import GaussianProcess from .kernel import Kernel from .sobol import new_sobol_sequence_generator class BayesianOptimizer: def __init__(self, kerne...
34.012821
142
0.65605
48e6bc0a97792319be235a6fe469fc1c927e9ff9
6,276
py
Python
utils/repo_owners.py
tparikh/qontract-reconcile
b4b2c2af69b9b43616b26c60484a6953c4e433e7
[ "Apache-2.0" ]
null
null
null
utils/repo_owners.py
tparikh/qontract-reconcile
b4b2c2af69b9b43616b26c60484a6953c4e433e7
[ "Apache-2.0" ]
null
null
null
utils/repo_owners.py
tparikh/qontract-reconcile
b4b2c2af69b9b43616b26c60484a6953c4e433e7
[ "Apache-2.0" ]
null
null
null
import logging import pathlib from ruamel import yaml _LOG = logging.getLogger(__name__) class RepoOwners: """ Abstracts the owners of a repository with per-path granularity. """ def __init__(self, git_cli, ref='master'): self._git_cli = git_cli self._ref = ref self._owners_...
31.223881
78
0.565647
46238077a958f04fe2e6366b3d6fa032dd5e1908
3,123
py
Python
app/app/settings.py
WalterCM/recipe-app-api
45cdcc8289f0fe14c55ae1640e2ec213f9039fa3
[ "MIT" ]
null
null
null
app/app/settings.py
WalterCM/recipe-app-api
45cdcc8289f0fe14c55ae1640e2ec213f9039fa3
[ "MIT" ]
null
null
null
app/app/settings.py
WalterCM/recipe-app-api
45cdcc8289f0fe14c55ae1640e2ec213f9039fa3
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.10. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
25.185484
91
0.694524
aa15ecaf8c6b1ed6a0758d81e9d597695318422d
35,816
py
Python
src/sage/schemes/generic/scheme.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/schemes/generic/scheme.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/schemes/generic/scheme.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
""" Schemes AUTHORS: - William Stein, David Kohel, Kiran Kedlaya (2008): added zeta_series - Volker Braun (2011-08-11): documenting, improving, refactoring. """ #***************************************************************************** # Copyright (C) 2011 Volker Braun <vbraun.name@gmail.com> # Cop...
30.378287
146
0.554054
e1173f907ca080369870fdc751f042e28a7ec22d
778
py
Python
nesmdb/vgm/nd_txt.py
NotOkay3272/nesmdb3
42445848be59ee4501b69800fb6803271e4bb224
[ "MIT" ]
null
null
null
nesmdb/vgm/nd_txt.py
NotOkay3272/nesmdb3
42445848be59ee4501b69800fb6803271e4bb224
[ "MIT" ]
null
null
null
nesmdb/vgm/nd_txt.py
NotOkay3272/nesmdb3
42445848be59ee4501b69800fb6803271e4bb224
[ "MIT" ]
null
null
null
def nd_to_txt(nd): txt = [c for c in nd if c[0] != 'ram'] txt = [','.join([str(f) for f in c]) for c in txt] txt = '\n'.join(txt) return txt def txt_to_nd(txt): txt = [l.strip() for l in txt.splitlines()] nd = [] for l in txt: if len(l) == 0 or l.startswith('//'): continue comm = l.spli...
23.575758
86
0.508997
5ab8d0c8b9b9206d75b088f71c5f9db8cb6358de
6,330
py
Python
launch_ros/launch_ros/actions/lifecycle_node.py
zmichaels11/launch_ros
c5e2aa2bf0eb60d61c66dbe0a6da365230b3387d
[ "Apache-2.0" ]
null
null
null
launch_ros/launch_ros/actions/lifecycle_node.py
zmichaels11/launch_ros
c5e2aa2bf0eb60d61c66dbe0a6da365230b3387d
[ "Apache-2.0" ]
null
null
null
launch_ros/launch_ros/actions/lifecycle_node.py
zmichaels11/launch_ros
c5e2aa2bf0eb60d61c66dbe0a6da365230b3387d
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Open Source Robotics Foundation, 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...
41.372549
98
0.673144
c6b76c4b02e51cf1038dbddf3fdddaacc183ea48
4,243
py
Python
lib/payload/password/generator/engine.py
th3cyb3rc0p/Nettacker
24640d8695716aee48435710287f58486ed174ab
[ "Apache-2.0" ]
35
2019-10-17T17:42:50.000Z
2020-10-06T12:08:29.000Z
lib/payload/password/generator/engine.py
th3cyb3rc0p/Nettacker
24640d8695716aee48435710287f58486ed174ab
[ "Apache-2.0" ]
1
2022-03-29T22:02:36.000Z
2022-03-29T22:02:36.000Z
lib/payload/password/generator/engine.py
th3cyb3rc0p/Nettacker
24640d8695716aee48435710287f58486ed174ab
[ "Apache-2.0" ]
7
2019-10-17T21:46:09.000Z
2021-12-15T04:56:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Pradeep Jairamani , github.com/pradeepjairamani # Password List Generator tool # https://github.com/pradeepjairamani/password_list_generator import os import sys from core.log import __log_into_file import json # Declarations global monthly global...
29.671329
310
0.520858
2b364e5e6ec9ac1f729d01683b3f227a9592bbb7
618
py
Python
scheduler_booter.py
zingdle/haipproxy
82ddb5f50efa97e3a9871c88552ea8a6b2a9608b
[ "MIT" ]
null
null
null
scheduler_booter.py
zingdle/haipproxy
82ddb5f50efa97e3a9871c88552ea8a6b2a9608b
[ "MIT" ]
null
null
null
scheduler_booter.py
zingdle/haipproxy
82ddb5f50efa97e3a9871c88552ea8a6b2a9608b
[ "MIT" ]
null
null
null
""" This module is used to start spider scheduler and validator scheduler. You can start crawler scheduler using the following cmd: python scheduler_booter.py --usage crawler If you want to start common scheduler only, run: python scheduler_booter.py --usage crawler common If you want to start validator scheduler, r...
26.869565
70
0.791262
e34722141e458bf1fc5075afdf7311f00e317ce3
5,768
py
Python
alttprbot/tournament/secondary.py
floresmatthew/sahasrahbot
a3fcc2aba9cd204331ce612ecf269d8a48a1ebc4
[ "MIT" ]
null
null
null
alttprbot/tournament/secondary.py
floresmatthew/sahasrahbot
a3fcc2aba9cd204331ce612ecf269d8a48a1ebc4
[ "MIT" ]
null
null
null
alttprbot/tournament/secondary.py
floresmatthew/sahasrahbot
a3fcc2aba9cd204331ce612ecf269d8a48a1ebc4
[ "MIT" ]
null
null
null
import discord import gspread_asyncio from discord.ext import commands from oauth2client.service_account import ServiceAccountCredentials from alttprbot.database import srlnick from alttprbot.exceptions import SahasrahBotException from alttprbot_discord.util.alttpr_discord import alttpr from config import Config as c ...
33.34104
142
0.603155
26a9e92a36ad216f3179f3b5ac2a93485035778a
779
py
Python
examples/right_to_left.py
sontek/XlsxWriter
7f17a52f95be9ecfb9c7f213fc0a02e0f625c6ec
[ "BSD-2-Clause-FreeBSD" ]
1
2015-05-19T22:17:15.000Z
2015-05-19T22:17:15.000Z
examples/right_to_left.py
sontek/XlsxWriter
7f17a52f95be9ecfb9c7f213fc0a02e0f625c6ec
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/right_to_left.py
sontek/XlsxWriter
7f17a52f95be9ecfb9c7f213fc0a02e0f625c6ec
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
####################################################################### # # Example of how to use Python and the XlsxWriter module to change the # default worksheet direction from left-to-right to right-to-left as # required by some middle eastern versions of Excel. # # Copyright 2013-2014, John McNamara, jmcnamara@cpa...
26.862069
71
0.676508
db861c92deba3d5689e0f7c08ff5f46ebe15f605
10,327
py
Python
test/test_crystaldamage.py
MDARIFULHASAN/neml
ff169d95ee465903ba664ade4cc604e9b292a9ca
[ "MIT" ]
6
2020-05-06T17:04:29.000Z
2021-08-03T20:02:22.000Z
test/test_crystaldamage.py
MDARIFULHASAN/neml
ff169d95ee465903ba664ade4cc604e9b292a9ca
[ "MIT" ]
66
2018-10-26T01:32:43.000Z
2022-02-01T03:02:18.000Z
test/test_crystaldamage.py
MDARIFULHASAN/neml
ff169d95ee465903ba664ade4cc604e9b292a9ca
[ "MIT" ]
14
2018-11-28T17:07:24.000Z
2022-01-06T16:57:15.000Z
#!/usr/bin/env python3 from neml import history, interpolate from neml.math import tensors, rotations, matrix, projections from neml.cp import crystallography, sliprules, crystaldamage, slipharden from common import differentiate from nicediff import * import unittest import numpy as np import numpy.linalg as la cl...
31.775385
80
0.66147
71cadcc271221c480746b50497e57b3e848bf326
902
py
Python
ooobuild/dyn/ui/module_accelerator_configuration.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/ui/module_accelerator_configuration.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/ui/module_accelerator_configuration.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
34.692308
118
0.773836
f0da5645a040b61962d9eb18bc77973ee08f47b2
1,311
py
Python
substitution/vigenere.py
ValEhk/CryptoTools
722926a9d95a715a8ede2011d79b7339ed2b3f0b
[ "MIT" ]
null
null
null
substitution/vigenere.py
ValEhk/CryptoTools
722926a9d95a715a8ede2011d79b7339ed2b3f0b
[ "MIT" ]
null
null
null
substitution/vigenere.py
ValEhk/CryptoTools
722926a9d95a715a8ede2011d79b7339ed2b3f0b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import string _alphabet_lower = string.ascii_lowercase _alphabet_upper = string.ascii_uppercase _alphabet = string.ascii_letters def _get_shifted_char(txtchar, keychar, right=True): """Shift 'txtchar' [char] by 'keychar' [char] position in the alphabet. Shift is performed left or right...
29.795455
80
0.64836
dc6b5b151bc317f83033cfc17ae134b3a16b2103
1,180
gyp
Python
chrome/tools/convert_dict/convert_dict.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
chrome/tools/convert_dict/convert_dict.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
chrome/tools/convert_dict/convert_dict.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'targets': [ { # GN version: //chrome/tools/convert_dict:lib 'target_name': 'convert_dict_l...
25.106383
72
0.526271
76a0f1462ef5c9a47d06ed8a9ec86ff5bc4c1fce
3,443
py
Python
setup.py
TamsinHu/computer_logic
90ad55bae614a5b83d803b278f5d9c785e2d8ac4
[ "BSD-3-Clause" ]
null
null
null
setup.py
TamsinHu/computer_logic
90ad55bae614a5b83d803b278f5d9c785e2d8ac4
[ "BSD-3-Clause" ]
null
null
null
setup.py
TamsinHu/computer_logic
90ad55bae614a5b83d803b278f5d9c785e2d8ac4
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python import re from setuptools import find_packages, setup from setuptools.command.install import install from setuptools.command.develop import develop import prolexa def setup_models(): import prolexa.setup_models as setup_models_ setup_models_.get_wordnet_nltk() setup_models_.get_pos...
34.777778
85
0.615161
004111e494e62d96eb7d08af3e8dde2bba18f644
4,996
py
Python
pytorch_toolkit/nncf/tests/sparsity/const/test_algo.py
shixinlishixinli/openvino_training_extensions
cd34e5ceb8ae016e14b8b43b033f82bd5e11949e
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/nncf/tests/sparsity/const/test_algo.py
shixinlishixinli/openvino_training_extensions
cd34e5ceb8ae016e14b8b43b033f82bd5e11949e
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/nncf/tests/sparsity/const/test_algo.py
shixinlishixinli/openvino_training_extensions
cd34e5ceb8ae016e14b8b43b033f82bd5e11949e
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2019 Intel 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 required by applicable law or agreed to in writin...
41.633333
96
0.717774
71c1c61e3d97ebd51e9bd8cf5b9946cbcbe5ca5c
31,313
py
Python
src/bootstrap/bootstrap.py
joshlf/rust
70cac59031d5c33962a1f53cdca9359c0dcd1f9f
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
src/bootstrap/bootstrap.py
joshlf/rust
70cac59031d5c33962a1f53cdca9359c0dcd1f9f
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
src/bootstrap/bootstrap.py
joshlf/rust
70cac59031d5c33962a1f53cdca9359c0dcd1f9f
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2015-2016 The Rust Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution and at # http://rust-lang.org/COPYRIGHT. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or ht...
36.368177
90
0.578194
a835256cfdb23233fca7bbea32f2c8da65199fa8
4,141
py
Python
neighbourhood/settings.py
lydiah2015/neighbourhood-sales
e5c53b052a73f1cbb36df0bd4a5c38b68de16037
[ "MIT" ]
null
null
null
neighbourhood/settings.py
lydiah2015/neighbourhood-sales
e5c53b052a73f1cbb36df0bd4a5c38b68de16037
[ "MIT" ]
5
2021-03-19T01:14:57.000Z
2022-03-11T23:49:33.000Z
neighbourhood/settings.py
lydiah2015/neighbourhood-sales
e5c53b052a73f1cbb36df0bd4a5c38b68de16037
[ "MIT" ]
null
null
null
""" Django settings for neighbourhood project. Generated by 'django-admin startproject' using Django 2.2.1. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import...
25.561728
91
0.696692
8626cd9c1072438a186b311ec2ad6e3fa01e72ca
721
py
Python
trojsten/utils/test_utils.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
5
2018-04-22T22:44:02.000Z
2021-04-26T20:44:44.000Z
trojsten/utils/test_utils.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
250
2018-04-24T12:04:11.000Z
2022-03-09T06:56:47.000Z
trojsten/utils/test_utils.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
8
2019-04-28T11:33:03.000Z
2022-02-26T13:30:36.000Z
from django.core.files.storage import Storage from django.db.models import Max def get_noexisting_id(model): """ Returns id for a model which is not yet in DB Currently works only with int IDs """ max_id = model.objects.all().aggregate(Max("id"))["id__max"] or 0 return max_id + 1 class TestN...
24.033333
69
0.646325
e2ebcab178fb1d4e88b9829ace61128104faf813
409
py
Python
dataframe.py
UWSEDS/homework-3-4-testing-exceptions-and-coding-style-wfrierson
d276ad319e2db5fff1ee3dcdb087130381c09897
[ "MIT" ]
null
null
null
dataframe.py
UWSEDS/homework-3-4-testing-exceptions-and-coding-style-wfrierson
d276ad319e2db5fff1ee3dcdb087130381c09897
[ "MIT" ]
null
null
null
dataframe.py
UWSEDS/homework-3-4-testing-exceptions-and-coding-style-wfrierson
d276ad319e2db5fff1ee3dcdb087130381c09897
[ "MIT" ]
null
null
null
import pandas as pd URL = ('https://data.wprdc.org/dataset/ad5bd3d6-1b53-4ed0-8cd9-157a985bd0bd' '/resource/53211313-01c9-46e2-b520-a5748a10fd7c/download/2018.csv') data = pd.read_csv(URL) headers = ['Breed', 'Color', 'DogName', 'ExpYear', 'LicenseType', 'OwnerZip', 'ValidDate'] if set(list(data.columns....
25.5625
90
0.706601
98e9057072c456452d9c26845c0345e1c9453cde
4,578
py
Python
safronova-exp.py
leungcalvin/dark_photon
74a75bfb5e26b64153061311c97dd63ba86250b7
[ "MIT" ]
null
null
null
safronova-exp.py
leungcalvin/dark_photon
74a75bfb5e26b64153061311c97dd63ba86250b7
[ "MIT" ]
null
null
null
safronova-exp.py
leungcalvin/dark_photon
74a75bfb5e26b64153061311c97dd63ba86250b7
[ "MIT" ]
null
null
null
from grasp import * #This file expands the safronova calculation, starting with the results in '/home/calvin/graspy/safronova/ci' clistordering = ['1s','2s','2p','3s','3p','3d','4s','4p','4d','5s','5p','4f','5d','6s','6p','5f','6d','7p','8s'] indices_mr_expanded = [[1],[1], [1],[1,2,3], ...
48.189474
120
0.62844
8fa578b7037e4d6e5d3743196822cadd6d862e99
1,205
py
Python
clients/kratos/python/test/test_self_service_recovery_link.py
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/test/test_self_service_recovery_link.py
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/test/test_self_service_recovery_link.py
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
32.567568
446
0.749378
530546f69f7ff67f6329ce0977f6c9ebcb33126a
402
py
Python
OnlineJudge/conf/urls/oj.py
FrozenWhalePP/OnlineJudge
aec81292046b4a0896ff164565b490dc37bd91cb
[ "MIT" ]
2
2020-03-07T02:26:00.000Z
2020-06-01T15:03:17.000Z
OnlineJudge/conf/urls/oj.py
FrozenWhalePP/OnlineJudge
aec81292046b4a0896ff164565b490dc37bd91cb
[ "MIT" ]
null
null
null
OnlineJudge/conf/urls/oj.py
FrozenWhalePP/OnlineJudge
aec81292046b4a0896ff164565b490dc37bd91cb
[ "MIT" ]
null
null
null
from django.conf.urls import url from ..views import JudgeServerHeartbeatAPI, LanguagesAPI, WebsiteConfigAPI urlpatterns = [ url(r"^website/?$", WebsiteConfigAPI.as_view(), name="website_info_api"), url(r"^judge_server_heartbeat/?$", JudgeServerHeartbeatAPI.as_view(), name="judge_server_heartbeat_api"),...
40.2
110
0.738806
dc54698b4ddd5dd09d28a949bb4cf607fa30d63c
4,831
py
Python
venv/lib/python3.6/site-packages/ansible_collections/mellanox/onyx/tests/unit/modules/test_onyx_linkagg.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/mellanox/onyx/tests/unit/modules/test_onyx_linkagg.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/mellanox/onyx/tests/unit/modules/test_onyx_linkagg.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type from unittest.mock import patch from ansible_collections.mellanox.onyx.plug...
41.290598
99
0.67812
0421650142d3c7c1b41e30fd68d19cecc46acb2f
3,072
py
Python
profiles_api/views.py
hesitanter/profiles-rest-api
db2a4bfef87738c066235de40e15b73e584d4c26
[ "MIT" ]
1
2021-01-06T14:14:28.000Z
2021-01-06T14:14:28.000Z
profiles_api/views.py
hesitanter/profiles-rest-api
db2a4bfef87738c066235de40e15b73e584d4c26
[ "MIT" ]
null
null
null
profiles_api/views.py
hesitanter/profiles-rest-api
db2a4bfef87738c066235de40e15b73e584d4c26
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from profiles_api import serializers from rest_framework import viewsets class HelloApiView(APIView): """Test API View""" serializer_class = serializers.HelloSerializer def get(self, r...
28.444444
77
0.602539
5ce70a8b91c0ab5626e5eaa12af30931e9ac7772
4,992
py
Python
cogs/general.py
Tutuviz/yunna-bot
2e76fa41a5029bd96b8e1c2f01462d73d7deeacd
[ "MIT" ]
null
null
null
cogs/general.py
Tutuviz/yunna-bot
2e76fa41a5029bd96b8e1c2f01462d73d7deeacd
[ "MIT" ]
null
null
null
cogs/general.py
Tutuviz/yunna-bot
2e76fa41a5029bd96b8e1c2f01462d73d7deeacd
[ "MIT" ]
null
null
null
import discord import asyncio import random import json import requests from discord.ext import commands from discord.utils import get class General(commands.Cog): def __init__(self, bot): self.bot = bot @commands.Cog.listener() async def on_member_join(self, member): print(f"{member} has...
35.913669
175
0.609776
eadd122dd7fee7e80669909bacfca0d9078b44a8
39,633
py
Python
site-libs/jnbinder.py
nulinspiratie/notebook-website-generator
63b3cea29185c5a59ba6b3487bd75e03f9797399
[ "MIT" ]
9
2018-09-18T00:29:10.000Z
2021-02-20T17:58:30.000Z
site-libs/jnbinder.py
nulinspiratie/notebook-website-generator
63b3cea29185c5a59ba6b3487bd75e03f9797399
[ "MIT" ]
null
null
null
site-libs/jnbinder.py
nulinspiratie/notebook-website-generator
63b3cea29185c5a59ba6b3487bd75e03f9797399
[ "MIT" ]
3
2018-09-18T15:47:59.000Z
2020-08-09T03:10:34.000Z
import os import glob import re import json import subprocess import collections from hashlib import sha1 from dateutil.parser import parse from bs4 import BeautifulSoup def is_date(string): try: parse(string) return True except ValueError: return False def get_output(cmd, show_command...
31.182533
359
0.561048
eedad9da622e37df7a0f2b6cb8e396c5587b258f
822
py
Python
mysite/mysite/urls.py
oakbani/django-starter-app
0b9aefa24cedce21c9ebf791e119d093ee201c75
[ "MIT" ]
null
null
null
mysite/mysite/urls.py
oakbani/django-starter-app
0b9aefa24cedce21c9ebf791e119d093ee201c75
[ "MIT" ]
null
null
null
mysite/mysite/urls.py
oakbani/django-starter-app
0b9aefa24cedce21c9ebf791e119d093ee201c75
[ "MIT" ]
1
2019-11-30T02:43:59.000Z
2019-11-30T02:43:59.000Z
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
35.73913
78
0.683698
b2bc022bab0544cfcd61a22d84750dfc6836e354
3,328
py
Python
pip/utils/logging.py
lyw07/kolibripip
e7039eca92b61827faa754311f1489e89a11519d
[ "MIT" ]
null
null
null
pip/utils/logging.py
lyw07/kolibripip
e7039eca92b61827faa754311f1489e89a11519d
[ "MIT" ]
null
null
null
pip/utils/logging.py
lyw07/kolibripip
e7039eca92b61827faa754311f1489e89a11519d
[ "MIT" ]
1
2019-02-03T19:00:10.000Z
2019-02-03T19:00:10.000Z
from __future__ import absolute_import import contextlib import logging import logging.handlers import os from pip.compat import WINDOWS from pip.utils import ensure_dir try: import threading except ImportError: import dummy_threading as threading try: from pip._vendor import colorama # Lots of differe...
25.212121
77
0.64363
550ed133961c91e2e747edbc9e76f38bb82f7fda
737
py
Python
common_language/__init__.py
jmcgonigle/common_language
6c8fa478e8ea841e677d08f653c4746ac35dd2b0
[ "MIT" ]
null
null
null
common_language/__init__.py
jmcgonigle/common_language
6c8fa478e8ea841e677d08f653c4746ac35dd2b0
[ "MIT" ]
null
null
null
common_language/__init__.py
jmcgonigle/common_language
6c8fa478e8ea841e677d08f653c4746ac35dd2b0
[ "MIT" ]
null
null
null
import click from common_language.convert_spellings import convert_spelling @click.command() @click.argument('input-files', nargs=-1, type=click.Path(exists=True), required=True) @click.option("--output-file", required=False, default=None, type=str) @click.option('--britishise', required=False, default=False, ...
29.48
86
0.68114
aa01978583ef282af5676648a256ddf6c8a086dd
23,616
py
Python
setup.py
junaidali/pharos-linux
c0628a671586a398bc32302f62ef17e44c849d1a
[ "MIT" ]
17
2015-01-28T17:14:51.000Z
2020-10-29T19:12:06.000Z
setup.py
junaidali/pharos-linux
c0628a671586a398bc32302f62ef17e44c849d1a
[ "MIT" ]
5
2016-09-26T11:47:11.000Z
2019-07-12T22:14:16.000Z
setup.py
junaidali/pharos-linux
c0628a671586a398bc32302f62ef17e44c849d1a
[ "MIT" ]
10
2015-02-21T20:07:26.000Z
2020-10-29T19:52:08.000Z
#!/usr/bin/python2 # Script Name: setup.py # Script Function: # This script will install pharos remote printing on the system. # The following tasks will be performed: # 1. Install the pharos backend to cups backend directory # 2. Install the popup scripts to /usr/local/bin/pharospopup # 3. Install the config file to /...
38.651391
212
0.733062
9215e5231a770258214da020d72c31040c964cd9
7,374
py
Python
taskcat/_common_utils.py
neil-greenwood/taskcat
e47f97714a01bd3c3b5040a05380a5f97f158d1b
[ "Apache-2.0" ]
920
2016-12-03T01:41:25.000Z
2021-11-04T13:52:21.000Z
taskcat/_common_utils.py
neil-greenwood/taskcat
e47f97714a01bd3c3b5040a05380a5f97f158d1b
[ "Apache-2.0" ]
544
2017-02-23T22:41:25.000Z
2021-11-03T23:02:25.000Z
taskcat/_common_utils.py
neil-greenwood/taskcat
e47f97714a01bd3c3b5040a05380a5f97f158d1b
[ "Apache-2.0" ]
225
2016-12-11T13:36:21.000Z
2021-11-04T14:43:53.000Z
import collections import logging import os import re import sys from collections import OrderedDict from functools import reduce from pathlib import Path from time import sleep import requests import yaml from botocore.exceptions import ClientError from dulwich.config import ConfigFile, parse_submodules from taskcat...
30.59751
88
0.650393
30809484abbe7c7cbc0c53f67969c4aef31ae085
2,308
py
Python
resilient-circuits-performance-testing/pt_integration_a/tests/test_pt_integration_a_process_added_artifact.py
lmahoney1/resilient-python-api
ae7db374e6e79a03e555c3b9ff3c723c3314f673
[ "MIT" ]
28
2017-12-22T00:26:59.000Z
2022-01-22T14:51:33.000Z
resilient-circuits-performance-testing/pt_integration_a/tests/test_pt_integration_a_process_added_artifact.py
lmahoney1/resilient-python-api
ae7db374e6e79a03e555c3b9ff3c723c3314f673
[ "MIT" ]
18
2018-03-06T19:04:20.000Z
2022-03-21T15:06:30.000Z
resilient-circuits-performance-testing/pt_integration_a/tests/test_pt_integration_a_process_added_artifact.py
lmahoney1/resilient-python-api
ae7db374e6e79a03e555c3b9ff3c723c3314f673
[ "MIT" ]
28
2018-05-01T17:53:22.000Z
2022-03-28T09:56:59.000Z
# -*- coding: utf-8 -*- """Tests using pytest_resilient_circuits""" from __future__ import print_function import pytest from resilient_circuits.util import get_config_data, get_function_definition from resilient_circuits import SubmitTestFunction, FunctionResult PACKAGE_NAME = "pt_integration_a" FUNCTION_NAME = "pt_i...
46.16
131
0.766898
19358f782c617e37d950e3dd1800a38b6327b21b
402
py
Python
halls/migrations/0008_auto_20210322_1848.py
samanvipotnuru/iiit_hall_booking_system
9f9cfde8d757e0eae702d36860c8342d317760f3
[ "MIT" ]
1
2021-12-23T14:08:06.000Z
2021-12-23T14:08:06.000Z
halls/migrations/0008_auto_20210322_1848.py
samanvipotnuru/iiit_hall_booking_system
9f9cfde8d757e0eae702d36860c8342d317760f3
[ "MIT" ]
null
null
null
halls/migrations/0008_auto_20210322_1848.py
samanvipotnuru/iiit_hall_booking_system
9f9cfde8d757e0eae702d36860c8342d317760f3
[ "MIT" ]
1
2021-03-10T15:43:09.000Z
2021-03-10T15:43:09.000Z
# Generated by Django 3.1.1 on 2021-03-22 13:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('halls', '0007_auto_20210311_1732'), ] operations = [ migrations.AlterField( model_name='application', name='approve'...
21.157895
62
0.60199
a56c4b71d382d496d073eebc7db76b657a1a2182
892
py
Python
examples/example1.py
jvansteirteghem/twunnel
6de57636c7a9df03fe8452c5bc57071aad3719a7
[ "MIT" ]
16
2015-02-09T11:45:05.000Z
2021-07-22T12:21:25.000Z
examples/example1.py
jvansteirteghem/twunnel
6de57636c7a9df03fe8452c5bc57071aad3719a7
[ "MIT" ]
null
null
null
examples/example1.py
jvansteirteghem/twunnel
6de57636c7a9df03fe8452c5bc57071aad3719a7
[ "MIT" ]
7
2015-02-23T18:38:17.000Z
2021-04-15T11:10:19.000Z
import sys import os sys.path.insert(0, os.path.abspath("..")) from twisted.internet import reactor, ssl from twisted.python import log from twunnel import logger, proxy_server from examples import example log.startLogging(sys.stdout) configuration = \ { "LOGGER": { "LEVEL": 3 } } logger.configu...
21.238095
74
0.691704
5d08a3101e87a9357480df951b1efe91e4be7884
181
py
Python
tests/models.py
EvgeneOskin/django-geohash-cluster
3b94055e4f1daede7962d2fc6b70075fee338f90
[ "MIT" ]
3
2019-10-05T03:54:57.000Z
2020-12-07T04:06:44.000Z
tests/models.py
EvgeneOskin/django-geohash-cluster
3b94055e4f1daede7962d2fc6b70075fee338f90
[ "MIT" ]
1
2017-12-01T04:45:16.000Z
2017-12-01T04:45:16.000Z
tests/models.py
EvgeneOskin/django-geohash-cluster
3b94055e4f1daede7962d2fc6b70075fee338f90
[ "MIT" ]
null
null
null
from geohash_cluster.models import Pointed, ClusterableQuerySet class Place(Pointed): objects = ClusterableQuerySet.as_manager() class Meta: app_label = 'tests'
18.1
63
0.734807
60b6bee9304d2be02db4ea0ba97f792e57838b80
17,353
py
Python
models/backbone/resnet.py
JennyVanessa/PANet-Paddle
82e037faf4d52e374bd4f42c78396924c23c02f9
[ "Apache-2.0" ]
1
2021-12-02T07:04:16.000Z
2021-12-02T07:04:16.000Z
models/backbone/resnet.py
JosephBless/Paddle-PANet
946e247af42ba68760d37cd9644b543fe5096288
[ "Apache-2.0" ]
1
2021-12-27T11:42:19.000Z
2021-12-27T11:42:19.000Z
models/backbone/resnet.py
JosephBless/Paddle-PANet
946e247af42ba68760d37cd9644b543fe5096288
[ "Apache-2.0" ]
null
null
null
import paddle from paddle import Tensor import paddle.nn as nn # from .._internally_replaced_utils import load_state_dict_from_url from typing import Type, Any, Callable, Union, List, Optional from .init_weights import init_weights import os import paddle __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resn...
39.800459
111
0.618683
d64bcd586f354b1c4e7d233e514e40189528f7df
5,088
py
Python
utils/dataset.py
kolaszko/haptic_transformer
51804d8301c0ba312a4ca0f23b296236acbb7f42
[ "MIT" ]
17
2021-03-04T11:43:47.000Z
2022-02-17T12:47:24.000Z
utils/dataset.py
kolaszko/haptic_transformer
51804d8301c0ba312a4ca0f23b296236acbb7f42
[ "MIT" ]
null
null
null
utils/dataset.py
kolaszko/haptic_transformer
51804d8301c0ba312a4ca0f23b296236acbb7f42
[ "MIT" ]
null
null
null
import os import pickle from torch.utils.data import Dataset from data import HapticDataset, QCATDataset def load_dataset(config): if config["dataset_type"].lower() == "put": dataset_path = os.path.join(config['dataset_folder'], config['dataset_file']) train_ds = HapticDataset(dataset_path, 'tra...
52.453608
103
0.525943
702848783398c2975edcc8b055355c1f1d38538c
188,458
py
Python
pysnmp-with-texts/TIMETRA-TC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/TIMETRA-TC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/TIMETRA-TC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module TIMETRA-TC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIMETRA-TC-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:16:43 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2...
91.35143
9,836
0.754025
8a149daeb6fa36ba481236d73644c48ccb75bb65
22
py
Python
dl/models/crnn/__init__.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
2
2021-02-06T22:40:13.000Z
2021-03-26T09:15:34.000Z
dl/models/crnn/__init__.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
8
2020-07-11T07:10:51.000Z
2022-03-12T00:39:03.000Z
dl/models/crnn/__init__.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
2
2021-03-26T09:19:42.000Z
2021-07-27T02:38:09.000Z
from .crnn import CRNN
22
22
0.818182
d26b12b747552439a18dd24ff62e7ca6b716760d
11,852
py
Python
SpoTwillio/lib/python3.6/site-packages/tests/integration/ip_messaging/v1/service/test_channel.py
Natfan/funlittlethings
80d5378b45b5c0ead725942ee50403bd057514a6
[ "MIT" ]
3
2019-11-12T07:55:51.000Z
2020-04-01T11:19:18.000Z
SpoTwillio/lib/python3.6/site-packages/tests/integration/ip_messaging/v1/service/test_channel.py
Natfan/funlittlethings
80d5378b45b5c0ead725942ee50403bd057514a6
[ "MIT" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
SpoTwillio/lib/python3.6/site-packages/tests/integration/ip_messaging/v1/service/test_channel.py
Natfan/funlittlethings
80d5378b45b5c0ead725942ee50403bd057514a6
[ "MIT" ]
2
2019-10-20T14:54:47.000Z
2020-06-11T07:29:37.000Z
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class ChannelTestCase(Integratio...
46.296875
174
0.574755
738ffc1e2e50b3dd01f5555562fbe93b1e1c6410
24,167
py
Python
ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py
vsosrc/ambari
e3cc898672707bedf7597f2e16d684c8a00bba3b
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py
vsosrc/ambari
e3cc898672707bedf7597f2e16d684c8a00bba3b
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py
vsosrc/ambari
e3cc898672707bedf7597f2e16d684c8a00bba3b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' 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")...
47.01751
218
0.5114
9ed1c03a4babadbc5d351cda4c1d416a147bda51
656
py
Python
tests/util.py
arounkles/markflow
fb13a5ed5f2df958e068b869e8dbdcd2d93b1552
[ "Apache-2.0" ]
null
null
null
tests/util.py
arounkles/markflow
fb13a5ed5f2df958e068b869e8dbdcd2d93b1552
[ "Apache-2.0" ]
null
null
null
tests/util.py
arounkles/markflow
fb13a5ed5f2df958e068b869e8dbdcd2d93b1552
[ "Apache-2.0" ]
null
null
null
import re from typing import Type import commonmark from markflow.formatters import MarkdownSection IGNORED_HTML_CHARACTERS = re.compile(r"[\n\s]") # We need to remove starts to ignore our numbering corrections. LIST_NUMBERING_START = re.compile(r" start=\"[0-9]+\"") def create_section(class_: Type[MarkdownSectio...
25.230769
80
0.724085
7d0bd29dec3a95b6555de9fd2c3a454d34a2da74
12,880
py
Python
test/functional/feature_dbcrash.py
Lexxos/dash
6f2e0420c3a8ba1f9ffbc4601e31ff760b9446b9
[ "MIT" ]
1
2021-12-14T10:08:03.000Z
2021-12-14T10:08:03.000Z
test/functional/feature_dbcrash.py
Lexxos/digital-cash
6f2e0420c3a8ba1f9ffbc4601e31ff760b9446b9
[ "MIT" ]
null
null
null
test/functional/feature_dbcrash.py
Lexxos/digital-cash
6f2e0420c3a8ba1f9ffbc4601e31ff760b9446b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test recovery from a crash during chainstate writing.""" from test_framework.test_framework import BitcoinT...
47.881041
114
0.643168
f7a051ae9176db9abe083b76118c2c53d62cda9c
748
py
Python
Python3/ankigenerator/TwoColumn.py
roycetech/Anki-Tools
d9cc5ddd45e1af20a4497d204394255c0f47002d
[ "Apache-2.0" ]
null
null
null
Python3/ankigenerator/TwoColumn.py
roycetech/Anki-Tools
d9cc5ddd45e1af20a4497d204394255c0f47002d
[ "Apache-2.0" ]
null
null
null
Python3/ankigenerator/TwoColumn.py
roycetech/Anki-Tools
d9cc5ddd45e1af20a4497d204394255c0f47002d
[ "Apache-2.0" ]
null
null
null
from util.common import nvl2, nvl, to_html, from_html filepath = '/Users/royce/Dropbox/Documents/Memorize/javascript/Blank.txt' with open(filepath, 'r') as f: card_count = 0 add_tag = False for line in f: if line.strip(' ') != "\n" and not 'deprecated' in line.lower(): tabs = line...
29.92
92
0.558824
90714b4779e3d408a5b52f9d86f48ef27ddde19f
93
py
Python
Commander-Rank/DAY-7/131B.py
rohansaini886/Peer-Programming-Hub-CP-Winter_Camp
d27fb6aa7e726e6d2cb95270c9e644d38d64dd1c
[ "MIT" ]
2
2021-12-09T18:07:46.000Z
2022-01-26T16:51:18.000Z
Commander-Rank/DAY-7/131B.py
rohansaini886/Peer-Programming-Hub-CP-Winter_Camp
d27fb6aa7e726e6d2cb95270c9e644d38d64dd1c
[ "MIT" ]
null
null
null
Commander-Rank/DAY-7/131B.py
rohansaini886/Peer-Programming-Hub-CP-Winter_Camp
d27fb6aa7e726e6d2cb95270c9e644d38d64dd1c
[ "MIT" ]
null
null
null
d={} input() k=0 for i in map(int,input().split()):k+=d.get(-i,0);d[i]=d.get(i,0)+1 print(k)
15.5
66
0.55914
353dd52462afd2e1f96cf1aecd781d40dd42782f
354
py
Python
4.py
flik/python
a5e27ed3c49ef9bc4c7443ad5f0a0272c11dcf5c
[ "MIT" ]
null
null
null
4.py
flik/python
a5e27ed3c49ef9bc4c7443ad5f0a0272c11dcf5c
[ "MIT" ]
null
null
null
4.py
flik/python
a5e27ed3c49ef9bc4c7443ad5f0a0272c11dcf5c
[ "MIT" ]
null
null
null
x = float(1) # x will be 1.0 y = float(2.8) # y will be 2.8 z = float("3") # z will be 3.0 w = float("4.2") x = str("s1") # x will be 's1' y = str(2) # y will be '2' z = str(3.0) # z will be '3.0' x = int(1) # x will be 1 y = int(2.8) # y will be 2 z = int("3") # z will be 3 print(type(x)) print(type...
20.823529
32
0.508475
45f748bc07eba1fdf5e3501cbd7ae40d2d0c403a
8,051
py
Python
setup/migrate.py
ssammo/mail
257983d5590ceb924d6edcdb7d401d5441b3727d
[ "CC0-1.0" ]
22
2016-09-05T13:34:51.000Z
2020-02-18T00:27:34.000Z
setup/migrate.py
mitchellurgero/server-in-a-box
1dfd77d6341d45ada2ab40246413c5631fd50fad
[ "CC0-1.0" ]
14
2016-08-30T21:43:38.000Z
2018-02-12T14:25:02.000Z
setup/migrate.py
mitchellurgero/server-in-a-box
1dfd77d6341d45ada2ab40246413c5631fd50fad
[ "CC0-1.0" ]
12
2016-09-20T19:54:50.000Z
2019-03-15T03:01:57.000Z
#!/usr/bin/python3 # Migrates any file structures, database schemas, etc. between versions of Mail-in-a-Box. # We have to be careful here that any dependencies are already installed in the previous # version since this script runs before all other aspects of the setup script. import sys, os, os.path, glob, re, shuti...
36.931193
155
0.717426
43fbcc2c5be1990ad8ca281eb015c2621cd65f24
492
py
Python
ontask/migrations/0059_auto_20190323_1336.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
33
2017-12-02T04:09:24.000Z
2021-11-07T08:41:57.000Z
ontask/migrations/0059_auto_20190323_1336.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
189
2017-11-16T04:06:29.000Z
2022-03-11T23:35:59.000Z
ontask/migrations/0059_auto_20190323_1336.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
30
2017-11-30T03:35:44.000Z
2022-01-31T03:08:08.000Z
# Generated by Django 2.1.7 on 2019-03-23 03:06 import django.contrib.postgres.fields.jsonb from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ontask', '0058_remove_action_nrows_all_false'), ] operations = [ migrations.AlterField( mode...
24.6
102
0.656504
8fd0399cb26db4b7572721bc108eba6980a7f1e5
3,895
py
Python
tests/library/compile_python_modules.py
roired/Nuitka
d240a14b4b00c03d60050b4ba67382fb09c7dba8
[ "Apache-2.0" ]
1,228
2015-01-01T15:12:50.000Z
2018-09-21T20:41:11.000Z
tests/library/compile_python_modules.py
lps1333/Nuitka
02e8d59a275cd7fe482cbc8100e753ff5abe39d7
[ "Apache-2.0" ]
131
2015-09-13T05:43:05.000Z
2018-09-22T08:34:41.000Z
tests/library/compile_python_modules.py
lps1333/Nuitka
02e8d59a275cd7fe482cbc8100e753ff5abe39d7
[ "Apache-2.0" ]
92
2015-02-02T21:05:35.000Z
2018-09-07T00:14:43.000Z
#!/usr/bin/env python # Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Python test originally created or extracted from other peoples work. The # parts from me are licensed as below. It is at least Free Software where # it's copied from other people. In these cases, that will normally be # ...
27.429577
81
0.664185
a333e36f570e81a7e0629640ac58003f09fd8214
3,157
py
Python
reckoner/importer.py
LynRodWS/reckoner
e477af228d04968ed64e2ccce6e943172ffd654f
[ "Apache-2.0" ]
192
2019-07-25T02:19:28.000Z
2022-03-24T05:25:10.000Z
reckoner/importer.py
LynRodWS/reckoner
e477af228d04968ed64e2ccce6e943172ffd654f
[ "Apache-2.0" ]
439
2019-07-15T20:44:59.000Z
2022-03-31T19:52:00.000Z
reckoner/importer.py
LynRodWS/reckoner
e477af228d04968ed64e2ccce6e943172ffd654f
[ "Apache-2.0" ]
16
2019-08-19T08:34:44.000Z
2022-01-16T20:23:13.000Z
# -- coding: utf-8 -- # Copyright 2019 FairwindsOps 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 l...
32.214286
86
0.694647
19eba309b04a4a0064948aa8d222b128c1dfae51
5,447
py
Python
src/gbkfit/model/gmodels/intensity_3d.py
bek0s/gbkf
2ef56e8554fdf7ee8136141bc16d59bd34efa6c8
[ "BSD-3-Clause" ]
6
2016-06-26T16:52:25.000Z
2022-03-22T06:37:13.000Z
src/gbkfit/model/gmodels/intensity_3d.py
bek0s/gbkf
2ef56e8554fdf7ee8136141bc16d59bd34efa6c8
[ "BSD-3-Clause" ]
4
2016-07-30T08:11:20.000Z
2021-02-12T08:33:42.000Z
src/gbkfit/model/gmodels/intensity_3d.py
bek0s/gbkf
2ef56e8554fdf7ee8136141bc16d59bd34efa6c8
[ "BSD-3-Clause" ]
2
2015-05-18T03:21:56.000Z
2015-09-21T06:16:18.000Z
from gbkfit.model.core import GModelImage from gbkfit.utils import iterutils, parseutils from . import _detail from .core import DensityComponent3D from .density_mcdisk_3d import DensityMCDisk3D from .density_smdisk_3d import DensitySMDisk3D __all__ = ['GModelIntensity3D'] _dcmp_parser = parseutils.TypedParser(Den...
37.565517
80
0.591518
93685fb8acb2d57a926f3ce6d4b5e505ae5d229a
1,375
py
Python
qase-xctest/src/qaseio/xcreport/parser/models/__init__.py
aleksandr-kotlyar/qase-python
3e6916eb4bf3518651e0a8e2e62281bfe0bfa464
[ "Apache-2.0" ]
null
null
null
qase-xctest/src/qaseio/xcreport/parser/models/__init__.py
aleksandr-kotlyar/qase-python
3e6916eb4bf3518651e0a8e2e62281bfe0bfa464
[ "Apache-2.0" ]
null
null
null
qase-xctest/src/qaseio/xcreport/parser/models/__init__.py
aleksandr-kotlyar/qase-python
3e6916eb4bf3518651e0a8e2e62281bfe0bfa464
[ "Apache-2.0" ]
null
null
null
from .action_abstract_test_summary import ActionAbstractTestSummary from .action_record import ActionRecord from .action_result import ActionResult from .action_test_activity_summary import ( ActionTestActivitySummary, ActivityType, ) from .action_test_attachment import ActionTestAttachment, UniformTypeIdentifi...
34.375
79
0.824
6cb1c74ece692fa6287d72265014ace410c525b6
18,845
py
Python
python/examples/kaitai/wmf.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
1
2021-04-05T15:01:23.000Z
2021-04-05T15:01:23.000Z
python/examples/kaitai/wmf.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
null
null
null
python/examples/kaitai/wmf.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
1
2021-06-10T04:27:19.000Z
2021-06-10T04:27:19.000Z
# This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild from pkg_resources import parse_version from .kaitaistruct import __version__ as ks_version, KaitaiStruct, KaitaiStream, BytesIO from enum import Enum import collections if parse_version(ks_version) < parse_version('0....
40.967391
128
0.561051
8345d18acc7b3ce4a85ea8a5de33b720d14e9807
879
py
Python
algorithms/others/shuffle_an_array.py
kevinshenyang07/Data-Structure-and-Algo
36b02feea04b892f1256de090c4fcf7b6aa98873
[ "MIT" ]
null
null
null
algorithms/others/shuffle_an_array.py
kevinshenyang07/Data-Structure-and-Algo
36b02feea04b892f1256de090c4fcf7b6aa98873
[ "MIT" ]
null
null
null
algorithms/others/shuffle_an_array.py
kevinshenyang07/Data-Structure-and-Algo
36b02feea04b892f1256de090c4fcf7b6aa98873
[ "MIT" ]
null
null
null
# Shuffle an Array # Shuffle a set of numbers without duplicates. class Solution(object): def __init__(self, nums): """ :type nums: List[int] """ self.nums = nums def reset(self): """ Resets the array to its original configuration and return it. :rtype:...
27.46875
71
0.560865
ba316ac6e3a8f14b45151e2c3d0f511c2289263e
5,515
py
Python
reader.py
KhardanOne/CarND-Behavioral-Cloning-P3
ed62289f24cbdf535d1db000481f6744cf415ca2
[ "MIT" ]
null
null
null
reader.py
KhardanOne/CarND-Behavioral-Cloning-P3
ed62289f24cbdf535d1db000481f6744cf415ca2
[ "MIT" ]
1
2020-11-20T17:14:05.000Z
2021-06-30T19:58:51.000Z
reader.py
KhardanOne/CarND-Behavioral-Cloning-P3
ed62289f24cbdf535d1db000481f6744cf415ca2
[ "MIT" ]
null
null
null
import csv import cfg import os import cv2 import numpy as np import sklearn.utils from keras import preprocessing import tensorflow as tf import matplotlib.pyplot as plt import random def should_skip_zero_steering_item(): """from X items where (steering == 0) skip Y items to fight unbalanced input""" cfg.st...
41.156716
196
0.583318