id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/NeodroidAgent-0.4.8-py36-none-any.whl/neodroidagent/utilities/misc/environment_model/environment_utilities.py | from itertools import product
import gym
import numpy
__all__ = [
"get_gym_environs",
"get_gym_stats",
"is_tuple",
"is_continuous",
"is_multidimensional",
"obs_stats",
"action_stats",
"env_stats",
]
def get_gym_environs():
""" List all valid OpenAI ``gym`` environment ids. """
... | PypiClean |
/Cfg-Loader-0.2.2.tar.gz/Cfg-Loader-0.2.2/docs/api_reference.rst | .. _api_reference:
***
API
***
.. module:: cfg_loader
This part of the documentation covers all the interfaces of Conf-Loader.
Schema
======
.. py:currentmodule:: cfg_loader.schema.base
.. autoclass:: InterpolatingSchema
:members:
.. autoclass:: ExtraFieldsSchema
:members:
.. autoclass:: UnwrapNestedSch... | PypiClean |
/Assimulo-3.0.tar.gz/Assimulo-3.0/assimulo/examples/ida_with_jac.py |
# Copyright (C) 2010 Modelon AB
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITH... | PypiClean |
/Makima-0.1.9.1-py3-none-any.whl/makima/windows/utils/mouse.py | import ctypes
import ctypes.wintypes
from time import sleep
from makima.windows.utils import common
from makima.windows.call_win_api.i_mouse import IMouse
class WinMouse(IMouse):
_MOUSEEVENTF_MOVE = 0x0001 # mouse move
_MOUSEEVENTF_LEFTDOWN = 0x0002 # left button down
_MOUSEEVENTF_LEFTUP = 0x0004 # le... | PypiClean |
/NovalIDE-1.1.8-py3-none-any.whl/noval/editor/text.py | import tkinter as tk
from tkinter import messagebox,filedialog
from noval import GetApp,_
import noval.core as core
import noval.filewatcher as filewatcher
import codecs
import noval.python.parser.utils as parserutils
import noval.consts as consts
import os
import noval.util.fileutils as fileutils
import sys
import nov... | PypiClean |
/FliKISS-0.1.tar.gz/FliKISS-0.1/flikiss/static/js/editor.js | * Editor class
* @param textarea_id : Textarea id to create CodeMirror instance
* @param upload_url : Url used to upload files with DnD
* @param convert_url : Url used to convert Markdown into html
**/
function Editor(textarea_id, upload_url, convert_url) {
var self = this;
// codemirror
self.codemirro... | PypiClean |
/KratosMultilevelMonteCarloApplication-9.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/MultilevelMonteCarloApplication/XMC/xmc/methodDefs_momentEstimator/powerSums.py | import warnings
import numpy as np
from exaqute import (
task,
Type,
Depth,
COLLECTION_IN,
INOUT,
)
from xmc.tools import flatten
from .types import (
PowerSumsDict,
SampleArray,
PowerSumsDictUL,
CombinedSampleArray,
)
from typing import Union
def updatedPowerSums(powerSums: PowerS... | PypiClean |
/Banyan-0.1.5.tar.gz/Banyan-0.1.5/banyan/_min_gap_updator.py | from __future__ import print_function
import banyan_c
class MinGapUpdator(object):
"""
Updates nodes by the minimum, maximum, and min-gaps of their subtrees. Allows trees employing this to
efficiently answer what is the smallest gap in their keys.
Example:
>>> t = Sor... | PypiClean |
/Instrumental-lib-0.7.zip/Instrumental-lib-0.7/docs/faq.rst | FAQs
====
My instrument isn't showing up in ``list_instruments()``. What now?
-------------------------------------------------------------------
If you're using this particular driver for the first time, make sure you've followed the install directions fully. You should also check that the device works with any vend... | PypiClean |
/GaiaAlertsPy-1.0.0.tar.gz/GaiaAlertsPy-1.0.0/licenses/LICENSE.rst | BSD 3-Clause License
====================
Copyright (c) 2023, Andy Tzanidakis
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of condit... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-table/src/constants/index.js | const VERSION = '1.18.3'
let bootstrapVersion = 4
try {
const rawVersion = $.fn.dropdown.Constructor.VERSION
// Only try to parse VERSION if it is defined.
// It is undefined in older versions of Bootstrap (tested with 3.1.1).
if (rawVersion !== undefined) {
bootstrapVersion = parseInt(rawVersion, 10)
... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/specialchar/dialogs/lang/zh.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("specialchar","zh",{euro:"歐元符號",lsquo:"左單引號",rsquo:"右單引號",ldquo:"左雙引號",rdquo:"右雙引號",ndash:"短破折號",mdash:"長破折號",iexcl:"倒置的驚嘆號",cent... | PypiClean |
/GRR-M2Crypto-0.22.6.tar.gz/GRR-M2Crypto-0.22.6/M2Crypto/SSL/cb.py | __all__ = ['unknown_issuer', 'ssl_verify_callback_stub', 'ssl_verify_callback',
'ssl_verify_callback_allow_unknown_ca', 'ssl_info_callback']
# Python
import sys
# M2Crypto
import Context
from M2Crypto import m2
def ssl_verify_callback_stub(ssl_ctx_ptr, x509_ptr, errnum, errdepth, ok):
# Deprecated
... | PypiClean |
/ChIP_R-1.2.0-py3-none-any.whl/chipr/chipr.py |
import argparse
import sys
from chipr import rankprod, bed
class RankProdAnalysis(object):
def __init__(self):
parser = argparse.ArgumentParser(prog='chipr',
description="Combine multiple ChIP-seq files and return a union of all peak "
... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Tool/clang.py | #
# Copyright (c) 2001 - 2019 The SCons Foundation
#
# 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... | PypiClean |
/Encrypt_Lab-0.1.6-py3-none-any.whl/Encrypt_Lab/Input.py | from PyQt5 import QtCore, QtGui
from PyQt5.QtWidgets import (QFileDialog, QComboBox,QRadioButton, QApplication, QLabel, QLineEdit,QDoubleSpinBox,QSlider,
QCheckBox,
QPushButton, QWidget,QGroupBox,QSpinBox, QColorDialog, QFrame,QVBoxLayout)
from PyQt5.QtCore imp... | PypiClean |
/JacksonQuery-0.0.1-py3-none-any.whl/jacksonquery/tenure_extractor.py | import datetime
import re
import pandas as pd
import numpy as np
def extract_tenures(sublists):
"""
Extracts the portfolio manager names, start dates, and titles from the sublists.
:param sublists: (list) List of sublists from the Jackson Holdings website.
:return: (dict) Dictionary of portfolio mana... | PypiClean |
/HydPy-5.0.1-cp38-cp38-win_amd64.whl/hydpy/auxs/validtools.py | """This module implements features for the validation of (numerical) input data."""
# import...
# ...from site-packages
import numpy
# ...from hydpy
from hydpy.core import objecttools
def test_equal_shape(**kwargs) -> None:
"""Raise a ValueError if the shapes of the objects given as keywords are not equal.
... | PypiClean |
/Marmir-0.1.3.tar.gz/Marmir-0.1.3/mm/lib/xlwt_0_7_2/Worksheet.py | import BIFFRecords
import Bitmap
import Formatting
import Style
import tempfile
class Worksheet(object):
from Workbook import Workbook
#################################################################
## Constructor
#################################################################
def __init__(se... | PypiClean |
/Dolly-0.4.0.tar.gz/Dolly-0.4.0/README.md | # Dolly
[](https://travis-ci.org/xp-forge/dolly)
```
_ ,--. | |
_-(_)- | |,---.| | , .
`(___) | || || | | |
// \\ `--' `---'`---'`---'`---|
`---'
```
Dolly manage... | PypiClean |
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/storage/trades_storage.py | import octobot_commons.channels_name as channels_name
import octobot_commons.enums as commons_enums
import octobot_commons.authentication as authentication
import octobot_commons.databases as commons_databases
import octobot_trading.enums as enums
import octobot_trading.constants as constants
import octobot_trading.st... | PypiClean |
/GxAutoTestManager-1.0.1.tar.gz/GxAutoTestManager-1.0.1/AutoTestManager/client/ai_client.py |
import socket
import time
import sys
import threading
import json
import os
import multiprocessing
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(BASE_DIR)
sys.path.append(os.path.join(BASE_DIR,"../server/modules"))
import log
import ftp
import msg
import sendmsg
class AiClient(object):
de... | PypiClean |
/JoUtil-1.3.3-py3-none-any.whl/JoTools/operateDeteRes.py |
import os
import cv2
import random
import collections
from collections import Counter
import numpy as np
import prettytable
from .txkjRes.deteRes import DeteRes
from .txkjRes.deteAngleObj import DeteAngleObj
from .txkjRes.deteObj import DeteObj
from .utils.DecoratorUtil import DecoratorUtil
from .utils.FileOperationUt... | PypiClean |
/GSEIMIITB-1.1.tar.gz/GSEIMIITB-1.1/src/grc/gui/canvas/port.py | from __future__ import absolute_import, division
import math
from gi.repository import Gtk, PangoCairo, Pango
from . import colors
from .drawable import Drawable
from .. import Actions, Utils, Constants
from ...core.utils.descriptors import nop_write
from ...core.ports import Port as CorePort
class Port(CorePort, ... | PypiClean |
/Flask_Attachment_New-1.0.1-py3-none-any.whl/flask_attachment/Manager.py | import os
import shutil
import sys
import traceback
from typing import List
from flask import current_app
from werkzeug.datastructures import FileStorage
from flask_attachment.data import OutputType
from flask_attachment.data.FileInfo import FileInfo, FileInfoBuilder
from flask_attachment.data.Operation import Operat... | PypiClean |
/hft_crypto_api-1.0.6.tar.gz/hft_crypto_api-1.0.6/example.py | from hftcryptoapi.bitmart import Bitmart
from hftcryptoapi.bitmart.data.constants import *
from datetime import datetime, timedelta
import time
if __name__ == '__main__':
api_key = ""
secret_key = ""
memo = ""
to_time = datetime.now()
from_time = to_time - timedelta(days=10)
symbol = "BTCUSDT... | PypiClean |
/GSEIMIITB-1.1.tar.gz/GSEIMIITB-1.1/src/grc/gui/Bars.py | from __future__ import absolute_import
import logging
from gi.repository import Gtk, GObject, Gio, GLib
from . import Actions
log = logging.getLogger(__name__)
'''
# Menu/Toolbar Lists:
#
# Sub items can be 1 of 3 types
# - List Creates a section within the current menu
# - Tuple Creates a submenu using a st... | PypiClean |
/Auto_FOX-1.0.0b1-py3-none-any.whl/FOX/armc/guess.py | from __future__ import annotations
from types import MappingProxyType
from itertools import chain
from typing import (
Iterable,
Mapping,
MutableMapping,
Tuple,
Dict,
Set,
Container,
TYPE_CHECKING
)
import numpy as np
import pandas as pd
from scm.plams import Units
from nanoutils impo... | PypiClean |
/LibJciHitachi-0.5.2-py3-none-any.whl/JciHitachi/aws_connection.py | import datetime
import json
import logging
import threading
import time
import uuid
from dataclasses import dataclass, field
from typing import Dict
import awscrt
import httpx
from awsiot import iotshadow, mqtt_connection_builder
from .model import JciHitachiAWSStatus, JciHitachiAWSStatusSupport
AWS_COGNITO_REGION =... | PypiClean |
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/bigjob_dynamic/many_job_affinity.py | import os
import sys
sys.path.append(os.path.dirname( __file__ ))
from many_job import *
class many_job_affinity_service(many_job_service):
def __init__(self, bigjob_list, advert_host):
""" accepts resource list as key/value pair:
( {"resource_url" : "gram://qb1.loni.org/jobmanager-pbs", "... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/querystring.d.ts | declare module 'querystring' {
interface StringifyOptions {
encodeURIComponent?: ((str: string) => string) | undefined;
}
interface ParseOptions {
maxKeys?: number | undefined;
decodeURIComponent?: ((str: string) => string) | undefined;
}
interface ParsedUrlQuery extends Node... | PypiClean |
/DisplaceNet-0.1.tar.gz/DisplaceNet-0.1/engine/object_detection_branch/retina_net/examples/ResNet50RetinaNet.py | from __future__ import print_function
# import miscellaneous modules
import matplotlib.pyplot as plt
import numpy as np
import os
import time
import cv2
# import keras
# set tf backend to allow memory to grow, instead of claiming everything
# import keras_retinanet
from examples.object_detectors.retina_net.keras_reti... | PypiClean |
/EditObj2-0.5.1.tar.gz/EditObj2-0.5.1/field_gtk.py |
# field_gtk.py
# Copyright (C) 2007-2008 Jean-Baptiste LAMY -- jiba@tuxfamily.org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any la... | PypiClean |
/McPhysics-1.5.12.tar.gz/McPhysics-1.5.12/playground.py | # (https://github.com/Spinmob/macrospyn).
# Copyright (c) 2002-2020 Jack Childress (Sankey).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3.
#
# This program is distri... | PypiClean |
/NREL_disco-0.4.2-py3-none-any.whl/disco/cli/summarize_hosting_capacity.py |
import json
import logging
import re
import shutil
import sys
import time
from pathlib import Path
from tempfile import NamedTemporaryFile
import click
import chevron
from jade.loggers import setup_logging
from jade.utils.subprocess_manager import check_run_command
from jade.utils.utils import get_cli_string, load_d... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/ntriples/ntriples.js | /*
The following expression defines the defined ASF grammar transitions.
pre_subject ->
{
( writing_subject_uri | writing_bnode_uri )
-> pre_predicate
-> writing_predicate_uri
-> pre_object
-> writing_object_uri | writing_o... | PypiClean |
/Doozer-1.2.0.tar.gz/Doozer-1.2.0/docs/extensions.rst | ==========
Extensions
==========
Extensions provide additional functionality to applications. Configuration
management is shared between applications and extensions in a central location.
Using Extensions
================
.. code::
from doozer import Application
from doozer_sqlite import SQLite
app = A... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/drawing/stencil/Text.js.uncompressed.js | define("dojox/drawing/stencil/Text", ["dijit","dojo","dojox"], function(dijit,dojo,dojox){
dojo.provide("dojox.drawing.stencil.Text");
dojox.drawing.stencil.Text = dojox.drawing.util.oo.declare(
// summary:
// Creates a dojox.gfx Text (SVG or VML) based on data provided.
// description:
// There are two text cla... | PypiClean |
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/utils/np_box_mask_list_ops.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from six.moves import range
from object_detection.utils import np_box_list_ops
from object_detection.utils import np_box_mask_list
from object_detection.utils import np_mask_ops
def box_li... | PypiClean |
/CAGMon-0.8.5-py3-none-any.whl/cagmon/echo.py | import os
from gwpy.time import tconvert
__author__ = 'Phil Jung <pjjung@nims.re.kr>'
#---------------------------------------------------------------------------------------------------------#
def html_head():
html_head = '''<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"><link rel... | PypiClean |
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/multiple_alignment/get_specific_positions_from_multiple_alignments.py | __author__ = 'Sergei F. Kliver'
import argparse
from RouToolPa.Routines import MultipleAlignmentRoutines
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--input_dir", action="store", dest="input_dir", required=True,
help="Input directory with alignments")
parser.add_argument("-o", ... | PypiClean |
/OASYS1-WONDER-1.0.45.tar.gz/OASYS1-WONDER-1.0.45/orangecontrib/wonder/widgets/structural/ow_phases_gsasii.py |
import sys
from PyQt5.QtWidgets import QMessageBox
from orangewidget import gui as orangegui
from orangecontrib.wonder.widgets.gui.ow_generic_parameter_widget import ParameterBox
from orangecontrib.wonder.widgets.gui.ow_generic_phases_widget import OWGenericWidget, OWGenericPhases
from orangecontrib.wonder.util.gui... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/admindocs/utils.py | "Misc. utility functions/classes for admin documentation generator."
import re
from email.parser import HeaderParser
from email.errors import HeaderParseError
from django.utils.safestring import mark_safe
from django.core.urlresolvers import reverse
from django.utils.encoding import force_bytes
try:
import docuti... | PypiClean |
/Flask_BS4-5.3.1.0-py3-none-any.whl/flask_bs4/forms.py | from dominate import tags
from markupsafe import Markup
from wtforms.widgets.core import html_params
from .internals import xmlattr
def _add_description(field, **kwargs):
if field.description:
_attributes = {
"id": field.name + "Help",
"class": "form-text",
}
retu... | PypiClean |
/CNFgen-0.9.2-py3-none-any.whl/cnfgen/clihelpers/graph_helpers.py | import argparse
from cnfgen.families.coloring import GraphColoringFormula
from cnfgen.families.coloring import EvenColoringFormula
from cnfgen.families.dominatingset import DominatingSet
from cnfgen.families.dominatingset import Tiling
from cnfgen.families.graphisomorphism import GraphIsomorphism
from cnfgen.familie... | PypiClean |
/JAVA_CLASS_GENERATOR-1.tar.gz/JAVA_CLASS_GENERATOR-1/JAVA_CLASS_GENERATOR/java_class_generator.py | import sys
import os
# Creating necessary functions
def clear():
# type: () -> None
if sys.platform.startswith('win'):
os.system('cls') # For Windows System
else:
os.system('clear') # For Linux System
def capitalize_first(string: str) -> str:
if len(string) == 0:
return "... | PypiClean |
/Financial_Graph_Lib-1.0.4-py3-none-any.whl/fglib/kagilib.py | import pandas as pd
from fglib import atrlib
import numpy as np
def kagi(df):
kagi_break = atrlib.brick_size(df)
d , o , c, ko , kc, color,vol = [],[],[],[],[],[],[]
ko.append(df["open"][0])
d.append(df["date"][0])
o.append(df["open"][0])
c.append(df["close"][0])
vol.append(df['volume'][0... | PypiClean |
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/fast-glob/out/providers/filters/deep.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils = require("../../utils");
const partial_1 = require("../matchers/partial");
class DeepFilter {
constructor(_settings, _micromatchOptions) {
this._settings = _settings;
this._micromatchOptions = _micromatchOption... | PypiClean |
/ORG.asm-1.0.3.tar.gz/ORG.asm-1.0.3/doc/sphinx/source/install.rst | Installing |orgasm|
===================
Availability of |orgasm|
........................
|Orgasm| is open source and protected by the CeCILL 2.1 license
(`http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html <http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html>`_).
|Orgasm| is deposited on the Python... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/dns/rdata.py |
# Copyright (C) 2001-2017 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND... | PypiClean |
/OMEMO-1.0.2.tar.gz/OMEMO-1.0.2/omemo/backend.py | from abc import ABC, abstractmethod
from typing import Any, Optional, Tuple
from .bundle import Bundle
from .message import Content, EncryptedKeyMaterial, PlainKeyMaterial, KeyExchange
from .session import Session
from .types import OMEMOException
__all__ = [ # pylint: disable=unused-variable
"Backend",
"Ba... | PypiClean |
/IdracRedfishSupport-0.0.8.tar.gz/IdracRedfishSupport-0.0.8/ExportThermalHistoryREDFISH.py |
import argparse
import getpass
import json
import logging
import re
import requests
import sys
import time
import warnings
from datetime import datetime
from pprint import pprint
warnings.filterwarnings("ignore")
parser=argparse.ArgumentParser(description="Python script using Redfish API with OEM extension to expor... | PypiClean |
/CNFgen-0.9.2-py3-none-any.whl/cnfgen/graphs.py | import os
import io
import random
from io import StringIO
import copy
from bisect import bisect_right, bisect_left
import networkx
from cnfgen.localtypes import positive_int, non_negative_int
__all__ = [
"readGraph", "writeGraph",
"Graph", "DirectedGraph", "BipartiteGraph",
"supported_graph_formats",
... | PypiClean |
/DesignSpark.ESDK-23.2.1-py3-none-any.whl/DesignSpark/ESDK/MAIN.py | import smbus2
import toml
import threading
import re
import subprocess
import pkg_resources
import imp
import inspect
import os
import RPi.GPIO as GPIO
from gpsdclient import GPSDClient
from . import AppLogger
from . import MAIN, THV, CO2, PM2, NO2, NRD, FDH
possibleModules = {
"THV": 0x44,
"CO2": 0x62,
... | PypiClean |
/ElectricalWireSizes-0.1.30rc1.tar.gz/ElectricalWireSizes-0.1.30rc1/electricalwiresizes/dbcircuitcd.py | from tabulate import tabulate
from .bd import dbConductorCuStd
import math, time
from .mbtcustd import mbtcustd
from .basicelecfunc import Rn, RnCd, Rcd, FCT
def dbcircuitcd(carga=None,view=None,conductor=None):
if(carga==None or view==None or conductor==None):
t = time.localtime()
print(":::::... | PypiClean |
/ConcurrentPandas-0.1.2.tar.gz/ConcurrentPandas-0.1.2/concurrentpandas.py | __author__ = 'Brian M Wilcox'
__version__ = '0.1.2'
"""
Copyright 2014 Brian M Wilcox
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... | PypiClean |
/MultiApp-1.0.tar.gz/MultiApp-1.0/multiapp.py | import sys
import os
from os.path import basename
from iotk import *
class MultiApp:
"""
This is a base class for MultiApp. You can populate it with commands by
creating, documenting, and providing certain attributes to methods of a
subclass of MultiApp.
"""
name = "<<MultiApp>>"
version = ... | PypiClean |
/ConSSL-0.0.1-py3-none-any.whl/CSSL/models/self_supervised/resnets.py | import torch
from torch import nn as nn
from CSSL.utils import _TORCHVISION_AVAILABLE
from CSSL.utils.warnings import warn_missing_pkg
if _TORCHVISION_AVAILABLE:
from torchvision.models.utils import load_state_dict_from_url
else: # pragma: no cover
warn_missing_pkg('torchvision')
__all__ = [
'ResNet',
... | PypiClean |
/BiblioPixel-3.4.46.tar.gz/BiblioPixel-3.4.46/bibliopixel/util/int_names.py | import calendar
def to_index(name):
if isinstance(name, float):
raise KeyError('Indexes cannot be floating point')
try:
return int(name)
except:
pass
try:
return NAME_TO_INDEX[name.lower()]
except:
raise KeyError('Can\'t understand index "%s"' % name)
def ... | PypiClean |
/MnemoPwd-1.2.1-py3-none-any.whl/mnemopwd/client/corelayer/protocol/StateS37A.py |
# Copyright (c) 2016-2017, Thierry Lemeunier <thierry at lemeunier dot net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright n... | PypiClean |
/Gizela-1.0.18.tar.gz/Gizela-1.0.18/gizela/pyplot/FigureLayoutBase.py |
import matplotlib
import gizela
from gizela.util.Error import Error
from gizela.pyplot.PlotPoint import PlotPoint
from gizela.pyplot.BackendSingleton import BackendSingleton
#import math
class FigureLayoutBaseError(Error): pass
class FigureLayoutBase(object):
'''
object with matplotlib Figure instance
... | PypiClean |
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/ows/wps/v10/encoders/execute_response.py |
from lxml import etree
from django.utils.timezone import now
from django.utils.six import itervalues
from eoxserver.core.config import get_eoxserver_config
from eoxserver.services.ows.common.config import CapabilitiesConfigReader
from eoxserver.core.util.timetools import isoformat
from eoxserver.services.ows.wps.v10.... | PypiClean |
/githubkit-0.10.7-py3-none-any.whl/githubkit/rest/migrations.py | 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 (
UserMigrationsPostBodyType,
OrgsOrgMigrationsPostBodyType,
ReposOwnerRepoImportPutBodyType,
Repo... | PypiClean |
/OASYS1-APS-Extensions-1.0.87.tar.gz/OASYS1-APS-Extensions-1.0.87/README.md | # OASYS1-APS-Extensions
Copyright (c) 2018, UChicago Argonne, LLC. All rights reserved.
Copyright 2018. UChicago Argonne, LLC. This software was produced
under U.S. Government contract DE-AC02-06CH11357 for Argonne National ... | PypiClean |
/BioTEMPy-2.1.0a0-py3-none-any.whl/TEMPy/optimisation/ensemble_generation.py |
import os
from numpy import linspace
import TEMPy.math.vector as Vector
from TEMPy.protein.structure_parser import PDBParser
class EnsembleGeneration:
"""A class to create ensemble of structure instance"""
def __init__(self):
pass
def loadEnsemble(
self,
path_dir,
... | PypiClean |
/ActionCableZwei-0.1.7.2.tar.gz/ActionCableZwei-0.1.7.2/actioncable/connection.py | import threading
import uuid
import json
import logging
import time
import websocket
class Connection:
"""
The connection to a websocket server
"""
def __init__(self, url, origin=None, log_ping=False, cookie=None, header=None):
"""
:param url: The url of the cable server.
:para... | PypiClean |
/G31_KID_design-1.0.3.tar.gz/G31_KID_design-1.0.3/src/G31_KID_design/HilbertIShape.py |
# import packages
import ezdxf
from ezdxf.addons.drawing.matplotlib import MatplotlibBackend
from ezdxf.addons.drawing import Frontend, RenderContext
import numpy as np
import os
from pathlib import Path
from matplotlib import pyplot as plt
from shapely.geometry import Polygon
from shapely.ops import unary_union
# u... | PypiClean |
/Flask-Helper-2.0.8.tar.gz/Flask-Helper-2.0.8/README.md | # Flask-Heler
## 2.0.8
支持加载固定后缀的view 和 hook
## 2.0.7
修复无法一个方法注册两个路由问题
## 2.0.6
修复因为eventlet问题的启动问题
## 2.0.5
支持设置 cross_domain 参数,可以设置 methods, origin, headers
## 2.0.4
删除_packet_data
## 2.0.3
修复
'Flask2' object has no attribute 'session_cookie_name'
## 2.0.2
修复
TypeError: send_file() got an unexpected keyword arg... | PypiClean |
/Impression-CMS-0.2.0.tar.gz/Impression-CMS-0.2.0/impression/__init__.py |
__author__ = 'Scott Blevins'
__email__ = 'scott@britecore.com'
__version__ = '1.0'
from flask import Flask, g
from webassets.loaders import PythonLoader as PythonAssetsLoader
from impression.controllers.main import main_controller
from impression.controllers.admin import admin_controller
from impression.controllers.... | PypiClean |
/Adafruit_Blinka-8.20.1-py3-none-any.whl/adafruit_blinka/board/beagleboard/beaglebone_ai.py | """Pin definitions for the Beaglebone Black."""
from adafruit_blinka.microcontroller.dra74x import pin
# initial pins, to mimic bonescript demo
# BeagleBone Black
# P8_1 = DGND # DGND
# P8_2 = DGND # DGND
P8_3 = pin.P8_3 # GPIO1_6 - GPIO_38
P8_4 = pin.P8_4 # GPIO1_7 - GPIO_39
P8_5 = pin.P8_5 # GPIO1_2... | PypiClean |
/DLMS_SPODES-0.40.11.tar.gz/DLMS_SPODES-0.40.11/src/DLMS_SPODES/configure.py | from .types import cst
from .cosem_interface_classes import cosem_interface_class as ic, collection
from . import ITE_exceptions as exc
from .cosem_interface_classes.overview import ClassID
def get_attr_index(obj: ic.COSEMInterfaceClasses) -> list[int]:
""" return attribute indexes for reading keep configuration ... | PypiClean |
/Mastodon.py-1.8.1.tar.gz/Mastodon.py-1.8.1/docs/06_accounts.rst | Accounts, relationships and lists
=================================
.. py:module:: mastodon
.. py:class: Mastodon
Accounts
--------
These functions allow you to get information about accounts and associated data as well as update that data - profile data (incuding pinned statuses and endorsements) for the logged in us... | PypiClean |
/NIRCAM_Gsim-1.60.tar.gz/NIRCAM_Gsim-1.60/NIRCAM_Gsim/disperse/disperse.py | from scipy.interpolate import interp1d
import numpy as np
from ..polyclip.polyclip import polyclip
def dispersed_pixel(x0s,y0s,f0,order,C,ID,oversample_factor=2,extrapolate_SED=False,xoffset=0,yoffset=0):
"""This function take a list of pixels and disperses them using the information contained
in a GRISMCONF ... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/static/lib/js/selectize-0.12.4.js | (function(root, factory) {
if (typeof define === 'function' && define.amd) {
define('sifter', factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.Sifter = factory();
}
}(this, function() {
/**
* Textually searches arrays and hashes of objects
* by property (or m... | PypiClean |
/OASYS1-WOFRY-1.0.41.tar.gz/OASYS1-WOFRY-1.0.41/orangecontrib/wofry/util/wofry_util.py | import numpy, decimal
from PyQt5.QtGui import QFont, QPalette, QColor
from PyQt5.QtWidgets import QWidget, QGridLayout, QLabel, QDialog, QVBoxLayout, QDialogButtonBox
from matplotlib.patches import FancyArrowPatch, ArrowStyle
from oasys.widgets import gui
from oasys.util.oasys_util import get_sigma, get_fwhm
from si... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/managers/positioners/PositionerManager.py | from abc import ABC, abstractmethod
from typing import Dict, List
class PositionerManager(ABC):
""" Abstract base class for managers that control positioners. Each type of
positioner corresponds to a manager derived from this class. """
@abstractmethod
def __init__(self, positionerInfo, name: str, i... | PypiClean |
/ConcurrentLogHandler-0.9.1.tar.gz/ConcurrentLogHandler-0.9.1/src/portalocker.py | __all__ = [
"lock",
"unlock",
"LOCK_EX",
"LOCK_SH",
"LOCK_NB",
"LockException",
]
import os
class LockException(Exception):
# Error codes:
LOCK_FAILED = 1
if os.name == 'nt':
import win32con
import win32file
import pywintypes
LOCK_EX = win32con.LOCKFILE_EXCLUSIVE_LOCK
... | PypiClean |
/Gnosis_Utils-1.2.2.tar.gz/Gnosis_Utils-1.2.2/gnosis/xml/relax/rnctree.py | from __future__ import generators
import sys
from rnc_tokenize import token_list
class ParseError(SyntaxError): pass
for t in """
ANY SOME MAYBE ONE BODY ANNOTATION ELEM ATTR GROUP LITERAL
NAME COMMENT TEXT EMPTY INTERLEAVE CHOICE SEQ ROOT
DEFAULT_NS NS DATATYPES DATATAG PATTERN START DEFINE
""".split(): glob... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/code_generation/AsyncgenCodes.py | from .CodeHelpers import generateStatementSequenceCode
from .Emission import SourceCodeCollector
from .FunctionCodes import (
finalizeFunctionLocalVariables,
getClosureCopyCode,
getFunctionCreationArgs,
getFunctionQualnameObj,
setupFunctionLocalVariables,
)
from .Indentation import indented
from .Mo... | PypiClean |
/ECoXiPy-0.4.0.tar.gz/ECoXiPy-0.4.0/ecoxipy/validation.py | from ecoxipy import _unicode
class ValidationOutputWrapper(object):
'''\
Instances of this class wrap an :class:`ecoxipy.Output` instance and a
validator instance, the latter having a method like
:class:`ecoxipy.Output` for each XML node type it wishes to validate (i.e.
:meth:`element`, :meth:`tex... | PypiClean |
/Mask_anonymization_framework-1.3.2-py3-none-any.whl/mask_framework_lib/ner_plugins/utils/spec_tokenizers.py | import nltk
nltk.download('punkt')
from nltk.tokenize.util import align_tokens
from nltk.tokenize.treebank import TreebankWordTokenizer
import re
import tensorflow as tf
sess = tf.compat.v1.Session()
_treebank_word_tokenizer = TreebankWordTokenizer()
def tokenize_to_seq(documents):
sequences = []
sequence = [... | PypiClean |
/Bravo-2.0.tar.gz/Bravo-2.0/bravo/plugins/generators.py | from __future__ import division
from array import array
from itertools import combinations, product
from random import Random
from zope.interface import implements
from bravo.blocks import blocks
from bravo.ibravo import ITerrainGenerator
from bravo.simplex import octaves2, octaves3, set_seed
from bravo.utilities.ma... | PypiClean |
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/mu.py | from genice2.cell import cellvectors
import genice2.lattices
desc = {"ref": {"SpaceFullerene": 'Sikiric 2010'},
"usage": "No options available.",
"brief": "A space fullerene."
}
class Lattice(genice2.lattices.Lattice):
def __init__(self):
self.pairs = """
130 194
58... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/IPAExtensions.js | MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["STIXGeneral-bold-italic"],{592:[473,14,512,13,492],593:[473,14,612,25,592],594:[473,14,612,25,592],595:[691,13,500,-14,449],596:[462,13,444,-5,392],597:[462,157,444,-5,406],598:[699,233,500,-21,517],599:[683,13,570,-21,653],600:[462,13,444,5,421],601:[462... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/gantt/GanttResourceItem.js.uncompressed.js | define("dojox/gantt/GanttResourceItem", ["dijit","dojo","dojox","dojo/require!dojo/date/locale"], function(dijit,dojo,dojox){
dojo.provide("dojox.gantt.GanttResourceItem");
dojo.require("dojo.date.locale");
dojo.declare("dojox.gantt.GanttResourceItem", null, {
constructor: function(ganttchart){
this.ganttChart = g... | PypiClean |
/BrickPi-0.1.3.tar.gz/BrickPi-0.1.3/README.txt | =======
BrickPi
=======
BrickPi is a package that provides access to the BrickPi Raspberry Pi extension board.
The BrickPi extension board is a microprocessor board that allows the Raspberry Pi to
communicate with LEGO Mindstorms motors and sensors. The package provides Python and
Scratch interfaces to the BrickP... | PypiClean |
/OWSLib-0.29.2.tar.gz/OWSLib-0.29.2/owslib/owscontext/atom.py | from owslib.etree import etree, ParseError
from owslib import util
from owslib.namespaces import Namespaces
from owslib.util import nspath_eval, element_to_string
from owslib.util import log
from owslib.owscontext.common import is_empty, extract_p, \
try_int, try_float
# default variables
add_namespaces = {"geor... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/code_generation/ComparisonCodes.py | from nuitka.nodes.shapes.BuiltinTypeShapes import tshape_bool
from nuitka.nodes.shapes.StandardShapes import tshape_unknown
from nuitka.PythonOperators import (
comparison_inversions,
rich_comparison_arg_swaps,
)
from .c_types.CTypeBooleans import CTypeBool
from .c_types.CTypeNuitkaBooleans import CTypeNuitkaB... | PypiClean |
/Flask_Admin-1.6.1-py3-none-any.whl/flask_admin/form/widgets.py | from wtforms import widgets
from flask import current_app
from flask_admin.babel import gettext, ngettext
from flask_admin import helpers as h
__all__ = ['Select2Widget', 'DatePickerWidget', 'DateTimePickerWidget', 'RenderTemplateWidget', 'Select2TagsWidget', ]
def _is_bootstrap3():
view = h.get_current_view()
... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/tqdm/tqdm/std.py | from __future__ import absolute_import, division
import sys
from collections import OrderedDict, defaultdict
from contextlib import contextmanager
from datetime import datetime, timedelta
from numbers import Number
from time import time
from warnings import warn
from weakref import WeakSet
from ._monitor import TMoni... | PypiClean |
/dipex-4.54.5.tar.gz/dipex-4.54.5/integrations/aarhus/initial.py | import logging
from dataclasses import dataclass
from typing import Any
from typing import Dict
from typing import List
import config
import uuids
from initial_classes import Class
from initial_classes import CLASSES
from mox_helpers import payloads as mox_payloads
from mox_helpers.mox_helper import create_mox_helper
... | PypiClean |
/FrAG-1.1.0.tar.gz/FrAG-1.1.0/frag_pele/AdaptivePELE_repo/AdaptivePELE/spawning/densitycalculator.py | from __future__ import absolute_import, division, print_function, unicode_literals
from AdaptivePELE.constants import blockNames
from abc import abstractmethod
from AdaptivePELE.spawning import densitycalculatortypes
import sys
def continousDensity(contacts):
if contacts > 1.0:
return 8.0
else:
... | PypiClean |
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/lang/nl.js | /*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Dutch language.
*/
/**#@+
@type String
@example
*/
/**
* Constains the dictionary of lang... | PypiClean |
/CtrlF_TF-1.0b1.tar.gz/CtrlF_TF-1.0b1/src/ctrlf_tf/cli_prgm.py | import argparse
import sys
import pandas as pd
import ctrlf_tf as cftf
MAIN_DESCRIPTION = ("CtrlF-TF: TF Binding Site Search via Aligned Sequences.")
def _config_compile_parser(parser):
"""Configure the arguments for the align subprogram."""
required = parser.add_argument_group("required arguments")
op... | PypiClean |
/DESaster-0.1.8.tar.gz/DESaster-0.1.8/desaster/entities.py | from desaster.structures import SingleFamilyResidential, Building
from desaster.hazus import setContentsDamageValueHAZUS
import names, warnings, sys
from simpy import Container
class Entity(object):
"""A base class for representing entities, such as households, businesses,
agencies, NGOs, etc.
Methods:
... | PypiClean |
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/color/hy_AM/__init__.py | from collections import OrderedDict
from .. import Provider as ColorProvider
class Provider(ColorProvider):
"""Implement color provider for ``hy_AM`` locale."""
all_colors = OrderedDict(
(
("Ալիսի կապույտ", "#F0F8FF"),
("Անանուխի կրեմ", "#F5FFFA"),
("Անտառային կան... | PypiClean |
/EA_framework-2.2.3-py3-none-any.whl/EA_sequential/EA.py | from EA_sequential .Population import *
import numpy as np
class EA:
""" Main Evolutionary Strategy class
"""
def __init__(self, minimize, budget, patience,
parents_size, offspring_size,
individual_size, discrete,
recombination, mutation,
se... | PypiClean |
/OctoBot_Launcher-2.0.4-py3-none-any.whl/launcher/tools/environment.py | import logging
import os
import subprocess
import urllib.request
from launcher import CONFIG_FILE, OCTOBOT_GITHUB_REPOSITORY, \
GITHUB_RAW_CONTENT_URL, OCTOBOT_REFERENCE_BRANCH, DEFAULT_CONFIG_FILE, LOGGING_CONFIG_FILE, \
CONFIG_DEFAULT_EVALUATOR_FILE, CONFIG_DEFAULT_TRADING_FILE, OCTOBOT_NAME, LINUX_OS_NAME,... | PypiClean |
/MDAKit-1.0.0-py3-none-any.whl/MDKit/tools/PCA/md2pc.py |
import os
import sys
import prody
import argparse
import numpy as np
import pandas as pd
from multiprocessing import Pool
def assign_pcs(args):
fn, topf, eda, pcs, sel, outf = args
if fn.endswith("pdb"):
pdb = prody.parsePDB(fn)
pdb = pdb.select(sel).copy()
ensemble = prody.Ensembl... | PypiClean |
/Flask-AppBuilder-red-2.1.13.tar.gz/Flask-AppBuilder-red-2.1.13/flask_appbuilder/models/sqla/interface.py | import logging
import sys
import sqlalchemy as sa
from sqlalchemy import func
from sqlalchemy.exc import IntegrityError
from sqlalchemy.orm import Load
from sqlalchemy.orm.descriptor_props import SynonymProperty
from sqlalchemy_utils.types.uuid import UUIDType
from . import filters
from ..base import BaseInterface
fr... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.