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
4c973e13e6a3ad8c93e05e6eb0d55b8605e8429e
65
py
Python
__init__.py
MahmoudRamada/clin
f56376ecaa590f4b06d01d6f80cfd574764b811e
[ "Apache-2.0" ]
null
null
null
__init__.py
MahmoudRamada/clin
f56376ecaa590f4b06d01d6f80cfd574764b811e
[ "Apache-2.0" ]
1
2019-10-06T17:56:23.000Z
2019-10-06T17:56:23.000Z
__init__.py
MahmoudRamada/clin
f56376ecaa590f4b06d01d6f80cfd574764b811e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from . import models from . import wizard
21.666667
23
0.646154
da97ceb3a62d8e4125edcbc326110377b5dacbf2
1,744
py
Python
reconcile/jenkins_job_cleaner.py
BumbleFeng/qontract-reconcile
a9f5bb221df5f92727d0582c5aa1a99822883782
[ "Apache-2.0" ]
21
2019-10-22T16:50:26.000Z
2022-03-25T16:07:44.000Z
reconcile/jenkins_job_cleaner.py
BumbleFeng/qontract-reconcile
a9f5bb221df5f92727d0582c5aa1a99822883782
[ "Apache-2.0" ]
629
2018-12-13T12:46:53.000Z
2022-03-31T20:46:02.000Z
reconcile/jenkins_job_cleaner.py
BumbleFeng/qontract-reconcile
a9f5bb221df5f92727d0582c5aa1a99822883782
[ "Apache-2.0" ]
50
2019-01-04T10:22:45.000Z
2022-03-28T13:24:27.000Z
import logging from reconcile import queries from reconcile.jenkins_job_builder import init_jjb from reconcile.utils.jenkins_api import JenkinsApi QONTRACT_INTEGRATION = 'jenkins-job-cleaner' def get_managed_job_names(job_names, managed_projects): managed_jobs = set() for job_name in job_names: for...
32.296296
72
0.681193
74e3ee009219a940ab1b9062b67597ed34ea0dcc
423
py
Python
openapi_core/__init__.py
niteoweb/openapi-core
ed39ee8fcf6a9e5c43411f891ec028a5f84bc0d8
[ "BSD-3-Clause" ]
null
null
null
openapi_core/__init__.py
niteoweb/openapi-core
ed39ee8fcf6a9e5c43411f891ec028a5f84bc0d8
[ "BSD-3-Clause" ]
null
null
null
openapi_core/__init__.py
niteoweb/openapi-core
ed39ee8fcf6a9e5c43411f891ec028a5f84bc0d8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """OpenAPI core module""" from openapi_core.shortcuts import ( create_spec, validate_parameters, validate_body, validate_data, ) __author__ = 'Artur Maciag' __email__ = 'maciag.artur@gmail.com' __version__ = '0.9.0' __url__ = 'https://github.com/p1c2u/openapi-core' __license__ = 'BSD 3-Clau...
26.4375
75
0.72104
74de198630183245b7e958eb55d166e49beb01ee
3,305
py
Python
scripts/create_fluseverity_figs_v5/ILINet_zRR_time_v5.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
3
2018-03-29T23:02:43.000Z
2020-08-10T12:01:50.000Z
scripts/create_fluseverity_figs_v5/ILINet_zRR_time_v5.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
null
null
null
scripts/create_fluseverity_figs_v5/ILINet_zRR_time_v5.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
null
null
null
#!/usr/bin/python ############################################## ###Python template ###Author: Elizabeth Lee ###Date: 11/4/14 ###Function: RR of incidence in adults to incidence in children vs. week number normalized by the first 'gp_normweeks' of the season. Incidence in children and adults is normalized by the size ...
43.486842
286
0.737065
ce45016cddeed7ea65a507dc5b57a4d84f92d820
546
py
Python
finch/wsgi.py
Zeitsperre/finch
1660b7cbb5be80d3c92b8589a5b2a15aaaf0e789
[ "Apache-2.0" ]
null
null
null
finch/wsgi.py
Zeitsperre/finch
1660b7cbb5be80d3c92b8589a5b2a15aaaf0e789
[ "Apache-2.0" ]
null
null
null
finch/wsgi.py
Zeitsperre/finch
1660b7cbb5be80d3c92b8589a5b2a15aaaf0e789
[ "Apache-2.0" ]
1
2019-08-18T02:59:05.000Z
2019-08-18T02:59:05.000Z
import os import sentry_sdk from pywps.app.Service import Service from .processes import processes if os.environ.get("SENTRY_DSN"): sentry_sdk.init(os.environ["SENTRY_DSN"]) def create_app(cfgfiles=None): config_files = [os.path.join(os.path.dirname(__file__), 'default.cfg')] if cfgfiles: confi...
23.73913
75
0.730769
11bccbb97dc7b8b674c5735d6cf3a829bbb063b1
4,915
py
Python
ironic/tests/unit/objects/utils.py
ericxiett/ironic-customized
3a2ad13969e1497889a0c3be80f9f5f671ff4d1b
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/objects/utils.py
ericxiett/ironic-customized
3a2ad13969e1497889a0c3be80f9f5f671ff4d1b
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/objects/utils.py
ericxiett/ironic-customized
3a2ad13969e1497889a0c3be80f9f5f671ff4d1b
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Rackspace Hosting # 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 require...
29.969512
79
0.675687
7c024cbdfc975d84eb017252c3b7d70b65bb7841
1,035
py
Python
aether-client-library/aether/client/exceptions.py
eHealthAfrica/aether
6845d7eeebd4ae57332f73d74db3617e00032204
[ "Apache-2.0" ]
14
2018-08-09T20:57:16.000Z
2020-10-11T12:22:18.000Z
aether-client-library/aether/client/exceptions.py
eHealthAfrica/aether
6845d7eeebd4ae57332f73d74db3617e00032204
[ "Apache-2.0" ]
148
2018-07-24T10:52:29.000Z
2022-02-10T09:06:44.000Z
aether-client-library/aether/client/exceptions.py
eHealthAfrica/aether
6845d7eeebd4ae57332f73d74db3617e00032204
[ "Apache-2.0" ]
6
2018-07-25T13:33:10.000Z
2019-09-23T03:02:09.000Z
# Copyright (C) 2019 by eHealth Africa : http://www.eHealthAfrica.org # # See the NOTICE file distributed with this work for additional information # regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with # the License. Y...
38.333333
75
0.72657
3536896a5fb6a68cf1bf3c27ea1f09366e3331c4
9,890
py
Python
frappe/website/doctype/blog_post/blog_post.py
Don-Leopardo/frappe
39097b05a7a9904776a435ee2c3d7a579d429389
[ "MIT" ]
3,755
2015-01-06T07:47:43.000Z
2022-03-31T20:54:23.000Z
frappe/website/doctype/blog_post/blog_post.py
Don-Leopardo/frappe
39097b05a7a9904776a435ee2c3d7a579d429389
[ "MIT" ]
7,369
2015-01-01T19:59:41.000Z
2022-03-31T23:02:05.000Z
frappe/website/doctype/blog_post/blog_post.py
Don-Leopardo/frappe
39097b05a7a9904776a435ee2c3d7a579d429389
[ "MIT" ]
2,685
2015-01-07T17:51:03.000Z
2022-03-31T23:16:24.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: MIT. See LICENSE import frappe from frappe import _ from frappe.website.website_generator import WebsiteGenerator from frappe.website.utils import clear_cache from frappe.utils import today, cint, global_date_format, get_fullname, strip_ht...
32.966667
134
0.720829
e7fa21b350c0b53965c881f1123b33d8397bc899
484
py
Python
tests/test_xml.py
relevitt/SoCo
aeffc02d11dbfc60e4589c473a3a528abaceea0a
[ "MIT" ]
1,149
2015-01-02T02:08:34.000Z
2022-03-30T13:58:04.000Z
tests/test_xml.py
relevitt/SoCo
aeffc02d11dbfc60e4589c473a3a528abaceea0a
[ "MIT" ]
630
2015-01-01T10:44:22.000Z
2022-03-17T00:25:55.000Z
tests/test_xml.py
relevitt/SoCo
aeffc02d11dbfc60e4589c473a3a528abaceea0a
[ "MIT" ]
249
2015-01-07T20:11:10.000Z
2022-03-14T05:54:20.000Z
"""Tests for the xml module.""" from soco import xml def test_ns_tag(): """Test the ns_tag function.""" namespaces = [ "http://purl.org/dc/elements/1.1/", "urn:schemas-upnp-org:metadata-1-0/upnp/", "urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/", ] for ns_in, namespace in zip(...
26.888889
64
0.57438
66f928da14da2a7dd7f0712cbfcc9a2cea3b77ae
864
py
Python
sourcecode/13/13.7.3/flexGridSizer.py
ydong08/PythonCode
268f538608917565cdfc8eadbd04101606314c97
[ "MIT" ]
null
null
null
sourcecode/13/13.7.3/flexGridSizer.py
ydong08/PythonCode
268f538608917565cdfc8eadbd04101606314c97
[ "MIT" ]
null
null
null
sourcecode/13/13.7.3/flexGridSizer.py
ydong08/PythonCode
268f538608917565cdfc8eadbd04101606314c97
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- import wx class GridSizerFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, -1, u"布局管理器-gridSizer", size = (300, 150)) panel = wx.Panel(self, -1) colorList = [u'红', u'蓝', u'绿', u'黄', u'黑'] sizer = wx.FlexGridSizer(rows = 3, ...
29.793103
80
0.543981
6f43c0eab27a42be90ab352569ae7cdfea239f41
928
py
Python
appendices/xunit/test_xUnit_fixtures.py
Jamrozinski/PythonTestingWithPytest
0dceb58f0b17fefa776748c93f5df062395d00be
[ "MIT" ]
11
2021-05-06T12:39:39.000Z
2022-03-14T11:58:44.000Z
appendices/xunit/test_xUnit_fixtures.py
Jamrozinski/PythonTestingWithPytest
0dceb58f0b17fefa776748c93f5df062395d00be
[ "MIT" ]
34
2019-12-16T16:53:24.000Z
2022-01-13T02:29:30.000Z
appendices/xunit/test_xUnit_fixtures.py
Jamrozinski/PythonTestingWithPytest
0dceb58f0b17fefa776748c93f5df062395d00be
[ "MIT" ]
11
2021-06-10T21:19:42.000Z
2022-02-21T04:03:06.000Z
def setup_module(module): print(f'\nsetup_module() for {module.__name__}') def teardown_module(module): print(f'teardown_module() for {module.__name__}') def setup_function(function): print(f'setup_function() for {function.__name__}') def teardown_function(function): print(f'teardown_function() fo...
20.622222
57
0.657328
e83714b7954846dd1594901a6f4aef2647778085
12,074
py
Python
venv/Lib/site-packages/skimage/registration/_phase_cross_correlation.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
4
2021-10-20T12:39:09.000Z
2022-02-26T15:02:08.000Z
venv/Lib/site-packages/skimage/registration/_phase_cross_correlation.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/skimage/registration/_phase_cross_correlation.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
20
2021-11-07T13:55:56.000Z
2021-12-02T10:54:01.000Z
""" Port of Manuel Guizar's code from: http://www.mathworks.com/matlabcentral/fileexchange/18401-efficient-subpixel-image-registration-by-cross-correlation """ import numpy as np from .._shared.fft import fftmodule as fft from ._masked_phase_cross_correlation import _masked_phase_cross_correlation def _upsampled_dft...
43.588448
116
0.64817
13c23d851c5c95c0b268aa2fc1e59e058ce6122a
544
py
Python
app/api/routes.py
marirs/flask-api-with-jwt
0d7ffde0ea16566db65f9f521d7a9bf755d1d20b
[ "MIT" ]
null
null
null
app/api/routes.py
marirs/flask-api-with-jwt
0d7ffde0ea16566db65f9f521d7a9bf755d1d20b
[ "MIT" ]
null
null
null
app/api/routes.py
marirs/flask-api-with-jwt
0d7ffde0ea16566db65f9f521d7a9bf755d1d20b
[ "MIT" ]
null
null
null
""" API Routes Desc: Skeleton app to access API's with JWT tokens Author: [marirs,] version: 1.0 """ import os from flask import Blueprint, request, jsonify from app import db from app.auth.routes import requires_token from uuid import uuid4 api = Blueprint('api', __name__) @api.route('/', methods=['POST']) @requir...
20.923077
69
0.693015
cbc7e5061d720dbd72fd970fc1afe37443665941
647
py
Python
djangobench/benchmarks/url_resolve_flat/benchmark.py
smithdc1/djangobench
912dc536db706fb73d24a53d10d1739a0824d2c1
[ "BSD-3-Clause" ]
null
null
null
djangobench/benchmarks/url_resolve_flat/benchmark.py
smithdc1/djangobench
912dc536db706fb73d24a53d10d1739a0824d2c1
[ "BSD-3-Clause" ]
null
null
null
djangobench/benchmarks/url_resolve_flat/benchmark.py
smithdc1/djangobench
912dc536db706fb73d24a53d10d1739a0824d2c1
[ "BSD-3-Clause" ]
null
null
null
try: from django.urls import Resolver404, resolve except ImportError: # Django < 1.10 from django.core.urlresolvers import resolve, Resolver404 from djangobench.utils import run_benchmark def benchmark(): paths = ( '/user/repo/feature19', '/section0/feature0', '/en/feature10', ...
22.310345
73
0.579598
126af78a21306e3a47126aee41a01d5f3c8e06e4
3,891
py
Python
sdk/env.py
Gussy/titanium_desktop
37dbaab5664e595115e2fcdc348ed125cd50b48d
[ "Apache-2.0" ]
3
2020-01-31T03:40:26.000Z
2022-02-06T12:20:52.000Z
sdk/env.py
appcelerator-archive/titanium_desktop
37dbaab5664e595115e2fcdc348ed125cd50b48d
[ "Apache-2.0" ]
null
null
null
sdk/env.py
appcelerator-archive/titanium_desktop
37dbaab5664e595115e2fcdc348ed125cd50b48d
[ "Apache-2.0" ]
null
null
null
import app import osx_app import linux_app import win32_app import os import platform import subprocess import sys import os.path as p import __init__ class PackagingEnvironment(object): def __init__(self, target_os, packaging_server=False, appstore=False): self.components_dir = None self.version = __init__.get_t...
29.477273
99
0.684914
e3d54a415db08b2719beb6e2b5da5b0a3981872c
154,845
py
Python
ghapi/metadata.py
danpalmer/ghapi
69e3495f8b6cb3974c5643b79ec7eebfc905786d
[ "Apache-2.0" ]
null
null
null
ghapi/metadata.py
danpalmer/ghapi
69e3495f8b6cb3974c5643b79ec7eebfc905786d
[ "Apache-2.0" ]
1
2021-02-22T07:04:39.000Z
2021-02-22T12:58:57.000Z
ghapi/metadata.py
danpalmer/ghapi
69e3495f8b6cb3974c5643b79ec7eebfc905786d
[ "Apache-2.0" ]
null
null
null
funcs = [('/app', 'get', 'apps/get-authenticated', 'Get the authenticated app', 'v3/apps/#get-the-authenticated-app', [], [], ''), ('/app-manifests/{code}/conversions', 'post', 'apps/create-from-manifest', 'Create a GitHub App from a manifest', 'v3/apps/#create-a-github-app-from-a-manifest', [], [], ''), ('/app/hook/...
172.81808
358
0.69049
18335dd61bb9a5752f51922d9869c7f4398e3b5a
1,835
py
Python
tools/mo/unit_tests/mo/front/mxnet/activation_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
tools/mo/unit_tests/mo/front/mxnet/activation_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
tools/mo/unit_tests/mo/front/mxnet/activation_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import unittest from openvino.tools.mo.front.mxnet.activation import ActivationFrontExtractor from openvino.tools.mo.graph.graph import Node from unit_tests.utils.graph import build_graph class TestActivationFrontExtractorOp(unittest....
35.980392
84
0.541689
e2c037701a0ff802a442907237857e6fc38da855
24,760
py
Python
tests/conftest.py
sdebruyn/hass-auth-synology
c37f2071d666140a17c4b8e4ec4dd226fafbc31f
[ "Apache-2.0" ]
3
2021-11-13T00:56:01.000Z
2021-12-22T06:32:18.000Z
tests/conftest.py
sdebruyn/hass-auth-synology
c37f2071d666140a17c4b8e4ec4dd226fafbc31f
[ "Apache-2.0" ]
34
2021-11-16T17:27:27.000Z
2022-03-31T17:31:41.000Z
tests/conftest.py
sdebruyn/hass-auth-synology
c37f2071d666140a17c4b8e4ec4dd226fafbc31f
[ "Apache-2.0" ]
null
null
null
"""Set up some common test helper things.""" import asyncio import datetime import functools import logging import socket import ssl import threading from unittest.mock import AsyncMock, MagicMock, Mock, patch import multidict import pytest import pytest_socket import requests_mock as _requests_mock from aiohttp.test_...
31.461245
129
0.682512
59dafabd12fc6cae66c939a51082c0571da4c29a
15,499
py
Python
sympy/printing/tests/test_latex.py
Narsil/sympy
4d837e074b871af351b42591697fe126411a910f
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/tests/test_latex.py
Narsil/sympy
4d837e074b871af351b42591697fe126411a910f
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/tests/test_latex.py
Narsil/sympy
4d837e074b871af351b42591697fe126411a910f
[ "BSD-3-Clause" ]
1
2022-03-21T09:07:27.000Z
2022-03-21T09:07:27.000Z
from sympy import (symbols, Rational, Symbol, Integral, log, diff, sin, exp, Function, factorial, floor, ceiling, Abs, re, im, conjugate, gamma, Order, Piecewise, Matrix, asin, Interval, EmptySet, Union, S, Sum, Limit, oo, Poly, Float, lowergamma, uppergamma, hyper, meijerg, Lambda, Poly, RootOf, RootSu...
44.03125
137
0.557326
099b79ac911d10270fbf05f270daa3de72b0aa31
12,730
py
Python
src/align/align_facescrub.py
tensorflow-pool/insightface
d27ad2d3e8b15a9abaddc86dc12c59437db6ee80
[ "MIT" ]
1
2019-02-19T09:53:11.000Z
2019-02-19T09:53:11.000Z
src/align/align_facescrub.py
tensorflow-pool/insightface
d27ad2d3e8b15a9abaddc86dc12c59437db6ee80
[ "MIT" ]
null
null
null
src/align/align_facescrub.py
tensorflow-pool/insightface
d27ad2d3e8b15a9abaddc86dc12c59437db6ee80
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import json import os import sys import numpy as np import tensorflow as tf from scipy import misc # import facenet import detect_face sys.path.append(os.path.join(os.path.dirname(__file__), ...
39.78125
167
0.487588
10cd07ee0c13fb12ae430dc834be1c65a7b4a327
3,053
py
Python
client/commands/tests/stop_test.py
skylerberg/pyre-check
e7967e5ee65dd09608f162cdb36a5b0919aeb5e3
[ "MIT" ]
null
null
null
client/commands/tests/stop_test.py
skylerberg/pyre-check
e7967e5ee65dd09608f162cdb36a5b0919aeb5e3
[ "MIT" ]
null
null
null
client/commands/tests/stop_test.py
skylerberg/pyre-check
e7967e5ee65dd09608f162cdb36a5b0919aeb5e3
[ "MIT" ]
null
null
null
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-unsafe import os import unittest from io import StringIO from unittest.mock import Mock, call, patch from ... import commands # noqa from ...
39.649351
86
0.664592
ed26910e3b23f2e4df521bf1d5f1dbc5ac9b2d8c
773
py
Python
percy/tools.py
sakethramanujam/percy-image-downloader
b835e726b0755c45400c0e219cc03c0ddd77e482
[ "MIT" ]
7
2021-02-23T03:29:02.000Z
2022-01-19T04:20:32.000Z
percy/tools.py
sakethramanujam/percy-image-downloader
b835e726b0755c45400c0e219cc03c0ddd77e482
[ "MIT" ]
6
2021-02-23T05:05:44.000Z
2021-02-25T16:47:58.000Z
percy/tools.py
sakethramanujam/percy-image-downloader
b835e726b0755c45400c0e219cc03c0ddd77e482
[ "MIT" ]
2
2021-02-23T04:59:41.000Z
2021-02-23T15:44:06.000Z
import os import requests from .settings import STATS_URL def n_pages(): """ Finds total number of available pages """ try: r = get(STATS_URL) stats = r.json() n = round(stats["total"]/50) return n except Exception as e: print(f"Error: {e}") def checkpath(...
19.820513
71
0.56533
9e287a19b4880b6bd5bb429aaafc92c93a25a32e
7,013
py
Python
examples/complex/har_dump.py
dotnes/mitmproxy
5eb17bbf6d47c8d703763bfa41cf1ff3f98a632f
[ "MIT" ]
1
2017-12-27T09:05:23.000Z
2017-12-27T09:05:23.000Z
examples/complex/har_dump.py
dotnes/mitmproxy
5eb17bbf6d47c8d703763bfa41cf1ff3f98a632f
[ "MIT" ]
1
2021-05-11T20:51:11.000Z
2021-05-11T20:51:11.000Z
examples/complex/har_dump.py
dotnes/mitmproxy
5eb17bbf6d47c8d703763bfa41cf1ff3f98a632f
[ "MIT" ]
null
null
null
""" This inline script can be used to dump flows as HAR files. """ import json import base64 import zlib import os import typing # noqa from datetime import datetime from datetime import timezone import mitmproxy from mitmproxy import connections # noqa from mitmproxy import version from mitmproxy import ctx fro...
32.771028
102
0.618423
f16b44fe112bb81dbc3ef49faf4acc55eb7925d4
446
py
Python
lugar/migrations/0003_pais_slug.py
CARocha/cafod-joa
e207b29375cd1f2219086b54ec6280e5c5789c32
[ "MIT" ]
1
2021-11-05T11:33:01.000Z
2021-11-05T11:33:01.000Z
lugar/migrations/0003_pais_slug.py
CARocha/cafod-joa
e207b29375cd1f2219086b54ec6280e5c5789c32
[ "MIT" ]
6
2020-06-05T18:13:39.000Z
2022-01-13T00:45:03.000Z
lugar/migrations/0003_pais_slug.py
CARocha/cafod-joa
e207b29375cd1f2219086b54ec6280e5c5789c32
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('lugar', '0002_microcuenca'), ] operations = [ migrations.AddField( model_name='pais', name='slug', ...
22.3
109
0.61435
c309c4b9ab17156cdadf27985b0148379a2ce50f
2,870
py
Python
Megatron-LM-v1.1.5-ZeRO3/megatron/model/utils.py
ganik/DeepSpeedExamples
174ae3bc8dbb688cfaccb4afa15d6e2cdbe19ce5
[ "MIT" ]
309
2020-02-07T23:09:27.000Z
2022-03-31T08:01:53.000Z
Megatron-LM-v1.1.5-ZeRO3/megatron/model/utils.py
ganik/DeepSpeedExamples
174ae3bc8dbb688cfaccb4afa15d6e2cdbe19ce5
[ "MIT" ]
93
2020-02-22T05:56:28.000Z
2022-03-27T08:43:38.000Z
Megatron-LM-v1.1.5-ZeRO3/megatron/model/utils.py
ganik/DeepSpeedExamples
174ae3bc8dbb688cfaccb4afa15d6e2cdbe19ce5
[ "MIT" ]
148
2020-02-14T22:16:11.000Z
2022-03-22T17:08:04.000Z
# coding=utf-8 # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
34.166667
105
0.665157
a478552a7eb0ece7c5120af06e2131699d49ba60
1,430
py
Python
tests/test_crawler.py
unit-00/storyteller-data
685648cb558b11c236178bdef0e039069aa23ef3
[ "MIT" ]
null
null
null
tests/test_crawler.py
unit-00/storyteller-data
685648cb558b11c236178bdef0e039069aa23ef3
[ "MIT" ]
null
null
null
tests/test_crawler.py
unit-00/storyteller-data
685648cb558b11c236178bdef0e039069aa23ef3
[ "MIT" ]
null
null
null
"""Tests for Aesop spider""" import unittest # pylint: disable=missing-module-docstring from pymongo import MongoClient import requests from crawler.aesop import get_aesop_links, AesopSpider class TestAesopSpider(unittest.TestCase): """Test cases for Aesop spider""" @classmethod def setUpClass(cls): ...
30.425532
77
0.663636
0a9cd144805026fbd5e80622c1d1dadf19dbf737
8,568
py
Python
pgs_web/settings.py
HDRUK/PGS_Catalog
d59067fc61961770d1e0f8bb6081d10d8bbea3e9
[ "Apache-2.0" ]
5
2020-01-29T18:04:08.000Z
2022-01-04T18:04:05.000Z
pgs_web/settings.py
PGScatalog/PGS_Catalog
d59067fc61961770d1e0f8bb6081d10d8bbea3e9
[ "Apache-2.0" ]
37
2020-02-25T08:50:04.000Z
2022-02-15T10:11:34.000Z
pgs_web/settings.py
HDRUK/PGS_Catalog
d59067fc61961770d1e0f8bb6081d10d8bbea3e9
[ "Apache-2.0" ]
3
2020-01-14T10:19:14.000Z
2020-09-08T20:11:34.000Z
""" Django settings for pgs_web project. Generated by 'django-admin startproject' using Django 3.0.2. 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/ """ import os i...
29.142857
91
0.663749
2a7a942caa3628a1b7465bc638c77f890bbee3d4
1,449
py
Python
spid_cie_oidc/entity/schemas/rp_metadata.py
peppelinux/spid-cie-oidc-authority
816636fece10f410f5d6fce85fd79bb409d0c8b8
[ "Apache-2.0" ]
4
2022-03-08T09:05:13.000Z
2022-03-16T17:59:43.000Z
spid_cie_oidc/entity/schemas/rp_metadata.py
peppelinux/spid-cie-oidc-authority
816636fece10f410f5d6fce85fd79bb409d0c8b8
[ "Apache-2.0" ]
64
2022-03-08T01:11:40.000Z
2022-03-31T17:23:49.000Z
spid_cie_oidc/entity/schemas/rp_metadata.py
peppelinux/spid-cie-oidc-authority
816636fece10f410f5d6fce85fd79bb409d0c8b8
[ "Apache-2.0" ]
8
2022-03-09T12:00:08.000Z
2022-03-31T13:52:14.000Z
from enum import Enum from typing import List, Optional from pydantic import BaseModel, HttpUrl, validator from .jwks import JwksCie, JwksSpid class GrantTypeSupported(str, Enum): refresh_token = "refresh_token" # nosec - B105 authorization_code = "authorization_code" class RPMetadata(BaseModel): redir...
30.829787
67
0.698413
6e16a3380651d2d79759b99cc7ce8b8433700024
40,169
py
Python
JumpScale9Lib/clients/kubernetes/Kubernetes.py
Jumpscale/lib9
82224784ef2a7071faeb48349007211c367bc673
[ "Apache-2.0" ]
2
2017-06-07T08:11:47.000Z
2017-11-10T02:19:48.000Z
JumpScale9Lib/clients/kubernetes/Kubernetes.py
Jumpscale/lib9
82224784ef2a7071faeb48349007211c367bc673
[ "Apache-2.0" ]
188
2017-06-21T06:16:13.000Z
2020-06-17T14:20:24.000Z
JumpScale9Lib/clients/kubernetes/Kubernetes.py
Jumpscale/lib9
82224784ef2a7071faeb48349007211c367bc673
[ "Apache-2.0" ]
3
2018-06-12T05:18:28.000Z
2019-09-24T06:49:17.000Z
from kubernetes import client, config import time import urllib from js9 import j TEMPLATE = """ config_path = "" context = "" sshkey_path = "" incluster_config = false """ JSConfigBase = j.tools.configmanager.base_class_config JSBASE = j.application.jsbase_get_class() class KubernetesMaster(JSConfigBase): """...
54.282432
901
0.633698
e12e8b92ae78c8c453d8c7d376da17054d7ddbda
2,839
py
Python
simple_db_builder/builder.py
Nunie123/simple_db_builder
4dea6d7e18e076405d633d8070a8c918f77dfe88
[ "MIT" ]
null
null
null
simple_db_builder/builder.py
Nunie123/simple_db_builder
4dea6d7e18e076405d633d8070a8c918f77dfe88
[ "MIT" ]
null
null
null
simple_db_builder/builder.py
Nunie123/simple_db_builder
4dea6d7e18e076405d633d8070a8c918f77dfe88
[ "MIT" ]
null
null
null
import argparse, json, logging, datetime from connections import Connection from helpers import time_and_log logging.basicConfig( filename="log.log", level=logging.DEBUG, format="%(asctime)s:%(levelname)s:%(message)s" ) @time_and_log(logger=logging) def execute_and_log_raw_sql(connection, raw_sql_to_exec...
34.621951
111
0.777739
4dfaf234f8097a41d863c34721c99d8e7d182843
627
py
Python
business/enums.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
business/enums.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
business/enums.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
import enum class ContactType(enum.IntEnum): REPRESENTATIVE = 0 RECRUITER = 1 TECHNICAL = 2 class OfferType(enum.IntEnum): INTERNSHIP = 0 SUMMER_INTERNSHIP = 1 PART_TIME = 2 FULL_TIME = 3 VOLUNTEER = 4 OTHER = 5 MASTER_THESIS = 6 OfferType.labels = { OfferType.INTERNSHI...
20.9
53
0.6874
0a3bb24290d481a69e83239a9e3265a782a9b714
1,395
py
Python
src/resume/views.py
zhangjie2012/qwerty-server
56cfae83381df007cffce4c1cbf8f786f44e63b8
[ "MIT" ]
6
2018-11-07T03:46:10.000Z
2019-06-21T13:51:19.000Z
src/resume/views.py
zhangjie2012/qwerty
56cfae83381df007cffce4c1cbf8f786f44e63b8
[ "MIT" ]
1
2018-11-26T15:23:24.000Z
2018-11-26T15:23:24.000Z
src/resume/views.py
zhangjie2012/qwerty
56cfae83381df007cffce4c1cbf8f786f44e63b8
[ "MIT" ]
1
2020-10-01T11:00:33.000Z
2020-10-01T11:00:33.000Z
from utils.md_render import md_render from utils.logger import logger from utils.http_tools import SuccessResponse from utils.restful import RESTful from .models import Job, Education class ResumeHandler(RESTful): def get(self, request): job_qs = Job.objects.all() job_list = [] for job in...
31.704545
56
0.555556
f706ac41f003b9f5949025c1d816184bd84d4f9a
950
py
Python
programs/pgm16_10.py
danielsunzhongyuan/python_practice
79bc88db1c52ee2f5607f6f9fec1bbacea2804ff
[ "Apache-2.0" ]
null
null
null
programs/pgm16_10.py
danielsunzhongyuan/python_practice
79bc88db1c52ee2f5607f6f9fec1bbacea2804ff
[ "Apache-2.0" ]
null
null
null
programs/pgm16_10.py
danielsunzhongyuan/python_practice
79bc88db1c52ee2f5607f6f9fec1bbacea2804ff
[ "Apache-2.0" ]
null
null
null
# # This file contains the Python code from Program 16.10 of # "Data Structures and Algorithms # with Object-Oriented Design Patterns in Python" # by Bruno R. Preiss. # # Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved. # # http://www.brpreiss.com/books/opus7/programs/pgm16_10.txt # class Graph(Conta...
31.666667
69
0.622105
3d6aae6163dc31a2d99568d42a5b0753137b58cd
3,281
py
Python
tests/views/message/test_db_input.py
QueoLda/django-unicorn
01573cd65282c467bfb0925542b180ffa9efba05
[ "MIT" ]
null
null
null
tests/views/message/test_db_input.py
QueoLda/django-unicorn
01573cd65282c467bfb0925542b180ffa9efba05
[ "MIT" ]
null
null
null
tests/views/message/test_db_input.py
QueoLda/django-unicorn
01573cd65282c467bfb0925542b180ffa9efba05
[ "MIT" ]
null
null
null
import time import orjson import pytest import shortuuid from django_unicorn.utils import dicts_equal, generate_checksum from example.coffee.models import Flavor @pytest.mark.django_db def test_message_db_input_update(client): flavor = Flavor(id=1, name="Enzymatic-Flowery") flavor.save() data = {"flavor...
26.674797
82
0.472112
3f229930bcc23798c156957ffa09b8ee41063403
14
py
Python
projects/bcrypt/test.py
quinn-dougherty/python-on-nix
910d3f6554acd4a4ef0425ebccd31104dccb283c
[ "Unlicense" ]
25
2021-10-30T19:54:59.000Z
2022-03-29T06:11:02.000Z
projects/bcrypt/test.py
quinn-dougherty/python-on-nix
910d3f6554acd4a4ef0425ebccd31104dccb283c
[ "Unlicense" ]
21
2021-10-19T01:09:38.000Z
2022-03-24T16:08:53.000Z
projects/bcrypt/test.py
quinn-dougherty/python-on-nix
910d3f6554acd4a4ef0425ebccd31104dccb283c
[ "Unlicense" ]
3
2022-01-25T20:25:13.000Z
2022-03-08T02:58:50.000Z
import bcrypt
7
13
0.857143
558fa51cc92706593d4d25056d7b2b600a587c81
78,332
py
Python
src/sqlfluff/dialects/dialect_sparksql.py
KulykDmytro/sqlfluff
f0adec2715bc444a897a3df2609ac08fd719a57e
[ "MIT" ]
null
null
null
src/sqlfluff/dialects/dialect_sparksql.py
KulykDmytro/sqlfluff
f0adec2715bc444a897a3df2609ac08fd719a57e
[ "MIT" ]
null
null
null
src/sqlfluff/dialects/dialect_sparksql.py
KulykDmytro/sqlfluff
f0adec2715bc444a897a3df2609ac08fd719a57e
[ "MIT" ]
null
null
null
"""The ANSI Compliant SparkSQL dialect. Inherits from ANSI. Spark SQL ANSI Mode is more restrictive regarding keywords than the Default Mode, and still shares some syntax with hive. Based on: https://spark.apache.org/docs/latest/sql-ref.html https://spark.apache.org/docs/latest/sql-ref-ansi-compliance.html https://gi...
30.70639
137
0.534277
709835a92ae19eda5d42775714ddb2d5eeddb919
3,886
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/network/plugins/modules/network/avi/avi_errorpagebody.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/network/plugins/modules/network/avi/avi_errorpagebody.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/network/plugins/modules/network/avi/avi_errorpagebody.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # from ...
32.115702
123
0.645651
74c47c59e8759797f336932bd5d09cbbf7125c96
8,767
py
Python
yotta/install.py
microbit-foundation/yotta
82d854b43d391abb5a006b05e7beffe7d0d6ffbf
[ "Apache-2.0" ]
176
2015-01-02T07:31:59.000Z
2022-03-21T12:40:02.000Z
yotta/install.py
microbit-foundation/yotta
82d854b43d391abb5a006b05e7beffe7d0d6ffbf
[ "Apache-2.0" ]
549
2015-01-05T16:19:54.000Z
2021-01-15T13:46:42.000Z
yotta/install.py
microbit-foundation/yotta
82d854b43d391abb5a006b05e7beffe7d0d6ffbf
[ "Apache-2.0" ]
84
2015-01-10T21:01:00.000Z
2022-03-24T16:04:42.000Z
# Copyright 2014-2015 ARM Limited # # Licensed under the Apache License, Version 2.0 # See LICENSE file for details. # standard library modules, , , import argparse import logging import os # Component, , represents an installed component, internal from yotta.lib import component # access, , get components, internal ...
40.96729
110
0.662712
2513b0739bc0a6d8ad20d701e7c34e2e755643fd
7,123
py
Python
addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_skins.py
emackey/glTF-Blender-IO
3ab37ba38a3ae483d69a029f979286ded8b9b94b
[ "Apache-2.0" ]
null
null
null
addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_skins.py
emackey/glTF-Blender-IO
3ab37ba38a3ae483d69a029f979286ded8b9b94b
[ "Apache-2.0" ]
null
null
null
addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_skins.py
emackey/glTF-Blender-IO
3ab37ba38a3ae483d69a029f979286ded8b9b94b
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 The glTF-Blender-IO authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
37.098958
129
0.707146
6d8429ae302e6611b0c5d50979d843edf3528fad
3,498
py
Python
src/module_08/code_01.py
abelatnvidia/IntroTF
35216d1c149e2cfbf4a3374a2871d8119e585870
[ "Apache-2.0" ]
null
null
null
src/module_08/code_01.py
abelatnvidia/IntroTF
35216d1c149e2cfbf4a3374a2871d8119e585870
[ "Apache-2.0" ]
null
null
null
src/module_08/code_01.py
abelatnvidia/IntroTF
35216d1c149e2cfbf4a3374a2871d8119e585870
[ "Apache-2.0" ]
null
null
null
import os, json, tensorflow as tf def _int64_feature(value): # make sure to always encapsulate as list if not isinstance(value, list): value = [value] # we're done return tf.train.Feature(int64_list=tf.train.Int64List(value=value)) def _bytes_feature(value): # make sure convert to bytes same pyt...
33
79
0.707833
63446c7a99da759defffb8b6c5b8fda7062a7938
1,589
py
Python
stix_shifter/stix_transmission/src/modules/synchronous_dummy/synchronous_dummy_connector.py
jlstrick83/stix-shifter
7903bb16f58f4ec9b7d22d575aef2a1dee63e815
[ "Apache-2.0" ]
null
null
null
stix_shifter/stix_transmission/src/modules/synchronous_dummy/synchronous_dummy_connector.py
jlstrick83/stix-shifter
7903bb16f58f4ec9b7d22d575aef2a1dee63e815
[ "Apache-2.0" ]
null
null
null
stix_shifter/stix_transmission/src/modules/synchronous_dummy/synchronous_dummy_connector.py
jlstrick83/stix-shifter
7903bb16f58f4ec9b7d22d575aef2a1dee63e815
[ "Apache-2.0" ]
1
2020-10-19T18:19:02.000Z
2020-10-19T18:19:02.000Z
from ..base.base_connector import BaseConnector # from .synchronous_dummy_results_connector import SynchronousDummyResultsConnector # from .synchronous_dummy_ping import SynchronousDummyPing import time class Connector(BaseConnector): def __init__(self): self.is_async = False self.results_connect...
27.877193
86
0.595343
88044b0700c58a2c9be69ebddbfea3021071eecd
913
py
Python
OKT_22_2020/uts_problem_b.py
refeed/PAlgoritmaTRPLA
e0c79c1d57bee0869e2344651718e8cf053c035f
[ "MIT" ]
null
null
null
OKT_22_2020/uts_problem_b.py
refeed/PAlgoritmaTRPLA
e0c79c1d57bee0869e2344651718e8cf053c035f
[ "MIT" ]
null
null
null
OKT_22_2020/uts_problem_b.py
refeed/PAlgoritmaTRPLA
e0c79c1d57bee0869e2344651718e8cf053c035f
[ "MIT" ]
null
null
null
""" PETUNJUK MASUKAN Dua baris simbol yang terdiri dari dua karakter: [] = Kertas, () = Batu, 8< = Gunting. Baris Pertama adalah simbol yang dipilih Pak Blangkon dan baris kedua adalah simbol yang dipilih Pak Semar. PETUNJUK KELUARAN Pemenang suit. "Blangkon" atau "Semar" atau "Seri". """ blangkon = input().strip()...
23.410256
78
0.668127
07f269b58d971c7fec41e572745b1f5ac7a49d28
2,152
py
Python
lib/node_modules/@stdlib/math/base/special/inv/benchmark/python/benchmark.py
ghalimi/stdlib
88f50b88aa945875ef053e2f89d26f9150a18c12
[ "BSL-1.0" ]
3,428
2016-07-14T13:48:46.000Z
2022-03-31T22:32:13.000Z
benchmark/python/benchmark.py
stdlib-js/math-base-special-inv
79958d1a4451cbae162e7ab4a5114cb048d971e5
[ "BSL-1.0" ]
435
2016-04-07T18:12:45.000Z
2022-03-22T15:43:17.000Z
lib/node_modules/@stdlib/math/base/special/inv/benchmark/python/benchmark.py
sthagen/stdlib
042b6215818db0e2a784e72c7e054167dcefcd2a
[ "BSL-1.0" ]
188
2016-11-29T22:58:11.000Z
2022-03-17T06:46:43.000Z
#!/usr/bin/env python # # @license Apache-2.0 # # Copyright (c) 2018 The Stdlib 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 # # ...
21.959184
74
0.631506
0996f24f0cf7672aae1afa5c25e6812228e9d292
2,223
py
Python
env/lib/python3.6/site-packages/telegram/payment/orderinfo.py
rogerscristo/BotFWD
4f2ab1f4f4543c157ca0a79084536c065f74159f
[ "MIT" ]
null
null
null
env/lib/python3.6/site-packages/telegram/payment/orderinfo.py
rogerscristo/BotFWD
4f2ab1f4f4543c157ca0a79084536c065f74159f
[ "MIT" ]
3
2017-09-01T22:18:30.000Z
2017-09-01T22:24:57.000Z
env/lib/python3.6/site-packages/telegram/payment/orderinfo.py
rogerscristo/BotFWD
4f2ab1f4f4543c157ca0a79084536c065f74159f
[ "MIT" ]
3
2018-02-22T22:20:27.000Z
2018-04-22T10:58:24.000Z
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2017 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as publish...
38.327586
99
0.677463
954424045dbabfe3e20a5e20bf553b1e5aab787b
1,079
py
Python
binding-python/runtime/src/test/python/tests/binding/transport/TestPlainMailbox.py
apache/etch
5a875755019a7f342a07c8c368a50e3efb6ae68c
[ "ECL-2.0", "Apache-2.0" ]
9
2015-02-14T15:09:54.000Z
2021-11-10T15:09:45.000Z
binding-python/runtime/src/test/python/tests/binding/support/TestValidator_string.py
apache/etch
5a875755019a7f342a07c8c368a50e3efb6ae68c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
binding-python/runtime/src/test/python/tests/binding/support/TestValidator_string.py
apache/etch
5a875755019a7f342a07c8c368a50e3efb6ae68c
[ "ECL-2.0", "Apache-2.0" ]
14
2015-04-20T10:35:00.000Z
2021-11-10T15:09:35.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 ...
46.913043
65
0.603336
1e5de86e6786d2bd67077f7ef2f300a87d5d77e2
4,760
py
Python
apps/log_extract/migrations/0017_auto_20201111_1050.py
qqqqqie/bk-log
1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1
[ "MIT" ]
75
2021-07-14T09:32:36.000Z
2022-03-31T15:26:53.000Z
apps/log_extract/migrations/0017_auto_20201111_1050.py
qqqqqie/bk-log
1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1
[ "MIT" ]
561
2021-07-14T07:45:47.000Z
2022-03-31T11:41:28.000Z
apps/log_extract/migrations/0017_auto_20201111_1050.py
qqqqqie/bk-log
1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1
[ "MIT" ]
41
2021-07-14T07:39:50.000Z
2022-03-25T09:22:18.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-LOG 蓝鲸日志平台 is licensed under the MIT License. License for BK-LOG 蓝鲸日志平台: ------------------------------------------------...
44.90566
119
0.570798
db4288848aa51e7afbfd3711c6093a890fe110ab
1,930
py
Python
tworaven_apps/configurations/migrations/0005_auto_20171120_1555.py
Mital188/TwoRavens
f84751b33fde26cd379d8120b3c6a6b5ed2c315d
[ "Apache-2.0" ]
20
2017-12-11T07:26:06.000Z
2021-11-22T16:16:20.000Z
tworaven_apps/configurations/migrations/0005_auto_20171120_1555.py
Mital188/TwoRavens
f84751b33fde26cd379d8120b3c6a6b5ed2c315d
[ "Apache-2.0" ]
849
2017-10-20T18:21:18.000Z
2022-02-18T02:45:44.000Z
tworaven_apps/configurations/migrations/0005_auto_20171120_1555.py
Mital188/TwoRavens
f84751b33fde26cd379d8120b3c6a6b5ed2c315d
[ "Apache-2.0" ]
1
2020-05-18T06:02:13.000Z
2020-05-18T06:02:13.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-11-20 20:55 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('configurations', '0004_remove_appconfiguration_d3m_mode'), ] operations = [ ...
47.073171
238
0.658549
7e4267f5e16c9cc549f04165ea2515657520f42a
286
py
Python
api/source/testing/cases/translate_case.py
1pkg/ReRe
83f77d2cece0fb5f6d7b86a395fcca7d4e16459f
[ "MIT" ]
1
2019-12-17T10:31:48.000Z
2019-12-17T10:31:48.000Z
api/source/testing/cases/translate_case.py
c-pkg/ReRe
83f77d2cece0fb5f6d7b86a395fcca7d4e16459f
[ "MIT" ]
null
null
null
api/source/testing/cases/translate_case.py
c-pkg/ReRe
83f77d2cece0fb5f6d7b86a395fcca7d4e16459f
[ "MIT" ]
1
2019-04-29T08:19:36.000Z
2019-04-29T08:19:36.000Z
from .base_case import BaseCase from actions import Translate class TranslateCase(BaseCase): def test_bad_subjects(self): return NotImplemented def test_translate_result(self): return NotImplemented def test_extinct(self): return NotImplemented
19.066667
36
0.734266
579c275e5fa4eea50b321a7be426037c75a1a6f9
15,507
py
Python
mk_resps_from_sim_depths.py
parsotat/NITRATES
f5ce071410795c044ed7c139d6d07fd21e2dba9e
[ "MIT" ]
null
null
null
mk_resps_from_sim_depths.py
parsotat/NITRATES
f5ce071410795c044ed7c139d6d07fd21e2dba9e
[ "MIT" ]
null
null
null
mk_resps_from_sim_depths.py
parsotat/NITRATES
f5ce071410795c044ed7c139d6d07fd21e2dba9e
[ "MIT" ]
null
null
null
import numpy as np import os from astropy.table import Table from astropy.io import fits from numba import jit, njit, prange from scipy import interpolate from math import erf import argparse def cli(): parser = argparse.ArgumentParser() parser.add_argument('--fname', type=str,\ help="depth dist f...
30.34638
98
0.584962
acbfe46c70512008a1e3874b08efb55f1d771b1c
528
py
Python
PythonScript/obtain_access_token.py
oleitao/ScriptsMegaCollection
2ec9fc0c1bdf6d81ce9bd16088a7abbd346f5b1e
[ "CC0-1.0" ]
null
null
null
PythonScript/obtain_access_token.py
oleitao/ScriptsMegaCollection
2ec9fc0c1bdf6d81ce9bd16088a7abbd346f5b1e
[ "CC0-1.0" ]
null
null
null
PythonScript/obtain_access_token.py
oleitao/ScriptsMegaCollection
2ec9fc0c1bdf6d81ce9bd16088a7abbd346f5b1e
[ "CC0-1.0" ]
null
null
null
#https://github.com/reddit-archive/reddit/wiki/OAuth2-Quick-Start-Example import requests import requests.auth client_auth = requests.auth.HTTPBasicAuth('<REDDIT_CLIENT_ID>', '<REDDIT_CLIENT_SECRET>') post_data = {"grant_type": "password", "username": "<REDDIT_CLIENT_USERNAME>", "password": "<REDDIT_CLIENT_PASSWORD>"}...
58.666667
121
0.776515
2bc70726adaa48f5a2d6ae1bc2ef07773b7bd651
5,882
py
Python
tensorflow_probability/python/experimental/inference_gym/targets/logistic_regression.py
bourov/probability
1e4053a0938b4773c3425bcbb07b3f1e5d50c7e2
[ "Apache-2.0" ]
2
2020-12-17T20:43:24.000Z
2021-06-11T22:09:16.000Z
tensorflow_probability/python/experimental/inference_gym/targets/logistic_regression.py
bourov/probability
1e4053a0938b4773c3425bcbb07b3f1e5d50c7e2
[ "Apache-2.0" ]
2
2021-08-25T16:14:51.000Z
2022-02-10T04:47:11.000Z
tensorflow_probability/python/experimental/inference_gym/targets/logistic_regression.py
bourov/probability
1e4053a0938b4773c3425bcbb07b3f1e5d50c7e2
[ "Apache-2.0" ]
1
2020-12-19T13:05:15.000Z
2020-12-19T13:05:15.000Z
# Lint as: python2, python3 # Copyright 2020 The TensorFlow Probability 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 ...
37.464968
91
0.702822
3708acb5d5edd82fa02b2ec138a56c3a69281b10
8,615
py
Python
seirsplus/utilities.py
boazbk/seirsplus
040f167eed92cd947be2bd51749e95c5dc75a797
[ "MIT" ]
null
null
null
seirsplus/utilities.py
boazbk/seirsplus
040f167eed92cd947be2bd51749e95c5dc75a797
[ "MIT" ]
null
null
null
seirsplus/utilities.py
boazbk/seirsplus
040f167eed92cd947be2bd51749e95c5dc75a797
[ "MIT" ]
1
2021-05-27T06:42:31.000Z
2021-05-27T06:42:31.000Z
import sys import numpy import matplotlib.pyplot as pyplot def gamma_dist(mean, coeffvar, N): scale = mean*coeffvar**2 shape = mean/scale return numpy.random.gamma(scale=scale, shape=shape, size=N) def dist_info(dists, names=None, plot=False, bin_size=1, colors=None, reverse_plot=False): dists = [dists] if n...
38.9819
216
0.586651
d2afdcdf348b346003031b19b7ad92ffebb3c6bd
3,785
py
Python
io_scene_halo/file_qua/import_qua.py
AerialDave144/Halo-Asset-Blender-Development-Toolset
f1b0c0b22806ebabaf0126ad864896193c02307f
[ "MIT" ]
36
2020-11-29T04:36:19.000Z
2022-03-16T22:54:45.000Z
io_scene_halo/file_qua/import_qua.py
AerialDave144/Halo-Asset-Blender-Development-Toolset
f1b0c0b22806ebabaf0126ad864896193c02307f
[ "MIT" ]
18
2020-05-24T07:07:55.000Z
2020-08-24T20:34:14.000Z
io_scene_halo/file_qua/import_qua.py
AerialDave144/Halo-Asset-Blender-Development-Toolset
f1b0c0b22806ebabaf0126ad864896193c02307f
[ "MIT" ]
15
2020-12-02T13:28:52.000Z
2022-03-12T00:14:10.000Z
# ##### BEGIN MIT LICENSE BLOCK ##### # # MIT License # # Copyright (c) 2021 Steven Garcia # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation ...
33.495575
144
0.632232
703be92d46c87c14d74b34df90451bf53ce7a31d
419
py
Python
haasomeapi/dataobjects/custombots/dataobjects/CryptoIndexBotIndexResult.py
iamcos/haasomeapi
eac1640cc13e1e7649b8a8d6ed88184722c907c8
[ "MIT" ]
9
2018-07-08T22:40:53.000Z
2022-03-21T20:32:43.000Z
haasomeapi/dataobjects/custombots/dataobjects/CryptoIndexBotIndexResult.py
iamcos/haasomeapi
eac1640cc13e1e7649b8a8d6ed88184722c907c8
[ "MIT" ]
5
2018-08-25T11:48:05.000Z
2019-12-12T19:57:20.000Z
haasomeapi/dataobjects/custombots/dataobjects/CryptoIndexBotIndexResult.py
iamcos/haasomeapi
eac1640cc13e1e7649b8a8d6ed88184722c907c8
[ "MIT" ]
6
2018-08-31T23:49:36.000Z
2022-01-08T04:51:21.000Z
class CryptoIndexBotIndexResult: """ Data Object containing a Crypto Index Bot Index Result :ivar coin: str: :ivar inWallet: float: :ivar indexValue: float: :ivar deactivated: bool: :ivar targetPercentage: float: :ivar currentPercentage: float: """ coin: str inWallet: float ...
22.052632
62
0.682578
357e4f2aa26809c6492fa206d68518ffce49263f
3,484
py
Python
huaweicloud-sdk-swr/huaweicloudsdkswr/v2/model/list_triggers_details_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-swr/huaweicloudsdkswr/v2/model/list_triggers_details_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-swr/huaweicloudsdkswr/v2/model/list_triggers_details_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class ListTriggersDetailsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and t...
25.617647
77
0.561137
2cb76e913c727638b4039c461b158231888b0e32
8,814
py
Python
examples/common/python/connectors/direct/worker_registry_jrpc_impl.py
AvalonRelease5/avalon
0bd78b907fba0896c512678b5b560c3f358e787c
[ "Apache-2.0" ]
null
null
null
examples/common/python/connectors/direct/worker_registry_jrpc_impl.py
AvalonRelease5/avalon
0bd78b907fba0896c512678b5b560c3f358e787c
[ "Apache-2.0" ]
null
null
null
examples/common/python/connectors/direct/worker_registry_jrpc_impl.py
AvalonRelease5/avalon
0bd78b907fba0896c512678b5b560c3f358e787c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 wri...
41.380282
91
0.605854
7efab3e073dfd74b97a4c90023f7a92c4914b053
5,802
py
Python
django/contrib/gis/db/backends/spatialite/creation.py
kennethlove/django
18aed863b46e719d7efaeab624fb8aa4cd62f360
[ "BSD-3-Clause" ]
1
2016-05-09T02:41:07.000Z
2016-05-09T02:41:07.000Z
django/contrib/gis/db/backends/spatialite/creation.py
kennethlove/django
18aed863b46e719d7efaeab624fb8aa4cd62f360
[ "BSD-3-Clause" ]
null
null
null
django/contrib/gis/db/backends/spatialite/creation.py
kennethlove/django
18aed863b46e719d7efaeab624fb8aa4cd62f360
[ "BSD-3-Clause" ]
null
null
null
import os from django.conf import settings from django.core.cache import get_cache from django.core.cache.backends.db import BaseDatabaseCache from django.core.exceptions import ImproperlyConfigured from django.db.backends.sqlite3.creation import DatabaseCreation class SpatiaLiteCreation(DatabaseCreation): def cr...
43.62406
103
0.609962
fbdfaff055df9d41601e93876666382e25abe2ad
1,765
py
Python
crx_python_webdriver/basetestcase.py
carn1x/crx-python-webdriver
913d23c17906852583d957f4b96d4d93e53494de
[ "MIT" ]
1
2015-02-26T01:49:25.000Z
2015-02-26T01:49:25.000Z
crx_python_webdriver/basetestcase.py
carn1x/crx-python-webdriver
913d23c17906852583d957f4b96d4d93e53494de
[ "MIT" ]
null
null
null
crx_python_webdriver/basetestcase.py
carn1x/crx-python-webdriver
913d23c17906852583d957f4b96d4d93e53494de
[ "MIT" ]
null
null
null
import unittest import sys import os from selenium.common.exceptions import NoSuchElementException, NoAlertPresentException from conf import settings def make_blocking(fd): import fcntl flags = fcntl.fcntl(fd, fcntl.F_GETFL) if flags & os.O_NONBLOCK: fcntl.fcntl(fd, fcntl.F_SETFL, flags & ~os.O_...
25.214286
86
0.616431
b4d547bcb3ea33068033f1662dae87657bd198fe
6,841
py
Python
scons/scons-local-2.3.3/SCons/Tool/mwcc.py
pedrishi/pdb2pqr_pypka
74f64948658d021a8bfc8fd78936ce4186ffc88e
[ "BSD-3-Clause" ]
null
null
null
scons/scons-local-2.3.3/SCons/Tool/mwcc.py
pedrishi/pdb2pqr_pypka
74f64948658d021a8bfc8fd78936ce4186ffc88e
[ "BSD-3-Clause" ]
null
null
null
scons/scons-local-2.3.3/SCons/Tool/mwcc.py
pedrishi/pdb2pqr_pypka
74f64948658d021a8bfc8fd78936ce4186ffc88e
[ "BSD-3-Clause" ]
null
null
null
"""SCons.Tool.mwcc Tool-specific initialization for the Metrowerks CodeWarrior compiler. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001 - 2014 The SCons Foundation # # Permission is he...
32.889423
91
0.64742
c6e0506a01cd2b4d8d9f20361218211f5faba7ab
19,851
py
Python
data/projects/pypara/tests/test_monetary_money.py
se2p/artifact-pynguin-ssbse2020
32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6
[ "CC-BY-4.0" ]
3
2020-08-20T10:27:13.000Z
2021-11-02T20:28:16.000Z
data/projects/pypara/tests/test_monetary_money.py
se2p/artifact-pynguin-ssbse2020
32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6
[ "CC-BY-4.0" ]
null
null
null
data/projects/pypara/tests/test_monetary_money.py
se2p/artifact-pynguin-ssbse2020
32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6
[ "CC-BY-4.0" ]
null
null
null
import datetime from decimal import Decimal import pytest # type: ignore from pypara.currencies import Currencies from pypara.monetary import IncompatibleCurrencyError, Money, NoMoney, NoneMoney, Price, SomeMoney ## Define some currencies: eur = Currencies["EUR"] usd = Currencies["USD"] ## Defines some Decimal qua...
44.810384
115
0.644451
2b222b862f8f6a155c62d99558cc7143fd1602ca
408
py
Python
StackOverflow_RegEx.py
amukher3/Problem_solutions
8fa6014a91f295d08cafb989024caa91d99211d9
[ "Apache-2.0" ]
1
2021-12-28T08:58:51.000Z
2021-12-28T08:58:51.000Z
StackOverflow_RegEx.py
amukher3/Coding
a330cb04b5dd5cc1c3cf69249417a71586441bc7
[ "Apache-2.0" ]
null
null
null
StackOverflow_RegEx.py
amukher3/Coding
a330cb04b5dd5cc1c3cf69249417a71586441bc7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue May 5 19:11:41 2020 @author: Abhishek Mukherjee https://stackoverflow.com/questions/61624992/python-regexpt-to-match-a-word-with-several-dots """ import re temp= re.split('\.',str1) temp2=[] [temp2.append(i) for i in temp if i.isalpha()] if ''...
21.473684
94
0.612745
bb2174ede1e77273af83f24f856490466dfa08f1
3,127
py
Python
timeflux/core/worker.py
HerySon/timeflux
01a5a27a3368afe8b0c1da475f84618e11ffec3b
[ "MIT" ]
123
2019-01-09T08:57:39.000Z
2022-03-18T18:59:51.000Z
timeflux/core/worker.py
HerySon/timeflux
01a5a27a3368afe8b0c1da475f84618e11ffec3b
[ "MIT" ]
43
2019-03-08T10:16:39.000Z
2021-06-14T17:17:18.000Z
timeflux/core/worker.py
HerySon/timeflux
01a5a27a3368afe8b0c1da475f84618e11ffec3b
[ "MIT" ]
18
2019-03-26T08:51:21.000Z
2021-10-14T23:10:33.000Z
"""timeflux.core.worker: spawn processes.""" import importlib import logging import signal from multiprocessing import Process from timeflux.core.logging import get_queue, init_worker from timeflux.core.graph import Graph from timeflux.core.scheduler import Scheduler from timeflux.core.registry import Registry from ti...
28.171171
94
0.56316
3b2acae7327584b76053a383a39c2dd837c78369
14,787
py
Python
deepchem/models/tests/test_torch_model.py
deloragaskins/deepchem
234ab699cdb997e5963966a8b6926cb2cda7c064
[ "MIT" ]
3,782
2016-02-21T03:53:11.000Z
2022-03-31T16:10:26.000Z
deepchem/models/tests/test_torch_model.py
deloragaskins/deepchem
234ab699cdb997e5963966a8b6926cb2cda7c064
[ "MIT" ]
2,666
2016-02-11T01:54:54.000Z
2022-03-31T11:14:33.000Z
deepchem/models/tests/test_torch_model.py
deloragaskins/deepchem
234ab699cdb997e5963966a8b6926cb2cda7c064
[ "MIT" ]
1,597
2016-02-21T03:10:08.000Z
2022-03-30T13:21:28.000Z
import os import pytest import deepchem as dc import numpy as np import math import unittest try: import torch import torch.nn.functional as F has_pytorch = True except: has_pytorch = False try: import wandb has_wandb = True except: has_wandb = False @pytest.mark.torch def test_overfit_subclass_model(...
32.933185
83
0.679651
c285f14dd3633d7ae6e34adc48efd0dd3e8c7433
2,098
py
Python
src/py_dss_interface/models/Loads/LoadsV.py
davilamds/py_dss_interface
a447c97787aeac962381db88dd622ccb235eef4b
[ "MIT" ]
null
null
null
src/py_dss_interface/models/Loads/LoadsV.py
davilamds/py_dss_interface
a447c97787aeac962381db88dd622ccb235eef4b
[ "MIT" ]
null
null
null
src/py_dss_interface/models/Loads/LoadsV.py
davilamds/py_dss_interface
a447c97787aeac962381db88dd622ccb235eef4b
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ Created by eniocc at 11/10/2020 """ from py_dss_interface.models.Text.Text import Text from py_dss_interface.models import Bridge from py_dss_interface.models.Base import Base from py_dss_interface.models.Loads.LoadsS import LoadsS class LoadsV(Base): """ This interface can be ...
45.608696
116
0.686368
0f21682116969c50b8c846f41baf71a86ae52533
2,571
py
Python
fleet-ctr/infer.py
wangjiawei04/ElasticRec
2c6414bbfb6e6c2139552f9c7f47731788690766
[ "Apache-2.0" ]
132
2019-12-03T06:48:48.000Z
2022-03-04T17:31:13.000Z
fleet-ctr/infer.py
wangjiawei04/ElasticRec
2c6414bbfb6e6c2139552f9c7f47731788690766
[ "Apache-2.0" ]
3
2019-12-17T03:13:56.000Z
2021-01-12T17:04:46.000Z
fleet-ctr/infer.py
wangjiawei04/ElasticRec
2c6414bbfb6e6c2139552f9c7f47731788690766
[ "Apache-2.0" ]
35
2019-12-04T03:07:55.000Z
2022-03-28T19:27:50.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
35.708333
125
0.748736
f4bacd26f0da8cde510362cbb06e778f730c421b
374
py
Python
kafka-diag/k-swarm.py
egustafson/toolbox
9152c06a32bc777241c7e2c85065dcfe4e5069c7
[ "Apache-2.0" ]
null
null
null
kafka-diag/k-swarm.py
egustafson/toolbox
9152c06a32bc777241c7e2c85065dcfe4e5069c7
[ "Apache-2.0" ]
null
null
null
kafka-diag/k-swarm.py
egustafson/toolbox
9152c06a32bc777241c7e2c85065dcfe4e5069c7
[ "Apache-2.0" ]
null
null
null
""" Usage k-swarm.py <hostname> """ from kafka import SimpleProducer, KafkaClient import logging import sys logging.basicConfig() kafka = KafkaClient(sys.argv[1] + ':9092') kafka.ensure_topic_exists(b'my-topic') producer = SimpleProducer(kafka) for ii in range(100000): msg = "msg-{}".format(ii) producer.se...
16.26087
45
0.705882
605bf097750019bbe77779a01bfd8f9dbc4201ee
781
py
Python
src/114.py
zhaoyi3264/leetcode-solutions
1a3a2d441cdd07a17e80b0ea43b7b266844f530c
[ "MIT" ]
null
null
null
src/114.py
zhaoyi3264/leetcode-solutions
1a3a2d441cdd07a17e80b0ea43b7b266844f530c
[ "MIT" ]
null
null
null
src/114.py
zhaoyi3264/leetcode-solutions
1a3a2d441cdd07a17e80b0ea43b7b266844f530c
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def flatten(self, root: TreeNode) -> None: """ Do not return anything, modify root in-place ...
28.925926
61
0.49936
fd8978289bef7c89712a7f1e4d9fae8e68ac45f6
2,492
py
Python
homework-4-s21-malwake-git/problem2.py
malwake-git/ECE20875
2348f638088359af962bc0d98e965c1ec0132686
[ "Apache-2.0" ]
null
null
null
homework-4-s21-malwake-git/problem2.py
malwake-git/ECE20875
2348f638088359af962bc0d98e965c1ec0132686
[ "Apache-2.0" ]
null
null
null
homework-4-s21-malwake-git/problem2.py
malwake-git/ECE20875
2348f638088359af962bc0d98e965c1ec0132686
[ "Apache-2.0" ]
null
null
null
def stencil(data, f, width): """ perform a stencil using the filter f with width w on list data output the resulting list note that if len(data) = k, len(output) = k - width + 1 f will accept as input a list of size width and return a single number :param data: list :param f: function :...
24.673267
79
0.550963
942556417253a40249d1f21685350a430f09ce3c
3,268
py
Python
regfile/examples/chiprgfExample/sources/rgf1_defs.py
vhnatyk/vlsistuff
0981097bd19a0c482728dcc5048a3615ac9a9a90
[ "MIT" ]
1
2021-04-23T04:08:58.000Z
2021-04-23T04:08:58.000Z
regfile/examples/chiprgfExample/sources/rgf1_defs.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
null
null
null
regfile/examples/chiprgfExample/sources/rgf1_defs.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
null
null
null
ADDR_MAP = {} WIDTH_MAP = {} ronly = 0x10000 ADDR_MAP["ronly"] = 0x10000 WIDTH_MAP["ronly"] = 4 ronly2 = 0x10004 ADDR_MAP["ronly2"] = 0x10004 WIDTH_MAP["ronly2"] = 4 wonly = 0x10008 ADDR_MAP["wonly"] = 0x10008 WIDTH_MAP["wonly"] = 4 one = 0x1000c ADDR_MAP["one"] = 0x1000c WIDTH_MAP["one"] = 4 rega = 0x10010 ADDR_MAP["r...
23.177305
30
0.71481
450942bf49f0dc6e76ff149c28cbd16648dc50d3
12,499
py
Python
sdk/python/pulumi_azure_native/web/web_app_site_extension_slot.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/web_app_site_extension_slot.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/web_app_site_extension_slot.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 ...
37.64759
1,304
0.63037
922d659d333e9814127ac4103db551d466525c0a
172
py
Python
07_lecture_CICD/prime.py
MoStgt/CS50
62bd6eb38bea745c6356e1a8f03adb6ab70e2a37
[ "MIT" ]
null
null
null
07_lecture_CICD/prime.py
MoStgt/CS50
62bd6eb38bea745c6356e1a8f03adb6ab70e2a37
[ "MIT" ]
null
null
null
07_lecture_CICD/prime.py
MoStgt/CS50
62bd6eb38bea745c6356e1a8f03adb6ab70e2a37
[ "MIT" ]
null
null
null
import math def is_prime(n): if n<2: return False for i in range(2, int(math.sqrt(n))+1): if n % i == 0: return False return True
15.636364
43
0.511628
8d1eaddd7d79458e96a5a2805d903d3e428b0419
1,065
py
Python
cmsplugin_cascade/icon/forms.py
aDENTinTIME/djangocms-cascade
c38c1c5ad052dbe233b50fb833ad8e9a919014f2
[ "MIT" ]
null
null
null
cmsplugin_cascade/icon/forms.py
aDENTinTIME/djangocms-cascade
c38c1c5ad052dbe233b50fb833ad8e9a919014f2
[ "MIT" ]
null
null
null
cmsplugin_cascade/icon/forms.py
aDENTinTIME/djangocms-cascade
c38c1c5ad052dbe233b50fb833ad8e9a919014f2
[ "MIT" ]
null
null
null
from django.forms import widgets, CharField, ModelChoiceField from django.utils.translation import ugettext_lazy as _ from cmsplugin_cascade.models import IconFont from entangled.forms import EntangledModelFormMixin def get_default_icon_font(): try: return IconFont.objects.get(is_default=True).id exce...
30.428571
72
0.676056
8ef00b6b469d5102e6dcc7ed6d7ed852a18ecb89
4,890
py
Python
release/scripts/addons/power_sequencer/operators/gap_remove.py
naetherm/Bforartists
4d78856b76544b9eeb49e7dd388b4cf41d58d7e4
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2019-09-16T10:29:19.000Z
2022-02-11T14:43:18.000Z
release/scripts/addons/power_sequencer/operators/gap_remove.py
naetherm/Bforartists
4d78856b76544b9eeb49e7dd388b4cf41d58d7e4
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/addons/power_sequencer/operators/gap_remove.py
naetherm/Bforartists
4d78856b76544b9eeb49e7dd388b4cf41d58d7e4
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# # Copyright (C) 2016-2019 by Nathan Lovato, Daniel Oakey, Razvan Radulescu, and contributors # # This file is part of Power Sequencer. # # Power Sequencer is free software: you can redistribute it and/or modify it under the terms of the # GNU General Public License as published by the Free Software Foundation, either...
35.955882
100
0.645808
bcc7f93bb01538aa1954d7876aa2a74d5e59487c
19,266
py
Python
qiskit_metal/renderers/renderer_base/renderer_base.py
warrench/qiskit-metal
2a918a84f1969ecc75e86598f601ad41013fe409
[ "Apache-2.0" ]
1
2022-01-27T07:11:49.000Z
2022-01-27T07:11:49.000Z
qiskit_metal/renderers/renderer_base/renderer_base.py
warrench/qiskit-metal
2a918a84f1969ecc75e86598f601ad41013fe409
[ "Apache-2.0" ]
null
null
null
qiskit_metal/renderers/renderer_base/renderer_base.py
warrench/qiskit-metal
2a918a84f1969ecc75e86598f601ad41013fe409
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. # # 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...
35.285714
116
0.615437
b1c5833621be43afabc52a6288e75669f34866d2
2,140
py
Python
octopose/nu.py
arunchandarQA/octopose
8227cf432560c72ea9a741991dda1f2ec4bca248
[ "MIT" ]
7
2018-02-14T15:42:52.000Z
2021-09-15T16:37:56.000Z
octopose/nu.py
arunchandarQA/octopose
8227cf432560c72ea9a741991dda1f2ec4bca248
[ "MIT" ]
42
2018-02-14T13:55:27.000Z
2022-02-12T08:34:29.000Z
octopose/nu.py
arunchandarQA/octopose
8227cf432560c72ea9a741991dda1f2ec4bca248
[ "MIT" ]
3
2018-03-14T10:58:14.000Z
2019-11-20T11:18:12.000Z
""" This module calls through to nuget to install NuGet packages""" # MIT License # # Copyright (c) 2018 Huddle # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, includi...
45.531915
106
0.693925
5062c15281fc70daa707352e470aac7e5d364116
8,107
py
Python
apps/authentication/api/views.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
apps/authentication/api/views.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
apps/authentication/api/views.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
from django.contrib.auth.models import Group from guardian.shortcuts import get_objects_for_user from rest_framework import mixins, status, viewsets from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.response import Response from apps.authentication.models import Email, GroupMember, G...
38.240566
103
0.647959
f801c16058f6dc3fc4a17dea54bf8f6dd6379b13
118
py
Python
mesos_master/datadog_checks/mesos_master/__init__.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
mesos_master/datadog_checks/mesos_master/__init__.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
mesos_master/datadog_checks/mesos_master/__init__.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
from . import mesos_master MesosMaster = mesos_master.MesosMaster __version__ = "1.2.0" __all__ = ['mesos_master']
14.75
38
0.754237
786b80a550fac89c9122030b9aedeb473be4a0b4
8,748
py
Python
src/cpu/pred/BranchPredictor.py
LDelhez/Gem5
28ad7cf87c60ad74192caf4ec8771a7060da7dc0
[ "BSD-3-Clause" ]
1
2019-01-16T03:54:01.000Z
2019-01-16T03:54:01.000Z
src/cpu/pred/BranchPredictor.py
LDelhez/Gem5
28ad7cf87c60ad74192caf4ec8771a7060da7dc0
[ "BSD-3-Clause" ]
null
null
null
src/cpu/pred/BranchPredictor.py
LDelhez/Gem5
28ad7cf87c60ad74192caf4ec8771a7060da7dc0
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 Mark D. Hill and David A. Wood # Copyright (c) 2015 The University of Wisconsin # 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 th...
42.673171
79
0.72588
e5ef8cf54c6cc0a2e89a1b1ef26df8e37cf85eeb
2,246
py
Python
CTFd/api/v1/tags.py
atti1a/CTFd
6c5c63d667a17aec159c8e26ea53dccfbc4d0fa3
[ "Apache-2.0" ]
501
2019-11-22T07:19:06.000Z
2022-03-28T07:16:40.000Z
CTFd/api/v1/tags.py
atti1a/CTFd
6c5c63d667a17aec159c8e26ea53dccfbc4d0fa3
[ "Apache-2.0" ]
58
2019-12-02T13:59:15.000Z
2022-02-26T01:53:52.000Z
CTFd/api/v1/tags.py
atti1a/CTFd
6c5c63d667a17aec159c8e26ea53dccfbc4d0fa3
[ "Apache-2.0" ]
128
2019-12-02T11:15:58.000Z
2022-03-27T08:25:59.000Z
from flask import request from flask_restplus import Namespace, Resource from CTFd.models import db, Tags from CTFd.schemas.tags import TagSchema from CTFd.utils.decorators import admins_only tags_namespace = Namespace("tags", description="Endpoint to retrieve Tags") @tags_namespace.route("") class TagList(Resource)...
27.728395
75
0.628673
b30d46ffe7ad65c08c29223595e94079b496c23d
969
py
Python
pdseg/utils/paddle_utils.py
windstamp/PaddleSeg
828808ea306adf2e8b94c291b77e7b7cf558bc2a
[ "ECL-2.0", "Apache-2.0" ]
3
2021-03-17T04:14:06.000Z
2021-07-15T04:11:41.000Z
pdseg/utils/paddle_utils.py
windstamp/PaddleSeg
828808ea306adf2e8b94c291b77e7b7cf558bc2a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
pdseg/utils/paddle_utils.py
windstamp/PaddleSeg
828808ea306adf2e8b94c291b77e7b7cf558bc2a
[ "ECL-2.0", "Apache-2.0" ]
2
2021-08-04T02:48:50.000Z
2021-11-16T08:13:41.000Z
# coding: utf8 # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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 requ...
33.413793
74
0.753354
ce6cc91222ffeb44355cbfe13bdaa81b2f1421ed
4,076
py
Python
python/examples/iree/simple_matmul.py
ingomueller-net/iree-llvm-sandbox
decba32e6c5fffd4dbeccf15f50b65d7c1335500
[ "Apache-2.0" ]
null
null
null
python/examples/iree/simple_matmul.py
ingomueller-net/iree-llvm-sandbox
decba32e6c5fffd4dbeccf15f50b65d7c1335500
[ "Apache-2.0" ]
null
null
null
python/examples/iree/simple_matmul.py
ingomueller-net/iree-llvm-sandbox
decba32e6c5fffd4dbeccf15f50b65d7c1335500
[ "Apache-2.0" ]
null
null
null
import numpy as np import logging from iree import runtime as ireert from iree.compiler import compile_str import iree.compiler.tools import iree.compiler.dialects.transform as transform import iree.compiler.dialects.pdl as pdl import iree.compiler.ir as ir # This example is identical to `simple_matmul_sequential.py...
37.740741
100
0.619235
5abf66f4c23bf81a0a1d4e9ecd9b2658eb037acf
49,306
py
Python
tests/t5/test_modeling_tf_t5.py
bhavika/transformers
65cf33e7e53cd46313f3655f274b3f6ca0fd679d
[ "Apache-2.0" ]
1
2022-03-14T12:05:34.000Z
2022-03-14T12:05:34.000Z
tests/t5/test_modeling_tf_t5.py
bhavika/transformers
65cf33e7e53cd46313f3655f274b3f6ca0fd679d
[ "Apache-2.0" ]
2
2022-03-14T10:13:16.000Z
2022-03-14T11:50:27.000Z
tests/t5/test_modeling_tf_t5.py
bhavika/transformers
65cf33e7e53cd46313f3655f274b3f6ca0fd679d
[ "Apache-2.0" ]
2
2022-03-21T04:32:39.000Z
2022-03-22T01:02:49.000Z
# coding=utf-8 # Copyright 2018 Google T5 Authors and HuggingFace Inc. team. # # 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 requ...
64.284224
7,207
0.727356
657dc5473bb5d09fd8d5e88388ec4de5022cb23c
3,156
py
Python
lessons/3/homework/calculator_finished.py
reedcwilson/programming-fundamentals
d381bae21a3c16ba6fe3bf214557ff9a8d932ed0
[ "MIT" ]
null
null
null
lessons/3/homework/calculator_finished.py
reedcwilson/programming-fundamentals
d381bae21a3c16ba6fe3bf214557ff9a8d932ed0
[ "MIT" ]
null
null
null
lessons/3/homework/calculator_finished.py
reedcwilson/programming-fundamentals
d381bae21a3c16ba6fe3bf214557ff9a8d932ed0
[ "MIT" ]
2
2015-06-18T02:24:12.000Z
2018-07-14T04:56:54.000Z
#!/usr/bin/env python import os import sys ## Write functions for each operation def add(first, second): return first + second def add_three(first, second, third): return operate_three(first, second, third, add) def subtract(first, second): return first - second def subtract_three(first, second, third): ...
25.658537
83
0.703739
985d75c26a39d5f8ad8e172571965dcd86a6008b
1,025
py
Python
backend/tests/libs/lib_cinq_auditor_aws_required_tags.py
MrSecure/cloud-inquisitor
d81ee2d348e09361cb5f959f28b11e630a28989c
[ "Apache-2.0" ]
null
null
null
backend/tests/libs/lib_cinq_auditor_aws_required_tags.py
MrSecure/cloud-inquisitor
d81ee2d348e09361cb5f959f28b11e630a28989c
[ "Apache-2.0" ]
1
2018-10-03T09:44:38.000Z
2018-10-03T09:44:38.000Z
backend/tests/libs/lib_cinq_auditor_aws_required_tags.py
MrSecure/cloud-inquisitor
d81ee2d348e09361cb5f959f28b11e630a28989c
[ "Apache-2.0" ]
null
null
null
from io import StringIO from cloud_inquisitor.config import dbconfig, DBCJSON from cloud_inquisitor.constants import NS_AUDITOR_REQUIRED_TAGS VALID_TAGSET = [ {'Key': x, 'Value': 'value@example.com'} for x in dbconfig.get('required_tags', NS_AUDITOR_REQUIRED_TAGS, []) ] IGNORE_TAGSET = [{'Key': dbconfig.get('aud...
33.064516
113
0.773659
aa24e7ee0cfb9805933671312c6e99c6621d9d1e
973
py
Python
base/migrations/0001_initial.py
SergioVzqz/Devmorize
e4e5ddaf6b8d0f66873e345e986661daae504cf7
[ "MIT" ]
null
null
null
base/migrations/0001_initial.py
SergioVzqz/Devmorize
e4e5ddaf6b8d0f66873e345e986661daae504cf7
[ "MIT" ]
null
null
null
base/migrations/0001_initial.py
SergioVzqz/Devmorize
e4e5ddaf6b8d0f66873e345e986661daae504cf7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-12-07 04:30 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...
33.551724
141
0.63001
c794ccedb95c166e23ff048e439595b73354d6cc
12,590
py
Python
tests/tensorflow_cloud/containerize_test.py
lgeiger/cloud
99890b34d1a78a358d7958fa596fbc5633db5484
[ "Apache-2.0" ]
null
null
null
tests/tensorflow_cloud/containerize_test.py
lgeiger/cloud
99890b34d1a78a358d7958fa596fbc5633db5484
[ "Apache-2.0" ]
null
null
null
tests/tensorflow_cloud/containerize_test.py
lgeiger/cloud
99890b34d1a78a358d7958fa596fbc5633db5484
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC. 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...
33.663102
88
0.614376
14ef003d15190797ddc5315393b41267e7d36658
250
py
Python
test_iperf.py
Xiaoyu-Xing/CS3640Network-Applications
23a9d451ae91f64b53a28f5641d477ac30367808
[ "MIT" ]
null
null
null
test_iperf.py
Xiaoyu-Xing/CS3640Network-Applications
23a9d451ae91f64b53a28f5641d477ac30367808
[ "MIT" ]
null
null
null
test_iperf.py
Xiaoyu-Xing/CS3640Network-Applications
23a9d451ae91f64b53a28f5641d477ac30367808
[ "MIT" ]
null
null
null
def test_iperf(em_net, traffic_properties): source = traffic_properties.get('source') destination = traffic_properties.get('destination') return Mininet.iperf(em_net, hosts=[source,destination],seconds=traffic_properties.get('time'))
50
99
0.764
ac2b904d17c8593c5a54b54c86cdf8909bdd59a3
7,397
py
Python
bench/benchmark_loads.py
jaemk/orjson
129a821533ca8a33eaba64ec0aaeac2ee0c202fb
[ "Apache-2.0", "MIT" ]
null
null
null
bench/benchmark_loads.py
jaemk/orjson
129a821533ca8a33eaba64ec0aaeac2ee0c202fb
[ "Apache-2.0", "MIT" ]
null
null
null
bench/benchmark_loads.py
jaemk/orjson
129a821533ca8a33eaba64ec0aaeac2ee0c202fb
[ "Apache-2.0", "MIT" ]
null
null
null
# SPDX-License-Identifier: (Apache-2.0 OR MIT) from json import dumps as json_dumps from json import loads as json_loads from orjson import dumps as orjson_dumps from orjson import loads as orjson_loads from rapidjson import dumps as rapidjson_dumps from rapidjson import loads as rapidjson_loads from simplejson impo...
34.087558
57
0.726646
0a4db237dc32b5d091694e059164577d8adba25b
2,060
py
Python
src/ml_models/model_make.py
kackey0-1/project_ai
8b309eb1e0cbc46e4a9b134adcd0b44e5657f709
[ "MIT" ]
1
2022-02-24T16:24:56.000Z
2022-02-24T16:24:56.000Z
src/ml_models/model_make.py
kackey0-1/project_ai
8b309eb1e0cbc46e4a9b134adcd0b44e5657f709
[ "MIT" ]
2
2021-12-27T15:12:09.000Z
2022-02-06T14:14:36.000Z
src/ml_models/model_make.py
kackey0-1/project_ai
8b309eb1e0cbc46e4a9b134adcd0b44e5657f709
[ "MIT" ]
null
null
null
from keras.datasets import mnist from keras.layers import Dense, Dropout, Flatten, Activation from keras.layers import Conv2D, MaxPooling2D from keras.models import Sequential from keras.utils.np_utils import to_categorical # from keras.utils.vis_utils import plot_model import numpy as np import matplotlib.pyplot as p...
25.432099
79
0.730583
61dcb688d7dead2ac848f4db3382b961b8947a7e
1,084
py
Python
sdks/python/test/test_v2MissingSymbolCrashGroupsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_v2MissingSymbolCrashGroupsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_v2MissingSymbolCrashGroupsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
27.1
133
0.760148
4dc6f19452f1928a12cb21256eb1100495d990ef
2,539
py
Python
session11.py
sahanashetty31/session_11_epai3_assignment
4b2d7f299fea2d3cb6f8cb1c90804f3cc4976647
[ "MIT" ]
null
null
null
session11.py
sahanashetty31/session_11_epai3_assignment
4b2d7f299fea2d3cb6f8cb1c90804f3cc4976647
[ "MIT" ]
null
null
null
session11.py
sahanashetty31/session_11_epai3_assignment
4b2d7f299fea2d3cb6f8cb1c90804f3cc4976647
[ "MIT" ]
null
null
null
import math from functools import lru_cache class Polygon: def __init__(self, n, R): if n < 3: raise ValueError('Polygon must have at least 3 vertices.') self._n = n self._R = R def __repr__(self): return f'Polygon(n={self._n}, R={self._R})' @property def c...
25.39
102
0.568334
fe65a76f43abc8e714edda32827fb4a6cfa2e1f3
1,077
py
Python
test/test_app.py
juaneml/IV_1819_Proyecto
33c5b10bee15c937c29db63752f604d546232d17
[ "MIT" ]
1
2019-01-22T11:43:46.000Z
2019-01-22T11:43:46.000Z
test/test_app.py
juaneml/IV_1819_Proyecto
33c5b10bee15c937c29db63752f604d546232d17
[ "MIT" ]
34
2018-10-01T07:06:01.000Z
2019-02-13T09:27:23.000Z
test/test_app.py
juaneml/IV_1819_Proyecto
33c5b10bee15c937c29db63752f604d546232d17
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest, json, requests import sys from requests import * sys.path.append('../src/') url = 'https://proyecto-iv.herokuapp.com/' class testProyecto(unittest.TestCase): def test_url_raiz(self): response = requests.get(url) self.assertEqual(response.json()['status'],'OK...
32.636364
114
0.675023
5f7341d1af34c450f10f2c9a9df5425e8e006e37
870
py
Python
algorithms/different-ways-to-add-parentheses.py
Chronoviser/leetcode-1
65ee0504d64c345f822f216fef6e54dd62b8f858
[ "MIT" ]
41
2018-07-03T07:35:30.000Z
2021-09-25T09:33:43.000Z
algorithms/different-ways-to-add-parentheses.py
Chronoviser/leetcode-1
65ee0504d64c345f822f216fef6e54dd62b8f858
[ "MIT" ]
2
2018-07-23T10:50:11.000Z
2020-10-06T07:34:29.000Z
algorithms/different-ways-to-add-parentheses.py
Chronoviser/leetcode-1
65ee0504d64c345f822f216fef6e54dd62b8f858
[ "MIT" ]
7
2018-07-06T13:43:18.000Z
2020-10-06T02:29:57.000Z
class Solution: def diffWaysToCompute(self, input): """ :type input: str :rtype: List[int] """ result = [] for i in range(len(input)): if input[i] == '+' or input[i] == '-' or input[i] == '*': left = self.diffWaysToCompute(input[:i]) ...
36.25
69
0.411494
da1a65dc1a9188bb179d5bb58e03dfb2228b8378
1,842
py
Python
tests/integration/test_warcraft_client_creature.py
tehmufifnman/BattleMuffin-Python
f0bb5ee7024624191b33441aeecf3fb29570abe7
[ "MIT" ]
7
2020-05-15T18:09:23.000Z
2021-03-08T16:10:37.000Z
tests/integration/test_warcraft_client_creature.py
tehmufifnman/BattleMuffin-Python
f0bb5ee7024624191b33441aeecf3fb29570abe7
[ "MIT" ]
2
2020-04-20T04:42:37.000Z
2020-10-28T23:27:07.000Z
tests/integration/test_warcraft_client_creature.py
tehmufifnman/BattleMuffin-Python
f0bb5ee7024624191b33441aeecf3fb29570abe7
[ "MIT" ]
2
2020-05-18T06:58:53.000Z
2021-03-08T16:10:27.000Z
import os from battlemuffin.clients.warcraft_client import WarcraftClient from battlemuffin.config.region_config import Locale, Region def test_get_creature_families_index(snapshot): client = WarcraftClient( os.getenv("CLIENT_ID"), os.getenv("CLIENT_SECRET"), Region.us, Locale.en_US ) response = ...
30.196721
83
0.724756
a5e7418dbebb0cb450ddf91940fecb4f48028cd1
1,149
py
Python
unit_tests/test_reports.py
teatauri/Collab-2-Panopto
84972d3c5b32e741149dd857b284ca02cdc32e59
[ "MIT" ]
2
2021-07-27T12:08:33.000Z
2021-12-18T23:00:51.000Z
unit_tests/test_reports.py
teatauri/Collab-2-Panopto
84972d3c5b32e741149dd857b284ca02cdc32e59
[ "MIT" ]
2
2021-07-29T11:22:58.000Z
2021-07-29T11:25:12.000Z
unit_tests/test_reports.py
teatauri/Collab-2-Panopto
84972d3c5b32e741149dd857b284ca02cdc32e59
[ "MIT" ]
1
2022-01-18T12:47:48.000Z
2022-01-18T12:47:48.000Z
import pytest import os from src.views import Reports BASE = os.getcwd() + "/unit_tests/unit_test_data" recording_data = { "recording_id": "19ceeea8cb984bd79a6d...967af9db12", "recording_name": "testvid 2 - public_2", "duration": 119000, "storage_size": 13837851, "created": "2021-05-19T17:11:45.3...
18.532258
79
0.657963
5a59ec924f47a85dc833205098c1b79ee180ad16
6,762
py
Python
train.py
psethwick/Fast-Neural-Style-Transfer
414b0a2ab08e01f9238671589a7794efad68a44d
[ "MIT" ]
null
null
null
train.py
psethwick/Fast-Neural-Style-Transfer
414b0a2ab08e01f9238671589a7794efad68a44d
[ "MIT" ]
null
null
null
train.py
psethwick/Fast-Neural-Style-Transfer
414b0a2ab08e01f9238671589a7794efad68a44d
[ "MIT" ]
null
null
null
import argparse import os import sys import random from PIL import Image import numpy as np import torch import glob from torch.optim import Adam from torch.utils.data import DataLoader from torchvision import datasets from torchvision.utils import save_image from models import TransformerNet, VGG16 from utils import *...
43.909091
128
0.657646
2b7089a1323a1471ceac62c665589df3b5adab95
32,241
py
Python
ssg/build_yaml.py
manywho/content
8f4641af53d7cc7d0e42699ed95553943e5e6af1
[ "BSD-3-Clause" ]
null
null
null
ssg/build_yaml.py
manywho/content
8f4641af53d7cc7d0e42699ed95553943e5e6af1
[ "BSD-3-Clause" ]
null
null
null
ssg/build_yaml.py
manywho/content
8f4641af53d7cc7d0e42699ed95553943e5e6af1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import os import os.path import datetime import sys import yaml from .constants import XCCDF_PLATFORM_TO_CPE from .constants import PRODUCT_TO_CPE_MAPPING from .rules import get_rule_dir_id, get_rule_dir_yaml, is_rule_dir from .checks impo...
36.762828
116
0.599051
a5518f4d60bd1b10da48dbb0d6adf170d7eba04a
1,511
py
Python
custom/icds_reports/mobile_views.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
custom/icds_reports/mobile_views.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
custom/icds_reports/mobile_views.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
from django.http import HttpResponseRedirect from django.urls import reverse from django.utils.decorators import method_decorator from django.views.decorators.clickjacking import xframe_options_exempt from django.views.generic import TemplateView from corehq.apps.hqwebapp import views as hqwebapp_views from corehq.app...
35.97619
91
0.765056
766d48729fd1d56652ed41e87fd978aae8cd29fe
2,124
py
Python
chips_v/output_stream.py
dawsonjon/chips_v
ed2cb9f7da76c4d4a05812575d062cdb0511656b
[ "MIT" ]
6
2020-09-16T07:38:52.000Z
2021-05-13T20:26:25.000Z
chips_v/output_stream.py
dawsonjon/chips_v
ed2cb9f7da76c4d4a05812575d062cdb0511656b
[ "MIT" ]
null
null
null
chips_v/output_stream.py
dawsonjon/chips_v
ed2cb9f7da76c4d4a05812575d062cdb0511656b
[ "MIT" ]
2
2020-10-12T14:52:07.000Z
2021-03-29T16:49:46.000Z
""" A bus slave that occupies a single word address provides an axi-like streaming output e.g. for connection to UART""" from baremetal import * from chips_v.utils import shex class OutputStream: def __init__(self, name): self.data = Unsigned(32).wire() self.ready = Boolean().wire() self...
31.235294
77
0.579567
d8e30391c59f1fc1aa64dc3ef100974915a38b24
3,314
py
Python
tfx/tools/cli/commands/run_test.py
yongsheng268/tfx
6283fffb3ac81e2f213b4895fbe19623dfa9c4f5
[ "Apache-2.0" ]
null
null
null
tfx/tools/cli/commands/run_test.py
yongsheng268/tfx
6283fffb3ac81e2f213b4895fbe19623dfa9c4f5
[ "Apache-2.0" ]
null
null
null
tfx/tools/cli/commands/run_test.py
yongsheng268/tfx
6283fffb3ac81e2f213b4895fbe19623dfa9c4f5
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. 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...
34.884211
80
0.683464