id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/plugins/filebrowser/plugin.js | /*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "filebrowser" plugin, it adds support for file uploads and
* browsing.
*
* When file is selected inside of the file browser or uplo... | PypiClean |
/OWSLib-0.29.2.tar.gz/OWSLib-0.29.2/owslib/dif.py | from owslib.etree import etree
from owslib import util
from owslib.namespaces import Namespaces
# default variables
def get_namespaces():
n = Namespaces()
ns = n.get_namespaces("dif")
ns[None] = n.get_namespace("dif")
return ns
namespaces = get_namespaces()
class DIF(object):
""" Process DIF "... | PypiClean |
/2vyper-0.3.0.tar.gz/2vyper-0.3.0/src/twovyper/verification/rules.py | from typing import Dict, Tuple
"""Conversion rules from Silver level errors to 2vyper errors."""
Rule = Dict[Tuple[str, str], Tuple[str, str]]
def combine(first: Rule, second: Rule) -> Rule:
"""
Combines `first` and `second` to produce a rule as if we first apply
`first` and then apply `second` to its r... | PypiClean |
/CC-CataLog-0.1.330.tar.gz/CC-CataLog-0.1.330/catalog/fw/incomplete.py | import typing as typ
#External modules
import os,subprocess,datetime,json,datetime,types,glob,time
import numpy as np # type: ignore
import fireworks,prettytable # type: ignore
from fireworks.core.firework import FWAction # type: ignore
from prettytable import PrettyTable ... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/geometry/_core/distance.py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from math import fabs
from math import sqrt
from compas.utilities import pairwise
from compas.geometry._core import add_vectors
from compas.geometry._core import add_vectors_xy
from compas.geometry._core impo... | PypiClean |
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/Proposer/hyperopt/tpe.py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from builtins import str
from builtins import map
from builtins import zip
from builtins import range
from past.utils import old_div
import logging
import time
import numpy as np
from scipy.special import erf
f... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/urllib3/util/retry.py | from __future__ import absolute_import
import time
import logging
from collections import namedtuple
from itertools import takewhile
import email
import re
from ..exceptions import (
ConnectTimeoutError,
MaxRetryError,
ProtocolError,
ReadTimeoutError,
ResponseError,
InvalidHeader,
)
from ..pack... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_blender/artists/capsuleartist.py | from typing import Any
from typing import List
from typing import Optional
from typing import Union
import bpy
import compas_blender
from compas.geometry import Capsule
from compas.artists import ShapeArtist
from compas.colors import Color
from .artist import BlenderArtist
class CapsuleArtist(BlenderArtist, ShapeAr... | PypiClean |
/Flask-Dashed-0.1a.tar.gz/Flask-Dashed-0.1a/docs/build/html/searchindex.js | Search.setIndex({objects:{"admin.AdminModule":{url:[1,1,1],secure_endpoint:[1,2,1],add_url_rule:[1,2,1]},admin:{Admin:[1,0,1],AdminModule:[1,0,1],AdminNode:[1,0,1],recursive_getattr:[1,3,1]},"ext.sqlalchemy.ModelAdminModule":{edit_query_factory:[1,1,1],form_view:[1,1,1],delete_object:[1,2,1],create_object:[1,2,1],get_o... | PypiClean |
/COAsT-3.2.1.tar.gz/COAsT-3.2.1/coast/data/config_structure.py | from dataclasses import dataclass
from enum import Enum, unique
@unique
class ConfigTypes(Enum):
"""Enum class containing the valid types for config files."""
GRIDDED = "gridded"
INDEXED = "indexed"
class ConfigKeys:
"""Class of constants representing valid keys within configuriation json."""
... | PypiClean |
/MyoSuite-2.0.1-py3-none-any.whl/myosuite/envs/env_base.py | import gym
import numpy as np
import os
import time as timer
from myosuite.envs.obs_vec_dict import ObsVecDict
from myosuite.utils import tensor_utils
from myosuite.robot.robot import Robot
from myosuite.utils.prompt_utils import prompt, Prompt
import skvideo.io
from sys import platform
from myosuite.physics.sim_scene... | PypiClean |
/BabitMF-0.0.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/bmf/builder/bmf_optimizer.py | import copy
import json
from .bmf_node import BmfNode
from .bmf_stream import BmfStream
class BmfOptimizer:
def __init__(self):
pass
@staticmethod
def find_merged_link(links, stream):
result = False
link_remove = None
pin = None
for link in links:
if l... | PypiClean |
/DeepCellTL-0.12.5.tar.gz/DeepCellTL-0.12.5/deepcell/image_generators/fully_convolutional.py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import os
import numpy as np
from tensorflow.keras import backend as K
from tensorflow.keras.preprocessing.image import array_to_img
from tensorflow.keras.preprocessing.image import Iterator
from tensorflow.k... | PypiClean |
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/pages/static/mezzanine/js/admin/jquery.mjs.nestedSortable.js | (function($) {
$.widget("mjs.nestedSortable", $.extend({}, $.ui.sortable.prototype, {
options: {
doNotClear: false,
expandOnHover: 700,
isAllowed: function(placeholder, placeholderParent, originalItem) { return true; },
isTree: false,
listType: 'ol',
maxLevels: 0,
protectRoot: false,
rootID... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/series/configure_series.py | from loguru import logger
from flexget import plugin
from flexget.config_schema import process_config
from flexget.event import event
from flexget.plugin import PluginError
from . import series as plugin_series
logger = logger.bind(name='configure_series')
class ConfigureSeries(plugin_series.FilterSeriesBase):
... | PypiClean |
/Interplanetary_Invaders-0.7-py3-none-any.whl/interplanetary_invaders/scripts/maps.py | import random
import pygame
from interplanetary_invaders.scripts.planets import *
from interplanetary_invaders.scripts.missions import *
MAP_POINT_SIZE = 64
class MapPoint:
"""Base class of map points"""
def __init__(
self,
pos,
name,
mission=None,
alien_flag=False,
... | PypiClean |
/BatAlgorithm-0.3.1.tar.gz/BatAlgorithm-0.3.1/README.md | # Bat Algorithm in Python
## Objective
The main objective is to create an implementation of bat algorithm in Python programming language.
## Installation
pip install BatAlgorithm
### Example
The following example presents a simple use of bat algorithm. `Fun()` denotes the objective function that may be changed ... | PypiClean |
/Oasys-Canvas-Core-1.0.7.tar.gz/Oasys-Canvas-Core-1.0.7/README.txt | Orange Canvas Core
==================
Orange Canvas Core is is a framework for building graphical user
interfaces for editing workflows. It is a component used to build
the Orange Canvas (http://orange.biolab.si) data-mining application
(for which it was developed in the first place).
Installation
------------
Orang... | PypiClean |
/Enarksh-0.9.0.tar.gz/Enarksh-0.9.0/enarksh/controller/event_handler/EventQueueEmptyEventHandler.py | import functools
from enarksh.DataLayer import DataLayer
class EventQueueEmptyEventHandler:
"""
An event handler for an empty event queue.
"""
# ------------------------------------------------------------------------------------------------------------------
@staticmethod
def queue_compare(... | PypiClean |
/HamlPy3-0.84.0.tar.gz/HamlPy3-0.84.0/hamlpy/nodes.py | import re
import sys
from io import StringIO
from .elements import Element
try:
from pygments import highlight
from pygments.formatters import HtmlFormatter
from pygments.lexers import guess_lexer
_pygments_available = True
except ImportError as e:
_pygments_available = False
try:
from markdo... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/prototype/prototype.js | var Prototype = {
Version: '1.7.3',
Browser: (function(){
var ua = navigator.userAgent;
var isOpera = Object.prototype.toString.call(window.opera) == '[object Opera]';
return {
IE: !!window.attachEvent && !isOpera,
Opera: isOpera,
WebKit: ua.indexOf('Appl... | PypiClean |
/Direct_Downloader-0.7-py3-none-any.whl/directdownloader/__main__.py |
# Python Modules
import os
from argparse import ArgumentParser
# Developer Modules
from directdownloader.direct_downloader import Download_Manager
def parse_arguments():
parser = ArgumentParser(description='Download a list of urls.')
parser.add_argument('urls', metavar='urls', type=str,
... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/ticketing/api/users_api.py | import re # noqa: F401
import sys # noqa: F401
from MergePythonSDK.shared.api_client import ApiClient, Endpoint as _Endpoint
from MergePythonSDK.shared.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_ty... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/a11yhelp/dialogs/lang/sr.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("a11yhelp","sr",{title:"Упутства за помоћ",contents:"Садржаји за помоћ. Да би сте затворили дијалог притисните ЕСЦ",legend:[{name... | PypiClean |
/OASYS1-APS-Extensions-1.0.87.tar.gz/OASYS1-APS-Extensions-1.0.87/orangecontrib/aps/oasys/widgets/extension/ow_scan_file_node_point.py |
import sys
from PyQt5.QtGui import QImage, QPixmap, QPalette, QFont, QColor, QTextCursor
from PyQt5.QtWidgets import QLabel, QWidget, QHBoxLayout, QMessageBox, QFileDialog
from orangewidget import gui
from orangewidget.widget import OWAction
from orangewidget.settings import Setting
from oasys.widgets import widge... | PypiClean |
/Clyther-0.4-beta.tar.gz/Clyther-0.4-beta/doc/for_numpy_users.rst | ====================================
CLyther for NumPy Users
====================================
simple numpy script::
import numpy as np
a = np.arange(12, dtype='f')
b = np.arange(12, dtype='f').reshape([12,1])
c = a + b
assert c.shape == (12, 12)
assert np.sum(c).item(... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/threads/serializers/poll.py | from django.urls import reverse
from django.utils.crypto import get_random_string
from django.utils.translation import gettext as _
from django.utils.translation import ngettext
from rest_framework import serializers
from ..models import Poll
__all__ = [
"PollSerializer",
"EditPollSerializer",
"NewPollSer... | PypiClean |
/BittyTax-0.5.1.tar.gz/BittyTax-0.5.1/src/bittytax/conv/parsers/coinbase.py |
import re
import sys
from decimal import Decimal
from ...config import config
from ..dataparser import DataParser
from ..exceptions import UnexpectedContentError, UnexpectedTypeError
from ..out_record import TransactionOutRecord
WALLET = "Coinbase"
DUPLICATE = "Duplicate"
def parse_coinbase_v2(data_row, parser, **... | PypiClean |
/MarkDo-0.3.0.tar.gz/MarkDo-0.3.0/markdo/static/bower/codemirror/mode/perl/perl.js | CodeMirror.defineMode("perl",function(config,parserConfig){
// http://perldoc.perl.org
var PERL={ // null - magic touch
// 1 - keyword
// 2 - def
// 3 - atom
// 4 - operator
// 5 - variable-2 (predefined)
// [x,y] - x=1,2,3; y=must be defined if x{...}
... | PypiClean |
/Hooke-1.0.0.alpha%20(Ninken).tar.gz/Hooke-1.0.0.alpha (Ninken)/hooke/plugin/autopeak.py | from hooke.libhooke import WX_GOOD
import wxversion
wxversion.select(WX_GOOD)
from wx import PostEvent
import numpy as np
import scipy as sp
import copy
import os.path
import time
import warnings
warnings.simplefilter('ignore',np.RankWarning)
#from .. import ui.gui.results as results
class autopeakCommands(object)... | PypiClean |
/CountRings-0.1.7.tar.gz/CountRings-0.1.7/README.md | # Ring Statistics Algorithm
## Counting policy
* It counts only irreducible rings (rings not having shortcut bridges).
* It counts rings purely topologically. It does not use geometrical information.
* Edge direction is not considered. (Undirected graph)
## Algorithm
1. Choose 3 successive nodes (i.e. two adjacent ... | PypiClean |
/CAMSyFReT-1.1.1.tar.gz/CAMSyFReT-1.1.1/Final_Project/dialog.py |
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_SettingsDialog(object):
def setupUi(self, SettingsDialog):
SettingsDialog.setObjectName("SettingsDialog")
SettingsDialog.resize(400, 389)
self.buttonBox = QtWidgets.QDialogButtonBox(SettingsDialog)
self.buttonBox.setGeometry(QtC... | PypiClean |
/Hippodamia-0.4.2.tar.gz/Hippodamia-0.4.2/hippodamia/agentshadow/logarchive.py | import collections
import datetime
import pprint
from pelops.logging.mylogger import get_log_level
from pelops.logging.mylogger import get_level_name
import logging
class _ArchiveEntry:
log = None
counter = None
time = None
def __init__(self, maxlen):
self.log = collections.deque(maxlen=maxle... | PypiClean |
/BEAT_Guang-1.0.1-py3-none-any.whl/econml/dowhy.py | import inspect
import pandas as pd
import numpy as np
import warnings
from dowhy import CausalModel
from econml.utilities import check_input_arrays, reshape_arrays_2dim, get_input_columns
class DoWhyWrapper:
"""
A wrapper class to allow user call other methods from dowhy package through EconML.
(e.g. caus... | PypiClean |
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/html/_build/html/_build/doctrees/nbsphinx/_build/doctrees/nbsphinx/_build/html/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 |
/DLMS_SPODES-0.40.11.tar.gz/DLMS_SPODES-0.40.11/src/DLMS_SPODES/cosem_interface_classes/disconnect_control.py | from .__class_init__ import *
from ..types.implementations import integers
from itertools import chain
class ControlState(cdt.Enum, elements=(0, 1, 2)):
""" Shows the internal state of the disconnect control object. """
class ControlMode(cdt.Enum, elements=tuple(chain(range(7), range(129, 135)))):
""" Confi... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/tqdm/tqdm/keras.py | from __future__ import absolute_import, division
from copy import copy
from functools import partial
from .auto import tqdm as tqdm_auto
try:
import keras
except (ImportError, AttributeError) as e:
try:
from tensorflow import keras
except ImportError:
raise e
__author__ = {"github.com/": ... | PypiClean |
/DaLaS-0.1.1.tar.gz/DaLaS-0.1.1/dalas/models/data_models.py | from typing import Optional, Union, List
import pydantic
try:
from typing import Literal
except ImportError:
from typing_extensions import Literal
import datetime
from pydantic import validator, ValidationError
from .base_models import BaseModel, PayinSystem, BaseMerch
from ..types import Locales, InputCurr... | PypiClean |
/EpyNN-1.2.11.tar.gz/EpyNN-1.2.11/epynnlive/dummy_image/prepare_dataset.py | import random
# Related third party imports
import numpy as np
def features_image(WIDTH=28, HEIGHT=28):
"""Generate dummy image features.
:param WIDTH: Image width, defaults to 28.
:type WIDTH: int
:param HEIGHT: Image height, defaults to 28.
:type HEIGHT: int
:return: Random image feature... | PypiClean |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/utils/testing/regression/compare.py | from __future__ import annotations
import argparse
import difflib
import filecmp
import fnmatch
import os
import re
import sys
from pathlib import Path
from textwrap import indent
from typing import Iterator, Optional
import numpy as np
import xarray as xr
from PIL import Image
try:
import imagehash
except Impor... | PypiClean |
/BiblioPixel-3.4.46.tar.gz/BiblioPixel-3.4.46/bibliopixel/drivers/serial/devices.py | import serial, serial.tools.list_ports
from distutils.version import LooseVersion
from . codes import CMDTYPE, LEDTYPE, SPIChipsets, BufferChipsets
from . import io
from ... drivers.return_codes import raise_error
from ... util import log, util
from ... project.importer import import_module
_DEVICES_BY_HARDWARE_ID = {... | PypiClean |
/BCPy2000-1.6.tar.gz/BCPy2000-1.6/src/BCI2000Tools/Chain.py | __all__ = [
'bci2000chain', 'bci2000root', 'bci2000path',
]
import os,sys,tempfile,time
import numpy
from .Parameters import make_bciprm, read_bcidate
try: import scipy, SigTools # used for sstruct (could be replaced by dict), ChannelSet (could be omitted) and loadmat (required - introduces a scipy dependency)
exc... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/tabletools/dialogs/tableCell.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.dialog.add("cellProperties",function(h){function k(a){return{isSpacer:!0,type:"html",html:"\x26nbsp;",requiredContent:a?a:void 0}}function r(){re... | PypiClean |
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/builtin/comparison.py |
from __future__ import unicode_literals
from __future__ import absolute_import
import sympy
import itertools
from mathics.builtin.base import Builtin, BinaryOperator, Test, SympyFunction
from mathics.core.expression import (Expression, Number, Integer, Rational,
Real, Symbol, Str... | PypiClean |
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/structure/modules/lstm.py | __author__ = 'Daan Wierstra and Tom Schaul'
from scipy import tanh
from pybrain.structure.modules.neuronlayer import NeuronLayer
from pybrain.structure.modules.module import Module
from pybrain.structure.parametercontainer import ParameterContainer
from pybrain.tools.functions import sigmoid, sigmoidPrime, tanhPrime
... | PypiClean |
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/component/static/portfolio/vendor/jquery/src/attributes/classes.js | define([
"../core",
"../var/rnotwhite",
"../var/strundefined",
"../core/init"
], function( jQuery, rnotwhite, strundefined ) {
var rclass = /[\t\r\n\f]/g;
jQuery.fn.extend({
addClass: function( value ) {
var classes, elem, cur, clazz, j, finalValue,
i = 0,
len = this.length,
proceed = typeof value ===... | PypiClean |
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/engine/trainer.py | import datetime
import logging
import time
import torch
import torch.distributed as dist
from PMTD.maskrcnn_benchmark.utils.comm import get_world_size
from PMTD.maskrcnn_benchmark.utils.metric_logger import MetricLogger
from apex import amp
def reduce_loss_dict(loss_dict):
"""
Reduce the loss dictionary fro... | PypiClean |
/energon_prometheus_exporter_main-0.0.1.tar.gz/energon_prometheus_exporter_main-0.0.1/torchdistill-test/examples/legacy/semantic_segmentation.py | import argparse
import datetime
import os
import time
import torch
from torch import distributed as dist
from torch.backends import cudnn
from torch.nn import DataParallel
from torch.nn.parallel import DistributedDataParallel
from torch.utils.data._utils.collate import default_collate
from torchdistill.common import ... | PypiClean |
/OWSLib-0.29.2.tar.gz/OWSLib-0.29.2/owslib/map/wms111.py | import cgi
from urllib.parse import urlencode
import warnings
from owslib.etree import etree
from owslib.util import (openURL, testXMLValue, extract_xml_list,
xmltag_split, OrderedDict, ServiceException,
bind_url, nspath_eval, Authentication)
from owslib.fgdc import M... | PypiClean |
/DoraPy-1.1.0-py3-none-any.whl/dorapy/utils/spiderTool.py | import requests
import random
import re
def get_headers(url, use='pc'):
pc_agent = [
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50",
"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-us) AppleWebKit/534.50 (KHTML, like Gecko) ... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/admin/views/generic/formsbuttons.py | from django.contrib import messages
from django.db import transaction
from django.shortcuts import redirect
from .base import AdminView
class TargetedView(AdminView):
is_atomic = True
def dispatch(self, request, *args, **kwargs):
if self.is_atomic:
with transaction.atomic():
... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/PostProcessing.py | import ctypes
import os
import sys
from nuitka import Options, OutputDirectories
from nuitka.build.DataComposerInterface import getConstantBlobFilename
from nuitka.finalizations.FinalizeMarkups import getImportedNames
from nuitka.PythonVersions import (
getPythonABI,
getTargetPythonDLLPath,
python_version,... | PypiClean |
/Hefesto-0.4.7.tar.gz/Hefesto-0.4.7/README.md | # Hefesto - Curation Toolkit: A Critical Step in the Workflow
**Preprocessing datatable toolkit for CDE semantic model data source requirements**
The implementation of the Common Data Element (CDE) Semantic Model for CSV data entails a meticulous and technically advanced workflow. By leveraging the power of the CDE Y... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/backends/sqlite3/schema.py | import contextlib
import copy
from decimal import Decimal
from djmodels.apps.registry import Apps
from djmodels.db.backends.base.schema import BaseDatabaseSchemaEditor
from djmodels.db.backends.ddl_references import Statement
from djmodels.db.transaction import atomic
from djmodels.db.utils import NotSupportedError
... | PypiClean |
/NlpToolkit-NGram-1.0.19.tar.gz/NlpToolkit-NGram-1.0.19/test/AdditiveSmoothingTest.py | import unittest
from NGram.AdditiveSmoothing import AdditiveSmoothing
from test.SimpleSmoothingTest import SimpleSmoothingTest
class AdditiveSmoothingTest(SimpleSmoothingTest, unittest.TestCase):
delta1: float
delta2: float
delta3: float
def setUp(self) -> None:
super().setUp()
addit... | PypiClean |
/IQM_Vis-0.2.5.80-py3-none-any.whl/IQM_Vis/utils/gui_utils.py | try:
from PyQt6.QtGui import QPixmap, QImage
import matplotlib; matplotlib.use('Qt5Agg')
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg
from matplotlib.figure import Figure
HEADLESS = False
except ImportError:
import warnings
warnings.warn('Can not load PyQt6 library - runn... | PypiClean |
/Chameleon-4.1.0.tar.gz/Chameleon-4.1.0/src/chameleon/nodes.py | from .astutil import Node
class UseExternalMacro(Node):
"""Extend external macro."""
_fields = "expression", "slots", "extend"
class Sequence(Node):
"""Element sequence."""
_fields = "items",
def __nonzero__(self):
return bool(self.items)
class Content(Node):
"""Content substitu... | PypiClean |
/NEMO_keycloak-1.3.1-py3-none-any.whl/NEMO_keycloak/keycloak/aio/realm.py | import asyncio
from NEMO_keycloak.keycloak.aio.abc import AsyncInit
from NEMO_keycloak.keycloak.aio.authz import KeycloakAuthz
from NEMO_keycloak.keycloak.aio.client import KeycloakClient
from NEMO_keycloak.keycloak.aio.openid_connect import KeycloakOpenidConnect
from NEMO_keycloak.keycloak.aio.uma import KeycloakUMA
... | PypiClean |
/Autoneuro-master_new-0.0.1.tar.gz/Autoneuro-master_new-0.0.1/application/dataLoad/data_loader.py | import pandas as pd
# import pymongo
# import os
from application.logger.appLogger import AppLogger
class DataGetter():
"""
This class shall be used for obtaining the data from the source for training.
Written By: iNeuron Intelligence
Version: 1.0
Revisions: None
"""
def __init__(self)... | PypiClean |
/KL_Audit_supportV3.1-1.0-py3-none-any.whl/AuditModule/core/applications/AuditManagement.py | import inspect
from AuditModule.core.applications import Annotations
from AuditModule.util import Logging as LOGG
from AuditModule.common import AppConstants
# from bin.util import CommonUtils
from AuditModule.core.applications import AuditManagementModules
from AuditModule.core.persistences import PersistenceAdaptor
i... | PypiClean |
/CmonCrawl-1.0.3.tar.gz/CmonCrawl-1.0.3/docs/source/generated/cmoncrawl.processor.pipeline.extractor.DomainRecordExtractor.rst | cmoncrawl.processor.pipeline.extractor.DomainRecordExtractor
============================================================
.. currentmodule:: cmoncrawl.processor.pipeline.extractor
.. autoclass:: DomainRecordExtractor
.. automethod:: __init__
.. rubric:: Methods
.. autosummary::
:toctree:
... | PypiClean |
/EES_connector-0.3.3.tar.gz/EES_connector-0.3.3/README.md | # EES connector
__EES connector__ is a tools developed by the [SERG research group](https://www.dief.unifi.it/vp-177-serg-group-english-version.html)
of the [University of Florence](https://www.unifi.it/changelang-eng.html) for launching [EES](https://fchartsoftware.com/ees/)
calculation and retrieving results from ... | PypiClean |
/Flask-Geckoboard-0.2.1.tar.gz/Flask-Geckoboard-0.2.1/README.rst | flask-geckoboard
=================
Geckoboard_ is a hosted, real-time status board serving up indicators
from web analytics, CRM, support, infrastructure, project management,
sales, etc. It can be connected to virtually any source of quantitative
data.
This Flask extension provides view decorators to help create cus... | PypiClean |
/DeezerPy-1.0-py3-none-any.whl/deezerpy/deezerpy.py | import sys
import requests
class Deezer:
def __init__(self, auth=None, credentials_manager=None):
self.base_url = "https://api.deezer.com/"
self._auth = auth
self.credentials_manager = credentials_manager
# ------------------- GET Methods ------------------------------------
def get... | PypiClean |
/Curare-0.4.5-py3-none-any.whl/curare/snakefiles/mapping/bowtie2/lib/pe_mapping_stats_tsv_to_xlsx.py | import csv
import matplotlib
matplotlib.use('Agg')
matplotlib.rcParams.update({'figure.autolayout': True})
import matplotlib.pyplot as plt
import pandas as pd
import sys
from pathlib import Path
from typing import Dict, List, Union
def get_col_widths(df: pd.DataFrame) -> List[int]:
return [max(y) for y in [[len(... | PypiClean |
/BIT_framework-0.0.2-py3-none-any.whl/BIT_DL/pytorch/evals/bleu_transformer.py | import collections
import math
import re
import sys
from typing import Callable, Counter, List, Tuple
import numpy as np
import unicodedata
from BIT_DL.pytorch.evals.bleu import corpus_bleu
from BIT_DL.pytorch.evals.bleu_moses import corpus_bleu_moses
from BIT_DL.pytorch.utils.types import MaybeList
__all__ = [
... | PypiClean |
/Flask-Bootstrap3-3.1.1.3.tar.gz/Flask-Bootstrap3-3.1.1.3/flask_bootstrap3/static/js/html5shiv.js | (function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(... | PypiClean |
/MLML-0.0.1.tar.gz/MLML-0.0.1/mlml/algorithm.py |
from typing import Callable
from typing import Tuple
import numpy as np
from mlml.ssgd.shuffle import emulate_external_shuffle
from mlml.utils.data import read_dataset
from mlml.utils.data import Data
from mlml.logging import Logger
from mlml.logging import StandardLogger
from mlml.logging import LOG_PATH_FORMAT
fro... | PypiClean |
/FPGAflow-esdg-0.3.5.tar.gz/FPGAflow-esdg-0.3.5/fpgaflow/environmentsetup.py | import helpers.customlogging as log
import helpers.version as my_version
import helpers.arguments as arguments
import helpers.funcs as funcs
import fpgavendor_iface as fpgavendor_iface
import os
logger = log.config_logger(name=__name__)
LOGLEVEL = log.LogLevelsConsts
rev = filter(str.isdigit, "$Rev$") # Do Not Mod... | PypiClean |
/DS_basic_start-0.0.9-py3-none-any.whl/DS_start/basic_EDA.py | from scipy.stats import pearsonr, pointbiserialr, chi2_contingency
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# from statistics import mean
# from sklearn.impute import SimpleImputer
# from sklearn.preprocessing import MinMaxScaler, StandardScaler
# from sklearn.decompo... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/nodes/shapes/ControlFlowDescriptions.py | class ControlFlowDescriptionBase(object):
@staticmethod
def isUnsupported():
return False
class ControlFlowDescriptionElementBasedEscape(ControlFlowDescriptionBase):
@staticmethod
def getExceptionExit():
return BaseException
@staticmethod
def isValueEscaping():
return ... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ve.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 |
/GALFITools-1.0.0.tar.gz/GALFITools-1.0.0/src/galfitools/galin/MakeMask.py |
import numpy as np
import sys
import os
import subprocess as sp
from astropy.io import fits
import os.path
import scipy
import argparse
def makeMask(sexfile: str, image: str, maskfile: str, scale: float, satfileout: str) -> None:
sexarsort = "sexsort.cat"
satscale = 1
satoffset = 0
print ("... | PypiClean |
/Eve_Mongoengine2-1.46.0-py3-none-any.whl/eve_mongoengine/validation.py | from eve.io.mongo.validation import Validator
from flask import current_app as app
from mongoengine import ValidationError, FileField
from eve_mongoengine._compat import iteritems
from eve_mongoengine.utils import get_utc_time
class EveMongoengineValidator(Validator):
"""
Helper validator which adapts mongoe... | PypiClean |
/Av1an-6.1.post2.tar.gz/Av1an-6.1.post2/av1an/encoder/x265.py | import os
import re
from av1an.project import Project
from av1an.chunk import Chunk
from av1an.commandtypes import MPCommands, CommandPair, Command
from .encoder import Encoder
from av1an.utils import list_index_of_regex
class X265(Encoder):
def __init__(self):
super().__init__(
encoder_bin='... | PypiClean |
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/import_scripts/BAMtoJunctionBED.py |
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#copi... | PypiClean |
/BWP-0.7.0.tar.gz/BWP-0.7.0/bwp/management/commands/sqlscript.py | import os
from django.utils.importlib import import_module
from django.core.management.base import LabelCommand
from django.db import DEFAULT_DB_ALIAS
from bwp.conf import settings
def prepare_engine(engine):
engine = engine.split('.')[-1]
for e in ('postgresql', 'mysql', 'sqlite', 'oracle'):
if engi... | PypiClean |
/NewDjango-0.0.3.tar.gz/NewDjango-0.0.3/README.rst |
Example Project
===============
This is an example project that is used to demonstrate how to publish
Python packages on PyPI. To take a look at the step by step guide on how to
do so, make sure you read `my article on Towards Data Science <https://towardsdatascience.com/how-to-upload-your-python-package-to-pypi-de1... | PypiClean |
/Fifty_Flask-1.4.0-py3-none-any.whl/fifty_flask/queue.py | from __future__ import absolute_import
from flask import current_app, request
from flask_rq import job
def request_event_wrapper(on_event):
def wrapper(fn):
if request:
@on_event
def handler(response):
fn()
return response
return handler
... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/methods/messages/send_document.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 |
/Adafruit_Blinka-8.20.1-py3-none-any.whl/adafruit_blinka/microcontroller/samsung/exynos5422/pin.py | from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin
GPIOA0_0 = GPIO171 = Pin((26, 0))
GPIOA0_1 = GPIO172 = Pin((26, 1))
GPIOA0_2 = GPIO173 = Pin((26, 2))
GPIOA0_3 = GPIO174 = Pin((26, 3))
GPIOA0_4 = GPIO175 = Pin((26, 4))
GPIOA0_5 = GPIO176 = Pin((26, 5))
GPIOA0_6 = GPIO177 = Pin((26, 6))
GPIOA0... | PypiClean |
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/jax/output/SVG/fonts/TeX/AMS/Regular/Latin1Supplement.js | MathJax.Hub.Insert(MathJax.OutputJax.SVG.FONTDATA.FONTS.MathJax_AMS,{165:[683,0,750,11,738,"515 0Q494 3 374 3Q256 3 235 0H224V46H257Q316 47 324 58Q327 62 327 137V213H133Q121 213 113 213T97 213T86 213T78 213T73 214T70 215T69 216T68 218T67 220Q64 225 66 231T73 240Q76 242 202 242H327V273L247 407H115Q81 407 75 408T67 414Q6... | PypiClean |
/CBintentBox-0.3.0a3-py3-none-any.whl/intentBox/parsers/padacioso_extract.py | from intentBox.parsers.template import IntentExtractor
from padacioso import IntentContainer
from intentBox.utils import LOG, get_utterance_remainder
class PadaciosoExtractor(IntentExtractor):
keyword_based = False
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.co... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/retrying.py |
import random
from pip._vendor import six
import sys
import time
import traceback
# sys.maxint / 2, since Python 3.2 doesn't have a sys.maxint...
MAX_WAIT = 1073741823
def retry(*dargs, **dkw):
"""
Decorator function that instantiates the Retrying object
@param *dargs: positional arguments passed to Re... | PypiClean |
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_200712.py | from __future__ import unicode_literals
name = '200712'
division_schema = {
'110000': '北京市',
'110100': '市辖区',
'110101': '东城区',
'110102': '西城区',
'110103': '崇文区',
'110104': '宣武区',
'110105': '朝阳区',
'110106': '丰台区',
'110107': '石景山区',
'110108': '海淀区',
'110109': '门头沟区',
'11011... | PypiClean |
/NehorayRapid1-0.0.1-py3-none-any.whl/RapidBaseNe/Utils/MISCELENEOUS.py | from RapidBase.Basic_Import_Libs import *
import numpy as np
import collections
import os
def save_obj(obj, name):
with open(name + '.pkl', 'wb') as f:
pickle.dump(obj, f, pickle.HIGHEST_PROTOCOL)
def load_obj(name):
with open(name + '.pkl', 'rb') as f:
return pickle.load(f)
def save_dict(obj... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/jqvmap/maps/jquery.vmap.usa.js | jQuery.fn.vectorMap('addMap', 'usa_en', {"width":959,"height":593,"paths":{"hi":{"path":"m244.66,512.25c-2.48,3.8 2.23,4.04 4.74,5.38 3.06,0.16 3.51,-4.28 2.66,-6.56 -2.72,-0.77 -5.01,-0.19 -7.41,1.19z m-9.31,3.97c-4.02,5.11 3.64,0.48 0.63,-0.09l-0.5,0.07 -0.14,0.02z m39.69,7.97c-0.62,2.09 1.91,6.73 4.39,6.2 2.41,-1.46... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/energy_project_create.py |
from msrest.serialization import Model
class EnergyProjectCreate(Model):
"""EnergyProjectCreate.
All required parameters must be populated in order to send to Azure.
:param place_id: The place identifier
:type place_id: int
:param energy_project_code: Required. The energy project code <span
... | PypiClean |
/MedSim3D-0.0.1a2.tar.gz/MedSim3D-0.0.1a2/src/medsim3d/vhp/downloader.py | from tqdm import tqdm
import requests
import os
class VHPDownloader:
def __init__(self):
self.root_url="https://data.lhncbc.nlm.nih.gov/public/Visible-Human"
# self.GenderItem="Male"
# self.ResItem=['70mm','FullColor','PNG_format','radiological','INDEX','INDEX.Z','README']
# PNG d... | PypiClean |
/OTPTunnel-0.1.0.tar.gz/OTPTunnel-0.1.0/otpt/pad.py | from operator import xor
import os
import sys
import hashlib
class Pad(object):
def __init__(self, keyfile, initial_seek=0):
self._keypath = os.path.join(keyfile)
self._current_encode_seek = initial_seek
self._stepping = 2
self._encode_counter = 0
self._decode_counter = 0
... | PypiClean |
/FMPy-0.3.11-py3-none-any.whl/fmpy/gui/generated/icons_rc.py |
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.15.4)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x01\xca\
\x00\
\x00\x11\x34\x78\x9c\xed\x98\xc1\x6e\xc2\x30\x0c\x86\xef\x93\xf6\
\x0e\x88\x3b\x20\x2e\x9c\x3a\x2e\xbc\x... | PypiClean |
/Kato-FlaskAppBuilder-1.1.14.tar.gz/Kato-FlaskAppBuilder-1.1.14/flask_appbuilder/charts/views.py | import logging
from flask_babel import lazy_gettext
from .widgets import ChartWidget, DirectChartWidget
from .jsontools import dict_to_json
from ..widgets import SearchWidget
from ..security.decorators import has_access
from ..baseviews import BaseModelView, expose
from ..urltools import *
from ..models.group import Gr... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/progress/bar.py |
# Copyright (c) 2012 Giorgos Verigakis <verigak@gmail.com>
#
# Permission to use, copy, modify, and distribute this software 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 THE ... | PypiClean |
/Mopidy-Mopify-1.7.3.tar.gz/Mopidy-Mopify-1.7.3/mopidy_mopify/static/debug/src/app/account/settings/settings.controller.js | 'use strict';
angular.module('mopify.account.settings', [
'ngRoute',
'LocalStorageModule',
'mopify.services.settings',
'mopify.services.autoupdate',
'mopify.services.versionmanager',
'llNotifier'
]).config([
'$routeProvider',
function ($routeProvider) {
$routeProvider.when('/account/settings', {
... | PypiClean |
/DLTKDL-51.0.8-py3-none-any.whl/dltkdl/text/ner/anago/layers_standalone.py | from __future__ import absolute_import
from __future__ import division
from ....imports import *
class CRF(Layer):
"""An implementation of linear chain conditional random field (CRF).
An linear chain CRF is defined to maximize the following likelihood function:
$$ L(W, U, b; y_1, ..., y_n) := \frac{1}{Z} ... | PypiClean |
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_200512.py | from __future__ import unicode_literals
name = '200512'
division_schema = {
'110000': '北京市',
'110100': '市辖区',
'110101': '东城区',
'110102': '西城区',
'110103': '崇文区',
'110104': '宣武区',
'110105': '朝阳区',
'110106': '丰台区',
'110107': '石景山区',
'110108': '海淀区',
'110109': '门头沟区',
'11011... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/experimental/sampler/metropolis_pt.py |
from functools import partial
import numpy as np
import jax
from jax import numpy as jnp
from netket.utils.types import PyTree, PRNGKeyT
from netket.utils import struct
from netket.sampler import MetropolisSamplerState, MetropolisSampler
from netket.sampler.rules import LocalRule, ExchangeRule, HamiltonianRule
@... | PypiClean |
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/2d.py |
from genice2.cell import cellvectors
import genice2.lattices
desc = {"ref": {"IId": 'Nakamura 2015'},
"usage": "No options available.",
"brief": "A hydrogen-disordered counterpart of ice II."
}
class Lattice(genice2.lattices.Lattice):
def __init__(self):
self.density = 1.2 # defa... | PypiClean |
/Eureqa-1.76.0.tar.gz/Eureqa-1.76.0/eureqa/analysis/components/variable_link.py | from eureqa.analysis.components.base import _Component
class VariableLink(_Component):
"""
Create a VariableLink component
Example of using HtmlBlock with a VariableLink::
vl = VariableLink(d, 'X')
h = HtmlBlock('Formatted <b>Card</b> in the Analysis, with reference to {0}'.format(analysi... | PypiClean |
/Lokai-0.3.tar.gz/Lokai-0.3/lokai/lk_worker/models/builtin_data_resources.py |
#-----------------------------------------------------------------------
from collections import namedtuple
import pyutilib.component.core as component
from lokai.tool_box.tb_database.orm_interface import engine
from lokai.tool_box.tb_database.orm_access import (
insert_or_update,
delete_row,
MUST_NOT_E... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.