hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
03da37db79d2946287b7603f25769ad5fbf749c7
3,847
py
Python
RELEASE_ScaleNet_minimal/maskrcnn_rui/data/transforms/transforms.py
Jerrypiglet/scalenet
6a5db480e650d10d1e575e93b6cee366d1912c8a
[ "Adobe-2006", "Adobe-Glyph" ]
33
2020-08-27T09:06:19.000Z
2022-03-10T02:27:31.000Z
RELEASE_ScaleNet_minimal/maskrcnn_rui/data/transforms/transforms.py
Jerrypiglet/scalenet
6a5db480e650d10d1e575e93b6cee366d1912c8a
[ "Adobe-2006", "Adobe-Glyph" ]
2
2020-12-28T04:41:55.000Z
2021-04-07T06:03:36.000Z
RELEASE_ScaleNet_minimal/maskrcnn_rui/data/transforms/transforms.py
Jerrypiglet/scalenet
6a5db480e650d10d1e575e93b6cee366d1912c8a
[ "Adobe-2006", "Adobe-Glyph" ]
5
2020-12-22T03:02:35.000Z
2021-12-08T09:46:01.000Z
[]# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import random import torch import torchvision from torchvision.transforms import functional as F class Compose(object): def __init__(self, transforms): self.transforms = transforms def __call__(self, image, target=None): ...
28.924812
83
0.567195
03da40ca52b18498d3bb6d386faee2f3052292fa
20,665
py
Python
flask_user/forms.py
brunoresende1991/mult
e62e949a021db92ca74a9023423724ab26b583d7
[ "BSD-2-Clause" ]
5
2019-07-09T13:48:18.000Z
2021-05-04T19:19:25.000Z
flask_user/forms.py
brunoresende1991/mult
e62e949a021db92ca74a9023423724ab26b583d7
[ "BSD-2-Clause" ]
null
null
null
flask_user/forms.py
brunoresende1991/mult
e62e949a021db92ca74a9023423724ab26b583d7
[ "BSD-2-Clause" ]
2
2020-07-10T15:06:05.000Z
2020-09-08T15:52:51.000Z
""" This file defines and validates Flask-User forms. Forms are based on the WTForms module. :copyright: (c) 2013 by Ling Thio :author: Ling Thio (ling.thio@gmail.com) :license: Simplified BSD License, see LICENSE.txt for more details.""" import string from flask import current_app from flask_login import...
36.127622
93
0.641519
03da4a25af0439a2837f912912a06e461c86237c
66,823
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/api/scheduling_v1alpha1_api.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/api/scheduling_v1alpha1_api.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/api/scheduling_v1alpha1_api.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401...
69.174948
1,390
0.698667
03da4d779bad0f231ca469a65b9ae78d3ec1b7c0
799
py
Python
alipay/aop/api/response/AlipayEbppCommunityNoticePublishResponse.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/AlipayEbppCommunityNoticePublishResponse.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/AlipayEbppCommunityNoticePublishResponse.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 AlipayEbppCommunityNoticePublishResponse(AlipayResponse): def __init__(self): super(AlipayEbppCommunityNoticePublishResponse, self).__init__() self._alipay_notice_id ...
30.730769
113
0.744681
03da7e737bb8ce064c67a69472f14a7e554d386c
7,913
py
Python
alipay/aop/api/domain/PurchaseApplyInfoDTO.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/domain/PurchaseApplyInfoDTO.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/domain/PurchaseApplyInfoDTO.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.constant.ParamConstants import * class PurchaseApplyInfoDTO(object): def __init__(self): self._account_code = None self._begin_cycle = None self._biz_budget_apply_code = None self._biz_budget_id = None ...
31.525896
93
0.58625
03daa2411c5bcca39d83410bc9f55b440a6631bb
3,478
py
Python
torchkbnufft/math.py
chaithyagr/torchkbnufft
3592175fe2d1f611fb2cfec4d4150a850c92605f
[ "MIT" ]
null
null
null
torchkbnufft/math.py
chaithyagr/torchkbnufft
3592175fe2d1f611fb2cfec4d4150a850c92605f
[ "MIT" ]
null
null
null
torchkbnufft/math.py
chaithyagr/torchkbnufft
3592175fe2d1f611fb2cfec4d4150a850c92605f
[ "MIT" ]
null
null
null
import torch def complex_mult(a, b, dim=0): """Complex multiplication, real/imag are in dimension dim. Args: a (tensor): A tensor where dimension dim is the complex dimension. b (tensor): A tensor where dimension dim is the complex dimension. dim (int): An integer indicating the compl...
27.385827
83
0.624784
03daf2849247ca413c2b228e183a0d4f549af4f1
30,448
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_run_commands_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_run_commands_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_run_commands_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.924585
281
0.670717
03daf4569452be987ac703a3326be87fa14fbf70
608
py
Python
libkloudtrader/enumerables.py
KloudTrader/libkloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
11
2019-01-16T16:10:09.000Z
2021-03-02T00:59:17.000Z
libkloudtrader/enumerables.py
KloudTrader/kloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
425
2019-07-10T06:59:49.000Z
2021-01-12T05:32:14.000Z
libkloudtrader/enumerables.py
KloudTrader/kloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
6
2019-03-15T16:25:06.000Z
2021-05-03T10:02:13.000Z
from enum import Enum from functools import partial import libkloudtrader.stocks as stocks import libkloudtrader.crypto as crypto import libkloudtrader.options as options class Data_Types(Enum): '''Data Types of backtesting and live trading''' US_STOCKS_ohlcv = partial(stocks.ohlcv) US_STOCKS_times_and_sa...
35.764706
79
0.819079
03daf95bcbc5ae2d23fd46d4997297951f91d7c8
4,979
py
Python
PyQuante/LA2.py
certik/pyquante
f5cae27f519b1c1b70afbebfe8b5c83cb4b3c2a6
[ "DOC" ]
null
null
null
PyQuante/LA2.py
certik/pyquante
f5cae27f519b1c1b70afbebfe8b5c83cb4b3c2a6
[ "DOC" ]
null
null
null
PyQuante/LA2.py
certik/pyquante
f5cae27f519b1c1b70afbebfe8b5c83cb4b3c2a6
[ "DOC" ]
1
2022-01-07T19:20:27.000Z
2022-01-07T19:20:27.000Z
"""\ LA2.py: Simple additions to numpy.linalg linear algebra library This program is part of the PyQuante quantum chemistry program suite. Copyright (c) 2004, Richard P. Muller. All Rights Reserved. PyQuante version 1.2 and later is covered by the modified BSD license. Please see the file LICENSE that is part ...
30.925466
98
0.641093
03db3f132b64aefa0bd8b5049c48bcb888de9c9b
4,374
py
Python
thonny/plugins/micropython/serial_connection.py
codemee/thonny
51f99e6afbd0af0faf9aa509263c7e884b9da2db
[ "MIT" ]
1
2020-01-24T18:15:24.000Z
2020-01-24T18:15:24.000Z
thonny/plugins/micropython/serial_connection.py
mlogotheti/thonny
a715f144b093a0f3289e9a21fef5f4ef18c2b01b
[ "MIT" ]
null
null
null
thonny/plugins/micropython/serial_connection.py
mlogotheti/thonny
a715f144b093a0f3289e9a21fef5f4ef18c2b01b
[ "MIT" ]
null
null
null
import serial from thonny.plugins.micropython.connection import MicroPythonConnection, ConnectionFailedException import threading import time from serial.serialutil import SerialException import logging import platform import sys from textwrap import dedent class SerialConnection(MicroPythonConnection): def __ini...
35.852459
98
0.535894
03db57a3b0d73ddf7cfbcb066afc9639f66c42b8
607
py
Python
setup.py
jesbu1/gym-minigrid
fd799f90bcd88d5418dcb074140e65862d44f064
[ "Apache-2.0" ]
null
null
null
setup.py
jesbu1/gym-minigrid
fd799f90bcd88d5418dcb074140e65862d44f064
[ "Apache-2.0" ]
null
null
null
setup.py
jesbu1/gym-minigrid
fd799f90bcd88d5418dcb074140e65862d44f064
[ "Apache-2.0" ]
null
null
null
from setuptools import setup setup( name='gym_minigrid', version='1.0.1', keywords='memory, environment, agent, rl, openaigym, openai-gym, gym', url='https://github.com/maximecb/gym-minigrid', description='Minimalistic gridworld package for OpenAI Gym', packages=['gym_minigrid', 'gym_minigrid.e...
25.291667
74
0.565074
03db59fe01e6707a8df0c676313256fe43a087b1
1,962
py
Python
alipay/aop/api/domain/AlipaySocialBaseFileUrlGetModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipaySocialBaseFileUrlGetModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipaySocialBaseFileUrlGetModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipaySocialBaseFileUrlGetModel(object): def __init__(self): self._file_id = None self._source_format = None self._target_format = None @property def file_id(self...
27.633803
77
0.603466
03db6c6e5c7050175f233bc461867175768e5db0
7,630
py
Python
models/nn/ir_se_model.py
Gwiths/seeking-the-shape-of-sound
c9a7c68c66459f86e4885ba0b9a0d4a397510c0f
[ "MIT" ]
12
2021-05-19T11:00:01.000Z
2022-02-06T15:47:34.000Z
models/nn/ir_se_model.py
Gwiths/seeking-the-shape-of-sound
c9a7c68c66459f86e4885ba0b9a0d4a397510c0f
[ "MIT" ]
2
2021-07-04T08:36:13.000Z
2021-11-05T09:40:52.000Z
models/nn/ir_se_model.py
Gwiths/seeking-the-shape-of-sound
c9a7c68c66459f86e4885ba0b9a0d4a397510c0f
[ "MIT" ]
3
2021-05-19T11:06:10.000Z
2021-09-11T11:47:08.000Z
import torch import torch.nn as nn from torch.nn import Linear, Conv2d, BatchNorm1d, BatchNorm2d, PReLU, ReLU, Sigmoid, Dropout, MaxPool2d, \ AdaptiveAvgPool2d, Sequential, Module from collections import namedtuple # Support: ['IR_50', 'IR_101', 'IR_152', 'IR_SE_50', 'IR_SE_101', 'IR_SE_152'] class Flatten(Modu...
31.528926
112
0.559633
03db980da7fa4576858a57a9f56bd86318a69060
3,718
py
Python
tests/cartpole.py
jwarley/hcpi
c2f9b305fd21cd2e5cb375acc5b4f8d445432a66
[ "MIT" ]
null
null
null
tests/cartpole.py
jwarley/hcpi
c2f9b305fd21cd2e5cb375acc5b4f8d445432a66
[ "MIT" ]
null
null
null
tests/cartpole.py
jwarley/hcpi
c2f9b305fd21cd2e5cb375acc5b4f8d445432a66
[ "MIT" ]
1
2020-12-08T23:39:34.000Z
2020-12-08T23:39:34.000Z
from policies import FourierPolicy from agents import FCHC import gym import numpy as np import csv # Create the environment env = gym.make('CartPole-v0') # Specify how to normalize the states. def cp_normalize(obs): """ Normalize the features of a cartpole state state observation to the interval [0, 1] ...
35.75
95
0.588219
03db9fed0b5db146c628f95e0f51d0f2182447a9
393
py
Python
b2sdk/v1/sync/__init__.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
b2sdk/v1/sync/__init__.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
b2sdk/v1/sync/__init__.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
###################################################################### # # File: b2sdk/v1/sync/__init__.py # # Copyright 2021 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### from .folder import * from ...
26.2
70
0.475827
03dbb4f5419ccd0a6fe41b4ed3adec9879932693
8,829
py
Python
modules/useful.py
gkvong/Discord-Bot
eb55d23d1812c14d4edb8158d0b560273dbcc8f8
[ "MIT" ]
null
null
null
modules/useful.py
gkvong/Discord-Bot
eb55d23d1812c14d4edb8158d0b560273dbcc8f8
[ "MIT" ]
null
null
null
modules/useful.py
gkvong/Discord-Bot
eb55d23d1812c14d4edb8158d0b560273dbcc8f8
[ "MIT" ]
null
null
null
"""This module contains useful commands""" import discord from discord.ext import commands import os import asyncio import json import requests from translate import Translator import wikipedia # Load environment variables from .env from dotenv import load_dotenv load_dotenv() API_KEY = os.getenv('weatherapp_id') cl...
42.447115
190
0.550006
03dbd1e1101cfc774f6e84904c819e51f702b998
20,151
py
Python
JDjango/frames/mainFrame/gui.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
3
2020-12-28T05:09:02.000Z
2021-06-23T10:02:03.000Z
JDjango/frames/mainFrame/gui.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
JDjango/frames/mainFrame/gui.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
from .basedata import * """ 作用:布局 """ class MainFrameGUI(wx.Frame, BaseData): def __init__(self, parent = None): BaseData.__init__(self) wx.Frame.__init__(self, parent, -1, title = CON_JDJANGO_TITLE, pos = wx.DefaultPosition, size = wx.Size(1000, 580), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TR...
38.976789
172
0.627463
03dbd815f0bdbec0338c294aaa89d48abbf8ecfc
317
py
Python
examples/spectrum.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
examples/spectrum.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
examples/spectrum.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
from kaplot import * import pymedia interval = 0.01 #interval = 0.1 x = arange(0, 4.+interval/2, interval) x = arange(0, 1, interval) y = 1+sin(x*2*pi) + sin(x*30*2*pi) + sin(x*10*2*pi) #y = 0.1+sin(x *2.5 * 2 * pi) b = box() #plot(x, y) ftspectrum(y, T=interval) b.grow(1.1) b.xinterval = 10 b.xinteger = True draw()
21.133333
51
0.624606
03dc24473f615e42b00e39b87669c88a150a641b
399
py
Python
man_in_west.py
adriennekarnoski/code-katas
c90c51780174110d6292b57248b77723db6ad6ac
[ "MIT" ]
null
null
null
man_in_west.py
adriennekarnoski/code-katas
c90c51780174110d6292b57248b77723db6ad6ac
[ "MIT" ]
null
null
null
man_in_west.py
adriennekarnoski/code-katas
c90c51780174110d6292b57248b77723db6ad6ac
[ "MIT" ]
null
null
null
"""Man in the west Check if there is gold in the bucket, and if so, return True/true. If not, return False/false #1 Best Practices Solution by smile67 (plus 106 more warriors): def check_the_bucket(bucket): return 'gold' in bucket """ def check_the_bucket(bucket): """checks bucket, returns true or false."...
19.95
63
0.676692
03dc4c42d45f1d36a2ec8cf50d79988fffe52fc7
3,911
py
Python
inria-aerial-image-labeling/model.py
tanguy-magne/ritm_interactive_segmentation
53e55253a1ff879f370525bdbddf026402a19ff9
[ "MIT" ]
null
null
null
inria-aerial-image-labeling/model.py
tanguy-magne/ritm_interactive_segmentation
53e55253a1ff879f370525bdbddf026402a19ff9
[ "MIT" ]
null
null
null
inria-aerial-image-labeling/model.py
tanguy-magne/ritm_interactive_segmentation
53e55253a1ff879f370525bdbddf026402a19ff9
[ "MIT" ]
null
null
null
""" INCLUDE ONLY, DO NOT EXECUTE """ from settings import * import numpy as np import tensorflow as tf import segmentation_models as sm def create_model(border=False, trainable_encoder=False): if model_type == 'unet': model = sm.Unet(backbone_name=backbone, input_shape=(image_size,...
37.247619
72
0.541294
03dc5ab5d5b606a49a7a749f49025975baa94ca2
6,313
py
Python
scanners/zap-advanced/scanner/tests/test_integration_docker_local.py
watchmen-coder/secureCodeBox
ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d
[ "Apache-2.0" ]
1
2021-05-24T08:17:48.000Z
2021-05-24T08:17:48.000Z
scanners/zap-advanced/scanner/tests/test_integration_docker_local.py
watchmen-coder/secureCodeBox
ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d
[ "Apache-2.0" ]
null
null
null
scanners/zap-advanced/scanner/tests/test_integration_docker_local.py
watchmen-coder/secureCodeBox
ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # SPDX-FileCopyrightText: 2021 iteratec GmbH # # SPDX-License-Identifier: Apache-2.0 # -*- coding: utf-8 -*- import os import pytest import requests import logging import pytest from zapv2 import ZAPv2 from requests.exceptions import ConnectionError from zapclient.zap_automation import ZapAut...
32.709845
99
0.720418
03dc98906472c0307b1521b464f5a2cf86143dc4
6,615
py
Python
mojacoder/005/gen.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
mojacoder/005/gen.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
mojacoder/005/gen.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
import glob import os import random import shutil import subprocess import sys from collections import defaultdict input = sys.stdin.readline random.seed(777) testdir = "./ax-by-zc/testcases" def cleen(): subprocess.run(f"rm {testdir}/*/*.txt", shell=True, cwd=os.curdir) subprocess.run(f"rm -r test/", shell...
35.374332
73
0.578534
03dca39834304c4bde9648a6278d3da4cc437f61
294
py
Python
competitive_coding/hackerrank/w24/xor_matrix.py
5aurabhpathak/src
dda72beba2aaae67542a2f10e89048e86d04cb28
[ "BSD-3-Clause" ]
1
2021-07-07T06:51:18.000Z
2021-07-07T06:51:18.000Z
competitive_coding/hackerrank/w24/xor_matrix.py
5aurabhpathak/all-I-ve-done
dda72beba2aaae67542a2f10e89048e86d04cb28
[ "BSD-3-Clause" ]
null
null
null
competitive_coding/hackerrank/w24/xor_matrix.py
5aurabhpathak/all-I-ve-done
dda72beba2aaae67542a2f10e89048e86d04cb28
[ "BSD-3-Clause" ]
1
2020-08-11T09:53:22.000Z
2020-08-11T09:53:22.000Z
n, m = map(int, input().strip().split()) a = list(map(int, input().strip().split())) def pattern(a, i): if i == m-1: return a x = 1 while i + (x << 1) <= m-1: x <<= 1 return pattern([a[j]^a[(j+x)%n] for j in range(n)], i + x) for x in pattern(a, 0): print(x, end=' ') print()
24.5
62
0.506803
03dcba7386079e9f5184bb538509cb84df90d746
1,197
py
Python
algorithms/high_scores/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
algorithms/high_scores/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
algorithms/high_scores/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
class HighScores(object): def __init__(self, scores): self.scores = scores def latest(self): """ Gets the latest score :return: latest score :rtype: int """ return self.scores[-1] def personal_best(self): """ Returns the best score in...
29.195122
79
0.58396
03dcd60832de4ef8eb8ebb15eed1134433526db9
2,895
py
Python
tests/test_coverity.py
melexis/warnings-plugin
6f821f5c82c2cdf37988d28e651646e1452faf43
[ "Apache-2.0" ]
7
2017-04-21T12:05:23.000Z
2019-12-12T13:37:07.000Z
tests/test_coverity.py
melexis/warnings-plugin
6f821f5c82c2cdf37988d28e651646e1452faf43
[ "Apache-2.0" ]
100
2017-04-24T10:50:33.000Z
2022-02-18T10:39:42.000Z
tests/test_coverity.py
melexis/warnings-plugin
6f821f5c82c2cdf37988d28e651646e1452faf43
[ "Apache-2.0" ]
2
2017-05-23T11:50:59.000Z
2019-11-06T09:26:33.000Z
from io import StringIO from unittest import TestCase from unittest.mock import patch from mlx.warnings import WarningsPlugin class TestCoverityWarnings(TestCase): def setUp(self): self.warnings = WarningsPlugin(verbose=True) self.warnings.activate_checker_name('coverity') def ...
57.9
196
0.683938
03dce1d1b4c44c4cea631ebce329c412706cceaa
4,976
py
Python
jirasync/conf/settings.py
flopezag/fiware-cef
530678b013dc31c943346d578cb03e669e80ee79
[ "Apache-2.0" ]
null
null
null
jirasync/conf/settings.py
flopezag/fiware-cef
530678b013dc31c943346d578cb03e669e80ee79
[ "Apache-2.0" ]
null
null
null
jirasync/conf/settings.py
flopezag/fiware-cef
530678b013dc31c943346d578cb03e669e80ee79
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ## # Copyright 2018 FIWARE Foundation, e.V. # 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.apach...
36.588235
120
0.668006
03dcfa9aa9c5adac043b9a59007a9d6e3d5973f2
65,777
py
Python
appengine/findit/services/test/event_reporting_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/services/test/event_reporting_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/services/test/event_reporting_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 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 datetime import mock from google.protobuf import timestamp_pb2 from libs import analysis_status from libs import time_util from model import suspecte...
36.481974
80
0.621251
03dd7d0cd340d95bdefa6faec314f616937aa4c4
5,155
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/compute/backend_services/client.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/compute/backend_services/client.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/compute/backend_services/client.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
37.904412
79
0.669253
03dd7e0378d63d46870b960e2314748a7d4a4d93
729
py
Python
src/datamodel/__init__.py
rcasteran/jarvis4se
17a276c7c2b831ca6efdb279d38624b54c0246e8
[ "MIT" ]
4
2022-02-17T15:41:40.000Z
2022-03-25T09:00:08.000Z
src/datamodel/__init__.py
rcasteran/jarvis4se
17a276c7c2b831ca6efdb279d38624b54c0246e8
[ "MIT" ]
13
2022-02-17T10:54:13.000Z
2022-03-28T08:05:06.000Z
src/datamodel/__init__.py
rcasteran/jarvis4se
17a276c7c2b831ca6efdb279d38624b54c0246e8
[ "MIT" ]
1
2022-03-03T16:42:33.000Z
2022-03-03T16:42:33.000Z
from .datamodel import FunctionType from .datamodel import Function from .datamodel import SystemElementType from .datamodel import Element from .datamodel import Interface from .datamodel import DataType from .datamodel import Data from .datamodel import State from .datamodel import StateType from .datamodel import Tr...
33.136364
44
0.855967
03dda5e6c4f1efefec6161626384ca13984e1016
733
py
Python
plugins/_helper.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
1
2020-10-29T15:44:57.000Z
2020-10-29T15:44:57.000Z
plugins/_helper.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
null
null
null
plugins/_helper.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
4
2020-10-28T09:02:35.000Z
2020-12-27T22:45:57.000Z
from . import bot, bot2, bot3, bot4, helper, pika_sudo # ____Sudo____ if bot: @bot.on(pika_sudo(from_client=1, pattern=r"help ?(.*)")) async def _(event): await helper(event) if bot2: @bot2.on(pika_sudo(from_client=2, pattern=r"help ?(.*)")) async def _(event): await h...
19.289474
62
0.59618
03ddaa9e1075bf7ea164eea75d2dd89c1fe1c62c
2,987
py
Python
src/morphforge/morphology/conversion/region_to_int_bimap.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforge/morphology/conversion/region_to_int_bimap.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforge/morphology/conversion/region_to_int_bimap.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
39.302632
81
0.694342
03ddbd2dd17aaf6d7e39ee798e0f4c74ed318232
2,534
py
Python
helpers/plotter.py
sebastianwindeck/AML_Task5
cf261827bb28604f44a1f8ce8212c0711910b5a7
[ "Apache-2.0" ]
null
null
null
helpers/plotter.py
sebastianwindeck/AML_Task5
cf261827bb28604f44a1f8ce8212c0711910b5a7
[ "Apache-2.0" ]
null
null
null
helpers/plotter.py
sebastianwindeck/AML_Task5
cf261827bb28604f44a1f8ce8212c0711910b5a7
[ "Apache-2.0" ]
null
null
null
import numpy as np import itertools import matplotlib.pyplot as plt from sklearn.metrics import confusion_matrix def _plot_confusion_matrix(cm, classes, normalize=False, title='Confusion matrix', cmap=plt.cm.Blues): """ This functio...
30.53012
74
0.571823
03ddc234088de450992c3cdf703517fca3085aa0
6,029
py
Python
Barbican/Server/barbican-stable-mitaka/barbican/barbican/plugin/util/translations.py
cloud-security-research/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
36
2017-11-08T23:36:35.000Z
2022-03-20T16:01:55.000Z
Barbican/Server/barbican-stable-mitaka/barbican/barbican/plugin/util/translations.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
2
2017-11-17T03:19:17.000Z
2018-07-04T03:37:36.000Z
Barbican/Server/barbican-stable-mitaka/barbican/barbican/plugin/util/translations.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
12
2017-11-13T03:20:40.000Z
2021-07-16T03:26:41.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...
35.25731
77
0.726986
03ddefd83c5d00e2ae5691ed07e37af37c24bba9
7,225
py
Python
asposewordscloud/models/requests/update_paragraph_format_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/requests/update_paragraph_format_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/requests/update_paragraph_format_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="update_paragraph_format_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtainin...
48.817568
255
0.662976
03ddf65dfce436e5dc44d081d64ff906915ce07b
1,994
py
Python
day7/test_day7.py
bwbeach/advent-of-code-2020
572810c3adae5815543efde17a4bca9596d05a5b
[ "CC0-1.0" ]
null
null
null
day7/test_day7.py
bwbeach/advent-of-code-2020
572810c3adae5815543efde17a4bca9596d05a5b
[ "CC0-1.0" ]
null
null
null
day7/test_day7.py
bwbeach/advent-of-code-2020
572810c3adae5815543efde17a4bca9596d05a5b
[ "CC0-1.0" ]
null
null
null
"""Day 7 of Advent of Code, 2020""" from day7.day7 import count_contents, find_all_holders, invert_mapping, parse_line LINE_1 = "light red bags contain 1 bright white bag, 2 muted yellow bags." LINE_2 = "bright white bags contain 1 shiny gold bag." LINE_3 = "faded blue bags contain no other bags." def test_parse_li...
33.233333
86
0.692076
03de02b3c78dfdd00e281661b471489a4e633fd0
2,744
py
Python
vyperlogix/sf/magma/leadSourceData.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/sf/magma/leadSourceData.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/sf/magma/leadSourceData.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
import os, sys, traceback, re from vyperlogix import misc from vyperlogix.hash import lists from vyperlogix.misc import _utils from vyperlogix.misc import ObjectTypeName try: from cStringIO import StringIO as StringIO except: from StringIO import StringIO as StringIO from vyperlogix.sf.abstract import SalesF...
39.2
200
0.762391
03de10ae9b58d8418b659753f3012bd15e740b00
28,985
py
Python
scripts/ilap_artifacts.py
hyuunnn/ALEAPP
5e167eb7262ad81f7eaaadb20767ff4ccaca2202
[ "MIT" ]
null
null
null
scripts/ilap_artifacts.py
hyuunnn/ALEAPP
5e167eb7262ad81f7eaaadb20767ff4ccaca2202
[ "MIT" ]
null
null
null
scripts/ilap_artifacts.py
hyuunnn/ALEAPP
5e167eb7262ad81f7eaaadb20767ff4ccaca2202
[ "MIT" ]
null
null
null
# To add a new artifact module, import it here as shown below: # from scripts.artifacts.fruitninja import get_fruitninja # Also add the grep search for that module using the same name # to the 'tosearch' data structure. import traceback from scripts.artifacts.accounts_ce import get_accounts_ce from scripts.artifa...
75.678851
376
0.763774
03de15d88c77ad1b8de31703f42def4f55b19f32
1,306
py
Python
tests/parallel/parallel_tree_nodes.py
ytree-project/ytree
4ba1d3e6efd1e647c594b2c0de51b0217de7a45c
[ "BSD-3-Clause-Clear" ]
3
2020-02-28T10:25:39.000Z
2021-04-13T07:18:35.000Z
tests/parallel/parallel_tree_nodes.py
ytree-project/ytree
4ba1d3e6efd1e647c594b2c0de51b0217de7a45c
[ "BSD-3-Clause-Clear" ]
36
2019-12-03T17:33:29.000Z
2022-02-18T10:39:25.000Z
tests/parallel/parallel_tree_nodes.py
ytree-project/ytree
4ba1d3e6efd1e647c594b2c0de51b0217de7a45c
[ "BSD-3-Clause-Clear" ]
6
2019-08-22T16:01:34.000Z
2020-08-25T09:57:17.000Z
""" parallel_tree_nodes test script """ #----------------------------------------------------------------------------- # Copyright (c) ytree development team. All rights reserved. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this soft...
25.115385
90
0.542113
03de29e1be346f4b3dbecb66e3dbb55ae661d72b
812
py
Python
venv/lib/python2.7/site-packages/py2neo/cypher/error/network.py
KairosSystems/drMouse
f98d04084eb1210db88df4c9888eea149ae31b2c
[ "MIT" ]
9
2017-07-15T08:45:22.000Z
2021-07-06T08:32:03.000Z
venv/lib/python2.7/site-packages/py2neo/cypher/error/network.py
KairosSystems/drMouse
f98d04084eb1210db88df4c9888eea149ae31b2c
[ "MIT" ]
6
2017-05-05T13:11:51.000Z
2019-01-25T22:46:30.000Z
venv/lib/python2.7/site-packages/py2neo/cypher/error/network.py
KairosSystems/drMouse
f98d04084eb1210db88df4c9888eea149ae31b2c
[ "MIT" ]
3
2018-03-16T14:11:52.000Z
2020-03-04T02:08:31.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright 2011-2014, Nigel Small # # 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 # # Unle...
31.230769
74
0.742611
03de2d8a28bd62201c6296255c8ca6dce7fc5aa8
109
py
Python
server/run.py
Gugush284/transport_card
c9cd387f82bb79689f51c939cc800c3b96f4b632
[ "Apache-2.0" ]
null
null
null
server/run.py
Gugush284/transport_card
c9cd387f82bb79689f51c939cc800c3b96f4b632
[ "Apache-2.0" ]
null
null
null
server/run.py
Gugush284/transport_card
c9cd387f82bb79689f51c939cc800c3b96f4b632
[ "Apache-2.0" ]
null
null
null
from app import app app.secret_key = 'really long key' app.run(debug = True) # running server with debug
21.8
35
0.724771
03dea9c87339b2de595328e403ca2162325c7c8f
70
py
Python
src/conda_tools/_types.py
groutr/conda-tools
f421fd324f306a713c0cb1a3845306758ff981f4
[ "BSD-3-Clause" ]
11
2016-07-07T00:27:01.000Z
2019-12-02T08:47:16.000Z
src/conda_tools/_types.py
groutr/conda-tools
f421fd324f306a713c0cb1a3845306758ff981f4
[ "BSD-3-Clause" ]
8
2016-07-15T14:59:27.000Z
2019-07-03T18:05:34.000Z
src/conda_tools/_types.py
groutr/conda-tools
f421fd324f306a713c0cb1a3845306758ff981f4
[ "BSD-3-Clause" ]
2
2016-07-13T22:24:51.000Z
2016-11-16T18:03:46.000Z
import typing import pathlib PATH = typing.Union[str, pathlib.Path]
11.666667
38
0.771429
03def5ad99b190c9ceecb3ee60f19adae0931add
2,547
py
Python
regparser/commands/retry.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
26
2016-06-04T20:48:09.000Z
2021-07-28T18:13:30.000Z
regparser/commands/retry.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
146
2016-04-06T19:07:54.000Z
2022-01-02T20:09:53.000Z
regparser/commands/retry.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
28
2016-04-09T20:40:48.000Z
2021-05-08T17:52:59.000Z
import logging import pkgutil from collections import namedtuple from copy import deepcopy from importlib import import_module import click import pyparsing from regparser import commands from regparser.commands.dependency_resolver import DependencyResolver from regparser.index import dependency logger = logging.get...
35.375
80
0.684727
03df2bb2906e8bcece34531a0038f5519e1b92b4
711
py
Python
salt/pillar/cmd_json.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
salt/pillar/cmd_json.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/pillar/cmd_json.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- ''' Execute a command and read the output as JSON. The JSON data is then directly overlaid onto the minion's Pillar data. ''' # Don't "fix" the above docstring to put it on two lines, as the sphinx # autosummary pulls only the first line for its description. # Import python libs import logging...
25.392857
117
0.654008
03df2ee0384e728f202358e49eade8b34a05e724
5,826
py
Python
poni/util.py
saaros/poni
1d2a9982f7e934137ce1ee675f0e1373314df7c7
[ "Apache-2.0" ]
null
null
null
poni/util.py
saaros/poni
1d2a9982f7e934137ce1ee675f0e1373314df7c7
[ "Apache-2.0" ]
null
null
null
poni/util.py
saaros/poni
1d2a9982f7e934137ce1ee675f0e1373314df7c7
[ "Apache-2.0" ]
null
null
null
""" Generic utility functions and classes Copyright (c) 2010-2012 Mika Eloranta See LICENSE for details. """ import logging import os from multiprocessing.pool import ThreadPool from . import errors from . import recode try: import json except ImportError: import simplejson as json DEF_VALUE = object() #...
28.144928
94
0.595434
03df3eed638c1150217070863ce4b62ce8adee59
61,121
py
Python
asposewordscloud/models/pdf_save_options_data.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/pdf_save_options_data.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/pdf_save_options_data.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="pdf_save_options_data.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy #...
43.225601
1,279
0.694229
03df4a55175cd5b03ce654ffa6ea3de144edcffa
1,054
py
Python
python-code/opencv-learning/tiny-apps/detect_human.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
13
2018-09-07T02:29:07.000Z
2021-06-18T08:40:09.000Z
python-code/opencv-learning/tiny-apps/detect_human.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
null
null
null
python-code/opencv-learning/tiny-apps/detect_human.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
4
2019-06-20T00:09:39.000Z
2021-07-15T10:14:36.000Z
#coding:utf-8 import numpy as np import cv2 def inside(r, q): rx, ry, rw, rh = r qx, qy, qw, qh = q return rx > qx and ry > qy and rx + rw < qx + qw and ry + rh < qy + qh def draw_detections(img, rects, thickness = 1): for x, y, w, h in rects: # the HOG detector returns slightly larger recta...
31.939394
94
0.616698
03df7ccb5c2a27b40080b14bb97aab8da86a411c
23,162
py
Python
train.py
giangnguyen2412/dissect_catastrophic_forgetting
b0dea59e9cf6521c7b43b2ab53b6c3258902d6ae
[ "MIT" ]
2
2020-12-14T14:39:15.000Z
2021-03-19T14:19:58.000Z
train.py
giangnguyen2412/dissect_catastrophic_forgetting
b0dea59e9cf6521c7b43b2ab53b6c3258902d6ae
[ "MIT" ]
null
null
null
train.py
giangnguyen2412/dissect_catastrophic_forgetting
b0dea59e9cf6521c7b43b2ab53b6c3258902d6ae
[ "MIT" ]
null
null
null
import torch.nn as nn from data_loader import get_loader from model import EncoderCNN, DecoderRNN from torch.nn.utils.rnn import pack_padded_sequence from torchvision import transforms from utils import * from prepro.build_vocab import * from prepro.pick_image import make_dir from infer import infer_caption_by_master, ...
41.583483
131
0.598437
03df80c7636e98b35cfee0089df95e31790ed65a
1,648
py
Python
configs/selfsup/_test_/models/simdis/resnet18_simdis_poskd_crosspred.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
configs/selfsup/_test_/models/simdis/resnet18_simdis_poskd_crosspred.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
configs/selfsup/_test_/models/simdis/resnet18_simdis_poskd_crosspred.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
1
2022-03-15T11:31:48.000Z
2022-03-15T11:31:48.000Z
# model settings model = dict( type='SimDis_Siam_poskd_cross_pred', backbone=dict( type='ResNet', depth=18, in_channels=3, out_indices=[4], # 0: conv-1, x: stage-x norm_cfg=dict(type='SyncBN'), zero_init_residual=True), neck=dict( type='NonLinearNeck'...
28.413793
53
0.521238
03df95c4438434b96394abc73b3d1d37788f1058
4,528
py
Python
pex/tools/commands/interpreter.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/tools/commands/interpreter.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/tools/commands/interpreter.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import import logging from argparse import ArgumentParser from pex import pex_bootstrapper from pex.commands.command import JsonMixin, OutputMixin from pe...
40.428571
98
0.575972
03df96eb61162437dde7ea32d55bc0abf08d8b5a
1,483
py
Python
test/aio/test_suite.py
yrik/datasketch
82d9639bc0011932a952bbae1d4b5bd5ac03c7c8
[ "MIT" ]
1
2019-06-05T15:06:08.000Z
2019-06-05T15:06:08.000Z
test/aio/test_suite.py
yrik/datasketch
82d9639bc0011932a952bbae1d4b5bd5ac03c7c8
[ "MIT" ]
null
null
null
test/aio/test_suite.py
yrik/datasketch
82d9639bc0011932a952bbae1d4b5bd5ac03c7c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest from test.aio.lsh_test import TestAsyncMinHashLSH, TestWeightedMinHashLSH, DO_TEST_MONGO def test_suite_minhashlsh_aiomongo(): suite = unittest.TestSuite() suite.addTest(TestAsyncMinHashLSH('test_init_mongo')) suite.addTest(TestAsyncMinHashLS...
38.025641
88
0.783547
03dfb891cbdb78a6d40daf3f395ce7d4c3514832
6,980
py
Python
src/pyxer/template/genshi/util.py
tml/pyxer
4e3677b3f2c7f23ebf039a9ba9733f68a8460189
[ "MIT" ]
3
2015-12-25T14:45:36.000Z
2016-11-28T09:58:03.000Z
libs/external_libs/Genshi-0.5.1/genshi/util.py
indro/t2c
56482ad4aed150f29353e054db2c97b567243bf8
[ "MIT" ]
2
2018-03-21T06:27:50.000Z
2018-03-22T12:57:58.000Z
libs/external_libs/Genshi-0.5.1/genshi/util.py
indro/t2c
56482ad4aed150f29353e054db2c97b567243bf8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
27.808765
80
0.569054
03dfbcdc517512785e0da8fe420c3f8b1912ee81
15,051
py
Python
pkgcore/scripts/pconfig.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
1
2021-07-05T13:10:18.000Z
2021-07-05T13:10:18.000Z
pkgcore/scripts/pconfig.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
8
2015-03-24T14:21:44.000Z
2015-03-24T14:21:44.000Z
pkgcore/scripts/pconfig.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2011 Brian Harring <ferringb@gmail.com> # Copyright: 2006 Marien Zwart <marienz@gentoo.org> # License: BSD/GPL2 """pkgcore configuration querying utility""" __all__ = ( "get_classes", "dump", "dump_main", "classes", "classes_main", "uncollapsable", "uncollapsable_main", "describe_class", "des...
38.200508
90
0.601621
03dfde424c16b5c6662d29c76319d2370e76d715
8,058
py
Python
taxamo/models/input_transaction.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
4
2016-03-14T03:59:08.000Z
2020-06-21T07:58:38.000Z
taxamo/models/input_transaction.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
2
2016-03-07T13:41:23.000Z
2017-07-11T13:39:44.000Z
taxamo/models/input_transaction.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
8
2016-01-13T14:32:19.000Z
2021-08-16T11:14:06.000Z
#!/usr/bin/env python """ Copyright 2014-2021 by Taxamo 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 applic...
56.34965
440
0.663316
03dff47c00356a20b03d2269f9cce9bad6008d0b
4,794
py
Python
api/test/api/responders_test/test_data/cliques.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
api/test/api/responders_test/test_data/cliques.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
api/test/api/responders_test/test_data/cliques.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
27.872093
79
0.573008
03dff77079f8e6d47fcec468f200451f0a2c910d
5,240
py
Python
scripts/data_preprocessing.py
wiktorlazarski/SherlockNet
dfe9ea387d77947068cce48bf5e2fa63259653c9
[ "MIT" ]
null
null
null
scripts/data_preprocessing.py
wiktorlazarski/SherlockNet
dfe9ea387d77947068cce48bf5e2fa63259653c9
[ "MIT" ]
null
null
null
scripts/data_preprocessing.py
wiktorlazarski/SherlockNet
dfe9ea387d77947068cce48bf5e2fa63259653c9
[ "MIT" ]
null
null
null
import collections import json import os import re class BytePairEncoding: def __init__(self, tokens, vocab): self.tokens = tokens self.vocab = vocab @classmethod def create(cls, corpus, num_merges): tokens, vocab_encoded = cls._create_tokens(corpus, num_merges) def token...
28.324324
80
0.583015
03e02bbe5d03cf203b21a4ff10fb57d72ab67f8e
6,916
py
Python
tests/test_density_RDF.py
pbuslaev/freud
ed83bdc63ee8fddba78f070ce9ddf2a0021d67b8
[ "BSD-3-Clause" ]
null
null
null
tests/test_density_RDF.py
pbuslaev/freud
ed83bdc63ee8fddba78f070ce9ddf2a0021d67b8
[ "BSD-3-Clause" ]
null
null
null
tests/test_density_RDF.py
pbuslaev/freud
ed83bdc63ee8fddba78f070ce9ddf2a0021d67b8
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import numpy.testing as npt import freud import matplotlib import unittest import util from test_managedarray import TestManagedArray matplotlib.use('agg') class TestRDF(unittest.TestCase): def test_generateR(self): r_max = 5 for r_min in [0, 0.05, 0.1, 1.0, 3.0]: bi...
35.106599
78
0.573453
03e02ee5b0e1ff80dcfeacc2528bb638e25ffdb9
21,297
py
Python
Keras_tensorflow_nightly/source2.7/tensorflow/contrib/layers/ops/gen_sparse_feature_cross_op.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2019-06-27T12:09:44.000Z
2019-06-27T12:09:44.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/contrib/layers/ops/gen_sparse_feature_cross_op.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Keras_tensorflow_nightly/source2.7/tensorflow/contrib/layers/ops/gen_sparse_feature_cross_op.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. Original C++ source file: sparse_feature_cross_op.cc """ import collections as _collections import six as _six from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow from tensorflow.python.eager import context as _c...
37.693805
1,295
0.659999
03e062098796326df41e6a878a1afb2bbc4ae085
9,391
py
Python
taskwarrior_syncall/app_utils.py
bergercookie/taskwarrior_syncall
0c34023375d0551048c973587d536342fb9d4e2d
[ "MIT" ]
17
2021-12-16T06:17:34.000Z
2022-03-30T21:14:07.000Z
taskwarrior_syncall/app_utils.py
bergercookie/taskwarrior_syncall
0c34023375d0551048c973587d536342fb9d4e2d
[ "MIT" ]
3
2021-12-14T23:36:01.000Z
2022-03-30T21:18:38.000Z
taskwarrior_syncall/app_utils.py
bergercookie/taskwarrior_syncall
0c34023375d0551048c973587d536342fb9d4e2d
[ "MIT" ]
1
2022-02-14T14:29:13.000Z
2022-02-14T14:29:13.000Z
"""Top-level application utility functions. Use these functions only in top-level executables. In case of errors they may directly call `sys.exit()` to avoid dumping stack traces to the user. """ import logging import os import subprocess import sys from collections.abc import Iterable from datetime import datetime f...
35.980843
96
0.661697
03e06333d1571e2fd3c7df907038dd4070e95f70
7,642
py
Python
experiments/vitchyr/probabilistic_goal_reaching/fancy_discount/exp_4_debug_more_reward_scales.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/probabilistic_goal_reaching/fancy_discount/exp_4_debug_more_reward_scales.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/probabilistic_goal_reaching/fancy_discount/exp_4_debug_more_reward_scales.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp from rlkit.launchers.experiments.vitchyr.probabilistic_goal_reaching.launcher import \ probabilistic_goal_reaching_experiment from rlkit.launchers.launcher_util import run_experiment if __name__ == "__main__": variant = dict( qf_kwargs=dict( hidden_si...
31.44856
86
0.508375
03e082be589e6e34c3a9da427f73f3cba87659a0
60
py
Python
mods/tracker.py
jmlazaro25/ldmx-bdt
f92d651392577409482e765b73737e63c473ae5f
[ "MIT" ]
2
2021-03-30T12:56:34.000Z
2021-04-12T23:10:51.000Z
mods/tracker.py
jmlazaro25/ldmx-bdt
f92d651392577409482e765b73737e63c473ae5f
[ "MIT" ]
8
2021-04-05T03:41:07.000Z
2021-06-11T12:38:00.000Z
mods/tracker.py
jmlazaro25/ldmx-bdt
f92d651392577409482e765b73737e63c473ae5f
[ "MIT" ]
1
2021-04-12T23:11:30.000Z
2021-04-12T23:11:30.000Z
import physTools # Tracker-related functions # Coming soon
12
27
0.8
03e08574850ec671e12fa4a296f20babb765f7b7
1,625
py
Python
registration/admin.py
laginha/django-registration
88c10f142b5855021504aab437bc3f9eca0cb568
[ "BSD-3-Clause" ]
null
null
null
registration/admin.py
laginha/django-registration
88c10f142b5855021504aab437bc3f9eca0cb568
[ "BSD-3-Clause" ]
null
null
null
registration/admin.py
laginha/django-registration
88c10f142b5855021504aab437bc3f9eca0cb568
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.contrib.sites.models import RequestSite from django.contrib.sites.models import Site from django.utils.translation import ugettext_lazy as _ from registration.models import RegistrationProfile class RegistrationAdmin(admin.ModelAdmin): actions = ['activate_users', 're...
34.574468
78
0.694154
03e09a2d767391bf9e35b3e7a72c75a8bf2f7f8f
1,072
py
Python
scripts/python/ep_temporal_interp.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2020-06-03T15:59:50.000Z
2020-12-21T11:11:57.000Z
scripts/python/ep_temporal_interp.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
null
null
null
scripts/python/ep_temporal_interp.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2019-10-02T06:47:23.000Z
2020-02-02T18:32:23.000Z
#!/usr/bin/env python import sys,os import sys_path import time import tim proc_script = "run_proc.py" exec_cmd = "temp_interp" site_list = sys_path.Full_site_list_file cdl_file = "%s/%s" % (sys_path.Cdl_dir, "derive_rdwx.cdl") model = "nam_fcst" static_files = "%s %s" % (site_list, cdl_file) age = "86400" inpu...
24.930233
177
0.662313
03e0d38989995fd2d4253db5da11923185f20f82
17,281
py
Python
pennylaneai/qml-demos/tutorial_stochastic_parameter_shift.py
hpssjellis/tfQuantumJs
5235c682b0d2de2eaab8d52b84e295c9f4abf4e5
[ "MIT" ]
1
2021-05-11T22:13:28.000Z
2021-05-11T22:13:28.000Z
pennylaneai/qml-demos/tutorial_stochastic_parameter_shift.py
hpssjellis/tfQuantumJs
5235c682b0d2de2eaab8d52b84e295c9f4abf4e5
[ "MIT" ]
null
null
null
pennylaneai/qml-demos/tutorial_stochastic_parameter_shift.py
hpssjellis/tfQuantumJs
5235c682b0d2de2eaab8d52b84e295c9f4abf4e5
[ "MIT" ]
1
2021-05-11T22:13:34.000Z
2021-05-11T22:13:34.000Z
r""" The Stochastic Parameter-Shift Rule =================================== .. meta:: :property="og:description": Differentiate any qubit gate with the stochastic parameter-shift rule. :property="og:image": https://pennylane.ai/qml/_images/stochastic_parameter_shift_thumbnail.png .. related:: parameter_s...
41.441247
155
0.671663
03e0d81e539199d6a145a7b2494f08161331a852
9,476
py
Python
src/zenml/integrations/kubeflow/orchestrators/local_deployment_utils.py
halvgaard/zenml
7f9a3be90c7e0a94927b599939b5b9c1bc741b0b
[ "Apache-2.0" ]
1
2022-03-11T10:15:22.000Z
2022-03-11T10:15:22.000Z
src/zenml/integrations/kubeflow/orchestrators/local_deployment_utils.py
halvgaard/zenml
7f9a3be90c7e0a94927b599939b5b9c1bc741b0b
[ "Apache-2.0" ]
null
null
null
src/zenml/integrations/kubeflow/orchestrators/local_deployment_utils.py
halvgaard/zenml
7f9a3be90c7e0a94927b599939b5b9c1bc741b0b
[ "Apache-2.0" ]
null
null
null
import json import shutil import subprocess import sys import time import zenml.io.utils from zenml.io import fileio from zenml.logger import get_logger from zenml.utils import networking_utils, yaml_utils KFP_VERSION = "1.7.1" logger = get_logger(__name__) def check_prerequisites() -> bool: """Checks whether a...
31.377483
120
0.599304
03e0d8c608bb5a59e9c3066d644d5cfc2ecaa9ef
2,652
py
Python
tests/st/ops/ascend/vector/test_sigmoid_cross_entropy_with_logits_grad_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/ascend/vector/test_sigmoid_cross_entropy_with_logits_grad_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/ascend/vector/test_sigmoid_cross_entropy_with_logits_grad_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.58209
126
0.682504
03e0e43f27ef1b801c5029dcf22e6aed85224563
3,189
py
Python
specutils/io/default_loaders/ascii.py
keflavich/specutils
ec4fe50c6c032fc421c2cd0ee0dda11fd0f856cb
[ "BSD-3-Clause" ]
null
null
null
specutils/io/default_loaders/ascii.py
keflavich/specutils
ec4fe50c6c032fc421c2cd0ee0dda11fd0f856cb
[ "BSD-3-Clause" ]
null
null
null
specutils/io/default_loaders/ascii.py
keflavich/specutils
ec4fe50c6c032fc421c2cd0ee0dda11fd0f856cb
[ "BSD-3-Clause" ]
null
null
null
import os from astropy.table import Table from ..registers import data_loader from ..parsing_utils import (generic_spectrum_from_table, spectrum_from_column_mapping) __all__ = ['ascii_identify', 'ascii_loader', 'ipac_identify', 'ipac_loader'] def ascii_identify(origin, *args, **kwargs)...
31.574257
79
0.667921
03e0f3e8edaa43a2087f153f71ecbc07b4e67b49
16,359
py
Python
data_processing/create_vector.py
ramfalas/Speech_driven_gesture_generation_with_autoencoder
1ee381112d760a9d21b9ba1a87163ba2c0bed9ee
[ "Apache-2.0" ]
65
2019-03-18T09:59:43.000Z
2022-02-20T02:30:50.000Z
data_processing/create_vector.py
GestureGeneration/Speech-driven-gesture-generation-with-autoencoder
59e8ebdb0f6e87b0e81268046c99a4d6c9bf62a8
[ "Apache-2.0" ]
10
2019-07-12T06:46:14.000Z
2022-01-06T07:34:37.000Z
data_processing/create_vector.py
GestureGeneration/Speech-driven-gesture-generation-with-autoencoder
59e8ebdb0f6e87b0e81268046c99a4d6c9bf62a8
[ "Apache-2.0" ]
21
2019-01-17T08:47:53.000Z
2022-02-15T13:27:27.000Z
""" This script does preprocessing of the dataset specified in DATA_DIR and stores it in the same folder as .npy files It should be used before training, as described in the README.md @author: Taras Kucherenko """ import os import sys import pyquaternion as pyq from tools import * N_OUTPUT = 384 # Number of gestu...
33.25
189
0.62027
03e10ad8cb0d731d132b17c543c2afc48b1fb6d7
2,037
py
Python
register/migrations/0006_auto_survey_emailer.py
cds-snc/covid-alert-portal
e7d56fa9fa4a2ad2d60f056eae063713661bd260
[ "MIT" ]
43
2020-07-31T14:38:06.000Z
2022-03-07T11:28:28.000Z
register/migrations/0006_auto_survey_emailer.py
cds-snc/covid-alert-portal
e7d56fa9fa4a2ad2d60f056eae063713661bd260
[ "MIT" ]
322
2020-07-23T19:38:26.000Z
2022-03-31T19:15:45.000Z
register/migrations/0006_auto_survey_emailer.py
cds-snc/covid-alert-portal
e7d56fa9fa4a2ad2d60f056eae063713661bd260
[ "MIT" ]
6
2020-11-28T19:30:20.000Z
2021-07-29T18:06:55.000Z
# Generated by Django 3.2.3 on 2021-06-15 19:04 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('register', '0005_locatio...
44.282609
133
0.617084
03e10c0ffbf973220a8db92bf3e545fefafbca75
2,352
py
Python
google-cloud-sdk/lib/surface/service_registry/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/service_registry/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/service_registry/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
33.6
79
0.755952
03e1456047871b762f995ff22473e077e6dffe24
862
py
Python
test/test_aloha_mems.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
test/test_aloha_mems.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
test/test_aloha_mems.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
import vnmrjpy as vj import unittest import numpy as np import nibabel as nib import glob import copy import matplotlib.pyplot as plt # test on small number of slices only for 'speed' #SLC = 'all' SLC = 'center' SLCNUM = 1 class Test_Aloha_mems(unittest.TestCase): def test_mems(self): slc = SLC # sl...
28.733333
75
0.62529
03e14f96ea7ce794c4d300b96f6d1fa56cb561a2
12,313
py
Python
homeassistant/components/fibaro/climate.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
homeassistant/components/fibaro/climate.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
homeassistant/components/fibaro/climate.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
"""Support for Fibaro thermostats.""" import logging from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( HVAC_MODE_AUTO, HVAC_MODE_COOL, HVAC_MODE_DRY, HVAC_MODE_FAN_ONLY, HVAC_MODE_HEAT, HVAC_MODE_OFF, PRESET_AWAY, PRESET_BOOS...
34.393855
88
0.638268
03e16f243836a28c1add56aaaf79afe8b3340bdc
130,016
py
Python
pandas/core/generic.py
hhuuggoo/pandas
f87ab95c2ecd1be6a3e3acec8f5d81e7f3c8e4bd
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/generic.py
hhuuggoo/pandas
f87ab95c2ecd1be6a3e3acec8f5d81e7f3c8e4bd
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/generic.py
hhuuggoo/pandas
f87ab95c2ecd1be6a3e3acec8f5d81e7f3c8e4bd
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# pylint: disable=W0231,E1101 import warnings import operator import weakref import gc import numpy as np import pandas.lib as lib import pandas as pd from pandas.core.base import PandasObject from pandas.core.index import (Index, MultiIndex, _ensure_index, InvalidIndexError) import pand...
35.82695
97
0.537226
03e17447cc770a23a5ad8fd4a84420986c4f5a85
900
py
Python
setup.py
tll549/TEF
8dc50b0d0966b782b04fcd9fc846c0756820782f
[ "MIT" ]
2
2019-08-07T15:44:28.000Z
2019-08-08T07:34:24.000Z
setup.py
tll549/TEF
8dc50b0d0966b782b04fcd9fc846c0756820782f
[ "MIT" ]
null
null
null
setup.py
tll549/TEF
8dc50b0d0966b782b04fcd9fc846c0756820782f
[ "MIT" ]
1
2019-08-06T15:40:16.000Z
2019-08-06T15:40:16.000Z
import setuptools import re import sys with open('TEF/__init__.py', 'r') as f: for line in f: if line.startswith('__version__'): _, _, __version__ = line.replace("'", '').split() break # with open("README.md", "r") as fh: # long_description = fh.read() long_descri...
29.032258
72
0.622222
03e176fb031999253ead5b58ae84abec1860720c
7,447
py
Python
Rannan_configs/splunk_apps_indexes/apps_configs.tgz_fixed/splunk_app_db_connect/bin/rh_loglevel.py
mhassan2/datafabric_splunk
b4a1ba77ad7e1ab84d22cb40da6ff12e6bf16d1e
[ "Apache-2.0" ]
14
2017-12-21T00:17:04.000Z
2020-07-15T19:00:31.000Z
Rannan_configs/splunk_apps_indexes/apps_configs.tgz_fixed/splunk_app_db_connect/bin/rh_loglevel.py
mhassan2/datafabric_splunk
b4a1ba77ad7e1ab84d22cb40da6ff12e6bf16d1e
[ "Apache-2.0" ]
null
null
null
Rannan_configs/splunk_apps_indexes/apps_configs.tgz_fixed/splunk_app_db_connect/bin/rh_loglevel.py
mhassan2/datafabric_splunk
b4a1ba77ad7e1ab84d22cb40da6ff12e6bf16d1e
[ "Apache-2.0" ]
5
2018-01-18T17:34:48.000Z
2019-03-27T09:32:05.000Z
# the first import can't be removed import scripted_rest_sys_path from dbx2.dbx_logger import logger from json import loads, dumps from dbx2.simple_rest import SimpleRest from dbx2.splunk_client.splunk_service_factory import SplunkServiceFactory import splunklib.client as client import requests import jvm_options from...
45.133333
141
0.630992
03e1a14e48fed54836d635dd511fcc5e75d52eea
2,133
py
Python
SVM and kNN/world_values_pipelines.py
QinganZhao/Introduction-to-Machine-Learning
57edb519aaff3851e94c1917c9556180e0bb281a
[ "MIT" ]
1
2019-01-08T02:53:51.000Z
2019-01-08T02:53:51.000Z
SVM and kNN/world_values_pipelines.py
QinganZhao/Machine-Learning
57edb519aaff3851e94c1917c9556180e0bb281a
[ "MIT" ]
null
null
null
SVM and kNN/world_values_pipelines.py
QinganZhao/Machine-Learning
57edb519aaff3851e94c1917c9556180e0bb281a
[ "MIT" ]
null
null
null
from sklearn.pipeline import Pipeline from sklearn.preprocessing import MaxAbsScaler from sklearn.preprocessing import RobustScaler from sklearn.preprocessing import StandardScaler from sklearn.preprocessing import MinMaxScaler from sklearn.preprocessing import Binarizer from sklearn.decomposition import PCA from sklea...
26.012195
65
0.647445
03e1b30e828ce8050b364f4607d384e11dc3f1e1
1,018
py
Python
manafa/services/batteryStatsService.py
RRua/petra-like
cfb6a978f69792845b029d41a1775f36f4d98119
[ "MIT" ]
null
null
null
manafa/services/batteryStatsService.py
RRua/petra-like
cfb6a978f69792845b029d41a1775f36f4d98119
[ "MIT" ]
null
null
null
manafa/services/batteryStatsService.py
RRua/petra-like
cfb6a978f69792845b029d41a1775f36f4d98119
[ "MIT" ]
null
null
null
from .service import Service from ..utils.Logger import log from ..utils.Utils import execute_shell_command class BatteryStatsService(Service): """docstring for BatteryStatsService""" def __init__(self,boot_time=0, output_res_folder="batterystats"): Service.__init__(self,output_res_folder) self.boot_time = b...
26.102564
83
0.725933
03e1d16f2ac1cf38cdb9f816f58b45d99fe06085
868
py
Python
sdks/python/test/test_UWPToolset.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_UWPToolset.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_UWPToolset.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
21.7
79
0.700461
03e1d5503ba51d581812a10f350a8a86e69fcd07
12,968
py
Python
dataprep/tests/clean/test_clean_phone.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
1,229
2019-12-21T02:58:59.000Z
2022-03-30T08:12:33.000Z
dataprep/tests/clean/test_clean_phone.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
680
2019-12-19T06:09:23.000Z
2022-03-31T04:15:25.000Z
dataprep/tests/clean/test_clean_phone.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
170
2020-01-08T03:27:26.000Z
2022-03-20T20:42:55.000Z
""" module for testing the functions clean_phone() and validate_phone() """ import logging import numpy as np import pandas as pd import pytest from ...clean import clean_phone, validate_phone LOGGER = logging.getLogger(__name__) @pytest.fixture(scope="module") # type: ignore def df_phone() -> pd.DataFrame: d...
22.016978
97
0.349861
03e22a611068012ac432a292bd134614f7d3c6d9
1,929
py
Python
sxs/utilities/lvcnr/waveforms.py
dongzesun/sxs
74ac9576032ddc232ff48510ba20f0a9e7116861
[ "MIT" ]
8
2019-12-08T20:56:59.000Z
2021-11-01T09:01:39.000Z
sxs/utilities/lvcnr/waveforms.py
duetosymmetry/sxs
1617bf9d1eb06b1aa063db2b310d4e7c3d02e5e5
[ "MIT" ]
33
2019-12-06T17:40:00.000Z
2022-03-28T16:53:02.000Z
sxs/utilities/lvcnr/waveforms.py
duetosymmetry/sxs
1617bf9d1eb06b1aa063db2b310d4e7c3d02e5e5
[ "MIT" ]
10
2019-12-04T17:37:55.000Z
2022-03-14T07:22:43.000Z
"""Functions to convert waveform quantities to LVC format""" import numpy as np import h5py def convert_modes(sxs_format_waveform, metadata, out_filename, modes, extrapolation_order="Extrapolated_N2", log=print, truncation_time=None, tolerance=5e-07, truncation_t...
37.823529
114
0.671332
03e251d8f62a4116c26d58cdac1c062d497c31be
2,168
py
Python
nn_analysis/models/archs/barlowtwins/base.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
nn_analysis/models/archs/barlowtwins/base.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
nn_analysis/models/archs/barlowtwins/base.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
from argparse import Namespace import torch import torch.nn as nn import torchvision.models as models def off_diagonal(x): # return a flattened view of the off-diagonal elements of a square matrix n, m = x.shape assert n == m return x.flatten()[:-1].view(n - 1, n + 1)[:, 1:].flatten() class BarlowTwi...
38.035088
110
0.639299
03e257b89edbe4031c25de125fa1ec49a4209f4c
2,064
py
Python
thor/projections/gnomonic.py
KatKiker/thor
ffc8ab3fbaa8af046f531e8111907a891998d14b
[ "BSD-3-Clause" ]
11
2019-08-22T18:37:09.000Z
2022-02-28T22:49:25.000Z
thor/projections/gnomonic.py
KatKiker/thor
ffc8ab3fbaa8af046f531e8111907a891998d14b
[ "BSD-3-Clause" ]
57
2019-08-20T19:57:14.000Z
2021-09-16T20:54:59.000Z
thor/projections/gnomonic.py
KatKiker/thor
ffc8ab3fbaa8af046f531e8111907a891998d14b
[ "BSD-3-Clause" ]
7
2021-02-09T21:28:43.000Z
2022-02-01T08:55:29.000Z
import numpy as np __all__ = ["angularToGnomonic", "cartesianToGnomonic"] def angularToGnomonic(coords_ang, coords_ang_center=np.array([0, 0])): """ Project angular spherical coordinates onto a gnomonic tangent plane. Parameters ---------- coords_ang : `~numpy.ndarray` (N, 2) L...
29.070423
93
0.578004
03e26727a3a3eba1ef858fca7d9e6b6092b7bef3
2,262
py
Python
2019/11/robot.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
2
2020-12-04T09:45:38.000Z
2020-12-07T14:06:12.000Z
2019/11/robot.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
2019/11/robot.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
from int_comp import IntComputer DIRECTIONS = { "up": (0, 1), "left": (-1, 0), "down": (0, -1), "right": (1, 0) } CHANGE_LEFT = ["up", "left", "down", "right", "up"] CHANGE_RIGHT = ["up", "right", "down", "left", "up"] class Robot: def __init__(self, pos=(50, 50), dir="up"): self.position...
27.925926
81
0.479222
03e28553c3440f0e9ef6d90af3c62f1544ba46a9
10,183
py
Python
networking_opencontrail/tests/unit/ml2/test_dns_integrator.py
SSU-DCN/opencontrail
7ad252b008015c213341155dce1c99083049e0e3
[ "Apache-2.0" ]
null
null
null
networking_opencontrail/tests/unit/ml2/test_dns_integrator.py
SSU-DCN/opencontrail
7ad252b008015c213341155dce1c99083049e0e3
[ "Apache-2.0" ]
null
null
null
networking_opencontrail/tests/unit/ml2/test_dns_integrator.py
SSU-DCN/opencontrail
7ad252b008015c213341155dce1c99083049e0e3
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 OpenStack Foundation # # 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 ...
40.895582
79
0.667976
03e28664b676ef92e51645fa984fcfb08fbadef0
6,818
py
Python
Lib/site-packages/kivy/tests/test_lang.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
9
2016-09-03T07:20:01.000Z
2020-05-21T14:44:48.000Z
Lib/site-packages/kivy/tests/test_lang.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
1
2016-11-11T13:45:42.000Z
2016-11-11T13:45:42.000Z
Lib/site-packages/kivy/tests/test_lang.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
4
2016-09-10T15:27:54.000Z
2020-03-27T22:05:31.000Z
''' Language tests ============== ''' import unittest from weakref import proxy from functools import partial class BaseClass(object): uid = 0 # base class needed for builder def __init__(self, **kwargs): super(BaseClass, self).__init__() self.proxy_ref = proxy(self) self.childre...
25.066176
67
0.586242
03e2bc5c67df0303cd2d193ed5baff52e90c5129
158
py
Python
tracksuite/datasets/imagenetvid.py
jimiolaniyan/tracksuite
f05c40e7b78ce2bb623a4ae76c08997a41585152
[ "MIT" ]
null
null
null
tracksuite/datasets/imagenetvid.py
jimiolaniyan/tracksuite
f05c40e7b78ce2bb623a4ae76c08997a41585152
[ "MIT" ]
1
2020-09-02T07:53:51.000Z
2020-09-02T07:53:51.000Z
tracksuite/datasets/imagenetvid.py
jimiolaniyan/tracksuite
f05c40e7b78ce2bb623a4ae76c08997a41585152
[ "MIT" ]
null
null
null
from torch.utils.data.dataset import Dataset class ImageNetVIDDataSet(Dataset): def __init__(self, path, mode='train'): self.path = path
26.333333
44
0.683544
03e2c59e82971111564049b72036de64073a7716
9,561
py
Python
data/level/level80.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level80.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level80.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = { 'level_index': 80, 'move_count': 22, 'board_info': { (0, 0): { 'base': (4, 1), 'fall_point': (0, -1), 'next': (0, 1), 'prev': (0, -1) }, (0, 1): { 'base': (2, 1), 'next': (0, 1), 'prev': (0, ...
22.391101
47
0.184813
03e2f4bcb29d549f45f6d0e35100dffe7d86f7cb
50,272
py
Python
thor/main.py
KatKiker/thor
ffc8ab3fbaa8af046f531e8111907a891998d14b
[ "BSD-3-Clause" ]
null
null
null
thor/main.py
KatKiker/thor
ffc8ab3fbaa8af046f531e8111907a891998d14b
[ "BSD-3-Clause" ]
null
null
null
thor/main.py
KatKiker/thor
ffc8ab3fbaa8af046f531e8111907a891998d14b
[ "BSD-3-Clause" ]
1
2021-07-29T15:20:34.000Z
2021-07-29T15:20:34.000Z
import os import time import uuid import yaml import logging import shutil import numpy as np import pandas as pd import multiprocessing as mp from functools import partial from astropy.time import Time from .config import Config from .config import Configuration from .clusters import find_clusters, filter_clusters_by...
36.829304
149
0.587146
03e327a66fb4eae795311c9d9068faff0d541b34
34,360
py
Python
ThirdParty/Twisted/twisted/conch/test/test_cftp.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
7
2015-04-28T13:26:11.000Z
2020-02-09T17:01:04.000Z
ThirdParty/Twisted/twisted/conch/test/test_cftp.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
ThirdParty/Twisted/twisted/conch/test/test_cftp.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
# -*- test-case-name: twisted.conch.test.test_cftp -*- # Copyright (c) 2001-2009 Twisted Matrix Laboratories. # See LICENSE file for details. """ Tests for L{twisted.conch.scripts.cftp}. """ import locale import time, sys, os, operator, getpass, struct from StringIO import StringIO from twisted.conch.test.test_ssh i...
35.204918
105
0.57759
03e36d4c4a2e16885c578ac081edbbbe6dfe794f
3,522
py
Python
apps/custom_styles/tests/tests.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/custom_styles/tests/tests.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/custom_styles/tests/tests.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
# pylint: disable = no-self-use """Testcases for CustomStyles""" import pytest from django.test import TestCase, RequestFactory from .factories import StyleFactory from ..context_processors import add_custom_style from ..models import Style pytestmark = pytest.mark.django_db # pylint: disable = invalid-name class Tes...
35.22
81
0.63515
03e370d44be987cb817787b7f359528545d52c42
1,191
py
Python
savu/plugins/reconstructions/projectors/forward_projector_gpu_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/reconstructions/projectors/forward_projector_gpu_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/reconstructions/projectors/forward_projector_gpu_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
from savu.plugins.plugin_tools import PluginTools class ForwardProjectorGpuTools(PluginTools): """This plugin uses ToMoBAR software and GPU Astra projector to generate parallel-beam projection data. The plugin will project the given object using the available metadata OR user-provided geometry. In case when angles...
35.029412
107
0.626364
03e377764b63a8a2b3f41f9dfca5f1b3e9080b1c
8,141
py
Python
axonius_api_client/parsers/tables.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
11
2020-01-31T00:28:26.000Z
2022-03-25T20:27:08.000Z
axonius_api_client/parsers/tables.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
83
2020-01-22T12:52:38.000Z
2022-02-07T16:20:18.000Z
axonius_api_client/parsers/tables.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
16
2019-08-23T17:44:31.000Z
2022-01-06T00:57:34.000Z
# -*- coding: utf-8 -*- """Parsers for tables.""" import copy import textwrap from typing import List, Optional, Union import tabulate from ..constants.tables import KEY_MAP_ADAPTER, KEY_MAP_CNX, KEY_MAP_SCHEMA, TABLE_FMT from ..tools import json_dump, listify def tablize( value: List[dict], err: Optional[s...
29.930147
97
0.610244
03e3bcac606005b5e898342017dcfaceee7159ed
407
py
Python
src/toil/test/docs/scripts/tutorial_jobfunctions.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
348
2018-07-08T03:38:28.000Z
2022-03-11T18:57:44.000Z
src/toil/test/docs/scripts/tutorial_jobfunctions.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
1,700
2018-07-05T18:28:49.000Z
2022-03-31T14:09:04.000Z
src/toil/test/docs/scripts/tutorial_jobfunctions.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
126
2018-07-11T18:59:29.000Z
2022-01-24T03:14:02.000Z
from toil.common import Toil from toil.job import Job def helloWorld(job, message): job.log(f"Hello world, I have a message: {message}") if __name__=="__main__": options = Job.Runner.getDefaultOptions("./toilWorkflowRun") options.logLevel = "INFO" options.clean = "always" hello_job = Job.wrapJob...
23.941176
63
0.690418
03e3c05348deab2bee1661ab71c80489093635e9
37,964
py
Python
data_generation_fns_updating.py
hpphappy/XRF_tomography_Theta
5db1f9e8fc477449561927816106d5e55a5917af
[ "MIT" ]
null
null
null
data_generation_fns_updating.py
hpphappy/XRF_tomography_Theta
5db1f9e8fc477449561927816106d5e55a5917af
[ "MIT" ]
null
null
null
data_generation_fns_updating.py
hpphappy/XRF_tomography_Theta
5db1f9e8fc477449561927816106d5e55a5917af
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Nov 7 23:34:50 2020 @author: panpanhuang """ import numpy as np from numpy.random import default_rng import xraylib as xlib import xraylib_np as xlib_np import torch as tc import torch.nn.functional as F import os from tqdm import tqdm import pickle ...
48.177665
203
0.631256
03e3d57c1740f7fdbe7babe3d0587e18b2da42dc
5,869
py
Python
src/virtualenv/discovery/cached_py_info.py
jezdez/virtualenv
5c9b6246a4107e5e613a23c42b805d0373672400
[ "MIT" ]
1
2022-02-21T02:01:37.000Z
2022-02-21T02:01:37.000Z
src/virtualenv/discovery/cached_py_info.py
jezdez/virtualenv
5c9b6246a4107e5e613a23c42b805d0373672400
[ "MIT" ]
null
null
null
src/virtualenv/discovery/cached_py_info.py
jezdez/virtualenv
5c9b6246a4107e5e613a23c42b805d0373672400
[ "MIT" ]
null
null
null
""" We acquire the python information by running an interrogation script via subprocess trigger. This operation is not cheap, especially not on Windows. To not have to pay this hefty cost every time we apply multiple levels of caching. """ from __future__ import absolute_import, unicode_literals import json import lo...
35.355422
115
0.637928
03e3e95701a1ccdbf227d8d8e1efd334c480bf55
3,154
py
Python
centinel/constants.py
rpanah/centinel-server
873815da204e314b4a88a858f1ee7842e298adae
[ "MIT" ]
null
null
null
centinel/constants.py
rpanah/centinel-server
873815da204e314b4a88a858f1ee7842e298adae
[ "MIT" ]
null
null
null
centinel/constants.py
rpanah/centinel-server
873815da204e314b4a88a858f1ee7842e298adae
[ "MIT" ]
null
null
null
# constants for the centinel server # constants for informed consent lookups # lookup table to map country codes to freedom house pages freedom_house_url_base = "http://www.freedomhouse.org/report/freedom-net/2012/" freedom_house_lookup = {'AR': 'argentina', 'AU': 'australia', 'AZ': 'azerbaijan', ...
63.08
119
0.483513
03e40dac4dbbcf73c9ab234bbfbb0f3de6a193fb
12,334
py
Python
tf_agents/specs/array_spec.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
tf_agents/specs/array_spec.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
tf_agents/specs/array_spec.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
33.067024
80
0.673585
03e421f468b0dfd61a86982f91bd89262da4eec9
24
py
Python
webservices/__init__.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
246
2015-01-07T16:59:42.000Z
2020-01-18T20:35:05.000Z
webservices/__init__.py
dwillis/openFEC
dae84b0e526eac4a917e80697a7999956f9c96cb
[ "CC0-1.0" ]
2,532
2015-01-02T16:22:46.000Z
2018-03-08T17:30:53.000Z
webservices/__init__.py
dwillis/openFEC
dae84b0e526eac4a917e80697a7999956f9c96cb
[ "CC0-1.0" ]
75
2015-02-01T00:46:56.000Z
2021-02-14T10:51:34.000Z
__API_VERSION__ = '1.0'
12
23
0.708333
03e4222981c9c263426077d12479834791b7dcb8
5,547
py
Python
sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_credits_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_credits_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_credits_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
41.395522
199
0.698396
03e429db4fd513f3611ee814d6c71b1d0d102a6c
1,571
py
Python
tests/main.py
diraol/yala
6c26d4e3f3aee273332349ff6d4bb7c9841daaa7
[ "MIT" ]
null
null
null
tests/main.py
diraol/yala
6c26d4e3f3aee273332349ff6d4bb7c9841daaa7
[ "MIT" ]
null
null
null
tests/main.py
diraol/yala
6c26d4e3f3aee273332349ff6d4bb7c9841daaa7
[ "MIT" ]
null
null
null
"""Tests for the main module.""" import unittest from unittest.mock import Mock, patch from yala.main import LinterRunner class TestLinterRunner(unittest.TestCase): """Test the LinterRunner class.""" @patch('yala.main.Config') def test_chosen_not_found(self, mock_config): """Should print an erro...
36.534884
78
0.670274
03e4378f6204a8e109cdbcaef9e9b59974e3946a
144
py
Python
tests/test_smithsonian_queri.py
QMSS-G5072-2020/final_project_zhang_alysandra
591bb68442c231f972fc0e83a26360e643d1a3ca
[ "MIT" ]
null
null
null
tests/test_smithsonian_queri.py
QMSS-G5072-2020/final_project_zhang_alysandra
591bb68442c231f972fc0e83a26360e643d1a3ca
[ "MIT" ]
1
2020-12-18T21:58:49.000Z
2020-12-27T23:37:11.000Z
tests/test_smithsonian_queri.py
QMSS-G5072-2020/final_project_zhang_alysandra
591bb68442c231f972fc0e83a26360e643d1a3ca
[ "MIT" ]
null
null
null
from smithsonian_queri import __version__ from smithsonian_queri import smithsonian_queri def test_version(): assert __version__ == '0.1.0'
28.8
47
0.8125