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
1c0159761ef58e6ac81695714f77d320ededbcd8
1,682
py
Python
commands/unluckyflippers.py
Dabomstew/goldenrod
36c4f9e5321788779840371b09a78cc6b26b38b1
[ "MIT" ]
2
2015-05-20T00:42:03.000Z
2015-05-23T04:18:42.000Z
commands/unluckyflippers.py
Dabomstew/goldenrod
36c4f9e5321788779840371b09a78cc6b26b38b1
[ "MIT" ]
null
null
null
commands/unluckyflippers.py
Dabomstew/goldenrod
36c4f9e5321788779840371b09a78cc6b26b38b1
[ "MIT" ]
null
null
null
import config import random import datetime, time def execute(parser, bot, user, args): topwhat = 5 try: topwhat = int(args) except ValueError: topwhat = 5 if topwhat < 1: topwhat = 1 if topwhat > 10: bot.addressUser(user, "For the full unluc...
43.128205
233
0.649822
1c0184344d3d932d0c32f8eba44b1fef8dce3ae3
1,666
py
Python
utils/lib_ros_point_cloud_pub_and_sub.py
dmasatoumae/tsdf_integration_ros
82a455bc41688635228507c36fcb5e6b6c443be1
[ "MIT" ]
8
2019-12-23T09:42:38.000Z
2021-09-06T20:49:30.000Z
utils/lib_ros_point_cloud_pub_and_sub.py
felixchenfy/ros_pub_and_sub_rgbd_and_cloud
28e481689e81a08c491f859a78c0058c86d4ebee
[ "MIT" ]
null
null
null
utils/lib_ros_point_cloud_pub_and_sub.py
felixchenfy/ros_pub_and_sub_rgbd_and_cloud
28e481689e81a08c491f859a78c0058c86d4ebee
[ "MIT" ]
null
null
null
''' Publisher/Subscriber for point cloud. ''' from lib_cloud_conversion_between_Open3D_and_ROS import convertCloudFromOpen3dToRos, convertCloudFromRosToOpen3d from sensor_msgs.msg import PointCloud2 import rospy import queue class PointCloudPublisher(object): def __init__(self, topic_name): self._pub ...
32.666667
112
0.687875
1c01d3df3d9169fee87ffeaa4e0fb60ac3f07b66
366
py
Python
projects/configs/_base_/schedules/schedule_1x.py
jshilong/Group-R-CNN
31ec3eb32c0c1004138a4457b52a4ce822d99248
[ "Apache-2.0" ]
106
2022-02-14T13:04:46.000Z
2022-03-30T03:19:45.000Z
projects/configs/_base_/schedules/schedule_1x.py
jshilong/Group-R-CNN
31ec3eb32c0c1004138a4457b52a4ce822d99248
[ "Apache-2.0" ]
2
2022-03-08T07:19:18.000Z
2022-03-29T15:45:09.000Z
projects/configs/_base_/schedules/schedule_1x.py
jshilong/Group-R-CNN
31ec3eb32c0c1004138a4457b52a4ce822d99248
[ "Apache-2.0" ]
2
2022-03-15T05:40:29.000Z
2022-03-17T11:50:35.000Z
# optimizer optimizer = dict(type='SGD', lr=0.02, momentum=0.9, weight_decay=0.0001) optimizer_config = dict(grad_clip=None) # learning policy lr_config = dict(policy='step', warmup='linear', warmup_iters=500, warmup_ratio=0.001, step=[8, 11]) runner =...
33.272727
72
0.60929
1c01f225d27253d8c07306e0e71a2bf482de02c7
9,870
py
Python
src/sage/plot/plot3d/revolution_plot3d.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/plot/plot3d/revolution_plot3d.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/plot/plot3d/revolution_plot3d.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
""" Surfaces of revolution AUTHORS: - Oscar Gerardo Lazo Arjona (2010): initial version. """ #***************************************************************************** # Copyright (C) 2010 Oscar Gerardo Lazo Arjona algebraicamente@gmail.com # # Distributed under the terms of the GNU General Public License...
35.890909
154
0.582979
1c01f9fca8c35ba55ab918e64a64f88ae9af5cbe
970
py
Python
jrnl/plugins/util.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
jrnl/plugins/util.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
jrnl/plugins/util.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 from __future__ import absolute_import, unicode_literals def get_tags_count(journal): """Returns a set of tuples (count, tag) for all tags present in the journal.""" # Astute reader: should the following line leave you as puzzled as me the first time # I came acros...
34.642857
95
0.651546
1c020e9e2ea2bac71a383bfa9d2293cfea894909
2,859
py
Python
avatar/relgan/utils/utils.py
Julian-Theis/AVATAR
24fcd6eaa26f413be528a160d865d5d7e49a780b
[ "MIT" ]
7
2020-12-22T12:09:14.000Z
2022-03-29T12:50:35.000Z
avatar/relgan/utils/utils.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
10
2020-11-13T17:45:59.000Z
2022-02-10T00:50:38.000Z
avatar/relgan/utils/utils.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
2
2020-03-26T22:27:27.000Z
2020-07-07T22:36:41.000Z
import numpy as np import tensorflow as tf import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import os import pprint from avatar.relgan.utils.text_process import * pp = pprint.PrettyPrinter() def generate_samples(sess, gen_x, batch_size, generated_num, output_file=None, get_code=True): # Ge...
33.635294
100
0.674362
1c02472de2ead5864f9b20f364e342487b2036b5
13,543
py
Python
src/Rect/scripts/rebuild_Rect.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
3
2019-11-26T05:33:47.000Z
2020-05-18T06:49:41.000Z
src/Rect/scripts/rebuild_Rect.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
src/Rect/scripts/rebuild_Rect.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
#!python3 # -*- coding:utf-8 -*- import os import sys import time import ctypes import shutil import subprocess IsPy3 = sys.version_info[0] >= 3 if IsPy3: import winreg else: import codecs import _winreg as winreg BuildType = 'Release' IsRebuild = True Build = 'Rebuild' Update = False Copy = False CleanAl...
38.042135
195
0.594551
1c0284631c4684709b95e94c4bfb916c11e79393
531
py
Python
tests/test_opensearch_cli.py
Hoboneer/surfraw-elvis-generator
1170c524ad4f007e5e82b9d7efc0dd101f4d685d
[ "Apache-2.0" ]
10
2020-06-13T13:09:49.000Z
2021-01-21T15:09:07.000Z
tests/test_opensearch_cli.py
Hoboneer/surfraw-elvis-generator
1170c524ad4f007e5e82b9d7efc0dd101f4d685d
[ "Apache-2.0" ]
39
2020-06-28T05:03:24.000Z
2021-02-28T04:42:55.000Z
tests/test_opensearch_cli.py
Hoboneer/surfraw-elvis-generator
1170c524ad4f007e5e82b9d7efc0dd101f4d685d
[ "Apache-2.0" ]
1
2020-12-07T02:01:06.000Z
2020-12-07T02:01:06.000Z
from os import EX_UNAVAILABLE from surfraw_tools.opensearch2elvis import main def test_bad_url(caplog_cli_error, placeholder_elvis_name, placeholder_url): exit_code = main( [ placeholder_elvis_name, placeholder_url, ] ) assert ( exit_code == EX_UNAVAILABLE...
24.136364
107
0.679849
1c02a53abf1626a880425bcfb968291dc789562f
6,696
py
Python
src/python/pants/backend/jvm/tasks/checkstyle.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/jvm/tasks/checkstyle.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/backend/jvm/tasks/checkstyle.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os from twitter.common.collections import OrderedSet from pants.backend.jvm.subsystems.checkstyle import Checkstyle as CheckstyleSubsystem from pants.backend.jvm.subsystems.shader...
42.923077
100
0.662336
1c02bc997da3e607efa6d785a741026a0e6f1347
3,249
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_03_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_03_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_03_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 ...
47.779412
130
0.701139
1c02bd22bf6a1d6502edd9709ab9ded6691e7fd2
5,411
py
Python
log_utils.py
Tabrizian/learning-to-quantize
545ef7075ff01cbb218600878943554954cef53f
[ "Apache-2.0" ]
16
2020-10-16T16:21:50.000Z
2021-12-15T06:45:12.000Z
log_utils.py
Tabrizian/learning-to-quantize
545ef7075ff01cbb218600878943554954cef53f
[ "Apache-2.0" ]
null
null
null
log_utils.py
Tabrizian/learning-to-quantize
545ef7075ff01cbb218600878943554954cef53f
[ "Apache-2.0" ]
4
2020-10-27T12:32:28.000Z
2021-04-25T04:43:45.000Z
from collections import OrderedDict, defaultdict import numpy as np from tensorboardX import SummaryWriter import time import torch import os class TBXWrapper(object): def configure(self, logger_name, flush_secs=5, opt=None): self.writer = SummaryWriter(logger_name, flush_secs=flush_secs) self.log...
28.036269
75
0.552393
1c02d6eff5cf64207bea75fccf99cbe6d3e4da6a
448
py
Python
comps/migrations/0029_auto_20200530_0030.py
dlanghorne0428/dancesport-tracker-projec
e55d91a4f03c26d6ee8c28846a809064adfdb158
[ "MIT" ]
null
null
null
comps/migrations/0029_auto_20200530_0030.py
dlanghorne0428/dancesport-tracker-projec
e55d91a4f03c26d6ee8c28846a809064adfdb158
[ "MIT" ]
87
2020-04-15T22:29:03.000Z
2022-01-02T02:21:28.000Z
comps/migrations/0029_auto_20200530_0030.py
dlanghorne0428/dancesport-tracker-projec
e55d91a4f03c26d6ee8c28846a809064adfdb158
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-05-30 00:30 import cloudinary.models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('comps', '0028_auto_20200525_1634'), ] operations = [ migrations.AlterField( model_name='comp', name...
22.4
101
0.631696
1c02ddfad25d99b29523d85002a0a7f7f94de1cd
12,648
py
Python
bin/sub_dock.py
gicsaw/VHTS
dd23cbb0216dd628bb95bf4bb7e93ce49514c89d
[ "MIT" ]
1
2022-01-19T18:37:00.000Z
2022-01-19T18:37:00.000Z
bin/sub_dock.py
AIDrug/VHTS
dd23cbb0216dd628bb95bf4bb7e93ce49514c89d
[ "MIT" ]
null
null
null
bin/sub_dock.py
AIDrug/VHTS
dd23cbb0216dd628bb95bf4bb7e93ce49514c89d
[ "MIT" ]
1
2022-01-19T18:36:42.000Z
2022-01-19T18:36:42.000Z
#!/usr/bin/env python import sys import os import argparse import vhts.pydock as pydock from filelock import FileLock import pandas as pd def get_job_from_list(list_dir): list_file = list_dir + '/list.txt' if not os.path.exists(list_file): job_idx = None return job_idx freeze_lock = FileLo...
35.036011
79
0.630772
1c02e33b38b6f785163882166de6976c107f3a65
21,278
py
Python
appengine/monorail/tracker/issueadmin.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/tracker/issueadmin.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/tracker/issueadmin.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 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 or at # https://developers.google.com/open-source/licenses/bsd """Servlets for issue tracker configuration. These classes implement the Statuses, Labels and ...
36.31058
79
0.718724
1c0305a5b0d6cd3020fbd127f6f15b58ce8b9294
1,017
py
Python
superset/tasks/celery_app.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
108
2018-01-22T11:09:59.000Z
2021-01-15T10:53:04.000Z
superset/tasks/celery_app.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
203
2019-05-31T11:13:10.000Z
2020-03-31T02:50:54.000Z
superset/tasks/celery_app.py
zhwXF/Superset
14c3488c79f8f3cdbd1123e8f7a92f8746c2db09
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
24
2018-01-19T22:54:39.000Z
2020-11-12T13:04:25.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...
36.321429
62
0.774828
1c035e10fec098ca736dbd5faa38c28fd505fde9
12,393
py
Python
examples/linear_elasticity/modal_analysis.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
examples/linear_elasticity/modal_analysis.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
examples/linear_elasticity/modal_analysis.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Modal analysis of a linear elastic block in 2D or 3D. The dimension of the problem is determined by the length of the vector in ``--dims`` option. Optionally, a mesh file name can be given as a positional argument. In that case, the mesh generation options are ignored. The default material ...
38.487578
114
0.588316
1c038e703b819225b1247507d862edca07876d5d
16,355
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_02_preview/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_02_preview/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_02_preview/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
45.684358
251
0.691532
1c0393102e0d47b7214d547c4d61ae6ae5f1d8b1
1,187
py
Python
aws_xray_sdk/core/utils/conversion.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
294
2017-10-10T19:01:04.000Z
2022-03-18T15:52:19.000Z
aws_xray_sdk/core/utils/conversion.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
285
2017-10-20T09:27:21.000Z
2022-03-29T15:33:45.000Z
aws_xray_sdk/core/utils/conversion.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
134
2017-10-11T13:55:17.000Z
2022-03-23T07:21:17.000Z
import logging log = logging.getLogger(__name__) def metadata_to_dict(obj): """ Convert object to dict with all serializable properties like: dict, list, set, tuple, str, bool, int, float, type, object, etc. """ try: if isinstance(obj, dict): metadata = {} for key, ...
32.972222
69
0.556866
1c03cf1e923b8e9885261b79fbcfb230414218d7
12,283
py
Python
microutil/leica/leica.py
Hekstra-Lab/microutil
ab3b7b51754bf90ef35d6eea1c7b35cece638f0e
[ "BSD-3-Clause" ]
2
2021-07-06T05:31:51.000Z
2021-10-05T13:29:59.000Z
microutil/leica/leica.py
Hekstra-Lab/microutil
ab3b7b51754bf90ef35d6eea1c7b35cece638f0e
[ "BSD-3-Clause" ]
16
2021-02-08T22:36:42.000Z
2021-11-01T22:36:02.000Z
microutil/leica/leica.py
Hekstra-Lab/microutil
ab3b7b51754bf90ef35d6eea1c7b35cece638f0e
[ "BSD-3-Clause" ]
null
null
null
# flake8: noqa E741 import glob import re import xml.etree.ElementTree as ET import dask.array as da import matplotlib.pyplot as plt import numpy as np import pandas as pd import tifffile as tiff import xarray as xr from cycler import cycler __all__ = [ "delay_to_wns", "get_standard_metadata", "get_ldm_me...
32.238845
106
0.621509
1c03dd1f4a0eae002a485ec27ea54d2ae4043694
432
py
Python
models/bilstm.py
chris4540/DT2119-Final-Project
a9e665d2fcc91442bcd80171fe557b09fcd71d00
[ "MIT" ]
1
2020-08-19T17:29:53.000Z
2020-08-19T17:29:53.000Z
models/bilstm.py
chris4540/DT2119-Final-Project
a9e665d2fcc91442bcd80171fe557b09fcd71d00
[ "MIT" ]
null
null
null
models/bilstm.py
chris4540/DT2119-Final-Project
a9e665d2fcc91442bcd80171fe557b09fcd71d00
[ "MIT" ]
null
null
null
from .lstm import LSTMClassifier import torch.nn as nn class BiLSTMClassifier(LSTMClassifier): def __init__(self, n_feature, n_class, n_hidden=3, num_layers=1): super().__init__(n_feature, n_class, n_hidden, num_layers) self.lstm = nn.LSTM(input_size=n_feature, hidden_size=n_hidden, ...
48
71
0.706019
1c03f56b518685b5d384dc5fca64182ed2529106
2,366
py
Python
test/test_user_public_list.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
2
2020-01-30T23:28:59.000Z
2020-05-06T16:43:47.000Z
test/test_user_public_list.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
1
2020-10-02T18:00:25.000Z
2020-10-02T18:00:25.000Z
test/test_user_public_list.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.16.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import...
31.131579
88
0.561285
1c03f6c4a20cedac5c8022a08081d89261535b5b
6,399
py
Python
src/alfasim_sdk/_internal/cli.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
null
null
null
src/alfasim_sdk/_internal/cli.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
null
null
null
src/alfasim_sdk/_internal/cli.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
null
null
null
import os import subprocess import sys from pathlib import Path import click from hookman.hookman_generator import HookManGenerator CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"]) plugin_dir_option = click.option( "--plugin-dir", default=os.getcwd(), type=click.Path(exists=True, file_okay=Fa...
32.815385
127
0.692608
1c0410c76184a69c37d0d077aa74cf80a0d0c9e4
3,196
py
Python
python/openpyxl/utils/datetime.py
Aragos/tichu-tournament
4cdf727a30af8820ad56fe3097ec9a8e84892068
[ "MIT" ]
7
2016-12-12T02:29:42.000Z
2020-05-12T21:21:21.000Z
python/openpyxl/utils/datetime.py
Aragos/tichu-tournament
4cdf727a30af8820ad56fe3097ec9a8e84892068
[ "MIT" ]
31
2017-01-05T06:07:28.000Z
2018-05-27T13:13:06.000Z
python/openpyxl/utils/datetime.py
Aragos/tichu-tournament
4cdf727a30af8820ad56fe3097ec9a8e84892068
[ "MIT" ]
3
2017-12-21T23:30:12.000Z
2019-01-03T20:51:52.000Z
from __future__ import absolute_import from __future__ import division # Copyright (c) 2010-2016 openpyxl """Manage Excel date weirdness.""" # Python stdlib imports import datetime from datetime import timedelta, tzinfo from math import isnan import re #from jdcal import ( # gcal2jd, # jd2gcal, # MJD_0 #) ...
26.857143
97
0.656133
1c04148841d39497692f93fc15d8c8396ca2efa6
21,796
py
Python
google/cloud/compute_v1/services/region_operations/transports/rest.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/region_operations/transports/rest.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/region_operations/transports/rest.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
38.85205
105
0.591072
1c0439d6397358a4edec86dda510abe0b0bf821f
336
py
Python
clisops/__version__.py
cehbrecht/clisops
7d80bcbc21ee8a6248f88bb590a1fed33a060bfd
[ "BSD-3-Clause" ]
null
null
null
clisops/__version__.py
cehbrecht/clisops
7d80bcbc21ee8a6248f88bb590a1fed33a060bfd
[ "BSD-3-Clause" ]
null
null
null
clisops/__version__.py
cehbrecht/clisops
7d80bcbc21ee8a6248f88bb590a1fed33a060bfd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # This information is located in its own file so that it can be loaded # without importing the main package when its dependencies are not installed. # See: https://packaging.python.org/guides/single-sourcing-package-version __author__ = "Elle Smith" __email__ = "eleanor.smith@stfc.ac.uk" __vers...
37.333333
77
0.747024
1c0441a78986b3009d57e89473af28461403443e
4,125
py
Python
tests/h/services/nipsa_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
tests/h/services/nipsa_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
tests/h/services/nipsa_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import pytest from h.services.nipsa import NipsaService from h.services.nipsa import nipsa_factory @pytest.mark.usefixtures("users", "reindex_user_annotations") class TestNipsaService: def test_fetch_all_flagged_userids_returns_set_of_userids(self...
30.555556
82
0.689212
1c0476d46e4b20c8529c689cfd5d9ff63a8a3b33
6,475
py
Python
cesiumpy/entities/entity.py
lucas-bremond/cesiumpy
a7dd633194ae798dbc79961e6ff231aa313d8dfc
[ "Apache-2.0" ]
null
null
null
cesiumpy/entities/entity.py
lucas-bremond/cesiumpy
a7dd633194ae798dbc79961e6ff231aa313d8dfc
[ "Apache-2.0" ]
null
null
null
cesiumpy/entities/entity.py
lucas-bremond/cesiumpy
a7dd633194ae798dbc79961e6ff231aa313d8dfc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from __future__ import unicode_literals import collections import traitlets import cesiumpy from cesiumpy.base import _CesiumObject import cesiumpy.entities.cartesian as cartesian import cesiumpy.constants as constants import cesiumpy.time as time import cesiumpy.position as pos...
30.399061
97
0.623938
1c047871f2be3e26413bf9d1607954e747891a23
5,767
py
Python
Recursive/test.py
simon2112/OCR
506ec018dc67832b41979784bfc847e1c7d73480
[ "MIT" ]
5
2020-02-29T09:09:01.000Z
2021-03-16T07:02:52.000Z
Recursive/test.py
simon2112/OCR
506ec018dc67832b41979784bfc847e1c7d73480
[ "MIT" ]
null
null
null
Recursive/test.py
simon2112/OCR
506ec018dc67832b41979784bfc847e1c7d73480
[ "MIT" ]
1
2021-03-16T07:02:53.000Z
2021-03-16T07:02:53.000Z
from parse_args import parse_args import editdistance import numpy as np import tensorflow as tf from cnn import build_cnn from network import build_network from tools import load_img import tools flags = parse_args() class Dataset: def __init__(self,x): self._index_in_epoch = 0 self._epochs_compl...
31.686813
130
0.530258
1c047b3def6148d99d0febe91266d7513f271cda
160
py
Python
utils/status.py
nigelbowden/wlanpi-chat-bot
cedab0e83d6e33d47f66c1a3be202564f95ac408
[ "MIT" ]
null
null
null
utils/status.py
nigelbowden/wlanpi-chat-bot
cedab0e83d6e33d47f66c1a3be202564f95ac408
[ "MIT" ]
null
null
null
utils/status.py
nigelbowden/wlanpi-chat-bot
cedab0e83d6e33d47f66c1a3be202564f95ac408
[ "MIT" ]
null
null
null
import os def get_status(): stream = os.popen('/opt/wlanpi-chat-bot/scripts/probe_status_msg.sh') startup_msg = stream.read() return startup_msg
17.777778
73
0.70625
1c04d0a078b6fa779c579e6befa06a62076cb9de
778
py
Python
python/src/cryptopals/set5/challenge33.py
ocirne/cryptopals
3835bbeef3e521d48814795b94d426139918b9cd
[ "Unlicense" ]
1
2021-02-20T16:38:25.000Z
2021-02-20T16:38:25.000Z
python/src/cryptopals/set5/challenge33.py
ocirne/cryptopals
3835bbeef3e521d48814795b94d426139918b9cd
[ "Unlicense" ]
null
null
null
python/src/cryptopals/set5/challenge33.py
ocirne/cryptopals
3835bbeef3e521d48814795b94d426139918b9cd
[ "Unlicense" ]
null
null
null
import random def challenge33(p, g): a = random.randrange(0, p) b = random.randrange(0, p) A = pow(g, a, p) B = pow(g, b, p) s = pow(B, a, p) r = pow(A, b, p) assert s == r return s p1, g1 = 37, 5 p2 = int( "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024" "e088a67cc740...
23.575758
59
0.714653
1c0519e6ea3a34e2a5845be87b8a9a9c9578eda7
1,645
py
Python
molotov/tests/example8.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
401
2017-01-25T13:42:37.000Z
2022-03-27T21:29:18.000Z
molotov/tests/example8.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
131
2017-01-19T20:34:40.000Z
2022-03-02T12:49:32.000Z
molotov/tests/example8.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
31
2017-01-26T01:18:55.000Z
2022-03-25T15:11:42.000Z
""" This Molotov script uses events to generate a success/failure output """ import json import molotov import time _T = {} def _now(): return time.time() * 1000 @molotov.events() async def record_time(event, **info): if event == "scenario_start": scenario = info["scenario"] index = (info...
28.362069
68
0.45228
1c0525edbd6d9f5dfc5806e4bcf00760215ee826
2,196
py
Python
test/test_bootstrap.py
calebho/gameanalysis
280726a8aa125850b827a1e10b1203e91f515461
[ "Apache-2.0" ]
null
null
null
test/test_bootstrap.py
calebho/gameanalysis
280726a8aa125850b827a1e10b1203e91f515461
[ "Apache-2.0" ]
null
null
null
test/test_bootstrap.py
calebho/gameanalysis
280726a8aa125850b827a1e10b1203e91f515461
[ "Apache-2.0" ]
null
null
null
"""Test bootstrap""" import numpy as np import pytest from gameanalysis import bootstrap from gameanalysis import gamegen from test import utils # pylint: disable=wrong-import-order @pytest.mark.parametrize('num_mixes', [5]) @pytest.mark.parametrize('num_boots', [200]) @pytest.mark.parametrize('base', utils.basic_ga...
37.862069
79
0.715847
1c0557696cfd30b23b7c6297d93416b4a726fdec
4,638
py
Python
libra_client/lbrtypes/validator_verifier.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
libra_client/lbrtypes/validator_verifier.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
libra_client/lbrtypes/validator_verifier.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
1
2022-01-05T06:49:42.000Z
2022-01-05T06:49:42.000Z
from libra_client.canoser import Struct, Uint64 from libra_client.move_core_types.account_address import AccountAddress as Address from libra_client.crypto.ed25519 import Ed25519PublicKey, Ed25519Signature from libra_client.lbrtypes.rustlib import ensure from libra_client.error import LibraError, StatusCode class Vali...
43.345794
154
0.724881
1c057639a2f757a11d50c2915302f90a21187fdf
1,421
py
Python
mturk/story_hit2json.py
didi/MEEP
eb668fe598e40d244f204363d360babbe1fe0dc2
[ "Apache-2.0" ]
17
2020-09-09T02:32:14.000Z
2021-10-01T09:46:40.000Z
mturk/story_hit2json.py
didi/MEEP
eb668fe598e40d244f204363d360babbe1fe0dc2
[ "Apache-2.0" ]
2
2020-12-02T09:10:03.000Z
2020-12-02T20:31:05.000Z
mturk/story_hit2json.py
didi/MEEP
eb668fe598e40d244f204363d360babbe1fe0dc2
[ "Apache-2.0" ]
3
2020-10-10T09:14:43.000Z
2022-01-18T02:36:31.000Z
import argparse import logging import csv import json logging.basicConfig(format='%(asctime)s: %(levelname)s: %(message)s', datefmt='%m/%d/%Y %H:%M:%S', level=logging.INFO) logger = logging.getLogger() def story_hit2json(args): out = [] with open(args.story_hit_csv) as...
30.234043
98
0.581281
1c058fea1bf8c25f60f7edb9db5e84ec0e31cc77
3,456
py
Python
src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/_util.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/_util.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/_util.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
34.217822
94
0.792245
1c05a6ff4e3852f683c4c2684fdfe64b22983ef3
36,310
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_image_versions_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/v2019_12_01/operations/_gallery_image_versions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_image_versions_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.330836
247
0.682319
1c05a88bd3d0155de706e3b17a9b60d088861197
8,632
py
Python
trax/trainer_lib_test.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/trainer_lib_test.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/trainer_lib_test.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.208955
80
0.685357
1c05d9735e57462df173da7c934f1472c9fde457
11,787
py
Python
third_party/WebKit/Tools/Scripts/webkitpy/style/filter.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-07-15T09:50:14.000Z
2020-07-15T09:50:14.000Z
third_party/WebKit/Tools/Scripts/webkitpy/style/filter.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Tools/Scripts/webkitpy/style/filter.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com) # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions...
42.247312
87
0.637397
1c05f5b0c3600353c800fccca57ac7b9b63df556
4,207
py
Python
test/ratmath/test_root_chaser.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
test/ratmath/test_root_chaser.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
test/ratmath/test_root_chaser.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ """ from __future__ import division, print_function, unicode_literals import pytest import numpy as np from wavestate.iirrational.representations.polynomials import chebychev from numpy.polynomial import chebyshev chebroots = chebyshev.chebroots chebfromroots = chebyshev.chebfromroots che...
26.626582
77
0.462562
1c05f77a78f85254aa323e7c0b1d3f976caf3762
1,344
py
Python
tests/metrics/process/test_change_set.py
avandeursen/pydriller
5593cf5ad8cf9ecc3a42505048bc4389055d844c
[ "Apache-2.0" ]
3
2020-08-20T10:27:13.000Z
2021-11-02T20:28:16.000Z
tests/metrics/process/test_change_set.py
avandeursen/pydriller
5593cf5ad8cf9ecc3a42505048bc4389055d844c
[ "Apache-2.0" ]
null
null
null
tests/metrics/process/test_change_set.py
avandeursen/pydriller
5593cf5ad8cf9ecc3a42505048bc4389055d844c
[ "Apache-2.0" ]
null
null
null
import pytest from datetime import datetime from pydriller.metrics.process.change_set import ChangeSet TEST_COMMIT_DATA = [ ('test-repos/pydriller', 'ab36bf45859a210b0eae14e17683f31d19eea041', '71e053f61fc5d31b3e31eccd9c79df27c31279bf', 13, 8) ] @pytest.mark.parametrize('path_to_repo, from_commit, to_commit, expe...
35.368421
123
0.706845
1c06411a6610a79d0e15806c6943a1e4647ca0c1
5,611
py
Python
SuperGlue-pytorch/load_data_D2net.py
Aniket-Gujarathi/d2-net
c716d37087390af04c8843452dadfa47a64cfbe2
[ "BSD-3-Clause-Clear" ]
null
null
null
SuperGlue-pytorch/load_data_D2net.py
Aniket-Gujarathi/d2-net
c716d37087390af04c8843452dadfa47a64cfbe2
[ "BSD-3-Clause-Clear" ]
null
null
null
SuperGlue-pytorch/load_data_D2net.py
Aniket-Gujarathi/d2-net
c716d37087390af04c8843452dadfa47a64cfbe2
[ "BSD-3-Clause-Clear" ]
null
null
null
import numpy as np import torch import os import cv2 import math import datetime import random import sys sys.path.append('../') from lib.save_features import extract from lib.model_test import D2Net from lib.model_test import D2Net from lib.pyramid import process_multiscale from scipy.spatial.distance import cdist fr...
34.635802
126
0.58011
1c0641b0332a07714c684287f0a3ead5a8743e8d
7,926
py
Python
openbb_terminal/reports/reports_controller.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/reports/reports_controller.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/reports/reports_controller.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
"""Reports Controller Module.""" __docformat__ = "numpy" import logging # pylint: disable=R1732 import os import webbrowser from ast import literal_eval from datetime import datetime from typing import List import papermill as pm from prompt_toolkit.completion import NestedCompleter from openbb_terminal import feat...
34.017167
106
0.539112
1c072be88278b6be3b3745715d3db4e8fb6b4aa9
823
py
Python
pystol-operator/tests/test_sample.py
ccamacho/pystol
7925461c324975c8334009e3b878debcf056698b
[ "Apache-2.0" ]
17
2020-03-18T13:49:23.000Z
2022-02-17T04:38:19.000Z
pystol-operator/tests/test_sample.py
ccamacho/pystol
7925461c324975c8334009e3b878debcf056698b
[ "Apache-2.0" ]
2
2021-05-18T07:44:34.000Z
2021-10-07T13:49:57.000Z
pystol-operator/tests/test_sample.py
ccamacho/pystol
7925461c324975c8334009e3b878debcf056698b
[ "Apache-2.0" ]
44
2019-10-23T20:26:31.000Z
2021-11-12T12:19:41.000Z
#!/usr/bin/env python """ Copyright 2019 Pystol (pystol.org). 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 agre...
25.71875
73
0.703524
1c0752514a38e03d6d1dedb542b7b7e5b162797e
232
py
Python
tests/test_imports.py
cnheider/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
1
2018-11-30T09:14:28.000Z
2018-11-30T09:14:28.000Z
tests/test_imports.py
aivclab/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
49
2019-04-02T12:06:10.000Z
2019-08-31T14:30:12.000Z
tests/test_imports.py
cnHeider/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
1
2019-03-16T13:56:03.000Z
2019-03-16T13:56:03.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 01/08/2020 """ __all__ = [] def test_import(): import warg print(warg.__version__)
13.647059
39
0.577586
1c077c4ea34a7cf24a4a9d8389ed64b323804bdf
3,945
py
Python
bsz-lightgrain/bsz-lightgrain.py
Beinsezii/bsz-gimp-plugins
bb735ddbf47fa4f2d383f4e359518c0809ab6e09
[ "MIT" ]
6
2020-12-03T14:50:32.000Z
2022-02-04T03:15:44.000Z
bsz-lightgrain/bsz-lightgrain.py
Beinsezii/bsz-gimp-plugins
bb735ddbf47fa4f2d383f4e359518c0809ab6e09
[ "MIT" ]
null
null
null
bsz-lightgrain/bsz-lightgrain.py
Beinsezii/bsz-gimp-plugins
bb735ddbf47fa4f2d383f4e359518c0809ab6e09
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Gegl Operation references: http://www.gegl.org/operations/ https://gitlab.gnome.org/GNOME/gegl/-/tree/master/operations If on Linux: $ gegl --list-all $ gegl --info "operation-name" Also build the .gir files using g-ir-doc-tool for additional insight. If the docs do...
31.309524
78
0.646641
1c07a6c6de6b0001808a8fbee83425b3d16da8f6
1,618
py
Python
reinvent_models/link_invent/networks/attention_layer.py
GT4SD/-reinvent_models
e1cf00d1b24fe5f39354e34829adc25460da84e2
[ "MIT" ]
null
null
null
reinvent_models/link_invent/networks/attention_layer.py
GT4SD/-reinvent_models
e1cf00d1b24fe5f39354e34829adc25460da84e2
[ "MIT" ]
1
2022-03-07T12:18:00.000Z
2022-03-07T12:18:00.000Z
reinvent_models/link_invent/networks/attention_layer.py
GT4SD/reinvent_models
e1cf00d1b24fe5f39354e34829adc25460da84e2
[ "MIT" ]
null
null
null
import math import torch from torch import nn as tnn class AttentionLayer(tnn.Module): def __init__(self, num_dimensions: int): super(AttentionLayer, self).__init__() self.num_dimensions = num_dimensions self._attention_linear = tnn.Sequential( tnn.Linear(self...
42.578947
114
0.646477
1c07ef9250b321c31f06b5098b6889bc6eb4b834
2,456
py
Python
converters/download_rgsummary.py
bbockelm/topology
16404a6751b81597ab2117f0e983ac063085ff34
[ "Apache-2.0" ]
null
null
null
converters/download_rgsummary.py
bbockelm/topology
16404a6751b81597ab2117f0e983ac063085ff34
[ "Apache-2.0" ]
null
null
null
converters/download_rgsummary.py
bbockelm/topology
16404a6751b81597ab2117f0e983ac063085ff34
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from subprocess import Popen, PIPE from argparse import ArgumentParser import os import sys import urllib.parse import urllib.request YES, NO, ONLY = "yes", "no", "only" params = { "all_resources": "on", "summary_attrs_showservice": "1", # "summary_attrs_showrsvstatus": "1", # ...
30.7
121
0.684446
1c084ef4aee389a90c26eb8c8a4e9b4e1fbb5106
24,809
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/volume/colorbar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/volume/colorbar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/volume/colorbar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): # font # ---- @property def font(self): """ Sets this color bar's title font. Note that the title's font used to be set by the now depr...
34.504868
88
0.564835
1c08ac33f1da4f951e0e941c33649b0204412327
2,841
py
Python
src/analytics/video_games/scraper/vgchartz_weekly_sales_data.py
manjotms10/google-trends-analytics
718311ba92d880623eb85cf5c76423116faaade2
[ "MIT" ]
6
2020-03-04T13:33:37.000Z
2021-06-25T12:08:21.000Z
src/analytics/video_games/scraper/vgchartz_weekly_sales_data.py
manjotms10/google-trends-analytics
718311ba92d880623eb85cf5c76423116faaade2
[ "MIT" ]
3
2021-03-31T19:31:51.000Z
2021-12-13T20:26:19.000Z
src/analytics/video_games/scraper/vgchartz_weekly_sales_data.py
manjotms10/google-trends-analytics
718311ba92d880623eb85cf5c76423116faaade2
[ "MIT" ]
null
null
null
import requests import pandas import numpy as np from bs4 import BeautifulSoup def weekly_sales_scrape(weeks): ''' this function is to get the weekly sales data from http://www.vgchartz.com/weekly/(week code)/Global/, where (weekcode) need to be specified by the week you are looking for. This funct...
37.88
122
0.56811
1c08c8a8aabd2c0a9b40ae674e2de5e9e84c31c4
1,456
py
Python
parsl/tests/test_docs/test_workflow4.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
null
null
null
parsl/tests/test_docs/test_workflow4.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
null
null
null
parsl/tests/test_docs/test_workflow4.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
null
null
null
import os import parsl from parsl.app.app import bash_app, python_app from parsl.tests.configs.local_threads import config from parsl.data_provider.files import File # parsl.set_stream_logger() @bash_app def generate(outputs=[]): return "echo $(( RANDOM % (10 - 5 + 1 ) + 5 )) &> {o}".format(o=outputs[0]) @bas...
25.103448
91
0.627747
1c08fbe455d81b5693a7a31165f8e15979c0bd70
17,589
py
Python
ocimatic/dataset.py
OCIoficial/ocimatic
8e0a134059b2f2d0a2f3ef68253bb7fc046e6c84
[ "Beerware" ]
null
null
null
ocimatic/dataset.py
OCIoficial/ocimatic
8e0a134059b2f2d0a2f3ef68253bb7fc046e6c84
[ "Beerware" ]
14
2016-11-06T20:22:23.000Z
2021-12-09T21:19:40.000Z
ocimatic/dataset.py
OCIoficial/ocimatic
8e0a134059b2f2d0a2f3ef68253bb7fc046e6c84
[ "Beerware" ]
1
2020-10-11T04:47:41.000Z
2020-10-11T04:47:41.000Z
import os import random import re import shlex import shutil import string import subprocess import tempfile from pathlib import Path from typing import Any, Dict, List, Optional, Tuple from zipfile import ZipFile import ocimatic from ocimatic import ui from ocimatic.checkers import Checker from ocimatic.runnable impo...
40.249428
99
0.551822
1c0902a5b67e49d1a6918a2739ac88fdbafb2304
21,461
py
Python
Common/pc_util.py
qapture/Dis-PU
539abcfb507af38fa6e7e881db9ab8193a1a8ab7
[ "Apache-2.0" ]
41
2021-03-04T02:40:51.000Z
2022-03-30T03:39:17.000Z
Common/pc_util.py
qapture/Dis-PU
539abcfb507af38fa6e7e881db9ab8193a1a8ab7
[ "Apache-2.0" ]
9
2021-03-22T09:23:37.000Z
2022-03-05T08:20:57.000Z
Common/pc_util.py
qapture/Dis-PU
539abcfb507af38fa6e7e881db9ab8193a1a8ab7
[ "Apache-2.0" ]
6
2021-05-15T03:19:48.000Z
2022-02-21T22:57:47.000Z
""" Utility functions for processing point clouds. Author: Charles R. Qi, Hao Su Date: November 2016 """ import os import sys from matplotlib import pyplot as plt from matplotlib import cm from mpl_toolkits.mplot3d import Axes3D from open3d import * import open3d from sklearn.neighbors import NearestNeighbors BASE_D...
36.251689
134
0.607241
1c090353d4aec8df42a14608059801f384208294
3,567
py
Python
accera/python/accera/lang/Layout.py
microsoft/Accera
4ec583857853cfb318634aef9e671f73cedba662
[ "MIT" ]
19
2022-01-26T18:12:54.000Z
2022-03-25T10:37:21.000Z
accera/python/accera/lang/Layout.py
microsoft/Accera
4ec583857853cfb318634aef9e671f73cedba662
[ "MIT" ]
4
2022-01-28T00:31:48.000Z
2022-02-25T14:28:32.000Z
accera/python/accera/lang/Layout.py
microsoft/Accera
4ec583857853cfb318634aef9e671f73cedba662
[ "MIT" ]
2
2022-01-26T14:14:45.000Z
2022-02-01T06:08:17.000Z
#################################################################################################### # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root for license information. ####################################################################...
41.964706
145
0.624054
1c0921eaffe83e8e4ca9a492523df841d68a64d4
11,500
py
Python
salt/pillar/s3.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
1
2020-09-16T21:31:02.000Z
2020-09-16T21:31:02.000Z
salt/pillar/s3.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
salt/pillar/s3.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Copy pillar data from a bucket in Amazon S3 The S3 pillar can be configured in the master config file with the following options .. code-block:: yaml ext_pillar: - s3: bucket: my.fancy.pillar.bucket keyid: KASKFJWAKJASJKDAJKSD key: ksladfDLKDALSFKSD...
30.831099
86
0.651391
1c093e4b60da67db9b0b2c103edc4283d8b7090d
106
py
Python
mwe_discov_eval/databases/__init__.py
nicolaCirillo/mwe_discov_eval
36f544a802f68d7e274627d57a65531ff23c4c5e
[ "MIT" ]
null
null
null
mwe_discov_eval/databases/__init__.py
nicolaCirillo/mwe_discov_eval
36f544a802f68d7e274627d57a65531ff23c4c5e
[ "MIT" ]
null
null
null
mwe_discov_eval/databases/__init__.py
nicolaCirillo/mwe_discov_eval
36f544a802f68d7e274627d57a65531ff23c4c5e
[ "MIT" ]
null
null
null
from .NgramCounter import NgramCounter from .NgramDb import NgramDb from .EmbeddingsDb import EmbeddingsDb
35.333333
38
0.867925
1c09603f501b5864c6070393fdaea932209fa511
1,287
py
Python
nucleotides/command/fetch_data.py
michaelbarton/nucleotides-cli
04c94773a9186dc67a887e91e3cdc9ba4a41d3fc
[ "BSD-3-Clause-LBNL" ]
null
null
null
nucleotides/command/fetch_data.py
michaelbarton/nucleotides-cli
04c94773a9186dc67a887e91e3cdc9ba4a41d3fc
[ "BSD-3-Clause-LBNL" ]
null
null
null
nucleotides/command/fetch_data.py
michaelbarton/nucleotides-cli
04c94773a9186dc67a887e91e3cdc9ba4a41d3fc
[ "BSD-3-Clause-LBNL" ]
null
null
null
import os.path import boltons.fileutils as fu import nucleotides.util as util import nucleotides.api_client as api import nucleotides.s3 as s3 import nucleotides.bio as bio MIN_CONTIG_LENGTH = 1000 EXTENSION_MAPPING = { 'short_read_fastq' : '.fq.gz', 'reference_fasta' ...
33.868421
85
0.648796
1c0968a9a3b23772f0a7c6c79d7bfa5a8632786a
10,414
py
Python
Code/linkedlist.py
AnniePawl/Core-Data-Structures
5e7112f7da68e7cf4af1c5dbf0a56a41656abcf6
[ "MIT" ]
null
null
null
Code/linkedlist.py
AnniePawl/Core-Data-Structures
5e7112f7da68e7cf4af1c5dbf0a56a41656abcf6
[ "MIT" ]
1
2020-02-15T18:03:10.000Z
2020-02-15T18:03:10.000Z
Code/linkedlist.py
AnniePawl/Core-Data-Structures
5e7112f7da68e7cf4af1c5dbf0a56a41656abcf6
[ "MIT" ]
1
2020-03-16T07:31:10.000Z
2020-03-16T07:31:10.000Z
#!python # Initialize Node Class class Node(object): def __init__(self, data): """Initialize this node with the given data.""" self.data = data self.next = None def __repr__(self): """Return a string representation of this node.""" return 'Node({!r})'.format(self.data)...
41.991935
109
0.597273
1c098c1c334002774a83d0424ca54a9f27e72c8c
918
py
Python
binarysearch.io/second_place.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
binarysearch.io/second_place.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
binarysearch.io/second_place.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
""" Problem Link: https://binarysearch.io/problems/Second-Place """ # class Tree: # def __init__(self, val, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def solve(self, root): # Write your code here if root is None: ...
27
65
0.442266
1c099212452f08a114a85cb96f6e953436bfec6a
16
py
Python
utils/__init__.py
lpetre-ulb/vfatqc-python-scripts
1f11c736de630deba24c7da927eeb9746206db93
[ "MIT" ]
1
2017-07-10T12:48:27.000Z
2017-07-10T12:48:27.000Z
utils/__init__.py
lpetre-ulb/vfatqc-python-scripts
1f11c736de630deba24c7da927eeb9746206db93
[ "MIT" ]
200
2016-11-11T16:13:22.000Z
2020-05-27T13:41:39.000Z
utils/__init__.py
lpetre-ulb/vfatqc-python-scripts
1f11c736de630deba24c7da927eeb9746206db93
[ "MIT" ]
20
2016-09-14T12:41:46.000Z
2020-02-10T19:46:04.000Z
name = "vfatqc"
8
15
0.625
1c09948579ca13249c473583fbe8dca461375c72
11,938
py
Python
examples/simple_parser/parser.py
CodeForPhilly/ujs-docket-parsing
36c402a6fc8f7c2d5cc9b87cf4790d9cb3dc703e
[ "MIT" ]
null
null
null
examples/simple_parser/parser.py
CodeForPhilly/ujs-docket-parsing
36c402a6fc8f7c2d5cc9b87cf4790d9cb3dc703e
[ "MIT" ]
null
null
null
examples/simple_parser/parser.py
CodeForPhilly/ujs-docket-parsing
36c402a6fc8f7c2d5cc9b87cf4790d9cb3dc703e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import logging from datetime import date import json from parsimonious.exceptions import ParseError from parsimonious.grammar import Grammar from parsimonious.nodes import Node, NodeVisitor from pathlib import Path import pdftotext import sys logger = logging.Logger(__name__)...
28.491647
87
0.602865
1c099fca291efc9de3a4fa897131148e76f53a9e
13,093
py
Python
h/services/oauth_validator.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
h/services/oauth_validator.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
h/services/oauth_validator.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import hmac from oauthlib.oauth2 import InvalidClientIdError, RequestValidator from sqlalchemy.exc import StatementError from h import models from h.models.auth_client import GrantType as AuthClientGrantType from h.services.oauth_provid...
36.168508
107
0.656152
1c09aa897784dba7f82ffdedb5de94016c993f4c
1,091
py
Python
setup.py
newsdev/nyt-clerk
2c09c8be80bb6ff034f54e44b085e4248b7531ea
[ "Apache-2.0" ]
40
2015-08-25T15:01:03.000Z
2020-11-14T09:18:38.000Z
setup.py
lennybronner/nyt-clerk
2c09c8be80bb6ff034f54e44b085e4248b7531ea
[ "Apache-2.0" ]
13
2015-08-26T19:24:06.000Z
2017-02-01T03:32:00.000Z
setup.py
newsdev/nyt-clerk
2c09c8be80bb6ff034f54e44b085e4248b7531ea
[ "Apache-2.0" ]
4
2015-08-26T04:40:49.000Z
2019-06-20T14:16:49.000Z
import os.path try: from setuptools import setup except ImportError: from distutils.core import setup def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setup( name='nyt-clerk', version='0.1.21', author='Jeremy Bowers', author_email='jeremy.bowers@...
31.171429
130
0.63978
1c09b7302921a85a52273093b58e4ed7df0ff448
4,326
py
Python
dpa/user/__init__.py
Clemson-DPA/dpa-pipe
2482b8a0fd96dc19c0be4e82c3eaf0508914a968
[ "MIT" ]
55
2015-07-15T02:33:55.000Z
2020-12-28T08:02:54.000Z
dpa/user/__init__.py
Clemson-DPA/dpa-pipe
2482b8a0fd96dc19c0be4e82c3eaf0508914a968
[ "MIT" ]
5
2015-07-11T03:21:10.000Z
2016-12-27T12:20:07.000Z
dpa/user/__init__.py
Clemson-DPA/dpa-pipe
2482b8a0fd96dc19c0be4e82c3eaf0508914a968
[ "MIT" ]
12
2015-07-08T04:48:39.000Z
2020-06-27T11:35:58.000Z
# ----------------------------------------------------------------------------- # Module: dpa.user # Author: Josh Tomlinson (jtomlin@clemson.edu) # ----------------------------------------------------------------------------- """Classes and functions related to DPA pipeline users Classes ------- User Read-only int...
30.680851
79
0.417938
1c09b7412f150e623c50f1724c2487d49e66fc14
1,230
py
Python
00_LIBRARIES/01_PANDAS/03_pandas_missing_data.py
san99tiago/ML_BASICS
ebd51827f7dd427c848b5c8e1d4bfd017d2fb56f
[ "MIT" ]
2
2021-03-18T06:07:09.000Z
2021-05-08T22:14:14.000Z
00_LIBRARIES/01_PANDAS/03_pandas_missing_data.py
san99tiago/ML_BASICS
ebd51827f7dd427c848b5c8e1d4bfd017d2fb56f
[ "MIT" ]
null
null
null
00_LIBRARIES/01_PANDAS/03_pandas_missing_data.py
san99tiago/ML_BASICS
ebd51827f7dd427c848b5c8e1d4bfd017d2fb56f
[ "MIT" ]
null
null
null
# HOW TO HANDLE MISSING DATA IN PANDAS # Santiago Garcia Arango, June 2020 import numpy as np import pandas as pd # Create a dictionary with missing values (to show missing data examples) dictionary = { "A": [1, 2, np.nan, 5], "B": [5, np.nan, np.nan, 2], "C": [1, 2, 3, 4], "D": [3, np.nan, 3, 5] ...
33.243243
78
0.65122
1c09b8deca3356c981e92502fa09050aec473823
2,333
py
Python
datar/base/complex.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
datar/base/complex.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
datar/base/complex.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
"""Functions related to complex numbers""" from typing import Any import numpy from pandas.core.dtypes.common import is_complex_dtype from pipda import register_func from ..core.utils import register_numpy_func_x from ..core.types import ComplexOrIter from ..core.contexts import Context from .testing import _regist...
20.286957
70
0.64252
1c09d47a035b835e442f99f5c3e56e6cfa7cde43
24,658
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/carpet/aaxis/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/carpet/aaxis/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/carpet/aaxis/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): # font # ---- @property def font(self): """ Sets this axis' title font. Note that the title's font used to be set by the now deprecated...
34.390516
85
0.564198
1c09e559a18bb8dbf178498e574d3d661379340e
1,319
py
Python
datastructures/circular_buffer/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
datastructures/circular_buffer/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
datastructures/circular_buffer/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
class BufferFullException(Exception): pass class BufferEmptyException(Exception): pass class CircularBuffer(object): def __init__(self, size): self.buffer = bytearray(size) self.read_point = 0 self.write_point = 0 def _update_buffer(self, data): """ Protected...
28.673913
70
0.61486
1c0a1063e1839031e99afef98b206f5e41277ed4
19,195
py
Python
multicurrency/peso.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
2
2021-03-26T18:19:57.000Z
2021-07-27T01:15:50.000Z
multicurrency/peso.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
multicurrency/peso.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # # copyright: 2020-2022, Frederico Martins # author: Frederico Martins <http://github.com/fscm> # license: SPDX-License-Identifier: MIT """Peso currency representation(s).""" from decimal import Decimal from typing import Optional, Union from .currency import Currency class ArgentinePeso(Cu...
36.080827
77
0.594217
1c0a1219dcce8e93c0bb36d7cedc1c848a725acb
3,968
py
Python
tests/tests_plots/test_render_img.py
juniors90/Flask-Plots
1ab233217dc37b1cd2ea727af5d3a7433184863c
[ "MIT" ]
1
2022-01-21T16:05:06.000Z
2022-01-21T16:05:06.000Z
tests/tests_plots/test_render_img.py
juniors90/Flask-Plots
1ab233217dc37b1cd2ea727af5d3a7433184863c
[ "MIT" ]
null
null
null
tests/tests_plots/test_render_img.py
juniors90/Flask-Plots
1ab233217dc37b1cd2ea727af5d3a7433184863c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This file is part of the # Flask-Plots Project # https://github.com/juniors90/Flask-Plots/ # Copyright (c) 2021, Ferreira Juan David # License: MIT # Full Text: # https://github.com/juniors90/Flask-Plots/blob/master/LICENSE # =================...
35.115044
78
0.57006
1c0a1a1cdece4df493ca1aa8f3364715b32cec79
15,422
py
Python
pyrex/kernel.py
abigailbishop/pyrex
10ba2e9f4c8820f4fcf5f00bd866927dacb0b2b5
[ "MIT" ]
6
2018-06-19T16:01:35.000Z
2020-05-21T20:02:53.000Z
pyrex/kernel.py
bhokansonfasig/pyrex
8b2abc954f2cf4945424042f33847b783c72dcfa
[ "MIT" ]
4
2018-01-19T14:52:33.000Z
2021-09-02T17:20:07.000Z
pyrex/kernel.py
abigailbishop/pyrex
10ba2e9f4c8820f4fcf5f00bd866927dacb0b2b5
[ "MIT" ]
5
2018-01-19T14:49:16.000Z
2021-01-21T12:34:59.000Z
""" Module for the simulation kernel. The simulation kernel is responsible for running through the simulation chain by controlling classes and objects which will independently produce neutrinos, create corresponding signals, propagate the signals to antennas, and handle antenna processing of the signals. """ from co...
46.035821
84
0.609843
1c0a3bd18ef0fadf25d6fa2407a8dbac580cfc3f
9,632
py
Python
nemo/collections/asr/parts/submodules/tdnn_attention.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
2
2021-06-23T19:16:59.000Z
2022-02-23T18:49:07.000Z
nemo/collections/asr/parts/submodules/tdnn_attention.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
null
null
null
nemo/collections/asr/parts/submodules/tdnn_attention.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
1
2022-01-07T03:39:11.000Z
2022-01-07T03:39:11.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.4
126
0.635797
1c0a6ee95a5c3d20203c277a14841f970b8c97ed
11,483
py
Python
lib/rucio/tests/test_rse_expression_parser.py
elichad/rucio
0705e4124e18c853c4661f85e00238cb0c6bd750
[ "Apache-2.0" ]
null
null
null
lib/rucio/tests/test_rse_expression_parser.py
elichad/rucio
0705e4124e18c853c4661f85e00238cb0c6bd750
[ "Apache-2.0" ]
null
null
null
lib/rucio/tests/test_rse_expression_parser.py
elichad/rucio
0705e4124e18c853c4661f85e00238cb0c6bd750
[ "Apache-2.0" ]
null
null
null
# Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: # - Martin Barisits, <m...
51.493274
226
0.696682
1c0a74c803eced8810f06e8588895124ebfb2b74
15,290
py
Python
va_explorer/va_data_management/tests/test_views.py
VA-Explorer/va_explorer
e43cfbff0ce5209c12134b7ac4ce439db6fc87a2
[ "Apache-2.0" ]
null
null
null
va_explorer/va_data_management/tests/test_views.py
VA-Explorer/va_explorer
e43cfbff0ce5209c12134b7ac4ce439db6fc87a2
[ "Apache-2.0" ]
125
2020-10-07T12:00:15.000Z
2022-03-31T21:29:21.000Z
va_explorer/va_data_management/tests/test_views.py
VA-Explorer/va_explorer
e43cfbff0ce5209c12134b7ac4ce439db6fc87a2
[ "Apache-2.0" ]
2
2020-10-29T16:08:42.000Z
2020-12-08T19:03:41.000Z
import pytest from django.test import Client from django.contrib.auth.models import Permission from va_explorer.users.models import User from va_explorer.va_data_management.models import VerbalAutopsy from va_explorer.tests.factories import GroupFactory, VerbalAutopsyFactory, UserFactory, LocationFactory, \ FieldWo...
48.694268
157
0.745716
1c0ab03d41f1aeeb6e051414964962fed7455b60
4,695
py
Python
scraper/configuration.py
Stimson-Center/stimson-web-scraper
c2e6c3ae4abb8e8697b10d844bfb0fa3d305d05f
[ "MIT" ]
1
2020-09-11T01:13:27.000Z
2020-09-11T01:13:27.000Z
scraper/configuration.py
Stimson-Center/stimson-web-scraper
c2e6c3ae4abb8e8697b10d844bfb0fa3d305d05f
[ "MIT" ]
15
2020-06-19T01:14:36.000Z
2021-09-08T02:00:20.000Z
scraper/configuration.py
Stimson-Center/stimson-web-scraper
c2e6c3ae4abb8e8697b10d844bfb0fa3d305d05f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This class holds configuration objects, which can be thought of as settings.py but dynamic and changing for whatever parent object holds them. For example, pass in a config object to an Article object, Source object, or even network methods, and it just works. """ import logging from .pars...
32.832168
119
0.653674
1c0ad545e88699e6cf4ba2b8a8e98b8d80463913
43,546
py
Python
tests/unit/plugins/openstack/test_osclients.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
tests/unit/plugins/openstack/test_osclients.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
tests/unit/plugins/openstack/test_osclients.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
# Copyright 2013: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
45.983105
79
0.620838
1c0ad990d03449ff620284387f733d37c1fd81fc
388
py
Python
backend/config/settings/test.py
heidal/apollo
576743e12048985ae8ef127224e1cb8ac49acd28
[ "MIT" ]
2
2020-02-28T16:24:55.000Z
2020-03-27T17:12:50.000Z
backend/config/settings/test.py
heidal/apollo
576743e12048985ae8ef127224e1cb8ac49acd28
[ "MIT" ]
51
2020-02-12T20:52:08.000Z
2022-02-27T00:23:20.000Z
backend/config/settings/test.py
heidal/apollo
576743e12048985ae8ef127224e1cb8ac49acd28
[ "MIT" ]
null
null
null
from .base import * DATABASES = { "default": { "ENGINE": "django.db.backends.sqlite3", "NAME": os.path.join(BASE_DIR, "db.sqlite3"), } } # without DEBUG tests run faster DEBUG = False CACHES = { "default": { "BACKEND": "django.core.cache.backends.locmem.LocMemCache", "LOC...
17.636364
67
0.600515
1c0ae050f362a1f950a6140676bff9de295da9f8
16,312
py
Python
server/api/socket/location.py
chrispoupart/PlanarAlly
4015621468072fee90a796e7baa0212d9a62c7e5
[ "MIT" ]
300
2018-03-22T12:09:15.000Z
2022-03-30T05:33:39.000Z
server/api/socket/location.py
chrispoupart/PlanarAlly
4015621468072fee90a796e7baa0212d9a62c7e5
[ "MIT" ]
482
2018-03-08T23:44:56.000Z
2022-03-30T18:06:04.000Z
server/api/socket/location.py
chrispoupart/PlanarAlly
4015621468072fee90a796e7baa0212d9a62c7e5
[ "MIT" ]
79
2018-05-12T18:42:59.000Z
2022-03-29T17:12:22.000Z
import json from typing import List, Union from playhouse.shortcuts import update_model_from_dict from typing_extensions import TypedDict import auth from api.socket.constants import GAME_NS from app import app, sio from models import ( Floor, Initiative, Layer, Location, LocationOptions, Loca...
30.376164
129
0.607835
1c0ae58c075ec080530a245ed4a6ccbf2740dd2f
1,309
py
Python
tests/test_critical.py
peterpramb/pynagioscheck
63220f30fb62335a57cbf029946e6a801c81e6f1
[ "BSD-2-Clause" ]
null
null
null
tests/test_critical.py
peterpramb/pynagioscheck
63220f30fb62335a57cbf029946e6a801c81e6f1
[ "BSD-2-Clause" ]
null
null
null
tests/test_critical.py
peterpramb/pynagioscheck
63220f30fb62335a57cbf029946e6a801c81e6f1
[ "BSD-2-Clause" ]
1
2022-02-14T08:28:10.000Z
2022-02-14T08:28:10.000Z
#!/usr/bin/env python # # pylint: disable=E0401,E1101,W0201 from nose.tools import raises from nagioscheck import NagiosCheck, Status from tests import NagiosCheckTest, WouldHaveExitNonZero class SimplePessimisticCheck(NagiosCheck): version = '1.2.3' msg = "YOU DUN MADE ME MAD" def __init__(self, *args...
26.18
62
0.669977
1c0aec6f49f4a61026df88a08407ecb386994222
1,269
py
Python
test/test_install_devices.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/test_install_devices.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/test_install_devices.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ ESPER API REFERENCE OpenAPI spec version: 1.0.0 Contact: developer@esper.io --------------------------------------------------------- Copyright 2019 Shoonya Enterprises Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Li...
23.943396
72
0.716312
1c0b2b25ec5e08d6b0e2911e7da46cfab921b162
20,180
py
Python
cate/core/opimpl.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
null
null
null
cate/core/opimpl.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
null
null
null
cate/core/opimpl.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
1
2019-02-14T13:49:37.000Z
2019-02-14T13:49:37.000Z
# The MIT License (MIT) # Copyright (c) 2016, 2017 by the ESA CCI Toolbox development team and contributors # # 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 wi...
34.793103
122
0.655055
1c0b4f1458327f77417199d4f8159cc94c3a9e02
19,423
py
Python
mdrsl/rule_models/mids/objective_function/mids_objective_function_without_value_reuse.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
3
2020-08-03T19:25:44.000Z
2021-06-27T22:25:55.000Z
mdrsl/rule_models/mids/objective_function/mids_objective_function_without_value_reuse.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
null
null
null
mdrsl/rule_models/mids/objective_function/mids_objective_function_without_value_reuse.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
2
2020-08-07T22:54:28.000Z
2021-02-18T06:11:01.000Z
from typing import List, Optional, Dict, Set, Tuple import time import numpy as np from mdrsl.rule_models.mids.cover.cover_checker import CoverChecker from mdrsl.rule_models.mids.cover.cover_metric import get_avg_incorrect_cover_size from mdrsl.rule_models.mids.objective_function.mids_objective_function_abstract impo...
46.245238
143
0.668846
1c0b633fa56c6ee108b98eec4e4a4f914e8f11cb
3,633
py
Python
office365/runtime/auth/authentication_context.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/runtime/auth/authentication_context.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/runtime/auth/authentication_context.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
from office365.runtime.auth.base_authentication_context import BaseAuthenticationContext from office365.runtime.auth.providers.acs_token_provider import ACSTokenProvider from office365.runtime.auth.providers.oauth_token_provider import OAuthTokenProvider from office365.runtime.auth.providers.saml_token_provider import ...
41.284091
109
0.6752
1c0b8d7bb5746bb2d3a52b3932bbc762c9d9d367
976
py
Python
nova/api/openstack/compute/legacy_v2/contrib/multiple_create.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
7
2015-09-22T11:27:16.000Z
2015-11-02T12:33:46.000Z
nova/api/openstack/compute/legacy_v2/contrib/multiple_create.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
9
2015-05-20T11:20:17.000Z
2017-07-27T08:21:33.000Z
nova/api/openstack/compute/legacy_v2/contrib/multiple_create.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
13
2015-05-05T09:34:04.000Z
2017-11-08T02:03:46.000Z
# Copyright 2012 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 law ...
37.538462
78
0.713115
1c0ba495837b19d27857ed2212404f57fd7cadcf
14,337
py
Python
examples/prostate/pt/trainers/supervised_trainer.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
155
2021-08-05T18:05:09.000Z
2022-03-27T15:32:56.000Z
examples/prostate/pt/trainers/supervised_trainer.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
216
2021-12-01T06:07:12.000Z
2022-03-30T23:34:02.000Z
examples/prostate/pt/trainers/supervised_trainer.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
44
2021-11-24T16:03:29.000Z
2022-03-24T23:28:39.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. # # 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.935933
109
0.639185
1c0bc3b7be41197153e93619c4e6ec671a331553
901
py
Python
tests/python/pants_test/engine/util.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/engine/util.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
tests/python/pants_test/engine/util.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.testutil.engine.util import TARGET_TABLE as TARGET_TABLE # noqa from pants.testutil.engine.util import MockConsole as MockConsole # noqa from pants.testutil.engine.util import...
50.055556
103
0.832408
1c0bd5bb52ac3dfc1c37fc7bf658740cf3827f41
1,991
py
Python
.leetcode/55.jump-game.2.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/55.jump-game.2.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/55.jump-game.2.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=55 lang=python3 # # [55] Jump Game # # https://leetcode.com/problems/jump-game/description/ # # algorithms # Medium (35.24%) # Likes: 6069 # Dislikes: 418 # Total Accepted: 613.4K # Total Submissions: 1.7M # Testcase Example: '[2,3,1,1,4]' # # Given an array of non-negative integers nums, y...
18.1
79
0.591662
1c0c02d537e1702abe030d0430483dd4f473ed2a
1,589
py
Python
deeplearning/get_resnet_weights.py
wadpac/SleepStageClassification
5b288995e62bbd66faa66bd932b06af8a65f8445
[ "Apache-2.0" ]
24
2019-04-15T09:18:51.000Z
2022-03-05T14:09:34.000Z
deeplearning/get_resnet_weights.py
wadpac/SleepStageClassification
5b288995e62bbd66faa66bd932b06af8a65f8445
[ "Apache-2.0" ]
2
2021-01-28T01:02:06.000Z
2021-04-02T06:34:04.000Z
deeplearning/get_resnet_weights.py
wadpac/SleepStageClassification
5b288995e62bbd66faa66bd932b06af8a65f8445
[ "Apache-2.0" ]
11
2019-05-30T19:27:39.000Z
2021-06-19T02:41:53.000Z
import sys,os import numpy as np import tensorflow as tf from tensorflow.keras import Input, Model from tensorflow.keras.layers import Dense, Lambda, Dropout import tensorflow.keras.backend as K from tensorflow.keras.constraints import MaxNorm from tensorflow.keras.initializers import glorot_uniform from resnet import ...
34.543478
73
0.708622
1c0c045ddb46d69d5758023345eb73b9c300c063
484
py
Python
python3/numpy/numpy.zeros_like.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
2
2020-09-29T04:09:41.000Z
2020-10-18T13:33:36.000Z
python3/numpy/numpy.zeros_like.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
null
null
null
python3/numpy/numpy.zeros_like.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
1
2021-12-26T04:55:55.000Z
2021-12-26T04:55:55.000Z
#numpy.zeros_like(a, dtype=None, order='K', subok=True)[source] #Return an array of zeros with the same shape and type as a given array. import numpy as np x = np.arange(6) x = x.reshape(2,3); print("x = ",x) print() #output #[[0 1 2] #[3 4 5]] x = np.zeros_like(x,order='A'); print("x = ",x) print() #output: with sa...
16.133333
72
0.599174
1c0c08584fe136257e867c45e6e76230d38058cb
5,607
py
Python
Dropout_Prediction/feature_selector.py
Yixin-Cheng/8755Project
6612b606e185bf27d020726817a13f12fa9dd680
[ "MIT" ]
null
null
null
Dropout_Prediction/feature_selector.py
Yixin-Cheng/8755Project
6612b606e185bf27d020726817a13f12fa9dd680
[ "MIT" ]
null
null
null
Dropout_Prediction/feature_selector.py
Yixin-Cheng/8755Project
6612b606e185bf27d020726817a13f12fa9dd680
[ "MIT" ]
null
null
null
""" This file is for the feature selection based on Genetic Algorithm and SVM """ # import required libraries import numpy as np from sklearn.svm import SVC import pandas as pd from sklearn.model_selection import train_test_split, cross_validate # ## Step 2: Define settings # 1. DNA size: the number of bits in DNA # ...
40.05
133
0.580346
1c0c45d6607eea9736f6fd9f9af88549b9febd79
17,305
py
Python
DatabaseRelated/buttons.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
DatabaseRelated/buttons.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
DatabaseRelated/buttons.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
import nextcord from nextcord.abc import _Overwrites from nextcord.interactions import Interaction import mongodb import UpdateELO from battle import Battle from datetime import datetime as dt import logging import bot import sys logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) formatter = logging.F...
47.672176
144
0.589252
1c0c956a8757473afe0cb7d7627fd419ac045c7c
1,840
py
Python
leo/plugins/leomylyn.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/leomylyn.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/leomylyn.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:ville.20120503224623.3574: * @file leomylyn.py ''' Provides an experience like Mylyn:http://en.wikipedia.org/wiki/Mylyn for Leo. It "scores" the nodes based on how interesting they probably are for you, allowing you to focus on your "working set". Scoring is based on how much you edit the no...
27.462687
81
0.62337
1c0ca630cc8fdc807e7796f9de32597df6812331
1,544
py
Python
integration/dagster/setup.py
skcc00000app08542/OpenLineage
e0dd3715e61b3d89f60ece0d7385e82ccd141ba4
[ "Apache-2.0" ]
1
2022-01-06T03:45:24.000Z
2022-01-06T03:45:24.000Z
integration/dagster/setup.py
skcc00000app08542/OpenLineage
e0dd3715e61b3d89f60ece0d7385e82ccd141ba4
[ "Apache-2.0" ]
null
null
null
integration/dagster/setup.py
skcc00000app08542/OpenLineage
e0dd3715e61b3d89f60ece0d7385e82ccd141ba4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # 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, softwar...
26.62069
74
0.705311
1c0cab38772794143a0d4ee9b51df309fe00a457
15,056
py
Python
scripts/modelDb/fem/orphanMesh.py
fracturica/policrack
653167ffb9bd1bc53811bbe8eb050978076713ba
[ "MIT" ]
1
2020-08-12T11:19:09.000Z
2020-08-12T11:19:09.000Z
scripts/modelDb/fem/orphanMesh.py
fracturica/policrack
653167ffb9bd1bc53811bbe8eb050978076713ba
[ "MIT" ]
null
null
null
scripts/modelDb/fem/orphanMesh.py
fracturica/policrack
653167ffb9bd1bc53811bbe8eb050978076713ba
[ "MIT" ]
null
null
null
import sys import math from abaqus import * from abaqusConstants import * import part import material import section import assembly import step import interaction import sketch import regionToolset, displayGroupMdbToolset as dgm, mesh, load, job import inpReader import meshEdit import customKernel import scripts....
32.448276
95
0.605141
1c0cdfe0f03fdc54c281adb48e93363766f6679a
61,217
py
Python
qcdb/intf_nwchem/harvester.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
qcdb/intf_nwchem/harvester.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
qcdb/intf_nwchem/harvester.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
import re import sys import uuid import struct from collections import defaultdict from decimal import Decimal from ..pdict import PreservingDict #from ..periodictable import * #from ..physconst import * from ..exceptions import * from ..molecule import Molecule from ..orient import OrientMols from decimal import Deci...
43.262898
157
0.518418
1c0ce901f56c9d18adb3d65ce0a488c59764eac9
2,002
py
Python
src/test_view.py
leoconst/3d-rendering
367edff151513a3ccbc0a2b9e6e44d5cc72413bd
[ "MIT" ]
1
2021-03-09T15:53:52.000Z
2021-03-09T15:53:52.000Z
src/test_view.py
leoconst/3d-rendering
367edff151513a3ccbc0a2b9e6e44d5cc72413bd
[ "MIT" ]
null
null
null
src/test_view.py
leoconst/3d-rendering
367edff151513a3ccbc0a2b9e6e44d5cc72413bd
[ "MIT" ]
null
null
null
from math import isclose import pytest from view import Point class TestPoint: def setup(self): self.point = Point(2.1, -.3, 4) def test_slots(self): self.point.x = -.7 self.point.y += 3 assert self.point == Point(-0.7, 2.7, 4) with pytest.raises(A...
27.054054
73
0.541459
1c0d136d6ef7267303ea7ed6d034dda787f439e4
40,710
py
Python
ml3d/torch/models/point_pillars.py
kylevedder/SparsePointPillars
00d73c9ae5153d3a108fc05c6dface93c5b5ef47
[ "MIT" ]
7
2021-08-11T02:21:37.000Z
2022-01-15T19:32:04.000Z
ml3d/torch/models/point_pillars.py
kylevedder/SparsePointPillars
00d73c9ae5153d3a108fc05c6dface93c5b5ef47
[ "MIT" ]
null
null
null
ml3d/torch/models/point_pillars.py
kylevedder/SparsePointPillars
00d73c9ae5153d3a108fc05c6dface93c5b5ef47
[ "MIT" ]
null
null
null
#***************************************************************************************/ # # Based on MMDetection3D Library (Apache 2.0 license): # https://github.com/open-mmlab/mmdetection3d # # Copyright 2018-2019 Open-MMLab. # # Licensed under the Apache License, Version 2.0 (the "License"); # you ma...
38.189493
152
0.562319
1c0d843e3ed2dee63e3d150ffbbf1155c28cc3e8
777
py
Python
oscar/lib/python2.7/site-packages/django/conf/locale/sq/formats.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/conf/locale/sq/formats.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/conf/locale/sq/formats.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # from __future__ import unicode_literals # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'd F Y' TIME_FORMAT = 'g.i...
31.08
78
0.736165
1c0dc24be986d721d610eb0906e820e2e86ab055
1,285
py
Python
tests/test_role_querying.py
gravitational/rbac-linter
57c21b4258831395f5543edb1a3ccfdcf0177d9b
[ "Apache-2.0" ]
24
2021-12-05T17:59:10.000Z
2022-03-22T20:09:31.000Z
tests/test_role_querying.py
gravitational/rbac-linter
57c21b4258831395f5543edb1a3ccfdcf0177d9b
[ "Apache-2.0" ]
5
2021-12-09T13:54:53.000Z
2022-02-17T20:43:39.000Z
tests/test_role_querying.py
gravitational/rbac-linter
57c21b4258831395f5543edb1a3ccfdcf0177d9b
[ "Apache-2.0" ]
4
2021-12-14T15:26:10.000Z
2022-01-20T10:35:08.000Z
import os import pytest from role_analyzer import role_allows_user_access_to_entity, UserType, EntityType import yaml from z3 import Solver # type: ignore @pytest.fixture def change_test_dir(request): os.chdir(request.fspath.dirname) yield os.chdir(request.config.invocation_dir) def test_role_querying(...
32.948718
81
0.595331
1c0dc4b5d98e2eb5039d0f770d59e313770105d8
3,693
py
Python
code/generation-model/progressive_transformer/encoders.py
Merterm/-Modeling-Intensification-for-SLG
800fff3d3c7bacc86c1db8382f7c2e68d2f0c074
[ "MIT" ]
5
2022-03-14T15:52:09.000Z
2022-03-30T11:42:47.000Z
code/generation-model/progressive_transformer/encoders.py
Merterm/Modeling-Intensification-for-SLG
800fff3d3c7bacc86c1db8382f7c2e68d2f0c074
[ "MIT" ]
null
null
null
code/generation-model/progressive_transformer/encoders.py
Merterm/Modeling-Intensification-for-SLG
800fff3d3c7bacc86c1db8382f7c2e68d2f0c074
[ "MIT" ]
null
null
null
# coding: utf-8 import torch import torch.nn as nn from torch import Tensor from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence import torch.nn.functional as F from helpers import freeze_params from transformer_layers import \ TransformerEncoderLayer, PositionalEncoding from embeddings impor...
32.681416
75
0.607636
1c0ddc10ed7defe28d5505fcc198cf5211486d6e
2,309
py
Python
IPython/nbconvert/preprocessors/convertfigures.py
damianavila/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
2
2020-11-30T14:04:30.000Z
2021-11-08T11:29:05.000Z
IPython/nbconvert/preprocessors/convertfigures.py
RuSHi2381/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/nbconvert/preprocessors/convertfigures.py
RuSHi2381/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
1
2020-11-19T05:18:41.000Z
2020-11-19T05:18:41.000Z
"""Module containing a preprocessor that converts outputs in the notebook from one format to another. """ #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license ...
35.523077
79
0.524469