hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
84f2947f375499147d95a18c35c81380c7dc0bb9
11,963
py
Python
radionets/dl_framework/architectures/res_exp.py
Kevin2/radionets
44e10a85a096f5cea8e9d83f96db65bdd4df9517
[ "MIT" ]
null
null
null
radionets/dl_framework/architectures/res_exp.py
Kevin2/radionets
44e10a85a096f5cea8e9d83f96db65bdd4df9517
[ "MIT" ]
16
2019-10-09T12:30:27.000Z
2020-12-09T14:03:03.000Z
radionets/dl_framework/architectures/res_exp.py
Kevin2/radionets
44e10a85a096f5cea8e9d83f96db65bdd4df9517
[ "MIT" ]
3
2020-01-08T09:01:09.000Z
2020-10-19T18:53:13.000Z
import torch from torch import nn from radionets.dl_framework.model import ( SRBlock, Lambda, symmetry, GeneralELU, ) from functools import partial from math import pi class SRResNet_shuffle(nn.Module): def __init__(self): super().__init__() self.preBlock = nn.Sequential( ...
27.438073
87
0.52119
2cf7405709b632550c026effeb77b6d7168d4731
2,116
py
Python
Variational/sbm_run.py
vveitch/community_detection
6342a6c1aa9424f0a73b6027d971a0c646980f0c
[ "MIT" ]
4
2018-01-24T08:11:21.000Z
2022-03-27T12:21:32.000Z
Variational/sbm_run.py
vveitch/community_detection
6342a6c1aa9424f0a73b6027d971a0c646980f0c
[ "MIT" ]
1
2020-07-07T06:32:30.000Z
2020-07-07T06:32:30.000Z
Variational/sbm_run.py
vveitch/community_detection
6342a6c1aa9424f0a73b6027d971a0c646980f0c
[ "MIT" ]
2
2019-02-16T12:16:13.000Z
2021-05-01T02:09:35.000Z
import edward as ed import tensorflow as tf from edward.models import Dirichlet, Categorical, Gamma # debugging import sys sys.path.append("/home/victor/Documents/community_detection/Variational") from sbm import SBM # SBM parameters n_vert = 100 n_comm = 3 # fake a dataset # sort the ground truth community identi...
28.594595
105
0.705104
3c7c9cc63d8ba1036e902dac09c2689a26552d75
294
py
Python
ch_3/hw_func.py
ProhardONE/python_primer
211e37c1f2fd169269fc4f3c08e8b7e5225f2ad0
[ "MIT" ]
51
2016-04-05T16:56:11.000Z
2022-02-08T00:08:47.000Z
ch_3/hw_func.py
zhangxiao921207/python_primer
211e37c1f2fd169269fc4f3c08e8b7e5225f2ad0
[ "MIT" ]
null
null
null
ch_3/hw_func.py
zhangxiao921207/python_primer
211e37c1f2fd169269fc4f3c08e8b7e5225f2ad0
[ "MIT" ]
47
2016-05-02T07:51:37.000Z
2022-02-08T01:28:15.000Z
# Exercise 3.12 # Author: Noah Waterfield Price def hw1(): return 'Hello, World!' def hw2(): print 'Hello, World!' def hw3(s1, s2): print s1 + ', ' + s2 print hw1() hw2() hw3('Hello', 'World!') """ Sample run: python hw_func.py Hello, World! Hello, World! Hello, World! """
10.888889
31
0.598639
d60f48f78d0d95d14ee3469127e37a48dff2e1bc
7,160
py
Python
test/programytest/services/test_pannous.py
ItsPhant/program-y
c2b211fcaf8cedc7d6d95a8ea9470a913efa1622
[ "MIT" ]
null
null
null
test/programytest/services/test_pannous.py
ItsPhant/program-y
c2b211fcaf8cedc7d6d95a8ea9470a913efa1622
[ "MIT" ]
null
null
null
test/programytest/services/test_pannous.py
ItsPhant/program-y
c2b211fcaf8cedc7d6d95a8ea9470a913efa1622
[ "MIT" ]
1
2020-02-21T17:58:05.000Z
2020-02-21T17:58:05.000Z
import unittest import os import json from programy.utils.license.keys import LicenseKeys from programy.services.pannous import PannousService, PannousAPI from programy.services.service import BrainServiceConfiguration from programytest.services.mock_requests import MockRequestsAPI class PannousAPITests(unittest.Test...
37.098446
130
0.619553
0f197fdbfc77e5863d08383d327748f485b4ba2b
69
py
Python
Testcases/testcase_1.py
sanatb97/Python-Compiler
5228a36c9a881e21f9a6419315dd2f52eb2d5165
[ "MIT" ]
2
2021-10-01T22:11:46.000Z
2021-10-02T19:44:57.000Z
Testcases/testcase_1.py
vogiralshivani/Python-Compiler
5228a36c9a881e21f9a6419315dd2f52eb2d5165
[ "MIT" ]
null
null
null
Testcases/testcase_1.py
vogiralshivani/Python-Compiler
5228a36c9a881e21f9a6419315dd2f52eb2d5165
[ "MIT" ]
3
2019-02-04T03:49:08.000Z
2019-10-16T13:15:13.000Z
x=1 s=2 if(x==1): y=4 z=3 if(s==2): z=1; else: print("hi");
6.9
13
0.42029
3a958e23807415a8b141b31130337770daa90a75
2,578
py
Python
src/options.py
Arkazix/PyAutoDock
cbc3ffbc2c40c4fa881b663c4d9a81f08ad388f3
[ "MIT" ]
null
null
null
src/options.py
Arkazix/PyAutoDock
cbc3ffbc2c40c4fa881b663c4d9a81f08ad388f3
[ "MIT" ]
null
null
null
src/options.py
Arkazix/PyAutoDock
cbc3ffbc2c40c4fa881b663c4d9a81f08ad388f3
[ "MIT" ]
null
null
null
from typing import List from os import path ERROR_ARGUMENT = 1 SUCCESS = 0 class Options: def __init__(self, argv: List[str]) -> None: self.argv = argv self.argc = len(argv) self.options = ".md" self.path: str # COMMANDES def process_argument(self) -> bool: """ ...
28.32967
67
0.53879
61828c0b86f44efff27eba4f661a265ae6356a55
680
py
Python
puma/primitives/high_precision_auto_reset_event.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
null
null
null
puma/primitives/high_precision_auto_reset_event.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
13
2020-05-04T14:14:58.000Z
2020-07-29T16:37:03.000Z
puma/primitives/high_precision_auto_reset_event.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
null
null
null
import sys from puma.primitives import AutoResetEvent, HighPrecisionCondition if sys.platform == "win32": WINDOWS_WAIT_PRECISION = 0.016 WINDOWS_BUSY_INTERVAL = 0.001 # noqa: E303 class HighPrecisionAutoResetEvent(AutoResetEvent): # noqa: E301 # On windows, the timeout on event.wait() tends...
35.789474
123
0.708824
2c2b4a1127a0b7b7e7cd77d41d23e907f9a7b1ee
552
py
Python
app/core/tests/test_admin.py
boploi/recipe_app_api
760b3696f27ea56d2db171413d9921404369ca71
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
boploi/recipe_app_api
760b3696f27ea56d2db171413d9921404369ca71
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
boploi/recipe_app_api
760b3696f27ea56d2db171413d9921404369ca71
[ "MIT" ]
null
null
null
from django.test import TestCase, client from django.contrib.auth import get_user_model from django.urls import reverse """Import the test the client that will allow to make test requests to application in unit test""" class AdminSiteTest(TestCase): def setUp(self): """Create setup function that...
34.5
70
0.70471
58793b231d26c33ba258aef31c6a91bc61cd82f6
4,238
py
Python
pdseg/export_serving_model.py
windstamp/PaddleSeg
828808ea306adf2e8b94c291b77e7b7cf558bc2a
[ "ECL-2.0", "Apache-2.0" ]
3
2021-01-18T06:37:40.000Z
2021-03-11T07:47:47.000Z
pdseg/export_serving_model.py
windstamp/PaddleSeg
828808ea306adf2e8b94c291b77e7b7cf558bc2a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
pdseg/export_serving_model.py
windstamp/PaddleSeg
828808ea306adf2e8b94c291b77e7b7cf558bc2a
[ "ECL-2.0", "Apache-2.0" ]
1
2021-10-30T10:07:21.000Z
2021-10-30T10:07:21.000Z
# coding: utf8 # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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 requ...
31.161765
78
0.640396
a615fc220d545336ea1bb7e3254303b0f79a27d8
2,661
py
Python
departure-server-sdl/departure/renderer/sdl/cli.py
spujadas/departure-board-servers-python
fb43768b4ddc122c860ac1329dc28410d21576c6
[ "MIT" ]
2
2020-11-27T15:27:13.000Z
2021-10-01T20:20:38.000Z
departure-server-sdl/departure/renderer/sdl/cli.py
spujadas/departure-board-servers-python
fb43768b4ddc122c860ac1329dc28410d21576c6
[ "MIT" ]
null
null
null
departure-server-sdl/departure/renderer/sdl/cli.py
spujadas/departure-board-servers-python
fb43768b4ddc122c860ac1329dc28410d21576c6
[ "MIT" ]
1
2021-11-19T10:38:46.000Z
2021-11-19T10:38:46.000Z
from concurrent import futures import threading import ctypes import logging import sdl2 import grpc import click import departure.board.animator as animator import departure.board.board_updater as board_updater import departure.board.board as board import departure.board.departure_pb2_grpc as departure_pb2_grpc fr...
25.834951
92
0.690342
8f5ae4b67c64f5aebab4a3881482dd30bde29201
7,946
py
Python
tools/ci/python_packages/gitlab_api.py
v1993/esp-idf
6c17e3a64c02eff3a4f726ce4b7248ce11810833
[ "Apache-2.0" ]
1
2020-09-24T06:59:09.000Z
2020-09-24T06:59:09.000Z
tools/ci/python_packages/gitlab_api.py
v1993/esp-idf
6c17e3a64c02eff3a4f726ce4b7248ce11810833
[ "Apache-2.0" ]
null
null
null
tools/ci/python_packages/gitlab_api.py
v1993/esp-idf
6c17e3a64c02eff3a4f726ce4b7248ce11810833
[ "Apache-2.0" ]
null
null
null
import os import re import argparse import tempfile import tarfile import zipfile from functools import wraps import gitlab class Gitlab(object): JOB_NAME_PATTERN = re.compile(r"(\w+)(\s+(\d+)/(\d+))?") DOWNLOAD_ERROR_MAX_RETRIES = 3 def __init__(self, project_id=None): config_data_from_env = o...
38.572816
107
0.606972
ca8dcc1d75ee96fa32309f5a57b8f0f8563b356c
5,779
py
Python
example.py
bq/sorolla
f9fc2f35a673f2f11d370975be4e06c520341d88
[ "Apache-2.0" ]
16
2015-04-22T09:17:17.000Z
2015-12-05T17:17:22.000Z
example.py
bq/sorolla
f9fc2f35a673f2f11d370975be4e06c520341d88
[ "Apache-2.0" ]
null
null
null
example.py
bq/sorolla
f9fc2f35a673f2f11d370975be4e06c520341d88
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Script that colorizes, scales & tints Android resources, returning a ready-to-copy resources folder. Relies in ImageMagick commands, so it needs to be installed for this script to work. It will also need GhostScript libs installed to work with .pdf files For more data in ImageMagick color mod...
35.89441
79
0.649939
c1ce564ba81b0765d22cf4440b0fbc92bfd9f00d
5,175
py
Python
tools/nni_trial_tool/base_channel.py
hwpengms/nni
461ef242d2efe915ac58cbea27049abdd4d6dc73
[ "MIT" ]
3
2021-01-05T07:41:58.000Z
2021-01-11T02:08:01.000Z
tools/nni_trial_tool/base_channel.py
mstfbl/nni
92149c58834ccf24d82a15f756decd0d1e613ed3
[ "MIT" ]
21
2020-11-13T19:01:01.000Z
2022-02-27T09:12:51.000Z
tools/nni_trial_tool/base_channel.py
mstfbl/nni
92149c58834ccf24d82a15f756decd0d1e613ed3
[ "MIT" ]
3
2019-01-02T06:15:50.000Z
2019-01-30T14:31:20.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import json import threading import time from abc import ABC, abstractmethod from queue import Empty, Queue from .log_utils import LogType, nni_log from .commands import CommandType INTERVAL_SECONDS = 0.5 class BaseChannel(ABC): def __ini...
33.387097
122
0.575266
eda1570efb45b45e5624828e0d3b2108d3aca1fb
1,068
py
Python
src/inference.py
jasmcaus/aws-disaster-response-ml
5b0c3feedfa848e99d3487cb9024589e17d49af1
[ "MIT" ]
1
2022-02-21T19:33:02.000Z
2022-02-21T19:33:02.000Z
src/inference.py
jasmcaus/aws-disaster-response-ml
5b0c3feedfa848e99d3487cb9024589e17d49af1
[ "MIT" ]
null
null
null
src/inference.py
jasmcaus/aws-disaster-response-ml
5b0c3feedfa848e99d3487cb9024589e17d49af1
[ "MIT" ]
null
null
null
from tensorflow.keras.models import load_model from tensorflow.keras.preprocessing.image import load_img from skimage import transform from PIL import Image import numpy as np import caer from .config import * from .loss import * model = load_model( "./mass_roads_unet.h5", custom_objects={ ...
28.105263
84
0.674157
9bbcf444caba636bd1cf7eb835945e445770ee35
644
py
Python
out_to_in_op.py
kpister/biaxial-rnn-music-composition
f6feafad0fe1066dd957293803a86d6c584d9952
[ "BSD-2-Clause" ]
null
null
null
out_to_in_op.py
kpister/biaxial-rnn-music-composition
f6feafad0fe1066dd957293803a86d6c584d9952
[ "BSD-2-Clause" ]
null
null
null
out_to_in_op.py
kpister/biaxial-rnn-music-composition
f6feafad0fe1066dd957293803a86d6c584d9952
[ "BSD-2-Clause" ]
null
null
null
from aesara.graph import Op, Apply from aesara import tensor as at import numpy as np from data import noteStateSingleToInputForm class OutputFormToInputFormOp(Op): # Properties attribute __props__ = () def make_node(self, state, time): state = at.as_tensor_variable(state) time = at.as_t...
28
65
0.681677
c83b34c16d30adf80de4879d4f6dbe54d3e8a644
4,589
py
Python
framework/CsvLoader.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
159
2017-03-24T21:07:06.000Z
2022-03-20T13:44:40.000Z
framework/CsvLoader.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
1,667
2017-03-27T14:41:22.000Z
2022-03-31T19:50:06.000Z
framework/CsvLoader.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
95
2017-03-24T21:05:03.000Z
2022-03-08T17:30:22.000Z
# Copyright 2017 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
38.241667
115
0.670081
56b8309d77aa3f0e14658cb4753a0e198d03e4aa
4,921
py
Python
ioos_qc/argo.py
NOAA-PMEL/ioos_qc
bbe5a159275bd90f4b12b660776cf15557c10f0f
[ "Apache-2.0" ]
null
null
null
ioos_qc/argo.py
NOAA-PMEL/ioos_qc
bbe5a159275bd90f4b12b660776cf15557c10f0f
[ "Apache-2.0" ]
null
null
null
ioos_qc/argo.py
NOAA-PMEL/ioos_qc
bbe5a159275bd90f4b12b660776cf15557c10f0f
[ "Apache-2.0" ]
1
2021-01-20T23:20:06.000Z
2021-01-20T23:20:06.000Z
#!/usr/bin/env python # coding=utf-8 """Tests based on the ARGO QC manual.""" import logging import warnings from numbers import Real as N from typing import Sequence import numpy as np from ioos_qc.qartod import QartodFlags from ioos_qc.utils import add_flag_metadata from ioos_qc.utils import great_circle_distance f...
36.183824
115
0.68482
b06c3164c8c7660c9fcf674a3c7e1a36c3f60953
50,168
py
Python
cadnano25/cadnano/gui/ui/dialogs/dialogicons_rc.py
amylittleyang/OtraCAD
126360719704caf6850d42565fe96be53b66a22d
[ "MIT" ]
1
2021-10-11T21:47:33.000Z
2021-10-11T21:47:33.000Z
cadnano25/cadnano/gui/ui/dialogs/dialogicons_rc.py
amylittleyang/OtraCAD
126360719704caf6850d42565fe96be53b66a22d
[ "MIT" ]
null
null
null
cadnano25/cadnano/gui/ui/dialogs/dialogicons_rc.py
amylittleyang/OtraCAD
126360719704caf6850d42565fe96be53b66a22d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created: Sun Oct 12 21:41:42 2014 # by: The Resource Compiler for PyQt (Qt v5.3.1) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x0b\x17\ \x3c\ \x3f\x78\x6d\x6c\x20\x76\x65\x72\x73\x69\x6f\x6e\...
61.707257
97
0.726439
07e863b9065e0a2e23c6a7b3ef08a7441ba51432
3,265
py
Python
tsyplov_stats/sarima_model.py
tsyploff/tsyplov_stats
29126d494bd846a9d40357c59c5c1751d006bc65
[ "MIT" ]
null
null
null
tsyplov_stats/sarima_model.py
tsyploff/tsyplov_stats
29126d494bd846a9d40357c59c5c1751d006bc65
[ "MIT" ]
null
null
null
tsyplov_stats/sarima_model.py
tsyploff/tsyplov_stats
29126d494bd846a9d40357c59c5c1751d006bc65
[ "MIT" ]
null
null
null
import numpy as np from tsyplov_stats.wolfram_functions import * from tsyplov_stats.arima_model import diff, accumulate from tsyplov_stats.sarma_model import SARMA from tsyplov_stats.autoregression_model import AutoRegression def seasonal_diff(ts, D, s): start, end, dts = list(), list(), ts.copy() ...
33.316327
126
0.57366
9bcf2e128e35fbb57acf8e783f35818fe74e9623
617
py
Python
create_annotation.py
h1-the-swan/science_history_institute_chp_app
0e99dec17403dfcaa2e7fbcd0374c39a773445b1
[ "MIT" ]
null
null
null
create_annotation.py
h1-the-swan/science_history_institute_chp_app
0e99dec17403dfcaa2e7fbcd0374c39a773445b1
[ "MIT" ]
2
2021-03-31T19:15:56.000Z
2021-12-13T20:10:25.000Z
create_annotation.py
h1-the-swan/science_history_institute_chp_app
0e99dec17403dfcaa2e7fbcd0374c39a773445b1
[ "MIT" ]
null
null
null
import os def create_new_annotation(target, text, uri, group='Kzwy6GDV', tags=[]): target['type'] = 'TextQuoteSelector' a = { 'group': group, 'permissions': {'read': ['group:{}'.format(group)]}, 'tags': tags, 'target': [{'selector': [ target ]}], 'tex...
25.708333
72
0.560778
0bdb6570c5c0e7d0fb6841ffff1350c5df95e99c
3,570
py
Python
main.py
pohanchi/RePred-YuHow
a97bf4f93801bfab41ba19699b2b7c4184a2f40b
[ "Apache-2.0" ]
null
null
null
main.py
pohanchi/RePred-YuHow
a97bf4f93801bfab41ba19699b2b7c4184a2f40b
[ "Apache-2.0" ]
null
null
null
main.py
pohanchi/RePred-YuHow
a97bf4f93801bfab41ba19699b2b7c4184a2f40b
[ "Apache-2.0" ]
null
null
null
import torch import numpy as np from torch.utils.data import DataLoader, Dataset import yaml import IPython import pdb import tqdm import argparse from torch import nn from tqdm import trange from model import Model from dataset import Resisitivity_Dataset import wandb def train(expert, optimizer, criterion, datalo...
33.055556
108
0.639496
10f7d460947ee8299f96f9acb727aaeae2c9c2ad
63
py
Python
tools/build.py
LucidSigma/stardust
7012b46b0e75fa272e0bd39f3a1cc483c29fc10c
[ "MIT" ]
7
2020-10-08T11:40:53.000Z
2022-03-30T10:40:06.000Z
tools/build.py
LucidSigma/stardust
7012b46b0e75fa272e0bd39f3a1cc483c29fc10c
[ "MIT" ]
1
2020-10-08T11:44:27.000Z
2020-12-01T08:43:19.000Z
tools/build.py
LucidSigma/stardust
7012b46b0e75fa272e0bd39f3a1cc483c29fc10c
[ "MIT" ]
null
null
null
import subprocess subprocess.run("cmake ..", cwd = "../build")
21
44
0.666667
6705222d3e04617b8cdf18de7d809cd6e1ca1405
2,525
py
Python
powerline/bindings/vim/__init__.py
zhaocai/powerline
8aae1145835b4b2a71f1ed71b81d490e2907bd39
[ "MIT" ]
1
2015-03-21T21:59:15.000Z
2015-03-21T21:59:15.000Z
powerline/bindings/vim/__init__.py
zhaocai/powerline
8aae1145835b4b2a71f1ed71b81d490e2907bd39
[ "MIT" ]
null
null
null
powerline/bindings/vim/__init__.py
zhaocai/powerline
8aae1145835b4b2a71f1ed71b81d490e2907bd39
[ "MIT" ]
null
null
null
# vim:fileencoding=utf-8:noet import sys try: import vim except ImportError: vim = {} if hasattr(vim, 'bindeval'): def vim_get_func(f, rettype=None): '''Return a vim function binding.''' try: func = vim.bindeval('function("' + f + '")') if sys.version_info >= (3,) and rettype is str: return (lambda ...
24.047619
98
0.664554
e36b1058b0915e0edcc6705ca4ec8ea3fc70df89
875
py
Python
trove_tempest_plugin/services/database/json/limits_client.py
bzurkowski/trove-tempest-plugin
5a5f36e8845dbd74c36aacb45a9dc9426be464e7
[ "Apache-2.0" ]
1
2018-08-08T11:49:35.000Z
2018-08-08T11:49:35.000Z
trove_tempest_plugin/services/database/json/limits_client.py
bzurkowski/trove-tempest-plugin
5a5f36e8845dbd74c36aacb45a9dc9426be464e7
[ "Apache-2.0" ]
null
null
null
trove_tempest_plugin/services/database/json/limits_client.py
bzurkowski/trove-tempest-plugin
5a5f36e8845dbd74c36aacb45a9dc9426be464e7
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 OpenStack Foundation # 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 requ...
33.653846
78
0.725714
0660d772028ec30143c2a4ad4f54b2f10032dd32
5,171
py
Python
Project_Health/src/mklaren/kernel/kernel.py
Anonymous633671/STABILIZER
5a1ab8099a2d75ace7e053afc78055f1f4d359c0
[ "MIT" ]
9
2017-07-27T10:32:48.000Z
2021-07-01T11:51:51.000Z
Project_Health/src/mklaren/kernel/kernel.py
Anonymous633671/STABILIZER
5a1ab8099a2d75ace7e053afc78055f1f4d359c0
[ "MIT" ]
11
2016-03-15T16:27:47.000Z
2019-09-05T02:25:08.000Z
src/mklaren/kernel/kernel.py
ai-se/GENERAL
5a4bef2a80526524e3e18139b561fc0e2bb8888d
[ "MIT" ]
5
2017-01-28T22:45:34.000Z
2019-12-04T13:15:10.000Z
""" Methods related to calculation of kernel function values and kernel matrices. """ import numpy as np import numpy.ma as ma from itertools import product import scipy.sparse as sp def linear_kernel(x, y): """ The linear kernel (the usual dot product in n-dimensional space). .. math:: ...
30.063953
111
0.539934
1165c9d13fb337b6e70ed43dd6048d3adf282cda
2,501
py
Python
sahara/openstack/common/test.py
citrix-openstack-build/sahara
17e4f4dac5bb321ef4d5a55664cca0857127d7e6
[ "Apache-2.0" ]
1
2015-02-26T03:23:23.000Z
2015-02-26T03:23:23.000Z
heat/openstack/common/test.py
NeCTAR-RC/heat
b152817f192a7b46514793633ddc968c1fe1ebf8
[ "Apache-2.0" ]
1
2018-11-01T09:14:17.000Z
2018-11-01T09:14:17.000Z
heat/openstack/common/test.py
NeCTAR-RC/heat
b152817f192a7b46514793633ddc968c1fe1ebf8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # 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 # # U...
34.736111
76
0.65014
fd3b345c9040562d05c23ed50bdacaeb47b33ec9
130
py
Python
python_socks/_resolver_async.py
mgorny/python-socks
b6bae4bb904e8c066ec3bb15b408182a57ea2fbf
[ "Apache-2.0" ]
28
2020-09-21T08:34:00.000Z
2022-02-25T15:57:36.000Z
aiohttp_socks/core_socks/_resolver_async.py
maemo-leste-extras/aiohttp-socks
4771b8bc73bd85f41a158600171b931de8e0c414
[ "Apache-2.0" ]
15
2020-09-21T15:39:49.000Z
2022-01-22T15:13:31.000Z
aiohttp_socks/core_socks/_resolver_async.py
maemo-leste-extras/aiohttp-socks
4771b8bc73bd85f41a158600171b931de8e0c414
[ "Apache-2.0" ]
9
2020-11-09T10:53:32.000Z
2022-03-24T22:17:48.000Z
class AsyncResolver: async def resolve(self, host, port=0, family=0): raise NotImplementedError() # pragma: no cover
32.5
55
0.692308
bd93be532c61f3aeb68d4d94d846545e70039b7d
194
py
Python
html5/constant.py
valbendan/html5
6e4a6786005d9361f317c3ab3b37a139fd0cc977
[ "MIT" ]
1
2015-09-25T08:48:27.000Z
2015-09-25T08:48:27.000Z
html5/constant.py
valbendan/html5
6e4a6786005d9361f317c3ab3b37a139fd0cc977
[ "MIT" ]
null
null
null
html5/constant.py
valbendan/html5
6e4a6786005d9361f317c3ab3b37a139fd0cc977
[ "MIT" ]
null
null
null
__all__ = ['void_tag'] void_tag = {'meta', 'base', 'br', 'hr', 'img', 'area', 'link', 'input', 'wbr', 'colgroup', 'track', 'command', 'param', 'col', 'source', 'keygen', '!DOCTYPE'}
48.5
91
0.520619
b5c77155e772e525fa10751da5ed617a638e4491
4,337
py
Python
aisp-core/aisp-core-main/src/main/python/tools/audacity2metadata.py
Enterprise-Neurosystem/ai-signal-processing
cce8e50c265498da494b679a870422365657274f
[ "Apache-2.0" ]
null
null
null
aisp-core/aisp-core-main/src/main/python/tools/audacity2metadata.py
Enterprise-Neurosystem/ai-signal-processing
cce8e50c265498da494b679a870422365657274f
[ "Apache-2.0" ]
null
null
null
aisp-core/aisp-core-main/src/main/python/tools/audacity2metadata.py
Enterprise-Neurosystem/ai-signal-processing
cce8e50c265498da494b679a870422365657274f
[ "Apache-2.0" ]
null
null
null
#******************************************************************************* # * Copyright [2022] [IBM] # * # * 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.apac...
53.54321
204
0.649988
e7c1d94579ae39e106a8ccd7a6e00a1dd1301d08
849
py
Python
plato_pylib/utils/ase_conversions.py
RFogarty1/plato_pylib
b0ab65bfe489c4bb1fd321cc102580bef2b6ff68
[ "MIT" ]
null
null
null
plato_pylib/utils/ase_conversions.py
RFogarty1/plato_pylib
b0ab65bfe489c4bb1fd321cc102580bef2b6ff68
[ "MIT" ]
null
null
null
plato_pylib/utils/ase_conversions.py
RFogarty1/plato_pylib
b0ab65bfe489c4bb1fd321cc102580bef2b6ff68
[ "MIT" ]
null
null
null
import itertools as it from ..shared import ucell_class as uCell def getUnitCellObjectFromASEAtomsObject(aseAtomsObj): """ Get a plato_pylib UnitCell object from ASE Atoms object (essentially the equivalent ASE object). Note at time of writing im only planning to test thes on objects with pbcs, so be careful if usi...
31.444444
218
0.779741
dd1b44917600e3bb440d9f57cb1d8c57d589812e
700
py
Python
molecule_ec2/test/scenarios/driver/ec2/molecule/multi-node/tests/test_default.py
aruntomar/molecule-ec2
a875011fa8f76fc8c6eaf6666c87c0eb9545a341
[ "MIT" ]
39
2020-01-19T01:58:41.000Z
2022-03-10T12:28:34.000Z
molecule_ec2/test/scenarios/driver/ec2/molecule/multi-node/tests/test_default.py
aruntomar/molecule-ec2
a875011fa8f76fc8c6eaf6666c87c0eb9545a341
[ "MIT" ]
43
2020-01-22T19:58:33.000Z
2022-02-01T09:44:53.000Z
molecule_ec2/test/scenarios/driver/ec2/molecule/multi-node/tests/test_default.py
aruntomar/molecule-ec2
a875011fa8f76fc8c6eaf6666c87c0eb9545a341
[ "MIT" ]
31
2020-01-22T19:57:17.000Z
2022-03-12T07:31:08.000Z
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ["MOLECULE_INVENTORY_FILE"] ).get_hosts("all") # EC2 provides unique random hostnames. def test_hostname(host): pass def test_etc_molecule_directory(host): f = host.file("/etc/mole...
21.875
74
0.702857
136b4ff0c51351e1dbb431f03e0922e9e17d8ee9
66
py
Python
excel_import_export/wizard/__init__.py
Chief0-0/Localizacion_ERP_V12
f59e56564e29525f772b59db7fef7c7cde347336
[ "Apache-2.0" ]
null
null
null
excel_import_export/wizard/__init__.py
Chief0-0/Localizacion_ERP_V12
f59e56564e29525f772b59db7fef7c7cde347336
[ "Apache-2.0" ]
null
null
null
excel_import_export/wizard/__init__.py
Chief0-0/Localizacion_ERP_V12
f59e56564e29525f772b59db7fef7c7cde347336
[ "Apache-2.0" ]
null
null
null
from . import export_xlsx_wizard from . import import_xlsx_wizard
22
32
0.848485
3374e1c13f8004100c2f3c114edbfba2db26dec6
44,702
py
Python
sdk/cwl/tests/test_container.py
basharbme/arvados
1c3c8f7fd2e1268b139e046fbd6a7093dd82222f
[ "Apache-2.0" ]
1
2019-09-08T01:49:09.000Z
2019-09-08T01:49:09.000Z
sdk/cwl/tests/test_container.py
basharbme/arvados
1c3c8f7fd2e1268b139e046fbd6a7093dd82222f
[ "Apache-2.0" ]
null
null
null
sdk/cwl/tests/test_container.py
basharbme/arvados
1c3c8f7fd2e1268b139e046fbd6a7093dd82222f
[ "Apache-2.0" ]
null
null
null
# Copyright (C) The Arvados Authors. All rights reserved. # # SPDX-License-Identifier: Apache-2.0 from builtins import str from builtins import object import arvados_cwl import arvados_cwl.context import arvados_cwl.util from arvados_cwl.arvdocker import arv_docker_clear_cache import copy import arvados.config import...
41.583256
147
0.518567
a901d0c61b616245177af2738749a27058f1a8ad
513
py
Python
code/scoring/compare_test_preds.py
s231644/rucompoundsplitter
606d4ac085ea0b3f8c764ebf413d66d2ec45cab4
[ "Apache-2.0" ]
null
null
null
code/scoring/compare_test_preds.py
s231644/rucompoundsplitter
606d4ac085ea0b3f8c764ebf413d66d2ec45cab4
[ "Apache-2.0" ]
null
null
null
code/scoring/compare_test_preds.py
s231644/rucompoundsplitter
606d4ac085ea0b3f8c764ebf413d66d2ec45cab4
[ "Apache-2.0" ]
null
null
null
import torch from code.ml.vocab import vocab from evaluate import compare from train_lstm_scorer import LSTMScorer best_path = "scorer_best.bin" scorer = LSTMScorer( len(vocab.i2w), 250, 128, 256, emb_dropout=0.1, rnn_dropout=0.25, pretrained_path="scorer_best.bin" ) scorer.model.load_state_dict(torch.load...
23.318182
85
0.732943
ef4cbc68a1fa37fb0eb7bee3d960c620770eaf1d
7,072
py
Python
tests/test_model.py
rameshKrSah/mle-logging
ab4b7b8f8ea46cdac170349f60137a4aae4666d3
[ "MIT" ]
47
2021-08-23T14:30:59.000Z
2021-10-31T15:08:49.000Z
tests/test_model.py
rameshKrSah/mle-logging
ab4b7b8f8ea46cdac170349f60137a4aae4666d3
[ "MIT" ]
2
2021-08-24T11:26:26.000Z
2021-10-01T08:17:53.000Z
tests/test_model.py
rameshKrSah/mle-logging
ab4b7b8f8ea46cdac170349f60137a4aae4666d3
[ "MIT" ]
3
2021-08-24T16:53:31.000Z
2021-08-28T21:06:49.000Z
import os import shutil import numpy as np import torch.nn as nn from sklearn.svm import SVC from mle_logging import MLELogger, load_model, load_log log_config = { "time_to_track": ["num_updates", "num_epochs"], "what_to_track": ["train_loss", "test_loss"], "experiment_dir": "experiment_dir/", "config...
31.017544
85
0.656533
e43183e60013956a529daeebefc2fcafdda45f94
5,072
py
Python
src/piptool.py
seanxwzhang/rules_pip
fede654462980b2dd9b60c041e043e8e628f05bd
[ "MIT" ]
null
null
null
src/piptool.py
seanxwzhang/rules_pip
fede654462980b2dd9b60c041e043e8e628f05bd
[ "MIT" ]
null
null
null
src/piptool.py
seanxwzhang/rules_pip
fede654462980b2dd9b60c041e043e8e628f05bd
[ "MIT" ]
null
null
null
import argparse import logging import re import sys from pip._internal.req.req_file import parse_requirements from pip._internal.download import PipSession def clean_name(name): # Escape any illegal characters with underscore. return re.sub("[-.+]", "_", name) def is_pinned_requirement(ireq): """ R...
27.868132
88
0.619085
da2c213a4631fc7e52e3379e84b2d265e459f982
11,702
py
Python
micromamba/tests/helpers.py
wulmer/mamba
5961d76afdd8b0f070bf0f2da396ef25289c965c
[ "BSD-3-Clause" ]
null
null
null
micromamba/tests/helpers.py
wulmer/mamba
5961d76afdd8b0f070bf0f2da396ef25289c965c
[ "BSD-3-Clause" ]
null
null
null
micromamba/tests/helpers.py
wulmer/mamba
5961d76afdd8b0f070bf0f2da396ef25289c965c
[ "BSD-3-Clause" ]
null
null
null
import errno import json import os import platform import random import shutil import string import subprocess import sys from enum import Enum from pathlib import Path import pytest import yaml class DryRun(Enum): OFF = "OFF" DRY = "DRY" ULTRA_DRY = "ULTRA_DRY" use_offline = False channel = ["-c", "co...
27.599057
87
0.607418
fe89e329de68f460717efdc26f00a88a7bed34ec
13,451
py
Python
art/classifiers/ensemble.py
ebubae/adversarial-robustness-toolbox
55efab2c1a60ae14c37b72fe84778355314396ea
[ "MIT" ]
17
2019-09-15T04:00:31.000Z
2021-03-18T08:12:21.000Z
art/classifiers/ensemble.py
ebubae/adversarial-robustness-toolbox
55efab2c1a60ae14c37b72fe84778355314396ea
[ "MIT" ]
null
null
null
art/classifiers/ensemble.py
ebubae/adversarial-robustness-toolbox
55efab2c1a60ae14c37b72fe84778355314396ea
[ "MIT" ]
null
null
null
# MIT License # # Copyright (C) IBM Corporation 2018 # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge...
46.867596
120
0.644785
2a5d1eae480cc7de69c8fccc849d80082bb230f6
22,849
py
Python
python/lwt_interface/dict_encoding_testlib.py
minesrebollo/tskit
c381917280fc7dccaa615cb9c51e172ae90cb3ed
[ "MIT" ]
null
null
null
python/lwt_interface/dict_encoding_testlib.py
minesrebollo/tskit
c381917280fc7dccaa615cb9c51e172ae90cb3ed
[ "MIT" ]
96
2021-06-22T16:05:43.000Z
2022-03-28T19:06:31.000Z
python/lwt_interface/dict_encoding_testlib.py
daniel-goldstein/tskit
0972c6168b7c4c2b50878e677199a7f4b030cb7a
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2018-2020 Tskit Developers # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modif...
35.926101
88
0.606153
7c34568b9cd77af451940da55488080f01f24771
700
py
Python
versions.py
shamanenas/learning-cnn
7ddbe770c8243eb8bc4cfc7740ea16624ff6968b
[ "CC0-1.0" ]
null
null
null
versions.py
shamanenas/learning-cnn
7ddbe770c8243eb8bc4cfc7740ea16624ff6968b
[ "CC0-1.0" ]
null
null
null
versions.py
shamanenas/learning-cnn
7ddbe770c8243eb8bc4cfc7740ea16624ff6968b
[ "CC0-1.0" ]
null
null
null
# check library version numbers # scipy import scipy print('scipy: %s' % scipy.__version__) # numpy import numpy print('numpy: %s' % numpy.__version__) # matplotlib import matplotlib print('matplotlib: %s' % matplotlib.__version__) # pandas import pandas print('pandas: %s' % pandas.__version__) # stats...
18.918919
51
0.728571
1fbf1473cb57b06fdfd6c8b345352b4ddd79d761
11,951
py
Python
pyglet/libs/win32/__init__.py
swipswaps/pyglet
2bfd7ee52482b805ae076cf5036c5628e8a72224
[ "BSD-3-Clause" ]
1
2020-04-12T15:20:34.000Z
2020-04-12T15:20:34.000Z
pyglet/libs/win32/__init__.py
swipswaps/pyglet
2bfd7ee52482b805ae076cf5036c5628e8a72224
[ "BSD-3-Clause" ]
null
null
null
pyglet/libs/win32/__init__.py
swipswaps/pyglet
2bfd7ee52482b805ae076cf5036c5628e8a72224
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # Copyright (c) 2008-2019 pyglet contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provi...
43.300725
131
0.764036
0fa1c30b900432ed241a8d73daff39f31764f17d
1,220
py
Python
dedupe/tfidf.py
dwillis/dedupe
d85833a5f5c2de5671df51e828ba1609de7b8f05
[ "MIT" ]
1
2021-01-13T12:10:49.000Z
2021-01-13T12:10:49.000Z
dedupe/tfidf.py
dwillis/dedupe
d85833a5f5c2de5671df51e828ba1609de7b8f05
[ "MIT" ]
null
null
null
dedupe/tfidf.py
dwillis/dedupe
d85833a5f5c2de5671df51e828ba1609de7b8f05
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import collections import math import re import core class TfidfPredicate(float): def __new__(self, threshold): return float.__new__(self, threshold) def __init__(self, threshold): self.__name__ = 'TF-IDF:' + str(threshold) def documentFrequency(cor...
25.416667
94
0.65082
bc063e66b880cc772a374f21694e2efda372c8eb
5,641
py
Python
sources_non_forked/ultisnips/pythonx/UltiSnips/text_objects/transformation.py
khatchad/vimrc
e4fb69d3b7a8635f0881461853c9144763fae4c7
[ "MIT" ]
1
2017-04-24T04:07:48.000Z
2017-04-24T04:07:48.000Z
sources_non_forked/ultisnips/pythonx/UltiSnips/text_objects/transformation.py
RobotMa/vimrc
5beda397d3c6f88b8542d843107a64c42bf13c93
[ "MIT" ]
null
null
null
sources_non_forked/ultisnips/pythonx/UltiSnips/text_objects/transformation.py
RobotMa/vimrc
5beda397d3c6f88b8542d843107a64c42bf13c93
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 """Implements TabStop transformations.""" import re import sys from UltiSnips.text import unescape, fill_in_whitespace from UltiSnips.text_objects.mirror import Mirror def _find_closing_brace(string, start_pos): """Finds the corresponding closing brace after start_pos."...
31.513966
88
0.587839
6d215eed1e981386d76062fcdf77f1f55f00234b
15,764
py
Python
certbot/tests/account_test.py
silverbacknet/certbot
270b5535e24fd3dab4c05fa8929adca8117942f1
[ "Apache-2.0" ]
null
null
null
certbot/tests/account_test.py
silverbacknet/certbot
270b5535e24fd3dab4c05fa8929adca8117942f1
[ "Apache-2.0" ]
2
2019-11-20T07:08:26.000Z
2020-11-05T23:31:48.000Z
certbot/tests/account_test.py
silverbacknet/certbot
270b5535e24fd3dab4c05fa8929adca8117942f1
[ "Apache-2.0" ]
null
null
null
"""Tests for certbot._internal.account.""" import datetime import json import unittest import josepy as jose try: import mock except ImportError: # pragma: no cover from unittest import mock import pytz from acme import messages from certbot import errors from certbot.compat import filesystem from certbot.com...
43.546961
99
0.688594
807d657fc565e899b959bfaa2484b8d73f93e971
321
py
Python
gym/envs/toy_text/__init__.py
richardmeng/gym
a6c06fc1e3e8842c3e3fffd9e701dd1beeba5541
[ "MIT" ]
49
2017-12-11T11:00:02.000Z
2022-03-30T05:19:31.000Z
gym_customize/python2/gym/envs/toy_text/__init__.py
KuangenZhang/hybrid-zero-RL-rabbit
1b67d4082e279205e676972932345c3e83227538
[ "MIT" ]
2
2018-01-01T17:39:56.000Z
2019-07-24T04:49:08.000Z
gym_customize/python2/gym/envs/toy_text/__init__.py
KuangenZhang/hybrid-zero-RL-rabbit
1b67d4082e279205e676972932345c3e83227538
[ "MIT" ]
12
2017-12-13T11:52:17.000Z
2020-12-03T00:53:29.000Z
from gym.envs.toy_text.blackjack import BlackjackEnv from gym.envs.toy_text.roulette import RouletteEnv from gym.envs.toy_text.frozen_lake import FrozenLakeEnv from gym.envs.toy_text.nchain import NChainEnv from gym.envs.toy_text.hotter_colder import HotterColder from gym.envs.toy_text.guessing_game import GuessingGame...
45.857143
56
0.869159
3a3c0740f9006944e85dc707bb6f4aff63f4b0ab
1,873
py
Python
bedevere/__main__.py
sabderemane/bedevere
1f7ab8324e3f75071af10fd086bccfe44067d869
[ "Apache-2.0" ]
null
null
null
bedevere/__main__.py
sabderemane/bedevere
1f7ab8324e3f75071af10fd086bccfe44067d869
[ "Apache-2.0" ]
null
null
null
bedevere/__main__.py
sabderemane/bedevere
1f7ab8324e3f75071af10fd086bccfe44067d869
[ "Apache-2.0" ]
null
null
null
import asyncio import importlib import os import sys import traceback import aiohttp from aiohttp import web import cachetools from gidgethub import aiohttp as gh_aiohttp from gidgethub import routing from gidgethub import sansio from . import backport, gh_issue, close_pr, filepaths, news, stage import sentry_sdk r...
32.293103
76
0.640149
1c9c0f212c16b26823b1296c2ef213a7d4f4abb4
3,207
py
Python
Iris_recog/locate.py
Theocrat/Iris
5aaba5dc915f53d148106c0c6bca57e09c548d9c
[ "MIT" ]
null
null
null
Iris_recog/locate.py
Theocrat/Iris
5aaba5dc915f53d148106c0c6bca57e09c548d9c
[ "MIT" ]
null
null
null
Iris_recog/locate.py
Theocrat/Iris
5aaba5dc915f53d148106c0c6bca57e09c548d9c
[ "MIT" ]
null
null
null
from pupil import * from iris import * from numpy import zeros from skimage import draw from imworks import * def locate(fname): pupil_img = pupil_detect(fname) rows = pupil_img.shape[0] cols = pupil_img.shape[1] for col in range(cols): col = cols - 1 - col if sum(pupil_img[:,col]) > 0: east_mark = col ...
25.862903
69
0.641721
cea47fb5b07dbc601f680ea22f3791d575d54ca8
873
py
Python
gen_captcha.py
thbspan/tensorflow_captcha
d7ef2b64df95b040fb6e7479e5ec137c89083030
[ "Apache-2.0" ]
null
null
null
gen_captcha.py
thbspan/tensorflow_captcha
d7ef2b64df95b040fb6e7479e5ec137c89083030
[ "Apache-2.0" ]
7
2020-09-26T02:29:17.000Z
2022-03-12T00:40:35.000Z
gen_captcha.py
thbspan/tensorflow_captcha
d7ef2b64df95b040fb6e7479e5ec137c89083030
[ "Apache-2.0" ]
null
null
null
import random from captcha.image import ImageCaptcha import config def random_captcha_text(char_set=None, captcha_size=4): if char_set is None: char_set = config.VALIDATE_CHAR captcha_text = [] for i in range(captcha_size): c = random.choice(char_set) captcha_text.append(c) r...
24.25
109
0.701031
c7d723ccf13e4ca0045d70dd69540d20bb1c9c49
572
py
Python
blender/arm/logicnode/material/LN_set_object_material.py
Lykdraft/armory
da1cf33930ce9a8b1865d35c128fe4842bef2933
[ "Zlib" ]
null
null
null
blender/arm/logicnode/material/LN_set_object_material.py
Lykdraft/armory
da1cf33930ce9a8b1865d35c128fe4842bef2933
[ "Zlib" ]
null
null
null
blender/arm/logicnode/material/LN_set_object_material.py
Lykdraft/armory
da1cf33930ce9a8b1865d35c128fe4842bef2933
[ "Zlib" ]
null
null
null
from arm.logicnode.arm_nodes import * class SetMaterialNode(ArmLogicTreeNode): """Use to set the material of an object.""" bl_idname = 'LNSetMaterialNode' bl_label = 'Set Object Material' arm_version = 1 def init(self, context): super(SetMaterialNode, self).init(context) self.add_i...
33.647059
55
0.704545
f6d10861138cbaa1e6428a14c38a1ba78d8350be
1,813
py
Python
alexa-aws-whatsnew/code/awsfeedparserlambda.py
karthiksambandam/my-sam-apps
ad22c423231e2099d5c38793827f6173bb9f0acb
[ "Apache-2.0" ]
null
null
null
alexa-aws-whatsnew/code/awsfeedparserlambda.py
karthiksambandam/my-sam-apps
ad22c423231e2099d5c38793827f6173bb9f0acb
[ "Apache-2.0" ]
null
null
null
alexa-aws-whatsnew/code/awsfeedparserlambda.py
karthiksambandam/my-sam-apps
ad22c423231e2099d5c38793827f6173bb9f0acb
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import json from botocore.vendored import requests import feedparser import boto3 from datetime import datetime from datetime import timedelta import time import re import os def cleanhtml(raw_html): cleanr = re.compile('<.*?>') cleantext = re.sub(cleanr, '', raw_html) clea...
34.865385
80
0.629344
197b5cc2e0d87cee5363678b49f4fd12c0b9f776
709
py
Python
Desafios/desafio-79.py
marielitonmb/Curso-Python3
26215c47c4d1eadf940b8024305b7e9ff600883b
[ "MIT" ]
null
null
null
Desafios/desafio-79.py
marielitonmb/Curso-Python3
26215c47c4d1eadf940b8024305b7e9ff600883b
[ "MIT" ]
null
null
null
Desafios/desafio-79.py
marielitonmb/Curso-Python3
26215c47c4d1eadf940b8024305b7e9ff600883b
[ "MIT" ]
null
null
null
# Aula 17 - Desafio 79: Valores unicos em uma lista # Ler varios numeros e coloca-los numa lista, caso um numero ja exista na lista, ele nao eh adicionado. # No final, mostrar todos os valores unicos lidos em ordem crescente. lista = [] while True: num = int(input('Digite um numero: ')) if num in lista: ...
28.36
103
0.631876
adae10f0bb6ad773d2b04364222c419d1e0a0b99
1,169
py
Python
nipype/interfaces/camino/tests/test_auto_Image2Voxel.py
abelalez/nipype
878271bd906768f11c4cabd04e5d1895551ce8a7
[ "Apache-2.0" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
nipype/interfaces/camino/tests/test_auto_Image2Voxel.py
abelalez/nipype
878271bd906768f11c4cabd04e5d1895551ce8a7
[ "Apache-2.0" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
nipype/interfaces/camino/tests/test_auto_Image2Voxel.py
abelalez/nipype
878271bd906768f11c4cabd04e5d1895551ce8a7
[ "Apache-2.0" ]
1
2020-07-17T12:49:49.000Z
2020-07-17T12:49:49.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..convert import Image2Voxel def test_Image2Voxel_inputs(): input_map = dict( args=dict(argstr='%s', ), environ=dict( nohash=True, usedefault=True, ), in_file=...
28.512195
67
0.569718
c0021df11fcd215faf14844ac879de890b38be36
9,595
py
Python
homeassistant/components/brother/const.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
homeassistant/components/brother/const.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
70
2020-07-23T07:13:50.000Z
2022-03-31T06:01:52.000Z
homeassistant/components/brother/const.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
6
2018-02-04T03:48:55.000Z
2022-01-24T20:37:04.000Z
"""Constants for Brother integration.""" from __future__ import annotations from typing import Final from homeassistant.components.sensor import ATTR_STATE_CLASS, STATE_CLASS_MEASUREMENT from homeassistant.const import ( ATTR_DEVICE_CLASS, ATTR_ICON, DEVICE_CLASS_TIMESTAMP, PERCENTAGE, ) from .model ...
37.189922
85
0.704534
102c2b6217d8bde53eef005cebce9240fdf8d4d7
29,388
py
Python
probatus/feature_elimination/feature_elimination.py
maastrichtlawtech/probatus
fe0442acc2e51b6c5116b5a97005a548c381f662
[ "MIT" ]
null
null
null
probatus/feature_elimination/feature_elimination.py
maastrichtlawtech/probatus
fe0442acc2e51b6c5116b5a97005a548c381f662
[ "MIT" ]
null
null
null
probatus/feature_elimination/feature_elimination.py
maastrichtlawtech/probatus
fe0442acc2e51b6c5116b5a97005a548c381f662
[ "MIT" ]
1
2021-03-01T19:53:56.000Z
2021-03-01T19:53:56.000Z
from probatus.utils import ( preprocess_data, shap_calc, calculate_shap_importance, BaseFitComputePlotClass, preprocess_labels, get_single_scorer, ) import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.model_selection import RandomizedSearchCV, GridSearchCV, check_...
43.732143
195
0.628896
24d2e42274d97e1d3799685f33e2354c4c033cdf
10,569
py
Python
dnacentersdk/api/v1_2_10/fabric_wired.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/api/v1_2_10/fabric_wired.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/api/v1_2_10/fabric_wired.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Fabric Wired API wrapper. Copyright (c) 2019-2020 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including...
37.478723
78
0.599016
31898b2a348795ed40c5adfa1b57c00c38cee3a4
2,707
py
Python
escape_game/db.py
jpochetedmead/Flask-Adventure-Game
43fe7d01e9c5df0e9939876bff7eb0daba7865fc
[ "MIT" ]
null
null
null
escape_game/db.py
jpochetedmead/Flask-Adventure-Game
43fe7d01e9c5df0e9939876bff7eb0daba7865fc
[ "MIT" ]
null
null
null
escape_game/db.py
jpochetedmead/Flask-Adventure-Game
43fe7d01e9c5df0e9939876bff7eb0daba7865fc
[ "MIT" ]
null
null
null
import sqlite3 import click # g is a special object that is unique for each request. It is used to store data that might be accessed by multiple functions during the request. The connection is stored and reused instead of creating a new connection if get_db is called a second time in the same request. from flask impor...
57.595745
330
0.74843
5f4f9190f030a4d4d8a0c9fd84252de41567890a
17,978
py
Python
evaluation.py
coallaoh/wsolevaluation
f645640f18eb3e7075ea146bc048cc07d090bfdb
[ "MIT" ]
null
null
null
evaluation.py
coallaoh/wsolevaluation
f645640f18eb3e7075ea146bc048cc07d090bfdb
[ "MIT" ]
null
null
null
evaluation.py
coallaoh/wsolevaluation
f645640f18eb3e7075ea146bc048cc07d090bfdb
[ "MIT" ]
null
null
null
""" Copyright (c) 2020-present NAVER Corp. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
37.768908
80
0.634498
78dea3cf77dd847188c81be2021dae27d371116a
44
py
Python
models/__init__.py
lclbm/xrx_pvp_server
f40cdbdc5de8c04b8113611c3174c84a200402b1
[ "MIT" ]
1
2022-03-31T06:27:03.000Z
2022-03-31T06:27:03.000Z
models/__init__.py
lclbm/xrx_pvp_server
f40cdbdc5de8c04b8113611c3174c84a200402b1
[ "MIT" ]
null
null
null
models/__init__.py
lclbm/xrx_pvp_server
f40cdbdc5de8c04b8113611c3174c84a200402b1
[ "MIT" ]
1
2022-03-10T07:39:24.000Z
2022-03-10T07:39:24.000Z
from .models import PlayerInfo, ActivityInfo
44
44
0.863636
e96b5495e2ad22243fe261fefa6316e478fc003d
1,337
py
Python
flavio/physics/betadecays/common.py
AlexandreCarvunis/flavio
c21936a5ff004283b08cab543e2c880e35526bb6
[ "MIT" ]
61
2016-03-09T16:19:39.000Z
2022-03-30T00:55:51.000Z
flavio/physics/betadecays/common.py
AlexandreCarvunis/flavio
c21936a5ff004283b08cab543e2c880e35526bb6
[ "MIT" ]
167
2016-03-15T15:25:57.000Z
2022-02-27T22:19:22.000Z
flavio/physics/betadecays/common.py
AlexandreCarvunis/flavio
c21936a5ff004283b08cab543e2c880e35526bb6
[ "MIT" ]
57
2016-03-15T14:24:23.000Z
2022-01-14T01:00:03.000Z
"""Common functions for beta decays.""" import flavio from flavio.physics.edms.common import proton_charges from flavio.physics.bdecays.wilsoncoefficients import get_wceff_fccc_std, get_CVLSM from math import sqrt def wc_eff(par, wc_obj, scale, nu): r"""Lee-Yang effective couplings. See eqS. (2), (9) of arX...
33.425
95
0.608826
2ae67bf34529e2821d3d090b120577d94a39235f
228
py
Python
readthedocs/organizations/constants.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
4,054
2015-01-01T00:58:07.000Z
2019-06-28T05:50:49.000Z
readthedocs/organizations/constants.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
4,282
2015-01-01T21:38:49.000Z
2019-06-28T15:41:00.000Z
readthedocs/organizations/constants.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
3,224
2015-01-01T07:38:45.000Z
2019-06-28T09:19:10.000Z
"""Constants for ACL.""" from django.utils.translation import gettext_lazy as _ READ_ONLY_ACCESS = 'readonly' ADMIN_ACCESS = 'admin' ACCESS_LEVELS = ( (READ_ONLY_ACCESS, _('Read-only')), (ADMIN_ACCESS, _('Admin')), )
19
54
0.697368
96a12b45102d112891ff494d60d5d99b9972df2e
1,921
py
Python
bromelia/config.py
post-cyberlabs/bromelia
a21c6af591fa3ebe5335f2f34b13b60f03a48b55
[ "MIT" ]
null
null
null
bromelia/config.py
post-cyberlabs/bromelia
a21c6af591fa3ebe5335f2f34b13b60f03a48b55
[ "MIT" ]
null
null
null
bromelia/config.py
post-cyberlabs/bromelia
a21c6af591fa3ebe5335f2f34b13b60f03a48b55
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ bromelia.config ~~~~~~~~~~~~~~~ This module contains configuration structures. :copyright: (c) 2020-present Henrique Marques Ribeiro. :license: MIT, see LICENSE for more details. """ import logging import os BASEDIR = os.getcwd() #: Configs for statemachine.py module...
26.315068
73
0.652264
5b19e14479887bd909674bb8978293a72e0023b8
4,093
py
Python
synthdnm/swap.py
james-guevara/synthdnm
8510cfd91438452da553d35894b63c5d75cdd47e
[ "MIT" ]
6
2021-02-22T08:29:49.000Z
2021-11-26T21:24:49.000Z
build/lib/synthdnm/swap.py
james-guevara/synthdnm
8510cfd91438452da553d35894b63c5d75cdd47e
[ "MIT" ]
1
2021-10-04T19:22:34.000Z
2021-11-16T21:22:12.000Z
synthdnm/swap.py
james-guevara/synthdnm
8510cfd91438452da553d35894b63c5d75cdd47e
[ "MIT" ]
1
2020-11-06T18:57:57.000Z
2020-11-06T18:57:57.000Z
from collections import OrderedDict # Skip families that don't have both parents def skip_families(ped_filename): num_parents = {} f = open(ped_filename,"r") for line in f: linesplit = line.rstrip().split("\t") fid, iid, iid_father, iid_mother, sex = linesplit[0],linesplit[1],linesplit[2],l...
45.477778
131
0.637185
6b2bcc2500649cd053016b5daedc16848742ebc0
3,115
py
Python
__data3__analyzeImbalanceOfData.py
mtkier94/Surrender_Analysis
a346099b39f2063e3ceb88c125d754a94cfdd5fa
[ "MIT" ]
null
null
null
__data3__analyzeImbalanceOfData.py
mtkier94/Surrender_Analysis
a346099b39f2063e3ceb88c125d754a94cfdd5fa
[ "MIT" ]
null
null
null
__data3__analyzeImbalanceOfData.py
mtkier94/Surrender_Analysis
a346099b39f2063e3ceb88c125d754a94cfdd5fa
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import pickle5 as pickle import os from imblearn.over_sampling import SMOTE from imblearn.under_sampling import RandomUnderSampler from functions.sub_surrender_profiles import get_risk_drivers from global_vars import path_tables, getDataPath def reviewDataBalance(surrender_prof...
39.935897
237
0.701445
356f7172ee3c7f6d2033af268bf78182bc349c59
495
py
Python
dodo.py
pmav99/geoviews
ad6e3f028b0532fdf604a92ffca3238c2bd8ef4f
[ "BSD-3-Clause" ]
172
2019-11-18T17:30:53.000Z
2022-03-31T21:36:41.000Z
dodo.py
martinfleis/geoviews
30abec5741f5173e746630f7b9e4fc6f7adfa102
[ "BSD-3-Clause" ]
166
2019-11-14T05:21:03.000Z
2022-03-07T17:20:00.000Z
dodo.py
martinfleis/geoviews
30abec5741f5173e746630f7b9e4fc6f7adfa102
[ "BSD-3-Clause" ]
24
2019-11-29T06:20:31.000Z
2021-12-23T00:58:06.000Z
import os if "PYCTDEV_ECOSYSTEM" not in os.environ: os.environ["PYCTDEV_ECOSYSTEM"] = "conda" from pyctdev import * # noqa: api def task_pip_on_conda(): """Experimental: provide pip build env via conda""" return {'actions':[ # some ecosystem=pip build tools must be installed with conda when usin...
30.9375
89
0.666667
319fd8bf5e84b63937cfa642985a647930a190e3
519
py
Python
stix_shifter/stix_transmission/src/modules/base/base_ping.py
kant/stix-shifter
164ea13c4fc34815df786897c8d882dcdc499680
[ "Apache-2.0" ]
1
2020-01-26T04:07:55.000Z
2020-01-26T04:07:55.000Z
stix_shifter/stix_transmission/src/modules/base/base_ping.py
kant/stix-shifter
164ea13c4fc34815df786897c8d882dcdc499680
[ "Apache-2.0" ]
null
null
null
stix_shifter/stix_transmission/src/modules/base/base_ping.py
kant/stix-shifter
164ea13c4fc34815df786897c8d882dcdc499680
[ "Apache-2.0" ]
2
2019-06-26T19:23:52.000Z
2019-07-09T15:33:16.000Z
from abc import ABCMeta, abstractmethod class BasePing(object, metaclass=ABCMeta): @abstractmethod def ping(self): """ Sends a basic request to the datasource to confirm we are connected and authenticated Args: search_id (str): The datasource query ID. Returns: ...
25.95
93
0.564547
3aba0ecc6ef9b0eb71fdc028c54bc38199718570
764
py
Python
test/test_issue1160.py
donbowman/rdflib
c1be731c8e6bbe997cc3f25890bbaf685499c517
[ "BSD-3-Clause" ]
1,424
2015-01-04T13:10:22.000Z
2022-03-29T15:12:38.000Z
test/test_issue1160.py
donbowman/rdflib
c1be731c8e6bbe997cc3f25890bbaf685499c517
[ "BSD-3-Clause" ]
1,148
2015-01-01T18:26:18.000Z
2022-03-31T21:51:53.000Z
test/test_issue1160.py
sa-bpelakh/rdflib
42d0ca9af7f3c75a463423444aa42a1b60cfabc8
[ "BSD-3-Clause" ]
459
2015-01-03T14:41:34.000Z
2022-03-14T22:06:47.000Z
import unittest from unittest import mock import rdflib from rdflib import ConjunctiveGraph from rdflib.parser import URLInputSource QUERY = """ SELECT DISTINCT ?g FROM NAMED <http://ns.example.com/named#> WHERE { GRAPH ?g { ?s ?p ?o . } } """ class NamedGraphWithFragmentTest(unittest.TestCase): def te...
23.151515
69
0.660995
c0b6a1e35596489d36fd0dc555843cfd9d5fabb4
28,832
py
Python
asset/views.py
1049759078/autoops
c3618a8c931a16573df7fe422333ff5d151acf85
[ "Apache-2.0" ]
null
null
null
asset/views.py
1049759078/autoops
c3618a8c931a16573df7fe422333ff5d151acf85
[ "Apache-2.0" ]
null
null
null
asset/views.py
1049759078/autoops
c3618a8c931a16573df7fe422333ff5d151acf85
[ "Apache-2.0" ]
1
2018-09-18T09:01:42.000Z
2018-09-18T09:01:42.000Z
from django.shortcuts import render, redirect, HttpResponse, get_object_or_404 from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from asset.models import asset, system_users, performance, web_history, data_centers from .form import AssetForm, SystemUserFo...
41.967977
238
0.579113
c8dde288f313489063dc24c363366afbec40396e
24,366
py
Python
cinder/tests/unit/backup/drivers/test_backup_google.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
11
2015-08-25T13:11:18.000Z
2020-10-15T11:29:20.000Z
cinder/tests/unit/backup/drivers/test_backup_google.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
5
2018-01-25T11:31:56.000Z
2019-05-06T23:13:35.000Z
cinder/tests/unit/backup/drivers/test_backup_google.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
11
2015-02-20T18:48:24.000Z
2021-01-30T20:26:18.000Z
# Copyright (C) 2012 Hewlett-Packard Development Company, L.P. # Copyright (C) 2016 Vedams Inc. # Copyright (C) 2016 Google Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy ...
41.794168
79
0.649306
8c2e5494d8a9ba54d7f2f92155450b2909954a6f
9,190
py
Python
fastmot/videoio.py
viniciusguigo/FastMOT
9f544c89e5d3e6dca711abee90ac604ed661397f
[ "MIT" ]
null
null
null
fastmot/videoio.py
viniciusguigo/FastMOT
9f544c89e5d3e6dca711abee90ac604ed661397f
[ "MIT" ]
null
null
null
fastmot/videoio.py
viniciusguigo/FastMOT
9f544c89e5d3e6dca711abee90ac604ed661397f
[ "MIT" ]
null
null
null
from pathlib import Path from enum import Enum from collections import deque from urllib.parse import urlparse import subprocess import threading import logging import cv2 LOGGER = logging.getLogger(__name__) WITH_GSTREAMER = True class Protocol(Enum): IMAGE = 0 VIDEO = 1 CSI = 2 V4L2 = 3 RTS...
35.076336
99
0.549075
fd594bc09f776354affa4e2156598895b231a969
2,706
py
Python
odoons/utils/git.py
jiksaa/odoons
6845b5cd1ad73a1d44f04772b63431c5a54cfca7
[ "MIT" ]
null
null
null
odoons/utils/git.py
jiksaa/odoons
6845b5cd1ad73a1d44f04772b63431c5a54cfca7
[ "MIT" ]
3
2021-10-05T14:29:51.000Z
2021-10-17T21:52:41.000Z
odoons/utils/git.py
jiksaa/odoons
6845b5cd1ad73a1d44f04772b63431c5a54cfca7
[ "MIT" ]
null
null
null
import os import subprocess from . import printing class Git: def __init__(self, path, url, branch=None, commit=None): self._path = path self._url = url self._branch = str(branch) if branch else None self._commit = str(commit) if commit else None def is_git_directory(self): ...
31.465116
101
0.592757
5ca9aaa116e75b8f693589d1bcc0031d5ace0277
7,635
py
Python
.dev_scripts/visualize_lr.py
imabackstabber/mmcv
b272c09b463f00fd7fdd455f7bd4a055f9995521
[ "Apache-2.0" ]
null
null
null
.dev_scripts/visualize_lr.py
imabackstabber/mmcv
b272c09b463f00fd7fdd455f7bd4a055f9995521
[ "Apache-2.0" ]
null
null
null
.dev_scripts/visualize_lr.py
imabackstabber/mmcv
b272c09b463f00fd7fdd455f7bd4a055f9995521
[ "Apache-2.0" ]
null
null
null
import argparse import json import os import os.path as osp import time import warnings from collections import OrderedDict from unittest.mock import patch import matplotlib.pyplot as plt import numpy as np import torch.nn as nn from torch.optim import SGD from torch.utils.data import DataLoader import mmcv from mmcv...
33.051948
78
0.62685
e44f2c0c47246a28632a2064e610615ffca3f608
943
py
Python
tests/test_code.py
thibaudcolas/draftjs_exporter_markdown
00d8ae4ff1c63a80d6a9bd92375d413c75090a74
[ "MIT" ]
2
2020-07-30T20:35:27.000Z
2020-11-16T08:22:03.000Z
tests/test_code.py
thibaudcolas/draftjs_exporter_markdown
00d8ae4ff1c63a80d6a9bd92375d413c75090a74
[ "MIT" ]
14
2018-09-16T12:13:16.000Z
2022-01-25T20:24:40.000Z
tests/test_code.py
thibaudcolas/draftjs_exporter_markdown
00d8ae4ff1c63a80d6a9bd92375d413c75090a74
[ "MIT" ]
2
2018-09-14T23:05:22.000Z
2020-11-16T08:22:10.000Z
from unittest import TestCase from draftjs_exporter.dom import DOM from draftjs_exporter_markdown.code import code_element, code_wrapper class test_code_element(TestCase): def test_works(self): self.assertEqual(DOM.render(code_element({ 'block': {}, 'children': 'test', })...
24.815789
69
0.501591
06730016feb1f529e847a6c05fcad1dcac24d49f
1,024
py
Python
examples/pytest_xdist.py
snguyenthanh/sanic
ae91852cd586c67ddfe10669eed18b3ded332d2f
[ "MIT" ]
5
2018-05-10T19:50:27.000Z
2018-05-10T20:07:05.000Z
examples/pytest_xdist.py
snguyenthanh/sanic
ae91852cd586c67ddfe10669eed18b3ded332d2f
[ "MIT" ]
11
2021-07-10T17:14:47.000Z
2022-02-24T07:32:36.000Z
examples/pytest_xdist.py
snguyenthanh/sanic
ae91852cd586c67ddfe10669eed18b3ded332d2f
[ "MIT" ]
1
2020-04-03T14:20:38.000Z
2020-04-03T14:20:38.000Z
"""pytest-xdist example for sanic server Install testing tools: $ pip install pytest pytest-xdist Run with xdist params: $ pytest examples/pytest_xdist.py -n 8 # 8 workers """ import re from sanic import Sanic from sanic.response import text from sanic.testing import PORT as PORT_BASE, SanicTestClient impo...
20.48
63
0.676758
e666f207ec98d85515f6217f83d42feca37d48c2
307
py
Python
pymc/tests/test_realization.py
matthew-brett/pymc
3a31613f056e7993a449d89bafef5fdaa40d47e9
[ "MIT" ]
5
2015-12-03T09:42:44.000Z
2021-06-06T19:23:29.000Z
pymc/tests/test_realization.py
matthew-brett/pymc
3a31613f056e7993a449d89bafef5fdaa40d47e9
[ "MIT" ]
1
2016-09-27T02:00:41.000Z
2016-09-27T02:15:32.000Z
pymc/tests/test_realization.py
matthew-brett/pymc
3a31613f056e7993a449d89bafef5fdaa40d47e9
[ "MIT" ]
1
2017-10-27T13:27:32.000Z
2017-10-27T13:27:32.000Z
from numpy.testing import * from pymc.gp import * from test_mean import M, x from test_cov import C from numpy import * from copy import copy # Impose observations on the GP class test_realization(TestCase): def test(self): for i in range(3): f = Realization(M, C) f(x)
21.928571
33
0.664495
575c94823addbba44e6ea2f5ef5ed1d2383fda62
630
py
Python
ada/migrations/0012_auto_20210511_0657.py
praekeltfoundation/ndoh-hub
91d834ff8fe43b930a73d8debdaa0e6af78c5efc
[ "BSD-3-Clause" ]
null
null
null
ada/migrations/0012_auto_20210511_0657.py
praekeltfoundation/ndoh-hub
91d834ff8fe43b930a73d8debdaa0e6af78c5efc
[ "BSD-3-Clause" ]
126
2016-07-12T19:39:44.000Z
2022-03-24T13:39:38.000Z
ada/migrations/0012_auto_20210511_0657.py
praekeltfoundation/ndoh-hub
91d834ff8fe43b930a73d8debdaa0e6af78c5efc
[ "BSD-3-Clause" ]
3
2016-09-28T13:16:11.000Z
2020-11-07T15:32:37.000Z
# Generated by Django 2.2.20 on 2021-05-11 06:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("ada", "0011_redirecturl_url")] operations = [ migrations.RenameField( model_name="redirecturlsentry", old_name="url", new_name="symptom_chec...
26.25
88
0.577778
62d0abb5f6a96d28762b387f495497c577ff2cf7
505
py
Python
plans/templatetags/plans_tags.py
CMU-TRP/podd-api
6eb5c4598f848f75d131287163cd9babf2a0a0fc
[ "MIT" ]
3
2020-04-26T06:28:50.000Z
2021-04-05T08:02:26.000Z
plans/templatetags/plans_tags.py
CMU-TRP/podd-api
6eb5c4598f848f75d131287163cd9babf2a0a0fc
[ "MIT" ]
10
2020-06-05T17:36:10.000Z
2022-03-11T23:16:42.000Z
plans/templatetags/plans_tags.py
CMU-TRP/podd-api
6eb5c4598f848f75d131287163cd9babf2a0a0fc
[ "MIT" ]
5
2021-04-08T08:43:49.000Z
2021-11-27T06:36:46.000Z
from django import template from plans.functions import plan_authority_get_level_areas register = template.Library() @register.simple_tag def plan_authority_level_areas(plan, authority, level, spliter=', '): if not plan or not authority or not level: return '' level_areas = plan._current_log['level...
28.055556
75
0.750495
d6347abaca0d1960f2ef96032bbb823f7cd889ae
392
py
Python
bootcamp/feeds/permission.py
Fadykhallaf/Signet
2a8edcd85324d24b50d7d14fc980c8e9f88bfd26
[ "MIT" ]
null
null
null
bootcamp/feeds/permission.py
Fadykhallaf/Signet
2a8edcd85324d24b50d7d14fc980c8e9f88bfd26
[ "MIT" ]
null
null
null
bootcamp/feeds/permission.py
Fadykhallaf/Signet
2a8edcd85324d24b50d7d14fc980c8e9f88bfd26
[ "MIT" ]
null
null
null
# this is custom permission to allow post owner only to edit it. from rest_framework.permissions import BasePermission, SAFE_METHODS class IsOwnerOrReadOnly(BasePermission): message = "You Must Be The Owner Of This Post" def has_object_permission(self, request, view, obj): if request.method in SAFE_M...
32.666667
67
0.729592
aae606f6ef4a0aaad6e011106aa84dfeb2d9da93
571
py
Python
pandoc-filter/debug.py
NMarkgraf/Quantitative-Methoden-der-W-Informatik
0b0be8d832eadce774a01047cd978f9599d29ca5
[ "CC0-1.0" ]
null
null
null
pandoc-filter/debug.py
NMarkgraf/Quantitative-Methoden-der-W-Informatik
0b0be8d832eadce774a01047cd978f9599d29ca5
[ "CC0-1.0" ]
null
null
null
pandoc-filter/debug.py
NMarkgraf/Quantitative-Methoden-der-W-Informatik
0b0be8d832eadce774a01047cd978f9599d29ca5
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import pip print("\nsys.version:", sys.version, file=sys.stderr) print("\nsys.platform:", sys.platform, file=sys.stderr) print("\nsys.prefix:", sys.prefix, file=sys.stderr) print("\nsys.path:", sys.path, file=sys.stderr) #print("\nsys.path_importer_cache:", sy...
31.722222
78
0.725044
1550680f24301727ebb7feb5c1701969992d5758
1,146
py
Python
setup.py
XiaotingChen/tfmodisco
17cbafe806942304a02e8134fe10224bdff38b0c
[ "MIT" ]
null
null
null
setup.py
XiaotingChen/tfmodisco
17cbafe806942304a02e8134fe10224bdff38b0c
[ "MIT" ]
null
null
null
setup.py
XiaotingChen/tfmodisco
17cbafe806942304a02e8134fe10224bdff38b0c
[ "MIT" ]
null
null
null
from setuptools import find_packages from distutils.core import setup if __name__== '__main__': setup(include_package_data=True, description='TF MOtif Discovery from Importance SCOres', long_description="""Algorithm for discovering consolidated patterns from base-pair-level importance scores"""...
44.076923
144
0.550611
dc539aa9d001afcbaec9160b053a7c0e4b443e9d
3,283
py
Python
.history/my_classes/ScopesClosuresAndDecorators/GlobalLocalScopes_20210709221059.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/GlobalLocalScopes_20210709221059.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/GlobalLocalScopes_20210709221059.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
""" Global and local Scopes Scopes and Namespaces When an object is assigned to a variable # a = 10 that variable points to some object and we say that the variable (name) is bound to that object That object can be accessed using that name in various parts of our code...
28.547826
102
0.576911
c62d2d6592920dd14408e915f3deb9dc9b0308f3
2,060
py
Python
maml_nonexclusive/maml_classification/data/miniImagenet/proc_images.py
kiss2u/google-research
2cd66234656f9e2f4218ed90a2d8aa9cf3139093
[ "Apache-2.0" ]
7
2020-03-15T12:14:07.000Z
2021-12-01T07:01:09.000Z
maml_nonexclusive/maml_classification/data/miniImagenet/proc_images.py
JustinDurham/google-research
9049acf9246c1b75170f0c6757e62a8f619a9db6
[ "Apache-2.0" ]
22
2020-07-08T13:10:46.000Z
2022-03-12T00:40:10.000Z
maml_nonexclusive/maml_classification/data/miniImagenet/proc_images.py
JustinDurham/google-research
9049acf9246c1b75170f0c6757e62a8f619a9db6
[ "Apache-2.0" ]
4
2020-06-15T03:06:53.000Z
2021-08-06T16:38:33.000Z
# coding=utf-8 # Copyright 2020 The Google Research 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 applicab...
33.225806
116
0.668932
454d98de87535edd7289ee422cf749b4017d988a
6,338
py
Python
plugins/games/hangman/hangman.py
wekko/bov
b446b267b3ad2881545a14440f4f01d300f46964
[ "MIT" ]
null
null
null
plugins/games/hangman/hangman.py
wekko/bov
b446b267b3ad2881545a14440f4f01d300f46964
[ "MIT" ]
null
null
null
plugins/games/hangman/hangman.py
wekko/bov
b446b267b3ad2881545a14440f4f01d300f46964
[ "MIT" ]
null
null
null
from handler.base_plugin import BasePlugin from random import choice import json class HangmanPlugin(BasePlugin): __slots__ = ("commands_start", "save_data", "commands_stop", "commands_attempt", "prefixes", "games", "words") def __init__(self, commands_start=None, commands_stop=None, comman...
33.712766
114
0.541022
78d137c95ead9f49e05a8d3c52e2191775d791be
2,043
py
Python
homeassistant/components/mochad/__init__.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
4
2019-07-03T22:36:57.000Z
2019-08-10T15:33:25.000Z
homeassistant/components/mochad/__init__.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
7
2019-08-23T05:26:02.000Z
2022-03-11T23:57:18.000Z
homeassistant/components/mochad/__init__.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
3
2019-04-28T16:35:45.000Z
2020-05-28T15:21:59.000Z
"""Support for CM15A/CM19A X10 Controller using mochad daemon.""" import logging import threading import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant.const import ( EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP) from homeassistant.const import (CONF_HOST, CONF_PO...
24.614458
75
0.675477
baea0ec88b425201e05422d10add67738ab37bff
19,874
py
Python
custom_model_runner/datarobot_drum/drum/typeschema_validation.py
andreakropp/datarobot-user-models
423ab8c703a545491ad6013a0b7efa3119e2c0fc
[ "Apache-2.0" ]
null
null
null
custom_model_runner/datarobot_drum/drum/typeschema_validation.py
andreakropp/datarobot-user-models
423ab8c703a545491ad6013a0b7efa3119e2c0fc
[ "Apache-2.0" ]
null
null
null
custom_model_runner/datarobot_drum/drum/typeschema_validation.py
andreakropp/datarobot-user-models
423ab8c703a545491ad6013a0b7efa3119e2c0fc
[ "Apache-2.0" ]
null
null
null
import os from abc import ABC, abstractmethod import base64 import logging from enum import auto from enum import Enum as PythonNativeEnum from io import BytesIO import operator from typing import List, Type, TypeVar, Union from PIL import Image from strictyaml import Map, Optional, Seq, Int, Enum, Str, YAML import nu...
35.237589
184
0.618798
b457bfd784103466aed0e58f5f116a2e60c4b172
8,433
py
Python
pyalgotrade/bitstamp/livefeed.py
richwu/pyalgotrade
52f801cb5280a7037f33f953e3abff515c789c39
[ "Apache-2.0" ]
2
2016-12-10T05:39:49.000Z
2016-12-11T04:34:18.000Z
pyalgotrade/bitstamp/livefeed.py
richwu/pyalgotrade
52f801cb5280a7037f33f953e3abff515c789c39
[ "Apache-2.0" ]
null
null
null
pyalgotrade/bitstamp/livefeed.py
richwu/pyalgotrade
52f801cb5280a7037f33f953e3abff515c789c39
[ "Apache-2.0" ]
1
2020-12-10T07:06:48.000Z
2020-12-10T07:06:48.000Z
# PyAlgoTrade # # Copyright 2011-2015 Gabriel Martin Becedillas Ruiz # # 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 ap...
32.187023
119
0.649591
ca0066544931788533070484ec201f973a6a9aff
3,416
py
Python
scripts/plotting/hgdp_1kg_tob_wgs_pop_pca/hgdp_1kg_tob_wgs_plot_pca.py
populationgenomics/ancestry
faf6fd4bc3a1f8b2a2adb7e59cf584d4bfdf79e6
[ "MIT" ]
null
null
null
scripts/plotting/hgdp_1kg_tob_wgs_pop_pca/hgdp_1kg_tob_wgs_plot_pca.py
populationgenomics/ancestry
faf6fd4bc3a1f8b2a2adb7e59cf584d4bfdf79e6
[ "MIT" ]
21
2021-03-09T06:35:59.000Z
2022-02-21T22:56:15.000Z
scripts/plotting/hgdp_1kg_tob_wgs_pop_pca/hgdp_1kg_tob_wgs_plot_pca.py
populationgenomics/ancestry
faf6fd4bc3a1f8b2a2adb7e59cf584d4bfdf79e6
[ "MIT" ]
null
null
null
"""Create PCA plots for HGDP/1kG + TOB-WGS samples""" from bokeh.models import CategoricalColorMapper from bokeh.palettes import turbo # pylint: disable=no-name-in-module import pandas as pd import hail as hl from hail.plot import show import click HGDP1KG_TOBWGS = ( 'gs://cpg-tob-wgs-analysis/1kg_hgdp_tobwgs_p...
33.490196
83
0.595726
76e4f7475f53139ee15060984724ca3c2fd5a763
1,231
py
Python
dautil/IO/stdio.py
ickc/dautil-py
9cdd87080ec85774d7386e3cd2f55c2bc6b6aadd
[ "BSD-3-Clause" ]
null
null
null
dautil/IO/stdio.py
ickc/dautil-py
9cdd87080ec85774d7386e3cd2f55c2bc6b6aadd
[ "BSD-3-Clause" ]
null
null
null
dautil/IO/stdio.py
ickc/dautil-py
9cdd87080ec85774d7386e3cd2f55c2bc6b6aadd
[ "BSD-3-Clause" ]
null
null
null
import os import sys from functools import wraps def redirect_stdout_stderr(f): '''a decorator to add keyword stdout, stderr to the function args if stdout, stderr is not None, redirect the stdout, stderr to the respective files. ''' @wraps(f) def f_decorated(*args, **kwargs): try: ...
31.564103
72
0.552396
0355c81e6d4eac7b5003e92163bc29c5a1aec449
15,339
py
Python
tests/contrib/pymysql/test_pymysql.py
mykytarudenko/new-project
e06a912382239739dd3f93b54d545b9506102372
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/pymysql/test_pymysql.py
mykytarudenko/new-project
e06a912382239739dd3f93b54d545b9506102372
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/pymysql/test_pymysql.py
mykytarudenko/new-project
e06a912382239739dd3f93b54d545b9506102372
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import pymysql from ddtrace import Pin from ddtrace.compat import PY2 from ddtrace.compat import stringify from ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY from ddtrace.contrib.pymysql.patch import patch from ddtrace.contrib.pymysql.patch import unpatch from tests.opentracer.utils import init_tracer from tests....
33.12959
102
0.575005
0cc17be851f553e57360f32b7034ca2630d8e085
46,933
py
Python
test/parallel/test_mxnet.py
DEKHTIARJonathan/horovod
333ce607c5ed0c5a38defd234f818aeb27a5394b
[ "Apache-2.0" ]
null
null
null
test/parallel/test_mxnet.py
DEKHTIARJonathan/horovod
333ce607c5ed0c5a38defd234f818aeb27a5394b
[ "Apache-2.0" ]
null
null
null
test/parallel/test_mxnet.py
DEKHTIARJonathan/horovod
333ce607c5ed0c5a38defd234f818aeb27a5394b
[ "Apache-2.0" ]
3
2021-07-20T07:40:15.000Z
2021-08-03T08:39:17.000Z
# Copyright 2018 Uber Technologies, Inc. All Rights Reserved. # Modifications copyright (C) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
39.539174
123
0.555047
e17ef06cf9436eb2d52bda859496e4d7b902fe38
7,424
py
Python
mmdet/models/detectors/two_stage.py
ruihan0495/mmdetection
3dcbaf82d04aa1d389bba963f459cf9b3f7c7828
[ "Apache-2.0" ]
3
2021-08-13T03:00:52.000Z
2021-08-19T07:54:11.000Z
mmdet/models/detectors/two_stage.py
ruihan0495/mmdetection
3dcbaf82d04aa1d389bba963f459cf9b3f7c7828
[ "Apache-2.0" ]
null
null
null
mmdet/models/detectors/two_stage.py
ruihan0495/mmdetection
3dcbaf82d04aa1d389bba963f459cf9b3f7c7828
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn # from mmdet.core import bbox2result, bbox2roi, build_assigner, build_sampler from ..builder import DETECTORS, build_backbone, build_head, build_neck from .base import BaseDetector @DETECTORS.register_module() class TwoStageDetector(BaseDetector): """Base class for two-stage de...
35.184834
79
0.569235
e9372f05864c52ad3487e95e3f6ad58721586254
7,455
py
Python
crawlino_develop/check_plugins.py
crawlino/crawlino-develop
5f17c987f98eb3c6261302af14430a783f472810
[ "BSD-3-Clause" ]
1
2020-10-20T22:41:32.000Z
2020-10-20T22:41:32.000Z
crawlino_develop/check_plugins.py
crawlino/crawlino-develop
5f17c987f98eb3c6261302af14430a783f472810
[ "BSD-3-Clause" ]
null
null
null
crawlino_develop/check_plugins.py
crawlino/crawlino-develop
5f17c987f98eb3c6261302af14430a783f472810
[ "BSD-3-Clause" ]
1
2020-10-20T22:41:34.000Z
2020-10-20T22:41:34.000Z
import os import re import tempfile from typing import List, Tuple from colored import fore, style, back from contextlib import redirect_stdout from distutils.version import StrictVersion from pytest import main as main_pytest from crawlino_develop.helpers import get_plugins from crawlino_develop.model import CRDRun...
29.350394
78
0.532394
1b2506dc085146978855fd526f39ac87cc9fa119
11,736
py
Python
chinilla/rpc/farmer_rpc_api.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
chinilla/rpc/farmer_rpc_api.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
chinilla/rpc/farmer_rpc_api.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
import dataclasses import operator from typing import Any, Callable, Dict, List, Optional from typing_extensions import Protocol from chinilla.farmer.farmer import Farmer from chinilla.plot_sync.receiver import Receiver from chinilla.protocols.harvester_protocol import Plot from chinilla.types.blockchain_format.sized...
40.75
119
0.624063
e77aba6f22cd92742b6bd4f4b07364a731cf9801
45
py
Python
tests/__init__.py
sralli/fast-similarity
c07ed98c12c6da83b77e9ffaef43934d55ee1c8c
[ "MIT" ]
null
null
null
tests/__init__.py
sralli/fast-similarity
c07ed98c12c6da83b77e9ffaef43934d55ee1c8c
[ "MIT" ]
null
null
null
tests/__init__.py
sralli/fast-similarity
c07ed98c12c6da83b77e9ffaef43934d55ee1c8c
[ "MIT" ]
null
null
null
"""Unit test package for fast_similarity."""
22.5
44
0.733333
9b0cb76086476a82eb282c7daaa350bd41ee65a9
900
py
Python
src/borg/testsuite/nanorst.py
Gelma/borg
e4247cc0d25f221efdf7447d316dcb022b38b8b7
[ "BSD-3-Clause" ]
null
null
null
src/borg/testsuite/nanorst.py
Gelma/borg
e4247cc0d25f221efdf7447d316dcb022b38b8b7
[ "BSD-3-Clause" ]
null
null
null
src/borg/testsuite/nanorst.py
Gelma/borg
e4247cc0d25f221efdf7447d316dcb022b38b8b7
[ "BSD-3-Clause" ]
null
null
null
import pytest from ..nanorst import rst_to_text def test_inline(): assert rst_to_text('*foo* and ``bar``.') == 'foo and bar.' def test_inline_spread(): assert rst_to_text('*foo and bar, thusly\nfoobar*.') == 'foo and bar, thusly\nfoobar.' def test_comment_inline(): assert rst_to_text('Foo and Bar\n....
23.684211
92
0.651111
a6d2239b448a9521e13770d77bb35e871bd4fa7a
903
py
Python
setup.py
yczeng/mit-course-catalog-cli
9b9165723f52940456be016391d7a0dea92113ff
[ "MIT" ]
6
2017-07-18T04:28:51.000Z
2022-03-17T04:47:24.000Z
setup.py
yczeng/mit-course-catalog-cli
9b9165723f52940456be016391d7a0dea92113ff
[ "MIT" ]
null
null
null
setup.py
yczeng/mit-course-catalog-cli
9b9165723f52940456be016391d7a0dea92113ff
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="mit-course-catalog-cli", description="Lets you access the MIT course catalog from your command line!", version='0.1', url="https://github.com/yczeng/mit-course-catalog-cli", download_url="https://github.com/yczeng/mit-course-catalog-cli", author="Cather...
30.1
81
0.603544
be9b766a14dffe68ff9927c2207293902c975126
15,511
py
Python
Detection/MtcnnDetector_org.py
jimeffry/MTCNN-TF
4d41c5fd2dc13008d39b868aa2e921a7ff731e10
[ "MIT" ]
8
2018-08-15T11:07:03.000Z
2019-12-05T10:05:41.000Z
Detection/MtcnnDetector_org.py
jimeffry/MTCNN-TF
4d41c5fd2dc13008d39b868aa2e921a7ff731e10
[ "MIT" ]
2
2018-12-04T07:16:02.000Z
2019-11-04T09:42:03.000Z
Detection/MtcnnDetector_org.py
jimeffry/MTCNN-TF
4d41c5fd2dc13008d39b868aa2e921a7ff731e10
[ "MIT" ]
6
2018-08-07T01:09:12.000Z
2021-08-13T07:19:47.000Z
import cv2 import time import numpy as np import sys sys.path.append("../") from train_models.MTCNN_config import config from nms import py_nms class MtcnnDetector(object): def __init__(self, detectors, min_face_size=25, stride=2, threshold=[0....
34.700224
123
0.477403
e0d109f0bfe2ef80fd8a6641806b650e82f7a6e3
2,290
py
Python
dregcli/tests/tests_integration/tests_delete/test_delete_from_date_single_tag.py
jssuzanne/dregcli
328e8aacf4e46f538e2b62c8c3cceba002feb367
[ "MIT" ]
null
null
null
dregcli/tests/tests_integration/tests_delete/test_delete_from_date_single_tag.py
jssuzanne/dregcli
328e8aacf4e46f538e2b62c8c3cceba002feb367
[ "MIT" ]
1
2019-04-12T13:46:52.000Z
2019-04-15T15:26:47.000Z
dregcli/tests/tests_integration/tests_delete/test_delete_from_date_single_tag.py
jssuzanne/dregcli
328e8aacf4e46f538e2b62c8c3cceba002feb367
[ "MIT" ]
1
2019-04-12T13:44:53.000Z
2019-04-12T13:44:53.000Z
import json import os import sys import pytest sys.path.append( os.path.join( os.path.dirname(os.path.realpath(__file__)), os.pardir + os.sep + os.pardir ) ) import tools from fixtures import ( fixture_registry_url, fixture_client, fixture_repository, fixture_delete_tags, ) from...
28.987342
73
0.640175
b88a1b738e8a8a935c77548552c6804c3c74a93f
20,974
py
Python
host.py
aplneto/redes_projeto
450ef8ac61e46bc38ff34142d07eda3d726ce326
[ "MIT" ]
1
2019-04-04T13:10:01.000Z
2019-04-04T13:10:01.000Z
host.py
aplneto/redes_projeto
450ef8ac61e46bc38ff34142d07eda3d726ce326
[ "MIT" ]
null
null
null
host.py
aplneto/redes_projeto
450ef8ac61e46bc38ff34142d07eda3d726ce326
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Módulo do Servidor de arquivos TCP Esse módulo contém a implementação do objeto Host que controla o lado da conexão do servidor. Todo: Concluir a documentação Example: >> servidor = Host() >> servidor.start() """ from console import ...
36.037801
83
0.524125
690657ffffc4706cb6bfd94092b857c060705319
4,866
py
Python
lib/python/treadmill/vring.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
2
2017-10-31T18:48:20.000Z
2018-03-04T20:35:20.000Z
lib/python/treadmill/vring.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
lib/python/treadmill/vring.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
"""Manage a port-redirect ring between Treadmill containers. Each vring manages chain of iptables output rules, which enables applications that expect to find their peers on a "well-defined" constant port to be deployed inside the container. """ from __future__ import absolute_import from __future__ import division f...
34.757143
78
0.574188
45f59183835c41357ba9b1279b5cfcba936a69d7
3,786
py
Python
src/scheduled-query/azext_scheduled_query/vendored_sdks/azure_mgmt_scheduled_query/_monitor_management_client.py
wwendyc/azure-cli-extensions
6b4099676bb5d43fdb57bc69f9c0281cca510a0a
[ "MIT" ]
null
null
null
src/scheduled-query/azext_scheduled_query/vendored_sdks/azure_mgmt_scheduled_query/_monitor_management_client.py
wwendyc/azure-cli-extensions
6b4099676bb5d43fdb57bc69f9c0281cca510a0a
[ "MIT" ]
1
2020-12-07T18:21:04.000Z
2020-12-07T18:21:04.000Z
src/scheduled-query/azext_scheduled_query/vendored_sdks/azure_mgmt_scheduled_query/_monitor_management_client.py
wwendyc/azure-cli-extensions
6b4099676bb5d43fdb57bc69f9c0281cca510a0a
[ "MIT" ]
5
2020-09-08T22:46:48.000Z
2020-11-08T14:54:35.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.539326
133
0.684099