id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/pytest-wdl-1.4.1.tar.gz/pytest-wdl-1.4.1/pytest_wdl/executors/__init__.py
from abc import ABCMeta, abstractmethod import json import os from pathlib import Path import tempfile import textwrap from typing import Any, Optional, Sequence, Tuple, Union, cast from pytest_wdl.data_types import DataFile from pytest_wdl.utils import ( ensure_path, safe_string, find_executable_path, find_in_cla...
PypiClean
/alteon-sdk-0.11b2.tar.gz/alteon-sdk-0.11b2/radware/alteon/beans/SlbNewSslCfgCertsTable.py
from radware.sdk.beans_common import * class EnumSlbSslCertsType(BaseBeanEnum): key = 1 certificateRequest = 2 serverCertificate = 3 trustedCertificate = 4 intermediateCertificate = 5 crl = 6 class EnumSlbSslCertsKeySize(BaseBeanEnum): ks512 = 1 ks1024 = 2 ks2048 = 3 ks4096 =...
PypiClean
/kindenty_base-0.1.21.tar.gz/kindenty_base-0.1.21/kindenty/dao/DatabaseDao.py
from kindenty.base.BaseDao import BaseDao, UpdateMethod, QueryMethod, SelectMethod, \ transaction from kindenty.model.DataDto import AccountTradeLogDto, RealMarketData, YieldDataDto, \ AssistDto, UserInvestmentDto, SellStatusDto, SumOrderCountDto, StrategyAnalysisDto from kindenty.model.DatabaseModel import Acc...
PypiClean
/secretflow_ray-2.2.0-cp38-cp38-macosx_10_16_x86_64.whl/secretflow_ray-2.2.0.data/purelib/ray/rllib/models/torch/torch_modelv2.py
import gym from typing import Dict, List, Union from ray.rllib.models.modelv2 import ModelV2 from ray.rllib.utils.annotations import override, PublicAPI from ray.rllib.utils.framework import try_import_torch from ray.rllib.utils.typing import ModelConfigDict, TensorType _, nn = try_import_torch() @PublicAPI class T...
PypiClean
/juqueue-0.0.15-py3-none-any.whl/juqueue_web/juqueue-web/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py
r"""Code to validate and convert settings of the Microsoft build tools. This file contains code to validate and convert settings of the Microsoft build tools. The function ConvertToMSBuildSettings(), ValidateMSVSSettings(), and ValidateMSBuildSettings() are the entry points. This file was created by comparing the p...
PypiClean
/itk_filtering-5.4rc1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/itk/itkUnaryFrequencyDomainFilterPython.py
import collections from sys import version_info as _version_info if _version_info < (3, 7, 0): raise RuntimeError("Python 3.7 or later required") from . import _ITKCommonPython from . import _ITKImageFrequencyPython from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2...
PypiClean
/StructEngPy-0.1.14.tar.gz/StructEngPy-0.1.14/structengpy/app/general/result/result.py
from structengpy.app.general.orm import ResultJointDisplacement,ResultJointReaction,ResultFrameForce,ResultModalPeriod def get_result_joint_displacement(self,name,loadcase): """ Get the result in the database. params: name: str, name of joint loadcase: str, name of loadcase return:...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/bluebird/js/release/thenables.js
"use strict"; module.exports = function(Promise, INTERNAL) { var util = require("./util"); var errorObj = util.errorObj; var isObject = util.isObject; function tryConvertToPromise(obj, context) { if (isObject(obj)) { if (obj instanceof Promise) return obj; var then = getThen(obj); if (then ...
PypiClean
/typhonql_mlconnector-0.0.1.tar.gz/typhonql_mlconnector-0.0.1/README.md
# Prerequisites ```python pip install requests pip install python-dotenv python requires = '>=3.6' ``` # Use ```bash 1.This package has been developed with python3. 2.Once you install the package navigate to the package file for example(Programs\Python\Python37\Lib\site-packages\'the package file name') and cre...
PypiClean
/charmonium.freeze-0.8.1-py3-none-any.whl/charmonium/freeze/freeze_function.py
from __future__ import annotations import types from pathlib import Path from typing import Any, Dict, Hashable, Optional, Tuple from . import util from .config import Config from .lib import freeze_attrs, freeze_dispatch, freeze_sequence, logger @freeze_dispatch.register def _( obj: types.FunctionType, con...
PypiClean
/edk2-basetools-0.1.49.tar.gz/edk2-basetools-0.1.49/edk2basetools/AutoGen/GenPcdDb.py
from __future__ import absolute_import from io import BytesIO from edk2basetools.Common.Misc import * from edk2basetools.Common.StringUtils import StringToArray from struct import pack from .ValidCheckingInfoObject import VAR_CHECK_PCD_VARIABLE_TAB_CONTAINER from .ValidCheckingInfoObject import VAR_CHECK_PCD_VARIABLE_T...
PypiClean
/bin/generators/landmark_generator.py
import numpy as np from utils.landmark.heatmap_image_generator import HeatmapImageGenerator import utils.landmark.transform import transformations.spatial.common import functools import copy from generators.transformation_generator_base import TransformationGeneratorBase class LandmarkGeneratorBase(TransformationGene...
PypiClean
/onnx_tf-1.10.0-py3-none-any.whl/onnx_tf/handlers/backend/pow.py
import tensorflow as tf from onnx_tf.handlers.backend_handler import BackendHandler from onnx_tf.handlers.handler import onnx_op from onnx_tf.handlers.handler import tf_func from .math_mixin import BasicMathMixin from onnx_tf.common import sys_config from onnx_tf.common import exception from onnx_tf.common import data...
PypiClean
/hacs-frontend-20230630112320.tar.gz/hacs-frontend-20230630112320/hacs_frontend/frontend_es5/9973-GsqWoDAsysU.js
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([[9973,3216],{83111:function(t,e,n){n.d(e,{WB:function(){return c},p6:function(){return a}});var i=n(93359),r=n(14516),o=n(50345),a=(n(23216),(0,r.Z)((function(t,e){return new Intl.DateTimeFormat(t.language,{weekday:"long",month:"long...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/regenerator-transform/src/hoist.js
import * as util from "./util"; let hasOwn = Object.prototype.hasOwnProperty; // The hoist function takes a FunctionExpression or FunctionDeclaration // and replaces any Declaration nodes in its body with assignments, then // returns a VariableDeclaration containing just the names of the removed // declarations. expor...
PypiClean
/apache_superset_test-2.1.1.1-py3-none-any.whl/superset/connectors/base/models.py
from __future__ import annotations import json from datetime import datetime from enum import Enum from typing import Any, Dict, Hashable, List, Optional, Set, Type, TYPE_CHECKING, Union from flask_appbuilder.security.sqla.models import User from flask_babel import gettext as __ from sqlalchemy import and_, Boolean, ...
PypiClean
/pysnmp-mibs-0.1.6.tar.gz/pysnmp-mibs-0.1.6/pysnmp_mibs/RTP-MIB.py
( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") ( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ( ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ) = m...
PypiClean
/tafrigh-1.1.1.tar.gz/tafrigh-1.1.1/README.md
<p align="center"> <img src="https://user-images.githubusercontent.com/7662492/229289746-89c5a4c7-afa6-4d46-a0e6-63dfdeb98285.jpg" style="width: 100%;"/> </p> <div align="center"> <a href="https://pypi.org/project/tafrigh" target="_blank"><img src="https://img.shields.io/pypi/v/tafrigh?label=PyPI%20Version&color=l...
PypiClean
/Pootle-2.9.0b3.tar.bz2/Pootle-2.9.0b3/docs/server/requirements.rst
.. _requirements: Pootle requirements =================== .. _requirements#hardware: Hardware Requirements --------------------- Your Pootle installation will need to be flexible enough to handle the translation load. The recommended hardware depends highly on the performance you expect, the number of users you wan...
PypiClean
/ams_dott_runtime-1.1.0-py3-none-win_amd64.whl/ams_dott_runtime-1.1.0.data/data/dott_data/apps/python27/python-2.7.13/Lib/encodings/iso8859_8.py
"""#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,input,errors='strict'): return codecs.charmap_decode(input,errors,decoding_table) class IncrementalEncoder(codecs...
PypiClean
/odoo12_addon_account_financial_report-12.0.1.5.4-py3-none-any.whl/odoo/addons/account_financial_report/report/aged_partner_balance.py
from odoo import models, fields, api class AgedPartnerBalanceReport(models.TransientModel): """ Here, we just define class fields. For methods, go more bottom at this file. The class hierarchy is : * AgedPartnerBalanceReport ** AgedPartnerBalanceReportAccount *** AgedPartnerBalanceReportPart...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/nam/sensor.py
from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime, timedelta import logging from nettigo_air_monitor import NAMSensors from homeassistant.components.sensor import ( DOMAIN as PLATFORM, SensorDeviceClass, SensorEntity, ...
PypiClean
/gym-twolinkarm-env-0.1.10.tar.gz/gym-twolinkarm-env-0.1.10/gym_twolinkarm_env/envs/normal.py
import gym from gym import spaces from gym.utils import seeding import numpy as np import math from os import path from scipy.integrate import solve_ivp class TwoLinkArmEnv(gym.Env): metadata = {"render.modes": ["human", "rgb_array"], "video.frames_per_second": 30} def __init__(self): self.target = [...
PypiClean
/azure-identity-1.14.0b1.zip/azure-identity-1.14.0b1/azure/identity/aio/_credentials/authorization_code.py
from typing import Optional, Any, cast from azure.core.exceptions import ClientAuthenticationError from azure.core.credentials import AccessToken from .._internal import AadClient, AsyncContextManager from .._internal.get_token_mixin import GetTokenMixin class AuthorizationCodeCredential(AsyncContextManager, GetToke...
PypiClean
/kiwitcms-12.4.tar.gz/kiwitcms-12.4/tcms/node_modules/clone/clone.js
var clone = (function() { 'use strict'; /** * Clones (copies) an Object using deep copying. * * This function supports circular references by default, but if you are certain * there are no circular references in your object, you can save some CPU time * by calling clone(obj, false). * * Caution: if `circular` i...
PypiClean
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/serialize-to-js/lib/internal/utils.js
'use strict' var UNSAFE_CHARS_REGEXP = /[\\\r\n\t<>\u2028\u2029"/]/g var CHARS_REGEXP = /[\\\r\n\t"]/g var UNICODE_CHARS = { '"': '\\"', '\n': '\\n', '\r': '\\r', '\t': '\\t', '\\': '\\\\', '<': '\\u003C', '>': '\\u003E', '/': '\\u002F', '\u2028': '\\u2028', '\u2029': '\\u2029' } function safeStr...
PypiClean
/clocwalk-2.0.0.tar.gz/clocwalk-2.0.0/README.rst
clocwalk ================ Project code and dependent component analysis tools. .. image:: https://travis-ci.com/MyKings/clocwalk.svg?branch=master :target: https://travis-ci.com/MyKings/clocwalk .. image:: https://badge.fury.io/py/clocwalk.svg :target: https://badge.fury.io/py/clocwalk .. image:: https://im...
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/autocomplete_recurrence.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
/lumigo_core-0.0.6-py3-none-any.whl/lumigo_core/triggers/trigger_parsing/apigw_parser.py
from typing import Any, Dict, List, Optional from lumigo_core.lumigo_utils import get_current_ms_time from lumigo_core.triggers.trigger_parsing.event_trigger_base import ( EventTriggerParser, ExtraKeys, TriggerType, ) class ApiGatewayEventTriggerParser(EventTriggerParser): @staticmethod def _shou...
PypiClean
/XStatic-MathJax-2.0.0.zip/XStatic-MathJax-2.0.0/xstatic/pkg/mathjax/data/jax/output/SVG/fonts/TeX/Caligraphic/Bold/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS["MathJax_Caligraphic-bold"]={directory:"Caligraphic/Bold",family:"MathJax_Caligraphic",id:"MJCALB",weight:"bold",skew:{65:0.224,66:0.16,67:0.16,68:0.0958,69:0.128,70:0.128,71:0.128,72:0.128,73:0.0319,74:0.192,75:0.0639,76:0.16,77:0.16,78:0.0958,79:0.128,80:0.0958,81:0.128,82:0.0958,...
PypiClean
/wps-light-0.16.1.tar.gz/wps-light-0.16.1/wemake_python_styleguide/logic/scopes/predicates.py
import ast from typing import Set from typing_extensions import Final from wemake_python_styleguide.compat.aliases import AssignNodes, FunctionNodes from wemake_python_styleguide.logic.nodes import get_parent from wemake_python_styleguide.logic.source import node_to_string #: That's what we expect from `@overload` d...
PypiClean
/pyelftools-0.29.tar.gz/pyelftools-0.29/elftools/common/construct_utils.py
from ..construct import ( Subconstruct, ConstructError, ArrayError, Adapter, Field, RepeatUntil, Rename, SizeofError, Construct ) class RepeatUntilExcluding(Subconstruct): """ A version of construct's RepeatUntil that doesn't include the last element (which casued the repeat to exit) in the re...
PypiClean
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/groundstation/outputs.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._enums import * __all__ = [ 'ConfigAntennaDownlinkConfig', 'ConfigAntennaDownlinkDemodDecodeConfig', 'ConfigAntennaUpli...
PypiClean
/js.angular-1.1.4.tar.gz/js.angular-1.1.4/js/angular/resources/i18n/angular-locale_ar-jo.js
angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": { "0": "ص", "1": "م" }, "DAY": { "0": "الأحد", "1": "ا...
PypiClean
/demo_sna-0.4.0-py3-none-any.whl/demo_sna/salma/wsd.py
from salma.implication import Implication from salma import settings from pandas import read_excel, concat import re from transformers import BertTokenizer,BertForSequenceClassification from transformers import BertTokenizer,BertForSequenceClassification import warnings warnings.filterwarnings("ignore") import torch ...
PypiClean
/satnogs-db-1.51.tar.gz/satnogs-db-1.51/db/static/lib/admin-lte/plugins/summernote/lang/summernote-uz-UZ.js
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else { var a = factory(); for(var i in a) (typeof exports === 'object' ? exports : roo...
PypiClean
/emmet-core-0.67.5.tar.gz/emmet-core-0.67.5/emmet/core/qchem/molecule.py
from typing import Any, Dict, List, Mapping, Union from pydantic import Field from pymatgen.core.structure import Molecule from pymatgen.analysis.molecule_matcher import MoleculeMatcher from pymatgen.io.babel import BabelMolAdaptor from emmet.core.mpid import MPculeID from emmet.core.utils import get_graph_hash, get...
PypiClean
/django-macros-url-0.4.0.tar.gz/django-macros-url-0.4.0/README.markdown
Django Macros URL makes it easy to write (and read) URL patterns in your Django applications by using macros. You can combine your prefixes with macro names with an underscore, for example, you can use a macro `:slug` and `:product_slug`. They both will be compiled to same regex pattern with their group names of cou...
PypiClean
/auto-sktime-0.1.0.tar.gz/auto-sktime-0.1.0/autosktime/data/benchmark/phme20.py
import os.path import copy import glob import pandas as pd from pathlib import Path from sklearn.model_selection import train_test_split from typing import Tuple from autosktime.data.benchmark.base import Benchmark __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) class PHME20Be...
PypiClean
/db_prob-0.1.tar.gz/db_prob-0.1/db_prob/Gaussiandistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev (float) representing ...
PypiClean
/easel-cli-1.1.0.tar.gz/easel-cli-1.1.0/easel/component.py
import logging import tinydb import yaml from easel import canvas_id from easel import course from easel import helpers class Component: """ canvas component subclass requirements: - init method named parameters should be the name of the field as defined by canvas. named parameters with default of N...
PypiClean
/requests-mock-1.11.0.tar.gz/requests-mock-1.11.0/RELEASENOTES.rst
============= requests-mock ============= .. _requests-mock_1.11.0: 1.11.0 ====== .. _requests-mock_1.11.0_New Features: New Features ------------ .. releasenotes/notes/public-type-aliases-f389506932adfa2c.yaml @ b'5aa8038cb5db3ca4fa3eed679acc21926d17c5f0' - Exposes some public type aliases (for type hinting only...
PypiClean
/bmt-lite-v2.3.1-2.2.2.tar.gz/bmt-lite-v2.3.1-2.2.2/bmt/data.py
import json from typing import Dict, List, Optional import importlib.resources as pkg_resources from . import _data with pkg_resources.open_text(_data, "all_classes.json") as stream: all_classes: List[str] = json.load(stream) with pkg_resources.open_text(_data, "all_elements.json") as stream: all_elements: L...
PypiClean
/Pyrogrampatched-0.0.1-py3-none-any.whl/pyrogram/types/bots_and_keyboards/reply_keyboard_markup.py
from typing import List, Union import pyrogram from pyrogram import raw from pyrogram import types from ..object import Object class ReplyKeyboardMarkup(Object): """A custom keyboard with reply options. Parameters: keyboard (List of List of :obj:`~pyrogram.types.KeyboardButton`): List o...
PypiClean
/chao_par-0.1.tar.gz/chao_par-0.1/models/backbone/DeiT.py
import torch import torch.nn as nn from functools import partial from timm.models.vision_transformer import VisionTransformer, _cfg from timm.models.registry import register_model from timm.models.layers import trunc_normal_ __all__ = [ # 'deit_tiny_patch16_224', 'deit_small_patch16_224', 'deit_base_patch16_224'...
PypiClean
/apache-beam-li-2.38.7.0.zip/apache-beam-li-2.38.7.0/apache_beam/transforms/core.py
# pytype: skip-file import concurrent.futures import copy import inspect import logging import random import sys import traceback import types import typing from apache_beam import coders from apache_beam import pvalue from apache_beam import typehints from apache_beam.coders import typecoders from apache_beam.intern...
PypiClean
/django-classic-user-accounts-1.0.39.tar.gz/django-classic-user-accounts-1.0.39/ClassicUserAccounts/static/matrix-admin-v2/assets/libs/moment/locale/tl-ph.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/v2/model/list_dependencies_request.py
import pprint import re import six class ListDependenciesRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json ke...
PypiClean
/spotii_push_notification2-1.1.4-py3-none-any.whl/push_notification/event/views.py
import datetime from pytz import utc from rest_framework import mixins, viewsets, response, status from push_notification.event import serializers from push_notification.event import models class PushNotificationViewSet( mixins.CreateModelMixin, mixins.ListModelMixin, mixins.RetrieveModelMixin...
PypiClean
/setuptest-1.1.7-py3-none-any.whl/stpkg/Pages/ThreadviewCls.py
class Threadview(): def __init__(self, driver): self.driver = driver # all buttons admin-user-view: self.useradmin_btn = "a.myButtonRed" self.wbsadmin_btn = "a.myButton" self.cWeek_btn = "a.myButtonPink" self.tView_btn = "a.myButtonAzure" self.mySight_btn = ...
PypiClean
/chunkblocks-0.5.1.tar.gz/chunkblocks-0.5.1/ci/bootstrap.py
from __future__ import absolute_import, print_function, unicode_literals import os import sys from os.path import abspath from os.path import dirname from os.path import exists from os.path import join if __name__ == "__main__": base_path = dirname(dirname(abspath(__file__))) print("Project path: {0}".format...
PypiClean
/ansible_alicloud-1.20.0.tar.gz/ansible_alicloud-1.20.0/lib/ansible/modules/cloud/alicloud/ali_ess_task.py
__metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = ''' --- module: ali_ess_task version_added: "1.5.0" short_description: Create or Terminate an scheduled task in ESS. description: - A sc...
PypiClean
/rigelcore-0.1.21-py3-none-any.whl/rigelcore-0.1.21.dist-info/LICENSE.md
The MIT License (MIT) Copyright (c) 2022 Pedro Pereira 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, pu...
PypiClean
/meld-sandbox-2.7.8.tar.gz/meld-sandbox-2.7.8/src/fides/ui-build/static/admin/_next/static/chunks/6648-a52fe1c2b76114f7.js
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6648],{93154:function(e,n,a){a.d(n,{Y8:function(){return F},Ee:function(){return E}});var o=a(37178),t=a(94184);a(38554),a(41706);function i(e){return Array.isArray(e)}function r(e){var n=typeof e;return null!=e&&("object"===n||"function"===n)&&!i(e)...
PypiClean
/django-geoprisma-0.0.1.tar.gz/django-geoprisma-0.0.1/geoprisma/static/geoprisma/lib/OpenLayers/lib/OpenLayers/Renderer/Canvas.js
* @requires OpenLayers/Renderer.js */ /** * Class: OpenLayers.Renderer.Canvas * A renderer based on the 2D 'canvas' drawing element. * * Inherits: * - <OpenLayers.Renderer> */ OpenLayers.Renderer.Canvas = OpenLayers.Class(OpenLayers.Renderer, { /** * APIProperty: hitDetection * {Boolean} ...
PypiClean
/emodel-generalisation-0.1.1.tar.gz/emodel-generalisation-0.1.1/emodel_generalisation/mcmc.py
# Copyright (c) 2022 EPFL-BBP, All rights reserved. # # THIS SOFTWARE IS PROVIDED BY THE BLUE BRAIN PROJECT ``AS IS'' # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE BLUE BRA...
PypiClean
/gdata/tlslite/utils/compat.py
import sys import os if sys.version_info < (2,2): raise AssertionError("Python 2.2 or later required") if sys.version_info < (2,3): def enumerate(collection): return zip(range(len(collection)), collection) class Set: def __init__(self, seq=None): self.values = {} ...
PypiClean
/filegardener-1.6.9.tar.gz/filegardener-1.6.9/test_data/1dup/seconddir/requests/packages/chardet/euckrfreq.py
# Sampling from about 20M text materials include literature and computer technology # 128 --> 0.79 # 256 --> 0.92 # 512 --> 0.986 # 1024 --> 0.99944 # 2048 --> 0.99999 # # Idea Distribution Ratio = 0.98653 / (1-0.98653) = 73.24 # Random Distribution Ration = 512 / (2350-512) = 0.279. # # Typical Distribution Rati...
PypiClean
/democritus_html-2021.1.250.tar.gz/democritus_html-2021.1.25/README.md
# Democritus Html [![PyPI](https://img.shields.io/pypi/v/democritus-html.svg)](https://pypi.python.org/pypi/democritus-html) [![Build Status](https://travis-ci.com/democritus-project/democritus-html.svg?branch=master)](https://travis-ci.com/democritus-project/democritus-html) [![codecov](https://codecov.io/gh/democrit...
PypiClean
/ppg_common-1.67.tar.gz/ppg_common-1.67/ppg_common/clients/blossom.py
import base64 from ppg_common.clients.base import BaseClient class BlossomClient(BaseClient): urls = { "all_users": BaseClient.version + "/users/", "user": BaseClient.version + "/users/{}", "login": BaseClient.version + "/users/actions/login/", "search": BaseClient.version + "/use...
PypiClean
/snappy-2.7.tar.gz/snappy-2.7/python/browser.py
from __future__ import unicode_literals from builtins import range import sys, os if sys.version_info[0] < 3: import Tkinter as Tk_ import ttk from tkFont import Font from SimpleDialog import SimpleDialog else: import tkinter as Tk_ from tkinter import ttk as ttk from tkinter.font import Fon...
PypiClean
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/request/AlipayEbppIndustryBizinfoApplyRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayEbppIndustryBizinfoApplyModel import AlipayEbppIndustryBizinfoApplyModel class AlipayEbppIndustryBizinfoApplyRequest(object): def __init__(self, biz_model=None): ...
PypiClean
/espnet-202308-py3-none-any.whl/espnet2/train/uasr_trainer.py
import argparse import dataclasses import logging import math import time from contextlib import contextmanager from typing import Dict, Iterable, List, Optional, Sequence, Tuple import torch from packaging.version import parse as V from typeguard import check_argument_types from espnet2.schedulers.abs_scheduler impo...
PypiClean
/PyMimircache-0.0.2.103.tar.gz/PyMimircache-0.0.2.103/README.md
PyMimircache ========== [![Build Status](https://travis-ci.org/1a1a11a/PyMimircache.svg?branch=master)](https://travis-ci.org/1a1a11a/PyMimircache) [![Documentation Status](https://readthedocs.org/projects/pymimircache/badge/?version=develop)](http://pymimircache.readthedocs.io/en/develop/?badge=develop) [![GitHub ver...
PypiClean
/transient-display-data-0.4.2.tar.gz/transient-display-data-0.4.2/src/transient.d.ts
import { ISessionContext } from '@jupyterlab/apputils'; import { CodeCell } from '@jupyterlab/cells'; import { KernelMessage } from '@jupyterlab/services'; import { IDisposable } from '@lumino/disposable'; /** * A handler for capturing API messages from other sessions that should be * rendered in a given parent. */ ...
PypiClean
/tccli-intl-en-3.0.779.1.tar.gz/tccli-intl-en-3.0.779.1/tccli/services/monitor/monitor_client.py
import os import sys import six import json import tccli.options_define as OptionsDefine import tccli.format_output as FormatOutput from tccli import __version__ from tccli.utils import Utils from tccli.exceptions import ConfigurationError, ClientError, ParamError from tencentcloud.common import credential from tencent...
PypiClean
/wxPython-zombie-3.1.5.6.tar.gz/wxPython-zombie-3.1.5.6/wx/demo/I18N.py
#Boa:FramePanel:LanguageSelectPanel import os import sys import wx from wx.lib import langlistctrl from Main import opj # Normally you would just set _ to be a reference to the # wx.GetTranslation function, and then wrap all you literal strings in # _() function calls. Then every time you use one of your literals, ...
PypiClean
/bpy_lambda-1.3.1-py3-none-any.whl/bpy_lambda/2.79/scripts/addons/io_anim_bvh/import_bvh.py
# <pep8 compliant> # Script copyright (C) Campbell Barton from math import radians, ceil import bpy from mathutils import Vector, Euler, Matrix class BVH_Node: __slots__ = ( # Bvh joint name. 'name', # BVH_Node type or None for no parent. 'parent', # A list of children ...
PypiClean
/spacyWB-0.1.1.tar.gz/spacyWB-0.1.1/bin/load_reddit.py
from __future__ import unicode_literals import bz2 import re import srsly import sys import random import datetime import plac from pathlib import Path _unset = object() class Reddit(object): """Stream cleaned comments from Reddit.""" pre_format_re = re.compile(r"^[`*~]") post_format_re = re.compile(r"...
PypiClean
/merlin-sok-1.2.0.tar.gz/merlin-sok-1.2.0/third_party/json/doc/mkdocs/docs/features/parsing/sax_interface.md
# SAX Interface The library uses a SAX-like interface with the following functions: ```plantuml interface json::sax_t { + {abstract} bool null() + {abstract} bool boolean(bool val) + {abstract} bool number_integer(number_integer_t val) + {abstract} bool number_unsigned(number_unsigned_t val) + ...
PypiClean
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/response/AlipayMemberCouponQuerylistResponse.py
import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.Coupon import Coupon class AlipayMemberCouponQuerylistResponse(AlipayResponse): def __init__(self): super(AlipayMemberCouponQuerylistResponse, self).__init__() self._coupon_list = None ...
PypiClean
/sdk-obs-python-3.23.5.tar.gz/sdk-obs-python-3.23.5/obs/util.py
# http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software distributed # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR # CONDITIONS OF ANY KIND, either express or implied. See the License for the # specific language governing permi...
PypiClean
/phenom_xfel-0.0.5.tar.gz/phenom_xfel-0.0.5/phenom/spectrum.py
import numpy as np from numpy import fft from scipy.constants import e, h from phenom.gaussian import gaussian_1d h_eV_s = h / e hr_eV_s = h_eV_s / (2 * np.pi) np.seterr(invalid="ignore") def linear_SASE_spectrum(t, pulse_duration, photon_energy, bandwidth=1e-04, t0=0): """ Generate a single SASE (Self-Am...
PypiClean
/Pycord-Utils-2.3.2.tar.gz/Pycord-Utils-2.3.2/pycord/ext/dl/extractor/nrk.py
from __future__ import unicode_literals import itertools import random import re from .common import InfoExtractor from ..compat import compat_str from ..utils import ( determine_ext, ExtractorError, int_or_none, parse_duration, str_or_none, try_get, urljoin, url_or_none, ) class NRK...
PypiClean
/baiduads-sdk-auto-snapshot-2022.2.1.5.tar.gz/baiduads-sdk-auto-snapshot-2022.2.1.5/baiduads/bulkjob/model/get_all_changed_objects_request_wrapper.py
import re # noqa: F401 import sys # noqa: F401 from baiduads.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, valid...
PypiClean
/Flask-Assets2-2.1.tar.gz/Flask-Assets2-2.1/src/flask_assets.py
from __future__ import print_function import logging from os import path from flask import current_app, has_app_context, has_request_context from flask.globals import app_ctx, request_ctx from flask.templating import render_template_string # We want to expose Bundle via this module. from webassets import Bundle from...
PypiClean
/robot_soccer_python-1.0.4.tar.gz/robot_soccer_python-1.0.4/README.md
# Robot soccer Python ![Version](https://img.shields.io/static/v1?label=Version&message=1.0.4&color=7159c1?style=for-the-badge) ![Version](https://img.shields.io/static/v1?label=Dependence&message=pygame&color=red) ![](https://user-images.githubusercontent.com/50979367/125829618-9f371d88-ff18-4107-8a0d-60ede54bb0e6.P...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/to-string-loader/node_modules/loader-utils/lib/interpolateName.js
'use strict'; const path = require('path'); const emojisList = require('emojis-list'); const getHashDigest = require('./getHashDigest'); const emojiRegex = /[\uD800-\uDFFF]./; const emojiList = emojisList.filter((emoji) => emojiRegex.test(emoji)); const emojiCache = {}; function encodeStringToEmoji(content, length) ...
PypiClean
/custom_onnx-0.1.1-py3-none-any.whl/custom_onnx/labextension/static/remoteEntry.aa2866118452cb4b32fe.js
var _JUPYTERLAB;(()=>{"use strict";var e,r,t,n,a,o,i,u,l,d,s,c,f,p,h,v,b,m,g={357:(e,r,t)=>{var n={"./index":()=>Promise.all([t.e(120),t.e(316),t.e(568)]).then((()=>()=>t(568))),"./extension":()=>Promise.all([t.e(120),t.e(316),t.e(480)]).then((()=>()=>t(480)))},a=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((...
PypiClean
/dark-matter-4.0.70.tar.gz/dark-matter-4.0.70/bin/get-reads.py
import sys from re import compile import argparse from dark.blast.alignments import BlastReadsAlignments from dark.titles import TitlesAlignments from dark.fasta import FastaReads def main(recordFilenames, fastaFilename, title, xRange, bitRange): """ Print reads that match in a specified X-axis and bit scor...
PypiClean
/ipykernel-6.25.1.tar.gz/ipykernel-6.25.1/docs/api/ipykernel.rst
ipykernel package ================= Subpackages ----------- .. toctree:: :maxdepth: 4 ipykernel.comm ipykernel.inprocess Submodules ---------- .. automodule:: ipykernel.compiler :members: :undoc-members: :show-inheritance: .. automodule:: ipykernel.connect :members: :undoc-members: :s...
PypiClean
/django_cradmin-10.4.1.tar.gz/django_cradmin-10.4.1/django_cradmin/apps/django_cradmin_js/staticsources/django_cradmin_js/lib/widgets/FilterRadioButtonWidget.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _reactDom = _interopRequireDefault(require("react-dom")); var _AbstractWidget2 = _interopRequireDefault(require("ievv_jsbase/lib/widget/AbstractWidget")...
PypiClean
/ethereum_etl_arbitrum-2.1.2-py3-none-any.whl/ethereumetl/service/eth_service.py
from datetime import datetime, timezone from ethereumetl.service.graph_operations import GraphOperations, OutOfBoundsError, Point class EthService(object): def __init__(self, web3): graph = BlockTimestampGraph(web3) self._graph_operations = GraphOperations(graph) def get_block_range_for_da...
PypiClean
/codeformer-0.0.11-py3-none-any.whl/basicsr/archs/arch_util.py
import collections.abc import math import torch import torchvision import warnings from distutils.version import LooseVersion from itertools import repeat from torch import nn as nn from torch.nn import functional as F from torch.nn import init as init from torch.nn.modules.batchnorm import _BatchNorm from basicsr.ops...
PypiClean
/cdktf_cdktf_provider_azuread-10.0.0-py3-none-any.whl/cdktf_cdktf_provider_azuread/directory_role_assignment/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from .._jsii import * import cdktf as _cdktf_9a9027ec import constructs as _constructs_77d1e7e8 class DirectoryRoleAssignment( _cdktf_9a9027ec.Terraform...
PypiClean
/py4j-0.10.9.7.tar.gz/py4j-0.10.9.7/doc/_static/doctools.js
"use strict"; const _ready = (callback) => { if (document.readyState !== "loading") { callback(); } else { document.addEventListener("DOMContentLoaded", callback); } }; /** * highlight a given string on a node by wrapping it in * span elements with the given class name. */ const _highlight = (node, a...
PypiClean
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/smart_home_tng/components/alexa_media/alexa_account_info.py
import asyncio import datetime as dt import json import logging import time import typing import alexapy import async_timeout from ... import core from .alexa_client import AlexaClient from .alexa_device import AlexaDevice from .alexa_media_switch import AlexaMediaSwitch from .const import Const from .dnd_switch impo...
PypiClean
/yt-dlp-2023.7.6.tar.gz/yt-dlp-2023.7.6/yt_dlp/downloader/fragment.py
import concurrent.futures import contextlib import http.client import json import math import os import struct import time import urllib.error from .common import FileDownloader from .http import HttpFD from ..aes import aes_cbc_decrypt_bytes, unpad_pkcs7 from ..compat import compat_os_name from ..utils import ( D...
PypiClean
/horrible_downloader-1.1.4-py3-none-any.whl/HorribleDownloader/cmd.py
import os import sys import argparse import logging from subprocess import call from typing import List from multiprocessing import Manager, Lock, Process from sty import fg sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from HorribleDownloader import Parser, ConfigManager try: #...
PypiClean
/PyOpenGL-3.1.7-py3-none-any.whl/OpenGL/raw/GL/ATI/fragment_shader.py
from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import ctypes _EXTENSION_NAME = 'GL_ATI_fragment_shader' def _f( functio...
PypiClean
/aegis_engine-1.0.7.tar.gz/aegis_engine-1.0.7/aegis/charts/indicators.py
import equity.utils as etils import charts.utils as ctils import pandas as pd class Indicators: def sma(ticker, period, window): """ Smoothed price series over a period of time averaged by a window :Params: * ticker (str): ticker lookup * period (str): 1d,5d,1mo,3mo...
PypiClean
/bia_explorer-0.1.1-py3-none-any.whl/bia_explorer/biostudies.py
import logging import pathlib import datetime from typing import List, Union, Optional import requests from pydantic import BaseModel, parse_raw_as logger = logging.getLogger(__name__) STUDY_URL_TEMPLATE = "https://www.ebi.ac.uk/biostudies/api/v1/studies/{accession}" FLIST_URI_TEMPLATE = ( "https://www.ebi.ac....
PypiClean
/lightdash_client_python-0.753.0-py3-none-any.whl/lightdash_client/models/get_dbt_cloud_integration_settings_response_200.py
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union import attr from ..models.get_dbt_cloud_integration_settings_response_200_status import ( GetDbtCloudIntegrationSettingsResponse200Status, ) from ..types import UNSET, Unset if TYPE_CHECKING: from ..models.get_dbt_cloud_integration_setti...
PypiClean
/gbptesthorizon-2014.2.tar.gz/gbptesthorizon-2014.2.dev67.g70d5b01/openstack_dashboard/dashboards/project/data_processing/data_sources/workflows/create.py
import logging from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms from horizon import workflows from openstack_dashboard.api import sahara as saharaclient LOG = logging.getLogger(__name__) class GeneralConfigAction(workflows.Action): data_source_n...
PypiClean
/pymysql_dao-0.0.11-py3-none-any.whl/pymysqldao/crud_/retrieve_.py
from typing import List, Dict, Union from pymysql.connections import Connection from pydantic import BaseModel, validator from pymysqldao import msg_ from pymysqldao.log_controller import LOGGER from pymysqldao.err_ import ( PrimaryKeyError, ) from pymysqldao.mixin_ import CRUDBaseMixin class VSelectById(BaseMo...
PypiClean
/simple_romp-2.0.2-cp39-cp39-manylinux1_x86_64.whl/trace2/evaluation/TrackEval/trackeval/baselines/vizualize.py
import os import sys from multiprocessing.pool import Pool from multiprocessing import freeze_support sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) from trackeval.baselines import baseline_utils as butils from trackeval.utils import get_code_path from trackeval.datasets.rob_m...
PypiClean
/boa_framework-0.9.7-py3-none-any.whl/boa/logger.py
import logging import logging.config import logging.handlers from boa.definitions import PathLike DEFAULT_LOG_LEVEL: int = logging.INFO ROOT_LOGGER_NAME = "boa" def get_logger(name: str = ROOT_LOGGER_NAME, level: int = DEFAULT_LOG_LEVEL, filename=None) -> logging.Logger: """Get a logger. To set a human-rea...
PypiClean
/cmsplugin-flickr-player-0.2.9.8.tar.gz/cmsplugin-flickr-player-0.2.9.8/cmsplugin_flickr_player/migrations/0002_auto__chg_field_flickrlink_width__chg_field_flickrlink_height.py
from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'FlickrLink.width' db.alter_column(u'cmsplugin_flickr_player_flickrlink', 'widt...
PypiClean
/colossalai-nightly-2023.9.2.tar.gz/colossalai-nightly-2023.9.2/colossalai/kernel/cuda_native/mha/flash_attn_2.py
import warnings from typing import Optional import torch def is_ampere_or_better_gpu(): if torch.cuda.is_available(): device = torch.device("cuda") properties = torch.cuda.get_device_properties(device) if properties.major >= 8: # Ampere GPUs or newer return True return ...
PypiClean
/gcredstash-1.0.2.tar.gz/gcredstash-1.0.2/README.md
# gcredstash ## Installation 1. `pip install gcredstash` ## Dependencies `gcredstash` uses following Google Cloud services * Google Cloud KMS * Google Datastore Make sure `gcredstash` have access to the above services. ## Introduction Software systems often need access to some shared credential. For example, your ...
PypiClean