id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/dist/binding.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MultiCoreBinding = exports.Binding = void 0; const events_1 = require("events"); const process = require("process"); const utils_1 = require("./utils"); class Binding extends events_1.EventEmitter { constructor() { super();...
PypiClean
/Neto-0.6.2.tar.gz/Neto-0.6.2/neto/daemon.py
# Example based on json-rpc documentation: # <https://json-rpc.readthedocs.io/en/latest/quickstart.html> import os import sys from jsonrpc import JSONRPCResponseManager, dispatcher from werkzeug.wrappers import Request, Response from werkzeug.serving import run_simple import neto import neto.lib.crypto.md5 as md5...
PypiClean
/NaiveBayes-1.0.0.tar.gz/NaiveBayes-1.0.0/NaiveBayes.py
from math import exp, pi class NaiveBayes: def __init__(self): self.labels = [] self.stat_labels = {} self.numof_instances = 0 self.attributes = [] self.attvals = {} self.real_stat = {} self.stat_attributes = {} self.smoothing...
PypiClean
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/io/resource.py
from . import loader from ..model import trajectory from ..model import multipath from ..model import types from .. import robotsim from ..math import vectorops,se3,so3 import os import time from ..robotsim import WorldModel,RobotModel,RobotModelLink,RigidObjectModel,IKObjective from ..model.subrobot import SubRobotMod...
PypiClean
/NlpToolkit-InformationRetrieval-1.0.6.tar.gz/NlpToolkit-InformationRetrieval-1.0.6/InformationRetrieval/Index/CategoryNode.py
from __future__ import annotations from DataStructure.CounterHashMap import CounterHashMap from InformationRetrieval.Index.Term import Term from InformationRetrieval.Index.TermDictionary import TermDictionary from InformationRetrieval.Query.Query import Query class CategoryNode: __children: [CategoryNode] ...
PypiClean
/CNVkit-0.9.10-py3-none-any.whl/cnvlib/access.py
import logging import numpy as np from skgenome import tabio, GenomicArray as GA def do_access(fa_fname, exclude_fnames=(), min_gap_size=5000, skip_noncanonical=True): """List the locations of accessible sequence regions in a FASTA file.""" fa_regions = get_regions(fa_fname) if skip_noncanonical: ...
PypiClean
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/model/permission.py
import logging import traceback from sqlalchemy.exc import DatabaseError from kallithea.lib.utils2 import asbool from kallithea.model import db, meta log = logging.getLogger(__name__) class PermissionModel(object): """ Permissions model for Kallithea """ def create_permissions(self): """ ...
PypiClean
/Dowell%20Mail-1.0.2.tar.gz/Dowell Mail-1.0.2/docs/_build/html/_static/doctools.js
"use strict"; const BLACKLISTED_KEY_CONTROL_ELEMENTS = new Set([ "TEXTAREA", "INPUT", "SELECT", "BUTTON", ]); const _ready = (callback) => { if (document.readyState !== "loading") { callback(); } else { document.addEventListener("DOMContentLoaded", callback); } }; /** * Small JavaScript module...
PypiClean
/CANberry-0.4.tar.gz/CANberry-0.4/canberry/bower_components/ractive-events-tap/README.md
# ractive-events-tap *Find more Ractive.js plugins at [ractivejs.org](http://docs.ractivejs.org/latest/plugins)* Tap/fastclick event plugin for [Ractive.js](http://ractivejs.org) - eliminates the 300ms delay on touch-enabled devices, and normalises across mouse, touch and pointer events. Pressing the spacebar while ...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/xinha/lang/fr.js
{ "Bold": "Gras", "Italic": "Italique", "Underline": "Souligné", "Strikethrough": "Barré", "Subscript": "Indice", "Superscript": "Exposant", "Justify Left": "Aligner à gauche", "Justify Center": "Centrer", "Justify Right": "Aligner à droite", "Justify Full": "Justifier", "Ordered List": "Liste num...
PypiClean
/gallery-uploader-2.4.tar.gz/gallery-uploader-2.4/galleryuploader_lib/config.py
import sys, os from os import path from xdg.BaseDirectory import xdg_config_home ########################## CONFIGURATION ####################################### script_path = path.realpath( path.join( sys.path[0], sys.argv[0] ) ) not_installed_dir = path.dirname( script_path ) STUFF_DIR = LOCALE_DIR = None if pa...
PypiClean
/KDVS-2.0.0.tar.gz/KDVS-2.0.0/kdvs/fw/impl/stat/PKCSelector.py
r""" Provides concrete implementations for various standard selectors. Selectors are closely tied to statistical techniques and reporters. Selectors implemented here were designed to work with techniques that use `l1l2py <http://slipguru.disi.unige.it/Software/L1L2Py/>`_ library, but can be adapted for other purposes ...
PypiClean
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/controllers/admin/users.py
import logging import traceback import formencode from formencode import htmlfill from sqlalchemy.sql.expression import func from tg import app_globals, request from tg import tmpl_context as c from tg.i18n import ugettext as _ from webob.exc import HTTPFound, HTTPNotFound import kallithea import kallithea.lib.helper...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/atari/config/serial/qbert/qbert_sqil_config.py
from easydict import EasyDict qbert_sqil_config = dict( exp_name='qbert_sqil_seed0', env=dict( collector_env_num=8, evaluator_env_num=8, n_evaluator_episode=8, stop_value=30000, env_id='QbertNoFrameskip-v4', #'ALE/Qbert-v5' is available. But special setting is ne...
PypiClean
/EchoTorch-0.1.1.tar.gz/EchoTorch-0.1.1/echotorch/nn/BDESNPCA.py
# Imports import torch import torch.nn as nn import torch.nn.functional as F from .BDESNCell import BDESNCell from sklearn.decomposition import IncrementalPCA import matplotlib.pyplot as plt from torch.autograd import Variable # Bi-directional Echo State Network module with PCA reduction class BDESNPCA(nn.Module): ...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/breadcrumb.js
module.exports = /******/ (function (modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in ...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ee.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/Concurrent_AP-1.4.tar.gz/Concurrent_AP-1.4/README
Concurrent\_AP ============== Overview -------- A scalable and concurrent programming implementation of Affinity Propagation clustering. Affinity Propagation is a clustering algorithm based on passing messages between data-points. Storing and updating matrices of 'affinities', 'responsibilities' and 'similarities' ...
PypiClean
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/methods/chats/promote_chat_member.py
from typing import Union import hikkapyro from hikkapyro import raw, types, errors class PromoteChatMember: async def promote_chat_member( self: "hikkapyro.Client", chat_id: Union[int, str], user_id: Union[int, str], privileges: "types.ChatPrivileges" = None, ) -> bool: ...
PypiClean
/NiceLib-0.7.1.zip/NiceLib-0.7.1/README.rst
.. image:: https://travis-ci.org/mabuchilab/NiceLib.svg?branch=master :target: https://travis-ci.org/mabuchilab/NiceLib :alt: Travis CI |logo| NiceLib ============== NiceLib is a package for rapidly developing "nice" Python bindings to C libraries, using ``cffi``. NiceLib accomplishes this in two main ways:...
PypiClean
/AstroCabTools-1.5.1.tar.gz/AstroCabTools-1.5.1/astrocabtools/mrs_det_plot/src/models/fits.py
__all__=['fitsClass'] class fitsClass: def __init__(self, currFrame, currIntegration, maxFrame, maxIntegration, shiftedXValue,shiftedYValue, fitsXCenter, fitsYCenter, fitsZUnit, maxXAxis, maxYAxis, filename ): self.__currFrame = currFrame self.__currIntegration = currIntegration self....
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA-AI-1.1/DLTA_AI_app/mmdetection/configs/cascade_rpn/crpn_r50_caffe_fpn_1x_coco.py
_base_ = '../rpn/rpn_r50_caffe_fpn_1x_coco.py' model = dict( rpn_head=dict( _delete_=True, type='CascadeRPNHead', num_stages=2, stages=[ dict( type='StageCascadeRPNHead', in_channels=256, feat_channels=256, a...
PypiClean
/GSAS-II-WONDER_win-1.0.1.tar.gz/GSAS-II-WONDER_win-1.0.1/GSAS-II-WONDER/GSASIIconstrGUI.py
from __future__ import division, print_function import sys import wx import wx.grid as wg import random as ran import numpy as np import numpy.ma as ma import numpy.linalg as nl import os.path import GSASIIpath GSASIIpath.SetVersionNumber("$Revision: 4041 $") import GSASIIElem as G2elem import GSASIIElemGUI as G2elemGU...
PypiClean
/MeteorTools-2023.9.0-py3-none-any.whl/meteortools/utils/sendAnEmail.py
import os import platform import base64 import email from email.mime.text import MIMEText from google.auth.transport.requests import Request from google.oauth2.credentials import Credentials from google_auth_oauthlib.flow import InstalledAppFlow from googleapiclient.discovery import build # If modifying these scopes,...
PypiClean
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/web/static/dist/plugins/visualblocks/plugin.min.js
!(function () { var a = {}, b = function (b) { for (var c = a[b], e = c.deps, f = c.defn, g = e.length, h = new Array(g), i = 0; i < g; ++i)h[i] = d(e[i]); var j = f.apply(null, h); if (void 0 === j) throw 'module [' + b + '] returned undefined'; c.instance = j; }, c = function (b, c, d) { if (typeof b !== 'string') th...
PypiClean
/Bugs%20Everywhere%20(BEurtle%20fork)-1.5.0.1.-2012-07-16-.zip/Bugs Everywhere (BEurtle fork)-1.5.0.1.-2012-07-16-/libbe/storage/util/config.py
import ConfigParser import codecs import os.path import libbe import libbe.util.encoding if libbe.TESTING == True: import doctest default_encoding = libbe.util.encoding.get_text_file_encoding() """Default filesystem encoding. Initialized with :func:`libbe.util.encoding.get_text_file_encoding`. """ def path(): ...
PypiClean
/GeneLab-Microarray-0.6.4.tar.gz/GeneLab-Microarray-0.6.4/README.md
# GeneLab-Microarray ## Table of Contents 1. <A href=#Installation>Installation</A> - <A href=#Dependencies>Dependencies</A> + <A href=#R>R</A> + <A href=#Python>Python</A> 2. <A href=#Running>Running GeneLab-Microarray</A> - <A href=#ProcessMode>Process Mode</A> + <A href=#BatchSubmode>B...
PypiClean
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/coordination/README.md
Alternative coordination services (EXPERIMENTAL - NOT RECOMMENDED!) ------------------------------------- BigJob supports different other communication & coordination backends via a plugin mechanism. ### A) SAGA Advert Service 1) Utilise coordination url parameter of BigJob to utilize the Advert Service: advert://...
PypiClean
/BloodhoundLabs-0.1.0.zip/BloodhoundLabs-0.1.0/bhlabs/jquery_layout.py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
PypiClean
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/_Attr/A_2D.py
from __future__ import unicode_literals from _MOM.import_MOM import * from _MOM.import_MOM import _A_Composite_ from _TFL.I18N import _, _T, _Tn from _TFL.pyk import pyk _Ancestor_Essence = MOM.An_Entity class _D2_Value_ (_Ancestor_Essence) : """Base cl...
PypiClean
/DendroPy_calver-2023.330.2-py3-none-any.whl/dendropy/utility/error.py
############################################################################## ## DendroPy Phylogenetic Computing Library. ## ## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder. ## All rights reserved. ## ## See "LICENSE.rst" for terms and conditions of usage. ## ## If you use this work or any portion there...
PypiClean
/Logria-0.9.14.tar.gz/Logria-0.9.14/README.md
![Logria Logo](/resources/branding/logria.svg) # Logria Python Proof of Concept A powerful CLI tool that puts log analytics at your fingertips. This is the Python Proof of Concept repository; the [main version](https://github.com/ReagentX/Logria/) is written in Rust. ## tl;dr - Live filtering of data from other pro...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/jinja2/jinja2/environment.py
import os import sys import weakref from functools import reduce, partial from jinja2 import nodes from jinja2.defaults import BLOCK_START_STRING, \ BLOCK_END_STRING, VARIABLE_START_STRING, VARIABLE_END_STRING, \ COMMENT_START_STRING, COMMENT_END_STRING, LINE_STATEMENT_PREFIX, \ LINE_COMMENT_PREFIX, TRIM...
PypiClean
/Emonic-1.0.1.tar.gz/Emonic-1.0.1/emonic/security/csrf/csrf.py
import os import secrets import time from werkzeug.wrappers import Request, Response from werkzeug.exceptions import Forbidden from itsdangerous import URLSafeSerializer from functools import wraps class CSRF: def __init__(self, app): self.app = app self.csrf_secret_key = os.urandom(32) sel...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/pybullet/envs/pybullet_env.py
from typing import Any, Union, List import copy import numpy as np from ditk import logging from ding.envs import BaseEnv, BaseEnvTimestep, BaseEnvInfo, update_shape from ding.envs.common.env_element import EnvElement, EnvElementInfo from ding.envs.common.common_function import affine_transform from ding.torch_utils i...
PypiClean
/AI4Water-1.6.tar.gz/AI4Water-1.6/ai4water/models/_tensorflow/nbeats_keras.py
from ai4water.backend import keras, np K = keras.backend Concatenate, Add, Reshape = keras.layers.Concatenate, keras.layers.Add, keras.layers.Reshape Input, Dense, Lambda, Subtract = keras.layers.Input, keras.layers.Dense, keras.layers.Lambda, keras.layers.Subtract Model = keras.models.Model class NBeats(keras.layer...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/robot/README
------------------------------------------------------------------------------- dojox.robot.recorder ------------------------------------------------------------------------------- Version 0.1 Release date: 2008-07-30 ------------------------------------------------------------------------------- Project state: experim...
PypiClean
/NREL_reVX-0.3.53-py3-none-any.whl/reVX/least_cost_xmission/config/__init__.py
import os from reVX.least_cost_xmission.config.xmission_config import XmissionConfig DEFAULTSDIR = os.path.dirname(os.path.realpath(__file__)) # Cost multipliers for medium and short lines SHORT_MULT = 1.5 MEDIUM_MULT = 1.2 # Cut offs are originally in miles but are converted to kilometers # Note that minimum tie-l...
PypiClean
/FeatherStore-0.2.1-py3-none-any.whl/featherstore/_table/_raise_if.py
import os from numbers import Integral import pandas as pd import polars as pl import pyarrow as pa from featherstore._metadata import METADATA_FOLDER_NAME from featherstore._table import _table_utils from featherstore._table._indexers import ColIndexer def table_not_exists(table): if not table.exists(): ...
PypiClean
/AIS2.py-2.2.1.tar.gz/AIS2.py-2.2.1/AIS/ais.py
import base64 import json import uuid import requests from . import exceptions from typing import Any from typing import Dict from typing import Optional from typing import Sequence from typing import TYPE_CHECKING if TYPE_CHECKING: from .pdf import PDF url = 'https://ais.swisscom.com/AIS-Server/rs/v1.0/sign'...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/ts4.8/readline/promises.d.ts
declare module 'readline/promises' { import { Interface as _Interface, ReadLineOptions, Completer, AsyncCompleter, Direction } from 'node:readline'; import { Abortable } from 'node:events'; class Interface extends _Interface { /** * The rl.question() method displays the query by writing it...
PypiClean
/AppState-0.1.tar.gz/AppState-0.1/server/server.py
import md5 import logging from google.appengine.api import users from google.appengine.api import mail from google.appengine.api import memcache from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.ext import db VERSION = 'Version 0.4' # How big can ...
PypiClean
/HTSQL-2.3.3.tar.gz/HTSQL-2.3.3/src/htsql/ctl/script.py
from .error import ScriptError from .routine import Argument, Routine from .option import Option from ..core.util import listof, trim_doc import os import sys import pkg_resources class Script(object): """ Implements a command-line application with the following interface:: ctl <routine> <options> <a...
PypiClean
/FicusFramework-3.1.0.post2.tar.gz/FicusFramework-3.1.0.post2/src/factdatasource/persistence/jdbc/dialect/SqlserverJdbcFactDatasourceContext.py
from api.model.Page import Page from factdatasource.execptions import FDExecuteException from factdatasource.persistence.jdbc import SqlWrap from factdatasource.persistence.jdbc.JdbcFactDatasourceContext import JdbcFactDatasourceContext class SqlserverJdbcFactDatasourceContext(JdbcFactDatasourceContext): def _s...
PypiClean
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/types/inline_mode/inline_query_result_location.py
import pyrogram from pyrogram import raw, types from .inline_query_result import InlineQueryResult class InlineQueryResultLocation(InlineQueryResult): """A location on a map. By default, the location will be sent by the user. Alternatively, you can use *input_message_content* to send a message with the ...
PypiClean
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/README.rst
======================== Team and repository tags ======================== .. image:: https://governance.openstack.org/badges/dragonflow.svg :target: https://governance.openstack.org/reference/tags/index.html .. Change things from this point on Distributed SDN-based Neutron Implementation * Free software: Apach...
PypiClean
/AugmentedSocialScientist-2.1.0.tar.gz/AugmentedSocialScientist-2.1.0/README.md
# The Augmented Social Scientist **New release v2** This package makes it extremely easy to train BERT-like models for text classifications. For more information on the method and for some use cases from social sciences, see "[The Augmented Social Scientist: Using Sequential Transfer Learning to Annotate Millions o...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/common/image/lib/image-plugin.js
define([ // js 'aloha/jquery', 'aloha/plugin', 'aloha/floatingmenu', 'i18n!aloha/nls/i18n', 'i18n!image/nls/i18n', 'jquery-plugin!image/vendor/ui/jquery-ui-1.8.10.custom.min', 'jquery-plugin!image/vendor/jcrop/jquery.jcrop.min', 'jquery-plugin!image/vendor/mousewheel/mousewheel', // css 'css!image/css/image....
PypiClean
/GatherGit-0.0.3.tar.gz/GatherGit-0.0.3/gathergit/misc.py
import os import yaml import logging import logging.config import collections class Helper(object): """ Contains helper functions """ @staticmethod def create_logger(program_name, config=None): """ Initialize logger """ if not config: config = {'versio...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/iron-elements/README.md
# iron-elements Basic building blocks for creating an application. Most of the `iron` elements were previously named the `core` elements, when compatible with the "Developer Preview" version of the Polymer library. ## Roadmap ### Elements recently released * [`iron-location`](https://github.com/PolymerElements/iron...
PypiClean
/Minimatic-1.0.tar.gz/Minimatic-1.0/minimatic/__init__.py
import re import os import logging import StringIO # URLs are always with / separators import posixpath as path import shutil import time import cssutils from cssutils.serialize import CSSSerializer from pylons import config from pylons.decorators.cache import beaker_cache from webhelpers.html.tags import javascript...
PypiClean
/AlgorithmLib-4.0.3.tar.gz/AlgorithmLib-4.0.3/algorithmLib/AEC_EVALUATION/FR_ECHO_DETECT.py
import ctypes,platform import librosa from ctypes import * from formatConvert import pcm2wav import sys sys.path.append('../') from commFunction import get_data_array,get_rms from PCC.Pearson_CC import get_max_cc_by_dll from scipy import signal import numpy as np def get_my_dll(): """ :return: """ my...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/model/owstack.py
from typing import List from Orange.base import Learner from Orange.data import Table from Orange.ensembles.stack import StackedFitter from Orange.widgets.settings import Setting from Orange.widgets.utils.owlearnerwidget import OWBaseLearner from Orange.widgets.widget import Input, MultiInput from Orange.i18n_config i...
PypiClean
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/oauth2/rfc6749/grants/resource_owner_password_credentials.py
import logging from .base import BaseGrant, TokenEndpointMixin from ..errors import ( UnauthorizedClientError, InvalidRequestError, ) log = logging.getLogger(__name__) class ResourceOwnerPasswordCredentialsGrant(BaseGrant, TokenEndpointMixin): """The resource owner password credentials grant type is suit...
PypiClean
/ACEngine-0.0.5.tar.gz/ACEngine-0.0.5/ace/data/ace_utils.py
import bz2 import os import os.path as osp import platform import gdown download_base_dir = osp.expanduser('~/.ace') download_bin_dir = osp.join(download_base_dir, 'bin') download_grammar_dir = osp.join(download_base_dir, 'grammar') ace_versions = ( '0.9.31', ) default_ace_version = '0.9.31' english_resource_gr...
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/galleries/static/mezzanine/js/magnific-popup.js
(function ($) { var CLOSE_EVENT = "Close", BEFORE_CLOSE_EVENT = "BeforeClose", AFTER_CLOSE_EVENT = "AfterClose", BEFORE_APPEND_EVENT = "BeforeAppend", MARKUP_PARSE_EVENT = "MarkupParse", OPEN_EVENT = "Open", CHANGE_EVENT = "Change", NS = "mfp", EVENT_NS = "." + NS, READY_CLASS = "m...
PypiClean
/Flask-WebSub-0.4.tar.gz/Flask-WebSub-0.4/flask_websub/hub/storage.py
import abc from ..utils import SQLite3StorageMixin __all__ = ('AbstractHubStorage', 'SQLite3HubStorage',) class AbstractHubStorage(metaclass=abc.ABCMeta): """This abstract class formalizes the data model used by a hub. Implementations should take into account that methods can be called from different th...
PypiClean
/MLZ-1.2.tar.gz/MLZ-1.2/doc/html/_static/websupport.js
(function($) { $.fn.autogrow = function() { return this.each(function() { var textarea = this; $.fn.autogrow.resize(textarea); $(textarea) .focus(function() { textarea.interval = setInterval(function() { $.fn.autogrow.resize(textarea); }, 500); }) .blur(fu...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/lang/sq.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['sq']={"dir":"ltr","editor":"Redaktues i Pasur Teksti","common":{"editorHelp":"Shtyp ALT 0 për ndihmë","browseServer":"Shfleto në Server","url":"URL","protocol"...
PypiClean
/MaTiSSe.py-1.3.3.tar.gz/MaTiSSe.py-1.3.3/matisse/utils/js/MathJax/extensions/mml2jax.js
MathJax.Extension.mml2jax={version:"2.5.0",config:{preview:"mathml"},MMLnamespace:"http://www.w3.org/1998/Math/MathML",PreProcess:function(e){if(!this.configured){this.config=MathJax.Hub.CombineConfig("mml2jax",this.config);if(this.config.Augment){MathJax.Hub.Insert(this,this.config.Augment)}this.InitBrowser();this.con...
PypiClean
/DisplaceNet-0.1.tar.gz/DisplaceNet-0.1/engine/object_detection_branch/single_shot_detector/keras_loss_function/keras_ssd_loss.py
from __future__ import division import tensorflow as tf class SSDLoss: ''' The SSD loss, see https://arxiv.org/abs/1512.02325. ''' def __init__(self, neg_pos_ratio=3, n_neg_min=0, alpha=1.0): ''' Arguments: neg_pos_ratio (i...
PypiClean
/Boodler-2.0.3.tar.gz/Boodler-2.0.3/README
Boodler: a programmable soundscape tool Version 2.0.3 Designed by Andrew Plotkin <erkyrath@eblong.com> <http://boodler.org/> Copyright 2001-9 by Andrew Plotkin This program is distributed under the LGPL. See the LGPL document, or the above URL, for details. -----------------------------------------------...
PypiClean
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/ti.py
languages={'gu': u'\u1309\u1303\u122d\u1272\u129b', 'gd': u'\u12a5\u1235\u12ae\u1275\u1235 \u130c\u120d\u12ad\u129b', 'ga': u'\u12a0\u12ed\u122a\u123d', 'gn': u'\u1313\u122b\u1292\u129b', 'gl': u'\u130b\u1208\u130b\u129b', 'la': u'\u120b\u1272\u1295\u129b', 'ln': u'\u120a\u1295\u130b\u120b\u129b', 'lo': u'\u120b\u12cd...
PypiClean
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/rst/rst.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../python/python"), require("../stex/stex"), require("../../addon/mode/overlay")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror...
PypiClean
/Gbtestapi0.4-0.1a10.tar.gz/Gbtestapi0.4-0.1a10/src/gailbot/core/engines/google/google.py
from ..engine import Engine from ...engines import exception as Err from ..google.core import GoogleCore from typing import Any, List, Dict from typing import Dict, List, Union from gailbot.core.utils.logger import makelogger logger = makelogger("google engine") class Google(Engine): """ An Engine that conn...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/plugins/filter/upgrade.py
from datetime import datetime from loguru import logger from sqlalchemy import Column, DateTime, Integer, String, Unicode from flexget import db_schema, plugin from flexget.db_schema import Session from flexget.entry import Entry from flexget.event import event from flexget.utils import qualities from flexget.utils.d...
PypiClean
/HybridUI-0.0.1.tar.gz/HybridUI-0.0.1/hybrid/elements/drawer.py
from typing import List, Optional, Union, Callable, Any from ..element import Element class Drawer(Element): """ autoFocus afterOpenChange bodyStyle className closeIcon contentWrapperStyle destroyOnClose extra footer footerStyle forceRender getContainer headerSty...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/codemirror/js/beautify.js
The MIT License (MIT) Copyright (c) 2007-2013 Einar Lielmanis and contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
PypiClean
/MyoSuite-2.0.1-py3-none-any.whl/myosuite/renderer/renderer.py
import abc import enum from typing import Any, Optional, Sequence, Union import numpy as np class RenderMode(enum.Enum): """Rendering modes for offscreen rendering.""" RGB = 0 DEPTH = 1 SEGMENTATION = 2 class Renderer(abc.ABC): """Base interface for rendering simulations.""" def __init__(s...
PypiClean
/Helx-0.12.1.tar.gz/Helx-0.12.1/helx/environment/gym3.py
from __future__ import annotations from typing import cast import gym3 import gym3.interop import jax.numpy as jnp from chex import Array import numpy as np from gym.utils.step_api_compatibility import convert_to_terminated_truncated_step_api from .base import Environment from ..mdp import Action, StepType, Timest...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/core/bbox/assigners/center_region_assigner.py
import torch from ..builder import BBOX_ASSIGNERS from ..iou_calculators import build_iou_calculator from .assign_result import AssignResult from .base_assigner import BaseAssigner def scale_boxes(bboxes, scale): """Expand an array of boxes by a given scale. Args: bboxes (Tensor): Shape (m, 4) ...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/postcode/getaddress.py
from __future__ import unicode_literals from django.conf import settings from cubane.lib.libjson import decode_json from cubane.postcode.base import PostcodeLookup import requests class GetAddressPostcodeLookup(PostcodeLookup): def get_addresses(self, postcode): if settings.POSTCODE_DEBUG: jso...
PypiClean
/FindJobsTW-1.0.7.tar.gz/FindJobsTW-1.0.7/findJobs/url.py
def search_url(submit): url = "https://www.104.com.tw/jobs/search/?jobsource=2018indexpoc&ro=0" ori_url = "https://www.104.com.tw/jobs/search/?jobsource=2018indexpoc&ro=0" k = keyword(submit) j = jobtype(submit) a = area(submit) u = update_date(submit) s = salary_type(submit) s2 = salary...
PypiClean
/NEURON-9.0a0-cp311-cp311-macosx_10_15_x86_64.whl/neuron/rxd/node.py
import neuron from neuron import h, nrn, hoc, nrn_dll_sym from . import region, constants from . import rxdsection import numpy import weakref from .rxdException import RxDException import warnings import ctypes from collections.abc import Callable # function to change extracellular diffusion set_diffusion = nrn_dll...
PypiClean
/BIT_framework-0.0.2-py3-none-any.whl/BIT_DL/pytorch/modules/regressors/xlnet_regressor.py
import sys from typing import Any, Dict, Optional, Union import torch from torch import nn from torch.nn import functional as F sys.path.append("D:/") from BIT_DL.pytorch.core.layers import get_initializer from BIT_DL.pytorch.hyperparams import HParams from BIT_DL.pytorch.modules.encoders.xlnet_encoder import XLNetEn...
PypiClean
/LabJackPython-9-20-2010.tar.gz/LabJackPython-9-20-2010/src/Modbus.py
from __future__ import with_statement from threading import Lock from struct import pack, unpack #, unpack_from # unpack_from is new in 2.5 from datetime import datetime AES_CHANNEL = 64000 IP_PART1_CHANNEL = 64008 IP_PART2_CHANNEL = 64009 PORT_CHANNEL = 64010 HEARTBEAT_...
PypiClean
/FreeTVG-karjakak-3.2.16.tar.gz/FreeTVG-karjakak-3.2.16/TVG/utility/mdh.py
import re import subprocess from pathlib import Path from sys import platform import markdown import pdfkit __all__ = [""] extensions = [ "pymdownx.extra", "pymdownx.caret", "pymdownx.tilde", "pymdownx.mark", "pymdownx.tasklist", "pymdownx.escapeall", "pymdownx.smartsymbols", "pymdow...
PypiClean
/InterviewTranscriber-0.0.2-py3-none-any.whl/Transcriber/Google/Base.py
from google.protobuf.json_format import MessageToJson from google.oauth2 import service_account import logging import os import json import textgrid import pandas as pd import numpy as np __author__ = 'Michael Joseph Fox' __doc_ = 'Collection of base classes for interacting with Google Cloud' logging.basicConfig(level...
PypiClean
/Kickstand-1.0.5.post8.tar.gz/Kickstand-1.0.5.post8/kickstand/inventory/Machine.py
from .. import Communicator import Category import Status import Group class Machine(object): """Object representing a Machine from the Kickstand server.""" def __init__(self, communicator, id=None, host=None, data=None): self._id = None self._created_at = None self._updated_at = None self._dele...
PypiClean
/DBSKR-2.0.tar.gz/DBSKR-2.0/README.md
<p align="center"> <img src="https://user-images.githubusercontent.com/16767890/122014718-6716d600-cdfa-11eb-8723-a64ca2df7fe0.png" width="50%" alt="DBSkr"/> </p> <h1 align="center">DBSkr</h1> <p align="center"> <a href="https://www.codefactor.io/repository/github/gunyu1019/dbskr-py"><img src="https://www.codef...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/util/sys_info.py
import os import platform import sys import uuid from ..version_info import * try: from .. import minipsutil TOTAL_PHYMEM = minipsutil.total_memory() NUM_CPUS = minipsutil.cpu_count() except ImportError: TOTAL_PHYMEM = 0 NUM_CPUS = 0 def _tup_to_flat_str(tup): tmp_list = [] for t in tup: if...
PypiClean
/Flask-RESTbolt-0.1.0.tar.gz/Flask-RESTbolt-0.1.0/docs/api.rst
.. _api: API Docs ======== .. module:: flask_restful .. autofunction:: marshal .. autofunction:: marshal_with .. autofunction:: marshal_with_field .. autofunction:: abort Api --- .. autoclass:: Api :members: .. automethod:: unauthorized .. autoclass:: Resource :members: ReqParse -------- .. module:: ...
PypiClean
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/demo/7days/day3.py
import sys print '---------' 'Grouping' import itertools import operator import amara from amara.writers.struct import * XML="""\ <env> <a id="1"/> <b id="1.1"/> <c id="1.2"/> <a id="2"/> <b id="2.1"/> <c id="2.2"/> <a id="3"/> <b id="3.1"/> <c id="3.2"/> </env> """ doc = amara.parse(XML) leaves ...
PypiClean
/ExtractTable-2.1.2.tar.gz/ExtractTable-2.1.2/README.md
[![image](https://i.imgur.com/2Hihfwwg.png)](https://extracttable.com?ref=github-ET) [![image](https://img.shields.io/pypi/v/extracttable.svg?maxAge=3600)](https://pypi.org/project/extracttable/) ![image](https://img.shields.io/github/license/ExtractTable/ExtractTable-py) ![image](https://img.shields.io/badge/python-3...
PypiClean
/Flask-Fundatio-0.1.tar.gz/Flask-Fundatio-0.1/flask_fundatio/static/js/foundation/foundation.placeholder.js
;(function(window, document, $) { var isInputSupported = 'placeholder' in document.createElement('input'), isTextareaSupported = 'placeholder' in document.createElement('textarea'), prototype = $.fn, valHooks = $.valHooks, hooks, placeholder; if (isInputSupported && isTextareaSupported) { ...
PypiClean
/EbaySuds-0.4.9.tar.gz/EbaySuds-0.4.9/ebaysuds/client.py
import logging from abc import ABCMeta from ConfigParser import NoOptionError, NoSectionError from functools import partial from suds.client import Client from .config import production_config, sandbox_config, CONFIG_PATH from .transport import WellBehavedHttpTransport logging.basicConfig() log = logging.getLogger(...
PypiClean
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megengine/core/_config.py
import os from contextlib import contextmanager from ._imperative_rt.core2 import ( _clear_algorithm_cache, get_auto_format_convert, get_option, set_auto_format_convert, set_option, ) # use "default" to distinguish it from None in _reset_execution_config __compute_mode = "default" _benchmark_kerne...
PypiClean
/MeteorTools-2023.9.0-py3-none-any.whl/meteortools/rmsutils/multiDayRadiant.py
import os import glob import datetime try: from Utils.ShowerAssociation import showerAssociation import RMS.ConfigReader as cr except Exception: print('RMS not available') import argparse import shutil def multiDayRadiant(camlist, start, end, outdir=None, shwr=None, datadir=None): """ Create a mu...
PypiClean
/CoAPthon-4.0.2.tar.gz/CoAPthon-4.0.2/coapthon/utils.py
import random import string __author__ = 'Giacomo Tanganelli' def check_nocachekey(option): """ checks if an option is a NoCacheKey option or Etag :param option: :return: """ return ((option.number & 0x1E) == 0x1C) | (option.number == 4) def check_code(code): """ checks if the resp...
PypiClean
/FHIRkit-0.1.2.tar.gz/FHIRkit-0.1.2/fhirkit/choice_type/choice_type.py
from typing import AbstractSet, Any, Callable, Mapping, Optional, Union from pydantic.fields import FieldInfo, Undefined IntStr = Union[int, str] AbstractSetIntStr = AbstractSet[IntStr] MappingIntStrAny = Mapping[IntStr, Any] NoArgAnyCallable = Callable[[], Any] def ChoiceType( default: Any = Undefined, *, ...
PypiClean
/BEATAALU-0.13.1.tar.gz/BEATAALU-0.13.1/econml/policy/_forest/_tree.py
import numpy as np import numbers from math import ceil from ...tree import Tree from ...tree._criterion import Criterion from ...tree._splitter import Splitter, BestSplitter from ...tree import DepthFirstTreeBuilder from ...tree import _tree from ..._tree_exporter import _SingleTreeExporterMixin, _PolicyTreeDOTExport...
PypiClean
/Appium-Python-Client-2.11.1.tar.gz/Appium-Python-Client-2.11.1/appium/webdriver/extensions/location.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
/BlueChips-1.0.4.tar.gz/BlueChips-1.0.4/README.rst
BlueChips is a simple finance tracking application designed for small groups of people with shared expenses. It was designed and developed by groups of students who got tired of the headaches of managing lots of little payments between roommates. Demo ---- If you want to try out BlueChips, you can go to http://demo.b...
PypiClean
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/client_utils.py
import datetime import time def generate_rfc3339(d, local_tz=True): """ generate rfc3339 time format input : d = date type local_tz = use local time zone if true, otherwise mark as utc output : rfc3339 string date format. ex : `2008-04-02T20:00:00+07:00` """ try: if lo...
PypiClean
/Flask-RESTive-0.0.3.tar.gz/Flask-RESTive-0.0.3/flask_restive/schema_fields.py
from __future__ import unicode_literals import six from marshmallow.fields import ( Field, Raw, Nested, Dict, List, String, UUID, Number, Integer, Decimal, Boolean, FormattedString, Float, DateTime, LocalDateTime, Time, Date, TimeDelta, Url, URL, Email, Method, Function, Str, Bool, Int, Constant, missi...
PypiClean
/Notable-0.4.2.tar.gz/Notable-0.4.2/notable/static/lib/ace/src-min/snippets/erlang.js
define("ace/snippets/erlang",["require","exports","module"],function(e,t,n){t.snippetText="# module and export all\nsnippet mod\n -module(${1:`Filename('', 'my')`}).\n \n -compile([export_all]).\n \n start() ->\n ${2}\n \n stop() ->\n ok.\n# define directive\nsnippet def\n -define(${1:macro}, ${2:body}).${3}\n#...
PypiClean
/MJOLNIR-1.3.1.tar.gz/MJOLNIR-1.3.1/docs/Tools.rst
.. _Tools: Tools functions =============== Below is a list of the general tools developed for the MJOLNIR software package. .. currentmodule:: _tools .. autosummary:: :nosignatures: KwargChecker my_timer_N beautifyArgs binEdges fileListGenerator RoundBinning invert minMax unitVec...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/plugins/standard/OptionsNannyPlugin.py
from nuitka.Options import ( isOnefileMode, isStandaloneMode, mayDisableConsoleWindow, shallCreateAppBundle, shallDisableConsoleWindow, ) from nuitka.plugins.PluginBase import NuitkaPluginBase from nuitka.utils.Utils import isMacOS from nuitka.utils.Yaml import getYamlPackageConfiguration class Nu...
PypiClean
/AI4Water-1.6.tar.gz/AI4Water-1.6/ai4water/utils/plotting_tools.py
from typing import Union from ai4water.backend import easy_mpl as ep from ai4water.backend import os, np, pd, plt # TODO # rank histogram, reliability diagram, ROC curve class Plots(object): # TODO initialte this class with at least path def __init__(self, config, path=None, model=None): self.path...
PypiClean
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/tools/rankingfunctions.py
__author__ = 'Daan Wierstra and Tom Schaul' from pybrain.utilities import Named from random import randint from scipy import zeros, argmax, array, power, exp, sqrt, var, zeros_like, arange, mean, log def rankedFitness(R): """ produce a linear ranking of the fitnesses in R. (The highest rank is the best fit...
PypiClean