id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/nsfw-0.3.2.tar.gz/nsfw-0.3.2/README.md | # python-nsfw
**A Python package for analyzing images using [Caffe](https://github.com/BVLC/caffe) and [Yahoo's open_nsfw](https://github.com/yahoo/open_nsfw) models.**
[][pypi]
[:
def get_template_names(self):
if self.request.is_ajax():
if not hasattr(self, "ajax_template_name... | PypiClean |
/airflow-commons-0.0.69.tar.gz/airflow-commons-0.0.69/airflow_commons/gcp.py | import pandas as pd
from airflow_commons.resources.glossary import COMMA, WHITE_SPACE
from airflow_commons.logger import get_logger
from airflow_commons.resources.bigquery import (
DEDUPLICATION_GET_AVAILABLE_PARTITIONS_FIELD_SQL_FILE,
ARCHIVE_SOURCE_STATEMENT_FILE,
ARCHIVE_DELETE_WHERE_STATEMENT_FILE,
)
f... | PypiClean |
/NREL_disco-0.4.2-py3-none-any.whl/disco/pydss/pydss_simulation_base.py |
import abc
import copy
import logging
import os
import re
import PyDSS.exceptions as PyDssExceptions
from PyDSS.pydss_project import update_pydss_controllers
from PyDSS.pydss_project import PyDssProject, PyDssScenario
from jade.events import StructuredLogEvent, EVENT_CATEGORY_ERROR
from jade.jobs.job_execution_inter... | PypiClean |
/birdhousebuilder.recipe.mongodb-0.4.0.tar.gz/birdhousebuilder.recipe.mongodb-0.4.0/birdhousebuilder/recipe/mongodb/__init__.py | import os
from mako.template import Template
import logging
import zc.buildout
import zc.recipe.deployment
from zc.recipe.deployment import Configuration
import birdhousebuilder.recipe.supervisor
import birdhousebuilder.recipe.conda
templ_config = Template(filename=os.path.join(os.path.dirname(__file__), "mongod.conf... | PypiClean |
/django-cruds-adminlte-0.0.16.tar.gz/django-cruds-adminlte-0.0.16/cruds_adminlte/static/ckeditor/lang/bg.js | /*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.lang['bg']={"editor":"Текстов редактор за форматиран текст","editorPanel":"Панел на текстовия редактор","common":{"editorHelp":"натиснете ALT 0 за помощ","browseServer... | PypiClean |
/echarts-china-counties-pypkg-0.0.2.tar.gz/echarts-china-counties-pypkg-0.0.2/echarts_china_counties_pypkg/resources/echarts-china-counties-js/b3b515644452aa6da435a29d55fd295b.js | (function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func... | PypiClean |
/Taxonome-1.5.tar.gz/Taxonome-1.5/taxonome/utils/qgram.py | from collections import defaultdict
START="^"
END="$"
def qgrams(s, q=3):
"""Generate a set of Q-grams from a string."""
s = START*(q-1) + s # + END*(q-1)
return frozenset(s[i:i+q] for i in range(len(s)-(q-1)))
def compare_strings(s1, s2, q=3):
"""Return the proportion of Q-grams that match between t... | PypiClean |
/ucb_client-22.7.12-py3-none-any.whl/ucb_client/rest.py | from __future__ import absolute_import
import io
import json
import logging
import re
import ssl
import certifi
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import urlencode
try:
import urllib3
except ImportError:
raise ImportError('Swagger python client requires urlli... | PypiClean |
/cigetcert-1.19.tar.gz/cigetcert-1.19/README | R E A D M E
Product Name: cigetcert
Product Version: 1.19
Date (yyyy/mm/dd): 2019/07/20
------------------------------------------------------------------------
ORIGIN
======
Authors
Dave Dykstra
Fermi National Acce... | PypiClean |
/er-calvin-1.1.1.tar.gz/er-calvin-1.1.1/calvin/actorstore/systemactors/test/FakeShadow.py |
# Copyright (c) 2015 Ericsson AB
#
# 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 writ... | PypiClean |
/paperscroll-1.0.0-py3-none-any.whl/paperscroll.py | import requests
import base64
import time
class PaperScroll:
def __init__(self, access_token: str, merchant_id: int):
if not access_token:
raise NotImplementedError("Отсутсвует {access_token}")
if not merchant_id:
raise NotImplementedError("Отсутсвует {merchant_id}")
self.access_token = access_token
sel... | PypiClean |
/my_weekly_schedule-0.1.4.tar.gz/my_weekly_schedule-0.1.4/README.md | # my_weekly_schedule
Plot your weekly schedule from a simple text file with Python.
Inspired by [utkuufuk/weekplot](https://github.com/utkuufuk/weekplot).

## Installation
Run `pip install my_weekly_schedule` for the latest stable version.
### Development
This project uses [Python Poetry]... | PypiClean |
/vec2vec-0.0.5-py3-none-any.whl/vec2vec-0.0.5.dist-info/LICENSE.md | Copyright [2021] [Wangxiang]
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, software
dist... | PypiClean |
/aliceoverwatch-1.3.1.tar.gz/aliceoverwatch-1.3.1/overwatch/webApp/static/bower_components/webcomponentsjs/MutationObserver.min.js | "undefined"==typeof WeakMap&&!function(){var e=Object.defineProperty,t=Date.now()%1e9,r=function(){this.name="__st"+(1e9*Math.random()>>>0)+(t++ +"__")};r.prototype={set:function(t,r){var i=t[this.name];return i&&i[0]===t?i[1]=r:e(t,this.name,{value:[t,r],writable:!0}),this},get:function(e){var t;return(t=e[this.name])... | PypiClean |
/saneyaml-0.6.0.tar.gz/saneyaml-0.6.0/etc/scripts/utils_thirdparty.py | import email
import itertools
import os
import re
import shutil
import subprocess
import tempfile
import time
import urllib
from collections import defaultdict
from urllib.parse import quote_plus
import attr
import license_expression
import packageurl
import requests
import saneyaml
from commoncode import fileutils
fr... | PypiClean |
/python3-ldap-0.9.8.4.tar.gz/python3-ldap-0.9.8.4/ldap3/operation/modify.py |
from .. import SEQUENCE_TYPES, MODIFY_ADD, MODIFY_DELETE, MODIFY_REPLACE, MODIFY_INCREMENT
from ..protocol.rfc4511 import ModifyRequest, LDAPDN, Changes, Change, Operation, PartialAttribute, AttributeDescription, Vals, ResultCode
from ..operation.bind import referrals_to_list
from ..protocol.convert import changes_to_... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/education/users/item/assignments/item/categories/item/ref/ref_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 |
/django-url-filter-fixed-0.3.15.tar.gz/django-url-filter-fixed-0.3.15/docs/big_picture.rst | Big Picture
===========
This document explains all of the concepts used in Django URL Filter
in context hence providing a "big picture" of how it works.
Basics
------
In order to filter any data, this library breaks the process
into 3 phases:
1. Parse the URL querystring into :class:`.LookupConfig`
2. Loop through ... | PypiClean |
/TensorParallel-1.0.1.tar.gz/TensorParallel-1.0.1/petals_local_parallel/slicing_configs.py | from slicer_wrapper import SlicingConfig
SLICING_CONFIGS = {
"bigscience/bloom-560m": SlicingConfig(
{
".*self_attention\.query_key_value\.(weight|bias)": "vertical",
".*self_attention\.dense\.(weight|bias)": "horizontal",
".*mlp\.dense_h_to_4h\.(weight|bias)": "vertical",
".*mlp\.d... | PypiClean |
/aws-cfn-ses-domain-0.4.tar.gz/aws-cfn-ses-domain-0.4/README.md | # AWS CloudFormation resources for Amazon SES domain and email identities
AWS [CloudFormation][] provides several built-in
[Amazon SES resource types][cfn-ses-resources], but is oddly missing the ones
most needed to get going with SES: **domain and email verification**.
This package implements those missing types ... | PypiClean |
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/conversation/default_agent.py | from __future__ import annotations
import asyncio
from collections import defaultdict
from collections.abc import Awaitable, Callable, Iterable
from dataclasses import dataclass
import functools
import logging
from pathlib import Path
import re
from typing import IO, Any
from hassil.intents import Intents, ResponseTy... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/InsLiability.py | import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.InsOption import InsOption
from alipay.aop.api.domain.InsSumInsured import InsSumInsured
class InsLiability(object):
def __init__(self):
self._coverage = None
self._disabled = None
self._iop = Non... | PypiClean |
/cubicweb-bootstrap-2.0.0.tar.gz/cubicweb-bootstrap-2.0.0/cubicweb_bootstrap/views/formrenderers.py | """bootstrap implementation of formrenderers"""
__docformat__ = "restructuredtext en"
from warnings import warn
from logilab.common.decorators import monkeypatch
from logilab.mtconverter import xml_escape
from cubicweb import tags
from cubicweb.utils import support_args
from cubicweb_web.views import formrenderers
... | PypiClean |
/ha_JPype1-2.6.6.tar.gz/ha_JPype1-2.6.6/jpype/_jarray.py | import collections
import sys
import _jpype
from . import _jclass
from . import _jwrapper
if sys.version > '3':
unicode = str
irange = range
_CLASSES = {}
_CUSTOMIZERS = []
def _initialize():
_jpype.setResource('JavaArrayClass',_JavaArrayClass)
_jpype.setResource('GetJavaArrayClassMethod',_getClassF... | PypiClean |
/etuples-0.3.9.tar.gz/etuples-0.3.9/README.md | # `etuples`
[](https://github.com/pythological/etuples/actions/workflows/tests.yml) [](https://coveralls.io/github/pythological/etuples?b... | PypiClean |
/energyplus_regressions-2.0.3-py3-none-any.whl/energyplus_regressions/builds/visualstudio.py | import os
from energyplus_regressions.builds.base import BaseBuildDirectoryStructure
class CMakeCacheVisualStudioBuildDirectory(BaseBuildDirectoryStructure):
"""
A Visual Studio based build directory class
This tries to use a "Release" folder, but if it does not exist it tries to fall back to a "Debug" f... | PypiClean |
/dsin100daysv28-6.0.1.tar.gz/dsin100daysv28-6.0.1/notebook/static/components/MathJax/extensions/a11y/mathmaps/es/symbols/latin-mathfonts-bold.js | [{"locale":"es"},{"category":"Lu","mappings":{"default":{"default":"negrita mayúscula A"}},"key":"1D400"},{"category":"Lu","mappings":{"default":{"default":"negrita mayúscula B"}},"key":"1D401"},{"category":"Lu","mappings":{"default":{"default":"negrita mayúscula C"}},"key":"1D402"},{"category":"Lu","mappings":{"defaul... | PypiClean |
/nengolib-0.5.2.tar.gz/nengolib-0.5.2/.eggs/numpy-1.16.4-py3.7-linux-x86_64.egg/numpy/distutils/command/build_clib.py | from __future__ import division, absolute_import, print_function
import os
from glob import glob
import shutil
from distutils.command.build_clib import build_clib as old_build_clib
from distutils.errors import DistutilsSetupError, DistutilsError, \
DistutilsFileError
from numpy.distutils import log
from distutils... | PypiClean |
/SparseCOOTensorMulPyTorch-0.0.1.tar.gz/SparseCOOTensorMulPyTorch-0.0.1/.eggs/torch-1.9.0-py3.8-win-amd64.egg/torch/distributed/argparse_util.py |
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import os
from argparse import Action
class env(Action):
"""
Gets argument values from ``PET_{dest}`` b... | PypiClean |
/abcpmc-0.1.2.tar.gz/abcpmc-0.1.2/docs/abcpmc.rst | abcpmc Package
==============
:mod:`sampler` Module
---------------------
.. autoclass:: abcpmc.sampler.Sampler
:members:
.. autoclass:: abcpmc.sampler.GaussianPrior
:members:
.. autoclass:: abcpmc.sampler.TophatPrior
:members:
.. autoclass:: abcpmc.sampler.ParticleProposal
:members:
.. autoclass:... | PypiClean |
/hydratk-0.6.0.tar.gz/hydratk-0.6.0/doc/rst/module/hydra/lib/string.rst | .. _module_hydra_lib_string:
string
======
This sections contains module documentation of string modules.
operation
^^^^^^^^^
Module provides methods for operations with string.
Unit tests available at hydratk/lib/string/operation/01_methods_ut.jedi
* mreplace
Method replaces string occurrences with new values (d... | PypiClean |
/3q-0.1.6.tar.gz/3q-0.1.6/qqq/github.py | from typing import Union, Dict
import requests
from requests.auth import HTTPBasicAuth
class GitHub:
_api_base_url = 'https://api.github.com'
def __init__(self, username, token):
self.username = username
self.token = token
@classmethod
def verify_token(cls, username: str, token: str... | PypiClean |
/napalm-yang-0.1.0.tar.gz/napalm-yang-0.1.0/napalm_yang/models/openconfig/network_instances/network_instance/mpls/lsps/constrained_path/tunnels/tunnel/bandwidth/__init__.py | from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.ya... | PypiClean |
/tinyq-0.3.0.tar.gz/tinyq-0.3.0/tinyq/worker.py | import abc
import multiprocessing
import logging
import random
import threading
import time
from tinyq.exceptions import JobFailedError
from tinyq.job import Job
logger = logging.getLogger(__name__)
class BaseWorker(metaclass=abc.ABCMeta):
@abc.abstractmethod
def run_once(self):
pass
@abc.abst... | PypiClean |
/torcheval_nightly-2023.9.2-py3-none-any.whl/torcheval/metrics/functional/text/word_information_preserved.py |
from typing import List, Tuple, Union
import torch
from torcheval.metrics.functional.text.helper import _get_errors_and_totals
@torch.inference_mode()
def word_information_preserved(
input: Union[str, List[str]],
target: Union[str, List[str]],
) -> torch.Tensor:
"""
Compute the word information pre... | PypiClean |
/e2eAIOK-ModelAdapter-1.1.1b2023042803.tar.gz/e2eAIOK-ModelAdapter-1.1.1b2023042803/e2eAIOK/common/trainer/model_builder.py | import logging
import e2eAIOK.common.trainer.utils.utils as utils
import os
import torch
import e2eAIOK.common.trainer.utils.extend_distributed as ext_dist
from e2eAIOK.common.trainer.utils.utils import get_device
class ModelBuilder():
"""
The basic model builder class for all models
Note:
You sho... | PypiClean |
/blackduck-1.1.0.tar.gz/blackduck-1.1.0/README.md | # Overview
The hub-rest-api-python provides Python bindings for Hub REST API.
# Paging and Black Duck v2022.2
In v2022.2 of Black Duck the REST API introduced a max page size to protect system resource usage. See the Black Duck [release notes on Synopsys Community](https://community.synopsys.com/s/article/Black-Duck... | PypiClean |
/ganga-8.6.7.tar.gz/ganga-8.6.7/doc/manuals/src/GUI_User_Manual/gangagui-manual-contents.rst | =====================
GANGA GUI User Manual
=====================
:Author: Chun Lik Tan (clat@hep.ph.bham.ac.uk)
:Instituition: University of Birmingham
:Version: 1.1.x
:Ganga Version: 4.1.x
:Modified: 9 March 2006
:Bugs: Report bugs to Savannah_
:Website: http://ganga.web.cern.ch
-... | PypiClean |
/django_enum-1.2.1-py3-none-any.whl/django_enum/forms.py | from enum import Enum
from typing import Any, Iterable, List, Optional, Tuple, Type, Union
from django.core.exceptions import ValidationError
from django.forms.fields import Field, TypedChoiceField
from django.forms.widgets import Select
from django_enum.choices import choices as get_choices
from django_enum.choices i... | PypiClean |
/gu-django-tinymce-2.7.2.tar.gz/gu-django-tinymce-2.7.2/tinymce/static/tiny_mce/plugins/style/langs/hy_dlg.js | tinyMCE.addI18n('hy.style_dlg',{"text_lineheight":"\u054f\u0578\u0572\u056b \u0562\u0561\u0580\u0571\u0580\u0578\u0582\u0569\u0575\u0578\u0582\u0576","text_variant":"Variant","text_style":"\u0548\u0573","text_weight":"\u0540\u0561\u057d\u057f\u0578\u0582\u0569\u0575\u0578\u0582\u0576","text_size":"\u0549\u0561\u0583\u0... | PypiClean |
/mitosheet3-0.3.281.tar.gz/mitosheet3-0.3.281/mitosheet/step_performers/fill_na.py |
# Copyright (c) Saga Inc.
# Distributed under the terms of the GPL License.
from copy import copy
from time import perf_counter
from typing import Any, Dict, List, Optional, Set, Tuple
import pandas as pd
from mitosheet.code_chunks.code_chunk import CodeChunk
from mitosheet.code_chunks.step_performers.fill_na_code_c... | PypiClean |
/nlu_bf-4.8.tar.gz/nlu_bf-4.8/nlu_bf/cli/arguments/run.py | import argparse
from nlu_bf.cli.arguments.default_arguments import add_model_param, add_endpoint_param
from nlu_bf.core import constants
def set_run_arguments(parser: argparse.ArgumentParser):
add_model_param(parser)
add_server_arguments(parser)
def set_run_action_arguments(parser: argparse.ArgumentParser)... | PypiClean |
/ReviewBoard-5.0.5-py3-none-any.whl/reviewboard/htdocs/static/rb/js/utils/apiUtils.js | "use strict";
/**
* jQuery AJAX transport for receiving Blob and ArrayBuffer data.
*
* XMLHttpRequest2 supports receiving binary data represented by
* :js:class:`Blob` and :js:class:`ArrayBuffer`. This transport enabled binary
* data support through standard :js:func:`jQuery.ajax` calls.
*/
$.ajaxTransport('arra... | PypiClean |
/lklcom-0.5.3.tar.gz/lklcom-0.5.3/likelihood_combiner/cluster.py | import argparse
import yaml
import os
import likelihood_combiner as lklcom
from likelihood_combiner.combiner import combiner
from likelihood_combiner.utils import *
__all__ = [
'run_cluster'
]
def run_cluster(settings,
channel,
input=None,
output=None,
simulation=0):
"""
R... | PypiClean |
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/tensorflow/core/debug/debug_service_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_in... | PypiClean |
/jdcloud_sdk-1.6.243.tar.gz/jdcloud_sdk-1.6.243/jdcloud_sdk/services/hufu/apis/DeployRequest.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 |
/cosmospy_protobuf-0.3.0.tar.gz/cosmospy_protobuf-0.3.0/src/cosmospy_protobuf/tendermint/types/validator_pb2.py | from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
_sym_db = _symbol_database.Default()
from ...gogoproto import gogo_pb2 as gogopro... | PypiClean |
/mbed-os-tools-0.0.15.tar.gz/mbed-os-tools-0.0.15/test/test/mbed_gt_greentea_dlm.py |
import os
import six
import sys
import tempfile
import unittest
from lockfile import LockFile
from mock import patch
from mbed_os_tools.test import mbed_greentea_dlm
home_dir = tempfile.mkdtemp()
mbed_greentea_dlm.HOME_DIR = home_dir
mbed_greentea_dlm.GREENTEA_HOME_DIR = ".mbed-greentea"
mbed_greentea_dlm.GREENTEA_G... | PypiClean |
/bpy_optix-2.82-cp37-cp37m-win_amd64.whl/bpy_optix-2.82.data/scripts/2.82/scripts/addons/power_sequencer/operators/transitions_remove.py | import bpy
from operator import attrgetter
from .utils.global_settings import SequenceTypes
from .utils.doc import doc_name, doc_idname, doc_brief, doc_description
class POWER_SEQUENCER_OT_transitions_remove(bpy.types.Operator):
"""
Delete a crossfade strip and moves the handles of the input strips to form a... | PypiClean |
/sgl-dair-0.1.5.tar.gz/sgl-dair-0.1.5/sgl/tasks/node_classification.py | import time
import torch
import torch.nn as nn
from torch.optim import Adam
from torch.utils.data import DataLoader
from sgl.tasks.base_task import BaseTask
from sgl.tasks.utils import accuracy, set_seed, train, mini_batch_train, evaluate, mini_batch_evaluate
class NodeClassification(BaseTask):
def __init__(self... | PypiClean |
/tenet-0.6.tar.gz/tenet-0.6/README.md | # TenetAPI
## Description
This is a Python module for the ISP TeNeT API.
## Usage:
```
>>> from tenet import TenetAccount
>>> from tenet.utils import sizeof_fmt
>>> TenetAccount()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "tenet/__init__.py", line 34, in __init__
"Usage: Tene... | PypiClean |
/pytest-readme-1.0.1.tar.gz/pytest-readme-1.0.1/README.md | pytest-readme
=============
A pytest plugin to pull out tests from your README.md into pytest automatically. This will make it easy to make sure your readme doesn't contain any errors.
Usage
=====
First `pip install pytest-readme`, then create a `conftest.py` file in the same directory as your README.md and put the ... | PypiClean |
/vedo-2023.4.6.tar.gz/vedo-2023.4.6/examples/basic/cut_freehand.py | # The tool can also be invoked from command line e.g.: > vedo --edit mesh.ply
import vedo
from vedo.applications import FreeHandCutPlotter
#### This class is a simplified version of the above, shown here as an example: #######
#
# class FreeHandCutPlotter(vedo.Plotter):
# def __init__(self, mesh):
# vedo.P... | PypiClean |
/tvb_bids_monitor-2.8.1-py3-none-any.whl/tvb/config/logger/elasticsearch_handler.py | import json
from logging import Handler, LogRecord, getLogger, ERROR
from logging.handlers import QueueListener, QueueHandler
from queue import Queue
from tvb.basic.profile import TvbProfile
if not TvbProfile.current.TRACE_USER_ACTIONS:
class ElasticQueueHandler(Handler):
def emit(self, record: LogRecord... | PypiClean |
/opentsdb_py-0.6.0-py3-none-any.whl/opentsdb/push_thread.py | from logging import getLogger
from queue import Empty
import threading
import random
import time
logger = getLogger('opentsdb-py')
class PushThread(threading.Thread):
WAIT_NEXT_METRIC_TIMEOUT = 3
def __init__(self, tsdb_connect, metrics_queue, close_client,
send_metrics_limit, send_metrics... | PypiClean |
/fprime_gds-3.3.2.tar.gz/fprime_gds-3.3.2/src/fprime_gds/common/encoders/file_encoder.py | import struct
from fprime.common.models.serialize.numerical_types import U32Type
from fprime.constants import DATA_ENCODING
from fprime_gds.common.data_types.file_data import FilePacketType
from fprime_gds.common.utils.data_desc_type import DataDescType
from . import encoder
class FileEncoder(encoder.Encoder):
... | PypiClean |
/sphinxcontrib-video-0.2.0.tar.gz/sphinxcontrib-video-0.2.0/README.rst | sphinxcontrib-video
===================
.. image:: https://img.shields.io/badge/License-Apache%202.0-yellow.svg
:target: https://github.com/sphinx-contrib/video/blob/master/LICENSE
:alt: License: MIT
.. image:: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg
:target: https://convention... | PypiClean |
/django-sysace-1.2.8.tar.gz/django-sysace-1.2.8/ace/static/js/tinymce/plugins/bbcode/plugin.min.js | !function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(e){var t=this,n=e.getParam("bbcode_dialect","punbb").toLowerCase();e.on("beforeSetContent",function(e){e.content=t["_"+n+"_bbcode2html"](e.content)}),e.on("postProcess",function(e){e.set&&(e.content=t["_"+n+"_bbcode2html"](e.content)),e.get&&(e.co... | PypiClean |
/perin_parser-0.0.12.tar.gz/perin_parser-0.0.12/perin_parser/model/head/abstract_head.py |
import torch
import torch.nn as nn
import torch.nn.functional as F
from perin_parser.model.module.edge_classifier import EdgeClassifier
from perin_parser.model.module.anchor_classifier import AnchorClassifier
from perin_parser.model.module.padding_packer import PaddingPacker
from perin_parser.model.module.mixture_of_... | PypiClean |
/pylibcugraph-cu12-23.8.0.tar.gz/pylibcugraph-cu12-23.8.0/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 |
/volatility261-2.6.2.tar.gz/volatility261-2.6.2/volatility/plugins/malware/cmdhistory.py |
import volatility.obj as obj
import volatility.plugins.common as common
import volatility.utils as utils
import volatility.win32.tasks as tasks
import volatility.debug as debug
from volatility.renderers import TreeGrid
from volatility.renderers.basic import Address, Hex
MAX_HISTORY_DEFAULT = 50
#--------------------... | PypiClean |
/fp-NGFW-SMC-python-monitoring-1.5.0.tar.gz/fp-NGFW-SMC-python-monitoring-1.5.0/smc_monitoring/monitors/vpns.py | from smc_monitoring.models.query import Query
from smc_monitoring.models.constants import LogField
from smc.base.model import prepared_request
from smc.api.exceptions import DeleteElementFailed
class VPNSAQuery(Query):
"""
Show all current VPN SA's on the specified target.
:ivar list field_ids: field IDs... | PypiClean |
/Marine_Traffic_API-0.20.1-py3-none-any.whl/marinetrafficapi/fields.py | from datetime import datetime
from typing import Any, Union, List, Tuple
from marinetrafficapi.constants import BoolConst, MiscConst
class Field:
"""Abstract field class."""
def __init__(self, index: Union[int, str],
desc: str = None, **kwargs):
self._index = index
self._kwa... | PypiClean |
/UPY-0.35.1.tar.gz/UPY-0.35.1/upy/contrib/cked/static/cked/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","pt-br",{title:"Instruções de Acessibilidade",contents:"Conteúdo da Ajuda. Para fechar este diálogo pressione ESC.",legend:[{name:"Geral... | PypiClean |
/gammapy-1.1.tar.gz/gammapy-1.1/docs/release-notes/v0.11.rst | .. _gammapy_0p11_release:
0.11 (Mar 29, 2019)
-------------------
Summary
~~~~~~~
- Released Mar 29, 2019
- 11 contributors
- 2 months of work
- 65 pull requests (not all listed below)
What's new?
~~~~~~~~~~~
Gammapy v0.11 implements a large part of the new joint-likelihood fitting
framework proposed in `PIG 8 - d... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/cloud_pc_health_check_item.py | from __future__ import annotations
from datetime import datetime
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from . import cloud_pc_connectivity_event_resul... | PypiClean |
/packagetest112-0.112.tar.gz/packagetest112-0.112/devdoo/yaml/__init__.py | from error import *
from tokens import *
from events import *
from nodes import *
from loader import *
from dumper import *
__version__ = '3.12'
try:
from cyaml import *
__with_libyaml__ = True
except ImportError:
__with_libyaml__ = False
def scan(stream, Loader=Loader):
"""
Scan a YAML stream ... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/relay/list_hybrid_connection_keys.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'ListHybridConnectionKeysResult',
'AwaitableListHybridConnectionKeysResult',
'list_hybrid_connection_keys',
'list_hybrid_connection... | PypiClean |
/ul_py_tool-1.15.37-py3-none-any.whl/ul_py_tool/utils/step.py | import contextlib
import io
import os
import shutil
import subprocess
import sys
import traceback
from typing import Generator, List, Optional, Callable, Union, Dict, Set, NamedTuple
from ul_py_tool.commands.conf import MAX_LINE_LEN
from ul_py_tool.utils.arg_files_glob import arg_file_info
from ul_py_tool.utils.colors... | PypiClean |
/cuml-cu12-23.8.0.tar.gz/cuml-cu12-23.8.0/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 |
/dsin100days603v37-6.0.3.tar.gz/dsin100days603v37-6.0.3/notebook/static/components/codemirror/src/util/StringStream.js | import { countColumn } from "./misc.js"
// STRING STREAM
// Fed to the mode parsers, provides helper functions to make
// parsers more succinct.
class StringStream {
constructor(string, tabSize, lineOracle) {
this.pos = this.start = 0
this.string = string
this.tabSize = tabSize || 8
this.lastColumn... | PypiClean |
/iredis_bin-1.9.4-cp310-cp310-manylinux2010_x86_64.whl/iredis_bin-1.9.4.data/scripts/lib/multiprocessing/reduction.py |
from abc import ABCMeta
import copyreg
import functools
import io
import os
import pickle
import socket
import sys
from . import context
__all__ = ['send_handle', 'recv_handle', 'ForkingPickler', 'register', 'dump']
HAVE_SEND_HANDLE = (sys.platform == 'win32' or
(hasattr(socket, 'CMSG_LEN') and... | PypiClean |
/netbox-lifecycle-1.0.0b3.tar.gz/netbox-lifecycle-1.0.0b3/netbox_lifecycle/migrations/0007_alter_hardwarelifecycle_options_and_more.py |
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.functions.text
class Migration(migrations.Migration):
dependencies = [
('dcim', '0171_cabletermination_change_logging'),
('netbox_lifecycle', '0006_alter_supportcontractassignment_assigned_object_ty... | PypiClean |
/agx.generator.zca-1.0a1.tar.gz/agx.generator.zca-1.0a1/src/agx/generator/zca/utils.py | import os
from agx.core import (
handler,
Scope,
registerScope,
token
)
from node.ext.zcml import (
ZCMLNode,
ZCMLFile,
SimpleDirective,
ComplexDirective,
)
from node.ext.uml.utils import (
TaggedValues,
UNSET,
)
confname = 'configure.zcml'
def relpath(self,other):
asser... | PypiClean |
/wmagent-2.2.4rc3.tar.gz/wmagent-2.2.4rc3/src/python/WMCore/WMSpec/StdSpecs/PromptReco.py | from __future__ import division
from future.utils import viewitems
from Utils.Utilities import makeList, strToBool
from WMCore.Lexicon import procstringT0
from WMCore.WMSpec.StdSpecs.DataProcessing import DataProcessing
class PromptRecoWorkloadFactory(DataProcessing):
"""
_PromptRecoWorkloadFactory_
Sta... | PypiClean |
/fhir_types-0.2.4-py3-none-any.whl/fhir_types/FHIR_Account_Coverage.py | from typing import Any, List, Literal, TypedDict
from .FHIR_Element import FHIR_Element
from .FHIR_positiveInt import FHIR_positiveInt
from .FHIR_Reference import FHIR_Reference
from .FHIR_string import FHIR_string
# A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used ... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_23/models/resource_performance_no_id_by_array_get_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_23 import models
class ResourcePerformanceNoIdByArrayGetResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
... | PypiClean |
/spectral-libraries-1.1.3.tar.gz/spectral-libraries-1.1.3/spectral_libraries/qps/externals/pyqtgraph/widgets/FeedbackButton.py | from ..Qt import QtCore, QtGui
__all__ = ['FeedbackButton']
class FeedbackButton(QtGui.QPushButton):
"""
QPushButton which flashes success/failure indication for slow or asynchronous procedures.
"""
### For thread-safetyness
sigCallSuccess = QtCore.Signal(object, object, object)
sigC... | PypiClean |
/skymonitor-0.0.16.tar.gz/skymonitor-0.0.16/public/communicate.py |
import os
import sys
import hashlib
sys.path.append("..")
import zmq
PROC_TYPE_INPROC = "inproc://" #local in-process (inter-thread) communication transport, see zmq_inproc(7)
PROC_TYPE_IPC = "ipc://" #local inter-process communication transport, see zmq_ipc(7)
PROC_TYPE_TCP = "tcp://" #unicast transp... | PypiClean |
/golem-0.99b.tar.gz/golem-0.99b/examples/remoterdf.py |
# Copyright (c) 2006-2008 Andrew Walkingshaw <andrew@lexical.org.uk>
# except XSLT components: copyright (c) 2005-2008 Toby White <tow@uszla.me.uk>
# and (c) 2007-2008 Andrew Walkingshaw <andrew@lexical.org.uk>
#
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person ob... | PypiClean |
/kiwitcms-12.4.tar.gz/kiwitcms-12.4/tcms/node_modules/moment/src/locale/ml.js |
import moment from '../moment';
export default moment.defineLocale('ml', {
months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
'_'
),
monthsShort:
'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
... | PypiClean |
/abqpy-2023.5.6-py3-none-any.whl/abaqus/Load/SurfaceConcentrationFlux.py | from __future__ import annotations
from typing_extensions import Literal
from abqpy.decorators import abaqus_class_doc, abaqus_method_doc
from ..Region.Region import Region
from ..UtilityAndView.abaqusConstants import UNIFORM, UNSET, SymbolicConstant
from ..UtilityAndView.abaqusConstants import abaqusConstants as C
... | PypiClean |
/sap_computer_vision_package-1.1.7-py3-none-any.whl/sap_computer_vision/modelling/backbones/timm_backbones.py | import logging
from typing import Union, List, Dict
import torch
from detectron2.modeling import BACKBONE_REGISTRY, Backbone
from detectron2.layers import ShapeSpec
from detectron2.modeling.backbone.fpn import LastLevelMaxPool, FPN
try:
import timm
_timm_available = True
except ImportError:
_timm_availabl... | PypiClean |
/contenda_api_client-0.1.1-py3-none-any.whl/contenda_api_client/models/http_validation_error.py | from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
import attr
from ..types import UNSET, Unset
if TYPE_CHECKING:
from ..models.validation_error import ValidationError
T = TypeVar("T", bound="HTTPValidationError")
@attr.s(auto_attribs=True)
class HTTPValidationError:
"""
Attribut... | PypiClean |
/wapiti3-3.1.8-py3-none-any.whl/wapitiCore/definitions/file.py |
# This file is part of the Wapiti project (https://wapiti-scanner.github.io)
# Copyright (C) 2021-2023 Nicolas Surribas
#
# This program 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 of the... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-tex.js | ace.define("ace/mode/tex_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var lang = require("../lib/lang");
var TextHighlightRules = require("./text_highlight_rules").TextHi... | PypiClean |
/peer-0.26.0.tar.gz/peer-0.26.0/doc/domains.rst |
Domain management
=================
Basically, a domain in this system consists of the string representation of
a DNS domain, and a reference to a user, the owner of the domain. It also
has a *verified* mark, the semantics of which will be explained below. Any
user can have any number of domains.
In the user profile... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/drives/item/root/create_upload_session/create_upload_session_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 |
/python-sources-3.10.5.tar.gz/python-sources-3.10.5/Python-3.10.5/Doc/library/argparse.rst | :mod:`argparse` --- Parser for command-line options, arguments and sub-commands
===============================================================================
.. module:: argparse
:synopsis: Command-line option and argument parsing library.
.. moduleauthor:: Steven Bethard <steven.bethard@gmail.com>
.. sectionaut... | PypiClean |
/celery-yywing-4.4.7.tar.gz/celery-yywing-4.4.7/celery/utils/graph.py | """Dependency graph implementation."""
from __future__ import absolute_import, print_function, unicode_literals
from collections import Counter
from textwrap import dedent
from kombu.utils.encoding import bytes_to_str, safe_str
from celery.five import items, python_2_unicode_compatible
__all__ = ('DOT', 'CycleError... | PypiClean |
/ciefunctions-1.0.2.tar.gz/ciefunctions-1.0.2/tc1_97/MathJax-2.7.5/jax/output/HTML-CSS/fonts/STIX-Web/Latin/Italic/Main.js | MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["STIXMathJax_Latin-italic"]={directory:"Latin/Italic",family:"STIXMathJax_Latin",style:"italic",testString:"\u00A0\u00A1\u00A2\u00A4\u00A6\u00A9\u00AA\u00AB\u00AD\u00B2\u00B3\u00B6\u00B8\u00B9\u00BA",32:[0,0,250,0,0],160:[0,0,250,0,0],161:[474,205,389,59,321],162:[560,143,50... | PypiClean |
/certora_cli_alpha_shays_CERT_1717_b-20230517.14.20.616146-py3-none-any.whl/certora_cli/EVMVerifier/certoraBuild.py | import enum
import json
import logging
import os
import re
import shutil
import sys
import typing
from collections import OrderedDict
from enum import Enum
from functools import lru_cache, reduce
from pathlib import Path
from typing import Any, Dict, List, Tuple, Optional, Set, BinaryIO, Iterator
from Crypto.Hash impor... | PypiClean |
/openerp-web-7.0.406.tar.gz/openerp-web-7.0.406/static/lib/spinjs/spin.js | !function(window, document, undefined) {
/**
* Copyright (c) 2011 Felix Gnass [fgnass at neteye dot de]
* Licensed under the MIT license
*/
var prefixes = ['webkit', 'Moz', 'ms', 'O'] /* Vendor prefixes */
, animations = {} /* Animation rules keyed by their name */
, useCssAnimations
/**
* ... | PypiClean |
/luminos-0.3.8.tar.gz/luminos-0.3.8/data/vendor/js/bootstrap.min.js | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,function(t,g,u){"use strict";function i(t,e){for(var n=0;n<e.length;n... | PypiClean |
/bratabase-social-auth-backend-0.1.2.tar.gz/bratabase-social-auth-backend-0.1.2/CONTRIBUTING.rst | ============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com/bratabase/bratabase-... | PypiClean |
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/SupervisedLearning/ScikitLearn/LinearModel/SGDRegressor.py | #Internal Modules (Lazy Importer)--------------------------------------------------------------------
#Internal Modules (Lazy Importer) End----------------------------------------------------------------
#External Modules------------------------------------------------------------------------------------
#External Mod... | PypiClean |
/assassin-api-0.0.2.tar.gz/assassin-api-0.0.2/src/assassin_api/api.py | from uuid import uuid4
import requests
from requests.api import head
from assassin_api.validators import CreateAssetTypeValidator
from .decorators import api_exceptions_handler
from .exceptions import *
class ApiRequest(object):
session = None
URL = None
def __init__(self, session):
self.session... | PypiClean |
/ebay_api_zs-0.24.tar.gz/ebay_api_zs-0.24/ebay/order/serializers/api/order.py | from ebay.data import enums
from ebay.order import models
from ebay.order.serializers.api import (
CancelStatusSerializer,
FulfillmentStartInstructionSerializer,
LineItemSerializer,
PaymentSummarySerializer,
PricingSummarySerializer,
)
from ebay.order.serializers.api.helpers import (
update_or_c... | PypiClean |
/safegate_pro-2021.7.6-py3-none-any.whl/homeassistant/components/plex/server.py | import logging
import ssl
import time
from urllib.parse import urlparse
from plexapi.client import PlexClient
from plexapi.exceptions import BadRequest, NotFound, Unauthorized
import plexapi.myplex
import plexapi.playqueue
import plexapi.server
from requests import Session
import requests.exceptions
from homeassistan... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.