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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
baf9dc87b1cbf4d1aa50d41f69704f39a0dd39bd | 2,632 | py | Python | adonai/user/crud.py | Egnod/adonai | b365d81c826fd7b626c9145154ee0136ea73fac1 | [
"MIT"
] | 6 | 2020-01-20T20:02:09.000Z | 2020-02-24T08:40:23.000Z | adonai/user/crud.py | Egnod/adonai | b365d81c826fd7b626c9145154ee0136ea73fac1 | [
"MIT"
] | null | null | null | adonai/user/crud.py | Egnod/adonai | b365d81c826fd7b626c9145154ee0136ea73fac1 | [
"MIT"
] | null | null | null | from ..app.crud import CRUDBase
from .models import (
User,
UserGroup,
UserGroupMember,
UserGroupPermission,
UserPermission,
)
| 26.059406 | 87 | 0.636018 |
bafacff0ec0ab11de0b328ed7de05110681cf6f5 | 3,392 | py | Python | src/yellowdog_client/model/alibaba_instances_compute_source.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/alibaba_instances_compute_source.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/alibaba_instances_compute_source.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass, field
from datetime import datetime
from typing import Dict, Optional, Set
from .alibaba_compute_source import AlibabaComputeSource
from .alibaba_instance_charge_type import AlibabaInstanceChargeType
from .alibaba_spot_strategy import AlibabaSpotStrategy
from .compute_source_exhausti... | 54.709677 | 140 | 0.760613 |
bafaf5113a885d4bb1ff67fe5b1ab222bec78783 | 11,440 | py | Python | CS50x 2021/Final Project/application.py | moqdm/CS50x | 7d9a4b4cbe96516383727dc70a1a274f2beb2d28 | [
"MIT"
] | 7 | 2021-10-05T16:06:09.000Z | 2022-03-14T07:02:33.000Z | CS50x 2021/Final Project/application.py | moqdm/CS50x | 7d9a4b4cbe96516383727dc70a1a274f2beb2d28 | [
"MIT"
] | null | null | null | CS50x 2021/Final Project/application.py | moqdm/CS50x | 7d9a4b4cbe96516383727dc70a1a274f2beb2d28 | [
"MIT"
] | 7 | 2021-10-10T12:35:32.000Z | 2021-12-30T16:03:51.000Z | from flask import Flask, render_template, request, redirect, url_for, session
from flask_session import Session
from tempfile import mkdtemp
from cs50 import SQL
from random import randint
from werkzeug.security import check_password_hash, generate_password_hash
from functions import get_coms_count, get_pages_count
im... | 35.974843 | 139 | 0.664073 |
bafb62d0072c67956cf9e813dc026b729c141c6d | 826 | py | Python | sls/services/consthub.py | jayvdb/sls | c788815898b3665cfe5b316b7780190cb9bdacb9 | [
"Apache-2.0"
] | null | null | null | sls/services/consthub.py | jayvdb/sls | c788815898b3665cfe5b316b7780190cb9bdacb9 | [
"Apache-2.0"
] | null | null | null | sls/services/consthub.py | jayvdb/sls | c788815898b3665cfe5b316b7780190cb9bdacb9 | [
"Apache-2.0"
] | null | null | null | import json
from asyncy.hub.sdk.db.Service import Service
from playhouse.shortcuts import dict_to_model
| 22.944444 | 73 | 0.615012 |
bafc5b05c30d729aa0c87763ff7a80e4e8fdb5b7 | 721 | py | Python | common/xrd-ui-tests-qautomate/common_lib/component_ss_version.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 1 | 2019-02-09T00:16:54.000Z | 2019-02-09T00:16:54.000Z | common/xrd-ui-tests-qautomate/common_lib/component_ss_version.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 1 | 2018-06-06T08:33:32.000Z | 2018-06-06T08:33:32.000Z | common/xrd-ui-tests-qautomate/common_lib/component_ss_version.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 3 | 2018-07-09T08:51:00.000Z | 2020-07-23T18:40:24.000Z | # -*- coding: utf-8 -*-
from QAutoLibrary.extension import TESTDATA
from selenium.webdriver.common.by import By
from QAutoLibrary.QAutoSelenium import *
from time import sleep
from pagemodel.ss_version import Ss_version
| 26.703704 | 64 | 0.690707 |
bafc9badab6fa8688b6c75518218495c76855035 | 6,938 | py | Python | backend/tests/baserow/contrib/database/db/test_db_schema.py | ashishdhngr/baserow | b098678d2165eb7c42930ee24dc6753a3cb520c3 | [
"MIT"
] | null | null | null | backend/tests/baserow/contrib/database/db/test_db_schema.py | ashishdhngr/baserow | b098678d2165eb7c42930ee24dc6753a3cb520c3 | [
"MIT"
] | null | null | null | backend/tests/baserow/contrib/database/db/test_db_schema.py | ashishdhngr/baserow | b098678d2165eb7c42930ee24dc6753a3cb520c3 | [
"MIT"
] | null | null | null | import pytest
from django.db import connection, transaction, ProgrammingError
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
from django.db.backends.dummy.base import DatabaseWrapper as DummyDatabaseWrapper
from django.db.backends.postgresql.schema import (
DatabaseSchemaEditor as PostgresqlDat... | 41.54491 | 88 | 0.72211 |
bafe0eef5fd0a69ec48227d8972b202fbd2f7b99 | 14,149 | py | Python | line.py | vhgnguyen/Lane-detection-on-CARLA | f64ec7136509c69b47a2666f6eacae09226baadd | [
"MIT"
] | null | null | null | line.py | vhgnguyen/Lane-detection-on-CARLA | f64ec7136509c69b47a2666f6eacae09226baadd | [
"MIT"
] | null | null | null | line.py | vhgnguyen/Lane-detection-on-CARLA | f64ec7136509c69b47a2666f6eacae09226baadd | [
"MIT"
] | null | null | null | #!/usr/bin/python
import numpy as np
import math
import cv2
import config as cf | 41.614706 | 131 | 0.574246 |
bafe54956d92542ae97bc15168154b2050039241 | 485 | py | Python | mac/pyobjc-framework-Quartz/PyObjCTest/test_PDFAnnotation.py | albertz/music-player | d23586f5bf657cbaea8147223be7814d117ae73d | [
"BSD-2-Clause"
] | 132 | 2015-01-01T10:02:42.000Z | 2022-03-09T12:51:01.000Z | mac/pyobjc-framework-Quartz/PyObjCTest/test_PDFAnnotation.py | mba811/music-player | 7998986b34cfda2244ef622adefb839331b81a81 | [
"BSD-2-Clause"
] | 6 | 2015-01-06T08:23:19.000Z | 2019-03-14T12:22:06.000Z | mac/pyobjc-framework-Quartz/PyObjCTest/test_PDFAnnotation.py | mba811/music-player | 7998986b34cfda2244ef622adefb839331b81a81 | [
"BSD-2-Clause"
] | 27 | 2015-02-23T11:51:43.000Z | 2022-03-07T02:34:18.000Z |
from PyObjCTools.TestSupport import *
from Quartz.PDFKit import *
if __name__ == "__main__":
main()
| 32.333333 | 66 | 0.762887 |
bafea4f06819b042c24926f389fbaced3bd0060b | 1,585 | py | Python | proxy/selenium_chrome_auth.py | silianpan/seal-spider-demo | 23bf013d08f9edaf23823bc3787f579bccd0ec3a | [
"Apache-2.0"
] | null | null | null | proxy/selenium_chrome_auth.py | silianpan/seal-spider-demo | 23bf013d08f9edaf23823bc3787f579bccd0ec3a | [
"Apache-2.0"
] | 3 | 2021-09-08T01:11:16.000Z | 2022-03-02T15:14:03.000Z | proxy/selenium_chrome_auth.py | silianpan/seal-spider-demo | 23bf013d08f9edaf23823bc3787f579bccd0ec3a | [
"Apache-2.0"
] | 1 | 2019-08-04T09:57:29.000Z | 2019-08-04T09:57:29.000Z | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import zipfile
ip = '127.0.0.1'
port = 9743
username = 'foo'
password = 'bar'
manifest_json = """
{
"version": "1.0.0",
"manifest_version": 2,
"name": "Chrome Proxy",
"permissions": [
"proxy",
"tabs",
... | 22.971014 | 76 | 0.585489 |
baff1d955bc292ecbb9120a30bb080c42324de1c | 3,925 | py | Python | umbrella/api/middleware/context.py | xww/umbrella | c54ed576477602b5bc1ecfe23ae1f59cc46a76e5 | [
"Apache-2.0"
] | null | null | null | umbrella/api/middleware/context.py | xww/umbrella | c54ed576477602b5bc1ecfe23ae1f59cc46a76e5 | [
"Apache-2.0"
] | null | null | null | umbrella/api/middleware/context.py | xww/umbrella | c54ed576477602b5bc1ecfe23ae1f59cc46a76e5 | [
"Apache-2.0"
] | null | null | null | '''
Created on 2012-10-23
@author: hzzhoushaoyu
'''
import webob.exc
import json
from umbrella.common import wsgi
import umbrella.common.log as logging
from umbrella.common import cfg
import umbrella.context
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
context_opts = [
cfg.BoolOpt('owner_is_tenant', defau... | 35.681818 | 79 | 0.611975 |
2401ef1bb0cb741cbeac82b95a7eba1326a957b7 | 1,813 | py | Python | backend/ibutsu_server/models/group.py | john-dupuy/ibutsu-server | ae380fc7a72a4898075291bac8fdb86952bfd06a | [
"MIT"
] | null | null | null | backend/ibutsu_server/models/group.py | john-dupuy/ibutsu-server | ae380fc7a72a4898075291bac8fdb86952bfd06a | [
"MIT"
] | null | null | null | backend/ibutsu_server/models/group.py | john-dupuy/ibutsu-server | ae380fc7a72a4898075291bac8fdb86952bfd06a | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from ibutsu_server import util
from ibutsu_server.models.base_model_ import Model
| 21.329412 | 96 | 0.552675 |
2402994378b5cdd209243e1890f514a6977488f5 | 112 | py | Python | _draft/x_7_2-b.py | ofl/kuku2 | 7247fb1862d917d23258ebe7a93dca5939433225 | [
"MIT"
] | null | null | null | _draft/x_7_2-b.py | ofl/kuku2 | 7247fb1862d917d23258ebe7a93dca5939433225 | [
"MIT"
] | 1 | 2021-11-13T08:03:04.000Z | 2021-11-13T08:03:04.000Z | _draft/x_7_2-b.py | ofl/kuku2 | 7247fb1862d917d23258ebe7a93dca5939433225 | [
"MIT"
] | null | null | null | # x_7_2
#
#
import re
pattern = ''
str = input(':')
print(re.sub(pattern, '', str))
| 10.181818 | 38 | 0.633929 |
2403ee55fdd17cda62dc58821f423f42d3ddfd3d | 1,172 | py | Python | clipper_admin/keras_deployment.py | ivrt/clipper | 66d0cc345e96323447a8ca575430715cb1d2ac93 | [
"Apache-2.0"
] | null | null | null | clipper_admin/keras_deployment.py | ivrt/clipper | 66d0cc345e96323447a8ca575430715cb1d2ac93 | [
"Apache-2.0"
] | null | null | null | clipper_admin/keras_deployment.py | ivrt/clipper | 66d0cc345e96323447a8ca575430715cb1d2ac93 | [
"Apache-2.0"
] | null | null | null | from clipper_admin import ClipperConnection, DockerContainerManager
from clipper_admin.deployers import keras as keras_deployer
import keras
clipper_conn = ClipperConnection(DockerContainerManager())
clipper_conn.connect() # if cluster exists
inpt = keras.layers.Input(shape=(1,))
out = keras.layers.multiply([inpt, i... | 33.485714 | 113 | 0.708191 |
24075c23fd6b2621d98a964f8bc89e606781c687 | 8,017 | py | Python | Project1-MinNE-python/src/interface/cmd.py | MrCaiDev/uestc-CNTProject | ea22325f749b48179a294e73390608491618683a | [
"MIT"
] | 1 | 2022-03-06T04:21:26.000Z | 2022-03-06T04:21:26.000Z | Project1-MinNE-python/src/interface/cmd.py | MrCaiDev/cnt | ea22325f749b48179a294e73390608491618683a | [
"MIT"
] | null | null | null | Project1-MinNE-python/src/interface/cmd.py | MrCaiDev/cnt | ea22325f749b48179a294e73390608491618683a | [
"MIT"
] | 1 | 2022-03-22T01:00:17.000Z | 2022-03-22T01:00:17.000Z | from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from utils.io import get_host_config
from utils.params import MessageType, Mode, Topology
| 35.162281 | 83 | 0.627292 |
240941f8a40679f34211679593aa3ebe92d612d4 | 1,166 | py | Python | app/api/scans.py | jchrisfarris/antiope-scorecards | 82a1e228f4bd23f756c1dec8c0582fcde98de564 | [
"Apache-2.0"
] | 1 | 2020-09-23T21:40:16.000Z | 2020-09-23T21:40:16.000Z | app/api/scans.py | jchrisfarris/antiope-scorecards | 82a1e228f4bd23f756c1dec8c0582fcde98de564 | [
"Apache-2.0"
] | null | null | null | app/api/scans.py | jchrisfarris/antiope-scorecards | 82a1e228f4bd23f756c1dec8c0582fcde98de564 | [
"Apache-2.0"
] | 3 | 2020-07-11T19:18:12.000Z | 2021-08-14T17:43:06.000Z | """
-file concerned with implementation of GET /scans
-should return as many scans as possible starting from newest
-return size must be capped at 6mb
"""
from boto3.dynamodb.conditions import Key
from lib.dynamodb import scans_table
from lib.lambda_decorator.decorator import api_decorator, format_result
BYTE_LIMIT =... | 29.15 | 79 | 0.73928 |
24097dde5cb65efb85c75250fd77c8b47f58abf5 | 1,119 | py | Python | sparrow_cloud/access_control/access_verify.py | waro163/sparrow_cloud | 16560fb93e1ba618607acf0c7ea40440708938ed | [
"MIT"
] | 15 | 2019-09-24T09:32:32.000Z | 2021-12-30T08:07:41.000Z | sparrow_cloud/access_control/access_verify.py | waro163/sparrow_cloud | 16560fb93e1ba618607acf0c7ea40440708938ed | [
"MIT"
] | 13 | 2019-09-06T03:20:02.000Z | 2021-09-27T03:37:25.000Z | sparrow_cloud/access_control/access_verify.py | waro163/sparrow_cloud | 16560fb93e1ba618607acf0c7ea40440708938ed | [
"MIT"
] | 17 | 2019-09-02T06:31:05.000Z | 2021-10-08T04:23:23.000Z | import logging
from sparrow_cloud.restclient import rest_client
from sparrow_cloud.restclient.exception import HTTPException
from sparrow_cloud.utils.get_cm_value import get_cm_value
logger = logging.getLogger(__name__)
def access_verify(user_id, app_name, resource_code):
"""
access control verify
"""
... | 37.3 | 119 | 0.663092 |
2409c8a96b204d611172fad52536ebfb9f4ebe27 | 29,735 | py | Python | oldEngine.py | Dexter-Maine/Eeveaem | ba9b551971d64274a7e5dd5ac87f820a96ab5060 | [
"MIT"
] | null | null | null | oldEngine.py | Dexter-Maine/Eeveaem | ba9b551971d64274a7e5dd5ac87f820a96ab5060 | [
"MIT"
] | null | null | null | oldEngine.py | Dexter-Maine/Eeveaem | ba9b551971d64274a7e5dd5ac87f820a96ab5060 | [
"MIT"
] | null | null | null | """
Open Test Arbatrage System USE AT YOUR OWN RISK!
MULTIPLE EXCHANGE ACCEPTANCE
ALLOWS 'USERS' TO CHOOSE THEIR OWN STRATEGY AS WELL AS TRADING COINS
PROVIDES DETAILED INFORMATION ABOUT EXCHANGES & PLATFORMS
ALLOWS USERS TO CONNECT IN A FRIENDLY ENVIRONMENT
Author: ~Skrypt~
"""
import sys
import os
impor... | 54.360146 | 185 | 0.553422 |
240a3bdc1d5c63b91d07d527be155ad771e6c02e | 7,097 | py | Python | backend/fms_core/services/container.py | c3g/freezeman | bc4b6c8a2876e888ce41b7d14127cc22bc2b2143 | [
"W3C"
] | 2 | 2021-07-31T13:20:08.000Z | 2021-09-28T13:18:55.000Z | backend/fms_core/services/container.py | c3g/freezeman | bc4b6c8a2876e888ce41b7d14127cc22bc2b2143 | [
"W3C"
] | 71 | 2021-03-12T22:08:19.000Z | 2022-03-25T15:24:40.000Z | backend/fms_core/services/container.py | c3g/freezeman | bc4b6c8a2876e888ce41b7d14127cc22bc2b2143 | [
"W3C"
] | null | null | null | from datetime import datetime
from django.core.exceptions import ValidationError
from fms_core.models import Container
from ..containers import CONTAINER_KIND_SPECS
| 45.203822 | 207 | 0.672397 |
240a83d7ee6d8a5009d4cbc9cb32f8bc334441c1 | 32,053 | py | Python | tests/test_dispatcher.py | electronhead/whendo | 27112834be0935b5b0f7ade4316e35532532e047 | [
"MIT"
] | 1 | 2022-03-04T09:25:13.000Z | 2022-03-04T09:25:13.000Z | tests/test_dispatcher.py | electronhead/whendo | 27112834be0935b5b0f7ade4316e35532532e047 | [
"MIT"
] | null | null | null | tests/test_dispatcher.py | electronhead/whendo | 27112834be0935b5b0f7ade4316e35532532e047 | [
"MIT"
] | null | null | null | import pytest
import time
from datetime import timedelta
from typing import Optional, Dict, Any
from whendo.core.util import Rez, SystemInfo, Now, KeyTagMode, DateTime, Rez
from whendo.core.action import Action
from whendo.core.server import Server
from whendo.core.actions.list_action import (
UntilFailure,
All... | 30.939189 | 95 | 0.679063 |
240a907bd2e16d0aa3aa271652ece1375536949a | 3,298 | py | Python | task_09/task.py | prashnts/advent-of-code--2021 | 315fcf470c8c1260057aeafa6d2c42f4c0f74f3f | [
"MIT"
] | null | null | null | task_09/task.py | prashnts/advent-of-code--2021 | 315fcf470c8c1260057aeafa6d2c42f4c0f74f3f | [
"MIT"
] | null | null | null | task_09/task.py | prashnts/advent-of-code--2021 | 315fcf470c8c1260057aeafa6d2c42f4c0f74f3f | [
"MIT"
] | null | null | null | import os
from functools import reduce
__here__ = os.path.dirname(__file__)
TEST_DATA = '''\
2199943210
3987894921
9856789892
8767896789
9899965678\
'''
def calculate_1(data):
array = list(decode_input(data))
x_max, y_max = len(array), len(array[0])
lows = [x for x, _ in lowest_points(array, (x_max... | 25.175573 | 97 | 0.593087 |
240b42fee6717a7b90d0b1207b8b05b2c8fb6f5b | 2,046 | py | Python | setup.py | dotpy/step | 03a5fa3e2ef35675b6729a00a4752b0c703ee243 | [
"BSD-3-Clause"
] | 13 | 2016-06-29T21:19:45.000Z | 2021-12-26T20:36:05.000Z | setup.py | dotpy/step | 03a5fa3e2ef35675b6729a00a4752b0c703ee243 | [
"BSD-3-Clause"
] | 3 | 2015-03-19T22:21:27.000Z | 2019-10-10T23:03:45.000Z | setup.py | dotpy/step | 03a5fa3e2ef35675b6729a00a4752b0c703ee243 | [
"BSD-3-Clause"
] | 3 | 2018-03-27T14:27:31.000Z | 2020-08-07T08:23:08.000Z | #!/usr/bin/env python
"""
This is the installation script of the step module, a light and fast template engine. You can run it by typing:
python setup.py install
You can also run the test suite by running:
python setup.py test
"""
import sys
from distutils.core import setup
from step.tests import TestCommand... | 37.888889 | 111 | 0.583578 |
240bbb7d490c0bb706b81afc89be633224723a57 | 335 | py | Python | webapp/route/__init__.py | fainle/python_flask_demo | a2c81b2af4c3dcc09336e04647f4b0db7ca84fc2 | [
"MIT"
] | null | null | null | webapp/route/__init__.py | fainle/python_flask_demo | a2c81b2af4c3dcc09336e04647f4b0db7ca84fc2 | [
"MIT"
] | null | null | null | webapp/route/__init__.py | fainle/python_flask_demo | a2c81b2af4c3dcc09336e04647f4b0db7ca84fc2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import functools
from flask import url_for, redirect, session
| 22.333333 | 60 | 0.647761 |
240bde0f8131918a3473ed043729e630fcb5c13f | 104 | py | Python | kubed/client/__init__.py | joeblackwaslike/kubed | 1ee62e269a53d70177330961dc52b9fe4e84b90d | [
"Apache-2.0"
] | null | null | null | kubed/client/__init__.py | joeblackwaslike/kubed | 1ee62e269a53d70177330961dc52b9fe4e84b90d | [
"Apache-2.0"
] | null | null | null | kubed/client/__init__.py | joeblackwaslike/kubed | 1ee62e269a53d70177330961dc52b9fe4e84b90d | [
"Apache-2.0"
] | null | null | null | from . import config, client, context
from .client import APIClient
from .context import ClientContext
| 20.8 | 37 | 0.807692 |
240c0c5d000922b8465d3d55022a14bc72649051 | 158 | py | Python | Fun Excercise/reverse file content.py | NirmalSilwal/Python- | 6d23112db8366360f0b79bdbf21252575e8eab3e | [
"MIT"
] | 32 | 2020-04-05T08:29:40.000Z | 2022-01-08T03:10:00.000Z | Fun Excercise/reverse file content.py | NirmalSilwal/Python- | 6d23112db8366360f0b79bdbf21252575e8eab3e | [
"MIT"
] | 3 | 2021-06-02T04:09:11.000Z | 2022-03-02T14:55:03.000Z | Fun Excercise/reverse file content.py | NirmalSilwal/Python- | 6d23112db8366360f0b79bdbf21252575e8eab3e | [
"MIT"
] | 3 | 2020-07-13T05:44:04.000Z | 2021-03-03T07:07:58.000Z | ip = open("input.txt","r")
lst = ip.readlines()
lst.reverse()
lst.insert(1,'\n')
ip.close()
op = open("output.txt",'w')
op.write("".join(lst))
op.close()
| 12.153846 | 27 | 0.594937 |
2410cb663e809f3a2cfff7eb2a2ab513d0a3a843 | 3,006 | py | Python | oops_fhir/r4/code_system/effect_estimate_type.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/code_system/effect_estimate_type.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/code_system/effect_estimate_type.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | from pathlib import Path
from fhir.resources.codesystem import CodeSystem
from oops_fhir.utils import CodeSystemConcept
__all__ = ["EffectEstimateType"]
_resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json"))
| 24.639344 | 95 | 0.600798 |
24149d63fd46dabd5d16d77a5fa8be1e85e8bdf1 | 1,361 | py | Python | about/tests/test_views.py | IMegaMaan/Django-project | 7ebe62aacf972410299f92183c6c9e23cd837fe7 | [
"BSD-3-Clause"
] | null | null | null | about/tests/test_views.py | IMegaMaan/Django-project | 7ebe62aacf972410299f92183c6c9e23cd837fe7 | [
"BSD-3-Clause"
] | null | null | null | about/tests/test_views.py | IMegaMaan/Django-project | 7ebe62aacf972410299f92183c6c9e23cd837fe7 | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase, Client
from django.urls import reverse
| 34.897436 | 75 | 0.588538 |
2415ff143543c2ce9970a39f3d80f9c3542308d9 | 1,937 | py | Python | library/verification/token.py | LongmaoTeamTf/audio_aligner_app | 899c27a6ce5b74ec728d70acaa2a9861f8fd7b92 | [
"MIT"
] | 5 | 2020-01-19T07:27:31.000Z | 2021-03-31T05:56:07.000Z | library/verification/token.py | LongmaoTeamTf/audio_aligner_app | 899c27a6ce5b74ec728d70acaa2a9861f8fd7b92 | [
"MIT"
] | 3 | 2021-06-02T00:55:11.000Z | 2022-03-12T12:11:08.000Z | library/verification/token.py | LongmaoTeamTf/audio_aligner_app | 899c27a6ce5b74ec728d70acaa2a9861f8fd7b92 | [
"MIT"
] | 2 | 2020-03-17T07:10:48.000Z | 2022-01-12T10:13:11.000Z | """
user token
@version: v1.0.1
@Company: Thefair
@Author: Wang Yao
@Date: 2019-11-17 15:21:11
@LastEditors: Wang Yao
@LastEditTime: 2019-11-17 21:17:19
"""
from functools import wraps
from flask import request
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer, BadData
from library.response.tfexcep... | 24.518987 | 79 | 0.593702 |
2418d43fc6f298cdbf67fbaa5c14936b1a133fb3 | 178 | py | Python | paa191t1/tests/pph/test_pph_median.py | dmmoura/PAA-2021 | 435005f6494ece76f03807fb524e0d4a3e1d7222 | [
"Apache-2.0"
] | null | null | null | paa191t1/tests/pph/test_pph_median.py | dmmoura/PAA-2021 | 435005f6494ece76f03807fb524e0d4a3e1d7222 | [
"Apache-2.0"
] | null | null | null | paa191t1/tests/pph/test_pph_median.py | dmmoura/PAA-2021 | 435005f6494ece76f03807fb524e0d4a3e1d7222 | [
"Apache-2.0"
] | null | null | null | from paa191t1.pph.pph_median import pph_median
from paa191t1.tests.pph import TestPPHBase
| 19.777778 | 46 | 0.764045 |
2418e136a99b83121805fd21e003e44836c184cf | 27,910 | py | Python | service/artifacts_unittest.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | service/artifacts_unittest.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | 2 | 2021-03-26T00:29:32.000Z | 2021-04-30T21:29:33.000Z | service/artifacts_unittest.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Artifacts service tests."""
from __future__ import print_function
import json
import os
import shutil
import mock
from chro... | 39.199438 | 80 | 0.691903 |
2418e436d32c1b1dc432e02916a5cc98bd2b5e5f | 8,044 | py | Python | src/lfw.py | LiuNull/dynamic_face_recognition | 85b057e64a088fb6def28a3650218e8d6dc069cb | [
"MIT"
] | null | null | null | src/lfw.py | LiuNull/dynamic_face_recognition | 85b057e64a088fb6def28a3650218e8d6dc069cb | [
"MIT"
] | null | null | null | src/lfw.py | LiuNull/dynamic_face_recognition | 85b057e64a088fb6def28a3650218e8d6dc069cb | [
"MIT"
] | null | null | null | """Helper for evaluation on the Labeled Faces in the Wild dataset
"""
# MIT License
#
# Copyright (c) 2016 David Sandberg
#
# 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 withou... | 47.597633 | 141 | 0.603555 |
241af3ee55d444a940c6be41db409a26214a6a55 | 3,587 | py | Python | nzarttrainer.py | richwalm/nzarttrainer | 82c020172106be871771c78675a58f71b0169b17 | [
"0BSD"
] | 2 | 2019-04-19T02:26:57.000Z | 2021-06-22T13:19:57.000Z | nzarttrainer.py | richwalm/nzaarttrainer | 82c020172106be871771c78675a58f71b0169b17 | [
"0BSD"
] | 2 | 2019-04-10T22:44:59.000Z | 2020-04-06T23:30:33.000Z | nzarttrainer.py | richwalm/nzaarttrainer | 82c020172106be871771c78675a58f71b0169b17 | [
"0BSD"
] | 3 | 2019-04-24T23:26:59.000Z | 2020-04-10T11:38:01.000Z | #!/usr/bin/env python3
# NZART Exam Trainer
# Written by Richard Walmsley <richwalm+nzarttrainer@gmail.com> (ZL1RSW)
from flask import Flask, request, render_template, redirect, url_for, Response, abort
import random
import string
import json
import sys
app = Flask(__name__, static_folder = 's')
# Constants.
Neede... | 24.073826 | 184 | 0.57346 |
241bc9ceeaf007cf8c3f1adcf1de894a391d7c80 | 325 | py | Python | serving_patterns/src/app/api/_health.py | shibuiwilliam/ml-system-in-action | 0aa9d6bc4a4346236b9c971ec90afad04bcf5cca | [
"MIT"
] | 10 | 2020-08-30T03:19:10.000Z | 2021-08-08T17:38:06.000Z | serving_patterns/src/app/api/_health.py | shibuiwilliam/ml-system-in-action | 0aa9d6bc4a4346236b9c971ec90afad04bcf5cca | [
"MIT"
] | null | null | null | serving_patterns/src/app/api/_health.py | shibuiwilliam/ml-system-in-action | 0aa9d6bc4a4346236b9c971ec90afad04bcf5cca | [
"MIT"
] | 6 | 2020-08-30T03:19:13.000Z | 2021-11-26T23:32:42.000Z | from typing import Dict
import logging
from src.middleware.profiler import do_cprofile
logger = logging.getLogger(__name__)
| 17.105263 | 47 | 0.698462 |
241ca7dfdf71434c66d3f603fa5f2372d432d554 | 2,498 | py | Python | setup.py | michelp/cxxheaderparser | 83bb2903790cf448bf838cdb8a93ca96e758bd1a | [
"BSD-3-Clause"
] | 12 | 2020-12-28T09:40:53.000Z | 2022-03-13T15:36:21.000Z | setup.py | michelp/cxxheaderparser | 83bb2903790cf448bf838cdb8a93ca96e758bd1a | [
"BSD-3-Clause"
] | 28 | 2021-01-04T14:58:59.000Z | 2022-01-03T03:00:16.000Z | setup.py | michelp/cxxheaderparser | 83bb2903790cf448bf838cdb8a93ca96e758bd1a | [
"BSD-3-Clause"
] | 1 | 2021-11-06T03:44:53.000Z | 2021-11-06T03:44:53.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from os.path import dirname, exists, join
import sys, subprocess
from setuptools import find_packages, setup
setup_dir = dirname(__file__)
git_dir = join(setup_dir, ".git")
version_file = join(setup_dir, "cxxheaderparser", "version.... | 32.025641 | 92 | 0.667734 |
241f3c603e35405488cc37103c843ad3e2397986 | 1,563 | py | Python | RobotCode/RobotApi.py | HeapArt/DarkPaw | 183c8943ed7bb3e771af019468566ff9d5ad6b2f | [
"MIT"
] | null | null | null | RobotCode/RobotApi.py | HeapArt/DarkPaw | 183c8943ed7bb3e771af019468566ff9d5ad6b2f | [
"MIT"
] | null | null | null | RobotCode/RobotApi.py | HeapArt/DarkPaw | 183c8943ed7bb3e771af019468566ff9d5ad6b2f | [
"MIT"
] | null | null | null | import json
from flask import Blueprint, request
from RobotCode import BehaviorDB
from RobotCode.RobotModel import getRobotModel
Robot_Api_BluePrint = Blueprint('Robot_Api_BluePrint', __name__, url_prefix="/robot_api")
| 36.348837 | 117 | 0.726807 |
241f48c6616672f2a7e5001938c87fa2d8ef9975 | 2,126 | py | Python | Rain/main.py | vanviethieuanh/art-with-python | dfd5e9b010a4d074ed01909474ff2876d5f3baaf | [
"MIT"
] | null | null | null | Rain/main.py | vanviethieuanh/art-with-python | dfd5e9b010a4d074ed01909474ff2876d5f3baaf | [
"MIT"
] | null | null | null | Rain/main.py | vanviethieuanh/art-with-python | dfd5e9b010a4d074ed01909474ff2876d5f3baaf | [
"MIT"
] | null | null | null | import pygame
import random
import math
pygame.init()
win_width = 1200
win_height = 500
limitFPS = 40
win = pygame.display.set_mode((win_width,win_height))
pygame.display.set_caption("It's heavy rain now")
main = Main(win,win_height,win_width)
run = True
while run:
clock = pygame.time.Clock()
... | 29.123288 | 110 | 0.540452 |
2420253761f3a882e54c81d9a136fc97fd5aabe5 | 818 | py | Python | teachers/mixins.py | gtsiokos/diogenis | c83d4dac26df68bbbf897c48a5552ea9c9ede9c2 | [
"BSD-3-Clause"
] | 1 | 2019-08-16T13:47:46.000Z | 2019-08-16T13:47:46.000Z | teachers/mixins.py | gtsiokos/diogenis | c83d4dac26df68bbbf897c48a5552ea9c9ede9c2 | [
"BSD-3-Clause"
] | null | null | null | teachers/mixins.py | gtsiokos/diogenis | c83d4dac26df68bbbf897c48a5552ea9c9ede9c2 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: utf8 -*-
from django.http import Http404
from django.contrib.auth.decorators import user_passes_test
from django.utils.decorators import method_decorator
from diogenis.teachers.models import Teacher
| 32.72 | 88 | 0.722494 |
24211de62e5f7ff2f91d6b34c32a4b78c252bb72 | 284 | py | Python | tools/replace_fs.py | Dezorian/esp-canary | 8cb597120b53d64e56a41e723539c371012b50fe | [
"MIT"
] | 20 | 2021-05-06T19:36:01.000Z | 2022-03-16T18:30:28.000Z | tools/replace_fs.py | shafr/esp-honeypot | add1daf680d12cf45776f87da6a478ab3576c974 | [
"MIT"
] | 16 | 2021-05-06T19:11:34.000Z | 2021-12-23T19:26:16.000Z | tools/replace_fs.py | Dezorian/esp-canary | 8cb597120b53d64e56a41e723539c371012b50fe | [
"MIT"
] | 3 | 2021-05-12T10:24:30.000Z | 2021-12-22T00:10:01.000Z | Import("env")
import platform
if platform.system() == 'Windows':
print("Replace MKSPIFFSTOOL with mklittlefs.exe")
env.Replace (MKSPIFFSTOOL = "tools/mklittlefs.exe")
else:
print("Replace MKSPIFFSTOOL with mklittlefs")
env.Replace (MKSPIFFSTOOL = "tools/mklittlefs") | 31.555556 | 55 | 0.725352 |
2421fe0c328d6bbf457b874ac44ade8749c82265 | 371 | py | Python | Message Bomber/Message Bomber with Random Words.py | SaiAshish-Konchada/Python-Projects-for-Beginners | bce0a705b636a1090b56f59205c6acb94ab2e54a | [
"MIT"
] | 5 | 2021-01-19T18:32:13.000Z | 2021-05-03T05:19:11.000Z | Message Bomber/Message Bomber with Random Words.py | SaiAshish-Konchada/Python-Projects-for-Beginners | bce0a705b636a1090b56f59205c6acb94ab2e54a | [
"MIT"
] | null | null | null | Message Bomber/Message Bomber with Random Words.py | SaiAshish-Konchada/Python-Projects-for-Beginners | bce0a705b636a1090b56f59205c6acb94ab2e54a | [
"MIT"
] | 2 | 2021-05-22T13:35:51.000Z | 2021-08-31T07:05:32.000Z | # importing the required libraries
import pyautogui, time
# delay to switch windows
time.sleep(5)
#setting count to 5
count = 5
# loop to spam
while count >= 1:
# fetch and type each word from the file
pyautogui.write('Random Annoying Spam Words')
# press enter to send the message
pyautogui.press('ente... | 23.1875 | 49 | 0.703504 |
242215a9d56d1f78d8711fd6f634320bda681f1c | 1,370 | py | Python | helpers/midstate/midstate_test.py | mfkiwl/shapool-core | 2223576a0cd6e52ffbc13f867600f0784f294b06 | [
"BSD-3-Clause"
] | 22 | 2018-05-28T15:17:10.000Z | 2022-01-19T12:59:46.000Z | helpers/midstate/midstate_test.py | mfkiwl/shapool-core | 2223576a0cd6e52ffbc13f867600f0784f294b06 | [
"BSD-3-Clause"
] | 24 | 2019-09-07T22:42:48.000Z | 2021-08-04T15:31:34.000Z | helpers/midstate/midstate_test.py | mfkiwl/shapool-core | 2223576a0cd6e52ffbc13f867600f0784f294b06 | [
"BSD-3-Clause"
] | 7 | 2018-05-14T15:56:00.000Z | 2022-01-27T21:37:40.000Z | import binascii
import midstate
import pytest
import struct | 28.541667 | 108 | 0.606569 |
24236339afd01ee7c1bc2adc58b3562319b17c37 | 3,485 | py | Python | wrappers/tensorflow/tools/convert_to_bag.py | NobuoTsukamoto/librealsense | bc0910f8ba3c33307ff247a29dd2b9e9ef1b269d | [
"Apache-2.0"
] | 6,457 | 2016-01-21T03:56:07.000Z | 2022-03-31T11:57:15.000Z | wrappers/tensorflow/tools/convert_to_bag.py | NobuoTsukamoto/librealsense | bc0910f8ba3c33307ff247a29dd2b9e9ef1b269d | [
"Apache-2.0"
] | 8,393 | 2016-01-21T09:47:28.000Z | 2022-03-31T22:21:42.000Z | wrappers/tensorflow/tools/convert_to_bag.py | NobuoTsukamoto/librealsense | bc0910f8ba3c33307ff247a29dd2b9e9ef1b269d | [
"Apache-2.0"
] | 4,874 | 2016-01-21T09:20:08.000Z | 2022-03-31T15:18:00.000Z | import numpy as np
import cv2
import pyrealsense2 as rs
import time, sys, glob
focal = 0.0021
baseline = 0.08
sd = rs.software_device()
depth_sensor = sd.add_sensor("Depth")
intr = rs.intrinsics()
intr.width = 848
intr.height = 480
intr.ppx = 637.951293945312
intr.ppy = 360.783233642578
intr.fx = 638.864135742188
in... | 23.389262 | 74 | 0.672597 |
2424352a464760abcf3b0b917902ab3292e94368 | 1,043 | py | Python | src/experiments/eval_minimal.py | peldszus/evidencegraph | 1720b74d801e738d08996f22e8be676114426408 | [
"MIT"
] | 3 | 2019-07-31T14:48:59.000Z | 2021-09-01T07:26:15.000Z | src/experiments/eval_minimal.py | peldszus/evidencegraph | 1720b74d801e738d08996f22e8be676114426408 | [
"MIT"
] | 7 | 2019-07-30T23:22:15.000Z | 2021-05-22T14:11:02.000Z | src/experiments/eval_minimal.py | peldszus/evidencegraph | 1720b74d801e738d08996f22e8be676114426408 | [
"MIT"
] | 1 | 2019-09-16T07:23:04.000Z | 2019-09-16T07:23:04.000Z | from argparse import ArgumentParser
from evidencegraph.argtree import RELATION_SETS_BY_NAME
from evidencegraph.corpus import CORPORA
from evidencegraph.evaluation import evaluate_setting
if __name__ == "__main__":
parser = ArgumentParser(
description="""Evaluate argumentation parsing predictions"""
)... | 27.447368 | 68 | 0.637584 |
2425800f04602f6f58d2c94bce88633d9eebc37c | 4,221 | py | Python | classifier/hist_classifier.py | adalrsjr1/smart-tuning | d8cb9f4ba41e7c068eda75b0fb581dcc8f329064 | [
"MIT"
] | 1 | 2021-10-04T18:02:55.000Z | 2021-10-04T18:02:55.000Z | classifier/hist_classifier.py | adalrsjr1/smart-tuning | d8cb9f4ba41e7c068eda75b0fb581dcc8f329064 | [
"MIT"
] | null | null | null | classifier/hist_classifier.py | adalrsjr1/smart-tuning | d8cb9f4ba41e7c068eda75b0fb581dcc8f329064 | [
"MIT"
] | null | null | null | from common.dataaccess import MongoAccessLayer
from common.timeutil import now
import numpy as np
import os
import sys
from classifier import workload_comparision as wc
# data = []
# data.append({'metric': metric, 'mean': query_mean[0], 'std': query_std[0]})
# data = {
# 'metrics': {'n_samples': QUERY_STE... | 33.768 | 120 | 0.587302 |
2425854b676c78565d350a24516b06e65e8ec2fd | 400 | py | Python | scripts/return_length_of_string.py | arifulhaqueuc/python-algorithm-excersice | 7f2c93be7f87cbe2a8527f4edbf6c45f01e0597e | [
"MIT"
] | null | null | null | scripts/return_length_of_string.py | arifulhaqueuc/python-algorithm-excersice | 7f2c93be7f87cbe2a8527f4edbf6c45f01e0597e | [
"MIT"
] | 4 | 2018-05-16T23:06:49.000Z | 2018-10-26T22:47:52.000Z | scripts/return_length_of_string.py | arifulhaqueuc/python-algorithm-excersice | 7f2c93be7f87cbe2a8527f4edbf6c45f01e0597e | [
"MIT"
] | null | null | null | '''
Write a program that maps a list of words into a list of integers representing the lengths of the correponding words.
Write it in three different ways:
1) using a for-loop,
2) using the higher order function map(), and
3) using list comprehensions.
'''
#2
l = ['apple', 'orange', 'cat']
print map( la... | 20 | 118 | 0.65 |
2426476d2dec7acfd35014f0a631024c226cd418 | 10,199 | py | Python | tests/test_cc_oop.py | J08nY/sec-certs | d25a4a7c830c587a45eb8e37d99f8794dec1a5eb | [
"MIT"
] | null | null | null | tests/test_cc_oop.py | J08nY/sec-certs | d25a4a7c830c587a45eb8e37d99f8794dec1a5eb | [
"MIT"
] | null | null | null | tests/test_cc_oop.py | J08nY/sec-certs | d25a4a7c830c587a45eb8e37d99f8794dec1a5eb | [
"MIT"
] | null | null | null | import filecmp
import os
import shutil
import tempfile
from datetime import date, datetime
from pathlib import Path
from tempfile import NamedTemporaryFile, TemporaryDirectory
from unittest import TestCase
import sec_certs.constants as constants
import sec_certs.helpers as helpers
from sec_certs.dataset.common_criteri... | 42.319502 | 159 | 0.618002 |
24287f31ba2a1965f69b8b89ba6e4fe27f5a9ecc | 1,234 | py | Python | mountdisplay/clean.py | Smytten/Tangible_NFT_Thesis | 50e6b43c85ec2836b3628015eac1f1389de4a261 | [
"MIT",
"Unlicense"
] | 1 | 2022-03-25T20:39:31.000Z | 2022-03-25T20:39:31.000Z | mountdisplay/clean.py | Smytten/Tangible_NFT_Thesis | 50e6b43c85ec2836b3628015eac1f1389de4a261 | [
"MIT",
"Unlicense"
] | null | null | null | mountdisplay/clean.py | Smytten/Tangible_NFT_Thesis | 50e6b43c85ec2836b3628015eac1f1389de4a261 | [
"MIT",
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import inkyphat
import time
import sys
print("""Inky pHAT: Clean
Displays solid blocks of red, black, and white to clean the Inky pHAT
display of any screen burn.
""".format(sys.argv[0]))
if len(sys.argv) < 2:
print("""Usage: {} <colour> <number of cycles>
V... | 24.196078 | 81 | 0.620746 |
242a238225ab546d0f4b2ffbed9eb41e67d70a41 | 1,165 | py | Python | 01-Introduction/index3.py | abhishekgahlot/competitive-programmer-handbook | bbb50c56fa1a2a35290cfc387f407c9b0cc3ec7e | [
"MIT"
] | 133 | 2019-11-19T17:01:53.000Z | 2022-03-22T09:28:48.000Z | 01-Introduction/index3.py | abhishekgahlot/competitive-programmer-handbook | bbb50c56fa1a2a35290cfc387f407c9b0cc3ec7e | [
"MIT"
] | 3 | 2019-12-30T04:31:22.000Z | 2021-06-10T09:43:07.000Z | 01-Introduction/index3.py | abhishekgahlot/competitive-programmer-handbook | bbb50c56fa1a2a35290cfc387f407c9b0cc3ec7e | [
"MIT"
] | 54 | 2019-12-30T04:46:26.000Z | 2022-03-23T19:29:48.000Z | # Python 3 version of index.py
import math
# Input -> 10 20 monkey
a, b, c = input().split(' ')
print(a, b, c)
# Input with map -> 10 20
a, b = map(int, input().split(' '))
print(a, b)
# Input with map -> 10, 20
a, b = map(int, input().split(','))
print(a, b)
# Python has dynamic data type so integers, float are s... | 19.098361 | 71 | 0.532189 |
242ab6a7517cb79f3a010784bb05fa1bc62077cb | 1,507 | py | Python | project1/scoper-beginner.py | swtornio/pytools | 40fa88fa754419b47f71d8f1043f266c9a308f74 | [
"BSD-3-Clause"
] | null | null | null | project1/scoper-beginner.py | swtornio/pytools | 40fa88fa754419b47f71d8f1043f266c9a308f74 | [
"BSD-3-Clause"
] | null | null | null | project1/scoper-beginner.py | swtornio/pytools | 40fa88fa754419b47f71d8f1043f266c9a308f74 | [
"BSD-3-Clause"
] | null | null | null | # Project 1 - The Scope!
# Scenario: Congrats, your Penetration testing company Red Planet has
# landed an external assessment for Microsoft! Your point of contact has
# give you a few IP addresses for you to test. Like with any test you
# should always verify the scope given to you to make sure there wasn't
# a mista... | 33.488889 | 74 | 0.717319 |
242c4a7387a45199ab823721a5e84a8b672f4b3c | 96 | py | Python | venv/lib/python3.8/site-packages/numpy/polynomial/setup.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/numpy/polynomial/setup.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/numpy/polynomial/setup.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/75/74/1f/cd550c3fd39c07a88abf9ca8d462c4c05077809e3ca61220a3837e78cd | 96 | 96 | 0.895833 |
242e68ec4abda02a1ff36b6149be9f598d440417 | 4,408 | py | Python | full_feature_version/bot/orchestrator.py | inevitablepc/RedditKarmaBot | 1716e092f662e379995b28d26881ea33ea40000e | [
"MIT"
] | 7 | 2020-06-24T11:36:31.000Z | 2021-11-02T05:44:50.000Z | full_feature_version/bot/orchestrator.py | inevitablepc/RedditKarmaBot | 1716e092f662e379995b28d26881ea33ea40000e | [
"MIT"
] | null | null | null | full_feature_version/bot/orchestrator.py | inevitablepc/RedditKarmaBot | 1716e092f662e379995b28d26881ea33ea40000e | [
"MIT"
] | 7 | 2020-04-05T22:49:11.000Z | 2021-12-25T09:22:24.000Z | import itertools
import logging
import random
from collections import defaultdict
from concurrent.futures import wait
from concurrent.futures.thread import ThreadPoolExecutor
from bot import RedditBot
from utils import rand_wait_min, rand_wait_sec
| 38.330435 | 110 | 0.622958 |
242e831fbeee71641da2d329c6f5ad06e8482bc8 | 10,476 | py | Python | urdf2casadi/numpy_geom.py | ultrainren/urdf2casadi | 42318720c2922977e7d57fa638ebf5ad1c092dd6 | [
"MIT"
] | 1 | 2020-03-30T10:26:31.000Z | 2020-03-30T10:26:31.000Z | urdf2casadi/numpy_geom.py | ultrainren/urdf2casadi | 42318720c2922977e7d57fa638ebf5ad1c092dd6 | [
"MIT"
] | null | null | null | urdf2casadi/numpy_geom.py | ultrainren/urdf2casadi | 42318720c2922977e7d57fa638ebf5ad1c092dd6 | [
"MIT"
] | null | null | null | import numpy as np
def skew_symmetric(v):
"""Returns a skew symmetric matrix from vector. p q r"""
return np.array([[0, -v[2], v[1]],
[v[2], 0, -v[0]],
[-v[1], v[0], 0]])
def rotation_rpy(roll, pitch, yaw):
"""Returns a rotation matrix from roll pitch yaw. ZYX ... | 30.631579 | 96 | 0.55861 |
242e9c8ba99915ee2b252e978052c11b8a27fd13 | 3,363 | py | Python | 2. Using Python to Interact with the Operating System/Week-7.py | indahpuspitaa17/IT-Automation-with-Python | f872324b25741769506cc8ef28b5176fb9fa8997 | [
"MIT"
] | null | null | null | 2. Using Python to Interact with the Operating System/Week-7.py | indahpuspitaa17/IT-Automation-with-Python | f872324b25741769506cc8ef28b5176fb9fa8997 | [
"MIT"
] | null | null | null | 2. Using Python to Interact with the Operating System/Week-7.py | indahpuspitaa17/IT-Automation-with-Python | f872324b25741769506cc8ef28b5176fb9fa8997 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import re
import sys
import operator
import csv
error_counter = {}
error_user = {}
info_user = {}
#This function will read each line of the syslog.log file and check if it is an error or an info message.
#If it is an error it will read the error from the line and increment into the... | 31.429907 | 124 | 0.612548 |
242f6533a1559e482c850161d329f84507d8bdcb | 2,487 | py | Python | twitter/envs/corpus.py | Ra-Ni/Twitter-Language-Identifier | 95e28cc8b0cc7b2acd96f240134649a9e601bca7 | [
"MIT"
] | null | null | null | twitter/envs/corpus.py | Ra-Ni/Twitter-Language-Identifier | 95e28cc8b0cc7b2acd96f240134649a9e601bca7 | [
"MIT"
] | null | null | null | twitter/envs/corpus.py | Ra-Ni/Twitter-Language-Identifier | 95e28cc8b0cc7b2acd96f240134649a9e601bca7 | [
"MIT"
] | null | null | null | from math import log10
from itertools import tee
| 30.329268 | 115 | 0.617209 |
242f6cf35d21cd6a48c92a34883a88441a76c341 | 16,117 | py | Python | eex/translators/amber/amber_write.py | dgasmith/EEX | 7608c9ef25931040524c75d227f0bee18de9ddc1 | [
"BSD-3-Clause"
] | null | null | null | eex/translators/amber/amber_write.py | dgasmith/EEX | 7608c9ef25931040524c75d227f0bee18de9ddc1 | [
"BSD-3-Clause"
] | null | null | null | eex/translators/amber/amber_write.py | dgasmith/EEX | 7608c9ef25931040524c75d227f0bee18de9ddc1 | [
"BSD-3-Clause"
] | null | null | null | """
Writer for amber
"""
import time
import pandas as pd
import math
import re
import numpy as np
from collections import Counter
# Python 2/3 compat
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
import eex
import logging
# AMBER local imports
from . import amber_metadata a... | 37.481395 | 128 | 0.647453 |
24312b312592739156a1fc2562fbc4d478ed5b64 | 8,457 | py | Python | test/base/test_db_util.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | 2 | 2016-02-23T00:09:14.000Z | 2019-02-11T07:48:44.000Z | test/base/test_db_util.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | null | null | null | test/base/test_db_util.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | 6 | 2015-05-27T13:09:50.000Z | 2019-02-11T07:48:46.000Z | import galaxy.model
from galaxy.model.orm import *
from galaxy.model.mapping import context as sa_session
from base.twilltestcase import *
import sys
| 54.915584 | 112 | 0.620433 |
24324bad9563b1de125f14982150d0bec0525c6c | 7,085 | py | Python | src/main.py | Mirris/ShiftManager1.1 | 6b3c1c76c8f66295053b1cf9f1187e57429cdd0b | [
"MIT"
] | null | null | null | src/main.py | Mirris/ShiftManager1.1 | 6b3c1c76c8f66295053b1cf9f1187e57429cdd0b | [
"MIT"
] | null | null | null | src/main.py | Mirris/ShiftManager1.1 | 6b3c1c76c8f66295053b1cf9f1187e57429cdd0b | [
"MIT"
] | null | null | null | from helpers.Logger import Logger
from calendar import Calendar
from employee import Employee
import json
import sys
import prettytable
import os
import time
import re
# Logger setup
logging = Logger()
log = logging.realm('Shift Manager')
if __name__ == "__main__":
main()
| 39.361111 | 136 | 0.660833 |
243302a8c8d74b6cc33c63504e8000d21f2d83c2 | 13,792 | py | Python | polyphemus/utils.py | Xarthisius/polyphemus | 3ae6cb9ff312d90478d8a294681bd898b7f45b1c | [
"BSD-2-Clause"
] | null | null | null | polyphemus/utils.py | Xarthisius/polyphemus | 3ae6cb9ff312d90478d8a294681bd898b7f45b1c | [
"BSD-2-Clause"
] | null | null | null | polyphemus/utils.py | Xarthisius/polyphemus | 3ae6cb9ff312d90478d8a294681bd898b7f45b1c | [
"BSD-2-Clause"
] | null | null | null | """Helpers for polyphemus.
Utilities API
=============
"""
from __future__ import print_function
import os
import io
import re
import sys
import glob
import tempfile
import functools
import subprocess
from copy import deepcopy
from pprint import pformat
from collections import Mapping, Iterable, Hashable, Sequence, na... | 30.113537 | 88 | 0.59491 |
24334f8a7788ca759e3c468b57d76d5b40d43699 | 6,698 | py | Python | taxscrape.py | gehilley/KMESTaxScrape | 1cf85049b6d2a5fbd532107fbe44f61197ac3263 | [
"MIT"
] | null | null | null | taxscrape.py | gehilley/KMESTaxScrape | 1cf85049b6d2a5fbd532107fbe44f61197ac3263 | [
"MIT"
] | null | null | null | taxscrape.py | gehilley/KMESTaxScrape | 1cf85049b6d2a5fbd532107fbe44f61197ac3263 | [
"MIT"
] | null | null | null | output_filename = 'kings_mountain_taxes.csv'
output_pfilename = 'kmes_taxes.p'
base_url = "https://gis.smcgov.org/maps/rest/services/WEBAPPS/COUNTY_SAN_MATEO_TKNS/MapServer/identify"
token = "fytmg9tR2rSx-1Yp0SWJ_qkAExGi-ftZoK7h4wk91UY."
polygon = [(-13622312.48,4506393.674),
(-13622866.64,4504129.241),
... | 42.392405 | 127 | 0.597044 |
2433c7c9ac2e786c1d378e6c6fc342567cb2343a | 351 | py | Python | 445-with-phases/phase3/watcher/urls.py | ysyesilyurt/Metu-CENG | a83fcab00f68e28bda307bb94c060f55042a1389 | [
"MIT"
] | 33 | 2019-03-19T07:51:17.000Z | 2022-03-15T11:04:35.000Z | 445-with-phases/phase3/watcher/urls.py | ysyesilyurt/Metu-CENG | a83fcab00f68e28bda307bb94c060f55042a1389 | [
"MIT"
] | 1 | 2019-11-09T18:08:21.000Z | 2019-11-09T18:08:21.000Z | 445-with-phases/phase3/watcher/urls.py | ysyesilyurt/Metu-CENG | a83fcab00f68e28bda307bb94c060f55042a1389 | [
"MIT"
] | 13 | 2019-11-08T06:18:21.000Z | 2022-01-07T17:17:38.000Z | from django.urls import path, re_path
import multiprocessing
import sys
from . import views
urlpatterns = [
path("", views.index, name='index'),
path("create/", views.index, {"create": True}, name="create"),
re_path(r"^logs/(?P<wid>[0-9]+)$", views.logs, name='logs'),
re_path(r"^rules/(?P<wid>[0-9]+)$"... | 29.25 | 66 | 0.635328 |
2434d249e12d70943c3d01c03f5b85d253a6fbdb | 344 | py | Python | json_endpoint/middleware.py | nickloman/entrezajax | d487a2ccf02e9e5bce5d4cba95d7a73edf43b329 | [
"Apache-2.0"
] | 4 | 2015-06-21T01:49:39.000Z | 2022-01-19T19:51:00.000Z | json_endpoint/middleware.py | nickloman/entrezajax | d487a2ccf02e9e5bce5d4cba95d7a73edf43b329 | [
"Apache-2.0"
] | 1 | 2015-08-28T06:54:45.000Z | 2016-03-03T17:21:48.000Z | json_endpoint/middleware.py | nickloman/entrezajax | d487a2ccf02e9e5bce5d4cba95d7a73edf43b329 | [
"Apache-2.0"
] | 2 | 2016-10-25T14:28:08.000Z | 2020-07-10T01:46:29.000Z | from views import dump_result
from django.http import HttpResponse
| 26.461538 | 60 | 0.752907 |
24353a8838c097071f87e4366d98031a90d7f990 | 555 | py | Python | Dataset/Leetcode/train/94/679.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/94/679.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/94/679.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null |
undefined
for (i = 0; i < document.getElementsByTagName("code").length; i++) { console.log(document.getElementsByTagName("code")[i].innerText); }
| 29.210526 | 139 | 0.52973 |
24373e60d1c6cfd7a90fe027f9d7f55cebc34e56 | 4,552 | py | Python | cfg/generate_nerian_config_cpp.py | RaminYT/nerian_stereo | 39c03650695b462516d47594ba8f9e3d808eac15 | [
"MIT"
] | null | null | null | cfg/generate_nerian_config_cpp.py | RaminYT/nerian_stereo | 39c03650695b462516d47594ba8f9e3d808eac15 | [
"MIT"
] | null | null | null | cfg/generate_nerian_config_cpp.py | RaminYT/nerian_stereo | 39c03650695b462516d47594ba8f9e3d808eac15 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2019 Nerian Vision 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, m... | 41.381818 | 132 | 0.712214 |
24377195af086d2d9b533b86147cc02d046d8a1c | 2,263 | py | Python | tests/test_arraycoords_core.py | sakshamsingh1/micarraylib | e3a87a1ee55dce50ce33d0dfa23e266b733de535 | [
"CC-BY-4.0"
] | 11 | 2021-11-14T19:33:33.000Z | 2022-03-17T20:38:27.000Z | tests/test_arraycoords_core.py | sakshamsingh1/micarraylib | e3a87a1ee55dce50ce33d0dfa23e266b733de535 | [
"CC-BY-4.0"
] | 7 | 2022-01-17T17:50:49.000Z | 2022-03-31T14:42:34.000Z | tests/test_arraycoords_core.py | sakshamsingh1/micarraylib | e3a87a1ee55dce50ce33d0dfa23e266b733de535 | [
"CC-BY-4.0"
] | 4 | 2021-11-16T14:05:11.000Z | 2022-03-23T00:35:00.000Z | from micarraylib.arraycoords.core import micarray
from micarraylib.arraycoords import array_shapes_raw
from micarraylib.arraycoords.array_shapes_utils import _polar2cart
import pytest
import numpy as np
| 33.776119 | 83 | 0.691118 |
24394928ea89d1fbae27a1d71e8a36f43eb76722 | 519 | py | Python | ocr/utils/toDataURL.py | takuya-motoshima/document-scanner | 7e4c2821ec21ba96468bcbe512bd0d40f653b0e1 | [
"MIT"
] | null | null | null | ocr/utils/toDataURL.py | takuya-motoshima/document-scanner | 7e4c2821ec21ba96468bcbe512bd0d40f653b0e1 | [
"MIT"
] | null | null | null | ocr/utils/toDataURL.py | takuya-motoshima/document-scanner | 7e4c2821ec21ba96468bcbe512bd0d40f653b0e1 | [
"MIT"
] | null | null | null | import ocr.utils as utils
def toDataURL(img, mime = None):
"""Image to Data URL.
Args:
img: CV2 Image object or image path.
mime: The media type of the Data URL. Required if the image is an CV2 Image object.
Returns:
Return Data URL and MIME type.
Raises:
ValueError: Image types other... | 30.529412 | 88 | 0.662813 |
24395c699d46f97162aa14777bf15b0856cae6e4 | 491 | py | Python | Math/Leetcode5839.py | Rylie-W/LeetRecord | 623c4efe88b3af54b8a65f6ec23db850b8c6f46f | [
"Apache-2.0"
] | null | null | null | Math/Leetcode5839.py | Rylie-W/LeetRecord | 623c4efe88b3af54b8a65f6ec23db850b8c6f46f | [
"Apache-2.0"
] | null | null | null | Math/Leetcode5839.py | Rylie-W/LeetRecord | 623c4efe88b3af54b8a65f6ec23db850b8c6f46f | [
"Apache-2.0"
] | null | null | null | import math
import heapq
if __name__ == '__main__':
sol=Solution()
piles = [4, 3, 6, 7]
k = 3
print(sol.minStoneSum(piles,k)) | 20.458333 | 48 | 0.462322 |
243d8aae60e65abfff3ef3919928ba2a9f7df693 | 159 | py | Python | deui/html/view/nav_element.py | urushiyama/DeUI | 14530d2dae7d96a3dee30759f85e02239fb433c5 | [
"MIT"
] | 1 | 2021-10-17T01:54:18.000Z | 2021-10-17T01:54:18.000Z | deui/html/view/nav_element.py | urushiyama/DeUI | 14530d2dae7d96a3dee30759f85e02239fb433c5 | [
"MIT"
] | null | null | null | deui/html/view/nav_element.py | urushiyama/DeUI | 14530d2dae7d96a3dee30759f85e02239fb433c5 | [
"MIT"
] | null | null | null | from .element import Element
| 14.454545 | 39 | 0.628931 |
243dfce68d8d96b57a4debd0c241a4c97b4273fc | 18,562 | py | Python | LeapTrello.py | reaktor/trellol | 13220a4a67d78ec04f96bdea9fbb0bd9e9541d67 | [
"MIT"
] | 1 | 2016-06-22T10:33:51.000Z | 2016-06-22T10:33:51.000Z | LeapTrello.py | reaktor/trellol | 13220a4a67d78ec04f96bdea9fbb0bd9e9541d67 | [
"MIT"
] | null | null | null | LeapTrello.py | reaktor/trellol | 13220a4a67d78ec04f96bdea9fbb0bd9e9541d67 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Leap Motion + Trello
A plain Trello view with Leap Motion UI.
"""
import Leap, sys, os, math, time
import ConfigParser, argparse
from collections import deque
from PyQt... | 34.437848 | 119 | 0.609094 |
243e4ebb71651a1947d9bfa01a4d3102ca1fdc2f | 5,115 | py | Python | kcwidrp/primitives/SubtractSky.py | scizen9/KCWI_DRP | 1d82ee4f82be491628d6baa555401c18aa0472a2 | [
"BSD-3-Clause"
] | 5 | 2020-04-09T20:05:52.000Z | 2021-08-04T18:04:28.000Z | kcwidrp/primitives/SubtractSky.py | scizen9/KCWI_DRP | 1d82ee4f82be491628d6baa555401c18aa0472a2 | [
"BSD-3-Clause"
] | 80 | 2020-03-19T00:35:27.000Z | 2022-03-07T20:08:23.000Z | kcwidrp/primitives/SubtractSky.py | scizen9/KCWI_DRP | 1d82ee4f82be491628d6baa555401c18aa0472a2 | [
"BSD-3-Clause"
] | 9 | 2021-01-22T02:00:32.000Z | 2022-02-08T19:43:16.000Z | from keckdrpframework.primitives.base_primitive import BasePrimitive
from kcwidrp.primitives.kcwi_file_primitives import kcwi_fits_reader, \
kcwi_fits_writer, get_master_name, strip_fname
import os
| 38.75 | 85 | 0.504594 |
243f3be35cd23daccbea4684b6c7521e62d8c778 | 2,517 | py | Python | ask-sdk-model-runtime/ask_sdk_model_runtime/api_configuration.py | Signal-Kinetics/alexa-apis-for-python | abb8d3dce18a5510c48b215406ed36c024f01495 | [
"Apache-2.0"
] | 90 | 2018-09-19T21:56:42.000Z | 2022-03-30T11:25:21.000Z | ask-sdk-model-runtime/ask_sdk_model_runtime/api_configuration.py | Signal-Kinetics/alexa-apis-for-python | abb8d3dce18a5510c48b215406ed36c024f01495 | [
"Apache-2.0"
] | 11 | 2018-09-23T12:16:48.000Z | 2021-06-10T19:49:45.000Z | ask-sdk-model-runtime/ask_sdk_model_runtime/api_configuration.py | Signal-Kinetics/alexa-apis-for-python | abb8d3dce18a5510c48b215406ed36c024f01495 | [
"Apache-2.0"
] | 28 | 2018-09-19T22:30:38.000Z | 2022-02-22T22:57:07.000Z | # -*- coding: utf-8 -*-
#
# Copyright 2019 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 ... | 41.95 | 80 | 0.72507 |
24400036af7843669245f2d059e89cd38ee90833 | 15,581 | py | Python | test/unit/test_globals.py | cstockton/py-emit | 3c240afb4a6159aa3a9a5930c0f6a606d41370b1 | [
"MIT"
] | null | null | null | test/unit/test_globals.py | cstockton/py-emit | 3c240afb4a6159aa3a9a5930c0f6a606d41370b1 | [
"MIT"
] | null | null | null | test/unit/test_globals.py | cstockton/py-emit | 3c240afb4a6159aa3a9a5930c0f6a606d41370b1 | [
"MIT"
] | 3 | 2017-08-29T22:59:25.000Z | 2020-02-21T19:13:41.000Z | import pytest
import random
import time
import itertools
from multiprocessing.pool import ThreadPool
from datetime import timedelta
from emit.globals import Proxy, GuardedProxy, Config, ConfigDescriptor, LoggerProxy, log, conf
from ..helpers import TestCase
class CallableStack(list):
"""
Unit testing util... | 35.654462 | 102 | 0.638021 |
2441847130be3f39e5967ae0ebdadf4d608571ad | 374 | py | Python | exercicios/01.py | paulo123araujo/minicurso-python | 31cd0a168c9cd692a675a9af5172460a11c38916 | [
"MIT"
] | null | null | null | exercicios/01.py | paulo123araujo/minicurso-python | 31cd0a168c9cd692a675a9af5172460a11c38916 | [
"MIT"
] | null | null | null | exercicios/01.py | paulo123araujo/minicurso-python | 31cd0a168c9cd692a675a9af5172460a11c38916 | [
"MIT"
] | null | null | null | numeros = input("Digite dois nmeros: ").split(" ")
num1 = float(numeros[0])
num2 = float(numeros[1])
# print(f"{num1} + {num2} = {num1 + num2}")
print("%.2f + %.2f = %.2f" %(num1, num2, (num1 + num2)))
# print(num1, "+", num2, "=", num1 + num2)
print(num1, "-", num2, "=", num1 - num2)
print(num1, "*", num2, "=", nu... | 24.933333 | 56 | 0.537433 |
2442557711a70e9fcc1b17d9d62fad88b7a458da | 2,149 | py | Python | src/stats/__main__.py | bmcculley/pycalcstats | 74501b3fb2c5c061e5629eed127d8554345c0bd3 | [
"MIT"
] | null | null | null | src/stats/__main__.py | bmcculley/pycalcstats | 74501b3fb2c5c061e5629eed127d8554345c0bd3 | [
"MIT"
] | null | null | null | src/stats/__main__.py | bmcculley/pycalcstats | 74501b3fb2c5c061e5629eed127d8554345c0bd3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
## Copyright (c) 2011 Steven D'Aprano.
## See the file __init__.py for the licence terms for this software.
"""
Run the stats package as if it were an executable module.
Usage:
$ python3 -m stats [options]
Options:
-h --help Print this help text.
-V --version Print the ... | 29.040541 | 73 | 0.642624 |
2442c8f27888189c71758520f5da703f6def7184 | 4,277 | py | Python | tests/field_test.py | intelligenceunion/mongo-driver | 02bbc6839c8264d4b06b053e8cc83d42147ede17 | [
"MIT"
] | null | null | null | tests/field_test.py | intelligenceunion/mongo-driver | 02bbc6839c8264d4b06b053e8cc83d42147ede17 | [
"MIT"
] | null | null | null | tests/field_test.py | intelligenceunion/mongo-driver | 02bbc6839c8264d4b06b053e8cc83d42147ede17 | [
"MIT"
] | 1 | 2019-06-21T17:49:08.000Z | 2019-06-21T17:49:08.000Z | import unittest
import pymongo
import datetime
from bson import ObjectId
from iu_mongo import Document, connect
from iu_mongo.fields import *
from iu_mongo.errors import ValidationError
import iu_mongo
| 35.347107 | 79 | 0.599018 |
2443bc2de907a14da3ae31b312cee64e8728b751 | 2,821 | py | Python | signing/bin/sign_image.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | signing/bin/sign_image.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | 2 | 2021-03-26T00:29:32.000Z | 2021-04-30T21:29:33.000Z | signing/bin/sign_image.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Chrome OS Image file signing."""
from __future__ import print_function
import collections
from chromite.lib import commandli... | 38.121622 | 80 | 0.700815 |
2444309351fb1815ca19b79bdbd6b418c960ad90 | 3,874 | py | Python | bitsv/network/services/bchsvexplorer.py | yoursmengle/bitsv | 387ff649e3916521fc3528469fdb0eef9c97e624 | [
"MIT"
] | 1 | 2019-06-28T05:20:07.000Z | 2019-06-28T05:20:07.000Z | bitsv/network/services/bchsvexplorer.py | joshua-s/bitsv | 8ca960c39cef7a7d655011fba690510684190f1e | [
"MIT"
] | 1 | 2020-01-10T13:16:36.000Z | 2020-01-10T13:16:36.000Z | bitsv/network/services/bchsvexplorer.py | yoursmengle/bitsv | 387ff649e3916521fc3528469fdb0eef9c97e624 | [
"MIT"
] | null | null | null | import requests
import json
from decimal import Decimal
from bitsv.network import currency_to_satoshi
from bitsv.network.meta import Unspent
# left here as a reminder to normalize get_transaction()
from bitsv.network.transaction import Transaction, TxInput, TxOutput
from bitsv.constants import BSV
DEFAULT_TIMEOUT = ... | 33.982456 | 93 | 0.617708 |
2444ac3c50dcef8edaf375b5ced228049606008a | 336 | py | Python | utils/common.py | Dineshs91/django-revert-test | e1954f287427e74255f17fb56886fbf90580ab77 | [
"MIT"
] | null | null | null | utils/common.py | Dineshs91/django-revert-test | e1954f287427e74255f17fb56886fbf90580ab77 | [
"MIT"
] | null | null | null | utils/common.py | Dineshs91/django-revert-test | e1954f287427e74255f17fb56886fbf90580ab77 | [
"MIT"
] | null | null | null | from rest_framework.response import Response
| 21 | 56 | 0.607143 |
24468a96f003b4054d7dff4b59d198dddc557f17 | 1,699 | py | Python | email-updates-stonks-AI-ML/venv/Lib/site-packages/pandas_datareader/econdb.py | iVibudh/stock-prediction | 3900619224bb86e382c782d39138914294199733 | [
"MIT"
] | 1 | 2021-02-06T21:00:00.000Z | 2021-02-06T21:00:00.000Z | venv/lib/python3.8/site-packages/pandas_datareader/econdb.py | jsherretts/stock-trading-bot | 234bd7b1e67e6e2d9c728dce1851e020aab0662e | [
"MIT"
] | 2 | 2021-03-31T19:54:17.000Z | 2021-06-02T02:33:56.000Z | venv/lib/python3.8/site-packages/pandas_datareader/econdb.py | jsherretts/stock-trading-bot | 234bd7b1e67e6e2d9c728dce1851e020aab0662e | [
"MIT"
] | 1 | 2021-07-28T20:35:14.000Z | 2021-07-28T20:35:14.000Z | import pandas as pd
import requests
from pandas_datareader.base import _BaseReader
| 29.293103 | 88 | 0.535021 |
2446ff9bc5f75c50ae2d83b9186ef463217c4dff | 2,500 | py | Python | adet/modeling/SparseMaskInst/SparseMaskEncoding/utils.py | shuaiqi361/AdelaiDet | 35d944033a8d2f7aa623ad607b57bd8a1fe88b43 | [
"BSD-2-Clause"
] | null | null | null | adet/modeling/SparseMaskInst/SparseMaskEncoding/utils.py | shuaiqi361/AdelaiDet | 35d944033a8d2f7aa623ad607b57bd8a1fe88b43 | [
"BSD-2-Clause"
] | null | null | null | adet/modeling/SparseMaskInst/SparseMaskEncoding/utils.py | shuaiqi361/AdelaiDet | 35d944033a8d2f7aa623ad607b57bd8a1fe88b43 | [
"BSD-2-Clause"
] | null | null | null | # coding:utf-8
import numpy as np
import torch
import math
| 35.211268 | 106 | 0.6164 |
2447e0552af3107be48ac3a9066299a7b4696ec1 | 188 | py | Python | backend/database/__init__.py | Stampeder525/police-data-trust-1 | 5fdc9d58ed51e23f1b23c626c5b97a58c3da57d8 | [
"MIT"
] | null | null | null | backend/database/__init__.py | Stampeder525/police-data-trust-1 | 5fdc9d58ed51e23f1b23c626c5b97a58c3da57d8 | [
"MIT"
] | null | null | null | backend/database/__init__.py | Stampeder525/police-data-trust-1 | 5fdc9d58ed51e23f1b23c626c5b97a58c3da57d8 | [
"MIT"
] | null | null | null | # flake8: noqa: F401
from .core import db
from .core import db_cli
from .core import execute_query
from .models.incidents import Incidents, IncidentSchema
from .models.users import Users
| 23.5 | 55 | 0.803191 |
24483a88227f9c9ae585353b8fb8fe058a952b42 | 11,524 | py | Python | nautobot_chatops/api/views/mattermost.py | smk4664/nautobot-plugin-chatops | 223d15a8a3364b44740f2912b44a2f11837946b3 | [
"Apache-2.0"
] | null | null | null | nautobot_chatops/api/views/mattermost.py | smk4664/nautobot-plugin-chatops | 223d15a8a3364b44740f2912b44a2f11837946b3 | [
"Apache-2.0"
] | null | null | null | nautobot_chatops/api/views/mattermost.py | smk4664/nautobot-plugin-chatops | 223d15a8a3364b44740f2912b44a2f11837946b3 | [
"Apache-2.0"
] | null | null | null | """Views to receive inbound notifications from Mattermost, parse them, and enqueue worker actions."""
import json
import logging
import shlex
from django.conf import settings
from django.http import HttpResponse
from django.utils.decorators import method_decorator
from django.views import View
from django.views.decor... | 42.681481 | 117 | 0.622527 |
244b171397f7962fd703f3299789a0f3c13a25b6 | 2,592 | py | Python | lib/tclient.py | AjaxVM/hiths-pyweek6 | 6661ddb8b7c75b0788ce41a411838bc28d59d284 | [
"Unlicense"
] | null | null | null | lib/tclient.py | AjaxVM/hiths-pyweek6 | 6661ddb8b7c75b0788ce41a411838bc28d59d284 | [
"Unlicense"
] | null | null | null | lib/tclient.py | AjaxVM/hiths-pyweek6 | 6661ddb8b7c75b0788ce41a411838bc28d59d284 | [
"Unlicense"
] | null | null | null | from twisted.spread import pb
from twisted.internet import reactor
from tserver import User, CopyUser
import sys, signal
player_count = 0
loop = 0
client = None
game_creator = False
pb.setUnjellyableForClass(CopyUser, RemoteUser)
signal.signal(signal.SIGINT, handle_signal)
if __name__ == '__main__':
connect('m... | 26.181818 | 64 | 0.649691 |
244c391e531a230265dcfe8e38f79f69557d41fd | 2,401 | py | Python | discordspy/utils.py | NextChai/discordspy | a6f4f2f1c9ad9facfdb92e653d0d9655606878fa | [
"MIT"
] | null | null | null | discordspy/utils.py | NextChai/discordspy | a6f4f2f1c9ad9facfdb92e653d0d9655606878fa | [
"MIT"
] | null | null | null | discordspy/utils.py | NextChai/discordspy | a6f4f2f1c9ad9facfdb92e653d0d9655606878fa | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2021 NextChai
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, dist... | 33.816901 | 85 | 0.68055 |
244de003b0cb8a85188f7fa3c01262ae70811773 | 218 | py | Python | nglview/color.py | i386uk/nglview | 39e207e474ef85feb0e4928d02d2d68428435b15 | [
"MIT"
] | null | null | null | nglview/color.py | i386uk/nglview | 39e207e474ef85feb0e4928d02d2d68428435b15 | [
"MIT"
] | null | null | null | nglview/color.py | i386uk/nglview | 39e207e474ef85feb0e4928d02d2d68428435b15 | [
"MIT"
] | null | null | null | COLOR_SCHEMES = [
" ", "picking", "random", "uniform", "atomindex", "residueindex",
"chainindex", "modelindex", "sstruc", "element", "resname", "bfactor",
"hydrophobicity", "value", "volume", "occupancy"
]
| 36.333333 | 74 | 0.619266 |
244f5d19d999147c55383cd2348a0a544bf75692 | 5,007 | py | Python | dump/gui_v1.0.py | axcelerateai/Urdu-Handwriting-Recognition-using-Deep-Learning | 38c6e4676b393feac380781cf37ce1abf8051132 | [
"MIT"
] | 3 | 2020-10-09T13:30:47.000Z | 2021-11-03T17:55:47.000Z | dump/gui_v1.0.py | axcelerateai/Urdu-Handwriting-Recognition-using-Deep-Learning | 38c6e4676b393feac380781cf37ce1abf8051132 | [
"MIT"
] | 2 | 2020-06-12T20:03:56.000Z | 2020-06-16T03:53:17.000Z | dump/gui_v1.0.py | axcelerateai/Urdu-Handwriting-Recognition-using-Deep-Learning | 38c6e4676b393feac380781cf37ce1abf8051132 | [
"MIT"
] | 3 | 2021-02-25T03:30:32.000Z | 2022-02-07T20:04:19.000Z | import os
import webbrowser
import numpy as np
import csv
import traceback
import arabic_reshaper
from tkinter import *
from tkinter import messagebox
from tkinter.filedialog import askopenfilename
from PIL import ImageTk, Image
from run_model import create_and_run_model
if __name__ == "__main__":
main_window()
| 35.764286 | 94 | 0.656481 |
244f65c4acce4ecfa1f271d50891f6d421d26621 | 1,394 | py | Python | crispy/modules/download.py | hanshoffman/crispy-fortnight | 6b69b0db95eb9beb5e977fdba7c6dcf1f015f6c7 | [
"MIT"
] | 6 | 2016-03-12T01:16:55.000Z | 2016-08-08T04:35:54.000Z | crispy/modules/download.py | hansjhoffman/crispy-fortnight | 6b69b0db95eb9beb5e977fdba7c6dcf1f015f6c7 | [
"MIT"
] | 17 | 2016-03-14T01:10:56.000Z | 2016-06-28T20:42:36.000Z | crispy/modules/download.py | hanshoffman/crispy-fortnight | 6b69b0db95eb9beb5e977fdba7c6dcf1f015f6c7 | [
"MIT"
] | 4 | 2016-03-16T01:17:29.000Z | 2016-05-11T17:20:39.000Z | import logging
import os
from crispy.lib.myparser import CrispyArgumentParser
from rpyc.utils.classic import download
from crispy.lib.module import *
from crispy.lib.fprint import *
logger = logging.getLogger(__name__)
__class_name__ = "DownloadModule"
| 34 | 85 | 0.644907 |
245279e99eccc5a89222148405717013b6bf5d45 | 4,042 | py | Python | blaspy/level_2/trmv.py | nicholas-moreles/blaspy | c4af6258e17dd996c4b6d90bbaae15b31b8702b4 | [
"BSD-3-Clause"
] | 4 | 2015-01-25T12:44:44.000Z | 2022-03-19T08:36:19.000Z | blaspy/level_2/trmv.py | nicholas-moreles/blaspy | c4af6258e17dd996c4b6d90bbaae15b31b8702b4 | [
"BSD-3-Clause"
] | 7 | 2015-01-20T13:35:39.000Z | 2015-05-31T17:11:50.000Z | blaspy/level_2/trmv.py | nicholas-moreles/blaspy | c4af6258e17dd996c4b6d90bbaae15b31b8702b4 | [
"BSD-3-Clause"
] | null | null | null | """
Copyright (c) 2014-2015-2015, The University of Texas at Austin.
All rights reserved.
This file is part of BLASpy and is available under the 3-Clause
BSD License, which can be found in the LICENSE file at the top-level
directory or at http://opensource.org/licenses/BSD-3-Clause
"""
from ..he... | 42.104167 | 98 | 0.621475 |
2453cf34dc912ae247fbb288fdddd145a7ca95cb | 13,822 | py | Python | Neural Style Transfer/model.py | KingJamesSong/FastDifferentiableMatSqrt | ab5278195e25df0192096581e0c0c288e0c66bd2 | [
"MIT"
] | 15 | 2022-01-21T11:57:01.000Z | 2022-03-27T07:22:16.000Z | Neural Style Transfer/model.py | KingJamesSong/FastDifferentiableMatSqrt | ab5278195e25df0192096581e0c0c288e0c66bd2 | [
"MIT"
] | null | null | null | Neural Style Transfer/model.py | KingJamesSong/FastDifferentiableMatSqrt | ab5278195e25df0192096581e0c0c288e0c66bd2 | [
"MIT"
] | 1 | 2022-01-24T11:29:25.000Z | 2022-01-24T11:29:25.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from utils.torch_utils import *
| 39.491429 | 156 | 0.576183 |
2455cb80e1aaf2ba0d39b50ac976cccb541ad91b | 13,355 | py | Python | main.py | hunterowens/frankenstein | 36305cad0ab6552597c707c813d20eaa3ad38f81 | [
"Apache-2.0"
] | 2 | 2018-10-17T02:27:59.000Z | 2019-03-12T00:58:48.000Z | main.py | hunterowens/frankenstein | 36305cad0ab6552597c707c813d20eaa3ad38f81 | [
"Apache-2.0"
] | null | null | null | main.py | hunterowens/frankenstein | 36305cad0ab6552597c707c813d20eaa3ad38f81 | [
"Apache-2.0"
] | null | null | null | import json
import pythonosc
import argparse
import math
import datetime
from pythonosc import dispatcher, osc_server, udp_client, osc_message_builder
import requests
from collections import OrderedDict
from statistics import mean
## added variables to change the ip and port easily
## testing if Git works with ST
ip... | 31.646919 | 198 | 0.653463 |
2456194d25cdc4ce95af04bc56ef7e00c8643248 | 635 | py | Python | src/lit_tracking/utils/run_converter.py | Actis92/lit-tracking | 9e7b243ba77c80ca260bff479e54db271d10c195 | [
"MIT"
] | null | null | null | src/lit_tracking/utils/run_converter.py | Actis92/lit-tracking | 9e7b243ba77c80ca260bff479e54db271d10c195 | [
"MIT"
] | 14 | 2021-11-01T08:48:23.000Z | 2022-01-08T14:20:17.000Z | src/lit_tracking/utils/run_converter.py | Actis92/lit-tracking | 9e7b243ba77c80ca260bff479e54db271d10c195 | [
"MIT"
] | null | null | null | import argparse
import importlib
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('--input_path', help='Path that contains data in MOT format', required=True)
parser.add_argument('--output_path', help='Path that will contains the output', required=True)
parser.add_argum... | 48.846154 | 109 | 0.754331 |
2456670193398aaa3aace6b23615d552f25b4839 | 5,825 | py | Python | test/test_npu/test_network_ops/test_neg.py | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | 1 | 2021-12-02T03:07:35.000Z | 2021-12-02T03:07:35.000Z | test/test_npu/test_network_ops/test_neg.py | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | 1 | 2021-11-12T07:23:03.000Z | 2021-11-12T08:28:13.000Z | test/test_npu/test_network_ops/test_neg.py | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2020, Huawei Technologies.All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law... | 41.607143 | 85 | 0.635365 |
2456f6933037766ba90c0161dd21869ac9959ef3 | 370 | py | Python | Web_decoder_2.py | cegador/python_exercises | cdae01f845288475c00ed4c7c45db17e7dfb751e | [
"MIT"
] | null | null | null | Web_decoder_2.py | cegador/python_exercises | cdae01f845288475c00ed4c7c45db17e7dfb751e | [
"MIT"
] | null | null | null | Web_decoder_2.py | cegador/python_exercises | cdae01f845288475c00ed4c7c45db17e7dfb751e | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
url = 'https://www.vanityfair.com/style/society/2014/06/monica-lewinsky-humiliation-culture'
vf = requests.get(url)
vf.status_code
s = BeautifulSoup(vf.text, 'lxml')
print(s.prettify())
text_article = s.find('div', attrs={'class' : 'content-background'}).find_all('p')
... | 26.428571 | 92 | 0.737838 |
2457565434613978e65824abeb9173e30c73221a | 480 | py | Python | envpy/__init__.py | Combofoods/pyenv | 8b33173e593054b8d46a8c3be99c44f7294c7069 | [
"MIT"
] | 1 | 2020-07-22T12:19:26.000Z | 2020-07-22T12:19:26.000Z | envpy/__init__.py | Combofoods/pyenv | 8b33173e593054b8d46a8c3be99c44f7294c7069 | [
"MIT"
] | null | null | null | envpy/__init__.py | Combofoods/pyenv | 8b33173e593054b8d46a8c3be99c44f7294c7069 | [
"MIT"
] | null | null | null | import os
from envpy.variables import Var as Variables
from envpy.variables import __printenv__
| 43.636364 | 154 | 0.789583 |
2458dac6adb26f8c77b50a1f69f3c2ef18781671 | 2,518 | py | Python | models/deep_factorized_model.py | kundajelab/mpra_minimal | 2799ed87821130fc537836651d37e45a3247382d | [
"MIT"
] | 11 | 2019-05-06T13:13:35.000Z | 2022-03-10T22:24:27.000Z | models/deep_factorized_model.py | mineeme/MPRA-DragoNN | 2799ed87821130fc537836651d37e45a3247382d | [
"MIT"
] | null | null | null | models/deep_factorized_model.py | mineeme/MPRA-DragoNN | 2799ed87821130fc537836651d37e45a3247382d | [
"MIT"
] | 2 | 2019-07-24T20:42:08.000Z | 2020-02-21T02:33:30.000Z | from models.base_model import BaseModel
from keras.models import Sequential
from keras.layers import Input, Dense, Conv1D, MaxPooling1D, Dropout, Flatten, BatchNormalization
from keras.optimizers import Adam
import tensorflow as tf
| 34.493151 | 124 | 0.643765 |
2459202d8235c994028b62181cbfcd741881a72d | 323 | py | Python | scripts/nengo_os/print_control.py | markplagge/neuro_os | 60b246c0f975d30658628e1caf60cd209e740e6e | [
"BSD-3-Clause"
] | null | null | null | scripts/nengo_os/print_control.py | markplagge/neuro_os | 60b246c0f975d30658628e1caf60cd209e740e6e | [
"BSD-3-Clause"
] | 1 | 2020-07-21T02:25:45.000Z | 2020-07-21T02:27:45.000Z | scripts/nengo_os/print_control.py | markplagge/neuro_os | 60b246c0f975d30658628e1caf60cd209e740e6e | [
"BSD-3-Clause"
] | null | null | null | debug_print = False
has_run_once = False
| 17.944444 | 52 | 0.634675 |
245a13172d7f4a65ed0b24d40fe80fd7eeecd806 | 3,849 | py | Python | eva-accession-release-automation/include_mapping_weight_from_dbsnp/export_all_multimap_snps_from_dbsnp_dumps.py | sundarvenkata-EBI/eva-accession | b26f0b5e5acaafe63d0755bad81837b9a5976237 | [
"Apache-2.0"
] | 3 | 2018-02-28T17:14:53.000Z | 2020-03-17T17:19:45.000Z | eva-accession-release-automation/include_mapping_weight_from_dbsnp/export_all_multimap_snps_from_dbsnp_dumps.py | sundarvenkata-EBI/eva-accession | b26f0b5e5acaafe63d0755bad81837b9a5976237 | [
"Apache-2.0"
] | 52 | 2018-03-29T15:44:23.000Z | 2022-02-16T00:54:28.000Z | eva-accession-release-automation/include_mapping_weight_from_dbsnp/export_all_multimap_snps_from_dbsnp_dumps.py | sundarvenkata-EBI/eva-accession | b26f0b5e5acaafe63d0755bad81837b9a5976237 | [
"Apache-2.0"
] | 15 | 2018-03-02T13:34:19.000Z | 2021-06-22T15:54:59.000Z | # Copyright 2020 EMBL - European Bioinformatics Institute
#
# 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... | 50.644737 | 119 | 0.71629 |
245a1861adb239f0bbcb20f082a3db3723b38c4f | 662 | py | Python | Repaso Examenes/enero2020/enero2020pd4.py | Mi7ai/Algoritmia | 2f1c7b3990e4971f4f977fd0ea4d308004ab3db5 | [
"Apache-2.0"
] | null | null | null | Repaso Examenes/enero2020/enero2020pd4.py | Mi7ai/Algoritmia | 2f1c7b3990e4971f4f977fd0ea4d308004ab3db5 | [
"Apache-2.0"
] | null | null | null | Repaso Examenes/enero2020/enero2020pd4.py | Mi7ai/Algoritmia | 2f1c7b3990e4971f4f977fd0ea4d308004ab3db5 | [
"Apache-2.0"
] | null | null | null |
if __name__ == '__main__':
C = [5, 15, 8, 10]
S = [5, 4, 1, 6]
N = [3, 5, 6, 4]
M = 15
K = 5
print(partido_rec_mem_camino(C, S, N, M))
| 17.891892 | 106 | 0.453172 |
245c288390cedd8347f4657b97e7c373c4bcbfa5 | 7,357 | py | Python | hilbert_curve.py | qypea/disk-usage-visualizer | c26c5866a6d885347a92f1212d132286a6ab9ddc | [
"MIT"
] | null | null | null | hilbert_curve.py | qypea/disk-usage-visualizer | c26c5866a6d885347a92f1212d132286a6ab9ddc | [
"MIT"
] | null | null | null | hilbert_curve.py | qypea/disk-usage-visualizer | c26c5866a6d885347a92f1212d132286a6ab9ddc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# From https://people.sc.fsu.edu/~jburkardt/py_src/hilbert_curve/hilbert_curve.py
#
if ( __name__ == '__main__' ):
timestamp ( )
hilbert_curve_test ( )
timestamp ( )
| 18.12069 | 86 | 0.482126 |
245e3ffeeef59a7f223bf3d12f43d4f94ed7e8f3 | 295 | py | Python | webapp/rest/permissions.py | zohaib-ansari/vehicle-webapp | 19ddf8aa3ebb6fe7d0642ddef8facdeda7822184 | [
"MIT"
] | null | null | null | webapp/rest/permissions.py | zohaib-ansari/vehicle-webapp | 19ddf8aa3ebb6fe7d0642ddef8facdeda7822184 | [
"MIT"
] | null | null | null | webapp/rest/permissions.py | zohaib-ansari/vehicle-webapp | 19ddf8aa3ebb6fe7d0642ddef8facdeda7822184 | [
"MIT"
] | null | null | null | from rest_framework import permissions | 26.818182 | 65 | 0.688136 |
245ea6b8625b098807a43420900faed747e3a21d | 3,314 | py | Python | src/search.py | yrwq/ytw | 787d5c2d5d49d1cdd99a2d2448210af11727a278 | [
"MIT"
] | 5 | 2020-11-26T08:38:45.000Z | 2021-03-14T11:38:38.000Z | src/search.py | yrwq/ytw | 787d5c2d5d49d1cdd99a2d2448210af11727a278 | [
"MIT"
] | null | null | null | src/search.py | yrwq/ytw | 787d5c2d5d49d1cdd99a2d2448210af11727a278 | [
"MIT"
] | 2 | 2020-11-26T07:21:49.000Z | 2021-01-01T13:09:34.000Z | #!/usr/bin/env python
import sys
import getopt
import requests
import urllib.parse
import json
argumentList = sys.argv[1:]
# Options
options = "ht:"
# Long options
long_options = ["help", "title"]
try:
# Parsing argument
arguments, values = getopt.getopt(argumentList, options, long_options)
# checki... | 32.811881 | 150 | 0.583585 |
245ebdd8bc1926f462e2a124d6f07b5c8b565ff3 | 3,716 | py | Python | mapmeta/script/script_init.py | bukun/mapserver_meta | 0f1dd278b07fa747dafaf801b96eac19ffdbf327 | [
"MIT"
] | null | null | null | mapmeta/script/script_init.py | bukun/mapserver_meta | 0f1dd278b07fa747dafaf801b96eac19ffdbf327 | [
"MIT"
] | null | null | null | mapmeta/script/script_init.py | bukun/mapserver_meta | 0f1dd278b07fa747dafaf801b96eac19ffdbf327 | [
"MIT"
] | 1 | 2019-06-20T00:29:25.000Z | 2019-06-20T00:29:25.000Z | # -*- coding: utf-8 -*-
'''
script for initialization.
'''
import os
import requests
from .script_init_tabels import run_init_tables
from mapmeta.model.mapmeta_model import MMapMeta
from lxml import etree
def do_for_maplet(mapserver_ip):
'''
`maplet_arch//030_gen_mapproxy.py` mapfile yaml .
'''
r... | 30.459016 | 184 | 0.558127 |
245fd6a78e559e016c8aa53d6a9cbeb14ced94d9 | 3,713 | py | Python | dissect/utils/data_processing.py | dufkan/DiSSECT | 834755f106fefff2475bd247c414aa6d13ec0851 | [
"MIT"
] | null | null | null | dissect/utils/data_processing.py | dufkan/DiSSECT | 834755f106fefff2475bd247c414aa6d13ec0851 | [
"MIT"
] | null | null | null | dissect/utils/data_processing.py | dufkan/DiSSECT | 834755f106fefff2475bd247c414aa6d13ec0851 | [
"MIT"
] | null | null | null | from typing import Dict, Any
import pandas as pd
from tqdm.contrib import tmap
from sage.all import RR, ZZ
import dissect.utils.database_handler as database
from dissect.definitions import STD_CURVE_DICT, ALL_CURVE_COUNT
| 28.782946 | 108 | 0.64153 |