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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ccfcd639f3f8618b33a9375bd8e2002ae353d8ad | 606 | py | Python | 文件处理/重命名图片扩展名(拖拽文件夹到这里).py | mcmyth/Windows-Script | 94d12e7ba9de55601296c25fe6cd5b46758f0b63 | [
"MIT"
] | null | null | null | 文件处理/重命名图片扩展名(拖拽文件夹到这里).py | mcmyth/Windows-Script | 94d12e7ba9de55601296c25fe6cd5b46758f0b63 | [
"MIT"
] | null | null | null | 文件处理/重命名图片扩展名(拖拽文件夹到这里).py | mcmyth/Windows-Script | 94d12e7ba9de55601296c25fe6cd5b46758f0b63 | [
"MIT"
] | null | null | null | import sys
import os
from PIL import Image
args = list(sys.argv)
if len(args) > 1:
path = args[1] + "\\"
else:
print("")
path = input()
try:
files = os.listdir(path)
except Exception as e:
print(f"[ERROR] {e}")
for i in files:
try:
i = path + i
fp = open(i, 'rb')
obj = ... | 21.642857 | 46 | 0.534653 |
ccfd4e1afa0ccfb956798a95430591389f273a15 | 975 | py | Python | tests/test_random_coordinates.py | mikebenfield/scikit-learn-supp | 4e29d8cde0380ba60427f8208b9cf7f87ed9e6e9 | [
"MIT"
] | null | null | null | tests/test_random_coordinates.py | mikebenfield/scikit-learn-supp | 4e29d8cde0380ba60427f8208b9cf7f87ed9e6e9 | [
"MIT"
] | null | null | null | tests/test_random_coordinates.py | mikebenfield/scikit-learn-supp | 4e29d8cde0380ba60427f8208b9cf7f87ed9e6e9 | [
"MIT"
] | null | null | null | import unittest
import numpy as np
import sklearn_supp.random_coordinates as random_coordinates
| 27.857143 | 73 | 0.620513 |
ccfed4d72b822319d6dc74aedff4e55738604b56 | 160 | py | Python | src/fchecker/exceptions/__init__.py | IncognitoCoding/fchecker | bbc70685174c70b6c396e1c93864028bffd3e22e | [
"MIT"
] | null | null | null | src/fchecker/exceptions/__init__.py | IncognitoCoding/fchecker | bbc70685174c70b6c396e1c93864028bffd3e22e | [
"MIT"
] | null | null | null | src/fchecker/exceptions/__init__.py | IncognitoCoding/fchecker | bbc70685174c70b6c396e1c93864028bffd3e22e | [
"MIT"
] | null | null | null | # Exceptions
from .exceptions import InputFailure, InvalidKeyError
from fexception import FFileNotFoundError
from fexception import FAttributeError, FTypeError
| 32 | 53 | 0.875 |
ccff523cb93eee5f10b99246d2750d49d4b60abb | 261 | py | Python | forloops/07.py | mallimuondu/python-homworks | 352721a8e77d0b3bdb7a8a54197b6a04e1aec3c0 | [
"MIT"
] | null | null | null | forloops/07.py | mallimuondu/python-homworks | 352721a8e77d0b3bdb7a8a54197b6a04e1aec3c0 | [
"MIT"
] | null | null | null | forloops/07.py | mallimuondu/python-homworks | 352721a8e77d0b3bdb7a8a54197b6a04e1aec3c0 | [
"MIT"
] | null | null | null | cars= {
"bugati":1000$,
"ferari":9000$
}
b = int(input("whow m any are you printing: "))
c = list()
for b in range(d):
f = cars[input ("write what you want to select: ")]
g = e.append(f)
print("total amount is " + str(total)) | 21.75 | 56 | 0.54023 |
6900440cc8dad4d9fa897b802a09c0af10f6873a | 4,833 | py | Python | Alignment_Model/sequence_model.py | TheresaSchmidt/ara | eb1bbf2f124db8dea143965e419e17cfb93b17f3 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-12-07T05:53:04.000Z | 2021-12-07T05:53:04.000Z | Alignment_Model/sequence_model.py | TheresaSchmidt/ara | eb1bbf2f124db8dea143965e419e17cfb93b17f3 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2022-02-08T16:50:46.000Z | 2022-02-09T07:59:03.000Z | Alignment_Model/sequence_model.py | TheresaSchmidt/ara | eb1bbf2f124db8dea143965e419e17cfb93b17f3 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2022-02-15T21:29:21.000Z | 2022-02-15T21:29:21.000Z | # Author : Debanjali Biswas
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 34.276596 | 90 | 0.520174 |
69027bc1a4171eef76f68bfb9f466488ae5d2d44 | 2,761 | py | Python | sra_ftp_urls.py | yaris19/SRA_toolkit | 7ea89fb4b8caf09b7a510cc5770d2ca2c44def63 | [
"MIT"
] | null | null | null | sra_ftp_urls.py | yaris19/SRA_toolkit | 7ea89fb4b8caf09b7a510cc5770d2ca2c44def63 | [
"MIT"
] | null | null | null | sra_ftp_urls.py | yaris19/SRA_toolkit | 7ea89fb4b8caf09b7a510cc5770d2ca2c44def63 | [
"MIT"
] | null | null | null | import argparse
import sys
from os import chmod
import requests
parser = argparse.ArgumentParser(
description="Download fastQ files from SRA accessions")
parser.add_argument("-i", "--id", default="", dest="sra_id", type=str,
help="accession id of a SRA (e.g. SRR1778454)")
parser.add_argument("... | 30.340659 | 130 | 0.612097 |
690767b17800c8af21ded3fb3b1e9d08db64cbf4 | 3,255 | py | Python | flask_transalchemy/core.py | gerelorant/Flask-TransAlchemy | 09c4b5da57020697084a35679befdd4a478552d3 | [
"MIT"
] | 2 | 2020-06-08T05:45:14.000Z | 2021-09-21T15:12:58.000Z | flask_transalchemy/core.py | gerelorant/Flask-TransAlchemy | 09c4b5da57020697084a35679befdd4a478552d3 | [
"MIT"
] | null | null | null | flask_transalchemy/core.py | gerelorant/Flask-TransAlchemy | 09c4b5da57020697084a35679befdd4a478552d3 | [
"MIT"
] | 1 | 2021-09-21T16:44:39.000Z | 2021-09-21T16:44:39.000Z | from flask import Flask, current_app, request
from flask_babelex import get_locale
from flask_sqlalchemy import SQLAlchemy
from flask_transalchemy.model import TranslationMixin
def set_label(label: str, value: str, language: str = None):
"""Shortcut for `BabelAlchemy.set_label()`.
:param label: Label name ... | 29.590909 | 76 | 0.627035 |
6907e9befd977555968d5f207b209c5455006544 | 1,035 | py | Python | crowdastro/experiment/experiment_pool_face.py | chengsoonong/crowdastro | ce14432c36de0574b73d813304365b74446a61f8 | [
"MIT"
] | 13 | 2015-11-07T15:24:44.000Z | 2020-04-20T05:29:58.000Z | crowdastro/experiment/experiment_pool_face.py | chengsoonong/crowdastro | ce14432c36de0574b73d813304365b74446a61f8 | [
"MIT"
] | 234 | 2016-02-21T23:53:16.000Z | 2019-06-27T00:26:08.000Z | crowdastro/experiment/experiment_pool_face.py | chengsoonong/crowdastro | ce14432c36de0574b73d813304365b74446a61f8 | [
"MIT"
] | 3 | 2015-11-07T00:20:09.000Z | 2018-10-03T13:37:15.000Z | """Pools a face image.
Matthew Alger
The Australian National University
2016
"""
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import numpy
import scipy.misc
import skimage.measure
face = scipy.misc.face(gray=True)
max_pooled = skimage.measure.block_reduce(face, (20, 20), numpy.max)
min_pooled =... | 22.021277 | 70 | 0.692754 |
6908fed7cb5fca863f261c5e91778dde7cb55613 | 2,419 | py | Python | src/nig/utilities/generic.py | eaplatanios/nig | c806e534ae3b79ddcdf4093383d73ecf59947044 | [
"Apache-2.0"
] | 3 | 2018-05-22T07:55:42.000Z | 2019-02-26T03:08:03.000Z | src/nig/utilities/generic.py | eaplatanios/nig | c806e534ae3b79ddcdf4093383d73ecf59947044 | [
"Apache-2.0"
] | null | null | null | src/nig/utilities/generic.py | eaplatanios/nig | c806e534ae3b79ddcdf4093383d73ecf59947044 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016, The NIG Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 30.620253 | 79 | 0.650269 |
69092138a85c6ad30b3b2e4d9c0353862965bd46 | 4,250 | py | Python | control/teleop/joystick.py | espetro/anafi_tools | a40407c2d8818f46eb66e36aad9664f94339db23 | [
"BSD-3-Clause"
] | 2 | 2019-11-14T16:13:59.000Z | 2020-02-28T14:06:52.000Z | control/teleop/joystick.py | espetro/anafi_tools | a40407c2d8818f46eb66e36aad9664f94339db23 | [
"BSD-3-Clause"
] | null | null | null | control/teleop/joystick.py | espetro/anafi_tools | a40407c2d8818f46eb66e36aad9664f94339db23 | [
"BSD-3-Clause"
] | 2 | 2020-02-28T08:49:04.000Z | 2020-06-27T19:19:11.000Z |
from __future__ import print_function, absolute_import
from random import random
from time import sleep
import threading
import pygame
import sys
try:
from olympe.messages.ardrone3.GPSSettingsState import GPSFixStateChanged
from olympe.messages.ardrone3.Piloting import TakeOff, Landing
from olympe.messag... | 29.109589 | 87 | 0.572706 |
690a816d6de7d03426589a290b0f581600bd0bd5 | 10,335 | py | Python | artellapipe/tools/playblastmanager/plugins/tracking.py | ArtellaPipe/artellapipe-tools-playblastmanager | 05f1647b6b3b367c9ba9d5e8978cf32b5823f819 | [
"MIT"
] | 2 | 2019-11-26T15:59:16.000Z | 2020-04-17T23:42:35.000Z | artellapipe/tools/playblastmanager/plugins/tracking.py | ArtellaPipe/artellapipe-tools-playblastmanager | 05f1647b6b3b367c9ba9d5e8978cf32b5823f819 | [
"MIT"
] | 2 | 2020-03-08T20:08:18.000Z | 2020-03-08T20:08:26.000Z | artellapipe/tools/playblastmanager/plugins/tracking.py | ArtellaPipe/artellapipe-tools-playblastmanager | 05f1647b6b3b367c9ba9d5e8978cf32b5823f819 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that contains implementation for Tracking Plugin
"""
from __future__ import print_function, division, absolute_import
__author__ = "Tomas Poveda"
__license__ = "MIT"
__maintainer__ = "Tomas Poveda"
__email__ = "tpovedatd@gmail.com"
import logging
import trace... | 36.910714 | 105 | 0.675181 |
690a8db5ce25b3e8ec76d190c2ad9e62f5948dc6 | 6,054 | py | Python | char-gen.py | mshinners/rpg-char-gen | 5b166bcfa3f23c6f17f70e638d97a07afc248ebb | [
"MIT"
] | null | null | null | char-gen.py | mshinners/rpg-char-gen | 5b166bcfa3f23c6f17f70e638d97a07afc248ebb | [
"MIT"
] | null | null | null | char-gen.py | mshinners/rpg-char-gen | 5b166bcfa3f23c6f17f70e638d97a07afc248ebb | [
"MIT"
] | 1 | 2018-03-08T08:00:48.000Z | 2018-03-08T08:00:48.000Z | """Create a Character Generator for Fallout 4."""
# print("You awake from 200 years in deep freeze. The wasteland awaits you.")
# name = input("What's your name? ")
# gender = input("What's your gender? ")
# points = 21
# attributes = ("Strength", "Perception", "Endurance", "Charisma", "Intelligence", "Agility", "Luck... | 40.092715 | 115 | 0.493723 |
690ad0e7658ae07f293da3ae6c500805b40500c0 | 1,040 | py | Python | Data Preprocessing/Manual Method.py | roupenminassian/UTS-DSI-x-Disability-Research-Network | e08378594f09560a477521f22f62a47622e07cdd | [
"MIT"
] | null | null | null | Data Preprocessing/Manual Method.py | roupenminassian/UTS-DSI-x-Disability-Research-Network | e08378594f09560a477521f22f62a47622e07cdd | [
"MIT"
] | null | null | null | Data Preprocessing/Manual Method.py | roupenminassian/UTS-DSI-x-Disability-Research-Network | e08378594f09560a477521f22f62a47622e07cdd | [
"MIT"
] | null | null | null | # These lines of code allow for manually chunking sentences or paragraphs of extracted information to a list
# The string that is defined for 'A' will be manually updated each time the previous string has been added to GovList
# This means that we are incrementaly adding sentences and paragraphs to this list
# This par... | 47.272727 | 138 | 0.761538 |
690af1af9e96a1739ede9f41b27a252eb8b1cf2b | 16,182 | py | Python | scripts/downloader.py | docupajak/pyproc | 51933d7d31eb7db78d5c7b2126945253034ce084 | [
"MIT"
] | 1 | 2021-12-05T12:38:55.000Z | 2021-12-05T12:38:55.000Z | scripts/downloader.py | docupajak/pyproc | 51933d7d31eb7db78d5c7b2126945253034ce084 | [
"MIT"
] | null | null | null | scripts/downloader.py | docupajak/pyproc | 51933d7d31eb7db78d5c7b2126945253034ce084 | [
"MIT"
] | null | null | null | import argparse
import csv
import glob
import json
import os
import re
import time
from math import ceil
from shutil import copyfile, rmtree
from urllib.parse import urlparse
import requests
from pyproc import Lpse, __version__
from pyproc.helpers import DetilDownloader
from urllib3 import disable_warnings
from urll... | 33.433884 | 119 | 0.592325 |
690d56f33cd67d1d887cc273af94e358490af8f9 | 3,840 | py | Python | src/util_labse.py | Opdoop/Parallel-Text-Extraction | dd2f49099c922899b9612884c58d67a1c1448fa4 | [
"MIT"
] | 3 | 2021-01-04T06:18:03.000Z | 2021-10-13T10:48:14.000Z | src/util_labse.py | Opdoop/Parallel-Text-Extraction | dd2f49099c922899b9612884c58d67a1c1448fa4 | [
"MIT"
] | null | null | null | src/util_labse.py | Opdoop/Parallel-Text-Extraction | dd2f49099c922899b9612884c58d67a1c1448fa4 | [
"MIT"
] | null | null | null | import json
import bert
import h5py
import numpy as np
import tensorflow as tf
import tensorflow_hub as hub
from tqdm import tqdm
from config import MODEL_PATH
MODEL_URL = MODEL_PATH # set the local catch path of model
max_seq_length = 64 # set max lenght
def get_model(model_url, max_seq_length):
... | 32.542373 | 88 | 0.649479 |
690d9ad6697db037794fbbeebbeeda24a1b1544f | 11,804 | py | Python | tkcrud/views/client_view.py | williamcanin/tkcrud | 2b2228687427dfddf2bb5bbe7766c8b1a39648f9 | [
"MIT"
] | null | null | null | tkcrud/views/client_view.py | williamcanin/tkcrud | 2b2228687427dfddf2bb5bbe7766c8b1a39648f9 | [
"MIT"
] | null | null | null | tkcrud/views/client_view.py | williamcanin/tkcrud | 2b2228687427dfddf2bb5bbe7766c8b1a39648f9 | [
"MIT"
] | null | null | null | import tkinter as tk
from tkinter import ttk, messagebox, font, StringVar
from tkcalendar import DateEntry
from tkcrud.controller.client_controller import ClientController,\
saving_updating, get_clients, window_popup
| 47.789474 | 87 | 0.549475 |
690d9cdcee8de811cf59861c1d7bf10ed5cbd4a3 | 3,111 | py | Python | movescount/scraper.py | Kub-AT/suunto-movescount-exporter | 9777caf8bf0c41f84b7cf80ad4771bd53eee5d5f | [
"MIT"
] | 1 | 2017-12-09T19:58:16.000Z | 2017-12-09T19:58:16.000Z | movescount/scraper.py | Kub-AT/suunto-movescount-exporter | 9777caf8bf0c41f84b7cf80ad4771bd53eee5d5f | [
"MIT"
] | null | null | null | movescount/scraper.py | Kub-AT/suunto-movescount-exporter | 9777caf8bf0c41f84b7cf80ad4771bd53eee5d5f | [
"MIT"
] | null | null | null | import datetime
import json
import os
import arrow
import requests
from .models import MoveActivity
| 39.379747 | 120 | 0.619736 |
690ea4cd5edc260f122138b6a4cd4866ba01bf36 | 5,130 | py | Python | web/chains-202105/py/application.py | acorg/acmacs-whocc | af508bd4651ffb565cd4cf771200540918b1b2bd | [
"MIT"
] | null | null | null | web/chains-202105/py/application.py | acorg/acmacs-whocc | af508bd4651ffb565cd4cf771200540918b1b2bd | [
"MIT"
] | null | null | null | web/chains-202105/py/application.py | acorg/acmacs-whocc | af508bd4651ffb565cd4cf771200540918b1b2bd | [
"MIT"
] | null | null | null | import sys, os, re, json, pprint, traceback
from pathlib import Path
from aiohttp import web
routes = web.RouteTableDef()
# ======================================================================
# https://docs.aiohttp.org/en/stable/web_advanced.html
# ================================================================... | 36.642857 | 142 | 0.536452 |
690eaa3f5020eedf360b518850adeb600d167951 | 366 | py | Python | insta_core/_today.py | brokeyourbike/insta_fuck | db1a41f7a08e7e1db29b15bc76caecb90000c4eb | [
"MIT"
] | 2 | 2021-09-02T05:48:39.000Z | 2021-11-01T17:33:05.000Z | insta_core/_today.py | brokeyourbike/insta-fuck | db1a41f7a08e7e1db29b15bc76caecb90000c4eb | [
"MIT"
] | null | null | null | insta_core/_today.py | brokeyourbike/insta-fuck | db1a41f7a08e7e1db29b15bc76caecb90000c4eb | [
"MIT"
] | null | null | null | """Module used for showing today's ulikes users"""
from ._time import sleep
def open_lucky_one(browser, username):
"""Open user in new tab"""
# Open new tab
browser.execute_script("window.open('','_blank');")
windows = browser.window_handles
sleep(1)
browser.switch_to_window(windows[-1])
# Open user
browser... | 22.875 | 53 | 0.718579 |
690f41b1ee6bc246782b5ae649ded26264526d14 | 297 | py | Python | pipy/tests/test_utils.py | rhsmits91/pipy | b38100203711fad715078a00c6074ea63af06893 | [
"MIT"
] | null | null | null | pipy/tests/test_utils.py | rhsmits91/pipy | b38100203711fad715078a00c6074ea63af06893 | [
"MIT"
] | null | null | null | pipy/tests/test_utils.py | rhsmits91/pipy | b38100203711fad715078a00c6074ea63af06893 | [
"MIT"
] | null | null | null | import pandas as pd
from pipy.pipeline.utils import combine_series
| 27 | 77 | 0.636364 |
690fda5889590cd7261b2ffb9ea01afc1838fa09 | 25 | py | Python | prinia/__init__.py | zamaudio/prinia | 27cc34eedd8cf1fa8dc82b14ae676256af03407f | [
"MIT"
] | 1 | 2019-12-13T08:00:31.000Z | 2019-12-13T08:00:31.000Z | prinia/__init__.py | zamaudio/prinia | 27cc34eedd8cf1fa8dc82b14ae676256af03407f | [
"MIT"
] | 2 | 2018-09-27T07:39:36.000Z | 2018-12-21T14:02:21.000Z | prinia/__init__.py | zamaudio/prinia | 27cc34eedd8cf1fa8dc82b14ae676256af03407f | [
"MIT"
] | 1 | 2018-09-20T02:03:58.000Z | 2018-09-20T02:03:58.000Z | __author__ = 'ahbbollen'
| 12.5 | 24 | 0.76 |
6911491ff7375c9355b7d777b4b727203b9cacf8 | 2,183 | py | Python | Item33.py | aambrioso1/Effective_Python | fcd89c27473a871596e54ebe18e1f56318029037 | [
"MIT"
] | null | null | null | Item33.py | aambrioso1/Effective_Python | fcd89c27473a871596e54ebe18e1f56318029037 | [
"MIT"
] | null | null | null | Item33.py | aambrioso1/Effective_Python | fcd89c27473a871596e54ebe18e1f56318029037 | [
"MIT"
] | null | null | null | """
Item 33: Compose Multiple Generators with yield from
This example compares using for/yield (manual nesting) and yield/from (composed nesting) for nesting generators.
The yield/from expression improves readability and performance.
"""
# Example 1: We create a couple of generators
# Example 2: We nest the gener... | 25.988095 | 112 | 0.692167 |
69128f6bc458ac39e3300728584ec2ef1746d8e2 | 85 | py | Python | aiodine/datatypes.py | Olegt0rr/aiodine | 89f6207e780ec2c08d62e9ec20372658af7ccef9 | [
"MIT"
] | 61 | 2019-02-27T21:07:54.000Z | 2021-09-23T01:38:26.000Z | aiodine/datatypes.py | Olegt0rr/aiodine | 89f6207e780ec2c08d62e9ec20372658af7ccef9 | [
"MIT"
] | 30 | 2019-02-28T22:27:42.000Z | 2021-09-07T04:49:47.000Z | aiodine/datatypes.py | Olegt0rr/aiodine | 89f6207e780ec2c08d62e9ec20372658af7ccef9 | [
"MIT"
] | 2 | 2019-10-14T15:51:59.000Z | 2021-09-07T04:28:22.000Z | from typing import Callable, Awaitable
CoroutineFunction = Callable[..., Awaitable]
| 21.25 | 44 | 0.788235 |
69132c1c0fd3d48de150e059b11cea5dcabfe168 | 16,656 | py | Python | tloc.py | kohyuk91/TLOC | b45ed6c4c8a8134af4b5ed8dbed15201b8cd744d | [
"BSD-3-Clause"
] | 10 | 2020-04-30T21:48:07.000Z | 2022-03-07T04:02:50.000Z | tloc.py | kohyuk91/TLOC | b45ed6c4c8a8134af4b5ed8dbed15201b8cd744d | [
"BSD-3-Clause"
] | 4 | 2020-03-28T04:49:04.000Z | 2021-01-28T06:30:18.000Z | tloc.py | kohyuk91/TLOC | b45ed6c4c8a8134af4b5ed8dbed15201b8cd744d | [
"BSD-3-Clause"
] | 1 | 2020-04-08T03:33:14.000Z | 2020-04-08T03:33:14.000Z | # BSD 3-Clause License
#
# Copyright (c) 2020, Hyuk Ko
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list ... | 39.75179 | 206 | 0.673511 |
6914777d96f3475ceaaa0d06318f8271e53d002c | 1,043 | py | Python | time_attack/cli.py | confuzeus/time-attack | d76e4eeb0d7561302d789b701665477f01ca4a68 | [
"MIT"
] | null | null | null | time_attack/cli.py | confuzeus/time-attack | d76e4eeb0d7561302d789b701665477f01ca4a68 | [
"MIT"
] | null | null | null | time_attack/cli.py | confuzeus/time-attack | d76e4eeb0d7561302d789b701665477f01ca4a68 | [
"MIT"
] | null | null | null | """Console script for time_attack."""
import argparse
import sys
from pathlib import Path
from time_attack.conf import get_config, init_config
def main():
"""Console script for time_attack."""
parser = argparse.ArgumentParser(description="Track your time.")
parser.add_argument(
"action",
... | 23.704545 | 77 | 0.618408 |
6914f2ead34468c6791c49ca96f80c4611d95f83 | 1,003 | py | Python | {{cookiecutter.project_slug}}/app/{{cookiecutter.app_slug_snakecase}}/tests/test_{{cookiecutter.app_slug_snakecase}}_services.py | jonatasoli/fastapi-template-cookiecutter | 4a982e9a46dc6b7d1dafda8ca170429ea32b1bf4 | [
"MIT"
] | 7 | 2021-03-12T18:17:42.000Z | 2021-09-14T02:13:32.000Z | {{cookiecutter.project_slug}}/app/{{cookiecutter.app_slug_snakecase}}/tests/test_{{cookiecutter.app_slug_snakecase}}_services.py | jonatasoli/fastapi-template-cookiecutter | 4a982e9a46dc6b7d1dafda8ca170429ea32b1bf4 | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/app/{{cookiecutter.app_slug_snakecase}}/tests/test_{{cookiecutter.app_slug_snakecase}}_services.py | jonatasoli/fastapi-template-cookiecutter | 4a982e9a46dc6b7d1dafda8ca170429ea32b1bf4 | [
"MIT"
] | 3 | 2021-02-12T15:07:48.000Z | 2021-09-14T02:13:34.000Z | import pytest
from unittest import mock
from {{cookiecutter.app_slug_snakecase}}.services.services_{{cookiecutter.app_slug_snakecase}} import add_{{cookiecutter.model_slug_snakecase}}
from {{cookiecutter.app_slug_snakecase}}.schemas.schemas_{{cookiecutter.app_slug_snakecase}} import {{cookiecutter.model_name}}CreateRes... | 62.6875 | 213 | 0.808574 |
691515aeac2eb62c87edd0da9e286ffb0e1f4af2 | 17,467 | py | Python | src/ashpy/metrics/gan.py | zurutech/ashpy | 16d53100c943abf4b051b27cfd025df0a6e7c8c9 | [
"Apache-2.0"
] | 89 | 2019-07-05T11:57:24.000Z | 2021-11-22T04:25:11.000Z | src/ashpy/metrics/gan.py | zurutech/ashpy | 16d53100c943abf4b051b27cfd025df0a6e7c8c9 | [
"Apache-2.0"
] | 58 | 2019-07-09T09:59:19.000Z | 2021-05-21T15:29:53.000Z | src/ashpy/metrics/gan.py | zurutech/ashpy | 16d53100c943abf4b051b27cfd025df0a6e7c8c9 | [
"Apache-2.0"
] | 11 | 2019-07-08T08:39:06.000Z | 2021-08-23T12:15:16.000Z | # Copyright 2019 Zuru Tech HK Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 34.864271 | 97 | 0.595695 |
6915b8ff7cef6d50399ffe88a65761306ce6129d | 6,310 | py | Python | cephlm/tests/cephmetrics/ceph/test_connectivity_status.py | ArdanaCLM/cephlm | 74afbcd078c0c903d9b8102d27c669decb124a38 | [
"Apache-2.0"
] | null | null | null | cephlm/tests/cephmetrics/ceph/test_connectivity_status.py | ArdanaCLM/cephlm | 74afbcd078c0c903d9b8102d27c669decb124a38 | [
"Apache-2.0"
] | null | null | null | cephlm/tests/cephmetrics/ceph/test_connectivity_status.py | ArdanaCLM/cephlm | 74afbcd078c0c903d9b8102d27c669decb124a38 | [
"Apache-2.0"
] | null | null | null | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | 41.788079 | 79 | 0.640571 |
6916bad4afd02ac37b73f52e002bfae3ef4c834e | 1,739 | py | Python | liebraryrest/database.py | gekorob/liebraryrest | de0210464584ed30f792899a8c3a3ef6c5661145 | [
"BSD-3-Clause"
] | 6 | 2016-05-23T12:33:17.000Z | 2019-01-28T10:41:12.000Z | liebraryrest/database.py | gekorob/liebraryrest | de0210464584ed30f792899a8c3a3ef6c5661145 | [
"BSD-3-Clause"
] | null | null | null | liebraryrest/database.py | gekorob/liebraryrest | de0210464584ed30f792899a8c3a3ef6c5661145 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Database module, including the SQLAlchemy database object and DB-related utilities."""
import json
from sqlalchemy.inspection import inspect
from sqlalchemy.orm import relationship
from .extensions import db
# Alias common SQLAlchemy names
Column = db.Column
relationship = relationship
| 28.508197 | 97 | 0.654974 |
69170f355d442cc7becc20e80a9796b70651f43b | 663 | py | Python | views/terminal_view.py | rbenamotz/LEMPA | eab84e2494aac0d1461582c7f83405cb4ab7c16e | [
"MIT"
] | 83 | 2020-08-11T21:03:21.000Z | 2022-02-27T17:52:31.000Z | views/terminal_view.py | rbenamotz/LEMPA | eab84e2494aac0d1461582c7f83405cb4ab7c16e | [
"MIT"
] | 7 | 2020-09-06T17:10:04.000Z | 2021-05-25T11:53:18.000Z | views/terminal_view.py | rbenamotz/LEMPA | eab84e2494aac0d1461582c7f83405cb4ab7c16e | [
"MIT"
] | 6 | 2020-09-05T23:42:01.000Z | 2021-06-21T04:09:03.000Z | from views import View
HEADER_LEN = 70
| 22.862069 | 87 | 0.544495 |
691840c511868a9f7ab1472f79627ec01c1908d4 | 2,910 | py | Python | test_image_processing.py | juanlucruz/SportEventLocator | 1ac8236f9fdd60917b9a7ee6bb6ca1fa5f6fa71e | [
"Apache-2.0"
] | null | null | null | test_image_processing.py | juanlucruz/SportEventLocator | 1ac8236f9fdd60917b9a7ee6bb6ca1fa5f6fa71e | [
"Apache-2.0"
] | null | null | null | test_image_processing.py | juanlucruz/SportEventLocator | 1ac8236f9fdd60917b9a7ee6bb6ca1fa5f6fa71e | [
"Apache-2.0"
] | null | null | null | from owslib.wms import WebMapService
from owslib import crs
from PIL import Image, ImageEnhance, ImageFilter
import cv2
import numpy as np
from pyspark import SparkContext
from pyproj import Proj
c = crs.Crs('EPSG:3857')
wms = WebMapService('http://www.ign.es/wms-inspire/pnoa-ma', version='1.3.0')
box = 1000 # m?
x=... | 24.871795 | 93 | 0.665292 |
691af6ca03a10c785b9ddc0d13682c88b2dbb807 | 33,267 | py | Python | src/guestconfig/azext_guestconfig/vendored_sdks/guestconfig/models/_models_py3.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/guestconfig/azext_guestconfig/vendored_sdks/guestconfig/models/_models_py3.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/guestconfig/azext_guestconfig/vendored_sdks/guestconfig/models/_models_py3.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 39.55648 | 160 | 0.670364 |
691b98b1baa85b20efffcbae2c80656eb409f0df | 1,127 | py | Python | expression-atlas-wf/scripts/FBgn_to_muller.py | jfear/larval_gonad | 624a71741864b74e0372f89bdcca578e5cca3722 | [
"MIT"
] | 1 | 2019-09-13T13:24:18.000Z | 2019-09-13T13:24:18.000Z | expression-atlas-wf/scripts/FBgn_to_muller.py | jfear/larval_gonad | 624a71741864b74e0372f89bdcca578e5cca3722 | [
"MIT"
] | 65 | 2019-07-24T16:23:08.000Z | 2020-03-06T22:18:47.000Z | expression-atlas-wf/scripts/FBgn_to_muller.py | jfear/larval_gonad | 624a71741864b74e0372f89bdcca578e5cca3722 | [
"MIT"
] | 1 | 2021-06-02T19:09:35.000Z | 2021-06-02T19:09:35.000Z | """Create a temporary mapping of dmel FBgn to Muller.
This script converts the YOgn to Muller element and D. melanogaster FBGn to
Muller element. It uses the YOgn to D. mel FBgn mapping to update the YOgn
to Muller element mapping.
"""
import os
import pandas as pd
from larval_gonad.io import pickle_load, pickle_dum... | 28.897436 | 87 | 0.659272 |
691bb5f4b5bc373c8af203c716aec364cf533971 | 1,438 | py | Python | coin_conversion.py | anthonywww/intro-to-python | d8f2a9736eeef9dbf113c7f337c9d5aaffb7a702 | [
"MIT"
] | null | null | null | coin_conversion.py | anthonywww/intro-to-python | d8f2a9736eeef9dbf113c7f337c9d5aaffb7a702 | [
"MIT"
] | null | null | null | coin_conversion.py | anthonywww/intro-to-python | d8f2a9736eeef9dbf113c7f337c9d5aaffb7a702 | [
"MIT"
] | 1 | 2020-08-04T14:38:11.000Z | 2020-08-04T14:38:11.000Z | # -*- coding: utf-8 -*-
# Program Name: coin_conversion.py
# Anthony Waldsmith
# 06/15/16
# Python Version 3.4
# Description: Convert amount into coins
# Optional import for versions of python <= 2
from __future__ import print_function
# Do this until valid input is given
while True:
try:
# This takes in a integ... | 25.678571 | 78 | 0.678025 |
691c81e50910a7f31edd6f286163e73adce3b9d8 | 1,512 | py | Python | tree_plotter/__init__.py | vivekfe/FX-Sims | 182a0b49617730317aa844fdc05e0dafb208dd54 | [
"MIT"
] | null | null | null | tree_plotter/__init__.py | vivekfe/FX-Sims | 182a0b49617730317aa844fdc05e0dafb208dd54 | [
"MIT"
] | null | null | null | tree_plotter/__init__.py | vivekfe/FX-Sims | 182a0b49617730317aa844fdc05e0dafb208dd54 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Jun 12 17:12:03 2021
@author: ztche
"""
import matplotlib.pyplot as plt
import pandas as pd
def plot_stock_lattice(tree, style='ko-'):
"""
plots stock lattice on matplotlib from chronological binary tree
"""
vals1 = {}
for i, v in enumerate(tree):
... | 26.068966 | 73 | 0.56746 |
691c9e11cd9f29d803a182f7646e3a22c0791277 | 2,635 | py | Python | bioimageit_gui/core/web.py | bioimageit/bioimageit_gui | 3073cd33f0a3160b4aab8e3634b8e999bbe0f6bf | [
"BSD-4-Clause"
] | null | null | null | bioimageit_gui/core/web.py | bioimageit/bioimageit_gui | 3073cd33f0a3160b4aab8e3634b8e999bbe0f6bf | [
"BSD-4-Clause"
] | 1 | 2021-10-30T14:38:14.000Z | 2021-10-30T14:38:14.000Z | bioimageit_gui/core/web.py | bioimageit/bioimageit_gui | 3073cd33f0a3160b4aab8e3634b8e999bbe0f6bf | [
"BSD-4-Clause"
] | null | null | null | """Set of basic widgets for BioImageIT
Classes
-------
BiWebBrowser
"""
from qtpy.QtWebEngineWidgets import QWebEngineView
from qtpy.QtWidgets import (QWidget, QPushButton,
QHBoxLayout, QVBoxLayout)
| 29.606742 | 58 | 0.65389 |
691e2c9a525b58a08be0c332c7a1b2358826383f | 77 | py | Python | refinenet/__init__.py | Best-of-ACRV/pytorch-refinenet | 4365ff6734d8dc397e3a072dd47cb2f4091d065a | [
"BSD-3-Clause"
] | 3 | 2021-06-09T04:33:00.000Z | 2022-03-30T07:28:38.000Z | refinenet/__init__.py | Best-of-ACRV/pytorch-refinenet | 4365ff6734d8dc397e3a072dd47cb2f4091d065a | [
"BSD-3-Clause"
] | 1 | 2021-06-11T09:52:51.000Z | 2021-06-11T09:52:51.000Z | refinenet/__init__.py | Best-of-ACRV/pytorch-refinenet | 4365ff6734d8dc397e3a072dd47cb2f4091d065a | [
"BSD-3-Clause"
] | 2 | 2021-07-30T03:08:17.000Z | 2022-03-30T07:28:40.000Z | from .refinenet import RefineNet
from .__main__ import main as run_from_args
| 25.666667 | 43 | 0.844156 |
691e359bcb9bd3066852922dd6dc0c8be344038f | 699 | py | Python | hello_world_cpp/launch/server.launch.py | fjnkt98/hello_world | 095301082410a73ebee4a38970d04a2b9fcccae4 | [
"BSD-2-Clause"
] | null | null | null | hello_world_cpp/launch/server.launch.py | fjnkt98/hello_world | 095301082410a73ebee4a38970d04a2b9fcccae4 | [
"BSD-2-Clause"
] | null | null | null | hello_world_cpp/launch/server.launch.py | fjnkt98/hello_world | 095301082410a73ebee4a38970d04a2b9fcccae4 | [
"BSD-2-Clause"
] | null | null | null | import launch
import launch_ros
| 33.285714 | 71 | 0.595136 |
69211ba2113bac15f1fed9f83d65445f94323e53 | 2,198 | py | Python | todobackend/todobackend/settings.py | Grox-Ni/todoapp | 7a68c5a7c6384085eeba4b3fc29ae44e20c098a6 | [
"MIT"
] | null | null | null | todobackend/todobackend/settings.py | Grox-Ni/todoapp | 7a68c5a7c6384085eeba4b3fc29ae44e20c098a6 | [
"MIT"
] | null | null | null | todobackend/todobackend/settings.py | Grox-Ni/todoapp | 7a68c5a7c6384085eeba4b3fc29ae44e20c098a6 | [
"MIT"
] | null | null | null | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = '_6872wmne5+gnr6x9f&$js=)c12f+kn*#p35o-ou3^qy5h3^ab'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = (
'django.contrib.admi... | 23.634409 | 70 | 0.67061 |
69214dcb7f5e820da97009b3641eb48250fa4e77 | 3,652 | py | Python | ERAI/pickle_stream_dict.py | coecms/CollectionsScripts | 7c60edf0f91ddd3b045afa121bc5e3a7877297e6 | [
"Apache-2.0"
] | 5 | 2019-01-02T19:19:37.000Z | 2022-02-17T01:57:32.000Z | ERAI/pickle_stream_dict.py | coecms/CollectionsScripts | 7c60edf0f91ddd3b045afa121bc5e3a7877297e6 | [
"Apache-2.0"
] | null | null | null | ERAI/pickle_stream_dict.py | coecms/CollectionsScripts | 7c60edf0f91ddd3b045afa121bc5e3a7877297e6 | [
"Apache-2.0"
] | 2 | 2017-05-20T09:48:06.000Z | 2018-12-04T13:57:57.000Z | # This script produced a python dictionary stream_dict that assign ifor each ERA Interim stream
# the time, step, parameters and levels lists to pass as arguments to MARS requests. The dictionary is stored
# in a pickle file ecmwf_stream_pickle used by the ERAI python download script: erai_download.py
# author: Paola P... | 68.90566 | 655 | 0.6569 |
6921e3253150649fb73a59b6318988b90dbbd19d | 2,554 | py | Python | ETL/scripts/032_WordNet.py | kaalam/thetangle | 4c4877ebc3c6f8cce86f1a43681359c16a51e2c9 | [
"MIT"
] | 1 | 2021-11-20T12:30:02.000Z | 2021-11-20T12:30:02.000Z | ETL/scripts/032_WordNet.py | kaalam/thetangle | 4c4877ebc3c6f8cce86f1a43681359c16a51e2c9 | [
"MIT"
] | null | null | null | ETL/scripts/032_WordNet.py | kaalam/thetangle | 4c4877ebc3c6f8cce86f1a43681359c16a51e2c9 | [
"MIT"
] | null | null | null | import os, re
from lxml import etree
from file_paths import etl_source, etl_dest
from Section import Section
c = WordNet()
c.build()
print('\n\nDone.') | 21.462185 | 99 | 0.646045 |
6922de7fa2422425927a30373d7515632417224a | 1,831 | py | Python | simulator/thruster_plotter.py | ErikRowe/Bachelor-E2205 | 3d54bf71c5423f319c1709124cceacac4f29b9ec | [
"MIT"
] | 1 | 2022-03-30T07:26:08.000Z | 2022-03-30T07:26:08.000Z | simulator/thruster_plotter.py | ErikRowe/Bachelor-E2205 | 3d54bf71c5423f319c1709124cceacac4f29b9ec | [
"MIT"
] | null | null | null | simulator/thruster_plotter.py | ErikRowe/Bachelor-E2205 | 3d54bf71c5423f319c1709124cceacac4f29b9ec | [
"MIT"
] | null | null | null | from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt
lengths = np.array([
[0.156, 0.111, 0.085],
[0.156, -0.111, 0.085],
[-0.156, 0.111, 0.085],
[-0.156, -0.111, 0.085],
[0.12, 0.218, 0],
[0.12, -... | 26.157143 | 63 | 0.494265 |
6924b4090d78c8aee27eece8f33501d1b69d3f77 | 46 | py | Python | tests/issues/issue_6.py | jparise/flake8_tuple | adf0510e66f80edda523861e9ac7a2e44f514fd5 | [
"BSD-3-Clause"
] | 30 | 2016-02-20T23:13:44.000Z | 2022-01-13T07:41:42.000Z | tests/issues/issue_6.py | jparise/flake8_tuple | adf0510e66f80edda523861e9ac7a2e44f514fd5 | [
"BSD-3-Clause"
] | 26 | 2015-09-06T23:04:46.000Z | 2021-10-17T10:31:09.000Z | tests/issues/issue_6.py | jparise/flake8_tuple | adf0510e66f80edda523861e9ac7a2e44f514fd5 | [
"BSD-3-Clause"
] | 9 | 2016-02-29T14:57:05.000Z | 2020-11-15T20:33:08.000Z | # -*- coding: utf-8 -*-
"""
foo
"""
bah = 1
| 5.75 | 23 | 0.369565 |
692623edabe9f0e78683e1958531eb7c61cfa0f0 | 25,868 | py | Python | src/mightypy/ml/_tree.py | NishantBaheti/mightypy | 8219ae5cfc462e02f04bec6bdd7e3751b57d2a25 | [
"MIT"
] | 1 | 2022-02-03T19:32:45.000Z | 2022-02-03T19:32:45.000Z | src/mightypy/ml/_tree.py | NishantBaheti/mightypy | 8219ae5cfc462e02f04bec6bdd7e3751b57d2a25 | [
"MIT"
] | null | null | null | src/mightypy/ml/_tree.py | NishantBaheti/mightypy | 8219ae5cfc462e02f04bec6bdd7e3751b57d2a25 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Union, Tuple, List
import warnings
import numpy as np
| 36.027855 | 177 | 0.57631 |
692959bca4a35e14e41b554f367efb825930cf94 | 8,282 | py | Python | src/pytools/data/_simulation.py | BCG-Gamma/pytools | d7be703e0665917cd75b671564d5c0163f13b77b | [
"Apache-2.0"
] | 17 | 2021-01-12T08:07:11.000Z | 2022-03-03T22:59:04.000Z | src/pytools/data/_simulation.py | BCG-Gamma/pytools | d7be703e0665917cd75b671564d5c0163f13b77b | [
"Apache-2.0"
] | 10 | 2021-01-08T17:04:39.000Z | 2022-01-18T13:21:52.000Z | src/pytools/data/_simulation.py | BCG-Gamma/pytools | d7be703e0665917cd75b671564d5c0163f13b77b | [
"Apache-2.0"
] | 1 | 2021-11-06T00:16:43.000Z | 2021-11-06T00:16:43.000Z | """
Utilities for creating simulated data sets.
"""
from typing import Optional, Sequence
import numpy as np
import pandas as pd
from scipy.linalg import toeplitz
from ..api import AllTracker
__all__ = ["sim_data"]
__tracker = AllTracker(globals())
def sim_data(
n: int = 100,
intercept: float = -5,
t... | 36.646018 | 88 | 0.637769 |
692bef77b612bf77c047be1c12359e5ad49588c9 | 335 | py | Python | misc/projections.py | DawyD/UNet-PS-4D | bdd31308854dbd5f309aec9bcc1f7a35f267481d | [
"MIT"
] | 1 | 2021-12-06T17:20:36.000Z | 2021-12-06T17:20:36.000Z | misc/projections.py | DawyD/UNet-PS-4D | bdd31308854dbd5f309aec9bcc1f7a35f267481d | [
"MIT"
] | null | null | null | misc/projections.py | DawyD/UNet-PS-4D | bdd31308854dbd5f309aec9bcc1f7a35f267481d | [
"MIT"
] | 3 | 2021-12-06T08:09:42.000Z | 2022-03-12T08:09:34.000Z | """
Projections
To add a custom projection, create a method accepting (x, y, z) Cartesian coordinates and add an entry to the
parse_projection method
"""
| 19.705882 | 109 | 0.704478 |
692c298ef0d7f8ede22958f68c573f616b9a3b6e | 1,443 | py | Python | tests/unitary/RewardStream/test_notify_reward_amount.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 217 | 2020-06-24T14:01:21.000Z | 2022-03-29T08:35:24.000Z | tests/unitary/RewardStream/test_notify_reward_amount.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 25 | 2020-06-24T09:39:02.000Z | 2022-03-22T17:03:00.000Z | tests/unitary/RewardStream/test_notify_reward_amount.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 110 | 2020-07-10T22:45:49.000Z | 2022-03-29T02:51:08.000Z | import math
import brownie
from brownie import chain
| 29.44898 | 78 | 0.701317 |
692c6b9546c8d5492a4a2ce595dcd91b7a399ebe | 758 | py | Python | example.py | zimengyang/wavefront-dispatch-python | e832d62143e17c703c4cf64dcf1c9923d6887395 | [
"Apache-2.0"
] | null | null | null | example.py | zimengyang/wavefront-dispatch-python | e832d62143e17c703c4cf64dcf1c9923d6887395 | [
"Apache-2.0"
] | null | null | null | example.py | zimengyang/wavefront-dispatch-python | e832d62143e17c703c4cf64dcf1c9923d6887395 | [
"Apache-2.0"
] | null | null | null | import wavefront_dispatch
import random
if __name__ == "__main__":
ctx = {
"secrets": {
"wavefront_server_url":"https://<INSTANCE>.wavefront.com",
"wavefront_auth_token":"<AUTH_TOKEN>"}
}
payload = {}
handle(ctx, payload) | 22.969697 | 70 | 0.633245 |
692cdc2a4078cbee5e0057cded15855236b7804f | 6,771 | py | Python | electrum_gui/common/provider/chains/btc/provider.py | BixinKey/electrum | f5de4e74e313b9b569f13ba6ab9142a38bf095f2 | [
"MIT"
] | 12 | 2020-11-12T08:53:05.000Z | 2021-07-06T17:30:39.000Z | electrum_gui/common/provider/chains/btc/provider.py | liyanhrxy/electrum | 107608ef201ff1d20d2f6091c257b1ceff9b7362 | [
"MIT"
] | 209 | 2020-09-23T06:58:18.000Z | 2021-11-18T11:25:41.000Z | electrum_gui/common/provider/chains/btc/provider.py | liyanhrxy/electrum | 107608ef201ff1d20d2f6091c257b1ceff9b7362 | [
"MIT"
] | 19 | 2020-10-13T11:42:26.000Z | 2022-02-06T01:26:34.000Z | import itertools
import logging
from typing import Any, Dict, Set, Tuple
from pycoin.coins.bitcoin import Tx as pycoin_tx
from electrum_gui.common.basic.functional.require import require
from electrum_gui.common.coin import data as coin_data
from electrum_gui.common.conf import settings
from electrum_gui.common.provi... | 40.303571 | 112 | 0.668882 |
692d85c72df59f574d4b84417af453569166c21c | 7,178 | py | Python | trainer.py | MichaelArbel/KWNG | b9f87da358c83919e821f170e59d95ac67fffbdd | [
"BSD-3-Clause"
] | 13 | 2020-02-20T03:30:02.000Z | 2021-06-22T03:00:20.000Z | trainer.py | MichaelArbel/KWNG | b9f87da358c83919e821f170e59d95ac67fffbdd | [
"BSD-3-Clause"
] | null | null | null | trainer.py | MichaelArbel/KWNG | b9f87da358c83919e821f170e59d95ac67fffbdd | [
"BSD-3-Clause"
] | 2 | 2021-02-10T14:14:32.000Z | 2021-02-28T04:19:42.000Z | from __future__ import print_function
import torch
import torch.nn as nn
import torch.optim as optim
import torch.backends.cudnn as cudnn
import os, sys
from tensorboardX import SummaryWriter
import time
import numpy as np
import pprint
import socket
import pickle
from resnet import *
from kwng import *
from gaussi... | 31.621145 | 170 | 0.722067 |
692ed08422884c4e5e3d098c7b1e58b2fa5b1ef5 | 2,792 | py | Python | dual_tape/dual_tape.py | cmcmarrow/dual_tape | 77a0c9f68463037a84a97657669ed2c6324d8eb7 | [
"Apache-2.0"
] | 1 | 2021-10-30T04:45:24.000Z | 2021-10-30T04:45:24.000Z | dual_tape/dual_tape.py | cmcmarrow/dual_tape | 77a0c9f68463037a84a97657669ed2c6324d8eb7 | [
"Apache-2.0"
] | null | null | null | dual_tape/dual_tape.py | cmcmarrow/dual_tape | 77a0c9f68463037a84a97657669ed2c6324d8eb7 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2021 Charles McMarrow
"""
# built-in
import argparse
from typing import List, Generator, Optional, Tuple, Union
# dual_tape
import dual_tape as dt
from . import assembler
from . import error
from . import vm
from .log import enable_log
def dual_tape() -> None:
"""
info: Console Interface into... | 31.727273 | 83 | 0.520415 |
692fbebceac6733265c7df41c6432b0ab79c8dfa | 2,755 | py | Python | photo/qt/tagSelectDialog.py | RKrahl/photo-tools | 0bf0b4405e5cd6e5fcab9a64ac1591ea097dcf27 | [
"Apache-2.0"
] | null | null | null | photo/qt/tagSelectDialog.py | RKrahl/photo-tools | 0bf0b4405e5cd6e5fcab9a64ac1591ea097dcf27 | [
"Apache-2.0"
] | 46 | 2016-01-03T15:11:18.000Z | 2020-05-09T19:46:03.000Z | photo/qt/tagSelectDialog.py | RKrahl/photo-tools | 0bf0b4405e5cd6e5fcab9a64ac1591ea097dcf27 | [
"Apache-2.0"
] | null | null | null | """A dialog window to set and remove tags.
"""
import math
from PySide import QtCore, QtGui
| 34.873418 | 75 | 0.594555 |
6933d959529c17ad0262f4c63f5ad37341042a8b | 21 | py | Python | rc4/__init__.py | DavidBuchanan314/rc4 | eae984edb6443f954344c9590c3b1565c3b59d2d | [
"MIT"
] | 14 | 2019-08-11T08:50:03.000Z | 2022-03-07T07:26:26.000Z | rc4/__init__.py | DavidBuchanan314/rc4 | eae984edb6443f954344c9590c3b1565c3b59d2d | [
"MIT"
] | null | null | null | rc4/__init__.py | DavidBuchanan314/rc4 | eae984edb6443f954344c9590c3b1565c3b59d2d | [
"MIT"
] | 4 | 2019-06-06T19:57:14.000Z | 2021-03-21T18:09:48.000Z | from .rc4 import RC4
| 10.5 | 20 | 0.761905 |
6934c2152701ceb85be34a216cea95acb551dd2f | 3,164 | py | Python | Intelligence_System/8/20191128-MachineLearning1_Python/p53.py | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | Intelligence_System/8/20191128-MachineLearning1_Python/p53.py | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | Intelligence_System/8/20191128-MachineLearning1_Python/p53.py | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | from __future__ import division
from __future__ import print_function
import numpy as np
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
np.random.seed(0) # set the random seed for reproducibility
# create sample
sample_size = 50
xmin, xmax = -3, 3
x, y = generate_sample(xmin=xmin, xm... | 28.763636 | 89 | 0.586283 |
693532a54d7a223e08c34287a9b6f998569e5e03 | 2,063 | py | Python | python/qtLearn/windows/examples/exampleComboCompleter.py | david-cattermole/qt-learning | cfbb6b94106c29650b62dbd2c51fb7eb6f811d47 | [
"BSD-3-Clause"
] | 13 | 2017-11-30T09:26:08.000Z | 2021-04-22T04:08:16.000Z | python/qtLearn/windows/examples/exampleComboCompleter.py | david-cattermole/qt-learning | cfbb6b94106c29650b62dbd2c51fb7eb6f811d47 | [
"BSD-3-Clause"
] | null | null | null | python/qtLearn/windows/examples/exampleComboCompleter.py | david-cattermole/qt-learning | cfbb6b94106c29650b62dbd2c51fb7eb6f811d47 | [
"BSD-3-Clause"
] | 1 | 2019-09-18T01:31:40.000Z | 2019-09-18T01:31:40.000Z | """
https://stackoverflow.com/questions/4827207/how-do-i-filter-the-pyqt-qcombobox-items-based-on-the-text-input
"""
import sys
from Qt import QtCore
from Qt import QtWidgets
if __name__ == "__main__":
main(sys.argv)
| 28.652778 | 108 | 0.696558 |
6935f717f58fae09f95582ee787ed13841efc5c8 | 3,412 | py | Python | Camera.py | zippybenjiman/PythonCraft | daeb9b4eac1530c98843bf8fc412345f58e37c97 | [
"MIT"
] | 51 | 2015-08-08T22:36:47.000Z | 2022-03-02T20:20:54.000Z | Camera.py | zippybenjiman/PythonCraft | daeb9b4eac1530c98843bf8fc412345f58e37c97 | [
"MIT"
] | 3 | 2016-04-12T16:36:58.000Z | 2019-03-02T21:46:10.000Z | Camera.py | zippybenjiman/PythonCraft | daeb9b4eac1530c98843bf8fc412345f58e37c97 | [
"MIT"
] | 13 | 2016-03-25T07:05:40.000Z | 2021-08-15T12:19:04.000Z | import numpy as np
from OpenGL.GL import *
from OpenGL.GLU import *
from math import *
from ZMath import *
| 21.594937 | 73 | 0.67966 |
693668c88af0cb09907a7eb439d49d83bf0f94fc | 253 | py | Python | libs/cGeo/setup.py | nodebox/nodebox-pyobjc | 31c7a95ca24fffdc8f4523278d4b68c330adea8e | [
"MIT"
] | 47 | 2015-03-14T01:44:09.000Z | 2021-11-10T10:28:14.000Z | libs/cGeo/setup.py | nodebox/nodebox-pyobjc | 31c7a95ca24fffdc8f4523278d4b68c330adea8e | [
"MIT"
] | 4 | 2015-08-20T20:02:32.000Z | 2021-02-10T18:39:11.000Z | libs/cGeo/setup.py | nodebox/nodebox-pyobjc | 31c7a95ca24fffdc8f4523278d4b68c330adea8e | [
"MIT"
] | 15 | 2015-03-14T01:44:00.000Z | 2020-12-17T16:44:31.000Z | from distutils.core import setup, Extension
cGeo = Extension("cGeo", sources = ["cGeo.c"])
setup (name = "cGeo",
version = "0.1",
author = "Tom De Smedt",
description = "Fast geometric functionality.",
ext_modules = [cGeo]) | 28.111111 | 53 | 0.616601 |
693a0199dc8894a4cfdc4a4894ca98fde9d509ce | 404 | py | Python | is_cuda_available.py | chumingqian/Model_Compression_For_YOLOV4 | 3bc803ff6ebb4000bf1f2cafc61c7711fea7a2ab | [
"Apache-2.0"
] | 13 | 2020-12-14T02:22:47.000Z | 2021-08-07T09:58:09.000Z | is_cuda_available.py | chumingqian/Model_Compression_For_YOLOV4 | 3bc803ff6ebb4000bf1f2cafc61c7711fea7a2ab | [
"Apache-2.0"
] | 2 | 2021-02-02T17:37:40.000Z | 2021-02-10T01:40:11.000Z | is_cuda_available.py | chumingqian/Model_Compression_For_YOLOV3-V4 | e4a6c51084e55c18ad51e854fafccb90c7e9f2dc | [
"Apache-2.0"
] | 3 | 2021-12-08T17:20:32.000Z | 2022-01-06T06:55:21.000Z | import os
# os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
# os.environ["CUDA_VISIBLE_DEVICES"] = "0"
import torch
flag = torch.cuda.is_available()
print(flag)
ngpu= 1
# Decide which device we want to run on
device = torch.device("cuda:0" if (torch.cuda.is_available() and ngpu > 0) else "cpu")
print(device)
print("\... | 23.764706 | 86 | 0.710396 |
693a8bfecafa24dd8194e4acd5429b30566eb012 | 1,767 | py | Python | src/literary/config.py | gitter-badger/literary | e3a2c8f3dd9d694bbfa2de2642af2c0eabe32842 | [
"BSD-3-Clause"
] | null | null | null | src/literary/config.py | gitter-badger/literary | e3a2c8f3dd9d694bbfa2de2642af2c0eabe32842 | [
"BSD-3-Clause"
] | null | null | null | src/literary/config.py | gitter-badger/literary | e3a2c8f3dd9d694bbfa2de2642af2c0eabe32842 | [
"BSD-3-Clause"
] | null | null | null | import functools
import pathlib
from jupyter_core.paths import jupyter_config_path
import traitlets.config
CONFIG_FILE_NAME = "literary_config"
PROJECT_ROOT_MARKERS = (
"pyproject.toml",
"setup.py",
"setup.cfg",
".literary-project",
f"{CONFIG_FILE_NAME}.json",
f"{CONFIG_FILE_NAME}.py",
)
def ... | 28.5 | 86 | 0.652518 |
693a99eabb5d38e2d611e7cda7956f5457afe9c0 | 3,103 | py | Python | LeetCode/Python3/DFS&BFS/787. Cheapest Flights Within K Stops.py | WatsonWangZh/CodingPractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 11 | 2019-09-01T22:36:00.000Z | 2021-11-08T08:57:20.000Z | LeetCode/Python3/DFS&BFS/787. Cheapest Flights Within K Stops.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | null | null | null | LeetCode/Python3/DFS&BFS/787. Cheapest Flights Within K Stops.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 2 | 2020-05-27T14:58:52.000Z | 2020-05-27T15:04:17.000Z | # There are n cities connected by m flights.
# Each flight starts from city u and arrives at v with a price w.
# Now given all the cities and flights,
# together with starting city src and the destination dst,
# your task is to find the cheapest price from src to dst with up to k stops.
# If there is no such route,... | 31.03 | 104 | 0.531743 |
693b60ca6e700a68c75697520587d7a2c85c20e7 | 31,007 | py | Python | processing/VAC_dynamics_v2/calculate_orbits_gaiaedr3.py | svenbuder/GALAH_DR3 | 33e86c90c2f117c1a21d56d60d50f09335c76f6b | [
"MIT"
] | 10 | 2020-03-04T07:11:54.000Z | 2021-09-28T15:55:04.000Z | processing/VAC_dynamics_v2/calculate_orbits_gaiaedr3.py | Shalmalee15/GALAH_DR3 | 33e86c90c2f117c1a21d56d60d50f09335c76f6b | [
"MIT"
] | 1 | 2020-11-11T21:56:38.000Z | 2020-11-11T22:22:16.000Z | processing/VAC_dynamics_v2/calculate_orbits_gaiaedr3.py | Shalmalee15/GALAH_DR3 | 33e86c90c2f117c1a21d56d60d50f09335c76f6b | [
"MIT"
] | 5 | 2020-11-06T05:42:19.000Z | 2021-10-14T02:16:47.000Z | #!/usr/bin/env python
# coding: utf-8
# # Actions and Orbit caluclation with MC sampling for GALAH DR3 after Gaia eDR3
#
# ## Author: Sven Buder
#
# ### History:
# 201204 SB Created
#
# # What information you need
#
# ra, dec, pmra, pmdec from Gaia eDR3
#
# distance:
# if you want to use parallax: parallax... | 37.905868 | 204 | 0.60309 |
693b7325f433bc079a0e3cb877d5731a3566eef2 | 6,542 | py | Python | codegen/codegen/host_codegen.py | spcl/fblas | 96425fbdbaeab6f43997d839836b8224a04f3b53 | [
"BSD-3-Clause"
] | 68 | 2019-02-07T21:30:21.000Z | 2022-02-16T20:09:27.000Z | codegen/codegen/host_codegen.py | spcl/fblas | 96425fbdbaeab6f43997d839836b8224a04f3b53 | [
"BSD-3-Clause"
] | 2 | 2019-03-15T17:49:03.000Z | 2019-07-24T14:05:35.000Z | codegen/codegen/host_codegen.py | spcl/fblas | 96425fbdbaeab6f43997d839836b8224a04f3b53 | [
"BSD-3-Clause"
] | 25 | 2019-03-15T03:00:15.000Z | 2021-08-04T10:21:43.000Z | import json
from codegen import json_definitions as jd
from codegen import json_writer as jw
from codegen import fblas_routine
from codegen import fblas_types
import codegen.generator_definitions as gd
from codegen.fblas_helper import FBLASHelper
import logging
import os
import jinja2
from typing import List
| 43.324503 | 141 | 0.684653 |
693d4412ea5398c8c6577225252aaea517df327c | 5,221 | py | Python | test/test_vehicle.py | pchevallier/bimmer_connected | 7cfeced15b8db1970761ca8345408b7f839bb085 | [
"Apache-2.0"
] | 141 | 2019-08-28T06:23:37.000Z | 2022-03-31T08:30:33.000Z | test/test_vehicle.py | pchevallier/bimmer_connected | 7cfeced15b8db1970761ca8345408b7f839bb085 | [
"Apache-2.0"
] | 344 | 2019-08-06T01:35:44.000Z | 2022-03-31T20:19:21.000Z | test/test_vehicle.py | EddyK69/bimmer_connected | 809b3725423af0b43aed1b4a68bc76f4713f8130 | [
"Apache-2.0"
] | 44 | 2019-09-13T17:48:48.000Z | 2022-03-11T20:24:28.000Z | """Tests for ConnectedDriveVehicle."""
import unittest
from unittest import mock
from test import load_response_json, BackendMock, TEST_USERNAME, TEST_PASSWORD, TEST_REGION, \
G31_VIN, F48_VIN, I01_VIN, I01_NOREX_VIN, F15_VIN, F45_VIN, F31_VIN, TEST_VEHICLE_DATA, \
ATTRIBUTE_MAPPING, MISSING_ATTRIBUTES, ADDITIO... | 48.794393 | 117 | 0.690864 |
693e89337ec8466ffcddc4f545300a540cb97235 | 648 | py | Python | examples/mnist/mnist.py | mentice/docker-jobber | b7312fa9b0d78bd90c47ca8d70fbd2e5149803e2 | [
"BSD-3-Clause"
] | null | null | null | examples/mnist/mnist.py | mentice/docker-jobber | b7312fa9b0d78bd90c47ca8d70fbd2e5149803e2 | [
"BSD-3-Clause"
] | null | null | null | examples/mnist/mnist.py | mentice/docker-jobber | b7312fa9b0d78bd90c47ca8d70fbd2e5149803e2 | [
"BSD-3-Clause"
] | 2 | 2019-04-09T21:50:40.000Z | 2021-08-17T02:27:56.000Z | import numpy as np
import tensorflow as tf
np.random.seed(0)
tf.set_random_seed(0)
(x_train, y_train),(x_test, y_test) = np.load('/data/mnist.npy')
x_train, x_test = x_train / 255.0, x_test / 255.0
model = tf.keras.models.Sequential([
tf.keras.layers.Flatten(),
tf.keras.layers.Dense(512, activation=tf.nn.relu),
... | 28.173913 | 64 | 0.725309 |
693f0a0ea836a4fb86a1f4caa264373625ab4343 | 53 | py | Python | tests/files/while.py | docmarionum1/py65c | cd59ef25d2759b63efa5655f529fd31564cc31b0 | [
"WTFPL"
] | 12 | 2015-08-03T05:16:18.000Z | 2020-09-12T12:38:16.000Z | tests/files/while.py | docmarionum1/py65c | cd59ef25d2759b63efa5655f529fd31564cc31b0 | [
"WTFPL"
] | null | null | null | tests/files/while.py | docmarionum1/py65c | cd59ef25d2759b63efa5655f529fd31564cc31b0 | [
"WTFPL"
] | null | null | null | i = 10
j = 0
while i > 2:
i = i - 1
j = j + 8 | 10.6 | 13 | 0.339623 |
693f702116b674ffd087db6f6d6cb3e422beb1da | 4,864 | py | Python | forking_paths_dataset/code/batch_plot_traj_carla.py | ziyan0302/Multiverse | 3b2f590a7d99758b6a8795070ca25a9698b767a9 | [
"Apache-2.0"
] | 190 | 2020-01-10T06:24:49.000Z | 2022-03-24T10:21:46.000Z | forking_paths_dataset/code/batch_plot_traj_carla.py | ziyan0302/Multiverse | 3b2f590a7d99758b6a8795070ca25a9698b767a9 | [
"Apache-2.0"
] | 32 | 2020-06-18T23:36:10.000Z | 2022-03-30T11:33:13.000Z | forking_paths_dataset/code/batch_plot_traj_carla.py | ziyan0302/Multiverse | 3b2f590a7d99758b6a8795070ca25a9698b767a9 | [
"Apache-2.0"
] | 60 | 2020-01-04T13:29:03.000Z | 2022-03-27T09:26:13.000Z | # coding=utf-8
"""Batch convert the world traj in actev to carla traj."""
import argparse
import os
from glob import glob
from tqdm import tqdm
import sys
if sys.version_info > (3, 0):
import subprocess as commands
else:
import commands
parser = argparse.ArgumentParser()
parser.add_argument("traj_world_path")
pa... | 36.571429 | 80 | 0.519942 |
69417dfa25ad6617eea6efdd5ccb5a4150092cf8 | 1,451 | py | Python | neural-cryptograhy/neural_cryptography/model.py | DKuzn/information-security-basics | 535da0e36a2697314db5a03b86c57e9556a89236 | [
"MIT"
] | null | null | null | neural-cryptograhy/neural_cryptography/model.py | DKuzn/information-security-basics | 535da0e36a2697314db5a03b86c57e9556a89236 | [
"MIT"
] | null | null | null | neural-cryptograhy/neural_cryptography/model.py | DKuzn/information-security-basics | 535da0e36a2697314db5a03b86c57e9556a89236 | [
"MIT"
] | null | null | null | from tensorflow.keras.layers import Input, Embedding, Flatten, Reshape, Conv2D, Concatenate, TimeDistributed, Dense
from tensorflow.keras.models import Model, Sequential
from tensorflow.keras.metrics import mean_absolute_error, categorical_crossentropy, categorical_accuracy
| 53.740741 | 115 | 0.753274 |
694212b479ec803483a64c1bb1ff507ad44f4f26 | 1,117 | py | Python | lpp_test/urls.py | wang0704/lpp_test | 6b863fc5ff2a0fb63c8efd1f45ac15c8429be27f | [
"Apache-2.0"
] | null | null | null | lpp_test/urls.py | wang0704/lpp_test | 6b863fc5ff2a0fb63c8efd1f45ac15c8429be27f | [
"Apache-2.0"
] | 4 | 2020-02-12T03:14:36.000Z | 2021-06-10T22:08:50.000Z | lpp_test/urls.py | wang0704/lpp_test | 6b863fc5ff2a0fb63c8efd1f45ac15c8429be27f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making (BlueKing) available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obtain ... | 39.892857 | 115 | 0.72068 |
6942e7be559ce353353bdcd52791076b3302d800 | 4,757 | py | Python | assemtools/core/setup.py | xmyeen/assemtools | e2020e72983e5d18e2cbc286d093479f4f445d81 | [
"MIT"
] | null | null | null | assemtools/core/setup.py | xmyeen/assemtools | e2020e72983e5d18e2cbc286d093479f4f445d81 | [
"MIT"
] | null | null | null | assemtools/core/setup.py | xmyeen/assemtools | e2020e72983e5d18e2cbc286d093479f4f445d81 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
#!/usr/bin/env python
import os, typing, datetime, glob, warnings, pathlib, pkg_resources
from setuptools import setup as setuptools_setup
from .cmd import bdist_app,cleanup
from ..utility.os import walk_relative_file
from ..utility.pkg import cov_to_program_name, cov_program_name_to_module_name... | 37.456693 | 115 | 0.618037 |
69451e17078e6e7adb9472ed8364f52ed22a10b2 | 4,689 | py | Python | rlax/_src/losses_test.py | chris-chris/rlax | 78af9edcc24deb1d518bd64b9df606ba48994b2b | [
"Apache-2.0"
] | null | null | null | rlax/_src/losses_test.py | chris-chris/rlax | 78af9edcc24deb1d518bd64b9df606ba48994b2b | [
"Apache-2.0"
] | null | null | null | rlax/_src/losses_test.py | chris-chris/rlax | 78af9edcc24deb1d518bd64b9df606ba48994b2b | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2019 DeepMind Technologies Limited. 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
#
# ... | 36.069231 | 80 | 0.658563 |
6946c423c75dd5a568d359e01c3ef88c91db841b | 421 | py | Python | pypy/tool/pytest/run-script/regrverbose.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/tool/pytest/run-script/regrverbose.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | null | null | null | pypy/tool/pytest/run-script/regrverbose.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z | # refer to 2.4.1/test/regrtest.py's runtest() for comparison
import sys
from test import test_support
test_support.verbose = int(sys.argv[1])
sys.argv[:] = sys.argv[2:]
modname = sys.argv[0]
impname = 'test.' + modname
mod = __import__(impname, globals(), locals(), [modname])
indirect_test = getattr(mod, 'test_main'... | 30.071429 | 60 | 0.72209 |
6946cfe28c6fc4a3ad5cca161c60970647b8573c | 1,704 | py | Python | face.py | justinham/rasp | 63511dd64cb0dfc13cbbaa202cad00866d98749a | [
"Apache-2.0"
] | null | null | null | face.py | justinham/rasp | 63511dd64cb0dfc13cbbaa202cad00866d98749a | [
"Apache-2.0"
] | null | null | null | face.py | justinham/rasp | 63511dd64cb0dfc13cbbaa202cad00866d98749a | [
"Apache-2.0"
] | null | null | null | import os
import glob
import numpy as np
import cv2
import tensorflow as tf
from fr_utils import *
from inception_blocks_v2 import *
from keras import backend as K
from easyfacenet.simple import facenet
K.set_image_data_format('channels_first')
FRmodel = faceRecoModel(input_shape=(3, 96, 96))
FRmodel.compile(... | 25.432836 | 80 | 0.734155 |
6947511cb144cec2a642daef44489c9938624281 | 808 | py | Python | setup.py | ox-it/oxford-term-dates | 943a05236a8a4d6178594ae1775a34ef19e7fe16 | [
"AFL-3.0"
] | 2 | 2016-01-13T15:19:17.000Z | 2020-05-16T07:13:38.000Z | setup.py | ox-it/oxford-term-dates | 943a05236a8a4d6178594ae1775a34ef19e7fe16 | [
"AFL-3.0"
] | null | null | null | setup.py | ox-it/oxford-term-dates | 943a05236a8a4d6178594ae1775a34ef19e7fe16 | [
"AFL-3.0"
] | 1 | 2020-05-16T07:13:41.000Z | 2020-05-16T07:13:41.000Z | #!/usr/bin/env python
from distutils.core import setup
setup(name='oxford_term_dates',
version='1.3.0',
description='A Python library for translating between real dates and Oxford term dates',
author='IT Services, University of Oxford',
author_email='mobileoxford@it.ox.ac.uk',
url='https... | 35.130435 | 94 | 0.634901 |
69487310ad1cbe8b3580ebe35ae8596a6868c8cd | 2,364 | py | Python | keynote-export.py | jmckind/keynote-export | 405443a7734b87397f062526da9d7b7fe54f080a | [
"MIT"
] | 1 | 2015-11-19T02:59:05.000Z | 2015-11-19T02:59:05.000Z | keynote-export.py | jmckind/keynote-export | 405443a7734b87397f062526da9d7b7fe54f080a | [
"MIT"
] | null | null | null | keynote-export.py | jmckind/keynote-export | 405443a7734b87397f062526da9d7b7fe54f080a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from AppKit import NSURL, NSMutableDictionary
from ScriptingBridge import SBApplication
import sys
DEBUG = False
BUNDLE = 'com.apple.iWork.Keynote'
SAVING_OPTIONS = {
'yes': 0x79657320, # 'yes '
'no': 0x6E6F2020, # 'no '
'ask': 0x61736B20, # 'ask '
}
EXPORT_FORMAT = {
'Kht... | 27.811765 | 75 | 0.678511 |
69517993578b4ee9869a253cdcca60e4b9c8c7b3 | 7,072 | py | Python | pomade/assertions.py | saucelabs/pomade | 3be5f9910ed3678e32d2efb174a13087930ed68f | [
"Apache-2.0"
] | null | null | null | pomade/assertions.py | saucelabs/pomade | 3be5f9910ed3678e32d2efb174a13087930ed68f | [
"Apache-2.0"
] | 1 | 2016-03-08T16:02:03.000Z | 2016-03-09T10:22:07.000Z | pomade/assertions.py | saucelabs/pomade | 3be5f9910ed3678e32d2efb174a13087930ed68f | [
"Apache-2.0"
] | null | null | null | from pprint import pformat
import json
import time
import traceback
import sys
from config import SPIN_TIMEOUT
| 36.453608 | 79 | 0.609729 |
695714573a64ea71a47266d0763ae4c9a0396e67 | 175 | py | Python | EcomWebsite/ecom/blog/urls.py | ShibanandaJena/MyShop | 7a925da10c9f6b86f1f9ebe4f3837b94bb800ec7 | [
"Apache-2.0"
] | 1 | 2022-03-17T12:37:38.000Z | 2022-03-17T12:37:38.000Z | EcomWebsite/ecom/blog/urls.py | ShibanandaJena/MyShop | 7a925da10c9f6b86f1f9ebe4f3837b94bb800ec7 | [
"Apache-2.0"
] | null | null | null | EcomWebsite/ecom/blog/urls.py | ShibanandaJena/MyShop | 7a925da10c9f6b86f1f9ebe4f3837b94bb800ec7 | [
"Apache-2.0"
] | null | null | null | from . import views
from django.urls import path
urlpatterns = [
path("",views.index ,name="blogpost"),
path("blogpost/<int:id>",views.blogpost ,name="blogpost"),
]
| 19.444444 | 62 | 0.674286 |
69577fa2e4bd7cdfc564d59148e0398144c92cd5 | 272 | py | Python | 1436_Destination_City.py | Raclsc/LeetCode | b7099afba1aaebcf6af6489cac55e2d4070f90b7 | [
"MIT"
] | null | null | null | 1436_Destination_City.py | Raclsc/LeetCode | b7099afba1aaebcf6af6489cac55e2d4070f90b7 | [
"MIT"
] | null | null | null | 1436_Destination_City.py | Raclsc/LeetCode | b7099afba1aaebcf6af6489cac55e2d4070f90b7 | [
"MIT"
] | null | null | null | # LeetCode
# Level: Easy
# Date: 2021.11.17 | 18.133333 | 54 | 0.452206 |
69578623cdda52681346851eaabb75c2b5fbaa8b | 1,739 | py | Python | src/mlregression/mlreg.py | muhlbach/ml-regression | 59dfa5acc9841729d632030492e029bb329ce3ed | [
"MIT"
] | 1 | 2021-11-12T22:45:32.000Z | 2021-11-12T22:45:32.000Z | src/mlregression/mlreg.py | muhlbach/ml-regression | 59dfa5acc9841729d632030492e029bb329ce3ed | [
"MIT"
] | 1 | 2021-11-15T22:14:10.000Z | 2021-11-16T15:56:14.000Z | src/mlregression/mlreg.py | muhlbach/ml-regression | 59dfa5acc9841729d632030492e029bb329ce3ed | [
"MIT"
] | null | null | null | #------------------------------------------------------------------------------
# Libraries
#------------------------------------------------------------------------------
# Standard
import numpy as np
# User
from .base.base_mlreg import BaseMLRegressor
#---------------------------------------------------------------... | 35.489796 | 79 | 0.343301 |
6958db9fdde1fe0bbdc0e41e1041c7e74f35fc42 | 818 | py | Python | code_soup/common/vision/models/__init__.py | gchhablani/code-soup | eec666b6cd76bad9c7133a185bb85021b4a390f0 | [
"MIT"
] | 18 | 2021-07-29T16:21:02.000Z | 2021-12-13T12:58:15.000Z | code_soup/common/vision/models/__init__.py | gchhablani/code-soup | eec666b6cd76bad9c7133a185bb85021b4a390f0 | [
"MIT"
] | 93 | 2021-08-04T02:48:15.000Z | 2022-01-16T04:58:51.000Z | code_soup/common/vision/models/__init__.py | gchhablani/code-soup | eec666b6cd76bad9c7133a185bb85021b4a390f0 | [
"MIT"
] | 27 | 2021-08-06T06:51:34.000Z | 2021-11-02T05:47:18.000Z | from torchvision.models import (
alexnet,
densenet121,
densenet161,
densenet169,
densenet201,
googlenet,
inception_v3,
mnasnet0_5,
mnasnet0_75,
mnasnet1_0,
mnasnet1_3,
mobilenet_v2,
mobilenet_v3_large,
mobilenet_v3_small,
resnet18,
resnet34,
resnet50,
... | 20.45 | 84 | 0.717604 |
6958fc1c0934f28a0597e1de1f9bbf912390777b | 4,198 | py | Python | desktop/core/ext-py/django-celery-beat-1.4.0/django_celery_beat/migrations/0005_add_solarschedule_events_choices_squashed_0009_merge_20181012_1416.py | maulikjs/hue | 59ac879b55bb6fb26ecb4e85f4c70836fc21173f | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/django-celery-beat-1.4.0/django_celery_beat/migrations/0005_add_solarschedule_events_choices_squashed_0009_merge_20181012_1416.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/django-celery-beat-1.4.0/django_celery_beat/migrations/0005_add_solarschedule_events_choices_squashed_0009_merge_20181012_1416.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | # Generated by Django 2.1.2 on 2018-10-12 14:18
from __future__ import absolute_import, unicode_literals
from django.db import migrations, models
import django_celery_beat.validators
import timezone_field.fields
| 40.365385 | 78 | 0.557408 |
69597484f313d7aa0a8924dd1fc098e814cc1af4 | 1,293 | py | Python | timecalc.py | Hiromi-nee/bunchofscripts | cfcbb9a6ad9619d45721f97faa5cc61bb596764f | [
"MIT"
] | null | null | null | timecalc.py | Hiromi-nee/bunchofscripts | cfcbb9a6ad9619d45721f97faa5cc61bb596764f | [
"MIT"
] | null | null | null | timecalc.py | Hiromi-nee/bunchofscripts | cfcbb9a6ad9619d45721f97faa5cc61bb596764f | [
"MIT"
] | null | null | null | from datetime import timedelta
import sys
import re
if __name__ == "__main__":
main()
| 27.510638 | 111 | 0.430008 |
695a62db915f9a1f77713cced18912c22747ce67 | 1,253 | py | Python | python/cracking_codes_with_python/k_columnar_transposition_cipher_hack.py | MerrybyPractice/book-challanges-and-tutorials | f2d3e07c673fb6e3244e164f4fb03f80b8ec781b | [
"MIT"
] | null | null | null | python/cracking_codes_with_python/k_columnar_transposition_cipher_hack.py | MerrybyPractice/book-challanges-and-tutorials | f2d3e07c673fb6e3244e164f4fb03f80b8ec781b | [
"MIT"
] | null | null | null | python/cracking_codes_with_python/k_columnar_transposition_cipher_hack.py | MerrybyPractice/book-challanges-and-tutorials | f2d3e07c673fb6e3244e164f4fb03f80b8ec781b | [
"MIT"
] | null | null | null | # Columnar Transposition Hack per Cracking Codes with Python
# https://www.nostarch.com/crackingcodes/ (BSD Licensed)
import pyperclip
from j_detect_english import is_english
from g_decrypt_columnar_transposition_cipher import decrypt_message as decrypt
if __name__ == '__main__':
text = input('What would you li... | 24.568627 | 79 | 0.667199 |
695acec963f7b4f8da6e34c3f2f991e92a4b553c | 1,092 | py | Python | apis/covid-api-tester.py | Ristinoa/cs257 | e7c31f995d08661114d868a55448c628b4cc9327 | [
"MIT"
] | null | null | null | apis/covid-api-tester.py | Ristinoa/cs257 | e7c31f995d08661114d868a55448c628b4cc9327 | [
"MIT"
] | null | null | null | apis/covid-api-tester.py | Ristinoa/cs257 | e7c31f995d08661114d868a55448c628b4cc9327 | [
"MIT"
] | 2 | 2021-09-26T20:40:40.000Z | 2021-11-11T23:17:39.000Z | #!/usr/bin/env python3
'''
covid-api-tester.py
Jeff Ondich, 25 October 2021
This is a demo of how to use a public API from
a Python program. It's not intended to be particularly
user-friendly or extensible. It just shows the minimum
code required to extract a little data from the API at
htt... | 28.736842 | 71 | 0.704212 |
695d84e2cab5875c13913366e8fd2643e1ba6224 | 498 | py | Python | tasks.py | larsbutler/celery-examples | 52682891d245e7ada9c6c0584267489aac55a9e7 | [
"BSD-3-Clause"
] | 19 | 2015-06-26T09:24:37.000Z | 2020-05-11T01:58:57.000Z | tasks.py | Stackato-Apps/celery-examples | 34ee4eea3a0b37cb12485a77f2ec75447abc5f31 | [
"BSD-3-Clause"
] | null | null | null | tasks.py | Stackato-Apps/celery-examples | 34ee4eea3a0b37cb12485a77f2ec75447abc5f31 | [
"BSD-3-Clause"
] | 8 | 2015-06-26T09:24:38.000Z | 2018-07-24T10:03:41.000Z | from celery.decorators import task
| 26.210526 | 64 | 0.654618 |
695f3000e009b77a96dbba802da859035c0c537e | 474 | py | Python | tests/test_datareactor.py | data-dev/DataReactor | 26cd08129d348cf5ff3596c3e509619c59e300b8 | [
"MIT"
] | 1 | 2022-02-08T11:10:08.000Z | 2022-02-08T11:10:08.000Z | tests/test_datareactor.py | data-dev/DataReactor | 26cd08129d348cf5ff3596c3e509619c59e300b8 | [
"MIT"
] | null | null | null | tests/test_datareactor.py | data-dev/DataReactor | 26cd08129d348cf5ff3596c3e509619c59e300b8 | [
"MIT"
] | null | null | null | import tempfile
import unittest
from glob import glob
from parameterized import parameterized
from datareactor import DataReactor
| 23.7 | 61 | 0.685654 |
695f78973dc2006f9302dae99c5d7668ccc46c5a | 43,028 | py | Python | mergechance/blacklist.py | GoodClover/merge-chance | 4ebcaf1e1b783812b84cf9f7a60f0c634357bcd6 | [
"Apache-2.0"
] | 25 | 2021-01-13T18:16:35.000Z | 2021-11-15T09:52:24.000Z | mergechance/blacklist.py | GoodClover/merge-chance | 4ebcaf1e1b783812b84cf9f7a60f0c634357bcd6 | [
"Apache-2.0"
] | 7 | 2021-01-16T09:44:40.000Z | 2021-01-22T08:17:14.000Z | mergechance/blacklist.py | GoodClover/merge-chance | 4ebcaf1e1b783812b84cf9f7a60f0c634357bcd6 | [
"Apache-2.0"
] | 1 | 2021-06-24T21:55:23.000Z | 2021-06-24T21:55:23.000Z | blacklist = [
"userQED",
"GGupzHH",
"nodejs-ma",
"linxz-coder",
"teach-tian",
"kevinlens",
"Pabitra-26",
"mangalan516",
"IjtihadIslamEmon",
"marcin-majewski-sonarsource",
"LongTengDao",
"JoinsG",
"safanbd",
"aly2",
"aka434112"
"SMAKSS",
"imbereket",
... | 19.098091 | 39 | 0.572581 |
695fa186e8dae1059f36dbf64b55bfcf7379cd40 | 1,509 | py | Python | progressmonitor/test/testfallback.py | jm-begon/progressmonitor | 94097a3cd553c37b2f87a01c9ec92766b4819dd5 | [
"BSD-3-Clause"
] | null | null | null | progressmonitor/test/testfallback.py | jm-begon/progressmonitor | 94097a3cd553c37b2f87a01c9ec92766b4819dd5 | [
"BSD-3-Clause"
] | null | null | null | progressmonitor/test/testfallback.py | jm-begon/progressmonitor | 94097a3cd553c37b2f87a01c9ec92766b4819dd5 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
test queen
"""
__author__ = "Begon Jean-Michel <jm.begon@gmail.com>"
__copyright__ = "3-clause BSD License"
__version__ = '1.0'
__date__ = "15 January 2015"
from nose.tools import assert_equal
import dis
from progressmonitor.formatter import (progressbar_formatter_factory,
... | 29.588235 | 72 | 0.683897 |
695fc058e5f57bc840d702aa4be01606cf14e2a1 | 1,288 | py | Python | contig_lengths.py | djlduckett/Genome_Resources | 7d0e17c349606464f11a20ce3f04acdc57202cd6 | [
"MIT"
] | null | null | null | contig_lengths.py | djlduckett/Genome_Resources | 7d0e17c349606464f11a20ce3f04acdc57202cd6 | [
"MIT"
] | null | null | null | contig_lengths.py | djlduckett/Genome_Resources | 7d0e17c349606464f11a20ce3f04acdc57202cd6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
###Imports###
import numpy as np
import pandas as pd
import re
import sys
import collections
import csv
###Definitions###
vcf_file = sys.argv[1]
out_file = 'lengths.txt'
###Functions###
###Main###
header_lines = get_header_lines(vcf_file) # get vcf header lines with '##'
contig_lines = [x for... | 29.953488 | 94 | 0.646739 |
6962e4354dc7f1a1758e3614363629af342522ee | 1,153 | py | Python | cpdb/data/migrations/0114_attachmentfile_add_fields.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 25 | 2018-07-20T22:31:40.000Z | 2021-07-15T16:58:41.000Z | cpdb/data/migrations/0114_attachmentfile_add_fields.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 13 | 2018-06-18T23:08:47.000Z | 2022-02-10T07:38:25.000Z | cpdb/data/migrations/0114_attachmentfile_add_fields.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 6 | 2018-05-17T21:59:43.000Z | 2020-11-17T00:30:26.000Z | # Generated by Django 2.1.3 on 2019-02-25 03:08
from django.db import migrations, models
from django.db import migrations, models
from django.conf import settings
import django.db.models.deletion
| 28.121951 | 60 | 0.592368 |
69643f6ece91c08c39a6f3f3d39b28485616d456 | 5,798 | py | Python | pyboletox/Cnab/Retorno/Cnab400/detalhe.py | lucasbrahm/pyboletox | d7cfff477622a4d5df255045428325f04fbe695a | [
"MIT"
] | 1 | 2022-03-14T12:22:42.000Z | 2022-03-14T12:22:42.000Z | pyboletox/Cnab/Retorno/Cnab400/detalhe.py | lucasbrahm/pyboletox | d7cfff477622a4d5df255045428325f04fbe695a | [
"MIT"
] | null | null | null | pyboletox/Cnab/Retorno/Cnab400/detalhe.py | lucasbrahm/pyboletox | d7cfff477622a4d5df255045428325f04fbe695a | [
"MIT"
] | 1 | 2022-03-14T12:22:27.000Z | 2022-03-14T12:22:27.000Z | from datetime import datetime
from pyboletox.Contracts.Cnab.Retorno.Cnab400.detalhe import Detalhe as DetalheContract
from pyboletox.magicTrait import MagicTrait
| 28.421569 | 112 | 0.671438 |
69647d7ac20b03e313df97bd4c323fc9f26c4caa | 707 | py | Python | packages/M2Crypto-0.21.1/demo/ssl/xmlrpc_cli.py | RaphaelPrevost/Back2Shops | 5f2d369e82fe2a7b9b3a6c55782319b23d142dfd | [
"CECILL-B"
] | null | null | null | packages/M2Crypto-0.21.1/demo/ssl/xmlrpc_cli.py | RaphaelPrevost/Back2Shops | 5f2d369e82fe2a7b9b3a6c55782319b23d142dfd | [
"CECILL-B"
] | 6 | 2021-03-31T19:21:50.000Z | 2022-01-13T01:46:09.000Z | packages/M2Crypto-0.21.1/demo/ssl/xmlrpc_cli.py | RaphaelPrevost/Back2Shops | 5f2d369e82fe2a7b9b3a6c55782319b23d142dfd | [
"CECILL-B"
] | null | null | null | #!/usr/bin/env python
"""Demonstration of M2Crypto.xmlrpclib2.
Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved."""
from M2Crypto import Rand
from M2Crypto.m2xmlrpclib import Server, SSL_Transport
if __name__ == '__main__':
Rand.load_file('../randpool.dat', -1)
#ZServerSSL()
xmlrpc_srv()
... | 26.185185 | 63 | 0.671853 |
69649634e1baafd1425667e4a4c3aa6c09dc7c5a | 2,578 | py | Python | server/template/views.py | Zhe-Shen/CloudTides | edf51534f62901dcc2e69cbf3fea76e5652b5d17 | [
"Apache-2.0"
] | 3 | 2019-12-07T17:14:39.000Z | 2022-03-31T06:41:51.000Z | server/template/views.py | Zhe-Shen/CloudTides | edf51534f62901dcc2e69cbf3fea76e5652b5d17 | [
"Apache-2.0"
] | 10 | 2019-12-08T06:37:55.000Z | 2022-02-10T11:41:09.000Z | server/template/views.py | Zhe-Shen/CloudTides | edf51534f62901dcc2e69cbf3fea76e5652b5d17 | [
"Apache-2.0"
] | 9 | 2020-06-28T01:08:35.000Z | 2020-07-26T03:51:47.000Z | from django.shortcuts import render
import os
from django.conf import settings
from rest_framework.response import Response
from rest_framework.views import APIView
import json
import datetime
from .models import *
from django.core.files.storage import default_storage
from django.utils import timezone
from rest_framew... | 33.051282 | 120 | 0.663305 |
6964972cf97ac803dddba1186e98e0867b5a94ce | 5,529 | py | Python | channel.py | zexihuang/raft-blockchain | a2f7365e10f5a5334c59bac6b551648bae04e2e8 | [
"Apache-2.0"
] | 1 | 2021-06-04T03:05:06.000Z | 2021-06-04T03:05:06.000Z | channel.py | zexihuang/raft-blockchain | a2f7365e10f5a5334c59bac6b551648bae04e2e8 | [
"Apache-2.0"
] | null | null | null | channel.py | zexihuang/raft-blockchain | a2f7365e10f5a5334c59bac6b551648bae04e2e8 | [
"Apache-2.0"
] | null | null | null | import socket
import time
import random
import logging
from _thread import start_new_thread
from threading import Lock
import utils
if __name__ == '__main__':
channel = Channel()
channel.start()
| 35.442308 | 128 | 0.584735 |
69659235f8fd33ab16004aca6930bb2cd6d11984 | 246 | py | Python | synology_api/__init__.py | migelbd/synology-api | 8492a52fef41aab3b508a779462646fab3685ad0 | [
"MIT"
] | null | null | null | synology_api/__init__.py | migelbd/synology-api | 8492a52fef41aab3b508a779462646fab3685ad0 | [
"MIT"
] | null | null | null | synology_api/__init__.py | migelbd/synology-api | 8492a52fef41aab3b508a779462646fab3685ad0 | [
"MIT"
] | null | null | null | from . import exceptions
from .downloadstation import DownloadStation
from .filestation import FileStation
from .audiostation import AudioStation
from .sys_info import SysInfo
from .virtualization import Virtualization
from .backup import Backup
| 30.75 | 44 | 0.857724 |
69665d7a2f2523f4bd4aef122d1c0d0b38cbabd1 | 41,977 | py | Python | cellpainter/main_gui.py | pharmbio/robot-remote-control | 2f1abb1d4b004e8bfc916fc513fa1956359fcad0 | [
"MIT"
] | 1 | 2022-02-23T19:58:01.000Z | 2022-02-23T19:58:01.000Z | cellpainter/main_gui.py | pharmbio/robot-remote-control | 2f1abb1d4b004e8bfc916fc513fa1956359fcad0 | [
"MIT"
] | 3 | 2022-02-10T07:15:47.000Z | 2022-02-24T17:23:58.000Z | cellpainter/main_gui.py | pharmbio/robot-cellpainter | 2f1abb1d4b004e8bfc916fc513fa1956359fcad0 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import *
from .utils.viable import js
from .utils.viable import serve, trim, button, pre
from .utils.viable import Tag, div, span, label
from .utils import viable as V
from .utils.provenance import Var, Int, Str, Store, DB, Bool
from collections import *
from dataclasses... | 32.871574 | 227 | 0.453296 |
69694310277e65251a0753febdaa9821eeeea635 | 319 | py | Python | openmm_oemc/opoenmm_oemc/__init__.py | jht0664/Utility_python_gromacs | 4457b62e2f0252bcb38021d5deda0cfb932e3ed9 | [
"MIT"
] | 1 | 2022-01-02T11:27:59.000Z | 2022-01-02T11:27:59.000Z | openmm_oemc/opoenmm_oemc/__init__.py | jht0664/Utility_python_gromacs | 4457b62e2f0252bcb38021d5deda0cfb932e3ed9 | [
"MIT"
] | null | null | null | openmm_oemc/opoenmm_oemc/__init__.py | jht0664/Utility_python_gromacs | 4457b62e2f0252bcb38021d5deda0cfb932e3ed9 | [
"MIT"
] | null | null | null | #!/usr/local/bin/env python
"""
Python libraries for osmotic ensemble simulation which is an expanded ensemble for fixed (N_A, mu_B, P, T) in OpenMM.
"""
# define global version
from openmm_oemc import version
__version__ = version.version
# import modules
from openmm_oemc import cfc, integrator, opt_wl, constant
| 22.785714 | 117 | 0.77116 |
6969b76ef35685e4e8a3784f2f92bb6e1e195a17 | 20,226 | py | Python | python/Lib/site-packages/tectle/shipping.py | ksritharan/tectle | ca76424d85e66b041b40997838a3ceb79266efab | [
"MIT"
] | 1 | 2021-03-04T14:58:05.000Z | 2021-03-04T14:58:05.000Z | python/Lib/site-packages/tectle/shipping.py | ksritharan/tectle | ca76424d85e66b041b40997838a3ceb79266efab | [
"MIT"
] | 8 | 2021-02-26T02:32:59.000Z | 2021-05-28T02:22:07.000Z | python/Lib/site-packages/tectle/shipping.py | ksritharan/business-automation | ca76424d85e66b041b40997838a3ceb79266efab | [
"MIT"
] | null | null | null | from .config import load_config, is_debug
from .db import get_connection, get_data_dict
from flask import render_template, session
from datetime import datetime
from time import sleep, process_time
import requests
import logging
logger = logging.getLogger()
import random
from PyPDF2 import PdfFileWriter, ... | 35.9254 | 145 | 0.550974 |
696b4d940a7d600adbb84cd9770545dd7b579b44 | 660 | py | Python | 03-Use-classes/Turtle-Mini_project/drawing_a_flower.py | francisrod01/udacity_python_foundations | 2a384cf35ce7eff547c88097cdc45cc4e8fc6041 | [
"MIT"
] | null | null | null | 03-Use-classes/Turtle-Mini_project/drawing_a_flower.py | francisrod01/udacity_python_foundations | 2a384cf35ce7eff547c88097cdc45cc4e8fc6041 | [
"MIT"
] | null | null | null | 03-Use-classes/Turtle-Mini_project/drawing_a_flower.py | francisrod01/udacity_python_foundations | 2a384cf35ce7eff547c88097cdc45cc4e8fc6041 | [
"MIT"
] | null | null | null | #!~/envs/udacity-python-env
import turtle
draw_art()
| 17.837838 | 49 | 0.625758 |
6970329be1cd8b7833dc0a503f07d7671a021ec3 | 136 | py | Python | InvenTree/stock/__init__.py | ArakniD/InvenTree | 0ebf2ebd832b2d736e895abe054ca56bfd1cc477 | [
"MIT"
] | 656 | 2017-03-29T22:06:14.000Z | 2022-03-30T11:23:52.000Z | InvenTree/stock/__init__.py | ArakniD/InvenTree | 0ebf2ebd832b2d736e895abe054ca56bfd1cc477 | [
"MIT"
] | 1,545 | 2017-04-10T23:26:04.000Z | 2022-03-31T18:32:10.000Z | InvenTree/stock/__init__.py | fablabbcn/InvenTree | 1d7ea7716cc96c6ffd151c822b01cd1fb5dcfecd | [
"MIT"
] | 196 | 2017-03-28T03:06:21.000Z | 2022-03-28T11:53:29.000Z | """
The Stock module is responsible for Stock management.
It includes models for:
- StockLocation
- StockItem
- StockItemTracking
"""
| 13.6 | 53 | 0.757353 |
6970bcd783115b37236f3304dd94a54d0f9fa213 | 2,108 | py | Python | ansible/plugins/action/hashivault_write_from_file.py | ayav09/ansible-modules-hashivault | d1d20c0e354c78e130393fe6d86cb68708d6c97e | [
"MIT"
] | 402 | 2016-05-03T12:26:08.000Z | 2022-03-28T17:43:39.000Z | ansible/plugins/action/hashivault_write_from_file.py | ayav09/ansible-modules-hashivault | d1d20c0e354c78e130393fe6d86cb68708d6c97e | [
"MIT"
] | 336 | 2016-10-06T13:00:25.000Z | 2022-03-31T11:37:59.000Z | ansible/plugins/action/hashivault_write_from_file.py | ayav09/ansible-modules-hashivault | d1d20c0e354c78e130393fe6d86cb68708d6c97e | [
"MIT"
] | 174 | 2016-08-12T13:36:54.000Z | 2022-03-31T16:41:35.000Z | ########################################################################
#
# Developed for AT&T by Nicholas Gibson, August 2017
#
# Action plugin for hashivault_write_from_file module.
#
# Reads file from remote host using slurp module. (base64 encoded)
# Stores file/secret to Vault using hashivault_read module on loca... | 31.939394 | 112 | 0.583966 |