id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Hebel-0.02.1.tar.gz/Hebel-0.02.1/hebel/pycuda_ops/cudadrv.py |
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# Redistributions in binary form must re... | PypiClean |
/ANNOgesic-1.1.14.linux-x86_64.tar.gz/usr/local/lib/python3.10/dist-packages/annogesiclib/sublocal.py | import os
import sys
import csv
import shutil
from subprocess import call
from annogesiclib.multiparser import Multiparser
from annogesiclib.helper import Helper
from annogesiclib.format_fixer import FormatFixer
from annogesiclib.extract_psortb import extract_psortb
from annogesiclib.stat_sublocal import stat_sublocal
... | PypiClean |
/MathBench-1.1.0.tar.gz/MathBench-1.1.0/mathbench/lab/library.py | import sys
# Load Python's logging utilities
import logging
import logging.handlers
# Give access to the system's installed webbrowser
import webbrowser
# wx and its html library
import wx
import wx.html as html
import wx.py.dispatcher as dispatcher
import lab_settings
from mathbench.basement.librarian import Libra... | PypiClean |
/CommandAlarm-0.2.8.tar.gz/CommandAlarm-0.2.8/commandalarm/commandalarm.py | """CommandAlarm main module"""
import argparse
import datetime
import errno
import subprocess
import threading
import time
from . import __version__
# pylint: disable=W0603
ALARM_FIRED = False
def alarm_handler():
"""
Sets the global variable ALARM_FIRED to True.
This function is used as a callback for... | PypiClean |
/DIRECT-1.0.1.tar.gz/DIRECT-1.0.1/doc/source/tutorial.rst | .. _tutorial:
Tutorial
========
Solving the six-hump camelback function
---------------------------------------
Filename: :file:`test/C6.py`
The following tutorial shows how to find the global minimum of a
`Six-hump camelback function` using the `DIRECT` algorithm.
.. math::
f(x_1, x_2) = (4 - 2.1 x_1^2 +... | PypiClean |
/Cloud-Cells-0.0.3.tar.gz/Cloud-Cells-0.0.3/cloud-cells/backend/container/creator.py | import sys
import os
import random
import string
import docker
import traceback
import logging
logger = logging.getLogger('ContainerCreator')
logger.setLevel(logging.DEBUG)
# Small hack so we can use a dockerfile string instead of having to write it
# to disk first. See:
# https://github.com/docker/docker-py/is... | PypiClean |
/NREL_sup3r-0.1.0-py3-none-any.whl/sup3r/models/abstract.py | from abc import ABC, abstractmethod
import os
import time
import json
from concurrent.futures import ThreadPoolExecutor
from phygnn import CustomNetwork
from phygnn.layers.custom_layers import Sup3rAdder, Sup3rConcat
from rex.utilities.utilities import safe_json_load
import tensorflow as tf
from tensorflow.keras import... | PypiClean |
/INDIpy-0.4.0.tar.gz/INDIpy-0.4.0/indi/client/vectors.py | from typing import Tuple, Type, Union
from indi import message
from indi.client import elements
from indi.client.events import StateUpdate
from indi.message import checks
class Vector:
def_message_class: Type[message.DefVector]
set_message_class: Union[
Type[message.SetBLOBVector],
Type[messa... | PypiClean |
/src/lexer.py |
# Copyright (c) 2021 xp
# 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, subl... | PypiClean |
/Godot-0.1.1.zip/Godot-0.1.1/godot/edge.py | #------------------------------------------------------------------------------
# Imports:
#------------------------------------------------------------------------------
from enthought.traits.api import \
HasTraits, Color, Str, Enum, Float, Font, Any, Bool, Int, File, Trait, \
List, Tuple, ListStr, Instance,... | PypiClean |
/LARRY_dataset-0.0.2rc0-py3-none-any.whl/larry/_utils/_task_two_eval_callback.py | import matplotlib.pyplot as plt
import scdiffeq as sdq
import pandas as pd
import numpy as np
import seaborn as sns
import sklearn
import autodevice
import lightning
import torch
import os
from ._abc_parse import ABCParse
from ._count_fate_values import count_fate_values
from ._multi_fated_lineage_prediction_result... | PypiClean |
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/highlighting.py | from functools import partial
from importlib import import_module
from typing import Any, Dict
from pygments import highlight
from pygments.filters import ErrorToken
from pygments.formatter import Formatter
from pygments.formatters import HtmlFormatter, LatexFormatter
from pygments.lexer import Lexer
from pygments.lex... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/sr.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/CGATReport-0.9.1.tar.gz/CGATReport-0.9.1/doc/GalleryGallery.rst | .. _gallery:
=======
gallery
=======
:class:`CGATReportPlugins.Renderer.Gallery` renders a collection of image
files as returned by :class:`CGATReport.Tracker.TrackerImages`.
.. report:: Tracker.TrackerImages
:render: gallery-plot
:glob: images/*.png
:layout: columns-2
A collection of images
Options
--... | PypiClean |
/Ecust-0.0.3-py3-none-any.whl/Ecust-0.0.3.dist-info/DESCRIPTION.rst |
Ecust ๏ผUnofficial Api๏ผ
=====
ๅ็็ๅฐๆๅ็่ฟๆฅๅฆ~ๅๅ็ไธๅฑAPPๅฟ
ๅค๏ผโโๅ็๏ผๆฌ็ง็๏ผๆจกๆ็ป้ๆบ็ ~~๏ผPHP๏ผ~~ (Python)
~~ๆฌไบบ็ฝ็ซ๏ผcmd.ecustcic.com~~
้กบไพฟๅฎๅฉ๏ผ~~ecustcic.comๅจๆๅจๅญฆๆ ก่ฟๅ ๅนดๅฏไปฅๆไพไบ็บงๅๅ็ปๅคงๅฎถๆนไพฟๅ็ๅญฆๅญๅฎ้ชๅญฆไน ~~ ๏ผๅทฒ่ฝฌไบคCIC๏ผ
~~ใๆไธป่ฆ่ฟๆฏไธ็จ่ฎฐipไธ็จไนฐ่ๅค็ไธ็จๅคๆก็ๅฟ็ๅใใใ~~
ๅฟไบ่ฏดไบๆฌไบบ~~CICไผ้ฟ~~(็ฐๅจๅทฒ็ป้ไผ2333)
ๆไปถ่ฏดๆ๏ผ
-----
___old_version(PHP):___
___Ecust_login.php___
___ๅทฒๅบๅผ___
__new_v... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/__main__.py | # Note: This avoids imports at all costs, such that initial startup doesn't do more
# than necessary, until re-execution has been decided.
import os
import sys
def main():
# PyLint for Python3 thinks we import from ourselves if we really
# import from package, pylint: disable=I0021,no-name-in-module
# A... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/form/_FormWidgetMixin.js.uncompressed.js | define("dijit/form/_FormWidgetMixin", [
"dojo/_base/array", // array.forEach
"dojo/_base/declare", // declare
"dojo/dom-attr", // domAttr.set
"dojo/dom-style", // domStyle.get
"dojo/_base/lang", // lang.hitch lang.isArray
"dojo/mouse", // mouse.isLeft
"dojo/_base/sniff", // has("webkit")
"dojo/_base/window", //... | PypiClean |
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/montreal_forced_aligner/corpus/base.py | from __future__ import annotations
import logging
import os
import threading
import time
import typing
from abc import ABCMeta, abstractmethod
from pathlib import Path
import sqlalchemy.engine
from sqlalchemy.orm import Session, joinedload, selectinload, subqueryload
from tqdm.rich import tqdm
from montreal_forced_a... | PypiClean |
/Mopidy-SoundCloud-3.0.2.tar.gz/Mopidy-SoundCloud-3.0.2/README.rst | *****************
Mopidy-SoundCloud
*****************
.. image:: https://img.shields.io/pypi/v/Mopidy-SoundCloud
:target: https://pypi.org/project/Mopidy-SoundCloud/
:alt: Latest PyPI version
.. image:: https://img.shields.io/github/workflow/status/mopidy/mopidy-soundcloud/CI
:target: https://github.com/m... | PypiClean |
/MySEAS-0.0.5.1.tar.gz/MySEAS-0.0.5.1/README.md | # SEAS
## Introduction
NOTE: This is under development and does not have many features.
This is a python Framework called MySEAS (My Sufficiently exploited and Affordable Script). Its build on top of pygame, thefore the name. In the future you might be able to call it a game engine but right now Its a tool i guess.
It... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_nl-sr.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 |
/AeroEvap-0.0.2.post2.tar.gz/AeroEvap-0.0.2.post2/notebooks/.ipynb_checkpoints/tutorial-checkpoint.ipynb | # Tutorial
Basic usage with an example dataset. Note, this tutorial uses the matplotlib graphing module which is *not* a dependency of ``AeroEvap``, be sure to install it to your environment before running this tutorial if you want the plots to display correctly.
```
import pandas as pd
import numpy as np
from aeroe... | PypiClean |
/EDA-assistant-0.0.4.tar.gz/EDA-assistant-0.0.4/eda_assistant/_format_tables.py | df_summary_labels = ['No. of Columns', 'No. of Rows', 'Total Value Count',
'Count of NaNs', 'Percent of NaNs',
'Count of Duplicate Rows', 'Percent of Duplicate Rows',
'Count of Numerical Variables',
'Count of Categorical Variables']
va... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/reading_import_profile_request.py |
from msrest.serialization import Model
class ReadingImportProfileRequest(Model):
"""ReadingImportProfileRequest.
All required parameters must be populated in order to send to Azure.
:param profile_code: Required. The profile code <span
class='property-internal'>Required</span> <span
class='pr... | PypiClean |
/CodeViking.contracts-0.17.0.tar.gz/CodeViking.contracts-0.17.0/codeviking/contracts/argcheckers.py | import inspect
from collections import abc
from .error import CheckError
from codeviking.contracts.error import PreconditionError, \
PreconditionViolation, InvariantError, SignatureError, SignatureViolation, \
ReturnSignatureViolation, InvariantViolation, PostconditionError, \
PostconditionViolation
from .... | PypiClean |
/AMCowmvg-1.1.0.tar.gz/AMCowmvg-1.1.0/README.md | # Antimony Model Creator - Olivia Walsh, Matthew Van Ginneken
This package allows the user to visualize a reaction via a steady state graph. The user can create and submit their own reactions on the Flask Webpage, or they can submit an antimony txt file or a SBML file also through the webpage. The Webpage will run ... | PypiClean |
/KratosShapeOptimizationApplication-9.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/ShapeOptimizationApplication/optimizer_factory.py |
# Kratos Core and Apps
import KratosMultiphysics as KM
import KratosMultiphysics.ShapeOptimizationApplication as KSO
# additional imports
from KratosMultiphysics.ShapeOptimizationApplication.utilities.custom_timer import Timer
from KratosMultiphysics.ShapeOptimizationApplication.analyzers.analyzer_empty import Empty... | PypiClean |
/Gooey-1.2.0a0.tar.gz/Gooey-1.2.0a0/gooey/rewx/deleteme.py | import pandas as pd
xs = '''INFLUENZA VIRUS VACCINE, NO BRAND NAME (FLUX(SEASONAL)) 1991 16 0.00%
INFLUENZA VIRUS VACCINE, NO BRAND NAME (FLUX(SEASONAL)) 1992 10 0.00%
INFLUENZA VIRUS VACCINE, NO BRAND NAME (FLUX(SEASONAL)) 1993 12 0.00%
INFLUENZA VIRUS VACCINE, NO BRAND NAME (FLUX(SEASONAL)) 1994 1 0.00%
INFLUENZA ... | PypiClean |
/ANNOgesic-1.1.14.linux-x86_64.tar.gz/usr/local/lib/python3.10/dist-packages/annogesiclib/sORF_intergenic.py | from annogesiclib.gff3 import Gff3Parser
from annogesiclib.helper import Helper
def get_type(inter, gffs):
'''get the types of sORF'''
utr5 = False
utr3 = False
anti = False
for gff in gffs:
if (gff.seq_id == inter["strain"]) and \
(gff.strand == inter["strand"]):
if... | PypiClean |
/Incantation-0.4.1.1-py3-none-any.whl/incantation/CSS/Media.py | from ..abst import Tag, Attribute, traits_class, ITraitsAttribute
from ..utils import doc_printer, default_initializer
class Img(Tag):
@default_initializer
def __init__(self, *components, src: str, alt: str = None):
if alt:
Tag.__init__(self, 'img',
Attribute('src'... | PypiClean |
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/component/static/portfolio/vendor/mdeditor/bower_components/codemirror/addon/runmode/runmode-standalone.js |
window.CodeMirror = {};
function splitLines(string){ return string.split(/\r?\n|\r/); };
function StringStream(string) {
this.pos = this.start = 0;
this.string = string;
}
StringStream.prototype = {
eol: function() {return this.pos >= this.string.length;},
sol: function() {return this.pos == 0;},
peek: fun... | PypiClean |
/DEME-0.2.8.tar.gz/DEME-0.2.8/thirdparty/pybind11/docs/classes.rst | .. _classes:
Object-oriented code
####################
Creating bindings for a custom type
===================================
Let's now look at a more complex example where we'll create bindings for a
custom C++ data structure named ``Pet``. Its definition is given below:
.. code-block:: cpp
struct Pet {
... | PypiClean |
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/model/ik.py | from ..robotsim import *
from ..math import so3,se3
from .subrobot import SubRobotModel
from typing import Union,Optional,List,Sequence,Callable
from .typing import Vector,Vector3,Rotation,RigidTransform
def objective(
body: Union[RobotModelLink,RigidObjectModel],
ref: Union[None,RobotModelLink,RigidOb... | PypiClean |
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/meta.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use stric... | PypiClean |
/MetaPathways-3.1.6.tar.gz/MetaPathways-3.1.6/metapathways/diagnostics/diagnoze.py |
__author__ = "Kishori M Konwar"
__copyright__ = "Copyright 2013, MetaPathways"
__version__ = "3.5.0"
__maintainer__ = "Kishori M Konwar"
__status__ = "Release"
"""Contains general utility code for the metapaths project"""
try:
import sys
from shutil import rmtree
from optparse import make_option
from... | PypiClean |
/Aoipy-0.15.0-py3-none-any.whl/CharmCord/tools.py | from CharmCord.Functions import *
from CharmCord.all_functions import all_Funcs, date_funcs
from datetime import datetime as D_T
from pytz import timezone
timezones = (
timezone('EST'),
timezone('UTC'),
timezone('US/Pacific')
)
class FunctionHandler:
def __init__(self):
self.funcs = {}
... | PypiClean |
/Crack-O-Matic-0.2.1.tar.gz/Crack-O-Matic-0.2.1/crackomatic/forms.py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, HiddenField, \
DateTimeField, SelectField, TextAreaField
from wtforms.validators import DataRequired, Optional
from .constants import AuditFrequency
class LoginForm(FlaskForm):
user = StringField('user', validat... | PypiClean |
/DeepSpectrumLite-1.0.2.tar.gz/DeepSpectrumLite-1.0.2/src/deepspectrumlite/lib/data/plot/colormap.py | import tensorflow as tf
# Based on the typescript implemented
# @see https://github.com/alesgenova/colormap
def linear_scale(domain, out_range, value): # pragma: no cover
d0, d1 = domain
r0, r1 = out_range
return r0 + (r1 - r0) * ((value - d0) / (d1 - d0))
def linear_mixer(value, lower_node_value, up... | PypiClean |
/IcmpTool-0.1.8.tar.gz/IcmpTool-0.1.8/README.txt | ===========
Icmp Tool
===========
Icmp Tool provides a straight-forward way to characterize the responsiveness to TTL-limited probes of routers close to you.
The tool is based on code we used for a large scale campaign on PlanetLab. For details on how the router classification works,
refer to our paper "Characterizing... | PypiClean |
/AfricastalkingGateway-2.0.tar.gz/AfricastalkingGateway-2.0/africastalking/AfricasTalkingGateway.py | import json
import requests # urllib please - we're done
class AfricasTalkingGatewayException(Exception):
pass
class AfricasTalkingGateway:
def __init__(self, username, apiKey, environment = 'production'):
self.username = username
self.apiKey = apiKey
self.environment = envir... | PypiClean |
/HEBO_mindspore-0.2.1-py3-none-any.whl/hebo/sklearn_tuner.py |
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the MIT License ... | PypiClean |
/CheckMates-0.2.0-py3-none-any.whl/checkmates/data_checks/checks/outliers_data_check.py | import numpy as np
from scipy.stats import gamma
from checkmates.data_checks import (
DataCheck,
DataCheckActionCode,
DataCheckActionOption,
DataCheckMessageCode,
DataCheckWarning,
)
from checkmates.utils import infer_feature_types
class OutliersDataCheck(DataCheck):
"""Checks if there are an... | PypiClean |
/DBSP_DRP-1.0.0-py3-none-any.whl/dbsp_drp/p200_redux.py | import argparse
import os
import time
import multiprocessing
from typing import Optional, List
import pickle
import numpy as np
from matplotlib import pyplot as plt
from astropy.io import fits
from astropy.table import Table, Column, Row
from pypeit.pypeitsetup import PypeItSetup
import pypeit.display
from pypeit.spe... | PypiClean |
/Kato-FlaskAppBuilder-1.1.14.tar.gz/Kato-FlaskAppBuilder-1.1.14/flask_appbuilder/models/sqla/filters.py | import logging
from flask_babel import lazy_gettext
from ..filters import BaseFilter, FilterRelation, BaseFilterConverter
log = logging.getLogger(__name__)
__all__ = ['SQLAFilterConverter', 'FilterEqual', 'FilterNotStartsWith', 'FilterStartsWith', 'FilterContains',
'FilterNotEqual', 'FilterEndsWith', 'Fil... | PypiClean |
/KratosIgaApplication-9.4-cp38-cp38-win_amd64.whl/KratosMultiphysics/IgaApplication/assign_vector_variable_and_constraints_to_conditions_process.py | import KratosMultiphysics
def Factory(settings, model):
if not isinstance(settings, KratosMultiphysics.Parameters):
raise Exception("expected input shall be a Parameters object, encapsulating a json string")
return AssignVectorVariableAndConstraintsToConditionProcess(model, settings["Parameters"])
## ... | PypiClean |
/DMT_core-2.0.0-py3-none-any.whl/DMT/core/df_to_sweep.py | # DMT_core
# Copyright (C) from 2022 SemiMod
# Copyright (C) until 2021 Markus Mรผller, Mario Krattenmacher and Pascal Kuthe
# <https://gitlab.com/dmt-development/dmt-core>
#
# This file is part of DMT_core.
#
# DMT_core is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Pu... | PypiClean |
/MeshPy-2022.1.3.tar.gz/MeshPy-2022.1.3/meshpy/geometry.py | __doc__ = """
Geometry builder
----------------
.. autoclass:: GeometryBuilder
Geometries
----------
These functions are designed so that their output can be splat-passed to
:meth:`GeometryBuilder.add_geometry`::
builder = GeometryBuilder()
builder.add_geometry(*make_ball(10))
.. autoclass:: Marker
:m... | PypiClean |
/Attitude-0.5.0.tar.gz/Attitude-0.5.0/README.md | **Attitude** is a Python module for fitting the orientation of planes! Its core mission is to compute
planar fits and transform them (*along with meaningful error distributions*) into
a form that can be used for geology. It is designed to support the collection of structural
measurements from remote sensing data.
The ... | PypiClean |
/KratosConvectionDiffusionApplication-9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/ConvectionDiffusionApplication/convection_diffusion_transient_solver.py | import KratosMultiphysics
# Import applications
import KratosMultiphysics.ConvectionDiffusionApplication as ConvectionDiffusionApplication
if KratosMultiphysics.ParallelEnvironment.GetDefaultDataCommunicator().IsDistributed():
import KratosMultiphysics.mpi as KratosMPI
import KratosMultiphysics.MetisApplicatio... | PypiClean |
/HW1_CURR-0.2.0-py3-none-any.whl/HW1_CURR/HW1_CURR.py | from sqlalchemy import create_engine
import datetime
import polygon
from sqlalchemy import create_engine
from sqlalchemy import text
import pandas as pd
from math import sqrt
from math import isnan
import matplotlib.pyplot as plt
from numpy import mean
from numpy import std
from math import floor
# Function slightly m... | PypiClean |
/NLP_LIB_cpu-0.0.12.tar.gz/NLP_LIB_cpu-0.0.12/NLP_LIB/nlp_core/predefined.py | import json
import os
class ConfigMapper:
def get_config_path_for(obj, config_str):
tokens = config_str.split('+')
if len(tokens) == 1:
# Transformer Decoder LM
if config_str == 'tf-dec' or config_str == 'tf6-dec':
return 'train_best2010_lm_tfbase_dec_s2s.json'
elif config_str == '... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/sessions/middleware.py | import time
from importlib import import_module
from django.conf import settings
from django.contrib.sessions.backends.base import UpdateError
from django.contrib.sessions.exceptions import SessionInterrupted
from django.utils.cache import patch_vary_headers
from django.utils.deprecation import MiddlewareMixin
from dj... | PypiClean |
/HTMLTestRunner-rv-1.1.2.tar.gz/HTMLTestRunner-rv-1.1.2/HTMLTestRunner/runner.py | __doc__ = \
"""
HTMLTestRunner-rv module to generate HTML report for your testcase
==================================================================
The HTMLTestRunner provides easy way to generate HTML Test Reports.
Easy to find errors and reduce the debug time.
You no need to see console... | PypiClean |
/Flask-Potion-0.16.0.tar.gz/Flask-Potion-0.16.0/flask_potion/contrib/alchemy/filters.py | from sqlalchemy import and_
from flask_potion import fields
import flask_potion.filters as filters
class SQLAlchemyBaseFilter(filters.BaseFilter):
def __init__(self, name, field=None, attribute=None, column=None):
super(SQLAlchemyBaseFilter, self).__init__(name, field=field, attribute=attribute)
s... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/util.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import gzip
import hashlib
import math
import os
import requests
import shutil
import sys
import tarfile
import time
import zipfile
from six.moves import urllib
def _get_google_confirm_id_token(url, session)... | PypiClean |
/EchoTorch-0.1.1.tar.gz/EchoTorch-0.1.1/echotorch/nn/ESNCell.py | import torch
import torch.sparse
from torch.autograd import Variable
import torch.nn as nn
import echotorch.utils
import numpy as np
# Echo State Network layer
class ESNCell(nn.Module):
"""
Echo State Network layer
"""
# Constructor
def __init__(self, input_dim, output_dim, spectral_radius=0.9, b... | PypiClean |
/EmberFactory-1.8.2-py3-none-any.whl/emberweb/doc/parameters.md | {INSERTION-SOURCE:../embermaker/defaults/paramdefs.md}
This page documents parameters which may be used in input files.
The starting point to learn about the input format for the 'Ember Factory' is the [Tutorial](tutorial).
This page provides more detailed information, including a comprehensive list of available para... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_wae.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 |
/Ciw-3.0.0.tar.gz/Ciw-3.0.0/docs/Guides/process_based.rst | .. _process-based:
===================================
How to Define Process-Based Routing
===================================
Ciw has the capability to run simulations with process-based routing. This means a customer's entire route is determined at the start and not determined probablistically as they progress thro... | PypiClean |
/DinoMint-0.7-py3-none-any.whl/Dino/_main.py | import base64, sys
argf = str(sys.argv[1])
argc = str(0)
for char in [*argf]:
argc = argc + str(base64.b64encode(argf.encode()))
argf = base64.b64encode(argc.encode())
dev = 0
index = 0
ray = 0
for char in [*argf]:
index = index + 1
char = str(char)[:1]
dev = int(f"{dev}{ord(char) - 48}") * 65536
table = None
w... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/dist/js/pages/dashboard3.js |
$(function () {
'use strict'
var ticksStyle = {
fontColor: '#495057',
fontStyle: 'bold'
}
var mode = 'index'
var intersect = true
var $salesChart = $('#sales-chart')
// eslint-disable-next-line no-unused-vars
var salesChart = new Chart($salesChart, {
type: 'bar',
data: {
labels... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/examples/updating/update0_1to1_0.py |
r"""How to update scripts from version 0.1 to 1.0.
It seems unlikely that many users are still running :term:`FiPy` 0.1, but for those
that are, the syntax of :term:`FiPy` scripts changed considerably between version 0.1
and version 1.0. We incremented the full version-number to stress
that previous scripts are inc... | PypiClean |
/Eve-2.1.0.tar.gz/Eve-2.1.0/eve/io/mongo/mongo.py | import ast
import decimal
import itertools
from collections import OrderedDict
from copy import copy
from datetime import datetime
import pymongo
import simplejson as json
from bson import ObjectId, decimal128
from bson.dbref import DBRef
from flask import abort, g, request
from pymongo import WriteConcern
from werkze... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/99776.4d2853e080fc893db9af.min.js | "use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[99776,84193],{22383:function(t,e,n){n.d(e,{y:function(){return c},z:function(){return d}});var a=n(86272),i=n(56938),o=n(57467),r=n(45814),s=n(73845);let l=null;async function c(t){let{url:e,editor:n,instance:c... | PypiClean |
/Feedmark-0.14-py3-none-any.whl/feedmark/checkers.py | from __future__ import absolute_import
from feedmark.formats.markdown import markdown_to_html5
from feedmark.utils import items
class Schema(object):
def __init__(self, document):
self.document = document
self.property_rules = {}
self.property_priority_order = []
for section in se... | PypiClean |
/MagikEDA-0.1.7.tar.gz/MagikEDA-0.1.7/magikeda/univar.py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import math
from matplotlib.gridspec import GridSpec
def _is_numeric(series):
""" Determine if the pandas.core.series.Series is numeric """
return series.dtype == 'int' or series.dtype == 'float'
def _is_categorical(series):
""" Dete... | PypiClean |
/Django-Bootstrap3-Validator-0.3.3.zip/Django-Bootstrap3-Validator-0.3.3/bootstrap_validator/static/validator/js/language/be_FR.js | (function($) {
/**
* Belgium (French) language package
* Translated by @neilime
*/
$.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, {
base64: {
'default': 'Veuillez fournir une donnรฉe correctement encodรฉe en Base64'
},
between: {
... | PypiClean |
/HyperKitty-1.3.7.tar.gz/HyperKitty-1.3.7/hyperkitty/static/hyperkitty/libs/jquery.expander.js | (function($) {
$.expander = {
version: '1.4',
defaults: {
// the number of characters at which the contents will be sliced into two parts.
slicePoint: 100,
// whether to keep the last word of the summary whole (true) or let it slice in the middle of a word (false)
preserveWords: true,... | PypiClean |
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/mdeditor.min.js | window.CodeMirror=function(){"use strict";function e(r,n){if(!(this instanceof e))return new e(r,n);this.options=n=n||{};for(var i in no)!n.hasOwnProperty(i)&&no.hasOwnProperty(i)&&(n[i]=no[i]);f(n);var o="string"==typeof n.value?0:n.value.first,l=this.display=t(r,o);l.wrapper.CodeMirror=this,u(this),n.autofocus&&!Wi&&... | PypiClean |
/KS_BOT_Client_Python-2.5.1-py3-none-any.whl/ks_bot_client/bot.py | import socketio
import requests
import time
import threading
try:
from ..ks_bot_client.ks_bot_exceptions import LoggingInError
except:
from ks_bot_client.ks_bot_exceptions import LoggingInError
class Bot:
def __init__(self, name:str, password:str):
"""
@param {string} name: Name can either email addr... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/conf/locale/nl/formats.py | DATE_FORMAT = 'j F Y' # '20 januari 2009'
TIME_FORMAT = 'H:i' # '15:23'
DATETIME_FORMAT = 'j F Y H:i' # '20 januari 2009 15:23'
YEAR_MONTH_FORMAT = 'F Y' # 'januari 2009'
MONTH_DAY_FORMAT = 'j F' # '20 januari'
SHORT_DATE_FORMAT = 'j-n-Y' ... | PypiClean |
/HalRing-2.0.4-py3-none-any.whl/halring/ssh2_con/halring_ssh2.py | import os
import sys
import re
import datetime
import paramiko
import socket
from loguru import logger
nga_root = os.path.abspath(__file__).split("halring")[0]
if nga_root not in nga_root:
sys.path.append(nga_root)
class Ssh2Util(object):
"""
Ssh2
Author: lzhou
"""
def __init__(self, host, u... | PypiClean |
/HDDM-0.9.9.tar.gz/HDDM-0.9.9/docs/source/tutorial_basic_hddm.rst | .. index:: Tutorials
.. _chap_basic_tutorial:
Basic HDDM Tutorial
-------------------
In the following we will show an example session of using HDDM to
analyze a real-world dataset. The main purpose is to provide an overview
of some of the funcionality and interface. By no means, however, is it a
complete overview of... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/configs/cascade_rpn/crpn_r50_caffe_fpn_1x_coco.py | _base_ = '../rpn/rpn_r50_caffe_fpn_1x_coco.py'
model = dict(
rpn_head=dict(
_delete_=True,
type='CascadeRPNHead',
num_stages=2,
stages=[
dict(
type='StageCascadeRPNHead',
in_channels=256,
feat_channels=256,
a... | PypiClean |
/AeroSandbox-4.1.1.tar.gz/AeroSandbox-4.1.1/aerosandbox/structures/legacy/simple_beam_opt_daedalus_calibration.py | import aerosandbox.numpy as np
import casadi as cas
if __name__ == '__main__':
opti = cas.Opti() # Initialize a SAND environment
# Define Assumptions
L = 34.1376 / 2
n = 200
x = cas.linspace(0, L, n)
dx = cas.diff(x)
E = 228e9 # Pa, modulus of CF
G = E / 2 / (1 + 0.5) # TODO fix th... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/utils/popup/index.js | 'use strict';
exports.__esModule = true;
exports.PopupManager = undefined;
var _vue = require('vue');
var _vue2 = _interopRequireDefault(_vue);
var _merge = require('element-ui/lib/utils/merge');
var _merge2 = _interopRequireDefault(_merge);
var _popupManager = require('element-ui/lib/utils/popup/popup-manager');... | PypiClean |
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/color/az_AZ/__init__.py | from collections import OrderedDict
from .. import Provider as ColorProvider
class Provider(ColorProvider):
"""Implement color provider for ``az_AZ`` locale."""
all_colors = OrderedDict(
(
("Akuamarin", "#7FFFD4"),
("Azure", "#F0FFFF"),
("Bej", "#F5F5DC"),
... | PypiClean |
/IERNA-1.0.0-py3-none-any.whl/era/Database/Repository/databaseRepository.py | from abc import abstractclassmethod
from era.Database.Model.emailTemplateModel import EmailTemplateModel
from era.Utility.ConfigUtility import GetConfigSingletion
from era.Database.Repository.sqliteRepository import SqliteRepository
from era.Utility.StringUtilityCTK import GetStringSingletionCTK
class _DatabaseReposi... | PypiClean |
/FLAML-2.0.2-py3-none-any.whl/flaml/default/estimator.py | from functools import wraps
from flaml.automl.task.task import CLASSIFICATION
from .suggest import preprocess_and_suggest_hyperparams
DEFAULT_LOCATION = "default_location"
def flamlize_estimator(super_class, name: str, task: str, alternatives=None):
"""Enhance an estimator class with flaml's data-dependent defau... | PypiClean |
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/control/blocks/robotcontroller.py | from .core import Block
class RobotControllerBlock(Block):
"""A block implementation for a robot controller. This doesn't
do anything but set up the block. The subclass still has to implement
advance, signal, __getstate__/__savestate__, etc.
Recommend using the :class:`RobotControllerIO` class ... | PypiClean |
/Groove-dl-0.1.tar.gz/Groove-dl-0.1/groove/connector.py | import random
import string
import uuid
import hashlib
import json
import sys
import http.client
class Connector:
token = None
client = None
js_queue = None
url = "grooveshark.com"
request_url = "/more.php"
encoding = "utf-8"
headers = {
"country": {
"CC1": 720575940379... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/umd/locale/fi.js | (function (global, factory) {
if (typeof define === "function" && define.amd) {
define('element/locale/fi', ['module', 'exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
factory(... | PypiClean |
/crosscat-0.1.55-cp27-none-macosx_10_6_intel.whl/crosscat-0.1.55.dist-info/DESCRIPTION.rst | Crosscat
========
CrossCat is a domain-general, Bayesian method for analyzing high-dimensional data tables. CrossCat estimates the full joint distribution over the variables in the table from the data, via approximate inference in a hierarchical, nonparametric Bayesian model, and provides efficient samplers for every ... | PypiClean |
/OPi.GPIOtest-0.5.0.tar.gz/OPi.GPIOtest-0.5.0/OPi/GPIO.py | import warnings
from OPi.constants import IN, OUT
from OPi.constants import LOW, HIGH # noqa: F401
from OPi.constants import NONE, RISING, FALLING, BOTH # noqa: F401
from OPi.constants import BCM, BOARD, SUNXI, CUSTOM
from OPi.constants import PUD_UP, PUD_DOWN, PUD_OFF # noqa: F401
from OPi.p... | PypiClean |
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/dragonflow/db/pub_sub_api.py |
import abc
import socket
import threading
import time
import uuid
import msgpack
from oslo_log import log as logging
from oslo_serialization import jsonutils
from oslo_service import loopingcall
import six
from dragonflow.common import exceptions
from dragonflow.common import utils as df_utils
from dragonflow.db imp... | PypiClean |
/Gdirsync-0.1.0.tar.gz/Gdirsync-0.1.0/gdirsync/gdirsync.py | import PySimpleGUI as sg
import multiprocessing
import dirsync
import sys
class ExcProcess(multiprocessing.Process):
"""Class to extend the python processing module."""
def exc_run(self):
"""Overwrite this method in implementation."""
pass
def run(self):
self.exc = None
t... | PypiClean |
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/bigjob/__init__.py | import os
import sys
import logging
import traceback
version = "latest"
#from pkg_resources import Requirement, resource_filename
#READ config
try:
import ConfigParser
_CONFIG_FILE="bigjob.conf"
_conf_file = os.path.dirname(os.path.abspath( __file__ )) + "/../" + _CONFIG_FILE
if not os.path.exists(_c... | PypiClean |
/Nikola-8.2.4-py3-none-any.whl/nikola/plugins/task/tags.py |
# Copyright ยฉ 2012-2023 Roberto Alsina and others.
# 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, mer... | PypiClean |
/KaTrain-1.14.0-py3-none-any.whl/katrain/core/base_katrain.py | import os
import shutil
import sys
from kivy import Config
from kivy.storage.jsonstore import JsonStore
from katrain.core.ai import ai_rank_estimation
from katrain.core.constants import (
PLAYER_HUMAN,
PLAYER_AI,
PLAYING_NORMAL,
PLAYING_TEACHING,
OUTPUT_INFO,
OUTPUT_ERROR,
OUTPUT_DEBUG,
... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/crm/model/generate_remote_key_request.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 |
/FairDynamicRec-0.0.123-py3-none-any.whl/fair_dynamic_rec/core/rankers/ea_linear_submodular_bandit_itemweigting.py | import numpy as np
from .abstract_ranker import AbstractRanker
import math
class EALSBItemWeight(AbstractRanker):
def __init__(self, config, dataObj, parameters=None):
super(EALSBItemWeight, self).__init__(config, dataObj)
self.n_samples = np.zeros(dataObj.n_users)
self.n_clicks = np.zeros(... | PypiClean |
/GRADitude-0.1.3-py3-none-any.whl/graditudelib/clustering_proteins.py | import pandas as pd
from sklearn.cluster import KMeans
from sklearn.cluster import AgglomerativeClustering
from sklearn.cluster import DBSCAN
def clustering(feature_count_table, feature_count_start_column, feature_count_end_column,
number_of_clusters, clustering_methods, epsilon, min_samples, output_fi... | PypiClean |
/BIT_framework-0.0.2-py3-none-any.whl/BIT_DL/pytorch/modules/classifiers/xlnet_classifier.py | import sys
from typing import Any, Dict, Optional, Tuple, Union
import torch
from torch import nn
from torch.nn import functional as F
from BIT_DL.pytorch.core.layers import get_initializer
from BIT_DL.pytorch.hyperparams import HParams
from BIT_DL.pytorch.modules.classifiers.classifier_base import ClassifierBase
fro... | PypiClean |
/Naftawayh-0.4.tar.gz/Naftawayh-0.4/naftawayh/verb_stamp.py | ๏ปฟVERB_STAMP={
u'':[u'ุชูููู', u'ุชูุงููู', u'ุฃูููู', u'ุชูููุฃู', u'ููุงุกู', u'ููููููู', u'ุชููููููู', u'ุชูููุงุกูู', u'ุชูุชุฃูููู', u'ุชูุฃูููููู', u'ุฃูููุชููู', u'ูููููู', u'ููุฃูู', u'ุฃูุชููู', u'ุฃูููุชููู', u'ุชูุชูุงุกููู', u'ูููููู', u'ููููู', u'ุชูููุงุกูู', u'ููุงุชูู', u'ุฃูููุฃูู', u'ููุชูุง', u'ุฃูููู', u'ุชูููุงููู', u'ุฃูุชููู', u'ุชูุฃูุชููู'... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/documentation/NIX-README.rst | Nix Installation
================
:term:`FiPy` now has a `Nix`_ expression for installing :term:`FiPy`
using `Nix`_. `Nix`_ is a powerful package manager for Linux and other
Unix systems that makes package management reliable and
reproducible. The recipe works on both Linux and Mac OS X.
Getting Started with Nix
----... | PypiClean |
/Metaplex-1.1.0.tar.gz/Metaplex-1.1.0/metaplex/index_jump.py | import pathlib
import math
import sys
import shutil
import tempfile
import os
import pandas as pd
from qiime2 import Artifact
from qiime2.plugins.demux.visualizers import summarize
def calculate(demultiplexed_seqs, sample_map, calibrator_tag_pairs):
'''
Calculate Index Jump Rate based off calibrator Tags
... | PypiClean |
/GoogleAppEngineCloudStorageClientPy3-3.0.0a1.tar.gz/GoogleAppEngineCloudStorageClientPy3-3.0.0a1/src/cloudstorage/port/cloudstorage_stub.py | import calendar
import datetime
import hashlib
import http.client
import io
try:
from cloudstorage import common
from google.appengine.api import datastore
from google.appengine.api import namespace_manager
from google.appengine.api.blobstore import blobstore_stub
from google.appengine.ext import db
except... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/NodeList-traverse.js | if(!dojo._hasResource["dojo.NodeList-traverse"]){
dojo._hasResource["dojo.NodeList-traverse"]=true;
dojo.provide("dojo.NodeList-traverse");
dojo.extend(dojo.NodeList,{_buildArrayFromCallback:function(_1){
var _2=[];
for(var i=0;i<this.length;i++){
var _3=_1.call(this[i],this[i],_2);
if(_3){
_2=_2.concat(_3);
}
}
return... | PypiClean |
/Flask-Stupe-4.4.0.tar.gz/Flask-Stupe-4.4.0/flask_stupe/app.py | import os
from pkgutil import iter_modules
from flask import Blueprint, Flask
from flask_stupe.config import Config
from flask_stupe.converters import converters
from flask_stupe.logging import log
from flask_stupe.request import Request
class Stupeflask(Flask):
config_class = Config
request_class = Request... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/localflavor/cl/forms.py | from __future__ import absolute_import, unicode_literals
from django.core.validators import EMPTY_VALUES
from django.forms import ValidationError
from django.forms.fields import RegexField, Select
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import smart_text
from .cl_regions imp... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.