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
2f9d6dc12830305f6c983f21decbe647db6b7f36
3,112
bzl
Python
antlir/bzl/template.bzl
facebookincubator/fs_image
3515a24bb0e93176a5584bdc8839464fa28390d7
[ "MIT" ]
9
2019-12-02T20:17:35.000Z
2020-06-13T16:34:25.000Z
antlir/bzl/template.bzl
facebookincubator/fs_image
3515a24bb0e93176a5584bdc8839464fa28390d7
[ "MIT" ]
19
2019-11-22T23:30:04.000Z
2020-07-16T18:05:48.000Z
antlir/bzl/template.bzl
facebookincubator/fs_image
3515a24bb0e93176a5584bdc8839464fa28390d7
[ "MIT" ]
4
2019-12-04T19:03:28.000Z
2020-06-13T16:34:29.000Z
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. load("@bazel_skylib//lib:paths.bzl", "paths") load("@bazel_skylib//lib:shell.bzl", "shell") load("//antlir/bzl:oss_shim.bzl", "buck_genrule"...
33.826087
117
0.59383
d07795cadc20c2587f074732ec3451b2a7450eb6
24,044
py
Python
test/functional/sendheaders.py
taowen1990/merit
d5cd9ff6c2c77caccf6a6b936884e58f2b88faed
[ "MIT" ]
229
2018-01-01T09:43:38.000Z
2022-03-21T23:11:20.000Z
test/functional/sendheaders.py
taowen1990/merit
d5cd9ff6c2c77caccf6a6b936884e58f2b88faed
[ "MIT" ]
109
2018-01-01T17:23:02.000Z
2020-10-31T00:06:19.000Z
test/functional/sendheaders.py
taowen1990/merit
d5cd9ff6c2c77caccf6a6b936884e58f2b88faed
[ "MIT" ]
26
2018-01-02T22:05:19.000Z
2020-10-30T21:10:55.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test behavior of headers messages to announce blocks. Setup: - Two nodes, two p2p connections to nod...
43.875912
130
0.633131
f81cfed50362f95dd18e9b78d2270311badf831a
916
py
Python
.history/ClassFiles/Python301/ObjectOrientatedProgramming/ErrorCatching/ErrorsExceptions_20210216171458.py
minefarmer/CompletePython
6de46e7ee29d9e4eaada60352c193f552afd6f15
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Python301/ObjectOrientatedProgramming/ErrorCatching/ErrorsExceptions_20210216171458.py
minefarmer/CompletePython
6de46e7ee29d9e4eaada60352c193f552afd6f15
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Python301/ObjectOrientatedProgramming/ErrorCatching/ErrorsExceptions_20210216171458.py
minefarmer/CompletePython
6de46e7ee29d9e4eaada60352c193f552afd6f15
[ "Unlicense" ]
null
null
null
# try: # total = 1/0 # # this will not execute # except Exception: # total = 0 # print(total) # 0 # try: # total = 1/0 # print("This will not show up.") # except Exception: # print("Exception was caught") # Exception was caught # total = 0 # print(total) # 0 # num = input("What is a...
24.756757
166
0.606987
59621692a75363571934f7df9767b210bf6b822a
1,774
py
Python
utils/render.py
m-pektas/3D-Face-Practice-with-Pytorch-3D
09c5fde4789c69fb69626a5eb322981d7fc23933
[ "Apache-2.0" ]
1
2022-01-19T19:14:00.000Z
2022-01-19T19:14:00.000Z
utils/render.py
m-pektas/3D-Face-Practice-with-Pytorch-3D
09c5fde4789c69fb69626a5eb322981d7fc23933
[ "Apache-2.0" ]
null
null
null
utils/render.py
m-pektas/3D-Face-Practice-with-Pytorch-3D
09c5fde4789c69fb69626a5eb322981d7fc23933
[ "Apache-2.0" ]
null
null
null
from pytorch3d.structures import Meshes from pytorch3d.renderer import ( look_at_view_transform, FoVPerspectiveCameras, PointLights, DirectionalLights, Materials, RasterizationSettings, MeshRenderer, MeshRasterizer, SoftPhongShader, TexturesUV, TexturesVertex, Poi...
26.088235
95
0.663472
89bcc8be1ac86847a804666a034b7d11422189d5
14,209
py
Python
experiments/depth/OASISDataset2.py
qabach/coen-342-project
70713ccbda4d53b18d29405b454c06a9dd6946cb
[ "BSD-3-Clause" ]
59
2020-07-28T03:18:31.000Z
2022-02-08T22:43:30.000Z
experiments/depth/OASISDataset2.py
qabach/coen-342-project
70713ccbda4d53b18d29405b454c06a9dd6946cb
[ "BSD-3-Clause" ]
9
2020-07-29T09:14:43.000Z
2021-09-12T01:51:31.000Z
experiments/depth/OASISDataset2.py
qabach/coen-342-project
70713ccbda4d53b18d29405b454c06a9dd6946cb
[ "BSD-3-Clause" ]
6
2020-07-29T21:29:37.000Z
2021-09-11T10:56:22.000Z
import numpy as np import random from utils import save_obj, load_obj import torch from torch.utils import data import cv2 import os import random from ReDWebNet import resNet_data_preprocess def vis_mask(depths): out = depths.copy() out = out - np.min(out) out = out / np.max(out) * 255.0 return out def vi...
32.293182
151
0.639172
1756ad5ac7d7677a0eabef043a9da2c73f7d4306
4,403
py
Python
tencentcloud/rkp/v20191209/rkp_client.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
465
2018-04-27T09:54:59.000Z
2022-03-29T02:18:01.000Z
tencentcloud/rkp/v20191209/rkp_client.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
91
2018-04-27T09:48:11.000Z
2022-03-12T08:04:04.000Z
tencentcloud/rkp/v20191209/rkp_client.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
232
2018-05-02T08:02:46.000Z
2022-03-30T08:02:48.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
40.027273
111
0.623439
f7262560c667d65265155dbba12d860d64d7e43a
1,450
py
Python
utils/prediction.py
catskillsresearch/xview2-catskills
5671cff323c8121c0ae251e360e454a1e8568f58
[ "BSD-3-Clause" ]
null
null
null
utils/prediction.py
catskillsresearch/xview2-catskills
5671cff323c8121c0ae251e360e454a1e8568f58
[ "BSD-3-Clause" ]
null
null
null
utils/prediction.py
catskillsresearch/xview2-catskills
5671cff323c8121c0ae251e360e454a1e8568f58
[ "BSD-3-Clause" ]
null
null
null
#!/home/catskills/anaconda3/envs/xview2/bin/python import glob, os from shutil import copyfile from tqdm import tqdm from subprocess import call from IPython.utils.path import ensure_dir_exists # os.environ["CUDA_VISIBLE_DEVICES"]="1" # second gpu VERSION=os.getenv('VERSION') PROJECT='xview2-catskills' USERDIR='/home...
37.179487
128
0.743448
d4d2f67dea82af9baa22b33e3db8b39e5ca19aa1
1,623
py
Python
services/common/adapters/dynamo_player_cache.py
tkblackbelt/Asteroids-Multiplayer-Backend
e09b110ec8698657d8f22f2600e95acc663b1ba0
[ "Apache-2.0" ]
null
null
null
services/common/adapters/dynamo_player_cache.py
tkblackbelt/Asteroids-Multiplayer-Backend
e09b110ec8698657d8f22f2600e95acc663b1ba0
[ "Apache-2.0" ]
null
null
null
services/common/adapters/dynamo_player_cache.py
tkblackbelt/Asteroids-Multiplayer-Backend
e09b110ec8698657d8f22f2600e95acc663b1ba0
[ "Apache-2.0" ]
null
null
null
import boto3 import logging from botocore.exceptions import ClientError from typing import Optional, Dict from common.domain.player_cache_interface import PlayerCacheInterface from common.domain.player import Player class DynamoPlayerCacheAdapter(PlayerCacheInterface): def __init__(self, table_name: str) -> None...
29.509091
69
0.622304
9084b36bfee62a043f4f5aa251eb84276280ac9c
178
py
Python
djangogram/users/urls.py
pyosungkook/djangogram
ac2d4230d075bbcc0c1d2b87e37c23757f48ea27
[ "MIT" ]
null
null
null
djangogram/users/urls.py
pyosungkook/djangogram
ac2d4230d075bbcc0c1d2b87e37c23757f48ea27
[ "MIT" ]
null
null
null
djangogram/users/urls.py
pyosungkook/djangogram
ac2d4230d075bbcc0c1d2b87e37c23757f48ea27
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = "users" urlpatterns = [ path('', views.main, name='main'), path('signup/', views.signup, name='signup'), ]
19.777778
50
0.646067
2b75610b005ed1672f5ee93e84db99eb0e1f9b60
202
py
Python
src/ch8-async-database/main.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
src/ch8-async-database/main.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
src/ch8-async-database/main.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
import uvicorn from web.Startup import Startup app = Startup().create_app() def main(): uvicorn.run("main:app", host='127.0.0.1', port=8000, reload=True) if __name__ == '__main__': main()
14.428571
69
0.663366
0553928b2d5a58d1f25859a88670ddd086b43b91
4,147
py
Python
tests/test_contentsmanager.py
grst/jupytext
0bbcd61297d8ee75b4f0329e2617acbbade3eb10
[ "MIT" ]
null
null
null
tests/test_contentsmanager.py
grst/jupytext
0bbcd61297d8ee75b4f0329e2617acbbade3eb10
[ "MIT" ]
null
null
null
tests/test_contentsmanager.py
grst/jupytext
0bbcd61297d8ee75b4f0329e2617acbbade3eb10
[ "MIT" ]
null
null
null
import os import sys import pytest import jupytext from jupytext import TextFileContentsManager, readf from jupytext.compare import compare_notebooks from .utils import list_all_notebooks jupytext.file_format_version.FILE_FORMAT_VERSION = {} @pytest.mark.skipif(isinstance(TextFileContentsManager, str), ...
34.272727
79
0.697613
485d8860f10e0bd73c2ee9671ed377464f1730a5
2,277
py
Python
sdk/python/pulumi_azure_native/portal/v20181001/get_user_settings_with_location.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/portal/v20181001/get_user_settings_with_location.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/portal/v20181001/get_user_settings_with_location.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
33.985075
162
0.699166
96061e595ae8ca996542b648683c020601b72a39
6,616
py
Python
python/rikai/parquet/resolver.py
chunyang/rikai
9eb7f0da68e6c1e27e74de324afdbd8b375df0c3
[ "Apache-2.0" ]
null
null
null
python/rikai/parquet/resolver.py
chunyang/rikai
9eb7f0da68e6c1e27e74de324afdbd8b375df0c3
[ "Apache-2.0" ]
null
null
null
python/rikai/parquet/resolver.py
chunyang/rikai
9eb7f0da68e6c1e27e74de324afdbd8b375df0c3
[ "Apache-2.0" ]
1
2021-04-02T16:54:59.000Z
2021-04-02T16:54:59.000Z
# Copyright 2020 Rikai Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
29.936652
79
0.620314
b29c8665e8f0a28c64709395aca37905c0447592
4,433
py
Python
tests/conftest.py
kids-first/kf-task-release-reports
6c973fc82b7dab89c45832dd0b61a1ef85a5ebf7
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
kids-first/kf-task-release-reports
6c973fc82b7dab89c45832dd0b61a1ef85a5ebf7
[ "Apache-2.0" ]
11
2018-10-26T17:09:17.000Z
2019-09-23T14:53:53.000Z
tests/conftest.py
kids-first/kf-task-release-reports
6c973fc82b7dab89c45832dd0b61a1ef85a5ebf7
[ "Apache-2.0" ]
null
null
null
import datetime import pytest import json import jwt from reports import create_app from unittest.mock import patch, MagicMock from moto.dynamodb2 import dynamodb_backend2, mock_dynamodb2 from schema import task_schema, release_summary_schema, study_summary_schema @pytest.yield_fixture(scope="module") def client(): ...
32.357664
78
0.606813
f0692c3d4af08d2a61a8acaf97c135f85471d036
21,794
py
Python
singer_sdk/helpers/_simpleeval.py
meltano/sdk
83dde4fe922f9f91bd3c57277849a2a2daa8f09a
[ "Apache-2.0" ]
13
2021-06-21T17:30:32.000Z
2021-12-06T18:45:34.000Z
singer_sdk/helpers/_simpleeval.py
meltano/sdk
83dde4fe922f9f91bd3c57277849a2a2daa8f09a
[ "Apache-2.0" ]
null
null
null
singer_sdk/helpers/_simpleeval.py
meltano/sdk
83dde4fe922f9f91bd3c57277849a2a2daa8f09a
[ "Apache-2.0" ]
null
null
null
""" Simpleeval module originally imported on 2021-09-16 from: - https://github.com/danthedeckie/simpleeval For more information: - https://gitlab.com/meltano/sdk/-/issues/213 ------------------------------------- SimpleEval - (C) 2013-2019 Daniel Fairhead ------------------------------------- An short, easy to use,...
32.097202
91
0.603561
c97543731341cb4d11f638d02fa58877b6f2559a
301
py
Python
apps/core/email_service.py
pixelpassion/django-saas-boilerplate
8888d67181c760708edb18a4832d9002340878fa
[ "MIT" ]
37
2020-11-30T17:05:00.000Z
2022-03-25T11:03:23.000Z
apps/core/email_service.py
gd-js/django-saas-boilerplate
8888d67181c760708edb18a4832d9002340878fa
[ "MIT" ]
5
2021-04-08T21:58:32.000Z
2021-06-10T19:59:56.000Z
apps/core/email_service.py
gd-js/django-saas-boilerplate
8888d67181c760708edb18a4832d9002340878fa
[ "MIT" ]
7
2021-04-24T14:17:16.000Z
2022-02-08T13:38:12.000Z
from apps.core.custom_email_backend import SaasyEmailMessage class BaseSaasyEmailService: def _send_message(self, email, template_name, context={}): email_message = SaasyEmailMessage( template=template_name, context=context, to=[email] ) email_message.send()
30.1
63
0.714286
c2b93b68ee697700d598825767573073018ded6c
4,291
py
Python
test/functional/zmq_test.py
colonycash/colonycash
79e4437578d2dcc51952306c8ade9baa3f8c86b3
[ "MIT" ]
null
null
null
test/functional/zmq_test.py
colonycash/colonycash
79e4437578d2dcc51952306c8ade9baa3f8c86b3
[ "MIT" ]
null
null
null
test/functional/zmq_test.py
colonycash/colonycash
79e4437578d2dcc51952306c8ade9baa3f8c86b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the ZMQ API.""" import configparser import os import struct from test_framework.test_framework im...
37.313043
123
0.618038
0e8a69757d1b22300ab62eafed15a397f7c91bbc
3,044
py
Python
Instanssi/admin_slides/views.py
jpot/Instanssi.org
5b0e3d57e002a9e8f5bb32973d43884fbdbd6a7d
[ "MIT" ]
6
2015-04-03T12:15:02.000Z
2019-05-29T07:56:11.000Z
Instanssi/admin_slides/views.py
jpot/Instanssi.org
5b0e3d57e002a9e8f5bb32973d43884fbdbd6a7d
[ "MIT" ]
52
2015-03-04T21:15:48.000Z
2022-03-21T20:16:24.000Z
Instanssi/admin_slides/views.py
jpot/Instanssi.org
5b0e3d57e002a9e8f5bb32973d43884fbdbd6a7d
[ "MIT" ]
6
2017-09-26T00:52:51.000Z
2020-02-17T17:24:21.000Z
# -*- coding: utf-8 -*- from Instanssi.common.auth import staff_access_required from django.shortcuts import get_object_or_404 from Instanssi.kompomaatti.models import Compo, Entry from Instanssi.kompomaatti.misc import entrysort from Instanssi.admin_base.misc.custom_render import admin_render @staff_access_required...
26.938053
90
0.551905
7c95728d02b2e8f0a5075dfef693767d3f21e86f
317
py
Python
openghg/store/__init__.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
5
2021-03-02T09:04:07.000Z
2022-01-25T09:58:16.000Z
openghg/store/__init__.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
229
2020-09-30T15:08:39.000Z
2022-03-31T14:23:55.000Z
openghg/store/__init__.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
null
null
null
from ._emissions import Emissions from ._eulerian_model import EulerianModel from ._footprints import Footprints from ._obsmobile import ObsMobile from ._obssurface import ObsSurface from ._metstore import METStore from ._recombination import recombine_datasets, recombine_multisite from ._segment import assign_data
35.222222
67
0.867508
c97a62dd2b863e9901697ddc57f40d0c779ab829
1,182
py
Python
examples/restful.py
argo-vision/pyservices
0de442389cc0cd3bd007ca19a72c6168d3dab4c5
[ "MIT" ]
2
2019-04-25T21:10:27.000Z
2019-07-08T07:56:43.000Z
examples/restful.py
argo-vision/pyservices
0de442389cc0cd3bd007ca19a72c6168d3dab4c5
[ "MIT" ]
2
2019-07-09T12:50:54.000Z
2019-07-10T16:53:57.000Z
examples/restful.py
argo-vision/pyservices
0de442389cc0cd3bd007ca19a72c6168d3dab4c5
[ "MIT" ]
4
2019-06-30T08:53:15.000Z
2019-07-08T15:41:45.000Z
import pyservices as ps @ps.model(id_field = None) class Note(): def __init__(self, title, content): self.title = title self.content = content # NOTE: Path is implicitly /<prefix>. The prefix is the model class name lowered. @ps.rest(model = Note, path = "/note") class NoteService(ps.S...
35.818182
108
0.685279
2e5db69cbca4527d1e08ab10f0a988cccb4947c8
1,030
py
Python
patchmatch/evaluate_metric.py
galad-loth/LearnDescriptor
30552a699597415a13793eb85d21b5e33a296a99
[ "Apache-2.0" ]
100
2018-02-06T10:47:43.000Z
2022-02-16T01:11:30.000Z
patchmatch/evaluate_metric.py
JiaxueLi/DeepMatch
30552a699597415a13793eb85d21b5e33a296a99
[ "Apache-2.0" ]
2
2019-07-24T17:22:37.000Z
2020-03-19T04:11:47.000Z
patchmatch/evaluate_metric.py
JiaxueLi/DeepMatch
30552a699597415a13793eb85d21b5e33a296a99
[ "Apache-2.0" ]
21
2018-11-11T06:35:43.000Z
2020-11-25T07:52:20.000Z
import numpy as npy import mxnet as mx def pn_accuracy(gt_label, pred_val): pred_label=npy.ones(pred_val.shape,dtype=npy.int8) pred_label[pred_val<0]=-1 if len(gt_label.shape) == 1: gt_label = gt_label.reshape(gt_label.shape[0], 1) return npy.sum(pred_label == gt_label)*1.0/gt_lab...
35.517241
81
0.614563
af954726efc95c46eb5648bf4d2827a792a77f79
1,275
py
Python
env/Lib/site-packages/plotly/validators/histogram/marker/pattern/__init__.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/histogram/marker/pattern/__init__.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/histogram/marker/pattern/__init__.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import sys if sys.version_info < (3, 7): from ._soliditysrc import SoliditysrcValidator from ._solidity import SolidityValidator from ._sizesrc import SizesrcValidator from ._size import SizeValidator from ._shapesrc import ShapesrcValidator from ._shape import ShapeValidator from ._fillmod...
34.459459
55
0.676863
1b785fb33a9d1f77487a165441a7f2ac045fdaab
2,927
py
Python
tests/python_client/common/milvus_sys.py
parsa-ra/milvus
d7ebd448baee1c4576d6e5172e9918b741d9da10
[ "Apache-2.0" ]
1
2021-09-30T02:22:03.000Z
2021-09-30T02:22:03.000Z
tests/python_client/common/milvus_sys.py
parsa-ra/milvus
d7ebd448baee1c4576d6e5172e9918b741d9da10
[ "Apache-2.0" ]
null
null
null
tests/python_client/common/milvus_sys.py
parsa-ra/milvus
d7ebd448baee1c4576d6e5172e9918b741d9da10
[ "Apache-2.0" ]
null
null
null
import ujson import json from pymilvus.grpc_gen import milvus_pb2 as milvus_types from pymilvus import connections sys_info_req = ujson.dumps({"metric_type": "system_info"}) sys_statistics_req = ujson.dumps({"metric_type": "system_statistics"}) sys_logs_req = ujson.dumps({"metric_type": "system_logs"}) class MilvusS...
37.050633
98
0.645029
6c2c339ace5017a9d0d9fd7f5f42384b73802953
1,949
py
Python
tests/test_downsample.py
chunglabmit/tsv
68c4393ef648fbbc15da2d50921c9a1af360ca2f
[ "MIT" ]
null
null
null
tests/test_downsample.py
chunglabmit/tsv
68c4393ef648fbbc15da2d50921c9a1af360ca2f
[ "MIT" ]
1
2022-01-28T20:25:50.000Z
2022-01-28T20:25:50.000Z
tests/test_downsample.py
chunglabmit/tsv
68c4393ef648fbbc15da2d50921c9a1af360ca2f
[ "MIT" ]
2
2020-01-10T21:55:38.000Z
2022-01-28T20:00:06.000Z
import contextlib import glob import numpy as np import os import unittest import tifffile import tempfile import shutil from tsv.downsample import main @contextlib.contextmanager def make_case(shape): """ Make a stack of files :param shape: the shape of the TIF files to make :return: a 3 tuple of so...
29.984615
79
0.61724
058737ee47cb5c4adad03dd6c8e5ba2578485808
14,832
py
Python
mlblocks/mlpipeline.py
brucebcampbell/MLBlocks
e1ca77bce3c4537c0800a4c1395e1b6bbde5465d
[ "MIT" ]
1
2019-03-26T20:09:17.000Z
2019-03-26T20:09:17.000Z
mlblocks/mlpipeline.py
brucebcampbell/MLBlocks
e1ca77bce3c4537c0800a4c1395e1b6bbde5465d
[ "MIT" ]
null
null
null
mlblocks/mlpipeline.py
brucebcampbell/MLBlocks
e1ca77bce3c4537c0800a4c1395e1b6bbde5465d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Package where the MLPipeline class is defined.""" import json import logging from collections import Counter, OrderedDict from mlblocks.mlblock import MLBlock LOGGER = logging.getLogger(__name__) class MLPipeline(): """MLPipeline Class. The **MLPipeline** class represents a Mac...
38.42487
96
0.575243
5dca5abef1b1c7bdcee30bc603283dad1d105b7e
5,021
py
Python
tensorflow_datasets/core/download/extractor_test.py
shashwat9kumar/datasets
99b055408025f8e934fcbb0fc054488aa087ebfb
[ "Apache-2.0" ]
1
2019-07-19T15:01:45.000Z
2019-07-19T15:01:45.000Z
tensorflow_datasets/core/download/extractor_test.py
shashwat9kumar/datasets
99b055408025f8e934fcbb0fc054488aa087ebfb
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/download/extractor_test.py
shashwat9kumar/datasets
99b055408025f8e934fcbb0fc054488aa087ebfb
[ "Apache-2.0" ]
1
2021-08-02T22:12:40.000Z
2021-08-02T22:12:40.000Z
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
35.864286
79
0.707429
be2fbcefaedb8d0b5f0e2fe1bb8500f49b81637c
11,801
py
Python
efficientdet/third_party/graph_edit/tests/select_test.py
ultinous-zssanta/automl
673d3ae0046854052b577e5461f30d7d53f61254
[ "Apache-2.0" ]
2
2020-11-10T19:01:21.000Z
2021-01-14T21:35:05.000Z
efficientdet/third_party/graph_edit/tests/select_test.py
ultinous-zssanta/automl
673d3ae0046854052b577e5461f30d7d53f61254
[ "Apache-2.0" ]
1
2021-02-23T10:13:48.000Z
2021-02-23T10:13:48.000Z
efficientdet/third_party/graph_edit/tests/select_test.py
ultinous-zssanta/automl
673d3ae0046854052b577e5461f30d7d53f61254
[ "Apache-2.0" ]
1
2021-07-07T21:13:56.000Z
2021-07-07T21:13:56.000Z
# Copyright 2020 Google Research. 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...
36.99373
80
0.628591
a4fbc75ad8dd4f1351bfc6303aa8c4f3bcbbd784
11,236
py
Python
local_settings.py
klinux/horizon
a513de47ff30d7bf898e54cdad9a6a445b197cdf
[ "Apache-2.0" ]
null
null
null
local_settings.py
klinux/horizon
a513de47ff30d7bf898e54cdad9a6a445b197cdf
[ "Apache-2.0" ]
null
null
null
local_settings.py
klinux/horizon
a513de47ff30d7bf898e54cdad9a6a445b197cdf
[ "Apache-2.0" ]
null
null
null
import os from django.utils.translation import ugettext_lazy as _ from openstack_dashboard import exceptions from openstack_dashboard.settings import HORIZON_CONFIG DEBUG = False TEMPLATE_DEBUG = DEBUG WEBROOT = '/' ALLOWED_HOSTS = ['*'] SITE_BRANDING = 'Cloudwise System' OPENSTACK_HOST = "192.168.0.100" OPENSTACK_A...
27.539216
79
0.53738
8499f5ba065a1a4b33ad42c54f0a8df7b917d755
8,649
py
Python
web/app.py
maxis1314/pyutils
7e0666c650209155b3da186d09c54cf14825df1e
[ "Apache-2.0" ]
2
2017-06-12T07:58:51.000Z
2018-03-08T09:43:35.000Z
web/app.py
maxis1314/pyutils
7e0666c650209155b3da186d09c54cf14825df1e
[ "Apache-2.0" ]
1
2017-06-10T02:05:52.000Z
2017-07-04T03:57:28.000Z
web/app.py
maxis1314/pyutils
7e0666c650209155b3da186d09c54cf14825df1e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from flask import Flask, render_template, json, request,session,redirect,url_for,send_from_directory #from flask.ext.mysql import MySQL from werkzeug import generate_password_hash, check_password_hash from tools.MysqlBase import * import hashlib from tools.Predict import * import subprocess from views....
32.885932
148
0.643427
d973dc0890aa6cb4e2d9e050d88946f6aa5eca08
578
py
Python
finetune/scripts/get_model_size.py
stanfordmlgroup/MedAug
0db9cd9c97b9774b2656de5bdeeace57236b79d6
[ "MIT" ]
3
2021-10-09T02:04:36.000Z
2022-03-05T06:48:25.000Z
finetune/scripts/get_model_size.py
stanfordmlgroup/MedAug
0db9cd9c97b9774b2656de5bdeeace57236b79d6
[ "MIT" ]
null
null
null
finetune/scripts/get_model_size.py
stanfordmlgroup/MedAug
0db9cd9c97b9774b2656de5bdeeace57236b79d6
[ "MIT" ]
null
null
null
import sys from prettytable import PrettyTable from torchvision import models def count_parameters(model): table = PrettyTable(["Modules", "Parameters"]) total_params = 0 for name, parameter in model.named_parameters(): if not parameter.requires_grad: continue param = parameter.numel() ...
25.130435
52
0.686851
be8d80a9ea8f21100e37a84d4903f729440fec7a
1,484
py
Python
drone-wrapper/stats/migrations/0006_alter_drone_admin_id_alter_drone_flight_and_more.py
2022-capstone-design-KPUCS/capstone-drone-backend
b56155a44eb7d0353806d534cb4c5220363a68b0
[ "MIT" ]
null
null
null
drone-wrapper/stats/migrations/0006_alter_drone_admin_id_alter_drone_flight_and_more.py
2022-capstone-design-KPUCS/capstone-drone-backend
b56155a44eb7d0353806d534cb4c5220363a68b0
[ "MIT" ]
null
null
null
drone-wrapper/stats/migrations/0006_alter_drone_admin_id_alter_drone_flight_and_more.py
2022-capstone-design-KPUCS/capstone-drone-backend
b56155a44eb7d0353806d534cb4c5220363a68b0
[ "MIT" ]
2
2022-02-11T09:02:41.000Z
2022-02-20T12:50:59.000Z
# Generated by Django 4.0.2 on 2022-03-31 11:06 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('stats', '0005_remove_fli...
31.574468
121
0.610512
38d1f5435c14fe24edefd5038ad681522a35da5f
316
py
Python
start.py
chlopj/XyzB0ts
75699ed97d389107cdf8466380ef04e3474500d1
[ "MIT" ]
1
2021-10-16T09:51:28.000Z
2021-10-16T09:51:28.000Z
start.py
chlopj/XyzB0ts
75699ed97d389107cdf8466380ef04e3474500d1
[ "MIT" ]
null
null
null
start.py
chlopj/XyzB0ts
75699ed97d389107cdf8466380ef04e3474500d1
[ "MIT" ]
null
null
null
import botsdk.BotService import multiprocessing from botsdk.tool.JsonConfig import getConfig def start(): if "startMethod" in getConfig(): multiprocessing.set_start_method(getConfig()["startMethod"]) service = botsdk.BotService.BotService() service.run() if __name__ == "__main__": start()
24.307692
68
0.731013
aadbeaa28f1d79d965fa9aa4431a3cec8dfdbedb
1,229
py
Python
decisionTrees/main.py
luigiberducci/FoundationsOfDataScience
8fbcd0043db67fba2681fcd30ae3c984120e326e
[ "MIT" ]
null
null
null
decisionTrees/main.py
luigiberducci/FoundationsOfDataScience
8fbcd0043db67fba2681fcd30ae3c984120e326e
[ "MIT" ]
null
null
null
decisionTrees/main.py
luigiberducci/FoundationsOfDataScience
8fbcd0043db67fba2681fcd30ae3c984120e326e
[ "MIT" ]
null
null
null
# Author: Luigi Berducci # Date: 06 Feb 2019 # Purpose: implement ID3 algorithm to create a decision tree which fit a boolean-function over the training data import os import sys import argparse import pandas as pd import numpy as np import ID3 def main(argv=[]): parser = argparse.ArgumentParser("ID3 Imple...
25.081633
113
0.673718
47ae7be1cbf0588dbb9e501f859ba91fbb1604f6
5,738
py
Python
env/lib/python3.6/site-packages/pandas/io/tests/parser/compression.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
4
2018-11-27T01:35:30.000Z
2022-01-27T01:17:11.000Z
env/lib/python3.6/site-packages/pandas/io/tests/parser/compression.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
11
2020-06-05T17:24:17.000Z
2022-03-11T23:15:26.000Z
env/lib/python3.6/site-packages/pandas/io/tests/parser/compression.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
3
2017-02-25T15:26:47.000Z
2017-12-20T06:27:07.000Z
# -*- coding: utf-8 -*- """ Tests compressed data parsing functionality for all of the parsers defined in parsers.py """ import nose import pandas.util.testing as tm from pandas import compat class CompressionTests(object): def test_zip(self): try: import zipfile except ImportError:...
33.555556
77
0.546532
33bc77b53eb46ead9c03962fbe5bc858a38ccb81
14,018
py
Python
rest_project/snippets/migrations/0001_initial.py
ratansingh98/Learn_Django
2eed2858dd735e43fb2c8f9b6b1064ba95e95127
[ "MIT" ]
null
null
null
rest_project/snippets/migrations/0001_initial.py
ratansingh98/Learn_Django
2eed2858dd735e43fb2c8f9b6b1064ba95e95127
[ "MIT" ]
null
null
null
rest_project/snippets/migrations/0001_initial.py
ratansingh98/Learn_Django
2eed2858dd735e43fb2c8f9b6b1064ba95e95127
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-28 08:41 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
400.514286
11,974
0.567485
e223e0ee2cdaf1cd3bc4e0f77f7b116323763a5b
2,063
py
Python
isbn_index/test_quitAction.py
ankitsumitg/python-projects
34a3df6fcd8544bf83aa9f3d47ec160e3838b1d1
[ "MIT" ]
1
2021-03-22T20:45:06.000Z
2021-03-22T20:45:06.000Z
isbn_index/test_quitAction.py
ankitsumitg/python-projects
34a3df6fcd8544bf83aa9f3d47ec160e3838b1d1
[ "MIT" ]
null
null
null
isbn_index/test_quitAction.py
ankitsumitg/python-projects
34a3df6fcd8544bf83aa9f3d47ec160e3838b1d1
[ "MIT" ]
null
null
null
""" Do Not Edit this file. You may and are encouraged to look at it for reference. """ import unittest import isbn_index import sys class test_quitAction( unittest.TestCase ): def input_replacement( self, prompt ): self.assertFalse( self.too_many_inputs ) self.input_given_prompt = prompt ...
28.260274
84
0.615608
12cc847811783fc44b0c03e4173852480523ff25
8,730
py
Python
tests/app/v2_marketinformation_membershiplastprice_test.py
BoostryJP/ibet-Wallet-API
da7323a298bdb746e93da8a9b57a5da1dd6f14ac
[ "Apache-2.0" ]
6
2021-06-16T02:06:21.000Z
2021-09-20T09:50:56.000Z
tests/app/v2_marketinformation_membershiplastprice_test.py
BoostryJP/ibet-Wallet-API
da7323a298bdb746e93da8a9b57a5da1dd6f14ac
[ "Apache-2.0" ]
68
2021-04-06T03:44:54.000Z
2022-03-29T02:00:02.000Z
tests/app/v2_marketinformation_membershiplastprice_test.py
BoostryJP/ibet-Wallet-API
da7323a298bdb746e93da8a9b57a5da1dd6f14ac
[ "Apache-2.0" ]
null
null
null
""" Copyright BOOSTRY Co., Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
33.576923
83
0.649485
d2a1cd65d08276a88d7a6a5a9c3bd8269e40bd0c
7,318
py
Python
examples/pybullet/gym/pybullet_envs/deep_mimic/gym_env/deep_mimic_env.py
asmaloney/bullet3
da50438c3c5c43a235839171e35a1e5044d526fd
[ "Zlib" ]
2
2021-01-24T14:30:28.000Z
2021-01-24T14:30:35.000Z
examples/pybullet/gym/pybullet_envs/deep_mimic/gym_env/deep_mimic_env.py
asmaloney/bullet3
da50438c3c5c43a235839171e35a1e5044d526fd
[ "Zlib" ]
null
null
null
examples/pybullet/gym/pybullet_envs/deep_mimic/gym_env/deep_mimic_env.py
asmaloney/bullet3
da50438c3c5c43a235839171e35a1e5044d526fd
[ "Zlib" ]
2
2019-03-08T07:43:39.000Z
2020-07-31T01:53:53.000Z
""" Classic cart-pole system implemented by Rich Sutton et al. Copied from https://webdocs.cs.ualberta.ca/~sutton/book/code/pole.c """ import os, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(os.path.dirname(currentdir)) os.sys.path.insert(0, ...
35.014354
98
0.674911
454633e8dce3e1e8b4f2ee4341802f9c2c5969bf
1,833
py
Python
simple/naming.py
mahesh152/google-deployment-manager-couchbase
4462b56f93fe7a07ee14d86b133a16c5b7c09e58
[ "Apache-2.0" ]
11
2018-03-16T20:05:29.000Z
2020-11-20T14:21:14.000Z
simple/naming.py
mahesh152/google-deployment-manager-couchbase
4462b56f93fe7a07ee14d86b133a16c5b7c09e58
[ "Apache-2.0" ]
36
2017-04-26T23:32:50.000Z
2019-03-05T11:36:01.000Z
simple/naming.py
mahesh152/google-deployment-manager-couchbase
4462b56f93fe7a07ee14d86b133a16c5b7c09e58
[ "Apache-2.0" ]
9
2017-07-20T10:39:40.000Z
2021-06-23T22:05:23.000Z
import re def _SanitizeDeploymentName(deploymentName): sanitizedName = '-'.join(deploymentName.split("-")[-2:])[-20:] if re.match('[0-9-].*', sanitizedName): sanitizedName = 'cb-' + sanitizedName[-17:] return sanitizedName def BaseDeploymentName(context): return _SanitizeDeploymentName(context...
36.66
77
0.713039
8b32a73cdc4ecee1d1c4db2cba82dcc472f4665c
173
py
Python
lib/utils/__init__.py
newlikehalo/pytroch-ctpn-Retina
5c80fa1c91fa55cd6e45490a51385cab3b3343b6
[ "MIT" ]
null
null
null
lib/utils/__init__.py
newlikehalo/pytroch-ctpn-Retina
5c80fa1c91fa55cd6e45490a51385cab3b3343b6
[ "MIT" ]
null
null
null
lib/utils/__init__.py
newlikehalo/pytroch-ctpn-Retina
5c80fa1c91fa55cd6e45490a51385cab3b3343b6
[ "MIT" ]
null
null
null
from . import bbox from . import blob from . import boxes_grid from . import cython_nms from . import timer try: from . import gpu_nms except: gpu_nms = cython_nms
15.727273
25
0.728324
b6b729bd8a17fb7ed4ae965abb61c043782efadb
6,092
py
Python
data-tools/pl2nlp/pl2nlp.py
0zAND1z/zamia-ai
d9e9c6123fdadca3fae55e87ea2b2b32d82bc210
[ "Apache-2.0" ]
129
2017-03-23T14:20:33.000Z
2022-01-03T01:52:22.000Z
data-tools/pl2nlp/pl2nlp.py
0zAND1z/zamia-ai
d9e9c6123fdadca3fae55e87ea2b2b32d82bc210
[ "Apache-2.0" ]
6
2017-03-09T22:32:55.000Z
2021-05-13T19:07:48.000Z
data-tools/pl2nlp/pl2nlp.py
gooofy/voxforge
da21be38e976aae67214537a27a30541afd3b5aa
[ "Apache-2.0" ]
22
2017-04-07T15:44:05.000Z
2022-03-13T02:41:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2017 Guenter Bartsch # # 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 # # Unles...
24.465863
119
0.57239
61321a37fc46e9f34b215419a41401e2bbc05667
6,174
py
Python
cloudbaseinit/plugins/common/userdata.py
cmin764/cloudbase-init
b542bf20e2aa9158c48c3be2fa9997ae1eda0992
[ "Apache-2.0" ]
null
null
null
cloudbaseinit/plugins/common/userdata.py
cmin764/cloudbase-init
b542bf20e2aa9158c48c3be2fa9997ae1eda0992
[ "Apache-2.0" ]
null
null
null
cloudbaseinit/plugins/common/userdata.py
cmin764/cloudbase-init
b542bf20e2aa9158c48c3be2fa9997ae1eda0992
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Cloudbase Solutions Srl # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
41.16
79
0.620829
e21cff2abf938d76a076f630f68e8d6455f2706e
9,381
py
Python
bindings/python/doc/conf.py
damercer/libsmu
6f141ea37a0778299ad1771cc9385fef14010bc0
[ "BSD-3-Clause" ]
30
2015-03-28T23:19:54.000Z
2022-03-08T14:44:36.000Z
bindings/python/doc/conf.py
damercer/libsmu
6f141ea37a0778299ad1771cc9385fef14010bc0
[ "BSD-3-Clause" ]
147
2015-03-06T18:37:11.000Z
2022-03-28T08:26:47.000Z
bindings/python/doc/conf.py
damercer/libsmu
6f141ea37a0778299ad1771cc9385fef14010bc0
[ "BSD-3-Clause" ]
26
2015-03-14T06:04:17.000Z
2022-03-12T16:37:48.000Z
# -*- coding: utf-8 -*- # # pysmu documentation build configuration file, created by # sphinx-quickstart on Sat Dec 3 22:21:07 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...
32.572917
80
0.714956
bd627f608aab25fb6274cdb0dfbf50e8953ab6e2
174,674
py
Python
distributed/scheduler.py
byjott/distributed
f15abc58718fa4ebb457cbbe76f29765bb7b7bd9
[ "BSD-3-Clause" ]
null
null
null
distributed/scheduler.py
byjott/distributed
f15abc58718fa4ebb457cbbe76f29765bb7b7bd9
[ "BSD-3-Clause" ]
null
null
null
distributed/scheduler.py
byjott/distributed
f15abc58718fa4ebb457cbbe76f29765bb7b7bd9
[ "BSD-3-Clause" ]
1
2020-11-25T04:42:07.000Z
2020-11-25T04:42:07.000Z
import asyncio from collections import defaultdict, deque, OrderedDict from collections.abc import Mapping, Set from datetime import timedelta from functools import partial from inspect import isawaitable import itertools import json import logging import math from numbers import Number import operator import os import...
33.77954
104
0.543241
1bcbe6f670d0f345be43b858fedee832b4b23c4c
184
py
Python
exercicios_python/Exercicio_027.py
GabsOrtega/logica-python
6f4e752d0796c9bf70be8f7108bc3bd49d877709
[ "MIT" ]
null
null
null
exercicios_python/Exercicio_027.py
GabsOrtega/logica-python
6f4e752d0796c9bf70be8f7108bc3bd49d877709
[ "MIT" ]
null
null
null
exercicios_python/Exercicio_027.py
GabsOrtega/logica-python
6f4e752d0796c9bf70be8f7108bc3bd49d877709
[ "MIT" ]
null
null
null
nome = str(input('Digite seu nome completo: ')).strip() divnome = nome.split() print("""Seu nome é: {} Primeiro: {} Ultimo: {}""".format(nome, divnome[0], divnome[len(divnome)-1]))
36.8
64
0.63587
cb1ffdca6bc65d316c0403ac14c4e6036641c249
5,685
py
Python
awx_collection/test/awx/test_notification_template.py
pnhowe/awx
9990ef268294f0dad278f57738fb3245c52bc7d1
[ "Apache-2.0" ]
2
2021-03-18T11:08:15.000Z
2021-03-19T09:20:27.000Z
awx_collection/test/awx/test_notification_template.py
Saurabh-Thakre/awx
8eb377a3ea8303c394ad4c958cc828c7239c1e11
[ "Apache-2.0" ]
24
2021-04-01T08:33:08.000Z
2022-03-01T21:13:06.000Z
awx_collection/test/awx/test_notification_template.py
rooftopcellist/awx
2ef08b1d1397e389121873c1015727d3ee7db8a9
[ "Apache-2.0" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import pytest from awx.main.models import NotificationTemplate, Job def compare_with_encrypted(model_config, param_config): '''Given a model_config from the database, assure that this is consistent with the config given ...
40.319149
132
0.688478
e3406f4a2befade6cd0d47051311321ab7bb279f
33,816
py
Python
perfkitbenchmarker/benchmark_spec.py
pdeyhim/PerfKitBenchmarker
1f32d1c4b3b9f388f9c35bf2128f5552d92ded4b
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/benchmark_spec.py
pdeyhim/PerfKitBenchmarker
1f32d1c4b3b9f388f9c35bf2128f5552d92ded4b
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/benchmark_spec.py
pdeyhim/PerfKitBenchmarker
1f32d1c4b3b9f388f9c35bf2128f5552d92ded4b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 PerfKitBenchmarker 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...
37.995506
80
0.702863
1751abc2eb4597694f0249136852f79f7df84567
278
py
Python
apps/wklej/templatetags/helpers.py
Nowaker/wklejorg
75d8511f22b54ee21b3c65d53755f4dcb672d97f
[ "MIT" ]
null
null
null
apps/wklej/templatetags/helpers.py
Nowaker/wklejorg
75d8511f22b54ee21b3c65d53755f4dcb672d97f
[ "MIT" ]
null
null
null
apps/wklej/templatetags/helpers.py
Nowaker/wklejorg
75d8511f22b54ee21b3c65d53755f4dcb672d97f
[ "MIT" ]
null
null
null
from django.conf import settings from django.template import Library from datetime import date register = Library() @register.simple_tag def google_analytics_id(): return settings.GOOGLE_ANALYTICS_ID @register.simple_tag def current_year(): return date.today().year
18.533333
39
0.794964
83f4647e1d0c9ae1236e9d84b357144cd91ddad8
8,052
py
Python
pyvcdr/pyvcdr.py
EtlamGit/pyvcdr
abb475d1389b069e6b8ae53d50329e64c3f0e261
[ "MIT" ]
null
null
null
pyvcdr/pyvcdr.py
EtlamGit/pyvcdr
abb475d1389b069e6b8ae53d50329e64c3f0e261
[ "MIT" ]
null
null
null
pyvcdr/pyvcdr.py
EtlamGit/pyvcdr
abb475d1389b069e6b8ae53d50329e64c3f0e261
[ "MIT" ]
null
null
null
# coding=utf-8 class Signal(object): def __init__(self, var_type, size, reference, module): self.type = var_type self.size = size self.reference = reference self.module = module self.steps = [] self.EMPTY_TIME=-1.23456789 self.max_time = self.EMPTY_TIME ...
31.952381
93
0.519622
3f1d49d8d1359bf3278f32124897fcfd839acd36
9,063
py
Python
netrd/distance/portrait_divergence.py
mattk7/netrd
f9bf94a57bac358a4063d0a033cbb7aa490cd547
[ "MIT" ]
null
null
null
netrd/distance/portrait_divergence.py
mattk7/netrd
f9bf94a57bac358a4063d0a033cbb7aa490cd547
[ "MIT" ]
null
null
null
netrd/distance/portrait_divergence.py
mattk7/netrd
f9bf94a57bac358a4063d0a033cbb7aa490cd547
[ "MIT" ]
null
null
null
""" portrait_divergence.py --------------------- Adapted from "An information-theoretic, all-scales approach to comparing networks" by James P. Bagrow and Erik M. Bollt, 2018 arXiv:1804.03665 and [this repository](https://github.com/bagrow/portrait-divergence) author: Brennan Klein email: brennanjamesklein at gmail ...
26.893175
143
0.597595
45d764b6a9c628983e332e7ce9efbbd875783d87
10,433
py
Python
manilaclient/tests/functional/base.py
nidhimittalhada/manilaclient_for_access_group
2d8dd4a962c125da131d277a0afbc842d442ff88
[ "CNRI-Python", "Apache-1.1" ]
null
null
null
manilaclient/tests/functional/base.py
nidhimittalhada/manilaclient_for_access_group
2d8dd4a962c125da131d277a0afbc842d442ff88
[ "CNRI-Python", "Apache-1.1" ]
null
null
null
manilaclient/tests/functional/base.py
nidhimittalhada/manilaclient_for_access_group
2d8dd4a962c125da131d277a0afbc842d442ff88
[ "CNRI-Python", "Apache-1.1" ]
null
null
null
# Copyright 2014 Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
37.260714
78
0.588709
2d8c60b613dcd62c5af62f50a6287e977e008473
145
py
Python
HW3/hshioi_cloudmesh_ex2.py
futuresystems/465-git4hiroaki
bfd9068e0d074d7b6132844dc0f92780bf63bcb9
[ "Apache-2.0" ]
null
null
null
HW3/hshioi_cloudmesh_ex2.py
futuresystems/465-git4hiroaki
bfd9068e0d074d7b6132844dc0f92780bf63bcb9
[ "Apache-2.0" ]
null
null
null
HW3/hshioi_cloudmesh_ex2.py
futuresystems/465-git4hiroaki
bfd9068e0d074d7b6132844dc0f92780bf63bcb9
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import cloudmesh print cloudmesh.shell("cloud list") print cloudmesh.shell("cloud on india") print cloudmesh.shell("cloud list")
24.166667
39
0.772414
0cf5c71a6f9c9125603e26a74cba024911153531
1,295
py
Python
slixmpp/plugins/xep_0191/stanza.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0191/stanza.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0191/stanza.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
null
null
null
""" Slixmpp: The Slick XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of Slixmpp. See the file LICENSE for copying permission. """ from slixmpp.xmlstream import ET, ElementBase, JID class BlockList(ElementBase): name = 'blocklist' namespace = 'urn:xmpp...
25.392157
62
0.566795
cf5cb7a758b08bd5660d7d5510aaeeaabe086674
57,349
py
Python
pm/models/coach_social_activity_friends.py
aosojnik/pipeline-manager-features-models
e5232f1c1b2073253a1c505dc9fff0d3d839dd6c
[ "MIT" ]
null
null
null
pm/models/coach_social_activity_friends.py
aosojnik/pipeline-manager-features-models
e5232f1c1b2073253a1c505dc9fff0d3d839dd6c
[ "MIT" ]
null
null
null
pm/models/coach_social_activity_friends.py
aosojnik/pipeline-manager-features-models
e5232f1c1b2073253a1c505dc9fff0d3d839dd6c
[ "MIT" ]
null
null
null
################################################################################## ##########--this is an autogenerated python model definition for proDEX--######### ##--original file: Friends_Coaching_v05_forprodex.dxi --## ################################################################################## from .lib.p...
369.993548
496
0.846257
cec69cbfe92626198e4ef5e2bd2a5456e3ff3052
3,012
py
Python
utils.py
look4regev/oss-research
09ad58d629e16330367cdf6173c2d20052b48d18
[ "MIT" ]
1
2020-10-22T11:28:06.000Z
2020-10-22T11:28:06.000Z
utils.py
look4regev/oss-research
09ad58d629e16330367cdf6173c2d20052b48d18
[ "MIT" ]
2
2020-05-01T13:11:14.000Z
2020-07-05T20:01:11.000Z
utils.py
look4regev/oss-research
09ad58d629e16330367cdf6173c2d20052b48d18
[ "MIT" ]
null
null
null
from functools import lru_cache import psycopg2 from settings import DB_PASSWORD, DB_NAME def _queries_file_read_sql(): queries = {} sql = "" sql_name = "" with open("queries.sql", "rt") as queries_file: for line in queries_file.readlines(): if line.startswith("-- "): ...
27.633028
116
0.717463
be36b5321e9c9b4574697dc567c4f0ec7a352dda
23,229
py
Python
puresnmp/api/raw.py
pobk/puresnmp
7207b6ea8ff36fba59c99cc0494d90bdc02b495a
[ "MIT" ]
null
null
null
puresnmp/api/raw.py
pobk/puresnmp
7207b6ea8ff36fba59c99cc0494d90bdc02b495a
[ "MIT" ]
null
null
null
puresnmp/api/raw.py
pobk/puresnmp
7207b6ea8ff36fba59c99cc0494d90bdc02b495a
[ "MIT" ]
null
null
null
""" This module contains a high-level API to SNMP functions. The arguments and return values of these functions have types which are internal to ``puresnmp`` (subclasses of :py:class:`x690.Type`). Alternatively, there is :py:mod:`puresnmp.api.pythonic` which converts these values into pure Python types. This makes da...
33.327116
128
0.590985
9b626b22b0b1b931773584486f77b2c6d68db082
10,627
py
Python
grr/server/grr_response_server/instant_output_plugin.py
JiYonG-Lee/grr
57fef67080ac6b8fd3de3ba0adfca064d34b7689
[ "Apache-2.0" ]
1
2020-06-25T14:25:51.000Z
2020-06-25T14:25:51.000Z
grr/server/grr_response_server/instant_output_plugin.py
JiYonG-Lee/grr
57fef67080ac6b8fd3de3ba0adfca064d34b7689
[ "Apache-2.0" ]
3
2021-05-11T20:18:38.000Z
2022-03-02T09:33:56.000Z
grr/server/grr_response_server/instant_output_plugin.py
JiYonG-Lee/grr
57fef67080ac6b8fd3de3ba0adfca064d34b7689
[ "Apache-2.0" ]
1
2020-06-25T14:25:54.000Z
2020-06-25T14:25:54.000Z
#!/usr/bin/env python # Lint as: python3 """Instant output plugins used by the API for on-the-fly conversion.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import functools import re from grr_response_core.lib import rdfvalue from grr_response_core.l...
32.300912
80
0.711396
eed570a5338a370ea68d0718b2b486bf9115e773
3,882
py
Python
src/bgdev/tools/symmetry.py
BenoitGielly/bgdev
1b2454c9fe8da7cf0a68341519a5291d5f790e75
[ "MIT" ]
3
2021-08-25T02:32:10.000Z
2021-11-09T01:47:13.000Z
src/bgdev/tools/symmetry.py
BenoitGielly/bgdev
1b2454c9fe8da7cf0a68341519a5291d5f790e75
[ "MIT" ]
null
null
null
src/bgdev/tools/symmetry.py
BenoitGielly/bgdev
1b2454c9fe8da7cf0a68341519a5291d5f790e75
[ "MIT" ]
1
2021-10-06T23:21:00.000Z
2021-10-06T23:21:00.000Z
"""Utility methods used to sort nodes and graphs. :created: 20/11/2020 :author: Benoit GIELLY <benoit.gielly@gmail.com> """ from __future__ import absolute_import import logging from maya import cmds, mel LOG = logging.getLogger(__name__) class Symmetry(object): """Generates a symmetry table for selected mesh...
29.861538
70
0.569294
6210501293a9c049090c3dfd8834a55f385e87b7
154
py
Python
tests/web_platform/CSS2/visuren/test_bidi_display_block.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
null
null
null
tests/web_platform/CSS2/visuren/test_bidi_display_block.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
null
null
null
tests/web_platform/CSS2/visuren/test_bidi_display_block.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
1
2020-01-16T01:56:41.000Z
2020-01-16T01:56:41.000Z
from tests.utils import W3CTestCase class TestBidiDisplayBlock(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'bidi-display-block-'))
25.666667
74
0.792208
137d0af69b6a27412bc8cc6d93d00b0f55ef258e
1,738
py
Python
src/tesk_core/pvc.py
PlatformedTasks/PLAS-tesk-core
3806de90dd80833d8a955729f78bd18b7b0532b5
[ "Apache-2.0" ]
null
null
null
src/tesk_core/pvc.py
PlatformedTasks/PLAS-tesk-core
3806de90dd80833d8a955729f78bd18b7b0532b5
[ "Apache-2.0" ]
null
null
null
src/tesk_core/pvc.py
PlatformedTasks/PLAS-tesk-core
3806de90dd80833d8a955729f78bd18b7b0532b5
[ "Apache-2.0" ]
null
null
null
from kubernetes import client, config from kubernetes.client.rest import ApiException from tesk_core.Util import pprint import logging class PVC(): def __init__(self, name='task-pvc', size_gb=1, namespace='default'): self.name = name self.spec = {'apiVersion': 'v1', 'kind': '...
33.423077
98
0.565017
c3555070c10030a7db3962f7494fc3b1e8236e04
1,595
py
Python
Backend/Test/twitter-test.py
RishiKapadia20/Public-FYP
76d97e64b6e41cb930a8d4d807a5b6d0a801920d
[ "Apache-2.0" ]
null
null
null
Backend/Test/twitter-test.py
RishiKapadia20/Public-FYP
76d97e64b6e41cb930a8d4d807a5b6d0a801920d
[ "Apache-2.0" ]
null
null
null
Backend/Test/twitter-test.py
RishiKapadia20/Public-FYP
76d97e64b6e41cb930a8d4d807a5b6d0a801920d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from core.get_data import DataLoader import pandas as pd import json import datetime from alpha_vantage.timeseries import TimeSeries from dbhelper.db_handler import DBHandler from time import mktime import GetOldTweets3 as got from textblob import TextBlob dl = DataLoader() company = "America...
24.921875
79
0.672727
3264239f2c89d00409e8554a15d77422a394277d
1,060
py
Python
cdunnSite/localsettings_example.py
cdunn6754/cdunnSite
b65aafd130c1e428a6336e533bbe6363a3cfcb30
[ "MIT" ]
1
2018-09-29T01:18:16.000Z
2018-09-29T01:18:16.000Z
cdunnSite/localsettings_example.py
cdunn6754/cdunnBlog
b65aafd130c1e428a6336e533bbe6363a3cfcb30
[ "MIT" ]
5
2020-07-03T16:50:55.000Z
2022-03-11T23:25:10.000Z
cdunnSite/localsettings_example.py
cdunn6754/cdunnBlog
b65aafd130c1e428a6336e533bbe6363a3cfcb30
[ "MIT" ]
null
null
null
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '' DEBUG = True ALLOWED_HOSTS = [] DATABASES = { 'default': { 'ENGINE...
19.62963
71
0.716981
e6fab692f8e7279fdb8ef59836332e4df059e1f7
799
py
Python
bert/train/optimizers.py
public1024/BERT-pytorch
50dd20816c7b33d863ddfd761de72859c7799c5e
[ "Unlicense" ]
66
2018-10-30T16:17:43.000Z
2022-03-18T13:13:01.000Z
bert/train/optimizers.py
public1024/BERT-pytorch
50dd20816c7b33d863ddfd761de72859c7799c5e
[ "Unlicense" ]
4
2019-03-22T10:30:26.000Z
2022-03-21T12:19:22.000Z
bert/train/optimizers.py
public1024/BERT-pytorch
50dd20816c7b33d863ddfd761de72859c7799c5e
[ "Unlicense" ]
28
2018-11-01T09:06:27.000Z
2022-03-11T04:56:10.000Z
from torch.optim import Adam class NoamOptimizer(Adam): def __init__(self, params, d_model, factor=2, warmup_steps=4000, betas=(0.9, 0.98), weight_decay=0, eps=1e-9): self.d_model = d_model self.warmup_steps = warmup_steps self.lr = 0 self.step_num = 0 self.factor = factor...
34.73913
127
0.63204
946a0c45aabcfcba17c94389297e14f0423df9b2
786
py
Python
config/custom_components/user_settings/user_settings_platform.py
cyrus19901/Homeassistant-updated
26ed3ac6187179739a8e0e98b4b7060272efb906
[ "Apache-2.0" ]
null
null
null
config/custom_components/user_settings/user_settings_platform.py
cyrus19901/Homeassistant-updated
26ed3ac6187179739a8e0e98b4b7060272efb906
[ "Apache-2.0" ]
null
null
null
config/custom_components/user_settings/user_settings_platform.py
cyrus19901/Homeassistant-updated
26ed3ac6187179739a8e0e98b4b7060272efb906
[ "Apache-2.0" ]
null
null
null
""" The "user settings platform" platform. """ import logging from custom_components.user_settings import UserSettingsComponent _LOGGER = logging.getLogger(__name__) def setup_platform(hass, config, add_devices, discovery_info=None): """Setup the sensor platform.""" _LOGGER.info("Setting up UserSettingsPl...
21.243243
67
0.678117
deae8c85c43aa0062cd135f6bffa8b4c6eb09f26
939
py
Python
boucanpy/api/config.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
34
2019-11-16T17:22:15.000Z
2022-02-11T23:12:46.000Z
boucanpy/api/config.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
1
2021-02-09T09:34:55.000Z
2021-02-10T21:46:20.000Z
boucanpy/api/config.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
9
2019-11-18T22:18:07.000Z
2021-02-08T13:23:51.000Z
import os from base64 import b64encode from boucanpy.core.utils import getenv_bool, getenv from boucanpy.db.session import db_url API_V1_STR = "/api/v1" API_SECRET_KEY = getenv("API_SECRET_KEY") JWT_ALGORITHM = "HS256" if not API_SECRET_KEY: API_SECRET_KEY = b64encode(os.urandom(32)).decode("utf-8") ACCESS_TOK...
36.115385
179
0.775293
bb5fd12dc2e85525754dafa4312a65f3c2f79a4e
1,696
py
Python
train_codes/LUNA_loader.py
Rakshith2597/Lung-nodule-detection-LUNA-16-
4114784ad6c06467db8c106c266a1f128016f920
[ "MIT" ]
12
2019-10-21T09:17:07.000Z
2022-03-18T13:35:14.000Z
train_codes/LUNA_loader.py
Rakshith2597/Lung-nodule-detection-LUNA-16-
4114784ad6c06467db8c106c266a1f128016f920
[ "MIT" ]
3
2020-07-13T18:56:46.000Z
2020-08-09T07:04:02.000Z
train_codes/LUNA_loader.py
Rakshith2597/Lung-nodule-detection-LUNA-16-
4114784ad6c06467db8c106c266a1f128016f920
[ "MIT" ]
8
2019-12-06T09:32:11.000Z
2022-03-18T14:59:46.000Z
#Code written by Rakshith Sathish #The work is made public with MIT License import os import collections import torch import numpy as np import scipy.misc as m import matplotlib.pyplot as plt from PIL import Image from torchvision import transforms from torch.utils import data class lunaLoader(data.Dataset): d...
28.745763
88
0.602594
12b058116258b4c543a19a8fa0b876f26129d5c6
8,973
py
Python
covid_xprize/examples/prescriptors/neat/train_prescriptor.py
a9raag/covid-xprize
13c7ba1ce4bed063bad1acd1c568ef6b2abaf1b7
[ "Apache-2.0" ]
null
null
null
covid_xprize/examples/prescriptors/neat/train_prescriptor.py
a9raag/covid-xprize
13c7ba1ce4bed063bad1acd1c568ef6b2abaf1b7
[ "Apache-2.0" ]
null
null
null
covid_xprize/examples/prescriptors/neat/train_prescriptor.py
a9raag/covid-xprize
13c7ba1ce4bed063bad1acd1c568ef6b2abaf1b7
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 (c) Cognizant Digital Business, Evolutionary AI. All rights reserved. Issued under the Apache 2.0 License. # # Example script for training neat-based prescriptors # Uses neat-python: pip install neat-python # from copy import deepcopy import neat import numpy as np import pandas as pd from covid_...
41.929907
123
0.66845
931a31fdb8e0ed34657acb1bc7ccce676145d9f1
605
py
Python
zdemo/efuxi/migrations/0001_initial.py
zzl-der/demo43
c630ebb10ae442650223b1096f2d80f11dfe6486
[ "MIT" ]
null
null
null
zdemo/efuxi/migrations/0001_initial.py
zzl-der/demo43
c630ebb10ae442650223b1096f2d80f11dfe6486
[ "MIT" ]
null
null
null
zdemo/efuxi/migrations/0001_initial.py
zzl-der/demo43
c630ebb10ae442650223b1096f2d80f11dfe6486
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2021-01-22 13:25 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Stu', fields=[ ('id', models.AutoField(auto...
25.208333
114
0.561983
1638a127fe716743e5a0e1243cc45acfe53c82c4
7,887
py
Python
reduce_learn_tune.py
stefan-bergstein/ml-capstone
419fb77daea28bc73593ab4c467695b44b381f35
[ "MIT" ]
null
null
null
reduce_learn_tune.py
stefan-bergstein/ml-capstone
419fb77daea28bc73593ab4c467695b44b381f35
[ "MIT" ]
null
null
null
reduce_learn_tune.py
stefan-bergstein/ml-capstone
419fb77daea28bc73593ab4c467695b44b381f35
[ "MIT" ]
null
null
null
# Import libraries necessary for this project import numpy as np import pandas as pd #import visuals as vs # Supplementary code import matplotlib.pyplot as plt # %matplotlib inline from sklearn import cross_validation from sklearn.svm import SVC from sklearn.svm import LinearSVC from sklearn.tree import DecisionTree...
32.191837
184
0.715481
85ad398bfc6b4b83a1e1beca8727cb3c10851cc8
1,374
py
Python
setup.py
jan-mo/riot_pal
63430f4e3074faa100d05d8eab3432bcc8df46c2
[ "MIT" ]
1
2018-08-24T06:52:47.000Z
2018-08-24T06:52:47.000Z
setup.py
jan-mo/riot_pal
63430f4e3074faa100d05d8eab3432bcc8df46c2
[ "MIT" ]
17
2018-10-11T12:19:19.000Z
2019-10-22T14:28:29.000Z
setup.py
jan-mo/riot_pal
63430f4e3074faa100d05d8eab3432bcc8df46c2
[ "MIT" ]
2
2019-10-18T12:58:33.000Z
2020-01-24T09:55:20.000Z
#!/usr/bin/env python3 # Copyright (c) 2018 Kevin Weiss, for HAW Hamburg <kevin.weiss@haw-hamburg.de> # # This file is subject to the terms and conditions of the MIT License. See the # file LICENSE in the top level directory for more details. # SPDX-License-Identifier: MIT """ Setup file for riot_pal. """ from ...
31.227273
79
0.665939
a0673591c9f218f697ac51e0d1b7fbcd5af7d0e8
10,850
py
Python
amz.py
xji99/amzscraper
b02e49380444a8eaf90e158e56bd86e1961f6d19
[ "MIT" ]
null
null
null
amz.py
xji99/amzscraper
b02e49380444a8eaf90e158e56bd86e1961f6d19
[ "MIT" ]
null
null
null
amz.py
xji99/amzscraper
b02e49380444a8eaf90e158e56bd86e1961f6d19
[ "MIT" ]
null
null
null
from __future__ import print_function import os import re import sys import time import random import hashlib import smtplib import argparse import memcache import datetime import itertools import subprocess from bs4 import BeautifulSoup from email.mime.application import MIMEApplication from email.mime.multipart imp...
40.943396
100
0.610876
568972ba34f1bb66fc8b69604efb21b8177488d6
4,661
py
Python
test.py
harveenchadha/deepspeech.pytorch
308f89aeb7944c65efe8a686a430c7dc65181d1d
[ "MIT" ]
null
null
null
test.py
harveenchadha/deepspeech.pytorch
308f89aeb7944c65efe8a686a430c7dc65181d1d
[ "MIT" ]
null
null
null
test.py
harveenchadha/deepspeech.pytorch
308f89aeb7944c65efe8a686a430c7dc65181d1d
[ "MIT" ]
null
null
null
import argparse import numpy as np import torch from tqdm import tqdm from data.data_loader import SpectrogramDataset, AudioDataLoader from decoder import GreedyDecoder from opts import add_decoder_args, add_inference_args from utils import load_model parser = argparse.ArgumentParser(description='DeepSpeech transcri...
46.148515
112
0.629264
b649feae1c88114cf975360a3f64125277a69b0f
5,592
py
Python
userbot/plugins/evaluators.py
aksr-aashish/FIREXUSERBOT
dff0b7bf028cb27779626ce523402346cc990402
[ "MIT" ]
null
null
null
userbot/plugins/evaluators.py
aksr-aashish/FIREXUSERBOT
dff0b7bf028cb27779626ce523402346cc990402
[ "MIT" ]
1
2022-01-09T11:35:06.000Z
2022-01-09T11:35:06.000Z
userbot/plugins/evaluators.py
aksr-aashish/FIREXUSERBOT
dff0b7bf028cb27779626ce523402346cc990402
[ "MIT" ]
null
null
null
import asyncio import io import os import sys import time import traceback from userbot import * from userbot.cmdhelp import CmdHelp from userbot.Config import Config from userbot.utils import admin_cmd, eor, sudo_cmd EVAL = os.environ.get("EVAL", None) from . import * @bot.on(admin_cmd(pattern="exec(?: |$|\n)(.*)"...
33.088757
118
0.582618
2ac1d8b9ca780413e9ad2bddf5ffd36f6546af63
1,332
py
Python
The-Lego-Collector's-Dilemma/code.py
sukamal1928/Greyatom-Projects-Repository
1dca71032551b5f65abeb37ba76ca9c7184787f4
[ "MIT" ]
null
null
null
The-Lego-Collector's-Dilemma/code.py
sukamal1928/Greyatom-Projects-Repository
1dca71032551b5f65abeb37ba76ca9c7184787f4
[ "MIT" ]
null
null
null
The-Lego-Collector's-Dilemma/code.py
sukamal1928/Greyatom-Projects-Repository
1dca71032551b5f65abeb37ba76ca9c7184787f4
[ "MIT" ]
null
null
null
# -------------- import pandas as pd import numpy as np from sklearn.cross_validation import train_test_split # code starts here df = pd.read_csv(path) print(df.head()) X = df.drop('list_price',axis=1) y = df['list_price'] X_train,X_test,y_train,y_test = train_test_split(X,y,test_size = 0.3, random_state=6) # code ...
18
85
0.684685
27197c6f02d7abc8edcd9650441798c6da63b73b
284
py
Python
bill_booking_application/bill_booking_application/doctype/vendor_entry/vendor_entry.py
indictranstech/bill_booking_application
7157b172c3094ba45dcb546853d7dd625cb4c8e1
[ "MIT" ]
null
null
null
bill_booking_application/bill_booking_application/doctype/vendor_entry/vendor_entry.py
indictranstech/bill_booking_application
7157b172c3094ba45dcb546853d7dd625cb4c8e1
[ "MIT" ]
null
null
null
bill_booking_application/bill_booking_application/doctype/vendor_entry/vendor_entry.py
indictranstech/bill_booking_application
7157b172c3094ba45dcb546853d7dd625cb4c8e1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, New Indictrans Technologies pvt.ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class VendorEntry(Document): pass
25.818182
75
0.785211
cedf2d39455271bf56c6b34a28f5b1fdb41dbc91
41,784
py
Python
bincatalogs.py
H-E-L-P/simstack_HELP
6fb026ff824545239ac460b073fe930ca8d69b36
[ "MIT" ]
1
2021-11-29T19:51:04.000Z
2021-11-29T19:51:04.000Z
bincatalogs.py
H-E-L-P/simstack_HELP
6fb026ff824545239ac460b073fe930ca8d69b36
[ "MIT" ]
null
null
null
bincatalogs.py
H-E-L-P/simstack_HELP
6fb026ff824545239ac460b073fe930ca8d69b36
[ "MIT" ]
null
null
null
import pdb import six import numpy as np from astropy.io import fits import astropy.units as u from utils import bin_ndarray as rebin from utils import gauss_kern from utils import clean_nans from utils import clean_args from astropy import cosmology from astropy.cosmology import Planck15 as cosmo from astropy.cosmolog...
68.723684
274
0.613584
b4925567b04908cddc7c61cd8ddcee31bfa26266
2,517
py
Python
data_managers/data_manager_genomic_super_signature_ravmodels/data_manager/data_manager_genomic_super_signature_ravmodels.py
ErasmusMC-Bioinformatics/tools-iuc
2efdef3fbd1ee73c61547ff07a7da6a2b8269f6d
[ "MIT" ]
1
2022-01-25T21:25:21.000Z
2022-01-25T21:25:21.000Z
data_managers/data_manager_genomic_super_signature_ravmodels/data_manager/data_manager_genomic_super_signature_ravmodels.py
ErasmusMC-Bioinformatics/tools-iuc
2efdef3fbd1ee73c61547ff07a7da6a2b8269f6d
[ "MIT" ]
40
2018-01-29T19:18:43.000Z
2019-03-22T20:33:41.000Z
data_managers/data_manager_genomic_super_signature_ravmodels/data_manager/data_manager_genomic_super_signature_ravmodels.py
ErasmusMC-Bioinformatics/tools-iuc
2efdef3fbd1ee73c61547ff07a7da6a2b8269f6d
[ "MIT" ]
3
2018-02-22T15:30:51.000Z
2019-01-29T18:00:08.000Z
#!/usr/bin/env python # Dan Blankenberg import argparse import json import os import re import shutil import urllib.request OUTPUT_BASE_NAME = 'RAVmodel.rds' BUCKET_NAME = "genomic_super_signature" RAVMODEL_NAME = "RAVmodel_{prior}.rds" PRIOR_URL = "https://storage.googleapis.com/{bucket_name}/{prior_filename}" ...
38.723077
166
0.692094
75b35b6c0ed1154c90357fd5cd29579e9f4c99d3
90
py
Python
tf_quat2rot/tests/__init__.py
risteon/tf_quat2rot
f308cab83e552300c274b733dd6cc5609269feb4
[ "MIT" ]
1
2020-10-04T14:08:59.000Z
2020-10-04T14:08:59.000Z
tf_quat2rot/tests/__init__.py
risteon/tf_quat2rot
f308cab83e552300c274b733dd6cc5609269feb4
[ "MIT" ]
null
null
null
tf_quat2rot/tests/__init__.py
risteon/tf_quat2rot
f308cab83e552300c274b733dd6cc5609269feb4
[ "MIT" ]
1
2020-10-04T11:28:21.000Z
2020-10-04T11:28:21.000Z
# -*- coding: utf-8 -*- __author__ = """Christoph Rist""" __email__ = "c.rist@posteo.de"
18
33
0.611111
ac046397b0b26882cbec245427d2639cb1609f4c
2,339
py
Python
migrations/versions/ab9f9abe81e6_.py
Atienodolphine01/Pitchadd
ea7a0f4ae3f89e1a5734de3854893386da09a5f9
[ "MIT" ]
null
null
null
migrations/versions/ab9f9abe81e6_.py
Atienodolphine01/Pitchadd
ea7a0f4ae3f89e1a5734de3854893386da09a5f9
[ "MIT" ]
null
null
null
migrations/versions/ab9f9abe81e6_.py
Atienodolphine01/Pitchadd
ea7a0f4ae3f89e1a5734de3854893386da09a5f9
[ "MIT" ]
null
null
null
"""empty message Revision ID: ab9f9abe81e6 Revises: Create Date: 2020-05-04 22:31:31.965229 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ab9f9abe81e6' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
34.397059
82
0.659684
9acddb84442f327fac8df85fabac7d1dbd79808f
32,639
py
Python
scanrpc/rpc_modules.py
PureStake/substrate-scanrpc
f2a5368719c59e6a335cdbfdbcf0747e57278aae
[ "MIT" ]
null
null
null
scanrpc/rpc_modules.py
PureStake/substrate-scanrpc
f2a5368719c59e6a335cdbfdbcf0747e57278aae
[ "MIT" ]
null
null
null
scanrpc/rpc_modules.py
PureStake/substrate-scanrpc
f2a5368719c59e6a335cdbfdbcf0747e57278aae
[ "MIT" ]
null
null
null
from .utils import * def scan_module_account(substrate, expect_unsafe_enabled, calls=[]): method = 'account_nextIndex'; is_unsafe = False calls.append({"method": method, "status": "ok"}) calls.append({"method": method, "status": "ok"}) try: print(f" ✔ {method}: {substrate.get_account_nonce('E7...
45.143845
217
0.66108
31dfd6d64a26f06ba51b4dbd823d3d1f72f6f911
1,032
py
Python
users/signals.py
Sundaybrian/hood-watch
728283260336bf164d66832dd6b8fe4aa3e60a33
[ "MIT" ]
null
null
null
users/signals.py
Sundaybrian/hood-watch
728283260336bf164d66832dd6b8fe4aa3e60a33
[ "MIT" ]
11
2020-06-05T22:55:53.000Z
2022-03-11T23:59:17.000Z
users/signals.py
Sundaybrian/hood-watch
728283260336bf164d66832dd6b8fe4aa3e60a33
[ "MIT" ]
null
null
null
#signal fired after an obj is saved in this cas when a user is created from django.db.models.signals import post_save #user to sender the signal from django.contrib.auth.models import User #reciever of the signal from django.dispatch import receiver from .models import Profile @receiver(post_save,sender=User) def c...
26.461538
113
0.721899
c751a71995e0f4573664eb7848f85ffea41a57f8
1,330
py
Python
aoc/day21.py
runfalk/advent-of-code-2019-py
992ab28fc03a9944796688e96536d22b4541bf3f
[ "MIT" ]
null
null
null
aoc/day21.py
runfalk/advent-of-code-2019-py
992ab28fc03a9944796688e96536d22b4541bf3f
[ "MIT" ]
null
null
null
aoc/day21.py
runfalk/advent-of-code-2019-py
992ab28fc03a9944796688e96536d22b4541bf3f
[ "MIT" ]
null
null
null
from .day9 import Interpreter from .intcode import load_program_from_file def springscript_compile(lines): for line in lines: for c in line: yield ord(c) yield ord("\n") def springscript_run(intcode, lines): output = [] for c in Interpreter.run_program(intcode, springscript_c...
25.09434
79
0.55188
8aa7cd48b16e91f7d50375162e4774e3f5755854
623
py
Python
src/robusta/integrations/kubernetes/autogenerated/v2beta1/models.py
shahar-lev/robusta
dbee478f2dc3c9757c091b6f55d7ea023711eb7c
[ "MIT" ]
null
null
null
src/robusta/integrations/kubernetes/autogenerated/v2beta1/models.py
shahar-lev/robusta
dbee478f2dc3c9757c091b6f55d7ea023711eb7c
[ "MIT" ]
null
null
null
src/robusta/integrations/kubernetes/autogenerated/v2beta1/models.py
shahar-lev/robusta
dbee478f2dc3c9757c091b6f55d7ea023711eb7c
[ "MIT" ]
null
null
null
# This file was autogenerated. Do not edit. from hikaru.model.rel_1_16.v2beta1 import * from ...custom_models import RobustaPod, RobustaDeployment, RobustaJob KIND_TO_MODEL_CLASS = { "Pod": RobustaPod, "ReplicaSet": ReplicaSet, "DaemonSet": DaemonSet, "Deployment": RobustaDeployment, "StatefulSet...
27.086957
70
0.711075
4ea591c4fc41e7d83ac0564c876f5310dea73e8e
10,309
py
Python
demo/common.py
p513817/tensorrt_pose_esimation
3eebe57482f0b6bcbb007f4bb4df43df0872d943
[ "MIT" ]
null
null
null
demo/common.py
p513817/tensorrt_pose_esimation
3eebe57482f0b6bcbb007f4bb4df43df0872d943
[ "MIT" ]
null
null
null
demo/common.py
p513817/tensorrt_pose_esimation
3eebe57482f0b6bcbb007f4bb4df43df0872d943
[ "MIT" ]
null
null
null
# # Copyright 1993-2020 NVIDIA Corporation. All rights reserved. # # NOTICE TO LICENSEE: # # This source code and/or documentation ("Licensed Deliverables") are # subject to NVIDIA intellectual property rights under U.S. and # international Copyright laws. # # These Licensed Deliverables contained herein is PROPRIETAR...
40.747036
182
0.684741
570b53cd271aec7bc3ebf4888bd0eb08f680b7ed
11,407
py
Python
happi/cli.py
ZLLentz/happi
dc068f363a605b9b21e07997279d62b97f1e1f48
[ "BSD-3-Clause-LBNL" ]
6
2020-08-27T21:42:10.000Z
2021-12-22T18:12:17.000Z
happi/cli.py
ZLLentz/happi
dc068f363a605b9b21e07997279d62b97f1e1f48
[ "BSD-3-Clause-LBNL" ]
169
2018-02-12T22:28:46.000Z
2022-03-11T19:00:56.000Z
happi/cli.py
ZLLentz/happi
dc068f363a605b9b21e07997279d62b97f1e1f48
[ "BSD-3-Clause-LBNL" ]
21
2018-02-12T21:56:09.000Z
2021-03-10T00:14:25.000Z
""" This module defines the ``happi`` command line interface. """ import argparse import fnmatch import json import logging import os import sys import coloredlogs import prettytable import happi from .utils import is_a_range logger = logging.getLogger(__name__) def get_parser(): """Defines HAPPI shell comman...
39.470588
79
0.539318
2ca11c99bcb941d45e450c9e1c862ad063ff2200
1,274
py
Python
neutron/plugins/embrane/plugins/embrane_fake_plugin.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
10
2015-09-22T10:22:53.000Z
2016-02-25T06:12:05.000Z
neutron/plugins/embrane/plugins/embrane_fake_plugin.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
12
2015-01-08T18:30:45.000Z
2015-03-13T21:04:15.000Z
neutron/plugins/embrane/plugins/embrane_fake_plugin.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
7
2015-02-05T10:23:52.000Z
2019-05-18T17:11:19.000Z
# Copyright 2013 Embrane, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
41.096774
78
0.736264
8bc5ea34cf44b77e12593540c7e1ddab7e5bb7c7
4,273
py
Python
libraries/ebb_motion.py
plex3r/plotink
8fb21edbcafc97216a24754823161fb7b4ce631b
[ "MIT" ]
8
2017-03-23T02:18:22.000Z
2021-03-31T12:25:22.000Z
libraries/ebb_motion.py
plex3r/plotink
8fb21edbcafc97216a24754823161fb7b4ce631b
[ "MIT" ]
null
null
null
libraries/ebb_motion.py
plex3r/plotink
8fb21edbcafc97216a24754823161fb7b4ce631b
[ "MIT" ]
7
2017-12-14T05:20:35.000Z
2020-09-30T07:09:58.000Z
# ebb_motion.py # Motion control utilities for EiBotBoard # https://github.com/evil-mad/plotink # # Intended to provide some common interfaces that can be used by # EggBot, WaterColorBot, AxiDraw, and similar machines. # # Version 0.5, Dated January 31, 2016. # # # The MIT License (MIT) # # Copyright (c) 2016 Evil M...
38.151786
101
0.686169
221063ffe63291a3782f902425a31545498005eb
3,927
py
Python
englishWebDictionary/movablelist.py
Darkclainer/englishWordManager
3f6ac47fa0b7c1e383465c5724cb58b50b504f56
[ "MIT" ]
null
null
null
englishWebDictionary/movablelist.py
Darkclainer/englishWordManager
3f6ac47fa0b7c1e383465c5724cb58b50b504f56
[ "MIT" ]
null
null
null
englishWebDictionary/movablelist.py
Darkclainer/englishWordManager
3f6ac47fa0b7c1e383465c5724cb58b50b504f56
[ "MIT" ]
null
null
null
"""This module define two classes: MovableListWidget which subclasses must be used together.""" from aqt.qt import (Qt, QAbstractItemView, QAbstractListModel, QListView, QAction, QModelIndex) from .htmldelegate import HtmlDelegate class MovableListWidget(QListView): """View for subclass Movabl...
31.669355
95
0.648332
441e5b8a7283eea45e2e07cd8430b50d2db77f9f
37
py
Python
lib/coloraide/css/__init__.py
EatBreatheCode/sublime_color_helper
701d05807e51ce49088b1f0a8f55c4bf3845fa91
[ "MIT" ]
null
null
null
lib/coloraide/css/__init__.py
EatBreatheCode/sublime_color_helper
701d05807e51ce49088b1f0a8f55c4bf3845fa91
[ "MIT" ]
null
null
null
lib/coloraide/css/__init__.py
EatBreatheCode/sublime_color_helper
701d05807e51ce49088b1f0a8f55c4bf3845fa91
[ "MIT" ]
null
null
null
"""CSS parsing and serialization."""
18.5
36
0.702703
63e9dc874c0403e72370e067e45823383c00ef7f
17,788
py
Python
Tools/LyTestTools/ly_test_tools/environment/process_utils.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-09-13T00:01:12.000Z
2021-09-13T00:01:12.000Z
Tools/LyTestTools/ly_test_tools/environment/process_utils.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
Tools/LyTestTools/ly_test_tools/environment/process_utils.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT Process management functions, to supplement normal use of psutil and subprocess """ import logging import os import...
37.927505
155
0.667135
7f7517463ca78fd89475adab608f3481956d0d16
1,762
py
Python
src/search/views/hub.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
18
2021-05-20T13:20:16.000Z
2022-02-11T02:40:18.000Z
src/search/views/hub.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
109
2021-05-21T20:14:23.000Z
2022-03-31T20:56:10.000Z
src/search/views/hub.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
4
2021-05-17T13:47:53.000Z
2022-02-12T10:48:21.000Z
from django_elasticsearch_dsl_drf.filter_backends import ( CompoundSearchFilterBackend, DefaultOrderingFilterBackend, ) from elasticsearch_dsl import Search from django_elasticsearch_dsl_drf.viewsets import DocumentViewSet from django_elasticsearch_dsl_drf.pagination import LimitOffsetPagination from search.ba...
29.864407
76
0.674234
90db25ecbc778c6b38f1c30e04d22015b62784a9
14,232
py
Python
SprintMgr/ReadStartList.py
esitarski/CrossMgr
de33b5ed662556ec659e6e2910f5fd0f88f25fa0
[ "MIT" ]
25
2015-02-26T01:26:10.000Z
2022-03-25T15:46:55.000Z
SprintMgr/ReadStartList.py
esitarski/CrossMgr
de33b5ed662556ec659e6e2910f5fd0f88f25fa0
[ "MIT" ]
76
2015-12-09T04:24:30.000Z
2022-02-18T16:39:28.000Z
SprintMgr/ReadStartList.py
esitarski/CrossMgr
de33b5ed662556ec659e6e2910f5fd0f88f25fa0
[ "MIT" ]
17
2015-04-23T07:37:13.000Z
2020-01-22T17:47:16.000Z
import wx import re import os import sys import itertools import copy import wx.lib.filebrowsebutton as filebrowse import wx.lib.scrolledpanel as scrolled import wx.adv as adv import string import webbrowser import traceback import Utils import Model from Excel import GetExcelReader, toAscii #------------------------...
32.642202
125
0.673482
606adfcf2c14d18d9905b12fb55254171f964529
2,921
py
Python
tests/arithmetictest_loop.py
TCatshoek/lstar
042b0ae3a0627db7a412c828f3752a9c30928ec1
[ "MIT" ]
2
2019-10-15T11:28:12.000Z
2021-01-28T15:14:09.000Z
tests/arithmetictest_loop.py
TCatshoek/lstar
042b0ae3a0627db7a412c828f3752a9c30928ec1
[ "MIT" ]
null
null
null
tests/arithmetictest_loop.py
TCatshoek/lstar
042b0ae3a0627db7a412c828f3752a9c30928ec1
[ "MIT" ]
null
null
null
import tempfile from equivalencecheckers.StackedChecker import StackedChecker from equivalencecheckers.bruteforce import BFEquivalenceChecker from equivalencecheckers.genetic import GeneticEquivalenceChecker from equivalencecheckers.wmethod import WmethodEquivalenceChecker, SmartWmethodEquivalenceChecker from learners...
25.849558
97
0.61657
064e7eab30dcab2c054814c703f308ea98c7e984
602
py
Python
uvio/tests/test_coroutines.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
3
2016-03-23T08:12:03.000Z
2018-10-06T02:46:54.000Z
uvio/tests/test_coroutines.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
null
null
null
uvio/tests/test_coroutines.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
null
null
null
import unittest import uvio class Test(unittest.TestCase): def test_sleep(self): loop = uvio.Loop.create() calls = [] def callback(): calls.append("callback") async def sleepy(): calls.append("sleepy") loop.next_tick(callback) cal...
17.2
79
0.548173
6d7c79fa2ed722e74e435e21ef9a513373f6e1c1
4,717
py
Python
cli/utils/InputParser.py
MFOSSociety/Automate-AI-Chess
614d6bc587978ce083394169eb1d792f01ffc34b
[ "MIT" ]
4
2019-06-26T10:09:50.000Z
2020-11-21T07:55:59.000Z
cli/utils/InputParser.py
MFOSSociety/Automate-AI-Chess
614d6bc587978ce083394169eb1d792f01ffc34b
[ "MIT" ]
2
2019-06-27T22:52:43.000Z
2019-10-02T17:48:45.000Z
cli/utils/InputParser.py
MFOSSociety/8-8
614d6bc587978ce083394169eb1d792f01ffc34b
[ "MIT" ]
3
2019-06-30T18:40:22.000Z
2019-10-16T09:42:56.000Z
import re from .Board import Pawn class InputParser: def __init__(self, board, side): self.board = board self.side = side def parse(self, humanInput): regexCoordinateNotation = re.compile('(?i)[a-h][1-8][a-h][1-8][QRBN]?') if regexCoordinateNotation.match(humanInput): ...
49.135417
190
0.632181
c54e31f0120edd3522c0427ac548f0ff767486de
301
py
Python
data/multilingual/Arab.PBU/Mono_8/pdf_to_json_test_Arab.PBU_Mono_8.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Arab.PBU/Mono_8/pdf_to_json_test_Arab.PBU_Mono_8.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Arab.PBU/Mono_8/pdf_to_json_test_Arab.PBU_Mono_8.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Arab.PBU/Mono_8/udhr_Arab.PBU_Mono_8.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.1
71
0.810631
7090427f6d9d92ff520b563f47d75848c5fa7d85
7,879
py
Python
multi_label_classification/train.py
GuanLab/Sleep-Stage-Auto-annotation
1bc20d37148bb1101ff84b0e734c7f9b7f520085
[ "MIT" ]
1
2022-01-05T19:01:47.000Z
2022-01-05T19:01:47.000Z
multi_label_classification/train.py
GuanLab/Sleep-Stage-Auto-annotation
1bc20d37148bb1101ff84b0e734c7f9b7f520085
[ "MIT" ]
null
null
null
multi_label_classification/train.py
GuanLab/Sleep-Stage-Auto-annotation
1bc20d37148bb1101ff84b0e734c7f9b7f520085
[ "MIT" ]
null
null
null
from __future__ import print_function import os import pickle import sys import argparse from datetime import datetime import random from skimage.transform import resize from skimage.io import imsave import numpy as np import cv2 from keras.models import Model from keras.layers import Input, concatenate, Conv1D, MaxPoo...
34.406114
151
0.61848
b4365e65e986d51b6d5224bb6df1a36b399b578a
218
py
Python
src/genie/libs/parser/iosxe/tests/ShowTelemetryInternalConnection/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowTelemetryInternalConnection/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowTelemetryInternalConnection/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "peer_address": "10.37.174.7", "port": 25103, "profile": "sdn-network-101-wan", "source_address": "10.8.138.4", "state": "Active", "transport": "tls-native", "vrf": 0, }
21.8
37
0.555046
3ac12e17296a3d9eb72598f89cec2ad64a3dc3ce
1,465
py
Python
app/user/serializers.py
llaski/django-python-advanced
a0bf73dce9b06c2a4188c69bf2ced4caa52cd346
[ "MIT" ]
null
null
null
app/user/serializers.py
llaski/django-python-advanced
a0bf73dce9b06c2a4188c69bf2ced4caa52cd346
[ "MIT" ]
null
null
null
app/user/serializers.py
llaski/django-python-advanced
a0bf73dce9b06c2a4188c69bf2ced4caa52cd346
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model, authenticate from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers class UserSerializer(serializers.ModelSerializer): class Meta: model = get_user_model() fields = ('email', 'password', 'name') extra_...
29.897959
74
0.631399
4a84b42db3aaa8a5266a0d1245ba74ede1d1268d
51,661
py
Python
cinder/volume/drivers/kaminario/kaminario_common.py
netsec/cinder
435b2300149bece70dd2f42f05d1b5d0f0eb9aa6
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/kaminario/kaminario_common.py
netsec/cinder
435b2300149bece70dd2f42f05d1b5d0f0eb9aa6
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/kaminario/kaminario_common.py
netsec/cinder
435b2300149bece70dd2f42f05d1b5d0f0eb9aa6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 by Kaminario Technologies, Ltd. # 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 # #...
44.728139
79
0.565494