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
2353273d47efdbb342a6334e2f9f5a0908106e19
1,145
py
Python
icon_unit_test_demo/actions/add_numbers/schema.py
jmcadams-r7/insightconnect-unit-test-demo
5d77e2f99d337afb4c471ea0e92dcfe3fc05e7ec
[ "MIT" ]
null
null
null
icon_unit_test_demo/actions/add_numbers/schema.py
jmcadams-r7/insightconnect-unit-test-demo
5d77e2f99d337afb4c471ea0e92dcfe3fc05e7ec
[ "MIT" ]
null
null
null
icon_unit_test_demo/actions/add_numbers/schema.py
jmcadams-r7/insightconnect-unit-test-demo
5d77e2f99d337afb4c471ea0e92dcfe3fc05e7ec
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Add Numbers" class Input: NUMBER1 = "number1" NUMBER2 = "number2" class Output: ANSWER = "answer" class AddNumbersInput(komand.Input): schema = json.loads(""" { "type": "object", ...
16.357143
57
0.536245
49cbfae72b701a14401720157c23dadddc3af75e
3,430
py
Python
examples/ex4/ex4/settings.py
jroslaniec/django-msg
deeced1d12b111f649eeb3789371be03d16fe7e3
[ "MIT" ]
7
2018-02-28T19:03:48.000Z
2020-12-21T01:15:34.000Z
examples/ex4/ex4/settings.py
jroslaniec/django-msg
deeced1d12b111f649eeb3789371be03d16fe7e3
[ "MIT" ]
null
null
null
examples/ex4/ex4/settings.py
jroslaniec/django-msg
deeced1d12b111f649eeb3789371be03d16fe7e3
[ "MIT" ]
null
null
null
""" Django settings for ex4 project. Generated by 'django-admin startproject' using Django 2.0.2. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os # Buil...
24.5
91
0.689504
f8631ac2cbde366bb329dac7cc6ce8277fe4b313
12,680
py
Python
NiceHashTrade/nicehash.py
carle13/PythonTrader
43901b66d19b44f7b26b8713e6b789df0590b2ca
[ "MIT" ]
null
null
null
NiceHashTrade/nicehash.py
carle13/PythonTrader
43901b66d19b44f7b26b8713e6b789df0590b2ca
[ "MIT" ]
null
null
null
NiceHashTrade/nicehash.py
carle13/PythonTrader
43901b66d19b44f7b26b8713e6b789df0590b2ca
[ "MIT" ]
null
null
null
from datetime import datetime from time import mktime import uuid import hmac import requests import json from hashlib import sha256 import optparse import sys class public_api: def __init__(self, host, verbose=False): self.host = host self.verbose = verbose def request(self, method, path, q...
38.776758
155
0.617035
2dd6248a90741d82f8389d6e8d0414a507b56911
12,497
py
Python
oggm/tests/test_graphics.py
lilianschuster/oggm
6a93bb19514f01a8c376ddad5cb8cb232b0f7c5e
[ "BSD-3-Clause" ]
null
null
null
oggm/tests/test_graphics.py
lilianschuster/oggm
6a93bb19514f01a8c376ddad5cb8cb232b0f7c5e
[ "BSD-3-Clause" ]
null
null
null
oggm/tests/test_graphics.py
lilianschuster/oggm
6a93bb19514f01a8c376ddad5cb8cb232b0f7c5e
[ "BSD-3-Clause" ]
null
null
null
import warnings import pytest import shutil import os import matplotlib.pyplot as plt import numpy as np salem = pytest.importorskip('salem') gpd = pytest.importorskip('geopandas') # Local imports import oggm.utils from oggm.tests import mpl_image_compare from oggm.tests.funcs import init_hef, get_test_dir from ogg...
28.020179
78
0.681284
d06091d2f9789e4aa7b65d331e8bb42cab369b6e
524
py
Python
src/ava/util/codecs.py
nickchen-mitac/fork
64dab56012da47465b4923f30f26925476c87afc
[ "Apache-2.0" ]
null
null
null
src/ava/util/codecs.py
nickchen-mitac/fork
64dab56012da47465b4923f30f26925476c87afc
[ "Apache-2.0" ]
null
null
null
src/ava/util/codecs.py
nickchen-mitac/fork
64dab56012da47465b4923f30f26925476c87afc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Various encoding/decoding helpers. """ from __future__ import print_function, division, absolute_import import base64 def base64url_encode(src): """ URL-safe base64 encoding without padding. :param src: :return: """ return base64.urlsafe_b64encode(src).replace('=...
18.714286
64
0.648855
93bf25c16c50d5817637ad23c764397334a72f30
13,112
py
Python
sdk/lusid/models/fixed_leg_all_of.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
sdk/lusid/models/fixed_leg_all_of.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
sdk/lusid/models/fixed_leg_all_of.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.4425 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
42.990164
530
0.667251
e0fe6ab2c3c1a28fdebc1564dcaf7d0f03909962
8,350
py
Python
tests/test_install.py
joshuamosesb/gramex
e416cb609698b5941a18b06743c853dee50e0500
[ "MIT" ]
1
2020-05-17T18:03:44.000Z
2020-05-17T18:03:44.000Z
tests/test_install.py
joshuamosesb/gramex
e416cb609698b5941a18b06743c853dee50e0500
[ "MIT" ]
null
null
null
tests/test_install.py
joshuamosesb/gramex
e416cb609698b5941a18b06743c853dee50e0500
[ "MIT" ]
null
null
null
import os import sys import requests import unittest import subprocess from pathlib import Path from shutilwhich import which from orderedattrdict import AttrDict from six.moves.urllib.parse import urljoin import gramex from gramex.config import variables, PathConfig from gramex.install import install, uninstall, run f...
41.75
98
0.624311
53bf945934d1224b807a7260028390b9f732355b
51,845
py
Python
simpletransformers/language_modeling/language_modeling_model.py
hjc3613/simpletransformers
bce58639f3fa8f45f445b053b5aaae428c3c5429
[ "Apache-2.0" ]
null
null
null
simpletransformers/language_modeling/language_modeling_model.py
hjc3613/simpletransformers
bce58639f3fa8f45f445b053b5aaae428c3c5429
[ "Apache-2.0" ]
null
null
null
simpletransformers/language_modeling/language_modeling_model.py
hjc3613/simpletransformers
bce58639f3fa8f45f445b053b5aaae428c3c5429
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from __future__ import absolute_import, division, print_function import json import logging import math import os import random import warnings from multiprocessing import cpu_count from typing import Dict, List import numpy as np from sklearn.metrics import ( confusion_mat...
44.965308
194
0.56422
7da06b61388ec4b36b50fbf29209611ff1bd2345
1,223
py
Python
simul_run.py
oddhyeon/AI-Stock-bot
fd2102cf3862b4b0b2d6bedc20a7fef5452d3493
[ "MIT" ]
1
2020-12-31T08:16:03.000Z
2020-12-31T08:16:03.000Z
simul_run.py
oddhyeon/AI-Stock-bot
fd2102cf3862b4b0b2d6bedc20a7fef5452d3493
[ "MIT" ]
null
null
null
simul_run.py
oddhyeon/AI-Stock-bot
fd2102cf3862b4b0b2d6bedc20a7fef5452d3493
[ "MIT" ]
null
null
null
import sys import pathlib import subprocess class Simulrun(): def __init__(self): self.input_value() def input_value(self): file_path = pathlib.Path(__file__).parent.absolute() / 'simulator_v2.py' print("file_path: ", file_path) print("sys.argv : ", sys.argv) if len(sy...
30.575
85
0.529027
47401ddb9546d5b32a5d36c6731981aabe0ca7cd
5,461
py
Python
tests/fpgadataflow/test_fpgadataflow_duplicatestreams.py
alinavalinav/finn
e443a5859066a410a63c08dcfec4a90527ca24be
[ "BSD-3-Clause" ]
1
2020-12-21T07:37:57.000Z
2020-12-21T07:37:57.000Z
tests/fpgadataflow/test_fpgadataflow_duplicatestreams.py
alinavalinav/finn
e443a5859066a410a63c08dcfec4a90527ca24be
[ "BSD-3-Clause" ]
null
null
null
tests/fpgadataflow/test_fpgadataflow_duplicatestreams.py
alinavalinav/finn
e443a5859066a410a63c08dcfec4a90527ca24be
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Xilinx # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the follow...
38.730496
80
0.733748
d214a2af913d7a74761b8f3430efc227e7e4c8a1
14,639
py
Python
Implementations/FasterSubsetSum/RandomizedMultiThreadedVer2.py
joakiti/Benchmark-SubsetSums
a875b5adf7f800d26b73516452904031c73ec29d
[ "MIT" ]
null
null
null
Implementations/FasterSubsetSum/RandomizedMultiThreadedVer2.py
joakiti/Benchmark-SubsetSums
a875b5adf7f800d26b73516452904031c73ec29d
[ "MIT" ]
null
null
null
Implementations/FasterSubsetSum/RandomizedMultiThreadedVer2.py
joakiti/Benchmark-SubsetSums
a875b5adf7f800d26b73516452904031c73ec29d
[ "MIT" ]
null
null
null
import math import multiprocessing import os import queue import time from collections import defaultdict from copy import copy from multiprocessing import shared_memory import copy import numpy as np from scipy.signal import fftconvolve from Implementations.helpers.Helper import toNumbers, ListToPolynomial from Impl...
37.632391
118
0.568413
3af673ba45b806283fbf36c3e2f36fea4240a622
1,079
py
Python
setup.py
BigelowLab/tetramerpcapy
2813ebcac5a10a0e58be4d922296a0b92a4e8768
[ "MIT" ]
null
null
null
setup.py
BigelowLab/tetramerpcapy
2813ebcac5a10a0e58be4d922296a0b92a4e8768
[ "MIT" ]
2
2020-11-19T14:35:33.000Z
2020-12-11T19:11:13.000Z
setup.py
BigelowLab/tetramerpcapy
2813ebcac5a10a0e58be4d922296a0b92a4e8768
[ "MIT" ]
null
null
null
import os import io from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() def get_version(relpath): '''Read version info from a file without importing it''' for line in io.open(os.path.join(os.path.dirname(__file__), relpath), encoding='cp437'):...
26.317073
92
0.593142
a0cca9e86a7e73c575f7d2efa298848d3ae0df11
5,946
py
Python
vispy/visuals/tests/test_mesh.py
yxdragon/vispy
47ba1f5a06d8588f3a1a329c50cd0f910ecce62d
[ "BSD-3-Clause" ]
1
2021-10-31T05:43:29.000Z
2021-10-31T05:43:29.000Z
vispy/visuals/tests/test_mesh.py
yxdragon/vispy
47ba1f5a06d8588f3a1a329c50cd0f910ecce62d
[ "BSD-3-Clause" ]
null
null
null
vispy/visuals/tests/test_mesh.py
yxdragon/vispy
47ba1f5a06d8588f3a1a329c50cd0f910ecce62d
[ "BSD-3-Clause" ]
1
2018-09-17T07:00:38.000Z
2018-09-17T07:00:38.000Z
# -*- coding: utf-8 -*- import numpy as np from vispy import scene from vispy.geometry import create_cube, create_sphere from vispy.testing import (TestingCanvas, requires_application, run_tests_if_main, requires_pyopengl) from vispy.visuals.filters import WireframeFilter import pytest @...
38.61039
79
0.636226
c1fb6efac361f959a49460ef5db786c8dea7604c
3,056
py
Python
syngenta_digital_alc/apigateway/response_client.py
syngenta-digital/package-python-alc
74c712d8a94078b922aca22e319a0cb4b035228b
[ "Apache-2.0" ]
null
null
null
syngenta_digital_alc/apigateway/response_client.py
syngenta-digital/package-python-alc
74c712d8a94078b922aca22e319a0cb4b035228b
[ "Apache-2.0" ]
10
2021-10-19T23:08:46.000Z
2022-01-12T23:17:19.000Z
syngenta_digital_alc/apigateway/response_client.py
syngenta-digital/package-python-alc
74c712d8a94078b922aca22e319a0cb4b035228b
[ "Apache-2.0" ]
null
null
null
import base64 import gzip from io import BytesIO import simplejson as json from syngenta_digital_alc.common import json_helper class ResponseClient: def __init__(self): self.__body = {} self.__code = 200 self.__base64_encoded = False self.__compress = False self.__header...
27.285714
84
0.589005
91367afd5d5670e8c6575994c0567f8e9e6965de
1,592
py
Python
cloudify_aws/elb/__init__.py
jrzeszutek/cloudify-aws-plugin
59832b4ac5ddad496110085ed2e21dd36db5e9df
[ "Apache-2.0" ]
13
2015-05-28T23:21:05.000Z
2022-03-20T05:38:20.000Z
cloudify_aws/elb/__init__.py
jrzeszutek/cloudify-aws-plugin
59832b4ac5ddad496110085ed2e21dd36db5e9df
[ "Apache-2.0" ]
49
2015-01-04T16:05:34.000Z
2022-03-27T11:35:13.000Z
cloudify_aws/elb/__init__.py
jrzeszutek/cloudify-aws-plugin
59832b4ac5ddad496110085ed2e21dd36db5e9df
[ "Apache-2.0" ]
41
2015-01-21T17:16:05.000Z
2022-03-31T06:47:48.000Z
# Copyright (c) 2018 Cloudify Platform Ltd. 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 ap...
30.615385
77
0.693467
ff407c49c4dfc6c4da374d5ad50134b7e4ac64a5
8,687
py
Python
numba/dbscan/CPU/base_dbscan.py
geexie/dpbench
7d41409ded3c816f35003bc5aea071852bceb892
[ "BSD-2-Clause" ]
8
2021-03-26T15:17:58.000Z
2022-01-21T21:56:19.000Z
numba/dbscan/CPU/base_dbscan.py
geexie/dpbench
7d41409ded3c816f35003bc5aea071852bceb892
[ "BSD-2-Clause" ]
22
2021-03-30T21:20:57.000Z
2022-02-22T13:42:17.000Z
numba/dbscan/CPU/base_dbscan.py
geexie/dpbench
7d41409ded3c816f35003bc5aea071852bceb892
[ "BSD-2-Clause" ]
7
2021-03-23T11:00:43.000Z
2022-02-02T12:28:55.000Z
# ***************************************************************************** # Copyright (c) 2020, Intel Corporation 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 sou...
39.307692
105
0.613791
323e2cefdca6164966c1d1bf02eb5bc6de23c429
4,659
py
Python
tf_agents/bandits/policies/mixture_policy.py
ayansengupta17/agents
c5a2f1f57d4fd0070eb75204aa0b1663de3e2c0a
[ "Apache-2.0" ]
2
2021-10-30T16:57:37.000Z
2021-11-17T10:21:17.000Z
tf_agents/bandits/policies/mixture_policy.py
ayansengupta17/agents
c5a2f1f57d4fd0070eb75204aa0b1663de3e2c0a
[ "Apache-2.0" ]
null
null
null
tf_agents/bandits/policies/mixture_policy.py
ayansengupta17/agents
c5a2f1f57d4fd0070eb75204aa0b1663de3e2c0a
[ "Apache-2.0" ]
2
2020-06-05T18:38:16.000Z
2020-07-08T14:41:42.000Z
# coding=utf-8 # Copyright 2018 The TF-Agents 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...
38.825
80
0.708307
9ad3f3228e2c412fa54ce3cafd6fab51aaa8149d
1,885
py
Python
activeClassifier/env/mnist.py
dHonerkamp/ActiveClassifier
052675277153594db64261cd56699a057e633de2
[ "Apache-2.0" ]
null
null
null
activeClassifier/env/mnist.py
dHonerkamp/ActiveClassifier
052675277153594db64261cd56699a057e633de2
[ "Apache-2.0" ]
null
null
null
activeClassifier/env/mnist.py
dHonerkamp/ActiveClassifier
052675277153594db64261cd56699a057e633de2
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf def get_MNIST(FLAGS): mnist = tf.keras.datasets.mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() x_train = x_train.astype(np.float32) x_test = x_test.astype(np.float32) x_train, x_test = x_train / 255.0, x_test / 255.0 n_valid = 5000 ...
43.837209
143
0.668435
1b19d3b557b94034d73e7b2bb641b2ff1dd3d84e
1,257
py
Python
homeassistant/components/ais_intro/__init__.py
DRubioBizcaino/AIS-home-assistant
69d49b6e6e09313acd63375ac6c08f79be8b904c
[ "Apache-2.0" ]
1
2020-05-11T19:20:07.000Z
2020-05-11T19:20:07.000Z
homeassistant/components/ais_intro/__init__.py
DRubioBizcaino/AIS-home-assistant
69d49b6e6e09313acd63375ac6c08f79be8b904c
[ "Apache-2.0" ]
null
null
null
homeassistant/components/ais_intro/__init__.py
DRubioBizcaino/AIS-home-assistant
69d49b6e6e09313acd63375ac6c08f79be8b904c
[ "Apache-2.0" ]
null
null
null
""" Component that will help guide the user taking its first steps. """ import asyncio import logging DOMAIN = "ais_intro" @asyncio.coroutine def async_setup(hass, config=None): """Set up the introduction component.""" log = logging.getLogger(__name__) log.info( """ ~~~~~~~~~~~~~~~~~~~~~~~~...
22.446429
79
0.563246
526ef957d9361a2c5ec5f95403798056e7878844
966
py
Python
modules/data_handling.py
ShaderLight/clipboard-ota-server
b2ced3e012de8c56743f9889ffa0ca83b8b58ae8
[ "MIT" ]
null
null
null
modules/data_handling.py
ShaderLight/clipboard-ota-server
b2ced3e012de8c56743f9889ffa0ca83b8b58ae8
[ "MIT" ]
null
null
null
modules/data_handling.py
ShaderLight/clipboard-ota-server
b2ced3e012de8c56743f9889ffa0ca83b8b58ae8
[ "MIT" ]
null
null
null
import json class DataHandler: def __init__(self): self.path = 'resources/clipboard_data.json' if not self.file_exists(): with open(self.path, mode='w', encoding='utf-8') as f: json.dump({'text':'', 'timestamp':None}, f, ensure_ascii=False) def retrieve(self): ...
26.108108
79
0.556936
1ebe6cd8eb77e35ec1e0199f3895c749d6ce8b6b
381
py
Python
is/is/asgi.py
j-sulliman/iabg
ffa0f874bca360093c4db19be6935c2112b31852
[ "BSD-3-Clause" ]
null
null
null
is/is/asgi.py
j-sulliman/iabg
ffa0f874bca360093c4db19be6935c2112b31852
[ "BSD-3-Clause" ]
null
null
null
is/is/asgi.py
j-sulliman/iabg
ffa0f874bca360093c4db19be6935c2112b31852
[ "BSD-3-Clause" ]
null
null
null
""" ASGI config for is project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_M...
22.411765
78
0.779528
01fabbca80919413b82814f75b36d682ecb2adcf
2,024
py
Python
examples/simulations/pendulum_ode.py
kclamar/vedo
2fd8b02ba8debcabbf43f0a4decbc141854273e1
[ "CC0-1.0" ]
836
2020-06-14T02:38:12.000Z
2022-03-31T15:39:50.000Z
examples/simulations/pendulum_ode.py
kclamar/vedo
2fd8b02ba8debcabbf43f0a4decbc141854273e1
[ "CC0-1.0" ]
418
2020-06-14T10:51:32.000Z
2022-03-31T23:23:14.000Z
examples/simulations/pendulum_ode.py
kclamar/vedo
2fd8b02ba8debcabbf43f0a4decbc141854273e1
[ "CC0-1.0" ]
136
2020-06-14T02:26:41.000Z
2022-03-31T12:47:18.000Z
"""Double pendulum with ODE integration""" # Copyright (c) 2018, N. Rougier, https://github.com/rougier/pendulum # http://www.physics.usyd.edu.au/~wheat/dpend_html/solve_dpend.c # Adapted for vedo by M. Musy, 2021 import numpy as np import scipy.integrate as integrate from vedo import Axes, Line, Points, show, sin, cos...
36.142857
80
0.563735
5ad950fc80b78aac090fb64ded8f847d3d24f498
602
py
Python
kluctl/e2e/__init__.py
AljoschaP/kluctl
40007d2767b42c13ef9ed66de9322f374f35151e
[ "Apache-2.0" ]
26
2021-08-18T11:18:46.000Z
2022-03-16T09:28:43.000Z
kluctl/e2e/__init__.py
AljoschaP/kluctl
40007d2767b42c13ef9ed66de9322f374f35151e
[ "Apache-2.0" ]
4
2021-09-07T09:55:29.000Z
2022-03-03T09:05:01.000Z
kluctl/e2e/__init__.py
AljoschaP/kluctl
40007d2767b42c13ef9ed66de9322f374f35151e
[ "Apache-2.0" ]
4
2021-09-04T11:52:33.000Z
2022-03-16T09:18:20.000Z
import os import subprocess import pytest_kind pytest_kind.cluster.KIND_VERSION = "v0.11.1" pytest_kind.cluster.KUBECTL_VERSION = "v1.21.5" # Same as pytest_kind.cluster.KindCluster.kubectl, but with os.environment properly passed to the subprocess def my_kubectl(self, *args, **kwargs): self.ensure_kubectl() ...
26.173913
108
0.679402
bf1aedae5e54c86ae14ba7219101170b6c4b591c
256
py
Python
src/solutions/80.py
bshankar/euler
c866a661a94d15d3744c74d85149534efac2ca23
[ "MIT" ]
null
null
null
src/solutions/80.py
bshankar/euler
c866a661a94d15d3744c74d85149534efac2ca23
[ "MIT" ]
null
null
null
src/solutions/80.py
bshankar/euler
c866a661a94d15d3744c74d85149534efac2ca23
[ "MIT" ]
null
null
null
from mpmath import mp import math as m mp.dps = 105 def sd(n): ss = str(mp.sqrt(n)) ss = ss.replace('.', '')[:100] if len(ss) < 100: return 0 return sum(int(i) for i in ss) ans = 0 for n in range(101): ans += sd(n) print ans
15.058824
34
0.550781
a38ef85b58bf13163f68cf2a0024041cc652d981
4,340
py
Python
tests/test_classifier/test_classifier_integration.py
seandickert/plda
971fe9ac8df1a05f0e4e42eaee7b8419ed74c527
[ "Apache-2.0" ]
1
2020-07-29T08:50:58.000Z
2020-07-29T08:50:58.000Z
tests/test_classifier/test_classifier_integration.py
seandickert/plda
971fe9ac8df1a05f0e4e42eaee7b8419ed74c527
[ "Apache-2.0" ]
null
null
null
tests/test_classifier/test_classifier_integration.py
seandickert/plda
971fe9ac8df1a05f0e4e42eaee7b8419ed74c527
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Ravi Sojitra. 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...
33.384615
80
0.689171
83c0a718b3af1e42fa73a9f5fac84d889aa140e1
51,557
py
Python
userbot/modules/google_drive.py
GudMeong/ProjectBish
e24c940593086121f229f5cf1cbef8678448803f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/google_drive.py
GudMeong/ProjectBish
e24c940593086121f229f5cf1cbef8678448803f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/google_drive.py
GudMeong/ProjectBish
e24c940593086121f229f5cf1cbef8678448803f
[ "Naumen", "Condor-1.1", "MS-PL" ]
29
2020-03-29T11:56:01.000Z
2020-09-24T06:57:20.000Z
# Copyright (C) 2020 Adek Maulana # # SPDX-License-Identifier: GPL-3.0-or-later # This program 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 version 3 of the License, or # (at your option) any later v...
37.853891
79
0.485734
cd7fba92f6ffa494f8b2418963692aef3c7b1c90
1,081
py
Python
lab_1.py
yaala21-meet/meet2019y1lab1
cba647bbda4c2cb1424aa73f586d485f57f6c3d7
[ "MIT" ]
null
null
null
lab_1.py
yaala21-meet/meet2019y1lab1
cba647bbda4c2cb1424aa73f586d485f57f6c3d7
[ "MIT" ]
null
null
null
lab_1.py
yaala21-meet/meet2019y1lab1
cba647bbda4c2cb1424aa73f586d485f57f6c3d7
[ "MIT" ]
null
null
null
import turtle # space: 50 width: 100 # y -200 ~ -100 turtle.penup() turtle.goto(-200,200) turtle.right(90) turtle.pendown() turtle.forward(100) turtle.left(90) turtle.forward(100) turtle.left(90) turtle.forward(100) turtle.right(180) turtle.forward(300) # a -50 ~ 50 turtle.penup() turtle.goto (-50,200) turtle.pendown()...
17.15873
22
0.748381
d1758b93afeffa1502801b00c9a6b5aeda4dd2d1
9,514
py
Python
static/data/pre_processed/precompute_guides_msgpack_GRCm38.py
joshim5/CRISPR-Library-Designer
2def1e4351c82056587620f7520ec922761ac8f3
[ "BSD-3-Clause" ]
17
2017-05-24T18:57:56.000Z
2021-04-18T05:00:10.000Z
static/data/pre_processed/precompute_guides_msgpack_GRCm38.py
joshim5/CRISPR-Library-Designer
2def1e4351c82056587620f7520ec922761ac8f3
[ "BSD-3-Clause" ]
10
2017-09-11T09:17:51.000Z
2022-03-11T23:18:50.000Z
static/data/pre_processed/precompute_guides_msgpack_GRCm38.py
joshim5/CRISPR-Library-Designer
2def1e4351c82056587620f7520ec922761ac8f3
[ "BSD-3-Clause" ]
5
2017-07-28T23:59:51.000Z
2022-01-04T19:22:22.000Z
import msgpack import json import pickle import os.path from Queue import PriorityQueue import re import doench_score import azimuth.model_comparison import numpy as np import pandas as pd import csv from intervaltree import IntervalTree class GuideRNA(): """Holder of gRNA information""" def __init__(self, selecte...
38.208835
172
0.643683
5f11447a9d56ee9d5291d4ba0eb0556f2d0e9270
1,283
py
Python
main2.py
msburks/E01b-Smiles
dfafd5ce809cf2f90e1b5a322dd2394ef57c0f1d
[ "MIT" ]
null
null
null
main2.py
msburks/E01b-Smiles
dfafd5ce809cf2f90e1b5a322dd2394ef57c0f1d
[ "MIT" ]
null
null
null
main2.py
msburks/E01b-Smiles
dfafd5ce809cf2f90e1b5a322dd2394ef57c0f1d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import utils, open_color, arcade utils.check_version((3,7)) # Open the window. Set the window title and dimensions (width and height) arcade.open_window(800, 600, "Smiley Face Example") arcade.set_background_color(open_color.white) # Start the render process. This must be done before any drawi...
33.763158
87
0.763835
d01ef2c9aeb59f2b7a4798ff5d5652d4c7eb984b
3,876
py
Python
competitions/quora-question-pairs/feat3.py
gtesei/fast-furious
b974e6b71be92ad8892864794af57631291ebac1
[ "MIT" ]
19
2015-06-24T00:04:11.000Z
2021-02-28T16:55:44.000Z
competitions/quora-question-pairs/feat3.py
gtesei/fast-furious
b974e6b71be92ad8892864794af57631291ebac1
[ "MIT" ]
null
null
null
competitions/quora-question-pairs/feat3.py
gtesei/fast-furious
b974e6b71be92ad8892864794af57631291ebac1
[ "MIT" ]
4
2016-10-11T17:36:44.000Z
2019-08-16T10:03:04.000Z
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import os import gc import matplotlib.pyplot as plt import seaborn as sns ##x%matplotlib inline from nltk.corpus import stopwords from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_ex...
37.631068
118
0.624355
dcc14bb45489c8edacf84db11120b714db26f024
894
py
Python
wc_cli/config/core.py
KarrLab/wc
b2e0a18606816e6ce222c5aa9596b2b844748f18
[ "MIT" ]
null
null
null
wc_cli/config/core.py
KarrLab/wc
b2e0a18606816e6ce222c5aa9596b2b844748f18
[ "MIT" ]
2
2019-06-28T03:50:23.000Z
2019-06-28T15:50:34.000Z
wc_cli/config/core.py
KarrLab/wc
b2e0a18606816e6ce222c5aa9596b2b844748f18
[ "MIT" ]
null
null
null
""" Configuration :Author: Jonathan Karr <jonrkarr@gmail.com> :Date: 2018-05-16 :Copyright: 2018, Karr Lab :License: MIT """ import configobj import os import pkg_resources import wc_utils.config def get_config(extra=None): """ Get configuration Args: extra (:obj:`dict`, optional): additional confi...
26.294118
126
0.683445
c9868ac74e188e1545f6cd99b9e6b4f6d221bfff
12,088
py
Python
test/disabletest_adb_long_duration_recorder_old.py
louiscklaw/adb_long_duration_recorder
9bb43833de9255e6e3e5dd7302d2184b0c05897a
[ "MIT" ]
null
null
null
test/disabletest_adb_long_duration_recorder_old.py
louiscklaw/adb_long_duration_recorder
9bb43833de9255e6e3e5dd7302d2184b0c05897a
[ "MIT" ]
null
null
null
test/disabletest_adb_long_duration_recorder_old.py
louiscklaw/adb_long_duration_recorder
9bb43833de9255e6e3e5dd7302d2184b0c05897a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # init_py_dont_write_bytecode """ Helloworld boilder plate Naming style guideline https://google.github.io/styleguide/pyguide.html unittest documentation https://docs.python.org/3/library/unittest.html """ import os import sys import time import re import logging import fnmatch impo...
36.191617
243
0.687955
bddfd445daea1f69b4f5df9713f01ca3c71c96a7
3,340
py
Python
addons/blender-addon-fbx-bundle/modifier_offset_transform.py
V-Sekai/game-tools-V-Sekai
74eb79e9b97bb1954e647ed2f909f4f326189cb5
[ "MIT" ]
2
2021-12-21T16:38:58.000Z
2022-01-08T00:56:35.000Z
addons/blender-addon-fbx-bundle/modifier_offset_transform.py
V-Sekai/game-tools-V-Sekai
74eb79e9b97bb1954e647ed2f909f4f326189cb5
[ "MIT" ]
1
2022-01-29T05:46:50.000Z
2022-01-29T05:46:50.000Z
addons/blender-addon-fbx-bundle/modifier_offset_transform.py
V-Sekai/game-tools-V-Sekai
74eb79e9b97bb1954e647ed2f909f4f326189cb5
[ "MIT" ]
1
2021-11-07T19:41:34.000Z
2021-11-07T19:41:34.000Z
import bpy, bmesh import imp import math from mathutils import Vector from . import modifier imp.reload(modifier) class Settings(modifier.Settings): active = bpy.props.BoolProperty ( name="Active", default=False ) source = bpy.props.StringProperty() class Modifier(modifier.Modifier): label = "Offset Tran...
32.745098
126
0.696108
29c78d55581c0e05fcd754f69bf85ce688f50af4
6,621
py
Python
crosshair/libimpl/encodings/_encutil.py
samuelchassot/CrossHair
4eac7a23e470567cc23e6d0916ce6dd6820eacd8
[ "MIT" ]
null
null
null
crosshair/libimpl/encodings/_encutil.py
samuelchassot/CrossHair
4eac7a23e470567cc23e6d0916ce6dd6820eacd8
[ "MIT" ]
null
null
null
crosshair/libimpl/encodings/_encutil.py
samuelchassot/CrossHair
4eac7a23e470567cc23e6d0916ce6dd6820eacd8
[ "MIT" ]
null
null
null
import codecs from collections.abc import ByteString from dataclasses import dataclass from typing import Dict, List, Optional, Tuple, Type, Union from crosshair.core import realize from crosshair.libimpl.builtinslib import AnySymbolicStr from crosshair.libimpl.builtinslib import SymbolicBytes class ChunkError: ...
37.619318
86
0.606404
a2663211ae95e76a04900cde9ffda49771824abe
1,572
py
Python
aliyun-python-sdk-cms/aliyunsdkcms/request/v20180308/DeleteCustomMetricRequest.py
DataDog/aliyun-openapi-python-sdk
5cbee29bce6416dd62f61f0c3786b1af6ea0d84f
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-cms/aliyunsdkcms/request/v20180308/DeleteCustomMetricRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cms/aliyunsdkcms/request/v20180308/DeleteCustomMetricRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.75
77
0.750636
e53b1a59f8b53158fb0debf35b8d4f249b33967f
106
py
Python
notebooks/Metpy_Introduction/solutions/intro_units.py
DEVESHTARASIA/unidata-python-workshop
6ce194a0515effbd0cddb50c2302d5160494747e
[ "MIT" ]
1
2020-01-18T20:34:33.000Z
2020-01-18T20:34:33.000Z
notebooks/Metpy_Introduction/solutions/intro_units.py
DEVESHTARASIA/unidata-python-workshop
6ce194a0515effbd0cddb50c2302d5160494747e
[ "MIT" ]
null
null
null
notebooks/Metpy_Introduction/solutions/intro_units.py
DEVESHTARASIA/unidata-python-workshop
6ce194a0515effbd0cddb50c2302d5160494747e
[ "MIT" ]
1
2020-11-07T12:42:54.000Z
2020-11-07T12:42:54.000Z
speed = 25 * units.knots time = 1 * units.fortnight distance = speed * time print(distance.to('furlongs'))
26.5
30
0.716981
3d6b4a2b400f487f0dc24487e6bde1403e551863
880
py
Python
2020/18/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
2
2020-12-04T09:45:38.000Z
2020-12-07T14:06:12.000Z
2020/18/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
2020/18/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
import re from operator import add, mul operators = {"+": add, "*": mul} with open("input.txt") as input_file: expressions = input_file.readlines() def parse_par(exp): result = [] stack = [] for i, c in enumerate(exp): if c == '(': stack.append(i) elif c == ')' and sta...
23.157895
58
0.529545
83a5c91a42f9717092225ea3c5fff4b580aea95d
97,545
py
Python
mitsubishi/const.py
chomupashchuk/broadlink-mitsubishi-srk20zm-home-assistant
beb7ea1578aaedf23782801a2724a01cd28a4af1
[ "MIT" ]
null
null
null
mitsubishi/const.py
chomupashchuk/broadlink-mitsubishi-srk20zm-home-assistant
beb7ea1578aaedf23782801a2724a01cd28a4af1
[ "MIT" ]
null
null
null
mitsubishi/const.py
chomupashchuk/broadlink-mitsubishi-srk20zm-home-assistant
beb7ea1578aaedf23782801a2724a01cd28a4af1
[ "MIT" ]
null
null
null
"""Constants for Ariston component.""" from homeassistant.components.climate.const import ( CURRENT_HVAC_COOL, CURRENT_HVAC_DRY, CURRENT_HVAC_FAN, CURRENT_HVAC_HEAT, CURRENT_HVAC_OFF, HVAC_MODE_COOL, HVAC_MODE_DRY, HVAC_MODE_FAN_ONLY, HVAC_MODE_HEAT, HVAC_MODE_HEAT_COOL, HVAC...
322.996689
447
0.943811
f4439e1ebe32270ec7df01173ac16fe4691fd55f
5,691
py
Python
examples/adwords/v201406/advanced_operations/update_site_links.py
dietrichc/streamline-ppc-reports
256f79246aba3c2cf8f792d87a066391a2f471e0
[ "Apache-2.0" ]
null
null
null
examples/adwords/v201406/advanced_operations/update_site_links.py
dietrichc/streamline-ppc-reports
256f79246aba3c2cf8f792d87a066391a2f471e0
[ "Apache-2.0" ]
null
null
null
examples/adwords/v201406/advanced_operations/update_site_links.py
dietrichc/streamline-ppc-reports
256f79246aba3c2cf8f792d87a066391a2f471e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
33.674556
77
0.697417
99afafa3f3aa274453a9bb85b86db947e4c8908c
581
py
Python
lang-python/basics/03-procedures/procedures.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
lang-python/basics/03-procedures/procedures.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
lang-python/basics/03-procedures/procedures.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- # Prozeduren definieren und aufrufen # Zeichenkette oder String (string) text = "Umfang bei Durchmesser[cm]" # Fließkommazahl oder Float pi (float, real) pi = 3.1415 # Definition der Funktion/Prozedur 'umfang' mit Parameter 'd' # für Durchmesser in Zentimeter. def ...
24.208333
61
0.717728
505cef6da83c1ce3fea30a75bd8be951b367b092
926
py
Python
Chapter13/ch13_diabetesB.py
PacktPublishing/Applied-Computational-Thinking-with-Python
fd9982383c5b473ffa1640998540d602876816e5
[ "MIT" ]
18
2020-11-27T22:41:12.000Z
2021-12-27T08:20:46.000Z
Chapter13/ch13_diabetesB.py
PacktPublishing/Applied-Computational-Thinking-with-Python
fd9982383c5b473ffa1640998540d602876816e5
[ "MIT" ]
null
null
null
Chapter13/ch13_diabetesB.py
PacktPublishing/Applied-Computational-Thinking-with-Python
fd9982383c5b473ffa1640998540d602876816e5
[ "MIT" ]
8
2020-11-30T17:51:11.000Z
2021-12-25T05:23:02.000Z
import pandas as pd import matplotlib.pyplot as plt import numpy as np dataset = pd.read_csv('diabetes.csv') # Split dataset into input(x) and output(y) variables x_variables = dataset.iloc[:,0:8] y_variable = dataset.iloc[:,8] print(x_variables) print(y_variable) from sklearn.model_selection import train_test_sp...
27.235294
81
0.764579
ce3aae8f3e5cd37a819f538b874a16b4db05762d
494
py
Python
backend/core/settings.py
blcoyote/WeatehrApi-SqlModel
0dff548bccd317e55bf3b1e9d565e2fcaee4d107
[ "MIT" ]
1
2021-08-28T16:51:38.000Z
2021-08-28T16:51:38.000Z
backend/core/settings.py
blcoyote/WeatehrApi-SqlModel
0dff548bccd317e55bf3b1e9d565e2fcaee4d107
[ "MIT" ]
5
2021-08-28T18:39:17.000Z
2021-10-18T08:01:23.000Z
backend/core/settings.py
blcoyote/WeatherApi-SqlModel
0dff548bccd317e55bf3b1e9d565e2fcaee4d107
[ "MIT" ]
null
null
null
from pydantic import BaseSettings from functools import lru_cache import datetime ERROR_LOG_FILENAME = "./log/access.log" VERSION = "0.1.5" class Settings(BaseSettings): DEBUG_MODE: bool ACCESSCTL: str SECRET_KEY: str ALGORITHM: str ACCESS_TOKEN_EXPIRE_MINUTES: int WINDY_ENABLED: bool WIN...
16.466667
39
0.696356
5f4a42e7ef6ba9ea2fed24a58ea5cfa5fd08faea
3,748
py
Python
cemubot/cemubot.py
Crementif/Cemubot
7628f41c3996c48c9df9b191086547c67aeb2dc2
[ "MIT" ]
null
null
null
cemubot/cemubot.py
Crementif/Cemubot
7628f41c3996c48c9df9b191086547c67aeb2dc2
[ "MIT" ]
null
null
null
cemubot/cemubot.py
Crementif/Cemubot
7628f41c3996c48c9df9b191086547c67aeb2dc2
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from discord_slash import SlashCommand, SlashContext import json import requests import traceback from cogs import config try: config.init() except FileNotFoundError: print("Error: config.cfg not found; run setup.py and try again!") exit() # parser isn't a cog but i...
38.639175
118
0.659018
87276aa63816533b4c483c266a048d42f022860d
112
gyp
Python
Windows/WindowManager/source/binding.gyp
trile0000/MV
cd53597fa9cebc8ce4ad7b6674a445a21f8bb627
[ "MIT" ]
null
null
null
Windows/WindowManager/source/binding.gyp
trile0000/MV
cd53597fa9cebc8ce4ad7b6674a445a21f8bb627
[ "MIT" ]
null
null
null
Windows/WindowManager/source/binding.gyp
trile0000/MV
cd53597fa9cebc8ce4ad7b6674a445a21f8bb627
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "WindowManager", "sources": [ "WindowManager.cc" ] } ] }
14
39
0.473214
48eae0999362efc620b1a6920cee9eb0f6a8dbd3
623
py
Python
joke.py
Elixeus/Snippets
a3c8811ca42f8461d905e6e64ce747c13f0e46d4
[ "CC0-1.0" ]
null
null
null
joke.py
Elixeus/Snippets
a3c8811ca42f8461d905e6e64ce747c13f0e46d4
[ "CC0-1.0" ]
null
null
null
joke.py
Elixeus/Snippets
a3c8811ca42f8461d905e6e64ce747c13f0e46d4
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 class Skills: def __init__(self, **kwargs): self.skills = set(kwargs.values()) def __repr__(self): return 'Skills: {}'.format(','.join(i for i in self.skills)) def __len__(self): return len(self.skills) def learn(self, new_skill): ...
21.482759
68
0.611557
b419bc5bbc143fa9162940690f68a2817c950ad8
547
py
Python
manage.py
klebercode/django-heroku-aws-start
484f7f6821c7db8c3938d8c3abb198035a104054
[ "MIT" ]
null
null
null
manage.py
klebercode/django-heroku-aws-start
484f7f6821c7db8c3938d8c3abb198035a104054
[ "MIT" ]
null
null
null
manage.py
klebercode/django-heroku-aws-start
484f7f6821c7db8c3938d8c3abb198035a104054
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoherokuaws.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Djan...
34.1875
79
0.691042
55a10b74352656378efa7be3d0469f44c4e55a04
1,146
py
Python
src/apps/core/utilities/validations.py
veeqtor/Airtech-API
dd11a96be4328bda550421b303e4b340354d6174
[ "MIT" ]
2
2019-07-18T16:48:28.000Z
2020-07-21T08:30:48.000Z
src/apps/core/utilities/validations.py
veeqtor/Airtech-API
dd11a96be4328bda550421b303e4b340354d6174
[ "MIT" ]
null
null
null
src/apps/core/utilities/validations.py
veeqtor/Airtech-API
dd11a96be4328bda550421b303e4b340354d6174
[ "MIT" ]
null
null
null
"""Validations""" # system imports import re from datetime import datetime # third party imports from rest_framework import serializers from src.apps.core.utilities.messages import ERRORS from src.apps.core.utilities.response_utils import ResponseHandler # email regex EMAIL_REGEX = re.compile(r'(^[a-zA-Z0-9_.+-]+@[a...
24.382979
81
0.650087
73c9c45fb7d217e1d418314f40088ec1465e6e30
1,551
py
Python
my_recognizer.py
jpventura/AIND-Recognizer
60e54e9649d85442deb781f941ffaa834508b98b
[ "MIT" ]
null
null
null
my_recognizer.py
jpventura/AIND-Recognizer
60e54e9649d85442deb781f941ffaa834508b98b
[ "MIT" ]
null
null
null
my_recognizer.py
jpventura/AIND-Recognizer
60e54e9649d85442deb781f941ffaa834508b98b
[ "MIT" ]
null
null
null
import warnings from asl_data import SinglesData def recognize(models: dict, test_set: SinglesData): """ Recognize test word sequences from word models set :param models: dict of trained models {'SOMEWORD': GaussianHMM model object, 'SOMEOTHERWORD': GaussianHMM model object, ...} :param test_set: Si...
33
95
0.621534
134a308b438b485c6d23fba67a54d49edf032970
559
py
Python
freqerica/util/qulacsnize.py
ymtz03/freqerica
d79e76181a037da5c11b47f8a4e1bf4387a0468f
[ "BSD-2-Clause" ]
1
2020-05-08T15:28:04.000Z
2020-05-08T15:28:04.000Z
freqerica/util/qulacsnize.py
ymtz03/freqerica
d79e76181a037da5c11b47f8a4e1bf4387a0468f
[ "BSD-2-Clause" ]
null
null
null
freqerica/util/qulacsnize.py
ymtz03/freqerica
d79e76181a037da5c11b47f8a4e1bf4387a0468f
[ "BSD-2-Clause" ]
null
null
null
from qulacs import Observable import numpy as np from itertools import product def convert_qoperator_to_observable(n_qubits, qop): observable = Observable(n_qubits) for term in qop.terms: operators = ["{} {}".format(axis, index_qubit) for index_qubit, axis in term] #print(operators) ob...
32.882353
99
0.728086
5a237be584d92465d0f328840c03200186aa6088
635
py
Python
config/api_router.py
saduqz/csv-analyzer-test
732d4902aeba9278e7547ed5a83e4a482790076c
[ "MIT" ]
null
null
null
config/api_router.py
saduqz/csv-analyzer-test
732d4902aeba9278e7547ed5a83e4a482790076c
[ "MIT" ]
null
null
null
config/api_router.py
saduqz/csv-analyzer-test
732d4902aeba9278e7547ed5a83e4a482790076c
[ "MIT" ]
null
null
null
# Django from django.conf import settings from django.urls import include, path, re_path from rest_framework.routers import DefaultRouter, SimpleRouter from rest_framework_simplejwt import views as jwt_views from djoser import views if settings.DEBUG: router = DefaultRouter() else: router = SimpleRouter() ro...
26.458333
95
0.748031
36b1e2bc96090f4397dba11ee3459f92268cbb59
6,960
py
Python
pandas/computation/eval.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2015-11-25T19:12:03.000Z
2015-11-25T19:12:03.000Z
pandas/computation/eval.py
pierre-haessig/pandas
f9e0b7df8ca8a92133d3cea0a26181140f991e2d
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/computation/eval.py
pierre-haessig/pandas
f9e0b7df8ca8a92133d3cea0a26181140f991e2d
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Top level ``eval`` module. """ import numbers import numpy as np from pandas.core import common as com from pandas.compat import string_types from pandas.computation.expr import Expr, _parsers, _ensure_scope from pandas.computation.engines import _engines def _check_engine(engine): """...
33.623188
88
0.640086
99f22a8599a9a2fc87930537c70d3aba2d790f24
8,471
py
Python
ceilometer/publisher/rpc.py
citrix-openstack-build/ceilometer
29f2ffc7e511a152d6e8742cd233c3dc399b8fff
[ "Apache-2.0" ]
null
null
null
ceilometer/publisher/rpc.py
citrix-openstack-build/ceilometer
29f2ffc7e511a152d6e8742cd233c3dc399b8fff
[ "Apache-2.0" ]
null
null
null
ceilometer/publisher/rpc.py
citrix-openstack-build/ceilometer
29f2ffc7e511a152d6e8742cd233c3dc399b8fff
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2012 New Dream Network, LLC (DreamHost) # # Author: Doug Hellmann <doug.hellmann@dreamhost.com> # # 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 # # ...
35.742616
76
0.604769
6bf5a4fc2db2ed5b49d4b9883a0f29c144dc8053
11,061
py
Python
clustering_normalized_cuts/networks.py
kinoute/google-research
4a59cab927579ea9722e43252c695de5da4eb5e2
[ "Apache-2.0" ]
11
2020-01-29T07:25:04.000Z
2022-03-05T16:01:21.000Z
clustering_normalized_cuts/networks.py
RubensZimbres/google-research
562c7c6ef959cb3cb382b1b660ccc45e8f5289c4
[ "Apache-2.0" ]
13
2020-01-28T22:19:53.000Z
2022-02-10T00:39:26.000Z
clustering_normalized_cuts/networks.py
RubensZimbres/google-research
562c7c6ef959cb3cb382b1b660ccc45e8f5289c4
[ "Apache-2.0" ]
2
2020-02-27T11:09:49.000Z
2021-08-25T07:32:15.000Z
# coding=utf-8 # Copyright 2019 The Google Research 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 applicab...
33.416918
80
0.647591
0ba9d1fafe4f2144a17fbd1b39ed8c1d0b285168
1,622
py
Python
Z - Tool Box/LaZagne/Windows/lazagne/softwares/memory/libkeepass/crypto.py
dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1
1dcf54522e9d20711ff1114550dc2893ed3e9ed0
[ "MIT" ]
1,290
2020-05-28T21:24:43.000Z
2022-03-31T16:38:43.000Z
Z - Tool Box/LaZagne/Windows/lazagne/softwares/memory/libkeepass/crypto.py
dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1
1dcf54522e9d20711ff1114550dc2893ed3e9ed0
[ "MIT" ]
1
2020-07-03T21:14:52.000Z
2020-07-03T21:14:52.000Z
Z - Tool Box/LaZagne/Windows/lazagne/softwares/memory/libkeepass/crypto.py
dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1
1dcf54522e9d20711ff1114550dc2893ed3e9ed0
[ "MIT" ]
280
2020-05-29T17:28:38.000Z
2022-03-31T13:54:15.000Z
# -*- coding: utf-8 -*- import hashlib import struct from lazagne.config.crypto.pyaes.aes import AESModeOfOperationECB, AESModeOfOperationCBC from lazagne.config.winstructure import char_to_int AES_BLOCK_SIZE = 16 def sha256(s): """Return SHA256 digest of the string `s`.""" return hashlib.sha256(s).digest()...
30.037037
111
0.680641
f8fb3862c11b5e14d2244bb278739261c4844524
2,149
py
Python
baoming/webapp/migrations/0040_systemmessage.py
hanxiaoshun/RegistrationSystem
2f7310508fc1725e96fe941b1062ce7f26f265a4
[ "Apache-2.0" ]
null
null
null
baoming/webapp/migrations/0040_systemmessage.py
hanxiaoshun/RegistrationSystem
2f7310508fc1725e96fe941b1062ce7f26f265a4
[ "Apache-2.0" ]
14
2020-06-06T01:24:24.000Z
2022-03-12T00:17:22.000Z
baoming/webapp/migrations/0040_systemmessage.py
hanxiaoshun/RegistrationSystem
2f7310508fc1725e96fe941b1062ce7f26f265a4
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.2 on 2019-07-21 06:41 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('webapp', '0039_interviewaudit_operation_level'), ] operations = [ migrations.C...
63.205882
237
0.656584
fe4b300f4f73df56391d8e93fab024577ba525c1
384
py
Python
bookCar_project/bookCar_app/urls.py
cs-fullstack-2019-spring/django-models3-cw-tdude0175
29fbd8862467864152e0760640a578c7dcb3c2cf
[ "Apache-2.0" ]
null
null
null
bookCar_project/bookCar_app/urls.py
cs-fullstack-2019-spring/django-models3-cw-tdude0175
29fbd8862467864152e0760640a578c7dcb3c2cf
[ "Apache-2.0" ]
null
null
null
bookCar_project/bookCar_app/urls.py
cs-fullstack-2019-spring/django-models3-cw-tdude0175
29fbd8862467864152e0760640a578c7dcb3c2cf
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns =\ [ # to many paths so little time path('',views.index,name='index'), path('newbook',views.newBook,name = 'newBook'), path('bookview',views.bookView, name = 'bookView'), path('newcar',views.newCar, name = 'newCar'...
32
59
0.598958
a2a1f0e8d632b84243302dd8a4e3becdbf3d3baf
167
py
Python
clear.py
DaveBuckingham/robosoft
b1e2d171b301fc4accaa195ad2a972f020b71fce
[ "MIT" ]
2
2016-02-18T05:41:16.000Z
2016-07-07T05:28:56.000Z
clear.py
DaveBuckingham/robosoft
b1e2d171b301fc4accaa195ad2a972f020b71fce
[ "MIT" ]
null
null
null
clear.py
DaveBuckingham/robosoft
b1e2d171b301fc4accaa195ad2a972f020b71fce
[ "MIT" ]
null
null
null
import mctransmitter mctransmitter.initialize() mctransmitter.tx_analog(0,0) mctransmitter.tx_analog(1,0) mctransmitter.tx_digital(0,0) mctransmitter.tx_digital(1,0)
20.875
29
0.838323
9ae5b66750af84de69e95347aa20c0d95481eb4e
16,968
py
Python
rasa_nlu/components.py
julien-c/rasa_nlu
e7901773a7ce0af18707019c849909fd3bbde8ef
[ "Apache-2.0" ]
8
2019-09-02T08:17:20.000Z
2021-11-15T05:56:33.000Z
rasa_nlu/components.py
julien-c/rasa_nlu
e7901773a7ce0af18707019c849909fd3bbde8ef
[ "Apache-2.0" ]
6
2020-09-26T00:52:34.000Z
2022-02-10T01:37:38.000Z
rasa_nlu/components.py
jacklee20151/rasa_nlu_bert
823ac63ad7a17ead631d353f193cc48b9ba0aee0
[ "Apache-2.0" ]
10
2019-04-26T06:09:00.000Z
2021-03-22T03:25:04.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import typing from builtins import object from typing import Any from typing import Dict from typing import List from typing import Optional from typing i...
37.959732
78
0.650519
671d9c4761ffef48782d177ba46eb8bbd51a7381
388
py
Python
app/wsgi.py
MuratovER/practice_app
84f3c0c85460418a4f195c774142abe95b199083
[ "MIT" ]
null
null
null
app/wsgi.py
MuratovER/practice_app
84f3c0c85460418a4f195c774142abe95b199083
[ "MIT" ]
1
2022-02-14T17:51:08.000Z
2022-02-14T17:58:27.000Z
app/wsgi.py
MuratovER/practice_app
84f3c0c85460418a4f195c774142abe95b199083
[ "MIT" ]
null
null
null
""" WSGI config for app project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS...
17.636364
78
0.770619
9c0d1db0efa32ba25988f60ae86c81d3ef1cc7e5
1,994
py
Python
test/functional/p2p_invalid_locator.py
gbcrio/gbcr
295d954adc1c7490886f8dfe4a63fa880cb6e0d6
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_locator.py
gbcrio/gbcr
295d954adc1c7490886f8dfe4a63fa880cb6e0d6
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_locator.py
gbcrio/gbcr
295d954adc1c7490886f8dfe4a63fa880cb6e0d6
[ "MIT" ]
1
2020-10-18T05:44:31.000Z
2020-10-18T05:44:31.000Z
#!/usr/bin/env python3 # Copyright (c) 2020 GBCR Developers # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test node responses to invalid locators. """ from test_framework....
44.311111
135
0.687061
c8486c49a9d15ab42565cc5329a47bf479898db7
11,787
py
Python
strava/swagger_client/models/explorer_segment.py
neozenith/strava-gsheet-python
cce24721d6dcae69638c99261308f3d76512a087
[ "MIT" ]
null
null
null
strava/swagger_client/models/explorer_segment.py
neozenith/strava-gsheet-python
cce24721d6dcae69638c99261308f3d76512a087
[ "MIT" ]
null
null
null
strava/swagger_client/models/explorer_segment.py
neozenith/strava-gsheet-python
cce24721d6dcae69638c99261308f3d76512a087
[ "MIT" ]
null
null
null
# coding: utf-8 """ Strava API v3 The [Swagger Playground](https://developers.strava.com/playground) is the easiest way to familiarize yourself with the Strava API by submitting HTTP requests and observing the responses before you write any client code. It will show what a response will look like with differe...
32.117166
726
0.611776
1615d3998e0a1bd1c28eed1f054d0f4a80542852
3,235
py
Python
tests/integ/test_horovod.py
HappyAmazonian/sagemaker-python-sdk
bb7563f450113a3ba18a8e24cf6092f4325bb321
[ "Apache-2.0" ]
1
2021-12-10T16:18:29.000Z
2021-12-10T16:18:29.000Z
tests/integ/test_horovod.py
HappyAmazonian/sagemaker-python-sdk
bb7563f450113a3ba18a8e24cf6092f4325bb321
[ "Apache-2.0" ]
null
null
null
tests/integ/test_horovod.py
HappyAmazonian/sagemaker-python-sdk
bb7563f450113a3ba18a8e24cf6092f4325bb321
[ "Apache-2.0" ]
null
null
null
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
29.953704
96
0.727357
4a7403d2fe9b80415ed839588846afef7e66d1fa
29,213
py
Python
dace/codegen/control_flow.py
Shigangli/dace
966365a572921a6916737e4292e581e767873cf0
[ "BSD-3-Clause" ]
null
null
null
dace/codegen/control_flow.py
Shigangli/dace
966365a572921a6916737e4292e581e767873cf0
[ "BSD-3-Clause" ]
null
null
null
dace/codegen/control_flow.py
Shigangli/dace
966365a572921a6916737e4292e581e767873cf0
[ "BSD-3-Clause" ]
1
2021-03-04T13:01:48.000Z
2021-03-04T13:01:48.000Z
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. """ Various classes to facilitate the code generation of structured control flow elements (e.g., ``for``, ``if``, ``while``) from state machines in SDFGs. SDFGs are state machines of dataflow graphs, where each node is a state and each edge...
36.885101
82
0.584603
224218e22ce7615c7f680f76af026c88d0acc1f6
1,640
py
Python
setup.py
naidoo88/plot_utils
5874a5f504efb6e8ae8dd3153fb9be2d55389437
[ "BSD-2-Clause" ]
1
2021-01-28T14:51:33.000Z
2021-01-28T14:51:33.000Z
setup.py
naidoo88/plot_utils
5874a5f504efb6e8ae8dd3153fb9be2d55389437
[ "BSD-2-Clause" ]
2
2021-03-22T11:07:40.000Z
2021-04-26T16:05:55.000Z
setup.py
tylern4/nicks_plot_utils
5874a5f504efb6e8ae8dd3153fb9be2d55389437
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup import subprocess with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() git_version = subprocess.check_output( ['git', 'rev-list', '--count', 'HEAD']).decode("utf-8")[:-1] with open("nicks_plot_utils/__version__", "r+", encoding="utf-8") as fh: t...
30.37037
72
0.597561
aa2b2258e335df764a9dcae444bfe08d2f34e439
9,702
py
Python
qa/common/check_copyright.py
jobegrabber/tensorrt-inference-server
216b0e59c1d8ad8a862dcc266e6abf35dcb11612
[ "BSD-3-Clause" ]
null
null
null
qa/common/check_copyright.py
jobegrabber/tensorrt-inference-server
216b0e59c1d8ad8a862dcc266e6abf35dcb11612
[ "BSD-3-Clause" ]
null
null
null
qa/common/check_copyright.py
jobegrabber/tensorrt-inference-server
216b0e59c1d8ad8a862dcc266e6abf35dcb11612
[ "BSD-3-Clause" ]
1
2020-08-15T09:56:00.000Z
2020-08-15T09:56:00.000Z
#!/usr/bin/python # Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, t...
42
112
0.620284
49328cd4da5fd3b0c69d9699b45e853d2628cbd7
9,297
py
Python
reference_parsing/scripts/reference_script.py
ScholarIndex/LinkedBooks
0cae008427ed1eb34a882e9d85f24b42b3ee3a28
[ "MIT" ]
null
null
null
reference_parsing/scripts/reference_script.py
ScholarIndex/LinkedBooks
0cae008427ed1eb34a882e9d85f24b42b3ee3a28
[ "MIT" ]
6
2020-03-20T18:10:01.000Z
2021-09-29T17:31:17.000Z
reference_parsing/scripts/reference_script.py
ScholarIndex/LinkedBooks
0cae008427ed1eb34a882e9d85f24b42b3ee3a28
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ USED una tantum to refactor the journal_references collection. Note that the old collection references (monograph reference lists) is discarded: monographs are going to ba parsed again. this script: 1- copies the journal_references collection to another collection: sand, test and production...
43.443925
179
0.64182
63a49c2df908a5d8f42f3cb50a5aabec883a9169
4,221
py
Python
diag_model.py
tos-kamiya/skih-tool
5bcabfb76650e40813a53722a9ef4b3397ec6e99
[ "BSD-3-Clause" ]
null
null
null
diag_model.py
tos-kamiya/skih-tool
5bcabfb76650e40813a53722a9ef4b3397ec6e99
[ "BSD-3-Clause" ]
null
null
null
diag_model.py
tos-kamiya/skih-tool
5bcabfb76650e40813a53722a9ef4b3397ec6e99
[ "BSD-3-Clause" ]
null
null
null
import sys import pickle import docopt from train_model import scan_dirs, to_xy def eprint(s): print(s, file=sys.stderr, flush=True) def calc_weighted_pre_rec_f1(cm, weight=None): assert weight in ('true', 'pred') n_p0 = cm[0, 0] + cm[1, 0] n_p1 = cm[0, 1] + cm[1, 1] n_t0 = cm[0, 0] + cm[0, 1...
30.810219
98
0.631604
0174560a74d7eace8dee89e1f0634f33652029b8
8,994
py
Python
adanet/core/testing_utils.py
sararob/adanet
26388aeb67ec30c9e98635497e6b5b3476378db7
[ "Apache-2.0" ]
2
2019-01-04T19:23:23.000Z
2021-02-14T21:48:03.000Z
adanet/core/testing_utils.py
liuluyeah/adanet
fd530ec5d12ae0e01d417610ef1560dac8bdb80f
[ "Apache-2.0" ]
null
null
null
adanet/core/testing_utils.py
liuluyeah/adanet
fd530ec5d12ae0e01d417610ef1560dac8bdb80f
[ "Apache-2.0" ]
null
null
null
"""Test utilities for AdaNet single graph implementation. Copyright 2018 The AdaNet 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 https://www.apache.org/license...
30.907216
80
0.691127
4ec88112d690c7c783d54b0d6bc7ea802917d026
2,055
py
Python
models/gap/probert.py
airxiechao/gap
1262bb7063da95011479839b4ccb4d9ed2e97020
[ "MIT" ]
29
2019-06-08T11:45:57.000Z
2022-03-24T15:02:34.000Z
models/gap/probert.py
airxiechao/gap
1262bb7063da95011479839b4ccb4d9ed2e97020
[ "MIT" ]
14
2019-12-07T02:03:46.000Z
2022-02-09T23:30:20.000Z
models/gap/probert.py
airxiechao/gap
1262bb7063da95011479839b4ccb4d9ed2e97020
[ "MIT" ]
8
2019-06-11T03:44:43.000Z
2022-01-19T20:43:10.000Z
import torch from torch import nn from torch.nn import CrossEntropyLoss import torch.nn.functional as F from pytorch_pretrained_bert.modeling import BertConfig, BertModel, BertPooler, BertPreTrainedModel class ProBERT(BertPreTrainedModel): def __init__(self, config, num_labels): super().__init__(config) ...
37.363636
103
0.59854
6764341e6a0fc50f03cf6998fbe00f17d50fb65f
326
py
Python
fdk_client/platform/models/TagSourceSchema.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/TagSourceSchema.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/TagSourceSchema.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""Platform Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema class TagSourceSchema(BaseSchema): # Content swagger.json type = fields.Str(required=False) id = fields.Str(required=False) ...
14.818182
42
0.705521
32962c39e68837b53b5f45365f002f62b87267d8
352
py
Python
SGE/src/configs/standard.py
dabingrosewood/MasterThesisProj
7e40fa2395468a1bccef429362a61ed8515ecc11
[ "MIT" ]
null
null
null
SGE/src/configs/standard.py
dabingrosewood/MasterThesisProj
7e40fa2395468a1bccef429362a61ed8515ecc11
[ "MIT" ]
null
null
null
SGE/src/configs/standard.py
dabingrosewood/MasterThesisProj
7e40fa2395468a1bccef429362a61ed8515ecc11
[ "MIT" ]
null
null
null
import sys from rng_seeds import * POPULATION_SIZE = 871 NUMBER_OF_ITERATIONS = 50 ELITISM = 345 TOURNAMENT = 20 PROB_CROSSOVER = 0.38591314298903034 PROB_MUTATION = 0.5581471170547168 RUN = len(sys.argv) > 1 and int(sys.argv[1]) or 0 # SEED is set to the RUN-th number in rng_seeeds.py SEED = seeds[RUN] sampling_snap...
20.705882
51
0.755682
a212afcd021692414e8791d0bef4e84e7c5543af
1,426
py
Python
kafka/tools/assigner/batcher.py
bringhurst/kafka-tools
5472a89d5a6702ae7a692211053a55dfba63072b
[ "Apache-2.0" ]
null
null
null
kafka/tools/assigner/batcher.py
bringhurst/kafka-tools
5472a89d5a6702ae7a692211053a55dfba63072b
[ "Apache-2.0" ]
null
null
null
kafka/tools/assigner/batcher.py
bringhurst/kafka-tools
5472a89d5a6702ae7a692211053a55dfba63072b
[ "Apache-2.0" ]
5
2019-10-24T06:54:44.000Z
2021-07-25T03:20:49.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
47.533333
102
0.771388
b2859e0b6c42984901b0f73709010c98c73f86ed
1,874
py
Python
manimlib/stream_starter.py
Tarang74/manim
df34d6fc0470916cfba63534b023addb69cdec9a
[ "MIT" ]
1
2021-03-26T08:23:35.000Z
2021-03-26T08:23:35.000Z
manimlib/stream_starter.py
Tarang74/manim
df34d6fc0470916cfba63534b023addb69cdec9a
[ "MIT" ]
null
null
null
manimlib/stream_starter.py
Tarang74/manim
df34d6fc0470916cfba63534b023addb69cdec9a
[ "MIT" ]
null
null
null
from time import sleep import code import os import readline import subprocess from manimlib.scene.scene import Scene import manimlib.constants def start_livestream(to_twitch=False, twitch_key=None): class Manim(): def __new__(cls): kwargs = { "scene_name": manimlib.constants....
34.072727
79
0.565101
13889c0b02177ef9e01c4add683d603ab2cc6594
73,512
py
Python
packages/python/plotly/plotly/graph_objs/histogram/marker/_colorbar.py
eisenlohr/plotly.py
3b0e3df45036cf48f772b13bcc10ce347964aefc
[ "MIT" ]
1
2021-12-11T07:01:40.000Z
2021-12-11T07:01:40.000Z
packages/python/plotly/plotly/graph_objs/histogram/marker/_colorbar.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/histogram/marker/_colorbar.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
1
2021-11-29T22:55:05.000Z
2021-11-29T22:55:05.000Z
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "histogram.marker" _path_str = "histogram.marker.colorbar" _valid_props = { "bgcolo...
35.772263
102
0.558984
85d8201bd67bbd2217d08850e44871f6c81a5b51
8,784
py
Python
nmap/nmap_to_nucleus_asset.py
EquateTechnologies/nucleusPlugins
809072015736ad9685deae1bb8102ef149c2437e
[ "MIT" ]
null
null
null
nmap/nmap_to_nucleus_asset.py
EquateTechnologies/nucleusPlugins
809072015736ad9685deae1bb8102ef149c2437e
[ "MIT" ]
null
null
null
nmap/nmap_to_nucleus_asset.py
EquateTechnologies/nucleusPlugins
809072015736ad9685deae1bb8102ef149c2437e
[ "MIT" ]
null
null
null
import sys import argparse import json # Used to parse nmap XML file import xml.etree.ElementTree as ET # Used to interact with Nucleus API import requests # Get the nmap XML file to parse def parse_xml(inputPath): try: tree = ET.parse(inputPath) root = tree.getroot() except ET.ParseError as e: print...
43.701493
213
0.673725
14204787efbe8937d183236b7d79079a7ea0319e
7,751
py
Python
Ars_Magica_5th/fileval.py
FkinGuy/roll20-character-sheets
e8b08f99f5a9dad73aa750855667d320afd24487
[ "MIT" ]
null
null
null
Ars_Magica_5th/fileval.py
FkinGuy/roll20-character-sheets
e8b08f99f5a9dad73aa750855667d320afd24487
[ "MIT" ]
1
2021-03-12T02:44:27.000Z
2021-03-12T02:44:27.000Z
Ars_Magica_5th/fileval.py
FkinGuy/roll20-character-sheets
e8b08f99f5a9dad73aa750855667d320afd24487
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Python script to evaluate and insert python expression in files """ import argparse import importlib import re import sys import traceback as tb from pathlib import Path from types import ModuleType from typing import Any, Dict, Generator, List, NoReturn, TextIO, Tuple, Union if sys.version_...
34.29646
135
0.569733
682bd915e26209b34a6bcb86478f24ff1f5f3146
553
py
Python
navrep/envs/markonedreamenv.py
ReykCS/navrep
22ee4727268188414a8121f069e45c2ab798ca19
[ "MIT" ]
48
2020-11-26T10:16:08.000Z
2022-03-24T15:22:08.000Z
navrep/envs/markonedreamenv.py
ReykCS/navrep
22ee4727268188414a8121f069e45c2ab798ca19
[ "MIT" ]
1
2021-12-14T02:08:18.000Z
2022-03-14T09:17:25.000Z
navrep/envs/markonedreamenv.py
ReykCS/navrep
22ee4727268188414a8121f069e45c2ab798ca19
[ "MIT" ]
18
2020-12-09T08:37:43.000Z
2022-03-30T06:56:38.000Z
import os from navrep.envs.dreamenv import DreamEnv class MarkOneDreamEnv(DreamEnv): def __init__(self, temperature=0.25): super(MarkOneDreamEnv, self).__init__( temperature=temperature, initial_z_path=os.path.expanduser( "~/navrep/datasets/M/markone/000_mus_logvars...
36.866667
99
0.674503
3e93662b2698e0a030dedd9cb099a3e856c09e67
3,455
py
Python
data/p2DJ/New/program/qiskit/class/startQiskit_Class395.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/class/startQiskit_Class395.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/class/startQiskit_Class395.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=19 import cirq import qiskit from qiskit import IBMQ from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy a...
29.279661
80
0.623734
0f7bc3ec022def1d7f4aceb3015d5df4da0f5458
2,428
py
Python
Configuration/StandardSequences/python/DigiToRawPreMixing_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Configuration/StandardSequences/python/DigiToRawPreMixing_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Configuration/StandardSequences/python/DigiToRawPreMixing_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms # This object is used to make changes for different running scenarios. In # this case for Run 2 from EventFilter.SiPixelRawToDigi.SiPixelDigiToRaw_cfi import * from EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi import * from SimCalorimetry.EcalTrigPrimProducers.ecalTrigger...
52.782609
152
0.856672
102f024e8a7a84df685aa6c6a0e4d9ec69d40083
900
py
Python
st_mlbstatsapi/.history/st_inter_dataframe_20220509162959.py
rypaik/APIs
de44598d562d2a7d81060513b45300eb2d5679eb
[ "MIT" ]
null
null
null
st_mlbstatsapi/.history/st_inter_dataframe_20220509162959.py
rypaik/APIs
de44598d562d2a7d81060513b45300eb2d5679eb
[ "MIT" ]
null
null
null
st_mlbstatsapi/.history/st_inter_dataframe_20220509162959.py
rypaik/APIs
de44598d562d2a7d81060513b45300eb2d5679eb
[ "MIT" ]
null
null
null
import streamlit as st import pandas as pd import numpy as np from st_aggrid import GridOptionsBuilder, AgGrid, GridUpdateMode, DataReturnMode import statsapi # data= pd.read_csv('df_sample_data.csv', index_col=0) def rookie_hr_leader_dict(): rookie_hr_leaders_d = statsapi.league_leader_data('homeRuns', season=...
23.076923
111
0.748889
01781e42c75c402b34ebcb65f51a0586f433808c
8,255
py
Python
tensorflow_datasets/text/wordnet.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
2
2022-02-14T09:51:39.000Z
2022-02-14T13:27:49.000Z
tensorflow_datasets/text/wordnet.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/text/wordnet.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
1
2020-12-13T22:11:33.000Z
2020-12-13T22:11:33.000Z
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets 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 appl...
38.217593
114
0.710842
389d149277289372865a5bf3924c6834bf94306a
146
py
Python
tests/test_cache.py
admariner/pmaw
f617106da920a74ba4f53ef9a2f0b8e7b89d6c5a
[ "MIT" ]
82
2021-01-27T04:22:59.000Z
2022-03-29T11:12:20.000Z
tests/test_cache.py
mattpodolak/pmaw
32806477b5f9b11393f9130394397e0f7eb01abe
[ "MIT" ]
36
2021-02-01T16:11:40.000Z
2022-03-23T01:33:10.000Z
tests/test_cache.py
admariner/pmaw
f617106da920a74ba4f53ef9a2f0b8e7b89d6c5a
[ "MIT" ]
13
2021-02-07T21:02:56.000Z
2022-03-31T22:30:41.000Z
from pmaw import Cache def test_no_info(): cache = Cache({}, False, cache_dir='./rand_cache') info = cache.load_info() assert(info == None)
24.333333
52
0.684932
f453fe7b5d8738e7c607b12aaa7c9f0e5e23f9b1
1,202
py
Python
model/HotDogModel.py
sajith-rahim/not-hotdog
c2b8d43ad39bd4d6dc08479923398fd24a15e27b
[ "MIT" ]
null
null
null
model/HotDogModel.py
sajith-rahim/not-hotdog
c2b8d43ad39bd4d6dc08479923398fd24a15e27b
[ "MIT" ]
null
null
null
model/HotDogModel.py
sajith-rahim/not-hotdog
c2b8d43ad39bd4d6dc08479923398fd24a15e27b
[ "MIT" ]
null
null
null
import numpy as np import torch.nn as nn import torch.nn.functional as F class HotDogModel(nn.Module): def __init__(self) -> None: super().__init__() self.conv1 = nn.Conv2d(3, 6, 5) self.conv2 = nn.Conv2d(6, 12, 5, 2) self.conv3 = nn.Conv2d(12, 24, 5, 2) self.conv4 = nn.C...
27.953488
79
0.558236
8b45e29e04a0160c20cbe34cec48cbae9d836408
1,980
py
Python
1020-rede_em_uma_fibra_otica.py
marcioaug/problems
d8187e611b746d100bfcb17fc957a13756e479e2
[ "MIT" ]
null
null
null
1020-rede_em_uma_fibra_otica.py
marcioaug/problems
d8187e611b746d100bfcb17fc957a13756e479e2
[ "MIT" ]
null
null
null
1020-rede_em_uma_fibra_otica.py
marcioaug/problems
d8187e611b746d100bfcb17fc957a13756e479e2
[ "MIT" ]
null
null
null
#! /usr/bin/python3 from queue import PriorityQueue def prim(G): MST = {} MST_edges = set() cost = 0 queue = PriorityQueue() visited = [] r = list(G.keys())[0] V = G[r] visited.append(r) for v in V: queue.put((v[1], v[0], r)) while not queue.empty(): e =...
22.5
56
0.4
ba95d6e980d68b19fcef12fbe58c45effe3fd11c
52,771
py
Python
locust/runners.py
daniel135790/locust
444640ff998d1f37fa2d0f6f5a946fbb2cc5bb20
[ "MIT" ]
null
null
null
locust/runners.py
daniel135790/locust
444640ff998d1f37fa2d0f6f5a946fbb2cc5bb20
[ "MIT" ]
null
null
null
locust/runners.py
daniel135790/locust
444640ff998d1f37fa2d0f6f5a946fbb2cc5bb20
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import functools import json import logging import os import re import socket import sys import time import traceback from collections import defaultdict from collections.abc import MutableMapping from operator import ( itemgetter, methodcaller, ) from typing import ( Dict, Itera...
44.12291
272
0.618901
8e70ddb043fb1bc64e394d86b05da18dbedf3326
172
py
Python
blueprints/defaultBlueprint/DefaultBlueprint.py
ethanphunter/Flask_Template
f1ded37cd5cfa475e80e0c383a10917a8741cd0d
[ "MIT" ]
null
null
null
blueprints/defaultBlueprint/DefaultBlueprint.py
ethanphunter/Flask_Template
f1ded37cd5cfa475e80e0c383a10917a8741cd0d
[ "MIT" ]
8
2018-05-16T18:43:23.000Z
2019-10-01T17:48:25.000Z
blueprints/defaultBlueprint/DefaultBlueprint.py
ethanphunter/Flask_Template
f1ded37cd5cfa475e80e0c383a10917a8741cd0d
[ "MIT" ]
null
null
null
from flask import Blueprint defaultBlueprint = Blueprint("Default_Blueprint", __name__) @defaultBlueprint.route("/ping", methods = ["GET"]) def ping(): return "pong"
21.5
59
0.732558
9d18cc70f4d24eba45a5e2563b87d48641fb7030
44
py
Python
day2_L.py
kangsup/maybler0
0128054800c4afbe842e711a881378382ffa5c6f
[ "MIT" ]
null
null
null
day2_L.py
kangsup/maybler0
0128054800c4afbe842e711a881378382ffa5c6f
[ "MIT" ]
null
null
null
day2_L.py
kangsup/maybler0
0128054800c4afbe842e711a881378382ffa5c6f
[ "MIT" ]
null
null
null
import random print(random.randint(1, 100))
22
29
0.772727
f1f27bcb5e68b72438c713602d18c10a556a6646
89
py
Python
figlet.py
sahintuter/Basic-Python-Examples
97e8e1d5e918c154ebac88b850200c1d461c128f
[ "Apache-2.0" ]
null
null
null
figlet.py
sahintuter/Basic-Python-Examples
97e8e1d5e918c154ebac88b850200c1d461c128f
[ "Apache-2.0" ]
null
null
null
figlet.py
sahintuter/Basic-Python-Examples
97e8e1d5e918c154ebac88b850200c1d461c128f
[ "Apache-2.0" ]
null
null
null
from pyfiglet import Figlet f = Figlet(font='roman') print(f.renderText('1coderr'))
17.8
31
0.707865
d55d03c1a8157b7c5ec933eca73bedbd0e2eb94d
518
py
Python
wmt/flask/default_settings.py
mcflugen/wmt-rest
7ac99b3e1100df4c797fa6156d96a4ca0d318a45
[ "MIT" ]
null
null
null
wmt/flask/default_settings.py
mcflugen/wmt-rest
7ac99b3e1100df4c797fa6156d96a4ca0d318a45
[ "MIT" ]
null
null
null
wmt/flask/default_settings.py
mcflugen/wmt-rest
7ac99b3e1100df4c797fa6156d96a4ca0d318a45
[ "MIT" ]
null
null
null
import os _BASE_DIR = os.path.abspath(os.path.dirname(__file__)) DEBUG = True SECRET_KEY = 'super-secret-key' SERVER_NAME = 'csdms.colorado.edu' UPLOADS_DEFAULT_DEST = os.path.join(_BASE_DIR, 'files/uploads') UPLOAD_DIR = os.path.join(_BASE_DIR, 'files/uploads') STAGE_DIR = os.path.join(_BASE_DIR, 'files/downloads')...
25.9
63
0.76834
21e85bebfd9444840d054172809cc6b678feb2f6
659
bzl
Python
python_pytest/tests/versions_test.bzl
caseyduquettesc/rules_python_pytest
5c654d01a99e809a5ef76f82fbf9e0d3432815e6
[ "Apache-2.0" ]
2
2022-01-18T11:59:41.000Z
2022-01-18T17:27:07.000Z
python_pytest/tests/versions_test.bzl
caseyduquettesc/rules_python_pytest
5c654d01a99e809a5ef76f82fbf9e0d3432815e6
[ "Apache-2.0" ]
null
null
null
python_pytest/tests/versions_test.bzl
caseyduquettesc/rules_python_pytest
5c654d01a99e809a5ef76f82fbf9e0d3432815e6
[ "Apache-2.0" ]
null
null
null
"""Unit tests for starlark helpers See https://docs.bazel.build/versions/main/skylark/testing.html#for-testing-starlark-utilities """ load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest") load("//python_pytest/private:versions.bzl", "TOOL_VERSIONS") def _smoke_test_impl(ctx): env = unittest.begin(ctx) ...
34.684211
94
0.754173
064e1d2e482b52b83bb79687ca1b89b968031adb
9,721
py
Python
hdnnpy/util.py
KeisukeYamashita/HDNNP
505fd4fb1b64952abbabf98ee77e0a0d0502ce03
[ "MIT" ]
null
null
null
hdnnpy/util.py
KeisukeYamashita/HDNNP
505fd4fb1b64952abbabf98ee77e0a0d0502ce03
[ "MIT" ]
null
null
null
hdnnpy/util.py
KeisukeYamashita/HDNNP
505fd4fb1b64952abbabf98ee77e0a0d0502ce03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pprint import pprint as pretty_print import sys import signal import pickle import csv import yaml from pathlib import Path import numpy as np import chainer from chainer import Variable from chainermn.communicators.mpi_communicator_base import MpiCommunicatorBase from . import settings a...
43.013274
117
0.588005
1158416b3096188912514234e3eef64577e068c7
395
py
Python
src/sms77api/classes/Lookup.py
sms77io/python-client
f729e017da89575bc48a80bd9b6d8d6fe0e124d3
[ "MIT" ]
null
null
null
src/sms77api/classes/Lookup.py
sms77io/python-client
f729e017da89575bc48a80bd9b6d8d6fe0e124d3
[ "MIT" ]
1
2021-02-03T19:47:42.000Z
2021-02-04T17:58:46.000Z
src/sms77api/classes/Lookup.py
sms77io/python-client
f729e017da89575bc48a80bd9b6d8d6fe0e124d3
[ "MIT" ]
null
null
null
from sms77api.classes.ExtendedEnum import ExtendedEnum class LookupType(ExtendedEnum): CNAM = 'cnam' FORMAT = 'format' HLR = 'hlr' MNP = 'mnp' LookupJsonTypes = [ LookupType.FORMAT.value, LookupType.HLR.value, LookupType.CNAM.value, ] class MnpResponse(ExtendedEnum): D1 = 'd1' ...
15.8
54
0.610127
d34635b6e6dd5b6c670c4d9a7c8449d2e593720b
1,181
py
Python
Library/urls.py
ksusonic/Django-editor
9c31281c801859841858f3fcf6b309e0f8135117
[ "MIT" ]
null
null
null
Library/urls.py
ksusonic/Django-editor
9c31281c801859841858f3fcf6b309e0f8135117
[ "MIT" ]
null
null
null
Library/urls.py
ksusonic/Django-editor
9c31281c801859841858f3fcf6b309e0f8135117
[ "MIT" ]
null
null
null
""" The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an impor...
35.787879
80
0.735817
21d0d0b471614a4ab9c566f831221340627b3e8e
2,233
py
Python
test/Subst/SyntaxError.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
3
2018-09-13T04:41:31.000Z
2020-07-03T09:25:08.000Z
test/Subst/SyntaxError.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
6
2018-02-16T05:53:54.000Z
2019-04-27T19:21:50.000Z
test/Subst/SyntaxError.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
3
2018-06-19T14:30:15.000Z
2019-04-26T19:04:14.000Z
#!/usr/bin/env python # # __COPYRIGHT__ # # 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 the rights to use, copy, modify, merge, publish, ...
27.567901
134
0.716525
0aff879b87a04b66b0c16d61ef92c83c64a3a39c
671
py
Python
MITx/6.00.1x/Week 2/Lecture_4/fibonacii.py
dvpramodkumar/edX_moocs
6e006cea8db9ac0784716a6f6143aeb3519e64c1
[ "MIT" ]
null
null
null
MITx/6.00.1x/Week 2/Lecture_4/fibonacii.py
dvpramodkumar/edX_moocs
6e006cea8db9ac0784716a6f6143aeb3519e64c1
[ "MIT" ]
null
null
null
MITx/6.00.1x/Week 2/Lecture_4/fibonacii.py
dvpramodkumar/edX_moocs
6e006cea8db9ac0784716a6f6143aeb3519e64c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jun 10 13:06:06 2016 @author: ericgrimson """ # Fibonacii using Recursion def recursive_fibonacii(x): """assumes x an int >= 0 returns Fibonacci of x""" if x == 0 or x == 1: return 1 else: return recursive_fibonacii(x-1) + recursive_fibon...
15.604651
66
0.603577
1dd4cb5706ba5b308cd80fdb31d2fd8eaa37bcde
6,126
py
Python
MoinMoin/macro/FullSearch.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
null
null
null
MoinMoin/macro/FullSearch.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
3
2020-06-26T21:21:32.000Z
2020-06-26T21:21:36.000Z
wiki/MoinMoin/macro/FullSearch.py
simtk/src
52086415ef60527e6556698c6e216e4217961d53
[ "BSD-2-Clause", "MIT" ]
2
2017-01-25T20:06:44.000Z
2021-03-25T18:39:55.000Z
# -*- coding: iso-8859-1 -*- """ MoinMoin - FullSearch Macro <<FullSearch>> displays a search dialog, as it always did. <<FullSearch()>> does the same as clicking on the page title, only that the result is embedded into the page. note the '()' after the macro name, which is...
37.353659
104
0.578191
009a3464fb3af79ed30d9f41bb0a1ddb1028287e
4,879
py
Python
testscripts/RDKB/component/PAM/TS_PAM_Init.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/PAM/TS_PAM_Init.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/PAM/TS_PAM_Init.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2016 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
39.032
140
0.74175
8cb2e5ac4e0a911bc6cda6f3eadd4c21fe4b53e3
479
py
Python
obywatele/migrations/0028_auto_20210103_1959.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
7
2016-02-21T17:25:54.000Z
2021-10-09T19:36:10.000Z
obywatele/migrations/0028_auto_20210103_1959.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
19
2020-02-11T23:55:01.000Z
2022-03-31T18:11:56.000Z
obywatele/migrations/0028_auto_20210103_1959.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
3
2016-01-20T22:34:58.000Z
2020-09-16T07:45:42.000Z
# Generated by Django 3.1 on 2021-01-03 18:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('obywatele', '0027_uzytkownik_gift'), ] operations = [ migrations.AlterField( model_name='uzytkownik', name='gift', ...
25.210526
144
0.632568
d2e132432927e7d23c4999aa666417921da6c9bc
2,330
py
Python
chatapp/app.py
ShemManyu/chatapp
3e02d66949919e111ba65bd582394ff8f33e9d92
[ "BSD-3-Clause" ]
1
2018-12-05T12:40:37.000Z
2018-12-05T12:40:37.000Z
chatapp/app.py
ShemManyu/chatapp
3e02d66949919e111ba65bd582394ff8f33e9d92
[ "BSD-3-Clause" ]
null
null
null
chatapp/app.py
ShemManyu/chatapp
3e02d66949919e111ba65bd582394ff8f33e9d92
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """The app module, containing the app factory function.""" from flask import Flask, render_template from chatapp import commands, public, user from chatapp.extensions import bcrypt, cache, csrf_protect, db, debug_toolbar, login_manager, migrate, webpack, oauth def create_app(config_object='ch...
30.657895
117
0.703433
ad103bd1410e0a9e7d6d4cf31138bbf6d4c764e1
1,591
py
Python
backend/tests/conftest.py
vasekch/pyladies-courseware
2f1d8f7845ec966a634b92ada57d910dbfc8e8de
[ "MIT" ]
null
null
null
backend/tests/conftest.py
vasekch/pyladies-courseware
2f1d8f7845ec966a634b92ada57d910dbfc8e8de
[ "MIT" ]
null
null
null
backend/tests/conftest.py
vasekch/pyladies-courseware
2f1d8f7845ec966a634b92ada57d910dbfc8e8de
[ "MIT" ]
null
null
null
from itertools import count import os from pathlib import Path from pytest import fixture, skip from cw_backend.model import Model here = Path(__file__).resolve().parent on_CI = bool(os.environ.get('CI')) @fixture def top_dir(): return here.parent.parent @fixture def data_dir(): return here / 'data' @...
20.934211
87
0.696417