hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a16145307d730b19850dc1fc80caf2b1aafe3c9
18,708
py
Python
databuilder/publisher/neo4j_csv_publisher.py
fBedecarrats/amundsendatabuilder
69bf5b77af11c770641724f2c311dd13b6ea8b8b
[ "Apache-2.0" ]
null
null
null
databuilder/publisher/neo4j_csv_publisher.py
fBedecarrats/amundsendatabuilder
69bf5b77af11c770641724f2c311dd13b6ea8b8b
[ "Apache-2.0" ]
null
null
null
databuilder/publisher/neo4j_csv_publisher.py
fBedecarrats/amundsendatabuilder
69bf5b77af11c770641724f2c311dd13b6ea8b8b
[ "Apache-2.0" ]
null
null
null
import copy import csv import ctypes import logging import time from os import listdir from os.path import isfile, join from string import Template import six from neo4j.v1 import GraphDatabase, Transaction # noqa: F401 from pyhocon import ConfigFactory # noqa: F401 from pyhocon import ConfigTree # noqa: F401 from ...
40.493506
117
0.618345
4a16159489a44aea91ac7952de2da0111dad0378
7,543
py
Python
landmark_regression/lib/dataset/PEdataset.py
Aurelio93/satellite-pose-estimation
46957a9bc9f204d468f8fe3150593b3db0f0726a
[ "MIT" ]
24
2019-09-05T04:05:58.000Z
2022-02-06T01:34:11.000Z
landmark_regression/lib/dataset/PEdataset.py
Aurelio93/satellite-pose-estimation
46957a9bc9f204d468f8fe3150593b3db0f0726a
[ "MIT" ]
2
2020-07-30T07:04:22.000Z
2022-03-14T06:40:49.000Z
landmark_regression/lib/dataset/PEdataset.py
Aurelio93/satellite-pose-estimation
46957a9bc9f204d468f8fe3150593b3db0f0726a
[ "MIT" ]
6
2020-02-04T06:34:32.000Z
2021-12-10T03:23:51.000Z
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # ------------------------------------------------------------------------------ from __future__ import absolute_import from __futu...
35.247664
80
0.513986
4a1615ce791431662118406eeadd34ecb19a9eae
4,730
py
Python
src/vallenae/features/acoustic_emission.py
vallen-systems/pyVallenAE
0e1c712c055ea5c4e7cb4373a2bf73f33c2b886d
[ "MIT" ]
10
2020-01-30T15:34:51.000Z
2022-03-11T07:49:31.000Z
src/vallenae/features/acoustic_emission.py
vallen-systems/pyVallenAE
0e1c712c055ea5c4e7cb4373a2bf73f33c2b886d
[ "MIT" ]
1
2020-10-30T16:25:11.000Z
2020-11-05T19:51:51.000Z
src/vallenae/features/acoustic_emission.py
vallen-systems/pyVallenAE
0e1c712c055ea5c4e7cb4373a2bf73f33c2b886d
[ "MIT" ]
5
2020-02-08T04:43:03.000Z
2022-02-23T13:52:00.000Z
import math from typing import Optional import numpy as np from numba import njit @njit def peak_amplitude(data: np.ndarray) -> float: """ Compute maximum absolute amplitude. Args: data: Input array Returns: Peak amplitude of the input array """ max_amplitude = 0 for sam...
23.415842
94
0.627273
4a1617377b43ae9e472527396bf2394879bb9cc9
2,457
py
Python
streak-podium/streak-podium.py
supermitch/streak-podium
3b4aba92f6b138548afe87c204d507cd2211c2ef
[ "MIT" ]
1
2015-08-17T16:57:57.000Z
2015-08-17T16:57:57.000Z
streak-podium/streak-podium.py
supermitch/streak-podium
3b4aba92f6b138548afe87c204d507cd2211c2ef
[ "MIT" ]
1
2015-08-29T04:58:43.000Z
2015-09-10T04:22:13.000Z
streak-podium/streak-podium.py
supermitch/streak-podium
3b4aba92f6b138548afe87c204d507cd2211c2ef
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import collections import os import json import parse import read import render def setup_args(): """ Add and return command line arguments. """ parser = argparse.ArgumentParser('Streak Podium') parser.add_argument('-f', '--file', help='member list input file...
29.60241
94
0.60928
4a16176ce7e2dbb7656fad5d84c80f3d89fe1cc9
2,349
py
Python
drawer.py
h3nnn4n/lambada-brot
50ec98544dfb4daa36c7781492c336d2fb822c59
[ "MIT" ]
null
null
null
drawer.py
h3nnn4n/lambada-brot
50ec98544dfb4daa36c7781492c336d2fb822c59
[ "MIT" ]
null
null
null
drawer.py
h3nnn4n/lambada-brot
50ec98544dfb4daa36c7781492c336d2fb822c59
[ "MIT" ]
null
null
null
import json from multiprocessing import Pool import requests ENDPOINT = "https://4j10ejf71g.execute-api.us-east-1.amazonaws.com/mandel" def remote_mandel(request): response = requests.post(ENDPOINT, json=request) data = json.loads(response.content) ix = request["ix"] iy = request["iy"] print(f"[...
25.258065
74
0.515113
4a1618ad8a6a434b8df56f7ecb8f2882b1259e6c
315
py
Python
verde/tests/utils.py
jobar8/verde
66020d28d3e1e3990fcaa888766ff05c62464100
[ "BSD-3-Clause" ]
1
2019-11-19T20:24:02.000Z
2019-11-19T20:24:02.000Z
verde/tests/utils.py
lheagy/verde
24416cfc8388c6c7f3c0867dcd2ad3fdca37bb1b
[ "BSD-3-Clause" ]
null
null
null
verde/tests/utils.py
lheagy/verde
24416cfc8388c6c7f3c0867dcd2ad3fdca37bb1b
[ "BSD-3-Clause" ]
null
null
null
""" Testing utilities. """ import pytest def requires_numba(function): """ Skip the decorated test if numba is not installed. """ try: import numba except ImportError: numba = None mark = pytest.mark.skipif(numba is None, reason="requires numba") return mark(function)
18.529412
69
0.64127
4a161aa6adffbcff13ff1b9aeef862acd97718a5
2,592
py
Python
Android/NDK/android-ndk-r20b-win/build/ldflags_to_sanitizers.py
X018/CCTOOL
989af4d7edab82bf540400eb72eca4e7447d722c
[ "MIT" ]
5
2020-09-08T03:08:51.000Z
2021-05-27T20:51:08.000Z
Android/NDK/android-ndk-r20b-win/build/ldflags_to_sanitizers.py
X018/CCTOOL
989af4d7edab82bf540400eb72eca4e7447d722c
[ "MIT" ]
null
null
null
Android/NDK/android-ndk-r20b-win/build/ldflags_to_sanitizers.py
X018/CCTOOL
989af4d7edab82bf540400eb72eca4e7447d722c
[ "MIT" ]
3
2020-11-10T06:20:25.000Z
2021-05-24T07:21:59.000Z
#!/usr/bin/env python # # Copyright (C) 2018 The Android Open Source Project # # 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 req...
35.027027
77
0.665509
4a161ac06b4487ed78c41b606469899418f5ab80
12,769
py
Python
django_auth_adfs/backend.py
InnopolisSport/django-auth-adfs
306efd63d41f2fe858db5ab620d7bca6976b10e3
[ "BSD-2-Clause" ]
null
null
null
django_auth_adfs/backend.py
InnopolisSport/django-auth-adfs
306efd63d41f2fe858db5ab620d7bca6976b10e3
[ "BSD-2-Clause" ]
null
null
null
django_auth_adfs/backend.py
InnopolisSport/django-auth-adfs
306efd63d41f2fe858db5ab620d7bca6976b10e3
[ "BSD-2-Clause" ]
null
null
null
import logging import jwt from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend from django.contrib.auth.models import Group from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist, PermissionDenied from django_auth_adfs import signals from django_aut...
42.003289
117
0.585089
4a161af4c07517a355f97a384d6cc3a26fc93265
9,589
py
Python
jobviewer.py
jansende/Igor
c9ada05fdbe052e799f27de94b872858a67da3d6
[ "MIT" ]
null
null
null
jobviewer.py
jansende/Igor
c9ada05fdbe052e799f27de94b872858a67da3d6
[ "MIT" ]
null
null
null
jobviewer.py
jansende/Igor
c9ada05fdbe052e799f27de94b872858a67da3d6
[ "MIT" ]
null
null
null
try: import readline except ImportError: print('You need to install readline.') print('Under Windows use: pip install pyreadline') raise import cmd import glob import json import os import os.path import socket import subprocess import threading import time import copy from classes.job imp...
40.804255
136
0.564814
4a161cde8e51265eeeb6c569d74e0fa79114a06b
20,170
py
Python
python/cohorte/repositories/java/bundles.py
isandlaTech/cohorte-runtime
686556cdde20beba77ae202de9969be46feed5e2
[ "Apache-2.0" ]
6
2015-04-28T16:51:08.000Z
2017-07-12T11:29:00.000Z
python/cohorte/repositories/java/bundles.py
isandlaTech/cohorte-runtime
686556cdde20beba77ae202de9969be46feed5e2
[ "Apache-2.0" ]
29
2015-02-24T11:11:26.000Z
2017-08-25T08:30:18.000Z
qualifier/deploy/cohorte-home/repo/cohorte/repositories/java/bundles.py
isandlaTech/cohorte-devtools
9ba9021369188d2f0ad5c845ef242fd5a7097b57
[ "Apache-2.0" ]
1
2015-08-24T13:23:43.000Z
2015-08-24T13:23:43.000Z
#!/usr/bin/python # -- Content-Encoding: UTF-8 -- """ Java JARs repository utility module **TODO:** * Enhance API & code :author: Thomas Calmant :license: Apache Software License 2.0 .. Copyright 2014 isandlaTech Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file ...
33.842282
80
0.564155
4a161d90865a00dee99364f1939e33fd4038fcf4
1,441
py
Python
CTFd/admin/pages.py
xmsec/LanCTFD
77659cca2aae4ab68cf25ddb5a7cbe63f597a9af
[ "Apache-2.0" ]
3
2020-05-13T14:02:11.000Z
2022-03-12T08:09:34.000Z
CTFd/admin/pages.py
xmsec/LanCTFD
77659cca2aae4ab68cf25ddb5a7cbe63f597a9af
[ "Apache-2.0" ]
6
2019-01-26T15:06:07.000Z
2019-02-11T01:48:20.000Z
CTFd/admin/pages.py
xmsec/LanCTFD
77659cca2aae4ab68cf25ddb5a7cbe63f597a9af
[ "Apache-2.0" ]
4
2019-08-01T02:16:44.000Z
2022-03-12T08:09:35.000Z
from flask import current_app as app, render_template, request, redirect, jsonify, url_for, Blueprint from CTFd.utils.decorators import admins_only from CTFd.models import db, Teams, Solves, Awards, Challenges, Fails, Flags, Tags, Files, Tracking, Pages, Configs from CTFd.schemas.pages import PageSchema from CTFd.utils...
32.022222
114
0.734906
4a161e33023aa212516d3fa34d0aece3fbdf6d78
24,765
py
Python
salt/states/cron.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
1
2022-02-09T06:40:14.000Z
2022-02-09T06:40:14.000Z
salt/states/cron.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
null
null
null
salt/states/cron.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
4
2020-11-04T06:28:05.000Z
2022-02-09T10:54:49.000Z
# -*- coding: utf-8 -*- ''' Management of cron, the Unix command scheduler ============================================== Cron declarations require a number of parameters. The following are the parameters used by Salt to define the various timing values for a cron job: * ``minute`` * ``hour`` * ``daymonth`` * ``month...
32.457405
94
0.547264
4a161e8f3410bacaf7d7ceac4abf9ee0e8a4b1d2
411
py
Python
batch_convert.py
mathfreak231/pbrchase
b50d5aa6ccf7366c3b605bb6a5b31e3fca54cd0f
[ "MIT" ]
9
2015-07-19T05:37:59.000Z
2020-10-02T20:26:11.000Z
batch_convert.py
mathfreak231/pbrchase
b50d5aa6ccf7366c3b605bb6a5b31e3fca54cd0f
[ "MIT" ]
8
2015-07-19T23:52:14.000Z
2020-06-05T01:45:28.000Z
batch_convert.py
mathfreak231/pbrchase
b50d5aa6ccf7366c3b605bb6a5b31e3fca54cd0f
[ "MIT" ]
7
2016-03-21T03:37:45.000Z
2021-12-22T10:26:54.000Z
import glob import subprocess import os.path def main(): for filename in glob.glob('sounds/*/*.wav'): output_filename = os.path.splitext(filename)[0] + '.ogg' subprocess.check_call(['sox', filename, output_filename]) output_filename = os.path.splitext(filename)[0] + '.mp3' subproc...
24.176471
65
0.659367
4a16203d568097184063f2c90af08e28ab0362d8
754
py
Python
tz_detect/views.py
ben-hoover/django-tz-detect
91450a2aaef608106a6265b4a53d12372db030d5
[ "MIT" ]
null
null
null
tz_detect/views.py
ben-hoover/django-tz-detect
91450a2aaef608106a6265b4a53d12372db030d5
[ "MIT" ]
null
null
null
tz_detect/views.py
ben-hoover/django-tz-detect
91450a2aaef608106a6265b4a53d12372db030d5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.http import HttpResponse from django.views.generic import View class SetOffsetView(View): http_method_names = ['post'] def post(self, request, *args, **kwargs): tz = request.POST.get('tz', None) if not tz: offset = request.POST.get('offset', No...
31.416667
82
0.582228
4a162047fbfae8b1ca98a08632d1010b3dc69c02
6,490
py
Python
pybind/nos/v6_0_2c/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/neighbor/af_ipv4_neighbor_peergroup_holder/af_ipv4_neighbor_peergroup/af_neighbor_capability/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v6_0_2c/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/neighbor/af_ipv4_neighbor_peergroup_holder/af_ipv4_neighbor_peergroup/af_neighbor_capability/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v6_0_2c/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/neighbor/af_ipv4_neighbor_peergroup_holder/af_ipv4_neighbor_peergroup/af_neighbor_capability/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
52.33871
490
0.720339
4a162362c6b6f05422a273caeb1a57dcc3b2fad0
31,377
py
Python
tests/template_tests/syntax_tests/i18n/test_blocktranslate.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
16
2019-08-10T12:24:06.000Z
2020-05-21T09:11:14.000Z
tests/template_tests/syntax_tests/i18n/test_blocktranslate.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
12
2019-08-10T11:55:29.000Z
2020-05-21T04:46:30.000Z
tests/template_tests/syntax_tests/i18n/test_blocktranslate.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
3
2019-08-20T13:29:34.000Z
2020-01-30T22:05:10.000Z
import inspect import os from functools import partial, wraps from asgiref.local import Local from django.template import Context, Template, TemplateSyntaxError from django.template.base import Token, TokenType from django.templatetags.i18n import BlockTranslateNode from django.test import SimpleTestCase, override_se...
35.736902
88
0.527393
4a1623ac8e48b182ccca13602c85402a668b2cfa
2,781
py
Python
test.py
larsbratholm/ddr
1d9690c73553aeb4287694084af781e0944c0190
[ "MIT" ]
1
2020-03-17T03:27:18.000Z
2020-03-17T03:27:18.000Z
test.py
larsbratholm/ddr
1d9690c73553aeb4287694084af781e0944c0190
[ "MIT" ]
null
null
null
test.py
larsbratholm/ddr
1d9690c73553aeb4287694084af781e0944c0190
[ "MIT" ]
1
2020-03-17T02:58:32.000Z
2020-03-17T02:58:32.000Z
# Full example for my blog post at: # https://danijar.com/building-variational-auto-encoders-in-tensorflow/ import numpy as np import matplotlib.pyplot as plt import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data tfd = tf.contrib.distributions def make_encoder(data, code_size): x = tf...
33.107143
79
0.701546
4a162453ab5fbb672465b5b22cb15b986749aa83
24,739
py
Python
mathics/builtin/numbertheory.py
JoseCarlosGarcia95/Mathics
1927ada93c5ce2d8cbe731731ab1f55cd5527467
[ "Apache-2.0" ]
1
2019-10-10T09:56:06.000Z
2019-10-10T09:56:06.000Z
mathics/builtin/numbertheory.py
JoseCarlosGarcia95/Mathics
1927ada93c5ce2d8cbe731731ab1f55cd5527467
[ "Apache-2.0" ]
null
null
null
mathics/builtin/numbertheory.py
JoseCarlosGarcia95/Mathics
1927ada93c5ce2d8cbe731731ab1f55cd5527467
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Number theoretic functions """ import sympy from itertools import combinations from mathics.builtin.base import Builtin, Test from mathics.core.expression import ( Expression, Integer, Rational, Symbol, from_python) from mathics.core.convert import from_sympy imp...
25.373333
139
0.530215
4a1624a5b9d2bd1c474a184efa97d17f9ac50df8
1,284
py
Python
Reinforcement-Learning/assignment1/draft.py
gajeraj/MLSA-workshops-2020-student
cafbf5ac8750dd2b962174ad71dabf35ac90e2f4
[ "MIT" ]
5
2020-02-27T07:04:44.000Z
2021-06-03T17:20:55.000Z
Reinforcement-Learning/assignment1/draft.py
Phoebe0222/MLSA-workshops-2019-student
cafbf5ac8750dd2b962174ad71dabf35ac90e2f4
[ "MIT" ]
null
null
null
Reinforcement-Learning/assignment1/draft.py
Phoebe0222/MLSA-workshops-2019-student
cafbf5ac8750dd2b962174ad71dabf35ac90e2f4
[ "MIT" ]
9
2019-08-09T12:08:28.000Z
2019-10-16T06:35:22.000Z
''' This includes my test runs to understand the data structure when attempting the problem. Feel free to go through and try it yourself. ''' import gym import numpy as np from lake_envs import * # uncomment to check out stochastic/deterministic environments #env = gym.make("Deterministic-4x4-FrozenLake-v0") env = g...
27.319149
101
0.680685
4a1624b8361e20a663f27224a3feabbd2cd1601f
1,446
py
Python
ci/test.py
tiagoshibata/coremltools_bdist_wininst
e052eda593e57dc57c69bacfbd2aa02c89f950fb
[ "Unlicense" ]
null
null
null
ci/test.py
tiagoshibata/coremltools_bdist_wininst
e052eda593e57dc57c69bacfbd2aa02c89f950fb
[ "Unlicense" ]
null
null
null
ci/test.py
tiagoshibata/coremltools_bdist_wininst
e052eda593e57dc57c69bacfbd2aa02c89f950fb
[ "Unlicense" ]
null
null
null
import os import subprocess import sys import traceback from custom_venv import CustomVenv def run(*command, **kwargs): subprocess.run(command, cwd='coremltools', check=True, **kwargs) def run_tests(): env = CustomVenv(clear=True, symlinks=True, with_pip=True, requirements=['-r', 'coremltools/test_requirem...
31.434783
120
0.663209
4a16257e5a54433a12ebd8c8a1c6e08da5ba141a
1,247
py
Python
Day2_math_operators/math_operators.py
ariv14/python_day1
6a649d19669a3952aa55509754a91afebe215066
[ "Apache-2.0" ]
null
null
null
Day2_math_operators/math_operators.py
ariv14/python_day1
6a649d19669a3952aa55509754a91afebe215066
[ "Apache-2.0" ]
null
null
null
Day2_math_operators/math_operators.py
ariv14/python_day1
6a649d19669a3952aa55509754a91afebe215066
[ "Apache-2.0" ]
null
null
null
# Simple math operations interpreters # Addition calculator print("#######################################################################\n") print("Simple addition calculator") a = input("Enter first value: ") b = input("Enter second value: ") print("The sum of two values are : ") print(int(a) + int(b)) print("####...
31.974359
82
0.493986
4a162583f49be887b2988c0fb7a77eb22e826ab5
612
py
Python
scripts/writeLineToVTK.py
bjlittle/mint
fe4862951e0c570caef6e86440b090650dca000b
[ "0BSD" ]
null
null
null
scripts/writeLineToVTK.py
bjlittle/mint
fe4862951e0c570caef6e86440b090650dca000b
[ "0BSD" ]
null
null
null
scripts/writeLineToVTK.py
bjlittle/mint
fe4862951e0c570caef6e86440b090650dca000b
[ "0BSD" ]
null
null
null
import sys from numpy import * nline = eval(sys.argv[1]) t = linspace(0., 1., nline) x = eval(sys.argv[2]) y = eval(sys.argv[3]) f = open(sys.argv[4], 'w') f.write('# vtk DataFile Version 4.2\n') f.write('vtk output\n') f.write('ASCII\n') f.write('DATASET UNSTRUCTURED_GRID\n') f.write('POINTS {} double\n'.format(nlin...
24.48
49
0.627451
4a1626004d346a4bc802b499f550a95e83d63466
1,778
py
Python
voice.py
dutch213/pt-voicebox
8fd13c64dda26de450e815f38b66a14df23fb536
[ "MIT" ]
null
null
null
voice.py
dutch213/pt-voicebox
8fd13c64dda26de450e815f38b66a14df23fb536
[ "MIT" ]
null
null
null
voice.py
dutch213/pt-voicebox
8fd13c64dda26de450e815f38b66a14df23fb536
[ "MIT" ]
1
2019-09-30T01:31:25.000Z
2019-09-30T01:31:25.000Z
__author__ = 'jamiebrew' import operator # keeps a dictionary of sources with associated weights class Voice(object): def __init__(self, weighted_corpora, name = 'no_name'): self.name = name self.weighted_corpora = weighted_corpora # aggregates the suggestion lists of all constituent corpora...
44.45
119
0.626547
4a1626d408baae148fbcc1b753c90639aa7fb856
5,579
py
Python
rgc/ThreadQueue/__init__.py
zyndagj/gantry-crane
482385e0ad1f284206a30a1683c9b1aef23d3db4
[ "BSD-3-Clause" ]
8
2019-09-27T20:08:16.000Z
2021-07-12T18:27:23.000Z
rgc/ThreadQueue/__init__.py
zyndagj/gantry-crane
482385e0ad1f284206a30a1683c9b1aef23d3db4
[ "BSD-3-Clause" ]
13
2019-11-19T17:37:18.000Z
2021-01-15T17:41:35.000Z
rgc/ThreadQueue/__init__.py
zyndagj/gantry-crane
482385e0ad1f284206a30a1683c9b1aef23d3db4
[ "BSD-3-Clause" ]
2
2019-12-13T22:55:01.000Z
2021-02-09T22:09:58.000Z
############################################################################### # Author: Greg Zynda # Last Modified: 01/15/2021 ############################################################################### # BSD 3-Clause License # # Copyright (c) 2018, Texas Advanced Computing Center - UT Austin # All rights reserve...
35.535032
86
0.683277
4a1627399965ec4a1e41ff2fe21e6f742dbb51ad
7,287
py
Python
src/sentry/utils/cursors.py
apragacz/sf-sentry
2fdd6c1195c29a1d401d1cd538c22ea68556699a
[ "BSD-3-Clause" ]
1
2018-03-05T15:40:12.000Z
2018-03-05T15:40:12.000Z
src/sentry/utils/cursors.py
pitchin/sentry
ff6f260e9edb726374d2e4f455ff8b3d0ecd551e
[ "BSD-3-Clause" ]
1
2018-08-22T16:49:48.000Z
2018-08-22T16:49:48.000Z
src/sentry/utils/cursors.py
pitchin/sentry
ff6f260e9edb726374d2e4f455ff8b3d0ecd551e
[ "BSD-3-Clause" ]
1
2018-07-02T09:46:44.000Z
2018-07-02T09:46:44.000Z
""" sentry.utils.cursors ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import six from collections import Sequence class Cursor(object): def __init__(self, value, offset=0,...
30.877119
96
0.650336
4a16277fce4469d98744f9be7f00abef87fd233d
2,817
py
Python
ReachabilityTables.py
PauloBarrantes/Tarea1-Redes
ebdb0defbc0a9b7ccf6fb87ff151ca33daf24c64
[ "MIT" ]
null
null
null
ReachabilityTables.py
PauloBarrantes/Tarea1-Redes
ebdb0defbc0a9b7ccf6fb87ff151ca33daf24c64
[ "MIT" ]
null
null
null
ReachabilityTables.py
PauloBarrantes/Tarea1-Redes
ebdb0defbc0a9b7ccf6fb87ff151ca33daf24c64
[ "MIT" ]
null
null
null
from texttable import * import threading class ReachabilityTables: """docstring for ReachabilityTables.""" def __init__(self): self.reach_table = {} # Save the ip from the source of the message and the mask as the key. For the entry, # we will save the message ip address, the cost and the po...
41.426471
119
0.579695
4a1629890e4f4085770b48a3a68cf69b5b402ee3
1,594
py
Python
app/main/views.py
Ian1017/News
a28fc4447608a20256ad88881f331bc27ef932a2
[ "MIT" ]
null
null
null
app/main/views.py
Ian1017/News
a28fc4447608a20256ad88881f331bc27ef932a2
[ "MIT" ]
null
null
null
app/main/views.py
Ian1017/News
a28fc4447608a20256ad88881f331bc27ef932a2
[ "MIT" ]
null
null
null
from flask import render_template, redirect, url_for, request from . import main from ..models import Sources from ..requests import get_articles, get_sources, topheadlines @main.route('/') def index(): ''' View root page function that returns the index page and its data ''' title = "Home- News From V...
37.069767
261
0.735885
4a162b4278080aa9bd839b3a29f7731617d7d942
9,165
py
Python
releasenotes/source/conf.py
laoyigrace/subject_store
b0113aac169f7bd54a6ab31f145fe01a94365810
[ "Apache-2.0" ]
null
null
null
releasenotes/source/conf.py
laoyigrace/subject_store
b0113aac169f7bd54a6ab31f145fe01a94365810
[ "Apache-2.0" ]
null
null
null
releasenotes/source/conf.py
laoyigrace/subject_store
b0113aac169f7bd54a6ab31f145fe01a94365810
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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...
32.5
81
0.716094
4a162c19b3da4e63f6de66dac71e79e75a3c1d07
1,899
py
Python
scripts/playbook.py
JHibbard/create-playbook
aed60565a09af4b21d849fd083d4f9c4e2bef899
[ "MIT" ]
null
null
null
scripts/playbook.py
JHibbard/create-playbook
aed60565a09af4b21d849fd083d4f9c4e2bef899
[ "MIT" ]
null
null
null
scripts/playbook.py
JHibbard/create-playbook
aed60565a09af4b21d849fd083d4f9c4e2bef899
[ "MIT" ]
null
null
null
import click from pathlib import Path CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'], max_content_width=80) def create_dirs(dirs_to_create): for d in dirs_to_create: d.mkdir(mode=0o755, parents=True) def create_files(files_to_create): for f in files_to_create: ...
28.772727
84
0.665087
4a162c52ec9dffcdac535037169d1d679a6cc193
2,416
py
Python
perfkitbenchmarker/providers/gcp/bigquery.py
pierre-emmanuelJ/PerfKitBenchmarker
3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/providers/gcp/bigquery.py
pierre-emmanuelJ/PerfKitBenchmarker
3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/providers/gcp/bigquery.py
pierre-emmanuelJ/PerfKitBenchmarker
3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 PerfKitBenchmarker 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 appli...
31.376623
78
0.738411
4a162c7512d304692e43050efa1c3b9bd044b008
2,059
py
Python
resource/lib/python2.7/site-packages/pyasn1/codec/der/encoder.py
claudiopastorini/geofire-python
274e1b1d733a1158e4f36de40f0349dbc1ff6c34
[ "MIT" ]
1,346
2015-01-01T14:52:24.000Z
2022-03-28T12:50:48.000Z
resource/lib/python2.7/site-packages/pyasn1/codec/der/encoder.py
claudiopastorini/geofire-python
274e1b1d733a1158e4f36de40f0349dbc1ff6c34
[ "MIT" ]
474
2015-01-01T10:27:46.000Z
2022-03-21T12:26:16.000Z
resource/lib/python2.7/site-packages/pyasn1/codec/der/encoder.py
claudiopastorini/geofire-python
274e1b1d733a1158e4f36de40f0349dbc1ff6c34
[ "MIT" ]
191
2015-01-02T18:27:22.000Z
2022-03-29T10:49:48.000Z
# # This file is part of pyasn1 software. # # Copyright (c) 2005-2017, Ilya Etingof <etingof@gmail.com> # License: http://pyasn1.sf.net/license.html # from pyasn1.type import univ from pyasn1.codec.cer import encoder from pyasn1 import error class SetOfEncoder(encoder.SetOfEncoder): @staticmethod def _cmpSetC...
31.19697
91
0.697912
4a162d5722784f69fcdbf49a5d1efbe37cba7f62
4,874
py
Python
improver/cli/regrid.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
1
2021-08-02T21:17:18.000Z
2021-08-02T21:17:18.000Z
improver/cli/regrid.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
4
2018-01-24T11:29:15.000Z
2021-01-11T15:16:21.000Z
improver/cli/regrid.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
1
2021-08-02T21:17:19.000Z
2021-08-02T21:17:19.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the ...
42.754386
84
0.677472
4a162df88fb6828ea849b09df60a06af7b567872
1,521
py
Python
kd_common/kd_common/funcutil.py
konovalovdmitry/catsnap
d5f1d7c37dcee1ad3fee2cdc12a3b44b56f4c63f
[ "MIT" ]
null
null
null
kd_common/kd_common/funcutil.py
konovalovdmitry/catsnap
d5f1d7c37dcee1ad3fee2cdc12a3b44b56f4c63f
[ "MIT" ]
null
null
null
kd_common/kd_common/funcutil.py
konovalovdmitry/catsnap
d5f1d7c37dcee1ad3fee2cdc12a3b44b56f4c63f
[ "MIT" ]
1
2021-09-30T08:06:20.000Z
2021-09-30T08:06:20.000Z
import collections from typing import List, Union, Any, Generator, Set, Sequence, TypeVar, Optional, Tuple, Iterable from types import ModuleType, FunctionType from gc import get_referents import sys T = TypeVar('T') def to_list(seq: Optional[Union[List[T], Tuple[T, ...], Set[T], str]], unique_flag: bool = False) -...
26.684211
121
0.60092
4a162f14bbb7e26e395f4d7bf9cb04b2c5da4bfa
1,188
py
Python
statsmodels/sandbox/examples/try_quantile_regression1.py
yarikoptic/statsmodels
f990cb1a1ef0c9883c9394444e6f9d027efabec6
[ "BSD-3-Clause" ]
20
2015-01-28T21:52:59.000Z
2022-01-24T01:24:26.000Z
statsmodels/sandbox/examples/try_quantile_regression1.py
yarikoptic/statsmodels
f990cb1a1ef0c9883c9394444e6f9d027efabec6
[ "BSD-3-Clause" ]
6
2015-08-28T16:59:03.000Z
2019-04-12T22:29:01.000Z
statsmodels/sandbox/examples/try_quantile_regression1.py
yarikoptic/statsmodels
f990cb1a1ef0c9883c9394444e6f9d027efabec6
[ "BSD-3-Clause" ]
28
2015-04-01T20:02:25.000Z
2021-07-03T00:09:28.000Z
'''Example to illustrate Quantile Regression Author: Josef Perktold polynomial regression with systematic deviations above ''' import numpy as np from statsmodels.compat.python import zip from scipy import stats import statsmodels.api as sm from statsmodels.regression.quantile_regression import QuantReg sige = 0....
25.826087
88
0.670034
4a162f81404021520e9fd94756021b5b72932916
2,633
py
Python
okta/models/password_policy.py
corylevine/okta-sdk-python
c86b8fdc4525e84199143c27213c0aebc6b2af8f
[ "Apache-2.0" ]
145
2017-06-13T21:54:04.000Z
2022-02-25T05:44:34.000Z
okta/models/password_policy.py
corylevine/okta-sdk-python
c86b8fdc4525e84199143c27213c0aebc6b2af8f
[ "Apache-2.0" ]
146
2017-06-02T17:46:12.000Z
2022-03-29T15:52:15.000Z
okta/models/password_policy.py
corylevine/okta-sdk-python
c86b8fdc4525e84199143c27213c0aebc6b2af8f
[ "Apache-2.0" ]
98
2017-06-27T03:44:51.000Z
2022-03-23T04:58:18.000Z
# flake8: noqa """ Copyright 2020 - Present Okta, Inc. 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 ...
34.194805
90
0.615648
4a163132977cbbb316f2ac6700da38608081aacf
5,062
py
Python
salt/modules/eselect.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
1
2019-06-04T19:11:22.000Z
2019-06-04T19:11:22.000Z
salt/modules/eselect.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
null
null
null
salt/modules/eselect.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
2
2017-01-05T16:14:59.000Z
2019-01-31T23:15:25.000Z
# -*- coding: utf-8 -*- ''' Support for eselect, Gentoo's configuration and management tool. ''' from __future__ import absolute_import import logging # Import salt libs import salt.utils log = logging.getLogger(__name__) def __virtual__(): ''' Only work on Gentoo systems with eselect installed ''' ...
25.18408
142
0.657843
4a163190715f2c4f3a393a3148cd950be2923306
15,521
py
Python
elyra/metadata/manager.py
ptitzler/elyra-2
a59f8b0ec69eb224980da8c6fcebd7fa84d89ab9
[ "Apache-2.0" ]
null
null
null
elyra/metadata/manager.py
ptitzler/elyra-2
a59f8b0ec69eb224980da8c6fcebd7fa84d89ab9
[ "Apache-2.0" ]
null
null
null
elyra/metadata/manager.py
ptitzler/elyra-2
a59f8b0ec69eb224980da8c6fcebd7fa84d89ab9
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018-2022 Elyra 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 agreed to in writ...
48.808176
118
0.657883
4a16325e3e40776e182362c766a2f37551b72217
66,317
py
Python
tests/python/frontend/tflite/test_forward.py
yagnasrinath/incubator-tvm
8b2476fa87cda205daf4bd17d7d58e07a259043c
[ "Apache-2.0" ]
null
null
null
tests/python/frontend/tflite/test_forward.py
yagnasrinath/incubator-tvm
8b2476fa87cda205daf4bd17d7d58e07a259043c
[ "Apache-2.0" ]
null
null
null
tests/python/frontend/tflite/test_forward.py
yagnasrinath/incubator-tvm
8b2476fa87cda205daf4bd17d7d58e07a259043c
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.40404
142
0.603345
4a1633057533cf831ba8641c633d34527ffb8934
442
py
Python
core/cogs/info.py
yxqsnz/Ark
6842b652a582b06da2ec71bc6e2c7e3f5a9fc3f8
[ "MIT" ]
null
null
null
core/cogs/info.py
yxqsnz/Ark
6842b652a582b06da2ec71bc6e2c7e3f5a9fc3f8
[ "MIT" ]
null
null
null
core/cogs/info.py
yxqsnz/Ark
6842b652a582b06da2ec71bc6e2c7e3f5a9fc3f8
[ "MIT" ]
null
null
null
from discord.ext import commands from discord.ext.commands.context import Context from ark.settings import __version__, DRAGON_IMG class Botinfo(commands.Cog): def __init__(self, bot): self.bot = bot self.description = "BotInfo Commands" @commands.command(aliases=['v'],pass_context=True) asy...
36.833333
54
0.726244
4a1634fa052dd32daeb29a4201c371879c9e9fcc
725
py
Python
Etap 3/Logia12/Zad3.py
aszokalski/Logia
5e29745b01623df8a2f162f143656a76056af407
[ "MIT" ]
null
null
null
Etap 3/Logia12/Zad3.py
aszokalski/Logia
5e29745b01623df8a2f162f143656a76056af407
[ "MIT" ]
null
null
null
Etap 3/Logia12/Zad3.py
aszokalski/Logia
5e29745b01623df8a2f162f143656a76056af407
[ "MIT" ]
null
null
null
def kulki(lk): war.clear() zrodlo = 'r' * lk[0] + 'g' * lk[1] + 'b' * lk[2] + 'y' * lk[3] wariacjabezpowt(zrodlo, len(zrodlo), "") lista = war[:] wynik = [] for w in lista: keep = True for i in range(len(w) - 1): if w[i] == w[i+1]: keep = False ...
23.387097
66
0.485517
4a16352797a087a8385e3c49a4e6f04443c50b25
1,848
py
Python
facerecognition/recognition/FaceRecognition.py
LEGaTO-SmartMirror/SmartMirror-Facerecognition
65b87528b5f64a94b9352134712ff4ca404294a1
[ "MIT" ]
null
null
null
facerecognition/recognition/FaceRecognition.py
LEGaTO-SmartMirror/SmartMirror-Facerecognition
65b87528b5f64a94b9352134712ff4ca404294a1
[ "MIT" ]
null
null
null
facerecognition/recognition/FaceRecognition.py
LEGaTO-SmartMirror/SmartMirror-Facerecognition
65b87528b5f64a94b9352134712ff4ca404294a1
[ "MIT" ]
1
2019-06-12T21:13:22.000Z
2019-06-12T21:13:22.000Z
import os import cv2 import numpy as np import tensorflow as tf if (tf.__version__ == "1.15.1"): import tensorflow.compat.v1 as tf from recognition import facenet #CUDA_VISIBLE_DEVICES=1 os.environ["CUDA_VISIBLE_DEVICES"]="1" BASE_DIR = os.path.dirname(__file__) + '/' # Path to frozen detection graph. This is th...
37.714286
102
0.706169
4a163563bb937b817dbbdfdc242cc936a4d4ca4d
2,019
py
Python
app/service/auth_service.py
WishesFire/Epam-Python-Project
d54bbe48d539b0810d9b42b0839a64b035021c6d
[ "Apache-2.0" ]
1
2021-11-18T11:57:02.000Z
2021-11-18T11:57:02.000Z
app/service/auth_service.py
WishesFire/Epam-project
d54bbe48d539b0810d9b42b0839a64b035021c6d
[ "Apache-2.0" ]
null
null
null
app/service/auth_service.py
WishesFire/Epam-project
d54bbe48d539b0810d9b42b0839a64b035021c6d
[ "Apache-2.0" ]
null
null
null
""" Requires user registration and login utilities: - `util_signup`: validation data form and create new user in database - `util_login`: requirement validation parameters """ # pylint: disable=unused-variable # pylint: disable=inconsistent-return-statements import logging from typing import Union from werkze...
35.421053
83
0.738484
4a16367b79e9453774507aed9353525b37dea2ed
1,302
py
Python
cfn_transform_library/always_update.py
benkehoe/cfn-transform-lib
587155f1b184e416fedec83be1dfdd9b48c70b44
[ "Apache-2.0" ]
2
2020-04-07T12:43:10.000Z
2021-08-20T16:59:48.000Z
cfn_transform_library/always_update.py
benkehoe/cfn-transform-lib
587155f1b184e416fedec83be1dfdd9b48c70b44
[ "Apache-2.0" ]
1
2018-02-08T19:06:19.000Z
2018-02-08T19:06:19.000Z
cfn_transform_library/always_update.py
benkehoe/cfn-transform-library
587155f1b184e416fedec83be1dfdd9b48c70b44
[ "Apache-2.0" ]
null
null
null
"""Make a resource's properties always different if needed. Look for AlwaysUpdate set to True in a resource's metadata, and if so, put AlwaysUpdateNonce in the resource's properties. Copyright 2018 iRobot Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in ...
37.2
102
0.757296
4a1636bab322ea6f4c64a46395477a3fd3e50183
366
py
Python
Arase/PWE/__init__.py
mattkjames7/Arase
996167be35a13bbb1fdddfbe75e3a06d124b1d25
[ "MIT" ]
null
null
null
Arase/PWE/__init__.py
mattkjames7/Arase
996167be35a13bbb1fdddfbe75e3a06d124b1d25
[ "MIT" ]
1
2021-06-10T22:51:09.000Z
2021-06-10T22:51:09.000Z
Arase/PWE/__init__.py
mattkjames7/Arase
996167be35a13bbb1fdddfbe75e3a06d124b1d25
[ "MIT" ]
null
null
null
from .DownloadData import DownloadData from .ReadEFD import ReadEFD from .ReadHFA import ReadHFA from .ReadHFALow import ReadHFALow from .ReadHFAHigh import ReadHFAHigh from .ReadUHDensity import ReadUHDensity from .RebuildDataIndex import RebuildDataIndex from .ReadCDF import ReadCDF from .ReadIndex import ReadIndex f...
33.272727
46
0.863388
4a16376ccad7478656e538acef0418e7fdfcf31b
10,550
py
Python
networkx/algorithms/traversal/breadth_first_search.py
LorenzoCancello/networkx
3a0b782c21f0d99ca7154ae8322292ec571e4a04
[ "BSD-3-Clause" ]
null
null
null
networkx/algorithms/traversal/breadth_first_search.py
LorenzoCancello/networkx
3a0b782c21f0d99ca7154ae8322292ec571e4a04
[ "BSD-3-Clause" ]
null
null
null
networkx/algorithms/traversal/breadth_first_search.py
LorenzoCancello/networkx
3a0b782c21f0d99ca7154ae8322292ec571e4a04
[ "BSD-3-Clause" ]
null
null
null
"""Basic algorithms for breadth-first searching the nodes of a graph.""" import networkx as nx from collections import deque __all__ = [ 'bfs_edges', 'bfs_tree', 'bfs_predecessors', 'bfs_successors', 'descendants_at_distance' ] def generic_bfs_edges(G, source, neighbors=None, depth_limit=None): """Iterat...
28.90411
80
0.602844
4a1637879158b4035d697b49d749bae39ffd50a9
350
py
Python
00-basics/00-function_default_value.py
ralexrivero/python_fundation
34a855db7380d3d91db6a8f02d97f287d038ef5f
[ "Apache-2.0" ]
1
2021-09-19T04:09:48.000Z
2021-09-19T04:09:48.000Z
00-basics/00-function_default_value.py
ralexrivero/python_fundation
34a855db7380d3d91db6a8f02d97f287d038ef5f
[ "Apache-2.0" ]
null
null
null
00-basics/00-function_default_value.py
ralexrivero/python_fundation
34a855db7380d3d91db6a8f02d97f287d038ef5f
[ "Apache-2.0" ]
null
null
null
# # function with default value # def power(num, x=1): result = 1 for i in range(x): result = result * num return result # if dont pass x, the default will be 1 print(power(2)) print(power(2,3)) print(power(3,4)) # supply the name of the values. Dont need to pass in a particular order if use names...
21.875
86
0.651429
4a1638358f59fe67e43fc55f0a6ba6b656be94ae
17,083
py
Python
tests/zero_code_change/tensorflow_integration_tests.py
vandanavk/sagemaker-debugger
5246cda198295aa1dd1656ad32b30c4bb1e2aec4
[ "Apache-2.0" ]
null
null
null
tests/zero_code_change/tensorflow_integration_tests.py
vandanavk/sagemaker-debugger
5246cda198295aa1dd1656ad32b30c4bb1e2aec4
[ "Apache-2.0" ]
null
null
null
tests/zero_code_change/tensorflow_integration_tests.py
vandanavk/sagemaker-debugger
5246cda198295aa1dd1656ad32b30c4bb1e2aec4
[ "Apache-2.0" ]
null
null
null
""" WARNING: This must be run manually, with the custom TensorFlow fork installed. Not used in CI/CD. May be useful for DLC testing. Be sure to run with Python2 (/usr/bin/python) and Python3. Run with and without the flag --zcc. Test with DNNClassifier and raw Estimator. Test with Session. Test with Keras. Test with...
36.346809
100
0.593338
4a1638b2e2d95c0a3a544b68e79c087f2739dc5b
14,152
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/authentication/authenticationvserver_authenticationsamlpolicy_binding.py
benfinke/ns_python
d651d7aa01d7dc63c1cd435c7b3314d7f5b26659
[ "Apache-2.0" ]
1
2015-04-05T21:21:26.000Z
2015-04-05T21:21:26.000Z
nssrc/com/citrix/netscaler/nitro/resource/config/authentication/authenticationvserver_authenticationsamlpolicy_binding.py
benfinke/ns_python
d651d7aa01d7dc63c1cd435c7b3314d7f5b26659
[ "Apache-2.0" ]
1
2017-01-20T22:56:58.000Z
2017-01-20T22:56:58.000Z
nssrc/com/citrix/netscaler/nitro/resource/config/authentication/authenticationvserver_authenticationsamlpolicy_binding.py
benfinke/ns_python
d651d7aa01d7dc63c1cd435c7b3314d7f5b26659
[ "Apache-2.0" ]
6
2015-04-21T13:14:08.000Z
2020-12-03T07:27:52.000Z
# # Copyright (c) 2008-2015 Citrix Systems, Inc. # # 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 l...
40.666667
430
0.759327
4a1639c03c4272df2e3f1348fd446f04d01a8fa0
1,430
py
Python
examples/pylab_examples/pcolor_demo.py
SoftwareDev/mat-plot-lib
abaf94859d5ef6e653a4d8a7ce2c59cea1724a57
[ "MIT", "BSD-3-Clause" ]
16
2016-06-14T19:45:35.000Z
2020-11-30T19:02:58.000Z
lib/mpl_examples/pylab_examples/pcolor_demo.py
yingkailiang/matplotlib
255a79b106c98c1904489afe6a754e4d943179d6
[ "MIT", "BSD-3-Clause" ]
7
2015-05-08T19:36:25.000Z
2015-06-30T15:32:17.000Z
lib/mpl_examples/pylab_examples/pcolor_demo.py
yingkailiang/matplotlib
255a79b106c98c1904489afe6a754e4d943179d6
[ "MIT", "BSD-3-Clause" ]
6
2015-06-05T03:34:06.000Z
2022-01-25T09:07:10.000Z
""" Demonstrates similarities between pcolor, pcolormesh, imshow and pcolorfast for drawing quadrilateral grids. """ import matplotlib.pyplot as plt import numpy as np # make these smaller to increase the resolution dx, dy = 0.15, 0.05 # generate 2 2d grids for the x & y bounds y, x = np.mgrid[slice(-3, 3 + dy, dy),...
25.087719
75
0.632168
4a1639c330ae085f7fbdbd6206b78bacc3efb0d7
16,552
py
Python
localstack/services/iam/iam_starter.py
VanRoy/localstack
39f1a1c034ae345f87a1485d717428b59308e6fc
[ "Apache-2.0" ]
1
2022-01-05T10:10:38.000Z
2022-01-05T10:10:38.000Z
localstack/services/iam/iam_starter.py
VanRoy/localstack
39f1a1c034ae345f87a1485d717428b59308e6fc
[ "Apache-2.0" ]
null
null
null
localstack/services/iam/iam_starter.py
VanRoy/localstack
39f1a1c034ae345f87a1485d717428b59308e6fc
[ "Apache-2.0" ]
null
null
null
import json import re from copy import deepcopy from urllib.parse import quote import xmltodict from moto.iam.models import ( AWSManagedPolicy, IAMNotFoundException, InlinePolicy, Policy, Role, aws_managed_policies, aws_managed_policies_data_parsed, ) from moto.iam.models import iam_backend...
36.378022
110
0.615636
4a163a994467f842fc7c92c8fb4d308e24ed3d7c
1,156
py
Python
main/slang/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
null
null
null
main/slang/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
null
null
null
main/slang/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
null
null
null
pkgname = "slang" pkgver = "2.3.2" pkgrel = 0 build_style = "gnu_configure" make_cmd = "gmake" make_dir = "." hostmakedepends = ["gmake", "pkgconf", "ncurses-devel"] makedepends = [ "ncurses-devel", "zlib-devel", "pcre-devel", "libpng-devel", "oniguruma-devel" ] pkgdesc = "S-Lang programming library" maintainer...
29.641026
81
0.656574
4a163aad983f267602f530c6aa186eb0402edadd
4,476
py
Python
python/tests/test_logger_interceptors.py
meyskens/lookout-sdk
805d0d61ca97120a257283780790ff2458a6ef29
[ "Apache-2.0" ]
5
2018-12-17T11:22:31.000Z
2019-03-14T02:50:43.000Z
python/tests/test_logger_interceptors.py
meyskens/lookout-sdk
805d0d61ca97120a257283780790ff2458a6ef29
[ "Apache-2.0" ]
64
2018-08-31T10:41:36.000Z
2019-12-14T15:01:13.000Z
python/tests/test_logger_interceptors.py
meyskens/lookout-sdk
805d0d61ca97120a257283780790ff2458a6ef29
[ "Apache-2.0" ]
16
2018-08-30T20:33:55.000Z
2021-08-09T05:37:06.000Z
from concurrent.futures import ThreadPoolExecutor import unittest import grpc from lookout.sdk import pb from lookout.sdk.service_data import DataStub from lookout.sdk.grpc import create_channel, create_server, \ LogUnaryServerInterceptor, \ LogStreamServerInterceptor, \ LogUnaryClientInterceptor, \ ...
34.430769
79
0.621314
4a163ae1135a7594307b5a8d3fa3c8d961198b4c
520
py
Python
Python/Exercícios_Python/034_maior_e_menor_valor.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/034_maior_e_menor_valor.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/034_maior_e_menor_valor.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """034 - Maior e menor valor Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1tR5I-76SVFX8tPZ8l2JrakHqZregyIRU """ primeiro = int(input('Digite o primeiro número: ')) segundo = int(input('Digite o segundo número: ')) terceiro = ...
34.666667
77
0.725
4a163c31d64452f163118d42d84d5f171f047ce0
5,135
py
Python
tasrif/processing_pipeline/pandas/json_normalize_operator.py
qcri/tasrif
327bc1eccb8f8e11d8869ba65a7c72ad038aa094
[ "BSD-3-Clause" ]
20
2021-12-06T10:41:54.000Z
2022-03-13T16:25:43.000Z
tasrif/processing_pipeline/pandas/json_normalize_operator.py
qcri/tasrif
327bc1eccb8f8e11d8869ba65a7c72ad038aa094
[ "BSD-3-Clause" ]
33
2021-12-06T08:27:18.000Z
2022-03-14T05:07:53.000Z
tasrif/processing_pipeline/pandas/json_normalize_operator.py
qcri/tasrif
327bc1eccb8f8e11d8869ba65a7c72ad038aa094
[ "BSD-3-Clause" ]
2
2022-02-07T08:06:48.000Z
2022-02-14T07:13:42.000Z
""" Normalize semi-structured JSON data into a flat table. """ import warnings import pandas as pd from tasrif.processing_pipeline import PandasOperator class JsonNormalizeOperator(PandasOperator): """ Examples -------- >>> from tasrif.processing_pipeline.pandas import JsonNormalizeOperator >>>...
36.678571
103
0.42999
4a163c3b81574feeb16084479b4df6f5eff34b61
2,319
py
Python
kalman_test_script.py
cunningham-lab/cyclic-gps
b11fa959afb0dc50e83e5c8c679981a74dc28f2a
[ "MIT" ]
null
null
null
kalman_test_script.py
cunningham-lab/cyclic-gps
b11fa959afb0dc50e83e5c8c679981a74dc28f2a
[ "MIT" ]
null
null
null
kalman_test_script.py
cunningham-lab/cyclic-gps
b11fa959afb0dc50e83e5c8c679981a74dc28f2a
[ "MIT" ]
1
2022-02-19T22:36:14.000Z
2022-02-19T22:36:14.000Z
import torch from torch.utils.data import DataLoader import pytorch_lightning as pl import scipy as sp import scipy.ndimage from cyclic_gps.models import LEGFamily from cyclic_gps.data_utils import time_series_dataset import matplotlib.pyplot as plt from cyclic_gps.kalman import init_kalman_filter, get_state_estimate...
34.102941
106
0.787408
4a163e6197c65d806b523c68f143680f891bca4d
1,172
py
Python
common/exploration_strategies/base.py
SharathRaparthy/efficient-mrl
a1667019bc9a849639fba55825fef865967b6d7d
[ "MIT" ]
1
2020-01-17T00:26:25.000Z
2020-01-17T00:26:25.000Z
common/exploration_strategies/base.py
SharathRaparthy/efficient-mrl
a1667019bc9a849639fba55825fef865967b6d7d
[ "MIT" ]
null
null
null
common/exploration_strategies/base.py
SharathRaparthy/efficient-mrl
a1667019bc9a849639fba55825fef865967b6d7d
[ "MIT" ]
null
null
null
import abc from common.policies.base import ExplorationPolicy class ExplorationStrategy(object, metaclass=abc.ABCMeta): @abc.abstractmethod def get_action(self, t, observation, policy, **kwargs): pass def reset(self): pass class RawExplorationStrategy(ExplorationStrategy, metaclass=abc...
24.93617
73
0.656143
4a163efa6a87d681bed9d997361ac7de5218c862
6,275
py
Python
pykrita/layer_extra_properties/ui/data_editors/dict_editor.py
akirfin/krita_python_fun
74173d140b39f7f80f43f9474381e4adfa3b5f01
[ "MIT" ]
1
2021-10-01T00:25:43.000Z
2021-10-01T00:25:43.000Z
pykrita/layer_extra_properties/ui/data_editors/dict_editor.py
akirfin/krita_python_fun
74173d140b39f7f80f43f9474381e4adfa3b5f01
[ "MIT" ]
null
null
null
pykrita/layer_extra_properties/ui/data_editors/dict_editor.py
akirfin/krita_python_fun
74173d140b39f7f80f43f9474381e4adfa3b5f01
[ "MIT" ]
null
null
null
from collections import OrderedDict as oDict try: from collections.abc import MutableMapping except: from collections import MutableMapping from PyQt5.QtCore import Qt from PyQt5.QtCore import pyqtSlot as QSlot from PyQt5.QtCore import pyqtSignal as QSignal from PyQt5.QtCore import pyqtProperty as QProperty f...
36.271676
104
0.6051
4a163fb68ef532739896cdec84218ee0b66718a2
3,999
py
Python
dvc/data_cloud.py
hfchong/dvc
2e3ce3b3dbb02f6524b0383e3f599c4561413634
[ "Apache-2.0" ]
null
null
null
dvc/data_cloud.py
hfchong/dvc
2e3ce3b3dbb02f6524b0383e3f599c4561413634
[ "Apache-2.0" ]
null
null
null
dvc/data_cloud.py
hfchong/dvc
2e3ce3b3dbb02f6524b0383e3f599c4561413634
[ "Apache-2.0" ]
null
null
null
import re from multiprocessing.pool import ThreadPool from dvc.logger import Logger from dvc.exceptions import DvcException from dvc.config import Config, ConfigError from dvc.remote.s3 import RemoteS3 from dvc.remote.gs import RemoteGS from dvc.remote.azure import RemoteAzure from dvc.remote.ssh import RemoteSSH fro...
34.773913
106
0.644911
4a1640ac42f4dd31310c5148c627e17c21c53f92
2,582
py
Python
setup.py
Jaikinator/dqc
47c964c7d1323a35f4f69521d40476c41843810e
[ "Apache-2.0" ]
null
null
null
setup.py
Jaikinator/dqc
47c964c7d1323a35f4f69521d40476c41843810e
[ "Apache-2.0" ]
null
null
null
setup.py
Jaikinator/dqc
47c964c7d1323a35f4f69521d40476c41843810e
[ "Apache-2.0" ]
null
null
null
import os import sys import re import subprocess as sp import shutil from setuptools import setup, find_packages, Extension from setuptools.command.build_ext import build_ext # module's descriptor module_name = "dqc" github_url = "https://github.com/diffqc/dqc/tree/master/" raw_github_url = "https://raw.githubusercont...
33.102564
87
0.657242
4a16432dd794e554fed596c06b795788a508fa01
11,316
py
Python
src/controller/WASH/Query_WaMDaM_for_WASH/QueryWAMDAM.py
WamdamProject/WaMDaM_Wizard
f8f5a830464f3c8f45e4eb0557833eefb267d7b2
[ "BSD-3-Clause" ]
null
null
null
src/controller/WASH/Query_WaMDaM_for_WASH/QueryWAMDAM.py
WamdamProject/WaMDaM_Wizard
f8f5a830464f3c8f45e4eb0557833eefb267d7b2
[ "BSD-3-Clause" ]
3
2018-11-17T05:49:18.000Z
2020-12-31T15:57:14.000Z
src/controller/WASH/Query_WaMDaM_for_WASH/QueryWAMDAM.py
WamdamProject/WaMDaM_Wizard
f8f5a830464f3c8f45e4eb0557833eefb267d7b2
[ "BSD-3-Clause" ]
null
null
null
# call these functions from here. the result will save excel data in the second function of each. from QueryMultiAttributes import * from QueryTimeSeries import * from QueryDescriptor import * from QuerySeasonal import * from QueryNumeric import * # from controller.WEAP_exporter.ExtractWeapArea import WEAP_export f...
39.291667
418
0.743549
4a1643f0dfbd3d535616fafe11b012ba1b1f45a1
7,153
py
Python
pymoo/algorithms/rnsga2.py
gabicavalcante/pymoo
1711ce3a96e5ef622d0116d6c7ea4d26cbe2c846
[ "Apache-2.0" ]
11
2018-05-22T17:38:02.000Z
2022-02-28T03:34:33.000Z
pymoo/algorithms/rnsga2.py
gabicavalcante/pymoo
1711ce3a96e5ef622d0116d6c7ea4d26cbe2c846
[ "Apache-2.0" ]
15
2022-01-03T19:36:36.000Z
2022-03-30T03:57:58.000Z
pymoo/algorithms/rnsga2.py
gabicavalcante/pymoo
1711ce3a96e5ef622d0116d6c7ea4d26cbe2c846
[ "Apache-2.0" ]
3
2021-11-22T08:01:47.000Z
2022-03-11T08:53:58.000Z
import numpy as np from pymoo.algorithms.nsga2 import NSGA2 from pymoo.algorithms.nsga3 import get_extreme_points_c from pymoo.docs import parse_doc_string from pymoo.model.survival import Survival from pymoo.operators.selection.random_selection import RandomSelection from pymoo.util.nds.non_dominated_sorting import N...
37.846561
108
0.573745
4a164421a1c8ce87412eafcc934520a29e57ebfe
522
py
Python
efls-console/alembic/versions/3900a6b99e7e_init.py
universe-hcy/Elastic-Federated-Learning-Solution
4e047fbbe6ae9809cd631499b7d3a3855dfe2208
[ "Apache-2.0" ]
65
2021-09-30T01:54:34.000Z
2022-03-26T13:57:15.000Z
efls-console/alembic/versions/3900a6b99e7e_init.py
universe-hcy/Elastic-Federated-Learning-Solution
4e047fbbe6ae9809cd631499b7d3a3855dfe2208
[ "Apache-2.0" ]
24
2021-09-30T09:25:43.000Z
2022-03-29T06:33:44.000Z
efls-console/alembic/versions/3900a6b99e7e_init.py
universe-hcy/Elastic-Federated-Learning-Solution
4e047fbbe6ae9809cd631499b7d3a3855dfe2208
[ "Apache-2.0" ]
18
2021-09-30T09:04:08.000Z
2022-03-31T10:17:27.000Z
"""init Revision ID: 3900a6b99e7e Revises: Create Date: 2021-08-11 15:28:48.507537 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3900a6b99e7e' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by ...
18
65
0.67433
4a164473a3357ef5ef91f68514e5475421f94cd2
552
py
Python
electrical_test/limelight.py
frc1418/2020-robot
027a7b7f02bd48ade79a18c6b2a48d165cd4017c
[ "MIT" ]
3
2020-07-14T23:28:30.000Z
2020-07-14T23:28:35.000Z
electrical_test/limelight.py
AndrewLester/2020-robot
f3c03e72bcf106f5752e443b7a3a6eb87bc0bff2
[ "MIT" ]
2
2020-03-14T19:13:25.000Z
2020-10-19T16:29:32.000Z
electrical_test/limelight.py
frc1418/2020-robot
027a7b7f02bd48ade79a18c6b2a48d165cd4017c
[ "MIT" ]
null
null
null
from networktables.util import ntproperty import math class Limelight(): YAW_ANGLE = ntproperty('/limelight/tx',0) PITCH_ANGLE = ntproperty('/limelight/ty',0) # change with new robot; UNIT = inches CAMERA_HEIGHT = 43 TARGET_HEIGHT = 98.25 # UNIT = degrees CAMERA_ANGLE = 0 def findDista...
29.052632
100
0.648551
4a16450a1562ed3ee3c1d6b3652c762863389faf
387
py
Python
src/models/predict_model.py
gagan3012/summarization
5bfeb087feb3379ec41849e4125081c1e351971b
[ "MIT" ]
2
2021-07-31T08:27:01.000Z
2021-11-01T07:42:58.000Z
src/models/predict_model.py
gagan3012/summarization
5bfeb087feb3379ec41849e4125081c1e351971b
[ "MIT" ]
null
null
null
src/models/predict_model.py
gagan3012/summarization
5bfeb087feb3379ec41849e4125081c1e351971b
[ "MIT" ]
null
null
null
import yaml from .model import Summarization def predict_model(text: str): """ Predict the summary of the given text. """ with open("model_params.yml") as f: params = yaml.safe_load(f) model = Summarization() model.load_model(model_type=params["model_type"], model_dir=params["model_d...
22.764706
84
0.684755
4a16456257af3ef0250db171a68b96585d81755e
270
py
Python
quantpy/conf.py
iamxiatian/quantpy
316580c575207f7af836e6c784de0351762f748b
[ "Apache-2.0" ]
2
2016-06-21T08:11:10.000Z
2020-06-25T14:34:46.000Z
quantpy/conf.py
iamxiatian/quantpy
316580c575207f7af836e6c784de0351762f748b
[ "Apache-2.0" ]
null
null
null
quantpy/conf.py
iamxiatian/quantpy
316580c575207f7af836e6c784de0351762f748b
[ "Apache-2.0" ]
null
null
null
import configparser cfg = configparser.ConfigParser() cfg.read('settings.cfg') MONGODB_DB_NAME = cfg['db']['dbname'] MONGODB_USER_NAME = cfg['db']['user'] MONGODB_PASSWORD = cfg['db']['password'] MONGODB_HOST = cfg['db']['host'] MONGODB_PORT = int(cfg['db']['port'])
22.5
40
0.7
4a1645c08015de2aaf710b0be1ee5d12a9a86a90
2,370
py
Python
examples/crawler_brohltal.py
Hadryan/NewsBot
e6a28f96857c608abddc6eeafdcf765ffde74461
[ "MIT" ]
1
2021-09-04T01:12:02.000Z
2021-09-04T01:12:02.000Z
examples/crawler_brohltal.py
Hadryan/NewsBot
e6a28f96857c608abddc6eeafdcf765ffde74461
[ "MIT" ]
null
null
null
examples/crawler_brohltal.py
Hadryan/NewsBot
e6a28f96857c608abddc6eeafdcf765ffde74461
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), "../")) import logging import re from _datetime import datetime from urllib.request import urlopen from telegramnews import Site logging.basicConfig( format="%(asctime)s - %(name)s - %(leve...
25.76087
101
0.567089
4a1645dd1e858dfcc339cee408c118a4ff650f55
5,885
py
Python
bindings/python/ensmallen_graph/datasets/networkrepository/orkut.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/networkrepository/orkut.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/networkrepository/orkut.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph orkut. The graph is automatically retrieved from the NetworkRepository repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-02-04...
32.15847
94
0.68921
4a1646b122580893d02eeb0cd28e8c6abcae6db4
4,916
py
Python
tutorials/gpt2_e2e.py
Zuwei-Zhao/ort-customops
4e78e9651bdcbe8518448c3cbeab90eb92a1be05
[ "MIT" ]
null
null
null
tutorials/gpt2_e2e.py
Zuwei-Zhao/ort-customops
4e78e9651bdcbe8518448c3cbeab90eb92a1be05
[ "MIT" ]
null
null
null
tutorials/gpt2_e2e.py
Zuwei-Zhao/ort-customops
4e78e9651bdcbe8518448c3cbeab90eb92a1be05
[ "MIT" ]
1
2021-09-21T00:47:16.000Z
2021-09-21T00:47:16.000Z
import os import numpy from transformers import AutoConfig from onnxruntime_customops import mytorch as torch from onnxruntime_customops.utils import trace_for_onnx, op_from_model, build_customop_model device = 'cpu' model_name_or_path = 'gpt2' gpt2_core_model_path = './gpt2.onnx' gpt2_encoder_model_path = './gpt2_to...
40.966667
123
0.711554
4a16473e564b0489533beaa91121d0aaf9146307
263
py
Python
src/sentry/tagstore/legacy/__init__.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
4
2019-05-27T13:55:07.000Z
2021-03-30T07:05:09.000Z
src/sentry/tagstore/legacy/__init__.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
196
2019-06-10T08:34:10.000Z
2022-02-22T01:26:13.000Z
src/sentry/tagstore/legacy/__init__.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
1
2018-07-02T09:46:44.000Z
2018-07-02T09:46:44.000Z
""" sentry.tagstore.legacy ~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2017 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from .backend import LegacyTagStorage # NOQA
23.909091
75
0.695817
4a164834d9678a949efc55e3fc62a45a5fbc2936
32,625
py
Python
synapse/storage/persist_events.py
schildbach/synapse
3aa36b782c715a2d3c965d5d9b37f7a49a5f17e1
[ "Apache-2.0" ]
1
2020-10-10T13:23:05.000Z
2020-10-10T13:23:05.000Z
synapse/storage/persist_events.py
schildbach/synapse
3aa36b782c715a2d3c965d5d9b37f7a49a5f17e1
[ "Apache-2.0" ]
null
null
null
synapse/storage/persist_events.py
schildbach/synapse
3aa36b782c715a2d3c965d5d9b37f7a49a5f17e1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket Ltd # Copyright 2018-2019 New Vector Ltd # Copyright 2019 The Matrix.org Foundation C.I.C. # # 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 Licens...
41.56051
94
0.599479
4a164943225ecb64c0a3ab746a0d066bbdb0712e
37,252
py
Python
google/cloud/aiplatform_v1beta1/services/endpoint_service/async_client.py
Nawod/python-aiplatform
ffc70d148868489161797cc25a63298dda322d5f
[ "Apache-2.0" ]
1
2021-11-27T00:41:48.000Z
2021-11-27T00:41:48.000Z
google/cloud/aiplatform_v1beta1/services/endpoint_service/async_client.py
orionnye/python-aiplatform
e3ea683bf754832340853a15bdb0a0662500a70f
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1beta1/services/endpoint_service/async_client.py
orionnye/python-aiplatform
e3ea683bf754832340853a15bdb0a0662500a70f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
43.518692
186
0.641335
4a16497bd347fcc6cc5058207cb329d5cdc942ee
3,010
py
Python
venv/Lib/site-packages/xero_python/payrolluk/models/leave_types.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
77
2020-02-16T03:50:18.000Z
2022-03-11T03:53:26.000Z
venv/Lib/site-packages/xero_python/payrolluk/models/leave_types.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
50
2020-04-06T10:15:52.000Z
2022-03-29T21:27:50.000Z
venv/Lib/site-packages/xero_python/payrolluk/models/leave_types.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
27
2020-06-04T11:16:17.000Z
2022-03-19T06:27:36.000Z
# coding: utf-8 """ Xero Payroll UK This is the Xero Payroll API for orgs in the UK region. # noqa: E501 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel class LeaveTypes(BaseModel): """NOTE: This class i...
24.876033
86
0.599668
4a164a23d8ab43c21c16022f46f531866c88c393
73,751
py
Python
taxcalc/calcfunctions.py
adamoppenheimer/OG-USA
05926fd79ce2fd0e58e2f0088fd461445d862db5
[ "CC0-1.0" ]
null
null
null
taxcalc/calcfunctions.py
adamoppenheimer/OG-USA
05926fd79ce2fd0e58e2f0088fd461445d862db5
[ "CC0-1.0" ]
null
null
null
taxcalc/calcfunctions.py
adamoppenheimer/OG-USA
05926fd79ce2fd0e58e2f0088fd461445d862db5
[ "CC0-1.0" ]
null
null
null
""" Tax-Calculator functions that calculate payroll and individual income taxes. These functions are imported into the Calculator class. Note: the cpi_offset policy parameter is the only policy parameter that does not appear here; it is used in the policy.py file to possibly adjust the price inflation rate used to in...
38.755123
79
0.632615
4a164a58e6d45421f862feede2c107ecd104cbab
3,139
py
Python
src/pybullet_planning/interfaces/robots/dynamics.py
logan-dunbar/pybullet_planning
3b25fc7a0f350f4b46048be5c42f9cbf3ab2d6fb
[ "MIT" ]
null
null
null
src/pybullet_planning/interfaces/robots/dynamics.py
logan-dunbar/pybullet_planning
3b25fc7a0f350f4b46048be5c42f9cbf3ab2d6fb
[ "MIT" ]
null
null
null
src/pybullet_planning/interfaces/robots/dynamics.py
logan-dunbar/pybullet_planning
3b25fc7a0f350f4b46048be5c42f9cbf3ab2d6fb
[ "MIT" ]
null
null
null
from collections import defaultdict, deque, namedtuple import numpy as np import pybullet as p from pybullet_planning.utils import get_client, BASE_LINK, STATIC_MASS ##################################### # https://docs.google.com/document/d/10sXEhzFRSnvFcl3XxNGhnD4N2SedqwdAvK3dsihxVUA/edit# DynamicsInfo = namedtupl...
41.853333
148
0.727302
4a164a93a0a735136b2c34105a07f3ef835cbb67
793
py
Python
03.Layout/06.Size.py
sarincr/Python-App-Development-using-Kivy
bc5d40efa29ddf59042a85e0e908657590149d6f
[ "MIT" ]
1
2021-11-10T11:31:23.000Z
2021-11-10T11:31:23.000Z
03.Layout/06.Size.py
sarincr/Python-App-Development-using-Kivy
bc5d40efa29ddf59042a85e0e908657590149d6f
[ "MIT" ]
null
null
null
03.Layout/06.Size.py
sarincr/Python-App-Development-using-Kivy
bc5d40efa29ddf59042a85e0e908657590149d6f
[ "MIT" ]
null
null
null
import kivy from kivy.app import App from kivy.uix.button import Button from kivy.uix.gridlayout import GridLayout class Grid_LayoutApp(App): def build(self): layout = GridLayout(cols = 2) layout.add_widget(Button(text ='Element A 1', size_hint_x = None, width = 100)) layout.a...
20.868421
88
0.648172
4a164b9b1e26a4b21469d1ae3c063dfa59190d16
3,116
py
Python
LC/08-tring-to-integer-atoi.py
brunodleite2/python
72c21239869747c36cdee8a23dbabfd8bc78e480
[ "MIT" ]
null
null
null
LC/08-tring-to-integer-atoi.py
brunodleite2/python
72c21239869747c36cdee8a23dbabfd8bc78e480
[ "MIT" ]
null
null
null
LC/08-tring-to-integer-atoi.py
brunodleite2/python
72c21239869747c36cdee8a23dbabfd8bc78e480
[ "MIT" ]
null
null
null
'FIRST SOLUTION - NO BULTIN FUNCTIONS USED - FASTER' class Solution: MAX = 2**31 - 1 MIN = 2**31 * -1 def __is_sign(self, char: str) -> bool: if char in ['-', '+']: return True return False def __is_number(self, char: str) -> bool: if char in ['0', '1', '2', '3', ...
24.928
76
0.511553
4a164d05265ea9904ed1e3d011109aa3e6414ee1
747
py
Python
setup.py
chenbowen/py-thin-plate-spline
e82af945a30b229887807594ea26f43e511f3754
[ "MIT" ]
null
null
null
setup.py
chenbowen/py-thin-plate-spline
e82af945a30b229887807594ea26f43e511f3754
[ "MIT" ]
null
null
null
setup.py
chenbowen/py-thin-plate-spline
e82af945a30b229887807594ea26f43e511f3754
[ "MIT" ]
null
null
null
# Copyright 2018 Christoph Heindl. # # Licensed under MIT License # ============================================================ import os try: from setuptools import setup except ImportError: from distutils.core import setup with open('requirements.txt') as f: required = f.read().splitlines() setup( ...
27.666667
82
0.641232
4a164d786d324bbacd828f751fe19d861e14d010
3,296
py
Python
mars/scheduler/service.py
sighingnow/mars
c7897fbd144d230fff5edabc1494fb3ff44aa0d2
[ "Apache-2.0" ]
null
null
null
mars/scheduler/service.py
sighingnow/mars
c7897fbd144d230fff5edabc1494fb3ff44aa0d2
[ "Apache-2.0" ]
null
null
null
mars/scheduler/service.py
sighingnow/mars
c7897fbd144d230fff5edabc1494fb3ff44aa0d2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2018 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
40.691358
98
0.707221
4a164da6565e0ab422f64e32d093d86c8f112f6a
16,553
py
Python
utils/eval_tool.py
wen0618/simple-faster-rcnn-pytorch
b5c41eeaf9f0641f65bdd6fe0d7f1301bd1cabf3
[ "MIT" ]
null
null
null
utils/eval_tool.py
wen0618/simple-faster-rcnn-pytorch
b5c41eeaf9f0641f65bdd6fe0d7f1301bd1cabf3
[ "MIT" ]
null
null
null
utils/eval_tool.py
wen0618/simple-faster-rcnn-pytorch
b5c41eeaf9f0641f65bdd6fe0d7f1301bd1cabf3
[ "MIT" ]
null
null
null
from __future__ import division from collections import defaultdict import itertools import numpy as np import six from model.utils.bbox_tools import bbox_iou #根据PASCAL VOC的evaluation code 计算平均精度 def eval_detection_voc( pred_bboxes, pred_labels, pred_scores, gt_bboxes, gt_labels, gt_difficults=None, ...
48.973373
106
0.604362
4a164e79f594e409266fc65a805a343d7352aa70
2,152
py
Python
setup.py
samrui/reelog
807a1caf0bacdf60366ca14e3dd84435acc3491e
[ "Apache-2.0" ]
null
null
null
setup.py
samrui/reelog
807a1caf0bacdf60366ca14e3dd84435acc3491e
[ "Apache-2.0" ]
null
null
null
setup.py
samrui/reelog
807a1caf0bacdf60366ca14e3dd84435acc3491e
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 import os import io import sys from setuptools import setup, find_packages, Command from shutil import rmtree NAME = 'reelog' DESCRIPTION = 'python log best practice.' URL = '' EMAIL = 'samrui0129@gmail.com' AUTHOR = 'Sam Rui' REQUIRES_PYTHON = '>=2.7.0' VERSION = '1.6.7' REQUIRED = [ ] EXTRAS = {...
23.911111
86
0.63987
4a164ec7c129376f5fb83e072b0dc5a660562daa
167
py
Python
general-practice/Exercises solved/w3resource/basic/Exercise52.py
lugabrielbueno/Projeto
f012c5bb9ce6f6d7c9e8196cc7986127dba3eba0
[ "MIT" ]
null
null
null
general-practice/Exercises solved/w3resource/basic/Exercise52.py
lugabrielbueno/Projeto
f012c5bb9ce6f6d7c9e8196cc7986127dba3eba0
[ "MIT" ]
null
null
null
general-practice/Exercises solved/w3resource/basic/Exercise52.py
lugabrielbueno/Projeto
f012c5bb9ce6f6d7c9e8196cc7986127dba3eba0
[ "MIT" ]
null
null
null
#Write a Python program to print to stderr import sys def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) eprint("abc", "efg", "xyz", sep="--")
20.875
43
0.646707
4a164ecc7631250db45f87cf9aacc31fa97b0fe8
8,442
py
Python
lib/python2.7/site-packages/pyscope/falconframe.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/pyscope/falconframe.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/pyscope/falconframe.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
#!/usr/bin/env python import math import sys import os import time import xml.dom.minidom import xml.etree.ElementTree as et import itertools class FalconFrameConfigXmlMaker(object): ''' Create Falcon IntermediateConfig.xml for given exposure time either when frames to be saved and not. The raw frames are put in l...
31.617978
105
0.74461
4a164ecc9bf3379193920e2e5114bc71f30596c9
8,110
py
Python
DexiNed Files/imageSVHN.py
cschwa11/Data502FP
5255118eeca0e482474ae1119057b60ac013d61c
[ "MIT" ]
null
null
null
DexiNed Files/imageSVHN.py
cschwa11/Data502FP
5255118eeca0e482474ae1119057b60ac013d61c
[ "MIT" ]
null
null
null
DexiNed Files/imageSVHN.py
cschwa11/Data502FP
5255118eeca0e482474ae1119057b60ac013d61c
[ "MIT" ]
2
2021-11-23T16:59:08.000Z
2021-11-23T17:01:43.000Z
import os import cv2 import numpy as np import torch import kornia as kn def image_normalization(img, img_min=0, img_max=255, epsilon=1e-12): """This is a typical image normalization function where the minimum and maximum of the image is needed source: https://en.wikipedia.org/wik...
36.367713
107
0.535018
4a164fabbbf2d98362f99c47750ec364d7c292ba
630
py
Python
pfm/pf_command/base.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
9
2018-01-06T05:44:43.000Z
2020-06-24T00:15:16.000Z
pfm/pf_command/base.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
27
2018-01-06T09:29:48.000Z
2020-04-10T16:11:59.000Z
pfm/pf_command/base.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
1
2018-01-09T01:33:42.000Z
2018-01-09T01:33:42.000Z
from abc import abstractmethod import os from pfm.util.log import logger class BaseCommand(object): def __init__(self, config_path): self.config_path = config_path if self.config_path is None: logger.info('config_path set to None...') logger.info('Skip creating setting f...
24.230769
86
0.588889
4a164fe62f91734e448d14c0eabf53a79897b3a8
12,606
py
Python
intersight/model/adapter_ext_eth_interface_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/adapter_ext_eth_interface_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/adapter_ext_eth_interface_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
54.571429
1,678
0.644138
4a1650294cc39e69e2c3a591f942fef999e8736c
391
py
Python
pyobs/interfaces/ISyncTarget.py
pyobs/pyobs-core
e3401e63eb31587c2bc535f7346b7e4ef69d64ab
[ "MIT" ]
4
2020-02-14T10:50:03.000Z
2022-03-25T04:15:06.000Z
pyobs/interfaces/ISyncTarget.py
pyobs/pyobs-core
e3401e63eb31587c2bc535f7346b7e4ef69d64ab
[ "MIT" ]
60
2020-09-14T09:10:20.000Z
2022-03-25T17:51:42.000Z
pyobs/interfaces/ISyncTarget.py
pyobs/pyobs-core
e3401e63eb31587c2bc535f7346b7e4ef69d64ab
[ "MIT" ]
2
2020-10-14T09:34:57.000Z
2021-04-27T09:35:57.000Z
from .interface import * class ISyncTarget(Interface): """The module can synchronize a target, e.g. via a telescope control software behinde an :class:`~pyobs.interfaces.ITelescope`.""" __module__ = 'pyobs.interfaces' def sync_target(self, *args, **kwargs): """Synchronize device on current ta...
26.066667
92
0.690537
4a1650ec73309cef25c00fa227626ba4a042de5f
316
py
Python
tests/utils.py
acutexyz/monkeyideas
062ffa16f3bdf1fa57338837b50bfddfebdecdac
[ "MIT" ]
null
null
null
tests/utils.py
acutexyz/monkeyideas
062ffa16f3bdf1fa57338837b50bfddfebdecdac
[ "MIT" ]
null
null
null
tests/utils.py
acutexyz/monkeyideas
062ffa16f3bdf1fa57338837b50bfddfebdecdac
[ "MIT" ]
null
null
null
from app.models import Idea def create_idea_by_monkey(session, monkey): """Creates and returns new idea authored by given monkey """ idea = Idea( title='-', body='-', author_id=monkey.id, is_public=True ) session.add(idea) session.commit() return idea
21.066667
60
0.598101
4a165206245bb09480355c46293bd577294b422a
3,149
py
Python
src/annalist_root/utils/StdoutContext.py
gklyne/annalist
82e7ef2d56a400325e7618fa9e590072ee8a71d3
[ "MIT" ]
18
2015-02-20T23:09:13.000Z
2020-11-13T06:06:43.000Z
src/annalist_root/utils/StdoutContext.py
gklyne/annalist
82e7ef2d56a400325e7618fa9e590072ee8a71d3
[ "MIT" ]
30
2015-01-03T09:56:28.000Z
2021-06-10T20:58:55.000Z
src/annalist_root/utils/StdoutContext.py
gklyne/annalist
82e7ef2d56a400325e7618fa9e590072ee8a71d3
[ "MIT" ]
5
2015-02-02T09:01:23.000Z
2018-06-14T20:05:28.000Z
#!/usr/bin/python """ Context managers for redirecting stdout and stderr to a supplied file or stream """ from __future__ import unicode_literals from __future__ import absolute_import, division, print_function __author__ = "Graham Klyne (GK@ACM.ORG)" __copyright__ = "Copyright 2011-2014, University of Oxford"...
28.369369
107
0.625913
4a16523e660f07f3d1680937e1726082b4b6792a
470
py
Python
sync/rest/list-permissions/delete-permission/delete-permission.6.x.py
azaddeveloper/api-snippets
f88b153cd7186fa70b33733b205886502db0d1f2
[ "MIT" ]
3
2020-05-05T10:01:02.000Z
2021-02-06T14:23:13.000Z
sync/rest/list-permissions/delete-permission/delete-permission.6.x.py
azaddeveloper/api-snippets
f88b153cd7186fa70b33733b205886502db0d1f2
[ "MIT" ]
null
null
null
sync/rest/list-permissions/delete-permission/delete-permission.6.x.py
azaddeveloper/api-snippets
f88b153cd7186fa70b33733b205886502db0d1f2
[ "MIT" ]
1
2019-10-02T14:36:36.000Z
2019-10-02T14:36:36.000Z
# Download the Python helper library from twilio.com/docs/python/install from twilio.rest import Client # Your Account Sid and Auth Token from twilio.com/console account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" auth_token = "your_auth_token" client = Client(account_sid, auth_token) did_delete = client.sync \ .s...
29.375
72
0.77234
4a16536df294a27d8dbb39b18a23a820ba21eda7
1,104
py
Python
registersKtob.py
Gyrst/HyperLogLog
73b485999ed4dd9657fbcbbc7f0ca5b7d0b17449
[ "Apache-2.0" ]
null
null
null
registersKtob.py
Gyrst/HyperLogLog
73b485999ed4dd9657fbcbbc7f0ca5b7d0b17449
[ "Apache-2.0" ]
null
null
null
registersKtob.py
Gyrst/HyperLogLog
73b485999ed4dd9657fbcbbc7f0ca5b7d0b17449
[ "Apache-2.0" ]
null
null
null
from hashSuggested import hash_A from rhoSuggested import rho import fileinput def f(x): res = ((x*0xbc164501) & 0x7fffffff) >> 21 return res A = [0x21ae4036, 0x32435171, 0xac3338cf, 0xea97b40c, 0x0e504b22, 0x9ff9a4ef, 0x111d014d, ...
22.08
45
0.464674
4a1654d228f0f58fe1bf5f492b681c8065bf45eb
2,577
py
Python
examples/model_selection/plot_train_error_vs_test_error.py
DeuroIO/Deuro-scikit-learn
9dd09a19593d1224077fe0d1a754aed936269528
[ "MIT" ]
5
2018-07-04T22:13:54.000Z
2018-07-04T22:21:29.000Z
examples/model_selection/plot_train_error_vs_test_error.py
DeuroIO/Deuro-scikit-learn
9dd09a19593d1224077fe0d1a754aed936269528
[ "MIT" ]
null
null
null
examples/model_selection/plot_train_error_vs_test_error.py
DeuroIO/Deuro-scikit-learn
9dd09a19593d1224077fe0d1a754aed936269528
[ "MIT" ]
1
2018-02-25T21:40:51.000Z
2018-02-25T21:40:51.000Z
""" ========================= Train error vs Test error ========================= Illustration of how the performance of an estimator on unseen data (test data) is not the same as the performance on training data. As the regularization increases the performance on train decreases while the performance on test is optim...
33.907895
79
0.670159
4a1654d50500fdf03c56cb4f92b199944fc58b3b
15,974
py
Python
deviceupdownstatus.py
zabrewer/automation-scripts
cd9f4ab8227333412baeba659d5a9fea4343e78f
[ "MIT" ]
1
2021-01-09T21:18:52.000Z
2021-01-09T21:18:52.000Z
deviceupdownstatus.py
zabrewer/automation-scripts
cd9f4ab8227333412baeba659d5a9fea4343e78f
[ "MIT" ]
null
null
null
deviceupdownstatus.py
zabrewer/automation-scripts
cd9f4ab8227333412baeba659d5a9fea4343e78f
[ "MIT" ]
1
2020-12-02T19:51:43.000Z
2020-12-02T19:51:43.000Z
# This is a script to print a list of all devices in a organization's inventory and their up/down status. # The script will not return up/down status for MV security cameras, as this was not supported at time of writing. # # To run the script, enter: # python deviceupdownstatus.py -k <api key> -o <org name> [-a <...
38.033333
245
0.585201
4a16552239e1dfdb75d4b0c2c660842d97a3492a
16,160
py
Python
plugins/modules/oci_compute_instance_agent_instance_agent_command_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_compute_instance_agent_instance_agent_command_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_compute_instance_agent_instance_agent_command_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
41.119593
144
0.559158
4a16570646470a41122dfc228149cf254c1cc807
1,989
py
Python
test_pypheus/test_pypheus_network.py
xod442/pypheus
11988d7c0efe2772bca80c2d40a71cc8ba707153
[ "Apache-2.0" ]
null
null
null
test_pypheus/test_pypheus_network.py
xod442/pypheus
11988d7c0efe2772bca80c2d40a71cc8ba707153
[ "Apache-2.0" ]
null
null
null
test_pypheus/test_pypheus_network.py
xod442/pypheus
11988d7c0efe2772bca80c2d40a71cc8ba707153
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Module for testing the functions in pypheus.network. """ import os import vcr from unittest import TestCase from unittest import mock from nose.plugins.skip import SkipTest import urllib3 urllib3.disable_warnings() import json import requests from pypheus.network import Network from pypheu...
28.414286
87
0.694822
4a16570c89a08877faed85f18323f571160971b3
425
py
Python
htf/__init__.py
oktak/hoomd-tf
357b5c365781612b574d8fb34592ab7247e611e6
[ "MIT" ]
null
null
null
htf/__init__.py
oktak/hoomd-tf
357b5c365781612b574d8fb34592ab7247e611e6
[ "MIT" ]
null
null
null
htf/__init__.py
oktak/hoomd-tf
357b5c365781612b574d8fb34592ab7247e611e6
[ "MIT" ]
null
null
null
# Copyright (c) 2018 Andrew White at the University of Rochester # This file is part of the Hoomd-Tensorflow plugin developed by Andrew White # need to import md to have library available. import hoomd.md # import make reverse for testing purposes from .tfcompute import tfcompute, _make_reverse_indices from .graphbuil...
35.416667
76
0.807059
4a1658d900dce3c12cbf6de624e68fbbd6823352
15,868
py
Python
allennlp/models/semantic_role_labeler.py
loopylangur/allennlp
0fc695b08a0376317e45ae0a45584aa9eb14beb6
[ "Apache-2.0" ]
null
null
null
allennlp/models/semantic_role_labeler.py
loopylangur/allennlp
0fc695b08a0376317e45ae0a45584aa9eb14beb6
[ "Apache-2.0" ]
null
null
null
allennlp/models/semantic_role_labeler.py
loopylangur/allennlp
0fc695b08a0376317e45ae0a45584aa9eb14beb6
[ "Apache-2.0" ]
null
null
null
from typing import Dict, List, TextIO, Optional, Any import warnings from overrides import overrides import torch from torch.nn.modules import Linear, Dropout import torch.nn.functional as F from allennlp.common.checks import check_dimensions_match from allennlp.data import Vocabulary from allennlp.models.srl_util im...
45.467049
112
0.667696
4a165ac7d5dda0ab76a427db33686688f165044d
2,957
py
Python
setup.py
True-Demon/smoke-zephyr
bf398416c0ece69ecf4a440d73f1a5c5670897cd
[ "BSD-3-Clause" ]
null
null
null
setup.py
True-Demon/smoke-zephyr
bf398416c0ece69ecf4a440d73f1a5c5670897cd
[ "BSD-3-Clause" ]
null
null
null
setup.py
True-Demon/smoke-zephyr
bf398416c0ece69ecf4a440d73f1a5c5670897cd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # setup.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of condition...
36.506173
88
0.747379
4a165c494bfcb45d5a67693b0d3f68a9db8e459a
6,467
py
Python
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/python/estimator/gc.py
JustinACoder/H22-GR3-UnrealAI
361eb9ef1147f8a2991e5f98c4118cd823184adf
[ "MIT" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/python/estimator/gc.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/tensorflow/python/estimator/gc.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.000Z
# Copyright 2016 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 required by...
30.504717
81
0.645431
4a165c533148fa693119dd2942c7bec0567bbce3
1,771
py
Python
bin.d/ssh-import-id.py
hlecuanda/zconf
3e07e5104d07b846294b797f082fb09727f005da
[ "BSD-2-Clause" ]
2
2019-02-26T08:06:55.000Z
2019-09-11T05:14:48.000Z
bin.d/ssh-import-id.py
hlecuanda/zconf
3e07e5104d07b846294b797f082fb09727f005da
[ "BSD-2-Clause" ]
1
2018-02-20T22:43:24.000Z
2018-02-20T22:43:24.000Z
bin.d/ssh-import-id.py
hlecuanda/zconf
3e07e5104d07b846294b797f082fb09727f005da
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/python3 # # ssh-import-id - Authorize SSH public keys from trusted online identities # # Copyright (c) 2013 Casey Marshall <casey.marshall@gmail.com> # Copyright (c) 2013-16 Dustin Kirkland <dustin.kirkland@gmail.com> # # ssh-import-id is free software: you can redistribute it and/or modify # it under the t...
28.564516
74
0.687747
4a165caf113ee0eb9e2cc66382562da62f57888f
64,646
py
Python
cms/admin/pageadmin.py
leture/django-cms
a022f2cd9eb18a85765ef7c00444c9b63e53008e
[ "BSD-3-Clause" ]
null
null
null
cms/admin/pageadmin.py
leture/django-cms
a022f2cd9eb18a85765ef7c00444c9b63e53008e
[ "BSD-3-Clause" ]
null
null
null
cms/admin/pageadmin.py
leture/django-cms
a022f2cd9eb18a85765ef7c00444c9b63e53008e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import copy from functools import wraps import json import sys from cms.utils.compat import DJANGO_1_7 import django from django.contrib.admin.helpers import AdminForm from django.conf import settings from django.conf.urls import url from django.contrib import admin, messages from django.contri...
44.706777
142
0.615135