id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/DynamicForms-0.74.8-py3-none-any.whl/dynamicforms_legacy/static/bootstrap-3.4.1-dist/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 |
/MAZAlib-0.0.24.tar.gz/MAZAlib-0.0.24/README.md | # MAZAlib
Cross-platform 2d/3d image segmentation C++ library
Compliles with: MSVC 14.0 and later, GCC 9.2. Other GCC: not tested yet.
Compatible with C++14, C++11 - not tested
Authors: Roman V. Vasilyev, Timofey Sizonenko, Kirill M. Gerke, Marina V. Karsanina
Moscow, 2017-2021
## Prerequisites
1. Install CMake 3.... | PypiClean |
/Hive_ML-1.0.1.tar.gz/Hive_ML-1.0.1/Hive_ML_scripts/Hive_ML_model_fitting.py |
import datetime
import importlib.resources
import json
import os
import warnings
from argparse import ArgumentParser, RawTextHelpFormatter
from pathlib import Path
from textwrap import dedent
import numpy as np
import pandas as pd
import plotly.express as px
from Hive.utils.log_utils import (
get_logger,
add_... | PypiClean |
/CNFgen-0.9.2-py3-none-any.whl/cnfgen/__init__.py | # Basic CNF object
from cnfgen.formula.cnf import CNF
# Graph IO functions
from cnfgen.graphs import readGraph, writeGraph
from cnfgen.graphs import supported_graph_formats
from cnfgen.graphs import Graph
from cnfgen.graphs import DirectedGraph
from cnfgen.graphs import BipartiteGraph
# SAT solvers
from cnfgen.utils.... | PypiClean |
/LiteMap-0.2.1.tar.gz/LiteMap-0.2.1/litemap.py |
import sqlite3
import collections
import threading
__all__ = ['LiteMap']
class LiteMap(collections.MutableMapping):
"""Persistant mapping class backed by SQLite.
Only capable of mapping strings to strings; everything will be cast to a
buffer on its way into the database and back to a str on the way ... | PypiClean |
/DimStore-0.1.1-py3-none-any.whl/dimsum/providers/dataframe/converter/pandas_converter.py | from pandas.core.frame import DataFrame
from pyspark import SparkContext, SQLContext
from dimsum.providers.dataframe.converter.converter_base import ConverterBase
class PandasConverter(ConverterBase):
# class attributes
__support__ = {('pandas','pandas'),
('pandas','pyspark')}
"""
"... | PypiClean |
/MuPhyN-0.1.1.post4-py3-none-any.whl/muphyn/packages/interface/base/math_expression_painter.py | import matplotlib as mpl
from PyQt6.QtGui import QFont, QImage
from matplotlib.figure import Figure
from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg
def generateMathExpression(mathText):
"""This function is not used for the moment
but can be used as replacement of mathTex_to_QPixmap"""
fig... | PypiClean |
/FoLiA-Linguistic-Annotation-Tool-0.11.tar.gz/FoLiA-Linguistic-Annotation-Tool-0.11/flat/script/foliaspec.js | foliaspec = {
"annotationtype": [
"TEXT",
"TOKEN",
"DIVISION",
"PARAGRAPH",
"HEAD",
"LIST",
"FIGURE",
"WHITESPACE",
"LINEBREAK",
"SENTENCE",
"POS",
"LEMMA",
"DOMAIN",
"SENSE",
"SYNTAX",
"C... | PypiClean |
/GPGO-0.1.2.tar.gz/GPGO-0.1.2/README.md | # GPGO - Gaussian Process GO
My own implementation of a Bayesian Black box Optimization with Gaussian Process as a surrogate model.
It is still in development as I'm using it for my Master degree thesis to achieve a bottom up optimization of the Dissipative
Particle Dynamics force field for a complex system of polymers... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/mode/brainfuck/brainfuck.js |
// Brainfuck mode created by Michael Kaminsky https://github.com/mkaminsky11
(function(mod) {
if (typeof exports == "object" && typeof module == "object")
mod(require("../../lib/codemirror"))
else if (typeof define == "function" && define.amd)
define(["../../lib/codemirror"], mod)
else
mod(CodeMirro... | PypiClean |
/7Wonder-RL-Lib-0.1.1.tar.gz/7Wonder-RL-Lib-0.1.1/docs/_static/js/html5shiv.min.js | !function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&... | PypiClean |
/MarkDo-0.3.0.tar.gz/MarkDo-0.3.0/markdo/static/bower/codemirror/mode/htmlembedded/htmlembedded.js | CodeMirror.defineMode("htmlembedded", function(config, parserConfig) {
//config settings
var scriptStartRegex = parserConfig.scriptStartRegex || /^<%/i,
scriptEndRegex = parserConfig.scriptEndRegex || /^%>/i;
//inner modes
var scriptingMode, htmlMixedMode;
//tokenizer when in html mode
functi... | PypiClean |
/MD_MTL-0.0.9-py3-none-any.whl/Vampyr_MTL/functions/MTL_Cluster_Least_L21.py | import numpy as np
from .init_opts import init_opts
from numpy import linalg as LA
from tqdm import tqdm
from tqdm import trange
import sys
import time
from scipy.sparse import identity
from scipy import linalg
from scipy.sparse.linalg import spsolve
from scipy.sparse import isspmatrix
class MTL_Cluster_Least_L21:
... | PypiClean |
/NeuroTorch-0.0.1b2.tar.gz/NeuroTorch-0.0.1b2/src/neurotorch/callbacks/convergence.py | import time
from typing import Optional
import numpy as np
from .base_callback import BaseCallback
class ConvergenceTimeGetter(BaseCallback):
"""
Monitor the training process and return the time it took to pass the threshold.
"""
def __init__(
self,
*,
metric: str,
threshold: float,
minimize_metr... | PypiClean |
/ChemDataExtractor-1.3.0-py3-none-any.whl/chemdataextractor/nlp/lexicon.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import six
from ..data import load_model
from ..text import word_shape, is_ascii, is_punct, like_url, like_number
from ..text.normalize import Normalizer,... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/system_settings_response_py3.py |
from msrest.serialization import Model
class SystemSettingsResponse(Model):
"""SystemSettingsResponse.
:param organization_name: The organization name
:type organization_name: str
:param display_organization_name_in_header: Indicates whether or not
organization name should be displayed in the a... | PypiClean |
/Copreus-0.4.0.tar.gz/Copreus-0.4.0/copreus/schema/drivermanager.py | import copreus.schema.adc
import copreus.schema.bme_280
import copreus.schema.dac
import copreus.schema.dht
import copreus.schema.epaperdirect
import copreus.schema.epapersimple
import copreus.schema.input
import copreus.schema.pollinginput
import copreus.schema.output
import copreus.schema.rotaryencoder
import copreus... | PypiClean |
/FIRSTBEATLU-0.13.1.tar.gz/FIRSTBEATLU-0.13.1/econml/dml/_rlearner.py | from abc import abstractmethod
import numpy as np
import copy
from warnings import warn
from ..utilities import (shape, reshape, ndim, hstack, filter_none_kwargs, _deprecate_positional)
from sklearn.linear_model import LinearRegression
from sklearn.base import clone
from .._ortho_learner import _OrthoLearner
class _M... | PypiClean |
/FlowMaster-0.7.1.tar.gz/FlowMaster-0.7.1/flowmaster/operators/base/policy.py | import datetime as dt
from abc import ABC
from typing import Optional, Union, Literal, TypeVar
import pendulum
from pydantic import BaseModel, PositiveInt, PrivateAttr, validator
PydanticModelT = TypeVar("PydanticModelT", bound=BaseModel)
class BasePolicy(BaseModel):
pools: Optional[list[str]] = None
concur... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/backends/mysql/operations.py | import decimal
import uuid
from djmodels.conf import settings
from djmodels.db.backends.base.operations import BaseDatabaseOperations
from djmodels.utils import timezone
from djmodels.utils.duration import duration_microseconds
from djmodels.utils.encoding import force_text
class DatabaseOperations(BaseDatabaseOpera... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/utils/float.py | import numpy as np
from netket.utils.types import Array, Union
def comparable(
x: Array, *, bin_density: int = 3326400, offset: float = 5413 / 15629
) -> Array:
"""
Casts a floating point input to integer-indexed bins that are safe to compare
or hash.
Arguments:
x: the float array to be c... | PypiClean |
/HeartSounds-0.0.2-py3-none-any.whl/heartsounds/find_agreeing_points.py | import numpy as np
from enum import Enum
Agree_reduce_method = Enum("Agree_reduce_method", ("MEDIAN", "MAX"))
def find_agreeing_points(
agreement_time_threshold: float,
max_disagreers: int,
indices_by_detector: dict,
signal: np.ndarray,
sample_rate: float,
root_detector: str,
agree_reduce... | PypiClean |
/BeakerShowSessions-0.1.3.tar.gz/BeakerShowSessions-0.1.3/README.txt | BeakerShowSessions
==================
BeakerShowSessions is a Beaker_ extension that shows the active sessions
according to the given WSGI configuration file. Currently the plugin only works
with ext:database session storage backend.
You can find the Mercurial repository at bitbucket.org_
Installation
------------
... | PypiClean |
/Chips-0.1.2.tar.gz/Chips-0.1.2/examples/example_1_hello_world.py | import sys
from chips import * #use the chips library
################################################################################
##make a simulation model that prints to stdout
def make_chip(string, output):
return Chip(
output(
Sequence(*tuple((ord(i) for i in string))+(0,)),
... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/trakt/db.py | import time
from datetime import datetime, timedelta
from typing import List
from dateutil.parser import parse as dateutil_parse
from loguru import logger
from sqlalchemy import Column, Date, DateTime, Integer, String, Table, Time, Unicode, and_, or_
from sqlalchemy.orm import relationship
from sqlalchemy.schema impor... | PypiClean |
/73e4d8e848405a88f444cff1c9dbc5b8-0.5-py3-none-any.whl/sstools/saffronstays.py | import requests
import json
import pandas as pd
from sendgrid.helpers.mail import Mail
from sendgrid import SendGridAPIClient
from .common import *
# SQL query on the SS database (ONLY SELECT) - returns a dataframe
def sql_query(query,cypher_key):
myConnection = db_connection(cypher_key,database="main")
if que... | PypiClean |
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/public/js/mergely.js | "use strict";
(function( window, document, jQuery, CodeMirror ){
var Mgly = {};
Mgly.Timer = function(){
var self = this;
self.start = function() { self.t0 = new Date().getTime(); };
self.stop = function() {
var t1 = new Date().getTime();
var d = t1 - self.t0;
self.t0 = t1;
return d;
};
self.start();
... | PypiClean |
/CAMELS_library-0.3.tar.gz/CAMELS_library-0.3/scripts/autoencoder/main.py | import numpy as np
import sys,os
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim as optim
import torchvision.utils as vutils
import data
import architecture
import matplotlib.pyplot as plt
import utils
################################### INPUT ######... | PypiClean |
/Guerilla-1.0.2.tar.gz/Guerilla-1.0.2/guerilla/play/search.py | from abc import ABCMeta, abstractmethod
import chess
import math
import time
import numpy as np
from collections import namedtuple
from search_helpers import quickselect, material_balance
import guerilla.data_handler as dh
# Note:
# Moves are stored as UCI strings
# Leaf FEN is stripped
Transposition = namedtuple... | PypiClean |
/ComputMath-1.0.1.tar.gz/ComputMath-1.0.1/README.md | Computational_Mathematics
---
---
Модуль содержит методы решения различных задач по
вычислительной математике. Рассчитан на 2-3 курс
по предмету "Вычислительная математика"
1. Численные методы решения нелинейных уравнений ( нахождения корней уравнения )
- [Метод половинного деления](root/half_division.py)
-... | PypiClean |
/Colbert-0.30.tar.gz/Colbert-0.30/src/scripts/colbert_compte_de_resultat.py |
# Copyright (c) 2012 Stanislas Guerra <stanislas.guerra@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notic... | PypiClean |
/Apppath-1.0.3.tar.gz/Apppath-1.0.3/README.md | <!---->
<p align="center">
<img src=".github/images/apppath.svg" alt='AppPath' />
</p>
<h1 align="center">AppPath</h1>
<!--# AppPath-->
| [](https://pything.github.io/apppat... | PypiClean |
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/plugins/common/block/lib/block.js | * Module which contains the base class for Blocks, and a Default/Debug block.
*
* @name block.block
* @namespace block/block
*/
define(['aloha', 'aloha/jquery', 'block/blockmanager', 'aloha/observable', 'aloha/floatingmenu'],
function(Aloha, jQuery, BlockManager, Observable, FloatingMenu) {
var GENTICS = windo... | PypiClean |
/BespON-0.6.0.tar.gz/BespON-0.6.0/bespon/coding.py | from __future__ import (division, print_function, absolute_import,
unicode_literals)
import sys
# pylint: disable=E0602, W0622
if sys.version_info.major == 2:
str = unicode
chr = unichr
# pylint: enable=E0602, W0622
if sys.maxunicode == 0xFFFF:
__narrow_chr__ = unichr
__nar... | PypiClean |
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/0.6/vm.js | var vm = {};
/**
* createScript compiles code but does not run it. Instead, it returns a
* vm.Script object representing this compiled code. This script can be run
* later many times using methods below. The returned script is not bound
* to any global object. It is bound before each run, just for that run.
* fil... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/5899.3ad49e66af3ff7c33275.min.js | "use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[5899,85042,34754,18045],{63121:function(A,t,e){e.r(t),e.d(t,{ListView:function(){return D},default:function(){return m}});var n=e(93379),i=e.n(n),r=e(7795),a=e.n(r),o=e(3565),s=e.n(o),c=e(19216),l=e.n(c),d=e(44... | PypiClean |
/DoThings-0.2.tar.gz/DoThings-0.2/things/things.py | import pickle
import sys
from os import path
from docopt import docopt
class TermColor:
RED = "\033[91m"
GREEN = "\033[92m"
BOLD = "\033[1m"
END = "\033[0m"
class TermSign:
CHECK = u"\u2714".encode("utf8")
START = u"\u2731".encode("utf8")
BALLOTBOXWITHCHECK = u"\u2611".encode("utf8")
B... | PypiClean |
/FlaskFarm-4.0.104-py3-none-any.whl/flaskfarm/lib/system/page_command.py | import queue
from support import SupportSubprocess
from tool import ToolModalCommand
from .setup import *
class PageCommand(PluginPageBase):
def __init__(self, P, parent):
super(PageCommand, self).__init__(P, parent, name='command')
self.db_default = {
f'{self.parent.name}_{self... | PypiClean |
/D-Analyst-1.0.6.tar.gz/D-Analyst-1.0.6/main/analyst/managers/mesh_manager.py | from analyst import NavigationEventProcessor, InteractionManager, \
PaintManager, \
GridEventProcessor, scale_matrix, rotation_matrix, translation_matrix, \
MeshNavigationEventProcessor
from .default_manager import DefaultPaintManager, DefaultInteractionManager, \
DefaultBindings
from .plot_manager impo... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/dense_heads/atss_head.py | import torch
import torch.nn as nn
from mmcv.cnn import ConvModule, Scale
from mmcv.runner import force_fp32
from mmdet.core import (anchor_inside_flags, build_assigner, build_sampler,
images_to_levels, multi_apply, reduce_mean, unmap)
from ..builder import HEADS, build_loss
from .anchor_head i... | PypiClean |
/Lmgeo-1.1.0.tar.gz/Lmgeo-1.1.0/lmgeo/formats/tiletiffraster.py | from __future__ import division
from .const import constants as const
from .gridenvelope2d import GridEnvelope2D;
from .basetiffraster import BaseTiffRaster
from libtiff import TIFF, libtiff
import numpy as np
import os
from math import floor, ceil, sqrt
__author__ = "Steven B. Hoek"
class TileTiffRaster(BaseTiffRast... | PypiClean |
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/types/inline_mode/inline_query_result_article.py |
import newgram
from newgram import raw
from newgram import types
from .inline_query_result import InlineQueryResult
class InlineQueryResultArticle(InlineQueryResult):
"""Link to an article or web page.
Parameters:
title (``str``):
Title for the result.
input_message_content (:o... | PypiClean |
/AircraftDR-0.1-py3-none-any.whl/ADR/Components/Plane.py | from ADR.Components.Aerodynamic_components.Wing import Wing
from ADR.Components.Aerodynamic_components.HS import HS
from ADR.Components.Propulsion.Motor import Motor
from ADR.Components.Points.CG import CG
from ADR.Components.Points.TPR import TPR
from ADR.Core.data_manipulation import dict_to_dataframe
import numpy a... | PypiClean |
/OOoPy-2.0.tar.gz/OOoPy-2.0/ooopy/Transformer.py |
from __future__ import absolute_import, print_function, unicode_literals
import time
import re
try :
from xml.etree.ElementTree import dump, SubElement, Element, tostring
from xml.etree.ElementTree import _namespace_map
except ImportError :
from elementtree.ElementTree import dump, SubElement, Element... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/db/models/query_utils.py | from __future__ import unicode_literals
from django.db.backends import util
from django.utils import six
from django.utils import tree
class InvalidQuery(Exception):
"""
The query passed to raw isn't a safe query to use with raw.
"""
pass
class QueryWrapper(object):
"""
A type that indicate... | PypiClean |
/DLStudio-2.3.0.tar.gz/DLStudio-2.3.0/Examples/object_detection_and_localization.py |
## object_detection_and_localization.py
"""
This script shows how you can use the functionality provided by the inner class
DetectAndLocalize of the DLStudio module for experimenting with object detection and
localization.
Detecting and localizing objects in images is a more difficult problem than just
classifying ... | PypiClean |
/Flask-MDBootstrap-3.0.5.tar.gz/Flask-MDBootstrap-3.0.5/flask_mdbootstrap/static/MDB-Pro/src/js/vendor/pro/jquery.sticky.js | ;(function($) {
$.fn.sticky = function(options) {
var defaults = {
topSpacing: 0, // No spacing by default
zIndex: '', // No default z-index
stopper: '.sticky-stopper', // Default stopper class, also accepts number value
stickyClass: false // Class applied to element when it's stuck
}... | PypiClean |
/GraphCASE-0.0.9.tar.gz/GraphCASE-0.0.9/GAE/graph_case_controller.py | import pickle
from datetime import datetime
import numpy as np
import tensorflow as tf
from GAE.model import GraphAutoEncoderModel
from GAE.input_layer_constructor import InputLayerConstructor
from GAE.graph_reconstructor import GraphReconstructor
from GAE.transformation_layer import DecTransLayer, EncTransLayer, Hub0_... | PypiClean |
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/_Attr/Coll.py |
from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
from _MOM import MOM
from _TFL import TFL
import _TFL._Meta.M_Class
import _TFL.Decorator
class M_Coll (TFL.Meta.M_Class) :
_state_changers = ... | PypiClean |
/DiPAS-2.0.tar.gz/DiPAS-2.0/docs/source/usage/converting.ipynb | # Converting thick to thin elements
Not all lattice elements support thick tracking and so converting these elements to thin slices is necessary before doing particle tracking or optics calculations. Elements can be converted to their thin representation using the `makethin` method:
```
from dipas.build import Latti... | PypiClean |
/ConGen-0.0.5.tar.gz/ConGen-0.0.5/README.md | # ConGen: Creating conservation planning datasets intuitively by playing with parameters and getting instant visualized feedback
## Requirements
For python library requirements, see pyproject.toml. Additionally, the following system libraries and development headers are required:
- basic build tools (gcc, make etc.)
-... | PypiClean |
/Code_groupe1_laguilhon-0.0.1.tar.gz/Code_groupe1_laguilhon-0.0.1/README.md | General description
The objective of this project is to create a photofit picture software. The idea is to present several images with faces to the user. The user will have to choose one or more images that is/are closest to the person they wish to report. Each time, a genetic algorithm is followed by a decoder to for... | PypiClean |
/LQTAgridPy-0.4.tar.gz/LQTAgridPy-0.4/src/grid_generate.py |
import matrix_generate
import utils
class GridGenerate():
def __init__(self, coordinates, dimensions, atp, files, step):
dataFile = open(files).read().splitlines()
matrices = []
minimos = [999999.0,999999.0,999999.0]
maximos = [-999999.0,-999999.0,-999999.0]
#fo... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/experimental/dynamics/_rk_tableau.py |
from typing import Callable, Optional, Tuple
import jax
import jax.numpy as jnp
from netket.utils.struct import dataclass
from netket.utils.types import Array, PyTree
default_dtype = jnp.float64
def expand_dim(tree: PyTree, sz: int):
"""
creates a new pytree with same structure as input `tree`, but where ... | PypiClean |
/LAMDA-SSL-1.0.2.tar.gz/LAMDA-SSL-1.0.2/LAMDA_SSL/Config/FixMatch.py | from LAMDA_SSL.Augmentation.Vision.RandomHorizontalFlip import RandomHorizontalFlip
from LAMDA_SSL.Augmentation.Vision.RandomCrop import RandomCrop
from LAMDA_SSL.Augmentation.Vision.RandAugment import RandAugment
from LAMDA_SSL.Augmentation.Vision.Cutout import Cutout
from LAMDA_SSL.Opitimizer.SGD import SGD
from LAMD... | PypiClean |
/Cantiz-PyChromecast-3.2.2.tar.gz/Cantiz-PyChromecast-3.2.2/pychromecast/dial.py | from collections import namedtuple
from uuid import UUID
import logging
import requests
from .discovery import get_info_from_service, get_host_from_service_info
XML_NS_UPNP_DEVICE = "{urn:schemas-upnp-org:device-1-0}"
FORMAT_BASE_URL = "http://{}:8008"
CC_SESSION = requests.Session()
CC_SESSION.headers['content-ty... | PypiClean |
/django-chuck-0.2.3.tar.gz/django-chuck/modules/feincms/project/static/scripts/libs/tiny_mce/plugins/media/editor_plugin.js | (function(){var d=tinymce.explode("id,name,width,height,style,align,class,hspace,vspace,bgcolor,type"),h=tinymce.makeMap(d.join(",")),b=tinymce.html.Node,f,a,g=tinymce.util.JSON,e;f=[["Flash","d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash","http://download.macromedia.com/pub/shockwave/cabs/flash/... | PypiClean |
/Brian2GeNN-1.7.0-py3-none-any.whl/brian2genn/sphinxext/docscrape_sphinx.py | import inspect
import pydoc
import re
import textwrap
from sphinx.pycode import ModuleAnalyzer
from .docscrape import ClassDoc, FunctionDoc, NumpyDocString
class SphinxDocString(NumpyDocString):
def __init__(self, docstring, config=None):
if config is None:
config = {}
NumpyDocString... | PypiClean |
/Dhelpers-0.1.5rc1.tar.gz/Dhelpers-0.1.5rc1/Dlib/Dpowers/events/trigman.py | from warnings import warn
from . import NamedKey, keyb, NamedButton
from ..winapps import pythoneditor
from .event_classes import StringAnalyzer, EventCombination, EventSequence, \
StringEvent
from .hookpower import HookAdaptor, CallbackHook, KeyhookBase, ButtonhookBase
from Dhelpers.launcher import launch
from Dhe... | PypiClean |
/AxlNLP-0.0.1.tar.gz/AxlNLP-0.0.1/axlnlp/features/document_positions.py | from axlnlp.features.base import FeatureModel
import pandas as pd
import numpy as np
class DocPos(FeatureModel):
"""
Creates a vector representing a sentences position in the text.
inital_texts are needed to create this feature
feature is specifically implemented for replication of Joint Pointer N... | PypiClean |
/ConSav-0.11.tar.gz/ConSav-0.11/consav/linear_interp_4d.py | import numpy as np
from numba import njit, boolean, int32, double, void
from .linear_interp import binary_search
@njit(double(double[:],double[:],double[:],double[:],double[:,:,:,:],double,double,double,double,int32,int32,int32,int32),fastmath=True)
def _interp_4d(grid1,grid2,grid3,grid4,value,xi1,xi2,xi3,xi4,j1,j2,j3... | PypiClean |
/KeyHarbor-0.0.1.tar.gz/KeyHarbor-0.0.1/keyharbor/client.py | import hashlib
import json
import io
import time
import requests
from werkzeug.datastructures import MultiDict
from . import exceptions
__all__ = ['Client']
class APIClient:
"""
A client for the KeyHarbor API.
"""
def __init__(self,
account_id,
api_key,
api_base_url='https:... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/crm/api/sync_status_api.py | import re # noqa: F401
import sys # noqa: F401
from MergePythonSDK.shared.api_client import ApiClient, Endpoint as _Endpoint
from MergePythonSDK.shared.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_ty... | PypiClean |
/HMOBSTER-0.0.44.tar.gz/HMOBSTER-0.0.44/mobster/BoundedPareto.py | from pyro.distributions.torch_distribution import TorchDistribution
from pyro.distributions import constraints
from numbers import Number
import torch
# class BoundedPareto(Rejector):
# def __init__(self, scale, alpha, upper_limit, validate_args=False):
# propose = Pareto(scale, alpha, validate_args=valid... | PypiClean |
/OWSLib-0.29.2.tar.gz/OWSLib-0.29.2/owslib/coverage/wcs200.py |
# !!! NOTE: Does not conform to new interfaces yet #################
from owslib.coverage.wcsBase import WCSBase, WCSCapabilitiesReader, ServiceException
from owslib.ows import (
OwsCommon,
ServiceIdentification,
ServiceProvider,
OperationsMetadata,
)
from urllib.parse import urlencode
from owslib.u... | PypiClean |
/DDFacet-0.7.2.0.tar.gz/DDFacet-0.7.2.0/SkyModel/PSourceExtract/ClassFitIslands.py | from __future__ import division, absolute_import, print_function
import numpy as np
from SkyModel.Other.progressbar import ProgressBar
from SkyModel.PSourceExtract.ClassGaussFit import ClassGaussFit as ClassFit
class ClassFitIslands():
def __init__(self,IslandClass,NCPU=6):
self.Islands=IslandClass
... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/docs/source/users/checkpointing.rst | .. _checkpointing:
################################
Checkpointing in FitBenchmarking
################################
In some cases, fitting can take a long time and rerunning the fits to change
output options is inefficient. For this situation we provide a checkpointing
file.
Using the checkpointing feature
=======... | PypiClean |
/BOX_KEEP_UPS-1.tar.gz/BOX_KEEP_UPS-1/README.md | # BOX_KEEP_UPS
"Box Keep Ups" is a simple offline game created using Kivy. In this game, the player needs to move the box to ensure
that the ball bounces and does not touch the ground.
# Executable File
The executable file is downloadable at
https://github.com/NativeApkDev/BOX_KEEP_UPS/blob/master/BOX_KEEP_UPS/dist... | PypiClean |
/Denis_mess_client-1.0.0.tar.gz/Denis_mess_client-1.0.0/client/client/database.py | import datetime
import os
from sqlalchemy import create_engine, Table, Column, Integer, String, Text, \
MetaData, DateTime
from sqlalchemy.orm import mapper, sessionmaker
from sqlalchemy.sql import default_comparator
from common.variables import *
class ClientDatabase:
"""
Класс - оболочка для работы с ... | PypiClean |
/FinMesh-2.3-py3-none-any.whl/FinMesh-2.3.dist-info/LICENSE.md | # License Overview:
## This software is available for use under the Apache 2.0 License, subject to the Commons Clause Condition.
Essentially this means that the software is 'source-available', free to nearly all users and use-cases. The one thing that is restricted through the Commons Clause is the selling of the soft... | PypiClean |
/0x_order_utils-4.0.1-py3-none-any.whl/zero_ex/order_utils/asset_data_utils.py |
from typing import NamedTuple
import eth_abi
from deprecated.sphinx import deprecated
from zero_ex.dev_utils import abi_utils
from zero_ex.dev_utils.type_assertions import assert_is_string, assert_is_int
ERC20_ASSET_DATA_BYTE_LENGTH = 36
ERC721_ASSET_DATA_MINIMUM_BYTE_LENGTH = 53
SELECTOR_LENGTH = 10
class ERC20... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/node_modules/jquery/src/css/support.js | define( [
"../core",
"../var/document",
"../var/documentElement",
"../var/support"
], function( jQuery, document, documentElement, support ) {
"use strict";
( function() {
// Executing both pixelPosition & boxSizingReliable tests require only one layout
// so they're executed at the same time to save the secon... | PypiClean |
/CloudReg-1.0.1-py3-none-any.whl/cloudreg/scripts/registration_accuracy.py | from .util import aws_cli
import os
import subprocess
import shlex
import requests as r
import numpy as np
import h5py
from cloudvolume import CloudVolume
from collections import defaultdict
import uuid
import argparse
from scipy.io import loadmat
import json
def loadmat_v73(mat_path):
arrays = {}
f = h5py.F... | PypiClean |
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/mode/sass/sass.js | CodeMirror.defineMode("sass", function(config) {
var tokenRegexp = function(words){
return new RegExp("^" + words.join("|"));
};
var keywords = ["true", "false", "null", "auto"];
var keywordsRegexp = new RegExp("^" + keywords.join("|"));
var operators = ["\\(", "\\)", "=", ">", "<", "==", ">=", "<=", "\... | PypiClean |
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/lib/xslt/proxywriter.py | import new
import weakref
import operator
from amara.namespaces import EXTENSION_NAMESPACE
from amara.lib.xmlstring import isspace
from amara.writers import streamwriter, textwriter, htmlwriter, xmlwriter
from amara.xslt import XsltError
_TEXT_METHOD = (None, 'text')
_HTML_METHOD = (None, 'html')
_XML_METHOD = (None... | PypiClean |
/CmonCrawl-1.0.3.tar.gz/CmonCrawl-1.0.3/docs/source/generated/cmoncrawl.common.types.ExtractorConfig.rst | cmoncrawl.common.types.ExtractorConfig
======================================
.. currentmodule:: cmoncrawl.common.types
.. autoclass:: ExtractorConfig
.. automethod:: __init__
.. rubric:: Methods
.. autosummary::
:toctree:
~ExtractorConfig.__init__
~ExtractorConfig.from_dict... | PypiClean |
/CaptureMock-2.3.0.tar.gz/CaptureMock-2.3.0/capturemock/pythontraffic.py |
import sys, types, inspect, re
from pprint import pformat
from threading import RLock
from . import traffic
from .recordfilehandler import RecordFileHandler
from .config import CaptureMockReplayError
class PythonWrapper(object):
def __init__(self, name, target):
self.name = name
self.target = targ... | PypiClean |
/101703373_topsis-1.0.0-py3-none-any.whl/topsis/101703373-topsis.py | import sys
import os
import pandas as pd
import math
import numpy as np
class Topsis:
def _init_(self,filename):
if os.path.isdir(filename):
head_tail = os.path.split(filename)
data = pd.read_csv(head_tail[1])
if os.path.isfile(filename):
data = pd.read_csv(filen... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/imdb/utils.py | import difflib
import json
import random
import re
from urllib.parse import quote
from loguru import logger
from flexget import plugin
from flexget.utils.requests import Session, TimedLimiter
from flexget.utils.soup import get_soup
from flexget.utils.tools import str_to_int
logger = logger.bind(name='imdb.utils')
r... | PypiClean |
/Flask-AppFactory-0.2.1.tar.gz/Flask-AppFactory-0.2.1/flask_appfactory/app.py | from __future__ import absolute_import, print_function, unicode_literals
import logging
import os
import re
import sys
import warnings
import ast
from flask import Flask
from flask_cli import FlaskCLI
from flask_registry import BlueprintAutoDiscoveryRegistry, \
ConfigurationRegistry, ExtensionRegistry, PackageReg... | PypiClean |
/Dero-0.15.0-py3-none-any.whl/dero/manager/imports/models/statements/module.py | from typing import List, Dict
import ast
import importlib
from types import ModuleType
from dero.mixins.repr import ReprMixin
from dero.manager.imports.models.statements.importbase import ImportStatement
from dero.manager.imports.models.statements.rename import RenameStatementCollection
from dero.manager.imports.mode... | PypiClean |
/HC_SR04-0.3.1-py3-none-any.whl/tools/serial.py | from serial import Serial
class _SerialDevice:
def __init__(self, port, baudrate, timeout = 3, open = False):
'''
init method
if open is set True then call open_serial()
'''
self._port = port
self._baudrate = baudrate
self._timeout = timeout
self.seri... | PypiClean |
/Dickbot.py-1.1-py3-none-any.whl/BotAmino/extensions.py | from time import sleep as slp
from threading import Thread
# from concurrent.futures import ThreadPoolExecutor
from contextlib import suppress
from unicodedata import normalize
from string import punctuation
from amino import objects
from .Bot import Bot
class TimeOut:
users_dict = {}
def time_user(self, ui... | PypiClean |
/MolGNN_try_2-0.0.1.tar.gz/MolGNN_try_2-0.0.1/README.md | # GNN-based QSAR models
### An example of Graph Neural Networks for QSAR modelling
The base models are adapted
from [this tutorial](https://uvadlc-notebooks.readthedocs.io/en/latest/tutorial_notebooks/tutorial7/GNN_overview.html),
part of the [UvA Deep Learning](https://uvadlc.github.io/) course.
The featurisation o... | PypiClean |
/KratosShallowWaterApplication-9.4-cp311-cp311-win_amd64.whl/KratosMultiphysics/ShallowWaterApplication/coupling/write_from_sw_at_interface_process.py | import KratosMultiphysics as KM
import KratosMultiphysics.ShallowWaterApplication as SW
from KratosMultiphysics.HDF5Application import single_mesh_temporal_output_process
from KratosMultiphysics.ShallowWaterApplication.coupling import depth_integration_output_process as BaseProcess
def Factory(settings, model):
if... | PypiClean |
/GSimPy-0.0.2-py3-none-any.whl/function/get_datainfo.py | from data.connect_database import *
def get_group_info(database_name, table_name, group_name):
"""
Query item-element information from item table
:param database_name: string
The database to connect to
:param table_name: string
The database table being ... | PypiClean |
/ChatDBG-0.0.15-py3-none-any.whl/chatdbg/chatdbg.py |
from . import pdb
from .pdb import Pdb, Restart, _ModuleTarget, _ScriptTarget
import asyncio
import sys
import traceback
from . import chatdbg_why
class ChatDBG(Pdb):
def do_why(self, arg):
asyncio.run(chatdbg_why.why(self, arg))
import importlib.metadata
_usage = f"""\
usage: chatdbg [-c command] .... | PypiClean |
/Flask-Security-Elucidata-1.0.0.tar.gz/Flask-Security-Elucidata-1.0.0/docs/api.rst | API
===
Core
----
.. autoclass:: flask_security.core.Security
:members:
.. data:: flask_security.core.current_user
A proxy for the current user.
Protecting Views
----------------
.. autofunction:: flask_security.decorators.login_required
.. autofunction:: flask_security.decorators.roles_required
.. autofu... | PypiClean |
/Icotest_DeviceServer-1.0.3-py3-none-any.whl/DeviceServer/api_client.py | from __future__ import absolute_import
import atexit
import datetime
from dateutil.parser import parse
import json
import mimetypes
from multiprocessing.pool import ThreadPool
import os
import re
import tempfile
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import quote
from De... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/imdb/imdb.py | from loguru import logger
from flexget import plugin
from flexget.event import event
from flexget.utils.log import log_once
logger = logger.bind(name='imdb')
class FilterImdb:
"""
This plugin allows filtering based on IMDB score, votes and genres etc.
Note: All parameters are optional. Some are mutuall... | PypiClean |
/LigBinder-0.1.4-py3-none-any.whl/ligbinder/md.py | import os
from typing import List, Optional
import subprocess
import logging
from ligbinder.settings import SETTINGS
logger = logging.getLogger(__name__)
class AmberMDEngine:
def __init__(
self,
path,
crd_file: Optional[str] = None,
top_file: Optional[str] = None,
trj_fi... | PypiClean |
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/uix/carousel.py | __all__ = ('Carousel', )
from functools import partial
from kivy.clock import Clock
from kivy.factory import Factory
from kivy.animation import Animation
from kivy.uix.stencilview import StencilView
from kivy.uix.relativelayout import RelativeLayout
from kivy.properties import BooleanProperty, OptionProperty, AliasPro... | PypiClean |
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/methods/chats/promote_chat_member.py |
from typing import Union
import pyrogram
from pyrogram import raw, types, errors
class PromoteChatMember:
async def promote_chat_member(
self: "pyrogram.Client",
chat_id: Union[int, str],
user_id: Union[int, str],
privileges: "types.ChatPrivileges" = None,
) -> bool:
... | PypiClean |
/FRCUploader-3.6.2.tar.gz/FRCUploader-3.6.2/frcuploader/consts.py | import os
import pkg_resources
import tbapy
__version__ = pkg_resources.require("FRCUploader")[0].version
# Default Variables
DEBUG = False # DON'T COMMIT THIS LINE IF TRUE
DEFAULT_TAGS = "{}, frcuploader, FIRST, omgrobots, FRC, FIRST Robotics Competition, robots, Robotics, {game}"
MATCH_TYPE = ("qm", "qf", "sf", "... | PypiClean |
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/conf/forms.py | from __future__ import unicode_literals
from future.builtins import int
from collections import defaultdict
from django import forms
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
from django.template.defaultfilters import urlize
from mezzanine.conf import setti... | PypiClean |
/Mopidy-16x2LCD-0.1.0.tar.gz/Mopidy-16x2LCD-0.1.0/README.rst | ****************************
Mopidy-IRControl
****************************
.. image:: https://pypip.in/v/Mopidy-16x2LCD/badge.png
:target: https://pypi.python.org/pypi/Mopidy-16x2LCD/
:alt: Latest PyPI version
.. image:: https://pypip.in/d/Mopidy-16x2LCD/badge.png
:target: https://pypi.python.org/pypi/Mop... | PypiClean |
/django-chuck-0.2.3.tar.gz/django-chuck/build/lib/django_chuck/commands/install_modules.py | from django_chuck.commands.base import BaseCommand
import os
import sys
import shutil
from django_chuck.utils import append_to_file, get_files, get_template_engine, compile_template
from random import choice
class Command(BaseCommand):
help = "Create all modules"
# Which modules shall be installed
modules... | PypiClean |
/HyFetch-1.4.10.tar.gz/HyFetch-1.4.10/hyfetch/termenv.py | from __future__ import annotations
import os
import platform
import sys
from .color_util import RGB, AnsiMode
class OSCException(Exception):
pass
def unix_detect_ansi_mode() -> AnsiMode | None:
"""
Translated from Termenv's ColorProfile():
https://github.com/muesli/termenv/blob/42ca574de3e99a262e1... | PypiClean |
/ADLES-1.4.0.tar.gz/ADLES-1.4.0/adles/vsphere/vsphere_utils.py | import logging
from time import sleep, time
from pyVmomi import vim
from adles.utils import read_json, user_input
SLEEP_INTERVAL = 0.05
LONG_SLEEP = 1.0
class VsphereException(Exception):
pass
def wait_for_task(task, timeout=60.0, pause_timeout=True):
"""
Waits for a single vim.Task to finish and ret... | PypiClean |
/Django_Lookout-0.1.2-py3-none-any.whl/lookout/report_schemas/hpkp.py | from django.utils import timezone, dateparse
from .generic import GenericReportSchema
from .legacy import LegacyReportSchema
__all__ = ['HPKPReportSchema', 'LegacyHPKPReportSchema']
class HPKPReportSchema (GenericReportSchema):
type = 'hpkp'
name = "HTTP Public Key Pinning Report"
description = "A report sent ... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.