hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79491bbcc059cc6a34bf45e026b3078878c0b539
14,875
py
Python
mklaren/kernel/kernel.py
tkemps/mklaren
d9e7890aaa26cb3877e1a82114ab1e52df595d96
[ "BSD-2-Clause" ]
3
2019-10-28T17:20:37.000Z
2020-08-20T22:59:18.000Z
mklaren/kernel/kernel.py
tkemps/mklaren
d9e7890aaa26cb3877e1a82114ab1e52df595d96
[ "BSD-2-Clause" ]
null
null
null
mklaren/kernel/kernel.py
tkemps/mklaren
d9e7890aaa26cb3877e1a82114ab1e52df595d96
[ "BSD-2-Clause" ]
1
2019-10-28T17:20:35.000Z
2019-10-28T17:20:35.000Z
""" Methods related to calculation of kernel function values and kernel matrices. """ import numpy as np import scipy.sparse as sp from sklearn.gaussian_process.kernels import Matern from scipy.spatial.distance import cdist # Install the GPy module to use included kernels try: import GPy except ImportError: ...
33.730159
147
0.565513
79491dc86e8091609031852ddec02c2bfac743f2
1,427
py
Python
inference/inference_api_test/python_api_test/tests/cpu/test_deeplabv3_cpu.py
zjjlivein/continuous_integration
c8825f32136fdd425389702c37ded08d6fd28a26
[ "Apache-2.0" ]
14
2020-03-04T07:52:07.000Z
2022-02-14T01:39:14.000Z
inference/inference_api_test/python_api_test/tests/cpu/test_deeplabv3_cpu.py
zjjlivein/continuous_integration
c8825f32136fdd425389702c37ded08d6fd28a26
[ "Apache-2.0" ]
19
2020-03-04T03:52:10.000Z
2021-12-23T07:02:07.000Z
inference/inference_api_test/python_api_test/tests/cpu/test_deeplabv3_cpu.py
zjjlivein/continuous_integration
c8825f32136fdd425389702c37ded08d6fd28a26
[ "Apache-2.0" ]
26
2020-03-04T05:39:09.000Z
2022-02-14T01:43:28.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
29.122449
74
0.735109
79491e6b1733e96adf45c6ad682ad38ee82f75ef
2,461
py
Python
src/progress.py
ryuichi1208/hakarumaru
34478e0c4d545a196b584d04f73aca917c25b27a
[ "Apache-2.0" ]
null
null
null
src/progress.py
ryuichi1208/hakarumaru
34478e0c4d545a196b584d04f73aca917c25b27a
[ "Apache-2.0" ]
null
null
null
src/progress.py
ryuichi1208/hakarumaru
34478e0c4d545a196b584d04f73aca917c25b27a
[ "Apache-2.0" ]
null
null
null
from multiprocessing import Pool, cpu_count from IPython.display import clear_output import time from datetime import datetime, timedelta import sys def progress(itr, total=None, update_interval=1, clear=True): if total is None and hasattr(itr, '__len__'): total = len(itr) if total == 0: ...
35.157143
122
0.571312
79492002366036b14674a4bb3ac7af5ccbddd76a
482
py
Python
gotypes.py
Soycid/dlgo
c3189e5867ce67875a4f53c93af3fb11bbe18ad8
[ "MIT" ]
null
null
null
gotypes.py
Soycid/dlgo
c3189e5867ce67875a4f53c93af3fb11bbe18ad8
[ "MIT" ]
null
null
null
gotypes.py
Soycid/dlgo
c3189e5867ce67875a4f53c93af3fb11bbe18ad8
[ "MIT" ]
null
null
null
import enum class Player(enum.Enum): black = 1 white = 2 @property def other(self): return Player.black if self == Player.white else Player.white from collections import namedtuple class Point(namedtuple('Point', 'row col')): def neighbors(self): return [ Point(sel...
19.28
69
0.568465
794920b9936db772e220fea4dc01f62ceab02fdb
8,865
py
Python
Lib/site-packages/qwt/null_paintdevice.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/qwt/null_paintdevice.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/qwt/null_paintdevice.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed under the terms of the Qwt License # Copyright (c) 2002 Uwe Rathmann, for the original C++ code # Copyright (c) 2015 Pierre Raybaut, for the Python translation/optimization # (see LICENSE file for more details) """ QwtNullPaintDevice ------------------ .. autoclass:: QwtNullPaintD...
28.68932
86
0.57665
7949217b1e3247521314699126ab2a3d77801479
153
py
Python
projects/skel/src/manage.py
d2emon/project-constructor
217227acb14ee44affdd91b8d2b544442763c358
[ "WTFPL" ]
48
2015-04-25T21:09:50.000Z
2021-12-13T01:34:07.000Z
manage.py
Depado/experiments
ad8c6d7d82ed015e01aea5476c05a0ac7de5bcf4
[ "WTFPL" ]
1
2015-04-01T07:27:53.000Z
2015-04-01T07:27:53.000Z
manage.py
Depado/experiments
ad8c6d7d82ed015e01aea5476c05a0ac7de5bcf4
[ "WTFPL" ]
15
2015-02-25T19:35:07.000Z
2020-07-16T10:41:13.000Z
# -*- coding: utf-8 -*- from flask.ext.script import Manager from app import app manager = Manager(app) if __name__ == '__main__': manager.run()
13.909091
36
0.666667
7949217e4455564fe2a85cfbff08033d3e61b2b1
16,187
py
Python
fast-reid/fastreid/modeling/backbones/osnet.py
icicle4/TranSTAM
3dfda76cc507b3a3a4b25fbecab7df65fd8cab4d
[ "Apache-2.0" ]
71
2021-03-12T07:43:43.000Z
2022-03-30T03:28:16.000Z
fast-reid/fastreid/modeling/backbones/osnet.py
icicle4/TranSTAM
3dfda76cc507b3a3a4b25fbecab7df65fd8cab4d
[ "Apache-2.0" ]
8
2021-04-06T03:02:58.000Z
2022-02-16T14:05:47.000Z
fast-reid/fastreid/modeling/backbones/osnet.py
icicle4/TranSTAM
3dfda76cc507b3a3a4b25fbecab7df65fd8cab4d
[ "Apache-2.0" ]
7
2021-04-19T02:55:58.000Z
2021-11-11T12:39:09.000Z
# encoding: utf-8 """ @author: xingyu liao @contact: sherlockliao01@gmail.com """ # based on: # https://github.com/KaiyangZhou/deep-person-reid/blob/master/torchreid/models/osnet.py import logging import torch from torch import nn from fastreid.layers import get_norm from fastreid.utils import comm from .build imp...
30.143389
117
0.563044
794921a5ae0caed3631fb1de596f2943856dc3dd
593
py
Python
Python Programs/Hackerrank Solutions/betweenTwoSets.py
Chibi-Shem/Hacktoberfest2020-Expert
324843464aec039e130e85a16e74b76d310f1497
[ "MIT" ]
77
2020-10-01T10:06:59.000Z
2021-11-08T08:57:18.000Z
Python Programs/Hackerrank Solutions/betweenTwoSets.py
Chibi-Shem/Hacktoberfest2020-Expert
324843464aec039e130e85a16e74b76d310f1497
[ "MIT" ]
46
2020-09-27T04:55:36.000Z
2021-05-14T18:49:06.000Z
Python Programs/Hackerrank Solutions/betweenTwoSets.py
Chibi-Shem/Hacktoberfest2020-Expert
324843464aec039e130e85a16e74b76d310f1497
[ "MIT" ]
327
2020-09-26T17:06:03.000Z
2021-10-09T06:04:39.000Z
def getTotalX(a, b): aray=[] possible = [] aray = [i for i in range(a[-1],b[0]+1)] index = 0 possible = aray.copy() for i in a: for j in range(len(aray)): if (aray[j]%i != 0): if aray[j] in possible: index = possible.index(aray[j]) ...
29.65
51
0.448567
79492435a02d6ac926e2d6c30cfd0232a203bd96
169
py
Python
cse/writer/__init__.py
CodeLionX/CommentSearchEngine
9ebab14b93865a3e18db32aaa0bdb9579163da4a
[ "MIT" ]
2
2017-11-18T22:40:56.000Z
2018-12-21T15:09:24.000Z
cse/writer/__init__.py
CodeLionX/CommentSearchEngine
9ebab14b93865a3e18db32aaa0bdb9579163da4a
[ "MIT" ]
49
2017-10-26T14:58:58.000Z
2018-02-11T23:50:50.000Z
cse/writer/__init__.py
CodeLionX/CommentSearchEngine
9ebab14b93865a3e18db32aaa0bdb9579163da4a
[ "MIT" ]
null
null
null
""" CSE - a web crawling and web searching application for news paper comments written in Python writer classes """ from cse.writer.CommentWriter import CommentWriter
18.777778
65
0.792899
794924bc3b7c7b3b82e534753d96b7ff08371b34
106
py
Python
32_app_config_in_excel/index.py
nagasudhirpulla/python_wrldc_training
c3a3216c0a11e1dac03d4637b4b59b28f1bb83c6
[ "MIT" ]
null
null
null
32_app_config_in_excel/index.py
nagasudhirpulla/python_wrldc_training
c3a3216c0a11e1dac03d4637b4b59b28f1bb83c6
[ "MIT" ]
null
null
null
32_app_config_in_excel/index.py
nagasudhirpulla/python_wrldc_training
c3a3216c0a11e1dac03d4637b4b59b28f1bb83c6
[ "MIT" ]
2
2020-09-30T16:32:18.000Z
2020-10-23T01:13:51.000Z
# %% from appConfig import getConfig # test the function for usage print(getConfig('angleFolder')) # %%
13.25
31
0.716981
794924fd8bbe704f9aeebf7870b4850ab25602b1
904
py
Python
image_hosting_service/jd.py
fujiawei-dev/tookit-py
5ab3a18a41885f6166150cc27183621b96f8f991
[ "BSD-3-Clause" ]
null
null
null
image_hosting_service/jd.py
fujiawei-dev/tookit-py
5ab3a18a41885f6166150cc27183621b96f8f991
[ "BSD-3-Clause" ]
null
null
null
image_hosting_service/jd.py
fujiawei-dev/tookit-py
5ab3a18a41885f6166150cc27183621b96f8f991
[ "BSD-3-Clause" ]
null
null
null
""" Date: 2022.02.02 19:56 Description: Omit LastEditors: Rustle Karl LastEditTime: 2022.02.02 19:56 """ import base64 import json import lxml.html import requests from .common import UploadResult, headers session = requests.Session() session.headers = headers def upload(path) -> UploadResult: result = Upload...
21.023256
76
0.612832
794927fe6e2b7b173e2270dc9585e466771fc29b
7,155
py
Python
src/tools/deep_memory_profiler/tests/dmprof_test.py
jxjnjjn/chromium
435c1d02fd1b99001dc9e1e831632c894523580d
[ "Apache-2.0" ]
9
2018-09-21T05:36:12.000Z
2021-11-15T15:14:36.000Z
tools/deep_memory_profiler/tests/dmprof_test.py
devasia1000/chromium
919a8a666862fb866a6bb7aa7f3ae8c0442b4828
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/deep_memory_profiler/tests/dmprof_test.py
devasia1000/chromium
919a8a666862fb866a6bb7aa7f3ae8c0442b4828
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
3
2018-11-28T14:54:13.000Z
2020-07-02T07:36:07.000Z
#!/usr/bin/env python # Copyright (c) 2012 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. import cStringIO import logging import os import sys import textwrap import unittest ROOT_DIR = os.path.dirname(os.path.dirname(os...
32.085202
80
0.658281
794928155fb9e07130d09974c0a5ad72450d89f7
1,236
py
Python
994/Rotting Oranges.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
994/Rotting Oranges.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
994/Rotting Oranges.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
from typing import List from collections import deque class Solution: def orangesRotting(self, grid: List[List[int]]) -> int: m = len(grid) n = len(grid[0]) rotdeque = deque() count_fresh = 0 count = 0 move = [[-1,0],[0,1],[0,-1],[1,0]] for i in range(m): ...
34.333333
96
0.411812
7949282e7e611e26446fc8220a41ee3f2103c2d7
7,730
py
Python
gae/utils.py
MAhsanAkhtar/BDA_TERM_PROJECT
68b0deb2b126f81924997b7d9f8c6c1ad53bbac0
[ "MIT" ]
29
2018-01-08T21:31:12.000Z
2022-02-14T01:11:01.000Z
gae/utils.py
MAhsanAkhtar/BDA_TERM_PROJECT
68b0deb2b126f81924997b7d9f8c6c1ad53bbac0
[ "MIT" ]
null
null
null
gae/utils.py
MAhsanAkhtar/BDA_TERM_PROJECT
68b0deb2b126f81924997b7d9f8c6c1ad53bbac0
[ "MIT" ]
9
2018-01-09T21:04:16.000Z
2021-10-18T15:50:35.000Z
#MIT License # #Copyright (c) 2017 Willian Fuks # #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publi...
34.052863
79
0.624062
79492b8b8018ea418c603ea8e7b81bbb2b56ae71
5,395
py
Python
FNCI/v7/inventories/createWorkflowDetails.py
flexera/sca-codeinsight-workflow-v6
4d15d2c921ab2d42dbd2cdb62f77ab79f65b6061
[ "MIT" ]
1
2021-03-04T20:00:14.000Z
2021-03-04T20:00:14.000Z
FNCI/v7/inventories/createWorkflowDetails.py
flexera/sca-codeinsight-workflow-v6
4d15d2c921ab2d42dbd2cdb62f77ab79f65b6061
[ "MIT" ]
1
2021-06-02T02:54:23.000Z
2021-06-02T02:54:23.000Z
FNCI/v7/inventories/createWorkflowDetails.py
flexera/sca-codeinsight-workflow-v6
4d15d2c921ab2d42dbd2cdb62f77ab79f65b6061
[ "MIT" ]
null
null
null
''' Copyright 2020 Flexera Software LLC See LICENSE.TXT for full license text SPDX-License-Identifier: MIT Author : sgeary Created On : Tue Feb 11 2020 File : createWorkflowDetails.py ''' import logging import requests import sys import config logger = logging.getLogger(__name__) ##################################...
40.56391
169
0.573865
79492b90db34a88b583ba424761726e47e00dcb2
1,082
py
Python
kubernetes/test/test_v1_preconditions.py
amanagarwal33/python
e31693557f75950805fb4dc5af4cb7434a470e26
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_preconditions.py
amanagarwal33/python
e31693557f75950805fb4dc5af4cb7434a470e26
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_preconditions.py
amanagarwal33/python
e31693557f75950805fb4dc5af4cb7434a470e26
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 <<<<<<< HEAD OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech ======= OpenAPI spec version: v1.5.3 Generated b...
23.521739
124
0.698706
79492c47d79ccc93adb74a66a8ed4b31d0e6dc1b
2,128
py
Python
watermarking.py
mlouielu/watermarking
a317d26727b09e0b51018ba8f40c549a56ae181f
[ "MIT" ]
null
null
null
watermarking.py
mlouielu/watermarking
a317d26727b09e0b51018ba8f40c549a56ae181f
[ "MIT" ]
null
null
null
watermarking.py
mlouielu/watermarking
a317d26727b09e0b51018ba8f40c549a56ae181f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random from typing import Tuple import click from PIL import Image, ImageFont, ImageDraw def get_text_im(font: ImageFont, text: str, color: Tuple, rotate: int) -> Image: # Text text_im = Image.new("RGBA", font.getsize(text), (255, 255, 255, 0)) text_draw = ImageDraw.Draw(te...
31.294118
86
0.620301
79492cade74844c8535c1bb5848e831ddfedc302
10,645
py
Python
nlp_architect/data/ptb.py
ikuyamada/nlp-architect
2769bbf948b2509b4ac7dc287fddf907046bf283
[ "Apache-2.0" ]
1
2020-07-18T08:35:52.000Z
2020-07-18T08:35:52.000Z
nlp_architect/data/ptb.py
SIVASHANKAR-S/nlp-architect
b9d7df0afde39b62b2c23e24211e368b82623abc
[ "Apache-2.0" ]
null
null
null
nlp_architect/data/ptb.py
SIVASHANKAR-S/nlp-architect
b9d7df0afde39b62b2c23e24211e368b82623abc
[ "Apache-2.0" ]
1
2020-09-30T17:29:26.000Z
2020-09-30T17:29:26.000Z
# ****************************************************************************** # Copyright 2017-2018 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.apa...
32.753846
95
0.541381
79492cb876b3f8b211e329fc310cd1ac2d8ee45a
7,603
py
Python
tools/reader_base.py
bjlittle/mint
fe4862951e0c570caef6e86440b090650dca000b
[ "0BSD" ]
null
null
null
tools/reader_base.py
bjlittle/mint
fe4862951e0c570caef6e86440b090650dca000b
[ "0BSD" ]
null
null
null
tools/reader_base.py
bjlittle/mint
fe4862951e0c570caef6e86440b090650dca000b
[ "0BSD" ]
null
null
null
import netCDF4 import numpy import vtk class ReaderBase(object): PERIODICITY_LENGTH = 360. def __init__(self): """ Constructor No args """ self.vtk = { 'pointArray': [], 'pointData': vtk.vtkDoubleArray(), 'points': vtk.vtkPoints(), ...
32.080169
131
0.56846
79492cdc0024a2815b59470d3dc531eaab66d170
3,124
py
Python
app/app/settings.py
Hasib404/recipe-app
0f85dc0dcedefa43488439078b71b3aff6e4223e
[ "MIT" ]
null
null
null
app/app/settings.py
Hasib404/recipe-app
0f85dc0dcedefa43488439078b71b3aff6e4223e
[ "MIT" ]
null
null
null
app/app/settings.py
Hasib404/recipe-app
0f85dc0dcedefa43488439078b71b3aff6e4223e
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. 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.193548
91
0.695583
79492d9d8667e4900afc068be394d3999978217d
676
py
Python
mint/util/prev_transaction_block.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
12
2021-08-18T20:53:31.000Z
2022-03-15T21:45:13.000Z
mint/util/prev_transaction_block.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
34
2021-08-18T19:12:11.000Z
2022-01-06T17:15:34.000Z
mint/util/prev_transaction_block.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
7
2021-08-18T20:53:34.000Z
2022-03-15T08:37:40.000Z
from typing import Tuple from mint.consensus.block_record import BlockRecord from mint.consensus.blockchain_interface import BlockchainInterface from mint.util.ints import uint128 def get_prev_transaction_block( curr: BlockRecord, blocks: BlockchainInterface, total_iters_sp: uint128, ) -> Tuple[bool, Blo...
30.727273
67
0.767751
79492dbee81fde041cc3fe88cc97ca01b9d402f0
17,404
py
Python
mcbv/edit.py
akulakov/django
68970eae1733b2b252265d6d1384946f80e23ed8
[ "BSD-3-Clause" ]
150
2015-01-13T02:25:41.000Z
2018-05-25T09:05:36.000Z
mcbv/edit.py
akulakov/django
68970eae1733b2b252265d6d1384946f80e23ed8
[ "BSD-3-Clause" ]
9
2015-01-12T02:03:07.000Z
2018-04-12T20:45:09.000Z
mcbv/edit.py
akulakov/django-mcbv
68970eae1733b2b252265d6d1384946f80e23ed8
[ "BSD-3-Clause" ]
164
2015-01-17T07:43:28.000Z
2018-05-26T06:26:55.000Z
from django.forms import models as model_forms from django.core.exceptions import ImproperlyConfigured from django.http import HttpResponseRedirect from django.utils.encoding import force_text from django.db import models from django.contrib import messages from django.utils.functional import curry from django.forms.f...
34.669323
108
0.639623
79492e0f436f93d1117bd5261c6798d6b0c3c054
745
py
Python
truefalsepython/useful_funcs.py
PasaOpasen/true-false-python
a26ddd7c61471dd4d60d8ece00c6f03750bb7dca
[ "MIT" ]
1
2021-01-16T18:46:45.000Z
2021-01-16T18:46:45.000Z
truefalsepython/useful_funcs.py
PasaOpasen/true-false-python
a26ddd7c61471dd4d60d8ece00c6f03750bb7dca
[ "MIT" ]
null
null
null
truefalsepython/useful_funcs.py
PasaOpasen/true-false-python
a26ddd7c61471dd4d60d8ece00c6f03750bb7dca
[ "MIT" ]
null
null
null
from typing import Sequence, Any import sys import random def randomTrue(prob: float = 0.5): return True if random.random() < prob else False def fast_sample(objects: Sequence[Any], probs: Sequence[float]): """ returns 1 random object from objects with probs probabilities """ x = random.rando...
20.694444
66
0.644295
79492e3349ec373298de91d30b770fd9c142c15f
14,559
py
Python
codes/compressai/zoo/image.py
WestCityInstitute/InvCompress
17deb0f0e2f28432e6d5b38d0898ead58ccbcde4
[ "Apache-2.0" ]
62
2021-08-10T01:25:44.000Z
2022-03-31T07:53:35.000Z
codes/compressai/zoo/image.py
WestCityInstitute/InvCompress
17deb0f0e2f28432e6d5b38d0898ead58ccbcde4
[ "Apache-2.0" ]
6
2021-08-12T06:40:55.000Z
2022-03-09T15:34:50.000Z
codes/compressai/zoo/image.py
WestCityInstitute/InvCompress
17deb0f0e2f28432e6d5b38d0898ead58ccbcde4
[ "Apache-2.0" ]
8
2021-08-06T02:03:12.000Z
2022-03-22T19:33:08.000Z
# Copyright 2020 InterDigital Communications, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
37.045802
87
0.615221
79492f18a87359eb66e2044ef93033e382892b05
10,147
py
Python
psdash/node.py
luoyang-123/psdash-master_new
dd3b344a81a7f6a49db0ec3f91f23e0902d6e792
[ "CC0-1.0" ]
null
null
null
psdash/node.py
luoyang-123/psdash-master_new
dd3b344a81a7f6a49db0ec3f91f23e0902d6e792
[ "CC0-1.0" ]
null
null
null
psdash/node.py
luoyang-123/psdash-master_new
dd3b344a81a7f6a49db0ec3f91f23e0902d6e792
[ "CC0-1.0" ]
null
null
null
# coding=UTF-8 import logging import os import platform import psutil import socket import time import zerorpc from psdash.log import Logs from psdash.helpers import socket_families, socket_types from psdash.net import get_interface_addresses, NetIOCounters logger = logging.getLogger("psdash.node") class Node(objec...
30.748485
106
0.520449
79492f62b4e20ce1b041dd0a128d3221344f2a89
3,228
py
Python
tool/run/generate_image/main.py
yesii4u/covid19fks
329f83000d42264354f27d7b6ac3d7b481d99160
[ "MIT" ]
33
2020-03-20T03:39:05.000Z
2021-02-26T05:05:30.000Z
tool/run/generate_image/main.py
yesii4u/covid19fks
329f83000d42264354f27d7b6ac3d7b481d99160
[ "MIT" ]
80
2020-03-18T16:16:14.000Z
2022-02-11T08:56:08.000Z
tool/run/generate_image/main.py
yesii4u/covid19fks
329f83000d42264354f27d7b6ac3d7b481d99160
[ "MIT" ]
16
2020-03-19T11:22:12.000Z
2021-01-20T12:20:29.000Z
import time from flask import Flask, send_file from selenium import webdriver import chromedriver_binary # Adds chromedriver binary to path from PIL import Image from io import BytesIO from google.cloud import storage app = Flask(__name__) chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--hea...
38.428571
231
0.73544
794933464587f9f653686326bb9c543f0be0c008
5,792
py
Python
optuna/visualization/_slice.py
captain-pool/optuna
2ae8c17afea54362460320870304c763e91c0596
[ "MIT" ]
null
null
null
optuna/visualization/_slice.py
captain-pool/optuna
2ae8c17afea54362460320870304c763e91c0596
[ "MIT" ]
null
null
null
optuna/visualization/_slice.py
captain-pool/optuna
2ae8c17afea54362460320870304c763e91c0596
[ "MIT" ]
null
null
null
from typing import Callable from typing import cast from typing import List from typing import Optional from optuna.logging import get_logger from optuna.study import Study from optuna.trial import FrozenTrial from optuna.trial import TrialState from optuna.visualization._plotly_imports import _imports from optuna.vis...
34.070588
99
0.63346
7949340c1f676f4b04f1788c566c2281e8f3f1d3
14,142
py
Python
aen_CEM.py
mattolson93/Contrastive-Explanation-Method
62f2660895d42c08ab36f589c0f9ebf9bf25948c
[ "Apache-2.0" ]
null
null
null
aen_CEM.py
mattolson93/Contrastive-Explanation-Method
62f2660895d42c08ab36f589c0f9ebf9bf25948c
[ "Apache-2.0" ]
null
null
null
aen_CEM.py
mattolson93/Contrastive-Explanation-Method
62f2660895d42c08ab36f589c0f9ebf9bf25948c
[ "Apache-2.0" ]
null
null
null
## aen_attack.py -- attack a network optimizing elastic-net distance with an en decision rule ## when autoencoder loss is applied ## ## Copyright (C) 2018, IBM Corp ## Chun-Chen Tu <timtu@umich.edu> ## PaiShun Ting <paishun@umich.edu> ## ...
56.795181
159
0.633008
79493424107ef0b7578cf24e86902a751845928c
261
py
Python
axon/data/__init__.py
CONABIO-audio/axon
a08cdac7b7b531ea2218ef8866f8125560bf6414
[ "BSD-4-Clause" ]
null
null
null
axon/data/__init__.py
CONABIO-audio/axon
a08cdac7b7b531ea2218ef8866f8125560bf6414
[ "BSD-4-Clause" ]
3
2020-03-31T11:11:07.000Z
2021-08-23T20:37:40.000Z
axon/data/__init__.py
CONABIO-audio/axon
a08cdac7b7b531ea2218ef8866f8125560bf6414
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Data module. This module defines the basic building block of processing pipelines: data. Data objects have a definite data type and may have differents ways of loading and saving to external storages (database, filesystem, etc). """
32.625
78
0.750958
794935c9e371f071965a2dcb411ee6c99834aab3
5,067
py
Python
todocli/tests/test_todo/test_configmenusetup.py
BalenD/TODO-cli
a966800d36475c29ed8a3d92dcd0aa0c37018d61
[ "MIT" ]
null
null
null
todocli/tests/test_todo/test_configmenusetup.py
BalenD/TODO-cli
a966800d36475c29ed8a3d92dcd0aa0c37018d61
[ "MIT" ]
null
null
null
todocli/tests/test_todo/test_configmenusetup.py
BalenD/TODO-cli
a966800d36475c29ed8a3d92dcd0aa0c37018d61
[ "MIT" ]
2
2019-05-13T09:39:27.000Z
2019-05-16T19:41:08.000Z
from unittest import mock from todocli.todo.configmenusetup import Setup from argparse import Namespace import pytest class TestConfigMenuSetup(object): config_file_path = 'pathfilehere' config_setup = Setup(config_file_path) def test_ConfigMenuStart(self): with mock.patch('builtins.input', return...
42.579832
95
0.642787
79493603f870fa35197be8383833265cc30eebdb
23,447
py
Python
03_Framework/CrawlerChrome.py
awareseven/Reproducibility-and-Replicability-of-Web-Measurement-Studies
38953c70a9ab03e1d29e4f9c6da13ffcaaeac84b
[ "Apache-2.0" ]
3
2022-01-27T07:36:24.000Z
2022-02-22T09:32:53.000Z
03_Framework/CrawlerChrome.py
awareseven/Reproducibility-and-Replicability-of-Web-Measurement-Studies
38953c70a9ab03e1d29e4f9c6da13ffcaaeac84b
[ "Apache-2.0" ]
null
null
null
03_Framework/CrawlerChrome.py
awareseven/Reproducibility-and-Replicability-of-Web-Measurement-Studies
38953c70a9ab03e1d29e4f9c6da13ffcaaeac84b
[ "Apache-2.0" ]
1
2022-02-02T08:21:39.000Z
2022-02-02T08:21:39.000Z
from func_timeout import func_timeout, FunctionTimedOut, func_set_timeout from logging import root from tmp.path import find_cookies_path from Ops import delFolder, delProfileFolder, editLogQueue, isThirdParty, newLogQueue, terminateProcessBySiteID, timestamp2Datetime, LocalStorage, visitLogNew, visitLogUpdate from re ...
33.495714
1,018
0.595982
794936226d6ee2480d0471399e3bdd6a0e5ac621
3,985
py
Python
representing_code/GenerateAST.py
varghesetom/PyLox
0f993f8f9ffc967a677d80b4b233205c4485e5e4
[ "MIT" ]
null
null
null
representing_code/GenerateAST.py
varghesetom/PyLox
0f993f8f9ffc967a677d80b4b233205c4485e5e4
[ "MIT" ]
null
null
null
representing_code/GenerateAST.py
varghesetom/PyLox
0f993f8f9ffc967a677d80b4b233205c4485e5e4
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Instead of directly writing out each Statement and Expression Syntax node, this file will be used to generate the "Expr.py" and "Stmt.py" files that will have various expressions to be used as part of our grammar for Lox. Honestly, there's not much of a need to have this Expr.py file be pl...
49.8125
174
0.591217
7949367cd4e8da77ff491b09f96ad901afc2e2cf
980
py
Python
tvae/nn/modules/position_wise.py
khucnam/Efflux_TransVAE
7da1cc614f016d5520648f4853e34e2362181aa7
[ "MIT" ]
43
2019-05-15T21:58:56.000Z
2022-03-06T03:44:26.000Z
tvae/nn/modules/position_wise.py
khucnam/Efflux_TransVAE
7da1cc614f016d5520648f4853e34e2362181aa7
[ "MIT" ]
1
2020-01-11T12:03:00.000Z
2020-01-11T12:03:00.000Z
tvae/nn/modules/position_wise.py
khucnam/Efflux_TransVAE
7da1cc614f016d5520648f4853e34e2362181aa7
[ "MIT" ]
6
2019-07-24T18:15:41.000Z
2022-01-13T22:17:58.000Z
from torch import nn class PositionWise(nn.Module): def __init__(self, dim_m, dim_i, dropout=0.1): """Position-wise Feed-Forward Network. Args: dim_m (int): input and output dimension. dim_i (int): inner dimension. dropout (float, optional): dropout probability...
30.625
72
0.581633
79493768334886b9e9a97f6b0966cc6b9693297c
530
py
Python
llluiop/0014/student.py
saurabh896/python-1
f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7
[ "MIT" ]
3,976
2015-01-01T15:49:39.000Z
2022-03-31T03:47:56.000Z
llluiop/0014/student.py
dwh65416396/python
1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a
[ "MIT" ]
97
2015-01-11T02:59:46.000Z
2022-03-16T14:01:56.000Z
llluiop/0014/student.py
dwh65416396/python
1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a
[ "MIT" ]
3,533
2015-01-01T06:19:30.000Z
2022-03-28T13:14:54.000Z
#!/usr/bin/env python import xlwt import json def load_data(filepath): f = open(filepath, "r") return json.load(f) def write_data_to_xls(data): xls = xlwt.Workbook() sheet = xls.add_sheet("student") for i in range(len(data)): sheet.write(i, 0, i+1) json_data = data[str(i+1)] ...
16.5625
45
0.607547
79493774e129102794f9fa453c38a58eddf6b266
2,244
py
Python
scripts/tree2taxa.py
CGATOxford/Optic
2df92e953b5139ff4e5c383cb4383e6367cd47f1
[ "MIT" ]
null
null
null
scripts/tree2taxa.py
CGATOxford/Optic
2df92e953b5139ff4e5c383cb4383e6367cd47f1
[ "MIT" ]
null
null
null
scripts/tree2taxa.py
CGATOxford/Optic
2df92e953b5139ff4e5c383cb4383e6367cd47f1
[ "MIT" ]
1
2020-03-31T22:55:50.000Z
2020-03-31T22:55:50.000Z
""" tree2taxa.py - extract taxa in a tree ===================================== :Author: Andreas Heger :Release: $Id$ :Date: |today| :Tags: Python Purpose ------- This script reads a collections of trees from stdin and for each tree outputs the taxa found within the tree. Usage ----- Example:: python <script_n...
21.576923
107
0.581105
794937c48be080867c99b21131e4f8f38609787f
817
py
Python
nagios/check_hads_ingest.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
1
2019-10-07T17:01:24.000Z
2019-10-07T17:01:24.000Z
nagios/check_hads_ingest.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
null
null
null
nagios/check_hads_ingest.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
null
null
null
""" Check how much HADS data we have """ from __future__ import print_function import sys from pyiem.util import get_dbconn IEM = get_dbconn('iem', user='nobody') icursor = IEM.cursor() def check(): icursor.execute(""" SELECT count(*) from current_shef WHERE valid > now() - '1 hour'::interval ...
21.5
79
0.589963
794938521cca6e97f1bc080850a42161edbe5089
1,699
py
Python
cpfs_generator_validator/cpf_generator.py
Lokiatos/Projects_Python
44c6d912bc9ce742008eb129bea52963726b8382
[ "MIT" ]
1
2020-06-26T17:57:35.000Z
2020-06-26T17:57:35.000Z
cpfs_generator_validator/cpf_generator.py
Lokiatos/Projects_Python
44c6d912bc9ce742008eb129bea52963726b8382
[ "MIT" ]
null
null
null
cpfs_generator_validator/cpf_generator.py
Lokiatos/Projects_Python
44c6d912bc9ce742008eb129bea52963726b8382
[ "MIT" ]
null
null
null
# Objetivo: Programar um gerador de CPF # Programmer: Hugo Leça Ribeiro # Date: 27/04/2020 def main(): try: numbers_cpf = int(input('How many CPFs do you want to generate? ')) for number in range(0, numbers_cpf): user_cpf = generate_cpf() complete_cpf = calculation_digits(...
29.293103
79
0.683932
7949398aac92fdac6d961d1a8ad66b2dd8d61df0
7,123
py
Python
tensorflow_model_analysis/eval_saved_model/graph_ref_test.py
yifanmai/model-analysis
ae11318876ac6233ded77ac30c8aacc94da691d3
[ "Apache-2.0" ]
2
2019-10-20T05:40:09.000Z
2019-10-31T17:25:51.000Z
tensorflow_model_analysis/eval_saved_model/graph_ref_test.py
yifanmai/model-analysis
ae11318876ac6233ded77ac30c8aacc94da691d3
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/eval_saved_model/graph_ref_test.py
yifanmai/model-analysis
ae11318876ac6233ded77ac30c8aacc94da691d3
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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 agreed to in writing, ...
34.916667
80
0.639197
79493b0785c4581c1ecb5c455b3e7154481e8345
751
py
Python
rocketgram/api/create_chat_invite_link.py
rocketbots/rocketgram
e509dcfad85d47a2449caf6dd302ec8581f95bf6
[ "MIT" ]
16
2019-02-27T20:15:52.000Z
2019-08-06T10:59:41.000Z
rocketgram/api/create_chat_invite_link.py
rocketbots/rocketgram
e509dcfad85d47a2449caf6dd302ec8581f95bf6
[ "MIT" ]
1
2022-01-16T13:56:45.000Z
2022-01-16T13:56:45.000Z
rocketgram/api/create_chat_invite_link.py
rocketbots/rocketgram
e509dcfad85d47a2449caf6dd302ec8581f95bf6
[ "MIT" ]
3
2019-03-19T16:01:22.000Z
2019-04-05T15:58:12.000Z
# Copyright (C) 2015-2022 by Vd. # This file is part of Rocketgram, the modern Telegram bot framework. # Rocketgram is released under the MIT License (see LICENSE). from dataclasses import dataclass from datetime import datetime from typing import Union, Optional from .request import Request from .utils import ChatI...
28.884615
69
0.76032
79493b26c0ba6d4e080606ee9c5d95a79ffaa2f9
29,729
py
Python
pandas/core/generic.py
flexlee/pandas
749318f4a1b4ae56d3eee507db312052532e7f4b
[ "BSD-2-Clause" ]
null
null
null
pandas/core/generic.py
flexlee/pandas
749318f4a1b4ae56d3eee507db312052532e7f4b
[ "BSD-2-Clause" ]
null
null
null
pandas/core/generic.py
flexlee/pandas
749318f4a1b4ae56d3eee507db312052532e7f4b
[ "BSD-2-Clause" ]
null
null
null
# pylint: disable=W0231,E1101 from datetime import timedelta import numpy as np from pandas.core.index import MultiIndex from pandas.tseries.index import DatetimeIndex from pandas.tseries.offsets import DateOffset import pandas.core.common as com import pandas.lib as lib class PandasError(Exception): pass cla...
29.089041
79
0.551112
79493b4b1cd39146785dd4ca3e96131a505fa11b
386
py
Python
misc/get_local_code.py
byung-u/real_estate_in_seoul
c3c16c25c337e8c6869f8d891b7b2a195b937289
[ "MIT" ]
1
2019-09-30T13:36:53.000Z
2019-09-30T13:36:53.000Z
misc/get_local_code.py
byung-u/real_estate_in_seoul
c3c16c25c337e8c6869f8d891b7b2a195b937289
[ "MIT" ]
1
2017-03-11T14:08:22.000Z
2017-03-11T14:08:22.000Z
misc/get_local_code.py
byung-u/real_estate_in_seoul
c3c16c25c337e8c6869f8d891b7b2a195b937289
[ "MIT" ]
1
2017-10-27T05:31:12.000Z
2017-10-27T05:31:12.000Z
#!/usr/bin/env python3.5 # -*- coding: utf-8 -*- import sqlite3 def main(): conn = sqlite3.connect('../local_code.db') c = conn.cursor() gu = '마포' query = '''SELECT code FROM local_code WHERE province='서울특별시' and district="%s구"''' % (gu) c.execute(query) data = c.fetchone() conn.clos...
17.545455
49
0.580311
79493c424af838f4f1fbc8e79ba7461c2b65b2b2
38,620
py
Python
xmlschema/validators/xsdbase.py
delocalizer/xmlschema
c24169f05112f67a45493d390476307919cacd22
[ "MIT" ]
null
null
null
xmlschema/validators/xsdbase.py
delocalizer/xmlschema
c24169f05112f67a45493d390476307919cacd22
[ "MIT" ]
null
null
null
xmlschema/validators/xsdbase.py
delocalizer/xmlschema
c24169f05112f67a45493d390476307919cacd22
[ "MIT" ]
null
null
null
# # Copyright (c), 2016-2020, SISSA (International School for Advanced Studies). # All rights reserved. # This file is distributed under the terms of the MIT License. # See the file 'LICENSE' in the root directory of the present # distribution, or http://opensource.org/licenses/MIT. # # @author Davide Brunato <brunato@...
38.389662
100
0.619601
79493cd74be98a5d06437ed16af4e407b98bc5c1
180,543
py
Python
7.32.0.dev0/ietf/meeting/views.py
kesara/ietf-datatracker
dca3ee2ee98bcb75a10687587cf631750be34c79
[ "Unlicense" ]
null
null
null
7.32.0.dev0/ietf/meeting/views.py
kesara/ietf-datatracker
dca3ee2ee98bcb75a10687587cf631750be34c79
[ "Unlicense" ]
null
null
null
7.32.0.dev0/ietf/meeting/views.py
kesara/ietf-datatracker
dca3ee2ee98bcb75a10687587cf631750be34c79
[ "Unlicense" ]
null
null
null
# Copyright The IETF Trust 2007-2020, All Rights Reserved # -*- coding: utf-8 -*- import csv import datetime import glob import io import itertools import json import math import os import pytz import re import tarfile import tempfile import markdown2 from calendar import timegm from collections import OrderedDict,...
44.933549
245
0.636053
79493d01d972ab1f761866d708904a4411d0572f
5,670
py
Python
megalista_dataflow/uploaders/google_analytics/google_analytics_data_import_eraser_test.py
omnicomdatahousecl/megalista
a8085608263b592a9ace144809d6352b5f24e58d
[ "Apache-2.0" ]
44
2021-03-10T15:41:50.000Z
2022-02-28T11:21:37.000Z
megalista_dataflow/uploaders/google_analytics/google_analytics_data_import_eraser_test.py
QPC-database/megalista
0d74da9129886969ee1ddeb2c59ead15a98eb99a
[ "Apache-2.0" ]
18
2021-03-11T12:17:38.000Z
2022-03-11T20:46:54.000Z
megalista_dataflow/uploaders/google_analytics/google_analytics_data_import_eraser_test.py
QPC-database/megalista
0d74da9129886969ee1ddeb2c59ead15a98eb99a
[ "Apache-2.0" ]
25
2021-03-10T00:53:12.000Z
2022-03-29T16:09:58.000Z
# Copyright 2021 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 agreed to in writing, ...
37.058824
117
0.688889
79493d6223ba52e57662715f5c5e48a170182722
2,547
py
Python
ArcaeaAssetsUpdater/assets_updater.py
Chendihe4975/ArcaeaAssetsUpdater
7c567f7606265a4709bae7b019ea1b1635f15aa4
[ "MIT" ]
1
2022-03-14T06:34:04.000Z
2022-03-14T06:34:04.000Z
ArcaeaAssetsUpdater/assets_updater.py
Chendihe4975/ArcaeaAssetsUpdater
7c567f7606265a4709bae7b019ea1b1635f15aa4
[ "MIT" ]
null
null
null
ArcaeaAssetsUpdater/assets_updater.py
Chendihe4975/ArcaeaAssetsUpdater
7c567f7606265a4709bae7b019ea1b1635f15aa4
[ "MIT" ]
1
2022-03-14T12:37:24.000Z
2022-03-14T12:37:24.000Z
""" - Author: DiheChen - Date: 2021-08-14 23:42:42 - LastEditTime: 2021-08-21 00:04:28 - LastEditors: DiheChen - Description: None - GitHub: https://github.com/Chendihe4975 """ from os import path from sys import platform from zipfile import ZipFile import ujson as json from aiohttp import ClientSession from co...
36.385714
116
0.628583
79493d813acd27717db6ffb9cb83b1cd3e3d3dcf
145
py
Python
app/euler/__init__.py
Joey-Wondersign/Staffjoy-suite-Joey
b6d0d87b8e60e6b866810ebeed631fb02fadad48
[ "MIT" ]
890
2017-02-25T07:11:09.000Z
2022-03-08T05:49:20.000Z
app/euler/__init__.py
Joey-Wondersign/Staffjoy-suite-Joey
b6d0d87b8e60e6b866810ebeed631fb02fadad48
[ "MIT" ]
11
2017-02-25T18:07:11.000Z
2020-10-19T13:09:41.000Z
app/euler/__init__.py
nfriedly/suite
c58c772d98d1476cad0531b8a296f27ad2ab945c
[ "MIT" ]
276
2017-02-25T09:01:23.000Z
2022-03-19T02:24:02.000Z
from flask import Blueprint euler = Blueprint( 'euler', __name__, template_folder='templates', static_folder='static') from . import views
20.714286
75
0.751724
79493dbd596c655225f141ebf893bcbe5422a420
230
py
Python
users/reducer/nlp_loader.py
SionHu/Fairvision
b02c9111c52146be3b3590601d1deba48e69c813
[ "Apache-2.0" ]
6
2019-04-08T23:06:21.000Z
2020-07-15T18:22:50.000Z
users/reducer/nlp_loader.py
moyazzz/Crowdsourcing
107827c8b7689ec1a847e38aff0b7f6747091c97
[ "Apache-2.0" ]
8
2019-03-08T02:47:08.000Z
2019-07-26T18:27:25.000Z
users/reducer/nlp_loader.py
moyazzz/Crowdsourcing
107827c8b7689ec1a847e38aff0b7f6747091c97
[ "Apache-2.0" ]
8
2019-05-17T02:04:45.000Z
2020-06-29T01:10:18.000Z
from en_core_web_md import load import spacy nlp = load() # Single load in memory till killed if not isinstance(nlp, spacy.lang.en.English): raise TypeError("Model given is not of type {}.".format("spacy.lang.en.English"))
28.75
85
0.734783
79493e35fd4ad54066e9551e4d83f376f5da364f
512
py
Python
day10/test_lib.py
heijp06/AoC-2021
f6afead5e1fe9a839d608a5792f84e54803742c1
[ "MIT" ]
null
null
null
day10/test_lib.py
heijp06/AoC-2021
f6afead5e1fe9a839d608a5792f84e54803742c1
[ "MIT" ]
null
null
null
day10/test_lib.py
heijp06/AoC-2021
f6afead5e1fe9a839d608a5792f84e54803742c1
[ "MIT" ]
null
null
null
from lib import part1, part2 def test_part1(): assert part1(data) == 26397 def test_part2(): assert part2(data) == 288957 def test_part2_simple(): assert part2(["("]) == 1 data = [ "[({(<(())[]>[[{[]{<()<>>", "[(()[<>])]({[<{<<[]>>(", "{([(<{}[<>[]}>{[]{[(<()>", "(((({<>}<{<{<>}{[]{[...
18.285714
32
0.246094
79493ee453662ad087b11f36db6d7dfe18f6af02
6,479
py
Python
scripts/make_thumbnails.py
Pandinosaurus/geojs
c38b3c91a597db84bbc74c2c915bb525a82aedc1
[ "Apache-2.0" ]
365
2015-01-28T12:07:22.000Z
2022-03-27T14:17:10.000Z
scripts/make_thumbnails.py
Pandinosaurus/geojs
c38b3c91a597db84bbc74c2c915bb525a82aedc1
[ "Apache-2.0" ]
699
2015-01-05T21:22:40.000Z
2022-03-30T15:58:55.000Z
scripts/make_thumbnails.py
Pandinosaurus/geojs
c38b3c91a597db84bbc74c2c915bb525a82aedc1
[ "Apache-2.0" ]
74
2015-02-23T14:08:13.000Z
2022-03-17T23:37:05.000Z
#!/usr/bin/env python # NOTE: If this doesn't work, it may be related to a policy in # /etc/ImageMagick-6/policy.xml # Specifically, disable # <policy domain="coder" rights="none" pattern="PS" /> # by removing it or commenting it out. import json import os import psutil import signal import six import subprocess ...
38.111765
93
0.610742
79494094896a8ed29e1d74d2603e605bdb8d2f6b
12,822
py
Python
tornado/CENTER.py
maqg/wcrobot
7d026c1a34362c5434105c27c5bd25f08c6fabe2
[ "MIT" ]
null
null
null
tornado/CENTER.py
maqg/wcrobot
7d026c1a34362c5434105c27c5bd25f08c6fabe2
[ "MIT" ]
null
null
null
tornado/CENTER.py
maqg/wcrobot
7d026c1a34362c5434105c27c5bd25f08c6fabe2
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import json import sys import traceback from core import dbmysql from core.err_code import NO_AUTH_SKEY, UNACCP_PARAS, SYSCALL_ERR, OCT_SUCCESS from core.log import ERROR, DEBUG, INFO from models.Common import DEFAULT_ACCOUNT_ID from utils.commonUtil import getUuid, isSystem...
25.339921
91
0.685073
7949415fe15386852d43de95c7f2bc04e9365f91
2,487
py
Python
samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py
chanjarster/openapi-generator
f92f8f1e58c59a429295509d8c5df32b100cde22
[ "Apache-2.0" ]
null
null
null
samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py
chanjarster/openapi-generator
f92f8f1e58c59a429295509d8c5df32b100cde22
[ "Apache-2.0" ]
null
null
null
samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py
chanjarster/openapi-generator
f92f8f1e58c59a429295509d8c5df32b100cde22
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
22.00885
174
0.618416
79494260afb9153a1f9d94dd9508adb533b44866
2,619
py
Python
recepmod/tests/test_Main.py
thanatosmin/FcgR-binding
db54bff479d326b41c74a78d3ca2755a8b7fc7e6
[ "MIT" ]
1
2019-08-22T14:56:30.000Z
2019-08-22T14:56:30.000Z
recepmod/tests/test_Main.py
meyer-lab/FcgR-binding
db54bff479d326b41c74a78d3ca2755a8b7fc7e6
[ "MIT" ]
32
2017-01-11T15:50:20.000Z
2019-08-25T19:04:56.000Z
recepmod/tests/test_Main.py
thanatosmin/FcgR-binding
db54bff479d326b41c74a78d3ca2755a8b7fc7e6
[ "MIT" ]
1
2018-11-21T22:33:54.000Z
2018-11-21T22:33:54.000Z
import random import unittest import numpy as np from scipy.stats import norm from ..StoneModel import StoneModel, ReqFuncSolver, logpdf_sum, StoneMod def get_random_vars(): kai = random.random() kx = random.random() vi = random.randint(1, 30) R = random.random() Li = random.random() return (k...
30.811765
101
0.635739
7949430ebebb1f1280aa46ae43271742c2c75b37
10,604
py
Python
api/config.py
nitheesh-aot/queue-management
f36fd23d92cd1d49fb6fa7f57f799cfa62a1064f
[ "Apache-2.0" ]
null
null
null
api/config.py
nitheesh-aot/queue-management
f36fd23d92cd1d49fb6fa7f57f799cfa62a1064f
[ "Apache-2.0" ]
null
null
null
api/config.py
nitheesh-aot/queue-management
f36fd23d92cd1d49fb6fa7f57f799cfa62a1064f
[ "Apache-2.0" ]
null
null
null
import logging import os import dotenv from pprint import pprint # Load all the environment variables from a .env file located in some directory above. dotenv.load_dotenv(dotenv.find_dotenv()) config = { "production": "config.ProductionConfig", "prod": "config.ProductionConfig", "test": "config.TestConfig...
34.767213
121
0.658902
7949432425259a38de25f612f9502de068eefb6d
2,241
py
Python
tests/io_mod/test_fileloadermixin.py
MarcoJHB/ploomber
4849ef6915572f7934392443b4faf138172b9596
[ "Apache-2.0" ]
2,141
2020-02-14T02:34:34.000Z
2022-03-31T22:43:20.000Z
tests/io_mod/test_fileloadermixin.py
MarcoJHB/ploomber
4849ef6915572f7934392443b4faf138172b9596
[ "Apache-2.0" ]
660
2020-02-06T16:15:57.000Z
2022-03-31T22:55:01.000Z
tests/io_mod/test_fileloadermixin.py
MarcoJHB/ploomber
4849ef6915572f7934392443b4faf138172b9596
[ "Apache-2.0" ]
122
2020-02-14T18:53:05.000Z
2022-03-27T22:33:24.000Z
from unittest.mock import Mock import pytest import pandas as pd from ploomber import DAG from ploomber.tasks import SQLDump, NotebookRunner, PythonCallable from ploomber.products import File def test_unsupported_extension(): task = SQLDump('SELECT * FROM table', File('my_file.json'), ...
27.329268
71
0.561803
79494419a87a7121aa5a7ca9fe0e9b555c373790
492
py
Python
robots/small/strategies/2019/zuta/init.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
5
2018-11-27T15:15:00.000Z
2022-02-10T21:44:13.000Z
robots/small/strategies/2019/zuta/init.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
2
2018-10-20T15:48:40.000Z
2018-11-20T05:11:33.000Z
robots/small/strategies/2019/zuta/init.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
1
2020-02-07T12:44:47.000Z
2020-02-07T12:44:47.000Z
State.PS_veliki=_State(False,name='PS_veliki',shared=True) State.PS_mali=_State(False,name='PS_mali',shared=True) from core.Util import * State.goldenium_activated = _State(0) State.goldenium_picked = _State(0) State.back = _State(0) State.must_stuck = _State(0) def run(): r.conf_set('send_status_interval', 10) State...
24.6
58
0.735772
794944c0bfa6a0364d93e1e619befcdaf173ced1
403
py
Python
omaha_server/omaha/migrations/0030_version_is_critical.py
makar21/omaha-server
b84cdf6e67d9106e7a86b447204de4f82397b019
[ "Apache-2.0" ]
8
2018-06-25T07:20:17.000Z
2021-02-07T20:01:04.000Z
omaha_server/omaha/migrations/0030_version_is_critical.py
makar21/omaha-server
b84cdf6e67d9106e7a86b447204de4f82397b019
[ "Apache-2.0" ]
8
2018-06-22T21:56:27.000Z
2020-06-25T15:22:56.000Z
omaha_server/omaha/migrations/0030_version_is_critical.py
dentalwings/omaha-server
3d8e18c8f4aac4eb16445c0f3160ed1fc2fc8de5
[ "Apache-2.0" ]
11
2019-01-22T01:36:42.000Z
2022-03-09T01:41:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2017-02-28 07:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('omaha', '0029_merge'), ] operations = [ migrations.AddField( model_name='version', name='is...
19.190476
53
0.578164
794946404ed0f55a2ac6b54dc67c2f8afc1a58e0
583
py
Python
accounts/migrations/0018_auto_20201116_1849.py
simplymarco/Sistema-de-Controle-de-Processos-Titulados
f4e3bc7260611b848096d5fbfb1f72be9d440f1f
[ "MIT" ]
null
null
null
accounts/migrations/0018_auto_20201116_1849.py
simplymarco/Sistema-de-Controle-de-Processos-Titulados
f4e3bc7260611b848096d5fbfb1f72be9d440f1f
[ "MIT" ]
null
null
null
accounts/migrations/0018_auto_20201116_1849.py
simplymarco/Sistema-de-Controle-de-Processos-Titulados
f4e3bc7260611b848096d5fbfb1f72be9d440f1f
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2020-11-16 21:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0017_auto_20201112_1823'), ] operations = [ migrations.AddField( model_name='processo', name='pdf', ...
24.291667
73
0.588336
79494776ae44f3d3fe82741d9c341356ed28d775
976
py
Python
addPixel.py
krishna1401/Digital-Image-Processing
47a4da4bef9d08708ac84174b0fcd0ced6a8b5e2
[ "MIT" ]
1
2021-11-28T12:06:11.000Z
2021-11-28T12:06:11.000Z
addPixel.py
krishna1401/Digital-Image-Processing
47a4da4bef9d08708ac84174b0fcd0ced6a8b5e2
[ "MIT" ]
null
null
null
addPixel.py
krishna1401/Digital-Image-Processing
47a4da4bef9d08708ac84174b0fcd0ced6a8b5e2
[ "MIT" ]
null
null
null
#Program to add a User enter Value to each colour Code of the Image import cv2 import numpy as nm def addValueToPixel(image, value): #Objective: Add Value to each Pixel of an Image #Input: Original Image and Value #Output: Resultant Image height = image.shape[0] width = image.shape[1] ...
25.684211
67
0.561475
794947b03d7f8fd2f236bc5692bc0a8813387359
4,809
py
Python
marvin/triage.py
ryantm/marvin-mk2
9a6670337d258e0e5e0207a88ce72aae2881ed90
[ "MIT" ]
null
null
null
marvin/triage.py
ryantm/marvin-mk2
9a6670337d258e0e5e0207a88ce72aae2881ed90
[ "MIT" ]
null
null
null
marvin/triage.py
ryantm/marvin-mk2
9a6670337d258e0e5e0207a88ce72aae2881ed90
[ "MIT" ]
null
null
null
from datetime import datetime from datetime import timezone from typing import Any from gidgethub.aiohttp import GitHubAPI from marvin import gh_util from marvin import team from marvin.command_router import CommandRouter from marvin.gh_util import set_issue_status command_router = CommandRouter() AWAITING_REVIEWER...
34.847826
89
0.61884
7949482ee6ca52246777e8a80ab3dd857d23495b
7,488
py
Python
dynamodbusermanager/export.py
dacut/dynamodb-user-manager
13fab16bfd5dc4019a73f3dd5fc5f62001d52c0c
[ "Apache-2.0" ]
null
null
null
dynamodbusermanager/export.py
dacut/dynamodb-user-manager
13fab16bfd5dc4019a73f3dd5fc5f62001d52c0c
[ "Apache-2.0" ]
null
null
null
dynamodbusermanager/export.py
dacut/dynamodb-user-manager
13fab16bfd5dc4019a73f3dd5fc5f62001d52c0c
[ "Apache-2.0" ]
null
null
null
"""\ Utility for exporting user/group files to DynamoDB Usage: {argv0} [options] Options: -h | --help Show this usage information. --passwd <filename> | --password <filename> Read password file from <filename> instead of {PASSWD_FILE}. --no-passwd | --no-password Skip reading the ...
29.832669
79
0.588542
794948c61591c26efba63c85529362d49b124e23
5,387
py
Python
GBDT/gbdt.py
cyckun/GBDT_Simple_Tutorial
20a8d1f53453291e55f14b268fa5c4f225d68d1c
[ "Apache-2.0" ]
null
null
null
GBDT/gbdt.py
cyckun/GBDT_Simple_Tutorial
20a8d1f53453291e55f14b268fa5c4f225d68d1c
[ "Apache-2.0" ]
null
null
null
GBDT/gbdt.py
cyckun/GBDT_Simple_Tutorial
20a8d1f53453291e55f14b268fa5c4f225d68d1c
[ "Apache-2.0" ]
null
null
null
""" Created on :2019/03/28 @author: Freeman, feverfc1994 """ import abc import math import logging import pandas as pd from GBDT.decision_tree import Tree from mpyc.statistics import (mean, variance, stdev, pvariance, pstdev, mode, median, median_low, median_high) from mpyc.runtime import ...
39.036232
162
0.597178
794948d95e5e99942c9469bae18505499025d469
9,127
py
Python
owtf/api/handlers/targets.py
Udbhavbisarya23/owtf
27623937677caf975569f8de8af7983ca57611bc
[ "BSD-3-Clause" ]
3
2019-09-28T14:10:02.000Z
2022-01-10T04:04:17.000Z
owtf/api/handlers/targets.py
justdvnsh/owtf
3a543b4eb2a7ad67155eb96dd2d99efbc181498d
[ "BSD-3-Clause" ]
3
2021-03-26T00:33:28.000Z
2022-02-13T21:08:52.000Z
owtf/api/handlers/targets.py
justdvnsh/owtf
3a543b4eb2a7ad67155eb96dd2d99efbc181498d
[ "BSD-3-Clause" ]
2
2019-06-10T02:43:25.000Z
2020-10-31T15:45:57.000Z
""" owtf.api.handlers.targets ~~~~~~~~~~~~~~~~~~~~~~~~~ """ from owtf.api.handlers.base import APIRequestHandler from owtf.lib import exceptions from owtf.lib.exceptions import InvalidTargetReference, APIError from owtf.managers.target import ( add_targets, delete_target, get_target_config_by_id, get_t...
31.912587
113
0.486469
79494a7c77cbde989c2d9348c367accd2829c647
5,638
py
Python
pandas/tests/indexes/multi/test_conversion.py
Nikoleta-v3/pandas
58a59bd606911f11a4f679df18a00cfc25536c30
[ "BSD-3-Clause" ]
1
2018-11-11T22:18:13.000Z
2018-11-11T22:18:13.000Z
pandas/tests/indexes/multi/test_conversion.py
Nikoleta-v3/pandas
58a59bd606911f11a4f679df18a00cfc25536c30
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/indexes/multi/test_conversion.py
Nikoleta-v3/pandas
58a59bd606911f11a4f679df18a00cfc25536c30
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import pytest import numpy as np import pandas as pd import pandas.util.testing as tm from pandas import DataFrame, MultiIndex, date_range from pandas.compat import range def test_tolist(idx): result = idx.tolist() exp = list(idx.values) assert result == exp def test_to_frame()...
32.589595
75
0.581589
79494bf12d4787946448d0e543c2663e098c56d4
2,748
py
Python
web_blog/app.py
Shubhraaaj/Blogging
b57d3bceed2c9ac661f0a3eafc8c2b948a5ee3ce
[ "Apache-2.0" ]
null
null
null
web_blog/app.py
Shubhraaaj/Blogging
b57d3bceed2c9ac661f0a3eafc8c2b948a5ee3ce
[ "Apache-2.0" ]
null
null
null
web_blog/app.py
Shubhraaaj/Blogging
b57d3bceed2c9ac661f0a3eafc8c2b948a5ee3ce
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, request, session, make_response # '__main__ from web_blog.common.database import Database from web_blog.models.blog import Blog from web_blog.models.post import Post from web_blog.models.user import User app = Flask(__name__) app.secret_key = "jose" @app.route('/') def home_...
28.040816
93
0.684498
79494c140d955e52372323f701243f5187695e96
6,515
py
Python
PySimple/page2.py
snehashri08/riscv-config-gui
664c5f01459da27d018815c42a9c718d00248b82
[ "BSD-3-Clause" ]
null
null
null
PySimple/page2.py
snehashri08/riscv-config-gui
664c5f01459da27d018815c42a9c718d00248b82
[ "BSD-3-Clause" ]
null
null
null
PySimple/page2.py
snehashri08/riscv-config-gui
664c5f01459da27d018815c42a9c718d00248b82
[ "BSD-3-Clause" ]
null
null
null
import os import logging import shutil import PySimpleGUI as sg import riscv_config.checker as riscv_config import riscv_config.utils as utils from collections import OrderedDict import ruamel from ruamel.yaml import YAML import yaml as pyyaml import re yaml = YAML(typ="rt") yaml.default_flow_style = False yaml.allow_u...
42.861842
577
0.571911
79494cbf235d939c0e74a62f7b6cf4416e213b72
4,399
py
Python
tool/values.py
ashgeek/MAIAN
ab387e171bf99969676e60a0e5c59de80af15010
[ "MIT" ]
258
2018-03-14T08:50:26.000Z
2020-06-08T14:47:47.000Z
tool/values.py
lazzarello/MAIAN
ab387e171bf99969676e60a0e5c59de80af15010
[ "MIT" ]
29
2018-03-14T16:25:03.000Z
2019-09-16T06:52:43.000Z
tool/values.py
lazzarello/MAIAN
ab387e171bf99969676e60a0e5c59de80af15010
[ "MIT" ]
72
2018-03-14T18:17:31.000Z
2020-05-10T13:30:53.000Z
from web3 import Web3, KeepAliveRPCProvider, IPCProvider import copy from z3 import * # Get value def get_params(param, input): if (param+str(input)) in MyGlobals.st: return MyGlobals.st[param+str(input)] else: print('need to set the parameters: %s ' % (param+str(input) ) ) exit(4) ...
24.713483
100
0.635599
79494dc5785997045f693d3e31e1f79ac2e7eb15
4,520
py
Python
XBlock Integration Files/xdjangobb/xblock/lib/python2.7/site-packages/xdjangobb/xdjangobb.py
DANCEcollaborative/forum-xblock
fe8a062b4e45966a5faa5282d85799be479ec28a
[ "MIT" ]
7
2016-02-09T06:43:14.000Z
2021-03-12T06:07:50.000Z
XBlock Integration Files/xdjangobb/xblock/lib/python2.7/site-packages/xdjangobb/xdjangobb.py
DANCEcollaborative/forum-xblock
fe8a062b4e45966a5faa5282d85799be479ec28a
[ "MIT" ]
null
null
null
XBlock Integration Files/xdjangobb/xblock/lib/python2.7/site-packages/xdjangobb/xdjangobb.py
DANCEcollaborative/forum-xblock
fe8a062b4e45966a5faa5282d85799be479ec28a
[ "MIT" ]
null
null
null
"""TO-DO: Write a description of what this XBlock is.""" import pkg_resources from xblock.core import XBlock from xblock.fields import Scope, Integer from xblock.fragment import Fragment import requests import re class DjangoBBXBlock(XBlock): """ TO-DO: document what your XBlock does. """ # Fields a...
37.355372
103
0.595796
79494e214fe7ff1fa6a201b8508d65096d5a9d44
795
py
Python
glamkit_collections/contrib/work_creator/plugins/film/migrations/0004_auto_20161130_1109.py
ic-labs/glamkit-collections
a99c64f1d6af2d900f2687dd4382404d67d559bb
[ "MIT" ]
52
2016-09-13T03:50:58.000Z
2022-02-23T16:25:08.000Z
glamkit_collections/contrib/work_creator/plugins/film/migrations/0004_auto_20161130_1109.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
304
2016-08-11T14:17:30.000Z
2020-07-22T13:35:18.000Z
glamkit_collections/contrib/work_creator/plugins/film/migrations/0004_auto_20161130_1109.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
12
2016-09-21T18:46:35.000Z
2021-02-15T19:37:50.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('gk_collections_film', '0003_auto_20161117_1801'), ] operations = [ migrations.AlterField( ...
30.576923
149
0.659119
79494f57f7aa0d30b8d93397dd6684b1c73f4638
28,681
py
Python
libartipy/pointcloud/pypcd.py
Artisense-ai/libartipy
7a6a7736637c106e7e9c6763ec8c1dea64db4b01
[ "MIT" ]
5
2021-06-15T13:01:51.000Z
2021-12-04T04:26:08.000Z
libartipy/pointcloud/pypcd.py
Artisense-ai/libartipy
7a6a7736637c106e7e9c6763ec8c1dea64db4b01
[ "MIT" ]
null
null
null
libartipy/pointcloud/pypcd.py
Artisense-ai/libartipy
7a6a7736637c106e7e9c6763ec8c1dea64db4b01
[ "MIT" ]
3
2021-06-18T10:37:04.000Z
2021-11-15T05:55:29.000Z
""" Read and write PCL .pcd files in python. dimatura@cmu.edu, 2013-2018 - TODO better API for wacky operations. - TODO add a cli for common operations. - TODO deal properly with padding - TODO deal properly with multicount fields - TODO better support for rgb nonsense """ import re import struct import copy # reads...
34.764848
113
0.570726
79495099d22b886b8d0bea2510d554b297f1a131
5,572
py
Python
srht/blueprints/oauth.py
prplecake/legacy.sr.ht
191ba17ab59ffc9a3818712ac976e37a734f7cdc
[ "MIT" ]
null
null
null
srht/blueprints/oauth.py
prplecake/legacy.sr.ht
191ba17ab59ffc9a3818712ac976e37a734f7cdc
[ "MIT" ]
8
2021-05-15T20:33:08.000Z
2021-06-02T04:39:23.000Z
srht/blueprints/oauth.py
prplecake/legacy.sr.ht
191ba17ab59ffc9a3818712ac976e37a734f7cdc
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template, abort, request, redirect, url_for, send_file, Response from flask_login import current_user, login_user, logout_user from srht.database import db from srht.objects import * from srht.common import * from srht.config import _cfg from datetime import datetime, timedelta, tim...
35.265823
108
0.690237
79495100e222a9cec881385415621e9557ed6f8f
1,875
py
Python
gui/data_ingestion/migrations/0006_auto_20151217_1049.py
alpha-zou/TAMP
91f0e7b08e2d6a03b541b07dd4768bf5222044dd
[ "MIT" ]
1
2020-03-20T06:52:07.000Z
2020-03-20T06:52:07.000Z
gui/data_ingestion/migrations/0006_auto_20151217_1049.py
alpha-zou/TAMP
91f0e7b08e2d6a03b541b07dd4768bf5222044dd
[ "MIT" ]
1
2021-11-12T15:20:56.000Z
2021-11-12T15:20:56.000Z
gui/data_ingestion/migrations/0006_auto_20151217_1049.py
alpha-zou/TAMP
91f0e7b08e2d6a03b541b07dd4768bf5222044dd
[ "MIT" ]
3
2019-03-10T19:56:17.000Z
2020-03-20T07:00:10.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('data_ingestion', '0005_auto_20151217_0751'), ] operations = [ migrations.AlterField( ...
42.613636
409
0.6112
7949526a759e5c4ae2829522a9635915c2df8346
20
py
Python
tests/unit/test_modulegraph/testpkg-regr7/script.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
9,267
2015-01-01T04:08:45.000Z
2022-03-31T11:42:38.000Z
tests/unit/test_modulegraph/testpkg-regr7/script.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
5,150
2015-01-01T12:09:56.000Z
2022-03-31T18:06:12.000Z
tests/unit/test_modulegraph/testpkg-regr7/script.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
2,101
2015-01-03T10:25:27.000Z
2022-03-30T11:04:42.000Z
import pkg.mod as m
10
19
0.75
794952949420585d2ee169eb3494d5a1f7c0d3b4
136
py
Python
djparakeet/apps.py
misli/django-parakeet
0ae9af7a638f92fd51845bc10a3b72b8d34194a0
[ "BSD-2-Clause" ]
12
2016-11-23T20:26:56.000Z
2021-05-27T02:23:35.000Z
djparakeet/apps.py
misli/django-parakeet
0ae9af7a638f92fd51845bc10a3b72b8d34194a0
[ "BSD-2-Clause" ]
4
2019-09-23T11:45:45.000Z
2022-02-11T03:39:11.000Z
djparakeet/apps.py
misli/django-parakeet
0ae9af7a638f92fd51845bc10a3b72b8d34194a0
[ "BSD-2-Clause" ]
2
2017-07-07T12:31:40.000Z
2019-09-23T11:22:52.000Z
from __future__ import unicode_literals from django.apps import AppConfig class DjparakeetConfig(AppConfig): name = 'djparakeet'
17
39
0.801471
794952c361662f3a7530689773eef06eafcabcb0
6,976
py
Python
Lib/objc/_CoreDAV.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
701
2018-10-22T11:54:09.000Z
2022-03-31T14:39:30.000Z
Lib/objc/_CoreDAV.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
229
2018-10-24T09:15:31.000Z
2021-12-24T16:51:37.000Z
Lib/objc/_CoreDAV.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
131
2018-11-25T18:33:03.000Z
2022-03-24T03:18:07.000Z
""" Classes from the 'CoreDAV' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None CoreDAVXMLElementGenerator = _Class("CoreDAVXMLElementGenera...
50.550725
87
0.856795
7949530bcecc894df11ffb30154714a4e277e1c9
23,314
py
Python
wisdem/drivetrainse/layout.py
johnjasa/WISDEM
a4571e71cb5b9869c81790f8abb1bb7fba8fdb02
[ "Apache-2.0" ]
81
2015-01-19T18:17:31.000Z
2022-03-17T07:14:43.000Z
wisdem/drivetrainse/layout.py
johnjasa/WISDEM
a4571e71cb5b9869c81790f8abb1bb7fba8fdb02
[ "Apache-2.0" ]
159
2015-02-05T01:54:52.000Z
2022-03-30T22:44:39.000Z
wisdem/drivetrainse/layout.py
johnjasa/WISDEM
a4571e71cb5b9869c81790f8abb1bb7fba8fdb02
[ "Apache-2.0" ]
70
2015-01-02T15:22:39.000Z
2022-02-11T00:33:07.000Z
#!/usr/bin/env python # encoding: utf-8 import numpy as np import openmdao.api as om import wisdem.commonse.utilities as util from scipy.special import ellipeinc from wisdem.commonse.cross_sections import IBeam def rod_prop(s, Di, ti, rho): L = s.max() - s.min() def equal_pts(xi): if len(xi) < len(s...
40.058419
118
0.581282
794954d32137a650cc7b5bf9ac8e657eeafcd06d
8,211
py
Python
sdk/storage/azure-storage-file-share/tests/test_handle.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/storage/azure-storage-file-share/tests/test_handle.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/storage/azure-storage-file-share/tests/test_handle.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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. # --------------------------------------------------------------------...
37.83871
99
0.650225
79495516d3d13abcd312f18b3e07647b058c417a
837
py
Python
recipes/Python/81984_Class_Adoption/recipe-81984.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/81984_Class_Adoption/recipe-81984.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/81984_Class_Adoption/recipe-81984.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
def adopt_class(klass, obj, *args, **kwds): 'reclass obj to inherit klass; call __init__ with *args, **kwds' classname = '%s_%s' % (klass.__name__, obj.__class__.__name__) obj.__class__ = new.classobj(classname, (klass, obj.__class__), {}) klass.__init__(obj, *args, **kwds) def demo(): class Sand...
31
74
0.60454
79495605c0ef4436efbeb18efe25a05aada617b6
2,338
py
Python
world/mission.py
remremrem/EV-Tribute
c7dd412eedad4b8eba0cf2d4c95d539d4b80c852
[ "MIT" ]
1
2015-06-23T03:48:03.000Z
2015-06-23T03:48:03.000Z
world/mission.py
remremrem/EV-Tribute
c7dd412eedad4b8eba0cf2d4c95d539d4b80c852
[ "MIT" ]
null
null
null
world/mission.py
remremrem/EV-Tribute
c7dd412eedad4b8eba0cf2d4c95d539d4b80c852
[ "MIT" ]
null
null
null
import missioncommander class Mission: def __init__(self, data): self.idnum = data.get("idnum") self.title = data.get("title") self.mtype = data.get("mtype") self.start = data.get("start") self.finish = data.get("finish") self.agency = data.get("agency") self...
38.966667
50
0.581694
794956be76b9b4404613dc8d5014ef727a2548bf
4,105
py
Python
test/test_odict.py
droope/netlib
a3107474f9f336f28dc195f1406a4e035aa51c84
[ "MIT" ]
null
null
null
test/test_odict.py
droope/netlib
a3107474f9f336f28dc195f1406a4e035aa51c84
[ "MIT" ]
null
null
null
test/test_odict.py
droope/netlib
a3107474f9f336f28dc195f1406a4e035aa51c84
[ "MIT" ]
null
null
null
from netlib import odict import tutils class TestODict: def setUp(self): self.od = odict.ODict() def test_str_err(self): h = odict.ODict() tutils.raises(ValueError, h.__setitem__, "key", "foo") def test_dictToHeader1(self): self.od.add("one", "uno") self.od.add("t...
28.310345
70
0.503045
794956d0c37bace0066b09d1821415fa813dc738
5,568
py
Python
wrappers/tensorflow/example5 - denoise.py
NobuoTsukamoto/librealsense
bc0910f8ba3c33307ff247a29dd2b9e9ef1b269d
[ "Apache-2.0" ]
6,457
2016-01-21T03:56:07.000Z
2022-03-31T11:57:15.000Z
wrappers/tensorflow/example5 - denoise.py
NobuoTsukamoto/librealsense
bc0910f8ba3c33307ff247a29dd2b9e9ef1b269d
[ "Apache-2.0" ]
8,393
2016-01-21T09:47:28.000Z
2022-03-31T22:21:42.000Z
wrappers/tensorflow/example5 - denoise.py
NobuoTsukamoto/librealsense
bc0910f8ba3c33307ff247a29dd2b9e9ef1b269d
[ "Apache-2.0" ]
4,874
2016-01-21T09:20:08.000Z
2022-03-31T15:18:00.000Z
import pyrealsense2 as rs import numpy as np import cv2 from tensorflow import keras import time, sys # Configure depth and color streams pipeline = rs.pipeline() config = rs.config() config.enable_stream(rs.stream.depth, 848, 480, rs.format.z16, 30) config.enable_stream(rs.stream.infrared, 1, 848, 480, rs.format.y8, ...
36.155844
124
0.598958
7949577d9aee12cfd5cc307b16f5fc6d0c6206e3
412
py
Python
tests/pyre.pkg/config/configurator.py
rtburns-jpl/pyre
ffc4fc1b2936e355f709d084eb4055954960b3a2
[ "BSD-3-Clause" ]
null
null
null
tests/pyre.pkg/config/configurator.py
rtburns-jpl/pyre
ffc4fc1b2936e355f709d084eb4055954960b3a2
[ "BSD-3-Clause" ]
1
2021-06-10T23:42:13.000Z
2021-06-10T23:42:13.000Z
tests/pyre.pkg/config/configurator.py
jlmaurer/pyre
6af38a83621d7d6228d147b4bb94f97fbb10f6e2
[ "BSD-3-Clause" ]
2
2020-08-31T18:07:52.000Z
2021-12-10T08:54:39.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2020 all rights reserved # """ Sanity check: verify that the configurator factory is accessible """ def test(): # access the package import pyre # and return the configurator built by the executive return...
14.714286
64
0.667476
79495994e36f58dbc41b2b957f3cee7a91d51e4d
5,097
py
Python
python/oneflow/test/modules/test_sub.py
LiPengze97/oneflow
1c1d2d3faa1c02d20e009046a290cf1095ee12e0
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_sub.py
LiPengze97/oneflow
1c1d2d3faa1c02d20e009046a290cf1095ee12e0
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_sub.py
LiPengze97/oneflow
1c1d2d3faa1c02d20e009046a290cf1095ee12e0
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
35.395833
88
0.620954
794959a0687f981afccc92ffcd73474a32a38538
3,786
py
Python
tap_list_providers/parsers/thenook.py
it-avenger/hsv-beer
039611bbcf260ad24c9a829fca0af96b4c7da014
[ "Apache-2.0" ]
null
null
null
tap_list_providers/parsers/thenook.py
it-avenger/hsv-beer
039611bbcf260ad24c9a829fca0af96b4c7da014
[ "Apache-2.0" ]
6
2020-08-03T09:50:01.000Z
2021-06-10T18:17:28.000Z
tap_list_providers/parsers/thenook.py
cartacode/hsv_dot_beer
039611bbcf260ad24c9a829fca0af96b4c7da014
[ "Apache-2.0" ]
null
null
null
"""HTML scraper for The Nook""" from decimal import Decimal import logging import os from bs4 import BeautifulSoup import requests import configurations from django.core.exceptions import ImproperlyConfigured, AppRegistryNotReady # boilerplate code necessary for launching outside manage.py try: from ....
32.637931
85
0.588484
79495a9d94443bf9897dd4195fa123d37b177244
762
py
Python
generators/skip.py
CodyKochmann/generators
a637bf9cb5e48251aa800753ba0aa79b3ca18dcf
[ "MIT" ]
6
2017-12-21T04:32:35.000Z
2022-02-15T07:06:45.000Z
generators/skip.py
CodyKochmann/generators
a637bf9cb5e48251aa800753ba0aa79b3ca18dcf
[ "MIT" ]
21
2017-09-08T13:02:18.000Z
2020-03-28T19:10:01.000Z
generators/skip.py
CodyKochmann/generators
a637bf9cb5e48251aa800753ba0aa79b3ca18dcf
[ "MIT" ]
2
2018-09-30T16:16:10.000Z
2019-05-06T02:16:11.000Z
# -*- coding: utf-8 -*- # @Author: Cody Kochmann # @Date: 2018-02-17 10:40:09 # @Last Modified by: Cody Kochmann # @Last Modified time: 2018-02-17 11:59:23 from itertools import islice def skip(pipe, how_many=1): ''' this is a helper function that allows you to skip x number of items in a pipe. its ba...
25.4
75
0.632546
79495b02cafecb3fedc0a62f7079efa01338e191
438
py
Python
examples/auto_connect.py
stickpin/pyatv
cb45bf5d303593a4e0be05215f21140e2fbbb03d
[ "MIT" ]
null
null
null
examples/auto_connect.py
stickpin/pyatv
cb45bf5d303593a4e0be05215f21140e2fbbb03d
[ "MIT" ]
null
null
null
examples/auto_connect.py
stickpin/pyatv
cb45bf5d303593a4e0be05215f21140e2fbbb03d
[ "MIT" ]
null
null
null
"""Simple example that connects to a device with autodiscover.""" from pyatv import helpers # Method that is dispatched by the asyncio event loop async def print_what_is_playing(atv): """Print what is playing for the discovered device.""" playing = await atv.metadata.playing() print('Currently playing:')...
27.375
65
0.762557
79495bce3c41b8e34fdaa67622cac6da4443a55f
211
py
Python
Recursion/CodingNinjas/15_replace_pi.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
Recursion/CodingNinjas/15_replace_pi.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
Recursion/CodingNinjas/15_replace_pi.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
def replacePi(s): if len(s)==1 or len(s)==0: return s if s.startswith("pi"): return "3.14" + replacePi(s[2:]) else: return s[0]+ replacePi(s[1:]) print(replacePi("pippi"))
17.583333
40
0.526066
79495cbef9be30d277aaf21f7705033679fce11a
663
py
Python
0623_session/project/blog/migrations/0001_initial.py
olzlgur/Like_lion
ac55cd5a0dd81863cb9481b1c7635d629d409660
[ "MIT" ]
null
null
null
0623_session/project/blog/migrations/0001_initial.py
olzlgur/Like_lion
ac55cd5a0dd81863cb9481b1c7635d629d409660
[ "MIT" ]
null
null
null
0623_session/project/blog/migrations/0001_initial.py
olzlgur/Like_lion
ac55cd5a0dd81863cb9481b1c7635d629d409660
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-23 08:43 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Blog', fields=[ ('id', models.BigAutoField(...
26.52
117
0.562594
79495e072504b3a9a4fdbdc75efb447f2d53d9e9
1,794
py
Python
setup.py
yottahawk/edalize
f656a6897740359605a5270566359bd2739fe32e
[ "BSD-2-Clause" ]
2
2020-01-14T03:14:55.000Z
2022-02-18T16:55:36.000Z
setup.py
yottahawk/edalize
f656a6897740359605a5270566359bd2739fe32e
[ "BSD-2-Clause" ]
null
null
null
setup.py
yottahawk/edalize
f656a6897740359605a5270566359bd2739fe32e
[ "BSD-2-Clause" ]
null
null
null
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = "edalize", version = "0.1.6", packages=['edalize'], package_data = {'edalize' : [ 'templates/icestorm/icestorm-makefile.j2', 'templates/spyglass/...
35.88
111
0.625975
79496058161f29136c35f9bab2fc8957d30eae38
15,445
py
Python
test/test_cli.py
petermarko/dxf
561433b69be585138c06d7b34e669c868495887f
[ "MIT" ]
null
null
null
test/test_cli.py
petermarko/dxf
561433b69be585138c06d7b34e669c868495887f
[ "MIT" ]
null
null
null
test/test_cli.py
petermarko/dxf
561433b69be585138c06d7b34e669c868495887f
[ "MIT" ]
null
null
null
import os import sys import errno import time import hashlib import requests.exceptions import pytest import tqdm import dxf.main # pylint: disable=no-member def test_empty(dxf_main, capsys): assert dxf.main.doit(['list-repos'], dxf_main) == 0 out, err = capsys.readouterr() assert out == "" assert err...
41.743243
135
0.626093
794960fd904eac97bfa24f0ddeaaa222aea51a74
2,248
py
Python
waad/utils/asset.py
ANSSI-FR/WAAD
276820be3e1aa45c52351b481105ab95a069b3e0
[ "BSD-2-Clause" ]
13
2021-04-08T15:59:57.000Z
2022-03-28T14:04:23.000Z
waad/utils/asset.py
ANSSI-FR/WAAD
276820be3e1aa45c52351b481105ab95a069b3e0
[ "BSD-2-Clause" ]
null
null
null
waad/utils/asset.py
ANSSI-FR/WAAD
276820be3e1aa45c52351b481105ab95a069b3e0
[ "BSD-2-Clause" ]
1
2022-03-08T19:50:36.000Z
2022-03-08T19:50:36.000Z
"""This module implements the `Asset` objects and related.""" from abc import ABC, abstractmethod from typing import Any, Optional class Asset(ABC): """This class defines a `Asset` and is abstract.""" @abstractmethod def to_tuple(self): pass @abstractmethod def __eq__(self, obj: Any): ...
25.83908
119
0.619217
794961d384fb2fa789c053d776e1b122ed780215
12,176
py
Python
Python/example/higgs.py
jrade/JrBoost
427300477b5afc4e36896a6e028095d1de9e38d3
[ "MIT" ]
1
2021-04-14T16:13:14.000Z
2021-04-14T16:13:14.000Z
Python/example/higgs.py
jrade/JrBoost
427300477b5afc4e36896a6e028095d1de9e38d3
[ "MIT" ]
null
null
null
Python/example/higgs.py
jrade/JrBoost
427300477b5afc4e36896a6e028095d1de9e38d3
[ "MIT" ]
null
null
null
# Copyright 2021 Johan Rade <johan.rade@gmail.com>. # Distributed under the MIT license. # (See accompanying file License.txt or copy at https://opensource.org/licenses/MIT) import datetime, gc, math, os, random, time import numpy as np import pandas as pd import jrboost PROFILE = jrboost.PROFILE #----...
37.235474
178
0.566606
7949625c3dfa46c51b856a51efc1b744225c4c0e
1,667
py
Python
bfgame/effects/healing.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bfgame/effects/healing.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bfgame/effects/healing.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from core.effects.base import Effect from bflib import effects from bflib.dice import D6 from core.contexts import Action from core.messaging import StringBuilder, Actor, Verb class Healing(Effect): name = "Healing" base_effect = effects.Healing """ Every round, recover health """ def __init_...
27.783333
85
0.59928
7949631986e9af50b1db97a2f305fb69c493f976
11,022
py
Python
salt/modules/mine.py
iMilnb/saltstack
31033aac6bde314f544db8b7781470325c205549
[ "Apache-2.0" ]
1
2020-06-16T05:47:58.000Z
2020-06-16T05:47:58.000Z
salt/modules/mine.py
iMilnb/saltstack
31033aac6bde314f544db8b7781470325c205549
[ "Apache-2.0" ]
null
null
null
salt/modules/mine.py
iMilnb/saltstack
31033aac6bde314f544db8b7781470325c205549
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The function cache system allows for data to be stored on the master so it can be easily read by other minions ''' # Import python libs import copy import logging # Import salt libs import salt.crypt import salt.payload import salt.utils.network __proxyenabled__ = ['*'] log = logging.get...
32.609467
120
0.561786
794964a23d9acd2708f173175001356b8216ca7f
282
py
Python
epikjjh/baekjoon/10769.py
15ers/Solve_Naively
23ee4a3aedbedb65b9040594b8c9c6d9cff77090
[ "MIT" ]
3
2019-05-19T13:44:39.000Z
2019-07-03T11:15:20.000Z
epikjjh/baekjoon/10769.py
15ers/Solve_Naively
23ee4a3aedbedb65b9040594b8c9c6d9cff77090
[ "MIT" ]
7
2019-05-06T02:37:26.000Z
2019-06-29T07:28:02.000Z
epikjjh/baekjoon/10769.py
15ers/Solve_Naively
23ee4a3aedbedb65b9040594b8c9c6d9cff77090
[ "MIT" ]
1
2019-07-28T06:24:54.000Z
2019-07-28T06:24:54.000Z
import sys input = sys.stdin.readline().rstrip target = input() happy = ":-)" sad = ":-(" happy_num = target.count(happy) sad_num = target.count(sad) print("none" if not happy_num and not sad_num else "unsure" if happy_num==sad_num else "happy" if happy_num>sad_num else "sad")
21.692308
127
0.705674
794964d973d9c05a818fbb3d3b21495fe95f4dab
6,104
py
Python
qa/rpc-tests/proxy_test.py
rushiraj111/timicoin-test
246fa8b1e249912afd97c77dfad36fe92328c644
[ "MIT" ]
null
null
null
qa/rpc-tests/proxy_test.py
rushiraj111/timicoin-test
246fa8b1e249912afd97c77dfad36fe92328c644
[ "MIT" ]
1
2018-09-03T20:27:15.000Z
2018-09-03T20:31:21.000Z
qa/rpc-tests/proxy_test.py
rushiraj111/timicoin-test
246fa8b1e249912afd97c77dfad36fe92328c644
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import socket import traceback, sys from binascii import hexlify import time, os from socks5 import Socks5Conf...
41.808219
145
0.653342
79496505a88259829a4e1eb38d7a88dd9a9be8d0
13,437
py
Python
landshark/dataprocess.py
basaks/landshark
87ec1fada74addd58f37bdaf3b1adbc10b1544b2
[ "Apache-2.0" ]
null
null
null
landshark/dataprocess.py
basaks/landshark
87ec1fada74addd58f37bdaf3b1adbc10b1544b2
[ "Apache-2.0" ]
null
null
null
landshark/dataprocess.py
basaks/landshark
87ec1fada74addd58f37bdaf3b1adbc10b1544b2
[ "Apache-2.0" ]
null
null
null
"""Process training and query data.""" # Copyright 2019 CSIRO (Data61) # # 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 b...
32.693431
87
0.668006
7949654b40e5a4dee405c1182816a5f4363f0f87
38,812
py
Python
src/black/linegen.py
thomasfulton/black
448c06e51080ea5326447667b05136de6e79fb69
[ "MIT" ]
1
2021-09-11T04:35:10.000Z
2021-09-11T04:35:10.000Z
src/black/linegen.py
thomasfulton/black
448c06e51080ea5326447667b05136de6e79fb69
[ "MIT" ]
2
2021-05-28T13:32:29.000Z
2021-05-28T13:32:49.000Z
src/black/linegen.py
thomasfulton/black
448c06e51080ea5326447667b05136de6e79fb69
[ "MIT" ]
null
null
null
""" Generating lines of code. """ from functools import partial, wraps import sys from typing import Collection, Iterator, List, Optional, Set, Union from dataclasses import dataclass, field from black.nodes import WHITESPACE, STATEMENT, STANDALONE_COMMENT from black.nodes import ASSIGNMENTS, OPENING_BRACKETS, CLOSIN...
39.403046
88
0.627976
794965584027a65acbbc1b499c6545ac4463891c
333
py
Python
survey/migrations/0002_survey_template.py
TheWITProject/MentorApp
2f08b87a7cde6d180e16d6f37d0b8019b8361638
[ "MIT" ]
null
null
null
survey/migrations/0002_survey_template.py
TheWITProject/MentorApp
2f08b87a7cde6d180e16d6f37d0b8019b8361638
[ "MIT" ]
65
2020-02-04T22:31:07.000Z
2022-01-13T02:39:19.000Z
survey/migrations/0002_survey_template.py
TheWITProject/MentorApp
2f08b87a7cde6d180e16d6f37d0b8019b8361638
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("survey", "0001_initial")] operations = [ migrations.AddField( model_name="survey", name="template", field=models.CharField(max_length=255, null=True, blank=True) ...
22.2
111
0.63964
794965aaa59fcd8c9cdade9300f0aa42839f5368
3,042
py
Python
boto3_type_annotations/boto3_type_annotations/datasync/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations/boto3_type_annotations/datasync/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations/boto3_type_annotations/datasync/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from typing import Optional from botocore.client import BaseClient from typing import Dict from typing import Union from botocore.paginate import Paginator from botocore.waiter import Waiter from typing import List class Client(BaseClient): def can_paginate(self, operation_name: str = None): pass def...
31.360825
181
0.660421
794967db1c2a4b6f417afe4a9479944d0141ab7e
17,367
py
Python
pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
erwincoumans/pigweed
d1669a85515eda45e2925158aef6e089af28923c
[ "Apache-2.0" ]
1
2020-12-19T19:42:46.000Z
2020-12-19T19:42:46.000Z
pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
erwincoumans/pigweed
d1669a85515eda45e2925158aef6e089af28923c
[ "Apache-2.0" ]
3
2021-03-11T06:53:56.000Z
2022-02-13T21:59:25.000Z
pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
erwincoumans/pigweed
d1669a85515eda45e2925158aef6e089af28923c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2020 The Pigweed 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
31.235612
80
0.640237