id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Kamyroll-Python-0.0.2.tar.gz/Kamyroll-Python-0.0.2/kamyroll_python/api.py | import sys
import requests
from . import extractor
from . import utils
class crunchyroll:
def __init__(self, config):
self.config = config
def login(self, username, password, bypass):
session = utils.get_session(self.config)
data = {
"username": username,
"pas... | PypiClean |
/CslBot-0.21-py3-none-any.whl/cslbot/commands/tumblr.py |
from random import randint
from requests import get
from ..helpers import arguments
from ..helpers.command import Command
from ..helpers.orm import Tumblrs
from ..helpers.web import post_tumblr
@Command('tumblr', ['config', 'is_admin', 'db', 'nick'])
def cmd(send, msg, args):
"""Searches tumblr
Syntax: {co... | PypiClean |
/ChiantiPy-0.15.1.tar.gz/ChiantiPy-0.15.1/docs/build/_static/doctools.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compatible with browsers without
* an installed firebug like debugger
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
"dirxml", "group", "groupEnd", "... | PypiClean |
/Apycula-0.9.0a1.tar.gz/Apycula-0.9.0a1/apycula/codegen.py | from itertools import chain
class Module:
def __init__(self):
self.inputs = set()
self.outputs = set()
self.inouts = set()
self.wires = set()
self.assigns = []
self.primitives = {}
def __add__(self, other):
m = Module()
m.inputs = self.inputs | o... | PypiClean |
/Aesthete-0.4.2.tar.gz/Aesthete-0.4.2/aesthete/glypher/Decoration.py | import glypher as g
from sympy.matrices import matrices
import Dynamic
from sympy.core import sympify
from Spacer import *
from PhraseGroup import *
import Table
pow_types = {
'python' : None,
'elementwise' : (u'\u2218', \
Table.matrix_hadamard_multiply)
... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","ca",{title:"Instruccions d'Accessibilitat",contents:"Continguts de l'Ajuda. Per tancar aquest quadre de diàleg premi ESC.",legend:[{name:... | PypiClean |
/MLapp1-0.0.37.tar.gz/MLapp1-0.0.37/src/MLapp/UI/componentIDs.py | #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#IDs from diff tabs
scaling_Com_IDS=" MaxAbs Scaler, MinMax Scaler, Normalizer, PowerTransformer, QuantileTransformer, Robust Scaler, Standard Scaler, MinMax Scaler-feature_range, Normalizer-norm, PowerTransformer-method, PowerTransformer-standardize, QuantileTransformer-n_quantiles... | PypiClean |
/Flask-ICU-0.9.1.tar.gz/Flask-ICU-0.9.1/flask_icu/__init__.py | from __future__ import absolute_import
import os
import json
from datetime import datetime
from decimal import Decimal
from flask import _request_ctx_stack
from icu import (Locale, MessageFormat, DateFormat, SimpleDateFormat,
Formattable, TimeZone, ICUtzinfo, NumberFormat, DecimalFormat)
from werkzeug... | PypiClean |
/NearPy-0.2.2.tar.gz/NearPy-0.2.2/nearpy/storage/storage_memory.py |
# Copyright (c) 2013 Ole Krause-Sparmann
# 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
# -*- coding: utf-8 -*-
# Copyright (c... | PypiClean |
/Komoe-0.4.0-py3-none-any.whl/komoe/doctree.py | from . import log
class Node:
def __init__(self, title, is_document):
self.__title = title
self.__is_document = is_document
self.__children = {}
@property
def title(self):
return self.__title
@property
def is_document(self):
return self.__is_document
... | PypiClean |
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/plugins/common/contenthandler/lib/blockelementcontenthandler.js | * Aloha Editor
* Author & Copyright (c) 2010 Gentics Software GmbH
* aloha-sales@gentics.com
* Licensed unter the terms of http://www.aloha-editor.com/license.html
*/
define(
['aloha', 'aloha/jquery', 'aloha/contenthandlermanager'],
function (Aloha, jQuery, ContentHandlerManager) {
/**
* Function to prepare the c... | PypiClean |
/Flask-Swag-0.1.2.tar.gz/Flask-Swag-0.1.2/flask_swag/resources/swagger-ui/lib/swagger-oauth.js | var appName;
var popupMask;
var popupDialog;
var clientId;
var realm;
var redirect_uri;
var clientSecret;
var scopeSeparator;
var additionalQueryStringParams;
function handleLogin() {
var scopes = [];
var auths = window.swaggerUi.api.authSchemes || window.swaggerUi.api.securityDefinitions;
if(auths) {
var k... | PypiClean |
/Flask-MDBootstrap-3.0.5.tar.gz/Flask-MDBootstrap-3.0.5/flask_mdbootstrap/static/MDB-Pro/js/modules/cards.min.js | !function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... | PypiClean |
/Brian2-2.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/brian2/codegen/statements.py | class Statement:
"""
A single line mathematical statement.
The structure is ``var op expr``.
Parameters
----------
var : str
The left hand side of the statement, the value being written to.
op : str
The operation, can be any of the standard Python operators (including
... | PypiClean |
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/static/crm/js/common/multirange.js | (function() {
"use strict";
var supportsMultiple = self.HTMLInputElement && "valueLow" in HTMLInputElement.prototype;
var descriptor = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value");
self.multirange = function(input) {
if (supportsMultiple || input.classList.contains("multirange")) {
return;... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/localization/th/HelpDialog.js | MathJax.Localization.addTranslation("th","HelpDialog",{version:"2.7.9",isLoaded:true,strings:{Help:"\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E41\u0E25\u0E30\u0E27\u0E34\u0E18\u0E35\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19 MathJax",MathJax:"*MathJax* \u0E40\u0E1B\u0E47\u0E19\u0E04\u0E2... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/qt/paytoedit.py |
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qrtextedit import ScanQRTextEdit
import re
from decimal import Decimal
from electrum_vtc import bitcoin
import util
RE_ADDRESS = '[1-9A-HJ-NP-Za-km-z]{26,}'
RE_ALIAS = '(.*?)\s*\<([1-9A-HJ-NP-Za-km-z]{26,})\>'
frozen_style = "QWidget { background-color:none... | PypiClean |
/IP_Connector-0.0.2.tar.gz/IP_Connector-0.0.2/IP_Connector/NetworkSupervisor.py | import time
import os
from datetime import datetime
from IP_Connector.PrintRecord import print_record
from IP_Connector.automatic_email_sender.Sender import Sender
from IP_Connector.automatic_email_sender.Sender import valid_email
class NetworkSupervisor(object):
def __init__(self, ip_connector):
self._ip... | PypiClean |
/Eskapade_Spark-1.0.0-py3-none-any.whl/eskapadespark/links/spark_df_converter.py | import pyspark
from eskapade import Link, StatusCode, process_manager, DataStore
from eskapadespark.helpers import apply_transform_funcs, process_transform_funcs
OUTPUT_FORMATS = ('df', 'rdd', 'list', 'pd')
class SparkDfConverter(Link):
"""Link to convert a Spark data frame into a different format.
A data ... | PypiClean |
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/core/static/mezzanine/tinymce/langs/da.js | tinymce.addI18n('da',{
"Cut": "Klip",
"Heading 5": "Overskrift 5",
"Header 2": "Overskrift 2",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Din browser underst\u00f8tter ikke direkte adgang til clipboard. Benyt Ctrl+X\/C\/ keybord shortcuts i s... | PypiClean |
/EmbyPy-0.6.6.4.tar.gz/EmbyPy-0.6.6.4/docs/embypy.objects.EmbyObject.rst | EmbyPy EmbyObject
=====================
.. automodule:: embypy.objects
:show-inheritance:
.. autosummary::
EmbyObject
EmbyObject.id
EmbyObject.name
EmbyObject.path
EmbyObject.type
EmbyObject.media_type
EmbyObject.genres
EmbyObject.tags
EmbyObject.overview
EmbyObject.primary_image_url
EmbyObjec... | PypiClean |
/KratosParticleMechanicsApplication-9.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/ParticleMechanicsApplication/particle_mechanics_analysis.py | import KratosMultiphysics
# Importing the base class
from KratosMultiphysics.analysis_stage import AnalysisStage
from KratosMultiphysics.ParticleMechanicsApplication.python_solvers_wrapper_particle import CreateSolver
class ParticleMechanicsAnalysis(AnalysisStage):
"""
This class is the main-script of the Par... | PypiClean |
/DeSide-1.0.2.tar.gz/DeSide-1.0.2/deside/workflow/workflow.py | import os
import numpy as np
import pandas as pd
import warnings
from ..decon_cf import DeSide
from ..utility import check_dir, print_msg, set_fig_style
from ..utility.read_file import ReadH5AD
from ..utility.compare import mean_exp_of_marker_gene, read_and_merge_result, cal_gene_signature_score
from ..plot import (com... | PypiClean |
/2ppy-0.4.0-py3-none-any.whl/tuprolog/solve/exception/error/domain/__init__.py | from typing import Iterable, Union
from tuprolog import logger
# noinspection PyUnresolvedReferences
import jpype.imports
# noinspection PyUnresolvedReferences
import it.unibo.tuprolog.solve.exception.error as errors
from tuprolog.core import Term
from tuprolog.solve import ExecutionContext, Signature
DomainError = er... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/utils/dates.py | "Commonly-used date structures"
from django.utils.translation import gettext_lazy as _
from django.utils.translation import pgettext_lazy
WEEKDAYS = {
0: _("Monday"),
1: _("Tuesday"),
2: _("Wednesday"),
3: _("Thursday"),
4: _("Friday"),
5: _("Saturday"),
6: _("Sunday"),
}
WEEKDAYS_ABBR = {... | PypiClean |
/FeinCMS-23.8.0.tar.gz/FeinCMS-23.8.0/feincms/static/feincms/jquery-ui-1.10.3.custom.min.js | (function(e,t){function i(t,i){var s,n,r,o=t.nodeName.toLowerCase();return"area"===o?(s=t.parentNode,n=s.name,t.href&&n&&"map"===s.nodeName.toLowerCase()?(r=e("img[usemap=#"+n+"]")[0],!!r&&a(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&a(t)}function a(t){return e.expr.filters... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/jquery/ui/minified/jquery.ui.slider.min.js | (function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var b=this,a=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;thi... | PypiClean |
/MicroView-0.9.5.tar.gz/MicroView-0.9.5/microview/file_finder.py | from dataclasses import dataclass
from itertools import chain
from pathlib import Path
from typing import Dict, List, Tuple
from frictionless import checks, validate
from pandas import read_csv
from microview.schemas import contrast_table_schema, kaiju_report_schema
@dataclass
class Sample:
report: Path
rep... | PypiClean |
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/DeviceAPI/blind_control.py | import traceback
from Homevee.DeviceAPI import rademacher_homepilot
from Homevee.Helper import Logger
from Homevee.Item.Room import Room
from Homevee.Item.Status import *
from Homevee.Utils.Database import Database
from Homevee.Utils.DeviceTypes import *
def set_blinds(user, type, id, new_position, db, check_user=Tr... | PypiClean |
/CudaPyInt-0.0.1.tar.gz/CudaPyInt-0.0.1/doc/source/user/install.rst | .. _install:
Installation
============
Since ``CudaPyInt`` is a pure Python module, it should be pretty easy to install.
Make sure you have `numpy <http://numpy.scipy.org/>`_, `PyCUDA <http://wiki.tiker.net/PyCuda/Installation/Linux/>`_ and the `CUDA SDK <http://numpy.scipy.org/>`_ installed on your system before you... | PypiClean |
/dipex-4.54.5.tar.gz/dipex-4.54.5/integrations/ad_integration/ad_jinja_filters.py | import re
import sys
from functools import partial
from typing import Iterator
from typing import List
from typing import Match
from typing import Optional
from jinja2 import contextfilter
from more_itertools import first
from unidecode import unidecode
def first_address_of_type(value: List[dict], address_type_uuid:... | PypiClean |
/DataViz_PlotChecker-1.1.1-py3-none-any.whl/project5_plt_checker.py | import pkgutil
from collections import OrderedDict
import dill as pickle
from import_nb import import_nb
from plt_checker.core import PlotTests
from plt_checker.atomic_methods import *
# Global variables
nb_env: dict = None # capture notebook environment
plt_tests: PlotTests = None # Test cases for the plot checke... | PypiClean |
/Aruna-Python-API-1.1.0rc6.tar.gz/Aruna-Python-API-1.1.0rc6/aruna/api/internal/v1/proxy_pb2_grpc.py | """Client and server classes corresponding to protobuf-defined services."""
import grpc
from aruna.api.internal.v1 import proxy_pb2 as aruna_dot_api_dot_internal_dot_v1_dot_proxy__pb2
class InternalProxyServiceStub(object):
"""Definition for the internal API that is used to communicate with all internal
comp... | PypiClean |
/Confluence-Task-Crawler-0.0.6.tar.gz/Confluence-Task-Crawler-0.0.6/README.md | # Why?
Chances are you read this because you have the same problem like many other projects around the globe: Confluence has
become not only your knowledge management tool, but you also use it for task management. Of course there is JIRA for
developers and teams, but Tasks in Confluence are used for all those other fol... | PypiClean |
/ChemGAPP-0.0.9-py3-none-any.whl/ChemGAPP_Package/ChemGAPP_Big/Mann_Whitney_Plate_Level.py |
# In[ ]:
import argparse
import pandas as pd
import numpy as np
import scipy.stats as stats
def get_options():
parser = argparse.ArgumentParser(description="Compares the distributions of the colony sizes of replicate plates of the same condition and determines if replicate plates have the same distribution based ... | PypiClean |
/BlueWhale3-Educational-0.4.1.tar.gz/BlueWhale3-Educational-0.4.1/orangecontrib/educational/widgets/owpolynomialclassification.py | import copy
from colorsys import rgb_to_hsv, hsv_to_rgb
from xml.sax.saxutils import escape
from itertools import chain
import numpy as np
from scipy.interpolate import splprep, splev
from scipy.ndimage.filters import gaussian_filter
from AnyQt.QtCore import Qt, QRectF, QObject, QPointF, QEvent
from AnyQt.QtGui impor... | PypiClean |
/Daarmaan-0.2.2.tar.gz/Daarmaan-0.2.2/daarmaan/server/models.py | import json
from django.db import models
from django.utils.translation import ugettext as _
from django.conf import settings
class Service(models.Model):
"""
Service class represent a web application that use Daarmaan as its
authentication service.
"""
name = models.CharField(_("service"),
... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/fullscreen/plugin.js | (function (domGlobals) {
'use strict';
var Cell = function (initial) {
var value = initial;
var get = function () {
return value;
};
var set = function (v) {
value = v;
};
return {
get: get,
set: set
};
};
var global = tinymce.u... | PypiClean |
/ImageD11-1.9.9.tar.gz/ImageD11-1.9.9/scripts/id11_summarize.py |
from __future__ import print_function
from ImageD11 import opendata
import glob
def getnumerics(d):
ret = {}
for k,v in list(d.items()):
try:
ret[k] = float(v)
except ValueError:
pass
return ret
import sys
class headerfollower:
# Header items we... | PypiClean |
/IAS_ur5-0.0.1-py3-none-any.whl/ur_gym/envs/ur_env.py | import gym
from gym import error, spaces, utils
from gym.utils import seeding
import os
import pybullet as p
import pybullet_data as pd
import math
import numpy as np
import random
class UREnv(gym.Env):
metadata = {'render.modes': ['human']}
def __init__(self):
p.connect(p.GUI)
# 相机位置
... | PypiClean |
/Flask-Authorization-Panda-0.3.tar.gz/Flask-Authorization-Panda-0.3/flask_authorization_panda/basic_auth.py | from functools import wraps
from flask import request, jsonify, current_app
def basic_auth(original_function):
"""
Wrapper. Verify that request.authorization exists and that its
username & password attributes match the application's
config.basic_auth_credentials dict
Args:
original_func... | PypiClean |
/DracoPy-0.0.10.tar.gz/DracoPy-0.0.10/draco/docs/spec/04.00.00.conventions.md | ## Conventions
### Draco File Format
* All Draco encoded mesh files are comprised of four main sections. This first
section is the header. The second section contains the metadata. This section is optional. The third section contains the connectivity data. The fourth section contains the attribute data.
<figure>
<... | PypiClean |
/NeoCompilerModelLoaders-1.0.1.tar.gz/NeoCompilerModelLoaders-1.0.1/src/neo_loader/darknet_model_loader.py | import logging
from tvm import relay
from tvm.relay.testing import darknet
from tvm.error import OpError
from typing import Dict, List
from pathlib import Path
from .abstract_model_loader import AbstractModelLoader
from ._base import GraphIR
logger = logging.getLogger(__name__)
class DarkNetModelLoader(AbstractMode... | PypiClean |
/BobBuildTool-0.23.1.tar.gz/BobBuildTool-0.23.1/doc/manpages/bob-build.rst | .. _manpage-build:
bob-build
=========
.. only:: not man
Name
----
bob-build - Bob release mode build
Synopsis
--------
::
bob build [-h] [--destination DEST] [-j [JOBS]] [-k] [-f] [-n] [-p]
[--without-provided] [-A | --audit] [-b | -B | --normal]
[--clean | --incremental... | PypiClean |
/ChordBook-0.0.12.tar.gz/ChordBook-0.0.12/README.md | ChordBook
=========
A tool to manage books of chords for bands.
Options
-------
* -h, --help show this help message and exit
* -v, --version show version and exit
* -c, --currentdir write to current directory instead of a subdirectory
named after the output format
... | PypiClean |
/LumberMill-0.9.5.7-py3-none-any.whl/lumbermill/LumberMill.py | import getopt
import logging.config
import multiprocessing
import os
import signal
import sys
import time
from collections import OrderedDict
import tornado.ioloop
import yaml
module_dirs = ['input',
'parser',
'modifier',
'misc',
'output',
'w... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/ts4.8/stream/promises.d.ts | declare module 'stream/promises' {
import { FinishedOptions, PipelineSource, PipelineTransform, PipelineDestination, PipelinePromise, PipelineOptions } from 'node:stream';
function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise<void>;... | PypiClean |
/NlpToolkit-InformationRetrieval-1.0.6.tar.gz/NlpToolkit-InformationRetrieval-1.0.6/InformationRetrieval/Document/Document.py | from Corpus.Corpus import Corpus
from Corpus.TurkishSplitter import TurkishSplitter
from InformationRetrieval.Document.DocumentText import DocumentText
from InformationRetrieval.Document.DocumentType import DocumentType
from InformationRetrieval.Index.CategoryNode import CategoryNode
from InformationRetrieval.Index.Ca... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/WidgetSet.js.uncompressed.js | define("dijit/WidgetSet", [
"dojo/_base/array", // array.forEach array.map
"dojo/_base/declare", // declare
"dojo/_base/window", // win.global
"./registry" // to add functions to dijit.registry
], function(array, declare, win, registry){
// module:
// dijit/WidgetSet
// summary:
// Legacy registry code. Ne... | PypiClean |
/MRFI-2.0.0.tar.gz/MRFI-2.0.0/dataset/lenet_cifar.py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as transforms
import torch.utils.data
transform = transforms.Compose(
[transforms.ToTensor(),
transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))])
try:
import os
datapath = os.env... | PypiClean |
/IN-Utility-1.0.1.tar.gz/IN-Utility-1.0.1/IN_utility/script.py | import argparse
import zipfile
import tarfile
import os
# Text Manipulation Functions
def load_file(file_path):
with open(file_path, "r") as file:
return file.read()
def count_word_occurrences(text, target_word):
return text.lower().count(target_word.lower())
def replace_word(text, old_word, new_word... | PypiClean |
/KD_Lib-0.0.32.tar.gz/KD_Lib-0.0.32/KD_Lib/KD/vision/vanilla/vanilla_kd.py | import torch.nn as nn
import torch.nn.functional as F
from KD_Lib.KD.common import BaseClass
class VanillaKD(BaseClass):
"""
Original implementation of Knowledge distillation from the paper "Distilling the
Knowledge in a Neural Network" https://arxiv.org/pdf/1503.02531.pdf
:param teacher_model (torc... | PypiClean |
/DigiCore-1.1.3.tar.gz/DigiCore-1.1.3/alibabacloud_tea_openapi/models.py | from Tea.model import TeaModel
from typing import Dict, Any, BinaryIO
from alibabacloud_credentials.client import Client as CredentialClient
class GlobalParameters(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
queries: Dict[str, str] = None,
):
self.headers = ... | PypiClean |
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/VIII.py |
import numpy as np
from genice2 import CIF
from genice2.cell import cellvectors
import genice2.lattices
desc = {"ref": {"VIII": 'Kuhs 1998'},
"usage": "No options available.",
"brief": "Ice VIII, a hydrogen-ordered counterpart of ice VII.",
"test": ({"args": "",
"options": "--... | PypiClean |
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/public/VAADIN/widgetsets/org.muntiacus.MuntjacWidgetSet/mode/javascript/javascript.js | CodeMirror.defineMode("javascript", function(config, parserConfig) {
var indentUnit = config.indentUnit;
var jsonMode = parserConfig.json;
// Tokenizer
var keywords = function(){
function kw(type) {return {type: type, style: "keyword"};}
var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"... | PypiClean |
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/api_client.py | import json
import atexit
import mimetypes
from multiprocessing.pool import ThreadPool
import io
import os
import re
import typing
from urllib.parse import quote
from urllib3.fields import RequestField
from freeclimb import rest
from freeclimb.configuration import Configuration
from freeclimb.exceptions import ApiTyp... | PypiClean |
/DTMC/spatialModel/Hub/HubSIRV.py | import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from .HubSIR import HubSIR
from Eir.utility import Person, randEvent
from Eir.DTMC.spatialModel.simul_details import Simul_Details
class HubSIRV(HubSIR):
"""
SIRSV compartmental model with the Hub model assumption.
Parameters
... | PypiClean |
/ChadBot4-0.1-py3-none-any.whl/ChadBot/generation/rajat_work/qgen/generator/symsub.py | import string
from itertools import product
import numpy as np
from nltk.corpus import stopwords
from nltk.corpus import wordnet as wn
from tqdm import tqdm
from .base import BaseGenerator
import sys
from ..util.nlp import get_spacy_model
class SymSubGenerator(BaseGenerator):
""" Generate questions via sense-d... | PypiClean |
/DuHast-1.0.7-py3-none-any.whl/duHast/APISamples/UtilBIM360.py |
import System
import clr
import csv
import Utility as util
# get the relative path to the parent folder added to sys path
import sys, os
sys.path.append(os.path.join(os.path.realpath(__file__), os.pardir, os.pardir))
from UI import FileItem as fi
def getBIM360RevitFilesFromFileList(filepathCSV, extension):... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/lang/sl.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['sl']={"editor":"Bogat Urejevalnik Besedila","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Pritisnite ALT 0 za pomoč","browseServer":"Prebrskaj... | PypiClean |
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/minimist/test/bool.js | var parse = require('../');
var test = require('tape');
test('flag boolean default false', function (t) {
var argv = parse(['moo'], {
boolean: ['t', 'verbose'],
default: { verbose: false, t: false }
});
t.deepEqual(argv, {
verbose: false,
t: false,
_: ['moo']
... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/mediawiki_handler/mediawiki_handler.py | from mediawikiapi import MediaWikiAPI
from mindsdb.integrations.handlers.mediawiki_handler.mediawiki_tables import PagesTable
from mindsdb.integrations.libs.api_handler import APIHandler
from mindsdb.integrations.libs.response import (
HandlerStatusResponse as StatusResponse,
)
from mindsdb.utilities import log
f... | PypiClean |
/ConfigTree-0.6.tar.gz/ConfigTree-0.6/configtree/formatter.py | import json
from os import linesep
from pkg_resources import iter_entry_points
from numbers import Number
from .tree import rarefy
from .compat.types import string, chars
from .compat.colabc import Mapping, Sequence
def option(name, **kw):
"""
Decorator that adds ``__options__`` list to formatter and puts pa... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/google/protobuf/any_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_in... | PypiClean |
/FP-SMC-ALS-test1-0.0.1.tar.gz/FP-SMC-ALS-test1-0.0.1/smc/elements/helpers.py | from smc.elements.network import Zone
from smc.administration.system import AdminDomain
from smc.elements.other import LogicalInterface, Location
from smc.api.exceptions import ElementNotFound
from smc.base.collection import Search
def location_helper(name, search_only=False):
"""
Location finder by name. If ... | PypiClean |
/ActivityStream-0.4.0-py3-none-any.whl/activitystream/managers.py | import datetime
import logging
import time
from contextlib import contextmanager
from operator import attrgetter
from . import base
from .storage.base import (
StoredActivity,
ActivityObject,
)
log = logging.getLogger(__name__)
class NodeManager(base.NodeManagerBase):
"""Manages the netw... | PypiClean |
/KiKit-1.3.0-py3-none-any.whl/kikit/substrate.py | from shapely import geometry
from shapely.geometry import (Polygon, MultiPolygon, LineString,
MultiLineString, LinearRing, Point)
from shapely.geometry.collection import GeometryCollection
from shapely.ops import orient, unary_union, split, nearest_points
import shapely
import json
import numpy as np
from kikit.int... | PypiClean |
/edward-1.3.5.tar.gz/edward-1.3.5/README.md | [](http://edwardlib.org)
[](https://travis-ci.org/blei-lab/edward)
[](https://covera... | PypiClean |
/AeroSandbox-4.1.1.tar.gz/AeroSandbox-4.1.1/aerosandbox/library/aerodynamics/inviscid.py | import aerosandbox.numpy as np
def induced_drag(
lift,
span,
dynamic_pressure,
oswalds_efficiency=1,
):
"""
Computes the induced drag associated with a lifting planar wing.
Args:
lift: Lift force [Newtons]
span: Wing span [meters]
dynamic_pressure: ... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/98104.c644a773e73ee5c24142.min.js | "use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[98104],{58369:function(e,t,n){var r=n(87537),i=n.n(r),a=n(23645),o=n.n(a)()(i());o.push([e.id,".pat-datetime-picker__wrapper input[type=date],.pat-datetime-picker__wrapper input[type=time]{position:relative;dis... | PypiClean |
/MambuPy-2.0.0b22.tar.gz/MambuPy-2.0.0b22/mambupy/rest/mambuuser.py | from ..mambugeturl import getusercustominformationurl, getuserurl
from .mambustruct import MambuStruct
from .mamburestutils import MambuStructIterator
mod_urlfunc = getuserurl
class MambuUser(MambuStruct):
"""A User from Mambu.
With the default urlfunc, entid argument must be the ID of the
user you wish... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/plugins/toolbar/prism-toolbar.js | (function(){
if (typeof self === 'undefined' || !self.Prism || !self.document) {
return;
}
var callbacks = [];
var map = {};
var noop = function() {};
Prism.plugins.toolbar = {};
/**
* Register a button callback with the toolbar.
*
* @param {string} key
* @param {Object|Function} opts
*/
var regi... | PypiClean |
/C-Telethon-1.28.5.tar.gz/C-Telethon-1.28.5/telethon/extensions/html.py | import struct
from collections import deque
from html import escape
from html.parser import HTMLParser
from typing import Iterable, Optional, Tuple, List
from .. import helpers
from ..tl.types import (
MessageEntityBold, MessageEntityItalic, MessageEntityCode,
MessageEntityPre, MessageEntityEmail, MessageEntit... | PypiClean |
/Eryn-1.1.4.tar.gz/Eryn-1.1.4/eryn/moves/combine.py |
from ..state import BranchSupplimental
from . import Move
import numpy as np
import tqdm
__all__ = ["CombineMove"]
class CombineMove(Move):
"""Move that combines specific moves in order.
Args:
moves (list): List of moves, similar to how ``moves`` is submitted
to :class:`eryn.ensemble.En... | PypiClean |
/FeinCMS-23.8.0.tar.gz/FeinCMS-23.8.0/feincms/module/medialibrary/fields.py |
from django.contrib.admin.widgets import AdminFileWidget, ForeignKeyRawIdWidget
from django.db import models
from django.utils.html import escape, mark_safe
from django.utils.translation import gettext_lazy as _
from feincms.admin.item_editor import FeinCMSInline
from feincms.utils import shorten_string
from .model... | PypiClean |
/Mothership-0.0.35.zip/Mothership-0.0.35/mothership/xen/__init__.py | import re
import sys
import time
import socket
import XenAPI
import mothership
import mothership.validate
from pprint import pprint
class XenServerAPIError(Exception):
pass
class XenServerAPI:
def __init__(self, cfg, host, user, passwd):
try:
unqdn = mothership.validate.v_get_fqn(cfg, host... | PypiClean |
/MyoSuite-2.0.1-py3-none-any.whl/myosuite/utils/tensor_utils.py | import operator
import numpy as np
def flatten_tensors(tensors):
if len(tensors) > 0:
return np.concatenate([np.reshape(x, [-1]) for x in tensors])
else:
return np.asarray([])
def unflatten_tensors(flattened, tensor_shapes):
tensor_sizes = list(map(np.prod, tensor_shapes))
indices =... | PypiClean |
/GraphSTAM-0.1.5-py3-none-any.whl/graphstam/graphstam.py |
import json
import pandas as pd
import numpy as np
import gc
import copy
# show available model configurations
model_types = {'SimpleGraphSage': "A Basic GNN Model which uses GraphSAGE layers directly on graph structured data (as torch_geometric.data.HeteroData object).\
This model derives basic rolling statistics t... | PypiClean |
/Checks-0.2.tar.gz/Checks-0.2/Checks.py | from inspect import signature
import sys, traceback
"""
This framework using annotations, it is for adding
in an easy way functionality to function,
in spasipc for checking conditions on an argument of
the function and raise an error with detail,
if the condition is not vaild
Example to u... | PypiClean |
/FastCNN2-1.23.425.1716.tar.gz/FastCNN2-1.23.425.1716/FastCNN/prx/PathProxy.py | import os
import sys
def getRoot(sec=[r"C:/"]):
for r in sec:
if os.path.exists(r):
return r
def getDataPath():
rtn = r"{}FastCNN/Data".format(getRoot([r"d:/","c:/"]))
if not os.path.exists(rtn):
rtn = r"{}FastCNN/Data".format(getRoot([r"e:/",r"d:/","c:/"]))
return rtn
app... | PypiClean |
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/data/analyzer/android/analyzer.py |
import os
import logging
import pkgutil
import shutil
import sys
import xmlrpclib
import time
from lib.core.packages import choose_package
from lib.common.exceptions import CuckooError, CuckooPackageError
from lib.common.abstracts import Package, Auxiliary
from lib.common.constants import PATHS
from lib.core.config i... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.9.1.rst | ===========================
Djblets 0.9.1 Release Notes
===========================
**Release date**: February 21, 2016
Compatibility
=============
If you use django-storages_, make sure you're using a recent version (we
recommend 1.1.8 or newer), as 0.9 exposed a bug in earlier releases, which
we have recently dia... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/vector/basisdependent.py | from __future__ import annotations
import typing
from ..core import Add, Expr, Integer, Mul, count_ops, diff
from ..core.assumptions import StdFactKB
from ..core.decorators import _sympifyit, call_highest_priority
from ..integrals import Integral
from ..polys import factor
from ..simplify import simplify, trigsimp
... | PypiClean |
/FlowCal-1.3.0.tar.gz/FlowCal-1.3.0/README.rst | ===========
``FlowCal``
===========
``FlowCal`` is a library for processing and analyzing flow cytometry data in Python.
It features:
* Extraction of Flow Cytometry Standard (FCS) files into numpy array-like structures
* Traditional and non-standard gating, including automatic density-based two-dimensional gating.
* T... | PypiClean |
/ElasticMock-1.8.1.tar.gz/ElasticMock-1.8.1/README.md | # ElasticMock
Python Elasticsearch Mock for test purposes
[](https://travis-ci.org/vrcmarcos/elasticmock) [](https://coveralls.io/github/vrcm... | PypiClean |
/Flask-AppBuilder-redirect-2.1.13.tar.gz/Flask-AppBuilder-redirect-2.1.13/flask_appbuilder/security/api.py | from flask import request
from flask_jwt_extended import (
create_access_token,
create_refresh_token,
get_jwt_identity,
jwt_refresh_token_required,
)
from ..api import BaseApi, safe
from ..const import (
API_SECURITY_ACCESS_TOKEN_KEY,
API_SECURITY_PASSWORD_KEY,
API_SECURITY_PROVIDER_DB,
... | PypiClean |
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/jose/rfc7516/models.py | import os
from abc import ABCMeta
class JWEAlgorithmBase(object, metaclass=ABCMeta):
"""Base interface for all JWE algorithms.
"""
EXTRA_HEADERS = None
name = None
description = None
algorithm_type = 'JWE'
algorithm_location = 'alg'
def prepare_key(self, raw_data):
raise NotI... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/codemirror/js/beautify.min.js | (function(){function n(n,t){"use strict";var r=new i(n,t);return r.beautify()}function i(n,i){"use strict";function ui(n,t){var i=0;return n&&(i=n.indentation_level,!st()&&n.line_indent_level>i&&(i=n.line_indent_level)),{mode:t,parent:n,last_text:n?n.last_text:"",last_word:n?n.last_word:"",declaration_statement:!1,decl... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/tools/testing/SearchModes.py | import hashlib
import os
import sys
from nuitka.utils.FileOperations import (
areSamePaths,
getFileContents,
putTextFileContents,
)
class SearchModeBase(object):
def __init__(self):
self.may_fail = []
def consider(self, dirname, filename):
# Virtual method, pylint: disable=no-sel... | PypiClean |
/ActionML-0.0.10.tar.gz/ActionML-0.0.10/actionml/__init__.py | __version__ = "0.0.10"
# import packages
import re
try:
import httplib
except ImportError:
# pylint: disable=F0401
# http is a Python3 module, replacing httplib
from http import client as httplib
try:
from urllib import quote
except ImportError:
# pylint: disable=F0401,E0611
from urllib.p... | PypiClean |
/Flask-Material-0.1.1.tar.gz/Flask-Material-0.1.1/README.md | ===============
Flask-Materialize
===============
[](https://gitter.im/HellerCommaA/flask-materialize?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[
parser = argparse.ArgumentParser(description="Python script using Redfish API to get iDRAC Sy... | PypiClean |
/CoAPy-4.0.2.tar.gz/CoAPy-4.0.2/coapthon/reverse_proxy/coap.py | import logging
import logging.config
import os
import random
import re
import socket
import threading
import xml.etree.ElementTree as ElementTree
import struct
from coapclient import HelperClient
from coapthon.layers.forwardLayer import ForwardLayer
from coapthon.messages.message import Message
from coapthon import de... | PypiClean |
/Flask-Pushrod-0.3.tar.gz/Flask-Pushrod-0.3/README.rst | Flask-Pushrod
=============
.. image:: https://secure.travis-ci.org/UYSio/Flask-Pushrod.png
:alt: Build Status
:target: http://travis-ci.org/UYSio/Flask-Pushrod
Flask-Pushrod is a simple helper for Flask for doing content negotiation (primarily for running the API and the website on the same code-base, with as ... | PypiClean |
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/category_array.py | import re # noqa: F401
import sys # noqa: F401
from firefly_iii_client.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,... | PypiClean |
/DragonPyEmulator-0.9.0-py3-none-any.whl/dragonpy/components/memory.py | import array
import logging
log = logging.getLogger(__name__)
class Memory:
def __init__(self, cfg, read_bus_request_queue=None, read_bus_response_queue=None, write_bus_queue=None):
self.cfg = cfg
self.read_bus_request_queue = read_bus_request_queue
self.read_bus_response_queue = read_bu... | PypiClean |
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/opensearch/formats/base.py |
import uuid
from django.http import QueryDict
from lxml.builder import ElementMaker
try:
from django.core.urlresolvers import reverse, NoReverseMatch
except ImportError:
from django.urls import reverse, NoReverseMatch
from django.conf import settings
from django.utils.module_loading import import_string
fro... | PypiClean |
/BeijingTomorrow-0.1.0.tar.gz/BeijingTomorrow-0.1.0/README.txt | BEIJING TOMORROW
----------------
By Tavis Barr, tavisbarr@gmail.com, Copyright 2016
Licensed under the Gnu Public License V. 2.0
Contact me about other licensing arrangements
This program uses satellite data from the NASA MODIS program, and pollution
data from the US embassy in Beijing to develop a predictor of the... | PypiClean |
/DenseNet-armhzjz-0.1.2.tar.gz/DenseNet-armhzjz-0.1.2/DenseNet/Layers.py | import torch
import torch.nn as nn
""" Pooling layers. The concatenation operation used in
Eq. (2) is not viable when the size of feature-maps changes.
However, an essential part of convolutional networks is
down-sampling layers that change the size of feature-maps.
To facilitate down-sampling in our... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/readable-stream/lib/_stream_transform.js |
// a transform stream is a readable/writable stream where you do
// something with the data. Sometimes it's called a "filter",
// but that's not a great name for it, since that implies a thing where
// some bits pass through, and others are simply ignored. (That would
// be a valid example of a transform, of course.... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.