hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
cda6997e84c5a3eecea38bd37105db81272e080e
3,889
py
Python
experiments/dros.py
mossjacob/alfi-paper
9c5650db852d6a0ff97a5c4292d647c300274082
[ "MIT" ]
3
2021-10-04T11:42:34.000Z
2022-01-24T11:26:42.000Z
experiments/dros.py
mossjacob/alfi-paper
9c5650db852d6a0ff97a5c4292d647c300274082
[ "MIT" ]
1
2022-01-24T11:15:54.000Z
2022-01-24T11:20:23.000Z
experiments/dros.py
mossjacob/alfi-paper
9c5650db852d6a0ff97a5c4292d647c300274082
[ "MIT" ]
1
2022-01-24T11:23:27.000Z
2022-01-24T11:23:27.000Z
#%% from torch.optim import Adam from gpytorch.optim import NGD from experiments.partial import build_partial, plot_partial, pretrain_partial from pathlib import Path import numpy as np from alfi.datasets import DrosophilaSpatialTranscriptomics, HomogeneousReactionDiffusion from alfi.trainers import PartialP...
32.408333
89
0.671638
6f9e3137ce09943ef10735118cb20c5501faab6e
1,457
py
Python
tests/rule.py
pythoncatcoder/reversi-ai
88ca65d9c11bcfff804529b8600c3929bd03204e
[ "MIT" ]
null
null
null
tests/rule.py
pythoncatcoder/reversi-ai
88ca65d9c11bcfff804529b8600c3929bd03204e
[ "MIT" ]
null
null
null
tests/rule.py
pythoncatcoder/reversi-ai
88ca65d9c11bcfff804529b8600c3929bd03204e
[ "MIT" ]
null
null
null
from game.game import Game from game.settings import BLACK, WHITE __author__ = 'yuessiah' import unittest class TestRule(unittest.TestCase): def setUp(self): pass def test_player_cant_move(self): b = Game(colour=True, players=['player', 'player']) b.board.make_move(parse_coordinate...
33.113636
63
0.661633
035d3d3260a20c2c2b2dce6930319a176d52a23b
41,188
py
Python
src/tiden/utilities/control_utility.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
null
null
null
src/tiden/utilities/control_utility.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
null
null
null
src/tiden/utilities/control_utility.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2017-2020 GridGain Systems. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
41.815228
161
0.547465
8fcc675de0b71cf68d8a5600197528129c8d183d
3,099
py
Python
examples/algorithms/lda/lda_trainer.py
NanmiaoWu/phylanx
295b5f82cc39925a0d53e77ba3b6d02a65204535
[ "BSL-1.0" ]
83
2017-08-27T15:09:13.000Z
2022-01-18T17:03:41.000Z
examples/algorithms/lda/lda_trainer.py
NanmiaoWu/phylanx
295b5f82cc39925a0d53e77ba3b6d02a65204535
[ "BSL-1.0" ]
808
2017-08-27T15:35:01.000Z
2021-12-14T17:30:50.000Z
examples/algorithms/lda/lda_trainer.py
NanmiaoWu/phylanx
295b5f82cc39925a0d53e77ba3b6d02a65204535
[ "BSL-1.0" ]
55
2017-08-27T15:09:22.000Z
2022-03-25T12:07:34.000Z
# Copyright (c) 2020 Christopher Taylor # # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # # Algorithm from the following references # # D. Newman, A. Asuncion, P. Smyth, M. Welling. # "Distributed Algorithms fo...
23.838462
79
0.440787
9b4e1136dca8edecdd7b03ea1143f13e0a09800e
2,296
py
Python
marrow/mongo/model.py
marrow/mongo
1a8e5fe9047b6a5bb2eaeea95f3dc085c737067f
[ "MIT" ]
22
2016-03-22T05:32:26.000Z
2021-06-19T06:23:47.000Z
marrow/mongo/model.py
marrow/mongo
1a8e5fe9047b6a5bb2eaeea95f3dc085c737067f
[ "MIT" ]
59
2016-02-19T22:21:33.000Z
2022-01-17T19:40:44.000Z
marrow/mongo/model.py
marrow/mongo
1a8e5fe9047b6a5bb2eaeea95f3dc085c737067f
[ "MIT" ]
5
2016-06-24T06:55:44.000Z
2021-07-12T22:33:07.000Z
# encoding: utf-8 # pragma: no cover """Note: experimental thingamabob.""" from __future__ import unicode_literals __all__ = ['Model'] class Model(object): """Lazy access to MongoDB database collections via the WebCore request context. Assign instances of this lazy loader to your endpoint classes and make sure...
37.032258
115
0.734321
10adbb5cb16e5f8c4222f6d8d2ee120528ff0c04
4,691
py
Python
web/src/private_messages/views.py
frhumanes/consulting
400df4fc59240d2cd1c5807feaabacd056fdce03
[ "Apache-2.0" ]
null
null
null
web/src/private_messages/views.py
frhumanes/consulting
400df4fc59240d2cd1c5807feaabacd056fdce03
[ "Apache-2.0" ]
null
null
null
web/src/private_messages/views.py
frhumanes/consulting
400df4fc59240d2cd1c5807feaabacd056fdce03
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- from django.template import RequestContext from django.contrib.auth.decorators import login_required from django.shortcuts import render_to_response, redirect, get_object_or_404 from django.core.urlresolvers import reverse from django.conf import settings from datetime import datetime from m...
33.992754
133
0.676615
758e1a34e1e6193fc1d5776855ff70d20f176c6c
29,335
py
Python
PythonProjects/13-Exam2Practice/src/practice_problem1.py
csse120/csse120-public
36a92f0f4300def62ff091a8e70756e24beedd20
[ "MIT" ]
null
null
null
PythonProjects/13-Exam2Practice/src/practice_problem1.py
csse120/csse120-public
36a92f0f4300def62ff091a8e70756e24beedd20
[ "MIT" ]
null
null
null
PythonProjects/13-Exam2Practice/src/practice_problem1.py
csse120/csse120-public
36a92f0f4300def62ff091a8e70756e24beedd20
[ "MIT" ]
1
2018-10-03T14:04:45.000Z
2018-10-03T14:04:45.000Z
""" PRACTICE Exam 2, practice_problem 1. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Derek Whitley, their colleagues, and PUT_YOUR_NAME_HERE. """ # TODO: 1. PUT YOUR NAME IN THE ABOVE LINE. ###########################################################...
37.085967
83
0.516414
4ed30c2be6935b002ca6671cd53cb682a3ffe87c
5,330
py
Python
sdk/python/pulumi_aws/cloudfront/get_distribution.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/cloudfront/get_distribution.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/cloudfront/get_distribution.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class GetDis...
39.481481
196
0.65985
7f8d9200efea7adc07f1905405b78469628bb404
104,964
py
Python
msgraph-cli-extensions/beta/identitysignins_beta/azext_identitysignins_beta/vendored_sdks/identitysignins/models/_identity_sign_ins_enums.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/beta/identitysignins_beta/azext_identitysignins_beta/vendored_sdks/identitysignins/models/_identity_sign_ins_enums.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/beta/identitysignins_beta/azext_identitysignins_beta/vendored_sdks/identitysignins/models/_identity_sign_ins_enums.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "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 ...
33.58848
136
0.74637
37078450376c902dbc8fd5b14ab91dc428af5a6b
1,735
py
Python
setup.py
dpetzold/aws-log-parser
a36ea99696f332d25879a7faa24f6d922ad11370
[ "Apache-2.0" ]
17
2020-05-04T00:35:14.000Z
2022-03-17T06:05:26.000Z
setup.py
dpetzold/aws-log-parser
a36ea99696f332d25879a7faa24f6d922ad11370
[ "Apache-2.0" ]
14
2019-10-24T03:08:17.000Z
2021-12-07T19:13:41.000Z
setup.py
dpetzold/aws-log-parser
a36ea99696f332d25879a7faa24f6d922ad11370
[ "Apache-2.0" ]
8
2020-05-04T12:23:16.000Z
2022-03-19T13:30:13.000Z
#!/usr/bin/env python import pathlib from setuptools import setup, find_packages def get_requirement(name): with open(f"requirements/{name}.txt") as fp: return [line.strip() for line in fp.readlines() if not line.startswith("#")] def get_requirements(requirements): contents = [] for requiremen...
31.545455
85
0.648991
68752a9a9277661e231a1fe01691a8b61a0bc49c
4,018
py
Python
input/litdata/bouwens2015.py
jlashner/ares
6df2b676ded6bd59082a531641cb1dadd475c8a8
[ "MIT" ]
10
2020-03-26T01:08:10.000Z
2021-12-04T13:02:10.000Z
input/litdata/bouwens2015.py
jlashner/ares
6df2b676ded6bd59082a531641cb1dadd475c8a8
[ "MIT" ]
25
2020-06-08T14:52:28.000Z
2022-03-08T02:30:54.000Z
input/litdata/bouwens2015.py
jlashner/ares
6df2b676ded6bd59082a531641cb1dadd475c8a8
[ "MIT" ]
8
2020-03-24T14:11:25.000Z
2021-11-06T06:32:59.000Z
""" Bouwens et al., 2015, ApJ, 803, 34 Table 6. 4 the last 5 rows. """ import numpy as np info = \ { 'reference': 'Bouwens et al., 2015, ApJ, 803, 34', 'data': 'Table 5', 'fits': 'Table 6', 'label': 'Bouwens+ (2015)', } redshifts = np.array([3.8, 4.9, 5.9, 6.9, 7.9, 10.4]) wavelength = 1600. color_selection ...
33.764706
93
0.499253
91c612b89e6ee73840a24b290902ca34c30d6911
4,650
py
Python
diff_representation/model/bag_of_edits_change_encoder.py
microsoft/iclr2019-learning-to-represent-edits
e5777d6aa6cdeda500cf076646177c48d1cb4622
[ "MIT" ]
8
2021-03-15T18:57:18.000Z
2021-08-23T11:28:22.000Z
diff_representation/model/bag_of_edits_change_encoder.py
microsoft/iclr2019-learning-to-represent-edits
e5777d6aa6cdeda500cf076646177c48d1cb4622
[ "MIT" ]
null
null
null
diff_representation/model/bag_of_edits_change_encoder.py
microsoft/iclr2019-learning-to-represent-edits
e5777d6aa6cdeda500cf076646177c48d1cb4622
[ "MIT" ]
4
2021-03-27T14:19:09.000Z
2021-09-13T12:35:31.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from itertools import chain import numpy as np import torch from torch import nn as nn from torch.autograd import Variable from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from tqdm import tqdm import sys from diff_repre...
41.891892
167
0.633763
aae053d75c5b6011b4d563b6b7575da9e7610487
5,585
py
Python
python/b+TreeIns.py
Ayushd70/RetartedCodes
301ced178a0ec352b2d127e19028845de950551d
[ "MIT" ]
null
null
null
python/b+TreeIns.py
Ayushd70/RetartedCodes
301ced178a0ec352b2d127e19028845de950551d
[ "MIT" ]
null
null
null
python/b+TreeIns.py
Ayushd70/RetartedCodes
301ced178a0ec352b2d127e19028845de950551d
[ "MIT" ]
null
null
null
# Insertion on B+ tee in python import math # Node creation class Node: def __init__(self, order): self.order = order self.values = [] self.keys = [] self.nextKey = None self.parent = None self.check_leaf = False # Insert at the leaf def in...
33.047337
82
0.482722
e6627d9122e6100db0c47ed1837ccc6a1d2e3e79
5,655
py
Python
env_atari/atari_wrappers.py
Niels-vv/Safe-RL-With-DR
9f299661bb4cea9f0cd3121ea4b273cfb1016f9f
[ "MIT" ]
1
2021-11-23T15:13:26.000Z
2021-11-23T15:13:26.000Z
env_atari/atari_wrappers.py
Niels-vv/Safe-RL-With-DR
9f299661bb4cea9f0cd3121ea4b273cfb1016f9f
[ "MIT" ]
null
null
null
env_atari/atari_wrappers.py
Niels-vv/Safe-RL-With-DR
9f299661bb4cea9f0cd3121ea4b273cfb1016f9f
[ "MIT" ]
null
null
null
import numpy as np from collections import deque import gym from gym import spaces import cv2 ''' Atari Wrapper copied from https://github.com/openai/baselines/blob/master/baselines/common/atari_wrappers.py ''' class LazyFrames(object): def __init__(self, frames): """This object ensures that common fram...
33.660714
135
0.629531
1aad9b31fb2e182e89e918afcf6767117f6de745
30,353
py
Python
cgt_calc/main.py
KapJI/capital-gains-calculator
137d64155bf217899f9b34ce9f1424423c3d34cb
[ "MIT" ]
13
2021-04-21T21:08:35.000Z
2022-02-28T22:58:38.000Z
cgt_calc/main.py
KapJI/capital-gains-calculator
137d64155bf217899f9b34ce9f1424423c3d34cb
[ "MIT" ]
19
2021-05-09T10:20:25.000Z
2022-03-29T16:11:46.000Z
cgt_calc/main.py
KapJI/capital-gains-calculator
137d64155bf217899f9b34ce9f1424423c3d34cb
[ "MIT" ]
9
2021-05-03T16:52:50.000Z
2022-02-28T21:22:59.000Z
#!/usr/bin/env python3 """Capital Gain Calculator main module.""" from __future__ import annotations from collections import defaultdict from dataclasses import astuple import datetime import decimal from decimal import Decimal import importlib.metadata import logging from pathlib import Path import sys from . import...
43.053901
88
0.575923
609affd9d83b2feb9d6191443e5a4bac3540e966
7,085
py
Python
docs/sphinx/conf.py
sdss/coordio
61f5c962b8e3f335259168c9f8e872b4d3fe25d8
[ "BSD-3-Clause" ]
null
null
null
docs/sphinx/conf.py
sdss/coordio
61f5c962b8e3f335259168c9f8e872b4d3fe25d8
[ "BSD-3-Clause" ]
9
2021-02-04T00:01:30.000Z
2021-11-14T22:42:49.000Z
docs/sphinx/conf.py
sdss/coordio
61f5c962b8e3f335259168c9f8e872b4d3fe25d8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import os f...
29.27686
84
0.679323
372d8ff8438a14e69cb886473b194edc45916965
1,566
py
Python
python_intercom/__init__.py
torchbox/python-intercom
0c107ffa99c4e54d22a07380fce43aa530e7aca3
[ "MIT" ]
1
2015-11-06T00:01:31.000Z
2015-11-06T00:01:31.000Z
python_intercom/__init__.py
torchbox/python-intercom
0c107ffa99c4e54d22a07380fce43aa530e7aca3
[ "MIT" ]
null
null
null
python_intercom/__init__.py
torchbox/python-intercom
0c107ffa99c4e54d22a07380fce43aa530e7aca3
[ "MIT" ]
null
null
null
# coding=utf-8 # # Copyright 2012 keyes.ie # # License: http://jkeyes.mit-license.org/ # """ Intercom API wrapper. """ import functools import time from datetime import datetime def from_timestamp_property(func_to_decorate): """ A decorator for properties to convert the property value from a timestamp to a ...
27.964286
71
0.736271
338a19adc8ff2d2fc1b3eb2d176c33681d9bc5bd
1,122
py
Python
ujirani/urls.py
maxwellharon/Ujirani
da920c804a942b9e7383a5266a4a5a92eeccae68
[ "MIT" ]
null
null
null
ujirani/urls.py
maxwellharon/Ujirani
da920c804a942b9e7383a5266a4a5a92eeccae68
[ "MIT" ]
null
null
null
ujirani/urls.py
maxwellharon/Ujirani
da920c804a942b9e7383a5266a4a5a92eeccae68
[ "MIT" ]
null
null
null
"""ujirani URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
40.071429
79
0.686275
6ad6cb2d7ae9f0e9fe344e0c85394be5ca67d6cc
3,551
py
Python
data_processor/data_downloader.py
ruoygao/autoloadtest
270d0b952200c597d0ef5a953a6088b6c529cb71
[ "MIT" ]
1
2017-06-08T06:16:51.000Z
2017-06-08T06:16:51.000Z
data_processor/data_downloader.py
ruoygao/autoloadtest
270d0b952200c597d0ef5a953a6088b6c529cb71
[ "MIT" ]
null
null
null
data_processor/data_downloader.py
ruoygao/autoloadtest
270d0b952200c597d0ef5a953a6088b6c529cb71
[ "MIT" ]
null
null
null
import paramiko from scp import SCPClient import shutil import utility.remote_connector as rc class data_downloader: def __init__(self, IP = None, uname = None, password = None, test_info_path = None, test_info_name = None, cfg = None): if cfg is None: self.server = IP self.userna...
37.776596
123
0.665728
7542fca7f07270378c9983b3c5c0af4b78d2b88a
2,076
py
Python
tests/test_integration_imap.py
jayvdb/django_mail_admin
78b3df29b9b22c37e1c0c9b35b1cfef4614d637f
[ "MIT" ]
179
2018-03-11T20:23:16.000Z
2022-03-21T13:57:09.000Z
tests/test_integration_imap.py
jayvdb/django_mail_admin
78b3df29b9b22c37e1c0c9b35b1cfef4614d637f
[ "MIT" ]
23
2018-03-14T11:28:49.000Z
2022-03-12T13:56:16.000Z
tests/test_integration_imap.py
jayvdb/django_mail_admin
78b3df29b9b22c37e1c0c9b35b1cfef4614d637f
[ "MIT" ]
35
2018-05-25T13:55:49.000Z
2021-12-01T00:14:39.000Z
import os import uuid from urllib.parse import quote from django.core.mail import EmailMultiAlternatives from django_mail_admin.models import Mailbox from .test_mailbox_base import EmailMessageTestCase class TestImap(EmailMessageTestCase): def setUp(self): super(TestImap, self).setUp() self.tes...
30.985075
73
0.609827
7d5a7d8a3c86a39fd726b11e41c20dfcbbcc576c
6,066
py
Python
GRU_SkipThought/GRU/input_data.py
YinpeiDai/NAUM
d8328b8c10ab26b069bfa12176d7b39c260acafc
[ "MIT" ]
21
2018-08-27T15:54:30.000Z
2022-03-13T12:34:21.000Z
GRU_SkipThought/GRU/input_data.py
YinpeiDai/NAUM
d8328b8c10ab26b069bfa12176d7b39c260acafc
[ "MIT" ]
2
2020-10-26T15:39:37.000Z
2021-02-07T02:50:41.000Z
GRU_SkipThought/GRU/input_data.py
YinpeiDai/NAUM
d8328b8c10ab26b069bfa12176d7b39c260acafc
[ "MIT" ]
3
2018-12-24T12:50:10.000Z
2021-02-16T13:24:59.000Z
import copy,random class DatasetManager: """ given label, provide cross validation data and minibatch cross validation 8:1:1 oversampling positive : negative = 1:7 or 1:5 or 1:3 or 1:1 or None """ def __init__(self, data, super_category, ...
43.640288
114
0.594296
1147a7e0bfca6ca89956e4b2337c5303e56ac69e
6,338
py
Python
ambari-server/src/test/python/stacks/2.3/PXF/test_pxf.py
emcvipr/ambari
045e0d2ac94b8b81819d2efbfd7e1bddc67a7756
[ "Apache-2.0", "MIT" ]
3
2019-06-20T11:49:36.000Z
2020-12-11T10:44:29.000Z
ambari-server/src/test/python/stacks/2.3/PXF/test_pxf.py
cas-packone/ambari-chs
68033fbd4b810b6642853f2ad9128cbbd4e0cb7b
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.3/PXF/test_pxf.py
cas-packone/ambari-chs
68033fbd4b810b6642853f2ad9128cbbd4e0cb7b
[ "Apache-2.0" ]
3
2017-10-31T11:42:31.000Z
2021-04-26T07:17:53.000Z
#!/usr/bin/env python ''' 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")...
42.536913
120
0.608236
84c9e80e42eff6ad04ae79458f75ae3e23d34ca6
4,519
py
Python
tests/unit/grains/test_lvm.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
null
null
null
tests/unit/grains/test_lvm.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
1
2017-07-10T21:44:39.000Z
2017-07-10T21:44:39.000Z
tests/unit/grains/test_lvm.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
null
null
null
""" :codeauthor: :email:`Shane Lee <slee@saltstack.com>` """ import salt.grains.lvm as lvm from tests.support.mixins import LoaderModuleMockMixin from tests.support.mock import MagicMock, patch from tests.support.unit import TestCase class LvmGrainsTestCase(TestCase, LoaderModuleMockMixin): """ Test case...
34.234848
84
0.504536
d2f16ed1612552971e7e4907ae89d5c654c47f99
4,645
py
Python
docs/conf.py
Koppal-Shree/scdlbot
8f1da8afe9f5986da8f30c48b4fd971a08302b99
[ "MIT" ]
1
2021-11-17T06:20:52.000Z
2021-11-17T06:20:52.000Z
docs/conf.py
MaxxRider/scdlbot
8f1da8afe9f5986da8f30c48b4fd971a08302b99
[ "MIT" ]
null
null
null
docs/conf.py
MaxxRider/scdlbot
8f1da8afe9f5986da8f30c48b4fd971a08302b99
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
29.398734
79
0.672551
2158facfafc872b912cf0aa783f5b71018e5b936
72,963
py
Python
tests/unit/gapic/aiplatform_v1beta1/test_migration_service.py
dizcology/python-aiplatform
1a135775966c8a2303ded529eba514dcf9db7205
[ "Apache-2.0" ]
2
2021-10-02T02:25:44.000Z
2021-11-17T10:35:01.000Z
tests/unit/gapic/aiplatform_v1beta1/test_migration_service.py
pompipo/python-aiplatform
3612b05c62dfb46822cd2c1798fd47349dba33bc
[ "Apache-2.0" ]
1
2021-03-02T18:25:00.000Z
2021-03-02T18:25:00.000Z
tests/unit/gapic/aiplatform_v1beta1/test_migration_service.py
pompipo/python-aiplatform
3612b05c62dfb46822cd2c1798fd47349dba33bc
[ "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...
37.590417
134
0.686142
b24497a45a0b041ffb824f8b120a0cfa087c940e
42,566
py
Python
wbia/unstable/bayes.py
mmulich/wildbook-ia
81b405e2bfaa3f6c30a546fb6dc6e6488e9b2663
[ "Apache-2.0" ]
null
null
null
wbia/unstable/bayes.py
mmulich/wildbook-ia
81b405e2bfaa3f6c30a546fb6dc6e6488e9b2663
[ "Apache-2.0" ]
null
null
null
wbia/unstable/bayes.py
mmulich/wildbook-ia
81b405e2bfaa3f6c30a546fb6dc6e6488e9b2663
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ 1) Ambiguity / num names 2) independence of annotations 3) continuous 4) exponential case 5) speicifc examples of our prob 6) human in loop """ import logging import six # NOQA import utool as ut import numpy as np from six.moves import zip from wbia.unstable import pgm_ext print, rrr, pro...
37.503084
145
0.621881
be356537254c25269bab79616422a6a85ecdfb9a
45,487
py
Python
sktime/forecasting/base/_base.py
chernika158/sktime
005152ab2bc78d8a3aeb295c4f96dd5ffe960b8d
[ "BSD-3-Clause" ]
5,349
2019-03-21T14:56:50.000Z
2022-03-31T11:25:30.000Z
sktime/forecasting/base/_base.py
chernika158/sktime
005152ab2bc78d8a3aeb295c4f96dd5ffe960b8d
[ "BSD-3-Clause" ]
1,803
2019-03-26T13:33:53.000Z
2022-03-31T23:58:10.000Z
sktime/forecasting/base/_base.py
chernika158/sktime
005152ab2bc78d8a3aeb295c4f96dd5ffe960b8d
[ "BSD-3-Clause" ]
911
2019-03-25T01:21:30.000Z
2022-03-31T04:45:51.000Z
# -*- coding: utf-8 -*- # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) """ Base class template for forecaster scitype. class name: BaseForecaster Scitype defining methods: fitting - fit(self, y, X=None, fh=None) forecasting - predict(self, fh=None, X=None, return_pred_...
37.192968
88
0.588234
6f971837e89f7094135399e90d88e9a4c466f7ba
4,987
py
Python
test.py
tan1p0p/Deep-Image-Matting-PyTorch
c46f24ad062153f4169fea54527794af52cd82e1
[ "MIT" ]
519
2019-12-20T00:54:37.000Z
2022-03-28T12:01:45.000Z
test.py
tan1p0p/Deep-Image-Matting-PyTorch
c46f24ad062153f4169fea54527794af52cd82e1
[ "MIT" ]
39
2019-12-18T05:11:55.000Z
2022-02-04T05:40:48.000Z
test.py
tan1p0p/Deep-Image-Matting-PyTorch
c46f24ad062153f4169fea54527794af52cd82e1
[ "MIT" ]
115
2019-12-17T14:44:49.000Z
2022-03-30T21:30:45.000Z
import math import cv2 as cv import numpy as np import torch from torchvision import transforms from tqdm import tqdm from config import device, fg_path_test, a_path_test, bg_path_test from data_gen import data_transforms, fg_test_files, bg_test_files from utils import compute_mse, compute_sad, AverageMeter, get_logg...
31.967949
114
0.576098
fd097b969cf7e50cc732cae841a78fc3d4ff5cc4
1,459
py
Python
2019-11-25/sort.py
schana/learning-python
245cfd7030eafada3a99768c3587edf42ec1aa0c
[ "Apache-2.0" ]
1
2020-11-22T20:20:36.000Z
2020-11-22T20:20:36.000Z
2019-11-25/sort.py
schana/learning-python
245cfd7030eafada3a99768c3587edf42ec1aa0c
[ "Apache-2.0" ]
null
null
null
2019-11-25/sort.py
schana/learning-python
245cfd7030eafada3a99768c3587edf42ec1aa0c
[ "Apache-2.0" ]
null
null
null
import random import time def bubble_sort(sortable): swapped = True while swapped: swapped = False for i in range(len(sortable) - 1): if sortable[i + 1] < sortable[i]: sortable[i], sortable[i + 1] = sortable[i + 1], sortable[i] swapped = True retu...
27.018519
122
0.6244
79e799aee0d34c84cfebe3ff57a1865b82fc91cb
2,712
py
Python
tests/fixtures/plugin_module.py
TechnicalBro/simple-python-plugins
971f047c85c634bcbd28f247c8214dcf77a345f9
[ "MIT" ]
null
null
null
tests/fixtures/plugin_module.py
TechnicalBro/simple-python-plugins
971f047c85c634bcbd28f247c8214dcf77a345f9
[ "MIT" ]
null
null
null
tests/fixtures/plugin_module.py
TechnicalBro/simple-python-plugins
971f047c85c634bcbd28f247c8214dcf77a345f9
[ "MIT" ]
null
null
null
import pytest import sys import simpleplugins as plugins from simpleplugins import Plugin, PluginManager @pytest.fixture(scope="module") def module(): return plugins.import_module_from_file(sys.modules[__name__]) class TemplatePlugin(Plugin): def __init__(self, template_name, **kwargs): super(Templa...
31.534884
129
0.629425
f8e5bcf217176b79147a96888d9fcb6a703d62bb
56,301
py
Python
universe/__init__.py
stanfordnlp/universe
5bd70d7f49310e9197a8b26b7c87a57a84fd9c58
[ "MIT" ]
8
2017-09-18T20:07:09.000Z
2021-02-20T07:37:24.000Z
universe/__init__.py
stanfordnlp/universe
5bd70d7f49310e9197a8b26b7c87a57a84fd9c58
[ "MIT" ]
null
null
null
universe/__init__.py
stanfordnlp/universe
5bd70d7f49310e9197a8b26b7c87a57a84fd9c58
[ "MIT" ]
4
2018-09-26T01:30:49.000Z
2021-02-20T07:37:25.000Z
# Welcome to Universe! # # This file contains the client-side registry of environments. import logging import os # Suppress Twisted's warning about service_identity not being installed. # We don't need service_identity right now and don't want to take it on # as a dependency just to suppress this warning. import warn...
33.895846
158
0.677519
f007e2fd2545c1b5ae6eeb5bf0b0b93793cb8cc8
282
py
Python
backend/auth/utils.py
HillalKrRoy/Studenthut
a3e1128314a6d662a5cf55b8dd092a17f746838d
[ "Apache-2.0" ]
null
null
null
backend/auth/utils.py
HillalKrRoy/Studenthut
a3e1128314a6d662a5cf55b8dd092a17f746838d
[ "Apache-2.0" ]
null
null
null
backend/auth/utils.py
HillalKrRoy/Studenthut
a3e1128314a6d662a5cf55b8dd092a17f746838d
[ "Apache-2.0" ]
null
null
null
from rest_framework.permissions import BasePermission class IsNotAuthenticated(BasePermission): """ Allows access only to non authenticated users. """ def has_permission(self, request, view): return not bool(request.user and request.user.is_authenticated)
28.2
71
0.748227
60888eee6318a211e1f1ab6f53a536b23cf7355b
2,203
py
Python
corehq/messaging/smsbackends/start_enterprise/tests/test_response.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/messaging/smsbackends/start_enterprise/tests/test_response.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/messaging/smsbackends/start_enterprise/tests/test_response.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import absolute_import from __future__ import unicode_literals import uuid from corehq.apps.sms.models import QueuedSMS from corehq.messaging.smsbackends.start_enterprise.exceptions import StartEnterpriseBackendException from corehq.messaging.smsbackends.start_enterprise.models import ( StartEnterpr...
40.054545
108
0.740808
aff38672e2e638aab0961a61868bfe73268b4ee4
10,628
py
Python
reagent/preprocessing/normalization.py
wall-ed-coder/ReAgent
14d9906d74f943e74c6a6f95d129e18741168f9c
[ "BSD-3-Clause" ]
null
null
null
reagent/preprocessing/normalization.py
wall-ed-coder/ReAgent
14d9906d74f943e74c6a6f95d129e18741168f9c
[ "BSD-3-Clause" ]
null
null
null
reagent/preprocessing/normalization.py
wall-ed-coder/ReAgent
14d9906d74f943e74c6a6f95d129e18741168f9c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import json import logging from dataclasses import asdict from typing import Dict, List, Optional, Tuple import numpy as np import reagent.types as rlt import six import torch from reagent.parameters import NormalizationPar...
35.075908
88
0.665694
64ba8207a965cee37c3fa313e07041e748236e0f
709
py
Python
IRIS_data_download/IRIS_download_support/obspy/io/xseed/blockette/blockette051.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/io/xseed/blockette/blockette051.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/io/xseed/blockette/blockette051.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * # NOQA from .blockette import Blockette from ..fields import Integer, VariableString class Blockette051(Blockette): """ Blockette 051: Station Co...
27.269231
75
0.636107
f8447a378794758245ee68c8ecd65f096ee85f29
719
py
Python
tests/test_main.py
tegkhanna/isort
71aa577c84c869cb0ec142f4fc58411b11ff3de4
[ "MIT" ]
null
null
null
tests/test_main.py
tegkhanna/isort
71aa577c84c869cb0ec142f4fc58411b11ff3de4
[ "MIT" ]
null
null
null
tests/test_main.py
tegkhanna/isort
71aa577c84c869cb0ec142f4fc58411b11ff3de4
[ "MIT" ]
null
null
null
import os import sys import pytest from isort import main def test_is_python_file(): assert main.is_python_file("file.py") assert main.is_python_file("file.pyi") assert main.is_python_file("file.pyx") assert not main.is_python_file("file.pyc") assert not main.is_python_file("file.txt") @pytest...
26.62963
98
0.748261
a9f8aca7af3275ad80870050bc690f959e707641
1,775
py
Python
lib/JumpScale/baselib/lrucache/LRUCacheFactory.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
null
null
null
lib/JumpScale/baselib/lrucache/LRUCacheFactory.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
4
2016-08-25T12:08:39.000Z
2018-04-12T12:36:01.000Z
lib/JumpScale/baselib/lrucache/LRUCacheFactory.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
3
2016-03-08T07:49:34.000Z
2018-10-19T13:56:43.000Z
from .LRUCache import LRUCache from .RWCache import RWCache class LRUCacheFactory(): def getRWCache(self,nrItemsReadCache,nrItemsWriteCache=50,maxTimeWriteCache=2000,writermethod=None): return RWCache(nrItemsReadCache,nrItemsWriteCache,maxTimeWriteCache,writermethod=writermethod) def getRCache(self,nr...
35.5
104
0.603944
286cb13ee473e191b1cea3fa2c51339d6d00f8df
948
py
Python
modeling/backbone/__init__.py
WenmuZhou/crnn.pytorch
bf7a7c62376eee93943ca7c68e88e3d563c09aa8
[ "Apache-2.0" ]
46
2018-05-29T08:01:10.000Z
2022-02-14T21:47:40.000Z
modeling/backbone/__init__.py
WenmuZhou/crnn.pytorch
bf7a7c62376eee93943ca7c68e88e3d563c09aa8
[ "Apache-2.0" ]
null
null
null
modeling/backbone/__init__.py
WenmuZhou/crnn.pytorch
bf7a7c62376eee93943ca7c68e88e3d563c09aa8
[ "Apache-2.0" ]
17
2018-11-14T09:17:00.000Z
2021-08-06T04:05:07.000Z
# -*- coding: utf-8 -*- # @Time : 2020/4/25 12:06 # @Author : zhoujun from .feature_extraction import CNN_lite, VGG, ResNet, DenseNet from .resnet import ResNet_FeatureExtractor, ResNet_MT from .resnet_torch import resnet18, resnet34, resnet50, resnet101, resnet152, resnext50_32x4d, resnext101_32x8d, wide_resnet50...
43.090909
146
0.697257
4f0d38e7632ca3bf920a6d63d83bcbfbcb732021
2,161
py
Python
pirates/effects/CannonExplosion.py
ksmit799/POTCO-PS
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
8
2017-01-24T04:33:29.000Z
2020-11-01T08:36:24.000Z
pirates/effects/CannonExplosion.py
ksmit799/Pirates-Online-Remake
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
1
2017-03-02T18:05:17.000Z
2017-03-14T06:47:10.000Z
pirates/effects/CannonExplosion.py
ksmit799/Pirates-Online-Remake
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
11
2017-03-02T18:46:07.000Z
2020-11-01T08:36:26.000Z
# File: C (Python 2.4) from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.actor import Actor from direct.particles import ParticleEffect from direct.particles import Particles from direct.particles import ForceGroup from PooledEffect import PooledEffect from EffectController imp...
37.258621
295
0.698751
2ad2a0cc7f55cc3ac3d651ce6c5389786814164e
221
py
Python
Benign-data/run_batch.py
Semiu/malware-detector
3701c4bb7b4275a03f6d1c48dfab7303422b8d97
[ "MIT" ]
2
2021-09-06T10:04:22.000Z
2021-09-06T17:49:45.000Z
Benign-data/run_batch.py
Semiu/malware-detector
3701c4bb7b4275a03f6d1c48dfab7303422b8d97
[ "MIT" ]
null
null
null
Benign-data/run_batch.py
Semiu/malware-detector
3701c4bb7b4275a03f6d1c48dfab7303422b8d97
[ "MIT" ]
null
null
null
import subprocess import os #subprocess.call([r'C:\Users\Semiu\Documents\malware-detector\Benign-data\BenignDataExtractor.sh']) os.system(r'C:\Users\Semiu\Documents\malware-detector\Benign-data\BenignDataExtractor.sh')
31.571429
99
0.81448
9e3278ec2bfee190966fcce05a82a4f9f6b3ab66
1,427
py
Python
siam_tracker/benchmarks/utils/csv_writer.py
microsoft/PySiamTracking
a82dabeaa42a7816dbd8e823da7b7e92ebb622ce
[ "MIT" ]
28
2020-03-18T04:41:21.000Z
2022-02-24T16:44:01.000Z
siam_tracker/benchmarks/utils/csv_writer.py
HengFan2010/PySiamTracking
a82dabeaa42a7816dbd8e823da7b7e92ebb622ce
[ "MIT" ]
1
2020-04-05T15:23:22.000Z
2020-04-07T16:23:12.000Z
siam_tracker/benchmarks/utils/csv_writer.py
HengFan2010/PySiamTracking
a82dabeaa42a7816dbd8e823da7b7e92ebb622ce
[ "MIT" ]
11
2020-03-19T00:30:06.000Z
2021-11-10T08:22:35.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os from collections import OrderedDict def list2csv(contents, file_path, delimiter=','): """ Args: contents (list[dict]): a list of dict file_path (str): file path delimiter (str): the...
32.431818
73
0.552207
60e5916dc3db0f084cad0318f5a59b1fdb28b825
281
py
Python
grace_dl/torch/compressor/none.py
aoranwu/grace
1e28915f6f6e8189ef33c0c7d8d3ce314e0a493e
[ "BSD-2-Clause" ]
88
2020-05-07T15:36:10.000Z
2022-03-13T06:13:31.000Z
grace_dl/torch/compressor/none.py
aoranwu/grace
1e28915f6f6e8189ef33c0c7d8d3ce314e0a493e
[ "BSD-2-Clause" ]
21
2020-05-25T08:37:03.000Z
2022-03-30T10:08:14.000Z
grace_dl/torch/compressor/none.py
aoranwu/grace
1e28915f6f6e8189ef33c0c7d8d3ce314e0a493e
[ "BSD-2-Clause" ]
33
2020-05-07T23:11:39.000Z
2022-03-25T03:33:49.000Z
from grace_dl.torch import Compressor class NoneCompressor(Compressor): """Default no-op compression.""" def compress(self, tensor, name): return [tensor], None def decompress(self, tensors, ctx): tensor, = tensors return tensor
21.615385
40
0.629893
4fb9c8c331b3701af12fd26d27b680f7c251ddd7
1,358
py
Python
nose2/tests/functional/support/scenario/layers_and_non_layers/test_layers.py
ltfish/nose2
e47363dad10056cf906daf387613c21d74f37e56
[ "BSD-2-Clause" ]
null
null
null
nose2/tests/functional/support/scenario/layers_and_non_layers/test_layers.py
ltfish/nose2
e47363dad10056cf906daf387613c21d74f37e56
[ "BSD-2-Clause" ]
null
null
null
nose2/tests/functional/support/scenario/layers_and_non_layers/test_layers.py
ltfish/nose2
e47363dad10056cf906daf387613c21d74f37e56
[ "BSD-2-Clause" ]
null
null
null
import unittest import logging from .common import UniqueResource, NormalTest, NormalTestTwo log = logging.getLogger(__name__) class Layer1(object): @classmethod def setUp(cls): log.info("Called setup in layer 1") cls.unique_resource = UniqueResource() cls.unique_resource.lock() ...
19.970588
61
0.666421
0314a9b2dff8bf5e63c927b05afe2b9fd12aa0d6
5,083
py
Python
synestia-book/_build/jupyter_execute/docs/Spherical_Cylindrical_Coordinates.py
ststewart/synestiabook2
9c530cb7ed5a33c82bccccf828bb8969f9609b8b
[ "MIT" ]
null
null
null
synestia-book/_build/jupyter_execute/docs/Spherical_Cylindrical_Coordinates.py
ststewart/synestiabook2
9c530cb7ed5a33c82bccccf828bb8969f9609b8b
[ "MIT" ]
null
null
null
synestia-book/_build/jupyter_execute/docs/Spherical_Cylindrical_Coordinates.py
ststewart/synestiabook2
9c530cb7ed5a33c82bccccf828bb8969f9609b8b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Spherical and Cylindrical Coordinates # ![title](Figures/FigurePolarCoordinates.png) # <i>Caption</i>: The spherical coordinate system (red axes) uses radius r (the distance from the origin which is often the center of the body), theta $\theta$ (the angle between the x and y...
121.02381
689
0.749164
5124e48d20427cd0a94fc38f3d4251b88af51308
434
py
Python
openghg/standardise/surface/__init__.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
5
2021-03-02T09:04:07.000Z
2022-01-25T09:58:16.000Z
openghg/standardise/surface/__init__.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
229
2020-09-30T15:08:39.000Z
2022-03-31T14:23:55.000Z
openghg/standardise/surface/__init__.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
null
null
null
from ._aqmesh import parse_aqmesh from ._beaco2n import parse_beaco2n from ._btt import parse_btt from ._cranfield import parse_cranfield from ._crds import parse_crds from ._eurocom import parse_eurocom from ._gcwerks import parse_gcwerks from ._glasgow_licor import parse_glasow_licor from ._glasgow_picarro import par...
33.384615
50
0.861751
c550f15010c03e54bf165df2d3fae98a47a70b78
228
py
Python
Leetcode/2001-3000/2180. Count Integers With Even Digit Sum/2180.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/2001-3000/2180. Count Integers With Even Digit Sum/2180.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/2001-3000/2180. Count Integers With Even Digit Sum/2180.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def countEven(self, num: int) -> int: return (num - self.sumOfDigit(num) % 2) // 2 def sumOfDigit(self, num: int) -> int: sum = 0 while num: sum += num % 10 num //= 10 return sum
20.727273
48
0.552632
d961148c25b1d0c237766c134267aad15a2e974c
201
py
Python
desafio 6.py
noudas/treinopython1
88379a2f1a564de518e33ea29df14f7ce65583d8
[ "0BSD" ]
null
null
null
desafio 6.py
noudas/treinopython1
88379a2f1a564de518e33ea29df14f7ce65583d8
[ "0BSD" ]
null
null
null
desafio 6.py
noudas/treinopython1
88379a2f1a564de518e33ea29df14f7ce65583d8
[ "0BSD" ]
null
null
null
def main(): a = int(input("Quantos anos voce tem? ")) if (a >= 65): print("Voce e um idoso, compre um caixao") else: print("Voce nao e idoso seu idoso") main()
18.272727
51
0.517413
94d80388e0ab45a5a9caa28e08f008b04a21dce9
30,906
py
Python
python/tests/sql/test_function.py
swamirishi/incubator-sedona
8a7fac11f38e8a35ac0ecb281219625cd1e13817
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
python/tests/sql/test_function.py
swamirishi/incubator-sedona
8a7fac11f38e8a35ac0ecb281219625cd1e13817
[ "BSD-2-Clause", "Apache-2.0" ]
1
2021-06-14T17:39:36.000Z
2021-06-14T17:39:36.000Z
python/tests/sql/test_function.py
swamirishi/incubator-sedona
8a7fac11f38e8a35ac0ecb281219625cd1e13817
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
# 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...
46.335832
164
0.608555
0f41283ae6251f97ffbc91bb5274e4a74d8a1941
1,898
py
Python
demo.py
bstienen/unsupervised-learning-metrics
184bd2d9472cee91623ddf9a0e60ee4fc8e1fcd1
[ "MIT" ]
7
2019-07-15T08:18:39.000Z
2021-05-03T10:22:14.000Z
demo.py
bstienen/unsupervised-learning-metrics
184bd2d9472cee91623ddf9a0e60ee4fc8e1fcd1
[ "MIT" ]
null
null
null
demo.py
bstienen/unsupervised-learning-metrics
184bd2d9472cee91623ddf9a0e60ee4fc8e1fcd1
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from sklearn.datasets import make_classification from sklearn.model_selection import train_test_split from sklearn.svm import OneClassSVM import metrics # Generate data data, _ = make_classification(n_samples = 2000, n_features = 10, ...
30.126984
75
0.525817
16c16878d1b3c9428cd0d2309e600c382eb7f6a4
1,341
py
Python
Data Structures & Algorithms in Python/quiz-1.py
bhuiyanmobasshir94/Data-Structures-Algorithms
668b802c1ab2b984e09de51f60c51e1526d7b5a1
[ "MIT" ]
null
null
null
Data Structures & Algorithms in Python/quiz-1.py
bhuiyanmobasshir94/Data-Structures-Algorithms
668b802c1ab2b984e09de51f60c51e1526d7b5a1
[ "MIT" ]
null
null
null
Data Structures & Algorithms in Python/quiz-1.py
bhuiyanmobasshir94/Data-Structures-Algorithms
668b802c1ab2b984e09de51f60c51e1526d7b5a1
[ "MIT" ]
null
null
null
"""You can use this class to represent how classy someone or something is. "Classy" is interchangable with "fancy". If you add fancy-looking items, you will increase your "classiness". Create a function in "Classy" that takes a string as input and adds it to the "items" list. Another method should calculate the "classi...
23.946429
57
0.631618
8d6088a02164b10867aa00f04796791fcac22eff
2,236
py
Python
scripts/run_p2_auto_corr.py
wood-b/dihedral_model
37b7b1648ff2c36f6319401aa50b8400183312f6
[ "BSD-3-Clause" ]
null
null
null
scripts/run_p2_auto_corr.py
wood-b/dihedral_model
37b7b1648ff2c36f6319401aa50b8400183312f6
[ "BSD-3-Clause" ]
null
null
null
scripts/run_p2_auto_corr.py
wood-b/dihedral_model
37b7b1648ff2c36f6319401aa50b8400183312f6
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from utils import utils from core.polymer_chain import Polymer from argparse import ArgumentParser def run_p2_auto_corr(): description = "command line interface for running p2 autocorrelation function" parser = ArgumentParser(description=description) parser.add_argument('-gf', action='...
44.72
118
0.669052
833cd3d9a6f755410ab4487db2170f948062f11c
1,812
py
Python
gan/oldgan/networks.py
machism0/deep-learn-2018
c60874f700352dbab40563366a28fd69691b481a
[ "MIT" ]
null
null
null
gan/oldgan/networks.py
machism0/deep-learn-2018
c60874f700352dbab40563366a28fd69691b481a
[ "MIT" ]
null
null
null
gan/oldgan/networks.py
machism0/deep-learn-2018
c60874f700352dbab40563366a28fd69691b481a
[ "MIT" ]
null
null
null
import tensorflow as tf layers = tf.contrib.layers def generator(noise, weight_decay=2.5e-5): """Core MNIST generator. Args: noise: A 2D Tensor of shape [batch size, noise dim]. weight_decay: The value of the l2 weight decay. Returns: A generated image in the range [-1, 1]. """ with tf.contrib...
32.945455
76
0.690949
bc898b734fb8298b46bd74176e1aaa789f26b027
2,755
py
Python
jakobruhe-python3/day5.py
joelfak/advent_of_code_2019
d5031078c53c181835b4bf86458b360542f0122e
[ "Apache-2.0" ]
9
2019-12-01T14:52:40.000Z
2020-12-16T14:24:19.000Z
jakobruhe-python3/day5.py
joelfak/advent_of_code_2019
d5031078c53c181835b4bf86458b360542f0122e
[ "Apache-2.0" ]
null
null
null
jakobruhe-python3/day5.py
joelfak/advent_of_code_2019
d5031078c53c181835b4bf86458b360542f0122e
[ "Apache-2.0" ]
51
2019-11-26T14:49:05.000Z
2021-12-01T20:53:41.000Z
#!/usr/bin/env python3 # By Jakob Ruhe 2019-12-05 at around 06:20 import unittest def parse_input(input: str): return list(map(int, input.split(","))) def fetch_parameters(memory, pc, modes, num): params = [] for i in range(0, num): m = modes % 10 modes = modes // 10 if m == 0: ...
28.402062
80
0.509619
c3e311cbddd74f5934cbb42d379af22142b5d4e8
25,007
py
Python
pbose/core/PbWK.py
pbose-io/pbose-python
9cf52d47413107109981ab17028da3475be52537
[ "BSD-2-Clause" ]
null
null
null
pbose/core/PbWK.py
pbose-io/pbose-python
9cf52d47413107109981ab17028da3475be52537
[ "BSD-2-Clause" ]
null
null
null
pbose/core/PbWK.py
pbose-io/pbose-python
9cf52d47413107109981ab17028da3475be52537
[ "BSD-2-Clause" ]
null
null
null
## @file PbWK.py # @brief Protobuf Web Key # # @copyright # Copyright 2018 PbOSE <https://pbose.io> # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # ...
34.397524
141
0.624905
cf21db7777f434ed748b8f32dd421eac912376b3
295
py
Python
import_tool/analysis/interfaces/__init__.py
SchuylerGoodman/topicalguide
7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620
[ "PostgreSQL" ]
12
2015-03-12T15:33:44.000Z
2021-01-11T07:57:48.000Z
import_tool/analysis/interfaces/__init__.py
SchuylerGoodman/topicalguide
7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620
[ "PostgreSQL" ]
49
2015-02-05T12:14:28.000Z
2016-06-14T22:35:32.000Z
import_tool/analysis/interfaces/__init__.py
SchuylerGoodman/topicalguide
7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620
[ "PostgreSQL" ]
11
2015-03-25T23:24:12.000Z
2017-08-02T00:03:10.000Z
from __future__ import division, print_function, unicode_literals from mallet_analysis import MalletLdaAnalysis, MalletHldaAnalysis from random_analysis import RandomAnalysis analyses = { "MalletLDA": MalletLdaAnalysis, "MalletHLDA": MalletHldaAnalysis, "Random": RandomAnalysis, }
29.5
65
0.810169
87bdf7744bf8f151689bc854e930712d5b38286b
8,967
py
Python
sdk/python/pulumi_azure_nextgen/network/v20180701/get_vpn_connection.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20180701/get_vpn_connection.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20180701/get_vpn_connection.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
39.676991
303
0.676034
7619ba8269d4b99f1b6993cdea76ab7c382706a0
1,102
py
Python
OS/system_information/info.py
Shokr/Python_Playbook
e29ba874890349742f198982cc40763b30a58842
[ "MIT" ]
12
2020-04-05T10:01:11.000Z
2022-02-05T08:11:54.000Z
OS/system_information/info.py
Shokr/Python_Playbook
e29ba874890349742f198982cc40763b30a58842
[ "MIT" ]
null
null
null
OS/system_information/info.py
Shokr/Python_Playbook
e29ba874890349742f198982cc40763b30a58842
[ "MIT" ]
6
2020-04-03T22:24:34.000Z
2022-01-28T12:22:34.000Z
# Python script to fetch system information # Tested with Python3 on Ubuntu 19.04 import platform # Architecture print("Architecture: " + platform.architecture()[0]) # machine print("Machine: " + platform.machine()) # node print("Node: " + platform.node()) # processor print("Processors: ") with open("/proc/cpuinfo...
23.956522
76
0.626134
f47e8f3deb92b29825d473f2a7269b8d64e23032
332,990
py
Python
python/looker_sdk/sdk/api31/models.py
Sobiarana81/sdk-codegen
e284a281b80582e129b7a53355c56bedfbc76a2c
[ "MIT" ]
null
null
null
python/looker_sdk/sdk/api31/models.py
Sobiarana81/sdk-codegen
e284a281b80582e129b7a53355c56bedfbc76a2c
[ "MIT" ]
null
null
null
python/looker_sdk/sdk/api31/models.py
Sobiarana81/sdk-codegen
e284a281b80582e129b7a53355c56bedfbc76a2c
[ "MIT" ]
null
null
null
# 233 API models: 181 Spec, 0 Request, 52 Write # NOTE: Do not edit this file generated by Looker SDK Codegen for Looker 7.4 API 3.1 import datetime from typing import MutableMapping, Optional, Sequence import attr from looker_sdk.rtl import model from looker_sdk.rtl import serialize as sr EXPLICIT_NULL = model.EXP...
40.323323
615
0.701727
a2ad09a48973e32420c01d2eae3198dff1a606bf
15,676
py
Python
src/musekafka/consumers.py
dailymuse/musekafka-py
3aec3d5ae620d5760733b2d9b73e9ac135dbd875
[ "MIT" ]
1
2020-11-10T22:15:49.000Z
2020-11-10T22:15:49.000Z
src/musekafka/consumers.py
dailymuse/musekafka-py
3aec3d5ae620d5760733b2d9b73e9ac135dbd875
[ "MIT" ]
2
2020-11-13T16:32:49.000Z
2020-11-17T05:36:31.000Z
src/musekafka/consumers.py
dailymuse/musekafka-py
3aec3d5ae620d5760733b2d9b73e9ac135dbd875
[ "MIT" ]
null
null
null
import contextlib import logging import sys from typing import Any, Callable, Dict, Iterator, List, Optional, Type, TypeVar, Union import muselog.context from confluent_kafka import OFFSET_BEGINNING, Consumer, Message, TopicPartition from confluent_kafka.avro import AvroConsumer from muselog.logger import get_logger_w...
44.033708
131
0.625287
9ed4866338d1e9e28245a219fc297a714b7d35f7
872
py
Python
tests/sdk/test_sdk_metrics.py
askanna-io/askanna-python
b6a1dec3b9911888f3d769cef46ce8c2d5cb0dfe
[ "Apache-2.0" ]
1
2021-02-22T15:53:47.000Z
2021-02-22T15:53:47.000Z
tests/sdk/test_sdk_metrics.py
askanna-io/askanna-python
b6a1dec3b9911888f3d769cef46ce8c2d5cb0dfe
[ "Apache-2.0" ]
null
null
null
tests/sdk/test_sdk_metrics.py
askanna-io/askanna-python
b6a1dec3b9911888f3d769cef46ce8c2d5cb0dfe
[ "Apache-2.0" ]
null
null
null
import unittest from askanna import track_metric, track_metrics class SDKMetricsTest(unittest.TestCase): def setUp(self): pass def test_track_metric(self): track_metric("metricname", "metric_value", "metric_label") def test_track_metrics(self): track_metrics(metrics={ ...
26.424242
66
0.616972
166b5893feb5150e9729e9e163a1a6b280fb19e5
584
py
Python
src/decorators/timeout.py
nullcc/python_decorators
9a282c401aca202e0516565a8b8e2fd9384e7c37
[ "MIT" ]
1
2017-06-12T07:49:11.000Z
2017-06-12T07:49:11.000Z
src/decorators/timeout.py
nullcc/python_decorators
9a282c401aca202e0516565a8b8e2fd9384e7c37
[ "MIT" ]
null
null
null
src/decorators/timeout.py
nullcc/python_decorators
9a282c401aca202e0516565a8b8e2fd9384e7c37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from functools import wraps from ..lib.custom_timer import CustomTimer def time_out(seconds): """ 设置超时时间,如果超时则抛出异常 :param seconds: :return: """ def decorator(func): @wraps(func) def wrapped_function(*args, **kwargs): def time_out_func(): ...
23.36
52
0.563356
5c7873b279fb6d6c585ac14ab86db15e2cf01d76
1,694
py
Python
packages/pyright-internal/src/tests/samples/dataclassTransform4.py
Microsoft/pyright
adf7c3e92e4540d930e3652de3c1c335855af595
[ "MIT" ]
3,934
2019-03-22T09:26:41.000Z
2019-05-06T21:03:08.000Z
packages/pyright-internal/src/tests/samples/dataclassTransform4.py
Microsoft/pyright
adf7c3e92e4540d930e3652de3c1c335855af595
[ "MIT" ]
107
2019-03-24T04:09:37.000Z
2019-05-06T17:00:04.000Z
packages/pyright-internal/src/tests/samples/dataclassTransform4.py
Microsoft/pyright
adf7c3e92e4540d930e3652de3c1c335855af595
[ "MIT" ]
119
2019-03-23T10:48:04.000Z
2019-05-06T08:57:56.000Z
# This sample tests the case where a field descriptor has an implicit # "init" parameter type based on an overload. from typing import ( Any, Callable, Literal, Optional, Tuple, Type, TypeVar, Union, overload, ) T = TypeVar("T") class ModelField: def __init__( self, ...
19.25
73
0.602125
009c8addd4a5eec6dde9639793f87b01568afd48
78,283
py
Python
qiita_db/metadata_template/test/test_prep_template.py
ChrisKeefe/qiita
214cfddce1c04f8c7e55e657ea2eae1ae9a9496b
[ "BSD-3-Clause" ]
null
null
null
qiita_db/metadata_template/test/test_prep_template.py
ChrisKeefe/qiita
214cfddce1c04f8c7e55e657ea2eae1ae9a9496b
[ "BSD-3-Clause" ]
null
null
null
qiita_db/metadata_template/test/test_prep_template.py
ChrisKeefe/qiita
214cfddce1c04f8c7e55e657ea2eae1ae9a9496b
[ "BSD-3-Clause" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (c) 2014--, The Qiita Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
49.671954
79
0.570877
fa842630ef5436c87646d56a89e99d05f291f1a8
35,460
py
Python
tests/conformance/test_conformance.py
syphar/python-storage
bc99bd18718a3eafcdcb3083ca10e9159ae09308
[ "Apache-2.0" ]
null
null
null
tests/conformance/test_conformance.py
syphar/python-storage
bc99bd18718a3eafcdcb3083ca10e9159ae09308
[ "Apache-2.0" ]
null
null
null
tests/conformance/test_conformance.py
syphar/python-storage
bc99bd18718a3eafcdcb3083ca10e9159ae09308
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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 agreed to in writing, s...
34.901575
136
0.663706
fb12948c9aef53328d999a345c2d0f79d99cdc34
4,930
py
Python
Neighbourhood_Watch/settings.py
marknesh/neighbourhood-watch
57e36c800b9e4898be9f4949c80c902f7627699a
[ "MIT" ]
null
null
null
Neighbourhood_Watch/settings.py
marknesh/neighbourhood-watch
57e36c800b9e4898be9f4949c80c902f7627699a
[ "MIT" ]
10
2020-03-24T10:47:53.000Z
2021-04-08T19:51:44.000Z
Neighbourhood_Watch/settings.py
marknesh/Neighbourhood-Watch
57e36c800b9e4898be9f4949c80c902f7627699a
[ "MIT" ]
null
null
null
""" Django settings for Neighbourhood_Watch project. Generated by 'django-admin startproject' using Django 3.0.4. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ ...
24.285714
91
0.708925
3cd05358c29b7c94b81480e64c8313ef5096ff78
6,266
py
Python
gbpservice/contrib/nfp/tools/image_builder/disk_image_create.py
baodongli/group-based-policy
f3b892ecdc1051b204376e18679f73bf457ce7dc
[ "Apache-2.0" ]
null
null
null
gbpservice/contrib/nfp/tools/image_builder/disk_image_create.py
baodongli/group-based-policy
f3b892ecdc1051b204376e18679f73bf457ce7dc
[ "Apache-2.0" ]
null
null
null
gbpservice/contrib/nfp/tools/image_builder/disk_image_create.py
baodongli/group-based-policy
f3b892ecdc1051b204376e18679f73bf457ce7dc
[ "Apache-2.0" ]
null
null
null
# 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 # d...
36.858824
187
0.638525
09ac99f3fbd224f89863c51f72ae0b3126a8a0ad
666
py
Python
prepo.py
funkgeek/dc_tts
fd708e0b721c876e5c5cc64542abd47b39592556
[ "Apache-2.0" ]
null
null
null
prepo.py
funkgeek/dc_tts
fd708e0b721c876e5c5cc64542abd47b39592556
[ "Apache-2.0" ]
4
2021-11-12T12:04:11.000Z
2021-11-12T21:19:17.000Z
prepo.py
funkgeek/dc_tts
fd708e0b721c876e5c5cc64542abd47b39592556
[ "Apache-2.0" ]
4
2021-11-04T10:18:26.000Z
2021-11-06T14:36:22.000Z
# -*- coding: utf-8 -*- #/usr/bin/python2 ''' By kyubyong park. kbpark.linguist@gmail.com. https://www.github.com/kyubyong/dc_tts ''' from __future__ import print_function from utils import load_spectrograms import os from data_load import load_data import numpy as np import tqdm # Load data fpaths, ...
26.64
64
0.662162
7e7db2b2524a5857b81657a4a3e32f447921d961
135
py
Python
pydantic_redis/__init__.py
sopherapps/pydantic-redis
eb832cd79fac15e8e98ed235d60525fce9a50bc1
[ "MIT" ]
9
2020-08-23T18:38:04.000Z
2022-01-06T06:02:58.000Z
pydantic_redis/__init__.py
sopherapps/pydantic-redis
eb832cd79fac15e8e98ed235d60525fce9a50bc1
[ "MIT" ]
1
2020-11-23T06:24:53.000Z
2021-09-08T23:43:52.000Z
pydantic_redis/__init__.py
sopherapps/pydantic-redis
eb832cd79fac15e8e98ed235d60525fce9a50bc1
[ "MIT" ]
2
2020-08-23T18:39:09.000Z
2021-08-06T19:12:01.000Z
"""Entry point for redisy""" from .store import Store from .model import Model from .config import RedisConfig __version__ = "0.0.5"
16.875
31
0.740741
bd689a8e3569f03e5a732c98f7a9e5c12c5ecd94
5,753
py
Python
build/lib/infapy/v2/user.py
infapy/infapy
0cb11310130be70ce1b647aa5ede929c1eb9b2ce
[ "Apache-2.0" ]
null
null
null
build/lib/infapy/v2/user.py
infapy/infapy
0cb11310130be70ce1b647aa5ede929c1eb9b2ce
[ "Apache-2.0" ]
null
null
null
build/lib/infapy/v2/user.py
infapy/infapy
0cb11310130be70ce1b647aa5ede929c1eb9b2ce
[ "Apache-2.0" ]
1
2021-09-23T10:31:56.000Z
2021-09-23T10:31:56.000Z
import logging import requests as re import infapy import json from infapy.exceptions import InvalidDetailsProvided # infapy.log = logging.getinfapy.log(__name__) # print(infapy.log) class User: """ This class is a handler for fetching the details of the Users from IICS """ def __init__(self,v2,v2BaseU...
38.353333
118
0.591517
e843eec81f202b19709eb9c6ec3d006502bea90e
1,116
py
Python
data/p4VQE/R1/benchmark/startPyquil29.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startPyquil29.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startPyquil29.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=9 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 pro...
22.32
64
0.603047
70aeeaa162734c05247d4a8888d94fae5aff5930
831
py
Python
0.81/demos/theming_demo.py
jrieke/release-demos
c5202a664c99993f2f4abeb94b78e13d10e26cbe
[ "Apache-2.0" ]
40
2020-08-30T13:33:49.000Z
2022-03-05T10:59:02.000Z
0.81/demos/theming_demo.py
jrieke/release-demos
c5202a664c99993f2f4abeb94b78e13d10e26cbe
[ "Apache-2.0" ]
2
2021-08-19T20:05:18.000Z
2022-01-13T17:25:49.000Z
0.81/demos/theming_demo.py
jrieke/release-demos
c5202a664c99993f2f4abeb94b78e13d10e26cbe
[ "Apache-2.0" ]
24
2020-10-02T23:27:58.000Z
2022-03-03T03:01:30.000Z
import streamlit as st def theming_demo(): st.image( "https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/apple/279/woman-artist_1f469-200d-1f3a8.png", width=100, ) st.write( """ # Theming improvements We made several improvements to [Theming](ht...
23.083333
124
0.599278
1f9e71b4a2963a4e02b651cfbf226a7f00e37b3a
34,955
py
Python
src/olympia/translations/tests/test_models.py
anik31/addons-server
cecb61da98d6e830fb45a2b1d61b41e72812137e
[ "BSD-3-Clause" ]
2
2021-07-19T03:26:43.000Z
2021-07-24T03:12:52.000Z
src/olympia/translations/tests/test_models.py
anik31/addons-server
cecb61da98d6e830fb45a2b1d61b41e72812137e
[ "BSD-3-Clause" ]
null
null
null
src/olympia/translations/tests/test_models.py
anik31/addons-server
cecb61da98d6e830fb45a2b1d61b41e72812137e
[ "BSD-3-Clause" ]
1
2021-07-19T03:26:52.000Z
2021-07-19T03:26:52.000Z
# -*- coding: utf-8 -*- import re import django from django.conf import settings from django.db import connections, reset_queries from django.test import TransactionTestCase from django.test.utils import override_settings from django.utils import translation from django.utils.functional import lazy import jinja2 imp...
37.912148
87
0.638364
0b40650756d36eb3e72e3e7e1db9b917be2f0913
1,583
py
Python
MXnet/supervised-learning/linear_regression_gluon_compare.py
JiaLei123/ML_camp
87ba197737160958c9e05b08b277772e80b564e4
[ "MIT" ]
null
null
null
MXnet/supervised-learning/linear_regression_gluon_compare.py
JiaLei123/ML_camp
87ba197737160958c9e05b08b277772e80b564e4
[ "MIT" ]
null
null
null
MXnet/supervised-learning/linear_regression_gluon_compare.py
JiaLei123/ML_camp
87ba197737160958c9e05b08b277772e80b564e4
[ "MIT" ]
null
null
null
import mxnet as mx from mxnet import autograd, gluon, nd from mxnet.gluon import nn, data as gdata, loss as gloss import numpy as np from MXnet import utils from MXnet.display_utils import show_loss_acc_for_two_model number_inputs = 2 number_example = 100000 true_w = nd.array([2, -3.4]).reshape((2, 1)) true_b = 4.2 ...
36.813953
112
0.691725
d8b36fab8b12369538fdcbb75f1919e6d28b6abe
2,248
py
Python
arlobot_common/src/common/logger.py
tslator/arlobot_tx2
5b6b0ead86e54ec7ba5664f32263a1c8c27249c9
[ "MIT" ]
null
null
null
arlobot_common/src/common/logger.py
tslator/arlobot_tx2
5b6b0ead86e54ec7ba5664f32263a1c8c27249c9
[ "MIT" ]
null
null
null
arlobot_common/src/common/logger.py
tslator/arlobot_tx2
5b6b0ead86e54ec7ba5664f32263a1c8c27249c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ --------------------------------------------------------------------------------------------------- File: logger.py Description: This module provides a wrapper around logging and rospy logging to allow lower layer modules to log with or without rospy depending on how the module i...
28.1
99
0.420374
3dd4a11ecdd7ae5ff98ff909df2ddb888ff05367
6,127
py
Python
selfdrive/controls/lib/desire_helper.py
yih666/openpilot
8ba451a1a8cc60a19fe12f29e9f9f5d8fad82d6d
[ "MIT" ]
null
null
null
selfdrive/controls/lib/desire_helper.py
yih666/openpilot
8ba451a1a8cc60a19fe12f29e9f9f5d8fad82d6d
[ "MIT" ]
null
null
null
selfdrive/controls/lib/desire_helper.py
yih666/openpilot
8ba451a1a8cc60a19fe12f29e9f9f5d8fad82d6d
[ "MIT" ]
1
2021-11-22T04:57:24.000Z
2021-11-22T04:57:24.000Z
from cereal import log from common.realtime import DT_MDL from common.conversions import Conversions as CV from common.params import Params AUTO_LCA_START_TIME = 0. LaneChangeState = log.LateralPlan.LaneChangeState LaneChangeDirection = log.LateralPlan.LaneChangeDirection LANE_CHANGE_SPEED_MIN = 56 * CV.KPH_TO_MS LA...
45.385185
133
0.74392
8fb629316b64b2ab5e88dcf78823b0fecf2b6444
636
py
Python
Lib/encodings/unicode_escape.py
deadsnakes/python2.4
f493d5415b662e99a73d017bcafe2148c5bc8fb5
[ "PSF-2.0" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
Lib/encodings/unicode_escape.py
deadsnakes/python2.4
f493d5415b662e99a73d017bcafe2148c5bc8fb5
[ "PSF-2.0" ]
1
2019-09-03T04:11:46.000Z
2019-09-03T04:11:46.000Z
Lib/encodings/unicode_escape.py
deadsnakes/python2.4
f493d5415b662e99a73d017bcafe2148c5bc8fb5
[ "PSF-2.0" ]
3
2020-08-10T10:25:02.000Z
2021-09-12T01:12:09.000Z
""" Python 'unicode-escape' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """ import codecs ### Codec APIs class Codec(codecs.Codec): # Note: Binding these as C functions will result in the class not # converting them to methods. This is inte...
20.516129
69
0.740566
06eabcad5213e5b38befcf532acfd1e1015564d9
122
py
Python
2341.py
gabzin/beecrowd
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
3
2021-12-15T20:27:14.000Z
2022-03-01T12:30:08.000Z
2341.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
2341.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
n,k=map(int,input().split()) r=list(map(int,input().split())) x=[0 for x in range(k)] for i in r:x[i-1] +=1 print(min(x))
20.333333
32
0.598361
9d9a4b31e1775acbd429785c47adc84ed5cc06a7
12,800
py
Python
bin/list_routines.py
shardulc/ec
5551b6b672b7e1943ad38380299bfe4094266a94
[ "Unlicense" ]
null
null
null
bin/list_routines.py
shardulc/ec
5551b6b672b7e1943ad38380299bfe4094266a94
[ "Unlicense" ]
1
2020-10-17T00:51:43.000Z
2020-10-17T00:51:43.000Z
bin/list_routines.py
shardulc/ec
5551b6b672b7e1943ad38380299bfe4094266a94
[ "Unlicense" ]
1
2020-10-06T18:03:40.000Z
2020-10-06T18:03:40.000Z
try: import binutil # required to import from dreamcoder modules except ModuleNotFoundError: import bin.binutil # alt import if called as module import random import math import sys from dreamcoder.program import Program, Primitive from dreamcoder.type import * from dreamcoder.grammar import Grammar from fun...
41.157556
111
0.605391
3cee9bb7a7043a1aa1ecceae9c3763760dfb27fc
6,851
py
Python
utils/mathresh_utils.py
iwasakishuto/tripleNetDiagnosis
787a5b18073360a5e5e083aa9b003cabfcff2706
[ "MIT" ]
null
null
null
utils/mathresh_utils.py
iwasakishuto/tripleNetDiagnosis
787a5b18073360a5e5e083aa9b003cabfcff2706
[ "MIT" ]
null
null
null
utils/mathresh_utils.py
iwasakishuto/tripleNetDiagnosis
787a5b18073360a5e5e083aa9b003cabfcff2706
[ "MIT" ]
1
2021-02-14T04:59:12.000Z
2021-02-14T04:59:12.000Z
# coding: utf-8 import os import re import numpy as np import pandas as pd import seaborn as sns from kerasy.utils import findLowerUpper # set the `plotly.io.orca.config.executable` property to the full path of your orca executable. # If you use `environment.yml` to create anaconda environment, this command automatica...
48.588652
158
0.622683
6f2adf1baca941886566185ba976a777083871b0
5,360
py
Python
ababe/stru/grid.py
shaobinqiu/pyabc
eefd322bdd0bb04ae6d42554d24140c6ffbd5c34
[ "MIT" ]
null
null
null
ababe/stru/grid.py
shaobinqiu/pyabc
eefd322bdd0bb04ae6d42554d24140c6ffbd5c34
[ "MIT" ]
null
null
null
ababe/stru/grid.py
shaobinqiu/pyabc
eefd322bdd0bb04ae6d42554d24140c6ffbd5c34
[ "MIT" ]
null
null
null
# coding: utf-8 # Distributed under the terms of the MIT License. import itertools import numpy as np import spglib from functools import reduce from progressbar import ProgressBar # import pdb from itertools import product from ababe.stru.scaffold import GeneralCell class SuperLatticeCell(object): """ The ...
32.289157
78
0.536567
89f50d0e1bd3bfa872b8251cecaef24de5232522
5,821
py
Python
scripts/endToEndExtraction/remove-testcases.py
MrChico/solidity
5b4ea1eb895d5edc9a24ee5c6f96d8580eceec08
[ "MIT" ]
null
null
null
scripts/endToEndExtraction/remove-testcases.py
MrChico/solidity
5b4ea1eb895d5edc9a24ee5c6f96d8580eceec08
[ "MIT" ]
1
2020-06-17T14:24:49.000Z
2020-06-17T14:24:49.000Z
scripts/endToEndExtraction/remove-testcases.py
step21/solidity
2a0d701f709673162e8417d2f388b8171a34e892
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # pylint: disable=consider-using-enumerate, import-error import re import os import sys import getopt import tempfile from getkey import getkey def parse_call(call): function = '' arguments = "" results = "" search = re.search(r'// (.*):(.*)\s->\s(.*)', call, re.MULTILINE | re....
31.63587
114
0.586841
b94c00cf151bd11fbacbe0b1c6af307c7a82c11d
666
py
Python
bitcodin/test/encodingprofile/testcase_get_non_existent_encoding_profile.py
bitmovin/bitcodin-python
117e755f6aac657f9bb0e95862d2e9a5e4f2abff
[ "Unlicense" ]
27
2015-07-03T23:27:44.000Z
2020-11-23T17:19:11.000Z
bitcodin/test/encodingprofile/testcase_get_non_existent_encoding_profile.py
Acidburn0zzz/bitcodin-python
94aa1c3e8e2efb560a047ea9a688693b3c37ae17
[ "Unlicense" ]
8
2015-08-28T05:01:54.000Z
2019-02-18T14:40:31.000Z
bitcodin/test/encodingprofile/testcase_get_non_existent_encoding_profile.py
Acidburn0zzz/bitcodin-python
94aa1c3e8e2efb560a047ea9a688693b3c37ae17
[ "Unlicense" ]
10
2015-08-06T03:42:30.000Z
2020-12-19T20:04:13.000Z
__author__ = 'Dominic Miglar <dominic.miglar@bitmovin.net>' import unittest from bitcodin import get_encoding_profile from bitcodin.exceptions import BitcodinNotFoundError from bitcodin.test.bitcodin_test_case import BitcodinTestCase class GetNonExistentEncodingProfileTestCase(BitcodinTestCase): def setUp(self):...
28.956522
69
0.774775
1a18435da66472da918db7e5736a1a82109c1e85
1,412
py
Python
python/example_code/kms/kms-python-example-decrypt-blob.py
jasonhedges/aws-doc-sdk-examples
fb994c662505c93bd3498977fb8030e432499886
[ "Apache-2.0" ]
1
2019-01-24T03:54:17.000Z
2019-01-24T03:54:17.000Z
python/example_code/kms/kms-python-example-decrypt-blob.py
qh96/aws-doc-sdk-examples
3d8d8aaf199c276e84e1d5e10c9355306e095a38
[ "Apache-2.0" ]
null
null
null
python/example_code/kms/kms-python-example-decrypt-blob.py
qh96/aws-doc-sdk-examples
3d8d8aaf199c276e84e1d5e10c9355306e095a38
[ "Apache-2.0" ]
1
2018-12-01T07:55:04.000Z
2018-12-01T07:55:04.000Z
# Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # This file is licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # This f...
32.837209
173
0.739377
91e9c311f8e2a2eb4fe968f3d137b92e3a1db682
2,623
py
Python
econ_platform_core/providers/provider_user.py
brianr747/platform
761f83311494996bfb21218400a1ee8b6864d190
[ "Apache-2.0" ]
3
2019-05-11T12:28:18.000Z
2022-02-09T07:03:51.000Z
econ_platform_core/providers/provider_user.py
brianr747/platform
761f83311494996bfb21218400a1ee8b6864d190
[ "Apache-2.0" ]
null
null
null
econ_platform_core/providers/provider_user.py
brianr747/platform
761f83311494996bfb21218400a1ee8b6864d190
[ "Apache-2.0" ]
2
2019-05-12T21:35:45.000Z
2021-05-22T19:41:46.000Z
""" Provider for internally generated series. By default, empty, but the idea is that you push your own handlers into this object. Probably need to monkey-patch your own class if this gets complicated. 2021-06-21: Added the ability to create tickers that are "functions." Copyright 2019 Brian Romanchuk Licensed unde...
36.430556
117
0.663744
9aec66b5fa1e9b4be4766e17c5b6fa113909a5b9
4,618
py
Python
thelma/resources/rack.py
fogathmann/TheLMA
ac330a0005da4fea2f1387da9ff9938611ad1481
[ "MIT" ]
1
2020-07-12T22:47:58.000Z
2020-07-12T22:47:58.000Z
thelma/resources/rack.py
papagr/TheLMA
d2dc7a478ee5d24ccf3cc680888e712d482321d0
[ "MIT" ]
null
null
null
thelma/resources/rack.py
papagr/TheLMA
d2dc7a478ee5d24ccf3cc680888e712d482321d0
[ "MIT" ]
1
2020-07-12T22:40:36.000Z
2020-07-12T22:40:36.000Z
""" This file is part of the TheLMA (THe Laboratory Management Application) project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. Rack resource. """ from datetime import datetime from everest.constants import CARDINALITIES from everest.querying.specifications import DescendingOrderSpec...
32.069444
80
0.704417
8f64f8014806209e9c243de76d8e21d44ce32eef
1,435
py
Python
kafka-utils/tests/bai_kafka_utils/executors/conftest.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
6
2020-09-29T09:03:04.000Z
2022-03-14T06:52:25.000Z
kafka-utils/tests/bai_kafka_utils/executors/conftest.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
null
null
null
kafka-utils/tests/bai_kafka_utils/executors/conftest.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
4
2020-10-01T07:49:22.000Z
2021-06-16T19:44:12.000Z
import pytest from addict import addict from bai_kafka_utils.executors.descriptor import BenchmarkDescriptor, DescriptorConfig, DistributedStrategy from bai_kafka_utils.kafka_service import KafkaServiceConfig @pytest.fixture def descriptor_config(): return DescriptorConfig( valid_strategies=[e.value for ...
32.613636
111
0.724739
c258ffeef1f296be5a210d17609eedf16fce8155
1,062
py
Python
src/dataPreprocess.py
JiaHeng-DLUT/Webshell
a547e11e90043028b07f6727be7aef92ac0a5f56
[ "MIT" ]
1
2020-12-23T02:25:29.000Z
2020-12-23T02:25:29.000Z
src/dataPreprocess.py
JiaHeng-DLUT/Webshell
a547e11e90043028b07f6727be7aef92ac0a5f56
[ "MIT" ]
null
null
null
src/dataPreprocess.py
JiaHeng-DLUT/Webshell
a547e11e90043028b07f6727be7aef92ac0a5f56
[ "MIT" ]
1
2020-01-07T05:48:44.000Z
2020-01-07T05:48:44.000Z
# -*- coding: utf-8 -*- """ Created on Mon Apr 8 20:51:17 2019 @author: jiaheng """ import os import numpy as np import pandas as pd # 项目所在路径 projectPath = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) with open(projectPath + "/res/feature.csv") as file: feature = pd.read_csv(file) [m, n] =...
27.947368
74
0.547081
6d695f76b92524a4a968ec18b7ade2837daae48a
4,196
py
Python
deepobs/tensorflow/testproblems/imagenet_inception_v3.py
H0merJayS1mpson/deepobscustom
e85816ce42466326dac18841c58b79f87a4a1a7c
[ "MIT" ]
null
null
null
deepobs/tensorflow/testproblems/imagenet_inception_v3.py
H0merJayS1mpson/deepobscustom
e85816ce42466326dac18841c58b79f87a4a1a7c
[ "MIT" ]
null
null
null
deepobs/tensorflow/testproblems/imagenet_inception_v3.py
H0merJayS1mpson/deepobscustom
e85816ce42466326dac18841c58b79f87a4a1a7c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Inception version 3 architecture for ImageNet.""" import tensorflow as tf from ._inception_v3 import _inception_v3 from ..datasets.imagenet import imagenet from .testproblem import TestProblem class imagenet_inception_v3(TestProblem): """DeepOBS test problem class for the Inception ve...
38.145455
107
0.675882
75274c172798286b64fb7fe18902720761763602
7,520
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/security_rule.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/security_rule.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/security_rule.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "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 ...
54.492754
148
0.691356
57fa92dad50f390ecfbd6d09dc8304034ad0d17e
10,087
py
Python
categorical_MNIST/arsm.py
thu-spmi/JSA
8ce9392995e83e22b8bb9cf3b56693717ee8f9c0
[ "Apache-2.0" ]
1
2020-07-18T14:37:54.000Z
2020-07-18T14:37:54.000Z
categorical_MNIST/arsm.py
thu-spmi/JSA
8ce9392995e83e22b8bb9cf3b56693717ee8f9c0
[ "Apache-2.0" ]
null
null
null
categorical_MNIST/arsm.py
thu-spmi/JSA
8ce9392995e83e22b8bb9cf3b56693717ee8f9c0
[ "Apache-2.0" ]
1
2020-05-29T10:20:20.000Z
2020-05-29T10:20:20.000Z
# Copyright 2019 ARM-gradient (https://github.com/ARM-gradient/ARSM) # 2020 Tsinghua University, Author: Yunfu Song # Apache 2.0. # This script contrains ARSM for categorical MNIST experiment. from __future__ import absolute_import from __future__ import division from __future__ import print_function import...
35.146341
143
0.693269
4afaade746f3840840d1b770b8da012cbd028613
138
py
Python
rmrb/rmrb_daemon/__init__.py
fjfhccfkuk/h_s_x_r_m_r_b_python
46fe249b1b71f1245296c8b2dbd6e7c29dadade4
[ "Unlicense" ]
null
null
null
rmrb/rmrb_daemon/__init__.py
fjfhccfkuk/h_s_x_r_m_r_b_python
46fe249b1b71f1245296c8b2dbd6e7c29dadade4
[ "Unlicense" ]
null
null
null
rmrb/rmrb_daemon/__init__.py
fjfhccfkuk/h_s_x_r_m_r_b_python
46fe249b1b71f1245296c8b2dbd6e7c29dadade4
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python #import all modules under directory modules #import main; print("This is main __init__ "); #main.__doDaemon();
12.545455
43
0.717391
f04a5778058a829451f345b5418fafa62753d954
24,768
py
Python
custom_components/xiaomi_miio_fan/fan.py
bubi503/xiaomi_fan
998070daed05afdf2171a0496247e37d0eef2ea6
[ "Apache-2.0" ]
1
2020-09-18T06:29:13.000Z
2020-09-18T06:29:13.000Z
custom_components/xiaomi_miio_fan/fan.py
kyun78/xiaomi_fan
00784a9d02d5ee14473c91737b296d798cc3a7b9
[ "Apache-2.0" ]
null
null
null
custom_components/xiaomi_miio_fan/fan.py
kyun78/xiaomi_fan
00784a9d02d5ee14473c91737b296d798cc3a7b9
[ "Apache-2.0" ]
null
null
null
""" Support for Xiaomi Mi Smart Pedestal Fan. For more details about this platform, please refer to the documentation https://home-assistant.io/components/fan.xiaomi_miio/ """ import asyncio from enum import Enum from functools import partial import logging import voluptuous as vol from homeassistant.components.fan ...
31.115578
122
0.617288
9a3beb14ef42c5c4b70deddb52f9d6e4acb16080
37,843
py
Python
picatrix/magics/timesketch.py
google/picatrix
4e7f20f238c0f204e332a8a25dac1c0d529ed9ef
[ "Apache-2.0" ]
27
2020-10-23T14:45:14.000Z
2022-03-31T14:57:58.000Z
picatrix/magics/timesketch.py
mariuszlitwin/picatrix
4e7f20f238c0f204e332a8a25dac1c0d529ed9ef
[ "Apache-2.0" ]
15
2020-10-20T04:10:26.000Z
2021-11-01T16:57:37.000Z
picatrix/magics/timesketch.py
mariuszlitwin/picatrix
4e7f20f238c0f204e332a8a25dac1c0d529ed9ef
[ "Apache-2.0" ]
12
2020-10-17T11:06:10.000Z
2022-01-27T12:37:49.000Z
"""Timesketch magic module. This module conatins an implementation for the Picatrix Timesketch integration. It enables colab/jupyter to send and receive data from a Timesketch sketch. """ import datetime import logging import os from typing import Any, Dict, List, Optional, Text, Union import dateutil.parser import p...
30.153785
80
0.698729
e662e1d7723bbd5406a9aa1375162fa05525856e
5,750
py
Python
app/admin/views.py
hack4impact-upenn/immigrant-defense-project
38b4698151178a4c82f314408cd7007c4dd80f51
[ "MIT" ]
1
2018-09-22T05:14:23.000Z
2018-09-22T05:14:23.000Z
app/admin/views.py
hack4impact-upenn/immigrant-defense-project
38b4698151178a4c82f314408cd7007c4dd80f51
[ "MIT" ]
null
null
null
app/admin/views.py
hack4impact-upenn/immigrant-defense-project
38b4698151178a4c82f314408cd7007c4dd80f51
[ "MIT" ]
null
null
null
from flask import (Blueprint, abort, flash, redirect, render_template, request, url_for) from flask_login import current_user, login_required from flask_rq import get_queue from app import db from app.admin.forms import (ChangeAccountTypeForm, ChangeUserEmailForm, Invite...
32.303371
79
0.657217
5e358abecca73870e00b67e524ed8b9fc4d52622
2,062
py
Python
tests/test_C3D8R_fiberTension_expected.py
LucaDiStasio/CompDam_DGD
c01344972db6b9b97d5d19225bff8e63d8e54a20
[ "NASA-1.3" ]
81
2016-07-12T18:14:13.000Z
2022-03-28T04:46:46.000Z
tests/test_C3D8R_fiberTension_expected.py
LucaDiStasio/CompDam_DGD
c01344972db6b9b97d5d19225bff8e63d8e54a20
[ "NASA-1.3" ]
9
2017-04-04T13:37:26.000Z
2020-08-18T14:52:06.000Z
tests/test_C3D8R_fiberTension_expected.py
LucaDiStasio/CompDam_DGD
c01344972db6b9b97d5d19225bff8e63d8e54a20
[ "NASA-1.3" ]
55
2016-07-12T18:47:18.000Z
2022-03-29T22:46:28.000Z
parameters = { "results": [ { "type": "max", "identifier": { "symbol": "S11", "elset": "ALL", "position": "Element 1 Int Point 1" }, "referenceValue": 2326.2, "toleranc...
28.246575
84
0.302619
b01e47b3a572733befd5e0610d2eff5a98446623
878
py
Python
test_view.py
WebF0x/Snake
b370d64edcb39bff3e9612044b68d34a23d882e2
[ "Unlicense" ]
null
null
null
test_view.py
WebF0x/Snake
b370d64edcb39bff3e9612044b68d34a23d882e2
[ "Unlicense" ]
null
null
null
test_view.py
WebF0x/Snake
b370d64edcb39bff3e9612044b68d34a23d882e2
[ "Unlicense" ]
null
null
null
from view import View class TestView: def setup(self): self.view = View() def test_sprite_scaling_to_canvas_horizontally(self): canvas = { 'x': 0, 'y': 0, 'width': 10, 'height': 20 } class SpriteStub: def __init__(se...
22.512821
64
0.484055
1f9cf1d31dbec0994895cebd4b5d1188a8fe8300
7,353
py
Python
parallel_wavenet_vocoder/synthesis.py
botmatic/tacotron2
c2dee4930f6bd1cf707e0565fd0675b8646a51a1
[ "BSD-3-Clause" ]
2
2018-10-03T14:51:28.000Z
2018-10-15T05:13:55.000Z
parallel_wavenet_vocoder/synthesis.py
botmatic/tacotron2
c2dee4930f6bd1cf707e0565fd0675b8646a51a1
[ "BSD-3-Clause" ]
null
null
null
parallel_wavenet_vocoder/synthesis.py
botmatic/tacotron2
c2dee4930f6bd1cf707e0565fd0675b8646a51a1
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ Synthesis waveform from trained WaveNet. usage: synthesis.py [options] <checkpoint> <dst_dir> options: --hparams=<parmas> Hyper parameters [default: ]. --preset=<json> Path of preset parameters (json). --length=<T> Steps to generate...
33.729358
141
0.635931
9e328cf942394e527cc241bf96b7cb1640fbafc1
2,380
py
Python
src/secondaires/navigation/equipage/signaux/__init__.py
vlegoff/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
14
2015-08-21T19:15:21.000Z
2017-11-26T13:59:17.000Z
src/secondaires/navigation/equipage/signaux/__init__.py
vincent-lg/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
20
2015-09-29T20:50:45.000Z
2018-06-21T12:58:30.000Z
src/secondaires/navigation/equipage/signaux/__init__.py
vlegoff/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
3
2015-05-02T19:42:03.000Z
2018-09-06T10:55:00.000Z
# -*-coding:Utf-8 -* # Copyright (c) 2010-2017 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # ...
50.638298
79
0.805462
9d0cb086d579eac4b2277840e18e23498e508dc5
4,524
py
Python
trello_reporter/settings.py
TomasTomecek/trello-reporter
dc5ec1ba2e41b38b814ab0031207c832f179cf1e
[ "MIT" ]
4
2017-10-23T18:42:12.000Z
2022-03-15T07:31:07.000Z
trello_reporter/settings.py
TomasTomecek/trello-reporter
dc5ec1ba2e41b38b814ab0031207c832f179cf1e
[ "MIT" ]
4
2016-08-09T13:35:05.000Z
2017-05-25T07:48:38.000Z
trello_reporter/settings.py
TomasTomecek/trello-reporter
dc5ec1ba2e41b38b814ab0031207c832f179cf1e
[ "MIT" ]
3
2016-10-11T15:17:32.000Z
2020-03-18T13:42:43.000Z
""" Django settings for trello_reporter project. Generated by 'django-admin startproject' using Django 1.9.7. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ impo...
27.754601
76
0.662467
d4579c64cccc020d4f343fd6fe85b92e2e372c60
287
py
Python
housing/housing/pipelines.py
darshanime/scrapy-tutorials
a68744b78daab73c4fe54bcfb31ef12f60a7ebb1
[ "MIT" ]
2
2019-01-16T17:25:43.000Z
2021-08-25T12:04:38.000Z
housing/housing/pipelines.py
darshanime/scrapy-tutorials
a68744b78daab73c4fe54bcfb31ef12f60a7ebb1
[ "MIT" ]
1
2016-10-28T09:08:03.000Z
2016-10-28T09:08:03.000Z
housing/housing/pipelines.py
darshanime/scrapy-tutorials
a68744b78daab73c4fe54bcfb31ef12f60a7ebb1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html class HousingPipeline(object): def process_item(self, item, spider): return item
23.916667
65
0.710801