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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a91414de57b627b89516d25ee369f8bbf7d2897 | 431 | py | Python | team/migrations/0014_auto_20200608_1855.py | Aleccc/gtcrew | 7e6e7024afdbf48ee796cb1f9a86b913e6843dda | [
"MIT"
] | null | null | null | team/migrations/0014_auto_20200608_1855.py | Aleccc/gtcrew | 7e6e7024afdbf48ee796cb1f9a86b913e6843dda | [
"MIT"
] | 21 | 2019-02-14T02:47:34.000Z | 2022-01-23T02:22:54.000Z | team/migrations/0014_auto_20200608_1855.py | Aleccc/gtcrew | 7e6e7024afdbf48ee796cb1f9a86b913e6843dda | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-06-08 22:55
from django.db import migrations
import wagtail.core.fields
| 21.55 | 81 | 0.62413 |
2a920b7ccb1c0d280a100c971c21a949a0ed335a | 408 | py | Python | discussions/migrations/0006_channel_is_deleted.py | Wassaf-Shahzad/micromasters | b1340a8c233499b1d8d22872a6bc1fe7f49fd323 | [
"BSD-3-Clause"
] | 32 | 2016-03-25T01:03:13.000Z | 2022-01-15T19:35:42.000Z | discussions/migrations/0006_channel_is_deleted.py | Wassaf-Shahzad/micromasters | b1340a8c233499b1d8d22872a6bc1fe7f49fd323 | [
"BSD-3-Clause"
] | 4,858 | 2016-03-03T13:48:30.000Z | 2022-03-29T22:09:51.000Z | discussions/migrations/0006_channel_is_deleted.py | umarmughal824/micromasters | ea92d3bcea9be4601150fc497302ddacc1161622 | [
"BSD-3-Clause"
] | 20 | 2016-08-18T22:07:44.000Z | 2021-11-15T13:35:35.000Z | # Generated by Django 2.1.5 on 2019-03-22 07:29
from django.db import migrations, models
| 21.473684 | 63 | 0.620098 |
2a9522b6d5b9307922a2f1edce02700ed9d5c7b1 | 8,562 | py | Python | exabel_data_sdk/client/api/search_service.py | burk/python-sdk | 83fb81d09e0d6a407c8907a75bebb895decc7edc | [
"MIT"
] | null | null | null | exabel_data_sdk/client/api/search_service.py | burk/python-sdk | 83fb81d09e0d6a407c8907a75bebb895decc7edc | [
"MIT"
] | null | null | null | exabel_data_sdk/client/api/search_service.py | burk/python-sdk | 83fb81d09e0d6a407c8907a75bebb895decc7edc | [
"MIT"
] | null | null | null | import itertools
from typing import Mapping, Sequence, Tuple, TypeVar, Union
from exabel_data_sdk.client.api.api_client.entity_api_client import EntityApiClient
from exabel_data_sdk.client.api.data_classes.entity import Entity
from exabel_data_sdk.stubs.exabel.api.data.v1.all_pb2 import (
SearchEntitiesRequest,
... | 42.597015 | 100 | 0.666083 |
2a97aa991dbbe490d3f89c2502461d05c3f3477d | 3,808 | py | Python | test/test_CustomLayers.py | tomasheiskanen/pro_gan_pytorch | af44df67a2e771207ed96af4c0948980edd9d3d7 | [
"MIT"
] | 2 | 2020-11-19T14:20:51.000Z | 2020-12-10T10:54:39.000Z | test/test_CustomLayers.py | tomasheiskanen/pro_gan_pytorch | af44df67a2e771207ed96af4c0948980edd9d3d7 | [
"MIT"
] | null | null | null | test/test_CustomLayers.py | tomasheiskanen/pro_gan_pytorch | af44df67a2e771207ed96af4c0948980edd9d3d7 | [
"MIT"
] | 2 | 2020-11-19T11:32:46.000Z | 2020-12-10T23:32:18.000Z | import torch as th
from unittest import TestCase
from pro_gan_pytorch import CustomLayers as cL
device = th.device("cuda" if th.cuda.is_available() else "cpu")
| 30.464 | 82 | 0.642595 |
aa48f57729bf1af92cafcf77cd0d806243d6e2f7 | 511 | py | Python | onlinecourse/tests.py | vicbolo78/Week-8-Lab | 39e086c2d8a07875218bce461b5ab1ca63b3b931 | [
"Apache-2.0"
] | null | null | null | onlinecourse/tests.py | vicbolo78/Week-8-Lab | 39e086c2d8a07875218bce461b5ab1ca63b3b931 | [
"Apache-2.0"
] | null | null | null | onlinecourse/tests.py | vicbolo78/Week-8-Lab | 39e086c2d8a07875218bce461b5ab1ca63b3b931 | [
"Apache-2.0"
] | null | null | null | import unittest
from django.test import TestCase
if __name__=='__main__':
unittest.main()
| 28.388889 | 112 | 0.688845 |
aa49195189dacb2ef252f543c4131fc6f7dbb7a4 | 1,482 | py | Python | trnsystor/statement/overwritecheck.py | samuelduchesne/pyTrnsys | f2deb5eb340a2814722eead5f8b6278a945c730d | [
"MIT"
] | 5 | 2021-07-20T16:07:06.000Z | 2022-02-09T07:57:21.000Z | trnsystor/statement/overwritecheck.py | samuelduchesne/pyTrnsys | f2deb5eb340a2814722eead5f8b6278a945c730d | [
"MIT"
] | 50 | 2021-02-12T07:36:55.000Z | 2022-03-21T10:40:47.000Z | trnsystor/statement/overwritecheck.py | samuelduchesne/pyTrnsys | f2deb5eb340a2814722eead5f8b6278a945c730d | [
"MIT"
] | 4 | 2019-06-28T17:56:05.000Z | 2020-02-24T16:33:28.000Z | """OverwriteCheck Statement."""
from trnsystor.statement.statement import Statement
| 39 | 80 | 0.691633 |
aa4ca18a2fac84c67cbd77ed0d5889f5f97ea255 | 3,012 | py | Python | src/python/serif/model/impl/relation_mention/aida_relation_mention_model.py | BBN-E/text-open | c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9 | [
"Apache-2.0"
] | 2 | 2022-03-24T14:37:51.000Z | 2022-03-24T19:56:45.000Z | src/python/serif/model/impl/relation_mention/aida_relation_mention_model.py | BBN-E/text-open | c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9 | [
"Apache-2.0"
] | null | null | null | src/python/serif/model/impl/relation_mention/aida_relation_mention_model.py | BBN-E/text-open | c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9 | [
"Apache-2.0"
] | null | null | null | import os
from serif.model.relation_mention_model import RelationMentionModel
from serif.theory.enumerated_type import Tense, Modality
# Modified from DogFoodFinderRelationMentionModel
| 40.702703 | 154 | 0.648406 |
aa4ce841fb5c0a7a5017a31ae4183d5366d1cbf9 | 1,209 | py | Python | datamodel_code_generator/model/pydantic/__init__.py | languitar/datamodel-code-generator | ddd909746a66df5c8268d782f3ae24bee636be92 | [
"MIT"
] | null | null | null | datamodel_code_generator/model/pydantic/__init__.py | languitar/datamodel-code-generator | ddd909746a66df5c8268d782f3ae24bee636be92 | [
"MIT"
] | null | null | null | datamodel_code_generator/model/pydantic/__init__.py | languitar/datamodel-code-generator | ddd909746a66df5c8268d782f3ae24bee636be92 | [
"MIT"
] | null | null | null | from pathlib import Path
from typing import List, Optional
from jinja2 import Environment, FileSystemLoader, Template
from pydantic import BaseModel as _BaseModel
from ..base import TEMPLATE_DIR
from .base_model import BaseModel, DataModelField
from .custom_root_type import CustomRootType
from .dataclass import DataC... | 28.116279 | 78 | 0.753515 |
aa4cf8c4cd4ceb51b8a674e955be5c558d98e6e8 | 2,313 | py | Python | tools/test_everything.py | cdleary/bazel_rules_hdl | 3ef172ce63cecf43bb4f3648bfc8cd887030d1a4 | [
"Apache-2.0"
] | null | null | null | tools/test_everything.py | cdleary/bazel_rules_hdl | 3ef172ce63cecf43bb4f3648bfc8cd887030d1a4 | [
"Apache-2.0"
] | null | null | null | tools/test_everything.py | cdleary/bazel_rules_hdl | 3ef172ce63cecf43bb4f3648bfc8cd887030d1a4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 33.521739 | 119 | 0.695633 |
aa4ec0e530ddfb88006f27f4a9ccb49f5c973bdc | 3,039 | py | Python | A069675/A069675_helper.py | sethtroisi/OEIS | 2c10b86d8a8be69aa8020623d4802e3d68772ede | [
"Apache-2.0"
] | 3 | 2019-05-25T23:08:48.000Z | 2021-12-11T03:59:42.000Z | A069675/A069675_helper.py | sethtroisi/OEIS | 2c10b86d8a8be69aa8020623d4802e3d68772ede | [
"Apache-2.0"
] | 1 | 2019-03-07T21:22:52.000Z | 2019-03-07T21:22:52.000Z | A069675/A069675_helper.py | sethtroisi/OEIS | 2c10b86d8a8be69aa8020623d4802e3d68772ede | [
"Apache-2.0"
] | 1 | 2021-04-29T06:35:07.000Z | 2021-04-29T06:35:07.000Z | import math
import gmpy2
# How many you want to find
MAX_COUNT = 500
K_COUNT = 3.7 # d = 1000 yields ~264
#for parallel C++
K_COST = 4.14 * 1e-11 # d = 5000 takes ~400s
K_FILTER_COST = 1.0 * 1e-9 # d = 5000, sieve = 30M takes 10.3s
expected_count = 170 # count below a googol
expected_cost = 0... | 25.537815 | 81 | 0.636064 |
aa4ef2d9ea34cac394dfd068462eacae94338cce | 8,849 | py | Python | devilry/devilry_examiner/views/assignment/bulkoperations/bulk_feedback.py | devilry/devilry-django | 9ae28e462dfa4cfee966ebacbca04ade9627e715 | [
"BSD-3-Clause"
] | 29 | 2015-01-18T22:56:23.000Z | 2020-11-10T21:28:27.000Z | devilry/devilry_examiner/views/assignment/bulkoperations/bulk_feedback.py | devilry/devilry-django | 9ae28e462dfa4cfee966ebacbca04ade9627e715 | [
"BSD-3-Clause"
] | 786 | 2015-01-06T16:10:18.000Z | 2022-03-16T11:10:50.000Z | devilry/devilry_examiner/views/assignment/bulkoperations/bulk_feedback.py | devilry/devilry-django | 9ae28e462dfa4cfee966ebacbca04ade9627e715 | [
"BSD-3-Clause"
] | 15 | 2015-04-06T06:18:43.000Z | 2021-02-24T12:28:30.000Z |
from django import forms
from django.contrib import messages
from django.db import models
from django.db import transaction
from django.http import HttpResponseRedirect, Http404
from django.utils import timezone
from django.utils.translation import gettext_lazy, pgettext_lazy
from django.views.generic import View
im... | 40.591743 | 111 | 0.711154 |
aa4fab7f9af5d5e5f5046cccd34fc0d3664a73ba | 3,258 | py | Python | tests/test_util.py | NickVeld/battery_handyman | 9be3f5b2fd5990a266f709853ef87508e47d4b6a | [
"Apache-2.0"
] | 2 | 2021-07-19T11:08:04.000Z | 2021-11-16T19:01:07.000Z | tests/test_util.py | NickVeld/battery_handyman | 9be3f5b2fd5990a266f709853ef87508e47d4b6a | [
"Apache-2.0"
] | null | null | null | tests/test_util.py | NickVeld/battery_handyman | 9be3f5b2fd5990a266f709853ef87508e47d4b6a | [
"Apache-2.0"
] | null | null | null | # Copyright [2021] [Nikolay Veld]
#
# 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... | 39.253012 | 93 | 0.741559 |
aa517365a385efd5eb9f84b7a97466471cc557a7 | 19,978 | py | Python | tests/http_wrappers/test_response.py | pabarros/asgard-api | 3c10d5f99f584df5e8011558cf42e8b201d567e9 | [
"MIT"
] | 3 | 2020-01-10T02:16:09.000Z | 2020-02-19T18:42:37.000Z | tests/http_wrappers/test_response.py | pabarros/asgard-api | 3c10d5f99f584df5e8011558cf42e8b201d567e9 | [
"MIT"
] | 13 | 2020-01-15T18:22:35.000Z | 2021-03-31T19:21:54.000Z | tests/http_wrappers/test_response.py | rockerbacon/asgard-api | 1c1eb19225ace4bbecb06b65b1b9c4ab131eb24a | [
"MIT"
] | 6 | 2020-03-07T09:49:19.000Z | 2021-07-25T03:14:10.000Z | import json
import unittest
from copy import deepcopy
from http import HTTPStatus
from unittest.mock import call, patch
from flask import Response as FlaskResponse
from marathon import MarathonApp
from marathon.models.group import MarathonGroup
from marathon.models.task import MarathonTask
from asgard.models.account ... | 38.642166 | 93 | 0.598659 |
aa51ffea60a8f3722501b0b1a0f4252d675d1628 | 1,481 | py | Python | airbyte-integrations/connectors/source-chargebee/unit_tests/conftest.py | onaio/airbyte | 38302e82a25f1b66742c3febfbff0668556920f2 | [
"MIT"
] | 22 | 2020-08-27T00:47:20.000Z | 2020-09-17T15:39:39.000Z | airbyte-integrations/connectors/source-chargebee/unit_tests/conftest.py | onaio/airbyte | 38302e82a25f1b66742c3febfbff0668556920f2 | [
"MIT"
] | 116 | 2020-08-27T01:11:27.000Z | 2020-09-19T02:47:52.000Z | airbyte-integrations/connectors/source-chargebee/unit_tests/conftest.py | onaio/airbyte | 38302e82a25f1b66742c3febfbff0668556920f2 | [
"MIT"
] | 1 | 2020-09-15T06:10:01.000Z | 2020-09-15T06:10:01.000Z | #
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
#
import json
import os
from pytest import fixture
| 18.987179 | 131 | 0.717083 |
aa5257c3d2bbc31453ce0957dc8133ceb385c1ff | 3,855 | py | Python | tests/test_rfc8226.py | alvistack/etingof-pyasn1-modules | bdbcc5d9650a8e8382979f089df3307dd4121b49 | [
"BSD-2-Clause"
] | 34 | 2016-04-03T09:10:31.000Z | 2022-02-12T20:38:31.000Z | tests/test_rfc8226.py | alvistack/etingof-pyasn1-modules | bdbcc5d9650a8e8382979f089df3307dd4121b49 | [
"BSD-2-Clause"
] | 138 | 2017-05-31T09:25:10.000Z | 2022-02-07T09:00:19.000Z | tests/test_rfc8226.py | alvistack/etingof-pyasn1-modules | bdbcc5d9650a8e8382979f089df3307dd4121b49 | [
"BSD-2-Clause"
] | 36 | 2016-03-16T00:37:04.000Z | 2021-11-12T12:09:43.000Z | #
# This file is part of pyasn1-modules software.
#
# Created by Russ Housley
# Copyright (c) 2019, Vigil Security, LLC
# License: http://snmplabs.com/pyasn1/license.html
#
import sys
import unittest
from pyasn1.codec.der import decoder as der_decoder
from pyasn1.codec.der import encoder as der_encoder
from pyasn1_mo... | 36.714286 | 78 | 0.751751 |
aa53b31e51246da4e5cbdd1eaa930f83edb36fc7 | 533 | py | Python | Maior_e_Menor.py | PedroFelipe-G-Arruda/Grupo-python | a43e6575cf3b7c0de22aa3b19995a86ccab37ad2 | [
"MIT"
] | null | null | null | Maior_e_Menor.py | PedroFelipe-G-Arruda/Grupo-python | a43e6575cf3b7c0de22aa3b19995a86ccab37ad2 | [
"MIT"
] | null | null | null | Maior_e_Menor.py | PedroFelipe-G-Arruda/Grupo-python | a43e6575cf3b7c0de22aa3b19995a86ccab37ad2 | [
"MIT"
] | null | null | null | a = float(input('digite um numero:'))
b = float(input('digite um numero:'))
c = float(input('digite um numero:'))
if a > b:
if a > c:
ma = a
if b > c:
mi = c
if c > b:
mi = b
if b > a:
if b > c:
ma = b
if a > c:
mi = c
if c > ... | 18.37931 | 60 | 0.348968 |
aa580b5cf5cb0ae3973ea18eba36047b23561408 | 699 | py | Python | nosai/numbers.py | kurianbenoy/Reading_like_AI | 47eaa1353c86a8e5b3b8b6a2b3833e08039d47f8 | [
"MIT"
] | null | null | null | nosai/numbers.py | kurianbenoy/Reading_like_AI | 47eaa1353c86a8e5b3b8b6a2b3833e08039d47f8 | [
"MIT"
] | 3 | 2020-11-15T16:14:18.000Z | 2020-11-15T16:16:08.000Z | nosai/numbers.py | kurianbenoy/Reading_like_AI | 47eaa1353c86a8e5b3b8b6a2b3833e08039d47f8 | [
"MIT"
] | null | null | null | """
1999- Nineteen Ninty Nine
1888 - Eighteen Eighty Eight
1777 - Seventeen Seventy Seven
1111 - Oneeen Onety One
Not fully huristics
"""
from num2words import num2words
| 17.923077 | 42 | 0.532189 |
aa5994c29326d8c20f2aaf6fae735a3edfc657c4 | 3,711 | py | Python | src/preprocessing.py | kushagrasharma/bilstm-for-seq2f | 6e576cb5bbc3d0a3c2e0a4735f0f1cc95187690f | [
"MIT"
] | null | null | null | src/preprocessing.py | kushagrasharma/bilstm-for-seq2f | 6e576cb5bbc3d0a3c2e0a4735f0f1cc95187690f | [
"MIT"
] | null | null | null | src/preprocessing.py | kushagrasharma/bilstm-for-seq2f | 6e576cb5bbc3d0a3c2e0a4735f0f1cc95187690f | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
function2idx = {"negative": 0, "ferritin": 1, "gpcr": 2, "p450": 3, "protease": 4}
input_dir = '../data/raw/'
data_dir = '../data/processed/'
max_seq_len = 800
df = read_and_concat_data()
df = clean_sequence_length(df)
np.savetxt(data_dir + 'sequence.txt', df.sequence.valu... | 43.151163 | 116 | 0.668283 |
aa599682efaab603093212095b2252a141edf8de | 509 | py | Python | errores.py | facmartoni/python_exercises | 7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2 | [
"Apache-2.0"
] | null | null | null | errores.py | facmartoni/python_exercises | 7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2 | [
"Apache-2.0"
] | null | null | null | errores.py | facmartoni/python_exercises | 7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2 | [
"Apache-2.0"
] | 1 | 2021-10-11T00:25:14.000Z | 2021-10-11T00:25:14.000Z |
if __name__ == '__main__':
run()
| 20.36 | 80 | 0.479371 |
aa5cac558a4f7f7ce93e05bc22da8c8c1d651763 | 88 | py | Python | Ara_Ara/apps.py | ksdfg/ARA-ARA | 408c5d55f670279c6d92826fdf78d5f26f8b6bcc | [
"MIT"
] | null | null | null | Ara_Ara/apps.py | ksdfg/ARA-ARA | 408c5d55f670279c6d92826fdf78d5f26f8b6bcc | [
"MIT"
] | null | null | null | Ara_Ara/apps.py | ksdfg/ARA-ARA | 408c5d55f670279c6d92826fdf78d5f26f8b6bcc | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 14.666667 | 33 | 0.75 |
aa5fa5ff3ffffa84887da1cb448b70b03ad5cd67 | 45 | py | Python | ahmed-package/__init__.py | gokcelahmed/ahmed-package | a6c34fb2d85105ad33063b840c84f70ff7a0aa4d | [
"MIT"
] | null | null | null | ahmed-package/__init__.py | gokcelahmed/ahmed-package | a6c34fb2d85105ad33063b840c84f70ff7a0aa4d | [
"MIT"
] | null | null | null | ahmed-package/__init__.py | gokcelahmed/ahmed-package | a6c34fb2d85105ad33063b840c84f70ff7a0aa4d | [
"MIT"
] | null | null | null | from ahmed-package.functions import printName | 45 | 45 | 0.888889 |
aa60b0079dcb6f5a27a15460a7a773255408abdc | 91 | py | Python | fsdviz/stocking/forms/__init__.py | AdamCottrill/fsdivz | 98dd1f35a08dba26424e2951a40715e01399478c | [
"MIT"
] | null | null | null | fsdviz/stocking/forms/__init__.py | AdamCottrill/fsdivz | 98dd1f35a08dba26424e2951a40715e01399478c | [
"MIT"
] | 6 | 2020-02-12T00:03:40.000Z | 2020-11-30T01:20:56.000Z | fsdviz/stocking/forms/__init__.py | AdamCottrill/fsdviz | 98dd1f35a08dba26424e2951a40715e01399478c | [
"MIT"
] | null | null | null | from .FindEventsForm import *
from .StockingEventForm import *
from .XlsEventForm import *
| 22.75 | 32 | 0.802198 |
aa61678d6fbbb6831ab89015e270d094a885eab5 | 9,034 | py | Python | Chapter 16/Lookup/algorithms.py | codered-by-ec-council/Micro-Degree-in-Python-Security | cb16ed78ee38dad32e3909371edec8ff3ce6e6a7 | [
"MIT"
] | 4 | 2020-09-25T05:57:22.000Z | 2021-02-27T14:56:23.000Z | Chapter 16/Lookup/algorithms.py | codered-by-ec-council/Micro-Degree-in-Python-Security | cb16ed78ee38dad32e3909371edec8ff3ce6e6a7 | [
"MIT"
] | 4 | 2021-06-08T23:01:11.000Z | 2022-03-12T00:54:16.000Z | Chapter 16/Lookup/algorithms.py | codered-by-ec-council/Micro-Degree-in-Python-Security | cb16ed78ee38dad32e3909371edec8ff3ce6e6a7 | [
"MIT"
] | 5 | 2020-10-15T10:22:04.000Z | 2021-11-16T22:17:50.000Z | #!/usr/bin/env python3
'''
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will... | 23.464935 | 84 | 0.627629 |
aa61d3193d1f93969b18dcfab958b79720287b12 | 3,643 | py | Python | neurolang/region_solver.py | hndgzkn/NeuroLang | a3178d47f80bc0941440d9bb09e06c2f217b9566 | [
"BSD-3-Clause"
] | 1 | 2021-01-07T02:00:22.000Z | 2021-01-07T02:00:22.000Z | neurolang/region_solver.py | hndgzkn/NeuroLang | a3178d47f80bc0941440d9bb09e06c2f217b9566 | [
"BSD-3-Clause"
] | 207 | 2020-11-04T12:51:10.000Z | 2022-03-30T13:42:26.000Z | neurolang/region_solver.py | hndgzkn/NeuroLang | a3178d47f80bc0941440d9bb09e06c2f217b9566 | [
"BSD-3-Clause"
] | 6 | 2020-11-04T13:59:35.000Z | 2021-03-19T05:28:10.000Z | import typing
import re
from .CD_relations import cardinal_relation, inverse_directions
from .regions import Region, region_union
from .expression_walker import PatternWalker
from .expressions import Constant
REFINE_OVERLAPPING = True
| 31.678261 | 78 | 0.533626 |
aa64678b26839c7ab3d6b1c16d9887e4d904607c | 4,868 | py | Python | More/E00_Publications/Infographics/conditionsHierarchy.py | freder/PageBotExamples | eb4ced53a673b9376e8357afa9ea0795b022b13c | [
"Ruby",
"MIT"
] | 5 | 2020-06-20T22:01:23.000Z | 2021-08-06T04:39:50.000Z | More/E00_Publications/Infographics/conditionsHierarchy.py | freder/PageBotExamples | eb4ced53a673b9376e8357afa9ea0795b022b13c | [
"Ruby",
"MIT"
] | 5 | 2020-05-17T09:32:27.000Z | 2021-03-15T19:45:52.000Z | More/E00_Publications/Infographics/conditionsHierarchy.py | freder/PageBotExamples | eb4ced53a673b9376e8357afa9ea0795b022b13c | [
"Ruby",
"MIT"
] | 2 | 2021-02-25T19:07:45.000Z | 2022-01-09T21:14:06.000Z | # -----------------------------------------------------------------------------
#
# P A G E B O T E X A M P L E S
#
# Copyright (c) 2017 Thom Janssen <https://github.com/thomgb>
# www.pagebot.io
# Licensed under MIT conditions
#
# Supporting DrawBot, www.drawbot.com
# Supporting Flat, xxyxyz.or... | 24.462312 | 79 | 0.581553 |
aa64bf35cc2af88a116c7474f047c294202fae37 | 1,955 | py | Python | mcarch/model/file.py | Scotsguy/MCArchive | 89847bab722c6782fa53c7b11ee83f1f5b2d9f05 | [
"MIT"
] | null | null | null | mcarch/model/file.py | Scotsguy/MCArchive | 89847bab722c6782fa53c7b11ee83f1f5b2d9f05 | [
"MIT"
] | null | null | null | mcarch/model/file.py | Scotsguy/MCArchive | 89847bab722c6782fa53c7b11ee83f1f5b2d9f05 | [
"MIT"
] | null | null | null | import os
import enum
import hashlib
from urllib.parse import urljoin
from flask import url_for, current_app as app
from mcarch.app import db, get_b2bucket
def gen_b2_path(filename, sha):
"""Generates the path where a file should be stored in B2 based on name and hash."""
return os.path.join(sha, filename)
... | 31.031746 | 88 | 0.679284 |
aa66b44f404f54a5640fb09e472c1518a47d7552 | 5,142 | py | Python | taxi/migrations/0001_initial.py | alifelan/taxi-unico-web | edcbe8a8a9584350452fcea04a83247c5676b8f6 | [
"MIT"
] | 1 | 2021-05-26T09:06:08.000Z | 2021-05-26T09:06:08.000Z | taxi/migrations/0001_initial.py | alifelan/taxi-unico-web | edcbe8a8a9584350452fcea04a83247c5676b8f6 | [
"MIT"
] | 10 | 2019-04-13T00:08:17.000Z | 2019-05-09T10:43:06.000Z | taxi/migrations/0001_initial.py | alifelan/taxi-unico-web | edcbe8a8a9584350452fcea04a83247c5676b8f6 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-05-09 06:09
from django.db import migrations, models
import django.db.models.deletion
| 46.745455 | 154 | 0.571373 |
aa678b1085b17ea09b4872f0d8cdbfe36718c786 | 1,181 | py | Python | mainapp/migrations/0006_auto_20200308_1745.py | Raistlin11123/inquiry-soso | 380d27219a5855f9e25da90db47f85e46e5e8b5d | [
"MIT"
] | null | null | null | mainapp/migrations/0006_auto_20200308_1745.py | Raistlin11123/inquiry-soso | 380d27219a5855f9e25da90db47f85e46e5e8b5d | [
"MIT"
] | null | null | null | mainapp/migrations/0006_auto_20200308_1745.py | Raistlin11123/inquiry-soso | 380d27219a5855f9e25da90db47f85e46e5e8b5d | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2020-03-08 16:45
from django.db import migrations, models
| 30.282051 | 85 | 0.58171 |
aa6888c3b91fb826ed9f4b53bf760fb19c052e84 | 1,362 | py | Python | utils/youtube.py | ramrathi/baritone | 6a57aab99362b740903c0cd52f1f6cbb0e32909b | [
"MIT"
] | 3 | 2020-04-03T15:11:26.000Z | 2020-05-03T06:52:09.000Z | utils/youtube.py | ramrathi/baritone | 6a57aab99362b740903c0cd52f1f6cbb0e32909b | [
"MIT"
] | null | null | null | utils/youtube.py | ramrathi/baritone | 6a57aab99362b740903c0cd52f1f6cbb0e32909b | [
"MIT"
] | null | null | null | import subprocess
import scipy.io.wavfile as wav
import sys
import numpy as np
# import pyaudio
import time
import wave
import os
from pydub import AudioSegment
import pafy
from youtube_transcript_api import YouTubeTranscriptApi
from youtube_dl import YoutubeDL
dirname = os.path.dirname(os.path.abspath(__file__))
s... | 25.698113 | 86 | 0.607195 |
aa6a2735bc18f7d76cf04368018e139d17c5dd19 | 1,116 | py | Python | pepdb/cms_pages/migrations/0006_auto_20151024_2019.py | dchaplinsky/pep.org.ua | 8633a65fb657d7f04dbdb12eb8ae705fa6be67e3 | [
"MIT"
] | 7 | 2015-12-21T03:52:46.000Z | 2020-07-24T19:17:23.000Z | pepdb/cms_pages/migrations/0006_auto_20151024_2019.py | dchaplinsky/pep.org.ua | 8633a65fb657d7f04dbdb12eb8ae705fa6be67e3 | [
"MIT"
] | 12 | 2016-03-05T18:11:05.000Z | 2021-06-17T20:20:03.000Z | pepdb/cms_pages/migrations/0006_auto_20151024_2019.py | dchaplinsky/pep.org.ua | 8633a65fb657d7f04dbdb12eb8ae705fa6be67e3 | [
"MIT"
] | 4 | 2016-07-17T20:19:38.000Z | 2021-03-23T12:47:20.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import wagtail.wagtailcore.fields
| 36 | 228 | 0.648746 |
aa6aeec0b7ed691ded9f765e25e1d736dda9bbf4 | 1,255 | py | Python | autorop/leak/puts.py | Tanson/autorop | 0d2fc71cdcc9649a6006aee641a3808f884d7fc4 | [
"MIT"
] | null | null | null | autorop/leak/puts.py | Tanson/autorop | 0d2fc71cdcc9649a6006aee641a3808f884d7fc4 | [
"MIT"
] | null | null | null | autorop/leak/puts.py | Tanson/autorop | 0d2fc71cdcc9649a6006aee641a3808f884d7fc4 | [
"MIT"
] | null | null | null | from autorop import PwnState, arutil
from pwn import ROP
def puts(state: PwnState) -> PwnState:
"""Leak libc addresses using ``puts``.
This function leaks the libc addresses of ``__libc_start_main`` and ``puts``
using ``puts``, placing them in ``state.leaks``.
Arguments:
state: The current `... | 35.857143 | 85 | 0.619124 |
aa6d58be81bd3ec465617d1b907661af609ecd48 | 2,515 | py | Python | tests/unit/drivers/simple_vlan.py | gsilvis/haas | 70d4b5dec081b803c87f0295e7ae8dc3b2a76ce9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/unit/drivers/simple_vlan.py | gsilvis/haas | 70d4b5dec081b803c87f0295e7ae8dc3b2a76ce9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/unit/drivers/simple_vlan.py | gsilvis/haas | 70d4b5dec081b803c87f0295e7ae8dc3b2a76ce9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright 2013-2014 Massachusetts Open Cloud Contributors
#
# 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... | 34.452055 | 77 | 0.654076 |
aa6e9617b11941b64bd3afef174d9947aebe3d32 | 403 | py | Python | norm_test.py | szmybs/GOES-R-2017-HurricaneExtraction | 2bacc7e035183d89448835e30947f639cff2776c | [
"MIT"
] | null | null | null | norm_test.py | szmybs/GOES-R-2017-HurricaneExtraction | 2bacc7e035183d89448835e30947f639cff2776c | [
"MIT"
] | null | null | null | norm_test.py | szmybs/GOES-R-2017-HurricaneExtraction | 2bacc7e035183d89448835e30947f639cff2776c | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from extract import HurricaneExtraction
#npy_file = './Data/NpyData/LIDIA/20172450002.npz'
npy_file = './Data/NpyData/IRMA/20172531622.npz'
data = HurricaneExtraction.read_extraction_data(npy_file)
data = HurricaneExtraction.normalize_using_physics(data)
for d in ... | 23.705882 | 57 | 0.759305 |
aa7040dd6fc8f362a76b2ed6b5d28ac0731ddd6b | 910 | py | Python | util/get_weather_icons_map.py | multipolygon/esphome-configs | fb574cd6ffadcc6f5a1e1e89da8d4bd0b56845d8 | [
"MIT"
] | null | null | null | util/get_weather_icons_map.py | multipolygon/esphome-configs | fb574cd6ffadcc6f5a1e1e89da8d4bd0b56845d8 | [
"MIT"
] | null | null | null | util/get_weather_icons_map.py | multipolygon/esphome-configs | fb574cd6ffadcc6f5a1e1e89da8d4bd0b56845d8 | [
"MIT"
] | 1 | 2022-03-27T00:18:17.000Z | 2022-03-27T00:18:17.000Z | from urllib.request import urlopen
import json
import re
url = urlopen("https://raw.githubusercontent.com/Templarian/MaterialDesign/master/meta.json")
meta = [(i['name'], i['codepoint']) for i in json.loads(url.read()) if re.search('^weather-', i['name'])]
print('''---
esphome:
# ...
includes:
- weather_icon_... | 26 | 105 | 0.591209 |
aa706634207ec5cdf904d41b11723983513e464f | 3,913 | py | Python | network_anomaly/KDDCup99-LSTM/binary/lskerastest.py | kidrabit/Data-Visualization-Lab-RND | baa19ee4e9f3422a052794e50791495632290b36 | [
"Apache-2.0"
] | 1 | 2022-01-18T01:53:34.000Z | 2022-01-18T01:53:34.000Z | network_anomaly/UNSW-NB15-LSTM/binary/lskerastest.py | kidrabit/Data-Visualization-Lab-RND | baa19ee4e9f3422a052794e50791495632290b36 | [
"Apache-2.0"
] | null | null | null | network_anomaly/UNSW-NB15-LSTM/binary/lskerastest.py | kidrabit/Data-Visualization-Lab-RND | baa19ee4e9f3422a052794e50791495632290b36 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from sklearn.cross_validation import train_test_split
import pandas as pd
import numpy as np
np.random.seed(1337) # for reproducibility
from keras.preprocessing import sequence
from keras.utils import np_utils
from keras.models import Sequential
from keras.layers import Dense, Dro... | 29.201493 | 164 | 0.729108 |
aa707bae2c10ff673808c3e9ddea8f24a1136fa7 | 4,463 | py | Python | train.py | MannyKayy/PlayableVideoGeneration | 14133f94e14a40fc17f283e5b01c168bc45990b6 | [
"MIT"
] | 1 | 2021-06-19T11:34:29.000Z | 2021-06-19T11:34:29.000Z | train.py | MannyKayy/PlayableVideoGeneration | 14133f94e14a40fc17f283e5b01c168bc45990b6 | [
"MIT"
] | null | null | null | train.py | MannyKayy/PlayableVideoGeneration | 14133f94e14a40fc17f283e5b01c168bc45990b6 | [
"MIT"
] | null | null | null | import argparse
import importlib
import os
import torch
import torch.nn as nn
import torchvision
import numpy as np
from dataset.dataset_splitter import DatasetSplitter
from dataset.transforms import TransformsGenerator
from dataset.video_dataset import VideoDataset
from evaluation.action_sampler import OneHotActionS... | 40.572727 | 250 | 0.734484 |
aa70ac474ebd39afb7c876d6f6c1c99f03f6a7de | 2,545 | py | Python | src/gripit/edgelib/maxlinedev.py | yor1001/GripIt | a06b300df56473f692cbb9154d60525d35137ee3 | [
"MIT"
] | null | null | null | src/gripit/edgelib/maxlinedev.py | yor1001/GripIt | a06b300df56473f692cbb9154d60525d35137ee3 | [
"MIT"
] | null | null | null | src/gripit/edgelib/maxlinedev.py | yor1001/GripIt | a06b300df56473f692cbb9154d60525d35137ee3 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import
# MAXLINEDEV - Finds max deviation from a line in an edge contour.
#
# Function finds the point of maximum deviation from a line joining the
# endpoints of an edge contour... | 31.419753 | 91 | 0.630648 |
aa70d111c58a251e0d85de6d7587ec453c5870c3 | 997 | py | Python | common.py | tim-moody/mdwiki-cacher | a9aaa386c77c34b8e39f0b5a8a070e6ceff21560 | [
"CC0-1.0"
] | null | null | null | common.py | tim-moody/mdwiki-cacher | a9aaa386c77c34b8e39f0b5a8a070e6ceff21560 | [
"CC0-1.0"
] | null | null | null | common.py | tim-moody/mdwiki-cacher | a9aaa386c77c34b8e39f0b5a8a070e6ceff21560 | [
"CC0-1.0"
] | null | null | null | # common functions
import sys
import json
# taken from sp_lib | 28.485714 | 93 | 0.609829 |
aa7171ed1f15768b83ea9a034a29465b15d2d581 | 1,039 | py | Python | integration-test/291-483-suppress-historical-closed.py | roman-ianivskyy/vector-datasource | 3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92 | [
"MIT"
] | null | null | null | integration-test/291-483-suppress-historical-closed.py | roman-ianivskyy/vector-datasource | 3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92 | [
"MIT"
] | null | null | null | integration-test/291-483-suppress-historical-closed.py | roman-ianivskyy/vector-datasource | 3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
import dsl
from shapely.wkt import loads as wkt_loads
from . import FixtureTest
| 43.291667 | 247 | 0.636189 |
aa718898352cee72928a11efe02c9cc6a37ed12e | 2,454 | py | Python | dots_testsuite.py | nguyent2/Practice-with-Modules | a075447ceb00b2e2b6812775b2b8c069511c53e2 | [
"MIT"
] | null | null | null | dots_testsuite.py | nguyent2/Practice-with-Modules | a075447ceb00b2e2b6812775b2b8c069511c53e2 | [
"MIT"
] | null | null | null | dots_testsuite.py | nguyent2/Practice-with-Modules | a075447ceb00b2e2b6812775b2b8c069511c53e2 | [
"MIT"
] | null | null | null | /Learn more or give us feedback
######################################################################
# Author: Thy H. Nguyen
# TODO: Change this to your names
# Username: nguyent2
# TODO: Change this to your usernames
#
# Assignment: A06: It's in your Genes
#
# Purpose: A test suite for testing the a06_genes.py progr... | 32.72 | 115 | 0.624287 |
aa718ac8fc1ac872735a24111d8686444d3abf4f | 1,023 | py | Python | comparison_order_butter_cheby.py | ivanpauno/filter_design_examples | 1665db877251a4f9794e048cd099081af57d737b | [
"Apache-2.0"
] | null | null | null | comparison_order_butter_cheby.py | ivanpauno/filter_design_examples | 1665db877251a4f9794e048cd099081af57d737b | [
"Apache-2.0"
] | null | null | null | comparison_order_butter_cheby.py | ivanpauno/filter_design_examples | 1665db877251a4f9794e048cd099081af57d737b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Apr 13 11:03:51 2019
@author: ivanpauno
"""
import matplotlib.pyplot as plt
import numpy as np
if __name__ == '__main__':
main()
| 27.648649 | 67 | 0.607038 |
aa71d3a9bb29857114e644eeaaa3f518e6a6ce22 | 1,090 | py | Python | zipline/pipeline/common.py | lv-cha/zipline-chinese | 65928d98db46568409add0a9a404bc41729d0bb5 | [
"Apache-2.0"
] | 606 | 2017-04-07T03:49:37.000Z | 2022-03-21T06:56:14.000Z | zipline/pipeline/common.py | pm58/zipline-chinese | 86904cac4b6e928271f640910aa83675ce945b8b | [
"Apache-2.0"
] | 6 | 2017-10-04T06:03:14.000Z | 2020-06-05T06:49:49.000Z | zipline/pipeline/common.py | pm58/zipline-chinese | 86904cac4b6e928271f640910aa83675ce945b8b | [
"Apache-2.0"
] | 251 | 2017-04-07T00:55:17.000Z | 2022-03-31T05:33:14.000Z | """
Common constants for Pipeline.
"""
AD_FIELD_NAME = 'asof_date'
ANNOUNCEMENT_FIELD_NAME = 'announcement_date'
CASH_FIELD_NAME = 'cash'
CASH_AMOUNT_FIELD_NAME = 'cash_amount'
BUYBACK_ANNOUNCEMENT_FIELD_NAME = 'buyback_date'
DAYS_SINCE_PREV = 'days_since_prev'
DAYS_SINCE_PREV_DIVIDEND_ANNOUNCEMENT = 'days_since_prev_d... | 36.333333 | 79 | 0.844954 |
aa73ceee10ce4e7d09848f6bc69f8d1e2190fd5c | 2,220 | py | Python | akaocr/utils/runtime.py | qai-research/Efficient_Text_Detection | e5cfe51148cc4fbf4c4f3afede040e4ebd624e8b | [
"MIT"
] | 2 | 2021-04-28T04:13:09.000Z | 2021-06-05T04:11:11.000Z | akaocr/utils/runtime.py | qai-research/Efficient_Text_Detection | e5cfe51148cc4fbf4c4f3afede040e4ebd624e8b | [
"MIT"
] | 2 | 2021-05-06T13:49:52.000Z | 2021-05-14T08:45:13.000Z | akaocr/utils/runtime.py | qai-research/Efficient_Text_Detection | e5cfe51148cc4fbf4c4f3afede040e4ebd624e8b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
_____________________________________________________________________________
Created By : Nguyen Viet Bac - Bacnv6
Created Date: Mon November 03 10:00:00 VNT 2020
Project : AkaOCR core
___________________________________________________________________________... | 25.813953 | 101 | 0.682432 |
aa7564f0bdcd97403180bc4f639bc31610a2dc78 | 456 | py | Python | sample_problems/problems_with_solution23.py | adi01trip01/adi_workspace | f493b3ba84645eec3a57607243760a826880d1a3 | [
"MIT"
] | null | null | null | sample_problems/problems_with_solution23.py | adi01trip01/adi_workspace | f493b3ba84645eec3a57607243760a826880d1a3 | [
"MIT"
] | null | null | null | sample_problems/problems_with_solution23.py | adi01trip01/adi_workspace | f493b3ba84645eec3a57607243760a826880d1a3 | [
"MIT"
] | null | null | null | # Write a Python program to get the n (non-negative integer) copies of the first 2 characters of a given string.
# Return the n copies of the whole string if the length is less than 2
s = input("Enter a string: ")
if len(s) > 2:
n = int(input("Enter the number of copies: "))
print(copies(s, n))
else:
pr... | 24 | 112 | 0.638158 |
aa76e89131f556e4b895bbde1b48b9a5fe172a26 | 1,278 | py | Python | codeforces/binarySearch二分搜索/1400/1284B上升组合.py | yofn/pyacm | e573f8fdeea77513711f00c42f128795cbba65a6 | [
"Apache-2.0"
] | null | null | null | codeforces/binarySearch二分搜索/1400/1284B上升组合.py | yofn/pyacm | e573f8fdeea77513711f00c42f128795cbba65a6 | [
"Apache-2.0"
] | null | null | null | codeforces/binarySearch二分搜索/1400/1284B上升组合.py | yofn/pyacm | e573f8fdeea77513711f00c42f128795cbba65a6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#https://codeforces.com/problemset/problem/1284/B
#min.max..
#n=1e5,O(N**2)..
#
#1: sx+sysxsy
#2: sx,sy,()
#DP..; f(n+1)=f(n)+X; X=??
# s,X=(2n+1)
# s,smin/max(min/max?)..(..binary search??)
# ..
n = int(input())
sll = [list(map(int,input().split())) for _ in range(n)]
minl = []
maxl = []
f... | 25.058824 | 84 | 0.517997 |
aa7b7c8babb6becd9e4e564c3c915d139ea9f52e | 50 | py | Python | tests/regressiontests/auth_decorators/__init__.py | mdornseif/huDjango | ce6f256b2e3e9fec4af749aebcae81a973e8874b | [
"BSD-2-Clause"
] | null | null | null | tests/regressiontests/auth_decorators/__init__.py | mdornseif/huDjango | ce6f256b2e3e9fec4af749aebcae81a973e8874b | [
"BSD-2-Clause"
] | 1 | 2017-02-16T16:07:03.000Z | 2017-02-17T09:49:20.000Z | tests/regressiontests/auth_decorators/__init__.py | hudora/huDjango | c99ce38517d706973df8e97df48274ab9392f52e | [
"BSD-2-Clause"
] | null | null | null | """Test hudjango.auth.decorator functionality."""
| 25 | 49 | 0.76 |
aa7c2fe26948a573c0ecf561cfcced69727cd5a6 | 3,672 | py | Python | examples/ttt_wm_vs_human.py | pearlfranz20/AL_Core | 6592079330c7ec3ca264b86f8414970ddab06c0e | [
"MIT"
] | 10 | 2019-11-01T01:09:57.000Z | 2022-02-17T09:15:12.000Z | examples/ttt_wm_vs_human.py | pearlfranz20/AL_Core | 6592079330c7ec3ca264b86f8414970ddab06c0e | [
"MIT"
] | 40 | 2019-08-06T18:01:31.000Z | 2021-07-15T12:38:56.000Z | examples/ttt_wm_vs_human.py | pearlfranz20/AL_Core | 6592079330c7ec3ca264b86f8414970ddab06c0e | [
"MIT"
] | 6 | 2019-08-15T01:45:19.000Z | 2021-06-01T19:54:29.000Z | from apprentice.agents import SoarTechAgent
from apprentice.working_memory import ExpertaWorkingMemory
from apprentice.working_memory.representation import Sai
# from apprentice.learners.when_learners import q_learner
from ttt_simple import ttt_engine, ttt_oracle
if __name__ == "__main__":
# with experta knowled... | 31.930435 | 76 | 0.498094 |
aa7c9e46ce390c33e4950020c5b8e38f18d9c7b1 | 2,905 | py | Python | pic_carver.py | volf52/black_hat_python | 063c241db473d3ef25782efc17f651c3aa66b4f8 | [
"MIT"
] | null | null | null | pic_carver.py | volf52/black_hat_python | 063c241db473d3ef25782efc17f651c3aa66b4f8 | [
"MIT"
] | null | null | null | pic_carver.py | volf52/black_hat_python | 063c241db473d3ef25782efc17f651c3aa66b4f8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
@author : 'Muhammad Arslan <rslnrkmt2552@gmail.com>'
"""
import re
import zlib
import cv2
from scapy.all import *
pics = "pictues"
faces_dir = "faces"
pcap_file = "bhp.pcap"
carved_images, faces_detected = http_assembler(pcap_file)
print "Extracted: %d images" % carved_images
prin... | 25.9375 | 87 | 0.571084 |
aa7e5a273a38c1c336f9c6538edfafbe1859aa62 | 1,536 | py | Python | py/testdir_hosts/test_rf_311M_rows_hosts.py | vkuznet/h2o | e08f7014f228cbaecfb21f57379970e6a3ac0756 | [
"Apache-2.0"
] | null | null | null | py/testdir_hosts/test_rf_311M_rows_hosts.py | vkuznet/h2o | e08f7014f228cbaecfb21f57379970e6a3ac0756 | [
"Apache-2.0"
] | null | null | null | py/testdir_hosts/test_rf_311M_rows_hosts.py | vkuznet/h2o | e08f7014f228cbaecfb21f57379970e6a3ac0756 | [
"Apache-2.0"
] | null | null | null | import unittest, sys, time
sys.path.extend(['.','..','py'])
import h2o_cmd, h2o, h2o_hosts, h2o_browse as h2b, h2o_import as h2i
# Uses your username specific json: pytest_config-<username>.json
# copy pytest_config-simple.json and modify to your needs.
if __name__ == '__main__':
h2o.unit_main()
| 35.72093 | 108 | 0.647786 |
aa7f45d29566c608c5cb4116ab2b18d2257d27b0 | 1,229 | py | Python | .ipynb_checkpoints/config-checkpoint.py | BillKiller/ECG_shandong | bb73f3c5eccfe68badf0e783ca1305783ceeb0fc | [
"Apache-2.0"
] | null | null | null | .ipynb_checkpoints/config-checkpoint.py | BillKiller/ECG_shandong | bb73f3c5eccfe68badf0e783ca1305783ceeb0fc | [
"Apache-2.0"
] | null | null | null | .ipynb_checkpoints/config-checkpoint.py | BillKiller/ECG_shandong | bb73f3c5eccfe68badf0e783ca1305783ceeb0fc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
@time: 2019/9/8 18:45
@ author: javis
'''
import os
config = Config()
| 19.822581 | 63 | 0.598861 |
aa7ffb92cb8baa6e29735ecc7cc7fe43b3457d06 | 974 | py | Python | integration-tests/steps/test_update_stack.py | rootifera/sceptre | 0a1aeb8305c38dbd5c6c6cc6ec0cae4d468abdcf | [
"Apache-2.0"
] | 2 | 2021-05-16T09:43:29.000Z | 2022-03-15T10:21:54.000Z | integration-tests/steps/test_update_stack.py | joseroubert08/sceptre | 652b844ce69aecfe0ed31d918a6b49fd954a23bd | [
"Apache-2.0"
] | null | null | null | integration-tests/steps/test_update_stack.py | joseroubert08/sceptre | 652b844ce69aecfe0ed31d918a6b49fd954a23bd | [
"Apache-2.0"
] | null | null | null | from behave import *
import subprocess
import os
import boto3
| 25.631579 | 69 | 0.63039 |
aa80d9ba0e36ab051a2ec4dfeed5a0569841b3bc | 840 | py | Python | test.py | ask-santosh/Document-Matching | 2b5a1be3e8e460029121e43b16fc676ed3874094 | [
"Apache-2.0"
] | null | null | null | test.py | ask-santosh/Document-Matching | 2b5a1be3e8e460029121e43b16fc676ed3874094 | [
"Apache-2.0"
] | null | null | null | test.py | ask-santosh/Document-Matching | 2b5a1be3e8e460029121e43b16fc676ed3874094 | [
"Apache-2.0"
] | null | null | null | import cv2
import matplotlib.pyplot as plt
import easyocr
reader = easyocr.Reader(['en'], gpu=False)
image = cv2.imread('results/JK_21_05/page_1.jpg')
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
dilated = cv2.dilate(image, None, iterations=1)
eroded = cv2.erode(image, None, iterations=1)
res = reader.readtext(erod... | 31.111111 | 97 | 0.646429 |
aa819751141039d158103e1e22f76244cbd9c7bf | 874 | py | Python | configs/_base_/models/x3d.py | ptoupas/mmaction2 | 1e1911295b63cffeba4c6f4809cb74d291c4505b | [
"Apache-2.0"
] | null | null | null | configs/_base_/models/x3d.py | ptoupas/mmaction2 | 1e1911295b63cffeba4c6f4809cb74d291c4505b | [
"Apache-2.0"
] | null | null | null | configs/_base_/models/x3d.py | ptoupas/mmaction2 | 1e1911295b63cffeba4c6f4809cb74d291c4505b | [
"Apache-2.0"
] | null | null | null | # model settings
model = dict(
type='Recognizer3D',
backbone=dict(type='X3D', frozen_stages = -1, gamma_w=1, gamma_b=2.25, gamma_d=2.2),
cls_head=dict(
type='X3DHead',
in_channels=432,
num_classes=400,
multi_class=False,
spatial_type='avg',
dropout_ratio=0.7,
... | 29.133333 | 88 | 0.606407 |
aa84562ff31e7d467b614463b77b32138e9f4492 | 372 | py | Python | amktools/util.py | jimbo1qaz/amktools | 25a65d7c9c09a2622065fcacdaed82e1f9d7fb2c | [
"BSD-3-Clause"
] | 2 | 2020-03-14T06:13:03.000Z | 2022-03-03T17:53:51.000Z | amktools/util.py | nyanpasu64/amktools | 25a65d7c9c09a2622065fcacdaed82e1f9d7fb2c | [
"BSD-3-Clause"
] | 14 | 2018-06-19T14:48:58.000Z | 2018-10-28T07:02:27.000Z | amktools/util.py | jimbo1qaz/amktools | 25a65d7c9c09a2622065fcacdaed82e1f9d7fb2c | [
"BSD-3-Clause"
] | null | null | null | from typing import TypeVar, Optional
T = TypeVar("T")
| 20.666667 | 64 | 0.594086 |
aa8496130dc2cec7262e9b446640da8f5aad4fbe | 1,589 | py | Python | tello_detection_v2.py | m0dzi77a/jetson-nano-drone-surveillance | a3846e1e7b9d1656f5fada8fabc4b53e5264973e | [
"MIT"
] | null | null | null | tello_detection_v2.py | m0dzi77a/jetson-nano-drone-surveillance | a3846e1e7b9d1656f5fada8fabc4b53e5264973e | [
"MIT"
] | null | null | null | tello_detection_v2.py | m0dzi77a/jetson-nano-drone-surveillance | a3846e1e7b9d1656f5fada8fabc4b53e5264973e | [
"MIT"
] | null | null | null | from djitellopy import Tello
import cv2, math
import numpy as np
import jetson.inference
import jetson.utils
from threading import Thread
import time
net = jetson.inference.detectNet("ssd-mobilenet-v1", threshold=0.5) #facenet is working; ssd-mobilenet-v1
drohne = Tello()
drohne.connect()
print(drohne.get_battery())
... | 24.828125 | 105 | 0.684707 |
aa84e85a9b53b2b65be434c51bb6eb739b861665 | 3,638 | py | Python | sql_judge/model/load_types.py | r4ulill0/gui_dbjudge | 7c421c6f2fe1281f95e624242338b3e020ee5f28 | [
"MIT"
] | 1 | 2020-12-11T10:45:58.000Z | 2020-12-11T10:45:58.000Z | sql_judge/model/load_types.py | r4ulill0/gui_dbjudge | 7c421c6f2fe1281f95e624242338b3e020ee5f28 | [
"MIT"
] | null | null | null | sql_judge/model/load_types.py | r4ulill0/gui_dbjudge | 7c421c6f2fe1281f95e624242338b3e020ee5f28 | [
"MIT"
] | null | null | null | from PyQt5.QtCore import QAbstractTableModel, QAbstractItemModel
from PyQt5.QtCore import Qt, QModelIndex, pyqtSlot
| 33.685185 | 75 | 0.631116 |
aa8608fd488af6aaed7a72ebd77b25da200b3ddd | 3,752 | py | Python | examples/example1.py | michael-riha/gstreamer-101-python | be281f91ebdd260ce23f747cc32e1ae2133410e9 | [
"MIT"
] | 4 | 2020-06-09T14:21:26.000Z | 2021-07-31T19:30:19.000Z | examples/example1.py | michael-riha/gstreamer-101-python | be281f91ebdd260ce23f747cc32e1ae2133410e9 | [
"MIT"
] | null | null | null | examples/example1.py | michael-riha/gstreamer-101-python | be281f91ebdd260ce23f747cc32e1ae2133410e9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# mix of:
# https://www.programcreek.com/python/example/88577/gi.repository.Gst.Pipeline
# https://github.com/GStreamer/gst-python/blob/master/examples/helloworld.py
# http://lifestyletransfer.com/how-to-launch-gstreamer-pipeline-in-python/
import sys
import collections
from pprint import pprint... | 32.344828 | 142 | 0.691365 |
aa8996944e86f8abe0a588ebb23f714fffd14e70 | 3,464 | py | Python | tests/server1_test.py | kalebswartz7/sirepo | 8d1f2b3914cf9622eaae6b0bf32e23e38e4e5972 | [
"Apache-2.0"
] | null | null | null | tests/server1_test.py | kalebswartz7/sirepo | 8d1f2b3914cf9622eaae6b0bf32e23e38e4e5972 | [
"Apache-2.0"
] | null | null | null | tests/server1_test.py | kalebswartz7/sirepo | 8d1f2b3914cf9622eaae6b0bf32e23e38e4e5972 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
u"""Test simulationSerial
:copyright: Copyright (c) 2016 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
from __future__ import absolute_import, division, print_function
import pytest
pytest.importorskip('srwl_bl')
#: Used for a sanity check o... | 29.862069 | 101 | 0.610277 |
aa8a28180d9f5e87c7bd636c0ff1fa82ab7cd53e | 1,306 | py | Python | kg_nodeexporter/tests/test_builder.py | RangelReale/kg_nodeexporter | e8e2635940d83f05b674414489ea70519d881fa4 | [
"MIT"
] | null | null | null | kg_nodeexporter/tests/test_builder.py | RangelReale/kg_nodeexporter | e8e2635940d83f05b674414489ea70519d881fa4 | [
"MIT"
] | null | null | null | kg_nodeexporter/tests/test_builder.py | RangelReale/kg_nodeexporter | e8e2635940d83f05b674414489ea70519d881fa4 | [
"MIT"
] | null | null | null | import unittest
from kubragen import KubraGen
from kubragen.jsonpatch import FilterJSONPatches_Apply, ObjectFilter, FilterJSONPatch
from kubragen.provider import Provider_Generic
from kg_nodeexporter import NodeExporterBuilder, NodeExporterOptions
| 42.129032 | 113 | 0.701378 |
aa8a95508ab94b965d527ae1816936f597cbd54c | 1,349 | py | Python | docs/ASH/notebooks/object-segmentation-on-azure-stack/score.py | RichardZhaoW/AML-Kubernetes | dd699c484c0811bc2b7a21f80f19e0c40832acdc | [
"MIT"
] | 176 | 2019-07-03T00:20:15.000Z | 2022-03-14T07:51:22.000Z | docs/ASH/notebooks/object-segmentation-on-azure-stack/score.py | RichardZhaoW/AML-Kubernetes | dd699c484c0811bc2b7a21f80f19e0c40832acdc | [
"MIT"
] | 121 | 2019-06-24T20:47:27.000Z | 2022-03-28T02:16:18.000Z | docs/ASH/notebooks/object-segmentation-on-azure-stack/score.py | RichardZhaoW/AML-Kubernetes | dd699c484c0811bc2b7a21f80f19e0c40832acdc | [
"MIT"
] | 144 | 2019-06-18T18:48:43.000Z | 2022-03-31T12:14:46.000Z | import os
import json
import time
import torch
# Called when the deployed service starts
# Handle requests to the service
| 31.372093 | 87 | 0.631579 |
aa8aecad2be10769e57043eef6e4e9a70e4c119c | 5,023 | py | Python | acos_client/v21/slb/virtual_port.py | jjmanzer/acos-client | a35af927afa0d07ea6c7c172c1ae2ebe8ec6d10c | [
"Apache-2.0"
] | null | null | null | acos_client/v21/slb/virtual_port.py | jjmanzer/acos-client | a35af927afa0d07ea6c7c172c1ae2ebe8ec6d10c | [
"Apache-2.0"
] | null | null | null | acos_client/v21/slb/virtual_port.py | jjmanzer/acos-client | a35af927afa0d07ea6c7c172c1ae2ebe8ec6d10c | [
"Apache-2.0"
] | null | null | null | # Copyright 2014, Doug Wiegley, A10 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 appli... | 34.641379 | 98 | 0.601433 |
aa8b120c78b48885a14d17efcfc8523380e3b89e | 388 | py | Python | base/struct_data.py | cateatfish108/AutoTest | 8697aadd4c60c6a7cb435f784fc5c588805067bf | [
"MIT"
] | null | null | null | base/struct_data.py | cateatfish108/AutoTest | 8697aadd4c60c6a7cb435f784fc5c588805067bf | [
"MIT"
] | null | null | null | base/struct_data.py | cateatfish108/AutoTest | 8697aadd4c60c6a7cb435f784fc5c588805067bf | [
"MIT"
] | null | null | null | #coding:utf-8
#
#
# | 12.933333 | 21 | 0.474227 |
aa8b89cc9bb68c461a7f8b894c654bdcdd501e2a | 2,000 | py | Python | pox/info/debug_deadlock.py | korrigans84/pox_network | cd58d95d97c94b3d139bc2026fd1be0a30987911 | [
"Apache-2.0"
] | 416 | 2015-01-05T18:16:36.000Z | 2022-03-28T21:44:26.000Z | pox/info/debug_deadlock.py | korrigans84/pox_network | cd58d95d97c94b3d139bc2026fd1be0a30987911 | [
"Apache-2.0"
] | 140 | 2015-01-18T23:32:34.000Z | 2022-03-17T05:40:24.000Z | pox/info/debug_deadlock.py | korrigans84/pox_network | cd58d95d97c94b3d139bc2026fd1be0a30987911 | [
"Apache-2.0"
] | 344 | 2015-01-08T06:44:23.000Z | 2022-03-26T04:06:27.000Z | # Copyright 2012 James McCauley
#
# 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 writi... | 28.169014 | 74 | 0.7135 |
aa8c0c3cea083104acd36512910c56a34a5f2037 | 850 | py | Python | src/test/chirc/tests/fixtures.py | Schrotty/sIRC | c2edf179651794ddc75ea26a69429933ab04809d | [
"MIT"
] | 2 | 2019-03-26T06:22:50.000Z | 2019-03-26T11:16:25.000Z | test/tests/chirc/tests/fixtures.py | MU001999/npcp | af0f8c33ef518d01580a95dcaea3951b1fa7087c | [
"MIT"
] | 1 | 2016-05-02T19:52:25.000Z | 2016-05-03T20:37:16.000Z | test/tests/chirc/tests/fixtures.py | MU001999/npcp | af0f8c33ef518d01580a95dcaea3951b1fa7087c | [
"MIT"
] | null | null | null | channels1 = { "#test1": ("@user1", "user2", "user3"),
"#test2": ("@user4", "user5", "user6"),
"#test3": ("@user7", "user8", "user9")
}
channels2 = { "#test1": ("@user1", "user2", "user3"),
"#test2": ("@user4", "user5", "user6"),
"#test3": ("@user7", "... | 42.5 | 73 | 0.372941 |
aa8c8dfa05d8f4d2b3026058517396daf687dbef | 20,989 | py | Python | src/annalist_root/annalist/models/entityfinder.py | gklyne/annalist | 82e7ef2d56a400325e7618fa9e590072ee8a71d3 | [
"MIT"
] | 18 | 2015-02-20T23:09:13.000Z | 2020-11-13T06:06:43.000Z | src/annalist_root/annalist/models/entityfinder.py | gklyne/annalist | 82e7ef2d56a400325e7618fa9e590072ee8a71d3 | [
"MIT"
] | 30 | 2015-01-03T09:56:28.000Z | 2021-06-10T20:58:55.000Z | src/annalist_root/annalist/models/entityfinder.py | gklyne/annalist | 82e7ef2d56a400325e7618fa9e590072ee8a71d3 | [
"MIT"
] | 5 | 2015-02-02T09:01:23.000Z | 2018-06-14T20:05:28.000Z | from __future__ import unicode_literals
from __future__ import absolute_import, division, print_function
"""
This module contains (and isolates) logic used to find entities based on entity type,
list selection criteria and search terms.
"""
__author__ = "Graham Klyne (GK@ACM.ORG)"
__copyright__ = "Copyright 20... | 38.441392 | 112 | 0.554529 |
aa8d4e3a21127f714c7d16f0c3d1dca3b4a21610 | 3,029 | py | Python | screengrab.py | denosawr/fairdyne-ai | cd275ecbf12d239fd2705090a7632174e6f2a8a7 | [
"MIT"
] | null | null | null | screengrab.py | denosawr/fairdyne-ai | cd275ecbf12d239fd2705090a7632174e6f2a8a7 | [
"MIT"
] | null | null | null | screengrab.py | denosawr/fairdyne-ai | cd275ecbf12d239fd2705090a7632174e6f2a8a7 | [
"MIT"
] | null | null | null | from mss import mss
from PIL import Image
def screengrab(monitor=0, output="screenshot.png"):
""" Uses MSS to capture a screenshot quickly. """
sct = mss()
monitors = sct.enum_display_monitors()
scale = 1
game_x = 300*scale
game_y = 300*scale
mon_x = monitors[monitor]["left"]
mon_y = ... | 28.308411 | 97 | 0.528557 |
aa8f41fdb7d2b4f91adbdaae406e59a5680747b1 | 3,829 | py | Python | camper/handlers/users/edit.py | mrtopf/camper | 7016539f92202bbea608c6d53ce19097d4ad931d | [
"MIT"
] | 13 | 2016-03-13T02:33:39.000Z | 2021-04-01T13:09:12.000Z | camper/handlers/users/edit.py | comlounge/camper | 7016539f92202bbea608c6d53ce19097d4ad931d | [
"MIT"
] | 122 | 2016-03-10T09:28:09.000Z | 2021-09-07T23:49:05.000Z | camper/handlers/users/edit.py | mrtopf/camper | 7016539f92202bbea608c6d53ce19097d4ad931d | [
"MIT"
] | 5 | 2017-01-11T22:00:57.000Z | 2020-04-26T14:03:32.000Z | #encoding=utf8
from starflyer import Handler, redirect, asjson
from camper import BaseForm, db, BaseHandler
from camper import logged_in, is_admin
from wtforms import *
from sfext.babel import T
from camper.handlers.forms import *
import werkzeug.exceptions
from bson import ObjectId
from camper.handlers.images import ... | 41.619565 | 254 | 0.630713 |
aa91f44f3777df08b95fda1ce748bac56394b3f3 | 4,210 | py | Python | scripts/citation_extractor/citation_extractor.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 39 | 2015-03-30T14:03:42.000Z | 2022-03-16T16:50:33.000Z | scripts/citation_extractor/citation_extractor.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 670 | 2015-02-11T11:08:09.000Z | 2022-03-21T09:27:57.000Z | scripts/citation_extractor/citation_extractor.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 54 | 2015-02-13T14:09:52.000Z | 2022-01-24T13:57:09.000Z | import argparse
import h5py
import sys
import os
from savu.version import __version__
def __check_input_params(args):
""" Check for required input arguments.
"""
if len(args) != 2:
print("Input and output filename need to be specified")
print("Exiting with error code 1 - incorrect numb... | 32.890625 | 75 | 0.592399 |
aa93c24856d615e9328af105c675a5a9cd2f9c75 | 25,124 | py | Python | src/predict_ball_pos/src/predict_ball_position.py | diddytpq/Predict-Tennisball-LandingPoint | 0ae4a9ff45fd4dd82b4b4e3cc2533e7fd5d1506a | [
"MIT"
] | null | null | null | src/predict_ball_pos/src/predict_ball_position.py | diddytpq/Predict-Tennisball-LandingPoint | 0ae4a9ff45fd4dd82b4b4e3cc2533e7fd5d1506a | [
"MIT"
] | null | null | null | src/predict_ball_pos/src/predict_ball_position.py | diddytpq/Predict-Tennisball-LandingPoint | 0ae4a9ff45fd4dd82b4b4e3cc2533e7fd5d1506a | [
"MIT"
] | null | null | null | #! /home/drcl_yang/anaconda3/envs/py36/bin/python
from pathlib import Path
import sys
FILE = Path(__file__).absolute()
sys.path.append(FILE.parents[0].as_posix()) # add code to path
path = str(FILE.parents[0])
import numpy as np
from sympy import Symbol, solve
import time
import roslib
import rospy
from std_msgs... | 35.942775 | 202 | 0.589715 |
aa95b0a5becffa05a70a8eaa0b843668b5455d7e | 14,697 | py | Python | methylize/genome_browser.py | FoxoTech/methylize | 383d7beebfd62d858c4fb7248e027f8faa2862dc | [
"MIT"
] | 2 | 2021-12-27T22:46:36.000Z | 2022-03-08T17:13:29.000Z | methylize/genome_browser.py | FoxoTech/methylize | 383d7beebfd62d858c4fb7248e027f8faa2862dc | [
"MIT"
] | 4 | 2021-07-15T18:43:56.000Z | 2022-03-09T21:29:55.000Z | methylize/genome_browser.py | FoxoTech/methylize | 383d7beebfd62d858c4fb7248e027f8faa2862dc | [
"MIT"
] | 1 | 2022-03-07T06:02:41.000Z | 2022-03-07T06:02:41.000Z | import time
import pymysql # for pulling UCSC data
import pandas as pd
from pathlib import Path
import logging
# app
from .progress_bar import * # tqdm, context-friendly
LOGGER = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
logging.getLogger('numexpr').setLevel(logging.WARNING)
# these login st... | 55.044944 | 192 | 0.669048 |
aa95d6856b327f32c668b348733f9e3447d221f2 | 104 | py | Python | node_modules/python-shell/test/python/echo_json.py | brenocg29/TP1RedesInteligentes | 3b73b3567089f9eb2e475ec8402113bf8803bb59 | [
"Apache-2.0"
] | 22 | 2016-08-23T11:27:37.000Z | 2022-03-01T04:15:20.000Z | node_modules/python-shell/test/python/echo_json.py | brenocg29/TP1RedesInteligentes | 3b73b3567089f9eb2e475ec8402113bf8803bb59 | [
"Apache-2.0"
] | 68 | 2015-06-25T17:13:22.000Z | 2017-05-08T16:01:47.000Z | node_modules/python-shell/test/python/echo_json.py | brenocg29/TP1RedesInteligentes | 3b73b3567089f9eb2e475ec8402113bf8803bb59 | [
"Apache-2.0"
] | 10 | 2017-05-06T19:09:41.000Z | 2021-10-16T17:55:02.000Z | import sys, json
# simple JSON echo script
for line in sys.stdin:
print json.dumps(json.loads(line))
| 17.333333 | 36 | 0.740385 |
aa97298a7164be0094cd007d6b0ccc9b510f720f | 329 | py | Python | test.py | sxhfut/Kashgari | efc9510ed53f5bb78183e66d96d57a55cc290a91 | [
"MIT"
] | 1 | 2019-01-26T15:18:07.000Z | 2019-01-26T15:18:07.000Z | test.py | sxhfut/Kashgari | efc9510ed53f5bb78183e66d96d57a55cc290a91 | [
"MIT"
] | null | null | null | test.py | sxhfut/Kashgari | efc9510ed53f5bb78183e66d96d57a55cc290a91 | [
"MIT"
] | null | null | null | # encoding: utf-8
"""
@author: BrikerMan
@contact: eliyar917@gmail.com
@blog: https://eliyar.biz
@version: 1.0
@license: Apache Licence
@file: test.py.py
@time: 2019-01-25 14:43
"""
import unittest
from tests import *
from kashgari.utils.logger import init_logger
init_logger()
if __name__ == '__main__':
unittes... | 15.666667 | 45 | 0.717325 |
aa9a7b51d2199fe8ca1968592f12f16f55f4da67 | 536 | py | Python | crossasr/text.py | mhilmiasyrofi/CrossASRv2 | 202b9a7caadf5f8d6f115f776526960af35a73a3 | [
"MIT"
] | 3 | 2021-05-12T02:48:06.000Z | 2021-12-21T14:45:56.000Z | crossasr/text.py | mhilmiasyrofi/CrossASRv2 | 202b9a7caadf5f8d6f115f776526960af35a73a3 | [
"MIT"
] | null | null | null | crossasr/text.py | mhilmiasyrofi/CrossASRv2 | 202b9a7caadf5f8d6f115f776526960af35a73a3 | [
"MIT"
] | 1 | 2021-06-14T11:15:35.000Z | 2021-06-14T11:15:35.000Z | import functools
| 20.615385 | 62 | 0.587687 |
aa9c166f4f3a357bb68cf49d28d3ae8d2761ad49 | 1,661 | py | Python | models/Forest.py | guitassinari/random-forest | 7e679f21da8f39c36bf3fcd3d02f066bad6f0305 | [
"MIT"
] | null | null | null | models/Forest.py | guitassinari/random-forest | 7e679f21da8f39c36bf3fcd3d02f066bad6f0305 | [
"MIT"
] | 1 | 2019-05-30T12:16:07.000Z | 2019-05-30T12:16:07.000Z | models/Forest.py | guitassinari/machine-learning | 7e679f21da8f39c36bf3fcd3d02f066bad6f0305 | [
"MIT"
] | 1 | 2019-05-10T20:22:23.000Z | 2019-05-10T20:22:23.000Z | from models.DecisionTree import DecisionTree
| 38.627907 | 92 | 0.660446 |
aaa22c2733b8a63c15dd9acde1ab8ad0c3984613 | 2,358 | py | Python | gestao_contato/tests.py | rbiassusi/gesta_contatos | cb0c391f99843cd637627ed3c62c9afddc7e4047 | [
"MIT"
] | null | null | null | gestao_contato/tests.py | rbiassusi/gesta_contatos | cb0c391f99843cd637627ed3c62c9afddc7e4047 | [
"MIT"
] | null | null | null | gestao_contato/tests.py | rbiassusi/gesta_contatos | cb0c391f99843cd637627ed3c62c9afddc7e4047 | [
"MIT"
] | 1 | 2019-01-07T00:48:42.000Z | 2019-01-07T00:48:42.000Z | # -*- coding: utf-8 -*-
from django.test import TestCase, Client
from models import Contato
import json
| 40.655172 | 153 | 0.607718 |
aaa2a22421918ddfde6678f1b564035567b5ee57 | 2,073 | py | Python | bouncy.py | kary1806/bouncy | afbd8a2e030cd51c0c8b84062ce7aa2b51f549df | [
"MIT"
] | null | null | null | bouncy.py | kary1806/bouncy | afbd8a2e030cd51c0c8b84062ce7aa2b51f549df | [
"MIT"
] | null | null | null | bouncy.py | kary1806/bouncy | afbd8a2e030cd51c0c8b84062ce7aa2b51f549df | [
"MIT"
] | null | null | null | from itertools import count, tee
test = Bouncy(99)
| 28.39726 | 102 | 0.554752 |
aaa40f7d32c94661f35c79a2fb1ee27a71d6e4e9 | 909 | py | Python | pipeline.py | ankitshah009/BioASQ-Rabbit | 1d3073fbcdebb58b91788b6c2ab0ad9380cb2498 | [
"Apache-2.0"
] | 1 | 2019-01-29T13:37:45.000Z | 2019-01-29T13:37:45.000Z | pipeline.py | ankitshah009/BioASQ-Rabbit | 1d3073fbcdebb58b91788b6c2ab0ad9380cb2498 | [
"Apache-2.0"
] | 1 | 2018-08-27T21:02:24.000Z | 2018-08-27T21:02:24.000Z | pipeline.py | ankitshah009/BioASQ-Rabbit | 1d3073fbcdebb58b91788b6c2ab0ad9380cb2498 | [
"Apache-2.0"
] | 8 | 2018-03-26T17:36:39.000Z | 2019-02-28T14:23:25.000Z | #!/usr/bin/env python
import sys
from deiis.rabbit import Message, MessageBus
from deiis.model import Serializer, DataSet, Question
if __name__ == '__main__':
if len(sys.argv) == 1:
print 'Usage: python pipeline.py <data.json>'
exit(1)
# filename = 'data/training.json'
filename = sys.argv... | 28.40625 | 56 | 0.641364 |
aaa4c207cfec938248e0931caed06acd8c3825c0 | 1,100 | py | Python | 106 Construct Binary Tree from Preorder and Inorder Traversal.py | gavinfish/LeetCode | 7b5461a7c3cd1b19ddb320a5fc761240551cf75a | [
"MIT"
] | 1 | 2019-09-02T14:30:23.000Z | 2019-09-02T14:30:23.000Z | 106 Construct Binary Tree from Preorder and Inorder Traversal.py | qicst23/LeetCode-pythonSolu | 35064d52f9344494330261cd59da2e8d33f8bfdb | [
"MIT"
] | null | null | null | 106 Construct Binary Tree from Preorder and Inorder Traversal.py | qicst23/LeetCode-pythonSolu | 35064d52f9344494330261cd59da2e8d33f8bfdb | [
"MIT"
] | 3 | 2018-04-09T20:48:43.000Z | 2019-09-02T14:30:37.000Z | """
Given preorder and inorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
"""
__author__ = 'Danyang'
| 26.829268 | 85 | 0.600909 |
aaa51a521d3a0300cbf24d8410ea883d91cf4af5 | 259 | py | Python | Python/python_study_4/page13/script.py | zharmedia386/Progate-Course-Repo | 0dec6bd2d5594b1624251a74f6ebcf8266c449ba | [
"MIT"
] | null | null | null | Python/python_study_4/page13/script.py | zharmedia386/Progate-Course-Repo | 0dec6bd2d5594b1624251a74f6ebcf8266c449ba | [
"MIT"
] | null | null | null | Python/python_study_4/page13/script.py | zharmedia386/Progate-Course-Repo | 0dec6bd2d5594b1624251a74f6ebcf8266c449ba | [
"MIT"
] | null | null | null | from menu_item import MenuItem
# Move the code above to menu_item.py
# Import the MenuItem class from menu_item.py
menu_item1 = MenuItem('Sandwich', 5)
print(menu_item1.info())
result = menu_item1.get_total_price(4)
print('Your total is $' + str(result))
| 21.583333 | 45 | 0.756757 |
aaa58dde0227337d66c75dfc5e8aed3813f137aa | 398 | py | Python | ipysimulate/tools.py | JoelForamitti/ipysimulate | 06753f9ef48c82b96b1b2c736accee3dcbbf1a22 | [
"BSD-3-Clause"
] | 5 | 2021-06-03T06:38:38.000Z | 2021-12-27T17:33:06.000Z | ipysimulate/tools.py | JoelForamitti/ipysimulate | 06753f9ef48c82b96b1b2c736accee3dcbbf1a22 | [
"BSD-3-Clause"
] | null | null | null | ipysimulate/tools.py | JoelForamitti/ipysimulate | 06753f9ef48c82b96b1b2c736accee3dcbbf1a22 | [
"BSD-3-Clause"
] | null | null | null | def make_list(element, keep_none=False):
""" Turns element into a list of itself
if it is not of type list or tuple. """
if element is None and not keep_none:
element = [] # Convert none to empty list
if not isinstance(element, (list, tuple, set)):
element = [element]
elif isinstan... | 33.166667 | 51 | 0.640704 |
aaa591a53fa83f8defb9c29838d54ab4f867449f | 392 | py | Python | 2048/View.py | nsiegner/AI-ML-learning | 885c7a1e519a601aafe646419b8d4b6f683f590b | [
"Apache-2.0"
] | 1 | 2021-07-04T08:18:21.000Z | 2021-07-04T08:18:21.000Z | 2048/View.py | nsiegner/AI-ML-learning | 885c7a1e519a601aafe646419b8d4b6f683f590b | [
"Apache-2.0"
] | 2 | 2021-07-04T13:39:51.000Z | 2021-07-04T13:41:25.000Z | 2048/View.py | nsiegner/AI-ML-learning | 885c7a1e519a601aafe646419b8d4b6f683f590b | [
"Apache-2.0"
] | null | null | null | import tkinter as tk
| 28 | 68 | 0.540816 |
aaa6b62d2482defbe3a9a248af3f048c7de3d0b9 | 310 | py | Python | other tests/test_6_create_record_label.py | pavelwearevolt/Cross_Edit_TestsAutomatization | 953691244d86c5832fe2a2705841711939a353a5 | [
"Apache-2.0"
] | null | null | null | other tests/test_6_create_record_label.py | pavelwearevolt/Cross_Edit_TestsAutomatization | 953691244d86c5832fe2a2705841711939a353a5 | [
"Apache-2.0"
] | null | null | null | other tests/test_6_create_record_label.py | pavelwearevolt/Cross_Edit_TestsAutomatization | 953691244d86c5832fe2a2705841711939a353a5 | [
"Apache-2.0"
] | null | null | null | __author__ = 'pavelkosicin'
from model.label import Label
| 38.75 | 129 | 0.664516 |
aaa912e4125bf98280e59e7693dee4c4d3bd7d22 | 583 | py | Python | tensorsketch/evaluate.py | udellgroup/tensorsketch | 7d40a46232809cb1dcd306d1ca79e6a3d017e43e | [
"MIT"
] | 6 | 2019-11-05T09:04:40.000Z | 2021-11-01T13:05:43.000Z | tensorsketch/evaluate.py | udellgroup/tensorsketch | 7d40a46232809cb1dcd306d1ca79e6a3d017e43e | [
"MIT"
] | null | null | null | tensorsketch/evaluate.py | udellgroup/tensorsketch | 7d40a46232809cb1dcd306d1ca79e6a3d017e43e | [
"MIT"
] | null | null | null | import numpy as np
def eval_rerr(X, X_hat, X0=None):
"""
:param X: tensor, X0 or X0+noise
:param X_hat: output for apporoximation
:param X0: true signal, tensor
:return: the relative error = ||X- X_hat||_F/ ||X_0||_F
"""
if X0 is not None:
error = X0 - X_hat
return np.linalg.... | 38.866667 | 74 | 0.590051 |
aaaa0a2f7d99affa2c085f7c1bef27b274ad7031 | 2,208 | py | Python | mne/datasets/visual_92_categories/visual_92_categories.py | fmamashli/mne-python | 52f064415e7c9fa8fe243d22108dcdf3d86505b9 | [
"BSD-3-Clause"
] | 3 | 2021-01-04T08:45:56.000Z | 2021-05-19T12:25:59.000Z | mne/datasets/visual_92_categories/visual_92_categories.py | fmamashli/mne-python | 52f064415e7c9fa8fe243d22108dcdf3d86505b9 | [
"BSD-3-Clause"
] | 28 | 2020-05-07T00:58:34.000Z | 2020-08-29T23:02:17.000Z | mne/datasets/visual_92_categories/visual_92_categories.py | fmamashli/mne-python | 52f064415e7c9fa8fe243d22108dcdf3d86505b9 | [
"BSD-3-Clause"
] | 4 | 2021-09-08T14:35:26.000Z | 2022-02-25T22:34:52.000Z | # License: BSD Style.
from ...utils import verbose
from ..utils import _data_path, _data_path_doc, _get_version, _version_doc
data_path.__doc__ = _data_path_doc.format(
name='visual_92_categories', conf='MNE_DATASETS_VISUAL_92_CATEGORIES_PATH')
def get_version():
"""Get dataset version."""
return _get... | 36.8 | 79 | 0.695199 |
aaaa178c8c04cddbd491ee6f45b2a2ede27a0ba8 | 1,131 | py | Python | src/commons/helpers.py | thierrydecker/nfpy | bda460feb07719e66dc25c763172fc380559e022 | [
"Apache-2.0"
] | null | null | null | src/commons/helpers.py | thierrydecker/nfpy | bda460feb07719e66dc25c763172fc380559e022 | [
"Apache-2.0"
] | null | null | null | src/commons/helpers.py | thierrydecker/nfpy | bda460feb07719e66dc25c763172fc380559e022 | [
"Apache-2.0"
] | null | null | null | """helpers module
"""
import json
import pcap
import yaml
def get_adapters_names():
"""Finds all adapters on the system
:return: A list of the network adapters available on the system
"""
return pcap.findalldevs()
def config_loader_yaml(config_name):
"""Loads a .yml configuration file
:p... | 28.275 | 109 | 0.713528 |
aaaa51e39689a6d3e1aac6a8577a83f2d366cb9b | 428 | py | Python | evaluarnumprimo.py | neriphy/numeros_primos | c1d57e671ae68becb8c4805a5564eebbd5bd9209 | [
"MIT"
] | null | null | null | evaluarnumprimo.py | neriphy/numeros_primos | c1d57e671ae68becb8c4805a5564eebbd5bd9209 | [
"MIT"
] | null | null | null | evaluarnumprimo.py | neriphy/numeros_primos | c1d57e671ae68becb8c4805a5564eebbd5bd9209 | [
"MIT"
] | null | null | null | #Evaludador de numero primo
#Created by @neriphy
numero = input("Ingrese el numero a evaluar: ")
divisor = numero - 1
residuo = True
while divisor > 1 and residuo == True:
if numero%divisor != 0:
divisor = divisor - 1
print("Evaluando")
residuo = True
elif numero%divisor == 0:
residuo = False
if residu... | 18.608696 | 47 | 0.682243 |
aaabc289d3f067812b7a261387d3381bf400a556 | 2,364 | py | Python | src/ssp/ml/transformer/text_preprocessor.py | gyan42/spark-streaming-playground | 147ef9cbc31b7aed242663dee36143ebf0e8043f | [
"Apache-2.0"
] | 10 | 2020-03-12T11:51:46.000Z | 2022-03-24T04:56:05.000Z | src/ssp/ml/transformer/text_preprocessor.py | gyan42/spark-streaming-playground | 147ef9cbc31b7aed242663dee36143ebf0e8043f | [
"Apache-2.0"
] | 12 | 2020-04-23T07:28:14.000Z | 2022-03-12T00:20:24.000Z | src/ssp/ml/transformer/text_preprocessor.py | gyan42/spark-streaming-playground | 147ef9cbc31b7aed242663dee36143ebf0e8043f | [
"Apache-2.0"
] | 1 | 2020-04-20T14:48:38.000Z | 2020-04-20T14:48:38.000Z | #!/usr/bin/env python
__author__ = "Mageswaran Dhandapani"
__copyright__ = "Copyright 2020, The Spark Structured Playground Project"
__credits__ = []
__license__ = "Apache License"
__version__ = "2.0"
__maintainer__ = "Mageswaran Dhandapani"
__email__ = "mageswaran1989@gmail.com"
__status__ = "Education Purpose"
impo... | 30.701299 | 105 | 0.666244 |
aaad7708222b1bb4cca970a38baa955e6d67bbd1 | 737 | py | Python | multi_lan_ner.py | jpotwor/multi_lan_ner | 93494fc8e440e85d7111d16e388fdce78cb04bd7 | [
"MIT"
] | null | null | null | multi_lan_ner.py | jpotwor/multi_lan_ner | 93494fc8e440e85d7111d16e388fdce78cb04bd7 | [
"MIT"
] | null | null | null | multi_lan_ner.py | jpotwor/multi_lan_ner | 93494fc8e440e85d7111d16e388fdce78cb04bd7 | [
"MIT"
] | null | null | null | import spacy
if __name__ == "__main__":
print(find_entities("As I had only one hour to write this on my old Dell computer, I am aware there is space for improvement.", 'en')) | 32.043478 | 138 | 0.651289 |
aaad78389190fcfac231fdc6ed3013707ef9bc63 | 488 | py | Python | Daily-Coding-Problem/Problem4/Problem4.py | grisreyesrios/Solutions--Daily-Coding-Problems | beb977e6666800b2158e43a649ed197ad2f79d0a | [
"MIT"
] | 1 | 2019-02-14T00:35:26.000Z | 2019-02-14T00:35:26.000Z | Daily-Coding-Problem/Problem4/Problem4.py | grisreyesrios/Solutions--Daily-Coding-Problems | beb977e6666800b2158e43a649ed197ad2f79d0a | [
"MIT"
] | null | null | null | Daily-Coding-Problem/Problem4/Problem4.py | grisreyesrios/Solutions--Daily-Coding-Problems | beb977e6666800b2158e43a649ed197ad2f79d0a | [
"MIT"
] | 1 | 2021-10-18T00:51:51.000Z | 2021-10-18T00:51:51.000Z | # Python programming that returns the weight of the maximum weight path in a triangle
if __name__ == "__main__": # Driver function
arrs1 =[[1], [2, 3], [1, 5, 1]]
print(triangle_max_weight(arrs1))
| 34.857143 | 104 | 0.637295 |
aaadabaa6eb1195381301ba6975765da7236103f | 1,114 | py | Python | src/users/models/componentsschemasmicrosoft_graph_workbooktablesortallof1.py | peombwa/Sample-Graph-Python-Client | 3396f531fbe6bb40a740767c4e31aee95a3b932e | [
"MIT"
] | null | null | null | src/users/models/componentsschemasmicrosoft_graph_workbooktablesortallof1.py | peombwa/Sample-Graph-Python-Client | 3396f531fbe6bb40a740767c4e31aee95a3b932e | [
"MIT"
] | null | null | null | src/users/models/componentsschemasmicrosoft_graph_workbooktablesortallof1.py | peombwa/Sample-Graph-Python-Client | 3396f531fbe6bb40a740767c4e31aee95a3b932e | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | 33.757576 | 86 | 0.587074 |
aab014923354c5dbc253ff0489aad994d6e58895 | 4,687 | py | Python | python/FPgrowth/updateConfidence.py | gingi99/research_dr | 584f66738f345706e3cba1ae9cc1f417d6a0e72e | [
"MIT"
] | 1 | 2016-09-08T12:16:01.000Z | 2016-09-08T12:16:01.000Z | python/FPgrowth/updateConfidence.py | gingi99/research_dr | 584f66738f345706e3cba1ae9cc1f417d6a0e72e | [
"MIT"
] | null | null | null | python/FPgrowth/updateConfidence.py | gingi99/research_dr | 584f66738f345706e3cba1ae9cc1f417d6a0e72e | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# Usage : python ~~.py
import sys
import os
import pickle
import collections
import pandas as pd
import numpy as np
from itertools import chain
from itertools import combinations
from itertools import compress
from itertools import product
from sklearn.metrics import accuracy_score
from multiproc... | 31.668919 | 119 | 0.584809 |
aab07d8e601e02e0aaa27e2764b313638874d9dd | 591 | py | Python | 24/03/0.py | pylangstudy/201708 | 126b1af96a1d1f57522d5a1d435b58597bea2e57 | [
"CC0-1.0"
] | null | null | null | 24/03/0.py | pylangstudy/201708 | 126b1af96a1d1f57522d5a1d435b58597bea2e57 | [
"CC0-1.0"
] | 39 | 2017-07-31T22:54:01.000Z | 2017-08-31T00:19:03.000Z | 24/03/0.py | pylangstudy/201708 | 126b1af96a1d1f57522d5a1d435b58597bea2e57 | [
"CC0-1.0"
] | null | null | null | #!python3.6
import difflib
from pprint import pprint
import sys
text1 = ''' 1. Beautiful is better than ugly.
2. Explicit is better than implicit.
3. Simple is better than complex.
4. Complex is better than complicated.
'''.splitlines(keepends=True)
text2 = ''' 1. Beautiful is better than ugly.
3. Simple i... | 25.695652 | 46 | 0.707276 |
aab0d967698a31c9d52d9f317c79aa9d34e38826 | 5,703 | py | Python | domestic/views/ukef.py | uktrade/great-cms | f13fa335ddcb925bc33a5fa096fe73ef7bdd351a | [
"MIT"
] | 10 | 2020-04-30T12:04:35.000Z | 2021-07-21T12:48:55.000Z | domestic/views/ukef.py | uktrade/great-cms | f13fa335ddcb925bc33a5fa096fe73ef7bdd351a | [
"MIT"
] | 1,461 | 2020-01-23T18:20:26.000Z | 2022-03-31T08:05:56.000Z | domestic/views/ukef.py | uktrade/great-cms | f13fa335ddcb925bc33a5fa096fe73ef7bdd351a | [
"MIT"
] | 3 | 2020-04-07T20:11:36.000Z | 2020-10-16T16:22:59.000Z | from directory_forms_api_client.actions import PardotAction
from directory_forms_api_client.helpers import Sender
from django.conf import settings
from django.http import HttpResponseRedirect
from django.shortcuts import redirect
from django.urls import reverse, reverse_lazy
from django.utils.decorators import method_d... | 37.519737 | 120 | 0.650009 |
aab1082f2e51d53d812f98ef5dcddda1de448fca | 25,138 | py | Python | sbol_utilities/excel_to_sbol.py | ArchitJain1201/SBOL-utilities | 398c885eb9139e0833141ef45e87181253193724 | [
"MIT"
] | 3 | 2021-12-24T09:23:39.000Z | 2022-02-08T21:01:48.000Z | sbol_utilities/excel_to_sbol.py | ArchitJain1201/SBOL-utilities | 398c885eb9139e0833141ef45e87181253193724 | [
"MIT"
] | 57 | 2021-04-26T14:36:54.000Z | 2022-03-22T14:02:37.000Z | sbol_utilities/excel_to_sbol.py | ArchitJain1201/SBOL-utilities | 398c885eb9139e0833141ef45e87181253193724 | [
"MIT"
] | 13 | 2021-11-07T15:12:52.000Z | 2022-03-21T13:09:02.000Z | import unicodedata
import warnings
import logging
import re
import argparse
import sbol3
import openpyxl
import tyto
from .helper_functions import toplevel_named, strip_sbol2_version, is_plasmid, url_to_identity, strip_filetype_suffix
from .workarounds import type_to_standard_extension
BASIC_PARTS_COLLECTION = 'Basi... | 49.876984 | 164 | 0.691423 |
aab1e49d7e867714a47a33900ab3c0e741463041 | 5,921 | py | Python | jsonschema/tests/test_jsonschema_test_suite.py | prdpklyn/greens-jsonschema | 36b9d726733102a2a869e0db8fb351942a159f5c | [
"MIT"
] | null | null | null | jsonschema/tests/test_jsonschema_test_suite.py | prdpklyn/greens-jsonschema | 36b9d726733102a2a869e0db8fb351942a159f5c | [
"MIT"
] | null | null | null | jsonschema/tests/test_jsonschema_test_suite.py | prdpklyn/greens-jsonschema | 36b9d726733102a2a869e0db8fb351942a159f5c | [
"MIT"
] | null | null | null | """
Test runner for the JSON Schema official test suite
Tests comprehensive correctness of each draft's validator.
See https://github.com/json-schema-org/JSON-Schema-Test-Suite for details.
"""
import sys
from jsonschema import (
Draft3Validator,
Draft4Validator,
Draft6Validator,
Draft7Validator,
... | 30.209184 | 79 | 0.636717 |
aab254d87e54d35e023480f5b36f3f53979b98fb | 8,635 | py | Python | signalworks/tracking/multitrack.py | lxkain/tracking | 00ed9a0b31c4880687a42df3bf9651e68e0c4360 | [
"MIT"
] | 2 | 2019-04-09T17:28:34.000Z | 2019-06-05T10:05:11.000Z | signalworks/tracking/multitrack.py | lxkain/tracking | 00ed9a0b31c4880687a42df3bf9651e68e0c4360 | [
"MIT"
] | 11 | 2019-04-19T23:03:38.000Z | 2019-11-22T17:59:07.000Z | signalworks/tracking/multitrack.py | lxkain/tracking | 00ed9a0b31c4880687a42df3bf9651e68e0c4360 | [
"MIT"
] | 3 | 2019-05-01T16:02:32.000Z | 2019-06-25T18:05:39.000Z | import copy
import json
import os
from collections import UserDict
from signalworks.tracking import Event, Partition, TimeValue, Value, Wave
| 36.901709 | 107 | 0.555067 |
aab47503ee8d0e3164856b1141204d18fa2f42fa | 41 | py | Python | fixture/__init__.py | hippa777/python_training | 568c12e1a21c3c7eb40a1af25a9db83690a1b26d | [
"Apache-2.0"
] | null | null | null | fixture/__init__.py | hippa777/python_training | 568c12e1a21c3c7eb40a1af25a9db83690a1b26d | [
"Apache-2.0"
] | null | null | null | fixture/__init__.py | hippa777/python_training | 568c12e1a21c3c7eb40a1af25a9db83690a1b26d | [
"Apache-2.0"
] | null | null | null | from .contact_helper import ContactHelper | 41 | 41 | 0.902439 |
aab4c92f391c8df0afca6e908ce237106398f88f | 1,676 | py | Python | blur.py | yasue32/afm-denoise | 5342578fada8a6ce68a507afbbbd82f367760366 | [
"MIT"
] | 1 | 2022-03-10T09:06:52.000Z | 2022-03-10T09:06:52.000Z | blur.py | yasue32/afm-denoise | 5342578fada8a6ce68a507afbbbd82f367760366 | [
"MIT"
] | null | null | null | blur.py | yasue32/afm-denoise | 5342578fada8a6ce68a507afbbbd82f367760366 | [
"MIT"
] | null | null | null | import cv2
import matplotlib.pyplot as plt
import glob
import os
filepath ="afm_dataset4/20211126/"
files = [line.rstrip() for line in open((filepath+"sep_trainlist.txt"))]
files = glob.glob("orig_img/20211112/*")
gt_fm = []
input_fm = []
for i, file in enumerate(files):
image = cv2.imread(file)
# image = ... | 29.403509 | 110 | 0.648568 |
aab5358c186091fffe57d4f1b00d5fec32b9e7f8 | 139 | py | Python | python/component/base/utils.py | ModerateFish/component | 13e778648e7ff3132e30543b0aa9a436ee286f99 | [
"Apache-2.0"
] | null | null | null | python/component/base/utils.py | ModerateFish/component | 13e778648e7ff3132e30543b0aa9a436ee286f99 | [
"Apache-2.0"
] | null | null | null | python/component/base/utils.py | ModerateFish/component | 13e778648e7ff3132e30543b0aa9a436ee286f99 | [
"Apache-2.0"
] | null | null | null | import os | 19.857143 | 60 | 0.647482 |
aab57c61fdbffbd48b08ceac3432b1c6895bbeba | 1,027 | py | Python | python/solutii/ingrid_stoleru/Cursor.py | broascaiulian/labs | 068c7f440c7a29cb6a3e1dbb8e4bb7dfaff5a050 | [
"MIT"
] | null | null | null | python/solutii/ingrid_stoleru/Cursor.py | broascaiulian/labs | 068c7f440c7a29cb6a3e1dbb8e4bb7dfaff5a050 | [
"MIT"
] | null | null | null | python/solutii/ingrid_stoleru/Cursor.py | broascaiulian/labs | 068c7f440c7a29cb6a3e1dbb8e4bb7dfaff5a050 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# *-* coding: UTF-8 *-*
"""Solutia problemei Cursor"""
DIRECTIONS = {" stanga ": [-1, 0], " dreapta ": [1, 0],
" jos ": [0, -1], " sus ": [0, 1]}
def distanta(string, pozitie):
"""Determinarea distantei"""
directie, valoare = string.split()
directie = direct... | 26.333333 | 57 | 0.542356 |