id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/bio-embeddings-allennlp-0.9.2.tar.gz/bio-embeddings-allennlp-0.9.2/allennlp/data/fields/array_field.py | from typing import Dict
import numpy
import torch
from overrides import overrides
from allennlp.data.fields.field import Field
class ArrayField(Field[numpy.ndarray]):
"""
A class representing an array, which could have arbitrary dimensions.
A batch of these arrays are padded to the max dimension length ... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/calendar/calendar_permissions/count/count_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 |
/pyonwater-0.2.5.tar.gz/pyonwater-0.2.5/README.md | # pyonwater
[EyeOnWater](eyeonwater.com) client library
The usage example:
```
import asyncio
import aiohttp
from pyonwater import Account, Client
async def main():
account = Account(
eow_hostname="eyeonwater.com",
username="your EOW login",
password="your EOW password",
metric... | PypiClean |
/co-awscli-login-0.1.0a6.tar.gz/co-awscli-login-0.1.0a6/README.rst | The awscli-login plugin allows retrieving temporary Amazon credentials by
authenticating against a SAML Identity Provider (IdP).
This application is supported under Linux, MacOS, and the `Windows Subsystem for Linux
<https://docs.microsoft.com/en-us/windows/wsl/about>`_.
Currently, Windows PowerShell, Command Prompt, a... | PypiClean |
/glmnet_py-0.1.0b2.tar.gz/glmnet_py-0.1.0b2/glmnet_py/mrelnet.py | # import packages/methods
import scipy
import ctypes
from wtmean import wtmean
from loadGlmLib import loadGlmLib
def mrelnet(x, is_sparse, irs, pcs, y, weights, offset, parm,
nobs, nvars, jd, vp, cl, ne, nx, nlam, flmin, ulam,
thresh, isd, jsd, intr, maxit, family):
# load shared fortran lib... | PypiClean |
/pyqt-top-left-right-file-list-widget-0.0.1.tar.gz/pyqt-top-left-right-file-list-widget-0.0.1/pyqt_top_left_right_file_list_widget/topLeftRightFileListWidget.py | from PyQt5.QtCore import pyqtSignal
from PyQt5.QtWidgets import QWidget, QFileDialog, QCheckBox
from pyqt_file_list_widget.fileListWidget import FileListWidget
from pyqt_svg_icon_pushbutton import SvgIconPushButton
from simplePyQt5.topLabelBottomWidget import TopLabelBottomWidget
class TopLeftRightFileListWidget(QWi... | PypiClean |
/monk_keras_cuda92_test-0.0.1.tar.gz/monk_keras_cuda92_test-0.0.1/monk/keras_prototype.py | from monk.tf_keras_1.finetune.imports import *
from monk.system.imports import *
from monk.tf_keras_1.finetune.level_14_master_main import prototype_master
class prototype(prototype_master):
'''
Main class for Mxnet Backend
Args:
verbose (int): Set verbosity levels
0 - Pr... | PypiClean |
/jittor-1.3.8.5.tar.gz/jittor-1.3.8.5/python/jittor_utils/ring_buffer.py | import multiprocessing as mp
import numpy as np
import ctypes
import random
import pickle
import ctypes
recv_raw_call = 0.0
class RingBufferAllocator:
def __init__(self, size):
self.size = size
self.l = mp.Value(ctypes.c_longlong, 0, lock=False)
self.r = mp.Value(ctypes.c_longlong, 0, lock... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/EcomRefundDisputeDTO.py | import json
from alipay.aop.api.constant.ParamConstants import *
class EcomRefundDisputeDTO(object):
def __init__(self):
self._buyer_id = None
self._buyer_logistic_company_code = None
self._buyer_logistic_company_name = None
self._buyer_logistic_no = None
self._case_time ... | PypiClean |
/trixie-0.1.2.tar.gz/trixie-0.1.2/homeassistant/components/remember_the_milk/__init__.py | import json
import logging
import os
import voluptuous as vol
from homeassistant.const import (
CONF_API_KEY, CONF_ID, CONF_NAME, CONF_TOKEN, STATE_OK)
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.entity_component import EntityComp... | PypiClean |
/django-trackable-0.3.8.tar.gz/django-trackable-0.3.8/trackable/settings.py | import os.path
import logging
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DEBUG_PROPAGATE_EXCEPTIONS = DEBUG
THUMBNAIL_DEBUG = DEBUG
ADMINS = (
('Thom Linton', 'thom.linton@gmail.com'),
)
MANAGERS = ()
INTERNAL_IPS = (
'127.0.0.1',
)
# Local time zone for this installation. Choices can be found here:
# http://en.wi... | PypiClean |
/wandb-ng-0.0.44.tar.gz/wandb-ng-0.0.44/wandb/vendor/pygments/lexers/_stata_builtins.py | builtins_base = (
"if", "else", "in", "foreach", "for", "forv", "forva",
"forval", "forvalu", "forvalue", "forvalues", "by", "bys",
"bysort", "quietly", "qui", "about", "ac",
"ac_7", "acprplot", "acprplot_7", "adjust", "ado", "adopath",
"adoupdate", "alpha", "ameans", "an", "ano", "anov", "anova",
... | PypiClean |
/emencia.django.newsletter-0.2.tar.gz/emencia.django.newsletter-0.2/emencia/django/newsletter/utils/excel.py | # Based on http://www.djangosnippets.org/snippets/1151/
import datetime
from django.http import HttpResponse
from django.db.models.query import QuerySet
from django.db.models.query import ValuesQuerySet
class ExcelResponse(HttpResponse):
"""ExcelResponse feeded by queryset"""
def __init__(self, data, output... | PypiClean |
/tgzr.declare-0.0.1rc1.tar.gz/tgzr.declare-0.0.1rc1/src/tgzr/declare/renderer.py | from .render_context import RenderContext
from .state_store import StateStore
class Renderer(object):
schema = None
_renderers = {}
#
# TOOLS
#
@classmethod
def ui_from_json(cls, json_string):
return cls.schema.from_json(json_string)
@classmethod
def ui_from_dict(cls, d... | PypiClean |
/sysidentpy-0.3.1.tar.gz/sysidentpy-0.3.1/docs/landing-page/get-help.md | ---
template: overrides/main.html
title: Get Help
---
# Get Help
Before asking others for help, it’s generally a good idea for you to try to help yourself. SysIdentPy includes several examples in the documentation with tips and notes about the package that might help you. However, if you have any issues and you can't... | PypiClean |
/python-telegram-payment-bot-11.1.2.tar.gz/python-telegram-payment-bot-11.1.2/telegram/files/video.py | """This module contains an object that represents a Telegram Video."""
from telegram import PhotoSize, TelegramObject
class Video(TelegramObject):
"""This object represents a video file.
Attributes:
file_id (:obj:`str`): Unique identifier for this file.
width (:obj:`int`): Video width as def... | PypiClean |
/django-inteliger-0.1.71.tar.gz/django-inteliger-0.1.71/core/cliente/migrations/0020_auto_20200729_1352.py |
import compositefk.fields
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
class Migration(migrations.Migration):
dependencies = [
('core', '0011_auto_20200728_1746'),
('cliente', '0019_auto_20200728_1752'),
]
operations = [
... | PypiClean |
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/switcher_kis/sensor.py | from __future__ import annotations
from dataclasses import dataclass
from aioswitcher.device import DeviceCategory
from homeassistant.components.sensor import (
SensorDeviceClass,
SensorEntity,
SensorStateClass,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import UnitOf... | PypiClean |
/displaylang_sympy-0.10.4-py3-none-any.whl/sympy/physics/quantum/qubit.py | import math
from sympy.core.add import Add
from sympy.core.mul import Mul
from sympy.core.numbers import Integer
from sympy.core.power import Pow
from sympy.core.singleton import S
from sympy.functions.elementary.complexes import conjugate
from sympy.functions.elementary.exponential import log
from sympy.core.basic im... | PypiClean |
/ebbs-2.2.28.tar.gz/ebbs-2.2.28/README.md | # Eons Basic Build System
EBBS (or ebbs) is a framework for designing modular build pipelines for any language and system. Builders are python scripts that are downloaded and run on the fly with configuration provided by json config files, environment variables, and command line arguments!
Here, at eons, we have foun... | PypiClean |
/uniqgift_custom-1.0.7-py3-none-any.whl/django/views/generic/edit.py | import warnings
from django.core.exceptions import ImproperlyConfigured
from django.forms import Form
from django.forms import models as model_forms
from django.http import HttpResponseRedirect
from django.views.generic.base import ContextMixin, TemplateResponseMixin, View
from django.views.generic.detail import (
... | PypiClean |
/netoprmgr-1.3.5.tar.gz/netoprmgr-1.3.5/cffi/ffiplatform.py | import sys, os
from .error import VerificationError
LIST_OF_FILE_NAMES = ['sources', 'include_dirs', 'library_dirs',
'extra_objects', 'depends']
def get_extension(srcfilename, modname, sources=(), **kwds):
_hack_at_distutils()
from distutils.core import Extension
allsources = [srcfi... | PypiClean |
/testoob-1.15.tar.bz2/testoob-1.15/README | ----========================----
-== Testoob - Testing Out Of (The) Box ==-
----========================----
===========================================================
= Description:
===========================================================
Testoob is an advanced Python unit testing framewor... | PypiClean |
/tsdat-0.6.1.tar.gz/tsdat-0.6.1/docs/source/config/quality_control.rst | .. _quality_control:
Quality Management
==================
Two types of classes can be defined in your pipeline to ensure standardized
data meets quality requirements:
:QualityChecker:
Each Quality Checker performs a specific quality control (QC) test on one or more variables
in your dataset. Quality check... | PypiClean |
/fds.sdk.AxiomaEquityOptimizer-0.21.7-py3-none-any.whl/fds/sdk/AxiomaEquityOptimizer/models/__init__.py |
# import all models into this package
# if you have many models here with many references from one model to another this may
# raise a RecursionError
# to avoid this, import only the models that you directly need like:
# from from fds.sdk.AxiomaEquityOptimizer.model.pet import Pet
# or import this package, but before ... | PypiClean |
/arger-1.4.8.tar.gz/arger-1.4.8/README.md | # Overview
A wrapper around argparser to help build CLIs from functions. Uses type-hints extensively :snake:.
[](https://pypi.python.org/pypi/arger)
[](https://pypi.org/project/arger/)... | PypiClean |
/lsv2test-core-2.0.0.tar.gz/lsv2test-core-2.0.0/localstack/aws/protocol/parser.py | import abc
import base64
import datetime
import functools
import re
from abc import ABC
from email.utils import parsedate_to_datetime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from typing.io import IO
from xml.etree import ElementTree as ETree
import cbor2
import dateutil.parser
from botocore... | PypiClean |
/Parsley-1.3.tar.gz/Parsley-1.3/ometa/_generated/parsley_termactions.py | def createParserClass(GrammarBase, ruleGlobals):
if ruleGlobals is None:
ruleGlobals = {}
class parsley_termactions(GrammarBase):
def rule_ruleValue(self):
_locals = {'self': self}
self.locals['ruleValue'] = _locals
self._trace(' ws', (11, 14), self.input.posi... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_is.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 |
/ant_net_monitor-1.0.0-py3-none-any.whl/ant_net_monitor/dist/static/js/app.add16b60.js | (function(e){function t(t){for(var n,o,i=t[0],l=t[1],u=t[2],s=0,f=[];s<i.length;s++)o=i[s],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&f.push(a[o][0]),a[o]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);d&&d(t);while(f.length)f.shift()();return c.push.apply(c,u||[]),r()}function r(){for(var e,... | PypiClean |
/dfir-iris-client-2.0.1.tar.gz/dfir-iris-client-2.0.1/dfir_iris_client/users.py | import warnings
from typing import Union
from deprecated.classic import deprecated
from dfir_iris_client.helper.utils import ApiResponse
class User(object):
"""Handles the users type methods"""
def __init__(self, session):
self._s = session
@deprecated('Use the new user_exists method', version=... | PypiClean |
/python-pptx-fix-0.6.21.2.tar.gz/python-pptx-fix-0.6.21.2/pptx/oxml/ns.py | from __future__ import absolute_import
#: Maps namespace prefix to namespace name for all known PowerPoint XML
#: namespaces.
_nsmap = {
"a": ("http://schemas.openxmlformats.org/drawingml/2006/main"),
"c": ("http://schemas.openxmlformats.org/drawingml/2006/chart"),
"cp": (
"http://schemas.openxmlf... | PypiClean |
/phuzzy-0.7.4.tar.gz/phuzzy-0.7.4/docs/shapes/superellipse.rst | Superellipse
------------
.. code-block:: python
:linenos:
import phuzzy.mpl as phm
se = phm.Superellipse(alpha0=[-1, 2.], alpha1=None, m=1.0, n=.5, number_of_alpha_levels=17)
se.plot(show=True, filepath="/tmp/superellipse.png", title=True)
.. figure:: superellipse.png
:scale: 90 %
:alt: Supe... | PypiClean |
/emencia-paste-django-1.8.2.tar.gz/emencia-paste-django-1.8.2/emencia_paste_django/django_buildout/project/webapp_statics/js/royalslider/dev/modules/jquery.rs.fullscreen.js | (function($) {
"use strict";
/**
*
* RoyalSlider fullscreen module
* @version 1.0.5:
*
* 1.0.1:
* - Added rsEnterFullscreen and rsExitFullscreen events
*
* 1.0.2
* - Added window scroll detection
*
* 1.0.3
* - Fullscreen button now is added to _controlsContainer element
*
* 1.0.4
* - F... | PypiClean |
/FoundryDataBrowser-190903.1.tar.gz/FoundryDataBrowser-190903.1/viewers/hyperspec_3d_h5.py | from ScopeFoundry.data_browser import HyperSpectralBaseView
import numpy as np
import h5py
import pyqtgraph as pg
from .scalebars import ConfocalScaleBar
from matplotlib.cm import ScalarMappable
from pyqtgraph.opengl import GLViewWidget, GLAxisItem, GLGridItem, GLVolumeItem
from scipy.interpolate import interp1d
from q... | PypiClean |
/acceldata_sdk-2.7.2.tar.gz/acceldata_sdk-2.7.2/acceldata_sdk/models/connection.py | from enum import Enum, auto
from dataclasses import dataclass
from typing import List
class ConnectionType:
def __init__(self, id, type):
self.id = id
self.type = type
def __eq__(self, other):
return self.id == other.id
def __repr__(self):
return f"ConnectionType({self._... | PypiClean |
/cbw_api_toolbox-2.3.2-py3-none-any.whl/examples/host_detail_export_xlsx.py |
import os
from configparser import ConfigParser
import xlsxwriter
from cbw_api_toolbox.cbw_api import CBWApi
def connect_api():
'''Connect to the API and test connection'''
conf = ConfigParser()
conf.read(os.path.join(os.path.abspath(
os.path.dirname(__file__)), '..', 'api.conf'))
client = CBW... | PypiClean |
/sentry-arroyo-2.14.6.tar.gz/sentry-arroyo-2.14.6/arroyo/processing/strategies/guard.py | import logging
from typing import Callable, MutableMapping, Optional, Union, cast
from arroyo.dlq import InvalidMessage, InvalidMessageState
from arroyo.processing.strategies import MessageRejected, ProcessingStrategy
from arroyo.types import FilteredPayload, Message, Partition, TStrategyPayload
BasicStrategy = Proce... | PypiClean |
/adafruit-blinka-pyportal-2.0.1.tar.gz/adafruit-blinka-pyportal-2.0.1/adafruit_pyportal/graphics.py | try:
import board
DISPLAY_ARG_REQUIRED = False
except AttributeError:
# okay to run Generic Linux
DISPLAY_ARG_REQUIRED = True
import displayio
import adafruit_ili9341
from PIL import Image
from adafruit_portalbase.graphics import GraphicsBase
__version__ = "0.0.0-auto.0"
__repo__ = "https://github.co... | PypiClean |
/flask_leaflet-0.1.3-py3-none-any.whl/flask_leaflet/basic_types.py | from uuid import UUID, uuid4
from markupsafe import Markup
from .mixins import Renderable, RenderOptions, RendersVarName
class LatLng(Renderable, RendersVarName):
"""Object representing Latitud and Longitud"""
lat: float
lng: float
alt: float = None
def __init__(self, lat: float, lng: float, alt... | PypiClean |
/bolt11-voltage-0.0.1.4.tar.gz/bolt11-voltage-0.0.1.4/bolt11/core.py | import base58 # type: ignore
import re
from bech32 import bech32_encode, bech32_decode, CHARSET # type: ignore
from binascii import unhexlify
from bitstring import ConstBitStream # type: ignore
from ecdsa import SECP256k1, VerifyingKey # type: ignore
from ecdsa.util import sigdecode_string # type: ignore
from has... | PypiClean |
/mantis-ml-1.6.5.tar.gz/mantis-ml-1.6.5/mantis_ml/modules/unsupervised_learn/dimens_reduction.py | import matplotlib
matplotlib.rcParams['pdf.fonttype'] = 42
matplotlib.use('agg')
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
import pandas as pd
import numpy as np
from sklearn.decomposition import PCA, SparsePCA
from sklearn.manifold import TSNE
from sklearn.cluster import KMeans, Agglo... | PypiClean |
/python_packaging_distribution-0.1.0.tar.gz/python_packaging_distribution-0.1.0/README.rst | =============================
python-packaging-distribution
=============================
.. image:: https://img.shields.io/pypi/v/python_packaging_distribution.svg
:target: https://pypi.python.org/pypi/python_packaging_distribution
.. image:: https://img.shields.io/travis/premvikash/python_packaging_distrib... | PypiClean |
/soc-faker-4.0.2.tar.gz/soc-faker-4.0.2/socfaker/data/windows-event/event-4750.md | # Event ID 4750: A security-disabled global group was changed
## Description
This event generates every time security-disabled (distribution) global group is changed.This event generates only on domain controllers.
Some changes do not invoke a 4750 event, for example, changes made using the Active Directory Users an... | PypiClean |
/protopipe-0.4.0.post1.tar.gz/protopipe-0.4.0.post1/docs/contribute/instructions.rst | .. _instructions:
Instructions
============
.. contents::
:local:
:depth: 2
| These are some guidelines on how to contribute to *protopipe*.
| This of course makes sense only for the development branch, aka the *master*
branch.
This is usually done is 4 steps:
1. you start using *protopipe*,
2. you find ... | PypiClean |
/thirdweb_sdk-3.1.1a0.tar.gz/thirdweb_sdk-3.1.1a0/thirdweb/abi/erc1155_receiver.py |
# pylint: disable=too-many-arguments
import json
from typing import ( # pylint: disable=unused-import
Any,
List,
Optional,
Tuple,
Union,
)
from eth_utils import to_checksum_address
from mypy_extensions import TypedDict # pylint: disable=unused-import
from hexbytes import HexBytes
from web3 impo... | PypiClean |
/django_carbondesign-0.0.5-py3-none-any.whl/carbondesign/mithril-js/notification.js | import m from 'mithril/hyperscript';
//-
import messages from './messages.json';
import { Node } from './base';
export class Notification extends Node
{
WANT_CHILDREN = true
SLOTS = ['action']
MODES = ['inline', 'toast']
NODE_PROPS = ['variant', 'low_contrast']
prepare(vnode, values, context)
... | PypiClean |
/uniqgift_custom-1.0.7-py3-none-any.whl/django/db/models/sql/compiler.py | import collections
import json
import re
from functools import partial
from itertools import chain
from django.core.exceptions import EmptyResultSet, FieldError
from django.db import DatabaseError, NotSupportedError
from django.db.models.constants import LOOKUP_SEP
from django.db.models.expressions import F, OrderBy, ... | PypiClean |
/moai-mdk-0.1.5a16.tar.gz/moai-mdk-0.1.5a16/moai/visualization/visdom/density2d.py | from moai.visualization.visdom.base import Base
from moai.utils.arguments import assert_numeric
from moai.monads.execution.cascade import _create_accessor
from matplotlib import pyplot as plt
from matplotlib.backends.backend_agg import FigureCanvasAgg
from matplotlib.figure import Figure
import torch
import seaborn
i... | PypiClean |
/pulumi_nomad-0.4.2a1691129707.tar.gz/pulumi_nomad-0.4.2a1691129707/pulumi_nomad/get_job_parser.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = [
'GetJobParserResult',
'AwaitableGetJobParserResult',
'get_job_parser',
'get_job_parser_output',
]
@pulumi.output_type
class GetJobP... | 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/GG.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.006108,"35":0,"36":0,"37":0,"38":0.006108,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0... | PypiClean |
/siobrultech-protocols-0.12.0.tar.gz/siobrultech-protocols-0.12.0/siobrultech_protocols/gem/protocol.py | from __future__ import annotations
import asyncio
import logging
from collections import deque
from dataclasses import dataclass
from datetime import timedelta
from enum import Enum, unique
from typing import Any, Callable, Deque, Generic, List, Optional, Set, TypeVar, Union
from .const import (
CMD_DELAY_NEXT_PA... | PypiClean |
/ThreadFixProAPI-1.0.13.tar.gz/ThreadFixProAPI-1.0.13/_utils/_cicd.py |
__author__ = "Evan Schlesinger"
__copyright__ = "(C) 2019 Denim group"
__contributors__ = ["Evan Schlesinger"]
__status__ = "Production"
__license__ = "MIT"
import requests
import urllib3
import requests.exceptions
import requests.packages.urllib3
from ._utilities import ThreadFixProResponse
class CICDAPI(object):
... | PypiClean |
/ctec_consumer-0.5.1.tar.gz/ctec_consumer-0.5.1/README.md | # 电渠rabbitMQ Consumer
## 环境
`Python2` 或 `Python3`
- `gevent`
- `pika`
- `kazoo`
- `psutil`
## 使用指南
### 处理方法开发指南
- 方法有且只有一个入参,WorkerMessage对象
- 方法需要明确返回处理响应码,目前支持:
- CONSUME_SUCCESS,处理成功
- CONSUME_REDELIVER,处理失败,重新投递
- CONSUME_REJECT,处理失败,丢弃消息
### 线程版使用指南
```python
import ctec_consumer.consumer_log as ctec... | PypiClean |
/collective.js.ckeditor-4.0.3.zip/collective.js.ckeditor-4.0.3/collective/js/ckeditor/resources/lang/en-ca.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['en-ca']={"dir":"ltr","editor":"Rich Text Editor","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Browse Server","url":"URL","protocol":"Protocol"... | PypiClean |
/py_to_mindustry-0.0.4.tar.gz/py_to_mindustry-0.0.4/README.md | # py_to_mindustry
Translator from Python to Mindustry processor language
The following features are currently supported:
- All built-in commands in Mindustry
- Arbitrarily complex mathematical and logical expressions
- Following keywords: `False`, `None`, `True`, `and`, `break`, `continue`, `def`, `elif`, `else`, `fo... | PypiClean |
/py_mess_server_by_rufus-0.0.1-py3-none-any.whl/server/common/decos.py | import socket
import logging
import sys
sys.path.append('../')
import logs.config_client_log
import logs.config_server_log
# метод определения модуля, источника запуска.
if sys.argv[0].find('client_dist') == -1:
# если не клиент то сервер!
logger = logging.getLogger('server_dist')
else:
# иначе сервер
... | PypiClean |
/graphite-datasets-1.0.5.tar.gz/graphite-datasets-1.0.5/tensorflow_datasets/summarization/booksum/booksum.py | import json
import logging
import os
from typing import Dict, Iterator, Text, Tuple
import tensorflow as tf
import tensorflow_datasets.public_api as tfds
_DESCRIPTION = """
BookSum: A Collection of Datasets for Long-form Narrative Summarization
This implementation currently only supports book and chapter summaries.
... | PypiClean |
/permedcoe-0.0.11.tar.gz/permedcoe-0.0.11/README.md | # HPC/Exascale Centre of Excellence in Personalised Medicine
## Base Building Block
This package provides the base for all **Building Blocks (BBs)** developed in the **HPC/Exascale Centre of Excellence in Personalised Medicine** ([PerMedCoE](https://permedcoe.eu/)) project.
## Table of Contents
- [HPC/Exascale Cent... | PypiClean |
/apmondatalib-0.8.3.tar.gz/apmondatalib-0.8.3/README.md | # 동식물 모니터링 시스템의 Python용 Datalib.
## 목적
UTC로 기록된 데이터를 국가별 시간대에 맞게 가져오려면 범위에 대한 적절한 변환이 필요하다. 변환 과정은 생각하므로 데이터 분석의 장애물이 될 수 있다. 이러한 장애물을 해소하고 데이터 분석 과정을 돕기 위해 본 라이브러리를 개발하였다.
## 개요
현재 MongoDB에 저장된 데이터는 UTC를 기준으로 저장된다. UTC로 저장하는 이유는 시간대나 위치 등에 구애받지 않고, 데이터를 공통적으로 저장하고 이용하기 위해서이다.
그러나 국가별 시차가 존재한다. 시차로 인해 데이... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/DeliveryPlayConfig.py | import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.DeliveryFullSendConfig import DeliveryFullSendConfig
from alipay.aop.api.domain.DeliverySingleSendConfig import DeliverySingleSendConfig
class DeliveryPlayConfig(object):
def __init__(self):
self._delivery_full_s... | PypiClean |
/vnpy_ctabacktester-1.1.1.tar.gz/vnpy_ctabacktester-1.1.1/vnpy_ctabacktester/ui/widget.py | import csv
import subprocess
from datetime import datetime, timedelta
from copy import copy
from typing import List, Tuple
import numpy as np
import pyqtgraph as pg
from pandas import DataFrame
from vnpy.trader.constant import Interval, Direction, Exchange
from vnpy.trader.engine import MainEngine, BaseEngine
from vn... | PypiClean |
/briantree-3.30.0.tar.gz/briantree-3.30.0/braintree/payment_method.py | import braintree
from braintree.address import Address
from braintree.resource import Resource
from braintree.configuration import Configuration
class PaymentMethod(Resource):
@staticmethod
def create(params={}):
return Configuration.gateway().payment_method.create(params)
@staticmethod
def fi... | PypiClean |
/aworda-rainfer-0.0.1.tar.gz/aworda-rainfer-0.0.1/src/aworda/rainfer/entry/message.py |
# no error
from ..message.chain import MessageChain as MessageChain
from ..message.commander import Arg as Arg
from ..message.commander import Commander as Commander
from ..message.commander import Slot as Slot
from ..message.element import App as App
from ..message.element import At as At
from ..message.element impo... | PypiClean |
/golos_lib_python-0.9.21-py3-none-any.whl/golos/amount.py | class Amount(dict):
"""
This class helps deal and calculate with the different assets on the chain.
:param str amountString: Amount string as used by the backend (e.g. "10 GBG")
"""
def __init__(self, amount_string="0 GBG"):
if isinstance(amount_string, Amount):
self["amount"] ... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/1.0.10.rst | .. default-intersphinx:: django1.6 djblets1.0
============================
Djblets 1.0.10 Release Notes
============================
**Release date**: February 19, 2019
djblets.avatars
===============
* Changed some avatar backend behavior to no longer raise exceptions for
unimplemented methods. (:bug:`4634`, :... | PypiClean |
/backends_matrix-1.3.0-py3-none-any.whl/matrix/ops/broadcast_batch_to.py | import lab as B
from ..constant import Constant, Zero
from ..diagonal import Diagonal
from ..kronecker import Kronecker
from ..lowrank import LowRank
from ..matrix import Dense
from ..triangular import LowerTriangular, UpperTriangular
from ..woodbury import Woodbury
__all__ = []
# We don't implement a fallback meth... | PypiClean |
/django-mapstore-adapter-1.0.0.tar.gz/django-mapstore-adapter-1.0.0/mapstore2_adapter/api/models.py |
import logging
from django.db import models
from django.contrib.auth import get_user_model
from django.utils.translation import ugettext_noop as _
from jsonfield import JSONField
log = logging.getLogger(__name__)
class MapStoreResource(models.Model):
user = models.ForeignKey(get_user_model())
id = models.... | PypiClean |
/djnago_file_explorer-0.0.2-py3-none-any.whl/explorer/views/main.py | from django.http import FileResponse
import os
import shutil
from django import http
from django.views.generic.base import TemplateView
from django.urls import reverse
from django.shortcuts import render
from django.core.paginator import Paginator
from .utils.operations import ExplorerOperations
from .utils.request_va... | PypiClean |
/lilacai-0.0.9.tar.gz/lilacai-0.0.9/lilac/web/_app/immutable/chunks/singletons.3acb1171.js | import{w as u}from"./index.d3776286.js";var p;const k=((p=globalThis.__sveltekit_11myv4l)==null?void 0:p.base)??"";var h;const m=((h=globalThis.__sveltekit_11myv4l)==null?void 0:h.assets)??k,w="1692630711493",R="sveltekit:snapshot",T="sveltekit:scroll",I="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};fun... | PypiClean |
/graph_diff-0.1.1-py3-none-any.whl/graph_diff/graph/standard_graph_generator.py | from .graph_generator import GraphGenerator
from .graph_with_repetitive_nodes_with_root import GraphWithRepetitiveNodesWithRoot, lr_node, rnr_graph
class StandardGraphGenerator(GraphGenerator):
"""Simplest algorithm that generates graphs"""
def __init__(self,
min_node_num=2,
... | PypiClean |
/nmc_met_base-0.1.5.1-py3-none-any.whl/nmc_met_base/geographical.py |
# Copyright (c) 2019 NMC Developers.
# Distributed under the terms of the GPL V3 License.
"""
Geodesy calculation.
"""
import numpy as np
from numba import jit
import nmc_met_base.constants as const
def haversine_np(lon1, lat1, lon2, lat2):
"""
Calculate the great circle distance between two points
on ... | PypiClean |
/bourbaki.application-0.10.12-py3-none-any.whl/bourbaki/application/logging/timing.py | from typing import Callable, Union, Optional as Opt
from time import time
from datetime import datetime, timedelta
from functools import partial
from logging import Logger, getLogger
from .defaults import PROGRESS, ERROR, DEFAULT_LOG_DATE_FMT
from .helpers import validate_log_level_int
unit_names = dict(
s="s",
... | PypiClean |
/timi-sqlalchemy-0.0.1.tar.gz/timi-sqlalchemy-0.0.1/lib/sqlalchemy/connectors/mxodbc.py | import re
import sys
import warnings
from . import Connector
class MxODBCConnector(Connector):
driver = "mxodbc"
supports_sane_multi_rowcount = False
supports_unicode_statements = True
supports_unicode_binds = True
supports_native_decimal = True
@classmethod
def dbapi(cls):
# t... | PypiClean |
/ecape-0.1.1-py3-none-any.whl/docs/html/_static/searchtools.js | "use strict";
/**
* Simple result scoring code.
*/
if (typeof Scorer === "undefined") {
var Scorer = {
// Implement the following function to further tweak the score for each result
// The function takes a result array [docname, title, anchor, descr, score, filename]
// and returns the new score.
/... | PypiClean |
/azure_mgmt_compute-30.1.0-py3-none-any.whl/azure/mgmt/compute/v2021_10_01/models/__init__.py |
from ._models_py3 import ApiError
from ._models_py3 import ApiErrorBase
from ._models_py3 import CommunityGalleryInfo
from ._models_py3 import DataDiskImageEncryption
from ._models_py3 import Disallowed
from ._models_py3 import DiskImageEncryption
from ._models_py3 import EncryptionImages
from ._models_py3 import Gall... | PypiClean |
/nats_python-0.8.0-py3-none-any.whl/pynats/client.py | import io
import json
import re
import socket
import ssl
from dataclasses import dataclass
from typing import BinaryIO, Callable, Dict, Match, Optional, Pattern, Tuple, Union
from urllib.parse import urlparse
import pkg_resources
from pynats.exceptions import (
NATSInvalidResponse,
NATSInvalidSchemeError,
... | PypiClean |
/avalon-colorbleed-1.0.2.tar.gz/avalon-colorbleed-1.0.2/colorbleed/launcher_actions.py | import os
from avalon import api, lib, pipeline
from avalon.vendor import six
class BaseProjectAction(api.Action):
"""A Base Action that mimics avalon core Application action.
However this one does not need an AVALON_WORKDIR or asset and task
to operate on. It can run just on the base of the project and... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/labservices/v20181015/outputs.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 *
__all__ = [
'EnvironmentDetailsResponse',
'EnvironmentSizeResponse',
'GalleryImageReferenceResponse',
... | PypiClean |
/regulome_web-2.0rc1.tar.gz/regulome_web-2.0rc1/regulome_app/webapp/tools/plot.py | import os
import datetime
import time
import subprocess
from regulome_app.config import logger, configs, REGULOME_R_SCRIPT
from regulome_app.webapp import models as models
from flask import request
import json
class Plot:
"""Create the regulome plot"""
CACHE_TEMPLATE = os.path.join(
configs['output'][... | PypiClean |
/bdbcontrib-0.1.8.1.tar.gz/bdbcontrib-0.1.8.1/examples/Index.ipynb | # Introduction
These example notebooks introduce probabilistic programming. We first look at applications, how generative models can be applied to populations in [BayesDB](http://probcomp.csail.mit.edu/bayesdb/). We then progress towards creating new generative models that better fit our intuitions about those populat... | PypiClean |
/dagster_graphql-1.4.11-py3-none-any.whl/dagster_graphql/client/query.py | ERROR_FRAGMENT = """
fragment errorFragment on PythonError {
message
className
stack
cause {
message
className
stack
cause {
message
className
stack
}
}
}
"""
METADATA_ENTRY_FRAGMENT = """
fragment metadataEntryFragment on MetadataEntry {
__typename
label
descripti... | PypiClean |
/tiamat_pip-1.11.0-py3-none-any.whl/tiamatpip/ext/pip/_internal/resolution/resolvelib/base.py | from typing import FrozenSet, Iterable, Optional, Tuple, Union
from pip._vendor.packaging.specifiers import SpecifierSet
from pip._vendor.packaging.utils import NormalizedName, canonicalize_name
from pip._vendor.packaging.version import LegacyVersion, Version
from pip._internal.models.link import Link, links_equivale... | PypiClean |
/towhee.compiler-0.1.1.tar.gz/towhee.compiler-0.1.1/torchdynamo/variables/misc.py | import inspect
import sys
import types
from typing import Dict
from typing import List
from typing import Sequence
import torch._C
from typeguard import typechecked
from .. import variables as vars
from ..bytecode_transformation import create_instruction
from ..exc import unimplemented
from ..guards import Guard
from... | PypiClean |
/tb-rest-client-3.5.tar.gz/tb-rest-client-3.5/tb_rest_client/models/models_pe/queue_id.py | # Copyright 2023. ThingsBoard
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/apimanagement/v20180101/_enums.py |
from enum import Enum
__all__ = [
'ApiType',
'ApimIdentityType',
'AuthorizationMethod',
'BackendProtocol',
'BearerTokenSendingMethod',
'BearerTokenSendingMethods',
'ClientAuthenticationMethod',
'Confirmation',
'ContentFormat',
'GrantType',
'GroupType',
'HostnameType',
... | PypiClean |
/process_engine_client-0.3.tar.gz/process_engine_client-0.3/process_engine_client/core/loop_helper.py | import asyncio
import logging
import signal
logger = logging.getLogger(__name__)
_DEFAULT_DELAY = 1
class LoopHelper:
# TODO: mm - remove kwargs with better readable params
def __init__(self, loop=asyncio.get_event_loop(), **kwargs):
self._loop = loop
self._tasks = []
self.on_sh... | PypiClean |
/TPHATE-0.1-py3-none-any.whl/tphate/base.py | from future.utils import with_metaclass
from builtins import super
from copy import copy as shallow_copy
import numpy as np
import abc
import pygsp
from inspect import signature
from sklearn.decomposition import PCA, TruncatedSVD
from sklearn.preprocessing import normalize
from sklearn.utils.graph import graph_shortest... | PypiClean |
/csr_azure_agent-0.0.5.tar.gz/csr_azure_agent-0.0.5/waagent/azurelinuxagent/common/utils/fileutil.py | import glob
import os
import re
import shutil
import pwd
import azurelinuxagent.common.logger as logger
from azurelinuxagent.common.future import ustr
import azurelinuxagent.common.utils.textutil as textutil
def copy_file(from_path, to_path=None, to_dir=None):
if to_path is None:
to_path = os.path.join(to_... | PypiClean |
/shell49-0.1.10.tar.gz/shell49-0.1.10/lib/esptool.py |
from __future__ import division, print_function
import argparse
import base64
import binascii
import copy
import hashlib
import inspect
import io
import os
import shlex
import struct
import sys
import time
import zlib
import string
import serial.tools.list_ports as list_ports
import serial
# check 'serial' is 'pyse... | PypiClean |
/jlcards-0.0.8-py3-none-any.whl/jlcards-0.0.8.data/data/share/jupyter/labextensions/jlmc/static/172.5c064f9af0b278ea71e8.js | "use strict";(self.webpackChunkjlmc=self.webpackChunkjlmc||[]).push([[172],{18172:(t,e,r)=>{function n(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at:... | PypiClean |
/bulkdata-0.6.1.tar.gz/bulkdata-0.6.1/docs/bulkdata.rst | bulkdata
========
Subpackages
^^^^^^^^^^^
.. toctree::
bulkdata.pyNastran
Submodules
^^^^^^^^^^
bulkdata.card
-------------
.. automodule:: bulkdata.card
:members:
:undoc-members:
:special-members: __getitem__, __setitem__, __delitem__, __str__, __len__, __iter__, __bool__
bulkdata.cli
----------... | PypiClean |
/sierra-research-1.3.5.tar.gz/sierra-research-1.3.5/sierra/core/pipeline/stage4/intra_exp_graph_generator.py | # Core packages
import os
import copy
import typing as tp
import logging
import pathlib
# 3rd party packages
import json
# Project packages
from sierra.core.graphs.stacked_line_graph import StackedLineGraph
from sierra.core.graphs.heatmap import Heatmap
from sierra.core.models.graphs import IntraExpModel2DGraphSet
im... | PypiClean |
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/wu-ya-jiu-shu/乌鸦救赎《终极火箭班》:乌鸦经典语录:不要凭感觉要靠测试.md | # 乌鸦救赎《终极火箭班》:乌鸦经典语录:不要凭感觉要靠测试
并感觉去猜错很多人会把状况指挥越猜越糟糕,你需要做的事情是吗,是要去测试,要去测试,永远都不要伤去词的感觉,要相信自己去测试,你想要知道真实结果你要去测试,他是不是不爱你,去测试一下就知道了,那就是。
平感觉是一个很坏事情的东西,见过很多人,我见过很多人的话,就是说,因为平感觉然后失去了词的女孩,平感觉然后觉得他不爱自己来,然后直接跟你说分手,就生尽病,然后平感觉觉得那女孩对自己上去表吧。
女孩要懂得去测试,永远要去懂得测试,你不懂得测试的话,在这个方面你会吃很多可怜的,测试是一种美的,什么叫做测试呢,或者是一个杀选,也或者是一个服侧,或者是一个废物测试都可以,看看... | PypiClean |
/scottbrian_utils-2.4.0.tar.gz/scottbrian_utils-2.4.0/src/scottbrian_utils/stop_watch.py | import threading
import time
from typing import Optional, Type, TYPE_CHECKING, Union
########################################################################
# Third Party
########################################################################
########################################################################
... | PypiClean |
/dsin100daysv36-6.0.1.tar.gz/dsin100daysv36-6.0.1/notebook/static/components/MathJax/localization/vi/TeX.js | MathJax.Localization.addTranslation("vi","TeX",{version:"2.7.8",isLoaded:true,strings:{ExtraOpenMissingClose:"D\u1EA5u ngo\u1EB7c m\u1EDF c\u00F2n d\u01B0 ho\u1EB7c d\u1EA5u ngo\u1EB7c \u0111\u00F3ng b\u1ECB thi\u1EBFu",ExtraCloseMissingOpen:"D\u1EA5u ngo\u1EB7c \u0111\u00F3ng c\u00F2n d\u01B0 ho\u1EB7c d\u1EA5u ngo\u1... | PypiClean |
/dbpedia_ent-0.1.9-py3-none-any.whl/dbpedia_ent/dto/syn/n1/p/rev_po.py |
d_rev_po = {'po-2': 'polikarpov_po-2',
'po-chu-i': 'bai_juyi',
'po-eun': 'jeong_mongju',
'po-hai': 'balhae',
'po-lay': 'pu-erh_tea',
'po-lei': 'pu-erh_tea',
'po-lu-chia': 'aksu',
'po-mo': 'postmodernism',
'po-pis': 'popis',
'po-po': 'police',
'po-po-po': 'popopo',
'po0wned': 'pwn',
'poa1/4egnania': 'farew... | PypiClean |
/grease-0.3.zip/grease-0.3/doc/build/html/_static/searchtools.js | * helper function to return a node containing the
* search summary for a given text. keywords is a list
* of stemmed words, hlwords is the list of normal, unstemmed
* words. the first one is used to find the occurance, the
* latter for highlighting it.
*/
jQuery.makeSearchSummary = function(text, keywords, hlwor... | PypiClean |
/kucoin-python-1.0.14.tar.gz/kucoin-python-1.0.14/README.rst | ===============================
Welcome to python-kucoin-sdk
===============================
.. image:: https://img.shields.io/pypi/l/python-kucoin
:target: https://github.com/Kucoin/kucoin-python-sdk/blob/master/LICENSE
.. image:: https://img.shields.io/badge/python-3.6%2B-green
:target: https://pypi.org/pro... | PypiClean |
/pystick-0.1.6.tar.gz/pystick-0.1.6/src/SCons/Tool/MSCommon/sdk.py |
__revision__ = "src/engine/SCons/Tool/MSCommon/sdk.py 2014/03/02 14:18:15 garyo"
__doc__ = """Module to detect the Platform/Windows SDK
PSDK 2003 R1 is the earliest version detected.
"""
import os
import SCons.Errors
import SCons.Util
import common
debug = common.debug
# SDK Checks. This is of course a mess as... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.