id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Nagababu_Django_Webapps-0.0.2-py3-none-any.whl/webapp3/migrations/0001_initial.py
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( ...
PypiClean
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/baselib/specparser/SpecParser.py
from JumpScale import j from SpecModelActorsGenerator import SpecModelActorsGenerator class Specbase(j.code.classGetBase()): def __init__(self,linenr): self.name="" self.description="" self.tags="" self.comment="" self.linenr=linenr def addDefaults(self): pass ...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/chart.js/Chart.min.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(function(){try{return require("moment")}catch(t){}}()):"function"==typeof define&&define.amd?define(["require"],(function(t){return e(function(){try{return t("moment")}catch(t){}}())})):(t=t||self).Chart=e(t.moment)}(this,(function(t){...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/xinha/plugins/ImageManager/assets/wz_jsgraphics.js
var jg_ihtm,jg_ie,jg_dom,jg_n4=(document.layers&&typeof document.classes!="undefined");function chkDHTM(a,b){a=document.body||null;jg_ie=(a&&typeof a.insertAdjacentHTML!="undefined");jg_dom=(a&&!jg_ie&&typeof a.appendChild!="undefined"&&typeof document.createRange!="undefined"&&typeof(b=document.createRange()).setStart...
PypiClean
/CharGer-0.5.2.tar.gz/CharGer-0.5.2/README.md
# CharGer Characterization of Germline variants ## Install pip install . ## Configure Add the following to your PATH environment (add it in ~/.bash_profile or ~/.bashrc) export PATH="/path/to/charger/bin:${PATH}" ## Run Example for a VCF file charger -f <variant file> -o <output file> ## For Help Run: charge...
PypiClean
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/sequence_clusters/treefam/extract_families_of_species.py
__author__ = 'Sergei F. Kliver' """ Tested on treefam database 9. Species with problems during extracting: UNSOLVED: uncommon format in treefam database(even ids were not extracted), solution - write custom scripts for extraction bursaphelenchus_xylophilus capitella_teleta helobdella_robusta...
PypiClean
/Appium-Python-Client-2.11.1.tar.gz/Appium-Python-Client-2.11.1/appium/webdriver/extensions/android/gsm.py
# 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, software # distributed under t...
PypiClean
/Flask-ULID-0.1.1.tar.gz/Flask-ULID-0.1.1/README.md
# What is this? This is a Flask extension to deal URL with [ULID](https://github.com/ulid/spec). # How to install $ pip install flask-ulid # How to use ## Wrap Flask app ```python from flask import Flask from flask_ulid import FlaskULID app = Flask(__name__) FlaskULID(app) @app.route('/article/<ulid:article_i...
PypiClean
/FactoringRuc-1.0.1.tar.gz/FactoringRuc-1.0.1/README.md
# Factoring Total [![PyPI version](https://badge.fury.io/py/FactoringRuc.svg)](https://pypi.org/project/FactoringRuc/1.0.0/) ## Descripción Libreria para obtener datos basicos desde la SUNAT ## Instalación ``` pip install FactoringRuc ``` ## Uso básico ```python from factoring_ruc import ConsultaRuc cr = Consulta...
PypiClean
/Discord%20Anti-Spam-1.8.1.tar.gz/Discord Anti-Spam-1.8.1/antispam/caches/memory/memory.py
import logging from typing import AsyncIterable from antispam import dataclasses, exceptions from antispam.abc import Cache from antispam.enums import ResetType log = logging.getLogger(__name__) class MemoryCache(Cache): def __init__(self, handler): self.handler = handler self.cache = {} ...
PypiClean
/Maxar_Portal_SDK-1.1.2-py3-none-any.whl/Maxar_Portal_SDK/account_service/usage.py
import requests import warnings import Maxar_Portal_SDK.process as process warnings.filterwarnings('ignore') class Usage: def __init__(self, auth): self.base_url = auth.api_base_url self.auth = auth def get_usage(self, activation_id=None): """ Function returns the usage for a...
PypiClean
/OPi.GPIO-0.5.2.tar.gz/OPi.GPIO-0.5.2/OPi/sysfs.py
from contextlib import contextmanager from OPi.constants import HIGH, LOW, IN, OUT, \ NONE, RISING, FALLING, BOTH import os import time # Allow to wait up to 1 second for the file have the correct permissions WAIT_PERMISSION_TIMEOUT = 1. def await_permissions(path): start_time = time.time() def timed_...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/popup/plugin.js
CKEDITOR.plugins.add( 'popup' ); CKEDITOR.tools.extend( CKEDITOR.editor.prototype, { /** * Opens Browser in a popup. The `width` and `height` parameters accept * numbers (pixels) or percent (of screen size) values. * * @member CKEDITOR.editor * @param {String} url The url of the external file browser. * @...
PypiClean
/IOT3ApiClient-1.0.0.tar.gz/IOT3ApiClient-1.0.0/requests/api.py
from . import sessions def request(method, url, **kwargs): """Constructs and sends a :class:`Request <Request>`. :param method: method for the new :class:`Request` object: ``GET``, ``OPTIONS``, ``HEAD``, ``POST``, ``PUT``, ``PATCH``, or ``DELETE``. :param url: URL for the new :class:`Request` object. ...
PypiClean
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/doctrees/nbsphinx/cond_tutorial_new.ipynb
# Tutorial for Conductivity module ``` # import the necessary packages along with HavNegpy import numpy as np import pandas as pd import matplotlib.pyplot as plt import os import HavNegpy as dd %matplotlib qt # extract the data filename = 'cond_example_data.txt' col_names = ['Freq','Sig1','Sig2'] df = pd.read_csv(f...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mvc/_DataBindingMixin.js
define("dojox/mvc/_DataBindingMixin",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/Stateful","dijit/registry"],function(_1,_2,_3,_4,_5){ return _3("dojox.mvc._DataBindingMixin",null,{ref:null,isValid:function(){ return this.get("binding")?this.get("binding").get("valid"):true; },_dbstartup:function()...
PypiClean
/FLaP-0.6.0.tar.gz/FLaP-0.6.0/flap/util/oofs.py
import os from flap.util.path import Path, ROOT class File: def __init__(self, file_system, path, content): assert path, "Invalid path (found '%s')" % path.full() self.fileSystem = file_system self._path = path self._content = content @staticmethod def is_file(): ...
PypiClean
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct16.py
pairs=""" 130 194 58 74 80 211 151 4 47 173 213 112 9 30 170 86 105 77 115 38 1 115 12 52 137 193 122 134 99 205 66 71 18 145 198 155 135 61 168 3 16 119 78 169 150 160 204 138 178 195 124 192 73 19 167 81 189 7 56 37 63 90 64 91 93 64 123 65 141 17 84 27 205 94 136 182 113 161 133 73 57 145 208 55 26 100 123 204 83 16...
PypiClean
/Amino.ed-2.8.4.13.tar.gz/Amino.ed-2.8.4.13/aminoed/helpers/types.py
GLOBAL_ID = 0 class CallTypes: NONE: int = 0 VOICE: int = 1 VIDEO: int = 2 AVATAR: int = 3 SCREEN_ROOM: int = 4 class GenderTypes: MALE: int = 1 FAMALE: int = 2 NONE: int = 255 class CallPermissionTypes: OPEN_TO_EVERYONE: int = 1 JOIN_REQUEST: int =...
PypiClean
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/lib/ddsfile.py
from struct import pack, unpack, calcsize # DDSURFACEDESC2 dwFlags DDSD_CAPS = 0x00000001 DDSD_HEIGHT = 0x00000002 DDSD_WIDTH = 0x00000004 DDSD_PITCH = 0x00000008 DDSD_PIXELFORMAT = 0x00001000 DDSD_MIPMAPCOUNT = 0x00020000 DDSD_LINEAR...
PypiClean
/LiPD-0.2.8.9.tar.gz/LiPD-0.2.8.9/docs/_build/html/source/readme.html
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>LiPD &mdash; LiPD_Utilities documentation</ti...
PypiClean
/MIAvisual-0.0.6-py3-none-any.whl/matplotlib/lines.py
from numbers import Integral, Number, Real import logging import numpy as np import matplotlib as mpl from . import _api, artist, cbook, colors as mcolors, docstring, rcParams from .artist import Artist, allow_rasterization from .cbook import ( _to_unmasked_float_array, ls_mapper, ls_mapper_r, STEP_LOOKUP_MAP) fr...
PypiClean
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/glances/exports/glances_mqtt.py
import socket import string import sys from glances.logger import logger from glances.exports.glances_export import GlancesExport from glances.globals import json_dumps # Import paho for MQTT from requests import certs import paho.mqtt.client as paho class Export(GlancesExport): """This class manages the MQTT ...
PypiClean
/Makima-0.1.9.1-py3-none-any.whl/makima/windows/utils/keyboard.py
import ctypes from time import sleep from makima.windows.call_win_api.i_keyboard import IKeyboard, Key send_input = ctypes.windll.user32.SendInput pointer_unsigned_long = ctypes.POINTER(ctypes.c_ulong) class KeyboardInput(ctypes.Structure): """ Keyboard input C struct definition. """ _fields_ = [("...
PypiClean
/ChemDataExtractor-1.3.0-py3-none-any.whl/chemdataextractor/cli/dict.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import re import sys import click from ..nlp.lexicon import ChemLexicon from ..nlp.tokenize import ChemWordTokenizer from ..nlp.tag import DictionaryTagger from ..nlp.cem import CsDictCemTagger, CiDictCemTagge...
PypiClean
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcontrol/controller/ImConMainController.py
import dataclasses import h5py from imswitch.imcommon.controller import MainController, PickDatasetsController from imswitch.imcommon.model import ( ostools, initLogger, generateAPI, generateShortcuts, SharedAttributes ) from imswitch.imcommon.framework import Thread from .server import ImSwitchServer from imswit...
PypiClean
/Flask-Assistant-0.5.4.tar.gz/Flask-Assistant-0.5.4/api_ai/models.py
import json import re class Entity(): """docstring for Entity""" def __init__(self, name=None, entity_json=None): if name and not entity_json: self.name = name self.entries = [] self.isEnum = None self.id = None elif entity_json: s...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/detective/index.js
var acorn = require('acorn-node'); var walk = require('acorn-node/walk'); var defined = require('defined'); var requireRe = /\brequire\b/; function parse (src, opts) { if (!opts) opts = {}; var acornOpts = { ranges: defined(opts.ranges, opts.range), locations: defined(opts.locations, opts.loc)...
PypiClean
/CherwellAPI-1.3.9.tar.gz/CherwellAPI-1.3.9/Examples/Example_Token Usage.py
from __future__ import print_function from CherwellAPI import CherwellClient import pickle import time ######################################################################################### # This example demonstrates the use of the REST API token that's retrieved from the Cherwell # Server. The token contains a be...
PypiClean
/Aqualid-0.7.tar.gz/Aqualid-0.7/modules/aqualid/tools/rsync.py
import sys import os.path import itertools import aql # ============================================================================== class ErrorNoCommonSourcesDir(Exception): def __init__(self, sources): msg = "Can't rsync disjoined files: %s" % (sources,) super(ErrorNoCommonSourcesDir, self)...
PypiClean
/Flask-UndoRedo-1.1.1.tar.gz/Flask-UndoRedo-1.1.1/flask_undoredo.py
import json import enum from sqlalchemy import ( Column, Boolean, Integer, String, create_engine, and_, event, func, ) from sqlalchemy.engine.default import DefaultDialect from sqlalchemy.orm import sessionmaker, scoped_session from sqlalchemy.sql import dml, select, delete from sqlalc...
PypiClean
/Flask-BasicAuth-0.2.0.tar.gz/Flask-BasicAuth-0.2.0/docs/index.rst
Flask-BasicAuth =============== Flask-BasicAuth is a Flask extension that provides an easy way to protect certain views or your whole application with HTTP `basic access authentication`_. .. _basic access authentication: http://en.wikipedia.org/wiki/Basic_access_authentication Installation ------------ The easiest...
PypiClean
/HDXrate-0.2.0.tar.gz/HDXrate-0.2.0/README.rst
======= HDXrate ======= .. image:: https://img.shields.io/pypi/v/hdxrate.svg :target: https://pypi.python.org/pypi/hdxrate .. image:: https://img.shields.io/travis/Jhsmit/hdxrate.svg :target: https://travis-ci.com/Jhsmit/hdxrate .. image:: https://readthedocs.org/projects/hdxrate/badge/?version=late...
PypiClean
/Artist-Engineering_Geek-0.1.0.tar.gz/Artist-Engineering_Geek-0.1.0/src/Artist/models/progressive_gan.py
from math import sqrt import torch from torch import nn from torch.autograd import Variable from torch.nn import functional as F from torch.nn import init def init_linear(linear): init.xavier_normal(linear.weight) linear.bias.data.zero_() def init_conv(conv, glu=True): init.kaiming_normal(conv.weight) ...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/fs.d.ts
declare module 'fs' { import * as stream from 'node:stream'; import { Abortable, EventEmitter } from 'node:events'; import { URL } from 'node:url'; import * as promises from 'node:fs/promises'; export { promises }; /** * Valid types for path values in "fs". */ export type PathLike ...
PypiClean
/ICPOptimize-2.4.tar.gz/ICPOptimize-2.4/ICP/ClosurePool.py
from math import inf from threading import Thread from queue import Empty, Queue def RunAndEnqueue(Q, Fx, slot, args=(), kwargs={}): rv = Fx(*args, **kwargs) Q.put((slot, rv)) # Class for running a thread pool in which each worker has state associated with it # in the form of a closure class Clos...
PypiClean
/BAxUS-0.0.8.tar.gz/BAxUS-0.0.8/baxus/util/projections.py
from abc import ABC from copy import deepcopy from logging import warning, info, debug from typing import Optional, Dict, List import numpy as np from numpy.random import RandomState from baxus.util.behaviors.embedding_configuration import EmbeddingType from baxus.util.exceptions import OutOfBoundsException, UnknownB...
PypiClean
/Lowdown-0.2.1.tar.gz/Lowdown-0.2.1/doc/release.rst
.. :copyright: Copyright (c) 2014 ftrack ######## Releases ######## .. release:: 0.2.1 :date: 2021-04-21 .. change:: change Limit docutils to < 0.17 to avoid breaking with sphinx_rtd_theme. .. release:: 0.2.0 :date: 2020-06-10 .. change:: new Provide support for python3. .. r...
PypiClean
/NativDebugging-35.tar.gz/NativDebugging-35/src/Patterns/PE.py
from .Finder import * # Resources: # winnt.h # corkami.com # Wikipedia # Microsoft docs http://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/pecoff_v8.docx # http://www.csn.ul.ie/~caolan/publink/winresdump/winresdump/doc/pefile.html VALID_MACHINE_TYPES = { 0x014c : "I38...
PypiClean
/Cohen-0.7.4.tar.gz/Cohen-0.7.4/docs/cli.rst
.. _cli: Command-Line Interface ====================== SYNOPSIS -------- ``cohen`` <options> [--plugin=<BACKEND> [ , <PARAM_NAME> : <PARAM_VALUE> ] ...] DESCRIPTION ----------- Cohen is a Python DLNA/UPnP Media Server made to broadcast digital media content over your network. The core of Cohen provides a (hopeful...
PypiClean
/IOT3ApiClient-1.0.0.tar.gz/IOT3ApiClient-1.0.0/requests/utils.py
import codecs import contextlib import io import os import re import socket import struct import sys import tempfile import warnings import zipfile from collections import OrderedDict from urllib3.util import make_headers from .__version__ import __version__ from . import certs # to_native_string is unused here, but i...
PypiClean
/APS_BlueSky_tools-2019.103.0.tar.gz/APS_BlueSky_tools-2019.103.0/versioneer.py
from __future__ import print_function try: import configparser except ImportError: import ConfigParser as configparser import errno import json import os import re import subprocess import sys class VersioneerConfig: """Container for Versioneer configuration parameters.""" def get_root(): """Get the...
PypiClean
/Git-Track-0.1.tar.gz/Git-Track-0.1/issue_db/issue_db.py
"The central pieces of code..." from __future__ import with_statement from git import Repo from git.exc import InvalidGitRepositoryError import datetime import os import pickle import time import subprocess import sys ISSUE_FILE = '.issues' def catch_id_err(func): "Decorator to catch errors from wrong ids." ...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/qt/installwizard.py
import sys import os from PyQt4.QtGui import * from PyQt4.QtCore import * import PyQt4.QtCore as QtCore import electrum_vtc as electrum from electrum_vtc import Wallet, WalletStorage from electrum_vtc.util import UserCancelled, InvalidPassword from electrum_vtc.base_wizard import BaseWizard from electrum_vtc.i18n imp...
PypiClean
/MosqitoMod-0.0.2.tar.gz/MosqitoMod-0.0.2/libname/mos.py
import random import math import time import os from os.path import exists import keyboard import replit def on_run(): print('The Mos Module was made by MosqitoTorpedo') def pause(s): time.sleep(s) def rndint(x,y): rand = random.randint(x, y) return rand def read(file): file_exists = exists(file) if...
PypiClean
/GraphiPy-0.0.2a0-py3-none-any.whl/graphipy/graph/graph_pandas.py
import pandas as pd import os from graphipy.graph.graph_base import BaseGraph # Graph object implemented by pandas class PandasGraph(BaseGraph): def __init__(self): BaseGraph.__init__(self) self._type = "pandas" # a dict of node data frames and edge data frames # key=label, value...
PypiClean
/CraftSlicer-2.0.tar.gz/CraftSlicer-2.0/craftslicer/core/mc/one_dot_sixteen/one_dot_sixteen.py
palette = \ { "minecraft:air": [0, 0, 0], # "minecraft:acacia_log": [97, 97, 87], # "minecraft:acacia_planks": [90, 90, 50], "minecraft:ancient_debris": [96, 64, 56], "minecraft:andesite": [136, 136, 137], "minecraft:barrel": [122, 90, 52], "minecraft:basalt":...
PypiClean
/FIRSTBEATLU-0.13.1.tar.gz/FIRSTBEATLU-0.13.1/econml/orf/_causal_tree.py
import numpy as np from sklearn.utils import check_random_state class Node: """Building block of :class:`CausalTree` class. Parameters ---------- sample_inds : array-like, shape (n, ) Indices defining the sample that the split criterion will be computed on. estimate_inds : array-like, sh...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_internal/configuration.py
import locale import logging import os from pip._vendor.six.moves import configparser from pip._internal.exceptions import ( ConfigurationError, ConfigurationFileCouldNotBeLoaded, ) from pip._internal.locations import ( global_config_files, legacy_config_file, new_config_file, site_config_file, ) from pip._in...
PypiClean
/MnemoPwd-1.2.1-py3-none-any.whl/mnemopwd/client/corelayer/protocol/StateS31A.py
# Copyright (c) 2016, Thierry Lemeunier <thierry at lemeunier dot net> # 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...
PypiClean
/Box2D-2.3.2.tar.gz/Box2D-2.3.2/examples/theo_jansen.py
from .framework import (Framework, Keys, main) from Box2D import (b2CircleShape, b2EdgeShape, b2FixtureDef, b2PolygonShape, b2Vec2, b2_pi) # Original inspired by a contribution by roman_m # Dimensions scooped from APE (http://www.cove.org/ape/index.htm) class TheoJansen (Framework): name = "T...
PypiClean
/Flask_Unchained-0.9.0-py3-none-any.whl/flask_unchained/bundles/security/extensions/security.py
from flask import Request from flask_login import LoginManager from flask_principal import Principal, Identity, UserNeed, RoleNeed, identity_loaded from flask_unchained import FlaskUnchained, injectable, lazy_gettext as _ from flask_unchained.utils import ConfigProperty, ConfigPropertyMetaclass from itsdangerous import...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/hydrolysis/src/ast-utils/fluent-traverse.ts
import * as estree from 'estree'; export interface Visitor { classDetected?: boolean, enterIdentifier?: (node: estree.Identifier, parent: estree.Node)=>void; leaveIdentifier?: (node: estree.Identifier, parent: estree.Node)=>void; enterLiteral?: (node: estree.Literal, parent: estree.Node)=>void; leaveLitera...
PypiClean
/DynaMIT-1.1.5.tar.gz/DynaMIT-1.1.5/dynamit/runner.py
from __future__ import print_function from __future__ import division from builtins import object, range, str from multiprocessing import Pool import sys, os, shutil, six import dynamit.utils def runSearcherThread(params): """Function executing the run method of the passed processSearcher object on the sequencesF...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/plugins/extra/formatlesspaste/lib/formatlesspaste-plugin.js
define( ['aloha/core', 'aloha/plugin', 'aloha/jquery', 'aloha/floatingmenu', 'formatlesspaste/formatlesshandler', 'aloha/contenthandlermanager', 'i18n!formatlesspaste/nls/i18n', 'i18n!aloha/nls/i18n','css!formatlesspaste/css/formatless.css'], function(Aloha, Plugin, jQuery, FloatingMenu, FormatlessPasteHandler, Cont...
PypiClean
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Grammar/all.py
#+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocols | #+-...
PypiClean
/AltTester_Driver-2.0.2-py3-none-any.whl/alttester/altobject.py
import json import alttester.commands as commands from alttester.by import By class AltObject: """The AltObject class represents an object present in the application and it allows you to interact with it. It is the return type of the methods in the “find_*” category from the AltDriver class. """ de...
PypiClean
/dyson-1.1.2.tar.gz/dyson-1.1.2/lib/dyson/modules/core/waits/wait_for.py
from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.wait import WebDriverWait from dyson import constants from dyson.constants import to_boolean from dyson.errors import DysonError from dyson.utils.module import DysonModule from dyson.utils.selectors import translate_selector_to_...
PypiClean
/Azule_Hair_Transplant-0.0.1.tar.gz/Azule_Hair_Transplant-0.0.1/losses/masked_lpips/__init__.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from skimage.metrics import structural_similarity import torch from torch.autograd import Variable from ..masked_lpips import dist_model class PerceptualLoss(torch.nn.Module): def __in...
PypiClean
/HearPlanetAPI-0.1.1.tar.gz/HearPlanetAPI-0.1.1/README.rst
About ===== This is the HearPlanet supported Python driver for HearPlanet’s public API. This API supports queries to HearPlanet’s database of Points of Interest, Articles, Images and Audio files. If you need additional support, please visit http://www.hearplanet.com/ Overview ======== Setup ----- The easiest way ...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.8-alpha-1.rst
================================= Djblets 0.8 Alpha 1 Release Notes ================================= **Release date**: November 9, 2013 Compatibility ============= * Djblets now requires Django 1.5. At this time, it is not tested with Django 1.6, but will soon require that as the minimum. * Made some progress t...
PypiClean
/K_AIKO-0.5.2-py3-none-any.whl/kaiko/menu/songs.py
import os import random import shutil import queue import traceback import dataclasses from typing import Optional from pathlib import Path from kaiko.utils import commands as cmd from kaiko.utils import datanodes as dn from kaiko.utils import engines from kaiko.beats import beatsheets @dataclasses.dataclass class Son...
PypiClean
/OASYS1_HALF_SRW-0.0.3-py3-none-any.whl/orangecontrib/srw/widgets/optical_elements/ow_srw_crl.py
import os from PyQt5.QtWidgets import QMessageBox from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from oasys.widgets import congruence from oasys.util.oasys_util import TriggerOut import oasys.util.oasys_util as OU from oasys.util.oasys_objects import O...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/lang/mk.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['mk']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Притисни ALT 0 за помош","browseServer":"Пребарај низ серверот"...
PypiClean
/Firenado-0.9.0a2.tar.gz/Firenado-0.9.0a2/firenado/conf/__init__.py
from cartola.config import load_yaml_file import firenado.config as _config import logging import os import sys import tempfile # Setting root path ROOT = None if os.path.abspath(__file__).endswith(".py") or \ os.path.abspath(__file__).endswith(".pyc"): ROOT = os.path.dirname(os.path.abspath(__file__)) el...
PypiClean
/HydPy-5.0.1-cp38-cp38-win_amd64.whl/hydpy/models/wland/wland_model.py
# import... # ...from HydPy from hydpy.core import modeltools from hydpy.auxs import quadtools from hydpy.auxs import roottools from hydpy.cythons import modelutils from hydpy.cythons.autogen import smoothutils from hydpy.models.wland import wland_control from hydpy.models.wland import wland_derived from hydpy.models.w...
PypiClean
/BxModels-0.4.0-py3-none-any.whl/bxmodels/graph/gcn.py
import math import torch import torch.nn as nn import torch.nn.functional as F import torch.jit as jit import bxtorch.nn as xnn class GCNConfig(xnn.Config): """ The GCN config can be used to customize the GCN. """ # The number of features attached to each node. num_features: int # The number...
PypiClean
/KeralaPyApiV2-2.0.2020.tar.gz/KeralaPyApiV2-2.0.2020/pyrogram/client/types/user_and_chats/chat_photo.py
from struct import pack import pyrogram from pyrogram.api import types from pyrogram.client.ext import utils from ..object import Object from ...ext.utils import encode_file_id class ChatPhoto(Object): """A chat photo. Parameters: small_file_id (``str``): File identifier of small (160x1...
PypiClean
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/structure/evolvables/cheaplycopiable.py
__author__ = 'Tom Schaul, tom@idsia.ch' from pybrain.structure.parametercontainer import ParameterContainer from pybrain.structure.modules.module import Module class CheaplyCopiable(ParameterContainer, Module): """ a shallow version of a module, that it only copies/mutates the params, not the structure. """ ...
PypiClean
/NSI_Bertrand-0.5.1.tar.gz/NSI_Bertrand-0.5.1/NSI_Bertrand/tri/tri.py
__all__ = [ "est_triee", "bulles", "insertion", "selection_min", "fusion", "pivot", "comptage", ] def est_triee(l): """ Vérifie si un liste est triée :param l: une liste de nombre :return: True si la liste est triée, False sinon :example: >>> est_triee([1, 2, 5, 6]) ...
PypiClean
/D365BCAPI_GEDASB-0.0.1b1-py3-none-any.whl/D365BCAPI/sample.py
from D365BCAPI.D365BCv1API import Connect """ This is sample usage of D365BCv1API. Used standard Dynamics 365 Business Central platform 16.xx(17.xx) objects API v1.0 pages. Existing API pages can be get http://{server}:{port}/{tenant}/api/v1.0/ metadata can be get http://{server}:{port}/{tenant}/api/v1.0/$metadata Sa...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/htdocs/static/djblets/js/forms/models/conditionChoiceModel.es6.js
Djblets.Forms.ConditionChoice = Backbone.Model.extend({ defaults: { name: null, valueField: null }, /** * Initialize the choice. * * Attributes: * operators (Array): * The list of operators to populate the operators collection. */ initialize(att...
PypiClean
/IPChecker-1.2.tar.gz/IPChecker-1.2/README.txt
################################## Program: IPChecker Author: Boumediene Kaddour Country: Algeria ################################## IPChecker is a tiny Python library that is used to check if an IP version address is Private, Public or Invalid, The library returns Booleans and contains a couple of methods summuriz...
PypiClean
/Kr0nOs-3.4.1.tar.gz/Kr0nOs-3.4.1/kronbot/cogs/downloader/errors.py
from __future__ import annotations from typing import TYPE_CHECKING, List if TYPE_CHECKING: from .repo_manager import Candidate __all__ = [ "DownloaderException", "GitException", "InvalidRepoName", "CopyingError", "ExistingGitRepo", "MissingGitRepo", "CloningError", "CurrentHashE...
PypiClean
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/opencv_utilities/color_space/threshold.py
from enum import Enum from typing import MutableMapping import cv2 import numpy from sorcery import assigned_names __all__ = ["threshold_channel", "ThresholdMethodEnum", "hsv_min_max_clip_mask"] from draugr.opencv_utilities.namespaces.flags import ThresholdTypeFlag from draugr.opencv_utilities.namespaces.color_conve...
PypiClean
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/glances/exports/glances_mongodb.py
import sys from glances.logger import logger from glances.exports.glances_export import GlancesExport import pymongo from urllib.parse import quote_plus class Export(GlancesExport): """This class manages the MongoDB export module.""" def __init__(self, config=None, args=None): """Init the MongoDB ...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Subst.py
import collections import re from inspect import signature, Parameter import SCons.Errors from SCons.Util import is_String, is_Sequence # Indexed by the SUBST_* constants below. _strconv = [ SCons.Util.to_String_for_subst, SCons.Util.to_String_for_subst, SCons.Util.to_String_for_signature, ] AllowableExc...
PypiClean
/Jupyter_Video_Widget-0.3.1.tar.gz/Jupyter_Video_Widget-0.3.1/jpy_video/static/index.js
define(["@jupyter-widgets/base"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Che...
PypiClean
/Automancy-0.5.12.tar.gz/Automancy-0.5.12/automancy/elementals/organisms/dropdown/dropdown.py
from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as wait from selenium.webdriver.support.ui import Select, WebDriverWait from automancy.elementals.atoms im...
PypiClean
/Another_One_Messenger_Client-0.9.1.tar.gz/Another_One_Messenger_Client-0.9.1/src/client/add_contact.py
from PyQt5.QtGui import QStandardItemModel, QStandardItem from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QDialog, QLabel, QComboBox, QPushButton import logging logger = logging.getLogger('client') class AddContactDialog(QDialog): ''' Диалог добавления пользователя в список контактов. Предлагает ...
PypiClean
/BiblioPixel-3.4.46.tar.gz/BiblioPixel-3.4.46/bibliopixel/colors/palette.py
import functools import numpy as np from . classic import Black class Palette(list): """ Palette is a list of one or more colors used to render Animations. The method ``Palette.get()`` takes a position in the pallete and returns a color. """ def __init__(self, colors=(), continuous=False, ...
PypiClean
/OMS_distributions-0.1.tar.gz/OMS_distributions-0.1/OMS_distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/Flask_CBlueprint-1.0.0-py3-none-any.whl/flask_cblueprint/utils/filesystem.py
import os import glob import shutil from pathlib import Path from string import Template def create_folder_if_not(folder_path): """ If the folder path doesn't exist, create it :param folder_path: The path to the folder you want to create :return: the path to the folder. """ return os.mak...
PypiClean
/102017059_Aakanksha_Topsis-0.0.0.tar.gz/102017059_Aakanksha_Topsis-0.0.0/README.md
# 102017059_Aakanksha_Topsis This package is implementation of multi-criteria decision analysis using topsis. This package will accept three arguments during file execution: dataset.csv //file which contains the models and parameters string of weights separated by commas(,) string of requirements (+/-) separated by c...
PypiClean
/FRCUploader-3.6.2.tar.gz/FRCUploader-3.6.2/frcuploader/utils.py
import os import re import json import time import shutil import hashlib import datetime as dt import requests from googleapiclient.errors import HttpError from . import consts from .youtube import upload, RETRIABLE_EXCEPTIONS, RETRIABLE_STATUS_CODES from cachecontrol import CacheControl from cachecontrol.heuristic...
PypiClean
/Gammalearn-0.11.0.tar.gz/Gammalearn-0.11.0/gammalearn/data/example_settings/experiment_settings_pointing.py
import collections import os import importlib from pathlib import Path import math import numpy as np import torch from torch.optim import lr_scheduler from torchvision import transforms from torchmetrics.classification import Accuracy, AUROC from pytorch_lightning.profiler import SimpleProfiler, AdvancedProfiler, PyT...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/localflavor/cz/forms.py
from __future__ import absolute_import, unicode_literals import re from django.contrib.localflavor.cz.cz_regions import REGION_CHOICES from django.core.validators import EMPTY_VALUES from django.forms import ValidationError from django.forms.fields import Select, RegexField, Field from django.utils.translation import...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/app-layout/app-header-layout/README.md
##&lt;app-header-layout&gt; app-header-layout is a wrapper element that positions an app-header and other content. This element uses the document scroll by default, but it can also define its own scrolling region. Using the document scroll: ```html <app-header-layout> <app-header fixed condenses effects="waterfall...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/cmorizers/data/formatters/datasets/gpcp_sg.py
import logging import warnings from pathlib import Path import iris from iris import NameConstraint from esmvaltool.cmorizers.data import utilities as utils logger = logging.getLogger(__name__) def _fix_var_metadata(var_info, cmor_info, cube): """Fix variable metadata.""" if 'raw_units' in var_info: ...
PypiClean
/JoUtil-1.3.3-py3-none-any.whl/JoTools/txkjRes/deteXml.py
from ..utils.XmlUtil import XmlUtil from collections import OrderedDict # fixme 重写这个函数,速度更快 class ParseXml(object): """解析 xml 中的信息,将信息导出为 xml""" def __init__(self): self.__attrs = {"folder", "filename", "path", "segmented", "size", "source", "object", "des"} # 所有的属性 self.__xml_info_dict = ...
PypiClean
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/esmvalcore/_recipe/check.py
from __future__ import annotations import logging import os import re import subprocess from pprint import pformat from shutil import which from typing import Any, Iterable import isodate import yamale from esmvalcore.exceptions import InputFilesNotFound, RecipeError from esmvalcore.local import _get_start_end_year,...
PypiClean
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/apex/apex/pyprof/prof/softmax.py
from collections import OrderedDict from .utility import Utility from .base import OperatorLayerBase class Softmax(OperatorLayerBase): def __init__(self, d): marker = eval(d.argMarker[0]) mod = marker['mod'] op = marker['op'] args = marker['args'] self.marker = marker self.mod_ = mod self.op_ = op s...
PypiClean
/BlueWhale3-Timeseries-0.3.13.tar.gz/BlueWhale3-Timeseries-0.3.13/doc/widgets/var.md
VAR Model ========= Model the time series using [vector autoregression (VAR) model](https://en.wikipedia.org/wiki/Vector_autoregression). **Inputs** - Time series: Time series as output by [As Timeseries](as_timeseries.md) widget. **Outputs** - Time series model: The VAR model fitted to input time series. - Foreca...
PypiClean
/M-LOOP-3.3.3.tar.gz/M-LOOP-3.3.3/mloop/launchers.py
from __future__ import absolute_import, division, print_function __metaclass__ = type import logging import mloop.utilities as mlu import mloop.controllers as mlc import mloop.interfaces as mli import mloop.visualizations as mlv def launch_from_file(config_filename, **kwargs): ''' Launch...
PypiClean
/DTMC/spatialModel/PeriodicMovement/periodicSEIRDV.py
import numpy as np import pandas as pd from matplotlib import pyplot as plt from math import cos, sin, pi from ..randomMovement.randMoveSEIRDV import RandMoveSEIRDV from Eir.utility import Person2 as Person from Eir.utility import randEvent, dist from Eir.DTMC.spatialModel.simul_details import Simul_Details class Per...
PypiClean
/2Keys-0.5.1.tar.gz/2Keys-0.5.1/twokeys/cli/cli.py
# CLI for 2Keys # I'm just making my own since that's easier for me to understand import click import sys from ..watcher import Keyboard from ..util import Logger, load_config, constants from ..add_keyboard import gen_async_handler, add_keyboard from ..init import init as init_cli from ..sync import sync_config from .....
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/rocket/entry/rocket_landing_onppo_main_v2.py
import os import torch import gym import numpy as np from tensorboardX import SummaryWriter from rocket_recycling.rocket import Rocket from ditk import logging from ding.model import VAC from ding.policy import PPOPolicy from ding.envs import DingEnvWrapper, BaseEnvManagerV2, EvalEpisodeReturnEnv from ding.config impo...
PypiClean
/ChadBot6-0.1-py3-none-any.whl/ChadBot/generation/rajat_work/qgen/generator/eda.py
import random import re from random import shuffle from nltk.corpus import wordnet from tqdm import tqdm from .base import BaseGenerator random.seed(42) STOP_WORDS = ['i', 'me', 'my', 'myself', 'we', 'our', 'ours', 'ourselves', 'you', 'your', 'yours', 'yourself', 'yourselves', 'he', 'hi...
PypiClean
/HDDM-0.9.9.tar.gz/HDDM-0.9.9/hddm/MPLTraits.py
import wx import matplotlib # We want matplotlib to use a wxPython backend if __name__ == "__main__": matplotlib.use("WXAgg") import matplotlib.pyplot import pylab as pl pl.ion() from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas from matplotlib.figure import Figure from matplotlib....
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/color-name/index.js
'use strict' module.exports = { "aliceblue": [240, 248, 255], "antiquewhite": [250, 235, 215], "aqua": [0, 255, 255], "aquamarine": [127, 255, 212], "azure": [240, 255, 255], "beige": [245, 245, 220], "bisque": [255, 228, 196], "black": [0, 0, 0], "blanchedalmond": [255, 235, 205], "blue": [0, 0, 255], "blu...
PypiClean