id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Locker_Project-1.1.3-py3-none-any.whl/Locker_Project/CMD_Process.py
import threading import time import socket from Locker_Project import Func, MyTask_Finger, MyTask_Tag from Locker_Project.Func import TaiCauTruc class Class_Thread: def __init__(self, name, ObjectThread): self.Name = name self.Object = ObjectThread @property def ThreadName(self): ...
PypiClean
/Kuyruk-9.4.1.tar.gz/Kuyruk-9.4.1/kuyruk/signals.py
from blinker import Signal #: Sent when the task decorator is applied. #: #: Arguments: #: * sender: Kuyruk object #: * task: Task object task_init = Signal() #: Sent before the task is applied. #: #: Arguments: #: * sender: Kuyruk object #: * task: Task object #: * args: Positional arguments to the ta...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/common/link/extra/slowlinklist.js
define( [ 'aloha', 'aloha/jquery' ], function ( Aloha, jQuery ) { 'use strict' /** * Internal data as array with following format: * * [ * { name: 'Aloha Editor - The HTML5 Editor', url:'http://aloha-editor.com', type:'website' }, * { name: 'Aloha Logo', url:'http://www.aloha-editor.com/images/aloha-e...
PypiClean
/MusicOnPolytopes-0.1.0-py3-none-any.whl/polytopes/voiceleading_utilities.py
import random _VERYLARGENUMBER = 1000000 # effectively infinity _MODULUS = 12 # size of the octave _HALFMODULUS = int(0.5 + _MODULUS/2.0) """ voiceleading_utilities version 1.0, (c) 2015 by Dmitri Tymoczko Voiceleading_utilities is free software: you can redistribute it and/or modify it under the terms of...
PypiClean
/AnkiServer-2.0.6.tar.gz/AnkiServer-2.0.6/anki-bundled/oldanki/sound.py
__docformat__ = 'restructuredtext' import re, sys, threading, time, subprocess, os, signal, errno, atexit import tempfile, shutil from oldanki.hooks import addHook, runHook # Shared utils ########################################################################## def playFromText(text): for match in re.findall("\...
PypiClean
/Mainflux-0.0.1.tar.gz/Mainflux-0.0.1/lib/groups.py
import requests from lib import response from lib import errors class Groups: def __init__(self, url): self.url = url def create(self, group, token): '''Creates group entity in the database''' mf_resp = response.Response() http_resp = requests.post(self.url + "/groups", json=...
PypiClean
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/dispatcher.py
import asyncio import inspect import logging from collections import OrderedDict import pyrogram from pyrogram import utils from pyrogram.handlers import ( CallbackQueryHandler, MessageHandler, EditedMessageHandler, DeletedMessagesHandler, UserStatusHandler, RawUpdateHandler, InlineQueryHandler, PollHandler, ...
PypiClean
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/View/MenuListener.py
import datetime import json import logging import sys import os import webbrowser from threading import Thread from tkinter import filedialog, simpledialog, messagebox, Toplevel, Label, Frame, font from LabExT.Utils import get_author_list, try_to_lift_window from LabExT.View.AddonSettingsDialog import AddonSettingsDia...
PypiClean
/CodeChat_Server-0.2.18.tar.gz/CodeChat_Server-0.2.18/CodeChat_Server/render_manager.py
import asyncio from enum import Enum import logging import json from pathlib import Path import sys from typing import ( Any, cast, Callable, Coroutine, Dict, Optional, Union, ) import urllib.parse import xml.dom.minidom # Third-party imports # ------------------- from lxml import etree as ...
PypiClean
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/examples/pilot-api/example-pilot-api-decentral.py
import sys import os import time sys.path.append(os.path.join(os.path.dirname(__file__), "../..")) sys.path.insert(0, os.getcwd() + "/../") from pilot import PilotComputeService, ComputeDataServiceDecentral, State COORDINATION_URL = "redis://localhost:6379" if __name__ == "__main__": pilot_compute_ser...
PypiClean
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/input/tex/extensions/unicode.js
!function(a){var n={};function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=a,o.c=n,o.d=function(t,e,a){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
PypiClean
/KingSnake-2.0.0.tar.gz/KingSnake-2.0.0/bin/KingSnake.py
import pickle import sys import time from king_snake.player import Player from king_snake.chessboard import Chessboard from king_snake.errors import ChessError class ChessGame(object): """A chess game manager""" def __init__(self): self.white, self.black = Player(), Player() self.chessboard...
PypiClean
/AeroSandbox-4.1.1.tar.gz/AeroSandbox-4.1.1/aerosandbox/aerodynamics/aero_2D/airfoil_inviscid.py
from aerosandbox.common import * from aerosandbox.geometry import Airfoil from aerosandbox.performance import OperatingPoint from aerosandbox.aerodynamics.aero_2D.singularities import calculate_induced_velocity_line_singularities import aerosandbox.numpy as np from typing import Union, List, Optional class AirfoilInv...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/highlight/_base.js
if(!dojo._hasResource["dojox.highlight._base"]){ dojo._hasResource["dojox.highlight._base"]=true; dojo.provide("dojox.highlight._base"); (function(){ var dh=dojox.highlight,_1="\\b(0x[A-Za-z0-9]+|\\d+(\\.\\d+)?)"; dh.constants={IDENT_RE:"[a-zA-Z][a-zA-Z0-9_]*",UNDERSCORE_IDENT_RE:"[a-zA-Z_][a-zA-Z0-9_]*",NUMBER_RE:"\\b...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/ts4.8/index.d.ts
// Reference required types from the default lib: /// <reference lib="es2020" /> /// <reference lib="esnext.asynciterable" /> /// <reference lib="esnext.intl" /> /// <reference lib="esnext.bigint" /> // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: /// <reference path="as...
PypiClean
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/doc/develop/preprocessor_function.rst
.. _preprocessor_function: Preprocessor function ********************* Preprocessor functions are located in :py:mod:`esmvalcore.preprocessor`. To add a new preprocessor function, start by finding a likely looking file to add your function to in `esmvalcore/preprocessor <https://github.com/ESMValGroup/ESMValCore/tree...
PypiClean
/HybridUI-0.0.1.tar.gz/HybridUI-0.0.1/hybrid/interface.py
from .elements.affix import Affix as affix from .elements.anchour import Anchor as anchor from .elements.alert import Alert as alert from .elements.badge import Badge as badge from .elements.breadcrumb import Breadcrumb as breadcrumb from .elements.button import Button as button from .elements.calendar import Calendar ...
PypiClean
/OSlash-0.6.3-py3-none-any.whl/oslash/writer.py
from typing import Callable, Tuple, Any, TypeVar, Generic, Union, cast from .typing import Functor from .typing import Monad from .typing import Monoid TLog = TypeVar("TLog", str, Monoid) TSource = TypeVar("TSource") TResult = TypeVar("TResult") class Writer(Generic[TSource, TLog]): """The writer monad.""" ...
PypiClean
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/Episode/EpisodeReplay.py
import os import warnings import time import imageio import argparse from grid2op.Exceptions import Grid2OpException from grid2op.PlotGrid.PlotMatplot import PlotMatplot from grid2op.Episode.EpisodeData import EpisodeData class EpisodeReplay(object): """ This class allows to see visually what an agent has d...
PypiClean
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/model/thing_status_response.py
import re # noqa: F401 import sys # noqa: F401 from openapi_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, ...
PypiClean
/Nosparser-0.11.tar.gz/Nosparser-0.11/src/nos_parser/template_miner.py
import base64 import logging import re import time import jsonpickle import zlib from cachetools import LRUCache from nos_parser.drain import Drain, LogCluster from nos_parser.masking import LogMasker from nos_parser.persistence_handler import PersistenceHandler from nos_parser.simple_profiler import SimpleProfiler, N...
PypiClean
/Marketplace-0.9.2.tar.gz/Marketplace-0.9.2/marketplace/connection.py
import json import logging import urllib import requests from oauthlib import oauth1 log = logging.getLogger('marketplace.%s' % __name__) class NotExpectedStatusCode(requests.exceptions.HTTPError): """ Raise if status code returned from API is not the expected one """ pass class Connection: """ Ke...
PypiClean
/HAllA-0.8.20-py3-none-any.whl/halla/utils/similarity.py
from sklearn.metrics import normalized_mutual_info_score, mutual_info_score from scipy.stats import pearsonr, spearmanr, chi2_contingency from scipy.spatial.distance import pdist, squareform from pandas import crosstab import numpy as np import rpy2.robjects as robjects from rpy2.robjects.packages import importr from ...
PypiClean
/NehorayRapid-0.0.1-py3-none-any.whl/mmedit/models/common/aspp.py
import torch from mmcv.cnn import ConvModule from torch import nn from torch.nn import functional as F from .separable_conv_module import DepthwiseSeparableConvModule class ASPPPooling(nn.Sequential): def __init__(self, in_channels, out_channels, conv_cfg, norm_cfg, act_cfg): super().__init__( ...
PypiClean
/FALCONN-1.3.1.tar.gz/FALCONN-1.3.1/external/pybind11/docs/advanced/cast/stl.rst
STL containers ############## Automatic conversion ==================== When including the additional header file :file:`pybind11/stl.h`, conversions between ``std::vector<>``/``std::list<>``/``std::array<>``, ``std::set<>``/``std::unordered_set<>``, and ``std::map<>``/``std::unordered_map<>`` and the Python ``list``...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/prism/components/prism-nsis.min.js
Prism.languages.nsis={comment:{pattern:/(^|[^\\])(\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^\s*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|Banner|BG(?:Font|Gradient|Image)|BrandingText|Bri...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js
๏ปฟ/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","hi",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"เคธเคพเคฎเคพเคจเฅเคฏ",items:[{name:"E...
PypiClean
/FoLiA-tools-2.5.4.tar.gz/FoLiA-tools-2.5.4/foliatools/xslt.py
import lxml.etree import sys import glob import getopt import os.path import io def transform(xsltfilename, sourcefilename, targetfilename = None, encoding = 'utf-8', **kwargs): xsldir = os.path.dirname(__file__) if xsltfilename[0] != '/': xsltfilename = os.path.join(xsldir, xsltfilename) if not os.path.e...
PypiClean
/KratosCompressiblePotentialFlowApplication-9.4-cp311-cp311-win_amd64.whl/KratosMultiphysics/CompressiblePotentialFlowApplication/compute_forces_on_nodes_process.py
import KratosMultiphysics import KratosMultiphysics.CompressiblePotentialFlowApplication as CPFApp def Factory(settings, Model): if(not isinstance(settings, KratosMultiphysics.Parameters)): raise Exception( "expected input shall be a Parameters object, encapsulating a json string") return C...
PypiClean
/Flask-State-1.1.4.tar.gz/Flask-State-1.1.4/src/flask_state/migrations/versions/637920a840f7_.py
import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import mysql from flask_state.conf.config import Config # revision identifiers, used by Alembic. revision = "637920a840f7" down_revision = None branch_labels = None depends_on = None def upgrade(engine_name): if engine_name != Config.DEFAUL...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Latin1Supplement.js
MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["STIXGeneral-bold"],{160:[0,0,250,0,0],161:[501,203,333,82,252],162:[588,140,500,53,458],163:[684,16,500,21,477],164:[542,10,500,-26,526],165:[676,0,500,-64,547],166:[691,19,220,66,154],167:[691,132,500,57,443],168:[666,-537,333,-2,337],169:[691,19,747,26,...
PypiClean
/BEATAALU-0.13.1.tar.gz/BEATAALU-0.13.1/econml/iv/nnet/_deepiv.py
import numpy as np from ..._cate_estimator import BaseCateEstimator from ...utilities import check_input_arrays, _deprecate_positional, deprecated, MissingModule try: import keras from keras import backend as K import keras.layers as L from keras.models import Model except ImportError as exn: keras ...
PypiClean
/netket-3.9.2.tar.gz/netket-3.9.2/netket/utils/moduletools.py
import sys def _hide_submodules( module_name, *, remove_self=True, ignore=tuple(), hide_folder=tuple() ): """ Hide all submodules created by files (not folders) in module_name defined at module_path. If remove_self=True, also removes itself from the module. """ import os module = sys...
PypiClean
/BlueWhale3_Network-1.4.2-cp38-cp38-macosx_10_9_x86_64.whl/orangecontrib/network/network/base.py
from functools import reduce, wraps, partial from typing import Sequence import numpy as np import scipy.sparse as sp from numpy.lib.stride_tricks import as_strided class Edges: directed = None def __init__(self, edges, # row=from, column=to edge_data: Sequence = None, ...
PypiClean
/MIAvisual-0.0.6-py3-none-any.whl/matplotlib/docstring.py
import inspect class Substitution: """ A decorator that performs %-substitution on an object's docstring. This decorator should be robust even if ``obj.__doc__`` is None (for example, if -OO was passed to the interpreter). Usage: construct a docstring.Substitution with a sequence or dictionary ...
PypiClean
/CocoRPy27-1.4.1.zip/CocoRPy27-1.4.1/testSuite/TestAny1_scannerBaseline.py
import sys class Token( object ): def __init__( self ): self.kind = 0 # token kind self.pos = 0 # token position in the source text (starting at 0) self.col = 0 # token column (starting at 0) self.line = 0 # token line (starting at 1) self.val = u'' # tok...
PypiClean
/Markdownipy-1.0.0.tar.gz/Markdownipy-1.0.0/README.md
# Markdownipy ![](markdownipy_logo.png) Markdownipy is a Python library to generate markdown files using only two operators and some helpers Markdownipy can be used in jupyter notebooks to generate markdown outputs in python cells or inside any .py file, see below for examples ## `<`(lower than operator) writes te...
PypiClean
/Lokai-0.3.tar.gz/Lokai-0.3/lokai/lk_worker/sys_procs/lk_import_node.py
#----------------------------------------------------------------------- # Find one or more nodes and print a serialisation to stdout #----------------------------------------------------------------------- import yaml import base64 import StringIO from lokai.tool_box.tb_database.orm_interface import engine from l...
PypiClean
/Flask_Admin-1.6.1-py3-none-any.whl/flask_admin/contrib/fileadmin/s3.py
import time try: from boto import s3 from boto.s3.prefix import Prefix from boto.s3.key import Key except ImportError: s3 = None from flask import redirect from flask_admin.babel import gettext from . import BaseFileAdmin class S3Storage(object): """ Storage object representing files on...
PypiClean
/DjangoDE-0.2.tar.gz/DjangoDE-0.2/djangode/gui/main_window.py
import os from djangode import global_objects from djangode.project import Project from djangode.utils import get_config_value, set_config_value from djangode.utils.qt import QtCore, QtGui from debug_bar import DebugBar from dialogs import AboutDialog, DjangoDESettingsDialog, ProjectSettingsDialog from editor import...
PypiClean
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/utils.py
import base64 import binascii import imghdr import inspect import io import itertools import logging import mimetypes import os import pathlib import re import struct from collections import namedtuple from mimetypes import guess_extension from types import GeneratorType import typing from .extensions import markdown,...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/views.py
from __future__ import unicode_literals from django import forms from django.conf import settings from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.http import StreamingHttpResponse from django.http.request import QueryDict from django.shortcuts import render from django.contrib import mes...
PypiClean
/CADET-Process-0.7.3.tar.gz/CADET-Process-0.7.3/README.md
# CADET-Process The [**CADET**](https://cadet.github.io) core simulator is a very powerful numerical engine that can simulate a large variety of physico-chemical models used in chromatography and other biochemical processes. However, the configuration files of **CADET** can be complex and difficult to work with. This ...
PypiClean
/McStasScript-0.0.63.tar.gz/McStasScript-0.0.63/mcstasscript/instrument_diagram/component_description.py
from libpyvinyl.Parameters.Parameter import Parameter from mcstasscript.helper.mcstas_objects import DeclareVariable def component_description(component): """ Returns string of information about the component Includes information on required parameters if they are not yet specified. Information on the...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/dist/stream.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Stream = void 0; const events_1 = require("events"); const wrtc_1 = require("wrtc"); const binding_1 = require("./binding"); const buffer_optimized_1 = require("./buffer_optimized"); const os = require("os"); class Stream extends event...
PypiClean
/GeoSnipe-1.2.5.tar.gz/GeoSnipe-1.2.5/src/geosnipe/argparser.py
import argparse main_parser = argparse.ArgumentParser() service_subparsers = main_parser.add_subparsers(title="GeoSnipe Commands", dest="service_command") def create_offset_parser() -> None: offset_parser = argparse.ArgumentParser(add_help=False) offset_parser.add_argument( "--tests", "-t", type=in...
PypiClean
/GSEIM-1.4.tar.gz/GSEIM-1.4/src/grc/gui/canvas/param.py
from __future__ import absolute_import import numbers from .drawable import Drawable from .. import ParamWidgets, Utils, Constants from ...core.params import Param as CoreParam class Param(CoreParam): """The graphical parameter.""" make_cls_with_base = classmethod(Drawable.make_cls_with_base.__func__) ...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ar-td.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0635", "\u0645" ], "DAY": [ "\u0627\u0644...
PypiClean
/DbtPy-3.0.5.5.tar.gz/DbtPy-3.0.5.5/WIKI.md
## DbtPy: ้ซ˜็บงๅŽŸ็”Ÿๆ‰ฉๅฑ•ๆจกๅ— APIๆ่ฟฐ่กจ ### DbtPy.active bool DbtPy.active(IFXConnection connection) **ๆ่ฟฐ** > ๆฃ€ๆŸฅIFXConnectionๆ˜ฏๅฆๅค„ไบŽๆดปๅŠจ็Šถๆ€ **ๅ‚ๆ•ฐ** > connection - ๆœ‰ๆ•ˆ็š„IFXConnection่ฟžๆŽฅ **่ฟ”ๅ›žๅ€ผ** > True - ่ต„ๆบๅค„ไบŽๆดปๅŠจ็Šถๆ€ > False - ่ต„ๆบๅค„ไบŽๆœชๆฟ€ๆดป็Šถๆ€ ### DbtPy.autocommit mixed DbtPy.autocommit ( IFXConnection connection [, bool value] ) *...
PypiClean
/MPT5.0.1.2-0.1.2.tar.gz/MPT5.0.1.2-0.1.2/src/MPT5/Config/Init.py
import sys import os import shutil #### Main Application Path = MAP , Os name and Slash of OS MAP = os.getcwd() MyOsIs = os.name if sys.platform == u'win32': SLASH = u'\\' else: SLASH = u'/' #### Some Utility function def opj(path): """Convert paths to the platform-specific separator""" st = os.path...
PypiClean
/ASGIWebDAV-1.3.2.tar.gz/ASGIWebDAV-1.3.2/asgi_webdav/property.py
from dataclasses import dataclass, field from asgi_webdav.constants import DAVPath, DAVPropertyIdentity, DAVTime from asgi_webdav.helpers import generate_etag @dataclass class DAVPropertyBasicData: is_collection: bool display_name: str creation_date: DAVTime last_modified: DAVTime # resource_t...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/specialchar/dialogs/lang/no.js
๏ปฟ/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("specialchar","no",{euro:"Eurosymbol",lsquo:"Venstre enkelt anfรธrselstegn",rsquo:"Hรธyre enkelt anfรธrselstegn",ldquo:"Venstre dobb...
PypiClean
/MyStudyChat_client-1.0.1-py3-none-any.whl/common/utils.py
import json import os import socket import sys # sys.path.append(os.path.join(os.getcwd(), '../..')) from .decorator import logs from .variables import MAX_LEN_MSG, ENCODE, ANS_104, ANS_400, ALERT @logs def send_message(msg: dict, sock: socket.socket) -> bool: """ ะคัƒะฝะบั†ะธั ะดะปั ะพั‚ะฟั€ะฐะฒะบะธ ัะพะพะฑั‰ะตะฝะธั, ัะพะทะดะฐะตั‚ JSO...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mobile.js
This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojox/mobile/ViewController":function(){define(["dojo/_base/kernel","dojo/_base/array","dojo/_base/connect","dojo/_base/declare",...
PypiClean
/Corrfunc-2.5.1.tar.gz/Corrfunc-2.5.1/docs/source/modules/weighted_correlations.rst
.. _weighted_correlations: Computing Weighted Correlation Functions ======================================== Every clustering statistic in ``Corrfunc`` accepts an array of weights that can be used to compute weighted correlation functions. The API reference for each clustering statistic (:py:mod:`Corrfunc.theory.xi`,...
PypiClean
/OASYS1-ShadowOui-1.5.210.tar.gz/OASYS1-ShadowOui-1.5.210/orangecontrib/shadow/widgets/preprocessor/dabam_height_profile.py
import os, sys from PyQt5.QtWidgets import QApplication import orangecanvas.resources as resources from oasys.widgets.abstract.error_profile.abstract_dabam_height_profile import OWAbstractDabamHeightProfile from Shadow import ShadowTools as ST from orangecontrib.shadow.util.shadow_objects import ShadowPreProcessorDa...
PypiClean
/Flask-WhooshAlchemy-Redux-0.7.1.tar.gz/Flask-WhooshAlchemy-Redux-0.7.1/flask_whooshalchemy.py
from __future__ import with_statement from __future__ import absolute_import import flask.ext.sqlalchemy as flask_sqlalchemy import sqlalchemy from whoosh.qparser import OrGroup from whoosh.qparser import AndGroup from whoosh.qparser import MultifieldParser from whoosh.analysis import StemmingAnalyzer import whoosh...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_tg-cyrl-tj.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
/DLStudio-2.3.0.tar.gz/DLStudio-2.3.0/Examples/object_detection_and_localization_iou.py
## object_detection_and_localization_iou.py """ This script is for experimenting with IoU-based loss function for the regression part of object detection and tracking. These loss functions are defined in the class DIoULoss that is in the inner class DetectAndLocalize of DLStudio. See Slides 37 through...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/client.py
from __future__ import absolute_import, unicode_literals, print_function import os import sys import json import time import threading import logging import socket import weakref import functools try: import queue except ImportError: import Queue as queue # Priorities at which scanning requests can be sched...
PypiClean
/InowasFlopyAdapter-1.5.0.tar.gz/InowasFlopyAdapter-1.5.0/FlopyAdapter/MfPackages/HobAdapter.py
import flopy.modflow as mf class HobAdapter: _data = None def __init__(self, data): self._data = data def validate(self): # should be implemented # for key in content: # do something # return some hints pass def is_valid(self): # should be...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Util/vendorPrefix.js
* @requires OpenLayers/SingleFile.js */ OpenLayers.Util = OpenLayers.Util || {}; /** * Namespace: OpenLayers.Util.vendorPrefix * A collection of utility functions to detect vendor prefixed features */ OpenLayers.Util.vendorPrefix = (function() { "use strict"; var VENDOR_PREFIXES = ["", "O", "ms", "Mo...
PypiClean
/Arduinozore-1.1.3.tar.gz/Arduinozore-1.1.3/arduinozore/handlers/device.py
import os from arduinozore.handlers.crudHandler import CrudHandler from arduinozore.handlers.tools import get_arduino from arduinozore.handlers.tools import get_config_name from arduinozore.models.card import Card from arduinozore.models.device import Device from arduinozore.models.sensor import Sensor from arduinozor...
PypiClean
/IPS-Vagrant-0.4.1.tar.gz/IPS-Vagrant-0.4.1/ips_vagrant/commands/list/__init__.py
import click from ips_vagrant.cli import pass_context, Context from ips_vagrant.common import domain_parse, styled_status from ips_vagrant.models.sites import Domain, Site, Session # noinspection PyUnboundLocalVariable @click.command('list', short_help='List all domains, or all installations under a specified domain....
PypiClean
/MiWork-2021.2.20.20.8.11-py3-none-any.whl/miwork/helper.py
from __future__ import absolute_import, division, print_function, unicode_literals import time from datetime import datetime from enum import Enum from io import BytesIO from typing import TYPE_CHECKING from six import PY2, string_types from six.moves.urllib.request import urlretrieve from miwork.exception import L...
PypiClean
/Maxis_EA_server-0.0.1.tar.gz/Maxis_EA_server-0.0.1/server/common/metaclasses.py
import dis class ServerMetaClass(type): """ ะœะตั‚ะฐะบะปะฐัั, ะฟั€ะพะฒะตั€ััŽั‰ะธะน ั‡ั‚ะพ ะฒ ั€ะตะทัƒะปัŒั‚ะธั€ัƒัŽั‰ะตะผ ะบะปะฐััะต ะฝะตั‚ ะบะปะธะตะฝั‚ัะบะธั… ะฒั‹ะทะพะฒะพะฒ ั‚ะฐะบะธั… ะบะฐะบ: connect. ะขะฐะบะถะต ะฟั€ะพะฒะตั€ัะตั‚ัั, ั‡ั‚ะพ ัะตั€ะฒะตั€ะฝั‹ะน ัะพะบะตั‚ ัะฒะปัะตั‚ัั TCP ะธ ั€ะฐะฑะพั‚ะฐะตั‚ ะฟะพ IPv4 ะฟั€ะพั‚ะพะบะพะปัƒ. """ def __init__(cls, clsname, bases, clsdict): methods = [] ...
PypiClean
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/get_digits.py
import re # noqa: F401 import sys # noqa: F401 from freeclimb.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, vali...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/pynestml/meta_model/ast_comparison_operator.py
from pynestml.meta_model.ast_node import ASTNode class ASTComparisonOperator(ASTNode): """ This class is used to store a single comparison operator. Grammar: comparisonOperator : (lt='<' | le='<=' | eq='==' | ne='!=' | ne2='<>' | ge='>=' | gt='>'); Attributes: is_lt = False is...
PypiClean
/Brian2-2.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/brian2/input/poissoninput.py
from brian2.core.variables import Variables from brian2.groups.group import CodeRunner from brian2.units.fundamentalunits import ( DimensionMismatchError, check_units, get_dimensions, have_same_dimensions, ) from brian2.units.stdunits import Hz from .binomial import BinomialFunction __all__ = ["Poisso...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_rhino/geometry/surfaces/surface.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas.geometry import Surface from compas_rhino.conversions import point_to_rhino from compas_rhino.conversions import point_to_compas from compas_rhino.conversions import vector_to_compas from compas_rh...
PypiClean
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/client/auth.py
import getpass import inspect import os import sys import typing import warnings from .. import utils, helpers, errors, password as pwd_mod from ..tl import types, functions, custom from .._updates import SessionState if typing.TYPE_CHECKING: from .telegramclient import TelegramClient class AuthMethods: # ...
PypiClean
/Lantz-0.3.zip/Lantz-0.3/docs/_themes/lantz/static/sidebar.js
$(function() { // global elements used by the functions. // the 'sidebarbutton' element is defined as global after its // creation, in the add_sidebar_button function var bodywrapper = $('.bodywrapper'); var sidebar = $('.sphinxsidebar'); var sidebarwrapper = $('.sphinxsidebarwrapper'); // original margi...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Tool/PharLapCommon.py
__revision__ = "src/engine/SCons/Tool/PharLapCommon.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan" import os import os.path import SCons.Errors import SCons.Util import re def getPharLapPath(): """Reads the registry to find the installed path of the Phar Lap ETS development kit. ...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/serenity/pip/_vendor/requests/utils.py
import cgi import codecs import collections import io import os import platform import re import sys import socket import struct from . import __version__ from . import certs from .compat import parse_http_list as _parse_list_header from .compat import (quote, urlparse, bytes, str, OrderedDict, unquote, is_py2, ...
PypiClean
/125softNLP-0.0.1-py3-none-any.whl/pysoftNLP/ner/kashgari/embeddings/stacked_embedding.py
# author: BrikerMan # contact: eliyar917@gmail.com # blog: https://eliyar.biz # file: stacked_embedding.py # time: 2019-05-23 09:18 import json import pydoc from typing import Union, Optional, Tuple, List, Dict import numpy as np import tensorflow as tf from tensorflow.python import keras import kashgari from kash...
PypiClean
/ATS_Library-1.2-py3-none-any.whl/ats/common/assertion/assert_common.py
from ats.common.log.log import LogTest TAG = "Assertion" class Assertion(object): @staticmethod def assert_equal(actual, expected, message=None): """ ๆ–ญ่จ€็›ธ็ญ‰ :param actual: ๅฎž้™…ๅ€ผ :param expected: ๆœŸๆœ›ๅ€ผ :param message: ๆ่ฟฐไฟกๆฏ :return: None """ LogTest.de...
PypiClean
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/component/static/portfolio/vendor/mdeditor/bower_components/codemirror/addon/search/search.js
// Replace works a little oddly -- it will do the replace on the next // Ctrl-G (or whatever is bound to findNext) press. You prevent a // replace by making sure the match is no longer selected when hitting // Ctrl-G. (function() { function searchOverlay(query) { if (typeof query == "string") return {token: fun...
PypiClean
/FASTrack-1.0.1.tar.gz/FASTrack-1.0.1/FAST/motility.py
#Invitro-motility (Actin sliding via myosins) analysis python module #Tural Aksel import matplotlib matplotlib.use('TkAgg') import os import sys import time import math import re import numpy as np import numpy import matplotlib.pyplot as py import matplotlib.cm as cm import scipy.io import plotparams as plotparam...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/forms/util.py
from __future__ import unicode_literals from django.conf import settings from django.utils.html import format_html, format_html_join from django.utils.encoding import force_text, python_2_unicode_compatible from django.utils.safestring import mark_safe from django.utils import timezone from django.utils.translation im...
PypiClean
/MAPIE-0.6.5-py3-none-any.whl/mapie/regression/regression.py
from __future__ import annotations from typing import Iterable, List, Optional, Tuple, Union, cast import numpy as np from joblib import Parallel, delayed from sklearn.base import BaseEstimator, RegressorMixin, clone from sklearn.linear_model import LinearRegression from sklearn.model_selection import BaseCrossValida...
PypiClean
/Henson-2.2.0.tar.gz/Henson-2.2.0/README.rst
##################### Henson |build status| ##################### .. |build status| image:: https://travis-ci.org/iheartradio/Henson.svg?branch=master :target: https://travis-ci.org/iheartradio/Henson .. image:: docs/_static/logo.png :width: 400 :height: 400 :align: center A framework for running a Pytho...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/sites/sph_site.py
from office365.runtime.client_result import ClientResult from office365.runtime.queries.service_operation import ServiceOperationQuery from office365.runtime.paths.resource_path import ResourcePath from office365.sharepoint.base_entity import BaseEntity from office365.sharepoint.sites.home_site_reference import SPHSite...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/code_generation/YieldCodes.py
from .CodeHelpers import ( generateChildExpressionsCode, withObjectCodeTemporaryAssignment, ) from .ErrorCodes import getErrorExitCode from .PythonAPICodes import getReferenceExportCode from .VariableDeclarations import VariableDeclaration def _getYieldPreserveCode( to_name, value_name, preserve_exception...
PypiClean
/Adytum-PyMonitor-1.0.5.tar.bz2/Adytum-PyMonitor-1.0.5/lib/net/rwhois.py
_version = "1.1" import os, sys, string, time, getopt, socket, select, re, errno, copy, signal timeout=5 class WhoisRecord: defaultserver='whois.networksolutions.com' whoismap={ 'com' : 'whois.internic.net' , \ 'org' : 'whois.internic.net' , \ 'net' : 'whois.internic.net' ,...
PypiClean
/MeaningCloud-python-2.0.0.tar.gz/MeaningCloud-python-2.0.0/meaningcloud/SummarizationRequest.py
import meaningcloud.Request class SummarizationRequest(meaningcloud.Request): endpoint = 'summarization-1.0' otherparams = None extraheaders = None type_ = "" def __init__(self, key, sentences=5, txt=None, url=None, doc=None, otherparams=None, extraheaders=None, server='https://api.meaningcloud.c...
PypiClean
/CRIkit2-0.4.4.tar.gz/CRIkit2-0.4.4/crikit/ui/dialog_AbstractFactorization.py
import sys as _sys import numpy as _np import traceback as _traceback from PyQt5 import QtWidgets as _QtWidgets from PyQt5.QtWidgets import (QApplication as _QApplication, QDialog as _QDialog, QMessageBox as _QMsg) import PyQt5.QtCore as _QtCore # Import from ...
PypiClean
/NEMO_billing-2.6.7-py3-none-any.whl/NEMO_billing/prepayments/models.py
from __future__ import annotations import datetime from _decimal import Decimal from datetime import date from logging import getLogger from typing import Dict, List, Optional, Tuple, Union from NEMO.models import ( AreaAccessRecord, BaseCategory, BaseModel, EmailNotificationType, Project, Res...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/msvs.py
__revision__ = "src/engine/SCons/Tool/msvs.py 2014/07/05 09:42:21 garyo" import SCons.compat import base64 import hashlib import ntpath import os # compat layer imports "cPickle" for us if it's available. import pickle import re import sys import SCons.Builder import SCons.Node.FS import SCons.Platform.win32 impor...
PypiClean
/IMMP-0.12.1.tar.gz/IMMP-0.12.1/immp/hook/identity.py
from asyncio import gather from collections import defaultdict import logging import immp from immp.hook.command import command, CommandParser CROSS = "\N{CROSS MARK}" TICK = "\N{WHITE HEAVY CHECK MARK}" log = logging.getLogger(__name__) @immp.pretty_str class Identity: """ Basic representation of an ext...
PypiClean
/Ancestration-0.1.0.tar.gz/Ancestration-0.1.0/ancestration/_errors.py
from __future__ import unicode_literals from ancestration import FamilyInheritanceError invalid_adoption_object = lambda obj: FamilyInheritanceError( 'Invalid object to adopt into family, only classes and functions are allowed: {}'.format(obj)) multiple_family_declarations = lambda: FamilyInheritanceError( 'A...
PypiClean
/DLDummyGen-0.0.2.tar.gz/DLDummyGen-0.0.2/README.md
# ๋”ฅ๋Ÿฌ๋‹์šฉ ๋”๋ฏธ ๋ฐ์ดํ„ฐ ์ƒ์„ฑ ์ž๋™ํ™” - Deep-Learning Dummy Data File Generator by csv File --- ## Overview ์™ธ๋ถ€ ๋…ธ์ถœ์— ๋ฏผ๊ฐํ•œ ์ž๋ฃŒ๊ฐ€ ํฌํ•จ๋œ ๋ฐ์ดํ„ฐ๋Š” ๊ฐœ์ธ ์ •๋ณด ๋ณดํ˜ธ๋ฒ•์— ์˜ํ•˜์—ฌ ๋ง๋ถ„๋ฆฌ PC (์ธํ„ฐ๋„ท์ด ์ฐจ๋‹จ๋œ PC) ์—์„œ ๊ด€๋ฆฌ๋œ๋‹ค ๋Œ€๋ถ€๋ถ„์˜ ๋ง๋ถ„๋ฆฌ PC ๋Š” ํ„ฐ๋ฏธ๋„์˜ ์—ญํ• ๋งŒ ํ•˜๊ณ  ์„ฑ๋Šฅ์ด ๋–จ์–ด์ง€๋Š” ๋ฏธ๋‹ˆ PC ๋ฅผ ์‚ฌ์šฉํ•˜๊ฒŒ ๋œ๋‹ค ๋”ฅ๋Ÿฌ๋‹์„ ํšจ์œจ์ ์œผ๋กœ ์ˆ˜ํ–‰ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ์„ฑ๋Šฅ ์ข‹์€ PC ์—์„œ ์‹ค์ œ ๋ฐ์ดํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด๋‚˜ ํ˜„์‹ค์ ์œผ๋กœ ๊ทธ๋ ‡์ง€ ๋ชปํ•œ ์ƒํ™ฉ์ผ ๊ฒฝ์šฐ ๋”๋ฏธ ๋ฐ์ดํ„ฐ๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•œ๋‹ค --- ## ๋ง ๋ถ„...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/dispatch/dispatcher.py
import logging import threading import weakref from django.utils.inspect import func_accepts_kwargs logger = logging.getLogger("django.dispatch") def _make_id(target): if hasattr(target, "__func__"): return (id(target.__self__), id(target.__func__)) return id(target) NONE_ID = _make_id(None) # A ...
PypiClean
/OctoPrint-Nanny-0.16.0.tar.gz/OctoPrint-Nanny-0.16.0/octoprint_nanny/utils/printnanny_os.py
import os from typing import Optional, Any, Dict, List, TypedDict import logging import json import subprocess import printnanny_api_client from printnanny_api_client.models import Pi logger = logging.getLogger("octoprint.plugins.octoprint_nanny.utils") PRINTNANNY_BIN = os.environ.get("PRINTNANNY_BIN", "/usr/bin/pri...
PypiClean
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/rule_action_keyword.py
import re # noqa: F401 import sys # noqa: F401 from firefly_iii_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type,...
PypiClean
/FragPELE-2.1.1.tar.gz/FragPELE-2.1.1/frag_pele/Growing/AddingFragHelpers/pdb_joiner.py
import prody import Bio.PDB as bio import logging import numpy as np import random import re import sys # Getting the name of the module for the log system logger = logging.getLogger(__name__) def get_ligand_from_PDB(pdb_file): """ :param pdb_file: PDB file with only the ligand :return: Bio.PDB object o...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/admin/templatetags/log.py
from django import template from django.contrib.admin.models import LogEntry register = template.Library() class AdminLogNode(template.Node): def __init__(self, limit, varname, user): self.limit, self.varname, self.user = limit, varname, user def __repr__(self): return "<GetAdminLog Node>" ...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/methodcalls/groups/join_group_call.py
import asyncio import logging import shlex from fipper.exception import AlreadyJoinedError from fipper.exception import InvalidStreamMode from fipper.exception import NoActiveGroupCall from fipper.exception import NodeJSNotRunning from fipper.exception import ClientCallsNotSet from fipper.exception import TelegramServ...
PypiClean
/Divisi2-2.2.5.tar.gz/Divisi2-2.2.5/divisi2/ccipca.py
import logging import numpy as np from divisi2.operators import projection logger = logging.getLogger(__name__) EPSILON = 1e-12 # The algorithm is based on: # Book Series - Lecture Notes in Computer Science # Book Title - Intelligent Data Engineering and Automated Learning # Chapter Title - A Fast Algorithm fo...
PypiClean
/Amipy-1.0.2.tar.gz/Amipy-1.0.2/amipy/core/scheduler.py
from amipy.log import getLogger class Scheduler(object): def __init__(self,settings): self.req_limits = settings.gets('CONCURRENCY') self.recv_req = [] self.waiting = False self.spiders = None self.logger = getLogger(__name__) self.logger.debug('Loaded scheduler.') ...
PypiClean
/AdsorptionBreakthroughAnalysis-0.0.2.tar.gz/AdsorptionBreakthroughAnalysis-0.0.2/docs/source/installation.rst
Installation ============ The most recent release can be installed from `PyPI <https://pypi.org/project/AdsorptionBreakthroughAnalysis>`_ with: .. code-block:: shell $ pip install AdsorptionBreakthroughAnalysis The most recent code and data can be installed directly from GitHub with: .. code-block:: shell ...
PypiClean