id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/extra/googletranslate/README.md | Alhoa-Editor GoogleTranslate Plugin
===================================
This plugin will allow you to translate the contents you're editing by using the Google Translate API v2.
Usage
=====
Just include the plugin.js file in your page, like any other Aloha plugin. Highlight some text, switch to the "Translate" tab, an... | PypiClean |
/Discord%20Anti-Spam-1.8.1.tar.gz/Discord Anti-Spam-1.8.1/antispam/libs/dpy.py | from __future__ import annotations
import datetime
import logging
from typing import Dict, Optional, Union, List
from unittest.mock import AsyncMock
from antispam.deprecation import mark_deprecated
from antispam.libs.shared import Base, SubstituteArgs
try:
import discord
except ModuleNotFoundError: # pragma: no... | PypiClean |
/CASTLE-tools-1.1.tar.gz/CASTLE-tools-1.1/CASTLE/loc_prediction.py | import os
import numpy as np
import scanpy as sc
import matplotlib.pyplot as plt
from sklearn.neighbors import NearestNeighbors
from .location.transformation import best_fit_transform, transform
from .location.edge_detection import alpha_shape
from .location.align_fine import fine_alignment
from .utils import MakeLog... | PypiClean |
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/release.py |
#+---------------------------------------------------------------------------+
#| 01001110 01100101 01110100 01111010 01101111 01100010 |
#| |
#| Netzob : Inferring communication protocols |
#+-... | PypiClean |
/CANberry-0.4.tar.gz/CANberry-0.4/canberry/bower_components/jquery/src/core.js | define([
"./var/arr",
"./var/slice",
"./var/concat",
"./var/push",
"./var/indexOf",
"./var/class2type",
"./var/toString",
"./var/hasOwn",
"./var/support"
], function( arr, slice, concat, push, indexOf, class2type, toString, hasOwn, support ) {
var
// Use the correct document accordingly with window argument ... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/wsc/README.md | CKEditor WebSpellChecker Plugin
===============================
This plugin brings Web Spell Checker (WSC) into CKEditor.
WSC is "installation-less", using the web-services of [WebSpellChecker.net](http://www.webspellchecker.net/). It's an out of the box solution.
Installation
------------
1. Clone/copy this reposi... | PypiClean |
/FESTIM-0.11.1-py3-none-any.whl/festim/materials/material.py | class Material:
"""
Args:
id (int, list): the id of the material. If a list is provided, the
properties will be applied to all the subdomains with the
corresponding ids.
D_0 (float): diffusion coefficient pre-exponential factor (m2/s)
E_D (float): diffusion coeffi... | PypiClean |
/APAC%20SCALE-0.1.2.tar.gz/APAC SCALE-0.1.2/torchscale/architecture/encoder.py |
import math
import numpy as np
import torch
import torch.nn as nn
from fairscale.nn import checkpoint_wrapper, wrap
try:
from apex.normalization import FusedLayerNorm as LayerNorm
except ModuleNotFoundError:
from torch.nn import LayerNorm
from torchscale.architecture.utils import init_bert_params
from torchs... | PypiClean |
/MUSiCC-1.0.4-py3-none-any.whl/musicc/core.py | from __future__ import absolute_import, division, print_function
# general imports
import os
import sys
import warnings
from time import time
import base64
import uuid
# specific imports that need to be pre-installed
import numpy as np
from scipy import stats
import pandas as pd
from sklearn.linear_model import lars_... | PypiClean |
/Hangman-1.4.0..zip/Hangman-1.4.0Hangman.py | import random
import sys
words=[
"War","Brother","Winter"
,"Sneeze","Word"
,"Agreement"
,"Theory"
,"Slope"
,"Need"
,"Event"
,"Help"
,"Play"
,"Price"
,"Birth"
,"Respect"
,"Month"
,"Move"
,"Use"
,"Produce"
,"Substance"
,"Scale"
,"Letter"
,"Oil"
,"Meeting"
,"Size"
,"Death"
,"Servant"
,"Driving"
,"Hope"
,"Room"
,"Inventio... | PypiClean |
/DIRestPlus-0.2.2-py3-none-any.whl/direstplus/wind.py | from direstplus import api
from flask_restplus import Resource, reqparse
from WindPy import w
import pandas as pd
import logging
from datetime import datetime, date
from direstplus.exceptions import RequestError
logger = logging.getLogger(__name__)
STR_FORMAT_DATE = '%Y-%m-%d'
STR_FORMAT_DATETIME_WIND = '%Y-%m-%d %H:%... | PypiClean |
/FreeTAKServer_UI-1.9.9.2-py3-none-any.whl/FreeTAKServer_UI-1.9.9.2.dist-info/LICENSE.md | MIT License
Copyright (c) 2019 [AppSeed App Generator](https://appseed.us)
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, cop... | PypiClean |
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/montreal_forced_aligner/helper.py | from __future__ import annotations
import collections
import functools
import itertools
import json
import logging
import re
import typing
from contextlib import contextmanager
from pathlib import Path
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Type
import dataclassy
import numpy
import yaml
... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/gis/db/backends/oracle/schema.py | from django.contrib.gis.db.models.fields import GeometryField
from django.db.backends.oracle.schema import DatabaseSchemaEditor
from django.db.backends.utils import strip_quotes, truncate_name
class OracleGISSchemaEditor(DatabaseSchemaEditor):
sql_add_geometry_metadata = ("""
INSERT INTO USER_SDO_GEOM_MET... | PypiClean |
/OBP_logging_v5-0.1.1.tar.gz/OBP_logging_v5-0.1.1/OBP_logging_v5/rds.py | import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger()
# checks compliance for rds logging enabled
def rds_logging_enabled(self, **kwargs) -> dict:
"""
:param self:
:return:
"""
logger.info(" ---Inside rds :: rds_logging_enabled()--- ")
self.refresh_session()
... | PypiClean |
/DeepPhysX-22.6.tar.gz/DeepPhysX-22.6/src/Manager/NetworkManager.py | from typing import Any, Dict, Tuple, Optional
from os import listdir
from os.path import join as osPathJoin
from os.path import isdir, isfile
from numpy import copy, array, ndarray
from DeepPhysX.Core.Network.BaseNetworkConfig import BaseNetworkConfig
from DeepPhysX.Core.Utils.pathUtils import copy_dir, create_dir, ge... | PypiClean |
/IO_Model_Builder-1.1.2-py3-none-any.whl/iomb/validation.py | import iomb.model as model
import iomb.refmap as ref
import iomb.sat as sat
import iomb.ia as ia
import pandas as pd
import logging as log
class ValidationResult(object):
def __init__(self):
self.display_count = 5
self.failed = False
self.errors = []
self.warnings = []
self... | PypiClean |
/Joson_yaml_pytest-1.2.7-py3-none-any.whl/Joson_yaml_pytest/extract.py | from requests import Response
import jsonpath
import jmespath
import re
from . import exceptions
def extract_by_object(response: Response, extract_expression: str):
"""
从response 对象属性取值 [status_code, url, ok, headers, cookies, text, json, encoding]
:param response: Response Obj
:param extract_expre... | PypiClean |
/CloeePy-Mongo-0.0.0-rc2.tar.gz/CloeePy-Mongo-0.0.0-rc2/CONTRIBUTING.md | # Contributor's Guide
## Contribution Process
This project is in early alpha, so a more concrete contribution process is still
being developed.
1. Open Github Issue
It's best to create a bug report or feature proposal first before you begin work.
If your contribution request is approved, your PR will be more likey ... | PypiClean |
/AeoLiS-2.1.1.tar.gz/AeoLiS-2.1.1/aeolis/wind.py | from __future__ import absolute_import, division
import numpy as np
import logging
import operator
#import scipy.special
#import scipy.interpolate
from scipy import ndimage, misc
import matplotlib.pyplot as plt
# package modules
import aeolis.shear
from aeolis.utils import *
# initialize logger
logger = logging.get... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/utils/datastructures.py | import copy
from collections import OrderedDict
class OrderedSet:
"""
A set which keeps the ordering of the inserted items.
Currently backs onto OrderedDict.
"""
def __init__(self, iterable=None):
self.dict = OrderedDict.fromkeys(iterable or ())
def add(self, item):
self.dict... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/audit_settings_request_py3.py |
from msrest.serialization import Model
class AuditSettingsRequest(Model):
"""AuditSettingsRequest.
All required parameters must be populated in order to send to Azure.
:param bill_contains_line_item_descriptions: Required.
:type bill_contains_line_item_descriptions:
~energycap.sdk.models.BillC... | PypiClean |
/DirTreeDigest-1.0.7.tar.gz/DirTreeDigest-1.0.7/dirtreedigest/utils.py | import logging
import os
import re
import sys
import time
from contextlib import contextmanager
from datetime import datetime
from enum import Enum
# Enums to communicate with subprocesses
Cmd = Enum('Cmd', 'INIT PROCESS FREE RESULT QUIT')
def shared_memory_available():
""" Single place to check (handy if it ge... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/viewers/matplotlibViewer/matplotlibStreamViewer.py | from __future__ import unicode_literals
__docformat__ = 'restructuredtext'
from fipy.tools import numerix
from fipy.variables.faceVariable import FaceVariable
from fipy.variables.cellVariable import CellVariable
from fipy.viewers.matplotlibViewer.matplotlib2DViewer import AbstractMatplotlib2DViewer
__all__ = ["Matpl... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/nodes/NodeMetaClasses.py | from abc import ABCMeta
from nuitka.__past__ import intern
from nuitka.Errors import NuitkaAssumptionError, NuitkaNodeDesignError
from nuitka.PythonVersions import python_version
def _checkBases(name, bases):
# Avoid duplicate base classes.
assert len(bases) == len(set(bases)), (name, bases)
# Insist on... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/link.py |
__revision__ = "src/engine/SCons/Tool/link.py 2014/07/05 09:42:21 garyo"
import re
import SCons.Defaults
import SCons.Tool
import SCons.Util
import SCons.Warnings
cplusplus = __import__('c++', globals(), locals(), [])
def isfortran(env, source): return False
def isD(env,source): return False
issued_mixed_link_wa... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/chardet/escsm.py |
from .enums import MachineState
HZ_CLS = (
1,0,0,0,0,0,0,0, # 00 - 07
0,0,0,0,0,0,0,0, # 08 - 0f
0,0,0,0,0,0,0,0, # 10 - 17
0,0,0,1,0,0,0,0, # 18 - 1f
0,0,0,0,0,0,0,0, # 20 - 27
0,0,0,0,0,0,0,0, # 28 - 2f
0,0,0,0,0,0,0,0, # 30 - 37
0,0,0,0,0,0,0,0, # 38 - 3f
0,0,0,0,0,0,0,0, # 40 - 47
0,0,0,0,0,0,0,0, # 48 ... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/conf/global_settings.py | def gettext_noop(s):
return s
####################
# CORE #
####################
DEBUG = False
# Whether the framework should propagate raw exceptions rather than catching
# them. This is useful under some testing situations and should never be used
# on a live site.
DEBUG_PROPAGATE_EXCEPTIONS = Fal... | PypiClean |
/Flask-Turbo-Boost-0.2.8.tar.gz/Flask-Turbo-Boost-0.2.8/flask_turbo_boost/api_project/application/__init__.py |
import sys
import os
# Insert project root path to sys.path
project_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
if project_path not in sys.path:
sys.path.insert(0, project_path)
import time
import logging
from flask import Flask, request, url_for, g, render_template, session
from flask_... | PypiClean |
/L-System-Visualizer-1.0.7.tar.gz/L-System-Visualizer-1.0.7/lsystem/core/my_ui.py | import matplotlib.pyplot as plt
import numpy as np
from PyQt5.QtWidgets import QStackedWidget, QVBoxLayout, QPushButton, QWidget, QGridLayout, QLabel, QFileDialog
from PyQt5 import QtWidgets, QtCore
from PyQt5.QtCore import Qt
from lsystem.core.lsystem_utils import (
load_saved_lsystems,
get_saved_lsystem,
... | PypiClean |
/Medical_media_sridhar-0.1.3.tar.gz/Medical_media_sridhar-0.1.3/main/lib/Validation_funtion.py | class Validation_funtion:
def check_bmi(self,weight:int,height:int):
weight=int(weight)
height=int(height)
bmi=((weight)/(height/100)**2)
if bmi <= 18.5:
print("Oops! You are underweight.")
elif bmi <= 24.9:
print("Awesome! You are healthy.")
... | PypiClean |
/ACSConv-0.1.1.tar.gz/ACSConv-0.1.1/acsconv/models/resnet.py | import torch.nn as nn
import math
import torch
import torch.utils.model_zoo as model_zoo
import torch.nn.functional as F
from ..operators import ACSConv
model_urls = {
'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth',
'resnet34': 'https://download.pytorch.org/models/resnet34-333f7ec4.pth... | PypiClean |
/MLStudio-0.1.15.tar.gz/MLStudio-0.1.15/mlstudio/visual/model_evaluation.py | """Model Evaluation Plots. """
import math
import numpy as np
import pandas as pd
import plotly
import plotly.express as px
import plotly.graph_objects as go
import plotly.offline as py
from sklearn.model_selection import ParameterGrid, learning_curve
from sklearn.model_selection import validation_curve
from .base i... | PypiClean |
/MDP-3.6.tar.gz/MDP-3.6/mdp/nodes/misc_nodes.py | from __future__ import division
from future import standard_library
standard_library.install_aliases()
from builtins import str
from builtins import range
from past.utils import old_div
from builtins import object
__docformat__ = "restructuredtext en"
import mdp
from mdp import numx, utils, Node, NodeException, Prese... | PypiClean |
/CPAT-3.0.4.tar.gz/CPAT-3.0.4/lib/cpmodule/FrameKmer.py | #import built-in modules
import math
from collections import Counter
import re
import itertools
from cpmodule import ireader
def word_generator(seq,word_size,step_size,frame=0):
'''
Generate DNA word from sequence using word_size and step_size. Frame is 0, 1 or 2.
'''
for i in range(frame,len(seq),step_size):
w... | PypiClean |
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/bigjob/job_plugin/gcessh.py |
from bigjob import logger
from apiclient.discovery import build
from oauth2client.file import Storage
from oauth2client.client import OAuth2WebServerFlow
from oauth2client.tools import run
import httplib2
import os
import uuid
import time
import saga
"""
AN OAUTH2 Client Id must be created at the Google API console ... | PypiClean |
/DisplaceNet-0.1.tar.gz/DisplaceNet-0.1/engine/object_detection_branch/retina_net/keras_retinanet/models/__init__.py | class Backbone(object):
""" This class stores additional information on backbones.
"""
def __init__(self, backbone):
# a dictionary mapping custom layer names to the correct classes
from .. import layers
from .. import losses
from .. import initializers
self.custom_ob... | PypiClean |
/DESpy-0.1.15-py3-none-any.whl/simkit/examples/basic.py | from math import nan
from random import Random
from heapq import heappush
from heapq import heappop
from simkit.base import SimEntityBase
from simkit.base import EventList
from simkit.base import Priority
from simkit.base import Entity
rng = Random(12345)
class SingleResourceModel(SimEntityBase):
def __init__(... | PypiClean |
/Frida_iOS_Hook-3.4-py3-none-any.whl/lib/listapp.py | import frida
import threading
import sys
def get_usb_iphone():
Type = 'usb'
if int(frida.__version__.split('.')[0]) < 12:
Type = 'tether'
device_manager = frida.get_device_manager()
changed = threading.Event()
def on_changed():
changed.set()
device_manager.on('changed', on_cha... | PypiClean |
/BunkerSync-0.0.1.tar.gz/BunkerSync-0.0.1/src/utils.py | import os
import shutil
import subprocess
import urllib.request
import re
from distutils import dir_util
import stat
import tempfile
def onerror(func, path, exc_info):
"""
Error handler for ``shutil.rmtree``.
If the error is due to an access error (read only file)
it attempts to add write permission... | PypiClean |
/3DeeCellTracker-0.5.2a0-py3-none-any.whl/CellTracker/track.py | import matplotlib.pyplot as plt
import numpy as np
from sklearn.neighbors import NearestNeighbors
def pr_gls_quick(X, Y, corr, BETA=300, max_iteration=20, LAMBDA=0.1, vol=1E8):
"""
Get coherent movements from the initial matching by PR-GLS algorithm
Parameters
----------
X : numpy.ndarray
Y :... | PypiClean |
/ArabicOcr-1.1.6.tar.gz/ArabicOcr-1.1.6/README.md | # ArabicOcr Package to convert any Arabic image text to text by ocr techniques
## about
Python Package to convert arabic images to text
# Installation
```
pip install ArabicOcr
or in colab google cloud
!pip install ArabicOcr
```
## Usage for get frames images
```
from ArabicOcr import arabicocr
```
```
image_pa... | PypiClean |
/LinkChecker-10.2.1-py3-none-any.whl/linkcheck/parser/__init__.py | from .. import strformat, url as urlutil
from ..htmlutil import linkparse
from ..bookmarks import firefox
def parse_url(url_data):
"""Parse a URL."""
if url_data.is_directory():
# both ftp and file links represent directories as HTML data
key = "html"
elif (
url_data.is_file()
... | PypiClean |
/Linq-0.3.1-py3-none-any.whl/Linq-0.3.1.dist-info/DESCRIPTION.rst | Linq.py
=======
|Build Status| |License| |codecov| |Coverage Status| |PyPI version|
Install
-------
::
pip install -U Linq
Additional: Some magic here: `Mix Linq with
Pipe <https://github.com/Xython/Linq.py/blob/master/using_pipe.md>`__
Here is an example to get top 10 frequent pixels in a picture.
.. code::... | PypiClean |
/IPython-Dashboard-0.1.5.tar.gz/IPython-Dashboard-0.1.5/dashboard/static/js/theme-sqlserver.js | define("ace/theme/sqlserver",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
exports.isDark = false;
exports.cssClass = "ace-sqlserver";
exports.cssText = ".ace-sqlserver .ace_gutter {\
background: #ebebeb;\
color: #333;\
overflow: hidden;\
}\
.ace-sqlserver .ace_print-margin {\
widt... | PypiClean |
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/docs/gw/statsd.rst | .. _statsd:
StatsD
======
You can export statistics to a ``StatsD`` server (welcome to Graphite!).
The connection should be defined in the Glances configuration file as
following:
.. code-block:: ini
[statsd]
host=localhost
port=8125
prefix=glances
.. note:: The ``prefix`` is optional (``glances`` ... | PypiClean |
/Flask-Fixtures-0.3.8.tar.gz/Flask-Fixtures-0.3.8/README.rst | Flask-Fixtures
==============
A simple library that allows you to add database fixtures for your unit
tests using nothing but JSON or YAML.
Installation
------------
Installing Flask-Fixtures is simple, just do a typical pip install like
so:
::
pip install flask-fixtures
If you are going to use JSON as yo... | PypiClean |
/DobbyStockSimulation-0.1.1.tar.gz/DobbyStockSimulation-0.1.1/.history/Test_Stock_Main_20221224102249.py | import unittest
from main_package.Stock_main import *
class TestStock(unittest.TestCase): # test class
@classmethod
def setUpClass(cls):
print('setupClass')
def setUp(self):
print('Set up')
def test_high_price(self):
self.high_price_list = [20... | PypiClean |
/HolmesIV-2021.9.8a1.tar.gz/HolmesIV-2021.9.8a1/mycroft/configuration/config.py |
import inflection
import json
from os.path import exists, isfile, join
import re
from requests import RequestException
import xdg.BaseDirectory
from mycroft.util.json_helper import load_commented_json, merge_dict
from mycroft.util.log import LOG
from mycroft.configuration.locations import (DEFAULT_CONFIG, SYSTEM_CO... | PypiClean |
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/sal/healthchecks/ssh_cleanup.py | from ..healthcheck import HealthCheckRun
from js9 import j
descr = """
Clean up ssh deamons and tcp services from migration
"""
class SSHCleanup(HealthCheckRun):
def __init__(self, node, job):
resource = '/nodes/{}'.format(node.name)
super().__init__('ssh-cleanup', 'SSH Cleanup', 'System Load', ... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-dot.js | ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
"use strict";
var Range = require("../range").Range;
var MatchingBraceOutdent = function() {};
(function() {
this.checkOutdent = function(line, input) {
if (! /^\s+$/.test(line))... | PypiClean |
/Flask-Prose-0.1.56.tar.gz/Flask-Prose-0.1.56/flask_prose/storage.py | import re
try:
from builtins import str
except ImportError:
pass
import os.path
import logging
import json
import uuid
from flask_jsontools import DynamicJSONEncoder
from sqlalchemy.ext.serializer import loads, dumps
from sqlalchemy import (
select,
desc,
func,
and_,
not_,
)
from sqlalchemy.... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Scanner/C.py |
__revision__ = "src/engine/SCons/Scanner/C.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan"
import SCons.Node.FS
import SCons.Scanner
import SCons.Util
import SCons.cpp
class SConsCPPScanner(SCons.cpp.PreProcessor):
"""
SCons-specific subclass of the cpp.py module's processing.
... | PypiClean |
/GhettoRecorder-3.0-py3-none-any.whl/ghettorecorder/__main__.py | import os
import time
import json
import socket
import threading
from http.server import BaseHTTPRequestHandler, HTTPServer
import ghettorecorder.cmd as cmd
import ghettorecorder.ghetto_utils as utils
import ghettorecorder.ghetto_procenv as procenv
from ghettorecorder.cmd import entry # instance [GLOBAL] [STATIONS] ... | PypiClean |
/KataRangesPack-0.1-py3-none-any.whl/KataRangePack/__init__.py | class RangeClass:
def __init__(self, range):
self.range = range
def split(self):
firstInterval = self.range[0]
firstNo = self.range[1:self.range.find(',')]
secNo = self.range[self.range.find(',') + 1: -1]
secInterval = self.range[-1]
return [firstInterval, fi... | PypiClean |
/DPark-0.5.0.tar.gz/DPark-0.5.0/dpark/broadcast.py | from __future__ import absolute_import
import os
import zmq
import uuid as uuid_pkg
import time
import binascii
import random
import socket
import struct
import marshal
import mmap
from multiprocessing import Manager, Condition
from mmap import ACCESS_WRITE, ACCESS_READ
from dpark.utils.log import get_logger
from dpar... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/build/js/Treeview.js | import $ from 'jquery'
/**
* Constants
* ====================================================
*/
const NAME = 'Treeview'
const DATA_KEY = 'lte.treeview'
const EVENT_KEY = `.${DATA_KEY}`
const JQUERY_NO_CONFLICT = $.fn[NAME]
const EVENT_EXPANDED = `expanded${EVENT_KEY}`
const EVENT_COLLAPSED = `collapsed${EVENT_KE... | PypiClean |
/FlaskFarm-4.0.104-py3-none-any.whl/flaskfarm/lib/support/expand/ffmpeg.py | import enum
import os
import platform
import re
import shutil
import subprocess
import threading
import time
import traceback
from datetime import datetime
from support import SupportFile, SupportSubprocess, SupportUtil, logger
class SupportFfmpeg(object):
__instance_list = []
__ffmpeg_path = None
__idx... | PypiClean |
/BuzzAlgoTrade-0.0.2.tar.gz/BuzzAlgoTrade-0.0.2/pyalgotrade/websocket/pusher.py | import json
import urllib
import pyalgotrade
from pyalgotrade.websocket import client
import pyalgotrade.logger
logger = pyalgotrade.logger.getLogger("pusher")
# Pusher protocol reference: http://pusher.com/docs/pusher_protocol
# Every message on a Pusher WebSocket connection is packaged as an event.
# The data fi... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/gqcms/Heisenberg.py | import numpy as np
import scipy.linalg as sp
class heisenberg():
def __init__(self, sites, S=0.5):
"""
Will initialize the Heisenberg object
sites: the amount of sites
S: the total spin per site
"""
self.sites = sites
self.S = S
self.degeneracy = int... | PypiClean |
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular-grid/src/ts/filter/filterManager.ts |
module awk.grid {
var _ = Utils;
export class FilterManager {
private $compile: any;
private $scope: any;
private gridOptionsWrapper: GridOptionsWrapper;
private grid: any;
private allFilters: any;
private rowModel: any;
private popupService: PopupServ... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_shi.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 |
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/mapserver/wms/layerfactories/coverage_mask_layer_factory.py |
from eoxserver.contrib import mapserver as ms
from eoxserver.resources.coverages import models
from eoxserver.services.mapserver.wms.layerfactories.base import (
BaseCoverageLayerFactory
)
class CoverageMaskedLayerFactory(BaseCoverageLayerFactory):
handles = (models.RectifiedDataset, models.RectifiedStitche... | PypiClean |
/GooeyPy-0.2.tar.gz/GooeyPy-0.2/README | =============================
README: GooeyPy
=============================
:Author: Joey Marshall
:Contact: web@joey101.net
Please don't contact me about bugs with the OpenGL rendering (unless you have a fix), I already know about them!
Who is GooeyPy for?
-------------------
GooeyPy is designed for smaller SDL gam... | PypiClean |
/Flask-Jasmine-1.4.tar.gz/Flask-Jasmine-1.4/flask_jasmine/static/jasmine/jasmine.js | var isCommonJS = typeof window == "undefined" && typeof exports == "object";
/**
* Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
*
* @namespace
*/
var jasmine = {};
if (isCommonJS) exports.jasmine = jasmine;
/**
* @private
*/
jasmine.unimplementedMethod_ = function() {
t... | PypiClean |
/GoDaddyPy-2.3.4.tar.gz/GoDaddyPy-2.3.4/README.rst | |downloads| |travis| |climate|
.. |downloads| image:: https://img.shields.io/pypi/dm/godaddypy.svg
:target: https://pypi.python.org/pypi/godaddypy
.. |travis| image:: https://travis-ci.org/eXamadeus/godaddypy.svg?branch=master
:target: https://travis-ci.org/eXamadeus/godaddypy
.. |climate| image:: https://code... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/common/babel.py | from inginious.common import custom_yaml
from inginious.common.tasks_problems import CodeProblem, CodeSingleLineProblem, MultipleChoiceProblem, MatchProblem, FileProblem
def import_class(name):
m = name.split('.')
mod = __import__(m[0])
for comp in m[1:]:
mod = getattr(mod, comp)
return mod
d... | PypiClean |
/LabtoolSuite-0.1.3.tar.gz/LabtoolSuite-0.1.3/Labtools/docs/docs/_build/html/_static/sidebar.js | $(function() {
// global elements used by the functions.
// the 'sidebarbutton' element is defined as global after its
// creation, in the add_sidebar_button function
var bodywrapper = $('.bodywrapper');
var sidebar = $('.sphinxsidebar');
var sidebarwrapper = $('.sphinxsidebarwrapper')... | PypiClean |
/chatglm6bpkg-0.0.1.tar.gz/chatglm6bpkg-0.0.1/api.py | from fastapi import FastAPI, Request
from transformers import AutoTokenizer, AutoModel
import uvicorn, json, datetime
import torch
DEVICE = "cuda"
DEVICE_ID = "0"
CUDA_DEVICE = f"{DEVICE}:{DEVICE_ID}" if DEVICE_ID else DEVICE
api_model, api_tokenizer = None, None
def torch_gc():
if torch.cuda.is_available():
... | PypiClean |
/LitleSdkPython3-9.3.1b0.tar.gz/LitleSdkPython3-9.3.1b0/litleSdkPythonTest/functional/TestBatchTcp.py |
import os, sys
lib_path = os.path.abspath('../all')
sys.path.append(lib_path)
from SetupTest import *
import unittest
import tempfile
import shutil
import copy
class TestBatchTcp(unittest.TestCase):
def setUp(self):
self.merchantId = '0180'
def testSendToLitle_WithFileConfig(self):
requestF... | PypiClean |
/Mako-1.2.4.tar.gz/Mako-1.2.4/mako/parsetree.py | import re
from mako import ast
from mako import exceptions
from mako import filters
from mako import util
class Node:
"""base class for a Node in the parse tree."""
def __init__(self, source, lineno, pos, filename):
self.source = source
self.lineno = lineno
self.pos = pos
se... | PypiClean |
/Cartopy-0.22.0-cp310-cp310-macosx_11_0_arm64.whl/cartopy/io/__init__.py | import collections
from pathlib import Path
import string
from urllib.request import urlopen
import warnings
from cartopy import config
def fh_getter(fh, mode='r', needs_filename=False):
"""
Convenience function for opening files.
Parameters
----------
fh
File handle, filename or (file h... | PypiClean |
/Louie-latest-1.3.1.tar.gz/Louie-latest-1.3.1/louie/dispatcher.py | import os
import weakref
try:
set
except NameError:
from sets import Set as set, ImmutableSet as frozenset
from louie import error
from louie import robustapply
from louie import saferef
from louie.sender import Any, Anonymous
from louie.signal import All
try:
dict.iteritems
except AttributeError:
#py... | PypiClean |
/Neodroid-0.4.9-py36-none-any.whl/samples/generation/dataset/tf_record_generator.py | import json
from neodroid import PROJECT_APP_PATH
from neodroid.environments.droid_environment import connect
__author__ = "Christian Heider Nielsen"
__doc__ = ""
import tensorflow as tf
tf.enable_eager_execution()
class TFFeature:
@staticmethod
def listify(value):
if isinstance(value, list):
... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/lang/fa.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['fa']={"editor":"ویرایشگر متن غنی","editorPanel":"پنل ویرایشگر متن غنی","common":{"editorHelp":"کلید Alt+0 را برای راهنمایی بفشارید","browseServer":"فهرستنمایی... | PypiClean |
/Gates-v1.0.0.beta.tar.gz/Gates-v1.0.0.beta/src/gates/core/application.py | import webob
import inspect
import logging
import urlparse
import threading
from traceback import print_exc
from routes import route
from routes.mapper import Mapper
from .exceptions import status_map, HTTPInternalServerError, HTTPException, HTTPNotFound
__version__ = "v1.0.0.beta"
__all__ = ["Application", "Resourc... | PypiClean |
/Beat_ML1-0.13.1.tar.gz/Beat_ML1-0.13.1/econml/orf/_causal_tree.py | import numpy as np
from sklearn.utils import check_random_state
class Node:
"""Building block of :class:`CausalTree` class.
Parameters
----------
sample_inds : array-like, shape (n, )
Indices defining the sample that the split criterion will be computed on.
estimate_inds : array-like, sh... | PypiClean |
/HTSQL-2.3.3.tar.gz/HTSQL-2.3.3/src/htsql/core/tr/flow.py | from ..util import (maybe, listof, tupleof, Clonable, Hashable, Printable,
cachedproperty)
from ..entity import TableEntity, ColumnEntity, Join
from ..domain import Domain, BooleanDomain, ListDomain, IdentityDomain
from ..error import point
from .binding import Binding, QueryBinding, SegmentBinding
... | PypiClean |
/Lin-CMS-0.4.11.tar.gz/Lin-CMS-0.4.11/src/lin/encoder.py | from datetime import date, datetime
from decimal import Decimal
from enum import Enum
from typing import Iterable
from flask import json, jsonify
from flask.json import JSONEncoder as _JSONEncoder
from flask.wrappers import Response
from .apidoc import BaseModel
from .db import Record, RecordCollection
class JSONEn... | PypiClean |
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/tl/types/updates.py | from ...tl.tlobject import TLObject
from typing import Optional, List, Union, TYPE_CHECKING
import os
import struct
from datetime import datetime
if TYPE_CHECKING:
from ...tl.types import TypeChat, TypeDialog, TypeEncryptedMessage, TypeMessage, TypeUpdate, TypeUser
from ...tl.types.updates import TypeState
c... | PypiClean |
/MLStudio-0.1.15.tar.gz/MLStudio-0.1.15/mlstudio/supervised/machine_learning/linear_regression.py | from abc import ABC, abstractmethod
import numpy as np
from sklearn.base import BaseEstimator, RegressorMixin
from sklearn.utils.validation import check_array
from mlstudio.supervised.machine_learning.base import BaseRegressor
# --------------------------------------------------------------------------- #
# ... | PypiClean |
/Lavapy-1.6.1-py3-none-any.whl/lavapy/events.py | from __future__ import annotations
from typing import TYPE_CHECKING, Any, Dict, Optional
if TYPE_CHECKING:
from .player import Player
from .pool import Node
from .tracks import Track
__all__ = ("LavapyEvent",
"TrackStartEvent",
"TrackEndEvent",
"TrackExceptionEvent",
... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/tiny_mce/themes/advanced/js/about.js | tinyMCEPopup.requireLangPack();
function init() {
var ed, tcont;
tinyMCEPopup.resizeToInnerSize();
ed = tinyMCEPopup.editor;
// Give FF some time
window.setTimeout(insertHelpIFrame, 10);
tcont = document.getElementById('plugintablecontainer');
document.getElementById('plugins_tab').style.display = 'none';
... | PypiClean |
/OASYS1-PaNOSC-0.3.2.tar.gz/OASYS1-PaNOSC-0.3.2/orangecontrib/panosc/util/gui/ow_esrf_widget.py | import sys
import numpy, matplotlib
from silx.gui.plot import Plot2D
from silx.gui.plot.StackView import StackViewMainWindow
from PyQt5 import QtGui, QtWidgets
from PyQt5.QtCore import QRect
from PyQt5.QtWidgets import QApplication
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
fr... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.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","zh-cn",{euro:"欧元符号",lsquo:"左单引号",rsquo:"右单引号",ldquo:"左双引号",rdquo:"右双引号",ndash:"短划线",mdash:"长划线",iexcl:"竖翻叹号",cent:"分币符号",pound:"英镑符号",... | PypiClean |
/Khayyam-3.0.17-cp27-cp27m-macosx_10_11_x86_64.whl/Khayyam-3.0.17.dist-info/DESCRIPTION.rst | khayyam
=======
.. image:: http://img.shields.io/pypi/v/khayyam.svg
:target: https://pypi.python.org/pypi/khayyam
.. image:: https://requires.io/github/pylover/khayyam/requirements.svg?branch=master
:target: https://requires.io/github/pylover/khayyam/requirements/?branch=master
:alt: Requirements Statu... | PypiClean |
/AutoYOLObile-0.0.10.tar.gz/AutoYOLObile-0.0.10/ModelOpt/rt3d_pruning/options_backup.py | import argparse
def parse_args():
# Training settings
parser = argparse.ArgumentParser(description='PyTorch ADMM pruning for 3D CNNs')
parser.add_argument('--logger', action='store_true', default=True,
help='whether to use logger')
parser.add_argument('--log-interval', type=int,... | PypiClean |
/EfficientWord_Net-1.0.2-py3-none-any.whl/eff_word_net/streams.py | import pyaudio
from typing import Tuple , Callable
import numpy as np
from eff_word_net.engine import HotwordDetector
from eff_word_net import RATE
NoParameterFunction = Callable[[],None]
AudioFrameFunction = Callable[[],np.array]
class CustomAudioStream :
"""
CustomAudioStream implementation allows develope... | PypiClean |
/ModelSEEDpy-freiburgermsu-0.3.1.4.tar.gz/ModelSEEDpy-freiburgermsu-0.3.1.4/modelseedpy_freiburgermsu/fbapkg/metabofbapkg.py |
from __future__ import absolute_import
import logging
from modelseedpy_freiburgermsu.fbapkg.basefbapkg import BaseFBAPkg
from optlang.symbolics import Zero
# Base class for FBA packages
class MetaboFBAPkg(BaseFBAPkg):
def __init__(self, model):
BaseFBAPkg.__init__(
self,
model,
... | PypiClean |
/2D_Panel-CFD-0.0.1.tar.gz/2D_Panel-CFD-0.0.1/src/RUN_package/UV_coeff.py | import numpy as np
def U_coeffUpwind(Uxo, Uyo, Po, Uue, Uuw, Vun, Vus, D, rho, visc, urf_UV, nx, ny, dx, dy):
Aup = np.zeros((ny, nx+1))
Aue = np.zeros((ny, nx+1))
Auw = np.zeros((ny, nx+1))
Aun = np.zeros((ny, nx+1))
Aus = np.zeros((ny, nx+1))
Bup = np.zeros((ny, nx+1))
vyx = visc*dy/dx
... | PypiClean |
/HMF_test_folder-0.1.tar.gz/HMF_test_folder-0.1/HMF_test_folder/Gaussiandistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Gaussian(Distribution):
""" Gaussian distribution class for calculating and
visualizing a Gaussian distribution.
Attributes:
mean (float) representing the mean value of the distribution
stdev (float) representing ... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/simple_config.py | import json
import threading
import time
import os
import stat
from decimal import Decimal
from typing import Union, Optional
from numbers import Real
from copy import deepcopy
from . import util
from .util import (user_dir, make_dir,
NoDynamicFeeEstimates, format_fee_satoshis, quantize_feerate)
fr... | PypiClean |
/Automated%20Lazy%20Unit%20Testing%20in%20Python-1.0.0.tar.gz/Automated Lazy Unit Testing in Python-1.0.0/fyp/mypkg/constants.py | import imp
import inspect
import byteplay
from blessings import Terminal
###
module_types = {
imp.PY_SOURCE: 'source',
imp.PY_COMPILED: 'compiled',
imp.C_EXTENSION: 'extension',
imp.PY_RESOURCE: 'resource',
imp.PKG_DIRECTORY: 'pkg_path',
}
inspect_types = {
'class': inspect.isclass,
'functio... | PypiClean |
/FSlash-0.17.0.tar.gz/FSlash-0.17.0/fslash/core/compose.py | from functools import reduce
from typing import Callable, Any, TypeVar, overload
A = TypeVar("A")
B = TypeVar("B")
C = TypeVar("C")
D = TypeVar("D")
E = TypeVar("E")
F = TypeVar("F")
G = TypeVar("G")
H = TypeVar("H")
@overload
def compose() -> Callable[[A], A]:
...
@overload
def compose(__fn1: Callable[[A], B]... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_pl.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 |
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/rpm/rpm.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 s... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/interfaces/hamamatsu.py |
import ctypes
import ctypes.util
import numpy as np
from imswitch.imcommon.model import initLogger
# Hamamatsu constants.
DCAMCAP_EVENT_FRAMEREADY = int("0x0002", 0)
# DCAM3 API.
DCAMERR_ERROR = 0
DCAMERR_NOERROR = 1
DCAMPROP_ATTR_HASVALUETEXT = int("0x10000000", 0)
DCAMPROP_ATTR_READABLE = int("0x00010000", 0)
... | PypiClean |
/Flask-AWSCognito-1.3.tar.gz/Flask-AWSCognito-1.3/docs/source/configure_aws.rst | ===============
Prepare Cognito
===============
CloudFormation
--------------
The following CloudFormation template will create
- User Pool, a directory of users
- User Pool Client - an entity that holds the configuration of authentication flow
.. code-block:: yaml
AWSTemplateFormatVersion: "2010-09-09"
... | PypiClean |
/EdaSpiffWorkflow-0.0.2.tar.gz/EdaSpiffWorkflow-0.0.2/EdaSpiffWorkflow_Aadesh_G/bpmn/parser/BpmnParser.py | from builtins import object
# Copyright (C) 2012 Matthew Hampton
#
# This library 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 2.1 of the License, or (at your option) any later versi... | PypiClean |
/HyperKitty-1.3.7.tar.gz/HyperKitty-1.3.7/hyperkitty/static/hyperkitty/libs/bootstrap/javascripts/bootstrap.min.js | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,function(t,g,u){"use strict";function i(t,e){for(var n=0;n<e.length;n... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.