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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bc71cbe7f13c2f51663de7c1b18572924543ac36 | 26,868 | py | Python | bkt/library/powerpoint/elements.py | pyro-team/bkt-toolbox | bbccba142a81ca0a46056f2bcda75899979158a5 | [
"MIT"
] | 12 | 2019-05-31T02:57:26.000Z | 2022-03-26T09:40:50.000Z | bkt/library/powerpoint/elements.py | mrflory/bkt-toolbox | bbccba142a81ca0a46056f2bcda75899979158a5 | [
"MIT"
] | 27 | 2021-11-27T16:33:19.000Z | 2022-03-27T17:47:26.000Z | bkt/library/powerpoint/elements.py | pyro-team/bkt-toolbox | bbccba142a81ca0a46056f2bcda75899979158a5 | [
"MIT"
] | 3 | 2019-06-12T10:59:20.000Z | 2020-04-21T15:13:50.000Z | # -*- coding: utf-8 -*-
'''
Created on 02.11.2017
@author: fstallmann
'''
from __future__ import absolute_import
from collections import deque
import bkt
from bkt import dotnet
Drawing = dotnet.import_drawing()
from . import helpers as pplib
def button_get_label(self, index):
try:
... | 42.512658 | 242 | 0.628703 |
bc73adc709a1a6dd422dd898ada82a431739cb7e | 34,680 | py | Python | sc2/unit.py | guliverza/AdditionalPylons | 37336dcd1678c6cdfa22d881c2178ba65cb1fd61 | [
"MIT"
] | null | null | null | sc2/unit.py | guliverza/AdditionalPylons | 37336dcd1678c6cdfa22d881c2178ba65cb1fd61 | [
"MIT"
] | null | null | null | sc2/unit.py | guliverza/AdditionalPylons | 37336dcd1678c6cdfa22d881c2178ba65cb1fd61 | [
"MIT"
] | null | null | null | from __future__ import annotations
import warnings
from typing import Any, Dict, List, Optional, Set, Tuple, Union, TYPE_CHECKING
from .cache import property_immutable_cache, property_mutable_cache
from .constants import (
transforming,
IS_STRUCTURE,
IS_LIGHT,
IS_ARMORED,
IS_BIOLOGICAL,
IS_MECH... | 37.37069 | 188 | 0.647953 |
bc73bb29476960582e88da68ad24bf687cb2dd0e | 65 | py | Python | healthy_candies/load/__init__.py | striantafyllouEPFL/healthy-candies | fc7d9e05d54ba207e15d997acea44ff0bf9edb13 | [
"BSD-2-Clause"
] | 1 | 2018-11-04T21:46:29.000Z | 2018-11-04T21:46:29.000Z | healthy_candies/load/__init__.py | striantafyllouEPFL/healthy-candies | fc7d9e05d54ba207e15d997acea44ff0bf9edb13 | [
"BSD-2-Clause"
] | null | null | null | healthy_candies/load/__init__.py | striantafyllouEPFL/healthy-candies | fc7d9e05d54ba207e15d997acea44ff0bf9edb13 | [
"BSD-2-Clause"
] | null | null | null | from .load import load_data, NUTRI_COLS, load_clean_rel_to_nutri
| 32.5 | 64 | 0.861538 |
bc74af5f799cda766e2f5e64ed34c0e410d241a2 | 1,402 | py | Python | simglucose/sensor/cgm.py | mia-jingyi/simglucose | a90bd8750fce362be91668ed839b3b252bc0d58d | [
"MIT"
] | null | null | null | simglucose/sensor/cgm.py | mia-jingyi/simglucose | a90bd8750fce362be91668ed839b3b252bc0d58d | [
"MIT"
] | null | null | null | simglucose/sensor/cgm.py | mia-jingyi/simglucose | a90bd8750fce362be91668ed839b3b252bc0d58d | [
"MIT"
] | null | null | null | # from .noise_gen import CGMNoiseGenerator
from .noise_gen import CGMNoise
import pandas as pd
import logging
logger = logging.getLogger(__name__)
if __name__ == '__main__':
pass
| 26.961538 | 72 | 0.624108 |
bc7580cf9a167be668d4a125b31c0b817e88571f | 5,731 | py | Python | var/spack/repos/builtin/packages/thepeg/package.py | carlabguillen/spack | 7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2020-10-20T08:57:12.000Z | 2020-10-20T08:57:12.000Z | var/spack/repos/builtin/packages/thepeg/package.py | carlabguillen/spack | 7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 3 | 2022-03-09T09:15:39.000Z | 2022-03-09T09:15:42.000Z | var/spack/repos/builtin/packages/thepeg/package.py | carlabguillen/spack | 7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2021-01-05T20:00:52.000Z | 2021-01-05T20:00:52.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 *
| 55.105769 | 97 | 0.716105 |
bc7679c1660ef9ceb329970fcb693da9107e9ae5 | 9,258 | py | Python | vmca/python/get_cert.py | wfu8/lightwave | cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298 | [
"Apache-2.0"
] | 357 | 2015-04-20T00:16:30.000Z | 2022-03-17T05:34:09.000Z | vmca/python/get_cert.py | wfu8/lightwave | cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298 | [
"Apache-2.0"
] | 38 | 2015-11-19T05:20:53.000Z | 2022-03-31T07:21:59.000Z | vmca/python/get_cert.py | wfu8/lightwave | cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298 | [
"Apache-2.0"
] | 135 | 2015-04-21T15:23:21.000Z | 2022-03-30T11:46:36.000Z | #!/usr/bin/env python
#
# Copyright 2012-2016 VMware, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the License); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | 34.935849 | 89 | 0.625081 |
bc783a7352b8476e222dafa470f894420847e079 | 22,670 | py | Python | sdk/python/pulumi_gcp/securitycenter/notification_config.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 121 | 2018-06-18T19:16:42.000Z | 2022-03-31T06:06:48.000Z | sdk/python/pulumi_gcp/securitycenter/notification_config.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 492 | 2018-06-22T19:41:03.000Z | 2022-03-31T15:33:53.000Z | sdk/python/pulumi_gcp/securitycenter/notification_config.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 43 | 2018-06-19T01:43:13.000Z | 2022-03-23T22:43:37.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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... | 44.714004 | 161 | 0.661226 |
bc7927d63159c18366a26d654024afa30b73946a | 1,893 | py | Python | malib/agents/tabular/q_learning/base_tabular_agent.py | wwxFromTju/malib | 7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2 | [
"MIT"
] | 6 | 2021-05-19T10:25:36.000Z | 2021-12-27T03:30:33.000Z | malib/agents/tabular/q_learning/base_tabular_agent.py | wwxFromTju/malib | 7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2 | [
"MIT"
] | 1 | 2021-05-29T04:51:37.000Z | 2021-05-30T06:18:10.000Z | malib/agents/tabular/q_learning/base_tabular_agent.py | wwxFromTju/malib | 7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2 | [
"MIT"
] | 1 | 2021-06-30T10:53:03.000Z | 2021-06-30T10:53:03.000Z | from abc import ABCMeta, abstractmethod
import numpy as np
| 27.434783 | 88 | 0.590597 |
bc796051d35cf6cd654ce6528d4ed35ac535ec1b | 1,523 | py | Python | 290.word-pattern.py | Lonitch/hackerRank | 84991b8340e725422bc47eec664532cc84a3447e | [
"MIT"
] | null | null | null | 290.word-pattern.py | Lonitch/hackerRank | 84991b8340e725422bc47eec664532cc84a3447e | [
"MIT"
] | null | null | null | 290.word-pattern.py | Lonitch/hackerRank | 84991b8340e725422bc47eec664532cc84a3447e | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=290 lang=python3
#
# [290] Word Pattern
#
# https://leetcode.com/problems/word-pattern/description/
#
# algorithms
# Easy (35.86%)
# Likes: 825
# Dislikes: 113
# Total Accepted: 164K
# Total Submissions: 455.9K
# Testcase Example: '"abba"\n"dog cat cat dog"'
#
# Given a pattern and a stri... | 22.397059 | 74 | 0.61392 |
bc79d0b1cabca396208cd2aeb132525a435758f4 | 705 | py | Python | s1_getting_started/exercise_files/final_exercise/model.py | jaschn/dtu_mlops | 59f404cffc756739433b5ccebb46ef6bfd467436 | [
"Apache-2.0"
] | null | null | null | s1_getting_started/exercise_files/final_exercise/model.py | jaschn/dtu_mlops | 59f404cffc756739433b5ccebb46ef6bfd467436 | [
"Apache-2.0"
] | null | null | null | s1_getting_started/exercise_files/final_exercise/model.py | jaschn/dtu_mlops | 59f404cffc756739433b5ccebb46ef6bfd467436 | [
"Apache-2.0"
] | null | null | null | from torch import nn
| 32.045455 | 97 | 0.438298 |
bc7aed95070ea2718e44219b9db81ddfb927929e | 5,036 | py | Python | musket_core/tests/coders_test.py | dreamflyer/musket_core | 1bdf1b4715a3b5c63bf687799d7b977fdf49053f | [
"MIT"
] | 16 | 2019-09-25T14:58:45.000Z | 2020-04-04T22:03:27.000Z | musket_core/tests/coders_test.py | dreamflyer/musket_core | 1bdf1b4715a3b5c63bf687799d7b977fdf49053f | [
"MIT"
] | 17 | 2019-06-28T06:46:31.000Z | 2020-01-23T10:01:12.000Z | musket_core/tests/coders_test.py | dreamflyer/musket_core | 1bdf1b4715a3b5c63bf687799d7b977fdf49053f | [
"MIT"
] | 2 | 2019-11-22T15:09:18.000Z | 2019-12-17T03:17:25.000Z | import unittest
from musket_core import coders
import numpy as np
import pandas as pd
import os
import math
fl=__file__
fl=os.path.dirname(fl)
| 37.029412 | 86 | 0.538721 |
bc7b31007719919e0de3183e896e2da210eb63a7 | 1,706 | py | Python | manage.py | isijara/zulip | 403f4dafcc71369f3b1143b9f7073cd5d76bf357 | [
"Apache-2.0"
] | 1 | 2019-04-14T20:31:55.000Z | 2019-04-14T20:31:55.000Z | manage.py | hcxiong/zulip | bf22eefedebd50b25f32b22988217c13a89b65d1 | [
"Apache-2.0"
] | 7 | 2020-09-06T14:54:30.000Z | 2022-02-10T18:51:14.000Z | manage.py | hcxiong/zulip | bf22eefedebd50b25f32b22988217c13a89b65d1 | [
"Apache-2.0"
] | 9 | 2019-11-04T18:59:29.000Z | 2022-03-22T17:46:37.000Z | #!/usr/bin/env python3
import os
import sys
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(BASE_DIR)
import scripts.lib.setup_path_on_import
if __name__ == "__main__":
if 'posix' in os.name and os.geteuid() == 0:
print("manage.py should not be run as root. Use `su zulip` to drop ro... | 42.65 | 102 | 0.694607 |
bc7b521791f08dc13fece1c31003d055797c5819 | 2,385 | py | Python | core/scripts/fetch_instructions_specs.py | merwaaan/mr.system | 0b3ff1b1fd726c6fd525a3f03f361dcac678344a | [
"MIT"
] | null | null | null | core/scripts/fetch_instructions_specs.py | merwaaan/mr.system | 0b3ff1b1fd726c6fd525a3f03f361dcac678344a | [
"MIT"
] | null | null | null | core/scripts/fetch_instructions_specs.py | merwaaan/mr.system | 0b3ff1b1fd726c6fd525a3f03f361dcac678344a | [
"MIT"
] | null | null | null | import json, requests
from bs4 import BeautifulSoup
if __name__ == '__main__':
"""
This scripts fetches the contents of a webpage that contains
nicely formatted data about the Z80 opcodes and outputs it
to JSON.
"""
page = fetch()
if page is not None:
opcodes = parse_tables(page)
with open... | 24.84375 | 107 | 0.607547 |
bc7c42367a8432fba7810ae50ee93f6f9fc12d32 | 2,516 | py | Python | unittests/tools/test_intsights_parser.py | M-Rod101/django-DefectDojo | 7b09a00b1a526abaf40455c2ddec16aaa06b16e2 | [
"BSD-3-Clause"
] | 249 | 2016-09-06T21:04:40.000Z | 2018-01-19T15:59:44.000Z | unittests/tools/test_intsights_parser.py | OWASP/django-DefectDojo | c101e47b294863877cd68a82d0cc60f8017b45b1 | [
"BSD-3-Clause"
] | 255 | 2016-09-06T21:36:37.000Z | 2018-01-19T19:57:57.000Z | unittests/tools/test_intsights_parser.py | M-Rod101/django-DefectDojo | 7b09a00b1a526abaf40455c2ddec16aaa06b16e2 | [
"BSD-3-Clause"
] | 152 | 2016-09-06T21:04:54.000Z | 2018-01-18T08:52:24.000Z | from ..dojo_test_case import DojoTestCase
from dojo.models import Test
from dojo.tools.intsights.parser import IntSightsParser
| 38.121212 | 102 | 0.677663 |
bc7fdbab2e2a6960b77a8cd250963e5c2c2a372b | 5,046 | py | Python | tools/testutils.py | sktollman/p4c | 380830f6c26135d1d65e1312e3ba2da628c18145 | [
"Apache-2.0"
] | 1 | 2019-01-01T21:46:03.000Z | 2019-01-01T21:46:03.000Z | tools/testutils.py | cslev/p4c | 008f01ebc4bc0fcada4e674e9916b156427512ca | [
"Apache-2.0"
] | null | null | null | tools/testutils.py | cslev/p4c | 008f01ebc4bc0fcada4e674e9916b156427512ca | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2013-present Barefoot Networks, Inc.
# Copyright 2018 VMware, 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/LIC... | 33.865772 | 78 | 0.630202 |
bc8027a9a53c2f0f832850a598757b1b43c5255c | 6,237 | py | Python | AlgorithmsAndDataStructures/mod2/Heap.py | BootyAss/bmstu | bea202cbdff159d3840335b2a2a5c3bd632a7393 | [
"FSFAP"
] | null | null | null | AlgorithmsAndDataStructures/mod2/Heap.py | BootyAss/bmstu | bea202cbdff159d3840335b2a2a5c3bd632a7393 | [
"FSFAP"
] | null | null | null | AlgorithmsAndDataStructures/mod2/Heap.py | BootyAss/bmstu | bea202cbdff159d3840335b2a2a5c3bd632a7393 | [
"FSFAP"
] | 1 | 2021-09-15T18:39:33.000Z | 2021-09-15T18:39:33.000Z |
cycle = True
heap = Heap()
while cycle:
try:
line = input()
cmd = line.split(' ', 2)
try:
if len(cmd) == 1 and cmd[0] == '':
continue
if len(cmd) == 2 and cmd[0] == '' and cmd[1] == '':
continue
if cmd[0] == 'add':
... | 25.048193 | 99 | 0.467372 |
bc807e3864743112b7b85584b7afbab826c8463a | 2,332 | py | Python | django_comments_xtd/tests/test_api_views.py | Boondockers-Welcome/django-comments-xtd | 8edd68350803bfc351345820ccc4289077918e91 | [
"BSD-2-Clause"
] | 1 | 2021-01-27T03:20:45.000Z | 2021-01-27T03:20:45.000Z | django_comments_xtd/tests/test_api_views.py | Boondockers-Welcome/django-comments-xtd | 8edd68350803bfc351345820ccc4289077918e91 | [
"BSD-2-Clause"
] | null | null | null | django_comments_xtd/tests/test_api_views.py | Boondockers-Welcome/django-comments-xtd | 8edd68350803bfc351345820ccc4289077918e91 | [
"BSD-2-Clause"
] | 1 | 2020-03-24T21:28:31.000Z | 2020-03-24T21:28:31.000Z | from __future__ import unicode_literals
try:
from unittest.mock import patch
except ImportError:
from mock import patch
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.test import TestCase
from django.urls import reverse
from rest_framework.t... | 37.612903 | 77 | 0.677959 |
bc82ef8de803f7a119ffe50ddde0e017fafeacd2 | 16,041 | py | Python | momentumopt/python/momentumopt/kinoptpy/momentum_kinematics_optimizer.py | ferdinand-wood/kino_dynamic_opt | ba6bef170819c55d1d26e40af835a744d1ae663f | [
"BSD-3-Clause"
] | null | null | null | momentumopt/python/momentumopt/kinoptpy/momentum_kinematics_optimizer.py | ferdinand-wood/kino_dynamic_opt | ba6bef170819c55d1d26e40af835a744d1ae663f | [
"BSD-3-Clause"
] | null | null | null | momentumopt/python/momentumopt/kinoptpy/momentum_kinematics_optimizer.py | ferdinand-wood/kino_dynamic_opt | ba6bef170819c55d1d26e40af835a744d1ae663f | [
"BSD-3-Clause"
] | null | null | null | '''
@file momentum_kinematics_optimizer.py
@package momentumopt
@author Brahayam Ponton (brahayam.ponton@tuebingen.mpg.de)
@license License BSD-3-Clause
@copyright Copyright (c) 2019, New York University and Max Planck Gesellschaft.
@date 2019-10-08
'''
import os
import numpy as np
from momentumopt.kinoptpy.qp import... | 41.342784 | 130 | 0.625335 |
bc831b7e95388ec378c7efd07e50c5540c59f285 | 435 | py | Python | gullveig/web/__init__.py | Addvilz/gullveig | 6ac5e66062c1b5ea8ad7c66f69be9e3d99ac0825 | [
"Apache-2.0"
] | 8 | 2020-08-24T14:53:14.000Z | 2021-03-16T03:58:01.000Z | gullveig/web/__init__.py | Addvilz/gullveig | 6ac5e66062c1b5ea8ad7c66f69be9e3d99ac0825 | [
"Apache-2.0"
] | 6 | 2020-08-25T13:19:02.000Z | 2021-02-21T21:55:34.000Z | gullveig/web/__init__.py | Addvilz/gullveig | 6ac5e66062c1b5ea8ad7c66f69be9e3d99ac0825 | [
"Apache-2.0"
] | null | null | null | import logging
from gullveig import bootstrap_default_logger
# Configure default logging
_configure_default_web_logger()
| 22.894737 | 52 | 0.795402 |
bc84db3b22d112c3d8e47827ed44b0cdb57ad39d | 1,482 | py | Python | jupyterhub_http_authenticator/httpauthenticator.py | clockfly/jupterhub_http_authenticator | 88185e4677836129cd1bd15af368b7070103b1bf | [
"BSD-3-Clause"
] | null | null | null | jupyterhub_http_authenticator/httpauthenticator.py | clockfly/jupterhub_http_authenticator | 88185e4677836129cd1bd15af368b7070103b1bf | [
"BSD-3-Clause"
] | null | null | null | jupyterhub_http_authenticator/httpauthenticator.py | clockfly/jupterhub_http_authenticator | 88185e4677836129cd1bd15af368b7070103b1bf | [
"BSD-3-Clause"
] | null | null | null | import json
import urllib
import os
import jupyterhub
from tornado.httpclient import HTTPRequest, AsyncHTTPClient
from traitlets import Unicode
from jupyterhub.auth import Authenticator
from tornado import gen
| 23.52381 | 68 | 0.524966 |
bc85621d3dca3de545ceeff3a1f12920ad9784b4 | 9,912 | py | Python | src/lr_find.py | KushajveerSingh/fastai_without_fastai | 9a7c71b92c49be1e05858dc0e7ce63901c3c1bd2 | [
"MIT"
] | 12 | 2019-03-30T16:43:53.000Z | 2022-03-21T19:49:12.000Z | src/lr_find.py | KushajveerSingh/fastai_without_fastai | 9a7c71b92c49be1e05858dc0e7ce63901c3c1bd2 | [
"MIT"
] | null | null | null | src/lr_find.py | KushajveerSingh/fastai_without_fastai | 9a7c71b92c49be1e05858dc0e7ce63901c3c1bd2 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import numpy as np
import matplotlib.pyplot as plt
# NOT -> ParameterModule
# NOT -> children_and_parameters
# NOT -> flatten_model
# NOT -> lr_range
# NOT -> scheduling functions
# NOT -> SmoothenValue
# YES -> lr_find
# NOT -> plot_lr_find
# NOT TO BE MODIFIED
# NOT TO BE MODIFI... | 36.307692 | 115 | 0.601392 |
bc85ba5181e5203592287503621708b994737b25 | 3,905 | py | Python | SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/lang/cpp/class_types/TestClassTypesDisassembly.py | Polidea/SiriusObfuscator | b0e590d8130e97856afe578869b83a209e2b19be | [
"Apache-2.0"
] | 427 | 2018-05-29T14:21:02.000Z | 2022-03-16T03:17:54.000Z | SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/lang/cpp/class_types/TestClassTypesDisassembly.py | PolideaPlayground/SiriusObfuscator | b0e590d8130e97856afe578869b83a209e2b19be | [
"Apache-2.0"
] | 25 | 2018-07-23T08:34:15.000Z | 2021-11-05T07:13:36.000Z | SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/lang/cpp/class_types/TestClassTypesDisassembly.py | PolideaPlayground/SiriusObfuscator | b0e590d8130e97856afe578869b83a209e2b19be | [
"Apache-2.0"
] | 52 | 2018-07-19T19:57:32.000Z | 2022-03-11T16:05:38.000Z | """
Test the lldb disassemble command on each call frame when stopped on C's ctor.
"""
from __future__ import print_function
import os
import time
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
| 38.663366 | 92 | 0.56338 |
bc87838b315ca1f64fa986f62a70ee610e20d306 | 1,116 | py | Python | reservedwords.py | irinaid/MAlice | 02740d661020866c3927b9ee7ee4523aaaafcb7e | [
"MIT"
] | 1 | 2021-04-25T22:53:36.000Z | 2021-04-25T22:53:36.000Z | reservedwords.py | irinaid/MAlice | 02740d661020866c3927b9ee7ee4523aaaafcb7e | [
"MIT"
] | null | null | null | reservedwords.py | irinaid/MAlice | 02740d661020866c3927b9ee7ee4523aaaafcb7e | [
"MIT"
] | null | null | null | '''
All the reserved, individual words used in MAlice.
'''
A = "a"
ALICE = "Alice"
AND = "and"
ATE = "ate"
BECAME = "became"
BECAUSE = "because"
BUT = "but"
CLOSED = "closed"
COMMA = ","
CONTAINED = "contained"
DOT = "."
DRANK = "drank"
EITHER = "either"
ENOUGH = "enough"
EVENTUALLY = "eventually"
FOUND = "found"
H... | 21.056604 | 338 | 0.638889 |
bc88724609a6f077241f73613153365855b09321 | 853 | py | Python | leetcode/0057_Insert_Interval/result.py | theck17/notes | f32f0f4b8f821b1ed38d173ef0913efddd094b91 | [
"MIT"
] | null | null | null | leetcode/0057_Insert_Interval/result.py | theck17/notes | f32f0f4b8f821b1ed38d173ef0913efddd094b91 | [
"MIT"
] | null | null | null | leetcode/0057_Insert_Interval/result.py | theck17/notes | f32f0f4b8f821b1ed38d173ef0913efddd094b91 | [
"MIT"
] | null | null | null | # !/usr/bin/env python3
# Author: C.K
# Email: theck17@163.com
# DateTime:2021-04-12 18:35:15
# Description:
import os
import sys
if __name__ == "__main__":
pass
| 24.371429 | 80 | 0.534584 |
bc889aea13c53b5ac47e25b4727f37433f19b834 | 322 | py | Python | src/pymortests/benchmarks.py | TiKeil/pymor | 5c6b3b6e1714b5ede11ce7cf03399780ab29d252 | [
"Unlicense"
] | 1 | 2021-08-17T15:55:12.000Z | 2021-08-17T15:55:12.000Z | src/pymortests/benchmarks.py | TreeerT/pymor | e8b18d2d4c4b5998f0bd84f6728e365e0693b753 | [
"Unlicense"
] | 4 | 2022-03-17T10:07:38.000Z | 2022-03-30T12:41:06.000Z | src/pymortests/benchmarks.py | TreeerT/pymor | e8b18d2d4c4b5998f0bd84f6728e365e0693b753 | [
"Unlicense"
] | null | null | null | # This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2020 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
from pymortests.base import runmodule
if __name__ == "__main__":
runmodule(filename=__file__... | 32.2 | 77 | 0.76087 |
bc89b98301ba0f533627b829ae7b31f9ab29c245 | 756 | py | Python | storage3/_sync/client.py | anand2312/storage-py | 75c9c43ea373cb58970255b8e7438c2ec67e7f25 | [
"MIT"
] | null | null | null | storage3/_sync/client.py | anand2312/storage-py | 75c9c43ea373cb58970255b8e7438c2ec67e7f25 | [
"MIT"
] | null | null | null | storage3/_sync/client.py | anand2312/storage-py | 75c9c43ea373cb58970255b8e7438c2ec67e7f25 | [
"MIT"
] | null | null | null | from ..utils import SyncClient, __version__
from .bucket import SyncStorageBucketAPI
from .file_api import SyncBucketProxy
__all__ = [
"SyncStorageClient",
]
| 26.068966 | 78 | 0.613757 |
bc8a0406013c9abeb99153a42725a7e4225fc35e | 1,755 | py | Python | repo/script.module.liveresolver/lib/js2py/translators/__init__.py | Hades01/Addons | 710da97ac850197498a3cd64be1811c593610add | [
"Apache-2.0"
] | 3 | 2020-03-03T13:21:44.000Z | 2021-07-21T09:53:31.000Z | repo/script.module.liveresolver/lib/js2py/translators/__init__.py | Hades01/Addons | 710da97ac850197498a3cd64be1811c593610add | [
"Apache-2.0"
] | null | null | null | repo/script.module.liveresolver/lib/js2py/translators/__init__.py | Hades01/Addons | 710da97ac850197498a3cd64be1811c593610add | [
"Apache-2.0"
] | 2 | 2020-04-01T22:11:12.000Z | 2020-05-07T23:54:52.000Z | # The MIT License
#
# Copyright 2014, 2015 Piotr Dabkowski
#
# 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, modif... | 45 | 127 | 0.764672 |
bc8acb8ede34bacdf376a2fc95f5b2c7c78ede61 | 141,721 | py | Python | src/test/python/test_scc_pacs.py | xchange11/ttconv-1 | 6e67172af126fa0e90690044848f300c0173715c | [
"BSD-2-Clause"
] | 66 | 2020-09-25T11:38:28.000Z | 2022-03-23T15:15:34.000Z | src/test/python/test_scc_pacs.py | xchange11/ttconv-1 | 6e67172af126fa0e90690044848f300c0173715c | [
"BSD-2-Clause"
] | 217 | 2020-09-22T22:45:22.000Z | 2022-03-31T23:02:15.000Z | src/test/python/test_scc_pacs.py | xchange11/ttconv-1 | 6e67172af126fa0e90690044848f300c0173715c | [
"BSD-2-Clause"
] | 5 | 2020-09-25T09:24:17.000Z | 2021-08-08T20:52:26.000Z | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright (c) 2020, Sandflow Consulting LLC
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, ... | 87.374229 | 129 | 0.689333 |
bc8adf2af330cf7308b0b0e25463ed5a44b45099 | 1,484 | py | Python | azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom.py | NMijat1024/azure-sdk-for-python | c49e1d6d797dceaca81813cafb1a486d67185182 | [
"MIT"
] | 1 | 2022-03-30T22:39:15.000Z | 2022-03-30T22:39:15.000Z | azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom.py | NMijat1024/azure-sdk-for-python | c49e1d6d797dceaca81813cafb1a486d67185182 | [
"MIT"
] | 54 | 2016-03-25T17:25:01.000Z | 2018-10-22T17:27:54.000Z | azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom.py | NMijat1024/azure-sdk-for-python | c49e1d6d797dceaca81813cafb1a486d67185182 | [
"MIT"
] | 2 | 2017-01-20T18:25:46.000Z | 2017-05-12T21:31:47.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 35.333333 | 76 | 0.6031 |
bc8c55932d28aa8c9253fefe76b11ab1d6dbc13a | 1,886 | py | Python | distance_torch_no_compile/chamfer.py | nicolalandro/softpool | ca77161ab70e5fe6c6505dc40f448bd8e1d78a48 | [
"Apache-2.0"
] | null | null | null | distance_torch_no_compile/chamfer.py | nicolalandro/softpool | ca77161ab70e5fe6c6505dc40f448bd8e1d78a48 | [
"Apache-2.0"
] | null | null | null | distance_torch_no_compile/chamfer.py | nicolalandro/softpool | ca77161ab70e5fe6c6505dc40f448bd8e1d78a48 | [
"Apache-2.0"
] | null | null | null | import torch
def expanded_pairwise_distances(x, y):
'''
Input: x is a bxNxd matrix
y is an optional bxMxd matirx
Output: dist is a bxNxM matrix where dist[i,j] is the square norm between x[i,:] and y[j,:]
if y is not given then use 'y=x'.
i.e. dist[i,j] = ||x[i,:]-y[j,:]||^2
... | 27.735294 | 104 | 0.507423 |
bc8c6ccfc24c9f2c6b892349f506c390ec4d676f | 8,400 | py | Python | isiscb/curation/authority_views/relation_views.py | crispzips/IsisCB | 72f5ad47bbc2c615f995df148f5b86550835efdb | [
"MIT"
] | 4 | 2016-01-25T20:35:33.000Z | 2020-04-07T15:39:52.000Z | isiscb/curation/authority_views/relation_views.py | crispzips/IsisCB | 72f5ad47bbc2c615f995df148f5b86550835efdb | [
"MIT"
] | 41 | 2015-08-19T17:34:41.000Z | 2022-03-11T23:19:01.000Z | isiscb/curation/authority_views/relation_views.py | crispzips/IsisCB | 72f5ad47bbc2c615f995df148f5b86550835efdb | [
"MIT"
] | 2 | 2020-11-25T20:18:18.000Z | 2021-06-24T15:15:41.000Z | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse, QueryDict #, HttpResponseForbidden, Http404, , JsonResponse
from django.shortcuts import get_obj... | 39.810427 | 133 | 0.68619 |
bc8efe8d75934b61443e05664bf142fdc9790c04 | 6,351 | py | Python | run_tests.py | silx-kit/silx | 360f890a617676a92f0bed6a28b718d09e70ec03 | [
"CC0-1.0",
"MIT"
] | 94 | 2016-03-04T17:25:53.000Z | 2022-03-18T18:05:23.000Z | run_tests.py | silx-kit/silx | 360f890a617676a92f0bed6a28b718d09e70ec03 | [
"CC0-1.0",
"MIT"
] | 2,841 | 2016-01-21T09:06:49.000Z | 2022-03-18T14:53:56.000Z | run_tests.py | silx-kit/silx | 360f890a617676a92f0bed6a28b718d09e70ec03 | [
"CC0-1.0",
"MIT"
] | 71 | 2015-09-30T08:35:35.000Z | 2022-03-16T07:16:28.000Z | #!/usr/bin/env python3
# coding: utf8
# /*##########################################################################
#
# Copyright (c) 2015-2021 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files ... | 34.895604 | 101 | 0.668714 |
bc8faa6c50d7d1921cb25f63e39e57127594a8e6 | 7,072 | py | Python | src/robot/utils/error.py | vprashanth777/Selenium | b3c48b75e73322891bb697f251b32a9a9d8b4dbe | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-03-10T11:10:20.000Z | 2018-03-10T11:10:20.000Z | src/robot/utils/error.py | vprashanth777/Selenium | b3c48b75e73322891bb697f251b32a9a9d8b4dbe | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/robot/utils/error.py | vprashanth777/Selenium | b3c48b75e73322891bb697f251b32a9a9d8b4dbe | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright 2008-2015 Nokia Solutions and Networks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 34.330097 | 78 | 0.662472 |
bc90147c820b8957a1562bdb12623216308ec658 | 308 | py | Python | dedupe/_init.py | neozhangthe1/dedupe | aff99e6bd027291eecfb78eae08aa73877f4fff0 | [
"MIT"
] | null | null | null | dedupe/_init.py | neozhangthe1/dedupe | aff99e6bd027291eecfb78eae08aa73877f4fff0 | [
"MIT"
] | null | null | null | dedupe/_init.py | neozhangthe1/dedupe | aff99e6bd027291eecfb78eae08aa73877f4fff0 | [
"MIT"
] | null | null | null | from dedupe.api import StaticDedupe, Dedupe
from dedupe.api import StaticRecordLink, RecordLink
from dedupe.api import StaticGazetteer, Gazetteer
from dedupe.core import randomPairs, randomPairsMatch, frozendict
from dedupe.convenience import consoleLabel, trainingDataDedupe, trainingDataLink, canonicalize
| 51.333333 | 95 | 0.866883 |
bc926bb3d7c2f20a37f4cae0b86f7455ebdb913c | 1,430 | py | Python | scalability/tests/test_misc.py | ggreif/ic | ac56ec91f077c00d59eea3f73f51e14a1b3ea882 | [
"Apache-2.0"
] | 941 | 2021-05-10T08:14:14.000Z | 2022-03-31T11:40:24.000Z | scalability/tests/test_misc.py | ggreif/ic | ac56ec91f077c00d59eea3f73f51e14a1b3ea882 | [
"Apache-2.0"
] | 3 | 2022-02-16T12:24:20.000Z | 2022-03-23T12:05:41.000Z | scalability/tests/test_misc.py | ggreif/ic | ac56ec91f077c00d59eea3f73f51e14a1b3ea882 | [
"Apache-2.0"
] | 122 | 2021-05-10T08:21:23.000Z | 2022-03-25T20:34:12.000Z | import unittest
from unittest import TestCase
from misc import verify
if __name__ == "__main__":
unittest.main()
| 43.333333 | 110 | 0.735664 |
bc92877f15ab8c1e45e6b3f0628b4c9b556c0100 | 4,271 | py | Python | mars/tensor/fft/ifft.py | tomzhang/mars-1 | 6f1d85e37eb1b383251314cb0ba13e06288af03d | [
"Apache-2.0"
] | 2 | 2019-03-29T04:11:10.000Z | 2020-07-08T10:19:54.000Z | mars/tensor/fft/ifft.py | tomzhang/mars-1 | 6f1d85e37eb1b383251314cb0ba13e06288af03d | [
"Apache-2.0"
] | null | null | null | mars/tensor/fft/ifft.py | tomzhang/mars-1 | 6f1d85e37eb1b383251314cb0ba13e06288af03d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 1999-2020 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-... | 35.890756 | 91 | 0.657926 |
bc936c9856eecc335b0cca94f1df34512def1882 | 754 | py | Python | Physics250-ME29/magAverageEMFinCoil.py | illusion173/Physics250 | 69f2ffdb8af013e8b0739779861c1455b579ddaf | [
"MIT"
] | null | null | null | Physics250-ME29/magAverageEMFinCoil.py | illusion173/Physics250 | 69f2ffdb8af013e8b0739779861c1455b579ddaf | [
"MIT"
] | null | null | null | Physics250-ME29/magAverageEMFinCoil.py | illusion173/Physics250 | 69f2ffdb8af013e8b0739779861c1455b579ddaf | [
"MIT"
] | null | null | null | import numpy as np
import math
extraNumber = 4 * math.pi * pow(10,-7)
avgEMF()
| 29 | 69 | 0.624668 |
bc93ed322f15833ada38ade26d0df82b04900ca0 | 1,908 | py | Python | bench_cupy.py | zhouxzh/Jetson_nano_stft_benchmark | ffa97984f95b9862ac2a10b8459bb7ef241c6c72 | [
"MIT"
] | null | null | null | bench_cupy.py | zhouxzh/Jetson_nano_stft_benchmark | ffa97984f95b9862ac2a10b8459bb7ef241c6c72 | [
"MIT"
] | null | null | null | bench_cupy.py | zhouxzh/Jetson_nano_stft_benchmark | ffa97984f95b9862ac2a10b8459bb7ef241c6c72 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Computes the spectrogram of a test signal using cupy and cuFFT.
Author: Jan Schlter
"""
import sys
import os
import timeit
import numpy as np
import cupy as cp
INPUT_ON_GPU = True
OUTPUT_ON_GPU = True
from testfile import make_test_signal
def spectrogram(signal,... | 26.5 | 92 | 0.649371 |
bc945bd064cef2e58f31004f5a02ca29c75f9558 | 1,597 | py | Python | dataxHWSp2021/HW3-4_NeuralNet/student/tests/q2b3.py | UCBerkeley-SCET/DataX-Berkeley | f912d22c838b511d3ada4ecfa3548afd80437b74 | [
"Apache-2.0"
] | 28 | 2020-06-15T23:53:36.000Z | 2022-03-19T09:27:02.000Z | dataxHWSp2021/HW3-4_NeuralNet/student/tests/q2b3.py | UCBerkeley-SCET/DataX-Berkeley | f912d22c838b511d3ada4ecfa3548afd80437b74 | [
"Apache-2.0"
] | 4 | 2020-06-24T22:20:31.000Z | 2022-02-28T01:37:36.000Z | dataxHWSp2021/HW3-4_NeuralNet/student/tests/q2b3.py | UCBerkeley-SCET/DataX-Berkeley | f912d22c838b511d3ada4ecfa3548afd80437b74 | [
"Apache-2.0"
] | 78 | 2020-06-19T09:41:01.000Z | 2022-02-05T00:13:29.000Z | test = { 'name': 'q2b3',
'points': 5,
'suites': [ { 'cases': [ { 'code': '>>> '
'histories_2b[2].model.count_params()\n'
'119260',
'hidden': False,
... | 55.068966 | 102 | 0.21603 |
bc96f541ad15eaf540c8e8c9a48800ebc1c0301c | 1,427 | py | Python | geotrek/appconfig.py | Cynthia-Borot-PNE/Geotrek-admin | abd9ca8569a7e35ef7473f5b52731b1c78668754 | [
"BSD-2-Clause"
] | null | null | null | geotrek/appconfig.py | Cynthia-Borot-PNE/Geotrek-admin | abd9ca8569a7e35ef7473f5b52731b1c78668754 | [
"BSD-2-Clause"
] | null | null | null | geotrek/appconfig.py | Cynthia-Borot-PNE/Geotrek-admin | abd9ca8569a7e35ef7473f5b52731b1c78668754 | [
"BSD-2-Clause"
] | null | null | null | from django.apps import AppConfig
from django.contrib.admin.apps import AdminConfig
from django.contrib.auth.apps import AuthConfig
from django.contrib.contenttypes.apps import ContentTypesConfig
from django.contrib.sessions.apps import SessionsConfig
from django.db.models.signals import post_migrate
from django_celery... | 27.442308 | 95 | 0.775753 |
bc96fd29e9d6cb6eb71dd73f5f39dcfd2bcd44f8 | 11,604 | py | Python | dtr_code/shared/run_torch_trial.py | merrymercy/dtr-prototype | bf40e182453a7d8d23581ea68f32a9d7d2037d62 | [
"Linux-OpenIB"
] | 1 | 2021-08-02T02:42:58.000Z | 2021-08-02T02:42:58.000Z | dtr_code/shared/run_torch_trial.py | merrymercy/dtr-prototype | bf40e182453a7d8d23581ea68f32a9d7d2037d62 | [
"Linux-OpenIB"
] | null | null | null | dtr_code/shared/run_torch_trial.py | merrymercy/dtr-prototype | bf40e182453a7d8d23581ea68f32a9d7d2037d62 | [
"Linux-OpenIB"
] | 1 | 2021-08-05T08:58:53.000Z | 2021-08-05T08:58:53.000Z | """
To avoid any issues of memory hanging around between inputs,
we run each input as a separate process.
A little ugly but effective
"""
import gc
import glob
import json
import os
import random
import time
import numpy as np
import torch
from common import invoke_main, read_json, write_json, prepare_out_file, chec... | 35.057402 | 170 | 0.635384 |
bc986ff7e618db67d5b1902a0fdfeecd1595ea88 | 1,482 | py | Python | pythonTools/downloadPDBsInList.py | rsanchezgarc/BIPSPI | e155fee0836084ea02bc9919c58817d26a4a13e5 | [
"Apache-2.0"
] | 5 | 2020-01-21T21:11:49.000Z | 2022-02-06T19:55:28.000Z | pythonTools/downloadPDBsInList.py | rsanchezgarc/BIPSPI | e155fee0836084ea02bc9919c58817d26a4a13e5 | [
"Apache-2.0"
] | null | null | null | pythonTools/downloadPDBsInList.py | rsanchezgarc/BIPSPI | e155fee0836084ea02bc9919c58817d26a4a13e5 | [
"Apache-2.0"
] | 3 | 2018-05-25T14:57:36.000Z | 2022-01-27T12:53:41.000Z | import sys, os
from subprocess import call
try:
from downloadPdb import downloadPDB
except ImportError:
from .downloadPdb import downloadPDB
pdbListFile="/home/rsanchez/Tesis/rriPredMethod/data/joanDimers/117_dimers_list.tsv"
outPath="/home/rsanchez/Tesis/rriPredMethod/data/joanDimers/pdbFiles/rawPDBs"
USE_BIO_... | 36.146341 | 129 | 0.702429 |
bc98a22d0cd11d65a7d45c78d01ce4ed45420116 | 1,935 | py | Python | code/python3/search_facets.py | hsethi2709/xapian-docsprint | a872c83fef6fde13efce67fd5563d43514c7444a | [
"MIT"
] | 47 | 2015-01-20T15:38:41.000Z | 2022-02-15T21:03:50.000Z | code/python3/search_facets.py | hsethi2709/xapian-docsprint | a872c83fef6fde13efce67fd5563d43514c7444a | [
"MIT"
] | 16 | 2015-06-09T16:12:50.000Z | 2020-02-05T06:40:18.000Z | code/python3/search_facets.py | hsethi2709/xapian-docsprint | a872c83fef6fde13efce67fd5563d43514c7444a | [
"MIT"
] | 56 | 2015-01-20T15:38:44.000Z | 2022-03-03T18:13:39.000Z | #!/usr/bin/env python
import json
import sys
import xapian
import support
### End of example code.
if len(sys.argv) < 3:
print("Usage: %s DBPATH QUERYTERM..." % sys.argv[0])
sys.exit(1)
search(dbpath = sys.argv[1], querystring = " ".join(sys.argv[2:]))
| 31.209677 | 69 | 0.649612 |
bc98ed1d916dea38c19eaadce5f09692d5d10eeb | 1,272 | py | Python | iconcollections/serializers.py | plrthink/myicons | 62475e118e2c7404d88146ea5d67961418d7f8ab | [
"BSD-2-Clause"
] | 83 | 2015-01-02T04:50:43.000Z | 2021-06-06T03:26:55.000Z | iconcollections/serializers.py | plrthink/myicons | 62475e118e2c7404d88146ea5d67961418d7f8ab | [
"BSD-2-Clause"
] | 2 | 2015-01-04T11:25:20.000Z | 2015-01-05T11:13:37.000Z | iconcollections/serializers.py | plrthink/myicons | 62475e118e2c7404d88146ea5d67961418d7f8ab | [
"BSD-2-Clause"
] | 20 | 2015-01-15T10:00:09.000Z | 2019-11-06T07:25:59.000Z | import re
from rest_framework import serializers
from .models import Collection, CollectionIcon
| 27.06383 | 81 | 0.616352 |
bc99e84c9e8d7aa99d673f47ef51acfd45692fba | 1,738 | py | Python | Python/partition-to-k-equal-sum-subsets.py | sm2774us/leetcode_interview_prep_2021 | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | [
"Fair"
] | null | null | null | Python/partition-to-k-equal-sum-subsets.py | sm2774us/leetcode_interview_prep_2021 | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | [
"Fair"
] | null | null | null | Python/partition-to-k-equal-sum-subsets.py | sm2774us/leetcode_interview_prep_2021 | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | [
"Fair"
] | null | null | null | # Time: O(n*2^n)
# Space: O(2^n)
# Time: O(k^(n-k) * k!)
# Space: O(n)
# DFS solution with pruning.
| 30.491228 | 87 | 0.468354 |
bc9aea616fee38b1a73a79e690091369c909ef06 | 737 | py | Python | var/spack/repos/builtin/packages/aspell/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/aspell/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-11-09T20:28:40.000Z | 2022-03-15T03:26:33.000Z | var/spack/repos/builtin/packages/aspell/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2019-02-08T20:37:20.000Z | 2019-03-31T15:19:26.000Z | # Copyright 2013-2022 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.package import *
# See also: AspellDictPackage
| 32.043478 | 98 | 0.738128 |
bc9b38aa93978a9c5a2ff6d24ac4f1e6be8b4faa | 1,888 | py | Python | third_party_package/RDKit_2015_03_1/rdkit/ML/Descriptors/UnitTestParser.py | Ivy286/cluster_basedfps | 7fc216537f570436f008ea567c137d03ba2b6d81 | [
"WTFPL"
] | 9 | 2019-04-23T01:46:12.000Z | 2021-08-16T07:07:12.000Z | third_party_package/RDKit_2015_03_1/rdkit/ML/Descriptors/UnitTestParser.py | Ivy286/cluster_basedfps | 7fc216537f570436f008ea567c137d03ba2b6d81 | [
"WTFPL"
] | null | null | null | third_party_package/RDKit_2015_03_1/rdkit/ML/Descriptors/UnitTestParser.py | Ivy286/cluster_basedfps | 7fc216537f570436f008ea567c137d03ba2b6d81 | [
"WTFPL"
] | 5 | 2016-09-21T03:47:48.000Z | 2019-07-30T22:17:35.000Z | #
# Copyright (C) 2001 greg Landrum
#
""" unit testing code for compound descriptors
"""
from __future__ import print_function
import unittest
import Parser
from rdkit.six.moves import xrange
if __name__ == '__main__':
suite = TestSuite()
unittest.TextTestRunner().run(suite)
| 35.622642 | 101 | 0.64036 |
bc9c8f24e080e4c64950de33e4962b6b2e44ede2 | 1,575 | py | Python | setup.py | maciek3000/data_dashboard | 1b573b674d37f57ae7e8bbfb1e83c801b488dfd6 | [
"MIT"
] | 8 | 2021-05-03T04:06:15.000Z | 2022-01-15T16:27:42.000Z | setup.py | maciek3000/data_dashboard | 1b573b674d37f57ae7e8bbfb1e83c801b488dfd6 | [
"MIT"
] | null | null | null | setup.py | maciek3000/data_dashboard | 1b573b674d37f57ae7e8bbfb1e83c801b488dfd6 | [
"MIT"
] | 3 | 2021-05-19T17:31:18.000Z | 2021-06-19T12:24:01.000Z | from setuptools import setup, find_packages
import pathlib
here = pathlib.Path(__file__).parent.resolve()
long_description = (here / "readme.md").read_text(encoding="utf-8")
setup(
name="data_dashboard",
version="0.1.1",
description="Dashboard to explore the data and to create baseline Machine Learning m... | 32.142857 | 95 | 0.615238 |
bc9d746d95215d78b546409456d7b42ad25142a0 | 5,577 | py | Python | test/e2e/tests/test_instance.py | acornett21/ack-ec2-controller | aa747d981239e41ae4254a9b31ee0f20ac882c85 | [
"Apache-2.0"
] | null | null | null | test/e2e/tests/test_instance.py | acornett21/ack-ec2-controller | aa747d981239e41ae4254a9b31ee0f20ac882c85 | [
"Apache-2.0"
] | null | null | null | test/e2e/tests/test_instance.py | acornett21/ack-ec2-controller | aa747d981239e41ae4254a9b31ee0f20ac882c85 | [
"Apache-2.0"
] | null | null | null | # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may
# not use this file except in compliance with the License. A copy of the
# License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanyin... | 33.8 | 95 | 0.684777 |
bc9f42407dc824808c93da43b669882c77d6d9f4 | 9,461 | py | Python | web/app/forms.py | Devidence7/Break | f961b1b46977c86739ff651fe81a1d9fff98a8e1 | [
"MIT"
] | null | null | null | web/app/forms.py | Devidence7/Break | f961b1b46977c86739ff651fe81a1d9fff98a8e1 | [
"MIT"
] | null | null | null | web/app/forms.py | Devidence7/Break | f961b1b46977c86739ff651fe81a1d9fff98a8e1 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import Form, StringField, PasswordField, BooleanField, SubmitField, IntegerField, validators, FileField, \
MultipleFileField, SelectField, RadioField, HiddenField, DecimalField, TextAreaField
from wtforms.fields.html5 import DateField
from wtforms.validators import DataR... | 48.025381 | 323 | 0.649931 |
bc9fd661a260bba8109c66590275e9d7c9b1094c | 2,774 | py | Python | hello.py | LMiceOrg/postdoc-voting | 091fd6caa120f7c5aae600c0a492a185ec10e9d6 | [
"CC0-1.0",
"MIT"
] | null | null | null | hello.py | LMiceOrg/postdoc-voting | 091fd6caa120f7c5aae600c0a492a185ec10e9d6 | [
"CC0-1.0",
"MIT"
] | null | null | null | hello.py | LMiceOrg/postdoc-voting | 091fd6caa120f7c5aae600c0a492a185ec10e9d6 | [
"CC0-1.0",
"MIT"
] | null | null | null | #coding: utf-8
import sys
import os
import asyncio
import websockets
import json
import socket
import xlrd
#global vars
phd_data = None
pro_data = None
#json
port = 5678
if len(sys.argv) >=2:
port = sys.argv[1]
ws_server = websockets.serve(main_logic, '0.0.0.0', port)
asyncio.get_event_loop().run_until_compl... | 20.248175 | 60 | 0.519466 |
bca0727b76dc54909be0bf60b6d636ec8f539927 | 2,518 | py | Python | runtime/Python3/src/antlr4/dfa/DFASerializer.py | maximmenshikov/antlr4 | 5ad8c150ae6b9a34a92df1f59606516fe58cb65f | [
"BSD-3-Clause"
] | 11,811 | 2015-01-01T02:40:39.000Z | 2022-03-31T16:11:19.000Z | runtime/Python3/src/antlr4/dfa/DFASerializer.py | maximmenshikov/antlr4 | 5ad8c150ae6b9a34a92df1f59606516fe58cb65f | [
"BSD-3-Clause"
] | 2,364 | 2015-01-01T00:29:19.000Z | 2022-03-31T21:26:34.000Z | runtime/Python3/src/antlr4/dfa/DFASerializer.py | maximmenshikov/antlr4 | 5ad8c150ae6b9a34a92df1f59606516fe58cb65f | [
"BSD-3-Clause"
] | 3,240 | 2015-01-05T02:34:15.000Z | 2022-03-30T18:26:29.000Z | #
# Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
# Use of this file is governed by the BSD 3-clause license that
# can be found in the LICENSE.txt file in the project root.
#/
# A DFA walker that knows how to dump them to serialized strings.#/
from io import StringIO
from antlr4 import DFA
from antl... | 34.027027 | 113 | 0.548451 |
bca253db9d9aae8a5131355cc2fd801c42bb88f2 | 13,242 | py | Python | sw/calibrate.py | microsoft/moabian | db95844103faedb3788abb5f37d0f37a771a9455 | [
"MIT"
] | 13 | 2020-09-17T19:54:30.000Z | 2022-03-01T00:25:11.000Z | sw/calibrate.py | microsoft/moabian | db95844103faedb3788abb5f37d0f37a771a9455 | [
"MIT"
] | 27 | 2020-09-21T23:51:50.000Z | 2022-03-25T19:45:16.000Z | sw/calibrate.py | microsoft/moabian | db95844103faedb3788abb5f37d0f37a771a9455 | [
"MIT"
] | 13 | 2020-11-30T19:01:38.000Z | 2021-11-10T11:28:36.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
"""
Calibration Controller
Performs calibration for hue, center of camera position, and servo offsets
"""
import os
import cv2
import time
import json
import argparse
import datetime
import numpy as np
import logging as log
from env import Moa... | 32.696296 | 105 | 0.655264 |
bca450dae1b4675ac1d585a61880a16b6a3d235e | 3,739 | py | Python | marketing/tests_celery_tasks.py | renzyndrome/lits-crm | 32daea8c76f91780b8cc8c3f107d04df606c0ec8 | [
"MIT"
] | 1 | 2021-03-01T12:07:10.000Z | 2021-03-01T12:07:10.000Z | marketing/tests_celery_tasks.py | renzyndrome/lits-crm | 32daea8c76f91780b8cc8c3f107d04df606c0ec8 | [
"MIT"
] | null | null | null | marketing/tests_celery_tasks.py | renzyndrome/lits-crm | 32daea8c76f91780b8cc8c3f107d04df606c0ec8 | [
"MIT"
] | 1 | 2021-12-09T09:38:50.000Z | 2021-12-09T09:38:50.000Z | from datetime import datetime, timedelta
from django.test import TestCase
from django.test.utils import override_settings
from marketing.tasks import (
delete_multiple_contacts_tasks,
list_all_bounces_unsubscribes,
run_all_campaigns,
run_campaign,
send_campaign_email_to_admin_contact,
send_sch... | 29.912 | 58 | 0.502006 |
bca568d5e71e781c0b945807208117a83879f72f | 263 | py | Python | doc's/3-labels_and_titles.py | andreluispy/py2html | 227f3225632b467c95131b841d6ffab4c5202e44 | [
"MIT"
] | null | null | null | doc's/3-labels_and_titles.py | andreluispy/py2html | 227f3225632b467c95131b841d6ffab4c5202e44 | [
"MIT"
] | null | null | null | doc's/3-labels_and_titles.py | andreluispy/py2html | 227f3225632b467c95131b841d6ffab4c5202e44 | [
"MIT"
] | null | null | null | from py2html.main import *
page = web()
page.create()
# Header Parameters
# text = header text
# n = title level
page.header(text='My Site', n=1)
# Label Parameters
# text = label text
# color = label color
page.label(text='', color='')
page.compile() | 16.4375 | 32 | 0.657795 |
bca56f1f07a7efd89750413292d60e6212055e4a | 1,022 | py | Python | JorGpi/tests/test_pickup.py | adujovic/JorG | 15062984e837a938819e548c83f6f5414fa47103 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:05:03.000Z | 2020-07-22T11:05:03.000Z | JorGpi/tests/test_pickup.py | adujovic/JorG | 15062984e837a938819e548c83f6f5414fa47103 | [
"BSD-3-Clause"
] | 2 | 2019-06-07T11:53:48.000Z | 2019-06-24T08:20:25.000Z | JorGpi/tests/test_pickup.py | adujovic/JorG | 15062984e837a938819e548c83f6f5414fa47103 | [
"BSD-3-Clause"
] | 3 | 2019-07-01T12:38:06.000Z | 2022-02-01T21:38:12.000Z | import unittest
from JorGpi.pickup.pickup import SmartPickUp,Reference,CommandLineOptions
| 37.851852 | 92 | 0.682975 |
bca5cc541dfab73d45981c6f120eb783e0579f49 | 131 | py | Python | jwt_auth/admin.py | alaraayan/todo-backend | 37e46b6789012c2d64a39f6d2429b1ae893dba37 | [
"CC-BY-3.0"
] | null | null | null | jwt_auth/admin.py | alaraayan/todo-backend | 37e46b6789012c2d64a39f6d2429b1ae893dba37 | [
"CC-BY-3.0"
] | null | null | null | jwt_auth/admin.py | alaraayan/todo-backend | 37e46b6789012c2d64a39f6d2429b1ae893dba37 | [
"CC-BY-3.0"
] | null | null | null | from django.contrib import admin
from django.contrib.auth import get_user_model
User = get_user_model()
admin.site.register(User)
| 21.833333 | 46 | 0.824427 |
bca685ecc21d97e8e24f16ef46f6aaabe24a9d13 | 21,795 | py | Python | spotseeker_server/test/search/distance.py | uw-it-aca/spotseeker_server | 1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c | [
"Apache-2.0"
] | 5 | 2015-03-12T00:36:33.000Z | 2022-02-24T16:41:25.000Z | spotseeker_server/test/search/distance.py | uw-it-aca/spotseeker_server | 1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c | [
"Apache-2.0"
] | 133 | 2016-02-03T23:54:45.000Z | 2022-03-30T21:33:58.000Z | spotseeker_server/test/search/distance.py | uw-it-aca/spotseeker_server | 1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c | [
"Apache-2.0"
] | 6 | 2015-01-07T23:21:15.000Z | 2017-12-07T08:26:33.000Z | # Copyright 2021 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from django.test import TestCase
from django.conf import settings
from django.test.client import Client
from spotseeker_server.models import Spot
import simplejson as json
from decimal import *
from django.test.utils import override... | 31.864035 | 79 | 0.501491 |
bca72e22e6e8fe1739abb6f05b2ae3bdddd3d4b0 | 1,807 | py | Python | get_active_LSPs.py | JNPRAutomate/northstar_SDN_controller_automation | 09fb5b84eaa1cf939268b542239c9923520d99d3 | [
"MIT"
] | 3 | 2019-03-18T17:27:11.000Z | 2020-01-22T15:39:18.000Z | get_active_LSPs.py | ksator/northstar_SDN_controller_automation | b78b304194bb64bc14a9c96235ae0792c974f1af | [
"MIT"
] | null | null | null | get_active_LSPs.py | ksator/northstar_SDN_controller_automation | b78b304194bb64bc14a9c96235ae0792c974f1af | [
"MIT"
] | 2 | 2018-03-12T21:13:52.000Z | 2020-11-20T23:16:31.000Z | # this python script makes a rest call to Juniper Northstar to get active LSPs
# usage: python get_active_LSPs.py
import json
import requests
from requests.auth import HTTPBasicAuth
from pprint import pprint
import yaml
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3... | 37.645833 | 116 | 0.753735 |
bca98a1ce3fff11966f586aae11d75f7d4194f73 | 859 | py | Python | bindings/python/tests/cdef_types.py | mewbak/dragonffi | 2a205dbe4dd980d5dd53026c871514795573a7fb | [
"Apache-2.0"
] | null | null | null | bindings/python/tests/cdef_types.py | mewbak/dragonffi | 2a205dbe4dd980d5dd53026c871514795573a7fb | [
"Apache-2.0"
] | null | null | null | bindings/python/tests/cdef_types.py | mewbak/dragonffi | 2a205dbe4dd980d5dd53026c871514795573a7fb | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Adrien Guinet <adrien@guinet.me>
#
# 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... | 26.030303 | 74 | 0.726426 |
bcaa2cc3091f251f513b10ec7f23dc034c71de01 | 6,031 | py | Python | hierarchical_foresight/env/environment.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 23,901 | 2018-10-04T19:48:53.000Z | 2022-03-31T21:27:42.000Z | hierarchical_foresight/env/environment.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 891 | 2018-11-10T06:16:13.000Z | 2022-03-31T10:42:34.000Z | hierarchical_foresight/env/environment.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 6,047 | 2018-10-12T06:31:02.000Z | 2022-03-31T13:59:28.000Z | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 37.228395 | 80 | 0.636213 |
bcaa324b8d6cf63921fcf9763740cc9027d44173 | 855 | py | Python | trips/migrations/0004_invoice.py | chorna/taxi24 | 09e174a0cb3b9543ca4987e60cd0d37ecda6ac3c | [
"MIT"
] | null | null | null | trips/migrations/0004_invoice.py | chorna/taxi24 | 09e174a0cb3b9543ca4987e60cd0d37ecda6ac3c | [
"MIT"
] | null | null | null | trips/migrations/0004_invoice.py | chorna/taxi24 | 09e174a0cb3b9543ca4987e60cd0d37ecda6ac3c | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-11 23:51
from django.db import migrations, models
import django.db.models.deletion
| 32.884615 | 130 | 0.592982 |
bcaa742ec3f2633707689915b345db35e3f84a87 | 25,875 | py | Python | src/general_harvester.py | Badger-Finance/python-keepers | b5b2b0b083a237dceecd161d81754512959822b1 | [
"MIT"
] | null | null | null | src/general_harvester.py | Badger-Finance/python-keepers | b5b2b0b083a237dceecd161d81754512959822b1 | [
"MIT"
] | 22 | 2022-03-08T19:30:45.000Z | 2022-03-28T21:14:15.000Z | src/general_harvester.py | Badger-Finance/python-keepers | b5b2b0b083a237dceecd161d81754512959822b1 | [
"MIT"
] | null | null | null | import logging
import os
from decimal import Decimal
from time import sleep
import requests
from hexbytes import HexBytes
from web3 import Web3
from web3 import contract
from web3.contract import Contract
from config.constants import BASE_CURRENCIES
from config.constants import GAS_LIMITS
from config.constants import... | 37.939883 | 100 | 0.602705 |
bcaab7186ea62c16403a777679f43c5651b2eeea | 1,170 | py | Python | clickhouse_plantuml/column.py | yonesko/clickhouse-plantuml | 6db26788fe86854967f627f28fd8a403ccbf7ffb | [
"Apache-2.0"
] | null | null | null | clickhouse_plantuml/column.py | yonesko/clickhouse-plantuml | 6db26788fe86854967f627f28fd8a403ccbf7ffb | [
"Apache-2.0"
] | null | null | null | clickhouse_plantuml/column.py | yonesko/clickhouse-plantuml | 6db26788fe86854967f627f28fd8a403ccbf7ffb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# License: Apache-2.0
# Copyright (C) 2020 Mikhail f. Shiryaev
| 25.434783 | 56 | 0.622222 |
bcaae8938e310a72ba14496462496246c713e82d | 577 | py | Python | contrib/micronet/scripts/file2buf.py | pmalhaire/WireHub | 588a372e678b49557deed6ba88a896596222fb2d | [
"Apache-2.0"
] | 337 | 2018-12-21T22:13:57.000Z | 2019-11-01T18:35:10.000Z | contrib/micronet/scripts/file2buf.py | nask0/WireHub | 588a372e678b49557deed6ba88a896596222fb2d | [
"Apache-2.0"
] | 8 | 2018-12-24T20:16:40.000Z | 2019-09-02T11:54:48.000Z | contrib/micronet/scripts/file2buf.py | nask0/WireHub | 588a372e678b49557deed6ba88a896596222fb2d | [
"Apache-2.0"
] | 18 | 2018-12-24T02:49:38.000Z | 2019-07-31T20:00:47.000Z | #!/usr/bin/env python3
import os
import sys
MAX = 8
fpath = sys.argv[1]
name = sys.argv[2]
with open(fpath, "rb") as fh:
sys.stdout.write("char %s[] = {" % (name,) )
i = 0
while True:
if i > 0:
sys.stdout.write(", ")
if i % MAX == 0:
sys.stdout.write("\n\t")
... | 15.594595 | 49 | 0.443674 |
bcab57fb16b16bdb97e645f2dba9e5a2f1d7fa1f | 10,293 | py | Python | tests/test_observable/test_skip.py | christiansandberg/RxPY | 036027d2858ea6c9d45839c863bd791e5bb50c36 | [
"MIT"
] | null | null | null | tests/test_observable/test_skip.py | christiansandberg/RxPY | 036027d2858ea6c9d45839c863bd791e5bb50c36 | [
"MIT"
] | null | null | null | tests/test_observable/test_skip.py | christiansandberg/RxPY | 036027d2858ea6c9d45839c863bd791e5bb50c36 | [
"MIT"
] | null | null | null | import unittest
from reactivex import operators as ops
from reactivex.testing import ReactiveTest, TestScheduler
on_next = ReactiveTest.on_next
on_completed = ReactiveTest.on_completed
on_error = ReactiveTest.on_error
subscribe = ReactiveTest.subscribe
subscribed = ReactiveTest.subscribed
disposed = ReactiveTest.disp... | 28.2 | 57 | 0.469445 |
bcab6a237bb88828d13a4bacbf608684ac108e0d | 468 | py | Python | CF#691/python/A.py | chaitanya1243/CP | a0e5e34daf6f7c22c9a91212b65338ef0c46d163 | [
"MIT"
] | null | null | null | CF#691/python/A.py | chaitanya1243/CP | a0e5e34daf6f7c22c9a91212b65338ef0c46d163 | [
"MIT"
] | null | null | null | CF#691/python/A.py | chaitanya1243/CP | a0e5e34daf6f7c22c9a91212b65338ef0c46d163 | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
T = int(input())
for t in range(T):
n = int(input())
red = input()
blue = input()
solve(n, red, blue) | 24.631579 | 79 | 0.5 |
bcab784b7b6a5cec70ca79e8907334431af7152b | 2,505 | py | Python | shudder/__main__.py | fitpay/shudder | 3bd3d7d712f60b7c7db1d259c024dde3eaeed26c | [
"Apache-2.0"
] | null | null | null | shudder/__main__.py | fitpay/shudder | 3bd3d7d712f60b7c7db1d259c024dde3eaeed26c | [
"Apache-2.0"
] | null | null | null | shudder/__main__.py | fitpay/shudder | 3bd3d7d712f60b7c7db1d259c024dde3eaeed26c | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Scopely, 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 writing... | 37.38806 | 75 | 0.637126 |
bcac6e3cd42df76570409abe5d700496d0e0e054 | 1,688 | py | Python | example/hydrogen.py | NLESC-JCER/pyCHAMP | 97523237b3521a426d664b6e2972257045ff8f5e | [
"Apache-2.0"
] | 4 | 2019-05-15T13:09:23.000Z | 2021-03-28T09:10:11.000Z | example/hydrogen.py | NLESC-JCER/pyCHAMP | 97523237b3521a426d664b6e2972257045ff8f5e | [
"Apache-2.0"
] | 14 | 2019-04-23T15:05:07.000Z | 2019-08-14T13:21:07.000Z | example/hydrogen.py | NLESC-JCER/pyCHAMP | 97523237b3521a426d664b6e2972257045ff8f5e | [
"Apache-2.0"
] | 1 | 2019-09-30T22:55:53.000Z | 2019-09-30T22:55:53.000Z | import autograd.numpy as np
from pyCHAMP.wavefunction.wf_base import WF
from pyCHAMP.optimizer.minimize import Minimize
from pyCHAMP.sampler.metropolis import Metropolis
from pyCHAMP.sampler.hamiltonian import Hamiltonian
from pyCHAMP.solver.vmc import VMC
if __name__ == "__main__":
wf = Hydrogen(nelec=1, ndim... | 26.375 | 71 | 0.603081 |
bcac914db6f36c54dadd0991d6bb9fbf2492dbe9 | 585 | py | Python | braintree/account_updater_daily_report.py | futureironman/braintree_python | 26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac | [
"MIT"
] | 182 | 2015-01-09T05:26:46.000Z | 2022-03-16T14:10:06.000Z | braintree/account_updater_daily_report.py | futureironman/braintree_python | 26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac | [
"MIT"
] | 95 | 2015-02-24T23:29:56.000Z | 2022-03-13T03:27:58.000Z | braintree/account_updater_daily_report.py | futureironman/braintree_python | 26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac | [
"MIT"
] | 93 | 2015-02-19T17:59:06.000Z | 2022-03-19T17:01:25.000Z | from braintree.configuration import Configuration
from braintree.resource import Resource
| 36.5625 | 75 | 0.71453 |
bcae93da2c9dcb0c8765b93504dcb020462aad8e | 1,696 | py | Python | game/ball.py | geoncic/PyBlock | 69c8220e38a21b7e1c6dd2196752173f9e78981f | [
"MIT"
] | null | null | null | game/ball.py | geoncic/PyBlock | 69c8220e38a21b7e1c6dd2196752173f9e78981f | [
"MIT"
] | null | null | null | game/ball.py | geoncic/PyBlock | 69c8220e38a21b7e1c6dd2196752173f9e78981f | [
"MIT"
] | null | null | null | import pygame
import pygame.gfxdraw
from constants import Constants
| 30.836364 | 102 | 0.625 |
bcaebabdfa8553517a45b393cf40eff654bc096f | 36,597 | py | Python | program/eggUI.py | otills/embryocv | d501f057bada15ff5dc753d3dae5a883b5c9e244 | [
"MIT"
] | 1 | 2020-08-05T02:47:12.000Z | 2020-08-05T02:47:12.000Z | program/eggUI.py | otills/embryocv | d501f057bada15ff5dc753d3dae5a883b5c9e244 | [
"MIT"
] | null | null | null | program/eggUI.py | otills/embryocv | d501f057bada15ff5dc753d3dae5a883b5c9e244 | [
"MIT"
] | 1 | 2020-08-05T02:47:16.000Z | 2020-08-05T02:47:16.000Z | from pyqtgraph.Qt import QtCore, QtGui
import numpy as np
from scipy.spatial import distance as dist
import glob
import re
import os
from PyQt5 import QtGui
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import sys
import cv2
import pandas as pd
from PyQt5.Qt import *
import pyqtgraph as pg
#from PyQt4.Qt import ... | 54.540984 | 329 | 0.545099 |
bcaf2fd4c9457e78084e56f1b1fab3aa1985e417 | 394 | py | Python | Curso em Vídeo/Mundo 2 Estruturas de Controle/Desafios/desafio053.py | henriqueumeda/-Estudo-python | 28e93a377afa4732037a29eb74d4bc7c9e24b62f | [
"MIT"
] | null | null | null | Curso em Vídeo/Mundo 2 Estruturas de Controle/Desafios/desafio053.py | henriqueumeda/-Estudo-python | 28e93a377afa4732037a29eb74d4bc7c9e24b62f | [
"MIT"
] | null | null | null | Curso em Vídeo/Mundo 2 Estruturas de Controle/Desafios/desafio053.py | henriqueumeda/-Estudo-python | 28e93a377afa4732037a29eb74d4bc7c9e24b62f | [
"MIT"
] | null | null | null | frase = input('Digite uma frase: ').upper().strip().replace(' ', '')
tamanho = int(len(frase))
inverso = ''
#Opo mais simples:
# inverso = frase[::-1]
for contador in range(tamanho-1, -1, -1):
inverso += frase[contador]
print('O inverso de {} {}'.format(frase, inverso))
if frase == inverso:
print('Temos um... | 24.625 | 68 | 0.639594 |
bcaf69ed2a6fded7e4b539b423940b33563b6d40 | 540 | py | Python | tests/unittest/options/pricing/test_binomial_trees.py | yiluzhu/quant | 784c5cc20eeded2ff684b464eec4744f000d9638 | [
"MIT"
] | 1 | 2020-10-14T12:56:14.000Z | 2020-10-14T12:56:14.000Z | tests/unittest/options/pricing/test_binomial_trees.py | yiluzhu/quant | 784c5cc20eeded2ff684b464eec4744f000d9638 | [
"MIT"
] | null | null | null | tests/unittest/options/pricing/test_binomial_trees.py | yiluzhu/quant | 784c5cc20eeded2ff684b464eec4744f000d9638 | [
"MIT"
] | null | null | null |
from unittest import TestCase
from options.pricing.binomial_trees import BinomialTreePricer
from options.option import OptionType, Option
| 30 | 86 | 0.698148 |
bcaf71bd0c6cd2298c1b67ea7ef95ddacb0851be | 16,589 | py | Python | mctimer.py | Sharpieman20/MCtimer | 5d4609f3697778de090816b8a768b82bbe217294 | [
"Beerware"
] | null | null | null | mctimer.py | Sharpieman20/MCtimer | 5d4609f3697778de090816b8a768b82bbe217294 | [
"Beerware"
] | null | null | null | mctimer.py | Sharpieman20/MCtimer | 5d4609f3697778de090816b8a768b82bbe217294 | [
"Beerware"
] | null | null | null | import atexit
import os
import sys
import platform
import json
import glob
import datetime
import time
import threading
import tkinter as tk
from pynput import mouse
from pathlib import Path
from playsound import playsound
from enum import Enum
import copy
#"THE BEER-WARE LICENSE" (Revision 42):
#bleach86 wrote this ... | 24.833832 | 119 | 0.578335 |
bcb0236709da62fc588329e551c92b5fc621ffd9 | 2,927 | py | Python | kafka/structs.py | informatique-cdc/kafka-python | d73bd6fc2f8825e2fddb7c4f091af7b266e37aea | [
"Apache-2.0"
] | 4,389 | 2015-06-12T06:00:10.000Z | 2022-03-31T20:41:42.000Z | kafka/structs.py | informatique-cdc/kafka-python | d73bd6fc2f8825e2fddb7c4f091af7b266e37aea | [
"Apache-2.0"
] | 1,595 | 2015-12-02T20:58:22.000Z | 2022-03-27T07:28:03.000Z | kafka/structs.py | informatique-cdc/kafka-python | d73bd6fc2f8825e2fddb7c4f091af7b266e37aea | [
"Apache-2.0"
] | 1,115 | 2015-12-02T23:17:52.000Z | 2022-03-30T03:34:29.000Z | """ Other useful structs """
from __future__ import absolute_import
from collections import namedtuple
"""A topic and partition tuple
Keyword Arguments:
topic (str): A topic name
partition (int): A partition id
"""
TopicPartition = namedtuple("TopicPartition",
["topic", "partition"])
"""A Kafka broker... | 33.261364 | 102 | 0.702767 |
bcb1c97f3222308944fcb2351152a564408ff396 | 7,357 | py | Python | Vehicle_Counting_colab.py | manolosolalinde/Vehicle-Counting | 898e1993613ea5a6803078cc5026d2d690c12322 | [
"MIT"
] | null | null | null | Vehicle_Counting_colab.py | manolosolalinde/Vehicle-Counting | 898e1993613ea5a6803078cc5026d2d690c12322 | [
"MIT"
] | null | null | null | Vehicle_Counting_colab.py | manolosolalinde/Vehicle-Counting | 898e1993613ea5a6803078cc5026d2d690c12322 | [
"MIT"
] | null | null | null | import cv2
from trackers.tracker import create_blob, add_new_blobs, remove_duplicates
import numpy as np
from collections import OrderedDict
from detectors.detector import get_bounding_boxes
import uuid
import os
import contextlib
from datetime import datetime
import argparse
from utils.detection_roi import get_roi_fra... | 40.646409 | 125 | 0.644964 |
bcb21686e2484863628d877e956c259a49e6e1be | 2,542 | py | Python | app/resources/magic_castle_api.py | ComputeCanada/mc-hub | 92b4c212ba8f7b5b1c8b8700f981275605a07067 | [
"BSD-3-Clause"
] | 5 | 2020-09-04T16:34:36.000Z | 2020-09-25T19:14:59.000Z | app/resources/magic_castle_api.py | ComputeCanada/mc-hub | 92b4c212ba8f7b5b1c8b8700f981275605a07067 | [
"BSD-3-Clause"
] | 39 | 2020-09-12T17:37:14.000Z | 2022-03-10T17:49:57.000Z | app/resources/magic_castle_api.py | ComputeCanada/mc-hub | 92b4c212ba8f7b5b1c8b8700f981275605a07067 | [
"BSD-3-Clause"
] | 1 | 2021-03-29T15:42:13.000Z | 2021-03-29T15:42:13.000Z | from flask import request
from resources.api_view import ApiView
from exceptions.invalid_usage_exception import InvalidUsageException
from models.user.user import User
from models.user.authenticated_user import AuthenticatedUser
| 39.71875 | 77 | 0.5893 |
bcb26248e648d4d9b19d0a9ff813f2b53c5baabf | 2,615 | py | Python | tests/rbac/api/role/propose_member_test.py | kthblmfld/sawtooth-next-directory | 57291f1a7e6ce1dfc11a9c5e2930e8c5ebd31707 | [
"Apache-2.0"
] | null | null | null | tests/rbac/api/role/propose_member_test.py | kthblmfld/sawtooth-next-directory | 57291f1a7e6ce1dfc11a9c5e2930e8c5ebd31707 | [
"Apache-2.0"
] | null | null | null | tests/rbac/api/role/propose_member_test.py | kthblmfld/sawtooth-next-directory | 57291f1a7e6ce1dfc11a9c5e2930e8c5ebd31707 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Contributors to Hyperledger Sawtooth
#
# 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 ... | 36.830986 | 79 | 0.702868 |
bcb2a48f3534ac05974fe4c223430ebf965fdf0b | 881 | py | Python | f2v.py | ClimberY/video_super_resolution_toolbox | e03fd34f60bf1104bd78ac0738a2648cee2eae46 | [
"MIT"
] | null | null | null | f2v.py | ClimberY/video_super_resolution_toolbox | e03fd34f60bf1104bd78ac0738a2648cee2eae46 | [
"MIT"
] | null | null | null | f2v.py | ClimberY/video_super_resolution_toolbox | e03fd34f60bf1104bd78ac0738a2648cee2eae46 | [
"MIT"
] | null | null | null | import cv2
import os
import numpy as np
from PIL import Image
if __name__ == '__main__':
im_dir = '/media/hy/Seagate Expansion Drive/Results/merge_dir/' #
video_dir = '/media/hy/Seagate Expansion Drive/Results/sandy.mp4' #
fps = 15 #
frame2video(im_dir, video_dir, fps)
| 33.884615 | 82 | 0.682179 |
bcb332026597a8538e3390f5b54de4be3aa00f42 | 11,103 | py | Python | mflops/model_info.py | shuncyu/mflops | 81fddf9407bcbdca02b9c57f6b03640b3fb94101 | [
"MIT"
] | 1 | 2020-12-17T03:09:20.000Z | 2020-12-17T03:09:20.000Z | mflops/model_info.py | shuncyu/mflops | 81fddf9407bcbdca02b9c57f6b03640b3fb94101 | [
"MIT"
] | null | null | null | mflops/model_info.py | shuncyu/mflops | 81fddf9407bcbdca02b9c57f6b03640b3fb94101 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 14 17:38:48 2020
@author: luke
"""
import sys
from functools import partial
import torch
import torch.nn as nn
import prettytable as pt
from .basic_hook import MODULES_MAPPING
def compute_average_compute_cost(self):
"""
A method tha... | 35.359873 | 107 | 0.631721 |
bcb33dd64b91d776f626dc908c114e472e82874d | 2,301 | py | Python | dosagelib/plugins/derideal.py | Church-/dosage | 7ef18a2a2e9f77aa1e64a44906731506a00fac45 | [
"MIT"
] | 1 | 2020-06-18T17:51:13.000Z | 2020-06-18T17:51:13.000Z | dosagelib/plugins/derideal.py | Church-/dosage | 7ef18a2a2e9f77aa1e64a44906731506a00fac45 | [
"MIT"
] | null | null | null | dosagelib/plugins/derideal.py | Church-/dosage | 7ef18a2a2e9f77aa1e64a44906731506a00fac45 | [
"MIT"
] | null | null | null | # SPDX-License-Identifier: MIT
# Copyright (C) 2019-2020 Tobias Gruetzmacher
# Copyright (C) 2019-2020 Daniel Ring
from ..scraper import _ParserScraper
from ..helpers import indirectStarter
| 40.368421 | 94 | 0.614081 |
bcb3b617387a63312fcb662d0698c65cf437acee | 3,340 | py | Python | LearnFunction/learnfunction01.py | subash-kc/2022-01-04-Python | 5ce51e4265bcd860a4e62423edef6ec9cd1437b4 | [
"MIT"
] | 1 | 2022-01-14T18:03:42.000Z | 2022-01-14T18:03:42.000Z | LearnFunction/learnfunction01.py | subash-kc/2022-01-04-Python | 5ce51e4265bcd860a4e62423edef6ec9cd1437b4 | [
"MIT"
] | null | null | null | LearnFunction/learnfunction01.py | subash-kc/2022-01-04-Python | 5ce51e4265bcd860a4e62423edef6ec9cd1437b4 | [
"MIT"
] | null | null | null | """
Function are subprograms which are used to compute a value or perform a task.
Type of Functions:-
Built in Functions:
print(), upper()
User define functions
Advantage of Functions
1. Write once and use it as many time as you need. This provides code reusability
2. Function facilitates ease of code maint... | 18.870056 | 106 | 0.645808 |
bcb3deb24bc63c8049391df8c67ec2a72c8f437a | 945 | py | Python | trackr/cli.py | rpedigoni/trackr | ab5cf0cc661d003c6bd2ffa5516babf2e931de78 | [
"MIT"
] | 9 | 2017-04-23T23:54:56.000Z | 2021-12-26T02:21:28.000Z | trackr/cli.py | rpedigoni/trackr | ab5cf0cc661d003c6bd2ffa5516babf2e931de78 | [
"MIT"
] | null | null | null | trackr/cli.py | rpedigoni/trackr | ab5cf0cc661d003c6bd2ffa5516babf2e931de78 | [
"MIT"
] | 3 | 2017-04-23T23:55:13.000Z | 2017-05-03T01:20:23.000Z | # coding: utf-8
import click
if __name__ == "__main__":
main()
| 25.540541 | 83 | 0.582011 |
bcb3f4ba8d64955ba6c3c16193d7d7869a8725dd | 3,043 | py | Python | pitop/common/notifications.py | pi-top/pi-top-Python-SDK | 6c83cc5f612d77f86f8d391c7f2924a28f7b1232 | [
"Apache-2.0"
] | 28 | 2020-11-24T08:02:58.000Z | 2022-02-27T18:37:33.000Z | pitop/common/notifications.py | pi-top/pi-top-Python-SDK | 6c83cc5f612d77f86f8d391c7f2924a28f7b1232 | [
"Apache-2.0"
] | 263 | 2020-11-10T14:35:10.000Z | 2022-03-31T12:35:13.000Z | pitop/common/notifications.py | pi-top/pi-top-Python-SDK | 6c83cc5f612d77f86f8d391c7f2924a28f7b1232 | [
"Apache-2.0"
] | 1 | 2022-01-31T22:48:35.000Z | 2022-01-31T22:48:35.000Z | from enum import Enum, auto
from subprocess import CalledProcessError, run
from pitop.common.command_runner import run_command
from pitop.common.logger import PTLogger
def send_notification(
title: str,
text: str,
icon_name: str = "",
timeout: int = 0,
app_name: str = "",
notification_id: ... | 29.833333 | 92 | 0.621755 |
bcb4c4328d404e8eec9df91c64d171e98d7a2415 | 5,778 | py | Python | src/Gismo_XY To Location.py | AntonelloDN/gismo | 3ffbabaf8405efd3572701c9e0b7497211dfc248 | [
"Apache-2.0"
] | 57 | 2017-01-31T11:55:22.000Z | 2022-03-26T16:00:40.000Z | src/Gismo_XY To Location.py | AntonelloDN/gismo | 3ffbabaf8405efd3572701c9e0b7497211dfc248 | [
"Apache-2.0"
] | 11 | 2017-02-22T16:45:11.000Z | 2020-05-06T17:00:07.000Z | src/Gismo_XY To Location.py | AntonelloDN/gismo | 3ffbabaf8405efd3572701c9e0b7497211dfc248 | [
"Apache-2.0"
] | 19 | 2017-01-29T18:02:58.000Z | 2021-08-25T10:56:57.000Z | # xy to location
#
# Gismo is a plugin for GIS environmental analysis (GPL) started by Djordje Spasic.
#
# This file is part of Gismo.
#
# Copyright (c) 2019, Djordje Spasic <djordjedspasic@gmail.com>
# Gismo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lic... | 47.360656 | 246 | 0.72776 |
bcb5f8a3494a7c1dd73bdaa2595e97b680531db5 | 256 | py | Python | Notebooks/SentinelUtilities/SentinelAnomalyLookup/__init__.py | ytognder/Azure-Sentinel | 7345560f178e731d7ba5a5541fd3383bca285311 | [
"MIT"
] | 266 | 2019-10-18T00:41:39.000Z | 2022-03-18T05:44:01.000Z | Notebooks/SentinelUtilities/SentinelAnomalyLookup/__init__.py | ytognder/Azure-Sentinel | 7345560f178e731d7ba5a5541fd3383bca285311 | [
"MIT"
] | 113 | 2020-03-10T16:56:10.000Z | 2022-03-28T21:54:26.000Z | Notebooks/SentinelUtilities/SentinelAnomalyLookup/__init__.py | ytognder/Azure-Sentinel | 7345560f178e731d7ba5a5541fd3383bca285311 | [
"MIT"
] | 93 | 2020-01-07T20:28:43.000Z | 2022-03-23T04:09:39.000Z | # pylint: disable-msg=C0103
"""
SentinelAnomalyLookup: This package is developed for Azure Sentinel Anomaly lookup
"""
# __init__.py
from .anomaly_lookup_view_helper import AnomalyLookupViewHelper
from .anomaly_finder import AnomalyQueries, AnomalyFinder
| 28.444444 | 82 | 0.832031 |
bcb80d7d2c6e6e1e230619095dac5498b39b51c1 | 3,989 | py | Python | items/coins.py | leerichoang/Legend-Of-Peach | bef98ba7afdbddc497c45f8adedfb60e81176bfb | [
"MIT"
] | null | null | null | items/coins.py | leerichoang/Legend-Of-Peach | bef98ba7afdbddc497c45f8adedfb60e81176bfb | [
"MIT"
] | null | null | null | items/coins.py | leerichoang/Legend-Of-Peach | bef98ba7afdbddc497c45f8adedfb60e81176bfb | [
"MIT"
] | 2 | 2019-10-15T23:22:16.000Z | 2019-10-29T04:38:02.000Z | import pygame
from pygame.sprite import Sprite
| 34.387931 | 93 | 0.560792 |
bcb9144fdddbbf32bc78ac12f77acb144b544d93 | 142 | py | Python | python/package/geo/test/__init__.py | fiomenankiti/playground | 7c3139ffe5db4b18cf042b8027c9f670860371e0 | [
"MIT"
] | null | null | null | python/package/geo/test/__init__.py | fiomenankiti/playground | 7c3139ffe5db4b18cf042b8027c9f670860371e0 | [
"MIT"
] | null | null | null | python/package/geo/test/__init__.py | fiomenankiti/playground | 7c3139ffe5db4b18cf042b8027c9f670860371e0 | [
"MIT"
] | null | null | null | from geo.calc import Calc
from geo.calc import Distance
from geo.geosp import Wt
from geo.geosp import Gh
from geo.files.csv_file import check | 28.4 | 36 | 0.823944 |
bcbacb893f1fc24efc7e31b69bae2dad2d6081f7 | 293 | py | Python | tests/test_clean.py | tcapelle/nb_helpers | 432b1f014f1b780b5a4d3722d44f237387db2330 | [
"MIT"
] | 7 | 2022-01-13T09:54:39.000Z | 2022-02-08T23:34:47.000Z | tests/test_clean.py | tcapelle/nb_helpers | 432b1f014f1b780b5a4d3722d44f237387db2330 | [
"MIT"
] | 62 | 2021-12-14T10:24:13.000Z | 2022-02-09T00:00:12.000Z | tests/test_clean.py | tcapelle/nb_helpers | 432b1f014f1b780b5a4d3722d44f237387db2330 | [
"MIT"
] | 2 | 2022-01-20T10:41:51.000Z | 2022-02-04T11:26:41.000Z | from pathlib import Path
from nb_helpers.clean import clean_all, clean_one
from tests import TEST_PATH
TEST_PATH
TEST_NB = Path("test_nb.py")
def test_clean_one():
"clean just one nb"
clean_one(TEST_NB)
def test_clean_all():
"clean all test nbs"
clean_all(path=TEST_PATH)
| 17.235294 | 49 | 0.744027 |
bcbc7df90a025f59202f5950277107bf1a366441 | 5,746 | py | Python | apps/technical_analysis.py | KiloSat/FirstNivesh | 0fe200e08bb9f7d89de91f59eb14448fa7b972b9 | [
"MIT"
] | null | null | null | apps/technical_analysis.py | KiloSat/FirstNivesh | 0fe200e08bb9f7d89de91f59eb14448fa7b972b9 | [
"MIT"
] | null | null | null | apps/technical_analysis.py | KiloSat/FirstNivesh | 0fe200e08bb9f7d89de91f59eb14448fa7b972b9 | [
"MIT"
] | 2 | 2021-04-03T16:39:23.000Z | 2021-08-15T08:09:21.000Z | import streamlit as st
| 34.202381 | 197 | 0.603376 |
bcbd7d0edc16eccd95b307b889e7f1a174b4d31c | 4,642 | py | Python | tests/sentry/mediators/sentry_apps/test_creator.py | pombredanne/django-sentry | 4ad09417fb3cfa3aa4a0d4175ae49fe02837c567 | [
"BSD-3-Clause"
] | null | null | null | tests/sentry/mediators/sentry_apps/test_creator.py | pombredanne/django-sentry | 4ad09417fb3cfa3aa4a0d4175ae49fe02837c567 | [
"BSD-3-Clause"
] | null | null | null | tests/sentry/mediators/sentry_apps/test_creator.py | pombredanne/django-sentry | 4ad09417fb3cfa3aa4a0d4175ae49fe02837c567 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from mock import patch
from django.db import IntegrityError
from sentry.mediators.sentry_apps import Creator
from sentry.models import (
AuditLogEntry,
AuditLogEntryEvent,
ApiApplication,
IntegrationFeature,
SentryApp,
SentryAppComponent,
User,
)
from... | 32.013793 | 98 | 0.640888 |
bcbdf778d11c4a8378ce0f01967703c04ca3e0b9 | 17,869 | py | Python | python/Model_Files/LFV_3/parameters.py | ZAKI1905/HEP-Phen | bc06fecb2aa6bf108b59f76794e63c29eb37a35a | [
"MIT"
] | 1 | 2019-10-21T08:25:46.000Z | 2019-10-21T08:25:46.000Z | python/Model_Files/LFV_3/parameters.py | ZAKI1905/HEP-Phen | bc06fecb2aa6bf108b59f76794e63c29eb37a35a | [
"MIT"
] | null | null | null | python/Model_Files/LFV_3/parameters.py | ZAKI1905/HEP-Phen | bc06fecb2aa6bf108b59f76794e63c29eb37a35a | [
"MIT"
] | null | null | null | # This file was automatically created by FeynRules 2.3.32
# Mathematica version: 11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018)
# Date: Sat 21 Apr 2018 20:48:39
from object_library import all_parameters, Parameter
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
# This is a defau... | 31.459507 | 288 | 0.38245 |
bcbef8c15ce4fa1656c062f45eb901b87f935220 | 1,828 | py | Python | musicLrc.py | xiangxing98/Rhythm-Enlightment | d6302321e858d07480b18e94c59de87f91c39202 | [
"MIT"
] | null | null | null | musicLrc.py | xiangxing98/Rhythm-Enlightment | d6302321e858d07480b18e94c59de87f91c39202 | [
"MIT"
] | null | null | null | musicLrc.py | xiangxing98/Rhythm-Enlightment | d6302321e858d07480b18e94c59de87f91c39202 | [
"MIT"
] | null | null | null | import time
musicLrc = """
[00:03.50]
[00:19.10]
[00:20.60]
[00:26.60]
[04:40.75][02:39.90][00:36.25]
[04:49.00]
[02:47.44][00:43.69]
[02:54.83][00:51.24]
[03:02.32][00:58.75]
[03:08.15][01:04.30]
[03:09.35][01:05.50]
[03:16.90][01:13.13]
[03:24.42][01:20.92]
[03:31.85][01:28.44]
[03:38.67][01:35.05]
[04:09.96][03:39... | 22.292683 | 62 | 0.605033 |
bcbfd5dadc46bd5eab08a4b4f4c45a601d0075b6 | 16,826 | py | Python | octoprint_octopod/__init__.py | mnebelung/OctoPrint-OctoPod | 3af1a2e1ad7c6f73ed05d9c1ff029fb645f3115a | [
"Apache-2.0"
] | 52 | 2019-05-28T03:41:20.000Z | 2022-01-29T00:32:57.000Z | octoprint_octopod/__init__.py | mnebelung/OctoPrint-OctoPod | 3af1a2e1ad7c6f73ed05d9c1ff029fb645f3115a | [
"Apache-2.0"
] | 111 | 2019-05-28T14:50:01.000Z | 2022-03-21T22:12:05.000Z | octoprint_octopod/__init__.py | mnebelung/OctoPrint-OctoPod | 3af1a2e1ad7c6f73ed05d9c1ff029fb645f3115a | [
"Apache-2.0"
] | 11 | 2019-07-20T15:36:21.000Z | 2021-12-30T16:53:56.000Z | # coding=utf-8
from __future__ import absolute_import
import datetime
import logging
import sys
import flask
import octoprint.plugin
from octoprint.events import eventManager, Events
from octoprint.server import user_permission
from octoprint.util import RepeatedTimer
from .bed_notifications import BedNotifications
... | 39.683962 | 141 | 0.757934 |
bcc019e1e7277f852d55bb225dc74bb333185aa3 | 660 | py | Python | tests/test_buffers.py | romanchyla/CSPatterns | d9627297aabce1ab648f4a4cdbe9882527add138 | [
"MIT"
] | null | null | null | tests/test_buffers.py | romanchyla/CSPatterns | d9627297aabce1ab648f4a4cdbe9882527add138 | [
"MIT"
] | null | null | null | tests/test_buffers.py | romanchyla/CSPatterns | d9627297aabce1ab648f4a4cdbe9882527add138 | [
"MIT"
] | null | null | null | from cspatterns.datastructures import buffer | 25.384615 | 66 | 0.551515 |
bcc146cfb565fd0140a85d638082d12ef6686650 | 1,214 | py | Python | plugins/redacted/migrations/0001_initial.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 9 | 2019-03-26T14:50:00.000Z | 2020-11-10T16:44:08.000Z | plugins/redacted/migrations/0001_initial.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 22 | 2019-03-02T23:16:13.000Z | 2022-02-27T10:36:36.000Z | plugins/redacted/migrations/0001_initial.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 5 | 2019-04-24T00:51:30.000Z | 2020-11-06T18:31:49.000Z | # Generated by Django 2.1.7 on 2019-02-17 14:50
from django.db import migrations, models
| 31.947368 | 114 | 0.538715 |
bcc1d17c27a82c381571bf91c586033e374ec7d9 | 1,741 | py | Python | code_examples/plotting_data/hexbin.py | ezcitron/BasemapTutorial | 0db9248b430d39518bdfdb25d713145be4eb966a | [
"CC0-1.0"
] | 99 | 2015-01-14T21:20:48.000Z | 2022-01-25T10:38:37.000Z | code_examples/plotting_data/hexbin.py | ezcitron/BasemapTutorial | 0db9248b430d39518bdfdb25d713145be4eb966a | [
"CC0-1.0"
] | 1 | 2017-08-31T07:02:20.000Z | 2017-08-31T07:02:20.000Z | code_examples/plotting_data/hexbin.py | ezcitron/BasemapTutorial | 0db9248b430d39518bdfdb25d713145be4eb966a | [
"CC0-1.0"
] | 68 | 2015-01-14T21:21:01.000Z | 2022-01-29T14:53:38.000Z | from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import matplotlib.colors as colors
from numpy import array
from numpy import max
map = Basemap(llcrnrlon=-0.5,llcrnrlat=39.8,urcrnrlon=4.,urcrnrlat=43.,
resolution='i', projection='tmerc', lat_0 = 39.5, lon_0 = 1)
map.readshapefil... | 23.527027 | 139 | 0.687536 |
bcc231c6648af0cd64b843faf63ad79a79b6853b | 895 | py | Python | src/plugins/sjsy.py | 2443391447/nonebot2 | c9fa0c44c130b8a1425b2b71105fa909232c37b0 | [
"MIT"
] | 1 | 2021-08-24T03:18:23.000Z | 2021-08-24T03:18:23.000Z | src/plugins/sjsy.py | 2443391447/nonebot2 | c9fa0c44c130b8a1425b2b71105fa909232c37b0 | [
"MIT"
] | null | null | null | src/plugins/sjsy.py | 2443391447/nonebot2 | c9fa0c44c130b8a1425b2b71105fa909232c37b0 | [
"MIT"
] | 1 | 2021-09-01T07:50:03.000Z | 2021-09-01T07:50:03.000Z | from nonebot import on_keyword, on_command
from nonebot.typing import T_State
from nonebot.adapters.cqhttp import Message, Bot, Event #
from nonebot.adapters.cqhttp.message import MessageSegment
import requests
from nonebot.permission import *
from nonebot.rule import to_me
from aiocqhttp.exceptions import Err... | 28.870968 | 68 | 0.689385 |
bcc3dcd13da8bfacff9f3f45c797b5dd285e8744 | 4,031 | py | Python | src/extractors/emojiextractor.py | chmduquesne/rofimoji | 9abdc0a8db1b166bb30da994c4aadb7baf91df2d | [
"MIT"
] | 574 | 2017-10-29T18:04:31.000Z | 2022-03-30T23:34:34.000Z | src/extractors/emojiextractor.py | chmduquesne/rofimoji | 9abdc0a8db1b166bb30da994c4aadb7baf91df2d | [
"MIT"
] | 104 | 2017-11-02T08:24:29.000Z | 2022-03-29T02:39:58.000Z | src/extractors/emojiextractor.py | chmduquesne/rofimoji | 9abdc0a8db1b166bb30da994c4aadb7baf91df2d | [
"MIT"
] | 53 | 2017-11-01T22:38:02.000Z | 2022-02-14T09:20:36.000Z | import html
from collections import namedtuple
from pathlib import Path
from typing import List, Dict
import requests
from bs4 import BeautifulSoup
from lxml import etree
from lxml.etree import XPath
Emoji = namedtuple('Emoji', 'char name')
| 37.324074 | 159 | 0.607045 |