id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/CustomPipeline-0.0.3-py3-none-any.whl/rpcore/native/__init__.py |
# This file includes all modules from the native module.
from __future__ import print_function
import sys
from os.path import dirname, realpath
from direct.stdpy.file import join, isfile
from rpcore.rpobject import RPObject
# Store a global flag, indicating whether the C++ modules were loaded or the python
# implem... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/combinatorics/prufer.py | from collections import defaultdict
from ..core import Basic, Tuple, sympify
from ..core.compatibility import as_int, iterable
from ..utilities import flatten
class Prufer(Basic):
"""
The Prufer correspondence is an algorithm that describes the
bijection between labeled trees and the Prufer code. A Prufe... | PypiClean |
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/tutorial/readme.md | # Tutorial
<details markdown>
<br>
<summary>Welcome to this Tutorial</summary>
Use this Tutorial for a quick tour of API Logic Server
- **Instant** project creation from a database
- **Fully customizable,** using both standard code (Flask/SQLAlchemy) in *your* IDE, and
- **Logic** -- multi-table derivation and co... | PypiClean |
/BenchExec-3.17.tar.gz/BenchExec-3.17/benchexec/tools/crux.py |
import benchexec.tools.template
import benchexec.result as result
from benchexec.tools.sv_benchmarks_util import get_data_model_from_task, ILP32, LP64
class Tool(benchexec.tools.template.BaseTool2):
"""
Tool info for Crux (https://crux.galois.com/).
"""
REQUIRED_PATHS = ["."]
def executable(sel... | PypiClean |
/Aj_Zsl_nlu-4.2.0-py3-none-any.whl/nlu/pipe/viz/streamlit_viz/viz_building_blocks/ner.py | from nlu.discovery import Discoverer
from typing import List, Optional, Dict
import streamlit as st
from nlu.pipe.viz.streamlit_viz.streamlit_utils_OS import StreamlitUtilsOS
from nlu.pipe.viz.streamlit_viz.gen_streamlit_code import get_code_for_viz
from nlu.pipe.viz.streamlit_viz.styles import _set_block_container_sty... | PypiClean |
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/pylib/utils/reraiser_thread.py | import logging
import sys
import threading
import time
import traceback
import watchdog_timer
class TimeoutError(Exception):
"""Module-specific timeout exception."""
pass
def LogThreadStack(thread):
"""Log the stack for the given thread.
Args:
thread: a threading.Thread instance.
"""
stack = sys._... | PypiClean |
/CAMELS_library-0.3.tar.gz/CAMELS_library-0.3/scripts/GAN/architecture.py | import torch
import torch.nn as nn
def weights_init(m):
"""custom weights initialization
"""
classname = m.__class__.__name__
if classname.find('Conv') != -1:
m.weight.data.normal_(0.0, 0.02)
elif classname.find('BatchNorm') != -1:
m.weight.data.normal_(1.0, 0.02)
m.bias.dat... | PypiClean |
/MMSA-FET-0.4.1.tar.gz/MMSA-FET-0.4.1/src/MSA_FET/single.py | import json
import logging
import os
import pickle
import shutil
import time
from glob import glob
from logging.handlers import RotatingFileHandler
from pathlib import Path
import numpy as np
import torch
from .utils import *
class FeatureExtractionTool(object):
"""
Feature Extraction Tool for Multimodal Se... | PypiClean |
/125softNLP-0.0.1-py3-none-any.whl/pysoftNLP/ner/kashgari/processors/base_processor.py |
# author: BrikerMan
# contact: eliyar917@gmail.com
# blog: https://eliyar.biz
# file: base_processor.py
# time: 2019-05-21 11:27
import collections
import logging
import operator
from typing import List, Optional, Union, Dict, Any
import numpy as np
from tensorflow.python.keras.preprocessing.sequence import pad_seq... | PypiClean |
/AuthKit-0.4.5.tar.gz/AuthKit-0.4.5/docs/scripts/shBrushPhp.js | dp.sh.Brushes.Php = function()
{
var funcs = 'abs acos acosh addcslashes addslashes ' +
'array_change_key_case array_chunk array_combine array_count_values array_diff '+
'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
'array_filter array_flip array_intersect array_inters... | PypiClean |
/Geraldo-0.4.17.tar.gz/Geraldo-0.4.17/geraldo/base.py | import copy, types, new
try:
set
except NameError:
from sets import Set as set # Python 2.3 fallback
from utils import calculate_size, get_attr_value, landscape, format_date, memoize,\
BAND_WIDTH, BAND_HEIGHT, CROSS_COLS, CROSS_ROWS, cm, A4, black, TA_LEFT, TA_CENTER,\
TA_RIGHT
from ex... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Format/CSWGetDomain/v2_0_2.js | * @requires OpenLayers/Format/XML.js
* @requires OpenLayers/Format/CSWGetDomain.js
*/
/**
* Class: OpenLayers.Format.CSWGetDomain.v2_0_2
* A format for creating CSWGetDomain v2.0.2 transactions.
* Create a new instance with the
* <OpenLayers.Format.CSWGetDomain.v2_0_2> constructor.
*
* Inherits f... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/eval/image.py | import functools
from operator import itemgetter
from typing import List, Optional, Tuple
import numpy
import PIL
import PIL.Image
from mathics.builtin.base import String
from mathics.core.atoms import Rational
from mathics.core.convert.python import from_python
from mathics.core.evaluation import Evaluation
from mat... | PypiClean |
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/apps/klampt_resource.py | from klampt import *
from klampt import vis
from klampt.model import types
from klampt.io import resource,loader
import optparse
import os,glob
import sys
import json
def mkdir_p(path):
import os, errno
try:
os.makedirs(path)
except OSError as exc: # Python >2.5
if exc.errno == errno.EEXIST... | PypiClean |
/DLMS_SPODES-0.40.11.tar.gz/DLMS_SPODES-0.40.11/src/DLMS_SPODES/Values/EN/relation_to_obis_names.py | UNKNOWN = "Unknown of class name"
FOR = "for"
BILLING_PERIOD = "For billing period"
# DLMS UA 1000-1 Ed 14 7.3.2 Value group B Table 56
INSTANCE = "instance"
CHANNEL = "channel"
UTILITY_SPECIFIC = "utility specific code"
MANUFACTURER_SPECIFIC = "manufacturer specific code"
RESERVED = "reserved"
OVER_VOLTAGE_COUNTER =... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-abap.js | ace.define("ace/mode/abap_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var AbapHighlightRules = function(... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/lang/functional/array.js.uncompressed.js | define("dojox/lang/functional/array", ["dojo/_base/kernel", "dojo/_base/lang", "dojo/_base/array", "dojo/_base/window", "./lambda"],
function(dojo, lang, arr, win, df){
// This module adds high-level functions and related constructs:
// - array-processing functions similar to standard JS functions
// Notes:
// - th... | PypiClean |
/NetworkSniffer-0.0.3.tar.gz/NetworkSniffer-0.0.3/README.md | 
# NetworkSniffer
## Description
This module sniffs network communications without any requirements (without scapy/npcap/winpcap).
## Requirements
This package require:
- python3
- python3 ... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/michelson.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def michelson(path):
"""Michelson's Determinations of the Velocity of Light
The data frame `Mi... | PypiClean |
/Happypanda-1.1.zip/Happypanda-1.1/happypanda/executors.py | import logging, uuid, os
from concurrent import futures
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QImage, QPainter, QBrush, QPen
from happypanda.database import db_constants
from happypanda import utils
from happypanda import app_constants
log = logging.getLogger(__name__)
log_i = log.info
log_d = log.deb... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/code_generation/templates/CodeTemplatesCoroutines.py | template_coroutine_object_maker = """\
static PyObject *%(coroutine_maker_identifier)s(%(coroutine_creation_args)s);
"""
template_coroutine_object_body = """
#if %(has_heap_declaration)s
struct %(function_identifier)s_locals {
%(function_local_types)s
};
#endif
static PyObject *%(function_identifier)s_context(struct ... | PypiClean |
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct76.py | pairs="""
176 436
47 401
151 170
442 222
120 172
252 449
277 418
331 307
62 22
364 3
199 276
272 230
18 254
12 224
402 74
202 301
104 134
166 54
135 168
428 287
15 318
403 163
359 295
175 200
51 392
133 8
372 98
316 142
148 318
421 97
446 313
193 415
453 287
454 288
303 153
440 454
418 11
66 100
454 43
223 274
377 161
... | PypiClean |
/APA-1.0.0.tar.gz/APA-1.0.0/twit.py |
import tweepy
import datetime
import MySQLdb as mdb
import location as loc
from threading import Thread, BoundedSemaphore
import urllib
from xml.dom import minidom
################# TWITTER AUTHENTIFICATION KEYS #################
CONSUMER_KEY = 'g5xQx67GQgzJCs4aNam1Q'
CONSUMER_SECRET = '4T5y74q6MATeiA13pktZJiyvSSCAu4... | PypiClean |
/DRSlib-DavidRodriguezSoaresCUI-0.8.0.tar.gz/DRSlib-DavidRodriguezSoaresCUI-0.8.0/src/DRSlib/spinner.py | # pylint: disable=broad-except
__doc__ = """
CLI text-based spinning animation
=================================
An exceedingly simplistic progress animation library.
"""
import itertools
import os
import sys
from .str_utils import truncate_str
class MySpinner:
"""My simple spinner, one-function, easy to use... | PypiClean |
/GloboNetworkAPI-0.9.6.tar.gz/GloboNetworkAPI-0.9.6/README.md | # GloboNetworkAPI python client
[](https://globonetworkapi-client-python.readthedocs.io/en/latest/?badge=latest)
This project is the python implementation of a [GloboNetworkAPI](https://github.com/globocom/Glo... | PypiClean |
/Flask_Limiter-3.5.0-py3-none-any.whl/flask_limiter/extension.py | from __future__ import annotations
import dataclasses
import datetime
import itertools
import logging
import time
import traceback
import warnings
import weakref
from collections import defaultdict
from functools import partial, wraps
from types import TracebackType
from typing import Type, overload
import flask
impo... | PypiClean |
/Notable-0.4.2.tar.gz/Notable-0.4.2/notable/static/lib/ace/src-min/mode-csharp.js | define("ace/mode/csharp",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/csharp_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./cs... | PypiClean |
/AZMusicAPI-1.2.8-py3-none-any.whl/MusicAPI/MusicAPI.py | import requests
# AZ Studio版权所有
# 该项目仅供娱乐 请勿用于违法事业 违者与AZ Studio无关
def getmusic(keyword):
#获得指定关键词的歌曲 关键词可为 歌手/歌曲名/专辑名
#keyword:关键词
#返回值说明:正常返回列表 "Error 0":没有结果 "Error 1":用户未输入
headers = {
"Accept": "application/json, text/plain, */*",
"Accept-Encoding": "gzip, deflate, br",
"A... | PypiClean |
/Electrum-Zcash-Random-Fork-3.1.3b5.tar.gz/Electrum-Zcash-Random-Fork-3.1.3b5/lib/x509.py | from . import util
from .util import profiler, bh2u
import ecdsa
import hashlib
# algo OIDs
ALGO_RSA_SHA1 = '1.2.840.113549.1.1.5'
ALGO_RSA_SHA256 = '1.2.840.113549.1.1.11'
ALGO_RSA_SHA384 = '1.2.840.113549.1.1.12'
ALGO_RSA_SHA512 = '1.2.840.113549.1.1.13'
ALGO_ECDSA_SHA256 = '1.2.840.10045.4.3.2'
# prefixes, see htt... | PypiClean |
/Navycut-0.0.5.tar.gz/Navycut-0.0.5/navycut/static/admin/js/app.min.js | function _init(){"use strict";$.AdminLTE.layout={activate:function(){var a=this;a.fix(),a.fixSidebar(),$("body, html, .wrapper").css("height","auto"),$(window,".wrapper").resize(function(){a.fix(),a.fixSidebar()})},fix:function(){$(".layout-boxed > .wrapper").css("overflow","hidden");var a=$(".main-footer").outerHeight... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/api/postgres/postgres_proxy/postgres_packets/errors.py | POSTGRES_ERROR_CODES = {
"CLASS_00": {
"successful_completion": "00000"},
"CLASS_01": {
"warning": "01000",
"dynamic_result_sets_returned": "0100C",
"implicit_zero_bit_padding": "01008",
"null_value_eliminated_in_set_function": "01003",
"privilege_not_granted": "0... | PypiClean |
/Funk-0.5.0.tar.gz/Funk-0.5.0/README.rst | Funk: A mocking framework for Python
====================================
Funk is a mocking framework for Python, influenced heavily by `JMock <http://www.jmock.org/>`_.
Funk helps to test modules in isolation by allowing mock objects to be used in place of "real" objects.
Funk is licensed under the 2-clause BSD licen... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/socialauth/pipeline.py | import json
from django.contrib.auth import get_user_model
from django.db import IntegrityError
from django.http import JsonResponse
from django.shortcuts import render
from django.urls import reverse
from django.utils.translation import gettext as _
from social_core.pipeline.partial import partial
from unidecode impo... | PypiClean |
/BigQuery-Python-1.15.0.tar.gz/BigQuery-Python-1.15.0/bigquery/query_builder.py | from logging import getLogger, NullHandler
logger = getLogger(__name__)
logger.addHandler(NullHandler())
def render_query(dataset, tables, select=None, conditions=None,
groupings=None, having=None, order_by=None, limit=None):
"""Render a query that will run over the given tables using the specif... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/icon.js | module.exports =
/******/ (function (modules) { // webpackBootstrap
/******/ // The module cache
/******/
var installedModules = {};
/******/
/******/ // The require function
/******/
function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in ... | PypiClean |
/GooseMPL-0.14.0.tar.gz/GooseMPL-0.14.0/docs/index.rst |
********
GooseMPL
********
*GooseMPL* provides a style and several style extensions for *matplotlib*,
some custom functions that extend *matplotlib*,
and several examples to make professional plots using *matplotlib*.
To obtain *GooseMPL* one can do one of the following:
1. Using Conda::
conda install -c ... | PypiClean |
/GrandpaDos-0.1.tar.gz/GrandpaDos-0.1/grandpados.py | import argparse
import logging
import random
import socket
import sys
import time
parser = argparse.ArgumentParser(
description="Grandpa, a partial HTTP stress tool for websites"
)
parser.add_argument("host", nargs="?", help="Host to perform stress test on")
parser.add_argument(
"-p", "--port", default=80, hel... | PypiClean |
/ChatSQL-2023.5.30.14.10.9-py3-none-any.whl/chatllm/webui/chatpdf.py |
import streamlit as st
from meutils.pipe import *
from meutils.serving.st_utils import display_pdf, st_chat, set_config
from chatllm.applications.chatpdf import ChatPDF
st.set_page_config(page_title='🔥ChatPDF', layout='wide', initial_sidebar_state='collapsed')
#####################################################... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/angular-touch.js | (function(window, angular, undefined) {'use strict';
/**
* @ngdoc module
* @name ngTouch
* @description
*
* # ngTouch
*
* The `ngTouch` module provides touch events and other helpers for touch-enabled devices.
* The implementation is based on jQuery Mobile touch event handling
* ([jquerymobile.com](http://jqu... | PypiClean |
/MijnSimpel-0.6.tar.gz/MijnSimpel-0.6/README.rst | Mijn Simpel (Python) Client
===========================
Access `mijn.simpel.nl`_ from Python and command line.
.. _mijn.simpel.nl: https://mijn.simpel.nl
Supported API / resources
-------------------------
============================= ===================================
Command Descrip... | PypiClean |
/Flask-WebSub-0.4.tar.gz/Flask-WebSub-0.4/flask_websub/hub/tasks.py | import requests
import base64
import random
from ..utils import get_content, calculate_hmac, request_url, warn, uuid4
from ..errors import NotificationError
__all__ = ('send_change_notification', 'make_request_retrying', 'subscribe',
'unsubscribe')
INVALID_LINK = "The Link header should contain both 'sel... | PypiClean |
/3DeeCellTracker-0.5.2a0-py3-none-any.whl/CellTracker/trackerlite.py | import re
from glob import glob
from pathlib import Path
from typing import List, Tuple
import numpy as np
import scipy
from matplotlib.patches import ConnectionPatch
from numpy import ndarray
from scipy.special import softmax
from scipy.stats import trim_mean
from CellTracker.coord_image_transformer import Coordinat... | PypiClean |
/AADeepLearning-1.0.8.tar.gz/AAdeepLearning-1.0.8/AADeepLearning/layer/batch_normalization.py | import numpy as np
class BatchNormalization:
"""
批归一化
"""
@staticmethod
def init(layer, flow_data_shape, config):
"""
初始化
:param layer: 层,包含该层的权重、偏置项、梯度、前向输入输出缓存、实例化对象等信息
:param flow_data_shape: 流动数据的形状
:param config:配置
:return: 更新后的层, 流动数据的形状
... | PypiClean |
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/classification/simple_tree.py | import ctypes as ct
import numpy as np
from Orange.base import Learner, Model
__all__ = ['SimpleTreeLearner']
from . import _simple_tree
_tree = ct.cdll.LoadLibrary(_simple_tree.__file__)
DiscreteNode = 0
ContinuousNode = 1
PredictorNode = 2
Classification = 0
Regression = 1
IntVar = 0
FloatVar = 1
c_int_p = ct.PO... | PypiClean |
/Num_CFS_Cluster-0.5.3.tar.gz/Num_CFS_Cluster-0.5.3/Numerical_CFS/ActionGraph.py | from .SymEngineFast import *
from . import Diag_Schar
import symengine as si
from . import PyxSchar
from pyx import *
import numpy as np
import os
'''
I wrote this programm to plot the Action against one variable of choice.
Here it's the impuls, it's either K1 or K2.
Maybe one next step would be to generalize this prog... | PypiClean |
/DB12-1.0.4.tar.gz/DB12-1.0.4/README.md | # DB12
DIRAC benchmark 2012 is a really quick benchmark, originally developed by Ricardo Graciani (https://github.com/graciani)
that uses wrapper functions by Andrew McNab (https://github.com/Andrew-McNab-UK) to run multiple copies in parallel.
Imane Iraoui (https://github.com/ImanIra0ui/) ported it to py3 and added m... | PypiClean |
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/idl/idl.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... | PypiClean |
/FoneAstra-3.0.1.tar.gz/FoneAstra-3.0.1/fa/transports/base.py | from collections import defaultdict
import logging
from django.conf import settings
from django.utils.importlib import import_module
from fa.apps import FoneAstraApp
logger = logging.getLogger(__name__)
class TransportBase(object):
"""
Base class for all transports. Defines methods that transports must
... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/media/plugin.js | (function () {
'use strict';
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
var __assign = function () {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s)
... | PypiClean |
/Flappy-0.3.7.tar.gz/Flappy-0.3.7/flappy/events/touchevent.py |
from event import Event
from mouseevent import MouseEvent
class TouchEvent(MouseEvent):
TOUCH_BEGIN = "touchBegin"
TOUCH_END = "touchEnd"
TOUCH_MOVE = "touchMove"
TOUCH_OUT = "touchOut"
TOUCH_OVER = "touchOver"
TOUCH_ROLL_OUT = "touchRollOut"
TOUCH_R... | PypiClean |
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/ui/tree_table.py |
import logging
from muntjac.ui.tree \
import ExpandEvent, IExpandListener, CollapseEvent, ICollapseListener, \
COLLAPSE_METHOD, EXPAND_METHOD
from muntjac.ui.treetable.hierarchical_container_ordered_wrapper \
import HierarchicalContainerOrderedWrapper
from muntjac.data.container import IOrdered, IHierar... | PypiClean |
/MooCoderPy_rjmatthews62-0.5.9-py3-none-any.whl/MooCoderPy/connections.py | from configparser import ConfigParser
import os,sys
from tkinter import *
from tkinter import font,simpledialog
import SettingsDialog
class Connections(Toplevel):
inifile:ConfigParser
list:Listbox
connectionList=[]
currentConnection:StringVar
currentLogin:StringVar
currentIndex:int=-1
def ... | PypiClean |
/Automancy-0.5.12.tar.gz/Automancy-0.5.12/automancy/elementals/organisms/table/table_body.py | from typing import List
from automancy.core import Elemental
from .table_row import TableRow
class TableBody(Elemental):
""" Object that represents the body of a table. Includes a reference to the names of the columns """
def __init__(self, locator, human_name, system_name, parent_locator='/ancestor::table[... | PypiClean |
/MultiBottle-0.1.3.tar.gz/MultiBottle-0.1.3/README.rst | Multi-App Sites With Bottle
===========================
The Perfect Framework?
-----------------------
Bottlepy is a perfect framework for a simple website, but more debatable is the choice of bottlepy for more complex multi app sites.
The mainstream current wisdom is that for a more complex website, django is the p... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/jquery/ui/jquery.ui.datepicker.js | (function( $, undefined ) {
$.extend($.ui, { datepicker: { version: "1.8.10" } });
var PROP_NAME = 'datepicker';
var dpuuid = new Date().getTime();
/* Date picker manager.
Use the singleton instance of this class, $.datepicker, to interact with the date picker.
Settings for (groups of) date pickers are maintai... | PypiClean |
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Export/WiresharkDissector/all.py |
#+---------------------------------------------------------------------------+
#| 01001110 01100101 01110100 01111010 01101111 01100010 |
#| |
#| Netzob : Inferring communication protocols |
#+-... | PypiClean |
/LibRPG-0.4.zip/LibRPG-0.4/librpg/docs/reference/source/index.rst | .. LibRPG documentation master file, created by
sphinx-quickstart on Sat Aug 15 23:50:39 2009.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
LibRPG documentation
====================
A framework based on Pygame/Python for developing tile b... | PypiClean |
/3ETool-0.8.3.tar.gz/3ETool-0.8.3/EEETools/BlockSubClasses/compressor.py | from EEETools.MainModules import Block
from EEETools.MainModules.support_blocks import Drawer
import xml.etree.ElementTree as ETree
from EEETools import costants
class Compressor(Block):
def __init__(self, inputID, main_class):
super().__init__(inputID, main_class)
self.type = "compressor"
... | PypiClean |
/AIConf-1.1.7-py3-none-any.whl/aiconf/construct.py | import logging
import logging.config
from collections import Iterable, Mapping
from copy import deepcopy
from typing import List, Union, Type, TypeVar
from pyhocon import ConfigTree
from aiconf.aiconf import format_config
from aiconf.exceptions import MalformattedConfigException
U = TypeVar("U")
def load_class(cla... | PypiClean |
/citus-0.0.3-py3-none-any.whl/citus/config.py | import errno
import os
import types
import typing as t
from werkzeug.utils import import_string
class ConfigAttribute:
"""Makes an attribute forward to the config"""
def __init__(self, name: str, get_converter: t.Optional[t.Callable] = None) -> None:
self.__name__ = name
self.get_converter =... | PypiClean |
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/models/center_net_resnet_feature_extractor.py | import tensorflow.compat.v1 as tf
from object_detection.meta_architectures.center_net_meta_arch import CenterNetFeatureExtractor
class CenterNetResnetFeatureExtractor(CenterNetFeatureExtractor):
"""Resnet v2 base feature extractor for the CenterNet model."""
def __init__(self, resnet_type, channel_means=(0., 0.... | PypiClean |
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/data/detection/voc/voc.py |
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 22/03/2020
"""
from pathlib import Path
from typing import Tuple
from xml.etree import ElementTree
import numpy
from PIL import Image
__all__ = ["VOCDataset"]
from draugr.torch_utilities import NamedTensorTuple
from draugr.num... | PypiClean |
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/directory/audit/signins/signin.py | from office365.directory.audit.signins.location import SignInLocation
from office365.directory.audit.signins.status import SignInStatus
from office365.entity import Entity
from office365.intune.devices.detail import DeviceDetail
class SignIn(Entity):
"""Details user and application sign-in activity for a tenant (... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcommon/controller/basecontrollers.py | import traceback
import weakref
from imswitch.imcommon.framework import SignalInterface
from imswitch.imcommon.model import initLogger
class MainController:
def closeEvent(self):
pass
class WidgetController(SignalInterface):
""" Superclass for all WidgetControllers. """
def __init__(self, widg... | PypiClean |
/ChromePasswordsStealer-1.0.2.tar.gz/ChromePasswordsStealer-1.0.2/README.md | 
# ChromePasswordsStealer
## Description
This module steals chrome and chromium passwords on Windows.
## Requirements
This package require:
- python3
- python3 Stand... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Warnings.py | __revision__ = "src/engine/SCons/Warnings.py 2014/07/05 09:42:21 garyo"
import sys
import SCons.Errors
class Warning(SCons.Errors.UserError):
pass
class WarningOnByDefault(Warning):
pass
# NOTE: If you add a new warning class, add it to the man page, too!
class TargetNotBuiltWarning(Warning): # Should ... | PypiClean |
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/baselib/expect/Expect.py | import os
import subprocess
import errno
import time
import sys
from JumpScale import j
PIPE = subprocess.PIPE
if subprocess.mswindows:
from win32file import ReadFile, WriteFile
from win32pipe import PeekNamedPipe
import msvcrt
else:
import select
import fcntl
if sys.platform.startswith('lin... | PypiClean |
/CartiMorph_nnUNet-1.7.14.tar.gz/CartiMorph_nnUNet-1.7.14/CartiMorph_nnUNet/evaluation/model_selection/ensemble.py | import shutil
from multiprocessing.pool import Pool
import numpy as np
from batchgenerators.utilities.file_and_folder_operations import *
from CartiMorph_nnUNet.configuration import default_num_threads
from CartiMorph_nnUNet.evaluation.evaluator import aggregate_scores
from CartiMorph_nnUNet.inference.segmentation_exp... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/_editor/selection.js | define("dijit/_editor/selection",["dojo/dom","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window",".."],function(_1,_2,_3,_4,_5){
_2.getObject("_editor.selection",true,_5);
_2.mixin(_5._editor.selection,{getType:function(){
if(_3("ie")<9){
return _4.doc.selection.type.toLowerCase();
}else{
var _6="text";
var _7;
tr... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/data/ItemFileReadStore.js.uncompressed.js | define("dojo/data/ItemFileReadStore", ["../_base/kernel", "../_base/lang", "../_base/declare", "../_base/array", "../_base/xhr",
"../Evented", "../_base/window", "./util/filter", "./util/simpleFetch", "../date/stamp"
], function(kernel, lang, declare, array, xhr, Evented, window, filterUtil, simpleFetch, dateStamp) {... | PypiClean |
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/transforms/__init__.py | import re
from typing import Any, Dict, Generator, List, Tuple
from docutils import nodes
from docutils.nodes import Element, Node, Text
from docutils.transforms import Transform, Transformer
from docutils.transforms.parts import ContentsFilter
from docutils.transforms.universal import SmartQuotes
from docutils.utils ... | PypiClean |
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/a11y/semantic-enrich.js | !function(r){var n={};function a(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,a),e.l=!0,e.exports}a.m=r,a.c=n,a.d=function(t,e,r){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... | PypiClean |
/Finance-Seleya-1.2.3.tar.gz/Finance-Seleya-1.2.3/seleya/__init__.py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import warnings, requests, os, pdb
from .version import __version__
#defaul_url = 'https://ultronsandbox.oss-cn-hangzhou.aliyuncs.com/version/seleya.json'
default_url = 'https://seleya.blob.core.windo... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/necks/yolox_pafpn.py | import math
import torch
import torch.nn as nn
from mmcv.cnn import ConvModule, DepthwiseSeparableConvModule
from mmcv.runner import BaseModule
from ..builder import NECKS
from ..utils import CSPLayer
@NECKS.register_module()
class YOLOXPAFPN(BaseModule):
"""Path Aggregation Network used in YOLOX.
Args:
... | PypiClean |
/ComponentDB-API-3.15.5.tar.gz/ComponentDB-API-3.15.5/cdbApi/api_client.py | from __future__ import absolute_import
import atexit
import datetime
from dateutil.parser import parse
import json
import mimetypes
from multiprocessing.pool import ThreadPool
import os
import re
import tempfile
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import quote
from cd... | PypiClean |
/BayNet-0.3.0.tar.gz/BayNet-0.3.0/README.md | # BayNet
BayNet is a Python library for generating, sampling data from, comparing, and visualising Bayesian Networks.
## Installation
```bash
pip install BayNet
```
## Usage
### Generate a 10-node Forest Fire DAG, and parameters, then sample data from it:
```python
from baynet import DAG
dag = DAG.generate("forest f... | PypiClean |
/KAVICA-1.3.4.tar.gz/KAVICA-1.3.4/kavica/distance_measure.py | import math
import numpy as np
import pandas as pd
from scipy.spatial import distance
from sklearn.metrics.pairwise import euclidean_distances
__all__ = ['check_input_compatible',
'euclidean_distance',
'rbf_kernel',
'mahalanobis',
'mean_mahalanobis']
def check_input_compat... | PypiClean |
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/address/en_CA/__init__.py | import re
from typing import Optional
from faker.providers import ElementsType
from ..en import Provider as AddressProvider
class Provider(AddressProvider):
# Source: https://www.canadapost.ca/tools/pg/manual/PGaddress-e.asp#1449294
#
# 'W' and 'Z' are valid in non-initial position (easily verified i... | PypiClean |
/Muphoten-0.1.0.tar.gz/Muphoten-0.1.0/muphoten/cli/subtraction.py | import argparse
import warnings
import glob, os
from astropy.io import fits
from muphoten.utils import (load_config, list_files,
make_results_dir,
clean_outputs, getpath, getTel, get_filename)
from muphoten.sanitise import sanitise_fits
from muphoten.subtractio... | PypiClean |
/Forthon-0.10.1.tar.gz/Forthon-0.10.1/source/fvars.py |
from . import cfinterface
# Declare a class to hold fortran variable info
class Fvars:
name = ''
type = ''
dims = []
args = []
dynamic = 0
data = ''
unit = ''
comment = ''
group = ''
attr = ''
limit = ''
dimstring = ''
array = 0
function = 0
derivedtype = 0
... | PypiClean |
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/bootstrap/bigjob2-bootstrap.sh | env
whoami
##### Configuration
# PUT IN PATH OF DIRECTOR THAT script should check for an
# existing BigJob installation
CHECK_BIGJOB_DEFAULT_DIR=/Users/luckow/.bigjob/python
# IF not in system-level configuration BigJob will be installed into relative
# to working directory of BigJob agent.
BIGJOB_RELATIVE_DIRECTORY... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_az-cyrl.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
],
"DAY": [
"\u0431\u0430\u0437\u... | PypiClean |
/ORCID-Hub-4.16.6.tar.gz/ORCID-Hub-4.16.6/docs/development_env.rst | .. _development_env:
#######################
Development Environment
#######################
Minimal runnig ORCID Hub (assuming you have created and activated Python 3.6 virtual environment):
.. code-block:: bash
virtualenv -p python3.6 venv
. ./venv/bin/activate
pip install -U 'orcid-hub[dev]'
orcidhub... | PypiClean |
/Melodie-0.7.0-cp38-cp38-win_amd64.whl/MelodieInfra/parallel/parallel_worker.py | import argparse
import base64
import importlib
import json
import sys
import time
import rpyc
from typing import Dict, Tuple, Any, Type, Union, TYPE_CHECKING
import cloudpickle
if TYPE_CHECKING:
from Melodie import Calibrator, Trainer, Scenario, Model
parser = argparse.ArgumentParser()
parser.add_argument("--cor... | PypiClean |
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/sre/mathmaps/nemeth/symbols/latin-mathfonts-script.js | [{"locale":"nemeth"},{"category":"Lu","mappings":{"default":{"default":"⠈⠠⠁"}},"key":"1D49C"},{"category":"Lu","mappings":{"default":{"default":"⠈⠠⠃"}},"key":"212C"},{"category":"Lu","mappings":{"default":{"default":"⠈⠠⠉"}},"key":"1D49E"},{"category":"Lu","mappings":{"default":{"default":"⠈⠠⠙"}},"key":"1D49F"},{"catego... | PypiClean |
/NucleoATAC-0.3.4.tar.gz/NucleoATAC-0.3.4/pyatac/get_pwm.py | import os
import numpy as np
import itertools
from multiprocessing import Pool
import traceback
import pyatac.seq as seq
from pyatac.chunk import ChunkList
from pyatac.bias import PWM
import pyximport
pyximport.install(setup_args={"include_dirs":np.get_include()})
from pyatac.tracks import InsertionTrack
from pyatac.ut... | PypiClean |
/HTMLTestRunner_Python3-0.8.0.tar.gz/HTMLTestRunner_Python3-0.8.0/HTMLTestRunner/HTMLTestRunner.py |
__author__ = "Wai Yip Tung"
__version__ = "0.8.2"
"""
Change History
Version 0.8.2
* Show output inline instead of popup window (Viorel Lupu).
Version in 0.8.1
* Validated XHTML (Wolfgang Borgert).
* Added description of test classes and test cases.
Version in 0.8.0
* Define Template_mixin class for customization... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/_base/json.js.uncompressed.js | define("dojo/_base/json", ["./kernel", "../json"], function(dojo, json){
// module:
// dojo/_base/json
// summary:
// This module defines the dojo JSON API.
dojo.fromJson = function(/*String*/ js){
// summary:
// Parses a JavaScript expression and returns a JavaScript value.
// description:
// Thro... | PypiClean |
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Fuzzing/all.py |
#+---------------------------------------------------------------------------+
#| 01001110 01100101 01110100 01111010 01101111 01100010 |
#| |
#| Netzob : Inferring communication protocols |
#+-... | PypiClean |
/DeeptransTool-1.4-py3-none-any.whl/DTT/deepLTranslate.py | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
# Web Driver Import:
from webdriver_manager.chrome import ChromeDriverManager
# PDF reader... | PypiClean |
/Naghni-0.1.tar.gz/Naghni-0.1/naghni/backend/genericbackend.py |
# Naghni: a breath-taking side-scroller focusing on round lifeforms
# Copyright (C) 2010 Niels Serup
# This file is part of Naghni.
#
# Naghni is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version ... | PypiClean |
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/_DBW/_SAW/Session.py |
from __future__ import division, print_function
from __future__ import absolute_import, unicode_literals
from _MOM.import_MOM import MOM, Q
from _TFL import TFL
from _TFL.pyk import pyk
from _MOM._DBW._SAW import SA
import _MOM.DB_Meta_Data
import itertools
class _SAW_DB_Me... | PypiClean |
/Inukshuk-0.1.2.tar.gz/Inukshuk-0.1.2/bench/stocks/bench_hardcoded.py | import io
def render(data, out_write):
out_write('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n <head>\n <title>Sto... | PypiClean |
/ChromaticColorBurst-1.0.3.tar.gz/ChromaticColorBurst-1.0.3/README.md | # ColorBurst - Stylish Output
ColorBurst is a python module that provide method to print stylish text onto console without any setups. For example, you can print colored text or text with colored background or different styled text like bold, underlined, etc or with all these property with specified color and style f... | PypiClean |
/GSimPy-0.0.2-py3-none-any.whl/sim/cal_groupsim.py | import numpy as np
from sim.cal_itemsim import *
from data.connect_database import *
import numpy as np
def cal_2groupaverage(database_name, table_name, group_name1, group_name2, item_method):
"""
Calculate similarity between two disease groups based on average method
:param database_name: string
... | PypiClean |
/DeepPhysX-22.6.tar.gz/DeepPhysX-22.6/src/Utils/data_downloader.py | import os
from pyDataverse.api import NativeApi, DataAccessApi
class DataDownloader:
def __init__(self, DOI, session_name, session_dir='sessions'):
# Connect to Dataverse API
base_url = 'https://data-qualif.loria.fr'
self.api = NativeApi(base_url)
self.data_api = DataAccessApi(ba... | PypiClean |
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/esmvalcore/cmor/_fixes/cmip6/access_esm1_5.py | import iris
import numpy as np
from ..common import ClFixHybridHeightCoord
from ..fix import Fix
class Cl(ClFixHybridHeightCoord):
"""Fixes for cl."""
def fix_metadata(self, cubes):
"""Fix hybrid coefficient b, then call fix_metadata from parent.
Parameters
----------
cubes ... | PypiClean |
/CGATReport-0.9.1.tar.gz/CGATReport-0.9.1/doc/GalleryRPlots.rst | .. _r-box-plot:
==========
r-box-plot
==========
The :class:`CGATReportPlugins.RPlotter.BoxPlot` class presents
:term:`numerical arrays` as box plots:
.. report:: Trackers.SingleColumnDataExample
:render: r-box-plot
:width: 200
:layout: row
A box plot.
Options
=======
:class:`CGATReportPlugins.RPlotte... | PypiClean |
/EPP-0.9.1.tar.gz/EPP-0.9.1/eppy/constants.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
EPP_OK = r'1000'
EPP_OK_PENDING = r'1001'
EPP_QUEUE_EMPTY = r'1300'
EPP_QUEUE_NOT_EMPTY = r'1301'
EPP_LOGOUT_OK = r'1500'
# command element that is not defined by EPP
EPP_UNKNOWN_CMD = r'2000'
# improperly formed command element
EPP_CMD_SYNTAX = r'... | PypiClean |
/DDesignerAPI-0.0.4.6-py3-none-any.whl/ddesigner_api/tensorflow/dpi_layers.py |
import tensorflow as tf
from tensorflow.keras import layers
from .xwn import keras_layers as klayers
##############
# Unit layers
##############
@tf.keras.utils.register_keras_serializable()
class SqueezeAndExcitation2D(layers.Layer):
def __init__(
self,
filters,
data_format=None,
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.