id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/bambu-tools-3.3.4.tar.gz/bambu-tools-3.3.4/bambu/dataportability/simplexmlwriter.py |
##
# Tools to write XML files, without having to deal with encoding
# issues, well-formedness, etc.
# <p>
# The current version does not provide built-in support for
# namespaces. To create files using namespaces, you have to provide
# "xmlns" attributes and explicitly add prefixes to tags and
# attributes.
#
# <h3>Pa... | PypiClean |
/sports2d-0.2.5-py3-none-any.whl/Sports2D/Utilities/common.py | ## INIT
import sys
import numpy as np
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QTabWidget, QVBoxLayout
from scipy import interp... | PypiClean |
/jiver-0.1.28.tar.gz/jiver-0.1.28/extra/jiver-completion.sh | function _mycomplete_()
{
local cmd="${1##*/}"
local word=${COMP_WORDS[COMP_CWORD]}
local line=${COMP_LINE}
local values=''
case "$line" in
*build-and-run*)
if [ "${line: -1}" == '-' ]
then
values='--skip-tests'
else
local... | PypiClean |
/cryptoxlib-aio-5.3.0.tar.gz/cryptoxlib-aio-5.3.0/cryptoxlib/CryptoXLibClient.py | import asyncio
import aiohttp
import ssl
import logging
import datetime
import json
import enum
import time
from abc import ABC, abstractmethod
from multidict import CIMultiDictProxy
from typing import List, Optional, Dict
from cryptoxlib.version_conversions import async_create_task
from cryptoxlib.Timer import Timer
... | PypiClean |
/bb2_cyanide_api-0.0.6-py3-none-any.whl/bb2_cyanide_api/tournament.py | from .match import Match
from collections import Counter
class Tournament:
def __init__(self, *args:Match):
self.matches = args
def leaderboard(self):
coaches = {}
for match in self.matches:
if match.is_concede():
continue
for coach in [match.coach1(), match.coach2(... | PypiClean |
/portapy-0.0.1.post2-py3-none-any.whl/portapy-js/node_modules/tslint/lib/rules/maxFileLineCountRule.js | "use strict";
/**
* @license
* Copyright 2013 Palantir Technologies, Inc.
*
* 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
*
* Unle... | PypiClean |
/PPPF-0.1.0.tar.gz/PPPF-0.1.0/pppf_clusters/cluster.py | from uuid import uuid4
from pppf_lib import is_hypothetical
class Cluster:
"""
A cluster of sequences has an ID that should be unique, an exemplar sequence, and a set of members.
For convenience, the exemplar is also guaranteed to be one of the members so that you don't need to search through both
the ... | PypiClean |
/aws-amplify.cdk.exported-backend-0.0.6.tar.gz/aws-amplify.cdk.exported-backend-0.0.6/src/aws_amplify/cdk/exported_backend/__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
import aws_cdk.aws_apigateway
import aws_cdk.aws_appsync
import aws_cdk.aws_cognito
import aws_cdk.aws_lambda
import aws_c... | PypiClean |
/antchain_ak_d55db67c8e5a4e799ff51ac9e5bcede3-1.0.0-py3-none-any.whl/antchain_sdk_ak_d55db67c8e5a4e799ff51ac9e5bcede3/models.py | from Tea.model import TeaModel
from typing import List
class Config(TeaModel):
"""
Model for initing client
"""
def __init__(
self,
access_key_id: str = None,
access_key_secret: str = None,
security_token: str = None,
protocol: str = None,
read_timeout: ... | PypiClean |
/bpy_nibbler-0.1.tar.gz/bpy_nibbler-0.1/bpy_lambda/2.78/scripts/addons_contrib/archipack/archipack_gl.py |
# ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 License, or (at your option) any later version.
#
# This program is distri... | PypiClean |
/octarine-easypy-0.0.2.tar.gz/octarine-easypy-0.0.2/easypy/tables.py | from io import StringIO
from easypy.collections import defaultlist
from easypy.colors import colored, uncolorize
from easypy.humanize import compact
class Column():
def __init__(self, name, title=None, max_width=None, align=None, header_align=None, padding=None, drop_if_empty=False):
self.name = name
... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/compute/v20171201/virtual_machine_scale_set.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['VirtualMachineScaleSet']
class VirtualMachineScaleSet(pulumi.CustomResource):
def __in... | PypiClean |
/django_gift_card_crawler-1.0.0-py3-none-any.whl/gift_card_crawler/static/gift_card_crawler/js/gift_card_crawler.js | function download(filename, text) {
var current_date = new Date();
var current_time = current_date.getTime();
var element = document.createElement('a');
element.setAttribute('href', 'data:text/csv;charset=utf-8,' + encodeURIComponent(text));
element.setAttribute('download', current_time + '_' + file... | PypiClean |
/sagemath-polyhedra-9.5b6.tar.gz/sagemath-polyhedra-9.5b6/sage/categories/lambda_bracket_algebras_with_basis.py |
from sage.categories.category_with_axiom import CategoryWithAxiom_over_base_ring
from sage.categories.graded_modules import GradedModulesCategory
class LambdaBracketAlgebrasWithBasis(CategoryWithAxiom_over_base_ring):
"""
The category of Lambda bracket algebras with basis.
EXAMPLES::
sage: LieCo... | PypiClean |
/wig-ng-0.2.tar.gz/wig-ng-0.2/wig/helpers/wps.py |
import struct
class InvalidWPSInformationElement(Exception):
"""Invalid WPS Information Element Exception."""
pass
class WPSElements(object):
"""Contains all WPS data elements constants."""
ID_AP_CHANNEL = 0x1001
ID_ASSOCIATION_STATE = 0x1002
ID_AUTHENTICATION_TYPE = 0x1003
ID_AUTHENTI... | PypiClean |
/highcharts_core-1.3.7.tar.gz/highcharts_core-1.3.7/docs/api/_other_convenience_methods.rst |
.. method:: copy(self, other, overwrite = True, **kwargs)
:noindex:
Copy the properties from ``self`` to ``other``.
:param other: The target instance to which the properties of this instance should
be copied.
:type other: :class:`HighchartsMeta`
:param overwrite: if ``True``, properties ... | PypiClean |
/tfmc_machine_parts_pp-0.2.1.tar.gz/tfmc_machine_parts_pp-0.2.1/tfmc/machine_parts_pp.py | __version__ = '0.2.1'
def get_parts_csv_file_name():
'''
Returns the absolute path to the csv file containing the machine parts
and the part of relations.
'''
return _get_local_fname('parts.csv')
def get_dissimilarities_csv_file_name():
'''
Returns the absolute path to the csv file contain... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/utils/dom.js | 'use strict';
exports.__esModule = true;
exports.isInContainer = exports.getScrollContainer = exports.isScroll = exports.getStyle = exports.once = exports.off = exports.on = undefined;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : funct... | PypiClean |
/mitmproxy_lin_customization-5.2.2.1.tar.gz/mitmproxy_lin_customization-5.2.2.1/mitmproxy/platform/windows.py | import contextlib
import ctypes
import ctypes.wintypes
import io
import json
import os
import re
import socket
import socketserver
import threading
import time
import typing
import click
import collections
import collections.abc
import pydivert
import pydivert.consts
REDIRECT_API_HOST = "127.0.0.1"
REDIRECT_API_PORT ... | PypiClean |
/secscanner2junit-0.1.12.tar.gz/secscanner2junit-0.1.12/README.md | # SecScanner2JUnit
[](https://badge.fury.io/py/secscanner2junit)
[](https://pepy.tech/project/secscanner2junit)
[](https://gitpod.io/#https:/... | PypiClean |
/dsin100daysv36-6.0.1.tar.gz/dsin100daysv36-6.0.1/notebook/static/components/MathJax/extensions/a11y/mathmaps/es/symbols/math_symbols.js | [{"locale":"es"},{"key":"0021","mappings":{"default":{"default":"factorial"}},"category":"Po"},{"key":"0022","mappings":{"default":{"default":"comillas"}},"category":"Po"},{"key":"0023","mappings":{"default":{"default":"almuhadilla","defaultMP":"signo de número"}},"category":"Po"},{"key":"0024","mappings":{"default":{"... | PypiClean |
/libSDT4-0.0.0-py3-none-any.whl/lib_py_parse/helper/eval_service.py | import lib_py_parse.helper.eval_helper as eval_helper
import lib_py_parse.utils.exceptions as exceptions
def resolve_func_type_from_arguments(arguments):
T1 = [
T2.strip()
for T2 in arguments.split('->')
]
if len(T1) != 2:
error_msgs = [
'invalid fxn ... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/@rjsf/core/lib/components/widgets/CheckboxesWidget.js | import React from "react";
import PropTypes from "prop-types";
function selectValue(value, selected, all) {
var at = all.indexOf(value);
var updated = selected.slice(0, at).concat(value, selected.slice(at)); // As inserting values at predefined index positions doesn't work with empty
// arrays, we need to reorde... | PypiClean |
/metadata_extraction_vnpt_media-0.0.1.tar.gz/metadata_extraction_vnpt_media-0.0.1/classify_image/efficientnet/__init__.py |
import functools
from .__version__ import __version__
_KERAS_BACKEND = None
_KERAS_LAYERS = None
_KERAS_MODELS = None
_KERAS_UTILS = None
def get_submodules_from_kwargs(kwargs):
backend = kwargs.get('backend', _KERAS_BACKEND)
layers = kwargs.get('layers', _KERAS_LAYERS)
models = kwargs.get('models', _KE... | PypiClean |
/OceanMonkey-1.0.0.tar.gz/OceanMonkey-1.0.0/README.rst | .. image:: https://raw.githubusercontent.com/chipscoco/OceanMonkey/main/artwork/logo.jpg
Overview
========
OceanMonkey is a High-Level Distributed Web Crawling and Web Scraping framework, used to
crawl websites and extract structured data from their pages. It can be used for
a wide range of purposes, from data mining... | PypiClean |
/dvh-analytics-0.5.11.tar.gz/dvh-analytics-0.5.11/dvh/modules/settings/sql_config.py | from __future__ import print_function
import time
from bokeh.models.widgets import Button, TextInput, Div, PasswordInput
from bokeh.layouts import row, column
from ..tools.io.preferences.sql import write_sql_connection_settings, validate_sql_connection, load_sql_settings,\
is_sql_connection_defined
from ..tools.io.... | PypiClean |
/ndn-bootstrap-0.1.post2.tar.gz/ndn-bootstrap-0.1.post2/bootstrap/ndncert/challenge_encoder.py | from typing import List
from ndn.encoding import parse_tl_num
from .protocol_v3 import *
from .cert_state import *
from ..crypto_tools import *
def get_parameter_keys(selected_challenge: str, status: int, packet_format: str) -> List[str]:
_keys = {
'possession': {
STATUS_BEFORE_CHALLENGE: {
... | PypiClean |
/pytorch_transformers-1.2.0-py3-none-any.whl/pytorch_transformers/modeling_distilbert.py | from __future__ import absolute_import, division, print_function, unicode_literals
import json
import logging
import math
import copy
import sys
from io import open
import itertools
import numpy as np
import torch
import torch.nn as nn
from pytorch_transformers.modeling_utils import PretrainedConfig, PreTrainedMode... | PypiClean |
/loo-v2020-2020.2.tar.gz/loo-v2020-2020.2/loopy/frontend/fortran/expression.py | from __future__ import division, with_statement
__copyright__ = "Copyright (C) 2013 Andreas Kloeckner"
__license__ = """
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, inclu... | PypiClean |
/django-cruds-padminlte-0.0.13a5.tar.gz/django-cruds-padminlte-0.0.13a5/cruds_adminlte/static/ckeditor/plugins/specialchar/dialogs/lang/eo.js | /*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","eo",{euro:"Eŭrosigno",lsquo:"Supra 6-citilo",rsquo:"Supra 9-citilo",ldquo:"Supra 66-citilo",rdquo:"Supra 99-citilo",ndash:"Streketo",m... | PypiClean |
/edg-0.0.1.tar.gz/edg-0.0.1/electronics_lib/JlcInductor.py | from typing import *
import re
from electronics_abstract_parts import *
from .JlcPart import DescriptionParser, JlcTableSelector
class JlcInductor(TableInductor, SmdStandardPackageSelector, JlcTableSelector):
PACKAGE_FOOTPRINT_MAP = {
'0402': 'Inductor_SMD:L_0402_1005Metric',
'0603': 'Inductor_SMD:L_0603_1... | PypiClean |
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/corruption/objects/CoverPoint.py | import dataclasses
import struct
import typing
from retro_data_structures.game_check import Game
from retro_data_structures.properties.base_property import BaseObjectType
from retro_data_structures.properties.corruption.archetypes.EditorProperties import EditorProperties
@dataclasses.dataclass()
class CoverPoint(Bas... | PypiClean |
/RsCMPX_WcdmaMeas-4.0.185.tar.gz/RsCMPX_WcdmaMeas-4.0.185/RsCMPX_WcdmaMeas/Implementations/WcdmaMeas/Prach/State/All.py | from typing import List
from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Types import DataType
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle
from ..... import enums
... | PypiClean |
/django_core_helpers-0.1.3-py3-none-any.whl/core_helpers/db/fields/core.py | import uuid
from django.core.exceptions import ValidationError
from django.db.models import BooleanField, DateTimeField
from django.db.models import UUIDField as _UUIDField
from django.utils.translation import gettext_lazy as _
class AutoCreatedField(DateTimeField):
"""
AutoCreatedField
By default, sets... | PypiClean |
/strfseconds-0.0.0b1-py3-none-any.whl/strfseconds.py | def strfseconds(seconds, formatstring='%h2:%m2:%s2', ndecimal=3):
"""Convert seconds to units of time.
:param float or int seconds: The seconds to format
:param str formatstring: The formatstring containing the format specifiers.
Time units are:
%w for weeks
%d for days
%h for... | PypiClean |
/django-vpos-0.1.4.tar.gz/django-vpos-0.1.4/vpos/configs.py | from django.conf import settings
from django.utils.translation import gettext_lazy as _
from vpos.exceptions import VposConfigurationError as Err
DEFAULTS: dict = {
# required
'POS_ID': None,
'TOKEN': None,
'URL': None,
'MODE': 'production',
# optionals
# fees expect a tuple in this order... | PypiClean |
/apache-superset_qwerty-2.0.11.tar.gz/apache-superset_qwerty-2.0.11/superset-frontend/plugins/plugin-chart-table/README.md | <!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this... | PypiClean |
/parameters-validation-1.2.0.tar.gz/parameters-validation-1.2.0/parameters_validation/builtin_validations.py | from numbers import Number
from typing import Sized
from parameters_validation.parameter_validation_decorator import parameter_validation
@parameter_validation
def strongly_typed(param: object, arg_name: str, arg_type: type):
"""
Validation to reject null, empty or blank strings.
>>> from parameters_val... | PypiClean |
/nautobot_dns_records-0.2.0-py3-none-any.whl/nautobot_dns_records/migrations/0003_srvrecord.py |
import django.core.serializers.json
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import nautobot.extras.models.mixins
import nautobot.extras.models.statuses
import nautobot_dns_records.validators
import taggit.managers
import uuid
class Migration(migrations.... | PypiClean |
/django-skylark-0.4.6.tar.gz/django-skylark-0.4.6/src/skylark/templates/chirp/media/dojox/image/Badge.js | if(!dojo._hasResource["dojox.image.Badge"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["dojox.image.Badge"] = true;
dojo.provide("dojox.image.Badge");
dojo.experimental("dojox.image.Badge");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
do... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/integrations/v1alpha/get_certificate.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from . import outputs
__all__ = [
'GetCertificateResult',
'AwaitableGetCertificateResult',
'get_certificate',
'get_certificate_output',
]
@pu... | PypiClean |
/autogluon.tabular-0.7.0b20230217-py3-none-any.whl/autogluon/tabular/models/catboost/catboost_utils.py | import logging
from autogluon.core.constants import BINARY, MULTICLASS, REGRESSION, SOFTCLASS
logger = logging.getLogger(__name__)
# TODO: Add weight support?
# TODO: Can these be optimized? What computational cost do they have compared to the default catboost versions?
class CustomMetric:
def __init__(self, me... | PypiClean |
/phenotrex-0.6.0.tar.gz/phenotrex-0.6.0/docs/usage.rst | ==============
Usage Tutorial
==============
The following tutorial illustrates training, evaluation, inference and model introspection with phenotrex
using the phenotrex command line interface. For further information on flags and parameters used
in this tutorial, please consult the relevant CLI documentation availab... | PypiClean |
/open-aea-web3-6.0.1.tar.gz/open-aea-web3-6.0.1/web3/tools/benchmark/main.py | import argparse
import asyncio
from collections import (
defaultdict,
)
import logging
import sys
import timeit
from typing import (
Any,
Callable,
Dict,
Union,
)
from eth_typing import (
ChecksumAddress,
)
from web3 import (
AsyncHTTPProvider,
AsyncWeb3,
HTTPProvider,
Web3,
)
... | PypiClean |
/oslo.policy-4.2.1-py3-none-any.whl/oslo_policy/opts.py |
import copy
from oslo_config import cfg
from oslo_policy._i18n import _
__all__ = [
'list_opts',
'set_defaults',
]
_option_group = 'oslo_policy'
_options = [
cfg.BoolOpt('enforce_scope',
default=False,
help=_('This option controls whether or not to enforce scope '
... | PypiClean |
/ctreport_selenium-1.1.4-py3-none-any.whl/ctreport_selenium/ctreport_html/testdetail/details.py | from ctreport_selenium.ctreport_html.properties import status, priority, severity
from ctreport_selenium.utility_classes import Status, Severity
def screenshot_section(test):
c = ''''''
for log in test._logs:
if log["type"] == "screenshot":
c += '''<a id="{}">
<i c... | PypiClean |
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/platform/models/catalog_change_statistics.py |
# template file: ags_py_codegen
# AccelByte Gaming Services Platform Service (4.34.0)
# pylint: disable=duplicate-code
# pylint: disable=line-too-long
# pylint: disable=missing-function-docstring
# pylint: disable=missing-module-docstring
# pylint: disable=too-many-arguments
# pylint: disable=too-many-branches
# pyl... | PypiClean |
/facenet_khairulimam-0.0.2-py3-none-any.whl/res-facenet/models.py | import torch
import torch.nn as nn
from torchvision.models import resnet50
try:
from torch.hub import load_state_dict_from_url
except ImportError:
from torch.utils.model_zoo import load_url as load_state_dict_from_url
model_urls = dict(
acc_920='https://github.com/khrlimam/facenet/releases/download/acc-0.... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/transitive_members/item/graph_application/graph_application_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 |
/cnos_connector-0.1.9.tar.gz/cnos_connector-0.1.9/cnosdb_connector/client.py | from base64 import b64encode
import json
import logging
from urllib.request import urlopen, Request
from urllib.error import HTTPError as UrlLibHTTPError
from .error import HTTPError, DatabaseError
error_msgs = {
400: "parameter error",
401: "authorization error",
404: "api not found",
500: "internal... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/normalize-path/README.md | # normalize-path [](https://www.npmjs.com/package/normalize-path) [](https://npmjs.org/package/normalize-path) [.push([[17184],{32594:function(e,t,i){i.d(t,{U:function(){return n}});var n=function(e){return e.stopPropagation()}},57793:function(e,t,i){var n,a=i(88962),s=i(33368),r=i(71650),o=i(82390),d=i(69205),l=i(70906),c=i(91808),u=... | PypiClean |
/qcache-0.9.3.tar.gz/qcache-0.9.3/CHANGELOG.rst | Changelog
=========
0.9.3 (2019-01-05)
------------------
* Update dependencies on lz4 and tornado
* Allow float type hinting
0.9.2 (-)
------------------
* Never released
0.9.1 (2017-11-15)
------------------
* Downgrade to Pandas 0.20.3 in an attempt to fix #14.
0.9.0 (2017-11-14)
------------------
* Numexpr filt... | PypiClean |
/python-ucam-webauth-0.9.2.tar.gz/python-ucam-webauth-0.9.2/docs/source/security.rst | Security
========
.. _checking-response-values:
Checking response values
------------------------
You *must* check the `url`, `issue`, `auth` and `sso` attributes of the
response:
* check that `url` matches the current URL being requested / is what you
expect.
Not checking `url` will allow another evil website... | PypiClean |
/scoper-1.1.0.tar.gz/scoper-1.1.0/scoper.py |
import json
import re
import sys
from urllib.parse import urlparse
class tcol:
'''tcol: contains terminal color codes; always close a colorized string by appending "tcol.RESET"'''
GREEN = '\033[92m'
RED = '\033[91m'
RESET = '\033[0m'
class ScoperCore:
def __init__(self, config="", url="", urls=[]):
'''__init_... | PypiClean |
/CAMELS_library-0.3.tar.gz/CAMELS_library-0.3/scripts/autoencoder/architecture.py | import torch
import torch.nn as nn
def weights_init(m):
"""custom weights initialization
"""
classname = m.__class__.__name__
if classname.find('Conv') != -1:
m.weight.data.normal_(0.0, 0.02)
elif classname.find('BatchNorm') != -1:
m.weight.data.normal_(1.0, 0.02)
m.bias.dat... | PypiClean |
/aimlbotkernel-1.0.4.tar.gz/aimlbotkernel-1.0.4/README.rst | AIML Chatbot kernel
===================
This is a Jupyter kernel that deploys a chatbot, implemented using the
`python-aiml`_ package. The idea was taken from the `Calysto chatbot`_ kernel.
It has been tested with Jupyter 4.x. The code works with either Python 2.7
or Python 3 (tested with Python 3.4)
Installation... | PypiClean |
/fastvarints-0.0.1.tar.gz/fastvarints-0.0.1/_skbuild/linux-x86_64-3.9/cmake-install/README.md | scikit_build_example
==============
[![Gitter][gitter-badge]][gitter-link]
| CI | status |
|----------------------|--------|
| conda.recipe | [![Conda Actions Status][actions-conda-badge]][actions-conda-link] |
| pip builds | [![Pip Actions Status][actions-pip-badge]][actions-pip-l... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayEcoMycarParkingCharginginfoSyncRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayEcoMycarParkingCharginginfoSyncModel import AlipayEcoMycarParkingCharginginfoSyncModel
class AlipayEcoMycarParkingCharginginfoSyncRequest(object):
def __init__(self, b... | PypiClean |
/collective.hostout-1.0a3.tar.gz/collective.hostout-1.0a3/collective/hostout/__init__.py |
import logging, os, tempfile, urllib2, urlparse
import setuptools.archive_util
import datetime
import zc.buildout
import zc.recipe.egg
from os.path import join
from os.path import dirname, abspath
import ConfigParser
from zc.buildout.buildout import Options, _recipe, _install_and_load
import pkg_resources
import sys
... | PypiClean |
/ql-demo-0.4.13.91.tar.gz/ql-demo-0.4.13.91/qldemo/demo.py |
## ql-demo-parse.py
## Shawn Nock, 2014
# Standard Lib
import copy
import json
import os
import re
import struct
# C-Extension wrapping Q3A Huffman Routines
import huffman
import struct
# Constants and enum maps
from qldemo.constants import *
from qldemo.data import (GameState, EntityState, PlayerState,
... | PypiClean |
/xfcs-1.1.6.tar.gz/xfcs-1.1.6/docs/usage.md | ## xfcs Usage:
------------------------------------------------
### Overview:
XFCS can read and export any data within FCS 3.0, 3.1 compliant files. Default file type output is csv.
The intent of this project is to assist others in the analysis of flow cytometry data by providing access to the data in a universally u... | PypiClean |
/upaas-admin-0.3.1.tar.gz/upaas-admin-0.3.1/upaas_admin/apps/scheduler/forms.py | from __future__ import unicode_literals
from django import forms
from django.utils.translation import ugettext_lazy as _
from upaas_admin.common.forms import CrispyMongoForm
from upaas_admin.apps.scheduler.models import ApplicationRunPlan
class ApplicationRunPlanForm(CrispyMongoForm):
submit_label = 'Start'
... | PypiClean |
/ODAMNet-1.1.0-py3-none-any.whl/odamnet/odamnet.py | # Methods
import odamnet.CTD_functions as CTD
import odamnet.WP_functions as WP
import odamnet.methods_functions as methods
# Libraries
import os
import click
from click_option_group import optgroup, RequiredMutuallyExclusiveOptionGroup
import odamnet.customClick as customClick
from alive_progress import alive_bar
imp... | PypiClean |
/django-cms-fragments-0.0.5.tar.gz/django-cms-fragments-0.0.5/cms_fragments/static/acejs/theme-twilight.js | define("ace/theme/twilight",["require","exports","module","ace/lib/dom"],function(a,b,c){b.isDark=!0,b.cssClass="ace-twilight",b.cssText=".ace-twilight .ace_editor { border: 2px solid rgb(159, 159, 159);}.ace-twilight .ace_editor.ace_focus { border: 2px solid #327fbd;}.ace-twilight .ace_gutter { background: #e8e8e8;... | PypiClean |
/django-divier-0.6.tar.gz/django-divier-0.6/django/views/generic/dates.py | import datetime
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db import models
from django.http import Http404
from django.utils import timezone
from django.utils.functional import cached_property
from django.utils.translation import gettext as _
from django.views... | PypiClean |
/grug_test-0.0.7.tar.gz/grug_test-0.0.7/grug_test/__dependencies__/__sources__/informative_iterator/README.md | # What is this?
I wanted a light, clean, configurable alternative to tqdm. So I made one, complete with animations.
<img width="1724" alt="Screen Shot 2022-07-03 at 8 30 01 PM" src="https://user-images.githubusercontent.com/17692058/177068705-9efc56d3-4300-4982-a07a-6db9aa61df8d.png">
# How do I use this?
`pip ins... | PypiClean |
/microsoft-bing-visualsearch-1.0.0.tar.gz/microsoft-bing-visualsearch-1.0.0/visual_search_client/aio/_configuration.py |
from typing import Any, TYPE_CHECKING
from azure.core.configuration import Configuration
from azure.core.pipeline import policies
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential
VERSION = "unknown"
class VisualSearchClientCon... | PypiClean |
/robotframework_robocop-2.2.0-py3-none-any.whl/robocop/checkers/naming.py | import re
from collections import defaultdict
from pathlib import Path
from robot.api import Token
from robot.parsing.model.blocks import Keyword
from robot.parsing.model.statements import Arguments, KeywordCall
from robocop.checkers import VisitorChecker
from robocop.rules import Rule, RuleParam, RuleSeverity
from r... | PypiClean |
/django_denorm_iplweb-1.1.1-py3-none-any.whl/denorm/migrations/0001_squashed_0012_alter_dirtyinstance_object_id.py |
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
replaces = [
("denorm", "0001_initial"),
("denorm", "0002_dirtyinstance_func_name"),
("denorm", "0003_auto_20211002_1955"),
("denorm", "0004_alter_dirtyinstance_succes... | PypiClean |
/sematic_ee-0.0.1-py3-none-any.whl/sematic/api/endpoints/request_parameters.py | import json
import logging
from http import HTTPStatus
from typing import Callable, Dict, List, Literal, Optional, Tuple, Union, cast
# Third-party
import flask
import sqlalchemy
from sqlalchemy.sql.elements import BooleanClauseList, ColumnElement
logger = logging.getLogger(__name__)
# Default page size
DEFAULT_LIMI... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/fitbenchmarking/results_processing/emissions_table.py | import os
from fitbenchmarking.results_processing.base_table import Table
class EmissionsTable(Table):
r"""
The emissions (kg CO\ :sub:`2`\ eq) results are calculated
from an average (over num_runs) using the
`codecarbon <https://mlco2.github.io/codecarbon/index.html>`_ module.
num_runs is set ... | PypiClean |
/pulumi_alicloud-3.44.0a1693632188.tar.gz/pulumi_alicloud-3.44.0a1693632188/pulumi_alicloud/ecs/get_auto_snapshot_policies.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
__all__ = [
'GetAutoSnapshotPoliciesResult',
'AwaitableGetAutoSnapshotPoliciesResult',
'get_auto_snapshot_policies',
'get... | PypiClean |
/lookout_sdk-0.6.3-py3-none-any.whl/lookout/sdk/event_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
from google.p... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/AlipayCommerceTransportIntelligentizeOdanalysisCreateModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.OdAnalysisLineInfo import OdAnalysisLineInfo
class AlipayCommerceTransportIntelligentizeOdanalysisCreateModel(object):
def __init__(self):
self._city_code = None
self._corp_id = None
self._ext_par... | PypiClean |
/confine-controller-1.0.2.tar.gz/confine-controller-1.0.2/controller/apps/firmware/plugins/usbimage.py | import os
from django import forms
from controller.utils.paths import get_site_root
from controller.utils.system import run
from api import serializers
from firmware.image import Image
from firmware.plugins import FirmwarePlugin
from firmware.settings import FIRMWARE_PLUGINS_USB_IMAGE
usb_image = FIRMWARE_PLUGINS_... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AlipayOpenPublicPayeeBindDeleteRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayOpenPublicPayeeBindDeleteModel import AlipayOpenPublicPayeeBindDeleteModel
class AlipayOpenPublicPayeeBindDeleteRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/bpy36-1.0.0-py3-none-any.whl/bpy2/2.79/scripts/addons/camera_turnaround.py |
bl_info = {
"name": "Turnaround Camera",
"author": "Antonio Vazquez (antonioya)",
"version": (0, 2, 5),
"blender": (2, 68, 0),
"location": "View3D > Toolshelf > Turnaround camera",
"description": "Add a camera rotation around selected object",
"wiki_url": "https://wiki.blender.org/index.php... | PypiClean |
/odoo13_addon_base_geoengine-13.0.1.0.3-py3-none-any.whl/odoo/addons/base_geoengine/geo_operators.py | import logging
from .fields import GeoField
UNION_MAPPING = {"|": "OR", "&": "AND"}
logger = logging.getLogger("geoengine.sql.debug")
# TODO Refactor geo_search and dry up the get_**_sql code
def _get_geo_func(model, domain):
"""Map operator to function we do not want to override __getattr__"""
current_fi... | PypiClean |
/corelink-0.0.5.tar.gz/corelink-0.0.5/src/corelink/resources/control.py | from . import variables
from .reqs import retrieve, request_func
async def auth() -> int:
"""Authenticates user with values in the object
:return: token
"""
request = {
"function": "auth",
"username": variables.user,
"password": variables.password
}
response = retrieve(... | PypiClean |
/trytond_stock-6.8.2-py3-none-any.whl/trytond/modules/stock/inventory.py | from collections import defaultdict
from sql import Null
from trytond.i18n import gettext
from trytond.model import (
Check, Index, Model, ModelSQL, ModelView, Workflow, fields)
from trytond.model.exceptions import AccessError
from trytond.pool import Pool
from trytond.pyson import Bool, Eval, If
from trytond.too... | PypiClean |
/svnplus-3.19.1.tar.gz/svnplus-3.19.1/README | THIS PYTHON PACKAGE IS A hook FOR subversion AND IS NOT MEANT TO BE RUN
FROM THE COMMAND LINE UNDER NORMAL USAGE.
Very configurable, very easy to install.
Prerequisites:
python2.7
subversion
apache/httpd - optional
mod_dav_svn - optional if apache is installed
Essentially you must hav... | PypiClean |
/cr-vision-0.1.0.tar.gz/cr-vision-0.1.0/src/cr/vision/core/contour.py | import numpy as np
import cv2
from . import colors as crv_colors
class Contour:
'''
Various parameters related to a contour
'''
def __init__(self, contour):
self._contour = contour
self._moments = cv2.moments(contour)
def moments(self):
'''Returns all the moments for a co... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_nl-cw.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 |
/clima-0.7.10.tar.gz/clima-0.7.10/README.md | <img src="https://raw.githubusercontent.com/d3rp/clima/master/clima.png" align="left" /> Create a command line interface with minimal setup.
[](https://pypi.org/project/clima/)
[]()
[:
... | PypiClean |
/e-fonenana-frontend-20190305.1.tar.gz/e-fonenana-frontend-20190305.1/hass_frontend/19d81aa3bd198f084dd6.chunk.js | (window.webpackJsonp=window.webpackJsonp||[]).push([[66],{159:function(module,__webpack_exports__,__webpack_require__){"use strict";var _compute_object_id__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(177);__webpack_exports__.a=stateObj=>stateObj.attributes.friendly_name===void 0?Object(_compute_object_id__WEBPACK_I... | PypiClean |
/lxd_client-1.0.0-py3-none-any.whl/lxd_client/models/window_size_change_request.py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..models.args import Args
from ..types import UNSET, Unset
T = TypeVar("T", bound="WindowSizeChangeRequest")
@attr.s(auto_attribs=True)
class WindowSizeChangeRequest:
"""Control (window size change)
Attributes:
command (Unio... | PypiClean |
/azure_ai_ml-1.9.0-py3-none-any.whl/azure/ai/ml/_restclient/v2022_12_01_preview/operations/_code_versions_operations.py | from typing import TYPE_CHECKING
from msrest import Serializer
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.paging import ItemPaged
from azure.core.pipeline import PipelineResponse
from azure.core.pipeline.transpo... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/caniuse-lite/data/regions/KW.js | module.exports={D:{"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.003642,"35":0,"36":0.010926,"37":0,"38":0.003642,"39":0,"40":0,"41":0.003642,"42":0,"43":0... | PypiClean |
/localcosmos_server-0.16.1-py3-none-any.whl/localcosmos_server/template_content/static/template_content/ckeditor5-build-classic/translations/ne.js | (function(e){const t=e["ne"]=e["ne"]||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 मध्ये %1","Align cell text to the bottom":"","Align cell text to the center":"","Align cell text to the left":"","Align cell text to the middle":"","Align cell text to the right":"","Align cell text to the top":"","Alig... | PypiClean |
/steelscript.appresponse-2.0.2.tar.gz/steelscript.appresponse-2.0.2/steelscript/appresponse/core/reports.py |
import time
import logging
from collections import OrderedDict
from steelscript.appresponse.core.types import AppResponseException, \
TimeFilter, ResourceObject, Key, Value
from steelscript.appresponse.core.clips import Clip
from steelscript.appresponse.core.fs import File
from steelscript.appresponse.core.capt... | PypiClean |
/zoi-python-sdk-1.0.1.tar.gz/zoi-python-sdk-1.0.1/zohosdk/src/com/zoho/officeintegrator/v1/create_document_parameters.py | try:
from zohosdk.src.com.zoho.exception import SDKException
from zohosdk.src.com.zoho.util import StreamWrapper, Constants
except Exception:
from ...exception import SDKException
from ...util import StreamWrapper, Constants
class CreateDocumentParameters(object):
def __init__(self):
"""Creates an instance of ... | PypiClean |
/tpds_extension_ta010_support-1.5.4-py3-none-any.whl/tpds_extension/ta010_support/frontend/assets/js/plugins.js | (function() {
var method;
var noop = function () {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
'timelin... | PypiClean |
/typegraph_std-0.0.1.tar.gz/typegraph_std-0.0.1/typegraph_std/google/groupssettings.py | from typegraph import t
from box import Box
from typegraph.importers.base.importer import Import
from typegraph.runtimes.http import HTTPRuntime
def import_groupssettings() -> Import:
groupssettings = HTTPRuntime("https://www.googleapis.com/")
renames = {
"ErrorResponse": "_groupssettings_1_ErrorResp... | PypiClean |
/jdcloud_sdk-1.6.243.tar.gz/jdcloud_sdk-1.6.243/jdcloud_sdk/services/waf/models/LbConf.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 |
/DeepPhysX-22.6.tar.gz/DeepPhysX-22.6/src/Visualizer/VedoVisualizer.py | from typing import List, Any, Dict, Union
from os.path import join as osPathJoin
from os import makedirs
from vedo import Plotter, Text2D, show
from DeepPhysX.Core.Visualizer.VedoObjects import VedoObjects, ObjectDescription
Viewers = Dict[int, Dict[str, Union[str, List[Any], bool, Plotter]]]
class VedoVisualizer:
... | PypiClean |
/future-0.18.3.tar.gz/future-0.18.3/src/libfuturize/fixes/fix_next_call.py | from lib2to3.pgen2 import token
from lib2to3.pygram import python_symbols as syms
from lib2to3 import fixer_base
from lib2to3.fixer_util import Name, Call, find_binding
bind_warning = "Calls to builtin next() possibly shadowed by global binding"
class FixNextCall(fixer_base.BaseFix):
BM_compatible = True
PAT... | PypiClean |
/cpg-utils-ms-1.3.5.tar.gz/cpg-utils-ms-1.3.5/README.md | # cpg-utils-ms
This is a Python library containing convenience functions that are specific to the CPG.
In order to install the library, run:
```bash
pip install cpg-utils-ms
```
To use the library, import functions like this:
```python
from cpg_utils.cloud import email_from_id_token
_email_string = email_from_id_... | PypiClean |
/odoo14_addon_mrp_subcontracting_inhibit-14.0.1.1.1-py3-none-any.whl/odoo/addons/mrp_subcontracting_inhibit/readme/USAGE.rst | #. Go to *Inventory > Configuration > Routes* and edit 'Buy' rule and check 'Subcontracting inhibit'.
#. Go to *Inventory > Products > Product* and create some product called 'Subcontract product'.
#. Go to *Inventory > Products > Product* and create other product called 'Component'.
#. Go to *Manufacturing > Products ... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.