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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
02daf469a9b3371648f1e038238e3d53ed5042fa | 18,746 | py | Python | build/images/manifest.py | liexusong/fuchsia | 81897680af92a1848a063e3c20ff3a4892ccff07 | [
"BSD-2-Clause"
] | 3 | 2021-09-02T07:21:06.000Z | 2022-03-12T03:20:10.000Z | build/images/manifest.py | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | 56 | 2021-06-03T03:16:25.000Z | 2022-03-20T01:07:44.000Z | build/images/manifest.py | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | 2 | 2022-02-25T12:22:49.000Z | 2022-03-12T03:20:10.000Z | #!/usr/bin/env python3.8
# Copyright 2017 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from collections import namedtuple
import argparse
import os
import errno
import fnmatch
import shlex
import shutil
import sys
# TEC... | 37.64257 | 94 | 0.646165 |
f37a37e1320c345b29bf10b70dcbc86bf1f0d06e | 645 | py | Python | tests/test_traceback.py | pytask-dev/pytask | b6769b48abda44c6261b9a7b58865f8844423c13 | [
"MIT"
] | 41 | 2020-07-24T15:19:19.000Z | 2022-03-17T17:40:57.000Z | tests/test_traceback.py | pytask-dev/pytask | b6769b48abda44c6261b9a7b58865f8844423c13 | [
"MIT"
] | 240 | 2020-06-26T21:37:49.000Z | 2022-03-31T08:56:56.000Z | tests/test_traceback.py | pytask-dev/pytask | b6769b48abda44c6261b9a7b58865f8844423c13 | [
"MIT"
] | null | null | null | import textwrap
import pytest
from pytask import cli
@pytest.mark.parametrize("is_hidden", [True, False])
def test_hide_traceback_from_error_report(runner, tmp_path, is_hidden):
source = f"""
def task_main():
a = "This variable should not be shown."
__tracebackhide__ = {is_hidden}
h... | 23.888889 | 83 | 0.67907 |
e4f2c591e986caf33eef493a1165d2468486a5a5 | 3,463 | py | Python | tests/m_test_matrixnet_applier.py | HolyBayes/rep | 8a8d70f87e148e6fd73ff0c3a8606e6074a5c47b | [
"Apache-2.0"
] | 726 | 2015-04-16T08:16:30.000Z | 2022-03-25T19:19:42.000Z | tests/m_test_matrixnet_applier.py | HolyBayes/rep | 8a8d70f87e148e6fd73ff0c3a8606e6074a5c47b | [
"Apache-2.0"
] | 86 | 2015-04-16T23:57:01.000Z | 2021-09-26T01:03:47.000Z | tests/m_test_matrixnet_applier.py | HolyBayes/rep | 8a8d70f87e148e6fd73ff0c3a8606e6074a5c47b | [
"Apache-2.0"
] | 167 | 2015-04-16T11:42:18.000Z | 2022-01-11T15:10:19.000Z | """
Here we test the correctness and speed of the formula.
"""
from __future__ import division, print_function, absolute_import
import os
import time
import numpy
from scipy.special import expit
import pandas
from six import BytesIO
from six.moves import zip
from rep.estimators._matrixnetapplier import MatrixNetApplie... | 30.919643 | 106 | 0.714409 |
fe73ca589de4a0d681f9fa3d8bdee5349b32d6f9 | 697 | py | Python | client/client/functions/commands/remote_shell.py | IchBInHanz/clientnet | 20a75df953eee08d9bc1135a20cc662ba87efea1 | [
"MIT"
] | 1 | 2021-01-08T15:27:29.000Z | 2021-01-08T15:27:29.000Z | client/client/functions/commands/remote_shell.py | IchBInHanz/clientnet | 20a75df953eee08d9bc1135a20cc662ba87efea1 | [
"MIT"
] | null | null | null | client/client/functions/commands/remote_shell.py | IchBInHanz/clientnet | 20a75df953eee08d9bc1135a20cc662ba87efea1 | [
"MIT"
] | null | null | null | def remoteShell(cmd):
import os
path_cmd_partitioned = cmd.partition("/workdir/")
workdir = path_cmd_partitioned[2]
# if workdir == "undifined":
# pass
# else:
# # workdir = workdir.replace("\\", "\\\\")
# os.chdir(workdir)
only_command = path_cmd_partitioned[0].replace("... | 38.722222 | 137 | 0.601148 |
c0c2be61f906835387530a491f9378534aa55f0c | 2,898 | py | Python | TRIPPy/plot/loadct.py | fsciortino/TRIPPy | e2af5cc0e01dc42dbba9329e30b9dd20feca4902 | [
"MIT"
] | 2 | 2015-03-27T11:44:42.000Z | 2015-06-16T18:56:27.000Z | TRIPPy/plot/loadct.py | fsciortino/TRIPPy | e2af5cc0e01dc42dbba9329e30b9dd20feca4902 | [
"MIT"
] | 1 | 2019-03-12T18:16:28.000Z | 2019-04-24T23:44:23.000Z | TRIPPy/plot/loadct.py | fsciortino/TRIPPy | e2af5cc0e01dc42dbba9329e30b9dd20feca4902 | [
"MIT"
] | 2 | 2020-03-03T03:47:09.000Z | 2021-12-03T12:33:19.000Z | import scipy
import matplotlib.colors
import os
import sys
import inspect
import matplotlib.pyplot as plt
cmd_folder = os.path.realpath(os.path.abspath(os.path.split(inspect.getfile(inspect.currentframe()))[0]))
gsdict = {'thermal':0,
'thermal2':1,
'thermal3':2,
'bright':3,
'cop... | 29.272727 | 105 | 0.506556 |
c06479e4a71467c578ed9336b9fd868d899c6074 | 2,327 | py | Python | backend/api/serializers/Notifications.py | amichard/tfrs | ed3973016cc5c2ae48999d550a23b41a5ddad807 | [
"Apache-2.0"
] | 18 | 2017-05-10T21:55:11.000Z | 2021-03-01T16:41:32.000Z | backend/api/serializers/Notifications.py | amichard/tfrs | ed3973016cc5c2ae48999d550a23b41a5ddad807 | [
"Apache-2.0"
] | 1,167 | 2017-03-04T00:18:43.000Z | 2022-03-03T22:31:51.000Z | backend/api/serializers/Notifications.py | amichard/tfrs | ed3973016cc5c2ae48999d550a23b41a5ddad807 | [
"Apache-2.0"
] | 48 | 2017-03-09T17:19:39.000Z | 2022-02-24T16:38:17.000Z | """
REST API Documentation for the NRS TFRS Credit Trading Application
The Transportation Fuels Reporting System is being designed to streamline
compliance reporting for transportation fuel suppliers in accordance with
the Renewable & Low Carbon Fuel Requirements Regulation.
OpenAPI spec version: ... | 36.936508 | 77 | 0.760636 |
0bd451695e16901538ff5551c6b6b428cb769641 | 30,755 | py | Python | neural_structured_learning/keras/adversarial_regularization.py | eustomaqua/neural-structured-learning | e63a9e7ef435caaf6d70c04b6529e830bf47239d | [
"Apache-2.0"
] | null | null | null | neural_structured_learning/keras/adversarial_regularization.py | eustomaqua/neural-structured-learning | e63a9e7ef435caaf6d70c04b6529e830bf47239d | [
"Apache-2.0"
] | null | null | null | neural_structured_learning/keras/adversarial_regularization.py | eustomaqua/neural-structured-learning | e63a9e7ef435caaf6d70c04b6529e830bf47239d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 44.061605 | 107 | 0.695269 |
95b181e6008eeaafe572a6cacb3d0d7f8043e777 | 641 | py | Python | post/migrations/0040_auto_20191216_0455.py | abhiabhi94/blog | 0da1522361e47af3bbfba974f801277e14c7a397 | [
"MIT"
] | null | null | null | post/migrations/0040_auto_20191216_0455.py | abhiabhi94/blog | 0da1522361e47af3bbfba974f801277e14c7a397 | [
"MIT"
] | 12 | 2019-09-11T18:37:19.000Z | 2019-09-16T21:51:35.000Z | post/migrations/0040_auto_20191216_0455.py | abhiabhi94/blog | 0da1522361e47af3bbfba974f801277e14c7a397 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-12-15 23:25
import ckeditor_uploader.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('post', '0039_post_hits'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='... | 22.892857 | 68 | 0.581903 |
8a5ae3d6f7505bd18fca3c39adf8199852b9556c | 11,092 | py | Python | data_generation/forward_model/devito/devito/core/autotuning.py | LukasMosser/SNIST | c7122541db2aa597cff34a45aa0465ec1679e2b3 | [
"MIT"
] | 11 | 2019-07-18T11:15:12.000Z | 2021-09-14T02:20:52.000Z | data_generation/forward_model/devito/devito/core/autotuning.py | LukasMosser/SNIST | c7122541db2aa597cff34a45aa0465ec1679e2b3 | [
"MIT"
] | null | null | null | data_generation/forward_model/devito/devito/core/autotuning.py | LukasMosser/SNIST | c7122541db2aa597cff34a45aa0465ec1679e2b3 | [
"MIT"
] | 3 | 2020-02-15T14:23:29.000Z | 2021-02-04T01:51:02.000Z | from collections import OrderedDict
from itertools import chain, combinations, product
import resource
import psutil
from devito.dle import BlockDimension, NThreads
from devito.ir import Backward, retrieve_iteration_tree
from devito.logger import perf, warning as _warning
from devito.mpi import MPI
from devito.paramet... | 35.4377 | 88 | 0.642625 |
1f0dbe5c791974893a15733592825b3b7b69ae6a | 2,257 | py | Python | src/genie/libs/parser/iosxe/tests/ShowLispEthernetMapCachePrefix/cli/equal/golden_output1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowLispEthernetMapCachePrefix/cli/equal/golden_output1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowLispEthernetMapCachePrefix/cli/equal/golden_output1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | null | null | null | expected_output = {
"lisp_id": {
0: {
"instance_id": {
8188: {
"eid_table": "Vlan 210",
"entries": 1,
"eid_prefix": {
"0017.0100.0001/48": {
"uptime": "01:09:06",
... | 42.584906 | 64 | 0.216216 |
d3e8f3992e46e06915015416caf7aa7c13da08d8 | 3,893 | py | Python | azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network.py | v-Ajnava/azure-sdk-for-python | a1f6f80eb5869c5b710e8bfb66146546697e2a6f | [
"MIT"
] | 4 | 2016-06-17T23:25:29.000Z | 2022-03-30T22:37:45.000Z | azure/mgmt/devtestlabs/models/virtual_network.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 54 | 2016-03-25T17:25:01.000Z | 2018-10-22T17:27:54.000Z | azure/mgmt/devtestlabs/models/virtual_network.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 3 | 2016-05-03T20:49:46.000Z | 2017-10-05T21:05:27.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 ... | 45.267442 | 220 | 0.659389 |
0922191931101dab7d3f87561ff1b4dec06456a7 | 86 | py | Python | contacts/admin.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | 3 | 2022-03-08T19:02:41.000Z | 2022-03-16T23:04:37.000Z | contacts/admin.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | 5 | 2022-03-17T02:16:52.000Z | 2022-03-18T02:55:25.000Z | contacts/admin.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
admin.site.register(Contact)
| 14.333333 | 32 | 0.790698 |
fe151be68963f98b6606742c120582d52c35ef62 | 458 | py | Python | index.py | rednes/raspberry-webapi | cccdcd3e8736f0366d5a296dd05136b19439b63a | [
"MIT"
] | null | null | null | index.py | rednes/raspberry-webapi | cccdcd3e8736f0366d5a296dd05136b19439b63a | [
"MIT"
] | null | null | null | index.py | rednes/raspberry-webapi | cccdcd3e8736f0366d5a296dd05136b19439b63a | [
"MIT"
] | null | null | null | from bottle import route, run, template
import wiringpi
import time
GPIO_DICT = {'1':4, '2':17, '3':27}
def gpio_process(led_pin):
wiringpi.wiringPiSetupGpio()
wiringpi.pinMode(led_pin, 1)
wiringpi.digitalWrite(led_pin, 1)
time.sleep(1)
wiringpi.digitalWrite(led_pin, 0)
@route('/api/<number>')
... | 20.818182 | 59 | 0.70524 |
da32f3d7f7859182db955ad3b197e2ee8a8b7580 | 4,463 | py | Python | jenkins/docker_diff.py | jpbetz/test-infra | 8272c557733c4ff13eaca515cb61523bf0fc91cd | [
"Apache-2.0"
] | 3 | 2020-04-10T14:14:11.000Z | 2021-06-09T08:39:22.000Z | jenkins/docker_diff.py | jpbetz/test-infra | 8272c557733c4ff13eaca515cb61523bf0fc91cd | [
"Apache-2.0"
] | 3 | 2021-03-20T05:23:47.000Z | 2021-03-20T05:35:10.000Z | jenkins/docker_diff.py | jpbetz/test-infra | 8272c557733c4ff13eaca515cb61523bf0fc91cd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2016 The Kubernetes 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 appli... | 29.556291 | 86 | 0.641273 |
bed1cf483cf714fd1e02c5e00cd930fc99b2745b | 335 | py | Python | tests/class/alias08.py | ktok07b6/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 83 | 2015-11-30T09:59:13.000Z | 2021-08-03T09:12:28.000Z | tests/class/alias08.py | jesseclin/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 4 | 2017-02-10T01:43:11.000Z | 2020-07-14T03:52:25.000Z | tests/class/alias08.py | jesseclin/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 11 | 2016-11-18T14:39:15.000Z | 2021-02-23T10:05:20.000Z | from polyphony import testbench
class D:
def get_v(self, v):
return v
class C:
def __init__(self, v):
self.v = v
def alias08(x):
s = 0
for i in range(x):
c = C(i)
s += c.v
return s
@testbench
def test():
assert 1+2+3 == alias08(4)
assert 0 == alias08(0... | 13.958333 | 31 | 0.513433 |
099744e9eec3308ec1bcb822460b081276ff394a | 7,189 | py | Python | dfirtrack/settings.py | cclauss/dfirtrack | 2a307c5fe82e927b3c229a20a02bc0c7a5d66d9a | [
"Apache-2.0"
] | null | null | null | dfirtrack/settings.py | cclauss/dfirtrack | 2a307c5fe82e927b3c229a20a02bc0c7a5d66d9a | [
"Apache-2.0"
] | null | null | null | dfirtrack/settings.py | cclauss/dfirtrack | 2a307c5fe82e927b3c229a20a02bc0c7a5d66d9a | [
"Apache-2.0"
] | null | null | null | """
Django settings for DFIRTrack project.
"""
import os
from dfirtrack.config import LOGGING_PATH
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_... | 28.41502 | 128 | 0.633607 |
12381dee8d04f016585fcb37eaed79c2d4fb0788 | 168 | py | Python | backend/newsletter/__init__.py | Lanseuo/newsletter | a0e9e81035ec6322426d5c9223f11a80e6dc7245 | [
"MIT"
] | null | null | null | backend/newsletter/__init__.py | Lanseuo/newsletter | a0e9e81035ec6322426d5c9223f11a80e6dc7245 | [
"MIT"
] | 3 | 2021-03-08T19:40:32.000Z | 2022-02-12T02:21:17.000Z | backend/newsletter/__init__.py | Lanseuo/newsletter | a0e9e81035ec6322426d5c9223f11a80e6dc7245 | [
"MIT"
] | null | null | null | from .api import newsletter_api_blueprint
from .frontend import newsletter_frontend_blueprint
__all__ = ["newsletter_api_blueprint", "newsletter_frontend_blueprint"]
| 28 | 71 | 0.857143 |
90194f8fadd5bc68b4a63515af23ec56de53d695 | 1,803 | py | Python | google/ads/googleads/v6/enums/types/user_list_size_range.py | wxxlouisa/google-ads-python | f24137966f6bfcb765a9b1fae79f2d23041825fe | [
"Apache-2.0"
] | null | null | null | google/ads/googleads/v6/enums/types/user_list_size_range.py | wxxlouisa/google-ads-python | f24137966f6bfcb765a9b1fae79f2d23041825fe | [
"Apache-2.0"
] | null | null | null | google/ads/googleads/v6/enums/types/user_list_size_range.py | wxxlouisa/google-ads-python | f24137966f6bfcb765a9b1fae79f2d23041825fe | [
"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 o... | 33.388889 | 74 | 0.723239 |
030dd3dd032ee2a66293b91964effb77ad0a4796 | 66,342 | py | Python | src/transform_conversions/transformations.py | jaymwong/transformation_conversions | cbd269c651aa92ccc56c90129d0c29df09bb2e46 | [
"BSD-2-Clause"
] | null | null | null | src/transform_conversions/transformations.py | jaymwong/transformation_conversions | cbd269c651aa92ccc56c90129d0c29df09bb2e46 | [
"BSD-2-Clause"
] | null | null | null | src/transform_conversions/transformations.py | jaymwong/transformation_conversions | cbd269c651aa92ccc56c90129d0c29df09bb2e46 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2006-2017, Christoph Gohlke
# Copyright (c) 2006-2017, The Regents of the University of California
# Produced at the Laboratory for Fluorescence Dynamics
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the followin... | 34.391913 | 79 | 0.588285 |
aee6932251ad55ca15484d6e091fa2a12acc8da9 | 2,118 | py | Python | excut/experiments/datasets.py | mhmgad/ExCut | 09e943a23207381de3c3a9e6f70015882b8ec4af | [
"Apache-2.0"
] | 5 | 2020-11-17T19:59:49.000Z | 2021-09-23T23:10:39.000Z | excut/experiments/datasets.py | mhmgad/ExCut | 09e943a23207381de3c3a9e6f70015882b8ec4af | [
"Apache-2.0"
] | null | null | null | excut/experiments/datasets.py | mhmgad/ExCut | 09e943a23207381de3c3a9e6f70015882b8ec4af | [
"Apache-2.0"
] | null | null | null | import os
datasets={}
experiment_name="expr10"
# add baseline_data
for ds in ['terroristAttack', 'imdb', 'uwcse', 'webkb', 'mutagenesis', 'hep']:
dataset_folder = os.path.join('/scratch/GW/pool0/gadelrab/ExDEC/data/baseline_data/', ds)
dataset_output_folder = os.path.join('/scratch/GW/pool0/gadelrab/ExDEC/%s... | 51.658537 | 116 | 0.604344 |
24e9de125225abe03ba4a2480dccdf9b0fcdb52f | 30 | py | Python | sample_rules/pyrete/__init__.py | eshandas/pyrate | 281db3632f5fbe4a930ca205e9eb0b285c908141 | [
"MIT"
] | 9 | 2018-07-09T17:59:39.000Z | 2020-12-26T14:48:58.000Z | sample_rules/pyrete/__init__.py | eshandas/pyrate | 281db3632f5fbe4a930ca205e9eb0b285c908141 | [
"MIT"
] | 2 | 2018-07-09T17:59:27.000Z | 2021-06-01T21:56:33.000Z | sample_rules/pyrete/__init__.py | eshandas/pyrete | 281db3632f5fbe4a930ca205e9eb0b285c908141 | [
"MIT"
] | null | null | null | """
About the Rule Engine
"""
| 7.5 | 21 | 0.6 |
4adf9b717f616d77d3f12ee9ae851022626c26d3 | 702 | py | Python | Etap 3/Logia14/Zad4.py | aszokalski/Logia | 5e29745b01623df8a2f162f143656a76056af407 | [
"MIT"
] | null | null | null | Etap 3/Logia14/Zad4.py | aszokalski/Logia | 5e29745b01623df8a2f162f143656a76056af407 | [
"MIT"
] | null | null | null | Etap 3/Logia14/Zad4.py | aszokalski/Logia | 5e29745b01623df8a2f162f143656a76056af407 | [
"MIT"
] | null | null | null | def ilesam(wyroby, samochody):
wyn = 0
for samochod in samochody:
zapakowano = 0
while zapakowano < samochod:
if len(wyroby) == 0:
return wyn + 1
if zapakowano + wyroby[0][1] > samochod:
break
maks = 0
... | 26 | 61 | 0.404558 |
5db262a9d7621cd71b8c5eb673d1d886db81f057 | 55,006 | py | Python | PythonAPI/carissma_project/lib/python3.5/site-packages/matplotlib/projections/polar.py | AbdulHoffmann/carla_carissma | 8d382769ffa02a6c61a22c57160285505f5ff0a4 | [
"MIT"
] | 445 | 2019-01-26T13:50:26.000Z | 2022-03-18T05:17:38.000Z | venv/lib/python3.7/site-packages/matplotlib/projections/polar.py | John1001Song/Big-Data-Robo-Adviser | 9444dce96954c546333d5aecc92a06c3bfd19aa5 | [
"MIT"
] | 242 | 2019-01-29T15:48:27.000Z | 2022-03-31T22:09:21.000Z | venv/lib/python3.7/site-packages/matplotlib/projections/polar.py | John1001Song/Big-Data-Robo-Adviser | 9444dce96954c546333d5aecc92a06c3bfd19aa5 | [
"MIT"
] | 64 | 2018-04-25T08:51:57.000Z | 2022-01-29T14:13:57.000Z | from collections import OrderedDict
import types
import numpy as np
from matplotlib.axes import Axes
import matplotlib.axis as maxis
from matplotlib import cbook
from matplotlib import docstring
import matplotlib.markers as mmarkers
import matplotlib.patches as mpatches
import matplotlib.path as mpath
from matplotlib... | 35.464861 | 79 | 0.56212 |
29d04f4862c66da64cd582746e4bb5c1395878e4 | 4,590 | py | Python | websocket/controller/base_controller.py | shadow-share/websocket | 221f523f2973633b14d66b3890a644a0707dd18c | [
"MIT"
] | null | null | null | websocket/controller/base_controller.py | shadow-share/websocket | 221f523f2973633b14d66b3890a644a0707dd18c | [
"MIT"
] | null | null | null | websocket/controller/base_controller.py | shadow-share/websocket | 221f523f2973633b14d66b3890a644a0707dd18c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (C) 2017 ShadowMan
#
import abc
from websocket.ext import frame_verifier
from websocket.net import tcp_stream, ws_frame
from websocket.utils import (
logger, exceptions
)
class BaseController(object, metaclass=abc.ABCMeta):
def __init__(self, stream: tcp_stream.TCPStream, ... | 38.571429 | 80 | 0.621569 |
34e0abd43e40f35af538f5889c988d107d4449b9 | 10,137 | py | Python | sdk/luminesce/models/lusid_problem_details.py | finbourne/luminesce-sdk-python-preview | 7af198cfa9c0fbd619272fb90601162fb7db0a67 | [
"MIT"
] | null | null | null | sdk/luminesce/models/lusid_problem_details.py | finbourne/luminesce-sdk-python-preview | 7af198cfa9c0fbd619272fb90601162fb7db0a67 | [
"MIT"
] | null | null | null | sdk/luminesce/models/lusid_problem_details.py | finbourne/luminesce-sdk-python-preview | 7af198cfa9c0fbd619272fb90601162fb7db0a67 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
FINBOURNE Honeycomb Web API
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 1.9.129
Contact: info@finbourne.com
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfullargspec
except ImportError:
from inspect import ge... | 27.32345 | 191 | 0.57808 |
4086c4f3f6fa8f726d213fb7896fdd118e13557e | 1,072 | py | Python | fitclip/accounts/migrations/0001_initial.py | zezaeoh/fitclib | 101b6d692fbf13cf05e0b65706da01143f7c278a | [
"MIT"
] | null | null | null | fitclip/accounts/migrations/0001_initial.py | zezaeoh/fitclib | 101b6d692fbf13cf05e0b65706da01143f7c278a | [
"MIT"
] | 9 | 2020-03-15T08:26:20.000Z | 2022-03-12T00:13:43.000Z | fitclip/accounts/migrations/0001_initial.py | zezaeoh/fitclip | 101b6d692fbf13cf05e0b65706da01143f7c278a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.1 on 2020-01-11 15:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 35.733333 | 145 | 0.636194 |
fbf7fac3f7c59d4d93e2ca33008609e73e34c137 | 1,032 | py | Python | panel/pane/__init__.py | Jacob-Barhak/panel | 04cad38ea703e4e69fb76f063a27f4ffe40688e8 | [
"BSD-3-Clause"
] | 1 | 2021-07-06T21:07:45.000Z | 2021-07-06T21:07:45.000Z | panel/pane/__init__.py | Jacob-Barhak/panel | 04cad38ea703e4e69fb76f063a27f4ffe40688e8 | [
"BSD-3-Clause"
] | 2 | 2022-01-13T03:54:51.000Z | 2022-03-12T01:01:00.000Z | panel/pane/__init__.py | Jacob-Barhak/panel | 04cad38ea703e4e69fb76f063a27f4ffe40688e8 | [
"BSD-3-Clause"
] | null | null | null | """
The pane module contains PaneBase objects which may render any type of
object as a bokeh model so it can be embedded in a panel. The pane
objects are one of three main components in panel the other two being
layouts and widgets. Panes may render anything including plots, text,
images, equations etc.
"""
from .ace i... | 39.692308 | 70 | 0.766473 |
0a70cee0a0557c3caad5f55c378550af25be82fc | 15,688 | py | Python | habitat/sims/habitat_simulator.py | eric-xw/habitat-api | cb3ac6c0c8c51b48a4c79f58b6a80000476cb258 | [
"MIT"
] | null | null | null | habitat/sims/habitat_simulator.py | eric-xw/habitat-api | cb3ac6c0c8c51b48a4c79f58b6a80000476cb258 | [
"MIT"
] | null | null | null | habitat/sims/habitat_simulator.py | eric-xw/habitat-api | cb3ac6c0c8c51b48a4c79f58b6a80000476cb258 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import List, Any, Optional
from enum import Enum
import habitat
import habitat_sim
import numpy as np
from ... | 35.413093 | 94 | 0.641382 |
79bef2e075970f5a21dd700766b46c9595bf6172 | 1,498 | py | Python | dockci/server.py | RickyCook/paas-in-a-day-dockci | 0320b4df5a697d94d19d5b4293c1d4d07c383f75 | [
"0BSD"
] | 1 | 2017-04-28T22:10:35.000Z | 2017-04-28T22:10:35.000Z | dockci/server.py | RickyCook/paas-in-a-day-dockci | 0320b4df5a697d94d19d5b4293c1d4d07c383f75 | [
"0BSD"
] | null | null | null | dockci/server.py | RickyCook/paas-in-a-day-dockci | 0320b4df5a697d94d19d5b4293c1d4d07c383f75 | [
"0BSD"
] | null | null | null | """
Functions for setting up and starting the DockCI application server
"""
import logging
import mimetypes
from flask import Flask
from flask_mail import Mail
from dockci.models.config import Config
from dockci.util import setup_templates
APP = Flask(__name__)
MAIL = Mail()
CONFIG = Config()
APP.config.model = C... | 21.098592 | 73 | 0.682911 |
7fbc42cb9850d9914223c80745be6ae7a6c8bde6 | 7,596 | py | Python | service/api/db/__init__.py | alanquillin/rpi-light-controller | a22d1bbe661e9842ac61aea38164b9faf6fa1cc8 | [
"MIT"
] | null | null | null | service/api/db/__init__.py | alanquillin/rpi-light-controller | a22d1bbe661e9842ac61aea38164b9faf6fa1cc8 | [
"MIT"
] | null | null | null | service/api/db/__init__.py | alanquillin/rpi-light-controller | a22d1bbe661e9842ac61aea38164b9faf6fa1cc8 | [
"MIT"
] | null | null | null | import re
from contextlib import contextmanager
from functools import wraps
from urllib.parse import quote
from psycopg2.errors import ( # pylint: disable=no-name-in-module
InvalidTextRepresentation,
NotNullViolation,
UniqueViolation,
)
from sqlalchemy import create_engine, func, text
from sqlalchemy.exc ... | 29.215385 | 116 | 0.59189 |
5e6a60a2fc85d3548f62246069fd8864e35a3b23 | 12,153 | py | Python | markdown/extensions/toc.py | hatzel/markdown-spoilers | 1964f298f0e8b99f1202d36ccc7d8cf7d613ad26 | [
"BSD-3-Clause"
] | 2 | 2020-06-21T12:02:58.000Z | 2020-09-02T15:21:19.000Z | markdown/extensions/toc.py | hatzel/markdown-spoilers | 1964f298f0e8b99f1202d36ccc7d8cf7d613ad26 | [
"BSD-3-Clause"
] | null | null | null | markdown/extensions/toc.py | hatzel/markdown-spoilers | 1964f298f0e8b99f1202d36ccc7d8cf7d613ad26 | [
"BSD-3-Clause"
] | null | null | null | """
Table of Contents Extension for Python-Markdown
===============================================
See <https://Python-Markdown.github.io/extensions/toc>
for documentation.
Oringinal code Copyright 2008 [Jack Miller](https://codezen.org/)
All changes Copyright 2008-2014 The Python Markdown Project
License: [BSD](h... | 36.605422 | 92 | 0.536987 |
b0d7f52bb5cf83e5e479b9efdda0844533bd6b57 | 4,266 | py | Python | setup.py | quecloud/rpxdock | 41f7f98f5dacf24fc95897910263a0bec2209e59 | [
"Apache-2.0"
] | null | null | null | setup.py | quecloud/rpxdock | 41f7f98f5dacf24fc95897910263a0bec2209e59 | [
"Apache-2.0"
] | null | null | null | setup.py | quecloud/rpxdock | 41f7f98f5dacf24fc95897910263a0bec2209e59 | [
"Apache-2.0"
] | 1 | 2020-04-13T20:07:52.000Z | 2020-04-13T20:07:52.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: To use the 'upload' functionality of this file, you must:
# $ pipenv install twine --dev
import io
import os
import sys
from shutil import rmtree
from setuptools import find_packages, setup, Command
# Package meta-data.
NAME = 'rpxdock'
DESCRIPTION = 'Protein ... | 27.171975 | 84 | 0.647211 |
4589fe6c9c8a9ed9b92f0407d07fe68984a2c7ec | 3,258 | py | Python | matter/settings.py | krishnatahr/matter | 26cff865298ab10d0a9a9ac7a9d821099c314969 | [
"Apache-2.0"
] | null | null | null | matter/settings.py | krishnatahr/matter | 26cff865298ab10d0a9a9ac7a9d821099c314969 | [
"Apache-2.0"
] | null | null | null | matter/settings.py | krishnatahr/matter | 26cff865298ab10d0a9a9ac7a9d821099c314969 | [
"Apache-2.0"
] | null | null | null | """
Django settings for matter project.
Generated by 'django-admin startproject' using Django 1.9.2.
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/
"""
import os
# ... | 25.653543 | 91 | 0.68938 |
1c1d45b6715982b34a08cb5a4d252b6b356100d3 | 42,305 | py | Python | sdk/python/pulumi_akamai/properties/property.py | pulumi/pulumi-akamai | 85f933ccf2f61738b3074a13fa718132280f8364 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2021-01-21T15:22:12.000Z | 2021-08-25T14:15:29.000Z | sdk/python/pulumi_akamai/properties/property.py | pulumi/pulumi-akamai | 85f933ccf2f61738b3074a13fa718132280f8364 | [
"ECL-2.0",
"Apache-2.0"
] | 59 | 2020-08-13T14:39:36.000Z | 2022-03-31T15:19:48.000Z | sdk/python/pulumi_akamai/properties/property.py | pulumi/pulumi-akamai | 85f933ccf2f61738b3074a13fa718132280f8364 | [
"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 warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 44.909766 | 142 | 0.638412 |
65533cc1fb2793a15015e807e0136e6700c51977 | 13,765 | py | Python | auto_editor/formats/premiere.py | jjandnn/auto-editor | 15359899eb5d7eff3a18ff82a545964e16ab5473 | [
"Unlicense"
] | null | null | null | auto_editor/formats/premiere.py | jjandnn/auto-editor | 15359899eb5d7eff3a18ff82a545964e16ab5473 | [
"Unlicense"
] | null | null | null | auto_editor/formats/premiere.py | jjandnn/auto-editor | 15359899eb5d7eff3a18ff82a545964e16ab5473 | [
"Unlicense"
] | null | null | null | import os.path
from os.path import abspath
from platform import system
from shutil import move
from urllib.parse import quote
from auto_editor.timeline import Timeline
from .utils import indent, safe_mkdir
"""
Premiere Pro uses the Final Cut Pro 7 XML Interchange Format
See docs here:
https://developer.apple.com/li... | 36.034031 | 124 | 0.427388 |
8f222c6572a78b6e4841c768d209136f6f2087fe | 10,832 | py | Python | tests/test_postgres_storage.py | kapilratnani/pgfire | 8f225f55d8e28f4b12cef33d05534b28f68a9081 | [
"MIT"
] | 2 | 2020-06-14T06:19:57.000Z | 2020-08-17T12:46:21.000Z | tests/test_postgres_storage.py | kapilratnani/pgfire | 8f225f55d8e28f4b12cef33d05534b28f68a9081 | [
"MIT"
] | null | null | null | tests/test_postgres_storage.py | kapilratnani/pgfire | 8f225f55d8e28f4b12cef33d05534b28f68a9081 | [
"MIT"
] | null | null | null | import threading
from contextlib import contextmanager
import sqlalchemy as sa
from sqlalchemy import exc
from pgfire.engine.storage.postgres import PostgresJsonStorage, BaseJsonDb
TEST_DB_NAME = 'test_pgfire'
def get_test_db_settings():
return {
"db": TEST_DB_NAME,
"username": "postgres",
... | 31.858824 | 114 | 0.598781 |
8947f9e8c246b5985568ed8f4354acf950e79161 | 12,577 | py | Python | qiskit/aqua/components/oracles/truth_table_oracle.py | Sahar2/qiskit-aqua | a228fbe6b9613cff43e47796a7e4843deba2b051 | [
"Apache-2.0"
] | null | null | null | qiskit/aqua/components/oracles/truth_table_oracle.py | Sahar2/qiskit-aqua | a228fbe6b9613cff43e47796a7e4843deba2b051 | [
"Apache-2.0"
] | null | null | null | qiskit/aqua/components/oracles/truth_table_oracle.py | Sahar2/qiskit-aqua | a228fbe6b9613cff43e47796a7e4843deba2b051 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any... | 37.88253 | 115 | 0.534309 |
4c47e64506489f95cae8002e9bddc3b1a09d1ba6 | 676 | py | Python | test-examples/add_surface.py | tlambert03/image-demos | a2974bcc7f040fd4d14e659c4cbfeabcf726c707 | [
"BSD-3-Clause"
] | null | null | null | test-examples/add_surface.py | tlambert03/image-demos | a2974bcc7f040fd4d14e659c4cbfeabcf726c707 | [
"BSD-3-Clause"
] | null | null | null | test-examples/add_surface.py | tlambert03/image-demos | a2974bcc7f040fd4d14e659c4cbfeabcf726c707 | [
"BSD-3-Clause"
] | null | null | null | """Test converting an image to a multiscale.
"""
import numpy as np
import napari
with napari.gui_qt():
#viewer = napari.Viewer()
np.random.seed(0)
# vertices = np.random.random((10, 3))
# faces = np.random.randint(10, size=(6, 3))
# values = np.random.random(10)
vertices = np.random.random((... | 27.04 | 63 | 0.597633 |
835da965a11111e45d2248a5d82f93d91a8d7828 | 4,331 | py | Python | setup.py | rmill040/mlsopt | 5cd729bf92354c35e0e425f350e7a93f4d2d965a | [
"MIT"
] | null | null | null | setup.py | rmill040/mlsopt | 5cd729bf92354c35e0e425f350e7a93f4d2d965a | [
"MIT"
] | null | null | null | setup.py | rmill040/mlsopt | 5cd729bf92354c35e0e425f350e7a93f4d2d965a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os.path import dirname, join
from setuptools import Extension, find_packages, setup
from setuptools.command.build_ext import build_ext
import versioneer
def list_reqs(fname="requirements.txt"):
"""Gather requirements from the requirements.txt file.
"""
re... | 37.017094 | 85 | 0.553452 |
e5c48c60e077f86a55a73f2efdd1a43ffbc7cf66 | 6,021 | py | Python | api/migrations/0088_auto_20201119_0809.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 11 | 2018-06-11T06:05:12.000Z | 2022-03-25T09:31:44.000Z | api/migrations/0088_auto_20201119_0809.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 498 | 2017-11-07T21:20:13.000Z | 2022-03-31T14:37:18.000Z | api/migrations/0088_auto_20201119_0809.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 6 | 2018-04-11T13:29:50.000Z | 2020-07-16T16:52:11.000Z | # Generated by Django 2.2.13 on 2020-11-19 08:09
import api.models
from django.db import migrations, models
import django.db.models.deletion
import enumfields.fields
import tinymce.models
class Migration(migrations.Migration):
dependencies = [
('api', '0087_auto_20200918_0922'),
]
operations = ... | 58.456311 | 169 | 0.621325 |
87436243c7900b91dc76f11e3517d532e66f0fc0 | 2,885 | py | Python | reframe/core/launchers/mpi.py | smoors/reframe | 5163a4a77c8b440b725e18ffbf19f19445d01f9e | [
"BSD-3-Clause"
] | 1 | 2018-08-02T07:34:10.000Z | 2018-08-02T07:34:10.000Z | reframe/core/launchers/mpi.py | smoors/reframe | 5163a4a77c8b440b725e18ffbf19f19445d01f9e | [
"BSD-3-Clause"
] | null | null | null | reframe/core/launchers/mpi.py | smoors/reframe | 5163a4a77c8b440b725e18ffbf19f19445d01f9e | [
"BSD-3-Clause"
] | null | null | null | from reframe.core.launchers import JobLauncher
from reframe.core.launchers.registry import register_launcher
@register_launcher('srun')
class SrunLauncher(JobLauncher):
def command(self, job):
return ['srun']
@register_launcher('ibrun')
class IbrunLauncher(JobLauncher):
'''TACC's custom parallel job... | 26.962617 | 77 | 0.57435 |
7ac93ce4c356912e853016664be53b1a699f721a | 296 | py | Python | samples/retrieve_transactions.py | shadinaif/iyzipay-python | a150418dba6d0170ff7ae3772d16ac83654cb6a9 | [
"MIT"
] | 66 | 2016-03-24T14:27:41.000Z | 2022-01-18T22:14:20.000Z | samples/retrieve_transactions.py | shadinaif/iyzipay-python | a150418dba6d0170ff7ae3772d16ac83654cb6a9 | [
"MIT"
] | 41 | 2016-03-25T16:12:43.000Z | 2022-01-18T22:57:03.000Z | samples/retrieve_transactions.py | shadinaif/iyzipay-python | a150418dba6d0170ff7ae3772d16ac83654cb6a9 | [
"MIT"
] | 40 | 2016-04-27T18:26:47.000Z | 2021-12-12T11:59:40.000Z | import iyzipay
options = {
'api_key': iyzipay.api_key,
'secret_key': iyzipay.secret_key,
'base_url': iyzipay.base_url
}
request = {
'transactionDate': '2019-06-25',
'page': '1',
}
report = iyzipay.RetrieveTransactions().retrieve(request, options)
print(report.read().decode('utf-8'))
| 19.733333 | 66 | 0.695946 |
5da44e88b8e59c67e6a0c7c690305e7b9f3f603e | 1,176 | py | Python | src/structlog/_generic.py | carsonip/structlog | 0d20303e1b2ce8d801f2081c5dbb65ea7d26b830 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/structlog/_generic.py | carsonip/structlog | 0d20303e1b2ce8d801f2081c5dbb65ea7d26b830 | [
"Apache-2.0",
"MIT"
] | 1 | 2019-04-02T23:35:13.000Z | 2019-04-02T23:35:13.000Z | src/structlog/_generic.py | carsonip/structlog | 0d20303e1b2ce8d801f2081c5dbb65ea7d26b830 | [
"Apache-2.0",
"MIT"
] | null | null | null | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the MIT License. See the LICENSE file in the root of this
# repository for complete details.
"""
Generic bound logger that can wrap anything.
"""
from __future__ import absolute_import, division, print_function
from functools imp... | 32.666667 | 78 | 0.72534 |
379441666ee3f6b45437ea966953589e6f032522 | 174 | py | Python | cursodepython/ex006.py | yagowill/python | 06f39d6c05bd1cdd2ebdb853cc5ce534f8406e57 | [
"MIT"
] | null | null | null | cursodepython/ex006.py | yagowill/python | 06f39d6c05bd1cdd2ebdb853cc5ce534f8406e57 | [
"MIT"
] | null | null | null | cursodepython/ex006.py | yagowill/python | 06f39d6c05bd1cdd2ebdb853cc5ce534f8406e57 | [
"MIT"
] | null | null | null | n = int(input('Digite um número: '))
n2 = n * 2
n3 = n * 3
nr = n ** 1/2
print('Você digitou {}, o dobro de é {}, o triplo é {} e a raiz quadrada é {}'.format(n, n2, n3, nr)) | 34.8 | 101 | 0.557471 |
cf9bf4d0f397fa23e70a5ba16e51f4f273efe6e8 | 1,836 | py | Python | tests/data/hrrr/test_file_handler.py | USDA-ARS-NWRC/weather_forecast_retrieval | d1df41a0b06b6484b4a74e7fd0a364505bc1cfc1 | [
"CC0-1.0"
] | 6 | 2017-12-20T22:42:24.000Z | 2021-08-07T03:32:27.000Z | tests/data/hrrr/test_file_handler.py | USDA-ARS-NWRC/weather_forecast_retrieval | d1df41a0b06b6484b4a74e7fd0a364505bc1cfc1 | [
"CC0-1.0"
] | 26 | 2019-03-07T17:47:13.000Z | 2021-06-25T15:43:27.000Z | tests/data/hrrr/test_file_handler.py | USDA-ARS-NWRC/weather_forecast_retrieval | d1df41a0b06b6484b4a74e7fd0a364505bc1cfc1 | [
"CC0-1.0"
] | 3 | 2019-03-08T07:28:59.000Z | 2021-02-12T21:59:12.000Z | import unittest
import pandas as pd
from weather_forecast_retrieval.data.hrrr import FileHandler
class TestHRRRFileHandler(unittest.TestCase):
def test_file_date(self):
file_time = pd.to_datetime('2018-02-08 05:00')
forecast_hour = 1
day, file_hour = FileHandler.file_date(
f... | 29.142857 | 93 | 0.6122 |
0a7881308bd048754dce09ee574a8ac475444809 | 2,446 | py | Python | test/ut/retiarii/test_engine.py | stjordanis/nni | 30361a2e87ca37f397c0f0ebd6779b6600c001f9 | [
"MIT"
] | 2 | 2020-10-27T06:53:53.000Z | 2021-02-22T22:11:15.000Z | test/ut/retiarii/test_engine.py | stjordanis/nni | 30361a2e87ca37f397c0f0ebd6779b6600c001f9 | [
"MIT"
] | null | null | null | test/ut/retiarii/test_engine.py | stjordanis/nni | 30361a2e87ca37f397c0f0ebd6779b6600c001f9 | [
"MIT"
] | null | null | null | import json
import os
import unittest
from pathlib import Path
import nni.retiarii
from nni.retiarii import Model, submit_models
from nni.retiarii.codegen import model_to_pytorch_script
from nni.retiarii.execution import set_execution_engine
from nni.retiarii.execution.base import BaseExecutionEngine
from nni.retiarii... | 35.449275 | 102 | 0.6435 |
4fdd1e5fd1421c074243b716dbb31d6a1ebb4b2d | 31,884 | py | Python | tools/tensorflow_docs/api_generator/generate_lib.py | armando-fandango/tensorflow-docs | 5c4bd64cc6466af361dfd1f7e19625e7de52fc37 | [
"Apache-2.0"
] | null | null | null | tools/tensorflow_docs/api_generator/generate_lib.py | armando-fandango/tensorflow-docs | 5c4bd64cc6466af361dfd1f7e19625e7de52fc37 | [
"Apache-2.0"
] | null | null | null | tools/tensorflow_docs/api_generator/generate_lib.py | armando-fandango/tensorflow-docs | 5c4bd64cc6466af361dfd1f7e19625e7de52fc37 | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | 34.884026 | 80 | 0.685767 |
75af222d646a2075e37bf272d3392dd649936dca | 1,371 | py | Python | pages/migrations/0001_initial.py | cagataysarioglu/TanTradeWebsite | 8a095f0a1958a3314544f2cff1b203818f071d05 | [
"MIT"
] | 2 | 2021-01-24T12:41:05.000Z | 2021-01-24T14:06:29.000Z | pages/migrations/0001_initial.py | cagataysarioglu/djangoTanTrade | 8a095f0a1958a3314544f2cff1b203818f071d05 | [
"MIT"
] | null | null | null | pages/migrations/0001_initial.py | cagataysarioglu/djangoTanTrade | 8a095f0a1958a3314544f2cff1b203818f071d05 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-27 13:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Carousel',
fields=[
('id', models.AutoField... | 39.171429 | 117 | 0.587163 |
f3dc0768fd19cd37860f56270577def6a83e983a | 7,533 | py | Python | sdk/python/pulumi_azure_native/healthcareapis/v20210111/private_endpoint_connection.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/healthcareapis/v20210111/private_endpoint_connection.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/healthcareapis/v20210111/private_endpoint_connection.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | 48.288462 | 640 | 0.687774 |
82dce90e5ed639dbdbe5a1f16648622ea90bc71c | 1,555 | py | Python | sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/__init__.py | kazrael2119/azure-sdk-for-python | 485dd7b1b5ac41c1a5b9991e402b4035b55f437a | [
"MIT"
] | 1 | 2022-02-18T01:17:27.000Z | 2022-02-18T01:17:27.000Z | sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/__init__.py | kazrael2119/azure-sdk-for-python | 485dd7b1b5ac41c1a5b9991e402b4035b55f437a | [
"MIT"
] | null | null | null | sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/__init__.py | kazrael2119/azure-sdk-for-python | 485dd7b1b5ac41c1a5b9991e402b4035b55f437a | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""), ... | 40.921053 | 78 | 0.699035 |
5672cf5cf7451baa9b9c1b258094a4df538b94a8 | 6,878 | py | Python | uncertainty_baselines/models/wide_resnet_dropout.py | dvdzhang/uncertainty-baselines | 8ce0d7494e5cae0719c1b750da4b61564e536636 | [
"Apache-2.0"
] | null | null | null | uncertainty_baselines/models/wide_resnet_dropout.py | dvdzhang/uncertainty-baselines | 8ce0d7494e5cae0719c1b750da4b61564e536636 | [
"Apache-2.0"
] | null | null | null | uncertainty_baselines/models/wide_resnet_dropout.py | dvdzhang/uncertainty-baselines | 8ce0d7494e5cae0719c1b750da4b61564e536636 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2022 The Uncertainty Baselines 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 ap... | 36.391534 | 80 | 0.667345 |
3a45826a34c63a24eb03ff0a9a63d2d948548ea8 | 8,734 | py | Python | lib/behavior_model.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 3 | 2021-04-28T07:19:39.000Z | 2022-03-07T09:34:19.000Z | lib/behavior_model.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 18 | 2020-08-24T12:40:38.000Z | 2022-03-12T00:47:14.000Z | lib/behavior_model.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 1 | 2020-10-15T10:09:20.000Z | 2020-10-15T10:09:20.000Z | """
@author: Haeyong Kang
"""
import torch.nn as nn
import torch
import torch.nn.parallel
from torch.autograd import Variable
from torch.nn import functional as F
from torchvision.ops import roi_align
from Yolo_v2_pytorch.src.utils import *
from Yolo_v2_pytorch.src.yolo_net import Yolo
from Yolo_v2_pytor... | 37.809524 | 87 | 0.490039 |
5e2b79134b4eff3c448b67911c205497115eceec | 624 | py | Python | configs/bc/mani_skill_point_cloud_transformer11.py | Zed-Wu/ManiSkill-Learn | 8056fe327752cd0863f8730672fe62bd85a0ec12 | [
"Apache-2.0"
] | null | null | null | configs/bc/mani_skill_point_cloud_transformer11.py | Zed-Wu/ManiSkill-Learn | 8056fe327752cd0863f8730672fe62bd85a0ec12 | [
"Apache-2.0"
] | null | null | null | configs/bc/mani_skill_point_cloud_transformer11.py | Zed-Wu/ManiSkill-Learn | 8056fe327752cd0863f8730672fe62bd85a0ec12 | [
"Apache-2.0"
] | null | null | null | _base_ = ['../_base_/bc/bc_mani_skill_pointnet_transformer11.py']
env_cfg = dict(
type='gym',
env_name='OpenCabinetDrawer_1045_link_0-v0',
)
replay_cfg = dict(
type='ReplayMemory',
capacity=1000000,
)
train_mfrl_cfg = dict(
total_steps=50000,
warm_steps=0,
n_steps=0,
n_updates=500,
... | 18.352941 | 92 | 0.69391 |
02061ffbe4d527235136d4357c1b5ac5b441348f | 768 | py | Python | bureau/personnel/migrations/0011_auto_20190120_0308.py | clairempr/bureau | c9fd114e637829b4e9ff643459d15602cc2efc2f | [
"Apache-2.0"
] | 1 | 2019-02-15T09:05:35.000Z | 2019-02-15T09:05:35.000Z | bureau/personnel/migrations/0011_auto_20190120_0308.py | clairempr/bureau | c9fd114e637829b4e9ff643459d15602cc2efc2f | [
"Apache-2.0"
] | null | null | null | bureau/personnel/migrations/0011_auto_20190120_0308.py | clairempr/bureau | c9fd114e637829b4e9ff643459d15602cc2efc2f | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.9 on 2019-01-20 03:08
from django.db import migrations, models
import partial_date.fields
class Migration(migrations.Migration):
dependencies = [
('personnel', '0010_auto_20190112_1825'),
]
operations = [
migrations.AddField(
model_name='employee',
... | 25.6 | 78 | 0.59375 |
6c8f7fe9c26d8e676549c02ce99a0e1529ae259e | 119 | py | Python | exercises/is_leap.py | spyingcyclops/excercism | ebc75561e8dc2cc510faf21fd823460db5604067 | [
"Apache-2.0"
] | null | null | null | exercises/is_leap.py | spyingcyclops/excercism | ebc75561e8dc2cc510faf21fd823460db5604067 | [
"Apache-2.0"
] | null | null | null | exercises/is_leap.py | spyingcyclops/excercism | ebc75561e8dc2cc510faf21fd823460db5604067 | [
"Apache-2.0"
] | null | null | null | def leap_year(year):
return (year % 4 == 0) and not (year % 100 == 0) and (year % 4 == 0)
print(leap_year(2000))
| 19.833333 | 72 | 0.579832 |
d2babb8c011dfc59f70a10c488a780c5d138a7ef | 3,886 | py | Python | docs/source/conf.py | aaronspring/xskillscore | a3fe8230ecaf83e2a8c7fa3cf2c2b448600d5331 | [
"Apache-2.0"
] | 81 | 2018-07-03T06:58:28.000Z | 2021-12-15T17:24:45.000Z | docs/source/conf.py | aaronspring/xskillscore | a3fe8230ecaf83e2a8c7fa3cf2c2b448600d5331 | [
"Apache-2.0"
] | 200 | 2020-09-28T16:00:43.000Z | 2022-03-28T18:41:01.000Z | docs/source/conf.py | aaronspring/xskillscore | a3fe8230ecaf83e2a8c7fa3cf2c2b448600d5331 | [
"Apache-2.0"
] | 36 | 2020-10-07T22:46:20.000Z | 2021-11-25T11:34:56.000Z | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
import datetime
import subprocess
import sys
import sphinx_autosummary_accessors
impo... | 31.33871 | 84 | 0.707669 |
1c38df0326d8b746f40fd4e79b8d48711c60488c | 15,455 | py | Python | oscar/lib/python2.7/site-packages/dns/rdata.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/dns/rdata.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/dns/rdata.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (C) 2001-2007, 2009-2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PRO... | 33.671024 | 79 | 0.604465 |
d492c55abb642be59b7e5be644311b901c89f3a6 | 554 | py | Python | recipes/migrations/0015_auto_20210325_1148.py | PavelYasukevich/foodgram-project | d03af25d8fd0cbf1eec03467a95620b89993c9fd | [
"MIT"
] | null | null | null | recipes/migrations/0015_auto_20210325_1148.py | PavelYasukevich/foodgram-project | d03af25d8fd0cbf1eec03467a95620b89993c9fd | [
"MIT"
] | null | null | null | recipes/migrations/0015_auto_20210325_1148.py | PavelYasukevich/foodgram-project | d03af25d8fd0cbf1eec03467a95620b89993c9fd | [
"MIT"
] | 1 | 2021-03-27T16:34:07.000Z | 2021-03-27T16:34:07.000Z | # Generated by Django 3.1.7 on 2021-03-25 11:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('recipes', '0014_auto_20210324_1332'),
]
operations = [
migrations.AlterField(
model_name='amoun... | 27.7 | 181 | 0.666065 |
7233eff429fd7a098a04439f7cd1f798d63155ce | 6,234 | py | Python | tech_project/lib/python2.7/site-packages/parler/tests/test_model_construction.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | null | null | null | tech_project/lib/python2.7/site-packages/parler/tests/test_model_construction.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | null | null | null | tech_project/lib/python2.7/site-packages/parler/tests/test_model_construction.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | null | null | null | from functools import wraps
import django
from django.db import models
from django.db.models import Manager
from django.utils import six
from parler.models import TranslatableModel
from parler.models import TranslatedFields
try:
from unittest import expectedFailure, skipIf
except ImportError:
# python<2.7
... | 39.455696 | 154 | 0.695059 |
c1be61c35eaadb72e6ba4c41a2563f964533a390 | 601 | py | Python | setup.py | bread22/GetSubtitles | d2e0895a0bd6956698fc4afa7f29e5ba285b2d3e | [
"MIT"
] | null | null | null | setup.py | bread22/GetSubtitles | d2e0895a0bd6956698fc4afa7f29e5ba285b2d3e | [
"MIT"
] | null | null | null | setup.py | bread22/GetSubtitles | d2e0895a0bd6956698fc4afa7f29e5ba285b2d3e | [
"MIT"
] | null | null | null | # coding: utf8
from setuptools import setup, find_packages
from getsub.__version__ import __version__
setup(
author="gyh1621",
author_email="guoyh01@gmail.com",
description="download subtitles easily",
license="MIT",
name="getsub",
version=__version__,
packages=find_packages(),
install_... | 25.041667 | 69 | 0.635607 |
5a5a78b9928f3e5d19c948db67c9b0302f24bb5e | 6,310 | py | Python | py/StlToGif.py | hannesknutsson/3D-STL-Boii | d379a21c1bf35fcb67a8474a320a0e00006d1435 | [
"MIT"
] | null | null | null | py/StlToGif.py | hannesknutsson/3D-STL-Boii | d379a21c1bf35fcb67a8474a320a0e00006d1435 | [
"MIT"
] | null | null | null | py/StlToGif.py | hannesknutsson/3D-STL-Boii | d379a21c1bf35fcb67a8474a320a0e00006d1435 | [
"MIT"
] | null | null | null | # -*- coding: cp1252 -*-
################################
# #
# Created by: Daniel Aguirre #
# Date: 2019/05/13 #
# #
# Modified by: Hannes Knutsson #
# Date: 2020/05/09 #
# #
################################
# Imports
import... | 26.182573 | 187 | 0.647385 |
cfbae3c8fe2b21eadeb2b67a08b54c441d45ddd0 | 9,419 | py | Python | rfsoc_qpsk/qpsk_overlay.py | baileyji/rfsoc_qpsk | ecca0b3bd1f17c45cc21b0df50b04a70e00c8ee5 | [
"BSD-3-Clause"
] | null | null | null | rfsoc_qpsk/qpsk_overlay.py | baileyji/rfsoc_qpsk | ecca0b3bd1f17c45cc21b0df50b04a70e00c8ee5 | [
"BSD-3-Clause"
] | null | null | null | rfsoc_qpsk/qpsk_overlay.py | baileyji/rfsoc_qpsk | ecca0b3bd1f17c45cc21b0df50b04a70e00c8ee5 | [
"BSD-3-Clause"
] | null | null | null | from pynq import Overlay
from pynq import Xlnk
import xrfclk
import xrfdc
import os
import numpy as np
import ipywidgets as ipw
from rfsoc_qpsk import dma_timer, sdr_plots, qpsk_rx, qpsk_tx
class TimerRegistry():
"""Helper class to track active timer threads.
This can be used to help safely stop any orphane... | 38.288618 | 117 | 0.591039 |
e3c863b296bde7d5a334a6e6c09ebd36551abeaf | 1,425 | py | Python | alipay/aop/api/domain/AlipayOpenServicemarketCommodityQueryModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/AlipayOpenServicemarketCommodityQueryModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/AlipayOpenServicemarketCommodityQueryModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenServicemarketCommodityQueryModel(object):
def __init__(self):
self._commodity_id = None
self._user_id = None
@property
def commodity_id(self):
return se... | 25.446429 | 75 | 0.6 |
db63dc1d50d1f099940eb8b5fe141bef576cf8ba | 10,332 | py | Python | h2o-py/h2o/estimators/kmeans.py | Judahh/h2o-3 | e3d1770b2c9b7a66af6fe1eee0c472879771a9a9 | [
"Apache-2.0"
] | 1 | 2017-03-28T09:10:12.000Z | 2017-03-28T09:10:12.000Z | h2o-py/h2o/estimators/kmeans.py | Judahh/h2o-3 | e3d1770b2c9b7a66af6fe1eee0c472879771a9a9 | [
"Apache-2.0"
] | null | null | null | h2o-py/h2o/estimators/kmeans.py | Judahh/h2o-3 | e3d1770b2c9b7a66af6fe1eee0c472879771a9a9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# This file is auto-generated by h2o-3/h2o-bindings/bin/gen_python.py
# Copyright 2016 H2O.ai; Apache License Version 2.0 (see LICENSE for details)
#
from __future__ import absolute_import, division, print_function, unicode_literals
from h2o.estimators.estimator_base ... | 31.120482 | 184 | 0.636179 |
dedac9c0b93f92b251a2c0ad2e57ce227b45bbe4 | 7,991 | py | Python | depletion_scheme.py | rabieomar92/pynuctran | 6a86c578992ee3f1d6079cbbefaa7bcdc14646e8 | [
"MIT"
] | null | null | null | depletion_scheme.py | rabieomar92/pynuctran | 6a86c578992ee3f1d6079cbbefaa7bcdc14646e8 | [
"MIT"
] | null | null | null | depletion_scheme.py | rabieomar92/pynuctran | 6a86c578992ee3f1d6079cbbefaa7bcdc14646e8 | [
"MIT"
] | 1 | 2022-01-21T07:35:38.000Z | 2022-01-21T07:35:38.000Z | import numpy as np
import decimal as dc
import xml.etree.ElementTree as ET
import time as tm
from pynuctran.solver import *
'''
SECTION III: DEPLETION DATA PRE-PROCESSING ................................................ SEC. III
**********************************************************... | 48.138554 | 118 | 0.463772 |
096a7eb2c94be9b7e70256c20f0dffd314efd3d2 | 3,864 | py | Python | scripts/Python/PreprocessPDBs.py | joy13975/elfin-old | e1a727c084f616815b3d746bf7edd250997fa820 | [
"MIT"
] | null | null | null | scripts/Python/PreprocessPDBs.py | joy13975/elfin-old | e1a727c084f616815b3d746bf7edd250997fa820 | [
"MIT"
] | null | null | null | scripts/Python/PreprocessPDBs.py | joy13975/elfin-old | e1a727c084f616815b3d746bf7edd250997fa820 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse, sys
from utils import *
def mergeChainsAndCleanse(pdb):
for model in pdb:
newChain = Bio.PDB.Chain.Chain('A')
rid = 1
for chain in model:
for r in chain:
badAtoms = []
for a in r:
if a.name == '1H' or a.name == '2H' or a.name == '3H' or a.name == 'OXT':
... | 31.16129 | 89 | 0.704451 |
4b2fcc765e8284b75df6d1fdbfd71428021e0cd4 | 2,882 | py | Python | anpr_webapp.py | shiv2110/ANPR_Stage-1 | 6da0898383efdf17e8efa74e431db54fd2f29b37 | [
"Net-SNMP",
"Xnet"
] | 1 | 2021-08-02T10:25:37.000Z | 2021-08-02T10:25:37.000Z | anpr_webapp.py | shiv2110/ANPR_Stage-1 | 6da0898383efdf17e8efa74e431db54fd2f29b37 | [
"Net-SNMP",
"Xnet"
] | null | null | null | anpr_webapp.py | shiv2110/ANPR_Stage-1 | 6da0898383efdf17e8efa74e431db54fd2f29b37 | [
"Net-SNMP",
"Xnet"
] | null | null | null | import streamlit as st
import numpy as np
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.pyplot as plt
import lp_detection
import lp_char_seg
import lp_char_recog
import lp_tesseract
from PIL import Image
st.set_page_config(page_title='License Plate Recognition', page_icon='🚗')
st.markdown("... | 29.408163 | 121 | 0.659264 |
75f3492348a6077e7d71394b19268a7584700c44 | 875 | py | Python | tests/test_service.py | bclau/ceilometer | 90ad86c08494596dfa03c8cbfcea2c2be58fc8dc | [
"Apache-2.0"
] | null | null | null | tests/test_service.py | bclau/ceilometer | 90ad86c08494596dfa03c8cbfcea2c2be58fc8dc | [
"Apache-2.0"
] | null | null | null | tests/test_service.py | bclau/ceilometer | 90ad86c08494596dfa03c8cbfcea2c2be58fc8dc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright © 2012 eNovance <licensing@enovance.com>
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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 Lice... | 32.407407 | 75 | 0.748571 |
d34a8cb50afcbd434c7dc5c888881118a2522cbc | 5,653 | py | Python | sdk/python/pulumi_azure_native/network/v20171101/get_application_security_group.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/network/v20171101/get_application_security_group.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/network/v20171101/get_application_security_group.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | 36.006369 | 212 | 0.650097 |
a5d36d23da5512a1d512b0f6c1e939709cafa86b | 784 | py | Python | molecule/default/tests/test_role.py | istvano/ansible_role_kubectx | 1f452d73feb2da09300084aeb81af3cc849fb2bf | [
"MIT"
] | null | null | null | molecule/default/tests/test_role.py | istvano/ansible_role_kubectx | 1f452d73feb2da09300084aeb81af3cc849fb2bf | [
"MIT"
] | null | null | null | molecule/default/tests/test_role.py | istvano/ansible_role_kubectx | 1f452d73feb2da09300084aeb81af3cc849fb2bf | [
"MIT"
] | null | null | null | import os
import testinfra.utils.ansible_runner
import re
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_dir(host):
dir = host.file('/usr/local/bin')
assert dir.exists
assert dir.is_directory
assert dir.user == 'r... | 25.290323 | 63 | 0.729592 |
19b1841c6d2fd53b962370fa481a1fa83d74bbfe | 2,761 | py | Python | tests/test_rand_spatial_crop.py | dylanbuchi/MONAI | 1651f1b003b0ffae8b615d191952ad65ad091277 | [
"Apache-2.0"
] | 2,971 | 2019-10-16T23:53:16.000Z | 2022-03-31T20:58:24.000Z | tests/test_rand_spatial_crop.py | dylanbuchi/MONAI | 1651f1b003b0ffae8b615d191952ad65ad091277 | [
"Apache-2.0"
] | 2,851 | 2020-01-10T16:23:44.000Z | 2022-03-31T22:14:53.000Z | tests/test_rand_spatial_crop.py | dylanbuchi/MONAI | 1651f1b003b0ffae8b615d191952ad65ad091277 | [
"Apache-2.0"
] | 614 | 2020-01-14T19:18:01.000Z | 2022-03-31T14:06:14.000Z | # Copyright 2020 - 2021 MONAI Consortium
# 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 wri... | 36.328947 | 120 | 0.651213 |
f63cc23c5291046114edef840d88f03959eb2145 | 766 | py | Python | setup.py | yanndegat/ironic | 8857ec76443dea7778bb9c0d66568304e52495e5 | [
"Apache-2.0"
] | 350 | 2015-01-02T09:35:49.000Z | 2022-03-28T09:25:59.000Z | setup.py | yanndegat/ironic | 8857ec76443dea7778bb9c0d66568304e52495e5 | [
"Apache-2.0"
] | 83 | 2021-03-24T08:31:24.000Z | 2022-03-31T12:04:52.000Z | setup.py | yanndegat/ironic | 8857ec76443dea7778bb9c0d66568304e52495e5 | [
"Apache-2.0"
] | 409 | 2015-01-01T11:28:26.000Z | 2022-03-29T14:56:41.000Z | # Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 34.818182 | 69 | 0.750653 |
3adaae241d9ce04e0cabe6eed39250135ea224f6 | 5,073 | py | Python | onnx/backend/test/case/node/slice.py | cnheider/onnx | 8e9c7d57f7c5aa6f6eb7ee7abb0ba2a243781933 | [
"MIT"
] | 137 | 2020-04-28T12:28:32.000Z | 2022-03-18T10:48:25.000Z | onnx/backend/test/case/node/slice.py | cnheider/onnx | 8e9c7d57f7c5aa6f6eb7ee7abb0ba2a243781933 | [
"MIT"
] | 24 | 2020-05-06T08:06:42.000Z | 2021-12-31T07:46:13.000Z | onnx/backend/test/case/node/slice.py | cnheider/onnx | 8e9c7d57f7c5aa6f6eb7ee7abb0ba2a243781933 | [
"MIT"
] | 24 | 2020-05-06T11:43:22.000Z | 2022-03-18T10:50:35.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np # type: ignore
import onnx
from ..base import Base
from . import expect
class Slice(Base):
@staticmethod
def export_slice(): # type: () -... | 32.941558 | 72 | 0.523556 |
3a0e2f89a954dc2a466f438a2eeb62b8ec583d3e | 10,313 | py | Python | src/sentry/integrations/vsts/client.py | fictional-tribble-2/getsentry--sentry | 4b0fa548a91b9119a309a53234c4542963714050 | [
"BSD-3-Clause"
] | 1 | 2019-05-28T06:18:03.000Z | 2019-05-28T06:18:03.000Z | src/sentry/integrations/vsts/client.py | fictional-tribble/getsentry--sentry | 4b0fa548a91b9119a309a53234c4542963714050 | [
"BSD-3-Clause"
] | 6 | 2018-10-19T10:04:23.000Z | 2019-12-09T20:29:12.000Z | src/sentry/integrations/vsts/client.py | fictional-tribble-2/getsentry--sentry | 4b0fa548a91b9119a309a53234c4542963714050 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from sentry.integrations.client import ApiClient, OAuth2RefreshMixin
from sentry.utils.http import absolute_uri
UNSET = object()
FIELD_MAP = {
'title': '/fields/System.Title',
'description': '/fields/System.Description',
'comment': '/fields/System.History',
'lin... | 35.685121 | 133 | 0.528071 |
9ec18f4c4724ebba1bbd55bd3891ab384c6824ca | 465 | py | Python | cicu/forms.py | V-Clean/vclean | 556a93299ff4b8a85fddc476fd8ffa9e3a2634ac | [
"BSD-3-Clause"
] | 21 | 2015-01-04T05:14:34.000Z | 2019-04-27T20:17:50.000Z | cicu/forms.py | V-Clean/vclean | 556a93299ff4b8a85fddc476fd8ffa9e3a2634ac | [
"BSD-3-Clause"
] | 5 | 2015-07-05T08:33:44.000Z | 2021-04-20T09:57:15.000Z | cicu/forms.py | V-Clean/vclean | 556a93299ff4b8a85fddc476fd8ffa9e3a2634ac | [
"BSD-3-Clause"
] | 20 | 2015-01-15T04:51:48.000Z | 2018-03-04T20:11:08.000Z | import uuid
from django import forms
from .models import UploadedFile
class UploadedFileForm(forms.ModelForm):
class Meta:
model = UploadedFile
fields = ('file',)
def clean_file(self):
data = self.cleaned_data['file']
# Change the name of the file to something unguessable
... | 24.473684 | 65 | 0.63871 |
664bac1da2a47035be97ecbf034d8494c3bac92e | 445 | py | Python | agileLibrary/agileLibrary/main/models/rooms.py | DimOps/library-app | ed5e832c877957548d19b2ce38fa3ab5058d6797 | [
"MIT"
] | null | null | null | agileLibrary/agileLibrary/main/models/rooms.py | DimOps/library-app | ed5e832c877957548d19b2ce38fa3ab5058d6797 | [
"MIT"
] | null | null | null | agileLibrary/agileLibrary/main/models/rooms.py | DimOps/library-app | ed5e832c877957548d19b2ce38fa3ab5058d6797 | [
"MIT"
] | null | null | null | from django.db import models
class StudySpace(models.Model):
room_number = models.CharField(
max_length=5,
)
sector = models.CharField(
max_length=10,
)
level = models.IntegerField(
default=1,
)
capacity = models.IntegerField(
default=4,
)
smart... | 15.344828 | 37 | 0.593258 |
a44c7c7f53a640b7ddffcb5a34393586bf2ce524 | 3,049 | py | Python | src/sagemaker/tensorflow/tensorflow_serving/apis/model_service_pb2_grpc.py | jaipradeesh/sagemaker-python-sdk | ef842108ccaa324d2be15978aa678926dd1c21ea | [
"Apache-2.0"
] | 267 | 2018-10-24T05:28:04.000Z | 2019-12-24T19:06:14.000Z | src/sagemaker/tensorflow/tensorflow_serving/apis/model_service_pb2_grpc.py | jaipradeesh/sagemaker-python-sdk | ef842108ccaa324d2be15978aa678926dd1c21ea | [
"Apache-2.0"
] | 4 | 2019-01-03T14:54:02.000Z | 2019-12-29T14:31:37.000Z | src/sagemaker/tensorflow/tensorflow_serving/apis/model_service_pb2_grpc.py | jaipradeesh/sagemaker-python-sdk | ef842108ccaa324d2be15978aa678926dd1c21ea | [
"Apache-2.0"
] | 83 | 2018-10-23T15:37:54.000Z | 2019-12-24T19:06:21.000Z | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 42.347222 | 128 | 0.763529 |
9df507043b9ddc18ce1692deab041bc369293272 | 1,103 | py | Python | py/test/envar.py | mpaulweeks/fgc | 2fa77896a59f55be0a68a7dffef76e3dc29f2497 | [
"MIT"
] | 20 | 2016-06-30T05:48:30.000Z | 2021-06-05T21:42:41.000Z | py/test/envar.py | mpaulweeks/fgc | 2fa77896a59f55be0a68a7dffef76e3dc29f2497 | [
"MIT"
] | null | null | null | py/test/envar.py | mpaulweeks/fgc | 2fa77896a59f55be0a68a7dffef76e3dc29f2497 | [
"MIT"
] | 9 | 2016-07-04T04:44:07.000Z | 2019-10-12T21:20:35.000Z |
from py.test.tools import (
BaseTestCase,
)
from py.src.settings.envar import (
_ENVARS,
)
class EnvarTest(BaseTestCase):
def test_is_web_server(self):
sut = _ENVARS({})
self.assertTrue(sut.is_web_server())
sut = _ENVARS({"instance_type": "dev"})
self.assertTrue(sut.is_we... | 31.514286 | 51 | 0.62194 |
731ecfc5e5e603f3d029933ef2e7bde475ba6c78 | 119,829 | py | Python | sympy/combinatorics/perm_groups.py | vprusso/sympy | d5aa27ec88bb076f59087aada97d99bfff8b2f4c | [
"BSD-3-Clause"
] | null | null | null | sympy/combinatorics/perm_groups.py | vprusso/sympy | d5aa27ec88bb076f59087aada97d99bfff8b2f4c | [
"BSD-3-Clause"
] | null | null | null | sympy/combinatorics/perm_groups.py | vprusso/sympy | d5aa27ec88bb076f59087aada97d99bfff8b2f4c | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function, division
from random import randrange, choice
from math import log
from sympy.core import Basic
from sympy.combinatorics import Permutation
from sympy.combinatorics.permutations import (_af_commutes_with, _af_invert,
_af_rmul, _af_rmuln, _af_pow, Cycle)
from sympy.combinator... | 35.037719 | 89 | 0.54279 |
b69202db9249f46e5d7919f7469fedb966efd798 | 2,753 | py | Python | keystonemiddleware/tests/unit/test_fixtures.py | jrbalderrama/keystonemiddleware | 4bc09580070c5f6afa9ef39a3d9d1641de557589 | [
"Apache-1.1"
] | 55 | 2015-01-29T20:10:42.000Z | 2022-03-11T04:02:22.000Z | keystonemiddleware/tests/unit/test_fixtures.py | jrbalderrama/keystonemiddleware | 4bc09580070c5f6afa9ef39a3d9d1641de557589 | [
"Apache-1.1"
] | 1 | 2019-02-18T10:31:04.000Z | 2019-02-18T10:31:04.000Z | keystonemiddleware/tests/unit/test_fixtures.py | jrbalderrama/keystonemiddleware | 4bc09580070c5f6afa9ef39a3d9d1641de557589 | [
"Apache-1.1"
] | 49 | 2015-02-02T23:57:09.000Z | 2021-12-17T19:01:53.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 41.712121 | 79 | 0.657828 |
a271f263d53aa5d4b5a4f8465ef093c8b5f37283 | 7,093 | py | Python | web3/_utils/module_testing/personal_module.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null | web3/_utils/module_testing/personal_module.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null | web3/_utils/module_testing/personal_module.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null | import pytest
from vns_utils import (
is_checksum_address,
is_list_like,
is_same_address,
)
PRIVATE_KEY_HEX = '0x56ebb41875ceedd42e395f730e03b5c44989393c9f0484ee6bc05f933673458f'
PASSWORD = 'web3-testing'
ADDRESS = '0x844B417c0C58B02c2224306047B9fb0D3264fE8c'
PRIVATE_KEY_FOR_UNLOCK = '0x392... | 41.238372 | 94 | 0.588327 |
a325e6ee8c8cd7079a82d457a5ac65b72d161c1a | 750 | py | Python | codepost/urls.py | zachary-berdell-elliott/code-post | 0b94a3bab55ff2d8787f2924ca2d7f906683bb13 | [
"MIT"
] | null | null | null | codepost/urls.py | zachary-berdell-elliott/code-post | 0b94a3bab55ff2d8787f2924ca2d7f906683bb13 | [
"MIT"
] | null | null | null | codepost/urls.py | zachary-berdell-elliott/code-post | 0b94a3bab55ff2d8787f2924ca2d7f906683bb13 | [
"MIT"
] | null | null | null | """codepost URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | 34.090909 | 77 | 0.709333 |
a26f855634696d2f04427717d8695afad0392dd9 | 37,593 | py | Python | tests/test_platypus_tables.py | nakagami/reportlab | 0514ba380fe66c76746725cc0c1b7a3fee51c833 | [
"BSD-3-Clause"
] | 9 | 2016-12-21T02:19:24.000Z | 2021-08-07T11:39:47.000Z | tests/test_platypus_tables.py | nakagami/reportlab | 0514ba380fe66c76746725cc0c1b7a3fee51c833 | [
"BSD-3-Clause"
] | null | null | null | tests/test_platypus_tables.py | nakagami/reportlab | 0514ba380fe66c76746725cc0c1b7a3fee51c833 | [
"BSD-3-Clause"
] | 4 | 2018-08-24T14:50:14.000Z | 2022-03-01T08:46:40.000Z | #!/bin/env python
#Copyright ReportLab Europe Ltd. 2000-2012
#see license.txt for license details
__version__=''' $Id: test_platypus_tables.py 3959 2012-09-27 14:39:39Z robin $ '''
__doc__='Test script for reportlab.tables'
from reportlab.lib.testutils import setOutDir,makeSuiteForClasses, outputfile, printLocation
set... | 43.917056 | 216 | 0.522039 |
b4f668960cb14338a8929912b0c7876e97bd9876 | 677 | py | Python | screenpy/__version__.py | MohamedRaslan/screenpy | 94be7caa444ae7ac8a4ac403cd93ad92108237fe | [
"MIT"
] | null | null | null | screenpy/__version__.py | MohamedRaslan/screenpy | 94be7caa444ae7ac8a4ac403cd93ad92108237fe | [
"MIT"
] | null | null | null | screenpy/__version__.py | MohamedRaslan/screenpy | 94be7caa444ae7ac8a4ac403cd93ad92108237fe | [
"MIT"
] | null | null | null | " ____ ____"
# / ___| ___ _ __ ___ ___ _ __ | _ \ _ _
# \___ \ / __| '__/ _ \/ _ \ '_ \| |_) | | | |
# ___) | (__| | | __/ __/ | | | __/| |_| |
# |____/ \___|_| \___|\___|_| |_|_| \__, |
# ... | 42.3125 | 80 | 0.45938 |
00cac252796787780ec7a54fb50a06197804ca25 | 60,675 | py | Python | numpy/polynomial/chebyshev.py | yarikoptic/numpy | 613589e2286b03171829bf4ff8cb5c9c863df4be | [
"BSD-3-Clause"
] | 5 | 2019-10-02T13:32:41.000Z | 2022-01-11T00:36:48.000Z | numpy/polynomial/chebyshev.py | yarikoptic/numpy | 613589e2286b03171829bf4ff8cb5c9c863df4be | [
"BSD-3-Clause"
] | null | null | null | numpy/polynomial/chebyshev.py | yarikoptic/numpy | 613589e2286b03171829bf4ff8cb5c9c863df4be | [
"BSD-3-Clause"
] | 3 | 2020-06-08T05:14:16.000Z | 2021-07-06T21:12:50.000Z | """
Objects for dealing with Chebyshev series.
This module provides a number of objects (mostly functions) useful for
dealing with Chebyshev series, including a `Chebyshev` class that
encapsulates the usual arithmetic operations. (General information
on how this module represents and works with such polynomials is in... | 30.186567 | 81 | 0.601665 |
4cb4b2f212168934e49e6a888d5875fbb8013de5 | 6,478 | py | Python | call2plink/bin/topbottom.py | lvclark/h3agwas | 5e42e60123b819d3c331a91b25ee50846e55af3b | [
"MIT"
] | 62 | 2016-08-29T11:27:35.000Z | 2022-03-10T17:16:14.000Z | call2plink/bin/topbottom.py | lvclark/h3agwas | 5e42e60123b819d3c331a91b25ee50846e55af3b | [
"MIT"
] | 33 | 2016-12-26T13:48:19.000Z | 2021-12-05T13:34:06.000Z | call2plink/bin/topbottom.py | lvclark/h3agwas | 5e42e60123b819d3c331a91b25ee50846e55af3b | [
"MIT"
] | 50 | 2017-04-15T04:17:43.000Z | 2022-03-30T07:26:01.000Z | #!/usr/bin/env python3
# Takes as input
# - A file describing an Illumica chip
# It should have a header line columns within the first 15 lines "Name Chr MapInfo deCODE(cM):
# the cm is optional
# - A file with the calls for the chip
# There should be some header lines
# - the base name of the PLINK ou... | 28.663717 | 109 | 0.601575 |
f067568106abe4f5844f70f9c9cdab10a150cfea | 2,459 | py | Python | numba_dppy/driver/usm_ndarray_type.py | Rubtsowa/numba-dppy | 20f9825b144913ebe1f7635c785b334f3743c4cb | [
"Apache-2.0"
] | null | null | null | numba_dppy/driver/usm_ndarray_type.py | Rubtsowa/numba-dppy | 20f9825b144913ebe1f7635c785b334f3743c4cb | [
"Apache-2.0"
] | null | null | null | numba_dppy/driver/usm_ndarray_type.py | Rubtsowa/numba-dppy | 20f9825b144913ebe1f7635c785b334f3743c4cb | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Intel 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 in wr... | 32.786667 | 87 | 0.678731 |
faf6c862bdab5723960c4de2ce6d2342ff55a3a2 | 146 | py | Python | pyramide.py | CodeGenie007/python | 42c850999926b697a9b93667ca4d65bf5c643564 | [
"MIT"
] | null | null | null | pyramide.py | CodeGenie007/python | 42c850999926b697a9b93667ca4d65bf5c643564 | [
"MIT"
] | null | null | null | pyramide.py | CodeGenie007/python | 42c850999926b697a9b93667ca4d65bf5c643564 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#Pyramide Program
for i in [1, 1, 1, 1, 1,]:
print i
for j in range(1,6):
print '{:3d}'.format(j, i),
| 11.230769 | 35 | 0.493151 |
4d984e62a3ac953ce2ce103213fc7219af46111d | 644 | py | Python | jassen/project/blog/migrations/0010_auto_20180418_0158.py | GadinganJayHarley06/intern-blog | b442c6f307da63d8687773df7bcbf28ceab3e6a9 | [
"MIT"
] | null | null | null | jassen/project/blog/migrations/0010_auto_20180418_0158.py | GadinganJayHarley06/intern-blog | b442c6f307da63d8687773df7bcbf28ceab3e6a9 | [
"MIT"
] | null | null | null | jassen/project/blog/migrations/0010_auto_20180418_0158.py | GadinganJayHarley06/intern-blog | b442c6f307da63d8687773df7bcbf28ceab3e6a9 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-04-18 01:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0009_auto_20180418_0143'),
]
operations = [
migrations.AlterField(
model_name='post',
... | 25.76 | 101 | 0.607143 |
3fae10e54bc002508f8ef343b5c59d33c94da780 | 113 | py | Python | generic_serializer/__init__.py | Grusinator/django-generic-serializer | 5a44651c64a0d036a532701d90e79aca243152e5 | [
"MIT"
] | null | null | null | generic_serializer/__init__.py | Grusinator/django-generic-serializer | 5a44651c64a0d036a532701d90e79aca243152e5 | [
"MIT"
] | 1 | 2020-06-05T20:15:25.000Z | 2020-06-05T20:15:25.000Z | generic_serializer/__init__.py | Grusinator/django-generic-serializer | 5a44651c64a0d036a532701d90e79aca243152e5 | [
"MIT"
] | null | null | null | from .serializable_model import SerializableModel
from .serializable_model_filter import SerializableModelFilter
| 37.666667 | 62 | 0.911504 |
b712e88b15f651f177fc67c4ef80aad1e4307ca3 | 112 | py | Python | Mundo 1/Desafio/032.py | LeonardoJosedaSilveira/Curso-de-python | e5b7920ce75a3c7af9b8250e18cabaa173e2478b | [
"MIT"
] | null | null | null | Mundo 1/Desafio/032.py | LeonardoJosedaSilveira/Curso-de-python | e5b7920ce75a3c7af9b8250e18cabaa173e2478b | [
"MIT"
] | null | null | null | Mundo 1/Desafio/032.py | LeonardoJosedaSilveira/Curso-de-python | e5b7920ce75a3c7af9b8250e18cabaa173e2478b | [
"MIT"
] | null | null | null | ano = float(input('Digite um ano: '))
print('È um ano bissexto' if (ano % 4) == 0 else 'Não é um ano bissexto')
| 37.333333 | 73 | 0.633929 |
8a70346f8bb257a83cef7e1befa49acf713050e9 | 5,532 | py | Python | sdk/python/pulumi_azure_native/netapp/v20191101/get_snapshot.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/netapp/v20191101/get_snapshot.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/netapp/v20191101/get_snapshot.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | 33.325301 | 151 | 0.63449 |
c2d3a68f62cc7e8ade571d10da33388816f66c7d | 1,862 | py | Python | contrib/devtools/check-doc.py | syglee7/ZenaCoin | f1f438444e59aca9d4f9950e267f37153afb60c4 | [
"MIT"
] | 1 | 2019-12-25T17:05:37.000Z | 2019-12-25T17:05:37.000Z | contrib/devtools/check-doc.py | syglee7/ZenaCoin | f1f438444e59aca9d4f9950e267f37153afb60c4 | [
"MIT"
] | null | null | null | contrib/devtools/check-doc.py | syglee7/ZenaCoin | f1f438444e59aca9d4f9950e267f37153afb60c4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2015-2016 The Zenacoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
This checks if all command line args are documented.
Return value is 0 to indicate no error.
Author:... | 40.478261 | 249 | 0.686896 |
4b842b90995e7f02ba5350cb269f6d1042181043 | 12,816 | py | Python | tutorials/dev/use_pass_infra.py | jacobpostman/incubator-tvm | fdef79d317d455eb5c9e9e86feb97416eb594690 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | 4 | 2019-05-08T04:46:07.000Z | 2019-11-11T19:43:04.000Z | tutorials/dev/use_pass_infra.py | minminsun/incubator-tvm | 02643d39798c6ec28348235d36d8da626f50d9dd | [
"Apache-2.0"
] | 2 | 2020-09-14T09:18:25.000Z | 2020-09-24T03:28:18.000Z | tutorials/dev/use_pass_infra.py | minminsun/incubator-tvm | 02643d39798c6ec28348235d36d8da626f50d9dd | [
"Apache-2.0"
] | 2 | 2019-08-08T01:48:03.000Z | 2019-09-27T06:49:16.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... | 45.286219 | 112 | 0.675094 |
1a2fd9b881bcb20c6a7d72e836aff2941ba30a0c | 675 | py | Python | GUI/qt/ZetCode/a_small_window_2.py | archu2020/python-2 | 19c626ca9fd37168db8a7ac075fd80c8e2971313 | [
"Apache-2.0"
] | 48 | 2017-12-24T12:19:55.000Z | 2022-02-26T13:14:27.000Z | GUI/qt/ZetCode/a_small_window_2.py | 17610178081/python | 3975c678d985c468deecd03560d882e9d316bb63 | [
"Apache-2.0"
] | 3 | 2018-12-05T08:48:14.000Z | 2020-07-29T01:56:16.000Z | GUI/qt/ZetCode/a_small_window_2.py | 17610178081/python | 3975c678d985c468deecd03560d882e9d316bb63 | [
"Apache-2.0"
] | 113 | 2017-08-09T03:10:04.000Z | 2022-03-26T16:05:01.000Z | """
ZetCode PyQt5 tutorial
This example shows an icon
in the titlebar of the window.
Author: Jan Bodnar
Website: zetcode.com
Last edited: August 2017
"""
import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtGui import QIcon
class Example(QWidget):
def __init__(self):
... | 17.763158 | 53 | 0.613333 |
e15587e71837974807dae3e70507b83c434413e2 | 494 | py | Python | flaskblog/config.py | carlba/flask-full-featured-web-app | 909db8be89c529d7fa2f3b1a839777be4ae85c68 | [
"MIT"
] | null | null | null | flaskblog/config.py | carlba/flask-full-featured-web-app | 909db8be89c529d7fa2f3b1a839777be4ae85c68 | [
"MIT"
] | null | null | null | flaskblog/config.py | carlba/flask-full-featured-web-app | 909db8be89c529d7fa2f3b1a839777be4ae85c68 | [
"MIT"
] | null | null | null | import os
class Config(object):
# noinspection SpellCheckingInspection
# import secrets
# secrets.token_hex(16)
SECRET_KEY = 'bcaa436189daf75374ecebec4a652522'
# The three slashes means a relative path so the file will next to the script
SQLALCHEMY_DATABASE_URI = 'sqlite:///site.db'
MAIL_... | 29.058824 | 81 | 0.720648 |
0a3c2cb3da1e5e7bac160d7f41cc078ec74ed324 | 220 | py | Python | src2/site01/models/book.py | DYS12345/flask | a939a0c3c079bbbbc74a7a28440973347fceb2c1 | [
"Apache-2.0"
] | null | null | null | src2/site01/models/book.py | DYS12345/flask | a939a0c3c079bbbbc74a7a28440973347fceb2c1 | [
"Apache-2.0"
] | null | null | null | src2/site01/models/book.py | DYS12345/flask | a939a0c3c079bbbbc74a7a28440973347fceb2c1 | [
"Apache-2.0"
] | null | null | null | class Book:
def __init__(self, title, price, author, publisher):
self.title = title
self.price = price
self.author = author
self.publisher = publisher
def __str__(self):
return '<Book {}>'.format(self.title) | 24.444444 | 53 | 0.7 |
64cba61aa5fd61852d46f346137fd9d329ece7f7 | 866 | py | Python | app/demo/documents/migrations/0003_link.py | sesostris/django-material-admin | f6678e57286bd871a820b235f868873d5f86d649 | [
"MIT"
] | 270 | 2018-09-14T07:55:04.000Z | 2022-03-31T13:12:41.000Z | app/demo/documents/migrations/0003_link.py | sesostris/django-material-admin | f6678e57286bd871a820b235f868873d5f86d649 | [
"MIT"
] | 107 | 2019-03-26T20:35:23.000Z | 2022-03-15T15:34:38.000Z | app/demo/documents/migrations/0003_link.py | sesostris/django-material-admin | f6678e57286bd871a820b235f868873d5f86d649 | [
"MIT"
] | 66 | 2018-11-05T13:07:14.000Z | 2022-03-31T17:17:22.000Z | # Generated by Django 2.2.3 on 2019-07-23 14:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('documents', '0002_auto_20190719_1539'),
]
operations = [
migrations.CreateModel(
name='Link',
... | 30.928571 | 154 | 0.571594 |
7da7689da963fde6e8a3a7ca4868c859cacfffe8 | 1,003 | py | Python | mainapp/management/commands/search_tokenize.py | cyroxx/meine-stadt-transparent | d5a3f03a29a1bb97ce50ac5257d8bbd5208d9218 | [
"MIT"
] | 34 | 2017-10-04T14:20:41.000Z | 2022-03-11T18:06:48.000Z | mainapp/management/commands/search_tokenize.py | cyroxx/meine-stadt-transparent | d5a3f03a29a1bb97ce50ac5257d8bbd5208d9218 | [
"MIT"
] | 588 | 2017-10-14T18:31:17.000Z | 2022-03-16T13:00:30.000Z | mainapp/management/commands/search_tokenize.py | codeformuenster/meine-stadt-transparent | 1458bc6acad40183908e2b7cc98ef92165d1123a | [
"MIT"
] | 11 | 2017-11-27T10:12:59.000Z | 2022-02-09T10:27:11.000Z | from django.core.management.base import BaseCommand
from elasticsearch_dsl import Index
from mainapp.documents.index import get_text_analyzer
class Command(BaseCommand):
help = "View the tokenizations of some word with the elasticsearch tokenizer"
def add_arguments(self, parser):
parser.add_argument... | 33.433333 | 81 | 0.643071 |
aa94e5356eb3f17a7993ea52e6ff4d9bb1f374e6 | 1,011 | py | Python | src/cogs/config/config.py | vcokltfre/hcubed | d935d9d91668c85af5dc18aef6becca565d50545 | [
"MIT"
] | null | null | null | src/cogs/config/config.py | vcokltfre/hcubed | d935d9d91668c85af5dc18aef6becca565d50545 | [
"MIT"
] | 1 | 2022-01-29T17:00:52.000Z | 2022-01-29T17:09:31.000Z | src/cogs/config/config.py | vcokltfre/hcubed | d935d9d91668c85af5dc18aef6becca565d50545 | [
"MIT"
] | 2 | 2022-01-01T16:23:57.000Z | 2022-01-29T17:06:47.000Z | from discord.ext import commands
from src.internal.bot import Bot
from src.internal.context import Context
class Config(commands.Cog):
"""Change the bot config."""
def __init__(self, bot: Bot):
self.bot = bot
@commands.command(name="prefix")
@commands.check_any(
commands.is_owner(),... | 28.885714 | 87 | 0.645895 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.