id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/G4S-1.0.10.tar.gz/G4S-1.0.10/g4s/alarm.py | from datetime import datetime
from typing import Optional, List
from g4s.utils.panel_settings import PanelSettings
from g4s.utils.state_device import StateDevice
from g4s.utils.enums import ArmType
from g4s.utils.user import User
import json
from g4s.utils.api import API
from g4s.utils.alarm_status import AlarmStatus
... | PypiClean |
/MqttMonitor-1.0.8.tar.gz/MqttMonitor-1.0.8/MqttMonitor.py |
from tkinter import *
from tkinter import ttk
import tkinter.font as Font
import threading
import time
import paho.mqtt.client as mqtt
import json
from io import StringIO
import random, string
import queue
import threading
from tkinter import filedialog
#from tkinter import messagebox
from datetime import datetime
imp... | PypiClean |
/BalazarBrothers-1.1.tar.gz/BalazarBrothers-1.1/player.py |
import struct
import cerealizer, soya, soya.cerealizer4soya, soya.tofu as tofu
import balazar_brothers
from balazar_brothers.character import BlueBalazar, RedBalazar, MESSAGE_UPDATE_SCORE
from balazar_brothers.level import Level, create_demo_level
from balazar_brothers.platform_ import StartingPlatform, PortailPl... | PypiClean |
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/mixins/listctrl.py |
import locale
import wx
import six
if six.PY3:
# python 3 lacks cmp:
def cmp(a, b):
return (a > b) - (a < b)
#----------------------------------------------------------------------------
class ColumnSorterMixin:
"""
A mixin class that handles sorting of a wx.ListCtrl in REPORT mode when
... | PypiClean |
/DjangoDav-0.0.1b16.tar.gz/DjangoDav-0.0.1b16/docs/auth.rst | ==============
Authentication
==============
Introduction
------------
WebDav like any other http api protocol accepts wide range of authentication methods: Basic, Digest, OAuth, OAuth2, etc.
Most of them are already developed in the api other libraries. So we provide mixins you can use to bring in Django Rest
Framew... | PypiClean |
/Arduino%20debuger-1.0.0.tar.zip/debugerv2/readme.md | # 使用手册:
## 一、调试命令集合
### lx
*使用例子*:l32:
打印接下来32行代码。如果剩余代码<32行,则把剩余代码全部打印。
x可缺省。缺省时,默认打印接下来7行代码
lall:打印完整代码
lthis:打印**接下来要执行**的某一行
### c
继续运行代码
### p
暂停代码执行。点击回车后打印出暂停后**接下来要执行的**一行代码
### s
执行下一行指令。点击回车后,打印出**刚刚执行过**的指令。
### n
执行下一行指令,若下一行指令是函数,则跳过函数执行结果。
### g-variable-value
将某个variable改变为特定value的值
###... | PypiClean |
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/modules/convertobjectstoimage.py | import centrosome.cpmorphology
import matplotlib.cm
import numpy
from cellprofiler_core.image import Image
from cellprofiler_core.module import Module
from cellprofiler_core.preferences import get_default_colormap
from cellprofiler_core.setting.choice import Choice, Colormap
from cellprofiler_core.setting.subscriber im... | PypiClean |
/EUKulele-2.0.0.tar.gz/EUKulele-2.0.0/docs/build/html/_static/js/modernizr.min.js | ;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var... | PypiClean |
/Dovetail-1.0beta2.tar.gz/Dovetail-1.0beta2/dovetail/virtual.py | from dovetail.util import InvalidEnvironment, Logger
from dovetail.util.which import which
from sys import executable, modules
import subprocess
import os
from tempfile import mkdtemp
from shutil import rmtree
RETURN_CODE = 170
PYTHON_TEST = """
# Simple sanity test that we are running in a Python environment
def f():... | PypiClean |
/CmonCrawl-1.0.3.tar.gz/CmonCrawl-1.0.3/docs/build/html/_static/_sphinx_javascript_frameworks_compat.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* small helper function to urldecode strings
*
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
*/
jQuery.urldecode = function(x) {
if (!x) {
... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/editor/plugins/TablePlugins.js | define("dojox/editor/plugins/TablePlugins",["dojo","dijit","dojox","dijit/_base/popup","dijit/_Widget","dijit/_TemplatedMixin","dijit/_WidgetsInTemplateMixin","dijit/Menu","dijit/MenuItem","dijit/MenuSeparator","dijit/TooltipDialog","dijit/form/Button","dijit/form/DropDownButton","dijit/Dialog","dijit/form/TextBox","di... | PypiClean |
/MNN-0.0.7-cp27-cp27mu-manylinux2010_x86_64.whl/MNNTools/MNN_FB/IDSTQuan.py |
# namespace: MNN
import flatbuffers
class IDSTQuan(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsIDSTQuan(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = IDSTQuan()
x.Init(buf, n + offset)
return x
# IDSTQuan
d... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Format/OWSCommon.js | * @requires OpenLayers/Format/XML/VersionedOGC.js
*/
/**
* Class: OpenLayers.Format.OWSCommon
* Read OWSCommon. Create a new instance with the <OpenLayers.Format.OWSCommon>
* constructor.
*
* Inherits from:
* - <OpenLayers.Format.XML.VersionedOGC>
*/
OpenLayers.Format.OWSCommon = OpenLayers.Class(OpenLa... | PypiClean |
/AI4Water-1.6.tar.gz/AI4Water-1.6/ai4water/pytorch_models.py | __all__ = ["HARHNModel", "IMVModel"]
from typing import Any
from easy_mpl import imshow
from .main import Model
from .utils.utils import dateandtime_now, plot_activations_along_inputs
from .backend import torch, np, plt, os, mpl
if torch is not None:
from .models._torch import IMVTensorLSTM
from .models._t... | PypiClean |
/NeuroUnits-0.1.2.tar.gz/NeuroUnits-0.1.2/src/neurounits/ast_builder/eqnsetbuilder_symbol_proxy.py |
# -------------------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# - Redistributions of sourc... | PypiClean |
/KratosCoSimulationApplication-9.4-cp39-cp39-win_amd64.whl/KratosMultiphysics/CoSimulationApplication/data_transfer_operators/sum_distributed_to_single.py | from KratosMultiphysics.CoSimulationApplication.base_classes.co_simulation_data_transfer_operator import CoSimulationDataTransferOperator
# Other imports
import numpy as np
def Create(*args):
return SumDistributedToSingle(*args)
class SumDistributedToSingle(CoSimulationDataTransferOperator):
"""DataTransferO... | PypiClean |
/Integral-0.1.0.tar.gz/Integral-0.1.0/integral/sde/srk_strong.py |
import math
from integral import backend
from integral import profile
__all__ = [
'euler',
'heun',
'milstein_Ito',
'milstein_Stra',
]
def euler(f=None, g=None, scalar_wiener=None):
"""
This method has have strong orders :math:`(p_d, p_s) = (1.0, 0.5)`.
"""
dt = profile.get_dt()
... | PypiClean |
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/lib/aloha/core.js | * Aloha Editor is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.*
*
* Aloha Editor is distributed in the hope that it will be usef... | PypiClean |
/MadMimi-1.3.tar.gz/MadMimi-1.3/README.txt | Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the ... | PypiClean |
/CIRCexplorer-1.1.10.tar.gz/CIRCexplorer-1.1.10/circ/genomic_interval.py | import copy
class Interval(object):
'''
Class: Interval
Maintainer: Xiao-Ou Zhang
Version: 1.0
Usage: a = Interval(list)
(nested list: [[x,x,f1...],[x,x,f2...]...] / [[x,x],[x,x]...] or
simple list: [x,x,f1...] / [x,x])
Notes: all the intervals in the list will become... | PypiClean |
/Grammaticomastix-0.0.1rc2-py3-none-any.whl/grammaticomastix/dchars/languages/hbo/symbols.py | # problem with Pylint :
# pylint: disable=E0611
# many errors like "No name 'extensions' in module 'dchars'"
from dchars.utilities.name2symbols import Name2Symbols
#...............................................................................
# symbols used by the Ancient Hebrew language.
#
# CAVEAT ! If you modify... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/form/_SelectStackMixin.js | define("dojox/form/_SelectStackMixin",["dojo/_base/lang","dojo/_base/array","dijit/_base/manager","dojo/_base/connect","dojo/_base/declare"],function(_1,_2,_3,_4,_5){
return _5("dojox.form._SelectStackMixin",null,{stackId:"",stackPrefix:"",_paneIdFromOption:function(_6){
return (this.stackPrefix||"")+_6;
},_optionValFr... | PypiClean |
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/docs/brochure/02_2_evacuation.rst | Evacuation
----------
Evacuation within the context of CloudFerry is the stage where the
scenario file created by the Condensation phase is used as a control input
to actually move workloads around within a single cloud to minimize the
number of physical nodes in use. The net result is all the servers that
have any lo... | PypiClean |
/ForcastingModels-0.0.1.tar.gz/ForcastingModels-0.0.1/Pow_Usage/ConvLSTM_Encoder_Decoder_Model.py |
# In[1]:
# univariate multi-step encoder-decoder convlstm
from math import sqrt
from numpy import split
from numpy import array
from pandas import read_csv
from sklearn.metrics import mean_squared_error
from matplotlib import pyplot
from keras.models import Sequential
from keras.layers import Dense
from keras.layer... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/methods/utilities/run.py |
import asyncio
import inspect
import fipper
from fipper.methods.utilities.idle import idle
class Run:
def run(
self: "fipper.Client",
coroutine=None
):
"""Start the client, idle the main script and finally stop the client.
When calling this method without any argument it act... | PypiClean |
/BlueWhale3-DataFusion-0.1.11.tar.gz/BlueWhale3-DataFusion-0.1.11/orangecontrib/datafusion/widgets/owtabletorelation.py | from AnyQt.QtWidgets import QTableView, QGridLayout, QWidget
from AnyQt.QtCore import Qt, QSize
from Orange.data import Table, Domain
from Orange.widgets.settings import Setting, ContextSetting, PerfectDomainContextHandler
from Orange.widgets.utils.itemmodels import TableModel
from Orange.widgets.widget import OWWidge... | PypiClean |
/FinanceScraper-0.2.1-py3-none-any.whl/financescraper/core/conversions.py | import requests
import json
import logging
from financescraper.core import scraper
from financescraper.datacontainer.circular_buffer import CircularBuffer
class CurrencyConverter:
def __init__(self, target_currency_code, use_buffer=True, buffer_size=10, holding_time=1800):
self.target_currency_code = tar... | PypiClean |
/Finance-Ultron-1.0.8.1.tar.gz/Finance-Ultron-1.0.8.1/ultron/cluster/work/work_engine.py | import json
import datetime
import gevent
import importlib
import hashlib
from gevent.queue import Queue
from ultron.utilities.redis.redis_client import RedisClient
from ultron.cluster.work.extern_modules.modules_info import moddules_info
from ultron.utilities.short_uuid import unique_machine
from ultron.config import ... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/ecdsa/der.py | from __future__ import division
import binascii
import base64
from .six import int2byte, b, integer_types, text_type
class UnexpectedDER(Exception):
pass
def encode_constructed(tag, value):
return int2byte(0xa0+tag) + encode_length(len(value)) + value
def encode_integer(r):
assert r >= 0 # can't support ... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/viewers/matplotlibViewer/matplotlib1DViewer.py | from __future__ import unicode_literals
from builtins import zip
__docformat__ = 'restructuredtext'
from fipy.viewers.matplotlibViewer.matplotlibViewer import AbstractMatplotlibViewer
__all__ = ["Matplotlib1DViewer"]
from future.utils import text_to_native_str
__all__ = [text_to_native_str(n) for n in __all__]
class... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/ntheory/partitions_.py | import math
from mpmath.libmp import (bitcount, fhalf, fone, from_int, from_man_exp,
from_rational, fzero, mpf_add, mpf_cos,
mpf_cosh_sinh, mpf_div, mpf_mul, mpf_pi, mpf_sqrt,
mpf_sub, pi_fixed, to_int)
__all__ = 'npartitions',
def _a(n,... | PypiClean |
/DRecPy-0.2.2.tar.gz/DRecPy-0.2.2/README.md | []()
[](https://drecpy.readthedocs.io/en/latest/?badge=latest)
[](https://opensource.org/licenses/MIT)
[](https://badge.fury.io/py/HAP-python) [](https://github.com/ikalchev/HAP-python) [](https://codecov.i... | PypiClean |
/KalaPy-0.4.2.tar.gz/KalaPy-0.4.2/kalapy/admin/commands/i18n.py | import os, sys
from babel.messages.frontend import CommandLineInterface, extract_messages
from babel.support import Translations
from kalapy.conf import settings
from kalapy.admin import ActionCommand
MAPPINGS = dict(
messages = """
[extractors]
ignore = babel.messages.extract:extract_nothing
python = babel.mes... | PypiClean |
/LumberMill-0.9.5.7-py3-none-any.whl/lumbermill/parser/Base64.py | import base64
from lumbermill.BaseThreadedModule import BaseThreadedModule
from lumbermill.utils.Decorators import ModuleDocstringParser
@ModuleDocstringParser
class Base64(BaseThreadedModule):
r"""
This module will let you en/decode base64 data.
source_fields: Input fields to split. Can be a single fi... | PypiClean |
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/extra/googletranslate/lib/googletranslate-plugin.js | * register the plugin with unique name
*/
define([
'aloha',
'aloha/plugin',
'aloha/floatingmenu',
], function CiteClosure (Aloha, Plugin, FloatingMenu ) {
var jQuery = Aloha.jQuery;
return Plugin.create('googletranslate', {
/**
* Configure the available languages to translate to. A complete lis... | PypiClean |
/Marl-Factory-Grid-0.1.2.tar.gz/Marl-Factory-Grid-0.1.2/marl_factory_grid/utils/states.py | from typing import List, Dict
import numpy as np
from marl_factory_grid.environment import constants as c
from marl_factory_grid.environment.entity.wall_floor import Floor
from marl_factory_grid.environment.rules import Rule
from marl_factory_grid.utils.results import Result
class StepRules:
def __init__(self,... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/docs/source/users/algorithms/deriv_free.rst | .. _deriv_free:
****************
Derivative Free
****************
Derivative Free methods do not compute the gradient of a function and so are often used to minimize problems with
nondifferentiable functions. Some derivative free methods will attempt to approximate the gradient using a finite difference
approach, ano... | PypiClean |
/CFS_Manager-1.3.0a0.tar.gz/CFS_Manager-1.3.0a0/docs/faq.rst | *****
F.A.Q
*****
Interface
=========
**How does file name autocompletion work?**
To autocomplete a file name, you need to write out the command you want to use and the beginning of the file name. After the partial file name, you should add the '-c' modifier. Make sure there's a space between the partial filename an... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/api/core/server.py | import base64
import binascii
import copy
import json
import os
import sys
import threading
import traceback
from pathlib import Path
from time import sleep
from typing import IO, Dict, Generator
from typing import Optional as OptionalType
import cherrypy
import yaml
from flask import Response, jsonify, request
from l... | PypiClean |
/LambdaGuard-2.4.3.tar.gz/LambdaGuard-2.4.3/lambdaguard/security/Scan.py | from lambdaguard.core.APIGateway import APIGateway
from lambdaguard.core.DynamoDB import DynamoDB
from lambdaguard.core.KMS import KMS
from lambdaguard.core.S3 import S3
from lambdaguard.core.SNS import SNS
from lambdaguard.core.SQS import SQS
from lambdaguard.security.AccessControlList import AccessControlList
from la... | PypiClean |
/HolmesIV-2021.9.8a1.tar.gz/HolmesIV-2021.9.8a1/mycroft/util/time.py | from datetime import datetime
from dateutil.tz import gettz, tzlocal
def default_timezone():
"""Get the default timezone
Based on user location settings location.timezone.code or
the default system value if no setting exists.
Returns:
(datetime.tzinfo): Definition of the default timezone
... | PypiClean |
/NNGT-2.7.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl/nngt/io/loading_helpers.py | from collections import defaultdict
import logging
import re
import types
import numpy as np
from ..lib.logger import _log_message
from ..lib.converters import (_np_dtype, _to_int, _to_string, _to_list,
_string_from_object, _python_type, _default_value)
__all__ = [
"_cleanup_line",... | PypiClean |
/ClarkSheets-1.1.0.tar.gz/ClarkSheets-1.1.0/help_menu.py | import csv
import sys
import curses
import settings
import key_mappings
from data_management import save_data
def pop_up_help():
h, w = 100, 100
# manual = curses.newpad(h, w)
manual = curses.newpad(h, w)
manual.box()
manual.addstr(1,2,'{:30}'.format("Linux-Sheets User Manual") + "press 'b' to go ... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/gis/db/backends/mysql/operations.py | from django.contrib.gis.db import models
from django.contrib.gis.db.backends.base.adapter import WKTAdapter
from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations
from django.contrib.gis.db.backends.utils import SpatialOperator
from django.contrib.gis.geos.geometry import GEOSGeometryBase
from... | PypiClean |
/githubkit-0.10.7-py3-none-any.whl/githubkit/rest/pulls.py | from datetime import datetime
from typing import TYPE_CHECKING, Dict, List, Union, Literal, Optional, overload
from pydantic import BaseModel, parse_obj_as
from githubkit.utils import UNSET, Missing, exclude_unset
from .types import (
ReposOwnerRepoPullsPostBodyType,
ReposOwnerRepoPullsPullNumberPatchBodyTyp... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/place_digest_actual_and_calendarized_monthly_response_commodity_data_py3.py |
from msrest.serialization import Model
class PlaceDigestActualAndCalendarizedMonthlyResponseCommodityData(Model):
"""PlaceDigestActualAndCalendarizedMonthlyResponseCommodityData.
:param commodity_code: The commodity code
:type commodity_code: str
:param commodity_info: The commodity info
:type c... | PypiClean |
/Interface_KB-1.1.0.tar.gz/Interface_KB-1.1.0/Interface_KB/DFAFunctions.py | from .InterfaceObjects import ASG,StopCondition,DFARule
#import helper functions
from .HelperFunctions import *
#-----------------------------------------------------------------------------------------------------------
#
# DFA extension
#
# TODO:
#
# ----------------------------------------------------------... | PypiClean |
/AnnotationBear-0.10.0.tar.gz/AnnotationBear-0.10.0/coalaAnnotationBear/AnnotationBear.py | from coalib.bearlib.languages.LanguageDefinition import LanguageDefinition
from coalib.bears.LocalBear import LocalBear
from coalib.results.HiddenResult import HiddenResult
from coalib.results.Result import Result, RESULT_SEVERITY
from coalib.results.SourceRange import SourceRange
from coalib.results.AbsolutePosition i... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/set-blocking/README.md | # set-blocking
[](https://travis-ci.org/yargs/set-blocking)
[](https://www.npmjs.com/package/set-blocking)
[](http... | PypiClean |
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/stats_scripts/mpmath/libmp/libelefun.py | import math
from bisect import bisect
from .backend import xrange
from .backend import MPZ, MPZ_ZERO, MPZ_ONE, MPZ_TWO, MPZ_FIVE, BACKEND
from .libmpf import (
round_floor, round_ceiling, round_down, round_up,
round_nearest, round_fast,
ComplexResult,
bitcount, bctable, lshift, rshift, giant_steps, sq... | PypiClean |
/aleksis_app_alsijil-3.0.1.tar.gz/aleksis_app_alsijil-3.0.1/LICENCE.rst | ======================================
EUROPEAN UNION PUBLIC LICENCE v. 1.2
======================================
--------------------------------------
EUPL © the European Union 2007, 2016
--------------------------------------
This European Union Public Licence (the ‘EUPL’) applies to the Work
(as defined below) ... | PypiClean |
/HalRing-2.0.4-py3-none-any.whl/halring/rds_lib/halring_rds_api.py | import os
import sys
import time
import rsa
import base64
import requests
import json
nga_root = os.path.abspath(__file__).split("halring")[0]
if nga_root not in sys.path:
sys.path.append(nga_root)
PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCDmmoJymMvEBb/YM9n4lSi5IMoBID764l9EtL8ogIK7VeFlUoAXGoRnJAE87LzH4... | PypiClean |
/MailGun-V3-0.3.2.tar.gz/MailGun-V3-0.3.2/README.rst | MailGun V3
==========
This package provides fluent API for `MailGun API`_.
.. _MailGun API: http://mailgun-documentation.readthedocs.io/
|build-status| |docs| |cc-badge| |cc-issues|
.. PYPI-BEGIN
.. toctree::
:maxdepth: 2
CHANGES
API
.. PYPI-END
Installation
------------
.. code-block:: python
pip ... | PypiClean |
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/outlook/contacts/contact.py | from office365.directory.extensions.extension import Extension
from office365.directory.profile_photo import ProfilePhoto
from office365.entity_collection import EntityCollection
from office365.outlook.calendar.email_address import EmailAddress
from office365.outlook.mail.item import Item
from office365.outlook.mail.ph... | PypiClean |
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/static/crm/beefree/Blob.js | plusplus: true */
/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
(function (view) {
"use strict";
view.URL = view.URL || view.webkitURL;
if (view.Blob && view.URL) {
try {
new Blob;
return;
} catch (e) {}
}
// Internally we use a BlobBuilder implementation... | PypiClean |
/ElectronicEngineering-0.1.0.tar.gz/ElectronicEngineering-0.1.0/docs/installation.rst | .. highlight:: shell
============
Installation
============
Stable release
--------------
To install Electronic Engineering, run this command in your terminal:
.. code-block:: console
$ pip install electronic_engineering
This is the preferred method to install Electronic Engineering, as it will always instal... | PypiClean |
/NREL-phygnn-0.0.24.tar.gz/NREL-phygnn-0.0.24/phygnn/utilities/pre_processing.py | import logging
import numpy as np
import pandas as pd
from sklearn.preprocessing import OneHotEncoder
from warnings import warn
logger = logging.getLogger(__name__)
class PreProcess:
"""Class to handle the pre-processing of feature data."""
def __init__(self, features, feature_names=None):
"""
... | PypiClean |
/Decision-Tree-Generator-0.0.4.tar.gz/Decision-Tree-Generator-0.0.4/README.rst | Decision-Tree-Generator
=======================
Program for generating decision tree LaTeX code for array-based
algorithms
.. image:: https://raw.githubusercontent.com/KYDronePilot/Decision-Tree-Generator/master/example/insertion_sort.png
:alt: Insertion Sort Decision Tree
Insertion Sort Decision Tree
Overview
-... | PypiClean |
/Ajango-1.0.0.tar.gz/Ajango-1.0.0/project/settings.py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
# SECURITY WARNING: keep the... | PypiClean |
/Avpy-0.1.3.tar.gz/Avpy-0.1.3/avpy/version/ff28.py | import os
import re
from ctypes import CDLL, RTLD_GLOBAL
from ctypes import Structure, POINTER, CFUNCTYPE
from ctypes import c_int, c_uint, c_char, c_void_p, c_char_p, c_ubyte
from ctypes import c_short
from ctypes import c_ulong
from ctypes import c_int8, c_uint8
from ctypes import c_int16, c_uint16
from ctypes import... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/energy_star_pm_property_py3.py |
from msrest.serialization import Model
class EnergyStarPmProperty(Model):
"""EnergyStarPmProperty.
:param pm_property_id: The Portfolio Manager property identifier
null when not linked to a portfolio manager property
:type pm_property_id: long
:param pm_property_name: The Portfolio Manager prop... | PypiClean |
/Mini-AMF-0.9.1.tar.gz/Mini-AMF-0.9.1/doc/architecture/future.rst | ==================
Future Development
==================
This software is essentially finished. Mini-AMF provides complete
support for encoding and decoding AMF versions 0 and 3. What with the
general deprecation of Flash on the Web, I do not expect that there
will be newer versions of AMF to support.
The older PyA... | PypiClean |
/AutoHotkey.py-0.2-py3-none-any.whl/ahkpy/hotkey.py | import dataclasses as dc
import functools
from typing import Callable
from . import hotkey_context
from .flow import ahk_call, _wrap_callback
__all__ = [
"Hotkey",
]
def hotkey(
ctx,
key_name: str,
func: Callable = None,
*args,
buffer=False,
priority=0,
max_threads=1,
input_level... | PypiClean |
/MufSim-1.2.2.tar.gz/MufSim-1.2.2/mufsim/gui/__init__.py |
import os
import re
import platform
try: # Python 2
from Tkinter import * # noqa
from tkFont import Font
from tkSimpleDialog import askstring
from tkFileDialog import askopenfilename, asksaveasfilename
from tkMessageBox import showerror, showinfo, askyesnocancel
from ttk import Combobox
exce... | PypiClean |
/BuckFit-0.0.1.tar.gz/BuckFit-0.0.1/buckfit/potential_parameters.py | class BuckinghamParameter():
"""
Class that contains the information for each parameter in the buckingham potentials.
"""
def __init__(self, label_string, param_type, value):
"""
Initialises each parameter in all buckingham potentials.
Args:
label_string (str): The l... | PypiClean |
/LinkPython-0.1.1.tar.gz/LinkPython-0.1.1/modules/pybind11/docs/advanced/cast/strings.rst | Strings, bytes and Unicode conversions
######################################
.. note::
This section discusses string handling in terms of Python 3 strings. For
Python 2.7, replace all occurrences of ``str`` with ``unicode`` and
``bytes`` with ``str``. Python 2.7 users may find it best to use ``from
... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/crm/model/request_format_enum.py | import re # noqa: F401
import sys # noqa: F401
from typing import (
Optional,
Union,
List,
Dict,
)
from MergePythonSDK.shared.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
OpenApiModel,
change_keys_js_to_python,... | PypiClean |
/FLORIS-3.4.1.tar.gz/FLORIS-3.4.1/floris/simulation/wake_velocity/jensen.py |
# 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, software
# distributed under the Licens... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_uz-arab.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
],
"DAY": [
"\u06cc\u06a9\u0634\u... | PypiClean |
/MSOIsHH2os-1.0.tar.gz/MSOIsHH2os-1.0/flood_tool/analysis.py |
import os
import math
import numpy as np
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
__all__ = ['plot_risk_map']
def plot_postcode_density(postcode_file=(os.path.dirname(__file__)
+'/resources/postcodes_unlabelled.csv'),
coor... | PypiClean |
/Glashammer-0.2.1.tar.gz/Glashammer-0.2.1/docs/source/statics.rst |
.. _statics:
Serving static files
====================
Directories can be added to be statically served by Glashammer. These
directories are added during the application setup phase by using:
.. automethod:: glashammer.application.GlashammerApplication.add_shared
For example, to add the directory '/var/static' to ... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/code_generation/Reports.py | from nuitka.containers.OrderedDicts import OrderedDict
from nuitka.containers.OrderedSets import OrderedSet
from nuitka.Tracing import code_generation_logger, optimization_logger
_missing_helpers = OrderedDict()
_missing_operations = OrderedSet()
_missing_trust = OrderedDict()
_missing_overloads = OrderedDict()
_e... | PypiClean |
/Flashflood-0.13.0.tar.gz/Flashflood-0.13.0/flashflood/core/workflow.py |
from tornado import gen
from flashflood import graph
from flashflood.core.task import Task, TaskSpecs, InvalidOperationError
class Workflow(TaskSpecs):
"""Flashflood workflow class
Attributes:
nodes (list): list of node numbers
(`flashflood.core.node.Node.node_num`)
tasks (list)... | PypiClean |
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/structure/evolvables/maskedparameters.py | __author__ = 'Tom Schaul, tom@idsia.ch'
from scipy import zeros, randn
from random import random, sample, gauss
from pybrain.structure.evolvables.topology import TopologyEvolvable
class MaskedParameters(TopologyEvolvable):
""" A module with a binary mask that can disable (=zero) parameters.
If no maximum is... | PypiClean |
/Chips-0.1.2.tar.gz/Chips-0.1.2/chips/VHDL_plugin/hex_printer.py | from __future__ import division
"""VHDL generation of the HexPrinter primitive"""
from math import ceil
import common
__author__ = "Jon Dawson"
__copyright__ = "Copyright 2010, Jonathan P Dawson"
__license__ = "MIT"
__version__ = "0.1.2"
__maintainer__ = "Jon Dawson"
__email__ = "chips@jondawson.org.uk"
__status__ ... | PypiClean |
/AppiumExtended-0.5.49b0-py3-none-any.whl/appium_extended_terminal/adb.py | import logging
import os
import re
import subprocess
import sys
import time
import traceback
from typing import Dict, Union, Tuple, Optional, Any
# sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(
# __file__)))) # The sys.path.append line adds the parent directory of the tests directory to the Pytho... | PypiClean |
/EQcorrscan-0.4.4.tar.gz/EQcorrscan-0.4.4/eqcorrscan/doc/build/html/_static/bootstrap-sphinx.js | (function ($) {
/**
* Patch TOC list.
*
* Will mutate the underlying span to have a correct ul for nav.
*
* @param $span: Span containing nested UL"s to mutate.
* @param minLevel: Starting level for nested lists. (1: global, 2: local).
*/
var patchToc = function ($ul, minLevel) {
var findA,... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Format/KML.js | * @requires OpenLayers/BaseTypes/Date.js
* @requires OpenLayers/Format/XML.js
* @requires OpenLayers/Feature/Vector.js
* @requires OpenLayers/Geometry/Point.js
* @requires OpenLayers/Geometry/LineString.js
* @requires OpenLayers/Geometry/Polygon.js
* @requires OpenLayers/Geometry/Collection.js
* @requires OpenL... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/timing/README | -------------------------------------------------------------------------------
DojoX Timing
-------------------------------------------------------------------------------
Version 0.1.0
Release date: 08/08/2007
-------------------------------------------------------------------------------
Project state:
experimental
... | PypiClean |
/Autoneuro-master_new-0.0.1.tar.gz/Autoneuro-master_new-0.0.1/application/app.py | from flask import Flask, render_template, request
from dataLoad.data_loader import DataGetter
from dataPreprocessing.preProcess import Preprocessor
from dataVisualization.visualization import DataVisualization
from modelTraining.classificationModels import ClassificationModelTuner
from prediction.predict import Predict... | PypiClean |
/Flask-ReactJS-0.2.3.tar.gz/Flask-ReactJS-0.2.3/flask_react/core.py | from flask import Flask, Blueprint, render_template, url_for
import os
try:
import flask_socketio as sio
SOCKET_IO = True
except ImportError:
sio = None
SOCKET_IO = False
import flask_react.babel as babel
class React:
"""React extension for Flask applications.
Registers a React blueprint an... | PypiClean |
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/ExportVideoLogREDFISH.py |
import argparse
import getpass
import json
import logging
import requests
import os
import sys
import time
import warnings
import webbrowser
from datetime import datetime
warnings.filterwarnings("ignore")
parser=argparse.ArgumentParser(description="Python script using Redfish API with OEM extension to export either... | PypiClean |
/125softNLP-0.0.1-py3-none-any.whl/pysoftNLP/bert/modeling.py | """The main BERT model and related functions."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
import copy
import json
import math
import re
import six
import tensorflow as tf
class BertConfig(object):
"""Configuration for `BertMode... | PypiClean |
/IDEAL_NPU-0.4.3-cp37-cp37m-win_amd64.whl/IDEAL_NPU/funs.py | import os
import random
import numpy as np
import scipy.io as sio
import pandas as pd
from scipy import stats
from sklearn import metrics
from scipy.optimize import linear_sum_assignment
from sklearn.metrics import adjusted_rand_score as ari
from sklearn.metrics import adjusted_mutual_info_score as ami_ori
from sklear... | PypiClean |
/CGlue-0.2.4.tar.gz/CGlue-0.2.4/cglue/plugins/AsyncServerCalls.py | import chevron
from cglue.function import FunctionImplementation, FunctionPrototype
from cglue.ports import PortType
from cglue.cglue import Plugin, CGlue
from cglue.runtime_generator.context import RuntimeGeneratorContext
from cglue.signal import SignalType, SignalConnection
from cglue.data_types import TypeCollectio... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/widget/Toaster.js | define("dojox/widget/Toaster",["dojo/_base/declare","dojo/_base/lang","dojo/_base/connect","dojo/_base/fx","dojo/dom-style","dojo/dom-class","dojo/dom-geometry","dijit/registry","dijit/_WidgetBase","dijit/_TemplatedMixin","dijit/BackgroundIframe","dojo/fx","dojo/has","dojo/_base/window","dojo/window"],function(_1,_2,_3... | PypiClean |
/Box2D-2.3.2.tar.gz/Box2D-2.3.2/examples/pgu/gui/layout.py |
class Layout:
"""The document layout engine."""
def __init__(self,rect=None):
"""initialize the object with the size of the box."""
self._widgets = []
self.rect = rect
def add(self,e):
"""Add a document element to the layout.
The document elem... | PypiClean |
/ConceptNet-5.7.0.tar.gz/ConceptNet-5.7.0/conceptnet5/readers/conceptnet4.py | from conceptnet5.edges import make_edge
from conceptnet5.formats.json_stream import read_json_stream
from conceptnet5.formats.msgpack_stream import MsgpackStreamWriter
from conceptnet5.language.lemmatize import lemmatize_uri
from conceptnet5.nodes import standardized_concept_uri, valid_concept_name
from conceptnet5.uri... | PypiClean |
/KratosMeshingApplication-9.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/MeshingApplication/mmg_process.py | import KratosMultiphysics as KratosMultiphysics
import KratosMultiphysics.MeshingApplication as MeshingApplication
try:
import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication
structural_dependencies = True
except ImportError as e:
structural_dependencies = False
# Some ... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/TeX/Typewriter/Regular/CombDiacritMarks.js | MathJax.Hub.Insert(MathJax.OutputJax.SVG.FONTDATA.FONTS.MathJax_Typewriter,{768:[611,-485,0,-409,-195,"-409 569Q-409 586 -399 596T-377 610Q-376 610 -372 610T-365 611Q-355 610 -284 588T-210 563Q-195 556 -195 537Q-195 533 -197 522T-208 498T-229 485Q-238 485 -312 508T-388 533Q-400 538 -405 552Q-409 559 -409 569"],769:[611... | PypiClean |
/Hamlish-Jinja-0.3.3.tar.gz/Hamlish-Jinja-0.3.3/hamlish_jinja.py |
import re
import os.path
from jinja2 import TemplateSyntaxError, nodes
from jinja2.ext import Extension
__version__ = '0.3.3'
begin_tag_rx = r'\{%\-?\s*haml.*?%\}'
end_tag_rx = r'\{%\-?\s*endhaml\s*\-?%\}'
begin_tag_m = re.compile(begin_tag_rx)
end_tag_m = re.compile(end_tag_rx)
class HamlishExtension(Extension... | PypiClean |
/AADeepLearning-1.0.8.tar.gz/AAdeepLearning-1.0.8/develop/aa_cnn_cifar10.py | from aa_deep_learning.AADeepLearning import AADeepLearning
from aa_deep_learning.AADeepLearning.datasets import cifar10
from aa_deep_learning.AADeepLearning.datasets import np_utils
# 载入数据,如果不存在则自动下载
(x_train, y_train), (x_test, y_test) = cifar10.load_data()
# 第一个维度是样本数目,第二维度是通道数表示颜色通道数,第三维度是高,第四个维度是宽
print('x_train ... | PypiClean |
/MAST-U-DMS-GUI-0.1.17.tar.gz/MAST-U-DMS-GUI-0.1.17/MASTUDMSGUI/df_manipulation.py | import numpy as np
import pandas as pd
import concurrent.futures
import time
import matplotlib.pyplot as plt
def calibration(wavelength,centre_wavelength):
'''Determines the correct offset needed based on the centre wavelength and applies it to the wavelength values
Parameters
----------
wavelength : ... | PypiClean |
/ORCID-Hub-4.16.6.tar.gz/ORCID-Hub-4.16.6/docs/db_recovery.rst | #################################
Orcid Hub DB Recovery From Backup
#################################
.. role:: bash(code)
:language: bash
.. role:: sql(code)
:language: sql
Full DB Recovery
****************
#. Stop the DB server, if it's running: :bash:`docker-compose stop db`;
#. Remove all existing fil... | PypiClean |
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/loaders/gro.py | from genice2.cell import rel_wrap
import pairlist as pl
import numpy as np
import re
import logging
desc = {"ref": {"gro": "http://manual.gromacs.org/current/online/gro.html"},
"brief": "Gromacs .gro file.",
"usage": "No options available."
}
def readaline(file):
"""
read a non-comment... | PypiClean |
/Internet-in-a-Box-0.5.10.tar.gz/Internet-in-a-Box-0.5.10/iiab/static/lib/leaflet/leaflet.js | (function(t,e,i){var n,o;typeof exports!=i+""?n=exports:(o=t.L,n={},n.noConflict=function(){return t.L=o,this},t.L=n),n.version="0.5.1",n.Util={extend:function(t){var e,i,n,o,s=Array.prototype.slice.call(arguments,1);for(i=0,n=s.length;n>i;i++){o=s[i]||{};for(e in o)o.hasOwnProperty(e)&&(t[e]=o[e])}return t},bind:funct... | PypiClean |
/CSUMMDET-1.0.23.tar.gz/CSUMMDET-1.0.23/mmdet/utils/flops_counter.py |
# MIT License
# Copyright (c) 2018 Vladislav Sovrasov
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, m... | PypiClean |
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/pdfviewer/buttonpanel.py |
# History: Created 26 Jun 2009
#
# Tags: phoenix-port, documented
#
#----------------------------------------------------------------------------
"""
This module provides the :class:`~wx.lib.pdfviewer.buttonpanel.pdfButtonPanel`
which can be used together with the :class:`~wx.lib.pdfviewer.viewer.pdfViewe... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.