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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b8ada7f96a8a91b1795a09283b5bb56adf3d888d | 2,373 | py | Python | tests/_geom/test_path_control_x_interface.py | ynsnf/apysc | b10ffaf76ec6beb187477d0a744fca00e3efc3fb | [
"MIT"
] | 16 | 2021-04-16T02:01:29.000Z | 2022-01-01T08:53:49.000Z | tests/_geom/test_path_control_x_interface.py | ynsnf/apysc | b10ffaf76ec6beb187477d0a744fca00e3efc3fb | [
"MIT"
] | 613 | 2021-03-24T03:37:38.000Z | 2022-03-26T10:58:37.000Z | tests/_geom/test_path_control_x_interface.py | simon-ritchie/apyscript | c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279 | [
"MIT"
] | 2 | 2021-06-20T07:32:58.000Z | 2021-12-26T08:22:11.000Z | from random import randint
from retrying import retry
import apysc as ap
from apysc._geom.path_control_x_interface import PathControlXInterface
| 43.944444 | 78 | 0.728614 |
b8add48d3538b0aee1f01094470a9d13e1f3491d | 1,060 | py | Python | test/PySrc/tools/collect_tutorials.py | lifubang/live-py-plugin | 38a3cf447fd7d9c4e6014b71134e178b0d8a01de | [
"MIT"
] | 224 | 2015-03-22T23:40:52.000Z | 2022-03-01T21:45:51.000Z | test/PySrc/tools/collect_tutorials.py | lifubang/live-py-plugin | 38a3cf447fd7d9c4e6014b71134e178b0d8a01de | [
"MIT"
] | 371 | 2015-04-28T05:14:00.000Z | 2022-03-28T01:31:22.000Z | test/PySrc/tools/collect_tutorials.py | lifubang/live-py-plugin | 38a3cf447fd7d9c4e6014b71134e178b0d8a01de | [
"MIT"
] | 53 | 2015-10-30T07:52:07.000Z | 2022-02-28T12:56:35.000Z | import json
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter, FileType
from pathlib import Path
main()
| 34.193548 | 82 | 0.592453 |
b8ae0034ffcbb27bca0f7745d8873b03677fa88a | 1,569 | py | Python | autobiography.py | wcmckee/wcmckee | 19315a37b592b7bcebb5f2720c965aea58f928ce | [
"MIT"
] | null | null | null | autobiography.py | wcmckee/wcmckee | 19315a37b592b7bcebb5f2720c965aea58f928ce | [
"MIT"
] | null | null | null | autobiography.py | wcmckee/wcmckee | 19315a37b592b7bcebb5f2720c965aea58f928ce | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <markdowncell>
# My name is William Clifford Mckee and this is my autobiography. Written in November 2014.
#
# Structure:
#
# <markdowncell>
# Hello and goodNI
# testing one two there.
# <markdowncell>
# Hello. Testing one two three.
# Screw you guys. I'm go... | 32.020408 | 185 | 0.733588 |
b8ae248b83fdee036686d9358abb1c53e99adc81 | 26,125 | py | Python | tests/configured_tests.py | maxcountryman/flask-security | ccb41df095177b11e8526958c1001d2f887d9feb | [
"MIT"
] | null | null | null | tests/configured_tests.py | maxcountryman/flask-security | ccb41df095177b11e8526958c1001d2f887d9feb | [
"MIT"
] | null | null | null | tests/configured_tests.py | maxcountryman/flask-security | ccb41df095177b11e8526958c1001d2f887d9feb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import with_statement
import base64
import time
import simplejson as json
from flask.ext.security.utils import capture_registrations, \
capture_reset_password_requests, capture_passwordless_login_requests
from flask.ext.security.forms import LoginForm, ConfirmRegisterForm,... | 33.407928 | 104 | 0.633952 |
b8ae72a8774e3f5e5b83670734de99743ac5f598 | 94 | py | Python | Server/programs/__init__.py | VHirtz/CC-mastermind | 11dc4e043ed67c86e66230812cbd86f736e6a7d1 | [
"MIT"
] | null | null | null | Server/programs/__init__.py | VHirtz/CC-mastermind | 11dc4e043ed67c86e66230812cbd86f736e6a7d1 | [
"MIT"
] | null | null | null | Server/programs/__init__.py | VHirtz/CC-mastermind | 11dc4e043ed67c86e66230812cbd86f736e6a7d1 | [
"MIT"
] | null | null | null | from . import program
from . import turtle_test
from . import antoine_test
from . import dance | 23.5 | 26 | 0.797872 |
b8af272edd34ec0b3bc42014f30caae48187c86a | 8,283 | py | Python | src/robotkernel/utils.py | robocorp/robocode-kernel | b9c7ed20ba0046d0b3bae4e461205f9fa19b77a8 | [
"BSD-3-Clause"
] | 4 | 2020-04-01T16:24:01.000Z | 2022-02-16T19:22:44.000Z | src/robotkernel/utils.py | robocorp/robocode-kernel | b9c7ed20ba0046d0b3bae4e461205f9fa19b77a8 | [
"BSD-3-Clause"
] | 8 | 2020-04-21T13:35:02.000Z | 2022-03-12T00:39:17.000Z | src/robotkernel/utils.py | robocorp/robocode-kernel | b9c7ed20ba0046d0b3bae4e461205f9fa19b77a8 | [
"BSD-3-Clause"
] | 1 | 2020-04-03T10:48:31.000Z | 2020-04-03T10:48:31.000Z | # -*- coding: utf-8 -*-
from copy import deepcopy
from difflib import SequenceMatcher
from IPython.core.display import Image
from IPython.core.display import JSON
from json import JSONDecodeError
from lunr.builder import Builder
from lunr.stemmer import stemmer
from lunr.stop_word_filter import stop_word_filter
from lu... | 32.482353 | 87 | 0.60268 |
b8b06e91b0fbc55f204d0286612efe3154be4b90 | 5,022 | py | Python | Pyduino/__init__.py | ItzTheDodo/Pyduino | a68d6a3214d5fb452e8b8e53cb013ee7205734bb | [
"Apache-2.0"
] | null | null | null | Pyduino/__init__.py | ItzTheDodo/Pyduino | a68d6a3214d5fb452e8b8e53cb013ee7205734bb | [
"Apache-2.0"
] | null | null | null | Pyduino/__init__.py | ItzTheDodo/Pyduino | a68d6a3214d5fb452e8b8e53cb013ee7205734bb | [
"Apache-2.0"
] | null | null | null | # Function Credits: https://github.com/lekum/pyduino/blob/master/pyduino/pyduino.py (lekum (as of 2014))
# Written By: ItzTheDodo
from Pyduino.Boards.Uno import UnoInfo
from Pyduino.Boards.Mega import MegaInfo
from Pyduino.Boards.Diecimila import DiecimilaInfo
from Pyduino.Boards.Due import DueInfo
from Pyduino... | 27.293478 | 105 | 0.554162 |
b8b10e6e66f7f88c735881020e22e44e43687a75 | 2,218 | py | Python | apps/api/v1/social_auth.py | asmuratbek/oobamarket | 1053976a13ea84b9aabfcbbcbcffd79549ce9538 | [
"MIT"
] | null | null | null | apps/api/v1/social_auth.py | asmuratbek/oobamarket | 1053976a13ea84b9aabfcbbcbcffd79549ce9538 | [
"MIT"
] | 7 | 2020-06-05T23:36:01.000Z | 2022-01-13T01:42:07.000Z | apps/api/v1/social_auth.py | asmuratbek/oobamarket | 1053976a13ea84b9aabfcbbcbcffd79549ce9538 | [
"MIT"
] | null | null | null | from allauth.socialaccount.helpers import complete_social_login
from allauth.socialaccount.models import SocialApp, SocialToken, SocialLogin, SocialAccount
from allauth.socialaccount.providers.facebook.views import fb_complete_login
from allauth.socialaccount.providers.google.views import GoogleOAuth2Adapter
from djang... | 41.074074 | 118 | 0.701533 |
b8b4581f931e18341efca7f99abcc93a3432695c | 13,076 | py | Python | queryable_properties/properties/common.py | W1ldPo1nter/django-queryable-properties | 9bb4ecb4fbdd7a9e0f610f937c8101a643027fb1 | [
"BSD-3-Clause"
] | 36 | 2019-10-22T11:44:37.000Z | 2022-03-15T21:27:03.000Z | queryable_properties/properties/common.py | W1ldPo1nter/django-queryable-properties | 9bb4ecb4fbdd7a9e0f610f937c8101a643027fb1 | [
"BSD-3-Clause"
] | 6 | 2020-10-03T15:13:26.000Z | 2021-09-25T14:05:50.000Z | queryable_properties/properties/common.py | W1ldPo1nter/django-queryable-properties | 9bb4ecb4fbdd7a9e0f610f937c8101a643027fb1 | [
"BSD-3-Clause"
] | 3 | 2021-04-26T08:30:46.000Z | 2021-08-18T09:04:49.000Z | # encoding: utf-8
import operator
import six
from django.db.models import BooleanField, Field, Q
from ..utils.internal import MISSING_OBJECT, ModelAttributeGetter, QueryPath
from .base import QueryableProperty
from .mixins import AnnotationGetterMixin, AnnotationMixin, boolean_filter, LookupFilterMixin
| 45.245675 | 119 | 0.613643 |
b8b45d47d2d2b0c8935936a0ff5a2cb55518f1d6 | 2,558 | py | Python | experiments/examples/example_run_bench_s1_periodic_bench.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 18 | 2020-11-22T16:03:08.000Z | 2022-03-15T12:11:46.000Z | experiments/examples/example_run_bench_s1_periodic_bench.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 2 | 2022-01-04T08:10:17.000Z | 2022-01-05T08:13:14.000Z | experiments/examples/example_run_bench_s1_periodic_bench.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 6 | 2021-03-08T07:08:52.000Z | 2022-02-24T12:00:43.000Z | """
training a super-network and periodically evaluating its performance on bench architectures
a work in this direction exists: https://arxiv.org/abs/2001.01431
"""
from uninas.main import Main
# default configurations, for the search process and the network design
# config_files = "{path_conf_bench_tasks}/s1_fairna... | 41.258065 | 114 | 0.69742 |
b8b6326ff4e90a353f713e0c09d84e4633fbcdd7 | 9,650 | py | Python | zuds/photometry.py | charlotteaward/zuds-pipeline | 52423859498374203d13fdc15c88bdc1260db183 | [
"BSD-3-Clause"
] | null | null | null | zuds/photometry.py | charlotteaward/zuds-pipeline | 52423859498374203d13fdc15c88bdc1260db183 | [
"BSD-3-Clause"
] | null | null | null | zuds/photometry.py | charlotteaward/zuds-pipeline | 52423859498374203d13fdc15c88bdc1260db183 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql as psql
from sqlalchemy.orm import relationship
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.schema import UniqueConstraint
from astropy import units as u
from .core import Base
from .constants import APER_KEY, A... | 33.623693 | 108 | 0.594922 |
b8b69dfcb1d5f6e006ee8b568536b7b0df129c02 | 5,521 | py | Python | models/Libraries/UnitTest.py | yangshiquan/GraphDialog | 5bb1239bf502c8d79c4c888f69c7aff0c02c2928 | [
"MIT"
] | 26 | 2020-09-25T02:19:43.000Z | 2022-03-27T09:03:34.000Z | models/Libraries/UnitTest.py | yangshiquan/GraphDialog | 5bb1239bf502c8d79c4c888f69c7aff0c02c2928 | [
"MIT"
] | 1 | 2020-10-28T11:28:35.000Z | 2020-10-28T11:28:35.000Z | models/Libraries/UnitTest.py | yangshiquan/GraphDialog | 5bb1239bf502c8d79c4c888f69c7aff0c02c2928 | [
"MIT"
] | 2 | 2020-12-17T08:49:13.000Z | 2021-04-18T13:08:48.000Z | import tensorflow as tf
from models.Libraries.BidirectionalGraphEncoder import BidirectionalGraphEncoder
from tensorflow.python.ops import array_ops
if __name__ == "__main__":
# units=2, input_dim=2, edge_types=10, recurrent_size=4
bi_graph_encoder = BidirectionalGraphEncoder(2, 2, 10, 4)
# inputs: batch_... | 197.178571 | 1,087 | 0.307915 |
b8b7d48ab2b3078dad4877e762a40e5343a5d8aa | 96 | py | Python | animazya/apps.py | KenFon/kenfontaine.fr | 6b4055de791e3cc47b473c1890b2fcafab8a635d | [
"MIT"
] | null | null | null | animazya/apps.py | KenFon/kenfontaine.fr | 6b4055de791e3cc47b473c1890b2fcafab8a635d | [
"MIT"
] | null | null | null | animazya/apps.py | KenFon/kenfontaine.fr | 6b4055de791e3cc47b473c1890b2fcafab8a635d | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 16 | 34 | 0.71875 |
b8b7e91501f23e4c04cf067b13d9a9480a460c77 | 59 | py | Python | python/testData/debug/test4.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2018-12-29T09:53:39.000Z | 2018-12-29T09:53:42.000Z | python/testData/debug/test4.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/debug/test4.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 1 | 2020-11-27T10:36:50.000Z | 2020-11-27T10:36:50.000Z | xval = 0
xvalue1 = 1
xvalue2 = 2
print(xvalue1 + xvalue2)
| 9.833333 | 24 | 0.677966 |
b8b9118b82c32808b4a088d2dcdc263280ad9a3a | 3,000 | py | Python | pres/ray-tracing/main.py | sosterwalder/mte7103-qde | e4ed8beda40c9cd15d3c815567d9a4e3396adee7 | [
"MIT"
] | null | null | null | pres/ray-tracing/main.py | sosterwalder/mte7103-qde | e4ed8beda40c9cd15d3c815567d9a4e3396adee7 | [
"MIT"
] | null | null | null | pres/ray-tracing/main.py | sosterwalder/mte7103-qde | e4ed8beda40c9cd15d3c815567d9a4e3396adee7 | [
"MIT"
] | null | null | null | from kivy.animation import Animation
from kivy.app import App
from kivy.core.window import Window
from kivy.graphics import Color
from kivy.graphics import Ellipse
from kivy.graphics import Line
from kivy.uix.widget import Widget
if __name__ == '__main__':
RayTracingApp().run()
| 28.037383 | 77 | 0.553 |
b8b92ae2e5cf67849b6f6b332521716f375c2982 | 3,960 | py | Python | sookie.py | anygard/sookie | 5732f7644d2d908911735e62c8574863825174a2 | [
"MIT"
] | null | null | null | sookie.py | anygard/sookie | 5732f7644d2d908911735e62c8574863825174a2 | [
"MIT"
] | null | null | null | sookie.py | anygard/sookie | 5732f7644d2d908911735e62c8574863825174a2 | [
"MIT"
] | null | null | null |
""" Sookie, is a waiter, waits for a socket to be listening then it moves on
Usage:
sookie <socket> [--timeout=<to>] [--retry=<rt>] [--logsocket=<ls>] [--logfacility=<lf>] [--loglevel=<ll>]
sookie -h | --help
sookie --version
Options:
-h --help Show this screen
--version ... | 30.697674 | 109 | 0.630303 |
b8bd55689822e6f7e5a2823014bfe14020f8b719 | 912 | py | Python | tests/parser/syntax/test_ann_assign.py | williamremor/vyper | 4d33dc4140f7d0c339876afb6af7b417bd0ed8e0 | [
"MIT"
] | 1 | 2018-08-31T02:32:57.000Z | 2018-08-31T02:32:57.000Z | tests/parser/syntax/test_ann_assign.py | williamremor/vyper | 4d33dc4140f7d0c339876afb6af7b417bd0ed8e0 | [
"MIT"
] | null | null | null | tests/parser/syntax/test_ann_assign.py | williamremor/vyper | 4d33dc4140f7d0c339876afb6af7b417bd0ed8e0 | [
"MIT"
] | null | null | null | import pytest
from pytest import raises
from vyper import compiler
from vyper.exceptions import VariableDeclarationException, TypeMismatchException
fail_list = [
"""
@public
def test():
a = 1
""",
"""
@public
def test():
a = 33.33
""",
"""
@public
def test():
a = "test string"
"""... | 16.888889 | 80 | 0.634868 |
b8bd59b6d2fd731f6b088f01ce1a174d704adcae | 7,568 | py | Python | tests/test_mongoengine_dsl.py | StoneMoe/mongoengine_dsl | 310d77c30e77ba1f695b3d644737fcfc3c2ab304 | [
"MIT"
] | 3 | 2021-08-25T02:08:34.000Z | 2022-03-23T08:32:09.000Z | tests/test_mongoengine_dsl.py | StoneMoe/mongoengine_dsl | 310d77c30e77ba1f695b3d644737fcfc3c2ab304 | [
"MIT"
] | 1 | 2021-08-24T09:41:11.000Z | 2021-08-24T10:02:43.000Z | tests/test_mongoengine_dsl.py | StoneMoe/mongoengine_dsl | 310d77c30e77ba1f695b3d644737fcfc3c2ab304 | [
"MIT"
] | 1 | 2021-08-24T14:25:28.000Z | 2021-08-24T14:25:28.000Z | #!/usr/bin/env python
import unittest
from mongoengine import Document, Q, StringField, connect
from mongoengine_dsl import Query
from mongoengine_dsl.errors import InvalidSyntaxError, TransformHookError
from tests.utils import ts2dt
| 35.698113 | 88 | 0.532505 |
b8be08575104b59466524c927af95ffef96623e1 | 2,891 | py | Python | dmidecode/__init__.py | hamgom95/dmidecode | d8d82fecdbfe578ad5e9c561753dcbc6fdfdc02c | [
"MIT"
] | null | null | null | dmidecode/__init__.py | hamgom95/dmidecode | d8d82fecdbfe578ad5e9c561753dcbc6fdfdc02c | [
"MIT"
] | null | null | null | dmidecode/__init__.py | hamgom95/dmidecode | d8d82fecdbfe578ad5e9c561753dcbc6fdfdc02c | [
"MIT"
] | null | null | null | import subprocess
from collections import UserDict
from functools import lru_cache
def _parse_handle_section(lines):
"""
Parse a section of dmidecode output
* 1st line contains address, type and size
* 2nd line is title
* line started with one tab is one option and its value
* line started with... | 28.623762 | 79 | 0.528191 |
b8beac8ab26c148a31cb1d0f421ff54922a1ebcd | 1,580 | py | Python | {{cookiecutter.repo_name}}/webapp/config/settings/cache.py | bopo/django-template | 465f48563bc9625e37bb278a32800e7a55d9e256 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.repo_name}}/webapp/config/settings/cache.py | bopo/django-template | 465f48563bc9625e37bb278a32800e7a55d9e256 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.repo_name}}/webapp/config/settings/cache.py | bopo/django-template | 465f48563bc9625e37bb278a32800e7a55d9e256 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
try:
from .base import MIDDLEWARE_CLASSES
except ImportError as e:
raise e
# MIDDLEWARE_CLASSES += (
# 'django.middleware.cache.CacheMiddleware',
# 'django.middleware.cache.UpdateCacheMiddleware',
# 'django.middleware.cache.FetchFrom... | 28.727273 | 75 | 0.563924 |
b8c05b3185ce376bc8351fd54c6fd146defe890b | 5,144 | py | Python | scripts/evaluate_hatexplain.py | GKingA/POTATO | 585eb002d95375a94b496b0f38637fdf69cd8a9e | [
"MIT"
] | 26 | 2021-10-05T14:57:33.000Z | 2022-03-27T04:26:21.000Z | scripts/evaluate_hatexplain.py | GKingA/POTATO | 585eb002d95375a94b496b0f38637fdf69cd8a9e | [
"MIT"
] | 20 | 2021-12-01T09:03:41.000Z | 2022-03-09T10:45:58.000Z | scripts/evaluate_hatexplain.py | GKingA/POTATO | 585eb002d95375a94b496b0f38637fdf69cd8a9e | [
"MIT"
] | 3 | 2021-11-18T07:14:56.000Z | 2022-02-17T09:14:46.000Z | from typing import List, Dict
import json
import numpy as np
from pandas import DataFrame
import logging
from argparse import ArgumentParser, ArgumentError
from sklearn.metrics import classification_report
from xpotato.graph_extractor.extract import FeatureEvaluator
from xpotato.dataset.explainable_dataset import Expla... | 34.756757 | 120 | 0.626361 |
b8c18579e2101b06416f377ffa427b6e165dcba7 | 53 | py | Python | agency/memory/__init__.py | jackharmer/agency | 5a78dd23e14c44c4076e49ea44b83ab1697e51c8 | [
"MIT"
] | 2 | 2022-03-30T19:51:42.000Z | 2022-03-30T20:05:39.000Z | agency/memory/__init__.py | jackharmer/agency | 5a78dd23e14c44c4076e49ea44b83ab1697e51c8 | [
"MIT"
] | null | null | null | agency/memory/__init__.py | jackharmer/agency | 5a78dd23e14c44c4076e49ea44b83ab1697e51c8 | [
"MIT"
] | null | null | null | from .episodic import EpisodicMemory, EpisodicBuffer
| 26.5 | 52 | 0.867925 |
b8c19e5ee50c09165615a57248929fdadd0a46be | 1,876 | py | Python | examples/car_on_hill_fqi.py | doroK/mushroom | 47e5b1d09b65da585c1b19a6cc7f0366849d7863 | [
"MIT"
] | null | null | null | examples/car_on_hill_fqi.py | doroK/mushroom | 47e5b1d09b65da585c1b19a6cc7f0366849d7863 | [
"MIT"
] | null | null | null | examples/car_on_hill_fqi.py | doroK/mushroom | 47e5b1d09b65da585c1b19a6cc7f0366849d7863 | [
"MIT"
] | null | null | null | import numpy as np
from joblib import Parallel, delayed
from sklearn.ensemble import ExtraTreesRegressor
from mushroom.algorithms.value import FQI
from mushroom.core import Core
from mushroom.environments import *
from mushroom.policy import EpsGreedy
from mushroom.utils.dataset import compute_J
from mushroom.utils.pa... | 26.422535 | 80 | 0.655117 |
b8c1beea49870d673c41dbabd215c2bea4001620 | 1,854 | py | Python | db.py | dashimaki360/mahjong-line-bot | e119e83308bed1bfe6d66d53e41a4b7908dceb5e | [
"MIT"
] | null | null | null | db.py | dashimaki360/mahjong-line-bot | e119e83308bed1bfe6d66d53e41a4b7908dceb5e | [
"MIT"
] | 5 | 2018-04-19T06:59:47.000Z | 2018-04-20T00:07:34.000Z | db.py | dashimaki360/mahjong-line-bot | e119e83308bed1bfe6d66d53e41a4b7908dceb5e | [
"MIT"
] | null | null | null | import os
from datetime import datetime
from flask_sqlalchemy import SQLAlchemy
# heroku postgresql setting
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE_URL', None)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
db = SQLAlchemy(app)
def addToSql(event, reply, sticker=False, image=False):
'''
... | 28.090909 | 86 | 0.60356 |
b8c255c102573468b31394960a4e3c18d4bdfc95 | 728 | py | Python | loss/voxel_match_loss.py | sennnnn/Refer-it-in-RGBD | ac8dcaed80e28d2708f14cba5142fec5301eb3cc | [
"MIT"
] | 28 | 2021-03-26T09:24:23.000Z | 2022-02-17T20:14:43.000Z | loss/voxel_match_loss.py | sennnnn/Refer-it-in-RGBD | ac8dcaed80e28d2708f14cba5142fec5301eb3cc | [
"MIT"
] | 1 | 2021-07-12T02:38:51.000Z | 2021-07-12T11:43:31.000Z | loss/voxel_match_loss.py | sennnnn/Refer-it-in-RGBD | ac8dcaed80e28d2708f14cba5142fec5301eb3cc | [
"MIT"
] | 4 | 2021-08-05T01:57:05.000Z | 2022-02-17T20:26:35.000Z | import torch
import torch.nn as nn | 42.823529 | 96 | 0.715659 |
b8c32fb0b4535e967806c491e7dce8ba89fb1433 | 1,134 | py | Python | app/cachedmodel/migrations/0001_initial.py | Uniquode/uniquode2 | 385f3e0b26383c042d8da64b52350e82414580ea | [
"MIT"
] | null | null | null | app/cachedmodel/migrations/0001_initial.py | Uniquode/uniquode2 | 385f3e0b26383c042d8da64b52350e82414580ea | [
"MIT"
] | null | null | null | app/cachedmodel/migrations/0001_initial.py | Uniquode/uniquode2 | 385f3e0b26383c042d8da64b52350e82414580ea | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-19 03:41
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
| 32.4 | 128 | 0.574074 |
b8c4664f2ad6a4052e0d5d282f88dba0b1d97427 | 8,305 | py | Python | conduit/utils/awsbatch_operator.py | elenimath/saber | 71acab9798cf3aee1c4d64b09453e5234f8fdf1e | [
"Apache-2.0"
] | 12 | 2018-05-14T17:43:18.000Z | 2021-11-16T04:03:33.000Z | conduit/utils/awsbatch_operator.py | elenimath/saber | 71acab9798cf3aee1c4d64b09453e5234f8fdf1e | [
"Apache-2.0"
] | 34 | 2019-05-06T19:13:36.000Z | 2021-05-06T19:12:35.000Z | conduit/utils/awsbatch_operator.py | elenimath/saber | 71acab9798cf3aee1c4d64b09453e5234f8fdf1e | [
"Apache-2.0"
] | 3 | 2019-10-08T17:42:17.000Z | 2021-07-28T05:52:02.000Z | # Copyright 2019 The Johns Hopkins University Applied Physics Laboratory
#
# 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 ... | 38.627907 | 116 | 0.596388 |
b8c4711e42028105dddd073eaee5ccd39e86f063 | 17,579 | py | Python | csapi.py | ria-ee/X-Road-cs-api | 37d28886e47eea21cb4e46ad20b84bbfcafe79ad | [
"MIT"
] | 1 | 2020-04-16T06:31:54.000Z | 2020-04-16T06:31:54.000Z | csapi.py | ria-ee/X-Road-cs-api | 37d28886e47eea21cb4e46ad20b84bbfcafe79ad | [
"MIT"
] | null | null | null | csapi.py | ria-ee/X-Road-cs-api | 37d28886e47eea21cb4e46ad20b84bbfcafe79ad | [
"MIT"
] | 1 | 2019-09-09T08:07:15.000Z | 2019-09-09T08:07:15.000Z | #!/usr/bin/env python3
"""This is a module for X-Road Central Server API.
This module allows:
* adding new member to the X-Road Central Server.
* adding new subsystem to the X-Road Central Server.
"""
import json
import logging
import re
import psycopg2
from flask import request, jsonify
from flask_restful i... | 34.878968 | 98 | 0.598669 |
b210a7b86cf5f45e110a190e8d8eb560c075e998 | 397 | py | Python | dotacni_matice/migrations/0002_history.py | CzechInvest/ciis | c6102598f564a717472e5e31e7eb894bba2c8104 | [
"MIT"
] | 1 | 2019-05-26T22:24:01.000Z | 2019-05-26T22:24:01.000Z | dotacni_matice/migrations/0002_history.py | CzechInvest/ciis | c6102598f564a717472e5e31e7eb894bba2c8104 | [
"MIT"
] | 6 | 2019-01-22T14:53:43.000Z | 2020-09-22T16:20:28.000Z | dotacni_matice/migrations/0002_history.py | CzechInvest/ciis | c6102598f564a717472e5e31e7eb894bba2c8104 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-12-27 18:46
from django.db import migrations, models
| 20.894737 | 58 | 0.602015 |
b2112b5aca6a5b5632c5810795648be898bf0703 | 898 | py | Python | telegrambotapiwrapper/printpretty.py | pynista/telegrambotapiwrapper | 4310882a1a7db94f5256b010ff8a3103b405dc0d | [
"MIT"
] | 1 | 2021-05-10T06:49:52.000Z | 2021-05-10T06:49:52.000Z | telegrambotapiwrapper/printpretty.py | pynista/telegrambotapiwrapper | 4310882a1a7db94f5256b010ff8a3103b405dc0d | [
"MIT"
] | null | null | null | telegrambotapiwrapper/printpretty.py | pynista/telegrambotapiwrapper | 4310882a1a7db94f5256b010ff8a3103b405dc0d | [
"MIT"
] | null | null | null | from collections import OrderedDict
from dataclasses import (
fields,
)
from prettyprinter.prettyprinter import pretty_call, register_pretty
| 23.631579 | 71 | 0.678174 |
b2113a9f179d1a1302e99c7904123f0326d3e145 | 1,055 | py | Python | bot.py | ctrezevant/GEFS-bot | 9fdfbb87e33399051ef2287e629baae234800dcf | [
"MIT"
] | null | null | null | bot.py | ctrezevant/GEFS-bot | 9fdfbb87e33399051ef2287e629baae234800dcf | [
"MIT"
] | null | null | null | bot.py | ctrezevant/GEFS-bot | 9fdfbb87e33399051ef2287e629baae234800dcf | [
"MIT"
] | null | null | null | """
GEFS Chart Bot
Polls https://www.tropicaltidbits.com/storminfo/11L_gefs_latest.png, but it can
really be used to monitor/notify about changes to any file on the web.
(c) Charlton Trezevant 2017
MIT License
Enjoy!
"""
import time, sys
sys.dont_write_bytecode = True
sys.path.insert(0, 'lib'... | 30.142857 | 102 | 0.700474 |
b2116bed98a7e670916911f64ee1ba8f859af9bb | 6,442 | py | Python | tests/test_periodbase.py | pierfra-ro/astrobase | b9f62c59a3ab9cdc1388d409fa281c26f1e6db6c | [
"MIT"
] | 45 | 2017-03-09T19:08:44.000Z | 2022-03-24T00:36:28.000Z | tests/test_periodbase.py | pierfra-ro/astrobase | b9f62c59a3ab9cdc1388d409fa281c26f1e6db6c | [
"MIT"
] | 92 | 2016-12-21T19:01:20.000Z | 2022-01-03T15:28:45.000Z | tests/test_periodbase.py | pierfra-ro/astrobase | b9f62c59a3ab9cdc1388d409fa281c26f1e6db6c | [
"MIT"
] | 20 | 2016-12-20T23:01:29.000Z | 2021-03-07T16:24:15.000Z | '''test_periodbase.py - Waqas Bhatti (wbhatti@astro.princeton.edu) - Feb 2018
License: MIT - see the LICENSE file for details.
This tests the following:
- downloads a light curve from the github repository notebooks/nb-data dir
- reads the light curve using astrobase.hatlc
- runs the GLS, WIN, PDM, AoV, BLS, AoVMH, a... | 26.510288 | 80 | 0.591276 |
b211aa66d913dc22688021d4550c75de1f8811d6 | 2,877 | py | Python | tests/sdict/test_sdict_substitutor.py | nikitanovosibirsk/district42-exp-types | e36e43da62f32d58d4b14c65afa16856dc8849e1 | [
"Apache-2.0"
] | null | null | null | tests/sdict/test_sdict_substitutor.py | nikitanovosibirsk/district42-exp-types | e36e43da62f32d58d4b14c65afa16856dc8849e1 | [
"Apache-2.0"
] | 2 | 2021-08-01T05:02:21.000Z | 2021-08-01T10:06:28.000Z | tests/sdict/test_sdict_substitutor.py | nikitanovosibirsk/district42-exp-types | e36e43da62f32d58d4b14c65afa16856dc8849e1 | [
"Apache-2.0"
] | null | null | null | from _pytest.python_api import raises
from baby_steps import given, then, when
from district42 import schema
from revolt import substitute
from revolt.errors import SubstitutionError
from district42_exp_types.sdict import schema_sdict
| 23.77686 | 54 | 0.468891 |
b211f2e30f6de646dd73a75da8055e28f37f148d | 1,735 | py | Python | algo/problems/pascal_triangle.py | avi3tal/knowledgebase | fd30805aa94332a6c14c9d8631c7044673fb3e2c | [
"MIT"
] | null | null | null | algo/problems/pascal_triangle.py | avi3tal/knowledgebase | fd30805aa94332a6c14c9d8631c7044673fb3e2c | [
"MIT"
] | null | null | null | algo/problems/pascal_triangle.py | avi3tal/knowledgebase | fd30805aa94332a6c14c9d8631c7044673fb3e2c | [
"MIT"
] | 1 | 2021-11-19T13:45:59.000Z | 2021-11-19T13:45:59.000Z | """
Pascal's Triangle
1
11
121
1331
14641
Question:
Find the value in given row and column
First solution: brute force
Second solution: Dynamic programming
alternative
def pascal(r, c):
print(f"row: {r}, col: {c}")
if r == 0 or r == 1 or c == 0:
return 1
return pascal(r-1, c-1) + pascal(r-1, c... | 20.903614 | 98 | 0.595389 |
b212f83168a6342d8bcbdaa233860a911b7cdadb | 1,117 | py | Python | drf_ujson/parsers.py | radzhome/drf-ujson-renderer | b65c01edc5311404178a9d245d40ccc10733c5d7 | [
"MIT"
] | null | null | null | drf_ujson/parsers.py | radzhome/drf-ujson-renderer | b65c01edc5311404178a9d245d40ccc10733c5d7 | [
"MIT"
] | null | null | null | drf_ujson/parsers.py | radzhome/drf-ujson-renderer | b65c01edc5311404178a9d245d40ccc10733c5d7 | [
"MIT"
] | 1 | 2019-04-04T13:25:22.000Z | 2019-04-04T13:25:22.000Z | from __future__ import unicode_literals
import codecs
from django.conf import settings
from rest_framework.compat import six
from rest_framework.parsers import BaseParser, ParseError
from rest_framework import renderers
from rest_framework.settings import api_settings
import ujson
| 32.852941 | 78 | 0.72068 |
b213326f9b1abfe3dfc2e0c0ee4f51afa2c00f6e | 778 | py | Python | Software_University/python_basics/exam_preparation/4_exam_prep/renovation.py | Ivanazzz/SoftUni-W3resource-Python | 892321a290e22a91ff2ac2fef5316179a93f2f17 | [
"MIT"
] | 1 | 2022-01-26T07:38:11.000Z | 2022-01-26T07:38:11.000Z | Software_University/python_basics/exam_preparation/4_exam_prep/renovation.py | Ivanazzz/SoftUni-W3resource-Python | 892321a290e22a91ff2ac2fef5316179a93f2f17 | [
"MIT"
] | null | null | null | Software_University/python_basics/exam_preparation/4_exam_prep/renovation.py | Ivanazzz/SoftUni-W3resource-Python | 892321a290e22a91ff2ac2fef5316179a93f2f17 | [
"MIT"
] | null | null | null | from math import ceil
walls_hight = int(input())
walls_witdh = int(input())
percentage_walls_tottal_area_not_painted = int(input())
total_walls_area = walls_hight * walls_witdh * 4
quadratic_meters_left = total_walls_area - ceil(total_walls_area * percentage_walls_tottal_area_not_painted / 100)
while True:
paint... | 32.416667 | 114 | 0.717224 |
b21485714fab66b89d8a0a3cada0bde14841a26b | 19,069 | py | Python | Commands.py | ehasting/psybot | 8699f1ad8010bac5d2622486cb549898fc979036 | [
"BSD-2-Clause"
] | null | null | null | Commands.py | ehasting/psybot | 8699f1ad8010bac5d2622486cb549898fc979036 | [
"BSD-2-Clause"
] | null | null | null | Commands.py | ehasting/psybot | 8699f1ad8010bac5d2622486cb549898fc979036 | [
"BSD-2-Clause"
] | null | null | null | import datetime
import re
import os
import requests
import json
import uuid
import random
import calendar
import time
import libs.SerializableDict as SerializableDict
import libs.StorageObjects as StorageObjects
import libs.Models as Models
import libs.Loggiz as Loggiz
from pytz import timezone
import pytz
import teleg... | 39.317526 | 204 | 0.608579 |
b218434a962715f2504f0272b199565a159dcf7b | 115 | py | Python | aim/pytorch.py | avkudr/aim | 5961f31d358929287986ace09c73310886a94704 | [
"Apache-2.0"
] | 2,195 | 2020-01-23T03:08:11.000Z | 2022-03-31T14:32:19.000Z | aim/pytorch.py | deepanprabhu/aim | c00d8ec7bb2d9fd230a9430b516ca90cdb8072cb | [
"Apache-2.0"
] | 696 | 2020-02-08T21:55:45.000Z | 2022-03-31T16:52:22.000Z | aim/pytorch.py | deepanprabhu/aim | c00d8ec7bb2d9fd230a9430b516ca90cdb8072cb | [
"Apache-2.0"
] | 150 | 2020-03-27T10:44:25.000Z | 2022-03-21T21:29:41.000Z | # Alias to SDK PyTorch utils
from aim.sdk.adapters.pytorch import track_params_dists, track_gradients_dists # noqa
| 38.333333 | 85 | 0.834783 |
b21881d06efcd08194a38d1b8b2a7efa72fa56b5 | 890 | py | Python | src/tools/checkDeckByUrl.py | kentokura/xenoparts | d861ca474accdf1ec7bcf6afcac6be9246cf4c85 | [
"MIT"
] | null | null | null | src/tools/checkDeckByUrl.py | kentokura/xenoparts | d861ca474accdf1ec7bcf6afcac6be9246cf4c85 | [
"MIT"
] | null | null | null | src/tools/checkDeckByUrl.py | kentokura/xenoparts | d861ca474accdf1ec7bcf6afcac6be9246cf4c85 | [
"MIT"
] | null | null | null | # coding: utf-8
# Your code here!
import csv
def encode_cardd_by_url(url: str) -> dict:
"""
:URL
:{ card_id, num }
:
URLid
"""
site_url, card_url = url.split("c=")
card_url, key_card_url = card_url.split("&")
arr_card_id = card_url.split(".")
deck = { card_id: ar... | 22.25 | 77 | 0.61573 |
b21bfec88e0dfd45846324420361a10ba1865cb9 | 193 | py | Python | kleeneup/__init__.py | caiopo/kleeneup | 0050054853ac7a3a2e40d492cc5fe741ef737191 | [
"MIT"
] | null | null | null | kleeneup/__init__.py | caiopo/kleeneup | 0050054853ac7a3a2e40d492cc5fe741ef737191 | [
"MIT"
] | null | null | null | kleeneup/__init__.py | caiopo/kleeneup | 0050054853ac7a3a2e40d492cc5fe741ef737191 | [
"MIT"
] | 1 | 2018-10-10T00:59:54.000Z | 2018-10-10T00:59:54.000Z | from .regular_grammar import RegularGrammar
from .finite_automaton import FiniteAutomaton, State, Symbol, Sentence
from .regular_expression import RegularExpression, StitchedBinaryTree, Lambda
| 48.25 | 77 | 0.870466 |
b21c7a1509c7bfd68dcac48270c795470f743c73 | 89 | py | Python | recipe_backend/recipes/apps.py | jbernal0019/Recipe_site | 30090b521cac84156cf5f05429a12dd5889f8703 | [
"MIT"
] | null | null | null | recipe_backend/recipes/apps.py | jbernal0019/Recipe_site | 30090b521cac84156cf5f05429a12dd5889f8703 | [
"MIT"
] | 3 | 2020-02-12T01:22:24.000Z | 2021-06-10T21:49:21.000Z | recipe_backend/recipes/apps.py | jbernal0019/Recipe_site | 30090b521cac84156cf5f05429a12dd5889f8703 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 14.833333 | 33 | 0.752809 |
b21e2321bf77cc16cff7c91db7f72ea88ee39b5b | 1,337 | py | Python | mass_circular_weighing/constants.py | MSLNZ/Mass-Circular-Weighing | f144158b9e2337d7e9446326d6927e1dd606ed38 | [
"MIT"
] | 1 | 2020-02-19T09:10:43.000Z | 2020-02-19T09:10:43.000Z | mass_circular_weighing/constants.py | MSLNZ/Mass-Circular-Weighing | f144158b9e2337d7e9446326d6927e1dd606ed38 | [
"MIT"
] | null | null | null | mass_circular_weighing/constants.py | MSLNZ/Mass-Circular-Weighing | f144158b9e2337d7e9446326d6927e1dd606ed38 | [
"MIT"
] | null | null | null | """
A repository for constants and symbols used in the mass weighing program
Modify default folder paths as necessary
"""
import os
MU_STR = '' # ALT+0181 or ''. use 'u' if running into issues
SIGMA_STR = '' # \u03C3 for sigma sign
DELTA_STR = '' # \u0394 for capital ... | 36.135135 | 107 | 0.658938 |
b21e3496e5fd13e41a572208964a13c7cf7ed7c2 | 3,032 | py | Python | UsbVibrationDevice.py | Suitceyes-Project-Code/Vibration-Pattern-Player | 44d8bac61eed0ee7712eb0299d0d7029f688fe24 | [
"MIT"
] | null | null | null | UsbVibrationDevice.py | Suitceyes-Project-Code/Vibration-Pattern-Player | 44d8bac61eed0ee7712eb0299d0d7029f688fe24 | [
"MIT"
] | null | null | null | UsbVibrationDevice.py | Suitceyes-Project-Code/Vibration-Pattern-Player | 44d8bac61eed0ee7712eb0299d0d7029f688fe24 | [
"MIT"
] | 1 | 2021-10-04T14:26:49.000Z | 2021-10-04T14:26:49.000Z | import PyCmdMessenger
from VestDeviceBase import VestDevice | 30.938776 | 115 | 0.539248 |
b2207477c30bc92b4836e3b6d2c7c4f40fd9d5d3 | 923 | py | Python | webapi/tests/test_models.py | c2masamichi/webapp-example-python-django | f0771526623bf5d1021ad1c5c8baf480fb285190 | [
"MIT"
] | null | null | null | webapi/tests/test_models.py | c2masamichi/webapp-example-python-django | f0771526623bf5d1021ad1c5c8baf480fb285190 | [
"MIT"
] | 4 | 2021-03-21T10:43:05.000Z | 2022-02-10T12:46:20.000Z | webapi/tests/test_models.py | c2masamichi/webapp-example-python-django | f0771526623bf5d1021ad1c5c8baf480fb285190 | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError
import pytest
from api.models import Product
| 21.97619 | 50 | 0.576381 |
b222b2832f0113a6843a7ce7ec02f0e981a7b9ca | 12,099 | py | Python | tests/app/main/views/test_users.py | AusDTO/dto-digitalmarketplace-admin-frontend | 1858a653623999d81bb4fa3e51f7cb4df4b83079 | [
"MIT"
] | 1 | 2018-01-04T18:10:28.000Z | 2018-01-04T18:10:28.000Z | tests/app/main/views/test_users.py | AusDTO/dto-digitalmarketplace-admin-frontend | 1858a653623999d81bb4fa3e51f7cb4df4b83079 | [
"MIT"
] | 5 | 2016-12-12T04:58:12.000Z | 2019-02-05T21:19:38.000Z | tests/app/main/views/test_users.py | AusDTO/dto-digitalmarketplace-admin-frontend | 1858a653623999d81bb4fa3e51f7cb4df4b83079 | [
"MIT"
] | 3 | 2017-06-19T07:51:38.000Z | 2021-01-12T12:30:22.000Z |
import mock
import pytest
import copy
import six
from lxml import html
from ...helpers import LoggedInApplicationTest
from dmapiclient import HTTPError
| 42.452632 | 112 | 0.659889 |
b223d904c6830f2000cc2bff850aed8bde569ecc | 3,460 | py | Python | code/makestellar.py | gitter-badger/DHOD | f2f084fea6c299f95d15cbea5ec94d404bc946b5 | [
"MIT"
] | null | null | null | code/makestellar.py | gitter-badger/DHOD | f2f084fea6c299f95d15cbea5ec94d404bc946b5 | [
"MIT"
] | null | null | null | code/makestellar.py | gitter-badger/DHOD | f2f084fea6c299f95d15cbea5ec94d404bc946b5 | [
"MIT"
] | null | null | null | import numpy as np
import sys, os
from scipy.optimize import minimize
import json
import matplotlib.pyplot as plt
#
sys.path.append('./utils')
import tools
#
bs, ncf, stepf = 400, 512, 40
path = '../data/z00/'
ftype = 'L%04d_N%04d_S%04d_%02dstep/'
ftypefpm = 'L%04d_N%04d_S%04d_%02dstep_fpm/'
mm = np.load('../data/Il... | 29.827586 | 101 | 0.601734 |
b22419f7d9aaad90e17b3010a06a273060fa238e | 1,729 | py | Python | mem_py/login/forms.py | Ciuel/Proyecto-Django | a466659fa7e84e77d0692f4f3c3f8c5f541079d4 | [
"MIT"
] | null | null | null | mem_py/login/forms.py | Ciuel/Proyecto-Django | a466659fa7e84e77d0692f4f3c3f8c5f541079d4 | [
"MIT"
] | null | null | null | mem_py/login/forms.py | Ciuel/Proyecto-Django | a466659fa7e84e77d0692f4f3c3f8c5f541079d4 | [
"MIT"
] | 1 | 2021-07-17T19:41:40.000Z | 2021-07-17T19:41:40.000Z | from django import forms
from django.contrib.auth.forms import UserCreationForm,AuthenticationForm
from .models import UserProfile
# Create your forms here
| 39.295455 | 90 | 0.632736 |
b224af29a62a1d5910e33f4af9c4dfcede1d3b53 | 556 | py | Python | diagrams/alibabacloud/analytics.py | bry-c/diagrams | 4c377a073e0aa8fe41934195da7a0869f31c58eb | [
"MIT"
] | 17,037 | 2020-02-03T01:30:30.000Z | 2022-03-31T18:09:15.000Z | diagrams/alibabacloud/analytics.py | bry-c/diagrams | 4c377a073e0aa8fe41934195da7a0869f31c58eb | [
"MIT"
] | 529 | 2020-02-03T10:43:41.000Z | 2022-03-31T17:33:08.000Z | diagrams/alibabacloud/analytics.py | bry-c/diagrams | 4c377a073e0aa8fe41934195da7a0869f31c58eb | [
"MIT"
] | 1,068 | 2020-02-05T11:54:29.000Z | 2022-03-30T23:28:55.000Z | # This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _AlibabaCloud
# Aliases
| 17.375 | 68 | 0.726619 |
b224f08977080d30a8248e3383147fd3fad725df | 1,487 | py | Python | numpy_examples/basic_5_structured_arrays.py | stealthness/sklearn-examples | e755fd3804cc15dd28ff2a38e299e80c83565d0a | [
"BSD-3-Clause"
] | null | null | null | numpy_examples/basic_5_structured_arrays.py | stealthness/sklearn-examples | e755fd3804cc15dd28ff2a38e299e80c83565d0a | [
"BSD-3-Clause"
] | null | null | null | numpy_examples/basic_5_structured_arrays.py | stealthness/sklearn-examples | e755fd3804cc15dd28ff2a38e299e80c83565d0a | [
"BSD-3-Clause"
] | null | null | null | """
Purpose of this file is to give examples of structured arrays
This script is partially dirived from the LinkedIn learning course
https://www.linkedin.com/learning/numpy-data-science-essential-training/create-arrays-from-python-structures
"""
import numpy as np
person_data_def = [('name', 'S6'), ('height', 'f8'),... | 33.795455 | 108 | 0.718897 |
b225b39eea6ed7af22b6d9216dba4156c3fa8839 | 5,716 | py | Python | scripts/ebook_meta_rename.py | mcxiaoke/python-labs | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | [
"Apache-2.0"
] | 7 | 2016-07-08T10:53:13.000Z | 2021-07-20T00:20:10.000Z | scripts/ebook_meta_rename.py | mcxiaoke/python-labs | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | [
"Apache-2.0"
] | 1 | 2021-05-11T05:20:18.000Z | 2021-05-11T05:20:18.000Z | scripts/ebook_meta_rename.py | mcxiaoke/python-labs | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | [
"Apache-2.0"
] | 7 | 2016-10-31T06:31:54.000Z | 2020-08-31T20:55:00.000Z | '''
File: ebook_fix.py
Created: 2021-03-06 15:46:09
Modified: 2021-03-06 15:46:14
Author: mcxiaoke (github@mcxiaoke.com)
License: Apache License 2.0
'''
import sys
import os
from pprint import pprint
from types import new_class
from mobi import Mobi
from ebooklib import epub
import argparse
from multiprocessing.dummy i... | 31.755556 | 90 | 0.574003 |
b2268ed3f38975678da47248462c6f15c287a3c3 | 387 | py | Python | sources/boltun/util/collections.py | meiblorn/boltun | d141f555b4f0ed604d8d71883c0bc8811e74370e | [
"MIT"
] | 1 | 2019-12-06T04:19:37.000Z | 2019-12-06T04:19:37.000Z | sources/boltun/util/collections.py | meiblorn/boltun | d141f555b4f0ed604d8d71883c0bc8811e74370e | [
"MIT"
] | null | null | null | sources/boltun/util/collections.py | meiblorn/boltun | d141f555b4f0ed604d8d71883c0bc8811e74370e | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
import attr
| 18.428571 | 64 | 0.648579 |
b22a4ac4d8d41f1f54853d90f7a7aa435b4d6a78 | 41 | py | Python | test/python/echo_hi_then_error.py | WrkMetric/Python--NodeJS | 502bb3d81152ef9a16fb618f71f9e9fc43777349 | [
"MIT",
"Unlicense"
] | 1,869 | 2015-01-07T18:06:52.000Z | 2022-03-30T08:35:39.000Z | test/python/echo_hi_then_error.py | PavanAnanthSharma/python-shell | 502bb3d81152ef9a16fb618f71f9e9fc43777349 | [
"MIT",
"Unlicense"
] | 252 | 2015-01-08T17:33:58.000Z | 2022-03-31T09:04:38.000Z | test/python/echo_hi_then_error.py | PavanAnanthSharma/python-shell | 502bb3d81152ef9a16fb618f71f9e9fc43777349 | [
"MIT",
"Unlicense"
] | 238 | 2015-03-22T11:22:30.000Z | 2022-03-15T22:01:44.000Z | print('hi')
raise Exception('fibble-fah') | 20.5 | 29 | 0.731707 |
b22a61d2c3956ab8bd21246cdd7e1d90a774793b | 105 | py | Python | lamdata_baisal89/df_util.py | Baisal89/ds_8_lamdata | 67911b6f15ae6230a65c439a978303ac4b492075 | [
"MIT"
] | null | null | null | lamdata_baisal89/df_util.py | Baisal89/ds_8_lamdata | 67911b6f15ae6230a65c439a978303ac4b492075 | [
"MIT"
] | 1 | 2020-03-31T11:12:26.000Z | 2020-03-31T11:12:26.000Z | lamdata_baisal89/df_util.py | Baisal89/ds_8_lamdata | 67911b6f15ae6230a65c439a978303ac4b492075 | [
"MIT"
] | null | null | null | """
Utility functions for working with DataFrame
"""
import pandas
TEST_DF = pandas.DataFrame([1,2,3])
| 13.125 | 44 | 0.72381 |
b22aabd883c6bf5301a8cac5ec9620f3e682a650 | 2,160 | py | Python | lab05/parsePhoneNrs.py | peter201943/pjm349-CS265-winter2019 | 704ffa8fe0a51795670b6c2b40b153291846fe0b | [
"MIT"
] | null | null | null | lab05/parsePhoneNrs.py | peter201943/pjm349-CS265-winter2019 | 704ffa8fe0a51795670b6c2b40b153291846fe0b | [
"MIT"
] | null | null | null | lab05/parsePhoneNrs.py | peter201943/pjm349-CS265-winter2019 | 704ffa8fe0a51795670b6c2b40b153291846fe0b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
#Peter J. Mangelsdorf
#
# Kurt Schmidt
# 7/06
#
#
# parsePhoneNrs.py - an example of 'grouping' - extracting parts of a match
#
# Python 3.5.2
# on Linux 4.4.0-36-generic x86_64
#
# Demonstrates: regexp, re, search, groups
#
# Usage: By default, reads telNrs.txt . You may supply a different ... | 24.545455 | 77 | 0.602315 |
b22ba815e08036847020bc1f981a8232bfaa3cd2 | 567 | py | Python | board/gpio.py | JonathanItakpe/realtime-office-light-dashboard | a783152bfee3e099d039c574ca1ea5635f79900d | [
"MIT"
] | 1 | 2017-09-04T14:05:59.000Z | 2017-09-04T14:05:59.000Z | board/gpio.py | JonathanItakpe/realtime-office-light-dashboard | a783152bfee3e099d039c574ca1ea5635f79900d | [
"MIT"
] | null | null | null | board/gpio.py | JonathanItakpe/realtime-office-light-dashboard | a783152bfee3e099d039c574ca1ea5635f79900d | [
"MIT"
] | null | null | null | import RPi.GPIO as gpio
from pusher import Pusher
import time
pusher = Pusher(app_id=u'394325', key=u'cc900daae41222ea463e', secret=u'02ae96830fe03a094573', cluster=u'eu')
gpio.setmode(gpio.BCM)
gpio.setup(2, gpio.OUT)
# TODO: Map each gpio pin to a room eg 2: HNG Main
while True:
gpio.output(2, gpio.OUT)
passcode ... | 27 | 109 | 0.708995 |
b22bc88a2d140b8c45a0fbac6ce8fea46af69f26 | 1,036 | py | Python | courses/python/mflac/vuln_app/patched_admin.py | tank1st99/securitygym | 2e4fbdf8002afbe51648706906f0db2c294362a6 | [
"MIT"
] | 49 | 2021-05-20T12:49:28.000Z | 2022-03-13T11:35:03.000Z | courses/python/mflac/vuln_app/patched_admin.py | tank1st99/securitygym | 2e4fbdf8002afbe51648706906f0db2c294362a6 | [
"MIT"
] | null | null | null | courses/python/mflac/vuln_app/patched_admin.py | tank1st99/securitygym | 2e4fbdf8002afbe51648706906f0db2c294362a6 | [
"MIT"
] | 5 | 2021-05-20T12:58:34.000Z | 2021-12-05T19:08:13.000Z | import functools
from flask import Blueprint
from flask import render_template
from flask import g
from flask import redirect
from flask import url_for
from flask import flash
from mflac.vuln_app.db import get_db
bp = Blueprint("admin", __name__, url_prefix="/admin")
| 25.268293 | 76 | 0.697876 |
b22c071ff2cdd5ff5f1c6258280e4c7e042b6c35 | 3,708 | py | Python | inpainting/common/eval_test.py | yuyay/ASNG-NAS | 6b908dd25e49471e454d3c2b1e93638af2bd8ecc | [
"MIT"
] | 96 | 2019-05-22T19:04:39.000Z | 2021-12-21T07:50:51.000Z | inpainting/common/eval_test.py | pawopawo/ASNG-NAS | a13c4828cfa9acc1eebd598dc1f88ee18e152159 | [
"MIT"
] | 3 | 2019-11-11T02:13:24.000Z | 2019-11-28T13:25:40.000Z | inpainting/common/eval_test.py | pawopawo/ASNG-NAS | a13c4828cfa9acc1eebd598dc1f88ee18e152159 | [
"MIT"
] | 14 | 2019-05-24T07:50:15.000Z | 2021-07-25T14:16:18.000Z | import os
import pandas as pd
import torch
from torch import nn
import common.utils as util
import scipy.misc as spmi
| 43.623529 | 128 | 0.562567 |
b22daaab8d4ecd141b8b7df40454e33e53d6bbdf | 10,218 | py | Python | connectivity/connectivity.py | vagechirkov/NI-project | fa0687d81ffad9b2e3737fe9115a151335bda358 | [
"MIT"
] | 1 | 2021-06-01T08:06:15.000Z | 2021-06-01T08:06:15.000Z | connectivity/connectivity.py | vagechirkov/NI-project | fa0687d81ffad9b2e3737fe9115a151335bda358 | [
"MIT"
] | null | null | null | connectivity/connectivity.py | vagechirkov/NI-project | fa0687d81ffad9b2e3737fe9115a151335bda358 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import networkx as nx
from nxviz import CircosPlot
from neurolib.utils import atlases
# https://doi.org/10.1016/j.neuroimage.2015.07.075 Table 2
# number corresponds to AAL2 labels indices
CORTICAL_REGIONS = {
'central_region': [1, 2, 61, 62, 13, 14],
'fron... | 33.501639 | 78 | 0.592582 |
b22e2d62e71b8fbbd1c5658b31e4eb4e56a96389 | 140 | py | Python | secao5/exercicio6.py | robinson-1985/exercicios_python_geek_university | 6dfc740472de9ff7c029e26a2ba8f51080e3860b | [
"MIT"
] | null | null | null | secao5/exercicio6.py | robinson-1985/exercicios_python_geek_university | 6dfc740472de9ff7c029e26a2ba8f51080e3860b | [
"MIT"
] | null | null | null | secao5/exercicio6.py | robinson-1985/exercicios_python_geek_university | 6dfc740472de9ff7c029e26a2ba8f51080e3860b | [
"MIT"
] | null | null | null | '''6. Escreva um programa que, dados dois nmeros inteiros, mostre na tela o maior deles,
assim como a diferena existente entre ambos.'''
| 35 | 89 | 0.757143 |
b22e6d6bc215d8e3aa72605534263f2c5a57156d | 1,694 | py | Python | src/conf.py | RJTK/dwglasso_cweeds | eaaa9cd3b3b4f0120f6d9061b585ec46f0678740 | [
"MIT"
] | null | null | null | src/conf.py | RJTK/dwglasso_cweeds | eaaa9cd3b3b4f0120f6d9061b585ec46f0678740 | [
"MIT"
] | null | null | null | src/conf.py | RJTK/dwglasso_cweeds | eaaa9cd3b3b4f0120f6d9061b585ec46f0678740 | [
"MIT"
] | null | null | null | '''
This is the config file for the code in src/. Essentially it
holds things like file and variable names.
'''
# The folder locations of the below files are specified by the
# cookie cutter data science format and are hardcoded into the code.
# I'm not entirely sure that that was the best way to go about it,
# but t... | 30.25 | 68 | 0.756198 |
b22e87213200baf4d5c3c89eb335262571cc546e | 1,486 | py | Python | HackerEarth/Python/BasicProgramming/InputOutput/BasicsOfInputOutput/MinimizeCost.py | cychitivav/programming_exercises | e8e7ddb4ec4eea52ee0d3826a144c7dc97195e78 | [
"MIT"
] | null | null | null | HackerEarth/Python/BasicProgramming/InputOutput/BasicsOfInputOutput/MinimizeCost.py | cychitivav/programming_exercises | e8e7ddb4ec4eea52ee0d3826a144c7dc97195e78 | [
"MIT"
] | null | null | null | HackerEarth/Python/BasicProgramming/InputOutput/BasicsOfInputOutput/MinimizeCost.py | cychitivav/programming_exercises | e8e7ddb4ec4eea52ee0d3826a144c7dc97195e78 | [
"MIT"
] | null | null | null | #!/Usr/bin/env python
"""
You are given an array of numbers Ai which contains positive as well as negative numbers . The cost of the array can be defined as C(X)
C(x) = |A1 + T1| + |A2 + T2| + ... + |An + Tn|, where T is the transfer array which contains N zeros initially.
You need to minimize this cost. You ca... | 31.617021 | 362 | 0.691117 |
b231777aaaf136ffab975467c0c084dcecffc14f | 973 | py | Python | ansible/utils/check_droplet.py | louis-pre/NewsBlur | b4e9a56041ff187ef77b38dfd0778daf41b53f4f | [
"MIT"
] | 3,073 | 2015-01-01T07:20:18.000Z | 2022-03-31T20:33:41.000Z | ansible/utils/check_droplet.py | louis-pre/NewsBlur | b4e9a56041ff187ef77b38dfd0778daf41b53f4f | [
"MIT"
] | 1,054 | 2015-01-02T13:32:35.000Z | 2022-03-30T04:21:21.000Z | ansible/utils/check_droplet.py | louis-pre/NewsBlur | b4e9a56041ff187ef77b38dfd0778daf41b53f4f | [
"MIT"
] | 676 | 2015-01-03T16:40:29.000Z | 2022-03-30T14:00:40.000Z | import sys
import time
import digitalocean
import subprocess
TOKEN_FILE = "/srv/secrets-newsblur/keys/digital_ocean.token"
droplet_name = sys.argv[1]
with open(TOKEN_FILE) as f:
token = f.read().strip()
manager = digitalocean.Manager(token=token)
timeout = 180
timer = 0
ssh_works = False
while not ssh_works:
... | 27.027778 | 105 | 0.697842 |
b231e5387c29a9c303c2891e543771ef5034fb5e | 671 | py | Python | logmappercommon/definitions/logmapperkeys.py | abaena78/logmapper-master | ef4cc7470aec274095afa09f0fe97d9d48299418 | [
"MIT"
] | null | null | null | logmappercommon/definitions/logmapperkeys.py | abaena78/logmapper-master | ef4cc7470aec274095afa09f0fe97d9d48299418 | [
"MIT"
] | null | null | null | logmappercommon/definitions/logmapperkeys.py | abaena78/logmapper-master | ef4cc7470aec274095afa09f0fe97d9d48299418 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 8 09:45:29 2018
@author: abaena
"""
DATATYPE_AGENT = 'agent'
DATATYPE_PATH_METRICS = 'pathmet'
DATATYPE_LOG_EVENTS = 'logeve'
DATATYPE_LOG_METRICS = 'logmet'
DATATYPE_MONITOR_HOST = 'host'
DATATYPE_MONITOR_MICROSERVICE = 'ms'
DATATYPE_MONITOR_TOMCAT = 'tomc'
DATATYPE_... | 19.735294 | 54 | 0.797317 |
b23410413a31fad8b057b8f858083b133ba2f903 | 7,438 | py | Python | construct/expr.py | DominicAntonacci/construct | abd48c4892ceddc60c11d25f4a955573e2c61111 | [
"MIT"
] | 57 | 2019-12-08T00:02:14.000Z | 2022-03-24T20:40:40.000Z | construct/expr.py | DominicAntonacci/construct | abd48c4892ceddc60c11d25f4a955573e2c61111 | [
"MIT"
] | 3 | 2020-01-26T03:38:31.000Z | 2020-06-21T13:42:46.000Z | construct/expr.py | DominicAntonacci/construct | abd48c4892ceddc60c11d25f4a955573e2c61111 | [
"MIT"
] | 8 | 2020-04-20T08:17:57.000Z | 2021-10-04T06:04:51.000Z | import operator
if not hasattr(operator, "div"):
operator.div = operator.truediv
opnames = {
operator.add : "+",
operator.sub : "-",
operator.mul : "*",
operator.div : "/",
operator.floordiv : "//",
operator.mod : "%",
operator.pow : "**",
operator.xor : "^",
operator.lshift : ... | 28.941634 | 103 | 0.60285 |
b2341f237ea46f0ced528101120f6ba97f84d73f | 14,362 | py | Python | ci/unit_tests/functions_deploy/main_test.py | xverges/watson-assistant-workbench | b899784506c7469be332cb58ed447ca8f607ed30 | [
"Apache-2.0"
] | 1 | 2020-03-27T16:39:38.000Z | 2020-03-27T16:39:38.000Z | ci/unit_tests/functions_deploy/main_test.py | xverges/watson-assistant-workbench | b899784506c7469be332cb58ed447ca8f607ed30 | [
"Apache-2.0"
] | 1 | 2021-01-29T16:14:58.000Z | 2021-02-03T16:10:07.000Z | ci/unit_tests/functions_deploy/main_test.py | xverges/watson-assistant-workbench | b899784506c7469be332cb58ed447ca8f607ed30 | [
"Apache-2.0"
] | 1 | 2021-01-22T13:13:36.000Z | 2021-01-22T13:13:36.000Z | """
Copyright 2019 IBM Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | 49.524138 | 137 | 0.598176 |
b2354dd4a0bef69531cc2ff0b6a96364cece153b | 503 | py | Python | python_scripts/tip_loss/tip_loss.py | lawsonro3/python_scripts | 875ff607727ab37006d7b3cb793f1dd97c538d1b | [
"Apache-2.0"
] | null | null | null | python_scripts/tip_loss/tip_loss.py | lawsonro3/python_scripts | 875ff607727ab37006d7b3cb793f1dd97c538d1b | [
"Apache-2.0"
] | null | null | null | python_scripts/tip_loss/tip_loss.py | lawsonro3/python_scripts | 875ff607727ab37006d7b3cb793f1dd97c538d1b | [
"Apache-2.0"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
plt.close('all')
# From section 3.8.3 of wind energy explained
# Prandlt tip loss calc
B = 3 # number of blades
R = 1 # blade length
phi = np.deg2rad(10) # relative wind angle
r = np.linspace(0,R,100)
F = 2/np.pi * np.arccos(np.exp(-((B/2)*(1-(r/R)))/((r/R)*np.sin(phi... | 29.588235 | 83 | 0.66998 |
b2356595618aa8cdf6515e41ee52e8a997567521 | 854 | py | Python | filter/mot.py | oza6ut0ne/CVStreamer | a299ab2802fe5c116df5c90c4ed872f2d05faaed | [
"MIT"
] | null | null | null | filter/mot.py | oza6ut0ne/CVStreamer | a299ab2802fe5c116df5c90c4ed872f2d05faaed | [
"MIT"
] | null | null | null | filter/mot.py | oza6ut0ne/CVStreamer | a299ab2802fe5c116df5c90c4ed872f2d05faaed | [
"MIT"
] | null | null | null | import time
import cv2
import numpy as np
| 28.466667 | 104 | 0.598361 |
b235d4cd98481beba4ed5022736424b39eba18ea | 8,730 | py | Python | social_auth/backends/contrib/vkontakte.py | ryr/django-social-auth | e1aa22ba8be027ea8e8b0a62caee90485aa44836 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | social_auth/backends/contrib/vkontakte.py | ryr/django-social-auth | e1aa22ba8be027ea8e8b0a62caee90485aa44836 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | social_auth/backends/contrib/vkontakte.py | ryr/django-social-auth | e1aa22ba8be027ea8e8b0a62caee90485aa44836 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | """
VKontakte OpenAPI and OAuth 2.0 support.
This contribution adds support for VKontakte OpenAPI and OAuth 2.0 service in the form
www.vkontakte.ru. Username is retrieved from the identity returned by server.
"""
from django.conf import settings
from django.contrib.auth import authenticate
from django.utils import s... | 35.778689 | 118 | 0.652921 |
b23604c9ede5f1199e722240913b11cf6fdf151d | 1,260 | py | Python | main.py | Harmanjit14/face-distance-detector | 82a491308e32e584750a9b2f757cacafc47e5aaf | [
"MIT"
] | null | null | null | main.py | Harmanjit14/face-distance-detector | 82a491308e32e584750a9b2f757cacafc47e5aaf | [
"MIT"
] | null | null | null | main.py | Harmanjit14/face-distance-detector | 82a491308e32e584750a9b2f757cacafc47e5aaf | [
"MIT"
] | null | null | null | import cv2
import cvzone
from cvzone.FaceMeshModule import FaceMeshDetector
import numpy as np
cap = cv2.VideoCapture(0)
detector = FaceMeshDetector()
text = ['Hello there.', 'My Name is Harman', 'I am bored!']
while True:
success, img = cap.read()
img, faces = detector.findFaceMesh(img, draw=False)
txt ... | 27.391304 | 82 | 0.565079 |
b2362a2c9bbd2b259775e9395541cd8ca6653d97 | 3,188 | py | Python | bokeh/util/terminal.py | kinghows/bokeh | aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7 | [
"BSD-3-Clause"
] | 1 | 2018-11-14T19:08:18.000Z | 2018-11-14T19:08:18.000Z | bokeh/util/terminal.py | kinghows/bokeh | aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7 | [
"BSD-3-Clause"
] | 1 | 2021-05-09T02:45:17.000Z | 2021-05-09T02:45:17.000Z | bokeh/util/terminal.py | kinghows/bokeh | aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7 | [
"BSD-3-Clause"
] | 1 | 2020-06-17T05:47:16.000Z | 2020-06-17T05:47:16.000Z | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved.
#
# Powered by the Bokeh Development Team.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#---------------------------------------------------... | 35.422222 | 91 | 0.414994 |
b2366956ff664bff3318ce968898d3246b9f6204 | 16,462 | py | Python | exp.py | SOPSLab/SwarmAggregation | 2678208bec747de4f1a925a0bed862cd4205743f | [
"MIT"
] | null | null | null | exp.py | SOPSLab/SwarmAggregation | 2678208bec747de4f1a925a0bed862cd4205743f | [
"MIT"
] | null | null | null | exp.py | SOPSLab/SwarmAggregation | 2678208bec747de4f1a925a0bed862cd4205743f | [
"MIT"
] | null | null | null | # Project: SwarmAggregation
# Filename: exp.py
# Authors: Joshua J. Daymude (jdaymude@asu.edu) and Noble C. Harasha
# (nharasha@mit.edu).
"""
exp: A flexible, unifying framework for defining and running experiments for
swarm aggregation.
"""
import argparse
from aggregation import aggrega... | 40.848635 | 82 | 0.551209 |
b2376657b0293a1d78aa6eb2c5f7730819b325c9 | 867 | py | Python | pychron/experiment/tests/comment_template.py | ael-noblegas/pychron | 6ebbbb1f66a614972b62b7a9be4c784ae61b5d62 | [
"Apache-2.0"
] | 1 | 2019-02-27T21:57:44.000Z | 2019-02-27T21:57:44.000Z | pychron/experiment/tests/comment_template.py | ael-noblegas/pychron | 6ebbbb1f66a614972b62b7a9be4c784ae61b5d62 | [
"Apache-2.0"
] | 80 | 2018-07-17T20:10:20.000Z | 2021-08-17T15:38:24.000Z | pychron/experiment/tests/comment_template.py | AGESLDEO/pychron | 1a81e05d9fba43b797f335ceff6837c016633bcf | [
"Apache-2.0"
] | null | null | null |
from __future__ import absolute_import
__author__ = 'ross'
import unittest
from pychron.experiment.utilities.comment_template import CommentTemplater
if __name__ == '__main__':
unittest.main()
| 22.815789 | 78 | 0.682814 |
b2377bde1e5c8e5670fad099a5e53482fcf577c1 | 1,823 | py | Python | apps/roles/views.py | andipandiber/CajaAhorros | cb0769fc04529088768ea650f9ee048bd9a55837 | [
"MIT"
] | null | null | null | apps/roles/views.py | andipandiber/CajaAhorros | cb0769fc04529088768ea650f9ee048bd9a55837 | [
"MIT"
] | 8 | 2021-03-30T13:39:24.000Z | 2022-03-12T00:36:15.000Z | apps/roles/views.py | andresbermeoq/CajaAhorros | cb0769fc04529088768ea650f9ee048bd9a55837 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.urls import reverse_lazy
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import CreateView, ListView, UpdateView, DeleteView, TemplateView
from .models import Role
| 29.403226 | 91 | 0.705979 |
b2377be653f5937e37d815cfdc93d265c2fab546 | 4,227 | py | Python | vjezba5/DPcli-part.py | vmilkovic/primjena-blockchain-tehnologije | bb18abea1fc6d1a25ae936966231de70b2531bba | [
"MIT"
] | null | null | null | vjezba5/DPcli-part.py | vmilkovic/primjena-blockchain-tehnologije | bb18abea1fc6d1a25ae936966231de70b2531bba | [
"MIT"
] | null | null | null | vjezba5/DPcli-part.py | vmilkovic/primjena-blockchain-tehnologije | bb18abea1fc6d1a25ae936966231de70b2531bba | [
"MIT"
] | null | null | null | import rpyc
from Crypto.Signature import pkcs1_15
from Crypto.Hash import SHA256
from Crypto.PublicKey import RSA
#############
## KLIJENT ##
#############
flag = True
try:
#klijent iz prethodno stvorenih datoteka uitava svoj javni i privatni klju
prKey = RSA.import_key(open('private_key.pem').read())
puK... | 40.257143 | 109 | 0.581263 |
b237ee0ace32e691329070ad414c8eef66fccd44 | 175 | py | Python | waiguan/layers/modules/__init__.py | heixialeeLeon/SSD | afdc90fafea0c0629bba789f546e3e0ca279f205 | [
"MIT"
] | null | null | null | waiguan/layers/modules/__init__.py | heixialeeLeon/SSD | afdc90fafea0c0629bba789f546e3e0ca279f205 | [
"MIT"
] | null | null | null | waiguan/layers/modules/__init__.py | heixialeeLeon/SSD | afdc90fafea0c0629bba789f546e3e0ca279f205 | [
"MIT"
] | null | null | null | from .l2norm import L2Norm
from .multibox_loss import MultiBoxLoss
from .multibox_focalloss import MultiBoxFocalLoss
__all__ = ['L2Norm', 'MultiBoxLoss', 'MultiBoxFocalLoss'] | 35 | 57 | 0.822857 |
b238f91a5ac084ae34b9c4b97d9a95b7ebca4518 | 418 | py | Python | hlwtadmin/migrations/0035_location_disambiguation.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | 1 | 2020-10-16T16:29:01.000Z | 2020-10-16T16:29:01.000Z | hlwtadmin/migrations/0035_location_disambiguation.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | 365 | 2020-02-03T12:46:53.000Z | 2022-02-27T17:20:46.000Z | hlwtadmin/migrations/0035_location_disambiguation.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0 on 2020-07-22 08:26
from django.db import migrations, models
| 22 | 74 | 0.617225 |
b23ae56df03e56d6049586357b729e447c6dec2f | 658 | py | Python | 819. Rotate Array/Slicing.py | tulsishankarreddy/leetcode | fffe90b0ab43a57055c248550f31ac18967fe183 | [
"MIT"
] | 1 | 2022-01-19T16:26:49.000Z | 2022-01-19T16:26:49.000Z | 819. Rotate Array/Slicing.py | tulsishankarreddy/leetcode | fffe90b0ab43a57055c248550f31ac18967fe183 | [
"MIT"
] | null | null | null | 819. Rotate Array/Slicing.py | tulsishankarreddy/leetcode | fffe90b0ab43a57055c248550f31ac18967fe183 | [
"MIT"
] | null | null | null | ''' This can be solved using the slicing method used in list. We have to modify the list by take moving the
last part of the array in reverse order and joining it with the remaining part of the list to its right''' | 54.833333 | 120 | 0.600304 |
b23c1d878bde31a9833fb50b46f378e78aeb39e0 | 4,019 | py | Python | src/pdfOut.py | virus-on/magister_work | 803d218f83cba31900156ee5f2e2f4df807ccfff | [
"MIT"
] | 2 | 2020-12-02T12:45:08.000Z | 2021-11-15T10:55:10.000Z | src/pdfOut.py | virus-on/magister_work | 803d218f83cba31900156ee5f2e2f4df807ccfff | [
"MIT"
] | null | null | null | src/pdfOut.py | virus-on/magister_work | 803d218f83cba31900156ee5f2e2f4df807ccfff | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import subprocess
import time
| 42.755319 | 151 | 0.607863 |
b23ca7a903bc4922dc5e8b76e4f255954b93daec | 10,324 | py | Python | ecs/notifications/models.py | programmierfabrik/ecs | 2389a19453e21b2ea4e40b272552bcbd42b926a9 | [
"Apache-2.0"
] | 9 | 2017-02-13T18:17:13.000Z | 2020-11-21T20:15:54.000Z | ecs/notifications/models.py | programmierfabrik/ecs | 2389a19453e21b2ea4e40b272552bcbd42b926a9 | [
"Apache-2.0"
] | 2 | 2021-05-20T14:26:47.000Z | 2021-05-20T14:26:48.000Z | ecs/notifications/models.py | programmierfabrik/ecs | 2389a19453e21b2ea4e40b272552bcbd42b926a9 | [
"Apache-2.0"
] | 4 | 2017-04-02T18:48:59.000Z | 2021-11-23T15:40:35.000Z | from importlib import import_module
from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext
from django.template import loader
from django.utils.text import slugify
from django.utils import timezone
from revers... | 37.955882 | 117 | 0.6852 |
b23cc3375a6c8a89472ca912854ca2234009998d | 2,339 | py | Python | event/event_handler.py | rafty/ServerlessEventSoutcing | 4759a187373af6f0bfded4ff388ba74c09fc4368 | [
"Apache-2.0"
] | null | null | null | event/event_handler.py | rafty/ServerlessEventSoutcing | 4759a187373af6f0bfded4ff388ba74c09fc4368 | [
"Apache-2.0"
] | null | null | null | event/event_handler.py | rafty/ServerlessEventSoutcing | 4759a187373af6f0bfded4ff388ba74c09fc4368 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
from functools import reduce
from retrying import retry
from model import EventStore, Snapshot
from error import ItemRanShort, IntegrityError
from retry_handler import is_integrity_error, is_not_item_ran_short
logger = logging.getLogger()
logger.setLevel(logging.INFO)
| 29.987179 | 68 | 0.650278 |
b23d36fa5033cff1b7860caf5d44f22ca9d35ade | 3,422 | py | Python | iwjam_import.py | patrickgh3/iwjam | fd6f58bd5217dc13ed475779fe7f1ff6ca7f13be | [
"MIT"
] | null | null | null | iwjam_import.py | patrickgh3/iwjam | fd6f58bd5217dc13ed475779fe7f1ff6ca7f13be | [
"MIT"
] | null | null | null | iwjam_import.py | patrickgh3/iwjam | fd6f58bd5217dc13ed475779fe7f1ff6ca7f13be | [
"MIT"
] | null | null | null | from lxml import etree
import os
import sys
import shutil
import iwjam_util
# Performs an import of a mod project into a base project given a
# previously computed ProjectDiff between them,
# and a list of folder names to prefix
# ('%modname%' will be replaced with the mod's name)
| 36.404255 | 78 | 0.63647 |
b23d41e777497c29e58e3ac4394589928318d38e | 4,663 | py | Python | subspacemethods/basesubspace.py | AdriBesson/spl2018_joint_sparse | bc52b31a9361c73f07ee52b4d5f36a58fb231c96 | [
"MIT"
] | 2 | 2020-07-12T02:04:10.000Z | 2021-05-23T06:37:36.000Z | subspacemethods/basesubspace.py | AdriBesson/joint_sparse_algorithms | bc52b31a9361c73f07ee52b4d5f36a58fb231c96 | [
"MIT"
] | null | null | null | subspacemethods/basesubspace.py | AdriBesson/joint_sparse_algorithms | bc52b31a9361c73f07ee52b4d5f36a58fb231c96 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
import numpy as np | 30.477124 | 107 | 0.57581 |
b23fca8a65b936733d00f0bac508e61b99fa0f3c | 4,550 | py | Python | glow/generate_data_sources.py | tomcent-tom/glow | 6ba5e8142416251a12e361f4216a40936562cfa1 | [
"Apache-2.0"
] | null | null | null | glow/generate_data_sources.py | tomcent-tom/glow | 6ba5e8142416251a12e361f4216a40936562cfa1 | [
"Apache-2.0"
] | null | null | null | glow/generate_data_sources.py | tomcent-tom/glow | 6ba5e8142416251a12e361f4216a40936562cfa1 | [
"Apache-2.0"
] | null | null | null | from connectors.tableau.tableau import TableauConnector
from posixpath import join
from typing import List, Dict, Tuple
import argparse
import connectors.tableau
import os
import utils
import logging
import sys
import yaml
logging.basicConfig(level=logging.INFO)
MAIN_PATH = '/Users/tomevers/projects/airglow'
CONNEC... | 39.565217 | 165 | 0.667253 |
b23fd53ddd58d9be266428160e71ab6d0021666d | 4,748 | py | Python | src/app/views/cookbook/recipe.py | rico0821/fridge | c564f9a4b656c06384d5c40db038328c35ccf1ed | [
"MIT"
] | null | null | null | src/app/views/cookbook/recipe.py | rico0821/fridge | c564f9a4b656c06384d5c40db038328c35ccf1ed | [
"MIT"
] | null | null | null | src/app/views/cookbook/recipe.py | rico0821/fridge | c564f9a4b656c06384d5c40db038328c35ccf1ed | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
app.views.cookbook.recipe
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Module for handling recipe view and upload.
--
:copyright: (c)2020 by rico0821
"""
from bson.objectid import ObjectId
from datetime import datetime
from flask import abort, request
from flask_jwt_e... | 31.236842 | 90 | 0.571398 |
b2410ae215724bbd3d52cfc6ac8fa233e41ad029 | 5,141 | py | Python | modules/password.py | MasterBurnt/ToolBurnt | 479a310b7ffff58d00d362ac0fa59d95750e3304 | [
"Apache-2.0"
] | 1 | 2021-10-18T09:03:21.000Z | 2021-10-18T09:03:21.000Z | modules/password.py | MasterBurnt/ToolBurnt | 479a310b7ffff58d00d362ac0fa59d95750e3304 | [
"Apache-2.0"
] | null | null | null | modules/password.py | MasterBurnt/ToolBurnt | 479a310b7ffff58d00d362ac0fa59d95750e3304 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# @name : PassList
# @url : http://github.com/MasterBurnt
# @author : MasterBurnt
#Libraries
from concurrent.futures import ThreadPoolExecutor
import datetime,os,sys,random,time
from colorama import Fore,init,Style
#C&B&I
init()
c1 = Style.BRIGHT + Fore.LIGHTWHITE_... | 30.064327 | 183 | 0.491928 |
b24345cfa90040fa81b341f92e8e1c158be7a95e | 673 | py | Python | dvc/parsing/__init__.py | mbraakhekke/dvc | 235d4c9a94603131e00c9b770125584fdb369481 | [
"Apache-2.0"
] | null | null | null | dvc/parsing/__init__.py | mbraakhekke/dvc | 235d4c9a94603131e00c9b770125584fdb369481 | [
"Apache-2.0"
] | null | null | null | dvc/parsing/__init__.py | mbraakhekke/dvc | 235d4c9a94603131e00c9b770125584fdb369481 | [
"Apache-2.0"
] | null | null | null | import logging
from itertools import starmap
from funcy import join
from .context import Context
from .interpolate import resolve
logger = logging.getLogger(__name__)
STAGES = "stages"
| 24.035714 | 71 | 0.665676 |
b243c92f9b965a3b5d10ee0df149df6c22ac02d0 | 1,332 | py | Python | Mundo 2/Aula14.Ex59.py | uirasiqueira/Exercicios_Python | 409b7be9cf278e3043149654de7b41be56a3d951 | [
"MIT"
] | null | null | null | Mundo 2/Aula14.Ex59.py | uirasiqueira/Exercicios_Python | 409b7be9cf278e3043149654de7b41be56a3d951 | [
"MIT"
] | null | null | null | Mundo 2/Aula14.Ex59.py | uirasiqueira/Exercicios_Python | 409b7be9cf278e3043149654de7b41be56a3d951 | [
"MIT"
] | null | null | null | '''Crie um programa que leia dois valores e mostre um menu na tela:
[1] somar
[2] multiplicar
[3] maior
[4] novos numeros
[5] sair do programa
Seu programa devera realizar a operao solicitada em cada caso'''
v1= int(input('Digite um numero: '))
v2 = int(input('Digite outro numero: '))
operacao... | 33.3 | 104 | 0.62012 |
b243f7691e46a57fcead4522c62b345ef6662d0c | 1,692 | py | Python | interviewbit/TwoPointers/kthsmallest.py | zazhang/coding-problems | 704f0ab22ecdc5fca1978ac7791f43258eb441dd | [
"MIT"
] | null | null | null | interviewbit/TwoPointers/kthsmallest.py | zazhang/coding-problems | 704f0ab22ecdc5fca1978ac7791f43258eb441dd | [
"MIT"
] | null | null | null | interviewbit/TwoPointers/kthsmallest.py | zazhang/coding-problems | 704f0ab22ecdc5fca1978ac7791f43258eb441dd | [
"MIT"
] | null | null | null | #!usr/bin/env ipython
"""Coding interview problem (array, math):
See `https://www.interviewbit.com/problems/kth-smallest-element-in-the-array/`
Find the kth smallest element in an unsorted array of non-negative integers.
Definition of kth smallest element:
kth smallest element is the minimum possible n such that t... | 26.030769 | 105 | 0.613475 |
b2445103c2858f39d46bd3d45d182776355fdcdc | 90 | py | Python | grab_screen/__init__.py | andrei-shabanski/grab-screen | 758187262156aac85f6736c9b8299187b49e43a5 | [
"MIT"
] | 9 | 2017-08-15T03:45:03.000Z | 2022-02-21T18:06:32.000Z | grab_screen/__init__.py | andrei-shabanski/grab-screen | 758187262156aac85f6736c9b8299187b49e43a5 | [
"MIT"
] | 211 | 2017-07-03T15:24:15.000Z | 2022-02-21T14:09:36.000Z | grab_screen/__init__.py | andrei-shabanski/grab-screen | 758187262156aac85f6736c9b8299187b49e43a5 | [
"MIT"
] | 4 | 2017-08-15T03:44:46.000Z | 2022-02-03T10:25:20.000Z | from .cli import main
from .version import __version__
__all__ = ['__version__', 'main']
| 18 | 33 | 0.744444 |
b244e34a9bc2f4dc206325d9907079cdca8ac5ad | 1,021 | py | Python | Test/test_conf_ap/conf_hostapd/create_config.py | liquidinvestigations/wifi-test | beae8674730d78330b1b18214c86206d858ed604 | [
"MIT"
] | null | null | null | Test/test_conf_ap/conf_hostapd/create_config.py | liquidinvestigations/wifi-test | beae8674730d78330b1b18214c86206d858ed604 | [
"MIT"
] | null | null | null | Test/test_conf_ap/conf_hostapd/create_config.py | liquidinvestigations/wifi-test | beae8674730d78330b1b18214c86206d858ed604 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from hostapdconf.parser import HostapdConf
from hostapdconf import helpers as ha
import subprocess
def create_hostapd_conf(ssid, password, interface):
"""
Create a new hostapd.conf with the given ssid, password, interface.
Overwrites the current config file.
"""
subprocess... | 27.594595 | 75 | 0.695397 |
b245f0f4f9cda0ef7cfead4f0aa73f69f90186e7 | 1,669 | py | Python | tests/test_paddle.py | ankitshah009/MMdnn | a03d800eb4016765e97f82eb5d2e69f98de3a9cf | [
"MIT"
] | 3,442 | 2017-11-20T08:39:51.000Z | 2019-05-06T10:51:19.000Z | tests/test_paddle.py | ankitshah009/MMdnn | a03d800eb4016765e97f82eb5d2e69f98de3a9cf | [
"MIT"
] | 430 | 2017-11-29T04:21:48.000Z | 2019-05-06T05:37:37.000Z | tests/test_paddle.py | ankitshah009/MMdnn | a03d800eb4016765e97f82eb5d2e69f98de3a9cf | [
"MIT"
] | 683 | 2017-11-20T08:50:34.000Z | 2019-05-04T04:25:14.000Z | from __future__ import absolute_import
from __future__ import print_function
import os
import sys
from conversion_imagenet import TestModels
from conversion_imagenet import is_paddle_supported
if __name__ == '__main__':
test_paddle()
| 30.345455 | 56 | 0.559617 |
b246c295c51a8336e9c8fb87cdefb3fbbe9fe216 | 900 | py | Python | cabinet/tools.py | cauabernardino/cabinet | 96bf0d6e467f35d6241ea97f0553bb449fefd15e | [
"MIT"
] | null | null | null | cabinet/tools.py | cauabernardino/cabinet | 96bf0d6e467f35d6241ea97f0553bb449fefd15e | [
"MIT"
] | null | null | null | cabinet/tools.py | cauabernardino/cabinet | 96bf0d6e467f35d6241ea97f0553bb449fefd15e | [
"MIT"
] | null | null | null | import pathlib
import shutil
from typing import Dict, List, Union
from cabinet.consts import SUPPORTED_FILETYPES
def dir_parser(path_to_dir: str) -> Dict[str, Dict[str, str]]:
"""
Parses the given directory, and returns the path, stem and suffix for files.
"""
files = pathlib.Path(path_to_dir).resolv... | 23.684211 | 80 | 0.638889 |
b2473e8998bf083e1cd206ca3716ffba6efcc23c | 1,778 | py | Python | stickyuploads/utils.py | caktus/django-sticky-uploads | a57539655ba991f63f31f0a5c98d790947bcd1b8 | [
"BSD-3-Clause"
] | 11 | 2015-08-14T14:38:02.000Z | 2019-12-16T14:39:30.000Z | stickyuploads/utils.py | caktus/django-sticky-uploads | a57539655ba991f63f31f0a5c98d790947bcd1b8 | [
"BSD-3-Clause"
] | 16 | 2015-08-05T14:02:19.000Z | 2018-03-28T15:43:47.000Z | stickyuploads/utils.py | caktus/django-sticky-uploads | a57539655ba991f63f31f0a5c98d790947bcd1b8 | [
"BSD-3-Clause"
] | 6 | 2015-08-14T12:34:52.000Z | 2019-10-16T04:18:37.000Z | from __future__ import unicode_literals
import os
from django.core import signing
from django.core.exceptions import ImproperlyConfigured
from django.core.files.storage import get_storage_class
from django.utils.functional import LazyObject
def serialize_upload(name, storage, url):
"""
Serialize uploaded fi... | 29.147541 | 79 | 0.654668 |
b248f043c0feea53fbb2ab2028061229d654718b | 693 | py | Python | build/beginner_tutorials/cmake/beginner_tutorials-genmsg-context.py | aracelis-git/beginner_tutorials | 3bb11e496c414237543e8783dd01b57ef8952bca | [
"Apache-2.0"
] | null | null | null | build/beginner_tutorials/cmake/beginner_tutorials-genmsg-context.py | aracelis-git/beginner_tutorials | 3bb11e496c414237543e8783dd01b57ef8952bca | [
"Apache-2.0"
] | null | null | null | build/beginner_tutorials/cmake/beginner_tutorials-genmsg-context.py | aracelis-git/beginner_tutorials | 3bb11e496c414237543e8783dd01b57ef8952bca | [
"Apache-2.0"
] | null | null | null | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/viki/catkin_ws/src/beginner_tutorials/msg/Num.msg"
services_str = "/home/viki/catkin_ws/src/beginner_tutorials/srv/ResetCount.srv;/home/viki/catkin_ws/src/beginner_tutorials/srv/AddTwoInts.srv"
pkg_name = "beginner_tutorials"
dependencies_str = ... | 57.75 | 145 | 0.799423 |
b249e4cc4dd6019c8854e04867ecd673f6f4e948 | 9,392 | py | Python | demo/utils.py | NguyenTuan-Dat/Custom_3D | 148d3e4baa0d0d36714ec2c164ef31cff1bb5751 | [
"Apache-2.0"
] | 41 | 2021-09-16T08:19:19.000Z | 2022-03-22T10:10:31.000Z | demo/utils.py | NguyenTuan-Dat/Custom_3D | 148d3e4baa0d0d36714ec2c164ef31cff1bb5751 | [
"Apache-2.0"
] | null | null | null | demo/utils.py | NguyenTuan-Dat/Custom_3D | 148d3e4baa0d0d36714ec2c164ef31cff1bb5751 | [
"Apache-2.0"
] | 2 | 2021-11-26T14:55:32.000Z | 2021-12-05T12:57:24.000Z | import os
import cv2
import numpy as np
import torch
import torch.nn as nn
import yaml
IMG_EXTENSIONS = (".jpg", ".jpeg", ".png", ".ppm", ".bmp", ".pgm", ".tif", ".tiff", "webp")
def xmkdir(path):
"""Create directory PATH recursively if it does not exist."""
os.makedirs(path, exist_ok=True)
| 40.834783 | 117 | 0.544719 |
b24b76ff37f2289a78c64dcda02fb884eb113dbd | 227 | py | Python | examples/scannet_normals/data.py | goodok/fastai_sparse | 802ede772c19ccca7449eb13d0a107bc0c10ab0f | [
"MIT"
] | 49 | 2019-03-31T21:20:27.000Z | 2021-06-30T18:46:58.000Z | examples/scannet_normals/data.py | goodok/fastai_sparse | 802ede772c19ccca7449eb13d0a107bc0c10ab0f | [
"MIT"
] | 6 | 2019-04-17T16:01:05.000Z | 2020-11-10T09:22:10.000Z | examples/scannet_normals/data.py | goodok/fastai_sparse | 802ede772c19ccca7449eb13d0a107bc0c10ab0f | [
"MIT"
] | 5 | 2019-04-01T10:46:29.000Z | 2021-01-03T05:18:08.000Z | # -*- coding: utf-8 -*-
from functools import partial
from fastai_sparse.data import SparseDataBunch
merge_fn = partial(SparseDataBunch.merge_fn, keys_lists=['id', 'labels_raw', 'filtred_mask', 'random_seed', 'num_points'])
| 28.375 | 122 | 0.753304 |
b24d5ff4a2324937255e18e0f636457956239a07 | 1,749 | py | Python | plugins/okta/komand_okta/actions/reset_password/schema.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 46 | 2019-06-05T20:47:58.000Z | 2022-03-29T10:18:01.000Z | plugins/okta/komand_okta/actions/reset_password/schema.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 386 | 2019-06-07T20:20:39.000Z | 2022-03-30T17:35:01.000Z | plugins/okta/komand_okta/actions/reset_password/schema.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 43 | 2019-07-09T14:13:58.000Z | 2022-03-28T12:04:46.000Z | # GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json
| 22.714286 | 184 | 0.606632 |
b24fa470c54ab2d92980faab3b5c114f1efa0392 | 151 | py | Python | Recursion/recursiopow.py | TheG0dfath3r/Python | 73f40e9828b953c3e614a21a8980eaa81b5c066e | [
"MIT"
] | null | null | null | Recursion/recursiopow.py | TheG0dfath3r/Python | 73f40e9828b953c3e614a21a8980eaa81b5c066e | [
"MIT"
] | null | null | null | Recursion/recursiopow.py | TheG0dfath3r/Python | 73f40e9828b953c3e614a21a8980eaa81b5c066e | [
"MIT"
] | 2 | 2019-09-30T21:17:57.000Z | 2019-10-01T16:23:33.000Z | x=int(input("no 1 "))
y=int(input("no 2 "))
print(pow(x,y))
| 16.777778 | 29 | 0.463576 |
b2517e50917150fdb0763470ea2ed80dc851178d | 1,800 | py | Python | scripts/egomotion_kitti_eval/old/generate_grid_search_validation_freak_stage2.py | bartn8/stereo-vision | 1180045fe560478e5c441e75202cc899fe90ec3d | [
"BSD-3-Clause"
] | 52 | 2016-04-02T18:18:48.000Z | 2022-02-14T11:47:58.000Z | scripts/egomotion_kitti_eval/old/generate_grid_search_validation_freak_stage2.py | bartn8/stereo-vision | 1180045fe560478e5c441e75202cc899fe90ec3d | [
"BSD-3-Clause"
] | 3 | 2016-08-01T14:36:44.000Z | 2021-02-14T08:15:50.000Z | scripts/egomotion_kitti_eval/old/generate_grid_search_validation_freak_stage2.py | bartn8/stereo-vision | 1180045fe560478e5c441e75202cc899fe90ec3d | [
"BSD-3-Clause"
] | 26 | 2016-08-25T11:28:05.000Z | 2022-02-18T12:17:47.000Z | #!/usr/bin/python
hamming_threshold = [50, 60]
pattern_scale = [4.0, 6.0, 8.0, 10.0]
fp_runscript = open("/mnt/ssd/kivan/cv-stereo/scripts/eval_batch/run_batch_validation.sh", 'w')
fp_runscript.write("#!/bin/bash\n\n")
cnt = 0
for i in range(len(hamming_threshold)):
for j in range(len(pattern_scale)):
cn... | 40 | 152 | 0.606111 |
b25199ace7d60d001d07006102f2cf38ff218d27 | 8,618 | py | Python | tensorflow_tts/processor/baker_online_tts.py | outman2008/TensorFlowTTS | 7e84f9d91fcfefc031c28df5203779af5614fe5e | [
"Apache-2.0"
] | null | null | null | tensorflow_tts/processor/baker_online_tts.py | outman2008/TensorFlowTTS | 7e84f9d91fcfefc031c28df5203779af5614fe5e | [
"Apache-2.0"
] | null | null | null | tensorflow_tts/processor/baker_online_tts.py | outman2008/TensorFlowTTS | 7e84f9d91fcfefc031c28df5203779af5614fe5e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
#
# python online_tts.py -client_secret=client_secret -client_id=client_secret -file_save_path=test.wav --text= --audiotype=6
from typing import TextIO
import requests
import json
import argparse
import os
import time
from g2p_en import G2p as grapheme_to_phn
import random
import... | 35.759336 | 330 | 0.598863 |