id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/f-lib-0.1.0.tar.gz/f-lib-0.1.0/.github/ISSUE_TEMPLATE/bug_report.md | ---
name: Bug report
about: Create a report to help us improve
title: "[BUG] report"
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expec... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/dataproc/v1/cluster.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['ClusterArgs', 'Cluster']
@pulumi.input_type
class ClusterArgs:
def __init_... | PypiClean |
/cic_cli-0.5.5-py3-none-any.whl/cic/contract/processor.py | import logging
logg = logging.getLogger(__name__)
class ContractProcessor:
"""Drives the serialization and publishing of contracts, proofs and metadata for the token.
:param proof: Proof object to publish
:type proof: cic.proof.Proof
:param attachment: Attachment object to publish
:type attachme... | PypiClean |
/vultr-python-client-1.0.2.tar.gz/vultr-python-client-1.0.2/vultr_python_client/paths/domains_dns_domain_soa/get.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from vultr_python_client import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import r... | PypiClean |
/dolbyio-rest-apis-cli-3.6.2.tar.gz/dolbyio-rest-apis-cli-3.6.2/client/src/dolbyio_rest_apis/media/diagnose.py | from dolbyio_rest_apis.core.urls import get_mapi_url
from dolbyio_rest_apis.media.internal.http_context import MediaHttpContext
from dolbyio_rest_apis.media.models.diagnose_response import DiagnoseJob
async def start(
access_token: str,
job_content: str,
) -> str or None:
r"""
Starts Diagno... | PypiClean |
/rethinkdb_next-2.2.0.post1.tar.gz/rethinkdb_next-2.2.0.post1/rethinkdb/ast.py |
__all__ = ['expr', 'RqlQuery', 'ReQLEncoder', 'ReQLDecoder']
import datetime
import collections
import base64
import binascii
import json as py_json
import threading
from .errors import ReqlDriverError, ReqlDriverCompileError, QueryPrinter, T
from . import ql2_pb2 as p
pTerm = p.Term.TermType
try:
unicode
exce... | PypiClean |
/aws_solutions_constructs.aws_events_rule_lambda-1.181.1-py3-none-any.whl/aws_solutions_constructs/aws_events_rule_lambda/__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 aws_cdk.aws_events
import aws_cdk.aws_lambda
import aws_cdk.core
class EventsRuleToLambda(
aws_cdk.core.Construct,
metac... | PypiClean |
/napari_brainways-0.1.8.4-py3-none-any.whl/napari_brainways/widgets/cell_detector_widget.py | from typing import Tuple
import magicgui
from qtpy.QtWidgets import QLabel, QPushButton, QVBoxLayout, QWidget
class CellDetectorWidget(QWidget):
def __init__(self, controller):
super().__init__()
self.controller = controller
self.stardist_label = QLabel(
text='by <a href="http... | PypiClean |
/js.highcharts-3.0.7.tar.gz/js.highcharts-3.0.7/js/highcharts/resources/themes/gray.js | Highcharts.theme = {
colors: ["#DDDF0D", "#7798BF", "#55BF3B", "#DF5353", "#aaeeee", "#ff0066", "#eeaaee",
"#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
chart: {
backgroundColor: {
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
stops: [
[0, 'rgb(96, 96, 96)'],
[1, 'rgb(16, 16, 16)']
]
},
bord... | PypiClean |
/model_compression_toolkit-1.9.1.tar.gz/model_compression_toolkit-1.9.1/model_compression_toolkit/core/pytorch/default_framework_info.py | from torch.nn import Hardsigmoid, ReLU, ReLU6, Softmax, Sigmoid
from torch.nn.functional import hardsigmoid, relu, relu6, softmax
from torch.nn import Conv2d, ConvTranspose2d, Linear
from torch import sigmoid
from model_compression_toolkit.core.common.defaultdict import DefaultDict
from model_compression_toolkit.core.... | 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/2d4990b79e3145cb1c5dda1e9ea0a565.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 |
/jira-cache-0.8.3.tar.gz/jira-cache-0.8.3/README.rst | ==========
jira-cache
==========
Dump Jira issues to file and reload them without connection to the original server.
Quickstart
----------
Dump issues::
from jira import JIRA
from jira_cache import CachedIssues
jira = JIRA('https://jira.atlassian.com/')
result = jira.search_issues('project=JRA and ... | PypiClean |
/nik2img-0.8.0.tar.gz/nik2img-0.8.0/README.txt | nik2img
=======
Generate Mapnik graphics from the command line
Description
===========
Use nik2img to interact with the Mapnik C++/Python mapping toolkit from the command line.
Requirements
============
Mapnik >=0.6.0
Tests only work with >= Mapnik 0.7.2
Installing nik2img
==================
To run this prog... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/caniuse-lite/data/regions/SL.js | module.exports={C:{"30":0.00225,"33":0.00225,"35":0.01578,"43":0.00902,"45":0.00676,"47":0.00225,"57":0.00451,"61":0.00225,"78":0.00451,"80":0.00225,"87":0.00451,"91":0.00902,"94":0.00225,"95":0.03156,"96":0.41474,"97":0.73706,"98":0.06311,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 3... | PypiClean |
/bpy_2.79-1.0.0-py3-none-manylinux2014_x86_64.whl/bpy/2.79/scripts/addons/sequencer_kinoraw_tools/recursive_loader.py |
import bpy
import os
from bpy.types import (
Operator,
Panel,
)
from bpy.props import (
EnumProperty,
BoolProperty,
)
from . import functions
from . import exiftool
class Sequencer_Extra_RecursiveLoader(Operator):
bl_idname = "sequencerextra.recursiveload"
bl_l... | PypiClean |
/pulumi_gcp-6.65.0a1693462587.tar.gz/pulumi_gcp-6.65.0a1693462587/pulumi_gcp/appengine/application_url_dispatch_rules.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
from ._inputs import *
__all__ = ['ApplicationUrlDispatchRulesArgs', 'ApplicationUrlDispatchRules']
@pulumi.input_type
class Application... | PypiClean |
/witheppy-0.1.8.tar.gz/witheppy-0.1.8/docs/witheppy.eppyhelpers.rst | witheppy.eppyhelpers package
============================
Submodules
----------
witheppy.eppyhelpers.extfields module
-------------------------------------
.. automodule:: witheppy.eppyhelpers.extfields
:members:
:undoc-members:
:show-inheritance:
witheppy.eppyhelpers.geometry module
----------------------... | PypiClean |
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/message_result_all_of.py | import re # noqa: F401
import sys # noqa: F401
from freeclimb.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,
vali... | PypiClean |
/tf_gpu-2.11.0.2301-cp38-cp38-manylinux2014_x86_64.whl/tensorflow/python/keras/engine/base_layer_v1.py | """Contains the base Layer class, from which all layers inherit."""
import collections
import functools
import itertools
import threading
import warnings
import numpy as np
from tensorflow.python.autograph.core import ag_ctx
from tensorflow.python.autograph.impl import api as autograph
from tensorflow.python.distrib... | PypiClean |
/autonomi_nos-0.0.9a1-py3-none-any.whl/nos/server/_service.py | import time
import traceback
from functools import lru_cache
from typing import Any, Dict
import grpc
import rich.console
import rich.status
from google.protobuf import empty_pb2
from nos import hub
from nos.common import FunctionSignature, ModelSpec, TaskType, dumps, loads
from nos.common.shm import NOS_SHM_ENABLED,... | PypiClean |
/django-magic-notifier-0.2.3.tar.gz/django-magic-notifier-0.2.3/docs/source/usage.rst | Usage
-----
Send an email with a direct final string (no template) to a user instance::
user = User(email="testuser@localhost", username="testuser")
subject = "Test magic notifier"
notify(["email"], subject, [user], final_message="Nice if you get this")
Send an email with a template (hello) to a user i... | PypiClean |
/PsychRNN-1.0.0-py3-none-any.whl/psychrnn/backend/models/lstm.py | from __future__ import division
from psychrnn.backend.rnn import RNN
import tensorflow as tf
tf.compat.v1.disable_eager_execution()
class LSTM(RNN):
""" LSTM (Long Short Term Memory) recurrent network model
LSTM implementation of :class:`psychrnn.backend.rnn.RNN`. Because LSTM is structured differently fro... | PypiClean |
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/onkyo/media_player.py | from __future__ import annotations
import logging
from typing import Any
import eiscp
from eiscp import eISCP
import voluptuous as vol
from homeassistant.components.media_player import (
DOMAIN,
PLATFORM_SCHEMA,
MediaPlayerEntity,
MediaPlayerEntityFeature,
MediaPlayerState,
MediaType,
)
from ... | PypiClean |
/Azule_Hair_Transplant-0.0.1.tar.gz/Azule_Hair_Transplant-0.0.1/models/face_parsing/resnet.py |
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.model_zoo as modelzoo
# from modules.bn import InPlaceABNSync as BatchNorm2d
resnet18_url = 'https://download.pytorch.org/models/resnet18-5c106cde.pth'
def conv3x3(in_planes, out_planes, stride=1):
"""3x3 convolution with pad... | PypiClean |
/pytickets-0.9.2.1.tar.gz/pytickets-0.9.2.1/tickets/bytemapper.py |
__all__ = [
'ByteMapperFactory'
]
class BaseByteMapper(object):
@classmethod
def _join_strings(cls, names_values):
def string_start_offset(name):
return getattr(cls, name.upper()+'_OFFSET')
sorted_strings = [
names_values[name] for name in
sorte... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/drives/item/items/item/versions/item/content/content_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 |
/p4a-django-1.9.1.tar.gz/p4a-django-1.9.1/django/contrib/auth/middleware.py | from django.contrib import auth
from django.contrib.auth import load_backend
from django.contrib.auth.backends import RemoteUserBackend
from django.core.exceptions import ImproperlyConfigured
from django.utils.functional import SimpleLazyObject
def get_user(request):
if not hasattr(request, '_cached_user'):
... | PypiClean |
/Skailar-framework-5.0.tar.gz/Skailar-framework-5.0/skailar/db/backends/postgresql/base.py | import asyncio
import threading
import warnings
from contextlib import contextmanager
from skailar.conf import settings
from skailar.core.exceptions import ImproperlyConfigured
from skailar.db import DatabaseError as WrappedDatabaseError
from skailar.db import connections
from skailar.db.backends.base.base import Base... | PypiClean |
/pretix_banktool-1.0.0-py3-none-any.whl/pretix_banktool/main.py | import configparser
from urllib.parse import urljoin
import click
from pretix_banktool.upload import upload_transactions
from .config import validate_config
from .testing import test_fints, test_pretix
@click.group()
def main():
pass
@main.command()
@click.argument('configfile', type=click.Path(exists=True))
... | PypiClean |
/melan-0.2.0.tar.gz/melan-0.2.0/src/nxp/io/line.py | import re
from .util import rstrip, rstripn, lstripn
from nxp.charset import white
# regular expressions used to parse lines of text
#_segline = re.compile( r'^(?P<pre>[' + white + r']*)(?P<txt>.*)(?P<pst>[' + white + r']*)$' )
_chkeol = re.compile( r'(\r?\n)?' )
# ----------------------------------------------------... | PypiClean |
/smartautomatic_server_frontend-20220907.2-py3-none-any.whl/sas_frontend/frontend_es5/4dd04d6c.js | "use strict";(self.webpackChunksmartautomatic_server_frontend=self.webpackChunksmartautomatic_server_frontend||[]).push([[75049],{75049:function(e,t,r){r.r(t);r(51187);var n,i,o,a,s,l,c,d=r(37500),u=r(33310),f=r(47181),p=r(34821),h=(r(3555),r(86630),r(11654)),m=r(93748),y=r(27322),v=r(44547),w=(r(44577),r(32594));funct... | PypiClean |
/gd_py-1.0.0-cp39-cp39-manylinux_2_35_x86_64.whl/gd/api/levels.py | from typing import Any, ClassVar, Optional, Type, TypeVar
from attrs import define, field
from pendulum import Duration, duration
from typing_aliases import StringDict, StringMapping
from gd.api.editor import Editor
from gd.api.recording import Recording
from gd.api.songs import SongReferenceAPI
from gd.binary import... | PypiClean |
/bibdesk2zotero-0.0.3.tar.gz/bibdesk2zotero-0.0.3/README.md | # bibdesk2zotero
This is a little utility for rewriting a BibDesk BibTeX file so that it can be
read by Zotero with the file references intact. BibDesk and Zotero mostly get
along except for the way BibFile stores links to documents like PDFs. This
utility Base64 decodes all Bdesk-File paths, parses the serialized [pl... | PypiClean |
/lite_tools-0.4.10.9-py3-none-any.whl/lite_tools/tools/core/lite_try.py | import time
import asyncio
import traceback
from typing import Callable, TypeVar, List, Union, Sequence
from functools import wraps, partial
from asyncio import iscoroutinefunction
from lite_tools.logs import my_logger as try_log
from lite_tools.logs import logger, handle_exception
__ALL__ = ["try_catch"]
T = TypeV... | PypiClean |
/js.extjs-4.2.1.883.tar.gz/js.extjs-4.2.1.883/js/extjs/resources/examples/ux/ToolbarDroppable.js | Ext.define('Ext.ux.ToolbarDroppable', {
/**
* Creates new ToolbarDroppable.
* @param {Object} config Config options.
*/
constructor: function(config) {
Ext.apply(this, config);
},
/**
* Initializes the plugin and saves a reference to the toolbar
* @param {Ext.toolbar.Too... | PypiClean |
/megrok.resourceviewlet-0.2.tar.gz/megrok.resourceviewlet-0.2/src/megrok/resourceviewlet/README.txt | ======================
megrok.resourceviewlet
======================
`megrok.resourceviewlet` is a package meant to include resources
using layer, context and view discriminations.
Setup
=====
Let's import and init the necessary work environment::
>>> import grokcore.component as grok
>>> from grokcore import ... | PypiClean |
/ThreeDVG/lib/solver.py | import os
import sys
import time
import torch
import numpy as np
from tqdm import tqdm
from tensorboardX import SummaryWriter
from torch.optim.lr_scheduler import StepLR, MultiStepLR, CosineAnnealingLR
from ..lib.config import CONF
from ..lib.loss_helper import get_loss
from ..lib.eval_helper import get_eval
from ..ut... | PypiClean |
/tensorflow_ascend-1.15.0-cp37-cp37m-manylinux2014_aarch64.whl/tensorflow_core/python/training/tensorboard_logging.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import time
from tensorflow.core.util import event_pb2
from tensorflow.python.platform import tf_logging as logging
DEBUG = 'DEBUG'
INFO = 'INFO'
WARN = 'WARN'
ERROR = 'ERROR'
FATAL = 'FATAL'
# Messages with... | PypiClean |
/play3d-0.1.5.tar.gz/play3d-0.1.5/README.md | 3D Playground - on Python from scratch.
=====================================

[](https://github.com/timabilov/python-play3d/actions/workflows/python-packa... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/enquirer/lib/types/boolean.js | 'use strict';
const Prompt = require('../prompt');
const { isPrimitive, hasColor } = require('../utils');
class BooleanPrompt extends Prompt {
constructor(options) {
super(options);
this.cursorHide();
}
async initialize() {
let initial = await this.resolve(this.initial, this.state);
this.input ... | PypiClean |
/Photini-2023.7.1-py3-none-any.whl/photini/googlemap.py |
import locale
import logging
import requests
from photini.configstore import key_store
from photini.photinimap import GeocoderBase, PhotiniMap
from photini.pyqt import Busy, Qt, QtCore, QtWidgets, scale_font
from photini.widgets import Label
logger = logging.getLogger(__name__)
translate = QtCore.QCoreApplication.t... | PypiClean |
/django-atc-demo-ui-0.1.6.tar.gz/django-atc-demo-ui-0.1.6/atc_demo_ui/static/js/atc-auth.js | * Copyright (c) 2014, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
var TokenFrame = R... | PypiClean |
/EModelRunner-1.1.16.tar.gz/EModelRunner-1.1.16/emodelrunner/create_recordings.py |
# Copyright 2020-2022 Blue Brain Project / EPFL
# 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 agree... | PypiClean |
/ChemDataExtractor_c-1.0.0-py3-none-any.whl/chemdataextractor/parse/table.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import re
from lxml.builder import E
from .common import delim
from ..utils import first
from ..model import Compound, UvvisSpectrum, UvvisPeak, QuantumYie... | PypiClean |
/onshape-test-client-1.0.0.tar.gz/onshape-test-client-1.0.0/onshape_client/oas/model/bt_material_library_settings_info.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 |
/standardnotes-fs-0.0.2.tar.gz/standardnotes-fs-0.0.2/standardnotes_fs/api.py | import requests
from standardnotes_fs.crypt import EncryptionHelper
class SNAPIException(Exception):
pass
class RESTAPI:
def __init__(self, base_url):
self.base_url = base_url
self.headers = {}
def get(self, route, params=None):
url = self.base_url + route
return requests... | PypiClean |
/django-geoexplorer-worldmap-4.0.72.tar.gz/django-geoexplorer-worldmap-4.0.72/geoexplorer-worldmap/static/worldmap_client/externals/openlayers/lib/OpenLayers/Format/GPX.js | * @requires OpenLayers/Format/XML.js
* @requires OpenLayers/Feature/Vector.js
* @requires OpenLayers/Geometry/Point.js
* @requires OpenLayers/Geometry/LineString.js
* @requires OpenLayers/Projection.js
*/
/**
* Class: OpenLayers.Format.GPX
* Read/write GPX parser. Create a new instance with the
* <OpenLa... | PypiClean |
/bigdl_dllib-2.3.0b20230214-py3-none-macosx_10_11_x86_64.whl/bigdl/dllib/keras/layers/wrappers.py |
import sys
from bigdl.dllib.keras.engine import ZooKerasLayer
if sys.version >= '3':
long = int
unicode = str
class TimeDistributed(ZooKerasLayer):
"""
TimeDistributed wrapper.
Apply a layer to every temporal slice of an input.
The input should be at least 3D.
The dimension of index one... | PypiClean |
/collective.fullcalendar-1.2.tar.gz/collective.fullcalendar-1.2/src/collective/fullcalendar/browser/fullcalendar.py | from collective.fullcalendar import _
from collective.fullcalendar.interfaces import IFullcalendarEnabled
from plone.app.contenttypes.behaviors.collection import ISyndicatableCollection
from plone.app.event.base import AnnotationAdapter
from plone.app.z3cform.widget import RelatedItemsFieldWidget
from plone.autoform im... | PypiClean |
/openreview_py-0.7.5-py3-none-any.whl/openreview/invitations.py | import openreview
class Submission(openreview.Invitation):
def __init__(self, name, conference_id, duedate = 0,
process = None, inv_params = {}, reply_params = {}, content_params = {}, mask = {}):
self.name = name
self.conference_id = conference_id
default_inv_params = {
... | PypiClean |
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/uhd_restpy/testplatform/sessions/ixnetwork/traffic/statistics/latency/latency.py | import sys
from uhd_restpy.base import Base
from uhd_restpy.files import Files
if sys.version_info >= (3, 5):
from typing import List, Any, Union
class Latency(Base):
"""This object sets the latency mode to fetch related statistics for each mode.
The Latency class encapsulates a required latency resource ... | PypiClean |
/azure_mgmt_databox-2.0.0-py3-none-any.whl/azure/mgmt/databox/v2020_04_01/_configuration.py |
from typing import Any, TYPE_CHECKING
from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
from ._version import VERSION
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-... | PypiClean |
/scikit_learn_tree-1.2.3-cp38-cp38-win_amd64.whl/sklearn_fork/linear_model/_glm/_newton_solver.py |
import warnings
from abc import ABC, abstractmethod
import numpy as np
import scipy.linalg
import scipy.optimize
from ..._loss.loss import HalfSquaredError
from ...exceptions import ConvergenceWarning
from ...utils.optimize import _check_optimize_result
from .._linear_loss import LinearModelLoss
class NewtonSolver... | PypiClean |
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/js-beautify/js/lib/cli.js | /*jshint strict:false */
var debug = process.env.DEBUG_JSBEAUTIFY || process.env.JSBEAUTIFY_DEBUG ? function() {
console.error.apply(console, arguments);
} : function() {};
var fs = require('fs'),
cc = require('config-chain'),
beautify = require('../index'),
mkdirp = require('mkdirp'),
nopt = requ... | PypiClean |
/multi-vector-simulator-1.0.6rc12.tar.gz/multi-vector-simulator-1.0.6rc12/src/multi_vector_simulator/F0_output.py | import json
import logging
import os
import pandas as pd
from multi_vector_simulator.B0_data_input_json import convert_from_special_types_to_json
from multi_vector_simulator.E1_process_results import get_units_of_cost_matrix_entries
import multi_vector_simulator.F1_plotting as F1_plots
try:
import multi_vector_s... | PypiClean |
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/vendor/ace-builds/src-min-noconflict/mode-dockerfile.js | ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=t.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local... | PypiClean |
/ogdp_apis-0.1-py3-none-any.whl/ogdp_apis/aqi/aqi.py | import requests
import json
class aqiData:
def __init__(self, apiKey, *args):
self.apiPath = "https://api.data.gov.in/resource/3b01bcb8-0b14-4abf-b6f2-c1bfd384ba69"
self.session = requests.Session()
self.session.params = {
"api-key": apiKey,
"format": "json",
"limit": 10000,
"fields": ""
}
self... | PypiClean |
/applepy-ui-0.0.5.tar.gz/applepy-ui-0.0.5/README.md | # applepy
Applepy is a UI library inspired by Swift UI that leverages AppKit and UIKit to create native MacOS, iOS and iPadOS user interfaces in the Python programming language with a declarative syntax.
*This project is at proof of concept stage and is not feature complete. Please do not use it in production.*
## ... | PypiClean |
/prueba_paquete-0.1.7-py3-none-any.whl/prueba_paquete/classification.py | import collections
from nltk import NaiveBayesClassifier, DecisionTreeClassifier
from nltk.metrics import precision, recall, f_measure
from nltk.classify import apply_features, accuracy
from nltk.classify.scikitlearn import SklearnClassifier
from prueba_paquete.utils import clean_html_tags, shuffled, tokenize_and_stem
... | PypiClean |
/sanic_security-1.11.7-py3-none-any.whl/sanic_security/exceptions.py | from sanic.exceptions import SanicException
from sanic_security.utils import json
"""
An effective, simple, and async security library for the Sanic framework.
Copyright (C) 2020-present Aidan Stewart
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Pu... | PypiClean |
/RsCMPX_NrFr1Meas-4.0.185.tar.gz/RsCMPX_NrFr1Meas-4.0.185/RsCMPX_NrFr1Meas/Implementations/Configure/NrSubMeas/MultiEval/Limit/SeMask/Standard/Area/Caggregation.py | from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions
from ......... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CaggregationCls:
"""Caggregation commands group definition. 1 total... | PypiClean |
/microservices_connector-0.3.7.tar.gz/microservices_connector-0.3.7/microservices_connector/minisocket.py | import asyncio
import os
import traceback
import threading
import websockets
import websocket
import uvloop
import time
import threading
from microservices_connector.url_parser.url_namespace import ArgsParse
def SocketClient(host='localhost:8765', url='/'):
return websocket.create_connection(f'ws://{host}{url}')
... | PypiClean |
/pYSOVAR-1.0.tar.gz/pYSOVAR-1.0/YSOVAR/autofuncs.py | import math
import numpy as np
import scipy.stats
import scipy.stats.mstats
import scipy.odr
from astropy.utils.compat.odict import OrderedDict
from .registry import register
#def redvec_36_45():
# ''' Rieke & Lebofsky 1985 (bibcode 1985ApJ...288..618R)
# I take the extinctions from the L and M band (3.5, 5.0).... | PypiClean |
/pcl_pangu-1.2.6.2.tar.gz/pcl_pangu-1.2.6.2/pcl_pangu/tokenizer/spm_13w/tokenizer.py |
import sentencepiece as spm
import jieba
langs_ID = {'zh': 128301, 'ko': 128302, 'vi': 128303,
'de': 128317, 'en': 128318, 'nl': 128132,
'ms': 128109, 'id': 128110, 'tl': 128111,
'mn': 128103, 'my': 128104, 'th': 128105, 'lo': 128106, 'km': 128107,
'lt': 128112, 'et': 1... | PypiClean |
/alibabacloud_ons20190214-1.0.4-py3-none-any.whl/alibabacloud_ons20190214/client.py | from typing import Dict
from Tea.core import TeaCore
from alibabacloud_tea_openapi.client import Client as OpenApiClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_tea_util.client import Client as UtilClient
from alibabacloud_endpoint_util.client import Client as EndpointUtilClien... | PypiClean |
/dl1_data_handler-0.10.11-py3-none-any.whl/dl1_data_handler/write_data.py | from dl1_data_handler.writer import DL1DataDumper, DL1DataWriter
import argparse
import logging
import sys
import warnings
import os
import yaml
logger = logging.getLogger(__name__)
# Disable warnings by default
if not sys.warnoptions:
warnings.simplefilter("ignore")
def main():
parser = argparse.Argumen... | PypiClean |
/virtual-storage-manager-2.0.2.tar.gz/virtual-storage-manager-2.0.2/vsm/agent/rpcapi.py |
"""Client side of the agent RPC API."""
import logging
from oslo.config import cfg
from vsm.openstack.common import jsonutils
from vsm.openstack.common import rpc
import vsm.openstack.common.rpc.proxy
CONF = cfg.CONF
LOG = logging.getLogger(__name__)
class AgentAPI(vsm.openstack.common.rpc.proxy.RpcProxy):
"""... | PypiClean |
/tigerasi-0.0.19.tar.gz/tigerasi-0.0.19/README.md | # TigerASI
a feature-rich Python interface for ASI Tiger Controllers.
This driver was written to simplify the serial api to ASI's [Tiger Controllers](https://www.asiimaging.com/controllers/tiger-controller/) while reducing reliance on the full [documentation](https://asiimaging.com/docs/products/serial_commands) for m... | PypiClean |
/django-dmcadmin-0.1.1.tar.gz/django-dmcadmin-0.1.1/dmcadmin/static/AdminLTE/plugins/popper/esm/popper.js | var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';
var timeoutDuration = function () {
var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
if (isBrowser && navigator.userAgent.... | PypiClean |
/AmFast-0.5.3-r541.tar.gz/AmFast-0.5.3-r541/amfast/remoting/django_channel.py | import types
import threading
from django import http
import amfast
from amfast.remoting import Packet
import amfast.remoting.flex_messages as messaging
from amfast.remoting.channel import HttpChannel, ChannelError
def django_response_wrapper(func):
'''
A decorator which wrap a bare response to a DjangoResop... | PypiClean |
/fastybird_metadata-0.77.0-py3-none-any.whl/fastybird_metadata/devices_module.py |
# Copyright 2021. FastyBird s.r.o.
#
# 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 applicabl... | PypiClean |
/BEATluzgool-1.0.1-py3-none-any.whl/econml/causal_forest.py |
from .utilities import LassoCVWrapper, deprecated
from sklearn.linear_model import LogisticRegressionCV
from .dml import CausalForestDML
@deprecated("The CausalForest class has been deprecated by the econml.dml.CausalForestDML; "
"an upcoming release will remove support for the old class")
def CausalFore... | PypiClean |
/decide_exchange_model-2022.1.18.tar.gz/decide_exchange_model-2022.1.18/decide/qt/mainwindow/errorgrid.py | import logging
import os
import sys
from typing import List
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QDialog
from decide import log_filename, input_folder
from decide.data.reader import InputDataFile
from decide.qt.utils import exception_hook
class ErrorGrid(QDialog):
"""
Visualisation of the ... | PypiClean |
/django-fiber-1.10.tar.gz/django-fiber-1.10/fiber/static/fiber/js/ckeditor_4.6.2_b52fb43f6f3e/plugins/a11yhelp/dialogs/lang/ku.js | /*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","ku",{title:"ڕێنمای لەبەردەستدابوون",contents:"پێکهاتەی یارمەتی. کلیك ESC بۆ داخستنی ئەم دیالۆگه.",legend:[{name:"گشتی",items:[{name:"تووڵ... | PypiClean |
/segmentation_models_pytorch_deepflash2-0.3.0-py3-none-any.whl/segmentation_models_pytorch_deepflash2/encoders/efficientnet.py | import torch.nn as nn
from efficientnet_pytorch import EfficientNet
from efficientnet_pytorch.utils import url_map, url_map_advprop, get_model_params
from ._base import EncoderMixin
class EfficientNetEncoder(EfficientNet, EncoderMixin):
def __init__(self, stage_idxs, out_channels, model_name, depth=5):
... | PypiClean |
/wasp-launcher-0.0.2.tar.gz/wasp-launcher-0.0.2/wasp_launcher/static/angular/angular-1.6.1/i18n/angular-locale_lu-cd.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | PypiClean |
/deepNets-0.1.8.tar.gz/deepNets-0.1.8/.eggs/py-1.10.0-py3.8.egg/py/_code/_assertionnew.py | import sys
import ast
import py
from py._code.assertion import _format_explanation, BuiltinAssertionError
def _is_ast_expr(node):
return isinstance(node, ast.expr)
def _is_ast_stmt(node):
return isinstance(node, ast.stmt)
class Failure(Exception):
"""Error found while interpreting AST."""
def __in... | PypiClean |
/django-projector-0.2.0.tar.gz/django-projector-0.2.0/example_project/settings.py | import os
import sys
from django.conf import global_settings
abspath = lambda *p: os.path.abspath(os.path.join(*p))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROJECTOR_HG_PUSH_SSL = False
PROJECT_ROOT = abspath(os.path.dirname(__file__))
PROJECTOR_MODULE_PATH = abspath(PROJECT_ROOT, '..')
sys.path.insert(0, PROJECTOR_MOD... | PypiClean |
/ddbc-0.0.4.tar.gz/ddbc-0.0.4/README.txt | ddbc
====
|Version| |Build Status| |Coverage|
Description
===========
Amazon DynamoDB as a cache store.
Requirements
============
- Python2.7
- pip
Installation
============
PyPI
----
.. code:: sh
pip install ddbc
Setup
=====
- Create IAM Role or User
Policy example:
.. code:: json
{
"V... | PypiClean |
/graphql-example-0.4.4.tar.gz/graphql-example-0.4.4/vendor/pipenv/vendor/jinja2/nodes.py | import types
import operator
from collections import deque
from jinja2.utils import Markup
from jinja2._compat import izip, with_metaclass, text_type, PY2
#: the types we support for context functions
_context_function_types = (types.FunctionType, types.MethodType)
_binop_to_func = {
'*': operator.mul,
... | PypiClean |
/theprometheus-1.0.19.tar.gz/theprometheus-1.0.19/prometheus/prometheus.py | __authors__ = 'David Nidever <dnidever@montana.edu?'
__version__ = '20210915' # yyyymmdd
import os
import sys
import numpy as np
import warnings
from astropy.io import fits
from astropy.table import Table,vstack
import logging
import time
from dlnpyutils import utils as dln
from . import detection, aperture, models,... | PypiClean |
/cdk-stacksets-0.0.148.tar.gz/cdk-stacksets-0.0.148/README.md | # CDK StackSets Construct Library
<!--BEGIN STABILITY BANNER-->---

> The APIs of higher level constructs in this module are experimental and under active development.
> They are subject to no... | PypiClean |
/djangoteams_community-1.4.9-py3-none-any.whl/django_teams/views.py | from django.core.exceptions import PermissionDenied
# This is where your views go :)
from django.http import HttpResponseRedirect
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, UpdateView
from django.urls import reverse... | PypiClean |
/articlequality-0.4.4.tar.gz/articlequality-0.4.4/README.md | # Wikipedia article quality classification
This library provides a set of utilities for performing automatic detection of
assessment classes of Wikipedia articles. For more information, see the full
documentation at https://articlequality.readthedocs.io .
**Compatible with Python 3.x only.** Sorry.
* **Install:** ... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/cnes.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def cnes(path):
"""Variables from the 1997 Canadian National Election Study
These variables ar... | PypiClean |
/holehebetter-1.61.tar.gz/holehebetter-1.61/holehe/modules/mails/yahoo.py | from holehe.core import *
from holehe.localuseragent import *
async def yahoo(email, client, out):
name = "yahoo"
domain = "yahoo.com"
method= "login"
frequent_rate_limit=True
headers = {
'User-Agent': random.choice(ua["browsers"]["firefox"]),
'Accept': '*/*',
'Accept-Lang... | PypiClean |
/dltk_ai-1.1.9.tar.gz/dltk_ai-1.1.9/dltk_ai/visualization.py | #Importi
import pandas as pd
import plotly
import plotly.graph_objs as go
import plotly.figure_factory as ff
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
import plotly.express as px
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
# Bar graph
def ... | PypiClean |
/tbtool1-0.1-py3-none-any.whl/aws_services/s3/s3_constants.py | class S3Checks:
S3_CHECK_AT_REST_ENCRYPTION = "S3 buckets MUST be configured for encryption at rest using a KMS key with default SSE-S3 encryption at a minimum"
S3_CHECK_IN_TRANSIT_ENCRYPTION = "S3 buckets MUST be configured for in-transit encryption by enabling Secure Transport"
S3_PUBLIC_ACL_ACCESS = "S3 ... | PypiClean |
/World%20of%20Warships%20replays%20parser-3.3.3.tar.gz/World of Warships replays parser-3.3.3/replay_unpack/clients/wows/versions/0_11_6/battle_controller.py | import copy
import logging
import pickle
from replay_unpack.core import IBattleController
from replay_unpack.core.entity import Entity
from .constants import DamageStatsType, Category, TaskType, Status
try:
from .constants import DEATH_TYPES
except ImportError:
DEATH_TYPES = {}
from .players_info import Playe... | PypiClean |
/golismero-2.0.3.tar.gz/golismero-2.0.3/thirdparty_libs/yaml/events.py |
class Event(object):
def __init__(self, start_mark=None, end_mark=None):
self.start_mark = start_mark
self.end_mark = end_mark
def __repr__(self):
attributes = [key for key in ['anchor', 'tag', 'implicit', 'value']
if hasattr(self, key)]
arguments = ', '.join(['%... | PypiClean |
/suap-duf-0.3.16.tar.gz/suap-duf-0.3.16/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 |
/binhash-0.2.3.tar.gz/binhash-0.2.3/README.md | # Compression Techniques for sparse binary data
## In Development
## Prerequisites ##
* Python 2.7 or higher
* [NumPy](http://numpy.org)
* [scikit learn](https://scikit-learn.org/stable/)
* Libraries: [Pickle], [random], [re]
## Usage
```
from BinHash import hasher
corpus = 'path_to_the_folder_containing_documents'
... | PypiClean |
/dafni_cli-0.0.1b3-py3-none-any.whl/dafni_cli/api/session.py | import json
import os
import time
from dataclasses import dataclass
from io import BufferedReader
from pathlib import Path
from typing import BinaryIO, Callable, Dict, List, Literal, Optional, Union
import click
import requests
from requests import HTTPError
from dafni_cli.api.exceptions import DAFNIError, EndpointNo... | PypiClean |
/coloquinte-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/coloquinte.py | import gzip
import lzma
import math
import os
import sys
import coloquinte_pybind
from coloquinte_pybind import (
CellOrientation,
CellRowPolarity,
ColoquinteParameters,
LegalizationModel,
NetModel,
PlacementStep,
Rectangle,
Row,
)
def _open_file(name, write=False):
"""
Open t... | PypiClean |
/azure-mgmt-servicenetworking-1.0.0b1.zip/azure-mgmt-servicenetworking-1.0.0b1/azure/mgmt/servicenetworking/aio/operations/_operations.py | import sys
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
Resourc... | PypiClean |
/zpyshell-0.1.2.0.zip/zpyshell-0.1.2.0/Zpy/languages/python/python_completer.py | from prompt_toolkit.completion import Completion
class PythonCompleter():
def __init__(self):
self.last_command = {
"command": "",
"command_arguments" : ""
}
self.completions = []
# List of completions
# Taken from `xonsh` and `pygments` modules
... | PypiClean |
/tensorflow_datasets-4.9.2-py3-none-any.whl/tensorflow_datasets/datasets/squad/squad_dataset_builder.py | from __future__ import annotations
import json
import os
from etils import epath
import numpy as np
import tensorflow_datasets.public_api as tfds
from tensorflow_datasets.question_answering import qa_utils
_URL = "https://rajpurkar.github.io/SQuAD-explorer/dataset/"
_HOMEPAGE_URL = "https://rajpurkar.github.io/SQuAD... | PypiClean |
/vaine-widget-0.1.0a0.tar.gz/vaine-widget-0.1.0a0/vaine/util.py |
# Copyright (c) 2020, Pacific Northwest National Laboratories
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this
# l... | PypiClean |
/Eskapade-1.0.0-py3-none-any.whl/eskapade/analysis/links/hist_filler.py | import histogrammar as hg
import numpy as np
from eskapade.analysis import histogram_filling as hf
from eskapade.analysis.histogram_filling import HistogramFillerBase
class HistogrammarFiller(HistogramFillerBase):
"""Fill histogrammar sparse-bin histograms.
Algorithm to fill histogrammar style sparse-bin an... | PypiClean |
/sonatype_nexus_sdk-0.1.3-py3-none-any.whl/nexus_sdk/paths/v1_repositories_r_hosted_repository_name/put.py | import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
import uuid # noqa: F401
from dataclasses import dataclass
from datetime import date, datetime # noqa: F401
import frozendict # noqa: F401
import typing_extensions # noqa: F401
im... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.