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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71ecbe30760d8ff6d5c97c8f6cb9ae037d64dc1b | 39,956 | py | Python | sc2/bot_ai.py | Lexa307/PhotonDefender | a08dc652e5c64e3ccb33b7cfa206846dca0575bd | [
"MIT"
] | 2 | 2019-07-17T13:00:32.000Z | 2019-07-17T13:09:30.000Z | sc2/bot_ai.py | Lexa307/PhotonDefender | a08dc652e5c64e3ccb33b7cfa206846dca0575bd | [
"MIT"
] | null | null | null | sc2/bot_ai.py | Lexa307/PhotonDefender | a08dc652e5c64e3ccb33b7cfa206846dca0575bd | [
"MIT"
] | null | null | null | import itertools
import logging
import math
import random
from collections import Counter
from typing import Any, Dict, List, Optional, Set, Tuple, Union # mypy type checking
from .cache import property_cache_forever, property_cache_once_per_frame
from .data import ActionResult, Alert, Race, Result, Target, race_gas,... | 44.150276 | 180 | 0.633922 |
71ecddbb1bd02f445d97d4e77a4a4128c68a4abe | 4,260 | py | Python | src/python/pants/jvm/resolve/lockfile_metadata.py | xyzst/pants | d6a357fe67ee7e8e1aefeae625e107f5609f1717 | [
"Apache-2.0"
] | null | null | null | src/python/pants/jvm/resolve/lockfile_metadata.py | xyzst/pants | d6a357fe67ee7e8e1aefeae625e107f5609f1717 | [
"Apache-2.0"
] | 6 | 2022-01-25T15:49:26.000Z | 2022-02-09T11:21:13.000Z | src/python/pants/jvm/resolve/lockfile_metadata.py | thejcannon/pants | 7c24f42cb78cc462b63698cef736eda7a85c40e0 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from dataclasses import dataclass
from enum import Enum
from typing import Any, Iterable, cast
from pants.core.util_rules.lockfile_metadata import (
... | 33.809524 | 100 | 0.711268 |
71ece1b40046a77ed95f80492a330f22d42912ee | 1,528 | py | Python | generator/generator.py | GregorKikelj/opendbc | a20ed24ea2593e5d019adf538dc0cecfc7ef8709 | [
"MIT"
] | 1,059 | 2017-05-31T06:33:27.000Z | 2022-03-31T23:02:29.000Z | generator/generator.py | DIMO-Network/opendbc | 9a1fbe581846f9d0191f142f498ef3f1c35826ea | [
"MIT"
] | 248 | 2017-07-14T01:45:40.000Z | 2022-03-21T17:55:26.000Z | generator/generator.py | DIMO-Network/opendbc | 9a1fbe581846f9d0191f142f498ef3f1c35826ea | [
"MIT"
] | 940 | 2017-06-02T16:40:42.000Z | 2022-03-29T16:49:58.000Z | #!/usr/bin/env python3
import os
import re
cur_path = os.path.dirname(os.path.realpath(__file__))
opendbc_root = os.path.join(cur_path, '../')
include_pattern = re.compile(r'CM_ "IMPORT (.*?)";')
if __name__ == "__main__":
create_all(opendbc_root)
| 28.296296 | 90 | 0.716623 |
71eed31624e7569b476bc79838cb16831bf90648 | 1,105 | py | Python | customer/admin.py | matheusdemicheli/dogtel | 4eed44c8214fe814c26a6df0125af9b065c81c1c | [
"MIT"
] | null | null | null | customer/admin.py | matheusdemicheli/dogtel | 4eed44c8214fe814c26a6df0125af9b065c81c1c | [
"MIT"
] | null | null | null | customer/admin.py | matheusdemicheli/dogtel | 4eed44c8214fe814c26a6df0125af9b065c81c1c | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.utils.safestring import mark_safe
from customer.models import Owner, Dog, Breed, SubBreed
admin.site.register(Dog, DogAdmin)
admin.site.register(Owner, OwnerAdmin)
admin.site.register(Breed, BreedAdmin)
admin.site.register(SubBreed, SubBreedAdmin) | 24.021739 | 71 | 0.650679 |
71eee010313a8cf81a43634e4dc40236254335a2 | 464 | py | Python | kaneda/tasks/rq.py | APSL/kaneda | 739db48588d2237dd7710b16f23921d489182868 | [
"MIT"
] | 59 | 2016-05-03T20:17:59.000Z | 2019-09-05T18:35:21.000Z | kaneda/tasks/rq.py | APSL/kaneda | 739db48588d2237dd7710b16f23921d489182868 | [
"MIT"
] | 2 | 2018-07-25T21:51:18.000Z | 2019-07-31T22:51:09.000Z | kaneda/tasks/rq.py | APSL/kaneda | 739db48588d2237dd7710b16f23921d489182868 | [
"MIT"
] | 11 | 2016-05-20T19:07:46.000Z | 2021-09-10T17:43:58.000Z | from __future__ import absolute_import
from redis import Redis
from rq.decorators import job
from kaneda.utils import get_backend
backend = get_backend()
| 23.2 | 75 | 0.724138 |
71ef13879f7d9412c115fe5712bcdcce5a10b758 | 4,067 | py | Python | src/ripper.py | jg-rivera/cert-ripper | 2bab5e02cd2da8e92a1c308640917b6f5ee729cb | [
"MIT"
] | null | null | null | src/ripper.py | jg-rivera/cert-ripper | 2bab5e02cd2da8e92a1c308640917b6f5ee729cb | [
"MIT"
] | null | null | null | src/ripper.py | jg-rivera/cert-ripper | 2bab5e02cd2da8e92a1c308640917b6f5ee729cb | [
"MIT"
] | null | null | null | from dotenv import load_dotenv
from PyPDF2 import PdfFileReader, PdfFileWriter
import os
import json
if __name__ == "__main__":
load_dotenv()
ripper = CertRipper(
start_page_index=os.getenv("START_PAGE_INDEX"),
master_pdf_path=os.getenv("MASTER_PDF_PATH"),
json_points_path=os.getenv(... | 35.060345 | 152 | 0.614212 |
71ef7b545410fc717e2f36b835e68675481e1947 | 2,192 | py | Python | venv/Lib/site-packages/tests/test_111_FieldNumAddCol.py | shehzadulislam/Assignment4 | a9cced70be6ae5d2685027d68032d5849f638301 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/tests/test_111_FieldNumAddCol.py | shehzadulislam/Assignment4 | a9cced70be6ae5d2685027d68032d5849f638301 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/tests/test_111_FieldNumAddCol.py | shehzadulislam/Assignment4 | a9cced70be6ae5d2685027d68032d5849f638301 | [
"Apache-2.0"
] | null | null | null | #
# Licensed Materials - Property of IBM
#
# (c) Copyright IBM Corp. 2007-2008
#
import unittest, sys
import ibm_db
import config
from testfunctions import IbmDbTestFunctions
#__END__
#__LUW_EXPECTED__
#False
#int(0)
#int(1)
#False
#False
#False
#int(1)
#False
#__ZOS_EXPECTED__
#False
#int(0)
#int(1)
#False
#False... | 21.92 | 123 | 0.629562 |
71f05726793fa3f17f84622c2fdc4b1adae30d42 | 2,382 | py | Python | foundation/djangocms_pagebanner/cms_toolbar.py | Mindelirium/foundation | 2d07e430915d696ca7376afea633692119c4d30e | [
"MIT"
] | null | null | null | foundation/djangocms_pagebanner/cms_toolbar.py | Mindelirium/foundation | 2d07e430915d696ca7376afea633692119c4d30e | [
"MIT"
] | null | null | null | foundation/djangocms_pagebanner/cms_toolbar.py | Mindelirium/foundation | 2d07e430915d696ca7376afea633692119c4d30e | [
"MIT"
] | null | null | null | from cms.api import get_page_draft
from cms.toolbar_pool import toolbar_pool
from cms.toolbar_base import CMSToolbar
from cms.utils import get_cms_setting
from cms.utils.permissions import has_page_change_permission
from django.core.urlresolvers import reverse, NoReverseMatch
from django.utils.translation import ugette... | 41.789474 | 76 | 0.625105 |
71f0694c1e4dfc112a543268e37e44700697d2ed | 7,346 | py | Python | tasks/lm/models/lm.py | etri-edgeai/nn-comp-discblock | 6e00a019c223508797ca91a7d5ffec7917b12c6d | [
"Apache-2.0"
] | 10 | 2021-11-19T06:24:51.000Z | 2022-02-09T15:44:00.000Z | tasks/lm/models/lm.py | etri-edgeai/nn-comp-discblock | 6e00a019c223508797ca91a7d5ffec7917b12c6d | [
"Apache-2.0"
] | 9 | 2021-10-01T11:06:27.000Z | 2021-12-23T02:10:52.000Z | tasks/lm/models/lm.py | etri-edgeai/nn-comp-discblock | 6e00a019c223508797ca91a7d5ffec7917b12c6d | [
"Apache-2.0"
] | 2 | 2021-09-14T04:08:36.000Z | 2021-11-19T06:24:54.000Z | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
# Temporarily leave PositionalEncoding module here. Will be moved somewhere else.
| 40.585635 | 122 | 0.611081 |
71f079a62757b3209f276ed71f4e310438ef3cc4 | 248 | py | Python | fibo.py | Baibhabswain/pythonPrograms | 38380174f22e73b766b98754b00cd78a56b4bf59 | [
"MIT"
] | 1 | 2019-03-29T04:32:09.000Z | 2019-03-29T04:32:09.000Z | fibo.py | Baibhabswain/pythonPrograms | 38380174f22e73b766b98754b00cd78a56b4bf59 | [
"MIT"
] | null | null | null | fibo.py | Baibhabswain/pythonPrograms | 38380174f22e73b766b98754b00cd78a56b4bf59 | [
"MIT"
] | null | null | null | main() | 17.714286 | 42 | 0.608871 |
71f16750be3a7d0922d774531a82147a9b72ab6b | 44 | py | Python | scrapper/playstation/__init__.py | gghf-service/gghf-api | 9740700d1dd160e90fc949f9c3e652c3483a49aa | [
"MIT"
] | 1 | 2018-12-10T14:37:11.000Z | 2018-12-10T14:37:11.000Z | scrapper/playstation/__init__.py | tapkain/gghf.api | 9740700d1dd160e90fc949f9c3e652c3483a49aa | [
"MIT"
] | null | null | null | scrapper/playstation/__init__.py | tapkain/gghf.api | 9740700d1dd160e90fc949f9c3e652c3483a49aa | [
"MIT"
] | null | null | null | from scrapper.playstation.spider import main | 44 | 44 | 0.886364 |
71f1b81a3d9a5c16cb1f510f6c706a2a817d94b4 | 2,737 | py | Python | plugins/number.py | motakine/ILAS_slackbot | ddfb34db1cddcb459fef34cfc04c498d6f85d135 | [
"MIT"
] | null | null | null | plugins/number.py | motakine/ILAS_slackbot | ddfb34db1cddcb459fef34cfc04c498d6f85d135 | [
"MIT"
] | null | null | null | plugins/number.py | motakine/ILAS_slackbot | ddfb34db1cddcb459fef34cfc04c498d6f85d135 | [
"MIT"
] | null | null | null | import slackbot.bot
import random
answer = random.randint(1, 50)
max = 50
def number(num):
'''number
Args:
num (int):
Returns:
str: num answer : 'Too large'
num answer : 'Too small'
num answer : 'Correct!'
: 'Can I kick you?.'
0
... | 25.110092 | 93 | 0.588235 |
71f3dc5d5c4a8e087378f18d43a8168ef202c67c | 30,964 | py | Python | pytype/analyze.py | hatal175/pytype | 22150dd56c2a11f3d385a1cbb28eed985df31d72 | [
"Apache-2.0"
] | null | null | null | pytype/analyze.py | hatal175/pytype | 22150dd56c2a11f3d385a1cbb28eed985df31d72 | [
"Apache-2.0"
] | null | null | null | pytype/analyze.py | hatal175/pytype | 22150dd56c2a11f3d385a1cbb28eed985df31d72 | [
"Apache-2.0"
] | null | null | null | """Code for checking and inferring types."""
import collections
import logging
import re
import subprocess
from typing import Any, Dict, Union
from pytype import abstract
from pytype import abstract_utils
from pytype import convert_structural
from pytype import debug
from pytype import function
from pytype import met... | 41.61828 | 80 | 0.687993 |
71f490ebabe7d689d377fda1a39b6fe3eaf67bee | 3,979 | py | Python | src/cupcake/post_isoseq_cluster/demux_by_barcode_groups.py | milescsmith/cDNA_Cupcake | 776d841c69fc6d8b3dce95bb9f076546bc0429c0 | [
"BSD-3-Clause-Clear"
] | null | null | null | src/cupcake/post_isoseq_cluster/demux_by_barcode_groups.py | milescsmith/cDNA_Cupcake | 776d841c69fc6d8b3dce95bb9f076546bc0429c0 | [
"BSD-3-Clause-Clear"
] | null | null | null | src/cupcake/post_isoseq_cluster/demux_by_barcode_groups.py | milescsmith/cDNA_Cupcake | 776d841c69fc6d8b3dce95bb9f076546bc0429c0 | [
"BSD-3-Clause-Clear"
] | null | null | null | #!/usr/bin/env python
__author__ = "etseng@pacb.com"
"""
Given a pooled input GFF + demux CSV file, write out per-{barcode group} GFFs
If input fasta/fastq is given, optionally also output per-{barcode group} FASTA/FASTQ
"""
import re
from collections import defaultdict
from csv import DictReader
from typing import Op... | 32.349593 | 111 | 0.6381 |
71f49ed361f20a67913d6d3671205fa5c226035f | 5,168 | py | Python | vll/data/circle_dataset.py | paulhfu/3dcv-students | f8d42c985cf33903170733b0c8f6a2199099553c | [
"MIT"
] | 4 | 2020-04-21T21:40:13.000Z | 2022-02-13T18:18:13.000Z | vll/data/circle_dataset.py | paulhfu/3dcv-students | f8d42c985cf33903170733b0c8f6a2199099553c | [
"MIT"
] | 1 | 2022-02-03T11:24:07.000Z | 2022-02-03T11:24:07.000Z | vll/data/circle_dataset.py | paulhfu/3dcv-students | f8d42c985cf33903170733b0c8f6a2199099553c | [
"MIT"
] | 8 | 2020-04-22T10:24:27.000Z | 2022-01-13T16:25:52.000Z | import random
import numpy as np
import math
from skimage.draw import line, line_aa, circle, set_color, circle_perimeter_aa
from skimage.io import imsave
from skimage.util import random_noise
maxSlope = 10 # restrict the maximum slope of generated lines for stability
minLength = 20 # restrict the minimum length of li... | 31.13253 | 147 | 0.663893 |
71f5039371a3b37776d4da5587717221d15a60a1 | 5,276 | py | Python | VAE/reduced_model/nesm_generator.py | youngmg1995/NES-Music-Maker | aeda10a541cfd439cfa46c45e63411e0d98e41c1 | [
"MIT"
] | 3 | 2020-06-26T22:02:35.000Z | 2021-11-20T19:24:33.000Z | VAE/reduced_model/nesm_generator.py | youngmg1995/NES-Music-Maker | aeda10a541cfd439cfa46c45e63411e0d98e41c1 | [
"MIT"
] | null | null | null | VAE/reduced_model/nesm_generator.py | youngmg1995/NES-Music-Maker | aeda10a541cfd439cfa46c45e63411e0d98e41c1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 1 17:14:19 2020
@author: Mitchell
nesm_generator.py
~~~~~~~~~~~~~~~~~
This file serves as a script for using our pre-trained VAE model to generate
brand new NES music soundtracks. NOTE - using the reduced model we only
generate the first melodic voice for each track rat... | 32.567901 | 79 | 0.638931 |
71f546859f563e461fa98070b804316bbbaa69c8 | 1,030 | py | Python | anlogger/logger.py | anttin/anlogger | dfa7be7ba2f4651507b188f986c10bab9bd7460e | [
"MIT"
] | null | null | null | anlogger/logger.py | anttin/anlogger | dfa7be7ba2f4651507b188f986c10bab9bd7460e | [
"MIT"
] | null | null | null | anlogger/logger.py | anttin/anlogger | dfa7be7ba2f4651507b188f986c10bab9bd7460e | [
"MIT"
] | null | null | null | import logging
import logging.handlers
import os
| 28.611111 | 94 | 0.659223 |
71f5e7d6ce9c05a9fca443446dc43b2633e1dc3d | 133 | py | Python | Python/hello_world-theopaid.py | saurabhcommand/Hello-world | 647bad9da901a52d455f05ecc37c6823c22dc77e | [
"MIT"
] | 1,428 | 2018-10-03T15:15:17.000Z | 2019-03-31T18:38:36.000Z | Python/hello_world-theopaid.py | saurabhcommand/Hello-world | 647bad9da901a52d455f05ecc37c6823c22dc77e | [
"MIT"
] | 1,162 | 2018-10-03T15:05:49.000Z | 2018-10-18T14:17:52.000Z | Python/hello_world-theopaid.py | saurabhcommand/Hello-world | 647bad9da901a52d455f05ecc37c6823c22dc77e | [
"MIT"
] | 3,909 | 2018-10-03T15:07:19.000Z | 2019-03-31T18:39:08.000Z | #Author Theodosis Paidakis
print("Hello World")
hello_list = ["Hello World"]
print(hello_list[0])
for i in hello_list:
print(i) | 16.625 | 28 | 0.721805 |
71f6399c6d0b985a134ae6927664662c261371d5 | 330 | py | Python | question_answering/stubs.py | uliang/NaturalLanguageQueryingSystem | d18b4ae429362ba311d6f26debbcfe391b810458 | [
"MIT"
] | null | null | null | question_answering/stubs.py | uliang/NaturalLanguageQueryingSystem | d18b4ae429362ba311d6f26debbcfe391b810458 | [
"MIT"
] | null | null | null | question_answering/stubs.py | uliang/NaturalLanguageQueryingSystem | d18b4ae429362ba311d6f26debbcfe391b810458 | [
"MIT"
] | null | null | null | from collections import namedtuple
from unittest.mock import MagicMock
_fake_ext = namedtuple('_', ['qtype', 'kb_ident'])
| 23.571429 | 51 | 0.654545 |
71f66963cc795d3d06ec835c6cc0e9a8392f9d65 | 729 | py | Python | lib/env/trade/BaseTradeStrategy.py | devas123/Bitcoin-Trader-RL | 097cb0ba7428b2c4f997bdb0425a6153c23f9c83 | [
"MIT"
] | null | null | null | lib/env/trade/BaseTradeStrategy.py | devas123/Bitcoin-Trader-RL | 097cb0ba7428b2c4f997bdb0425a6153c23f9c83 | [
"MIT"
] | null | null | null | lib/env/trade/BaseTradeStrategy.py | devas123/Bitcoin-Trader-RL | 097cb0ba7428b2c4f997bdb0425a6153c23f9c83 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from typing import Tuple, Callable
| 30.375 | 90 | 0.577503 |
71f75308f26d63f94b10ee2cdd22fde8e48a6afe | 304 | py | Python | 4day/Book04_1.py | jsjang93/joony | 62f7a325094c887212b894932263bf84500e0f03 | [
"MIT"
] | null | null | null | 4day/Book04_1.py | jsjang93/joony | 62f7a325094c887212b894932263bf84500e0f03 | [
"MIT"
] | null | null | null | 4day/Book04_1.py | jsjang93/joony | 62f7a325094c887212b894932263bf84500e0f03 | [
"MIT"
] | null | null | null | # Book04_1.py
b1 = Book(); print(b1.category)
b2 = b1; print(b2.category)
print(Book.category)
Book.category = ''
print(b2.category); print(b1.category) ; print(Book.category)
b2.category = 'IT'
print(b2.category); print(b1.category) ; print(Book.category) | 23.384615 | 61 | 0.700658 |
71f7f60857c1f64d4455062df57530ef2f07c039 | 4,146 | py | Python | wrappers/python/virgil_crypto_lib/foundation/kdf1.py | odidev/virgil-crypto-c | 3d5d5cb19fdcf81eab08cdc63647f040117ecbd8 | [
"BSD-3-Clause"
] | 26 | 2018-12-17T13:45:25.000Z | 2022-01-16T20:00:04.000Z | wrappers/python/virgil_crypto_lib/foundation/kdf1.py | odidev/virgil-crypto-c | 3d5d5cb19fdcf81eab08cdc63647f040117ecbd8 | [
"BSD-3-Clause"
] | 4 | 2019-01-03T12:08:52.000Z | 2021-12-02T05:21:13.000Z | wrappers/python/virgil_crypto_lib/foundation/kdf1.py | odidev/virgil-crypto-c | 3d5d5cb19fdcf81eab08cdc63647f040117ecbd8 | [
"BSD-3-Clause"
] | 8 | 2019-01-24T08:22:06.000Z | 2022-02-07T11:37:00.000Z | # Copyright (C) 2015-2021 Virgil Security, Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# (1) Redistributions of source code must retain the above copyright
# notice, this li... | 37.017857 | 117 | 0.7137 |
71f886304dcb6c6099a9de6e408e657ec12b3bde | 497 | py | Python | mysite/zoo/tests.py | leixiayang/django-python | 8faa84867af5645d3d3d8e67fe8020be4dc68551 | [
"Apache-2.0"
] | 54 | 2015-07-13T14:23:01.000Z | 2021-08-05T10:51:00.000Z | mysite/zoo/tests.py | leixiayang/django-python | 8faa84867af5645d3d3d8e67fe8020be4dc68551 | [
"Apache-2.0"
] | 32 | 2015-07-16T08:58:00.000Z | 2020-04-30T09:41:57.000Z | mysite/zoo/tests.py | leixiayang/django-python | 8faa84867af5645d3d3d8e67fe8020be4dc68551 | [
"Apache-2.0"
] | 31 | 2015-07-13T15:32:01.000Z | 2022-02-19T17:19:51.000Z | #!/usr/bin/env python
# encoding: utf-8
from django.test import TestCase
from zoo import models
| 18.407407 | 44 | 0.593561 |
71f8c70583f9e40977155faf528bc04d31d42d94 | 123 | py | Python | EX025.py | gjaosdij/PythonProject | ae27990efa93462b632f165d13c08c7fd93beb38 | [
"MIT"
] | null | null | null | EX025.py | gjaosdij/PythonProject | ae27990efa93462b632f165d13c08c7fd93beb38 | [
"MIT"
] | null | null | null | EX025.py | gjaosdij/PythonProject | ae27990efa93462b632f165d13c08c7fd93beb38 | [
"MIT"
] | null | null | null | print('Digite seu nome completo: ')
nome = input().strip().upper()
print('Seu nome tem "Silva"?')
print('SILVA' in nome)
| 17.571429 | 35 | 0.658537 |
71f9440eb1c326307f7552af69580f96b76f02f9 | 3,283 | py | Python | configs/_base_/datasets/stvqa_dataset.py | linxi1158/iMIX | af87a17275f02c94932bb2e29f132a84db812002 | [
"Apache-2.0"
] | 23 | 2021-06-26T08:45:19.000Z | 2022-03-02T02:13:33.000Z | configs/_base_/datasets/stvqa_dataset.py | XChuanLee/iMIX | 99898de97ef8b45462ca1d6bf2542e423a73d769 | [
"Apache-2.0"
] | null | null | null | configs/_base_/datasets/stvqa_dataset.py | XChuanLee/iMIX | 99898de97ef8b45462ca1d6bf2542e423a73d769 | [
"Apache-2.0"
] | 9 | 2021-06-10T02:36:20.000Z | 2021-11-09T02:18:16.000Z | dataset_type = 'STVQADATASET'
data_root = '/home/datasets/mix_data/iMIX/'
feature_path = 'data/datasets/stvqa/defaults/features/'
ocr_feature_path = 'data/datasets/stvqa/defaults/ocr_features/'
annotation_path = 'data/datasets/stvqa/defaults/annotations/'
vocab_path = 'data/datasets/stvqa/defaults/extras/vocabs/'
trai... | 36.88764 | 101 | 0.696924 |
71f98ce850b9a0d28247d4a6575715ee5f7a82c8 | 2,955 | py | Python | src/rpocore/migrations/0007_auto_20160927_1517.py | 2martens/rpo-website | 14990920722c537810aecd2b97f5af6bbdd1b5ec | [
"MIT"
] | null | null | null | src/rpocore/migrations/0007_auto_20160927_1517.py | 2martens/rpo-website | 14990920722c537810aecd2b97f5af6bbdd1b5ec | [
"MIT"
] | null | null | null | src/rpocore/migrations/0007_auto_20160927_1517.py | 2martens/rpo-website | 14990920722c537810aecd2b97f5af6bbdd1b5ec | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-27 13:17
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import mezzanine.core.fields
| 43.455882 | 186 | 0.626396 |
71fa3b7f37795303ef477432b9138d2cfeb1171c | 320 | py | Python | code/Line.py | manno-xx/FutureLearnRobotBuggy | d5f0172597ad88d6a8b883b0b16d425a76edfb0b | [
"MIT"
] | null | null | null | code/Line.py | manno-xx/FutureLearnRobotBuggy | d5f0172597ad88d6a8b883b0b16d425a76edfb0b | [
"MIT"
] | null | null | null | code/Line.py | manno-xx/FutureLearnRobotBuggy | d5f0172597ad88d6a8b883b0b16d425a76edfb0b | [
"MIT"
] | null | null | null | #LineSensor test
from gpiozero import LineSensor
from time import sleep
from signal import pause
sensor = LineSensor(14)
sensor.when_line = lineDetected
sensor.when_no_line = noLineDetected
pause()
sensor.close()
| 14.545455 | 36 | 0.759375 |
71fa640b3932ba3d1df289310da43d75dd4a2089 | 4,239 | py | Python | litex_boards/platforms/myminieye_runber.py | chmousset/litex-boards | c081177d77f37a4ea6cff150d42a69bd6f0abbc2 | [
"BSD-2-Clause"
] | null | null | null | litex_boards/platforms/myminieye_runber.py | chmousset/litex-boards | c081177d77f37a4ea6cff150d42a69bd6f0abbc2 | [
"BSD-2-Clause"
] | null | null | null | litex_boards/platforms/myminieye_runber.py | chmousset/litex-boards | c081177d77f37a4ea6cff150d42a69bd6f0abbc2 | [
"BSD-2-Clause"
] | null | null | null | #
# This file is part of LiteX-Boards.
#
# Copyright (c) 2021 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
# SPDX-License-Identifier: BSD-2-Clause
from migen import *
from litex.build.generic_platform import *
from litex.build.gowin.platform import GowinPlatform
from litex.build.openfpgaloader import ... | 36.543103 | 118 | 0.550366 |
71fafdbd17b589475cd452d3837ecd482b296f0c | 8,468 | py | Python | combo/search/discrete/policy.py | zhangkunliang/BayesOptimization | 6d78c9e9f96239b0dbb85650a0d878e9410158ec | [
"MIT"
] | 139 | 2016-02-18T02:31:04.000Z | 2022-02-18T10:38:06.000Z | combo/search/discrete/policy.py | zhangkunliang/BayesOptimization | 6d78c9e9f96239b0dbb85650a0d878e9410158ec | [
"MIT"
] | 8 | 2016-04-18T08:10:44.000Z | 2020-12-30T08:49:33.000Z | combo/search/discrete/policy.py | zhangkunliang/BayesOptimization | 6d78c9e9f96239b0dbb85650a0d878e9410158ec | [
"MIT"
] | 50 | 2016-05-21T01:17:23.000Z | 2022-02-18T01:27:41.000Z | import numpy as np
import copy
import combo.misc
import cPickle as pickle
from results import history
from .. import utility
from ...variable import variable
from ..call_simulator import call_simulator
from ... import predictor
from ...gp import predictor as gp_predictor
from ...blm import predictor as blm_predictor
im... | 32.694981 | 78 | 0.594473 |
71fafe5ef80b5403322b57c793f98a2f2f5a763c | 213 | py | Python | venv/lib/python3.9/site-packages/py2app/bootstrap/disable_linecache.py | dequeb/asmbattle | 27e8b209de5787836e288a2f2f9b7644ce07563e | [
"MIT"
] | 193 | 2020-01-15T09:34:20.000Z | 2022-03-18T19:14:16.000Z | .eggs/py2app-0.21-py3.7.egg/py2app/bootstrap/disable_linecache.py | mdanisurrahmanrony/Covid-Doctor | 1e0e854d01325c1a18dd52f33064aed4c21b8161 | [
"Apache-2.0"
] | 185 | 2020-01-15T08:38:27.000Z | 2022-03-27T17:29:29.000Z | .eggs/py2app-0.21-py3.7.egg/py2app/bootstrap/disable_linecache.py | mdanisurrahmanrony/Covid-Doctor | 1e0e854d01325c1a18dd52f33064aed4c21b8161 | [
"Apache-2.0"
] | 23 | 2020-01-24T14:47:18.000Z | 2022-02-22T17:19:47.000Z |
_disable_linecache()
| 17.75 | 46 | 0.704225 |
71fb4a0f65f1788e4523139873b94749e767304c | 693 | py | Python | source.py | s403o/tw_bot | fd26ebc86d4c7d1be1ae654f26f5ca74c2566a03 | [
"MIT"
] | null | null | null | source.py | s403o/tw_bot | fd26ebc86d4c7d1be1ae654f26f5ca74c2566a03 | [
"MIT"
] | null | null | null | source.py | s403o/tw_bot | fd26ebc86d4c7d1be1ae654f26f5ca74c2566a03 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup as bs
import os
#source
url = '' # the source you want the bot take images from
#down page
page = requests.get(url)
html = bs(page.text, 'html.parser')
#locate
image_loc = html.findAll('img')
#create folder for located imgs
if not os.path.exists('imgs'):
os.makedirs(... | 19.25 | 63 | 0.65368 |
71fc1181a50c5c3f0fee92d2187d798fa7535036 | 2,403 | py | Python | lib/appController.py | QIAOANGeo/BZB_ydzw | 8c11e9797cca31d1fab26be7eb0a71666cfac15f | [
"MIT"
] | 2 | 2019-12-06T14:49:34.000Z | 2021-06-10T15:57:59.000Z | lib/appController.py | QIAOANGeo/BZB_ydzw | 8c11e9797cca31d1fab26be7eb0a71666cfac15f | [
"MIT"
] | null | null | null | lib/appController.py | QIAOANGeo/BZB_ydzw | 8c11e9797cca31d1fab26be7eb0a71666cfac15f | [
"MIT"
] | null | null | null | '''
1appium
subproccess
1.1
1.2
2driver
'''
from lib.tools import Tool
import subprocess
from lib.path import SYSTEMPATH, ERRORPATH
import time
from appium import webdriver
import queue
# python
driver_queue = queue.Queue()
if __name__ == '__main__':
controller = Controller()
controller.start_se... | 30.417722 | 109 | 0.553891 |
71fcdf4c5cb6b34edec79a08f7d295031300d28a | 2,226 | py | Python | pondSizes.py | passionzhan/LeetCode | c4d33b64b9da15ca7a9b0d41e645d86a697694fe | [
"MIT"
] | 1 | 2019-08-29T01:12:47.000Z | 2019-08-29T01:12:47.000Z | pondSizes.py | passionzhan/LeetCode | c4d33b64b9da15ca7a9b0d41e645d86a697694fe | [
"MIT"
] | null | null | null | pondSizes.py | passionzhan/LeetCode | c4d33b64b9da15ca7a9b0d41e645d86a697694fe | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
'''
@project : LeetCode
@File : pondSizes.py
@Contact : 9824373@qq.com
@Desc :
land0
[
[0,2,1,0],
[0,1,0,1],
[1,1,0,1],
[0,1,0,1]
]
[1,2,4]
0 < len(land) <= 1000
0 < len(land[i]) <= 1000
LeetCode
https://le... | 25.011236 | 124 | 0.444295 |
71fdcd33231ded5dc2f9d6d67f26d46eb50eca3d | 5,990 | py | Python | geolucidate/functions.py | kurtraschke/geolucidate | 827195a90d972fa5efce5a03bdbe53d8395d94ba | [
"MIT"
] | 3 | 2015-09-17T01:01:53.000Z | 2019-09-10T14:30:43.000Z | geolucidate/functions.py | kurtraschke/geolucidate | 827195a90d972fa5efce5a03bdbe53d8395d94ba | [
"MIT"
] | null | null | null | geolucidate/functions.py | kurtraschke/geolucidate | 827195a90d972fa5efce5a03bdbe53d8395d94ba | [
"MIT"
] | 5 | 2018-09-11T21:54:36.000Z | 2020-06-25T19:05:45.000Z | # -*- coding: utf-8 -*-
from decimal import Decimal, setcontext, ExtendedContext
from geolucidate.links.google import google_maps_link
from geolucidate.links.tools import MapLink
from geolucidate.parser import parser_re
setcontext(ExtendedContext)
def _cleanup(parts):
"""
Normalize up the parts matched by :... | 35.235294 | 184 | 0.602337 |
71fe29113947026b758491d3c116f1982f10cf36 | 715 | py | Python | setup.py | rluzuriaga/pokedex | e5c18c410994d5fb589bc3dceaba71f85268edfb | [
"MIT"
] | 30 | 2020-08-15T01:16:17.000Z | 2022-03-12T17:51:17.000Z | setup.py | rluzuriaga/pokedex | e5c18c410994d5fb589bc3dceaba71f85268edfb | [
"MIT"
] | 86 | 2020-08-12T17:20:55.000Z | 2022-03-28T18:19:28.000Z | setup.py | rluzuriaga/pokedex | e5c18c410994d5fb589bc3dceaba71f85268edfb | [
"MIT"
] | 38 | 2020-08-18T00:09:15.000Z | 2022-03-01T07:47:41.000Z | from setuptools import setup, find_packages
setup(
name='Pokedex',
version='0.1',
zip_safe=False,
packages=find_packages(),
package_data={
'pokedex': ['data/csv/*.csv']
},
install_requires=[
'SQLAlchemy>=1.0,<2.0',
'whoosh>=2.5,<2.7',
'markdown==2.4.1',
... | 23.833333 | 54 | 0.524476 |
71feb582dac7753ba6da1c6d33e4df9c56ad4249 | 17,900 | py | Python | lingvo/tasks/asr/encoder.py | j-luo93/lingvo | 7398974078391362f0c1b027164a8f33f88cf86b | [
"Apache-2.0"
] | 4 | 2019-01-08T02:59:38.000Z | 2022-02-18T11:31:37.000Z | lingvo/tasks/asr/encoder.py | j-luo93/lingvo | 7398974078391362f0c1b027164a8f33f88cf86b | [
"Apache-2.0"
] | null | null | null | lingvo/tasks/asr/encoder.py | j-luo93/lingvo | 7398974078391362f0c1b027164a8f33f88cf86b | [
"Apache-2.0"
] | 1 | 2019-07-02T14:09:42.000Z | 2019-07-02T14:09:42.000Z | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 42.517815 | 80 | 0.655587 |
71feffbb5e24e7f37afedbf05e8ccd4bc8d2a4ea | 1,898 | py | Python | pos_neg_graph/graph_ratio.py | Yudabin/Review_Project | b924199d6845defeb4cd243a99426070c014d8d8 | [
"MIT"
] | null | null | null | pos_neg_graph/graph_ratio.py | Yudabin/Review_Project | b924199d6845defeb4cd243a99426070c014d8d8 | [
"MIT"
] | null | null | null | pos_neg_graph/graph_ratio.py | Yudabin/Review_Project | b924199d6845defeb4cd243a99426070c014d8d8 | [
"MIT"
] | 1 | 2020-11-10T00:54:45.000Z | 2020-11-10T00:54:45.000Z | import matplotlib.font_manager as fm
import matplotlib.pyplot as plt
import numpy as np
font_location = './wordcloud_file/malgun.ttf' # For Windows
font_name = fm.FontProperties(fname=font_location).get_name()
plt.rc('font', family=font_name) | 42.177778 | 105 | 0.553741 |
71ff26bb500f7231ddf77573e218582db161237c | 143 | py | Python | blog/views.py | kbilak/City-portal | f567764f3c4ae0287a178acf77f060dde0424f26 | [
"MIT"
] | null | null | null | blog/views.py | kbilak/City-portal | f567764f3c4ae0287a178acf77f060dde0424f26 | [
"MIT"
] | null | null | null | blog/views.py | kbilak/City-portal | f567764f3c4ae0287a178acf77f060dde0424f26 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic import TemplateView | 28.6 | 45 | 0.797203 |
71ffb4e7bdba22327963714071779d2e8b20d391 | 3,727 | py | Python | my_area/views.py | Vincent-Juma/area_master | 3ea1dd1039053fb4de6326deb967383d09d7145b | [
"MIT"
] | 1 | 2021-05-28T14:16:54.000Z | 2021-05-28T14:16:54.000Z | my_area/views.py | Vincent-Juma/area_master | 3ea1dd1039053fb4de6326deb967383d09d7145b | [
"MIT"
] | null | null | null | my_area/views.py | Vincent-Juma/area_master | 3ea1dd1039053fb4de6326deb967383d09d7145b | [
"MIT"
] | 1 | 2021-04-13T09:14:07.000Z | 2021-04-13T09:14:07.000Z | from django.shortcuts import render
from .forms import *
from django.shortcuts import redirect,get_object_or_404
from django.contrib.auth.decorators import login_required
from . models import *
from django.views import generic
def myloc_details(request,myloc_id):
activities=Activity.objects.filter(myloc=myloc_... | 37.646465 | 96 | 0.676952 |
9c013815ab64fbbe61aec8c1d395c39f802c887c | 361 | py | Python | 2020/day_01/__main__.py | d02d33pak/Advent-Of-Code | 765b0302c256ad61864095a537a3f6379901b1c2 | [
"MIT"
] | null | null | null | 2020/day_01/__main__.py | d02d33pak/Advent-Of-Code | 765b0302c256ad61864095a537a3f6379901b1c2 | [
"MIT"
] | null | null | null | 2020/day_01/__main__.py | d02d33pak/Advent-Of-Code | 765b0302c256ad61864095a537a3f6379901b1c2 | [
"MIT"
] | null | null | null | """
Day 1 Main Module
"""
from day01 import parse_input, part1, part2
if __name__ == "__main__":
# trying out the new walrus[:=] oprtr in python
if (part := int(input("Enter Part: "))) == 1:
print(part1(parse_input("input.txt")))
elif part == 2:
print(part2(parse_input("input.txt")))
e... | 24.066667 | 51 | 0.595568 |
9c01b072850e72696bc89430b3763e9313e105ec | 4,406 | py | Python | quiz_app/settings.py | ignasgri/Django_Quiz | c98969d4181350eaaf8883f3930d0e800c240a44 | [
"MIT"
] | null | null | null | quiz_app/settings.py | ignasgri/Django_Quiz | c98969d4181350eaaf8883f3930d0e800c240a44 | [
"MIT"
] | 6 | 2020-06-05T19:26:57.000Z | 2022-03-11T23:33:08.000Z | quiz_app/settings.py | ignasgri/Django_Quiz | c98969d4181350eaaf8883f3930d0e800c240a44 | [
"MIT"
] | null | null | null | """
Django settings for quiz_app project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
SITE_ID = 1
... | 27.886076 | 91 | 0.70631 |
9c01e95549f9ef77973f439bfde72aea99322f8e | 20,840 | py | Python | scripts/data/topple_dataset.py | davrempe/predicting-physical-dynamics | b0abb385a7ac491e25d1df0b9a9a943621fc2d37 | [
"MIT"
] | 16 | 2020-02-29T06:44:16.000Z | 2022-02-20T13:05:12.000Z | scripts/data/topple_dataset.py | davrempe/predicting-physical-dynamics | b0abb385a7ac491e25d1df0b9a9a943621fc2d37 | [
"MIT"
] | 6 | 2020-02-13T08:09:28.000Z | 2022-02-09T23:35:55.000Z | scripts/data/topple_dataset.py | davrempe/predicting-physical-dynamics | b0abb385a7ac491e25d1df0b9a9a943621fc2d37 | [
"MIT"
] | 4 | 2020-04-22T09:46:55.000Z | 2021-04-15T06:17:48.000Z | import numpy as np
import pickle
from os.path import exists, realpath
import sys
import math
from topple_data_loader import ToppleData, ToppleDataLoader
import transforms3d
if __name__=='__main__':
# norm_info = ToppleNormalizationInfo()
# norm_info.load_from('../../data/sim/normalization_info/cube_train.pkl'... | 45.010799 | 149 | 0.613964 |
9c0252cbabe1a0b566b1ac4670f0fdedec520c7a | 370 | py | Python | Part1/AverageAccuracy.py | efkandurakli/Graduation-Project1 | fd2cba89929da2cef49ec67214b54c310b57ce01 | [
"MIT"
] | 1 | 2019-12-18T08:16:55.000Z | 2019-12-18T08:16:55.000Z | Part1/AverageAccuracy.py | efkandurakli/Graduation-Project1 | fd2cba89929da2cef49ec67214b54c310b57ce01 | [
"MIT"
] | null | null | null | Part1/AverageAccuracy.py | efkandurakli/Graduation-Project1 | fd2cba89929da2cef49ec67214b54c310b57ce01 | [
"MIT"
] | null | null | null | import numpy as np
from operator import truediv
| 37 | 63 | 0.751351 |
9c029add7c4d9a1a7902d4f882039de120a387b3 | 13,193 | py | Python | scripts/sct_apply_transfo.py | YangHee-Min/spinalcordtoolbox | 38ca15aa99b03ca99b7885ddc98adf2755adc43d | [
"MIT"
] | null | null | null | scripts/sct_apply_transfo.py | YangHee-Min/spinalcordtoolbox | 38ca15aa99b03ca99b7885ddc98adf2755adc43d | [
"MIT"
] | null | null | null | scripts/sct_apply_transfo.py | YangHee-Min/spinalcordtoolbox | 38ca15aa99b03ca99b7885ddc98adf2755adc43d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#########################################################################################
#
# Apply transformations. This function is a wrapper for sct_WarpImageMultiTransform
#
# ---------------------------------------------------------------------------------------
# Copyright (c) 2014 Polytechn... | 42.973941 | 175 | 0.560373 |
9c04726d3c874dda1b944aacaee1f8285db82b6a | 3,132 | py | Python | tests/plugins/test_plugin_base.py | vurankar/mongo-connector | 202aa28743855643fddd77d3e66bf1a640df3ed6 | [
"Apache-2.0"
] | 1 | 2019-08-24T21:06:00.000Z | 2019-08-24T21:06:00.000Z | tests/plugins/test_plugin_base.py | vurankar/mongo-connector | 202aa28743855643fddd77d3e66bf1a640df3ed6 | [
"Apache-2.0"
] | 13 | 2017-08-07T04:36:25.000Z | 2021-02-08T17:37:27.000Z | tests/plugins/test_plugin_base.py | vurankar/mongo-connector | 202aa28743855643fddd77d3e66bf1a640df3ed6 | [
"Apache-2.0"
] | 4 | 2018-10-22T17:30:46.000Z | 2020-07-07T21:24:48.000Z | # Copyright 2013-2014 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 27 | 74 | 0.623244 |
9c048e3e8bdc9b4b95cc9e0528a68aa1fd3efcf5 | 10,365 | py | Python | address/models.py | PerchLive/django-address | edab73847ba95d4f7a71993bcd55ea6bf300693e | [
"BSD-3-Clause"
] | null | null | null | address/models.py | PerchLive/django-address | edab73847ba95d4f7a71993bcd55ea6bf300693e | [
"BSD-3-Clause"
] | null | null | null | address/models.py | PerchLive/django-address | edab73847ba95d4f7a71993bcd55ea6bf300693e | [
"BSD-3-Clause"
] | null | null | null | import logging
import sys
from django.core.exceptions import ValidationError
from django.db import models
from django.db.models.fields.related import ForeignObject
from django.utils.encoding import python_2_unicode_compatible
try:
from django.db.models.fields.related_descriptors import ForwardManyToOneDescriptor
... | 31.409091 | 117 | 0.625663 |
9c0520151db9426f768e41a165d1e59bc2354107 | 198 | py | Python | src/eavatar.ava/pod/mods/tasks/__init__.py | eavatar/ava | 4f09c5417b7187dd919b7edabb8c516d8efc0696 | [
"BSD-3-Clause"
] | null | null | null | src/eavatar.ava/pod/mods/tasks/__init__.py | eavatar/ava | 4f09c5417b7187dd919b7edabb8c516d8efc0696 | [
"BSD-3-Clause"
] | null | null | null | src/eavatar.ava/pod/mods/tasks/__init__.py | eavatar/ava | 4f09c5417b7187dd919b7edabb8c516d8efc0696 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Modules for exposing functions that can be run as tasks.
"""
from __future__ import (absolute_import, division,
print_function, unicode_literals)
| 28.285714 | 57 | 0.651515 |
9c07713f7b2c917072be6181205756050fc2c5cb | 7,715 | py | Python | addons/hr_payroll_account/models/hr_payroll_account.py | jjiege/odoo | fd5b8ad387c1881f349d125cbd56433f4d49398f | [
"MIT"
] | null | null | null | addons/hr_payroll_account/models/hr_payroll_account.py | jjiege/odoo | fd5b8ad387c1881f349d125cbd56433f4d49398f | [
"MIT"
] | null | null | null | addons/hr_payroll_account/models/hr_payroll_account.py | jjiege/odoo | fd5b8ad387c1881f349d125cbd56433f4d49398f | [
"MIT"
] | null | null | null | #-*- coding:utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, _
from odoo.exceptions import UserError
from odoo.tools import float_compare, float_is_zero
| 46.757576 | 142 | 0.583279 |
9c08054f6ca4be429f3f9506fd1f8ea55ac7ad8b | 3,048 | py | Python | ml_datasets/utils.py | abkoesdw/ml-datasets | c8c7b85ba8ed9c0ea233b4092d499d5022952011 | [
"MIT"
] | 1 | 2020-07-05T04:58:07.000Z | 2020-07-05T04:58:07.000Z | ml_datasets/utils.py | abkoesdw/ml-datasets | c8c7b85ba8ed9c0ea233b4092d499d5022952011 | [
"MIT"
] | null | null | null | ml_datasets/utils.py | abkoesdw/ml-datasets | c8c7b85ba8ed9c0ea233b4092d499d5022952011 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import sys
import numpy as np
from matplotlib.colors import LinearSegmentedColormap
from matplotlib.colors import BoundaryNorm
| 27.709091 | 86 | 0.597113 |
9c09326eb5f4c01f6725f6f04b0ab3e2c2184c2f | 4,794 | py | Python | Simulator/simulator.py | MasterRadule/DefenceFirst | d3c3a652357ac433213c38fa6134780e286f6cf2 | [
"MIT"
] | null | null | null | Simulator/simulator.py | MasterRadule/DefenceFirst | d3c3a652357ac433213c38fa6134780e286f6cf2 | [
"MIT"
] | null | null | null | Simulator/simulator.py | MasterRadule/DefenceFirst | d3c3a652357ac433213c38fa6134780e286f6cf2 | [
"MIT"
] | 2 | 2020-08-02T10:47:17.000Z | 2021-08-31T06:00:44.000Z | import logging
import os
import random
from abc import ABC, abstractmethod
from random import randint
from time import sleep, strftime
HOSTNAME = ['defence-first.rs', 'defence-first.de', 'defence-first.ru']
HOSTIP = ['78.218.236.218', '87.236.11.212', '54.147.165.86']
SOURCEIP = ['163.189.141.53', '204.164.10.7', '213... | 32.612245 | 118 | 0.569462 |
9c097a6d565de2831c6dc5b3639c640259afd08c | 50 | py | Python | bayes_race/pp/__init__.py | DaniMarts/bayesrace | 3d0d2b26dac2e33ad7e38513304cfb259abe351c | [
"MIT"
] | 23 | 2020-03-27T03:28:04.000Z | 2022-02-24T11:21:18.000Z | bayes_race/pp/__init__.py | DaniMarts/bayesrace | 3d0d2b26dac2e33ad7e38513304cfb259abe351c | [
"MIT"
] | 1 | 2021-07-08T22:02:15.000Z | 2021-07-08T22:02:15.000Z | bayes_race/pp/__init__.py | DaniMarts/bayesrace | 3d0d2b26dac2e33ad7e38513304cfb259abe351c | [
"MIT"
] | 17 | 2020-10-27T06:09:34.000Z | 2022-03-23T05:28:23.000Z | from bayes_race.pp.pure_pursuit import purePursuit | 50 | 50 | 0.9 |
9c0a0b0b086b2b7d8551997a7e4a8ba952ff7a5b | 793 | py | Python | pysteam/evaluator/vector_space_error_eval.py | utiasASRL/pysteam | c0c8809ee2a5e1dab5ce7f9e5ff9de91138ce68b | [
"BSD-3-Clause"
] | 5 | 2021-10-23T00:35:20.000Z | 2022-03-22T02:32:43.000Z | pysteam/evaluator/vector_space_error_eval.py | utiasASRL/pysteam | c0c8809ee2a5e1dab5ce7f9e5ff9de91138ce68b | [
"BSD-3-Clause"
] | null | null | null | pysteam/evaluator/vector_space_error_eval.py | utiasASRL/pysteam | c0c8809ee2a5e1dab5ce7f9e5ff9de91138ce68b | [
"BSD-3-Clause"
] | 1 | 2022-02-04T21:49:48.000Z | 2022-02-04T21:49:48.000Z | from typing import Optional
import numpy as np
from . import Evaluator
from ..state import VectorSpaceStateVar
| 24.78125 | 79 | 0.711223 |
9c0a5c02779cee26231b6b416177aadae209d132 | 83 | py | Python | torch_geometric/nn/unpool/__init__.py | mwussow/pytorch_geometric | 01c68f9b58c94d9efd1f6e39b9c85177aae521bb | [
"MIT"
] | 13 | 2019-11-07T02:57:41.000Z | 2021-12-28T08:19:56.000Z | torch_geometric/nn/unpool/__init__.py | mwussow/pytorch_geometric | 01c68f9b58c94d9efd1f6e39b9c85177aae521bb | [
"MIT"
] | 3 | 2019-10-30T20:20:27.000Z | 2022-03-12T22:56:11.000Z | torch_geometric/nn/unpool/__init__.py | mwussow/pytorch_geometric | 01c68f9b58c94d9efd1f6e39b9c85177aae521bb | [
"MIT"
] | 3 | 2020-10-19T02:53:20.000Z | 2022-01-31T04:31:02.000Z | from .knn_interpolate import knn_interpolate
__all__ = [
'knn_interpolate',
]
| 13.833333 | 44 | 0.746988 |
9c0adaf30cf08d06f29b5570721ed08bc9df2c6a | 937 | py | Python | bc4py/bip32/utils.py | namuyan/bc4py | 6484d356096261d0d57e9e1f5ffeae1f9a9865f3 | [
"MIT"
] | 12 | 2018-09-19T14:02:09.000Z | 2020-01-27T16:20:14.000Z | bc4py/bip32/utils.py | namuyan/bc4py | 6484d356096261d0d57e9e1f5ffeae1f9a9865f3 | [
"MIT"
] | 1 | 2019-09-09T23:58:47.000Z | 2019-09-16T09:33:20.000Z | bc4py/bip32/utils.py | namuyan/bc4py | 6484d356096261d0d57e9e1f5ffeae1f9a9865f3 | [
"MIT"
] | 6 | 2018-11-13T17:20:14.000Z | 2020-02-15T11:46:52.000Z | from bc4py_extension import PyAddress
import hashlib
def is_address(ck: PyAddress, hrp, ver):
"""check bech32 format and version"""
try:
if ck.hrp != hrp:
return False
if ck.version != ver:
return False
except ValueError:
return False
return True
def g... | 24.025641 | 79 | 0.662753 |
9c0b22579bc28f35e8719b18a2963cb1c1518847 | 2,687 | py | Python | cubi_tk/snappy/kickoff.py | LaborBerlin/cubi-tk | 4aa5306c547c38eb41d5623ff6e4bace828f85b1 | [
"MIT"
] | null | null | null | cubi_tk/snappy/kickoff.py | LaborBerlin/cubi-tk | 4aa5306c547c38eb41d5623ff6e4bace828f85b1 | [
"MIT"
] | null | null | null | cubi_tk/snappy/kickoff.py | LaborBerlin/cubi-tk | 4aa5306c547c38eb41d5623ff6e4bace828f85b1 | [
"MIT"
] | null | null | null | """``cubi-tk snappy kickoff``: kickoff SNAPPY pipeline."""
import argparse
import os
import subprocess
import typing
from logzero import logger
from toposort import toposort
from . import common
from cubi_tk.exceptions import ParseOutputException
def setup_argparse(parser: argparse.ArgumentParser) -> None:
"... | 34.448718 | 97 | 0.633048 |
9c0b572f391a67c770410e50b8bf0631101d5372 | 4,152 | py | Python | tests/test_autotuner.py | RajatRasal/devito | 162abb6b318e77eaa4e8f719047327c45782056f | [
"MIT"
] | null | null | null | tests/test_autotuner.py | RajatRasal/devito | 162abb6b318e77eaa4e8f719047327c45782056f | [
"MIT"
] | null | null | null | tests/test_autotuner.py | RajatRasal/devito | 162abb6b318e77eaa4e8f719047327c45782056f | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from functools import reduce
from operator import mul
try:
from StringIO import StringIO
except ImportError:
# Python3 compatibility
from io import StringIO
import pytest
from conftest import skipif_yask
import numpy as np
from devito import Grid, Function, TimeFun... | 35.793103 | 87 | 0.67317 |
9c0c673d58dcba5d4585b62a8e7fbc1916ed2edb | 2,683 | py | Python | projects/CharGrid/data/bizcard2coco.py | timctho/detectron2-chargrid | 547479c88ad7d1de2348377706167a84d024a622 | [
"Apache-2.0"
] | 3 | 2020-03-15T18:33:21.000Z | 2020-03-28T18:06:45.000Z | projects/CharGrid/data/bizcard2coco.py | timctho/detectron2-chargrid | 547479c88ad7d1de2348377706167a84d024a622 | [
"Apache-2.0"
] | 2 | 2021-09-08T01:46:39.000Z | 2022-01-13T02:22:56.000Z | projects/CharGrid/data/bizcard2coco.py | timctho/detectron2-chargrid | 547479c88ad7d1de2348377706167a84d024a622 | [
"Apache-2.0"
] | null | null | null | from data.data_reader import BIZCARD_LABEL_MAP, BizcardDataParser
import argparse
from pathlib import Path
import os
import json
import cv2
import numpy as np
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--img_dir', type=str)
parser.add_argument('--gt_dir', type=str)... | 31.197674 | 120 | 0.566157 |
9c0cd3c1e4e41a88f41a644df51b7c36f341d915 | 643 | py | Python | deckz/cli/run.py | m09/deckz | 0f97ef2a43c2c714ac18173a4fe3266cccba31e2 | [
"Apache-2.0"
] | null | null | null | deckz/cli/run.py | m09/deckz | 0f97ef2a43c2c714ac18173a4fe3266cccba31e2 | [
"Apache-2.0"
] | 41 | 2020-04-06T13:49:18.000Z | 2020-12-24T11:14:47.000Z | deckz/cli/run.py | m09/deckz | 0f97ef2a43c2c714ac18173a4fe3266cccba31e2 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from typing import List, Optional
from typer import Argument
from deckz.cli import app
from deckz.paths import Paths
from deckz.running import run as running_run
| 22.964286 | 50 | 0.676516 |
9c0e837a9fbf8aa155047aa8574f5db7dc5ea5ad | 248 | py | Python | postgresqleu/confreg/templatetags/miscutil.py | dlangille/pgeu-system | 3f1910010063bab118e94a55ed757b23f1d36bf5 | [
"MIT"
] | null | null | null | postgresqleu/confreg/templatetags/miscutil.py | dlangille/pgeu-system | 3f1910010063bab118e94a55ed757b23f1d36bf5 | [
"MIT"
] | null | null | null | postgresqleu/confreg/templatetags/miscutil.py | dlangille/pgeu-system | 3f1910010063bab118e94a55ed757b23f1d36bf5 | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
| 17.714286 | 36 | 0.754032 |
9c0e950fb4a4ebdf55176f8dd2da092d38504b70 | 2,171 | py | Python | chat.py | rchampa/chat-server | 34b5897e90b580754ad95b36bf7f23ac9baf3175 | [
"MIT"
] | null | null | null | chat.py | rchampa/chat-server | 34b5897e90b580754ad95b36bf7f23ac9baf3175 | [
"MIT"
] | null | null | null | chat.py | rchampa/chat-server | 34b5897e90b580754ad95b36bf7f23ac9baf3175 | [
"MIT"
] | null | null | null | import asyncio
import contextvars
import aioredis
import uvloop
from aioredis import Redis
from fastapi import FastAPI
from starlette.middleware.base import BaseHTTPMiddleware
from starlette.staticfiles import StaticFiles
from RLog import rprint
from routers import apirest, websockets
REDIS_HOST = 'redis'
REDIS_PORT =... | 31.463768 | 119 | 0.720405 |
9c0eb1c40d85566bde4854bf69d4592341ad2835 | 1,009 | py | Python | cli.py | abel-bernabeu/facecompressor | 9322f4e3d3f2787dc9dec2fad6b3f1995d052077 | [
"BSD-3-Clause"
] | 2 | 2020-10-20T09:35:56.000Z | 2021-04-27T11:27:47.000Z | cli.py | abel-bernabeu/facecompressor | 9322f4e3d3f2787dc9dec2fad6b3f1995d052077 | [
"BSD-3-Clause"
] | null | null | null | cli.py | abel-bernabeu/facecompressor | 9322f4e3d3f2787dc9dec2fad6b3f1995d052077 | [
"BSD-3-Clause"
] | null | null | null | import argparse
import autoencoder
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(dest="action")
encode_parser = subparsers.add_parser('encode')
addTrainablesArg(encode_parser)
encode_parser.add_argument('--input', dest='input', help='Input image file name', required=True)
addExchangeArg(enc... | 31.53125 | 102 | 0.769078 |
9c0f0c2835497cfafc1c97305175f1c3c60456a9 | 6,995 | py | Python | lib/bridgedb/email/request.py | liudonghua123/bridgedb | 94dd10673f9e6650e8a00e162f348e64f7a1ecab | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bridgedb/email/request.py | liudonghua123/bridgedb | 94dd10673f9e6650e8a00e162f348e64f7a1ecab | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bridgedb/email/request.py | liudonghua123/bridgedb | 94dd10673f9e6650e8a00e162f348e64f7a1ecab | [
"BSD-3-Clause-Clear"
] | null | null | null | # -*- coding: utf-8; test-case-name: bridgedb.test.test_email_request; -*-
#_____________________________________________________________________________
#
# This file is part of BridgeDB, a Tor bridge distribution system.
#
# :authors: Nick Mathewson <nickm@torproject.org>
# Isis Lovecruft <isis@torproject.o... | 37.406417 | 79 | 0.666905 |
9c0f818ceccab853bd37e280f6cc450a37f8fe46 | 267 | bzl | Python | test/com/facebook/buck/skylark/parser/testdata/rule_with_wrong_types/attr_value_type/subdir/foo.bzl | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 8,027 | 2015-01-02T05:31:44.000Z | 2022-03-31T07:08:09.000Z | test/com/facebook/buck/skylark/parser/testdata/rule_with_wrong_types/attr_value_type/subdir/foo.bzl | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 2,355 | 2015-01-01T15:30:53.000Z | 2022-03-30T20:21:16.000Z | test/com/facebook/buck/skylark/parser/testdata/rule_with_wrong_types/attr_value_type/subdir/foo.bzl | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 1,280 | 2015-01-09T03:29:04.000Z | 2022-03-30T15:14:14.000Z | """ Module docstring """
def _impl(_ctx):
""" Function docstring """
pass
some_rule = rule(
attrs = {
"attr1": attr.int(
default = 2,
mandatory = False,
),
"attr2": 5,
},
implementation = _impl,
)
| 15.705882 | 30 | 0.468165 |
9c100a9a9e5db785c7efc1726ba5b0b98ff396a7 | 2,469 | py | Python | src/printReport.py | griimx/Summer-2016 | 08bf0a68a0e12ee81318409f68448adaf75983fe | [
"MIT"
] | null | null | null | src/printReport.py | griimx/Summer-2016 | 08bf0a68a0e12ee81318409f68448adaf75983fe | [
"MIT"
] | null | null | null | src/printReport.py | griimx/Summer-2016 | 08bf0a68a0e12ee81318409f68448adaf75983fe | [
"MIT"
] | null | null | null | from __future__ import print_function
from connection import *
from jinja2 import Environment, FileSystemLoader
import webbrowser
# self.entry_text(self.entry_name, result['firstName']+" "+result['lastName'] )
# self.entry_text(self.entry_EmpID, result['empID'])
# self.entry_text(self.entry_EmpName, res... | 37.409091 | 86 | 0.654111 |
9c104172c7871ed658426c42c033c011c356f2f0 | 2,250 | py | Python | packages/pyre/schemata/Container.py | avalentino/pyre | 7e1f0287eb7eba1c6d1ef385e5160079283ac363 | [
"BSD-3-Clause"
] | 25 | 2018-04-23T01:45:39.000Z | 2021-12-10T06:01:23.000Z | packages/pyre/schemata/Container.py | avalentino/pyre | 7e1f0287eb7eba1c6d1ef385e5160079283ac363 | [
"BSD-3-Clause"
] | 53 | 2018-05-31T04:55:00.000Z | 2021-10-07T21:41:32.000Z | packages/pyre/schemata/Container.py | avalentino/pyre | 7e1f0287eb7eba1c6d1ef385e5160079283ac363 | [
"BSD-3-Clause"
] | 12 | 2018-04-23T22:50:40.000Z | 2022-02-20T17:27:23.000Z | # -*- coding: utf-8 -*-
#
# michael a.g. avzis
# orthologue
# (c) 1998-2021 all rights reserved
#
# superclass
from .Schema import Schema
# declaration
# meta-methods
def __init__(self, default=object, schema=Schema(), **kwds):
# adjust the default; carefully, so we don't all end up using the sam... | 28.481013 | 95 | 0.597333 |
9c108597606416225c709da3b768b53eee32eb1f | 98,110 | py | Python | electronicparsers/exciting/parser.py | nomad-coe/electronic-parsers | defb47be6ac22b2e48d4fb9204c85390a3c2f328 | [
"Apache-2.0"
] | null | null | null | electronicparsers/exciting/parser.py | nomad-coe/electronic-parsers | defb47be6ac22b2e48d4fb9204c85390a3c2f328 | [
"Apache-2.0"
] | null | null | null | electronicparsers/exciting/parser.py | nomad-coe/electronic-parsers | defb47be6ac22b2e48d4fb9204c85390a3c2f328 | [
"Apache-2.0"
] | null | null | null | #
# Copyright The NOMAD Authors.
#
# This file is part of NOMAD.
# See https://nomad-lab.eu for further info.
#
# 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/lic... | 42.768091 | 147 | 0.593742 |
9c10d305e4f704dfba7fd0b5306c365d4671b49e | 41,012 | py | Python | services/storage/client-sdk/python/simcore_service_storage_sdk/api/users_api.py | KZzizzle/osparc-simcore | 981bc8d193f3f5d507e3225f857e0308c339e163 | [
"MIT"
] | null | null | null | services/storage/client-sdk/python/simcore_service_storage_sdk/api/users_api.py | KZzizzle/osparc-simcore | 981bc8d193f3f5d507e3225f857e0308c339e163 | [
"MIT"
] | 17 | 2020-10-15T16:06:05.000Z | 2022-03-21T18:48:21.000Z | services/storage/client-sdk/python/simcore_service_storage_sdk/api/users_api.py | Surfict/osparc-simcore | 1e0b89574ec17ecb089674f9e5daa83d624430c8 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
simcore-service-storage API
API definition for simcore-service-storage service # noqa: E501
OpenAPI spec version: 0.1.0
Contact: support@simcore.io
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 a... | 41.552178 | 127 | 0.624768 |
9c10fde5b8d2158f51d8de9c32ce3619970e9b19 | 304 | py | Python | reservation_management/migrations/0021_delete_greenpass.py | mattiolato98/reservation-ninja | 0e50b218dd9d90f134868bade2ec2934283c12b5 | [
"MIT"
] | 1 | 2022-03-10T11:34:14.000Z | 2022-03-10T11:34:14.000Z | reservation_management/migrations/0021_delete_greenpass.py | mattiolato98/reservation-ninja | 0e50b218dd9d90f134868bade2ec2934283c12b5 | [
"MIT"
] | null | null | null | reservation_management/migrations/0021_delete_greenpass.py | mattiolato98/reservation-ninja | 0e50b218dd9d90f134868bade2ec2934283c12b5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-22 14:23
from django.db import migrations
| 17.882353 | 53 | 0.615132 |
9c120e73dce5cc77395baa84f359e42ae9ad94b0 | 3,878 | py | Python | demos/iaf_pop_demo.py | bionet/ted.python | 1698a7f792db23123003ae4e2d39b4c18f25f347 | [
"BSD-3-Clause"
] | 4 | 2015-12-07T14:02:36.000Z | 2018-11-27T22:07:38.000Z | demos/iaf_pop_demo.py | bionet/ted.python | 1698a7f792db23123003ae4e2d39b4c18f25f347 | [
"BSD-3-Clause"
] | null | null | null | demos/iaf_pop_demo.py | bionet/ted.python | 1698a7f792db23123003ae4e2d39b4c18f25f347 | [
"BSD-3-Clause"
] | 2 | 2016-10-06T06:01:05.000Z | 2021-01-22T18:41:18.000Z | #!/usr/bin/env python
"""
Demos of encoding and decoding algorithms using populations of
IAF neurons.
"""
# Copyright (c) 2009-2015, Lev Givon
# All rights reserved.
# Distributed under the terms of the BSD license:
# http://www.opensource.org/licenses/bsd-license
import sys
import numpy as np
# Set matplotlib back... | 27.309859 | 83 | 0.65936 |
9c12bc71f759e734d137bff21cddbea3b1e6369f | 90 | py | Python | regtests/calling/function_expression.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 319 | 2015-01-02T11:34:16.000Z | 2022-03-25T00:43:33.000Z | regtests/calling/function_expression.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 10 | 2015-02-03T02:33:09.000Z | 2021-11-09T21:41:00.000Z | regtests/calling/function_expression.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 61 | 2015-01-02T12:01:56.000Z | 2021-12-08T07:16:16.000Z | """func expr"""
F = function( x,y ):
return x+y
def main():
TestError( F(1,2) == 3 )
| 10 | 25 | 0.522222 |
9c13630030f6d62b875010ab48a5f1a305094328 | 1,266 | py | Python | nadmin/plugins/sortable.py | A425/django-xadmin-1.8 | 9ab06192311b22ec654778935ce3e3c5ffd39a00 | [
"MIT"
] | 1 | 2015-10-10T08:04:26.000Z | 2015-10-10T08:04:26.000Z | nadmin/plugins/sortable.py | A425/django-xadmin-1.8 | 9ab06192311b22ec654778935ce3e3c5ffd39a00 | [
"MIT"
] | 1 | 2016-03-25T01:41:36.000Z | 2016-03-25T01:41:36.000Z | nadmin/plugins/sortable.py | A425/django-xadmin-1.8 | 9ab06192311b22ec654778935ce3e3c5ffd39a00 | [
"MIT"
] | null | null | null | #coding:utf-8
from nadmin.sites import site
from nadmin.views import BaseAdminPlugin, ListAdminView
SORTBY_VAR = '_sort_by'
site.register_plugin(SortablePlugin, ListAdminView)
| 34.216216 | 107 | 0.611374 |
9c13b63f316f27bf2445b7a4c746d0ccd26b4b27 | 2,644 | py | Python | batch-tmp.py | texastribune/donations | 45a75e528564b5fd502319ed7d512ca91bda7f37 | [
"MIT"
] | 6 | 2019-11-16T23:23:11.000Z | 2022-02-13T00:53:45.000Z | batch-tmp.py | texastribune/donations | 45a75e528564b5fd502319ed7d512ca91bda7f37 | [
"MIT"
] | 519 | 2018-11-20T22:22:16.000Z | 2022-03-31T11:11:32.000Z | batch-tmp.py | texastribune/donations | 45a75e528564b5fd502319ed7d512ca91bda7f37 | [
"MIT"
] | 6 | 2019-02-13T05:25:56.000Z | 2020-08-19T14:41:14.000Z | import logging
from config import ACCOUNTING_MAIL_RECIPIENT, LOG_LEVEL, REDIS_URL, TIMEZONE
from datetime import datetime, timedelta
from pytz import timezone
import celery
import redis
from charges import amount_to_charge, charge, ChargeException
from npsp import Opportunity
from util import send_email
zone = timez... | 22.793103 | 92 | 0.642209 |
9c1453b1473bf17ef5373079c50724a0067a38a2 | 3,311 | py | Python | rotkehlchen/tests/integration/test_blockchain.py | coblee/rotki | d675f5c2d0df5176337b7b10038524ee74923482 | [
"BSD-3-Clause"
] | null | null | null | rotkehlchen/tests/integration/test_blockchain.py | coblee/rotki | d675f5c2d0df5176337b7b10038524ee74923482 | [
"BSD-3-Clause"
] | 3 | 2021-01-28T21:30:46.000Z | 2022-03-25T19:17:00.000Z | rotkehlchen/tests/integration/test_blockchain.py | coblee/rotki | d675f5c2d0df5176337b7b10038524ee74923482 | [
"BSD-3-Clause"
] | null | null | null | import operator
import os
from unittest.mock import patch
import pytest
import requests
from rotkehlchen.chain.ethereum.manager import NodeName
from rotkehlchen.constants.assets import A_BTC
from rotkehlchen.tests.utils.blockchain import mock_etherscan_query
from rotkehlchen.typing import SupportedBlockchain
| 36.788889 | 119 | 0.735125 |
9c1460432a4091cc49024232356f533f6d3b650a | 366 | py | Python | __init__.py | LaptopBiologist/ReferenceAnalyzer | 109f1f58ee2b0173e7285156091ba2b11459ff85 | [
"MIT"
] | null | null | null | __init__.py | LaptopBiologist/ReferenceAnalyzer | 109f1f58ee2b0173e7285156091ba2b11459ff85 | [
"MIT"
] | null | null | null | __init__.py | LaptopBiologist/ReferenceAnalyzer | 109f1f58ee2b0173e7285156091ba2b11459ff85 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: I am
#
# Created: 02/11/2017
# Copyright: (c) I am 2017
# Licence: <your licence>
#-------------------------------------------------------------------------------
if __name__ ==... | 21.529412 | 80 | 0.300546 |
9c16016ffd51a0a5e8e9512b1d5a109ac8fa3665 | 2,405 | py | Python | app/__init__.py | jimmybutton/moviedb | 61028ac4db7f58a671ab3a1c2afd3bfb53372773 | [
"MIT"
] | null | null | null | app/__init__.py | jimmybutton/moviedb | 61028ac4db7f58a671ab3a1c2afd3bfb53372773 | [
"MIT"
] | null | null | null | app/__init__.py | jimmybutton/moviedb | 61028ac4db7f58a671ab3a1c2afd3bfb53372773 | [
"MIT"
] | null | null | null | from flask import Flask
from config import Config
from sqlalchemy import MetaData
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from flask_moment import Moment
from flask_misaka import Misaka
from flask_bootstrap import Bootstrap
import os
import logging
... | 28.630952 | 85 | 0.690644 |
9c161b198ce5d788684f6856cc66f4bdfc78c217 | 7,252 | py | Python | optimize.py | AranKomat/Sequential-Alpha-Zero | 21f78dc95e70b68b5fd18eb33d1ea2d5b5a853d4 | [
"Apache-2.0"
] | 7 | 2021-04-01T09:52:02.000Z | 2021-06-09T11:57:55.000Z | optimize.py | AranKomat/Alpha-Transformer | 21f78dc95e70b68b5fd18eb33d1ea2d5b5a853d4 | [
"Apache-2.0"
] | null | null | null | optimize.py | AranKomat/Alpha-Transformer | 21f78dc95e70b68b5fd18eb33d1ea2d5b5a853d4 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import random
from time import time, sleep
import h5py
import torch
import torch.nn as nn
import torch.optim as optimizer
import glob
import os
#from scipy.stats import rankdata
from lstm import Model, initialize
from Optim import ScheduledOptim
# import _pickle as cPickle
# np.set_printoptions(t... | 37.968586 | 119 | 0.535714 |
9c16fad5499d60d29e8503364a688806e916a7fc | 2,031 | py | Python | src/bin_expr.py | Command-Master/MCCC | a49440bfd8542002aee35d41bee093dc8b51d781 | [
"MIT"
] | 6 | 2021-01-15T03:49:01.000Z | 2021-11-02T10:43:22.000Z | src/bin_expr.py | Command-Master/MCCC | a49440bfd8542002aee35d41bee093dc8b51d781 | [
"MIT"
] | null | null | null | src/bin_expr.py | Command-Master/MCCC | a49440bfd8542002aee35d41bee093dc8b51d781 | [
"MIT"
] | null | null | null | from c_int import Int
from casting import cast
from globals_consts import NAMESPACE
from temps import used_temps, get_temp, get_temp_func
| 39.823529 | 109 | 0.557361 |
9c17411640986aa0b93f332bd22849aaf0fdf53b | 3,080 | py | Python | tools/mkcodelet.py | bobmittmann/yard-ice | 3b27f94279d806d3a222de60adccf934994ed168 | [
"MIT"
] | 2 | 2019-04-08T19:00:23.000Z | 2019-11-30T23:42:58.000Z | tools/mkcodelet.py | bobmittmann/yard-ice | 3b27f94279d806d3a222de60adccf934994ed168 | [
"MIT"
] | null | null | null | tools/mkcodelet.py | bobmittmann/yard-ice | 3b27f94279d806d3a222de60adccf934994ed168 | [
"MIT"
] | 2 | 2016-02-12T14:12:41.000Z | 2019-09-18T14:50:29.000Z | #!/usr/bin/python
from struct import *
from getopt import *
import sys
import os
import re
if __name__ == "__main__":
main()
| 21.538462 | 80 | 0.566558 |
9c179ba2d16aa2d479920de1be09d5ac3e265384 | 1,186 | py | Python | utest/x3270/test_screenshot.py | MichaelSeeburger/Robot-Framework-Mainframe-3270-Library | 76b589d58c55a39f96c027a8ae28c41fa37ed445 | [
"MIT"
] | 3 | 2018-10-02T14:32:06.000Z | 2018-10-02T14:33:32.000Z | utest/x3270/test_screenshot.py | MichaelSeeburger/Robot-Framework-Mainframe-3270-Library | 76b589d58c55a39f96c027a8ae28c41fa37ed445 | [
"MIT"
] | null | null | null | utest/x3270/test_screenshot.py | MichaelSeeburger/Robot-Framework-Mainframe-3270-Library | 76b589d58c55a39f96c027a8ae28c41fa37ed445 | [
"MIT"
] | null | null | null | import os
from pytest_mock import MockerFixture
from robot.api import logger
from Mainframe3270.x3270 import x3270
| 28.238095 | 88 | 0.725126 |
9c17a59c22e1b7744bde1f37891a9b3e7d5581e6 | 35,752 | py | Python | splat/photometry.py | brackham/splat | 5ee0da82f19017e900ee83af94609dbe9f8a0ea4 | [
"MIT"
] | null | null | null | splat/photometry.py | brackham/splat | 5ee0da82f19017e900ee83af94609dbe9f8a0ea4 | [
"MIT"
] | null | null | null | splat/photometry.py | brackham/splat | 5ee0da82f19017e900ee83af94609dbe9f8a0ea4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function, division
"""
.. note::
These are the spectrophotometry functions for SPLAT
"""
# imports - internal
import copy
import os
# imports - external
import numpy
from astropy import units as u # standard units
from astropy import constants... | 39.857302 | 197 | 0.623881 |
9c17deaa4c71e1a4a4c819492abf40341d7c1817 | 629 | py | Python | helpers/time_utils.py | mandalorian-101/badger-system | 2b0ee9bd77a2cc6f875b9b984ae4dfe713bbc55c | [
"MIT"
] | null | null | null | helpers/time_utils.py | mandalorian-101/badger-system | 2b0ee9bd77a2cc6f875b9b984ae4dfe713bbc55c | [
"MIT"
] | null | null | null | helpers/time_utils.py | mandalorian-101/badger-system | 2b0ee9bd77a2cc6f875b9b984ae4dfe713bbc55c | [
"MIT"
] | null | null | null | import datetime
ONE_MINUTE = 60
ONE_HOUR = 3600
ONE_DAY = 24 * ONE_HOUR
ONE_YEAR = 1 * 365 * ONE_DAY
| 18.5 | 87 | 0.702703 |
9c18aa829131bc05a668cd4d7a72da450336ed4f | 4,766 | py | Python | example_scripts/profile_validation/plot_validation_gridded_data.py | British-Oceanographic-Data-Centre/NEMO-ENTRUST | 41ed278e56428404ab8ec41d74a9a3a761e308ae | [
"MIT"
] | null | null | null | example_scripts/profile_validation/plot_validation_gridded_data.py | British-Oceanographic-Data-Centre/NEMO-ENTRUST | 41ed278e56428404ab8ec41d74a9a3a761e308ae | [
"MIT"
] | null | null | null | example_scripts/profile_validation/plot_validation_gridded_data.py | British-Oceanographic-Data-Centre/NEMO-ENTRUST | 41ed278e56428404ab8ec41d74a9a3a761e308ae | [
"MIT"
] | null | null | null | """
Plot up surface or bottom (or any fixed level) errors from a profile object
with no z_dim (vertical dimension). Provide an array of netcdf files and
mess with the options to get a figure you like.
You can define how many rows and columns the plot will have. This script will
plot the provided list of netcdf datase... | 31.562914 | 107 | 0.712547 |
9c191035667faa5283a1d949656c67ee58df9705 | 500 | py | Python | feature-engineering/samples/statistical_features.py | jeury301/text-classifier | d86f658ef3368e4a3f6fd74328fa862e2881ac3b | [
"MIT"
] | null | null | null | feature-engineering/samples/statistical_features.py | jeury301/text-classifier | d86f658ef3368e4a3f6fd74328fa862e2881ac3b | [
"MIT"
] | null | null | null | feature-engineering/samples/statistical_features.py | jeury301/text-classifier | d86f658ef3368e4a3f6fd74328fa862e2881ac3b | [
"MIT"
] | null | null | null | from sklearn.feature_extraction.text import TfidfVectorizer
def compute_tf_idf(corpus):
"""Computing term frequency (tf) - inverse document frequency (idf).
:param corpus: List of documents.
:returns: tf-idf of corpus.
"""
return TfidfVectorizer().fit_transform(corpus)
if __name__ == '__main__':
... | 26.315789 | 72 | 0.682 |
9c194afa3b23b40f44a756d8271ecc2b2b439fa6 | 18,197 | py | Python | Gds/src/fprime_gds/executables/tcpserver.py | hunterpaulson/fprime | 70560897b56dc3037dc966c99751b708b1cc8a05 | [
"Apache-2.0"
] | null | null | null | Gds/src/fprime_gds/executables/tcpserver.py | hunterpaulson/fprime | 70560897b56dc3037dc966c99751b708b1cc8a05 | [
"Apache-2.0"
] | null | null | null | Gds/src/fprime_gds/executables/tcpserver.py | hunterpaulson/fprime | 70560897b56dc3037dc966c99751b708b1cc8a05 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from __future__ import print_function
import socket
import threading
try:
import socketserver
except ImportError:
import SocketServer as socketserver
import time
import os
import signal
import sys
import struct
import errno
from fprime.constants import DATA_ENCODING
from optparse import... | 32.093474 | 129 | 0.555531 |
9c1abecce40e385182d4e13996f277a150f1a3f4 | 453 | py | Python | btb_manager_telegram/__init__.py | haivle/BTB-manager-telegram | c0f71c5a98a3d128ad03578930932737dc580ed1 | [
"MIT"
] | 3 | 2021-09-24T10:49:23.000Z | 2021-11-18T13:38:17.000Z | btb_manager_telegram/__init__.py | haivle/BTB-manager-telegram | c0f71c5a98a3d128ad03578930932737dc580ed1 | [
"MIT"
] | 1 | 2021-09-01T14:40:35.000Z | 2021-09-01T14:40:35.000Z | btb_manager_telegram/__init__.py | haivle/BTB-manager-telegram | c0f71c5a98a3d128ad03578930932737dc580ed1 | [
"MIT"
] | 2 | 2021-11-03T17:57:07.000Z | 2022-02-01T11:55:54.000Z | import logging
import sched
import time
(
MENU,
EDIT_COIN_LIST,
EDIT_USER_CONFIG,
DELETE_DB,
UPDATE_TG,
UPDATE_BTB,
PANIC_BUTTON,
CUSTOM_SCRIPT,
) = range(8)
BOUGHT, BUYING, SOLD, SELLING = range(4)
logging.basicConfig(
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"... | 18.875 | 85 | 0.697572 |
9c1b5e47507c017924313ed766676fc6ec9af4a7 | 316 | py | Python | tests/test_data/lazy_mod.py | brettcannon/modutil | a34794ffee9b6217a9ced41baddab09b4f034cbb | [
"BSD-3-Clause"
] | 17 | 2018-04-21T01:15:52.000Z | 2021-01-16T23:58:51.000Z | tests/test_data/lazy_mod.py | brettcannon/modutil | a34794ffee9b6217a9ced41baddab09b4f034cbb | [
"BSD-3-Clause"
] | 9 | 2018-04-20T23:29:07.000Z | 2019-07-25T17:21:29.000Z | tests/test_data/lazy_mod.py | brettcannon/modutil | a34794ffee9b6217a9ced41baddab09b4f034cbb | [
"BSD-3-Clause"
] | 3 | 2020-02-27T18:10:01.000Z | 2021-01-05T07:22:19.000Z | import modutil
mod, __getattr__ = modutil.lazy_import(__name__,
['tests.test_data.A', '.B', '.C as still_C'])
| 17.555556 | 84 | 0.607595 |
9c1b6d5a187986e544d8284aa99d48f0a66a5c3a | 10,390 | py | Python | test.py | xiaohuaibaoguigui/EllSeg | ff56b255f8e650856aec9af23792e105897eba5c | [
"MIT"
] | 1 | 2021-05-26T05:45:42.000Z | 2021-05-26T05:45:42.000Z | test.py | xiaohuaibaoguigui/EllSeg | ff56b255f8e650856aec9af23792e105897eba5c | [
"MIT"
] | null | null | null | test.py | xiaohuaibaoguigui/EllSeg | ff56b255f8e650856aec9af23792e105897eba5c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import tqdm
import torch
import pickle
import resource
import numpy as np
import matplotlib.pyplot as plt
from args import parse_args
from modelSummary import model_dict
from pytorchtools import load_from_file
from torch.utils.data import DataLoader
... | 42.933884 | 109 | 0.487777 |
9c1c20ef193d7e2a2b62ae78d7b0e1c3d0bfeffb | 21,072 | py | Python | tests/test_util.py | meskio/tuf | 09c3ceb993d40f7339bbbaf4eae617f95b972708 | [
"MIT"
] | 1 | 2015-02-16T22:53:00.000Z | 2015-02-16T22:53:00.000Z | tests/test_util.py | meskio/tuf | 09c3ceb993d40f7339bbbaf4eae617f95b972708 | [
"MIT"
] | null | null | null | tests/test_util.py | meskio/tuf | 09c3ceb993d40f7339bbbaf4eae617f95b972708 | [
"MIT"
] | 1 | 2019-09-12T02:32:54.000Z | 2019-09-12T02:32:54.000Z | #!/usr/bin/env python
"""
<Program Name>
test_util.py
<Author>
Konstantin Andrianov.
<Started>
February 1, 2013.
<Copyright>
See LICENSE for licensing information.
<Purpose>
Unit test for 'util.py'
"""
# Help with Python 3 compatibility, where the print statement is a function, an
# implicit relative im... | 36.968421 | 96 | 0.689683 |
9c1cb579481d40405b2d799f908616a3f2aa3b49 | 2,769 | py | Python | background/forms.py | BFlameSwift/AirplaneReservationSystem | bbabb0e258c72eb50fcbbf7ade437e38a39e6f02 | [
"MIT"
] | 3 | 2021-06-19T09:40:13.000Z | 2021-06-19T17:09:54.000Z | background/forms.py | BFlameSwift/AirplaneReservationSystem | bbabb0e258c72eb50fcbbf7ade437e38a39e6f02 | [
"MIT"
] | null | null | null | background/forms.py | BFlameSwift/AirplaneReservationSystem | bbabb0e258c72eb50fcbbf7ade437e38a39e6f02 | [
"MIT"
] | 1 | 2021-12-05T14:51:51.000Z | 2021-12-05T14:51:51.000Z |
from django import forms | 60.195652 | 129 | 0.679307 |
9c1e4d053b5156945879fda6f1eb646b81a07f71 | 8,282 | py | Python | cams/propressing/data_rotate.py | boliqq07/cam3d | 8b66681166a8ce0ef3304309385c1b899f1d2bb9 | [
"BSD-3-Clause"
] | 1 | 2020-11-23T08:20:38.000Z | 2020-11-23T08:20:38.000Z | cams/propressing/data_rotate.py | boliqq07/cam3d | 8b66681166a8ce0ef3304309385c1b899f1d2bb9 | [
"BSD-3-Clause"
] | null | null | null | cams/propressing/data_rotate.py | boliqq07/cam3d | 8b66681166a8ce0ef3304309385c1b899f1d2bb9 | [
"BSD-3-Clause"
] | null | null | null | from functools import lru_cache
from math import cos, sin
import scipy
from scipy.ndimage import affine_transform
import numpy as np
def rotation_axis_by_angle(data, angles=(90, 90, 90), times=(2, 2, 2)):
"""
Get true data matrix(Cartesian coordinates) from relative data matrix (Non-Cartesian coordinates).... | 32.225681 | 108 | 0.584762 |
9c1f7437cc31d152ad0f3a65db16fb0d7effff6e | 596 | py | Python | playground/conversions/parser/lola2dot.py | flange/esp | 78925925daf876e4936ca7af046b4f884e8a4233 | [
"MIT"
] | null | null | null | playground/conversions/parser/lola2dot.py | flange/esp | 78925925daf876e4936ca7af046b4f884e8a4233 | [
"MIT"
] | null | null | null | playground/conversions/parser/lola2dot.py | flange/esp | 78925925daf876e4936ca7af046b4f884e8a4233 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
#lolafile = open("ex-small.graph", "r")
source = 0
target = 0
lowlink = 0
trans = "bla"
print("digraph {")
with open(sys.argv[1]) as lolafile:
for line in lolafile:
if len(line) == 1:
continue
linelist = line.split(" ")
if "STATE" in linelist:
... | 17.028571 | 98 | 0.540268 |
9c1f830b50d1855accf6647797b5fa3fed845091 | 3,098 | py | Python | engkor/views.py | takeshixx/dprkdict | 7f436eb99a855ae8037b2219fc97944f5c000f68 | [
"MIT"
] | 10 | 2017-09-25T09:30:02.000Z | 2021-12-10T13:38:55.000Z | engkor/views.py | takeshixx/dprkdict | 7f436eb99a855ae8037b2219fc97944f5c000f68 | [
"MIT"
] | null | null | null | engkor/views.py | takeshixx/dprkdict | 7f436eb99a855ae8037b2219fc97944f5c000f68 | [
"MIT"
] | null | null | null | import re
import urllib.parse
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse, JsonResponse
from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
from .models import Definition
RE_HANGUL = re.compile(r'[(]*[\uAC00-\uD7AF]+[\uAC00-\uD7AF (),;]*', re.IGNOR... | 35.204545 | 83 | 0.548741 |
9c2000bb0df619412795ffbe35ee177921174a1f | 1,867 | py | Python | appdaemon/apps/toggle_switch/toggle_switch.py | Mithras/ha | d37f8673eed27a85f76c97ee3e924d2ddc033ee5 | [
"MIT"
] | 3 | 2019-10-27T06:10:26.000Z | 2020-07-21T01:27:11.000Z | appdaemon/apps/toggle_switch/toggle_switch.py | Mithras/ha | d37f8673eed27a85f76c97ee3e924d2ddc033ee5 | [
"MIT"
] | null | null | null | appdaemon/apps/toggle_switch/toggle_switch.py | Mithras/ha | d37f8673eed27a85f76c97ee3e924d2ddc033ee5 | [
"MIT"
] | null | null | null | import globals
| 38.895833 | 121 | 0.619175 |
9c20a7fb2067e672343540ce82ccf23d80253a6c | 336 | py | Python | templates_deepdive_app_bagofwords/udf/dd_extract_features.py | charlieccarey/rdoc | 2e857f29e128f893706d042d583eec698c0bc56a | [
"CC-BY-4.0"
] | null | null | null | templates_deepdive_app_bagofwords/udf/dd_extract_features.py | charlieccarey/rdoc | 2e857f29e128f893706d042d583eec698c0bc56a | [
"CC-BY-4.0"
] | 5 | 2016-05-07T04:42:06.000Z | 2018-04-19T01:08:38.000Z | templates_deepdive_app_bagofwords/udf/dd_extract_features.py | charlieccarey/rdoc | 2e857f29e128f893706d042d583eec698c0bc56a | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
'''
1\taaaa~^~bbbb~^~cccc
2\tdddd~^~EEEE~^~ffff
'''
import sys
ARR_DELIM = '~^~'
for row in sys.stdin:
row = row.strip()
sent_id, lemmas = row.split('\t')
lemmas = lemmas.split(ARR_DELIM)
for lemma in lemmas:
print('{}\t{}'.format(s... | 17.684211 | 46 | 0.625 |
9c2147f6458e9854c24fb91bf25b8791fe2188ff | 528 | py | Python | src/supplier/templates/supplier/urls.py | vandana0608/Pharmacy-Managament | f99bdec11c24027a432858daa19247a21cecc092 | [
"bzip2-1.0.6"
] | null | null | null | src/supplier/templates/supplier/urls.py | vandana0608/Pharmacy-Managament | f99bdec11c24027a432858daa19247a21cecc092 | [
"bzip2-1.0.6"
] | null | null | null | src/supplier/templates/supplier/urls.py | vandana0608/Pharmacy-Managament | f99bdec11c24027a432858daa19247a21cecc092 | [
"bzip2-1.0.6"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.SupplierList.as_view(), name='supplier_list'),
path('view/<int:pk>', views.SupplierView.as_view(), name='supplier_view'),
path('new', views.SupplierCreate.as_view(), name='supplier_new'),
path('view/<int:pk>', views.Suppli... | 44 | 84 | 0.69697 |
9c22036370e0f940a80ab34156b825acd98d5b1a | 205 | py | Python | web_scraper/extract/common.py | rarc41/web_scraper_pro | f297c785617c6b1617ced8f29ad11afec31f2968 | [
"MIT"
] | null | null | null | web_scraper/extract/common.py | rarc41/web_scraper_pro | f297c785617c6b1617ced8f29ad11afec31f2968 | [
"MIT"
] | null | null | null | web_scraper/extract/common.py | rarc41/web_scraper_pro | f297c785617c6b1617ced8f29ad11afec31f2968 | [
"MIT"
] | null | null | null | import yaml
__config=None
| 15.769231 | 48 | 0.585366 |
9c2218dead1aba52c67ce0344013c8ad1bd43a62 | 109 | py | Python | engine/config/constant.py | infiniteloop98/lazies-cmd | 46ac58f9b31942c6fa63b7ffa8d409e3a6b4df26 | [
"MIT"
] | 1 | 2022-02-19T08:39:17.000Z | 2022-02-19T08:39:17.000Z | engine/config/constant.py | infiniteloop98/lazies-cmd | 46ac58f9b31942c6fa63b7ffa8d409e3a6b4df26 | [
"MIT"
] | null | null | null | engine/config/constant.py | infiniteloop98/lazies-cmd | 46ac58f9b31942c6fa63b7ffa8d409e3a6b4df26 | [
"MIT"
] | null | null | null | APP_PROFILE_DIRECTORY_NAME = 'lazies-cmd'
DOSKEY_FILE_NAME = 'doskey.bat'
AUTO_RUN_REGISTRY_NAME = 'AutoRun'
| 27.25 | 41 | 0.816514 |
9c231907fc5c90a542b71605f474b278cba43d2d | 777 | py | Python | sequence/get_seqs_from_list.py | fanglu01/cDNA_Cupcake | 60f56dc291661a2b84e40b64d469fba658889c34 | [
"BSD-3-Clause-Clear"
] | 1 | 2018-09-21T06:20:50.000Z | 2018-09-21T06:20:50.000Z | sequence/get_seqs_from_list.py | fanglu01/cDNA_Cupcake | 60f56dc291661a2b84e40b64d469fba658889c34 | [
"BSD-3-Clause-Clear"
] | null | null | null | sequence/get_seqs_from_list.py | fanglu01/cDNA_Cupcake | 60f56dc291661a2b84e40b64d469fba658889c34 | [
"BSD-3-Clause-Clear"
] | null | null | null | #!/usr/bin/env python
import os, sys
from Bio import SeqIO
if __name__ == "__main__":
from argparse import ArgumentParser
parser = ArgumentParser("Get sequences from a fasta file from a list")
parser.add_argument("fasta_filename", help="Input fasta filename to extract sequences from")
parser.add_argume... | 37 | 96 | 0.693694 |
9c232026bb42fe3062506f2b3ba59f07439cb07f | 7,482 | py | Python | ppos_dex_data.py | cusma/pposdex | 31b834ffcb1a43958ccc57b444c7b9337a5623c9 | [
"MIT"
] | 10 | 2021-01-06T20:09:17.000Z | 2022-01-07T09:38:02.000Z | ppos_dex_data.py | cusma/pposdex | 31b834ffcb1a43958ccc57b444c7b9337a5623c9 | [
"MIT"
] | null | null | null | ppos_dex_data.py | cusma/pposdex | 31b834ffcb1a43958ccc57b444c7b9337a5623c9 | [
"MIT"
] | 1 | 2021-07-17T09:47:18.000Z | 2021-07-17T09:47:18.000Z |
import time
import json
import base64
import msgpack
from schema import Schema, And, Optional
from datetime import datetime
from algosdk import mnemonic
from algosdk.account import address_from_private_key
from algosdk.error import *
from algosdk.future.transaction import PaymentTxn
from inequality_indexes import *
fr... | 36.320388 | 79 | 0.625234 |
9c2374c54ba5c88122db3264039ec597c5b837e3 | 1,530 | py | Python | src/test/python/programmingtheiot/part01/unit/system/SystemMemUtilTaskTest.py | Zhengrui-Liu/FireAlarmingSysCDA | 26db6375a21ee9bdccba3d137e30d2e63ad6395c | [
"MIT"
] | null | null | null | src/test/python/programmingtheiot/part01/unit/system/SystemMemUtilTaskTest.py | Zhengrui-Liu/FireAlarmingSysCDA | 26db6375a21ee9bdccba3d137e30d2e63ad6395c | [
"MIT"
] | null | null | null | src/test/python/programmingtheiot/part01/unit/system/SystemMemUtilTaskTest.py | Zhengrui-Liu/FireAlarmingSysCDA | 26db6375a21ee9bdccba3d137e30d2e63ad6395c | [
"MIT"
] | null | null | null | #####
#
# This class is part of the Programming the Internet of Things
# project, and is available via the MIT License, which can be
# found in the LICENSE file at the top level of this repository.
#
# Copyright (c) 2020 by Andrew D. King
#
import logging
import unittest
from programmingtheiot.cda.system.SystemMem... | 26.842105 | 105 | 0.739869 |