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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4125c4ef4416a704e2a8626b154e255f03a002cf | 433 | py | Python | rampwf/utils/tests/test_sanitize.py | DimitriPapadopoulos/ramp-workflow | c235e80b81fc8d8a5e0c175df50a55cc58dd78aa | [
"BSD-3-Clause"
] | 66 | 2017-08-31T08:48:45.000Z | 2022-03-21T16:05:31.000Z | rampwf/utils/tests/test_sanitize.py | DimitriPapadopoulos/ramp-workflow | c235e80b81fc8d8a5e0c175df50a55cc58dd78aa | [
"BSD-3-Clause"
] | 265 | 2017-06-02T19:22:38.000Z | 2022-03-31T13:08:00.000Z | rampwf/utils/tests/test_sanitize.py | DimitriPapadopoulos/ramp-workflow | c235e80b81fc8d8a5e0c175df50a55cc58dd78aa | [
"BSD-3-Clause"
] | 44 | 2017-06-03T15:35:58.000Z | 2022-03-31T12:46:42.000Z | import pytest
from rampwf.utils.sanitize import _sanitize_input
| 27.0625 | 60 | 0.709007 |
4127cc56a9b643adacb0505a74b957d4c74ed758 | 118 | py | Python | issues/apps.py | 6aika/o3-6a-kkhprp | de0373733a0f4a936a86f6a19b28ca2e577beb71 | [
"MIT"
] | 6 | 2016-07-08T08:50:51.000Z | 2018-06-06T09:58:43.000Z | issues/apps.py | 6aika/issue-reporting | de0373733a0f4a936a86f6a19b28ca2e577beb71 | [
"MIT"
] | 50 | 2016-04-19T12:22:08.000Z | 2021-09-22T17:39:33.000Z | issues/apps.py | 6aika/o3-6a-kkhprp | de0373733a0f4a936a86f6a19b28ca2e577beb71 | [
"MIT"
] | 5 | 2016-07-08T08:50:56.000Z | 2019-07-06T11:34:42.000Z | from django.apps import AppConfig
| 16.857143 | 33 | 0.728814 |
412aadfb4c71d1e45e7e11134561c9b5c2fc6eda | 2,018 | py | Python | FileNamePurifier/FileNamePurifier.py | dbpiper/FileNamePurifier | 620088ea3be1b8874609fa769cfb8e6b636d5e8b | [
"MIT"
] | null | null | null | FileNamePurifier/FileNamePurifier.py | dbpiper/FileNamePurifier | 620088ea3be1b8874609fa769cfb8e6b636d5e8b | [
"MIT"
] | null | null | null | FileNamePurifier/FileNamePurifier.py | dbpiper/FileNamePurifier | 620088ea3be1b8874609fa769cfb8e6b636d5e8b | [
"MIT"
] | null | null | null | from Parser import Parser
from LexicalAnalyzer import LexicalAnalyzer | 46.930233 | 133 | 0.693756 |
412b47d093592288c113a1eac3194f68134c0446 | 11,406 | py | Python | data/transforms.py | raja21068/Federated-Learning-For-Medical-Images | aa30ce9d8106fd4039188fc56fa99bdc9f46f0e0 | [
"MIT"
] | 27 | 2021-03-05T05:56:35.000Z | 2022-03-30T03:15:43.000Z | data/transforms.py | DiahannWu/FL-MRCM | 946c981a044452333791b7da26609c0874da292c | [
"MIT"
] | 8 | 2021-03-08T10:41:19.000Z | 2021-12-30T04:53:21.000Z | data/transforms.py | DiahannWu/FL-MRCM | 946c981a044452333791b7da26609c0874da292c | [
"MIT"
] | 5 | 2021-03-28T14:02:30.000Z | 2022-01-11T08:31:42.000Z | """
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
"""
import numpy as np
import torch
def to_tensor(data):
"""
Convert numpy array to PyTorch tensor. For complex arrays, the real and im... | 29.703125 | 115 | 0.608276 |
412b523c6ab5df841fbace6c8ecfb1e65fe6d301 | 171 | py | Python | tests/test_entries_to_mt.py | Hagihara-A/migrate-exblog | f5df20e07e74bc1bb14888c143bc43b2d775f666 | [
"MIT"
] | null | null | null | tests/test_entries_to_mt.py | Hagihara-A/migrate-exblog | f5df20e07e74bc1bb14888c143bc43b2d775f666 | [
"MIT"
] | 1 | 2019-01-07T14:34:14.000Z | 2019-01-07T14:34:14.000Z | tests/test_entries_to_mt.py | Hagihara-A/scrape-excite-blog | f5df20e07e74bc1bb14888c143bc43b2d775f666 | [
"MIT"
] | null | null | null | import doctest
from migrate_exblog import entries_to_mt
| 19 | 55 | 0.795322 |
412d18a2cbe30949e9cef10400c6fc6b33fdbee8 | 97 | py | Python | deeppavlov/utils/server/__init__.py | xbodx/DeepPavlov | 4b60bf162df4294b8b0db3b72786cdd699c674fa | [
"Apache-2.0"
] | 5,893 | 2018-02-01T18:13:20.000Z | 2022-03-31T19:22:21.000Z | deeppavlov/utils/server/__init__.py | xbodx/DeepPavlov | 4b60bf162df4294b8b0db3b72786cdd699c674fa | [
"Apache-2.0"
] | 749 | 2018-01-31T11:36:02.000Z | 2022-03-30T07:24:22.000Z | deeppavlov/utils/server/__init__.py | xbodx/DeepPavlov | 4b60bf162df4294b8b0db3b72786cdd699c674fa | [
"Apache-2.0"
] | 1,155 | 2018-02-01T10:52:15.000Z | 2022-03-29T02:12:15.000Z | from .server import get_server_params, get_ssl_params, redirect_root_to_docs, start_model_server
| 48.5 | 96 | 0.886598 |
f5aba0aa3a1bda30d3d5e14338fb55d72ab3b386 | 1,883 | py | Python | b5/lib/state.py | team23/b5 | 90f45e86966eeb7a259667bbe06a5555648d012d | [
"BSD-3-Clause"
] | 14 | 2018-11-24T23:33:35.000Z | 2022-02-04T23:46:49.000Z | b5/lib/state.py | team23/b5 | 90f45e86966eeb7a259667bbe06a5555648d012d | [
"BSD-3-Clause"
] | 3 | 2020-02-10T11:05:11.000Z | 2020-03-04T08:42:11.000Z | b5/lib/state.py | team23/b5 | 90f45e86966eeb7a259667bbe06a5555648d012d | [
"BSD-3-Clause"
] | 1 | 2020-02-11T19:45:13.000Z | 2020-02-11T19:45:13.000Z | import os
import tempfile
from types import TracebackType
from typing import Any, BinaryIO, Optional, TextIO, Type, Union
import yaml
| 28.969231 | 115 | 0.60701 |
f5ac35c88920717e7f434d347b3a61d75f1b9fd5 | 2,711 | py | Python | lines_ext.py | subhrajit02/handwritten-digit-recognision | 239a4bd1283393865d2655b91ad4674ce8450882 | [
"MIT"
] | null | null | null | lines_ext.py | subhrajit02/handwritten-digit-recognision | 239a4bd1283393865d2655b91ad4674ce8450882 | [
"MIT"
] | null | null | null | lines_ext.py | subhrajit02/handwritten-digit-recognision | 239a4bd1283393865d2655b91ad4674ce8450882 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
def rem_multi_lines(lines, thresh):
"""
to remove the multiple lines with close proximity
:param lines: initial list with all the lines(multiple in place of singular)
:param thresh: dist between two lines for them to be considered as same
:return: final list with sin... | 25.101852 | 88 | 0.560679 |
f5acb14365decf5cb2d85dfdb8cc3ac0e9ffe41f | 1,553 | py | Python | examples/wmt/tools/scorer/nlm.py | godweiyang/ParaGen | 9665d1244ea38a41fc06b4e0a7f6411985e2221f | [
"Apache-2.0"
] | 50 | 2022-01-18T07:25:46.000Z | 2022-03-14T13:06:18.000Z | examples/wmt/tools/scorer/nlm.py | JiangtaoFeng/ParaGen | 509334bf16e3674e009bb9dc37ecc38ae3b5c977 | [
"Apache-2.0"
] | 2 | 2022-01-19T09:36:42.000Z | 2022-02-23T07:16:02.000Z | examples/wmt/tools/scorer/nlm.py | JiangtaoFeng/ParaGen | 509334bf16e3674e009bb9dc37ecc38ae3b5c977 | [
"Apache-2.0"
] | 6 | 2022-01-19T09:28:53.000Z | 2022-03-10T10:20:08.000Z | # Before running this command, you should firstly run:
# pip install fairseq
# pip install fastBPE
# wget https://dl.fbaipublicfiles.com/fairseq/models/lm/wmt19.en.tar.gz
# tar zxvf wmt19.en.tar.gz
import argparse
from itertools import islice
import numpy as np
from fairseq.models.transformer_lm import TransformerLang... | 36.116279 | 106 | 0.676755 |
f5accc4b43ec1556256e37986ed9a579a786c19a | 2,742 | py | Python | aioli_openapi/service.py | jimorie/aioli-openapi | 5a5ea6471d332adc8361ad39af7421e4686811fd | [
"MIT"
] | null | null | null | aioli_openapi/service.py | jimorie/aioli-openapi | 5a5ea6471d332adc8361ad39af7421e4686811fd | [
"MIT"
] | null | null | null | aioli_openapi/service.py | jimorie/aioli-openapi | 5a5ea6471d332adc8361ad39af7421e4686811fd | [
"MIT"
] | null | null | null | import warnings
from apispec import APISpec
from apispec.ext.marshmallow import MarshmallowPlugin
from aioli.service import BaseService
from aioli.controller import BaseHttpController
from aioli.exceptions import NoMatchFound
| 31.159091 | 106 | 0.496718 |
f5ae655bb41bdfdac3cd957f9a322f3eb321c3ad | 124 | py | Python | wrangle_scripts/wrangle_data.py | es-g/dash | 443b04593e66f7f2dcea325937eee4683f4c7a13 | [
"MIT"
] | null | null | null | wrangle_scripts/wrangle_data.py | es-g/dash | 443b04593e66f7f2dcea325937eee4683f4c7a13 | [
"MIT"
] | null | null | null | wrangle_scripts/wrangle_data.py | es-g/dash | 443b04593e66f7f2dcea325937eee4683f4c7a13 | [
"MIT"
] | null | null | null | import pandas as pd
import plotly.graph_objs as go
| 12.4 | 37 | 0.685484 |
f5ae7c5fd10eb5c3a55627538569669fa5235f04 | 399 | py | Python | cpdb/popup/factories.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 25 | 2018-07-20T22:31:40.000Z | 2021-07-15T16:58:41.000Z | cpdb/popup/factories.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 13 | 2018-06-18T23:08:47.000Z | 2022-02-10T07:38:25.000Z | cpdb/popup/factories.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 6 | 2018-05-17T21:59:43.000Z | 2020-11-17T00:30:26.000Z | import factory
from faker import Faker
from popup.models import Popup
fake = Faker()
| 23.470588 | 55 | 0.719298 |
f5afafed15f47453d454c043799fdd7a4422ab1b | 1,863 | py | Python | src_old/tests/delete_migrations.py | rishikesh67/django-tenant-oracle-schemas | 918a64e842b678fc506eadbb4d7e51b0b38ab0a2 | [
"MIT"
] | null | null | null | src_old/tests/delete_migrations.py | rishikesh67/django-tenant-oracle-schemas | 918a64e842b678fc506eadbb4d7e51b0b38ab0a2 | [
"MIT"
] | 8 | 2019-12-04T23:26:11.000Z | 2022-02-10T09:42:18.000Z | src/tests/delete_migrations.py | rishikesh67/django-tenant-oracle-schemas | 918a64e842b678fc506eadbb4d7e51b0b38ab0a2 | [
"MIT"
] | 2 | 2019-06-26T05:31:16.000Z | 2019-07-01T12:22:50.000Z | import os
import glob
import shutil
import logging
# logging.basicConfig(level=logging.DEBUG)
# DEBUG:root:Skipping file /Users/hygull/Projects/Python3/DjangoTenantOracleSchemas/django-tenant-oracle-schemas/src/tenants/models.py
# logging.basicConfig(format='%(asctime)s %(message)s', level=logging.DEBUG)
# 2019-06-2... | 38.8125 | 139 | 0.7343 |
f5b0b5d5e4ce7c8e9669a43f27a5226a60590d4f | 6,075 | py | Python | qa2nli/converters/processors.py | nli-for-qa/conversion | 588de7fbbcdeb9698fe888b6e3ece7dfadf25238 | [
"MIT"
] | null | null | null | qa2nli/converters/processors.py | nli-for-qa/conversion | 588de7fbbcdeb9698fe888b6e3ece7dfadf25238 | [
"MIT"
] | null | null | null | qa2nli/converters/processors.py | nli-for-qa/conversion | 588de7fbbcdeb9698fe888b6e3ece7dfadf25238 | [
"MIT"
] | 1 | 2021-07-04T01:59:56.000Z | 2021-07-04T01:59:56.000Z | from typing import Callable, List, Union, Optional, Dict, Tuple
import re
import spacy
import logging
import math
from enum import Enum
logger = logging.getLogger(__name__)
Preprocessor = PreprocessorBase
dots = re.compile(r"[\.\'\"\?, ]{2,}[\w ]*")
| 31.806283 | 82 | 0.597366 |
f5b0c54a48711381cd579c3094b7c9b18f185760 | 2,106 | py | Python | trphysx/data_utils/dataset_cylinder.py | zabaras/transformer-physx | eb28d09957641cc594b3e5acf4ace2e4dc193584 | [
"MIT"
] | 33 | 2020-10-15T06:43:36.000Z | 2022-03-24T10:46:12.000Z | trphysx/data_utils/dataset_cylinder.py | zabaras/transformer-physx | eb28d09957641cc594b3e5acf4ace2e4dc193584 | [
"MIT"
] | 2 | 2021-05-18T14:31:38.000Z | 2021-07-30T18:18:50.000Z | trphysx/data_utils/dataset_cylinder.py | zabaras/transformer-physx | eb28d09957641cc594b3e5acf4ace2e4dc193584 | [
"MIT"
] | 6 | 2020-12-01T05:54:01.000Z | 2022-03-25T21:22:09.000Z | """
=====
Distributed by: Notre Dame SCAI Lab (MIT Liscense)
- Associated publication:
url: https://arxiv.org/abs/2010.03957
doi:
github: https://github.com/zabaras/transformer-physx
=====
"""
import logging
import h5py
import torch
from .dataset_phys import PhysicalDataset
from ..embedding.embedding_model import Embe... | 37.607143 | 121 | 0.61396 |
f5b4beb61d529163a339e65d180ea7a983c8e73d | 359 | py | Python | HLTrigger/Configuration/python/HLT_75e33/paths/L1T_SingleTkMuon_22_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | HLTrigger/Configuration/python/HLT_75e33/paths/L1T_SingleTkMuon_22_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | HLTrigger/Configuration/python/HLT_75e33/paths/L1T_SingleTkMuon_22_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:16:05.000Z | 2021-11-30T16:16:05.000Z | import FWCore.ParameterSet.Config as cms
#from ..modules.hltL1TkMuons_cfi import *
from ..modules.hltL1TkSingleMuFiltered22_cfi import *
from ..sequences.HLTBeginSequence_cfi import *
from ..sequences.HLTEndSequence_cfi import *
L1T_SingleTkMuon_22 = cms.Path(
HLTBeginSequence +
# hltL1TkMuons +
hltL1TkSin... | 25.642857 | 53 | 0.788301 |
f5b575448dfd3070de7e8cc30de61a51b143522f | 927 | py | Python | strategies/forest.py | aladics/DeepBugHunter | 564f2417eafc50e99de60d5d6c0a1b4193d1bf8b | [
"Apache-2.0"
] | 6 | 2019-03-01T13:17:09.000Z | 2022-03-07T04:07:04.000Z | strategies/forest.py | aladics/DeepBugHunter | 564f2417eafc50e99de60d5d6c0a1b4193d1bf8b | [
"Apache-2.0"
] | null | null | null | strategies/forest.py | aladics/DeepBugHunter | 564f2417eafc50e99de60d5d6c0a1b4193d1bf8b | [
"Apache-2.0"
] | 2 | 2020-08-02T07:36:00.000Z | 2021-01-13T15:04:00.000Z | import os
import math
import argparse
import dbh_util as util
from sklearn.ensemble import RandomForestClassifier
parser = argparse.ArgumentParser()
parser.add_argument('--n-estimators', type=int, default=10, help='The number of trees in the forest')
parser.add_argument('--max-depth', type=int, default=5, help='Max d... | 34.333333 | 103 | 0.73247 |
f5b7476abd3046a860b7d297b7e32e4ae0dcc3db | 9,476 | py | Python | vitrage_tempest_plugin/tests/e2e/test_overlapping_actions.py | openstack/vitrage-tempest-plugin | 69acc7f3ea26f8c3a652cdf9d1fd842dbf9af58f | [
"Apache-2.0"
] | 6 | 2018-08-02T12:11:09.000Z | 2019-03-05T11:45:09.000Z | vitrage_tempest_plugin/tests/e2e/test_overlapping_actions.py | openstack/vitrage-tempest-plugin | 69acc7f3ea26f8c3a652cdf9d1fd842dbf9af58f | [
"Apache-2.0"
] | null | null | null | vitrage_tempest_plugin/tests/e2e/test_overlapping_actions.py | openstack/vitrage-tempest-plugin | 69acc7f3ea26f8c3a652cdf9d1fd842dbf9af58f | [
"Apache-2.0"
] | 1 | 2018-08-22T12:29:54.000Z | 2018-08-22T12:29:54.000Z | # Copyright 2017 - Nokia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | 40.495726 | 78 | 0.646264 |
f5b80f86d6e5672de1791e2d08c1fbaf96195a02 | 4,137 | py | Python | clone_tests/clone_compilation_errors.py | dcz-purism/glib | eccd097166cdf7dfea9be17869868d45f8ef4ef6 | [
"MIT-0",
"MIT"
] | null | null | null | clone_tests/clone_compilation_errors.py | dcz-purism/glib | eccd097166cdf7dfea9be17869868d45f8ef4ef6 | [
"MIT-0",
"MIT"
] | null | null | null | clone_tests/clone_compilation_errors.py | dcz-purism/glib | eccd097166cdf7dfea9be17869868d45f8ef4ef6 | [
"MIT-0",
"MIT"
] | null | null | null | import json
import os
import subprocess
import sys
TEST_FILENAME = "tmp_py_file"
TEST_FOLDER = "clone_tests"
TESTS = [
("clone!( => move || {})",
"If you have nothing to clone, no need to use this macro!"),
("clone!(|| {})",
"If you have nothing to clone, no need to use this macro!"),
("cl... | 35.358974 | 117 | 0.578922 |
f5b9371efb3fb18aace487077f47abfd7957e4b2 | 2,437 | py | Python | tests/test_tags.py | wbcsmarteezgithub/django-snakeoil | ae1a8dab9e14194e48963101ff3349f45aee0ccf | [
"BSD-2-Clause"
] | 1 | 2020-07-03T15:52:25.000Z | 2020-07-03T15:52:25.000Z | tests/test_tags.py | wbcsmarteezgithub/django-snakeoil | ae1a8dab9e14194e48963101ff3349f45aee0ccf | [
"BSD-2-Clause"
] | null | null | null | tests/test_tags.py | wbcsmarteezgithub/django-snakeoil | ae1a8dab9e14194e48963101ff3349f45aee0ccf | [
"BSD-2-Clause"
] | null | null | null | from __future__ import unicode_literals
from django.http import HttpRequest
from django.template import Context, Template, TemplateSyntaxError
from django.test import TestCase
from snakeoil.models import SeoUrl
from .models import TestModel
| 29.719512 | 66 | 0.531801 |
f5b9906a08803c2fec8e92b95456e8a8ee69c95c | 50 | py | Python | src/runner/__init__.py | Tung-I/nips2019_template | a1fcf35b7633d192d2706a533731cb8c457ac230 | [
"MIT"
] | 11 | 2020-08-09T08:08:56.000Z | 2022-01-18T14:25:22.000Z | src/runner/__init__.py | Tung-I/nips2019_template | a1fcf35b7633d192d2706a533731cb8c457ac230 | [
"MIT"
] | 2 | 2021-09-13T09:48:41.000Z | 2021-11-08T14:20:58.000Z | src/runner/__init__.py | Tung-I/nips2019_template | a1fcf35b7633d192d2706a533731cb8c457ac230 | [
"MIT"
] | 4 | 2020-08-30T14:13:35.000Z | 2021-09-14T09:26:55.000Z | from .trainers import *
from .predictors import *
| 16.666667 | 25 | 0.76 |
f5ba98b5a8a467c1237f20ea32bee34cf54cde58 | 420 | py | Python | test/nn/conv/test_gravnet_conv.py | shrey-bansal/pytorch_geometric | 17108a08066b0a73530544d01719b186f2625ef2 | [
"MIT"
] | 2 | 2020-09-08T15:22:08.000Z | 2020-09-08T15:22:09.000Z | test/nn/conv/test_gravnet_conv.py | shrey-bansal/pytorch_geometric | 17108a08066b0a73530544d01719b186f2625ef2 | [
"MIT"
] | null | null | null | test/nn/conv/test_gravnet_conv.py | shrey-bansal/pytorch_geometric | 17108a08066b0a73530544d01719b186f2625ef2 | [
"MIT"
] | 1 | 2021-07-06T06:50:21.000Z | 2021-07-06T06:50:21.000Z | import torch
from torch_geometric.nn import GravNetConv
| 32.307692 | 69 | 0.688095 |
f5baf25c3fc1ee4bca1c0e0df333ed41bd65f476 | 2,216 | py | Python | base/CrossPlotter.py | pulsatrixwx/PulsatrixWx | aae6ac36e2460dcf7f4a592d709139cd0d6a2e91 | [
"MIT"
] | 3 | 2016-03-27T00:21:46.000Z | 2018-06-01T09:20:57.000Z | base/CrossPlotter.py | pulsatrixwx/PulsatrixWx | aae6ac36e2460dcf7f4a592d709139cd0d6a2e91 | [
"MIT"
] | null | null | null | base/CrossPlotter.py | pulsatrixwx/PulsatrixWx | aae6ac36e2460dcf7f4a592d709139cd0d6a2e91 | [
"MIT"
] | null | null | null | from datetime import datetime
from hootpy import HootPy
if __name__ == "__main__":
cfg = {
'forecast_hours':[0, 3, 6, 9, 12],
'product_title':"NAM Forecast Cross Section KDRT-KGRB",
'image_file_name':"nam_fcross_KDRT-KGRB_f%02d.png"
}
hpc = CrossPlotter(cfg)
hpc.loadData()
... | 28.410256 | 108 | 0.581679 |
f5bb1ebe52102d71c8810bac844699880019ddf3 | 3,072 | py | Python | management/commands/syncldap.py | LUH-CHI/chiffee | 78ec85d36a6c757e5f56113089f1b56fdb0ed494 | [
"MIT"
] | 1 | 2018-03-22T09:53:06.000Z | 2018-03-22T09:53:06.000Z | management/commands/syncldap.py | LUH-CHI/chiffee | 78ec85d36a6c757e5f56113089f1b56fdb0ed494 | [
"MIT"
] | 4 | 2019-04-01T08:44:40.000Z | 2020-02-07T17:44:16.000Z | management/commands/syncldap.py | LUH-CHI/chiffee | 78ec85d36a6c757e5f56113089f1b56fdb0ed494 | [
"MIT"
] | 4 | 2018-05-04T12:01:50.000Z | 2019-10-11T09:47:33.000Z | import logging
import ldap
from django.conf import settings
from django.contrib.auth.models import Group
from django.core.management.base import BaseCommand
from django_auth_ldap.backend import LDAPBackend
from chiffee.models import User
logger = logging.getLogger('syncldap')
# This command synchronizes local data... | 36.571429 | 79 | 0.595378 |
f5bc7050656c4c3afee2238a72f86661143054d5 | 598 | py | Python | pysal/spreg/__init__.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pysal/spreg/__init__.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pysal/spreg/__init__.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-07-19T01:46:17.000Z | 2021-07-19T01:46:17.000Z | from ols import *
from diagnostics import *
from diagnostics_sp import *
from user_output import *
from twosls import *
from twosls_sp import *
from error_sp import *
from error_sp_het import *
from error_sp_hom import *
from ols_regimes import *
from twosls_regimes import *
from twosls_sp_regimes import *
from error_s... | 24.916667 | 34 | 0.807692 |
f5bdaf65264833d8c298cbab96f3a7c910693f18 | 209 | py | Python | tests/conftest.py | lambertsbennett/Encountertk | 708aedb38cb1689da8d2f39c68bd8694c64a79da | [
"MIT"
] | null | null | null | tests/conftest.py | lambertsbennett/Encountertk | 708aedb38cb1689da8d2f39c68bd8694c64a79da | [
"MIT"
] | null | null | null | tests/conftest.py | lambertsbennett/Encountertk | 708aedb38cb1689da8d2f39c68bd8694c64a79da | [
"MIT"
] | null | null | null | from pytest import fixture
from encountertk.e_model import EncounterModel, ps_encounter, mean_vol_encountered
| 26.125 | 82 | 0.789474 |
f5beb267f6635aef6117ff273b49cdca310125ca | 367 | py | Python | jp.atcoder/abc045/abc045_b/8983851.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc045/abc045_b/8983851.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc045/abc045_b/8983851.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
from collections import deque
a, b, c = sys.stdin.read().split()
if __name__ == "__main__":
ans = main()
print(ans)
| 17.47619 | 69 | 0.46594 |
f5bed273a043f28510a7c31520baff8cb6ddab43 | 16,504 | py | Python | src/pipelines/azureml/lightgbm_training.py | microsoft/lightgbm-benchmark | 286668d698d9d166857f924ecb775d5de224d489 | [
"MIT"
] | 13 | 2021-08-20T01:03:51.000Z | 2022-02-12T05:34:46.000Z | src/pipelines/azureml/lightgbm_training.py | microsoft/lightgbm-benchmark | 286668d698d9d166857f924ecb775d5de224d489 | [
"MIT"
] | 199 | 2021-08-21T21:18:53.000Z | 2022-03-27T23:08:44.000Z | src/pipelines/azureml/lightgbm_training.py | microsoft/lightgbm-benchmark | 286668d698d9d166857f924ecb775d5de224d489 | [
"MIT"
] | 4 | 2021-08-20T06:53:26.000Z | 2022-01-24T22:22:39.000Z | """
Runs LightGBM using distributed (mpi) training.
to execute:
> python src/pipelines/azureml/lightgbm_training.py --exp-config conf/experiments/lightgbm_training/cpu.yaml
"""
# pylint: disable=no-member
# NOTE: because it raises 'dict' has no 'outputs' member in dsl.pipeline construction
import os
import sys
import ... | 39.961259 | 154 | 0.673534 |
f5bf990b580312d748c5534bd056ce7638df5fe7 | 3,319 | py | Python | twinfield/metadata.py | zypp-io/twinfield | b4306e79f514ae691584c2d47ce072a3619469b8 | [
"Apache-2.0"
] | 4 | 2020-12-20T23:02:33.000Z | 2022-01-13T19:40:13.000Z | twinfield/metadata.py | zypp-io/twinfield | b4306e79f514ae691584c2d47ce072a3619469b8 | [
"Apache-2.0"
] | 9 | 2020-12-18T07:27:07.000Z | 2022-02-17T09:23:51.000Z | twinfield/metadata.py | zypp-io/twinfield | b4306e79f514ae691584c2d47ce072a3619469b8 | [
"Apache-2.0"
] | null | null | null | from xml.etree import ElementTree as Et
import pandas as pd
import requests
from twinfield.core import Base
from twinfield.exceptions import ServerError
from twinfield.messages import METADATA_XML
| 27.658333 | 98 | 0.577584 |
f5c0bee32dd9418b4866fcc07b3ab0eea9c2d30b | 172 | py | Python | sru_lm/load_data/__init__.py | Fast-LM-WordEvalRu/SRU-LM | dd69d6c7b7b6c0164e83a874aee5e6f6766070d5 | [
"Apache-2.0"
] | null | null | null | sru_lm/load_data/__init__.py | Fast-LM-WordEvalRu/SRU-LM | dd69d6c7b7b6c0164e83a874aee5e6f6766070d5 | [
"Apache-2.0"
] | null | null | null | sru_lm/load_data/__init__.py | Fast-LM-WordEvalRu/SRU-LM | dd69d6c7b7b6c0164e83a874aee5e6f6766070d5 | [
"Apache-2.0"
] | 2 | 2019-11-06T13:07:30.000Z | 2020-02-04T11:21:19.000Z | # Author: Artem Skiba
# Created: 20/01/2020
from .dataset import FastDataset
from .dataloader import get_dataloader
__all__ = [
'FastDataset', 'get_dataloader'
]
| 17.2 | 38 | 0.726744 |
f5c48e8b3a21158680b98773692e8c83b730ba87 | 5,053 | py | Python | libs/complex2epz.py | ledummy/CoMPlEx | f315df7a1b13cfcbdafd9879ff93a974f2e2c38b | [
"MIT"
] | null | null | null | libs/complex2epz.py | ledummy/CoMPlEx | f315df7a1b13cfcbdafd9879ff93a974f2e2c38b | [
"MIT"
] | 1 | 2020-04-08T12:55:50.000Z | 2020-04-08T12:55:50.000Z | libs/complex2epz.py | ledummy/CoMPlEx | f315df7a1b13cfcbdafd9879ff93a974f2e2c38b | [
"MIT"
] | 1 | 2020-04-08T12:44:47.000Z | 2020-04-08T12:44:47.000Z | INIT = 1
REST = ['START_MODSAFE',[0,0]]
NEUTRAL = ['START_MODSAFE',[1,INIT]]
FDBK = ['START_MODSAFE',[2,INIT]]
LIN = ['START_MODSAFE',[3,INIT]]
SIN = ['START_MODSAFE',[4,INIT]]
TYPES = {'Vconst':LIN,'Fconst':FDBK,'Zconst':NEUTRAL}
try:
import epz as tempEpz
import inspect
_,_,keys,_ = inspect.getargspec(... | 23.723005 | 90 | 0.660993 |
f5c4f96d849731c4a186b3fef06e21bef4391f32 | 1,177 | py | Python | test/device/test_brakes.py | uOstar/barista | ab62ec6320fb9b5e9c305f23be7fc7e828c25ab1 | [
"MIT"
] | 4 | 2017-11-05T19:37:23.000Z | 2018-06-18T13:18:11.000Z | test/device/test_brakes.py | uOstar/barista | ab62ec6320fb9b5e9c305f23be7fc7e828c25ab1 | [
"MIT"
] | 24 | 2017-11-05T19:22:08.000Z | 2018-06-14T13:50:39.000Z | test/device/test_brakes.py | uorocketry/barista | ab62ec6320fb9b5e9c305f23be7fc7e828c25ab1 | [
"MIT"
] | 1 | 2022-03-25T04:01:25.000Z | 2022-03-25T04:01:25.000Z | import pytest
from mock import patch
from app.device.brakes import Brakes
from app.utils.servo import Servo
from app.utils.exceptions import InvalidArguments
| 28.02381 | 75 | 0.773152 |
f5c957427e5b93fcfc4229d7e7efbe7a5cf8ce25 | 601 | py | Python | 4 kyu/Most_frequently_used_words_in_a_text.py | jonathansnolan/Codewars | 9d6a3fd10ffb2c61ae292961f384067cdede0470 | [
"MIT"
] | null | null | null | 4 kyu/Most_frequently_used_words_in_a_text.py | jonathansnolan/Codewars | 9d6a3fd10ffb2c61ae292961f384067cdede0470 | [
"MIT"
] | null | null | null | 4 kyu/Most_frequently_used_words_in_a_text.py | jonathansnolan/Codewars | 9d6a3fd10ffb2c61ae292961f384067cdede0470 | [
"MIT"
] | null | null | null | from collections import Counter
| 22.259259 | 75 | 0.425957 |
f5cb0863a83b32aad95be43c48206bffad748391 | 33 | py | Python | test/__init__.py | rbn920/robosync | 1d430f64f6c7156920f92546770a1d2ddb558fea | [
"MIT"
] | null | null | null | test/__init__.py | rbn920/robosync | 1d430f64f6c7156920f92546770a1d2ddb558fea | [
"MIT"
] | null | null | null | test/__init__.py | rbn920/robosync | 1d430f64f6c7156920f92546770a1d2ddb558fea | [
"MIT"
] | null | null | null | '''Test package for robosync'''
| 16.5 | 32 | 0.666667 |
f5cc6aee2d43d9f8f6fc9d61aea78cd19c169feb | 4,921 | py | Python | tadpole/template/app/lib/auth.py | echoyuanliang/pine | 22175e6aea0ca9b02d6542677b27a690c1501c9c | [
"MIT"
] | 2 | 2017-12-02T07:02:31.000Z | 2020-10-13T02:20:18.000Z | tadpole/template/app/lib/auth.py | echoyuanliang/pine | 22175e6aea0ca9b02d6542677b27a690c1501c9c | [
"MIT"
] | null | null | null | tadpole/template/app/lib/auth.py | echoyuanliang/pine | 22175e6aea0ca9b02d6542677b27a690c1501c9c | [
"MIT"
] | 1 | 2018-04-23T04:59:38.000Z | 2018-04-23T04:59:38.000Z | #!/usr/bin/env python
# coding: utf-8
"""
create at 2017/11/22 by allen
"""
import re
from flask import request, session, current_app
from app.lib.constant import ResourceType
from app.models.auth import Resource, role_resource, Role, user_role, User
from app.lib.exceptions import AuthError, PermissionError
... | 30.190184 | 79 | 0.65251 |
f5d03f80ba9950414b41050d76a8ec9d43425ee6 | 656 | py | Python | src/easy/plus_one_66.py | ahmet9cengiz/leetCode | 9e9a61f059072d7791dd19706b7a3e0d0a446669 | [
"MIT"
] | null | null | null | src/easy/plus_one_66.py | ahmet9cengiz/leetCode | 9e9a61f059072d7791dd19706b7a3e0d0a446669 | [
"MIT"
] | null | null | null | src/easy/plus_one_66.py | ahmet9cengiz/leetCode | 9e9a61f059072d7791dd19706b7a3e0d0a446669 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
s = Solution()
print(s.plus_one([9,9,9]))
| 24.296296 | 69 | 0.464939 |
f5d07d12c4b5747b9b1b9f630c617df1ba338e16 | 1,607 | py | Python | timetracker/vms/test/models/test_client_admin_invite_model.py | comp523-jarvis/timetracker-web | af638f0b3aab8a69a974bdb9a18118198488657c | [
"Apache-2.0"
] | 1 | 2019-04-09T16:46:53.000Z | 2019-04-09T16:46:53.000Z | timetracker/vms/test/models/test_client_admin_invite_model.py | comp523-jarvis/timetracker-web | af638f0b3aab8a69a974bdb9a18118198488657c | [
"Apache-2.0"
] | 105 | 2018-10-12T17:57:20.000Z | 2020-06-05T19:35:21.000Z | timetracker/vms/test/models/test_client_admin_invite_model.py | comp523-jarvis/timetracker-web | af638f0b3aab8a69a974bdb9a18118198488657c | [
"Apache-2.0"
] | 1 | 2019-04-11T14:43:42.000Z | 2019-04-11T14:43:42.000Z | from django.conf import settings
from django.template.loader import render_to_string
from vms import models
def test_accept(client_admin_invite_factory, user_factory):
"""
Accepting the invitation should create a new client admin for the
user who accepts.
"""
invite = client_admin_invite_factory(... | 27.706897 | 72 | 0.701929 |
f5d0bd552a2206b2e1b134ade80b6b88f2ce3b53 | 3,489 | py | Python | _from_pydot/lambdas/dev/pyppeteer.py | owasp-sbot/pbx-gs-python-utils | f448aa36c4448fc04d30c3a5b25640ea4d44a267 | [
"Apache-2.0"
] | 3 | 2018-12-14T15:43:46.000Z | 2019-04-25T07:44:58.000Z | _from_pydot/lambdas/dev/pyppeteer.py | owasp-sbot/pbx-gs-python-utils | f448aa36c4448fc04d30c3a5b25640ea4d44a267 | [
"Apache-2.0"
] | 1 | 2019-05-11T14:19:37.000Z | 2019-05-11T14:51:04.000Z | _from_pydot/lambdas/dev/pyppeteer.py | owasp-sbot/pbx-gs-python-utils | f448aa36c4448fc04d30c3a5b25640ea4d44a267 | [
"Apache-2.0"
] | 4 | 2018-12-27T04:54:14.000Z | 2019-05-11T14:07:47.000Z | import base64
import os
import asyncio
from pbx_gs_python_utils.utils.Process import Process
from osbot_aws.Dependencies import load_dependency
| 67.096154 | 162 | 0.509888 |
f5d23a181d6fd76675487606efe26f43a22cb25e | 2,757 | py | Python | filter_plugins/net_textfsm_parse.py | iamroddo/ansible_helpers | 420b9d7a1bb637f52209aeeea4cd424d03cf4eef | [
"Apache-2.0"
] | 44 | 2017-05-19T19:55:39.000Z | 2022-02-08T17:21:22.000Z | filter_plugins/net_textfsm_parse.py | iamroddo/ansible_helpers | 420b9d7a1bb637f52209aeeea4cd424d03cf4eef | [
"Apache-2.0"
] | 2 | 2017-07-17T14:28:23.000Z | 2020-12-11T15:54:00.000Z | filter_plugins/net_textfsm_parse.py | iamroddo/ansible_helpers | 420b9d7a1bb637f52209aeeea4cd424d03cf4eef | [
"Apache-2.0"
] | 18 | 2017-07-27T07:58:34.000Z | 2021-06-06T04:06:33.000Z | """
Filter to convert results from network device show commands obtained from ios_command,
eos_command, et cetera to structured data using TextFSM templates.
"""
from __future__ import unicode_literals
from __future__ import print_function
import os
from textfsm.clitable import CliTableError
import textfsm.clitable a... | 32.821429 | 93 | 0.696772 |
f5d2d84344ef95aeed5c0f078a4e133508f0ccd9 | 5,705 | py | Python | firebaseClient/firebaseClientGPIO.py | tabris2015/personCounter | 0cd7f8698afefdd9e913a97820b9ff9c01752274 | [
"MIT"
] | null | null | null | firebaseClient/firebaseClientGPIO.py | tabris2015/personCounter | 0cd7f8698afefdd9e913a97820b9ff9c01752274 | [
"MIT"
] | null | null | null | firebaseClient/firebaseClientGPIO.py | tabris2015/personCounter | 0cd7f8698afefdd9e913a97820b9ff9c01752274 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import threading
import Queue
import serial
import time
from datetime import datetime
from firebase import firebase
import sqlite3
from datetime import datetime, timedelta
from gpiozero import Button, LED
#///////////////////////////////////////////
import firebase_admin
from firebase_admin import c... | 26.784038 | 103 | 0.540053 |
f5d40b58d32d09631a74deab03cacd263794a4ed | 3,204 | py | Python | look-for.py | barnesrobert/find-aws-resource-in-all-accounts | 5f02aacca3ce3a28894d7d497c4158ed9b08c238 | [
"Apache-2.0"
] | null | null | null | look-for.py | barnesrobert/find-aws-resource-in-all-accounts | 5f02aacca3ce3a28894d7d497c4158ed9b08c238 | [
"Apache-2.0"
] | null | null | null | look-for.py | barnesrobert/find-aws-resource-in-all-accounts | 5f02aacca3ce3a28894d7d497c4158ed9b08c238 | [
"Apache-2.0"
] | null | null | null | #--------------------------------------------------------------------------------------------------
# Function: look-for
# Purpose: Loops through all AWS accounts and regions within an Organization to find a specific resource
# Inputs:
#
# {
# "view_only": "true|false",
# "regions": ["us-east-1", ...]
# }
#... | 32.693878 | 105 | 0.542447 |
f5d6cff69b0e62527106143d8be0c05d4bcd4fe7 | 2,972 | py | Python | opennem/spiders/aemo/monitoring.py | paulculmsee/opennem | 9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1 | [
"MIT"
] | 22 | 2020-06-30T05:27:21.000Z | 2022-02-21T12:13:51.000Z | opennem/spiders/aemo/monitoring.py | paulculmsee/opennem | 9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1 | [
"MIT"
] | 71 | 2020-08-07T13:06:30.000Z | 2022-03-15T06:44:49.000Z | opennem/spiders/aemo/monitoring.py | paulculmsee/opennem | 9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1 | [
"MIT"
] | 13 | 2020-06-30T03:28:32.000Z | 2021-12-30T08:17:16.000Z | import logging
from typing import Any, Dict
from pydantic import ValidationError
from scrapy import Spider
from scrapy.http import Response
from opennem.pipelines.aemo.downloads import DownloadMonitorPipeline
from opennem.schema.aemo.downloads import AEMOFileDownloadSection
from opennem.utils.dates import parse_date
... | 37.620253 | 175 | 0.657133 |
f5d87e21f9ec6f8ae018914ba1e9c0e382bc83dd | 319 | py | Python | python/13/servo.py | matsujirushi/raspi_parts_kouryaku | 35cd6f34d21c5e3160636671175fa8d5aff2d4dc | [
"Apache-2.0"
] | 6 | 2022-03-05T02:36:57.000Z | 2022-03-12T12:31:27.000Z | python/13/servo.py | matsujirushi/raspi_parts_kouryaku | 35cd6f34d21c5e3160636671175fa8d5aff2d4dc | [
"Apache-2.0"
] | null | null | null | python/13/servo.py | matsujirushi/raspi_parts_kouryaku | 35cd6f34d21c5e3160636671175fa8d5aff2d4dc | [
"Apache-2.0"
] | null | null | null | import wiringpi as pi
pi.wiringPiSetupGpio()
pi.pinMode(18, pi.PWM_OUTPUT)
pi.pwmSetMode(pi.PWM_MODE_MS)
pi.pwmSetClock(2)
pi.pwmSetRange(192000)
while True:
for i in list(range(-90, 90, 10)) + list(range(90, -90, -10)):
pi.pwmWrite(18, int(((i + 90) / 180 * (2.4 - 0.5) + 0.5) / 20 * 192000))
pi.delay(200)
| 26.583333 | 76 | 0.652038 |
f5d9d9ea4f3e787d1de8f24aa36d4dcbede900ec | 2,549 | py | Python | src/vswarm/object_detection/blob_detector.py | Faust-Wang/vswarm | d18ce643218c18ef1e762f40562104b2a0926ad7 | [
"MIT"
] | 21 | 2021-03-03T10:51:46.000Z | 2022-03-28T11:00:35.000Z | src/vswarm/object_detection/blob_detector.py | Faust-Wang/vswarm | d18ce643218c18ef1e762f40562104b2a0926ad7 | [
"MIT"
] | 2 | 2021-07-21T07:57:16.000Z | 2022-03-17T12:41:51.000Z | src/vswarm/object_detection/blob_detector.py | hvourtsis/vswarm | d18ce643218c18ef1e762f40562104b2a0926ad7 | [
"MIT"
] | 8 | 2021-02-27T14:29:55.000Z | 2022-01-05T19:40:38.000Z | import cv2 as cv
from geometry_msgs.msg import Pose2D
from vision_msgs.msg import (BoundingBox2D, Detection2D, Detection2DArray,
ObjectHypothesisWithPose)
THRESHOLD_MAX = 255
THRESHOLD = 240
| 32.265823 | 85 | 0.59592 |
f5dc231bdf053f390dc67dc11fbefb6147ad20d2 | 188 | py | Python | setup.py | wicrep/triplet-reid | 251c24d828e223de75b45ae65aa3f38171f9676b | [
"MIT"
] | null | null | null | setup.py | wicrep/triplet-reid | 251c24d828e223de75b45ae65aa3f38171f9676b | [
"MIT"
] | null | null | null | setup.py | wicrep/triplet-reid | 251c24d828e223de75b45ae65aa3f38171f9676b | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name="triplet-reid",
version="0.1.0",
description="Triplet-based Person Re-Identification",
packages=find_packages(),
)
| 20.888889 | 57 | 0.712766 |
f5dc6d973bebdd28a311046ec3c5d189663906f8 | 530 | py | Python | sentences.py | vanatteveldt/perspectives | 6d537082b915ccde15031d94983bd2d575cdc380 | [
"MIT"
] | null | null | null | sentences.py | vanatteveldt/perspectives | 6d537082b915ccde15031d94983bd2d575cdc380 | [
"MIT"
] | null | null | null | sentences.py | vanatteveldt/perspectives | 6d537082b915ccde15031d94983bd2d575cdc380 | [
"MIT"
] | null | null | null | import csv
import sys
from KafNafParserPy import KafNafParser
from naflib import *
woorden = [r['original'] for r in csv.DictReader(open("klimaatwoorden.csv"))]
o = csv.writer(sys.stdout)
o.writerow(["file", "sentence", "term", "text"])
for fn in sys.argv[1:]:
naf = KafNafParser(fn)
for klimaterm in find_te... | 27.894737 | 85 | 0.677358 |
f5dd11fe9a9263410d61440cc6794ca854255416 | 1,127 | py | Python | view/user/__init__.py | archever/flask-web | cd120f64deec31fd1a87285372abaa22fc379b9f | [
"MIT"
] | null | null | null | view/user/__init__.py | archever/flask-web | cd120f64deec31fd1a87285372abaa22fc379b9f | [
"MIT"
] | null | null | null | view/user/__init__.py | archever/flask-web | cd120f64deec31fd1a87285372abaa22fc379b9f | [
"MIT"
] | null | null | null | # coding=utf-8
from flask import Blueprint, render_template, redirect
from controlers.user import UserCtr
from libs.login import login_user, logout_user, current_user
bp = Blueprint("user", __name__, url_prefix="/user")
| 23.978723 | 60 | 0.668146 |
f5deb3f2744fe175063b1c389f169973e74ce044 | 9,607 | py | Python | recipes/Python/52275_sparse_dictionary_based_sparse_matrix/recipe-52275.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/52275_sparse_dictionary_based_sparse_matrix/recipe-52275.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/52275_sparse_dictionary_based_sparse_matrix/recipe-52275.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #!/usr/bin/env python
import vector
import math, types, operator
"""
A sparse matrix class based on a dictionary, supporting matrix (dot)
product and a conjugate gradient solver.
In this version, the sparse class inherits from the dictionary; this
requires Python 2.2 or later.
"""
#############################... | 22.819477 | 90 | 0.565525 |
f5dedc85895871ad1a7086cfc4fa5d80500516b2 | 7,557 | py | Python | bibref_parser/parser.py | glooney/python-bibref-parser | 9ca6b99a917659425fe7b4759f523c78f0180124 | [
"MIT"
] | null | null | null | bibref_parser/parser.py | glooney/python-bibref-parser | 9ca6b99a917659425fe7b4759f523c78f0180124 | [
"MIT"
] | null | null | null | bibref_parser/parser.py | glooney/python-bibref-parser | 9ca6b99a917659425fe7b4759f523c78f0180124 | [
"MIT"
] | null | null | null | import re
| 34.040541 | 93 | 0.382162 |
f5e083f241a88c8c9d72629bf0fc59c5c51dd648 | 392 | py | Python | FlaskApp/sql_connection.py | pjneelam/pjneelam.eportfolio2022 | 3f55c1da6214e3eabab949ff83b34c0553c52866 | [
"CC-BY-3.0"
] | null | null | null | FlaskApp/sql_connection.py | pjneelam/pjneelam.eportfolio2022 | 3f55c1da6214e3eabab949ff83b34c0553c52866 | [
"CC-BY-3.0"
] | null | null | null | FlaskApp/sql_connection.py | pjneelam/pjneelam.eportfolio2022 | 3f55c1da6214e3eabab949ff83b34c0553c52866 | [
"CC-BY-3.0"
] | null | null | null | #https://www.youtube.com/watch?v=f9PR1qcwOyg
#create global convention
import mysql.connector
__cnx=None
| 30.153846 | 74 | 0.584184 |
f5e2b3958e10bba2c1126d9063cd6d9ca99a6bc2 | 1,217 | py | Python | kernellib/utils/visualization.py | jejjohnson/kernellib | eb9f80c1b605c8a6b5e8a324efd4ef07d8f59050 | [
"MIT"
] | 1 | 2021-02-04T08:52:04.000Z | 2021-02-04T08:52:04.000Z | kernellib/utils/visualization.py | jejjohnson/kernellib | eb9f80c1b605c8a6b5e8a324efd4ef07d8f59050 | [
"MIT"
] | null | null | null | kernellib/utils/visualization.py | jejjohnson/kernellib | eb9f80c1b605c8a6b5e8a324efd4ef07d8f59050 | [
"MIT"
] | 1 | 2018-04-17T06:42:09.000Z | 2018-04-17T06:42:09.000Z | import matplotlib.pyplot as plt
| 25.354167 | 97 | 0.612161 |
f5e3743f51af18cff1772397d3d93a0c7e89bca0 | 2,780 | py | Python | edit/editseries.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | edit/editseries.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | edit/editseries.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | #!_PYTHONLOC
#
# (C) COPYRIGHT 2004-2021 Al von Ruff, Bill Longley and Ahasuerus
# ALL RIGHTS RESERVED
#
# The copyright notice above does not evidence any actual or
# intended publication of such source code.
#
# Version: $Revision$
# Date: $Date$
from isfdb import *
from isfdblib impor... | 32.325581 | 130 | 0.685612 |
f5e3d0985186fbf72ce1898f6d250fd384de7e07 | 2,154 | py | Python | sound.py | ITNano/soundserver | b84cbfd821987ad8af72a6c2677caa0b949abff6 | [
"MIT"
] | null | null | null | sound.py | ITNano/soundserver | b84cbfd821987ad8af72a6c2677caa0b949abff6 | [
"MIT"
] | null | null | null | sound.py | ITNano/soundserver | b84cbfd821987ad8af72a6c2677caa0b949abff6 | [
"MIT"
] | null | null | null | import pyaudio
import numpy as np
import mixer
| 32.149254 | 176 | 0.596565 |
f5e5cd56b7a8f566083c50626d4a1f1f2165bd63 | 2,284 | py | Python | noxutils.py | sphinx-contrib/zopeext | b749d0023f4fb8b8eea3a8f3216f63397c6272de | [
"BSD-2-Clause"
] | 1 | 2020-03-16T07:20:58.000Z | 2020-03-16T07:20:58.000Z | noxutils.py | sphinx-contrib/zopeext | b749d0023f4fb8b8eea3a8f3216f63397c6272de | [
"BSD-2-Clause"
] | 3 | 2021-12-19T09:39:45.000Z | 2022-01-06T05:05:03.000Z | noxutils.py | sphinx-contrib/zopeext | b749d0023f4fb8b8eea3a8f3216f63397c6272de | [
"BSD-2-Clause"
] | null | null | null | """
From https://github.com/brechtm/rinohtype/blob/master/noxutil.py
https://github.com/cjolowicz/nox-poetry/discussions/289
"""
import json
from collections.abc import Iterable
from pathlib import Path
from typing import Optional
from urllib.request import urlopen, Request
from poetry.core.factory import Factory
f... | 35.138462 | 79 | 0.700088 |
f5e6032fc8e0c3163e2cd3542bdd970f3cb1268b | 423 | py | Python | tbutton_maker/admin.py | codefisher/tbutton_web | 357bddc26b42c8511e7b5ce087bb0ac115f97e4c | [
"MIT"
] | null | null | null | tbutton_maker/admin.py | codefisher/tbutton_web | 357bddc26b42c8511e7b5ce087bb0ac115f97e4c | [
"MIT"
] | null | null | null | tbutton_maker/admin.py | codefisher/tbutton_web | 357bddc26b42c8511e7b5ce087bb0ac115f97e4c | [
"MIT"
] | null | null | null | from django.contrib import admin
from tbutton_web.tbutton_maker.models import Application, Button, DownloadSession, UpdateSession
admin.site.register(DownloadSession, DownloadSessionAdmin)
admin.site.register(UpdateSession, UpdateSessionAdmin) | 42.3 | 96 | 0.820331 |
f5e6080e840c71c64f246a6744ac59598bb42ed0 | 1,359 | py | Python | abi_recursion.py | Abirami33/python-75-hackathon | c15505615d92cf304c27eabd3136406b08c59078 | [
"MIT"
] | null | null | null | abi_recursion.py | Abirami33/python-75-hackathon | c15505615d92cf304c27eabd3136406b08c59078 | [
"MIT"
] | null | null | null | abi_recursion.py | Abirami33/python-75-hackathon | c15505615d92cf304c27eabd3136406b08c59078 | [
"MIT"
] | null | null | null | #PASCALS TRIANGLE USING RECURSION
if __name__ == "__main__":
print("Enter the number of rows:")
n=int(input()) #getting user input
print(pascal(n)) #call the pascal triangle function
''' OUTPUT:Enter the number of rows:5
[[1], [1, 1], [1, 2, 1], [... | 48.535714 | 106 | 0.40103 |
f5e6d7bb0bd30f9540f1c0b749f54516092b6ca3 | 3,806 | py | Python | nodes/centered_mocap_and_tag_rebroadcaster.py | rislab/apriltag_tracker | 41c4deb4b5bcd94e5f666f3d4b1f1d141c705582 | [
"BSD-3-Clause"
] | null | null | null | nodes/centered_mocap_and_tag_rebroadcaster.py | rislab/apriltag_tracker | 41c4deb4b5bcd94e5f666f3d4b1f1d141c705582 | [
"BSD-3-Clause"
] | null | null | null | nodes/centered_mocap_and_tag_rebroadcaster.py | rislab/apriltag_tracker | 41c4deb4b5bcd94e5f666f3d4b1f1d141c705582 | [
"BSD-3-Clause"
] | 1 | 2019-02-18T00:40:20.000Z | 2019-02-18T00:40:20.000Z | #!/usr/bin/env python2.7
from __future__ import division
import roslib
import rospy
import tf
from nav_msgs.msg import Odometry
from nav_msgs.msg import Path
from geometry_msgs.msg import PoseStamped
import numpy as np
import pdb
from message_filters import Subscriber, ApproximateTimeSynchronizer
if __name__ == '__m... | 37.313725 | 142 | 0.59196 |
f5e74389c152886253bc86c73ff3f6d23bab1e6e | 3,266 | py | Python | garage.py | DidymusRex/garage-pi | 4f4dcc0251f8cb5f5150ddaff7dac01a64eac948 | [
"CC0-1.0"
] | null | null | null | garage.py | DidymusRex/garage-pi | 4f4dcc0251f8cb5f5150ddaff7dac01a64eac948 | [
"CC0-1.0"
] | null | null | null | garage.py | DidymusRex/garage-pi | 4f4dcc0251f8cb5f5150ddaff7dac01a64eac948 | [
"CC0-1.0"
] | null | null | null | from datetime import datetime
from gpiozero import DistanceSensor
from garage_door import garage_door
from garage_camera import garage_camera
import MQTT_Config
import paho.mqtt.client as mqtt
from temp_sensor import temp_sensor
from time import sleep
"""
GPIO pin assignments:
relays
range finder sensor (echo... | 26.33871 | 72 | 0.580527 |
f5e7ef3d480cf9bb53271fcd48200dc95c179ef9 | 5,887 | py | Python | app.py | leemengtaiwan/gist-evernote | 90d8573870ded37dc82575ba25968d7a06efe219 | [
"MIT"
] | 35 | 2018-01-29T00:50:36.000Z | 2021-04-04T13:59:26.000Z | app.py | leemengtaiwan/gist-evernote | 90d8573870ded37dc82575ba25968d7a06efe219 | [
"MIT"
] | 5 | 2021-02-08T20:18:24.000Z | 2022-03-11T23:15:12.000Z | app.py | leemengtaiwan/gist-evernote | 90d8573870ded37dc82575ba25968d7a06efe219 | [
"MIT"
] | 4 | 2018-02-06T12:13:09.000Z | 2019-12-20T09:12:41.000Z | # encoding: utf-8
import os
import time
from multiprocessing import Pool, cpu_count
from selenium import webdriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import T... | 31.821622 | 118 | 0.674367 |
f5e7fdab1587e4d6e66ab3defb25c9ecd73fb773 | 20 | py | Python | hello-fortran-dependency/hello/__init__.py | Nicholaswogan/skbuild-f2py-examples | e47d0a9ce483e54b678e31789dbfcc90ff4a8e74 | [
"MIT"
] | 4 | 2021-07-28T02:16:52.000Z | 2021-12-23T00:20:21.000Z | hello-fortran-dependency/hello/__init__.py | Nicholaswogan/skbuild-f2py-examples | e47d0a9ce483e54b678e31789dbfcc90ff4a8e74 | [
"MIT"
] | 1 | 2021-09-14T21:17:49.000Z | 2021-09-14T23:17:47.000Z | hello-fortran-dependency/hello/__init__.py | Nicholaswogan/skbuild-f2py-examples | e47d0a9ce483e54b678e31789dbfcc90ff4a8e74 | [
"MIT"
] | null | null | null | from .hola import *
| 10 | 19 | 0.7 |
f5e81680dbe98070292ce77eaa7479aa8b7e1630 | 326 | py | Python | python-leetcode/350.py | MDGSF/interviews | 9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76 | [
"MIT"
] | 12 | 2020-01-16T08:55:27.000Z | 2021-12-02T14:52:39.000Z | python-leetcode/350.py | MDGSF/interviews | 9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76 | [
"MIT"
] | null | null | null | python-leetcode/350.py | MDGSF/interviews | 9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76 | [
"MIT"
] | 1 | 2019-12-11T12:00:38.000Z | 2019-12-11T12:00:38.000Z | import collections
| 21.733333 | 71 | 0.546012 |
f5e9dfce4e604e5d08d5833b9e96482b6754ad47 | 217 | py | Python | finally.py | rkjin/algorithm | 5661dd621a43bcbb37b4113fd0918854e7a24310 | [
"Apache-2.0"
] | null | null | null | finally.py | rkjin/algorithm | 5661dd621a43bcbb37b4113fd0918854e7a24310 | [
"Apache-2.0"
] | null | null | null | finally.py | rkjin/algorithm | 5661dd621a43bcbb37b4113fd0918854e7a24310 | [
"Apache-2.0"
] | null | null | null | import numpy as np
if __name__ == '__main__':
try:
f = open('test_file.txt', 'w')
f.write('this is exception finally')
except Exception as e:
pass
finally:
f.close
pass
| 15.5 | 44 | 0.557604 |
f5ea24e7021ff1af76d60fe6869f59dd63386b1e | 198 | py | Python | autokey/data/Emacs/c_g.py | Curiosidad-Racional/.config | af5a8901510e4b87dff1be024d3d29987c148f3f | [
"MIT"
] | 2 | 2021-05-29T18:11:26.000Z | 2021-10-21T20:53:16.000Z | autokey/data/Emacs/c_g.py | Curiosidad-Racional/.config | af5a8901510e4b87dff1be024d3d29987c148f3f | [
"MIT"
] | null | null | null | autokey/data/Emacs/c_g.py | Curiosidad-Racional/.config | af5a8901510e4b87dff1be024d3d29987c148f3f | [
"MIT"
] | null | null | null | import os
store.set_global_value("ctrl-space", False)
with open(os.path.expanduser("~/.config/polybar/keys.fifo"), "wb") as f:
f.write(b"TITLE:\n")
store.set_global_value("emacs-chain-keys", []) | 39.6 | 72 | 0.712121 |
f5eaea013c4c8e9169d5648e9946cf1e2ab0fb60 | 520 | py | Python | lupin/fields/__init__.py | Clustaar/lupin | 9ef73642d84a99adb80abf5a922a9422ddae9254 | [
"MIT"
] | 22 | 2017-10-18T08:27:20.000Z | 2022-03-25T18:53:43.000Z | lupin/fields/__init__.py | Clustaar/lupin | 9ef73642d84a99adb80abf5a922a9422ddae9254 | [
"MIT"
] | 5 | 2019-09-16T15:31:55.000Z | 2022-02-10T08:29:14.000Z | lupin/fields/__init__.py | Clustaar/lupin | 9ef73642d84a99adb80abf5a922a9422ddae9254 | [
"MIT"
] | null | null | null | from .field import Field # NOQA
from .datetime_field import DateTime # NOQA
from .date import Date # NOQA
from .string import String # NOQA
from .object import Object # NOQA
from .list import List # NOQA
from .polymorphic_object import PolymorphicObject # NOQA
from .polymorphic_list import PolymorphicList # NOQ... | 34.666667 | 57 | 0.757692 |
f5edd88e2d458d89d6714005f92ae5a2d900050e | 564 | py | Python | polls/urls.py | SkyFlame00/webpolls | d137da1aaaa8af78520af7762b8002428842d617 | [
"MIT"
] | null | null | null | polls/urls.py | SkyFlame00/webpolls | d137da1aaaa8af78520af7762b8002428842d617 | [
"MIT"
] | null | null | null | polls/urls.py | SkyFlame00/webpolls | d137da1aaaa8af78520af7762b8002428842d617 | [
"MIT"
] | null | null | null | from django.urls import path
from django.conf.urls import url
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('logout/', views.logoutView, name='logout'),
path('signup/', views.signup, name='signup'),
url(r'^activate/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}... | 37.6 | 132 | 0.654255 |
f5ee0fc5d74aae0b09b30c0e37603f02a2ea4deb | 14,918 | py | Python | forceDAQ/gui/plotter.py | gftabor/pyForceDAQ | 3eababb41d855b961d228d8366fdd154bb6314ea | [
"MIT"
] | null | null | null | forceDAQ/gui/plotter.py | gftabor/pyForceDAQ | 3eababb41d855b961d228d8366fdd154bb6314ea | [
"MIT"
] | null | null | null | forceDAQ/gui/plotter.py | gftabor/pyForceDAQ | 3eababb41d855b961d228d8366fdd154bb6314ea | [
"MIT"
] | null | null | null | __version__ = "0.2"
import threading
import numpy as np
import pygame
from expyriment.stimuli import Canvas, Rectangle, TextLine
from expyriment.stimuli._visual import Visual
from expyriment.misc import constants
lock_expyriment = threading.Lock()
Numpy_array_type = type(np.array([]))
def data2pixel(self, value... | 32.714912 | 88 | 0.58292 |
f5eeb057bded5c49089e78a2d6eb892367d91cd2 | 3,528 | py | Python | gcp/extract/lib/weights_vcv.py | dylanhogan/prospectus-tools | 662b2629290cd27c74cd34769773e0d6e73c7048 | [
"MIT"
] | null | null | null | gcp/extract/lib/weights_vcv.py | dylanhogan/prospectus-tools | 662b2629290cd27c74cd34769773e0d6e73c7048 | [
"MIT"
] | null | null | null | gcp/extract/lib/weights_vcv.py | dylanhogan/prospectus-tools | 662b2629290cd27c74cd34769773e0d6e73c7048 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
# Copyright 2014, Distributed Meta-Analysis System
################################################################################
"""
This file provides methods for handling weighting across GCMs under
delta meth... | 40.551724 | 207 | 0.614229 |
f5efba2cc27e11d0b24ffd544963fe1fe77b60d3 | 764 | py | Python | ecojunk/users/api/v1/resources.py | PIN-UPV/EcoJunkWebServer | 53a42687c303ffe345f59dc1f11fa41c3526f6d7 | [
"MIT"
] | 1 | 2018-10-02T11:54:26.000Z | 2018-10-02T11:54:26.000Z | ecojunk/users/api/v1/resources.py | PIN-UPV/EcoJunkWebServer | 53a42687c303ffe345f59dc1f11fa41c3526f6d7 | [
"MIT"
] | 8 | 2018-10-03T08:02:39.000Z | 2018-11-21T07:42:26.000Z | ecojunk/users/api/v1/resources.py | PIN-UPV/EcoJunkWebServer | 53a42687c303ffe345f59dc1f11fa41c3526f6d7 | [
"MIT"
] | 1 | 2018-10-02T11:54:32.000Z | 2018-10-02T11:54:32.000Z | from rest_framework import status
from rest_framework.generics import RetrieveUpdateAPIView
from rest_framework.response import Response
from ecojunk.users.api.v1.serializers import UserSerializer
| 31.833333 | 67 | 0.740838 |
f5f03ea17d8bc72c5ae1602cba0dbeef3ed61e6b | 2,905 | py | Python | app/modules/payments/resources.py | almlys/sample_paymentsapi | d7ba4d2effeb7654ee06aab6dbb15e22f8d213cc | [
"MIT"
] | null | null | null | app/modules/payments/resources.py | almlys/sample_paymentsapi | d7ba4d2effeb7654ee06aab6dbb15e22f8d213cc | [
"MIT"
] | null | null | null | app/modules/payments/resources.py | almlys/sample_paymentsapi | d7ba4d2effeb7654ee06aab6dbb15e22f8d213cc | [
"MIT"
] | null | null | null | # encoding: utf-8
# pylint: disable=bad-continuation
"""
RESTful API Payments resources
--------------------------
"""
import logging
from flask_login import current_user
from flask_restplus_patched import Resource
from flask_restplus._http import HTTPStatus
from app.extensions import db
from app.extensions.api impo... | 27.666667 | 85 | 0.640275 |
f5f344323771b9cf37b06554ddc6a58b22178367 | 1,616 | py | Python | bin/list-teams.py | kws/python-msgraphy | a5dad8bd834c476974fae151f30865c229e0f798 | [
"MIT"
] | 1 | 2022-01-06T08:06:47.000Z | 2022-01-06T08:06:47.000Z | bin/list-teams.py | kws/python-msgraphy | a5dad8bd834c476974fae151f30865c229e0f798 | [
"MIT"
] | null | null | null | bin/list-teams.py | kws/python-msgraphy | a5dad8bd834c476974fae151f30865c229e0f798 | [
"MIT"
] | null | null | null | import msgraphy_util
import argparse
from msgraphy import GraphApi
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description='List or search for MS team'
)
parser.add_argument("name", type=str, nargs="?", help="show only teams which contains [name]")
parser.add_argument("--sta... | 41.435897 | 125 | 0.603342 |
f5f35c0e3a98205f6d6bd8dde9d15ab552f7d436 | 21,372 | py | Python | tileEditor.py | haywireSSC/Level-Editor | 34fedbe36b90afeb8c0d995fcecbed845ffd6253 | [
"CC0-1.0"
] | null | null | null | tileEditor.py | haywireSSC/Level-Editor | 34fedbe36b90afeb8c0d995fcecbed845ffd6253 | [
"CC0-1.0"
] | null | null | null | tileEditor.py | haywireSSC/Level-Editor | 34fedbe36b90afeb8c0d995fcecbed845ffd6253 | [
"CC0-1.0"
] | null | null | null | import pygame as p
from math import floor
from copy import deepcopy
import Tkinter, tkFileDialog
root = Tkinter.Tk()
root.withdraw()
p.init()
running = True
tileWidth = 16
tileHeight = 16
mapWidth = 100
mapHeight = 100
camX = 0
camY = 0
scale = 2
uiScale = 2
hand = 1
layerStack = True
file_path = ''
file_path = t... | 48.794521 | 221 | 0.561623 |
f5f4c4714755e8b9549c5e4949c349f3b753fe90 | 5,148 | py | Python | EditGroupWindow.py | TheYargonaut/lucre | 1abd472993df01b443ab4811379dfe52e18cf790 | [
"MIT"
] | null | null | null | EditGroupWindow.py | TheYargonaut/lucre | 1abd472993df01b443ab4811379dfe52e18cf790 | [
"MIT"
] | null | null | null | EditGroupWindow.py | TheYargonaut/lucre | 1abd472993df01b443ab4811379dfe52e18cf790 | [
"MIT"
] | null | null | null | import tkinter as tk
from tkinter.colorchooser import askcolor
from tkinter import ttk
from Scrollable import Scrollable
from ViewLedgerWidget import ViewLedgerWidget
from List import ListView
from Group import Group
# window for editing a group
prevLens = [ 10, 25, 100 ] | 43.260504 | 165 | 0.633061 |
f5f611d50ecae53133cd83f244cc01c20777a693 | 261 | py | Python | day_07/task_1.py | Korred/advent_of_code_2021 | 89afcaae3343653106d36fb7ad08558c0fbb4732 | [
"Unlicense"
] | null | null | null | day_07/task_1.py | Korred/advent_of_code_2021 | 89afcaae3343653106d36fb7ad08558c0fbb4732 | [
"Unlicense"
] | null | null | null | day_07/task_1.py | Korred/advent_of_code_2021 | 89afcaae3343653106d36fb7ad08558c0fbb4732 | [
"Unlicense"
] | null | null | null | crabs = sorted(map(int, open("input.txt", "r").readline().strip().split(",")))
# position with minimal fuel usage is at the median position
median_pos = crabs[len(crabs) // 2]
min_fuel = sum([abs(crab_pos - median_pos) for crab_pos in crabs])
print(min_fuel)
| 32.625 | 78 | 0.704981 |
f5f839cc33260b873ad589657cb5b87f8a948df8 | 5,172 | py | Python | dialmonkey/nlu/basketball.py | alexandergazo/NPFL123 | c52b6a880abf9fe694ce6a2d775c7db1bd765fba | [
"Apache-2.0"
] | null | null | null | dialmonkey/nlu/basketball.py | alexandergazo/NPFL123 | c52b6a880abf9fe694ce6a2d775c7db1bd765fba | [
"Apache-2.0"
] | null | null | null | dialmonkey/nlu/basketball.py | alexandergazo/NPFL123 | c52b6a880abf9fe694ce6a2d775c7db1bd765fba | [
"Apache-2.0"
] | null | null | null | # Author: Matej Mik
from ..component import Component
from ..da import DAI
import re
| 37.478261 | 97 | 0.552204 |
f5f954fff242094361f8f329de47188d709c63c7 | 1,447 | py | Python | test_SSstache.py | jonschull/Lyte | e9ba2bb1b07c9398b81a6f591898d2474d1a4609 | [
"MIT"
] | 1 | 2018-06-07T17:54:27.000Z | 2018-06-07T17:54:27.000Z | test_SSstache.py | jonschull/Lyte | e9ba2bb1b07c9398b81a6f591898d2474d1a4609 | [
"MIT"
] | 1 | 2018-06-28T05:08:57.000Z | 2018-06-28T05:08:57.000Z | test_SSstache.py | jonschull/Lyte | e9ba2bb1b07c9398b81a6f591898d2474d1a4609 | [
"MIT"
] | null | null | null | from SSstache import *
from plumbum.path.utils import delete
from plumbum.cmd import ls, touch, mkdir
#prepareHTMLdir(dirName='xyz')
#test_makeHTMLdir() | 27.301887 | 148 | 0.608846 |
f5fc2d7fa7991a4448eb7eb0d16d8da0aa0e1f7e | 173 | py | Python | graphic/introductions/graficoNormal.py | jonathanccardoso/data-science | d5977e5cd26b6a9ad05ef8940841158911a91586 | [
"MIT"
] | null | null | null | graphic/introductions/graficoNormal.py | jonathanccardoso/data-science | d5977e5cd26b6a9ad05ef8940841158911a91586 | [
"MIT"
] | null | null | null | graphic/introductions/graficoNormal.py | jonathanccardoso/data-science | d5977e5cd26b6a9ad05ef8940841158911a91586 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
x = [1, 2, 5]
y = [2, 3, 7]
plt.title("1 grafico com python")
# Eixos
plt.xlabel("Eixo X")
plt.ylabel("Eixo Y")
plt.plot(x,y)
plt.show()
| 12.357143 | 33 | 0.630058 |
f5fc99298c4f8aba96ad5b5882efa8fbf637939b | 421 | py | Python | makevideo.py | bitrogen/sorting-algorithms | f7eada32db9e0ce385878f49d79b3d6b8c09280a | [
"CC0-1.0"
] | null | null | null | makevideo.py | bitrogen/sorting-algorithms | f7eada32db9e0ce385878f49d79b3d6b8c09280a | [
"CC0-1.0"
] | 1 | 2021-04-05T20:20:30.000Z | 2021-04-05T20:22:41.000Z | makevideo.py | bitrogen/sorting-algorithms | f7eada32db9e0ce385878f49d79b3d6b8c09280a | [
"CC0-1.0"
] | null | null | null | import cv2
import numpy
import glob
import os
images = []
path = os.getcwd()+"\\frames\\"
myVideo = cv2.VideoWriter("quicksort-1.mkv", cv2.VideoWriter_fourcc(*"DIVX"), 60, (1920,1080))
for filename in range(len(os.listdir(path))):
filename = f"frame-{filename}.png"
img = cv2.imread(f"{path}{f... | 20.047619 | 95 | 0.638955 |
f5fce2318bd81cf7ddc8f556365d8f472f7cc726 | 18,008 | py | Python | darknet.py | sugey/pytorch-yolov3 | cb6b46fd798debca5d8d066eabb2bd2e6c679953 | [
"MIT"
] | 3 | 2019-10-21T16:05:15.000Z | 2019-10-25T00:43:17.000Z | darknet.py | sugey/pytorch-yolov3 | cb6b46fd798debca5d8d066eabb2bd2e6c679953 | [
"MIT"
] | null | null | null | darknet.py | sugey/pytorch-yolov3 | cb6b46fd798debca5d8d066eabb2bd2e6c679953 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import numpy as np
from model.layers import *
from model.build import *
import cv2
from model.utils import *
model = Darknet("cfg/yolov3.cfg")
model.load_weights("yolov3.weights")
inp = get_test_input()
pred = mod... | 44.907731 | 108 | 0.549034 |
f5fd8ae5a3e3e11874751c948747bc877e5305d4 | 1,131 | py | Python | src/icemac/addressbook/browser/search/result/handler/test_manager.py | icemac/icemac.addressbook | 6197e6e01da922feb100dd0943576523050cd703 | [
"BSD-2-Clause"
] | 1 | 2020-03-26T20:16:44.000Z | 2020-03-26T20:16:44.000Z | src/icemac/addressbook/browser/search/result/handler/test_manager.py | icemac/icemac.addressbook | 6197e6e01da922feb100dd0943576523050cd703 | [
"BSD-2-Clause"
] | 2 | 2020-02-21T13:04:23.000Z | 2020-02-21T13:06:10.000Z | src/icemac/addressbook/browser/search/result/handler/test_manager.py | icemac/icemac.addressbook | 6197e6e01da922feb100dd0943576523050cd703 | [
"BSD-2-Clause"
] | null | null | null | from icemac.addressbook.browser.search.result.handler.manager import (
SearchResultHandler)
def makeSRHandler(viewName):
"""Create a `SearchResultHandler` with the specified `viewName`."""
handler = SearchResultHandler(None, None, None, None)
handler.viewName = viewName
return handler
def test_m... | 31.416667 | 75 | 0.72237 |
eb03b18815a588a66491abb92833213166f65e34 | 2,271 | py | Python | superset/shuju_into_mysql.py | LCM1999/superset_secondary_dev | 293e3df9d46ef6096d35ee7d523ce5c7898902bc | [
"Apache-2.0"
] | 1 | 2021-06-29T05:36:30.000Z | 2021-06-29T05:36:30.000Z | superset/shuju_into_mysql.py | LCM1999/superset_secondary_dev | 293e3df9d46ef6096d35ee7d523ce5c7898902bc | [
"Apache-2.0"
] | null | null | null | superset/shuju_into_mysql.py | LCM1999/superset_secondary_dev | 293e3df9d46ef6096d35ee7d523ce5c7898902bc | [
"Apache-2.0"
] | null | null | null | import json
import pymysql
import random
import string
import time
# def get_data():
# with open('E:\\QQ\\1420944066\\FileRecv\\Code (2)\\data\\nice looking data\\gooddata\\20_30(1).json', 'r') as f:
# camera_text = json.load(f) #
# print(camera_text)
# return camera_text
# def data_insert(... | 37.85 | 180 | 0.607221 |
eb03b84ad235ef7df8266830a1654259db309611 | 3,290 | py | Python | Experiments/create_mean_optimization_sets.py | ariel415el/PerceptualLossGLO-Pytorch | 7caa743b719cd95066103a69f3e78a70507de8b5 | [
"MIT"
] | null | null | null | Experiments/create_mean_optimization_sets.py | ariel415el/PerceptualLossGLO-Pytorch | 7caa743b719cd95066103a69f3e78a70507de8b5 | [
"MIT"
] | null | null | null | Experiments/create_mean_optimization_sets.py | ariel415el/PerceptualLossGLO-Pytorch | 7caa743b719cd95066103a69f3e78a70507de8b5 | [
"MIT"
] | null | null | null | import os
import random
import cv2
import numpy as np
import torch
from Experiments.all import load_models, embedd_data, save_batch
from GenerativeModels.utils.data_utils import get_dataset
device = torch.device("cuda")
def sample_latent_neighbors(outputs_dir, models_dir):
"""Find nearest latent neighbors of d... | 39.166667 | 115 | 0.643161 |
eb03e3a050ceea7bb9cd25f052a0aa3154068c30 | 1,830 | py | Python | run-length-encoding/run_length_encoding.py | geekmuse/exercism-python | 089efc0382147bd48f1e2d68c33ba4cbd58d3dfd | [
"MIT"
] | null | null | null | run-length-encoding/run_length_encoding.py | geekmuse/exercism-python | 089efc0382147bd48f1e2d68c33ba4cbd58d3dfd | [
"MIT"
] | null | null | null | run-length-encoding/run_length_encoding.py | geekmuse/exercism-python | 089efc0382147bd48f1e2d68c33ba4cbd58d3dfd | [
"MIT"
] | null | null | null | def decode(to_be_decoded):
"""
Decodes a run-length encoded string.
:param to_be_decoded: run-length encoded string
:return: run-length decoded string
"""
to_be_decoded_list = list(to_be_decoded)
decoded_str_as_list = list()
num_to_print_as_list = list()
for c in to_be_decoded_list:... | 30 | 89 | 0.595082 |
eb0791e28d8a88a76f9e3bcff8a0767061c1499e | 3,816 | py | Python | pytorch/benchmarks/operator_benchmark/pt/conv_test.py | raghavnauhria/whatmt | c20483a437c82936cb0fb8080925e37b9c4bba87 | [
"MIT"
] | null | null | null | pytorch/benchmarks/operator_benchmark/pt/conv_test.py | raghavnauhria/whatmt | c20483a437c82936cb0fb8080925e37b9c4bba87 | [
"MIT"
] | 1 | 2019-07-22T09:48:46.000Z | 2019-07-22T09:48:46.000Z | pytorch/benchmarks/operator_benchmark/pt/conv_test.py | raghavnauhria/whatmt | c20483a437c82936cb0fb8080925e37b9c4bba87 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import operator_benchmark as op_bench
import torch
import torch.nn as nn
"""
Microbenchmarks for Conv1d and ConvTranspose1d operators.
"""
# Configs for conv-1d ops
... | 27.453237 | 85 | 0.673742 |
eb083967d51239e917a7b39eeaa1d72f732ba81d | 1,605 | py | Python | local_test/course_search/nyuapi/request.py | NYUSHer/Widgets | b630d01331ca0101778fc7ca44fff7b65412f9ef | [
"MIT"
] | 1 | 2018-05-01T06:04:39.000Z | 2018-05-01T06:04:39.000Z | local_test/course_search/nyuapi/request.py | NYUSHer/Widgets | b630d01331ca0101778fc7ca44fff7b65412f9ef | [
"MIT"
] | null | null | null | local_test/course_search/nyuapi/request.py | NYUSHer/Widgets | b630d01331ca0101778fc7ca44fff7b65412f9ef | [
"MIT"
] | null | null | null | import requests as R
| 32.1 | 87 | 0.544548 |
eb0939a06759c9dcb9a5c2eda6614c361061cde9 | 857 | py | Python | pySINGLE/setup.py | piomonti/pySINGLE | 2eae0b31334d8eae08fd7f96f591262c4abcf3d9 | [
"MIT"
] | 3 | 2015-12-21T15:14:08.000Z | 2018-12-29T10:15:03.000Z | pySINGLE/setup.py | piomonti/pySINGLE | 2eae0b31334d8eae08fd7f96f591262c4abcf3d9 | [
"MIT"
] | null | null | null | pySINGLE/setup.py | piomonti/pySINGLE | 2eae0b31334d8eae08fd7f96f591262c4abcf3d9 | [
"MIT"
] | null | null | null | #from distutils.core import setup
#from distutils.extension import Extension
#from Cython.Distutils import build_ext
#import numpy
#setup(
#cmdclass = {'build_ext': build_ext},
#ext_modules = [Extension("Z_shooting", ["Z_shooting.c"],)],
#include_dirs=[numpy.get_include(),'.', ],
#)
from dist... | 27.645161 | 104 | 0.687281 |
eb0a67e0dac6431fa8a950d7b99db76a91a069c7 | 11,877 | py | Python | cnnlstm/preprocessing.py | mingjiewong/Kaggle-M5-Forecasting-Accuracy-2020 | 6467a08640990f2d07e517adf7bacd566fb442c4 | [
"MIT"
] | null | null | null | cnnlstm/preprocessing.py | mingjiewong/Kaggle-M5-Forecasting-Accuracy-2020 | 6467a08640990f2d07e517adf7bacd566fb442c4 | [
"MIT"
] | null | null | null | cnnlstm/preprocessing.py | mingjiewong/Kaggle-M5-Forecasting-Accuracy-2020 | 6467a08640990f2d07e517adf7bacd566fb442c4 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import os
from sklearn.preprocessing import MinMaxScaler
from data_processing.helpers import Config
| 46.214008 | 126 | 0.667088 |
eb0ac6a6f7fdd1cf17fa0a0d491c03fde96fdfc1 | 331 | py | Python | Physics250-ME3738/timeIntervalBlinks.py | illusion173/Physics250 | 69f2ffdb8af013e8b0739779861c1455b579ddaf | [
"MIT"
] | null | null | null | Physics250-ME3738/timeIntervalBlinks.py | illusion173/Physics250 | 69f2ffdb8af013e8b0739779861c1455b579ddaf | [
"MIT"
] | null | null | null | Physics250-ME3738/timeIntervalBlinks.py | illusion173/Physics250 | 69f2ffdb8af013e8b0739779861c1455b579ddaf | [
"MIT"
] | null | null | null | import math
speedofLight = 2.9979*pow(10,8)
timeIntervalBlinks()
| 18.388889 | 56 | 0.592145 |
eb1051fc036fc84c631af126f696c0417323ff9f | 419 | py | Python | daemons/area-deletion-daemon/app.py | sampierson/upload-service | b7c470706f729bdee34a4254555f798558877095 | [
"MIT"
] | 6 | 2018-01-31T19:44:17.000Z | 2020-02-20T13:03:09.000Z | daemons/area-deletion-daemon/app.py | sampierson/upload-service | b7c470706f729bdee34a4254555f798558877095 | [
"MIT"
] | 379 | 2018-03-21T21:29:15.000Z | 2020-01-28T14:20:48.000Z | daemons/area-deletion-daemon/app.py | HumanCellAtlas/staging-service | b7c470706f729bdee34a4254555f798558877095 | [
"MIT"
] | 5 | 2018-03-09T14:13:15.000Z | 2020-01-30T15:49:46.000Z | import json
from upload.common.upload_area import UploadArea
# This lambda function is invoked by messages in the the area_deletion_queue (AWS SQS).
# The queue and the lambda function are connected via aws_lambda_event_source_mapping
| 38.090909 | 87 | 0.785203 |
eb10a721ce3034d767a4ccb9040dc682a3ffb0b4 | 3,089 | py | Python | engine/geometry/tests/test_overlap_detection_2d.py | codehearts/pickles-fetch-quest | ca9b3c7fe26acb50e1e2d654d068f5bb953bc427 | [
"MIT"
] | 3 | 2017-12-07T19:17:36.000Z | 2021-07-29T18:24:25.000Z | engine/geometry/tests/test_overlap_detection_2d.py | codehearts/pickles-fetch-quest | ca9b3c7fe26acb50e1e2d654d068f5bb953bc427 | [
"MIT"
] | 41 | 2017-11-11T06:00:08.000Z | 2022-03-28T23:27:25.000Z | engine/geometry/tests/test_overlap_detection_2d.py | codehearts/pickles-fetch-quest | ca9b3c7fe26acb50e1e2d654d068f5bb953bc427 | [
"MIT"
] | 2 | 2018-08-31T23:49:00.000Z | 2021-09-21T00:42:48.000Z | from ..overlap_detection_2d import detect_overlap_2d
from unittest.mock import call, Mock, patch
import unittest
| 42.315068 | 76 | 0.642279 |
eb10c1e56faa83018c15d8d04331071eb6bc524c | 786 | py | Python | PythonTest/Aula18A.py | MatthewsTomts/Python_Class | f326d521d62c45a4fcb429d2a22cf2ab958492cb | [
"MIT"
] | null | null | null | PythonTest/Aula18A.py | MatthewsTomts/Python_Class | f326d521d62c45a4fcb429d2a22cf2ab958492cb | [
"MIT"
] | null | null | null | PythonTest/Aula18A.py | MatthewsTomts/Python_Class | f326d521d62c45a4fcb429d2a22cf2ab958492cb | [
"MIT"
] | null | null | null | teste = list()
teste.append('Matheus')
teste.append(17)
galera = [teste[:]] # Cria uma copia de teste dentro de galera
teste[0] = 'Oliver'
teste[1] = 22
galera.append(teste) # Cria um vnculo entre teste e galera
print(galera)
pessoas = [['Harvey', 23], ['Madeleine', 19], ['Roger', 250], ['Mark', 20]]
print(pessoas[... | 27.103448 | 84 | 0.624682 |
eb15265b18824ec201a18ed59e673270072c7e83 | 756 | py | Python | src/bio2bel/exc.py | aman527/bio2bel | 631328261a8e7ebddf2eab6c271bc4bc42fbcba4 | [
"MIT"
] | 16 | 2018-05-18T13:25:44.000Z | 2022-03-15T02:32:28.000Z | src/bio2bel/exc.py | aman527/bio2bel | 631328261a8e7ebddf2eab6c271bc4bc42fbcba4 | [
"MIT"
] | 42 | 2017-09-13T20:16:46.000Z | 2021-05-08T19:24:30.000Z | src/bio2bel/exc.py | aman527/bio2bel | 631328261a8e7ebddf2eab6c271bc4bc42fbcba4 | [
"MIT"
] | 5 | 2020-03-14T17:08:12.000Z | 2021-04-13T20:19:19.000Z | # -*- coding: utf-8 -*-
"""Bio2BEL custom errors."""
| 31.5 | 111 | 0.747354 |
eb17d457b2e3da5e9c6ce129bda974e0910d6212 | 1,967 | py | Python | tencentcloud/cat/v20180409/errorcodes.py | HS-Gray/tencentcloud-sdk-python | b28b19c4beebc9f361aa3221afa36ad1ee047ccc | [
"Apache-2.0"
] | 37 | 2017-10-12T01:50:42.000Z | 2022-02-24T02:44:45.000Z | tencentcloud/cat/v20180409/errorcodes.py | HS-Gray/tencentcloud-sdk-python | b28b19c4beebc9f361aa3221afa36ad1ee047ccc | [
"Apache-2.0"
] | null | null | null | tencentcloud/cat/v20180409/errorcodes.py | HS-Gray/tencentcloud-sdk-python | b28b19c4beebc9f361aa3221afa36ad1ee047ccc | [
"Apache-2.0"
] | 12 | 2018-07-31T10:04:56.000Z | 2022-02-07T00:08:06.000Z | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... | 26.945205 | 82 | 0.804779 |
eb198ab0970d6a0544631c5838cde74baffd6fdc | 8,851 | py | Python | Website/Ogre/points/tests.py | pringyy/OGRE | 26bd1bc06e1d14129b8922da8c9bb7f21b7ec457 | [
"MIT"
] | null | null | null | Website/Ogre/points/tests.py | pringyy/OGRE | 26bd1bc06e1d14129b8922da8c9bb7f21b7ec457 | [
"MIT"
] | null | null | null | Website/Ogre/points/tests.py | pringyy/OGRE | 26bd1bc06e1d14129b8922da8c9bb7f21b7ec457 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.test import TestCase
from django.contrib.staticfiles import finders
from django.urls import reverse
from .models import StudentProfileInfo, User
from .forms import UserForm, ContactForm, UserProfileInfoForm
| 35.979675 | 119 | 0.711219 |
eb1aab5b6a3a998c629d8d9ed3c85dc9531c3cbf | 6,248 | py | Python | py2.5/processing/reduction.py | geofft/multiprocess | d998ffea9e82d17662b12b94a236182e7fde46d5 | [
"BSD-3-Clause"
] | 356 | 2015-06-21T21:05:10.000Z | 2022-03-30T11:57:08.000Z | py2.5/processing/reduction.py | geofft/multiprocess | d998ffea9e82d17662b12b94a236182e7fde46d5 | [
"BSD-3-Clause"
] | 103 | 2015-06-22T01:44:14.000Z | 2022-03-01T03:44:25.000Z | py2.5/processing/reduction.py | geofft/multiprocess | d998ffea9e82d17662b12b94a236182e7fde46d5 | [
"BSD-3-Clause"
] | 72 | 2015-09-02T14:10:24.000Z | 2022-03-25T06:49:43.000Z | #
# Module to support the pickling of different types of connection
# objects and file objects so that they can be transferred between
# different processes.
#
# processing/reduction.py
#
# Copyright (c) 2006-2008, R Oudkerk --- see COPYING.txt
#
__all__ = []
import os
import sys
import socket
import t... | 28.52968 | 80 | 0.639725 |
eb1afd11fd2f6d89e9d5a3d5e84072981f86d593 | 570 | py | Python | data-structures/print-the-elements-of-a-linked-list-in-reverse.py | gajubadge11/HackerRank-1 | 7b136ccaa1ed47ae737467ace6b494c720ccb942 | [
"MIT"
] | 340 | 2018-06-17T19:45:56.000Z | 2022-03-22T02:26:15.000Z | data-structures/print-the-elements-of-a-linked-list-in-reverse.py | gajubadge11/HackerRank-1 | 7b136ccaa1ed47ae737467ace6b494c720ccb942 | [
"MIT"
] | 3 | 2021-02-02T17:17:29.000Z | 2021-05-18T10:06:04.000Z | data-structures/print-the-elements-of-a-linked-list-in-reverse.py | gajubadge11/HackerRank-1 | 7b136ccaa1ed47ae737467ace6b494c720ccb942 | [
"MIT"
] | 229 | 2019-04-20T08:28:49.000Z | 2022-03-31T04:23:52.000Z | """
Print elements of a linked list in reverse order as standard output
head could be None as well for empty list
Node is defined as
class Node(object):
def __init__(self, data=None, next_node=None):
self.data = data
self.next = next_node
"""
| 16.285714 | 68 | 0.522807 |
eb1bfe5091ca2f0f84f38e9d762348c024630c00 | 9,088 | py | Python | cfd/cfd_rel_perms.py | lanetszb/vofpnm | 520544db894fb13e44a86e989bd17b4690e996d3 | [
"MIT"
] | null | null | null | cfd/cfd_rel_perms.py | lanetszb/vofpnm | 520544db894fb13e44a86e989bd17b4690e996d3 | [
"MIT"
] | null | null | null | cfd/cfd_rel_perms.py | lanetszb/vofpnm | 520544db894fb13e44a86e989bd17b4690e996d3 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2020 Aleksandr Zhuravlyov and Zakhar Lanets
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to... | 36.943089 | 125 | 0.725682 |
eb1c6dbf88d8c9f286de25fdab3e7030a01a795a | 10,209 | py | Python | python/gameduino/base.py | Godzil/gameduino | 3a9d04b9820ca7edb04df4583fa14300e913fdb9 | [
"BSD-3-Clause"
] | 17 | 2016-09-13T09:11:03.000Z | 2020-09-30T03:31:15.000Z | python/gameduino/base.py | lambdamikel/gameduino | 3a9d04b9820ca7edb04df4583fa14300e913fdb9 | [
"BSD-3-Clause"
] | null | null | null | python/gameduino/base.py | lambdamikel/gameduino | 3a9d04b9820ca7edb04df4583fa14300e913fdb9 | [
"BSD-3-Clause"
] | 12 | 2017-07-03T21:57:41.000Z | 2021-11-02T17:47:23.000Z | import struct
ascii_glyphs = [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, 0x18, 0x00,
0x6c, 0x6c, 0x6c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x36, 0x7f, 0x36, 0x7f, 0x36, 0x36, 0x00,
0x0c, 0x3f, 0x68, 0x3e, 0x0b, 0x7e, 0x18, 0x00, 0x60, 0... | 49.081731 | 134 | 0.54687 |
eb1e1aaec21c57363587a62326c0cc891182c577 | 183 | py | Python | sdm/__init__.py | DarthNoxix/noxixcogs | 794571b7d155e40f6bfb6ba7c31b0a7f025e3d59 | [
"MIT"
] | null | null | null | sdm/__init__.py | DarthNoxix/noxixcogs | 794571b7d155e40f6bfb6ba7c31b0a7f025e3d59 | [
"MIT"
] | null | null | null | sdm/__init__.py | DarthNoxix/noxixcogs | 794571b7d155e40f6bfb6ba7c31b0a7f025e3d59 | [
"MIT"
] | null | null | null | from .sdm import Sdm
__red_end_user_data_statement__ = (
"This cog does not persistently store data or metadata about users."
)
| 18.3 | 72 | 0.73224 |
eb1e990c875a84c89463cedf50afc813143a16f2 | 1,330 | py | Python | GUI/WifiMonitor/UDP/Utils/gpio_mapping.py | gchinellato/XD | f6c0134030c5e229a7b9c2621311c5204aed77af | [
"MIT"
] | 1 | 2019-10-15T20:31:39.000Z | 2019-10-15T20:31:39.000Z | GUI/WifiMonitor/Utils/gpio_mapping.py | gchinellato/XD | f6c0134030c5e229a7b9c2621311c5204aed77af | [
"MIT"
] | null | null | null | GUI/WifiMonitor/Utils/gpio_mapping.py | gchinellato/XD | f6c0134030c5e229a7b9c2621311c5204aed77af | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
*************************************************
* @Project: Self Balance
* @Description: GPIO Mapping
* @Owner: Guilherme Chinellato
* @Email: guilhermechinellato@gmail.com
*************************************************... | 18.472222 | 69 | 0.566165 |
eb1fb044cf839bde93fe0d603ce5bba8c4e8cccd | 449 | py | Python | vks/vulkanglobals.py | geehalel/pyvk | 56737ee4547b3f12bf941dcda74305b739d09cbb | [
"MIT"
] | 1 | 2022-01-09T19:02:00.000Z | 2022-01-09T19:02:00.000Z | vks/vulkanglobals.py | geehalel/pyvk | 56737ee4547b3f12bf941dcda74305b739d09cbb | [
"MIT"
] | null | null | null | vks/vulkanglobals.py | geehalel/pyvk | 56737ee4547b3f12bf941dcda74305b739d09cbb | [
"MIT"
] | null | null | null | # Copyright (C) 2019 by geehalel@gmail.com
# This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
import platform
_WIN32 = (platform.system() == 'Windows')
VK_USE_PLATFORM_WIN32_KHR = _WIN32
VK_USE_PLATFORM_ANDROID_KHR = False
VK_USE_PLATFORM_WAYLAND_KHR = False
_DIRECT2DISPLAY = Fal... | 29.933333 | 88 | 0.815145 |