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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
421097c0f352c62da6301188c7377f912e0f1d54 | 1,465 | py | Python | modules/worker.py | strangest-quark/iConsent | 096a471a8f5c61dcb9cff5fb380ddb55848bf055 | [
"MIT"
] | 10 | 2020-08-08T13:59:10.000Z | 2020-11-13T23:13:57.000Z | modules/worker.py | strangest-quark/iConsent | 096a471a8f5c61dcb9cff5fb380ddb55848bf055 | [
"MIT"
] | 1 | 2021-09-08T02:26:48.000Z | 2021-09-08T02:26:48.000Z | modules/worker.py | strangest-quark/iConsent | 096a471a8f5c61dcb9cff5fb380ddb55848bf055 | [
"MIT"
] | 2 | 2021-07-29T07:40:59.000Z | 2022-01-28T03:20:22.000Z | import logging
from queue import Queue
from threading import Thread
from time import time
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
if __name__ == '__main__':
main()
| 28.173077 | 102 | 0.619795 |
4212519f45b1cf9dfda4da64b4b3fae6c56b03b5 | 2,420 | py | Python | src/saml2/extension/pefim.py | cnelson/pysaml2 | a30e51c271e27e4411a0243b65adbf5d7a3abb07 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/pysaml2-4.4.0/src/saml2/extension/pefim.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/pysaml2-4.4.0/src/saml2/extension/pefim.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | #!/usr/bin/env python
import saml2
from saml2 import SamlBase
from saml2.xmldsig import KeyInfo
NAMESPACE = 'urn:net:eustix:names:tc:PEFIM:0.0:assertion'
ELEMENT_FROM_STRING = {
SPCertEnc.c_tag: spcertenc_from_string,
SPCertEncType_.c_tag: spcertenc_type__from_string,
}
ELEMENT_BY_TAG = {
'SPCertEn... | 31.428571 | 80 | 0.654959 |
42144545d417abe762a3d9307033d86aace5b332 | 805 | py | Python | ontask/migrations/0004_remove_old_migration_refs.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 33 | 2017-12-02T04:09:24.000Z | 2021-11-07T08:41:57.000Z | ontask/migrations/0004_remove_old_migration_refs.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 189 | 2017-11-16T04:06:29.000Z | 2022-03-11T23:35:59.000Z | ontask/migrations/0004_remove_old_migration_refs.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 30 | 2017-11-30T03:35:44.000Z | 2022-01-31T03:08:08.000Z | # Generated by Django 2.2.4 on 2019-08-24 06:02
from django.db import connection as con, migrations
from psycopg2 import sql
| 26.833333 | 78 | 0.650932 |
42149897d0b37e2db558007492da879e2a80968d | 639 | py | Python | scripts/tfloc_summary.py | lldelisle/bx-python | 19ab41e0905221e3fcaaed4b74faf2d7cda0d15a | [
"MIT"
] | 122 | 2015-07-01T12:00:22.000Z | 2022-03-02T09:27:35.000Z | scripts/tfloc_summary.py | lldelisle/bx-python | 19ab41e0905221e3fcaaed4b74faf2d7cda0d15a | [
"MIT"
] | 64 | 2015-11-06T21:03:18.000Z | 2022-03-24T00:55:27.000Z | scripts/tfloc_summary.py | lldelisle/bx-python | 19ab41e0905221e3fcaaed4b74faf2d7cda0d15a | [
"MIT"
] | 60 | 2015-10-05T19:19:36.000Z | 2021-11-19T20:53:54.000Z | #!/usr/bin/env python
"""
Read TFLOC output from stdin and write out a summary in which the nth line
contains the number of sites found in the nth alignment of the input.
TODO: This is very special case, should it be here?
"""
import sys
from collections import defaultdict
counts = defaultdict(int)
max_index = -1
... | 22.821429 | 74 | 0.674491 |
4214b1ee9bcb816a48babcc6e1d8cfe461c7c2c0 | 3,649 | py | Python | plugins/data/bAbI/digitsDataPluginBAbI/data.py | Linda-liugongzi/DIGITS-digits-py3 | 6df5eb6972574a628b9544934518ec8dfa9c7439 | [
"BSD-3-Clause"
] | null | null | null | plugins/data/bAbI/digitsDataPluginBAbI/data.py | Linda-liugongzi/DIGITS-digits-py3 | 6df5eb6972574a628b9544934518ec8dfa9c7439 | [
"BSD-3-Clause"
] | null | null | null | plugins/data/bAbI/digitsDataPluginBAbI/data.py | Linda-liugongzi/DIGITS-digits-py3 | 6df5eb6972574a628b9544934518ec8dfa9c7439 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
import os
from digits.utils import subclass, override, constants
from digits.extensions.data.interface import DataIngestionInterface
from .forms import DatasetForm, InferenceForm
from . import utils
from flask_babel import lazy_gettext as _
DATASET_TE... | 31.730435 | 105 | 0.636339 |
4216517a1b9daa01aa443bee25e4880a6b96ed43 | 3,767 | py | Python | 13_TransparentOrigami/fold2.py | dandrianneDEL/PyAdventOfCode2021 | ea91186383c0855c81c7243d527de0c4dd4c0afb | [
"MIT"
] | null | null | null | 13_TransparentOrigami/fold2.py | dandrianneDEL/PyAdventOfCode2021 | ea91186383c0855c81c7243d527de0c4dd4c0afb | [
"MIT"
] | null | null | null | 13_TransparentOrigami/fold2.py | dandrianneDEL/PyAdventOfCode2021 | ea91186383c0855c81c7243d527de0c4dd4c0afb | [
"MIT"
] | null | null | null | import filehelper
fileResult = filehelper.readfile()
# ******************************************
# PART 2 - Fold plastic transparent sheet
# Finish folding the transparent paper according to the instructions. The manual says the code is always eight capital letters.
# What code do you use to activate the infrared the... | 34.87963 | 127 | 0.535439 |
421750365075d0ccd2892de6546549e569376c1b | 208 | py | Python | complete/01 - 10/Problem1/main.py | this-jacob/project-euler | 8f9e700e2875e84d081eade44fd2107db0a0ae12 | [
"MIT"
] | null | null | null | complete/01 - 10/Problem1/main.py | this-jacob/project-euler | 8f9e700e2875e84d081eade44fd2107db0a0ae12 | [
"MIT"
] | null | null | null | complete/01 - 10/Problem1/main.py | this-jacob/project-euler | 8f9e700e2875e84d081eade44fd2107db0a0ae12 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
main()
| 13.866667 | 28 | 0.408654 |
4219aa019cf5a624b152bb0ddf85c0a457ed2c73 | 2,416 | py | Python | webapp/scan_comments.py | ctrl-meta-f/ngk | 6d9122ee84cc7420f9b135556c7b03e9b20428e4 | [
"BSD-2-Clause"
] | null | null | null | webapp/scan_comments.py | ctrl-meta-f/ngk | 6d9122ee84cc7420f9b135556c7b03e9b20428e4 | [
"BSD-2-Clause"
] | null | null | null | webapp/scan_comments.py | ctrl-meta-f/ngk | 6d9122ee84cc7420f9b135556c7b03e9b20428e4 | [
"BSD-2-Clause"
] | null | null | null | import logging
import time
import requests
import lxml.etree
import re
import os
from schema import ScopedSession, SyncState
logging.basicConfig(
filename=os.getenv("LOG_FILE", "../logs/scan_comments.log"),
format="%(asctime)s %(levelname)s %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
level=logging.DEBU... | 29.463415 | 134 | 0.631623 |
421a32da4769d80ffba1268d31b7a676642e60fc | 1,009 | py | Python | s3prl/upstream/example/hubconf.py | hhhaaahhhaa/s3prl | a469787f05c42196c4d989555082f5fd9dcbe8a6 | [
"Apache-2.0"
] | 856 | 2021-01-15T15:40:32.000Z | 2022-03-31T07:08:17.000Z | s3prl/upstream/example/hubconf.py | hhhaaahhhaa/s3prl | a469787f05c42196c4d989555082f5fd9dcbe8a6 | [
"Apache-2.0"
] | 210 | 2021-01-15T13:28:50.000Z | 2022-03-30T06:13:51.000Z | s3prl/upstream/example/hubconf.py | hhhaaahhhaa/s3prl | a469787f05c42196c4d989555082f5fd9dcbe8a6 | [
"Apache-2.0"
] | 208 | 2021-01-15T03:03:12.000Z | 2022-03-31T08:33:27.000Z | from .expert import UpstreamExpert as _UpstreamExpert
def customized_upstream(*args, **kwargs):
"""
To enable your customized pretrained model, you only need to implement
upstream/example/expert.py and leave this file as is. This file is
used to register the UpstreamExpert in upstream/example/expert.p... | 32.548387 | 74 | 0.716551 |
421a86ab2fcc5ca9b6f576b1a9c163c17517de0f | 463 | py | Python | g-code-testing/g_code_parsing/g_code_functionality_defs/thermocycler/set_ramp_rate_g_code_functionality_def.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | g-code-testing/g_code_parsing/g_code_functionality_defs/thermocycler/set_ramp_rate_g_code_functionality_def.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | g-code-testing/g_code_parsing/g_code_functionality_defs/thermocycler/set_ramp_rate_g_code_functionality_def.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | from typing import Dict
from g_code_parsing.g_code_functionality_defs.g_code_functionality_def_base import (
GCodeFunctionalityDefBase,
)
| 33.071429 | 84 | 0.740821 |
421c7e1609af23f9ed8e7709fd3cc2ca7ae61d73 | 19,452 | py | Python | src/mrio.py | ElcoK/MRIA_Argentina | 45194eb738c725276c3667078ac8d229554b550e | [
"MIT"
] | null | null | null | src/mrio.py | ElcoK/MRIA_Argentina | 45194eb738c725276c3667078ac8d229554b550e | [
"MIT"
] | null | null | null | src/mrio.py | ElcoK/MRIA_Argentina | 45194eb738c725276c3667078ac8d229554b550e | [
"MIT"
] | 2 | 2021-06-28T11:51:17.000Z | 2022-01-10T06:49:01.000Z | import os,sys
import pandas as pd
import numpy as np
import subprocess
from tqdm import tqdm
from ras_method import ras_method
import warnings
warnings.filterwarnings('ignore')
def est_trade_value(x,output_new,sector):
"""
Function to estimate the trade value between two sectors
"""
if (sector is not ... | 49.24557 | 154 | 0.635359 |
421c88021499b88620b09442779453fef21cf565 | 1,212 | py | Python | task_manager/users/forms.py | Ritesh-Aggarwal/Task-Manager-Django | b8f8df10b0b0a9cc9cd27346a0b5d4d5892d2f24 | [
"MIT"
] | null | null | null | task_manager/users/forms.py | Ritesh-Aggarwal/Task-Manager-Django | b8f8df10b0b0a9cc9cd27346a0b5d4d5892d2f24 | [
"MIT"
] | null | null | null | task_manager/users/forms.py | Ritesh-Aggarwal/Task-Manager-Django | b8f8df10b0b0a9cc9cd27346a0b5d4d5892d2f24 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import (
AuthenticationForm,
UserCreationForm,
UsernameField,
)
User = get_user_model()
| 26.347826 | 77 | 0.605611 |
421cd1f840cd074e3eb92df46eaaf5c4a3768113 | 1,891 | py | Python | boa3/model/builtin/interop/oracle/oracletype.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3/model/builtin/interop/oracle/oracletype.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3/model/builtin/interop/oracle/oracletype.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from __future__ import annotations
from typing import Any, Dict, Optional
from boa3.model.method import Method
from boa3.model.property import Property
from boa3.model.type.classes.classarraytype import ClassArrayType
from boa3.model.variable import Variable
_Oracle = OracleType()
| 27.014286 | 95 | 0.657324 |
42228f1e28d8899ed8da922c4eb2bd3b92ca4e69 | 191 | py | Python | photo-hub/api/pagination.py | RodionChachura/photo-hub | 20ec008076a34cb09b289fda0557e2efc7e06232 | [
"MIT"
] | null | null | null | photo-hub/api/pagination.py | RodionChachura/photo-hub | 20ec008076a34cb09b289fda0557e2efc7e06232 | [
"MIT"
] | null | null | null | photo-hub/api/pagination.py | RodionChachura/photo-hub | 20ec008076a34cb09b289fda0557e2efc7e06232 | [
"MIT"
] | null | null | null | from rest_framework.pagination import PageNumberPagination | 31.833333 | 58 | 0.811518 |
4222c98b7de332bf9b4c1cc8bba790b9eea99314 | 1,021 | py | Python | wiiu.py | RN-JK/UBIART-Texture-Decoder | 71e190c12b1b8813dcda1f26cd115d9f89cc7619 | [
"MIT"
] | null | null | null | wiiu.py | RN-JK/UBIART-Texture-Decoder | 71e190c12b1b8813dcda1f26cd115d9f89cc7619 | [
"MIT"
] | null | null | null | wiiu.py | RN-JK/UBIART-Texture-Decoder | 71e190c12b1b8813dcda1f26cd115d9f89cc7619 | [
"MIT"
] | 1 | 2021-11-29T05:57:55.000Z | 2021-11-29T05:57:55.000Z | import os, glob
try:
os.mkdir("output")
except:
pass
wiiudir="input/wiiu"
try:
os.makedirs(wiiudir)
print('The directories have been made.')
input('Insert your textures in input/wiiu and then run the tool again to convert it.')
except:
pass
dir = 'input/temp'
t... | 18.563636 | 103 | 0.5524 |
4223f6babdeae509fede80d613a39bd2530fc8ee | 470 | py | Python | jp.atcoder/abc046/arc062_a/8984820.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc046/arc062_a/8984820.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc046/arc062_a/8984820.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
n = int(sys.stdin.readline().rstrip())
ab = map(int, sys.stdin.read().split())
ab = list(zip(ab, ab))
if __name__ == "__main__":
ans = main()
print(ans)
| 18.076923 | 40 | 0.431915 |
422402f1cd18573550063c08ebfde34d14018e34 | 5,187 | py | Python | pycsw/pycsw/plugins/profiles/profile.py | Geosoft2/Geosoftware-II-AALLH | bdb61d9a1111b9082ec2b9f309998c5f2166975e | [
"MIT"
] | 118 | 2015-01-07T00:24:09.000Z | 2022-03-19T15:35:43.000Z | pycsw/pycsw/plugins/profiles/profile.py | Geosoft2/Geosoftware-II-AALLH | bdb61d9a1111b9082ec2b9f309998c5f2166975e | [
"MIT"
] | 319 | 2015-01-06T23:51:46.000Z | 2022-03-20T11:22:57.000Z | pycsw/pycsw/plugins/profiles/profile.py | Geosoft2/Geosoftware-II-AALLH | bdb61d9a1111b9082ec2b9f309998c5f2166975e | [
"MIT"
] | 113 | 2015-01-07T00:42:23.000Z | 2022-02-19T18:05:08.000Z | # -*- coding: utf-8 -*-
# =================================================================
#
# Authors: Tom Kralidis <tomkralidis@gmail.com>
# Angelos Tzotsos <tzotsos@gmail.com>
#
# Copyright (c) 2015 Tom Kralidis
# Copyright (c) 2015 Angelos Tzotsos
#
# Permission is hereby granted, free of charge, to any p... | 36.528169 | 78 | 0.630037 |
4224f59023f612daa74db320160910b42cc05439 | 3,897 | py | Python | push-package.py | OpenTrustGroup/scripts | 31ca2ca5bae055113c6f92a2eb75b0c7528902b3 | [
"BSD-3-Clause"
] | null | null | null | push-package.py | OpenTrustGroup/scripts | 31ca2ca5bae055113c6f92a2eb75b0c7528902b3 | [
"BSD-3-Clause"
] | null | null | null | push-package.py | OpenTrustGroup/scripts | 31ca2ca5bae055113c6f92a2eb75b0c7528902b3 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright 2017 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import errno
import json
import os
import subprocess
import sys
import tempfile
DEFAULT_DST_ROOT = '/system'
DEFAULT_OU... | 26.691781 | 79 | 0.647164 |
42260da2bac2d4e5c90292ee2d38da85618b72ad | 2,355 | py | Python | tests/e2e/registry/test_registry_image_push_pull.py | OdedViner/ocs-ci | e8a3de82650e02cf8fa67284a67c36ced34a480b | [
"MIT"
] | null | null | null | tests/e2e/registry/test_registry_image_push_pull.py | OdedViner/ocs-ci | e8a3de82650e02cf8fa67284a67c36ced34a480b | [
"MIT"
] | null | null | null | tests/e2e/registry/test_registry_image_push_pull.py | OdedViner/ocs-ci | e8a3de82650e02cf8fa67284a67c36ced34a480b | [
"MIT"
] | null | null | null | import logging
import pytest
from ocs_ci.framework.testlib import workloads, E2ETest, ignore_leftovers
from ocs_ci.ocs import ocp, registry, constants
from ocs_ci.framework import config
from ocs_ci.ocs.exceptions import UnexpectedBehaviour
logger = logging.getLogger(__name__)
| 36.796875 | 100 | 0.6862 |
42274dc240f54ea288091543468dd2eda53a4feb | 55 | py | Python | tOYOpy/settings.py | fkab/tOYO | b0a7be760a45edd795b8734ce2e5f1ccec35091b | [
"MIT"
] | null | null | null | tOYOpy/settings.py | fkab/tOYO | b0a7be760a45edd795b8734ce2e5f1ccec35091b | [
"MIT"
] | null | null | null | tOYOpy/settings.py | fkab/tOYO | b0a7be760a45edd795b8734ce2e5f1ccec35091b | [
"MIT"
] | null | null | null | elements = {
'em': '',
'blockquote': '<br/>'
}
| 11 | 25 | 0.4 |
4227bfd2b04f47e94ab893e1b523dca4551e38fc | 312 | py | Python | 1.6.py | kevrodg/pynet | 5142b1b75cda658a99348e3550da1c198e7d049e | [
"Apache-2.0"
] | null | null | null | 1.6.py | kevrodg/pynet | 5142b1b75cda658a99348e3550da1c198e7d049e | [
"Apache-2.0"
] | null | null | null | 1.6.py | kevrodg/pynet | 5142b1b75cda658a99348e3550da1c198e7d049e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import json
import yaml
my_list = [0, 1, 2, 3, 'whatever', 'hello', {'attribs': [0, 1, 2, 3, 4], 'ip_addr': '10.10.10.239'}]
with open("my_file.json", "w") as f:
json.dump(my_list, f)
with open("my_file.yaml", "w") as f:
f.write(yaml.dump(my_list, default_flow_style=False))
| 20.8 | 101 | 0.61859 |
42287378bd11599427298e72d96640a19c6fbb44 | 322 | py | Python | jp.atcoder/abc069/arc080_a/11903517.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc069/arc080_a/11903517.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc069/arc080_a/11903517.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
n, *a = map(int, sys.stdin.read().split())
if __name__ == "__main__":
main()
| 16.947368 | 62 | 0.406832 |
422874e1c950eddb051f58c230d75405855070fc | 2,277 | py | Python | tests/test_url_enc_dec.py | FWidm/poe-profile | 08190dfab88758081ce1ddcd30a43081e2d7863f | [
"MIT"
] | 1 | 2018-12-02T19:48:09.000Z | 2018-12-02T19:48:09.000Z | tests/test_url_enc_dec.py | FWidm/poe-profile | 08190dfab88758081ce1ddcd30a43081e2d7863f | [
"MIT"
] | null | null | null | tests/test_url_enc_dec.py | FWidm/poe-profile | 08190dfab88758081ce1ddcd30a43081e2d7863f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
import sys
import unittest
from src.util.tree_codec import encode_hashes, decode_url
url = 'AAAABAMDAQQHBLMGSQj0Dc0OPA5cES0UIBRxFScWbxhWGF0YkRo4HM4c3CSqJy8o-itQLJwy0TWSNuk6UjpYOuE8LUGHRARFR0V-RZ1Ms025TeNQR' \
'1NSVcZZ81qRXz9mnmebaGVodGpDaqxq-mvbcg9yqXasfIN99YIHgseDX4PMg... | 42.962264 | 123 | 0.62231 |
422975ef7721aeaa44f60c6499ab2952315acfbe | 262 | py | Python | _test/registry/reg04.py | javacommons/commonthread | dff8b39d7c86729e4711b669bcec8eab6f146659 | [
"Unlicense"
] | null | null | null | _test/registry/reg04.py | javacommons/commonthread | dff8b39d7c86729e4711b669bcec8eab6f146659 | [
"Unlicense"
] | null | null | null | _test/registry/reg04.py | javacommons/commonthread | dff8b39d7c86729e4711b669bcec8eab6f146659 | [
"Unlicense"
] | null | null | null | # source http://itasuke.hatenablog.com/entry/2018/01/08/133510
import winreg
newkey = winreg.CreateKeyEx(winreg.HKEY_CURRENT_USER, r'Software\__javacommons__\abc')
newkey.Close()
winreg.DeleteKeyEx(winreg.HKEY_CURRENT_USER, r'Software\__javacommons__\abc')
| 43.666667 | 87 | 0.80916 |
422a7283e956bcdda7358ae083a9c572a8121dd9 | 8,289 | py | Python | setuptools-37.0.0/pkg_resources/tests/test_working_set.py | coderlongren/PreliminaryPython | b5c7a87e41842c57aabb660de1514cba19c8bd78 | [
"MIT"
] | 1 | 2017-09-19T15:21:50.000Z | 2017-09-19T15:21:50.000Z | setuptools-37.0.0/pkg_resources/tests/test_working_set.py | coderlongren/PreliminaryPython | b5c7a87e41842c57aabb660de1514cba19c8bd78 | [
"MIT"
] | null | null | null | setuptools-37.0.0/pkg_resources/tests/test_working_set.py | coderlongren/PreliminaryPython | b5c7a87e41842c57aabb660de1514cba19c8bd78 | [
"MIT"
] | 4 | 2017-05-12T09:18:16.000Z | 2020-08-27T03:26:16.000Z | import inspect
import re
import textwrap
import pytest
import pkg_resources
from .test_resources import Metadata
def parametrize_test_working_set_resolve(*test_list):
idlist = []
argvalues = []
for test in test_list:
(
name,
installed_dists,
installable_dis... | 17.304802 | 87 | 0.55447 |
422abcc408966dc47c31fc1259795d32236b4832 | 629 | py | Python | setup.py | Sigel1/yolo-tf2 | a11c856e601c23220fc2afce7c93e9f8eb4fd339 | [
"MIT"
] | null | null | null | setup.py | Sigel1/yolo-tf2 | a11c856e601c23220fc2afce7c93e9f8eb4fd339 | [
"MIT"
] | null | null | null | setup.py | Sigel1/yolo-tf2 | a11c856e601c23220fc2afce7c93e9f8eb4fd339 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
install_requires = [dep.strip() for dep in open('requirements.txt')]
setup(
name='yolo_tf2',
version='1.5',
packages=find_packages(),
url='https://github.com/schissmantics/yolo-tf2',
license='MIT',
author='schismantics',
author_email='schissmanti... | 27.347826 | 73 | 0.659777 |
422b4572706867cc810fb195c7e12772e8a93c86 | 324 | py | Python | nngeometry/object/__init__.py | amyami187/nngeometry | cb516da3f7a019e148f48ff3ef3bed0cdae0d184 | [
"MIT"
] | 103 | 2020-03-19T08:47:29.000Z | 2022-03-29T00:54:38.000Z | nngeometry/object/__init__.py | amyami187/nngeometry | cb516da3f7a019e148f48ff3ef3bed0cdae0d184 | [
"MIT"
] | 29 | 2021-01-07T13:39:20.000Z | 2022-03-29T14:52:21.000Z | nngeometry/object/__init__.py | amyami187/nngeometry | cb516da3f7a019e148f48ff3ef3bed0cdae0d184 | [
"MIT"
] | 11 | 2020-11-09T01:07:12.000Z | 2022-03-29T00:54:41.000Z | from .pspace import (PMatDense, PMatBlockDiag, PMatDiag,
PMatLowRank, PMatImplicit,
PMatKFAC, PMatEKFAC, PMatQuasiDiag)
from .vector import (PVector, FVector)
from .fspace import (FMatDense,)
from .map import (PushForwardDense, PushForwardImplicit,
PullBackDen... | 40.5 | 56 | 0.66358 |
422e18702f6c683f268a4b49395a514801fec437 | 834 | py | Python | vkwave/bots/core/dispatching/dp/middleware/middleware.py | YorkDW/vkwave | 86b0278f15f398217a8211007c44651b6145831b | [
"MIT"
] | null | null | null | vkwave/bots/core/dispatching/dp/middleware/middleware.py | YorkDW/vkwave | 86b0278f15f398217a8211007c44651b6145831b | [
"MIT"
] | null | null | null | vkwave/bots/core/dispatching/dp/middleware/middleware.py | YorkDW/vkwave | 86b0278f15f398217a8211007c44651b6145831b | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import List, NewType
from vkwave.bots.core.dispatching.events.base import BaseEvent
MiddlewareResult = NewType("MiddlewareResult", bool)
| 29.785714 | 84 | 0.715827 |
422e499271a923bf090aefdbe25c5651121859de | 3,517 | py | Python | plot_scripts/try_networkx.py | gabrielasuchopar/arch2vec | 1fc47d2cc7d63832e0d6337b8482669366b4aef2 | [
"Apache-2.0"
] | 35 | 2020-10-22T03:58:23.000Z | 2022-03-21T12:55:35.000Z | plot_scripts/try_networkx.py | gabrielasuchopar/arch2vec | 1fc47d2cc7d63832e0d6337b8482669366b4aef2 | [
"Apache-2.0"
] | 1 | 2021-06-03T13:49:47.000Z | 2021-06-06T02:02:11.000Z | plot_scripts/try_networkx.py | gabrielasuchopar/arch2vec | 1fc47d2cc7d63832e0d6337b8482669366b4aef2 | [
"Apache-2.0"
] | 9 | 2020-10-22T14:13:53.000Z | 2022-03-21T08:06:12.000Z | import networkx as nx
import numpy as np
import matplotlib.pyplot as plt
if __name__ == '__main__':
adj1 = np.array([[0, 1, 1, 1, 0],
[0, 0, 1, 0, 0],
[0, 0, 0, 0, 1],
[0, 0, 0, 0, 1],
[0, 0, 0, 0, 0]])
op1 = ['in', 'conv1x1... | 30.582609 | 142 | 0.477396 |
422eaaa92344214317cacbe394deaa82d7096b9d | 6,552 | py | Python | endpoints/v2/errors.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 2,027 | 2019-11-12T18:05:48.000Z | 2022-03-31T22:25:04.000Z | endpoints/v2/errors.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 496 | 2019-11-12T18:13:37.000Z | 2022-03-31T10:43:45.000Z | endpoints/v2/errors.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 249 | 2019-11-12T18:02:27.000Z | 2022-03-22T12:19:19.000Z | import bitmath
| 32.435644 | 100 | 0.654609 |
422f10e008ebbf5692ddbc20cb4464f21ab48808 | 3,956 | py | Python | scoreboard.py | TheLurkingCat/scoreboard | 9c292fc8573e7bf8539cb20a813c2147ddd0c923 | [
"MIT"
] | null | null | null | scoreboard.py | TheLurkingCat/scoreboard | 9c292fc8573e7bf8539cb20a813c2147ddd0c923 | [
"MIT"
] | null | null | null | scoreboard.py | TheLurkingCat/scoreboard | 9c292fc8573e7bf8539cb20a813c2147ddd0c923 | [
"MIT"
] | null | null | null | '''
LICENSE: MIT license
This module can help us know about who can ask when
we have troubles in some buggy codes while solving problems.
'''
from asyncio import gather, get_event_loop
from pandas import DataFrame, set_option
from online_judge import Online_Judge
loop = get_event_loop()
set_option('display.max_col... | 35.63964 | 167 | 0.548787 |
422f98ebeb65b657f8b008da4345d8f0e09f42c7 | 10,406 | py | Python | custom_transforms.py | zyxu1996/Efficient-Transformer | 106347186d13e106e9129d25b72e2fd491c54452 | [
"Apache-2.0"
] | 22 | 2021-10-13T05:10:15.000Z | 2022-03-17T12:01:40.000Z | custom_transforms.py | zyXu1996/Efficient-Transformer | efd87d734d5835eccb5b624c5e7ca3a5a08f318b | [
"Apache-2.0"
] | null | null | null | custom_transforms.py | zyXu1996/Efficient-Transformer | efd87d734d5835eccb5b624c5e7ca3a5a08f318b | [
"Apache-2.0"
] | 4 | 2021-11-08T10:30:23.000Z | 2022-02-16T05:07:25.000Z | import torch
import random
import numpy as np
import cv2
import os
import torch.nn as nn
from torchvision import transforms
def edge_contour(label, edge_width=3):
import cv2
cuda_type = label.is_cuda
label = label.cpu().numpy().astype(np.int)
b, h, w = label.shape
edge = np.zeros(label.shape... | 36.384615 | 106 | 0.540746 |
423075718e222b99f83bdb4ab73a14063da9d0ee | 37,354 | py | Python | ui/staff.py | AryaStarkSakura/Stylized-Neural-Painting | 0502c9f12eb582fe2ebd0ffdc7008dc81cefa74c | [
"CC0-1.0"
] | null | null | null | ui/staff.py | AryaStarkSakura/Stylized-Neural-Painting | 0502c9f12eb582fe2ebd0ffdc7008dc81cefa74c | [
"CC0-1.0"
] | null | null | null | ui/staff.py | AryaStarkSakura/Stylized-Neural-Painting | 0502c9f12eb582fe2ebd0ffdc7008dc81cefa74c | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'staff.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
| 46.750939 | 101 | 0.591235 |
42308174a4346509fdf47445522e3c2f26a6c431 | 2,171 | py | Python | dataset.py | ceyzaguirre4/mac-network-pytorch | ad2deefc8a987ab92f4911d3d98631f22d0ae44a | [
"MIT"
] | 4 | 2020-04-08T22:19:19.000Z | 2020-10-28T23:22:12.000Z | dataset.py | ceyzaguirre4/mac-network-pytorch | ad2deefc8a987ab92f4911d3d98631f22d0ae44a | [
"MIT"
] | null | null | null | dataset.py | ceyzaguirre4/mac-network-pytorch | ad2deefc8a987ab92f4911d3d98631f22d0ae44a | [
"MIT"
] | 3 | 2020-06-27T02:47:02.000Z | 2021-10-08T13:19:05.000Z | import os
import pickle
import numpy as np
from PIL import Image
import torch
from torch.utils.data import Dataset
from torchvision import transforms
import h5py
from transforms import Scale
transform = transforms.Compose([
Scale([224, 224]),
transforms.Pad(4),
transforms.RandomCrop([224, 224]),
tran... | 29.739726 | 83 | 0.609857 |
4230af0cdb6333a2256b37fbde92023b5213c5d6 | 1,445 | py | Python | tests/distributions/test_log_normal.py | thomasaarholt/xgboost-distribution | 8ee00f7f0dcaadcb345ebcb15534287081aa987b | [
"MIT"
] | 17 | 2021-08-14T10:23:54.000Z | 2022-01-08T11:54:48.000Z | tests/distributions/test_log_normal.py | thomasaarholt/xgboost-distribution | 8ee00f7f0dcaadcb345ebcb15534287081aa987b | [
"MIT"
] | 17 | 2021-06-22T02:23:53.000Z | 2022-03-02T16:03:21.000Z | tests/distributions/test_log_normal.py | thomasaarholt/xgboost-distribution | 8ee00f7f0dcaadcb345ebcb15534287081aa987b | [
"MIT"
] | 6 | 2021-08-18T18:52:13.000Z | 2021-11-19T08:36:50.000Z | import pytest
import numpy as np
import pandas as pd
from xgboost_distribution.distributions import LogNormal
def test_loss(lognormal):
loss_name, loss_value = lognormal.loss(
# fmt: off
y=np.array([0, ]),
params=np.array([[1, 0], ]),
)
assert loss_name == "LogNormalError"
... | 24.083333 | 85 | 0.600692 |
4230f1879c1a68f9bf6052b16b5fb1dd036ba09b | 14,169 | py | Python | script/forecasting/forecaster.py | bialesdaniel/noisepage | 44ca689bd818b1bd39b84a7fe5148ddaa65a61eb | [
"MIT"
] | null | null | null | script/forecasting/forecaster.py | bialesdaniel/noisepage | 44ca689bd818b1bd39b84a7fe5148ddaa65a61eb | [
"MIT"
] | null | null | null | script/forecasting/forecaster.py | bialesdaniel/noisepage | 44ca689bd818b1bd39b84a7fe5148ddaa65a61eb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Main script for workload forecasting.
Example usage:
- Generate data (runs OLTP benchmark on the built database) and perform training, and save the trained model
./forecaster --gen_data --models=LSTM --model_save_path=model.pickle
- Use the trained models (LSTM) to generate predictions.
... | 36.145408 | 118 | 0.619239 |
4231a5537ad061f7ccafef21420ba06d2605d9cf | 66,059 | py | Python | tests/test_master/test_jobtypes_api.py | guidow/pyfarm-master | d41c8f1eb5bfefb8400d400bcecadf197bcfb80a | [
"Apache-2.0"
] | null | null | null | tests/test_master/test_jobtypes_api.py | guidow/pyfarm-master | d41c8f1eb5bfefb8400d400bcecadf197bcfb80a | [
"Apache-2.0"
] | null | null | null | tests/test_master/test_jobtypes_api.py | guidow/pyfarm-master | d41c8f1eb5bfefb8400d400bcecadf197bcfb80a | [
"Apache-2.0"
] | null | null | null | # No shebang line, this module is meant to be imported
#
# Copyright 2013 Oliver Palmer
# Copyright 2014 Ambient Entertainment GmbH & Co. KG
#
# 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
#
... | 37.6834 | 81 | 0.473592 |
4231fa59a3b40941c8f8953e4a8dd3df4f032a6f | 742 | py | Python | imagekit/hashers.py | radicalgraphics/django-imagekit | e36290b4eef1faaf6ad864d3493df1458ef96fbb | [
"BSD-3-Clause"
] | null | null | null | imagekit/hashers.py | radicalgraphics/django-imagekit | e36290b4eef1faaf6ad864d3493df1458ef96fbb | [
"BSD-3-Clause"
] | null | null | null | imagekit/hashers.py | radicalgraphics/django-imagekit | e36290b4eef1faaf6ad864d3493df1458ef96fbb | [
"BSD-3-Clause"
] | null | null | null | from copy import copy
from hashlib import md5
from pickle import Pickler, MARK, DICT
from types import DictionaryType
from .lib import StringIO
| 23.1875 | 53 | 0.661725 |
423268278bdfbc38d38322d8349807e008e76abd | 1,262 | py | Python | sun.py | funxiun/AstroAlgorithms4Python | 98098956daba2706c993fa6370d8cdfa4013cb8d | [
"Unlicense"
] | 7 | 2018-09-29T11:35:40.000Z | 2022-01-11T14:06:44.000Z | sun.py | funxiun/AstroAlgorithms4Python | 98098956daba2706c993fa6370d8cdfa4013cb8d | [
"Unlicense"
] | null | null | null | sun.py | funxiun/AstroAlgorithms4Python | 98098956daba2706c993fa6370d8cdfa4013cb8d | [
"Unlicense"
] | 8 | 2018-09-29T11:36:01.000Z | 2021-10-17T15:25:55.000Z | '''Meeus: Astronomical Algorithms (2nd ed.), chapter 25'''
import math
from nutation_ecliptic import ecliptic
from constants import AU
def coordinates(jd):
'''equatorial coordinates of Sun'''
lon=math.radians(longitude(jd))
eps=math.radians(ecliptic(jd))
ra=math.degrees(math.atan2(math.c... | 26.291667 | 126 | 0.62916 |
4233e43b1aa8c3735bfa71a29e6ebbf01825729f | 5,681 | py | Python | test/paths.py | cychitivav/kobuki_navigation | 9da1ad425b8804b49005720594e9837295eb9976 | [
"MIT"
] | null | null | null | test/paths.py | cychitivav/kobuki_navigation | 9da1ad425b8804b49005720594e9837295eb9976 | [
"MIT"
] | null | null | null | test/paths.py | cychitivav/kobuki_navigation | 9da1ad425b8804b49005720594e9837295eb9976 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import numpy as np
import cv2
from matplotlib import pyplot as plt
import networkx as nx
if __name__ == "__main__":
image = cv2.imread('map/map.pgm', 0)
rotated = rotate_image(image, -7.66)
#cv2.imwrite('map/rotated.pgm', rotated)
_, th = cv2.threshold(rotated, 245,... | 31.38674 | 88 | 0.520155 |
4233e6b88d45b6951dc540a0e3110566d67aa657 | 458 | py | Python | intro-to-programming/python-for-everyone/3-variables-expressions-statements/exercise-4.py | udpsunil/computer-science | 94e3dfc7d39ad139671ab1a3457a61a1fd48fe39 | [
"MIT"
] | null | null | null | intro-to-programming/python-for-everyone/3-variables-expressions-statements/exercise-4.py | udpsunil/computer-science | 94e3dfc7d39ad139671ab1a3457a61a1fd48fe39 | [
"MIT"
] | null | null | null | intro-to-programming/python-for-everyone/3-variables-expressions-statements/exercise-4.py | udpsunil/computer-science | 94e3dfc7d39ad139671ab1a3457a61a1fd48fe39 | [
"MIT"
] | null | null | null | # Assume that we execute the following assignment statements
# width = 17
# height = 12.0
width = 17
height = 12.0
value_1 = width // 2
value_2 = width / 2.0
value_3 = height / 3
value_4 = 1 + 2 * 5
print(f"value_1 is {value_1} and it's type is {type(value_1)}")
print(f"value_2 is {value_2} and it's type is {type(va... | 26.941176 | 63 | 0.68559 |
42370720ae2a40bece1dbd04a95205d5f5073cbf | 131 | py | Python | apps/weapons/admin.py | tufbel/wFocus | ee0f02053b8a5bc9c40dd862306fc5df1a063b9d | [
"Apache-2.0"
] | null | null | null | apps/weapons/admin.py | tufbel/wFocus | ee0f02053b8a5bc9c40dd862306fc5df1a063b9d | [
"Apache-2.0"
] | 11 | 2020-06-06T01:51:51.000Z | 2022-02-10T14:31:21.000Z | apps/weapons/admin.py | tufbel/wFocus | ee0f02053b8a5bc9c40dd862306fc5df1a063b9d | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
# Register your models here.
from apps.weapons.models import Weapon
admin.site.register(Weapon)
| 18.714286 | 38 | 0.80916 |
4237a4d8945ebfffd7fd8c863df2a43bde57f4e3 | 975 | py | Python | modules/kubrick/apps/awards/models.py | Lab-Quatro/aposcar | 97631f2e3939566cc4e5b81e50c58ce03a5350a4 | [
"MIT"
] | 3 | 2021-07-05T14:18:27.000Z | 2021-09-02T10:15:55.000Z | modules/kubrick/apps/awards/models.py | Lab-Quatro/aposcar | 97631f2e3939566cc4e5b81e50c58ce03a5350a4 | [
"MIT"
] | 1 | 2021-10-31T21:40:39.000Z | 2021-10-31T21:40:39.000Z | modules/kubrick/apps/awards/models.py | Lab-Quatro/aposcar | 97631f2e3939566cc4e5b81e50c58ce03a5350a4 | [
"MIT"
] | null | null | null | from django.db import models
| 25.657895 | 70 | 0.695385 |
42383a1d8efb06b1b9b9ac90bcfd5e6b24b3d414 | 6,113 | py | Python | scholarly_citation_finder/apps/citation/search/PublicationDocumentExtractor.py | citationfinder/scholarly_citation_finder | 3e6c340cfebc934a013759e27d8c145171110156 | [
"MIT"
] | 1 | 2017-01-23T18:02:42.000Z | 2017-01-23T18:02:42.000Z | scholarly_citation_finder/apps/citation/search/PublicationDocumentExtractor.py | citationfinder/scholarly_citation_finder | 3e6c340cfebc934a013759e27d8c145171110156 | [
"MIT"
] | null | null | null | scholarly_citation_finder/apps/citation/search/PublicationDocumentExtractor.py | citationfinder/scholarly_citation_finder | 3e6c340cfebc934a013759e27d8c145171110156 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import logging
from datetime import datetime
from scholarly_citation_finder import config
from scholarly_citation_finder.apps.parser.Parser import Parser
from scholarly_citation_finder.apps.core.models import PublicationUrl
from scholarly_citation_finder.tools.extractor.grobid... | 45.962406 | 135 | 0.657615 |
423985c9471e18c947bb00b13f5fb82114424fab | 2,884 | py | Python | webapp/web.py | thunderz99/azure_image_caption | f7d3649051c948c9651b7d3f9df006d84449cc14 | [
"MIT"
] | 1 | 2019-04-19T13:22:15.000Z | 2019-04-19T13:22:15.000Z | webapp/web.py | thunderz99/azure_image_caption | f7d3649051c948c9651b7d3f9df006d84449cc14 | [
"MIT"
] | null | null | null | webapp/web.py | thunderz99/azure_image_caption | f7d3649051c948c9651b7d3f9df006d84449cc14 | [
"MIT"
] | null | null | null | import sys
import os
import json
import urllib
from PIL import Image
from flask import Flask, request, redirect, url_for
from flask import send_from_directory, render_template
from werkzeug.utils import secure_filename
from datetime import datetime
from caption_service import CaptionService
from translation_service imp... | 28 | 79 | 0.691054 |
423cfa9d306c6cce1a1273c94c45fb8dde9787d8 | 16,706 | py | Python | map2loop/m2l_map_checker.py | Leguark/map2loop | 365dde4490f50ad73612120a7d4bee61e54a9a18 | [
"MIT"
] | null | null | null | map2loop/m2l_map_checker.py | Leguark/map2loop | 365dde4490f50ad73612120a7d4bee61e54a9a18 | [
"MIT"
] | null | null | null | map2loop/m2l_map_checker.py | Leguark/map2loop | 365dde4490f50ad73612120a7d4bee61e54a9a18 | [
"MIT"
] | null | null | null | import geopandas as gpd
from shapely.geometry import LineString, Polygon,MultiLineString
import os.path
from map2loop import m2l_utils
import warnings
import numpy as np
import pandas as pd
#explodes polylines and modifies objectid for exploded parts
| 44.079156 | 160 | 0.534359 |
423dba72ede1b75a23e84d734d1a416227c1565d | 2,116 | py | Python | DeepBrainSeg/readers/nib.py | JasperHG90/DeepBrainSeg | 92cf5f758f115e7ac51202966a1287fb58c09d78 | [
"MIT"
] | 130 | 2019-04-09T02:35:44.000Z | 2022-02-26T15:53:19.000Z | DeepBrainSeg/readers/nib.py | koriavinash1/DeepMedX | 02fcee6d7b21b16e7f1e28089f24be56ef6b9383 | [
"MIT"
] | 11 | 2019-09-18T03:55:29.000Z | 2021-01-03T13:11:20.000Z | DeepBrainSeg/readers/nib.py | koriavinash1/DeepMedX | 02fcee6d7b21b16e7f1e28089f24be56ef6b9383 | [
"MIT"
] | 38 | 2018-11-28T01:34:41.000Z | 2022-01-17T03:53:47.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# author: Avinash Kori
# contact: koriavinash1@gmail.com
# MIT License
# Copyright (c) 2020 Avinash Kori
# 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... | 30.666667 | 80 | 0.676749 |
423ee3e6a6459504377643bd233fea0f011a4f80 | 259 | py | Python | tensorflow/intro/main.py | donutloop/machine_learning_examples | 46192a57e2dd194925ae76d6bfb169cd2af142dd | [
"MIT"
] | 1 | 2018-10-08T18:24:40.000Z | 2018-10-08T18:24:40.000Z | tensorflow/intro/main.py | donutloop/machine_learning_examples | 46192a57e2dd194925ae76d6bfb169cd2af142dd | [
"MIT"
] | null | null | null | tensorflow/intro/main.py | donutloop/machine_learning_examples | 46192a57e2dd194925ae76d6bfb169cd2af142dd | [
"MIT"
] | 1 | 2018-10-09T06:50:48.000Z | 2018-10-09T06:50:48.000Z | import os
import tensorflow as tf
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
x1 = tf.constant(5)
x2 = tf.constant(6)
result = tf.multiply(x1, x2)
print(result)
sess = tf.Session()
with tf.Session() as sess:
output = sess.run(result)
print(output)
| 15.235294 | 40 | 0.683398 |
423f75233120c5c9e5189a28dbf159544fa15eba | 845 | py | Python | twitter-bots/auto_liker.py | debasish-dutta/Python-projects | e06710ba47b37d42d83bd1859c46023513ea1c80 | [
"MIT"
] | null | null | null | twitter-bots/auto_liker.py | debasish-dutta/Python-projects | e06710ba47b37d42d83bd1859c46023513ea1c80 | [
"MIT"
] | null | null | null | twitter-bots/auto_liker.py | debasish-dutta/Python-projects | e06710ba47b37d42d83bd1859c46023513ea1c80 | [
"MIT"
] | null | null | null | import auth_key
import tweepy
import time
auth = tweepy.OAuthHandler(auth_key.API_key, auth_key.API_secret_key)
auth.set_access_token(auth_key.Access_token, auth_key.Access_token_secret)
api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True)
user = api.me()
indId = 2282863
india... | 24.852941 | 80 | 0.647337 |
423f9534e4fce6ed19f5f3059bb0ba6698e76415 | 745 | py | Python | ds_discovery/engines/distributed_mesh/domain_products/controller/src/controller.py | project-hadron/discovery-transition-ds | 08229ca3b7617b42ce2dd8e47ff93876c0843810 | [
"BSD-3-Clause"
] | 2 | 2020-09-21T17:24:16.000Z | 2021-05-28T18:02:54.000Z | ds_discovery/engines/distributed_mesh/domain_products/controller/src/controller.py | project-hadron/discovery-transition-ds | 08229ca3b7617b42ce2dd8e47ff93876c0843810 | [
"BSD-3-Clause"
] | null | null | null | ds_discovery/engines/distributed_mesh/domain_products/controller/src/controller.py | project-hadron/discovery-transition-ds | 08229ca3b7617b42ce2dd8e47ff93876c0843810 | [
"BSD-3-Clause"
] | 1 | 2021-07-23T13:52:04.000Z | 2021-07-23T13:52:04.000Z | from ds_discovery import Controller
import os
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
warnings.simplefilter(action='ignore', category=DeprecationWarning)
__author__ = 'Darryl Oatridge'
if __name__ == '__main__':
domain_controller()
| 32.391304 | 100 | 0.777181 |
423fee1037a4130b27a1927c09025e289e851a6f | 1,491 | py | Python | utils_test.py | lostsquirrel/words | aaa4bb2b3a9c8c7c7300e29ec73f39cff4409b8d | [
"MIT"
] | null | null | null | utils_test.py | lostsquirrel/words | aaa4bb2b3a9c8c7c7300e29ec73f39cff4409b8d | [
"MIT"
] | null | null | null | utils_test.py | lostsquirrel/words | aaa4bb2b3a9c8c7c7300e29ec73f39cff4409b8d | [
"MIT"
] | null | null | null | import json
import unittest
from utils import CustomEncoder, Paging, ValidationError, generate_uuid, Validator
| 26.625 | 82 | 0.564051 |
424044b56baa6c4ca720ef729a7deb71c15b2301 | 1,342 | py | Python | src/pyclean/cli.py | uranusjr/pyclean-py | ba3f4674d02fde396391e0f16906bd2b9cf7cd2d | [
"ISC"
] | null | null | null | src/pyclean/cli.py | uranusjr/pyclean-py | ba3f4674d02fde396391e0f16906bd2b9cf7cd2d | [
"ISC"
] | null | null | null | src/pyclean/cli.py | uranusjr/pyclean-py | ba3f4674d02fde396391e0f16906bd2b9cf7cd2d | [
"ISC"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import logging
import os
import sys
from . import entries, meta
logger = logging.getLogger(__name__)
if __name__ == '__main__':
main()
| 21.301587 | 68 | 0.632638 |
4240a3a135f3d439bdb928b669c203c2c5a8b79b | 6,890 | py | Python | app.py | ZhongxuanWang/simple_web_remainder-python | e61f9cf05d464fa55ae628fe415ea164f7574cde | [
"MIT"
] | null | null | null | app.py | ZhongxuanWang/simple_web_remainder-python | e61f9cf05d464fa55ae628fe415ea164f7574cde | [
"MIT"
] | null | null | null | app.py | ZhongxuanWang/simple_web_remainder-python | e61f9cf05d464fa55ae628fe415ea164f7574cde | [
"MIT"
] | null | null | null | from flask import Flask, render_template, url_for, redirect, request
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
from dateutil.relativedelta import relativedelta
from demail import demail
__author__ = 'Zhongxuan Wang'
__doc__ = 'Never Forget online remainder'
app = Flask(__name__)
app.config... | 31.318182 | 118 | 0.633962 |
424371e9002a0d30915e7782779c23b77cf1168c | 522 | py | Python | homeassistant/components/solaredge/__init__.py | DavidDeSloovere/core | 909a20b36d4df6724c955c2ae28cb82fe6d50c2e | [
"Apache-2.0"
] | 4 | 2020-08-10T20:02:24.000Z | 2022-01-31T02:14:22.000Z | homeassistant/components/solaredge/__init__.py | DavidDeSloovere/core | 909a20b36d4df6724c955c2ae28cb82fe6d50c2e | [
"Apache-2.0"
] | 78 | 2020-07-23T07:13:08.000Z | 2022-03-31T06:02:04.000Z | homeassistant/components/solaredge/__init__.py | DavidDeSloovere/core | 909a20b36d4df6724c955c2ae28cb82fe6d50c2e | [
"Apache-2.0"
] | 3 | 2022-01-17T20:10:54.000Z | 2022-01-17T20:17:22.000Z | """The solaredge integration."""
from __future__ import annotations
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
import homeassistant.helpers.config_validation as cv
from .const import DOMAIN
CONFIG_SCHEMA = cv.deprecated(DOMAIN)
| 27.473684 | 77 | 0.781609 |
4243ae92dc1a6dc43f40406353ff665ec5905d97 | 3,241 | py | Python | main.py | eteq/door_beeper | 56c3ddcd9b24c66870aefa4dda0f3df3960049b1 | [
"Apache-2.0"
] | null | null | null | main.py | eteq/door_beeper | 56c3ddcd9b24c66870aefa4dda0f3df3960049b1 | [
"Apache-2.0"
] | null | null | null | main.py | eteq/door_beeper | 56c3ddcd9b24c66870aefa4dda0f3df3960049b1 | [
"Apache-2.0"
] | null | null | null | import uos
import utime
import machine
from machine import Pin, PWM
import utils
default_config = dict(
sleep_time_ms = 250,
freezer_delay_ms = 1000,
fridge_delay_ms = 1000,
write_battery_voltage = True,
piezo_plus_pin_num = 12,
piezo_min_pin_num = 33,
freezer_switch_pin_num ... | 34.849462 | 100 | 0.622339 |
42440ed0ff98d8396cf65df66d98259bed94142f | 6,034 | py | Python | modules/backend.py | Uncle-Yuanl/model_zoo | 455a2fd4ac5562a922f29e68de2f4e1fb2d3d2d8 | [
"Apache-2.0"
] | null | null | null | modules/backend.py | Uncle-Yuanl/model_zoo | 455a2fd4ac5562a922f29e68de2f4e1fb2d3d2d8 | [
"Apache-2.0"
] | null | null | null | modules/backend.py | Uncle-Yuanl/model_zoo | 455a2fd4ac5562a922f29e68de2f4e1fb2d3d2d8 | [
"Apache-2.0"
] | null | null | null | import os, sys
from distutils.util import strtobool
import numpy as np
import tensorflow as tf
import tensorflow.keras.backend as K
from tensorflow.python.util import nest, tf_inspect
from tensorflow.python.eager import tape
# from tensorflow.python.ops.custom_gradient import graph_mode_decorator
#
do_r... | 27.678899 | 75 | 0.542592 |
42441c80231ccaad24f01bdd333bcd71d34fa2e7 | 2,957 | py | Python | apod_daily.py | gultugaydemir/apod_daily | 994ccebdf2646c1a700110d891ea73261773bea2 | [
"CC0-1.0"
] | null | null | null | apod_daily.py | gultugaydemir/apod_daily | 994ccebdf2646c1a700110d891ea73261773bea2 | [
"CC0-1.0"
] | null | null | null | apod_daily.py | gultugaydemir/apod_daily | 994ccebdf2646c1a700110d891ea73261773bea2 | [
"CC0-1.0"
] | null | null | null | import datetime
import os
import requests
import tweepy
from PIL import Image
# Get your own keys from developer.twitter.com
# You can find a detailed tutorial about authenticating accounts from github.com/gultugaydemir/Twitter_OAuth1.0a
consumer_key = ''
consumer_secret = ''
access_token = ''
access_token_secret = '... | 40.506849 | 147 | 0.683801 |
424460c099ec096eec540d08794ad2f9da57997e | 6,414 | py | Python | datasets/dad.py | LivingSkyTechnologies/Document_Layout_Segmentation | 0db00a18fb39afa1efa8ae183bbd57309a6ebfcf | [
"MIT"
] | 4 | 2021-01-28T23:06:43.000Z | 2022-01-15T19:17:07.000Z | datasets/dad.py | LivingSkyTechnologies/Document_Layout_Segmentation | 0db00a18fb39afa1efa8ae183bbd57309a6ebfcf | [
"MIT"
] | 2 | 2021-01-25T21:54:05.000Z | 2021-08-23T21:19:21.000Z | datasets/dad.py | LivingSkyTechnologies/Document_Layout_Segmentation | 0db00a18fb39afa1efa8ae183bbd57309a6ebfcf | [
"MIT"
] | 2 | 2021-01-28T13:39:33.000Z | 2022-01-15T19:17:13.000Z | import pickle
import os
import tensorflow as tf
from glob import glob
import utils.DataLoaderUtils as dlu
from utils.AnnotationUtils import write_dad_masks
# Static Dataset Config Options
TAG_NAMES = {'highlights',
'urls_to_supplementary',
'abbreviation',
'abstract',
... | 42.76 | 140 | 0.588868 |
4248c96a6cf8583046ad1cd239d37aa7ac5e5d96 | 740 | py | Python | terrascript/resource/ddelnano/mikrotik.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/resource/ddelnano/mikrotik.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/resource/ddelnano/mikrotik.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/resource/ddelnano/mikrotik.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:21:43 UTC)
import terrascript
__all__ = [
"mikrotik_bgp_instance",
"mikrotik_bgp_peer",
"mikrotik_dhcp_lease",
"mikrotik_dns_record",
"mikrotik_pool",
"mikrotik_scheduler",
"mi... | 17.209302 | 73 | 0.754054 |
424a2a5c3d067c0a48cf8560895baac37e4bf0ea | 812 | py | Python | test/threaddd.py | liaohongdong/IPProxy | 90152f02708717c661b7c1532e4a131a55103950 | [
"MIT"
] | null | null | null | test/threaddd.py | liaohongdong/IPProxy | 90152f02708717c661b7c1532e4a131a55103950 | [
"MIT"
] | 1 | 2021-03-31T19:17:41.000Z | 2021-03-31T19:17:41.000Z | test/threaddd.py | liaohongdong/IPProxy | 90152f02708717c661b7c1532e4a131a55103950 | [
"MIT"
] | null | null | null | import time
import queue
import threading
if __name__ == '__main__':
num_of_threads = 5
source = [i for i in range(1, 21)]
q = queue.Queue()
threads = []
for i in range(1, num_of_threads + 1):
t = threading.Thread(target=aaa, args=(i,))
threads.append(t)
t.start()
for... | 20.820513 | 58 | 0.507389 |
424a464b22116de9e6ed995f96ff3b93bc5bdfe1 | 665 | py | Python | Codes/Liam/203_remove_linked_list_elements.py | liuxiaohui1221/algorithm | d80e64185ceb4798ac5389bfbd226dc1d406f6b5 | [
"Apache-2.0"
] | 256 | 2017-10-25T13:02:15.000Z | 2022-02-25T13:47:59.000Z | Codes/Liam/203_remove_linked_list_elements.py | liuxiaohui1221/algorithm | d80e64185ceb4798ac5389bfbd226dc1d406f6b5 | [
"Apache-2.0"
] | 56 | 2017-10-27T01:34:20.000Z | 2022-03-01T00:20:55.000Z | Codes/Liam/203_remove_linked_list_elements.py | liuxiaohui1221/algorithm | d80e64185ceb4798ac5389bfbd226dc1d406f6b5 | [
"Apache-2.0"
] | 83 | 2017-10-25T12:51:53.000Z | 2022-02-15T08:27:03.000Z | # : 68 ms
# : 16.6 MB
# sentinelhead
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
| 22.166667 | 67 | 0.538346 |
424d5b248c6b3fcd0ec5e3855e8a59d969b36415 | 1,296 | py | Python | bailleurs/migrations/0001_initial.py | MTES-MCT/appel | 3b840ccea600ef31cfea57721fe5e6edbdbc2c79 | [
"MIT"
] | null | null | null | bailleurs/migrations/0001_initial.py | MTES-MCT/appel | 3b840ccea600ef31cfea57721fe5e6edbdbc2c79 | [
"MIT"
] | 2 | 2021-12-15T05:10:43.000Z | 2021-12-15T05:11:00.000Z | bailleurs/migrations/0001_initial.py | MTES-MCT/appel | 3b840ccea600ef31cfea57721fe5e6edbdbc2c79 | [
"MIT"
] | 1 | 2021-12-28T13:06:06.000Z | 2021-12-28T13:06:06.000Z | # Generated by Django 3.2.5 on 2021-07-06 14:18
import uuid
from django.db import migrations, models
| 35.027027 | 80 | 0.548611 |
424d80dc7999edc27c21ab202ecf629475f40e26 | 2,026 | py | Python | tests/primitives/flow/probe_tcpip_extended_unibiflow_test.py | kjerabek/netexp | 362c200230ba7b2549adcedd4a9890492dad51c7 | [
"MIT"
] | null | null | null | tests/primitives/flow/probe_tcpip_extended_unibiflow_test.py | kjerabek/netexp | 362c200230ba7b2549adcedd4a9890492dad51c7 | [
"MIT"
] | null | null | null | tests/primitives/flow/probe_tcpip_extended_unibiflow_test.py | kjerabek/netexp | 362c200230ba7b2549adcedd4a9890492dad51c7 | [
"MIT"
] | null | null | null | from tests.primitives.flow import probe_tcpip_extended_biflow_test
from netexp.primitives.flow import TCPIPFlowExtendedUniBiFlowInfo
from netexp.common import naming
| 56.277778 | 117 | 0.651037 |
424f02955cdf26ece00480c3e560a36d37aea6f6 | 19,816 | py | Python | optionstrader/database.py | Zaitsev11/Optionstrader | ed2dbef802ad08f14a0e5280e91746f1bf1fa3f3 | [
"MIT"
] | 6 | 2018-04-26T03:02:04.000Z | 2022-02-26T04:58:53.000Z | optionstrader/database.py | webclinic017/Optionstrader | ed2dbef802ad08f14a0e5280e91746f1bf1fa3f3 | [
"MIT"
] | null | null | null | optionstrader/database.py | webclinic017/Optionstrader | ed2dbef802ad08f14a0e5280e91746f1bf1fa3f3 | [
"MIT"
] | 5 | 2019-12-01T08:09:08.000Z | 2021-11-28T03:43:24.000Z | import time
import mysql.connector
from optionstrader.customlogging import CustomLog
from optionstrader.parser import Parser
MYSQL_IP_ADDR = '192.168.1.10'
# Used to debug via logs
DEBUG = False
| 41.717895 | 155 | 0.605874 |
424fc9a502a8c9fe3c5da2a1e3dec902d92abba5 | 10,254 | py | Python | backend/api/migrations/0001_initial.py | leowotzak/ljwe-db | ab49f90feaac5fad26efa900db5567c9c09f3435 | [
"MIT"
] | null | null | null | backend/api/migrations/0001_initial.py | leowotzak/ljwe-db | ab49f90feaac5fad26efa900db5567c9c09f3435 | [
"MIT"
] | 9 | 2021-11-17T18:31:29.000Z | 2021-11-21T00:47:39.000Z | backend/api/migrations/0001_initial.py | leowotzak/ljwe-db | ab49f90feaac5fad26efa900db5567c9c09f3435 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-24 02:52
from django.db import migrations, models
import django.db.models.deletion
| 49.062201 | 111 | 0.536083 |
42500bb71a15c0815810b37eafb946db4fb96b64 | 3,713 | py | Python | Ch2_Linked_Lists/test/test_CTCI_Ch2_Ex6.py | mtrdazzo/CTCI | 30a82aed96b05fe21b7d337a138e4ec19950eb9d | [
"MIT"
] | null | null | null | Ch2_Linked_Lists/test/test_CTCI_Ch2_Ex6.py | mtrdazzo/CTCI | 30a82aed96b05fe21b7d337a138e4ec19950eb9d | [
"MIT"
] | null | null | null | Ch2_Linked_Lists/test/test_CTCI_Ch2_Ex6.py | mtrdazzo/CTCI | 30a82aed96b05fe21b7d337a138e4ec19950eb9d | [
"MIT"
] | null | null | null | from unittest import TestCase
from CTCI.Ch2_Linked_Lists.common.SinglyLinkedList import Empty, Node
from CTCI.Ch2_Linked_Lists.exercises.CTCI_Ch2_Ex6 import PalindromeSinglyLinkedList, is_palindrome_brute_force
from CTCI.Ch2_Linked_Lists.exercises.CTCI_Ch2_Ex6 import is_palindrome_reverse
| 24.919463 | 110 | 0.649879 |
4250d5da81ea72feff3b65a105d5b2c76567a7d7 | 49,917 | py | Python | alphafold2_pytorch/utils.py | nilbot/alphafold2 | 455124ca9135e534739b9670c010512487965547 | [
"MIT"
] | 1 | 2022-01-21T04:58:18.000Z | 2022-01-21T04:58:18.000Z | alphafold2_pytorch/utils.py | nilbot/alphafold2 | 455124ca9135e534739b9670c010512487965547 | [
"MIT"
] | null | null | null | alphafold2_pytorch/utils.py | nilbot/alphafold2 | 455124ca9135e534739b9670c010512487965547 | [
"MIT"
] | null | null | null | # utils for working with 3d-protein structures
import os
import numpy as np
import torch
from functools import wraps
from einops import rearrange, repeat
# import torch_sparse # only needed for sparse nth_deg adj calculation
# bio
from Bio import SeqIO
import itertools
import string
# sidechainnet
from sidechainnet... | 41.356255 | 122 | 0.610033 |
4252097259c5f8f2219e8a65c81337c134ef50fa | 1,151 | py | Python | src/clean_property_file.py | wmaciel/van-crime | e70d0310f41de3a1b54572f6c6bf01083e56e0ab | [
"MIT"
] | 2 | 2016-03-03T00:14:59.000Z | 2016-08-21T14:28:02.000Z | src/clean_property_file.py | wmaciel/van-crime | e70d0310f41de3a1b54572f6c6bf01083e56e0ab | [
"MIT"
] | null | null | null | src/clean_property_file.py | wmaciel/van-crime | e70d0310f41de3a1b54572f6c6bf01083e56e0ab | [
"MIT"
] | null | null | null | __author__ = 'walthermaciel'
import pandas as pd
import numpy as np
if __name__ == '__main__':
main()
| 28.775 | 99 | 0.650738 |
4252c9d8b3317ae5bd56696743e5b2124dce1942 | 4,040 | py | Python | homeassistant/components/sensor/verisure.py | beschouten/home-assistant | f50c30bbbad4d92e342c8547630c63c0c7882803 | [
"MIT"
] | 1 | 2016-07-14T05:20:54.000Z | 2016-07-14T05:20:54.000Z | homeassistant/components/sensor/verisure.py | beschouten/home-assistant | f50c30bbbad4d92e342c8547630c63c0c7882803 | [
"MIT"
] | null | null | null | homeassistant/components/sensor/verisure.py | beschouten/home-assistant | f50c30bbbad4d92e342c8547630c63c0c7882803 | [
"MIT"
] | 1 | 2018-11-22T13:55:23.000Z | 2018-11-22T13:55:23.000Z | """
Interfaces with Verisure sensors.
For more details about this platform, please refer to the documentation at
documentation at https://home-assistant.io/components/verisure/
"""
import logging
from homeassistant.components.verisure import HUB as hub
from homeassistant.const import TEMP_CELSIUS
from homeassistant.h... | 26.933333 | 74 | 0.611881 |
4253d0f64f25024f864712c154a198a0bd7c1158 | 1,135 | py | Python | articles/blogs/tests/factories.py | MahmoudFarid/articles | f0238908b1430c949dace50401fb3ddf268a581b | [
"MIT"
] | null | null | null | articles/blogs/tests/factories.py | MahmoudFarid/articles | f0238908b1430c949dace50401fb3ddf268a581b | [
"MIT"
] | null | null | null | articles/blogs/tests/factories.py | MahmoudFarid/articles | f0238908b1430c949dace50401fb3ddf268a581b | [
"MIT"
] | null | null | null | import factory
from factory.django import DjangoModelFactory as Factory
from django.contrib.auth.models import Permission
from ..models import Blog
from articles.users.tests.factories import UserFactory
| 33.382353 | 102 | 0.767401 |
425489e4c1a682c5eeaad70ce3b5e922f8f9536b | 8,847 | py | Python | api_formatter/serializers.py | RockefellerArchiveCenter/argo | c02fec68dbb50382f3f0bdf11c51240ca22a181c | [
"MIT"
] | null | null | null | api_formatter/serializers.py | RockefellerArchiveCenter/argo | c02fec68dbb50382f3f0bdf11c51240ca22a181c | [
"MIT"
] | 115 | 2019-08-19T20:19:06.000Z | 2022-03-04T17:40:50.000Z | api_formatter/serializers.py | RockefellerArchiveCenter/argo | c02fec68dbb50382f3f0bdf11c51240ca22a181c | [
"MIT"
] | null | null | null | from datetime import datetime
from django.urls import reverse
from rest_framework import serializers
from .view_helpers import description_from_notes
| 35.247012 | 98 | 0.706228 |
42549d1737ce596628e42957af0838f8a820986b | 828 | py | Python | cmz/cms_news/migrations/0004_auto_20160923_1958.py | inmagik/cmz | e183f0c7203bda5efb1cbeb96f4f06a76aa91231 | [
"MIT"
] | 1 | 2016-10-01T18:35:24.000Z | 2016-10-01T18:35:24.000Z | cmz/cms_news/migrations/0004_auto_20160923_1958.py | inmagik/cmz | e183f0c7203bda5efb1cbeb96f4f06a76aa91231 | [
"MIT"
] | 8 | 2016-09-14T21:39:09.000Z | 2016-10-25T20:08:31.000Z | cmz/cms_news/migrations/0004_auto_20160923_1958.py | inmagik/cmz | e183f0c7203bda5efb1cbeb96f4f06a76aa91231 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-09-23 19:58
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
| 27.6 | 126 | 0.621981 |
42553eda4ebfb5ccb85d9727626440163f717d34 | 3,252 | py | Python | mopidy/audio/utils.py | grdorin/mopidy | 76db44088c102d7ad92a3fc6a15a938e66b99b0d | [
"Apache-2.0"
] | 6,700 | 2015-01-01T03:57:59.000Z | 2022-03-30T09:31:31.000Z | mopidy/audio/utils.py | pnijhara/mopidy | 7168787ea6c82b66e138fc2b388d78fa1c7661ba | [
"Apache-2.0"
] | 1,141 | 2015-01-02T09:48:59.000Z | 2022-03-28T22:25:30.000Z | mopidy/audio/utils.py | pnijhara/mopidy | 7168787ea6c82b66e138fc2b388d78fa1c7661ba | [
"Apache-2.0"
] | 735 | 2015-01-01T21:15:50.000Z | 2022-03-20T16:13:44.000Z | from mopidy import httpclient
from mopidy.internal.gi import Gst
def calculate_duration(num_samples, sample_rate):
"""Determine duration of samples using GStreamer helper for precise
math."""
return Gst.util_uint64_scale(num_samples, Gst.SECOND, sample_rate)
def create_buffer(data, timestamp=None, durat... | 31.882353 | 78 | 0.681119 |
425582d3b0bd9aebc3e98f0f395cf656db9c8b38 | 467 | py | Python | day09/part1.py | mtn/advent16 | 0df34237485ee1246532e9eda0ef643e6950d13e | [
"MIT"
] | null | null | null | day09/part1.py | mtn/advent16 | 0df34237485ee1246532e9eda0ef643e6950d13e | [
"MIT"
] | null | null | null | day09/part1.py | mtn/advent16 | 0df34237485ee1246532e9eda0ef643e6950d13e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import re
with open("input.txt") as f:
content = f.read().strip()
ans = ""
i = 0
while i < len(content):
if content[i] == "(":
end = content[i:].find(")") + i
instr = content[i+1:end]
chars, times = map(int, content[i+1:end].split("x"))
to_copy = conten... | 20.304348 | 60 | 0.509636 |
4255be118dbe243d9d0c4b4eac0548f7377725a0 | 2,825 | py | Python | sa/profiles/Alcatel/AOS/get_inventory.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | sa/profiles/Alcatel/AOS/get_inventory.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | sa/profiles/Alcatel/AOS/get_inventory.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ----------------------------------------------------------------------
# Alcatel.AOS.get_inventory
# ----------------------------------------------------------------------
# Copyright (C) 2007-2014 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# Py... | 36.217949 | 72 | 0.43469 |
42569d1c317bd48e4f4e7021e87396555e651ced | 1,276 | py | Python | db_conn.py | achhetr/Library-book-store-app | a85e9a26dba48119ce52abb5ee8219528e06ac30 | [
"MIT"
] | null | null | null | db_conn.py | achhetr/Library-book-store-app | a85e9a26dba48119ce52abb5ee8219528e06ac30 | [
"MIT"
] | null | null | null | db_conn.py | achhetr/Library-book-store-app | a85e9a26dba48119ce52abb5ee8219528e06ac30 | [
"MIT"
] | null | null | null | import sqlite3 | 33.578947 | 98 | 0.579937 |
4258b13ddf592d8967b4cf56eb4a465b00010bc4 | 5,286 | py | Python | edge-tool/cbor_converter.py | hckim-kornic/mbed-edge-kornic | b83ea92066fae7c274777aa27494d5524c577c12 | [
"Apache-2.0"
] | null | null | null | edge-tool/cbor_converter.py | hckim-kornic/mbed-edge-kornic | b83ea92066fae7c274777aa27494d5524c577c12 | [
"Apache-2.0"
] | null | null | null | edge-tool/cbor_converter.py | hckim-kornic/mbed-edge-kornic | b83ea92066fae7c274777aa27494d5524c577c12 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright 2018 ARM Ltd.
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain ... | 40.661538 | 99 | 0.620885 |
4258ec1ee3116d288de649b3f19210bd3aa35e35 | 3,012 | py | Python | turbinia/processors/archive_test.py | sa3eed3ed/turbinia | 1eb4db37813f2bd44dcc2c3764e9411f6a2f9d97 | [
"Apache-2.0"
] | 559 | 2015-09-16T21:55:12.000Z | 2022-03-28T11:08:11.000Z | turbinia/processors/archive_test.py | sa3eed3ed/turbinia | 1eb4db37813f2bd44dcc2c3764e9411f6a2f9d97 | [
"Apache-2.0"
] | 630 | 2015-09-16T21:53:41.000Z | 2022-03-25T07:03:32.000Z | turbinia/processors/archive_test.py | sa3eed3ed/turbinia | 1eb4db37813f2bd44dcc2c3764e9411f6a2f9d97 | [
"Apache-2.0"
] | 158 | 2015-12-06T20:39:32.000Z | 2022-03-13T22:15:01.000Z | # -*- coding: utf-8 -*-
# Copyright 2019 Google 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 ... | 33.842697 | 74 | 0.729416 |
42595d917949c306ffaf79514babf64460ba3c69 | 1,869 | py | Python | blog.py | BenTimor/SerializationConceptSystem | 0f85dc32063d270a5564cda3199d84d474e5d83e | [
"MIT"
] | 1 | 2020-11-13T22:21:47.000Z | 2020-11-13T22:21:47.000Z | blog.py | BenTimor/SerializationConceptSystem | 0f85dc32063d270a5564cda3199d84d474e5d83e | [
"MIT"
] | null | null | null | blog.py | BenTimor/SerializationConceptSystem | 0f85dc32063d270a5564cda3199d84d474e5d83e | [
"MIT"
] | null | null | null | from utils import database | 29.666667 | 160 | 0.602996 |
4259a696e067dbb5b562342c586a116816461462 | 29 | py | Python | src/svr/tests/__init__.py | yottaawesome/fsnd-project-2 | 7ed478fa945a561a28af06dc8e4492a9fbea510a | [
"MIT"
] | 3 | 2019-05-04T12:30:00.000Z | 2020-05-14T06:28:51.000Z | src/svr/tests/__init__.py | yottaawesome/fsnd-project-2 | 7ed478fa945a561a28af06dc8e4492a9fbea510a | [
"MIT"
] | 1 | 2019-05-05T01:30:37.000Z | 2019-05-16T02:50:04.000Z | src/svr/tests/__init__.py | yottaawesome/fsnd-project-2 | 7ed478fa945a561a28af06dc8e4492a9fbea510a | [
"MIT"
] | 1 | 2020-03-27T07:12:40.000Z | 2020-03-27T07:12:40.000Z | from .test_db import TestDal
| 14.5 | 28 | 0.827586 |
425afadcb24a0ea23083f2d7fe78d83b6b1403c9 | 971 | py | Python | Owner/models.py | 2000090063/Vehicle_Rental_System-SDP-2- | 483d811aa239a226607b4bfb262c99da3be017b4 | [
"MIT"
] | 3 | 2022-03-12T08:27:42.000Z | 2022-03-17T12:16:16.000Z | Owner/models.py | 2000090063/Vehicle_Rental_System-SDP-2- | 483d811aa239a226607b4bfb262c99da3be017b4 | [
"MIT"
] | null | null | null | Owner/models.py | 2000090063/Vehicle_Rental_System-SDP-2- | 483d811aa239a226607b4bfb262c99da3be017b4 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here. | 42.217391 | 70 | 0.748713 |
425c5f6cf6cd74314b97f4bcb6721e3f260e8ac7 | 6,548 | py | Python | tectosaur/fmm/builder.py | jlmaurer/tectosaur | 7cc5606d814f061395b19754e7a4b6c5e4c236e5 | [
"MIT"
] | 17 | 2017-06-29T16:48:56.000Z | 2021-10-03T18:31:41.000Z | tectosaur/fmm/builder.py | jlmaurer/tectosaur | 7cc5606d814f061395b19754e7a4b6c5e4c236e5 | [
"MIT"
] | 4 | 2018-05-29T08:21:13.000Z | 2021-04-01T01:28:50.000Z | tectosaur/fmm/builder.py | jlmaurer/tectosaur | 7cc5606d814f061395b19754e7a4b6c5e4c236e5 | [
"MIT"
] | 8 | 2019-06-10T22:19:40.000Z | 2022-01-12T20:55:37.000Z | import numpy as np
import tectosaur.util.gpu as gpu
from tectosaur.fmm.c2e import build_c2e
import logging
logger = logging.getLogger(__name__)
| 36.786517 | 95 | 0.609652 |
425d43c4429c4fecedfff11a5de11c9d121390a6 | 2,553 | py | Python | fabio/test/codecs/test_mpaimage.py | picca/fabio | bc3aae330bef6e1c983007562157edfe6d7daf91 | [
"Apache-2.0"
] | null | null | null | fabio/test/codecs/test_mpaimage.py | picca/fabio | bc3aae330bef6e1c983007562157edfe6d7daf91 | [
"Apache-2.0"
] | 2 | 2019-04-24T13:43:41.000Z | 2019-06-13T08:54:02.000Z | fabio/test/codecs/test_mpaimage.py | boesecke/fabio | 11350e445a6def4d02c6860aea3ae7f36652af6a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Project: Fable Input Output
# https://github.com/silx-kit/fabio
#
# Copyright (C) European Synchrotron Radiation Facility, Grenoble, France
#
# Principal author: Jrme Kieffer (Jerome.Kieffer@ESRF.eu)
#
# This program is free software: you c... | 34.04 | 111 | 0.653741 |
425dd97c671323bb5d6b53095ab3886bfc7da465 | 1,064 | py | Python | currencySpider.py | cloud322/helloScrap | 6313c5b99bce04c6a78a5dfb2ec910c73a33add3 | [
"Apache-2.0"
] | null | null | null | currencySpider.py | cloud322/helloScrap | 6313c5b99bce04c6a78a5dfb2ec910c73a33add3 | [
"Apache-2.0"
] | null | null | null | currencySpider.py | cloud322/helloScrap | 6313c5b99bce04c6a78a5dfb2ec910c73a33add3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
import codecs
import sys
# utf-8 utf-8
reload(sys)
sys.setdefaultencoding('utf8')
# scrapy spider crawling/scrapping
#crawling/scrapping | 28 | 86 | 0.56015 |
425f6d304bf8b5a8fd1c2a47d2f7c554468160b1 | 1,812 | py | Python | tests/test_sanity_check/test_similar_columns.py | thibaultbl/feature_engine | 08374227e7a88b67ee64b64f22e4f30390df9253 | [
"BSD-3-Clause"
] | 1 | 2021-09-08T08:54:56.000Z | 2021-09-08T08:54:56.000Z | tests/test_sanity_check/test_similar_columns.py | thibaultbl/feature_engine | 08374227e7a88b67ee64b64f22e4f30390df9253 | [
"BSD-3-Clause"
] | 1 | 2021-09-10T08:54:51.000Z | 2021-09-10T08:54:51.000Z | tests/test_sanity_check/test_similar_columns.py | thibaultbl/feature_engine | 08374227e7a88b67ee64b64f22e4f30390df9253 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import pandas as pd
from feature_engine.sanity_check import SimilarColumns
| 27.044776 | 85 | 0.557395 |
425fb9945bfce39ef08339e9cffda8aa831a4e3d | 6,780 | py | Python | examples/sem_seg_dense/train.py | megaelius/deep_gcns_torch | 5d565a02020ff9faff3a34d55f278e7328c73ec2 | [
"MIT"
] | null | null | null | examples/sem_seg_dense/train.py | megaelius/deep_gcns_torch | 5d565a02020ff9faff3a34d55f278e7328c73ec2 | [
"MIT"
] | null | null | null | examples/sem_seg_dense/train.py | megaelius/deep_gcns_torch | 5d565a02020ff9faff3a34d55f278e7328c73ec2 | [
"MIT"
] | null | null | null |
import __init__
import os
#os.environ['LD_LIBRARY_PATH'] += ':/usr/local/cuda-11.1/bin64:/usr/local/cuda-11.2/bin64'
import numpy as np
import torch
import torch.multiprocessing as mp
import torch_geometric.datasets as GeoData
from torch_geometric.loader import DenseDataLoader
import torch_geometric.transforms as T... | 39.649123 | 156 | 0.633333 |
426012a76defd0d35b2275dd689a17428018f29c | 707 | py | Python | sources/tkinter/prog03.py | kantel/pythoncuriosa | 4dfb92b443cbe0acf8d8efa5c54efbf13e834620 | [
"MIT"
] | null | null | null | sources/tkinter/prog03.py | kantel/pythoncuriosa | 4dfb92b443cbe0acf8d8efa5c54efbf13e834620 | [
"MIT"
] | null | null | null | sources/tkinter/prog03.py | kantel/pythoncuriosa | 4dfb92b443cbe0acf8d8efa5c54efbf13e834620 | [
"MIT"
] | null | null | null | import tkinter as tk
from tkinter import ttk
win = tk.Tk()
win.title("Python GUI")
win.resizable(False, False)
win.configure(background = "grey94")
a_label = ttk.Label(win, text = "Gib Deinen Namen ein:")
a_label.grid(column = 0, row = 0)
a_label.grid_configure(padx = 8, pady = 8)
name = tk.StringVar()
name_entered ... | 26.185185 | 65 | 0.701556 |
4260837af4a64a8bea9204399d75709291c91101 | 528 | py | Python | openarticlegauge/slavedriver.py | CottageLabs/OpenArticleGauge | 58d29b4209a7b59041d61326ffe1cf03f98f3cff | [
"BSD-3-Clause"
] | 1 | 2016-04-07T18:29:27.000Z | 2016-04-07T18:29:27.000Z | openarticlegauge/slavedriver.py | CottageLabs/OpenArticleGauge | 58d29b4209a7b59041d61326ffe1cf03f98f3cff | [
"BSD-3-Clause"
] | 11 | 2015-01-06T15:53:09.000Z | 2022-03-01T01:46:14.000Z | openarticlegauge/slavedriver.py | CottageLabs/OpenArticleGauge | 58d29b4209a7b59041d61326ffe1cf03f98f3cff | [
"BSD-3-Clause"
] | null | null | null | """
Initialise the Celery instance to be used by the application
This is largely just boiler plate, and we could probably look at coming back to it and cleaning it
up a bit in the future.
"""
from __future__ import absolute_import
from celery import Celery
celery = Celery()
from openarticlegauge import celeryconfi... | 21.12 | 98 | 0.780303 |
42629d99092a4d568c978d01f8d8dafafec338c9 | 28,061 | py | Python | cbf_ros/scripts/cbf_controller_sy.py | k1majd/CBF_TB_RRT | 2632357d42155de6dec5802c337a5abfdc824aac | [
"MIT"
] | 2 | 2021-10-07T17:06:57.000Z | 2021-11-23T15:58:14.000Z | cbf_ros/scripts/cbf_controller_sy.py | k1majd/CBF_TB_RRT | 2632357d42155de6dec5802c337a5abfdc824aac | [
"MIT"
] | 1 | 2021-10-13T17:18:32.000Z | 2021-10-13T17:37:26.000Z | cbf_ros/scripts/cbf_controller_sy.py | k1majd/CBF_TB_RRT | 2632357d42155de6dec5802c337a5abfdc824aac | [
"MIT"
] | 1 | 2021-11-30T11:09:43.000Z | 2021-11-30T11:09:43.000Z | #! /usr/bin/env python
# call roscore
# $ roscore
#
# If start in manual
# $ rosrun cbf_ros cbf_controller.py
import rospy
import sys
import argparse
import re
import numpy as np
from scipy.integrate import odeint
from sympy import symbols, Matrix, sin, cos, lambdify, exp, sqrt, log
import matplotlib.pyplot as plt
im... | 51.393773 | 222 | 0.490218 |
4262af6285d912525c9c840db4e454a16f646f01 | 5,250 | py | Python | src/gui/ui_paste_dialog.py | tonypdmtr/sxtool | 225468d70c5fe1bf7414f19ce13dcdd43e872433 | [
"BSD-2-Clause"
] | 3 | 2018-10-11T15:34:24.000Z | 2022-02-20T23:24:01.000Z | src/gui/ui_paste_dialog.py | tonypdmtr/sxtool | 225468d70c5fe1bf7414f19ce13dcdd43e872433 | [
"BSD-2-Clause"
] | 1 | 2018-10-16T06:58:22.000Z | 2018-10-22T20:19:55.000Z | src/gui/ui_paste_dialog.py | tonypdmtr/sxtool | 225468d70c5fe1bf7414f19ce13dcdd43e872433 | [
"BSD-2-Clause"
] | 1 | 2022-02-20T23:26:50.000Z | 2022-02-20T23:26:50.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'src/gui/ui_paste_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
| 58.333333 | 110 | 0.739619 |
4262ea9b91c2ce1c0da94f2913617caab9285e6f | 110 | py | Python | app/pathfinding/finder/__init__.py | TheronHa/Spaghetti | e181c2f7ea0c044fb7d0edb36bd203dac2eabaf9 | [
"MIT"
] | 208 | 2017-01-23T17:45:13.000Z | 2022-03-22T22:27:25.000Z | app/pathfinding/finder/__init__.py | TheronHa/Spaghetti | e181c2f7ea0c044fb7d0edb36bd203dac2eabaf9 | [
"MIT"
] | 31 | 2017-10-28T09:21:06.000Z | 2021-09-26T15:38:36.000Z | app/pathfinding/finder/__init__.py | TheronHa/Spaghetti | e181c2f7ea0c044fb7d0edb36bd203dac2eabaf9 | [
"MIT"
] | 60 | 2016-12-13T00:05:36.000Z | 2022-03-21T22:23:49.000Z | __all__ = ['a_star', 'best_first', 'bi_a_star', 'breadth_first', 'dijkstra',
'finder', 'ida_star']
| 36.666667 | 76 | 0.609091 |
4263245bfbde431be1ac8c88739a3f1f392bf22f | 34,891 | py | Python | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/uo_20000929.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/uo_20000929.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/uo_20000929.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | 1 | 2020-07-26T03:57:45.000Z | 2020-07-26T03:57:45.000Z | #Uche's test from Sun's SVG slide publisher
import os
from Xml.Xslt import test_harness
#From Sun's toolkit
sheet_1_uri = "Xml/Xslt/Borrowed/svgslides.xsl"
sheet_2_uri = "Xml/Xslt/Borrowed/svgslides_custom.xsl"
sheet_3_uri = "Xml/Xslt/Borrowed/slidescript.xsl"
source_1_uri = "Xml/Xslt/Borrowed/slides4svg.xml"
saxon_o... | 51.010234 | 541 | 0.567367 |
42646da758d7d00689423c6bb8d4edd633b50938 | 232 | py | Python | src/2/2338.py | youngdaLee/Baekjoon | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | [
"MIT"
] | 11 | 2020-09-20T15:17:11.000Z | 2022-03-17T12:43:33.000Z | src/2/2338.py | youngdaLee/Baekjoon | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | [
"MIT"
] | 3 | 2021-10-30T07:51:36.000Z | 2022-03-09T05:19:23.000Z | src/2/2338.py | youngdaLee/Baekjoon | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | [
"MIT"
] | 13 | 2021-01-21T03:19:08.000Z | 2022-03-28T10:44:58.000Z | """
2338.
: xCrypt0r
: Python 3
: 29,380 KB
: 72 ms
: 2020 9 13
"""
if __name__ == '__main__':
main()
| 12.888889 | 40 | 0.538793 |
4264be58cf46729f9ccb094d1db453583943d301 | 2,952 | py | Python | tests/ut/python/nn/test_activation.py | PowerOlive/mindspore | bda20724a94113cedd12c3ed9083141012da1f15 | [
"Apache-2.0"
] | 3,200 | 2020-02-17T12:45:41.000Z | 2022-03-31T20:21:16.000Z | tests/ut/python/nn/test_activation.py | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | 176 | 2020-02-12T02:52:11.000Z | 2022-03-28T22:15:55.000Z | tests/ut/python/nn/test_activation.py | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | 621 | 2020-03-09T01:31:41.000Z | 2022-03-30T03:43:19.000Z | # Copyright 2020 Huawei Technologies Co., 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-2.0
#
# Unless required by applicable law or agreed to... | 27.333333 | 80 | 0.661247 |
42667a983dfb48f00077636f4ff9f6c3c1fe62f9 | 743 | py | Python | sdk/python/tests/integration/feature_repos/universal/data_source_creator.py | marsishandsome/feast | 998e16945da240bfa73570cdb2c5e3639f892d34 | [
"Apache-2.0"
] | 1 | 2021-09-16T16:17:58.000Z | 2021-09-16T16:17:58.000Z | sdk/python/tests/integration/feature_repos/universal/data_source_creator.py | marsishandsome/feast | 998e16945da240bfa73570cdb2c5e3639f892d34 | [
"Apache-2.0"
] | null | null | null | sdk/python/tests/integration/feature_repos/universal/data_source_creator.py | marsishandsome/feast | 998e16945da240bfa73570cdb2c5e3639f892d34 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Dict
import pandas as pd
from feast.data_source import DataSource
from feast.repo_config import FeastConfigBaseModel
| 22.515152 | 69 | 0.664872 |
42683ff20338aa58755c4a687ba9b5618ac5ee33 | 1,393 | py | Python | tests/interpreter/expression/var_assignment_interpreter_test.py | OtavioHenrique/yalul | ce99e32365ed5607527b9f2f39705ad5d9e20ba2 | [
"MIT"
] | 1 | 2021-04-01T20:22:36.000Z | 2021-04-01T20:22:36.000Z | tests/interpreter/expression/var_assignment_interpreter_test.py | OtavioHenrique/yalul | ce99e32365ed5607527b9f2f39705ad5d9e20ba2 | [
"MIT"
] | 1 | 2020-11-20T22:24:38.000Z | 2020-11-20T22:24:38.000Z | tests/interpreter/expression/var_assignment_interpreter_test.py | OtavioHenrique/yalul | ce99e32365ed5607527b9f2f39705ad5d9e20ba2 | [
"MIT"
] | null | null | null | from yalul.interpreters.environment import Environment
from yalul.interpreters.expressions.var_assignment_interpreter import VarAssignmentInterpreter
from yalul.interpreters.interpreter_errors import InterpreterErrors
| 34.825 | 116 | 0.676238 |
4268f94ca522ab0b564db536a3198008325ec23d | 2,547 | py | Python | backend/externals/events.py | crosspower/naruko | 4c524e2ef955610a711830bc86d730ffe4fc2bd8 | [
"MIT"
] | 17 | 2019-01-23T04:37:43.000Z | 2019-10-15T01:42:31.000Z | backend/externals/events.py | snickerjp/naruko | 4c524e2ef955610a711830bc86d730ffe4fc2bd8 | [
"MIT"
] | 1 | 2019-01-23T08:04:44.000Z | 2019-01-23T08:44:33.000Z | backend/externals/events.py | snickerjp/naruko | 4c524e2ef955610a711830bc86d730ffe4fc2bd8 | [
"MIT"
] | 6 | 2019-01-23T09:10:59.000Z | 2020-12-02T04:15:41.000Z | import boto3
from django.conf import settings
from backend.models import CloudWatchEvent
import json
| 28.617978 | 81 | 0.568512 |
426a3bed4febe19951912ab6a1ea3a6374609094 | 356 | py | Python | eg/deparse/example.py | KennethBlaney/rivescript-python | 87db472847ab526060afd9a5b8548e9689501a85 | [
"MIT"
] | null | null | null | eg/deparse/example.py | KennethBlaney/rivescript-python | 87db472847ab526060afd9a5b8548e9689501a85 | [
"MIT"
] | null | null | null | eg/deparse/example.py | KennethBlaney/rivescript-python | 87db472847ab526060afd9a5b8548e9689501a85 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Manipulate sys.path to be able to import converscript from this local git
# repository.
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), "..", ".."))
from converscript import RiveScript
import json
bot = RiveScript()
bot.load_file("example.rive")
dep = bot.deparse... | 20.941176 | 75 | 0.735955 |
426a6f57e84f4626e97b52d506e5d77552f5cfca | 2,715 | py | Python | figuras/PycharmKayStatisticalReport/example_8_11.py | bor9/estudiando_el_kay | 6e07908b8b0b5a5166dadce30001e6100e8304c3 | [
"MIT"
] | null | null | null | figuras/PycharmKayStatisticalReport/example_8_11.py | bor9/estudiando_el_kay | 6e07908b8b0b5a5166dadce30001e6100e8304c3 | [
"MIT"
] | null | null | null | figuras/PycharmKayStatisticalReport/example_8_11.py | bor9/estudiando_el_kay | 6e07908b8b0b5a5166dadce30001e6100e8304c3 | [
"MIT"
] | 1 | 2021-11-02T05:27:27.000Z | 2021-11-02T05:27:27.000Z | import matplotlib.pyplot as plt
import numpy as np
from scipy import signal, linalg
from matplotlib import rc
from matplotlib import rcParams
__author__ = 'ernesto'
# if use latex or mathtext
rc('text', usetex=True)
rcParams['text.latex.preamble'] = [r"\usepackage{amsmath}"]
#respuesta al impulso deseada: sinc
N = ... | 29.835165 | 104 | 0.64825 |
426b013c87350379997d161bc0ecdefe4dd2b27e | 19,353 | py | Python | src/robotide/ui/treenodehandlers.py | crylearner/RIDE3X | 767f45b0c908f18ecc7473208def8dc7489f43b0 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-08-20T14:46:02.000Z | 2017-08-20T14:46:02.000Z | src/robotide/ui/treenodehandlers.py | crylearner/RIDE3X | 767f45b0c908f18ecc7473208def8dc7489f43b0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/robotide/ui/treenodehandlers.py | crylearner/RIDE3X | 767f45b0c908f18ecc7473208def8dc7489f43b0 | [
"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 appl... | 33.598958 | 80 | 0.661965 |