id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/3ETool-0.8.3.tar.gz/3ETool-0.8.3/EEETools/BlockSubClasses/ejector_simplified.py | from EEETools.MainModules.support_blocks import Drawer, get_drawer_sub_class
from EEETools.MainModules import Block
import xml.etree.ElementTree as ETree
from EEETools import costants
class EjectorSimplified(Block):
def __init__(self, inputID, main_class):
super().__init__(inputID, main_class)
... | PypiClean |
/OSF_EIMTC-0.1.46.tar.gz/OSF_EIMTC-0.1.46/src/EIMTC/plugins/protocol_header_fields.py | from nfstream import NFStreamer, NFPlugin
import numpy as np
from scapy.all import IP, TCP
class ProtocolHeaderFields(NFPlugin):
''' ProtocolHeaderFields |
Extracts 4 features for `n_packets` packets. Packet direction, payload size, delta time
and TCP window size if TCP, value is set to zero if UDP.
... | PypiClean |
/GaiaXPy-2.1.0.tar.gz/GaiaXPy-2.1.0/gaiaxpy/file_parser/parse_internal_continuous.py | import numpy as np
import pandas as pd
from fastavro import __version__ as fa_version
from packaging import version
from gaiaxpy.core.generic_functions import array_to_symmetric_matrix
from gaiaxpy.core.generic_variables import INTERNAL_CONT_COLS
from .cast import _cast
from .parse_generic import GenericParser
from .u... | PypiClean |
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/C14.py | from genice2.cell import cellvectors
import genice2.lattices
desc = {"ref": {"SpaceFullerene": 'Sikiric 2010'},
"usage": "No options available.",
"brief": "A space fullerene."
}
class Lattice(genice2.lattices.Lattice):
def __init__(self):
self.pairs = """
13 17
21 1... | PypiClean |
/Bubot_AuthService-0.0.8-py3-none-any.whl/BubotObj/OcfDevice/subtype/AuthService/static/ui/js/chunk-3fc8deba.5e4518e5.js | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3fc8deba"],{"0480":function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-card",{staticClass:"pa-4",attrs:{flat:""}},[r("div",{class:"subtitle-1 "+(t.active?"":"primary--text withMethod"),on:{click:... | PypiClean |
/DLPipeline-0.1.20190311201423-py3-none-any.whl/dlpipeline/utilities/configurations/arguments.py | import argparse
__author__ = 'cnheider'
def parse_args(C):
parser = argparse.ArgumentParser()
parser.add_argument(
'--image_directory',
type=str,
default=C.image_directory,
help='Path to folders of labeled images.'
)
parser.add_argument(
'--output_graph_name',
type=str... | PypiClean |
/MeneTools-3.3.0-py3-none-any.whl/menetools/menescope_inc.py |
# Copyright (C) 2017-2023 Clémence Frioux & Arnaud Belcour - Inria Dyliss - Pleiade
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option)... | PypiClean |
/Jianmu-0.0.12.tar.gz/Jianmu-0.0.12/jianmu/jm.py | import base64
import contextlib
import sys
sys.stdout = open(sys.stdout.fileno(), mode='w', encoding='utf8', buffering=1) # Set stdout to unbuffered mode
sys.stderr = open(sys.stderr.fileno(), mode='w', encoding='utf8', buffering=1) # Set stderr to unbuffered mode
import os
from inspect import signature
from pathli... | PypiClean |
/KaiHeiLaCardBuilder-1.3.0-py3-none-any.whl/khl_card/builder.py | from abc import ABC, abstractmethod
from typing import Union, Optional, List
from .modules import Header, Section, ImageGroup, Container, ActionGroup, Context, Divider, Invite, File, Video, Audio, \
Countdown
from .accessory import PlainText, _BaseText, _BaseNonText, Paragraph, Image, Button, _BaseAccessory
from .... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/ticketing/model/model_operation.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 |
/KratosDelaunayMeshingApplication-9.1.3-1-cp37-cp37m-win_amd64.whl/KratosMultiphysics/DelaunayMeshingApplication/transfer_mesher.py | from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7
#import kratos core and applications
import KratosMultiphysics
import KratosMultiphysics.DelaunayMeshingApplication as KratosDelaunay
# Import the mesh mesher (the base class for the... | PypiClean |
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/core/static/mezzanine/tinymce/plugins/legacyoutput/plugin.min.js | !function(a){a.on("AddEditor",function(a){a.editor.settings.inline_styles=!1}),a.PluginManager.add("legacyoutput",function(b,c,d){b.on("init",function(){var c="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",d=a.explode(b.settings.font_size_style_values),e=b.schema;b.formatter.register({alignleft:{selector:c,attribut... | PypiClean |
/EtherChainPy-1.0.80.tar.gz/EtherChainPy-1.0.80/etherchainpy/etherchainpy.py | import requests
from functools import wraps
from .accounts import Accounts
from .contracts import Contracts
from .transactions import Transactions
from .blocks import Blocks
from .logs import Logs
from .geth import Geth
def sign_request(f):
@wraps(f)
def wrapper(self, *a... | PypiClean |
/AES_Python-1.0.0-py3-none-any.whl/AES_Python/AES.py | from os.path import getsize
from os import remove
# ---------------
# Fixed variables
# ---------------
# Sbox & inverse Sbox
subBytesTable = (
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76,
0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf,... | PypiClean |
/EvalDNN-0.13.tar.gz/EvalDNN-0.13/README.md | # EvalDNN
EvalDNN is an open-source toolbox for model evaluation of deep learning systems, supporting multiple frameworks and metrics.
Author: Yongqiang Tian, Zhihua Zeng, Ming Wen, Yepang Liu, Tzu-yang Kuo,
and Shing-Chi, Cheung.
The first two author contribute equally.
This project is mainly supported by Microso... | PypiClean |
/NREL-erad-0.0.0a0.tar.gz/NREL-erad-0.0.0a0/erad/utils/opendss_utils.py | from genericpath import exists
from pathlib import Path
import logging
from typing import List
# third-party imports
import opendssdirect as dss
import pandas as pd
import networkx as nx
from shapely.geometry import MultiPoint
import stateplane
# internal imports
from erad.utils.util import path_validation, setup_log... | PypiClean |
/AMQPStorm-Pool-1.0.1.tar.gz/AMQPStorm-Pool-1.0.1/amqpstorm_pool/__init__.py | __version__ = '1.0.1'
__all__ = [
'Error',
'Timeout',
'Overflow',
'Connection',
'Pool',
'NullPool',
'QueuedPool',
]
from datetime import datetime
import logging
try:
# python 3
import queue
except ImportError:
# python 2
import Queue as queue
import threading
import time
... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/_Events.js.uncompressed.js | define("dojox/grid/_Events", [
"dojo/keys",
"dojo/dom-class",
"dojo/_base/declare",
"dojo/_base/event",
"dojo/_base/sniff"
], function(keys, domClass, declare, event, has){
return declare("dojox.grid._Events", null, {
// summary:
// _Grid mixin that provides default implementations for grid events.
// descrip... | PypiClean |
/Jouvence-0.4.2.tar.gz/Jouvence-0.4.2/LICENSE.rst | Copyright 2011 Ludovic Chabant
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/core/mail/backends/filebased.py |
import datetime
import os
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.mail.backends.console import EmailBackend as ConsoleEmailBackend
from django.utils import six
class EmailBackend(ConsoleEmailBackend):
def __init__(self, *args, **kwargs):
s... | PypiClean |
/DDFacet-0.7.2.0.tar.gz/DDFacet-0.7.2.0/README.rst | DDFacet
###################################
A facet-based radio imaging package
.. image:: https://jenkins.meqtrees.net/job/DDFacet_master_cron/badge/icon
:alt: Build status
:target: https://jenkins.meqtrees.net/job/DDFacet_master_cron
.. image:: https://img.shields.io/aur/license/yaourt.svg
... | PypiClean |
/Joule-0.9.41.tar.gz/Joule-0.9.41/joule/models/supervisor.py | from typing import List, Callable, Dict, Optional
import asyncio
import yarl
import logging
from sqlalchemy import orm
from joule.models import Worker, DataStream, Proxy, Follower, pipes
from joule.errors import SubscriptionError, ConfigurationError, ApiError
from joule.api import BaseNode
Tasks = List[asyncio.Task]... | PypiClean |
/Legume-0.5.zip/Legume-0.5/legume/connection.py | # -*- coding: utf-8 -*-
# legume. Copyright 2009-2013 Dale Reidy. All rights reserved.
# See LICENSE for details.
__docformat__ = 'restructuredtext'
import struct
import random
import logging
from legume import netshared
from legume import timing as time
from legume.nevent import Event
from legume.pingsampler import... | PypiClean |
/LibRPG-0.4.zip/LibRPG-0.4/librpg/docs/reference/source/reference/image.rst | :mod:`image` -- Image loading and slicing
=========================================
.. automodule:: librpg.image
:members:
:show-inheritance:
Usage
-----
Generally, TileImage and Image will not be used by end users.
Using ObjectImage, however, is important when the walking animation should
be different from t... | PypiClean |
/Linum-0.9.12.tar.gz/Linum-0.9.12/linum/svg_renderer/calendar/views/grid_view.py | import tkinter
from datetime import date, timedelta
from typing import Optional
from svgwrite import Drawing
from svgwrite.path import Path
from linum.svg_renderer.base.style import Style
class GridView:
def __init__(self, layers_count: int,
start: date, length: int,
width: Op... | PypiClean |
/AeroSandbox-4.1.1.tar.gz/AeroSandbox-4.1.1/aerosandbox/performance/operating_point.py | from aerosandbox.common import AeroSandboxObject
from aerosandbox import Atmosphere
import aerosandbox.numpy as np
from typing import Tuple, Union, Dict, List
from aerosandbox.tools.string_formatting import trim_string
import inspect
class OperatingPoint(AeroSandboxObject):
def __init__(self,
atm... | PypiClean |
/Covid-Dashboard-pkg-tsturgeon-0.0.2.tar.gz/Covid-Dashboard-pkg-tsturgeon-0.0.2/README.md | # Covid-1 Dashboard Tom Sturgeon
## Table of contents:
- [Introduction](###Introduction)
- [Prerequisites](###Prerequisites)
- [Installing](###Installing)
- [Config File](###Config-File)
- [Running](###Running)
- [Testing](###Testing)
- [Documentation](###Documentation)
- [Details](###Details)
### Introduction
Crea... | PypiClean |
/Eden-2.1.14.zip/Eden-2.1.14/eden/tutorialKivy/tk011_localMenus/localMenus.py |
# localMenus.py
from org.qquick.eden import *
menuIndices = range (5)
def getNodes (kind):
currentItemsNode = Node ([])
# === Menu
openMenuNode = Node (None)
optionNodes = [Node (None) for i in menuIndices]
closeMenuNode = Node () .dependsOn (optionNodes)
resultNode = Node (''). dependsOn (
[closeMenuN... | PypiClean |
/Denis_mess_server-1.0.0.tar.gz/Denis_mess_server-1.0.0/server/server/core.py | import threading
import logging
import select
import socket
import json
import hmac
import binascii
import os
from common.metaclasses import ServerMaker
from common.descryptors import Port
from common.variables import *
from common.utils import send_message, get_message
from common.decos import login_required
# Загру... | PypiClean |
/KratosConvectionDiffusionApplication-9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/ConvectionDiffusionApplication/convection_diffusion_semi_eulerian_solver.py | import KratosMultiphysics
# Import applications
import KratosMultiphysics.ConvectionDiffusionApplication as ConvectionDiffusionApplication
# Import base class file
from KratosMultiphysics.ConvectionDiffusionApplication import convection_diffusion_solver
def CreateSolver(model, custom_settings):
return Convection... | PypiClean |
/Keras_Applications-1.0.8.tar.gz/Keras_Applications-1.0.8/keras_applications/imagenet_utils.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import json
import warnings
import numpy as np
from . import get_submodules_from_kwargs
CLASS_INDEX = None
CLASS_INDEX_PATH = ('https://storage.googleapis.com/download.tensorflow.org/'
'da... | PypiClean |
/DLTKDL-51.0.8-py3-none-any.whl/dltkdl/text/ner/learner.py | from ...imports import *
from ... import utils as U
from ...core import GenLearner
class NERLearner(GenLearner):
"""
Learner for Sequence Taggers.
"""
def __init__(self, model, train_data=None, val_data=None,
batch_size=U.DEFAULT_BS, eval_batch_size=U.DEFAULT_BS,
wor... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/hash.js | define("dojo/hash",["./_base/kernel","require","./_base/connect","./_base/lang","./ready","./_base/sniff"],function(_1,_2,_3,_4,_5,_6){
_1.hash=function(_7,_8){
if(!arguments.length){
return _9();
}
if(_7.charAt(0)=="#"){
_7=_7.substring(1);
}
if(_8){
_a(_7);
}else{
location.href="#"+_7;
}
return _7;
};
var _b,_c,_d,_e... | PypiClean |
/BlueWhale3-Timeseries-0.3.13.tar.gz/BlueWhale3-Timeseries-0.3.13/orangecontrib/timeseries/datasources.py | from datetime import date
import logging
import pandas_datareader.data as web
from Orange.data import Domain
from orangecontrib.timeseries import Timeseries
log = logging.getLogger(__name__)
try:
from Orange.data.pandas_compat import table_from_frame
except ImportError:
raise RuntimeError("Yahoo Finance req... | PypiClean |
/Gbtestapi0.3-0.1a10-py3-none-any.whl/gailbot/plugins/loader/urlloader.py | import os
import re
import boto3
from botocore.exceptions import ParamValidationError
from cryptography.fernet import Fernet
from typing import Dict, List, Union, TypedDict, Tuple
from abc import ABC
from .directoryloader import PluginDirectoryLoader
from .pluginLoader import PluginLoader
from ..suite import PluginSuit... | PypiClean |
/NanoscoPy-0.0.13-py3-none-any.whl/nanoscopy/spectrum/peak_fit.py | class PeakFit:
def __init__(self,input_data,material=None):
"""
input_data: (numpy array) with the leftmost column being the x data.
material: (string) default is None
"""
self.data_x = input_data[:,0]
self.data_y = input_data[:,1]
self.material = material... | PypiClean |
/conpot-0.6.0-py3-none-any.whl/conpot/helpers.py | from datetime import datetime
from slugify import slugify
def sanitize_file_name(name, host, port):
"""
Ensure that file_name is legal. Slug the filename and store it onto the server.
This would ensure that there are no duplicates as far as writing a file is concerned. Also client addresses are
noted ... | PypiClean |
/564bff00ff_strawberry_graphql-0.168.2-py3-none-any.whl/strawberry/aiohttp/handlers/graphql_ws_handler.py | from __future__ import annotations
from contextlib import suppress
from typing import TYPE_CHECKING, Any, Optional
from aiohttp import http, web
from strawberry.subscriptions import GRAPHQL_WS_PROTOCOL
from strawberry.subscriptions.protocols.graphql_ws.handlers import BaseGraphQLWSHandler
if TYPE_CHECKING:
from ... | PypiClean |
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcontrol/view/widgets/ViewWidget.py | from qtpy import QtCore, QtWidgets
from imswitch.imcommon.model.shortcut import shortcut
from imswitch.imcontrol.view import guitools as guitools
from .basewidgets import Widget
class ViewWidget(Widget):
""" View settings (liveview, grid, crosshair). """
sigGridToggled = QtCore.Signal(bool) # (enabled)
... | PypiClean |
/Kr0nOs_Bot-3.3.11-py3-none-any.whl/redbot/cogs/audio/core/commands/playlists.py | import asyncio
import json
import logging
import math
import os
import tarfile
from io import BytesIO
from typing import Optional, cast
import discord
import lavalink
from redbot.core.utils import AsyncIter
from redbot.core import commands
from redbot.core.data_manager import cog_data_path
from redbot.core.utils.chat... | PypiClean |
/Aquila_Resolve-0.1.4-py3-none-any.whl/Aquila_Resolve/models/dp/model/model.py | from abc import ABC, abstractmethod
from enum import Enum
from typing import Tuple, Dict, Any
import torch
import torch.nn as nn
from .utils import _make_len_mask, _generate_square_subsequent_mask, PositionalEncoding
from ..preprocessing.text import Preprocessor
class ModelType(Enum):
TRANSFORMER = "transformer"... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/calculated_bill_cost_response_py3.py |
from msrest.serialization import Model
class CalculatedBillCostResponse(Model):
"""Definition of how a calculated bill will get its cost.
:param rate_schedule:
:type rate_schedule: ~energycap.sdk.models.RateChildResponse
:param fixed_unit_cost:
:type fixed_unit_cost: ~energycap.sdk.models.FixedA... | PypiClean |
/DynaPy-1.2.5.tar.gz/DynaPy-1.2.5/TLCD/main.py | from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar
import numpy as np
import sys
import re
import os
from DynaPy.TLCD.GUI.mainWindowGUI import Ui_MainWindow
from DynaPy.TLCD.GUI.DpInputData import In... | PypiClean |
/21cmFAST-3.3.1.tar.gz/21cmFAST-3.3.1/docs/faqs/misc.rst | Miscellaneous FAQs
==================
My run seg-faulted, what should I do?
-------------------------------------
Since ``21cmFAST`` is written in C, there is the off-chance that something
catastrophic will happen, causing a segfault. Typically, if this happens, Python will
not print a traceback where the error occurr... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/_KeyNavContainer.js.uncompressed.js | define("dijit/_KeyNavContainer", [
"dojo/_base/kernel", // kernel.deprecated
"./_Container",
"./_FocusMixin",
"dojo/_base/array", // array.forEach
"dojo/keys", // keys.END keys.HOME
"dojo/_base/declare", // declare
"dojo/_base/event", // event.stop
"dojo/dom-attr", // domAttr.set
"dojo/_base/lang" // lang.hitc... | PypiClean |
/NESTML-5.3.0-py3-none-any.whl/pynestml/meta_model/ast_compound_stmt.py |
from pynestml.meta_model.ast_for_stmt import ASTForStmt
from pynestml.meta_model.ast_if_stmt import ASTIfStmt
from pynestml.meta_model.ast_node import ASTNode
from pynestml.meta_model.ast_while_stmt import ASTWhileStmt
class ASTCompoundStmt(ASTNode):
"""
This class is used to store compound statements.
G... | PypiClean |
/BlueWhale3_Text-1.6.0-py3-none-any.whl/orangecontrib/text/widgets/resources/wordcloud-script.js | var OPTIONS = {
list: [],
// according to www good selection that covers all systems fonts - same than used by QT
fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif',
color: 'UNUSED',
backgroundColor: 'white',
clearCanvas:... | PypiClean |
/ALMAFE-ConfigDelivery-0.0.2.tar.gz/ALMAFE-ConfigDelivery-0.0.2/ConfigDelivery/WCA/WCADatabase.py | from ConfigDelivery.Plot.WCA import PlotWCA
from ConfigDelivery.WCA.LoadConfiguration import loadConfiguration
from ConfigDelivery.WCA.WCAOutputPower import WCAOutputPower
from ALMAFE.database.DriverMySQL import DriverMySQL as driver
from ALMAFE.basic.ParseTimeStamp import makeTimeStamp
from xml.etree import ElementTre... | PypiClean |
/MatPlotTheme-0.1.2.zip/MatPlotTheme-0.1.2/matplottheme/style/ggplot2.py | from .default import Style
class ggplot2Style(Style):
'''
This class is a collection of all painting methods provided by the
ggplot2 style of MatPlotTheme.
:param palette: The palette used for coloring.
'''
def legend(self, ax, *args, **kwargs):
'''
Place a legend to the in... | PypiClean |
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/Episode/EpisodeReboot.py |
import warnings
import copy
import json
import os
import re
import numpy as np
from datetime import timedelta
from grid2op.dtypes import dt_float, dt_int, dt_bool
from grid2op.Exceptions import Grid2OpException
from grid2op.Chronics import GridValue, ChronicsHandler
from grid2op.Opponent import BaseOpponent
from gri... | PypiClean |
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/View/Controls/Wizard.py | from tkinter import Label, Toplevel, Frame, Button, FLAT, TOP, RIGHT, LEFT, X, Y, BOTH, NORMAL, DISABLED
from typing import Type
from LabExT.View.Controls.CustomFrame import CustomFrame
class Step:
"""
Implementation of one Wizard Step.
"""
ACTIVE_LABEL_COLOR = "#000000"
INACTIVE_LABEL_COLOR = ... | PypiClean |
/AutoTorch-0.0.2b20200818.tar.gz/AutoTorch-0.0.2b20200818/README.md | [](https://pypi.python.org/pypi/autotorch)
[](https://pypi.org/project/autotorch/#history)
[](http://pepy.tech/project/autotorch)
[![Uploa... | PypiClean |
/Nety-1.3.5.tar.gz/Nety-1.3.5/nety/models_cisco.py | import sys
import re
import os
from ccp_util import _IPV6_REGEX_STR_COMPRESSED1, _IPV6_REGEX_STR_COMPRESSED2
from ccp_util import _IPV6_REGEX_STR_COMPRESSED3
from ccp_util import IPv4Obj, IPv6Obj
from ccp_util import range_to_list
from ccp_abc import BaseCfgLine
### HUGE UGLY WARNING:
### Anything in models_cisco.p... | PypiClean |
/ArticutAPI-1.3.0-py3-none-any.whl/src/ArticutAPI.py |
import os
import re
try:
import rapidjson as json
except:
import json
try:
import requests
except Exception as e:
import platform
if "windows" in platform.system().lower():
print("""
Module, \"requests\" is not installed.
If you don't know how to install "requests" under W... | PypiClean |
/FACe_lib-0.3.0.tar.gz/FACe_lib-0.3.0/face/services/invoice.py | from .service import SOAP_Service
from ..models import InvoiceSchema, StatusesSchema
import base64
import os.path
class Invoice(SOAP_Service):
"""
Integrate all invoice-related methods
"""
def __init__(self, service, email):
super(Invoice, self).__init__(service)
self.email = email
... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/groups/forms.py |
from django import forms
from slugify import slugify
from django.utils.translation import ugettext as _
from modeltranslation.forms import TranslationModelForm
from django.contrib.auth import get_user_model
from geonode.groups.models import GroupProfile
class GroupForm(TranslationModelForm):
slug = forms.Slug... | PypiClean |
/src/main/python/_tools.py | import pickle as pickle
import os,traceback
import functools
from PyQt5 import QtCore,QtWidgets
from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QCheckBox, QLabel,QApplication
def ProgressBarDecoratorArguments(runningText='Running',completedText='Completed',failedText='Failed'):
def ProgressB... | PypiClean |
/ArticutAPI_Taigi-0.94-py3-none-any.whl/ArticutAPI_Taigi/defaultDict/DroidtownTG_dict/ACTION_verb.py | DT_ActionVerb = ["反輾轉",
"輾轉",
"提供",
"設計",
"欣賞",
"使用",
"來往",
"來臨",
"保存",
"保留",
"偷拈",
"公佈",
"公演",
"冷凍... | PypiClean |
/DNBC4-test-2.2.1.tar.gz/DNBC4-test-2.2.1/dnbc4tools/software/d2c/bin/README.md | # D2C
单细胞数据分析工具 Drop to Cell
## 环境
### 运行环境
* centos 7.0+
* gcc-9.1 library
* python library 需要安装对应库 *numpy scipy pandas plotly kaleido*
### 脚本设置
需引入gcc动态库和python的可执行文件路径,形式如下:
```sh
export LD_LIBRARY_PATH="/hwfssz5/ST_BIGDATA/USER/zhaofuxiang/lib/gcc-9.1.0/lib:/hwfssz5/ST_BIGDATA/USER/zhaofuxiang/lib/gcc-9.1.0/... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/docs/source/users/notes.rst | .. _notes:
############
Known Issues
############
This page is used to detail any known issues or unexpected behaviour
within the software.
************************************
Problem-Format/Software Combinations
************************************
When comparing minimizer options from one software package
(e.g.... | PypiClean |
/Greg-0.4.8.tar.gz/Greg-0.4.8/greg/commands.py | import json
import os.path
import pickle
import sys
import greg.classes as c
import greg.aux_functions as aux
def retrieveglobalconf(args):
"""
Retrieve the global config path
"""
print(c.config_filename_global)
def add(args):
"""
Add a new feed
"""
session = c.Session(args)
if ... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/archives/utils.py | import os
import shutil
import zipfile
from loguru import logger
try:
import rarfile
except ImportError:
rarfile = None
logger = logger.bind(name='archive')
class ArchiveError(Exception):
"""Base exception for archive"""
pass
class NeedRarFile(ArchiveError):
"""Exception to be raised when ra... | PypiClean |
/Adjacency-1.0.1-py3-none-any.whl/adjacency/__init__.py |
__project__ = "Draugr"
__author__ = "Christian Heider Nielsen"
__version__ = "1.0.1"
__doc__ = r"""
Created on 27/04/2019
@author: cnheider
"""
import datetime
import os
from logging import warning
from pathlib import Path
from typing import Any
import pkg_resources
from apppath import AppPath
with open(Path(_... | PypiClean |
/ER-Evaluation-2.1.0.tar.gz/ER-Evaluation-2.1.0/er_evaluation/summary/_summary.py | import numpy as np
import pandas as pd
from scipy.special import comb
from er_evaluation.data_structures import MembershipVector
def summary_statistics(membership, names=None):
r"""
Compute canonical set of summary statistics.
This includes:
* Number of clusters
* Average cluster size
* Mat... | PypiClean |
/CleanerVersion-2.1.1.tar.gz/CleanerVersion-2.1.1/versions/fields.py | from django.db.models.deletion import DO_NOTHING
from django.db.models.fields.related import ForeignKey, ManyToManyField, \
resolve_relation, lazy_related_operation
from django.db.models.query_utils import Q
from django.db.models.sql.datastructures import Join
from django.db.models.sql.where import ExtraWhere, Wher... | PypiClean |
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/reporting/elasticsearch.py |
from __future__ import absolute_import
import datetime
import json
import logging
import time
import os
from cuckoo.common.abstracts import Report
from cuckoo.common.elastic import elastic
from cuckoo.common.exceptions import CuckooReportError, CuckooOperationalError
from cuckoo.misc import cwd
logging.getLogger("e... | PypiClean |
/Flask%20of%20Cinema-1.0.0.tar.gz/Flask of Cinema-1.0.0/static/js/forms.js | (function($) {
// Function to update labels of text fields
M.updateTextFields = function() {
let input_selector =
'input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea';
$(input... | PypiClean |
/Diesis-1.0.5.tar.gz/Diesis-1.0.5/diesis/scrapers/AZLyrics.py | from diesis.scrapers import LyricsScraper
from urllib import parse, request
from urllib.error import HTTPError
from http.client import RemoteDisconnected
from bs4 import BeautifulSoup
from diesis import Config, Logger
from typing import Tuple, Optional
class AZLyrics(LyricsScraper.LyricsScraper):
def __search(sel... | PypiClean |
/Gammalearn-0.11.0.tar.gz/Gammalearn-0.11.0/gammalearn/data/example_settings/experiment_settings_square_pixels_bicubic.py | import collections
import os
import importlib
from pathlib import Path
import math
import numpy as np
import torch
from torch.optim import lr_scheduler
from torchmetrics.classification import Accuracy, AUROC
from pytorch_lightning.profiler import SimpleProfiler, AdvancedProfiler, PyTorchProfiler
import gammalearn.cri... | PypiClean |
/LwmaL_mess_client-0.8.7.tar.gz/LwmaL_mess_client-0.8.7/client/transport.py | import socket
import time
import logging
import json
import threading
import hashlib
import hmac
import binascii
from PyQt5.QtCore import pyqtSignal, QObject
from common.utils import *
from common.variables import *
from common.errors import ServerError
# Логер и объект блокировки для работы с сокетом.
logger = loggi... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/secrets/token_generators/base.py | from typing import Any, Dict, Optional
class BaseTokenGenerator:
"""A base class for token generators.
These are used to generate and validate access tokens.
At the very least, subclasses must set:
* :py:attr:`token_generator_id`
as well as implement the :py:meth:`create_token` and
:py:met... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/scripts/manage_translations.py |
import os
from argparse import ArgumentParser
from subprocess import run
import django
from django.conf import settings
from django.core.management import call_command
HAVE_JS = ["admin"]
def _get_locale_dirs(resources, include_core=True):
"""
Return a tuple (contrib name, absolute path) for all locale dir... | PypiClean |
/Hyperstatic-0.2.0-cp38-cp38-win_amd64.whl/hyperstatic/app/general/orm.py | import uuid
from sqlalchemy import create_engine,\
Column,Integer,Float,String,Boolean,Text,DateTime,ForeignKey
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship,backref
Base=declarative_base()
class Config(Base):
__tablename__='configs'
project_name=Column('proje... | PypiClean |
/Mathics_Scanner-1.3.0.tar.gz/Mathics_Scanner-1.3.0/README.rst | |Workflows| |Pypi Installs| |Latest Version| |Supported Python Versions|
|Packaging status|
Mathics Character Tables and Scanner
=====================================
This repository really contains two things:
* extensive tables describing WL symbols and operators their properties
* a tokenizer or scanner portion ... | PypiClean |
/Adjax-1.0.1.tar.gz/Adjax-1.0.1/adjax/templatetags/ajax.py |
from django import template
from django.template.loader import get_template
from adjax.utils import get_key, get_template_include_key
from django.conf import settings
register = template.Library()
def adjax(parser, token):
try:
tag_name, object_name = token.split_contents()
except ValueError:
... | PypiClean |
/LWTools-1.0.5.tar.gz/LWTools-1.0.5/LWT/lmtanalysis/BuildEventMove.py | import sqlite3
from time import *
from lmtanalysis.Chronometer import Chronometer
from lmtanalysis.Animal import *
from lmtanalysis.Detection import *
from lmtanalysis.Measure import *
import matplotlib.pyplot as plt
import numpy as np
from lmtanalysis.Event import *
from lmtanalysis.Measure import *
from lmtanalysis.E... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.8.28.rst | ============================
Djblets 0.8.28 Release Notes
============================
**Release date**: February 9, 2017
Packaging
=========
* Simplified installation of dependencies for contributors to Djblets.
If you're working on the Djblets codebase, installing the package in
development mode (running :co... | PypiClean |
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/canvas/views/scatter.py | from graphlab.canvas.views.bivariate import BivariateView as _bivariate
import graphlab as gl
import datetime
import sys
if sys.version_info.major == 3:
long = int
class ScatterPlot(_bivariate):
def __init__(self, obj, params):
# x is the name of the column in the X axis
# y is the name of t... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/specialchar/dialogs/lang/fa.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","fa",{euro:"نشان یورو",lsquo:"علامت نقل قول تکی چپ",rsquo:"علامت نقل قول تکی راست",ldquo:"علامت نقل قول دوتایی چپ",rdquo:"علامت نقل قول... | PypiClean |
/OTXv2-1.5.12.tar.gz/OTXv2-1.5.12/IndicatorTypes.py | class IndicatorTypes(object):
"""
IndicatorTypes object define indicators used in OTX.
:var name string recognized by the OTX platform.
:var description string verbose description of what the type denotes.
:var api_support if true, indicator api is supported for this type.
:var sections indicat... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/core/management/commands/shell.py | import os
import select
import sys
import traceback
from django.core.management import BaseCommand, CommandError
from django.utils.datastructures import OrderedSet
class Command(BaseCommand):
help = (
"Runs a Python interactive interpreter. Tries to use IPython or "
"bpython, if one of them is av... | PypiClean |
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/client/uploads.py | import hashlib
import io
import itertools
import os
import pathlib
import re
import typing
from io import BytesIO
from ..crypto import AES
from .. import utils, helpers, hints
from ..tl import types, functions, custom
try:
import PIL
import PIL.Image
except ImportError:
PIL = None
if typing.TYPE_CHECKI... | PypiClean |
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/textutils.py |
r"""Basic text manipulation utilities."""
from __future__ import absolute_import
import os
import sys
import re
from pprint import pprint
import logging
import six
#---- public stuff
# Recipe: text_escape (0.2)
def escaped_text_from_text(text, escapes="eol"):
r"""Return escaped version of text.
"esca... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/editor/plugins/nls/latinEntities.js | define("dojox/editor/plugins/nls/latinEntities", { root:
//begin v1.x content
({
/* These are already handled in the default RTE
amp:"ampersand",lt:"less-than sign",
gt:"greater-than sign",
nbsp:"no-break space\nnon-breaking space",
quot:"quote",
*/
iexcl:"inverted exclamation mark",
cent:"cent sign",
poun... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-stylus.js | ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var lang = require("../lib/lang");
var TextHighlightRules = require("./text_highlight_rules").TextHi... | PypiClean |
/NatPy-0.1.1-py3-none-any.whl/natpy/convert.py | from .natural_unit_class import NaturalUnit
from astropy.units.core import UnitConversionError
import numpy
import astropy.units
def ConversionDimensionality(initial_unit, target_unit):
natural_bases = NaturalUnit._natural_bases
initial_dimvec = [initial_unit.decompose().powers,
initial_... | PypiClean |
/Auto_Python_2014-14.1.5.zip/Auto_Python_2014-14.1.5/common/COM_util_trans.py | import simplejson
import json
from json import *
from collections import OrderedDict
class Trans(object):
def __init__(self):
pass
def jsonTodict(self,jsonstr):
return simplejson.loads(jsonstr)
# loads str on order to json str
def jsonToStrOrder(self,jsonstr):
tjsonst... | PypiClean |
/Mashup-Samarjot-102003242-1.0.1.tar.gz/Mashup-Samarjot-102003242-1.0.1/Mashup/__main__.py | from pytube import YouTube
import pydub
import urllib.request
import re
import os
import sys
def main():
delete_after_use = True
if len(sys.argv) == 5:
x = sys.argv[1]
x = x.replace(' ','') + "songs"
try:
n = int(sys.argv[2])
y = i... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/localization/he/TeX.js | MathJax.Localization.addTranslation("he","TeX",{version:"2.7.9",isLoaded:true,strings:{ExtraOpenMissingClose:"\u05E1\u05D5\u05D2\u05E8 \u05E4\u05EA\u05D9\u05D7\u05D4 \u05DE\u05D9\u05D5\u05EA\u05E8 \u05D0\u05D5 \u05E1\u05D5\u05D2\u05E8 \u05E1\u05D9\u05D5\u05DD \u05D7\u05E1\u05E8",ExtraCloseMissingOpen:"\u05E1\u05D5\u05D... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js | 'use strict';
module.exports = exports;
const fs = require('fs');
const path = require('path');
const win = process.platform === 'win32';
const existsSync = fs.existsSync || path.existsSync;
const cp = require('child_process');
// try to build up the complete path to node-gyp
/* priority:
- node-gyp on ENV:npm_con... | PypiClean |
/Flashflood-0.13.0.tar.gz/Flashflood-0.13.0/flashflood/node/transform/join.py |
from tornado import gen
from flashflood.core.edge import IterEdge, FuncEdge, AsyncEdge
from flashflood.core.node import Node
class LeftJoin(Node):
"""Left join
edge 0: left records edge
edge 1: right records edge
1. synchronize the right edge
2. generate mapping from the right e... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/doc/teacher_doc/run_file.rst | .. _run_file:
Run file
========
When the student have submit his/her code, INGInious starts a new Docker container
with the right *environment* for the task (as given in the *task.yaml* file). Inside this
container is launched a script, that we call the *run* script, that you have to provide in the
directory of your ... | PypiClean |
/MagCalibration_jdickerson80-1.2.0-py3-none-any.whl/magCalibration/scripts/makeBlankNPS_ra.py | import sys
import mrcfile
import numpy as np
import math
import csv
import os
from matplotlib.widgets import Slider
from scipy.signal import savgol_filter
import matplotlib.pyplot as plt
from numba import jit, njit
from multiprocessing import Pool
from functools import partial
import time
from PIL import Image, ImageEn... | PypiClean |
/DesktopStreamer-0.7.tar.gz/DesktopStreamer-0.7/desktopstreamer/desktopstreamer.py | from __future__ import absolute_import
from __future__ import print_function
import os
import sys
import time
import shlex
import json
import Tkinter as tk
from subprocess import PIPE, Popen, check_output, CalledProcessError
from collections import OrderedDict
from . import DesktopStreamerError
__all__ = ['Desktop... | PypiClean |
/NEPy-1.0-py3-none-any.whl/nepy/frida/frida.py | import time
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from scipy.signal import detrend, filtfilt, butter, iirnotch, welch
from nepy.capsule.capsule import Capsule
class Frida(object):
r"""
Overview:
Frida is a class that contains
- a Capsule object containing a... | PypiClean |
/IDEA_SESIT_NEW-0.0.1.tar.gz/IDEA_SESIT_NEW-0.0.1/postprocess_scripts/SILVER_postprocess/SILVER_Post_Process_app.py | import streamlit as st
import pandas as pd
import numpy as np
import urllib
from query_SILVER import import_UC_results,import_line_flow, total_generation,\
dispatch_stack, dispatch_stack_plot,total_generation_plot, plot_Gens,\
GHG_factors, GHG_plot, total_GHG_plot, map_generators, transmission_network, Gen_insp... | PypiClean |
/Discord%20Anti-Spam-1.8.1.tar.gz/Discord Anti-Spam-1.8.1/antispam/core.py | import datetime
import logging
from typing import TYPE_CHECKING
from fuzzywuzzy import fuzz
from antispam.abc import Cache
from antispam.dataclasses import CorePayload, Guild, Member, Message
from antispam.exceptions import (
DuplicateObject,
LogicError,
MemberNotFound,
UnsupportedAction,
)
from antis... | PypiClean |
/Flask-AppBuilder-jack-3.3.4.tar.gz/Flask-AppBuilder-jack-3.3.4/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 single_delete = false;
var a... | PypiClean |
/MDP-3.6.tar.gz/MDP-3.6/mdp/utils/slideshow.py | from builtins import str
import random
import tempfile
import os
import webbrowser
import warnings
from . import templet
_BASIC_CSS_FILENAME = "basic.css"
_SLIDESHOW_CSS_FILENAME = "slideshow.css"
def basic_css():
"""Return the basic default CSS."""
css_filename = os.path.join(os.path.split(__file__)[0],
... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/entry/utils.py | from typing import Optional, Callable, List, Any
from ding.policy import PolicyFactory
from ding.worker import IMetric, MetricSerialEvaluator
class AccMetric(IMetric):
def eval(self, inputs: Any, label: Any) -> dict:
return {'Acc': (inputs['logit'].sum(dim=1) == label).sum().item() / label.shape[0]}
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.