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
d2882096c222ce3651e3d5ca46031ac9f37b9683
7,544
py
Python
L3A_Physical/pytorch/renderer/mitsuba.py
MingjieWang0606/L3A
6f01482826f27246a762cadf57f54906e14135e4
[ "MIT" ]
34
2021-07-30T22:19:17.000Z
2022-03-24T03:49:19.000Z
L3A_Physical/pytorch/renderer/mitsuba.py
MingjieWang0606/L3A
6f01482826f27246a762cadf57f54906e14135e4
[ "MIT" ]
6
2021-08-31T08:27:07.000Z
2022-03-28T09:20:11.000Z
L3A_Physical/pytorch/renderer/mitsuba.py
MingjieWang0606/L3A
6f01482826f27246a762cadf57f54906e14135e4
[ "MIT" ]
9
2021-08-16T07:24:43.000Z
2022-01-27T02:36:57.000Z
''' Use mitsuba renderer to obtain a depth and a reflectance image, given the camera's rotation parameters and the file path of the object to be rendered. ''' import numpy as np import uuid import os import cv2 import subprocess import shutil from scipy.signal import medfilt2d # import config from pytorch.utils.utils ...
33.380531
97
0.601538
75ae12239e61ef81190daed5735ffdbdea487315
12,198
py
Python
schedgym/deploy_env.py
Nicola115/VMAgent
99522aa67537e4db4a97169de4cc53a5b639839e
[ "MIT" ]
null
null
null
schedgym/deploy_env.py
Nicola115/VMAgent
99522aa67537e4db4a97169de4cc53a5b639839e
[ "MIT" ]
null
null
null
schedgym/deploy_env.py
Nicola115/VMAgent
99522aa67537e4db4a97169de4cc53a5b639839e
[ "MIT" ]
null
null
null
''' TODO List: cluster.describe() done reward done termination done get_attr done reward计算向量化 Node的pods列表可以只存index step 返回的state要交给q_learner,应一致!本打算返回下个五分钟的所有状态,目前暂时返回self.t-1时刻的状态,即action做完之后立即状态 ''' import gym import numpy as np import pand...
35.666667
172
0.61215
91179d229945cdf1584a64069f3d98172a3a39ae
788
py
Python
app/email.py
c727657851/flask_blog
0d8eebc77b123de02b8d7ef93efac9aa96c9ced1
[ "Apache-2.0" ]
null
null
null
app/email.py
c727657851/flask_blog
0d8eebc77b123de02b8d7ef93efac9aa96c9ced1
[ "Apache-2.0" ]
1
2020-07-28T15:18:06.000Z
2020-07-28T15:18:06.000Z
app/email.py
c727657851/flask_blog
0d8eebc77b123de02b8d7ef93efac9aa96c9ced1
[ "Apache-2.0" ]
null
null
null
from app.extensions import mail from flask_mail import Message from flask import current_app,render_template # 当前实例 from threading import Thread # 导入多线程 # 异步发送邮件 def send_async_email(app, msg): with app.app_context(): mail.send(msg) # 邮件发送给谁,邮件主题,模板 网页和客户端 其他参数 def send_mail(to_name,subject,template,*...
24.625
90
0.65736
2b8561cd1c08c4f3c798d4a72f7ed62c38976646
2,663
py
Python
src/sparsify/blueprints/ui.py
dhuangnm/sparsify
bf4c9abf8aa6f9b05a781ebb2637b0a3f042280a
[ "Apache-2.0" ]
152
2021-02-04T17:25:12.000Z
2022-03-24T21:05:16.000Z
src/sparsify/blueprints/ui.py
markurtz/sparsify
1afb88157cc7b9287e7f256b7b4696d198c23236
[ "Apache-2.0" ]
16
2021-02-22T03:40:28.000Z
2022-03-14T15:22:36.000Z
src/sparsify/blueprints/ui.py
markurtz/sparsify
1afb88157cc7b9287e7f256b7b4696d198c23236
[ "Apache-2.0" ]
17
2021-02-04T20:52:26.000Z
2022-02-07T11:55:18.000Z
# Copyright (c) 2021 - present / Neuralmagic, 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 b...
33.708861
88
0.654525
a6531b08ebceab3ef916ae0cd21cc4b40a3398b6
14,258
py
Python
tools/json_schema_compiler/cpp_bundle_generator.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/json_schema_compiler/cpp_bundle_generator.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/json_schema_compiler/cpp_bundle_generator.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import code import cpp_util from model import Platforms from schema_util import CapitalizeFirstLetter from schema_util import JsFunctionNameToClassName ...
36.842377
80
0.646795
76f9e3113cbf147c3bd16d833917bff3f10dfb39
6,172
py
Python
official/nlp/nhnet/evaluation.py
gujralsanyam22/models
d96f8f043dbe2b5ca8ea1785f57df8faf68d8875
[ "Apache-2.0" ]
15
2018-08-15T19:29:39.000Z
2021-11-05T02:14:59.000Z
official/nlp/nhnet/evaluation.py
yangxl-2014-fe/models
11ea5237818e791a5717716d5413977f4c4db1e3
[ "Apache-2.0" ]
5
2020-10-01T09:02:34.000Z
2021-02-21T12:50:11.000Z
official/nlp/nhnet/evaluation.py
yangxl-2014-fe/models
11ea5237818e791a5717716d5413977f4c4db1e3
[ "Apache-2.0" ]
8
2019-06-06T20:37:15.000Z
2022-03-04T13:54:38.000Z
# Lint as: python3 # Copyright 2020 The TensorFlow 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 ...
34.099448
80
0.681627
e246d77ddb04ad9699c1ff0ed5106ad38b138325
253
py
Python
nsd1806/python/day09/zb2.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
nsd1806/python/day09/zb2.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
nsd1806/python/day09/zb2.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
import os import time start = time.time() print('Start...') pid = os.fork() if pid: print('in parent...') print(os.waitpid(-1, 0)) # 挂起父进程 time.sleep(30) else: print('in child') time.sleep(10) end = time.time() print(end - start)
15.8125
38
0.596838
a40104351e4e96917e5304aec5bd782d0f19bf2e
544
py
Python
atividades/ex106.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
atividades/ex106.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
atividades/ex106.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
def ajuda(): a = '\033[31m sistema de ajuda PyHelp' print('\033[31m~'*len(a)) print(a) print('~'*len(a)) while True: valor = input('Função ou biblioteca: ') b = f'Acessando o manual do comando "{valor}" ' print(len(b)*'\033[32m~') print(b) print(len(b)*'\033[3...
28.631579
55
0.461397
fef5ee30c997b3a296a350b96b2f69a8745fbc4e
988
py
Python
tests/test_state.py
marella/train
3c4ba1f59bf20e31f7ee5ea9a8f38e49440a93f7
[ "MIT" ]
null
null
null
tests/test_state.py
marella/train
3c4ba1f59bf20e31f7ee5ea9a8f38e49440a93f7
[ "MIT" ]
null
null
null
tests/test_state.py
marella/train
3c4ba1f59bf20e31f7ee5ea9a8f38e49440a93f7
[ "MIT" ]
null
null
null
from collections import deque import pytest from train import State, RingBuffer, Transition, Transitions class TestRingBuffer(): @pytest.mark.parametrize('maxlen', [-1, 1, 5]) def test_ops(self, maxlen): q = deque(maxlen=None if maxlen < 0 else maxlen) b = RingBuffer(maxlen=maxlen) s...
27.444444
60
0.517206
5f6314221d7374f2be1c9aece29086d111f05b7b
2,945
py
Python
src/tcp_info.py
ModioAB/snippets
fcb4c61b7acee14ca024a0b84c213bedca618c3c
[ "Apache-2.0" ]
null
null
null
src/tcp_info.py
ModioAB/snippets
fcb4c61b7acee14ca024a0b84c213bedca618c3c
[ "Apache-2.0" ]
null
null
null
src/tcp_info.py
ModioAB/snippets
fcb4c61b7acee14ca024a0b84c213bedca618c3c
[ "Apache-2.0" ]
null
null
null
#!/bin/env python3 # vim: ts=4 sts=4 sw=4 ft=python expandtab : import ctypes import socket class TcpInfo(ctypes.Structure): """TCP_INFO struct in linux 4.2 see /usr/include/linux/tcp.h for details""" __u8 = ctypes.c_uint8 __u32 = ctypes.c_uint32 __u64 = ctypes.c_uint64 _fields_ = [ ...
29.747475
78
0.592869
7d182e524d0b78f546ba6d6acd0c38028e0f38a9
628
py
Python
facebook/manage.py
jeffreyquirino/API_Facebook_Django
a5e8d98c139f9683b6f30a0d8ea335cdf00a6a8f
[ "Apache-2.0" ]
null
null
null
facebook/manage.py
jeffreyquirino/API_Facebook_Django
a5e8d98c139f9683b6f30a0d8ea335cdf00a6a8f
[ "Apache-2.0" ]
5
2021-03-19T01:11:57.000Z
2021-11-04T01:20:17.000Z
facebook/manage.py
jeffreyquirino/API_Facebook_Django
a5e8d98c139f9683b6f30a0d8ea335cdf00a6a8f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'facebook.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impor...
28.545455
73
0.683121
e9bb083b32d1a43556988620e798c7de8bdbde9c
578
py
Python
Milestone_Project_4/urls.py
Luka-pp/Milestone-Projet-4
98b2c842e702682cd9bce7deb8a7b385eb83484e
[ "BSD-Source-Code" ]
null
null
null
Milestone_Project_4/urls.py
Luka-pp/Milestone-Projet-4
98b2c842e702682cd9bce7deb8a7b385eb83484e
[ "BSD-Source-Code" ]
null
null
null
Milestone_Project_4/urls.py
Luka-pp/Milestone-Projet-4
98b2c842e702682cd9bce7deb8a7b385eb83484e
[ "BSD-Source-Code" ]
null
null
null
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls), path('accounts/', include('allauth.urls')), path('', include('home.urls')), path('products/', include('pro...
34
65
0.683391
60241c75ad1897174846a7b42c880bf8b80fa29f
4,502
py
Python
test/continuous/test_ddpg.py
gohsyi/tianshou
9c0cd45a3bc6147ea94ff95f49df3e950ce02958
[ "MIT" ]
2
2020-05-26T17:04:57.000Z
2020-05-31T15:33:24.000Z
test/continuous/test_ddpg.py
gohsyi/tianshou
9c0cd45a3bc6147ea94ff95f49df3e950ce02958
[ "MIT" ]
null
null
null
test/continuous/test_ddpg.py
gohsyi/tianshou
9c0cd45a3bc6147ea94ff95f49df3e950ce02958
[ "MIT" ]
null
null
null
import os import gym import torch import pprint import argparse import numpy as np from torch.utils.tensorboard import SummaryWriter from tianshou.env import VectorEnv from tianshou.policy import DDPGPolicy from tianshou.trainer import offpolicy_trainer from tianshou.data import Collector, ReplayBuffer if __name__ ==...
38.810345
77
0.69147
64256cf49ea3a9b214d95ebed4fc1caf0771e190
2,386
py
Python
aug_step/cam_to_ir_label.py
robust-dl-ai/CDA
13a70ca192d301c5c61eff0c62bd8c3c5e840561
[ "MIT" ]
null
null
null
aug_step/cam_to_ir_label.py
robust-dl-ai/CDA
13a70ca192d301c5c61eff0c62bd8c3c5e840561
[ "MIT" ]
null
null
null
aug_step/cam_to_ir_label.py
robust-dl-ai/CDA
13a70ca192d301c5c61eff0c62bd8c3c5e840561
[ "MIT" ]
null
null
null
import os import imageio import numpy as np from torch import multiprocessing from torch.utils.data import DataLoader from cda.misc import torchutils, imutils from cda.voc12 import dataloader def _work(process_id, infer_dataset, args): databin = infer_dataset[process_id] infer_data_loader = DataLoader(datab...
40.440678
113
0.584241
09e4eef25724ee7f40e6b542946022f9acd89f53
2,143
py
Python
subscriber_histogram/scratchsub.py
bc/zmq-telemetry
831fd8bd6115b6511a7f714b4890a9fb5cab055e
[ "MIT" ]
null
null
null
subscriber_histogram/scratchsub.py
bc/zmq-telemetry
831fd8bd6115b6511a7f714b4890a9fb5cab055e
[ "MIT" ]
10
2018-05-11T17:33:46.000Z
2018-07-10T00:46:23.000Z
subscriber_histogram/scratchsub.py
bc/zmq-telemetry
831fd8bd6115b6511a7f714b4890a9fb5cab055e
[ "MIT" ]
null
null
null
import zmq import pickle import time import numpy as np from bokeh.layouts import layout, row, gridplot import bokeh from bokeh.io import curdoc from bokeh.models import ColumnDataSource from bokeh.plotting import figure import random source = ColumnDataSource(dict(x=[], muscle_0=[], muscle_1=[], muscle_2 = [])) def ...
30.614286
108
0.659823
23995e774e466029f1da4978b09554482cb8fd99
3,869
py
Python
model/trainer.py
dingchaoz/suammarize_radiology
7964b00596ced172fd75ad977435d00eef4a8a88
[ "Apache-2.0" ]
66
2018-10-25T20:08:11.000Z
2022-03-27T12:23:23.000Z
model/trainer.py
dingchaoz/suammarize_radiology
7964b00596ced172fd75ad977435d00eef4a8a88
[ "Apache-2.0" ]
7
2018-10-20T01:14:53.000Z
2021-09-20T05:43:44.000Z
model/trainer.py
dingchaoz/suammarize_radiology
7964b00596ced172fd75ad977435d00eef4a8a88
[ "Apache-2.0" ]
25
2018-10-25T02:57:11.000Z
2022-03-20T21:12:17.000Z
""" A trainer class to handle training and testing of models. """ import numpy as np import torch from torch import nn import torch.nn.init as init from torch.autograd import Variable import torch.nn.functional as F from model.copy_model import Seq2SeqWithCopyModel from model.loss import SequenceLoss, CoverageSequenc...
36.158879
102
0.619281
08c6e289eb0987d764eeefd9547c26b89eb71fe2
19,839
py
Python
uk_without_timestamp/onlyDOS/SelectAngle.py
UAVKillerLAB/UK_AC
dbeae65f0916df351b39f8b95d01a139894ae78e
[ "MIT" ]
2
2019-10-26T08:02:44.000Z
2020-01-05T14:07:06.000Z
uk_without_timestamp/onlyDOS/SelectAngle.py
UAVKillerLAB/UK_AR
dbeae65f0916df351b39f8b95d01a139894ae78e
[ "MIT" ]
null
null
null
uk_without_timestamp/onlyDOS/SelectAngle.py
UAVKillerLAB/UK_AR
dbeae65f0916df351b39f8b95d01a139894ae78e
[ "MIT" ]
null
null
null
# encoding=utf-8 import json import os import socket # 引入套接字 import threading # 引入并行 import time import pymysql import struct import serial import matplotlib.pyplot as plt import datetime import math import sys from geographiclib.geodesic import Geodesic import configparser import csv # import comm_udp_serial # sy...
38.078695
234
0.659811
ed376f22d200fd1a85012a52348cfe8d21da0460
152
py
Python
projectApp/apps.py
BlurryFace1900/template-python-django
68ff04a33f757c71f168fee771cda397d2e7f2a0
[ "MIT" ]
null
null
null
projectApp/apps.py
BlurryFace1900/template-python-django
68ff04a33f757c71f168fee771cda397d2e7f2a0
[ "MIT" ]
null
null
null
projectApp/apps.py
BlurryFace1900/template-python-django
68ff04a33f757c71f168fee771cda397d2e7f2a0
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ProjectappConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'projectApp'
21.714286
56
0.769737
d8f8fb200cce5feecb4282adcec2dd3b3d903c1f
6,153
py
Python
src/dataflow/analysis/compute_data_statistics.py
luweishuang/task_oriented_dialogue_as_dataflow_synthesis
5638adfb2274d76ca1c430e6b727cca41f43c195
[ "MIT" ]
null
null
null
src/dataflow/analysis/compute_data_statistics.py
luweishuang/task_oriented_dialogue_as_dataflow_synthesis
5638adfb2274d76ca1c430e6b727cca41f43c195
[ "MIT" ]
null
null
null
src/dataflow/analysis/compute_data_statistics.py
luweishuang/task_oriented_dialogue_as_dataflow_synthesis
5638adfb2274d76ca1c430e6b727cca41f43c195
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """ Semantic Machines\N{TRADE MARK SIGN} software. Compute statistics for the dataflow dialogues. """ import argparse import dataclasses import json import os import re from typing import Dict, List, Tuple import numpy as np import pandas as ...
32.046875
103
0.631237
1b4ecce771a221ea5b5cdde86dc46fc9ec7aadef
7,382
py
Python
SunFounder_PiCar/picar/SunFounder_PCA9685/PCA9685.py
sodapop/RPi_PiCar
64d7f6c4a2746e3d3328e16ee8ae2752b31a9b9c
[ "MIT" ]
null
null
null
SunFounder_PiCar/picar/SunFounder_PCA9685/PCA9685.py
sodapop/RPi_PiCar
64d7f6c4a2746e3d3328e16ee8ae2752b31a9b9c
[ "MIT" ]
null
null
null
SunFounder_PiCar/picar/SunFounder_PCA9685/PCA9685.py
sodapop/RPi_PiCar
64d7f6c4a2746e3d3328e16ee8ae2752b31a9b9c
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' ********************************************************************** * Filename : PCA9685.py * Description : A driver module for PCA9685 * Author : Cavon * Brand : SunFounder * E-mail : service@sunfounder.com * Website : www.sunfounder.com * Version : v2.0.0 **********...
34.985782
150
0.568545
28ffd5b4caf98ea3c24f395ab968e30b4e77efbc
14,777
py
Python
pandas/tests/arrays/interval/test_interval.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/arrays/interval/test_interval.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/arrays/interval/test_interval.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest import pandas.util._test_decorators as td import pandas as pd from pandas import ( Index, Interval, IntervalIndex, Timedelta, Timestamp, date_range, timedelta_range, ) import pandas._testing as tm from pandas.core.arrays import IntervalArray @pytest.fixtu...
33.132287
88
0.628409
e269b6a24f4f7c21b5fa851bdf1824726b142bd9
711
py
Python
PythonScript/PythonIntermedio/cap_3/hilos.py
FranklinA/CoursesAndSelfStudy
63a699d6df7eef52190b608e2dd5728f7aa7264a
[ "MIT" ]
null
null
null
PythonScript/PythonIntermedio/cap_3/hilos.py
FranklinA/CoursesAndSelfStudy
63a699d6df7eef52190b608e2dd5728f7aa7264a
[ "MIT" ]
null
null
null
PythonScript/PythonIntermedio/cap_3/hilos.py
FranklinA/CoursesAndSelfStudy
63a699d6df7eef52190b608e2dd5728f7aa7264a
[ "MIT" ]
null
null
null
# Un hilo que en realidad estamos creando cuatro pero es el mismo procesoy lo podemos reutilizar # crear un hilo es un proceso # Los hilos comparten memoria por eos podremos accesder a datos import threading import time class MiHilo(threading.Thread):# como estamos utilizando la herencia entre () se llama el Thread ...
35.55
96
0.746835
27abea9fb003e491e4546872b3d3f7ee5502d820
4,771
py
Python
wavefront_api_client/models/response_container_facet_response.py
PowerOlive/python-client
eebda67381fcf893914c309103878236b609a70b
[ "Apache-2.0" ]
11
2016-05-30T17:16:45.000Z
2021-06-11T19:32:59.000Z
wavefront_api_client/models/response_container_facet_response.py
PowerOlive/python-client
eebda67381fcf893914c309103878236b609a70b
[ "Apache-2.0" ]
25
2016-05-02T23:05:19.000Z
2020-11-18T22:43:20.000Z
wavefront_api_client/models/response_container_facet_response.py
PowerOlive/python-client
eebda67381fcf893914c309103878236b609a70b
[ "Apache-2.0" ]
30
2016-04-29T17:17:11.000Z
2022-02-11T04:58:37.000Z
# coding: utf-8 """ Wavefront REST API <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST ...
31.596026
409
0.612241
459176d31f83d1f805918a7e2f60d417f5e2466f
487
py
Python
src/realm/entities/config.py
orlevii/realm
e561ba09df4fbdc3bf60c8678462da4f55033894
[ "MIT" ]
3
2021-06-17T06:27:16.000Z
2022-03-14T09:34:42.000Z
src/realm/entities/config.py
orlevii/realm
e561ba09df4fbdc3bf60c8678462da4f55033894
[ "MIT" ]
null
null
null
src/realm/entities/config.py
orlevii/realm
e561ba09df4fbdc3bf60c8678462da4f55033894
[ "MIT" ]
null
null
null
import json import pathlib class Config: def __init__(self, root_dir='.', projects=[], **kwargs): self.root_dir = root_dir self.projects = projects @classmethod def from_file(cls, realm_json_file): p = pathlib.Path(realm_json_file...
23.190476
46
0.529774
ed6a2322b485b9a23d0a32d5cf5a99b5513fdfe0
19,748
py
Python
dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Core/test_attribute.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
null
null
null
dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Core/test_attribute.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
null
null
null
dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Core/test_attribute.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
1
2020-07-26T03:57:45.000Z
2020-07-26T03:57:45.000Z
import re from Ft.Xml.Xslt import XsltException, Error from Xml.Xslt import test_harness from Ft.Xml.Xslt.XmlWriter import DEFAULT_GENERATED_PREFIX # an unsophisticated comparer of XML strings that just checks to see if # both strings have the same set of substrings that look like attributes. _attrPattern = re.compi...
36.368324
491
0.654395
78c304500fd5f8986890e26afa72ac4c8c13b82f
478
py
Python
shuup_admin_channel_tests/settings.py
chessbr/shuup-admin-channel
11976decde4679760511d9d8b293130033fdd5c5
[ "MIT" ]
3
2019-07-05T09:34:00.000Z
2020-09-23T20:19:20.000Z
shuup_admin_channel_tests/settings.py
Marciobds/shuup-admin-channel
11976decde4679760511d9d8b293130033fdd5c5
[ "MIT" ]
null
null
null
shuup_admin_channel_tests/settings.py
Marciobds/shuup-admin-channel
11976decde4679760511d9d8b293130033fdd5c5
[ "MIT" ]
1
2020-09-23T20:19:25.000Z
2020-09-23T20:19:25.000Z
# -*- coding: utf-8 -*- from shuup_workbench.settings.utils import get_disabled_migrations from shuup_workbench.test_settings import * # noqa INSTALLED_APPS = list(locals().get('INSTALLED_APPS', [])) + [ 'shuup_admin_channel', ] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', ...
22.761905
66
0.686192
f65d09eb3d9f31c2c821b9a77a50bbc792429c5a
2,553
py
Python
ether_py/contract/show.py
davedittrich/ether-py
8f92cdcae5d5e73e282cd1a6d1f2c0fa7667038b
[ "Apache-2.0" ]
null
null
null
ether_py/contract/show.py
davedittrich/ether-py
8f92cdcae5d5e73e282cd1a6d1f2c0fa7667038b
[ "Apache-2.0" ]
null
null
null
ether_py/contract/show.py
davedittrich/ether-py
8f92cdcae5d5e73e282cd1a6d1f2c0fa7667038b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import arrow import logging import os import sys import textwrap from cliff.lister import Lister from ether_py.utils import ( ETHERPY_CONTRACTS_DIR, VALID_CONTRACT_TYPES, ) def details_about(contract_name=None, file_type=None): """Return a tuple for details about ...
26.59375
73
0.561692
003b8ea1e51361b84aa96b88358f728c1201ec9d
3,539
py
Python
portafolio/settings.py
dirias/Portafolio
64879d06583121a301e55113708537751d2e68b3
[ "MIT" ]
null
null
null
portafolio/settings.py
dirias/Portafolio
64879d06583121a301e55113708537751d2e68b3
[ "MIT" ]
null
null
null
portafolio/settings.py
dirias/Portafolio
64879d06583121a301e55113708537751d2e68b3
[ "MIT" ]
null
null
null
""" Django settings for portafolio project. Generated by 'django-admin startproject' using Django 3.2.9. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from path...
26.214815
91
0.700198
61233908ad09b45b43f6879a4162ea49e494e9bd
1,801
py
Python
pokemongo_bot/websocket_remote_control.py
timgates42/PokemonGo-Bot
5e80f20760f32478a84a8f0ced7ca24cdf41fe03
[ "MIT" ]
5,362
2016-07-21T02:38:46.000Z
2022-03-23T13:34:51.000Z
pokemongo_bot/websocket_remote_control.py
timgates42/PokemonGo-Bot
5e80f20760f32478a84a8f0ced7ca24cdf41fe03
[ "MIT" ]
5,897
2016-07-21T05:05:49.000Z
2022-03-17T09:21:35.000Z
pokemongo_bot/websocket_remote_control.py
timgates42/PokemonGo-Bot
5e80f20760f32478a84a8f0ced7ca24cdf41fe03
[ "MIT" ]
3,379
2016-07-21T02:38:48.000Z
2022-03-30T02:46:57.000Z
import threading import logging from socketIO_client import BaseNamespace from socketIO_client import SocketIO from pokemongo_bot import inventory class WebsocketRemoteControl(object): def __init__(self, bot): self.bot = bot self.host, port_str = self.bot.config.websocket_server_url.split(':') ...
30.525424
103
0.556358
aaa183ed103b421dfd0c650d26fadb6663120c0b
12,871
py
Python
tests/unit/cli/test_db.py
matt-land/warehouse
0acb5d94528099ed5356253457cf8dc0b4e50aad
[ "Apache-2.0" ]
2
2015-11-08T12:57:16.000Z
2020-11-19T09:43:14.000Z
tests/unit/cli/test_db.py
matt-land/warehouse
0acb5d94528099ed5356253457cf8dc0b4e50aad
[ "Apache-2.0" ]
8
2019-12-26T16:45:00.000Z
2022-03-21T22:17:13.000Z
tests/unit/cli/test_db.py
matt-land/warehouse
0acb5d94528099ed5356253457cf8dc0b4e50aad
[ "Apache-2.0" ]
1
2019-09-09T15:02:40.000Z
2019-09-09T15:02:40.000Z
# 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 # distributed under the Li...
37.634503
79
0.67687
7610d75fd36adc10051fa14edec68c01b21f5f18
7,241
py
Python
docs/conf.py
petrikoz/templated-emails
7372c2b83b1a503d9fc7ad0cec4698edb31e383c
[ "MIT" ]
null
null
null
docs/conf.py
petrikoz/templated-emails
7372c2b83b1a503d9fc7ad0cec4698edb31e383c
[ "MIT" ]
null
null
null
docs/conf.py
petrikoz/templated-emails
7372c2b83b1a503d9fc7ad0cec4698edb31e383c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # templated-emails documentation build configuration file, created by # sphinx-quickstart on Sun Dec 18 21:23:53 2011. # # 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...
32.764706
80
0.722
f7129e82a3f744d3c7c04deff0406291ea8a41b9
797
py
Python
python/difference-of-squares/difference_of_squares.py
sqrt/exercism-assignments
cc169dfa6d7ef4e19e75a94083996295a23ec2ea
[ "WTFPL" ]
null
null
null
python/difference-of-squares/difference_of_squares.py
sqrt/exercism-assignments
cc169dfa6d7ef4e19e75a94083996295a23ec2ea
[ "WTFPL" ]
null
null
null
python/difference-of-squares/difference_of_squares.py
sqrt/exercism-assignments
cc169dfa6d7ef4e19e75a94083996295a23ec2ea
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Submission file for the python difference_of_squares exercise. # # v2: Using "x*x" instead of the slower "x**2" and remove left over # "pass" statement in difference() # v1: Using sum(), abs(), range() and "**2" def difference(length): """ Return the (abso...
24.90625
71
0.6399
df099076ff564f3f999294ae636c14da409ed683
4,876
py
Python
src/pretix/presale/forms/waitinglist.py
n0emis/pretix
57d68eaddb01ec4adc0837a915631871cae4d91a
[ "Apache-2.0" ]
null
null
null
src/pretix/presale/forms/waitinglist.py
n0emis/pretix
57d68eaddb01ec4adc0837a915631871cae4d91a
[ "Apache-2.0" ]
8
2015-01-06T10:50:27.000Z
2015-01-18T18:38:18.000Z
src/pretix/presale/forms/waitinglist.py
n0emis/pretix
57d68eaddb01ec4adc0837a915631871cae4d91a
[ "Apache-2.0" ]
null
null
null
# # This file is part of pretix (Community Edition). # # Copyright (C) 2014-2020 Raphael Michel and contributors # Copyright (C) 2020-2021 rami.io GmbH and contributors # # This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General # Public License as published by ...
38.09375
118
0.624487
32a762cbe2ab4aa528bcf75927efbee60295af90
5,366
py
Python
flow/autograd.py
Cjkkkk/Pyflow
22fd5b0141fac33ba19daa5217eee33df060a457
[ "MIT" ]
4
2019-12-18T02:05:15.000Z
2021-09-18T09:45:22.000Z
flow/autograd.py
Cjkkkk/Pyflow
22fd5b0141fac33ba19daa5217eee33df060a457
[ "MIT" ]
null
null
null
flow/autograd.py
Cjkkkk/Pyflow
22fd5b0141fac33ba19daa5217eee33df060a457
[ "MIT" ]
null
null
null
import numpy as np import traceback import functools from .tensor import Tensor, ones class no_grad: _is_grad_enabled = True def __call__(self, func): @functools.wraps(func) def wrap(*args, **kwargs): with self: return func(*args, **kwargs) return wrap ...
37.263889
166
0.635296
269ca0c13470fc1bae32f721b3df75bb7ae31d18
2,364
py
Python
silk/tests/test_events.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
silk/tests/test_events.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
silk/tests/test_events.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import json import logging import os import mock import pytest from datadog_checks.dev.fs import read_file from datadog_checks.silk import SilkCheck from datadog_checks.silk.events import SilkEvent from...
30.307692
88
0.689086
f5d729d0b6a4c5d678c5c25692017f4ac5620fb8
3,493
py
Python
cloudrail/knowledge/rules/aws/context_aware/public_access_validation_rules/public_access_db_rds_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/rules/aws/context_aware/public_access_validation_rules/public_access_db_rds_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/rules/aws/context_aware/public_access_validation_rules/public_access_db_rds_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
from typing import Dict, List from cloudrail.knowledge.rules.aws.aws_base_rule import AwsBaseRule from cloudrail.knowledge.context.aws.aws_environment_context import AwsEnvironmentContext from cloudrail.knowledge.rules.base_rule import Issue from cloudrail.knowledge.rules.rule_parameters.base_paramerter import Paramet...
61.280702
126
0.624678
0d7a45bce39b996596a014d4649e2abb5955fc33
1,307
py
Python
pythonx/completor/utils.py
ksofa2/completor.vim
5987cfc1485b6dc4cccef2b1e538078b90a9acd1
[ "MIT" ]
2
2021-04-04T19:27:56.000Z
2021-07-08T23:23:39.000Z
pythonx/completor/utils.py
ksofa2/completor.vim
5987cfc1485b6dc4cccef2b1e538078b90a9acd1
[ "MIT" ]
null
null
null
pythonx/completor/utils.py
ksofa2/completor.vim
5987cfc1485b6dc4cccef2b1e538078b90a9acd1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import functools from ._vim import vim_obj logger = logging.getLogger('completor') def ignore_exception(fallback=()): """Ignore exception raised by the decorated function. When exception happened the fallback value is returned. """ def deco(func): @f...
23.339286
75
0.615914
5b731c335e5b897c22b63e67e027fe9a067ed90f
4,870
py
Python
stellar_sdk/exceptions.py
kaotisk-hund/py-stellar-base
30dbe1139d8f0c03c4c20ea3c9a45a19285bedb8
[ "Apache-2.0" ]
341
2015-10-06T20:56:19.000Z
2022-03-23T15:58:54.000Z
stellar_sdk/exceptions.py
kaotisk-hund/py-stellar-base
30dbe1139d8f0c03c4c20ea3c9a45a19285bedb8
[ "Apache-2.0" ]
479
2015-11-09T18:39:40.000Z
2022-03-16T06:46:58.000Z
stellar_sdk/exceptions.py
kaotisk-hund/py-stellar-base
30dbe1139d8f0c03c4c20ea3c9a45a19285bedb8
[ "Apache-2.0" ]
181
2015-10-01T23:00:59.000Z
2022-03-05T13:42:19.000Z
from json import JSONDecodeError from typing import Optional from .client.response import Response BuildInValueError = ValueError BuildInTypeError = TypeError BuildInAttributeError = AttributeError __all__ = [ "SdkError", "ValueError", "TypeError", "AttributeError", "BadSignatureError", "Ed25...
24.846939
93
0.697947
5e98ffc295047ef07f43f5651a2852cb8a4950d6
17,392
py
Python
krakefaction/Krakefaction.py
BeeCSI-Microbiome/krakefaction
54eb5320fb042c5114b4f8d28dc62d4df5a48dd6
[ "Apache-2.0" ]
null
null
null
krakefaction/Krakefaction.py
BeeCSI-Microbiome/krakefaction
54eb5320fb042c5114b4f8d28dc62d4df5a48dd6
[ "Apache-2.0" ]
null
null
null
krakefaction/Krakefaction.py
BeeCSI-Microbiome/krakefaction
54eb5320fb042c5114b4f8d28dc62d4df5a48dd6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ # ============================================================================= Copyright Government of Canada 2018 Written by: Eric Marinier, Public Health Agency of Canada, National Microbiology Laboratory Licensed under the Apache License, Version 2.0 (the "License"); you may not us...
27.302983
83
0.580899
ce65c1326504e786e88986656369d97faeaf5ca6
16,827
py
Python
sfa_dash/blueprints/main.py
lboeman/solarforecastarbiter_dashboard
cd4dcffa922625b548d93f83be2b7c10457e1bbe
[ "MIT" ]
null
null
null
sfa_dash/blueprints/main.py
lboeman/solarforecastarbiter_dashboard
cd4dcffa922625b548d93f83be2b7c10457e1bbe
[ "MIT" ]
null
null
null
sfa_dash/blueprints/main.py
lboeman/solarforecastarbiter_dashboard
cd4dcffa922625b548d93f83be2b7c10457e1bbe
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template, url_for, request, g from sfa_dash.api_interface import (users, observations, forecasts, cdf_forecasts, cdf_forecast_groups) from sfa_dash.blueprints.aggregates import AggregatesView, AggregateView from sfa_dash.blueprints.dash import Da...
38.861432
79
0.614251
ffa2ea2cc4d16a2e13044d4b1bc14cec8d9667e3
1,214
py
Python
lib/serial_simulator.py
maximiliano1985/PythonMultiprocessingPlot
30e5e484b07b6326127fc850016d5d537ec3ac2f
[ "MIT" ]
null
null
null
lib/serial_simulator.py
maximiliano1985/PythonMultiprocessingPlot
30e5e484b07b6326127fc850016d5d537ec3ac2f
[ "MIT" ]
null
null
null
lib/serial_simulator.py
maximiliano1985/PythonMultiprocessingPlot
30e5e484b07b6326127fc850016d5d537ec3ac2f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import time import numpy as np import random class simulator: def __init__(self, nData = 10000, samplingTime_ms = 100): self.pid = os.getpid() self.meas_ts_ms = samplingTime_ms self.x_sim = [0]*nData self.y_sim = [0]*nData se...
31.128205
102
0.556013
c43b76d9ba93567c5744fd6012c849d8dcbefaca
3,006
py
Python
docs/conf.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
27
2015-12-07T18:29:12.000Z
2022-03-16T08:01:47.000Z
docs/conf.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
681
2015-12-01T11:52:24.000Z
2022-03-21T07:43:37.000Z
docs/conf.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
28
2015-12-01T08:32:57.000Z
2021-12-14T00:04:16.000Z
import os import django from django.conf import settings base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Manual setup is required for standalone Django usage # NOTE: Since documentation is built using the built/installed package when # using Tox, it can't use the 'test.settings' Django setti...
29.184466
95
0.681969
b0491ee2166fb5dd1d50e195389f8abfa267e800
3,632
py
Python
payabbhi/test/test_virtual_account.py
ppm-avinder/payabbhi-python
0f84f01349e365753f4b83eee584618e1a855567
[ "MIT" ]
1
2018-03-06T08:30:38.000Z
2018-03-06T08:30:38.000Z
payabbhi/test/test_virtual_account.py
ppm-avinder/payabbhi-python
0f84f01349e365753f4b83eee584618e1a855567
[ "MIT" ]
null
null
null
payabbhi/test/test_virtual_account.py
ppm-avinder/payabbhi-python
0f84f01349e365753f4b83eee584618e1a855567
[ "MIT" ]
5
2018-10-08T05:56:44.000Z
2020-05-22T11:31:07.000Z
import sys import json import responses import payabbhi import unittest2 from .helpers import mock_file, assert_list_of_virtual_accounts, assert_list_of_payments, assert_virtual_account class TestVirtualAccount(unittest2.TestCase): def setUp(self): self.client = payabbhi.Client(access_id='access_id', se...
46.564103
294
0.697687
6754c624684c72f347c31ae66c07790e3abd4360
3,993
py
Python
src/probabilistic/drop_elm.py
kjhall01/learning_machines
fe40a2852658aeca304262a211d46b8d4e304e85
[ "MIT" ]
1
2021-09-17T17:04:58.000Z
2021-09-17T17:04:58.000Z
src/probabilistic/drop_elm.py
kjhall01/extremelearning
fe40a2852658aeca304262a211d46b8d4e304e85
[ "MIT" ]
null
null
null
src/probabilistic/drop_elm.py
kjhall01/extremelearning
fe40a2852658aeca304262a211d46b8d4e304e85
[ "MIT" ]
null
null
null
import numpy as np from scipy.spatial.distance import cdist from scipy.special import softmax class DropClassifier: """Probabilistic Output Extreme Learning Machine""" def __init__(self, hidden_layer_size=5, dropconnect_pr=0.5, dropout_pr=0.5, dropconnect_bias_pctl=None, dropout_bias_pctl=None): self.hidden_layer_...
43.879121
138
0.688705
06d2cbe955e2a1548fd132860b96f2df099a09b1
482
py
Python
tests/test_redis.py
jerzyk/django-constance
d9a98edfc112ec696299ef2b1333d3f492dfae6d
[ "BSD-3-Clause" ]
null
null
null
tests/test_redis.py
jerzyk/django-constance
d9a98edfc112ec696299ef2b1333d3f492dfae6d
[ "BSD-3-Clause" ]
null
null
null
tests/test_redis.py
jerzyk/django-constance
d9a98edfc112ec696299ef2b1333d3f492dfae6d
[ "BSD-3-Clause" ]
1
2019-02-20T07:44:31.000Z
2019-02-20T07:44:31.000Z
from django.test import TestCase from constance import settings from tests.storage import StorageTestsMixin class TestRedis(StorageTestsMixin, TestCase): def setUp(self): super(TestRedis, self).setUp() self.old_backend = settings.BACKEND settings.BACKEND = 'constance.backends.redisd.Red...
25.368421
67
0.715768
a50f9411713f263e7fc569eba90cb918aebf0ea8
761
py
Python
config.py
careymwarabu/news
b8afc1b5939a6620e7676972f1570e6aa4e0c8c5
[ "MIT" ]
null
null
null
config.py
careymwarabu/news
b8afc1b5939a6620e7676972f1570e6aa4e0c8c5
[ "MIT" ]
null
null
null
config.py
careymwarabu/news
b8afc1b5939a6620e7676972f1570e6aa4e0c8c5
[ "MIT" ]
null
null
null
import os class Config: ''' General configuration parent class ''' HEADLINES_BASE_URL = 'https://newsapi.org/v2/top-headlines?sources={}&apiKey={}' SOURCE_BASE_URL = 'https://newsapi.org/v2/sources?language=en&category={}&apiKey={}' API_KEY = os.environ.get('NEWS_API_KEY') class ProdConf...
21.138889
88
0.679369
429140c705a273f7498f13c84accee2a90d19970
653
py
Python
download.py
Tibblue/Darkest-Dungeon-Wiki-Scrapper
0901f375c26d332b38c181c2988470dd3a4815eb
[ "MIT" ]
2
2020-07-21T20:43:22.000Z
2020-08-02T14:44:00.000Z
download.py
Tibblue/Darkest-Dungeon-Wiki-Scrapper
0901f375c26d332b38c181c2988470dd3a4815eb
[ "MIT" ]
null
null
null
download.py
Tibblue/Darkest-Dungeon-Wiki-Scrapper
0901f375c26d332b38c181c2988470dd3a4815eb
[ "MIT" ]
null
null
null
import os import wget ## Verify if directory exists. Create if it doesnt exist. def check_dir(file_path): directory = os.path.dirname(file_path) if not os.path.exists(directory): os.makedirs(directory) ## Download source Files from urls def download_files(urls, out_path='downloads/', silent=False): for url ...
29.681818
100
0.722818
4ab768695d996b1576133508cc5a9a5fc4687db7
963
py
Python
ts/apps/metrics/predicted-cost-efficiency-controller/ai-proxy/preprocessing/lstm.py
pics-polaris-cli/polaris
333e7b9f3b1a4d2a267cec73c44d09d4674042b5
[ "Apache-2.0" ]
null
null
null
ts/apps/metrics/predicted-cost-efficiency-controller/ai-proxy/preprocessing/lstm.py
pics-polaris-cli/polaris
333e7b9f3b1a4d2a267cec73c44d09d4674042b5
[ "Apache-2.0" ]
10
2022-03-27T17:09:20.000Z
2022-03-27T17:16:47.000Z
ts/apps/metrics/predicted-cost-efficiency-controller/ai-proxy/preprocessing/lstm.py
pics-polaris-cli/polaris
333e7b9f3b1a4d2a267cec73c44d09d4674042b5
[ "Apache-2.0" ]
null
null
null
import pandas as pd from sklearn.preprocessing import MinMaxScaler from preprocessing.gcd_data_manipulation import data_aggregation, series_to_supervised def lstm_handle(raw_input_features: pd.DataFrame): readings_df = data_aggregation(raw_input_features, aggr_type='mean') values = readings_df.values v...
30.09375
111
0.699896
70487e8f775951648ed67bce7c54a96bbd009d93
2,416
py
Python
wiki_music/library/tags_handler/flac.py
marian-code/wikipedia-music-tags
e8836c23b7b7e43661b59afd1bfc18d381b95d4a
[ "MIT" ]
5
2019-01-28T21:53:14.000Z
2020-06-27T08:52:36.000Z
wiki_music/library/tags_handler/flac.py
marian-code/wikipedia-music-tags
e8836c23b7b7e43661b59afd1bfc18d381b95d4a
[ "MIT" ]
4
2019-01-15T16:33:59.000Z
2020-05-20T08:09:02.000Z
wiki_music/library/tags_handler/flac.py
marian-code/wikipedia-music-tags
e8836c23b7b7e43661b59afd1bfc18d381b95d4a
[ "MIT" ]
1
2020-04-15T11:00:20.000Z
2020-04-15T11:00:20.000Z
"""Module for handling flac tags.""" import logging from collections import OrderedDict from typing import TYPE_CHECKING, Dict, Union from mutagen.flac import FLAC, FLACNoHeaderError, Picture from mutagen.id3 import PictureType from .tag_base import TagBase if TYPE_CHECKING: from pathlib import Path log = logg...
28.761905
78
0.557947
7035413f951bac0aaba4a170ff6335f269e49bee
38,976
py
Python
tests/policy/test_offline.py
Tanvikapoor14/zr-obp
51eba00f0dda5c26c1fa6826f544c60de485da52
[ "Apache-2.0" ]
null
null
null
tests/policy/test_offline.py
Tanvikapoor14/zr-obp
51eba00f0dda5c26c1fa6826f544c60de485da52
[ "Apache-2.0" ]
null
null
null
tests/policy/test_offline.py
Tanvikapoor14/zr-obp
51eba00f0dda5c26c1fa6826f544c60de485da52
[ "Apache-2.0" ]
null
null
null
import numpy as np import pytest from sklearn.linear_model import LinearRegression from sklearn.linear_model import LogisticRegression import torch from obp.policy.offline import IPWLearner from obp.policy.offline import NNPolicyLearner from obp.policy.offline import QLearner from obp.policy.policy_type import PolicyT...
23.158645
338
0.518268
9dee10990cbaf1282dbfee5126ba893f569f6b88
6,380
py
Python
greent/services/tkba.py
TranslatorIIPrototypes/robo-commons
a915d80b70f7e68a70f6a5f7ff6e732d2e02db06
[ "MIT" ]
1
2020-02-05T20:00:52.000Z
2020-02-05T20:00:52.000Z
greent/services/tkba.py
TranslatorIIPrototypes/robo-commons
a915d80b70f7e68a70f6a5f7ff6e732d2e02db06
[ "MIT" ]
12
2020-05-07T16:40:15.000Z
2020-06-16T13:23:13.000Z
greent/services/tkba.py
TranslatorIIPrototypes/robo-commons
a915d80b70f7e68a70f6a5f7ff6e732d2e02db06
[ "MIT" ]
6
2018-02-23T20:25:50.000Z
2019-11-21T14:55:52.000Z
import requests import json from greent.service import Service from greent.util import LoggingUtil from greent.util import Text from greent.graph_components import KNode from greent import node_types logger = LoggingUtil.init_logging (__name__) class TranslatorKnowledgeBeaconAggregator(Service): """ Use Translato...
41.16129
139
0.547806
f91320fea62e3397364dbe9bf5e5d2bc382ce3f5
2,432
py
Python
isi_sdk_8_2_0/test/test_job_api.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_0/test/test_job_api.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_0/test/test_job_api.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 7 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_2_0 from i...
17.751825
68
0.588816
2936bc69a3f1060f9c8614520c0b4c1763dd49a1
636
py
Python
sztuczna_inteligencja/1-lab/picture_row.py
Magikis/Uniwersity
06964ef31d721af85740df1dce3f966006ab9f78
[ "MIT" ]
12
2017-11-30T08:45:48.000Z
2018-04-26T14:15:45.000Z
sztuczna_inteligencja/1-lab/picture_row.py
Magikis/Uniwersity
06964ef31d721af85740df1dce3f966006ab9f78
[ "MIT" ]
null
null
null
sztuczna_inteligencja/1-lab/picture_row.py
Magikis/Uniwersity
06964ef31d721af85740df1dce3f966006ab9f78
[ "MIT" ]
9
2017-10-16T09:42:59.000Z
2018-01-27T19:48:45.000Z
def howManyHaveToFlip(list, windowSize): oneSymbol = 1 leastFlips = len(list) OnesInList = 0 for x in list: if x == oneSymbol: OnesInList += 1 OnesInWindow = 0 for i in range(windowSize): if list[i] == oneSymbol: OnesInWindow += 1 for i in range(len(l...
26.5
70
0.54717
b34eec444b8cf0be9f21b06102dbd265119350f7
2,456
py
Python
apex/contrib/multihead_attn/mask_softmax_dropout_func.py
Muflhi01/apex
79c018776129aad13abeb4ce63d24e1fbb4cd29e
[ "BSD-3-Clause" ]
6,523
2018-04-25T17:35:27.000Z
2022-03-31T22:49:45.000Z
apex/contrib/multihead_attn/mask_softmax_dropout_func.py
Muflhi01/apex
79c018776129aad13abeb4ce63d24e1fbb4cd29e
[ "BSD-3-Clause" ]
1,100
2018-05-18T00:03:34.000Z
2022-03-30T22:00:33.000Z
apex/contrib/multihead_attn/mask_softmax_dropout_func.py
Muflhi01/apex
79c018776129aad13abeb4ce63d24e1fbb4cd29e
[ "BSD-3-Clause" ]
1,057
2018-05-07T13:53:04.000Z
2022-03-31T09:18:47.000Z
import torch import fast_multihead_attn class MaskSoftmaxDropout(torch.autograd.Function): @staticmethod def forward(ctx, is_training, heads, inputs, pad_mask, mask_additive, dropout_prob): heads_t = torch.tensor([heads]) dropout_prob_t = torch.tensor([dropout_prob]) null_tensor = tor...
37.784615
119
0.618893
07bb0cf9fb077383f51bc14475e57cced2ff84aa
3,439
py
Python
tools/update_config_json.py
erebe/dcos-commons
7516c3e3b955ffbdc1e5a8718ad5bd78ff6ff4ea
[ "Apache-2.0" ]
1
2019-01-26T07:03:54.000Z
2019-01-26T07:03:54.000Z
tools/update_config_json.py
erebe/dcos-commons
7516c3e3b955ffbdc1e5a8718ad5bd78ff6ff4ea
[ "Apache-2.0" ]
null
null
null
tools/update_config_json.py
erebe/dcos-commons
7516c3e3b955ffbdc1e5a8718ad5bd78ff6ff4ea
[ "Apache-2.0" ]
null
null
null
""" A simple script to ensure that the ordering of the "service" section in config.json is standardized. NOTE: This overwrites the files. Usage: from the `dcos-commons` root: $ python tools/update_config_json.py """ import collections import json import logging import sys import difflib logging.basicConfig( fo...
26.453846
100
0.670253
306fb07ec56309f1dd3015f7e081da48284d1483
4,908
py
Python
telepresence/proxy/__init__.py
olaf-meyer/telepresence
8a882c469fddc94d0e63fc49cf0d6d6e86fb56a1
[ "Apache-2.0" ]
null
null
null
telepresence/proxy/__init__.py
olaf-meyer/telepresence
8a882c469fddc94d0e63fc49cf0d6d6e86fb56a1
[ "Apache-2.0" ]
null
null
null
telepresence/proxy/__init__.py
olaf-meyer/telepresence
8a882c469fddc94d0e63fc49cf0d6d6e86fb56a1
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Datawire. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
36.902256
79
0.639161
939a6afd1076d5eba74627295c949890885272a4
9,312
py
Python
test_modelparams.py
BenW0/eval-model-gen
36d8b52950e3667d20229e3b7fc030bbb8ebf488
[ "BSD-4-Clause-UC" ]
null
null
null
test_modelparams.py
BenW0/eval-model-gen
36d8b52950e3667d20229e3b7fc030bbb8ebf488
[ "BSD-4-Clause-UC" ]
null
null
null
test_modelparams.py
BenW0/eval-model-gen
36d8b52950e3667d20229e3b7fc030bbb8ebf488
[ "BSD-4-Clause-UC" ]
null
null
null
# Tests for modelparams module and the ModelParams class. # These are not the best unit tests ever written, but I'm learning! import unittest from modelparams import ModelParams as mp import json class ModelParamsInitCase(unittest.TestCase): """Tests for initialization (static methods) for `modelparams.py`.""" ...
51.164835
123
0.650344
a0dac4b77ceef2a4a25e74fd10117f000f4e3932
689
py
Python
backend/src/baserow/api/mixins.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
839
2020-07-20T13:29:34.000Z
2022-03-31T21:09:16.000Z
backend/src/baserow/api/mixins.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
28
2020-08-07T09:23:58.000Z
2022-03-01T22:32:40.000Z
backend/src/baserow/api/mixins.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
79
2020-08-04T01:48:01.000Z
2022-03-27T13:30:54.000Z
from baserow.api.exceptions import UnknownFieldProvided class UnknownFieldRaisesExceptionSerializerMixin: """ Mixin to a DRF serializer class to raise an exception if data with unknown fields is provided to the serializer. """ def validate(self, data): if hasattr(self, "initial_data"): ...
32.809524
85
0.613933
a1493455567ce6fd28c1d5d3671dea935e0ecb8f
3,010
py
Python
updatedata.py
ankit1509/password-Management-System
c23dc033e18344c1ff55d839ec71d37ace34b6e4
[ "MIT" ]
4
2021-03-19T11:51:54.000Z
2021-07-17T02:26:03.000Z
updatedata.py
ankit1509/password-Management-System
c23dc033e18344c1ff55d839ec71d37ace34b6e4
[ "MIT" ]
null
null
null
updatedata.py
ankit1509/password-Management-System
c23dc033e18344c1ff55d839ec71d37ace34b6e4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'updatedata.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, Q...
41.232877
533
0.660465
46763d7739a887d735b8b03b0ba5fa3b8b29cb8b
10,372
py
Python
storm_analysis/multi_plane/mp_fit_arb_c.py
oxfordni/storm-analysis
835a5c17497c563c3632db561ae7e7c9144a8dd1
[ "CNRI-Python" ]
null
null
null
storm_analysis/multi_plane/mp_fit_arb_c.py
oxfordni/storm-analysis
835a5c17497c563c3632db561ae7e7c9144a8dd1
[ "CNRI-Python" ]
null
null
null
storm_analysis/multi_plane/mp_fit_arb_c.py
oxfordni/storm-analysis
835a5c17497c563c3632db561ae7e7c9144a8dd1
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python """ Python interface to mp_fit_arb.c. Hazen 01/18 """ import ctypes import numpy from numpy.ctypeslib import ndpointer import storm_analysis.sa_library.dao_fit_c as daoFitC import storm_analysis.sa_library.loadclib as loadclib import storm_analysis.multi_plane.mp_fit_c as mpFitC def loadMPF...
47.145455
126
0.507231
af3e1f0abb7943e95b042c436a224e872ec4beef
609
py
Python
pythonizame/apps/books/urls.py
kiubtech/pythonizame
6483aa90859fc1bfbc01540efe4ffcf6fe87e450
[ "MIT" ]
6
2017-08-17T22:11:28.000Z
2021-12-23T13:31:28.000Z
pythonizame/apps/books/urls.py
kiubtech/pythonizame
6483aa90859fc1bfbc01540efe4ffcf6fe87e450
[ "MIT" ]
4
2018-04-04T21:02:52.000Z
2021-06-10T20:38:56.000Z
pythonizame/apps/books/urls.py
kiubtech/pythonizame
6483aa90859fc1bfbc01540efe4ffcf6fe87e450
[ "MIT" ]
3
2017-10-27T22:21:41.000Z
2019-09-27T17:38:58.000Z
# -*- coding: utf-8 -*- from django.conf.urls import url from pythonizame.apps.books.views import BooksMainView, BookDetailView, PreviewBookDetailView from .feeds import LatestEntriesFeed app_name = "books" urlpatterns = [ url(r'^books/$', BooksMainView.as_view(), name="index"), url(r'^books/page/(?P<page>[0-...
40.6
100
0.679803
6212832cbedf81cd183aa921267fc2ceb16d210a
4,108
py
Python
kube_iperf.py
spockmang/cni-benchmarking
3180a1d9a468f1f5c159fb64fc98495f99edbeb0
[ "Apache-2.0" ]
null
null
null
kube_iperf.py
spockmang/cni-benchmarking
3180a1d9a468f1f5c159fb64fc98495f99edbeb0
[ "Apache-2.0" ]
null
null
null
kube_iperf.py
spockmang/cni-benchmarking
3180a1d9a468f1f5c159fb64fc98495f99edbeb0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys import time import getopt import commands import matplotlib.pyplot as plt import numpy as np pkt_size_list = ["64k", "128k", "256k", "512k", "1m"] list_64k = [] list_128k = [] list_256k = [] list_512k = [] list_1m = [] def run_server(): ret,out = commands.getstatusoutput("kubectl appl...
31.358779
145
0.617819
388668dc3099d452047a06e3098f937a0c35b96e
8,085
py
Python
migrations/versions/fd0fb00bfd08_.py
nshamszadeh/Moon_Jelly
362be68b3797a84fbd4c2984f5385fbb977744fd
[ "MIT" ]
null
null
null
migrations/versions/fd0fb00bfd08_.py
nshamszadeh/Moon_Jelly
362be68b3797a84fbd4c2984f5385fbb977744fd
[ "MIT" ]
2
2019-05-27T04:04:02.000Z
2019-05-29T08:19:26.000Z
migrations/versions/fd0fb00bfd08_.py
nshamszadeh/Moon_Jelly
362be68b3797a84fbd4c2984f5385fbb977744fd
[ "MIT" ]
1
2019-05-05T23:16:54.000Z
2019-05-05T23:16:54.000Z
"""empty message Revision ID: fd0fb00bfd08 Revises: 19c4b18cd911 Create Date: 2019-05-29 00:41:00.880720 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'fd0fb00bfd08' down_revision = '19c4b18cd911' branch_labels = None...
62.674419
115
0.725541
217ec77649779d6929f096d7e758e0299cf7c302
41
py
Python
alttprbot/database/racebot.py
SaggingRufus/sahasrahbot
a59fcc3b941a427a41839632d1ce40ef59812177
[ "MIT" ]
null
null
null
alttprbot/database/racebot.py
SaggingRufus/sahasrahbot
a59fcc3b941a427a41839632d1ce40ef59812177
[ "MIT" ]
null
null
null
alttprbot/database/racebot.py
SaggingRufus/sahasrahbot
a59fcc3b941a427a41839632d1ce40ef59812177
[ "MIT" ]
null
null
null
import aiocache from ..util import orm
8.2
22
0.756098
9a2f7f1d9c8020e5359d4f42062b4638d79eb080
23,378
py
Python
src/freeseer/frontend/default/main.py
enkait/freeseer
222f05dff3d2e8ee0e3645c8057868549cfbf98c
[ "BSD-3-Clause" ]
1
2021-12-18T02:01:06.000Z
2021-12-18T02:01:06.000Z
src/freeseer/frontend/default/main.py
nupa/freeseer
222f05dff3d2e8ee0e3645c8057868549cfbf98c
[ "BSD-3-Clause" ]
null
null
null
src/freeseer/frontend/default/main.py
nupa/freeseer
222f05dff3d2e8ee0e3645c8057868549cfbf98c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # freeseer - vga/presentation capture software # # Copyright (C) 2011 Free and Open Source Software Learning Centre # http://fosslc.org # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publi...
40.099485
252
0.618958
6a834aadb5dff43c964a2fb14171b0b872775621
752
py
Python
hyperJob/vacancy/migrations/0001_initial.py
klilax/JobAgency
d26e5b09ac4dea6460813b1d2632fef6ba1066af
[ "MIT" ]
null
null
null
hyperJob/vacancy/migrations/0001_initial.py
klilax/JobAgency
d26e5b09ac4dea6460813b1d2632fef6ba1066af
[ "MIT" ]
null
null
null
hyperJob/vacancy/migrations/0001_initial.py
klilax/JobAgency
d26e5b09ac4dea6460813b1d2632fef6ba1066af
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-03-09 09:42 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...
28.923077
120
0.644947
ced75bc1d63b1342086632a5595c9c09dfa3e743
90,834
py
Python
lib/html5lib/constants.py
solidaritreebiz/Solidaritree
15cc2e10e4cec56eb4fe218166d4157fcce9bf8d
[ "MIT" ]
null
null
null
lib/html5lib/constants.py
solidaritreebiz/Solidaritree
15cc2e10e4cec56eb4fe218166d4157fcce9bf8d
[ "MIT" ]
null
null
null
lib/html5lib/constants.py
solidaritreebiz/Solidaritree
15cc2e10e4cec56eb4fe218166d4157fcce9bf8d
[ "MIT" ]
null
null
null
import string, gettext _ = gettext.gettext try: frozenset except NameError: # Import from the sets module for python 2.3 from sets import Set as set from sets import ImmutableSet as frozenset EOF = None E = { "null-character": _(u"Null character in input stream, replaced with U+FFFD."), ...
29.434219
94
0.526576
68528981e0301f7c5c492cef7e66b3d084cf41ed
1,562
py
Python
sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_properties.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_properties.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_properties.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
37.190476
81
0.637004
449110ef4bd697dc11d6ac45c38de391dde5e6ee
14,050
py
Python
ee/clickhouse/queries/trends/breakdown.py
atbe/posthog
c98b4eb7da13a269f3ff885a22dd471fc70162ca
[ "MIT" ]
null
null
null
ee/clickhouse/queries/trends/breakdown.py
atbe/posthog
c98b4eb7da13a269f3ff885a22dd471fc70162ca
[ "MIT" ]
null
null
null
ee/clickhouse/queries/trends/breakdown.py
atbe/posthog
c98b4eb7da13a269f3ff885a22dd471fc70162ca
[ "MIT" ]
null
null
null
from typing import Any, Callable, Dict, List, Optional, Tuple, Union from django.db.models.manager import BaseManager from ee.clickhouse.client import sync_execute from ee.clickhouse.models.action import format_action_filter from ee.clickhouse.models.cohort import format_filter_query from ee.clickhouse.models.propert...
44.462025
118
0.66726
118be2add37ddace7a7b4e7d45b439af09c30b42
21,362
py
Python
src/maad/configs/args_file.py
kegashi/att-aware
394b1d84a9b054c694a464ee954750ad719ea38a
[ "MIT" ]
4
2021-11-30T05:46:35.000Z
2022-02-23T05:08:47.000Z
src/maad/configs/args_file.py
kegashi/att-aware
394b1d84a9b054c694a464ee954750ad719ea38a
[ "MIT" ]
null
null
null
src/maad/configs/args_file.py
kegashi/att-aware
394b1d84a9b054c694a464ee954750ad719ea38a
[ "MIT" ]
1
2022-02-10T09:14:51.000Z
2022-02-10T09:14:51.000Z
# Copyright 2021 Toyota Research Institute. All rights reserved. """ Default maad arguments for training, loss function, dataset creation, inference """ import argparse import os import json def parse_arguments(session_hash, additional_argument_setters=[]): parser = argparse.ArgumentParser(formatter_class=argp...
33.747235
165
0.598774
d7902df719ad525d1cda6da02b7127642eabccaa
1,845
py
Python
src/files/monitor.py
NicolasMCP/Python
4973d87a079a4861e86714217edbb7bc160f118e
[ "BSD-3-Clause" ]
null
null
null
src/files/monitor.py
NicolasMCP/Python
4973d87a079a4861e86714217edbb7bc160f118e
[ "BSD-3-Clause" ]
null
null
null
src/files/monitor.py
NicolasMCP/Python
4973d87a079a4861e86714217edbb7bc160f118e
[ "BSD-3-Clause" ]
null
null
null
""" Autor: Nicolas Ramos Data : 20/09/2018 """ import glob import os class Monitor: """ A classe Monitor tem por objetivo monitorar um diretório fornecido como parámetro (path_absoluto) devolvendo os seguintes get_path: o caminho monitorado get_files: uma lista dos arquivos em get_path get_fil...
29.758065
101
0.61084
96df951416e930797546fbb559fb8440676d2128
7,250
py
Python
cla_backend/apps/cla_auth/tests/test_views.py
uk-gov-mirror/ministryofjustice.cla_backend
4d524c10e7bd31f085d9c5f7bf6e08a6bb39c0a6
[ "MIT" ]
3
2019-10-02T15:31:03.000Z
2022-01-13T10:15:53.000Z
cla_backend/apps/cla_auth/tests/test_views.py
uk-gov-mirror/ministryofjustice.cla_backend
4d524c10e7bd31f085d9c5f7bf6e08a6bb39c0a6
[ "MIT" ]
206
2015-01-02T16:50:11.000Z
2022-02-16T20:16:05.000Z
cla_backend/apps/cla_auth/tests/test_views.py
uk-gov-mirror/ministryofjustice.cla_backend
4d524c10e7bd31f085d9c5f7bf6e08a6bb39c0a6
[ "MIT" ]
6
2015-03-23T23:08:42.000Z
2022-02-15T17:04:44.000Z
import datetime from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.core.cache import cache from django.test import TestCase from django.conf import settings from django.utils import timezone import mock from provider.oauth2.models import Client from core.tests.mommy_u...
39.617486
110
0.667724
265661b86d107611f083e254ed33115208b6b121
1,963
py
Python
spellvardetection/test/type_filter/test_sklearnclassifier_filter.py
fab-bar/SpellvarDetection
624f472f9eec9636650bace9c091ba1fe9cda313
[ "MIT" ]
1
2019-11-08T08:02:21.000Z
2019-11-08T08:02:21.000Z
spellvardetection/test/type_filter/test_sklearnclassifier_filter.py
fab-bar/SpellvarDetection
624f472f9eec9636650bace9c091ba1fe9cda313
[ "MIT" ]
null
null
null
spellvardetection/test/type_filter/test_sklearnclassifier_filter.py
fab-bar/SpellvarDetection
624f472f9eec9636650bace9c091ba1fe9cda313
[ "MIT" ]
null
null
null
import unittest from spellvardetection.type_filter import SKLearnClassifierBasedTypeFilter from spellvardetection.util.feature_extractor import SurfaceExtractor from sklearn.dummy import DummyClassifier from sklearn.svm import SVC from imblearn.ensemble import BalancedBaggingClassifier class TestSKLearnClassifierBas...
40.061224
103
0.733062
198b7e0c90937e961e2689a5f53261982a256a60
115
py
Python
app/resources/authentication/__init__.py
alineayumi/desafio-ton-API-REST
cf9f88adc4f7de6060f2c3f2c31147077c311ce9
[ "MIT" ]
null
null
null
app/resources/authentication/__init__.py
alineayumi/desafio-ton-API-REST
cf9f88adc4f7de6060f2c3f2c31147077c311ce9
[ "MIT" ]
null
null
null
app/resources/authentication/__init__.py
alineayumi/desafio-ton-API-REST
cf9f88adc4f7de6060f2c3f2c31147077c311ce9
[ "MIT" ]
null
null
null
from .authentication import requires_auth from .jwt import identity, authenticate from .scopes import check_scopes
28.75
41
0.852174
ffe880d41726d51b2e0f6878953be9ed9f0b9616
10,298
py
Python
src/tests/unit/endpoint_standard/test_usb_device_approval.py
kphsugntuedutw/carbon-black-cloud-sdk-python
5277be067223bc3eda0348c57b2a0004fa70f3e9
[ "MIT" ]
24
2020-10-16T22:07:38.000Z
2022-03-24T14:58:03.000Z
src/tests/unit/endpoint_standard/test_usb_device_approval.py
kphsugntuedutw/carbon-black-cloud-sdk-python
5277be067223bc3eda0348c57b2a0004fa70f3e9
[ "MIT" ]
63
2020-10-26T18:26:15.000Z
2022-03-31T17:31:02.000Z
src/tests/unit/endpoint_standard/test_usb_device_approval.py
kphsugntuedutw/carbon-black-cloud-sdk-python
5277be067223bc3eda0348c57b2a0004fa70f3e9
[ "MIT" ]
10
2020-11-09T11:54:23.000Z
2022-03-24T20:44:00.000Z
#!/usr/bin/env python3 # ******************************************************* # Copyright (c) VMware, Inc. 2020-2021. All Rights Reserved. # SPDX-License-Identifier: MIT # ******************************************************* # * # * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT # * WARRANTIES OR CO...
43.451477
119
0.675568
235ee1037c4e64d183fae7696e6e1a17829f4cee
2,107
py
Python
movieclassifier/app.py
Krish-Mahajan/amazon-movie-reviews
3e4b25e8c557614538be70c5a91be8eda1fe0844
[ "Apache-2.0" ]
null
null
null
movieclassifier/app.py
Krish-Mahajan/amazon-movie-reviews
3e4b25e8c557614538be70c5a91be8eda1fe0844
[ "Apache-2.0" ]
null
null
null
movieclassifier/app.py
Krish-Mahajan/amazon-movie-reviews
3e4b25e8c557614538be70c5a91be8eda1fe0844
[ "Apache-2.0" ]
null
null
null
from flask import Flask,render_template , request from wtforms import Form, TextAreaField, validators import pickle import sqlite3 import os import numpy as np #import HashingVecotrizer from local_dir from vectorizer import vect app = Flask(__name__) #### Preparing the classifier cur_dir = os.path.dirname(__f...
30.536232
111
0.650214
f4867670d1248c2e26eb852a4a12005ebc98cc31
1,712
py
Python
src/pgpy/pg_common.py
luk036/pgpy
988a9cc7a76ad50acd4a561f42600ec7c713c6f0
[ "MIT" ]
null
null
null
src/pgpy/pg_common.py
luk036/pgpy
988a9cc7a76ad50acd4a561f42600ec7c713c6f0
[ "MIT" ]
2
2018-06-03T08:11:16.000Z
2020-01-18T14:46:48.000Z
src/pgpy/pg_common.py
luk036/pgpy
988a9cc7a76ad50acd4a561f42600ec7c713c6f0
[ "MIT" ]
2
2018-01-17T04:17:27.000Z
2018-06-03T08:09:41.000Z
# -*- coding: utf-8 -*- """ Common Functions for Projective Geometry """ def cross0(v, w): """[summary] Arguments: v (type): [description] w (type): [description] Returns: [type]: [description] """ return cross2(v[1:], w[1:]) def cross1(v, w): """[summary] Argu...
16.784314
68
0.478972
e9002264a6abed76e645eaba6b5fb2a40d8bb3fb
1,440
py
Python
be/src/dsp_be/main.py
koadjunky/dsp-manager
fb181c184aaca393a036556c54eb64bd89c75100
[ "MIT" ]
null
null
null
be/src/dsp_be/main.py
koadjunky/dsp-manager
fb181c184aaca393a036556c54eb64bd89c75100
[ "MIT" ]
null
null
null
be/src/dsp_be/main.py
koadjunky/dsp-manager
fb181c184aaca393a036556c54eb64bd89c75100
[ "MIT" ]
null
null
null
import uvicorn from fastapi import Depends, FastAPI, Request from loguru import logger from starlette.middleware.cors import CORSMiddleware from dsp_be.event_handlers import start_app_handler, stop_app_handler from dsp_be.routes.router import api_router from dsp_be.settings import API_PREFIX, APP_SETTINGS, DEFAULT_HOS...
27.169811
85
0.677778
68ea514ab081a1bdf3f4616e9b9c5196ec7fb7ba
105
py
Python
like.py
rbn42/python-mpd-script
e72839945dcfc8cb8816570576b60a60d6f73895
[ "MIT" ]
null
null
null
like.py
rbn42/python-mpd-script
e72839945dcfc8cb8816570576b60a60d6f73895
[ "MIT" ]
null
null
null
like.py
rbn42/python-mpd-script
e72839945dcfc8cb8816570576b60a60d6f73895
[ "MIT" ]
null
null
null
import util client = util.startClient() song = client.currentsong() print(song) util.closeClient(client)
17.5
27
0.780952
29dd6423703e7bd3d65394220ac73d337651b108
1,603
py
Python
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinnman/messages/scp/impl/scp_version_request.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
2
2020-11-01T13:22:11.000Z
2020-11-01T13:22:20.000Z
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinnman/messages/scp/impl/scp_version_request.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinnman/messages/scp/impl/scp_version_request.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
from spinnman.messages.scp.abstract_messages.abstract_scp_request\ import AbstractSCPRequest from spinnman.messages.sdp.sdp_flag import SDPFlag from spinnman.messages.sdp.sdp_header import SDPHeader from spinnman.messages.scp.scp_request_header import SCPRequestHeader from spinnman.messages.scp.scp_command import S...
40.075
101
0.674984
45153ec219ab516bc2813553e71e63f527f5b2ea
1,829
py
Python
Level_Classification/LevelClassificationModel.py
khu-nlplab/VTT
134e8a2de47bc7916a7b2f48697442b948b1da6a
[ "Apache-2.0" ]
1
2019-12-12T08:14:34.000Z
2019-12-12T08:14:34.000Z
Level_Classification/LevelClassificationModel.py
khu-nlplab/VTT
134e8a2de47bc7916a7b2f48697442b948b1da6a
[ "Apache-2.0" ]
null
null
null
Level_Classification/LevelClassificationModel.py
khu-nlplab/VTT
134e8a2de47bc7916a7b2f48697442b948b1da6a
[ "Apache-2.0" ]
1
2019-11-25T04:02:52.000Z
2019-11-25T04:02:52.000Z
import MemoryLevel import LogicLevel import time def model_load(memory_check_point, logic_check_point): Memory_model = MemoryLevel.Memory_level_model_init(memory_check_point) Logic_model = LogicLevel.Logic_level_model_init(logic_check_point) return Memory_model, Logic_model def printPredictionL...
49.432432
417
0.774194
ec1ccc62a158f90b571372f683264fcff80727d5
10,901
py
Python
fastparquet1/util.py
johnfouf/fastparquet1
35d31f41e7d0b329956c38d31a2c853a5ff1c332
[ "Apache-2.0" ]
null
null
null
fastparquet1/util.py
johnfouf/fastparquet1
35d31f41e7d0b329956c38d31a2c853a5ff1c332
[ "Apache-2.0" ]
null
null
null
fastparquet1/util.py
johnfouf/fastparquet1
35d31f41e7d0b329956c38d31a2c853a5ff1c332
[ "Apache-2.0" ]
null
null
null
import ast import copy import os import os.path import pandas as pd import re import six import numbers from collections import defaultdict try: from pandas.api.types import is_categorical_dtype except ImportError: # Pandas <= 0.18.1 from pandas.core.common import is_categorical_dtype PY2 = six.PY2 PY3 = ...
30.196676
121
0.566829
4f7459c6afddcf67ee7953cfb8e6b956deab0886
678
py
Python
algorithms/0026-BirthdayChocolate/birthday.py
ivamluz/Algorithms-and-Data-Structures
cffacd758adf134dabc63cdc107c8b485b00b1c1
[ "Apache-2.0" ]
1
2018-11-06T22:43:07.000Z
2018-11-06T22:43:07.000Z
algorithms/0026-BirthdayChocolate/birthday.py
ivamluz/Algorithms-and-Data-Structures
cffacd758adf134dabc63cdc107c8b485b00b1c1
[ "Apache-2.0" ]
null
null
null
algorithms/0026-BirthdayChocolate/birthday.py
ivamluz/Algorithms-and-Data-Structures
cffacd758adf134dabc63cdc107c8b485b00b1c1
[ "Apache-2.0" ]
null
null
null
def birthday(numbers, day, month): expected_sum = day expected_length = month numbers_length = len(numbers) if (numbers_length == 1 and numbers[0] == expected_sum): return 1 possibilities = 0 for i in range(numbers_length - expected_length + 1): current_sum = numbers[i] ...
27.12
81
0.59587
30e4549d0cb2427973957f85a43edde2b87869d2
3,798
py
Python
Google/benchmarks/maskrcnn/implementations/maskrcnn-preview-TF-tpu-v4-2048/fpn.py
CaoZhongZ/training_results_v1.0
8200377f425ae24b6ed6c2816b9273aab0996d43
[ "Apache-2.0" ]
27
2021-07-01T00:34:52.000Z
2022-03-29T08:49:53.000Z
Google/benchmarks/maskrcnn/implementations/maskrcnn-preview-TF-tpu-v4-2048/fpn.py
CaoZhongZ/training_results_v1.0
8200377f425ae24b6ed6c2816b9273aab0996d43
[ "Apache-2.0" ]
21
2021-08-31T08:34:50.000Z
2022-03-17T11:42:10.000Z
Google/benchmarks/maskrcnn/implementations/maskrcnn-preview-TF-tpu-v4-2048/fpn.py
CaoZhongZ/training_results_v1.0
8200377f425ae24b6ed6c2816b9273aab0996d43
[ "Apache-2.0" ]
39
2021-07-02T00:46:14.000Z
2022-03-13T16:59:55.000Z
# Copyright 2018 The TensorFlow 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 applica...
34.216216
151
0.651922
0823a14ee7bffb1f5159ef733ccd2008b2941647
16,271
py
Python
tests/unittests/algo/test_evolution_es.py
Epistimio/orion
a77128df8c5c1a6fd83b545b95e3de8cf028e3e4
[ "BSD-3-Clause" ]
177
2018-08-24T20:37:10.000Z
2022-03-28T13:56:00.000Z
tests/unittests/algo/test_evolution_es.py
Epistimio/orion
a77128df8c5c1a6fd83b545b95e3de8cf028e3e4
[ "BSD-3-Clause" ]
574
2018-08-25T19:25:33.000Z
2022-03-31T19:42:13.000Z
tests/unittests/algo/test_evolution_es.py
Epistimio/orion
a77128df8c5c1a6fd83b545b95e3de8cf028e3e4
[ "BSD-3-Clause" ]
35
2018-08-27T17:06:09.000Z
2022-03-22T13:58:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for :mod:`orion.algo.evolution_es`.""" import copy import hashlib import numpy as np import pytest from test_hyperband import ( compare_registered_trial, create_rung_from_points, create_trial_for_hb, force_observe, ) from orion.algo.evolution_es ...
32.804435
90
0.600516
16075024bfaddeb8ef65d196b9498fd84691dcc8
1,396
py
Python
Part 1 - Python/Lab6/7c.py
RealDyllon/cz1103
d43fbaa1e98b50dfec35756aff227980a5461ccf
[ "MIT" ]
2
2020-10-13T07:03:22.000Z
2020-11-28T13:28:04.000Z
Part 1 - Python/Lab6/7c.py
RealDyllon/cz1103
d43fbaa1e98b50dfec35756aff227980a5461ccf
[ "MIT" ]
null
null
null
Part 1 - Python/Lab6/7c.py
RealDyllon/cz1103
d43fbaa1e98b50dfec35756aff227980a5461ccf
[ "MIT" ]
null
null
null
from sense_hat import SenseHat from time import sleep # ------------------------ # This function checks the pitch value and the x coordinate # to determine whether to move the marble in the x-direction. # Similarly, it checks the roll value and y coordinate to # determine whether to move the marble in the y-direction...
24.928571
61
0.519341
946007ce7d6d79b0e2c0742e6b42e75079efba10
757
py
Python
actions/rgb.py
mddigaetano/AccessibleHomeAutomation
1798402e6a8a7826a0e368d58bf171e756320c4b
[ "MIT" ]
null
null
null
actions/rgb.py
mddigaetano/AccessibleHomeAutomation
1798402e6a8a7826a0e368d58bf171e756320c4b
[ "MIT" ]
null
null
null
actions/rgb.py
mddigaetano/AccessibleHomeAutomation
1798402e6a8a7826a0e368d58bf171e756320c4b
[ "MIT" ]
null
null
null
import subprocess from config.config import ARDUINO def rgb(words): COLORS = [ "RED", "ORANGE", "YELLOW", "GREEN", "BLUE", "PURPLE", "INDIGO", "WHITE", "OFF", "FADE" ] index = words.index("GARDEN") try: color = words[index + 1] if color.find('(') != -1: color = color[:color.index('(')...
21.027778
96
0.56539
b0cc04a539b69aa9a92380f8fbe168f08cf2d8df
6,064
py
Python
rasa/core/policies/form_policy.py
malhotra1432/rasa-1
f24d05ebad3e69ca7c8075ea4a725754276b9f71
[ "Apache-2.0" ]
1
2020-09-12T17:27:21.000Z
2020-09-12T17:27:21.000Z
rasa/core/policies/form_policy.py
malhotra1432/rasa-1
f24d05ebad3e69ca7c8075ea4a725754276b9f71
[ "Apache-2.0" ]
null
null
null
rasa/core/policies/form_policy.py
malhotra1432/rasa-1
f24d05ebad3e69ca7c8075ea4a725754276b9f71
[ "Apache-2.0" ]
null
null
null
import logging from typing import List, Dict, Text, Optional, Any, Union, Tuple import rasa.shared.utils.common import rasa.shared.utils.io from rasa.constants import DOCS_URL_MIGRATION_GUIDE from rasa.shared.core.constants import ( ACTION_LISTEN_NAME, LOOP_NAME, PREVIOUS_ACTION, ACTIVE_LOOP, LOOP_...
35.255814
87
0.645449
5f378f203d15630dacb7cd3cfc8e4e49841d46e6
2,336
py
Python
testplan/common/utils/thread.py
armarti/testplan
5dcfe5840c0c99e9535cc223230f400fa62802f2
[ "Apache-2.0" ]
null
null
null
testplan/common/utils/thread.py
armarti/testplan
5dcfe5840c0c99e9535cc223230f400fa62802f2
[ "Apache-2.0" ]
null
null
null
testplan/common/utils/thread.py
armarti/testplan
5dcfe5840c0c99e9535cc223230f400fa62802f2
[ "Apache-2.0" ]
null
null
null
"""Threading utilities.""" import time import threading from .timing import TimeoutException def execute_as_thread(target, args=None, kwargs=None, daemon=False, join=True, break_join=None, join_sleep=0.01, timeout=None): """ Execute target callable in a separate thread. :param tar...
31.567568
79
0.617295
fae0d30d27c16dcd83becf20ca4ec837b5ddcd0d
4,122
py
Python
Tests/test_user_login_register_test_case.py
kodek-sleuth/Food-Hub-API
6ecb5ba21d45b0ec74f95c26eeee6866085f71e2
[ "Apache-2.0" ]
5
2019-03-09T15:46:14.000Z
2021-12-27T16:47:09.000Z
Tests/test_user_login_register_test_case.py
kodek-sleuth/Food-Hub-API
6ecb5ba21d45b0ec74f95c26eeee6866085f71e2
[ "Apache-2.0" ]
null
null
null
Tests/test_user_login_register_test_case.py
kodek-sleuth/Food-Hub-API
6ecb5ba21d45b0ec74f95c26eeee6866085f71e2
[ "Apache-2.0" ]
1
2020-03-08T11:13:15.000Z
2020-03-08T11:13:15.000Z
import json import test_setup_testcase class User_Resgister_Login_TestCase(test_setup_testcase.AuthTest): def test_Register_route(self): res=self.client().post('/auth/user/Register', data=json.dumps(self.userRegDetails), content_type='application/json') result=json.loads(res.data.decode()) ...
52.177215
134
0.712276
3ec448cc320d3554aa7da0ce8ceb79d59ece3549
3,232
py
Python
tests/test_cz_customize.py
Lee-W/commitizen
2803b18fda9315a22f60628cc953341b0b1ce109
[ "MIT" ]
null
null
null
tests/test_cz_customize.py
Lee-W/commitizen
2803b18fda9315a22f60628cc953341b0b1ce109
[ "MIT" ]
null
null
null
tests/test_cz_customize.py
Lee-W/commitizen
2803b18fda9315a22f60628cc953341b0b1ce109
[ "MIT" ]
null
null
null
import pytest from commitizen.config import TomlConfig from commitizen.cz.customize import CustomizeCommitsCz @pytest.fixture(scope="module") def config(): toml_str = r""" [tool.commitizen.customize] message_template = "{{change_type}}:{% if show_message %} {{message}}{% endif %}" example = "feature:...
29.117117
88
0.605198
642b9588cfc2aeec5bfd42e98b9bc7ef885600c1
1,725
py
Python
src/_cffi_src/openssl/err.py
dabiaotouxiang/cryptography
98410500e94a5f29496149c8009679bfa7d58dc5
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/_cffi_src/openssl/err.py
dabiaotouxiang/cryptography
98410500e94a5f29496149c8009679bfa7d58dc5
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/_cffi_src/openssl/err.py
dabiaotouxiang/cryptography
98410500e94a5f29496149c8009679bfa7d58dc5
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. INCLUDES = """ #include <openssl/err.h> """ TYPES = """ static const int EVP_F_EVP_ENCRYPTFINAL_EX; static const int EVP_R_DATA_NOT_MULTI...
31.363636
79
0.774493
95801503975f4e991db35ffbc9c8c0685114f37e
7,958
py
Python
tests/test_http_functions.py
t-eckert/azure-functions-python-worker
bb8fc64fd33937c037e7d7ff2a8487483354260d
[ "MIT" ]
null
null
null
tests/test_http_functions.py
t-eckert/azure-functions-python-worker
bb8fc64fd33937c037e7d7ff2a8487483354260d
[ "MIT" ]
null
null
null
tests/test_http_functions.py
t-eckert/azure-functions-python-worker
bb8fc64fd33937c037e7d7ff2a8487483354260d
[ "MIT" ]
null
null
null
import hashlib import pathlib import filecmp import os from azure.functions_worker import testutils class TestHttpFunctions(testutils.WebHostTestCase): @classmethod def get_script_dir(cls): return 'http_functions' def test_return_str(self): r = self.webhost.request('GET', 'return_str') ...
36.842593
79
0.60857
c1981eeabd4dc3237854ddef394c9b649793c389
412
py
Python
sync.py
ddboline/sync_app
7c3633312d6ba5e2981e15d3152d84a9d991ed7c
[ "MIT" ]
null
null
null
sync.py
ddboline/sync_app
7c3633312d6ba5e2981e15d3152d84a9d991ed7c
[ "MIT" ]
null
null
null
sync.py
ddboline/sync_app
7c3633312d6ba5e2981e15d3152d84a9d991ed7c
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ syncing app, default: sync gdrive sync s3 sync select local directories """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals #import os from...
19.619048
46
0.718447
6a246445fd83b3ac180ea50192ad00744d9fc9ad
3,146
py
Python
tests/functional/testplan/runners/pools/test_pool_base.py
cpages/testplan
462f95204095f62ab9ff8ae40e73d0de447204e4
[ "Apache-2.0" ]
1
2021-07-21T08:28:41.000Z
2021-07-21T08:28:41.000Z
tests/functional/testplan/runners/pools/test_pool_base.py
cpages/testplan
462f95204095f62ab9ff8ae40e73d0de447204e4
[ "Apache-2.0" ]
null
null
null
tests/functional/testplan/runners/pools/test_pool_base.py
cpages/testplan
462f95204095f62ab9ff8ae40e73d0de447204e4
[ "Apache-2.0" ]
null
null
null
"""TODO.""" import os from testplan import Task from testplan.testing.multitest import MultiTest, testsuite, testcase from testplan.testing.multitest.base import MultiTestConfig from testplan.runners.pools.base import Pool, Worker from testplan.common.utils.strings import slugify # from testplan.common.utils.testing...
28.862385
79
0.653846
930c3d1775ad81fef47ca1ae2137ebcc9e5fad0b
5,528
py
Python
pandas/plotting/_style.py
YuechengWu/pandas
7f753892eb6b29aaa62176cb9f00ad84c092c09a
[ "BSD-3-Clause" ]
1
2018-12-19T09:09:37.000Z
2018-12-19T09:09:37.000Z
pandas/plotting/_style.py
YuechengWu/pandas
7f753892eb6b29aaa62176cb9f00ad84c092c09a
[ "BSD-3-Clause" ]
1
2016-08-15T12:35:16.000Z
2016-08-15T12:35:16.000Z
pandas/plotting/_style.py
YuechengWu/pandas
7f753892eb6b29aaa62176cb9f00ad84c092c09a
[ "BSD-3-Clause" ]
2
2017-05-27T03:25:12.000Z
2021-09-21T21:51:12.000Z
# being a bit too dynamic # pylint: disable=E1101 from __future__ import division from contextlib import contextmanager import warnings import numpy as np import pandas.compat as compat from pandas.compat import lmap, lrange from pandas.core.dtypes.common import is_list_like def _get_standard_colors(num_colors=No...
33.707317
79
0.598227
c6b58ef9208dae9ccca9ec48e51b0e45fa48b672
1,379
py
Python
tests/test_info.py
Trentonoliphant/conda
50000e443ff4d60904faf59c1ea04cf269ec42c3
[ "BSD-3-Clause" ]
1
2019-01-22T03:56:20.000Z
2019-01-22T03:56:20.000Z
tests/test_info.py
Trentonoliphant/conda
50000e443ff4d60904faf59c1ea04cf269ec42c3
[ "BSD-3-Clause" ]
null
null
null
tests/test_info.py
Trentonoliphant/conda
50000e443ff4d60904faf59c1ea04cf269ec42c3
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, absolute_import, division from conda import config from tests.helpers import run_conda_command def test_info(): conda_info_out, conda_info_err = run_conda_command('info') assert conda_info_err == '' for name in ['platform', 'conda version', 'root environment', ...
39.4
81
0.716461
317edfb1e7e59b48b279f6d3979c302eb5731bdc
191
py
Python
test_function/__init__.py
MinpLemon/studyPython
39ab3b49ccc2fb122827de0b1fab89a53888e6b5
[ "MIT" ]
null
null
null
test_function/__init__.py
MinpLemon/studyPython
39ab3b49ccc2fb122827de0b1fab89a53888e6b5
[ "MIT" ]
1
2021-12-13T20:00:00.000Z
2021-12-13T20:00:00.000Z
test_function/__init__.py
MinpLemon/studyPython
39ab3b49ccc2fb122827de0b1fab89a53888e6b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-05-29 10:33 # @Author : minp # @contact : king101125s@gmail.com # @Site : # @File : __init__.py.py # @Software: PyCharm
23.875
34
0.586387
28887fd3a7d586365ba080f2fa0143bc0186c509
2,964
py
Python
screen_object.py
Darkened12/snake-wincmd
819bd189344a584a2440b1705761e265d800149e
[ "MIT" ]
null
null
null
screen_object.py
Darkened12/snake-wincmd
819bd189344a584a2440b1705761e265d800149e
[ "MIT" ]
null
null
null
screen_object.py
Darkened12/snake-wincmd
819bd189344a584a2440b1705761e265d800149e
[ "MIT" ]
null
null
null
import random class ScreenObject: """Represents a character on the screen""" def __init__(self, character, screen_size, x_pos, y_pos): self._screen_size = screen_size self.x_pos = x_pos self.y_pos = y_pos self._char = character def __eq__(self, other): ...
32.571429
118
0.604926
7d0941aa2c09fcfa73a9a313dca1ad7662635be4
1,859
py
Python
Semi_ATE/STDF/SSR.py
bunbury86/STDF
b6321ef90266e0c779230022fa851a66c194737e
[ "MIT" ]
14
2021-03-23T09:09:31.000Z
2022-03-25T06:52:33.000Z
Semi_ATE/STDF/SSR.py
bunbury86/STDF
b6321ef90266e0c779230022fa851a66c194737e
[ "MIT" ]
23
2021-02-16T19:19:27.000Z
2022-03-31T21:44:39.000Z
Semi_ATE/STDF/SSR.py
bunbury86/STDF
b6321ef90266e0c779230022fa851a66c194737e
[ "MIT" ]
3
2021-04-03T17:22:36.000Z
2021-06-22T07:38:35.000Z
# -*- coding: utf-8 -*- from . import STDR class SSR(STDR): def __init__(self, version=None, endian=None, record = None): self.id = 'SSR' self.local_debug = False if version==None or version == 'V4': self.version = 'V4' self.info= ''' # Scan Structure Record...
51.638889
162
0.475524