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
75fc075cb2ef386121605b4a56a4add5335aea3c
9,198
py
Python
options/base_options.py
nguyennhuttin/cycleGAN_pix2pix
6ef765ea119b9537ab87d63bf03e1df6e7349149
[ "BSD-3-Clause" ]
null
null
null
options/base_options.py
nguyennhuttin/cycleGAN_pix2pix
6ef765ea119b9537ab87d63bf03e1df6e7349149
[ "BSD-3-Clause" ]
null
null
null
options/base_options.py
nguyennhuttin/cycleGAN_pix2pix
6ef765ea119b9537ab87d63bf03e1df6e7349149
[ "BSD-3-Clause" ]
null
null
null
import argparse import os from util import util import torch import models import data class BaseOptions(): """This class defines options used during both training and test time. It also implements several helper functions such as parsing, printing, and saving the options. It also gathers additional opti...
52.261364
198
0.593064
1eac733dfc4f89249cd0854f621b0e0fe146baa9
751
py
Python
rj_gameplay/rj_gameplay/skill/seek.py
xiaoqingyu0113/robocup-software
6127d25fc455051ef47610d0e421b2ca7330b4fa
[ "Apache-2.0" ]
null
null
null
rj_gameplay/rj_gameplay/skill/seek.py
xiaoqingyu0113/robocup-software
6127d25fc455051ef47610d0e421b2ca7330b4fa
[ "Apache-2.0" ]
null
null
null
rj_gameplay/rj_gameplay/skill/seek.py
xiaoqingyu0113/robocup-software
6127d25fc455051ef47610d0e421b2ca7330b4fa
[ "Apache-2.0" ]
null
null
null
import argparse import py_trees import sys import time from abc import ABC, abstractmethod import stp.skill as skill import stp.role as role import stp.action as action import stp.rc as rc import numpy as np from typing import Callable class Seek(skill.ISkill): """ A seeker skill based off of some heuristic ...
25.033333
86
0.696405
7a9be60022a6897dfe3c5b7f39b70afa9e6c9232
4,201
py
Python
cathetergen.py
srk1995/2D3DRegistration
8d65d06c93532574d831055fce2d3f9bbe315f09
[ "MIT" ]
9
2020-09-16T16:29:28.000Z
2021-07-28T11:23:09.000Z
cathetergen.py
srk1995/2D3DRegistration
8d65d06c93532574d831055fce2d3f9bbe315f09
[ "MIT" ]
null
null
null
cathetergen.py
srk1995/2D3DRegistration
8d65d06c93532574d831055fce2d3f9bbe315f09
[ "MIT" ]
1
2020-09-24T07:37:27.000Z
2020-09-24T07:37:27.000Z
import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"] = "4,5" import torch import numpy as np from torch.utils.data import Dataset, DataLoader from torchvision import transforms from utils import cartesian_product import skeleton2 import utils import visdom def transform(img): ...
35.008333
136
0.55701
6ef6eaa97ce29d52e2a80ccd1934783ebf608c2a
6,062
py
Python
video_structure/ops.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
video_structure/ops.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
video_structure/ops.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 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...
35.450292
80
0.711151
5c3b7f2e6d7640b12d97cde00f45c8d4ae09f59c
9,253
py
Python
tencentcloud/aai/v20180522/models.py
liangzhengkang/tencentcloud-sdk-python
c8f990b33f3701e04149a3d613538829a88269eb
[ "Apache-2.0" ]
null
null
null
tencentcloud/aai/v20180522/models.py
liangzhengkang/tencentcloud-sdk-python
c8f990b33f3701e04149a3d613538829a88269eb
[ "Apache-2.0" ]
null
null
null
tencentcloud/aai/v20180522/models.py
liangzhengkang/tencentcloud-sdk-python
c8f990b33f3701e04149a3d613538829a88269eb
[ "Apache-2.0" ]
1
2019-03-25T02:21:47.000Z
2019-03-25T02:21:47.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
31.688356
147
0.628121
1f1425617904942d6aa6ef8d30490d8a5db37fb6
1,366
py
Python
ev3dev2simulator/robotpart/arm.py
jchmrt/ev3dev2simulator
3a8968162d1658a82860a613caf9986c5428b124
[ "MIT" ]
2
2020-07-14T01:31:14.000Z
2021-02-22T19:14:12.000Z
ev3dev2simulator/robotpart/arm.py
jchmrt/ev3dev2simulator
3a8968162d1658a82860a613caf9986c5428b124
[ "MIT" ]
19
2020-02-16T08:11:23.000Z
2020-12-10T10:06:36.000Z
ev3dev2simulator/robotpart/arm.py
jchmrt/ev3dev2simulator
3a8968162d1658a82860a613caf9986c5428b124
[ "MIT" ]
10
2020-03-02T08:37:29.000Z
2022-03-06T03:49:07.000Z
""" The module arm contains the small arm that is attached to the robot and not the one displayed in the sidebar. """ from ev3dev2simulator.config.config import get_simulation_settings from ev3dev2simulator.robotpart.arm_large import ArmLarge from ev3dev2simulator.robotpart.body_part import BodyPart from ev3dev2simula...
35.025641
112
0.661786
803cb78bfe75d5b9a6a9e402aefed90d66dcf021
409
py
Python
color-depth-reduction/ImageNet/util.py
jfc43/pixel-discretization
1543649e5172cb4f8226962a5ab5087091910418
[ "Apache-2.0" ]
6
2019-03-08T23:09:20.000Z
2021-07-29T19:23:58.000Z
color-depth-reduction/ImageNet/util.py
jfc43/pixel-discretization
1543649e5172cb4f8226962a5ab5087091910418
[ "Apache-2.0" ]
null
null
null
color-depth-reduction/ImageNet/util.py
jfc43/pixel-discretization
1543649e5172cb4f8226962a5ab5087091910418
[ "Apache-2.0" ]
1
2020-02-05T20:07:19.000Z
2020-02-05T20:07:19.000Z
import numpy as np from sklearn.neighbors import KDTree def preprocess(images0, codes): images = np.copy(images0).astype(float) kd = KDTree(codes, metric='infinity') new_images = [] for img in images: points = img.reshape(-1,1) inds = np.squeeze(kd.query(points,return_distance=False)) ...
31.461538
65
0.684597
1465a8b1c3636397a9c3d4d22434c3a047cb9994
2,427
py
Python
aliyun-python-sdk-hbr/aliyunsdkhbr/request/v20170908/UpdateHanaBackupPlanRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-hbr/aliyunsdkhbr/request/v20170908/UpdateHanaBackupPlanRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-hbr/aliyunsdkhbr/request/v20170908/UpdateHanaBackupPlanRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.36
79
0.754841
c65efb5286702e3f2918514419b43371ca216446
266
py
Python
asecop/asecop/doctype/margen_ganancias_sec/margen_ganancias_sec.py
edwinorlando83/asecop
950930feb0dea98e739e58809a9a36f732dd695c
[ "MIT" ]
null
null
null
asecop/asecop/doctype/margen_ganancias_sec/margen_ganancias_sec.py
edwinorlando83/asecop
950930feb0dea98e739e58809a9a36f732dd695c
[ "MIT" ]
null
null
null
asecop/asecop/doctype/margen_ganancias_sec/margen_ganancias_sec.py
edwinorlando83/asecop
950930feb0dea98e739e58809a9a36f732dd695c
[ "MIT" ]
2
2021-05-06T14:59:24.000Z
2021-08-20T21:21:20.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, orlando and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class margen_ganancias_sec(Document): pass
24.181818
49
0.781955
5d3dd67ae8950efcc5c53836ac4df2e26320d939
2,185
py
Python
app/db/asyncdb/workspace_repository.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2021-05-04T08:46:19.000Z
2021-05-04T08:46:19.000Z
app/db/asyncdb/workspace_repository.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
null
null
null
app/db/asyncdb/workspace_repository.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2022-01-28T21:21:32.000Z
2022-01-28T21:21:32.000Z
from app.ml.training.training_state import TrainingState from enum import Enum from typing import Any from app.models.domain.sensor import SensorComponent from app.core.config import WORKSPACE_COLLECTION_NAME from motor.motor_asyncio import AsyncIOMotorCollection, AsyncIOMotorDatabase from bson.objectid import ObjectId...
47.5
121
0.740961
7a98140ad60b38bdf1ca9179f08406df3e59decf
428
py
Python
Tutorial/Tkinter/Tkinter Label_Get Fonts List.py
DelftStack/DelftStack
a714bfe9c144e08915547109bb1e95b9907fa1ba
[ "MIT" ]
5
2020-09-24T11:40:10.000Z
2022-01-30T05:16:04.000Z
Tutorial/Tkinter/Tkinter Label_Get Fonts List.py
DelftStack/DelftStack
a714bfe9c144e08915547109bb1e95b9907fa1ba
[ "MIT" ]
null
null
null
Tutorial/Tkinter/Tkinter Label_Get Fonts List.py
DelftStack/DelftStack
a714bfe9c144e08915547109bb1e95b9907fa1ba
[ "MIT" ]
null
null
null
#!/usr/bin # -*- coding: utf-8 -*- """ DelftStack Python Tkinter Tutorial Author: Jinku Hu URL: https://www.delftstack.com/tutorial/tkinter-tutorial/tkinter-label/ Website: https://www.delftstack.com """ from sys import version_info if version_info.major == 2: import Tkinter as tk elif version_info.major == 3: ...
20.380952
72
0.721963
81245755037eae3c562e63629474c57e048f8ad5
14,441
py
Python
faker/providers/python/__init__.py
mgorny/faker
b1176e01bf4d7f1aef408a4bb96a9e46188cc113
[ "MIT" ]
12,077
2015-01-01T18:30:07.000Z
2022-03-31T23:22:01.000Z
faker/providers/python/__init__.py
mgorny/faker
b1176e01bf4d7f1aef408a4bb96a9e46188cc113
[ "MIT" ]
1,306
2015-01-03T05:18:55.000Z
2022-03-31T02:43:04.000Z
faker/providers/python/__init__.py
mgorny/faker
b1176e01bf4d7f1aef408a4bb96a9e46188cc113
[ "MIT" ]
1,855
2015-01-08T14:20:10.000Z
2022-03-25T17:23:32.000Z
import math import string import sys import warnings from decimal import Decimal from typing import Any, Dict, Iterable, Iterator, List, Optional, Tuple, Union, no_type_check from .. import BaseProvider, ElementsType ValueTypes = Optional[Union[List[str], Tuple[str, ...]]] class Provider(BaseProvider): default...
44.847826
120
0.598297
c1a628e3a20adf3cfa2971c52e313fca0ae3af95
11,939
py
Python
src/sage/plot/arc.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
5
2015-01-04T07:15:06.000Z
2022-03-04T15:15:18.000Z
src/sage/plot/arc.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
null
null
null
src/sage/plot/arc.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
10
2016-09-28T13:12:40.000Z
2022-02-12T09:28:34.000Z
""" Arcs of circles and ellipses """ #***************************************************************************** # Copyright (C) 2010 Vincent Delecroix <20100.delecroix@gmail.com>, # # Distributed under the terms of the GNU General Public License (GPL) # # This code is distributed in the hope that it will ...
31.01039
149
0.511433
6e7102f9a178408022c57ff6c67de2b9cc5404ff
1,123
py
Python
animal.py
ckwen81/palg1
76d2a8a0720070200189afff10c84fd6e1c036ff
[ "MIT" ]
null
null
null
animal.py
ckwen81/palg1
76d2a8a0720070200189afff10c84fd6e1c036ff
[ "MIT" ]
null
null
null
animal.py
ckwen81/palg1
76d2a8a0720070200189afff10c84fd6e1c036ff
[ "MIT" ]
null
null
null
class Mammal: population = 0 def __init__(self, name): self.name = name def __str__(self): return f"I am an instance of {self.__class__}. My name is {self.name}. " def __repr__(self): return self.__str__() def make_sound(self): return f"{self.name} is trying to sp...
23.395833
90
0.609973
0f739be0063bf6758a0f421bfe4876388800d651
5,377
py
Python
klever/deploys/openstack/ssh.py
lutovna/klever
29c0e4fa60def241032a2ea2b81103d817994eef
[ "Apache-2.0" ]
null
null
null
klever/deploys/openstack/ssh.py
lutovna/klever
29c0e4fa60def241032a2ea2b81103d817994eef
[ "Apache-2.0" ]
null
null
null
klever/deploys/openstack/ssh.py
lutovna/klever
29c0e4fa60def241032a2ea2b81103d817994eef
[ "Apache-2.0" ]
1
2020-05-22T15:53:39.000Z
2020-05-22T15:53:39.000Z
# # Copyright (c) 2018 ISP RAS (http://www.ispras.ru) # Ivannikov Institute for System Programming of the Russian Academy of Sciences # # 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 # # h...
38.683453
115
0.637902
3bd84ea754b08a839c493c721349c981365b87ae
12,445
py
Python
core/commands/intra_line_colorizer.py
timfjord/GitSavvy
c0a627c30da79cb10a5a33f30d92d177f78da0ab
[ "MIT" ]
2,058
2015-02-27T19:06:31.000Z
2019-10-17T13:42:11.000Z
core/commands/intra_line_colorizer.py
timfjord/GitSavvy
c0a627c30da79cb10a5a33f30d92d177f78da0ab
[ "MIT" ]
1,057
2015-02-11T23:14:56.000Z
2019-10-17T20:17:23.000Z
core/commands/intra_line_colorizer.py
divmain/GitGadget
6452528d22a13c6f3169ad20619471d261e576bf
[ "MIT" ]
180
2015-03-06T14:26:05.000Z
2019-10-12T06:28:21.000Z
import difflib from functools import lru_cache, partial from itertools import groupby, zip_longest import re import time import sublime from ..fns import accumulate, filter_, flatten from ..parse_diff import Hunk, SplittedDiff, Region from ..utils import eat_but_log_errors, line_indentation from ..runtime import coope...
35.355114
114
0.64556
92b06c05f9671cab4f77ae7df0cc12f8202a81eb
5,911
py
Python
output/python37/Lib/test/test_frame.py
cy15196/FastCAE
0870752ec2e590f3ea6479e909ebf6c345ac2523
[ "BSD-3-Clause" ]
117
2020-03-07T12:07:05.000Z
2022-03-27T07:35:22.000Z
output/python37/Lib/test/test_frame.py
cy15196/FastCAE
0870752ec2e590f3ea6479e909ebf6c345ac2523
[ "BSD-3-Clause" ]
4
2020-03-12T15:36:57.000Z
2022-02-08T02:19:17.000Z
output/python37/Lib/test/test_frame.py
cy15196/FastCAE
0870752ec2e590f3ea6479e909ebf6c345ac2523
[ "BSD-3-Clause" ]
76
2020-03-16T01:47:46.000Z
2022-03-21T16:37:07.000Z
import re import types import unittest import weakref from test import support class ClearTest(unittest.TestCase): """ Tests for frame.clear(). """ def inner(self, x=5, **kwargs): 1/0 def outer(self, **kwargs): try: self.inner(**kwargs) exc...
28.834146
90
0.494163
d278d1698e45a05897c9fb5b08c729b250fd798f
9,452
py
Python
library/azure_rm_containerinstance_facts.py
wray/azure_modules
af2d84ffc4a0061f5ab4ed7e621faa0bbdbb2da5
[ "MIT" ]
null
null
null
library/azure_rm_containerinstance_facts.py
wray/azure_modules
af2d84ffc4a0061f5ab4ed7e621faa0bbdbb2da5
[ "MIT" ]
null
null
null
library/azure_rm_containerinstance_facts.py
wray/azure_modules
af2d84ffc4a0061f5ab4ed7e621faa0bbdbb2da5
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2017 Zim Kalinowski, <zikalino@microsoft.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
33.048951
157
0.559247
463bbf3eefb8e35bc6625d1f72b2ed4a47f5c318
543
py
Python
image_shredder/scripts/image_shredder.py
HarmenBoers/ocr-playground
8be775b5cea44eb1fad57561cca2e2fae980d81b
[ "MIT" ]
1
2017-08-09T12:58:17.000Z
2017-08-09T12:58:17.000Z
image_shredder/scripts/image_shredder.py
HarmenBoers/ocr-playground
8be775b5cea44eb1fad57561cca2e2fae980d81b
[ "MIT" ]
null
null
null
image_shredder/scripts/image_shredder.py
HarmenBoers/ocr-playground
8be775b5cea44eb1fad57561cca2e2fae980d81b
[ "MIT" ]
null
null
null
from PIL import Image from random import shuffle SHREDS = 10 image = Image.open('sample.png') shredded = Image.new('RGBA', image.size) width, height = image.size shred_width = width/SHREDS sequence = range(0, SHREDS) shuffle(sequence) for i, shred_index in enumerate(sequence): shred_x1, shred_y1 = shred_width * shr...
36.2
65
0.73849
611c4666255a39950bea7e09b6987f4ef0f2147d
5,397
py
Python
AFLink/dataset.py
dyhBUPT/StrongSORT
dbe13571e841e12003cf993cbbbf55bf6714ea71
[ "Apache-2.0" ]
65
2022-03-01T14:22:04.000Z
2022-03-30T09:44:49.000Z
AFLink/dataset.py
dyhBUPT/StrongSORT
dbe13571e841e12003cf993cbbbf55bf6714ea71
[ "Apache-2.0" ]
12
2022-03-02T06:07:50.000Z
2022-03-30T03:19:25.000Z
AFLink/dataset.py
dyhBUPT/StrongSORT
dbe13571e841e12003cf993cbbbf55bf6714ea71
[ "Apache-2.0" ]
11
2022-03-02T02:33:50.000Z
2022-03-27T00:50:40.000Z
""" @Author: Du Yunhao @Filename: dataset.py @Contact: dyh_bupt@163.com @Time: 2021/12/28 9:24 @Discription: dataset """ import torch import numpy as np from os.path import join from random import randint, normalvariate from torch.utils.data import Dataset, DataLoader import AFLink.config as cfg SEQ = ...
32.908537
98
0.494534
ef9d71fb6c35d6657929488be8611f70708b71d7
73
py
Python
LearnAF/ops/__init__.py
itsnarsi/LearnAF
5c7d76a89ab824e8e3ea1bd83ac4f07c94ce0819
[ "MIT" ]
null
null
null
LearnAF/ops/__init__.py
itsnarsi/LearnAF
5c7d76a89ab824e8e3ea1bd83ac4f07c94ce0819
[ "MIT" ]
null
null
null
LearnAF/ops/__init__.py
itsnarsi/LearnAF
5c7d76a89ab824e8e3ea1bd83ac4f07c94ce0819
[ "MIT" ]
null
null
null
from .autograd import * from .trigonometry import * from .matops import *
24.333333
27
0.767123
a56bf081ac3ec7d1490901f98f35ee1ad521e5a0
2,261
py
Python
projects/perception/lightweight_open_pose/demos/eval_demo.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
3
2021-06-24T01:54:25.000Z
2021-12-12T16:21:24.000Z
projects/perception/lightweight_open_pose/demos/eval_demo.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
79
2021-06-23T10:40:10.000Z
2021-12-16T07:59:42.000Z
projects/perception/lightweight_open_pose/demos/eval_demo.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
5
2021-07-04T07:38:50.000Z
2021-12-12T16:18:47.000Z
# Copyright 2020-2021 OpenDR European Project # # 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 agree...
39.666667
106
0.684211
08cd88d42bececef9b8d31ca97c04fc35e4959e7
356
py
Python
send_script.py
nlpcl-lab/event-extraction
05975c348bf7e278cdf086bc3a5171ad28fce14f
[ "Apache-2.0" ]
23
2019-12-20T14:35:13.000Z
2022-03-23T23:12:53.000Z
send_script.py
nlpcl-lab/event-extraction
05975c348bf7e278cdf086bc3a5171ad28fce14f
[ "Apache-2.0" ]
2
2020-09-20T05:20:58.000Z
2022-03-20T10:28:36.000Z
send_script.py
nlpcl-lab/event-extraction
05975c348bf7e278cdf086bc3a5171ad28fce14f
[ "Apache-2.0" ]
4
2020-04-10T05:44:20.000Z
2020-09-18T11:44:31.000Z
import requests filenames = ['10_1_mic1.wav','10_1_mic2.wav'] files = dict() for filename in filenames: f = open(filename, 'rb') files[filename] = f res = requests.post('http://localhost:8080/upload', files=files) print('res :', res) r = requests.get('http://localhost:8080/download') with open('result.wav',...
22.25
64
0.671348
2c3e379228b1172560adf14bde1a6dd5b2be7ad5
435
py
Python
tests/test_sjd.py
StarkillerX42/ObserverTools
a3bc48179a1ed445e7f4232426dce8c1c28bb8e4
[ "BSD-3-Clause" ]
null
null
null
tests/test_sjd.py
StarkillerX42/ObserverTools
a3bc48179a1ed445e7f4232426dce8c1c28bb8e4
[ "BSD-3-Clause" ]
null
null
null
tests/test_sjd.py
StarkillerX42/ObserverTools
a3bc48179a1ed445e7f4232426dce8c1c28bb8e4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import pytest from astropy.time import Time from bin import sjd class TestSJD(): def test_astropy(self): """Checks to see if astropy.time agrees with mjd.mjd""" astropy_mjd = int(Time.now().mjd + 0.3) mjd_mjd = sjd.sjd() print(astropy_mjd, mjd_mjd) a...
22.894737
76
0.652874
06b8d518d127234a5ac96cab10784921b5448808
148,849
py
Python
FWCore/ParameterSet/python/Config.py
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
1
2019-08-09T08:42:11.000Z
2019-08-09T08:42:11.000Z
FWCore/ParameterSet/python/Config.py
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
null
null
null
FWCore/ParameterSet/python/Config.py
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
1
2019-04-03T19:23:27.000Z
2019-04-03T19:23:27.000Z
#!/usr/bin/env python ### command line options helper from __future__ import print_function from __future__ import absolute_import import six from .Options import Options options = Options() ## imports import sys from .Mixins import PrintOptions,_ParameterTypeBase,_SimpleParameterTypeBase, _Parameterizable, _Config...
43.843594
432
0.586205
089b73fc01b2119228e0d4eb64ac68cdd66fd048
229
py
Python
beir/retrieval/models/__init__.py
tstadel/beir
3abb52f9465d91a92d61b35b95b371cfbcd3a248
[ "Apache-2.0" ]
24
2022-03-20T18:48:52.000Z
2022-03-31T08:28:42.000Z
beir/retrieval/models/__init__.py
tstadel/beir
3abb52f9465d91a92d61b35b95b371cfbcd3a248
[ "Apache-2.0" ]
9
2022-03-19T14:50:30.000Z
2022-03-30T17:31:18.000Z
beir/retrieval/models/__init__.py
tstadel/beir
3abb52f9465d91a92d61b35b95b371cfbcd3a248
[ "Apache-2.0" ]
3
2022-03-25T15:45:14.000Z
2022-03-25T17:51:23.000Z
from .sentence_bert import SentenceBERT from .use_qa import UseQA from .sparta import SPARTA from .dpr import DPR from .bpr import BinarySentenceBERT from .unicoil import UniCOIL from .splade import SPLADE from .tldr import TLDR
25.444444
39
0.825328
319e651552082f44c17b6af0fc1e965678773f38
38,253
py
Python
hapiclient/hapi.py
hapi-server/client-python
4ba6d24e07dcb81ef02f0960b66c04508da2ed14
[ "BSD-3-Clause" ]
9
2018-07-12T20:05:00.000Z
2022-02-02T20:34:07.000Z
hapiclient/hapi.py
hapi-server/client-python
4ba6d24e07dcb81ef02f0960b66c04508da2ed14
[ "BSD-3-Clause" ]
38
2018-09-12T03:11:23.000Z
2022-03-29T14:41:34.000Z
hapiclient/hapi.py
hapi-server/client-python
4ba6d24e07dcb81ef02f0960b66c04508da2ed14
[ "BSD-3-Clause" ]
8
2018-09-10T11:03:37.000Z
2021-08-09T02:07:15.000Z
import os import re import sys import json import time import pickle import warnings from datetime import datetime, timedelta import pandas import isodate import numpy as np from joblib import Parallel, delayed from hapiclient.hapitime import hapitime2datetime, hapitime_reformat from hapiclient.util import setopts, l...
41.043991
139
0.54814
127ce0580644358b077d82cee5c49c5760fd5871
383
py
Python
tally/conf/settings/development.py
Mapkin/tally
731940362c4c6003eed7f576620a89206fda312d
[ "MIT" ]
1
2022-02-14T05:52:20.000Z
2022-02-14T05:52:20.000Z
tally/conf/settings/development.py
Mapkin/tally
731940362c4c6003eed7f576620a89206fda312d
[ "MIT" ]
null
null
null
tally/conf/settings/development.py
Mapkin/tally
731940362c4c6003eed7f576620a89206fda312d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Created by John Watson on 2012-10-10. # Copyright (c) 2012 Eightyone Labs, Inc. All rights reserved. # from tally.conf.settings.default import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'tally', 'USER': '', '...
18.238095
62
0.550914
16600c67414e5f3529292e5894d733215a892c81
1,879
py
Python
apps/books/models.py
vuonghv/brs
9cdf9431ac69fd7a33d8bf4240a7d49a49ae4a80
[ "MIT" ]
1
2021-01-13T23:42:54.000Z
2021-01-13T23:42:54.000Z
apps/books/models.py
vuonghv/brs
9cdf9431ac69fd7a33d8bf4240a7d49a49ae4a80
[ "MIT" ]
1
2015-10-09T06:19:29.000Z
2015-10-09T06:19:29.000Z
apps/books/models.py
vuonghv/brs
9cdf9431ac69fd7a33d8bf4240a7d49a49ae4a80
[ "MIT" ]
8
2015-10-09T02:00:34.000Z
2016-07-08T15:00:37.000Z
from django.db import models from django.conf import settings from apps.categories.models import Category from apps.users.models import UserProfile from apps.reviews.models import Review class Book(models.Model): title = models.CharField(max_length=255) slug = models.SlugField(max_length=500) author = mo...
31.316667
103
0.668973
440a75cb7ec0c51d8e45e66ff5c7fc940ba9ed63
3,119
py
Python
last few python scripts/p_risk_varying_isotropy.py
pm2111/Heart-Defibrillation-Project
48ea3570c360aac7c3ff46354891998f4f364fab
[ "MIT" ]
null
null
null
last few python scripts/p_risk_varying_isotropy.py
pm2111/Heart-Defibrillation-Project
48ea3570c360aac7c3ff46354891998f4f364fab
[ "MIT" ]
null
null
null
last few python scripts/p_risk_varying_isotropy.py
pm2111/Heart-Defibrillation-Project
48ea3570c360aac7c3ff46354891998f4f364fab
[ "MIT" ]
null
null
null
import matplotlib.pylab as plt import numpy as np import os #os.chdir("/Users/petermarinov/msci project/intermittent /50 hearts 10^5 nr excited 10^3 restitution 0.333 ") path = [] path.append( "/Users/petermarinov/msci project/all code/50 hearts preferential/50 hearts anis 0.5 corr 0.2/50 hearts 0.333 restitution") pa...
44.557143
157
0.67201
644e046954dc07ab51726b3dd54062445d8767a0
3,405
py
Python
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_routing_rule_request.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_routing_rule_request.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_routing_rule_request.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class ShowRoutingRuleRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the v...
25.601504
75
0.555947
2e9efe20edb5014b3d4520cccda14bfa1208061a
12,414
py
Python
tl.py
theWAM/timelib
4aa96f39a292d5b219d9953823ffb00f85701627
[ "MIT" ]
1
2019-09-17T22:20:43.000Z
2019-09-17T22:20:43.000Z
tl.py
theWAM/timelib
4aa96f39a292d5b219d9953823ffb00f85701627
[ "MIT" ]
null
null
null
tl.py
theWAM/timelib
4aa96f39a292d5b219d9953823ffb00f85701627
[ "MIT" ]
null
null
null
# timelibWAM Functions 12.26.18 = # © Woody Allen Montilus 2018 = # = # ======================================================================== import sys ...
30.727723
146
0.527308
c4b046890b376744de58e9310878bfd2e08618fb
1,760
py
Python
tests/test_bot_support.py
lukasz00500/instabot
542a35d5ef510183999e5aa825d2f1a0b113a0f1
[ "Apache-2.0" ]
4
2019-08-17T01:27:20.000Z
2020-01-08T12:01:34.000Z
tests/test_bot_support.py
lukasz00500/instabot
542a35d5ef510183999e5aa825d2f1a0b113a0f1
[ "Apache-2.0" ]
4
2019-02-25T08:48:07.000Z
2019-03-07T17:06:15.000Z
tests/test_bot_support.py
lukasz00500/instabot
542a35d5ef510183999e5aa825d2f1a0b113a0f1
[ "Apache-2.0" ]
5
2019-04-10T04:53:14.000Z
2020-05-17T09:10:06.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os import sys import pytest from .test_bot import TestBot class TestBotSupport(TestBot): @pytest.mark.parametrize('url,result', [ ('https://google.com', ['https://google.com']), ('google.com', ['google.com']), ('goo...
29.830508
99
0.578409
b3ad8a149e22778f22bb9baea5230323d6de948f
12,254
py
Python
flexget/plugins/input/discover.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
null
null
null
flexget/plugins/input/discover.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
1
2017-10-09T23:06:44.000Z
2017-10-09T23:06:44.000Z
flexget/plugins/input/discover.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin import datetime import logging import random from sqlalchemy import Column, Integer, DateTime, Unicode, Index from flexget import options, plugin from flexget import db_s...
39.529032
120
0.539742
020ff8c7d77756766d03dfeca299ecc57f6c0699
483
py
Python
env/lib/python3.8/site-packages/plotly/validators/scatter3d/error_x/_value.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/scatter3d/error_x/_value.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/scatter3d/error_x/_value.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="value", parent_name="scatter3d.error_x", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
34.5
87
0.635611
6903c80bb31f6dde1f2b183c4e535efd35d734a2
118,428
py
Python
scripts/timos.py
hoxnox/eve-ng
5b11c20b07fd560b553b871092e3d497f7df413c
[ "BSD-3-Clause" ]
7
2019-10-19T23:15:55.000Z
2021-11-29T07:01:52.000Z
scripts/timos.py
hoxnox/eve-ng
5b11c20b07fd560b553b871092e3d497f7df413c
[ "BSD-3-Clause" ]
null
null
null
scripts/timos.py
hoxnox/eve-ng
5b11c20b07fd560b553b871092e3d497f7df413c
[ "BSD-3-Clause" ]
9
2019-05-01T06:46:28.000Z
2022-02-14T20:37:33.000Z
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link crossorigin="anonymous" href="https://assets-cdn.github.com/assets/frameworks-2ee047e3d7ac61fb4cad5ffb2578eb535d9de741a820b81b04277f6319538d39.css" integrity="sha256-LuBH49esYftMrV/7JXjrU12d50GoILgbBCd/YxlTjTk=" media="all" rel="style...
64.223427
751
0.596953
628f7bc0f0f09241776a5b7eac5d9d28ebc47377
18,649
py
Python
research/object_detection/predictors/convolutional_box_predictor.py
slomrafgrav/models
daa6c0415e47bdc52ad6434dc2bdb5d8aeb4f7ce
[ "Apache-2.0" ]
79
2019-03-02T17:40:25.000Z
2021-08-17T13:22:03.000Z
research/object_detection/predictors/convolutional_box_predictor.py
ywy0318/models
91a59c78e8c48e8a1b2fec37143e52dae3f066c1
[ "Apache-2.0" ]
8
2019-05-14T10:10:50.000Z
2020-12-20T14:05:29.000Z
research/object_detection/predictors/convolutional_box_predictor.py
ywy0318/models
91a59c78e8c48e8a1b2fec37143e52dae3f066c1
[ "Apache-2.0" ]
27
2019-02-04T01:45:48.000Z
2021-03-18T02:39:28.000Z
# Copyright 2017 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...
44.191943
80
0.683307
ed5595668309ee3b483734136db3df1982fa1b4e
19,915
py
Python
numpy_demo/ma/tests/test_mrecords.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
numpy_demo/ma/tests/test_mrecords.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
numpy_demo/ma/tests/test_mrecords.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
# pylint: disable-msg=W0611, W0612, W0511,R0201 """Tests suite for mrecords. :author: Pierre Gerard-Marchant :contact: pierregm_at_uga_dot_edu """ import numpy_demo as np import numpy_demo.ma as ma from numpy_demo import recarray from numpy_demo.ma import masked, nomask from numpy_demo.testing import temppath from nu...
40.313765
78
0.527994
5d892be1bcdb1f55b8f4e7fbe1b8071405e9fc38
2,132
py
Python
tehbot/plugins/hs.py
tehron/tehbot
4c097366c9afbbe2da8f629b86f84af9cb300644
[ "MIT" ]
6
2015-08-25T18:24:23.000Z
2022-03-03T17:49:43.000Z
tehbot/plugins/hs.py
tehron/tehbot
4c097366c9afbbe2da8f629b86f84af9cb300644
[ "MIT" ]
3
2018-09-10T13:46:51.000Z
2019-11-10T18:23:41.000Z
tehbot/plugins/hs.py
tehron/tehbot
4c097366c9afbbe2da8f629b86f84af9cb300644
[ "MIT" ]
3
2015-08-27T21:00:10.000Z
2022-01-31T17:39:58.000Z
# -*- coding: utf-8 -*- from tehbot.plugins import * import urllib.request, urllib.parse, urllib.error import urllib.request, urllib.error, urllib.parse import ssl import lxml.html import re from pony.orm import * from datetime import datetime, timedelta class HsPoller(Poller): @db_session def create_entities(...
38.071429
151
0.568949
5ad61d2e001a0065a68dc70ec1b7cf0d77da6617
5,139
py
Python
gpMgmt/bin/gppylib/operations/test/unit/test_unit_utils.py
kmacoskey/gpdb
fdf8b611576d89d52f4c64e4e68ab826cac81d5d
[ "PostgreSQL", "Apache-2.0" ]
1
2022-03-07T02:51:44.000Z
2022-03-07T02:51:44.000Z
gpMgmt/bin/gppylib/operations/test/unit/test_unit_utils.py
kmacoskey/gpdb
fdf8b611576d89d52f4c64e4e68ab826cac81d5d
[ "PostgreSQL", "Apache-2.0" ]
2
2019-03-02T16:16:00.000Z
2019-03-20T05:52:31.000Z
gpMgmt/bin/gppylib/operations/test/unit/test_unit_utils.py
kmacoskey/gpdb
fdf8b611576d89d52f4c64e4e68ab826cac81d5d
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) Greenplum Inc 2008. All Rights Reserved. # import sys from gppylib.commands.base import ExecutionError from gppylib.operations.utils import RemoteOperation, ParallelOperation from gppylib.operations.test_utils_helper import TestOperation, RaiseOperation, RaiseOperation_Nested, \...
43.550847
147
0.675812
c386cf9cc08164c91fcb47581603d43333f7ebae
268,286
py
Python
sdk/python/pulumi_azure_nextgen/compute/v20191201/_inputs.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/compute/v20191201/_inputs.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/compute/v20191201/_inputs.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
53.115423
1,266
0.693693
b126500b61cac328ca9046126829b5e5fd0e3024
1,484
py
Python
plotly/tests/test_optional/test_matplotlylib/test_annotations.py
piyush1301/plotly.py
50cd5c4cd4732042422751c7760acbab8dd8a50d
[ "MIT" ]
6
2019-05-03T02:12:04.000Z
2020-03-01T06:33:21.000Z
plotly/tests/test_optional/test_matplotlylib/test_annotations.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
null
null
null
plotly/tests/test_optional/test_matplotlylib/test_annotations.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
5
2019-05-18T16:50:11.000Z
2021-07-06T21:14:36.000Z
from __future__ import absolute_import from nose.plugins.attrib import attr from plotly import optional_imports matplotlylib = optional_imports.get_module('plotly.matplotlylib') if matplotlylib: import matplotlib.pyplot as plt from plotly.tests.utils import compare_dict, strip_dict_params from plotly.t...
38.051282
91
0.660377
201c7a85a56073efd32b9e7af9fb2915e49255e4
6,931
py
Python
fsspec/mapping.py
dish59742/filesystem_spec
87e5ca57fd8be7b636451d4237fe47f6e764fa79
[ "BSD-3-Clause" ]
null
null
null
fsspec/mapping.py
dish59742/filesystem_spec
87e5ca57fd8be7b636451d4237fe47f6e764fa79
[ "BSD-3-Clause" ]
null
null
null
fsspec/mapping.py
dish59742/filesystem_spec
87e5ca57fd8be7b636451d4237fe47f6e764fa79
[ "BSD-3-Clause" ]
null
null
null
import array from collections.abc import MutableMapping from .core import url_to_fs class FSMap(MutableMapping): """Wrap a FileSystem instance as a mutable wrapping. The keys of the mapping become files under the given root, and the values (which must be bytes) the contents of those files. Paramete...
32.38785
88
0.585918
ca572be730a66c69bdc5de1c91f06db112478c19
454
py
Python
server/src/common/utils/db.py
TaitoUnited/data-pipeline-template
dc002482c24388b9d49ced9ea47be6068ff69fe0
[ "MIT" ]
null
null
null
server/src/common/utils/db.py
TaitoUnited/data-pipeline-template
dc002482c24388b9d49ced9ea47be6068ff69fe0
[ "MIT" ]
null
null
null
server/src/common/utils/db.py
TaitoUnited/data-pipeline-template
dc002482c24388b9d49ced9ea47be6068ff69fe0
[ "MIT" ]
null
null
null
import re from .misc import propertyExists def add_paging(query, params): q = query if propertyExists(params, "offset"): q += "OFFSET %(offset)s " if propertyExists(params, "limit"): q += "LIMIT %(limit)s " return q def generate_count_query(query): return ( re.sub(r"SE...
19.73913
62
0.577093
ebb098633adcb6d2e79d6f7c17484faa07ab013e
7,484
py
Python
gui/qt/utxo_list.py
rc125/electrum-smart
f1afe5ced0ec458db2e5bcd45e2a771cd5f2682b
[ "MIT" ]
null
null
null
gui/qt/utxo_list.py
rc125/electrum-smart
f1afe5ced0ec458db2e5bcd45e2a771cd5f2682b
[ "MIT" ]
null
null
null
gui/qt/utxo_list.py
rc125/electrum-smart
f1afe5ced0ec458db2e5bcd45e2a771cd5f2682b
[ "MIT" ]
3
2017-12-15T04:51:06.000Z
2019-06-19T23:48:29.000Z
#!/usr/bin/env python # # Electrum - Lightweight SmartCash Client # Copyright (C) 2015 Thomas Voegtlin # # 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 witho...
50.911565
138
0.639097
e7b7c70c25651e71823fb8e6317cd4d202eaa031
3,632
py
Python
RDRPOSTagger_python_3/pSCRDRtagger/ExtRDRPOSTagger.py
jirian/text_summarizer_czech
45be8ca8cd62b467a46e63421fd92a02f896e056
[ "MIT" ]
2
2019-06-29T02:13:35.000Z
2019-08-22T08:00:17.000Z
RDRPOSTagger_python_3/pSCRDRtagger/ExtRDRPOSTagger.py
jirian/text_summarizer_czech
45be8ca8cd62b467a46e63421fd92a02f896e056
[ "MIT" ]
null
null
null
RDRPOSTagger_python_3/pSCRDRtagger/ExtRDRPOSTagger.py
jirian/text_summarizer_czech
45be8ca8cd62b467a46e63421fd92a02f896e056
[ "MIT" ]
2
2020-02-23T18:22:25.000Z
2022-02-11T19:00:10.000Z
# -*- coding: utf-8 -*- import os import sys os.chdir("../") sys.setrecursionlimit(100000) sys.path.append(os.path.abspath("")) os.chdir("./pSCRDRtagger") from multiprocessing import Pool from SCRDRlearner.Object import FWObject, getWordTag from SCRDRlearner.SCRDRTree import SCRDRTree from SCRDRlearner.SCRDRTreeLearn...
41.272727
148
0.622247
b1b18b0d32362bbc1d0c1126fbe7d3d526df6d7c
423
py
Python
tests/utils/pytest_wrapper.py
Bukkster/fiftyone
c061216de5094131c8ce8718d8a6ac58056b003e
[ "Apache-2.0" ]
3
2022-01-18T06:13:33.000Z
2022-02-14T13:28:23.000Z
tests/utils/pytest_wrapper.py
Bukkster/fiftyone
c061216de5094131c8ce8718d8a6ac58056b003e
[ "Apache-2.0" ]
null
null
null
tests/utils/pytest_wrapper.py
Bukkster/fiftyone
c061216de5094131c8ce8718d8a6ac58056b003e
[ "Apache-2.0" ]
null
null
null
""" Wrapper around pytest that cleans up subprocesses. | Copyright 2017-2022, Voxel51, Inc. | `voxel51.com <https://voxel51.com/>`_ | """ import sys import psutil import pytest try: code = pytest.main(sys.argv[1:]) finally: for child in reversed(psutil.Process().children(recursive=True)): try: ...
16.92
69
0.621749
4299f7dad5cdc60f34ef7e2535f6f0429718908e
263
py
Python
bookbug/bookbug/items.py
Hegelim/Web-Crawler
37ffe6ffe8c713cc1d51517a60f19f8d1584f68d
[ "MIT" ]
null
null
null
bookbug/bookbug/items.py
Hegelim/Web-Crawler
37ffe6ffe8c713cc1d51517a60f19f8d1584f68d
[ "MIT" ]
null
null
null
bookbug/bookbug/items.py
Hegelim/Web-Crawler
37ffe6ffe8c713cc1d51517a60f19f8d1584f68d
[ "MIT" ]
null
null
null
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class BookbugItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass
20.230769
53
0.714829
4e07edef1d6b0cc1b982c73229ed7fafcd4d11df
714
py
Python
tests/preprocessing/test_act.py
d-e-h-i-o/bachelor_thesis
64bc5fb2c65621f7a8265bade0328d3f8c950ff3
[ "MIT" ]
1
2021-12-20T12:56:32.000Z
2021-12-20T12:56:32.000Z
tests/preprocessing/test_act.py
DFKI-NLP/covid19-law-matching
c704a926977ef5f7fd4867125a2e79f352efd163
[ "MIT" ]
null
null
null
tests/preprocessing/test_act.py
DFKI-NLP/covid19-law-matching
c704a926977ef5f7fd4867125a2e79f352efd163
[ "MIT" ]
1
2021-11-24T11:21:33.000Z
2021-11-24T11:21:33.000Z
from datetime import date from training.preprocessing.datasets_.models import Act def test_act_from_file_constructor(): file_path = "tests/fixtures/InfSchMV_fixture.json" act = Act.from_file(file_path) assert act def test_act_should_return_valid_sections(): file_path = "tests/fixtures/InfSchMV_fixt...
25.5
55
0.753501
d9f981402e8de91212ebce6b98bc25a64941315b
4,135
py
Python
httprunner/cli.py
hewei198711/httprunner2.5.7
fb4ca1abd9c50b3cef288adf29cce3217c7d8e91
[ "Apache-2.0" ]
null
null
null
httprunner/cli.py
hewei198711/httprunner2.5.7
fb4ca1abd9c50b3cef288adf29cce3217c7d8e91
[ "Apache-2.0" ]
null
null
null
httprunner/cli.py
hewei198711/httprunner2.5.7
fb4ca1abd9c50b3cef288adf29cce3217c7d8e91
[ "Apache-2.0" ]
null
null
null
import argparse import os import sys import sentry_sdk from httprunner import __description__, __version__, exceptions from httprunner.api import HttpRunner from httprunner.compat import is_py2 from httprunner.loader import load_cases from httprunner.logger import color_print, log_error from httprunner.report import ...
32.054264
105
0.629988
cb701c42c57d30ed4f95db7aab3c9b22364fc8bf
18,489
py
Python
tensorflow/contrib/slim/python/slim/nets/resnet_v1_test.py
zhaojunz/tensorflow
d1415bdc03fcdb090752ab0c91ee529dc09eb4ee
[ "Apache-2.0" ]
44
2017-01-26T11:39:36.000Z
2019-06-28T10:03:19.000Z
tensorflow/contrib/slim/python/slim/nets/resnet_v1_test.py
zhaojunz/tensorflow
d1415bdc03fcdb090752ab0c91ee529dc09eb4ee
[ "Apache-2.0" ]
5
2017-05-22T08:07:52.000Z
2019-02-25T12:09:16.000Z
tensorflow/contrib/slim/python/slim/nets/resnet_v1_test.py
zhaojunz/tensorflow
d1415bdc03fcdb090752ab0c91ee529dc09eb4ee
[ "Apache-2.0" ]
10
2017-03-27T04:15:07.000Z
2018-07-09T15:03:03.000Z
# Copyright 2016 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...
41.548315
80
0.645303
00cceee81b0c1adf85d9d683a0823717e6e8bfa1
3,717
py
Python
tests/TestSettings.py
tinfins/CMSC495-Group-3
0b7ea3c885322631d6dd3ef7ee96b6a98ba2392e
[ "MIT" ]
1
2021-02-11T01:18:08.000Z
2021-02-11T01:18:08.000Z
tests/TestSettings.py
tinfins/CMSC495-Group-3
0b7ea3c885322631d6dd3ef7ee96b6a98ba2392e
[ "MIT" ]
1
2021-01-28T00:03:15.000Z
2021-01-28T00:03:15.000Z
tests/TestSettings.py
tinfins/CMSC495-Group-3
0b7ea3c885322631d6dd3ef7ee96b6a98ba2392e
[ "MIT" ]
3
2021-02-13T22:45:14.000Z
2021-02-16T02:57:11.000Z
import logging.config import unittest import os from functools import partial # Modules to Test from src.utils.Settings import Settings class TestSettings(unittest.TestCase): @classmethod def tag(cls, *tags): ''' Decorator to add tags to a test class or method. ''' def decora...
34.100917
117
0.580038
10baf258033e616ca38d79e581b96c4a10a6279f
1,792
py
Python
openpype/hosts/hiero/plugins/publish_old_workflow/collect_assetbuilds.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
1
2022-02-08T15:40:41.000Z
2022-02-08T15:40:41.000Z
openpype/hosts/hiero/plugins/publish_old_workflow/collect_assetbuilds.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
2
2022-03-18T01:46:03.000Z
2022-03-18T01:46:16.000Z
openpype/hosts/hiero/plugins/publish_old_workflow/collect_assetbuilds.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
from pyblish import api from openpype.pipeline import legacy_io class CollectAssetBuilds(api.ContextPlugin): """Collect asset from tags. Tag is expected to have name of the asset and metadata: { "family": "assetbuild" } """ # Run just after CollectClip order = api.Col...
29.866667
73
0.501674
5daf773439d112d29adc5c4e0da4e2a756e40e3e
712
py
Python
qa/rpc-tests/create_cache.py
fransengelmann/luckyblockcoin
3244ec21fe8dc6045adbfa2c51aa2455d5e3d066
[ "MIT" ]
null
null
null
qa/rpc-tests/create_cache.py
fransengelmann/luckyblockcoin
3244ec21fe8dc6045adbfa2c51aa2455d5e3d066
[ "MIT" ]
null
null
null
qa/rpc-tests/create_cache.py
fransengelmann/luckyblockcoin
3244ec21fe8dc6045adbfa2c51aa2455d5e3d066
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Helper script to create the cache # (see LuckyblockcoinTestFramework.setup_chain) # from test_framework.t...
23.733333
69
0.707865
d19ceaf757131bc1116a8beddc4979e81538d839
22,950
py
Python
google/cloud/sql/connector/instance_connection_manager.py
anukaal/cloud-sql-python-connector
e8799c7de46dbe11a91a9a29173a5cfd279a561d
[ "Apache-2.0" ]
77
2019-06-25T15:40:43.000Z
2022-03-25T09:45:41.000Z
google/cloud/sql/connector/instance_connection_manager.py
anukaal/cloud-sql-python-connector
e8799c7de46dbe11a91a9a29173a5cfd279a561d
[ "Apache-2.0" ]
93
2019-06-27T20:24:21.000Z
2022-03-30T14:16:17.000Z
google/cloud/sql/connector/instance_connection_manager.py
anukaal/cloud-sql-python-connector
e8799c7de46dbe11a91a9a29173a5cfd279a561d
[ "Apache-2.0" ]
26
2019-07-18T15:18:51.000Z
2022-01-27T11:39:01.000Z
""" Copyright 2019 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
34.407796
104
0.635512
8e34466781b839c43bac2ddfd3d3351f249e0102
2,469
py
Python
sample_data_utils/money.py
movermeyer/sample-data-utils
769f1b46e60def2675a14bd5872047af6d1ea398
[ "BSD-3-Clause" ]
null
null
null
sample_data_utils/money.py
movermeyer/sample-data-utils
769f1b46e60def2675a14bd5872047af6d1ea398
[ "BSD-3-Clause" ]
null
null
null
sample_data_utils/money.py
movermeyer/sample-data-utils
769f1b46e60def2675a14bd5872047af6d1ea398
[ "BSD-3-Clause" ]
1
2018-03-04T21:50:08.000Z
2018-03-04T21:50:08.000Z
# -*- coding: utf-8 -*- import decimal from random import choice, uniform import sys def amount(min=1, max=sys.maxsize, decimal_places=2): """ return a random floating number :param min: minimum value :param max: maximum value :param decimal_places: decimal places :return: """ q =...
57.418605
117
0.437424
4ea755566f4de07b196ae22c0207920676c72f35
6,498
py
Python
130_html_to_csv/300_mkcsv_x_race_t.py
takobouzu/BOAT_RACE_DB
f16ed8f55aef567c0ecc6ebd3ad0e917f5c600d8
[ "MIT" ]
6
2020-12-23T01:06:04.000Z
2022-01-12T10:18:36.000Z
130_html_to_csv/300_mkcsv_x_race_t.py
takobouzu/BOAT_RACE_DB
f16ed8f55aef567c0ecc6ebd3ad0e917f5c600d8
[ "MIT" ]
15
2021-03-02T05:59:24.000Z
2021-09-12T08:12:38.000Z
130_html_to_csv/300_mkcsv_x_race_t.py
takobouzu/BOAT_RACE_DB
f16ed8f55aef567c0ecc6ebd3ad0e917f5c600d8
[ "MIT" ]
1
2021-05-09T10:47:21.000Z
2021-05-09T10:47:21.000Z
''' 【システム】BOAT_RACE_DB2 【ファイル】200_mkcsv_x_race_t.py 【機能仕様】本日レース一覧HTMLファイルから出走表タイトルテーブル「x_race_t」のインポートCSVファイルを作成する 【動作環境】macOS 11.1/Raspbian OS 10.4/python 3.9.1/sqlite3 3.32.3 【来  歴】2021.02.01 ver 1.00 ''' import os import datetime from bs4 import BeautifulSoup #インストールディレクトの定義 BASE_DIR = '/home/pi/BOAT_RACE_DB' ''' 【...
51.571429
274
0.48338
6d58700c2be3f57535016d7cf591721294c60fb1
6,988
py
Python
clients/kratos/python/ory_kratos_client/model/plugin_config_user.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/ory_kratos_client/model/plugin_config_user.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/ory_kratos_client/model/plugin_config_user.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
40.865497
446
0.592444
2cf7b13ce2f872670f0b4985feb3781cbe24e421
762
py
Python
tests/urls.py
bartonip/django-cached-fields
ffe1b15a4e12592dfabdc05611c64ab14cbf938d
[ "MIT" ]
null
null
null
tests/urls.py
bartonip/django-cached-fields
ffe1b15a4e12592dfabdc05611c64ab14cbf938d
[ "MIT" ]
null
null
null
tests/urls.py
bartonip/django-cached-fields
ffe1b15a4e12592dfabdc05611c64ab14cbf938d
[ "MIT" ]
null
null
null
"""jests URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
34.636364
79
0.703412
a98c4cd25aeb4340cb09b22a68e484669c39c57b
2,321
py
Python
gis_csdt/migrations/0003_auto_20180806_1629.py
kathleentully/gis_csdt
0ce5295cff73a4b438dbadfd4ceb3d7e75ffd0a4
[ "BSD-3-Clause" ]
1
2019-09-18T04:03:55.000Z
2019-09-18T04:03:55.000Z
gis_csdt/migrations/0003_auto_20180806_1629.py
kathleentully/gis_csdt
0ce5295cff73a4b438dbadfd4ceb3d7e75ffd0a4
[ "BSD-3-Clause" ]
162
2018-02-02T21:22:38.000Z
2022-03-23T20:51:26.000Z
gis_csdt/migrations/0003_auto_20180806_1629.py
kathleentully/gis_csdt
0ce5295cff73a4b438dbadfd4ceb3d7e75ffd0a4
[ "BSD-3-Clause" ]
6
2016-07-25T14:17:50.000Z
2017-08-14T05:05:44.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-08-06 20:29 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depend...
35.166667
137
0.595433
0fa894e1b520a483e9832cbdcce2f3cd2c0b7812
1,802
py
Python
data/p4VQE/R4/benchmark/startCirq412.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startCirq412.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startCirq412.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=12 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
28.15625
77
0.691454
dd3863043f2e468da09b07287632819bc96c0a85
16,112
py
Python
cogs/economy.py
tukib/snakebot
5620a34d3faed1da7d5c5fe2698faa56923b0f44
[ "MIT" ]
null
null
null
cogs/economy.py
tukib/snakebot
5620a34d3faed1da7d5c5fe2698faa56923b0f44
[ "MIT" ]
null
null
null
cogs/economy.py
tukib/snakebot
5620a34d3faed1da7d5c5fe2698faa56923b0f44
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import orjson import random import cogs.utils.database as DB class Card: def __init__(self, suit, name, value): self.suit = suit self.name = name self.value = value class Deck: def __init__(self): suits = { ...
32.353414
89
0.506827
48c22cbe22834c95de402ed76eb8205fcf6b319b
95,946
py
Python
llvmlite/tests/test_ir.py
jhuapl-saralab/llvmlite
00320f6fdf35bfb080717c2977edf2c38e6341fe
[ "BSD-2-Clause" ]
4
2022-02-26T04:31:16.000Z
2022-03-03T21:26:54.000Z
lo-fi-machine/processing/package/llvmlite/tests/test_ir.py
rochelletham/lo-tify
910c62d0ec14bc5a7aaa4f7dca80c0ca14c4c060
[ "MIT" ]
1
2021-05-06T18:25:20.000Z
2021-05-09T10:28:14.000Z
lo-fi-machine/processing/package/llvmlite/tests/test_ir.py
rochelletham/lo-tify
910c62d0ec14bc5a7aaa4f7dca80c0ca14c4c060
[ "MIT" ]
1
2022-02-03T09:38:16.000Z
2022-02-03T09:38:16.000Z
""" IR Construction Tests """ import copy import itertools import pickle import re import textwrap import unittest from . import TestCase from llvmlite import ir from llvmlite import binding as llvm int1 = ir.IntType(1) int8 = ir.IntType(8) int16 = ir.IntType(16) int32 = ir.IntType(32) int64 = ir.IntType(64) hlf = ...
38.813107
193
0.532497
fdf5888549d2ca6199e243b2913bf9f33bf8d970
1,721
py
Python
lte/gateway/python/magma/policydb/rule_store.py
Aitend/magma
74fe7b437335728219dfbe54733955bdd652eb60
[ "BSD-3-Clause" ]
849
2020-07-17T09:15:03.000Z
2022-03-31T17:11:52.000Z
lte/gateway/python/magma/policydb/rule_store.py
Aitend/magma
74fe7b437335728219dfbe54733955bdd652eb60
[ "BSD-3-Clause" ]
8,386
2020-06-23T23:35:30.000Z
2022-03-31T23:31:28.000Z
lte/gateway/python/magma/policydb/rule_store.py
Aitend/magma
74fe7b437335728219dfbe54733955bdd652eb60
[ "BSD-3-Clause" ]
406
2020-06-28T17:02:35.000Z
2022-03-31T22:03:55.000Z
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
33.745098
81
0.724579
a32cbbc4cb0847db1cabebb2f4b3fa3940a4c65c
1,122
py
Python
alipay/aop/api/response/AlipaySocialAntforestPlantConsultResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipaySocialAntforestPlantConsultResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipaySocialAntforestPlantConsultResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipaySocialAntforestPlantConsultResponse(AlipayResponse): def __init__(self): super(AlipaySocialAntforestPlantConsultResponse, self).__init__() self._current_energy ...
31.166667
114
0.722816
bcb5a6cf1edade1e6847f156ea4a5a8d407e0154
39,766
py
Python
python/dgl/convert.py
qibinc/dgl
4aafe2d9368a55705ccd6a960aa5f581e486b225
[ "Apache-2.0" ]
null
null
null
python/dgl/convert.py
qibinc/dgl
4aafe2d9368a55705ccd6a960aa5f581e486b225
[ "Apache-2.0" ]
null
null
null
python/dgl/convert.py
qibinc/dgl
4aafe2d9368a55705ccd6a960aa5f581e486b225
[ "Apache-2.0" ]
2
2019-12-13T13:45:16.000Z
2019-12-20T03:30:08.000Z
"""Module for converting graph from/to other object.""" from collections import defaultdict import numpy as np import scipy as sp import networkx as nx from . import backend as F from . import heterograph_index from .heterograph import DGLHeteroGraph, combine_frames from . import graph_index from . import utils from ....
38.682879
96
0.608786
10b529de97d39871333ed0603d47ed77d1aa9876
3,207
py
Python
generated-libraries/python/netapp/clock/__init__.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/clock/__init__.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/clock/__init__.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.connection import NaConnection from o_timezone import OTimezone # 0 properties class ClockConnection(NaConnection): def clock_set_timezone(self, timezone): """ Set current timezone to the specified timezone. :param timezone: Name of the timezone value which has to ...
42.76
107
0.568756
57ced62a12dc27102896518c4c69b5b7296bf9b9
17,766
py
Python
code/insert/insert_views.py
GGGGFan/CS564-Course-Project-A-Database-Management-System-for-Electronic-Health-Records-in-ICU
11ae6c67e761a87c0584c6ef7278cb93ec708748
[ "Apache-2.0" ]
null
null
null
code/insert/insert_views.py
GGGGFan/CS564-Course-Project-A-Database-Management-System-for-Electronic-Health-Records-in-ICU
11ae6c67e761a87c0584c6ef7278cb93ec708748
[ "Apache-2.0" ]
null
null
null
code/insert/insert_views.py
GGGGFan/CS564-Course-Project-A-Database-Management-System-for-Electronic-Health-Records-in-ICU
11ae6c67e761a87c0584c6ef7278cb93ec708748
[ "Apache-2.0" ]
null
null
null
import random from django.shortcuts import render from django.db import connection from django.contrib import messages from django.http import HttpResponseRedirect import json import sys sys.path.append('../query') from query.models import Stay, Patients # This the function django use to guide the page to insert.html ...
39.744966
173
0.591861
d4a2758b58b260ec4a18b8c5fcd45760dd7b1bd9
13,931
py
Python
exopy/measurement/plugin.py
rassouly/exopy
fa5497208b99f7a3474f0e14824a6cf6ab825dea
[ "BSD-3-Clause" ]
16
2018-03-20T09:06:23.000Z
2021-09-08T18:46:15.000Z
exopy/measurement/plugin.py
rassouly/exopy
fa5497208b99f7a3474f0e14824a6cf6ab825dea
[ "BSD-3-Clause" ]
118
2015-05-13T07:50:04.000Z
2018-02-14T17:37:20.000Z
exopy/measurement/plugin.py
rassouly/exopy
fa5497208b99f7a3474f0e14824a6cf6ab825dea
[ "BSD-3-Clause" ]
11
2018-03-02T11:17:26.000Z
2021-06-23T22:25:40.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2015-2018 by Exopy Authors, see AUTHORS for more details. # # Distributed under the terms of the BSD license. # # The full license is in the file LICENCE, distributed with this software. # ---------------...
35.812339
88
0.585529
919aa3b1b41c0b06cf93f36c92d22e17f84015e4
584
py
Python
setup.py
thomasdotred/lusid-jam
af35ff20617444e17a9f36529a38cb8ec75c40f3
[ "MIT" ]
null
null
null
setup.py
thomasdotred/lusid-jam
af35ff20617444e17a9f36529a38cb8ec75c40f3
[ "MIT" ]
2
2019-12-05T09:17:54.000Z
2021-03-01T02:29:09.000Z
setup.py
thomasdotred/lusid-jam
af35ff20617444e17a9f36529a38cb8ec75c40f3
[ "MIT" ]
2
2020-01-16T09:50:18.000Z
2021-03-01T02:27:02.000Z
from setuptools import setup, find_packages # noqa: H301 version = {} with open("./__version__.py") as fp: exec(fp.read(), version) setup( name="lusid-jam", version=version["__version__"], description="Jupyter Access Token Management for LUSID", url="https://github.com/finbourne/lusid-jam", a...
30.736842
60
0.681507
1beda86082811c0d40a507106820f8e3523da6ed
7,325
py
Python
pwnlib/util/proc.py
Ngugisenior/pwntools
c15afc592a94a5fd4c1255d2ce0137be38164a66
[ "MIT" ]
null
null
null
pwnlib/util/proc.py
Ngugisenior/pwntools
c15afc592a94a5fd4c1255d2ce0137be38164a66
[ "MIT" ]
null
null
null
pwnlib/util/proc.py
Ngugisenior/pwntools
c15afc592a94a5fd4c1255d2ce0137be38164a66
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division import errno import socket import time import psutil from pwnlib import tubes from pwnlib.log import getLogger log = getLogger(__name__) all_pids = psutil.pids def pidof(target): """pidof(target) -> int list Get PID(s) of `target`. T...
23.782468
140
0.566689
e56764642920341d732a20aa668f60ee624965be
782
py
Python
graphgallery/transforms/edge_transform/add_selfloops_edge.py
Sharpiless/GraphGallery
5e8895cc2ca2fc06a31bfc58bc3b7a52e1ceddd0
[ "MIT" ]
1
2020-11-22T10:14:58.000Z
2020-11-22T10:14:58.000Z
graphgallery/transforms/edge_transform/add_selfloops_edge.py
mengliu1998/GraphGallery
025ac09e883f3e1e1b02000e086830c935884a6e
[ "MIT" ]
null
null
null
graphgallery/transforms/edge_transform/add_selfloops_edge.py
mengliu1998/GraphGallery
025ac09e883f3e1e1b02000e086830c935884a6e
[ "MIT" ]
1
2020-11-22T10:14:59.000Z
2020-11-22T10:14:59.000Z
import numpy as np from graphgallery import floatx from graphgallery.transforms import edge_transpose def add_selfloops_edge(edge_index, edge_weight, n_nodes=None, fill_weight=1.0): edge_index = edge_transpose(edge_index) if n_nodes is None: n_nodes = edge_index.max() + 1 if edge_wei...
32.583333
98
0.735294
dc72f845ed3ceb9066086fd8a1e63790612886a8
52,825
py
Python
mintapi/api.py
wsmoak/mintapi
ac56323bbb124fcc7dbd923b024f2e7ecf9ffa11
[ "MIT" ]
1
2020-06-30T01:15:55.000Z
2020-06-30T01:15:55.000Z
mintapi/api.py
wsmoak/mintapi
ac56323bbb124fcc7dbd923b024f2e7ecf9ffa11
[ "MIT" ]
null
null
null
mintapi/api.py
wsmoak/mintapi
ac56323bbb124fcc7dbd923b024f2e7ecf9ffa11
[ "MIT" ]
null
null
null
import atexit from datetime import date, datetime, timedelta import io import json import logging import os import os.path import random import re import requests import subprocess from sys import platform as _platform import time import zipfile import imaplib import email import email.header import sys # DEBUG import...
36.992297
139
0.590043
9ffe657bc54fe89b67bf4325f249b5b02d613629
11,343
py
Python
njunmt/tests/rnn_encoder_test.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
111
2017-12-29T12:48:02.000Z
2022-03-15T00:47:13.000Z
njunmt/tests/rnn_encoder_test.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
3
2018-01-27T13:54:42.000Z
2020-03-02T03:07:19.000Z
njunmt/tests/rnn_encoder_test.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
44
2017-12-29T12:49:57.000Z
2022-02-02T13:25:28.000Z
import numpy import tensorflow as tf from njunmt.encoders import rnn_encoder from tensorflow.python.util import nest def build_inputs(batch_size, max_len, dim): x = numpy.random.random(size=(batch_size, max_len, dim)) x_len = numpy.random.randint(low=1, high=max_len, size=(batch_size,)) return tf.convert_...
49.103896
103
0.649916
20fe8fcbaa0032916461e767258654c9622b4152
210
py
Python
aio_nacos/__init__.py
zqsc/aio-nacos
c1bb8fda5adb498eb509a3d66f9a39c4dc69e58b
[ "MIT" ]
2
2022-01-10T06:35:48.000Z
2022-02-26T11:03:27.000Z
aio_nacos/__init__.py
zqsc/aio-nacos
c1bb8fda5adb498eb509a3d66f9a39c4dc69e58b
[ "MIT" ]
null
null
null
aio_nacos/__init__.py
zqsc/aio-nacos
c1bb8fda5adb498eb509a3d66f9a39c4dc69e58b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- """ @File : __init__.py.py @Author : zqsc @Time : 2021/12/14 @Contact : zhao_zqsc@sina.com @Python Version : 3.8.5 """ from .aio_nacos import *
16.153846
32
0.590476
65d0ccff8198792ebe6a7106bf713e7fce8c1a83
7,631
py
Python
Mandalorion.py
rvolden/Mandalorion
1100967616e6ccf39703c69ab4d2f0458df1e6a3
[ "MIT" ]
7
2018-09-19T01:55:13.000Z
2022-02-14T12:06:27.000Z
Mandalorion.py
rvolden/Mandalorion
1100967616e6ccf39703c69ab4d2f0458df1e6a3
[ "MIT" ]
5
2021-01-15T17:15:59.000Z
2021-06-30T10:39:59.000Z
Mandalorion.py
rvolden/Mandalorion
1100967616e6ccf39703c69ab4d2f0458df1e6a3
[ "MIT" ]
1
2021-05-21T02:11:13.000Z
2021-05-21T02:11:13.000Z
#!/usr/bin/env python3 # Christopher Vollmers # Roger Volden import sys import os import argparse VERSION = 'v3.5.0' parser = argparse.ArgumentParser() parser.add_argument( '-c', '--config_file', type=str, help='''Tab delimited file that specifies where minimap, blat, emtrey, and racon executable...
31.92887
89
0.65627
2122cf607412033e39a90b1b0be6e52cad9b173f
249
py
Python
cogs/error/quiet_warning.py
DenverCoder1/dev-pro-tips-bot
1d36a6514f7573800c687759ca63bb5a0d786816
[ "MIT" ]
13
2021-09-14T20:37:36.000Z
2022-02-12T11:41:37.000Z
modules/error/quiet_warning.py
DenverCoder1/jct-discord-bot
e4b1df71d96a4127be27e40c9aa41dbb50c3379c
[ "MIT" ]
124
2021-01-06T13:29:55.000Z
2022-03-25T14:18:59.000Z
cogs/error/quiet_warning.py
DenverCoder1/dev-pro-tips-bot
1d36a6514f7573800c687759ca63bb5a0d786816
[ "MIT" ]
6
2021-11-21T19:39:12.000Z
2022-03-13T02:02:41.000Z
from typing import Optional class QuietWarning(Exception): """ An error type that will be logged quietly in the log file. """ def __init__( self, msg: str, inner: Optional[Exception] = None, ): self.inner = inner super().__init__(msg)
17.785714
59
0.694779
551d6ae242f75afa9ac89a9f75632d1caf2e0741
818,542
py
Python
fn_aws_iam/fn_aws_iam/util/customize.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
fn_aws_iam/fn_aws_iam/util/customize.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
fn_aws_iam/fn_aws_iam/util/customize.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
# -*- coding: utf-8 -*- """Generate the Resilient customizations required for fn_aws_iam""" from __future__ import print_function from resilient_circuits.util import * def codegen_reload_data(): """Parameters to codegen used to generate the fn_aws_iam package""" reload_params = {"package": u"fn_aws_iam", ...
76.743109
962
0.98229
8ae499146fce8d87bceaacf86dbf9c0b8b127590
5,988
py
Python
sopel/logger.py
xnaas/sopel
005a53452fdd96dde1dd266b1587d67170665317
[ "EFL-2.0" ]
null
null
null
sopel/logger.py
xnaas/sopel
005a53452fdd96dde1dd266b1587d67170665317
[ "EFL-2.0" ]
null
null
null
sopel/logger.py
xnaas/sopel
005a53452fdd96dde1dd266b1587d67170665317
[ "EFL-2.0" ]
null
null
null
# coding=utf-8 from __future__ import absolute_import, division, print_function, unicode_literals import logging from logging.config import dictConfig import os from sopel import tools class IrcLoggingHandler(logging.Handler): """Logging handler for output to an IRC channel. :param bot: a Sopel instance ...
33.082873
82
0.548263
1dc30d05c88823129edad05d013821f23b432069
22,222
py
Python
src/test/regress/maketestschedule.py
Oliver-Luo/incubator-hawq
195909207313d802a110666c76187cefab96d09c
[ "Apache-2.0" ]
null
null
null
src/test/regress/maketestschedule.py
Oliver-Luo/incubator-hawq
195909207313d802a110666c76187cefab96d09c
[ "Apache-2.0" ]
null
null
null
src/test/regress/maketestschedule.py
Oliver-Luo/incubator-hawq
195909207313d802a110666c76187cefab96d09c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Given a set of tests on the command line (comma separated), builds a schedule and emits it to stdout # # Special tokens: # # # Note: if you add a new test with dependencies, update with a new call to add_edge # # Note: we could force drop.sql to be run after all others? But I think using kn...
43.744094
138
0.606021
859c1d5ebe81ac425cc790fcb0729ccab084b96e
37
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/Python_Variables_case-sensitive.txt.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
5
2021-06-02T23:44:25.000Z
2021-12-27T16:21:57.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/Python_Variables_case-sensitive.txt.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
22
2021-05-31T01:33:25.000Z
2021-10-18T18:32:39.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/Python_Variables_case-sensitive.txt.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
3
2021-06-19T03:37:47.000Z
2021-08-31T00:49:51.000Z
a = 4 A = "Sally" print(a) print(A)
6.166667
11
0.540541
ee271e4de8642eed6ee3c4428de640aa0caeb589
2,446
py
Python
swain_edward_project3.py
dreadnaught-ETES/school
9faa2b6379db8f819872b8597896f5291812c5d6
[ "CC0-1.0" ]
null
null
null
swain_edward_project3.py
dreadnaught-ETES/school
9faa2b6379db8f819872b8597896f5291812c5d6
[ "CC0-1.0" ]
null
null
null
swain_edward_project3.py
dreadnaught-ETES/school
9faa2b6379db8f819872b8597896f5291812c5d6
[ "CC0-1.0" ]
null
null
null
import random wordlist='aquarius','aquatic','amused','acerbic','alien','alienate','bemused','mischief','holistic','manual','malnourished','misdemeanor','felony','discharge','disembowel','echelon','epilepsy','pestilent','vestibule','dazed','contrary' word=random.choice(wordlist) name=input("Please tell me your name, ...
44.472727
236
0.582584
c0a4dbe712703e4e6258533c4d99175a691d3cab
5,381
py
Python
h1/models/quota.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
h1/models/quota.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
h1/models/quota.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
# coding: utf-8 """ HyperOne HyperOne API # noqa: E501 The version of the OpenAPI document: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from h1.configuration import Configuration class Quota(object): """NOTE: This class is auto ge...
23.915556
125
0.532615
277562a8e12075033a13855aeff72bb3427d0d5b
666
py
Python
tests/raylab/policy/modules/test_ddpg.py
angelolovatto/raylab
ebaea8df1a391fb844e75df62ccf1e2e07311d88
[ "MIT" ]
29
2020-05-05T13:25:33.000Z
2022-01-03T14:12:29.000Z
tests/raylab/policy/modules/test_ddpg.py
angelolovatto/raylab
ebaea8df1a391fb844e75df62ccf1e2e07311d88
[ "MIT" ]
215
2019-11-26T12:59:39.000Z
2022-02-01T12:38:31.000Z
tests/raylab/policy/modules/test_ddpg.py
angelolovatto/raylab
ebaea8df1a391fb844e75df62ccf1e2e07311d88
[ "MIT" ]
7
2020-06-12T01:42:02.000Z
2021-05-27T03:40:42.000Z
import pytest import torch from torch import nn from raylab.policy.modules.ddpg import DDPG @pytest.fixture def spec_cls(): return DDPG.spec_cls @pytest.fixture def module(obs_space, action_space, spec_cls): return DDPG(obs_space, action_space, spec_cls()) def test_spec(spec_cls): default_config = sp...
19.588235
77
0.726727
e43de4663f79a811dd8a6c5a7e032ac0b1760493
6,070
py
Python
kubernetes/client/models/v1alpha1_rule.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1alpha1_rule.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1alpha1_rule.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.12.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
33.169399
499
0.606096
1b42bd85c612bdea9bd7bfa637d041c6dbfdbcec
1,615
py
Python
data/imgs/figures/first_level_atc_distribution.py
LucaMenestrina/SARS-CoV-2_Networker
733eb8e4cf4fcfad06b7776067e5a87e9ee92ddb
[ "MIT" ]
1
2022-03-17T11:57:49.000Z
2022-03-17T11:57:49.000Z
data/imgs/figures/first_level_atc_distribution.py
LucaMenestrina/COVIDrugNet
6d9ec09dd362c584fccec10adfd37780300eb8ae
[ "MIT" ]
null
null
null
data/imgs/figures/first_level_atc_distribution.py
LucaMenestrina/COVIDrugNet
6d9ec09dd362c584fccec10adfd37780300eb8ae
[ "MIT" ]
null
null
null
import networkx as nx import matplotlib.pyplot as plt from matplotlib.colors import rgb2hex import numpy as np import pickle def draw_ATC_barchart(file): graph=nx.read_gpickle("../../graphs/drug_projection/drug_projection.gpickle") ATC_dict=dict(nx.get_node_attributes(graph,"ATC Code Level 1")) all_atc=["A...
48.939394
180
0.685449
d32f9652554d00340d4fa3dfe08b3db8ad639000
2,696
py
Python
qiime2/core/type/collection.py
misialq/qiime2
6d8932eda130d4a9356f977fece2e252c135d0b9
[ "BSD-3-Clause" ]
334
2016-04-30T16:29:29.000Z
2022-03-17T19:44:13.000Z
qiime2/core/type/collection.py
misialq/qiime2
6d8932eda130d4a9356f977fece2e252c135d0b9
[ "BSD-3-Clause" ]
454
2016-04-29T22:40:14.000Z
2022-03-30T17:18:16.000Z
qiime2/core/type/collection.py
misialq/qiime2
6d8932eda130d4a9356f977fece2e252c135d0b9
[ "BSD-3-Clause" ]
203
2016-05-11T22:25:08.000Z
2022-03-30T17:27:39.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2021, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
26.693069
79
0.621662
e5fbc471a30199099b72c07659df7bd1b4d79345
6,917
py
Python
tests/simulation_tests/test_wake_table_and_monitors.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
tests/simulation_tests/test_wake_table_and_monitors.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
tests/simulation_tests/test_wake_table_and_monitors.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
import os import pathlib import h5py import numpy as np from scipy.constants import c, e from scipy.stats import linregress from scipy.signal import hilbert from LHC import LHC from PyHEADTAIL.particles.slicing import UniformBinSlicer from PyHEADTAIL.impedances.wakes import WakeTable, WakeField from PyHEADTAIL.feedba...
34.758794
94
0.616019
f14b615471ccc57f947f68a1a8f45e3229f35531
33,725
py
Python
pandas/io/json/json.py
ivary43/pandas
46adc5b1c2aacb312d72729af72bc0ad600917c0
[ "BSD-3-Clause" ]
null
null
null
pandas/io/json/json.py
ivary43/pandas
46adc5b1c2aacb312d72729af72bc0ad600917c0
[ "BSD-3-Clause" ]
null
null
null
pandas/io/json/json.py
ivary43/pandas
46adc5b1c2aacb312d72729af72bc0ad600917c0
[ "BSD-3-Clause" ]
1
2020-11-05T13:46:01.000Z
2020-11-05T13:46:01.000Z
from io import StringIO from itertools import islice import os import numpy as np import pandas._libs.json as json from pandas._libs.tslibs import iNaT from pandas.errors import AbstractMethodError from pandas.core.dtypes.common import ensure_str, is_period_dtype from pandas import DataFrame, MultiIndex, Series, is...
34.875905
94
0.572009
e60a4fe3bd3095e49bd4927a0fdabae3ee8d1a3f
974
py
Python
sdk/python/pulumi_azure_native/elastic/__init__.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/elastic/__init__.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/elastic/__init__.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from .. import _utilities import typing # Export this package's modules as members: from ._enums import * from .get_monitor import * from .get_tag_rule...
33.586207
93
0.783368
4374bcc8f510774bc67075e7fcd6c701dfb6236c
6,302
py
Python
truck.py
therealr5/TruckSimulatorBot
c14c640401d4b45f7218ab9a460867e33f223ab4
[ "MIT" ]
2
2021-09-01T22:22:21.000Z
2021-09-03T09:53:08.000Z
truck.py
therealr5/TruckSimulatorBot
c14c640401d4b45f7218ab9a460867e33f223ab4
[ "MIT" ]
1
2022-02-14T16:59:57.000Z
2022-02-14T16:59:57.000Z
truck.py
therealr5/TruckSimulatorBot
c14c640401d4b45f7218ab9a460867e33f223ab4
[ "MIT" ]
4
2021-06-22T20:39:03.000Z
2022-02-11T15:24:58.000Z
""" This module contains the Cog for all truck-related commands """ from math import log import discord from discord.ext import commands from discord_slash import cog_ext from discord_slash.utils.manage_commands import create_choice, create_option import resources.players as players import resources.trucks as trucks i...
38.193939
146
0.625992
7c798b155d7c1ca996056fca271ae048182a91e2
5,663
py
Python
filebeat/tests/system/test_ml.py
IzekChen/beats
0e52267c104181eb4c4422a4d939f68c9e994ced
[ "ECL-2.0", "Apache-2.0" ]
26
2017-11-08T09:13:21.000Z
2020-12-14T06:08:53.000Z
filebeat/tests/system/test_ml.py
IzekChen/beats
0e52267c104181eb4c4422a4d939f68c9e994ced
[ "ECL-2.0", "Apache-2.0" ]
5
2017-09-05T03:49:06.000Z
2020-01-02T13:07:10.000Z
filebeat/tests/system/test_ml.py
IzekChen/beats
0e52267c104181eb4c4422a4d939f68c9e994ced
[ "ECL-2.0", "Apache-2.0" ]
12
2018-03-26T07:56:47.000Z
2021-02-06T19:21:24.000Z
from filebeat import BaseTest from beat.beat import INTEGRATION_TESTS import os import unittest import shutil import subprocess from elasticsearch import Elasticsearch import logging from parameterized import parameterized class Test(BaseTest): def init(self): self.elasticsearch_url = self.get_elasticsea...
39.880282
141
0.560833
eccc3e243e9efdb42c0e03960585ed4c4bbe389f
4,471
py
Python
desktop/core/ext-py/dnspython-1.15.0/tests/test_wiredata.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/dnspython-1.15.0/tests/test_wiredata.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/dnspython-1.15.0/tests/test_wiredata.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# Copyright (C) 2016 # Author: Martin Basti <martin.basti@gmail.com> # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. try: im...
35.204724
71
0.631179
26f265c76287c360ad13ee3f744daeab745e3e19
1,275
py
Python
tests/test_visitors/test_ast/test_complexity/test_counts/test_module_counts.py
AlwxSin/wemake-python-styleguide
467f5a8804bcce67aa8ce1ee5c7e2494b530eea7
[ "MIT" ]
null
null
null
tests/test_visitors/test_ast/test_complexity/test_counts/test_module_counts.py
AlwxSin/wemake-python-styleguide
467f5a8804bcce67aa8ce1ee5c7e2494b530eea7
[ "MIT" ]
null
null
null
tests/test_visitors/test_ast/test_complexity/test_counts/test_module_counts.py
AlwxSin/wemake-python-styleguide
467f5a8804bcce67aa8ce1ee5c7e2494b530eea7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.complexity.counts import ( ModuleMembersVisitor, TooManyModuleMembersViolation, ) module_with_function_and_class = """ def first(): ... class Second(object): ... """ module_with_methods = """ class First(object): def metho...
22.767857
69
0.724706
980fe17adb6a7147c35c77ff04f465abece6c2fa
695
py
Python
aiogram/types/shipping_query.py
muhammedfurkan/aiogram
692c1340b4dda556da640e5f9ea2200848c06840
[ "MIT" ]
null
null
null
aiogram/types/shipping_query.py
muhammedfurkan/aiogram
692c1340b4dda556da640e5f9ea2200848c06840
[ "MIT" ]
4
2020-11-04T15:55:55.000Z
2020-11-08T21:36:02.000Z
aiogram/types/shipping_query.py
muhammedfurkan/aiogram
692c1340b4dda556da640e5f9ea2200848c06840
[ "MIT" ]
null
null
null
from . import base, fields from .shipping_address import ShippingAddress from .user import User class ShippingQuery(base.TelegramObject): """ This object contains information about an incoming shipping query. https://core.telegram.org/bots/api#shippingquery """ id: base.String = fields.Field() ...
27.8
74
0.689209
c94b47fa71b403e0ea12fd1af78288a8c9aa94bc
845
py
Python
git/client.py
laincloud/Console
9d4fb68ad5378279697803ca45a4eda58d72d9a3
[ "MIT" ]
11
2016-05-04T11:55:01.000Z
2018-09-29T01:00:05.000Z
git/client.py
laincloud/Console
9d4fb68ad5378279697803ca45a4eda58d72d9a3
[ "MIT" ]
21
2016-05-25T06:54:44.000Z
2019-06-06T00:38:38.000Z
git/client.py
laincloud/Console
9d4fb68ad5378279697803ca45a4eda58d72d9a3
[ "MIT" ]
16
2016-05-13T08:20:43.000Z
2021-12-31T09:23:14.000Z
# coding:utf-8 import time import requests from commons.settings import GITLAB_TOKEN from gitlab import GitLabApi from util import parse_giturl SUPPORT_GIT_TYPE = {'gitlab': GitLabApi(GITLAB_TOKEN)} TIMEFORMAT_ISO8601 = '%Y-%m-%dT%H:%M:%S%z' def fetch_project_commits(giturl, from_timestamp, until_timestamp=None)...
29.137931
88
0.733728
176b0df46711b9a79ec6667e3b32f1932c64d574
18,675
py
Python
firefly_cli/_version.py
darnir/firefly-cli
2c6e5a917135efd3b3f6e7cf6bae989457d9b0c1
[ "Apache-2.0" ]
null
null
null
firefly_cli/_version.py
darnir/firefly-cli
2c6e5a917135efd3b3f6e7cf6bae989457d9b0c1
[ "Apache-2.0" ]
null
null
null
firefly_cli/_version.py
darnir/firefly-cli
2c6e5a917135efd3b3f6e7cf6bae989457d9b0c1
[ "Apache-2.0" ]
null
null
null
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
35.503802
79
0.585703
a91a5c412d545e14a2400bae93c664b791cb6ad7
2,617
py
Python
src/compas_blender/__init__.py
9and3/compas
02c5a76adeb55696206d2194a8167e4085415891
[ "MIT" ]
null
null
null
src/compas_blender/__init__.py
9and3/compas
02c5a76adeb55696206d2194a8167e4085415891
[ "MIT" ]
null
null
null
src/compas_blender/__init__.py
9and3/compas
02c5a76adeb55696206d2194a8167e4085415891
[ "MIT" ]
null
null
null
""" ******************************************************************************** compas_blender ******************************************************************************** .. currentmodule:: compas_blender .. toctree:: :maxdepth: 1 compas_blender.artists compas_blender.conversions compas_ble...
26.434343
105
0.655713
36dc94b478b69c557002bf0d5cf67387ece1b73a
7,192
py
Python
data_preprocessing.py
PatriceC/MLProjectISDP2020
64e83824690ccde2714d915c70fb00b20aa66a42
[ "MIT" ]
1
2021-01-23T01:04:00.000Z
2021-01-23T01:04:00.000Z
data_preprocessing.py
cor3ntino/Time-Series-Prediction-with-Deep-Learning-for-Road-Trafic-Data
e8eefdf2e630a53e09f88550357b67732f2bccd0
[ "MIT" ]
null
null
null
data_preprocessing.py
cor3ntino/Time-Series-Prediction-with-Deep-Learning-for-Road-Trafic-Data
e8eefdf2e630a53e09f88550357b67732f2bccd0
[ "MIT" ]
1
2021-01-19T16:57:27.000Z
2021-01-19T16:57:27.000Z
# -*- coding: utf-8 -*- """ Created on Fri Nov 27 19:01:58 2020 @author: Patrice CHANOL & Corentin MORVAN--CHAUMEIL """ import pandas as pd import numpy as np import torch import random def series(date, latitude, longitude, direction, input_window, output_window, data): """ Series selection. Paramete...
43.065868
222
0.665879
f34c6600883586788ba6f33f8afe72d852ee9893
2,212
py
Python
src/radio.py
uSasha/spotify_radio
d01ec9b5dbc37329ebe1c63dcb085a326f8285e1
[ "MIT" ]
null
null
null
src/radio.py
uSasha/spotify_radio
d01ec9b5dbc37329ebe1c63dcb085a326f8285e1
[ "MIT" ]
null
null
null
src/radio.py
uSasha/spotify_radio
d01ec9b5dbc37329ebe1c63dcb085a326f8285e1
[ "MIT" ]
1
2021-08-03T11:49:27.000Z
2021-08-03T11:49:27.000Z
import random from typing import List, Dict, Union from src import config from src.spotify_client import SpotifyClient from vectorizer import Vectorizer class Radio: """ Radio which can find available stations and provide next tracks according to listening history. """ def __init__(self) -> None: ...
36.866667
120
0.63698