hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
3bf586356848feee7bc7a80453f67ea87c8828d1
124
py
Python
scan/admin.py
Overexm/bar_chart
c4a2072a0d85a01606b606bbb4a6309668401522
[ "PostgreSQL", "Unlicense" ]
null
null
null
scan/admin.py
Overexm/bar_chart
c4a2072a0d85a01606b606bbb4a6309668401522
[ "PostgreSQL", "Unlicense" ]
null
null
null
scan/admin.py
Overexm/bar_chart
c4a2072a0d85a01606b606bbb4a6309668401522
[ "PostgreSQL", "Unlicense" ]
null
null
null
from django.contrib import admin # Register your models here. from . models import Accounts admin.site.register(Accounts)
17.714286
32
0.798387
80eb9d3837f2d98422cf9a9fe9144aeb666e1b56
1,577
py
Python
src/sim_com.py
HumphreyHao/NBA-analyse
e4c7f18bc048fd3a0fa4636e890b24c6200573c8
[ "MIT" ]
null
null
null
src/sim_com.py
HumphreyHao/NBA-analyse
e4c7f18bc048fd3a0fa4636e890b24c6200573c8
[ "MIT" ]
2
2021-03-31T19:48:07.000Z
2021-12-13T20:42:16.000Z
src/sim_com.py
HumphreyHao/NBA-analyse
e4c7f18bc048fd3a0fa4636e890b24c6200573c8
[ "MIT" ]
null
null
null
import numpy as np import scipy.stats import pandas as pd from scipy.stats import entropy from numpy.linalg import norm def JSD(P, Q): _P = P / norm(P, ord=1) _Q = Q / norm(Q, ord=1) _M = 0.5 * (_P + _Q) return 0.5 * (entropy(_P, _M) + entropy(_Q, _M)) def jensen_shannon_distance(p, q): """ ...
22.855072
143
0.667724
0133be6f5ef78b391022476c3456d2519ee914b1
285
py
Python
discord/ui/__init__.py
Ryomen-Sukuna/discord.py
0bcb0d0e3ce395d42a5b1dae61b0090791ee018d
[ "MIT" ]
1
2022-03-12T02:43:29.000Z
2022-03-12T02:43:29.000Z
discord/ui/__init__.py
Ryomen-Sukuna/discord.py
0bcb0d0e3ce395d42a5b1dae61b0090791ee018d
[ "MIT" ]
1
2022-02-19T18:25:19.000Z
2022-02-19T18:25:19.000Z
discord/ui/__init__.py
Ryomen-Sukuna/discord.py
0bcb0d0e3ce395d42a5b1dae61b0090791ee018d
[ "MIT" ]
1
2022-02-11T14:39:46.000Z
2022-02-11T14:39:46.000Z
""" discord.ui ~~~~~~~~~~~ Bot UI Kit helper for the Discord API :copyright: (c) 2015-present Rapptz :license: MIT, see LICENSE for more details. """ from .view import * from .modal import * from .item import * from .button import * from .select import * from .text_input import *
15.833333
44
0.684211
10aa13675775c0f8c9d5d7c4656ef130bb8726c6
3,284
py
Python
shakemap/utils/dataframe.py
uofuseismo/shakemap
3c0d2d0e84c642491946c8819c71644d3b24d4de
[ "CC0-1.0" ]
null
null
null
shakemap/utils/dataframe.py
uofuseismo/shakemap
3c0d2d0e84c642491946c8819c71644d3b24d4de
[ "CC0-1.0" ]
null
null
null
shakemap/utils/dataframe.py
uofuseismo/shakemap
3c0d2d0e84c642491946c8819c71644d3b24d4de
[ "CC0-1.0" ]
null
null
null
# stdlib imports import json import re import string import time # third party imports import pandas as pd import numpy as np from lxml import etree from openpyxl import load_workbook, utils COMPONENTS = ['GREATER_OF_TWO_HORIZONTALS', 'GEOMETRIC_MEAN', 'ARITHMETIC MEAN'] CHANNEL_PATTERNS = ['^[H,B][H,L,...
34.93617
79
0.609927
4a24cca7dc3f7b5da5d1ab460e9dfd83ff805ad9
4,816
py
Python
dashboard/dashboard/pinpoint/handlers/isolate.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
1
2021-07-04T03:26:43.000Z
2021-07-04T03:26:43.000Z
dashboard/dashboard/pinpoint/handlers/isolate.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/pinpoint/handlers/isolate.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 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. """Service for tracking isolates and looking them up by builder and commit. An isolate is a way to describe the dependencies of a specific build. More about...
32.540541
82
0.697051
03831570941f8152a1b3ac3df7259a9c40276664
779
py
Python
package/streamsx/toolkits/__init__.py
IBMStreams/pypi.streamsx.toolkits
ac15f441bea91f2cec98b6c1e264b320d06f449b
[ "Apache-2.0" ]
null
null
null
package/streamsx/toolkits/__init__.py
IBMStreams/pypi.streamsx.toolkits
ac15f441bea91f2cec98b6c1e264b320d06f449b
[ "Apache-2.0" ]
4
2019-10-17T12:17:19.000Z
2020-10-06T09:02:44.000Z
package/streamsx/toolkits/__init__.py
IBMStreams/pypi.streamsx.toolkits
ac15f441bea91f2cec98b6c1e264b320d06f449b
[ "Apache-2.0" ]
1
2020-02-24T10:51:43.000Z
2020-02-24T10:51:43.000Z
# coding=utf-8 # Licensed Materials - Property of IBM # Copyright IBM Corp. 2019 """ Overview ++++++++ Provides provides some utility functions to work with SPL toolkits, for example for use in a Python Notebook. """ __version__='1.3.1' __all__ = ['create_keystore', 'extend_keystore', 'c...
27.821429
112
0.695764
b4029358576843db40ff507346bde29533df2961
144
py
Python
design_baselines/__init__.py
young-geng/design-baselines-icml
ce4183babac304ed5f83151a602d75de6c4740c4
[ "MIT" ]
28
2020-06-30T00:40:33.000Z
2022-03-22T05:16:27.000Z
design_baselines/__init__.py
young-geng/design-baselines-icml
ce4183babac304ed5f83151a602d75de6c4740c4
[ "MIT" ]
5
2020-09-17T07:15:52.000Z
2022-03-31T23:33:27.000Z
design_baselines/__init__.py
young-geng/design-baselines-icml
ce4183babac304ed5f83151a602d75de6c4740c4
[ "MIT" ]
3
2020-09-17T06:55:53.000Z
2021-08-09T20:27:26.000Z
import tensorflow as tf for gpu in tf.config.experimental.list_physical_devices('GPU'): tf.config.experimental.set_memory_growth(gpu, True)
36
63
0.805556
2d7890c220cecea659f45a3ae1a4e356396c457e
1,331
py
Python
old/pepper1/src/libpepper/vals/types/pepinterfacedef.py
andybalaam/pepper
f0d12379c7c6e2d82003c0c1d6130bfac685e1c3
[ "MIT" ]
2
2018-12-19T16:32:46.000Z
2019-01-10T09:00:33.000Z
old/pepper1/src/libpepper/vals/types/pepinterfacedef.py
andybalaam/pepper
f0d12379c7c6e2d82003c0c1d6130bfac685e1c3
[ "MIT" ]
null
null
null
old/pepper1/src/libpepper/vals/types/pepinterfacedef.py
andybalaam/pepper
f0d12379c7c6e2d82003c0c1d6130bfac685e1c3
[ "MIT" ]
null
null
null
# Copyright (C) 2013 Andy Balaam and The Pepper Developers # Released under the MIT License. See the file COPYING.txt for details. # Peter replied, 'Even if all fall away on account of you, I never will.' # Matt 26 v33 from libpepper.values import PepValue from libpepper.values import PepPass from libpepper.vals.fun...
30.25
73
0.676935
a55da643068f6d954cd402de8b8a2fae3c714ceb
47,927
py
Python
testing/code/test_excinfo.py
MatthiasGabriel/pytest
824e9cf67abcfc47df25a59bf32ebd8c25fbd02a
[ "MIT" ]
null
null
null
testing/code/test_excinfo.py
MatthiasGabriel/pytest
824e9cf67abcfc47df25a59bf32ebd8c25fbd02a
[ "MIT" ]
54
2020-12-07T03:12:43.000Z
2022-03-28T03:02:38.000Z
testing/code/test_excinfo.py
MatthiasGabriel/pytest
824e9cf67abcfc47df25a59bf32ebd8c25fbd02a
[ "MIT" ]
null
null
null
import importlib import io import operator import os import queue import sys import textwrap from typing import Any from typing import Dict from typing import Tuple from typing import TYPE_CHECKING from typing import Union import py import _pytest import pytest from _pytest._code.code import ExceptionChainRepr from _...
33.259542
100
0.555616
8ab916eb1f1fc07c8c989c33adf0cbae7df6d06f
179
py
Python
databasesfinal/src/techcomp/example/urls.py
scurlej306/DatabasesFinal
06108a3a71f87f3b783d3ed53cf188c1b9b8d50a
[ "MIT" ]
1
2019-07-12T20:45:49.000Z
2019-07-12T20:45:49.000Z
databasesfinal/src/techcomp/example/urls.py
scurlej306/DatabasesFinal
06108a3a71f87f3b783d3ed53cf188c1b9b8d50a
[ "MIT" ]
null
null
null
databasesfinal/src/techcomp/example/urls.py
scurlej306/DatabasesFinal
06108a3a71f87f3b783d3ed53cf188c1b9b8d50a
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.home, name='example-home'), path('sales/', views.sales, name = 'example-sales'), ]
22.375
57
0.631285
4c044b1a15491ed181b2754e0eb22a66cd5f971d
10,779
py
Python
synapse/storage/data_stores/main/ui_auth.py
juhovan/synapse
57feeab364325374b14ff67ac97c288983cc5cde
[ "Apache-2.0" ]
1
2020-07-12T00:18:52.000Z
2020-07-12T00:18:52.000Z
synapse/storage/data_stores/main/ui_auth.py
juhovan/synapse
57feeab364325374b14ff67ac97c288983cc5cde
[ "Apache-2.0" ]
null
null
null
synapse/storage/data_stores/main/ui_auth.py
juhovan/synapse
57feeab364325374b14ff67ac97c288983cc5cde
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Matrix.org Foundation C.I.C. # # 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...
35.810631
88
0.602468
6ee1c7a110414f816d27291716c01d475365e935
1,803
py
Python
nipype/interfaces/spm/tests/test_auto_Realign.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/spm/tests/test_auto_Realign.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
2
2017-10-05T21:08:38.000Z
2018-10-09T23:01:23.000Z
nipype/interfaces/spm/tests/test_auto_Realign.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
1
2016-10-11T19:18:53.000Z
2016-10-11T19:18:53.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ....testing import assert_equal from ..preprocess import Realign def test_Realign_inputs(): input_map = dict(fwhm=dict(field='eoptions.fwhm', ), ignore_exception=dict(nohash=True, usedefault=True, ), in_files=dict(copyfile=True, fi...
25.394366
78
0.643927
8a07485c3f7b09b7e355cb3821a207e77b77934a
546
py
Python
testsuite/cases/pgmagick_convert.py
aclark4life/pillow-perf
5cdf95cfaa99b6ddd40ab21cf64fd7938486f6e7
[ "MIT" ]
15
2016-10-24T14:59:17.000Z
2021-09-30T00:40:04.000Z
testsuite/cases/pgmagick_convert.py
aclark4life/pillow-perf
5cdf95cfaa99b6ddd40ab21cf64fd7938486f6e7
[ "MIT" ]
29
2016-10-23T17:10:36.000Z
2022-03-09T11:06:53.000Z
testsuite/cases/pgmagick_convert.py
aclark4life/pillow-perf
5cdf95cfaa99b6ddd40ab21cf64fd7938486f6e7
[ "MIT" ]
8
2016-10-22T21:25:50.000Z
2020-07-09T10:18:24.000Z
from .base import rpartial, BaseConvertCase from .pgmagick import Image, ImageType, PgmagickTestCase class ConvertCase(BaseConvertCase, PgmagickTestCase): def runner(self, im): im = Image(im) if self.mode_to == 'L': im.type(ImageType.GrayscaleType) elif self.mode_to in 'LA': ...
27.3
69
0.641026
ae0ff1e432e696e8ff1a67671ddcb7d46fbe0d52
4,793
py
Python
run_encoder.py
chaitanyarajasekhar/GNN
5a4af2f48d3d6e8ed3a5854c3134eba060a55ca8
[ "MIT" ]
null
null
null
run_encoder.py
chaitanyarajasekhar/GNN
5a4af2f48d3d6e8ed3a5854c3134eba060a55ca8
[ "MIT" ]
null
null
null
run_encoder.py
chaitanyarajasekhar/GNN
5a4af2f48d3d6e8ed3a5854c3134eba060a55ca8
[ "MIT" ]
1
2019-04-22T17:29:42.000Z
2019-04-22T17:29:42.000Z
import os import argparse import json import numpy as np import tensorflow as tf import gnn from gnn.data import load_data def encoder_model_fn(features, labels, mode, params): logits = gnn.encoder.encoder_fn[params['encoder']]( features, params['edge_types'], params['encoder_params'], ...
35.768657
89
0.611517
66939b516e5be97c06697615ce7c44748434e0ae
410
py
Python
project_name/wsgi.py
codyparker/django-project-template-cp
4f4d0bcae827c11b0676cc79615948920b435d4e
[ "MIT" ]
null
null
null
project_name/wsgi.py
codyparker/django-project-template-cp
4f4d0bcae827c11b0676cc79615948920b435d4e
[ "MIT" ]
null
null
null
project_name/wsgi.py
codyparker/django-project-template-cp
4f4d0bcae827c11b0676cc79615948920b435d4e
[ "MIT" ]
null
null
null
""" WSGI config for project_template project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJ...
24.117647
78
0.795122
63ad5c22bd638c74141f74e7ccbf3e40fbc7be5e
99
py
Python
ArcaeaAssetsUpdater/song_info/schema/basemodel.py
SEAFHMC/ArcaeaAssetsUpdater
51f9d921ad9384ed6d7db7a42f4e467691a27a9a
[ "MIT" ]
1
2022-03-18T15:34:17.000Z
2022-03-18T15:34:17.000Z
ArcaeaAssetsUpdater/song_info/schema/basemodel.py
SEAFHMC/ArcaeaAssetsUpdater
51f9d921ad9384ed6d7db7a42f4e467691a27a9a
[ "MIT" ]
null
null
null
ArcaeaAssetsUpdater/song_info/schema/basemodel.py
SEAFHMC/ArcaeaAssetsUpdater
51f9d921ad9384ed6d7db7a42f4e467691a27a9a
[ "MIT" ]
null
null
null
from pydantic import BaseModel class Base(BaseModel): class Config: extra = "ignore"
14.142857
30
0.676768
37c83d1f3ef8cbf286a83472ee958a9facc00e45
6,407
py
Python
graphbrain/hypergraph.py
renkexinmay/graphbrain
65d34db1c92a56af492ce62a9c114956f4b14b8b
[ "MIT" ]
null
null
null
graphbrain/hypergraph.py
renkexinmay/graphbrain
65d34db1c92a56af492ce62a9c114956f4b14b8b
[ "MIT" ]
null
null
null
graphbrain/hypergraph.py
renkexinmay/graphbrain
65d34db1c92a56af492ce62a9c114956f4b14b8b
[ "MIT" ]
null
null
null
from graphbrain.funs import * import graphbrain.constants as const from graphbrain.backends.null import Null from graphbrain.backends.leveldb import LevelDB def init_hypergraph(hg, backend='leveldb'): params = {'backend': backend, 'hg': hg} return HyperGraph(params) class HyperGraph(object): """Hypergra...
36.19774
91
0.63415
ce9934721c4316ac7a9a96305bba0540f87afa90
1,884
py
Python
authors/apps/profiles/models.py
andela/ah-backend-sparta
fcc394e486a736993702bfa1e6fd9e9b189b93ae
[ "BSD-3-Clause" ]
null
null
null
authors/apps/profiles/models.py
andela/ah-backend-sparta
fcc394e486a736993702bfa1e6fd9e9b189b93ae
[ "BSD-3-Clause" ]
11
2019-03-25T14:38:23.000Z
2019-04-18T08:02:10.000Z
authors/apps/profiles/models.py
andela/ah-backend-sparta
fcc394e486a736993702bfa1e6fd9e9b189b93ae
[ "BSD-3-Clause" ]
5
2019-06-12T08:22:58.000Z
2020-02-07T08:26:37.000Z
""" Module to define user profile model """ from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from authors.apps.authentication.models import User class Profile(models.Model): """ Class to handle creation of user profiles """ user = models...
31.4
73
0.699575
d6678a05ffce1fd2058375b8bc8793a5ce126c0f
1,996
py
Python
prepare_data.py
Ilyushin/facenet-pytorch
cf1a3a37ebeeb80d78b5fae4b3e0ea2f50025c78
[ "MIT" ]
null
null
null
prepare_data.py
Ilyushin/facenet-pytorch
cf1a3a37ebeeb80d78b5fae4b3e0ea2f50025c78
[ "MIT" ]
null
null
null
prepare_data.py
Ilyushin/facenet-pytorch
cf1a3a37ebeeb80d78b5fae4b3e0ea2f50025c78
[ "MIT" ]
null
null
null
from facenet_pytorch import MTCNN, InceptionResnetV1, fixed_image_standardization, training import torch from torch.utils.data import DataLoader from torchvision import datasets, transforms import os # data_dir = '../data/test_images' # data_dir = '/mnt/vmk/datasets/faces/casia_webface' # train_data_dir = '/mnt/vmk/...
28.514286
95
0.716934
a9f17ffd596af18a8bb1e44f4201dc5c5be604a0
1,755
py
Python
edge/upload_aivdm_sql_static_http_shore.py
dannil10/dogger
7e4570f1aa7d5393a9ae182498573d03fe1b61e9
[ "MIT" ]
null
null
null
edge/upload_aivdm_sql_static_http_shore.py
dannil10/dogger
7e4570f1aa7d5393a9ae182498573d03fe1b61e9
[ "MIT" ]
null
null
null
edge/upload_aivdm_sql_static_http_shore.py
dannil10/dogger
7e4570f1aa7d5393a9ae182498573d03fe1b61e9
[ "MIT" ]
null
null
null
import gateway.link udp_upload_ais = gateway.link.SqlHttpUpdateStatic( channels = {173}, start_delay = 0, transmit_rate = 0.2, max_age = 10, max_connect_attempts = 50, message_formats = [ {"message": {"type":21}, "aid_type": { "type":"int", "novalue":0 }, ...
54.84375
123
0.45641
d4284e3a2130cc73890e23a5371f07f315aba872
8,290
py
Python
cdispyutils/profiling/vis.py
uc-cdis/python-utils
a7f7d182815f35729d8215c84f0e1c3790292eec
[ "Apache-2.0" ]
2
2017-09-22T23:22:20.000Z
2019-01-24T12:23:20.000Z
cdispyutils/profiling/vis.py
uc-cdis/python-utils
a7f7d182815f35729d8215c84f0e1c3790292eec
[ "Apache-2.0" ]
22
2016-12-21T20:07:31.000Z
2021-07-08T15:51:21.000Z
cdispyutils/profiling/vis.py
uc-cdis/python-utils
a7f7d182815f35729d8215c84f0e1c3790292eec
[ "Apache-2.0" ]
2
2019-01-23T23:09:05.000Z
2020-12-02T23:04:50.000Z
__all__ = ["ProfilePlotter"] from functools import reduce import os import pstats import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages import numpy as np class StatsCollection(object): def __init__(self, directory, logger=None): s...
35.887446
88
0.548372
f23d1b02081279f75592042ef0d857e03e4f2dd0
4,161
py
Python
EISeg/eiseg/plugin/remotesensing/shape.py
DaoDaoer/PaddleSeg
7fe2e41de0f192494b8f2088ee500bb55d17708e
[ "ECL-2.0", "Apache-2.0" ]
2
2020-06-12T05:14:37.000Z
2021-12-20T12:31:32.000Z
EISeg/eiseg/plugin/remotesensing/shape.py
DaoDaoer/PaddleSeg
7fe2e41de0f192494b8f2088ee500bb55d17708e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
EISeg/eiseg/plugin/remotesensing/shape.py
DaoDaoer/PaddleSeg
7fe2e41de0f192494b8f2088ee500bb55d17708e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 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 ...
33.288
78
0.582312
8d9296a5a3a568b7b894e492f0d179c764c2485d
2,928
py
Python
testing_strategy_30_days_back/my_stock-with_search.py
ajmal017/stock_price_prediction
36758056ba4a80792dfdc73d365bc4a78020a06d
[ "BSD-3-Clause" ]
null
null
null
testing_strategy_30_days_back/my_stock-with_search.py
ajmal017/stock_price_prediction
36758056ba4a80792dfdc73d365bc4a78020a06d
[ "BSD-3-Clause" ]
null
null
null
testing_strategy_30_days_back/my_stock-with_search.py
ajmal017/stock_price_prediction
36758056ba4a80792dfdc73d365bc4a78020a06d
[ "BSD-3-Clause" ]
1
2020-11-22T10:14:53.000Z
2020-11-22T10:14:53.000Z
import pandas as pd import numpy as np import datetime as dt import yfinance as yf # for data from pandas_datareader import data as pdr yf.pdr_override() start_year = 2020 start_month = 4 start_day = 1 end_year = 2020 end_month = 10 end_day = 24 start = dt.datetime(start_year,start_month,start_day) now = dt.datetim...
25.025641
115
0.517077
9241dc54fc7586641b40a747c6f2b12f32ae65df
22,595
py
Python
sktime/transformations/series/summarize.py
jyviko/sktime
f06b9b0a43db13e9e0217cc3c7de8f3807d3c722
[ "BSD-3-Clause" ]
null
null
null
sktime/transformations/series/summarize.py
jyviko/sktime
f06b9b0a43db13e9e0217cc3c7de8f3807d3c722
[ "BSD-3-Clause" ]
null
null
null
sktime/transformations/series/summarize.py
jyviko/sktime
f06b9b0a43db13e9e0217cc3c7de8f3807d3c722
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) """Implement transformers for summarizing a time series.""" __author__ = ["mloning", "RNKuhns", "danbartl"] __all__ = ["SummaryTransformer", "WindowSummarizer"] import pandas as pd from joblib imp...
36.094249
88
0.578756
5d41e7eb53d2c41b0cf6025df576c2e0fe1bc8c6
827
py
Python
rbac/common/sawtooth/protos/__init__.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
rbac/common/sawtooth/protos/__init__.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
rbac/common/sawtooth/protos/__init__.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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.35
79
0.700121
40ee37db3ec01be42cf289331997cb3cf428fa27
206
py
Python
PyABridge/test.py
ArpadoSoftware/PyAbridge
ce19d9332b3c71c645c6ccab2e70eff29cd3d95b
[ "MIT" ]
null
null
null
PyABridge/test.py
ArpadoSoftware/PyAbridge
ce19d9332b3c71c645c6ccab2e70eff29cd3d95b
[ "MIT" ]
null
null
null
PyABridge/test.py
ArpadoSoftware/PyAbridge
ce19d9332b3c71c645c6ccab2e70eff29cd3d95b
[ "MIT" ]
null
null
null
import sys from PyABridge import ABridge def onData(data): return data def main(): ab = ABridge.ABridge() ab.setDataCallback(onData) ab.start() if __name__ == "__main__": main()
10.842105
30
0.645631
2aeb1ddd72f0fe93210ac0cdb30b48da3063ff66
587
py
Python
tests/fixtures/celerycase.py
magocod/djheavy
a7291edb6d2b406af73737c254be3bc3a66e44ae
[ "MIT" ]
2
2020-02-24T00:29:21.000Z
2021-01-13T02:41:01.000Z
tests/fixtures/celerycase.py
magocod/djheavy
a7291edb6d2b406af73737c254be3bc3a66e44ae
[ "MIT" ]
6
2020-10-08T15:16:34.000Z
2021-09-22T18:37:58.000Z
tests/fixtures/celerycase.py
magocod/djheavy
a7291edb6d2b406af73737c254be3bc3a66e44ae
[ "MIT" ]
1
2020-08-05T10:12:41.000Z
2020-08-05T10:12:41.000Z
""" ... """ # third-party from celery.contrib.testing.worker import start_worker # Django from django.test import TransactionTestCase # local Django from djheavy import celery_app class CeleryWorkerTestCase(TransactionTestCase): """ ... """ allow_database_queries = True @classmethod def s...
18.34375
54
0.681431
4edf294b98657cdf3daa89c14dd34058a122a417
816
py
Python
utils/parameters.py
ale3otik/RVAE-pytorch
2caf813e6ad368805889ae7881402d0074934d5a
[ "MIT" ]
1
2021-04-20T20:29:31.000Z
2021-04-20T20:29:31.000Z
utils/parameters.py
ale3otik/RVAE-pytorch
2caf813e6ad368805889ae7881402d0074934d5a
[ "MIT" ]
null
null
null
utils/parameters.py
ale3otik/RVAE-pytorch
2caf813e6ad368805889ae7881402d0074934d5a
[ "MIT" ]
null
null
null
from .functional import * class Parameters: def __init__(self, max_word_len, max_seq_len, word_vocab_size, char_vocab_size): self.max_word_len = int(max_word_len) self.max_seq_len = int(max_seq_len) + 1 # go or eos token self.word_vocab_size = int(word_vocab_size) self.char_vocab...
31.384615
90
0.639706
ba8a213065d8e284eac7b244748ac33f652bf9f6
6,257
py
Python
conans/test/integration/complete_test.py
laundry-96/conan
fd938f7220ca042d94c42ec5eb607ee69c6785a3
[ "MIT" ]
1
2021-06-14T01:39:27.000Z
2021-06-14T01:39:27.000Z
conans/test/integration/complete_test.py
laundry-96/conan
fd938f7220ca042d94c42ec5eb607ee69c6785a3
[ "MIT" ]
null
null
null
conans/test/integration/complete_test.py
laundry-96/conan
fd938f7220ca042d94c42ec5eb607ee69c6785a3
[ "MIT" ]
1
2021-06-03T23:08:43.000Z
2021-06-03T23:08:43.000Z
import os import time import unittest from nose.plugins.attrib import attr from conans.model.ref import ConanFileReference, PackageReference from conans.test.utils.cpp_test_files import cpp_hello_conan_files from conans.test.utils.test_files import uncompress_packaged_files from conans.test.utils.tools import TestCli...
43.755245
97
0.656545
2af1100ff487265225ec45d376ec09a4e1fb65be
8,276
py
Python
src/collective/generic/webbuilder/paster.py
hellfish2/collective.generic.webbuilder
57c0741bbb3a1b5ec14a05986fcc13ef147e8831
[ "BSD-3-Clause" ]
1
2015-11-07T11:28:21.000Z
2015-11-07T11:28:21.000Z
src/collective/generic/webbuilder/paster.py
hellfish2/collective.generic.webbuilder
57c0741bbb3a1b5ec14a05986fcc13ef147e8831
[ "BSD-3-Clause" ]
null
null
null
src/collective/generic/webbuilder/paster.py
hellfish2/collective.generic.webbuilder
57c0741bbb3a1b5ec14a05986fcc13ef147e8831
[ "BSD-3-Clause" ]
null
null
null
import re import pkg_resources from zope.interface import implements from collective.generic.webbuilder import interfaces from collective.generic.webbuilder.models import root from collective.generic.skel.buildout import common class NoSuchConfigurationError(Exception): pass class PasterAssembly(object): ...
45.723757
79
0.396206
55cdcf8cf3a7af21c88ed749714b4a909271944c
1,502
py
Python
myscripts/df_info.py
bezawitalemyimer/Causualty
6bc508d6d8520cbc48e403b53de18c8c93099392
[ "MIT" ]
null
null
null
myscripts/df_info.py
bezawitalemyimer/Causualty
6bc508d6d8520cbc48e403b53de18c8c93099392
[ "MIT" ]
2
2021-08-28T18:46:59.000Z
2021-08-28T18:47:21.000Z
myscripts/df_info.py
bezawitalemyimer/Causualty
6bc508d6d8520cbc48e403b53de18c8c93099392
[ "MIT" ]
null
null
null
import pandas as pd class DataFrameInfo(): def __init__(self, df): self.df = df.copy() def info(self): ''' Display number of rows and columns in the Data frame ''' print(f"Data Frame contain {self.df.shape[0]} rows and {self.df.shape[1]} columns") def detail_info(self): ''' Displ...
18.775
87
0.611851
095a512ef4d5ad20663d8eb10f4fc5584cff44e4
3,582
py
Python
poc/comprehend/test_comprehend.py
MacHu-GWU/aws_text_insight-project
81dda77c01a3dcc0f4df66b8ac288713859aead9
[ "BSD-2-Clause" ]
null
null
null
poc/comprehend/test_comprehend.py
MacHu-GWU/aws_text_insight-project
81dda77c01a3dcc0f4df66b8ac288713859aead9
[ "BSD-2-Clause" ]
null
null
null
poc/comprehend/test_comprehend.py
MacHu-GWU/aws_text_insight-project
81dda77c01a3dcc0f4df66b8ac288713859aead9
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Reference: - https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/comprehend.html#Comprehend.Client.start_entities_detection_job """ import boto3 import io import json import gzip from rich import print from pathlib_mate import Path from aws_text_insight.fingerprint ...
30.355932
181
0.655221
714ac776ce0865aced4baa9e8ace9d74e4bb3f84
387
py
Python
scripts/messe_demo.py
guthom/kollrobot_controller
6ac87efd03204787ad34c2adaf247cd559abe39b
[ "MIT" ]
null
null
null
scripts/messe_demo.py
guthom/kollrobot_controller
6ac87efd03204787ad34c2adaf247cd559abe39b
[ "MIT" ]
null
null
null
scripts/messe_demo.py
guthom/kollrobot_controller
6ac87efd03204787ad34c2adaf247cd559abe39b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import os, sys projectDir = os.path.join(os.path.dirname(__file__), '../pysrc/') sys.path.append(projectDir) sys.path.append(projectDir + "kollrobot_controller/") from nodes.MesseDemo import MesseDemo if __name__ == '__main__': try: messeDemo = MesseDemo() mess...
20.368421
65
0.697674
7e358759a79ca357256005a0e01c9c25556dcf40
16,550
py
Python
cgi-bin/xmlcommon.py
hakan-tan/SecHotspot
c64b4630ea540ff71ec1ef4af05ec28d3541dd4b
[ "FSFAP" ]
2
2020-11-05T03:59:20.000Z
2021-12-31T15:40:31.000Z
cgi-bin/xmlcommon.py
hakan-tan/SecHotspot
c64b4630ea540ff71ec1ef4af05ec28d3541dd4b
[ "FSFAP" ]
null
null
null
cgi-bin/xmlcommon.py
hakan-tan/SecHotspot
c64b4630ea540ff71ec1ef4af05ec28d3541dd4b
[ "FSFAP" ]
null
null
null
#!/usr/bin/python # Functions contained in this module # # createXmlAuthReq() - construct an XML string for user authentication to the ZD # createXmlUnrestrictedUser() - construct an XML string to create an unrestricted user # createXmlDpskReq() - construct an XML string for DPSK generation to the ZD # createXmlUnre...
33.56998
159
0.621329
10ad2d2cc51febcf1701bb899895d5b58c90af12
985
py
Python
setup.py
veox/pygments-lexer-solidity
e99ccf980337ceaad4fbc7ee11795e91d7fab0ae
[ "BSD-2-Clause" ]
2
2018-05-24T14:36:59.000Z
2019-06-29T23:50:08.000Z
setup.py
veox/pygments-lexer-solidity
e99ccf980337ceaad4fbc7ee11795e91d7fab0ae
[ "BSD-2-Clause" ]
null
null
null
setup.py
veox/pygments-lexer-solidity
e99ccf980337ceaad4fbc7ee11795e91d7fab0ae
[ "BSD-2-Clause" ]
1
2019-11-11T23:24:17.000Z
2019-11-11T23:24:17.000Z
import os.path from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='pygments-lexer-solidity', version='0.7.0', description='Solidity lexer for Pygments (includes Yul intermediate language)', long_description=read('README....
29.848485
83
0.673096
cf0e6cf09e178beb82625e0091db0dc322e686e5
3,491
py
Python
bmtk/tests/builder/test_iterator.py
aaberbach/bmtk
42aa70ce2003227a32df6ce5a95420dbf4bdfbd4
[ "BSD-3-Clause" ]
216
2017-10-03T17:02:42.000Z
2022-03-20T03:35:48.000Z
bmtk/tests/builder/test_iterator.py
moekay/bmtk
6efdf6387d2a6badf276b917ee15d238daeae883
[ "BSD-3-Clause" ]
70
2017-10-05T00:50:41.000Z
2022-03-30T18:55:01.000Z
bmtk/tests/builder/test_iterator.py
moekay/bmtk
6efdf6387d2a6badf276b917ee15d238daeae883
[ "BSD-3-Clause" ]
97
2017-10-03T22:15:06.000Z
2022-03-23T21:03:26.000Z
import pytest import itertools from bmtk.builder import connector, iterator from bmtk.builder import NetworkBuilder from bmtk.builder.node import Node @pytest.fixture def net(): net = NetworkBuilder('NET1') net.add_nodes(N=100, x=range(100), ei='i') net.add_nodes(N=50, x=range(50), y='y', ei='e') ret...
27.488189
99
0.578344
0fce45e42ed5c007d68ec6ce5ea6f5d05db44be7
4,258
py
Python
cookiecutter/hooks.py
insight-infrastructure/cookiecutter
5e77a6f59786759cf1b469e7bd827b6d340a31c6
[ "BSD-3-Clause" ]
8
2020-06-15T18:49:24.000Z
2021-04-15T10:34:24.000Z
cookiecutter/hooks.py
insight-infrastructure/cookiecutter
5e77a6f59786759cf1b469e7bd827b6d340a31c6
[ "BSD-3-Clause" ]
19
2020-06-28T16:03:56.000Z
2020-10-07T15:52:06.000Z
cookiecutter/hooks.py
insight-infrastructure/nukikata
5e77a6f59786759cf1b469e7bd827b6d340a31c6
[ "BSD-3-Clause" ]
null
null
null
"""Functions for discovering and executing various cookiecutter hooks.""" import errno import logging import os import subprocess import sys import tempfile import cookiecutter.utils.paths from cookiecutter.render.environment import StrictEnvironment from cookiecutter.exceptions import FailedHookException logger = l...
32.015038
88
0.693518
0daffbf853a05e2be9403a2a0f4b0f8351277c18
1,984
py
Python
granary/seed.py
JohnDvorak/granary
3e40378e619146d10390efc2b39865e5c05a3bc0
[ "MIT" ]
9
2016-01-18T04:07:53.000Z
2021-05-21T12:40:11.000Z
granary/seed.py
JohnDvorak/granary
3e40378e619146d10390efc2b39865e5c05a3bc0
[ "MIT" ]
null
null
null
granary/seed.py
JohnDvorak/granary
3e40378e619146d10390efc2b39865e5c05a3bc0
[ "MIT" ]
9
2017-09-12T18:53:28.000Z
2022-03-12T06:03:29.000Z
import seedlib import string import json from mnemonic import Mnemonic from binascii import hexlify, unhexlify import bitcoin # class Granary(): # pass class Seed(): def __init__(self): self._bin_seed = None self._fingerprint = None self._bip32_xpriv = None def __no...
28.753623
82
0.625504
2b1256da165bf99e7c17afebc9ce4c8160ce4cc9
2,423
py
Python
zenml/pipelines/utils.py
ramitsurana/zenml
6994ea7ec0a38e9495306d55c3069107cdd5e65f
[ "Apache-2.0" ]
1
2021-08-13T03:07:53.000Z
2021-08-13T03:07:53.000Z
zenml/pipelines/utils.py
ramitsurana/zenml
6994ea7ec0a38e9495306d55c3069107cdd5e65f
[ "Apache-2.0" ]
null
null
null
zenml/pipelines/utils.py
ramitsurana/zenml
6994ea7ec0a38e9495306d55c3069107cdd5e65f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) maiot GmbH 2020. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
28.505882
77
0.661989
df71b68112a83b85951eceaa468e89a889226418
42,852
py
Python
gravity_toolkit/geocenter.py
richannan/read-GRACE-harmonics
321254fc3caf08220a32733bd3e79aca433b61af
[ "MIT" ]
null
null
null
gravity_toolkit/geocenter.py
richannan/read-GRACE-harmonics
321254fc3caf08220a32733bd3e79aca433b61af
[ "MIT" ]
null
null
null
gravity_toolkit/geocenter.py
richannan/read-GRACE-harmonics
321254fc3caf08220a32733bd3e79aca433b61af
[ "MIT" ]
null
null
null
#!/usr/bin/env python u""" geocenter.py Written by Tyler Sutterley (12/2021) Data class for reading and processing geocenter data PYTHON DEPENDENCIES: numpy: Scientific Computing Tools For Python https://numpy.org dateutil: powerful extensions to datetime https://dateutil.readthedocs.io/en/stab...
39.062899
86
0.572949
a05375632d77142de64947112267dbf43b7d1103
159
py
Python
crime_reporter/apps.py
ezro1245/civilas_web
1195142ab5db94ffd1ad0526c389dcac043331c6
[ "MIT" ]
null
null
null
crime_reporter/apps.py
ezro1245/civilas_web
1195142ab5db94ffd1ad0526c389dcac043331c6
[ "MIT" ]
null
null
null
crime_reporter/apps.py
ezro1245/civilas_web
1195142ab5db94ffd1ad0526c389dcac043331c6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CrimeReporterConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'crime_reporter'
22.714286
56
0.779874
edfad789dbf61c428ae7520bbe77c02fd8781265
2,377
py
Python
setup.py
luizsantos-1/tf-keras-vis
4d26dc9c65270f738987b653d5956ea082c35c2b
[ "MIT" ]
null
null
null
setup.py
luizsantos-1/tf-keras-vis
4d26dc9c65270f738987b653d5956ea082c35c2b
[ "MIT" ]
null
null
null
setup.py
luizsantos-1/tf-keras-vis
4d26dc9c65270f738987b653d5956ea082c35c2b
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup with open("README.md", "r") as f: long_description = f.read() with open("VERSION") as f: version = f.read().strip() setup( name="tf-keras-vis", version=version, author="keisen (Yasuhiro Kubota)", author_email="k.keisen@gmail.com", description="N...
30.87013
71
0.547749
4fd21837a002d9b76fb4c2370df90b146deeb01b
2,932
py
Python
ImGui.NET.SampleProgram.XNA/bin/Release/components/c_smoothing.py
EarthenSky/Image-Filter
2d60fd2898da725be10e6bde74953ece0cbc7250
[ "MIT" ]
null
null
null
ImGui.NET.SampleProgram.XNA/bin/Release/components/c_smoothing.py
EarthenSky/Image-Filter
2d60fd2898da725be10e6bde74953ece0cbc7250
[ "MIT" ]
null
null
null
ImGui.NET.SampleProgram.XNA/bin/Release/components/c_smoothing.py
EarthenSky/Image-Filter
2d60fd2898da725be10e6bde74953ece0cbc7250
[ "MIT" ]
null
null
null
''' This component smooths the image by avaraging nearby pixels to adjacent pixels. Can be used as anti-aliasing.''' class Component(): def __init__(self): self._components = [] self.name = "smoothing" # TODO: add a component for algorithm repetitions instead of ranged averaging. def...
47.290323
117
0.586289
bfe8de26256a47309d0349c687c8cab5eea35b88
1,290
py
Python
src/sponsors/migrations/0018_openrole.py
kaka-lin/pycon.tw
67809a5e43b03273ac8d8f5a1b6b3d3f73474be7
[ "MIT" ]
47
2015-12-19T10:23:11.000Z
2018-06-13T08:07:33.000Z
src/sponsors/migrations/0018_openrole.py
kaka-lin/pycon.tw
67809a5e43b03273ac8d8f5a1b6b3d3f73474be7
[ "MIT" ]
473
2018-12-01T13:01:48.000Z
2022-03-30T07:10:42.000Z
src/sponsors/migrations/0018_openrole.py
kaka-lin/pycon.tw
67809a5e43b03273ac8d8f5a1b6b3d3f73474be7
[ "MIT" ]
91
2018-07-26T02:38:59.000Z
2022-01-16T02:38:31.000Z
# Generated by Django 3.0.7 on 2020-08-23 15:28 import core.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('sponsors', '0017_merge_20200225_1431'), ] operations = [ migrations.CreateModel( ...
40.3125
147
0.616279
667e4791d26e2ada6f6c528014ca0cf16dd78387
3,581
py
Python
mygallery/settings.py
dennisnyamweya/My-Gallery
9161ecb77f7d33440ead9a244356af54916ab990
[ "MIT" ]
null
null
null
mygallery/settings.py
dennisnyamweya/My-Gallery
9161ecb77f7d33440ead9a244356af54916ab990
[ "MIT" ]
5
2020-06-05T22:34:39.000Z
2021-09-08T01:14:54.000Z
mygallery/settings.py
dennisnyamweya/My-Gallery
9161ecb77f7d33440ead9a244356af54916ab990
[ "MIT" ]
null
null
null
""" Django settings for mygallery project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os...
25.578571
91
0.702876
01210870c0c5da05a51cbb426fc9f26b5a00b2da
1,441
py
Python
mayan/apps/document_indexing/handlers.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
2
2021-09-12T19:41:19.000Z
2021-09-12T19:41:20.000Z
mayan/apps/document_indexing/handlers.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
37
2021-09-13T01:00:12.000Z
2021-10-02T03:54:30.000Z
mayan/apps/document_indexing/handlers.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
1
2021-09-22T13:17:30.000Z
2021-09-22T13:17:30.000Z
from django.apps import apps from django.utils.translation import ugettext_lazy as _ from .tasks import ( task_delete_empty, task_index_document, task_remove_document ) def handler_create_default_document_index(sender, **kwargs): DocumentType = apps.get_model( app_label='documents', model_n...
30.020833
76
0.691881
f3544e3ab97b3027811143d823cdfb00834e8fb3
11,288
py
Python
Software/PrediXcan.py
cdesyoun/docker_predixcan
a4b965cd9acfb2bc6b4fa4e20c40f81413299f2b
[ "MIT" ]
null
null
null
Software/PrediXcan.py
cdesyoun/docker_predixcan
a4b965cd9acfb2bc6b4fa4e20c40f81413299f2b
[ "MIT" ]
null
null
null
Software/PrediXcan.py
cdesyoun/docker_predixcan
a4b965cd9acfb2bc6b4fa4e20c40f81413299f2b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse from collections import defaultdict import datetime import gzip import numpy as np import os import sqlite3 import sys import subprocess def buffered_file(file, dosage_buffer=None): if not dosage_buffer: for line in file: yield line else: buf ...
48.865801
196
0.638909
f85da143be36740ea16c6b53efaa70744a5f73c7
5,359
py
Python
flask3/routes.py
fattym/group
4ad2d33451acb2c06fa19d35bac66f1bc0f33b3a
[ "MIT" ]
null
null
null
flask3/routes.py
fattym/group
4ad2d33451acb2c06fa19d35bac66f1bc0f33b3a
[ "MIT" ]
null
null
null
flask3/routes.py
fattym/group
4ad2d33451acb2c06fa19d35bac66f1bc0f33b3a
[ "MIT" ]
1
2020-05-13T07:00:05.000Z
2020-05-13T07:00:05.000Z
import os import secrets from flask import render_template,url_for,flash, redirect,request,abort from flask3 import app,db,bcrypt from flask3.forms import RegistrationForm, LoginForm,UpdateAccountForm,PostForm from flask3.models import User,Post from flask_login import login_user,current_user,logout_user,login_require...
35.490066
95
0.678858
f501da2bcb29c838291a7b73540e794a55f833b3
16,868
py
Python
utils.py
vanderh0ff/pyvtt
15f721b1798c1c00ea5372b692c355dce7d9ce18
[ "MIT" ]
null
null
null
utils.py
vanderh0ff/pyvtt
15f721b1798c1c00ea5372b692c355dce7d9ce18
[ "MIT" ]
null
null
null
utils.py
vanderh0ff/pyvtt
15f721b1798c1c00ea5372b692c355dce7d9ce18
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ https://github.com/cgloeckner/pyvtt/ Copyright (c) 2020-2021 Christian Glöckner License: MIT (see LICENSE for details) """ import sys, os, logging, smtplib, pathlib, tempfile, traceback, uuid, random import bottle import patreon __author__ = 'Christian Glöckner' __l...
35.661734
145
0.541262
761fbe793bc2966efd2d87aa930a5de0152507ff
17,342
py
Python
src/DocManager.py
qizhu8/DocManager
8fb2e459154c04d399afb8a67d28b5ba42b15069
[ "MIT" ]
1
2019-11-05T21:45:33.000Z
2019-11-05T21:45:33.000Z
src/DocManager.py
qizhu8/DocManager
8fb2e459154c04d399afb8a67d28b5ba42b15069
[ "MIT" ]
null
null
null
src/DocManager.py
qizhu8/DocManager
8fb2e459154c04d399afb8a67d28b5ba42b15069
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python3 import MySQLdb import numpy as np import re import os import json import bibtexparser from bibtexparser.bwriter import BibTexWriter from bibtexparser.bibdatabase import BibDatabase class DocManager(object): """docstring for DocManager.""" DELETE_ALL_TABLES_SQL =...
36.897872
186
0.572483
97ab68f4e52e8a27ec45f5ec994eb850c73a3ab6
4,917
py
Python
stubs.min/Rhino/Geometry/__init___parts/Interval.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2017-07-25T14:30:18.000Z
2017-07-25T14:30:18.000Z
stubs.min/Rhino/Geometry/__init___parts/Interval.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Rhino/Geometry/__init___parts/Interval.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class Interval(object,ISerializable,IEquatable[Interval],IComparable[Interval],IComparable,IEpsilonComparable[Interval]): """ Interval(t0: float,t1: float) Interval(other: Interval) """ def CompareTo(self,other): """ CompareTo(self: Interval,other: Interval) -> int """ pass def EpsilonEquals(self,oth...
28.421965
215
0.651413
09127264515479786ad5fe523ac4d37c5a117847
1,746
py
Python
vocoder/hifigan/inference.py
airobotnews/cloneVoice
8ad9ba2b60aef57d6d7c83832f07c4f1173d493b
[ "MIT" ]
15,983
2021-08-28T02:54:59.000Z
2022-03-31T16:52:28.000Z
vocoder/hifigan/inference.py
Creator2K/MockingBird
b56ec5ee1b5af1b12b51470b2d2baa8c7519d9ff
[ "MIT" ]
404
2021-08-28T02:26:36.000Z
2022-03-31T16:28:40.000Z
vocoder/hifigan/inference.py
Creator2K/MockingBird
b56ec5ee1b5af1b12b51470b2d2baa8c7519d9ff
[ "MIT" ]
2,407
2021-08-28T03:07:44.000Z
2022-03-31T09:06:35.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import os import json import torch from scipy.io.wavfile import write from vocoder.hifigan.env import AttrDict from vocoder.hifigan.meldataset import mel_spectrogram, MAX_WAV_VALUE, load_wav from vocoder.hifigan.models import Generator ...
24.591549
82
0.700458
be793bb4add758fd9ba83cf77bc1187b79c7b1bb
904
py
Python
tipico/client/abstract_instrument_client.py
lbusoni/tipico
364a0d2321508e62bafae5037f435c1df3588814
[ "MIT" ]
null
null
null
tipico/client/abstract_instrument_client.py
lbusoni/tipico
364a0d2321508e62bafae5037f435c1df3588814
[ "MIT" ]
1
2020-10-29T19:53:15.000Z
2020-10-29T19:53:15.000Z
tipico/client/abstract_instrument_client.py
ArcetriAdaptiveOptics/tipico
364a0d2321508e62bafae5037f435c1df3588814
[ "MIT" ]
null
null
null
import abc from plico.utils.decorator import returnsNone, returns, returnsForExample from tipico.types.instrument_status import InstrumentStatus from six import with_metaclass __version__= "$Id: abstract_deformable_mirror_client.py 26 2018-01-26 19:06:25Z lbusoni $" class SnapshotEntry(object): COMMAND_COUNTER=...
22.04878
90
0.740044
f391c04239af7aeebce0d8415944a2db8592e445
748
py
Python
src/products/migrations/0001_initial.py
hidesec/ular_django
51d4e9cf49dcf6150a088485a456beaf0b6e5e85
[ "MIT" ]
null
null
null
src/products/migrations/0001_initial.py
hidesec/ular_django
51d4e9cf49dcf6150a088485a456beaf0b6e5e85
[ "MIT" ]
null
null
null
src/products/migrations/0001_initial.py
hidesec/ular_django
51d4e9cf49dcf6150a088485a456beaf0b6e5e85
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-18 17:23 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(...
28.769231
114
0.568182
6536d468c135defb4b65da4b68a1f76a9c6a50df
6,272
py
Python
networkx/generators/harary_graph.py
AaronOpfer/networkx
f04ca835c3503f04f9b3e933270575980e44205b
[ "BSD-3-Clause" ]
null
null
null
networkx/generators/harary_graph.py
AaronOpfer/networkx
f04ca835c3503f04f9b3e933270575980e44205b
[ "BSD-3-Clause" ]
null
null
null
networkx/generators/harary_graph.py
AaronOpfer/networkx
f04ca835c3503f04f9b3e933270575980e44205b
[ "BSD-3-Clause" ]
1
2021-01-27T12:09:05.000Z
2021-01-27T12:09:05.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2018-2019 by # Weisheng Si <w.si@westernsydney.edu.au> # All rights reserved. # BSD license. # # Authors: Weisheng Si (w.si@westernsydney.edu.au) # """Generators for Harary graphs This module gives two generators for the Harary graph, which was introduced by the famo...
30.446602
77
0.572704
d1a46e9d67a96596346f347740bc874eab450b3f
839
py
Python
var/spack/repos/builtin/packages/cli11/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/cli11/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/cli11/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Cli11(CMakePackage): """CLI11 is a command line parser for C++11 and beyond that provides ...
31.074074
95
0.681764
ac2b9bfe00b985b5e5bed4fc3c011e15182fe24f
97,827
py
Python
com.ibm.streamsx.topology/opt/python/packages/streamsx/rest_primitives.py
Jaimie-Jin1/streamsx.topology
6f316ec8e9ed1349c6f061d9bb7d03deb87e3d08
[ "Apache-2.0" ]
null
null
null
com.ibm.streamsx.topology/opt/python/packages/streamsx/rest_primitives.py
Jaimie-Jin1/streamsx.topology
6f316ec8e9ed1349c6f061d9bb7d03deb87e3d08
[ "Apache-2.0" ]
null
null
null
com.ibm.streamsx.topology/opt/python/packages/streamsx/rest_primitives.py
Jaimie-Jin1/streamsx.topology
6f316ec8e9ed1349c6f061d9bb7d03deb87e3d08
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Licensed Materials - Property of IBM # Copyright IBM Corp. 2016,2017 """ Primitive objects for REST bindings. ******** Overview ******** Contains classes representing primitive Streams objects, such as :py:class:`Instance`, :py:class:`Job`, :py:class:`PE`, etc. """ from future.builtins import * im...
38.363529
238
0.632014
68bbde187631c4d146976a4dcbbcbf2cdda21436
4,660
py
Python
external/openglcts/scripts/build_caselists.py
akihikodaki/VK-GL-CTS
2d1377ec02b5b46a1cd946c5a27fa4a8f9e1e1f5
[ "Apache-2.0" ]
null
null
null
external/openglcts/scripts/build_caselists.py
akihikodaki/VK-GL-CTS
2d1377ec02b5b46a1cd946c5a27fa4a8f9e1e1f5
[ "Apache-2.0" ]
null
null
null
external/openglcts/scripts/build_caselists.py
akihikodaki/VK-GL-CTS
2d1377ec02b5b46a1cd946c5a27fa4a8f9e1e1f5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- #------------------------------------------------------------------------- # drawElements Quality Program utilities # -------------------------------------- # # Copyright 2015 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use t...
31.275168
174
0.667167
dc17450664c8a20e49d9ad684396d5f53c9930db
19,211
py
Python
mypy/plugins/default.py
amikrop/mypy
c701d3a8c9696440f005a23ab620a8b6f12ce416
[ "PSF-2.0" ]
35
2016-03-30T09:25:14.000Z
2022-03-12T10:53:11.000Z
mypy/plugins/default.py
amikrop/mypy
c701d3a8c9696440f005a23ab620a8b6f12ce416
[ "PSF-2.0" ]
2
2020-08-26T21:46:53.000Z
2020-09-11T16:06:52.000Z
mypy/plugins/default.py
amikrop/mypy
c701d3a8c9696440f005a23ab620a8b6f12ce416
[ "PSF-2.0" ]
6
2016-01-29T04:33:27.000Z
2019-11-03T19:19:43.000Z
from functools import partial from typing import Callable, Optional, List from mypy import message_registry from mypy.nodes import Expression, StrExpr, IntExpr, DictExpr, UnaryExpr from mypy.plugin import ( Plugin, FunctionContext, MethodContext, MethodSigContext, AttributeContext, ClassDefContext, CheckerPlug...
42.502212
96
0.639269
3f2676a17b0216b7683a763af289acf352000e98
1,950
py
Python
unet_explanation/model/unet.py
chakerouari/UNET_segmetation
a7d9e9ccd31595d482f620cbf9a625a486f5f0df
[ "MIT" ]
19
2020-03-31T14:59:42.000Z
2022-02-28T09:25:11.000Z
unet_explanation/model/unet.py
chakerouari/UNET_segmetation
a7d9e9ccd31595d482f620cbf9a625a486f5f0df
[ "MIT" ]
1
2021-04-01T12:09:16.000Z
2021-04-01T12:09:16.000Z
unet_explanation/model/unet.py
chakerouari/UNET_segmetation
a7d9e9ccd31595d482f620cbf9a625a486f5f0df
[ "MIT" ]
8
2020-06-05T16:01:55.000Z
2022-03-18T06:29:52.000Z
import torch import torch.nn as nn import torch.nn.functional as F from model.unet_utils import * class UNet(nn.Module): """ U-Net: Convolutional Networks for Biomedical Image Segmentation (Ronneberger et al., 2015) https://arxiv.org/abs/1505.04597 Contracting Path - Two 3x3 Conv2D (Unpad...
31.967213
121
0.611282
69ad28d73d2cd02c9aec9c793cc7934c9cba148b
7,302
py
Python
onnx_chainer/replace_func.py
hyabe/onnx-chainer
339ff390957d9dd29843add015533290fdd051c0
[ "MIT" ]
null
null
null
onnx_chainer/replace_func.py
hyabe/onnx-chainer
339ff390957d9dd29843add015533290fdd051c0
[ "MIT" ]
null
null
null
onnx_chainer/replace_func.py
hyabe/onnx-chainer
339ff390957d9dd29843add015533290fdd051c0
[ "MIT" ]
null
null
null
import inspect import chainer class WrappedFunctionNode(chainer.FunctionNode): """Wrap the target function and operate as ``FunctionNode`` Arguments: name (str): name of the function node func (func): the target function args (list): args for the function kwargs (dict): kwarg...
34.937799
79
0.598055
7c8f5840ad2e4fae2d977a9eca805d02f27aa776
416
py
Python
db/redis/get_all.py
Svolcano/python_exercise
a50e05891cc7f1fbb40ebcae324b09b6a14473d2
[ "MIT" ]
6
2015-07-09T08:47:08.000Z
2020-05-16T10:47:31.000Z
db/redis/get_all.py
Svolcano/python_exercise
a50e05891cc7f1fbb40ebcae324b09b6a14473d2
[ "MIT" ]
7
2019-03-27T04:13:12.000Z
2022-03-02T14:54:56.000Z
db/redis/get_all.py
Svolcano/python_exercise
a50e05891cc7f1fbb40ebcae324b09b6a14473d2
[ "MIT" ]
2
2019-06-21T06:46:28.000Z
2019-12-23T09:31:09.000Z
import redis import ujson host = '172.18.18.162' port = 6379 rh = redis.Redis(host=host, port=port, db=6) all_keys = rh.keys('*') res = [] c = 1000 for k in all_keys: v = rh.get(k) res.append((k.decode(), v.decode())) c -= 1 print(c) if c == 0: break print('get done') with open("cache.tx...
17.333333
51
0.540865
87ebee86cc52b0483595af006e2d1924fb0b3bed
429
py
Python
api_yamdb/reviews/migrations/0006_auto_20211225_0125.py
ilyarogozin/yamdb_api
050185b1ae4bc45e19a64de968f6c432b2e8d925
[ "MIT" ]
null
null
null
api_yamdb/reviews/migrations/0006_auto_20211225_0125.py
ilyarogozin/yamdb_api
050185b1ae4bc45e19a64de968f6c432b2e8d925
[ "MIT" ]
null
null
null
api_yamdb/reviews/migrations/0006_auto_20211225_0125.py
ilyarogozin/yamdb_api
050185b1ae4bc45e19a64de968f6c432b2e8d925
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2021-12-25 01:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('reviews', '0005_auto_20211225_0124'), ] operations = [ migrations.AlterModelOptions( name='title', options={'ordering': ('-...
23.833333
127
0.620047
50a13d92d54f74b59168c52c2e12084adedc69d9
7,198
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1alpha1_volume_attachment.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1alpha1_volume_attachment.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1alpha1_volume_attachment.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1alp...
32.423423
295
0.623368
9910d72b7a78d637773e4891dda93250c5df77b5
1,113
py
Python
data/merge_traindev4sub.py
sonsus/cnn-text-classification-pytorch
d023c6bc30be18e1363eb04d387b8936098a7b78
[ "Apache-2.0" ]
null
null
null
data/merge_traindev4sub.py
sonsus/cnn-text-classification-pytorch
d023c6bc30be18e1363eb04d387b8936098a7b78
[ "Apache-2.0" ]
null
null
null
data/merge_traindev4sub.py
sonsus/cnn-text-classification-pytorch
d023c6bc30be18e1363eb04d387b8936098a7b78
[ "Apache-2.0" ]
null
null
null
from fire import Fire import jsonlines as jsl from tqdm import tqdm #import csv #import json #from collections import defaultdict from munch import Munch from pathlib import Path def merge(k=0, dataroot='./'):#, vocabpath='./vocab.json'): dataroot = Path(dataroot) with jsl.open(dataroot/f"train{k}.jsonl") as ...
27.825
141
0.598383
9040c0bcd7e87c4b9075915fb7495db0191b9700
2,658
py
Python
model/maskrcnn_benchmark_architecture/maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py
JinGyeSetBirdsFree/FudanOCR
e6b18b0eefaf832b2eb7198f5df79e00bd4cee36
[ "MIT" ]
25
2020-02-29T12:14:10.000Z
2020-04-24T07:56:06.000Z
model/maskrcnn_benchmark_architecture/maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py
dun933/FudanOCR
fd79b679044ea23fd9eb30691453ed0805d2e98b
[ "MIT" ]
33
2020-12-10T19:15:39.000Z
2022-03-12T00:17:30.000Z
model/maskrcnn_benchmark_architecture/maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py
dun933/FudanOCR
fd79b679044ea23fd9eb30691453ed0805d2e98b
[ "MIT" ]
4
2020-02-29T12:14:18.000Z
2020-04-12T12:26:50.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch from torch import nn from .roi_box_feature_extractors import make_roi_box_feature_extractor from .roi_box_predictors import make_roi_box_predictor from .inference import make_roi_box_post_processor from .loss import make_roi_box_loss_...
37.43662
96
0.670429
0975359c5ca9da4008e5495a618352978c2849d5
4,788
py
Python
run.py
gigantenbein/ReVAE
2130a0891cf465205e29b13b8008af67f6f6eef1
[ "MIT" ]
null
null
null
run.py
gigantenbein/ReVAE
2130a0891cf465205e29b13b8008af67f6f6eef1
[ "MIT" ]
2
2021-06-08T21:02:55.000Z
2022-01-13T02:19:24.000Z
run.py
gigantenbein/ReVAE
2130a0891cf465205e29b13b8008af67f6f6eef1
[ "MIT" ]
null
null
null
import logging import time import argparse import torch import torch.utils.data from torch import nn, optim from torch.nn import functional as F from torchvision import datasets, transforms from torchvision.utils import save_image import pytest from guppy import hpy from model import ConvolutionalVAE, ReVAE, loss_func...
37.700787
114
0.60401
09342da5f8bcd6d88372dc2a73d99a2c055c7ba5
813
py
Python
runtests.py
ivellios/django-rotv-apps
95aad945debd0e60d210057c0605928483e213a8
[ "MIT" ]
1
2017-12-05T13:24:23.000Z
2017-12-05T13:24:23.000Z
runtests.py
ivellios/django-rotv-apps
95aad945debd0e60d210057c0605928483e213a8
[ "MIT" ]
9
2017-11-22T23:29:48.000Z
2022-03-11T23:11:34.000Z
runtests.py
ivellios/django-rotv-apps
95aad945debd0e60d210057c0605928483e213a8
[ "MIT" ]
null
null
null
import os import sys import django from django.conf import settings from django.test.utils import get_runner def runtests(): os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.test_settings' django.setup() TestRunner = get_runner(settings) test_runner = TestRunner() failures = test_runner.run_tests(['...
30.111111
64
0.494465
a36f0ee6fbde2948c433d829c4d3c9cbcfe4953b
2,236
py
Python
examples/animation_ripple.py
KeithRieck/PixelStrip_MicroPython
bd74e07d6a74767e581cb404ce46f58f87bb6dab
[ "BSD-2-Clause" ]
null
null
null
examples/animation_ripple.py
KeithRieck/PixelStrip_MicroPython
bd74e07d6a74767e581cb404ce46f58f87bb6dab
[ "BSD-2-Clause" ]
null
null
null
examples/animation_ripple.py
KeithRieck/PixelStrip_MicroPython
bd74e07d6a74767e581cb404ce46f58f87bb6dab
[ "BSD-2-Clause" ]
null
null
null
import utime import pixelstrip from math import sin, floor, ceil class RippleAnimation(pixelstrip.Animation): """ Pixels fade in and out of color, based on the sum of sine curves. """ def __init__( self, color_list=[(0, 0, 0, 0), (255, 0, 0, 0), (128, 128, 0, 0), (0, 0, 0, 0)], ...
31.942857
95
0.54517
3c285549669f60c6fc447e6d3bba79040e12cfa5
484
py
Python
DataPrep/Get_Embedding.py
MikkelGroenning/deep_learning_project_with_corti
eacdf470f16cb6402a163d9fb38c8005690a3b4a
[ "MIT" ]
null
null
null
DataPrep/Get_Embedding.py
MikkelGroenning/deep_learning_project_with_corti
eacdf470f16cb6402a163d9fb38c8005690a3b4a
[ "MIT" ]
null
null
null
DataPrep/Get_Embedding.py
MikkelGroenning/deep_learning_project_with_corti
eacdf470f16cb6402a163d9fb38c8005690a3b4a
[ "MIT" ]
null
null
null
import gensim import pickle import os # Set path to current wd abspath = os.path.abspath(__file__) dname = os.path.dirname(abspath) os.chdir(dname) fname_open = '../Data/Raw/wiki-news-300d-1M.vec' fname_write = '../Data/Processed/Embedding.pickle' # Load model data = gensim.models.KeyedVectors.load_word2vec_format('...
26.888889
91
0.756198
f219b3fd0e1986dc1256f6058f04b96ca1a4c6c0
3,126
py
Python
angr-doc/examples/layer7_onlyone/solve.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
angr-doc/examples/layer7_onlyone/solve.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
angr-doc/examples/layer7_onlyone/solve.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
#import logging # #logging.getLogger('angr.surveyors.explorer').setLevel(logging.DEBUG) #logging.getLogger('angr.surveyor').setLevel(logging.DEBUG) #logging.getLogger('angr.analyses.veritesting').setLevel(logging.DEBUG) """ This is an example that uses angr to solve a challenge from Layer7 CTF 2015. """ import angr i...
36.776471
100
0.708573
970fa1b0fbf7096b92e55369beaa5aa0ad645a00
5,743
py
Python
sdks/python/apache_beam/examples/complete/game/leader_board_it_test.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
3
2020-08-28T17:47:26.000Z
2021-08-17T06:38:58.000Z
sdks/python/apache_beam/examples/complete/game/leader_board_it_test.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
80
2020-01-16T09:55:09.000Z
2020-10-03T13:43:07.000Z
sdks/python/apache_beam/examples/complete/game/leader_board_it_test.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
1
2021-10-05T20:53:52.000Z
2021-10-05T20:53:52.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
35.233129
80
0.728713
08644f7676605491dbae989d8e6cb18124d2a4be
813
py
Python
lorabike/urls.py
loraarchlab/server-app
114ad254ebe93c69dcf742b9cbc18afe30d3605f
[ "Apache-2.0" ]
1
2020-11-04T02:38:07.000Z
2020-11-04T02:38:07.000Z
lorabike/urls.py
loraarchlab/server-app
114ad254ebe93c69dcf742b9cbc18afe30d3605f
[ "Apache-2.0" ]
null
null
null
lorabike/urls.py
loraarchlab/server-app
114ad254ebe93c69dcf742b9cbc18afe30d3605f
[ "Apache-2.0" ]
1
2018-09-22T07:45:48.000Z
2018-09-22T07:45:48.000Z
"""lorabike URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/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') Class-base...
35.347826
77
0.708487
36fa39406af89b86ec20f8b04a572a3a2142bf3e
1,466
py
Python
src/config/schema-transformer/st_amqp.py
zhongyangni/controller
439032d46767dd033ba55c1e5c34e7f2213da8b3
[ "Apache-2.0" ]
null
null
null
src/config/schema-transformer/st_amqp.py
zhongyangni/controller
439032d46767dd033ba55c1e5c34e7f2213da8b3
[ "Apache-2.0" ]
2
2018-12-04T02:20:52.000Z
2018-12-22T06:16:30.000Z
src/config/schema-transformer/st_amqp.py
zhongyangni/controller
439032d46767dd033ba55c1e5c34e7f2213da8b3
[ "Apache-2.0" ]
1
2018-12-04T02:07:47.000Z
2018-12-04T02:07:47.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. # """ Sechmatransformer amqp handler """ from cfgm_common.vnc_amqp import VncAmqpHandle from config_db import DBBaseST, VirtualNetworkST class STAmqpHandle(VncAmqpHandle): def __init__(self, logger, ...
35.756098
77
0.622783
8270458babfc58ca264a89e7d7bf1c0df70869fe
381
py
Python
src/apps/blog/migrations/0008_auto_20210217_1243.py
VitorEhrig-Fig/Cyberzone
882b61abae00f9839261a5cd580ddf47105e47fa
[ "Apache-2.0" ]
4
2020-12-16T19:22:34.000Z
2021-01-20T21:21:12.000Z
src/apps/blog/migrations/0008_auto_20210217_1243.py
VitorEhrig-Fig/Cyberzone
882b61abae00f9839261a5cd580ddf47105e47fa
[ "Apache-2.0" ]
2
2021-02-04T18:30:17.000Z
2021-02-05T01:01:40.000Z
src/apps/blog/migrations/0008_auto_20210217_1243.py
VitorEhrig-Fig/Cyberzone
882b61abae00f9839261a5cd580ddf47105e47fa
[ "Apache-2.0" ]
6
2021-02-08T17:06:25.000Z
2021-02-18T16:50:19.000Z
# Generated by Django 3.1.5 on 2021-02-17 12:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0007_auto_20210211_1244'), ] operations = [ migrations.AlterField( model_name='post', name='title', ...
20.052632
51
0.593176
c034691b24f8fd55ddd39db733cd4643dc922484
944
py
Python
xerosdk/exceptions.py
akshay-codemonk/xero-sdk-py
7a8ce6dee9914becd8737800e05f33102d780e1c
[ "MIT" ]
null
null
null
xerosdk/exceptions.py
akshay-codemonk/xero-sdk-py
7a8ce6dee9914becd8737800e05f33102d780e1c
[ "MIT" ]
null
null
null
xerosdk/exceptions.py
akshay-codemonk/xero-sdk-py
7a8ce6dee9914becd8737800e05f33102d780e1c
[ "MIT" ]
1
2020-01-06T04:57:44.000Z
2020-01-06T04:57:44.000Z
""" Xero SDK exceptions """ class XeroSDKError(Exception): """ The base exception class for Xero SDK """ def __init__(self, msg, response=None): super(XeroSDKError, self).__init__(msg) self.message = msg self.response = response def __str__(self): return repr(self...
22.47619
73
0.698093
44a8f223b10d6f4932e78a86c04f454e18caa030
398
py
Python
project/wsgi.py
sasakalaba/django2_template
910847cd8a70e7c616711a4e9973e43791e36035
[ "Unlicense" ]
null
null
null
project/wsgi.py
sasakalaba/django2_template
910847cd8a70e7c616711a4e9973e43791e36035
[ "Unlicense" ]
null
null
null
project/wsgi.py
sasakalaba/django2_template
910847cd8a70e7c616711a4e9973e43791e36035
[ "Unlicense" ]
null
null
null
""" WSGI config for empty_project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANG...
23.411765
78
0.788945
e6c5784af183f8518d1fd0b44f8c339bb6dd9498
2,378
py
Python
problem_solving/views.py
getmiranda/cheaf-test-api
69becf2e07acd5ee35ede73d7b462079fcc2f2f6
[ "MIT" ]
null
null
null
problem_solving/views.py
getmiranda/cheaf-test-api
69becf2e07acd5ee35ede73d7b462079fcc2f2f6
[ "MIT" ]
null
null
null
problem_solving/views.py
getmiranda/cheaf-test-api
69becf2e07acd5ee35ede73d7b462079fcc2f2f6
[ "MIT" ]
null
null
null
from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework import status from drf_yasg.utils import swagger_auto_schema from geopy.distance import geodesic from geopy.geocoders import Nominatim from problem_solving import serializers @swagger_auto_schema( oper...
30.883117
79
0.673675
7ff4beac97173b350694f47765fa64328aa29d62
9,627
py
Python
dataset/dataset_common.py
simenvg/SSD.TensorFlow
3d68d7dbae5477dba18b13485f7f1ce1bf06aea4
[ "Apache-2.0" ]
1
2020-02-20T17:21:15.000Z
2020-02-20T17:21:15.000Z
dataset/dataset_common.py
simenvg/SSD.TensorFlow
3d68d7dbae5477dba18b13485f7f1ce1bf06aea4
[ "Apache-2.0" ]
null
null
null
dataset/dataset_common.py
simenvg/SSD.TensorFlow
3d68d7dbae5477dba18b13485f7f1ce1bf06aea4
[ "Apache-2.0" ]
1
2020-02-20T17:21:17.000Z
2020-02-20T17:21:17.000Z
# Copyright 2018 Changan Wang # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
39.293878
194
0.5898
6dc8653a231c1b9b18e3d115510f122cdb291e10
457
py
Python
data/scripts/templates/object/static/particle/shared_particle_distant_ships_rebel.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/static/particle/shared_particle_distant_ships_rebel.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/static/particle/shared_particle_distant_ships_rebel.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Static() result.template = "object/static/particle/shared_particle_distant_ships_rebel.iff" result.attribute_temp...
26.882353
83
0.733042
a798a6e860138aec7ee5895ec7d9fc2e03f69d0b
666
py
Python
split.py
SiriJustas/ptNST
9820a0624a35ac0c0817f3832572d0c4aa5ae87c
[ "MIT" ]
null
null
null
split.py
SiriJustas/ptNST
9820a0624a35ac0c0817f3832572d0c4aa5ae87c
[ "MIT" ]
null
null
null
split.py
SiriJustas/ptNST
9820a0624a35ac0c0817f3832572d0c4aa5ae87c
[ "MIT" ]
null
null
null
import cv2 import os import shutil from pathlib import Path def splitIntoFrames(fileName): dirpath = Path(os.getcwd(), 'frames') if dirpath.exists() and dirpath.is_dir(): shutil.rmtree(dirpath) os.mkdir('frames') dirpath = Path(os.getcwd(), 'output') if dirpath.exists() and dirpath.is_dir(): shutil.rmt...
22.965517
74
0.690691
9c9a83a793382a92e2e2316d37bda846591c0198
2,297
py
Python
optiml/opti/unconstrained/stochastic/adagrad.py
DonatoMeoli/NumericalOptimization
e60144458026a6ddbe1612f92b838c342db572eb
[ "MIT" ]
4
2020-05-22T09:17:56.000Z
2022-03-15T18:23:56.000Z
optiml/opti/unconstrained/stochastic/adagrad.py
DonatoMeoli/NumericalOptimization
e60144458026a6ddbe1612f92b838c342db572eb
[ "MIT" ]
1
2022-02-25T08:29:56.000Z
2022-02-25T09:03:13.000Z
optiml/opti/unconstrained/stochastic/adagrad.py
DonatoMeoli/NumericalOptimization
e60144458026a6ddbe1612f92b838c342db572eb
[ "MIT" ]
5
2020-10-10T13:38:57.000Z
2022-03-13T20:23:37.000Z
import numpy as np from . import StochasticOptimizer class AdaGrad(StochasticOptimizer): def __init__(self, f, x=None, batch_size=None, eps=1e-6, tol=1e-8, epochs=1000, step_size=1., ...
28.012195
90
0.41663
f1d4f412f766097bf89d5d2163e6e6489dd9fd3b
309
py
Python
aiidalab_optimade/subwidgets/__init__.py
csadorf/aiidalab-optimade
5c09750a66109a67edb08771f44960d051b9aead
[ "MIT" ]
null
null
null
aiidalab_optimade/subwidgets/__init__.py
csadorf/aiidalab-optimade
5c09750a66109a67edb08771f44960d051b9aead
[ "MIT" ]
null
null
null
aiidalab_optimade/subwidgets/__init__.py
csadorf/aiidalab-optimade
5c09750a66109a67edb08771f44960d051b9aead
[ "MIT" ]
null
null
null
# pylint: disable=undefined-variable from .filter_inputs import * from .output_summary import * from .provider_database import * from .results import * __all__ = ( filter_inputs.__all__ # noqa + output_summary.__all__ # noqa + provider_database.__all__ # noqa + results.__all__ # noqa )
22.071429
39
0.721683
eaaa2d85143a3e2d515a7125bc48364077fbaa01
1,793
gyp
Python
binding.gyp
aumhaa/node-midi
3942addb96655f19d51426110cc6cfdbb8f10f88
[ "MIT" ]
2
2019-05-10T22:00:28.000Z
2020-07-10T17:34:47.000Z
binding.gyp
aumhaa/node-midi
3942addb96655f19d51426110cc6cfdbb8f10f88
[ "MIT" ]
null
null
null
binding.gyp
aumhaa/node-midi
3942addb96655f19d51426110cc6cfdbb8f10f88
[ "MIT" ]
null
null
null
{ 'targets': [ { 'target_name': 'midi', 'include_dirs': [ "<!(node -e \"require('nan')\")", 'src' ], 'sources': [ 'src/node-midi.cpp' ], 'conditions': [ ['OS=="linux"', { 'cflags_cc!': [ '-fno-exceptions' ...
21.865854
60
0.313999
4a603cb18d88a7a2da0a9e50c337786fb3abe98a
1,644
py
Python
sdk/keyvault/azure-keyvault/azure/keyvault/v7_3_preview/models/key_release_parameters.py
mccoyp/azure-keyvault-7.3-preview
da351753a9d3d2bf97c27566865cd88bae7faa55
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault/azure/keyvault/v7_3_preview/models/key_release_parameters.py
mccoyp/azure-keyvault-7.3-preview
da351753a9d3d2bf97c27566865cd88bae7faa55
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault/azure/keyvault/v7_3_preview/models/key_release_parameters.py
mccoyp/azure-keyvault-7.3-preview
da351753a9d3d2bf97c27566865cd88bae7faa55
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
34.978723
77
0.600365
72f219004b0cf440b4f68495664695f2ba826ef1
3,206
py
Python
tests/test_parser_format.py
jhofeditz/opsdroid
e09060b213f046e1e17d84893e4e425a1b7e71b6
[ "Apache-2.0" ]
null
null
null
tests/test_parser_format.py
jhofeditz/opsdroid
e09060b213f046e1e17d84893e4e425a1b7e71b6
[ "Apache-2.0" ]
null
null
null
tests/test_parser_format.py
jhofeditz/opsdroid
e09060b213f046e1e17d84893e4e425a1b7e71b6
[ "Apache-2.0" ]
null
null
null
import asynctest import asynctest.mock as amock from opsdroid.__main__ import configure_lang from opsdroid.core import OpsDroid from opsdroid.matchers import match_parse from opsdroid.events import Message from opsdroid.parsers.parseformat import parse_format class TestParserParseFormat(asynctest.TestCase): """T...
39.580247
86
0.643481
a09ed11111dfe98504aec10f5f1cc5910abb493a
1,590
py
Python
tests/correct_programs/ethz_eprog_2019/exercise_09/test_problem_03.py
pschanely/python-by-contract-corpus
b68ea59b962f105182d3bf57fcd6e23f9b815ddc
[ "MIT" ]
null
null
null
tests/correct_programs/ethz_eprog_2019/exercise_09/test_problem_03.py
pschanely/python-by-contract-corpus
b68ea59b962f105182d3bf57fcd6e23f9b815ddc
[ "MIT" ]
null
null
null
tests/correct_programs/ethz_eprog_2019/exercise_09/test_problem_03.py
pschanely/python-by-contract-corpus
b68ea59b962f105182d3bf57fcd6e23f9b815ddc
[ "MIT" ]
null
null
null
import textwrap import unittest from typing import Set import icontract_hypothesis from icontract import require from correct_programs.common import Lines from correct_programs.ethz_eprog_2019.exercise_09 import problem_03 class TestWithIcontractHypothesis(unittest.TestCase): def test_functions(self) -> None: ...
28.909091
85
0.606918
59ade75afb244db334f433463fc6914a7b7b97fd
10,342
py
Python
src/dev/arm/Gic.py
caihuayi/gem5
96fce476785a834f102ae69a895e661cf08e47cd
[ "BSD-3-Clause" ]
16
2020-09-24T00:17:36.000Z
2021-08-12T06:11:52.000Z
src/dev/arm/Gic.py
caihuayi/gem5
96fce476785a834f102ae69a895e661cf08e47cd
[ "BSD-3-Clause" ]
5
2021-01-27T23:09:06.000Z
2022-01-07T03:19:39.000Z
src/dev/arm/Gic.py
caihuayi/gem5
96fce476785a834f102ae69a895e661cf08e47cd
[ "BSD-3-Clause" ]
15
2020-11-18T00:15:28.000Z
2021-12-12T03:18:34.000Z
# Copyright (c) 2012-2013, 2017-2019 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of th...
38.446097
84
0.688455
4ccd7de6fec8a14db5c1e384ba43183976cf88c7
4,385
py
Python
Library/cqdma.py
Rony-21/mtkclient
745ad5efe4220f153be1e680588831eac4e46daa
[ "MIT" ]
1
2021-08-02T19:13:10.000Z
2021-08-02T19:13:10.000Z
Library/cqdma.py
Rony-21/mtkclient
745ad5efe4220f153be1e680588831eac4e46daa
[ "MIT" ]
null
null
null
Library/cqdma.py
Rony-21/mtkclient
745ad5efe4220f153be1e680588831eac4e46daa
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # (c) B.Kerler 2018-2021 MIT License import logging, os from struct import pack, unpack from Library.utils import LogBase regval = { "CQDMA_INT_FLAG": 0x0, "CQDMA_INT_EN": 0x4, "CQDMA_EN": 0x8, "CQDMA_RESET": 0xc, "CQDMA_FLUSH": 0x14, "CQDMA_SRC": 0x1c...
33.730769
94
0.550285
cc208b1a1c5da82723cb2ce2a84609fa5592983c
12,981
py
Python
src/zmqpubcontrolclient.py
noamkush/pypubcontrol
2b640a009d0cafb9ebdfbca91183856529b4d31f
[ "MIT" ]
2
2018-09-26T14:13:20.000Z
2021-05-30T14:19:11.000Z
src/zmqpubcontrolclient.py
noamkush/pypubcontrol
2b640a009d0cafb9ebdfbca91183856529b4d31f
[ "MIT" ]
5
2017-07-19T20:30:22.000Z
2022-03-14T15:47:09.000Z
src/zmqpubcontrolclient.py
noamkush/pypubcontrol
2b640a009d0cafb9ebdfbca91183856529b4d31f
[ "MIT" ]
5
2016-03-07T07:32:31.000Z
2021-12-24T09:48:07.000Z
# zmqpubcontrolclient.py # ~~~~~~~~~ # This module implements the ZmqPubControlClient class. # :authors: Justin Karneges, Konstantin Bokarius. # :copyright: (c) 2015 by Fanout, Inc. # :license: MIT, see LICENSE for more details. import threading import atexit import timeit from .utilities import _ens...
38.179412
81
0.755874
d45c4327e7c26392297e33ba0c136256e93013d8
1,895
py
Python
common/train.py
svetli-n/Castor
c731061eac238f5efb630e45449af50940962992
[ "Apache-2.0" ]
null
null
null
common/train.py
svetli-n/Castor
c731061eac238f5efb630e45449af50940962992
[ "Apache-2.0" ]
null
null
null
common/train.py
svetli-n/Castor
c731061eac238f5efb630e45449af50940962992
[ "Apache-2.0" ]
null
null
null
from .trainers.sick_trainer import SICKTrainer from .trainers.msrvid_trainer import MSRVIDTrainer from .trainers.trecqa_trainer import TRECQATrainer from .trainers.wikiqa_trainer import WikiQATrainer from .trainers.pit2015_trainer import PIT2015Trainer from .trainers.sst_trainer import SSTTrainer from .trainers.reuters...
35.754717
146
0.719261
cbf9841db7caebe79d26230d4be285671dd49165
42
py
Python
pandera/version.py
kvnkho/pandera
abc817feffc736acd8978cde7e7cf50c3cad2983
[ "MIT" ]
null
null
null
pandera/version.py
kvnkho/pandera
abc817feffc736acd8978cde7e7cf50c3cad2983
[ "MIT" ]
null
null
null
pandera/version.py
kvnkho/pandera
abc817feffc736acd8978cde7e7cf50c3cad2983
[ "MIT" ]
null
null
null
"""Version file""" __version__ = "0.7.0"
10.5
21
0.595238
4b2ecc093292708f9e158e7647b34ebaab42b863
66
py
Python
config.py
itsvismay/simpleregister
5af7e3f67c1a8163d30e845ae0738a8d633b6cc9
[ "MIT" ]
null
null
null
config.py
itsvismay/simpleregister
5af7e3f67c1a8163d30e845ae0738a8d633b6cc9
[ "MIT" ]
null
null
null
config.py
itsvismay/simpleregister
5af7e3f67c1a8163d30e845ae0738a8d633b6cc9
[ "MIT" ]
null
null
null
#For sqlite SQLALCHEMY_DATABASE_URI = "sqlite:///guruvandan.db"
13.2
51
0.757576
bad10fad727df402323f1a53b3531efb555fe324
13,343
py
Python
farm/helpers/EventHelper.py
Nerolation/ethereum-datafarm
7a8e848a097cf9f3083d71a42306474c37fa97b9
[ "Apache-2.0" ]
5
2021-04-21T13:08:04.000Z
2021-04-29T05:19:14.000Z
farm/helpers/EventHelper.py
Nerolation/ethereum-datafarm
7a8e848a097cf9f3083d71a42306474c37fa97b9
[ "Apache-2.0" ]
null
null
null
farm/helpers/EventHelper.py
Nerolation/ethereum-datafarm
7a8e848a097cf9f3083d71a42306474c37fa97b9
[ "Apache-2.0" ]
4
2021-05-22T00:17:21.000Z
2021-11-30T06:46:57.000Z
import json, requests, time from json.decoder import JSONDecodeError from farm.helpers.Logger import globalLogger as gl def from_hex(string): if str(string) == '0x': return 0 return int(str(string),16) def get_header_columns(methodId): if methodId in ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163...
46.491289
138
0.602713
fec1d4362b52caeaeb7c105c832e46cc6d7c8d52
47
py
Python
exercises/change/change.py
kishankj/python
82042de746128127502e109111e6c4e8ab002af6
[ "MIT" ]
1,177
2017-06-21T20:24:06.000Z
2022-03-29T02:30:55.000Z
exercises/change/change.py
kishankj/python
82042de746128127502e109111e6c4e8ab002af6
[ "MIT" ]
1,890
2017-06-18T20:06:10.000Z
2022-03-31T18:35:51.000Z
exercises/change/change.py
kishankj/python
82042de746128127502e109111e6c4e8ab002af6
[ "MIT" ]
1,095
2017-06-26T23:06:19.000Z
2022-03-29T03:25:38.000Z
def find_fewest_coins(coins, target): pass
15.666667
37
0.744681
c6c7e5cdd014695caebc965eb847abbb1d731615
1,362
py
Python
scripts/sdk/common/frontend_test.py
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
210
2019-02-05T12:45:09.000Z
2022-03-28T07:59:06.000Z
scripts/sdk/common/frontend_test.py
PlugFox/fuchsia
39afe5230d41628b3c736a6e384393df954968c8
[ "BSD-2-Clause" ]
56
2021-06-03T03:16:25.000Z
2022-03-20T01:07:44.000Z
scripts/sdk/common/frontend_test.py
PlugFox/fuchsia
39afe5230d41628b3c736a6e384393df954968c8
[ "BSD-2-Clause" ]
73
2019-03-06T18:55:23.000Z
2022-03-26T12:04:51.000Z
#!/usr/bin/env python3.8 # Copyright 2018 The Fuchsia 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 frontend import os import tempfile import unittest class TestFrontend(unittest.TestCase): def test_load_metadata_succes...
34.923077
73
0.619677
c9de8ef1a64d031702f57b6ede80cb2e17c0ffa7
5,182
py
Python
asv/feed.py
asnramos/asv
8a0979b532d06c7c352826e2acf0dd872922260e
[ "BSD-3-Clause" ]
null
null
null
asv/feed.py
asnramos/asv
8a0979b532d06c7c352826e2acf0dd872922260e
[ "BSD-3-Clause" ]
null
null
null
asv/feed.py
asnramos/asv
8a0979b532d06c7c352826e2acf0dd872922260e
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Minimal Atom feed writer. """ import datetime import hashlib import xml.etree.ElementTree as etree from . import util __all__ = ['FeedEntry', 'write_atom'] ATOM_NS = "{http://www.w3.org/2005/Atom}" XML_NS = "{http://www.w3.org/XML/1998/namespace}" ...
27.273684
95
0.585681
0562ec547a76cd28392e55c36153dd74861d91a4
68,609
py
Python
versioneer.py
ttedeschi/dask-jobqueue
43118c18beae24bf602f22081f1ce7d759e0a6b7
[ "BSD-3-Clause" ]
180
2018-03-01T22:25:43.000Z
2022-03-30T10:13:33.000Z
versioneer.py
ttedeschi/dask-jobqueue
43118c18beae24bf602f22081f1ce7d759e0a6b7
[ "BSD-3-Clause" ]
509
2018-03-01T22:11:14.000Z
2022-03-30T18:14:20.000Z
versioneer.py
ttedeschi/dask-jobqueue
43118c18beae24bf602f22081f1ce7d759e0a6b7
[ "BSD-3-Clause" ]
116
2018-03-01T23:37:25.000Z
2022-02-25T15:55:59.000Z
# Version: 0.18 """The Versioneer - like a rocketeer, but for versions. The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/warner/python-versioneer * Brian Warner * License: Public Domain * Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, and pypy * [![Latest Version] ...
37.593973
79
0.624131
e5267407462e33c1593dff65db6d7cd15083b031
9,481
py
Python
docs/conf.py
gavanfantom/python-taiga
6f99ae0f71fe0eea0f5324a9787498995736a9a7
[ "MIT" ]
null
null
null
docs/conf.py
gavanfantom/python-taiga
6f99ae0f71fe0eea0f5324a9787498995736a9a7
[ "MIT" ]
2
2021-04-09T07:01:01.000Z
2021-04-09T07:06:40.000Z
docs/conf.py
jgarte/python-taiga
71888ddec9d2ed5271e0c5ec524ebbcde898ed6d
[ "MIT" ]
null
null
null
# # djangocms-blog documentation build configuration file, created by # sphinx-quickstart on Sun Jun 5 23:27:04 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration ...
32.693103
88
0.70963
bf579cd8498253471bd99fa99becfdfe18b5342c
407
py
Python
compare/migrations/0010_ocrupdate_previous.py
l0rb/buzzword
1f12875cfb883be07890b2da5482d3b53d878a09
[ "MIT" ]
3
2019-02-25T13:00:55.000Z
2021-02-02T22:10:08.000Z
compare/migrations/0010_ocrupdate_previous.py
l0rb/buzzword
1f12875cfb883be07890b2da5482d3b53d878a09
[ "MIT" ]
46
2017-05-29T10:13:52.000Z
2021-09-22T18:04:12.000Z
compare/migrations/0010_ocrupdate_previous.py
l0rb/buzzword
1f12875cfb883be07890b2da5482d3b53d878a09
[ "MIT" ]
3
2019-11-27T19:14:37.000Z
2020-10-27T15:34:41.000Z
# Generated by Django 3.0.5 on 2020-05-30 20:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('compare', '0009_tif'), ] operations = [ migrations.AddField( model_name='ocrupdate', name='previous', fi...
20.35
47
0.577396