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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d338d1cde2b451ce153dc7246f3b2ecbf270831f | 1,788 | py | Python | delivery/views.py | wesky93/shipping_system | ac3d5d5998e20b9008c90cb972f6bdfc5d3c43b0 | [
"MIT"
] | null | null | null | delivery/views.py | wesky93/shipping_system | ac3d5d5998e20b9008c90cb972f6bdfc5d3c43b0 | [
"MIT"
] | null | null | null | delivery/views.py | wesky93/shipping_system | ac3d5d5998e20b9008c90cb972f6bdfc5d3c43b0 | [
"MIT"
] | null | null | null | # Create your views here.
from datetime import datetime
from drf_yasg import openapi
from drf_yasg.utils import swagger_auto_schema
from rest_framework import status, viewsets
from rest_framework.decorators import action
from rest_framework.response import Response
from delivery.serializer import TaskSerializer
from ... | 33.735849 | 91 | 0.690157 |
d33a5e53c3e35f6d10e35e310588ea74362676d9 | 1,485 | py | Python | giftshop/giftshop/management/serializers.py | mvbattista/django-shop-demo | 3f6cdbeb627d16ca45c7f2304b32c410f16c8b4a | [
"BSD-3-Clause"
] | null | null | null | giftshop/giftshop/management/serializers.py | mvbattista/django-shop-demo | 3f6cdbeb627d16ca45c7f2304b32c410f16c8b4a | [
"BSD-3-Clause"
] | null | null | null | giftshop/giftshop/management/serializers.py | mvbattista/django-shop-demo | 3f6cdbeb627d16ca45c7f2304b32c410f16c8b4a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
These serializers are used exclusively to import the file ``workdir/fixtures/products-meta.json``.
They are not intended for general purpose and can be deleted thereafter.
"""
from __future__ import unicode_literals
from filer.models.imagemodels import Image
from rest_framework import serial... | 39.078947 | 98 | 0.760269 |
d33d11247d061e7ccfc35cffc890e5eb82902094 | 12,708 | py | Python | tests/test_dataset_roll.py | Ouranosinc/clisops | d78c127e07503877ae87c40e3548146fb06258ff | [
"BSD-3-Clause"
] | 18 | 2020-05-19T21:22:37.000Z | 2022-02-04T08:10:21.000Z | tests/test_dataset_roll.py | Ouranosinc/clisops | d78c127e07503877ae87c40e3548146fb06258ff | [
"BSD-3-Clause"
] | 166 | 2020-04-22T11:04:57.000Z | 2022-03-31T11:14:21.000Z | tests/test_dataset_roll.py | Ouranosinc/clisops | d78c127e07503877ae87c40e3548146fb06258ff | [
"BSD-3-Clause"
] | 6 | 2020-04-02T14:30:21.000Z | 2021-12-04T03:51:12.000Z | """ Test the different methods of transforming the longitude coordinates after rolling"""
import numpy as np
# calculate the offset in the same way as in dataset_utils
| 34.721311 | 101 | 0.633695 |
d340c2f9f33daa88e8949aa4fa874217c0b4853c | 365 | py | Python | mmdet/datasets/my_dataset.py | jingwoo4710/mmdetection-icevision | da82741b29fdd1eb77b4e7483ff2a515d43d1760 | [
"Apache-2.0"
] | null | null | null | mmdet/datasets/my_dataset.py | jingwoo4710/mmdetection-icevision | da82741b29fdd1eb77b4e7483ff2a515d43d1760 | [
"Apache-2.0"
] | null | null | null | mmdet/datasets/my_dataset.py | jingwoo4710/mmdetection-icevision | da82741b29fdd1eb77b4e7483ff2a515d43d1760 | [
"Apache-2.0"
] | null | null | null | from .coco import CocoDataset
from .registry import DATASETS
| 33.181818 | 89 | 0.693151 |
d341d1b5c222b98c304207eceab77df2f46ba797 | 52 | py | Python | word2vec/models/__init__.py | dimipauls/word2vec-playground | 228b9f8a37a785a8538c994dc3d0bef4dffacf2b | [
"MIT"
] | 1 | 2019-04-27T19:40:28.000Z | 2019-04-27T19:40:28.000Z | word2vec/models/__init__.py | dimipauls/word2vec-playground | 228b9f8a37a785a8538c994dc3d0bef4dffacf2b | [
"MIT"
] | null | null | null | word2vec/models/__init__.py | dimipauls/word2vec-playground | 228b9f8a37a785a8538c994dc3d0bef4dffacf2b | [
"MIT"
] | null | null | null | from word2vec.models.skip_gram import SkipGramModel
| 26 | 51 | 0.884615 |
d34286269400aa25ffc4c5c20ffc4d7826caf90e | 7,659 | py | Python | mqtt_pi0_client/pi0_main.py | hengying/mqtt_at_home | ed1cc5dd0a57cc46e57ec5edeb48ae1d019ebae5 | [
"BSD-3-Clause"
] | null | null | null | mqtt_pi0_client/pi0_main.py | hengying/mqtt_at_home | ed1cc5dd0a57cc46e57ec5edeb48ae1d019ebae5 | [
"BSD-3-Clause"
] | null | null | null | mqtt_pi0_client/pi0_main.py | hengying/mqtt_at_home | ed1cc5dd0a57cc46e57ec5edeb48ae1d019ebae5 | [
"BSD-3-Clause"
] | null | null | null | import os
import time
from queue import Queue
from PIL import Image, ImageDraw, ImageFont
from button_enum import ButtonType
from event import *
from config import Config
ROW_HEIGHT = 16
try:
app = App()
app.run()
except IOError as e:
print(e)
except KeyboardInterrupt:
print("ctrl + c:")
exit()
| 33.445415 | 141 | 0.592375 |
d3443a482a767fc4c1af1d31c45a7e7fe38149c7 | 15,895 | py | Python | test_bank/borrowing/tests/test_views.py | Ursidours/django-tech-test | a96e1d73c9221458ca68b999d817881863a60584 | [
"BSD-3-Clause"
] | 1 | 2021-11-13T01:30:30.000Z | 2021-11-13T01:30:30.000Z | test_bank/borrowing/tests/test_views.py | arnaudblois/django-tech-test | a96e1d73c9221458ca68b999d817881863a60584 | [
"BSD-3-Clause"
] | null | null | null | test_bank/borrowing/tests/test_views.py | arnaudblois/django-tech-test | a96e1d73c9221458ca68b999d817881863a60584 | [
"BSD-3-Clause"
] | null | null | null | from django.test import RequestFactory
from test_plus.test import TestCase
from django.test.client import Client
from django.core.urlresolvers import reverse
from test_bank.users.tests.factories import UserFactory
from .factories import BorrowerProfileFactory, BusinessFactory, LoanFactory
from decimal import Decimal
... | 33.533755 | 106 | 0.612394 |
d3484c8e71b0aac92d6811446f538aa49bf4b1e6 | 1,295 | py | Python | lib/Sh.py | ldimaggi/acceptance-testing | abdb317b28dbb36b01d33da9479270b0073ba5be | [
"Apache-2.0"
] | null | null | null | lib/Sh.py | ldimaggi/acceptance-testing | abdb317b28dbb36b01d33da9479270b0073ba5be | [
"Apache-2.0"
] | 9 | 2020-05-28T10:14:40.000Z | 2021-01-12T14:43:05.000Z | lib/Sh.py | ldimaggi/acceptance-testing | abdb317b28dbb36b01d33da9479270b0073ba5be | [
"Apache-2.0"
] | 1 | 2020-04-30T10:21:16.000Z | 2020-04-30T10:21:16.000Z | #
# Copyright The Helm Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 28.152174 | 74 | 0.683398 |
d348ebf257f01cb7e7e5f086b73340fc0a6871a3 | 164 | py | Python | stringfox/__init__.py | machinelearningdeveloper/stringfox | b48c158406fc158704da6e65ee4b55a09192fece | [
"MIT"
] | null | null | null | stringfox/__init__.py | machinelearningdeveloper/stringfox | b48c158406fc158704da6e65ee4b55a09192fece | [
"MIT"
] | null | null | null | stringfox/__init__.py | machinelearningdeveloper/stringfox | b48c158406fc158704da6e65ee4b55a09192fece | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for String Fox."""
__author__ = """Tom Lynch"""
__email__ = 'tom@machinelearningdeveloper.com'
__version__ = '0.1.0'
| 20.5 | 46 | 0.658537 |
d34bf9dadda6e3b8a530d372c58b2f396d11b505 | 1,634 | py | Python | util/canvas_api_extension.py | Person314159/cs221bot | ac1c768c08105d094d830b1a7cefae3492b2f76e | [
"Unlicense"
] | 33 | 2020-10-03T05:33:19.000Z | 2022-03-26T13:03:51.000Z | util/canvas_api_extension.py | Person314159/cs221bot | ac1c768c08105d094d830b1a7cefae3492b2f76e | [
"Unlicense"
] | 2 | 2020-10-21T04:22:13.000Z | 2020-10-23T01:21:42.000Z | util/canvas_api_extension.py | Person314159/cs221bot | ac1c768c08105d094d830b1a7cefae3492b2f76e | [
"Unlicense"
] | 6 | 2020-10-08T03:07:49.000Z | 2021-02-14T04:40:50.000Z | from canvasapi.course import Course
from canvasapi.requester import Requester
from canvasapi.util import combine_kwargs, get_institution_url
def get_course_stream(course_id: int, base_url: str, access_token: str, **kwargs: dict) -> dict:
"""
Parameters
----------
course_id : `int`
Course id
... | 22.383562 | 96 | 0.618115 |
d34e67cf20eff8898bbfe5d4cd62cab743664e32 | 778 | py | Python | music_generator/score_to_midi.py | wonsjb/MusicGenerator | 98290721227a6c69bcd186d02c4492b0e4e9fbe1 | [
"Apache-2.0"
] | null | null | null | music_generator/score_to_midi.py | wonsjb/MusicGenerator | 98290721227a6c69bcd186d02c4492b0e4e9fbe1 | [
"Apache-2.0"
] | null | null | null | music_generator/score_to_midi.py | wonsjb/MusicGenerator | 98290721227a6c69bcd186d02c4492b0e4e9fbe1 | [
"Apache-2.0"
] | 1 | 2019-04-08T09:39:58.000Z | 2019-04-08T09:39:58.000Z | import mido
import pickle
from tqdm import tqdm
from music_generator.score_util import score_to_events
| 25.096774 | 65 | 0.694087 |
d34eb3b9e813d06c380919c0a1a3b281d94e684d | 1,791 | py | Python | examples/simplelogin/routes/auth.py | mekarpeles/waltz | b5cbf1bc57b1fff0be34559b7d88d2da960bad45 | [
"BSD-3-Clause"
] | null | null | null | examples/simplelogin/routes/auth.py | mekarpeles/waltz | b5cbf1bc57b1fff0be34559b7d88d2da960bad45 | [
"BSD-3-Clause"
] | null | null | null | examples/simplelogin/routes/auth.py | mekarpeles/waltz | b5cbf1bc57b1fff0be34559b7d88d2da960bad45 | [
"BSD-3-Clause"
] | null | null | null | #-*- coding: utf-8 -*-
"""
routes.auth
~~~~~~~~~~~
Routes for handling authentication (login, register, logout)
:copyright: (c) Authentication Dance by Waltz.
:license: GPLv3, see LICENSE for more details.
"""
import waltz
from waltz import User, web, session, render
| 29.85 | 78 | 0.546064 |
d352ebd61908d0718bc5d5e76a95055fb7b7c033 | 2,186 | py | Python | src/choropleths/models.py | unt-libraries/texas-choropleth | ccc3cdddd94fe5ec49e0a547c805c62a066bd66e | [
"BSD-3-Clause"
] | 1 | 2018-12-10T02:37:29.000Z | 2018-12-10T02:37:29.000Z | src/choropleths/models.py | unt-libraries/texas-choropleth | ccc3cdddd94fe5ec49e0a547c805c62a066bd66e | [
"BSD-3-Clause"
] | 21 | 2015-01-23T06:51:45.000Z | 2018-10-10T20:27:55.000Z | src/choropleths/models.py | unt-libraries/texas-choropleth | ccc3cdddd94fe5ec49e0a547c805c62a066bd66e | [
"BSD-3-Clause"
] | 1 | 2015-10-01T00:33:44.000Z | 2015-10-01T00:33:44.000Z | from django.db import models
from django.contrib.auth.models import User
from datasets.models import Dataset, PublishedMixin, SCALE_CHOICES
SCHEME_CHOICES = (
(1, 'Sequential'),
(2, 'Diverging'),
(3, 'Qualitative'),
)
| 26.02381 | 77 | 0.661482 |
d353c934ca928318effca3f051fbfeebb0b2a302 | 103 | py | Python | measures/apps.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 14 | 2020-03-25T11:11:29.000Z | 2022-03-08T20:41:33.000Z | measures/apps.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 352 | 2020-03-25T10:42:09.000Z | 2022-03-30T15:32:26.000Z | measures/apps.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 3 | 2020-08-06T12:22:41.000Z | 2022-01-16T11:51:12.000Z | from common.app_config import CommonConfig
| 17.166667 | 42 | 0.786408 |
d3580ed4695bebcfc2891b5c39c7a502e5bced9b | 2,083 | py | Python | Ch6/lle.py | jason-168/MLCode | 429c17e004fb41ba16c371416c8f73833ab8fc1d | [
"Xnet",
"X11"
] | 146 | 2016-05-24T02:55:53.000Z | 2022-03-23T14:54:42.000Z | Ch6/lle.py | coky/MarslandMLAlgo | 4277b24db88c4cb70d6b249921c5d21bc8f86eb4 | [
"Xnet",
"X11"
] | 1 | 2017-08-17T23:07:39.000Z | 2017-08-18T08:27:19.000Z | Ch6/lle.py | coky/MarslandMLAlgo | 4277b24db88c4cb70d6b249921c5d21bc8f86eb4 | [
"Xnet",
"X11"
] | 94 | 2016-05-06T12:34:33.000Z | 2022-03-30T03:31:04.000Z |
# Code from Chapter 6 of Machine Learning: An Algorithmic Perspective (2nd Edition)
# by Stephen Marsland (http://stephenmonika.net)
# You are free to use, change, or redistribute the code in any way you wish for
# non-commercial purposes, but please maintain the name of the original author.
# This code comes with no... | 27.407895 | 83 | 0.62794 |
d35834e4ac51677b11ebf3a3403d9007c865a7d7 | 69 | py | Python | pymiddy/__init__.py | godvsdeity/pymiddy | 5126110a3f9e673f062e4248301796b5de10507d | [
"MIT"
] | 1 | 2021-01-15T06:17:50.000Z | 2021-01-15T06:17:50.000Z | pymiddy/__init__.py | godvsdeity/pymiddy | 5126110a3f9e673f062e4248301796b5de10507d | [
"MIT"
] | null | null | null | pymiddy/__init__.py | godvsdeity/pymiddy | 5126110a3f9e673f062e4248301796b5de10507d | [
"MIT"
] | null | null | null | __name__ = 'pymiddy'
__version__ = '0.1.0'
from .middy import Middy
| 13.8 | 24 | 0.710145 |
d3591775c7b698ed72a3fd1c68e5a61ee0d47bde | 1,904 | py | Python | tests/functional/test_session.py | Andrew-Wichmann/pytest-localstack | 83ac2a5e39eb23cad402a3fcdaefd76db903168d | [
"MIT"
] | 63 | 2018-03-14T18:47:06.000Z | 2022-02-01T20:42:27.000Z | tests/functional/test_session.py | Andrew-Wichmann/pytest-localstack | 83ac2a5e39eb23cad402a3fcdaefd76db903168d | [
"MIT"
] | 43 | 2018-03-06T22:37:32.000Z | 2022-02-25T21:42:21.000Z | tests/functional/test_session.py | Andrew-Wichmann/pytest-localstack | 83ac2a5e39eb23cad402a3fcdaefd76db903168d | [
"MIT"
] | 23 | 2018-05-29T14:03:30.000Z | 2021-12-14T20:21:40.000Z | """Functional tests for pytest_localstack.session."""
import pytest
from pytest_localstack import constants, exceptions, service_checks, session
| 41.391304 | 85 | 0.686975 |
d35a738b7eea5737405cf7a351e38faa5ee30171 | 1,410 | py | Python | 07-dash/src/__init__.py | dushyantkhosla/dataviz | 05a004a390d180d87be2d09873c3f7283c2a2e27 | [
"MIT"
] | null | null | null | 07-dash/src/__init__.py | dushyantkhosla/dataviz | 05a004a390d180d87be2d09873c3f7283c2a2e27 | [
"MIT"
] | 2 | 2021-03-25T22:11:43.000Z | 2022-03-02T22:43:47.000Z | 07-dash/src/__init__.py | dushyantkhosla/viz4ds | 05a004a390d180d87be2d09873c3f7283c2a2e27 | [
"MIT"
] | null | null | null | list_markets = [
'japan', 'portugal', 'russia', 'switzerland', 'romania', 'italy',
'ukraine', 'germany', 'monaco', 'denmark', 'netherlands', 'greece',
'spain', 'uk', 'israel', 'new-zealand', 'kazakhstan', 'canada',
'south-africa', 'lithuania', 'colombia', 'poland', 'turkish-cyprus',
'france', 'czech... | 27.115385 | 72 | 0.500709 |
d35cd6f2e8a4bf94cbcb50a1a3913349d797b8bf | 78 | py | Python | src/sage/cpython/all.py | fchapoton/sage | 765c5cb3e24dd134708eca97e4c52e0221cd94ba | [
"BSL-1.0"
] | 1,742 | 2015-01-04T07:06:13.000Z | 2022-03-30T11:32:52.000Z | src/sage/cpython/all.py | Ivo-Maffei/sage | 467fbc70a08b552b3de33d9065204ee9cbfb02c7 | [
"BSL-1.0"
] | 66 | 2015-03-19T19:17:24.000Z | 2022-03-16T11:59:30.000Z | src/sage/cpython/all.py | dimpase/sage | 468f23815ade42a2192b0a9cd378de8fdc594dcd | [
"BSL-1.0"
] | 495 | 2015-01-10T10:23:18.000Z | 2022-03-24T22:06:11.000Z | from .debug import getattr_debug, type_debug
from .getattr import raw_getattr
| 26 | 44 | 0.846154 |
d35daef25397aae02fca1e7c5ccdd6b6b3650e3b | 4,530 | py | Python | seed_services_cli/identity_store.py | praekeltfoundation/seed-services-cli | 943fca5e70be086d4f29fd580103d7647a81f99a | [
"BSD-3-Clause"
] | null | null | null | seed_services_cli/identity_store.py | praekeltfoundation/seed-services-cli | 943fca5e70be086d4f29fd580103d7647a81f99a | [
"BSD-3-Clause"
] | null | null | null | seed_services_cli/identity_store.py | praekeltfoundation/seed-services-cli | 943fca5e70be086d4f29fd580103d7647a81f99a | [
"BSD-3-Clause"
] | null | null | null | import click
import json
import csv
import sys
from seed_services_client.identity_store import IdentityStoreApiClient
from demands import HTTPServiceError
if sys.version_info.major == 2:
file_open_mode = 'rb'
else:
file_open_mode = 'r'
def identities_from_csv(csv_file):
reader = csv.DictReader(csv_f... | 30.608108 | 77 | 0.608389 |
d361a7c5bfc3b1ebc7879ad5a842156f10a0efba | 1,278 | py | Python | source/build.py | rclayton-the-terrible/Ansible-OpenSSL | 2e95c43911b4c2cd8cc82d42f120fd6bd4e36931 | [
"MIT"
] | 29 | 2015-01-22T15:31:37.000Z | 2021-07-14T02:46:53.000Z | source/build.py | berico-rclayton/Ansible-OpenSSL | 2e95c43911b4c2cd8cc82d42f120fd6bd4e36931 | [
"MIT"
] | 5 | 2015-01-21T22:30:00.000Z | 2016-07-12T22:55:54.000Z | source/build.py | berico-rclayton/Ansible-OpenSSL | 2e95c43911b4c2cd8cc82d42f120fd6bd4e36931 | [
"MIT"
] | 12 | 2015-02-13T07:59:18.000Z | 2022-01-24T09:13:28.000Z | import os, shutil
BUILD_DIR = "../dist"
FILES_TO_BUILD = [
{ "file": "ca", "module": "ca_module.py", "library": "ca.py", "import": "from ca import CA" },
{ "file": "certificate", "module": "certificate_module.py", "library": "certificate.py", "import": "from certificate import Certificate" },
{ "file": "k... | 38.727273 | 143 | 0.694836 |
d362e720bb3d218affebcec43cea8d2928edf0c3 | 7,899 | py | Python | executables/plot_cands.py | UCBerkeleySETI/blipss | dba5c6724701abcc95b59aa016adf2582ecc69f3 | [
"MIT"
] | null | null | null | executables/plot_cands.py | UCBerkeleySETI/blipss | dba5c6724701abcc95b59aa016adf2582ecc69f3 | [
"MIT"
] | null | null | null | executables/plot_cands.py | UCBerkeleySETI/blipss | dba5c6724701abcc95b59aa016adf2582ecc69f3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Plot candidate verification plots including periodograms, average pulse profiles and phase-time diagrams.
Run using the following syntax.
python plot_cands.py -i <Configuration script of inputs> | tee <Log file>
'''
from __future__ import print_function
from __future__ import absolute_import
... | 41.356021 | 138 | 0.622484 |
d364fc80041aba15681b8ae1abc068dc059543fd | 918 | py | Python | common/datacontracts/utxo.py | akvelon/Bitcoin-Transaction-Optimization | e3740fe37869a0b84a472b19dbc5d879ec857837 | [
"Apache-2.0"
] | 5 | 2019-03-21T12:57:56.000Z | 2019-09-15T00:00:35.000Z | common/datacontracts/utxo.py | akvelon/Bitcoin-Transaction-Optimization | e3740fe37869a0b84a472b19dbc5d879ec857837 | [
"Apache-2.0"
] | 25 | 2019-04-01T09:23:10.000Z | 2022-02-10T00:10:23.000Z | common/datacontracts/utxo.py | akvelon/Bitcoin-Transaction-Optimization | e3740fe37869a0b84a472b19dbc5d879ec857837 | [
"Apache-2.0"
] | 1 | 2019-03-15T13:54:51.000Z | 2019-03-15T13:54:51.000Z | """
Copyright 2019 Akvelon 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 i... | 48.315789 | 311 | 0.704793 |
d36503749b7bc4dd9ab596a44975407acae0d0ec | 18,681 | py | Python | 010_XRDAnalysis/FeNi/FeNi_Ambient_019/ExtraPeakAttempt/Fit_XRD_Pattern.py | r-a-morrison/fe_alloy_sound_velocities | 8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b | [
"MIT"
] | null | null | null | 010_XRDAnalysis/FeNi/FeNi_Ambient_019/ExtraPeakAttempt/Fit_XRD_Pattern.py | r-a-morrison/fe_alloy_sound_velocities | 8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b | [
"MIT"
] | null | null | null | 010_XRDAnalysis/FeNi/FeNi_Ambient_019/ExtraPeakAttempt/Fit_XRD_Pattern.py | r-a-morrison/fe_alloy_sound_velocities | 8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b | [
"MIT"
] | null | null | null |
# Written by Rachel Morrison on July 1, 2016
# Updated October 2017
# ## Input Data and Parameters
from Fit_XRD_Input import *
# ## Outline
# - Import data
# - Specify 2theta range
# - Identify phases
# - Set starting parameter values for a (and c)
# - Identify peaks present in 2theta range for given a (and c)
# -... | 36.486328 | 96 | 0.662598 |
d365d258e5da91f89533a37ebc45518a1726de2f | 1,362 | py | Python | core/cdag/node/metrics.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | null | null | null | core/cdag/node/metrics.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | null | null | null | core/cdag/node/metrics.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | null | null | null | # ----------------------------------------------------------------------
# MetricsNode
# ----------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# Python modules
f... | 27.24 | 85 | 0.532305 |
d36649a36f426f9099f11bf5367c4a8a8f4ec2b2 | 2,071 | py | Python | Python/Tkinter/Tech-Gram Academy/PhoneBook App.py | omkarsutar1255/Python-Data | 169d0c54b23d9dd5a7f1aea41ab385121c3b3c63 | [
"CC-BY-3.0"
] | null | null | null | Python/Tkinter/Tech-Gram Academy/PhoneBook App.py | omkarsutar1255/Python-Data | 169d0c54b23d9dd5a7f1aea41ab385121c3b3c63 | [
"CC-BY-3.0"
] | null | null | null | Python/Tkinter/Tech-Gram Academy/PhoneBook App.py | omkarsutar1255/Python-Data | 169d0c54b23d9dd5a7f1aea41ab385121c3b3c63 | [
"CC-BY-3.0"
] | null | null | null | from tkinter import *
import datetime
from view_people import Mypeople
date = datetime.datetime.now().date()
date = str(date)
if __name__ == '__main__':
main()
| 35.101695 | 113 | 0.623853 |
d3670d7e4f25769b7a27109b32a3982276760c06 | 478 | py | Python | LBP06.py | Anandgowda18/LogicBasedPrograms | 25baa9fbf19cd45229c87e099877e97281b0e76b | [
"MIT"
] | null | null | null | LBP06.py | Anandgowda18/LogicBasedPrograms | 25baa9fbf19cd45229c87e099877e97281b0e76b | [
"MIT"
] | null | null | null | LBP06.py | Anandgowda18/LogicBasedPrograms | 25baa9fbf19cd45229c87e099877e97281b0e76b | [
"MIT"
] | null | null | null | '''For each of the 6 coffee cups I buy, I get a 7th cup free. In total, I get 7 cups. Implement a program that takes n cups bought and print as an integer the total number of cups I would get.
Input Format
n number of cups from user
Constraints
n>0
Output Format
number of cups present have
Sample Input 0
13
Sam... | 14.9375 | 192 | 0.709205 |
d36a75871385410e67d2a1d159624af95ddabfb2 | 76 | py | Python | volkscv/analyzer/statistics/utils/assigner/__init__.py | YuxinZou/volkscv | 67ac83f0c0ac85bd6606053732b454db17c53de0 | [
"Apache-2.0"
] | 59 | 2020-07-09T03:22:51.000Z | 2021-12-14T11:26:43.000Z | volkscv/analyzer/statistics/utils/assigner/__init__.py | ChaseMonsterAway/volkscv | aa7e898cc29e3e5f26363e56bf56f4c56574bbd8 | [
"Apache-2.0"
] | 1 | 2020-11-24T12:18:19.000Z | 2020-11-25T03:12:57.000Z | volkscv/analyzer/statistics/utils/assigner/__init__.py | ChaseMonsterAway/volkscv | aa7e898cc29e3e5f26363e56bf56f4c56574bbd8 | [
"Apache-2.0"
] | 24 | 2020-08-05T03:13:37.000Z | 2021-10-11T02:55:25.000Z | from .base import BaseAssigner
from .max_iou_assigner import MaxIoUAssigner
| 25.333333 | 44 | 0.868421 |
d36c21fe0133ee21a1ab3addd4c1f6e8a3228f92 | 3,695 | py | Python | cloudmesh/analytics/OpenAPIServer.py | cloudmesh/cloudmesh-analytics | 26e8ab8e718730cbbc5b99ac71395c22686ae698 | [
"Apache-2.0"
] | null | null | null | cloudmesh/analytics/OpenAPIServer.py | cloudmesh/cloudmesh-analytics | 26e8ab8e718730cbbc5b99ac71395c22686ae698 | [
"Apache-2.0"
] | null | null | null | cloudmesh/analytics/OpenAPIServer.py | cloudmesh/cloudmesh-analytics | 26e8ab8e718730cbbc5b99ac71395c22686ae698 | [
"Apache-2.0"
] | 2 | 2019-10-21T03:58:57.000Z | 2020-02-12T00:07:06.000Z | """To create a flask app
The method definition to create a flask app by call ing the create_app function
Example:
create_app(test_config)
"""
import os
import connexion
import sys
import textwrap
from cloudmesh.common.util import writefile
from cloudmesh.common.util import path_expand
from cloudmesh.common... | 25.308219 | 79 | 0.539107 |
d36ce0a150d51a1118f75e69b494546bb51688b1 | 1,610 | py | Python | migrations/versions/v3_create_specialization_schema.py | GCETTB-HYLAND-Hackathon2012-22/Miracurol-Rebuild | a6748e93b45872efdbaca013388dd6277824a9a5 | [
"Apache-2.0"
] | null | null | null | migrations/versions/v3_create_specialization_schema.py | GCETTB-HYLAND-Hackathon2012-22/Miracurol-Rebuild | a6748e93b45872efdbaca013388dd6277824a9a5 | [
"Apache-2.0"
] | null | null | null | migrations/versions/v3_create_specialization_schema.py | GCETTB-HYLAND-Hackathon2012-22/Miracurol-Rebuild | a6748e93b45872efdbaca013388dd6277824a9a5 | [
"Apache-2.0"
] | null | null | null | """Create Specialization Schema
Create a table 'specialization' which represents doctors specializations and have a many-to-many relationship with the
doctor table.
-- SQL
CREATE TABLE specialization (
id SERIAL,
specialization_name TEXT NOT NULL,
CONSTRAINT pk_specialization PRIMARY KEY (id)
);
CREATE ... | 27.288136 | 118 | 0.701863 |
d36e069713d8c3e52684121fe2690f4962a2708a | 2,515 | py | Python | tools/fixup_io_tilegrid.py | mfkiwl/prjoxide | 318331f8b30c2e2a31cc41d51f104b671e180a8a | [
"0BSD"
] | 80 | 2019-12-10T21:06:12.000Z | 2021-02-06T09:12:37.000Z | tools/fixup_io_tilegrid.py | mfkiwl/prjoxide | 318331f8b30c2e2a31cc41d51f104b671e180a8a | [
"0BSD"
] | 13 | 2021-03-18T12:59:25.000Z | 2022-03-30T11:35:51.000Z | tools/fixup_io_tilegrid.py | mfkiwl/prjoxide | 318331f8b30c2e2a31cc41d51f104b671e180a8a | [
"0BSD"
] | 4 | 2020-10-04T22:23:15.000Z | 2021-01-29T21:51:25.000Z | import database
import tiles
import json
from os import path
"""
Despite Lattice assigning them the same tile type; "odd" and "even" top/left/right IO
locations have slightly different routing - swapped output tristate and data
This script fixes this by patching tile names
"""
for f, d in [("LIFCL", "LIFCL-40"), ("L... | 34.930556 | 105 | 0.525249 |
d36e8ca439eb0a47f4ed9a65eb100752706fe147 | 1,425 | py | Python | tests/test_html_table.py | gp2kumar/jsonconverter | e90a989c8fe45c466179a9e202f301d1c495668c | [
"MIT"
] | 1 | 2021-02-16T10:09:55.000Z | 2021-02-16T10:09:55.000Z | tests/test_html_table.py | gp2kumar/jsonconverter | e90a989c8fe45c466179a9e202f301d1c495668c | [
"MIT"
] | null | null | null | tests/test_html_table.py | gp2kumar/jsonconverter | e90a989c8fe45c466179a9e202f301d1c495668c | [
"MIT"
] | null | null | null | from unittest import TestCase
from jsonConverter import jsonConverter
from jsonConverter.errors import EmptyJson
from bs4 import BeautifulSoup
import os
import json
| 39.583333 | 99 | 0.689123 |
d36fcf0138716f178ec96518e782b2fccc83abc3 | 620 | py | Python | 04-text-byte/example_4_10.py | hua372494277/fluent_python_example-code | 07577e3e3ca822ab0e769bbaa22477fd988edb36 | [
"MIT"
] | null | null | null | 04-text-byte/example_4_10.py | hua372494277/fluent_python_example-code | 07577e3e3ca822ab0e769bbaa22477fd988edb36 | [
"MIT"
] | null | null | null | 04-text-byte/example_4_10.py | hua372494277/fluent_python_example-code | 07577e3e3ca822ab0e769bbaa22477fd988edb36 | [
"MIT"
] | null | null | null | fp = open('cafe.txt', 'w', encoding='utf-8')
print(fp)
# <_io.TextIOWrapper name='cafe.txt' mode='w' encoding='utf-8'>
# openTextIOWrapper
print(fp.write('caf'))
# TextIOWrapperwriteUnicode4
fp.close()
import os
print(os.stat('cafe.txt').st_size)
fp2 = open('cafe.txt')
print(fp2)
# TextIOWrapper
print(fp2.encoding)
pri... | 23.846154 | 63 | 0.729032 |
d3719221e4d0e1a5fd57d85ca24e8b4d7705fe8c | 15,915 | py | Python | git-sync.py | wikimedia-bg/git-sync | de047324e34595bfd8b6eb80c09aa8a22674ea12 | [
"MIT"
] | null | null | null | git-sync.py | wikimedia-bg/git-sync | de047324e34595bfd8b6eb80c09aa8a22674ea12 | [
"MIT"
] | 7 | 2020-05-22T21:39:28.000Z | 2020-07-02T12:25:13.000Z | git-sync.py | wikimedia-bg/git-sync | de047324e34595bfd8b6eb80c09aa8a22674ea12 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import os.path
import re
import signal
import sys
import time
from datetime import datetime as dt
from datetime import timedelta as td
from pathlib import Path
import git
import pywikibot as pwb
import yaml
def main(argv):
sig_handler = SignalHandler()
git_sync = GitSync... | 43.964088 | 120 | 0.543827 |
d3723a1afefdf302f5961dea01b38d29e321a538 | 3,377 | py | Python | SurfaceTopography/Exceptions.py | ContactEngineering/SurfaceTopography | 7dc7346cb9545326a3323fda0d402f254eae8c0e | [
"MIT"
] | 1 | 2021-12-21T15:37:06.000Z | 2021-12-21T15:37:06.000Z | SurfaceTopography/Exceptions.py | ContactEngineering/SurfaceTopography | 7dc7346cb9545326a3323fda0d402f254eae8c0e | [
"MIT"
] | 98 | 2021-03-29T11:13:27.000Z | 2022-03-18T10:37:37.000Z | SurfaceTopography/Exceptions.py | ContactEngineering/SurfaceTopography | 7dc7346cb9545326a3323fda0d402f254eae8c0e | [
"MIT"
] | 2 | 2021-04-15T20:42:23.000Z | 2021-07-09T10:37:35.000Z | #
# Copyright 2021 Lars Pastewka
#
# ### MIT license
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, mer... | 28.378151 | 111 | 0.705952 |
d37242bd6188eb88e2ded7071af329a1153d9449 | 304 | py | Python | stardate.py | NicolasFlandrois/stardate | d68adb84bfaf50fe95aa907f8e21f7b4100077f6 | [
"MIT"
] | 1 | 2019-05-04T00:58:56.000Z | 2019-05-04T00:58:56.000Z | stardate.py | NicolasFlandrois/Stardate | d68adb84bfaf50fe95aa907f8e21f7b4100077f6 | [
"MIT"
] | null | null | null | stardate.py | NicolasFlandrois/Stardate | d68adb84bfaf50fe95aa907f8e21f7b4100077f6 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# Date: Mon 24 Jun 2019 17:36:52 CEST
# Author: Nicolas Flandrois
# Description: Running Stardate
from sdview import View
from sdcompute import Compute
def main():
"""main docstring"""
View.menu(Compute.sdconvert, Compute.sdtranslate)
if __name__ == '__main__':
main()
| 19 | 53 | 0.713816 |
d37289938c883e0f5b2c05d45673f8a8f5f65c59 | 2,230 | py | Python | eve/flaskapp.py | nrcmedia/eve | fa45b0fd34e0fd2a6e201b71edd382fe0d72e86f | [
"BSD-3-Clause"
] | null | null | null | eve/flaskapp.py | nrcmedia/eve | fa45b0fd34e0fd2a6e201b71edd382fe0d72e86f | [
"BSD-3-Clause"
] | null | null | null | eve/flaskapp.py | nrcmedia/eve | fa45b0fd34e0fd2a6e201b71edd382fe0d72e86f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
eve.flaskapp
~~~~~~~~~~~~
This module implements the central WSGI application object as a Flask
subclass.
:copyright: (c) 2013 by Nicola Iarocci.
:license: BSD, see LICENSE for more details.
"""
import eve
from flask import Blueprint
from werkzeug.routing import B... | 33.787879 | 89 | 0.626457 |
d373a4b5adeda9e4dca2dfc62136120dbf63f0c7 | 4,746 | py | Python | htn/htn.py | jsupratman13/StudySession2018 | ea52ae61a23b2a9ae08185acb49ceb34fcc7f750 | [
"MIT"
] | null | null | null | htn/htn.py | jsupratman13/StudySession2018 | ea52ae61a23b2a9ae08185acb49ceb34fcc7f750 | [
"MIT"
] | null | null | null | htn/htn.py | jsupratman13/StudySession2018 | ea52ae61a23b2a9ae08185acb49ceb34fcc7f750 | [
"MIT"
] | null | null | null | ################################
# @file htn.py #
# @brief HTN Planner core #
# @author Joshua Supratman #
# @date 2017/09/07 #
################################
import copy
| 35.155556 | 132 | 0.578171 |
d37462d1ff2d389bfad4c0d668e447663a2bbb4d | 2,606 | py | Python | ethosu/mlw_codec/test/test_mlw_codec.py | DemonGiggle/vela | 298e383d2dbab465ddd4995a6ebc6f8bc07c8719 | [
"Apache-2.0"
] | 1 | 2021-12-01T17:16:14.000Z | 2021-12-01T17:16:14.000Z | ethosu/mlw_codec/test/test_mlw_codec.py | DemonGiggle/vela | 298e383d2dbab465ddd4995a6ebc6f8bc07c8719 | [
"Apache-2.0"
] | null | null | null | ethosu/mlw_codec/test/test_mlw_codec.py | DemonGiggle/vela | 298e383d2dbab465ddd4995a6ebc6f8bc07c8719 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright (C) 2020 Arm Limited or its affiliates. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the License); you may
# not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# www.a... | 41.365079 | 116 | 0.720645 |
d3756011bd4353bc293cc731639bdc9698e493c0 | 2,463 | py | Python | Unit1/Lesson11.py | szhua/PythonLearn | 12eaf7cc74a0310bb23e21773f3c83deb91d0362 | [
"Apache-2.0"
] | null | null | null | Unit1/Lesson11.py | szhua/PythonLearn | 12eaf7cc74a0310bb23e21773f3c83deb91d0362 | [
"Apache-2.0"
] | null | null | null | Unit1/Lesson11.py | szhua/PythonLearn | 12eaf7cc74a0310bb23e21773f3c83deb91d0362 | [
"Apache-2.0"
] | null | null | null | #map reduce
x =map(add,list(range(10)))
print(list(x))
from functools import reduce
y =reduce(add,map(add,list(range(10))))
print(y)
#str to int
print(reduce(getResult,map(char2num,"111114343")))
#str to int
print(int("111114343"))
print(list(map(char2num,"10")))
print(str2int("90904930"))
print(list(map(normalize,... | 20.355372 | 83 | 0.593585 |
d376264f031158ca378b0cfdfc3c0c40130ce654 | 53 | py | Python | session-9/testcolor.py | ssxrgio/2018-19-PNE-practices | f73ed67cb676a2ffffdf7a5a3ddc4c9fa7902ee0 | [
"Apache-2.0"
] | null | null | null | session-9/testcolor.py | ssxrgio/2018-19-PNE-practices | f73ed67cb676a2ffffdf7a5a3ddc4c9fa7902ee0 | [
"Apache-2.0"
] | null | null | null | session-9/testcolor.py | ssxrgio/2018-19-PNE-practices | f73ed67cb676a2ffffdf7a5a3ddc4c9fa7902ee0 | [
"Apache-2.0"
] | null | null | null | import termcolor
termcolor.cprint('Green.', 'green') | 17.666667 | 35 | 0.754717 |
d376f8e75aeda7a5f8ab84956c3eb1aca0f7b88f | 842 | pyde | Python | 1/SaveJPG/SaveJPG.pyde | sinoapollo/pyprocessingsamplecode | 6ed3a94ab8d2d3b58b1bf73f7c06b11870356f9c | [
"MIT"
] | 2 | 2019-05-16T17:30:38.000Z | 2020-06-17T05:33:11.000Z | 1/SaveJPG/SaveJPG.pyde | sinoapollo/pyprocessingsamplecode | 6ed3a94ab8d2d3b58b1bf73f7c06b11870356f9c | [
"MIT"
] | null | null | null | 1/SaveJPG/SaveJPG.pyde | sinoapollo/pyprocessingsamplecode | 6ed3a94ab8d2d3b58b1bf73f7c06b11870356f9c | [
"MIT"
] | 1 | 2019-03-03T15:37:50.000Z | 2019-03-03T15:37:50.000Z | """
Author: Apollo Chen
Date: 2019-02-18
Description: beginShape, vertex, endShape, save, saveFrame
"""
x = 0
| 19.581395 | 64 | 0.562945 |
d377969c4f87184fc09ab88ee20863bc245c4b23 | 646 | py | Python | plot_testing.py | MorganR/gaussian-processes | bf8e1c8453b5c07a525b1393bbe8013b4c10d9fb | [
"MIT"
] | null | null | null | plot_testing.py | MorganR/gaussian-processes | bf8e1c8453b5c07a525b1393bbe8013b4c10d9fb | [
"MIT"
] | null | null | null | plot_testing.py | MorganR/gaussian-processes | bf8e1c8453b5c07a525b1393bbe8013b4c10d9fb | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
plt.style.use('ggplot')
import GPflow
import math
N = 16
X = np.random.rand(N,1)
Y = np.sin(12*X) + 0.66*np.cos(25*X) + np.random.randn(N,1)*0.1 + 3
k = GPflow.kernels.Matern52(1, lengthscales=0.3)
m = GPflow.gpr.GPR(X, Y, kern=k)
m.likelihood.variance = 0.01
m.... | 20.1875 | 116 | 0.631579 |
d377daf5638a7fc8d6add5f58baae6658f5fa26a | 102 | py | Python | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/__main__.py | rzavarce/cookiecutter-vertebral | 29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/__main__.py | rzavarce/cookiecutter-vertebral | 29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/__main__.py | rzavarce/cookiecutter-vertebral | 29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421 | [
"MIT"
] | null | null | null | from core.main import main
import sys
sys.path.append(".")
# TODO CHANGE TO CORRECT IMPORT
main()
| 10.2 | 31 | 0.715686 |
d378df2e0e879fe284c4b24445531bfc9a8d0706 | 2,092 | py | Python | 1089.duplicate-zeros.py | windard/leeeeee | 0107a5f95746592ca4fe78d2b5875cf65b1910e7 | [
"MIT"
] | null | null | null | 1089.duplicate-zeros.py | windard/leeeeee | 0107a5f95746592ca4fe78d2b5875cf65b1910e7 | [
"MIT"
] | null | null | null | 1089.duplicate-zeros.py | windard/leeeeee | 0107a5f95746592ca4fe78d2b5875cf65b1910e7 | [
"MIT"
] | null | null | null | # coding=utf-8
#
# @lc app=leetcode id=1089 lang=python
#
# [1089] Duplicate Zeros
#
# https://leetcode.com/problems/duplicate-zeros/description/
#
# algorithms
# Easy (58.99%)
# Likes: 118
# Dislikes: 94
# Total Accepted: 15.1K
# Total Submissions: 25.6K
# Testcase Example: '[1,0,2,3,0,4,5,0]'
#
# Given a fixed... | 21.56701 | 77 | 0.546845 |
d379100771febdd3cd71e6437f6cbe231c5f4030 | 2,841 | py | Python | scripts/motion/preprocess.py | isi-vista/adam-visual-perception | 8ad6ed883b184b5407a1bf793617b226c78b3a13 | [
"MIT"
] | 1 | 2020-07-21T10:52:26.000Z | 2020-07-21T10:52:26.000Z | scripts/motion/preprocess.py | isi-vista/adam-visual-perception | 8ad6ed883b184b5407a1bf793617b226c78b3a13 | [
"MIT"
] | null | null | null | scripts/motion/preprocess.py | isi-vista/adam-visual-perception | 8ad6ed883b184b5407a1bf793617b226c78b3a13 | [
"MIT"
] | 2 | 2020-07-21T15:30:42.000Z | 2021-01-20T21:54:09.000Z | """ Preprocess
This script loads the videos, removes the audio track, cuts the videos from
the start point to endpoint for given dataset fragments, and saves them in a
new directory. A new `tsv` file is being generated with corresponding
filenames and ground truth labels.
Parameters
----------
data_dir : str, optiona... | 33.821429 | 92 | 0.708905 |
d379ebabfe6a453a1a327feab9114e7908641286 | 391 | py | Python | 2022-04-28-mean-shift.py | joaco18/maia-italy-aia | 74032ea590c2a29fe5a38b539cee5c748c7ba063 | [
"MIT"
] | null | null | null | 2022-04-28-mean-shift.py | joaco18/maia-italy-aia | 74032ea590c2a29fe5a38b539cee5c748c7ba063 | [
"MIT"
] | null | null | null | 2022-04-28-mean-shift.py | joaco18/maia-italy-aia | 74032ea590c2a29fe5a38b539cee5c748c7ba063 | [
"MIT"
] | null | null | null | import cv2
import utils
if __name__ == '__main__':
main()
| 19.55 | 64 | 0.675192 |
d37ad7f9f7b6e3bd8100c785d3bb4dcf55ed0deb | 400 | py | Python | Scripts/Python/Utils/resample.py | TheSchilk/PmodADC | 7c79507034d3c8e1f475fa4ca5fec741bf46c17e | [
"MIT"
] | 1 | 2022-02-15T06:53:36.000Z | 2022-02-15T06:53:36.000Z | Scripts/Python/Utils/resample.py | TheSchilk/PmodADC | 7c79507034d3c8e1f475fa4ca5fec741bf46c17e | [
"MIT"
] | null | null | null | Scripts/Python/Utils/resample.py | TheSchilk/PmodADC | 7c79507034d3c8e1f475fa4ca5fec741bf46c17e | [
"MIT"
] | null | null | null | import scipy.signal as sps
import numpy as np
| 25 | 66 | 0.695 |
d37b259e6b4975ce0d8db6b86cb732283a09517f | 3,849 | py | Python | feder/main/urls.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 16 | 2015-08-11T17:20:26.000Z | 2022-02-11T20:15:41.000Z | feder/main/urls.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 534 | 2015-08-04T00:10:54.000Z | 2022-03-17T10:44:47.000Z | feder/main/urls.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 10 | 2017-08-30T13:34:32.000Z | 2022-02-18T13:00:35.000Z | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.sitemaps.views import index, sitemap
from django.utils.translation import ugettext_lazy as _
from django.views.generic import TemplateView
from rest_... | 38.108911 | 88 | 0.719408 |
d37bfc505960f1acaa93775aaa08e42265d43e52 | 8,144 | py | Python | docker-images/taigav2/taiga-back/taiga/base/api/viewsets.py | mattcongy/itshop | 6be025a9eaa7fe7f495b5777d1f0e5a3184121c9 | [
"MIT"
] | 1 | 2017-05-29T19:01:06.000Z | 2017-05-29T19:01:06.000Z | docker-images/taigav2/taiga-back/taiga/base/api/viewsets.py | mattcongy/itshop | 6be025a9eaa7fe7f495b5777d1f0e5a3184121c9 | [
"MIT"
] | null | null | null | docker-images/taigav2/taiga-back/taiga/base/api/viewsets.py | mattcongy/itshop | 6be025a9eaa7fe7f495b5777d1f0e5a3184121c9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz>
# Copyright (C) 2014-2016 Jess Espino <jespinog@gmail.com>
# Copyright (C) 2014-2016 David Barragn <bameda@dbarragan.com>
# Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net>
# This program is free software: you can red... | 37.018182 | 87 | 0.661469 |
d37e9aa4d9aff346dd05fdb216fa61604c83f7db | 1,632 | py | Python | lab1/abstractFactory.py | EpicUsaMan/univer | a6aaab7a3ef14844e8a0d1b755603d003693bb5f | [
"MIT"
] | null | null | null | lab1/abstractFactory.py | EpicUsaMan/univer | a6aaab7a3ef14844e8a0d1b755603d003693bb5f | [
"MIT"
] | null | null | null | lab1/abstractFactory.py | EpicUsaMan/univer | a6aaab7a3ef14844e8a0d1b755603d003693bb5f | [
"MIT"
] | null | null | null | '''Define Abstract Factory'''
from abc import ABCMeta, abstractmethod
'''Using AbstractFactory'''
firstShop = EcoMarket()
lastShop = Silpo()
beer = firstShop.buy_beer()
snack = lastShop.buy_snack()
snack.interact(beer)
beer.interact(snack)
beer = lastShop.buy_beer()
snack = firstShop.buy_snack()
snack.interact(... | 20.148148 | 64 | 0.711397 |
d3800894268187dfb1384e045a327952f3559d7b | 4,972 | py | Python | myscripts/projects/thesis/mean_profile.py | LSaffin/scripts | 100fc442229ea11f8766a6d78b4db8790c607326 | [
"MIT"
] | 1 | 2020-03-16T13:54:28.000Z | 2020-03-16T13:54:28.000Z | myscripts/projects/thesis/mean_profile.py | LSaffin/scripts | 100fc442229ea11f8766a6d78b4db8790c607326 | [
"MIT"
] | null | null | null | myscripts/projects/thesis/mean_profile.py | LSaffin/scripts | 100fc442229ea11f8766a6d78b4db8790c607326 | [
"MIT"
] | 1 | 2021-01-16T04:54:53.000Z | 2021-01-16T04:54:53.000Z | import matplotlib.pyplot as plt
import iris
from irise import plot
from irise.plot.util import multilabel, legend
from systematic_forecasts import second_analysis
from myscripts.projects.thesis import plotdir
if __name__ == '__main__':
main()
| 29.951807 | 79 | 0.580853 |
d380729626394d54cdb858039c05f741e3b17ed1 | 359 | py | Python | warmup/sherlockbeast/sherlockbeast.py | antfarmar/hackerrank | 87aa6ec8abd35746f209efdaa29b1799fd03baaa | [
"Unlicense"
] | 1 | 2021-09-09T02:02:53.000Z | 2021-09-09T02:02:53.000Z | warmup/sherlockbeast/sherlockbeast.py | antfarmar/hackerrank | 87aa6ec8abd35746f209efdaa29b1799fd03baaa | [
"Unlicense"
] | null | null | null | warmup/sherlockbeast/sherlockbeast.py | antfarmar/hackerrank | 87aa6ec8abd35746f209efdaa29b1799fd03baaa | [
"Unlicense"
] | null | null | null | from sys import stdin
#file = stdin
file = open( r".\data\sherlockbeast.txt" ) #stdin
data = list(map(int, file.read().strip().split()))[1:]
file.close()
# Maximize x in k = 3x + 5y
for k in data:
for x in range(k//3, -1, -1):
if (k-3 * x) % 5 == 0:
y = (k-3 * x) // 5
print('5'*3*x + '3'*5*y)
... | 19.944444 | 54 | 0.512535 |
d383caabaf3ad3e599d36baea06fb49c58be08ee | 208 | py | Python | atcoder/other/lang_update_202001/abc083_b.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | 1 | 2018-11-12T15:18:55.000Z | 2018-11-12T15:18:55.000Z | atcoder/other/lang_update_202001/abc083_b.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | atcoder/other/lang_update_202001/abc083_b.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
main()
| 18.909091 | 52 | 0.466346 |
d383fefb1598ef6ec1a75585c0aa27732689abcd | 1,601 | py | Python | quadruped_spring/env/env_randomizers/env_randomizer_collection.py | francescovezzi/quadruped_spring | 23848496ac7a4508e8a0f527e961c7956fd12f95 | [
"MIT"
] | 3 | 2022-02-21T22:30:21.000Z | 2022-03-03T12:59:25.000Z | quadruped_spring/env/env_randomizers/env_randomizer_collection.py | francescovezzi/quadruped_spring | 23848496ac7a4508e8a0f527e961c7956fd12f95 | [
"MIT"
] | 1 | 2022-03-28T09:22:50.000Z | 2022-03-28T16:44:46.000Z | quadruped_spring/env/env_randomizers/env_randomizer_collection.py | francescovezzi/quadruped_spring | 23848496ac7a4508e8a0f527e961c7956fd12f95 | [
"MIT"
] | null | null | null | from quadruped_spring.env.env_randomizers.env_randomizer import (
EnvRandomizerDisturbance,
EnvRandomizerInitialConfiguration,
EnvRandomizerMasses,
EnvRandomizerSprings,
)
from quadruped_spring.utils.base_collection import CollectionBase
# Implemented observation spaces for deep reinforcement learning:... | 44.472222 | 90 | 0.712055 |
d385a78415912448a87e4e43be4dcba83acd9566 | 17,144 | py | Python | training/common/dataset_training_deploy_pipeline.py | ivanmkc/vertex-ai-project-example | 070c8d5f534a1fc9f235eb041337592af074de7f | [
"MIT"
] | 1 | 2021-08-24T07:56:10.000Z | 2021-08-24T07:56:10.000Z | training/common/dataset_training_deploy_pipeline.py | ivanmkc/vertex-ai-project-example | 070c8d5f534a1fc9f235eb041337592af074de7f | [
"MIT"
] | null | null | null | training/common/dataset_training_deploy_pipeline.py | ivanmkc/vertex-ai-project-example | 070c8d5f534a1fc9f235eb041337592af074de7f | [
"MIT"
] | 1 | 2022-03-30T04:17:58.000Z | 2022-03-30T04:17:58.000Z | from typing import Any, Callable, Dict, Optional, Sequence, Tuple
import abc
import dataclasses
from google_cloud_pipeline_components import aiplatform as gcc_aip
import kfp
from kfp.v2.dsl import component, importer, Condition, Dataset, Model
import training.common.managed_dataset_pipeline as managed_dataset_pipeline... | 43.292929 | 103 | 0.631941 |
d385ca7241bd26e2e1fb9eb4af0ac1bee221e31c | 1,465 | py | Python | sandbox/lib/jumpscale/JumpscaleLibs/clients/gitea/GiteaOrgForMember.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 2 | 2019-05-09T07:21:25.000Z | 2019-08-05T06:37:53.000Z | sandbox/lib/jumpscale/JumpscaleLibs/clients/gitea/GiteaOrgForMember.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 664 | 2018-12-19T12:43:44.000Z | 2019-08-23T04:24:42.000Z | sandbox/lib/jumpscale/JumpscaleLibs/clients/gitea/GiteaOrgForMember.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 7 | 2019-05-03T07:14:37.000Z | 2019-08-05T12:36:52.000Z | from .GiteaOrg import GiteaOrg
| 31.847826 | 105 | 0.574061 |
d3860320a8f96b2cb4f1e64f815a4818f17ba4f3 | 1,293 | py | Python | solutions/107.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | solutions/107.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | solutions/107.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | """
https://leetcode.com/problems/binary-tree-level-order-traversal-ii/description
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree [3,9,20,null,null,15,7],
3
/ \
9 20
/ \
... | 24.396226 | 145 | 0.54215 |
d3894fa9b5b91661bd5eeb0871ee8e2e049cf34c | 1,486 | py | Python | crits/emails/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 738 | 2015-01-02T12:39:55.000Z | 2022-03-23T11:05:51.000Z | crits/emails/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 605 | 2015-01-01T01:03:39.000Z | 2021-11-17T18:51:07.000Z | crits/emails/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 316 | 2015-01-07T12:35:01.000Z | 2022-03-30T04:44:30.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^search/$', views.email_search, name='crits-emails-views-email_search'),
url(r'^delete/(?P<email_id>\w+)/$', views.email_del, name='crits-emails-views-email_del'),
url(r'^upload/attach/(?P<email_id>\w+)/$', views.upload_attach, nam... | 70.761905 | 151 | 0.718708 |
d38aebe3f58df0d025b3b9609b4879bf213f6c6a | 1,769 | py | Python | lang/Python/sum-multiples-of-3-and-5-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/sum-multiples-of-3-and-5-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/sum-multiples-of-3-and-5-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | '''Summed multiples of 3 and 5 up to n'''
# sum35 :: Int -> Int
def sum35(n):
'''Sum of all positive multiples
of 3 or 5 below n.
'''
f = sumMults(n)
return f(3) + f(5) - f(15)
# sumMults :: Int -> Int -> Int
def sumMults(n):
'''Area under a straight line between
the first multiple... | 24.569444 | 70 | 0.453363 |
d38b57724053d1049345f03cd38a32f256f067a2 | 1,515 | py | Python | butterflow/source.py | changhaitravis/butterflow | d9f92e31a57e800a56b98fa17786144b50d3e3bb | [
"MIT"
] | 1,340 | 2015-01-04T01:43:39.000Z | 2022-03-29T04:44:41.000Z | butterflow/source.py | freelandy/butterflow | 82133fed2f59c5753fc916e6c067373a640e5dcb | [
"MIT"
] | 134 | 2015-04-05T10:04:02.000Z | 2022-02-16T22:34:03.000Z | butterflow/source.py | freelandy/butterflow | 82133fed2f59c5753fc916e6c067373a640e5dcb | [
"MIT"
] | 116 | 2015-04-14T17:37:33.000Z | 2022-02-19T21:36:22.000Z | # -*- coding: utf-8 -*-
# uses the opencv api as the default frame source. must ensure that the ffmpeg
# compiled that it is linked against is the same as the ffmpeg being used to
# render video files
import cv2
| 31.5625 | 79 | 0.629043 |
d38e659f1b9f7b0e2e90d4b321084e607d07d859 | 834 | py | Python | extraResources/electron-backend/routes/toc_pdf.py | vilaj46/ad1-ad2-briefs | 8bd5de28315a0525b28adb4cf8f1a7d22eefef25 | [
"MIT"
] | null | null | null | extraResources/electron-backend/routes/toc_pdf.py | vilaj46/ad1-ad2-briefs | 8bd5de28315a0525b28adb4cf8f1a7d22eefef25 | [
"MIT"
] | null | null | null | extraResources/electron-backend/routes/toc_pdf.py | vilaj46/ad1-ad2-briefs | 8bd5de28315a0525b28adb4cf8f1a7d22eefef25 | [
"MIT"
] | null | null | null | import fitz
import os
from classes.Table_Of_Contents import get_my_toc
from classes.Brief import get_my_brief
| 32.076923 | 77 | 0.678657 |
d38eab39ff389c21949f48dc17d7c3a83dc561eb | 3,172 | py | Python | orquesta/tests/unit/conducting/test_task_with_no_action.py | trstruth/orquesta | e6ebbbeb2c661486067e659dc7552f0a986603a6 | [
"Apache-2.0"
] | 3 | 2020-11-17T21:29:26.000Z | 2021-03-17T13:56:16.000Z | orquesta/tests/unit/conducting/test_task_with_no_action.py | trstruth/orquesta | e6ebbbeb2c661486067e659dc7552f0a986603a6 | [
"Apache-2.0"
] | 5 | 2021-03-02T01:41:36.000Z | 2022-03-08T23:31:31.000Z | orquesta/tests/unit/conducting/test_task_with_no_action.py | trstruth/orquesta | e6ebbbeb2c661486067e659dc7552f0a986603a6 | [
"Apache-2.0"
] | 15 | 2020-08-08T16:21:40.000Z | 2022-03-17T04:45:51.000Z | # Copyright 2019 Extreme Networks, 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 i... | 34.107527 | 96 | 0.666456 |
d3901c5c2b4293995ce5b2767aadc677d381a86e | 559 | py | Python | django_haveli_admin/templatetags/django_template_tags.py | purnendukar/django-haveli-admin | 97fd8eb89bf2dbdbdf206ff3f267cfa94fa0961d | [
"BSD-3-Clause"
] | 3 | 2021-11-07T17:26:06.000Z | 2021-11-12T14:26:19.000Z | django_haveli_admin/templatetags/django_template_tags.py | purnendu-pdgt/django-haveli-admin | 0dc09160f4ae9cc98ce4a37964fbec82ba62338f | [
"BSD-3-Clause"
] | null | null | null | django_haveli_admin/templatetags/django_template_tags.py | purnendu-pdgt/django-haveli-admin | 0dc09160f4ae9cc98ce4a37964fbec82ba62338f | [
"BSD-3-Clause"
] | 1 | 2020-09-09T13:55:25.000Z | 2020-09-09T13:55:25.000Z | from django.conf import settings
from django import template
# Depending on your django version, `reverse` and `NoReverseMatch` has been moved.
# From django 2.0 they've been moved to `django.urls`
try:
from django.urls import reverse, NoReverseMatch
except ImportError:
from django.core.urlresolvers import rev... | 29.421053 | 82 | 0.774597 |
d390ad35f1f75a5024b0e3c28f3a3904dc282f20 | 1,555 | py | Python | utils.py | ksajan/Dominant_color-HexCode- | 4e5487e5e534222a77fd8279ffbbb7b676a97dea | [
"MIT"
] | null | null | null | utils.py | ksajan/Dominant_color-HexCode- | 4e5487e5e534222a77fd8279ffbbb7b676a97dea | [
"MIT"
] | null | null | null | utils.py | ksajan/Dominant_color-HexCode- | 4e5487e5e534222a77fd8279ffbbb7b676a97dea | [
"MIT"
] | null | null | null | # import the necessary packages
import numpy as np
import cv2
#print(hist)
#color.astype("uint8")
"""
if [255,255,255] in normcolor:
normcolor = np.delete(normcolor, [255,255,255])
return normcolor
if [0,0,0] in normcolor:
normcolor = np.delete(normcolor, [0,0,0])
return normcolor
if [1... | 28.796296 | 64 | 0.669453 |
d3914a636ecdc5d216e629807b7d61aa41084744 | 3,031 | py | Python | html2txt/converters/html2markdown.py | renesugar/html2txt | 069ff7048417737f9072dea86dd6a33b31049b2a | [
"MIT"
] | null | null | null | html2txt/converters/html2markdown.py | renesugar/html2txt | 069ff7048417737f9072dea86dd6a33b31049b2a | [
"MIT"
] | null | null | null | html2txt/converters/html2markdown.py | renesugar/html2txt | 069ff7048417737f9072dea86dd6a33b31049b2a | [
"MIT"
] | 2 | 2021-09-20T21:47:22.000Z | 2021-12-10T03:59:58.000Z | import os
import sys
import argparse
from html2txt import parsers
#from importlib import reload # reload
#reload(parsers)
#!/usr/bin/env python3
# Copyright (c) 2020 Rene Sugar.
# License: MIT (http://www.opensource.org/licenses/mit-license.php)
if __name__ == "__main__":
main()
| 27.0625 | 111 | 0.684922 |
d391ef9e203cd6b88ad46e17124f330475edc703 | 6,311 | py | Python | models/GAN_D.py | pkulwj1994/AdversarialConsistentScoreMatching | f439f242f004ce06382ed72f2aa7daf9c262abfa | [
"MIT"
] | 119 | 2020-09-09T13:59:28.000Z | 2022-03-17T17:04:10.000Z | models/GAN_D.py | pkulwj1994/AdversarialConsistentScoreMatching | f439f242f004ce06382ed72f2aa7daf9c262abfa | [
"MIT"
] | 2 | 2020-11-13T03:26:22.000Z | 2021-03-19T23:04:33.000Z | models/GAN_D.py | pkulwj1994/AdversarialConsistentScoreMatching | f439f242f004ce06382ed72f2aa7daf9c262abfa | [
"MIT"
] | 19 | 2020-09-14T05:56:51.000Z | 2021-12-28T15:53:34.000Z | import torch
import torch.nn.utils.spectral_norm as spectral_norm
# TODO can i kill this
| 44.758865 | 118 | 0.555855 |
d39260545154fd2d5d15f18cd19472a84271771d | 4,038 | py | Python | rpxdock/tests/body/test_body.py | quecloud/rpxdock | 41f7f98f5dacf24fc95897910263a0bec2209e59 | [
"Apache-2.0"
] | null | null | null | rpxdock/tests/body/test_body.py | quecloud/rpxdock | 41f7f98f5dacf24fc95897910263a0bec2209e59 | [
"Apache-2.0"
] | null | null | null | rpxdock/tests/body/test_body.py | quecloud/rpxdock | 41f7f98f5dacf24fc95897910263a0bec2209e59 | [
"Apache-2.0"
] | 1 | 2020-04-13T20:07:52.000Z | 2020-04-13T20:07:52.000Z | import _pickle
from time import perf_counter
import numpy as np, rpxdock as rp, rpxdock.homog as hm
from rpxdock.body import Body
if __name__ == "__main__":
# from rpxdock.rosetta.triggers_init import get_pose_cached
# from tempfile import mkdtemp
# f1 = "rpxdock/data/pdb/C2_3hm4_1.pdb.gz"
# f2 = "rpxdock... | 33.65 | 81 | 0.603269 |
d3935d1addfb4820d9febfdcde59cfea52e486c1 | 1,922 | py | Python | language_apps/expr2/gen/Expr2Visitor.py | SadraGoudarzdashti/IUSTCompiler | 7aa24df7de10030c313ad2e8f3830d9e2b182ce1 | [
"MIT"
] | 3 | 2020-12-04T11:01:23.000Z | 2022-02-12T19:29:35.000Z | language_apps/expr2/gen/Expr2Visitor.py | SadraGoudarzdashti/IUSTCompiler | 7aa24df7de10030c313ad2e8f3830d9e2b182ce1 | [
"MIT"
] | null | null | null | language_apps/expr2/gen/Expr2Visitor.py | SadraGoudarzdashti/IUSTCompiler | 7aa24df7de10030c313ad2e8f3830d9e2b182ce1 | [
"MIT"
] | 30 | 2020-12-04T11:00:19.000Z | 2021-12-31T15:59:21.000Z | # Generated from D:/AnacondaProjects/iust_compilers_teaching/grammars\Expr2.g4 by ANTLR 4.8
from antlr4 import *
if __name__ is not None and "." in __name__:
from .Expr2Parser import Expr2Parser
else:
from Expr2Parser import Expr2Parser
# This class defines a complete generic visitor for a parse tree produced ... | 30.507937 | 91 | 0.735172 |
d396ca37920e848defb999ee20b01daf407d64e1 | 34 | py | Python | utils/__init__.py | toandaominh1997/ProductDetectionShopee | 9fe66b1e96ec3709630d486b66fc13a0fbc55a05 | [
"MIT"
] | null | null | null | utils/__init__.py | toandaominh1997/ProductDetectionShopee | 9fe66b1e96ec3709630d486b66fc13a0fbc55a05 | [
"MIT"
] | null | null | null | utils/__init__.py | toandaominh1997/ProductDetectionShopee | 9fe66b1e96ec3709630d486b66fc13a0fbc55a05 | [
"MIT"
] | 1 | 2020-07-06T07:15:43.000Z | 2020-07-06T07:15:43.000Z | from .utils import get_state_dict
| 17 | 33 | 0.852941 |
d397ce9d22d04657220849e6b59481774b329fa2 | 442 | py | Python | q2_api_client/clients/refresh_cache/refresh_cache_client.py | jcook00/q2-api-client | 4431af164eb4baf52e26e8842e017cad1609a279 | [
"BSD-2-Clause"
] | null | null | null | q2_api_client/clients/refresh_cache/refresh_cache_client.py | jcook00/q2-api-client | 4431af164eb4baf52e26e8842e017cad1609a279 | [
"BSD-2-Clause"
] | null | null | null | q2_api_client/clients/refresh_cache/refresh_cache_client.py | jcook00/q2-api-client | 4431af164eb4baf52e26e8842e017cad1609a279 | [
"BSD-2-Clause"
] | null | null | null | from q2_api_client.clients.base_q2_client import BaseQ2Client
from q2_api_client.endpoints.refresh_cache_endpoints import RefreshCacheEndpoint
| 29.466667 | 80 | 0.744344 |
d39b5b5c2f8b7b36185feda5514fb6b6d986e3a3 | 5,153 | py | Python | JumpscaleCore/clients/threebot/ThreebotClient.py | grimpy/jumpscaleX_core | c24d6d47fccc0801e578fedb376ef110f7a00bad | [
"Apache-2.0"
] | null | null | null | JumpscaleCore/clients/threebot/ThreebotClient.py | grimpy/jumpscaleX_core | c24d6d47fccc0801e578fedb376ef110f7a00bad | [
"Apache-2.0"
] | null | null | null | JumpscaleCore/clients/threebot/ThreebotClient.py | grimpy/jumpscaleX_core | c24d6d47fccc0801e578fedb376ef110f7a00bad | [
"Apache-2.0"
] | null | null | null | import nacl
from Jumpscale import j
import binascii
JSConfigBase = j.baseclasses.object_config
from nacl.signing import VerifyKey
from nacl.public import PrivateKey, PublicKey, SealedBox
from Jumpscale.clients.gedis.GedisClient import GedisClientActors
| 37.889706 | 151 | 0.619445 |
d39bc4b7aec9047b6724d025f5c54216daae68b1 | 3,669 | py | Python | f5/bigip/tm/analytics/test/unit/test_dos_vis_common.py | hixio-mh/f5-common-python | 53038d44afa381b70f6e2bb459f7b9b943f3172d | [
"Apache-2.0"
] | 272 | 2016-02-23T06:05:44.000Z | 2022-02-20T02:09:32.000Z | f5/bigip/tm/analytics/test/unit/test_dos_vis_common.py | hixio-mh/f5-common-python | 53038d44afa381b70f6e2bb459f7b9b943f3172d | [
"Apache-2.0"
] | 1,103 | 2016-02-11T17:48:03.000Z | 2022-02-15T17:13:37.000Z | f5/bigip/tm/analytics/test/unit/test_dos_vis_common.py | hixio-mh/f5-common-python | 53038d44afa381b70f6e2bb459f7b9b943f3172d | [
"Apache-2.0"
] | 167 | 2016-02-11T17:48:21.000Z | 2022-01-17T20:13:05.000Z | # Copyright 2018 F5 Networks 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 writi... | 37.824742 | 91 | 0.738348 |
d39c8a12749bed6d31aa0a5acbe582b417d5d34f | 2,822 | py | Python | clustering_methods/kmeans.py | AlgoLab/celluloid | 7d4e9d20563a1c140879433b371fd10a1708b362 | [
"MIT"
] | null | null | null | clustering_methods/kmeans.py | AlgoLab/celluloid | 7d4e9d20563a1c140879433b371fd10a1708b362 | [
"MIT"
] | null | null | null | clustering_methods/kmeans.py | AlgoLab/celluloid | 7d4e9d20563a1c140879433b371fd10a1708b362 | [
"MIT"
] | 1 | 2019-11-09T02:50:03.000Z | 2019-11-09T02:50:03.000Z | import numpy as np
from sklearn.cluster import KMeans
import argparse, os, sys, errno
parser = argparse.ArgumentParser(description='K-means clustering')
parser.add_argument('-f', '--file', type=str, required=True,
help='SCS matrix')
parser.add_argument('-k', type=int, required=True,
... | 32.813953 | 88 | 0.644578 |
d39cc52a8b68a5236fbfd51eb2a40568ace59d48 | 9,725 | py | Python | uai_tools/uai_tool.py | soar-zhengjian/uai-sdk | e195bd3fb2b97aca7dac6722d332c25b7070481f | [
"Apache-2.0"
] | 38 | 2017-04-26T04:00:09.000Z | 2022-02-10T02:51:05.000Z | uai_tools/uai_tool.py | soar-zhengjian/uai-sdk | e195bd3fb2b97aca7dac6722d332c25b7070481f | [
"Apache-2.0"
] | 17 | 2017-11-20T20:47:09.000Z | 2022-02-09T23:48:46.000Z | uai_tools/uai_tool.py | soar-zhengjian/uai-sdk | e195bd3fb2b97aca7dac6722d332c25b7070481f | [
"Apache-2.0"
] | 28 | 2017-07-08T05:23:13.000Z | 2020-08-18T03:12:27.000Z | # Copyright 2017 The UAI-SDK 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 applicable... | 54.027778 | 117 | 0.778303 |
d39d87163c302a5224242e13bcd3a257bf4c8bac | 22,731 | py | Python | lib/extraction/XRR.py | ArnaudHemmerle/JupyLabBook | 1975eabc85e73e28432514fea2199fddd033ecfc | [
"MIT"
] | null | null | null | lib/extraction/XRR.py | ArnaudHemmerle/JupyLabBook | 1975eabc85e73e28432514fea2199fddd033ecfc | [
"MIT"
] | 20 | 2020-05-07T16:47:14.000Z | 2021-04-01T10:15:12.000Z | lib/extraction/XRR.py | ArnaudHemmerle/JupyLabBook | 1975eabc85e73e28432514fea2199fddd033ecfc | [
"MIT"
] | null | null | null | # custom libraries
from lib.extraction.common import PyNexus as PN
from lib.extraction.common import Check_dead_pixels
from lib.extraction import PilatusSum as PilatusSum
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import matplotlib.colors as color... | 36.427885 | 117 | 0.607232 |
d39eeefc2b81801a28da34b63dbf23e3d714e769 | 888 | py | Python | aiof/data/goal.py | gkama/aiof-metadata | 1b29e39c644bc3f020884956e5e4741ce5b03550 | [
"MIT"
] | 3 | 2020-06-07T22:24:06.000Z | 2021-08-10T05:14:09.000Z | aiof/data/goal.py | gkama/aiof-metadata | 1b29e39c644bc3f020884956e5e4741ce5b03550 | [
"MIT"
] | 2 | 2021-04-21T13:54:14.000Z | 2021-06-10T18:06:01.000Z | aiof/data/goal.py | kamacharovs/aiof-metadata | 1b29e39c644bc3f020884956e5e4741ce5b03550 | [
"MIT"
] | null | null | null | from datetime import datetime
from pydantic import BaseModel
from typing import Optional, List
from aiof.data.asset import Asset
from aiof.data.liability import Liability
# Financial Goals
# - Mandatory short-term goals | 23.368421 | 41 | 0.72973 |
d3a0e130e8b9d7d7c42e0164502452cf061d2603 | 499 | py | Python | app/controllers/__init__.py | s1hofmann/MrHyde2.0-Backbone | d1d95cb8ba3e2db60c75218625453b915e87e1bf | [
"MIT"
] | 3 | 2017-05-14T20:11:49.000Z | 2018-04-12T03:56:06.000Z | app/controllers/__init__.py | s1hofmann/MrHyde2.0-Backbone | d1d95cb8ba3e2db60c75218625453b915e87e1bf | [
"MIT"
] | null | null | null | app/controllers/__init__.py | s1hofmann/MrHyde2.0-Backbone | d1d95cb8ba3e2db60c75218625453b915e87e1bf | [
"MIT"
] | null | null | null | from flask import Blueprint
from app import current_config
jekyll = Blueprint('jekyll',
__name__,
static_folder=current_config.STATICDIR,
template_folder=current_config.TEMPLATEDIR)
status = Blueprint('status',
__name__,
s... | 29.352941 | 62 | 0.655311 |
d3a1dc062b30267f8b6a7cc3486fac2bf169ce7d | 1,808 | py | Python | tests/test_util.py | BrechtBa/knxpy | 9e486f4a4623f586091e72cc6472441f3efbdd72 | [
"MIT"
] | null | null | null | tests/test_util.py | BrechtBa/knxpy | 9e486f4a4623f586091e72cc6472441f3efbdd72 | [
"MIT"
] | null | null | null | tests/test_util.py | BrechtBa/knxpy | 9e486f4a4623f586091e72cc6472441f3efbdd72 | [
"MIT"
] | null | null | null | #!/usr/bin/env/ python
################################################################################
# Copyright (c) 2016 Daniel Matuschek
# This file is part of knxpy.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation fil... | 34.769231 | 80 | 0.626659 |
d3a21b10fca0823c4f8754f8d101be5090122c5c | 122 | py | Python | py/twombly/__init__.py | zshipko/libtwombly | 6a4b74b0a293da2a50e06e6fc9850327e01c7678 | [
"MIT"
] | 7 | 2015-09-10T16:33:40.000Z | 2018-07-15T07:54:41.000Z | py/twombly/__init__.py | zshipko/libtwombly | 6a4b74b0a293da2a50e06e6fc9850327e01c7678 | [
"MIT"
] | 2 | 2015-03-21T01:18:11.000Z | 2018-03-06T06:24:22.000Z | py/twombly/__init__.py | zshipko/libtwombly | 6a4b74b0a293da2a50e06e6fc9850327e01c7678 | [
"MIT"
] | 2 | 2015-09-08T08:55:29.000Z | 2020-01-09T08:42:27.000Z | from __future__ import absolute_import
from .drawing import *
try:
from . import path
except ImportError:
pass
| 12.2 | 38 | 0.737705 |
d3a31c5c3c5461ce7d67c2eebcd521d785635f6d | 815 | py | Python | QUIS SISTER 1/Muhammad Syiarul Amrullah/Semaphore.py | muhammadarl/Python-Pararel_SISTER | c38c694b059c545f66c7f4dfa50746bffc6e4e4f | [
"MIT"
] | null | null | null | QUIS SISTER 1/Muhammad Syiarul Amrullah/Semaphore.py | muhammadarl/Python-Pararel_SISTER | c38c694b059c545f66c7f4dfa50746bffc6e4e4f | [
"MIT"
] | 2 | 2022-03-23T13:29:15.000Z | 2022-03-23T15:55:47.000Z | QUIS SISTER 1/Muhammad Syiarul Amrullah/Semaphore.py | muhammadarl/Python-Pararel_SISTER | c38c694b059c545f66c7f4dfa50746bffc6e4e4f | [
"MIT"
] | 2 | 2022-03-23T03:36:52.000Z | 2022-03-23T03:41:55.000Z | import logging
import threading
import time
import random
LOG_FORMAT = '%(asctime)s %(threadName)-17s %(levelname)-8s %(message)s'
logging.basicConfig(level=logging.INFO, format=LOG_FORMAT)
semaphore = threading.Semaphore(0)
item = 0
if __name__ == "__main__":
main()
| 19.404762 | 72 | 0.655215 |
d3a46ac9b50468413362c945c49af04d8ae59b76 | 10,094 | py | Python | customtkinter/customtkinter_entry.py | pythub-project/CustomTkinter | bb1fe2562517928dde5a98e0dce650b9a3ef2380 | [
"CC0-1.0"
] | null | null | null | customtkinter/customtkinter_entry.py | pythub-project/CustomTkinter | bb1fe2562517928dde5a98e0dce650b9a3ef2380 | [
"CC0-1.0"
] | null | null | null | customtkinter/customtkinter_entry.py | pythub-project/CustomTkinter | bb1fe2562517928dde5a98e0dce650b9a3ef2380 | [
"CC0-1.0"
] | null | null | null | import tkinter
import sys
from .customtkinter_tk import CTk
from .customtkinter_frame import CTkFrame
from .appearance_mode_tracker import AppearanceModeTracker
from .customtkinter_theme_manager import CTkThemeManager
from .customtkinter_canvas import CTkCanvas
from .customtkinter_settings import CTkSettings
from .cus... | 42.953191 | 167 | 0.614821 |
d3a6ae548c3d655debbdd8dce43920e79c4f2ed3 | 883 | py | Python | src/python/entityfx/dhrystone_benchmark.py | Civil/EntityFX-Bench | ccc664e372f2319e53cbd96fb22317a76eff2b2a | [
"MIT"
] | 11 | 2020-10-21T08:38:26.000Z | 2022-01-28T09:09:31.000Z | src/python/entityfx/dhrystone_benchmark.py | Civil/EntityFX-Bench | ccc664e372f2319e53cbd96fb22317a76eff2b2a | [
"MIT"
] | 2 | 2021-12-14T20:11:53.000Z | 2021-12-21T11:00:37.000Z | src/python/entityfx/dhrystone_benchmark.py | Civil/EntityFX-Bench | ccc664e372f2319e53cbd96fb22317a76eff2b2a | [
"MIT"
] | 7 | 2020-10-13T12:03:02.000Z | 2022-01-29T15:33:04.000Z |
from entityfx.benchmark_base import BenchmarkBase
from entityfx.dhrystone2 import Dhrystone2
from entityfx.writer import Writer
| 33.961538 | 101 | 0.688562 |
d3a6c62c5a61e17b49724465a6921872c6a131d6 | 694 | py | Python | dorsual/urls.py | thodel/heraldik | 5be41c9a63f971723f8601757d554a4759eba48e | [
"MIT"
] | null | null | null | dorsual/urls.py | thodel/heraldik | 5be41c9a63f971723f8601757d554a4759eba48e | [
"MIT"
] | 1 | 2020-06-16T10:12:48.000Z | 2020-06-17T11:58:14.000Z | dorsual/urls.py | thodel/heraldik | 5be41c9a63f971723f8601757d554a4759eba48e | [
"MIT"
] | 1 | 2020-06-16T09:50:58.000Z | 2020-06-16T09:50:58.000Z | from django.urls import path
from . import views
urlpatterns = [
path("", views.IndexView.as_view(), name="index"),
path('loginTranskribus/', views.loginTranskribus, name='loginTranskribus'),
path('getCollectionList/', views.getCollectionList, name='getCollectionList'),
path('getDocume... | 46.266667 | 86 | 0.693084 |
d3a8a2f79d19fbc852c06ff0ec943aa182f437a2 | 458 | py | Python | tests/conftest.py | aanania/PyXTBClient | f0d70e03ea0a57e6f57fdd8d2ed1e596e732a1a3 | [
"MIT"
] | 11 | 2018-09-21T21:30:42.000Z | 2021-03-11T08:46:35.000Z | tests/conftest.py | aanania/PyXTBClient | f0d70e03ea0a57e6f57fdd8d2ed1e596e732a1a3 | [
"MIT"
] | 1 | 2020-04-10T10:47:26.000Z | 2020-04-10T10:47:26.000Z | tests/conftest.py | aanania/PyXTBClient | f0d70e03ea0a57e6f57fdd8d2ed1e596e732a1a3 | [
"MIT"
] | 3 | 2019-03-07T14:07:25.000Z | 2020-04-10T15:28:09.000Z | from client import XTBClient
from settings import XTB_USER, XTB_PASS
import pytest
| 28.625 | 102 | 0.722707 |
d3a8fa7d4f538e6d4f3b23579f159cc8cfadaa69 | 480 | py | Python | 4/oop6.py | ikramulkayes/Python_season2 | d057460d07c5d2d218ecd52e08c1d355add44df2 | [
"MIT"
] | null | null | null | 4/oop6.py | ikramulkayes/Python_season2 | d057460d07c5d2d218ecd52e08c1d355add44df2 | [
"MIT"
] | null | null | null | 4/oop6.py | ikramulkayes/Python_season2 | d057460d07c5d2d218ecd52e08c1d355add44df2 | [
"MIT"
] | null | null | null |
car = Vehicle()
car.print_position()
car.moveUp()
car.print_position()
car.moveLeft()
car.print_position()
car.moveDown()
car.print_position()
car.moveRight() | 20 | 30 | 0.604167 |
d3a991c0aed58b17f188cc2571af2e99f9fa68bc | 59 | py | Python | test_pyright_hanging_3.py | vn17/bandit | 50f382eba0ffa5da2fe70d2f0de7403a40ab2ec3 | [
"Apache-2.0"
] | null | null | null | test_pyright_hanging_3.py | vn17/bandit | 50f382eba0ffa5da2fe70d2f0de7403a40ab2ec3 | [
"Apache-2.0"
] | null | null | null | test_pyright_hanging_3.py | vn17/bandit | 50f382eba0ffa5da2fe70d2f0de7403a40ab2ec3 | [
"Apache-2.0"
] | 1 | 2022-01-28T23:09:01.000Z | 2022-01-28T23:09:01.000Z | import numpy as np
reveal_type(np.zeros(1) - np.zeros(1))
| 14.75 | 38 | 0.711864 |
d3aad7914ff38df51594d2a2859994f30a2abace | 15,233 | py | Python | attendance_gui.py | romiembaye/wireless-student-attendance-system | 6609ee61e8b5d3be9938c94dbd2159e87d4a3198 | [
"MIT"
] | null | null | null | attendance_gui.py | romiembaye/wireless-student-attendance-system | 6609ee61e8b5d3be9938c94dbd2159e87d4a3198 | [
"MIT"
] | null | null | null | attendance_gui.py | romiembaye/wireless-student-attendance-system | 6609ee61e8b5d3be9938c94dbd2159e87d4a3198 | [
"MIT"
] | null | null | null | import os
import csv
import smtplib
import datetime
import openpyxl
import threading
from tkinter import *
from email import encoders
from tkinter import messagebox
import paho.mqtt.client as mqtt
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
... | 45.471642 | 114 | 0.590297 |
d3ab1ebd9e7f99007d2c559d8136040e04d0a3aa | 1,626 | py | Python | recordpump.py | rsanger/heatpump-controller | 5007e4abf8d4f3b0be5c212663f219209324f8ec | [
"MIT"
] | 3 | 2018-02-07T17:51:56.000Z | 2019-01-31T01:47:41.000Z | recordpump.py | rsanger/heatpump-controller | 5007e4abf8d4f3b0be5c212663f219209324f8ec | [
"MIT"
] | null | null | null | recordpump.py | rsanger/heatpump-controller | 5007e4abf8d4f3b0be5c212663f219209324f8ec | [
"MIT"
] | 3 | 2017-03-22T18:53:48.000Z | 2021-12-28T13:53:51.000Z | # Copyright (c) 2017 Richard Sanger
#
# Licensed under MIT
#
# A simple debugging script to record and decode mode2 messages LIRC
# and decodes them
import os
import struct
import select
from heatpump import HeatPump
PULSE_BIT = 0x01000000
PULSE_MASK = 0x00FFFFFF
f = os.open("/dev/lirc0", os.O_RDONLY)
assert f > 0
g... | 25.40625 | 68 | 0.473555 |
d3ab5af88228deddb8edfd51c44a2a3022f1333d | 119 | py | Python | server/src/dashboard/dash_config.py | openml/openml.org | dadc4f79c159058776500b204977a1062b927d4c | [
"BSD-3-Clause"
] | 16 | 2018-10-17T19:35:11.000Z | 2022-03-31T23:37:00.000Z | server/src/dashboard/dash_config.py | PortML/openml.org | b526fae6c0ba2df0ccebf60f1dd703368ed394ec | [
"BSD-3-Clause"
] | 192 | 2018-10-17T17:31:03.000Z | 2022-03-27T23:55:51.000Z | server/src/dashboard/dash_config.py | PortML/openml.org | b526fae6c0ba2df0ccebf60f1dd703368ed394ec | [
"BSD-3-Clause"
] | 8 | 2019-04-15T11:47:32.000Z | 2021-12-15T13:23:54.000Z | # Config parameters for dash app
BASE_URL = "http://127.0.0.1:5000/dashboard/"
DASH_CACHING = True
COMMON_CACHE = True
| 23.8 | 45 | 0.747899 |
d3adcd548eceda1d220a8df2a63b93a12edcfa89 | 15,139 | py | Python | seqvec/seqvec.py | Rostlab/SeqVec | 0f10e187b7160f63c5f2d38f1e12425889638179 | [
"MIT"
] | 71 | 2019-05-08T18:57:46.000Z | 2022-03-23T17:15:45.000Z | seqvec/seqvec.py | Rostlab/SeqVec | 0f10e187b7160f63c5f2d38f1e12425889638179 | [
"MIT"
] | 13 | 2019-11-26T13:51:11.000Z | 2022-01-12T14:46:38.000Z | seqvec/seqvec.py | Rostlab/SeqVec | 0f10e187b7160f63c5f2d38f1e12425889638179 | [
"MIT"
] | 10 | 2019-11-08T12:56:04.000Z | 2022-01-16T04:39:18.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import gzip
import json
import logging
import urllib.request
from pathlib import Path
from typing import Dict, List, Tuple, Generator
import h5py
import numpy as np
import torch
from allennlp.commands.elmo import ElmoEmbedder
from tqdm import tqdm
logger... | 35.874408 | 166 | 0.625867 |
d3add85756a4fe737520f67737899256ef1e17ce | 3,261 | py | Python | grslra/tools.py | clemenshage/grslra | 00f61b4ef08208d12e8e803d10f8ebbe16d8614a | [
"MIT"
] | null | null | null | grslra/tools.py | clemenshage/grslra | 00f61b4ef08208d12e8e803d10f8ebbe16d8614a | [
"MIT"
] | null | null | null | grslra/tools.py | clemenshage/grslra | 00f61b4ef08208d12e8e803d10f8ebbe16d8614a | [
"MIT"
] | null | null | null | import numpy as np
import json
import os
| 25.677165 | 94 | 0.567924 |
d3ae82623bff425e28af5f552b9b90f5490745b4 | 780 | py | Python | flattentool/tests/test_cli.py | Xtuden-com/flatten-tool | c67c918daf9b940b08cb43bdd9c00371ba5ef2f1 | [
"MIT"
] | 86 | 2015-07-16T10:23:47.000Z | 2022-03-29T08:11:40.000Z | flattentool/tests/test_cli.py | Xtuden-com/flatten-tool | c67c918daf9b940b08cb43bdd9c00371ba5ef2f1 | [
"MIT"
] | 275 | 2015-03-31T14:51:31.000Z | 2022-03-07T14:54:05.000Z | flattentool/tests/test_cli.py | Xtuden-com/flatten-tool | c67c918daf9b940b08cb43bdd9c00371ba5ef2f1 | [
"MIT"
] | 16 | 2015-11-06T15:41:30.000Z | 2021-07-16T00:18:32.000Z | # hint: test_argparse is provided by libpythonX.Y-testsuite on ubuntu
from test.test_argparse import ArgumentParserError, stderr_to_parser_error
import pytest
from flattentool import cli
def test_create_parser():
"""
Command line arguments that should be acceptable
"""
parser = cli.create_parser()
... | 27.857143 | 76 | 0.735897 |
d3af01baabb0bf8a6d526c06bb838f56579f9368 | 1,758 | py | Python | src/ui/path_item_ui.py | yemenPython/TheBossBaby | 86e447b3fa360646a179e62c70b1750da5427541 | [
"MIT"
] | 1 | 2021-12-16T16:31:29.000Z | 2021-12-16T16:31:29.000Z | src/ui/path_item_ui.py | yemenPython/TheBossBaby | 86e447b3fa360646a179e62c70b1750da5427541 | [
"MIT"
] | null | null | null | src/ui/path_item_ui.py | yemenPython/TheBossBaby | 86e447b3fa360646a179e62c70b1750da5427541 | [
"MIT"
] | 1 | 2021-12-16T16:31:35.000Z | 2021-12-16T16:31:35.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'path_item.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, Qt... | 38.217391 | 80 | 0.686007 |
d3af03d0b8d4cec429e097fd2c982c0b1aff5a01 | 681 | py | Python | geo_to_csv.py | simberaj/mobilib | ae350d095a34f53704bd4aaaf7f45e573bda779a | [
"MIT"
] | null | null | null | geo_to_csv.py | simberaj/mobilib | ae350d095a34f53704bd4aaaf7f45e573bda779a | [
"MIT"
] | null | null | null | geo_to_csv.py | simberaj/mobilib | ae350d095a34f53704bd4aaaf7f45e573bda779a | [
"MIT"
] | null | null | null | """Transform a geospatial file to a GeoCSV (WKT)."""
import operator
import geopandas as gpd
import mobilib.argparser
parser = mobilib.argparser.default(__doc__)
parser.add_argument('in_file', help='GDAL-compatible file')
parser.add_argument('out_file', help='path to output CSV')
if __name__ == '__main__':
ar... | 29.608696 | 79 | 0.688693 |
d3af6e41ab30d1ce91c30bacdb82ca34f8dd79a5 | 1,751 | py | Python | modify-subjects/utils.py | cacosandon/are-you-looking | be25d799eed452ddfd1ff393fddd53897ef94a4a | [
"MIT"
] | null | null | null | modify-subjects/utils.py | cacosandon/are-you-looking | be25d799eed452ddfd1ff393fddd53897ef94a4a | [
"MIT"
] | null | null | null | modify-subjects/utils.py | cacosandon/are-you-looking | be25d799eed452ddfd1ff393fddd53897ef94a4a | [
"MIT"
] | null | null | null | import json
import sys
def print_progress(iteration, total, prefix='', suffix='', decimals=1, bar_length=100):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)
prefix ... | 36.479167 | 106 | 0.61679 |
d3afd7ece6c84d77e23173308d21099c79031ed6 | 7,969 | py | Python | server/app.py | Algoanna/goanna-run | 4c5c0d83238cfa0b7cf552a2fabeaadd23def22d | [
"MIT"
] | null | null | null | server/app.py | Algoanna/goanna-run | 4c5c0d83238cfa0b7cf552a2fabeaadd23def22d | [
"MIT"
] | null | null | null | server/app.py | Algoanna/goanna-run | 4c5c0d83238cfa0b7cf552a2fabeaadd23def22d | [
"MIT"
] | null | null | null | import os, csv
import numpy as np
import urllib.request, json
from flask import Flask, escape, request, render_template, jsonify
from leaderboard.leaderboard import Leaderboard
import requests
import lxml.html as lh
import pandas as pd
from algosdk.v2client import algod
from algosdk import account, mnemonic
from co... | 31.876 | 94 | 0.583762 |
6c8f1368b4b2faf32d859d74436012deac4e2f27 | 2,827 | py | Python | Code/IPA/dijkstra.py | Babdus/Protolanguage | 050aeed5e7ac5905515a887dcbab434457ae2f47 | [
"MIT"
] | 4 | 2019-06-14T09:31:51.000Z | 2019-11-14T22:45:36.000Z | Code/IPA/dijkstra.py | Babdus/Protolanguage | 050aeed5e7ac5905515a887dcbab434457ae2f47 | [
"MIT"
] | 2 | 2019-04-25T14:09:42.000Z | 2021-06-11T12:55:42.000Z | Code/IPA/dijkstra.py | Babdus/Protolanguage | 050aeed5e7ac5905515a887dcbab434457ae2f47 | [
"MIT"
] | null | null | null | from fibonacci_heap_mod import Fibonacci_heap as fh
from IPA.IPAData import *
| 41.573529 | 142 | 0.597099 |
6c8f6f5b606269573ee9e3bfd8fed2b6b02cb54b | 637 | py | Python | reptile/urls.py | kartoza/kbims-reptile | 4273857d7a2b8f373622f8e06149581bd43703c5 | [
"MIT"
] | null | null | null | reptile/urls.py | kartoza/kbims-reptile | 4273857d7a2b8f373622f8e06149581bd43703c5 | [
"MIT"
] | null | null | null | reptile/urls.py | kartoza/kbims-reptile | 4273857d7a2b8f373622f8e06149581bd43703c5 | [
"MIT"
] | null | null | null | # coding=utf-8
from django.conf.urls import url
from reptile.api_views.reptile_collection_record import (
ReptileCollectionList,
ReptileCollectionDetail,
)
from django.contrib.auth.decorators import login_required
from reptile.views.csv_upload import CsvUploadView
api_urls = [
url(r'^api/reptile-collecti... | 25.48 | 72 | 0.722135 |
6c91e45aa3f7f410f20888f0c707dfdcc826ab8f | 5,359 | py | Python | EvalBox/Attack/AdvAttack/blb.py | Yzx835/AISafety | eb09551814898c7f6d86641b47faf7845c948640 | [
"MIT"
] | 32 | 2020-10-20T06:12:48.000Z | 2022-03-30T03:31:24.000Z | EvalBox/Attack/AdvAttack/blb.py | Yzx835/AISafety | eb09551814898c7f6d86641b47faf7845c948640 | [
"MIT"
] | 2 | 2021-03-24T13:54:50.000Z | 2021-10-11T13:37:31.000Z | EvalBox/Attack/AdvAttack/blb.py | Yzx835/AISafety | eb09551814898c7f6d86641b47faf7845c948640 | [
"MIT"
] | 19 | 2020-10-22T05:42:51.000Z | 2022-02-04T07:07:39.000Z | #!/usr/bin/env python
# coding=UTF-8
"""
@Author: Tao Hang
@LastEditors: Tao Hang
@Description:
@Date: 2019-03-29 10:41:16
@LastEditTime: 2019-04-15 09:25:43
"""
import numpy as np
import torch
from torch.autograd import Variable
from EvalBox.Attack.AdvAttack.attack import Attack
| 35.726667 | 113 | 0.54861 |