id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/django-advanced-report-builder-0.5.6.tar.gz/django-advanced-report-builder-0.5.6/advanced_report_builder/static/advanced_report_builder/chart-js/js/chartjs-plugin-datalabels.min.js | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("chart.js/helpers"),require("chart.js")):"function"==typeof define&&define.amd?define(["chart.js/helpers","chart.js"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).ChartDataLabels=e(t.Chart.helpers,t.Chart)}(this,(fu... | PypiClean |
/django-discord-bind-0.2.0.zip/django-discord-bind-0.2.0/discord_bind/admin.py | from django.contrib import admin
from .models import DiscordUser, DiscordInvite
@admin.register(DiscordUser)
class DiscordUserAdmin(admin.ModelAdmin):
list_display = ('user',
'uid',
'username',
'discriminator',
'email')
list_displ... | PypiClean |
/dione-0.0.6.tar.gz/dione-0.0.6/README.rst | .. _start-quick:
########################################################
DIONE:
########################################################
|pypi_ver| |travis_status| |cover_status| |docs_status|
|dependencies| |github_issues| |python_ver| |proj_license|
:release: 0.0.6
:date: 2022-02-14 11:30:00
:reposi... | PypiClean |
/wa_simulator-2.3.7-py3-none-any.whl/wa_simulator/environment.py | from abc import abstractmethod # Abstract Base Class
# WA Simulator
from wa_simulator.base import WABase
from wa_simulator.core import WAVector
from wa_simulator.track import create_track_from_json
from wa_simulator.utils import _load_json, _check_field, get_wa_data_file, _WAStaticAttribute
# Other imports
import di... | PypiClean |
/fds.analyticsapi.engines-5.6.0-py3-none-any.whl/fds/analyticsapi/engines/model/column_statistic_root.py | import re # noqa: F401
import sys # noqa: F401
from fds.analyticsapi.engines.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... | PypiClean |
/hyperframe-6.0.1.tar.gz/hyperframe-6.0.1/CONTRIBUTORS.rst | Hyper is written and maintained by Cory Benfield and various contributors:
Development Lead
````````````````
- Cory Benfield <cory@lukasa.co.uk>
Contributors
````````````
In chronological order:
- Sriram Ganesan (@elricL)
- Implemented the Huffman encoding/decoding logic.
- Alek Storm (@alekstorm)
- Impleme... | PypiClean |
/ore.yui-0.5.4.tar.gz/ore.yui-0.5.4/src/ore/yui/resources/build/event/event-debug.js | * The CustomEvent class lets you define events for your application
* that can be subscribed to by one or more independent component.
*
* @param {String} type The type of event, which is passed to the callback
* when the event fires
* @param {Object} context The context the event will fire from... | PypiClean |
/colab-superarchives-0.1.0.tar.gz/colab-superarchives-0.1.0/src/colab_superarchives/migrations/0001_initial.py | from __future__ import unicode_literals
from django.db import models, migrations
import hitcounter.models
from django.conf import settings
from django.db import connections
import taggit.managers
sqlmigrate = \
"""
BEGIN;
CREATE TABLE IF NOT EXISTS super_archives_emailaddress (id INTEGER, id2 INTEGER, id3 INTEGE... | PypiClean |
/amaxa-0.9.6.tar.gz/amaxa-0.9.6/README.rst | Amaxa - a multi-object ETL tool for Salesforce
==============================================
|Unit Test Badge| |Integration Test Badge| |Code Coverage Badge| |Black Badge| |PyPI Badge| |Docs Badge|
.. |Unit Test Badge| image:: https://github.com/davidmreed/amaxa/workflows/Feature%20Tests/badge.svg?branch=master
:t... | PypiClean |
/lcyframe_csp-3.7.7.tar.gz/lcyframe_csp-3.7.7/lcyframe/base.py | import sys
import json
import logging
import random
import time
import types
from functools import wraps
from traceback import format_exc
from bson.objectid import ObjectId
from tornado.web import HTTPError
from tornado.web import RequestHandler
from lcyframe.libs import errors
from lcyframe.libs import utils
from lcy... | PypiClean |
/ipydatagrid-1.1.15.tar.gz/ipydatagrid-1.1.15/webpack.config.js | const path = require('path');
const version = require('./package.json').version;
const luminoThemeImages = /^.*@lumino\/default-theme.*.png$/;
const crypto = require('crypto');
// Workaround for loaders using "md4" by default, which is not supported in FIPS-compliant OpenSSL
const cryptoOrigCreateHash = crypto.creat... | PypiClean |
/javascripthon-0.12.tar.gz/javascripthon-0.12/src/metapensiero/pj/transformations/classes.py |
import ast
from ..compat import assign_types, is_py39
from ..processor.util import controlled_ast_walk, get_assign_targets
from ..js_ast import (
JSAssignmentExpression,
JSAttribute,
JSBinOp,
JSCall,
JSClass,
JSDict,
JSExpressionStatement,
JSList,
JSMultipleArgsOp,
JSName,
... | PypiClean |
/loop_step-2023.4.24.tar.gz/loop_step-2023.4.24/docs/developer_guide/installation.rst | .. highlight:: shell
============
Installation
============
Stable release
--------------
To install the Loop plug-in, run this command in your terminal:
.. code-block:: console
$ pip install loop_step
This is the preferred method to install Loop
plug-in, as it will always install the most recent stable rele... | PypiClean |
/daas-0.0.1.tar.gz/daas-0.0.1/mesh/prsim/context.py |
import threading
from abc import ABC, abstractmethod
from enum import Enum
from typing import Any, Dict, Generic, Deque, Optional, List
import mesh.log as log
from mesh.kinds.location import Location, Principal
from mesh.macro import T
class RunMode(Enum):
ROUTINE = 1
"""
正常模式
"""
PERFORM = 2
... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/mkdirp/index.js | var path = require('path');
var fs = require('fs');
var _0777 = parseInt('0777', 8);
module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
function mkdirP (p, opts, f, made) {
if (typeof opts === 'function') {
f = opts;
opts = {};
}
else if (!opts || typeof opts !== 'object') {
... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/powerplatform/v20201030preview/get_private_endpoint_connection.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetPrivateEndpointConnectionResult',
'AwaitableGetPrivateEndpointConnectionResult',
'get_private_endpoint_connection',
]
@p... | PypiClean |
/mopidy-pidi-1.0.4.tar.gz/mopidy-pidi-1.0.4/mopidy_pidi/frontend.py | import logging
import os
import threading
import time
import pykka
import requests
from mopidy import core
import netifaces
from . import Extension
from .brainz import Brainz
logger = logging.getLogger(__name__)
class PiDiConfig:
def __init__(self, config=None):
self.rotation = config.get("rotation", ... | PypiClean |
/bravo1996-1.5-py3-none-any.whl/commons/config.py | import json
import os
import pkg_resources
import sys
import click
import configparser
import utils.logger as logger
config = configparser.SafeConfigParser()
def get_config_path():
homedir = os.environ.get('HOME', None)
logger.debug("Home Directory: " + homedir)
if not homedir:
logger.log_r(... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/domain/MenuAnalysisData.py | import json
from alipay.aop.api.constant.ParamConstants import *
class MenuAnalysisData(object):
def __init__(self):
self._avg_click_user_cnt = None
self._click_cnt = None
self._click_user_cnt = None
self._date = None
self._menu_type = None
self._name = None
... | PypiClean |
/auquan_toolbox-2.1.92.tar.gz/auquan_toolbox-2.1.92/backtester/dataSource/data_source_utils.py | from backtester.instrumentUpdates import *
from backtester.constants import *
from backtester.logger import *
import os
import os.path
import requests
import re
from time import mktime as mktime
from itertools import groupby
def getCookieForYahoo(instrumentId):
"""Returns a tuple pair of cookie and crumb used in ... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/data/buffer/middleware/priority.py | from typing import Callable, Any, List, Dict, Optional, Union, TYPE_CHECKING
import copy
import numpy as np
import torch
from ding.utils import SumSegmentTree, MinSegmentTree
from ding.data.buffer.buffer import BufferedData
if TYPE_CHECKING:
from ding.data.buffer.buffer import Buffer
class PriorityExperienceRepla... | PypiClean |
/ReviewBoard-5.0.5-py3-none-any.whl/reviewboard/webapi/resources/base_screenshot.py | import os
from django.core.exceptions import PermissionDenied, ObjectDoesNotExist
from django.db.models import Q
from djblets.webapi.decorators import (webapi_login_required,
webapi_response_errors,
webapi_request_fields)
from djblets.webapi... | PypiClean |
/argus-api-client-0.4.3.tar.gz/argus-api-client-0.4.3/src/pyargus/client.py | from __future__ import annotations
from datetime import datetime
from typing import List, TypeVar, Iterator, Callable, Tuple
from urllib.parse import urlparse, parse_qs
from simple_rest_client.models import Response
from . import api
from . import models
__all__ = ["Client"]
IncidentType = TypeVar("IncidentType",... | PypiClean |
/iredis_bin-1.9.4-cp310-cp310-manylinux2010_x86_64.whl/iredis_bin-1.9.4.data/scripts/lib/iredis/data/commands/zdiffstore.md | Computes the difference between the first and all successive input sorted sets
and stores the result in `destination`. The total number of input keys is
specified by `numkeys`.
Keys that do not exist are considered to be empty sets.
If `destination` already exists, it is overwritten.
@return
@integer-reply: the num... | PypiClean |
/iers-0.0.1.tar.gz/iers-0.0.1/README.md | **Author:** [Behrouz Safari](https://astrodatascience.net//)<br/>
**License:** [MIT](https://opensource.org/licenses/MIT)<br/>
# iers
*Analysis data of the International Earth Rotation and Reference Systems Service (IERS)*
## Installation
Install the latest version of *iers* from [PyPI](https://pypi.org/project/ier... | PypiClean |
/aio_dt_protocol-1.2.1.tar.gz/aio_dt_protocol-1.2.1/aio_dt_protocol/domains/network/network.py | from typing import Optional, List
from ...data import DomainEvent
from .types import ConnectionType, LoadNetworkResourcePageResult, Cookie
class Network:
"""
# https://chromedevtools.github.io/devtools-protocol/tot/Network
"""
__slots__ = ("_connection", "enabled")
def __init__(self, conn) -> N... | PypiClean |
/omero-fpbioimage-0.4.1.tar.gz/omero-fpbioimage-0.4.1/omero_fpbioimage/static/fpbioimage/FPBioimage/FPLoader.js |
// Change pathToImages to an absolute path
var link = document.createElement("a");
link.href = fpb.pathToImages;
fpb.pathToImages = (link.protocol+"//"+link.host+link.pathname+link.search+link.hash);
// Get paths in a consistent format: if last character in string is / then remove it!
if (fpb.pathToImages.slice(-1) =... | PypiClean |
/autocare_dlt-0.2.5-py3-none-any.whl/autocare_dlt/core/model/head/ssd_head.py | import math
from typing import List, Optional
import torch
import torchvision
from torch import Tensor, nn
from torch.nn import functional as F
from torchvision.models.detection import _utils as det_utils
from torchvision.models.detection.ssd import (
SSDClassificationHead,
SSDRegressionHead,
)
class SSDHead... | PypiClean |
/gu-django-tinymce-2.7.2.tar.gz/gu-django-tinymce-2.7.2/tinymce/media/tiny_mce/plugins/media/langs/se_dlg.js | tinyMCE.addI18n('se.media_dlg',{list:"Lista",file:"Fil/URL",advanced:"Avancerat",general:"Generellt",title:"Infoga/redigera inb\u00e4ddad media","align_top_left":"Top left","align_center":"Center","align_left":"Left","align_bottom":"Bottom","align_right":"Right","align_top":"Top","qt_stream_warn":"Streamed rtsp resourc... | PypiClean |
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/bgp_instance.py | import re # noqa: F401
import sys # noqa: F401
from cohesity_sdk.cluster.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_typ... | PypiClean |
/tensorflow_cpu-2.14.0rc1-cp311-cp311-macosx_10_15_x86_64.whl/tensorflow/python/distribute/mirrored_strategy.py | """Class MirroredStrategy implementing tf.distribute.Strategy."""
import copy
from tensorflow.python import tf2
from tensorflow.python.distribute import collective_util
from tensorflow.python.distribute import cross_device_ops as cross_device_ops_lib
from tensorflow.python.distribute import cross_device_utils
from te... | PypiClean |
/pygr-0.8.2.tar.gz/pygr-0.8.2/doc/rest/reference/sequtil.rst | :mod:`sequtil` --- Basic sequence utility functions
====================================================
.. module:: sequtil
:synopsis: Basic sequence utility functions.
.. moduleauthor:: Christopher Lee <leec@chem.ucla.edu>
.. sectionauthor:: Christopher Lee <leec@chem.ucla.edu>
Functions for Reading and Writin... | PypiClean |
/kaya_module_sdk-1.9.tar.gz/kaya_module_sdk-1.9/src/data_types/k_time_series.py | import pandas as pd
from typing import TypeVar, Generic
from dataclasses import dataclass
T = TypeVar('T', int, str, bool, float)
@dataclass
class KTimeSeries(Generic[T]):
'''
[ DESCRIPTION ]: Wrapper over pandas.DataFrame that supports four different
types of indices: integers, floats, booleans and... | PypiClean |
/azure_mgmt_containerservice-26.0.0-py3-none-any.whl/azure/mgmt/containerservice/v2022_09_01/models/_models_py3.py |
import datetime
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
from ... import _serialization
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from .. import models as _models
class SubResource(_serialization.Model):
"""Reference to another subresource.
Varia... | PypiClean |
/ctmmodule-1.12-py3-none-any.whl/ctm/power_spectrum/covariances.py | import numpy as np
import mcfit
from mcfit import SphericalBessel as sph
from scipy.integrate import quad
from scipy.interpolate import InterpolatedUnivariateSpline as spline
from scipy.special import spherical_jn
from scipy.interpolate import interp1d as interp
from scipy.misc import derivative
import sys
# Constant... | PypiClean |
/aliyun-python-sdk-polardb-1.8.42.tar.gz/aliyun-python-sdk-polardb-1.8.42/aliyunsdkpolardb/request/v20170801/CreateDBEndpointAddressRequest.py |
from aliyunsdkcore.request import RpcRequest
from aliyunsdkpolardb.endpoint import endpoint_data
class CreateDBEndpointAddressRequest(RpcRequest):
def __init__(self):
RpcRequest.__init__(self, 'polardb', '2017-08-01', 'CreateDBEndpointAddress','polardb')
self.set_method('POST')
if hasattr(self, "endpoint_map... | PypiClean |
/pulumi_gitlab-6.3.0a1692851822.tar.gz/pulumi_gitlab-6.3.0a1692851822/pulumi_gitlab/service_pipelines_email.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = ['ServicePipelinesEmailArgs', 'ServicePipelinesEmail']
@pulumi.input_type
class ServicePipelinesEmailArgs:
def __init__(__self__, *,
... | PypiClean |
/tiamat_pip-1.11.0-py3-none-any.whl/tiamatpip/ext/pip/_internal/req/constructors.py | import logging
import os
import re
from typing import Any, Dict, Optional, Set, Tuple, Union
from pip._vendor.packaging.markers import Marker
from pip._vendor.packaging.requirements import InvalidRequirement, Requirement
from pip._vendor.packaging.specifiers import Specifier
from pip._internal.exceptions import Insta... | PypiClean |
/google-cloud-logging-3.6.0.tar.gz/google-cloud-logging-3.6.0/google/cloud/logging_v2/handlers/structured_log.py | import collections
import json
import logging
import logging.handlers
from google.cloud.logging_v2.handlers.handlers import CloudLoggingFilter
from google.cloud.logging_v2.handlers.handlers import _format_and_parse_message
import google.cloud.logging_v2
from google.cloud.logging_v2._instrumentation import _create_diag... | PypiClean |
/youtube_dlc-2020.11.11.post3.tar.gz/youtube_dlc-2020.11.11.post3/youtube_dlc/extractor/bilibili.py | from __future__ import unicode_literals
import hashlib
import re
from .common import InfoExtractor
from ..compat import (
compat_parse_qs,
compat_urlparse,
)
from ..utils import (
ExtractorError,
int_or_none,
float_or_none,
parse_iso8601,
smuggle_url,
str_or_none,
strip_jsonp,
... | PypiClean |
/sparsegrad-0.0.15.tar.gz/sparsegrad-0.0.15/doc/sparsegrad.rst | sparsegrad package
==================
Subpackages
-----------
.. toctree::
sparsegrad.base
sparsegrad.forward
sparsegrad.impl
sparsegrad.sparsevec
Submodules
----------
sparsegrad\.func module
-----------------------
.. automodule:: sparsegrad.func
:members:
:undoc-members:
:show-inher... | PypiClean |
/crams_reports-1.0.0.tar.gz/crams_reports-1.0.0/crams_reports/serializers/dashboard_serializers.py | from rest_framework import serializers
from crams_contact.serializers.lookup_serializers import DepartmentFlatSerializer
class DashboardProjectListSerializer(serializers.Serializer):
project = serializers.SerializerMethodField()
e_research_body = serializers.SerializerMethodField()
alloc_meta_data = ser... | PypiClean |
/deep_disfluency-0.0.1.tar.gz/deep_disfluency-0.0.1/deep_disfluency/decoder/noisy_channel.py | from __future__ import division
from copy import deepcopy
import math
import os
from deep_disfluency.language_model.ngram_language_model import NgramGraph
from deep_disfluency.language_model.ngram_language_model\
import KneserNeySmoothingModel
_S_ = "<s>" # lm start symbol
_E_ = "</s>" # lm end symbol
def log... | PypiClean |
/fairness-cscheid-0.1.7.tar.gz/fairness-cscheid-0.1.7/fairness/algorithms/kamishima/kamfadm-2012ecmlpkdd/fadm/__init__.py | #==============================================================================
# Module metadata variables
#==============================================================================
__author__ = "Toshihiro Kamishima ( http://www.kamishima.net/ )"
__date__ = "2012/08/25"
__version__ = "1.0.0"
__copyright__ = "Cop... | PypiClean |
/plover_clippy_2-0.0.5.tar.gz/plover_clippy_2-0.0.5/plover_clippy_2/translations/finger_spelling.py | from .retro import Retro
class FingerSpelling:
def __init__(self):
# self._translation_stack = []
self.was_finger_spelling = False
self.retro = Retro()
self.blocking = True
@staticmethod
def isFingerSpelling(translation):
# note pressing #left once keeps glue opera... | PypiClean |
/crawler_framework-0.3.4-py3-none-any.whl/scripts/config.py | import os
import sys
import pickle
import getpass
import virtualenv
from subprocess import Popen, PIPE, call
framework_folder = r'C:\Users\{}\Documents\crawler_framework'.format(getpass.getuser())
database_log_folder = r'{}\logs'.format(framework_folder)
python_path = r'{}\py_config.pkl'.format(framework_folder)
if ... | PypiClean |
/tg-pubsub-0.1.2.tar.gz/tg-pubsub-0.1.2/tg_pubsub/protocol.py | import websockets
from importlib import import_module
from urllib.parse import parse_qs, urlparse
from django.conf import settings
from django.utils.functional import SimpleLazyObject
class FakeRequest(object):
def __init__(self, path, session_key):
from django.contrib.auth.middleware import get_user
... | PypiClean |
/federated_monsters-0.4.0.tar.gz/federated_monsters-0.4.0/docs/code.rst | Documentation
*************
.. automodule:: federated_monsters
federated_monsters.global_vars
==============================
.. automodule:: federated_monsters.global_vars
:members:
federated_monsters.monster
==========================
.. automodule:: federated_monsters.monster
:members:
federated_monster... | PypiClean |
/tsdat-testbed-0.1.0.tar.gz/tsdat-testbed-0.1.0/tsdat/config/attributes.py | import warnings
from pydantic import (
BaseModel,
Extra,
validator,
root_validator,
Field,
StrictStr,
HttpUrl,
)
from pydantic.fields import ModelField
from typing import Any, Dict, Optional
from .utils import get_code_version
class AttributeModel(BaseModel, extra=Extra.allow):
# HAC... | PypiClean |
/python-traceview-0.7.0.tar.gz/python-traceview-0.7.0/traceview/api.py | import logging
import requests
log = logging.getLogger(__name__)
class Api(object):
""" The :class:`Api <Api>` object.
Responsible for making HTTP requests to the TraceView API.
"""
AUTHORITY = "https://api.tv.appneta.com"
VERSION = "api-v2"
__methods = [
'get',
'post',
... | PypiClean |
/dschmidt-cdktf-provider-google_beta-0.1.0.tar.gz/dschmidt-cdktf-provider-google_beta-0.1.0/src/dschmidt_cdktf_provider_google_beta/google_data_loss_prevention_deidentify_template/__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
import constructs
class GoogleDataLossPreventionDeidentifyTemplate(
cdktf.TerraformResource,
metaclass=jsii.JSIIM... | PypiClean |
/pecoret_default_templates-0.0.1-py3-none-any.whl/pecoret_default_templates/vulnerability_templates/ssh-weak-mac-algo/locale/de/description.md | Wie bei den meisten Verschlüsselungsverfahren werden auch bei SSH MAC-Algorithmen verwendet, um die Integrität und Authentizität der Daten zu überprüfen. Ein *MAC-Algorithmus* ist nicht mit einem MAC (Message Authentication Code) zu verwechseln, da es sich um zwei unterschiedliche Komponenten handelt. Der MAC-Algorithm... | PypiClean |
/tiempo_deshima-0.1.17-py3-none-any.whl/tiempo_deshima/Telescope/telescope_transmission.py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm #colormap
#from mpl_toolkits.mplot3d import Axes3D
#import plotly.graph_objects as go
from scipy.ndimage.filters import gaussian_filter
class telescope_transmission(object):
"""
This class is used to calculate the Gaussian with which ... | PypiClean |
/ppdet_notebook-0.4.3.7.tar.gz/ppdet_notebook-0.4.3.7/ppdet/modeling/backbones/mobilenet.py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from paddle import fluid
from paddle.fluid.param_attr import ParamAttr
from paddle.fluid.regularizer import L2Decay
from ppdet.experimental import mixed_precision_global_state
from ppdet.core.workspace import... | PypiClean |
/shortesttrack_tools-0.1.10-py3-none-any.whl/shortesttrack_tools/logger/clients/prototype_client.py | import json
import os
import socket
from datetime import datetime
from typing import Tuple
from pytz import UTC
from shortesttrack_tools.logger.channels import LogChannel
from shortesttrack_tools.logger.clients.base_logger_client import BaseLoggerClient
class PrototypeLoggerClient(BaseLoggerClient):
def __init_... | PypiClean |
/focus_time-1.2.9-py3-none-any.whl/focus/timer_backend.py | import numpy as np
import time
from playsound import playsound
import msvcrt
from datetime import datetime
from pathlib import Path
def focus_query(caption, timeout = 5):
start_time = time.time()
while msvcrt.kbhit(): msvcrt.getche() # Remove keys pressed in the interval
print(caption);
playsound(str(P... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_20/models/protection_group_performance_array.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_20 import models
class ProtectionGroupPerformanceArray(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/@jupyterlab/filebrowser/lib/model.d.ts | import { IChangedArgs } from '@jupyterlab/coreutils';
import { IDocumentManager } from '@jupyterlab/docmanager';
import { Contents, KernelSpec, Session } from '@jupyterlab/services';
import { IStateDB } from '@jupyterlab/statedb';
import { ITranslator } from '@jupyterlab/translation';
import { IIterator, IterableOrArra... | PypiClean |
/TinkerPy-0.2.3.tar.gz/TinkerPy-0.2.3/tinkerpy/__init__.py | import collections
import abc
# Python 2 vs. 3
import sys
PY_VERSION_GT_2 = sys.version_info[0] > 2
del sys
def py2or3(py2, py3):
'''\
Returns one of the given arguments depending on the Python version.
:param py2: The value to return in Python 2.
:param py3: The value to return in Python 3.
:r... | PypiClean |
/Server_messenger-0.1.tar.gz/Server_messenger-0.1/server_packages/server/start_server.py | import argparse
import configparser
import os
import sys
import logging
from server_part.server_packages.log.config_log import config_server_log
from server_part.server_packages.log.config_log.decos import log
from server_part.server_packages.server.server_database import ServerStorage
from server_part.server_packages... | PypiClean |
/PyJoke-0.3.3.tar.gz/PyJoke-0.3.3/pyjoke/KeywordsList.py |
import re
#NaturalLanguageToolKit
from nltk.corpus import stopwords
from nltk.tokenize import *
import nltk
import subprocess
import Parameters
class KeywordsList:
keywords=[]
def __init__(self, sentence, params):
self.keywords = []
self.treetagger=params.treetagger
self.postag=p... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/specialchar/dialogs/lang/cy.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","cy",{euro:"Arwydd yr Ewro",lsquo:"Dyfynnod chwith unigol",rsquo:"Dyfynnod dde unigol",ldquo:"Dyfynnod chwith dwbl",rdquo:"Dyfynnod dde... | PypiClean |
/pai_easycv-0.11.4-py3-none-any.whl/easycv/toolkit/modelscope/pipelines/hand_2d_keypoints_pipeline.py | import os.path
from modelscope.pipelines.builder import PIPELINES
from modelscope.utils.constant import ModelFile, Tasks
from easycv.toolkit.modelscope.metainfo import EasyCVPipelines as Pipelines
from .base import EasyCVPipeline
@PIPELINES.register_module(
Tasks.hand_2d_keypoints, module_name=Pipelines.hand_2d... | PypiClean |
/bottle_suite-0.0.17-py3-none-any.whl/scripts/hello_world.py | from bottle_suite import Resource
from bottle import response, request, redirect
class HelloWorld(Resource):
def __init__(self) -> None:
super().__init__()
self.hello_worlds = [{"hello_id": str(i)} for i in range(10)]
@property
def next_id(self):
return max([i for i in self.hello_... | PypiClean |
/rightfoot-1.3.2-py3-none-any.whl/pypi__urllib3/urllib3/contrib/securetransport.py | from __future__ import absolute_import
import contextlib
import ctypes
import errno
import os.path
import shutil
import socket
import ssl
import threading
import weakref
from .. import util
from ._securetransport.bindings import Security, SecurityConst, CoreFoundation
from ._securetransport.low_level import (
_as... | PypiClean |
/ouija-1.3.1.tar.gz/ouija-1.3.1/README.rst | Ouija
=====
Python relay/proxy server and library to build reliable encrypted TCP/UDP tunnels with entropy control for TCP traffic
|pypi|
.. |pypi| image:: https://badge.fury.io/py/ouija.svg
:target: https://badge.fury.io/py/ouija
:alt: pypi version
Features
--------
* Easy to install, configure and use
* ... | PypiClean |
/cppyy-cling-6.28.0.tar.gz/cppyy-cling-6.28.0/src/interpreter/llvm/src/tools/clang/utils/ClangDataFormat.py | import lldb
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand("type summary add -F ClangDataFormat.SourceLocation_summary clang::SourceLocation")
debugger.HandleCommand("type summary add -F ClangDataFormat.QualType_summary clang::QualType")
debugger.HandleCommand("type summary add -F ClangData... | PypiClean |
/tensorflow_aarch64-2.14.0rc0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tensorflow/python/ops/linalg_ops.py | """Operations for linear algebra."""
import numpy as np
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor as tensor_lib
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import cond
from tensorflow.python.ops ... | PypiClean |
/django_surface_theme-0.0.10-py3-none-any.whl/theme/static/components/moment/locale/de-at.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/galah_python-0.5.0-py3-none-any.whl/galah/show_values.py | import requests
import pandas as pd
from .get_api_url import get_api_url,readConfig
# comment on what this function does later
def show_values(field=None,
verbose=False):
"""
Users may wish to see the specific values within a chosen field, profile or list to narrow queries or understand
m... | PypiClean |
/ffmpegaudiorecord-0.11.tar.gz/ffmpegaudiorecord-0.11/LICENSE.rst |
The MIT License (MIT)
Copyright (c) 2023 Johannes Fischer
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, ... | PypiClean |
/invenio-documents-1.0.0a1.tar.gz/invenio-documents-1.0.0a1/docs/api.rst | ..
This file is part of Invenio.
Copyright (C) 2015 CERN.
Invenio 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
License, or (at your option) any later version.
... | PypiClean |
/rearfloor-1.0.0.tar.gz/rearfloor-1.0.0/README.md | # RearFloor (Background)


RearFloor is a library to make your functions and class methods run in th... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/AlipayOverseasTaxAdvancedCreateModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOverseasTaxAdvancedCreateModel(object):
def __init__(self):
self._doc_id = None
self._extend_param = None
self._identify_account_no = None
self._identify_account_type = None
self._nationality = N... | PypiClean |
/tb-rest-client-3.5.tar.gz/tb-rest-client-3.5/tb_rest_client/api/api_ce/component_descriptor_controller_api.py | # Copyright 2023. ThingsBoard
#
# 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 writi... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/babel-core/lib/transformation/modules/lib/metadata.js | "use strict";
exports.__esModule = true;
exports.ExportDeclaration = ExportDeclaration;
exports.Scope = Scope;
// istanbul ignore next
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnPropert... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/cliui/node_modules/emoji-regex/es2015/index.js | "use strict";
module.exports = () => {
// https://mths.be/emoji
return /\u{1F3F4}(?:\u{E0067}\u{E0062}(?:\u{E0065}\u{E006E}\u{E0067}|\u{E0077}\u{E006C}\u{E0073}|\u{E0073}\u{E0063}\u{E0074})\u{E007F}|\u200D\u2620\uFE0F)|\u{1F469}\u200D\u{1F469}\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\... | PypiClean |
/pmagpy-4.2.114.tar.gz/pmagpy-4.2.114/dialogs/pmag_menu_dialogs.py |
#--------------------------------------------------------------
# converting magnetometer files to MagIC format
#--------------------------------------------------------------
import wx
import os
import sys
import shutil
import subprocess
import wx.grid
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg ... | PypiClean |
/dicom_tools-2.5.tar.gz/dicom_tools-2.5/dicom_tools/pyqtgraph/flowchart/library/Data.py | from ..Node import Node
from ...Qt import QtGui, QtCore
import numpy as np
from .common import *
from ...SRTTransform import SRTTransform
from ...Point import Point
from ...widgets.TreeWidget import TreeWidget
from ...graphicsItems.LinearRegionItem import LinearRegionItem
from . import functions
class ColumnSelectNod... | PypiClean |
/acmen-0.5.0.tar.gz/acmen-0.5.0/docs/raw/changelog.md | # ChangeLog
## v0.5.0
**改为acmen程序包,包含向后不兼容的更改**
## v0.4.2
- 添加代理设置
- 添加http-01挑战处理器
- 添加HandlerSet用于处理不同域名的挑战
- 添加国际化域名(IDN)支持
- 添加DnsPod API
- 添加Aliyun API
## v0.4.1
- 迁移GodaddyDnsHandler
- 修复循环引用错误
## v0.4.0
**重构代码,包含(很多很多)向后不兼容的更改**
- 如果你以前曾使用过AcmeN,请重新阅读文档并重写相关调用。
- **在v1.0.0发布以前,很可能还会有其他不兼容更改**
## v0.3.0
... | PypiClean |
/axiom.top-1.0.0.tar.gz/axiom.top-1.0.0/sympy/polys/domains/pythonrational.py |
import operator
from sympy.core.numbers import Rational, Integer
from sympy.core.sympify import converter
from sympy.polys.polyutils import PicklableWithSlots
from sympy.polys.domains.domainelement import DomainElement
from sympy.printing.defaults import DefaultPrinting
from sympy.utilities import public
@public
cl... | PypiClean |
/antlr4-python2-runtime-thieman-4.10.1.tar.gz/antlr4-python2-runtime-thieman-4.10.1/src/antlr4/atn/ATNState.py |
# The following images show the relation of states and
# {@link ATNState#transitions} for various grammar constructs.
#
# <ul>
#
# <li>Solid edges marked with an ε indicate a required
# {@link EpsilonTransition}.</li>
#
# <li>Dashed edges indicate locations where any transition derived from
# {@link Transition} ... | PypiClean |
/nnabla_rl-0.13.0-py3-none-any.whl/nnabla_rl/algorithms/qrdqn.py |
from dataclasses import dataclass
from typing import Any, Dict, Union
import gym
import numpy as np
import nnabla as nn
import nnabla.solvers as NS
import nnabla_rl.environment_explorers as EE
import nnabla_rl.model_trainers as MT
from nnabla_rl.algorithm import Algorithm, AlgorithmConfig, eval_api
from nnabla_rl.al... | PypiClean |
/geocat.viz-2023.7.0.tar.gz/geocat.viz-2023.7.0/docs/installation.rst | .. currentmodule:: geocat.viz
.. _installation:
Installation
============
This installation guide includes only the GeoCAT-viz installation and build instructions.
Please refer to `GeoCAT Contributor's Guide <https://geocat.ucar.edu/pages/contributing.html>`__ for installation of
the whole GeoCAT project.
Installin... | PypiClean |
/SoSciKit-0.4.0-py3-none-any.whl/soscikit/static/js/popper.min.js | (function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultVie... | PypiClean |
/pytest-7.4.1.tar.gz/pytest-7.4.1/src/_pytest/debugging.py | import argparse
import functools
import sys
import types
import unittest
from typing import Any
from typing import Callable
from typing import Generator
from typing import List
from typing import Optional
from typing import Tuple
from typing import Type
from typing import TYPE_CHECKING
from typing import Union
from _p... | PypiClean |
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/caniuse-lite/data/regions/IS.js | module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"... | PypiClean |
/battlebit_community_server_api-0.1.0-py3-none-any.whl/battlebit_community_server_api/ApiServer.py | import asyncio
import logging
from asyncio import AbstractEventLoop
from typing import Callable, Optional
from battlebit_community_server_api.command.Command import Command
from battlebit_community_server_api.model.OpCodes import OpCodes
from battlebit_community_server_api.service.GameServerCommunicationService import... | PypiClean |
/not_again_ai-0.1.6-py3-none-any.whl/not_again_ai/viz/scatterplot.py | from typing import Optional, Union
import matplotlib.pyplot as plt
import numpy as np
import numpy.typing as npt
import pandas as pd
import seaborn as sns
from not_again_ai.system.files import create_file_dir
from not_again_ai.viz.utils import reset_plot_libs
def scatterplot_basic(
x: Union[list[float], npt.NDA... | PypiClean |
/libSDT9-0.0.0-py3-none-any.whl/lib_code/log_step.py | import sys
import re
import lib_py_parse.utils.parsing_utils as parsing_utils
# [file_src] => [log_step_file_src]
# assume [file_src] is syntactically correct
def log_step_transform(file_src):
# lines = file_src.splitlines()
code_statements = []
index = 0
current_line = ''
# parse all code stateme... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/KoubeiServindustryExerciseMemberphoneSyncRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiServindustryExerciseMemberphoneSyncModel import KoubeiServindustryExerciseMemberphoneSyncModel
class KoubeiServindustryExerciseMemberphoneSyncRequest(object):
def __in... | PypiClean |
/gunicorn-21.0.1.tar.gz/gunicorn-21.0.1/docs/source/deploy.rst | ==================
Deploying Gunicorn
==================
We strongly recommend using Gunicorn behind a proxy server.
Nginx Configuration
===================
Although there are many HTTP proxies available, we strongly advise that you
use Nginx_. If you choose another proxy server you need to make sure that it
buffers... | PypiClean |
/github_poster-2.6.0-py3-none-any.whl/github_poster/loader/duolingo_loader.py | import pendulum
import requests
from github_poster.loader.base_loader import BaseLoader
from github_poster.loader.config import DUOLINGO_CALENDAR_API
class DuolingoLoader(BaseLoader):
unit = "XP"
track_color = "#78C800"
def __init__(self, from_year, to_year, _type, **kwargs):
super().__init__(fr... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/cisco/ucs/plugins/modules/ucs_service_profile_template.py |
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}... | PypiClean |
/ORM-SQLite-0.0.2.tar.gz/ORM-SQLite-0.0.2/orm_sqlite/manager.py |
from .database import Database
from .logger import child_logger
logger = child_logger('orm_sqlite.manager')
class Manager(object):
def __init__(self):
self._database = None
self._model = None
@property
def backend(self):
return self._database
@backend.setter
def backen... | PypiClean |
/tensorflow_cpu_test_package-2.11.0rc0-cp38-cp38-win_amd64.whl/tensorflow/python/ops/distributions/gamma.py | """The Gamma distribution class."""
import numpy as np
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_shape
from tensorflow.python.ops import array_ops
from tensorflow.python.... | PypiClean |
/django-datamaps-0.2.2.tar.gz/django-datamaps-0.2.2/datamaps/models.py | from django.core.urlresolvers import reverse
from django.template.defaultfilters import slugify
from django.db import models
class World(models.Model):
topo = models.TextField(blank=True)
color = models.CharField(max_length=8, default='#EDDC4E')
class Scope(models.Model):
code = models.CharField(max_len... | PypiClean |
/volatility261-2.6.2.tar.gz/volatility261-2.6.2/volatility/plugins/mac/moddump.py | import os
import re
import volatility.obj as obj
import volatility.debug as debug
import volatility.plugins.mac.common as common
from volatility.renderers import TreeGrid
from volatility.renderers.basic import Address
class mac_moddump(common.AbstractMacCommand):
""" Writes the specified kernel extension to disk "... | PypiClean |
/django_csv_downloads-1.2.1.tar.gz/django_csv_downloads-1.2.1/django_csv/csv.py | import csv
import logging
from typing import Any, Sequence, Type
from django.core.paginator import Paginator
from django.db.models import QuerySet
from .settings import DEFAULT_PAGE_SIZE, MAX_ROWS
from .types import OptionalSequence
logger = logging.getLogger(__name__)
class BaseQuerySetWriter:
"""
Class u... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/calendar/calendar_view/item/instances/instances_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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.