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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
04d1bc1dce7c6269c003373d2cc9252ec617a91c | 596 | py | Python | flask-app/app/app/core/app_setup.py | mcelisr1/flask-docker-backend-stack | 07c640401c42db843ba3e77bba460224591506ab | [
"MIT"
] | 2 | 2019-04-30T23:48:36.000Z | 2019-07-17T15:26:57.000Z | flask-app/app/app/core/app_setup.py | mcelisr1/flask-docker-backend-stack | 07c640401c42db843ba3e77bba460224591506ab | [
"MIT"
] | null | null | null | flask-app/app/app/core/app_setup.py | mcelisr1/flask-docker-backend-stack | 07c640401c42db843ba3e77bba460224591506ab | [
"MIT"
] | null | null | null |
# Import app code
from app.main import app # noqa
# Set up global variables
from app.core import data # noqa
# Set up Config Environments
from app.core import config # noqa
# Set up flask db session
from app.core.db.session import db_session # noqa
# Load dafault data on DB
from app.core.db.init_db import load_de... | 21.285714 | 50 | 0.731544 |
04d1c24f6bc208b7f6d8c3f5553d0bc232b26a52 | 48 | py | Python | crusoe_observe/OS-parser-component/osrest/__init__.py | CSIRT-MU/CRUSOE | 73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b | [
"MIT"
] | 3 | 2021-11-09T09:55:17.000Z | 2022-02-19T02:58:27.000Z | crusoe_observe/OS-parser-component/osrest/__init__.py | CSIRT-MU/CRUSOE | 73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b | [
"MIT"
] | null | null | null | crusoe_observe/OS-parser-component/osrest/__init__.py | CSIRT-MU/CRUSOE | 73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b | [
"MIT"
] | null | null | null | from .run import parse
from .OS_parser import *
| 16 | 24 | 0.770833 |
04d57551e2349970e7fe7a100a4be6c7f4f74e13 | 567 | py | Python | 剑指Offer/No_55_2.py | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 24 | 2020-03-28T06:10:25.000Z | 2021-11-23T05:01:29.000Z | 剑指Offer/No_55_2.py | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | null | null | null | 剑指Offer/No_55_2.py | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 8 | 2020-05-18T02:43:16.000Z | 2021-05-24T18:11:38.000Z | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
| 25.772727 | 49 | 0.492063 |
04d58a3b8bdcb33915a4e22cab618ef1009c63e7 | 247 | py | Python | tests/obj/business_response_test.py | ruchir594/messenger-bot-yelp-aws | 757d9e3e599432954a1acbf477b2f40e5c2d247c | [
"MIT"
] | 1 | 2016-08-09T21:28:26.000Z | 2016-08-09T21:28:26.000Z | tests/obj/business_response_test.py | ruchir594/messenger-bot-yelp-aws | 757d9e3e599432954a1acbf477b2f40e5c2d247c | [
"MIT"
] | null | null | null | tests/obj/business_response_test.py | ruchir594/messenger-bot-yelp-aws | 757d9e3e599432954a1acbf477b2f40e5c2d247c | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from yelp.obj.business import Business
from yelp.obj.business_response import BusinessResponse
| 27.444444 | 55 | 0.773279 |
04d5fda73dffb7cd7356b901c8a85e9f290d1c22 | 6,177 | py | Python | ublox_reader/serial/constants.py | acutaia/goeasy-ublox_reader | f4662389667c9087ca73dd33e5122891bd05db8a | [
"Apache-2.0"
] | null | null | null | ublox_reader/serial/constants.py | acutaia/goeasy-ublox_reader | f4662389667c9087ca73dd33e5122891bd05db8a | [
"Apache-2.0"
] | null | null | null | ublox_reader/serial/constants.py | acutaia/goeasy-ublox_reader | f4662389667c9087ca73dd33e5122891bd05db8a | [
"Apache-2.0"
] | null | null | null | """
Constants for SerialReceiver
:author: Angelo Cutaia
:copyright: Copyright 2021, LINKS Foundation
:version: 1.0.0
..
Copyright 2021 LINKS 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 co... | 44.121429 | 80 | 0.603853 |
04d64185267b3d00217e600b9ff7dace514d3162 | 90,207 | py | Python | icon.py | sunyuting83/auto-wallpaper-pythontk | 91ce331e7a55f884bd1fcf4501a2a183182b653a | [
"MIT"
] | null | null | null | icon.py | sunyuting83/auto-wallpaper-pythontk | 91ce331e7a55f884bd1fcf4501a2a183182b653a | [
"MIT"
] | null | null | null | icon.py | sunyuting83/auto-wallpaper-pythontk | 91ce331e7a55f884bd1fcf4501a2a183182b653a | [
"MIT"
] | null | null | null | img = 'b'AAABAAEAgIAAAAEAIAAoCAEAFgAAACgAAACAAAAAAAEAAAEAIAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA... | 90,207 | 90,207 | 0.834858 |
04d9a64e16d05c00923b86847acd17f241da5519 | 4,704 | py | Python | python/experiments/lnpdfs/StopAndFrisk/frisk.py | DrawZeroPoint/VIPS | 730f4e18c24afa6f561b13d1fe8af53ae89990a7 | [
"MIT"
] | 12 | 2018-07-11T14:35:51.000Z | 2020-12-07T03:54:28.000Z | python/experiments/lnpdfs/StopAndFrisk/frisk.py | ykwon0407/VIPS | 91d940304b34d702c1a8b12363b5fff38455ef88 | [
"MIT"
] | null | null | null | python/experiments/lnpdfs/StopAndFrisk/frisk.py | ykwon0407/VIPS | 91d940304b34d702c1a8b12363b5fff38455ef88 | [
"MIT"
] | 10 | 2018-07-11T14:36:00.000Z | 2022-01-14T21:41:41.000Z | """
Implementation of the hierarchical poisson glm model, with a precinct-specific
term, an ethnicity specific term, and an offset term.
The data are tuples of (ethnicity, precinct, num_stops, total_arrests), where
the count variables num_stops and total_arrests refer to the number of stops
and total arrests of an eth... | 38.557377 | 155 | 0.616709 |
04dc2b56346a0029e3867882b541bc4c488cd002 | 12,578 | py | Python | script.module.saltsrd.shared/lib/kodi.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2019-03-05T09:37:15.000Z | 2019-03-05T09:37:15.000Z | script.module.saltsrd.shared/lib/kodi.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | null | null | null | script.module.saltsrd.shared/lib/kodi.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2021-11-05T20:48:09.000Z | 2021-11-05T20:48:09.000Z | """
Salts RD Lite shared module
Copyright (C) 2016 creits -2- tknorris
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any... | 35.430986 | 139 | 0.63134 |
04dc6f790341edc14815fce9aa1146cef3491bdc | 11,554 | py | Python | data/aicharacter.py | kennethsinder/exit-dash-hyperion | d44ea77ef5e8a6ce9490e3f802636da5b44e6e74 | [
"MIT"
] | 2 | 2018-01-29T14:34:51.000Z | 2020-10-20T23:30:26.000Z | data/aicharacter.py | kennethsinder/exit-dash-hyperion | d44ea77ef5e8a6ce9490e3f802636da5b44e6e74 | [
"MIT"
] | null | null | null | data/aicharacter.py | kennethsinder/exit-dash-hyperion | d44ea77ef5e8a6ce9490e3f802636da5b44e6e74 | [
"MIT"
] | null | null | null | # coding=utf-8
from random import randint
import pygame, math
from character import *
# -----------------------------------------------------------------------------------------------------------------
def update(self, platforms, ev, movableObjects, blocks, aiCharacters, mainChar, pool, surface, FPS, tor... | 49.587983 | 131 | 0.552017 |
04dd4054cf822a4ba24699d6faff9a798c1077f5 | 360 | py | Python | py_elasticinfra/metrics/cpu_load.py | NullConvergence/py_metrics | fa58959591a1a4ee90cb4145acd4ed5f9f6c3b8a | [
"MIT"
] | null | null | null | py_elasticinfra/metrics/cpu_load.py | NullConvergence/py_metrics | fa58959591a1a4ee90cb4145acd4ed5f9f6c3b8a | [
"MIT"
] | null | null | null | py_elasticinfra/metrics/cpu_load.py | NullConvergence/py_metrics | fa58959591a1a4ee90cb4145acd4ed5f9f6c3b8a | [
"MIT"
] | null | null | null | import psutil
from .base import BaseMetric
| 21.176471 | 53 | 0.630556 |
04df5ace15ecf002b804beff354c72b4b1d3aca6 | 6,157 | py | Python | Basics_DataTypes/Sets.py | sudipkrk/Python_from_Scratch | 2b414fd3d8c9694db50c61baaf424e945fbe35aa | [
"MIT"
] | 1 | 2021-07-19T10:07:59.000Z | 2021-07-19T10:07:59.000Z | Basics_DataTypes/Sets.py | sudipkrk/Python_from_Scratch | 2b414fd3d8c9694db50c61baaf424e945fbe35aa | [
"MIT"
] | null | null | null | Basics_DataTypes/Sets.py | sudipkrk/Python_from_Scratch | 2b414fd3d8c9694db50c61baaf424e945fbe35aa | [
"MIT"
] | null | null | null | #@ Sets : used to store multiple items in a single variable.
#@ These are immutable, unordered and unindexed. And duplicates are not allowed in sets.
#@ Use the curly brackets -> {} to create a set
#@ set can be of any data type
#@ Examples
myset = {'apple', 'banana', 'orange'} # Cre... | 66.204301 | 160 | 0.436414 |
04e078577ead750421a7020ed8aeebb5726ef2c5 | 2,181 | py | Python | HotPotato/hot_potato.py | caternuson/CircuitPython-Demos | cffb226750614caed5368d7ca31c06be321f54d8 | [
"MIT"
] | null | null | null | HotPotato/hot_potato.py | caternuson/CircuitPython-Demos | cffb226750614caed5368d7ca31c06be321f54d8 | [
"MIT"
] | null | null | null | HotPotato/hot_potato.py | caternuson/CircuitPython-Demos | cffb226750614caed5368d7ca31c06be321f54d8 | [
"MIT"
] | null | null | null | # Circuit Playground Express Hot Potato
#
# Author: Carter Nelson
# MIT License (https://opensource.org/licenses/MIT)
import time
import random
import math
import board
from analogio import AnalogIn
from adafruit_circuitplayground.express import cpx
# This brings in the song to play
import melody
number_of_notes = len... | 23.967033 | 76 | 0.600642 |
04e099a4d954a7885dde4b77c5a8e0d2e91b8314 | 1,107 | py | Python | optuna/pruners/__init__.py | captain-pool/optuna | 2ae8c17afea54362460320870304c763e91c0596 | [
"MIT"
] | 4,950 | 2019-11-15T07:35:51.000Z | 2022-03-31T10:32:42.000Z | optuna/pruners/__init__.py | SCUTJcfeng/optuna | 9331374a2460da067a6922e4ea09dd4706f3d950 | [
"MIT"
] | 2,490 | 2019-11-15T07:06:20.000Z | 2022-03-31T23:52:45.000Z | optuna/pruners/__init__.py | SCUTJcfeng/optuna | 9331374a2460da067a6922e4ea09dd4706f3d950 | [
"MIT"
] | 621 | 2019-11-15T11:26:57.000Z | 2022-03-28T11:46:34.000Z | from typing import TYPE_CHECKING
from optuna.pruners._base import BasePruner
from optuna.pruners._hyperband import HyperbandPruner
from optuna.pruners._median import MedianPruner
from optuna.pruners._nop import NopPruner
from optuna.pruners._patient import PatientPruner
from optuna.pruners._percentile import Percentil... | 29.918919 | 88 | 0.766034 |
04e0b45d4a2c91bb016d8c40ce99ce0942e046b2 | 7,728 | py | Python | evaluator/design_table.py | vita-epfl/Trajectory-Transformer | 922e17741c532678fd34b041257395acfaecec04 | [
"MIT"
] | null | null | null | evaluator/design_table.py | vita-epfl/Trajectory-Transformer | 922e17741c532678fd34b041257395acfaecec04 | [
"MIT"
] | null | null | null | evaluator/design_table.py | vita-epfl/Trajectory-Transformer | 922e17741c532678fd34b041257395acfaecec04 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
from collections import OrderedDict
import pandas as pd
from evaluator.evaluator_helpers import Categories, Sub_categories, Metrics
| 43.41573 | 158 | 0.566511 |
04e1d79de3ac3f1998a9096e9d35c2880a417cdc | 4,667 | py | Python | bench/sample.py | MustardForBreakfast/safetywrap | 170f836e12df455aed9b6dce5e7c634f6b9e8f87 | [
"Apache-2.0"
] | 21 | 2019-10-31T17:43:18.000Z | 2022-03-19T13:46:05.000Z | bench/sample.py | MustardForBreakfast/safetywrap | 170f836e12df455aed9b6dce5e7c634f6b9e8f87 | [
"Apache-2.0"
] | null | null | null | bench/sample.py | MustardForBreakfast/safetywrap | 170f836e12df455aed9b6dce5e7c634f6b9e8f87 | [
"Apache-2.0"
] | 3 | 2019-11-01T17:50:07.000Z | 2021-12-15T07:23:21.000Z | """A benchmark to be run externally.
Executes a program that might make heavy use of Result/Option types
in one of two ways: classically, with exceptions, or using result types.
The program checks several data stores (in memory to minimize interference
from slow IO &c.) in order for a key. If it finds it, it gets the... | 29.916667 | 77 | 0.543604 |
04e2062fcfd90b0198e33c8160f2903fd4069e92 | 583 | py | Python | library/packages/admin.py | thermokarst-forks/library | 2d13e85a5b2c2992e024769158bcd6885ffcce9e | [
"BSD-3-Clause"
] | 1 | 2018-08-16T22:34:04.000Z | 2018-08-16T22:34:04.000Z | library/packages/admin.py | thermokarst-forks/library | 2d13e85a5b2c2992e024769158bcd6885ffcce9e | [
"BSD-3-Clause"
] | null | null | null | library/packages/admin.py | thermokarst-forks/library | 2d13e85a5b2c2992e024769158bcd6885ffcce9e | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from .models import Package, PackageBuild
admin.site.register(Package, PackageAdmin)
admin.site.register(PackageBuild, PackageBuildAdmin)
| 24.291667 | 61 | 0.747856 |
04e23249464eb1af09688cb5261f0910c0a92916 | 1,775 | py | Python | schemato/validationresult.py | emmett9001/schema.to | cfb5eb128faee391e1ac5c69093776b2d2cfd6b6 | [
"Apache-2.0"
] | 38 | 2015-01-16T11:28:12.000Z | 2017-10-26T07:24:32.000Z | schemato/validationresult.py | emmett9001/schema.to | cfb5eb128faee391e1ac5c69093776b2d2cfd6b6 | [
"Apache-2.0"
] | 11 | 2015-03-20T13:54:49.000Z | 2016-10-05T18:38:38.000Z | schemato/validationresult.py | emmett9001/schema.to | cfb5eb128faee391e1ac5c69093776b2d2cfd6b6 | [
"Apache-2.0"
] | 5 | 2015-02-17T18:08:35.000Z | 2021-12-02T12:33:07.000Z | import json
| 28.629032 | 74 | 0.593239 |
04e2eacd84c84c864a83a13c251d959ab593d0a5 | 2,049 | py | Python | robosuite/scripts/playback_demonstrations_from_hdf5.py | gsp-27/robosuite | 642065ebba4ea0c2c1f3ae6e96a8f14262146019 | [
"MIT"
] | 1 | 2021-12-22T13:10:46.000Z | 2021-12-22T13:10:46.000Z | robosuite/scripts/playback_demonstrations_from_hdf5.py | gsp-27/robosuite | 642065ebba4ea0c2c1f3ae6e96a8f14262146019 | [
"MIT"
] | null | null | null | robosuite/scripts/playback_demonstrations_from_hdf5.py | gsp-27/robosuite | 642065ebba4ea0c2c1f3ae6e96a8f14262146019 | [
"MIT"
] | 1 | 2020-12-29T01:38:01.000Z | 2020-12-29T01:38:01.000Z | """
A convenience script to playback random demonstrations from
a set of demonstrations stored in a hdf5 file.
Example:
$ python playback_demonstrations_from_hdf5.py --folder ../models/assets/demonstrations/SawyerPickPlace/
"""
import os
import h5py
import argparse
import random
import numpy as np
import robosuit... | 28.068493 | 107 | 0.644705 |
04e54898e0b86a46980499b94c96db2931de15a5 | 113 | py | Python | theseus/base/metrics/__init__.py | kaylode/Custom-Template | b2f11bfacf2b03b793476a19781f9046fab6fd82 | [
"MIT"
] | 2 | 2022-02-18T04:41:29.000Z | 2022-03-12T09:04:14.000Z | theseus/base/metrics/__init__.py | kaylode/mediaeval21-vsa | 8c5e7d612393d511331124931843c2ed07192c1b | [
"MIT"
] | 8 | 2022-02-16T17:01:28.000Z | 2022-03-28T02:53:45.000Z | theseus/base/metrics/__init__.py | lannguyen0910/theseus | 5c08fb2f4a9c7ffa395788e6a0ade43780e8bd7d | [
"MIT"
] | 3 | 2022-02-13T05:00:13.000Z | 2022-03-02T00:11:27.000Z | from theseus.registry import Registry
from .metric_template import Metric
METRIC_REGISTRY = Registry('METRIC')
| 18.833333 | 37 | 0.823009 |
04e56c9e1ac441e2b6c321a2b4209ef7f3040dfc | 1,562 | py | Python | merch_week.py | m-paulus/merch_calendar | 1b5065828c91685b92135f892ef4054082013fb1 | [
"MIT"
] | null | null | null | merch_week.py | m-paulus/merch_calendar | 1b5065828c91685b92135f892ef4054082013fb1 | [
"MIT"
] | null | null | null | merch_week.py | m-paulus/merch_calendar | 1b5065828c91685b92135f892ef4054082013fb1 | [
"MIT"
] | null | null | null | import merch_calendar
from datetime import date, timedelta
import calendar
| 26.033333 | 92 | 0.65493 |
04e5f68f42ca705a8b76e3ac11e3a69fe8883a0f | 26,352 | py | Python | test/test_md007.py | jackdewinter/pymarkdown | 7ae408ba0b24506fa07552ffe520750bbff38c53 | [
"MIT"
] | 20 | 2021-01-14T17:39:09.000Z | 2022-03-14T08:35:22.000Z | test/test_md007.py | jackdewinter/pymarkdown | 7ae408ba0b24506fa07552ffe520750bbff38c53 | [
"MIT"
] | 304 | 2020-08-15T23:24:00.000Z | 2022-03-31T23:34:03.000Z | test/test_md007.py | jackdewinter/pymarkdown | 7ae408ba0b24506fa07552ffe520750bbff38c53 | [
"MIT"
] | 3 | 2021-08-11T10:26:26.000Z | 2021-11-02T20:41:27.000Z | """
Module to provide tests related to the MD007 rule.
"""
from test.markdown_scanner import MarkdownScanner
import pytest
| 27.53605 | 109 | 0.68769 |
04e7154f348934cac78d204904e5d27232571945 | 18,168 | py | Python | tests/ticketing/test_transactions.py | bethlakshmi/gbe-divio-djangocms-python2.7 | 6e9b2c894162524bbbaaf73dcbe927988707231d | [
"Apache-2.0"
] | 1 | 2021-03-14T11:56:47.000Z | 2021-03-14T11:56:47.000Z | tests/ticketing/test_transactions.py | bethlakshmi/gbe-divio-djangocms-python2.7 | 6e9b2c894162524bbbaaf73dcbe927988707231d | [
"Apache-2.0"
] | 180 | 2019-09-15T19:52:46.000Z | 2021-11-06T23:48:01.000Z | tests/ticketing/test_transactions.py | bethlakshmi/gbe-divio-djangocms-python2.7 | 6e9b2c894162524bbbaaf73dcbe927988707231d | [
"Apache-2.0"
] | null | null | null | import copy
from mock import patch, Mock
import urllib
from django.core.files import File
from django.core.exceptions import PermissionDenied
from django.shortcuts import get_object_or_404
from django.urls import reverse
from ticketing.models import (
TicketingEvents,
BrownPaperSettings,
EventbriteSettings,... | 44.638821 | 83 | 0.641292 |
04e8053cd909a8f30dd024e9c4b9845248ff59fe | 1,518 | py | Python | awacs/xray.py | mprince/awacs | f6a16af326ac7fd11e2e2be3a48180475f150611 | [
"BSD-2-Clause"
] | null | null | null | awacs/xray.py | mprince/awacs | f6a16af326ac7fd11e2e2be3a48180475f150611 | [
"BSD-2-Clause"
] | null | null | null | awacs/xray.py | mprince/awacs | f6a16af326ac7fd11e2e2be3a48180475f150611 | [
"BSD-2-Clause"
] | 1 | 2020-04-03T06:37:42.000Z | 2020-04-03T06:37:42.000Z | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from aws import Action as BaseAction
from aws import BaseARN
service_name = 'AWS XRay'
prefix = 'xray'
BatchGetTraces = Action('BatchGetTraces')
CreateGroup = Action('CreateGroup')
CreateSamplingRule... | 33 | 73 | 0.763505 |
04e9345c467b4cd556b5bf96877b1b7bbf75e2df | 235 | py | Python | setup.py | Jhsmit/PyHDX | 34bf653743008508bb14f24ccca21ee39b5b25e3 | [
"MIT"
] | 15 | 2020-10-14T14:15:54.000Z | 2022-03-31T17:55:36.000Z | setup.py | Jhsmit/PyHDX | 34bf653743008508bb14f24ccca21ee39b5b25e3 | [
"MIT"
] | 145 | 2020-10-01T13:32:20.000Z | 2022-03-31T08:31:47.000Z | setup.py | Jhsmit/PyHDX | 34bf653743008508bb14f24ccca21ee39b5b25e3 | [
"MIT"
] | 3 | 2021-03-03T10:57:05.000Z | 2021-05-24T09:11:49.000Z | """The setup script."""
from setuptools import setup, find_packages
import versioneer
setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
packages=find_packages(),
include_package_data=True
)
| 19.583333 | 43 | 0.748936 |
04e9b558edc86055533277471959d45abdfff936 | 74 | py | Python | wsgi.py | rogerdahl/acme-notifications | fa877af7361847ca70acc00fc8cb9adc9ab3dc45 | [
"MIT"
] | null | null | null | wsgi.py | rogerdahl/acme-notifications | fa877af7361847ca70acc00fc8cb9adc9ab3dc45 | [
"MIT"
] | null | null | null | wsgi.py | rogerdahl/acme-notifications | fa877af7361847ca70acc00fc8cb9adc9ab3dc45 | [
"MIT"
] | null | null | null | import acme_notifications.init
application = acme_notifications.init.app
| 18.5 | 41 | 0.864865 |
04eacbed2960320b74f280d23dd6e09fb5dbbb17 | 6,839 | py | Python | cmake/CMakeBuild/bin/pyhhi/cmbuild/bjambld.py | myfan/VTM-1.1_sKLT | adf549a14e630167fe22f9b8c73a307174160d7c | [
"BSD-3-Clause"
] | null | null | null | cmake/CMakeBuild/bin/pyhhi/cmbuild/bjambld.py | myfan/VTM-1.1_sKLT | adf549a14e630167fe22f9b8c73a307174160d7c | [
"BSD-3-Clause"
] | null | null | null | cmake/CMakeBuild/bin/pyhhi/cmbuild/bjambld.py | myfan/VTM-1.1_sKLT | adf549a14e630167fe22f9b8c73a307174160d7c | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function
import os
import shutil
import subprocess
import logging
import pyhhi.build.common.ver as ver
import pyhhi.build.common.bldtools as bldtools
from pyhhi.build.common.system import SystemInfo
| 39.531792 | 146 | 0.607106 |
04ebbba0f5550d29b2188709fea832733cf15cb6 | 2,773 | py | Python | Exercise 2-3.py | Falli0o/linear_regression | b21a682bae9e4a3d5aa8aa6223233aa6dea8749c | [
"Apache-2.0"
] | null | null | null | Exercise 2-3.py | Falli0o/linear_regression | b21a682bae9e4a3d5aa8aa6223233aa6dea8749c | [
"Apache-2.0"
] | null | null | null | Exercise 2-3.py | Falli0o/linear_regression | b21a682bae9e4a3d5aa8aa6223233aa6dea8749c | [
"Apache-2.0"
] | null | null | null |
# coding: utf-8
# In[ ]:
from __future__ import division
get_ipython().magic(u'matplotlib inline')
import numpy as np
import matplotlib.pyplot as plt
import math
import multivarlinreg
import rmse
# In[ ]:
#Linear regression
red_train = np.loadtxt('redwine_training.txt')
red_test = np.loadtxt('redwine_testing.tx... | 25.440367 | 106 | 0.728814 |
04ed3a31ba03c3f597496c93d4309dbd599f0a3e | 1,915 | py | Python | untitled/precaritorazor/models.py | NDI-ICE-2019/NDI-main-subject-backend | 5628e36b414599e75eace6acea6536131c4126fa | [
"MIT"
] | null | null | null | untitled/precaritorazor/models.py | NDI-ICE-2019/NDI-main-subject-backend | 5628e36b414599e75eace6acea6536131c4126fa | [
"MIT"
] | null | null | null | untitled/precaritorazor/models.py | NDI-ICE-2019/NDI-main-subject-backend | 5628e36b414599e75eace6acea6536131c4126fa | [
"MIT"
] | null | null | null | from django.db import models
| 27.357143 | 76 | 0.721671 |
04ed512b72b29125fda2c468f7c24dac5e1e16b7 | 1,027 | py | Python | centernet_lightning/datasets/__init__.py | gau-nernst/CenterNet | bd6a21813a63310e3b1c77cefe24077b72d1092a | [
"MIT"
] | 47 | 2021-08-10T09:30:53.000Z | 2022-03-29T07:53:43.000Z | centernet_lightning/datasets/__init__.py | gau-nernst/CenterNet | bd6a21813a63310e3b1c77cefe24077b72d1092a | [
"MIT"
] | 1 | 2021-08-07T13:46:49.000Z | 2021-08-07T13:46:49.000Z | centernet_lightning/datasets/__init__.py | gau-nernst/CenterNet | bd6a21813a63310e3b1c77cefe24077b72d1092a | [
"MIT"
] | 6 | 2021-08-12T02:40:43.000Z | 2022-01-31T16:12:40.000Z | # from .utils import (
# IMAGENET_MEAN, IMAGENET_STD, CollateDetection, CollateTracking,
# get_default_transforms, get_default_detection_transforms, get_default_tracking_transforms
# )
# from .coco import COCODataset
# from .voc import VOCDataset
# from .crowdhuman import CrowdHumanDataset
# from .mot import MO... | 46.681818 | 102 | 0.787731 |
04ee4a305162e4e3bdcb164213ede6ebc3c2c03c | 3,260 | py | Python | Sketches/JL/IRC/Translator.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 12 | 2015-10-20T10:22:01.000Z | 2021-07-19T10:09:44.000Z | Sketches/JL/IRC/Translator.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 2 | 2015-10-20T10:22:55.000Z | 2017-02-13T11:05:25.000Z | Sketches/JL/IRC/Translator.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 6 | 2015-03-09T12:51:59.000Z | 2020-03-01T13:06:21.000Z | # -*- coding: utf-8 -*-
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License, Version 2.0 (the "Lice... | 34.315789 | 112 | 0.607975 |
04ef6f0e489ba56bb79c74e9f8745f375bebe0bc | 3,840 | py | Python | hybmc/models/DeterministicModel.py | sschlenkrich/HybridMonteCarlo | 72f54aa4bcd742430462b27b72d70369c01f9ac4 | [
"MIT"
] | 3 | 2021-08-18T18:34:41.000Z | 2021-12-24T07:05:19.000Z | hybmc/models/DeterministicModel.py | sschlenkrich/HybridMonteCarlo | 72f54aa4bcd742430462b27b72d70369c01f9ac4 | [
"MIT"
] | null | null | null | hybmc/models/DeterministicModel.py | sschlenkrich/HybridMonteCarlo | 72f54aa4bcd742430462b27b72d70369c01f9ac4 | [
"MIT"
] | 3 | 2021-01-31T11:41:19.000Z | 2022-03-25T19:51:20.000Z | #!/usr/bin/python
import numpy as np
from hybmc.models.StochasticProcess import StochasticProcess
# some easy to use functions
def DcfModel(curve):
return DeterministicModel(None,curve,None,None,None)
| 35.88785 | 110 | 0.610938 |
04efafcb6db1afd7a3030ec016d52f31b51e110e | 11,926 | py | Python | ClientSide2.py | MatthewGong/DiffractionClassification | 68be6cf3960f09388253c79bab13cbd9dc07edbb | [
"MIT"
] | 7 | 2019-08-14T18:14:06.000Z | 2021-01-14T01:43:50.000Z | ClientSide2.py | MatthewGong/DiffractionClassification | 68be6cf3960f09388253c79bab13cbd9dc07edbb | [
"MIT"
] | null | null | null | ClientSide2.py | MatthewGong/DiffractionClassification | 68be6cf3960f09388253c79bab13cbd9dc07edbb | [
"MIT"
] | 2 | 2019-11-06T20:19:23.000Z | 2020-08-04T21:06:36.000Z | from __future__ import print_function
from __future__ import division
from Notation import SpaceGroupsDict as spgs
SpGr = spgs.spacegroups()
notation_dictionary = spgs.spacegroups()
import PeakFinding2 as pfnd #custom library to handle the functions behind Find_Peaks
import UniversalLoader2 as uvll #custom library ... | 32.673973 | 124 | 0.606322 |
04efee032a0d44425bb27f5c80f9f0aee01d3ab5 | 465 | py | Python | tests/utils.py | kurtbrose/ufork | 4674abc5a27a2e3076e28756685512359e8e809f | [
"BSD-3-Clause"
] | 5 | 2016-09-13T05:12:42.000Z | 2021-08-31T11:15:59.000Z | tests/utils.py | skhortiuk/ufork | aa96ae8e903c0e95b0b307e8c738e8455ab477f4 | [
"MIT"
] | 7 | 2016-10-13T01:08:01.000Z | 2021-06-24T19:09:29.000Z | tests/utils.py | skhortiuk/ufork | aa96ae8e903c0e95b0b307e8c738e8455ab477f4 | [
"MIT"
] | 4 | 2017-04-11T20:29:41.000Z | 2020-10-12T15:22:33.000Z | from __future__ import absolute_import
import os
import signal
| 29.0625 | 71 | 0.670968 |
04f023bee1d7ff03aceebf8ab92a9d06c9bdc3a1 | 802 | py | Python | examples/application_commands/choices.py | freepizzas-dev/nextcord | 58dd18d4d60d50a0462e87b2400db980e73da72c | [
"MIT"
] | null | null | null | examples/application_commands/choices.py | freepizzas-dev/nextcord | 58dd18d4d60d50a0462e87b2400db980e73da72c | [
"MIT"
] | null | null | null | examples/application_commands/choices.py | freepizzas-dev/nextcord | 58dd18d4d60d50a0462e87b2400db980e73da72c | [
"MIT"
] | null | null | null | import nextcord
from nextcord import SlashOption
from nextcord.interactions import Interaction
client = nextcord.Client()
client.run("TOKEN")
| 27.655172 | 99 | 0.699501 |
04f0e3299aae2df07132187459eead6effe98308 | 16 | py | Python | pyvcdr/__init__.py | EtlamGit/pyvcdr | abb475d1389b069e6b8ae53d50329e64c3f0e261 | [
"MIT"
] | null | null | null | pyvcdr/__init__.py | EtlamGit/pyvcdr | abb475d1389b069e6b8ae53d50329e64c3f0e261 | [
"MIT"
] | null | null | null | pyvcdr/__init__.py | EtlamGit/pyvcdr | abb475d1389b069e6b8ae53d50329e64c3f0e261 | [
"MIT"
] | null | null | null | name = "pyvcdr"
| 8 | 15 | 0.625 |
04f24dbabf997234bb3f9394b5d4778cde915e92 | 729 | py | Python | debug/testUSB.py | sgoadhouse/dcps-visa | 3021168bb15bb66fdd74d2a235d4dc3e0e3a4733 | [
"MIT"
] | 2 | 2019-10-30T08:23:14.000Z | 2021-09-15T14:20:53.000Z | debug/testUSB.py | sgoadhouse/dcps-visa | 3021168bb15bb66fdd74d2a235d4dc3e0e3a4733 | [
"MIT"
] | null | null | null | debug/testUSB.py | sgoadhouse/dcps-visa | 3021168bb15bb66fdd74d2a235d4dc3e0e3a4733 | [
"MIT"
] | 6 | 2019-10-11T18:52:40.000Z | 2022-03-28T10:14:38.000Z |
import usb.core
import usb.util
import sys
# got these using the command lsusb -vv
VENDOR_ID = 0x1AB1
PRODUCT_ID = 0x0E11
DATA_SIZE = 1
device = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID)
#@@@#print(device.is_kernel_driver_active(0))
# was it found?
if device is None:
raise ValueError('USB Device ... | 22.78125 | 64 | 0.728395 |
04f30aaa86b0d421b2d40dfdaa3750bdc67bcc4e | 809 | py | Python | test_ruge_stuben_solver.py | CoderMoray/AMG-for-finity-element | 1f4194eb3d1b8b6007733cb1122bdab7d67424bc | [
"MIT"
] | null | null | null | test_ruge_stuben_solver.py | CoderMoray/AMG-for-finity-element | 1f4194eb3d1b8b6007733cb1122bdab7d67424bc | [
"MIT"
] | null | null | null | test_ruge_stuben_solver.py | CoderMoray/AMG-for-finity-element | 1f4194eb3d1b8b6007733cb1122bdab7d67424bc | [
"MIT"
] | null | null | null | import pyamg
import numpy as np
import time
from prettytable import PrettyTable
A = pyamg.gallery.poisson((500,500), format='csr') # 2D Poisson problem on 500x500 grid
# print('A : ', A )
ml = pyamg.ruge_stuben_solver(A)
b = np.random.rand(A.shape[0]) # pick a random right hand side
# t0=
... | 28.892857 | 88 | 0.608158 |
04f33c7544bbc8ed87639ae554a4185b880e29cc | 7,467 | py | Python | app/telegram_handler.py | badgateway666/Telegram2MQTT | 387709bae98e99f1c5a83a27981ebd2172ad356b | [
"MIT"
] | 1 | 2020-05-22T17:00:27.000Z | 2020-05-22T17:00:27.000Z | app/telegram_handler.py | badgateway666/Telegram2MQTT | 387709bae98e99f1c5a83a27981ebd2172ad356b | [
"MIT"
] | null | null | null | app/telegram_handler.py | badgateway666/Telegram2MQTT | 387709bae98e99f1c5a83a27981ebd2172ad356b | [
"MIT"
] | null | null | null | import logging
import re
from queue import SimpleQueue
from telegram.bot import Bot as Telegram_Bot
from telegram.ext import Updater, CommandHandler, Filters
| 38.096939 | 109 | 0.583367 |
04f340fbe83331013ceb88840a2f5fe6d9acebc2 | 1,273 | py | Python | tests/python/pycasbin_test_suite.py | lezli01/casbin-cpp | 24d43cee747a514a63bcad1aae4953e981e484c3 | [
"Apache-2.0"
] | null | null | null | tests/python/pycasbin_test_suite.py | lezli01/casbin-cpp | 24d43cee747a514a63bcad1aae4953e981e484c3 | [
"Apache-2.0"
] | null | null | null | tests/python/pycasbin_test_suite.py | lezli01/casbin-cpp | 24d43cee747a514a63bcad1aae4953e981e484c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 The casbin Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 29.604651 | 75 | 0.743126 |
04f40581777dd72ef62292b53638cb5d976a365c | 1,574 | py | Python | forcefield_utilities/utils.py | mosdef-hub/forcefield-utilities | 6424f9c8c2935399171ee7056a0d6b408cabda81 | [
"MIT"
] | 1 | 2022-03-15T15:14:02.000Z | 2022-03-15T15:14:02.000Z | forcefield_utilities/utils.py | mosdef-hub/forcefield-utilities | 6424f9c8c2935399171ee7056a0d6b408cabda81 | [
"MIT"
] | 5 | 2021-11-12T01:35:55.000Z | 2022-03-23T15:45:29.000Z | forcefield_utilities/utils.py | mosdef-hub/forcefield-utilities | 6424f9c8c2935399171ee7056a0d6b408cabda81 | [
"MIT"
] | 2 | 2022-03-15T15:14:06.000Z | 2022-03-23T00:11:24.000Z | import functools
import warnings
def call_on_import(func):
"""Declare a decorator that will run `func` when imported."""
func()
def get_package_file_path(from_package, relative_path):
"""Use source of a python package to locate and cache the address of a file."""
from pkg_resources import resource_f... | 29.698113 | 87 | 0.656925 |
04f45b90500ae631520f30af9f99758d2ff28520 | 889 | py | Python | decbin.py | faisalkhan91/Dec2Bin | 623f1640aa6a4b619d95fad9df869c4901cd4c96 | [
"MIT"
] | null | null | null | decbin.py | faisalkhan91/Dec2Bin | 623f1640aa6a4b619d95fad9df869c4901cd4c96 | [
"MIT"
] | null | null | null | decbin.py | faisalkhan91/Dec2Bin | 623f1640aa6a4b619d95fad9df869c4901cd4c96 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python3
decimal = input("Please enter a real number: ")
index = 0
while index < len(decimal) and decimal[index] != ".":
index += 1
if index == 10:
intpart = decimal[:]
fracpart = ""
else :
intpart = decimal[:index]
fracpart = decimal[index+1:]
# print("int len = ", len(intpart), "int part = "... | 18.914894 | 115 | 0.590551 |
04f50ce80dd5255194e1fa6d4b1af8eddf9cb9d6 | 4,003 | py | Python | tests/operators/vector/test_cos_001.py | laekov/akg | 5316b8cb2340bbf71bdc724dc9d81513a67b3104 | [
"Apache-2.0"
] | 1 | 2020-08-31T02:43:43.000Z | 2020-08-31T02:43:43.000Z | tests/operators/vector/test_cos_001.py | laekov/akg | 5316b8cb2340bbf71bdc724dc9d81513a67b3104 | [
"Apache-2.0"
] | null | null | null | tests/operators/vector/test_cos_001.py | laekov/akg | 5316b8cb2340bbf71bdc724dc9d81513a67b3104 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Huawei Technologies Co., Ltd
#
# 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.51087 | 104 | 0.572071 |
04f5f1b977e5486329255efbf34e12d42bdcf0a3 | 2,716 | py | Python | src/installer/src/tortuga/db/nicsDbHandler.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 33 | 2018-03-02T17:07:39.000Z | 2021-05-21T18:02:51.000Z | src/installer/src/tortuga/db/nicsDbHandler.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 201 | 2018-03-05T14:28:24.000Z | 2020-11-23T19:58:27.000Z | src/installer/src/tortuga/db/nicsDbHandler.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 23 | 2018-03-02T17:21:59.000Z | 2020-11-18T14:52:38.000Z | # Copyright 2008-2018 Univa Corporation
#
# 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... | 28.893617 | 74 | 0.626657 |
04f9c470ab4651b45902a20abeeb4edab7d93d0c | 1,068 | py | Python | test/utils/devices/ph_probe_mock_test.py | kieransukachevin/AlkalinityTitrator | 09b642ee1368278b7b4fc180bed50ff538a0938a | [
"MIT"
] | null | null | null | test/utils/devices/ph_probe_mock_test.py | kieransukachevin/AlkalinityTitrator | 09b642ee1368278b7b4fc180bed50ff538a0938a | [
"MIT"
] | 31 | 2021-06-29T17:53:56.000Z | 2021-08-19T21:59:03.000Z | test/utils/devices/ph_probe_mock_test.py | kieransukachevin/AlkalinityTitrator | 09b642ee1368278b7b4fc180bed50ff538a0938a | [
"MIT"
] | 4 | 2021-02-12T23:21:17.000Z | 2021-11-15T16:55:38.000Z | import pytest
import titration.utils.devices.board_mock as board_mock
import titration.utils.devices.ph_probe_mock as ph_probe_mock
| 23.217391 | 63 | 0.700375 |
04fa50f216dce4da7cb555026a335c1664fdf05b | 516 | py | Python | topCoder/srms/300s/srm378/div2/two_rotation_cypher.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-09-30T19:53:08.000Z | 2020-09-30T19:53:08.000Z | topCoder/srms/300s/srm378/div2/two_rotation_cypher.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | null | null | null | topCoder/srms/300s/srm378/div2/two_rotation_cypher.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-10-15T09:10:57.000Z | 2020-10-15T09:10:57.000Z | from string import ascii_lowercase
| 36.857143 | 88 | 0.52907 |
04faa5333b2d83edb78730a93736b95eddd63ea2 | 5,675 | py | Python | src/CoRe.py | SkBlaz/core | 2833191021ddf7113d375daeb9e9740faa068957 | [
"BSD-3-Clause"
] | null | null | null | src/CoRe.py | SkBlaz/core | 2833191021ddf7113d375daeb9e9740faa068957 | [
"BSD-3-Clause"
] | null | null | null | src/CoRe.py | SkBlaz/core | 2833191021ddf7113d375daeb9e9740faa068957 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from class_neural import GenericAutoencoder
from class_clustering_reduction import ReductionCluster
from class_subspace_reduction import ReductionSubspace
try:
import umap
except Exception as es:
print(f"UMAP unavailable. {es}")
from sklearn.decomposition import TruncatedSVD
from sklearn.man... | 32.994186 | 84 | 0.622379 |
04fb5d0dbcd3e4b473928d99c92155cb381bc3e9 | 5,632 | py | Python | autograd/container_types.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | autograd/container_types.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | autograd/container_types.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from autograd.core import (primitive, Node, VSpace, register_node, vspace,
register_vspace, SparseObject)
from builtins import zip
from future.utils import iteritems
from functools import partial
import autograd.numpy as np
register_node(SequenceNode, t... | 34.552147 | 91 | 0.649148 |
04fccb1478ce692e14caa6ca3962aae84ed836d8 | 1,771 | py | Python | p314_Binary_Tree_Vertical_Order_Traversal.py | bzhou26/leetcode_sol | 82506521e2cc412f96cd1dfc3c8c3ab635f67f73 | [
"MIT"
] | null | null | null | p314_Binary_Tree_Vertical_Order_Traversal.py | bzhou26/leetcode_sol | 82506521e2cc412f96cd1dfc3c8c3ab635f67f73 | [
"MIT"
] | null | null | null | p314_Binary_Tree_Vertical_Order_Traversal.py | bzhou26/leetcode_sol | 82506521e2cc412f96cd1dfc3c8c3ab635f67f73 | [
"MIT"
] | null | null | null | '''
- Leetcode problem: 314
- Difficulty: Medium
- Brief problem description:
Given a binary tree, return the vertical order traversal of its nodes' values. (ie, from top to bottom, column by column).
If two nodes are in the same row and column, the order should be from left to right.
Examples 1:
Input: [3,9,20,n... | 15.8125 | 122 | 0.512705 |
04feec89ef011be3222eac2c8a548d3c3d472132 | 2,548 | py | Python | tests/pterradactyl/commands/test_lookup.py | GiampaoloFalqui/pterradactyl | 3d34f8088784c53e3d0871d8ca81f2381f2c2be9 | [
"Apache-2.0"
] | 2 | 2022-03-31T09:02:49.000Z | 2022-03-31T18:56:52.000Z | tests/pterradactyl/commands/test_lookup.py | GiampaoloFalqui/pterradactyl | 3d34f8088784c53e3d0871d8ca81f2381f2c2be9 | [
"Apache-2.0"
] | 4 | 2021-12-20T18:31:47.000Z | 2022-03-14T16:31:49.000Z | tests/pterradactyl/commands/test_lookup.py | GiampaoloFalqui/pterradactyl | 3d34f8088784c53e3d0871d8ca81f2381f2c2be9 | [
"Apache-2.0"
] | null | null | null | import unittest
from pterradactyl.commands.lookup import LookupCommand
from mock import patch
import os
import argparse
import pytest
| 49 | 145 | 0.637363 |
ca0012763ebde5a8a825cd260de95730a4c414f2 | 926 | py | Python | Stack/stackusinglinkedlist.py | shaurtoonetwork/Data-Structures-Implemented-In-Python | 31f770165d535547e6ab3973ca92944cd4d93e11 | [
"Unlicense"
] | null | null | null | Stack/stackusinglinkedlist.py | shaurtoonetwork/Data-Structures-Implemented-In-Python | 31f770165d535547e6ab3973ca92944cd4d93e11 | [
"Unlicense"
] | null | null | null | Stack/stackusinglinkedlist.py | shaurtoonetwork/Data-Structures-Implemented-In-Python | 31f770165d535547e6ab3973ca92944cd4d93e11 | [
"Unlicense"
] | null | null | null |
s=Stack()
s.push("A")
s.push("B")
s.push("C")
s.push("D")
s.push("E")
s.pop()
s.pop()
s.get_stack()
| 15.694915 | 37 | 0.541037 |
b6b8dd05f5f7cbaff9802e64ef9b63bb934698fe | 10,059 | py | Python | emailhandler.py | wcascades/Simple_Slack_Bot | b674909d5e02d8f15918fb4dee9f2cb1bcf1079a | [
"MIT"
] | null | null | null | emailhandler.py | wcascades/Simple_Slack_Bot | b674909d5e02d8f15918fb4dee9f2cb1bcf1079a | [
"MIT"
] | 3 | 2021-08-05T14:56:04.000Z | 2022-03-06T18:43:58.000Z | emailhandler.py | wcascades/Simple_Slack_Bot | b674909d5e02d8f15918fb4dee9f2cb1bcf1079a | [
"MIT"
] | null | null | null | # don't use 3.9, currently using 3.7
import mysecrets
import re
import email
import logging
import slackhandler
import my_parser
from exchangelib import Credentials, Account, DELEGATE, Configuration, FaultTolerance, Message
from imapclient import IMAPClient
from collections import deque
# get ticket number from a v... | 42.987179 | 117 | 0.571429 |
b6b8e6b112b5f5a0738910a049da1d3ae0235a6c | 1,698 | py | Python | notebooks/jetlatcalcs.py | afahadabdullah/cmip6hack-emergentconstraints | 287044e7bfb76bc318856d9b25b9e5e2b52ed477 | [
"MIT"
] | 1 | 2019-11-21T02:36:59.000Z | 2019-11-21T02:36:59.000Z | notebooks/jetlatcalcs.py | afahadabdullah/cmip6hack-emergentconstraints | 287044e7bfb76bc318856d9b25b9e5e2b52ed477 | [
"MIT"
] | null | null | null | notebooks/jetlatcalcs.py | afahadabdullah/cmip6hack-emergentconstraints | 287044e7bfb76bc318856d9b25b9e5e2b52ed477 | [
"MIT"
] | 6 | 2019-10-15T20:17:21.000Z | 2019-10-18T22:20:12.000Z | print( "you have successfully imported the jet latitude calculation subroutines" )
import numpy as np
| 38.590909 | 92 | 0.65371 |
b6b9caeebc32813369795932495c71aeac2c4847 | 244 | py | Python | statuscheck/services/sentry.py | amureki/statuscheck | caff92ef211f1fd2bf6c8a18ba8243eb434bc0df | [
"Apache-2.0"
] | 35 | 2018-10-22T06:04:55.000Z | 2022-02-01T10:20:00.000Z | statuscheck/services/sentry.py | amureki/statuscheck | caff92ef211f1fd2bf6c8a18ba8243eb434bc0df | [
"Apache-2.0"
] | 209 | 2018-10-22T11:44:57.000Z | 2022-03-31T04:02:37.000Z | statuscheck/services/sentry.py | amureki/statuscheck | caff92ef211f1fd2bf6c8a18ba8243eb434bc0df | [
"Apache-2.0"
] | 2 | 2020-06-05T02:41:19.000Z | 2020-09-03T07:03:46.000Z | from statuscheck.services.bases._statuspageio import BaseStatusPageAPI
| 27.111111 | 70 | 0.737705 |
b6ba87cd65c4a5ebab94e9028834ee5c431dddfa | 4,145 | py | Python | DQM/HLTEvF/test/hlt_jetmet_test_dqm_fromfile_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DQM/HLTEvF/test/hlt_jetmet_test_dqm_fromfile_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DQM/HLTEvF/test/hlt_jetmet_test_dqm_fromfile_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
process = cms.Process("DQM")
process.load("DQM.HLTEvF.HLTMonitor_cff")
process.load("DQMServices.Core.DQM_cfg")
process.load("DQMServices.Components.DQMEnvironment_cfi")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(100)
)
process.source = cms.Sourc... | 62.80303 | 145 | 0.785766 |
b6ba96554a84cae2263637750307f51ca135bde3 | 1,488 | py | Python | TournamentReminder.py | 0ffkilter/StunfiskBot | 5ec1fd27b875ede1845747f22bf5b1fafe81caff | [
"MIT"
] | 1 | 2019-05-10T00:29:15.000Z | 2019-05-10T00:29:15.000Z | TournamentReminder.py | 0ffkilter/StunfiskBot | 5ec1fd27b875ede1845747f22bf5b1fafe81caff | [
"MIT"
] | null | null | null | TournamentReminder.py | 0ffkilter/StunfiskBot | 5ec1fd27b875ede1845747f22bf5b1fafe81caff | [
"MIT"
] | null | null | null | import praw, sys, os
user_agent = "Tournament Reminder by /u/0ffkilter"
config_file = open('%s%s' %(os.getcwd(), '/Config.txt'), 'r')
config = config_file.read().split('\n')
config_file.close()
reddit = praw.Reddit(user_agent = user_agent)
reddit.login('stunfiskhelperbot', config[1])
part_file = open('%s%s' %(os.g... | 33.818182 | 118 | 0.670699 |
b6baabf4be70eeed58c26930ea96749e16e4205c | 1,699 | py | Python | NGG_NEW.py | Antrix9/NUMBER_GUESSING_GAME | b5fcd5aca17b52dcec1bdbb5f661e20b82cc768b | [
"MIT"
] | null | null | null | NGG_NEW.py | Antrix9/NUMBER_GUESSING_GAME | b5fcd5aca17b52dcec1bdbb5f661e20b82cc768b | [
"MIT"
] | null | null | null | NGG_NEW.py | Antrix9/NUMBER_GUESSING_GAME | b5fcd5aca17b52dcec1bdbb5f661e20b82cc768b | [
"MIT"
] | 1 | 2021-03-27T16:28:33.000Z | 2021-03-27T16:28:33.000Z | import random
while True:
random_list = random.sample((3, 4, 5), 2)
#print(random_list)
random_number = random.randint(1, 1000)
#print(random_number)
start_range = random_number - random_list[0]
end_range = random_number + random_list[1]
print(f'Range Hint: The Number... | 26.138462 | 76 | 0.540906 |
b6bc65524aa9146a7d999087ba23c1ddab175047 | 284 | py | Python | 2048test.py | zhangzhibo123/2048game | 2bd573fdcff61b47bcdafc6aa498c6cd9e5b55a7 | [
"Apache-2.0"
] | null | null | null | 2048test.py | zhangzhibo123/2048game | 2bd573fdcff61b47bcdafc6aa498c6cd9e5b55a7 | [
"Apache-2.0"
] | null | null | null | 2048test.py | zhangzhibo123/2048game | 2bd573fdcff61b47bcdafc6aa498c6cd9e5b55a7 | [
"Apache-2.0"
] | null | null | null | # map = [[0 for i in range(4)] for j in range(4)]
# print(map)
map = [[2, 0, 0, 0], [0, 0, 0, 4], [8, 0, 0, 0], [4, 0, 0, 2]]
# ma = [[map[c][r] for c in range(4)] for r in reversed(range(4))]
# print(ma)
ma = [[map[c][r] for r in reversed(range(4))] for c in range(4)]
print(ma) | 23.666667 | 66 | 0.517606 |
b6bf51d40278ce4e1770aa55c0402ddffbaac7d1 | 4,876 | py | Python | module/platform_node.py | doudoudzj/python-learn | ccb2210e986288f7b0e34c16f55e5a2851e80cf7 | [
"BSD-3-Clause"
] | null | null | null | module/platform_node.py | doudoudzj/python-learn | ccb2210e986288f7b0e34c16f55e5a2851e80cf7 | [
"BSD-3-Clause"
] | null | null | null | module/platform_node.py | doudoudzj/python-learn | ccb2210e986288f7b0e34c16f55e5a2851e80cf7 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# platform_node.py
# https://www.cnblogs.com/hongten/p/hongten_python_platform.html
import platform
'''
pythonplatform
import platform
platform.platform() #'Linux-3.13.0-46-generic-i686-with-Deepin-2014.2-trusty'
platform.version() ... | 25.798942 | 150 | 0.65566 |
b6c2400ffbeca603e01ee66e01e65345a49b8317 | 3,110 | py | Python | scripts/generate_result.py | XinYao1994/HOPE | 99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68 | [
"Apache-2.0"
] | 108 | 2020-04-23T19:06:51.000Z | 2022-02-23T20:05:09.000Z | scripts/generate_result.py | XinYao1994/HOPE | 99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68 | [
"Apache-2.0"
] | 1 | 2021-07-07T05:58:57.000Z | 2021-07-07T05:58:57.000Z | scripts/generate_result.py | XinYao1994/HOPE | 99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68 | [
"Apache-2.0"
] | 11 | 2020-04-24T01:53:50.000Z | 2022-01-21T07:36:14.000Z | import sys
import os
import numpy as np
RESULT_DIR = 'results/'
PREFIX = ['ART', 'btree', 'prefixbtree', 'hot', 'microbench/cpr_latency', 'SuRF']
TYPE = ['point', 'range']
DATASETS = ['email', 'url', 'wiki']
VAR = ['cpr','x','height', 'fpr', 'lat', 'insertlat', 'lookuplat', 'mem', 'stats']
BT_OUTFILE = "../results/micr... | 30.194175 | 86 | 0.50418 |
b6c2d0dc24c606298c21d99b5fb317a520be4673 | 2,139 | py | Python | configuracion/migrations/0001_initial.py | ErickMurillo/aprocacaho | eecd216103e6b06e3ece174c89d911f27b50585a | [
"MIT"
] | null | null | null | configuracion/migrations/0001_initial.py | ErickMurillo/aprocacaho | eecd216103e6b06e3ece174c89d911f27b50585a | [
"MIT"
] | 7 | 2020-06-05T17:11:32.000Z | 2022-03-11T23:14:00.000Z | configuracion/migrations/0001_initial.py | ErickMurillo/aprocacaho | eecd216103e6b06e3ece174c89d911f27b50585a | [
"MIT"
] | 1 | 2016-07-04T18:38:14.000Z | 2016-07-04T18:38:14.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-09 22:02
from __future__ import unicode_literals
from django.db import migrations, models
| 31.925373 | 114 | 0.510986 |
b6c2e06c318572e03e24661769d9fadacecffe3d | 1,647 | py | Python | raspberryPi/control.py | djvolz/CarlLights | 7e0f9d16f2a93c9fcdbd7c4caa3438d39685c498 | [
"Beerware"
] | null | null | null | raspberryPi/control.py | djvolz/CarlLights | 7e0f9d16f2a93c9fcdbd7c4caa3438d39685c498 | [
"Beerware"
] | null | null | null | raspberryPi/control.py | djvolz/CarlLights | 7e0f9d16f2a93c9fcdbd7c4caa3438d39685c498 | [
"Beerware"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: djvolz
# @Date: 2016-11-14 17:03:11
# @Last Modified by: djvolz
# @Last Modified time: 2016-11-15 01:13:28
import time
import json # import json library to parse messages
import boto3 # import boto library that handles queuing functions
import lightSequence as ls
| 28.894737 | 75 | 0.604129 |
b6c56b5f68188582cabf5cbccf6cc782f9460133 | 22,361 | py | Python | textboard/board.py | iMalinois/TextBoard | ca8c61ae1969c0a0c0863226771cd06cc13fcb43 | [
"MIT"
] | 3 | 2019-05-21T22:56:58.000Z | 2020-07-29T12:01:48.000Z | textboard/board.py | iMalinois/TextBoard | ca8c61ae1969c0a0c0863226771cd06cc13fcb43 | [
"MIT"
] | 6 | 2019-05-21T07:26:04.000Z | 2019-05-24T13:10:05.000Z | textboard/board.py | iMalinois/TextBoard | ca8c61ae1969c0a0c0863226771cd06cc13fcb43 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from __future__ import print_function
from copy import copy
from collections import OrderedDict
from abc import ABCMeta, abstractmethod, abstractproperty
from textboard.ansi import ANSI
LOG_BOARD_DEFAULT_LINES_COUNT = 20
LOG_BOARD_SECTOR_DEFAULT_LINES_COUNT = 4
def __init__(self, line_i... | 35.663477 | 162 | 0.618398 |
b6c60ff992939fb96343007441d2c3b3c58baf13 | 41 | py | Python | adobe_sign_api/__init__.py | lingthio/adobe_sign_api | a82cb13587fa8414f67263d5354c7413edfc44ac | [
"MIT"
] | 6 | 2019-09-10T03:34:20.000Z | 2021-08-08T14:42:00.000Z | adobe_sign_api/__init__.py | lingthio/adobe_sign_api | a82cb13587fa8414f67263d5354c7413edfc44ac | [
"MIT"
] | null | null | null | adobe_sign_api/__init__.py | lingthio/adobe_sign_api | a82cb13587fa8414f67263d5354c7413edfc44ac | [
"MIT"
] | 1 | 2019-09-06T23:05:27.000Z | 2019-09-06T23:05:27.000Z | from .adobe_sign_api import AdobeSignAPI
| 20.5 | 40 | 0.878049 |
b6c7c7680b4ba76a99f84c48fad447e0e2a46a23 | 2,350 | py | Python | measurements/tasks/cleanup.py | nat64check/zaphod_backend | b92191950825e1a4fd8c34207c8491d587cfb61f | [
"BSD-3-Clause"
] | 1 | 2017-11-14T16:22:38.000Z | 2017-11-14T16:22:38.000Z | measurements/tasks/cleanup.py | sjm-steffann/nat64check_zaphod_backend | b92191950825e1a4fd8c34207c8491d587cfb61f | [
"BSD-3-Clause"
] | 5 | 2019-12-03T05:36:07.000Z | 2021-06-25T15:20:04.000Z | measurements/tasks/cleanup.py | sjm-steffann/nat64check_zaphod_backend | b92191950825e1a4fd8c34207c8491d587cfb61f | [
"BSD-3-Clause"
] | null | null | null | #
# Copyright (c) 2018, S.J.M. Steffann. This software is licensed under the BSD
# 3-Clause License. Please see the LICENSE file in the project root directory.
#
import sys
import requests
from django.utils.translation import gettext_lazy as _
from uwsgi_tasks import RetryTaskException, task
from generic.utils i... | 32.638889 | 115 | 0.580426 |
b6c82c22096c001538617e60b4c65e0821866b31 | 6,593 | py | Python | script/prepare_active_learning.py | oliverwatts/snickery | 6d7e0b48cbb21760089bbbe85f6d7bd206f89821 | [
"Apache-2.0"
] | 28 | 2018-06-26T02:57:45.000Z | 2021-12-01T01:07:23.000Z | script/prepare_active_learning.py | oliverwatts/snickery | 6d7e0b48cbb21760089bbbe85f6d7bd206f89821 | [
"Apache-2.0"
] | 1 | 2018-11-02T09:29:29.000Z | 2018-11-02T10:20:28.000Z | script/prepare_active_learning.py | oliverwatts/snickery | 6d7e0b48cbb21760089bbbe85f6d7bd206f89821 | [
"Apache-2.0"
] | 5 | 2018-12-21T08:05:06.000Z | 2021-01-16T16:43:42.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
## Project:
## Contact: Oliver Watts - owatts@staffmail.ed.ac.uk
import sys
import os
import glob
import os
import fileinput
from argparse import ArgumentParser
import shelve
import h5py
import numpy
import numpy as np
from train_halfphone import get_data_dump_name
fr... | 26.162698 | 115 | 0.609586 |
b6c876e63b43d2613e35e9f8be781edcaf28ef29 | 1,268 | py | Python | filter_dict/core.py | daddinuz/filter_dict | 5e4df5489a04eb0a97251197a45dfd8a56e88874 | [
"MIT"
] | null | null | null | filter_dict/core.py | daddinuz/filter_dict | 5e4df5489a04eb0a97251197a45dfd8a56e88874 | [
"MIT"
] | 1 | 2018-12-02T15:37:11.000Z | 2018-12-04T04:59:50.000Z | filter_dict/core.py | daddinuz/filter_dict | 5e4df5489a04eb0a97251197a45dfd8a56e88874 | [
"MIT"
] | null | null | null | import typing
import chainable_iterator
K = typing.TypeVar('K')
V = typing.TypeVar('V')
P = typing.List[K]
Predicate = typing.Callable[[P, K, V], bool]
_Node = typing.NamedTuple('_Node', (('path', P), ('data', typing.Mapping)))
| 30.926829 | 94 | 0.614353 |
b6c8ac2b3828724efc5a4b1a174acc6003af0ab7 | 2,549 | py | Python | src/marlb.py | bennett-nguyen/marlb | f169fa814c7454dce54fd6d0ce8e0821280345b2 | [
"MIT"
] | 4 | 2021-12-15T14:41:43.000Z | 2021-12-27T18:57:13.000Z | src/marlb.py | bennett-nguyen/marlb | f169fa814c7454dce54fd6d0ce8e0821280345b2 | [
"MIT"
] | null | null | null | src/marlb.py | bennett-nguyen/marlb | f169fa814c7454dce54fd6d0ce8e0821280345b2 | [
"MIT"
] | null | null | null | import argparse
import os
import re
from utils import interpret
parser = argparse.ArgumentParser()
parser.add_argument("-m", "--mode", choices=["interpret", "debug"], required=True, help="Mode to interpret your file")
parser.add_argument("-f", "--file", required=True, help="File to interpret, pass in either file name... | 31.085366 | 175 | 0.532366 |
b6cb847d557da703ed48e69c2c1a9916ef360141 | 598 | py | Python | capella_console_client/cli/sanitize.py | capellaspace/console-client | bad631f207043231630c9b8c0893a1b4382d4061 | [
"MIT"
] | 23 | 2021-07-28T19:32:25.000Z | 2022-03-19T07:57:36.000Z | capella_console_client/cli/sanitize.py | capellaspace/console-client | bad631f207043231630c9b8c0893a1b4382d4061 | [
"MIT"
] | 6 | 2021-07-16T22:31:56.000Z | 2022-03-11T21:09:40.000Z | capella_console_client/cli/sanitize.py | capellaspace/console-client | bad631f207043231630c9b8c0893a1b4382d4061 | [
"MIT"
] | 1 | 2022-01-05T18:38:46.000Z | 2022-01-05T18:38:46.000Z | import json
from uuid import UUID
from pathlib import Path
from typing import List, Dict, Any, Iterable
| 26 | 68 | 0.670569 |
b6cbfc1847ede598c7c1e4c45f5ef9f8cdf47c97 | 1,165 | py | Python | portal/libs/scripts/snapshots.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 8 | 2020-12-15T17:11:08.000Z | 2021-12-13T22:08:33.000Z | portal/libs/scripts/snapshots.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 28 | 2020-12-15T17:34:03.000Z | 2022-02-01T04:09:10.000Z | portal/libs/scripts/snapshots.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 7 | 2020-12-15T19:59:17.000Z | 2021-11-24T16:47:06.000Z | #!/usr/bin/python
# -*- coding utf-8 -*-
import os
import subprocess
if __name__ == '__main__':
LOGGER = file('%s.log' % os.sys.argv[0], 'a')
if len(os.sys.argv) == 1:
find_pdf(os.getcwd())
else:
for arg in os.sys.argv[1:]:
if arg.endswith('.pdf'):
make_snapshot... | 27.093023 | 81 | 0.556223 |
b6cc07d04501634b38a9132db0f8a13778e8d948 | 1,333 | py | Python | almatsurat_data_compiler.py | IMuslim-org/Al-Matsurat-Internalisation | ad92da6c623911801af23d2d96335e8dedbcd148 | [
"BSD-2-Clause"
] | null | null | null | almatsurat_data_compiler.py | IMuslim-org/Al-Matsurat-Internalisation | ad92da6c623911801af23d2d96335e8dedbcd148 | [
"BSD-2-Clause"
] | null | null | null | almatsurat_data_compiler.py | IMuslim-org/Al-Matsurat-Internalisation | ad92da6c623911801af23d2d96335e8dedbcd148 | [
"BSD-2-Clause"
] | null | null | null |
import csv
import json
import os
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--dzikir_type", dest="dzikir_type", type=str, help="Please Add Al Matsurat Type")
args = parser.parse_args()
dzikir_type = args.dzikir_type
if dzikir_type == None:
dzikir_type = "sugro"
__dir__ = os.path.d... | 24.236364 | 102 | 0.651913 |
b6cc4aeb99e1db488430dfb0021b28e612cd980b | 3,642 | py | Python | prometheus_api_client/metric_range_df.py | chauhankaranraj/prometheus-api-client-python | 5c09c7f3d5b9b2f16dc3aa19c84e9a45c6e23327 | [
"MIT"
] | 118 | 2019-03-31T14:43:25.000Z | 2022-03-20T02:35:42.000Z | prometheus_api_client/metric_range_df.py | chauhankaranraj/prometheus-api-client-python | 5c09c7f3d5b9b2f16dc3aa19c84e9a45c6e23327 | [
"MIT"
] | 225 | 2019-03-22T19:31:51.000Z | 2022-03-29T15:38:20.000Z | prometheus_api_client/metric_range_df.py | chauhankaranraj/prometheus-api-client-python | 5c09c7f3d5b9b2f16dc3aa19c84e9a45c6e23327 | [
"MIT"
] | 67 | 2019-03-21T19:00:52.000Z | 2022-03-31T12:01:14.000Z | """A pandas.DataFrame subclass for Prometheus range vector responses."""
from pandas import DataFrame
from pandas._typing import Axes, Dtype
from typing import Optional, Sequence
| 46.692308 | 107 | 0.547227 |
b6cdb079c562be783ee1672f61ed3ddde8daade9 | 408 | py | Python | testing/testing-xarray-pydap.py | jenfly/atmos-read | 0d7315b3ae12b649af298c43bbedbfc5b519afaa | [
"MIT"
] | 3 | 2018-03-30T20:39:52.000Z | 2019-01-02T19:16:08.000Z | testing/testing-xarray-pydap.py | jenfly/atmos-read | 0d7315b3ae12b649af298c43bbedbfc5b519afaa | [
"MIT"
] | null | null | null | testing/testing-xarray-pydap.py | jenfly/atmos-read | 0d7315b3ae12b649af298c43bbedbfc5b519afaa | [
"MIT"
] | null | null | null | import sys
sys.path.append('/home/jwalker/dynamics/python/atmos-tools')
sys.path.append('/home/jwalker/dynamics/python/atmos-read')
import os
import xarray as xray
import pydap
import numpy as np
import collections
import atmos as atm
url = 'http://iridl.ldeo.columbia.edu/SOURCES/.OSU/.PRISM/.monthly/dods'
ds = xray... | 25.5 | 72 | 0.77451 |
b6ce2aec2391ea0b9093ac93109f9105c5b3043c | 1,076 | py | Python | projects/PointsColletion/pointscollection/layers/emd/modules/emd.py | li-haoran/detectron2 | 84aebaaed19b07cce9dfd579f98b09ad4ed22e90 | [
"Apache-2.0"
] | null | null | null | projects/PointsColletion/pointscollection/layers/emd/modules/emd.py | li-haoran/detectron2 | 84aebaaed19b07cce9dfd579f98b09ad4ed22e90 | [
"Apache-2.0"
] | null | null | null | projects/PointsColletion/pointscollection/layers/emd/modules/emd.py | li-haoran/detectron2 | 84aebaaed19b07cce9dfd579f98b09ad4ed22e90 | [
"Apache-2.0"
] | null | null | null | # EMD approximation module (based on auction algorithm)
# memory complexity: O(n)
# time complexity: O(n^2 * iter)
# author: Minghua Liu
# input:
# p1, p2: [#batch, #points, 3]
# where p1 is the predicted point cloud and p2 is the ground truth point cloud
# two point clouds should have same size and be normalized to... | 30.742857 | 91 | 0.715613 |
b6ce85f9e35e48f81120db106f1180d6d1703043 | 437 | py | Python | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_google_map/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | 1 | 2019-12-19T01:53:13.000Z | 2019-12-19T01:53:13.000Z | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_google_map/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_google_map/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Website Google Map',
'category': 'Website',
'summary': '',
'version': '1.0',
'description': """
Odoo Website Google Map
==========================
""",
'depends': ['base_geoloca... | 23 | 74 | 0.540046 |
b6d182de999f2b8dda4a0f8767443a13245f8b9e | 710 | py | Python | nmtpytorch/layers/pw/embedding.py | toshohirasawa/nmtpytorch-emb-pred | 3b2d60990967c391aa32ce1e1a9e5cef6229c705 | [
"MIT"
] | 4 | 2019-05-22T00:17:28.000Z | 2020-08-26T02:03:33.000Z | nmtpytorch/layers/pw/embedding.py | toshohirasawa/nmtpytorch-emb-pred | 3b2d60990967c391aa32ce1e1a9e5cef6229c705 | [
"MIT"
] | 3 | 2019-07-14T09:17:11.000Z | 2022-01-13T01:15:10.000Z | nmtpytorch/layers/pw/embedding.py | toshohirasawa/nmtpytorch-emb-pred | 3b2d60990967c391aa32ce1e1a9e5cef6229c705 | [
"MIT"
] | null | null | null | from torch import nn
import torch
| 29.583333 | 65 | 0.650704 |
b6d40c0b4675da86701d6ce4d065ffec39bc4d25 | 8,216 | py | Python | cdApi/discount.py | renqiukai/cd_api | 4f1f641adaf031252b097db03249a2581268cc11 | [
"MIT"
] | null | null | null | cdApi/discount.py | renqiukai/cd_api | 4f1f641adaf031252b097db03249a2581268cc11 | [
"MIT"
] | null | null | null | cdApi/discount.py | renqiukai/cd_api | 4f1f641adaf031252b097db03249a2581268cc11 | [
"MIT"
] | null | null | null | '''
@ :
@ :2020/2/13 4:28:26
@ :
@ :1.0
'''
from .base import base
from .product import product
from .store import store
| 29.985401 | 66 | 0.443403 |
b6d4d24a9d02c1d338914db5f0e973ea12ab7e75 | 1,793 | py | Python | login.py | 2oYC/Monopoly | c039cddadb38326bc4ce1ddd36c3a51887e9fbe2 | [
"MIT"
] | null | null | null | login.py | 2oYC/Monopoly | c039cddadb38326bc4ce1ddd36c3a51887e9fbe2 | [
"MIT"
] | null | null | null | login.py | 2oYC/Monopoly | c039cddadb38326bc4ce1ddd36c3a51887e9fbe2 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
usernameStr = 'user_teamj'
passwordStr = 'aad@123'
| 27.166667 | 89 | 0.662019 |
b6d550ad2ae06f4375b0baa41ab881e26142f3e6 | 589 | py | Python | blanc_basic_pages/migrations/0002_page_hero_image.py | src-r-r/blanc-basic-pages | 2714567e054cafeaaefd533a1786cdef43369f9d | [
"BSD-3-Clause"
] | 1 | 2020-01-11T12:48:38.000Z | 2020-01-11T12:48:38.000Z | blanc_basic_pages/migrations/0002_page_hero_image.py | src-r-r/blanc-basic-pages | 2714567e054cafeaaefd533a1786cdef43369f9d | [
"BSD-3-Clause"
] | 1 | 2017-05-02T21:41:35.000Z | 2017-05-02T21:41:35.000Z | blanc_basic_pages/migrations/0002_page_hero_image.py | src-r-r/blanc-basic-pages | 2714567e054cafeaaefd533a1786cdef43369f9d | [
"BSD-3-Clause"
] | 2 | 2020-01-11T12:49:03.000Z | 2020-10-17T00:34:29.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import blanc_basic_assets.fields
import django.db.models.deletion
| 25.608696 | 148 | 0.657046 |
b6d62cb0d58d04d2fb59cddbe5dfdb15bc52ce89 | 4,538 | py | Python | src/app/beer_garden/metrics.py | ExpressHermes/beer-garden | 2ea0944d7528a8127bc1b79d16d8fdc668f1c8e4 | [
"MIT"
] | null | null | null | src/app/beer_garden/metrics.py | ExpressHermes/beer-garden | 2ea0944d7528a8127bc1b79d16d8fdc668f1c8e4 | [
"MIT"
] | null | null | null | src/app/beer_garden/metrics.py | ExpressHermes/beer-garden | 2ea0944d7528a8127bc1b79d16d8fdc668f1c8e4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" Metrics Service
The metrics service manages:
* Connectivity to the Prometheus Server
* Creating default summary views in Prometheus
* Publishing `Request` metrics
"""
import datetime
import logging
from http.server import ThreadingHTTPServer
from brewtils.models import Request
from brewti... | 28.721519 | 86 | 0.694579 |
b6d923de7666600e544be448396f3fd26e44e836 | 2,368 | py | Python | sendmail/__init__.py | hmif-itb/hmif-send-mail | 628e283d7de06b132fe72af97b76104ea5ff8c88 | [
"MIT"
] | null | null | null | sendmail/__init__.py | hmif-itb/hmif-send-mail | 628e283d7de06b132fe72af97b76104ea5ff8c88 | [
"MIT"
] | null | null | null | sendmail/__init__.py | hmif-itb/hmif-send-mail | 628e283d7de06b132fe72af97b76104ea5ff8c88 | [
"MIT"
] | null | null | null | import argparse
from .helpers import yaml_parser
from .mailer import Mailer
from .utils import csv_to_recipients
from .exceptions import TemplateNotFoundException
from .exceptions import TemplateAndCSVNotMatchException
| 37 | 82 | 0.600084 |
b6d95e9d197de4562be8336500d24a19ca05a815 | 1,540 | py | Python | aquascope/tests/aquascope/webserver/data_access/db/dummy_uploads.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | null | null | null | aquascope/tests/aquascope/webserver/data_access/db/dummy_uploads.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | 3 | 2021-06-08T19:50:36.000Z | 2021-09-08T01:15:33.000Z | aquascope/tests/aquascope/webserver/data_access/db/dummy_uploads.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | 2 | 2019-05-15T13:30:42.000Z | 2020-06-12T02:42:49.000Z | import copy
from bson import ObjectId
from aquascope.webserver.data_access.db.upload import Upload, DEFAULT_UPLOAD_PROJECTION
from aquascope.webserver.data_access.db.util import project_dict
_DUMMY_UPLOADS = [
{
'_id': ObjectId('000000000000000000001000'),
'filename': 'dummy0',
'state': '... | 27.017544 | 103 | 0.587013 |
b6d96dd49a13b9761c39ef2d1c9b9e38d768bfea | 1,855 | py | Python | setup.py | boryana-ilieva/soepy_dev | 98655bb1d7012c5554201a8dcfb728eeeaadf5bf | [
"MIT"
] | null | null | null | setup.py | boryana-ilieva/soepy_dev | 98655bb1d7012c5554201a8dcfb728eeeaadf5bf | [
"MIT"
] | null | null | null | setup.py | boryana-ilieva/soepy_dev | 98655bb1d7012c5554201a8dcfb728eeeaadf5bf | [
"MIT"
] | null | null | null | import os
import sys
from shutil import rmtree
from setuptools import find_packages, setup, Command
# Package meta-data.
NAME = "soepy"
DESCRIPTION = (
"soepy is an open-source Python package for the simulation and estimation of a "
"dynamic model of human capital accumulation tailored to the German Socio-Eco... | 24.733333 | 87 | 0.654987 |
b6ddbe7c2cabd5e9f6c3a2acc63484a224906441 | 702 | py | Python | careapi/models.py | Framinus/transgendercare | 3c5fc53774fb5e808a5f33faa1f7a288d9f33d56 | [
"MIT"
] | null | null | null | careapi/models.py | Framinus/transgendercare | 3c5fc53774fb5e808a5f33faa1f7a288d9f33d56 | [
"MIT"
] | null | null | null | careapi/models.py | Framinus/transgendercare | 3c5fc53774fb5e808a5f33faa1f7a288d9f33d56 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here. | 30.521739 | 52 | 0.716524 |
b6dea75ac1d892435b1297a25c34723e9ed2ad4b | 4,961 | py | Python | Features/OCR.py | JosephLteif/Smart-Assistant | 6f428288da3abf21e83d64e7db63a41eba9c496c | [
"MIT"
] | null | null | null | Features/OCR.py | JosephLteif/Smart-Assistant | 6f428288da3abf21e83d64e7db63a41eba9c496c | [
"MIT"
] | null | null | null | Features/OCR.py | JosephLteif/Smart-Assistant | 6f428288da3abf21e83d64e7db63a41eba9c496c | [
"MIT"
] | null | null | null | # Import required packages
import os
import time
import cv2
import imutils
import numpy as np
import pytesseract
from autocorrect import Speller
from PIL import Image
| 29.011696 | 100 | 0.642209 |
b6dff72d70ac2ad0638bfd3497907c8deb6f393f | 167 | py | Python | CursoEmVideo/Aula07/ex013.py | lucashsouza/Desafios-Python | abb5b11ebdfd4c232b4f0427ef41fd96013f2802 | [
"MIT"
] | null | null | null | CursoEmVideo/Aula07/ex013.py | lucashsouza/Desafios-Python | abb5b11ebdfd4c232b4f0427ef41fd96013f2802 | [
"MIT"
] | null | null | null | CursoEmVideo/Aula07/ex013.py | lucashsouza/Desafios-Python | abb5b11ebdfd4c232b4f0427ef41fd96013f2802 | [
"MIT"
] | null | null | null | sal = float(input('Digite seu salario: R$'))
aum = sal * 0.15
print('Parabens, voc ganhou um aumento de 15%')
print('Seu novo salario de R${}'.format(sal + aum)) | 41.75 | 53 | 0.658683 |
b6e01231f6ddaed17eabf22f2cf909de2da3fd64 | 8,289 | py | Python | tests/test_backend.py | pbaehr/django-cas-ng | 470fc9ab4d6110cf39cc434c8317097546aa4ced | [
"MIT"
] | null | null | null | tests/test_backend.py | pbaehr/django-cas-ng | 470fc9ab4d6110cf39cc434c8317097546aa4ced | [
"MIT"
] | 1 | 2017-07-17T12:31:28.000Z | 2017-07-31T08:59:35.000Z | tests/test_backend.py | WernerRaath/django-cas-ng | 2999648af76e888ea0122c8f727451396cf9f724 | [
"MIT"
] | 1 | 2019-03-06T09:44:08.000Z | 2019-03-06T09:44:08.000Z | from __future__ import absolute_import
import sys
import pytest
from django.test import RequestFactory
from django_cas_ng import backends
def test_backend_authentication_do_not_create_user(monkeypatch, django_user_model, settings):
"""
Test the case where CAS authentication is creating a new user.
"""
... | 31.51711 | 93 | 0.694414 |
b6e017a707606aa130c9e5c3bc33df054392f69e | 4,208 | py | Python | gunnery/core/migrations/0005_auto__add_serverauthentication__add_field_server_method.py | timgates42/gunnery | 733a261cae6243a11883a40e18b14f57cf6e47b2 | [
"Apache-2.0"
] | 314 | 2015-01-01T06:17:34.000Z | 2022-03-10T03:34:02.000Z | gunnery/core/migrations/0005_auto__add_serverauthentication__add_field_server_method.py | timgates42/gunnery | 733a261cae6243a11883a40e18b14f57cf6e47b2 | [
"Apache-2.0"
] | 20 | 2015-04-03T13:34:59.000Z | 2021-06-10T20:37:25.000Z | gunnery/core/migrations/0005_auto__add_serverauthentication__add_field_server_method.py | pkucmus/gunnery | 30fce7f3fd74947621da6e91c1e872f383fc1e71 | [
"Apache-2.0"
] | 57 | 2015-01-07T05:41:34.000Z | 2021-10-31T19:56:50.000Z | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
| 56.106667 | 165 | 0.57557 |
b6e0c18e1b0c4376c070fbdb4d419c07ae32956c | 3,160 | py | Python | t1_extract_data_from_db.py | AuthEceSoftEng/MiningSOAnswerEdits | 3353db1dabf592df5e4c569f6ebb6e1a752a4a24 | [
"Apache-2.0"
] | 1 | 2020-11-06T03:45:56.000Z | 2020-11-06T03:45:56.000Z | t1_extract_data_from_db.py | AuthEceSoftEng/MiningSOAnswerEdits | 3353db1dabf592df5e4c569f6ebb6e1a752a4a24 | [
"Apache-2.0"
] | null | null | null | t1_extract_data_from_db.py | AuthEceSoftEng/MiningSOAnswerEdits | 3353db1dabf592df5e4c569f6ebb6e1a752a4a24 | [
"Apache-2.0"
] | 2 | 2020-11-02T08:16:06.000Z | 2020-12-09T04:01:18.000Z | from pandas import DataFrame
import mysql.connector as mc
from properties import user, password, host, port, database, data_path
cnx = mc.connect(user=user, password=password, host=host, port=port, database=database)
cursor = cnx.cursor()
# Find answer(with code block which has changed at least once) ids
sql1... | 39.5 | 184 | 0.774684 |
b6e1e6d3adbca60b66dd0941ce9aa4bd443a43a2 | 278 | py | Python | qcow2tool/sub_scan.py | nishemon/qcow2tool | 4db1516488e598baae9d2e64ba5c0fbea3a68d7b | [
"MIT"
] | 2 | 2018-02-27T07:00:47.000Z | 2020-05-20T09:51:17.000Z | qcow2tool/sub_scan.py | nishemon/qcow2tool | 4db1516488e598baae9d2e64ba5c0fbea3a68d7b | [
"MIT"
] | null | null | null | qcow2tool/sub_scan.py | nishemon/qcow2tool | 4db1516488e598baae9d2e64ba5c0fbea3a68d7b | [
"MIT"
] | 1 | 2019-11-27T09:56:17.000Z | 2019-11-27T09:56:17.000Z | import argparse
| 23.166667 | 76 | 0.733813 |
b6e1ea932d8c5cacb20dcd319573741e59522077 | 4,395 | py | Python | scrapy/tests/test_contrib_exp_crawlspider_reqgen.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scrapy/tests/test_contrib_exp_crawlspider_reqgen.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scrapy/tests/test_contrib_exp_crawlspider_reqgen.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | from twisted.internet import defer
from twisted.trial import unittest
from scrapy.http import Request
from scrapy.http import HtmlResponse
from scrapy.utils.python import equal_attributes
from scrapy.contrib_exp.crawlspider.reqext import SgmlRequestExtractor
from scrapy.contrib_exp.crawlspider.reqgen import RequestGe... | 35.16 | 81 | 0.598635 |
b6e323612c27f1c648a39e77bf266f1f8b1edb1c | 5,891 | py | Python | scripts/train_agents.py | Silviatulli/minmax_transparency_project | 45f93870d4366c8a1d0d5a43cf270ec92bc7a63b | [
"MIT"
] | 1 | 2021-07-13T02:55:16.000Z | 2021-07-13T02:55:16.000Z | scripts/train_agents.py | Silviatulli/minmax_transparency_project | 45f93870d4366c8a1d0d5a43cf270ec92bc7a63b | [
"MIT"
] | 1 | 2020-07-06T08:44:28.000Z | 2020-07-06T08:44:28.000Z | scripts/train_agents.py | Silviatulli/minmax_transparency_project | 45f93870d4366c8a1d0d5a43cf270ec92bc7a63b | [
"MIT"
] | 1 | 2020-03-15T15:53:40.000Z | 2020-03-15T15:53:40.000Z | import tensorflow as tf
import json
from sklearn.model_selection import KFold
import jsonpickle
import numpy as np
from minmax.game_model import GameState
if __name__ == "__main__":
states, actions, rewards, next_states = load_data("data.json")
indices = np.arange(len(states))
# # Q Learning
# # ... | 33.282486 | 79 | 0.654728 |
b6e3ed186797b0db9105b6d4c93d6db5f25cd9a2 | 447 | py | Python | blockapi/test/api/test_tronscan.py | jendis/blockapi | c886cef954a504fc926c132b30acddc71abe5f12 | [
"MIT"
] | null | null | null | blockapi/test/api/test_tronscan.py | jendis/blockapi | c886cef954a504fc926c132b30acddc71abe5f12 | [
"MIT"
] | null | null | null | blockapi/test/api/test_tronscan.py | jendis/blockapi | c886cef954a504fc926c132b30acddc71abe5f12 | [
"MIT"
] | null | null | null | from pytest import mark
from blockapi.api.tronscan import TronscanAPI
from blockapi.test_init import test_addresses
| 24.833333 | 78 | 0.655481 |
b6e731b3f53ab367c89ef0ea8e1cbffb0d990775 | 429 | py | Python | kornia/feature/loftr/backbone/__init__.py | Ishticode/kornia | 974abb43ec72d12dbd244a2fb247bbbab8498de0 | [
"ECL-2.0",
"Apache-2.0"
] | 4,894 | 2019-10-24T15:51:39.000Z | 2022-03-30T22:58:33.000Z | kornia/feature/loftr/backbone/__init__.py | Ishticode/kornia | 974abb43ec72d12dbd244a2fb247bbbab8498de0 | [
"ECL-2.0",
"Apache-2.0"
] | 912 | 2019-10-24T16:08:42.000Z | 2022-03-31T19:07:09.000Z | kornia/feature/loftr/backbone/__init__.py | Ishticode/kornia | 974abb43ec72d12dbd244a2fb247bbbab8498de0 | [
"ECL-2.0",
"Apache-2.0"
] | 557 | 2019-10-24T16:02:43.000Z | 2022-03-28T07:33:33.000Z | from .resnet_fpn import ResNetFPN_8_2, ResNetFPN_16_4
| 35.75 | 89 | 0.655012 |
b6e9c145098ed95681098c525d8b180ef7ee86d5 | 554 | py | Python | itaizi/list.py | kaheiseki/itaizi | cb52672475ce074b57bd4244f7d5d1f83b541921 | [
"MIT"
] | null | null | null | itaizi/list.py | kaheiseki/itaizi | cb52672475ce074b57bd4244f7d5d1f83b541921 | [
"MIT"
] | 1 | 2022-03-19T08:51:08.000Z | 2022-03-19T08:51:08.000Z | itaizi/list.py | kaheiseki/itaizi | cb52672475ce074b57bd4244f7d5d1f83b541921 | [
"MIT"
] | null | null | null | itaizi_list = {
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":"",
"":""... | 10.45283 | 15 | 0.196751 |
b6e9e820b7afe09d1d292ddb58ac088c11338fa6 | 5,298 | py | Python | bitsoapi/Client.py | oxsoftdev/bitsoapi | daa15c8921f4e49e07f1a958e8837d3548db329d | [
"MIT"
] | null | null | null | bitsoapi/Client.py | oxsoftdev/bitsoapi | daa15c8921f4e49e07f1a958e8837d3548db329d | [
"MIT"
] | null | null | null | bitsoapi/Client.py | oxsoftdev/bitsoapi | daa15c8921f4e49e07f1a958e8837d3548db329d | [
"MIT"
] | null | null | null | from .errors import (ApiError, ApiClientError)
from .mixins import ApiClientMixin
from .models.public import (
AvailableBooks
, Ticker
, OrderBook
, Trade
)
| 34.855263 | 114 | 0.597206 |
b6ea62493bb53238356a18063f57e6e79423b5be | 328 | py | Python | vgrocery/main.py | ViniciusMadureira/ifsp-oop2-exercise001 | c66727bfde82ee96b10b81a84f6b52bbcb62f68b | [
"CC0-1.0"
] | null | null | null | vgrocery/main.py | ViniciusMadureira/ifsp-oop2-exercise001 | c66727bfde82ee96b10b81a84f6b52bbcb62f68b | [
"CC0-1.0"
] | null | null | null | vgrocery/main.py | ViniciusMadureira/ifsp-oop2-exercise001 | c66727bfde82ee96b10b81a84f6b52bbcb62f68b | [
"CC0-1.0"
] | null | null | null | # This Python file uses the following encoding: utf-8
from PyQt5 import QtCore, QtGui, QtWidgets
from view.productsview import ProductsView
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
pv = ProductsView()
#pv.pte_product_value.installEventFilter(self)
sys.exit(app.e... | 27.333333 | 53 | 0.740854 |
b6ec13e7e4ba96b5a332cf789b0ce2b80b637f18 | 880 | py | Python | proxion/util/common.py | WhiteOnBlackCode/proxion | 6c6fda6f3017ad28f917a0d6d18b0b18aabb248b | [
"MIT"
] | 4 | 2018-09-08T18:41:09.000Z | 2019-07-18T03:20:53.000Z | proxion/util/common.py | codeswhite/proxion | 6c6fda6f3017ad28f917a0d6d18b0b18aabb248b | [
"MIT"
] | 9 | 2021-06-26T07:44:08.000Z | 2021-07-10T05:32:22.000Z | proxion/util/common.py | WhiteOnBlackCode/proxion | 6c6fda6f3017ad28f917a0d6d18b0b18aabb248b | [
"MIT"
] | null | null | null | from site import USER_BASE
from ipaddress import AddressValueError, IPv4Address
from pathlib import Path
from random import choice
from termcolor import cprint
from interutils import clear
def is_proxy_format(pip: str) -> bool:
''' Check that the given proxy is a string and has a valid address + port '''
... | 20.465116 | 81 | 0.657955 |
b6ec2598a56faa62709a6fdad2b2f7f1d84fc242 | 3,256 | py | Python | pycryptoki/mechanism/des.py | nondejus/pycryptoki | 5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3 | [
"Apache-2.0"
] | null | null | null | pycryptoki/mechanism/des.py | nondejus/pycryptoki | 5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3 | [
"Apache-2.0"
] | null | null | null | pycryptoki/mechanism/des.py | nondejus/pycryptoki | 5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3 | [
"Apache-2.0"
] | null | null | null | """
DES3-specific mechanism implementations.
"""
import logging
from ctypes import c_void_p, cast, pointer, sizeof, POINTER
from . import Mechanism
from ..attributes import to_byte_array
from ..conversions import from_bytestring
from ..cryptoki import CK_ULONG, CK_BYTE, CK_BYTE_PTR, CK_DES_CTR_PARAMS, \
CK_KEY_DE... | 36.58427 | 77 | 0.677211 |
b6ed12c39143d84b5ad92a9fccf364f6029a375d | 3,850 | py | Python | tw2/core/jsonify.py | atbinf/tw2.core | 51b124d62954a3d3cd9a89c78d48e534297c9c35 | [
"MIT"
] | 6 | 2015-01-20T13:45:24.000Z | 2022-01-04T18:41:55.000Z | tw2/core/jsonify.py | atbinf/tw2.core | 51b124d62954a3d3cd9a89c78d48e534297c9c35 | [
"MIT"
] | 14 | 2015-07-13T20:20:41.000Z | 2021-10-11T23:59:01.000Z | tw2/core/jsonify.py | atbinf/tw2.core | 51b124d62954a3d3cd9a89c78d48e534297c9c35 | [
"MIT"
] | 5 | 2015-06-10T06:44:56.000Z | 2018-05-16T17:36:07.000Z | """
Copyright (c) 2005-2009 Ben Bangert, James Gardner, Philip Jenvey
and contributors.
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 reta... | 42.777778 | 79 | 0.749091 |
b6ee407db83d6ab01037c334c2bf8e1bea1a5bf8 | 685 | py | Python | mail/views.py | lxdiyun/mail_sender | fda1cbb413f8647c2ab5be858ec0aaa32a0fbfac | [
"BSD-3-Clause"
] | null | null | null | mail/views.py | lxdiyun/mail_sender | fda1cbb413f8647c2ab5be858ec0aaa32a0fbfac | [
"BSD-3-Clause"
] | null | null | null | mail/views.py | lxdiyun/mail_sender | fda1cbb413f8647c2ab5be858ec0aaa32a0fbfac | [
"BSD-3-Clause"
] | null | null | null | """ mail app views"""
from django.http import Http404
from django.http import HttpResponse
from mail.models import Receiver, Mail, generate_mail_conent
def mail_demo_view(request, mail_id, receiver_id):
""" final mail demo """
if mail_id:
try:
mail = Mail.objects.get(pk=mail_id)
... | 25.37037 | 65 | 0.649635 |