id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/pai_easycv-0.11.4-py3-none-any.whl/easycv/configs/video_recognition/stgcn/stgcn_80e_ntu60_xsub_keypoint.py | _base_ = 'configs/base.py'
CLASSES = [
'drink water', 'eat meal/snack', 'brushing teeth', 'brushing hair', 'drop',
'pickup', 'throw', 'sitting down', 'standing up (from sitting position)',
'clapping', 'reading', 'writing', 'tear up paper', 'wear jacket',
'take off jacket', 'wear a shoe', 'take off a sh... | PypiClean |
/mindspore_ascend-1.10.0-cp39-none-any.whl/mindspore/ops/_op_impl/_custom_op/batchnorm_fold.py |
"""_BatchNormFold op"""
from __future__ import absolute_import
import te
from te import tvm
from topi import generic
from topi.cce import util
from mindspore.ops.op_info_register import op_info_register, TBERegOp, DataType
batch_norm_op_info = TBERegOp("BatchNormFoldD") \
.fusion_type("OPAQUE") \
.async_flag... | PypiClean |
/grailmud-0.1a3.zip/grailmud-0.1a3/npcs/chatty.py | from __future__ import absolute_import
__copyright__ = """Copyright 2007 Sam Pointon"""
__licence__ = """
This file is part of grailmud.
grailmud 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 2... | PypiClean |
/make-clean-2.0.1.zip/make-clean-2.0.1/make_clean.py | import os
import argparse
import shutil
VERSION = (2, 0, 1)
__version__ = '{0:d}.{1:d}.{2:d}'.format(*VERSION)
def make_clean(target_dirs, ignore_fname=None, ignores=None):
'''clean target_dir except ignores relatively
cleanup target directory except:
- file: is in ignores
- directory: is in ignor... | PypiClean |
/ElasticDeploy-1.1.0.tar.gz/ElasticDeploy-1.1.0/elasticdeploy/helpers.py | import os
import json
import zipfile
from subprocess import call
from datetime import datetime
nameOfConfig = 'edConfig.json'
ebextensionsFolder = '.ebextensions'
applicationNamePrefix = 'ElasticDeployApp'
# Init Functions
def checkEbInit():
isEbInitialized = raw_input("\nIs ElasticBeanstalk already initialize... | PypiClean |
/xcdb-0.4.2b0.tar.gz/xcdb-0.4.2b0/xchem_db/settings.py | from pathlib import Path
import os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the se... | PypiClean |
/shallowtestingaa-0.1.1.tar.gz/shallowtestingaa-0.1.1/easyfl/coordinator.py | import logging
import os
import random
import sys
import time
from os import path
import numpy as np
import torch
from omegaconf import OmegaConf
from easyfl.client.base import BaseClient
from easyfl.datasets import TEST_IN_SERVER
from easyfl.datasets.data import construct_datasets
from easyfl.distributed import dist... | PypiClean |
/pycopy-glob-3.5.6.tar.gz/pycopy-glob-3.5.6/glob.py |
import os
import re
import fnmatch
__all__ = ["glob", "iglob", "escape"]
def glob(pathname, *, recursive=False):
"""Return a list of paths matching a pathname pattern.
The pattern may contain simple shell-style wildcards a la
fnmatch. However, unlike fnmatch, filenames starting with a
dot are specia... | PypiClean |
/KratosContactStructuralMechanicsApplication-9.4-cp311-cp311-win_amd64.whl/KratosMultiphysics/ContactStructuralMechanicsApplication/adaptative_remeshing_contact_structural_mechanics_static_solver.py | import KratosMultiphysics as KM
# Import applications
import KratosMultiphysics.StructuralMechanicsApplication as SMA
import KratosMultiphysics.ContactStructuralMechanicsApplication as CSMA
import KratosMultiphysics.kratos_utilities as kratos_utilities
if kratos_utilities.CheckIfApplicationsAvailable("MeshingApplicat... | PypiClean |
/ftlengine-0.1.11.tar.gz/ftlengine-0.1.11/src/docker/hosts.py | import attr
import urllib.parse
import os
import docker
import sys
import subprocess
import json
import requests
from distutils.version import LooseVersion
from ..utils.functional import cached_property, thread_cached_property
from ..exceptions import DockerNotAvailableError
from .images import ImageRepository
@attr... | PypiClean |
/pubsub_validators.py-0.1.0-py3-none-any.whl/pubsub/adapters.py | import re
import time
import json
import redis
import jsonschema
from google.cloud import pubsub
from google.cloud.exceptions import NotFound
from google.gax.errors import GaxError
from jsonschema import validate
from kafka import KafkaConsumer, KafkaProducer
class BasePubSubAdapter(object):
"""
PubSub adapt... | PypiClean |
/onshape-test-client-1.0.0.tar.gz/onshape-test-client-1.0.0/onshape_client/oas/model/bt_sphere_description1263.py | import re # noqa: F401
import sys # noqa: F401
from onshape_client.oas.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 |
/dummy-0532-0.3.0.tar.gz/dummy-0532-0.3.0/up42/catalog.py | from pathlib import Path
from typing import Union, List, Tuple, Dict, Any
from pandas import Series
from geopandas import GeoDataFrame
from shapely.geometry import Point, Polygon
from geojson import Feature, FeatureCollection
from tqdm import tqdm
from up42.auth import Auth
from up42.viztools import VizTools
from up4... | PypiClean |
/anssdk-0.1.0.tar.gz/anssdk-0.1.0/README.md | # PY-ANS-SDK
A python sdk to resolve .algo names and perform name operations on ANS .algo names.
## Documentation
Install Package
**`pip`**
```
pip3 install anssdk
```
## Import
```
import anssdk.resolver as resolver
```
## Setup
```
algod_client = "" # set up your algodV2 client
algod_indexer = "" # set up your... | PypiClean |
/ndscope-0.18.0.tar.gz/ndscope-0.18.0/CHANGELOG.md | # Changelog
## [0.11.1] - 2021-01-29
- fix max min trend length
- usage to stdout
## [0.11.0] - 2021-01-25
- ability to manually select trend type
- ability to set plot font size (thanks Patrick Thomas)
- ability to set black-on-white style during operation (thanks Patrick
Thomas)
## [0.10.1] - 2020-12-22
- ... | PypiClean |
/Mopidy-3.4.1-py3-none-any.whl/mopidy/core/mixer.py | import contextlib
import logging
from mopidy import exceptions
from mopidy.internal import validation
from mopidy.internal.models import MixerState
logger = logging.getLogger(__name__)
@contextlib.contextmanager
def _mixer_error_handling(mixer):
try:
yield
except exceptions.ValidationError as e:
... | PypiClean |
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/iam/operations/users/admin_delete_user_permi_b5683d.py |
# template file: ags_py_codegen
# pylint: disable=duplicate-code
# pylint: disable=line-too-long
# pylint: disable=missing-function-docstring
# pylint: disable=missing-module-docstring
# pylint: disable=too-many-arguments
# pylint: disable=too-many-branches
# pylint: disable=too-many-instance-attributes
# pylint: dis... | PypiClean |
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/cloudfront/update-cloud-front-origin-access-identity.rst | **To update a CloudFront origin access identity**
The following example updates the origin access identity (OAI) with the ID
``E74FTE3AEXAMPLE``. The only field that you can update is the OAI's
``Comment``.
To update an OAI, you must have the OAI's ID and ``ETag``. The OAI ID is returned in the output of the
`create-... | PypiClean |
/bpy_2.79-1.0.0-py3-none-manylinux2014_x86_64.whl/bpy/2.79/scripts/addons/netrender/js/netrender.js | var rulesTableHeader = ["type", "enabled", "descritpiton", "limit", "value"];
var slaveTableHeaderWithJob = ["name", "last_seen", "stats", "address", "tags", "total_done", "total_error", "job"];
var slaveTableHeader = ["name", "last_seen", "stats", "address"];
var jobTableHeader = ["action", "id", "name", "category", "... | PypiClean |
/qtsass310-0.3.1.post0.tar.gz/qtsass310-0.3.1.post0/README.md | # QtSASS: Compile SCSS files to Qt stylesheets
[](./LICENSE.txt)
[](#backers)
[:
# Addtional initilisation code
# Configuration parameters
config = {
# The name of your plug... | PypiClean |
/django-generic-images-0.36.1.tar.gz/django-generic-images-0.36.1/generic_images/media/generic_images/js/GearsUploader.ru.yui.js | Element.implement({hide:function(){var b;try{if((b=this.getStyle("display"))=="none"){b=null}}catch(a){}return this.store("originalDisplay",b||"block").setStyle("display","none")},show:function(a){return this.setStyle("display",a||this.retrieve("originalDisplay")||"block")}});(function(a){this.ProgressBar=new Class({Im... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/pseudomonassph2.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def PseudomonasSpH2(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwargs: Dict
)... | PypiClean |
/cassio-0.1.1.tar.gz/cassio-0.1.1/README.md | # cassIO
A framework-agnostic Python library to seamlessly integrate Apache Cassandra with ML/LLM/genAI workloads.
**Note**: this is currently an alpha release.
## Users
Installation is as simple as:
```
pip install cassio
```
For example usages and integration with higher-level LLM frameworks
such as LangChain, ... | PypiClean |
/spotify_cli-0.3.11-py3-none-any.whl/cli/utils/exceptions.py | from click import ClickException
# auth
class AuthorizationError(ClickException):
def __init__(self):
from .Spotify import get_config
self.message = (
'CLI not authenticated.\n'
'Please run the command - spotify auth login'
)
if get_config().get('client_id')... | PypiClean |
/bzr-2.7.0.tar.gz/bzr-2.7.0/bzrlib/pyutils.py | from __future__ import absolute_import
import sys
def get_named_object(module_name, member_name=None):
"""Get the Python object named by a given module and member name.
This is usually much more convenient than dealing with ``__import__``
directly::
>>> doc = get_named_object('bzrlib.pyutils', ... | PypiClean |
/dadi-2.3.0.tar.gz/dadi-2.3.0/doc/user-guide/importing-data.md | # Importing data
dadi represents frequency spectra using `dadi.Spectrum` objects. As desccribed in the [Manipulating spectra section](./manipulating-spectra.md), `Spectrum` objects are subclassed from `numpy.masked_array` and thus can be constructed similarly. The most basic way to create a `Spectrum` is manually:
f... | PypiClean |
/azure_ai_ml-1.9.0-py3-none-any.whl/azure/ai/ml/entities/_job/spark_resource_configuration.py |
from typing import Optional, Union
from azure.ai.ml._restclient.v2023_04_01_preview.models import (
SparkResourceConfiguration as RestSparkResourceConfiguration,
)
from azure.ai.ml.entities._mixins import DictMixin, RestTranslatableMixin
from azure.ai.ml.exceptions import ErrorCategory, ErrorTarget, ValidationExc... | PypiClean |
/highcharts_stock-1.3.0.tar.gz/highcharts_stock-1.3.0/docs/api/options/series/spline.rst | ##########################################################################################
:mod:`.spline <highcharts_stock.options.series.spline>`
##########################################################################################
.. contents:: Module Contents
:local:
:depth: 3
:backlinks: entry
--------... | PypiClean |
/azure-mgmt-videoanalyzer-1.0.0b4.zip/azure-mgmt-videoanalyzer-1.0.0b4/azure/mgmt/videoanalyzer/operations/_operation_results_operations.py | from typing import TYPE_CHECKING
import warnings
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.pipeline import PipelineResponse
from azure.core.pipeline.transport import HttpRequest, HttpResponse
from azure.mgmt.cor... | PypiClean |
/mxnet_noavx-2.0.3-py3-none-manylinux1_x86_64.whl/mxnet/callback.py |
# coding: utf-8
"""Callback functions that can be used to track various status during epoch."""
import logging
import math
import time
from .model import save_checkpoint
def do_checkpoint(prefix, period=1):
"""A callback that saves a model checkpoint every few epochs.
Each checkpoint is made up of a couple o... | PypiClean |
/ansible-role-manager-0.4.tar.gz/ansible-role-manager-0.4/arm/commands/init/role/README.md | Role Name
========
A brief description of the role goes here.
Requirements
------------
Any pre-requisites that may not be covered by the ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is requi... | PypiClean |
/monasca_transform-2.0.0.tar.gz/monasca_transform-2.0.0/tools/vagrant/refresh_monasca_transform.sh |
#
# for debugging
#
## turn on display command
## set -x
if grep -q devstack <<<`hostname`; then
echo Refreshing monasca-transform
else
echo Yikes, no - this is not devstack!
exit 1
fi
if [ -d ~/devstack ] ; then
. ~/devstack/.stackenv
fi
SCRIPT_HOME=$(dirname $(readlink -f $BASH_SOURCE))
pushd $SCRI... | PypiClean |
/estnltk-textclassifier-1.2.2.tar.gz/estnltk-textclassifier-1.2.2/textclassifier/classify.py | from __future__ import unicode_literals, print_function, absolute_import
from .utils import read_dataset, write_dataset
from .utils import check_filename, load_classifier
import argparse
import sys
import pandas as pd
import logging
import codecs
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger('c... | PypiClean |
/petpptx-1.0.3.tar.gz/petpptx-1.0.3/features/steps/shapes.py | import io
from behave import given, then, when
from pptx import Presentation
from pptx.chart.data import CategoryChartData
from pptx.enum.chart import XL_CHART_TYPE
from pptx.enum.shapes import MSO_CONNECTOR, MSO_SHAPE, PP_PLACEHOLDER, PROG_ID
from pptx.shapes.base import BaseShape
from pptx.util import Emu, Inches
... | PypiClean |
/trulioo_sdk-1.0.4-py3-none-any.whl/trulioo_sdk/model/record.py | import re # noqa: F401
import sys # noqa: F401
from trulioo_sdk.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,
va... | PypiClean |
/tensorflow-search-0.6.8.tar.gz/tensorflow-search-0.6.8/jina/executors/indexers/vector.py | __copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved."
__license__ = "Apache-2.0"
import gzip
import os
from functools import lru_cache
from os import path
from typing import Optional, List, Union, Tuple, Dict
import numpy as np
from . import BaseVectorIndexer
from ..decorators import batching
fr... | PypiClean |
/chia-blockchain-2.0.1b2.tar.gz/chia-blockchain-2.0.1b2/chia/wallet/did_wallet/did_wallet.py | from __future__ import annotations
import dataclasses
import json
import logging
import re
import time
from secrets import token_bytes
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Optional, Set, Tuple, cast
from blspy import AugSchemeMPL, G1Element, G2Element
from chia.protocols.wallet_protocol impor... | PypiClean |
/plone.app.relations-2.0.zip/plone.app.relations-2.0/plone/app/relations/utils.py | from zope.site.hooks import setSite, setHooks
from zope.component.interfaces import ComponentLookupError
from zope.component import getUtility
from five.intid.site import FiveIntIdsInstall, addUtility, add_intids
from five.intid.lsm import USE_LSM
from plone.relations import interfaces
from plone.relations.container im... | PypiClean |
/pyapprentice-1.1.0.tar.gz/pyapprentice-1.1.0/apprentice/io.py | import apprentice as app
def readInputDataH5(fname, wfile=None):
import apprentice as app
import numpy as np
import h5py
try:
from mpi4py import MPI
comm=MPI.COMM_WORLD
size = comm.Get_size()
rank = comm.Get_rank()
except:
size = 1
rank = 0
pnam... | PypiClean |
/giftbit-0.1.tar.gz/giftbit-0.1/README.md | # giftbit-python
A Python SDK for GiftBit's API.
## Installation
```bash
$ pip install giftbit
```
## Getting Started
### API Credentials
The `GiftbitClient` needs your Giftbit credentials. You can pass them into the constructor
or use the environment variable `GIFTBIT_API_KEY`.
```python
from giftbit import Giftb... | PypiClean |
/justice40-data-pipeline-0.1.0.tar.gz/justice40-data-pipeline-0.1.0/data_pipeline/etl/sources/census/etl.py | import csv
import json
import subprocess
from enum import Enum
from pathlib import Path
import geopandas as gpd
from data_pipeline.etl.base import ExtractTransformLoad
from data_pipeline.utils import get_module_logger, unzip_file_from_url
from data_pipeline.etl.sources.census.etl_utils import get_state_fips_codes
lo... | PypiClean |
/llm_toys-0.1.1-py3-none-any.whl/llm_toys/hf/transformers/models/megatron_gpt2/checkpoint_reshaping_and_interoperability.py |
import argparse
import json
import os
import re
import sys
import types
import torch
from transformers import AutoTokenizer, GPT2Config
from transformers.modeling_utils import WEIGHTS_INDEX_NAME, WEIGHTS_NAME, shard_checkpoint
def add_checkpointing_args(parser):
parser.add_argument("--megatron-path", type=str,... | PypiClean |
/waldur_mastermind-4.5.1-py3-none-any.whl/waldur_azure/migrations/0012_network_security_group.py | import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import django_fsm
import model_utils.fields
import re
import waldur_core.core.shims
import waldur_core.core.fields
import waldur_core.core.models
import waldur_core.logging.loggers
clas... | PypiClean |
/tap-mixpanel-1.5.1.tar.gz/tap-mixpanel-1.5.1/tap_mixpanel/sync.py | import singer
from tap_mixpanel.streams import STREAMS
LOGGER = singer.get_logger()
def get_streams_to_sync(selected_streams):
"""Get lists of streams to call the sync method.
For children, ensure that dependent parent_stream is included even
if it is not selected.
"""
streams_to_sync = []
... | PypiClean |
/oslo-core-2.0.2.tar.gz/oslo-core-2.0.2/oslo/generation_utils.py |
import warnings
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union
import torch
import torch.distributed as dist
from torch import nn
from transformers.file_utils import ModelOutput
from transformers.generation_beam_search import BeamScorer, BeamSearchScorer
from transformers.generation_lo... | PypiClean |
/apycotbot-1.10.0.tar.gz/apycotbot-1.10.0/server.py | from __future__ import with_statement
__docformat__ = "restructuredtext en"
import os
import sys
import select
import warnings
import signal
import stat
import logging
from os.path import exists, join, normpath
from subprocess import Popen
from tempfile import TemporaryFile
from threading import Thread, Lock, Timer
f... | PypiClean |
/fine-tune-0.0.0.tar.gz/fine-tune-0.0.0/fastentrypoints.py | from setuptools.command import easy_install
import re
TEMPLATE = r'''
# -*- coding: utf-8 -*-
# EASY-INSTALL-ENTRY-SCRIPT: '{3}','{4}','{5}'
__requires__ = '{3}'
import re
import sys
from {0} import {1}
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit({2}(... | PypiClean |
/pulumi_gcp_native-0.0.2a1617829075.tar.gz/pulumi_gcp_native-0.0.2a1617829075/pulumi_gcp_native/dataproc/v1beta2/__init__.py |
# Export this package's modules as members:
from .autoscaling_policy import *
from .autoscaling_policy_iam_policy import *
from .region_autoscaling_policy import *
from .region_autoscaling_policy_iam_policy import *
from .region_cluster import *
from .region_cluster_iam_policy import *
from .region_job_iam_policy impo... | PypiClean |
/wm.sampledata-0.7.0.tar.gz/wm.sampledata-0.7.0/wm/sampledata/utils.py | import datetime
import os
from types import ListType
from plone.portlets.constants import CONTENT_TYPE_CATEGORY
from plone.portlets.constants import CONTEXT_CATEGORY
from plone.portlets.constants import GROUP_CATEGORY
from plone.portlets.interfaces import ILocalPortletAssignmentManager
from plone.portlets.interfaces i... | PypiClean |
/nasbench_keras-0.2.4.tar.gz/nasbench_keras-0.2.4/nasbench_keras/graph_util.py |
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license.php
# 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... | PypiClean |
/plonetheme.sunstrap-0.0.8.tar.gz/plonetheme.sunstrap-0.0.8/plonetheme/sunstrap/theme/js/login.js |
function cookiesEnabled() {
// Test whether cookies are enabled by attempting to set a cookie and then change its value
// set test cookie
var c = "areYourCookiesEnabled=0";
document.cookie = c;
var dc = document.cookie;
// cookie not set? fail
if (dc.indexOf(c) == -1) return 0;
// change test cookie
... | PypiClean |
/bika.lims-3.2.1rc1.tar.gz/bika.lims-3.2.1rc1/bika/lims/exportimport/instruments/abaxis/vetscan/__init__.py | from datetime import datetime
from bika.lims.exportimport.instruments.resultsimport import \
AnalysisResultsImporter, InstrumentCSVResultsFileParser
class AbaxisVetScanCSVParser(InstrumentCSVResultsFileParser):
def __init__(self, csv):
InstrumentCSVResultsFileParser.__init__(self, csv)
self._c... | PypiClean |
/tensorflow-gpu-macosx-1.8.1.tar.gz/tensorflow/contrib/labeled_tensor/python/ops/_typecheck.py | # TODO(ericmc,shoyer): Delete this in favor of using pytype or mypy
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
import functools
import re
from tensorflow.python.util import tf_inspect
# used for register_type_abbreviation and _type_... | PypiClean |
/zeno_etl_libs-1.0.126.tar.gz/zeno_etl_libs-1.0.126/zeno_etl_libs/utils/ipc/doid_update_ss.py | import pandas as pd
import numpy as np
import time
from zeno_etl_libs.django.api import Sql
from zeno_etl_libs.db.db import MySQL
def doid_update(data, type_list, db, schema, logger=None, gaid_omit=True):
# GA skus to be omitted
ga_sku_query = f"""
select "drug-id" as drug_id
from "{sc... | PypiClean |
/tendenci-speakers-5.2.0.tar.gz/tendenci-speakers-5.2.0/speakers/views.py | from os.path import basename, join, abspath, dirname
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from django.http import HttpResponseRedirect, Http404, HttpResponse
from django.core.urlresolvers import reverse
from django.core.files.images import ImageF... | PypiClean |
/JiveData-0.1.tar.gz/JiveData-0.1/jivedata/webapp/views/user.py | import requests
import random
import simplejson as json
from flask import (request, redirect, session, url_for,
render_template, jsonify, flash)
from jivedata.webapp import app
def make_user_request(endpoint, data=None):
"""Make a request to the Jive Data API. Will first refresh the token, then... | PypiClean |
/mtSC-1.3-py3-none-any.whl/MDML/MDML.py | import os
from torch.utils.data import TensorDataset, DataLoader, Dataset, Sampler
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import numpy as np
import pandas as pd
from scipy.stats import pearsonr
from tqdm import tqdm
class Setting:
"""Parameters for training"... | PypiClean |
/graphite-datasets-1.0.5.tar.gz/graphite-datasets-1.0.5/tensorflow_datasets/structured/web_graph/web_graph.py | import dataclasses
import os
import textwrap
from typing import List
import numpy as np
import tensorflow as tf
import tensorflow_datasets.public_api as tfds
_DESCRIPTION = """
This dataset contains a sparse graph representing web link structure for a
small subset of the Web.
Its a processed version of a single craw... | PypiClean |
/polyglot-fork-16.7.4.tar.gz/polyglot-fork-16.7.4/polyglot/load.py |
from os import path
import os
from tempfile import NamedTemporaryFile
import numpy as np
import morfessor
from six import PY2
from six.moves import cPickle as pickle
from . import polyglot_path
from .decorators import memoize
from .downloader import downloader
from .mapping import Embedding, CountedVocabulary, Case... | PypiClean |
/nionswift-16.9.0.tar.gz/nionswift-16.9.0/nion/swift/FilterPanel.py | from __future__ import annotations
# standard libraries
import bisect
import datetime
import gettext
import threading
import typing
import weakref
# third party libraries
# None
# local libraries
from nion.swift import Panel
from nion.swift.model import DisplayItem
from nion.swift.model import UISettings
from nion.u... | PypiClean |
/roof-mask-0.5.4.tar.gz/roof-mask-0.5.4/detectron2/data/datasets/builtin.py | import os
from detectron2.data import DatasetCatalog, MetadataCatalog
from .builtin_meta import ADE20K_SEM_SEG_CATEGORIES, _get_builtin_metadata
from .cityscapes import load_cityscapes_instances, load_cityscapes_semantic
from .cityscapes_panoptic import register_all_cityscapes_panoptic
from .coco import load_sem_seg,... | PypiClean |
/flappy-bird-gym-0.3.0.tar.gz/flappy-bird-gym-0.3.0/flappy_bird_gym/envs/game_logic.py | import random
from enum import IntEnum
from itertools import cycle
from typing import Dict, Tuple, Union
import pygame
############################ Speed and Acceleration ############################
PIPE_VEL_X = -4
PLAYER_MAX_VEL_Y = 10 # max vel along Y, max descend speed
PLAYER_MIN_VEL_Y = -8 # min vel along Y,... | PypiClean |
/home_assistant_frontend-20230901.0-py3-none-any.whl/hass_frontend/frontend_es5/32981-n5ZZz79MiWg.js | "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[32981,4631],{55020:function(t,e,i){i.d(e,{j:function(){return a}});var n={};function a(){return n}},5763:function(t,e,i){function n(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours()... | PypiClean |
/qp_flexzboost-0.1.2.tar.gz/qp_flexzboost-0.1.2/docs/notebooks/cdf_demonstration.ipynb | # CDF Exploration notebook for `qp_flexzboost`
This notebook demonstrates that as the x grid resolution is increased, the CDF approaches 1.
It also shows that the CDF approaches 1 for bump_threshold and sharpen_alpha values of `None` and non-`None`.
```
import qp
import qp_flexzboost
import numpy as np
from flexcod... | PypiClean |
/jupyterlab_classic-0.1.11-py3-none-any.whl/jupyterlab_classic/static/2604.bundle.js | (self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[2604],{56738:(r,t,e)=>{"use strict";e.r(t),e.d(t,{default:()=>n});var o=e(93476),i=e.n(o)()((function(r){return r[1]}));i.push([r.id,".cm-s-liquibyte.CodeMirror {\n\tbackground-color: #000;\n\tcolor: #fff;\n\tline-height: 1.2... | PypiClean |
/lgl_getpubmed-3.0-py3-none-any.whl/lgl_getpubmed/__init__.py |
import os
import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
def getPubMed_reference(chromedriver_path,d... | PypiClean |
/nonebot_plugin_horserace-2.2.tar.gz/nonebot_plugin_horserace-2.2/nonebot_plugin_horserace/events_main.py | import random
from .horse import horse
from .setting import *
from nonebot.log import logger
def event_main(race, horse_i, event, event_delay_key = 0):
try:
#读取 event_name
event_name = event["event_name"]
#该马儿是否死亡/离开/眩晕,死亡则结束事件链
if race.player[horse_i].is_die() == True and event_delay_key... | PypiClean |
/sdss-marvin-2.8.0.tar.gz/sdss-marvin-2.8.0/python/marvin/tools/sentry.py |
from __future__ import print_function, division, absolute_import
import requests
import os
try:
from urlparse import urljoin
except ImportError:
from urllib.parse import urljoin
try:
import matplotlib.pyplot as plt
import mpl_toolkits.axes_grid1
pyplot = True
except ImportError:
pyplot = False
... | PypiClean |
/slapos.core-1.10.2.tar.gz/slapos.core-1.10.2/CHANGES.rst | Changes
=======
1.10.2 (2023-07-07)
-------------------
* slap/standalone: Increase slapos error log size
1.10.1 (2023-07-03)
-------------------
* slap/standalone: Use IPv6 range when available
* testing: Factor snapshot management
1.10.0 (2023-06-21)
-------------------
* slapgrid: Start services even without ... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/storsimple/get_bandwidth_setting.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from . import outputs
__all__ = [
'GetBandwidthSettingResult',
'AwaitableGetBandwidthSettingResult',
'get_bandwidth_setting',
]
@pulumi.output_type
class GetBa... | PypiClean |
/azure-mgmt-sql-4.0.0b3.zip/azure-mgmt-sql-4.0.0b3/azure/mgmt/sql/aio/operations/_managed_instances_operations.py | from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.pipeline import Pipel... | PypiClean |
/ftd_api-0.0.8.tar.gz/ftd_api-0.0.8/ftd_api/parse_json.py | import csv
import json
import ftd_api.parse_csv as parse_csv
from ftd_api.file_helper import read_string_from_file
from ftd_api.file_helper import print_string_to_file
import os
NONE_CSV_VALUE = '-=NONE/NULL=-'
def pretty_print_json_file(json_file):
"""
This method will take a JSON file and will convert it to... | PypiClean |
/web3-klaytn-6.0.0b4.tar.gz/web3-klaytn-6.0.0b4/web3/tools/pytest_ethereum/linker.py | import logging
from typing import (
Any,
Callable,
Dict,
)
from eth_typing import (
ContractName,
)
from eth_utils import (
to_checksum_address,
to_hex,
)
from eth_utils.toolz import (
assoc_in,
curry,
pipe,
)
from ethpm import (
Package,
)
from ethpm.uri import (
create_la... | PypiClean |
/ray_for_mars-1.12.1-cp38-cp38-manylinux2014_x86_64.whl/ray_for_mars-1.12.1.data/purelib/ray/rllib/evaluation/collectors/simple_list_collector.py | import collections
from gym.spaces import Space
import logging
import math
import numpy as np
import tree # pip install dm_tree
from typing import Any, Dict, List, Tuple, TYPE_CHECKING, Union
from ray.rllib.env.base_env import _DUMMY_AGENT_ID
from ray.rllib.evaluation.collectors.sample_collector import SampleCollecto... | PypiClean |
/stub-0.2.1.tar.gz/stub-0.2.1/stubbing/expect.py | import unittest
from stub import stub
# class to add call expecting functions
class CallExpecterMixin:
def clear_call_expecters(self):
for call_expecter in getattr(self, 'call_expecters', []):
call_expecter.remove()
self.call_expecters = []
def expect_call(self, _callable, calls_expected=1, exact_calls=False... | PypiClean |
/preview_generator_ivc-0.11.11.tar.gz/preview_generator_ivc-0.11.11/preview_generator/preview/builder/image__pillow.py | from abc import ABC
from abc import abstractmethod
from io import BytesIO
import logging
import typing
import PIL
from PIL import Image
from preview_generator.preview.generic_preview import ImagePreviewBuilder
from preview_generator.utils import ImgDims
from preview_generator.utils import compute_resize_dims
# INFO ... | PypiClean |
/xinabox-OC03-0.0.5.tar.gz/xinabox-OC03-0.0.5/README.md | [](https://github.com/xinabox/Python-OC03/issues)


:
function = click.option("--output-dir",
help="Output directory.",
type=str,
required=True
)(function)
return function
def opt_notebook_formats(function):
function = click.option("--notebook-formats",
help="Databri... | PypiClean |
/spire.xls-13.4.0-py3-none-any.whl/spire/xls/InteriorArrayWrapper.py | from enum import Enum
from plum import dispatch
from typing import TypeVar,Union,Generic,List,Tuple
from spire.common import *
from spire.xls import *
from ctypes import *
import abc
class InteriorArrayWrapper ( XlsObject, IInterior) :
"""
"""
@property
def PatternKnownColor(self)->'ExcelColors':
... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/place_group_request.py |
from msrest.serialization import Model
class PlaceGroupRequest(Model):
"""PlaceGroupRequest.
All required parameters must be populated in order to send to Azure.
:param place_group_info: Required. The place group info <span
class='property-internal'>Must be between 0 and 255 characters</span>
... | PypiClean |
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/resource/_json_handler.py |
# The jsmin code from https://github.com/tikitu/jsmin/blob/release-2.2.2/jsmin/__init__.py is referenced
def json_min(js, **kwargs):
"""
returns a minified version of the json string
"""
import io
klass = io.StringIO
ins = klass(js)
outs = klass()
JsonMinify(ins, outs, **kwargs).minify... | PypiClean |
/antchain_ak_e7b5e9908e7f494ea772fe3dce6fba15-1.0.0.tar.gz/antchain_ak_e7b5e9908e7f494ea772fe3dce6fba15-1.0.0/antchain_sdk_ak_e7b5e9908e7f494ea772fe3dce6fba15/models.py | from Tea.model import TeaModel
class Config(TeaModel):
"""
Model for initing client
"""
def __init__(
self,
access_key_id: str = None,
access_key_secret: str = None,
security_token: str = None,
protocol: str = None,
read_timeout: int = None,
conn... | PypiClean |
/freshdesk-api-client-0.0.4.tar.gz/freshdesk-api-client-0.0.4/freshdesk_api_client/result.py |
# class Result(object):
# def __init__(self, session, count, current_items, link_first, link_next, link_self):
# self._items = current_items
# self._link_next = link_next
# self._link_self = link_self
# self._link_first = link_first
# self._count = count
# self._ses... | PypiClean |
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/iothub_consumer_group/__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 IothubConsumerGroup(
_cdktf_9a9027ec.TerraformReso... | PypiClean |
/dronin-pyqtgraph-20160825.3.tar.gz/dronin-pyqtgraph-20160825.3/examples/Symbols.py | import initExample ## Add path to library (just for examples; you do not need this)
from pyqtgraph.Qt import QtGui, QtCore
import pyqtgraph as pg
app = QtGui.QApplication([])
win = pg.GraphicsWindow(title="Scatter Plot Symbols")
win.resize(1000,600)
pg.setConfigOptions(antialias=True)
plot = win.addPlot(title="Plott... | PypiClean |
/databricks-connect-12.2.12.tar.gz/pyspark/sql/sql_formatter.py |
import string
import typing
from typing import Any, Optional, List, Tuple, Sequence, Mapping
import uuid
from py4j.java_gateway import is_instance_of
if typing.TYPE_CHECKING:
from pyspark.sql import SparkSession, DataFrame
from pyspark.sql.functions import lit
class SQLStringFormatter(string.Formatter):
""... | PypiClean |
/python-sources-3.10.5.tar.gz/python-sources-3.10.5/Python-3.10.5/Doc/library/sys.rst | :mod:`sys` --- System-specific parameters and functions
=======================================================
.. module:: sys
:synopsis: Access system-specific parameters and functions.
--------------
This module provides access to some variables used or maintained by the
interpreter and to functions that inter... | PypiClean |
/clearner-0.9.86.tar.gz/clearner-0.9.86/learner/data_worker/data_processor.py | import sys
import re
import multiprocessing
from multiprocessing import get_context
from functools import partial
import warnings
import logging
import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
from sklearn.preprocessing import StandardScaler, MinMaxSca... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/ishop/apps/merchant/orders/views.py | from __future__ import unicode_literals
from django.conf import settings
from django.http import Http404, HttpResponseRedirect
from django.db.models import Q
from django.views.decorators.http import require_POST
from django.core.urlresolvers import reverse
from django.shortcuts import get_object_or_404
from django.cont... | PypiClean |
/pyvoltha-min-2.8.1.tar.gz/pyvoltha-min-2.8.1/pyvoltha_min/adapters/iadapter.py | import structlog
from twisted.internet import reactor, task
from twisted.internet.defer import succeed
from voltha_protos.adapter_pb2 import Adapter, AdapterConfig
from voltha_protos.common_pb2 import AdminState
from voltha_protos.device_pb2 import DeviceType, DeviceTypes
from voltha_protos.health_pb2 import HealthStat... | PypiClean |
/xbus.monitor-0.2.1.zip/xbus.monitor-0.2.1/xbus/monitor/static/monitor_js/sources/assets/devoops/plugins/bootstrap/bootstrap.js | if (typeof jQuery === 'undefined') { throw new Error('Bootstrap requires jQuery') }
/* ========================================================================
* Bootstrap: transition.js v3.1.0
* http://getbootstrap.com/javascript/#transitions
* ======================================================================... | PypiClean |
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/plugins/richcombo/plugin.js | /*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'richcombo',
{
requires : [ 'floatpanel', 'listblock', 'button' ],
beforeInit : function( editor )
{
editor.ui.addHandler( CKEDITOR.UI_RICHCOMBO,... | PypiClean |
/maltsev_repeater-1.0.1.tar.gz/maltsev_repeater-1.0.1/README.md | # Maltsev.Repeater
\
Usage Repeater.Next and returns string:
```python
calls_count: int = 0
def action(multiplier: int) -> str | Repeater.Next:
global calls_count
calls_count += 1
if calls_count == 5:
return 'Hello World!'
else:
print(f'calls_count: {calls_count}, result: {multiplier... | PypiClean |
/mfabrik.plonezohointegration-0.1.4.zip/mfabrik.plonezohointegration-0.1.4/mfabrik/plonezohointegration/views.py | __copyright__ = "2010 mFabrik Research Oy"
__author__ = "Mikko Ohtamaa <mikko@mfabrik.com>"
__license__ = "GPL"
__docformat__ = "Epytext"
import zope.interface
from zope import schema
from zope.component import getUtility
from z3c.form.form import Form
from z3c.form.field import Fields
from z3c.form import button
fr... | PypiClean |
/convo_new_version_abdo-1.0.2-py3-none-any.whl/convo/train.py | import asyncio
import os
from pdb import set_trace
import tempfile
from contextlib import ExitStack
from typing import Text, Optional, List, Union, Dict
import convo.core.interpreter
from convo.shared.nlu.interpreter import NaturalLangInterpreter
from convo.shared.importers.importer import TrainingDataImporter
from co... | PypiClean |
/pnap_bmc_api-1.5.0-py3-none-any.whl/pnap_bmc_api/model/quota_edit_limit_request_details.py | import re # noqa: F401
import sys # noqa: F401
from pnap_bmc_api.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,
v... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.