id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/ows/component.py |
import logging
import itertools
from functools import partial
from django.http import HttpResponse
from django.utils.six import string_types
from eoxserver.core import Component, ExtensionPoint, env
from eoxserver.services.ows.interfaces import *
from eoxserver.services.ows.decoders import get_decoder
from eoxserve... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/ducks.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def ducks(path):
"""Behavioral and Plumage Characteristics of Hybrid Ducks
The `ducks` data fr... | PypiClean |
/AIRPrediction-0.0.8.tar.gz/AIRPrediction-0.0.8/Time_Series_Models/ARIMA_model.py | import pandas as pd
from statsmodels.tsa.arima_model import ARIMA
from datetime import datetime
"""
.. module:: ARIMA_model
:synopsis: The file containing the function that utilizes the ARIMA prediction model.
.. moduleauthor:: Haotian Wang <haotianwang@ufl.edu>
"""
def arima_prediction(pollutant, state, count... | PypiClean |
/Notable-0.4.2.tar.gz/Notable-0.4.2/notable/static/lib/ace/src-min/theme-ambiance.js | define("ace/theme/ambiance",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-ambiance",t.cssText=".ace-ambiance .ace_gutter {background-color: #3d3d3d;background-image: -moz-linear-gradient(left, #3D3D3D, #333);background-image: -ms-linear-gradient(left, #3D3D3D, #333);background... | PypiClean |
/Flask_Logger-1.0.4-py3-none-any.whl/Flask_Logger-1.0.4.dist-info/LICENSE.md | # MIT License
## Copyright (c) 2018
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, ... | PypiClean |
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/examples/xsede2013/mandelbrot.py |
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
""" A Simple Mandelbrot Fractal Generator.
We use this example to explore the distributed capabilites of
the SAGA Job and Filesystem APIs in Bliss. The mandelbrot module
calculates a full or partial (tile) mandelbrot set fractal and
writes it to a... | PypiClean |
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/lib/bindery/html.py | __all__ = [
'Document', 'Doctype', 'Comment', 'Element',
]
import copy
import itertools
from functools import *
from itertools import *
from amara.thirdparty import html5lib
from amara import tree
from amara.lib import inputsource
from amara.bindery import nodes
from amara.lib.xmlstring import *
from amara.namespaces... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ia-fr.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 |
/NovalIDE-1.1.8-py3-none-any.whl/noval/ttkwidgets/checklistbox.py | try:
import ttk
except ImportError:
from tkinter import ttk
import os
import noval.ttkwidgets.checkboxtreeview as checkboxtreeview
from tkinter.ttk import Style
class CheckListbox(checkboxtreeview.CheckboxTreeview):
"""
:class:`ttk.Treeview` widget with checkboxes left of each item.
.. note::... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/paper-menu-button/.github/ISSUE_TEMPLATE.md | <!-- Instructions: https://github.com/PolymerElements/paper-menu-button/CONTRIBUTING.md#filing-issues -->
### Description
<!-- Example: The `paper-foo` element causes the page to turn pink when clicked. -->
### Expected outcome
<!-- Example: The page stays the same color. -->
### Actual outcome
<!-- Example: The pa... | PypiClean |
/Cohen-0.7.4.tar.gz/Cohen-0.7.4/coherence/backends/axiscam_storage.py |
# Copyright 2007, Frank Scholz <coherence@beebits.net>
# check http://www.iana.org/assignments/rtp-parameters
# for the RTP payload type identifier
#
from sets import Set
from coherence.upnp.core.DIDLLite import classChooser, Container, Resource, DIDLElement
from coherence.backend import BackendStore, BackendItem
... | PypiClean |
/CatalanTTSo-0.0.1.tar.gz/CatalanTTSo-0.0.1/tts/preprocess.py | import argparse
from dataclasses import dataclass
from multiprocessing import Pool, cpu_count
from random import Random
import pyworld as pw
from utils.display import *
from utils.dsp import *
from utils.files import get_files, pickle_binary, read_config
from utils.paths import Paths
from utils.text.cleaners import C... | PypiClean |
/ImageD11-1.9.9.tar.gz/ImageD11-1.9.9/docs/sphx/programs.rst | ============
Program List
============
This is a list of the different things which can be run from a command line.
Image Related
=============
peaksearch.py
Peaksearches the images, see the detailed help.
recoveromega.py
Attempts to repair the problem of having no header information about sample orientation. La... | PypiClean |
/NREL-gaps-0.4.3.tar.gz/NREL-gaps-0.4.3/gaps/pipeline.py | import time
import logging
from pathlib import Path
from warnings import warn
from gaps.status import Status, StatusOption, StatusField, HardwareOption
from gaps.utilities import recursively_update_dict
from gaps.config import load_config
from gaps.exceptions import (
gapsConfigError,
gapsExecutionError,
g... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/roi_heads/mask_heads/global_context_head.py | import torch.nn as nn
from mmcv.cnn import ConvModule
from mmcv.runner import BaseModule, auto_fp16, force_fp32
from mmdet.models.builder import HEADS
from mmdet.models.utils import ResLayer, SimplifiedBasicBlock
@HEADS.register_module()
class GlobalContextHead(BaseModule):
"""Global context head used in `SCNet ... | PypiClean |
/LongTermBiosignals-1.0.0.tar.gz/LongTermBiosignals-1.0.0/src/biosignals/timeseries/Event.py |
# ===================================
# IT - LongTermBiosignals
# Package: biosignals
# Module: Event
# Description: Class Event, which is a point in time with some meaning associated.
# Contributors: João Saraiva
# Created: 26/06/2022
# Last Updated: 11/07/2022
# ===================================
from datetime... | PypiClean |
/ANNOgesic-1.1.14.linux-x86_64.tar.gz/usr/local/lib/python3.10/dist-packages/annogesiclib/multiparser.py | import os
import sys
import csv
import shutil
from annogesiclib.seq_editer import SeqEditer
from annogesiclib.helper import Helper
class Multiparser(object):
def __init__(self):
self.seq_editer = SeqEditer()
self.helper = Helper()
self.tmp_fa = "tmp.fa"
self.tmp_gff = "tmp.gff"
... | PypiClean |
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/camelot/view/controls/editors/floateditor.py |
from PyQt4 import QtGui
from PyQt4 import QtCore
from PyQt4.QtCore import Qt
from customeditor import CustomEditor, set_background_color_palette, draw_tooltip_visualization
from camelot.view.art import Icon
from camelot.core import constants
class CustomDoubleSpinBox(QtGui.QDoubleSpinBox):
"""Spinbox that doesn'... | PypiClean |
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/data/utils/histogram.py | import numpy as np
from scipy import sparse as sp
from AnyQt.QtCore import Qt, QRectF, QSizeF, QPointF, QLineF
from AnyQt.QtGui import QColor, QBrush, QPen
from AnyQt.QtWidgets import (
QGraphicsWidget,
QGraphicsRectItem,
QGraphicsLinearLayout,
QSizePolicy,
QGraphicsLineItem,
)
import Orange.statis... | PypiClean |
/LiteSpeed-1.2.0.tar.gz/LiteSpeed-1.2.0/litespeed/utils.py | import json
import os
import re
import sys
from _pydecimal import Decimal
from datetime import date, datetime, time
from typing import Any, Dict, Iterable, List, Optional, Tuple, Union
class ExceptionReporter:
"""Organize and coordinate reporting on exceptions."""
def __init__(self, request, exc_type, exc_va... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/documentation/external_definitions.rst | External Command-line Flags
===========================
.. cmdoption:: --prefix
Python installation option. See :cite:`InstallingPythonModules`.
.. cmdoption:: --home
Python installation option. See :cite:`InstallingPythonModules`.
External Environment Variables
==============================
.. envvar:: LD... | PypiClean |
/IdracRedfishSupport-0.0.8.tar.gz/IdracRedfishSupport-0.0.8/ExportSystemConfigurationLocalREDFISH.py |
import argparse
import getpass
import json
import logging
import os
import platform
import re
import requests
import subprocess
import sys
import time
import warnings
from datetime import datetime
from pprint import pprint
warnings.filterwarnings("ignore")
parser = argparse.ArgumentParser(description="Python script... | PypiClean |
/K_AIKO-0.5.2-py3-none-any.whl/kaiko/beats/beatpatterns.py | from fractions import Fraction
import dataclasses
from typing import List, Tuple, Dict, Union, Optional
import ast
from ..utils import parsec as pc
Value = Union[None, bool, int, Fraction, float, str]
Arguments = Tuple[List[Value], Dict[str, Value]]
class PatternError(Exception):
pass
class AST:
pass
@d... | PypiClean |
/23andme_to_vcf-0.0.3-py3-none-any.whl/23andme_to_vcf/driver.py | import argparse
parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument('--input', help='A 23andme data file', required=True)
parser.add_argument('--output', help='Output VCF file', required=True)
def load_fai():
index = {}
with open('./data/GRCh37.fa.fai') as f:
for ... | PypiClean |
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/vis/backends/vis_ipython.py | from ..visualization import _WindowManager,VisualizationScene,VisPlot,objectToVisType,_globalLock
from ..ipython import KlamptWidget,EditPoint,EditTransform,EditConfig,Playback
from ...model import coordinates
from ...model.subrobot import SubRobotModel
from ...robotsim import WorldModel,RobotModel,RigidObjectModel
fro... | PypiClean |
/CustomPipeline-0.0.3-py3-none-any.whl/rpcore/stages/update_previous_pipes_stage.py | from direct.stdpy.file import open
from rpcore.render_stage import RenderStage
from rpcore.globals import Globals
class UpdatePreviousPipesStage(RenderStage):
""" This stage is constructed by the StageManager and stores all the
current pipes in the previous pipe storage.
This stage is a bit special, an... | PypiClean |
/Keg-Auth-0.7.2.tar.gz/Keg-Auth-0.7.2/keg_auth/model/utils.py | from keg_auth.extensions import lazy_gettext as _
class PermissionCondition(object):
"""Basic permission condition that will return True/False upon user access check.
One or more permissions or conditions must be provided to the constructor.
"""
def __init__(self, *conditions):
if len(conditi... | PypiClean |
/Auxjad-1.0.0.tar.gz/Auxjad-1.0.0/auxjad/mutate/reposition_clefs.py | import abjad
def reposition_clefs(selection: abjad.Selection,
*,
shift_clef_to_notes: bool = True,
implicit_clef: abjad.Clef = abjad.Clef('treble'),
) -> None:
r"""Mutates an input |abjad.Selection| in place and has no return valu... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/powdata.py | from . import auxpow
from .bitcoin import hash_encode, int_to_hex
from . import blockchain
from .util import bfh
import neoscrypt
MM_FLAG = 0x80
ALGO_SHA256D = 1
ALGO_NEOSCRYPT = 2
class SerializedLengthError (Exception):
def __init__ (self, length):
super ().__init__ (f"Invalid PoW data length: {length}")
... | PypiClean |
/NIA_image_2latex-1.0-py3-none-any.whl/dataset/preprocessing/third_party/katex/src/buildHTML.js | * This file does the main work of building a domTree structure from a parse
* tree. The entry point is the `buildHTML` function, which takes a parse tree.
* Then, the buildExpression, buildGroup, and various groupTypes functions are
* called, to produce a final HTML tree.
*/
var ParseError = require("./ParseError... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Layer/EventPane.js | * @requires OpenLayers/Layer.js
* @requires OpenLayers/Util.js
*/
/**
* Class: OpenLayers.Layer.EventPane
* Base class for 3rd party layers, providing a DOM element which isolates
* the 3rd-party layer from mouse events.
* Only used by Google layers.
*
* Automatically instantiated by the Google constructor, a... | PypiClean |
/CircuitCalculator-0.1.0.tar.gz/CircuitCalculator-0.1.0/README.md | # CircuitCalculator
This project is a simple calculator for electrical circuits. It allows users to input the values of various components in a circuit (such as resistors, capacitors, and voltage sources) and will then calculate various properties of the circuit, such as the current and voltage at different points.
#... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/string-width/readme.md | # string-width
> Get the visual width of a string - the number of columns required to display it
Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and do... | PypiClean |
/DendroPy-4.6.1.tar.gz/DendroPy-4.6.1/src/dendropy/utility/messaging.py |
##############################################################################
## DendroPy Phylogenetic Computing Library.
##
## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder.
## All rights reserved.
##
## See "LICENSE.rst" for terms and conditions of usage.
##
## If you use this work or any portion there... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA-AI-1.1/DLTA_AI_app/mmdetection/.dev_scripts/benchmark_inference_fps.py | import argparse
import os
import os.path as osp
import mmcv
from mmcv import Config, DictAction
from mmcv.runner import init_dist
from terminaltables import GithubFlavoredMarkdownTable
from tools.analysis_tools.benchmark import repeat_measure_inference_speed
def parse_args():
parser = argparse.ArgumentParser(
... | PypiClean |
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/doctrees/nbsphinx/_build/doctrees/nbsphinx/_build/html/_build/html/_build/doctrees/nbsphinx/hn_module_tutorial.ipynb | # Tutorial for the HN module of HavNegpy package
```
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
import HavNegpy as dd
%matplotlib qt
os.chdir(r'M:\Marshall_Data\mohamed_data\mohamed_data\n44')
def create_dataframe(f):
col_names = ['Freq', 'T', 'Eps1', 'Eps2']
#f ... | PypiClean |
/Dsbn_probabilities-0.1.tar.gz/Dsbn_probabilities-0.1/Dsbn_probabilities/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/utils/inverted_residual.py | import torch.nn as nn
import torch.utils.checkpoint as cp
from mmcv.cnn import ConvModule
from mmcv.cnn.bricks import DropPath
from mmcv.runner import BaseModule
from .se_layer import SELayer
class InvertedResidual(BaseModule):
"""Inverted Residual Block.
Args:
in_channels (int): The input channels ... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/plugins/ltibestsubmission/__init__.py | from bson import ObjectId, json_util
from werkzeug.exceptions import NotFound
from inginious.common.tasks_problems import MultipleChoiceProblem, CodeProblem, MatchProblem, FileProblem
from inginious.frontend.pages.utils import INGIniousAuthPage
class LTIBestSubmissionPage(INGIniousAuthPage):
def is_lti_page(self... | PypiClean |
/Nitrous-0.9.3-py3-none-any.whl/turbogears/toolbox/catwalk/browse.py | from builtins import str
import cherrypy
try:
import sqlobject
except ImportError:
sqlobject = None
else:
from sqlobject.sqlbuilder import Select, func, AND, IN
import turbogears
from turbogears import expose, controllers
class Browse(controllers.Controller):
def __getattr__(self, attrib):
... | PypiClean |
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/remove_from_conference_all_of.py | import re # noqa: F401
import sys # noqa: F401
from freeclimb.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
vali... | PypiClean |
/HyperKitty-1.3.7.tar.gz/HyperKitty-1.3.7/hyperkitty/static/hyperkitty/libs/jquery.hotkeys.js | (function(jQuery){
jQuery.hotkeys = {
version: "0.8",
specialKeys: {
8: "backspace", 9: "tab", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause",
20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home",
37: "left", 38: "up", 39: "right", 40: "down", 45: "... | PypiClean |
/CLAchievements-0.1.0.tar.gz/CLAchievements-0.1.0/README.rst | Command Line Achievements — Make command line fun again!
========================================================
|sources| |pypi| |build| |coverage| |documentation| |license|
Command line was all fun when it was invented fifty years ago, but it can no longer compete with modern interfaces, glowing windows, shiny but... | PypiClean |
/KFlask-AppBuilder-1.0.1.tar.gz/KFlask-AppBuilder-1.0.1/flask_appbuilder/static/appbuilder/js/ab_actions.js |
//------------------------------------------------------
// AdminActions holds methods to handle UI for actions
//------------------------------------------------------
var AdminActions = function() {
var chkAllFlag = true;
var multiple = false;
var single = false;
var action_name = '';
var action... | PypiClean |
/GeCO-1.0.7.tar.gz/GeCO-1.0.7/geco/mips/facility_location/generic.py | import itertools
import pyscipopt as scip
def capacitated_facility_location(
n_customers,
n_facilities,
transportation_cost,
demands,
fixed_costs,
capacities,
name="Capacitated Facility Location",
):
"""
Generate a Capacitated Facility Location MIP formulation following [1].
... | PypiClean |
/MediaCurator-0.0.10.tar.gz/MediaCurator-0.0.10/mediacurator/library/medialibrary.py | ''' This is the library object who holds the information about the workspace and all the videos in it.'''
from pathlib import Path
from .video import Video
from .tools import deletefile
import colorama
colorama.init()
class MediaLibrary():
''' This is the library object who holds the information about the works... | PypiClean |
/Flask-Jy-Share-0.1.0.tar.gz/Flask-Jy-Share-0.1.0/flask_share/__init__.py | import re
from flask import (
current_app,
url_for,
Markup,
Blueprint,
request,
)
class Share(object):
def __init__(self, app=None):
if app is not None:
self.init_app(app)
def init_app(self, app):
'''
初始化
'''
if not hasattr(app, 'extens... | PypiClean |
/CTRegisterMicroserviceFlask-0.5.1.tar.gz/CTRegisterMicroserviceFlask-0.5.1/README.md | # Microservice Registration for Python Flask applications
[](https://travis-ci.org/Skydipper/ct-register-microservice-python-flask)
[:
'''
numpy.correlation(a, v, mode='solid') works by convolving `a` with
reverse of `v` and the result will be clipped by the `mode`.
np.correlati... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/lang/aspect.js | define(["dijit","dojo","dojox"],function(_1,_2,_3){
_2.provide("dojox.lang.aspect");
(function(){
var d=_2,_4=_3.lang.aspect,ap=Array.prototype,_5=[],_6;
var _7=function(){
this.next_before=this.prev_before=this.next_around=this.prev_around=this.next_afterReturning=this.prev_afterReturning=this.next_afterThrowing=this.... | PypiClean |
/Graphical_Clustering-0.0.3-py3-none-any.whl/GraphicalClustering/graph_cluster.py | import os
import warnings
import pandas as pd
import numpy as np
import networkx as nx
from networkx.algorithms.clique import find_cliques
from collections import Counter
from numpy.core.defchararray import find
from collections import OrderedDict
from collections import namedtuple
warnings.filterwarnings('ignore')
ro... | PypiClean |
/Flask-AppBuilder-red-2.1.13.tar.gz/Flask-AppBuilder-red-2.1.13/flask_appbuilder/static/appbuilder/js/ab_actions.js |
//------------------------------------------------------
// AdminActions holds methods to handle UI for actions
//------------------------------------------------------
var AdminActions = function() {
var chkAllFlag = true;
var multiple = false;
var single = false;
var action_name = '';
var action... | PypiClean |
/LEGODEV-0.0.4.tar.gz/LEGODEV-0.0.4/legodevlib/__init__.py | def forward_movement(distance=155, speed=30, time=1):
# Travel distance over 1 sec @ 30 speed: 155mm
reference_dst = {"distance": 155, "speed": 30 , "time": 1}
# Distance ratio calculation between given distance and reference distance
distance_ratio = distance / reference_dst["distance"]
# Spe... | PypiClean |
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/ows/version.py |
from functools import wraps
try:
from functools import total_ordering
except ImportError:
from eoxserver.core.util.functools import total_ordering
from django.utils.six import string_types
__all__ = ["parse_version_string", "Version"]
def parse_version_string(version_string):
""" Convenience function... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_sah.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 |
/KeyHarbor-0.0.1.tar.gz/KeyHarbor-0.0.1/keyharbor/exceptions.py | import copy
import inspect
__all__ = [
'APIException',
'Forbidden',
'InvalidRequest',
'NotFound',
'RateLimitExceeded',
'Unauthorized'
]
class APIException(Exception):
"""
An error occurred while processing an API the request.
"""
def __init__(self, status_code, hint=None, arg... | PypiClean |
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/model/action_request.py | import re # noqa: F401
import sys # noqa: F401
from openapi_client.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
... | PypiClean |
/GelReportModels-7.8.0.tar.gz/GelReportModels-7.8.0/protocols/coverage_0_1_0.py | from protocols.protocol import ProtocolElement
from protocols.protocol import SearchRequest
from protocols.protocol import SearchResponse
from protocols.protocol import avro_parse
import avro.schema
version = '0.1.0'
class AnalysisParameters(ProtocolElement):
"""
The configuration parameters used for the an... | PypiClean |
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/Proposer/eas/expdir_monitor/arch_manager.py | import os
import subprocess
import json
import pickle
import numpy as np
from ..data_providers.utils import get_data_provider_by_name
from .expdir_monitor import ExpdirMonitor
from ..expdir_monitor import distributed
class NetPool:
def __init__(self, path):
self.path = os.path.realpath(path)
os.makedirs(self.pat... | PypiClean |
/CSSegmentation-0.0.1-py3-none-any.whl/csseg/modules/datasets/base.py | import os
import copy
import torch
import torchvision
import numpy as np
from PIL import Image
from tqdm import tqdm
from .pipelines import SegmentationEvaluator
from .pipelines import (
Compose, Resize, CenterCrop, Pad, Lambda, RandomRotation, RandomHorizontalFlip, RandomVerticalFlip,
ToTensor, Normalize, Rand... | PypiClean |
/ENCODEQueryTools-0.1.1.tar.gz/ENCODEQueryTools-0.1.1/README.rst | =========================
ENCODEQueryTools v. 0.1.0
=========================
|
Introduction
############
The ENCODEQT module of the ENCODEQueryTools package is a Python wrapper around the ENCODE ChIP-Seq Significance Tool's API (ENCODEQT API). The ENCODE ChIP-Seq Significane Tool is a database-backed web tool for i... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/dnd/autoscroll.js.uncompressed.js | define("dojo/dnd/autoscroll", ["../main", "../window"], function(dojo) {
// module:
// dojo/dnd/autoscroll
// summary:
// TODOC
dojo.getObject("dnd", true, dojo);
dojo.dnd.getViewport = dojo.window.getBox;
dojo.dnd.V_TRIGGER_AUTOSCROLL = 32;
dojo.dnd.H_TRIGGER_AUTOSCROLL = 32;
dojo.dnd.V_AUTOSCROLL_VALUE = 16... | PypiClean |
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/esmvalcore/_main.py | import logging
import os
from pathlib import Path
import fire
from pkg_resources import iter_entry_points
# set up logging
logger = logging.getLogger(__name__)
HEADER = r"""
______________________________________________________________________
_____ ____ __ ____ __ _ _____ _
| ... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/readable-stream/lib/_stream_writable.js |
// A bit simpler than readable streams.
// Implement an async ._write(chunk, encoding, cb), and it'll handle all
// the drain event emission and buffering.
'use strict';
module.exports = Writable;
/* <replacement> */
function WriteReq(chunk, encoding, cb) {
this.chunk = chunk;
this.encoding = encoding;
this.c... | PypiClean |
/Cactus-3.3.3.tar.gz/Cactus-3.3.3/cactus/plugin/loader.py | import os
import sys
import imp
import logging
from cactus.plugin import defaults
from cactus.utils.filesystem import fileList
logger = logging.getLogger(__name__)
class BasePluginsLoader(object):
def load(self):
raise NotImplementedError("Subclasses must implement load")
def _initialize_plugin(se... | PypiClean |
/Auxjad-1.0.0.tar.gz/Auxjad-1.0.0/auxjad/get/virtual_fundamental.py | from typing import Optional, Union
import abjad
def _generate_harmonics_from_pitch(fundamental: abjad.Pitch,
upper_bound: abjad.Pitch,
) -> list:
r"""Generates the harmonic series for a given fundamental pitch up to a
given upper bound."""... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/yaml_27/yaml/composer.py | __all__ = ['Composer', 'ComposerError']
from error import MarkedYAMLError
from events import *
from nodes import *
class ComposerError(MarkedYAMLError):
pass
class Composer(object):
def __init__(self):
self.anchors = {}
def check_node(self):
# Drop the STREAM-START event.
if sel... | PypiClean |
/Bytestag-0.2b1.tar.gz/Bytestag-0.2b1/src/py3/bytestag/queue.py | # This file is part of Bytestag.
# Copyright © 2012 Christopher Foo <chris.foo@gmail.com>.
# Licensed under GNU GPLv3. See COPYING.txt for details.
from bytestag.events import asynchronous
import atexit
import contextlib
import os.path
import pickle
import queue
import sqlite3
import tempfile
import threading
__docfor... | PypiClean |
/AMLT-learn-0.2.9.tar.gz/AMLT-learn-0.2.9/amltlearn/preprocessing/Imputer.py | __author__ = 'bejar'
import numpy as np
from sklearn.base import TransformerMixin
from sklearn.neighbors import NearestNeighbors
class KnnImputer(TransformerMixin):
"""
Missing values imputation using the mean of the k-neighbors considering the
dimensions that are not missing.
It only uses the examp... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata-extra.js | (function(aj){var B="2.7.9";var t=aj.FONTDATA.DELIMITERS;var s="H",f="V";var ag=[8722,E,0,0,0,-0.26,-0.26];var u="STIXMathJax_Alphabets-bold-italic",G="STIXMathJax_Alphabets-bold",z="STIXMathJax_Alphabets-italic",e="STIXMathJax_Alphabets",R="STIXMathJax_Arrows-bold",x="STIXMathJax_Arrows",g="STIXMathJax_DoubleStruck-bo... | PypiClean |
/Chandler-AmazonPlugin-0.8-r16144.tar.gz/Chandler-AmazonPlugin-0.8-r16144/amazon/AmazonKinds.py |
__parcel__ = "amazon"
import amazon, sgmllib, wx, string
from osaf.pim import ContentItem, ListCollection
from osaf.pim.types import LocalizableString
from chandlerdb.util.URL import URL
from application import schema
from i18n import MessageFactory
import AmazonDialog
_ = MessageFactory("Chandler-AmazonPlugin")
... | PypiClean |
/MailTm-0.0.81-py3-none-any.whl/mailtm/email.py | import json
import string
import random
import requests
from .message import Listen
def username_gen(length=24, chars= string.ascii_letters + string.digits):
return ''.join(random.choice(chars) for _ in range(length))
def password_gen(length=8, chars= string.ascii_letters + string.digits + string.punctuation):
... | PypiClean |
/Flask-MailGun3-0.1.6.tar.gz/Flask-MailGun3-0.1.6/flask_mailgun/core.py | from flask import request
from .api import MailGunAPI
from .processing import Processor
from .attachment import (attachment_decorator,
ALL_EXTENSIONS,
process_attachments)
class MailGun(object):
"""MailGun Class"""
app = None
mailgun_api = None
auto_... | PypiClean |
/IntertwiningWavelet-0.0.11.tar.gz/IntertwiningWavelet-0.0.11/doc/index.rst | .. IntertwiningWavelet documentation master file, created by
sphinx-quickstart on Wed Feb 14 15:27:04 2018.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to IntertwiningWavelet's documentation!
==========================================... | PypiClean |
/Andencento-0.24.tar.gz/Andencento-0.24/userbot/random_strings/rands.py | SONGS = [
"🎶 I'm in love with the shape of you \n We push and pull like a magnet do\n Although my heart is falling too \n I'm in love with your body \n And last night you were in my room \n And now my bedsheets smell like you \n Every day discovering something brand new 🎶 \n 🎶 I'm in love with your body \n Oh—... | PypiClean |
/CBDict-2.0.tar.gz/CBDict-2.0/README.md | # ClipBoardDictionary
This program monitors the clipboard of the system and translate the word from English to Chinese by YouDao api, especially designed for Students who are working under linux environment where there is no simple translater when you reading papers.
# 项目起源
本人即将成为一名Ph.D,现在在看一些关于强化学习,深度学习,机器学习,控制理论等方面的... | PypiClean |
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/docs/how-to/check_player_equality.rst | Check Player equality
=====================
It is possible to test for player equality using :code:`==`::
>>> import axelrod as axl
>>> p1, p2, p3 = axl.Alternator(), axl.Alternator(), axl.TitForTat()
>>> p1 == p2
True
>>> p1 == p3
False
Note that this checks all the attributes of an instance... | PypiClean |
/Md-Notes-api-1.0.0.tar.gz/Md-Notes-api-1.0.0/mdnotes/http/requests_client.py | from cachecontrol import CacheControl
from requests import session
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
from mdnotes.http.http_client import HttpClient
from mdnotes.http.http_method_enum import HttpMethodEnum
from mdnotes.http.http_response import HttpResponse
class Requests... | PypiClean |
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/stats/time_counter.py | import datetime
from ..core.client import get_client
class TimeCounter(object):
time_format = None
interval = None
@classmethod
def generate_key(cls, name, current):
return 'time:{name}:{current}'.format(
name=name,
current=current.strftime(cls.time_format)
)
... | PypiClean |
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/Instruments/LaserSimulator.py | import time
import numpy as np
from LabExT.Instruments.DummyInstrument import DummyInstrument
from LabExT.Instruments.InstrumentAPI import InstrumentException
class LaserSimulator(DummyInstrument):
"""
## LaserSimulator
Software-only simulator of a real laser instrument. Offers the same properties as t... | PypiClean |
/DomiKnowS-0.533.tar.gz/DomiKnowS-0.533/domiknows/sensor/pytorch/learners.py | import abc
from typing import Any
import os.path
import warnings
import torch
from .. import Learner
from .sensors import TorchSensor, FunctionalSensor, ModuleSensor
from .learnerModels import PyTorchFC, LSTMModel, PyTorchFCRelu
class TorchLearner(Learner, FunctionalSensor):
__metaclass__ = abc.ABCMeta
def... | PypiClean |
/BaseBWA-0.4.0.tar.gz/BaseBWA-0.4.0/basebwa/components/apputil/forms.py | import datetime
from compstack.common.lib.forms import Form
class TestForm(Form):
def __init__(self, static):
Form.__init__(self, 'testform', static=static)
el = self.add_button('button', 'Button', defaultval='PushMe')
el = self.add_checkbox('checkbox', 'Checkbox')
el = self.add_f... | PypiClean |
/Chill-Streams-0.4.0.tar.gz/Chill-Streams-0.4.0/README.md | [](https://results.pre-commit.ci/latest/github/zcutlip/chill_streams/main)
# Chill Electronica Streams
## Description
This project is a directory of chill electronica streaming radio stations. If you like [DEF CON radio... | PypiClean |
/NetTraRec-0.1.12-py3-none-any.whl/NetRecorder/gear_for_nr.py | import json
import math
import os
import re
import socket
import time
from pathlib import Path
import redis
import requests
from BaseColor.base_colors import blue, hcyan, green
def tell_the_datetime(time_stamp=None, compact_mode=False):
time_stamp = time_stamp if time_stamp else time.time()
if not compact_mo... | PypiClean |
/OctoBot-Tentacles-Manager-2.9.4.tar.gz/OctoBot-Tentacles-Manager-2.9.4/octobot_tentacles_manager/util/tentacle_explorer.py | import os
import os.path as path
import octobot_commons.logging as logging
import octobot_tentacles_manager.constants as constants
import octobot_tentacles_manager.models as models
def load_tentacle_with_metadata(tentacle_path: str):
loaded_tentacles = _parse_all_tentacles(tentacle_path)
_load_all_metadata(l... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/methods/messages/send_audio.py |
import os
import re
from datetime import datetime
from typing import Union, BinaryIO, List, Optional, Callable
import fipper
from fipper import StopTransmission, enums
from fipper import raw
from fipper import types
from fipper import utils
from fipper.errors import FilePartMissing
from fipper.file_id import FileType... | PypiClean |
/Bedframe-0.13.5.tar.gz/Bedframe-0.13.5/bedframe/_collections.py |
__copyright__ = "Copyright (C) 2014 Ivan D Vasin"
__docformat__ = "restructuredtext"
import re as _re
from spruce.collections import typedodict as _typedodict
from spruce.lang \
import bool as _bool, regex as _regex, regex_class as _regex_class
class WebResourcePathMapping(_typedodict):
"""A mapping keyed... | PypiClean |
/DirectoryCleaner-0.3-py3-none-any.whl/directorycleaner/directory_cleaner.py | import os
import re
import sys
import json
import datetime
from .settings import Settings
from .regex import dir_regex, check_duplicate
from tqdm import tqdm
from .color_print import BColors
from .main import DIRNAMES
class DirectoryCleaner(Settings):
"""
Heart of the program. Pass in argparse object and add a... | PypiClean |
/JobFunnel-3.0.0.tar.gz/JobFunnel-3.0.0/jobfunnel/config/cli.py | import argparse
from typing import Dict, Any, List
import yaml
from jobfunnel.config import (DelayConfig, JobFunnelConfigManager,
ProxyConfig, SearchConfig, SettingsValidator)
from jobfunnel.resources import (LOG_LEVEL_NAMES, DelayAlgorithm, Locale,
Provid... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/_base/xhr.js | define("dojo/_base/xhr",["./kernel","./sniff","require","../io-query","../dom","../dom-form","./Deferred","./json","./lang","./array","../on"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,on){
_2.add("native-xhr",function(){
return typeof XMLHttpRequest!=="undefined";
});
if(1){
_1._xhrObj=_3.getXhr;
}else{
if(_2("native-xhr... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/envs/env_manager/base_env_manager.py | from types import MethodType
from typing import Union, Any, List, Callable, Dict, Optional, Tuple
from functools import partial, wraps
from easydict import EasyDict
from ditk import logging
import copy
import platform
import numbers
import enum
import time
import treetensor.numpy as tnp
from ding.utils import ENV_MANAG... | PypiClean |
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct49.py | pairs="""
93 202
149 80
157 89
216 72
48 177
70 208
223 119
5 189
6 189
109 188
224 71
180 147
69 44
185 155
120 32
16 34
19 190
145 8
137 223
42 69
153 208
41 16
37 178
105 34
86 59
40 158
100 97
38 180
183 60
32 76
101 86
112 197
53 181
156 96
37 204
224 195
135 147
142 148
219 192
76 81
11 162
20 10
11 158
207 137
4... | PypiClean |
/Ngoto-0.0.39-py3-none-any.whl/ngoto/core/decorators.py | class Plugin:
def __init__(self, func, args, kwargs, name, desc,
req_modules, os, folder):
self.name = name
self.args = args
self.kwargs = kwargs
self.desc = desc
self.func = func
self.folder = folder
if req_modules:
self.req_modul... | PypiClean |
/DjangoMySQLDump-0.1.tar.gz/DjangoMySQLDump-0.1/dump/management/commands/dump.py | import sys
import os
import datetime
import subprocess
import tarfile
from django.conf import settings
from django.core.management.base import NoArgsCommand
try:
engine = settings.DATABASES['default']['ENGINE']
except:
engine = settings.DATABASE_ENGINE
if not engine.find('mysql') > -1:
print 'Only for m... | PypiClean |
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/dEvents.py | import logging
import time
import dabo
from dabo.dLocalize import _
class dEvent(object):
""" Base class for Dabo events.
Event objects are instantiated in self.raiseEvent(), and passed to all
callbacks registered with self.bindEvent().
User code can define custom events by simply subclassing Event and then
usi... | PypiClean |
/LibTextClassification-1.3-py3-none-any.whl/data_util/pretrain.py |
from gensim.models import Word2Vec
from os import path
import csv
import time
import logging
import multiprocessing
import os
import re
from nltk.stem import WordNetLemmatizer
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s',
level=logging.INFO)
dataset_dir = path.join(pa... | PypiClean |
/DpmModule-1.1.0-py3-none-any.whl/dpmModule/item/Darkness.py | from . import ItemKernel as it
Face = it.Item(stat_main = 10, stat_sub = 10, att = 10)#160 // 5
Eye = it.Item(stat_main = 15, stat_sub = 15, att = 3)#160 // 3
Belt = it.Item(stat_main = 50, stat_sub = 50, att = 6)#200 // 3
Pendant = it.Item(stat_main = 10, stat_sub = 10, att = 5)#160 // 5
Pocket = it.Item(stat_main = ... | PypiClean |
/BayesPermus-1.0.0.tar.gz/BayesPermus-1.0.0/README.md | # BayesPermus
Bayesian inference of algorithm performance using permutation models.
## Installation
```
pip install BayesPermus
```
## Usage
1. Prepare permutation data:
```python
permus = np.array([[1,2,3], [1,3,2]])
```
2. Obtain the marginal probabilities:
```python
from BayesPermus.models.BradleyTerry impor... | PypiClean |
/Meraki_Tools-2.5-py3-none-any.whl/merakitools/getEvents.py | import asyncio
import datetime
import requests
import random
import json
import lib
from merakitools import meraki_tasks
from merakitools import const, lib, model
import utils
from deepdiff import DeepHash
import pytz, dateutil.parser
import pprint
def setup_app(cfg_file=None):
const.appcfg = model.APPCONFIG(cfg_f... | PypiClean |
/MoonNectar-0.6.0.tar.gz/MoonNectar-0.6.0/mnectar/ui/pyqt5/QPlaylistView.py | import logging
from enum import Enum, unique
from weakref import finalize
from PyQt5 import QtCore
from PyQt5 import QtGui
from PyQt5 import QtWidgets
from PyQt5.QtCore import Qt
from mnectar.config import Setting
from .action import Action
_logger = logging.getLogger(__name__)
cl... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.