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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cb0d83bca9047c82889cf5995c31524e13285dd4 | 39 | py | Python | perses/samplers/__init__.py | schallerdavid/perses | 58bd6e626e027879e136f56e175683893e016f8c | [
"MIT"
] | 99 | 2016-01-19T18:10:37.000Z | 2022-03-26T02:43:08.000Z | perses/samplers/__init__.py | schallerdavid/perses | 58bd6e626e027879e136f56e175683893e016f8c | [
"MIT"
] | 878 | 2015-09-18T19:25:30.000Z | 2022-03-31T02:33:04.000Z | perses/samplers/__init__.py | schallerdavid/perses | 58bd6e626e027879e136f56e175683893e016f8c | [
"MIT"
] | 30 | 2015-09-21T15:26:35.000Z | 2022-01-10T20:07:24.000Z | from perses.samplers.samplers import *
| 19.5 | 38 | 0.820513 |
cb0d9532ba61a5b5829e720211165c49e69be279 | 5,272 | py | Python | main.py | ROHITH-Singh/DataScience-Scrappping | 201b5e62e8d12c71628398d42ac40ef8d8ceb198 | [
"Apache-2.0"
] | null | null | null | main.py | ROHITH-Singh/DataScience-Scrappping | 201b5e62e8d12c71628398d42ac40ef8d8ceb198 | [
"Apache-2.0"
] | null | null | null | main.py | ROHITH-Singh/DataScience-Scrappping | 201b5e62e8d12c71628398d42ac40ef8d8ceb198 | [
"Apache-2.0"
] | null | null | null | import requests
import pymongo
from pymongo import MongoClient
import json
from bs4 import BeautifulSoup
cluster= MongoClient("mongodb+srv://admin:Rohit91138@cluster0.d4cq9.mongodb.net/Novelore?retryWrites=true&w=majority")
db=cluster["Novelore"]
collection=db["mangadex-scrap"]
url="https://mangadex.org"
dat... | 36.109589 | 119 | 0.612291 |
cb0dc5cb2397b2b17050683d98107fc206b4c8db | 476 | py | Python | Leetcode/Stacks,_Queues/1_-_Easy/933._Number_of_Recent_Calls.py | Khalid-Sultan/Algorithms-Prep | 7773c5bc0448d8677bf324bd1d9bdc43b813fcd5 | [
"MIT"
] | 1 | 2020-09-21T10:01:26.000Z | 2020-09-21T10:01:26.000Z | Leetcode/Stacks,_Queues/1_-_Easy/933._Number_of_Recent_Calls.py | Khalid-Sultan/Algorithms-Prep | 7773c5bc0448d8677bf324bd1d9bdc43b813fcd5 | [
"MIT"
] | null | null | null | Leetcode/Stacks,_Queues/1_-_Easy/933._Number_of_Recent_Calls.py | Khalid-Sultan/Algorithms-Prep | 7773c5bc0448d8677bf324bd1d9bdc43b813fcd5 | [
"MIT"
] | 2 | 2020-09-01T12:33:55.000Z | 2020-11-30T13:23:50.000Z | from collections import deque
#Your RecentCounter object will be instantiated and called as such:
# Your RecentCounter object will be instantiated and called as such:
# obj = RecentCounter()
# param_1 = obj.ping(t) | 31.733333 | 68 | 0.676471 |
cb0f3976b580dfbacb713d7e37ea1985da4c916a | 3,524 | py | Python | ssqueezepy/viz_toolkit.py | hydrogeoscience/ssqueezepy | fa7654dfad58eda86b5866140625d6976733bdfa | [
"MIT"
] | 3 | 2021-01-08T16:44:40.000Z | 2021-01-11T06:59:55.000Z | ssqueezepy/viz_toolkit.py | hydrogeoscience/ssqueezepy | fa7654dfad58eda86b5866140625d6976733bdfa | [
"MIT"
] | null | null | null | ssqueezepy/viz_toolkit.py | hydrogeoscience/ssqueezepy | fa7654dfad58eda86b5866140625d6976733bdfa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Convenience visual methods"""
import numpy as np
import matplotlib.pyplot as plt
| 30.643478 | 79 | 0.530363 |
cb0f58e18b94913a907849c50579e695ec74ed20 | 1,674 | py | Python | tests/tests.py | mghorbani2357/Necrypt | 7191c8b29c94bf0c2550ab28b2226f64553981fe | [
"MIT"
] | 1 | 2021-02-05T20:42:26.000Z | 2021-02-05T20:42:26.000Z | tests/tests.py | mghorbani2357/Necrypt | 7191c8b29c94bf0c2550ab28b2226f64553981fe | [
"MIT"
] | null | null | null | tests/tests.py | mghorbani2357/Necrypt | 7191c8b29c94bf0c2550ab28b2226f64553981fe | [
"MIT"
] | null | null | null | from unittest import TestCase
from necrypt import Necrypt
import os
| 26.15625 | 73 | 0.635603 |
cb0f869553f8c04f78839e888e57fd4c53f3e6c9 | 555 | py | Python | days/01-03-datetimes/code/calc_dts.py | greywidget/100daysofcode-with-python-course | 4deeb6c52f9f9ae6c415b9997f817b3565582083 | [
"MIT"
] | null | null | null | days/01-03-datetimes/code/calc_dts.py | greywidget/100daysofcode-with-python-course | 4deeb6c52f9f9ae6c415b9997f817b3565582083 | [
"MIT"
] | null | null | null | days/01-03-datetimes/code/calc_dts.py | greywidget/100daysofcode-with-python-course | 4deeb6c52f9f9ae6c415b9997f817b3565582083 | [
"MIT"
] | null | null | null | from datetime import date, timedelta
start_100days = date(2017, 3, 30)
pybites_founded = date(2016, 12, 19)
pycon_date = date(2018, 5, 8)
def get_hundred_days_end_date():
"""Return a string of yyyy-mm-dd"""
end_date = start_100days + timedelta(days=100)
return str(end_date)
def get_days_between_pb_star... | 25.227273 | 56 | 0.735135 |
cb1217616e7d5b0f03ecc1384f9bca660edef2b8 | 9,312 | py | Python | openprocurement/audit/monitoring/views/monitoring.py | ProzorroUKR/openprocurement.audit.api | a17836e29bca28d9151c091e1d2e42de9f70b949 | [
"Apache-2.0"
] | 1 | 2018-05-21T08:14:55.000Z | 2018-05-21T08:14:55.000Z | openprocurement/audit/monitoring/views/monitoring.py | ProzorroUKR/openprocurement.audit.api | a17836e29bca28d9151c091e1d2e42de9f70b949 | [
"Apache-2.0"
] | 59 | 2018-05-18T02:09:47.000Z | 2019-05-29T12:10:06.000Z | openprocurement/audit/monitoring/views/monitoring.py | ProzorroUKR/openprocurement.audit.api | a17836e29bca28d9151c091e1d2e42de9f70b949 | [
"Apache-2.0"
] | 1 | 2020-06-15T11:04:25.000Z | 2020-06-15T11:04:25.000Z | from logging import getLogger
from pyramid.security import ACLAllowed
from openprocurement.audit.api.constants import (
MONITORING_TIME,
ELIMINATION_PERIOD_TIME,
ELIMINATION_PERIOD_NO_VIOLATIONS_TIME,
DRAFT_STATUS,
ACTIVE_STATUS,
ADDRESSED_STATUS,
DECLINED_STATUS,
STOPPED_STATUS,
C... | 42.520548 | 117 | 0.708655 |
cb12a882c75f649d122a95115a98ac8b3e9de7de | 1,224 | py | Python | tests/utilities/test_spectrum_utils.py | jason-neal/companion_simulations | b5773e5539011d492b7128d0dd2778041ce50d52 | [
"MIT"
] | 1 | 2018-09-04T19:06:44.000Z | 2018-09-04T19:06:44.000Z | tests/utilities/test_spectrum_utils.py | jason-neal/companion_simulations | b5773e5539011d492b7128d0dd2778041ce50d52 | [
"MIT"
] | 85 | 2017-03-25T22:37:02.000Z | 2022-03-01T16:49:14.000Z | tests/utilities/test_spectrum_utils.py | jason-neal/companion_simulations | b5773e5539011d492b7128d0dd2778041ce50d52 | [
"MIT"
] | 1 | 2017-08-18T10:56:39.000Z | 2017-08-18T10:56:39.000Z | import os
import numpy as np
import pytest
from spectrum_overload import Spectrum
from mingle.utilities.spectrum_utils import load_spectrum, select_observation
def test_load_no_filename_fits():
"""Not a valid file."""
with pytest.raises(ValueError):
load_spectrum("")
| 27.818182 | 110 | 0.710784 |
cb1307c481c9beb955137f8e7e42252585de4aba | 574 | py | Python | bots/raspador_template/raspador_template_pilot.py | xyla-io/raspador | 4e77234239d44a83faf5c1d3a6d022a9e3861f25 | [
"MIT"
] | null | null | null | bots/raspador_template/raspador_template_pilot.py | xyla-io/raspador | 4e77234239d44a83faf5c1d3a6d022a9e3861f25 | [
"MIT"
] | null | null | null | bots/raspador_template/raspador_template_pilot.py | xyla-io/raspador | 4e77234239d44a83faf5c1d3a6d022a9e3861f25 | [
"MIT"
] | null | null | null | from raspador import Pilot, UserInteractor, BrowserInteractor
from typing import Dict, List | 26.090909 | 95 | 0.709059 |
cb16e92c91411943f9ef0b61014572ffa31aed21 | 9,480 | py | Python | umychart_python/umychart_complier_testcase.py | tokenchain/HQChart | 6d29839cfda853a6a0efe7f085af0cd9db8a549f | [
"Apache-2.0"
] | 4 | 2019-09-30T15:37:50.000Z | 2022-03-28T19:44:46.000Z | umychart_python/umychart_complier_testcase.py | tokenchain/HQChart | 6d29839cfda853a6a0efe7f085af0cd9db8a549f | [
"Apache-2.0"
] | null | null | null | umychart_python/umychart_complier_testcase.py | tokenchain/HQChart | 6d29839cfda853a6a0efe7f085af0cd9db8a549f | [
"Apache-2.0"
] | 2 | 2020-09-21T04:55:45.000Z | 2021-01-05T03:01:02.000Z | # https://github.com/jones2000/HQChart
import sys
import codecs
import webbrowser
from umychart_complier_jscomplier import JSComplier, SymbolOption, HQ_DATA_TYPE
from umychart_complier_jscomplier import ScriptIndexConsole, ScriptIndexItem, SymbolOption, RequestOption, HQ_DATA_TYPE, ArgumentItem
from umychart_w... | 27.719298 | 134 | 0.523945 |
cb189bfc70c1ffe56009041687c4ff42f81f4d14 | 2,778 | py | Python | einguteswerkzeug/helpers/__init__.py | s3h10r/einguteswerkzeug | fe22afc3a6a16802d503dc4485c49d5f3eb8a53d | [
"MIT"
] | 6 | 2019-07-27T16:48:11.000Z | 2022-03-12T20:54:57.000Z | einguteswerkzeug/helpers/__init__.py | s3h10r/einguteswerkzeug | fe22afc3a6a16802d503dc4485c49d5f3eb8a53d | [
"MIT"
] | 20 | 2019-07-27T17:08:29.000Z | 2022-01-13T01:27:24.000Z | einguteswerkzeug/helpers/__init__.py | s3h10r/einguteswerkzeug | fe22afc3a6a16802d503dc4485c49d5f3eb8a53d | [
"MIT"
] | 2 | 2021-03-24T12:26:35.000Z | 2021-08-30T17:48:03.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
some helper funcs
"""
import json
import logging
import os
import site
import subprocess
import sys
import tempfile
import exifread
from PIL import Image
PACKAGE_NAME = "einguteswerkzeug"
# --- configure logging
log = logging.getLogger(__name__)
log.setLevel(logging... | 26.457143 | 85 | 0.61915 |
cb19b5b9cfd192e1f6514f052406927f390c4881 | 2,357 | py | Python | ParadoxTrading/EngineExt/Futures/InterDayOnlineMarketSupply.py | gsamarakoon/ParadoxTrading | 2c4024e60b14bf630fd141ccd4c77f197b7c901a | [
"MIT"
] | 95 | 2018-01-14T14:35:35.000Z | 2021-03-17T02:10:24.000Z | ParadoxTrading/EngineExt/Futures/InterDayOnlineMarketSupply.py | yutiansut/ParadoxTrading | b915d1491663443bedbb048017abeed3f7dcd4e2 | [
"MIT"
] | 2 | 2018-01-14T14:35:51.000Z | 2018-07-06T02:57:49.000Z | ParadoxTrading/EngineExt/Futures/InterDayOnlineMarketSupply.py | yutiansut/ParadoxTrading | b915d1491663443bedbb048017abeed3f7dcd4e2 | [
"MIT"
] | 25 | 2018-01-14T14:38:08.000Z | 2020-07-15T16:03:04.000Z | import logging
import typing
from datetime import datetime
from ParadoxTrading.Engine import MarketSupplyAbstract, ReturnMarket, ReturnSettlement
from ParadoxTrading.Fetch import FetchAbstract
from ParadoxTrading.Utils import DataStruct
| 31.426667 | 86 | 0.573186 |
cb1e226e79e09f241ae2edae33072edf44edd04c | 2,301 | py | Python | bdd/contact_stepts.py | SvetlanaPopova/python_1 | 5acc26e3d3746d7fcf48603d9ca9064e39c248ca | [
"Apache-2.0"
] | null | null | null | bdd/contact_stepts.py | SvetlanaPopova/python_1 | 5acc26e3d3746d7fcf48603d9ca9064e39c248ca | [
"Apache-2.0"
] | null | null | null | bdd/contact_stepts.py | SvetlanaPopova/python_1 | 5acc26e3d3746d7fcf48603d9ca9064e39c248ca | [
"Apache-2.0"
] | null | null | null | __author__ = 'User'
from pytest_bdd import given, when, then
from model.contact import Contact
import random
| 41.836364 | 100 | 0.788787 |
cb1eb4ad097f558852c6e842a35ce159078ca10c | 1,235 | py | Python | tests/models/input/types/test_file_input.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 1 | 2020-12-30T12:43:34.000Z | 2020-12-30T12:43:34.000Z | tests/models/input/types/test_file_input.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 59 | 2019-12-25T13:14:56.000Z | 2021-07-22T12:24:46.000Z | tests/models/input/types/test_file_input.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 2 | 2020-05-24T06:44:27.000Z | 2020-07-09T15:47:31.000Z | from django.core.exceptions import ValidationError
from django.test import TestCase
from django_analyses.models.input.types.input_types import InputTypes
from tests.factories.input.types.file_input import FileInputFactory
| 30.121951 | 90 | 0.678543 |
cb1fb8da536670946ce9d23e583964d60207cf34 | 8,052 | py | Python | videoarchiver.py | yannisHD/StreamRecorder | 90bccee236730fff6e148d24c26aa3e3104d3ca2 | [
"MIT"
] | null | null | null | videoarchiver.py | yannisHD/StreamRecorder | 90bccee236730fff6e148d24c26aa3e3104d3ca2 | [
"MIT"
] | null | null | null | videoarchiver.py | yannisHD/StreamRecorder | 90bccee236730fff6e148d24c26aa3e3104d3ca2 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""A concise tool for archiving video as it is recorded.
"""
import os, time, argparse
import subprocess32 as subprocess
from socket import gethostname
import dvrutils
if __name__ == "__main__":
# parse any arguments passed in
parser = argparse.ArgumentParser(prog='videoarchiver.... | 62.418605 | 237 | 0.615872 |
cb207174c9db151c0797349e4b3c26422a817936 | 5,416 | py | Python | test_nlp_util.py | kenttw/2021-bitbrain-shopee | f63975babc17f03718209432013e325b6eb5e39e | [
"Apache-2.0"
] | null | null | null | test_nlp_util.py | kenttw/2021-bitbrain-shopee | f63975babc17f03718209432013e325b6eb5e39e | [
"Apache-2.0"
] | null | null | null | test_nlp_util.py | kenttw/2021-bitbrain-shopee | f63975babc17f03718209432013e325b6eb5e39e | [
"Apache-2.0"
] | null | null | null | import nlp_util
| 37.351724 | 145 | 0.64051 |
cb210538262eb886c5121655f0c6de13883af94c | 2,433 | py | Python | mlprimitives/adapters/keras.py | Hector-hedb12/MLPrimitives | 82e4826a83ca27e0c2e764625a0d862fc8b95af2 | [
"MIT"
] | null | null | null | mlprimitives/adapters/keras.py | Hector-hedb12/MLPrimitives | 82e4826a83ca27e0c2e764625a0d862fc8b95af2 | [
"MIT"
] | null | null | null | mlprimitives/adapters/keras.py | Hector-hedb12/MLPrimitives | 82e4826a83ca27e0c2e764625a0d862fc8b95af2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
import tempfile
import keras
import numpy as np
from mlprimitives.utils import import_object
LOGGER = logging.getLogger(__name__)
| 28.290698 | 87 | 0.618167 |
cb214db88b78d4f30ed19cb317af575bf87c3f7d | 686 | py | Python | src/django_perf_rec/settings.py | adamchainz/django-perf-rec | f543053d9de5bc7f52f5761fc914d342c78e37a1 | [
"MIT"
] | 147 | 2018-08-21T14:18:27.000Z | 2022-03-31T23:16:58.000Z | src/django_perf_rec/settings.py | adamchainz/django-perf-rec | f543053d9de5bc7f52f5761fc914d342c78e37a1 | [
"MIT"
] | 48 | 2018-07-15T11:07:08.000Z | 2022-03-26T16:00:22.000Z | src/django_perf_rec/settings.py | adamchainz/django-perf-rec | f543053d9de5bc7f52f5761fc914d342c78e37a1 | [
"MIT"
] | 11 | 2018-07-13T10:09:44.000Z | 2021-02-13T18:15:12.000Z | import sys
from typing import Any
from django.conf import settings
if sys.version_info >= (3, 8):
from typing import Literal
ModeType = Literal["once", "none", "all"]
else:
ModeType = str
perf_rec_settings = Settings()
| 20.176471 | 53 | 0.635569 |
cb21a8094269bad0f82713f212cba8533460c4c0 | 3,026 | py | Python | server_parse/server_parse.py | MrFlynn/mc-playerstat-webhook | ffacae4eeeb5baafc21d2bf9076c1472fd3fb06b | [
"MIT"
] | null | null | null | server_parse/server_parse.py | MrFlynn/mc-playerstat-webhook | ffacae4eeeb5baafc21d2bf9076c1472fd3fb06b | [
"MIT"
] | null | null | null | server_parse/server_parse.py | MrFlynn/mc-playerstat-webhook | ffacae4eeeb5baafc21d2bf9076c1472fd3fb06b | [
"MIT"
] | null | null | null | import os
import json
| 34.781609 | 79 | 0.609385 |
cb224d882dc0ed19d5bdb03ccaf29d2bdc6ffef3 | 2,402 | py | Python | mpst_ts/codegen/generator/node/node_v2/node_strategy.py | stscript-cgo/STScript | d2ab2a05b997e9487fd3057a38dcec67feb20e53 | [
"Apache-2.0"
] | null | null | null | mpst_ts/codegen/generator/node/node_v2/node_strategy.py | stscript-cgo/STScript | d2ab2a05b997e9487fd3057a38dcec67feb20e53 | [
"Apache-2.0"
] | null | null | null | mpst_ts/codegen/generator/node/node_v2/node_strategy.py | stscript-cgo/STScript | d2ab2a05b997e9487fd3057a38dcec67feb20e53 | [
"Apache-2.0"
] | null | null | null | import os
from ...utils import CodeGenerationStrategy
from ....endpoint import Endpoint
from .....utils import TemplateGenerator | 39.377049 | 86 | 0.517485 |
cb229d6175600c19fd97b95e24ba4adaaf6eb1d6 | 2,208 | py | Python | dump-pkg/src/dumpshmamp/collectors/docker.py | sha1n/macos-devenv-dump-poc | be439ad4a0c0ac265fe62d44bded73eab1a0c31d | [
"MIT"
] | null | null | null | dump-pkg/src/dumpshmamp/collectors/docker.py | sha1n/macos-devenv-dump-poc | be439ad4a0c0ac265fe62d44bded73eab1a0c31d | [
"MIT"
] | null | null | null | dump-pkg/src/dumpshmamp/collectors/docker.py | sha1n/macos-devenv-dump-poc | be439ad4a0c0ac265fe62d44bded73eab1a0c31d | [
"MIT"
] | null | null | null | from dumpshmamp.collectors.files import try_copyfile, file_path, mkdir
from shminspector.util.cmd import try_capture_output, is_command
| 43.294118 | 120 | 0.714674 |
cb239cecbad0a6d1b7d8d21689a46f10325162cb | 1,185 | py | Python | itamar/find_box.py | ijda3/TrabalhoVisaoEquipe2 | 242209688badafc5ddbbdccaf4f18d38d51ec6f9 | [
"MIT"
] | null | null | null | itamar/find_box.py | ijda3/TrabalhoVisaoEquipe2 | 242209688badafc5ddbbdccaf4f18d38d51ec6f9 | [
"MIT"
] | null | null | null | itamar/find_box.py | ijda3/TrabalhoVisaoEquipe2 | 242209688badafc5ddbbdccaf4f18d38d51ec6f9 | [
"MIT"
] | 1 | 2019-09-17T10:03:18.000Z | 2019-09-17T10:03:18.000Z | import cv2
import numpy as np
# Normal routines
img = cv2.imread('image3.png')
scale_percent = 30 # percent of original size
width = int(img.shape[1] * scale_percent / 100)
height = int(img.shape[0] * scale_percent / 100)
dim = (width, height)
# resize image
img = cv2.resize(img, dim, interpolation = cv2.INTER_AREA... | 28.214286 | 83 | 0.667511 |
cb24335794dfb74e005ddf509d5b53a427be39f3 | 749 | py | Python | P0023.py | sebastianaldi17/ProjectEuler | 19562fba3456ec904bcc264fb786a92610e42622 | [
"MIT"
] | null | null | null | P0023.py | sebastianaldi17/ProjectEuler | 19562fba3456ec904bcc264fb786a92610e42622 | [
"MIT"
] | null | null | null | P0023.py | sebastianaldi17/ProjectEuler | 19562fba3456ec904bcc264fb786a92610e42622 | [
"MIT"
] | null | null | null | # Non-abundant sums
# https://projecteuler.net/problem=23
# This actually took 5 seconds to process.
# Maybe a faster solution is present?
from math import sqrt
from collections import defaultdict
ab = []
ans = 0
d = defaultdict(int)
for i in range(1, 28124):
if divisors(i): ab.append(i)
print("Finished abundant... | 24.16129 | 46 | 0.595461 |
cb24beb92beb674d28a67267a6db323918c01739 | 1,665 | py | Python | api/scpca_portal/config/production.py | AlexsLemonade/scpca-portal | d60d6db5abe892ed58764128269df936778c6fd7 | [
"BSD-3-Clause"
] | null | null | null | api/scpca_portal/config/production.py | AlexsLemonade/scpca-portal | d60d6db5abe892ed58764128269df936778c6fd7 | [
"BSD-3-Clause"
] | 85 | 2021-07-27T14:33:55.000Z | 2022-03-28T20:18:41.000Z | api/scpca_portal/config/production.py | AlexsLemonade/scpca-portal | d60d6db5abe892ed58764128269df936778c6fd7 | [
"BSD-3-Clause"
] | null | null | null | import os
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
from scpca_portal.config.common import Common
| 32.019231 | 121 | 0.655856 |
cb25b7a3a87d4948f644a33014449a6de3b01732 | 1,057 | py | Python | CPP-PyTorch-Ext/test_validation.py | AmirOfir/GCK3x3ConvLayer | adf6ddefb01888fb247edaa0d87e2da546781584 | [
"BSD-3-Clause"
] | null | null | null | CPP-PyTorch-Ext/test_validation.py | AmirOfir/GCK3x3ConvLayer | adf6ddefb01888fb247edaa0d87e2da546781584 | [
"BSD-3-Clause"
] | null | null | null | CPP-PyTorch-Ext/test_validation.py | AmirOfir/GCK3x3ConvLayer | adf6ddefb01888fb247edaa0d87e2da546781584 | [
"BSD-3-Clause"
] | null | null | null | import gc
import math
import numpy as np
import torch
import torch.nn.functional as F
import timeit
import time
from gck_layer import GCK3x3Layer
kernel_dim = 3
lst = [
(1,1,8,1024),
(1,1,16,256),
(1,1,64,512),
(1,1,128,512),
(1,8,16,128)
]
for batch_size, in_channels, out_channels, input_di... | 27.102564 | 102 | 0.685904 |
cb277323c3dc4f94fa2e361b8e6832bfbfd523a1 | 1,009 | py | Python | now_playing_graph/stats.py | macbre/now-playing-graph | 2c211ef5544a6892e8e5fc2556ffcc6b7ca7ab84 | [
"MIT"
] | null | null | null | now_playing_graph/stats.py | macbre/now-playing-graph | 2c211ef5544a6892e8e5fc2556ffcc6b7ca7ab84 | [
"MIT"
] | 3 | 2019-02-07T17:46:04.000Z | 2019-02-15T14:27:09.000Z | now_playing_graph/stats.py | macbre/now-playing-graph | 2c211ef5544a6892e8e5fc2556ffcc6b7ca7ab84 | [
"MIT"
] | null | null | null | """
Prepare some stats from timelines
"""
# https://docs.python.org/3.7/library/collections.html#collections.Counter
from collections import Counter
def get_timeline_stats(timeline):
"""
:type timeline list[now_playing_graph.timeline.TimelineEntry]
:rtype: dict
"""
top_artists = Counter()
top_... | 30.575758 | 85 | 0.697721 |
cb279012d1ad198dad56cddf7894586685f1a73f | 10,197 | py | Python | limnoria-plugins/SupportNotifications/plugin.py | chevah/ircbot-plugins | b3d7d274600c85ab856880b4ec693ee913c25c8a | [
"MIT"
] | null | null | null | limnoria-plugins/SupportNotifications/plugin.py | chevah/ircbot-plugins | b3d7d274600c85ab856880b4ec693ee913c25c8a | [
"MIT"
] | 2 | 2017-05-24T10:39:28.000Z | 2019-11-21T12:45:20.000Z | limnoria-plugins/SupportNotifications/plugin.py | chevah/ircbot-plugins | b3d7d274600c85ab856880b4ec693ee913c25c8a | [
"MIT"
] | null | null | null | """
Use GMail API to check an Inbox for new emails.
To generate the initial credentials you will need to execute this module from
python with first argument to a patch containing your API client details
and the second argument to the file where to store the credentials.
It uses the `historyID` configuration option to... | 30.9 | 79 | 0.577229 |
cb27ec0e5739de15db5126410f025e93999f0c1d | 435 | py | Python | qusetta/_version.py | qcware/qusetta | cf4c1e47d819679a8b4d683326bd6d005686a285 | [
"MIT"
] | 3 | 2020-07-15T15:59:41.000Z | 2022-02-05T15:06:16.000Z | qusetta/_version.py | qcware/qusetta | cf4c1e47d819679a8b4d683326bd6d005686a285 | [
"MIT"
] | 2 | 2021-01-21T12:03:24.000Z | 2021-01-26T18:07:27.000Z | qusetta/_version.py | qcware/qusetta | cf4c1e47d819679a8b4d683326bd6d005686a285 | [
"MIT"
] | 3 | 2020-07-15T15:59:47.000Z | 2022-02-07T15:09:51.000Z | """Defines the version number and details of ``qusetta``."""
__all__ = (
'__version__', '__author__', '__authoremail__', '__license__',
'__sourceurl__', '__description__'
)
__version__ = "0.0.0"
__author__ = "Joseph T. Iosue"
__authoremail__ = "joe.iosue@qcware.com"
__license__ = "MIT License"
__sourceurl__ ... | 29 | 76 | 0.731034 |
cb27ec17609d44f92920d957068c2736f843142c | 777 | py | Python | LobbyService/test/test_get_lobbies.py | Devin0xFFFFFF/singed-feathers | 747eef56fb3ba2a73cb7ba851462894efeddd00b | [
"BSD-3-Clause"
] | 1 | 2017-06-20T15:19:40.000Z | 2017-06-20T15:19:40.000Z | LobbyService/test/test_get_lobbies.py | Devin0xFFFFFF/singed-feathers | 747eef56fb3ba2a73cb7ba851462894efeddd00b | [
"BSD-3-Clause"
] | 3 | 2019-02-13T16:05:25.000Z | 2019-02-15T03:31:06.000Z | LobbyService/test/test_get_lobbies.py | Devin0xFFFFFF/singed-feathers | 747eef56fb3ba2a73cb7ba851462894efeddd00b | [
"BSD-3-Clause"
] | null | null | null | import pytest
from mock import Mock, patch
from service import get_lobbies
| 29.884615 | 116 | 0.759331 |
cb283b303e7b53a68315f74dab085b92d21f9186 | 1,031 | py | Python | truncande/cli.py | Ricyteach/truncande | b7c529cb141b6c534833b4f9536ea6910412d637 | [
"MIT"
] | null | null | null | truncande/cli.py | Ricyteach/truncande | b7c529cb141b6c534833b4f9536ea6910412d637 | [
"MIT"
] | null | null | null | truncande/cli.py | Ricyteach/truncande | b7c529cb141b6c534833b4f9536ea6910412d637 | [
"MIT"
] | null | null | null | import pathlib
import click
from . import candeout
| 25.775 | 88 | 0.676043 |
cb2a679f6bf1c9fc3be6603b4c524bc925b318db | 756 | py | Python | conference/decorators.py | ethancarlsson/epcon | 10ae259ad75271651506d44cc5e71cf089349ea3 | [
"BSD-2-Clause"
] | 40 | 2015-03-03T22:14:58.000Z | 2022-02-15T22:27:48.000Z | conference/decorators.py | ethancarlsson/epcon | 10ae259ad75271651506d44cc5e71cf089349ea3 | [
"BSD-2-Clause"
] | 699 | 2015-01-21T10:13:29.000Z | 2022-02-08T09:26:36.000Z | conference/decorators.py | ethancarlsson/epcon | 10ae259ad75271651506d44cc5e71cf089349ea3 | [
"BSD-2-Clause"
] | 96 | 2015-01-22T11:03:13.000Z | 2022-01-31T05:35:34.000Z | import functools
from django.contrib import messages
from django.urls import reverse
from django.shortcuts import redirect
| 31.5 | 109 | 0.661376 |
cb2b37553000857b2471180fda8b3f952f6a125d | 3,642 | py | Python | flaskdynamo_v1_completeWithCardsTwoPage_API_Version_json_req_type (copy)/2paginator.py | A9K5/Python_Flask | 6e63c80fff1073e4b2a7dbb4e75a15363a9fe432 | [
"MIT"
] | null | null | null | flaskdynamo_v1_completeWithCardsTwoPage_API_Version_json_req_type (copy)/2paginator.py | A9K5/Python_Flask | 6e63c80fff1073e4b2a7dbb4e75a15363a9fe432 | [
"MIT"
] | null | null | null | flaskdynamo_v1_completeWithCardsTwoPage_API_Version_json_req_type (copy)/2paginator.py | A9K5/Python_Flask | 6e63c80fff1073e4b2a7dbb4e75a15363a9fe432 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request, redirect, jsonify
from flask_cors import CORS, cross_origin
from datetime import datetime
from flask import Blueprint
from flask_paginate import Pagination, get_page_parameter
import botocore
import boto3
import decimal
import logging
import time
import argparse
impo... | 30.35 | 104 | 0.594728 |
cb2b648795be23b41ff6ba13bc051d25b71eee73 | 1,279 | py | Python | snap_scripts/old_scripts/tem_iem_older_scripts_april2018/tem_inputs_iem/min_max_deltas_tem_iem.py | ua-snap/downscale | 3fe8ea1774cf82149d19561ce5f19b25e6cba6fb | [
"MIT"
] | 5 | 2020-06-24T21:55:12.000Z | 2022-03-23T16:32:54.000Z | snap_scripts/old_scripts/tem_iem_older_scripts_april2018/tem_inputs_iem/min_max_deltas_tem_iem.py | ua-snap/downscale | 3fe8ea1774cf82149d19561ce5f19b25e6cba6fb | [
"MIT"
] | 17 | 2016-01-04T23:37:47.000Z | 2017-04-17T20:57:02.000Z | snap_scripts/old_scripts/tem_iem_older_scripts_april2018/tem_inputs_iem/min_max_deltas_tem_iem.py | ua-snap/downscale | 3fe8ea1774cf82149d19561ce5f19b25e6cba6fb | [
"MIT"
] | 3 | 2020-09-16T04:48:57.000Z | 2021-05-25T03:46:00.000Z | from downscale import DeltaDownscale
# FOR RUN OF THE MIN / MAX TAS DATA:
# 1. COMPUTE DELTAS FIRST ANND WRITE TO NETCDF
# 2. USE `DeltaDownscaleMinMax` for the downscaling
def delta_mm( fn, mean_fn, variable, mean_variable, output_filename ):
'''
simple way to compute extreme - mean deltas as
native model resol... | 33.657895 | 145 | 0.762314 |
cb2cbf8ad2d571d45d6c4cf03720870a2ec15b6b | 13,552 | py | Python | mldftdat/dft/utils.py | mir-group/CiderPress | bf2b3536e6bd7432645c18dce5a745d63bc9df59 | [
"MIT"
] | 10 | 2021-09-09T06:51:57.000Z | 2021-12-17T09:48:41.000Z | mldftdat/dft/utils.py | mir-group/CiderPress | bf2b3536e6bd7432645c18dce5a745d63bc9df59 | [
"MIT"
] | null | null | null | mldftdat/dft/utils.py | mir-group/CiderPress | bf2b3536e6bd7432645c18dce5a745d63bc9df59 | [
"MIT"
] | null | null | null | import numpy as np
from mldftdat.pyscf_utils import *
from mldftdat.workflow_utils import safe_mem_cap_mb
from pyscf.dft.numint import eval_ao, make_mask
from mldftdat.density import LDA_FACTOR,\
contract21_deriv, contract21, GG_AMIN
LDA_FACTOR = - 3.0 / 4.0 * (3.0 / np.pi)**(1.0/3)
def ... | 35.018088 | 87 | 0.472845 |
cb2cc7212e69c1cafb5036e456b7f734ca0ecc36 | 146 | py | Python | api/apps/boxes/apps.py | polart/vagrant-registry | 47fa53a93d506f2501f333a256ccf36e49970789 | [
"MIT"
] | 8 | 2020-03-16T21:41:08.000Z | 2021-12-16T05:44:04.000Z | api/apps/boxes/apps.py | polart/vagrant-registry | 47fa53a93d506f2501f333a256ccf36e49970789 | [
"MIT"
] | 6 | 2020-03-21T11:23:18.000Z | 2022-02-27T01:16:18.000Z | api/apps/boxes/apps.py | polart/vagrant-registry | 47fa53a93d506f2501f333a256ccf36e49970789 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 16.222222 | 33 | 0.691781 |
cb2db5b3ea07e66e233815cd31fd91213e31f66f | 728 | py | Python | generalexercise/05.py | haxuyennt38/python-learning | c5fcfc0abfd4aebf4ce58e2f23d378703bd48430 | [
"MIT"
] | null | null | null | generalexercise/05.py | haxuyennt38/python-learning | c5fcfc0abfd4aebf4ce58e2f23d378703bd48430 | [
"MIT"
] | null | null | null | generalexercise/05.py | haxuyennt38/python-learning | c5fcfc0abfd4aebf4ce58e2f23d378703bd48430 | [
"MIT"
] | null | null | null | ##Write a program to input from the input file a familiar greeting of any length, each word on a line. Output the greeting file you just received on a single line, the words separated by a space
#Mo file voi mode='r' de doc file
with open('05_ip.txt', 'r') as fileInp:
#Dung ham read() doc toan bo du lieu tu file
F... | 36.4 | 194 | 0.737637 |
cb2f7039474202ce1d528910f710e53fb8291923 | 15,642 | py | Python | pyzem/dvid/dvidio.py | janelia-flyem/pyzem | c8e82e2fea880ef7f597ff5e4c685668ed0a4caa | [
"BSD-3-Clause"
] | 2 | 2018-11-02T07:38:46.000Z | 2019-11-09T02:26:23.000Z | pyzem/dvid/dvidio.py | janelia-flyem/pyzem | c8e82e2fea880ef7f597ff5e4c685668ed0a4caa | [
"BSD-3-Clause"
] | null | null | null | pyzem/dvid/dvidio.py | janelia-flyem/pyzem | c8e82e2fea880ef7f597ff5e4c685668ed0a4caa | [
"BSD-3-Clause"
] | 2 | 2017-12-26T16:15:34.000Z | 2020-04-15T12:18:38.000Z | from __future__ import print_function
from __future__ import absolute_import
import os
import sys
from optparse import OptionParser
import json
import requests
from pyzem.dvid import dvidenv
import datetime
# class DvidService:
# def __init__(self, host = None, port = None, uuid = None):
# self._reader =... | 37.510791 | 196 | 0.609385 |
cb2f8c67b0e2ca2a922fcafb3a06a1e2018da4f3 | 3,970 | py | Python | tf src/app_tf.py | aj-naik/Emotion-Recognistion | 65068c357b8594ef486da2056e91c9cc83a1c1fe | [
"MIT"
] | null | null | null | tf src/app_tf.py | aj-naik/Emotion-Recognistion | 65068c357b8594ef486da2056e91c9cc83a1c1fe | [
"MIT"
] | null | null | null | tf src/app_tf.py | aj-naik/Emotion-Recognistion | 65068c357b8594ef486da2056e91c9cc83a1c1fe | [
"MIT"
] | 1 | 2021-06-23T20:07:47.000Z | 2021-06-23T20:07:47.000Z | import tkinter as tk
from tkinter import *
import cv2
from PIL import Image, ImageTk
import numpy as np
import tensorflow as tf
from tensorflow.keras import layers
from tensorflow import keras
emotion_model = keras.Sequential(
[
layers.Conv2D(32, kernel_size=(3,3), activation='relu', input_shape = (48,48,... | 35.446429 | 145 | 0.623174 |
cb31d3dbb2f45257182e33ad028503ef96676702 | 14,032 | py | Python | ostap/logger/mute.py | TatianaOvsiannikova/ostap | a005a78b4e2860ac8f4b618e94b4b563b2eddcf1 | [
"BSD-3-Clause"
] | 14 | 2017-03-24T12:38:08.000Z | 2022-02-21T05:00:57.000Z | ostap/logger/mute.py | TatianaOvsiannikova/ostap | a005a78b4e2860ac8f4b618e94b4b563b2eddcf1 | [
"BSD-3-Clause"
] | 10 | 2019-03-08T18:48:42.000Z | 2022-03-22T11:59:48.000Z | ostap/logger/mute.py | TatianaOvsiannikova/ostap | a005a78b4e2860ac8f4b618e94b4b563b2eddcf1 | [
"BSD-3-Clause"
] | 11 | 2017-03-23T15:29:58.000Z | 2022-02-21T05:03:57.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
## @file
# Module with some simple but useful utilities
# - suppression of stdout/stderr
# @author Vanya BELYAEV Ivan.Belyaev@itep.ru
# @date 2013-02-10
#
# ===========================... | 34.141119 | 98 | 0.503278 |
cb36446e17dc2a78bb119a8682ef3d02f6e62079 | 22,403 | py | Python | saascs_sschoreo/feature_choreo/task_helper.py | muraligo/featuretimeline | 24c4f619079380dbe43cb8efae9455ae80de3ae0 | [
"MIT"
] | null | null | null | saascs_sschoreo/feature_choreo/task_helper.py | muraligo/featuretimeline | 24c4f619079380dbe43cb8efae9455ae80de3ae0 | [
"MIT"
] | null | null | null | saascs_sschoreo/feature_choreo/task_helper.py | muraligo/featuretimeline | 24c4f619079380dbe43cb8efae9455ae80de3ae0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 09 15:44:40 2020
@author: mugopala
Helper functions for tasks
"""
import os
import stat
import json
import threading
import time
import queue as stdq
import csv
from io import StringIO
from .helpers import file_reader
from . import task_consts, co... | 44.187377 | 244 | 0.599339 |
cb3862c145315bab55381d425ba7e7e14a856cfa | 819 | py | Python | media.py | DojoZheng/Udacity-Movies-Website | e59d294b555e1abb9db7ecb46a51c9a72b9b8dcf | [
"MIT"
] | null | null | null | media.py | DojoZheng/Udacity-Movies-Website | e59d294b555e1abb9db7ecb46a51c9a72b9b8dcf | [
"MIT"
] | null | null | null | media.py | DojoZheng/Udacity-Movies-Website | e59d294b555e1abb9db7ecb46a51c9a72b9b8dcf | [
"MIT"
] | null | null | null | import webbrowser | 37.227273 | 95 | 0.752137 |
cb397006da0e1fab13bd9fe5696085b9a41dee97 | 1,365 | py | Python | converter.py | Supercip971/convertisseur-python | 5e8e6c150fcc3c79e4902971ffd6227b32253450 | [
"MIT"
] | null | null | null | converter.py | Supercip971/convertisseur-python | 5e8e6c150fcc3c79e4902971ffd6227b32253450 | [
"MIT"
] | null | null | null | converter.py | Supercip971/convertisseur-python | 5e8e6c150fcc3c79e4902971ffd6227b32253450 | [
"MIT"
] | null | null | null | str_xdigits = [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"a",
"b",
"c",
"d",
"e",
"f",
]
| 17.727273 | 69 | 0.570696 |
cb3c3f1580ef22e37e0c06b778c777c3a92768d2 | 13,914 | py | Python | backend/test/test_api.py | solevis/pixyship2 | 15a592a1961e4286a344a0d1664cfb491439bf09 | [
"MIT"
] | 8 | 2021-04-04T17:10:35.000Z | 2021-12-04T06:56:56.000Z | backend/test/test_api.py | solevis/pixyship2 | 15a592a1961e4286a344a0d1664cfb491439bf09 | [
"MIT"
] | 56 | 2021-02-18T14:50:32.000Z | 2022-03-28T14:03:30.000Z | backend/test/test_api.py | solevis/pixyship2 | 15a592a1961e4286a344a0d1664cfb491439bf09 | [
"MIT"
] | 2 | 2021-09-28T00:57:00.000Z | 2022-01-21T07:47:15.000Z | from pixelstarshipsapi import PixelStarshipsApi
from run import push_context
| 28.280488 | 78 | 0.720425 |
cb3c41b02dde05dedca749f977bedf28e7616d9a | 2,776 | py | Python | tests/test_io.py | crindt/geofeather | 5cf339de6a6db894493c2ed0515a8947620276c7 | [
"MIT"
] | 60 | 2019-10-04T14:06:14.000Z | 2021-06-29T16:15:49.000Z | tests/test_io.py | crindt/geofeather | 5cf339de6a6db894493c2ed0515a8947620276c7 | [
"MIT"
] | 5 | 2019-10-07T01:48:15.000Z | 2020-06-25T02:48:11.000Z | tests/test_io.py | brendan-ward/geofeather | 412db7e410e44de14d9c408d91ea116f699ffe01 | [
"MIT"
] | null | null | null | import os
from geofeather import to_geofeather, from_geofeather
from pandas.testing import assert_frame_equal
import pytest
def test_points_geofeather(tmpdir, points_wgs84):
"""Confirm that we can round-trip points to / from feather file"""
filename = tmpdir / "points_wgs84.feather"
to_geofeather(points... | 31.191011 | 107 | 0.736671 |
cb3cff9fc2f6aa6821bff72a0e29830eff5b0e64 | 4,133 | py | Python | pilmoji/helpers.py | solfisher/miq-fedi | 2eb7137410ce099ba995b96623191f8b391e446b | [
"MIT"
] | 8 | 2022-01-18T11:45:36.000Z | 2022-02-23T12:54:50.000Z | pilmoji/helpers.py | solfisher/miq-fedi | 2eb7137410ce099ba995b96623191f8b391e446b | [
"MIT"
] | 2 | 2022-01-21T12:34:50.000Z | 2022-01-23T03:18:34.000Z | pilmoji/helpers.py | solfisher/miq-fedi | 2eb7137410ce099ba995b96623191f8b391e446b | [
"MIT"
] | 1 | 2022-01-22T19:53:08.000Z | 2022-01-22T19:53:08.000Z | from __future__ import annotations
import re
from enum import Enum
from emoji import EMOJI_UNICODE
from PIL import ImageFont
from typing import Final, List, NamedTuple, TYPE_CHECKING
if TYPE_CHECKING:
from .core import FontT
# This is actually way faster than it seems
_UNICODE_EMOJI_REGEX = '|'.join(map(re.es... | 24.169591 | 120 | 0.571256 |
cb3d02f01e83a74d7111454d080e99724759677b | 53,276 | py | Python | networking_arista/ml2/mechanism_arista.py | sapcc/networking-arista | c274dac96e88c764decf2821c90c6866b868e1d6 | [
"Apache-2.0"
] | null | null | null | networking_arista/ml2/mechanism_arista.py | sapcc/networking-arista | c274dac96e88c764decf2821c90c6866b868e1d6 | [
"Apache-2.0"
] | 8 | 2018-03-28T07:55:54.000Z | 2020-05-29T05:36:38.000Z | networking_arista/ml2/mechanism_arista.py | sapcc/networking-arista | c274dac96e88c764decf2821c90c6866b868e1d6 | [
"Apache-2.0"
] | 1 | 2017-01-18T14:59:48.000Z | 2017-01-18T14:59:48.000Z | # Copyright (c) 2013 OpenStack Foundation
#
# 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 ... | 43.138462 | 81 | 0.578028 |
cb3d6a46bfe63becf40c12dca772072e068d92b3 | 4,524 | py | Python | yamlfred/alfred_object.py | uchida/yamlfred | bbd3ff1c875aef095556aaa6b5838e1f2a3ec01e | [
"CC0-1.0"
] | null | null | null | yamlfred/alfred_object.py | uchida/yamlfred | bbd3ff1c875aef095556aaa6b5838e1f2a3ec01e | [
"CC0-1.0"
] | null | null | null | yamlfred/alfred_object.py | uchida/yamlfred | bbd3ff1c875aef095556aaa6b5838e1f2a3ec01e | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
import os.path
import uuid
from yamlfred.utils import remove_default, merge_dicts
from yamlfred.utils import Include
defaults = {
'alfred.workflow.output.notification': {
'config': {'removeextension': False, 'output': 0, 'las... | 34.015038 | 148 | 0.552387 |
cb3d6e4db58133f9a78f2d8575a0e3cd280dbefc | 8,231 | py | Python | project2/main.py | DroogieDroog/python | 98ab243638b10270bbce5c38c60abea8823fa9ab | [
"MIT"
] | null | null | null | project2/main.py | DroogieDroog/python | 98ab243638b10270bbce5c38c60abea8823fa9ab | [
"MIT"
] | null | null | null | project2/main.py | DroogieDroog/python | 98ab243638b10270bbce5c38c60abea8823fa9ab | [
"MIT"
] | null | null | null | """
pirple/python/project2/main.py
Project #2
Create a hangman game
"""
from os import system, name
from time import sleep
from random import randint
import string
if __name__ == '__main__':
main()
| 29.187943 | 134 | 0.556312 |
cb3f41020f501bc2a6867a921cdc8450a62111fc | 5,533 | py | Python | deepnlpf/core/plugin_manager.py | deepnlpf/deepnlpf | 6508ab1e8fd395575d606ee20223f25591541e25 | [
"Apache-2.0"
] | 3 | 2020-04-11T14:12:45.000Z | 2020-05-30T16:31:06.000Z | deepnlpf/core/plugin_manager.py | deepnlpf/deepnlpf | 6508ab1e8fd395575d606ee20223f25591541e25 | [
"Apache-2.0"
] | 34 | 2020-03-20T19:36:40.000Z | 2022-03-20T13:00:32.000Z | deepnlpf/core/plugin_manager.py | deepnlpf/deepnlpf | 6508ab1e8fd395575d606ee20223f25591541e25 | [
"Apache-2.0"
] | 1 | 2020-09-05T06:44:15.000Z | 2020-09-05T06:44:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import deepnlpf.log as log
from deepnlpf.core.util import Util
| 33.533333 | 88 | 0.566962 |
cb419d792f99a890b09abc5b89a8052227391ccc | 2,628 | py | Python | features/steps/config.py | wooga/karajan | b0952f156d69206fdcb1d71bd42c227077da6fd2 | [
"MIT"
] | null | null | null | features/steps/config.py | wooga/karajan | b0952f156d69206fdcb1d71bd42c227077da6fd2 | [
"MIT"
] | null | null | null | features/steps/config.py | wooga/karajan | b0952f156d69206fdcb1d71bd42c227077da6fd2 | [
"MIT"
] | 2 | 2018-02-01T14:00:07.000Z | 2022-03-26T18:09:14.000Z | #
# Copyright 2017 Wooga GmbH
#
# 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, merge, publish, distribute... | 29.863636 | 88 | 0.603881 |
cb448d0916ea853ce729b12d6f5c70de1ea2acee | 2,786 | py | Python | hexa/plugins/connector_postgresql/tests/test_models.py | qgerome/openhexa-app | 8c9377b2ad972121d8e9575f5d52420212b52ed4 | [
"MIT"
] | 4 | 2021-07-19T12:53:21.000Z | 2022-01-26T17:45:02.000Z | hexa/plugins/connector_postgresql/tests/test_models.py | qgerome/openhexa-app | 8c9377b2ad972121d8e9575f5d52420212b52ed4 | [
"MIT"
] | 20 | 2021-05-17T12:27:06.000Z | 2022-03-30T11:35:26.000Z | hexa/plugins/connector_postgresql/tests/test_models.py | qgerome/openhexa-app | 8c9377b2ad972121d8e9575f5d52420212b52ed4 | [
"MIT"
] | 2 | 2021-09-07T04:19:59.000Z | 2022-02-08T15:33:29.000Z | from django import test
from hexa.user_management.models import Membership, Team, User
from ..models import Database, DatabasePermission, Table
| 32.776471 | 82 | 0.524049 |
cb4660aba1977432913e68e5b117b91b0389ccfc | 1,932 | py | Python | bcs-ui/backend/tests/components/test_bcs_api.py | kayinli/bk-bcs | 93a0856175f7b066ef835921572c1cac590dbd8e | [
"Apache-2.0"
] | 1 | 2021-11-16T08:15:13.000Z | 2021-11-16T08:15:13.000Z | bcs-ui/backend/tests/components/test_bcs_api.py | kayinli/bk-bcs | 93a0856175f7b066ef835921572c1cac590dbd8e | [
"Apache-2.0"
] | null | null | null | bcs-ui/backend/tests/components/test_bcs_api.py | kayinli/bk-bcs | 93a0856175f7b066ef835921572c1cac590dbd8e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making PaaS (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance ... | 40.25 | 115 | 0.745859 |
cb469fd0baa70b22ad941da8c2a72d0f0b52a829 | 236 | py | Python | myproject/myproject/apps/sample/urls.py | gabfl/sample-django | e71e37d58f24c86001d4c11b8e0f9a9202313811 | [
"MIT"
] | 1 | 2018-03-27T07:09:50.000Z | 2018-03-27T07:09:50.000Z | myproject/myproject/apps/sample/urls.py | gabfl/sample-django | e71e37d58f24c86001d4c11b8e0f9a9202313811 | [
"MIT"
] | null | null | null | myproject/myproject/apps/sample/urls.py | gabfl/sample-django | e71e37d58f24c86001d4c11b8e0f9a9202313811 | [
"MIT"
] | 1 | 2018-03-27T07:09:51.000Z | 2018-03-27T07:09:51.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('hello', views.hello),
path('world', views.world),
path('users', views.users),
path('user/<int:user_id>', views.user),
]
| 19.666667 | 43 | 0.627119 |
cb4b06a0daa733982a8585a802efc451954cfd95 | 1,764 | py | Python | ops/data_utils.py | lunasara/learning3d | 6ddf529a1a69b780519688dd458aa4c75472ed92 | [
"MIT"
] | null | null | null | ops/data_utils.py | lunasara/learning3d | 6ddf529a1a69b780519688dd458aa4c75472ed92 | [
"MIT"
] | null | null | null | ops/data_utils.py | lunasara/learning3d | 6ddf529a1a69b780519688dd458aa4c75472ed92 | [
"MIT"
] | null | null | null | import torch
| 38.347826 | 115 | 0.638889 |
cb4b79bd2a64b669c02e75a4cc2d59b49df0e3ce | 12,449 | py | Python | test/test_igp_shortcuts.py | tim-fiola/network_traffic_modeler_py3 | d2bd7287ea86fb22ec41c2522164d5761fc225dd | [
"Apache-2.0"
] | 102 | 2018-09-16T00:14:05.000Z | 2022-03-24T09:07:37.000Z | test/test_igp_shortcuts.py | tim-fiola/network_traffic_modeler_py3 | d2bd7287ea86fb22ec41c2522164d5761fc225dd | [
"Apache-2.0"
] | 17 | 2019-01-17T14:00:50.000Z | 2021-05-05T14:59:36.000Z | test/test_igp_shortcuts.py | tim-fiola/network_traffic_modeler_py3 | d2bd7287ea86fb22ec41c2522164d5761fc225dd | [
"Apache-2.0"
] | 10 | 2019-08-14T20:57:34.000Z | 2022-03-24T09:07:42.000Z | import unittest
from pyNTM import FlexModel
from pyNTM import ModelException
from pyNTM import PerformanceModel
| 40.288026 | 101 | 0.662383 |
cb4d4cf11ac360c8c881c5f2263fff2c5582e3f9 | 299 | py | Python | Cracking the Coding Interview/ctci-solutions-master/ch-06-math-and-logic-puzzles/07-the-apocalypse.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 9 | 2020-07-02T06:06:17.000Z | 2022-02-26T11:08:09.000Z | Cracking the Coding Interview/ctci-solutions-master/ch-06-math-and-logic-puzzles/07-the-apocalypse.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 1 | 2021-11-04T17:26:36.000Z | 2021-11-04T17:26:36.000Z | Cracking the Coding Interview/ctci-solutions-master/ch-06-math-and-logic-puzzles/07-the-apocalypse.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 8 | 2021-01-31T10:31:12.000Z | 2022-03-13T09:15:55.000Z | # What will the gender ratio be after every family stops having children after
# after they have a girl and not until then.
| 33.222222 | 78 | 0.725753 |
cb4daf0e2bd9267bcf8579574005098133b4355c | 376 | py | Python | tests/test_transform_identity.py | dlshriver/Queryable | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | 5 | 2016-04-04T16:49:11.000Z | 2020-10-12T13:00:06.000Z | tests/test_transform_identity.py | dlshriver/Queryable | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | 3 | 2016-04-08T16:13:54.000Z | 2022-02-03T15:23:48.000Z | tests/test_transform_identity.py | dlshriver/pinq | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | null | null | null | import unittest
from pinq.transforms import identity
| 25.066667 | 72 | 0.710106 |
cb4dd1da5b0959f9409976e2ab317566a78b6489 | 1,107 | py | Python | Leet-Code/Container-With-Most-Water.py | aminzayer/My-Python-Code | 475e99a134f11e5784478c1d68bce7033ffe02a2 | [
"MIT"
] | 2 | 2022-02-16T22:24:14.000Z | 2022-02-24T16:59:42.000Z | Leet-Code/Container-With-Most-Water.py | aminzayer/My-Python-Code | 475e99a134f11e5784478c1d68bce7033ffe02a2 | [
"MIT"
] | null | null | null | Leet-Code/Container-With-Most-Water.py | aminzayer/My-Python-Code | 475e99a134f11e5784478c1d68bce7033ffe02a2 | [
"MIT"
] | null | null | null | # You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are(i, 0) and (i, height[i]).
# Find two lines that together with the x-axis form a container, such that the container contains the most water.
# Return the maximum amount of water a conta... | 32.558824 | 175 | 0.611563 |
cb4e075a8fb39d2720294e6c1ba006452f6ff42c | 2,304 | py | Python | ssseg/modules/models/encnet/encoding.py | skydengyao/sssegmentation | 606b05983fa967bb3c98d1120f44dfc516532dad | [
"MIT"
] | 1 | 2021-05-28T06:42:37.000Z | 2021-05-28T06:42:37.000Z | ssseg/modules/models/encnet/encoding.py | skydengyao/sssegmentation | 606b05983fa967bb3c98d1120f44dfc516532dad | [
"MIT"
] | null | null | null | ssseg/modules/models/encnet/encoding.py | skydengyao/sssegmentation | 606b05983fa967bb3c98d1120f44dfc516532dad | [
"MIT"
] | null | null | null | '''
Function:
define the Encoding Layer: a learnable residual encoder
Author:
Zhenchao Jin
'''
import torch
import torch.nn as nn
import torch.nn.functional as F
'''Encoding Layer''' | 43.471698 | 130 | 0.65842 |
cb4e5f859ce8ac9363882484ef9e2ee69ad80da8 | 238 | py | Python | examples/quiet.py | NiumXp/slog | 5635c0cf49fb8dd096f843cfed83e669e68da3de | [
"MIT"
] | null | null | null | examples/quiet.py | NiumXp/slog | 5635c0cf49fb8dd096f843cfed83e669e68da3de | [
"MIT"
] | null | null | null | examples/quiet.py | NiumXp/slog | 5635c0cf49fb8dd096f843cfed83e669e68da3de | [
"MIT"
] | null | null | null | import slog
slog.quiet("debbug")
slog.debbug("Hi!")
slog.warning("Debbug?")
slog.unquiet()
slog.debbug("Aaaaaaaaa")
with slog.quiet("debbug"):
slog.debbug("Hello!")
slog.info("Hi!")
slog.info("Debbug?")
slog.debbug("Hey.")
| 12.526316 | 26 | 0.651261 |
cb4ecf77cafee160b1760b224789bf4aa4f08fa5 | 7,325 | py | Python | features.py | sethnabarro/stance-detector | c201b91359ce9e6ad6523a5adb0587730fac3b9b | [
"MIT"
] | null | null | null | features.py | sethnabarro/stance-detector | c201b91359ce9e6ad6523a5adb0587730fac3b9b | [
"MIT"
] | null | null | null | features.py | sethnabarro/stance-detector | c201b91359ce9e6ad6523a5adb0587730fac3b9b | [
"MIT"
] | null | null | null | # coding=utf-8
"""Functions for calculation of features"""
from nltk import sentiment, tokenize
import numpy as np
import pandas as pd
from sklearn.feature_extraction import text as text_sk
from sklearn import preprocessing as preprocessing_sk
import preprocessing
def bag_of_words(tr_tweets, te_tweets, tr_targets=pd... | 46.656051 | 99 | 0.690102 |
cb4f9d88257810b11fcfe2f3d7d48b189b5318eb | 328 | py | Python | bflib/sizes.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | bflib/sizes.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | bflib/sizes.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from enum import Enum
feet_map = {
Size.VerySmall: 1,
Size.Small: 3,
Size.Medium: 5,
Size.Large: 10,
Size.Huge: 20,
}
| 14.26087 | 32 | 0.591463 |
cb50ca5b982e09c30bdecff282510af0ac7a5e35 | 629 | py | Python | setup.py | davidjurgens/support | dd3c676a063998dd883abaab19afd23adb121895 | [
"MIT"
] | 4 | 2019-09-13T10:08:36.000Z | 2021-03-07T15:53:50.000Z | setup.py | davidjurgens/support | dd3c676a063998dd883abaab19afd23adb121895 | [
"MIT"
] | 1 | 2020-04-21T14:02:57.000Z | 2020-04-21T14:02:57.000Z | setup.py | davidjurgens/support | dd3c676a063998dd883abaab19afd23adb121895 | [
"MIT"
] | null | null | null | import setuptools
import os
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="supportr",
version="0.1",
author="Zijian Wang and David Jurgens",
author_email="jurgens@umich.edu",
description="Supportr",
long_description=long_description,
long_descri... | 27.347826 | 65 | 0.666137 |
cb50de8faedd2889100e35c361608289adda1cc5 | 1,095 | py | Python | src/utils/common.py | neerajbafila/TransferLearning-pytorch | aa90420ecdaa82579ed766dee060745dc55f2586 | [
"MIT"
] | null | null | null | src/utils/common.py | neerajbafila/TransferLearning-pytorch | aa90420ecdaa82579ed766dee060745dc55f2586 | [
"MIT"
] | null | null | null | src/utils/common.py | neerajbafila/TransferLearning-pytorch | aa90420ecdaa82579ed766dee060745dc55f2586 | [
"MIT"
] | null | null | null | import logging
import os
from zipfile import ZipFile
import yaml
from pathlib import Path
logging.basicConfig(
filename=os.path.join("Logs", "running.log"),
format="[%(asctime)s: %(module)s: %(levelname)s]: %(message)s",
level=logging.INFO,
filemode="a"
) | 28.815789 | 72 | 0.6621 |
cb52f297e432ab0e60e0a856d69e25f2ec7d762c | 1,432 | py | Python | svc/ivoiriansAPI.py | Ivoirians/hour-a-day | 1225d6b4548fbf2eebdf28be7eae32c41754b520 | [
"Apache-2.0"
] | null | null | null | svc/ivoiriansAPI.py | Ivoirians/hour-a-day | 1225d6b4548fbf2eebdf28be7eae32c41754b520 | [
"Apache-2.0"
] | null | null | null | svc/ivoiriansAPI.py | Ivoirians/hour-a-day | 1225d6b4548fbf2eebdf28be7eae32c41754b520 | [
"Apache-2.0"
] | null | null | null | import os
import redis
import code
import urlparse
import json
from werkzeug.wrappers import Request, Response
from werkzeug.routing import Map, Rule
from werkzeug.exceptions import HTTPException, NotFound
from werkzeug.wsgi import SharedDataMiddleware
from werkzeug.utils import redirect
from jinja2 import Environment,... | 26.518519 | 100 | 0.773743 |
cb53bb0ef01ccf5af589daed69e669358bd1faa4 | 1,714 | py | Python | bin/val2rank.py | MichaelMW/crispy | 44a076bd90078f773a58c1e83e8d0185ac2eebfd | [
"MIT"
] | 1 | 2019-06-28T21:14:07.000Z | 2019-06-28T21:14:07.000Z | bin/val2rank.py | MichaelMW/crispy | 44a076bd90078f773a58c1e83e8d0185ac2eebfd | [
"MIT"
] | null | null | null | bin/val2rank.py | MichaelMW/crispy | 44a076bd90078f773a58c1e83e8d0185ac2eebfd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
##### convert values to ranks, tie breaker as average #####
from __future__ import division
from sys import argv, stdin, stdout
from signal import signal, SIGPIPE, SIG_DFL
import argparse
signal(SIGPIPE, SIG_DFL)
# parse args
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--inVal... | 33.607843 | 87 | 0.616103 |
cb56bcf8fe68538776f3fb4e542fc3f89b7ad574 | 414 | py | Python | SAplatform/SAcore/migrations/0009_auto_20190529_2231.py | ThankPan/SA_Backend | 9aecd5950a9170fff264278eded9ab37ee35187b | [
"MIT"
] | 2 | 2019-05-22T09:16:51.000Z | 2019-05-29T10:26:12.000Z | SAplatform/SAcore/migrations/0009_auto_20190529_2231.py | ThankPan/SA_Backend | 9aecd5950a9170fff264278eded9ab37ee35187b | [
"MIT"
] | null | null | null | SAplatform/SAcore/migrations/0009_auto_20190529_2231.py | ThankPan/SA_Backend | 9aecd5950a9170fff264278eded9ab37ee35187b | [
"MIT"
] | null | null | null | # Generated by Django 2.0.6 on 2019-05-29 14:31
from django.db import migrations, models
| 21.789474 | 88 | 0.608696 |
cb575e0025f5490ee367cec528d88472fed65faf | 2,121 | py | Python | crons/tests/test_CLI_system_stats.py | j9ac9k/navitron | efe7fba739037da7cc35e34dbe10d7d292260860 | [
"MIT"
] | 2 | 2018-07-22T18:09:44.000Z | 2021-06-20T19:09:33.000Z | crons/tests/test_CLI_system_stats.py | j9ac9k/navitron | efe7fba739037da7cc35e34dbe10d7d292260860 | [
"MIT"
] | 4 | 2017-10-24T22:45:29.000Z | 2018-12-19T17:19:46.000Z | crons/tests/test_CLI_system_stats.py | j9ac9k/navitron | efe7fba739037da7cc35e34dbe10d7d292260860 | [
"MIT"
] | null | null | null | """test_CLI_system_stats.py: tests expected behavior for CLI application"""
from os import path
import pytest
from plumbum import local
import pandas as pd
import navitron_crons.exceptions as exceptions
import navitron_crons._version as _version
import navitron_crons.navitron_system_stats as navitron_system_stats
im... | 28.662162 | 82 | 0.69967 |
cb5819de6ef04c884c9b16d14543be6dc4d97431 | 6,414 | py | Python | examples/example_envSampling.py | zmorrell-sand/WDRT | 5a28ef268a1ea7431bdba5bc2ac02d03f39ab608 | [
"Apache-2.0"
] | null | null | null | examples/example_envSampling.py | zmorrell-sand/WDRT | 5a28ef268a1ea7431bdba5bc2ac02d03f39ab608 | [
"Apache-2.0"
] | null | null | null | examples/example_envSampling.py | zmorrell-sand/WDRT | 5a28ef268a1ea7431bdba5bc2ac02d03f39ab608 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import WDRT.ESSC as ESSC
import copy
import matplotlib.pyplot as plt
# Create buoy object, in this case for Station #46022
buoy46022 = ESSC.Buoy('46022', 'NDBC')
# Read data from ndbc.noaa.gov
#buoy46022.fetchFromWeb()
#buoy46022.saveAsTxt(savePath = "./Data")
#buoy46022.saveAsH5('NDBC46022.h5')
#... | 43.931507 | 96 | 0.778609 |
cb5837210fd058388e872dafed24e5a5f22d8292 | 386 | py | Python | beamr/parsers/generic.py | teonistor/py-beams | 2b954bc000607cc2b4cd56ac080da90c889f1643 | [
"MIT"
] | 3 | 2019-11-11T13:25:34.000Z | 2021-02-04T14:15:12.000Z | beamr/parsers/generic.py | teonistor/beamr | 2b954bc000607cc2b4cd56ac080da90c889f1643 | [
"MIT"
] | null | null | null | beamr/parsers/generic.py | teonistor/beamr | 2b954bc000607cc2b4cd56ac080da90c889f1643 | [
"MIT"
] | null | null | null | '''
Functionality common to all parsers
Created on 1 Feb 2018
@author: Teodor G Nistor
@copyright: 2018 Teodor G Nistor
@license: MIT License
'''
from beamr.debug import warn
def p_nil(p): # An empty production
'nil :'
pass
| 17.545455 | 52 | 0.647668 |
cb59d14e450dc1448658413d643fbebe5f530c2e | 1,553 | py | Python | forklib/iterator.py | leenr/forklib | 08e2bf1aed41c1247ddf1f859838fa4b2b93b939 | [
"Apache-2.0"
] | null | null | null | forklib/iterator.py | leenr/forklib | 08e2bf1aed41c1247ddf1f859838fa4b2b93b939 | [
"Apache-2.0"
] | null | null | null | forklib/iterator.py | leenr/forklib | 08e2bf1aed41c1247ddf1f859838fa4b2b93b939 | [
"Apache-2.0"
] | null | null | null | import pickle
import struct
from contextlib import ExitStack
from tempfile import NamedTemporaryFile
from .forking import fork, get_id
_HEADER_FORMAT = '>Q'
_HEADER_SIZE = struct.calcsize(_HEADER_FORMAT)
_HEADER_PLACEHOLDER = b'\x00' * _HEADER_SIZE
| 25.459016 | 77 | 0.588538 |
cb5ae8d3cb0553fb8e1a0c3762332d78fda9c262 | 438 | py | Python | st201712-1.py | terry-gjt/csp_python | ecab7c3302fac3db912b7d3734fa4078f09b2b46 | [
"MIT"
] | 1 | 2021-11-24T11:11:00.000Z | 2021-11-24T11:11:00.000Z | st201712-1.py | terry-gjt/csp_python | ecab7c3302fac3db912b7d3734fa4078f09b2b46 | [
"MIT"
] | null | null | null | st201712-1.py | terry-gjt/csp_python | ecab7c3302fac3db912b7d3734fa4078f09b2b46 | [
"MIT"
] | null | null | null | #
# n
if __name__ == '__main__':
st171201() | 25.764706 | 45 | 0.582192 |
cb5bf325d16c4ad64611039b02ce9e3296d30e86 | 279 | py | Python | niaaml_gui/progress_bar.py | zStupan/NiaAML-GUI | fff3dd3e5ae1ec26df77d952970d90e1b26a0cf3 | [
"MIT"
] | 2 | 2020-12-02T19:27:03.000Z | 2021-12-23T11:56:02.000Z | niaaml_gui/progress_bar.py | zStupan/NiaAML-GUI | fff3dd3e5ae1ec26df77d952970d90e1b26a0cf3 | [
"MIT"
] | 8 | 2020-12-08T21:50:48.000Z | 2021-11-23T09:47:43.000Z | niaaml_gui/progress_bar.py | zStupan/NiaAML-GUI | fff3dd3e5ae1ec26df77d952970d90e1b26a0cf3 | [
"MIT"
] | 3 | 2021-04-21T09:42:57.000Z | 2021-11-22T15:47:08.000Z | from PyQt5 import QtCore
from PyQt5.QtWidgets import QProgressBar | 31 | 48 | 0.724014 |
cb5c75b075a2566834211447cb78fb5a7db8b5cf | 11,655 | py | Python | virtualenv_tools.py | benbariteau/virtualenv-tools | c355a0b77f77b125c58f7576e47ccff727c47103 | [
"BSD-3-Clause"
] | null | null | null | virtualenv_tools.py | benbariteau/virtualenv-tools | c355a0b77f77b125c58f7576e47ccff727c47103 | [
"BSD-3-Clause"
] | null | null | null | virtualenv_tools.py | benbariteau/virtualenv-tools | c355a0b77f77b125c58f7576e47ccff727c47103 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""
move-virtualenv
~~~~~~~~~~~~~~~
A helper script that moves virtualenvs to a new location.
It only supports POSIX based virtualenvs and at the moment.
:copyright: (c) 2012 by Fireteam Ltd.
:license: BSD, see LICENSE for more details.
"""
from __future__ import print_f... | 32.019231 | 79 | 0.618018 |
cb5c89e48bd2c30aa38a5010bbb42d8492152c7a | 664 | py | Python | icq/event.py | azalio/python-icq-bot | b5ab8306d2abf8c259da71db1a3195c842d51110 | [
"MIT"
] | null | null | null | icq/event.py | azalio/python-icq-bot | b5ab8306d2abf8c259da71db1a3195c842d51110 | [
"MIT"
] | null | null | null | icq/event.py | azalio/python-icq-bot | b5ab8306d2abf8c259da71db1a3195c842d51110 | [
"MIT"
] | null | null | null | from enum import Enum
| 22.896552 | 53 | 0.64759 |
cb5c97743b3ff2a34f8214c80bd98f52c642c0dc | 4,730 | py | Python | AwsGameKit/Resources/cloudResources/functions/gamesaving/UpdateSlotMetadata/index.py | aws/aws-gamekit-unreal | 72ecf02081e06f2926a5db9269e551f86df9bd10 | [
"Apache-2.0"
] | 17 | 2022-03-23T18:30:33.000Z | 2022-03-31T19:59:27.000Z | AwsGameKit/Resources/cloudResources/functions/gamesaving/UpdateSlotMetadata/index.py | aws/aws-gamekit-unreal | 72ecf02081e06f2926a5db9269e551f86df9bd10 | [
"Apache-2.0"
] | null | null | null | AwsGameKit/Resources/cloudResources/functions/gamesaving/UpdateSlotMetadata/index.py | aws/aws-gamekit-unreal | 72ecf02081e06f2926a5db9269e551f86df9bd10 | [
"Apache-2.0"
] | 4 | 2022-03-24T00:52:16.000Z | 2022-03-28T18:09:08.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import boto3
import botocore
import logging
import os
import urllib.parse
from typing import Any
from gamekithelpers import ddb
# Custom Types:
S3Object = Any
# Magic Values:
ISO_8601_FORMAT = '%Y-%m-%dT%H:%M:%... | 36.953125 | 123 | 0.68203 |
cb5fa397d201436a1a4389a0c1366f5ef179cacd | 1,533 | py | Python | SimTracker/TrackerMaterialAnalysis/test/listGroups.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | SimTracker/TrackerMaterialAnalysis/test/listGroups.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | SimTracker/TrackerMaterialAnalysis/test/listGroups.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | from __future__ import print_function
#! /usr/bin/env cmsRun
import sys
import FWCore.ParameterSet.Config as cms
from SimTracker.TrackerMaterialAnalysis.trackingMaterialVarParsing import options
process = cms.Process("MaterialAnalyser")
if options.geometry == 'run2':
process.load('Configuration.Geometry.Geometr... | 40.342105 | 139 | 0.785388 |
cb613677a3ee27a118aee3be62a3a2fe9492cc91 | 2,515 | py | Python | src/main/resources/test/test_python_server.py | BlindConferenceCode/s-RDF2vec | 4cbd260f083f92af49380a57e06c9a27e9bde977 | [
"MIT"
] | null | null | null | src/main/resources/test/test_python_server.py | BlindConferenceCode/s-RDF2vec | 4cbd260f083f92af49380a57e06c9a27e9bde977 | [
"MIT"
] | null | null | null | src/main/resources/test/test_python_server.py | BlindConferenceCode/s-RDF2vec | 4cbd260f083f92af49380a57e06c9a27e9bde977 | [
"MIT"
] | null | null | null | # This unit test checks the python_server.py
# Run `pytest` in the root directory of the jRDF2vec project (where the pom.xml resides).
import threading
import python_server as server
import time
import requests
from pathlib import Path
uri_prefix = "http://localhost:1808/"
server_thread = ServerThread()
def set... | 28.258427 | 89 | 0.667594 |
cb6231bee43feb497d0b9c5732c4d882c9add250 | 1,041 | py | Python | SOLVED/counting-bits.py | Roxxum/Coding-Challenges | 4212653e9687d002586249df8bb42d17b398f667 | [
"MIT"
] | null | null | null | SOLVED/counting-bits.py | Roxxum/Coding-Challenges | 4212653e9687d002586249df8bb42d17b398f667 | [
"MIT"
] | null | null | null | SOLVED/counting-bits.py | Roxxum/Coding-Challenges | 4212653e9687d002586249df8bb42d17b398f667 | [
"MIT"
] | null | null | null | """
Given an integer n, return an array ans of length n + 1 such that for each i (0 <= i <= n), ans[i] is the number of 1's in the binary representation of i.
Example 1:
Input: n = 2
Output: [0,1,1]
Explanation:
0 --> 0
1 --> 1
2 --> 10
Example 2:
Input: n = 5
Output: [0,1,1,2,1,2]
Explanation:
0 --> 0
1 --> 1
2 --> ... | 18.927273 | 154 | 0.647454 |
cb6279ec0b7ded0ba4cb59e073b1c143b3a2125e | 2,197 | py | Python | tests/test_contributors.py | chfw/gease | dc5e69840c368dab15e0929824a7c952bd7074c3 | [
"MIT"
] | 1 | 2019-01-12T19:39:35.000Z | 2019-01-12T19:39:35.000Z | tests/test_contributors.py | chfw/gease | dc5e69840c368dab15e0929824a7c952bd7074c3 | [
"MIT"
] | 10 | 2017-10-20T07:24:49.000Z | 2020-10-18T11:37:51.000Z | tests/test_contributors.py | chfw/gease | dc5e69840c368dab15e0929824a7c952bd7074c3 | [
"MIT"
] | null | null | null | from mock import MagicMock, patch
from nose.tools import eq_
from gease.contributors import EndPoint
from gease.exceptions import NoGeaseConfigFound
| 30.09589 | 75 | 0.549841 |
cb62bf96d17a2cbe4ec9423845b5e3e251f64ba5 | 1,594 | py | Python | visualizations/urls.py | IlyaLab/ISB-LSDF | 897825832aabb819659bb5ad6f0b1df941619bc9 | [
"Apache-2.0"
] | null | null | null | visualizations/urls.py | IlyaLab/ISB-LSDF | 897825832aabb819659bb5ad6f0b1df941619bc9 | [
"Apache-2.0"
] | null | null | null | visualizations/urls.py | IlyaLab/ISB-LSDF | 897825832aabb819659bb5ad6f0b1df941619bc9 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2015, Institute for Systems Biology
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 w... | 40.871795 | 81 | 0.700753 |
cb62d1c69dc7705da42bb88388ff4a6278a5a329 | 2,913 | py | Python | temp/oldFiles/provaCursorsTweet.py | JeyDi/Mispelling | e2a91178707532f4b00949bbf37fcd17671f1a08 | [
"MIT"
] | 1 | 2019-03-19T23:08:58.000Z | 2019-03-19T23:08:58.000Z | temp/oldFiles/provaCursorsTweet.py | JeyDi/Mispelling | e2a91178707532f4b00949bbf37fcd17671f1a08 | [
"MIT"
] | null | null | null | temp/oldFiles/provaCursorsTweet.py | JeyDi/Mispelling | e2a91178707532f4b00949bbf37fcd17671f1a08 | [
"MIT"
] | null | null | null | import tweepy
import re
import string
# Consumer keys and access tokens, used for OAuth
consumer_key = "P5wTozEUuNOAJCXMajGnRcDs2"
consumer_secret = "RB7p2JVEZxbodmRT3eaA32caonxpo5fS5DOKXcoTxEKJelTZys"
access_token = "997065391644917761-mSZZ6gkTdLEOdDSOAFfu7clvJO4vQPq"
access_token_secret = "MoAMNPZeAmYMwtjaopDrAs1njC... | 37.346154 | 92 | 0.718503 |
cb645b5cde2711211a9e1c6089b1e7f29a0ed5c0 | 8,529 | py | Python | tools/test_balloon_dataset.py | superclass-FSIS/test | 9bb2844c77704a609291135b75e94a794f235aa0 | [
"Apache-2.0"
] | 45 | 2021-04-09T12:52:44.000Z | 2022-03-30T09:08:58.000Z | tools/test_balloon_dataset.py | superclass-FSIS/test | 9bb2844c77704a609291135b75e94a794f235aa0 | [
"Apache-2.0"
] | 8 | 2021-06-29T07:47:07.000Z | 2022-03-23T04:21:00.000Z | tools/test_balloon_dataset.py | superclass-FSIS/test | 9bb2844c77704a609291135b75e94a794f235aa0 | [
"Apache-2.0"
] | 10 | 2021-05-23T05:48:29.000Z | 2022-03-16T06:42:13.000Z | import json
import os
import cv2
import numpy as np
import dutils.imageutils as diu
import dutils.learnutils as dlu
import torch, torchvision
import dutils.simpleutils as dsu
from detectron2.utils.logger import setup_logger
from detectron2.utils import comm
from detectron2 import model_zoo
from detectron2.engine impor... | 39.304147 | 140 | 0.680502 |
cb65458f6c0cf5ce9fd7e7e10dc2952a2760f0a5 | 5,166 | py | Python | src/data_processing/results_visualization.py | YoavLotem/NeuriteOutgrowth | 253fe2d6ab024d905a7f245b052773c850b932c4 | [
"MIT"
] | 1 | 2022-03-29T09:59:47.000Z | 2022-03-29T09:59:47.000Z | src/data_processing/results_visualization.py | YoavLotem/NeuriteOutgrowth | 253fe2d6ab024d905a7f245b052773c850b932c4 | [
"MIT"
] | null | null | null | src/data_processing/results_visualization.py | YoavLotem/NeuriteOutgrowth | 253fe2d6ab024d905a7f245b052773c850b932c4 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
def get_location(well_name, char2num):
"""
calculates for a well's name its row and column indices in an array that represents the plate.
Parameters
----------
well_name: str
the name of the well in the form "B - 02" ... | 34.211921 | 120 | 0.661247 |
cb6614d079e45fa5d3bb1ee408477e4669627542 | 53,973 | py | Python | bindings/java/gen_jni.py | protocols-comnet/openwebrtc | 49e507623133f8faf10c7c99cc60f2c41c9847d2 | [
"BSD-2-Clause"
] | 1 | 2015-01-26T18:53:22.000Z | 2015-01-26T18:53:22.000Z | bindings/java/gen_jni.py | protocols-comnet/openwebrtc | 49e507623133f8faf10c7c99cc60f2c41c9847d2 | [
"BSD-2-Clause"
] | null | null | null | bindings/java/gen_jni.py | protocols-comnet/openwebrtc | 49e507623133f8faf10c7c99cc60f2c41c9847d2 | [
"BSD-2-Clause"
] | 2 | 2020-09-01T07:00:35.000Z | 2020-09-27T01:13:23.000Z | #!/usr/bin/env python -B
# Copyright (c) 2014, Ericsson AB. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list... | 30.649063 | 171 | 0.528857 |
cb665aa274b71e0f1b9621b1df3278784b362d8f | 223 | py | Python | azdashboard/config/environments/production.py | alinlacea/azdashboard | 3ca41bfdac21c324789937c60491dcbb1d70b05c | [
"MIT"
] | null | null | null | azdashboard/config/environments/production.py | alinlacea/azdashboard | 3ca41bfdac21c324789937c60491dcbb1d70b05c | [
"MIT"
] | null | null | null | azdashboard/config/environments/production.py | alinlacea/azdashboard | 3ca41bfdac21c324789937c60491dcbb1d70b05c | [
"MIT"
] | null | null | null | # server backend
server = 'cherrypy'
# debug error messages
debug = False
# auto-reload
reloader = False
# database url
db_url = 'postgresql://user:pass@localhost/dbname'
# echo database engine messages
db_echo = False
| 14.866667 | 50 | 0.744395 |
cb66f50e920c621e6d847f079089141e524ab650 | 880 | py | Python | test/functional_requirements/fault_tolerance/REBUILD_TRIGGERED_RIGHT_AFTER_ARRAY_MOUNTED.py | so931/poseidonos | 2aa82f26bfbd0d0aee21cd0574779a655634f08c | [
"BSD-3-Clause"
] | 38 | 2021-04-06T03:20:55.000Z | 2022-03-02T09:33:28.000Z | test/functional_requirements/fault_tolerance/REBUILD_TRIGGERED_RIGHT_AFTER_ARRAY_MOUNTED.py | so931/poseidonos | 2aa82f26bfbd0d0aee21cd0574779a655634f08c | [
"BSD-3-Clause"
] | 19 | 2021-04-08T02:27:44.000Z | 2022-03-23T00:59:04.000Z | test/functional_requirements/fault_tolerance/REBUILD_TRIGGERED_RIGHT_AFTER_ARRAY_MOUNTED.py | so931/poseidonos | 2aa82f26bfbd0d0aee21cd0574779a655634f08c | [
"BSD-3-Clause"
] | 28 | 2021-04-08T04:39:18.000Z | 2022-03-24T05:56:00.000Z | #!/usr/bin/env python3
import subprocess
import os
import sys
sys.path.append("../")
sys.path.append("../../system/lib/")
sys.path.append("../array/")
import json_parser
import pos
import pos_util
import cli
import api
import json
import time
import CREATE_ARRAY_BASIC
ARRAYNAME = CREATE_ARRAY_BASIC.ARRAYNAME
if __nam... | 24.444444 | 78 | 0.7125 |
cb67393408279dfc1bb2c5b77e787a0b82d4c97b | 476 | py | Python | newspaper/newspaper/news/managers.py | luisfer85/newspaper | 7829eede4ef878562e54ee591bb61862f6fd6ac8 | [
"Apache-2.0"
] | null | null | null | newspaper/newspaper/news/managers.py | luisfer85/newspaper | 7829eede4ef878562e54ee591bb61862f6fd6ac8 | [
"Apache-2.0"
] | null | null | null | newspaper/newspaper/news/managers.py | luisfer85/newspaper | 7829eede4ef878562e54ee591bb61862f6fd6ac8 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from django.db import models
from django.db.models.query import QuerySet
| 23.8 | 86 | 0.714286 |
cb67e96b671f73979043a0074a5a15e47b3714e9 | 5,885 | py | Python | pygem/oggm_compat.py | lilianschuster/PyGEM | c805d09960f937fe6e35cdd1587f9089d4bec6b8 | [
"MIT"
] | null | null | null | pygem/oggm_compat.py | lilianschuster/PyGEM | c805d09960f937fe6e35cdd1587f9089d4bec6b8 | [
"MIT"
] | null | null | null | pygem/oggm_compat.py | lilianschuster/PyGEM | c805d09960f937fe6e35cdd1587f9089d4bec6b8 | [
"MIT"
] | null | null | null | from oggm import cfg, utils
from oggm import workflow
from oggm import tasks
from oggm.cfg import SEC_IN_YEAR
from oggm.core.massbalance import MassBalanceModel
import numpy as np
import pandas as pd
import netCDF4
def single_flowline_glacier_directory(rgi_id, reset=False, prepro_border=80):
"""Prepare a GlacierD... | 31.303191 | 79 | 0.625828 |
cb67f6f07d17c1715cbe8c59cbc66eb52c3ad29b | 6,601 | py | Python | plotting/single_trials.py | PFMassiani/vibly | 5e552cb2ed375d5cd378b92de2f2473485211f2f | [
"MIT"
] | 5 | 2020-06-08T09:44:44.000Z | 2022-03-12T06:13:10.000Z | plotting/single_trials.py | PFMassiani/vibly | 5e552cb2ed375d5cd378b92de2f2473485211f2f | [
"MIT"
] | 7 | 2019-09-27T07:05:34.000Z | 2020-04-27T14:15:07.000Z | plotting/single_trials.py | PFMassiani/vibly | 5e552cb2ed375d5cd378b92de2f2473485211f2f | [
"MIT"
] | 6 | 2019-10-02T09:55:10.000Z | 2021-03-08T13:55:21.000Z | import numpy as np
import matplotlib.pyplot as plt
# colors corresponding to initial flight, stance, second flight
colors = ['k', 'b', 'g']
### The attributes of sol are:
## sol.t : series of time-points at which the solution was calculated
## sol.y : simulation results, size 6 x times
## sol.t_events : list of t... | 32.2 | 97 | 0.645054 |
cb69d8258327daf341149548a2557f2a2fe05f55 | 111,710 | py | Python | ultracart/api/order_api.py | UltraCart/rest_api_v2_sdk_python | d734ea13fabc7a57872ff68bac06861edb8fd882 | [
"Apache-2.0"
] | 1 | 2018-03-15T16:56:23.000Z | 2018-03-15T16:56:23.000Z | ultracart/api/order_api.py | UltraCart/rest_api_v2_sdk_python | d734ea13fabc7a57872ff68bac06861edb8fd882 | [
"Apache-2.0"
] | null | null | null | ultracart/api/order_api.py | UltraCart/rest_api_v2_sdk_python | d734ea13fabc7a57872ff68bac06861edb8fd882 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
UltraCart Rest API V2
UltraCart REST API Version 2 # noqa: E501
OpenAPI spec version: 2.0.0
Contact: support@ultracart.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and py... | 44.737685 | 762 | 0.631403 |
cb6bafc6882d4075105c5df412ef7ffb30632ec6 | 7,753 | py | Python | project-vitas.py | bertmiller/nucypher-data-sharing-PoC | fad28f93277aff3c46e4073f1a9c812c6e6d8b4c | [
"Apache-2.0"
] | 1 | 2020-08-25T18:05:17.000Z | 2020-08-25T18:05:17.000Z | project-vitas.py | bertmiller/nucypher-data-sharing-PoC | fad28f93277aff3c46e4073f1a9c812c6e6d8b4c | [
"Apache-2.0"
] | null | null | null | project-vitas.py | bertmiller/nucypher-data-sharing-PoC | fad28f93277aff3c46e4073f1a9c812c6e6d8b4c | [
"Apache-2.0"
] | 1 | 2020-08-25T18:05:18.000Z | 2020-08-25T18:05:18.000Z | import os
import sys
import json
import shutil
import ipfsapi
import base64
import datetime
import maya
from twisted.logger import globalLogPublisher
from umbral.keys import UmbralPublicKey
### NuCypher ###
from nucypher.characters.lawful import Alice, Bob, Ursula
from nucypher.config.characters import ... | 32.57563 | 148 | 0.582871 |
cb6bfa1a351710813d824ef3686ff4624c0467f4 | 70,114 | py | Python | SublimeText3_3176/Data/Packages/SublimeCodeIntel-master/libs/codeintel2/pythoncile1.py | xiexie1993/Tool_Sublime_Text3_for_Windows | 51b11ac2d7df36242d68b3b5f85af5f2a8c550e2 | [
"RSA-MD"
] | 1 | 2018-06-23T08:07:39.000Z | 2018-06-23T08:07:39.000Z | SublimeText3_3176/Data/Packages/SublimeCodeIntel-master/libs/codeintel2/pythoncile1.py | xiexie1993/Tool_Sublime_Text3_for_Windows | 51b11ac2d7df36242d68b3b5f85af5f2a8c550e2 | [
"RSA-MD"
] | null | null | null | SublimeText3_3176/Data/Packages/SublimeCodeIntel-master/libs/codeintel2/pythoncile1.py | xiexie1993/Tool_Sublime_Text3_for_Windows | 51b11ac2d7df36242d68b3b5f85af5f2a8c550e2 | [
"RSA-MD"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2004-2006 ActiveState Software Inc.
#
# Contributors:
# Trent Mick (TrentM@ActiveState.com)
"""
pythoncile - a Code Intelligence Language Engine for the Python language
Module Usage:
from pythoncile import scan
mtime = os.stat("foo.py")[stat.ST_MTIME]
... | 39.257559 | 86 | 0.53306 |
cb6da2d343e562805f2cca4c8548848e2468245e | 2,092 | py | Python | Perceptron/plot.py | hduliufan/work | 951a69aad5de3387c26fabe417a939349def3df6 | [
"Apache-2.0"
] | null | null | null | Perceptron/plot.py | hduliufan/work | 951a69aad5de3387c26fabe417a939349def3df6 | [
"Apache-2.0"
] | null | null | null | Perceptron/plot.py | hduliufan/work | 951a69aad5de3387c26fabe417a939349def3df6 | [
"Apache-2.0"
] | null | null | null | import numpy as np
#painting
import matplotlib.pyplot as plt
#from perception import perceptron
#read data as DaraFrame
import pandas as pd
import numpy as np
import os
import pandas as pd
import numpy as np
import random
a=np.random.uniform(6.0,7.0,150)
b=np.random.uniform(2.0,4.0,150)
c=np.random.uniform(5.0,5.5,150)... | 27.526316 | 80 | 0.605163 |
cb6dd223fbcda5dd89b671bf21c46619bf3da3ff | 2,552 | py | Python | src/pipelines/epidemiology/sd_humdata.py | chrismayemba/covid-19-open-data | cacecb05cd8277f8e61b6e7932915826f41af24b | [
"Apache-2.0"
] | 430 | 2020-07-23T23:45:20.000Z | 2022-03-25T09:44:28.000Z | src/pipelines/epidemiology/sd_humdata.py | chrismayemba/covid-19-open-data | cacecb05cd8277f8e61b6e7932915826f41af24b | [
"Apache-2.0"
] | 222 | 2020-07-30T11:45:05.000Z | 2022-02-22T18:58:11.000Z | src/pipelines/epidemiology/sd_humdata.py | chrismayemba/covid-19-open-data | cacecb05cd8277f8e61b6e7932915826f41af24b | [
"Apache-2.0"
] | 123 | 2020-07-30T09:18:47.000Z | 2022-02-24T18:08:17.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 36.457143 | 131 | 0.641066 |
cb6e1054c6b990606b9dd982aae2049b69146307 | 6,990 | py | Python | posthog/helpers/session_recording.py | lharress/posthog | 73809d54b14ffc1b6ad6f600e0e4f06ab3090cb1 | [
"MIT"
] | null | null | null | posthog/helpers/session_recording.py | lharress/posthog | 73809d54b14ffc1b6ad6f600e0e4f06ab3090cb1 | [
"MIT"
] | null | null | null | posthog/helpers/session_recording.py | lharress/posthog | 73809d54b14ffc1b6ad6f600e0e4f06ab3090cb1 | [
"MIT"
] | null | null | null | import base64
import dataclasses
import gzip
import json
from collections import defaultdict
from typing import DefaultDict, Dict, Generator, List, Optional
from sentry_sdk.api import capture_exception, capture_message
from posthog.models import utils
Event = Dict
SnapshotData = Dict
FULL_SNAPSHOT = 2
def ch... | 36.40625 | 127 | 0.669957 |
cb6e6dd109fe14cd4863e7a3ef1390182e64eed7 | 3,142 | py | Python | lexical-parse-float/etc/limits.py | sjurajpuchky/rust-lexical | 827dd8722967030bfe75cfbd786f0e160ffb9c0c | [
"Apache-2.0",
"MIT"
] | 249 | 2018-12-15T22:10:42.000Z | 2022-03-28T05:43:13.000Z | lexical-parse-float/etc/limits.py | sjurajpuchky/rust-lexical | 827dd8722967030bfe75cfbd786f0e160ffb9c0c | [
"Apache-2.0",
"MIT"
] | 76 | 2018-11-25T03:41:43.000Z | 2022-03-15T18:57:00.000Z | lexical-parse-float/etc/limits.py | sjurajpuchky/rust-lexical | 827dd8722967030bfe75cfbd786f0e160ffb9c0c | [
"Apache-2.0",
"MIT"
] | 35 | 2018-12-02T19:35:28.000Z | 2022-03-12T23:37:39.000Z | #!/usr/bin/env python3
"""
Generate the numeric limits for a given radix.
This is used for the fast-path algorithms, to calculate the
maximum number of digits or exponent bits that can be exactly
represented as a native value.
"""
import math
def is_pow2(value):
'''Calculate if a value is a power of 2.'''
... | 30.504854 | 82 | 0.619669 |
cb71623c916418a16c084ab270fc77fa09bde0bc | 1,077 | py | Python | importer/management/commands/rebuild_variant_summary.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | 14 | 2019-09-30T12:44:17.000Z | 2022-02-04T14:45:16.000Z | importer/management/commands/rebuild_variant_summary.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | 244 | 2021-03-26T15:13:15.000Z | 2022-03-31T15:48:04.000Z | importer/management/commands/rebuild_variant_summary.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | 8 | 2020-05-19T21:55:13.000Z | 2022-03-31T07:02:58.000Z | """Django command for rebuilding cohort statistics after import."""
from django.core.management.base import BaseCommand
from django.db import transaction
from ...tasks import refresh_variants_smallvariantsummary
import variants.models as models
| 34.741935 | 100 | 0.692665 |
cb7491736bfbd22fd0d03bf388c942817f7860a2 | 299 | py | Python | Python/9. Errors and Exceptions/exercise2.py | mukeshmithrakumar/HackerRankSolutions | cd9e71be5e8703287b9f4efc042df8827175af1b | [
"MIT"
] | 12 | 2019-10-29T09:49:26.000Z | 2022-02-21T09:43:41.000Z | Python/9. Errors and Exceptions/exercise2.py | ozturkosu/HackerRankSolutions | cd9e71be5e8703287b9f4efc042df8827175af1b | [
"MIT"
] | null | null | null | Python/9. Errors and Exceptions/exercise2.py | ozturkosu/HackerRankSolutions | cd9e71be5e8703287b9f4efc042df8827175af1b | [
"MIT"
] | 10 | 2019-12-22T03:18:50.000Z | 2021-09-23T16:55:25.000Z | # Incorrect Regex "https://www.hackerrank.com/challenges/incorrect-regex/problem"
# Enter your code here. Read input from STDIN. Print output to STDOUT
import re
for i in range(int(input())):
try:
re.compile(input())
print("True")
except ValueError:
print("False")
| 24.916667 | 81 | 0.665552 |
cb7497c601659c58ede1aada3b1214314ef1b050 | 634 | py | Python | Lectures/week_12/demo/api/urls.py | diable201/WEB-development | 370bd731b9a65a1658033a60c63abece11d4e259 | [
"MIT"
] | 1 | 2022-02-18T15:44:46.000Z | 2022-02-18T15:44:46.000Z | Lectures/week_12/demo/api/urls.py | diable201/WEB-development | 370bd731b9a65a1658033a60c63abece11d4e259 | [
"MIT"
] | null | null | null | Lectures/week_12/demo/api/urls.py | diable201/WEB-development | 370bd731b9a65a1658033a60c63abece11d4e259 | [
"MIT"
] | 1 | 2021-03-26T13:55:52.000Z | 2021-03-26T13:55:52.000Z | from django.urls import path
from rest_framework_jwt.views import obtain_jwt_token
from api.views import category_list, category_detail, CategoryListAPIView, CategoryDetailAPIView, \
ProductListAPIView, ProductDetailAPIView
urlpatterns = [
# path('categories/', category_list),
# path('categories/<int:cat... | 28.818182 | 99 | 0.742902 |