code stringlengths 114 1.05M | path stringlengths 3 312 | quality_prob float64 0.5 0.99 | learning_prob float64 0.2 1 | filename stringlengths 3 168 | kind stringclasses 1
value |
|---|---|---|---|---|---|
import binascii
import base64
from quick_data_clean.quick_common import Common
from PySmartCard.CpuCard import SmartCardAlgo
class DataAlgo(object):
algo_obj = None
@classmethod
def base64_encode(cls, source_in, encoding="ansi"):
return base64.b64encode(source_in.encode(encoding)).decode(encod... | /quick_data_clean-1.1.18-py3-none-any.whl/quick_data_clean/quick_algo.py | 0.550366 | 0.300701 | quick_algo.py | pypi |
import logging
import re
from argparse import Namespace
from collections import OrderedDict
from typing import Tuple
import numpy as np
import unidecode
def slugify(text):
"""Make words into an single word lower case word separable by '_'.
This is used to construct endpoints from models name.
Parameter... | /quick-deploy-0.2.2.tar.gz/quick-deploy-0.2.2/src/quick_deploy/utils.py | 0.925739 | 0.55658 | utils.py | pypi |
import os
import shutil
from enum import Enum
from pathlib import Path
from typing import List
from quick_deploy.utils import slugify
class TritonIOTypeConf(Enum):
STRING = 'TYPE_STRING'
FP32 = 'TYPE_FP32'
INT64 = 'TYPE_INT64'
@classmethod
def from_str(cls, content):
content = content.lo... | /quick-deploy-0.2.2.tar.gz/quick-deploy-0.2.2/src/quick_deploy/triton_template.py | 0.747339 | 0.218024 | triton_template.py | pypi |
import argparse
import logging
import pickle
from os.path import expanduser
from pathlib import Path
import numpy as np
import yaml
from quick_deploy.backend.common import create_model_for_provider, generic_optimize_onnx
from quick_deploy.triton_template import TritonIOConf, TritonIOTypeConf, TritonModelConf
from qui... | /quick-deploy-0.2.2.tar.gz/quick-deploy-0.2.2/src/quick_deploy/cli.py | 0.547222 | 0.231419 | cli.py | pypi |
import logging
from typing import OrderedDict
import tensorflow as tf
import tf2onnx
import torch
from onnxruntime.transformers import optimizer
from onnxruntime.transformers.fusion_options import FusionOptions
def transformers_convert_pytorch(
model: torch.nn.Module,
output_path: str,
inputs_pytorch: Or... | /quick-deploy-0.2.2.tar.gz/quick-deploy-0.2.2/src/quick_deploy/backend/transformers_ort.py | 0.92932 | 0.477432 | transformers_ort.py | pypi |
from typing import Any, List, Tuple
from onnxmltools.convert.xgboost.operator_converters.XGBoost import ( # noqa
convert_xgboost,
)
from skl2onnx import convert_sklearn, update_registered_converter
from skl2onnx.common.data_types import (
BooleanTensorType,
DoubleTensorType,
FloatTensorType,
Int32... | /quick-deploy-0.2.2.tar.gz/quick-deploy-0.2.2/src/quick_deploy/backend/xgb_ort.py | 0.91474 | 0.466967 | xgb_ort.py | pypi |
import cctk, math, re
def fuoss(r1, r2, dielectric, temp=298):
"""
Applies the Fuoss formula to model dissociation constants of spherical ions.
Note that as written this formula is applicable only to charge ±1 ions!
Args:
r1 (float): radius of first ion in Å
r2 (float): radius of secon... | /quick_fuoss-0.1.4.tar.gz/quick_fuoss-0.1.4/quick_fuoss/kd_calculator.py | 0.725551 | 0.508849 | kd_calculator.py | pypi |
import requests
import os
from sklearn.externals._pilutil import imresize
import matplotlib.image as mat_img
import math
from skimage.color import rgb2lab, deltaE_cie76
import cv2
import matplotlib.pyplot as plt
from skimage import morphology
import numpy as np
import skimage
from skimage.metrics import structural_simi... | /quick-image-0.0.1a0.tar.gz/quick-image-0.0.1a0/src/quick_image/quick_image.py | 0.461988 | 0.265767 | quick_image.py | pypi |
import numpy as np
import matplotlib.pyplot as plt
from skimage.io import imshow, imread,imsave
import cv2
import pickle
from shapely.geometry import Point, Polygon
def isolate_image(image_path,save_path,temp_file="test.jpg"):
red_girl = imread(image_path)
red_girl = cv2.resize(red_girl, (1024, 608), interpola... | /quick-image-0.0.1a0.tar.gz/quick-image-0.0.1a0/src/quick_image/quick_image_processing.py | 0.417509 | 0.47993 | quick_image_processing.py | pypi |
from __future__ import annotations
import os
import shutil
from .impl_helpers import to_yaml, from_yaml
from ._common import EntityConfig
from dataclasses import dataclass, asdict, field
import click
from typing import Optional, List, Tuple, Dict, Union
APPLICATION_NAME = "quick-manage"
CONFIG_FOLDER = click.get_ap... | /quick_manage-0.1.0-py3-none-any.whl/quick_manage/config.py | 0.858807 | 0.162081 | config.py | pypi |
from __future__ import annotations
from dataclasses import dataclass
from typing import List
import click
from click import Context, Parameter, ParamType, echo
from click.shell_completion import CompletionItem
from quick_manage.environment import Environment
from quick_manage.keys import SecretPath
class HostNameTy... | /quick_manage-0.1.0-py3-none-any.whl/quick_manage/cli/common.py | 0.621426 | 0.189821 | common.py | pypi |
import os
from typing import List, Optional, Callable, TextIO
from ._common import IFileProvider, FileInfo
import hashlib
import shutil
class FileSystem(IFileProvider):
""" Concrete implementation of a cross-platform FileSystemProvider based on Python's os and shutil module. """
def remove(self, path: str):
... | /quick_manage-0.1.0-py3-none-any.whl/quick_manage/file/file_system.py | 0.742608 | 0.173778 | file_system.py | pypi |
import os.path
from typing import Dict, Optional, List, Tuple
from dataclasses import dataclass, field
from ..impl_helpers import to_yaml, from_yaml, KeyStoreIndex, sha1_digest
from ..keys import Secret, IKeyStore
from ._common import IFileProvider
from .file_system import FileSystem
class FolderKeyStore(IKeyStore):... | /quick_manage-0.1.0-py3-none-any.whl/quick_manage/file/folder_key_store.py | 0.824427 | 0.180071 | folder_key_store.py | pypi |
import os
from dataclasses import dataclass, field
from typing import Any, Callable, ClassVar, Dict, List, Optional, Tuple
from typing_extensions import Self
@dataclass
class MenuItem:
"""A menu item to add to a menu.
The menu item can optionally call a function or start a submenu. A menu item can
also ... | /quick_menu-0.6.0-py3-none-any.whl/quick_menu/menu.py | 0.836388 | 0.336358 | menu.py | pypi |
# quick_ml : ML for everyone
[](https://travis-ci.org/joemccann/dillinger) [](https://gitlab... | /quick_ml-1.3.18.tar.gz/quick_ml-1.3.18/README.md | 0.778691 | 0.988403 | README.md | pypi |
## callbacks supported
def rampup_lrfn(epoch):
"""
Fine Tune the pretrained model weights in a better and smooth manner.
Use this as a callback feature during the model training.
"""
if epoch < LR_RAMPUP_EPOCHS:
lr = (LR_MAX - LR_START) / LR_RAMPUP_EPOCHS * epoch + LR_START
elif epoch < LR_RAMPUP_EPOCHS... | /quick_ml-1.3.18.tar.gz/quick_ml-1.3.18/quick_ml/augments.py | 0.41561 | 0.292463 | augments.py | pypi |
def rampup_lrfn(epoch):
"""
Fine Tune the pretrained model weights in a better and smooth manner.
Use this as a callback feature during the model training.
"""
if epoch < LR_RAMPUP_EPOCHS:
lr = (LR_MAX - LR_START) / LR_RAMPUP_EPOCHS * epoch + LR_START
elif epoch < LR_RAMPUP_EPOCHS + LR_SUSTAIN_EPOCHS :
lr... | /quick_ml-1.3.18.tar.gz/quick_ml-1.3.18/quick_ml/callbacks.py | 0.641647 | 0.444324 | callbacks.py | pypi |
from typing import Optional, List, Union
import ipaddress
import socket
import netmiko
from netmiko import ConnectHandler
class FailedDnsLookup(Exception):
"""
Exception for DNS Exceptions
"""
def __init__(self, value):
super().__init__(value)
self.value = f'{value}'
def __str__(... | /quick-netmiko-2.0.0.tar.gz/quick-netmiko-2.0.0/quick_netmiko/quick_netmiko.py | 0.847763 | 0.159217 | quick_netmiko.py | pypi |
import logging
from pandas.core.sorting import *
from pandas import DataFrame
from quick_pandas import sort_api
logger = logging.getLogger('pandas_wrapper')
def argsort(array: np.ndarray, kind):
if array.dtype.type in [np.int64, np.int32, np.str_, np.float32, np.float64] and kind == 'radixsort':
return... | /quick_pandas-0.1.5-cp36-cp36m-any.whl/quick_pandas/wrappers/pandas_wrapper.py | 0.424889 | 0.426023 | pandas_wrapper.py | pypi |
import logging
import multiprocessing.context
import multiprocessing.queues
import sys
try:
import queue
except ImportError:
# python 3.x
import Queue as queue
__test__ = {'import_test': """
>>> from quick_queue.quick_queue import QQueue, QJoinableQueue
... | /quick_queue-1.0.7-py3-none-any.whl/quick_queue/quick_queue.py | 0.601125 | 0.263552 | quick_queue.py | pypi |
from quick_resto_API.quick_resto_objects.modules.warehouse.store import Store
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class ExchangeInvoice(QuickRestoObject):
@property
def from_store(self) -> Store:
return self._from_store
@property
def document_nu... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/warehouse/exchange_invoice.py | 0.841419 | 0.185412 | exchange_invoice.py | pypi |
from quick_resto_API.quick_resto_objects.modules.warehouse.store import Store
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class DecompositionInvoice(QuickRestoObject):
@property
def from_store(self) -> Store:
return self._from_store
@property
def docume... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/warehouse/decomposition_invoice.py | 0.860178 | 0.218534 | decomposition_invoice.py | pypi |
from quick_resto_API.quick_resto_objects.modules.core.measure_unit import MeasureUnit
from quick_resto_API.quick_resto_objects.modules.core.store_item_tag import StoreItemTag
from quick_resto_API.quick_resto_objects.modules.warehouse.dish_category import convert_str_to_selling_type, DishCategory, SellingType
from quick... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/warehouse/dish.py | 0.844794 | 0.231137 | dish.py | pypi |
from quick_resto_API.quick_resto_objects.modules.warehouse.store import Store
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class ProcessingInvoice(QuickRestoObject):
@property
def from_store(self) -> Store:
return self._from_store
@property
def document_... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/warehouse/processing_invoice.py | 0.845911 | 0.215764 | processing_invoice.py | pypi |
from quick_resto_API.quick_resto_objects.modules.core.measure_unit import MeasureUnit
from quick_resto_API.quick_resto_objects.modules.core.store_item_tag import StoreItemTag
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class SingleProduct(QuickRestoObject):
@property
de... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/warehouse/single_product.py | 0.875707 | 0.19309 | single_product.py | pypi |
from quick_resto_API.quick_resto_objects.modules.warehouse.store import Store
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class CookingInvoice(QuickRestoObject):
@property
def from_store(self) -> Store:
return self._from_store
@property
def document_num... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/warehouse/cooking_invoice.py | 0.847179 | 0.208582 | cooking_invoice.py | pypi |
from enum import Enum
from quick_resto_API.quick_resto_objects.modules.core.measure_unit import MeasureUnit
from quick_resto_API.quick_resto_objects.modules.core.store_item_tag import StoreItemTag
from quick_resto_API.quick_resto_objects.modules.warehouse.dish_sale import DishSale
from quick_resto_API.quick_resto_obje... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/warehouse/dish_category.py | 0.748904 | 0.151592 | dish_category.py | pypi |
from quick_resto_API.quick_resto_objects.modules.warehouse.outgoing_invoice import convert_str_to_customer_type, CustomerType
from quick_resto_API.quick_resto_objects.modules.warehouse.store import Store
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class DiscardInvoice(QuickRest... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/warehouse/discard_invoice.py | 0.86866 | 0.199425 | discard_invoice.py | pypi |
from quick_resto_API.quick_resto_objects.modules.core.measure_unit import MeasureUnit
from quick_resto_API.quick_resto_objects.modules.core.store_item_tag import StoreItemTag
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class SemiProduct(QuickRestoObject):
@property
def ... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/warehouse/semi_product.py | 0.859664 | 0.205236 | semi_product.py | pypi |
from quick_resto_API.quick_resto_objects.modules.warehouse.store import Store
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class InventoryDocument(QuickRestoObject):
@property
def document_number(self) -> str:
return self._document_number
@property
def i... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/warehouse/inventory_document.py | 0.86012 | 0.25719 | inventory_document.py | pypi |
from enum import Enum
from quick_resto_API.quick_resto_objects.modules.warehouse.store import Store
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class CustomerType(Enum):
PARTNER = "PARTNER"
GUEST = "GUEST"
EMPLOYEE = "EMPLOYEE"
NONE = "NONE"
StrToCustomerType... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/warehouse/outgoing_invoice.py | 0.839438 | 0.270145 | outgoing_invoice.py | pypi |
from quick_resto_API.quick_resto_objects.modules.front.table_scheme import TableScheme
from quick_resto_API.quick_resto_objects.modules.front.terminal import Terminal
from quick_resto_API.quick_resto_objects.modules.front.kkm_terminal import KkmTerminal
from quick_resto_API.quick_resto_objects.modules.warehouse.cooking... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/warehouse/sale_place.py | 0.669961 | 0.156459 | sale_place.py | pypi |
from quick_resto_API.quick_resto_objects.modules.core.measure_unit import MeasureUnit
from quick_resto_API.quick_resto_objects.modules.core.store_item_tag import StoreItemTag
from quick_resto_API.quick_resto_objects.modules.warehouse.dish_sale import DishSale
from quick_resto_API.quick_resto_objects.quick_resto_object ... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/warehouse/modifier.py | 0.822046 | 0.220007 | modifier.py | pypi |
from quick_resto_API.quick_resto_objects.modules.core.store_item_tag import StoreItemTag
from quick_resto_API.quick_resto_objects.modules.crm.account_type import AccountType
from quick_resto_API.quick_resto_objects.modules.crm.group import Group
from quick_resto_API.quick_resto_objects.modules.crm.markup import Day
fro... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/crm/bonus_program.py | 0.803482 | 0.156491 | bonus_program.py | pypi |
from quick_resto_API.quick_resto_objects.modules.core.store_item_tag import StoreItemTag
from quick_resto_API.quick_resto_objects.modules.crm.fixed_discount import convert_str_to_type_discount, TypeDiscount
from quick_resto_API.quick_resto_objects.modules.warehouse.dish import Dish
from quick_resto_API.quick_resto_obje... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/crm/markup.py | 0.813868 | 0.164584 | markup.py | pypi |
from datetime import date
from quick_resto_API.quick_resto_objects.modules.front.table import Table
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class PreorderInfo(QuickRestoObject):
@property
def cancellation_reason_comment(self) -> str:
return self._cancellati... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/front/preorder_info.py | 0.767036 | 0.174463 | preorder_info.py | pypi |
from quick_resto_API.quick_resto_objects.modules.front.table_scheme import TableScheme
from quick_resto_API.quick_resto_objects.modules.front.device_command import DeviceCommand
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class PosTerminal(QuickRestoObject):
@property
d... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/front/pos_terminal.py | 0.76856 | 0.180865 | pos_terminal.py | pypi |
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class RaspberryTerminal(QuickRestoObject):
@property
def code1_c(self) -> str:
return self._code1_c
@property
def device_id(self) -> str:
return self._device_id
@property
def mac_address(self)... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/front/raspberry_terminal.py | 0.870446 | 0.242475 | raspberry_terminal.py | pypi |
from quick_resto_API.quick_resto_objects.modules.front.table_scheme import TableScheme
from quick_resto_API.quick_resto_objects.modules.front.device_command import DeviceCommand
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class VirtualPosTerminal(QuickRestoObject):
@propert... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/front/virtual_pos_terminal.py | 0.774071 | 0.181553 | virtual_pos_terminal.py | pypi |
from enum import Enum
from quick_resto_API.quick_resto_objects.modules.front.kkm_terminal import KkmTerminal
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class ShiftStatus(Enum):
OPENED = "OPENED"
CLOSE = "CLOSE"
NONE = "NONE"
StrToShiftStatus = {
ShiftStatus.... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/front/shift.py | 0.789558 | 0.189259 | shift.py | pypi |
from enum import Enum
from quick_resto_API.quick_resto_objects.quick_resto_object import QuickRestoObject
class TableShape(Enum):
RECT = 'rect'
CIRCLE = 'circle'
NONE = 'NONE'
StrToTableShape = {
TableShape.RECT.value: TableShape.RECT,
TableShape.CIRCLE.value: TableShape.CIRCLE
}
def convert_s... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/front/table.py | 0.860296 | 0.286581 | table.py | pypi |
from quick_resto_API.quick_resto_objects.modules.warehouse.cooking_place import CookingPlace
from quick_resto_API.quick_resto_objects.modules.warehouse.dish import Dish
from quick_resto_API.quick_resto_objects.modules.warehouse.modifier import Modifier
from quick_resto_API.quick_resto_objects.modules.warehouse.dish_cat... | /quick_resto_API-1.2.6.tar.gz/quick_resto_API-1.2.6/quick_resto_API/quick_resto_objects/modules/front/order_item.py | 0.802323 | 0.259052 | order_item.py | pypi |
import json
import time
from typing import Any, Dict
try:
import requests # type: ignore
except ImportError:
pass
DELAY_INIT = 500.0
DELAY_MAX = 60 * 1000
DELAY_INC = 10.0
DELAY_MUL = 1.01
class WorkerError(ValueError):
def __init__(self, msg: str, status_code: int):
super().__init__(msg)
... | /quick_server-0.8.0.tar.gz/quick_server-0.8.0/src/quick_server/worker_request.py | 0.7324 | 0.180269 | worker_request.py | pypi |
import sys
from typing import Any, Dict, Optional
import requests
from .utils import load_config
def send_message(text: str, channel_id: Optional[str] = None, mention: bool = False) -> Dict[str, Any]:
"""
Send text to slack channel
:param text: (str) message to send
:param channel_id: (str) the cha... | /quick_slack-1.0.2b0-py3-none-any.whl/quick_slack/low_api.py | 0.670393 | 0.153137 | low_api.py | pypi |
#Quick Sql
<header>
<p>It's a python library written purely in Python to do faster and better sqlite operations</p>
<hr>
<h2> Why Quick Sqlite? </h2>
<ul>
<li>No need to write such a lengthy SQL code.</li>
<li>No need to create custom function for query.</li>
<li>Best for lightw... | /quick-sql-1.0.1.tar.gz/quick-sql-1.0.1/README.md | 0.5 | 0.744215 | README.md | pypi |
import json
import sqlite3
from typing import List
class DatabaseItem():
def __init__(self, key, value) -> None:
self.key = key
self.value = value
class Database():
"""
Quick-Sqlite-Database
"""
def __init__(self, path: str, db_name: str = "__default__", auto_init: any = None) -> N... | /quick-sqlite-database-0.0.4.tar.gz/quick-sqlite-database-0.0.4/quick_sqlite/__init__.py | 0.525125 | 0.151624 | __init__.py | pypi |
import sqlite3
import os
from cryptography.fernet import Fernet
from .column import Column
class QuickSqlite():
"""Class to use SQLite3.
Args:
db_path (str): The path to the database.
protect (bool): If True, the database will be encrypted.
key (str): The Fernet key to use for encrypt... | /quick_sqlite-1.5.tar.gz/quick_sqlite-1.5/quick_sqlite/quick_sqlite.py | 0.762866 | 0.185209 | quick_sqlite.py | pypi |
from os import system
from time import strftime
# enabling ansi codes for windows cmd
system("")
valid_args = ["color", "bgcolor", "styles", "modifier", "custom_code"]
color_codes = {
# color: (fg, bg),
"black": (30, 40),
"red": (31, 41),
"green": (32, 42),
"yellow": (33, 43),
"blue": (34, 44... | /quick_styles-1.0.2.tar.gz/quick_styles-1.0.2/quick_styles/functions.py | 0.4917 | 0.342297 | functions.py | pypi |
from quick_topic.topic_transition.transition_by_year_term import *
from quick_topic.topic_transition.divide_by_year import *
'''
Estimate the topic transition over time
'''
def gui_term_transition_year(
meta_csv_file="datasets_paper/list_paper.csv",
raw_text_folder = r"datasets_paper/raw_text",
out... | /quick-topic-1.0.2.tar.gz/quick-topic-1.0.2/src/quick_topic/gui_functions/gui_topic_transition_term_year.py | 0.475118 | 0.261646 | gui_topic_transition_term_year.py | pypi |
from __future__ import annotations
from typing import Dict
from typing import Iterable
from typing import List
from typing import Union
from plotly.graph_objs import Figure
from plotly.graph_objs import Scatter
from plotly.subplots import make_subplots
from . import utils
def make_figure(height: Union[int, float] ... | /quick_trade-7.9.7.tar.gz/quick_trade-7.9.7/quick_trade/plots.py | 0.936052 | 0.279607 | plots.py | pypi |
import numpy as np
import pandas as pd
import ta.volatility
from numpy import nan
from pandas import DataFrame
from pandas import Series
from ta.volatility import AverageTrueRange
from .utils import BUY, SELL
from typing import Union
class Indicator:
pass
class SuperTrendIndicator(Indicator):
"""
Supertre... | /quick_trade-7.9.7.tar.gz/quick_trade-7.9.7/quick_trade/indicators.py | 0.854035 | 0.438905 | indicators.py | pypi |
from ccxt import Exchange, binance
from pandas import DataFrame
from . import utils
class TradingClient(object):
ordered: bool = False
__side__: str
ticker: str
cls_open_orders: int = 0
base: str
quote: str
__quantity__: float
trading: bool
def __init__(self, client: Exchange = N... | /quick_trade-7.9.7.tar.gz/quick_trade-7.9.7/quick_trade/brokers.py | 0.532668 | 0.198084 | brokers.py | pypi |
from __future__ import annotations
from itertools import product
from typing import Any
from typing import Dict
from typing import Iterable
from typing import List
from typing import Tuple
from numpy import arange
from numpy import linspace
from pandas import DataFrame
from tqdm import tqdm
from .core import Tunable... | /quick_trade-7.9.7.tar.gz/quick_trade-7.9.7/quick_trade/tuner/tuner.py | 0.795698 | 0.267617 | tuner.py | pypi |
from __future__ import annotations
from warnings import warn
import numpy as np
from typing import Dict, Iterable, Any, List, Tuple
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
from sklearn.cluster import AffinityPropagation
import ccxt
from ..._saving import Buffer, check_make_dir
from ...brok... | /quick_trade-7.9.7.tar.gz/quick_trade-7.9.7/quick_trade/tuner/avoid_overfitting/volatility.py | 0.840619 | 0.260813 | volatility.py | pypi |
import pandas as pd
from ..tuner import QuickTradeTuner
from typing import Union
from ..._saving import read_json
from ..core import resort_tunes
from ...plots import ValidationAnalysisGraph
from typing import Dict, Iterable, List, Any
from ...brokers import TradingClient
from copy import deepcopy
class Analyzer(obje... | /quick_trade-7.9.7.tar.gz/quick_trade-7.9.7/quick_trade/tuner/avoid_overfitting/validation_analysis.py | 0.810028 | 0.270706 | validation_analysis.py | pypi |
from __future__ import annotations
import numpy as np
import pandas as pd
from tqdm.auto import tqdm
from ...tuner import bests_to_config
from ..tuner import QuickTradeTuner
from ...trading_sys import Trader
from ...brokers import TradingClient
from ... import utils
class InSample:
def __init__(self, tuner: Qui... | /quick_trade-7.9.7.tar.gz/quick_trade-7.9.7/quick_trade/tuner/avoid_overfitting/walkforward.py | 0.637482 | 0.170612 | walkforward.py | pypi |
import os
import time
import zipfile as zf
from pathlib import Path
from typing import List
from quick_zip.core.settings import console, settings
from quick_zip.schema.backup_job import BackupJob, BackupResults
from quick_zip.services import checker, ui
from quick_zip.utils import fstats
from rich.columns import Colum... | /quick_zip-0.1.9.tar.gz/quick_zip-0.1.9/quick_zip/services/zipper.py | 0.468547 | 0.261761 | zipper.py | pypi |
from __future__ import annotations
import re
from pathlib import Path
from typing import Any, List, Optional
import toml
import typer
from pydantic import BaseModel
from quick_zip.core.settings import console, settings
from quick_zip.schema.file_system import FileStat
def get_default(attribute_name: str, fall_back:... | /quick_zip-0.1.9.tar.gz/quick_zip-0.1.9/quick_zip/schema/backup_job.py | 0.814348 | 0.222257 | backup_job.py | pypi |
import select
from quick2wire.syscall import SelfClosing
from quick2wire.eventfd import Semaphore
from quick2wire.timerfd import Timer
INPUT = select.EPOLLIN
OUTPUT = select.EPOLLOUT
ERROR = select.EPOLLERR
HANGUP = select.EPOLLHUP
PRIORITY_INPUT = select.EPOLLPRI
LEVEL = 0
EDGE = 1
class Selector(SelfClosing):
... | /quick2wire-api-0.0.0.2.tar.gz/quick2wire-api-0.0.0.2/quick2wire/selector.py | 0.713332 | 0.300348 | selector.py | pypi |
from ctypes import *
import quick2wire.syscall as syscall
import os
import errno
# From sys/eventfd.h
EFD_SEMAPHORE = 1
EFD_CLOEXEC = 0o2000000
EFD_NONBLOCK = 0o4000
_libc = CDLL(None, use_errno=True)
eventfd_t = c_uint64
eventfd = syscall.lookup(c_int, "eventfd", (c_uint, c_int))
class Semaphore(syscall.SelfClo... | /quick2wire-api-0.0.0.2.tar.gz/quick2wire-api-0.0.0.2/quick2wire/eventfd.py | 0.448668 | 0.216074 | eventfd.py | pypi |
import sys
from ctypes import addressof, create_string_buffer, sizeof, string_at
import struct
import posix
from fcntl import ioctl
from quick2wire.spi_ctypes import *
from quick2wire.spi_ctypes import spi_ioc_transfer, SPI_IOC_MESSAGE
assert sys.version_info.major >= 3, __name__ + " is only supported on Python 3"
c... | /quick2wire-api-0.0.0.2.tar.gz/quick2wire-api-0.0.0.2/quick2wire/spi.py | 0.589244 | 0.455138 | spi.py | pypi |
from quick2wire.i2c import writing_bytes, reading
from quick2wire.gpio import Out, In
BASE_ADDRESS = 0x48
FOUR_SINGLE_ENDED = 0
THREE_DIFFERENTIAL = 1
SINGLE_ENDED_AND_DIFFERENTIAL = 2
TWO_DIFFERENTIAL = 3
_ANALOGUE_OUTPUT_ENABLE_FLAG = 1 << 6
class PCF8591(object):
"""API to query and control an PCF8591 A/D ... | /quick2wire-api-0.0.0.2.tar.gz/quick2wire-api-0.0.0.2/quick2wire/parts/pcf8591.py | 0.722233 | 0.259166 | pcf8591.py | pypi |
import contextlib
from warnings import warn
from quick2wire.gpio import PinAPI, PinBankAPI
# TODO - import from GPIO or common definitions module
In = "in"
Out = "out"
# Bits within the IOCON regiseter
IOCON_INTPOL=1
IOCON_ODR=2
IOCON_MIRROR=6
# Register names within a bank
IODIR=0
IPOL=1
GPINTEN=2
DEFVAL=3
INTCON=4... | /quick2wire-api-0.0.0.2.tar.gz/quick2wire-api-0.0.0.2/quick2wire/parts/mcp23x17.py | 0.419648 | 0.209814 | mcp23x17.py | pypi |
from quick2wire.i2c import writing_bytes, reading
import quick2wire.parts.mcp23x17 as mcp23x17
from quick2wire.parts.mcp23x17 import deferred_read, immediate_read, deferred_write, immediate_write, In, Out
class MCP23017(mcp23x17.PinBanks):
"""Application programming interface to the MCP23017 GPIO extender"""
... | /quick2wire-api-0.0.0.2.tar.gz/quick2wire-api-0.0.0.2/quick2wire/parts/mcp23017.py | 0.734881 | 0.532851 | mcp23017.py | pypi |
import select
from quick2wire.syscall import SelfClosing
from quick2wire.eventfd import Semaphore
from quick2wire.timerfd import Timer
INPUT = select.EPOLLIN
OUTPUT = select.EPOLLOUT
ERROR = select.EPOLLERR
HANGUP = select.EPOLLHUP
PRIORITY_INPUT = select.EPOLLPRI
LEVEL = 0
EDGE = 1
class Selector(SelfClosing):
... | /quick2wire-peque-0.0.1.tar.gz/quick2wire-peque-0.0.1/quick2wire/selector.py | 0.713332 | 0.300348 | selector.py | pypi |
from ctypes import *
import quick2wire.syscall as syscall
import os
import errno
# From sys/eventfd.h
EFD_SEMAPHORE = 1
EFD_CLOEXEC = 0o2000000
EFD_NONBLOCK = 0o4000
_libc = CDLL(None, use_errno=True)
eventfd_t = c_uint64
eventfd = syscall.lookup(c_int, "eventfd", (c_uint, c_int))
class Semaphore(syscall.SelfClo... | /quick2wire-peque-0.0.1.tar.gz/quick2wire-peque-0.0.1/quick2wire/eventfd.py | 0.448668 | 0.216074 | eventfd.py | pypi |
import sys
from ctypes import addressof, create_string_buffer, sizeof, string_at
import struct
import posix
from fcntl import ioctl
from quick2wire.spi_ctypes import *
from quick2wire.spi_ctypes import spi_ioc_transfer, SPI_IOC_MESSAGE
class SPIDevice:
"""Communicates with a hardware device over an SPI bus.
... | /quick2wire-peque-0.0.1.tar.gz/quick2wire-peque-0.0.1/quick2wire/spi.py | 0.602529 | 0.407098 | spi.py | pypi |
from quick2wire.i2c import writing_bytes, reading
from quick2wire.gpio import Out, In
BASE_ADDRESS = 0x48
FOUR_SINGLE_ENDED = 0
THREE_DIFFERENTIAL = 1
SINGLE_ENDED_AND_DIFFERENTIAL = 2
TWO_DIFFERENTIAL = 3
_ANALOGUE_OUTPUT_ENABLE_FLAG = 1 << 6
class PCF8591(object):
"""API to query and control an PCF8591 A/D ... | /quick2wire-peque-0.0.1.tar.gz/quick2wire-peque-0.0.1/quick2wire/parts/pcf8591.py | 0.722233 | 0.259166 | pcf8591.py | pypi |
import contextlib
from warnings import warn
from quick2wire.gpio import PinAPI, PinBankAPI
# TODO - import from GPIO or common definitions module
In = "in"
Out = "out"
# Bits within the IOCON regiseter
IOCON_INTPOL=1
IOCON_ODR=2
IOCON_MIRROR=6
# Register names within a bank
IODIR=0
IPOL=1
GPINTEN=2
DEFVAL=3
INTCON=4... | /quick2wire-peque-0.0.1.tar.gz/quick2wire-peque-0.0.1/quick2wire/parts/mcp23x17.py | 0.419648 | 0.209814 | mcp23x17.py | pypi |
from quick2wire.i2c import writing_bytes, reading
import quick2wire.parts.mcp23x17 as mcp23x17
from quick2wire.parts.mcp23x17 import deferred_read, immediate_read, deferred_write, immediate_write, In, Out
class MCP23017(mcp23x17.PinBanks):
"""Application programming interface to the MCP23017 GPIO extender"""
... | /quick2wire-peque-0.0.1.tar.gz/quick2wire-peque-0.0.1/quick2wire/parts/mcp23017.py | 0.734881 | 0.532851 | mcp23017.py | pypi |
from quickBayes.functions.base import BaseFitFunction
from numpy import ndarray
import numpy as np
from typing import Dict, List
class CompositeFunction(BaseFitFunction):
def __init__(self, prefix: str = ''):
"""
Defines a function to wrap a sum of functions
:param prefix: the prefix for p... | /fit_functions/composite_fun.py | 0.907981 | 0.614828 | composite_fun.py | pypi |
from quickBayes.functions.base import BaseFitFunction
from numpy import ndarray, pi
from typing import Dict, List
class Lorentzian(BaseFitFunction):
def __init__(self, prefix: str = ''):
"""
Create a Lorentzian function
:param prefix: the prefix for the parameters
"""
super... | /fit_functions/lorentz.py | 0.949342 | 0.695942 | lorentz.py | pypi |
from quickBayes.functions.base import BaseFitFunction
from quickBayes.functions.qe_function import QEFunction
from quickBayes.functions.lorentz import Lorentzian
from numpy import ndarray
from math import sqrt
from typing import Dict, List
class QlDataFunction(QEFunction):
def __init__(self, bg_function: BaseFitF... | /fit_functions/qldata_function.py | 0.938618 | 0.803405 | qldata_function.py | pypi |
from quickBayes.functions.base import BaseFitFunction
from quickBayes.functions.composite import CompositeFunction
from quickBayes.utils.crop_data import crop
from quickBayes.utils.spline import spline
from numpy import ndarray
from scipy import signal
import copy
class ConvolutionWithResolution(CompositeFunction):
... | /fit_functions/conv_with_res.py | 0.934298 | 0.640861 | conv_with_res.py | pypi |
from typing import Dict, List
from abc import ABC, abstractmethod
from numpy import ndarray
"""
There are no direct tests for this class.
This is because all of the functionality
is tested by the classes that inherit
from it
"""
class BaseFitFunction(ABC):
"""
A basic class outline for fit functions
"""... | /fit_functions/base.py | 0.894962 | 0.663361 | base.py | pypi |
from quickBayes.functions.base import BaseFitFunction
from numpy import ndarray
import numpy as np
from typing import Dict, List
class ExpDecay(BaseFitFunction):
def __init__(self, prefix: str = ''):
"""
Create an exponential decay function
:param prefix: prefix for parameter reporting
... | /fit_functions/exp_decay.py | 0.947986 | 0.62223 | exp_decay.py | pypi |
from quickBayes.functions.SE import StretchExp
from numpy import ndarray
from typing import Dict, List
class StretchExpWithFixes(StretchExp):
def __init__(self, FWHM: float = 0.2, beta: float = 0.8, prefix: str = ''):
"""
Create a stretched exponential function with 2 fixed parameters.
:pa... | /fit_functions/stretch_exp_fixed.py | 0.946324 | 0.724091 | stretch_exp_fixed.py | pypi |
from quickBayes.functions.base import BaseFitFunction
from numpy import ndarray
import numpy as np
from typing import Dict, List
from scipy.fftpack import fft, fftfreq
from scipy.special import gamma
from scipy import constants
"""
This code is taken from the open source code
Mantid.
https://github.com/mantidproject/... | /fit_functions/stretch_exp.py | 0.976186 | 0.621986 | stretch_exp.py | pypi |
from quickBayes.functions.base import BaseFitFunction
from numpy import ndarray
import numpy as np
from typing import Dict, List
class NoBG(BaseFitFunction):
def __init__(self, prefix: str = ''):
"""
:param prefix: prefix for function parameters in report
"""
super().__init__(0, pr... | /fit_functions/BG.py | 0.943556 | 0.701243 | BG.py | pypi |
from quickBayes.functions.base import BaseFitFunction
from numpy import ndarray
import numpy as np
from typing import Dict, List
class Delta(BaseFitFunction):
def __init__(self, prefix: str = ''):
"""
Strictly this is not a true delta function.
Instead it is a top hat function, which
... | /fit_functions/delta_function.py | 0.933688 | 0.67702 | delta_function.py | pypi |
from quickBayes.functions.base import BaseFitFunction
from numpy import ndarray, pi
import numpy as np
from typing import Dict, List
class Gaussian(BaseFitFunction):
def __init__(self, prefix: str = ''):
"""
Create a gaussian function
:param prefix: prefix for parameter reporting
"... | /fit_functions/gaussian.py | 0.951796 | 0.660693 | gaussian.py | pypi |
from quickBayes.functions.base import BaseFitFunction
from quickBayes.functions.qe_function import QEFunction
from quickBayes.functions.SE import StretchExp
from numpy import ndarray
import copy
from typing import List
class QSEFunction(QEFunction):
def __init__(self, bg_function: BaseFitFunction, elastic_peak: b... | /fit_functions/qse.py | 0.928116 | 0.74001 | qse.py | pypi |
from quickBayes.functions.SE_fix import StretchExpWithFixes
from quickBayes.functions.base import BaseFitFunction
from quickBayes.functions.qse_function import QSEFunction
from numpy import ndarray
from typing import List
class QSEFixFunction(QSEFunction):
def __init__(self, bg_function: BaseFitFunction, elastic... | /fit_functions/qse_fixed.py | 0.943295 | 0.706355 | qse_fixed.py | pypi |
import torch
import torch.nn as nn
from quickNat_pytorch.net_api import sub_module as sm
class quickNAT(nn.Module):
"""
A PyTorch implementation of QuickNAT
Coded by Abhijit
param ={
'num_channels':1,
'num_filters':64,
'kernel_h':5,
'kernel_w':5,
'stride_conv':... | /quickNAT-pytorch-1.3.tar.gz/quickNAT-pytorch-1.3/quickNat_pytorch/quickNAT.py | 0.895543 | 0.499756 | quickNAT.py | pypi |
import torch
import numpy as np
from torch.nn.modules.loss import _Loss
from torch.autograd import Function, Variable
import torch.nn as nn
import torch.nn.functional as F
class DiceCoeff(nn.Module):
"""Dice coeff for individual examples"""
def __init__(self):
super(DiceCoeff, self).__init__()
d... | /quickNAT-pytorch-1.3.tar.gz/quickNAT-pytorch-1.3/quickNat_pytorch/net_api/losses.py | 0.91805 | 0.572424 | losses.py | pypi |
import torch
import torch.nn as nn
class DenseBlock(nn.Module):
'''
param ={
'num_channels':1,
'num_filters':64,
'kernel_h':5,
'kernel_w':5,
'stride_conv':1,
'pool':2,
'stride_pool':2,
'num_classes':28
}
'''
def __init__(self, param... | /quickNAT-pytorch-1.3.tar.gz/quickNAT-pytorch-1.3/quickNat_pytorch/net_api/sub_module.py | 0.935428 | 0.368946 | sub_module.py | pypi |
import requests
from quickbase_client.utils.string_utils import normalize_hostname
class QuickbaseLegacyApiClient:
"""Legacy Client which makes requests to the old XML API.
This operates more generically to send any request to the old API. It's primary
purpose is to supplement the JSON API for things no... | /quickbase_client-0.6.3-py3-none-any.whl/quickbase_client/client/legacy_client.py | 0.675122 | 0.24362 | legacy_client.py | pypi |
from typing import Any
from typing import List
from typing import Type
from typing import Union
from quickbase_client import ResponsePager
from quickbase_client.client.api import QuickbaseApiClient
from quickbase_client.orm.field import QuickbaseField
from quickbase_client.orm.report import QuickbaseReport
from quickb... | /quickbase_client-0.6.3-py3-none-any.whl/quickbase_client/client/table_client.py | 0.926549 | 0.200812 | table_client.py | pypi |
import keyword
import re
import string
from collections import namedtuple
from unicodedata import combining
from unicodedata import normalize
from urllib.parse import urlparse
import stringcase
VarMakerStrategy = namedtuple("VarMakerStrategy", "case_func,special_replacer")
_case_map = {
"snake": VarMakerStrategy... | /quickbase_client-0.6.3-py3-none-any.whl/quickbase_client/utils/string_utils.py | 0.428353 | 0.282139 | string_utils.py | pypi |
import logging
import threading
from datetime import datetime
from quickbase_client import QuickbaseTableClient
_mock_record = logging.LogRecord(
name="", level=0, pathname="", lineno=1, msg="", args=None, exc_info=None
)
class QuickbaseLogHandler(logging.Handler):
"""Class for sending logs to a specific Qu... | /quickbase_client-0.6.3-py3-none-any.whl/quickbase_client/tools/log_handler.py | 0.673514 | 0.224225 | log_handler.py | pypi |
from quickbase_client.query.query_base import QuickbaseQuery
from quickbase_client.query.query_utils import make_query_string
def qb_query_ast(func):
def _wrap(*args, **kwargs):
return QuickbaseQuery(where=func(*args, **kwargs))
return _wrap
def _conjunction(kind, *clauses):
return f"({kind.joi... | /quickbase_client-0.6.3-py3-none-any.whl/quickbase_client/query/ast.py | 0.670824 | 0.274107 | ast.py | pypi |
import datetime
import json
import os
import hashlib
import requests
from quickbase_json.helpers import FileUpload, Where, QBFile, split_list_into_chunks
from quickbase_json.qb_insert_update_response import QBInsertResponse
from quickbase_json.qb_response import QBQueryResponse
QUERY_CACHE = 'query_cache'
try:
... | /quickbase-json-api-client-0.3.0.tar.gz/quickbase-json-api-client-0.3.0/src/quickbase_json/client.py | 0.590189 | 0.173323 | client.py | pypi |
import asyncio
import time
from copy import deepcopy
from datetime import datetime, timezone
from operator import itemgetter
from pathlib import Path
from typing import Any
import orjson
import pypeln as pl
from aiohttp import ClientSession, FormData, TCPConnector
import quickbolt.reporting.response_csv as rc
import ... | /clients/aio_requests.py | 0.772058 | 0.268234 | aio_requests.py | pypi |
import asyncio
import time
from copy import deepcopy
from datetime import datetime, timezone
from operator import itemgetter
from typing import Any
import aiofiles.os as aos
import pypeln as pl
from httpx import AsyncClient
import quickbolt.reporting.response_csv as rc
import quickbolt.utils.json as jh
import quickbo... | /clients/httpx_requests.py | 0.763748 | 0.196768 | httpx_requests.py | pypi |
<h1 align="center">
<img src="https://github.com/CG1507/quickcnn/blob/master/images/logo.png" width="900" alt="QuickCNN">
</h1>
QuickCNN is high-level library written in Python, and backed by the [Keras](https://github.com/keras-team/keras), [TensorFlow](https://github.com/tensorflow/tensorflow), and [Scikit-learn](... | /quickcnn-0.0.12.tar.gz/quickcnn-0.0.12/README.md | 0.781747 | 0.980766 | README.md | pypi |
from arpa2.quickder_tools import packstx as api
class dprint(object):
"""
Simple debugging-print object; looks like a print statement.
Instantiate this with a format string and optional arguments,
like so:
dprint("foo", bar)
if the format string does not contain a % (like here, then the
... | /quickder.itu-1.4.0-py3-none-any.whl/arpa2/quickder_tools/util.py | 0.484624 | 0.204064 | util.py | pypi |
from six import StringIO
from os import path
import logging
logger = logging.getLogger(__name__)
from asn1ate.sema import DefinedType, ValueAssignment, TypeAssignment, TaggedType, SimpleType, BitStringType, \
ValueListType, SequenceType, SetType, ChoiceType, SequenceOfType, SetOfType, ComponentType, dependency_so... | /quickder.itu-1.4.0-py3-none-any.whl/arpa2/quickder_tools/generators/source.py | 0.418935 | 0.238772 | source.py | pypi |
from arpa2.quickder_tools import packstx as api
class dprint(object):
"""
Simple debugging-print object; looks like a print statement.
Instantiate this with a format string and optional arguments,
like so:
dprint("foo", bar)
if the format string does not contain a % (like here, then the
... | /quickder.rfc-1.4.0-py3-none-any.whl/arpa2/quickder_tools/util.py | 0.484624 | 0.204064 | util.py | pypi |
from six import StringIO
from os import path
import logging
logger = logging.getLogger(__name__)
from asn1ate.sema import DefinedType, ValueAssignment, TypeAssignment, TaggedType, SimpleType, BitStringType, \
ValueListType, SequenceType, SetType, ChoiceType, SequenceOfType, SetOfType, ComponentType, dependency_so... | /quickder.rfc-1.4.0-py3-none-any.whl/arpa2/quickder_tools/generators/source.py | 0.418935 | 0.238772 | source.py | pypi |
# QuickFS API SDK
[](https://www.python.org/)
[](https://shields.io/) 
**Contents**
1... | /quickfs-0.1.1.tar.gz/quickfs-0.1.1/README.md | 0.870803 | 0.918845 | README.md | pypi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.