id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/hugging_gan_test-0.2.29-py3-none-any.whl/bigotis/models/aphantasia/modeling_aphantasia.py | import os
import math
import logging
from typing import *
import torch
import torchvision
import PIL
from PIL import Image
import numpy as np
from bigotis.modeling_utils import ImageGenerator
logging.basicConfig(format='%(message)s', level=logging.INFO)
NUM_IMG_CHANNELS = 3
NUM_IMAGINARY_CHANNELS = 2
class Aphanta... | PypiClean |
/uem_reader_py-0.1.2.tar.gz/uem_reader_py-0.1.2/README.md | # Python binding to Rust uem_reader crate
This is a Python binding for [MicroEM](https://microem.ru/) reader support [crate in Rust](https://crates.io/crates/uem-reader).
## Note on using libusb
On Linux you need to add write permissions to the device you want to use, e.g.:
```console
sudo chmod o+w /dev/bus/usb/00... | PypiClean |
/elemeno_ai_feast-0.18.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/feast/type_map.py |
from collections import defaultdict
from datetime import datetime, timezone
from typing import (
Any,
Dict,
Iterator,
List,
Optional,
Sequence,
Set,
Sized,
Tuple,
Type,
Union,
cast,
)
import numpy as np
import pandas as pd
import pyarrow
from google.protobuf.timestamp_p... | PypiClean |
/django_adminlte_x-0.22.1-py3-none-any.whl/adminlte/static/admin/js/admin/RelatedObjectLookups.js |
(function($) {
'use strict';
// IE doesn't accept periods or dashes in the window name, but the element IDs
// we use to generate popup window names may contain them, therefore we map them
// to allowed characters in a reversible way so that we can locate the correct
// element when the popup wind... | PypiClean |
/zdppy_api-0.1.1.tar.gz/zdppy_api-0.1.1/zdppy_api/anyio/_core/_exceptions.py | from traceback import format_exception
from typing import List
class BrokenResourceError(Exception):
"""
Raised when trying to use a resource that has been rendered unusable due to external causes
(e.g. a send stream whose peer has disconnected).
"""
class BrokenWorkerProcess(Exception):
"""
... | PypiClean |
/django-la-facebook-0.1.1.tar.gz/django-la-facebook-0.1.1/docs/callbacks.rst | Callbacks
=========
In the context of la_facebook, callbacks are a subclass of
la_facebook.callbacks.base.BaseFacebookCallback.
The callback is called after the user authenticates with Facebook, either for
the first time, or when returning after authentication expiration. The callback
determines what happens next, wh... | PypiClean |
/napari-chatgpt-2023.8.8.tar.gz/napari-chatgpt-2023.8.8/src/napari_chatgpt/utils/python/fix_bad_fun_calls.py | import re
import sys
import traceback
from difflib import Differ
from typing import Tuple
from arbol import asection, aprint
from langchain import PromptTemplate, LLMChain
from langchain.callbacks.manager import CallbackManager
from langchain.chat_models import ChatOpenAI
from langchain.llms import BaseLLM
from napar... | PypiClean |
/Amino_new.py-5.0.tar.gz/Amino_new.py-5.0/new/lib/util/objects.py |
class Objects:
class Users:
team_amino = "000000000-0000-0000-0000-000000000000"
news_feed = "000000000-0000-0000-0000-000000000001"
class UserProfile:
def __init__(self, data):
self.json = data
try: self.fanClub: FanClubList = FanClubList(data["fanClubList"]).FanClubList
... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/kusto/v20221229/cosmos_db_data_connection.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__all__ = ['CosmosDbDataConnectionArgs', 'CosmosDbDataConnection']
@pulumi.input_type
class CosmosDbDataConnectionArgs:
def __init__(__self__, *,
... | PypiClean |
/matchzoo-lite-0.1.4.tar.gz/matchzoo-lite-0.1.4/matchzoo/data_generator/dpool_data_generator.py |
import math
import numpy as np
import pandas as pd
from matchzoo.data_pack import DataPack
from matchzoo.data_generator import DataGenerator
from matchzoo.data_generator import PairDataGenerator
def _dynamic_pooling_index(length_left: np.array,
length_right: np.array,
... | PypiClean |
/porE-1.0.7.tar.gz/porE-1.0.7/LICENSE.md | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | PypiClean |
/scikit-learn-3way-split-0.0.1.tar.gz/scikit-learn-3way-split-0.0.1/sklearn/datasets/descr/rcv1.rst | .. _rcv1_dataset:
RCV1 dataset
------------
Reuters Corpus Volume I (RCV1) is an archive of over 800,000 manually
categorized newswire stories made available by Reuters, Ltd. for research
purposes. The dataset is extensively described in [1]_.
**Data Set Characteristics:**
============== =================... | PypiClean |
/KratosOptimizationApplication-9.4-cp310-cp310-win_amd64.whl/KratosMultiphysics/OptimizationApplication/controls/shape/shape_control.py |
import KratosMultiphysics as KM
import KratosMultiphysics.OptimizationApplication as KOA
class ShapeControl():
def __init__(self, name, model, settings):
self.name = name
self.type = "shape"
self.model = model
self.settings = settings
self.controlling_objects = sel... | PypiClean |
/certora_cli_alpha_jtoman_cert_1920-20230505.6.20.438554-py3-none-any.whl/certora_cli/EVMVerifier/certoraCollectRunMetadata.py | import json
import os
from typing import Any, Dict, List
import subprocess
from EVMVerifier.certoraContextClass import CertoraContext
from datetime import datetime
from Shared.certoraUtils import Mode
import logging
from pathlib import Path
from copy import deepcopy
from Shared.certoraUtils import get_package_and_versi... | PypiClean |
/azure_ml_component-0.9.18-py3-none-any.whl/azure/ml/component/_widgets/_utils.py | from azureml.core import Workspace, Experiment
from .._core._component_definition import ComponentType
from .._restclients.service_caller_factory import _DesignerServiceCallerFactory
from azure.core.pipeline import PipelineResponse
SUBSCRIPTION_ID = 'subscriptionId'
RESOURCE_GROUP = 'resourceGroup'
WORKSPACE_NAME = 'w... | PypiClean |
/pulumi_gcp_native-0.0.2a1617829075.tar.gz/pulumi_gcp_native-0.0.2a1617829075/pulumi_gcp_native/gameservices/v1beta/outputs.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'AuditConfigResponse',
'AuditLogConfigResponse',
'AuthorizationLoggingOptionsResponse',
'BindingResponse',
'CloudAudi... | PypiClean |
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/google/appengine/tools/dev_appserver_blobimage.py | import logging
import re
import urlparse
from google.appengine.api.images import images_service_pb
BLOBIMAGE_URL_PATTERN = '/_ah/img(?:/.*)?'
BLOBIMAGE_RESPONSE_TEMPLATE = ('Status: %(status)s\r\nContent-Type: %(content_type)s'
'\r\n\r\n%(data)s')
def CreateBlobImageDispatcher(images_... | PypiClean |
/webull_python_sdk_core-0.1.5-py3-none-any.whl/webullsdkcore/vendored/requests/auth.py |
# -*- coding: utf-8 -*-
"""
requests.auth
~~~~~~~~~~~~~
This module contains the authentication handlers for Requests.
"""
import os
import re
import time
import hashlib
import threading
import warnings
from base64 import b64encode
from .compat import urlparse, str, basestring
from .cookies import extract_cookies... | PypiClean |
/eea.facetednavigation-16.0a1.zip/eea.facetednavigation-16.0a1/eea/facetednavigation/widgets/widgets.py | import warnings
from zope.interface import implementer
from zope.component.zcml import adapter
from eea.facetednavigation.widgets.interfaces import ICriterion
from eea.facetednavigation.widgets.interfaces import IWidgetsInfo
@implementer(IWidgetsInfo)
class WidgetsInfo(object):
"""Widgets registry"""
_widget... | PypiClean |
/bili_eta-0.3.4.tar.gz/bili_eta-0.3.4/bili_eta/plugins/eta/Src/DynPusher.py | from .StatuChecker import Check
from .DataManager import DataManage
from .BiliApi import Api
import asyncio
import json
from nonebot import logger
from bilirpc.api import get_follow_dynamic,get_dy_detail
from nonebot.adapters.onebot.v11 import MessageSegment
from .MessageManager import MessageSender
from google.protobu... | PypiClean |
/nautobot_ssot-2.0.0rc1.tar.gz/nautobot_ssot-2.0.0rc1/nautobot_ssot/integrations/infoblox/signals.py | # pylint: disable=duplicate-code
from nautobot.core.signals import nautobot_database_ready
from nautobot.extras.choices import CustomFieldTypeChoices, RelationshipTypeChoices
from nautobot_ssot.integrations.infoblox.constant import TAG_COLOR
def register_signals(sender):
"""Register signals for Infoblox integrat... | PypiClean |
/django-labeller-0.3.2.tar.gz/django-labeller-0.3.2/README.md | # django-labeller
#### A light-weight image labelling tool for Python designed for creating segmentation data sets.
- compatible with Django, Flask and Qt
- polygon, box, point and oriented ellipse annotations supported
- polygonal labels can have disjoint regions and can be editing using paintng and boolean operatio... | PypiClean |
/encord_active-0.1.70.tar.gz/encord_active-0.1.70/src/encord_active/lib/embeddings/embedding_index.py | from __future__ import annotations
import os
import pickle
from pathlib import Path
from typing import NamedTuple, Optional
import numpy as np
from pynndescent import NNDescent
from encord_active.lib.common.iterator import DatasetIterator, Iterator
from encord_active.lib.embeddings.embeddings import get_embeddings
f... | PypiClean |
/Wextracto-0.15.1.tar.gz/Wextracto-0.15.1/wex/sitemaps.py | from __future__ import unicode_literals, absolute_import, print_function
import logging
import wex.py2compat ; assert wex.py2compat
from lxml.etree import iterparse, XMLSyntaxError
from codecs import getreader
from six.moves.urllib_parse import urljoin
from wex.extractor import chained
from wex.http import decode
from ... | PypiClean |
/hiq-projectq-0.6.4.tar.gz/hiq-projectq-0.6.4/projectq/backends/_ibm/_ibm.py | """ Back-end to run quantum program on IBM's Quantum Experience."""
import math
import random
from projectq.cengines import BasicEngine
from projectq.meta import get_control_count, LogicalQubitIDTag
from projectq.ops import (NOT, H, Rx, Ry, Rz, Measure, Allocate, Deallocate,
Barrier, FlushGat... | PypiClean |
/Qtumblr-0.1.tar.gz/Qtumblr-0.1/qtumblr/gui/quote_ui.py | from PyQt4 import QtCore, QtGui
from advancedoptions import AdvancedOptions_widget
class Quote_widget(QtGui.QDialog):
def CreateLabel(self,text):
etiqueta = QtGui.QLabel(text)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStre... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/teamwork/team_templates/item/definitions/item/team_definition/channels/get_all_messages/get_all_messages_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/ndg_httpsclient-0.5.1-py3-none-any.whl/ndg/httpsclient/ssl_peer_verification.py | __author__ = "P J Kershaw (STFC)"
__date__ = "09/12/11"
__copyright__ = "(C) 2012 Science and Technology Facilities Council"
__license__ = "BSD - see LICENSE file in top-level directory"
__contact__ = "Philip.Kershaw@stfc.ac.uk"
__revision__ = '$Id$'
import re
import logging
log = logging.getLogger(__name__)
try:
... | PypiClean |
/demisto_sdk-1.19.2.tar.gz/demisto_sdk-1.19.2/demisto_sdk/commands/test_content/xsiam_tools/xsiam_client.py | import gzip
import os
from abc import ABC, abstractmethod
from pathlib import Path
from pprint import pformat
from typing import Any, Dict, List, Optional
from urllib.parse import urljoin
import requests
from pydantic import BaseModel, Field, HttpUrl, SecretStr, validator
from pydantic.fields import ModelField
from d... | PypiClean |
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/vendor/ace-builds/src-noconflict/mode-kotlin.js | ace.define("ace/mode/kotlin_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 KotlinHighlightRules = funct... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/chats/item/pinned_messages/item/message/message_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/sentry-nos-9.0.0.tar.gz/sentry-nos-9.0.0/src/sentry/south_migrations/0172_auto__del_field_team_owner.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):
# Deleting field 'Team.owner'
db.delete_column(u'sentry_team', 'owner_id')
def backwards(self... | PypiClean |
/thundra-4.0.0rc20230615143333.tar.gz/thundra-4.0.0rc20230615143333/catchpoint/_version.py | __version__ = "3.0.6.rc2023"
#patch
#minor
#major
# #semver
from pep440_rs import Version, VersionSpecifier
import os,codecs
from datetime import datetime
ALPHA_RELEASE_TYPE = 'alpha'
BETA_RELEASE_TYPE = 'beta'
RC_RELEASE_TYPE = 'rc'
PATCH_RELEASE = 'patch'
MINOR_RELEASE = 'minor'
MAJOR_RELEASE = 'major'
def... | PypiClean |
/smart_imports-0.2.7-py3-none-any.whl/smart_imports/rules.py | import os
import sys
import pkgutil
import importlib
import importlib.util
from . import exceptions
from . import discovering
_FABRICS = {}
_RULES = {}
def register(name, rule):
if name in _FABRICS:
raise exceptions.RuleAlreadyRegistered(rule=name)
_FABRICS[name] = rule
def remove(name):
if ... | PypiClean |
/google_ads_megalista-18.0.2-py3-none-any.whl/google/ads/googleads/v13/services/types/merchant_center_link_service.py | import proto # type: ignore
from google.ads.googleads.v13.resources.types import merchant_center_link
from google.protobuf import field_mask_pb2 # type: ignore
__protobuf__ = proto.module(
package="google.ads.googleads.v13.services",
marshal="google.ads.googleads.v13",
manifest={
"ListMerchantC... | PypiClean |
/langchain_xfyun-0.0.275b2-py3-none-any.whl/langchain_xfyun/document_loaders/dropbox.py |
import os
import tempfile
from pathlib import Path
from typing import Any, Dict, List, Optional
from langchain_xfyun.docstore.document import Document
from langchain_xfyun.document_loaders.base import BaseLoader
from langchain_xfyun.pydantic_v1 import BaseModel, root_validator
class DropboxLoader(BaseLoader, BaseM... | PypiClean |
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/mode/turtle/turtle.js | CodeMirror.defineMode("turtle", function(config) {
var indentUnit = config.indentUnit;
var curPunc;
function wordRegexp(words) {
return new RegExp("^(?:" + words.join("|") + ")$", "i");
}
var ops = wordRegexp([]);
var keywords = wordRegexp(["@prefix", "@base", "a"]);
var operatorChars = /[*+\-<>=&|]/... | PypiClean |
/rr-ml-config-1.11.1.tar.gz/rr-ml-config-1.11.1/COPYING.LESSER.md | ### GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
<https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates... | PypiClean |
/sdv-1.4.0.tar.gz/sdv-1.4.0/docs/api_reference/metrics/api/sdv.metrics.tabular.RegressionEfficacyMetric.rst | sdv.metrics.tabular.RegressionEfficacyMetric
============================================
.. currentmodule:: sdv.metrics.tabular
.. autoclass:: RegressionEfficacyMetric
.. automethod:: __init__
.. rubric:: Methods
.. autosummary::
~RegressionEfficacyMetric.SCORER
~RegressionEffica... | PypiClean |
/pyter3-0.3-py3-none-any.whl/pyter/__init__.py | import itertools as itrt
def ter(inputwords, refwords):
"""Calcurate Translation Error Rate
inputwords and refwords are both list object.
>>> ref = 'SAUDI ARABIA denied THIS WEEK information published in the AMERICAN new york times'.split()
>>> hyp = 'THIS WEEK THE SAUDIS denied information published ... | PypiClean |
/tensorflow_ascend-1.15.0-cp37-cp37m-manylinux2014_aarch64.whl/tensorflow_core/contrib/slim/python/slim/data/tfexample_decoder.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import abc
import six
from tensorflow.contrib.slim.python.slim.data import data_decoder
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import sparse_tensor
from tensorflow.pyt... | PypiClean |
/azure_mgmt_containerservice-26.0.0-py3-none-any.whl/azure/mgmt/containerservice/v2022_01_02_preview/aio/operations/_snapshots_operations.py | from io import IOBase
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
Re... | PypiClean |
/cpg-workflows-1.15.0.tar.gz/cpg-workflows-1.15.0/cpg_workflows/jobs/vcf.py | from typing import Literal
import hailtop.batch as hb
from hailtop.batch.job import Job
from cpg_utils import Path, to_path
from cpg_utils.hail_batch import image_path, fasta_res_group, command
from cpg_workflows.resources import STANDARD, storage_for_joint_vcf
from cpg_workflows.utils import can_reuse
def subset_v... | PypiClean |
/axiom.top-1.0.0.tar.gz/axiom.top-1.0.0/sympy/parsing/latex/_antlr/latexparser.py | from antlr4 import *
from io import StringIO
import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO
def serializedATN():
return [
4,1,91,522,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,
6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,... | PypiClean |
/artellapipe-libs-usd-0.0.5.tar.gz/artellapipe-libs-usd-0.0.5/artellapipe/libs/usd/externals/python/2/OpenGL/GL/NV/gpu_program4.py | from OpenGL import platform, constant, arrays
from OpenGL import extensions, wrapper
import ctypes
from OpenGL.raw.GL import _types, _glgets
from OpenGL.raw.GL.NV.gpu_program4 import *
from OpenGL.raw.GL.NV.gpu_program4 import _EXTENSION_NAME
def glInitGpuProgram4NV():
'''Return boolean indicating whether this ext... | PypiClean |
/scalable-pypeline-1.2.3.tar.gz/scalable-pypeline-1.2.3/pypeline/schedule_config_schema.py | import re
from celery.schedules import crontab_parser
from croniter import croniter
from marshmallow.validate import OneOf
from marshmallow.exceptions import ValidationError
from marshmallow import Schema, fields, EXCLUDE, pre_load, validates_schema
class ExcludeUnknownSchema(Schema):
""" Remove unknown keys from... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/community/docker/plugins/modules/docker_swarm_service.py |
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
---
module: docker_swarm_service
author:
- "Dario Zanzico (@dariko)"
- "Jason Witkowski (@jwitko)"
- "Hannes Ljungberg (@hannseman)"
- "Piotr Wojciechowski (@wojciechowskipiotr)"
short_description: docker... | PypiClean |
/KratosDEMApplication-9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/DEMApplication/MPIer.py | import sys
import math
import shutil as Shutil
class MPIerClass:
def __init__(self,input_file):
tem_filename = 'temporal_file.mdpa'
output_file = open(tem_filename,'w')
with open(str(input_file)) as f:
content = f.readlines()
fix_nodes = 0
old_id = 0
... | PypiClean |
/threed_strudel-0.9.18-py3-none-any.whl/threed_strudel/validation/score_chimerax.py | __author__ = 'Andrei Istrate'
__email__ = 'andrei@ebi.ac.uk'
__date__ = '2019-04-10'
import os
import csv
import sys
from multiprocessing import Process, Manager, Lock
from datetime import datetime
import multiprocessing
from shutil import copy, rmtree
import json
import argparse
import operator
import psutil
# from ... | PypiClean |
/cepa-1.8.4-py3-none-any.whl/stem/interpreter/help.py | import stem.prereq
from stem.interpreter import (
STANDARD_OUTPUT,
BOLD_OUTPUT,
ERROR_OUTPUT,
msg,
uses_settings,
)
from stem.util.term import format
if stem.prereq._is_lru_cache_available():
from functools import lru_cache
else:
from stem.util.lru_cache import lru_cache
def response(controller, arg)... | PypiClean |
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_2_0/access_change_broker.py | from ..broker import Broker
class AccessChangeBroker(Broker):
controller = "access_changes"
def show(self, **kwargs):
"""Shows the details for the specified access change.
**Inputs**
| ``api version min:`` None
| ``api version max:`` None
| ``requi... | PypiClean |
/tdf.extensionuploadcenter-0.50.zip/tdf.extensionuploadcenter-0.50/tdf/extensionuploadcenter/eupreleaselink.py | import re
from Products.CMFPlone.utils import safe_unicode
from Products.validation import V_REQUIRED
from tdf.extensionuploadcenter import _
from Acquisition import aq_inner, aq_parent
from plone import api
from plone.app.textfield import RichText
from plone.autoform import directives
from plone.dexterity.browser.vi... | PypiClean |
/p01.testbrowser-2.0.1.zip/p01.testbrowser-2.0.1/src/p01/testbrowser/browser.py | """Webtest browser
"""
__docformat__ = "reStructuredText"
import sys
import re
import time
import json
import io
import os
import itertools
import webbrowser
import tempfile
import collections
import wsgiproxy.proxies
from contextlib import contextmanager
import lxml.etree
import lxml.html
from bs4 import BeautifulS... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_9/models/object_store_account_post.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flashblade.FB_2_9 import models
class ObjectStoreAccountPost(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the v... | PypiClean |
/monk_colab_test-0.0.1-py3-none-any.whl/monk/pytorch/finetune/level_6_params_main.py | from monk.pytorch.finetune.imports import *
from monk.system.imports import *
from monk.pytorch.finetune.level_5_state_base import finetune_state
class prototype_params(finetune_state):
@accepts("self", verbose=int, post_trace=False)
#@TraceFunction(trace_args=True, trace_rv=True)
def __init__(self, verbo... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true... | PypiClean |
/espnet-202308-py3-none-any.whl/espnet2/train/iterable_dataset.py | import copy
from io import StringIO
from pathlib import Path
from typing import Callable, Collection, Dict, Iterator, Tuple, Union
import kaldiio
import numpy as np
import soundfile
import torch
from torch.utils.data.dataset import IterableDataset
from typeguard import check_argument_types
from espnet2.train.dataset ... | PypiClean |
/clearml_agent-1.6.0rc2-py3-none-any.whl/clearml_agent/external/pyhocon/config_tree.py | from collections import OrderedDict
from pyparsing import lineno
from pyparsing import col
try:
basestring
except NameError: # pragma: no cover
basestring = str
unicode = str
import re
import copy
from .exceptions import ConfigException, ConfigWrongTypeException, ConfigMissingException
class UndefinedKe... | PypiClean |
/jdcloud_sdk-1.6.243.tar.gz/jdcloud_sdk-1.6.243/jdcloud_sdk/services/partner/models/DistributorDTO.py |
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | PypiClean |
/microfreshener_core-1.4.0-py3-none-any.whl/microanalyser/analyser/builder.py | from .analyser import MicroToscaAnalyser
from .sniffer import EndpointBasedServiceInteractionSmellSniffer, NoApiGatewaySmellSniffer, WobblyServiceInteractionSmellSniffer, SharedPersistencySmellSniffer, CrossTeamDataManagementSmellSniffer
from .constant import SMELL_ENDPOINT_BASED_SERVICE_INTERACTION, SMELL_NO_API_GATE... | PypiClean |
/latimes-appengine-template-0.022.tar.gz/latimes-appengine-template-0.022/appengine_template/google_appengine/lib/django_0_96/django/db/backends/sqlite3/introspection.py | from django.db.backends.sqlite3.base import quote_name
def get_table_list(cursor):
"Returns a list of table names in the current database."
# Skip the sqlite_sequence system table used for autoincrement key
# generation.
cursor.execute("""
SELECT name FROM sqlite_master
WHERE type='tabl... | PypiClean |
/mir_ml_utils-0.0.13-py3-none-any.whl/mir_ml_utils/mir_vision/scripts/release_notes/retrieve_prs_data.py | import json
import locale
import os
import re
import subprocess
from collections import namedtuple
from os.path import expanduser
import requests
Features = namedtuple(
"Features",
[
"title",
"body",
"pr_number",
"files_changed",
"labels",
],
)
def dict_to_featur... | PypiClean |
/patent-parsing-tools-0.9.2.tar.gz/patent-parsing-tools-0.9.2/patent_parsing_tools/utils/fmatrix.py | from functools import reduce
import pickle
from os import listdir, path
import numpy as np
import theano
def get_file_lines(filename):
with open(filename, "r") as fh:
return sum(1 for _ in fh)
def parse2(filename, dictionary):
"""
build a numpy full matrix from sparse 'id:cnt' data.
"""
... | PypiClean |
/modules/Tables.py | from datetime import datetime
from typing import Iterator, List, Optional
from mpsiemlib.common import ModuleInterface, MPSIEMAuth, LoggingHandler, MPComponents, Settings
from mpsiemlib.common import exec_request, get_metrics_start_time, get_metrics_took_time
class Tables(ModuleInterface, LoggingHandler):
"""
... | PypiClean |
/icegrams-0.6.0.tar.gz/icegrams-0.6.0/README.rst | =======================================================
Icegrams: A fast, compact trigram library for Icelandic
=======================================================
.. image:: https://travis-ci.com/mideind/Icegrams.svg?branch=master
:target: https://travis-ci.com/mideind/Icegrams
********
Overview
********
**... | PypiClean |
/coosa-control-0.1.0.tar.gz/coosa-control-0.1.0/coosa_control.py | from os import makedirs
import socket as sk
from appdirs import user_config_dir
from argparse import ArgumentParser
from ast import literal_eval
from os.path import isfile, join, dirname
def main():
parser = ArgumentParser(description='Lights control script for coosa smart plugs')
parser.add_argument('comman... | PypiClean |
/tonconnect-0.2.0.tar.gz/tonconnect-0.2.0/LICENSE.md | MIT License
Copyright (c) 2023 ClickoTON Foundation
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, publi... | PypiClean |
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/core/dataprocessor.js | /*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the "virtual" {@link CKEDITOR.dataProcessor} class, which
* defines the basic structure of data processor objects to be
* set to {@link CKED... | PypiClean |
/tunir-0.17.3.tar.gz/tunir-0.17.3/docs/index.rst | .. Tunir documentation master file, created by
sphinx-quickstart on Thu Jan 15 22:45:09 2015.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Tunir
================
Tunir is a simple testing tool. The goal is to have a system which is... | PypiClean |
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/cloudfront/get_streaming_distribution.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
__all__ = [
'GetStreamingDistributionResult',
'AwaitableGetStreamingDistributionResult',
'get_streaming_distribution',
'g... | PypiClean |
/django-bricks-0.2.3.tar.gz/django-bricks-0.2.3/src/bricks/forms.py | import django.forms.utils
from django import forms
from bricks.components.utils import ifset
from .components import html5_tags
from .html5 import tr, td, th, li, ul, p, br, html
def form_row(label, input, errors=None, help_text=None, class_=None,
type='table', **kwargs):
"""
Return a normal row... | PypiClean |
/azure_mgmt_kubernetesconfiguration-3.0.0-py3-none-any.whl/azure/mgmt/kubernetesconfiguration/v2021_05_01_preview/models/_models_py3.py |
import datetime
import sys
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
from ... import _serialization
if sys.version_info >= (3, 8):
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
else:
from typing_extensions import Literal # type: ignore # pylint:... | PypiClean |
/FastFlask-1.2.32-py3-none-any.whl/click/formatting.py | import typing as t
from contextlib import contextmanager
from gettext import gettext as _
from ._compat import term_len
from .parser import split_opt
# Can force a width. This is used by the test system
FORCED_WIDTH: t.Optional[int] = None
def measure_table(rows: t.Iterable[t.Tuple[str, str]]) -> t.Tuple[int, ...]... | PypiClean |
/slither_tcheck-0.1.0-py3-none-any.whl/slither/visitors/expression/write_var.py | from slither.visitors.expression.expression import ExpressionVisitor
key = "WriteVar"
def get(expression):
val = expression.context[key]
# we delete the item to reduce memory use
del expression.context[key]
return val
def set_val(expression, val):
expression.context[key] = val
class WriteVar(... | PypiClean |
/pry.py-0.1.1.tar.gz/pry.py-0.1.1/README.md | # pry.py - an interactive drop in REPL for python
## EXAMPLE
Allow to embed ipython/bpython or the builtin python shell in your projects

## INSTALL
```
pip install pry.py
```
or
```
$ curl https://raw.githubusercontent.com/Mic92/pry.py/master/pry.py > pry.py
```
or:
`... | PypiClean |
/mkdocs_protobuf-0.1.0-py3-none-any.whl/mkdocs_protobuf/plugin.py | """Protobuf plugin for mkdocs."""
import logging
import os
import re
from typing import Any
from typing import Dict
from typing import Optional
import jinja2
from mkdocs.config import Config
from mkdocs.config.config_options import Type
from mkdocs.exceptions import PluginError
from mkdocs.plugins import BasePlugin
fr... | PypiClean |
/dataPython-0.3-py3-none-any.whl/dataPython.py | import re
"""various functions to help deal with text data in Python """
def getXYdata_wXYerr(infile=None):
#format expected is (whitespace separated):
#x y yerr
#can handle comment lines where the line's first non-whitespace character is #
#open the file return a dictionary with se,sw,nw,ne ele... | PypiClean |
/bmcs-0.0.2a28-py3-none-any.whl/ibvpy/mats/mats2D/mats2D_elastic/mats2D_elastic.py | from math import pi as Pi, cos, sin, exp, sqrt as scalar_sqrt
from ibvpy.mats.mats2D.mats2D_eval import MATS2DEval
from ibvpy.mats.mats_eval import IMATSEval
from numpy import array, zeros, dot, float_, copy
from scipy.linalg import eig, inv
from traits.api import \
Array, Bool, Callable, Enum, Float, HasTraits, \
... | PypiClean |
/hiq-circuit-0.0.2.post4.tar.gz/hiq-circuit-0.0.2.post4/python/hiq/noise/_noise_model.py |
from copy import deepcopy
from projectq.ops import Measure, Allocate, AllocateDirty, AllocateQuregGate
from ._kraus_error import KrausError
class NoiseModelError(Exception):
pass
class NoiseModel(object):
"""
The general class for noisy gate
"""
def __init__(self, qerror=None, noisy_gates=Non... | PypiClean |
/warframe.py-1.0.0.tar.gz/warframe.py-1.0.0/warframe/worldstate/client.py | import asyncio
import logging
from datetime import datetime, timezone
from functools import wraps
from typing import Any, Callable, Coroutine, List, Optional, Type, TypeVar, Union
import aiohttp
import msgspec
from .common import (
MultiQueryModel,
SingleQueryModel,
TimedEvent,
WorldstateObject,
_... | PypiClean |
/label-studio-withoutsignin-1.0.12.tar.gz/label-studio-withoutsignin-1.0.12/label_studio_withoutsignin/data_import/api.py | import time
import logging
import drf_yasg.openapi as openapi
import json
from django.conf import settings
from django.db import transaction
from drf_yasg.utils import swagger_auto_schema
from rest_framework import generics, status
from rest_framework.response import Response
from rest_framework.parsers import FormPar... | PypiClean |
/cctbx-2020.8-0_py36h1d45459-cp36-cp36m-manylinux2010_x86_64.whl/rstbx/phil/phil_preferences.py | from __future__ import absolute_import, division, print_function
from libtbx.phil.command_line import argument_interpreter as model_argument_interpreter
from libtbx.utils import Sorry
from spotfinder.command_line.signal_strength import additional_spotfinder_phil_defs # implicit import
try:
from dials.algorithms.inte... | PypiClean |
/advanced-geometry-utils-0.0.1.tar.gz/advanced-geometry-utils-0.0.1/geometry_utils/two_d/edge2.py | import copy
import math
import geometry_utils.three_d.edge3
import geometry_utils.two_d.axis_aligned_box2
from geometry_utils.maths_utility import (floats_are_close, DOUBLE_EPSILON, PI, TWO_PI, is_list, is_int_or_float,
CIRCLE_FACTORS, CIRCLE_DIVISIONS, HALF_PI, ONE_AND_HALF_PI, is_float, radians_to_degrees)
from ... | PypiClean |
/asyncio-box-1.4.6.tar.gz/asyncio-box-1.4.6/asyncio_box/timer.py | import asyncio
import contextlib
import enum
import functools
from typing import Callable, Optional
from unittest import mock
from .compat import get_running_loop
from .taskgroup import TaskGroup
__all__ = (
'create_timer',
'TimerDelayPolicy',
'VirtualClock',
)
class TimerDelayPolicy(enum.Enum):
"""... | PypiClean |
/eodag_labextension-3.3.1-py3-none-any.whl/eodag_labextension/labextension/static/810.45315a9192f0b47a400a.js | "use strict";(self.webpackChunkeodag_labextension=self.webpackChunkeodag_labextension||[]).push([[810],{5810:(t,e,i)=>{i.r(e),i.d(e,{Parser:()=>g,geojsonToWKT:()=>N,parser:()=>p,wktToGeoJSON:()=>k});var n=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},s=[1,52],r=[1,59],o=[1,65],a=[1,79],h=[1,84],c=[1... | PypiClean |
/QuinnStruct-0.3.tar.gz/QuinnStruct-0.3/quinnstruct/tree.py | from enum import IntEnum
class TraverseMethod(IntEnum):
# enum class for traversal and processing order
IN_ORDER = 1
PRE_ORDER = 2
POST_ORDER = 3
class ComparisonSign(IntEnum):
# enum class for comparisons, gt, lt and equal
LESS = 1
GREATER = 2
EQUAL = 3
class Node:
# class for no... | PypiClean |
/trident_chemwidgets-0.2.1.tar.gz/trident_chemwidgets-0.2.1/trident_chemwidgets/js/jsme/deferredjs/A6F07BEC1B1688C12F5B955C842A4E18/1.cache.js | $wnd.jsme.runAsyncCallback1('var E7="Assignment of aromatic double bonds failed",Upa="Smiles with leading parenthesis are not supported",Vpa="SmilesParser: \'+\' found outside brackets",Wpa="SmilesParser: closing bracket without opening one",Xpa="SmilesParser: dangling open bond",Ypa="SmilesParser: dangling ring closur... | PypiClean |
/firelight_lighting-1.0.1-py3-none-any.whl/firelight/interfaces/lifx/lifx.py | from lifxlan import LifxLAN
from firelight.interfaces.light import LightSystem, LightGroup, LightDevice
from firelight.interfaces.color import HLSColor
SMOOTHING_COEFFICIENT = 0.80
class LifxSystem(LightSystem):
def __init__(self, transition_time=300, smoothing=True):
self._lifxlan = LifxLAN()
se... | PypiClean |
/hnzhu010501-0.0.1-py3-none-any.whl/example_pkg/airtest/utils/apkparser/bytecode.py |
from struct import unpack, pack
global PRETTY_SHOW
PRETTY_SHOW = 0
# Print arg into a correct format
def _Print(name, arg):
buff = name + " "
if type(arg).__name__ == 'int':
buff += "0x%x" % arg
elif type(arg).__name__ == 'long':
buff += "0x%x" % arg
elif type(arg).__name__ == 'str':... | PypiClean |
/orm_alchemy-0.1.14-py3-none-any.whl/orm_alchemy/alchemy.py | import enum
from math import ceil
NAME = "Active-Alchemy"
# ------------------------------------------------------------------------------
import threading
import json
import datetime
import sqlalchemy
from sqlalchemy import *
from sqlalchemy.orm import scoped_session, sessionmaker, Query
from sqlalchemy.engine.url ... | PypiClean |
/humble_get-0.1.0.tar.gz/humble_get-0.1.0/README.md | # CLI for getting your Humble Bundle Books
- It's a script that I wrote to get books from Humble Bundle automatically
- Makes a folder then grabs all of the formats for each book and puts it in it
- It's using humble bundle api https://www.humblebundle.com/api/v1/order/key?wallet_data=true
## How to use it?
In order ... | PypiClean |
/dsin100daysv29-6.0.1.tar.gz/dsin100daysv29-6.0.1/notebook/static/components/codemirror/mode/gfm/gfm.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../markdown/markdown"), require("../../addon/mode/overlay"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "../markdown/markd... | PypiClean |
/auto_augment-1.0.0-cp38-cp38-manylinux1_x86_64.whl/auto_augment/examples/PaddleDetection/code/eval.py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
def set_paddle_flags(**kwargs):
for key, value in kwargs.items():
if os.environ.get(key, None) is None:
os.environ[key] = str(value)
# NOTE(paddle-dev): All of these flags... | PypiClean |
/taurus-5.0.0.1.tar.gz/taurus-5.0.0.1/doc/source/tep/TEP16.md | Title: Moving Taurus to GitHub
TEP: 16
State: ACCEPTED
Date: 2016-11-17
Drivers: Carlos Pascual-Izarra cpascual@cells.es
URL: http://www.taurus-scada.org/tep?TEP16.md
License: http://www.jclark.com/xml/copying.txt
Abstract:
Move Taurus project from its current hosting in SourceForg... | PypiClean |
/kg-qa-0.1.6.tar.gz/kg-qa-0.1.6/kg_qa/LOVAPI.py | import os
from xml.dom.minidom import Notation
import requests
def log_in_out(func):
from time import perf_counter
def decorated_func(*args, **kwargs):
start_time = perf_counter()
print("Doing ", func.__name__)
result = func(*args, **kwargs)
end_time = perf_counter()
exe... | PypiClean |
/get_random_people-1.1.3-py3-none-any.whl/qualifications.py | qualifications = [
"High school",
"Diploma in Fire safety",
"Diploma in Health safety",
"Diploma in Pharmacy",
"Bachelor of Arts (B.A)",
"Bachelor of Fine Arts (B.F.A)",
"Bachelor of Business Administration (B.B.A.)",
"Integrated Law course (B.A + L.L.B.)... | PypiClean |
/jupyterhub_simx-1.1.8-py3-none-any.whl/jupyterhub_simx-1.1.8.data/data/share/jupyterhub/static/components/bootstrap/js/button.js | +function ($) {
'use strict';
// BUTTON PUBLIC CLASS DEFINITION
// ==============================
var Button = function (element, options) {
this.$element = $(element)
this.options = $.extend({}, Button.DEFAULTS, options)
this.isLoading = false
}
Button.VERSION = '3.4.0'
Button.DEFAULT... | PypiClean |
/artellapipe-libs-usd-0.0.5.tar.gz/artellapipe-libs-usd-0.0.5/artellapipe/libs/usd/externals/python/2/OpenGL/raw/GL/VERSION/GL_4_0.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_VERSION_GL_4_0'
def _f( function ):
... | PypiClean |
/classy_blocks-1.2.3-py3-none-any.whl/classy_blocks/construct/flat/sketches/disk.py | from typing import Dict, List
import numpy as np
from classy_blocks.construct.edges import Origin
from classy_blocks.construct.flat.face import Face
from classy_blocks.construct.flat.sketches.sketch import Sketch
from classy_blocks.construct.point import Point
from classy_blocks.types import NPPointType, NPVectorType... | PypiClean |
/discogs-api-0.1.0.tar.gz/discogs-api-0.1.0/discogs_api/client.py | from __future__ import absolute_import, division, print_function, unicode_literals
import warnings
import json
try:
# python2
from urllib import urlencode
except ImportError:
# python3
from urllib.parse import urlencode
from discogs_api import models
from discogs_api.exceptions import ConfigurationErr... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.