hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
f7b7563d85b1f23ad406817127e2c0f401a6930a
2,817
py
Python
corehq/apps/app_manager/app_schemas/casedb_schema.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
corehq/apps/app_manager/app_schemas/casedb_schema.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
94
2020-12-11T06:57:31.000Z
2022-03-15T10:24:06.000Z
corehq/apps/app_manager/app_schemas/casedb_schema.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
null
null
null
from corehq import toggles from corehq.apps.app_manager.app_schemas.case_properties import ( ParentCasePropertyBuilder, get_usercase_properties, ) from corehq.apps.app_manager.const import USERCASE_TYPE from corehq.apps.app_manager.util import is_usercase_in_use from corehq.apps.data_dictionary.util import get_...
39.125
104
0.635428
f7b75acf0297c3ab2601bc579ad2b3528994326d
28
py
Python
python/testData/keywordCompletion/noMatchInCondition.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/keywordCompletion/noMatchInCondition.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/keywordCompletion/noMatchInCondition.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
matches = True if mat<caret>
14
14
0.75
f7b8c19ee74b54f26fc920af5e0e656df23e85a5
3,597
py
Python
bookshelf/bookshelf/model_aerospike.py
fakeskimo/as2bt
0872192e703a2992dea7bee2bf2544727d6094ee
[ "Apache-2.0" ]
null
null
null
bookshelf/bookshelf/model_aerospike.py
fakeskimo/as2bt
0872192e703a2992dea7bee2bf2544727d6094ee
[ "Apache-2.0" ]
null
null
null
bookshelf/bookshelf/model_aerospike.py
fakeskimo/as2bt
0872192e703a2992dea7bee2bf2544727d6094ee
[ "Apache-2.0" ]
null
null
null
import math import aerospike from aerospike import predicates as p from aerospike import exception as ex from flask import current_app aerospike_host = current_app.config['AEROSPIKE_HOST'] aerospike_port = current_app.config['AEROSPIKE_PORT'] namespace = current_app.config['AEROSPIKE_NAMESPACE'] set_name = current_...
22.341615
96
0.626633
f7b8e6d755230cb8c58e980bba16ad5edecee7d7
1,437
py
Python
examples/EC2.py
nimRobotics/fnirslib
0273c0da5f4a41d7cf4dac0fc9686c38f2c7b0cd
[ "MIT" ]
null
null
null
examples/EC2.py
nimRobotics/fnirslib
0273c0da5f4a41d7cf4dac0fc9686c38f2c7b0cd
[ "MIT" ]
null
null
null
examples/EC2.py
nimRobotics/fnirslib
0273c0da5f4a41d7cf4dac0fc9686c38f2c7b0cd
[ "MIT" ]
null
null
null
""" author: @nimrobotics description: calculates the effective connectivity between regions and plots them """ import numpy as np import scipy.io import glob import sys sys.path.append('../utils') from plots import plotData dir = "./process3/" #directory of the data outdir = 'process3/' #directory to save the plots r...
31.933333
133
0.659708
f7b9749cf050209379cfad2f528020cbb5090d82
263
py
Python
feed/models.py
Lisgevan/DJANGO-101-PROJECT-COPY
01655b30682efd435d91e85223af0fd6186e6a59
[ "MIT" ]
null
null
null
feed/models.py
Lisgevan/DJANGO-101-PROJECT-COPY
01655b30682efd435d91e85223af0fd6186e6a59
[ "MIT" ]
null
null
null
feed/models.py
Lisgevan/DJANGO-101-PROJECT-COPY
01655b30682efd435d91e85223af0fd6186e6a59
[ "MIT" ]
null
null
null
from django.db import models from sorl.thumbnail import ImageField # Create your models here.
26.3
68
0.726236
f7bb92af288264a3c094d6c7636074324c8ab56d
12,847
py
Python
gcp/docker/infrastructure/rapids_lib.py
ethem-kinginthenorth/cloud-ml-examples
e434d2bdbf2adf058dc436f992a56585537dc8ab
[ "Apache-2.0" ]
1
2022-03-23T05:10:45.000Z
2022-03-23T05:10:45.000Z
gcp/docker/infrastructure/rapids_lib.py
ethem-kinginthenorth/cloud-ml-examples
e434d2bdbf2adf058dc436f992a56585537dc8ab
[ "Apache-2.0" ]
null
null
null
gcp/docker/infrastructure/rapids_lib.py
ethem-kinginthenorth/cloud-ml-examples
e434d2bdbf2adf058dc436f992a56585537dc8ab
[ "Apache-2.0" ]
null
null
null
# os import sys, os, time, logging # CPU DS stack import pandas as pd import numpy as np import sklearn # GPU DS stack [ rapids ] import gcsfs # scaling library import dask # data ingestion [ CPU ] from pyarrow import orc as pyarrow_orc # ML models from sklearn import ensemble import xgboost # data set splits fro...
38.57958
138
0.599829
f7bc4cc67a214b3d1cc41c823e3eb37e1f5d2531
5,011
py
Python
docs/making_widgets_from_scratch/line_clock.py
Rahuum/glooey
932edca1c8fdd710f1941038e47ac8d25a31a1a8
[ "MIT" ]
86
2016-11-28T12:34:28.000Z
2022-03-17T13:49:49.000Z
docs/making_widgets_from_scratch/line_clock.py
Rahuum/glooey
932edca1c8fdd710f1941038e47ac8d25a31a1a8
[ "MIT" ]
57
2017-03-07T10:11:52.000Z
2022-01-16T19:35:33.000Z
docs/making_widgets_from_scratch/line_clock.py
Rahuum/glooey
932edca1c8fdd710f1941038e47ac8d25a31a1a8
[ "MIT" ]
9
2017-03-15T18:55:50.000Z
2022-02-17T14:52:49.000Z
#!/usr/bin/env python3 import pyglet import glooey import autoprop import datetime from pyglet.gl import * from vecrec import Vector, Rect window = pyglet.window.Window() gui = glooey.Gui(window) gui.add(LineClock()) pyglet.app.run()
28.151685
79
0.580124
f7bd078884fa7f447ad7081c6426bb1a2e21941b
625
py
Python
forms_builder/forms/migrations/0004_auto_20180727_1256.py
maqmigh/django-forms-builder
1a0068d1d07498f4a2e160c46ec85b9a5f2ddd98
[ "BSD-2-Clause" ]
null
null
null
forms_builder/forms/migrations/0004_auto_20180727_1256.py
maqmigh/django-forms-builder
1a0068d1d07498f4a2e160c46ec85b9a5f2ddd98
[ "BSD-2-Clause" ]
null
null
null
forms_builder/forms/migrations/0004_auto_20180727_1256.py
maqmigh/django-forms-builder
1a0068d1d07498f4a2e160c46ec85b9a5f2ddd98
[ "BSD-2-Clause" ]
null
null
null
# coding=utf-8 # Generated by Django 2.0.7 on 2018-07-27 10:56 from django.db import migrations, models
25
90
0.5968
f7bd2e55648aaa2a1a246e97711c0fc010416b3b
5,711
py
Python
scripts/sighan/generate.py
piglaker/SpecialEdition
172688ef111e1b5c62bdb1ba0a523a2654201b90
[ "Apache-2.0" ]
2
2022-01-06T07:41:50.000Z
2022-01-22T14:18:51.000Z
scripts/sighan/generate.py
piglaker/SpecialEdition
172688ef111e1b5c62bdb1ba0a523a2654201b90
[ "Apache-2.0" ]
null
null
null
scripts/sighan/generate.py
piglaker/SpecialEdition
172688ef111e1b5c62bdb1ba0a523a2654201b90
[ "Apache-2.0" ]
null
null
null
import os import re import sys import json #upper import sys.path.append("../../") from utils import levenshtein from utils.io import load_json, write_to def strQ2B(ustring): """""" rstring = "" for uchar in ustring: inside_code=ord(uchar) if inside_code == 12288: ...
33.994048
179
0.629487
f7bde64d861ea84f6a0483cdddf17127e95c800d
67
py
Python
keras_retinanet/backend/__init__.py
mj-haghighi/keras-retinanet
644c2f8da799889a2a3f6cc833478256cbe32c23
[ "Apache-2.0" ]
null
null
null
keras_retinanet/backend/__init__.py
mj-haghighi/keras-retinanet
644c2f8da799889a2a3f6cc833478256cbe32c23
[ "Apache-2.0" ]
null
null
null
keras_retinanet/backend/__init__.py
mj-haghighi/keras-retinanet
644c2f8da799889a2a3f6cc833478256cbe32c23
[ "Apache-2.0" ]
null
null
null
# from .backend import * # noqa: F401,F403 from .sbackend import *
33.5
43
0.701493
f7bf187ba4675f05a89f42e9783052fe7bcd13c5
647
py
Python
docs/_docs/bash/az3166_patch_binary.py
skolbin-ssi/azure-iot-developer-kit
24035c8870e9c342d055bcd586529441078af0a0
[ "MIT" ]
43
2017-10-03T23:03:23.000Z
2019-04-27T18:57:16.000Z
docs/_docs/bash/az3166_patch_binary.py
skolbin-ssi/azure-iot-developer-kit
24035c8870e9c342d055bcd586529441078af0a0
[ "MIT" ]
114
2017-09-20T02:51:28.000Z
2019-05-06T06:13:14.000Z
docs/_docs/bash/az3166_patch_binary.py
skolbin-ssi/azure-iot-developer-kit
24035c8870e9c342d055bcd586529441078af0a0
[ "MIT" ]
48
2017-09-19T08:18:52.000Z
2019-04-19T11:44:32.000Z
# ---------------------------------------------------------------------------- # Copyright (C) Microsoft. All rights reserved. # Licensed under the MIT license. # ---------------------------------------------------------------------------- import os import binascii import struct import shutil import inspect import s...
29.409091
78
0.482226
f7bfccc428289385cc22ed6c618de770f292647a
590
py
Python
setup.py
FireXStuff/firex-bundle-ci
05ef1d9017b3553e8f4249da9a96e313f0ad7047
[ "BSD-3-Clause" ]
1
2021-01-08T19:50:33.000Z
2021-01-08T19:50:33.000Z
setup.py
FireXStuff/firex-bundle-ci
05ef1d9017b3553e8f4249da9a96e313f0ad7047
[ "BSD-3-Clause" ]
null
null
null
setup.py
FireXStuff/firex-bundle-ci
05ef1d9017b3553e8f4249da9a96e313f0ad7047
[ "BSD-3-Clause" ]
null
null
null
import versioneer from setuptools import setup setup(name='firex-bundle-ci', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), description='FireX CI services', url='https://github.com/FireXStuff/firex-bundle-ci.git', author='Core FireX Team', author_email='firex-...
26.818182
62
0.60678
f7c03e8c3283127463ae5c11c8faf6e12bf38615
1,951
py
Python
meta_middleware/meta_middleware/middleware.py
kevin-wyx/ProxyFS
76d9478c9e87c18950f2e4659b397a397fb1ac69
[ "Apache-2.0" ]
null
null
null
meta_middleware/meta_middleware/middleware.py
kevin-wyx/ProxyFS
76d9478c9e87c18950f2e4659b397a397fb1ac69
[ "Apache-2.0" ]
null
null
null
meta_middleware/meta_middleware/middleware.py
kevin-wyx/ProxyFS
76d9478c9e87c18950f2e4659b397a397fb1ac69
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 SwiftStack, 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 w...
34.22807
112
0.633521
f7c20796c689531f3a41f3738826f84aead341b4
1,397
py
Python
distpy/util/__init__.py
CU-NESS/distpy
279ba7e46726a85246566401fca19b8739d18d08
[ "Apache-2.0" ]
null
null
null
distpy/util/__init__.py
CU-NESS/distpy
279ba7e46726a85246566401fca19b8739d18d08
[ "Apache-2.0" ]
null
null
null
distpy/util/__init__.py
CU-NESS/distpy
279ba7e46726a85246566401fca19b8739d18d08
[ "Apache-2.0" ]
null
null
null
""" Introduces utilities used throughout the package, including: - interfaces for making objects `distpy.util.Savable.Savable` and `distpy.util.Loadable.Loadable` in binary hdf5 files using h5py - helper methods for using h5py to save and load variables and arrays (`h5py_extensions`) - type category definitions (`...
43.65625
79
0.800286
f7c31602d3ba09f1a3970f8ce071305eb086135d
74
py
Python
Crypto-hardRSA/flag.py
JSW2020/hsctf-2019-freshmen
5282d6d51153aadd62f42673aa3d487f8d7ef45b
[ "MIT" ]
16
2019-12-09T15:53:08.000Z
2021-12-07T00:34:30.000Z
Crypto-hardRSA/flag.py
JSW2020/hsctf-2019-freshmen
5282d6d51153aadd62f42673aa3d487f8d7ef45b
[ "MIT" ]
null
null
null
Crypto-hardRSA/flag.py
JSW2020/hsctf-2019-freshmen
5282d6d51153aadd62f42673aa3d487f8d7ef45b
[ "MIT" ]
7
2019-12-09T11:53:52.000Z
2021-11-14T04:09:04.000Z
flag = "flag{b3453333-9da9-49ae-b4ed-0017c392d58e}" e1 = 65537 e2 = 368273
24.666667
51
0.743243
f7c417316d84349935d37272663f36b5a52c49ff
1,165
py
Python
drogher/package/fedex.py
thisisnotmyuserid/drogher
f8ea5e34dad6a2e9f22608b4ae4a6f7032133e45
[ "BSD-3-Clause" ]
13
2017-04-24T07:49:30.000Z
2020-09-22T13:13:13.000Z
drogher/package/fedex.py
thisisnotmyuserid/drogher
f8ea5e34dad6a2e9f22608b4ae4a6f7032133e45
[ "BSD-3-Clause" ]
null
null
null
drogher/package/fedex.py
thisisnotmyuserid/drogher
f8ea5e34dad6a2e9f22608b4ae4a6f7032133e45
[ "BSD-3-Clause" ]
4
2018-09-08T05:31:57.000Z
2022-02-10T17:42:31.000Z
import itertools from .base import Package
25.326087
80
0.574249
f7c4b93a5f9fe2cd51baa68e74a1491e4f04cbf5
1,535
py
Python
nipy/labs/spatial_models/tests/test_bsa_io.py
arokem/nipy
d6b2e862c65558bb5747c36140fd6261a7e1ecfe
[ "BSD-3-Clause" ]
null
null
null
nipy/labs/spatial_models/tests/test_bsa_io.py
arokem/nipy
d6b2e862c65558bb5747c36140fd6261a7e1ecfe
[ "BSD-3-Clause" ]
null
null
null
nipy/labs/spatial_models/tests/test_bsa_io.py
arokem/nipy
d6b2e862c65558bb5747c36140fd6261a7e1ecfe
[ "BSD-3-Clause" ]
null
null
null
from __future__ import with_statement from nose.tools import assert_true from os.path import exists import numpy as np from nibabel import Nifti1Image from numpy.testing import assert_equal from ...utils.simul_multisubject_fmri_dataset import surrogate_3d_dataset from ..bsa_io import make_bsa_image from nibabel.tmpdirs...
34.111111
79
0.699674
f7c5189c4c9985714dd619cfadbc0baf92efab39
5,099
py
Python
MFSDA/MFSDA_run.py
bpaniagua/MFSDA_Python
d7e439fe670d5e2731c9ec722919a74f67b01e30
[ "Apache-2.0" ]
3
2020-08-10T08:57:36.000Z
2021-04-04T01:12:50.000Z
MFSDA/MFSDA_run.py
bpaniagua/MFSDA_Python
d7e439fe670d5e2731c9ec722919a74f67b01e30
[ "Apache-2.0" ]
17
2018-08-03T14:25:52.000Z
2022-02-06T18:19:39.000Z
MFSDA/MFSDA_run.py
bpaniagua/MFSDA_Python
d7e439fe670d5e2731c9ec722919a74f67b01e30
[ "Apache-2.0" ]
13
2017-11-14T17:22:32.000Z
2020-12-10T16:55:58.000Z
#!/usr/bin/env python-real # -*- coding: utf-8 -*- """ Run script: multivariate functional shape data analysis (MFSDA). Author: Chao Huang (chaohuang.stat@gmail.com) Last update: 2017-08-14 """ import sys,os sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)),os.path.join('Resources','Libraries')...
29.818713
130
0.642871
f7c72117e015e7f0761f5162d10f3d3cf0ddb74f
1,671
py
Python
modules/mongodb_atlas/mongodb_atlas.py
riddopic/opta
25fa6435fdc7e2ea9c7963ed74100fffb0743063
[ "Apache-2.0" ]
595
2021-05-21T22:30:48.000Z
2022-03-31T15:40:25.000Z
modules/mongodb_atlas/mongodb_atlas.py
riddopic/opta
25fa6435fdc7e2ea9c7963ed74100fffb0743063
[ "Apache-2.0" ]
463
2021-05-24T21:32:59.000Z
2022-03-31T17:12:33.000Z
modules/mongodb_atlas/mongodb_atlas.py
riddopic/opta
25fa6435fdc7e2ea9c7963ed74100fffb0743063
[ "Apache-2.0" ]
29
2021-05-21T22:27:52.000Z
2022-03-28T16:43:45.000Z
import os from typing import TYPE_CHECKING from modules.base import ModuleProcessor from opta.core.terraform import get_terraform_outputs from opta.exceptions import UserErrors if TYPE_CHECKING: from opta.layer import Layer from opta.module import Module
37.133333
98
0.663076
f7c92906bdd05fb9011ed12eacbe0ac0a33b671e
502
py
Python
python/tests/testdata/region_HU.py
kevin-brown/python-phonenumbers
e4ae191e6fae47581eb40d3d23c7e2b7d422c326
[ "Apache-2.0" ]
1
2019-08-06T03:19:28.000Z
2019-08-06T03:19:28.000Z
python/tests/testdata/region_HU.py
kevin-brown/python-phonenumbers
e4ae191e6fae47581eb40d3d23c7e2b7d422c326
[ "Apache-2.0" ]
null
null
null
python/tests/testdata/region_HU.py
kevin-brown/python-phonenumbers
e4ae191e6fae47581eb40d3d23c7e2b7d422c326
[ "Apache-2.0" ]
2
2018-02-09T13:52:15.000Z
2019-09-10T08:36:25.000Z
"""Auto-generated file, do not edit by hand. HU metadata""" from phonenumbers.phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_HU = PhoneMetadata(id='HU', country_code=36, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='30\\d{7}', possible_length=(9,...
55.777778
113
0.776892
f7c994df8beeb9e54af1a6918047db78eb8494b2
1,389
py
Python
lambdas/budget-handler/lambda_handler.py
weAllWeGot/personal_financial_engine
37c89e49aa68d6db48c10d6663135f4992a72171
[ "Apache-2.0" ]
2
2018-08-18T16:41:43.000Z
2020-12-20T21:29:49.000Z
lambdas/budget-handler/lambda_handler.py
weallwegot/personal_financial_engine
37c89e49aa68d6db48c10d6663135f4992a72171
[ "Apache-2.0" ]
12
2018-07-25T16:56:48.000Z
2019-10-22T01:16:23.000Z
lambdas/budget-handler/lambda_handler.py
weAllWeGot/personal_financial_engine
37c89e49aa68d6db48c10d6663135f4992a72171
[ "Apache-2.0" ]
4
2018-12-07T23:50:12.000Z
2021-04-16T20:49:08.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import boto3 import csv import json import logging from budget_retrieval import get_budget from budget_placement import place_budget def lambda_handler(event: dict, context: dict) -> dict: '''Demonstrates a simple HTTP endpoint using API Gateway. You have full a...
28.346939
84
0.645068
f7ca0211e8a92052407acbaa028f0ad46e74b5f9
1,451
py
Python
src/documenteer/stackdocs/doxygentag.py
lsst-sqre/sphinxkit
a9475d0722b0f6f89fd1c4c54eafad0564667b0b
[ "MIT" ]
3
2019-04-18T02:47:06.000Z
2021-11-09T03:49:12.000Z
src/documenteer/stackdocs/doxygentag.py
lsst-sqre/sphinxkit
a9475d0722b0f6f89fd1c4c54eafad0564667b0b
[ "MIT" ]
29
2016-12-15T01:02:05.000Z
2022-03-07T12:06:40.000Z
src/documenteer/stackdocs/doxygentag.py
lsst-sqre/sphinxkit
a9475d0722b0f6f89fd1c4c54eafad0564667b0b
[ "MIT" ]
2
2016-09-12T17:44:06.000Z
2016-12-15T00:37:05.000Z
"""Utilities for working with Doxygen tag files. """ __all__ = ["get_tag_entity_names"] import xml.etree.ElementTree as ET from pathlib import Path from typing import List, Optional, Sequence, Union try: from sphinxcontrib.doxylink import doxylink except ImportError: print( "sphinxcontrib.doxylink is...
24.183333
74
0.598208
f7cadf89eeb52e1e8b7bf3ad6d819d4964e7f62f
1,263
py
Python
src/gamesbyexample/shellgame.py
skinzor/PythonStdioGames
75f27af19d7f1d555b0fd85fbcf215f07660b93f
[ "MIT" ]
1
2019-11-30T17:04:09.000Z
2019-11-30T17:04:09.000Z
src/gamesbyexample/shellgame.py
skinzor/PythonStdioGames
75f27af19d7f1d555b0fd85fbcf215f07660b93f
[ "MIT" ]
null
null
null
src/gamesbyexample/shellgame.py
skinzor/PythonStdioGames
75f27af19d7f1d555b0fd85fbcf215f07660b93f
[ "MIT" ]
null
null
null
# Shell Game, by Al Sweigart al@inventwithpython.com # A random gambling game. import random, time, sys print('''SHELL GAME By Al Sweigart al@inventwithpython.com Try to find the diamond! Press Enter to continue...''') input() CUPS = ['diamond', 'pocket lint', 'nothing'] while True: print() print('Shufflin...
26.3125
93
0.599367
f7cbba72cbee5b92ee9bed0dc914113ae1d6f2e4
1,242
py
Python
main.py
mathew4STAR/GPT-3_based_AI
7c5ffcd26ebbd64ee1f6fa02ec4a8529c795b809
[ "MIT" ]
null
null
null
main.py
mathew4STAR/GPT-3_based_AI
7c5ffcd26ebbd64ee1f6fa02ec4a8529c795b809
[ "MIT" ]
null
null
null
main.py
mathew4STAR/GPT-3_based_AI
7c5ffcd26ebbd64ee1f6fa02ec4a8529c795b809
[ "MIT" ]
null
null
null
import pyttsx3 import speech_recognition as sr import openai as op import os op.api_key = os.getenv("OPENAI_API_KEY") engine = pyttsx3.init() engine.setProperty('rate', 150) engine.setProperty('volume', 1.0) voices = engine.getProperty('voices') engine.setProperty('voice', voices[1].id) while True: query = tak...
24.84
154
0.638486
f7cdafc3fcc754a52e3ada458ff7a926e8981f1d
71,088
py
Python
sdk/python/pulumi_azure_native/compute/v20200930/_inputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/compute/v20200930/_inputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/compute/v20200930/_inputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
42.138708
389
0.668763
f7cdc28f8dbf0a5fa40122f9a836204bf7e9435a
500
py
Python
bgp_adjacencies/BGP_check_job.py
KamyarZiabari/solutions_examples
3dfa80d276ab13d1e489142a3fcbe2bd8ab0eba2
[ "Apache-2.0" ]
59
2019-03-08T15:08:14.000Z
2021-12-23T15:59:03.000Z
bgp_adjacencies/BGP_check_job.py
CiscoTestAutomation/genie_solutions
69c96f57dce466bcd767bd1ea6326aaf6a63fbcf
[ "Apache-2.0" ]
8
2019-04-05T04:29:17.000Z
2021-04-12T15:37:51.000Z
bgp_adjacencies/BGP_check_job.py
CiscoTestAutomation/genie_solutions
69c96f57dce466bcd767bd1ea6326aaf6a63fbcf
[ "Apache-2.0" ]
37
2019-03-15T21:35:38.000Z
2022-03-22T01:49:59.000Z
# To run the job: # pyats run job BGP_check_job.py --testbed-file <testbed_file.yaml> # Description: This job file checks that all BGP neighbors are in Established state import os # All run() must be inside a main function
38.461538
83
0.708
f7cddf9b0d9e1e72530d863ce9c077212cea7e97
858
py
Python
tvae/utils/logging.py
ReallyAnonNeurips2021/TopographicVAE
97ba47c039f7eab05ce9e17c3faea0a6ec86f1eb
[ "MIT" ]
57
2021-09-02T13:20:43.000Z
2022-03-17T18:35:55.000Z
tvae/utils/logging.py
ReallyAnonNeurips2021/TopographicVAE
97ba47c039f7eab05ce9e17c3faea0a6ec86f1eb
[ "MIT" ]
2
2021-09-07T13:06:40.000Z
2022-03-04T11:54:22.000Z
tvae/utils/logging.py
ReallyAnonNeurips2021/TopographicVAE
97ba47c039f7eab05ce9e17c3faea0a6ec86f1eb
[ "MIT" ]
8
2021-09-07T14:48:25.000Z
2022-03-12T05:44:32.000Z
import os
24.514286
71
0.56993
f7cde5f2b92aa7e388bad877341add7fc6bed0cb
521
py
Python
create_lesson_plan/admin.py
rishabhranawat/CrowdPlatform
1de2ad7e70fbf6cbf2e29bc9368341134b4f7e0d
[ "MIT" ]
1
2020-07-23T21:35:40.000Z
2020-07-23T21:35:40.000Z
create_lesson_plan/admin.py
rishabhranawat/CrowdPlatform
1de2ad7e70fbf6cbf2e29bc9368341134b4f7e0d
[ "MIT" ]
9
2021-02-08T20:32:35.000Z
2022-03-02T14:58:07.000Z
create_lesson_plan/admin.py
rishabhranawat/CrowdPlatform
1de2ad7e70fbf6cbf2e29bc9368341134b4f7e0d
[ "MIT" ]
null
null
null
from django.contrib import admin from create_lesson_plan.models import * admin.site.register(lesson) admin.site.register(lesson_plan) admin.site.register(Engage_Urls) admin.site.register(Explain_Urls) admin.site.register(Evaluate_Urls) admin.site.register(MCQ) admin.site.register(FITB) admin.site.register(Engage_Image...
28.944444
39
0.84261
f7ce40df7d33d5f39e5868a59d46a085bed7cd64
3,408
py
Python
src/models/modules/visual_bert_classifier.py
inzva/emotion-recognition-drawings
56435f42d76c10c10fa58149ccbcc8d05efccdc0
[ "MIT" ]
10
2021-11-20T19:01:08.000Z
2022-01-16T09:06:12.000Z
src/models/modules/visual_bert_classifier.py
inzva/emotion-recognition-drawings
56435f42d76c10c10fa58149ccbcc8d05efccdc0
[ "MIT" ]
2
2021-12-11T12:28:03.000Z
2021-12-13T21:09:53.000Z
src/models/modules/visual_bert_classifier.py
inzva/emotion-recognition-drawings
56435f42d76c10c10fa58149ccbcc8d05efccdc0
[ "MIT" ]
null
null
null
import torch from torch import nn from transformers import BertTokenizer, VisualBertModel, VisualBertConfig import numpy as np if __name__ == '__main__': bert_text_tokenizer = BertTokenizer.from_pretrained("bert-base-uncased") inputs = bert_text_tokenizer("What is the man eating?", return_tensors="pt") ...
46.054054
169
0.667254
f7cfecaa2797756809c5e754e4b6bf4f05823087
1,006
py
Python
narrative2vec/logging_instance/pose.py
code-iai/narrative2vec
948071d09838ea41ee9749325af6804427a060d2
[ "MIT" ]
null
null
null
narrative2vec/logging_instance/pose.py
code-iai/narrative2vec
948071d09838ea41ee9749325af6804427a060d2
[ "MIT" ]
null
null
null
narrative2vec/logging_instance/pose.py
code-iai/narrative2vec
948071d09838ea41ee9749325af6804427a060d2
[ "MIT" ]
null
null
null
from narrative2vec.logging_instance.logging_instance import LoggingInstance, _get_first_rdf_query_result from narrative2vec.logging_instance.reasoning_task import ReasoningTask from narrative2vec.ontology.neemNarrativeDefinitions import QUATERNION from narrative2vec.ontology.ontologyHandler import get_knowrob_uri
43.73913
104
0.781312
f7d0423ade6b86198698a9b5f2ef5a03964e0231
288
py
Python
kobra/settings/development.py
karservice/kobra
2019fd3be499c06d2527e80576fd6ff03d8fe151
[ "MIT" ]
4
2016-08-28T16:00:20.000Z
2018-01-31T18:22:43.000Z
kobra/settings/development.py
karservice/kobra
2019fd3be499c06d2527e80576fd6ff03d8fe151
[ "MIT" ]
25
2016-08-15T20:57:59.000Z
2022-02-10T18:14:48.000Z
kobra/settings/development.py
karservice/kobra
2019fd3be499c06d2527e80576fd6ff03d8fe151
[ "MIT" ]
1
2017-02-06T17:13:16.000Z
2017-02-06T17:13:16.000Z
# -*- coding: utf-8 -*- from . import * SECRET_KEY = env.str('KOBRA_SECRET_KEY', 'Unsafe_development_key._Never_use_in_production.') DEBUG = env.bool('KOBRA_DEBUG_MODE', True) DATABASES = { 'default': env.db_url('KOBRA_DATABASE_URL', 'sqlite:///db.sqlite3') }
24
72
0.652778
f7d06f7dd5791848e16c5019b980180600add19a
4,153
py
Python
foobot_grapher.py
jpwright/foobot-slack
ffc1cf8490d08433d76bb62cbf7440c765089784
[ "MIT" ]
1
2018-02-17T14:29:41.000Z
2018-02-17T14:29:41.000Z
foobot_grapher.py
jpwright/foobot-slack
ffc1cf8490d08433d76bb62cbf7440c765089784
[ "MIT" ]
null
null
null
foobot_grapher.py
jpwright/foobot-slack
ffc1cf8490d08433d76bb62cbf7440c765089784
[ "MIT" ]
null
null
null
#!/usr/bin/env python from pyfoobot import Foobot import requests import matplotlib matplotlib.use('Agg') import matplotlib.dates import matplotlib.pyplot import datetime from imgurpython import ImgurClient import ConfigParser if __name__ == "__main__": getSensorReadings(True)
27.503311
179
0.675415
f7d2351d64f6c5df1c1015aaa80a18aa25236a08
239
py
Python
safexl/__init__.py
ThePoetCoder/safexl
d2fb91ad45d33b6f51946e99c78e7fcf7564e82e
[ "MIT" ]
6
2020-08-28T16:00:28.000Z
2022-01-17T14:48:04.000Z
safexl/__init__.py
ThePoetCoder/safexl
d2fb91ad45d33b6f51946e99c78e7fcf7564e82e
[ "MIT" ]
null
null
null
safexl/__init__.py
ThePoetCoder/safexl
d2fb91ad45d33b6f51946e99c78e7fcf7564e82e
[ "MIT" ]
null
null
null
# Copyright (c) 2020 safexl from safexl.toolkit import * import safexl.xl_constants as xl_constants import safexl.colors as colors __author__ = "Eric Smith" __email__ = "ThePoetCoder@gmail.com" __license__ = "MIT" __version__ = "0.0.7"
19.916667
42
0.76569
f7d2cd873463ee3cda95ca64c29e31dbdad2cad2
2,989
py
Python
musicdb/restapi/migrations/0001_initial.py
alexebaker/django-music_database
cffa2574d894509b0eec7c71bd821cc0fd2f2cf7
[ "MIT" ]
null
null
null
musicdb/restapi/migrations/0001_initial.py
alexebaker/django-music_database
cffa2574d894509b0eec7c71bd821cc0fd2f2cf7
[ "MIT" ]
7
2020-06-05T18:23:50.000Z
2022-03-11T23:24:27.000Z
musicdb/restapi/migrations/0001_initial.py
alexebaker/django-music_database
cffa2574d894509b0eec7c71bd821cc0fd2f2cf7
[ "MIT" ]
null
null
null
# Generated by Django 2.0.4 on 2018-05-01 05:22 from django.db import migrations, models import django.db.models.deletion
38.320513
136
0.556708
f7d39269257b5bc266bf53edfc897cb41af5201f
402
py
Python
ballot_source/sources/migrations/0004_auto_20200824_1444.py
Ballot-Drop/ballot-source
5dd9692ca5e9237a6073833a81771a17ad2c1dc9
[ "MIT" ]
3
2020-09-05T06:02:08.000Z
2020-09-28T23:44:05.000Z
ballot_source/sources/migrations/0004_auto_20200824_1444.py
Ballot-Drop/ballot-source
5dd9692ca5e9237a6073833a81771a17ad2c1dc9
[ "MIT" ]
18
2020-08-28T18:09:54.000Z
2020-09-19T17:36:08.000Z
ballot_source/sources/migrations/0004_auto_20200824_1444.py
Ballot-Drop/ballot-source
5dd9692ca5e9237a6073833a81771a17ad2c1dc9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.9 on 2020-08-24 20:44 from django.db import migrations, models
21.157895
58
0.606965
f7d411b7a1e10f51b58ab6692c180f5bbcd91a28
2,007
py
Python
src/tests/Yi/tests/inner_product_between_lobatto_and_gauss.py
Idate96/Mimetic-Fem
75ad3b982ef7ed7c6198f526d19dc460dec28f4d
[ "MIT" ]
null
null
null
src/tests/Yi/tests/inner_product_between_lobatto_and_gauss.py
Idate96/Mimetic-Fem
75ad3b982ef7ed7c6198f526d19dc460dec28f4d
[ "MIT" ]
null
null
null
src/tests/Yi/tests/inner_product_between_lobatto_and_gauss.py
Idate96/Mimetic-Fem
75ad3b982ef7ed7c6198f526d19dc460dec28f4d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ (SHORT NAME EXPLANATION) >>>DOCTEST COMMANDS (THE TEST ANSWER) @author: Yi Zhang. Created on Mon Jul 10 20:12:27 2017 Department of Aerodynamics Faculty of Aerospace Engineering TU Delft #SUMMARY---------------- #INPUTS----------------- #ESSEN...
22.3
78
0.619332
f7d511ad2e6640e470287dff8220becb4fa1880a
1,871
py
Python
src/quality_control/bin/createSpotDetectionQCHTML.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
src/quality_control/bin/createSpotDetectionQCHTML.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
src/quality_control/bin/createSpotDetectionQCHTML.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
import json from bs4 import BeautifulSoup import pandas as pd import sys # Argparsing argument_index = 1 template = sys.argv[argument_index] argument_index +=1 recall_json = sys.argv[argument_index] argument_index +=1 recall_plot = sys.argv[argument_index] argument_index +=1 precision_jsons_list = [sys.argv[i] for ...
27.115942
82
0.772314
f7d56596394f7bfd79f8b0a1466fae7aaa135fac
2,104
py
Python
test/torch/mpc/test_fss.py
NicoSerranoP/PySyft
87fcd566c46fce4c16d363c94396dd26bd82a016
[ "Apache-2.0" ]
3
2020-11-24T05:15:57.000Z
2020-12-07T09:52:45.000Z
test/torch/mpc/test_fss.py
NicoSerranoP/PySyft
87fcd566c46fce4c16d363c94396dd26bd82a016
[ "Apache-2.0" ]
1
2020-09-29T00:24:31.000Z
2020-09-29T00:24:31.000Z
test/torch/mpc/test_fss.py
NicoSerranoP/PySyft
87fcd566c46fce4c16d363c94396dd26bd82a016
[ "Apache-2.0" ]
1
2021-09-04T16:27:41.000Z
2021-09-04T16:27:41.000Z
import pytest import torch as th from syft.frameworks.torch.mpc.fss import DPF, DIF, n
32.875
70
0.551331
f7d62d0a50f28ea90ec1747700a205b806ed75b7
2,684
py
Python
allennlp/tests/data/tokenizers/pretrained_transformer_tokenizer_test.py
donna-legal/allennlp
fd1e3cfaed07ec3ba03b922d12eee47f8be16837
[ "Apache-2.0" ]
1
2020-01-28T07:52:28.000Z
2020-01-28T07:52:28.000Z
allennlp/tests/data/tokenizers/pretrained_transformer_tokenizer_test.py
donna-legal/allennlp
fd1e3cfaed07ec3ba03b922d12eee47f8be16837
[ "Apache-2.0" ]
null
null
null
allennlp/tests/data/tokenizers/pretrained_transformer_tokenizer_test.py
donna-legal/allennlp
fd1e3cfaed07ec3ba03b922d12eee47f8be16837
[ "Apache-2.0" ]
null
null
null
from allennlp.common.testing import AllenNlpTestCase from allennlp.data.tokenizers import PretrainedTransformerTokenizer
28.252632
99
0.462742
f7d6ae2f3cb3eec3b7e8a4d67b500afb529fc556
2,928
py
Python
openmdao/api.py
ryanfarr01/blue
a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff
[ "Apache-2.0" ]
null
null
null
openmdao/api.py
ryanfarr01/blue
a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff
[ "Apache-2.0" ]
null
null
null
openmdao/api.py
ryanfarr01/blue
a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff
[ "Apache-2.0" ]
null
null
null
"""Key OpenMDAO classes can be imported from here.""" # Core from openmdao.core.problem import Problem from openmdao.core.group import Group from openmdao.core.parallel_group import ParallelGroup from openmdao.core.explicitcomponent import ExplicitComponent from openmdao.core.implicitcomponent import ImplicitComponent...
41.828571
85
0.873634
f7d8750cdaa9ce35d0790079eee8be949cbd02ee
1,443
py
Python
code-buddy.py
xl3ehindTim/Code-buddy
e04b7b4327a0b3ff2790d22aef93dca6fce021f4
[ "MIT" ]
8
2019-11-29T09:20:11.000Z
2020-11-02T10:55:35.000Z
code-buddy.py
xl3ehindTim/Code-buddy
e04b7b4327a0b3ff2790d22aef93dca6fce021f4
[ "MIT" ]
2
2019-12-02T13:48:01.000Z
2019-12-02T17:00:56.000Z
code-buddy.py
xl3ehindTim/Code-buddy
e04b7b4327a0b3ff2790d22aef93dca6fce021f4
[ "MIT" ]
3
2019-11-29T10:03:44.000Z
2020-10-01T10:23:55.000Z
import os from getArgs import getArgs from modules import python, javascript, html, php, bootstrap, cca # from folder import file # code-buddy.py create (file type) (directory name) # Checks for "create" if getArgs(1) == "create": # Checks for which file type projectType = getArgs(2) # Checks for file name ...
33.55814
101
0.644491
f7d8d7b6d6bbc7f8a6c1802ec8a9bedc82cb072a
5,799
py
Python
compyle/tests/test_ext_module.py
manish364824/compyle
cc97dd0a0e7b12f904b3f1c0f20aa06a41779c61
[ "BSD-3-Clause" ]
1
2020-11-23T12:13:04.000Z
2020-11-23T12:13:04.000Z
compyle/tests/test_ext_module.py
manish364824/compyle
cc97dd0a0e7b12f904b3f1c0f20aa06a41779c61
[ "BSD-3-Clause" ]
null
null
null
compyle/tests/test_ext_module.py
manish364824/compyle
cc97dd0a0e7b12f904b3f1c0f20aa06a41779c61
[ "BSD-3-Clause" ]
null
null
null
from contextlib import contextmanager from distutils.sysconfig import get_config_var from io import open as io_open import os from os.path import join, exists import shutil import sys import tempfile from textwrap import dedent from multiprocessing import Pool from unittest import TestCase, main try: from unittest...
29.436548
76
0.607174
f7db3778ef11768f9b2aff72c3bc714173c0ef05
5,286
py
Python
tma/collector/xhn.py
hebpmo/TMA
b07747d3112e822ff92dd2ba4589d2288adab154
[ "MIT" ]
2
2020-02-15T18:31:39.000Z
2020-03-18T13:30:58.000Z
tma/collector/xhn.py
hebpmo/TMA
b07747d3112e822ff92dd2ba4589d2288adab154
[ "MIT" ]
null
null
null
tma/collector/xhn.py
hebpmo/TMA
b07747d3112e822ff92dd2ba4589d2288adab154
[ "MIT" ]
1
2021-02-13T19:14:39.000Z
2021-02-13T19:14:39.000Z
# -*- coding: UTF-8 -*- """ collector.xhn - http://www.xinhuanet.com/ 1. http://qc.wa.news.cn/nodeart/list?nid=115093&pgnum=1&cnt=10000 http://www.xinhuanet.com/politics/qmtt/index.htm ==================================================================== """ import requests import re from datetime import dateti...
28.26738
81
0.531782
f7dbb6eabf0492827bece2fbca9d7d345965609a
995
py
Python
tests/test_onetv.py
unlocKing/plugins
e5cee730c22a049cfd0e3873389c82e8ab5f7c41
[ "BSD-2-Clause" ]
2
2021-09-02T21:29:48.000Z
2021-09-20T07:05:08.000Z
tests/test_onetv.py
unlocKing/plugins
e5cee730c22a049cfd0e3873389c82e8ab5f7c41
[ "BSD-2-Clause" ]
null
null
null
tests/test_onetv.py
unlocKing/plugins
e5cee730c22a049cfd0e3873389c82e8ab5f7c41
[ "BSD-2-Clause" ]
null
null
null
import unittest from plugins.onetv import OneTV
36.851852
75
0.577889
f7dd193790b7ae7797daf8c7c2f3ca9a0623ed89
405
py
Python
tests/test_plugins/pytester_example_dir/test_file_1.py
MORSECorp/snappiershot
acb6a8d01d4496abe0f2fe83c7e7af9cf77aac8e
[ "Apache-2.0" ]
27
2020-10-15T18:36:25.000Z
2022-03-02T19:11:44.000Z
tests/test_plugins/pytester_example_dir/test_file_1.py
MORSECorp/snappiershot
acb6a8d01d4496abe0f2fe83c7e7af9cf77aac8e
[ "Apache-2.0" ]
33
2020-10-15T15:03:37.000Z
2022-03-24T21:00:34.000Z
tests/test_plugins/pytester_example_dir/test_file_1.py
MORSECorp/snappiershot
acb6a8d01d4496abe0f2fe83c7e7af9cf77aac8e
[ "Apache-2.0" ]
5
2020-10-15T16:30:00.000Z
2022-03-30T15:07:28.000Z
""" This is a test file used for testing the pytest plugin. """ def test_function_passed(snapshot): """ The snapshot for this function is expected to exist. """ snapshot.assert_match(3 + 4j) def test_function_new(snapshot): """ The snapshot for this function is expected to exist, but only one assertion ...
31.153846
100
0.708642
f7de06300594a810a1f4175db45d6b833ced1a94
7,940
py
Python
src/compas/geometry/pointclouds/pointcloud.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
src/compas/geometry/pointclouds/pointcloud.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
src/compas/geometry/pointclouds/pointcloud.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division from random import uniform from compas.geometry import transform_points from compas.geometry import centroid_points from compas.geometry import bounding_box from compas.geometry import Primitive from compas.geo...
27.957746
114
0.500756
f7de36b7d46515af7a1b6676baaac3b4ccaf3705
4,366
py
Python
oa/regex.py
Worteks/OrangeAssassin
21baf0b84fbedd887f6d88e13c624f14fb0b5e06
[ "Apache-2.0" ]
null
null
null
oa/regex.py
Worteks/OrangeAssassin
21baf0b84fbedd887f6d88e13c624f14fb0b5e06
[ "Apache-2.0" ]
null
null
null
oa/regex.py
Worteks/OrangeAssassin
21baf0b84fbedd887f6d88e13c624f14fb0b5e06
[ "Apache-2.0" ]
null
null
null
"""Handle regex conversions.""" from builtins import object import re import operator from functools import reduce import oa.errors # Map of perl flags and the corresponding re ones. FLAGS = { "i": re.IGNORECASE, "s": re.DOTALL, "m": re.MULTILINE, "x": re.VERBOSE, } DELIMS = { "/": "/", "{"...
28.535948
81
0.574668
f7dec0cd3c585519d06741f3516a5564ea368e83
1,749
py
Python
test_data/barometer_kalman.py
theo-brown/ahrs
cd9c9e0bbf9db7fd67a297e1aafa8518bf17050d
[ "MIT" ]
1
2022-01-19T14:20:05.000Z
2022-01-19T14:20:05.000Z
test_data/barometer_kalman.py
theo-brown/ahrs
cd9c9e0bbf9db7fd67a297e1aafa8518bf17050d
[ "MIT" ]
null
null
null
test_data/barometer_kalman.py
theo-brown/ahrs
cd9c9e0bbf9db7fd67a297e1aafa8518bf17050d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from matplotlib.widgets import Slider from kalman_filter import KalmanFilter raw_data = np.loadtxt("barometer_data.txt") # Truncate raw data (it's super long) raw_data = raw_data[:raw_data.size//4] raw_data_step = np.loadtxt("barometer_data_step.txt") t1 = np.arange(0...
31.232143
95
0.704974
f7df479cf0eb03f9edb6d36fe5773b716ab0594f
1,694
py
Python
number-of-orders-in-the-backlog/number_of_orders_in_the_backlog.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
null
null
null
number-of-orders-in-the-backlog/number_of_orders_in_the_backlog.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
null
null
null
number-of-orders-in-the-backlog/number_of_orders_in_the_backlog.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
1
2019-06-19T00:51:02.000Z
2019-06-19T00:51:02.000Z
import heapq from typing import List
40.333333
78
0.432113
f7df8183ed1dfeac2b83cb6b6b173f961a29bd8f
2,585
py
Python
scripts/plotresults.py
rafzi/DeepThings
d12e8e8ad9f9ebaa3b0d55f547c0b3c7f1baf636
[ "MIT" ]
1
2020-02-28T10:07:47.000Z
2020-02-28T10:07:47.000Z
scripts/plotresults.py
rafzi/DeepThings
d12e8e8ad9f9ebaa3b0d55f547c0b3c7f1baf636
[ "MIT" ]
null
null
null
scripts/plotresults.py
rafzi/DeepThings
d12e8e8ad9f9ebaa3b0d55f547c0b3c7f1baf636
[ "MIT" ]
2
2020-03-10T15:17:55.000Z
2020-03-17T15:37:37.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt # 1: YOLOv2, 2: AlexNet, 3: VGG-16, 4: GoogLeNet model = 4 LINEPLOT = True dfs = pd.read_excel("t.xlsx", sheet_name=None, header=None) if model == 1: ms = "YOLOv2" elif model == 2: ms = "AlexNet" elif model == 3: ms = "VGG-16" elif model == ...
26.927083
82
0.573308
f7e1dfd58619e2e27eaf63ac95f9bbd2215fc5c4
565
py
Python
setup.py
oubiwann/myriad-worlds
bfbbab713e35c5700e37158a892c3a66a8c9f37a
[ "MIT" ]
3
2015-01-29T05:24:32.000Z
2021-05-10T01:47:36.000Z
setup.py
oubiwann/myriad-worlds
bfbbab713e35c5700e37158a892c3a66a8c9f37a
[ "MIT" ]
null
null
null
setup.py
oubiwann/myriad-worlds
bfbbab713e35c5700e37158a892c3a66a8c9f37a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from myriad import meta from myriad.util import dist setup( name=meta.display_name, version=meta.version, description=meta.description, long_description=meta.long_description, author=meta.author, author_email=meta.author_email, url=meta.url, ...
21.730769
51
0.709735
f7e2347893dbbd12b3c90e6ec6f949cb83aa2a4f
1,110
py
Python
val_resnet.py
AlexKhakhlyuk/fixedconv
bf3848c3fd60af2e617f2118064ee6f551b45d95
[ "Apache-1.1" ]
1
2020-05-05T07:20:25.000Z
2020-05-05T07:20:25.000Z
val_resnet.py
khakhlyuk/fixedconv
bf3848c3fd60af2e617f2118064ee6f551b45d95
[ "Apache-1.1" ]
null
null
null
val_resnet.py
khakhlyuk/fixedconv
bf3848c3fd60af2e617f2118064ee6f551b45d95
[ "Apache-1.1" ]
null
null
null
from subprocess import run # python -u val_resnet.py cuda = 0 # which gpu to use dataset = 'cifar10' logs_path = 'logs_resnet' + '_' + dataset manualSeed = 99 workers = 0 for model in ['resnet20', 'preact_resnet20']: commands = [ 'python', '-u', 'validate_resnet.py', '--dataset=' + dataset, ...
27.75
53
0.473874
f7e3584c6b4d27959b077f55eb4556611369a6be
466
py
Python
temboo/core/Library/KhanAcademy/Badges/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/KhanAcademy/Badges/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/KhanAcademy/Badges/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
from temboo.Library.KhanAcademy.Badges.AllCategories import AllCategories, AllCategoriesInputSet, AllCategoriesResultSet, AllCategoriesChoreographyExecution from temboo.Library.KhanAcademy.Badges.BadgesByCategory import BadgesByCategory, BadgesByCategoryInputSet, BadgesByCategoryResultSet, BadgesByCategoryChoreographyE...
116.5
171
0.909871
f7e5ec76a74f735b8085dae26118d20f0eea400d
453
py
Python
akagi/data_sources/spreadsheet_data_source.py
pauchan/akagi
7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b
[ "MIT" ]
26
2017-05-18T11:52:04.000Z
2018-08-25T22:03:07.000Z
akagi/data_sources/spreadsheet_data_source.py
pauchan/akagi
7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b
[ "MIT" ]
325
2017-05-08T07:22:28.000Z
2022-03-31T15:43:18.000Z
akagi/data_sources/spreadsheet_data_source.py
pauchan/akagi
7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b
[ "MIT" ]
7
2017-05-02T02:06:15.000Z
2020-04-09T05:32:11.000Z
from akagi.data_source import DataSource from akagi.data_file import DataFile
28.3125
72
0.732892
f7e673c1a03cc4b207464e8a0e2d7bce749cb8ba
7,401
py
Python
stanCode_projects/my_drawing/my_drawing.py
kenhuang1204/stanCode_projects
f697a34a1c54a864c1140cb0f2f76e2d70b45698
[ "MIT" ]
null
null
null
stanCode_projects/my_drawing/my_drawing.py
kenhuang1204/stanCode_projects
f697a34a1c54a864c1140cb0f2f76e2d70b45698
[ "MIT" ]
null
null
null
stanCode_projects/my_drawing/my_drawing.py
kenhuang1204/stanCode_projects
f697a34a1c54a864c1140cb0f2f76e2d70b45698
[ "MIT" ]
null
null
null
""" File: my_drawing.py Name: ---------------------- TODO: """ from campy.graphics.gobjects import GOval, GRect, GLine, GLabel, GPolygon, GArc from campy.graphics.gwindow import GWindow def main(): """ Meet Snorlax () of stanCode! He dreams of Python when he sleeps. Be like Snorlax. """ window = GWi...
28.910156
88
0.638427
f7e7736eb2b76396a07e8f09a10926efaa231ede
748
py
Python
kivy/core/clipboard/clipboard_xsel.py
CharaD7/kivy
85065fe6633f5ac831c193dc84e3f636b789cc3a
[ "MIT" ]
2
2021-05-16T09:46:14.000Z
2021-11-17T11:23:15.000Z
kivy/core/clipboard/clipboard_xsel.py
CharaD7/kivy
85065fe6633f5ac831c193dc84e3f636b789cc3a
[ "MIT" ]
1
2016-11-11T13:45:42.000Z
2016-11-11T13:45:42.000Z
kivy/core/clipboard/clipboard_xsel.py
CharaD7/kivy
85065fe6633f5ac831c193dc84e3f636b789cc3a
[ "MIT" ]
2
2017-03-09T14:27:03.000Z
2019-05-03T08:36:02.000Z
''' Clipboard xsel: an implementation of the Clipboard using xsel command line tool. ''' __all__ = ('ClipboardXsel', ) from kivy.utils import platform from kivy.core.clipboard._clipboard_ext import ClipboardExternalBase if platform != 'linux': raise SystemError('unsupported platform for xsel clipboard') try: ...
24.933333
80
0.67246
f7ea40e807af6204059adeba1056db95e63b5bcf
492
py
Python
plugins/hashsum_download/girder_hashsum_download/settings.py
JKitok/girder
317962d155fc9811d25e5f33bd3e849c4ac96645
[ "Apache-2.0" ]
395
2015-01-12T19:20:13.000Z
2022-03-30T05:40:40.000Z
plugins/hashsum_download/girder_hashsum_download/settings.py
JKitok/girder
317962d155fc9811d25e5f33bd3e849c4ac96645
[ "Apache-2.0" ]
2,388
2015-01-01T20:09:19.000Z
2022-03-29T16:49:14.000Z
plugins/hashsum_download/girder_hashsum_download/settings.py
JKitok/girder
317962d155fc9811d25e5f33bd3e849c4ac96645
[ "Apache-2.0" ]
177
2015-01-04T14:47:00.000Z
2022-03-25T09:01:51.000Z
from girder.exceptions import ValidationException from girder.utility import setting_utilities
27.333333
85
0.802846
f7ea6e1ab40e2fa5eea55fc79f11b658b6c35f7e
44,837
py
Python
forager_server/forager_server_api/views.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
1
2020-12-01T23:25:58.000Z
2020-12-01T23:25:58.000Z
forager_server/forager_server_api/views.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
2
2020-10-07T01:03:06.000Z
2020-10-12T19:08:55.000Z
forager_server/forager_server_api/views.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
null
null
null
from collections import defaultdict, namedtuple from dataclasses import dataclass import distutils.util import functools import itertools import json import math import operator import os import random import uuid import shutil import logging import time from typing import List, Dict, NamedTuple, Optional from django...
31.072072
89
0.657872
f7eab2118d85cfe10c666d128c82a3c415e87f34
2,632
py
Python
ccmlib/cluster_factory.py
justinchuch/ccm
808b6ca13526785b0fddfe1ead2383c060c4b8b6
[ "Apache-2.0" ]
626
2015-01-01T18:11:03.000Z
2017-12-19T00:06:49.000Z
ccmlib/cluster_factory.py
justinchuch/ccm
808b6ca13526785b0fddfe1ead2383c060c4b8b6
[ "Apache-2.0" ]
358
2015-01-21T17:06:45.000Z
2017-12-20T16:03:01.000Z
ccmlib/cluster_factory.py
justinchuch/ccm
808b6ca13526785b0fddfe1ead2383c060c4b8b6
[ "Apache-2.0" ]
172
2015-01-02T21:40:45.000Z
2017-12-19T20:17:49.000Z
from __future__ import absolute_import import os import yaml from ccmlib import common, extension, repository from ccmlib.cluster import Cluster from ccmlib.dse_cluster import DseCluster from ccmlib.node import Node from distutils.version import LooseVersion #pylint: disable=import-error, no-name-in-module
39.878788
150
0.628799
f7eb16ad3bcd19920bd13a45530065dd321f93c0
9,872
py
Python
causalnex/structure/pytorch/dist_type/_base.py
Rishab26/causalnex
127d9324a3d68c1795299c7522f22cdea880f344
[ "Apache-2.0" ]
1,523
2020-01-28T12:37:48.000Z
2022-03-31T09:27:58.000Z
causalnex/structure/pytorch/dist_type/_base.py
Rishab26/causalnex
127d9324a3d68c1795299c7522f22cdea880f344
[ "Apache-2.0" ]
124
2020-01-28T15:12:07.000Z
2022-03-31T18:59:16.000Z
causalnex/structure/pytorch/dist_type/_base.py
Rishab26/causalnex
127d9324a3d68c1795299c7522f22cdea880f344
[ "Apache-2.0" ]
169
2020-01-28T15:13:53.000Z
2022-03-30T21:04:02.000Z
# Copyright 2019-2020 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS"...
31.742765
105
0.630976
f7ec17b78bb1ba2ad0135e9a1b1bf5b7c8916ff3
4,225
py
Python
src/cmdsh/utils.py
kotfu/cmdsh
c9083793de9117e4c5c4dfcccdeee1b83a0be7ab
[ "MIT" ]
null
null
null
src/cmdsh/utils.py
kotfu/cmdsh
c9083793de9117e4c5c4dfcccdeee1b83a0be7ab
[ "MIT" ]
null
null
null
src/cmdsh/utils.py
kotfu/cmdsh
c9083793de9117e4c5c4dfcccdeee1b83a0be7ab
[ "MIT" ]
null
null
null
# # -*- coding: utf-8 -*- # # Copyright (c) 2019 Jared Crapo # # 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, mod...
32.5
89
0.680947
f7ecb294c442659591e90f954f3dc3437349ef17
4,992
py
Python
tensorflow/python/tpu/tpu_outside_compilation_test.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/tpu/tpu_outside_compilation_test.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
2
2021-11-10T20:08:14.000Z
2022-02-10T02:44:26.000Z
tensorflow/python/tpu/tpu_outside_compilation_test.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
25
2020-08-31T12:21:19.000Z
2022-03-20T05:16:32.000Z
# Copyright 2020 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 applica...
29.192982
80
0.698317
f7eccedc6580e295788f95c53fa5d25556b9e059
1,338
py
Python
Source/Oyooni/Text Recognition/server.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
Source/Oyooni/Text Recognition/server.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
Source/Oyooni/Text Recognition/server.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_restful import Resource, Api from test import get_models, getTextFromImage from testDocument import getText from time import time app = Flask(__name__) api = Api(app) net, refine_net = get_models() api.add_resource(TextRecognizerService, "/recognize-text") if __name__ =...
26.76
73
0.523916
f7ee1b4e15755381cc1c76d8d915f30011f727a3
17,132
py
Python
varats/varats/plots/blame_interaction_graph_plots.py
Kaufi-Jonas/VaRA-Tool-Suite
31563896ad7dd1c1a147202b0c5c9fffe772b803
[ "BSD-2-Clause" ]
null
null
null
varats/varats/plots/blame_interaction_graph_plots.py
Kaufi-Jonas/VaRA-Tool-Suite
31563896ad7dd1c1a147202b0c5c9fffe772b803
[ "BSD-2-Clause" ]
null
null
null
varats/varats/plots/blame_interaction_graph_plots.py
Kaufi-Jonas/VaRA-Tool-Suite
31563896ad7dd1c1a147202b0c5c9fffe772b803
[ "BSD-2-Clause" ]
null
null
null
"""Module for BlameInteractionGraph plots.""" import typing as tp from datetime import datetime from pathlib import Path import click import matplotlib.pyplot as plt import networkx as nx import pandas as pd import plotly.offline as offply from matplotlib import style from varats.data.reports.blame_interaction_graph...
33.330739
80
0.627714
f7ef21c429f9bf83356bf40d0aaa0462acb403b0
2,632
py
Python
Day 7/Day 7.py
Dullstar/Advent-Of-Code-2020
7d3a64906ced2ac98bcfe67a9f3294c8756dc493
[ "MIT" ]
null
null
null
Day 7/Day 7.py
Dullstar/Advent-Of-Code-2020
7d3a64906ced2ac98bcfe67a9f3294c8756dc493
[ "MIT" ]
null
null
null
Day 7/Day 7.py
Dullstar/Advent-Of-Code-2020
7d3a64906ced2ac98bcfe67a9f3294c8756dc493
[ "MIT" ]
null
null
null
import re if __name__ == "__main__": main()
33.74359
106
0.56383
f7efbdb4f4f2e1681183c05075e6b958502a3563
83,010
py
Python
sdk/python/pulumi_aws_native/apigateway/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/apigateway/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/apigateway/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
42.85493
389
0.655427
f7f110d1e3f278e009edf38f3492952620bab08d
619
py
Python
bin/training_data/redmagic_ds_training_data.py
mclaughlin6464/pearce
746f2bf4bf45e904d66996e003043661a01423ba
[ "MIT" ]
null
null
null
bin/training_data/redmagic_ds_training_data.py
mclaughlin6464/pearce
746f2bf4bf45e904d66996e003043661a01423ba
[ "MIT" ]
16
2016-11-04T22:24:32.000Z
2018-05-01T22:53:39.000Z
bin/training_data/redmagic_ds_training_data.py
mclaughlin6464/pearce
746f2bf4bf45e904d66996e003043661a01423ba
[ "MIT" ]
3
2016-10-04T08:07:52.000Z
2019-05-03T23:50:01.000Z
#!/.conda/envs/hodemulator/bin/python from pearce.emulator import make_training_data from pearce.emulator import DEFAULT_PARAMS as ordered_params ordered_params['f_c'] = (0.05, .5) ordered_params['logMmin'] = (11.5, 13.0)#(13.0, 14.5) ordered_params['sigma_logM'] = (0.05, 1.0) ordered_params['logM1'] = (12.0, 15.0) ord...
38.6875
96
0.726979
f7f1a1740efc36292fbb917d24b84a88544cbd25
40,478
py
Python
src/legohdl/workspace.py
c-rus/legoHDL
d7d77c05514c8d6dc1070c4efe589f392307daac
[ "MIT" ]
6
2021-12-16T05:40:37.000Z
2022-02-07T15:04:39.000Z
src/legohdl/workspace.py
c-rus/legoHDL
d7d77c05514c8d6dc1070c4efe589f392307daac
[ "MIT" ]
61
2021-09-28T03:05:13.000Z
2022-01-16T00:03:14.000Z
src/legohdl/workspace.py
c-rus/legoHDL
d7d77c05514c8d6dc1070c4efe589f392307daac
[ "MIT" ]
1
2021-12-16T07:03:18.000Z
2021-12-16T07:03:18.000Z
# ------------------------------------------------------------------------------ # Project: legohdl # Script: workspace.py # Author: Chase Ruskin # Description: # The Workspace class. A Workspace object has a path and a list of available # vendors. This is what the user keeps their work's scope within for a given #...
38.079022
186
0.531424
f7f1c343e2c46298649ddf9fe556e96b2bec9514
3,871
py
Python
ev_de.py
avinashmnit30/Electric-Vehicle-Optimal-Charging
7f09bdbb9904285ddbbfeaa28cf402f7ef6f4cb4
[ "BSD-3-Clause" ]
7
2018-03-09T11:19:39.000Z
2022-01-19T13:45:20.000Z
ev_de.py
avinashmnit30/Electric-Vehicle-Optimal-Charging
7f09bdbb9904285ddbbfeaa28cf402f7ef6f4cb4
[ "BSD-3-Clause" ]
null
null
null
ev_de.py
avinashmnit30/Electric-Vehicle-Optimal-Charging
7f09bdbb9904285ddbbfeaa28cf402f7ef6f4cb4
[ "BSD-3-Clause" ]
1
2022-03-03T12:08:52.000Z
2022-03-03T12:08:52.000Z
# -*- coding: utf-8 -*- """ Created on Wed Dec 16 18:01:24 2015 @author: Avinash """ import numpy as np from numpy import * import numpy from math import * import ev_charge_schedule_modification1 as ev #import ev_charge_schedule.static as func1 #import ev_charge_schedule.dynamic as func2 import tim...
29.105263
112
0.482046
f7f1da41a1909260bbd83fee7efec53538a5f960
775
py
Python
var/spack/repos/builtin/packages/memaxes/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/memaxes/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/memaxes/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import *
31
93
0.672258
f7f61f99b14ff05744c7eb403d860339bcd27eae
3,970
py
Python
auth/decorators.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
null
null
null
auth/decorators.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
null
null
null
auth/decorators.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
null
null
null
import logging from functools import wraps from flask import request, session from prometheus_client import Counter from auth.basic import validate_basic_auth from auth.oauth import validate_bearer_auth from auth.cookie import validate_session_cookie from auth.signedgrant import validate_signed_grant from util.http ...
35.446429
101
0.668766
f7f6435a685ce7599500c328cd1e055481aa5830
5,353
py
Python
ddpm_proteins/utils.py
lucidrains/ddpm-proteins
88bfacbd3cbdc4e38585fab420106f56e890c5f7
[ "MIT" ]
61
2021-06-14T16:41:54.000Z
2022-03-23T14:09:46.000Z
ddpm_proteins/utils.py
lucidrains/ddpm-proteins
88bfacbd3cbdc4e38585fab420106f56e890c5f7
[ "MIT" ]
null
null
null
ddpm_proteins/utils.py
lucidrains/ddpm-proteins
88bfacbd3cbdc4e38585fab420106f56e890c5f7
[ "MIT" ]
5
2021-06-15T11:51:47.000Z
2022-03-18T08:01:48.000Z
import os from PIL import Image import seaborn as sn import matplotlib.pyplot as plt import torch import torch.nn.functional as F from sidechainnet.utils.sequence import ProteinVocabulary from einops import rearrange # general functions # singleton msa transformer msa_instances = None # MSA embedding related func...
29.092391
134
0.655707
f7f93aac7b9d793ef23c38a97b1f3ca8216eaa8d
24,348
py
Python
samples/python/efficientdet/create_onnx.py
L-Net-1992/TensorRT
34b664d404001bd724cb56b52a6e0e05e1fd97f2
[ "Apache-2.0" ]
null
null
null
samples/python/efficientdet/create_onnx.py
L-Net-1992/TensorRT
34b664d404001bd724cb56b52a6e0e05e1fd97f2
[ "Apache-2.0" ]
null
null
null
samples/python/efficientdet/create_onnx.py
L-Net-1992/TensorRT
34b664d404001bd724cb56b52a6e0e05e1fd97f2
[ "Apache-2.0" ]
null
null
null
# # SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # # 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...
53.986696
122
0.619065
f7f9d815fd74248ee87d991bd107aab15b47f8cc
618
py
Python
easy/867-transpose-matrix.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
2
2021-03-14T11:38:26.000Z
2021-03-14T11:38:30.000Z
easy/867-transpose-matrix.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
null
null
null
easy/867-transpose-matrix.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
1
2022-01-17T19:33:23.000Z
2022-01-17T19:33:23.000Z
''' matrix matrix ''' from typing import List ''' m*nn*m ''' s = Solution() print(s.transpose([[1, 2, 3], [4, 5, 6], [7, 8, 9]])) print(s.transpose([[1, 2, 3], [4, 5, 6]]))
20.6
68
0.548544
f7fa229686aa6986aa8b8f8a1dc2ccded74af095
5,940
py
Python
adam_visual_perception/head_gaze_estimator.py
isi-vista/adam-visual-perception
8ad6ed883b184b5407a1bf793617b226c78b3a13
[ "MIT" ]
1
2020-07-21T10:52:26.000Z
2020-07-21T10:52:26.000Z
adam_visual_perception/head_gaze_estimator.py
isi-vista/adam-visual-perception
8ad6ed883b184b5407a1bf793617b226c78b3a13
[ "MIT" ]
null
null
null
adam_visual_perception/head_gaze_estimator.py
isi-vista/adam-visual-perception
8ad6ed883b184b5407a1bf793617b226c78b3a13
[ "MIT" ]
2
2020-07-21T15:30:42.000Z
2021-01-20T21:54:09.000Z
from adam_visual_perception import LandmarkDetector from adam_visual_perception.utility import * import numpy as np import math import cv2 import os import sys
35.783133
87
0.458754
f7fa5e91400000b4953ab8022408df2a80e3be82
3,388
py
Python
pypoca/cogs/general.py
leandcesar/PyPoca
416f690faad0b511ca9d04b012af35256ee95089
[ "MIT" ]
1
2021-11-22T04:22:08.000Z
2021-11-22T04:22:08.000Z
pypoca/cogs/general.py
leandcesar/PyPoca
416f690faad0b511ca9d04b012af35256ee95089
[ "MIT" ]
null
null
null
pypoca/cogs/general.py
leandcesar/PyPoca
416f690faad0b511ca9d04b012af35256ee95089
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import disnake from disnake.ext import commands from pypoca.config import COLOR, URLS from pypoca.database import Server from pypoca.ext import ALL, DEFAULT, Choice, Option
47.055556
113
0.626328
f7fab2882ba44013b1ca7273273e6b041c1e46c3
1,301
py
Python
costor_server/storage/api/views/authcheck.py
rphi/costor
081de65778d404cf7a22c5524bf89a146fa8326b
[ "CNRI-Python" ]
2
2019-12-31T16:49:36.000Z
2021-02-17T09:47:41.000Z
costor_server/storage/api/views/authcheck.py
rphi/costor
081de65778d404cf7a22c5524bf89a146fa8326b
[ "CNRI-Python" ]
null
null
null
costor_server/storage/api/views/authcheck.py
rphi/costor
081de65778d404cf7a22c5524bf89a146fa8326b
[ "CNRI-Python" ]
null
null
null
from rest_framework.decorators import api_view, permission_classes from rest_framework.parsers import MultiPartParser from rest_framework.response import Response from rest_framework import permissions from rest_framework.exceptions import APIException from rest_framework.decorators import parser_classes from django.sh...
30.97619
117
0.704074
f7facb852a3db388a7c69659114114ea83276164
12,295
py
Python
tensorflow_probability/python/experimental/mcmc/sample_fold.py
rupei/probability
4aa1ee652853a19c4e80d39216c3fa535ed3e589
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/experimental/mcmc/sample_fold.py
rupei/probability
4aa1ee652853a19c4e80d39216c3fa535ed3e589
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/experimental/mcmc/sample_fold.py
rupei/probability
4aa1ee652853a19c4e80d39216c3fa535ed3e589
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
43.140351
85
0.727938
f7facc8714f2358ff5e4f5bf725d3516243bec69
10,025
py
Python
algos/custom_ppo2.py
Ottawa-Autonomous-Vehicle-Group/learning-to-drive-in-5-minutes
fb82bc77593605711289e03f95dcfb6d3ea9e6c3
[ "MIT" ]
1
2020-08-02T20:47:44.000Z
2020-08-02T20:47:44.000Z
algos/custom_ppo2.py
vijpandaturtle/learning-to-drive-in-5-minutes
fb82bc77593605711289e03f95dcfb6d3ea9e6c3
[ "MIT" ]
null
null
null
algos/custom_ppo2.py
vijpandaturtle/learning-to-drive-in-5-minutes
fb82bc77593605711289e03f95dcfb6d3ea9e6c3
[ "MIT" ]
null
null
null
import time from collections import deque import gym import numpy as np from stable_baselines import logger, PPO2 from stable_baselines.a2c.utils import total_episode_reward_logger from stable_baselines.common import explained_variance, TensorboardWriter from stable_baselines.common.runners import AbstractEnvRunner fr...
52.213542
121
0.572569
f7fafc3eca2a0d5f684ce78dbf8d565f8e0da8a0
787
py
Python
craw/modules/trail/trails/feeds/urlvir.py
xuluhang/DomainBlockList
e9e69138ffdba6a73741fe204306f1f0b66eff19
[ "MIT" ]
19
2019-11-25T09:02:15.000Z
2021-07-24T12:05:28.000Z
craw/modules/trail/trails/feeds/urlvir.py
xuluhang/DomainBlockList
e9e69138ffdba6a73741fe204306f1f0b66eff19
[ "MIT" ]
1
2019-11-25T09:06:08.000Z
2019-11-25T09:06:08.000Z
craw/modules/trail/trails/feeds/urlvir.py
xuluhang/DomainBlockList
e9e69138ffdba6a73741fe204306f1f0b66eff19
[ "MIT" ]
10
2019-11-26T02:42:02.000Z
2021-08-28T07:16:08.000Z
#!/usr/bin/env python2 """ Copyright (c) 2014-2019 Maltrail developers (https://github.com/stamparm/maltrail/) See the file 'LICENSE' for copying permission """ from craw.modules.trail.plugins.util import wget_content __url__ = "http://www.urlvir.com/export-hosts/" __check__ = "Updated on" __info__ = "malware" __ref...
23.848485
83
0.66709
f7fb1109bf89db5bf87c82699fc7b9493c2500d3
1,035
py
Python
tests/continuous_integration.py
kfaRabi/online-judge-tools
79de8d37e1aa78a7c4c82c6a666f1f1602caf545
[ "MIT" ]
null
null
null
tests/continuous_integration.py
kfaRabi/online-judge-tools
79de8d37e1aa78a7c4c82c6a666f1f1602caf545
[ "MIT" ]
null
null
null
tests/continuous_integration.py
kfaRabi/online-judge-tools
79de8d37e1aa78a7c4c82c6a666f1f1602caf545
[ "MIT" ]
null
null
null
import os import subprocess import sys import unittest # TODO: these command should be written at once, at only .travis.yml or at only here paths = ['oj', 'onlinejudge', 'setup.py', 'tests']
39.807692
127
0.68599
f7fbd980831ccec066261d37e528035e5f2d7c7a
12,278
py
Python
open-hackathon-client/src/client/config_sample.py
overbest/open-hackathon
62e085fbe603bcb00ca56d2b96cfc43bf44c710b
[ "MIT" ]
null
null
null
open-hackathon-client/src/client/config_sample.py
overbest/open-hackathon
62e085fbe603bcb00ca56d2b96cfc43bf44c710b
[ "MIT" ]
null
null
null
open-hackathon-client/src/client/config_sample.py
overbest/open-hackathon
62e085fbe603bcb00ca56d2b96cfc43bf44c710b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # ----------------------------------------------------------------------------------- # Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softw...
42.93007
174
0.476136
f7fbf451f7ab0b316753c8ad61a542b73cbff82d
14,904
py
Python
processing_provider/Rast_fillRasterwithPatches.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
1
2022-03-28T22:18:09.000Z
2022-03-28T22:18:09.000Z
processing_provider/Rast_fillRasterwithPatches.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
null
null
null
processing_provider/Rast_fillRasterwithPatches.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ fillRasterwithPatches.py *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Gene...
41.51532
135
0.541063
f7fc84f573aa97d3b828afe66e29e4f49f7bb79c
1,393
py
Python
quantlab/COCO/utils/inference.py
lukasc-ch/QuantLab
7ddcc51ec1131a58269768cd898ce04e8b49beb6
[ "Apache-2.0" ]
6
2019-05-24T17:39:07.000Z
2021-11-06T22:19:55.000Z
quantlab/COCO/utils/inference.py
lukasc-ch/QuantLab
7ddcc51ec1131a58269768cd898ce04e8b49beb6
[ "Apache-2.0" ]
null
null
null
quantlab/COCO/utils/inference.py
lukasc-ch/QuantLab
7ddcc51ec1131a58269768cd898ce04e8b49beb6
[ "Apache-2.0" ]
4
2019-05-24T17:39:15.000Z
2021-04-02T07:13:11.000Z
import matplotlib.patches as patches import matplotlib.pyplot as plt import numpy as np
42.212121
128
0.580761
f7fcc0247bffa7d5ad90651380c319258f099e35
633
py
Python
dockwidhistory.py
kimoamer/Clinic-Manager
53184a4e8f369bf083109d065b2042fc7cf5bfbd
[ "MIT" ]
3
2021-05-12T01:05:12.000Z
2022-02-11T15:43:00.000Z
dockwidhistory.py
kimoamer/Clinic-Manager
53184a4e8f369bf083109d065b2042fc7cf5bfbd
[ "MIT" ]
null
null
null
dockwidhistory.py
kimoamer/Clinic-Manager
53184a4e8f369bf083109d065b2042fc7cf5bfbd
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QDialog from PyQt5.QtGui import QFont from PyQt5.QtCore import Qt from dockwina import Ui_Form as docka
33.315789
51
0.665087
f7fcf7559948b6752dd0ee377be44bd42c092522
351
py
Python
forest_lite/server/lib/palette.py
uk-gov-mirror/MetOffice.forest-lite
9406b53f7e6a9651eb675e0ac2e5945421b25557
[ "BSD-3-Clause" ]
6
2020-08-05T16:12:57.000Z
2022-01-06T01:34:19.000Z
forest_lite/server/lib/palette.py
uk-gov-mirror/MetOffice.forest-lite
9406b53f7e6a9651eb675e0ac2e5945421b25557
[ "BSD-3-Clause" ]
49
2020-08-14T13:58:32.000Z
2021-06-29T11:42:32.000Z
forest_lite/server/lib/palette.py
uk-gov-mirror/MetOffice.forest-lite
9406b53f7e6a9651eb675e0ac2e5945421b25557
[ "BSD-3-Clause" ]
2
2020-12-03T09:24:13.000Z
2021-04-11T06:10:36.000Z
import bokeh.palettes
27
68
0.566952
f7fdd8880ea99f126ba61a61e3b34ab49ba52b93
1,549
py
Python
runtests.py
ombu/django-sortedm2m
2691cf00174577bc667d5d8c1d42071604ee2095
[ "BSD-3-Clause" ]
null
null
null
runtests.py
ombu/django-sortedm2m
2691cf00174577bc667d5d8c1d42071604ee2095
[ "BSD-3-Clause" ]
null
null
null
runtests.py
ombu/django-sortedm2m
2691cf00174577bc667d5d8c1d42071604ee2095
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import os, sys, warnings parent = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, parent) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings") import django from django.core.management import exe...
28.163636
88
0.654616
f7fe2e12189f5c7bd5c301d8cd6a29b000ff6951
4,352
py
Python
origin_check.py
mikispag/OriginCheck
b3bda26c382cdbfd78bddc11d99d6e8723255599
[ "MIT" ]
1
2020-08-19T06:53:24.000Z
2020-08-19T06:53:24.000Z
origin_check.py
mikispag/OriginCheck
b3bda26c382cdbfd78bddc11d99d6e8723255599
[ "MIT" ]
null
null
null
origin_check.py
mikispag/OriginCheck
b3bda26c382cdbfd78bddc11d99d6e8723255599
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import concurrent.futures import logging import requests from sys import argv, exit from urllib.parse import urlparse logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) HEADERS = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537....
39.563636
143
0.584789
f7ff07662b3e96ced8491b8279428f96107213e1
743
py
Python
orange3/Orange/preprocess/setup.py
rgschmitz1/BioDepot-workflow-builder
f74d904eeaf91ec52ec9b703d9fb38e9064e5a66
[ "MIT" ]
54
2017-01-08T17:21:49.000Z
2021-11-02T08:46:07.000Z
orange3/Orange/preprocess/setup.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
22
2017-03-28T06:03:14.000Z
2021-07-28T05:43:55.000Z
orange3/Orange/preprocess/setup.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
21
2017-01-26T21:12:09.000Z
2022-01-31T21:34:59.000Z
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # License: BSD Style. import os import numpy if __name__ == "__main__": from numpy.distutils.core import setup setup(**configuration(top_path="").todict())
24.766667
66
0.644684
f7ff646590489831f35fa9fe7ca9c0fe9f2f76be
592
py
Python
ProjectEuler_plus/euler_042.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_042.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_042.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from math import sqrt # (n * (n + 1)) / 2 -> n ** 2 + n - (2 * x) # Solved with quadratic equation # https://en.wikipedia.org/wiki/Quadratic_equation for _ in range(int(input().strip())): t = int(input().strip()) d = (sqrt(4 * 2 * t + 1) - 1) if d.is_integer(): ...
21.925926
52
0.489865
7900515320c3b3319c03f61841dc3f24a082e7f3
12,476
py
Python
src/lpb.py
RobbinBouwmeester/LIT
0516a69fbf1b8e9976524e0c243f82de041df544
[ "Apache-2.0" ]
null
null
null
src/lpb.py
RobbinBouwmeester/LIT
0516a69fbf1b8e9976524e0c243f82de041df544
[ "Apache-2.0" ]
null
null
null
src/lpb.py
RobbinBouwmeester/LIT
0516a69fbf1b8e9976524e0c243f82de041df544
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2017 Robbin Bouwmeester 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, di...
36.162319
303
0.655579
79016946767147d0fbaeddece8c5f2511d1e6b1d
178
py
Python
floris/tools/optimization/scipy/__init__.py
eirikur16/flrs
c98604593753def05086b54ce82f5551f01d2529
[ "Apache-2.0" ]
91
2019-06-04T08:56:29.000Z
2022-03-13T17:39:22.000Z
floris/tools/optimization/scipy/__init__.py
eirikur16/flrs
c98604593753def05086b54ce82f5551f01d2529
[ "Apache-2.0" ]
224
2019-04-08T22:03:45.000Z
2022-03-31T17:56:09.000Z
floris/tools/optimization/scipy/__init__.py
eirikur16/flrs
c98604593753def05086b54ce82f5551f01d2529
[ "Apache-2.0" ]
97
2019-04-23T20:48:20.000Z
2022-03-29T08:17:02.000Z
from . import ( yaw, layout, base_COE, optimization, layout_height, power_density, yaw_wind_rose, power_density_1D, yaw_wind_rose_parallel, )
14.833333
27
0.651685
790266e9a7bcf554bd70851b9a13216ab9f797e3
11,530
py
Python
src/gdata/spreadsheets/data.py
Cloudlock/gdata-python3
a6481a13590bfa225f91a97b2185cca9aacd1403
[ "Apache-2.0" ]
19
2017-06-09T13:38:03.000Z
2020-12-12T07:45:48.000Z
src/gdata/spreadsheets/data.py
AlexxIT/gdata-python3
5cc5a83a469d87f804d1fda8760ec76bcb6050c9
[ "Apache-1.1" ]
11
2017-07-22T07:09:54.000Z
2020-12-02T15:08:48.000Z
src/gdata/spreadsheets/data.py
AlexxIT/gdata-python3
5cc5a83a469d87f804d1fda8760ec76bcb6050c9
[ "Apache-1.1" ]
25
2017-07-03T11:30:39.000Z
2020-10-01T02:21:13.000Z
#!/usr/bin/env python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License 2.0; # This module is used for version 2 of the Google Data APIs. """Provides classes and constants for the XML in the Google Spreadsheets API. Documentation for the raw XML which these classes represent can be found he...
31.162162
82
0.674761
79028a174225260b671df8c8ac4560369e16c2c8
710
py
Python
tests/test_issues/test_member_example.py
hsolbrig/pyjsg
5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429
[ "CC0-1.0" ]
3
2017-07-23T11:11:23.000Z
2020-11-30T15:36:51.000Z
tests/test_issues/test_member_example.py
hsolbrig/pyjsg
5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429
[ "CC0-1.0" ]
15
2018-01-05T17:18:34.000Z
2021-12-13T17:40:25.000Z
tests/test_issues/test_member_example.py
hsolbrig/pyjsg
5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429
[ "CC0-1.0" ]
null
null
null
import unittest from pyjsg.validate_json import JSGPython if __name__ == '__main__': unittest.main()
28.4
77
0.533803
7902cca06e3a841cee96255c053ca834cc5022f5
7,223
py
Python
src/pte/filetools/filefinder_abc.py
richardkoehler/pynm-decode
3120a410d79d3fce45d0f59025d68ba2d5e80d9e
[ "MIT" ]
1
2022-01-08T09:33:09.000Z
2022-01-08T09:33:09.000Z
src/pte/filetools/filefinder_abc.py
richardkoehler/pynm-decode
3120a410d79d3fce45d0f59025d68ba2d5e80d9e
[ "MIT" ]
null
null
null
src/pte/filetools/filefinder_abc.py
richardkoehler/pynm-decode
3120a410d79d3fce45d0f59025d68ba2d5e80d9e
[ "MIT" ]
null
null
null
"""Define abstract base classes to construct FileFinder classes.""" import os import shutil from abc import ABC, abstractmethod from dataclasses import dataclass, field from pathlib import Path from typing import Optional, Sequence, Union import mne_bids
33.439815
79
0.56417
790323f724e852cdcf7d4d9d3e4d89703473f768
3,725
py
Python
panel/routes/server.py
emilio2hd/pz-panel
6b53f465b2c041e963e2b75e48b1612549ad6fea
[ "MIT" ]
null
null
null
panel/routes/server.py
emilio2hd/pz-panel
6b53f465b2c041e963e2b75e48b1612549ad6fea
[ "MIT" ]
null
null
null
panel/routes/server.py
emilio2hd/pz-panel
6b53f465b2c041e963e2b75e48b1612549ad6fea
[ "MIT" ]
null
null
null
import glob import time from os import path from flask import Blueprint, jsonify, current_app, request, Response, json from flask_login import login_required from .. import pz_server_state from ..services.power_actions_service import is_valid_power_action, execute_action from ..services.server_options_service import ...
29.8
119
0.68698
7903777a50ff41a94bed60837d113e3a3fca6cc0
23,095
py
Python
sub_models.py
tmartin2/EnsembleSplice-Inactive
a161ff007b47ceadd3a21376f2eac2971bb81d90
[ "MIT" ]
null
null
null
sub_models.py
tmartin2/EnsembleSplice-Inactive
a161ff007b47ceadd3a21376f2eac2971bb81d90
[ "MIT" ]
null
null
null
sub_models.py
tmartin2/EnsembleSplice-Inactive
a161ff007b47ceadd3a21376f2eac2971bb81d90
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (c) 2021 Trevor P. Martin. All rights reserved. # Distributed under the MIT License. # ----------------------------------------------------------------------------- from Data import encode_data # from utils import cross_validati...
34.781627
126
0.525352
7903ec9c043049b9e677a2917e22d25071fe1f34
3,227
py
Python
tracportalopt/project/notification.py
isabella232/TracPortalPlugin
985581b16aad360cfc78d6b901c93fb922f7bc30
[ "MIT" ]
2
2015-01-19T05:53:30.000Z
2016-01-08T10:30:02.000Z
tracportalopt/project/notification.py
iij/TracPortalPlugin
985581b16aad360cfc78d6b901c93fb922f7bc30
[ "MIT" ]
1
2022-01-20T12:47:18.000Z
2022-01-20T12:47:18.000Z
tracportalopt/project/notification.py
isabella232/TracPortalPlugin
985581b16aad360cfc78d6b901c93fb922f7bc30
[ "MIT" ]
3
2016-12-08T02:25:36.000Z
2022-01-20T12:10:58.000Z
#! -*- coding: utf-8 -*- # # (C) 2013 Internet Initiative Japan Inc. # All rights reserved. # # Created on 2013/05/15 # @author: yosinobu@iij.ad.jp """Notify project owner with email when the project created successfully.""" from pkg_resources import resource_filename from trac.config import Option, ListOption from tra...
37.523256
115
0.654478
790488091f13f4b2ff427e7b9bda7aa18b0d732c
1,391
py
Python
misc/style/check-include-guard-convention.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
4
2019-04-23T10:41:35.000Z
2019-10-27T05:14:42.000Z
misc/style/check-include-guard-convention.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
null
null
null
misc/style/check-include-guard-convention.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
4
2018-01-16T00:00:22.000Z
2019-11-01T23:35:01.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import glob import os.path import sys DIR = os.path.dirname(os.path.abspath(__file__)) REPO = os.path.dirname(os.path.dirname(DIR)) SRC_DIR = os.path.join(REPO, "src") if __name__ == "__main__": main()
28.979167
90
0.591661
7905a7207409a36e542edd41a689eb3240d45b7e
432
py
Python
kyu_7/fun_with_lists_length/length.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
1
2022-02-12T05:56:04.000Z
2022-02-12T05:56:04.000Z
kyu_7/fun_with_lists_length/length.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
182
2020-04-30T00:51:36.000Z
2021-09-07T04:15:05.000Z
kyu_7/fun_with_lists_length/length.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
4
2020-04-29T22:04:20.000Z
2021-07-13T20:04:14.000Z
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ def length(head) -> int: """ The method length, which accepts a linked list (head), and returns the length of the list. :param head: :return: """ i = 0 if head is Non...
18.782609
53
0.581019