id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/lang/functional/array.js
if(!dojo._hasResource["dojox.lang.functional.array"]){ dojo._hasResource["dojox.lang.functional.array"]=true; dojo.provide("dojox.lang.functional.array"); dojo.require("dojox.lang.functional.lambda"); (function(){ var d=dojo,df=dojox.lang.functional,_1={}; d.mixin(df,{filter:function(a,f,o){ if(typeof a=="string"){ a=a...
PypiClean
/src/ast.py
# Copyright (c) 2021 xp # 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 rights # to use, copy, modify, merge, publish, distribute, subl...
PypiClean
/HPI-0.3.20230327.tar.gz/HPI-0.3.20230327/my/location/google_takeout_semantic.py
REQUIRES = ["git+https://github.com/seanbreckenridge/google_takeout_parser"] from typing import Iterator, List from my.google.takeout.parser import events, _cachew_depends_on as _parser_cachew_depends_on from google_takeout_parser.models import PlaceVisit as SemanticLocation from my.core import dataclass, make_conf...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/functions/special/bessel.py
from mpmath import besseljzero, mp, workprec from mpmath.libmp.libmpf import dps_to_prec from ...core import (Add, Expr, Function, I, Integer, Pow, Rational, Wild, cacheit, nan, oo, pi, zoo) from ...core.function import ArgumentIndexError from ...core.sympify import sympify from ...polys.orthopoly...
PypiClean
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/demo/zthes2skos.py
MORE_DOC = """ Zthes relation types explained at http://www.loc.gov/z3950/agency/profiles/zthes-02.html ``NT'' Narrower term: that is, the related term is more specific than the current one. -> skos:narrower ``BT'' Broader term: that is, the related term is more general than the current one. -> skos:broader ``USE'' Us...
PypiClean
/Cydra-0.2.tar.gz/Cydra-0.2/cydra/repository/hg.py
import os, os.path, stat import subprocess import re import ConfigParser import cydra from cydra.component import Component, implements, ExtensionPoint from cydra.repository import IRepository, RepositoryParameter, Repository from cydra.error import CydraError, InsufficientConfiguration, UnknownRepository from cydra.p...
PypiClean
/Adafruit_Blinka-8.20.1-py3-none-any.whl/adafruit_blinka/microcontroller/rp2040/pin.py
"""RP2040 pins""" from ..generic_micropython import Pin GP0 = Pin(0) GP1 = Pin(1) GP2 = Pin(2) GP3 = Pin(3) GP4 = Pin(4) GP5 = Pin(5) GP6 = Pin(6) GP7 = Pin(7) GP8 = Pin(8) GP9 = Pin(9) GP10 = Pin(10) GP11 = Pin(11) GP12 = Pin(12) GP13 = Pin(13) GP14 = Pin(14) GP15 = Pin(15) GP16 = Pin(16) GP17 = Pin(17) GP18 = Pin(1...
PypiClean
/Markdown-3.4.4-py3-none-any.whl/markdown/extensions/abbr.py
from . import Extension from ..blockprocessors import BlockProcessor from ..inlinepatterns import InlineProcessor from ..util import AtomicString import re import xml.etree.ElementTree as etree class AbbrExtension(Extension): """ Abbreviation Extension for Python-Markdown. """ def extendMarkdown(self, md): ...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/soy/soy.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../htmlmixed/htmlmixed"], mod); else // Plain brow...
PypiClean
/LAFITE-1.0.2.tar.gz/LAFITE-1.0.2/README.md
LAFITE ====== Low-abundance Aware Full-length Isoform clusTEr Overview -------- LAFITE is designated to identify high-consensus full-length isoforms from Nanopore Direct RNA-seq data. LAFITE combines multiple features from reference annotation and DRS reads (TSS, TES, splicing junction, and read polyadenylation event...
PypiClean
/DJobHunter-0.0.1-py3-none-any.whl/libname/core/seek.py
import json import os import time import requests import threading from scripts.spreadsheets import QuestionsSpreadsheet, JobsSpreadsheet from typing import List, Tuple from bs4 import BeautifulSoup from selenium.common.exceptions import NoAlertPresentException, NoSuchElementException from selenium.webdriver.common.b...
PypiClean
/AnyBlok-2.1.0.tar.gz/AnyBlok-2.1.0/anyblok/model/hybrid_method.py
from sqlalchemy.ext.hybrid import hybrid_method from .plugins import ModelPluginBase class HybridMethodPlugin(ModelPluginBase): def initialisation_tranformation_properties( self, properties, transformation_properties ): """Initialise the transform properties: hybrid_method :param pro...
PypiClean
/BALISTICA-1.0.0.tar.gz/BALISTICA-1.0.0/balistica/PhysicsEngine/AnalyticVPhysicsHandler.py
import numpy as np import pandas as pd from balistica.PhysicsEngine.PhysicsHandler import PhysicsHandler class AnalyticVPhysicsHandler(PhysicsHandler): def __init__(self, v0=0, theta=0, b=1, h=0, distance=-1): self.v0 = v0 self.theta = theta self.b = b self.barrier = False s...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/web-animations-js/src/web-animations-bonus-cancel-events.js
(function() { if (document.createElement('div').animate([]).oncancel !== undefined) { return; } if (WEB_ANIMATIONS_TESTING) { var now = function() { return webAnimations1.timeline.currentTime; }; } else if (window.performance && performance.now) { var now = function() { return performance.now(); ...
PypiClean
/CC-dbgen-0.2.0.tar.gz/CC-dbgen-0.2.0/dbgen/scripts/Pure/Graph/mk_graph.py
from typing import List,Dict from ase import Atoms # type: ignore from ase.constraints import FixAtoms # type: ignore import networkx as nx # type: ignore import numpy as np # type: ignore from scipy.cluster.hierarchy import fcl...
PypiClean
/DuHast-1.0.7-py3-none-any.whl/duHast/APISamples/RevitFloors.py
''' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Revit floors helper functions. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ''' # #License: # # # Revit Batch Processor Sample Code # ...
PypiClean
/Alfred-Workflow-1.40.0.tar.gz/Alfred-Workflow-1.40.0/workflow/web.py
from __future__ import absolute_import, print_function import codecs import json import mimetypes import os import random import re import socket import string import unicodedata import urllib import urllib2 import urlparse import zlib __version__ = open(os.path.join(os.path.dirname(__file__), 'version')).read() USE...
PypiClean
/ConanUtils-0.1.3.tar.gz/ConanUtils-0.1.3/conanutils/upload.py
import sys import argparse import subprocess import tempfile import os import json from .common.utils import * from .common.globals import * def parse_args(): parser = argparse.ArgumentParser(description='upload a package and ALL its dependencies to a remote server') parser.add_argument('reference', ...
PypiClean
/Flask-API.yandex-0.6.2.1.tar.gz/Flask-API.yandex-0.6.2.1/flask_api/static/js/prettify-min.js
var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.to...
PypiClean
/MyoBand-1.3-py3-none-any.whl/myoband/simulation/slide.py
import numpy as np # A_Band from .a_band import A_Band # Plotting: from matplotlib import pyplot as plt from matplotlib.pyplot import cm from ..plotting import imshow # Polygons: fast detection of points within polygon from matplotlib.patches import Rectangle,Circle from matplotlib.path import Path ## Better polygon...
PypiClean
/AmbilightParty-1.0.tar.gz/AmbilightParty-1.0/ambilight/party.py
__author__ = 'pascal' from ambilight.tv import AmbilightTV from ambilight.tvbuff import BufferedAmbilightTV, Direction import argparse import sys import time import random import json import os import ambilight class AmbilightParty(): def __init__(self, dryrun=False): self.tv = BufferedAmbilightTV(dryr...
PypiClean
/KalaPy-0.4.2.tar.gz/KalaPy-0.4.2/kalapy/core/pool.py
from __future__ import absolute_import import re, os, sys, logging try: import threading except ImportError: import dummy_threading as threading from werkzeug import find_modules, import_string from werkzeug.routing import Map from kalapy.conf import settings from kalapy.utils.containers import OrderedDict ...
PypiClean
/Lotlan_Scheduler-1.1.2.tar.gz/Lotlan_Scheduler-1.1.2/lotlan_scheduler/demo.py
# standard libraries import sys import os sys.path.append(os.path.abspath("../lotlan_scheduler")) # local sources from lotlan_scheduler.scheduler import LotlanScheduler from lotlan_scheduler.api.event import Event def cb_triggered_by(mf_uuid, uuid_, event_information): print("cb_triggered_by from mf: " + str(m...
PypiClean
/GrandExchangeToolbox-0.1.5-py3-none-any.whl/grandexchange/transactions.py
from pydantic import BaseModel, validator from grandexchange import constants from grandexchange.items import GrandExchangeItem from functools import total_ordering @total_ordering class SaleTransaction(BaseModel): item: GrandExchangeItem full_buy_price: int individual_sold_price: int volume: int | ...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/db/migrations/executor.py
from django.apps.registry import apps as global_apps from django.db import migrations, router from .exceptions import InvalidMigrationPlan from .loader import MigrationLoader from .recorder import MigrationRecorder from .state import ProjectState class MigrationExecutor: """ End-to-end migration execution - ...
PypiClean
/Flask-Bootstraps-3.3.7.8.tar.gz/Flask-Bootstraps-3.3.7.8/flask_bootstraps/static/js/bootstrap.js
if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } +function ($) { 'use strict'; var version = $.fn.jquery.split(' ')[0].split('.') if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) { throw ne...
PypiClean
/ADLES-1.4.0.tar.gz/ADLES-1.4.0/adles/vsphere/vsphere_scripts.py
import sys import tqdm from humanfriendly.prompts import prompt_for_choice, prompt_for_confirmation from adles.scripts.script_base import Script from adles.utils import default_prompt, pad from adles.vsphere.folder_utils import format_structure from adles.vsphere.vm import VM from adles.vsphere.vsphere_utils import i...
PypiClean
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/underscore/underscore.js
(function() { // Baseline setup // -------------- // Establish the root object, `window` in the browser, or `exports` on the server. var root = this; // Save the previous value of the `_` variable. var previousUnderscore = root._; // Save bytes in the minified (but not gzipped) version: var ArrayPr...
PypiClean
/MRFI-2.0.0.tar.gz/MRFI-2.0.0/docs/function_table.md
# MRFI function table ## experiment |Name|Description|Args| |-|-|-| |[`logspace_density`](../experiment/#mrfi.experiment.logspace_density)|Similar as np.logspace but the datapoint always contains $10^{-n}$|`low`,`high`,`density`,`return`| |[`Acc_experiment`](../experiment/#mrfi.experiment.Acc_experiment)|Return class...
PypiClean
/Mocha-0.12.1.tar.gz/Mocha-0.12.1/mocha/contrib/auth/models.py
import datetime import arrow from . import exceptions from mocha import (db, utils, send_mail, bcrypt, _) from mocha.exceptions import ModelError class AuthUserRole(db.Model): SUPERADMIN = "SUPERADMIN" # ALL MIGHTY, RESERVED FOR SYS ADM...
PypiClean
/Brian2-2.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/brian2/codegen/_prefs.py
from brian2.core.preferences import BrianPreference, prefs from .codeobject import CodeObject # Preferences prefs.register_preferences( "codegen", "Code generation preferences", target=BrianPreference( default="auto", docs=""" Default target for code generation. Can be a s...
PypiClean
/CartiMorph_nnUNet-1.7.14.tar.gz/CartiMorph_nnUNet-1.7.14/CartiMorph_nnUNet/evaluation/metrics.py
import numpy as np from medpy import metric def assert_shape(test, reference): assert test.shape == reference.shape, "Shape mismatch: {} and {}".format( test.shape, reference.shape) class ConfusionMatrix: def __init__(self, test=None, reference=None): self.tp = None self.fp = Non...
PypiClean
/CodeCLI-0.1.tar.gz/CodeCLI-0.1/codecli/commands/pullreq.py
import codecli.commands.fetch from codecli.commands.start import start from codecli.utils import get_current_branch_name, merge_with_base, \ check_call, get_base_branch, get_remote_repo_name, \ remote_and_pr_id_from_pr_branch, send_pullreq as _send_pullreq, \ print_log, getoutput from codecli.ap...
PypiClean
/KolejkaCommon-0.1.202308091427-py3-none-any.whl/kolejka/common/subprocess.py
from kolejka.common import settings import base64 import datetime import json import os import re import signal import subprocess import time class Process: def __init__(self, starter, process, start_time): self.starter = starter self.process = process self.start_time = start_time @pr...
PypiClean
/OASYS1-ShadowOui-1.5.210.tar.gz/OASYS1-ShadowOui-1.5.210/orangecontrib/shadow/widgets/gui/ow_ellipsoid_element.py
import sys, numpy from PyQt5.QtWidgets import QApplication from orangewidget.settings import Setting from orangewidget import gui from oasys.widgets import gui as oasysgui from oasys.widgets import congruence from . import ow_optical_element, ow_curved_element class EllipsoidElement(ow_curved_element.CurvedElement...
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/docs/overview.rst
.. include:: ../README.rst Installation ============ The easiest method is to install directly from pypi using `pip`_ by running the command below, which will also install the required dependencies mentioned above:: $ pip install mezzanine If you prefer, you can download Mezzanine and install it directly from ...
PypiClean
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/structure/networks/borderswiping.py
__author__ = 'Tom Schaul, tom@idsia.ch' from scipy import zeros from pybrain.structure.networks.swiping import SwipingNetwork from pybrain.structure.modules import BiasUnit from pybrain.structure.connections.shared import MotherConnection, SharedFullConnection from pybrain.utilities import iterCombinations, tupleRemo...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/math/stats.js
define("dojox/math/stats",["dojo","../main"],function(_1,_2){ _1.getObject("math.stats",true,_2); var st=_2.math.stats; _1.mixin(st,{sd:function(a){ return Math.sqrt(st.variance(a)); },variance:function(a){ var _3=0,_4=0; _1.forEach(a,function(_5){ _3+=_5; _4+=Math.pow(_5,2); }); return (_4/a.length)-Math.pow(_3/a.leng...
PypiClean
/BalazarBrothers-1.1.tar.gz/BalazarBrothers-1.1/level.py
import cerealizer, soya, soya.cerealizer4soya, soya.tofu as tofu, balazar_brothers import balazar_brothers.globdef as globdef from balazar_brothers.character import Character, Balazar from balazar_brothers.platform_ import Platform, BasePlatform, PortailPlatform def level_display_name(level_name): x = level_name....
PypiClean
/Clyther-0.4-beta.tar.gz/Clyther-0.4-beta/doc/contributing.rst
.. _contribute: ============== Contributing ============== What can you do to help? * Author Email: srossross@enthought.com * Enthought Email: info@enthought.com * `Git development Model <nvie.com/posts/a-successful-git-branching-model/>`_ OpenCL built-ins ^^^^^^^^^^^^^^^^^^^^ I have intentionally put off filling...
PypiClean
/NREL_reVX-0.3.53-py3-none-any.whl/reVX/offshore/assembly_areas_cli.py
import click import logging import os from rex.utilities.loggers import init_mult from rex.utilities.cli_dtypes import STR from rex.utilities.hpc import SLURM from rex.utilities.utilities import get_class_properties from reVX.config.offshore import AssemblyAreasConfig from reVX.offshore.assembly_areas import Assembly...
PypiClean
/GelReportModels-7.8.0.tar.gz/GelReportModels-7.8.0/protocols/migration/migration_reports_300_to_reports_400.py
from protocols import reports_3_0_0 from protocols import reports_4_0_0 from protocols.migration import BaseMigration from protocols.migration import MigrationReports3ToParticipant1 class MigrateReports3To4(BaseMigration): old_model = reports_3_0_0 new_model = reports_4_0_0 re_counter = 1 participant...
PypiClean
/Flask-RESTful-0.3.10.tar.gz/Flask-RESTful-0.3.10/README.md
# Flask-RESTful [![Build Status](https://travis-ci.org/flask-restful/flask-restful.svg?branch=master)](http://travis-ci.org/flask-restful/flask-restful) [![Coverage Status](http://img.shields.io/coveralls/flask-restful/flask-restful/master.svg)](https://coveralls.io/r/flask-restful/flask-restful) [![PyPI Version](http...
PypiClean
/APASVO-0.0.6.tar.gz/APASVO-0.0.6/apasvo/gui/views/takanamidialog.py
from PySide import QtCore from PySide import QtGui import matplotlib matplotlib.rcParams['backend'] = 'qt4agg' matplotlib.rcParams['backend.qt4'] = 'PySide' matplotlib.rcParams['patch.antialiased'] = False matplotlib.rcParams['agg.path.chunksize'] = 80000 from matplotlib.backends.backend_qt4agg import FigureCanvasQTAg...
PypiClean
/Huster-0.0.5.tar.gz/Huster-0.0.5/utils/utils.py
import os import sys import stat import platform def is_windows(): return platform.system() == "Windows" def get_interpreter(): interpreter_path = sys.executable interpreter_dir = os.path.dirname(interpreter_path) return interpreter_path, interpreter_dir def read_lines(fn): with open(fn, "r") ...
PypiClean
/BlueWhale3_Bioinformatics-4.1.32-py3-none-any.whl/orangecontrib/bioinformatics/widgets/OWKEGGPathwayBrowser.py
import gc import sys import webbrowser from typing import Dict, List, Tuple, TypeVar, Iterable, Sequence from functools import reduce, partial from itertools import chain from contextlib import contextmanager from collections import defaultdict from AnyQt.QtGui import QPen, QBrush, QColor, QPixmap, QPainter, QTransfor...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/serenity/pip/_vendor/requests/packages/chardet/sbcsgroupprober.py
from .charsetgroupprober import CharSetGroupProber from .sbcharsetprober import SingleByteCharSetProber from .langcyrillicmodel import (Win1251CyrillicModel, Koi8rModel, Latin5CyrillicModel, MacCyrillicModel, Ibm866Model, Ibm855Model) from .langgreekmodel...
PypiClean
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/data/synthesis/conversion/mnist/seg_gen.py
__author__ = "Christian" __doc__ = r""" Created on {date} """ import gzip import pathlib import pickle from urllib import request import cv2 import numpy import tqdm from matplotlib import pyplot from neodroidvision import PROJECT_APP_PATH filename = [ ["training_images", "train-images-i...
PypiClean
/Flask-OAuth2-Provider-0.4.1.tar.gz/Flask-OAuth2-Provider-0.4.1/flask_oauth2_provider/schemata.py
class Schemata(object): GRANT_SCHEMA = { "oneOf": [ { "type": "object", "description": "Grant for username-password authentication", "properties": { "grant_type": { "enum": ["password"] ...
PypiClean
/Flask-MDBootstrap-3.0.5.tar.gz/Flask-MDBootstrap-3.0.5/flask_mdbootstrap/static/MDB-Pro/js/mdb.lite.min.js
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
PypiClean
/Brian2-2.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/brian2/codegen/runtime/cython_rt/extension_manager.py
import glob import hashlib import importlib.util import os import shutil import sys import time from distutils.command.build_ext import build_ext from distutils.core import Distribution, Extension import numpy try: import Cython import Cython.Build as Cython_Build import Cython.Compiler as Cython_Compiler...
PypiClean
/ElectroMagneticPythonGpu-0.0.0.tar.gz/ElectroMagneticPythonGpu-0.0.0/EMpy_gpu/devices.py
from builtins import zip from builtins import range from builtins import object __author__ = 'Lorenzo Bolla' import numpy import EMpy_gpu.utils from functools import reduce class DeviceMatrix(object): """Device Matrix. Base class for TransferMatrix and ChainMatrix. Notes ===== - Data is ...
PypiClean
/LocalBitTorrentFileFinder-0.2.2.tar.gz/LocalBitTorrentFileFinder-0.2.2/lbff/LocalBitTorrentFileFinder.py
import BitTorrentMetafile import ContentDirectoryDao import logging class LocalBitTorrentFileFinder: def __init__(self, fastVerification=False, metafilePath=None, contentDirectory=None): self.metafilePath = metafilePath self.contentDirectory = contentDirectory self.doFastVerification = fastVerification ...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/ext_pandas/filldata.py
import pandas as pd import numpy as np from functools import partial from itertools import product from typing import List from .pdutils import _to_list_if_str def fillna_by_groups_and_keep_one_per_group(df, byvars, exclude_cols=None, str_vars='first', num_vars='mean'): """ WARNING: do not use if index is imp...
PypiClean
/Helmholtz-0.2.0.tar.gz/Helmholtz-0.2.0/helmholtz/editor/management/commands/neuralstructures_constraints.py
brain_region_cell_type_constraints = [ {'tableconstraint':{ 'shunt':True, 'actions':[ {'name':'A'}, {'name':'M'}, {'name':'D'}, {'name':'L'}, {'name':'U'}, ], 'displayed_in_navigator':False, 'form':'helmhol...
PypiClean
/DjangoPackage-v0.0.3-0.0.3.tar.gz/DjangoPackage-v0.0.3-0.0.3/README.rst
===== DjangoAWS ===== Polls is a simple Django app to conduct Web-based polls. For each question, visitors can choose between a fixed number of answers. Detailed documentation is in the "docs" directory. Quick start ----------- 1. Add "blog" to your INSTALLED_APPS setting like this:: INSTALLED_APPS = [ ...
PypiClean
/Internet-in-a-Box-0.5.10.tar.gz/Internet-in-a-Box-0.5.10/iiab/static/lib/leaflet/leaflet-src.js
(function (window, document, undefined) {/* * The L namespace contains all Leaflet classes and functions. * This code allows you to handle any possible namespace conflicts. */ var L, originalL; if (typeof exports !== undefined + '') { L = exports; } else { originalL = window.L; L = {}; L.noConflict = function...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/Struct53.py
from genice2.cell import cellvectors import genice2.lattices desc = {"ref": {"SpaceFullerene": 'Sikiric 2010'}, "usage": "No options available.", "brief": "A space fullerene." } class Lattice(genice2.lattices.Lattice): def __init__(self): self.pairs = """ 100 33 127...
PypiClean
/AutoDict-2.0.0-py3-none-any.whl/autodict/json_drivers/orjson.py
from __future__ import annotations import io import os from typing import Callable, Union try: import orjson except ImportError as e: raise ImportError("Cannot use OrjsonDriver without orjson installed") from e from autodict.implementation import AutoDict from autodict.json_drivers import base class OrjsonDriv...
PypiClean
/GSAS-II-WONDER_linux-1.0.1.tar.gz/GSAS-II-WONDER_linux-1.0.1/GSAS-II-WONDER/GSASIIddataGUI.py
from __future__ import division, print_function import wx import GSASIIpath GSASIIpath.SetVersionNumber("$Revision: 4080 $") import GSASIIlattice as G2lat import GSASIIspc as G2spc import GSASIIplot as G2plt import GSASIIpwd as G2pwd import GSASIIphsGUI as G2phsGUI import GSASIIctrlGUI as G2G import numpy as np import ...
PypiClean
/ETLT-0.9.6.tar.gz/ETLT-0.9.6/etlt/condition/SimpleConditionFactory.py
import re from etlt.condition.FalseCondition import FalseCondition from etlt.condition.GlobCondition import GlobCondition from etlt.condition.PlainCondition import PlainCondition from etlt.condition.RegularExpressionCondition import RegularExpressionCondition from etlt.condition.TrueCondition import TrueCondition cl...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/compat/_scons_subprocess.py
r"""subprocess - Subprocesses with accessible I/O streams This module allows you to spawn processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace several other, older modules and functions, like: os.system os.spawn* os.popen* popen2.* commands.* Informati...
PypiClean
/LabPype-0.7.8.tar.gz/LabPype-0.7.8/labpype/main/manager.py
import os import sys import json import shutil import zipfile import importlib import DynaUI as UI from ..widget import LegitLink from .. import builtin __all__ = ["Manager"] class Manager(object): def __init__(self, path): self.path = path self.pathInstalled = os.path.join(path, "installed") ...
PypiClean
/DiscoPlot-1.0.2.tar.gz/DiscoPlot-1.0.2/docs/_build/html/_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')...
PypiClean
/GRobot-0.0.13.tar.gz/GRobot-0.0.13/grobot/javascripts/ui-map-sample.js
// in general, the map should capture structural aspects of the system, instead // of "content". In other words, interactive elements / assertible elements // that can be counted on to always exist should be defined here. Content - // for example text or a link that appears in a blog entry - is always liable // to c...
PypiClean
/MokaPlayer-0.8.5.7.tar.gz/MokaPlayer-0.8.5.7/mokaplayer/ui/gtk/controls/album_view.py
import pkg_resources from gi.repository import Gtk from mokaplayer.ui.gtk.helper import image_helper from mokaplayer.ui.gtk.adapter.adapter_song_from_album import AdapterSongFromAlbum class AlbumView: GLADE_FILE = pkg_resources.resource_filename('mokaplayer', 'data/ui/album_view.ui') def __init__(self, alb...
PypiClean
/Hystrix-Box-0.2.tar.gz/Hystrix-Box-0.2/HystrixBox/Extractors/ipExtractor.py
import re from HystrixBox.Extractors.Extractor import Extractor IPv4_PATTERN = re.compile( r'(?:(?:1\d\d|2[0-5][0-5]|2[0-4]\d|0?[1-9]\d|0?0?\d)\.){3}(?:1\d\d|2[0-5][0-5]|2[0-4]\d|0?[1-9]\d|0?0?\d)') IPv6_PATTERN = re.compile(r'(?:(?:[0-9A-Fa-f]{1,4}:){6}(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:[0-9]|[1-9][0-9]|...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/paper-card/README.md
[![Build status](https://travis-ci.org/PolymerElements/paper-card.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-card) ##&lt;paper-card&gt; Material design: [Cards](https://www.google.com/design/spec/components/cards.html) `paper-card` is a container with a drop shadow. <!--- ```html <custom-elemen...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/multiagent_mujoco/envs/manyagent_ant.py
import numpy as np from gym import utils from gym.envs.mujoco import mujoco_env from jinja2 import Template import os class ManyAgentAntEnv(mujoco_env.MujocoEnv, utils.EzPickle): def __init__(self, **kwargs): agent_conf = kwargs.get("agent_conf") n_agents = int(agent_conf.split("x")[0]) n...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/automotive/es_ES/__init__.py
import re from typing import Optional from .. import Provider as AutomotiveProvider class Provider(AutomotiveProvider): """Implement automotive provider for ``es_ES`` locale. Sources: - https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Spain .. |license_plate_unified| replace:: ...
PypiClean
/CodeGra.fs-0.4.2-py3-none-any.whl/codegra_fs/cgfs.py
import os import abc import sys import enum import json import uuid import ctypes import socket import typing as t import hashlib import logging import datetime import tempfile import threading import traceback from os import O_EXCL, O_CREAT, O_TRUNC, path, getenv from enum import IntEnum from stat import S_IFDIR, S_I...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/SConf.py
import SCons.compat import atexit import io import os import re import sys import traceback import SCons.Action import SCons.Builder import SCons.Errors import SCons.Job import SCons.Node.FS import SCons.Taskmaster import SCons.Util import SCons.Warnings import SCons.Conftest from SCons.Debug import Trace from colle...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/job/uk_UA/__init__.py
from .. import Provider as BaseProvider # Ukrainian job names taken from # https://uk.wikipedia.org/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D0%BF%D1%80%D0%BE%D1%84%D0%B5%D1%81%D1%96%D0%B9 # on 22th September 2014 class Provider(BaseProvider): jobs = [ # А "Агроном", "Адвокат", "...
PypiClean
/GSAS-II-WONDER_osx-1.0.4.tar.gz/GSAS-II-WONDER_osx-1.0.4/GSAS-II-WONDER/imports/G2pdf_gr.py
from __future__ import division, print_function import os.path as ospath import numpy as np import GSASIIobj as G2obj import GSASIIpath GSASIIpath.SetVersionNumber("$Revision: 2738 $") class txt_PDFReaderClass(G2obj.ImportPDFData): 'Routines to import PDF G(R) data from a .gr file' def __init__(self): ...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/core/checks/security/sessions.py
from django.conf import settings from .. import Tags, Warning, register def add_session_cookie_message(message): return message + ( " Using a secure-only session cookie makes it more difficult for " "network traffic sniffers to hijack user sessions." ) W010 = Warning( add_session_cookie...
PypiClean
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/HighwayEnv_iPLAN/vehicle/dynamics.py
from typing import Tuple, Callable import numpy as np import matplotlib.pyplot as plt from highway_env.road.road import Road from highway_env.utils import Vector from highway_env.vehicle.kinematics import Vehicle def rk4(func: Callable, state: np.ndarray, dt: float = 0.01, t: float = 0, **kwargs): """ singl...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/google/protobuf/json_format.py
__author__ = 'jieluo@google.com (Jie Luo)' try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict #PY26 import base64 import json import math import re import six import sys from operator import methodcaller from google.protobuf import descriptor from google.protobuf imp...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/mujoco/config/hopper_bdq_config.py
from easydict import EasyDict hopper_bdq_config = dict( exp_name='hopper_bdq_seed0', env=dict( env_id='Hopper-v3', norm_reward=dict(use_norm=False, ), collector_env_num=8, evaluator_env_num=8, n_evaluator_episode=8, stop_value=int(1e6), action_bins_per_br...
PypiClean
/MatchZoo-test-1.0.tar.gz/MatchZoo-test-1.0/matchzoo/models/conv_knrm.py
import typing import torch import torch.nn as nn import torch.nn.functional as F from matchzoo.engine.param_table import ParamTable from matchzoo.engine.param import Param from matchzoo.engine.base_model import BaseModel from matchzoo.engine import hyper_spaces from matchzoo.modules import GaussianKernel from matchzo...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/dtl/_base.js
if(!dojo._hasResource["dojox.dtl._base"]){ dojo._hasResource["dojox.dtl._base"]=true; dojo.provide("dojox.dtl._base"); dojo.require("dojox.string.Builder"); dojo.require("dojox.string.tokenize"); dojo.experimental("dojox.dtl"); (function(){ var dd=dojox.dtl; dd.TOKEN_BLOCK=-1; dd.TOKEN_VAR=-2; dd.TOKEN_COMMENT=-3; dd.T...
PypiClean
/CeMaIm-0.1.tar.gz/CeMaIm-0.1/cemaim/cli.py
import configparser import click import getpass from .cemaim import * from .utils import create_pkcs12 from .cemaim_qt import Gui from PyQt5 import QtWidgets, uic, QtCore, QtGui def parse_cert_path(ctx, param, value): return value def parse_auth_cert(ctx, param, value): return value def validate_config(ctx, ...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/reg/iter.py
import itertools from dero.reg.order import _set_regressor_order from .chooser import any_reg from .select import select_models from .summarize import produce_summary from .lag import remove_lag_names_from_reg_results def reg_for_each_combo(df, yvar, xvars, reg_type='reg', **reg_kwargs): """ Takes each possi...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/ftp/sftp.py
from collections import namedtuple from itertools import groupby from pathlib import Path from typing import List, Optional from urllib.parse import unquote, urlparse from loguru import logger from flexget import plugin from flexget.components.ftp.sftp_client import HOST_KEY_TYPES, HostKey, SftpClient, SftpError from...
PypiClean
/ISPManCCP-0.0.1alpha3.1.tar.bz2/ISPManCCP-0.0.1alpha3.1/ispmanccp/public/js/ie7/ie7-css2-selectors.js
IE7.addModule("ie7-css2-selectors",function(){cssQuery.addModule("css-level2",function(){selectors[">"]=function(r,f,t,n){var e,i,j;for(i=0;i<f.length;i++){var s=childElements(f[i]);for(j=0;(e=s[j]);j++)if(compareTagName(e,t,n))r.push(e)}};selectors["+"]=function(r,f,t,n){for(var i=0;i<f.length;i++){var e=nextElementSi...
PypiClean
/Marginal-Contribution-Feature-Importance-0.1.0.tar.gz/Marginal-Contribution-Feature-Importance-0.1.0/mci/estimators/brute_force.py
from itertools import combinations from typing import Optional, Tuple, List, Dict from pandas import DataFrame from mci.estimators.contribution_tracker import ContributionTracker from mci.utils.pac_noise import pac_noise from mci.utils.type_hints import MultiVariateArray, UniVariateArray from mci.estimators.base_estima...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/lib/email_validator.py
import sys import re import unicodedata import idna # implements IDNA 2008; Python's codec is only IDNA 2003 # Based on RFC 2822 section 3.2.4 / RFC 5322 section 3.2.3, these # characters are permitted in email addresses (not taking into # account internationalization): ATEXT = r'a-zA-Z0-9_!#\$%&\'\*\+\-/=\?\^`\{\|\}...
PypiClean
/KnKPoolExecutor-2.0.1.tar.gz/KnKPoolExecutor-2.0.1/README.md
# Kanokkul's Pool Executor Kanokkul's Pool Executor contains `ProcessPoolExecutor` and `ThreadPoolExecutor` which preserve traceback output for exception. This package also has `StackTracedProcessPoolExecutor` for environment without `/dev/shm` ## Installation ```sh pip install KnKPoolExecutor ``` ## Usage Simply subs...
PypiClean
/NeuralPlayground-0.0.7.tar.gz/NeuralPlayground-0.0.7/neuralplayground/arenas/arena_core.py
import os import pickle import numpy as np import pandas as pd from deepdiff import DeepDiff from gymnasium import Env, spaces class Environment(Env): """Abstract parent environment class Methods ---------- __init__(self, environment_name: str = "Environment", **env_kwargs): Initialize the cl...
PypiClean
/Geohash-1.0.tar.gz/Geohash-1.0/README.rst
======= Geohash ======= Geohash is a Python module that provides functions for decoding and encoding Geohashes_ to and from latitude and longitude coordinates. Example:: >>> import Geohash >>> print 'Geohash for 42.6, -5.6:', Geohash.encode(42.6, -5.6) Geohash for 42.6, -5.6: ezs42e44yx96 You can specify an a...
PypiClean
/Dhelpers-0.1.5rc1.tar.gz/Dhelpers-0.1.5rc1/Dlib/Dpowers/events/keybutton_names.py
from .keybutton_classes import NamedKey, NamedButton @NamedButton.update_names class StandardButtonNames: class standard: left = 'mouse_left', 'mleft', 'left', 'l', 'mouse_1', 'm1', 1 middle = 'mouse_middle', 'mmiddle', 'middle', 'm', 'mouse_2', 'm2', 2 right = 'mouse_right', 'mright', 'r...
PypiClean
/MuPhyN-0.1.1.post4-py3-none-any.whl/muphyn/packages/interface/editors/diagram_editor.py
# General Imports import ctypes, yaml, time from typing import Iterable, List # PyQt6 Imports from PyQt6 import QtGui from PyQt6.QtCore import Qt, pyqtSignal, QPointF, QThread from PyQt6.QtGui import QPainter, QClipboard from PyQt6.QtWidgets import QGraphicsScene, QGraphicsSceneDragDropEvent, QGraphicsView, QTabWidge...
PypiClean
/Akvo-1.7.2-py3-none-any.whl/akvo/tressel/mrsurvey.py
from PyQt5.QtCore import * import numpy as np import scipy.signal as signal import pylab import sys import scipy from scipy import stats import copy import struct, glob from scipy.io.matlab import mio import pandas as pd from numpy import pi from math import floor import matplotlib as mpl from matplotlib.ticker import ...
PypiClean
/Flask-Inject-1.1.0.zip/Flask-Inject-1.1.0/flask_inject.py
from flask import g from functools import wraps class Inject(object): class InjectException(Exception): def __init__(self, message): self.message = message class Injector(object): def __init__(self, parent=None): if parent is not None and not isinstance(parent, Inject....
PypiClean
/OASYS1-shadow4-0.0.10.tar.gz/OASYS1-shadow4-0.0.10/orangecontrib/shadow4/widgets/gui/ow_optical_element_with_surface_shape.py
import numpy import sys, os from PyQt5.QtWidgets import QDialog, QGridLayout, QWidget, QDialogButtonBox, QFileDialog from matplotlib import cm from oasys.widgets.gui import FigureCanvas3D from matplotlib.figure import Figure try: from mpl_toolkits.mplot3d import Axes3D # plot 3D except: pass from orangecanvas.re...
PypiClean
/JScribe-0.2a4.tar.gz/JScribe-0.2a4/jscribe/core/jinjatemplaterenderer.py
from jinja2 import Environment, PackageLoader class JinjaTemplateRenderer(object): """* Jinja template renderer. Creates html files basing on templates with Jinja2 syntax. @class jscribe.core.jinjatemplaterenderer.JinjaTemplateRenderer """ def __init__(self, template_package, global_context): ...
PypiClean
/CheckMyTex-0.10.5.tar.gz/CheckMyTex-0.10.5/checkmytex/finding/chktex.py
import re import shutil import typing from checkmytex.latex_document import LatexDocument from .abstract_checker import Checker from .problem import Problem def _extract_problem(match: re.Match, document: LatexDocument) -> Problem: row = int(match.group("row")) assert row >= 1, "Rows seem to start at 1." ...
PypiClean
/ModelSEEDpy-freiburgermsu-0.3.1.4.tar.gz/ModelSEEDpy-freiburgermsu-0.3.1.4/modelseedpy_freiburgermsu/community/mscompatibility.py
from collections import OrderedDict, namedtuple from cobra import Reaction from cobra.io.json import save_json_model from modelseedpy_freiburgermsu.core.fbahelper import FBAHelper from modelseedpy_freiburgermsu.core.mseditorapi import MSEditorAPI from itertools import chain from typing import Iterable from zipfile impo...
PypiClean
/Fifty-Docker-1.3.tar.gz/Fifty-Docker-1.3/fifty_docker/main.py
import click import json import os import yaml from jinja2 import Environment, FileSystemLoader, StrictUndefined from time import sleep @click.command() @click.option('-t', '--template', type=click.Path(exists=True, dir_okay=False, resolve_path=True), help='The Jinja template to render') @click.option('...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/utils/safestring.py
from django.utils.functional import wraps class SafeData: def __html__(self): """ Return the html representation of a string for interoperability. This allows other template engines to understand Django's SafeData. """ return self class SafeBytes(bytes, SafeData): ""...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/components/prism-puppet.min.js
!function(e){e.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r))*?[ \t]*\|?[ \t]*-?[ \t]*\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r))*?[ \t]*\|?[ \...
PypiClean