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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0643deae65bf97584696f33e80afdf35b197abcf | 1,677 | py | Python | robit/core/alert.py | stratusadv/robit | 7e0414d0ed3d98bb2c9a8785bf36961ac08f1d27 | [
"MIT"
] | null | null | null | robit/core/alert.py | stratusadv/robit | 7e0414d0ed3d98bb2c9a8785bf36961ac08f1d27 | [
"MIT"
] | 1 | 2021-11-01T18:51:04.000Z | 2021-11-01T18:51:04.000Z | robit/core/alert.py | stratusadv/robit | 7e0414d0ed3d98bb2c9a8785bf36961ac08f1d27 | [
"MIT"
] | null | null | null | import logging
from datetime import datetime, timedelta
from robit.core.health import Health
| 37.266667 | 119 | 0.627907 |
06440df8fe03e6136138c3851bd70beb0db8af44 | 5,823 | py | Python | validate_tags/validate_master.py | asurion/Hibernate | b95c68ba8dba6a43baea288ade231944d1719988 | [
"Apache-2.0"
] | 9 | 2017-06-06T17:47:57.000Z | 2021-08-06T18:30:11.000Z | validate_tags/validate_master.py | asurion/Hibernate | b95c68ba8dba6a43baea288ade231944d1719988 | [
"Apache-2.0"
] | null | null | null | validate_tags/validate_master.py | asurion/Hibernate | b95c68ba8dba6a43baea288ade231944d1719988 | [
"Apache-2.0"
] | null | null | null | import datetime
import pytz
from utils.timezones import time_zones
from utils.CalculateHours import calc_hours
| 35.290909 | 117 | 0.493732 |
0647d34191beaa453acced9a85d7fac8926ac453 | 110 | py | Python | pre_questionnaire/admin.py | AurelienNioche/ModelingMadeEasyApp | dbb738dda204906c5f4b7aeb9c71feea961a4cce | [
"MIT"
] | null | null | null | pre_questionnaire/admin.py | AurelienNioche/ModelingMadeEasyApp | dbb738dda204906c5f4b7aeb9c71feea961a4cce | [
"MIT"
] | null | null | null | pre_questionnaire/admin.py | AurelienNioche/ModelingMadeEasyApp | dbb738dda204906c5f4b7aeb9c71feea961a4cce | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import PreQuestionnaire
admin.site.register(PreQuestionnaire)
| 18.333333 | 37 | 0.845455 |
0648e18f81ac883f3b49a5656d1320a8eddbf0ed | 5,014 | py | Python | unitorch/score/voc_map.py | fuliucansheng/UniTorch | 47038321593ce4e7eabda555bd58c0cf89482146 | [
"MIT"
] | 2 | 2022-02-05T08:52:00.000Z | 2022-03-27T07:01:34.000Z | unitorch/score/voc_map.py | Lixin-Qian/unitorch | 47038321593ce4e7eabda555bd58c0cf89482146 | [
"MIT"
] | null | null | null | unitorch/score/voc_map.py | Lixin-Qian/unitorch | 47038321593ce4e7eabda555bd58c0cf89482146 | [
"MIT"
] | 1 | 2022-03-27T07:01:13.000Z | 2022-03-27T07:01:13.000Z | import numpy as np
from collections import defaultdict
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union
def _voc_ap(
rec,
prec,
use_07_metric=False,
):
"""Compute VOC AP given precision and recall. If use_07_metric is true, uses
the VOC 07 11-point method (default:False).
... | 33.426667 | 103 | 0.553849 |
06499670b453111a27b20a04dcc90e10b1a775c3 | 1,418 | py | Python | tests/_test_callable_py3.py | youknowone/callable | a31ea23103d7df156c30d990c5c249844ce302f6 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/_test_callable_py3.py | youknowone/callable | a31ea23103d7df156c30d990c5c249844ce302f6 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/_test_callable_py3.py | youknowone/callable | a31ea23103d7df156c30d990c5c249844ce302f6 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null |
import asyncio
from callable import Callable
from signature import signature
import pytest
| 28.938776 | 85 | 0.568406 |
06499d2a878e935b1bbb4ea1ae0081bd6e6ed4b7 | 75 | py | Python | .metadata/.plugins/org.python.pydev.shared_interactive_console/history.py | fullerene12/VOTA | 3a5cfc1e210ac7ea274537a8d189b54660416599 | [
"MIT"
] | null | null | null | .metadata/.plugins/org.python.pydev.shared_interactive_console/history.py | fullerene12/VOTA | 3a5cfc1e210ac7ea274537a8d189b54660416599 | [
"MIT"
] | null | null | null | .metadata/.plugins/org.python.pydev.shared_interactive_console/history.py | fullerene12/VOTA | 3a5cfc1e210ac7ea274537a8d189b54660416599 | [
"MIT"
] | 1 | 2021-08-01T22:39:18.000Z | 2021-08-01T22:39:18.000Z | import sys; print('%s %s' % (sys.executable or sys.platform, sys.version))
| 37.5 | 74 | 0.693333 |
064ab2c6467200414b067feed1868bd5e05cfaa4 | 1,293 | py | Python | caravel/loaders/_png.py | neurospin/pycaravel | 412d37ae1b06afcc9645e01a096bbe2674cfe47a | [
"CECILL-B"
] | null | null | null | caravel/loaders/_png.py | neurospin/pycaravel | 412d37ae1b06afcc9645e01a096bbe2674cfe47a | [
"CECILL-B"
] | null | null | null | caravel/loaders/_png.py | neurospin/pycaravel | 412d37ae1b06afcc9645e01a096bbe2674cfe47a | [
"CECILL-B"
] | 1 | 2020-08-27T13:17:00.000Z | 2020-08-27T13:17:00.000Z | # coding: utf-8
##########################################################################
# NSAp - Copyright (C) CEA, 2020
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
# for det... | 24.865385 | 74 | 0.520495 |
064ad9d1f980f75038d7cfdfdcbb95549772aa8a | 92 | py | Python | src/auth/__init__.py | MarkStefanovic/todo-api | fb6198511712df853e693787839533f0c9956178 | [
"MIT"
] | null | null | null | src/auth/__init__.py | MarkStefanovic/todo-api | fb6198511712df853e693787839533f0c9956178 | [
"MIT"
] | null | null | null | src/auth/__init__.py | MarkStefanovic/todo-api | fb6198511712df853e693787839533f0c9956178 | [
"MIT"
] | null | null | null | from src.auth.adapter import *
from src.auth.domain import *
from src.auth.service import *
| 23 | 30 | 0.771739 |
064ca7c37993e4810c14d5f7e1d0f4a40a067487 | 8,098 | py | Python | video_utils.py | Domhnall-Liopa/Lip2Wav | 236ae24cd7945da8a75ddea1cfdc3da271c3c59f | [
"MIT"
] | null | null | null | video_utils.py | Domhnall-Liopa/Lip2Wav | 236ae24cd7945da8a75ddea1cfdc3da271c3c59f | [
"MIT"
] | null | null | null | video_utils.py | Domhnall-Liopa/Lip2Wav | 236ae24cd7945da8a75ddea1cfdc3da271c3c59f | [
"MIT"
] | null | null | null | import json
import random
import re
import subprocess
import tempfile
from datetime import timedelta
import cv2
import numpy as np
import requests
from vidaug import augmentors as va
# this is a static build from https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-4.4.1-i686-static.tar.xz
# requires new ffmpeg v... | 32.785425 | 216 | 0.67918 |
064f53cd615575e4bc66f6d26d74337b90be2852 | 621 | py | Python | aflcov/vis.py | axt/afl-cov-vis | 7806fa430113732790563b0f15884a087ebd21ea | [
"BSD-2-Clause"
] | 29 | 2017-11-12T09:35:01.000Z | 2022-02-17T09:29:54.000Z | aflcov/vis.py | usc-isi-bass/afl-cov | 18e305d101443d8a06c46f9ac080dd45ca13d8bb | [
"BSD-2-Clause"
] | 2 | 2017-11-12T09:40:43.000Z | 2018-01-19T10:37:17.000Z | aflcov/vis.py | usc-isi-bass/afl-cov | 18e305d101443d8a06c46f9ac080dd45ca13d8bb | [
"BSD-2-Clause"
] | 6 | 2017-11-12T09:50:20.000Z | 2022-02-22T06:01:17.000Z | from bingraphvis.base import Content
| 31.05 | 130 | 0.481481 |
064faa0fae768ef7598b80938b851b966512e6ab | 3,418 | py | Python | corehq/couchapps/tests/test_all_docs.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2020-05-05T13:10:01.000Z | 2020-05-05T13:10:01.000Z | corehq/couchapps/tests/test_all_docs.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2019-12-09T14:00:14.000Z | 2019-12-09T14:00:14.000Z | corehq/couchapps/tests/test_all_docs.py | MaciejChoromanski/commcare-hq | fd7f65362d56d73b75a2c20d2afeabbc70876867 | [
"BSD-3-Clause"
] | 5 | 2015-11-30T13:12:45.000Z | 2019-07-01T19:27:07.000Z | from __future__ import absolute_import
from __future__ import unicode_literals
from corehq.dbaccessors.couchapps.all_docs import \
get_all_doc_ids_for_domain_grouped_by_db, get_doc_count_by_type, \
delete_all_docs_by_doc_type, get_doc_count_by_domain_type
from dimagi.utils.couch.database import get_db
from djan... | 50.264706 | 104 | 0.675834 |
0650fe2b4a8ec05a4f26bd56fccd6338468b7b46 | 913 | py | Python | parc/instruction.py | kevinyuan/pydgin | 9e5dea526a17b23929b2a1d24598154b42323073 | [
"BSD-3-Clause"
] | 159 | 2015-02-12T03:28:25.000Z | 2022-02-24T22:40:35.000Z | parc/instruction.py | kevinyuan/pydgin | 9e5dea526a17b23929b2a1d24598154b42323073 | [
"BSD-3-Clause"
] | 21 | 2015-01-31T23:47:26.000Z | 2020-12-21T12:41:08.000Z | parc/instruction.py | kevinyuan/pydgin | 9e5dea526a17b23929b2a1d24598154b42323073 | [
"BSD-3-Clause"
] | 40 | 2015-01-28T21:31:30.000Z | 2022-01-25T12:50:23.000Z | #=======================================================================
# instruction.py
#=======================================================================
from pydgin.utils import r_uint
| 19.020833 | 72 | 0.496166 |
06517cf6f2e451230d0d6eb3711d313d63aa2c66 | 564 | py | Python | docs/examples/dev/_semantic_text_features.py | yacth/autogoal | a55c1534161e850587e2ca3533aa2fd5ae28569e | [
"MIT"
] | null | null | null | docs/examples/dev/_semantic_text_features.py | yacth/autogoal | a55c1534161e850587e2ca3533aa2fd5ae28569e | [
"MIT"
] | null | null | null | docs/examples/dev/_semantic_text_features.py | yacth/autogoal | a55c1534161e850587e2ca3533aa2fd5ae28569e | [
"MIT"
] | null | null | null | from autogoal.contrib import find_classes
from autogoal.kb import *
from autogoal.kb import build_pipelines, build_pipeline_graph
from autogoal.contrib.spacy import SpacyNLP
from autogoal.contrib._wrappers import FlagsMerger
import logging
logging.basicConfig(level=logging.INFO)
pipeline_space = build_pipeline_gra... | 22.56 | 61 | 0.77305 |
0651ab151a7c92bb5c33655beaba51093024c9dc | 341 | py | Python | opytimizer/spaces/__init__.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 528 | 2018-10-01T20:00:09.000Z | 2022-03-27T11:15:31.000Z | opytimizer/spaces/__init__.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 17 | 2019-10-30T00:47:03.000Z | 2022-03-21T11:39:28.000Z | opytimizer/spaces/__init__.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 35 | 2018-10-01T20:03:23.000Z | 2022-03-20T03:54:15.000Z | """Customizable space module that provides different search spaces
implementations.
"""
from opytimizer.spaces.boolean import BooleanSpace
from opytimizer.spaces.grid import GridSpace
from opytimizer.spaces.hyper_complex import HyperComplexSpace
from opytimizer.spaces.search import SearchSpace
from opytimizer.spaces.t... | 34.1 | 66 | 0.859238 |
0652b6080d711fc812aa3a6054f91161bc0d0a8b | 16,913 | py | Python | lattpy/spatial.py | dylanljones/lattpy | 6779ae7755aaf9e844d63a6f63b5036fb64d9f89 | [
"MIT"
] | 11 | 2020-10-29T17:23:02.000Z | 2022-02-28T12:25:41.000Z | lattpy/spatial.py | dylanljones/lattpy | 6779ae7755aaf9e844d63a6f63b5036fb64d9f89 | [
"MIT"
] | 7 | 2021-01-12T13:53:42.000Z | 2022-03-29T11:21:58.000Z | lattpy/spatial.py | dylanljones/lattpy | 6779ae7755aaf9e844d63a6f63b5036fb64d9f89 | [
"MIT"
] | 1 | 2021-10-31T11:15:20.000Z | 2021-10-31T11:15:20.000Z | # coding: utf-8
#
# This code is part of lattpy.
#
# Copyright (c) 2021, Dylan Jones
#
# This code is licensed under the MIT License. The copyright notice in the
# LICENSE file in the root directory and this permission notice shall
# be included in all copies or substantial portions of the Software.
"""Spatial algorit... | 32.840777 | 98 | 0.586945 |
0653906f675760bbd82805e22137ded59d26086f | 1,471 | py | Python | test/test_io.py | wiktorn/pyosmium | 0517eae40da1347523c72a6cb097a5b6158b25a8 | [
"BSD-2-Clause"
] | null | null | null | test/test_io.py | wiktorn/pyosmium | 0517eae40da1347523c72a6cb097a5b6158b25a8 | [
"BSD-2-Clause"
] | null | null | null | test/test_io.py | wiktorn/pyosmium | 0517eae40da1347523c72a6cb097a5b6158b25a8 | [
"BSD-2-Clause"
] | null | null | null | # SPDX-License-Identifier: BSD
#
# This file is part of Pyosmium.
#
# Copyright (C) 2022 Sarah Hoffmann.
import pytest
import osmium as o
| 21.955224 | 82 | 0.636302 |
06556055c40c35a9d717e9e1b378737090b2df39 | 302 | py | Python | tg_gui/_platform_displayio_/shared.py | TG-Techie/tg-gui | 11d0eabeffb36fa43fc90f818624053928c37637 | [
"MIT"
] | 1 | 2019-03-20T19:49:14.000Z | 2019-03-20T19:49:14.000Z | tg_gui/_platform_displayio_/shared.py | TG-Techie/tg_gui | 11d0eabeffb36fa43fc90f818624053928c37637 | [
"MIT"
] | 15 | 2019-02-09T12:24:05.000Z | 2021-12-01T17:21:06.000Z | tg_gui/_platform_displayio_/shared.py | TG-Techie/tg-gui | 11d0eabeffb36fa43fc90f818624053928c37637 | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING
if TYPE_CHECKING:
from displayio import Shape, Group, TileGrid, Palette, Bitmap, OnDiskBitmap
NativeElement = Group | Shape | TileGrid | Palette | Bitmap | OnDiskBitmap
NativeContainer = Group
else:
NativeElement = object
NativeContainer = object
| 27.454545 | 79 | 0.748344 |
0655cb7f1c625d52133699a96d2f35fe1b202f17 | 13,279 | py | Python | pyaccords/pysrc/ec2instanceinfo.py | MarouenMechtri/accords-platform-1 | 4f950fffd9fbbf911840cc5ad0fe5b5a331edf42 | [
"Apache-2.0"
] | 1 | 2015-02-28T21:25:54.000Z | 2015-02-28T21:25:54.000Z | pyaccords/pysrc/ec2instanceinfo.py | MarouenMechtri/accords-platform-1 | 4f950fffd9fbbf911840cc5ad0fe5b5a331edf42 | [
"Apache-2.0"
] | null | null | null | pyaccords/pysrc/ec2instanceinfo.py | MarouenMechtri/accords-platform-1 | 4f950fffd9fbbf911840cc5ad0fe5b5a331edf42 | [
"Apache-2.0"
] | null | null | null | ##############################################################################
#copyright 2013, Hamid MEDJAHED (hmedjahed@prologue.fr) Prologue #
#Licensed under the Apache License, Version 2.0 (the "License"); #
#you may not use this file except in compliance with the License. #
#You... | 48.112319 | 158 | 0.524889 |
06585c3b0c0000d446eb614d1e5895fa37089822 | 1,105 | py | Python | backend/project_requests/admin.py | mnieber/taskboard | 7925342751e2782bd0a0258eb2d43d9ec90ce9d8 | [
"MIT"
] | null | null | null | backend/project_requests/admin.py | mnieber/taskboard | 7925342751e2782bd0a0258eb2d43d9ec90ce9d8 | [
"MIT"
] | null | null | null | backend/project_requests/admin.py | mnieber/taskboard | 7925342751e2782bd0a0258eb2d43d9ec90ce9d8 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.http import HttpResponseRedirect
from django.urls import path
from faker import Faker
from .models import ProjectRequest
from .utils import create_project_request
| 29.864865 | 84 | 0.608145 |
065a10f929ff09c5fb1f252b5c8f9281c467c8ab | 13,477 | py | Python | reinforcement_learning/tabular_RL/algorithms/td_zero.py | EliorBenYosef/reinforcement-learning | c694d07044e12c92e08ca8c2ef06b073ca1704d4 | [
"MIT"
] | 16 | 2019-09-01T14:12:45.000Z | 2022-03-07T03:10:38.000Z | reinforcement_learning/tabular_RL/algorithms/td_zero.py | EliorBenYosef/reinforcement-learning | c694d07044e12c92e08ca8c2ef06b073ca1704d4 | [
"MIT"
] | 5 | 2020-11-13T19:08:40.000Z | 2022-02-10T04:13:29.000Z | reinforcement_learning/tabular_RL/algorithms/td_zero.py | EliorBenYosef/reinforcement-learning | c694d07044e12c92e08ca8c2ef06b073ca1704d4 | [
"MIT"
] | 1 | 2022-03-07T03:10:39.000Z | 2022-03-07T03:10:39.000Z | import numpy as np
from gym import wrappers
from reinforcement_learning.utils.utils import decrement_eps, EPS_DEC_LINEAR, pickle_save
from reinforcement_learning.tabular_RL.utils import init_v, init_q, init_q1_q2, \
max_action_q, max_action_q1_q2, eps_greedy_q, eps_greedy_q1_q2, print_v
| 34.205584 | 119 | 0.549974 |
0660694db2ddc7b0023f6b169f47cbe6fc31c8a7 | 916 | py | Python | topo.py | rahil-g/gpf | 234c22f500283f75454ccba4a12b765be9ddad05 | [
"MIT"
] | null | null | null | topo.py | rahil-g/gpf | 234c22f500283f75454ccba4a12b765be9ddad05 | [
"MIT"
] | null | null | null | topo.py | rahil-g/gpf | 234c22f500283f75454ccba4a12b765be9ddad05 | [
"MIT"
] | null | null | null | #Author: Rahil Gandotra
#This file consists of the custom Mininet topology used for GPF.
from mininet.topo import Topo
topos = { 'mytopo': ( lambda: MyTopo() ) }
| 31.586207 | 75 | 0.622271 |
0661b5f4de7b9d1818fd8ebe0cb07e2e58e19d2a | 10,819 | py | Python | Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py | jippo015/Sub-Zero.bundle | 734e0f7128c05c0f639e11e7dfc77daa1014064b | [
"MIT"
] | 1,553 | 2015-11-09T02:17:06.000Z | 2022-03-31T20:24:52.000Z | Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 691 | 2015-11-05T21:32:26.000Z | 2022-03-17T10:52:45.000Z | Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 162 | 2015-11-06T19:38:55.000Z | 2022-03-16T02:42:41.000Z | # coding=utf-8
import logging
import rarfile
import os
from subliminal.exceptions import ConfigurationError
from subliminal.providers.legendastv import LegendasTVSubtitle as _LegendasTVSubtitle, \
LegendasTVProvider as _LegendasTVProvider, Episode, Movie, guess_matches, guessit, sanitize, region, type_map, \
r... | 41.136882 | 118 | 0.574175 |
06631addf22bfb69f24be36f23cfcd2fff2aa5f2 | 1,587 | py | Python | Position.py | bubakazouba/Robinhood-for-Google-Finance | 4e0aa8955e4bc786a8528ea500459f5937f15a96 | [
"MIT"
] | 5 | 2017-11-24T08:13:47.000Z | 2021-05-05T04:48:30.000Z | Position.py | bubakazouba/Robinhood-for-Google-Finance | 4e0aa8955e4bc786a8528ea500459f5937f15a96 | [
"MIT"
] | null | null | null | Position.py | bubakazouba/Robinhood-for-Google-Finance | 4e0aa8955e4bc786a8528ea500459f5937f15a96 | [
"MIT"
] | null | null | null | import re | 44.083333 | 352 | 0.63264 |
066587c08345eadec5ce3298131ac1c2190623fb | 15,789 | py | Python | app_framework/main_window.py | planktontoolbox/plankton-toolbox | 626930120329983fb9419a9aed94712148bac219 | [
"MIT"
] | 5 | 2016-12-02T08:24:35.000Z | 2021-02-24T08:41:41.000Z | app_framework/main_window.py | planktontoolbox/plankton-toolbox | 626930120329983fb9419a9aed94712148bac219 | [
"MIT"
] | 53 | 2016-11-14T13:11:41.000Z | 2022-01-13T09:28:11.000Z | app_framework/main_window.py | planktontoolbox/plankton-toolbox | 626930120329983fb9419a9aed94712148bac219 | [
"MIT"
] | 1 | 2020-11-27T01:20:10.000Z | 2020-11-27T01:20:10.000Z | #!/usr/bin/python3
# -*- coding:utf-8 -*-
# Project: http://plankton-toolbox.org
# Copyright (c) 2010-2018 SMHI, Swedish Meteorological and Hydrological Institute
# License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit).
import time
import codecs
from PyQt5 import QtWidgets
from PyQt5 i... | 44.601695 | 104 | 0.611565 |
0665edd3f6dbbe3c348e0f2328bbc74630f84ac0 | 481 | py | Python | Traits/manual/this.py | marshallmcdonnell/interactive_plotting | 35e9a781fa1a7328679794d27e24e194e35c012b | [
"MIT"
] | null | null | null | Traits/manual/this.py | marshallmcdonnell/interactive_plotting | 35e9a781fa1a7328679794d27e24e194e35c012b | [
"MIT"
] | null | null | null | Traits/manual/this.py | marshallmcdonnell/interactive_plotting | 35e9a781fa1a7328679794d27e24e194e35c012b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# this.py --- Example of This predefined trait
from traits.api import HasTraits, This
#---------------------------------------
# Extrat
fred = Employee()
mary = Executive()
# The following is OK, because fred's manager can be an
# instance of Employee or any subclass.
fred.manager = mary
# T... | 20.041667 | 60 | 0.665281 |
06669e5cbe5823ce5ec6dea9345b3539ee4591b9 | 1,443 | py | Python | two_buckets_and_a_lambda/terraform/lambdas/credentials-lambda.py | chariotsolutions/aws-examples | 0c0945966f3e1b118ba5db948d5db3e304bc2ac3 | [
"MIT"
] | 6 | 2020-05-20T13:58:35.000Z | 2022-02-04T13:25:05.000Z | two_buckets_and_a_lambda/terraform/lambdas/credentials-lambda.py | chariotsolutions/aws-examples | 0c0945966f3e1b118ba5db948d5db3e304bc2ac3 | [
"MIT"
] | 1 | 2021-09-02T21:19:10.000Z | 2021-09-02T21:19:10.000Z | two_buckets_and_a_lambda/terraform/lambdas/credentials-lambda.py | chariotsolutions/aws-examples | 0c0945966f3e1b118ba5db948d5db3e304bc2ac3 | [
"MIT"
] | 3 | 2019-11-14T21:03:15.000Z | 2022-01-17T19:12:02.000Z | import boto3
import json
import logging
import os
bucket = os.environ['UPLOAD_BUCKET']
role_arn = os.environ['ASSUMED_ROLE_ARN']
sts_client = boto3.client('sts')
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
| 27.226415 | 105 | 0.546778 |
066b73292bddecff1f5b7768febdea7bae1b1c84 | 173 | py | Python | tests/src/year2017/test_day05b.py | lancelote/advent_of_code | 06dda6ca034bc1e86addee7798bb9b2a34ff565b | [
"Unlicense"
] | 10 | 2017-12-11T17:54:52.000Z | 2021-12-09T20:16:30.000Z | tests/src/year2017/test_day05b.py | lancelote/advent_of_code | 06dda6ca034bc1e86addee7798bb9b2a34ff565b | [
"Unlicense"
] | 260 | 2015-12-09T11:03:03.000Z | 2021-12-12T14:32:23.000Z | tests/src/year2017/test_day05b.py | lancelote/advent_of_code | 06dda6ca034bc1e86addee7798bb9b2a34ff565b | [
"Unlicense"
] | null | null | null | """2017 - Day 5 Part 2: A Maze of Twisty Trampolines, All Alike tests."""
from src.year2017.day05b import solve
| 24.714286 | 73 | 0.676301 |
066ba314a42c5ac31373da270a9eb728c97a0653 | 1,374 | py | Python | tests/test_signal.py | etcd/manticore | 87073d9985c4ca445217b7b135a6af0a51044b21 | [
"Apache-2.0"
] | null | null | null | tests/test_signal.py | etcd/manticore | 87073d9985c4ca445217b7b135a6af0a51044b21 | [
"Apache-2.0"
] | null | null | null | tests/test_signal.py | etcd/manticore | 87073d9985c4ca445217b7b135a6af0a51044b21 | [
"Apache-2.0"
] | 1 | 2021-12-26T12:57:01.000Z | 2021-12-26T12:57:01.000Z |
import unittest
from manticore.utils.event import Signal
| 19.628571 | 56 | 0.569869 |
066e5fb8233dc5224d22ebf3b89a9a83782274aa | 745 | py | Python | TITADOweb/web/migrations/0005_passwordresetcodes.py | KomeilParseh/TITA-DO | 714685fa18bfd2ef07f5c0d656927039b05d7997 | [
"MIT"
] | 9 | 2020-08-27T10:10:11.000Z | 2021-04-21T04:46:15.000Z | TITADOweb/web/migrations/0005_passwordresetcodes.py | mdk1384/TITA-DO-1 | 714685fa18bfd2ef07f5c0d656927039b05d7997 | [
"MIT"
] | 2 | 2020-08-27T12:09:57.000Z | 2021-01-05T09:29:19.000Z | TITADOweb/web/migrations/0005_passwordresetcodes.py | mdk1384/TITA-DO-1 | 714685fa18bfd2ef07f5c0d656927039b05d7997 | [
"MIT"
] | 2 | 2020-08-27T10:10:18.000Z | 2021-01-01T06:20:20.000Z | # Generated by Django 3.1.4 on 2020-12-27 17:34
from django.db import migrations, models
| 29.8 | 114 | 0.561074 |
0672220769ef18bb8f7d78e648bf612a87c0cd49 | 253 | py | Python | setup.py | SodakDoubleD/dbprime | 76d2824adbe0f10d6ad04a5607a07f36874389c7 | [
"MIT"
] | null | null | null | setup.py | SodakDoubleD/dbprime | 76d2824adbe0f10d6ad04a5607a07f36874389c7 | [
"MIT"
] | null | null | null | setup.py | SodakDoubleD/dbprime | 76d2824adbe0f10d6ad04a5607a07f36874389c7 | [
"MIT"
] | null | null | null | from distutils.core import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="dbprime",
version="0.1dev",
author="Dalton Dirkson",
author_email="sodakdoubled@gmail.com",
packages=["dbprime",],
)
| 19.461538 | 42 | 0.652174 |
0672274e210ffb823f4cb0faec6bba2fb13a9739 | 2,491 | py | Python | 008.py | ThomasB123/Project-Euler | ca6786513f210e79fe55417ed43797ffb24610af | [
"MIT"
] | null | null | null | 008.py | ThomasB123/Project-Euler | ca6786513f210e79fe55417ed43797ffb24610af | [
"MIT"
] | null | null | null | 008.py | ThomasB123/Project-Euler | ca6786513f210e79fe55417ed43797ffb24610af | [
"MIT"
] | null | null | null | # Largest product in a series
'''
The four adjacent digits in the 1000-digit number that have the greatest product are 9 9 8 9 = 5832.
73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984801869478851843
85861560789112949495459501737958331952853208805511
1254069874715852386305071569... | 67.324324 | 1,011 | 0.934163 |
067270cf798fc12d58fd8f1dd276c3807b8272a4 | 4,102 | py | Python | tfsnippet/utils/misc.py | Feng37/tfsnippet | 70c7dc5c8c8f6314f9d9e44697f90068417db5cd | [
"MIT"
] | null | null | null | tfsnippet/utils/misc.py | Feng37/tfsnippet | 70c7dc5c8c8f6314f9d9e44697f90068417db5cd | [
"MIT"
] | null | null | null | tfsnippet/utils/misc.py | Feng37/tfsnippet | 70c7dc5c8c8f6314f9d9e44697f90068417db5cd | [
"MIT"
] | null | null | null | import os
import re
from contextlib import contextmanager
import numpy as np
import six
__all__ = ['humanize_duration', 'camel_to_underscore', 'NOT_SET',
'cached_property', 'clear_cached_property', 'maybe_close',
'iter_files']
def humanize_duration(seconds):
"""
Format specified time d... | 25.962025 | 73 | 0.573623 |
0673b5944cf3b730042b94eae2844b3646f79c99 | 54,598 | py | Python | spaic/Backend/Backend.py | ZhejianglabNCRC/SPAIC | 5a08328adcc5a197316cf353746bae7ab6865337 | [
"Apache-2.0"
] | 3 | 2022-03-01T03:04:25.000Z | 2022-03-01T03:07:15.000Z | spaic/Backend/Backend.py | ZhejianglabNCRC/SPAIC | 5a08328adcc5a197316cf353746bae7ab6865337 | [
"Apache-2.0"
] | null | null | null | spaic/Backend/Backend.py | ZhejianglabNCRC/SPAIC | 5a08328adcc5a197316cf353746bae7ab6865337 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on 2020/8/6
@project: SPAIC
@filename: Backend
@author: Hong Chaofei
@contact: hongchf@gmail.com
@description:
backend Pytorch, Tensorflow, CUDA, Euler, 2 Runge-Kutta
"""
from abc import abstractmethod, ABC
from collections import OrderedDict
from ..Network.BaseModule import BaseMod... | 36.447263 | 218 | 0.54502 |
0673b6dfdd8c195674ae3591ed3bb93d152c2801 | 1,257 | py | Python | yuz_egitimi.py | mehdikosaca/yuz_tanima | d2d7828a1f5562d21acde3af8df60ec96a88e7c3 | [
"Apache-2.0"
] | 2 | 2021-12-30T06:38:21.000Z | 2021-12-30T06:39:24.000Z | yuz_egitimi.py | mehdikosaca/yuz_tanima | d2d7828a1f5562d21acde3af8df60ec96a88e7c3 | [
"Apache-2.0"
] | null | null | null | yuz_egitimi.py | mehdikosaca/yuz_tanima | d2d7828a1f5562d21acde3af8df60ec96a88e7c3 | [
"Apache-2.0"
] | null | null | null | import cv2
import numpy as np
from PIL import Image
import os
#Verilerin yolu
path = "veriseti"
recognizer = cv2.face.LBPHFaceRecognizer_create()
detector = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml')
#imajlarn alnmas ve etiketlenmesi iin fonksiyon
print("\n [INFO] yzler eitil... | 36.970588 | 97 | 0.706444 |
06743547989129e1af7ae30ff01eaf04b4056ad2 | 1,846 | py | Python | hello.py | jferroaq/Tarea7z | 013f1f1e8dc3b631be102d6e5731d2ffdffd3657 | [
"Apache-2.0"
] | null | null | null | hello.py | jferroaq/Tarea7z | 013f1f1e8dc3b631be102d6e5731d2ffdffd3657 | [
"Apache-2.0"
] | null | null | null | hello.py | jferroaq/Tarea7z | 013f1f1e8dc3b631be102d6e5731d2ffdffd3657 | [
"Apache-2.0"
] | null | null | null | import kivy
from kivy.app import App
from kivy.uix.button import Label
from kivy.uix.colorpicker import ColorPicker
from kivy.graphics import Color, Ellipse, Triangle
from kivy.properties import StringProperty, ObjectProperty
if __name__ in ["__main__", "__android__"]:
SaludoApp().run()
| 25.287671 | 65 | 0.62026 |
0674d6e58cd606f3c44fa44647eb41365904b800 | 356 | py | Python | mundo-02/aula13-ex054.py | fabiocoutoaraujo/CursoVideoPython | 7e3b6ab89cbbba79f640d12e40f3d1e8c22295cf | [
"MIT"
] | 1 | 2020-04-18T16:39:23.000Z | 2020-04-18T16:39:23.000Z | mundo-02/aula13-ex054.py | fabiocoutoaraujo/CursoVideoPython | 7e3b6ab89cbbba79f640d12e40f3d1e8c22295cf | [
"MIT"
] | null | null | null | mundo-02/aula13-ex054.py | fabiocoutoaraujo/CursoVideoPython | 7e3b6ab89cbbba79f640d12e40f3d1e8c22295cf | [
"MIT"
] | null | null | null | from datetime import date
maior = menor = 0
atual = date.today().year
for c in range(1, 8):
nascimento = int(input(f'Em que ano a {c} pessoa nasceu? '))
if atual - nascimento > 20:
maior += 1
else:
menor += 1
print(f'Ao todo, temos {maior} pessoas maiores de idade!')
print(f'Ao todo, temos {... | 29.666667 | 65 | 0.63764 |
0675b9a64430a3b476aa0125ccfd22711ba0b255 | 6,356 | py | Python | Contents/Code/zdfneo.py | typekitrel/abctestard | 1df43561327694ba155f513ad152aab51c56ef42 | [
"MIT"
] | null | null | null | Contents/Code/zdfneo.py | typekitrel/abctestard | 1df43561327694ba155f513ad152aab51c56ef42 | [
"MIT"
] | null | null | null | Contents/Code/zdfneo.py | typekitrel/abctestard | 1df43561327694ba155f513ad152aab51c56ef42 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# zdfneo.py - Aufruf durch __init__.py/ZDF_get_content
#
# Die Funktionen dienen zur Auswertung der ZDF-Neo-Seiten
#
Neo_Base = 'https://www.neo-magazin-royale.de'
PREFIX = '/video/ardmediathek2016/zdfneo'
##################################################################################... | 43.834483 | 112 | 0.660321 |
067c09b6f2a552b9aa72b55a71741cdde3c0cbee | 8,732 | py | Python | luna/mol/atom.py | keiserlab/LUNA | ab2a968550f3f91107f8a91ad00da6aa3e2df68b | [
"MIT"
] | 2 | 2022-03-23T13:34:36.000Z | 2022-03-27T22:21:08.000Z | luna/mol/atom.py | keiserlab/LUNA | ab2a968550f3f91107f8a91ad00da6aa3e2df68b | [
"MIT"
] | 1 | 2022-03-22T19:29:50.000Z | 2022-03-22T19:29:50.000Z | luna/mol/atom.py | keiserlab/LUNA | ab2a968550f3f91107f8a91ad00da6aa3e2df68b | [
"MIT"
] | null | null | null | import numpy as np
from openbabel import openbabel as ob
import logging
logger = logging.getLogger()
def __eq__(self, other):
"""Overrides the default implementation"""
if isinstance(self, other.__class__):
return (self.atomic_num == other.atomic_num
and np.all(sel... | 34.928 | 122 | 0.61475 |
067d4e2d3158aba74160b531385178fe32b82215 | 1,379 | py | Python | src/cogs/example_cog.py | Abaan404/MagmaBot | 2149f6ad8a6a1158112ab9efb4dc77c04c3a5f8e | [
"MIT"
] | 1 | 2021-10-03T21:05:45.000Z | 2021-10-03T21:05:45.000Z | src/cogs/example_cog.py | Abaan404/MagmaBot | 2149f6ad8a6a1158112ab9efb4dc77c04c3a5f8e | [
"MIT"
] | null | null | null | src/cogs/example_cog.py | Abaan404/MagmaBot | 2149f6ad8a6a1158112ab9efb4dc77c04c3a5f8e | [
"MIT"
] | null | null | null | import discord, itertools
from discord.ext import commands, tasks
# Lava is not allowed to change the first text
PRESENCE_TEXT = itertools.cycle(["lava is cute", "*pushes you against wall* wanna play fortnite amongus?", "with ur mum", "owo.exe", "dangit jelly", "gewrhgkhewghkhfuckoiyo5uo", "MiEWcWAFT?? OWOWO"])
| 35.358974 | 199 | 0.645395 |
067de1744accb6c29040ae07655261d1c6513b87 | 33,808 | py | Python | Public_accessV3.py | nismod/natural-capital-mapping | f388fee3c2592bf99eb628b4d4743bf9be3d4346 | [
"MIT"
] | 1 | 2021-03-31T00:35:00.000Z | 2021-03-31T00:35:00.000Z | Public_accessV3.py | nismod/natural-capital-mapping | f388fee3c2592bf99eb628b4d4743bf9be3d4346 | [
"MIT"
] | null | null | null | Public_accessV3.py | nismod/natural-capital-mapping | f388fee3c2592bf99eb628b4d4743bf9be3d4346 | [
"MIT"
] | 2 | 2020-01-30T09:40:36.000Z | 2021-04-16T09:36:40.000Z | # Aim is to apply a multiplier to the natural capital scores to reflect the degree of public access
# Challenge is that it is difficult to clip or intersect the complex public access layer with the large and
# detailed OSMM-based base map - it takes days to run and then fails.
# So here we extract a subset of the base ... | 60.479428 | 141 | 0.664458 |
067f96e0223f4a4ef755767aa7893138791277ee | 3,688 | py | Python | old_site/import/scraper.py | basilleaf/dailyrings | e970ee7771bd1fb60b07f8208b2ffc4866779e88 | [
"MIT"
] | null | null | null | old_site/import/scraper.py | basilleaf/dailyrings | e970ee7771bd1fb60b07f8208b2ffc4866779e88 | [
"MIT"
] | 3 | 2018-04-27T04:11:13.000Z | 2018-04-28T01:26:57.000Z | old_site/import/scraper.py | basilleaf/dailyrings | e970ee7771bd1fb60b07f8208b2ffc4866779e88 | [
"MIT"
] | null | null | null | """
this script parses the pds-rings press release gallery tree at
base_url = "http://pds-rings.seti.org/saturn/cassini/"
if an image already exists in the database it is updated
to get only the most recent month set latest_month_only to True
"""
latest_month_only = True # like I was really going to do this monthly
... | 33.225225 | 182 | 0.639371 |
068506b54ed89a62c865b814f0418d72003474e6 | 856 | py | Python | packit_dashboard/api/routes.py | lbarcziova/dashboard | 6ad1141a475d68b081a4fa2ceec5363678ae4e38 | [
"MIT"
] | null | null | null | packit_dashboard/api/routes.py | lbarcziova/dashboard | 6ad1141a475d68b081a4fa2ceec5363678ae4e38 | [
"MIT"
] | null | null | null | packit_dashboard/api/routes.py | lbarcziova/dashboard | 6ad1141a475d68b081a4fa2ceec5363678ae4e38 | [
"MIT"
] | null | null | null | from flask import Blueprint, jsonify, request
from packit_dashboard.utils import return_json
from packit_dashboard.config import API_URL
api = Blueprint("api", __name__)
# The react frontend will request information here instead of fetching directly
# from the main API.
# This is because it will be easier to implemen... | 31.703704 | 79 | 0.731308 |
0687517d0be83d1b02e62dee6d9d45a4dee1e6e1 | 4,959 | py | Python | auth/util.py | prajask/Find-Your-Doctor | a4fc682a1757d83bd62b9daea7476f97db91ffb8 | [
"MIT"
] | 1 | 2020-09-10T10:52:21.000Z | 2020-09-10T10:52:21.000Z | auth/util.py | prajask/find-your-doctor | a4fc682a1757d83bd62b9daea7476f97db91ffb8 | [
"MIT"
] | null | null | null | auth/util.py | prajask/find-your-doctor | a4fc682a1757d83bd62b9daea7476f97db91ffb8 | [
"MIT"
] | null | null | null | """
Authentication Utility Functions
"""
from flask import session
from models import Patient, Doctor, Degree, database
import hashlib, binascii
from config import SECRET_KEY | 32.201299 | 154 | 0.689655 |
06875fe7ae608373332a8fb7606601d9cb556ce3 | 267 | py | Python | cctbx/eltbx/covalent_radii.py | hbrunie/cctbx_project | 2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5 | [
"BSD-3-Clause-LBNL"
] | 2 | 2021-03-18T12:31:57.000Z | 2022-03-14T06:27:06.000Z | cctbx/eltbx/covalent_radii.py | hbrunie/cctbx_project | 2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5 | [
"BSD-3-Clause-LBNL"
] | null | null | null | cctbx/eltbx/covalent_radii.py | hbrunie/cctbx_project | 2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5 | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-03-26T12:52:30.000Z | 2021-03-26T12:52:30.000Z | from __future__ import absolute_import, division, print_function
import boost.python
ext = boost.python.import_ext("cctbx_eltbx_covalent_radii_ext")
from cctbx_eltbx_covalent_radii_ext import *
boost.python.inject(ext.table_iterator, boost.python.py3_make_iterator)
| 38.142857 | 71 | 0.861423 |
068765a77334bb8b750cf60699365fc4fc30858b | 4,004 | py | Python | player.py | akrabio/NBANormalizedStats | de5fb5243e9e26e4d534c319ea984712a908cadc | [
"MIT"
] | null | null | null | player.py | akrabio/NBANormalizedStats | de5fb5243e9e26e4d534c319ea984712a908cadc | [
"MIT"
] | null | null | null | player.py | akrabio/NBANormalizedStats | de5fb5243e9e26e4d534c319ea984712a908cadc | [
"MIT"
] | null | null | null | from nba_py import player
from numpy import mean
import league
from consts import all_time_stats
import consts
name_to_index = {'season': 1, consts.rebounds: 20, consts.assists: 21, consts.steals: 22, consts.blocks: 23, consts.points: 26}
if __name__ == '__main__':
# player = Player('michael', 'jordan')
... | 43.521739 | 130 | 0.623876 |
0687810d3ca357eb81c8f40b9ee9e277ec90842e | 3,668 | py | Python | examples/mag_wmm2015.py | CHEN-Zhaohui/geoist | 06a00db3e0ed3d92abf3e45b7b3bfbef6a858a5b | [
"MIT"
] | 53 | 2018-11-17T03:29:55.000Z | 2022-03-18T02:36:25.000Z | examples/mag_wmm2015.py | CHEN-Zhaohui/geoist | 06a00db3e0ed3d92abf3e45b7b3bfbef6a858a5b | [
"MIT"
] | 3 | 2018-11-28T11:37:51.000Z | 2019-01-30T01:52:45.000Z | examples/mag_wmm2015.py | CHEN-Zhaohui/geoist | 06a00db3e0ed3d92abf3e45b7b3bfbef6a858a5b | [
"MIT"
] | 35 | 2018-11-17T03:29:57.000Z | 2022-03-23T17:57:06.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 10 18:34:07 2019
WMM2015WMM.cofpy
@author: chens
"""
import numpy as np
from pathlib import Path
import xarray
import ctypes as ct
import sys
import datetime
from matplotlib.pyplot import figure
#libwmm = ct.cdll.LoadLibrary(str('D:\\MyWorks\\WMM2015-master\\wmm15.dll'))... | 33.045045 | 109 | 0.571156 |
0688619f7ef43b02605de1e45f9fd553d9142b12 | 3,089 | py | Python | test/e2e/tests/test_transit_gateway.py | timbyr/ec2-controller | d96d056fdc6ec7d31981f4c14cad8d740f6cf6ec | [
"Apache-2.0"
] | 14 | 2021-08-04T00:21:49.000Z | 2022-03-21T01:06:09.000Z | test/e2e/tests/test_transit_gateway.py | timbyr/ec2-controller | d96d056fdc6ec7d31981f4c14cad8d740f6cf6ec | [
"Apache-2.0"
] | 48 | 2021-08-03T19:00:42.000Z | 2022-03-31T22:18:42.000Z | test/e2e/tests/test_transit_gateway.py | timbyr/ec2-controller | d96d056fdc6ec7d31981f4c14cad8d740f6cf6ec | [
"Apache-2.0"
] | 9 | 2021-07-22T15:49:43.000Z | 2022-03-06T22:24:14.000Z | # Copyright Amazon.com Inc. or its affiliates. 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. A copy of the
# License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanyin... | 30.89 | 100 | 0.697637 |
06897ca4a2ea127df4c4fbdc8e71310f23dfe61f | 2,862 | py | Python | Phase 4/src/search.py | ishaanshah/GameDhaBha | 5ab4f13ec7554ba74739d9a149da1154bb09041a | [
"MIT"
] | null | null | null | Phase 4/src/search.py | ishaanshah/GameDhaBha | 5ab4f13ec7554ba74739d9a149da1154bb09041a | [
"MIT"
] | null | null | null | Phase 4/src/search.py | ishaanshah/GameDhaBha | 5ab4f13ec7554ba74739d9a149da1154bb09041a | [
"MIT"
] | null | null | null | """ Contains all the functions related to the search of enitities in the Database """
from tabulate import tabulate
def SearchPlayerByName(cur, con):
""" Searches for the provided name's similar occurences in the Player's first and last name """
# Take in the input for the search query
search = {}
s... | 25.327434 | 99 | 0.568484 |
068a35a559d65ea89371c4e0284f743170c94d8d | 15,413 | py | Python | machine/qemu/sources/u-boot/test/py/tests/test_efi_fit.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | 1 | 2021-11-21T19:56:29.000Z | 2021-11-21T19:56:29.000Z | machine/qemu/sources/u-boot/test/py/tests/test_efi_fit.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | null | null | null | machine/qemu/sources/u-boot/test/py/tests/test_efi_fit.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | null | null | null | # SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2019, Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
#
# Work based on:
# - test_net.py
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
# - test_fit.py
# Copyright (c) 2013, Google Inc.
#
# Test launching UEFI binaries from FIT images.
"""
Note: This... | 33.579521 | 99 | 0.594693 |
068bed0bd09441343b0ab11a87d3f70ca8cbcf66 | 2,234 | py | Python | data_dictionary/data_dictionary.py | georgetown-analytics/DC-Bikeshare | 9f5a6a3256cff15a29f0dca6e9a9d8098ab2df28 | [
"MIT"
] | 11 | 2018-07-01T16:43:05.000Z | 2020-07-17T19:08:16.000Z | data_dictionary/data_dictionary.py | noahnewberger/Bikeshare-DC | 42676654d103cdaddfb76db76d1eece533251261 | [
"MIT"
] | 5 | 2021-02-08T20:21:12.000Z | 2021-12-13T19:47:04.000Z | data_dictionary/data_dictionary.py | noahnewberger/Bikeshare-DC | 42676654d103cdaddfb76db76d1eece533251261 | [
"MIT"
] | 5 | 2018-10-05T19:54:20.000Z | 2020-10-27T11:54:09.000Z | #!/usr/bin/env python
import report, sys
import psycopg2.extras
parser = report.get_parser(sys.argv[0])
parser.add_argument('--title', '-t', required=False, dest='title', default="Data Dictionary", help='Report Title')
args = parser.parse_args()
conn = report.get_connection(args)
curs = conn.cursor(cursor_factory=p... | 29.394737 | 114 | 0.637422 |
068d0a9c6eb823b33105c8883388612ae4b08f65 | 1,112 | py | Python | LeetCode/InsertionLL.py | Jaidev810/Competitive-Questions | 5d5b28be69e8572e9b4353e9790ee39b56769fc3 | [
"MIT"
] | 1 | 2021-02-27T06:12:55.000Z | 2021-02-27T06:12:55.000Z | LeetCode/InsertionLL.py | Jaidev810/Competitive-Questions | 5d5b28be69e8572e9b4353e9790ee39b56769fc3 | [
"MIT"
] | 1 | 2021-02-02T08:52:17.000Z | 2021-02-03T08:19:12.000Z | LeetCode/InsertionLL.py | Jaidev810/Competitive-Questions | 5d5b28be69e8572e9b4353e9790ee39b56769fc3 | [
"MIT"
] | null | null | null |
head = takeinputLL()
printLL(insertionLL(head)) | 19.508772 | 52 | 0.522482 |
068db78fb9e1cc510a957bc841fd463a0fc7de6a | 2,581 | py | Python | migrations/versions/458a7da0c9da_.py | dmiklic/psiholeks-web | 68dda07228a53790ab1e797336bb236031a544de | [
"MIT"
] | null | null | null | migrations/versions/458a7da0c9da_.py | dmiklic/psiholeks-web | 68dda07228a53790ab1e797336bb236031a544de | [
"MIT"
] | 1 | 2018-05-01T09:15:12.000Z | 2018-05-01T09:25:03.000Z | migrations/versions/458a7da0c9da_.py | dmiklic/psiholeks-web | 68dda07228a53790ab1e797336bb236031a544de | [
"MIT"
] | null | null | null | """empty message
Revision ID: 458a7da0c9da
Revises:
Create Date: 2018-05-01 21:15:27.029811
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '458a7da0c9da'
down_revision = None
branch_labels = None
depends_on = None
| 46.089286 | 109 | 0.720651 |
068fc5e74266b5c9c2303aed1e80240bd5fd0b7c | 573 | py | Python | mimic/modalities/MimicLateral.py | Jimmy2027/MoPoE-MIMIC | d167719b0dc7ba002b7421eb82a83e47d2437795 | [
"MIT"
] | 1 | 2021-09-30T07:56:46.000Z | 2021-09-30T07:56:46.000Z | mimic/modalities/MimicLateral.py | Jimmy2027/MoPoE-MIMIC | d167719b0dc7ba002b7421eb82a83e47d2437795 | [
"MIT"
] | null | null | null | mimic/modalities/MimicLateral.py | Jimmy2027/MoPoE-MIMIC | d167719b0dc7ba002b7421eb82a83e47d2437795 | [
"MIT"
] | null | null | null | import torch
import mimic.modalities.utils
from mimic.modalities.Modality import ModalityIMG
| 31.833333 | 85 | 0.687609 |
06911eef246c1772226f520da651c6e6b9337698 | 40,564 | py | Python | src/rogerthat/rpc/rpc.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/rogerthat/rpc/rpc.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/rogerthat/rpc/rpc.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 43.852973 | 200 | 0.636377 |
0693b9613a135ff67d5413df7255909db8145fcb | 1,131 | py | Python | setup.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | 5 | 2021-06-25T16:44:38.000Z | 2021-12-31T01:29:00.000Z | setup.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | null | null | null | setup.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | 1 | 2021-06-25T20:33:47.000Z | 2021-06-25T20:33:47.000Z | import os, sys, shutil
from cx_Freeze import setup, Executable
from pathlib import Path
# Dependencies are automatically detected, but it might need fine tuning.
additional_modules = []
build_exe_options = {
"includes": additional_modules,
"packages": [
"moderngl",
"moderngl_window",
... | 22.62 | 73 | 0.622458 |
0694fc4578a8a2dc3e2046b27ace2ea005f03139 | 5,332 | py | Python | api/login.py | lachouettecoop/inventory-coop-api | 583866737522ef473cbc05664835fe50787e2146 | [
"MIT"
] | null | null | null | api/login.py | lachouettecoop/inventory-coop-api | 583866737522ef473cbc05664835fe50787e2146 | [
"MIT"
] | 17 | 2020-10-05T19:21:55.000Z | 2022-02-13T09:28:44.000Z | api/login.py | lachouettecoop/inventory-coop | c89488ea177b5616f1fe0bb5f149c61ae4bce2d1 | [
"MIT"
] | null | null | null | import os
import time
import jwt
import ldap
from eve.auth import TokenAuth
from flask import Blueprint, abort, jsonify, request
blueprint = Blueprint("login", __name__)
ADMIN_USERS = os.environ.get("ADMIN_USERS", "papanowel@gmail.com")
JWT_ALGORITHM = os.environ.get("JWT_ALGORITHM", "HS256")
JWT_EXPIRE_OFFSET = os.... | 33.325 | 99 | 0.61853 |
069560330062cf15b22f72ebec9dba45c5f2ba00 | 411 | py | Python | tools/pinyin-completion/setup.py | Vayn/dotfiles | 5a3e0e71669dd1832df7147b14c2943de6746119 | [
"MIT"
] | 4 | 2015-03-25T01:46:39.000Z | 2017-04-30T18:04:46.000Z | tools/pinyin-completion/setup.py | Vayn/dotfiles | 5a3e0e71669dd1832df7147b14c2943de6746119 | [
"MIT"
] | null | null | null | tools/pinyin-completion/setup.py | Vayn/dotfiles | 5a3e0e71669dd1832df7147b14c2943de6746119 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
from distutils.core import setup
setup( name="pinyin-comp",
version="0.1",
description="complete path containing Chinese by pinyin acronym",
author="Jekyll Wu",
author_email="adaptee@gmail.com",
url="http://www.github.com/a... | 27.4 | 73 | 0.622871 |
069859b4e100fade3b9371a57b0661bbf0c77719 | 1,518 | py | Python | DailyCodingProblem/52_Google_LRU.py | RafayAK/CodingPrep | 718eccb439db0f6e727806964766a40e8234c8a9 | [
"MIT"
] | 5 | 2019-09-07T17:31:17.000Z | 2022-03-05T09:59:46.000Z | DailyCodingProblem/52_Google_LRU.py | RafayAK/CodingPrep | 718eccb439db0f6e727806964766a40e8234c8a9 | [
"MIT"
] | null | null | null | DailyCodingProblem/52_Google_LRU.py | RafayAK/CodingPrep | 718eccb439db0f6e727806964766a40e8234c8a9 | [
"MIT"
] | 2 | 2019-09-07T17:31:24.000Z | 2019-10-28T16:10:52.000Z | """
Good morning! Here's your coding interview problem for today.
This problem was asked by Google.
Implement an LRU (Least Recently Used) cache.
It should be able to be initialized with a cache size n, and contain the following methods:
set(key, value): sets key to value. If there are already n items in
... | 24.885246 | 91 | 0.601449 |
0698ddf547c57339f83986d2ec83f39b1adf80a3 | 233 | py | Python | setup.py | kowalcj0/teeb | 15b87d9857510890fbe417e4de473b8b685b3319 | [
"BSD-3-Clause"
] | null | null | null | setup.py | kowalcj0/teeb | 15b87d9857510890fbe417e4de473b8b685b3319 | [
"BSD-3-Clause"
] | null | null | null | setup.py | kowalcj0/teeb | 15b87d9857510890fbe417e4de473b8b685b3319 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup
# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.
setup(
name="Teeb",
install_requires=["chardet==4.0.0", "send2trash==1.5.0", "wand==0.6.5"],
)
| 25.888889 | 76 | 0.656652 |
069a8d7c6fbb5a8f120cebac621c759b5b2c0718 | 233 | py | Python | article_retrieval/__main__.py | aleph-oh/wikigame-solver | 9a7b0a16df41291890e2bbe5903be55b25cef0f4 | [
"MIT"
] | null | null | null | article_retrieval/__main__.py | aleph-oh/wikigame-solver | 9a7b0a16df41291890e2bbe5903be55b25cef0f4 | [
"MIT"
] | null | null | null | article_retrieval/__main__.py | aleph-oh/wikigame-solver | 9a7b0a16df41291890e2bbe5903be55b25cef0f4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Constructs article graph."""
from database import clear_db
from database.constants import engine
from .database_builder import populate_db
if __name__ == "__main__":
clear_db(engine)
populate_db()
| 21.181818 | 41 | 0.759657 |
069d259501ee0ad7f4c234fd4a9336eca8bab60c | 637 | py | Python | playlist_organizer/client/deezer/settings.py | perminovs/playlist_organizer | cc5da2b0a031e29235e9ebe982f1062900602dd4 | [
"MIT"
] | null | null | null | playlist_organizer/client/deezer/settings.py | perminovs/playlist_organizer | cc5da2b0a031e29235e9ebe982f1062900602dd4 | [
"MIT"
] | null | null | null | playlist_organizer/client/deezer/settings.py | perminovs/playlist_organizer | cc5da2b0a031e29235e9ebe982f1062900602dd4 | [
"MIT"
] | null | null | null | from pydantic import BaseSettings
| 25.48 | 61 | 0.66876 |
069dac451eea987083fb0222c0d932e8a5b6741b | 2,462 | py | Python | services/web/project/routes/api.py | sthe0/test-bot-fullstack | 602c876177eb16958748a9e46274533759ff5792 | [
"MIT"
] | null | null | null | services/web/project/routes/api.py | sthe0/test-bot-fullstack | 602c876177eb16958748a9e46274533759ff5792 | [
"MIT"
] | null | null | null | services/web/project/routes/api.py | sthe0/test-bot-fullstack | 602c876177eb16958748a9e46274533759ff5792 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import Blueprint, jsonify, request
from functools import wraps
from sqlalchemy import desc
from project.common import app, db, fb_api
from project.config import ApiConfig
from project.models import Client, Message
api = Blueprint('api', __name__)
| 27.662921 | 89 | 0.675467 |
069dc6e8933ab9b9913ed9fdacb63aac7e39388b | 3,830 | py | Python | c4/test.py | duilio/c4 | 6dcde8316603192b0bc713d1bedb94290d123a9d | [
"MIT"
] | 16 | 2016-03-19T16:34:58.000Z | 2021-11-07T08:59:53.000Z | c4/test.py | duilio/c4 | 6dcde8316603192b0bc713d1bedb94290d123a9d | [
"MIT"
] | 1 | 2017-08-27T10:18:39.000Z | 2018-02-24T20:55:27.000Z | c4/test.py | duilio/c4 | 6dcde8316603192b0bc713d1bedb94290d123a9d | [
"MIT"
] | 9 | 2017-02-23T23:14:17.000Z | 2020-12-25T12:26:47.000Z | import unittest
import numpy as np
from c4.board import Board, PLAYER1
| 42.555556 | 58 | 0.232376 |
069eac769d2ccf455170294707453e0b3dff4035 | 1,134 | py | Python | NLP/3-Advanced-RNN-2/3-1-cnn-rnn-1.py | agarwalanant/ThaparWorkshopANN | fd7858b89ade8a621f30e389721166b222228f02 | [
"MIT"
] | 16 | 2019-06-19T05:43:01.000Z | 2020-12-01T13:24:55.000Z | NLP/3-Advanced-RNN-2/3-1-cnn-rnn-1.py | agarwalanant/ThaparWorkshopANN | fd7858b89ade8a621f30e389721166b222228f02 | [
"MIT"
] | null | null | null | NLP/3-Advanced-RNN-2/3-1-cnn-rnn-1.py | agarwalanant/ThaparWorkshopANN | fd7858b89ade8a621f30e389721166b222228f02 | [
"MIT"
] | 37 | 2019-06-17T11:53:13.000Z | 2020-06-02T13:05:31.000Z | import numpy as np
from sklearn.metrics import accuracy_score
from keras.datasets import cifar10
from keras.utils import to_categorical
from keras.models import Sequential, Model
from keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, LSTM, Input, Activation, Reshape, concatenate
from keras import optimizers
(... | 37.8 | 157 | 0.751323 |
069f831615d2592dffe7e15e0512bd6627e063ca | 1,652 | py | Python | pyage2/lib/actions.py | kachayev/pyage2 | adf87e0deeddaa4301dbcaf4fa7d396a71d129de | [
"Apache-2.0"
] | 13 | 2021-07-09T07:10:42.000Z | 2022-03-16T10:38:59.000Z | pyage2/lib/actions.py | kachayev/pyage2 | adf87e0deeddaa4301dbcaf4fa7d396a71d129de | [
"Apache-2.0"
] | null | null | null | pyage2/lib/actions.py | kachayev/pyage2 | adf87e0deeddaa4301dbcaf4fa7d396a71d129de | [
"Apache-2.0"
] | 1 | 2022-01-16T13:24:32.000Z | 2022-01-16T13:24:32.000Z | # Copyright 2021 PyAge2, Oleksii Kachaiev <kachayev@gmail.com>. 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
#
# Un... | 37.545455 | 84 | 0.766344 |
069f9b47635b756c567cad2b645af0001f7d8f95 | 4,045 | py | Python | multi_view_ctrl/grid_element_div.py | imldresden/mcv-displaywall | d08cf6fab869ee03d8b3af203dd0e55b42ab4605 | [
"MIT"
] | 2 | 2019-12-12T20:57:37.000Z | 2021-09-29T02:59:19.000Z | multi_view_ctrl/grid_element_div.py | imldresden/mcv-displaywall | d08cf6fab869ee03d8b3af203dd0e55b42ab4605 | [
"MIT"
] | null | null | null | multi_view_ctrl/grid_element_div.py | imldresden/mcv-displaywall | d08cf6fab869ee03d8b3af203dd0e55b42ab4605 | [
"MIT"
] | null | null | null | from libavg import avg
from events.event_dispatcher import EventDispatcher
from multi_view_ctrl.grid_element import GridElement
from multi_view_ctrl.configurations.grid_element_div_configuration import GridElementDivConfigurations
def is_pos_in(self, pos):
"""
Checks if a given pos lies inside in ... | 38.52381 | 135 | 0.648949 |
06a1854bfcd9896d019df15af2c9bb29dfe25337 | 4,152 | py | Python | relations-finder/src/relations_finder.py | ahmed91abbas/wiki-relations | 9f8d20c512f993cab6065cb2695c996c076b6d13 | [
"MIT"
] | 5 | 2021-03-05T12:19:44.000Z | 2022-01-05T19:28:44.000Z | relations-finder/src/relations_finder.py | ahmed91abbas/wiki-relations | 9f8d20c512f993cab6065cb2695c996c076b6d13 | [
"MIT"
] | null | null | null | relations-finder/src/relations_finder.py | ahmed91abbas/wiki-relations | 9f8d20c512f993cab6065cb2695c996c076b6d13 | [
"MIT"
] | 2 | 2021-03-13T12:07:33.000Z | 2021-03-30T07:58:38.000Z | import en_core_web_sm
from spacy import displacy
| 37.071429 | 98 | 0.575626 |
06a1e865401185ec36f7fc0f3099d2dfb3463d93 | 8,597 | py | Python | app/users/routes.py | Shikhar-SRJ/DL_Model_APIs | ea26cb415477cf58a2ddd925689b62588bf95b13 | [
"MIT"
] | null | null | null | app/users/routes.py | Shikhar-SRJ/DL_Model_APIs | ea26cb415477cf58a2ddd925689b62588bf95b13 | [
"MIT"
] | null | null | null | app/users/routes.py | Shikhar-SRJ/DL_Model_APIs | ea26cb415477cf58a2ddd925689b62588bf95b13 | [
"MIT"
] | null | null | null | from flask import jsonify, request, Blueprint, current_app, send_file, make_response
import tensorflow as tf
import numpy as np
from app.users import utils
import cv2
from app.models import User, Data, Predictions, Coordinates
from app import db
from werkzeug.security import generate_password_hash, check_password_hash
... | 41.331731 | 139 | 0.609282 |
06a25915be2cf155b3153cd03aaa095116d1e484 | 352 | py | Python | Curso em Video - Exercicios/ex006.py | JefferMarcelino/Aulas-Python | 3885b1cfa7f27b90b702ee81fc5eab108c029e52 | [
"MIT"
] | 2 | 2021-01-27T19:30:05.000Z | 2022-01-10T20:34:53.000Z | Curso em Video - Exercicios/ex006.py | JefferMarcelino/Aulas-Python | 3885b1cfa7f27b90b702ee81fc5eab108c029e52 | [
"MIT"
] | null | null | null | Curso em Video - Exercicios/ex006.py | JefferMarcelino/Aulas-Python | 3885b1cfa7f27b90b702ee81fc5eab108c029e52 | [
"MIT"
] | null | null | null | """
EXERCCIO 006: Dobro, Triplo, Raiz Quadrada
Crie um algoritmo que leia um nmero e mostre o seu dobro, triplo e raiz quadrada.
"""
n = int(input('Digite um nmero: '))
print('O dobro de {} vale {}.'.format(n, (n * 2)))
print('O triplo de {} vale {}.'.format(n, (n * 3)))
print('A raiz quadrada de {} igual a {:.2f}.'.... | 35.2 | 82 | 0.619318 |
06a27f548fc5e06937812be30ed778ed22cfc7a5 | 2,494 | py | Python | bionic/gcs.py | IDl0T/bionic | 8eaa868a2e7af81bb561492c045feb414f7c6326 | [
"Apache-2.0"
] | 98 | 2019-08-29T21:38:44.000Z | 2022-01-26T04:59:57.000Z | bionic/gcs.py | IDl0T/bionic | 8eaa868a2e7af81bb561492c045feb414f7c6326 | [
"Apache-2.0"
] | 143 | 2019-09-11T15:32:17.000Z | 2021-06-08T21:48:30.000Z | bionic/gcs.py | IDl0T/bionic | 8eaa868a2e7af81bb561492c045feb414f7c6326 | [
"Apache-2.0"
] | 20 | 2019-09-13T18:13:03.000Z | 2021-12-03T19:51:01.000Z | """
Utilities for working with Google Cloud Storage.
"""
import logging
import warnings
from .deps.optdep import import_optional_dependency
logger = logging.getLogger(__name__)
_cached_gcs_fs = None
# TODO: Consider using persistence.GcsFilesystem instead of exposing this function.
def upload_to_gcs(path, url):... | 38.369231 | 85 | 0.676423 |
06a3f43967e178259c2fded854053a178b218002 | 208 | py | Python | src/utils/const.py | yizhongw/TagNN-PDTB | 9b944210bcc3851c65cb479ef705acbb1b45b08f | [
"MIT"
] | 14 | 2018-11-19T02:49:34.000Z | 2022-02-18T04:00:31.000Z | src/utils/const.py | lidejian/TreeLSTM-PDTB | 3f048d2a3daf3fb5e803037f9344f515d0e71450 | [
"MIT"
] | null | null | null | src/utils/const.py | lidejian/TreeLSTM-PDTB | 3f048d2a3daf3fb5e803037f9344f515d0e71450 | [
"MIT"
] | 5 | 2017-12-04T13:29:29.000Z | 2018-05-07T08:45:04.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: yizhong
# created_at: 17-5-2 5:00
PAD_WORD = '<blank>'
UNK_WORD = '<unk>'
BOS_WORD = '<s>'
EOS_WORD = '</s>'
NUM_WORD = '<num>'
PUNC_TAG = '<punc>'
| 16 | 27 | 0.586538 |
06a458881d352d1e5bc5252e5c9354f711ebe5e6 | 208 | py | Python | src_old/tests/scripts/core/ex7.py | toddrme2178/pyccel | deec37503ab0c5d0bcca1a035f7909f7ce8ef653 | [
"MIT"
] | null | null | null | src_old/tests/scripts/core/ex7.py | toddrme2178/pyccel | deec37503ab0c5d0bcca1a035f7909f7ce8ef653 | [
"MIT"
] | null | null | null | src_old/tests/scripts/core/ex7.py | toddrme2178/pyccel | deec37503ab0c5d0bcca1a035f7909f7ce8ef653 | [
"MIT"
] | null | null | null | #coding: utf-8
a = zeros((10,10), double)
for i in range(0,10):
a[i,i] = 2.0
for i in range(0,9):
a[i,i+1] = -1.0
for i in range(0,9):
a[i,i+1] = -1.0
n = 5
for i in range(0, n):
x = 1
| 10.947368 | 26 | 0.480769 |
06a83d0998f9996abe66240e832c87433d984bc2 | 626 | py | Python | src/learning_language/views.py | gsi-luis/djangolearning | 4cf1e016cfe2910c907a669e518f5233ae04fb12 | [
"MIT"
] | 1 | 2020-07-05T18:33:33.000Z | 2020-07-05T18:33:33.000Z | src/learning_language/views.py | gsi-luis/djangolearning | 4cf1e016cfe2910c907a669e518f5233ae04fb12 | [
"MIT"
] | 2 | 2021-03-30T13:49:58.000Z | 2021-06-10T19:43:27.000Z | src/learning_language/views.py | gsi-luis/djangolearning | 4cf1e016cfe2910c907a669e518f5233ae04fb12 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .forms import LanguageForm
from learning_django import settings
from django.utils import translation
| 27.217391 | 76 | 0.701278 |
06abef330b43336341fe87f19a5bb8dd00ab85db | 252 | py | Python | driver/comtypes_gamry_simulate.py | yul69-cell/HELAO | a39372eb385ee93b711443d9cbd56c5ec737ff70 | [
"CC0-1.0"
] | null | null | null | driver/comtypes_gamry_simulate.py | yul69-cell/HELAO | a39372eb385ee93b711443d9cbd56c5ec737ff70 | [
"CC0-1.0"
] | null | null | null | driver/comtypes_gamry_simulate.py | yul69-cell/HELAO | a39372eb385ee93b711443d9cbd56c5ec737ff70 | [
"CC0-1.0"
] | null | null | null | #create cinet and functions like COMError that simulate Gamry
#dtaq.Cook is defined to return dummy data when called
#import config here and check if a simulation is being run and if so load that simulation .py that overrides functions like dtaq.Cook | 50.4 | 133 | 0.809524 |
06ada35b71f676f14ae2a8fbfcb628afacd0c4d8 | 512 | py | Python | oj2.py | YanshuHu/combinatoricsoj2 | 51fa8cf06042e63642b8407d12de99d22f0e7a3b | [
"Apache-2.0"
] | null | null | null | oj2.py | YanshuHu/combinatoricsoj2 | 51fa8cf06042e63642b8407d12de99d22f0e7a3b | [
"Apache-2.0"
] | null | null | null | oj2.py | YanshuHu/combinatoricsoj2 | 51fa8cf06042e63642b8407d12de99d22f0e7a3b | [
"Apache-2.0"
] | null | null | null |
if __name__ == '__main__':
main()
| 20.48 | 40 | 0.564453 |
06af2b443d404bade0c4526a7994135505c898f7 | 737 | py | Python | kelte/maths/vector.py | brianbruggeman/rl | 6dd8a53da07697ffc87e62aa397be7b3b08f0aa0 | [
"MIT"
] | null | null | null | kelte/maths/vector.py | brianbruggeman/rl | 6dd8a53da07697ffc87e62aa397be7b3b08f0aa0 | [
"MIT"
] | null | null | null | kelte/maths/vector.py | brianbruggeman/rl | 6dd8a53da07697ffc87e62aa397be7b3b08f0aa0 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from .point import Point
NONE: Direction = Direction(0, 0)
NORTH: Direction = Direction(0, -1)
SOUTH: Direction = Direction(0, 1)
EAST: Direction = Direction(1, 0)
WEST: Direction = Direction(-1, 0)
NORTH_EAST: Direction = NORTH + EAST
NORTH_WEST: Direction = NORTH + WEST
... | 22.333333 | 40 | 0.708277 |
06af865f1a3973785536a7d3858ef8ea324bb911 | 1,437 | py | Python | tests/bugs/core_4158_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_4158_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_4158_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.core_4158
# title: Regression: LIKE with escape does not work
# decription:
# tracker_id: CORE-4158
# min_versions: ['2.0.7']
# versions: 2.0.7
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Action
# version: 2.0.7
# resources: Non... | 26.127273 | 70 | 0.592902 |
06afc4b209dc7b6ac90802b9ff2ce19d8ee2b910 | 18,430 | py | Python | trustyroles/arpd_update/arpd_update.py | hmcguire1/trustyroles | 5dbe3d65353538f84f12f3ecef6de2a8cc3f731f | [
"MIT"
] | 2 | 2019-12-16T15:10:13.000Z | 2020-02-24T20:13:40.000Z | trustyroles/arpd_update/arpd_update.py | hmcguire1/trustyroles | 5dbe3d65353538f84f12f3ecef6de2a8cc3f731f | [
"MIT"
] | null | null | null | trustyroles/arpd_update/arpd_update.py | hmcguire1/trustyroles | 5dbe3d65353538f84f12f3ecef6de2a8cc3f731f | [
"MIT"
] | 1 | 2019-12-05T01:12:33.000Z | 2019-12-05T01:12:33.000Z | """
arpd_update focuses on easily editing the assume role policy document of a role.
"""
import os
import json
import logging
import argparse
from datetime import datetime
from typing import List, Dict, Optional
import boto3 # type: ignore
from botocore.exceptions import ClientError # type: ignore
LOGGER = logging.... | 27.507463 | 93 | 0.566522 |
06aff71efc0dec027a46c0058c117887035af9c9 | 7,471 | py | Python | kartingpros/timetrial.py | Vishvak365/Karting-Pros | 1c482cff78e7402c8da8870ff519eea760be4a34 | [
"MIT"
] | 1 | 2021-06-28T21:55:18.000Z | 2021-06-28T21:55:18.000Z | kartingpros/timetrial.py | wboyd600/Karting-Pros | 4db4b9f075b152dfea79c89640c0bac1becce89b | [
"MIT"
] | 17 | 2020-11-27T14:33:39.000Z | 2020-12-08T00:45:18.000Z | kartingpros/timetrial.py | wboyd600/Karting-Pros | 4db4b9f075b152dfea79c89640c0bac1becce89b | [
"MIT"
] | 1 | 2021-06-27T20:27:38.000Z | 2021-06-27T20:27:38.000Z | import pygame
import time
import math
import sys
from kartingpros import track, mainmenu, car, settings, loadimage
from kartingpros.loadimage import _load_image, _load_sound, _load_font
import numpy as np
from numpy import save
from kartingpros.car import Car
from pygame.locals import *
from pygame import mix... | 33.959091 | 99 | 0.549458 |
06b0e4b7f2071c5642bd956f75e4b9df9624fc3e | 9,079 | py | Python | tests/location/test_location_utility.py | questionlp/wwdtm | f3cf3399c22bf19e369e6e0250e7c72de0be3a90 | [
"Apache-2.0"
] | null | null | null | tests/location/test_location_utility.py | questionlp/wwdtm | f3cf3399c22bf19e369e6e0250e7c72de0be3a90 | [
"Apache-2.0"
] | 1 | 2022-01-17T04:25:49.000Z | 2022-01-17T04:25:49.000Z | tests/location/test_location_utility.py | questionlp/wwdtm | f3cf3399c22bf19e369e6e0250e7c72de0be3a90 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# vim: set noai syntax=python ts=4 sw=4:
#
# Copyright (c) 2018-2021 Linh Pham
# wwdtm is released under the terms of the Apache License 2.0
"""Testing for object: :py:class:`wwdtm.location.LocationUtility`
"""
import json
from typing import Any, Dict
import pytest
from wwdtm.location import Lo... | 38.965665 | 88 | 0.702941 |
06b195aef83b65c429bf30fd2c08ed267c6351f6 | 2,204 | py | Python | test/create_cert.py | finsberg/pytest-tornado | 52ba5119310be5385ceed74ef94f4538660e3725 | [
"Apache-2.0"
] | 123 | 2015-03-31T17:25:34.000Z | 2021-12-16T12:14:38.000Z | test/create_cert.py | finsberg/pytest-tornado | 52ba5119310be5385ceed74ef94f4538660e3725 | [
"Apache-2.0"
] | 53 | 2015-02-04T06:02:21.000Z | 2020-11-25T20:04:52.000Z | test/create_cert.py | finsberg/pytest-tornado | 52ba5119310be5385ceed74ef94f4538660e3725 | [
"Apache-2.0"
] | 43 | 2015-02-26T05:02:44.000Z | 2021-12-17T10:08:44.000Z | # -*- coding: utf-8 -*-
"""
Create a cert with pyOpenSSL for tests.
Heavily based on python-opsi's OPSI.Util.Task.Certificate.
Source: https://github.com/opsi-org/python-opsi/blob/stable/OPSI/Util/Task/Certificate.py
"""
import argparse
import os
import random
import socket
from tempfile import NamedTemporaryFile
fro... | 23.956522 | 89 | 0.71824 |
06b1a7bf9e162d2f1a93b478504af2c68a143b23 | 680 | py | Python | positional_args.py | nickaigi/effective_python_tips | 1a68b6eaed2e946b003c0cd0bdea03e79b8e8990 | [
"Unlicense"
] | null | null | null | positional_args.py | nickaigi/effective_python_tips | 1a68b6eaed2e946b003c0cd0bdea03e79b8e8990 | [
"Unlicense"
] | null | null | null | positional_args.py | nickaigi/effective_python_tips | 1a68b6eaed2e946b003c0cd0bdea03e79b8e8990 | [
"Unlicense"
] | null | null | null | def log(message, *values):
""" * operator instructs python to pass items from the sequence as
positional arguments
Remember:
- using the * operator with a generator may cause your program
to run out of memory and crash.
- adding new positional parameters to functions that accept
... | 28.333333 | 70 | 0.613235 |
06b1dfaeb76409a1c03b523aa234e5fabb549ad9 | 2,942 | py | Python | fastmri_recon/models/subclassed_models/updnet.py | samiulshuvo/fastmri-reproducible-benchmark | 5ac9ba3e7f1ad859dcf74e7019b574a6bf065eac | [
"MIT"
] | 105 | 2019-09-30T06:05:38.000Z | 2022-03-02T09:48:31.000Z | fastmri_recon/models/subclassed_models/updnet.py | samiulshuvo/fastmri-reproducible-benchmark | 5ac9ba3e7f1ad859dcf74e7019b574a6bf065eac | [
"MIT"
] | 103 | 2019-09-18T08:30:23.000Z | 2022-03-16T22:24:14.000Z | fastmri_recon/models/subclassed_models/updnet.py | samiulshuvo/fastmri-reproducible-benchmark | 5ac9ba3e7f1ad859dcf74e7019b574a6bf065eac | [
"MIT"
] | 38 | 2019-09-30T06:05:41.000Z | 2022-02-26T14:07:52.000Z | from .unet import UnetComplex
from .cross_domain import CrossDomainNet
from ..utils.fourier import FFT, IFFT
| 37.240506 | 81 | 0.602311 |
06b2849360054f2d534889fecd3a7de975d603e4 | 4,342 | py | Python | utilities/misc.py | lebionick/stereo-transformer | 6e7df042d917c5ed00d10bd6ddb6f76e90429148 | [
"Apache-2.0"
] | 410 | 2020-11-06T02:10:17.000Z | 2022-03-25T17:12:24.000Z | utilities/misc.py | lppllppl920/stereo-transformer | f07b1ee8ced1c36e10630401688a06e355056e56 | [
"Apache-2.0"
] | 55 | 2020-11-06T10:29:16.000Z | 2022-03-30T02:10:10.000Z | utilities/misc.py | lppllppl920/stereo-transformer | f07b1ee8ced1c36e10630401688a06e355056e56 | [
"Apache-2.0"
] | 72 | 2020-11-06T07:22:39.000Z | 2022-03-19T14:20:38.000Z | # Authors: Zhaoshuo Li, Xingtong Liu, Francis X. Creighton, Russell H. Taylor, and Mathias Unberath
#
# Copyright (c) 2020. Johns Hopkins University - All rights reserved.
import copy
import numpy as np
import torch
import torch.nn as nn
def torch_1d_sample(source, sample_points, mode='linear'):
"""
li... | 32.893939 | 114 | 0.649931 |
06b29440122743c4d662f5e0b42777454bfb53b1 | 2,600 | py | Python | tfcli/resources/asg.py | leowa/tfcli | 21314feabcb56fe802298a98a66eb4e2a9de8cc7 | [
"MIT"
] | null | null | null | tfcli/resources/asg.py | leowa/tfcli | 21314feabcb56fe802298a98a66eb4e2a9de8cc7 | [
"MIT"
] | null | null | null | tfcli/resources/asg.py | leowa/tfcli | 21314feabcb56fe802298a98a66eb4e2a9de8cc7 | [
"MIT"
] | null | null | null | from .base import BaseResource
class LaunchTemplate(BaseResource):
""" launch template resource to generate from current region
"""
def list_all(self):
"""list all such kind of resources from AWS
:return: list of tupe for a resource (type, name, id)
"""
ec2 = self.sessio... | 31.707317 | 87 | 0.611154 |
06b306a89a539a3cbfca1d1c817821e2aac7c4eb | 28,278 | py | Python | BASS-train.py | shlpu/Statlie-Image-Processor | e40355f43f344fd02041bdc8ce57b0ee101c6cdb | [
"Apache-2.0"
] | 1 | 2019-11-23T12:58:09.000Z | 2019-11-23T12:58:09.000Z | BASS-train.py | shlpu/Statlie-Image-Processor | e40355f43f344fd02041bdc8ce57b0ee101c6cdb | [
"Apache-2.0"
] | null | null | null | BASS-train.py | shlpu/Statlie-Image-Processor | e40355f43f344fd02041bdc8ce57b0ee101c6cdb | [
"Apache-2.0"
] | 3 | 2019-03-27T00:47:08.000Z | 2022-02-05T04:52:48.000Z | import numpy as np
import scipy.io
from sklearn.metrics import confusion_matrix
from random import randint, shuffle
from argparse import ArgumentParser
from helper import getValidDataset
import tensorflow as tf
parser = ArgumentParser()
parser.add_argument('--data', type=str, default='Indian_pines')
parser.add_argumen... | 47.766892 | 169 | 0.607539 |
ebe8e591a0b9b4b36a891f5a5dfead02a0b973da | 2,300 | py | Python | hungarian/python/code/point.py | hrutkabence/tutorials | bd76294860804aee8ecda5e1445464506bf02ee0 | [
"CC0-1.0"
] | null | null | null | hungarian/python/code/point.py | hrutkabence/tutorials | bd76294860804aee8ecda5e1445464506bf02ee0 | [
"CC0-1.0"
] | null | null | null | hungarian/python/code/point.py | hrutkabence/tutorials | bd76294860804aee8ecda5e1445464506bf02ee0 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import math
def PolarP(dist, ang):
""" polar to rectangular coordinates returning Point """
return Point(dist * math.cos(ang), dist * math.sin(ang))
if __name__ == "__main__":
# tests
v = 0.1
A = Point(-100.4627, 52.5957)
B = Point(11.0532, 52.595... | 25.274725 | 65 | 0.513478 |
ebef4935fe5542a7f33a3a5e4cd173560258a38e | 4,588 | py | Python | mlmodels/model_tf/misc/tfcode2/CNN/alex-net/alexnet.py | gitter-badger/mlmodels | f08cc9b6ec202d4ad25ecdda2f44487da387569d | [
"MIT"
] | 1 | 2022-03-11T07:57:48.000Z | 2022-03-11T07:57:48.000Z | mlmodels/model_tf/misc/tfcode2/CNN/alex-net/alexnet.py | whitetiger1002/mlmodels | f70f1da7434e8855eed50adc67b49cc169f2ea24 | [
"MIT"
] | null | null | null | mlmodels/model_tf/misc/tfcode2/CNN/alex-net/alexnet.py | whitetiger1002/mlmodels | f70f1da7434e8855eed50adc67b49cc169f2ea24 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import time
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import tensorflow as tf
from scipy.misc import imresize
from sklearn.cross_validation import train_test_split
import _pickle as cPickle
from train import train
# In[2]:
def unpic... | 37 | 99 | 0.649956 |
ebefcab7987e2949070f887144afd954129e8c65 | 4,184 | py | Python | p8_test/test_local/__init__.py | crazynayan/tpf1 | c81a15d88d4d1f3ed2cf043c90782a4b8509ef14 | [
"MIT"
] | 1 | 2020-01-27T10:10:40.000Z | 2020-01-27T10:10:40.000Z | p8_test/test_local/__init__.py | crazynayan/tpf1 | c81a15d88d4d1f3ed2cf043c90782a4b8509ef14 | [
"MIT"
] | 4 | 2019-08-23T05:24:23.000Z | 2021-09-16T10:05:55.000Z | p8_test/test_local/__init__.py | crazynayan/tpf1 | c81a15d88d4d1f3ed2cf043c90782a4b8509ef14 | [
"MIT"
] | null | null | null | import random
import string
import unittest
from typing import List, Union, Dict
from config import config
from p2_assembly.mac2_data_macro import DataMacro
from p3_db.test_data import TestData
from p3_db.test_data_elements import Pnr
from p4_execution.debug import get_debug_loc, add_debug_loc, get_missed_loc
from p4_... | 42.693878 | 119 | 0.633843 |
ebf03515b2af7a1e35e2369f06d9b3087f0c51d9 | 2,893 | py | Python | models/models.py | ahuimanu/vatsimlib | 12f1bcd248b2157349304583cbc1b499d9f39be0 | [
"MIT"
] | null | null | null | models/models.py | ahuimanu/vatsimlib | 12f1bcd248b2157349304583cbc1b499d9f39be0 | [
"MIT"
] | null | null | null | models/models.py | ahuimanu/vatsimlib | 12f1bcd248b2157349304583cbc1b499d9f39be0 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from datetime import datetime
from typing import Optional
| 28.087379 | 230 | 0.614587 |
ebf042ca58b471a448c4adbffa95dc9ab6a93834 | 360 | py | Python | temp-api/app/models.py | TheLongRunSmoke/birdfeeder | 6f238c9b8c8abdc866aaf042f79b674714fdaa8c | [
"MIT"
] | null | null | null | temp-api/app/models.py | TheLongRunSmoke/birdfeeder | 6f238c9b8c8abdc866aaf042f79b674714fdaa8c | [
"MIT"
] | 1 | 2017-11-28T04:26:45.000Z | 2017-11-28T04:57:47.000Z | temp-api/app/models.py | TheLongRunSmoke/birdfeeder | 6f238c9b8c8abdc866aaf042f79b674714fdaa8c | [
"MIT"
] | null | null | null | from app import db
| 24 | 80 | 0.644444 |
ebf1ffe3b522e31d9f44e5d373462af230e2e497 | 3,199 | py | Python | src/GameController.py | salemalex11/Gomoku | e709bc161a945e5521ea3b234ce8db41d3fd5bfe | [
"MIT"
] | null | null | null | src/GameController.py | salemalex11/Gomoku | e709bc161a945e5521ea3b234ce8db41d3fd5bfe | [
"MIT"
] | null | null | null | src/GameController.py | salemalex11/Gomoku | e709bc161a945e5521ea3b234ce8db41d3fd5bfe | [
"MIT"
] | 3 | 2019-02-17T22:15:36.000Z | 2021-01-04T19:13:52.000Z | # Define imports
import pygame
from pygame import *
import sys
import time
| 36.352273 | 131 | 0.449203 |
ebf22c5792152fe6b5cb3d25a3473aad20996bcf | 17,101 | py | Python | silverberg/test/test_client.py | TimothyZhang/silverberg | fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca | [
"Apache-2.0"
] | 1 | 2019-09-22T04:00:56.000Z | 2019-09-22T04:00:56.000Z | silverberg/test/test_client.py | TimothyZhang/silverberg | fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca | [
"Apache-2.0"
] | 14 | 2015-01-22T01:00:50.000Z | 2017-12-06T03:35:46.000Z | silverberg/test/test_client.py | TimothyZhang/silverberg | fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca | [
"Apache-2.0"
] | 4 | 2015-03-31T19:49:05.000Z | 2020-03-03T20:44:32.000Z | # Copyright 2012 Rackspace Hosting, 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 ... | 41.009592 | 103 | 0.626513 |
ebf2bc1d88e8d3404f1439f8fb4400bf3874e4c0 | 3,386 | py | Python | drawer.py | jarekwg/crossword-packer | 88f90c16272c2c2f64475dffe3b0aaeec11c0606 | [
"MIT"
] | null | null | null | drawer.py | jarekwg/crossword-packer | 88f90c16272c2c2f64475dffe3b0aaeec11c0606 | [
"MIT"
] | null | null | null | drawer.py | jarekwg/crossword-packer | 88f90c16272c2c2f64475dffe3b0aaeec11c0606 | [
"MIT"
] | null | null | null | import re
from exceptions import WordPlacementConflict
from constants import ACROSS, DOWN
| 52.092308 | 159 | 0.560543 |
ebf45563a2d56576081e640ac1564e55a2546dba | 4,200 | py | Python | src/analyse/bubble_map.py | timtroendle/geographic-scale | 81ec940e10b8e692429797e6a066a177e1508a89 | [
"MIT"
] | 3 | 2020-08-19T17:56:22.000Z | 2021-08-19T08:52:21.000Z | src/analyse/bubble_map.py | timtroendle/geographic-scale | 81ec940e10b8e692429797e6a066a177e1508a89 | [
"MIT"
] | null | null | null | src/analyse/bubble_map.py | timtroendle/geographic-scale | 81ec940e10b8e692429797e6a066a177e1508a89 | [
"MIT"
] | null | null | null | import numpy as np
import shapely
import geopandas as gpd
import xarray as xr
import matplotlib.pyplot as plt
import seaborn as sns
EPSG_3035_PROJ4 = "+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +units=m +no_defs "
GREY = "#C0C0C0"
BLUE = "#4F6DB8"
YELLOW = "#FABC3C"
SUPPLY_TECHS = [
"hy... | 30.882353 | 113 | 0.662619 |
ebf4ac0d537eab2740d82a66c4418235ab9c1ffc | 885 | py | Python | src/ytbdl/__init__.py | danloveg/dl-album | 20d142a0992f61b9d13beceb6abe9a9086e33e6a | [
"MIT"
] | null | null | null | src/ytbdl/__init__.py | danloveg/dl-album | 20d142a0992f61b9d13beceb6abe9a9086e33e6a | [
"MIT"
] | null | null | null | src/ytbdl/__init__.py | danloveg/dl-album | 20d142a0992f61b9d13beceb6abe9a9086e33e6a | [
"MIT"
] | null | null | null | import os
import confuse
config = confuse.LazyConfig('ytbdl', None)
def get_loaded_config_sources():
''' Get existing configuration files
Returns:
(list): A list of (string) paths to configuration files that exist on
the file system. Returns an empty list if no configuration files
... | 26.818182 | 79 | 0.673446 |
ebf5ca4f90a237385342b586d5c1e142847a2572 | 4,875 | py | Python | GUI/my_lib/factory.py | EnviableYapper0/FMachineSchedulerPL | 05ba6a2169ee481062b71b917d1f32d26e240eb8 | [
"MIT"
] | null | null | null | GUI/my_lib/factory.py | EnviableYapper0/FMachineSchedulerPL | 05ba6a2169ee481062b71b917d1f32d26e240eb8 | [
"MIT"
] | null | null | null | GUI/my_lib/factory.py | EnviableYapper0/FMachineSchedulerPL | 05ba6a2169ee481062b71b917d1f32d26e240eb8 | [
"MIT"
] | null | null | null | from . import machine as m
from . import machine_calculator as mc
from . import my_time as mt
| 35.326087 | 106 | 0.633231 |
ebfa57fc6af077b8e484bb5107bce4b51e06f9f3 | 1,898 | py | Python | places/models.py | amureki/lunchtime-with-channels | 7cf6cb15b88ceefbebd53963ff1e194d8df6c25c | [
"MIT"
] | null | null | null | places/models.py | amureki/lunchtime-with-channels | 7cf6cb15b88ceefbebd53963ff1e194d8df6c25c | [
"MIT"
] | null | null | null | places/models.py | amureki/lunchtime-with-channels | 7cf6cb15b88ceefbebd53963ff1e194d8df6c25c | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django_extensions.db.models import TimeStampedModel
from stdimage import StdImageField
from stdimage.utils import UploadToUUID
| 29.2 | 67 | 0.615385 |
ebfc9f2828a65b31b16c43b42091b7e322b73651 | 2,363 | py | Python | models/process_dataset.py | Aremaki/MscProjectNMR | 5bb8fb129d5fe326aa73b56cb7c5b01a17aebb0d | [
"MIT"
] | null | null | null | models/process_dataset.py | Aremaki/MscProjectNMR | 5bb8fb129d5fe326aa73b56cb7c5b01a17aebb0d | [
"MIT"
] | null | null | null | models/process_dataset.py | Aremaki/MscProjectNMR | 5bb8fb129d5fe326aa73b56cb7c5b01a17aebb0d | [
"MIT"
] | 1 | 2021-07-28T11:18:00.000Z | 2021-07-28T11:18:00.000Z | import tensorflow as tf
def shuffle_and_batch_dataset(dataset, batch_size, shuffle_buffer=None):
"""
This function is used to shuffle and batch the dataset, using shuffle_buffer
and batch_size.
"""
if shuffle_buffer is not None:
dataset = dataset.shuffle(shuffle_buffer)
dataset = datas... | 41.45614 | 99 | 0.7427 |
ebff48e4dc84757244340320b746691161bc3959 | 1,080 | py | Python | bdc_collection_builder/celery/worker.py | rodolfolotte/bdc-collection-builder | 62583f6c25bca79e7e1b5503bc6308298838c877 | [
"MIT"
] | null | null | null | bdc_collection_builder/celery/worker.py | rodolfolotte/bdc-collection-builder | 62583f6c25bca79e7e1b5503bc6308298838c877 | [
"MIT"
] | null | null | null | bdc_collection_builder/celery/worker.py | rodolfolotte/bdc-collection-builder | 62583f6c25bca79e7e1b5503bc6308298838c877 | [
"MIT"
] | null | null | null | #
# This file is part of Brazil Data Cube Collection Builder.
# Copyright (C) 2019-2020 INPE.
#
# Brazil Data Cube Collection Builder is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
#
"""Defines a structure component to run celery work... | 25.714286 | 96 | 0.759259 |