id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/pythondata_misc_opentitan-0.0.post5512-py3-none-any.whl/pythondata_misc_opentitan/resources/hw/vendor/lowrisc_ibex/vendor/google_riscv-dv/pygen/pygen_src/riscv_data_page_gen.py | import logging
import vsc
import random
from collections import defaultdict
from pygen_src.riscv_instr_pkg import pkg_ins, data_pattern_t
from pygen_src.riscv_instr_gen_config import cfg
@vsc.randobj
class riscv_data_page_gen:
def __init__(self):
self.data_page_str = []
self.mem_region_setting = d... | PypiClean |
/pygame_widgets-1.1.1-py3-none-any.whl/pygame_widgets/slider.py | import pygame
from pygame import gfxdraw
import math
import pygame_widgets
from pygame_widgets.widget import WidgetBase
from pygame_widgets.mouse import Mouse, MouseState
class Slider(WidgetBase):
def __init__(self, win, x, y, width, height, **kwargs):
super().__init__(win, x, y, width, height)
... | PypiClean |
/django_mysql-4.11.0.tar.gz/django_mysql-4.11.0/src/django_mysql/rewrite_query.py | from __future__ import annotations
import operator
import re
from collections import OrderedDict
from functools import reduce
# The rewrite comments contain a single quote mark that would need be escaped
# if entered in a column name or something like that. We aren't too worried
# about SQL injection since data is no... | PypiClean |
/Ajango-1.0.0.tar.gz/Ajango-1.0.0/ajango/core/factory.py | import importlib
from django.core.management.base import CommandError
from django.core.exceptions import ImproperlyConfigured
from django.utils.termcolors import make_style
from django.core.management.color import supports_color
from django.conf import settings
from abc ... | PypiClean |
/create-discord-bot-0.10.tar.gz/create-discord-bot-0.10/src/creatediscordbot/bot_template/cogs/admin/admin.py | import logging
import discord
from discord.ext import commands
from settings import COGS_FOLDER
from .controller import AdminController
from .converter import ActivityTypeConverter
logger = logging.getLogger(__name__)
class Admin(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.contr... | PypiClean |
/finary_assistant-0.2.1-py3-none-any.whl/finary_assistant/portfolio/targets.py | import numpy as np
from .hierarchy import Hierarchy
class Target(Hierarchy):
RESULT_NOK = {"name": "Not OK", "symbol": "×", "color": "red"}
RESULT_OK = {"name": "OK", "symbol": "✓", "color": "green"}
RESULT_TOLERATED = {"name": "Tolerated", "symbol": "≈", "color": "yellow"}
RESULT_INVEST = {"name": "... | PypiClean |
/lightning-grid-0.8.81.tar.gz/lightning-grid-0.8.81/grid/cli/cli/grid_ssh_keys.py | from pathlib import Path
import click
from rich.console import Console
from rich.table import Table
from grid.cli import rich_click
from grid.cli.client import Grid
@rich_click.group()
def ssh_keys() -> None:
"""Manage SSH keys."""
@ssh_keys.command()
@rich_click.argument('name', type=str, nargs=1, required=T... | PypiClean |
/bmcs-0.0.2a28-py3-none-any.whl/view/window/bmcs_tree_view_handler.py | import pickle
from bmcs.utils import \
get_outfile
from pyface.api import ImageResource
from traits.api import \
Button, Instance, WeakRef, Str
from traitsui.api import \
View, Item, HGroup, Handler, \
UIInfo, spring, VGroup, Label
from traitsui.file_dialog import \
open_file, save_file
from traits... | PypiClean |
/peft_ser-0.0.3-py3-none-any.whl/peft_ser/model/wavlm_large.py | import os
import pdb
import copy
import torch
import argparse
import loralib as lora
import transformers.models.wavlm.modeling_wavlm as wavlm
from torch import nn
from .adapter import Adapter
from torch.nn import functional as F
from transformers import AutoProcessor, WavLMModel
class WavLMEncoderLayer(nn.Module):
... | PypiClean |
/libra_core_base-0.0.27-py3-none-any.whl/libra_core/local_config.py | import os
import sys
from configparser import ConfigParser
text_type = str
class UndefinedValueError(Exception):
pass
class Undefined(object):
"""
Class to represent undefined type.
"""
pass
# Reference instance to represent undefined values
undefined = Undefined()
class Config(object):
... | PypiClean |
/bos-mint-0.5.4.tar.gz/bos-mint-0.5.4/bos_mint/bower_components/font-awesome/svg-with-js/js/fa-v4-shims.js | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global['fontawesome-free-shims'] = factory());
}(this, (function () { 'use strict';
var _WINDOW = {};
try {
if (typeof window !=... | PypiClean |
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/smart_home_tng/frontend/frontend_es5/d63ad563.js | "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[69505],{69505:function(e,r,n){n.d(r,{DD:function(){return R},Yj:function(){return B},IX:function(){return G},hu:function(){return C},f0:function(){return Y},O7:function(){return J},D8:function(){return N},kE:func... | PypiClean |
/er-calvin-1.1.1.tar.gz/er-calvin-1.1.1/calvin/runtime/north/plugins/port/queue/collect_any.py |
# Copyright (c) 2015 Ericsson AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | PypiClean |
/mess_server_january-0.0.1.tar.gz/mess_server_january-0.0.1/server/common/metaclasses.py | import dis
class ClientVerifier(type):
'''
Метакласс, проверяющий что в результирующем классе нет серверных
вызовов таких как: accept, listen. Также проверяется, что сокет не
создаётся внутри конструктора класса.
'''
def __init__(cls, clsname, bases, clsdict):
# Список методов, которые... | PypiClean |
/quant_analytics_flow-0.0.1-py3-none-any.whl/quant_analytics_flow/calculators/univariatebrownianbridge.py | import tensorflow as tf
import numpy as np
import math
class UnivariateBrownianBridge():
def __init__(self, number_time_steps):
self.number_time_steps = number_time_steps
self.left_index = np.zeros(number_time_steps, dtype=int)
self.right_index = np.zeros(number_time_steps, dtype=int)
... | PypiClean |
/troi-0.0.1rc0.tar.gz/troi-0.0.1rc0/patches/daily_jams.py | import datetime
import random
from troi import Element, Recording
import troi.listenbrainz.recs
import troi.filters
import troi.musicbrainz.recording_lookup
class DailyJamsElement(Element):
'''
Split weekly recommended recordings into 7 sets, one for each day of the week.
'''
def __init__(self, ... | PypiClean |
/mengling_tool-4.1.0.tar.gz/mengling_tool-4.1.0/mengling_tool/spider_tools/spider_tool_old.py | import traceback
from scrapy import Selector
from urllib import request
import re
import time
import requests
import json
import socket
from bs4 import BeautifulSoup
import sqlite3
import os
import sys
import ctypes.wintypes
import base64
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat... | PypiClean |
/tencentcloud-sdk-python-3.0.973.tar.gz/tencentcloud-sdk-python-3.0.973/tencentcloud/af/v20200226/models.py |
import warnings
from tencentcloud.common.abstract_model import AbstractModel
class AntiFraudCryptoFilter(AbstractModel):
"""AntiFraudCryptoFilter – 业务入参
"""
def __init__(self):
r"""
:param _CryptoType: 约定用入参,默认不涉及默认BusinessSecurityData 与BusinessCrptoData 不传
:type CryptoType: st... | PypiClean |
/pyA13-0.2.2.tar.gz/pyA13-0.2.2/README.txt | This package provide methods for controlling GPIO pins, I2C and SPI buses.
This is written for A10-Lime, but it can be used with other boards. If you do
this we cannot guarantee proper operation of the module. Before using this
package we recommend reading the article at olimex wiki:
https://www.olimex.com/wiki/A13-OL... | PypiClean |
/pulumi_linode-4.6.0a1693334256.tar.gz/pulumi_linode-4.6.0a1693334256/pulumi_linode/get_lke_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
__all__ = [
'GetLkeClusterResult',
'AwaitableGetLkeClusterResult',
'get_lke_cluster',
'get_lke_cluster_output',
]
@pulumi... | PypiClean |
/django-static-ace-builds-1.4.12.0.tar.gz/django-static-ace-builds-1.4.12.0/django_static_ace_builds/static/ace-builds/mode-jsp.js | ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),s=e("./text_highlight_rules").TextHighlightRules,o=t.supportType="align-content|align-items|align-self|all|animation... | PypiClean |
/robotframework-historic2-0.0.1.tar.gz/robotframework-historic2-0.0.1/robotframework_historic2/templates/assets/js/vendors/bootstrap.bundle.min.js | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e(t.bootstrap={},t.jQuery)}(this,function(t,e){"use strict";function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configu... | PypiClean |
/napari_plot-0.1.5-py3-none-any.whl/napari_plot/_vispy/tools/box.py | import typing as ty
import numpy as np
from vispy.scene.visuals import Mesh
from ...components.tools import BoxTool
if ty.TYPE_CHECKING:
from ...components.viewer_model import ViewerModel
class VispyBoxVisual:
"""Box visual user to select region of interest in 1d."""
def __init__(self, viewer: "Viewer... | PypiClean |
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/es-abstract/CHANGELOG.md | 1.21.1 / 2023-01-10
=================
* [Fix] move `available-typed-arrays` to runtime deps
* [Fix] `ES2021`+: `NumberToBigInt`: throw the proper error on an env without BigInts
* [Fix] `ES2018`+: `CreateAsyncFromSyncIterator`: properly check `next` method args length
* [Fix] `ES2020`-`ES2021`: Abstract Relatio... | PypiClean |
/pulumi_azure-5.50.0a1693462503.tar.gz/pulumi_azure-5.50.0a1693462503/pulumi_azure/cosmosdb/gremlin_graph.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__ = ['GremlinGraphArgs', 'GremlinGraph']
@pulumi.input_type
class GremlinGraphArgs:
def __init__(__self... | PypiClean |
/mitosheet-private-0.2.15.tar.gz/mitosheet-private-0.2.15/mitosheet/step_performers/bulk_old_rename/deprecated_utils.py |
# Copyright (c) Saga Inc.
# Distributed under the terms of the GPL License.
"""
NOTE: DO NOT CHANGE THIS FILE. THESE ARE DEPRECATED UTILS
THAT CANNOT CHANGE AND SO SHOULD NEVER BE CHANGED.
"""
import numbers
import re
from typing import Any, Callable, Dict, List
from mitosheet.telemetry.telemetry_utils import log
i... | PypiClean |
/dane_server-0.3.1-py3-none-any.whl/dane_server/server.py |
import os
import logging
from logging.handlers import TimedRotatingFileHandler
from dane_server.handler import Handler
from dane_server.RabbitMQListener import RabbitMQListener
from dane_server.RabbitMQPublisher import RabbitMQPublisher
from dane import Task
from dane.config import cfg
import threading
def main():
... | PypiClean |
/wmagent-2.2.4rc3.tar.gz/wmagent-2.2.4rc3/src/python/WMCore/BossAir/StatusPoller.py | from future.utils import listvalues
import time
import logging
import threading
from collections import defaultdict
from Utils.IteratorTools import flattenList
from Utils.Timers import timeFunction
from WMCore.WMException import WMException
from WMCore.WMExceptions import WM_JOB_E... | PypiClean |
/chess_analytica-1.0.6-py3-none-any.whl/chess_analytica/Board.py | import chess.pgn
import io
def retrieve_info(PGN: str) :
"""
Function that takes in the PGN (in the format provided by the Chess.com API) and extracts info about the game including the date, white player, black elo, time control, etc...
Parameters
----------
PGN : str
the PGN (in the forma... | PypiClean |
/souswift_core-3.1.1-py3-none-any.whl/souswift_core/exc/exceptions.py | import http
from typing import NamedTuple, final
from souswift_core.utils import deprecated
class _Response(NamedTuple):
message: str
status_code: int
def _append_exclamation_mark(message: str):
return message if message.endswith('!') else f'{message}!'
class APIError(Exception):
_status = http.H... | PypiClean |
/fds.sdk.FundsAPIforDigitalPortals-0.10.0-py3-none-any.whl/fds/sdk/FundsAPIforDigitalPortals/model/inline_response2004_instrument_nsin.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.FundsAPIforDigitalPortals.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,... | PypiClean |
/PyQt5-5.15.8.tar.gz/PyQt5-5.15.8/examples/quick/scenegraph/customgeometry/customgeometry.py |
#############################################################################
##
## Copyright (C) 2013 Riverbank Computing Limited.
## Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
##
## This file is part of the examples of PyQt.
##
## $QT_BEGIN_LICENSE:BSD$
## You may use this file under the terms of the... | PypiClean |
/linkkt_e2e_handlers-0.1.4-py3-none-any.whl/linkkt_e2e_handlers/utils/tiingo_api.py | import time
import maya
import datetime as dateeee
from maya import MayaDT
from patman import Patman
from typing import Any
class TiingoAPI(Patman):
def __init__(self, host:str, token=""):
super().__init__(host)
self._token = token
self._period = ""
self._freq = "1min"
@pro... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/costmanagement/v20191101/_enums.py |
from enum import Enum
__all__ = [
'AccumulatedType',
'ChartType',
'ExportType',
'FormatType',
'FunctionType',
'GranularityType',
'KpiTypeType',
'MetricType',
'OperatorType',
'PivotTypeType',
'QueryColumnType',
'RecurrenceType',
'ReportConfigColumnType',
'ReportG... | PypiClean |
/rpi3.torch-0.1.0-cp35-cp35m-linux_armv7l.whl/torch/legacy/nn/DepthConcat.py |
import math
import torch
from .Concat import Concat
class DepthConcat(Concat):
def windowNarrow(self, output, currentOutput, offset):
outputWindow = output.narrow(self.dimension, offset, currentOutput.size(self.dimension))
for dim in range(len(self.outputSize)):
currentSize = current... | PypiClean |
/solara_assets-1.19.0.tar.gz/solara_assets-1.19.0/cdn/echarts@5.4.0/theme/blue.js | (function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['exports', 'echarts'], factory);
} else if (
typeof exports === 'object' &&
typeof exports.nodeName !== 'string'
) {
// CommonJS
facto... | PypiClean |
/smartautomatic_server_frontend-20220907.2-py3-none-any.whl/sas_frontend/frontend_latest/66f74254.js | "use strict";(self.webpackChunksmartautomatic_server_frontend=self.webpackChunksmartautomatic_server_frontend||[]).push([[11659,63519,49949,7280,89301,36039,9703,63626,89411,35660,9927,63141,88097,75489,7093,41922,92441,75337,7059,41158,65338,3123,55826],{18601:(e,t,i)=>{i.d(t,{qN:()=>d.q,Wg:()=>n});var r,c,a=i(87480),... | PypiClean |
/ibm-watson-openscale-cli-tool-3.5.54.tar.gz/ibm-watson-openscale-cli-tool-3.5.54/README.md | # ibm-watson-openscale-cli

[](https://pypi.python.org/pypi/ibm-watson-openscale-cli-tool)
IBM Watson Openscale "express path" configuration tool. This tool allows the user ... | PypiClean |
/jetson-stats-4.2.3.tar.gz/jetson-stats-4.2.3/jtop/core/jetson_variables.py |
import os
import re
import sys
import warnings
import logging
from shutil import copyfile
try:
from smbus2 import SMBus # pyright: ignore[reportMissingImports]
except ImportError:
print("Skip for setup.py")
from .common import cat
from .command import Command
# Create logger
logger = logging.getLogger(__name... | PypiClean |
/bpy36-1.0.0-py3-none-any.whl/bpy2/2.79/scripts/addons/mesh_snap_utilities_line.py |
# Contact for more information about the Addon:
# Email: germano.costa@ig.com.br
# Twitter: wii_mano @mano_wii
bl_info = {
"name": "Snap Utilities Line",
"author": "Germano Cavalcante",
"version": (5, 7, 2),
"blender": (2, 75, 0),
"location": "View3D > TOOLS > Snap Utilities > snap utilities",... | PypiClean |
/h2o_pysparkling_2.1-3.32.1.7-1.tar.gz/h2o_pysparkling_2.1-3.32.1.7-1/ai/h2o/sparkling/ExternalBackendConf.py |
import warnings
from ai.h2o.sparkling.SharedBackendConfUtils import SharedBackendConfUtils
class ExternalBackendConf(SharedBackendConfUtils):
#
# Getters
#
def h2oClusterHost(self):
return self._get_option(self._jconf.h2oClusterHost())
def h2oClusterPort(self):
return self._get... | PypiClean |
/pyramid_straw-0.0.4.tar.gz/pyramid_straw-0.0.4/pyramid_straw/panel/debugpanel_wsgi_app/static/pev/lib/router.js | "format register";
System.register("angular2/src/router/router_link_transform", ["angular2/compiler", "angular2/src/core/change_detection/parser/ast", "angular2/src/facade/exceptions", "angular2/core", "angular2/src/core/change_detection/parser/parser"], true, function(require, exports, module) {
var global = System.... | PypiClean |
/cuquantum_python_cu11-23.6.0-cp311-cp311-manylinux2014_x86_64.whl/cuquantum/cutensornet/memory.py | __all__ = ['BaseCUDAMemoryManager', 'MemoryPointer']
from abc import abstractmethod
from typing import Protocol, runtime_checkable
import weakref
import cupy as cp
from ._internal import utils
class MemoryPointer:
"""
An RAII class for a device memory buffer.
Args:
device_ptr: The address of t... | PypiClean |
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/ec2/get_security_group.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__ = [
'GetSecurityGroupResult',
'AwaitableGetSecurityGroupResult',
'get_security_group',
'ge... | PypiClean |
/Nuphy-0.2.17.tar.gz/Nuphy-0.2.17/nuphy/kinematics.py |
import sys # print stderr
_DEBUG=0
from math import sin,cos,tan,pi,sqrt,asin,atan
def _REACT( op_amu,op_mex,ot_amu,ot_mex,oo_amu,oo_mex,oor_amu,oor_mex, TKE=21.0, ExcT=0,theta=10.0,silent=0, output="all" ):
if TKE==0:
print("X... TKE is zero.... quit")
quit()
... | PypiClean |
/pretixGWW-10.4.1.tar.gz/pretixGWW-10.4.1/pretix/static.dist/pretixbase/js/asynctask.js | var async_task_id = null;
var async_task_timeout = null;
var async_task_check_url = null;
var async_task_old_url = null;
var async_task_is_download = false;
var async_task_is_long = false;
function async_task_check() {
"use strict";
$.ajax(
{
'type': 'GET',
'url': async_task_che... | PypiClean |
/trulioo_sdk-1.0.4-py3-none-any.whl/trulioo_sdk/model/business_search_response.py | import re # noqa: F401
import sys # noqa: F401
from trulioo_sdk.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
va... | PypiClean |
/cubicweb-seda-0.24.0.tar.gz/cubicweb-seda-0.24.0/cubicweb_seda/schema/__init__.py | """cubicweb-seda schema"""
from yams.buildobjs import RelationType, RelationDefinition
from yams.buildobjs import String
from cubicweb import _
from cubicweb.schema import ERQLExpression, RRQLExpression, RQLConstraint
from cubicweb_skos import schema as skos
from .xsd2yams import MULTIPLE_CHILDREN
_("1")
_("0..1")... | PypiClean |
/prismstudio-1.2.0-py38-none-any.whl/prism/_core/_req_builder/_universe.py | import copy
import requests
from typing import Union
from ..._common.config import *
from ..._common.const import UniverseFrequencyType as _UniverseFrequencyType
from ._list import _list_dataitem
from .preference import get_quiet_mode
from ..._utils import (
_validate_args,
get,
post,
patch,
delete... | PypiClean |
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/smart_home_tng/frontend/frontend_es5/7fb71e60.js | (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[46732],{82918:function(t,e,i){var n,a,o;function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&... | PypiClean |
/notebooksmz-7.0.0-py3-none-any.whl/notebook/static/components/MathJax/localization/he/MathMenu.js | MathJax.Localization.addTranslation("he","MathMenu",{version:"2.7.8",isLoaded:true,strings:{Show:"\u05DC\u05D4\u05E6\u05D9\u05D2 \u05E0\u05D5\u05E1\u05D7\u05D0\u05D5\u05EA \u05D1\u05EA\u05D5\u05E8",MathMLcode:"\u05E7\u05D5\u05D3 MathML",OriginalMathML:"MathML \u05DE\u05E7\u05D5\u05E8\u05D9",TeXCommands:"\u05E4\u05E7\u0... | PypiClean |
/flywheel_healthcare_api-0.1.2-py3-none-any.whl/flywheel_healthcare_api/client.py | import time
import google.auth
from google.auth.transport.requests import Request
from google.oauth2.credentials import Credentials
from googleapiclient import discovery
from googleapiclient.discovery import Resource
from requests.compat import basestring, urlencode, urlunparse
from requests.utils import requote_uri, ... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayUserAntarchiveFaceQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayUserAntarchiveFaceQueryModel import AlipayUserAntarchiveFaceQueryModel
class AlipayUserAntarchiveFaceQueryRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/dsin100daysv36-6.0.1.tar.gz/dsin100daysv36-6.0.1/notebook/static/components/MathJax/jax/element/mml/optable/SuppMathOperators.js | (function(a){var c=a.mo.OPTYPES;var b=a.TEXCLASS;MathJax.Hub.Insert(a.mo.prototype,{OPTABLE:{prefix:{"\u2A03":c.OP,"\u2A05":c.OP,"\u2A07":c.OP,"\u2A08":c.OP,"\u2A09":c.OP,"\u2A0A":c.OP,"\u2A0B":c.INTEGRAL2,"\u2A0C":c.INTEGRAL,"\u2A0D":c.INTEGRAL2,"\u2A0E":c.INTEGRAL2,"\u2A0F":c.INTEGRAL2,"\u2A10":c.OP,"\u2A11":c.OP,"\u... | PypiClean |
/moin-1.9.11.tar.gz/moin-1.9.11/MoinMoin/search/results.py | import StringIO, time
from MoinMoin import wikiutil
from MoinMoin.Page import Page
############################################################################
### Results
############################################################################
class Match(object):
""" Base class for all Matches (found piec... | PypiClean |
/Pyomo-6.6.2-cp39-cp39-win_amd64.whl/pyomo/scripting/pyomo_parser.py |
__all__ = ['add_subparser', 'get_parser', 'subparsers']
import argparse
import sys
#
# Sort sub_parser names, since these are inserted throughout Pyomo
#
# NOTE: This may not be robust to different versions of argparse. We're
# mucking with a non-public API here ...
#
class CustomHelpFormatter(argparse.RawDescript... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/examples/convection/exponential1D/mesh1D.py |
r"""Solve the steady-state convection-diffusion equation in one dimension.
This example solves the steady-state convection-diffusion equation
given by
.. math::
\nabla \cdot \left(D \nabla \phi + \vec{u} \phi \right) = 0
with coefficients :math:`D = 1` and :math:`\vec{u} = 10\hat{\i}`, or
>>> diffCoeff = 1.
>... | PypiClean |
/link.crdt-1.0.tar.gz/link.crdt-1.0/link/crdt/test/map.py |
from link.crdt.test.base import UTCase
from unittest import main
from link.crdt.map import Map
class TestMap(UTCase):
def test_default(self):
crdt = Map()
self.assertEqual(crdt.current, {})
def test_enable(self):
expected = {
'a_counter': 5,
'b_flag': False,
... | PypiClean |
/cognitivefactory_interactive_clustering_gui-0.4.1-py3-none-any.whl/cognitivefactory/interactive_clustering_gui/js/status.js | * EVENT: On window loading.
* DESCRIPTION: Initialize collapsible elements.
*/
window.addEventListener(
"load",
function(){
updateAllAccordingToProjectStatus({
projectID:document.getElementById("project_id").textContent.trim(),
})
},
)
/**
* DESCRIPTION: Display the HTML ... | PypiClean |
/megadetector-5.0.0.tar.gz/megadetector-5.0.0/archive/megadb/importer_notebooks/megadb_add_ena24.ipynb | ```
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = 'all' # default is ‘last_expr'
%load_ext autoreload
%autoreload 2
import sys
sys.path.append('/home/gramener/CameraTraps') # append this repo to PYTHONPATH
import json
import os
from collections import Counter,... | PypiClean |
/ringcentral_chatbot_server-0.1.1-py3-none-any.whl/temp/core/filedb.py | __name__ = 'filedb'
__package__ = 'ringcentral_bot_framework.core'
import pydash as _
import sys, os
import json
from .common import debug, printError
from os.path import join
from .config import configAll as conf
folderName = 'filedb'
try:
folderName = os.environ['FILEDB_FOLDER_NAME']
except:
pass
tables = list... | PypiClean |
/django-maja-newsletter-0.6.0.tar.gz/django-maja-newsletter-0.6.0/maja_newsletter/utils/newsletter.py | from BeautifulSoup import BeautifulSoup
import premailer
from django.contrib.sites.models import Site
from django.core.urlresolvers import reverse
from django.utils.encoding import smart_text
from maja_newsletter.models import Link
from maja_newsletter.settings import USE_PRETTIFY, USE_PREMAILER
def body_insertion(... | PypiClean |
/pensando_dss-1.62.2-py3-none-any.whl/pensando_dss/psm/model/cluster_distributed_service_card_spec.py | import re # noqa: F401
import sys # noqa: F401
import nulltype # noqa: F401
from pensando_dss.psm.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
... | PypiClean |
/otxdeploy-0.12.1.tar.gz/otxdeploy-0.12.1/mmdeploy/codebase/mmdet/deploy/mmdetection.py | from typing import Optional, Union
import mmcv
import torch
from mmcv.utils import Registry
from torch.utils.data import DataLoader, Dataset
from mmdeploy.utils import Codebase, get_task_type
from ...base import CODEBASE, BaseTask, MMCodebase
def __build_mmdet_task(model_cfg: mmcv.Config, deploy_cfg: mmcv.Config,
... | PypiClean |
/zettwerk.fullcalendar-0.3.1.zip/zettwerk.fullcalendar-0.3.1/zettwerk/fullcalendar/README.txt | Introduction
============
This is a full-blown functional test. The emphasis here is on testing what
the user may input and see, and the system is largely tested as a black box.
We use PloneTestCase to set up this test as well, so we have a full Plone site
to play with. We *can* inspect the state of the portal, e.g. u... | PypiClean |
/pyvndb-0.1.0-py3-none-any.whl/pydbc/py3/ldfParser.py | from antlr4 import *
from io import StringIO
import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3D")
buf.write("\u02f8\4\2\t\2\4\3\t\3\4\4\t... | PypiClean |
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_2_0/discovery_setting_broker.py | from ..broker import Broker
class DiscoverySettingBroker(Broker):
controller = "discovery_settings"
def index(self, **kwargs):
"""Lists the available discovery settings. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using... | PypiClean |
/bitsmiths_mettle-2.2.9-py3-none-any.whl/mettle/lib/dav_cache.py |
import re
class DavCache:
"""
A cache of active dav's and their associated objects.
"""
def __init__(self):
"""
Constructor.
"""
self._targ_cache = {}
self._type_cache = {}
self._regex_lookup = {}
self._func_lookup = {}
def set_regex... | PypiClean |
/brainstorm_search-0.0.1-py3-none-any.whl/brainstorm_search/main.py | from bs4 import BeautifulSoup
from collections import OrderedDict, Counter
from duckduckgo_search import ddg
from .helper import *
from math import inf
from pathlib import Path
import argparse
import concurrent.futures
import os
import pickle
import re
import requests
def main():
# Create the parser and add argumen... | PypiClean |
/eea.jquery-11.3.zip/eea.jquery-11.3/eea/jquery/plugins/masonry/masonry.pkgd.js | * Bridget makes jQuery widgets
* v1.0.1
*/
( function( window ) {
// -------------------------- utils -------------------------- //
var slice = Array.prototype.slice;
function noop() {}
// -------------------------- definition -------------------------- //
function defineBridget( $ ) {
// bail if no jQuery
... | PypiClean |
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/smart_home_tng/components/homematic/const.py | import typing
# pylint: disable=unused-variable
class Const:
"""Constants for the homematic component."""
DISCOVER_SWITCHES: typing.Final = "homematic.switch"
DISCOVER_LIGHTS: typing.Final = "homematic.light"
DISCOVER_SENSORS: typing.Final = "homematic.sensor"
DISCOVER_BINARY_SENSORS: typing.Fina... | PypiClean |
/netbox-pyswagger-0.1.2.tar.gz/netbox-pyswagger-0.1.2/README.md | # Python Swagger Client for Netbox
If you love [Netbox](https://github.com/digitalocean/netbox), you want to automate it
via the REST API, and you want a client that supports an interactive enviornment like [ipython](https://ipython.org/)
and [jupyter notesbooks](http://jupyter.org/), then this client is for you!
The... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/intl/locale-data/jsonp/de.js | IntlPolyfill.__addLocaleData({locale:"de",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:true,hour12:false,formats:{short:"{1}, {0}",medium:"{1}, {0}",full:"{1} 'um' {0}",long:"{1} 'um' {0}",availableFor... | PypiClean |
/py_messanger_r2_client-1.0.0.tar.gz/py_messanger_r2_client-1.0.0/client/client/transport.py | import socket
import time
import logging
import json
import threading
import hashlib
import hmac
import binascii
from PyQt5.QtCore import pyqtSignal, QObject
from common.utils import *
from common.variables import *
from common.errors import ServerError
# Логер и объект блокировки для работы с сокетом.
logger = loggi... | PypiClean |
/py-media-player-1.0.1.tar.gz/py-media-player-1.0.1/PyPlayer/__init__.py | # Imports
from subprocess import Popen, PIPE
from os.path import exists, join
from os import uname
from time import sleep
# Define a function to play stuff
def playfile(file:str,
player:str = "Default",
player_args:str = "",
wait:bool = True,
p... | PypiClean |
/polyaxon-lib-0.0.4.tar.gz/polyaxon-lib-0.0.4/README.md | [](https://travis-ci.org/polyaxon/polyaxon-lib)
[](https://badge.fury.io/py/polyaxon-lib)
[](LICENSE)
[;
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | PypiClean |
/brewerwall-0.3.1.tar.gz/brewerwall-0.3.1/docs/installation.rst | .. highlight:: shell
============
Installation
============
Stable release
--------------
To install brewerwall, run this command in your terminal:
.. code-block:: console
$ pip install brewerwall
This is the preferred method to install brewerwall, as it will always install the most recent stable release.
I... | PypiClean |
/django_adminlte3-0.1.6-py3-none-any.whl/adminlte3/static/admin-lte/plugins/moment/locale/si.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 |
/cdktf-cdktf-provider-google_beta-9.0.1.tar.gz/cdktf-cdktf-provider-google_beta-9.0.1/src/cdktf_cdktf_provider_google_beta/data_google_storage_object_signed_url/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from typeguard import check_type
from .._jsii import *
import cdktf as _cdktf_9a9027ec
import constructs as _constructs_77d1e7e8
class DataGoogleStorageObjectSignedUrl(
_cdktf_9a9027ec.... | PypiClean |
/leonardo-horizon-2016.8.3.tar.gz/leonardo-horizon-2016.8.3/horizon/static/framework/widgets/table/hz-select-all.directive.js | (function() {
'use strict';
angular
.module('horizon.framework.widgets.table')
.directive('hzSelectAll', hzSelectAll);
/**
* @ngdoc directive
* @name horizon.framework.widgets.table.directive:hzSelectAll
* @element input type='checkbox'
* @description
* The `hzSelectAll` directive updates... | PypiClean |
/marstr-msal-extensions-0.0.5.tar.gz/marstr-msal-extensions-0.0.5/src/msal_extensions/_windows.py | import os
import ctypes
from ctypes import wintypes
import time
import msal
import errno
from ._cache_lock import CrossPlatLock
_local_free = ctypes.windll.kernel32.LocalFree
_memcpy = ctypes.cdll.msvcrt.memcpy
_crypt_protect_data = ctypes.windll.crypt32.CryptProtectData
_crypt_unprotect_data = ctypes.windll.crypt32.C... | PypiClean |
/stem-dry-run-1.8.1.tar.gz/stem-dry-run-1.8.1/test/runner.py | import logging
import os
import shutil
import stat
import tempfile
import threading
import time
import uuid
import stem.connection
import stem.prereq
import stem.process
import stem.socket
import stem.util.conf
import stem.util.enum
import test
from test.output import println, STATUS, ERROR, SUBSTATUS, NO_NL
CONFIG ... | PypiClean |
/shmooze-1.2.4.tar.gz/shmooze-1.2.4/static/underscore.js |
(function() {
// Baseline setup
// --------------
// Establish the root object, `window` in the browser, or `global` on the server.
var root = this;
// Save the previous value of the `_` variable.
var previousUnderscore = root._;
// Establish the object that gets returned to break out of a loop itera... | PypiClean |
/moto-ext-4.2.0.post1.tar.gz/moto-ext-4.2.0.post1/moto/ec2/models/transit_gateway.py | from datetime import datetime
from typing import Any, Dict, List, Optional
from moto.core import CloudFormationModel
from moto.core.utils import iso_8601_datetime_with_milliseconds
from moto.utilities.utils import filter_resources, merge_multiple_dicts
from .core import TaggedEC2Resource
from ..utils import random_tran... | PypiClean |
/tocka-django-cms-3.1.2a0.tar.gz/tocka-django-cms-3.1.2a0/cms/south_migrations/0052_auto__add_placeholderreference__add_staticplaceholder__add_field_page_.py | import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'StaticPlaceholder'
db.create_table(u'cms_staticplaceholder', (
(u'id', self.gf('django.db.models.fields.... | PypiClean |
/Moose-0.9.9b3.tar.gz/Moose-0.9.9b3/docs/topics/azure.rst | .. _topics-conn-azure:
=============================
Azure Blob连接
=============================
.. _topics-conn-azure_blob_service
moose.connection.cloud
=========================================
.. class:: moose.connection.cloud.AzureBlobService(settings_dict)
该类实现对 ``Azure`` 云数据库的封装,对输入参数进行异常处理等操作保证程序的稳定性,对外提供统... | PypiClean |
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/render/browse/functions.py |
import logging
from uuid import uuid4
from functools import wraps
from typing import List, SupportsFloat as Numeric
import numpy as np
from eoxserver.contrib import gdal
from eoxserver.contrib import ogr
from eoxserver.contrib import gdal_array
from eoxserver.render.browse.util import convert_dtype
logger = loggin... | PypiClean |
/azure-mgmt-rdbms-10.2.0b6.zip/azure-mgmt-rdbms-10.2.0b6/azure/mgmt/rdbms/mysql/operations/_check_name_availability_operations.py | import sys
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from azure.core.pipeline import Pipeline... | PypiClean |
/Orange3-Text-1.14.0.tar.gz/Orange3-Text-1.14.0/orangecontrib/text/widgets/owwikipedia.py | from AnyQt.QtCore import Qt
from AnyQt.QtWidgets import QApplication, QGridLayout, QLabel
from Orange.widgets import gui
from Orange.widgets import settings
from Orange.widgets.widget import OWWidget, Msg, Output
from orangecontrib.text.corpus import Corpus
from orangecontrib.text.language import LANG2ISO, ISO2LANG
fr... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/web/list_connection_consent_links.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__ = [
'ListConnectionConsentLinksResult',
'AwaitableListConnectionConsentLinksResult',
'list_con... | PypiClean |
/test_poetry_vp-0.1.1-py3-none-any.whl/test_poetry_vp/trader/converter.py | from copy import copy
from typing import Dict, List
from .engine import MainEngine
from .object import (
ContractData,
OrderData,
TradeData,
PositionData,
OrderRequest
)
from .constant import Direction, Offset, Exchange
class OffsetConverter:
""""""
def __init__(self, main_engine: MainEn... | PypiClean |
/bpy_lambda-1.3.1-py3-none-any.whl/bpy_lambda/2.79/scripts/addons/io_import_dxf/__init__.py |
# <pep8 compliant>
import bpy
import os
from bpy.props import StringProperty, BoolProperty, EnumProperty, IntProperty, FloatProperty
from .dxfimport.do import Do, Indicator
from .transverse_mercator import TransverseMercator
try:
from pyproj import Proj, transform
PYPROJ = True
except:
PYPROJ = False
b... | PypiClean |
/VenC-2.0.2-py3-none-any.whl/venc2/helpers.py |
# Copyright 2016, 2020 Denis Salem
#
# This file is part of VenC.
#
# VenC 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 3 of the License, or
# (at your option) any later ve... | PypiClean |
/prelude_django_admin_toolkit-0.14.8-py3-none-any.whl/prelude_django_admin_toolkit/customizer.py | DIVIDER = 'divider'
class PreludeIndexPage(object):
def __init__(self, template_name=None, show_apps=False):
'''
Constructor of PreludeIndexPage
'''
self.template_name = template_name
self.show_apps = show_apps
def get_context(self, request):
... | PypiClean |
/machine_learning_datasets-0.1.16.4-py3-none-any.whl/machine_learning_datasets/sources/kaggle.py | import os
import json
import warnings
import sys
from zipfile import ZipFile
from ..common import runcmd
import re
from .source import Source
class Kaggle(Source):
def __init__(self, enabled=None, creds_json_path=None, creds_username=None, creds_key=None):
self.enabled = False
self.mlds =... | PypiClean |
/waymo_open_dataset_tf_2_11_0-1.6.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl/waymo_open_dataset/v2/perception/box.py | """Box label components."""
import dataclasses
import enum
from typing import Optional
import pyarrow as pa
from waymo_open_dataset.v2 import column_types
from waymo_open_dataset.v2 import component
from waymo_open_dataset.v2.perception import base
_column = component.create_column
class BoxType(enum.Enum):
""... | PypiClean |
/ramses-rf-0.22.40.tar.gz/ramses-rf-0.22.40/README.md | [](https://github.com/psf/black) [](https://circleci.com/gh/zxdavb/ramses_rf) [:
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is ... | PypiClean |
/fastapi-0.103.0.tar.gz/fastapi-0.103.0/docs/fr/docs/async.md | # Concurrence et les mots-clés async et await
Cette page vise à fournir des détails sur la syntaxe `async def` pour les *fonctions de chemins* et quelques rappels sur le code asynchrone, la concurrence et le parallélisme.
## Vous êtes pressés ?
<abbr title="'too long; didn't read' en anglais, ou 'trop long ; j'ai pa... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.