id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/lang/id.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['id']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Tekan ALT 0 untuk bantuan.","browseServer":"Jelajah Server","u...
PypiClean
/Arpeggio-2.0.2.tar.gz/Arpeggio-2.0.2/docs/handling_errors.md
# Handling syntax errors in the input This section explains how to handle parsing errors. --- If your grammar is correct but you get input string with syntax error parser will raise `NoMatch` exception with the information where in the input stream error has occurred and what the parser expect to see at that locatio...
PypiClean
/BPMN_RPA-7.1.2.tar.gz/BPMN_RPA-7.1.2/BPMN_RPA/CheckListEngine.py
import os import sys import dill as pickle from BPMN_RPA.WorkflowEngine import WorkflowEngine, SQL # The BPMN-RPA CheckListEngine is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lice...
PypiClean
/GazeParser-0.11.1.zip/GazeParser-0.11.1/GazeParser_post_install.py
import sys import os import shutil if len(sys.argv) > 1: if sys.argv[1] == '-install': try: # Create shortcut directory progDir = get_special_folder_path("CSIDL_COMMON_PROGRAMS") shortcuts = os.path.join(progDir, 'GazeParser') if not os.path.isdir(shortcuts)...
PypiClean
/MPInterfaces-2020.6.19.tar.gz/MPInterfaces-2020.6.19/mpinterfaces/old_transformations.py
from __future__ import division, print_function, unicode_literals, \ absolute_import """ Compute the reduced matching lattice vectors for heterostructure interfaces as described in the paper by Zur and McGill: Journal of Applied Physics 55, 378 (1984); doi: 10.1063/1.333084 """ from six.moves import range impor...
PypiClean
/FairDynamicRec-0.0.123-py3-none-any.whl/fair_dynamic_rec/core/rankers/factor_ucb2.py
import numpy as np from .abstract_ranker import AbstractRanker # Objective function: min 1/2 (X - U . V_T) + 1/2 * \lambda (U)^2 + 1/2 * \lambda (V)^2 class FactorUCB1(AbstractRanker): def __init__(self, config, dataObj, parameters=None): super(FactorUCB1, self).__init__(config, dataObj) self.prng...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-rhtml.js
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
PypiClean
/Flask_Triangle3-0.5.3-py3-none-any.whl/flask_triangle/schema/containers.py
import copy, jsonschema from .base import BaseType class Object(BaseType): def __init__(self, min_properties=0, max_properties=False, required=False, additional_properties=True, **kwargs): super(Object, self).__init__('object', **kwargs) self.min_properties = min_properties ...
PypiClean
/KahootPY-0.1.4.tar.gz/KahootPY-0.1.4/kahoot/src/consts.py
ENDPOINT_URI = "kahoot.it" ENDPOINT_PORT = 443 TOKEN_ENDPOINT = "/reserve/session/" CHALLENGE_ENDPOINT = "/rest/challenges/" WSS_ENDPOINT = "wss://kahoot.it/cometd/" CHANNEL_HANDSHAKE = "/meta/handshake" CHANNEL_SUBSCR = "/meta/subscribe" CHANNEL_UNSUBSCR = "/meta/unsubscribe" CHANNEL_CONN = "/meta/connect" SUPPORTED_C...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/NESTML-5.3.0.data/data/doc/models_library/traub_cond_multisyn.rst
traub_cond_multisyn ################### traub_cond_multisyn - Traub model according to Borgers 2017 Description +++++++++++ Reduced Traub-Miles Model of a Pyramidal Neuron in Rat Hippocampus [1]_. parameters got from reference [2]_ chapter 5. AMPA, NMDA, GABA_A, and GABA_B conductance-based synapses with beta-func...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/currency/bn_BD/__init__.py
from faker.providers.person.bn_BD import translate_to_bengali_digits from .. import Provider as CurrencyProvider class Provider(CurrencyProvider): """ Implement currency provider for ``bn_BD`` locale. """ currencies = ( ("AED", "সংযুক্ত আরব আমিরাত দিরহাম"), ("AFN", "আফগান আফগানি"), ...
PypiClean
/AnthraxEplasty-0.0.3.tar.bz2/AnthraxEplasty-0.0.3/src/anthrax/eplasty/reflector.py
from collections import OrderedDict from eplasty.object.base import Object from eplasty.object.meta import ObjectMeta from eplasty.field.simple import Integer, CharacterVarying, Text, Date, Array from eplasty.field.helper import SimplePK from eplasty.field.adapter import Html from eplasty.field.blob import Blob from e...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/autoassess/stratosphere/age_of_air.py
import datetime import logging import os import warnings import iris import iris.analysis as iai import matplotlib.pyplot as plt import numpy as np from esmvaltool.diag_scripts.autoassess.loaddata import load_run_ss from .strat_metrics_1 import weight_lat_ave logger = logging.getLogger(__name__) # Constant for nu...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Script/__init__.py
__revision__ = "src/engine/SCons/Script/__init__.py 2014/07/05 09:42:21 garyo" import time start_time = time.time() import collections import os import sys # Special chicken-and-egg handling of the "--debug=memoizer" flag: # # SCons.Memoize contains a metaclass implementation that affects how # the other classes a...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/automatic/dicts.js
var weights = { '用户': 0.1, '部门': 0.1, '机构': 0.1 } var dicts = { //系统 'fab fa-microsoft': ['系统', '微软'], //组 'fas fa-users-cog': ['分组', '组合', '组队', '队伍', '队列'], //权限 'fas fa-shield-alt': ['权限', '权利'], //人 'far fa-user': ['管理员', '用户', '员工', '成员', '工人', '职员', '职工', '农民', '清洁工', '...
PypiClean
/CoSA-0.3.0.tar.gz/CoSA-0.3.0/cosa/encoders/parametric_behavior.py
from cosa.encoders.factory import GeneratorsFactory, ClockBehaviorsFactory from cosa.utils.logger import Logger PAR_SP = "," MODEL_SP = ";" class ParametricBehavior(object): @staticmethod def apply_to_problem(problem, model_info): varsdict = dict([(var.symbol_name(), var) for var in problem.hts.vars...
PypiClean
/EUKulele-2.0.0.tar.gz/EUKulele-2.0.0/scripts/download_database.sh
ALLEXITS=0 DATABASE=$1 REF_FASTA="reference.pep.fa" REF_TABLE="taxonomy-table.txt" REF_FASTA_URL=$2 REF_TABLE_URL=$3 REFERENCE_DIR=$4 #mkdir -p ${PWD}/$REFERENCE_DIR/$DATABASE mkdir -p $REFERENCE_DIR/$DATABASE if [[ $DATABASE == "marmmetsp" ]]; then # Download MMETSP reference FASTA wget -O $REFERENCE_DIR/$...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/boston_housing.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from observations.util import maybe_download_and_extract def boston_housing(path): """Load the Boston Housing data set [@harrison1978hedonic]. It contains 506 examples of housing values in subu...
PypiClean
/Krakatau-noff-v0.20181212.tar.gz/Krakatau-noff-v0.20181212/decompile.py
from __future__ import print_function import os.path import time, random, subprocess, functools import Krakatau import Krakatau.ssa from Krakatau.error import ClassLoaderError from Krakatau.environment import Environment from Krakatau.java import javaclass, visitor from Krakatau.java.stringescape import escapeString ...
PypiClean
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/VoiceAssistant/Modules/GetTVTippsModule.py
from Homevee.Functions.tv_data import get_tv_plan from Homevee.VoiceAssistant import Helper from Homevee.VoiceAssistant.Modules import VoiceModule class VoiceGetTvTippsModule(VoiceModule): def get_pattern(self, db): return [ [['was', 'welche'], 'sind', ['tv-tipps', 'tvtipps', 'tv-tips', 'tvti...
PypiClean
/DLNValidation-0.3.1.tar.gz/DLNValidation-0.3.1/dlnvalidation.py
import re # In alphabetical order by state, not by abbreviation STATE_FORMATS = { 'AL': r'^[0-9]{7}$|^[a-z0-9]{6}$', 'AK': r'^[0-9]{1,7}$', 'AZ': r'^[abdy][0-9]{8}$|^[0-9]{9}$', 'AR': r'^[0-9]{8,9}$', 'CA': r'^[a-z][0-9]{7}$', 'CO': r'^[0-9]{9}$|^[a-z][0-9]{1,6}$', 'CT': r'^[0-9]{9}$', ...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/addon/edit/closetag.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../fold/xml-fold")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../fold/xml-fold"], mod); else // Plain browser env m...
PypiClean
/BindingGP-0.0.36.tar.gz/BindingGP-0.0.36/bgp/postprocess.py
# @Time : 2020/10/19 13:32 # @Email : 986798607@qq.com # @Software: PyCharm # @License: BSD 3-Clause import copy import warnings from collections.abc import Callable from typing import Sequence import numpy as np import pandas as pd import sympy from scipy.optimize import least_squares from sklearn import metri...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/plugins/extra/sourceview/lib/sourceview-plugin.js
window.define([ 'aloha', 'aloha/jquery', '../../../../test/unit/testutils', 'css!sourceview/css/sourceview' ], function ( Aloha, jQuery, TestUtils ) { var viewArea; /** * Given a DOM node, gets that node's index position withing its immediate * parent node. * * @param {DOMObject} node * @return {num...
PypiClean
/FFC-2017.1.0.tar.gz/FFC-2017.1.0/ffc/interpolatevertexvalues.py
"Code generation for interpolate_vertex_values." # Copyright (C) 2009 Marie E. Rognes # # This file is part of FFC. # # FFC is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the Licen...
PypiClean
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Common/Utils/UndoRedo/AbstractMemento.py
#+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocols | #+-...
PypiClean
/NEURON-9.0a0-cp311-cp311-macosx_10_15_x86_64.whl/neuron/coreneuron.py
import sys class CoreNEURONContextHelper(object): def __init__(self, coreneuron, new_values): self._coreneuron = coreneuron self._new_values = new_values self._old_values = None def __enter__(self): assert self._new_values is not None assert self._old_values is None ...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/college.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def college(path): """U.S. News and World Report's College Data Statistics for a large number ...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/catalogue/views.py
import os import logging from django.conf import settings from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.contrib.auth import get_user_model from django.views.decorators.csrf import csrf_exempt from pycsw import server from guardian.shortcuts import get_objects...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/nodes/shapes/BuiltinTypeShapes.py
from nuitka.code_generation.c_types.CTypeNuitkaBooleans import ( CTypeNuitkaBoolEnum, ) from nuitka.code_generation.c_types.CTypeNuitkaInts import ( CTypeNuitkaIntOrLongStruct, ) from nuitka.code_generation.Reports import onMissingOperation from nuitka.Constants import the_empty_unicode from nuitka.Options impo...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/mkdirp/readme.markdown
Like `mkdir -p`, but in Node.js! Now with a modern API and no\* bugs! <small>\* may contain some bugs</small> # example ## pow.js ```js const mkdirp = require('mkdirp') // return value is a Promise resolving to the first directory created mkdirp('/tmp/foo/bar/baz').then(made => console.log(`made directories, s...
PypiClean
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/marketing/emailtemplates/api/views.py
import logging from django.conf import settings from rest_framework.decorators import action from rest_framework.response import Response from rest_framework.viewsets import ModelViewSet from ccc.campaigns.models import CampaignEmailTemplate from ccc.marketing.emailtemplates.api.serializers import (EmailTemplateSeria...
PypiClean
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/CS2.py
desc={"ref": {"ice 16": 'Falenty, A., Hansen, T. C. & Kuhs, W. F. Formation and properties of ice XVI obtained by emptying a type sII clathrate hydrate. Nature 516, 231-233 (2014).', "C15": 'Dutour Sikirić, Mathieu, Olaf Delgado-Friedrichs, and Michel Deza. “Space Fullerenes: a Computer Search for New Fr...
PypiClean
/Messanger_Study_Project-0.0.1.tar.gz/Messanger_Study_Project-0.0.1/ServerCore/server.py
from socket import socket, AF_INET, SOCK_STREAM from Protocol.utils import get_message, send_message, create_message, create_work_message import Protocol.proto_description as proto import logging from LOG.logger_deco import Logger import select from Utilitis.NonNegativeCheck import NonNegative from Utilitis.ServerVerif...
PypiClean
/Bedframe-0.13.5.tar.gz/Bedframe-0.13.5/napper/_requests.py
__copyright__ = "Copyright (C) 2014 Ivan D Vasin" __docformat__ = "restructuredtext" import re as _re from urllib import urlencode as _urlencode from urlparse import urljoin as _urljoin import bedframe.webtypes as _webtypes import requests as _requests import requests.auth as _requests_auth from spruce.collections im...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/energy_cap_api.py
from msrest.service_client import SDKClient from msrest import Configuration, Serializer, Deserializer from .version import VERSION from msrest.pipeline import ClientRawResponse from msrest.exceptions import HttpOperationError from . import models class EnergyCapApiConfiguration(Configuration): """Configuration ...
PypiClean
/Brian2-2.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/brian2/memory/dynamicarray.py
import numpy as np __all__ = ["DynamicArray", "DynamicArray1D"] def getslices(shape, from_start=True): if from_start: return tuple(slice(0, x) for x in shape) else: return tuple(slice(x, None) for x in shape) class DynamicArray: """ An N-dimensional dynamic array class The arra...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/minigrid/envs/noisy_tv.py
from minigrid.core.grid import Grid from minigrid.core.mission import MissionSpace from minigrid.minigrid_env import * from minigrid.utils.rendering import * from minigrid.core.world_object import WorldObj import random class NoisyTVEnv(MiniGridEnv): """ ### Description Classic four room reinforcement le...
PypiClean
/IPS-Vagrant-0.4.1.tar.gz/IPS-Vagrant-0.4.1/ips_vagrant/common/__init__.py
from distutils.version import StrictVersion, LooseVersion import os import click import logging import cookielib import requests import ips_vagrant from urlparse import urlparse from ConfigParser import ConfigParser def config(): """ Load system configuration @rtype: ConfigParser """ cfg = ConfigP...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/widget/ColorPicker.js.uncompressed.js
require({cache:{ 'url:dojox/widget/ColorPicker/ColorPicker.html':"<table class=\"dojoxColorPicker\" dojoAttachEvent=\"onkeypress: _handleKey\" cellpadding=\"0\" cellspacing=\"0\">\n\t<tr>\n\t\t<td valign=\"top\" class=\"dojoxColorPickerRightPad\">\n\t\t\t<div class=\"dojoxColorPickerBox\">\n\t\t\t\t<!-- Forcing ABS in ...
PypiClean
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/model/action_delay_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
/BioMine-0.9.5.zip/BioMine-0.9.5/biomine/webapi/exac/exacapi.py
import time from biomine.webapi.webapi import webapi import xml.etree.ElementTree as ET import json import AdvancedHTMLParser import biomine.variant.variant class exacapi(webapi): endpoint = "http://exac.broadinstitute.org/" endpoint_harvard = "http://exac.hms.harvard.edu/rest/" variant = "variant/" gene = "gene/...
PypiClean
/MacSyFinder-2.1.2.tar.gz/MacSyFinder-2.1.2/CONTRIBUTING.md
# How to contribute Welcome! By visiting this page, you've taken the first step toward becoming a contributor to macsyfinder! ## What skills do I need? If you know Python3, you can contribute to the code. And there are also many ways to contribute to the project without programming. If you'd like to get involved...
PypiClean
/Fanery-0.2.5.tar.gz/Fanery-0.2.5/fanery/_store.py
__all__ = ['add_storage', 'add_model', 'Record', 'DataStore', 'storage'] from collections import defaultdict from _term import parse_term, gen_uuid, is_class from _auth import hooks, default_settings from _state import get_state import _exc as exc from time import time as timestamp import logging logger = logging.ge...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_rhino/geometry/trimesh/curvature.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import Rhino from Rhino.Geometry.Vector3d import Multiply, CrossProduct from Rhino.Geometry.Point3d import FromPoint3f from math import pi from math import sqrt from math import atan2 from clr import StrongBo...
PypiClean
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/lib/hooks.py
import time import kallithea from kallithea.lib.exceptions import UserCreationError from kallithea.lib.utils2 import get_hook_environment from kallithea.model import userlog def log_pull_action(): """Logs user last pull action Does *not* use the action from the hook environment but is always 'pull'. """...
PypiClean
/HOPP-0.0.5-py3-none-any.whl/hybrid/reopt.py
import json import os import pandas as pd import requests import time from hybrid.solar_source import * from hybrid.wind_source import WindPlant from hybrid.storage import Battery from hybrid.log import hybrid_logger as logger from hybrid.keys import get_developer_nrel_gov_key from hybrid.utility_rate import UtilityRa...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/trans/views/about.py
from django.db.models import Sum from django.utils.translation import gettext_lazy as _ from django.views.generic import TemplateView from weblate.accounts.models import Profile from weblate.metrics.models import Metric from weblate.utils.requirements import get_versions_list from weblate.utils.stats import GlobalSta...
PypiClean
/OCAICM-0.0.2.tar.gz/OCAICM-0.0.2/script/run_model.py
import warnings import numpy as np import pandas as pd import argparse import random as rn import multiprocessing as mp import time import os import sys from XGB_model import tvt_xgb from SVM_model import tvt_svm from RF_model import tvt_rf from KNN_model import tvt_knn from DNN_model import tvt_dnn from graph_model im...
PypiClean
/mrv-1.0.2-stable.zip/mrv-1.0.2-stable/mrv/maya/ui/browse/control.py
"""Contains ui modules to build a finder-like browser for items of any kind""" __docformat__ = "restructuredtext" from interface import (iFinderProvider, iFinderFilter) import mrv.maya.ui as ui from mrv.maya.util import (OptionVarDict, logException ) from util import concat_url from mrv.path import Path opts = Optio...
PypiClean
/Mulguisin-0.91.tar.gz/Mulguisin-0.91/README.md
<div align="center"> <!-- MGS logo --> <img src="./MGS_logo.png" width=300> </div> # Mulguisin The Mulguisin(MGS) is a cluster/group finding algorithm in galaxy data. It can find group/cluster structure from the galaxy data and also provide topological informations. It has been developed by InKyu Park to find...
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_trigger_update.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
/Nevow-0.14.5.tar.gz/Nevow-0.14.5/nevow/guard.py
__metaclass__ = type import random import time try: from hashlib import md5 except ImportError: from md5 import md5 import StringIO from zope.interface import implements # Twisted Imports from twisted.python import log, components from twisted.internet import defer from twisted.cred.error import Unauthorize...
PypiClean
/ActiveDirectoryEnum-0.5.0.tar.gz/ActiveDirectoryEnum-0.5.0/ade/__init__.py
from ldap3 import Server, Connection, ALL, ALL_ATTRIBUTES, LEVEL, SUBTREE, ALL_OPERATIONAL_ATTRIBUTES from progressbar import Bar, Percentage, ProgressBar, ETA from ldap3.core.exceptions import LDAPKeyError from impacket.smbconnection import SessionError from impacket.nmb import NetBIOSTimeout, NetBIOSError from getpas...
PypiClean
/KappaNEURON-0.3.1.tar.gz/KappaNEURON-0.3.1/README.md
KappaNEURON =========== KappaNEURON integrates the [SpatialKappa][SpatialKappa] simulator with [NEURON][NEURON] to allow rule-based simulations of molecular systems embedded in neurons. For example, the package facilitates simulation of dynamic models of the postsynaptic proteome in the context of the spine head. ![...
PypiClean
/OASYS1-APS-Extensions-1.0.87.tar.gz/OASYS1-APS-Extensions-1.0.87/orangecontrib/aps/shadow/widgets/extension/ow_aps_undulator.py
import numpy from numpy.matlib import repmat from scipy.signal import convolve2d from silx.gui.plot import Plot2D from PyQt5.QtWidgets import QDialog, QVBoxLayout, QLabel, QDialogButtonBox from PyQt5.QtGui import QPixmap, QPalette, QColor, QFont from PyQt5 import QtWidgets import orangecanvas.resources as resources...
PypiClean
/KKHEP-0.1.0.tar.gz/KKHEP-0.1.0/kkcoffea/processors.py
import coffea.processor import coffea.hist import numpy as np import awkward as ak def dataset_normalization(xsecdb, dsid): """Calculates the dataset normaliation for DSID using values from `xsecdb` as cross-section * filter efficiency. If DSID is not in `xsecdb`, then return 1. """ if dsid in xse...
PypiClean
/Flask-Security-Invenio-3.2.0.tar.gz/Flask-Security-Invenio-3.2.0/flask_security/datastore.py
from .utils import get_identity_attributes class Datastore(object): def __init__(self, db): self.db = db def commit(self): pass def put(self, model): raise NotImplementedError def delete(self, model): raise NotImplementedError class SQLAlchemyDatastore(Datastore): ...
PypiClean
/OI_distributions-0.1.tar.gz/OI_distributions-0.1/OI_distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/lang/si.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['si']={"editor":"පොහොසත් වචන සංස්කරණ","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"උදව් ලබා ගැනීමට ALT බොත්තම ඔබන්න","browseServer":"සෙවුම් සේ...
PypiClean
/Exh-1.1.2.tar.gz/Exh-1.1.2/exh/model/vars.py
import numpy as np from . import options from . import exceptions class Domain: """ Represents some domain of quantification. Attributes: - n (int) -- the size of the domain of quantification """ def __init__(self, size): self._n = size @property def n(self): return self._n class DefaultDomain(Doma...
PypiClean
/NeXpy-1.0.4-py3-none-any.whl/nexpy/readers/readspec.py
import os import numpy as np from nexpy.gui.importdialog import NXImportDialog from nexpy.gui.pyqt import QtWidgets, getOpenFileName from nexpy.gui.widgets import NXLabel, NXLineEdit from nexusformat.nexus.tree import (NeXusError, NXdata, NXentry, NXfield, NXlog, NXroot) filetype =...
PypiClean
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/static/crm/js/marketing/campaigns/create-campaign.js
let VNRecorder, AudioStream; navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia const closeModal = (el_id) => { UIkit.modal(`#${el_id}`).hide() } const createCampaign = new Vue({ el: '#campaign_form', delimiters: ["[...
PypiClean
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/View/SettingsWindow.py
import logging from tkinter import Tk, DISABLED, Button, BooleanVar, messagebox, Label from LabExT.View.Controls.AdhocDeviceFrame import AdhocDeviceFrame from LabExT.View.Controls.CustomFrame import CustomFrame from LabExT.View.Controls.InstrumentSelector import InstrumentRole from LabExT.View.Controls.InstrumentSelec...
PypiClean
/Dict2Model-0.0.22.tar.gz/Dict2Model-0.0.22/README.md
# Dict2Model ![alt_text](https://raw.githubusercontent.com/DanielBNY/DictionaryModel/dev/extra/Logo.png) The library returns an object with defined attributes in types from an input dictionary, with optional rules about types and more. The declaration for the object variables and their types uses annotations: ...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/geometry/primitives/polygon.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division import math from compas.geometry import allclose from compas.geometry import area_polygon from compas.geometry import cross_vectors from compas.geometry import centroid_polygon from compas.geometry import is_c...
PypiClean
/BulkImageResizer-1.0.4.tar.gz/BulkImageResizer-1.0.4/README.md
# BulkImageResizer BulkImageResizer automates image resizing and compression of any number of images in a folder. I developed this script to automatically resize and compress the images for responsive front end web development. ## Getting Started Followig instructions will get you a copy of the project up and runni...
PypiClean
/OASYS1-oasyswiser-0.3.22.tar.gz/OASYS1-oasyswiser-0.3.22/orangecontrib/wiser/widgets/optical_elements/ow_elliptic_mirror.py
import numpy from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from oasys.widgets import congruence from syned.widget.widget_decorator import WidgetDecorator from syned.beamline.shape import Ellipsoid from LibWiser import Optics from wofrywiser.beamline.beamline_elements import Wis...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Scanner/Dir.py
__revision__ = "src/engine/SCons/Scanner/Dir.py 2014/07/05 09:42:21 garyo" import SCons.Node.FS import SCons.Scanner def only_dirs(nodes): is_Dir = lambda n: isinstance(n.disambiguate(), SCons.Node.FS.Dir) return list(filter(is_Dir, nodes)) def DirScanner(**kw): """Return a prototype Scanner instance f...
PypiClean
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/methods/messages/send_message.py
from datetime import datetime from typing import Union, List, Optional import pyrogram from pyrogram import raw, utils, enums from pyrogram import types class SendMessage: async def send_message( self: "pyrogram.Client", chat_id: Union[int, str], text: str, parse_mode: Optional["...
PypiClean
/Mopidy-RadioWorld-0.2.0.tar.gz/Mopidy-RadioWorld-0.2.0/mopidy_radioworld/radioworld.py
import requests from time import sleep from contextlib import closing import logging logger = logging.getLogger(__name__) class RadioWorld(object): def __init__(self): self._base_uri = 'https://radioworld-api-prod.azurewebsites.net/%s' #self._base_uri = 'http://localhost:5000/%s' self._ses...
PypiClean
/Hikka_Pyro-2.0.66-py3-none-any.whl/pyrogram/types/messages_and_media/document.py
from datetime import datetime from typing import List import pyrogram from pyrogram import raw, utils from pyrogram import types from pyrogram.file_id import FileId, FileType, FileUniqueId, FileUniqueType from ..object import Object class Document(Object): """A generic file (as opposed to photos, voice messages...
PypiClean
/CNTools-0.0.0.tar.gz/CNTools-0.0.0/src/identification/Spatial_LDA.py
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from spatial_lda.featurization import featurize_samples from spatial_lda.featurization import neighborhood_to_cluster from spatial_lda.featurization import make_merged_difference_matrices from spatial_lda.model import order_topi...
PypiClean
/MisskeyAPI-0.1.0.tar.gz/MisskeyAPI-0.1.0/README.md
# MisskeyAPI Python wrapper for Miskkey API (WIP) Sample usage: ``` from misskey.misskeyapi import MisskeyAPI misskey = MisskeyAPI("https://your.misskey.instance") app_secret = misskey.app_create( app_name, description, permission, callbackUrl ) response = misskey.auth_session_generate(ap...
PypiClean
/netket-3.9.2.tar.gz/netket-3.9.2/netket/logging/state_log.py
import tarfile import time from io import BytesIO import glob import os from os import path as _path from flax import serialization def save_binary_to_tar(tar_file, byte_data, name): abuf = BytesIO(byte_data) # Construct the info object with the correct length info = tarfile.TarInfo(name=name) inf...
PypiClean
/Data_Adaptor_sourav-0.2.8-py3-none-any.whl/DataAdaptor/input.py
import ftplib from contextlib import closing import os from urllib.parse import urlparse import zipfile import requests import boto3 from .config import EXTENSION_LIST from config import S3_BUCKET_NAME from .config import INPUT_FILE_FOLDER SESSION = boto3.Session() S3 = SESSION.resource('s3') def upload_file_to_s3...
PypiClean
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/core/samplers/unrepeated_sampler.py
__all__ = [ 'UnrepeatedSampler', 'UnrepeatedSortedSampler', 'UnrepeatedRandomSampler', "UnrepeatedSequentialSampler" ] from typing import List, Union from fastNLP.core.dataset import DataSet import numpy as np class UnrepeatedSampler: """ 在多卡场景下保证 indice 不重复的 Sampler。 """ pass clas...
PypiClean
/INDIpy-0.4.0.tar.gz/INDIpy-0.4.0/indi/transport/server/tcp.py
import asyncio import logging from typing import List from indi.message import IndiMessage from indi.routing import Client, Router from indi.transport import Buffer logger = logging.getLogger(__name__) class ConnectionHandler(Client): connections: List["ConnectionHandler"] = [] def __init__( self, ...
PypiClean
/AQoPA-0.9.5.tar.gz/AQoPA-0.9.5/aqopa/module/timeanalysis/parser.py
from aqopa.model import MetricsServiceParam from aqopa.model.parser.lex_yacc import LexYaccParserExtension class Builder(): def create_metrics_services_param_time(self, token): """ metrics_services_param : SQLPARAN TIME COLON metrics_services_time_type LPARAN metrics_services_time_unit RPARAN...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/app.py
""" Starts the webapp """ import builtins import os import sys import flask import pymongo import oauthlib from gridfs import GridFS from binascii import hexlify from pymongo import MongoClient from werkzeug.exceptions import InternalServerError import inginious.frontend.pages.course_admin.utils as course_admin_util...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/gis/sitemaps/kml.py
from django.apps import apps from django.contrib.gis.db.models.fields import GeometryField from django.contrib.sitemaps import Sitemap from django.db import models from django.urls import reverse class KMLSitemap(Sitemap): """ A minimal hook to produce KML sitemaps. """ geo_format = 'kml' def __i...
PypiClean
/3y-2.6.4.tar.gz/3y-2.6.4/README.rst
# 3yzh A three-circle calculator, It contains Circle Circles and Cylinders. It is in Chinese.If you konw how to speak and write or mean these,you can use Now,you can Download and input python 3y and then it will running Please comply with local laws and regulations, User only has the right to use The final interpr...
PypiClean
/FastFlask-1.2.32-py3-none-any.whl/jinja2/nativetypes.py
import typing as t from ast import literal_eval from ast import parse from itertools import chain from itertools import islice from . import nodes from .compiler import CodeGenerator from .compiler import Frame from .compiler import has_safe_repr from .environment import Environment from .environment import Template ...
PypiClean
/COWBAT-0.5.0.23.tar.gz/COWBAT-0.5.0.23/cowbat/metagenomefilter/filtermetagenome.py
from olctools.accessoryFunctions.accessoryFunctions import GenObject, make_path, MetadataObject import olctools.accessoryFunctions.metadataprinter as metadataprinter from genemethods.assemblypipeline import createobject from argparse import ArgumentParser from threading import Thread from subprocess import call from cs...
PypiClean
/Cibyl-1.0.0.0rc1.tar.gz/Cibyl-1.0.0.0rc1/docs/source/development/sources.rst
Sources ======= To add/develop a new type of source, follow the following guidelines: * A source should be added to cibyl/sources/<SOURCE_NAME> * The source class you develop should inherit from the Source class (``cibyl/sources/source.py``) * For a source to support an argument, it should implement the function na...
PypiClean
/EVE-SRP-0.12.11.tar.gz/EVE-SRP-0.12.11/src/evesrp/util/crest.py
from flask import flash, current_app def check_crest_response(response): """Check for CREST representation deprecation/removal. Specifically, check that the status code isn't 406 (meaning the representation has been removed) and for the presence of the X-Deprecated header. :param Response respon...
PypiClean
/GamesmanPuzzles-0.0.4-cp36-cp36m-manylinux2010_x86_64.whl/puzzlesolver/puzzles/_models/puzzle.py
from ...util import classproperty, depreciated import progressbar import warnings class Puzzle: ################################################################# # Background data ################################################################# puzzleid = "NA" author = "NA" name = "NA" d...
PypiClean
/MicroBitTools-2.1.2-py3-none-any.whl/MicroBitTools.py
import os import shutil import uflash import requests import serial import microfs import time import json readymicrobithexurl = "https://www.dropbox.com/s/ksk3p5cnr5znky6/SerialSystem.hex?dl=1" class InternalTools: def yntoboolean(data="no"): data = data.lower() if data == "y": retur...
PypiClean
/Agrothon-1.3.2.tar.gz/Agrothon-1.3.2/agrothon/tgbot/helpers/apiserverhelper.py
from json.decoder import JSONDecodeError from logging import getLogger from typing import Optional import aiohttp import requests from agrothon import API_BASE_URL, API_KEY LOGGER = getLogger(__name__) async def aiohttp_helper( url: str, headers: dict, data: Optional[dict] = None, method: Optional[str] = "get"...
PypiClean
/Dgram-1.0.0.tar.gz/Dgram-1.0.0/dgram/storage/memory_storage.py
from dgram.storage.base_storage import StateStorageBase, StateContext class StateMemoryStorage(StateStorageBase): def __init__(self) -> None: super().__init__() self.data = {} # # {chat_id: {user_id: {'state': None, 'data': {}}, ...}, ...} def set_state(self, chat_id,...
PypiClean
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/jax/output/HTML-CSS/fonts/TeX/fontdata.js
(function(g,k,l){var p="2.0";var f="MathJax_Main",j="MathJax_Main-bold",h="MathJax_Math-italic",m="MathJax_AMS",d="MathJax_Size1",c="MathJax_Size2",b="MathJax_Size3",a="MathJax_Size4";var n="H",e="V",i={load:"extra",dir:n},o={load:"extra",dir:e};g.Augment({FONTDATA:{version:p,TeX_factor:1,baselineskip:1.2,lineH:0.8,lin...
PypiClean
/GTW-1.2.6.tar.gz/GTW-1.2.6/__test__/model.py
from _GTW.__test__.Test_Command import * import _GTW._OMP._Auth.import_Auth if sos.environ.get ("GTW_FULL_OBJECT_MODEL", "True") != "False" : import _GTW._OMP._EVT.import_EVT import _GTW._OMP._EVT.UI_Spec import _GTW._OMP._PAP.import_PAP import _GTW._OMP._SRM.import_SRM import _GTW._OMP._SWP.import_SWP i...
PypiClean
/ORG.asm-1.0.3.tar.gz/ORG.asm-1.0.3/distutils.ext/obidistutils/serenity/__init__.py
import sys from distutils import util from distutils import sysconfig from distutils import log from distutils.version import LooseVersion, StrictVersion import glob import os import subprocess import re from distutils.errors import DistutilsError import tempfile from importlib.util import spec_from_file_location #...
PypiClean
/NovalIDE-1.1.8-py3-none-any.whl/noval/find/findresult.py
from noval import GetApp,_ import os import tkinter as tk from tkinter import messagebox import noval.iface as iface import noval.plugin as plugin import noval.consts as consts from tkinter import ttk import noval.editor.text as texteditor from noval.find.findindir import FILENAME_MARKER,PROJECT_MARKER,FILE_MARKER,Find...
PypiClean
/BlueWhale3_Bioinformatics-4.1.32-py3-none-any.whl/orangecontrib/bioinformatics/widgets/utils/gui/gene_sets.py
from typing import Union from collections import defaultdict import numpy as np from AnyQt.QtCore import Qt from AnyQt.QtWidgets import QWidget, QGroupBox, QTreeView, QTreeWidget, QTreeWidgetItem, QTreeWidgetItemIterator from orangecontrib.bioinformatics.geneset import GeneSet, GeneSets, list_all, load_gene_sets # ...
PypiClean
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/methods/chats/__init__.py
from .add_chat_members import AddChatMembers from .archive_chats import ArchiveChats from .ban_chat_member import BanChatMember from .create_channel import CreateChannel from .create_group import CreateGroup from .create_supergroup import CreateSupergroup from .create_group_call import CreateGroupCall from .discard_gr...
PypiClean
/ACT4E-exercises-2021.1.2103061245.tar.gz/ACT4E-exercises-2021.1.2103061245/src/act4e_interfaces/representations.py
from __future__ import annotations from abc import ABC, abstractmethod from typing import List, TypedDict, Union from .finite import (FiniteAdjunction, FiniteDP, FiniteFunctor, FiniteGroup, FiniteMap, FiniteMonoid, FiniteNaturalTransformation, FinitePoset, FiniteProfunctor, FiniteRelation, ...
PypiClean
/InversionTest-1.2.zip/InversionTest-1.2/Examples/UseCase1_SimulationValidation.py
def readSimulationResults(fileName, rowSep='\n', colSep=',', gradeSep=';'): """ Read the simulation results from a CSV-formatted file. A file with the data: "Element1,Element2,Element3;Element4,Element5\nElement1,Element5" Corresponds to the graded sequences: [[["Element1"], ["Element2"], ["Elem...
PypiClean
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/html/_build/html/_build/html/_build/html/hn_module_tutorial.ipynb
# Tutorial for the HN module of HavNegpy package ``` import numpy as np import pandas as pd import matplotlib.pyplot as plt import os import HavNegpy as dd %matplotlib qt os.chdir(r'M:\Marshall_Data\mohamed_data\mohamed_data\n44') def create_dataframe(f): col_names = ['Freq', 'T', 'Eps1', 'Eps2'] #f ...
PypiClean
/Flask-Auth-User-1.0.2.tar.gz/Flask-Auth-User-1.0.2/flask_auth_user/helper/token/TokenHelper.py
import json import time from flask_auth_user.utils.token.Token import Token, AccessData, AccessClaims, RefreshData, RefreshClaims, TokenStatus class TokenHelper(object): @staticmethod def generate(union_id: str, token_secret: str, access_timeout: int, refresh_timeout: int) -> Token: curr_time = int(...
PypiClean